1/*! For license information please see app.js.LICENSE.txt */ 2(()=>{var e,t,n,r,o,i,a={587942:(e,t,n)=>{var r={"./ar":114629,"./ar.js":114629,"./az":577223,"./az.js":577223,"./bg":958838,"./bg.js":958838,"./ca":565171,"./ca.js":565171,"./cs":353937,"./cs.js":353937,"./da":867091,"./da.js":867091,"./de-AT":169989,"./de-AT.js":169989,"./de-CH":587598,"./de-CH.js":587598,"./de-DE":10614,"./de-DE.js":10614,"./el":372824,"./el.js":372824,"./en":117438,"./en-GB":568188,"./en-GB.js":568188,"./en-US":898463,"./en-US.js":898463,"./en.js":117438,"./eo":511739,"./eo.js":511739,"./es-419":891021,"./es-419.js":891021,"./es-ES":642675,"./es-ES.js":642675,"./et":753817,"./et.js":753817,"./fa":583882,"./fa.js":583882,"./fi":99875,"./fi.js":99875,"./fil":808838,"./fil.js":808838,"./fr":575601,"./fr.js":575601,"./gl":172594,"./gl.js":172594,"./haw":957867,"./haw.js":957867,"./he":466595,"./he.js":466595,"./hi":605994,"./hi.js":605994,"./hr":446693,"./hr.js":446693,"./hu":52626,"./hu.js":52626,"./id":806034,"./id.js":806034,"./it":566508,"./it.js":566508,"./ja":584333,"./ja.js":584333,"./kk":676642,"./kk.js":676642,"./ko":773576,"./ko.js":773576,"./locale":986441,"./locale.js":986441,"./lt":984983,"./lt.js":984983,"./lv":361158,"./lv.js":361158,"./mi":295583,"./mi.js":295583,"./mk-MK":848891,"./mk-MK.js":848891,"./mn":98569,"./mn.js":98569,"./ms":840948,"./ms.js":840948,"./my":791336,"./my.js":791336,"./nb":394671,"./nb.js":394671,"./nl":786307,"./nl-BE":180305,"./nl-BE.js":180305,"./nl-NL":749452,"./nl-NL.js":749452,"./nl.js":786307,"./nn":494394,"./nn.js":494394,"./pl":268706,"./pl.js":268706,"./pt-BR":883271,"./pt-BR.js":883271,"./pt-PT":530611,"./pt-PT.js":530611,"./ro":237214,"./ro.js":237214,"./rot13":122497,"./rot13.js":122497,"./ru":625610,"./ru.js":625610,"./sk":28056,"./sk.js":28056,"./sl":44825,"./sl.js":44825,"./sr":112802,"./sr.js":112802,"./sv":805250,"./sv.js":805250,"./th":814189,"./th.js":814189,"./tr":743588,"./tr.js":743588,"./uk":874149,"./uk.js":874149,"./ur":120179,"./ur.js":120179,"./uz":212325,"./uz.js":212325,"./vi":228028,"./vi.js":228028,"./zh-HANS":202034,"./zh-HANS.js":202034,"./zh-HANT":680793,"./zh-HANT.js":680793,"./zh-WUU-HANS":202687,"./zh-WUU-HANS.js":202687,"./zh-WUU-HANT":503967,"./zh-WUU-HANT.js":503967};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=587942},411938:(e,t,n)=>{var r={"./ar":128223,"./ar.js":128223,"./az":579385,"./az.js":579385,"./bg":805912,"./bg.js":805912,"./ca":810993,"./ca.js":810993,"./cs":846902,"./cs.js":846902,"./da":81942,"./da.js":81942,"./de-AT":283304,"./de-AT.js":283304,"./de-CH":547327,"./de-CH.js":547327,"./de-DE":988353,"./de-DE.js":988353,"./el":593674,"./el.js":593674,"./en":930015,"./en-GB":20932,"./en-GB.js":20932,"./en-US":880703,"./en-US.js":880703,"./en.js":930015,"./eo":246528,"./eo.js":246528,"./es-419":725719,"./es-419.js":725719,"./es-ES":67172,"./es-ES.js":67172,"./et":344572,"./et.js":344572,"./fa":240215,"./fa.js":240215,"./fi":807854,"./fi.js":807854,"./fil":42106,"./fil.js":42106,"./fr":921193,"./fr.js":921193,"./gl":487382,"./gl.js":487382,"./haw":700799,"./haw.js":700799,"./he":614421,"./he.js":614421,"./hi":760689,"./hi.js":760689,"./hr":656841,"./hr.js":656841,"./hu":299314,"./hu.js":299314,"./id":78943,"./id.js":78943,"./it":506689,"./it.js":506689,"./ja":589872,"./ja.js":589872,"./kk":66265,"./kk.js":66265,"./ko":105311,"./ko.js":105311,"./locale":576947,"./locale.js":576947,"./lt":88636,"./lt.js":88636,"./lv":684156,"./lv.js":684156,"./mi":7483,"./mi.js":7483,"./mk-MK":627438,"./mk-MK.js":627438,"./mn":660551,"./mn.js":660551,"./ms":300131,"./ms.js":300131,"./my":195879,"./my.js":195879,"./nb":210330,"./nb.js":210330,"./nl":755054,"./nl-BE":34157,"./nl-BE.js":34157,"./nl-NL":803325,"./nl-NL.js":803325,"./nl.js":755054,"./nn":68492,"./nn.js":68492,"./pl":467280,"./pl.js":467280,"./pt-BR":683546,"./pt-BR.js":683546,"./pt-PT":10530,"./pt-PT.js":10530,"./ro":725051,"./ro.js":725051,"./rot13":681092,"./rot13.js":681092,"./ru":865166,"./ru.js":865166,"./sk":909045,"./sk.js":909045,"./sl":101887,"./sl.js":101887,"./sr":901698,"./sr.js":901698,"./sv":422250,"./sv.js":422250,"./th":234912,"./th.js":234912,"./tr":570373,"./tr.js":570373,"./uk":283722,"./uk.js":283722,"./ur":681646,"./ur.js":681646,"./uz":960650,"./uz.js":960650,"./vi":435680,"./vi.js":435680,"./zh-HANS":389467,"./zh-HANS.js":389467,"./zh-HANT":329550,"./zh-HANT.js":329550,"./zh-WUU-HANS":398511,"./zh-WUU-HANS.js":398511,"./zh-WUU-HANT":625445,"./zh-WUU-HANT.js":625445};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=411938},17860:(e,t,n)=>{var r={"./base-empty":114821,"./base-empty.pug":114821,"./base-flat-vue":984852,"./base-flat-vue.pug":984852};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=17860},153870:(e,t,n)=>{"use strict";n.r(t),n(403758),n(887067),window.Promise||(window.Promise=n(562401)),n(205378),n.g.$=window.$=n.g.jQuery=window.jQuery=n(619755),window._=n(250636),window.Backbone=n(272316),window.Backbone.$=window.jQuery,window.tv4=n(99018),window.lscache=n(420556),window._.string=n(996654),n(934371),window.marked=n(147084),n(196300),window.TreemaUtils=n(253203);const r=n(727484),o=n(370178),i=n(629387),a=n(884110),s=n(356176),c=n(366607),u=n(294712),l=n(828734),d=n(201646);r.extend(o),r.extend(i),r.extend(d),r.extend(a,{thresholds:[{l:"s",r:1},{l:"m",r:1},{l:"mm",r:59,d:"minute"},{l:"h",r:1},{l:"hh",r:23,d:"hour"},{l:"d",r:1},{l:"dd",r:29,d:"day"},{l:"M",r:1},{l:"MM",r:11,d:"month"},{l:"y",r:1},{l:"yy",d:"year"}]}),r.extend(s),r.extend(c),r.extend(u),r.extend(l),r.timezone=r,r.timezone.tz=r.tz,window.moment=r,window.dayjs=r,n(464106).createjs,window.key=n(505073),n(413037),n(280884),n(704300),window.Spade=n(754464),n(706264),n(827847),n(198784),window.Vue=n(72100),window.Vuex=n(420629).default,window.algoliasearch=n(550638),Str
2ing.prototype.includes||(String.prototype.includes=function(e,t){return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)}),[Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})),n(445330),n(398213),n(901834),n(899103)},543270:(e,t,n)=>{var r=n(619755);if(r.fn.autocomplete.noConflict){var o=r.fn.autocomplete.noConflict();r.fn.algolia_autocomplete=o}},874313:(e,t,n)=>{var r=n(619755);!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){"use strict";e.exports=n(1)},function(e,t,n){"use strict";var r=n(2),o=n(3);r.element=o;var i=n(4);i.isArray=o.isArray,i.isFunction=o.isFunction,i.isObject=o.isPlainObject,i.bind=o.proxy,i.each=function(e,t){o.each(e,(function(e,n){return t(n,e)}))},i.map=o.map,i.mixin=o.extend;var a,s,c,u=n(5),l=n(6);a=o.fn.autocomplete,s="aaAutocomplete",c={initialize:function(e,t){return t=i.isArray(t)?t:[].slice.call(arguments,1),e=e||{},this.each(n);function n(){var n,r=o(this),i=new l({el:r});n=new u({input:r,eventBus:i,dropdownMenuContainer:e.dropdownMenuContainer,hint:void 0===e.hint||!!e.hint,minLength:e.minLength,autoselect:e.autoselect,openOnFocus:e.openOnFocus,templates:e.templates,debug:e.debug,datasets:t}),r.data(s,n)}},open:function(){return this.each((function(){var e;(e=o(this).data(s))&&e.open()}))},close:function(){return this.each((function(){var e;(e=o(this).data(s))&&e.close()}))},val:function(e){return arguments.length?this.each(t):n(this.first());function t(){var t;(t=o(this).data(s))&&t.setVal(e)}function n(e){var t,n;return(t=e.data(s))&&(n=t.getVal()),n}},destroy:function(){return this.each((function(){var e,t=o(this);(e=t.data(s))&&(e.destroy(),t.removeData(s))}))}},o.fn.autocomplete=function(e){var t;return c[e]&&"initialize"!==e?(t=this.filter((function(){return!!o(this).data(s)})),c[e].apply(t,[].slice.call(arguments,1))):c.initialize.apply(this,arguments)},o.fn.autocomplete.noConflict=function(){return o.fn.autocomplete=a,this},o.fn.autocomplete.sources=u.sources,e.exports=o.fn.autocomplete},function(e,t){"use strict";e.exports={element:null}},function(e,t){e.exports=r},function(e,t,n){"use strict";var r,o=n(2);e.exports={isArray:null,isFunction:null,isObject:null,bind:null,each:null,map:null,mixin:null,isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)&&navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]},escapeRegExChars:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isNumber:function(e){return"number"==typeof e},toStr:function(e){return null==e?"":e+""},cloneDeep:function(e){var t=this.mixin({},e),n=this;return this.each(t,(function(e,r){e&&(n.isArray(e)?t[r]=[].concat(e):n.isObject(e)&&(t[r]=n.cloneDeep(e)))})),t},error:function(e){throw new Error(e)},every:function(e,t){var n=!0;return e?(this.each(e,(function(r,o){if(!(n=t.call(null,r,o,e)))return!1})),!!n):n},getUniqueId:(r=0,function(){return r++}),templatify:function(e){if(this.isFunction(e))return e;var t=o.element(e);return"SCRIPT"===t.prop("tagName")?function(){return t.text()}:function(){return String(e)}},defer:function(e){setTimeout(e,0)},noop:function(){}}},function(e,t,n){"use strict";var r="aaAttrs",o=n(4),i=n(2),a=n(6),s=n(7),c=n(11),u=n(13),l=n(14);function d(e){var t,n,s;(e=e||{}).input||o.error("missing input"),this.isActivated=!1,this.debug=!!e.debug,this.autoselect=!!e.autoselect,this.openOnFocus=!!e.openOnFocus,this.minLength=o.isNumber(e.minLength)?e.minLength:1,this.$node=function(e){var t,n,a,s,c;t=i.element(e.input),n=i.element(u.wrapper).css(l.wrapper),"block"===t.css("display")&&"table"===t.parent().css("display")&&n.css("display","table-cell"),a=i.element(u.dropdown).css(l.dropdown),e.templates&&e.templates.dropdownMenu&&a.html(o.templatify(e.templates.dropdownMenu)()),(s=t.clone().css(l.hint).css((c=t,{backgroundAttachment:c.css("background-attachment"),backgroundClip:c.css("background-clip"),backgroundColor:c.css("background-color"),backgroundImage:c.css("background-image"),backgroundOrigin:c.css("background-origin"),backgroundPosition:c.css("background-position"),backgroundRepeat:c.css("background-repeat"),backgroundSize:c.css("background-size")}
2))).val("").addClass("aa-hint").removeAttr("id name placeholder required").prop("readonly",!0).attr({autocomplete:"off",spellcheck:"false",tabindex:-1}),s.removeData&&s.removeData(),t.data(r,{dir:t.attr("dir"),autocomplete:t.attr("autocomplete"),spellcheck:t.attr("spellcheck"),style:t.attr("style")}),t.addClass("aa-input").attr({autocomplete:"off",spellcheck:!1}).css(e.hint?l.input:l.inputWithNoHint);try{t.attr("dir")||t.attr("dir","auto")}catch(e){}return t.wrap(n).parent().prepend(e.hint?s:null).append(a)}(e),t=this.$node.find(".aa-dropdown-menu"),n=this.$node.find(".aa-input"),s=this.$node.find(".aa-hint"),e.dropdownMenuContainer&&i.element(e.dropdownMenuContainer).css("position","relative").append(t.css("top","0")),n.on("blur.aa",(function(e){var r=document.activeElement;o.isMsie()&&(t.is(r)||t.has(r).length>0)&&(e.preventDefault(),e.stopImmediatePropagation(),o.defer((function(){n.focus()})))})),t.on("mousedown.aa",(function(e){e.preventDefault()})),this.eventBus=e.eventBus||new a({el:n}),this.dropdown=new d.Dropdown({menu:t,datasets:e.datasets,templates:e.templates}).onSync("suggestionClicked",this._onSuggestionClicked,this).onSync("cursorMoved",this._onCursorMoved,this).onSync("cursorRemoved",this._onCursorRemoved,this).onSync("opened",this._onOpened,this).onSync("closed",this._onClosed,this).onSync("shown",this._onShown,this).onAsync("datasetRendered",this._onDatasetRendered,this),this.input=new d.Input({input:n,hint:s}).onSync("focused",this._onFocused,this).onSync("blurred",this._onBlurred,this).onSync("enterKeyed",this._onEnterKeyed,this).onSync("tabKeyed",this._onTabKeyed,this).onSync("escKeyed",this._onEscKeyed,this).onSync("upKeyed",this._onUpKeyed,this).onSync("downKeyed",this._onDownKeyed,this).onSync("leftKeyed",this._onLeftKeyed,this).onSync("rightKeyed",this._onRightKeyed,this).onSync("queryChanged",this._onQueryChanged,this).onSync("whitespaceChanged",this._onWhitespaceChanged,this),this._setLanguageDirection()}o.mixin(d.prototype,{_onSuggestionClicked:function(e,t){var n;(n=this.dropdown.getDatumForSuggestion(t))&&this._select(n)},_onCursorMoved:function(){var e=this.dropdown.getDatumForCursor();this.input.setInputValue(e.value,!0),this.eventBus.trigger("cursorchanged",e.raw,e.datasetName)},_onCursorRemoved:function(){this.input.resetInputValue(),this._updateHint()},_onDatasetRendered:function(){this._updateHint(),this.eventBus.trigger("updated")},_onOpened:function(){this._updateHint(),this.eventBus.trigger("opened")},_onShown:function(){this.eventBus.trigger("shown")},_onClosed:function(){this.input.clearHint(),this.eventBus.trigger("closed")},_onFocused:function(){if(this.isActivated=!0,this.openOnFocus){var e=this.input.getQuery();e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty(),this.dropdown.open()}},_onBlurred:function(){this.debug||(this.isActivated=!1,this.dropdown.empty(),this.dropdown.close())},_onEnterKeyed:function(e,t){var n,r;n=this.dropdown.getDatumForCursor(),r=this.dropdown.getDatumForTopSuggestion(),n?(this._select(n),t.preventDefault()):this.autoselect&&r&&(this._select(r),t.preventDefault())},_onTabKeyed:function(e,t){var n;(n=this.dropdown.getDatumForCursor())?(this._select(n),t.preventDefault()):this._autocomplete(!0)},_onEscKeyed:function(){this.dropdown.close(),this.input.resetInputValue()},_onUpKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorUp(),this.dropdown.open()},_onDownKeyed:function(){var e=this.input.getQuery();this.dropdown.isEmpty&&e.length>=this.minLength?this.dropdown.update(e):this.dropdown.moveCursorDown(),this.dropdown.open()},_onLeftKeyed:function(){"rtl"===this.dir&&this._autocomplete()},_onRightKeyed:function(){"ltr"===this.dir&&this._autocomplete()},_onQueryChanged:function(e,t){this.input.clearHintIfInvalid(),t.length>=this.minLength?this.dropdown.update(t):this.dropdown.empty(),this.dropdown.open(),this._setLanguageDirection()},_onWhitespaceChanged:function(){this._updateHint(),this.dropdown.open()},_setLanguageDirection:function(){var e=this.input.getLanguageDirection();
2this.dir!==e&&(this.dir=e,this.$node.css("direction",e),this.dropdown.setLanguageDirection(e))},_updateHint:function(){var e,t,n,r,i;(e=this.dropdown.getDatumForTopSuggestion())&&this.dropdown.isVisible()&&!this.input.hasOverflow()?(t=this.input.getInputValue(),n=s.normalizeQuery(t),r=o.escapeRegExChars(n),(i=new RegExp("^(?:"+r+")(.+$)","i").exec(e.value))?this.input.setHint(t+i[1]):this.input.clearHint()):this.input.clearHint()},_autocomplete:function(e){var t,n,r,o;t=this.input.getHint(),n=this.input.getQuery(),r=e||this.input.isCursorAtEnd(),t&&n!==t&&r&&((o=this.dropdown.getDatumForTopSuggestion())&&this.input.setInputValue(o.value),this.eventBus.trigger("autocompleted",o.raw,o.datasetName))},_select:function(e){void 0!==e.value&&this.input.setQuery(e.value),this.input.setInputValue(e.value,!0),this._setLanguageDirection(),this.eventBus.trigger("selected",e.raw,e.datasetName),this.dropdown.close(),o.defer(o.bind(this.dropdown.empty,this.dropdown))},open:function(){if(!this.isActivated){var e=this.input.getInputValue();e.length>=this.minLength?this.dropdown.update(e):this.dropdown.empty()}this.dropdown.open()},close:function(){this.dropdown.close()},setVal:function(e){e=o.toStr(e),this.isActivated?this.input.setInputValue(e):(this.input.setQuery(e),this.input.setInputValue(e,!0)),this._setLanguageDirection()},getVal:function(){return this.input.getQuery()},destroy:function(){var e,t;this.input.destroy(),this.dropdown.destroy(),e=this.$node,t=e.find(".aa-input"),o.each(t.data(r),(function(e,n){void 0===e?t.removeAttr(n):t.attr(n,e)})),t.detach().removeClass("aa-input").insertAfter(e),t.removeData&&t.removeData(r),e.remove(),this.$node=null}}),d.Dropdown=c,d.Input=s,d.sources=n(15),e.exports=d},function(e,t,n){"use strict";var r="autocomplete:",o=n(4),i=n(2);function a(e){e&&e.el||o.error("EventBus initialized without el"),this.$el=i.element(e.el)}o.mixin(a.prototype,{trigger:function(e){var t=[].slice.call(arguments,1);this.$el.trigger(r+e,t)}}),e.exports=a},function(e,t,n){"use strict";var r;r={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"};var o=n(4),i=n(2),a=n(8);function s(e){var t,n,a,s,c,u=this;(e=e||{}).input||o.error("input is missing"),t=o.bind(this._onBlur,this),n=o.bind(this._onFocus,this),a=o.bind(this._onKeydown,this),s=o.bind(this._onInput,this),this.$hint=i.element(e.hint),this.$input=i.element(e.input).on("blur.aa",t).on("focus.aa",n).on("keydown.aa",a),0===this.$hint.length&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=o.noop),o.isMsie()?this.$input.on("keydown.aa keypress.aa cut.aa paste.aa",(function(e){r[e.which||e.keyCode]||o.defer(o.bind(u._onInput,u,e))})):this.$input.on("input.aa",s),this.query=this.$input.val(),this.$overflowHelper=(c=this.$input,i.element('<pre aria-hidden="true"></pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:c.css("font-family"),fontSize:c.css("font-size"),fontStyle:c.css("font-style"),fontVariant:c.css("font-variant"),fontWeight:c.css("font-weight"),wordSpacing:c.css("word-spacing"),letterSpacing:c.css("letter-spacing"),textIndent:c.css("text-indent"),textRendering:c.css("text-rendering"),textTransform:c.css("text-transform")}).insertAfter(c))}function c(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}s.normalizeQuery=function(e){return(e||"").replace(/^\s*/g,"").replace(/\s{2,}/g," ")},o.mixin(s.prototype,a,{_onBlur:function(){this.resetInputValue(),this.trigger("blurred")},_onFocus:function(){this.trigger("focused")},_onKeydown:function(e){var t=r[e.which||e.keyCode];this._managePreventDefault(t,e),t&&this._shouldTrigger(t,e)&&this.trigger(t+"Keyed",e)},_onInput:function(){this._checkInputValue()},_managePreventDefault:function(e,t){var n,r,o;switch(e){case"tab":r=this.getHint(),o=this.getInputValue(),n=r&&r!==o&&!c(t);break;case"up":case"down":n=!c(t);break;default:n=!1}n&&t.preventDefault()},_shouldTrigger:function(e,t){return"tab"!==e||!c(t)},_checkInputValue:function(){var e,t,n,r,o;r=e=this.getInputValue(),o=this.query,n=!(!(t=s.normalizeQuery(r)===s.normalizeQuery(o))||!this.query)&&this.query.length!==e.length,this.query=e,t?n&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getQuery:function(){return this.query},setQuery:function(e){this.query=e},getInputValue:function(){return this.$input.val()},setInputValue:function(e,t){void 0===e&&(e=this.query),this.$input.val(e),t?this.clearHint():this._checkInputValue()},resetInputValue:function(){this.setInputValue(this.query,!0)},getHint:function(){return this.$hint.val()},setHint:function(e){this.$hint.val(e)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var e,t,n;n=(e=this.getInputValue())!==(t=this.getHint())&&0===t.indexOf(e),""!==e&&n&&!this.hasOverflow()||this.clearHint()},getLanguageDirection:function(){return(this.$input.css("direction")||"ltr").toLowerCase()},hasOverflow:function(){var e=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=e},isCursorAtEnd:function(){var e,t,n;return e=this.$input.val().length,t=this.$input[0].selectionStart,o.isNumber(t)?t===e:!document.selection||((n=document.selection.createRange()).moveStart("character",-e),e===n.text.length)},destroy:function(){this.$hint.off(".aa"),this.$input.off(".aa"),this.$hint=this.$input
2=this.$overflowHelper=null}}),e.exports=s},function(e,t,n){(function(t){"use strict";var n=/\s+/,r=window.setImmediate?function(e){t((function(){e()}))}:function(e){setTimeout((function(){e()}),0)};function o(e,t,r,o){var i;if(!r)return this;for(t=t.split(n),r=o?function(e,t){return e.bind?e.bind(t):function(){e.apply(t,[].slice.call(arguments,0))}}(r,o):r,this._callbacks=this._callbacks||{};i=t.shift();)this._callbacks[i]=this._callbacks[i]||{sync:[],async:[]},this._callbacks[i][e].push(r);return this}function i(e,t,n){return function(){for(var r,o=0,i=e.length;!r&&o<i;o+=1)r=!1===e[o].apply(t,n);return!r}}e.exports={onSync:function(e,t,n){return o.call(this,"sync",e,t,n)},onAsync:function(e,t,n){return o.call(this,"async",e,t,n)},off:function(e){var t;if(!this._callbacks)return this;for(e=e.split(n);t=e.shift();)delete this._callbacks[t];return this},trigger:function(e){var t,o,a,s,c;if(!this._callbacks)return this;for(e=e.split(n),a=[].slice.call(arguments,1);(t=e.shift())&&(o=this._callbacks[t]);)s=i(o.sync,this,[t].concat(a)),c=i(o.async,this,[t].concat(a)),s()&&r(c);return this}}}).call(t,n(9).setImmediate)},function(e,t,n){(function(e,r){var o=n(10).nextTick,i=Function.prototype.apply,a=Array.prototype.slice,s={},c=0;function u(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new u(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new u(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},t.setImmediate="function"==typeof e?e:function(e){var n=c++,r=!(arguments.length<2)&&a.call(arguments,1);return s[n]=!0,o((function(){s[n]&&(r?e.apply(null,r):e.call(null),t.clearImmediate(n))})),n},t.clearImmediate="function"==typeof r?r:function(e){delete s[e]}}).call(t,n(9).setImmediate,n(9).clearImmediate)},function(e,t){var n,r=e.exports={},o=[],i=!1,a=-1;function s(){i=!1,n.length?o=n.concat(o):a=-1,o.length&&c()}function c(){if(!i){var e=setTimeout(s);i=!0;for(var t=o.length;t;){for(n=o,o=[];++a<t;)n&&n[a].run();a=-1,t=o.length}n=null,i=!1,clearTimeout(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];o.push(new u(e,t)),1!==o.length||i||setTimeout(c,0)},u.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=l,r.addListener=l,r.once=l,r.off=l,r.removeListener=l,r.removeAllListeners=l,r.emit=l,r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";var r=n(4),o=n(2),i=n(8),a=n(12),s=n(14);function c(e){var t,n,i,a=this;(e=e||{}).menu||r.error("menu is required"),r.isArray(e.datasets)||r.isObject(e.datasets)||r.error("1 or more datasets required"),e.datasets||r.error("datasets is required"),this.isOpen=!1,this.isEmpty=!0,t=r.bind(this._onSuggestionClick,this),n=r.bind(this._onSuggestionMouseEnter,this),i=r.bind(this._onSuggestionMouseLeave,this),this.$menu=o.element(e.menu).on("click.aa",".aa-suggestion",t).on("mouseenter.aa",".aa-suggestion",n).on("mouseleave.aa",".aa-suggestion",i),e.templates&&e.templates.header&&this.$menu.prepend(r.templatify(e.templates.header)()),this.datasets=r.map(e.datasets,(function(e){return function(e,t){return new c.Dataset(r.mixin({$menu:e},t))}(a.$menu,e)})),r.each(this.datasets,(function(e){var t=e.getRoot();t&&0===t.parent().length&&a.$menu.append(t),e.onSync("rendered",a._onRendered,a)})),e.templates&&e.templates.footer&&this.$menu.append(r.templatify(e.templates.footer)())}r.mixin(c.prototype,i,{_onSuggestionClick:function(e){this.trigger("suggestionClicked",o.element
2(e.currentTarget))},_onSuggestionMouseEnter:function(e){this._removeCursor(),this._setCursor(o.element(e.currentTarget),!0)},_onSuggestionMouseLeave:function(){this._removeCursor()},_onRendered:function(){this.isEmpty=r.every(this.datasets,(function(e){return e.isEmpty()})),this.isEmpty?this._hide():this.isOpen&&this._show(),this.trigger("datasetRendered")},_hide:function(){this.$menu.hide()},_show:function(){this.$menu.css("display","block"),this.trigger("shown")},_getSuggestions:function(){return this.$menu.find(".aa-suggestion")},_getCursor:function(){return this.$menu.find(".aa-cursor").first()},_setCursor:function(e,t){e.first().addClass("aa-cursor"),t||this.trigger("cursorMoved")},_removeCursor:function(){this._getCursor().removeClass("aa-cursor")},_moveCursor:function(e){var t,n,r,o;this.isOpen&&(n=this._getCursor(),t=this._getSuggestions(),this._removeCursor(),-1!=(r=((r=t.index(n)+e)+1)%(t.length+1)-1)?(r<-1&&(r=t.length-1),this._setCursor(o=t.eq(r)),this._ensureVisible(o)):this.trigger("cursorRemoved"))},_ensureVisible:function(e){var t,n,r,o;n=(t=e.position().top)+e.height()+parseInt(e.css("margin-top"),10)+parseInt(e.css("margin-bottom"),10),r=this.$menu.scrollTop(),o=this.$menu.height()+parseInt(this.$menu.css("paddingTop"),10)+parseInt(this.$menu.css("paddingBottom"),10),t<0?this.$menu.scrollTop(r+t):o<n&&this.$menu.scrollTop(r+(n-o))},close:function(){this.isOpen&&(this.isOpen=!1,this._removeCursor(),this._hide(),this.trigger("closed"))},open:function(){this.isOpen||(this.isOpen=!0,this.isEmpty||this._show(),this.trigger("opened"))},setLanguageDirection:function(e){this.$menu.css("ltr"===e?s.ltr:s.rtl)},moveCursorUp:function(){this._moveCursor(-1)},moveCursorDown:function(){this._moveCursor(1)},getDatumForSuggestion:function(e){var t=null;return e.length&&(t={raw:a.extractDatum(e),value:a.extractValue(e),datasetName:a.extractDatasetName(e)}),t},getDatumForCursor:function(){return this.getDatumForSuggestion(this._getCursor().first())},getDatumForTopSuggestion:function(){return this.getDatumForSuggestion(this._getSuggestions().first())},update:function(e){r.each(this.datasets,(function(t){t.update(e)}))},empty:function(){r.each(this.datasets,(function(e){e.clear()})),this.isEmpty=!0},isVisible:function(){return this.isOpen&&!this.isEmpty},destroy:function(){this.$menu.off(".aa"),this.$menu=null,r.each(this.datasets,(function(e){e.destroy()}))}}),c.Dataset=a,e.exports=c},function(e,t,n){"use strict";var r="aaDataset",o="aaValue",i="aaDatum",a=n(4),s=n(2),c=n(13),u=n(14),l=n(8);function d(e){var t,n,r,o;(e=e||{}).templates=e.templates||{},e.source||a.error("missing source"),e.name&&(t=e.name,!/^[_a-zA-Z0-9-]+$/.test(t))&&a.error("invalid dataset name: "+e.name),this.query=null,this.highlight=!!e.highlight,this.name=void 0===e.name||null===e.name?a.getUniqueId():e.name,this.source=e.source,this.displayFn=(o=(o=e.display||e.displayKey)||"value",a.isFunction(o)?o:function(e){return e[o]}),this.templates=(n=e.templates,r=this.displayFn,{empty:n.empty&&a.templatify(n.empty),header:n.header&&a.templatify(n.header),footer:n.footer&&a.templatify(n.footer),suggestion:n.suggestion||function(e){return"<p>"+r(e)+"</p>"}}),this.$el=e.$menu&&e.$menu.find(".aa-dataset-"+this.name).length>0?s.element(e.$menu.find(".aa-dataset-"+this.name)[0]):s.element(c.dataset.replace("%CLASS%",this.name)),this.$menu=e.$menu}
2d.extractDatasetName=function(e){return s.element(e).data(r)},d.extractValue=function(e){return s.element(e).data(o)},d.extractDatum=function(e){var t=s.element(e).data(i);return"string"==typeof t&&(t=JSON.parse(t)),t},a.mixin(d.prototype,l,{_render:function(e,t){if(this.$el){var n,l=this,d=[].slice.call(arguments,2);this.$el.empty(),!(n=t&&t.length)&&this.templates.empty?this.$el.html(p.apply(this,d)).prepend(l.templates.header?h.apply(this,d):null).append(l.templates.footer?m.apply(this,d):null):n&&this.$el.html(f.apply(this,d)).prepend(l.templates.header?h.apply(this,d):null).append(l.templates.footer?m.apply(this,d):null),this.$menu&&this.$menu.addClass("aa-"+(n?"with":"without")+"-"+this.name).removeClass("aa-"+(n?"without":"with")+"-"+this.name),this.trigger("rendered")}function p(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!0}].concat(t),l.templates.empty.apply(this,t)}function f(){var e,n,d=[].slice.call(arguments,0);return e=s.element(c.suggestions).css(u.suggestions),n=a.map(t,p),e.append.apply(e,n),e;function p(e){var t;return(t=s.element(c.suggestion).append(l.templates.suggestion.apply(this,[e].concat(d)))).data(r,l.name),t.data(o,l.displayFn(e)||void 0),t.data(i,JSON.stringify(e)),t.children().each((function(){s.element(this).css(u.suggestionChild)})),t}}function h(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!n}].concat(t),l.templates.header.apply(this,t)}function m(){var t=[].slice.call(arguments,0);return t=[{query:e,isEmpty:!n}].concat(t),l.templates.footer.apply(this,t)}},getRoot:function(){return this.$el},update:function(e){var t=this;this.query=e,this.canceled=!1,this.source(e,(function(n){if(!t.canceled&&e===t.query){var r=[].slice.call(arguments,1);r=[e,n].concat(r),t._render.apply(t,r)}}))},cancel:function(){this.canceled=!0},clear:function(){this.cancel(),this.$el.empty(),this.trigger("rendered")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=null}}),e.exports=d},function(e,t){"use strict";e.exports={wrapper:'<span class="algolia-autocomplete"></span>',dropdown:'<span class="aa-dropdown-menu"></span>',dataset:'<div class="aa-dataset-%CLASS%"></div>',suggestions:'<span class="aa-suggestions"></span>',suggestion:'<div class="aa-suggestion"></div>'}},function(e,t,n){"use strict";var r=n(4),o={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},dropdown:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},suggestions:{display:"block"},suggestion:{whiteSpace:"nowrap",cursor:"pointer"},suggestionChild:{whiteSpace:"normal"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:"0"}};r.isMsie()&&r.mixin(o.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),r.isMsie()&&r.isMsie()<=7&&r.mixin(o.input,{marginTop:"-1px"}),e.exports=o},function(e,t,n){"use strict";e.exports={hits:n(16),popularIn:n(17)}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t){return function(n,o){e.search(n,t,(function(e,t){e?r.error(e.message):o(t.hits,t)}))}}},function(e,t,n){"use strict";var r=n(4);e.exports=function(e,t,n,o){if(!n.source)return r.error("Missing 'source' key");var i=r.isFunction(n.source)?n.source:function(e){return e[n.source]};if(!n.index)return r.error("Missing 'index' key");var a=n.index;return o=o||{},function(s,c){e.search(s,t,(function(e,t){if(e)r.error(e.message);else{if(t.hits.length>0){var s=t.hits[0],u=r.mixin({hitsPerPage:0},n);return delete u.source,delete u.index,void a.search(i(s),u,(function(e,n){if(e)r.error(e.message);else{var i=[];if(o.includeAll){var a=o.allTitle||"All departments";i.push(r.mixin({facet:{value:a,count:n.nbHits}},r.cloneDeep(s)))}r.each(n.facets,(function(e,t){r.each(e,(function(e,n){i.push(r.mixin({facet:{facet:t,value:n,count:e}},r.cloneDeep(s)))}))}));for(var u=1;u<t.hits.length;++u)i.push(t.hits[u]);c(i,t)}}))}c([])}}))}}}])},205378:function(){!function(e){"use strict";if(!e.fetch){var t="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,r="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,i="ArrayBuffer"in e;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array
2]"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},c=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};h.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+","+t:t},h.prototype.delete=function(e){delete this.map[d(e)]},h.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},h.prototype.set=function(e,t){this.map[d(e)]=p(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),f(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),f(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),f(e)},n&&(h.prototype[Symbol.iterator]=h.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var l=[301,302,303,307,308];S.redirect=function(e,t){if(-1===l.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},e.Headers=h,e.Request=_,e.Response=S,e.fetch=function(e,t){return new Promise((function(n,o){var i=new _(e,t),a=new XMLHttpRequest;a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new S(o,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),a.send(void 0===i._bodyInit?null:i._bodyInit)}))},e.fetch.polyfill=!0}function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function m(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function g(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=g(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(r&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(o&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(i&&r&&s(e))this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(e)&&!c(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=m(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?m(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var e,t,n,r=m(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=g(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var n,r,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),u.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function S(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},196300:(e,t,n)=>{var r,o,i;!function(a){"use strict";o=[n(250636),n(272316)],r=function(e,t){var n,r={},o=t.View.prototype.delegateEvents,i=t.View.prototype.undelegateEvents;return t.Mediator={init:function(){this.setUpValidator(),this.validationEnabled=!0,this.channelSchemas={},this.unvalidatedChannels=[],r={}},addChannelSchema:function(e,t){t&&Object.keys(t).length&&(this.channelSchemas[e]=t)},addDefSchema:function(e){this.tv4.addSchema(e)},addChannelSchemas:function(e){for(var t in e){var n=e[t];n&&(this.channelSchemas[t]=n)}},addDefSchemas:function(e){for(var t in e)this.tv4.addSchema(e[t])},setUpValidator:function(){this.tv4=window.tv4.freshApi()},setValidationEnabled:function(e){this.validationEnabled=e},subscribe:function(t,n,o,i){r[t]||(r[t]=[]),!this.validationEnabled||t in this.channelSchemas||e.contains(this.unvalidatedChannels,t)||(this.unvalidatedChannels.push(t),console.warn("Missing schema for channel '"+t+"'.")),r[t].push({fn:n,context:o||this,once:i})},publish:function(n,o){if(n in this.channelSchemas){if(this.validationEnabled){if(!this.tv4.validate(o,this.channelSchemas[n]))return void console.error("Dropping publication because of validation error:",this.tv4.error);this.tv4.missing.length&&console.warn("Missing schema reference to "+this.tv4.missing[0])}}else this.validationEnabled&&!e.contains(this.unvalidatedChannels,n)&&(this.unvalidatedChannels.push(n),console.warn("Missing schema for channel '"+n+"'."));if(r[n])for(var i,a=r[n].slice(),s=0;s<a.length;s++)(i=a[s]).fn.call(i.context,o),i.once&&t.Mediator.unsubscribe(n,i.fn,i.context)},unsubscribe:function(e,t,n){if(r[e])for(var o,i=0;i<r[e].length;i++)(o=r[e][i]).fn===t&&o.context===n&&(r[e].splice(i,1),i--)},subscribeOnce:function(e,n,r){t.Mediator.subscribe(e,n,r,!0)}},n={delegateEvents:function(){o.apply(this,arguments),this.setSubscriptions()},undelegateEvents:function(){i.apply(this,arguments),this.unsetSubscriptions()},subscriptions:{},setSubscriptions:function(n){n&&e.extend(this.subscriptions||{},n),(n=n||this.subscriptions)&&!e.isEmpty(n)&&(this.unsetSubscriptions(n),e.each(n,(function(n,r){var o;n.$once&&(n=n.$once,o=!0),e.isString(n)&&(n=this[n]),t.Mediator.subscribe(r,n,this,o)}),this))},unsetSubscriptions:function(n){(n=n||this.subscriptions)&&!e.isEmpty(n)&&e.each(n,(function(n,r){e.isString(n)&&(n=this[n]),t.Mediator.unsubscribe(r,n.$once||n,this)}),this)}},e.extend(t.View.prototype,n),e.extend(t.Mediator,{pub:t.Mediator.publish,sub:t.Mediator.subscribe}),t.Mediator.init(),t},void 0===(i=r.apply(t,o))||(e.exports=i)}()},827847:()=>{!function(){"use strict";function e(r){if(!r)throw new Error("No options passed to Waypoint constructor");if(!r.element)throw new Error("No element option passed to Waypoint constructor");if(!r.handler)throw new Error("No handler option passed to Waypoint constructor");
vendor: 4,242 bytes, line 2
2this.key="waypoint-"+t,this.options=e.Adapter.extend({},e.defaults,r),this.element=this.options.element,this.adapter=new e.Adapter(this.element),this.callback=r.handler,this.axis=this.options.horizontal?"horizontal":"vertical",this.enabled=this.options.enabled,this.triggerPoint=null,this.group=e.Group.findOrCreate({name:this.options.group,axis:this.axis}),this.context=e.Context.findOrCreateByElement(this.options.context),e.offsetAliases[this.options.offset]&&(this.options.offset=e.offsetAliases[this.options.offset]),this.group.add(this),this.context.add(this),n[this.key]=this,t+=1}var t=0,n={};e.prototype.queueTrigger=function(e){this.group.queueTrigger(this,e)},e.prototype.trigger=function(e){this.enabled&&this.callback&&this.callback.apply(this,e)},e.prototype.destroy=function(){this.context.remove(this),this.group.remove(this),delete n[this.key]},e.prototype.disable=function(){return this.enabled=!1,this},e.prototype.enable=function(){return this.context.refresh(),this.enabled=!0,this},e.prototype.next=function(){return this.group.next(this)},e.prototype.previous=function(){return this.group.previous(this)},e.invokeAll=function(e){var t=[];for(var r in n)t.push(n[r]);for(var o=0,i=t.length;i>o;o++)t[o][e]()},e.destroyAll=function(){e.invokeAll("destroy")},e.disableAll=function(){e.invokeAll("disable")},e.enableAll=function(){e.invokeAll("enable")},e.refreshAll=function(){e.Context.refreshAll()},e.viewportHeight=function(){return window.innerHeight||document.documentElement.clientHeight},e.viewportWidth=function(){return document.documentElement.clientWidth},e.adapters=[],e.defaults={context:window,continuous:!0,enabled:!0,group:"default",horizontal:!1,offset:0},e.offsetAliases={"bottom-in-view":function(){return this.context.innerHeight()-this.adapter.outerHeight()},"right-in-view":function(){return this.context.innerWidth()-this.adapter.outerWidth()}},window.Waypoint=e}(),function(){"use strict";function e(e){window.setTimeout(e,1e3/60)}function t(e){this.element=e,this.Adapter=o.Adapter,this.adapter=new this.Adapter(e),this.key="waypoint-context-"+n,this.didScroll=!1,this.didResize=!1,this.oldScroll={x:this.adapter.scrollLeft(),y:this.adapter.scrollTop()},this.waypoints={vertical:{},horizontal:{}},e.waypointContextKey=this.key,r[e.waypointContextKey]=this,n+=1,this.createThrottledScrollHandler(),this.createThrottledResizeHandler()}var n=0,r={},o=window.Waypoint,i=window.onload;t.prototype.add=function(e){var t=e.options.horizontal?"horizontal":"vertical";this.waypoints[t][e.key]=e,this.refresh()},t.prototype.checkEmpty=function(){var e=this.Adapter.isEmptyObject(this.waypoints.horizontal),t=this.Adapter.isEmptyObject(this.waypoints.vertical);e&&t&&(this.adapter.off(".waypoints"),delete r[this.key])},t.prototype.createThrottledResizeHandler=function(){function e(){t.handleResize(),t.didResize=!1}var t=this;this.adapter.on("resize.waypoints",(function(){t.didResize||(t.didResize=!0,o.requestAnimationFrame(e))}))},t.prototype.createThrottledScrollHandler=function(){function e(){t.handleScroll(),t.didScroll=!1}var t=this;this.adapter.on("scroll.waypoints",(function(){(!t.didScroll||o.isTouch)&&(t.didScroll=!0,o.requestAnimationFrame(e))}))},t.prototype.handleResize=function(){o.Context.refreshAll()},t.prototype.handleScroll=function(){var e={},t={horizontal:{newScroll:this.adapter.scrollLeft(),oldScroll:this.oldScroll.x,forward:"right",backward:"left"},vertical:{newScroll:this.adapter.scrollTop(),oldScroll:this.oldScroll.y,forward:"down",backward:"up"}};for(var n in t){var r=t[n],o=r.newScroll>r.oldScroll?r.forward:r.backward;for(var i in this.waypoints[n]){var a=this.waypoints[n][i],s=r.oldScroll<a.triggerPoint,c=r.newScroll>=a.triggerPoint;(s&&c||!s&&!c)&&(a.queueTrigger(o),e[a.group.id]=a.group)}}for(var u in e)e[u].flushTriggers();this.oldScroll={x:t.horizontal.newScroll,y:t.vertical.newScroll}},t.prototype.innerHeight=function(){return this.element==this.element.window?o.viewportHeight():this.adapter.innerHeight()},t.prototype.remove=function(e){delete this.waypoints[e.axis][e.key],this.checkEmpty()},t.prototype.innerWidth=function(){return this.element==this.element.window?o.viewportWidth():this.adapter.innerWidth()},t.prototype.destroy=function(){var e=[];
2for(var t in this.waypoints)for(var n in this.waypoints[t])e.push(this.waypoints[t][n]);for(var r=0,o=e.length;o>r;r++)e[r].destroy()},t.prototype.refresh=function(){var e,t=this.element==this.element.window,n=t?void 0:this.adapter.offset(),r={};for(var i in this.handleScroll(),e={horizontal:{contextOffset:t?0:n.left,contextScroll:t?0:this.oldScroll.x,contextDimension:this.innerWidth(),oldScroll:this.oldScroll.x,forward:"right",backward:"left",offsetProp:"left"},vertical:{contextOffset:t?0:n.top,contextScroll:t?0:this.oldScroll.y,contextDimension:this.innerHeight(),oldScroll:this.oldScroll.y,forward:"down",backward:"up",offsetProp:"top"}}){var a=e[i];for(var s in this.waypoints[i]){var c,u,l,d,p=this.waypoints[i][s],f=p.options.offset,h=p.triggerPoint,m=0,g=null==h;p.element!==p.element.window&&(m=p.adapter.offset()[a.offsetProp]),"function"==typeof f?f=f.apply(p):"string"==typeof f&&(f=parseFloat(f),p.options.offset.indexOf("%")>-1&&(f=Math.ceil(a.contextDimension*f/100))),c=a.contextScroll-a.contextOffset,p.triggerPoint=m+c-f,u=h<a.oldScroll,l=p.triggerPoint>=a.oldScroll,d=!u&&!l,!g&&u&&l?(p.queueTrigger(a.backward),r[p.group.id]=p.group):(!g&&d||g&&a.oldScroll>=p.triggerPoint)&&(p.queueTrigger(a.forward),r[p.group.id]=p.group)}}return o.requestAnimationFrame((function(){for(var e in r)r[e].flushTriggers()})),this},t.findOrCreateByElement=function(e){return t.findByElement(e)||new t(e)},t.refreshAll=function(){for(var e in r)r[e].refresh()},t.findByElement=function(e){return r[e.waypointContextKey]},window.onload=function(){i&&i(),t.refreshAll()},o.requestAnimationFrame=function(t){(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||e).call(window,t)},o.Context=t}(),function(){"use strict";function e(e,t){return e.triggerPoint-t.triggerPoint}function t(e,t){return t.triggerPoint-e.triggerPoint}function n(e){this.name=e.name,this.axis=e.axis,this.id=this.name+"-"+this.axis,this.waypoints=[],this.clearTriggerQueues(),r[this.axis][this.name]=this}var r={vertical:{},horizontal:{}},o=window.Waypoint;n.prototype.add=function(e){this.waypoints.push(e)},n.prototype.clearTriggerQueues=function(){this.triggerQueues={up:[],down:[],left:[],right:[]}},n.prototype.flushTriggers=function(){for(var n in this.triggerQueues){var r=this.triggerQueues[n],o="up"===n||"left"===n;r.sort(o?t:e);for(var i=0,a=r.length;a>i;i+=1){var s=r[i];(s.options.continuous||i===r.length-1)&&s.trigger([n])}}this.clearTriggerQueues()},n.prototype.next=function(t){this.waypoints.sort(e);var n=o.Adapter.inArray(t,this.waypoints);return n===this.waypoints.length-1?null:this.waypoints[n+1]},n.prototype.previous=function(t){this.waypoints.sort(e);var n=o.Adapter.inArray(t,this.waypoints);return n?this.waypoints[n-1]:null},n.prototype.queueTrigger=function(e,t){this.triggerQueues[t].push(e)},n.prototype.remove=function(e){var t=o.Adapter.inArray(e,this.waypoints);t>-1&&this.waypoints.splice(t,1)},n.prototype.first=function(){return this.waypoints[0]},n.prototype.last=function(){return this.waypoints[this.waypoints.length-1]},n.findOrCreate=function(e){return r[e.axis][e.name]||new n(e)},o.Group=n}(),function(){"use strict";function e(e){this.$element=t(e)}var t=window.jQuery,n=window.Waypoint;t.each(["innerHeight","innerWidth","off","offset","on","outerHeight","outerWidth","scrollLeft","scrollTop"],(function(t,n){e.prototype[n]=function(){var e=Array.prototype.slice.call(arguments);return this.$element[n].apply(this.$element,e)}})),t.each(["extend","inArray","isEmptyObject"],(function(n,r){e[r]=t[r]})),n.adapters.push({name:"jquery",Adapter:e}),n.Adapter=e}(),function(){"use strict";function e(e){return function(){var n=[],r=arguments[0];return e.isFunction(arguments[0])&&((r=e.extend({},arguments[1])).handler=arguments[0]),this.each((function(){var o=e.extend({},r,{element:this});"string"==typeof o.context&&(o.context=e(this).closest(o.context)[0]),n.push(new t(o))})),n}}var t=window.Waypoint;window.jQuery&&(window.jQuery.fn.waypoint=e(window.jQuery)),window.Zepto&&(window.Zepto.fn.waypoint=e(window.Zepto))}()},748735:(e,t,n)=>{"use strict";n.r(t),n.d(t,{DefaultPrivacyLevel:()=>Lt,datadogRum:()=>Ri});var r={log:"log",debug:"debug",info:"info",warn:"warn",error:"error"},o=console,i={};Object.keys(r).forEach((function(e){i[e]=o[e]}));var a="Datadog Browser SDK:",s={debug:i.debug.bind(o,a),log:i.log.bind(o,a),info:i.info.bind(o,a),warn:i.warn.bind(o,a),error:i.error.bind(o,a)};function c(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{return e.apply(void 0,n)}catch(e){s.error(t,e)}}}var u,l=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},d=!1;function p(e){d=e}function f(e){return function(){return h(e,this,arguments)}}function h(e,t,n){try{return e.apply(t,n)}catch(e){if(m(e),u)try{u(e)}catch(e){m(e)}}}function m(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];d&&s.error.apply(s,l(["[MONITOR]"],e,!1))}function g(e,t){return-1!==e.indexOf(t)}function y(e){if(Array.from)return Array.from(e);var t=[];if(e instanceof Set)e.forEach((function(e){return t.push(e)}));else for(var n=0;n<e.length;n++)t.push(e[n]);return t}function v(e,t){for(var n=0;n<e.length;n+=1){var r=e[n];if(t(r,n))return r}}function b(e){return Object.keys(e).map((function(t){return e[t]}))}function _(e){return Object.keys(e).map((function(t){return[t,e[t]]}))}function w(e,t){return e.slice(0,t.length)===t}function S(e){return window.CSS&&window.CSS.escape?window.CSS.escape(e):e.replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(e,t){return t?"\0"===e?"�":"".concat(e.slice(0,-1),"\\").concat(e.charCodeAt(e.length-1).toString(16)," "):"\\".concat(e)}))}function C(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function k(){if("object"==typeof globalThis)return globalThis;Object.defineProperty(Object.prototype,"_dd_temp_",{get:function(){return this},configurable:!0});var e=_dd_temp_;return delete Object.prototype._dd_temp_,"object"!=typeof e&&(e="object"==typeof self?self:"object"==typeof window?window:{}),e}var x=/[^\u0000-\u007F]/;function E(e){return x.test(e)?void 0!==window.TextEncoder?(new TextEncoder).encode(e).length:new Blob([e]).size:e.length}function O(e,t){var n,r=k();return r.Zone&&"function"==typeof r.Zone.__symbol__&&(n=e[r.Zone.__symbol__(t)]),n||(n=e[t]),n}function T(e,t){return O(k(),"setTimeout")(f(e),t)}function A(e){O(k(),"clearTimeout")(e)}function P(e,t){return O(k(),"setInterval")(f(e),t)}function I(e){O(k(),"clearInterval")(e)}function j(e,t,n){var r,o,i=!n||void 0===n.leading||n.leading,a=!n||void 0===n.trailing||n.trailing,s=!1;return{throttled:function(){for(var n=[],c=0;c<arguments.length;c++)n[c]=arguments[c];s?r=n:(i?e.apply(void 0,n):r=n,s=!0,o=T((function(){a&&r&&e.apply(void 0,r),s=!1,r=void 0}),t))},cancel:function(){A(o),s=!1,r=void 0}}}function L(){}function N(e){return null===e?"null":Array.isArray(e)?"array":typeof e}function R(e,t,n){if(void 0===n&&(n=function(){if("undefined"!=typeof WeakSet){var e=new WeakSet;return{hasAlreadyBeenSeen:function(t){var n=e.has(t);return n||e.add(t),n}}}var t=[];return{hasAlreadyBeenSeen:function(e){var n=t.indexOf(e)>=0;
2return n||t.push(e),n}}}()),void 0===t)return e;if("object"!=typeof t||null===t)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp){var r=t.flags||[t.global?"g":"",t.ignoreCase?"i":"",t.multiline?"m":"",t.sticky?"y":"",t.unicode?"u":""].join("");return new RegExp(t.source,r)}if(!n.hasAlreadyBeenSeen(t)){if(Array.isArray(t)){for(var o=Array.isArray(e)?e:[],i=0;i<t.length;++i)o[i]=R(o[i],t[i],n);return o}var a="object"===N(e)?e:{};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=R(a[s],t[s],n));return a}}function D(e){return R(void 0,e)}function M(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r=0,o=t;r<o.length;r++){var i=o[r];null!=i&&(e=R(e,i))}return e}function F(e,t,n){if("object"!=typeof e||null===e)return JSON.stringify(e);var r=U(Object.prototype),o=U(Array.prototype),i=U(Object.getPrototypeOf(e)),a=U(e);try{return JSON.stringify(e,t,n)}catch(e){return"<error: unable to serialize object>"}finally{r(),o(),i(),a()}}function U(e){var t=e,n=t.toJSON;return n?(delete t.toJSON,function(){t.toJSON=n}):L}function B(e,t){var n;void 0===t&&(t=225280);var r=U(Object.prototype),o=U(Array.prototype),i=[],a=new WeakMap,s=$(e,"$",void 0,i,a),c=(null===(n=JSON.stringify(s))||void 0===n?void 0:n.length)||0;if(!(c>t)){for(;i.length>0&&c<t;){var u=i.shift(),l=0;if(Array.isArray(u.source))for(var d=0;d<u.source.length;d++){if(c+=void 0!==(p=$(u.source[d],u.path,d,i,a))?JSON.stringify(p).length:4,c+=l,l=1,c>t){H(t,"truncated",e);break}u.target[d]=p}else for(var d in u.source)if(Object.prototype.hasOwnProperty.call(u.source,d)){var p;if(void 0!==(p=$(u.source[d],u.path,d,i,a))&&(c+=JSON.stringify(p).length+l+d.length+3,l=1),c>t){H(t,"truncated",e);break}u.target[d]=p}}return r(),o(),s}H(t,"discarded",e)}function $(e,t,n,r,o){var i,a=function(e){var t=e;if(t&&"function"==typeof t.toJSON)try{return t.toJSON()}catch(e){}return e}(e);if(!a||"object"!=typeof a)return"bigint"==typeof(i=a)?"[BigInt] ".concat(i.toString()):"function"==typeof i?"[Function] ".concat(i.name||"unknown"):"symbol"==typeof i?"[Symbol] ".concat(i.description||i.toString()):i;var s=function(e){try{if(e instanceof Event)return{isTrusted:e.isTrusted};var t=Object.prototype.toString.call(e).match(/\[object (.*)\]/);if(t&&t[1])return"[".concat(t[1],"]")}catch(e){}return"[Unserializable]"}(a);if("[Object]"!==s&&"[Array]"!==s&&"[Error]"!==s)return s;var c=e;if(o.has(c))return"[Reference seen at ".concat(o.get(c),"]");var u=void 0!==n?"".concat(t,".").concat(n):t,l=Array.isArray(a)?[]:{};return o.set(c,u),r.push({source:a,target:l,path:u}),l}function H(e,t,n){s.warn("The data provided has been ".concat(t," as it is over the limit of ").concat(e," characters:"),n)}var z,q=function(){function e(e){this.onFirstSubscribe=e,this.observers=[]}return e.prototype.subscribe=function(e){var t=this;return!this.observers.length&&this.onFirstSubscribe&&(this.onLastUnsubscribe=this.onFirstSubscribe()||void 0),this.observers.push(e),{unsubscribe:function(){t.observers=t.observers.filter((function(t){return e!==t})),!t.observers.length&&t.onLastUnsubscribe&&t.onLastUnsubscribe()}}},e.prototype.notify=function(e){this.observers.forEach((function(t){return t(e)}))},e}();function V(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=new q((function(){var t=e.map((function(e){return e.subscribe((function(e){return n.notify(e)}))}));return function(){return t.forEach((function(e){return e.unsubscribe()}))}}));return n}var G=((z={})[0]="feature flag evaluation",z[1]="user",z[2]="global context",z[3]="logger context",z);function W(e,t){return e>3072&&(s.warn("The ".concat(G[t]," data exceeds the recommended ").concat(3,"KiB threshold. More details: https://docs.datadoghq.com/real_user_monitoring/browser/troubleshooting/#customer-data-exceeds-the-recommended-3kib-warning")),!0)}function Y(e,t){void 0===t&&(t=E);var n,r={},o=!1,i=new q,a=j((function(r){n=t(F(r)),o||(o=W(n,e))}),200).throttled,s={getBytesCount:function(){return n},getContext:function(){return D(r)},setContext:function(e){"object"===N(e)?(r=B(e),a(r)):s.clearContext(),i.notify()},setContextProperty:function(e,t){r[e]=B(t),a(r),i.notify()},removeContextProperty:function(e){delete r[e],a(r),i.notify()},clearContext:function(){r={},n=0,i.notify()},changeObservable:i};return s}var K=function(){function e(){this.buffer=[]}return e.prototype.add=function(e){this.buffer.push(e)>500&&this.buffer.splice(0,1)},e.prototype.drain=function(){this.buffer.forEach((function(e){return e()})),this.buffer.length=0},e}();function J(e){return 0!==e&&100*Math.random()<=e}function Z(e,t){return+e.toFixed(t)}function X(e){return Q(e)&&e>=0&&e<=100}function Q(e){return"number"==typeof e}var ee,te=1e3;function ne(e){return{relative:e,timeStamp:(t=e,n=oe()-performance.now(),n>pe()?Math.round(le(n,t)):function(e){return Math.round(le(pe(),e))}(t))};var t,n}function re(e){return Q(e)?Z(1e6*e,0):e}function oe(){return(new Date).getTime()}function ie(){return oe()}function ae(){return performance.now()}function se(){return{relative:ae(),timeStamp:ie()}}function ce(){return{relative:0,timeStamp:pe()}}function ue(e,t){return t-e}function le(e,t){return e+t}function de(e){return e-pe()}function pe(){return void 0===ee&&(ee=performance.timing.navigationStart),ee}function fe(e){return e?(parseInt(e,10)^16*Math.random()>>parseInt(e,10)/4).toString(16):"".concat(1e7,"-").concat(1e3,"-").concat(4e3,"-").concat(8e3,"-").concat(1e11).replace(/[018]/g,fe)}var he,me,ge,ye=/([\w-]+)\s*=\s*([^;]+)/g;function ve(e,t){for(ye.lastIndex=0;;){var n=ye.exec(e);if(!n)break;if(n[1]===t)return n[2]}}function be(e,t,n){void 0===n&&(n="");var r=e.charCodeAt(t-1),o=r>=55296&&r<=56319?t+1:t;return e.length<=o?e:"".concat(e.slice(0,o)).concat(n)}function _e(e,t,n,r){var o=new Date;o.setTime(o.getTime()+n);var i="expires=".concat(o.toUTCString()),a=r&&r.crossSite?"none":"strict",s=r&&r.domain?";domain=".concat(r.domain):"",c=r&&r.secure?";secure":"";document.cookie="".concat(e,"=").concat(t,";").concat(i,";path=/;samesite=").concat(a).concat(s).concat(c)}function we(e){return ve(document.cookie,e)}function Se(e){return he||(he=function(e){var t=new Map;for(ye.lastIndex=0;;){var n=ye.exec(e);if(!n)break;t.set(n[1],n[2])}return t}(document.cookie)),he.get(e)}function Ce(e,t){_e(e,"",0,t)}function ke(){return Boolean(window._DATADOG_SYNTHETICS_INJECTS_RUM||Se("datadog-synthetics-injects-rum"))}function xe(){var e=k().DatadogEventBridge;if(e)return{getAllowedWebViewHosts:function(){return JSON.parse(e.getAllowedWebViewHosts())},send:function(t,n){e.send(JSON.stringify({eventType:t,event:n}))}}}function Ee(e){var t;void 0===e&&(e=null===(t=k().location)||void 0===t?void 0:t.hostname);var n=xe();return!!n&&n.getAllowedWebViewHosts().some((function(t){return e===t||(n=e,r=".".concat(t),n.slice(-r.length)===r);var n,r}))}function Oe(e,t,n,r,o){return Te(e,t,[n],r,o)}function Te(e,t,n,r,o){var i=void 0===o?{}:o,a=i.once,s=i.capture,c=i.passive,u=f((function(t){(t.isTrusted||t.__ddIsTrusted||e.allowUntrustedEvents)&&(a&&p(),r(t))})),l=c?{capture:s,passive:c}:s,d=O(t,"addEventListener");function p(){var e=O(t,"removeEventListener");
2n.forEach((function(n){return e.call(t,n,u,l)}))}return n.forEach((function(e){return d.call(t,e,u,l)})),{stop:p}}!function(e){e.BEFORE_UNLOAD="beforeunload",e.CLICK="click",e.DBL_CLICK="dblclick",e.KEY_DOWN="keydown",e.LOAD="load",e.POP_STATE="popstate",e.SCROLL="scroll",e.TOUCH_START="touchstart",e.TOUCH_END="touchend",e.TOUCH_MOVE="touchmove",e.VISIBILITY_CHANGE="visibilitychange",e.PAGE_SHOW="pageshow",e.FREEZE="freeze",e.RESUME="resume",e.DOM_CONTENT_LOADED="DOMContentLoaded",e.POINTER_DOWN="pointerdown",e.POINTER_UP="pointerup",e.POINTER_CANCEL="pointercancel",e.HASH_CHANGE="hashchange",e.PAGE_HIDE="pagehide",e.MOUSE_DOWN="mousedown",e.MOUSE_UP="mouseup",e.MOUSE_MOVE="mousemove",e.FOCUS="focus",e.BLUR="blur",e.CONTEXT_MENU="contextmenu",e.RESIZE="resize",e.CHANGE="change",e.INPUT="input",e.PLAY="play",e.PAUSE="pause",e.SECURITY_POLICY_VIOLATION="securitypolicyviolation",e.SELECTION_CHANGE="selectionchange",e.STORAGE="storage"}(ge||(ge={}));var Ae=[];function Pe(e,t,n,r){void 0===r&&(r=E);var o=function(e,t){return"".concat("_dd_c","_").concat(e,"_").concat(t)}(t,n),i=Y(n,r);return a(),Ae.push(Oe(e,window,ge.STORAGE,(function(e){var t=e.key;o===t&&a()}))),i.changeObservable.subscribe((function(){localStorage.setItem(o,JSON.stringify(i.getContext()))})),i;function a(){var e=localStorage.getItem(o),t=null!==e?JSON.parse(e):{};i.setContext(t)}}function Ie(){var e="",t=0;return{isAsync:!1,get isEmpty(){return!e},write:function(n,r){var o=E(n);t+=o,e+=n,r&&r(o)},finish:function(e){e(this.finishSync())},finishSync:function(){var n={output:e,outputBytesCount:t,rawBytesCount:t,pendingData:""};return e="",t=0,n},estimateEncodedBytesCount:function(e){return e.length}}}var je="?";function Le(e){var t=[],n=He(e,"stack"),r=String(e);return n&&w(n,r)&&(n=n.slice(r.length)),n&&n.split("\n").forEach((function(e){var n=function(e){var t=De.exec(e);if(t){var n=t[2]&&0===t[2].indexOf("native"),r=t[2]&&0===t[2].indexOf("eval"),o=Me.exec(t[2]);return r&&o&&(t[2]=o[1],t[3]=o[2],t[4]=o[3]),{args:n?[t[2]]:[],column:t[4]?+t[4]:void 0,func:t[1]||je,line:t[3]?+t[3]:void 0,url:n?void 0:t[2]}}}(e)||function(e){var t=Fe.exec(e);if(t)return{args:[],column:t[3]?+t[3]:void 0,func:je,line:t[2]?+t[2]:void 0,url:t[1]}}(e)||function(e){var t=Ue.exec(e);if(t)return{args:[],column:t[4]?+t[4]:void 0,func:t[1]||je,line:+t[3],url:t[2]}}(e)||function(e){var t=Be.exec(e);if(t){var n=t[3]&&t[3].indexOf(" > eval")>-1,r=$e.exec(t[3]);return n&&r&&(t[3]=r[1],t[4]=r[2],t[5]=void 0),{args:t[2]?t[2].split(","):[],column:t[5]?+t[5]:void 0,func:t[1]||je,line:t[4]?+t[4]:void 0,url:t[3]}}}(e);n&&(!n.func&&n.line&&(n.func=je),t.push(n))})),{message:He(e,"message"),name:He(e,"name"),stack:t}}var Ne="((?:file|https?|blob|chrome-extension|native|eval|webpack|snippet|<anonymous>|\\w+\\.|\\/).*?)",Re="(?::(\\d+))",De=new RegExp("^\\s*at (.*?) ?\\(".concat(Ne).concat(Re,"?").concat(Re,"?\\)?\\s*$"),"i"),Me=new RegExp("\\((\\S*)".concat(Re).concat(Re,"\\)")),Fe=new RegExp("^\\s*at ?".concat(Ne).concat(Re,"?").concat(Re,"??\\s*$"),"i"),Ue=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Be=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|capacitor|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,$e=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function He(e,t){if("object"==typeof e&&e&&t in e){var n=e[t];return"string"==typeof n?n:void 0}}var ze,qe=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?([\s\S]*)$/,Ve="No stack, consider using an instance of Error";function Ge(e){var t=e.stackTrace,n=e.originalError,r=e.handlingStack,o=e.startClocks,i=e.nonErrorPrefix,a=e.source,s=e.handling,c=n instanceof Error,u=function(e,t,n,r){return(null==e?void 0:e.message)&&(null==e?void 0:e.name)?e.message:t?"Empty message":"".concat(n," ").concat(F(B(r)))}(t,c,i,n),l=function(e,t){return void 0!==t&&(!!e||t.stack.length>0&&(t.stack.length>1||void 0!==t.stack[0].url))}(c,t)?Ye(t):Ve,d=c?function(e,t){for(var n=e,r=[];(null==n?void 0:n.cause)instanceof Error&&r.length<10;){var o=Le(n.cause);r.push({message:n.cause.message,source:t,type:null==o?void 0:o.name,stack:o&&Ye(o)}),n=n.cause}return r.length?r:void 0}(n,a):void 0;return{startClocks:o,source:a,handling:s,handlingStack:r,originalError:n,type:null==t?void 0:t.name,message:u,stack:l,causes:d,fingerprint:We(n)}}function We(e){return e instanceof Error&&"dd_fingerprint"in e?String(e.dd_fingerprint):void 0}function Ye(e){var t=Ke(e);return e.stack.forEach((function(e){var n="?"===e.func?"<anonymous>":e.func,r=e.args&&e.args.length>0?"(".concat(e.args.join(", "),")"):"",o=e.line?":".concat(e.line):"",i=e.line&&e.column?":".concat(e.column):"";t+="\n at ".concat(n).concat(r," @ ").concat(e.url).concat(o).concat(i)})),t}function Ke(e){return"".concat(e.name||"Error",": ").concat(e.message)}function Je(){var e,t=new Error;if(!t.stack)try{throw t}catch(e){}return h((function(){var n=Le(t);n.stack=n.stack.slice(2),e=Ye(n)})),e}function Ze(e){var t=C({},e);return["id","name","email"].forEach((function(e){e in t&&(t[e]=String(t[e]))})),t}!function(e){e.PAGEHIDE="pagehide",e.FEATURE_FLAGS="feature_flags",e.RESOURCE_PAGE_STATES="resource_page_states",e.COLLECT_FLUSH_REASON="collect_flush_reason",e.SCROLLMAP="scrollmap",e.DISABLE_REPLAY_INLINE_CSS="disable_replay_inline_css"}(ze||(ze={}));var Xe=new Set;function Qe(e){return Xe.has(e)}function et(e){return C({},e)}function tt(e,t){return Object.keys(e).some((function(n){return e[n]===t}))}function nt(e){return 0===Object.keys(e).length}var rt,ot=9e5;function it(){return null!=rt?rt:rt=function(e){var t;void 0===e&&(e=window);var n=e.navigator.userAgent;return e.chrome||/HeadlessChrome/.test(n)?1:0===(null===(t=e.navigator.vendor)||void 0===t?void 0:t.indexOf("Apple"))||/safari/i.test(n)&&!/chrome|android/i.test(n)?2:e.document.documentMode?0:3}()}var at="_dd_s",st=/^([a-z]+)=([a-z0-9-]+)$/;function ct(e){return nt(e)}function ut(e){e.expire=String(oe()+ot)}function lt(e){return _(e).map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n)})).join("&")}function dt(e){var t={};return function(e){return!!e&&(-1!==e.indexOf("&")||st.test(e))}(e)&&e.split("&").forEach((function(e){var n=st.exec(e);if(null!==n){var r=n[1],o=n[2];t[r]=o}})),t}function pt(){return dt(we(at))}function ft(e){return function(){Ce(at,e)}}function ht(e){localStorage.setItem(at,lt(e))}function mt(){return dt(localStorage.getItem(at))}function gt(){localStorage.removeItem(at)}var yt,vt=[];function bt(e,t,n){var r;void 0===n&&(n=0);var o=t.isLockEnabled,i=t.retrieveSession,a=t.persistSession,s=t.clearSession;if(yt||(yt=e),e===yt)if(o&&n>=100)wt(t);else{var c,u=i();if(o){if(u.lock)return void _t(e,t,n);if(c=fe(),u.lock=c,a(u),(u=i()).lock!==c)return void _t(e,t,n)}var l=e.process(u);if(o&&(u=i()).lock!==c)_t(e,t,n);else{if(l&&(ct(l)?s():(ut(l),a(l))),o&&(!l||!ct(l))){if((u=i()).lock!==c)return void _t(e,t,n);delete u.lock,a(u),l=u}null===(r=e.after)||void 0===r||r.call(e,l||u),wt(t)}}else vt.push(e)}function _t(e,t,n){T((function(){bt(e,t,n+1)}),10)}function wt(e){yt=void 0;var t=vt.shift();t&&bt(t,e)}function St(e){var t=function(e){var t=function(e){var t={};return t.secure=!!e.useSecureSessionCookie||!!e.useCrossSiteSessionCookie,t.crossSite=!!e.useCrossSiteSessionCookie,e.trackSessionAcrossSubdomains&&(t.domain=function(){if(void 0===me){for(var e="dd_site_test_".concat(fe()),t=window.location.hostname.split("."),n=t.pop();t.length&&!we(e);)n="".concat(t.pop(),".").concat(n),_e(e,"test",te,{domain:n});Ce(e,{domain:n}),me=n}return me}()),t}(e);return function(e){if(void 0===document.cookie||null===document.cookie)return!1;try{var t="dd_cookie_test_".concat(fe()),n="test";_e(t,n,6e4,e);var r=we(t)===n;return Ce(t,e),r}catch(e){return s.error(e),!1}}
2(t)?{type:"Cookie",cookieOptions:t}:void 0}(e);return!t&&e.allowFallbackToLocalStorage&&(t=function(){try{var e=fe(),t="".concat("_dd_test_").concat(e);localStorage.setItem(t,e);var n=localStorage.getItem(t);return localStorage.removeItem(t),e===n?{type:"LocalStorage"}:void 0}catch(e){return}}()),t}function Ct(e,t,n){var r,o,i,a,s=new q,c=new q,u="Cookie"===e.type?(o=e.cookieOptions,a={isLockEnabled:1===it(),persistSession:(i=o,function(e){_e(at,lt(e),ot,i)}),retrieveSession:pt,clearSession:ft(o)},function(e){if(!Se(at)){var t=Se("_dd"),n=Se("_dd_r"),r=Se("_dd_l"),o={};t&&(o.id=t),r&&/^[01]$/.test(r)&&(o.logs=r),n&&/^[012]$/.test(n)&&(o.rum=n),ct(o)||(ut(o),e.persistSession(o))}}(a),a):{isLockEnabled:!1,persistSession:ht,retrieveSession:mt,clearSession:gt},l=u.clearSession,d=u.retrieveSession,p=P((function(){bt({process:function(e){return g(e)?void 0:{}},after:h},u)}),1e3),f=g(r=d())?r:{};function h(e){return g(e)||(e={}),m()&&(function(e){return f.id!==e.id||f[t]!==e[t]}(e)?(f={},c.notify()):f=e),e}function m(){return void 0!==f[t]}function g(e){return(void 0===e.created||oe()-Number(e.created)<144e5)&&(void 0===e.expire||oe()<Number(e.expire))}return{expandOrRenewSession:j((function(){var e;bt({process:function(r){var o=h(r);return e=function(e){var r=n(e[t]),o=r.trackingType,i=r.isTracked;return e[t]=o,i&&!e.id&&(e.id=fe(),e.created=String(oe())),i}(o),o},after:function(t){e&&!m()&&function(e){f=e,s.notify()}(t),f=t}},u)}),1e3).throttled,expandSession:function(){bt({process:function(e){return m()?h(e):void 0}},u)},getSession:function(){return f},renewObservable:s,expireObservable:c,expire:function(){l(),h({})},stop:function(){I(p)}}}function kt(e){return xt(e,function(e){if(e.origin&&"null"!==e.origin)return e.origin;var t=e.host.replace(/(:80|:443)$/,"");return"".concat(e.protocol,"//").concat(t)}(window.location)).href}function xt(e,t){var n=function(){if(void 0===Et)try{var e=new Ot("http://test/path");Et="http://test/path"===e.href}catch(e){Et=!1}return Et?Ot:void 0}();if(n)try{return void 0!==t?new n(e,t):new n(e)}catch(n){throw new Error("Failed to construct URL: ".concat(String(n)," ").concat(F({url:e,base:t})))}if(void 0===t&&!/:/.test(e))throw new Error("Invalid URL: '".concat(e,"'"));var r=document,o=r.createElement("a");if(void 0!==t){var i=(r=document.implementation.createHTMLDocument("")).createElement("base");i.href=t,r.head.appendChild(i),r.body.appendChild(o)}return o.href=e,o}var Et,Ot=URL;var Tt="datad0g.com",At="datadoghq.com";function Pt(e,t,n){var r=function(e,t){var n="/api/v2/".concat(t),r=e.proxy;if("string"==typeof r){var o=kt(r);return function(e){return"".concat(o,"?ddforward=").concat(encodeURIComponent("".concat(n,"?").concat(e)))}}if("function"==typeof r)return function(e){return r({path:n,parameters:e})};var i=function(e){var t=e.site,n=void 0===t?At:t,r=e.internalAnalyticsSubdomain;if(r&&n===At)return"".concat(r,".").concat(At);var o=n.split("."),i=o.pop();return"browser-intake-".concat(o.join("-"),".").concat(i)}(e);return function(e){return"https://".concat(i).concat(n,"?").concat(e)}}(e,t);return{build:function(o,i){var a=function(e,t,n,r,o){var i=e.clientToken,a=e.internalAnalyticsSubdomain,s=o.retry,c=o.flushReason,u=o.encoding,l=["sdk_version:".concat("5.4.0"),"api:".concat(r)].concat(n);c&&Qe(ze.COLLECT_FLUSH_REASON)&&l.push("flush_reason:".concat(c)),s&&l.push("retry_count:".concat(s.count),"retry_after:".concat(s.lastFailureStatus));var d=["ddsource=browser","ddtags=".concat(encodeURIComponent(l.join(","))),"dd-api-key=".concat(i),"dd-evp-origin-version=".concat(encodeURIComponent("5.4.0")),"dd-evp-origin=browser","dd-request-id=".concat(fe())];return u&&d.push("dd-evp-encoding=".concat(u)),"rum"===t&&d.push("batch_time=".concat(ie())),a&&d.reverse(),d.join("&")}(e,t,n,o,i);return r(a)},urlPrefix:r(""),trackType:t}}var It=/[^a-z0-9_:./-]/;function jt(e,t){var n=200-e.length-1;(t.length>n||It.test(t))&&s.warn("".concat(e," value doesn't meet tag requirements and will be sanitized"));var r=t.replace(/,/g,"_");return"".concat(e,":").concat(r)}var Lt={ALLOW:"allow",MASK:"mask",MASK_USER_INPUT:"mask-user-input"};function Nt(e){var t,n,r;if(e&&e.clientToken)if(void 0===e.sessionSampleRate||X(e.sessionSampleRate))if(void 0===e.telemetrySampleRate||X(e.telemetrySampleRate)){if(void 0===e.telemetryConfigurationSampleRate||X(e.telemetryConfigurationSampleRate))return Array.isArray(e.enableExperimentalFeatures)&&e.enableExperimentalFeatures.filter((function(e){return tt(ze,e)}
2)).forEach((function(e){Xe.add(e)})),C({beforeSend:e.beforeSend&&c(e.beforeSend,"beforeSend threw an error:"),sessionStoreStrategyType:St(e),sessionSampleRate:null!==(t=e.sessionSampleRate)&&void 0!==t?t:100,telemetrySampleRate:null!==(n=e.telemetrySampleRate)&&void 0!==n?n:20,telemetryConfigurationSampleRate:null!==(r=e.telemetryConfigurationSampleRate)&&void 0!==r?r:5,service:e.service,silentMultipleInit:!!e.silentMultipleInit,allowUntrustedEvents:!!e.allowUntrustedEvents,batchBytesLimit:16384,eventRateLimiterThreshold:3e3,maxTelemetryEventsPerPage:15,flushTimeout:3e4,batchMessagesLimit:50,messageBytesLimit:262144},function(e){var t=function(e){var t=e.env,n=e.service,r=e.version,o=e.datacenter,i=[];return t&&i.push(jt("env",t)),n&&i.push(jt("service",n)),r&&i.push(jt("version",r)),o&&i.push(jt("datacenter",o)),i}(e),n=function(e,t){return{logsEndpointBuilder:Pt(e,"logs",t),rumEndpointBuilder:Pt(e,"rum",t),sessionReplayEndpointBuilder:Pt(e,"replay",t)}}(e,t),r=b(n).map((function(e){return e.urlPrefix})),o=function(e,t,n){if(e.replica){var r=C({},e,{site:At,clientToken:e.replica.clientToken}),o={logsEndpointBuilder:Pt(r,"logs",n),rumEndpointBuilder:Pt(r,"rum",n)};return t.push.apply(t,b(o).map((function(e){return e.urlPrefix}))),C({applicationId:e.replica.applicationId},o)}}(e,r,t);return C({isIntakeUrl:function(e){return r.some((function(t){return 0===e.indexOf(t)}))},replica:o,site:e.site||At},n)}(e));s.error("Telemetry Configuration Sample Rate should be a number between 0 and 100")}else s.error("Telemetry Sample Rate should be a number between 0 and 100");else s.error("Session Sample Rate should be a number between 0 and 100");else s.error("Client Token is not configured, we will not send any data.")}function Rt(e){var t=N(e);return"string"===t||"function"===t||e instanceof RegExp}function Dt(e,t,n){return void 0===n&&(n=!1),e.some((function(e){try{if("function"==typeof e)return e(t);if(e instanceof RegExp)return e.test(t);if("string"==typeof e)return n?w(t,e):e===t}catch(e){s.error(e)}return!1}))}function Mt(e){0!==e.status||e.isAborted||(e.traceId=void 0,e.spanId=void 0,e.traceSampled=void 0)}function Ft(e,t,n,r){if(void 0!==Ut()&&n.findTrackedSession()){var o,i,a,s,c,u=v(e.allowedTracingUrls,(function(e){return Dt([e.match],t.url,!0)}));u&&(t.traceId=new Bt,t.spanId=new Bt,t.traceSampled=!Q(e.traceSampleRate)||J(e.traceSampleRate),r((o=t.traceId,i=t.spanId,a=t.traceSampled,s=u.propagatorTypes,c={},s.forEach((function(e){switch(e){case"datadog":C(c,{"x-datadog-origin":"rum","x-datadog-parent-id":i.toDecimalString(),"x-datadog-sampling-priority":a?"1":"0","x-datadog-trace-id":o.toDecimalString()});break;case"tracecontext":C(c,{traceparent:"00-0000000000000000".concat(o.toPaddedHexadecimalString(),"-").concat(i.toPaddedHexadecimalString(),"-0").concat(a?"1":"0")});break;case"b3":C(c,{b3:"".concat(o.toPaddedHexadecimalString(),"-").concat(i.toPaddedHexadecimalString(),"-").concat(a?"1":"0")});break;case"b3multi":C(c,{"X-B3-TraceId":o.toPaddedHexadecimalString(),"X-B3-SpanId":i.toPaddedHexadecimalString(),"X-B3-Sampled":a?"1":"0"})}})),c)))}}function Ut(){return window.crypto||window.msCrypto}var Bt=function(){function e(){this.buffer=new Uint8Array(8),Ut().getRandomValues(this.buffer),this.buffer[0]=127&this.buffer[0]}return e.prototype.toString=function(e){var t=this.readInt32(0),n=this.readInt32(4),r="";do{var o=t%e*4294967296+n;t=Math.floor(t/e),n=Math.floor(o/e),r=(o%e).toString(e)+r}while(t||n);return r},e.prototype.toDecimalString=function(){return this.toString(10)},e.prototype.toPaddedHexadecimalString=function(){var e=this.toString(16);return Array(17-e.length).join("0")+e},e.prototype.readInt32=function(e){return 16777216*this.buffer[e]+(this.buffer[e+1]<<16)+(this.buffer[e+2]<<8)+this.buffer[e+3]},e}(),$t=["tracecontext","datadog"];function Ht(e){var t=new Set;return Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0&&e.allowedTracingUrls.forEach((function(e){Rt(e)?$t.forEach((function(e){return t.add(e)})):"object"===N(e)&&Array.isArray(e.propagatorTypes)&&e.propagatorTypes.forEach((function(e){return t.add(e)}))})),y(t)}function zt(e,t,n){return{context:e.getContext(),user:t.getContext(),hasReplay:!!n.isRecording()||void 0}}function qt(e,t){var n=window.__ddBrowserSdkExtensionCallback;n&&n({type:e,payload:t})}var Vt,Gt="configuration",Wt=["https://www.datadoghq-browser-agent.com","https://www.datad0g-browser-agent.com","https://d3uc069fcn7uxw.cloudfront.net","https://d20xtzwzcl0ceb.cloudfront.net","http://localhost","<anonymous>"],Yt=["ddog-gov.com"],Kt={maxEventsPerPage:0,sentEventCount:0,telemetryEnabled:!1,telemetryConfigurationEnabled:!1};function Jt(e,t){m(r.debug,e,t),Xt(C({type:"log",message:e,status:"debug"},t))}function Zt(e,t){Xt(C({type:"log",status:"error"},function(e){if(e instanceof Error){var t=Le(e);return{error:{kind:t.name,stack:Ye(Qt(t))},message:t.message}}return{error:{stack:Ve},message:"".concat("Uncaught"," ").concat(F(e))}}(e),t))}function Xt(e){Vt&&Kt.sentEventCount<Kt.maxEventsPerPage&&(Kt.sentEventCount+=1,Vt(e))}function Qt(e){return e.stack=e.stack.filter((function(e){return!e.url||Wt.some((function(t){return w(e.url,t)}))})),e}var en={HIDDEN:"visibility_hidden",UNLOADING:"before_unload",PAGEHIDE:"page_hide",FROZEN:"page_frozen"};function tn(e){return g(b(en),e)}function nn(){var e,t=window;if(t.Zone&&(e=O(t,"MutationObserver"),t.MutationObserver&&e===t.MutationObserver)){var n=O(new t.MutationObserver(L),"originalInstance");e=n&&n.constructor}return e||(e=t.MutationObserver),e}function rn(e,t,n){if(document.readyState===t||"complete"===document.readyState)n();else{var r="complete"===t?ge.LOAD:ge.DOM_CONTENT_LOADED;Oe(e,window,r,n,{once:!0})}}var on,an="initial_document",sn=[["document",function(e){return an===e}],["xhr",function(e){return"xmlhttprequest"===e}],["fetch",function(e){return"fetch"===e}],["beacon",function(e){return"beacon"===e}],["css",function(e,t){return/\.css$/i.test(t)}],["js",function(e,t){return/\.js$/i.test(t)}],["image",function(e,t){return g(["image","img","icon"],e)||null!==/\.(gif|jpg|jpeg|tiff|png|svg|ico)$/i.exec(t)}],["font",function(e,t){return null!==/\.(woff|eot|woff2|ttf)$/i.exec(t)}],["media",function(e,t){return g(["audio","video"],e)||null!==/\.(mp3|mp4)$/i.exec(t)}]];function cn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=1;n<e.length;n+=1)if(e[n-1]>e[n])return!1;return!0}function un(e){var t=e.duration,n=e.startTime,r=e.responseEnd;return re(0===t&&n<r?ue(n,r):t)}function ln(e){var t=dn(e);if(t){var n=t.startTime,r=t.fetchStart,o=t.redirectStart,i=t.redirectEnd,a=t.domainLookupStart,s=t.domainLookupEnd,c=t.connectStart,u=t.secureConnectionStart,l=t.connectEnd,d=t.requestStart,p=t.responseStart,f={download:fn(n,p,t.responseEnd),first_byte:fn(n,d,p)};return l!==r&&(f.connect=fn(n,c,l),cn(c,u,l)&&(f.ssl=fn(n,u,l))),s!==r&&(f.dns=fn(n,a,s)),pn(e)&&(f.redirect=fn(n,o,i)),f}}function dn(e){if(cn(e.startTime,e.fetchStart,e.domainLookupStart,e.domainLookupEnd,e.connectStart,e.connectEnd,e.requestStart,e.responseStart,e.responseEnd)){if(!pn(e))return e;var t=e.redirectStart,n=e.redirectEnd;if(t<e.startTime&&(t=e.startTime),n<e.startTime&&(n=e.fetchStart),cn(e.startTime,t,n,e.fetchStart))return C({},e,{redirectEnd:n,redirectStart:t})}}function pn(e){return e.fetchStart!==e.startTime}function fn(e,t,n){return{duration:re(ue(t,n)),start:re(ue(e,t))}}function hn(e){if(e.startTime<e.responseStart)return e.decodedBodySize}function mn(e,t){return t&&!e.isIntakeUrl(t)}
2function gn(e){return e.nodeType===Node.TEXT_NODE}function yn(e){return e.nodeType===Node.ELEMENT_NODE}function vn(e){return yn(e)&&Boolean(e.shadowRoot)}function bn(e){var t=e;return!!t.host&&t.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&yn(t.host)}function _n(e,t){e.childNodes.forEach(t),vn(e)&&t(e.shadowRoot)}function wn(e){return bn(e)?e.host:e.parentNode}function Sn(e){var t=function(e){var t=e.querySelector("meta[name=dd-trace-id]"),n=e.querySelector("meta[name=dd-trace-time]");return Cn(t&&t.content,n&&n.content)}(e)||function(e){var t=function(e){for(var t=0;t<e.childNodes.length;t+=1)if(n=kn(e.childNodes[t]))return n;if(e.body)for(t=e.body.childNodes.length-1;t>=0;t-=1){var n,r=e.body.childNodes[t];if(n=kn(r))return n;if(!gn(r))break}}(e);if(t)return Cn(ve(t,"trace-id"),ve(t,"trace-time"))}(e);if(t&&!(t.traceTime<=oe()-12e4))return t.traceId}function Cn(e,t){var n=t&&Number(t);if(e&&n)return{traceId:e,traceTime:n}}function kn(e){if(e&&function(e){return e.nodeType===Node.COMMENT_NODE}(e)){var t=/^\s*DATADOG;(.*?)\s*$/.exec(e.data);if(t)return t[1]}}function xn(){return void 0!==window.performance&&"getEntries"in performance}function En(e){return window.PerformanceObserver&&void 0!==PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes(e)}function On(e,t){if(function(e,t){rn(e,"interactive",(function(){var e,n={entryType:on.RESOURCE,initiatorType:an,traceId:Sn(document),toJSON:function(){return C({},e,{toJSON:void 0})}};if(En(on.NAVIGATION)&&performance.getEntriesByType(on.NAVIGATION).length>0){var r=performance.getEntriesByType(on.NAVIGATION)[0];e=C(r.toJSON(),n)}else{var o=Tn();e=C(o,{decodedBodySize:0,duration:o.responseEnd,name:window.location.href,startTime:0},n)}t(e)}))}(t,(function(n){An(e,t,[n])})),xn()){var n=performance.getEntries();
2T((function(){return An(e,t,n)}))}if(window.PerformanceObserver){var r=f((function(n){return An(e,t,n.getEntries())})),o=[on.RESOURCE,on.NAVIGATION,on.LONG_TASK,on.PAINT],i=[on.LARGEST_CONTENTFUL_PAINT,on.FIRST_INPUT,on.LAYOUT_SHIFT,on.EVENT];try{i.forEach((function(e){new window.PerformanceObserver(r).observe({type:e,buffered:!0,durationThreshold:40})}))}catch(e){o.push.apply(o,i)}new PerformanceObserver(r).observe({entryTypes:o}),xn()&&"addEventListener"in performance&&Oe(t,performance,"resourcetimingbufferfull",(function(){performance.clearResourceTimings()}))}En(on.NAVIGATION)||function(e,t){function n(){t(C(Tn(),{entryType:on.NAVIGATION}))}rn(e,"complete",(function(){T(n)}))}(t,(function(n){An(e,t,[n])})),En(on.FIRST_INPUT)||function(e,t){var n=oe(),r=!1,o=Te(e,window,[ge.CLICK,ge.MOUSE_DOWN,ge.KEY_DOWN,ge.TOUCH_START,ge.POINTER_DOWN],(function(t){if(t.cancelable){var n={entryType:on.FIRST_INPUT,processingStart:ae(),processingEnd:ae(),startTime:t.timeStamp,duration:0,name:""};t.type===ge.POINTER_DOWN?function(e,t){Te(e,window,[ge.POINTER_UP,ge.POINTER_CANCEL],(function(e){e.type===ge.POINTER_UP&&i(t)}),{once:!0})}(e,n):i(n)}}),{passive:!0,capture:!0}).stop;function i(e){if(!r){r=!0,o();var i=e.processingStart-e.startTime;i>=0&&i<oe()-n&&t(e)}}}(t,(function(n){An(e,t,[n])}))}function Tn(){var e={},t=performance.timing;for(var n in t)if(Q(t[n])){var r=n,o=t[r];e[r]=0===o?0:de(o)}return e}function An(e,t,n){var r=n.filter((function(e){return tt(on,e.entryType)})).filter((function(e){return!function(e){return e.entryType===on.NAVIGATION&&e.loadEventEnd<=0}(e)&&!function(e,t){return t.entryType===on.RESOURCE&&!mn(e,t.name)}(t,e)}));r.length&&e.notify(0,r)}!function(e){e.EVENT="event",e.FIRST_INPUT="first-input",e.LARGEST_CONTENTFUL_PAINT="largest-contentful-paint",e.LAYOUT_SHIFT="layout-shift",e.LONG_TASK="longtask",e.NAVIGATION="navigation",e.PAINT="paint",e.RESOURCE="resource"}(on||(on={}));var Pn="agent";function In(e,t,n){var r=0,o=!1;return{isLimitReached:function(){if(0===r&&T((function(){r=0}),6e4),(r+=1)<=t||o)return o=!1,!1;if(r===t+1){o=!0;try{n({message:"Reached max number of ".concat(e,"s by minute: ").concat(t),source:Pn,startClocks:se()})}finally{o=!1}}return!0}}}function jn(e,t,n){for(var r=e,o=t.split("."),i=0;i<o.length;i+=1){var a=o[i];if(!Ln(r))return;i!==o.length-1?r=r[a]:r[a]=n}}function Ln(e){return"object"===N(e)}function Nn(e,t){return Ln(e)&&Object.prototype.hasOwnProperty.call(e,t)}var Rn,Dn={"view.name":"string","view.url":"string","view.referrer":"string"},Mn={context:"object"};function Fn(e,t,n,r,o,i,a,c,u){var l,d;(l={}).view=Dn,l.error=C({"error.message":"string","error.stack":"string","error.resource.url":"string","error.fingerprint":"string"},Mn,Dn),l.resource=C({"resource.url":"string"},Mn,Dn),l.action=C({"action.target.name":"string"},Mn,Dn),l.long_task=C({},Mn,Dn),Rn=l;var p=((d={}).error=In("error",e.eventRateLimiterThreshold,u),d.action=In("action",e.eventRateLimiterThreshold,u),d),f=function(){var e,t="string"==typeof(e=window._DATADOG_SYNTHETICS_PUBLIC_ID||Se("datadog-synthetics-public-id"))?e:void 0,n=function(){var e=window._DATADOG_SYNTHETICS_RESULT_ID||Se("datadog-synthetics-result-id");return"string"==typeof e?e:void 0}();if(t&&n)return{test_id:t,result_id:n,injected:ke()}}(),h=function(){var e,t=null===(e=window.Cypress)||void 0===e?void 0:e.env("traceId");if("string"==typeof t)return{test_execution_id:t}}();t.subscribe(10,(function(u){var l,d=u.startTime,m=u.rawRumEvent,g=u.domainContext,y=u.savedCommonContext,v=u.customerContext,b=r.findView(d),w=o.findUrl(d),S=n.findTrackedSession(d);if(S&&b&&w){var C=y||c(),k=i.findActionId(d),x=M({_dd:{format_version:2,drift:Math.round(oe()-le(pe(),performance.now())),configuration:{session_sample_rate:Z(e.sessionSampleRate,3),session_replay_sample_rate:Z(e.sessionReplaySampleRate,3)},browser_sdk_version:Ee()?"5.4.0":void 0},application:{id:e.applicationId},date:ie(),service:b.service||e.service,version:b.version||e.version,source:"browser",session:{id:S.id,type:f?"synthetics":h?"ci_test":"user"},view:{id:b.id,name:b.name,url:w.url,referrer:w.referrer},action:(l=m,-1!==["error","resource","long_task"].indexOf(l.type)&&k?{id:k}:void 0),synthetics:f,ci_test:h,display:a.get()},m);x.context=M(C.context,v),"has_replay"in x.session||(x.session.has_replay=C.hasReplay),"view"===x.type&&(x.session.sampled_for_replay=S.sessionReplayAllowed),nt(C.user)||(x.usr=C.user),function(e,t,n,r){var o;if(t){var i=function(e,t,n){var r=D(e),o=n(r);return _(t).forEach((function(t){var n=t[0],o=t[1],i=function(e,t){for(var n=e,r=0,o=t.split(".");r<o.length;r++){var i=o[r];if(!Nn(n,i))return;n=n[i]}return n}(r,n),a=N(i);a===o?jn(e,n,B(i)):"object"!==o||"undefined"!==a&&"null"!==a||jn(e,n,{})})),o}(e,Rn[e.type],(function(e){return t(e,n)}));if(!1===i&&"view"!==e.type)return!1;!1===i&&s.warn("Can't dismiss view events using beforeSend!")}return!(null===(o=r[e.type])||void 0===o?void 0:o.isLimitReached())}(x,e.beforeSend,g,p)&&(nt(x.context)&&delete x.context,t.notify(11,x))}}))}var Un,Bn=function(){function e(){this.callbacks={}}return e.prototype.notify=function(e,t){var n=this.callbacks[e];
2n&&n.forEach((function(e){return e(t)}))},e.prototype.subscribe=function(e,t){var n=this;return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),{unsubscribe:function(){n.callbacks[e]=n.callbacks[e].filter((function(e){return t!==e}))}}},e}(),$n=1/0,Hn=function(){function e(e,t){var n=this;this.expireDelay=e,this.maxEntries=t,this.entries=[],this.clearOldValuesInterval=P((function(){return n.clearOldValues()}),6e4)}return e.prototype.add=function(e,t){var n=this,r={value:e,startTime:t,endTime:$n,remove:function(){var e=n.entries.indexOf(r);e>=0&&n.entries.splice(e,1)},close:function(e){r.endTime=e}};return this.maxEntries&&this.entries.length>=this.maxEntries&&this.entries.pop(),this.entries.unshift(r),r},e.prototype.find=function(e){void 0===e&&(e=$n);for(var t=0,n=this.entries;t<n.length;t++){var r=n[t];if(r.startTime<=e){if(e<=r.endTime)return r.value;break}}},e.prototype.closeActive=function(e){var t=this.entries[0];t&&t.endTime===$n&&t.close(e)},e.prototype.findAll=function(e,t){void 0===e&&(e=$n),void 0===t&&(t=0);var n=le(e,t);return this.entries.filter((function(t){return t.startTime<=n&&e<=t.endTime})).map((function(e){return e.value}))},e.prototype.reset=function(){this.entries=[]},e.prototype.stop=function(){I(this.clearOldValuesInterval)},e.prototype.clearOldValues=function(){for(var e=ae()-this.expireDelay;this.entries.length>0&&this.entries[this.entries.length-1].endTime<e;)this.entries.pop()},e}();function zn(e,t,n){var r=e[t],o=n(r),i=function(){if("function"==typeof o)return o.apply(this,arguments)};return e[t]=i,{stop:function(){e[t]===i?e[t]=r:o=r}}}function qn(e,t,n){var r=n.before,o=n.after;return zn(e,t,(function(e){return function(){var t,n=arguments;return r&&h(r,this,n),"function"==typeof e&&(t=e.apply(this,n)),o&&h(o,this,n),t}}))}function Vn(e,t,n){var r=Object.getOwnPropertyDescriptor(e,t);if(!r||!r.set||!r.configurable)return{stop:L};var o=function(e,t){T((function(){n(e,t)}),0)},i=function(e){r.set.call(this,e),o(this,e)};return Object.defineProperty(e,t,{set:i}),{stop:function(){var n;(null===(n=Object.getOwnPropertyDescriptor(e,t))||void 0===n?void 0:n.set)===i?Object.defineProperty(e,t,r):o=L}}}var Gn,Wn=new WeakMap;function Yn(e){return Un||(Un=function(e){var t=new q((function(){var n=qn(XMLHttpRequest.prototype,"open",{before:Kn}).stop,r=qn(XMLHttpRequest.prototype,"send",{before:function(){Jn.call(this,e,t)}}).stop,o=qn(XMLHttpRequest.prototype,"abort",{before:Zn}).stop;return function(){n(),r(),o()}}));return t}(e)),Un}function Kn(e,t){Wn.set(this,{state:"open",method:e.toUpperCase(),url:kt(String(t))})}function Jn(e,t){var n=this,r=Wn.get(this);if(r){var o=r;o.state="start",o.startClocks=se(),o.isAborted=!1,o.xhr=this;var i=!1,a=qn(this,"onreadystatechange",{before:function(){this.readyState===XMLHttpRequest.DONE&&s()}}).stop,s=function(){if(c(),a(),!i){i=!0;var e=r;e.state="complete",e.duration=ue(o.startClocks.timeStamp,ie()),e.status=n.status,t.notify(et(e))}},c=Oe(e,this,"loadend",s).stop;t.notify(o)}}function Zn(){var e=Wn.get(this);e&&(e.isAborted=!0)}function Xn(e,t,n){var r=n&&n.method||t instanceof Request&&t.method,o=r?r.toUpperCase():"GET",i=t instanceof Request?t.url:kt(String(t)),a={state:"start",init:n,input:t,method:o,startClocks:se(),url:i};return e.notify(a),a}function Qn(e,t,n){var r=function(t){var r=n;r.state="resolve","stack"in t||t instanceof Error?(r.status=0,r.isAborted=t instanceof DOMException&&t.code===DOMException.ABORT_ERR,r.error=t):"status"in t&&(r.response=t,r.responseType=t.type,r.status=t.status,r.isAborted=!1),e.notify(r)};t.then(f(r),f(r))}var er=1;function tr(e,t,n){var r=function(e,t){return{clearTracingIfNeeded:Mt,traceFetch:function(n){return Ft(e,n,t,(function(e){var t;if(n.input instanceof Request&&!(null===(t=n.init)||void 0===t?void 0:t.headers))n.input=new Request(n.input),Object.keys(e).forEach((function(t){n.input.headers.append(t,e[t])}));else{n.init=et(n.init);var r=[];n.init.headers instanceof Headers?n.init.headers.forEach((function(e,t){r.push([t,e])})):Array.isArray(n.init.headers)?n.init.headers.forEach((function(e){r.push(e)}
2)):n.init.headers&&Object.keys(n.init.headers).forEach((function(e){r.push([e,n.init.headers[e]])})),n.init.headers=r.concat(_(e))}}))},traceXhr:function(n,r){return Ft(e,n,t,(function(e){Object.keys(e).forEach((function(t){r.setRequestHeader(t,e[t])}))}))}}}(t,n);!function(e,t,n){Yn(t).subscribe((function(r){var o=r;if(mn(t,o.url))switch(o.state){case"start":n.traceXhr(o,o.xhr),o.requestIndex=nr(),e.notify(5,{requestIndex:o.requestIndex,url:o.url});break;case"complete":n.clearTracingIfNeeded(o),e.notify(6,{duration:o.duration,method:o.method,requestIndex:o.requestIndex,spanId:o.spanId,startClocks:o.startClocks,status:o.status,traceId:o.traceId,traceSampled:o.traceSampled,type:"xhr",url:o.url,xhr:o.xhr})}}))}(e,t,r),function(e,t,n){var r;(Gn||(r=new q((function(){if(window.fetch)return zn(window,"fetch",(function(e){return function(t,n){var o,i=h(Xn,null,[r,t,n]);return i?(o=e.call(this,i.input,i.init),h(Qn,null,[r,o,i])):o=e.call(this,t,n),o}})).stop})),Gn=r),Gn).subscribe((function(r){var o=r;if(mn(t,o.url))switch(o.state){case"start":n.traceFetch(o),o.requestIndex=nr(),e.notify(5,{requestIndex:o.requestIndex,url:o.url});break;case"resolve":!function(e,t){var n=e.response&&function(e){try{return e.clone()}catch(e){return}}(e.response);n&&n.body?function(e,t,n){var r=e.getReader(),o=[],i=0;function a(){if(r.cancel().catch(L),n.collectStreamBody){var e;if(1===o.length)e=o[0];else{e=new Uint8Array(i);var a=0;o.forEach((function(t){e.set(t,a),a+=t.length}))}e.slice(0,n.bytesLimit),e.length>n.bytesLimit}t()}!function e(){r.read().then(f((function(t){t.done?a():(n.collectStreamBody&&o.push(t.value),(i+=t.value.length)>n.bytesLimit?a():e())})),f((function(e){return t()})))}()}(n.body,(function(){t(ue(e.startClocks.timeStamp,ie()))}),{bytesLimit:Number.POSITIVE_INFINITY,collectStreamBody:!1}):t(ue(e.startClocks.timeStamp,ie()))}(o,(function(t){n.clearTracingIfNeeded(o),e.notify(6,{duration:t,method:o.method,requestIndex:o.requestIndex,responseType:o.responseType,spanId:o.spanId,startClocks:o.startClocks,status:o.status,traceId:o.traceId,traceSampled:o.traceSampled,type:"fetch",url:o.url,response:o.response,init:o.init,input:o.input})}))}}))}(e,t,r)}function nr(){var e=er;return er+=1,e}function rr(e){var t=e.lifeCycle,n=e.isChildEvent,r=e.onChange,o=void 0===r?L:r,i={errorCount:0,longTaskCount:0,resourceCount:0,actionCount:0,frustrationCount:0},a=t.subscribe(11,(function(e){var t;if("view"!==e.type&&n(e))switch(e.type){case"error":i.errorCount+=1,o();break;case"action":i.actionCount+=1,e.action.frustration&&(i.frustrationCount+=e.action.frustration.type.length),o();break;case"long_task":i.longTaskCount+=1,o();break;case"resource":(null===(t=e._dd)||void 0===t?void 0:t.discarded)||(i.resourceCount+=1,o())}}));return{stop:function(){a.unsubscribe()},eventCounts:i}}function or(e,t,n,r,o){var i=function(e,t,n){var r=new q((function(){var o,i=[],a=0;i.push(t.subscribe(u),e.subscribe(0,(function(e){e.some((function(e){return e.entryType===on.RESOURCE&&!ir(n,e.name)}))&&u()})),e.subscribe(5,(function(e){ir(n,e.url)||(void 0===o&&(o=e.requestIndex),a+=1,u())})),e.subscribe(6,(function(e){ir(n,e.url)||void 0===o||e.requestIndex<o||(a-=1,u())})));var s,c=(s=u,qn(window,"open",{before:s})).stop;return function(){c(),i.forEach((function(e){return e.unsubscribe()}))};function u(){r.notify({isBusy:a>0})}}));return r}(e,t,n);return function(e,t,n){var r,o=!1,i=T(f((function(){return u({hadActivity:!1})})),100),a=void 0!==n?T(f((function(){return u({hadActivity:!0,end:ie()})})),n):void 0,s=e.subscribe((function(e){var t=e.isBusy;A(i),A(r);var n=ie();t||(r=T(f((function(){return u({hadActivity:!0,end:n})})),100))})),c=function(){o=!0,A(i),A(r),A(a),s.unsubscribe()};function u(e){o||(c(),t(e))}return{stop:c}}(i,r,o)}function ir(e,t){return Dt(e.excludedActivityUrls,t)}var ar="data-dd-action-name";function sr(e,t){var n;if(void 0===ur&&(ur="closest"in HTMLElement.prototype),ur)n=e.closest("[".concat(t,"]"));else for(var r=e;r;){if(r.hasAttribute(t)){n=r;break}r=r.parentElement}if(n)return hr(fr(n.getAttribute(t).trim()))}var cr,ur,lr=[function(e,t){if(void 0===cr&&(cr="labels"in HTMLInputElement.prototype),cr){if("labels"in e&&e.labels&&e.labels.length>0)return mr(e.labels[0],t)}else if(e.id){var n=e.ownerDocument&&v(e.ownerDocument.querySelectorAll("label"),(function(t){return t.htmlFor===e.id}));return n&&mr(n,t)}},function(e){if("INPUT"===e.nodeName){var t=e,n=t.getAttribute("type");if("button"===n||"submit"===n||"reset"===n)return t.value}}
2,function(e,t){if("BUTTON"===e.nodeName||"LABEL"===e.nodeName||"button"===e.getAttribute("role"))return mr(e,t)},function(e){return e.getAttribute("aria-label")},function(e,t){var n=e.getAttribute("aria-labelledby");if(n)return n.split(/\s+/).map((function(t){return function(e,t){return e.ownerDocument?e.ownerDocument.getElementById(t):null}(e,t)})).filter((function(e){return Boolean(e)})).map((function(e){return mr(e,t)})).join(" ")},function(e){return e.getAttribute("alt")},function(e){return e.getAttribute("name")},function(e){return e.getAttribute("title")},function(e){return e.getAttribute("placeholder")},function(e,t){if("options"in e&&e.options.length>0)return mr(e.options[0],t)}],dr=[function(e,t){return mr(e,t)}];function pr(e,t,n){for(var r=e,o=0;o<=10&&r&&"BODY"!==r.nodeName&&"HTML"!==r.nodeName&&"HEAD"!==r.nodeName;){for(var i=0,a=n;i<a.length;i++){var s=(0,a[i])(r,t);if("string"==typeof s){var c=s.trim();if(c)return hr(fr(c))}}if("FORM"===r.nodeName)break;r=r.parentElement,o+=1}}function fr(e){return e.replace(/\s+/g," ")}function hr(e){return e.length>100?"".concat(be(e,100)," [...]"):e}function mr(e,t){if(!e.isContentEditable){if("innerText"in e){var n=e.innerText,r=function(t){for(var r=e.querySelectorAll(t),o=0;o<r.length;o+=1){var i=r[o];if("innerText"in i){var a=i.innerText;a&&a.trim().length>0&&(n=n.replace(a,""))}}};return 0===it()&&r("script, style"),r("[".concat(ar,"]")),t&&r("[".concat(t,"]")),n}return e.textContent}}var gr,yr=[ar,"data-testid","data-test","data-qa","data-cy","data-test-id","data-qa-id","data-testing","data-component","data-element","data-source-file"],vr=[Sr,function(e){if(e.id&&!wr(e.id))return"#".concat(S(e.id))}],br=[Sr,function(e){if("BODY"!==e.tagName&&e.classList.length>0)for(var t=0;t<e.classList.length;t+=1){var n=e.classList[t];if(!wr(n))return"".concat(S(e.tagName),".").concat(S(n))}},function(e){return S(e.tagName)}];function _r(e,t){for(var n="",r=e;r&&"HTML"!==r.nodeName;){var o=kr(r,vr,xr,t,n);if(o)return o;
2n=kr(r,br,Er,t,n)||Or(Cr(r),n),r=r.parentElement}return n}function wr(e){return/[0-9]/.test(e)}function Sr(e,t){if(t&&(o=i(t)))return o;for(var n=0,r=yr;n<r.length;n++){var o;if(o=i(r[n]))return o}function i(t){if(e.hasAttribute(t))return"".concat(S(e.tagName),"[").concat(t,'="').concat(S(e.getAttribute(t)),'"]')}}function Cr(e){for(var t=e.parentElement.firstElementChild,n=1;t&&t!==e;)t.tagName===e.tagName&&(n+=1),t=t.nextElementSibling;return"".concat(S(e.tagName),":nth-of-type(").concat(n,")")}function kr(e,t,n,r,o){for(var i=0,a=t;i<a.length;i++){var s=(0,a[i])(e,r);if(s){var c=Or(s,o);if(n(e,c))return c}}}function xr(e,t){return 1===e.ownerDocument.querySelectorAll(t).length}function Er(e,t){return 1===e.parentElement.querySelectorAll(function(){if(void 0===gr)try{document.querySelector(":scope"),gr=!0}catch(e){gr=!1}return gr}()?Or(":scope",t):t).length}function Or(e,t){return t?"".concat(e,">").concat(t):e}function Tr(){var e=window.getSelection();return!e||e.isCollapsed}function Ar(e){return e.target instanceof Element&&!1!==e.isPrimary}function Pr(e){return!e.hasPageActivity&&!e.getUserActivity().input&&(n='input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="range"]),textarea,select,[contenteditable],[contenteditable] *,canvas,a[href],a[href] *',!((t=e.event.target).matches?t.matches(n):t.msMatchesSelector&&t.msMatchesSelector(n)));var t,n}function Ir(e,t,n){var r,o=new Hn(3e5),i=new q;e.subscribe(8,(function(){o.reset()})),e.subscribe(4,c);var a=function(e,t){var n,r,o=t.onPointerDown,i=t.onPointerUp,a={selection:!1,input:!1},s=[Oe(e,window,ge.POINTER_DOWN,(function(e){Ar(e)&&(n=Tr(),a={selection:!1,input:!1},r=o(e))}),{capture:!0}),Oe(e,window,ge.SELECTION_CHANGE,(function(){n&&Tr()||(a.selection=!0)}),{capture:!0}),Oe(e,window,ge.POINTER_UP,(function(e){if(Ar(e)&&r){var t=a;i(r,e,(function(){return t})),r=void 0}}),{capture:!0}),Oe(e,window,ge.INPUT,(function(){a.input=!0}),{capture:!0})];return{stop:function(){s.forEach((function(e){return e.stop()}))}}}(n,{onPointerDown:function(r){return function(e,t,n,r){var o,i,a,s,c,u=(a=r,s=e.actionNameAttribute,c=a.target.getBoundingClientRect(),{type:"click",target:{width:Math.round(c.width),height:Math.round(c.height),selector:_r(a.target,s)},position:{x:Math.round(a.clientX-c.left),y:Math.round(a.clientY-c.top)},name:(o=a.target,i=s,sr(o,ar)||i&&sr(o,i)||pr(o,i,lr)||pr(o,i,dr)||"")}),l=!1;return or(t,n,e,(function(e){l=e.hadActivity}),100),{clickActionBase:u,hadActivityOnPointerDown:function(){return l}}}(n,e,t,r)},onPointerUp:function(r,a,c){var u=r.clickActionBase,l=r.hadActivityOnPointerDown;return function(e,t,n,r,o,i,a,s,c,u){var l=jr(t,r,c,a,s);i(l);var d=or(t,n,e,(function(e){e.hadActivity&&e.end<l.startClocks.timeStamp?l.discard():e.hadActivity?l.stop(e.end):u()?l.stop(l.startClocks.timeStamp):l.stop()}),1e4).stop,p=t.subscribe(4,(function(e){var t=e.endClocks;l.stop(t.timeStamp)})),f=o.subscribe((function(){l.stop()}));l.stopObservable.subscribe((function(){p.unsubscribe(),d(),f.unsubscribe()}))}(n,e,t,o,i,s,u,a,c,l)}}).stop;return{stop:function(){c(),i.notify(),a()},actionContexts:{findActionId:function(e){return o.findAll(e)}}};function s(e){if(!r||!r.tryAppend(e)){var t=e.clone();r=function(e,t){var n,r=[],o=0;function i(e){e.stopObservable.subscribe(a),r.push(e),A(n),n=T(s,1e3)}function a(){1===o&&r.every((function(e){return e.isStopped()}))&&(o=2,t(r))}function s(){A(n),0===o&&(o=1,a())}return i(e),{tryAppend:function(e){return 0===o&&(r.length>0&&(t=r[r.length-1].event,n=e.event,!(t.target===n.target&&(a=t,c=n,Math.sqrt(Math.pow(a.clientX-c.clientX,2)+Math.pow(a.clientY-c.clientY,2))<=100)&&t.timeStamp-n.timeStamp<=1e3))?(s(),!1):(i(e),!0));var t,n,a,c},stop:function(){s()}}}(e,(function(e){!function(e,t){!function(e,t){if(function(e){if(e.some((function(e){return e.getUserActivity().selection})))return!1;for(var t=0;t<e.length-2;t+=1)if(e[t+3-1].event.timeStamp-e[t].event.timeStamp<=te)return!0;return!1}(e))return t.addFrustration("rage_click"),e.some(Pr)&&t.addFrustration("dead_click"),t.hasError&&t.addFrustration("error_click"),{isRage:!0};var n=e.some((function(e){return e.getUserActivity().selection}));return e.forEach((function(e){e.hasError&&e.addFrustration("error_click"),Pr(e)&&!n&&e.addFrustration("dead_click")})),{isRage:!1}}(e,t).isRage?(t.discard(),e.forEach((function(e){return e.validate()}))):(e.forEach((function(e){return e.discard()})),t.stop(ie()),t.validate(e.map((function(e){return e.event}))))}(e,t)}))}}function c(){r&&r.stop()}}function jr(e,t,n,r,o){var i,a=fe(),s=se(),c=t.add(a,s.relative),u=rr({lifeCycle:e,isChildEvent:function(e){return void 0!==e.action&&(Array.isArray(e.action.id)?g(e.action.id,a):e.action.id===a)}}),l=0,d=[],p=new q;function f(e){0===l&&(l=1,(i=e)?c.close(de(i)):c.remove(),u.stop(),p.notify())}return{event:o,stop:f,stopObservable:p,get hasError(){return u.eventCounts.errorCount>0},get hasPageActivity(){return void 0!==i},getUserActivity:n,addFrustration:function(e){d.push(e)},startClocks:s,isStopped:function(){return 1===l||2===l}
2,clone:function(){return jr(e,t,n,r,o)},validate:function(t){if(f(),1===l){var n=u.eventCounts,c=n.resourceCount,p=n.errorCount,h=n.longTaskCount,m=C({type:"click",duration:i&&ue(s.timeStamp,i),startClocks:s,id:a,frustrationTypes:d,counts:{resourceCount:c,errorCount:p,longTaskCount:h},events:null!=t?t:[o],event:o},r);e.notify(1,m),l=2}},discard:function(){f(),l=2}}}function Lr(e,t){var n=Nr(e)?{action:{id:e.id,loading_time:re(e.duration),frustration:{type:e.frustrationTypes},error:{count:e.counts.errorCount},long_task:{count:e.counts.longTaskCount},resource:{count:e.counts.resourceCount}},_dd:{action:{target:e.target,position:e.position}}}:void 0;return{customerContext:Nr(e)?void 0:e.context,rawRumEvent:M({action:{id:fe(),target:{name:e.name},type:e.type},date:e.startClocks.timeStamp,type:"action",view:{in_foreground:t.isInActivePageStateAt(e.startClocks.relative)}},n),startTime:e.startClocks.relative,domainContext:Nr(e)?{events:e.events}:{}}}function Nr(e){return"custom"!==e.type}function Rr(e){var t,n=function(t,n){var r=Ge({stackTrace:t,originalError:n,startClocks:se(),nonErrorPrefix:"Uncaught",source:"source",handling:"unhandled"});e.notify(r)},r=(t=n,qn(window,"onerror",{before:function(e,n,r,o,i){var a;a=i instanceof Error?Le(i):function(e,t,n,r){var o=[{url:t,column:r,line:n}],i=function(e){var t,n,r;return"[object String]"==={}.toString.call(e)&&(n=(t=qe.exec(e))[1],r=t[2]),{name:n,message:r}}(e);return{name:i.name,message:i.message,stack:o}}(e,n,r,o),t(a,null!=i?i:e)}})).stop,o=function(e){return qn(window,"onunhandledrejection",{before:function(t){var n=t.reason||"Empty reason",r=Le(n);e(r,n)}})}(n).stop;return{stop:function(){r(),o()}}}var Dr={};function Mr(e,t,n){var o,i,a=e.map((function(e){return function(e){return"string"==typeof e?B(e):e instanceof Error?Ke(Le(e)):F(B(e),void 0,2)}(e)})).join(" ");if(t===r.error){var s=v(e,(function(e){return e instanceof Error}));o=s?Ye(Le(s)):void 0,i=We(s)}return{api:t,message:a,stack:o,handlingStack:n,fingerprint:i}}var Fr,Ur="csp_violation";function Br(e,t,n,r,o){return n?Ye({name:e,message:t,stack:[{func:"?",url:n,line:null!=r?r:void 0,column:null!=o?o:void 0}]}):void 0}function $r(e,t,n,i){var a=new q;return function(e){var t,n;(t=[r.error],n=t.map((function(e){return Dr[e]||(Dr[e]=function(e){var t=new q((function(){var n=o[e];return o[e]=function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];n.apply(console,r);var i=Je();h((function(){t.notify(Mr(r,e,i))}))},function(){o[e]=n}}));return t}(e)),Dr[e]})),V.apply(void 0,n)).subscribe((function(t){return e.notify({startClocks:se(),message:t.message,stack:t.stack,fingerprint:t.fingerprint,source:"console",handling:"handled",handlingStack:t.handlingStack})}))}(a),Rr(a),function(e,t){(function(e,t){var n=[];g(t,Ur)&&n.push(function(e){var t=new q((function(){return Oe(e,document,ge.SECURITY_POLICY_VIOLATION,(function(e){t.notify(function(e){var t="'".concat(e.blockedURI,"' blocked by '").concat(e.effectiveDirective,"' directive");return{type:Ur,subtype:e.effectiveDirective,message:"".concat("csp_violation",": ").concat(t),stack:Br(e.effectiveDirective,e.originalPolicy?"".concat(t,' of the policy "').concat(be(e.originalPolicy,100,"..."),'"'):"no policy",e.sourceFile,e.lineNumber,e.columnNumber)}}(e))})).stop}));return t}(e));var r=t.filter((function(e){return e!==Ur}));return r.length&&n.push(function(e){var t=new q((function(){if(window.ReportingObserver){var n=f((function(e,n){return e.forEach((function(e){t.notify(function(e){var t=e.type,n=e.body;return{type:t,subtype:n.id,message:"".concat(t,": ").concat(n.message),stack:Br(n.id,n.message,n.sourceFile,n.lineNumber,n.columnNumber)}}(e))}))})),r=new window.ReportingObserver(n,{types:e,buffered:!0});return r.observe(),function(){r.disconnect()}}}));return t}(r)),V.apply(void 0,n)})(e,[Ur,"intervention"]).subscribe((function(e){return t.notify({startClocks:se(),message:e.message,stack:e.stack,type:e.subtype,source:"report",handling:"unhandled"})}))}(t,a),a.subscribe((function(t){return e.notify(12,{error:t})})),function(e,t,n){return e.subscribe(12,(function(r){var o=r.error,i=r.customerContext,a=r.savedCommonContext;e.notify(10,C({customerContext:i,savedCommonContext:a},function(e,t,n){var r={date:e.startClocks.timeStamp,error:{id:fe(),message:e.message,source:e.source,stack:e.stack,handling_stack:e.handlingStack,type:e.type,handling:e.handling,causes:e.causes,source_type:"browser",fingerprint:e.fingerprint},type:"error",view:{in_foreground:t.isInActivePageStateAt(e.startClocks.relative)}},o=n.findFeatureFlagEvaluations(e.startClocks.relative);
2return o&&!nt(o)&&(r.feature_flags=o),{rawRumEvent:r,startTime:e.startClocks.relative,domainContext:{error:e.originalError}}}(o,t,n)))})),{addError:function(t,n){var r=t.error,o=t.handlingStack,i=t.startClocks,a=t.context,s=Ge({stackTrace:r instanceof Error?Le(r):void 0,originalError:r,handlingStack:o,startClocks:i,nonErrorPrefix:"Provided",source:"custom",handling:"handled"});e.notify(12,{customerContext:a,savedCommonContext:n,error:s})}}}(e,n,i)}function Hr(e){return le(e.startTime,e.duration)}function zr(e,t,n,r){e.subscribe(6,(function(o){var i=function(e,t,n,r){var o,i=function(e){if(performance&&"getEntriesByName"in performance){var t=performance.getEntriesByName(e.url,"resource");if(t.length&&"toJSON"in t[0]){var n=t.map((function(e){return e.toJSON()})).filter(dn).filter((function(t){return n=t,r=e.startClocks.relative,o=Hr({startTime:e.startClocks.relative,duration:e.duration}),n.startTime>=r-1&&Hr(n)<=le(o,1);var n,r,o}));return 1===n.length?n[0]:void 0}}}(e),a=i?ne(i.startTime):e.startClocks,s=Vr(t,n,a),c=function(e,t){if(e.traceSampled&&e.traceId&&e.spanId)return{_dd:{span_id:e.spanId.toDecimalString(),trace_id:e.traceId.toDecimalString(),rule_psr:Wr(t)}}}(e,t);if(s||c){var u="xhr"===e.type?"xhr":"fetch",l=i?Gr(i):void 0,d=function(e,t,n){var r;return(null===(r=e.findAll(t.relative,n))||void 0===r?void 0:r.some((function(e){return"frozen"===e.state})))?void 0:re(n)}(r,a,e.duration),p=Yr(r,a,null!==(o=null==i?void 0:i.duration)&&void 0!==o?o:e.duration),f=M({date:a.timeStamp,resource:{id:fe(),type:u,duration:d,method:e.method,status_code:e.status,url:e.url},type:"resource",_dd:{discarded:!s}},c,l,p);return{startTime:a.relative,rawRumEvent:f,domainContext:{performanceEntry:i,xhr:e.xhr,response:e.response,requestInput:e.input,requestInit:e.init,error:e.error}}}}(o,t,n,r);i&&e.notify(10,i)})),e.subscribe(0,(function(o){for(var i=0,a=o;i<a.length;i++){var s=a[i];if(s.entryType===on.RESOURCE&&"xmlhttprequest"!==(u=s).initiatorType&&"fetch"!==u.initiatorType){var c=qr(s,t,n,r);c&&e.notify(10,c)}}var u}))}function qr(e,t,n,r){var o=ne(e.startTime),i=Vr(t,n,o),a=function(e,t){if(e.traceId)return{_dd:{trace_id:e.traceId,rule_psr:Wr(t)}}}(e,t);if(i||a){var s=function(e){var t=e.name;if(!function(e){try{return!!xt(e)}catch(e){return!1}}(t))return Jt('Failed to construct URL for "'.concat(e.name,'"')),"other";for(var n=function(e){var t=xt(e).pathname;return"/"===t[0]?t:"/".concat(t)}(t),r=0,o=sn;r<o.length;r++){var i=o[r],a=i[0];if((0,i[1])(e.initiatorType,n))return a}return"other"}(e),c=Gr(e),u=Yr(r,o,e.duration),l=M({date:o.timeStamp,resource:{id:fe(),type:s,url:e.name},type:"resource",_dd:{discarded:!i}},a,c,u);return{startTime:o.relative,rawRumEvent:l,domainContext:{performanceEntry:e}}}}function Vr(e,t,n){return e.trackResources&&t.findTrackedSession(n.relative)}function Gr(e){return{resource:C({duration:un(e),size:hn(e)},ln(e))}}function Wr(e){return Q(e.traceSampleRate)?e.traceSampleRate/100:void 0}function Yr(e,t,n){if(Qe(ze.RESOURCE_PAGE_STATES))return{_dd:{page_states:e.findAll(t.relative,n),page_was_discarded:String(document.wasDiscarded)}}}function Kr(e,t,n,r){var o={},i=function(e,t){return{stop:e.subscribe(0,(function(e){for(var t=0,i=e;t<i.length;t++){var a=i[t];a.entryType===on.NAVIGATION&&(s={domComplete:a.domComplete,domContentLoaded:a.domContentLoadedEventEnd,domInteractive:a.domInteractive,loadEvent:a.loadEventEnd,firstByte:a.responseStart>=0&&a.responseStart<=ae()?a.responseStart:void 0},n(s.loadEvent),o.navigationTimings=s,r())}var s})).unsubscribe}}(e).stop,a=function(e,t){var n,r;return void 0===t&&(t=window),"hidden"===document.visibilityState?n=0:(n=1/0,r=Te(e,t,[ge.PAGE_HIDE,ge.VISIBILITY_CHANGE],(function(e){e.type!==ge.PAGE_HIDE&&"hidden"!==document.visibilityState||(n=e.timeStamp,r())}),{capture:!0}).stop),{get timeStamp(){return n},stop:function(){null==r||r()}}}(t),s=function(e,t,n){return{stop:e.subscribe(0,(function(e){var n,i=v(e,(function(e){return e.entryType===on.PAINT&&"first-contentful-paint"===e.name&&e.startTime<t.timeStamp&&e.startTime<6e5}));i&&(n=i.startTime,o.firstContentfulPaint=n,r())})).unsubscribe}}(e,a).stop,c=function(e,t,n,i,a){var s=1/0,c=Te(t,i,[ge.POINTER_DOWN,ge.KEY_DOWN],(function(e){s=e.timeStamp}),{capture:!0,once:!0}).stop,u=e.subscribe(0,(function(e){var i,a=function(e,t){for(var r=e.length-1;r>=0;r-=1){var o=e[r];if((i=o).entryType===on.LARGEST_CONTENTFUL_PAINT&&i.startTime<s&&i.startTime<n.timeStamp&&i.startTime<6e5)return o}var i}(e);if(a){var c=void 0;a.element&&(c=_r(a.element,t.actionNameAttribute)),i={value:a.startTime,targetSelector:c},o.largestContentfulPaint=i,r()}})).unsubscribe;return{stop:function(){c(),u()}}}(e,t,a,window).stop,u=function(e,t,n,i){return{stop:e.subscribe(0,(function(e){var i,a=v(e,(function(e){return e.entryType===on.FIRST_INPUT&&e.startTime<n.timeStamp}));if(a){var s=ue(a.startTime,a.processingStart),c=void 0;a.target&&yn(a.target)&&(c=_r(a.target,t.actionNameAttribute)),i={delay:s>=0?s:0,time:a.startTime,targetSelector:c},o.firstInput=i,r()}})).unsubscribe}}(e,t,a).stop;return{stop:function(){i(),s(),c(),u(),a.stop()},initialViewMetrics:o}}var Jr,Zr=0,Xr=1/0,Qr=0,eo=function(){return Fr?Zr:window.performance.interactionCount||0};
2function to(){var e,t=window.visualViewport;return e=t?t.pageLeft-t.offsetLeft:void 0!==window.scrollX?window.scrollX:window.pageXOffset||0,Math.round(e)}function no(){var e,t=window.visualViewport;return e=t?t.pageTop-t.offsetTop:void 0!==window.scrollY?window.scrollY:window.pageYOffset||0,Math.round(e)}function ro(e){return Jr||(Jr=function(e){var t=new q((function(){var n=j((function(){t.notify(oo())}),200).throttled;return Oe(e,window,ge.RESIZE,n,{capture:!0,passive:!0}).stop}));return t}(e)),Jr}function oo(){var e=window.visualViewport;return e?{width:Number(e.width*e.scale),height:Number(e.height*e.scale)}:{width:Number(window.innerWidth||0),height:Number(window.innerHeight||0)}}function io(e,t,n,r,o,i){var a={},s=function(e,t,n,o,i,s){var c="initial_load"===o,u=!0,l=[];function d(){var e;!u&&!c&&l.length>0&&(e=Math.max.apply(Math,l),a.loadingTime=e,r())}return{stop:or(e,t,n,(function(e){u&&(u=!1,e.hadActivity&&l.push(ue(i.timeStamp,e.end)),d())})).stop,setLoadEvent:function(e){c&&(c=!1,l.push(e),d())}}}(e,t,n,o,i),c=s.stop,u=s.setLoadEvent,l=function(e,t,n,r){void 0===r&&(r=function(e,t){void 0===t&&(t=1e3);var n=new q((function(){if(window.ResizeObserver){var r=j((function(){var e,t;n.notify((e=no(),t=oo().height,{scrollHeight:Math.round((document.scrollingElement||document.documentElement).scrollHeight),scrollDepth:Math.round(t+e),scrollTop:e}))}),t,{leading:!1,trailing:!0}),o=document.scrollingElement||document.documentElement,i=new ResizeObserver(f(r.throttled));i.observe(o);var a=Oe(e,window,ge.SCROLL,r.throttled,{passive:!0});return function(){r.cancel(),i.unobserve(o),a.stop()}}}));return n}(e));var o=0,i=0,a=0,s=r.subscribe((function(e){var r=e.scrollDepth,s=e.scrollTop,c=e.scrollHeight,u=!1;if(r>o&&(o=r,u=!0),c>i){i=c;var l=ae();a=ue(t.relative,l),u=!0}u&&n({maxDepth:Math.min(o,i),maxDepthScrollTop:s,maxScrollHeight:i,maxScrollHeightTime:a})}));return{stop:function(){return s.unsubscribe()}}}(n,i,(function(e){a.scroll=e})).stop,d=function(e,t,n){if(!En(on.LAYOUT_SHIFT))return{stop:L};var r=0;n({value:0});var o=function(){var e,t,n,r,o=0,i=0;return{update:function(a){var s,c;void 0===e||a.startTime-t>=te||a.startTime-e>=5e3?(e=t=a.startTime,o=a.value,i=0,n=void 0):(o+=a.value,t=a.startTime),a.value>i&&(i=a.value,r=a.startTime,n=(null===(s=a.sources)||void 0===s?void 0:s.length)?null===(c=v(a.sources,(function(e){return!!e.node&&yn(e.node)})))||void 0===c?void 0:c.node:void 0)},value:function(){return o},largestLayoutShiftTarget:function(){return n},largestLayoutShiftTime:function(){return r}}}();return{stop:t.subscribe(0,(function(t){for(var i=0,a=t;i<a.length;i++){var s=a[i];if(s.entryType===on.LAYOUT_SHIFT&&!s.hadRecentInput&&(o.update(s),o.value()>
2r)){var c=Z(r=o.value(),4),u=o.largestLayoutShiftTarget(),l=void 0;u&&u.isConnected&&(l=_r(u,e.actionNameAttribute)),n({value:c,targetSelector:l})}}})).unsubscribe}}(n,e,(function(e){a.cumulativeLayoutShift=e,r()})).stop,p=function(e,t,n,r){if(!(En(on.EVENT)&&window.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return{getInteractionToNextPaint:function(){},setViewEnd:L,stop:L};var o,i=function(e){"interactionCount"in performance||Fr||(Fr=new window.PerformanceObserver(f((function(e){e.getEntries().forEach((function(e){var t=e;t.interactionId&&(Xr=Math.min(Xr,t.interactionId),Qr=Math.max(Qr,t.interactionId),Zr=(Qr-Xr)/7+1)}))})))).observe({type:"event",buffered:!0,durationThreshold:0});var t="initial_load"===e?0:eo(),n={stopped:!1};function r(){return eo()-t}return{getViewInteractionCount:function(){return n.stopped?n.interactionCount:r()},stopViewInteractionCount:function(){n={stopped:!0,interactionCount:r()}}}}(n),a=i.getViewInteractionCount,s=i.stopViewInteractionCount,c=1/0,u=function(e){var t=[];function n(){t.sort((function(e,t){return t.duration-e.duration})).splice(10)}return{process:function(e){var r=t.findIndex((function(t){return e.interactionId===t.interactionId})),o=t[t.length-1];-1!==r?e.duration>t[r].duration&&(t[r]=e,n()):(t.length<10||e.duration>o.duration)&&(t.push(e),n())},estimateP98Interaction:function(){var n=Math.min(t.length-1,Math.floor(e()/50));return t[n]}}}(a),l=-1;return{getInteractionToNextPaint:function(){return l>=0?{value:Math.min(l,6e4),targetSelector:o}:a()?{value:0}:void 0},setViewEnd:function(e){c=e,s()},stop:r.subscribe(0,(function(n){for(var r=0,i=n;r<i.length;r++){var a=i[r];(a.entryType===on.EVENT||a.entryType===on.FIRST_INPUT)&&a.interactionId&&a.startTime>=t&&a.startTime<=c&&u.process(a)}var s=u.estimateP98Interaction();s&&(l=s.duration,o=s.target&&yn(s.target)?_r(s.target,e.actionNameAttribute):void 0)})).unsubscribe}}(n,i.relative,o,e),h=p.stop,m=p.getInteractionToNextPaint;return{stop:function(){c(),d(),l()}
2,stopINPTracking:h,setLoadEvent:u,setViewEnd:p.setViewEnd,getCommonViewMetrics:function(){return a.interactionToNextPaint=m(),a}}}function ao(e){var t=e.indexOf("?");return t<0?e:e.slice(0,t)}function so(e,t,n,r,o,i,a,c,u){return e.subscribe(3,(function(n){return e.notify(10,function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m,g,y,v,b=r.getReplayStats(e.id),_=n.findFeatureFlagEvaluations(e.startClocks.relative),w=o.findAll(e.startClocks.relative,e.duration),S={_dd:{document_version:e.documentVersion,replay_stats:b,page_states:w,configuration:{start_session_replay_recording_manually:t.startSessionReplayRecordingManually}},date:e.startClocks.timeStamp,type:"view",view:{action:{count:e.eventCounts.actionCount},frustration:{count:e.eventCounts.frustrationCount},cumulative_layout_shift:null===(i=e.commonViewMetrics.cumulativeLayoutShift)||void 0===i?void 0:i.value,cumulative_layout_shift_target_selector:null===(a=e.commonViewMetrics.cumulativeLayoutShift)||void 0===a?void 0:a.targetSelector,first_byte:re(null===(s=e.initialViewMetrics.navigationTimings)||void 0===s?void 0:s.firstByte),dom_complete:re(null===(c=e.initialViewMetrics.navigationTimings)||void 0===c?void 0:c.domComplete),dom_content_loaded:re(null===(u=e.initialViewMetrics.navigationTimings)||void 0===u?void 0:u.domContentLoaded),dom_interactive:re(null===(l=e.initialViewMetrics.navigationTimings)||void 0===l?void 0:l.domInteractive),error:{count:e.eventCounts.errorCount},first_contentful_paint:re(e.initialViewMetrics.firstContentfulPaint),first_input_delay:re(null===(d=e.initialViewMetrics.firstInput)||void 0===d?void 0:d.delay),first_input_time:re(null===(p=e.initialViewMetrics.firstInput)||void 0===p?void 0:p.time),first_input_target_selector:null===(f=e.initialViewMetrics.firstInput)||void 0===f?void 0:f.targetSelector,interaction_to_next_paint:re(null===(h=e.commonViewMetrics.interactionToNextPaint)||void 0===h?void 0:h.value),interaction_to_next_paint_target_selector:null===(m=e.commonViewMetrics.interactionToNextPaint)||void 0===m?void 0:m.targetSelector,is_active:e.isActive,name:e.name,largest_contentful_paint:re(null===(g=e.initialViewMetrics.largestContentfulPaint)||void 0===g?void 0:g.value),largest_contentful_paint_target_selector:null===(y=e.initialViewMetrics.largestContentfulPaint)||void 0===y?void 0:y.targetSelector,load_event:re(null===(v=e.initialViewMetrics.navigationTimings)||void 0===v?void 0:v.loadEvent),loading_time:co(re(e.commonViewMetrics.loadingTime)),loading_type:e.loadingType,long_task:{count:e.eventCounts.longTaskCount},resource:{count:e.eventCounts.resourceCount},time_spent:re(e.duration)},feature_flags:_&&!nt(_)?_:void 0,display:e.commonViewMetrics.scroll?{scroll:{max_depth:e.commonViewMetrics.scroll.maxDepth,max_depth_scroll_top:e.commonViewMetrics.scroll.maxDepthScrollTop,max_scroll_height:e.commonViewMetrics.scroll.maxScrollHeight,max_scroll_height_time:re(e.commonViewMetrics.scroll.maxScrollHeightTime)}}:void 0,session:{has_replay:!!b||void 0,is_active:!!e.sessionIsActive&&void 0},privacy:{replay_level:t.defaultPrivacyLevel}};return nt(e.customTimings)||(S.view.custom_timings=function(e,t){for(var n={},r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];n[i]=t(e[i])}return n}(e.customTimings,re)),{rawRumEvent:S,startTime:e.startClocks.relative,domainContext:{location:e.location}}}(n,t,i,c,a))})),function(e,t,n,r,o,i,a){var c,u=new Set,l=d("initial_load",ce(),a);function d(o,i,a){var c=function(e,t,n,r,o,i,a){void 0===i&&(i=se());var c,u,l,d,p=fe(),f=new q,h={},m=0,g=et(r),y=!0;a&&(u=a.name,l=a.service,d=a.version),e.notify(2,{id:p,name:u,startClocks:i,service:l,version:d});var v=j(U,3e3,{leading:!1}),b=v.throttled,_=v.cancel,w=io(e,t,n,b,o,i),S=w.setLoadEvent,C=w.setViewEnd,k=w.stop,x=w.stopINPTracking,E=w.getCommonViewMetrics,O="initial_load"===o?Kr(e,n,S,b):{stop:L,initialViewMetrics:{}},A=O.stop,N=O.initialViewMetrics,R=function(e,t,n){var r=rr({lifeCycle:e,isChildEvent:function(e){return e.view.id===t},onChange:n});return{stop:r.stop,eventCounts:r.eventCounts}}(e,p,b),D=R.stop,M=R.eventCounts,F=P(U,3e5);function U(){_(),m+=1;var t=void 0===c?ie():c.timeStamp;e.notify(3,{customTimings:h,documentVersion:m,id:p,name:u,service:l,version:d,loadingType:o,location:g,startClocks:i,commonViewMetrics:E(),initialViewMetrics:N,duration:ue(i.timeStamp,t),isActive:void 0===c,sessionIsActive:y,eventCounts:M})}return U(),{name:u,service:l,version:d,stopObservable:f,end:function(t){var n,r,o=this;void 0===t&&(t={}),c||(c=null!==(n=t.endClocks)&&void 0!==n?n:se(),y=null===(r=t.sessionIsActive)||void 0===r||r,e.notify(4,{endClocks:c}),I(F),C(c.relative),k(),U(),T((function(){o.stop()}),3e5))},stop:function(){A(),D(),x(),f.notify()},addTiming:function(e,t){if(!c){var n=function(e){return e<31536e6}(t)?t:ue(i.timeStamp,t);h[function(e){var t=e.replace(/[^a-zA-Z0-9-_.@$]/g,"_");return t!==e&&s.warn("Invalid timing name: ".concat(e,", sanitized to: ").concat(t)),t}(e)]=n,b()}}}}(t,n,r,e,o,i,a);return u.add(c),c.stopObservable.subscribe((function(){u.delete(c)})),c}return t.subscribe(8,(function(){l=d("route_change",void 0,{name:l.name,service:l.service,version:l.version})})),t.subscribe(7,(function(){l.end({sessionIsActive:!1})}
2)),t.subscribe(9,(function(e){e.reason!==en.UNLOADING&&e.reason!==en.PAGEHIDE||l.end()})),i&&(c=function(e){return e.subscribe((function(e){var t,n,r,o=e.oldLocation;n=e.newLocation,(t=o).pathname===n.pathname&&(""!==(r=n.hash.substring(1))&&document.getElementById(r)||ao(n.hash)===ao(t.hash))||(l.end(),l=d("route_change"))}))}(o)),{addTiming:function(e,t){void 0===t&&(t=ie()),l.addTiming(e,t)},startView:function(e,t){l.end({endClocks:t}),l=d("route_change",t,e)},stop:function(){null==c||c.unsubscribe(),l.end(),u.forEach((function(e){return e.stop()}))}}}(n,e,r,t,o,!t.trackViewsManually,u)}function co(e){return Q(e)&&e<0?void 0:e}var uo=[];function lo(e,t,n){var r=Ct(e.sessionStoreStrategyType,t,n);uo.push((function(){return r.stop()}));var o=new Hn(144e5);function i(){return{id:r.getSession().id,trackingType:r.getSession()[t]}}return uo.push((function(){return o.stop()})),r.renewObservable.subscribe((function(){o.add(i(),ae())})),r.expireObservable.subscribe((function(){o.closeActive(ae())})),r.expandOrRenewSession(),o.add(i(),ce().relative),function(e,t){var n=Te(e,window,[ge.CLICK,ge.TOUCH_START,ge.KEY_DOWN,ge.SCROLL],(function(){return r.expandOrRenewSession()}),{capture:!0,passive:!0}).stop;uo.push(n)}(e),function(e,t){var n=function(){"visible"===document.visibilityState&&r.expandSession()},o=Oe(e,document,ge.VISIBILITY_CHANGE,n).stop;uo.push(o);var i=P(n,6e4);uo.push((function(){I(i)}))}(e),{findActiveSession:function(e){return o.find(e)},renewObservable:r.renewObservable,expireObservable:r.expireObservable,expire:r.expire}}function po(e){return"2"===e||"1"===e}var fo=function(){function e(e,t,n,r){var o=this;this.encoder=e,this.request=t,this.flushController=n,this.messageBytesLimit=r,this.upsertBuffer={},this.flushSubscription=this.flushController.flushObservable.subscribe((function(e){return o.flush(e)}))}return e.prototype.add=function(e){this.addOrUpdate(e)},e.prototype.upsert=function(e,t){this.addOrUpdate(e,t)},e.prototype.stop=function(){this.flushSubscription.unsubscribe()},e.prototype.flush=function(e){var t=b(this.upsertBuffer).join("\n");this.upsertBuffer={};var n=tn(e.reason),r=n?this.request.sendOnExit:this.request.send;if(n&&this.encoder.isAsync){var o=this.encoder.finishSync();o.outputBytesCount&&r(ho(o,e));var i=[o.pendingData,t].filter(Boolean).join("\n");i&&r({data:i,bytesCount:E(i),flushReason:e.reason})}else t&&this.encoder.write(this.encoder.isEmpty?t:"\n".concat(t)),this.encoder.finish((function(t){r(ho(t,e))}))},e.prototype.addOrUpdate=function(e,t){var n=F(e),r=this.encoder.estimateEncodedBytesCount(n);r>=this.messageBytesLimit?s.warn("Discarded a message whose size was bigger than the maximum allowed size ".concat(this.messageBytesLimit,"KB.")):(this.hasMessageFor(t)&&this.remove(t),this.push(n,r,t))},e.prototype.push=function(e,t,n){var r=this;this.flushController.notifyBeforeAddMessage(t),void 0!==n?(this.upsertBuffer[n]=e,this.flushController.notifyAfterAddMessage()):this.encoder.write(this.encoder.isEmpty?e:"\n".concat(e),(function(e){r.flushController.notifyAfterAddMessage(e-t)}))},e.prototype.remove=function(e){var t=this.upsertBuffer[e];delete this.upsertBuffer[e];var n=this.encoder.estimateEncodedBytesCount(t);this.flushController.notifyAfterRemoveMessage(n)},e.prototype.hasMessageFor=function(e){return void 0!==e&&void 0!==this.upsertBuffer[e]},e}();function ho(e,t){return{data:"string"==typeof e.output?e.output:new Blob([e.output],{type:"text/plain"}),bytesCount:e.outputBytesCount,encoding:e.encoding,flushReason:t.reason}}function mo(e,t,n,r,o){0===t.transportStatus&&0===t.queuedPayloads.size()&&t.bandwidthMonitor.canHandle(e)?yo(e,t,n,{onSuccess:function(){return vo(0,t,n,r,o)},onFailure:function(){t.queuedPayloads.enqueue(e),go(t,n,r,o)}}):t.queuedPayloads.enqueue(e)}function go(e,t,n,r){2===e.transportStatus&&T((function(){yo(e.queuedPayloads.first(),e,t,{onSuccess:function(){e.queuedPayloads.dequeue(),e.currentBackoffTime=1e3,vo(1,e,t,n,r)},onFailure:function(){e.currentBackoffTime=Math.min(6e4,2*e.currentBackoffTime),go(e,t,n,r)}})}),e.currentBackoffTime)}function yo(e,t,n,r){var o=r.onSuccess,i=r.onFailure;t.bandwidthMonitor.add(e),n(e,(function(n){t.bandwidthMonitor.remove(e),function(e){return"opaque"!==e.type&&(0===e.status&&!navigator.onLine||408===e.status||429===e.status||function(e){return e>=500}(e.status))}(n)?(t.transportStatus=t.bandwidthMonitor.ongoingRequestCount>0?1:2,e.retry={count:e.retry?e.retry.count+1:1,lastFailureStatus:n.status},i()):(t.transportStatus=0,o())}))}function vo(e,t,n,r,o){0===e&&t.queuedPayloads.isFull()&&!t.queueFullReported&&(o({message:"Reached max ".concat(r," events size queued for upload: ").concat(3,"MiB"),source:Pn,startClocks:se()}),t.queueFullReported=!0);var i=t.queuedPayloads;for(t.queuedPayloads=bo();i.size()>0;)mo(i.dequeue(),t,n,r,o)}function bo(){var e=[];return{bytesCount:0,enqueue:function(t){this.isFull()||(e.push(t),this.bytesCount+=t.bytesCount)},first:function(){return e[0]},dequeue:function(){var t=e.shift();return t&&(this.bytesCount-=t.bytesCount),t},size:function(){return e.length},isFull:function(){return this.bytesCount>=3145728}}}function _o(e,t,n,r){var o={transportStatus:0,currentBackoffTime:1e3,bandwidthMonitor:{ongoingRequestCount:0,ongoingByteCount:0,canHandle:function(e){return 0===this.ongoingRequestCount||this.ongoingByteCount+e.bytesCount<=81920&&this.ongoingRequestCount<32},add:function(e){this.ongoingRequestCount+=1,this.ongoingByteCount+=e.bytesCount},remove:function(e){this.ongoingRequestCount-=1,this.ongoingByteCount-=e.bytesCount}},queuedPayloads:bo(),queueFullReported:!1},i=function(r,o){return function(e,t,n,r,o){if(function(){try{return window.Request&&"keepalive"in new Request
2("http://a")}catch(e){return!1}}()&&r.bytesCount<n){var i=t.build("fetch",r);fetch(i,{method:"POST",body:r.data,keepalive:!0,mode:"cors"}).then(f((function(e){return null==o?void 0:o({status:e.status,type:e.type})})),f((function(){var n=t.build("xhr",r);xo(e,n,r.data,o)})))}else{var a=t.build("xhr",r);xo(e,a,r.data,o)}}(e,t,n,r,o)};return{send:function(e){mo(e,o,i,t.trackType,r)},sendOnExit:function(r){!function(e,t,n,r){if(navigator.sendBeacon&&r.bytesCount<n)try{var o=t.build("beacon",r);if(navigator.sendBeacon(o,r.data))return}catch(e){!function(e){ko||(ko=!0,Zt(e))}(e)}xo(e,t.build("xhr",r),r.data)}(e,t,n,r)}}}var wo,So,Co,ko=!1;function xo(e,t,n,r){var o=new XMLHttpRequest;o.open("POST",t,!0),n instanceof Blob&&o.setRequestHeader("Content-Type",n.type),Oe(e,o,"loadend",(function(){null==r||r({status:o.status})}),{once:!0}),o.send(n)}function Eo(e,t,n,r,o,i,a){var s=e.replica,c=function(e,t,n,r,o,i){var a=c(e,t),s=n&&c(e,n);function c(e,t){var n=t.endpoint,a=t.encoder;return new fo(a,_o(e,n,e.batchBytesLimit,r),function(e){var t,n=e.messagesLimit,r=e.bytesLimit,o=e.durationLimit,i=e.pageExitObservable,a=e.sessionExpireObservable,s=i.subscribe((function(e){return p(e.reason)})),c=a.subscribe((function(){return p("session_expire")})),u=new q((function(){return function(){s.unsubscribe(),c.unsubscribe()}})),l=0,d=0;function p(e){if(0!==d){var t=d,n=l;d=0,l=0,f(),u.notify({reason:e,messagesCount:t,bytesCount:n})}}function f(){A(t),t=void 0}return{flushObservable:u,get messagesCount(){return d},notifyBeforeAddMessage:function(e){l+e>=r&&p("bytes_limit"),d+=1,l+=e,void 0===t&&(t=T((function(){p("duration_limit")}),o))},notifyAfterAddMessage:function(e){void 0===e&&(e=0),l+=e,d>=n?p("messages_limit"):l>=r&&p("bytes_limit")},notifyAfterRemoveMessage:function(e){l-=e,0==(d-=1)&&f()}}}({messagesLimit:e.batchMessagesLimit,bytesLimit:e.batchBytesLimit,durationLimit:e.flushTimeout,pageExitObservable:o,sessionExpireObservable:i}),e.messageBytesLimit)}return{flushObservable:a.flushController.flushObservable,add:function(e,t){void 0===t&&(t=!0),a.add(e),s&&t&&s.add(n.transformMessage?n.transformMessage(e):e)},upsert:function(e,t){a.upsert(e,t),s&&s.upsert(n.transformMessage?n.transformMessage(e):e,t)},stop:function(){a.stop(),null==s||s.stop()}}}(e,{endpoint:e.rumEndpointBuilder,encoder:a(2)},s&&{endpoint:s.rumEndpointBuilder,transformMessage:function(e){return M(e,{application:{id:s.applicationId}})},encoder:a(3)},r,o,i);return t.subscribe(11,(function(e){"view"===e.type?c.upsert(e,e.view.id):c.add(e)})),n.subscribe((function(t){return c.add(t,function(e){return e.site===Tt}(e))})),c}function Oo(){0!==wo.batchCount&&(Jt("Customer data measures",wo),Po())}function To(e,t){e.sum+=t,e.min=Math.min(e.min,t),e.max=Math.max(e.max,t)}function Ao(e,t){e.sum+=t.sum,e.min=Math.min(e.min,t.min),e.max=Math.max(e.max,t.max)}function Po(){wo={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 Io(){Co=!1,So={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 jo(){return"hidden"===document.visibilityState?"hidden":document.hasFocus()?"active":"passive"}function Lo(e,t){return{data:C({source:e},t),type:3,timestamp:ie()}}var No={IGNORE:"ignore",HIDDEN:"hidden",ALLOW:Lt.ALLOW,MASK:Lt.MASK,MASK_USER_INPUT:Lt.MASK_USER_INPUT},Ro="data-dd-privacy",Do="hidden",Mo="***",Fo={INPUT:!0,OUTPUT:!0,TEXTAREA:!0,SELECT:!0,OPTION:!0,DATALIST:!0,OPTGROUP:!0};function Uo(e,t){var n=wn(e),r=n?Uo(n,t):t;return Bo($o(e),r)}function Bo(e,t){switch(t){case No.HIDDEN:case No.IGNORE:return t}switch(e){case No.ALLOW:case No.MASK:case No.MASK_USER_INPUT:case No.HIDDEN:case No.IGNORE:return e;default:return t}}function $o(e){if(yn(e)){var t=e.getAttribute(Ro);if("BASE"===e.tagName)return No.ALLOW;if("INPUT"===e.tagName){var n=e;if("password"===n.type||"email"===n.type||"tel"===n.type)return No.MASK;if("hidden"===n.type)return No.MASK;var r=n.getAttribute("autocomplete");if(r&&0===r.indexOf("cc-"))return No.MASK}return t===Do||e.classList.contains("dd-privacy-hidden")?No.HIDDEN:"mask"===t||e.classList.contains("dd-privacy-mask")?No.MASK:"mask-user-input"===t||e.classList.contains("dd-privacy-mask-user-input")?No.MASK_USER_INPUT:"allow"===t||e.classList.contains("dd-privacy-allow")?No.ALLOW:function(e){if("SCRIPT"===e.nodeName)return!0;
2if("LINK"===e.nodeName){var t=o("rel");return/preload|prefetch/i.test(t)&&"script"===o("as")||"shortcut icon"===t||"icon"===t}if("META"===e.nodeName){var n=o("name"),r=(t=o("rel"),o("property"));return/^msapplication-tile(image|color)$/.test(n)||"application-name"===n||"icon"===t||"apple-touch-icon"===t||"shortcut icon"===t||"keywords"===n||"description"===n||/^(og|twitter|fb):/.test(r)||/^(og|twitter):/.test(n)||"pinterest"===n||"robots"===n||"googlebot"===n||"bingbot"===n||e.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 o(t){return(e.getAttribute(t)||"").toLowerCase()}return!1}(e)?No.IGNORE:void 0}}function Ho(e,t){switch(t){case No.MASK:case No.HIDDEN:case No.IGNORE:return!0;case No.MASK_USER_INPUT:return gn(e)?zo(e.parentNode):zo(e);default:return!1}}function zo(e){if(!e||e.nodeType!==e.ELEMENT_NODE)return!1;var t=e;if("INPUT"===t.tagName)switch(t.type){case"button":case"color":case"reset":case"submit":return!1}return!!Fo[t.tagName]}function qo(e,t,n){var r,o=null===(r=e.parentElement)||void 0===r?void 0:r.tagName,i=e.textContent||"";if(!t||i.trim()){if("SCRIPT"===o)i=Mo;else if(n===No.HIDDEN)i=Mo;else if(Ho(e,n))if("DATALIST"===o||"SELECT"===o||"OPTGROUP"===o){if(!i.trim())return}else i="OPTION"===o?Mo:i.replace(/\S/g,"x");return i}}var Vo=new WeakMap;function Go(e){return Vo.has(e)}function Wo(e){return Vo.get(e)}function Yo(e,t){var n=e.tagName,r=e.value;if(Ho(e,t)){var o=e.type;if("INPUT"===n&&("button"===o||"submit"===o||"reset"===o))return r;if(!r||"OPTION"===n)return;return Mo}return"OPTION"===n||"SELECT"===n?e.value:"INPUT"===n||"TEXTAREA"===n?r:void 0}var Ko=/url\((?:(')([^']*)'|(")([^"]*)"|([^)]*))\)/gm,Jo=/^[A-Za-z]+:|^\/\//,Zo=/^data:.*,/i;var Xo=/[^a-z1-6-_]/;function Qo(e){var t=e.toLowerCase().trim();return Xo.test(t)?"div":t}function ei(e){if(void 0!==e&&0!==e.length)return e.map((function(e){var t=e.cssRules||e.rules;return{cssRules:Array.from(t,(function(e){return e.cssText})),disabled:e.disabled||void 0,media:e.media.length>0?Array.from(e.media):void 0}}))}function ti(e,t,n,r){if(t===No.HIDDEN)return null;var o=e.getAttribute(n);if(t===No.MASK&&n!==Ro&&!yr.includes(n)&&n!==r.actionNameAttribute){var i=e.tagName;switch(n){case"title":case"alt":case"placeholder":return Mo}if(!("IMG"!==i&&"SOURCE"!==i||"src"!==n&&"srcset"!==n))return"data:image/gif;base64,R0lGODlhAQABAIAAAMLCwgAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==";if("A"===i&&"href"===n)return Mo;if(o&&w(n,"data-"))return Mo}return o&&"string"==typeof o&&o.length>1e5&&"data:"===o.slice(0,5)?"data:truncated":o}function ni(e){if(!e)return null;var t,n,r;try{t=e.rules||e.cssRules}catch(e){}return t?(n=Array.from(t,2===it()?ri:oi).join(""),r=e.href,n.replace(Ko,(function(e,t,n,o,i,a){var s=n||i||a;if(!r||!s||Jo.test(s)||Zo.test(s))return e;var c=t||o||"";return"url(".concat(c).concat(function(e,t){try{return xt(e,t).href}catch(t){return e}}(s,r)).concat(c,")")}))):null}function ri(e){return function(e){return"selectorText"in e}(e)&&e.selectorText.includes(":")?e.cssText.replace(/(\[[\w-]+[^\\])(:[^\]]+\])/g,"$1\\$2"):oi(e)}function oi(e){return function(e){return"styleSheet"in e}(e)&&ni(e.styleSheet)||e.cssText}function ii(e,t){var n=function(e,t){switch(e.nodeType){case e.DOCUMENT_NODE:return function(e,t){return{type:0,childNodes:si(e,t),adoptedStyleSheets:ei(e.adoptedStyleSheets)}}(e,t);case e.DOCUMENT_FRAGMENT_NODE:return function(e,t){var n=bn(e);return n&&t.serializationContext.shadowRootsController.addShadowRoot(e),{type:11,childNodes:si(e,t),isShadowRoot:n,adoptedStyleSheets:n?ei(e.adoptedStyleSheets):void 0}}(e,t);case e.DOCUMENT_TYPE_NODE:return{type:1,name:(n=e).name,publicId:n.publicId,systemId:n.systemId};case e.ELEMENT_NODE:return function(e,t){var n,r,o=Qo(e.tagName),i="svg"===(r=e).tagName||r instanceof SVGElement||void 0,a=Bo($o(e),t.parentNodePrivacyLevel);if(a===No.HIDDEN){var s=e.getBoundingClientRect(),c=s.width,u=s.height;return{type:2,tagName:o,attributes:(n={rr_width:"".concat(c,"px"),rr_height:"".concat(u,"px")},n[Ro]=Do,n),childNodes:[],isSVG:i}}if(a!==No.IGNORE){var l=function(e,t,n){var r;if(t===No.HIDDEN)return{};for(var o={},i=Qo(e.tagName),a=e.ownerDocument,s=0;s<e.attributes.length;s+=1){var c=e.attributes.item(s).name,u=ti(e,t,c,n.configuration);null!==u&&(o[c]=u)}if(e.value&&("textarea"===i||"select"===i||"option"===i||"input"===i)){var l=Yo(e,t);void 0!==l&&(o.value=l)}if("option"===i&&t===No.ALLOW){var d=e;d.selected&&(o.selected=d.selected)}if("link"===i){var p,f=Array.from(a.styleSheets).find((function(t){return t.href===e.href}));(p=ni(f))&&f&&!Qe(ze.DISABLE_REPLAY_INLINE_CSS)&&(o._cssText=p)}"style"===i&&e.sheet&&(p=ni(e.sheet))&&(o._cssText=p);var h,m,g=e;if("input"!==i||"radio"!==g.type&&"checkbox"!==g.type||(t===No.ALLOW?o.checked=!!g.checked:Ho(g,t)&&delete o.checked),"audio"===i||"video"===i){var y=e;o.rr_mediaState=y.paused?"paused":"played"}var v=n.serializationContext;switch(v.status){case 0:h=Math.round(e.scrollTop),m=Math.round(e.scrollLeft),(h||m)&&v.elementsScrollPositions.set(e,{scrollTop:h,scrollLeft:m});break;case 1:v.elementsScrollPositions.has(e)&&(h=(r=v.elementsScrollPositions.get(e)).scrollTop,m=r.scrollLeft)}return m&&(o.rr_scrollLeft=m),h&&(o.rr_scrollTop=h),o}(e,a,t),d=[];return function(e){return e.childNodes.length>0||vn(e)}(e)&&"style"!==o&&(d=si(e,t.parentNodePrivacyLevel===a&&t.ignoreWhiteSpace===("head"===o)?t:C({},t,{parentNodePrivacyLevel:a,ignoreWhiteSpace:"head"===o}))),{type:2,tagName:o,attributes:l,childNodes:d,isSVG:i}}}(e,t);case e.TEXT_NODE:return function(e,t){var n=qo(e,t.ignoreWhiteSpace||!1,t.parentNodePrivacyLevel);if(void 0!==n)return{type:3,textContent:n}}(e,t);case e.CDATA_SECTION_NODE:return{type:4,textContent:""}}var n}(e,t);if(!n)return null;var r=Wo(e)||ai++,o=n;return o.id=r,function(e,t){Vo.set(e,t)}(e,r),t.serializedNodeIds&&t.serializedNodeIds.add(r),o}var ai=1;function si(e,t){var n=[];return _n(e,(function(e){var r=ii(e,t);r&&n.push(r)})),n}function ci(e,t,n){return ii(e,{serializationContext:n,parentNodePrivacyLevel:t.defaultPrivacyLevel,configuration:t})}function ui(e){return Boolean(e.changedTouches)}function li(e){return!0===e.composed&&vn(e.target)?e.composedPath()[0]:e.target}var di,pi=function(e){return{scale:e.scale,offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,height:e.height,width:e.width}};function fi(e){var t,n,r,o,i=ui(e)?e.changedTouches[0]:e,a=i.clientX,s=i.clientY;
2if(window.visualViewport){var c=(t=a,n=s,r=window.visualViewport,o={layoutViewportX:t,layoutViewportY:n,visualViewportX:t,visualViewportY:n},r?(function(e){return Math.abs(e.pageTop-e.offsetTop-window.scrollY)>25||Math.abs(e.pageLeft-e.offsetLeft-window.scrollX)>25}(r)?(o.layoutViewportX=Math.round(t+r.offsetLeft),o.layoutViewportY=Math.round(n+r.offsetTop)):(o.visualViewportX=Math.round(t-r.offsetLeft),o.visualViewportY=Math.round(n-r.offsetTop)),o):o);a=c.visualViewportX,s=c.visualViewportY}if(Number.isFinite(a)&&Number.isFinite(s))return{x:a,y:s};e.isTrusted&&Jt("mouse/touch event without x/y")}var hi,mi=((di={})[ge.POINTER_UP]=0,di[ge.MOUSE_DOWN]=1,di[ge.CLICK]=2,di[ge.CONTEXT_MENU]=3,di[ge.DBL_CLICK]=4,di[ge.FOCUS]=5,di[ge.BLUR]=6,di[ge.TOUCH_START]=7,di[ge.TOUCH_END]=9,di);function gi(e,t,n){void 0===n&&(n=document);var r,o=e.defaultPrivacyLevel,i=new WeakMap,a=n!==document,s=Te(e,n,a?[ge.CHANGE]:[ge.INPUT,ge.CHANGE],(function(e){var t=li(e);(t instanceof HTMLInputElement||t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement)&&u(t)}),{capture:!0,passive:!0}).stop;if(a)r=L;else{var c=[Vn(HTMLInputElement.prototype,"value",u),Vn(HTMLInputElement.prototype,"checked",u),Vn(HTMLSelectElement.prototype,"value",u),Vn(HTMLTextAreaElement.prototype,"value",u),Vn(HTMLSelectElement.prototype,"selectedIndex",u)];r=function(){c.forEach((function(e){return e.stop()}))}}return function(){r(),s()};function u(e){var t=Uo(e,o);if(t!==No.HIDDEN){var n,r=e.type;if("radio"===r||"checkbox"===r){if(Ho(e,t))return;n={isChecked:e.checked}}else{var i=Yo(e,t);if(void 0===i)return;n={text:i}}l(e,n);var a,s,c=e.name;"radio"===r&&c&&e.checked&&(a=document.querySelectorAll('input[type="radio"][name="'.concat(S(c),'"]')),s=function(t){t!==e&&l(t,{isChecked:!1})},Array.prototype.forEach.call(a,s))}}function l(e,n){if(Go(e)){var r=i.get(e);r&&r.text===n.text&&r.isChecked===n.isChecked||(i.set(e,n),t(C({id:Wo(e)},n)))}}}function yi(e){for(var t=[],n=e;n.parentRule;){var r=Array.from(n.parentRule.cssRules).indexOf(n);t.unshift(r),n=n.parentRule}if(n.parentStyleSheet){var o=Array.from(n.parentStyleSheet.cssRules).indexOf(n);return t.unshift(o),t}}function vi(e,t,n,r){var o=nn();if(!o)return{stop:L,flush:L};var i=function(e){var t=L,n=[];function r(){t(),e(n),n=[]}return{addMutations:function(e){0===n.length&&(t=function(e,t){if(window.requestIdleCallback&&window.cancelIdleCallback){var n=window.requestIdleCallback(f(e),{timeout:100});return function(){return window.cancelIdleCallback(n)}}
2var r=window.requestAnimationFrame(f(e));return function(){return window.cancelAnimationFrame(r)}}(r)),n.push.apply(n,e)},flush:r,stop:function(){t()}}}((function(r){!function(e,t,n,r){e.filter((function(e){return"childList"===e.type})).forEach((function(e){e.removedNodes.forEach((function(e){bi(e,r.removeShadowRoot)}))}));var o=e.filter((function(e){return e.target.isConnected&&function(e){for(var t=e;t;){if(!Go(t)&&!bn(t))return!1;t=wn(t)}return!0}(e.target)&&Uo(e.target,n.defaultPrivacyLevel)!==No.HIDDEN})),i=function(e,t,n){for(var r=new Set,o=new Map,i=function(e){e.addedNodes.forEach((function(e){r.add(e)})),e.removedNodes.forEach((function(t){r.has(t)||o.set(t,e.target),r.delete(t)}))},a=0,s=e;a<s.length;a++)i(s[a]);var c=Array.from(r);c.sort((function(e,t){var n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_CONTAINS||n&Node.DOCUMENT_POSITION_FOLLOWING?1:n&Node.DOCUMENT_POSITION_PRECEDING?-1:0}));for(var u=new Set,l=[],d=0,p=c;d<p.length;d++){var f=p[d];if(!v(f)){var h=Uo(f.parentNode,t.defaultPrivacyLevel);if(h!==No.HIDDEN&&h!==No.IGNORE){var m=ii(f,{serializedNodeIds:u,parentNodePrivacyLevel:h,serializationContext:{status:2,shadowRootsController:n},configuration:t});if(m){var g=wn(f);l.push({nextId:b(f),parentId:Wo(g),node:m})}}}}var y=[];return o.forEach((function(e,t){Go(t)&&y.push({parentId:Wo(e),id:Wo(t)})})),{adds:l,removes:y,hasBeenSerialized:v};function v(e){return Go(e)&&u.has(Wo(e))}function b(e){for(var t=e.nextSibling;t;){if(Go(t))return Wo(t);t=t.nextSibling}return null}}(o.filter((function(e){return"childList"===e.type})),n,r),a=i.adds,s=i.removes,c=i.hasBeenSerialized,u=function(e,t){for(var n,r=[],o=new Set,i=e.filter((function(e){return!o.has(e.target)&&(o.add(e.target),!0)})),a=0,s=i;a<s.length;a++){var c=s[a];if(c.target.textContent!==c.oldValue){var u=Uo(wn(c.target),t.defaultPrivacyLevel);u!==No.HIDDEN&&u!==No.IGNORE&&r.push({id:Wo(c.target),value:null!==(n=qo(c.target,!1,u))&&void 0!==n?n:null})}}return r}(o.filter((function(e){return"characterData"===e.type&&!c(e.target)})),n),l=function(e,t){for(var n=[],r=new Map,o=e.filter((function(e){var t=r.get(e.target);return!(null==t?void 0:t.has(e.attributeName))&&(t?t.add(e.attributeName):r.set(e.target,new Set([e.attributeName])),!0)})),i=new Map,a=0,s=o;a<s.length;a++){var c=s[a];if(c.target.getAttribute(c.attributeName)!==c.oldValue){var u=Uo(c.target,t.defaultPrivacyLevel),l=ti(c.target,u,c.attributeName,t),d=void 0;if("value"===c.attributeName){var p=Yo(c.target,u);if(void 0===p)continue;d=p}else d="string"==typeof l?l:null;var f=i.get(c.target);f||(f={id:Wo(c.target),attributes:{}},n.push(f),i.set(c.target,f)),f.attributes[c.attributeName]=d}}return n}(o.filter((function(e){return"attributes"===e.type&&!c(e.target)})),n);(u.length||l.length||s.length||a.length)&&t({adds:a,removes:s,texts:u,attributes:l})}(r.concat(a.takeRecords()),e,t,n)})),a=new o(f(i.addMutations));return a.observe(r,{attributeOldValue:!0,attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),{stop:function(){a.disconnect(),i.stop()},flush:function(){i.flush()}}}function bi(e,t){vn(e)&&t(e.shadowRoot),_n(e,(function(e){return bi(e,t)}))}function _i(e){var t=e.emit,n=e.configuration;if(!t)throw new Error("emit function is required");var r,o=(r=new WeakMap,{set:function(e,t){(e!==document||document.scrollingElement)&&r.set(e===document?document.scrollingElement:e,t)},get:function(e){return r.get(e)},has:function(e){return r.has(e)}}),i=function(e){t(Lo(0,e))},a=function(e){return t(Lo(5,e))},s=function(e,t){var n=t.mutationCb,r=t.inputCb,o=new Map,i={addShadowRoot:function(t){var a=vi(n,e,i,t),s=a.stop,c=a.flush,u=gi(e,r,t);o.set(t,{flush:c,stop:function(){s(),u()}})},removeShadowRoot:function(e){var t=o.get(e);t&&(t.stop(),o.delete(e))},stop:function(){o.forEach((function(e){return(0,e.stop)()}))},flush:function(){o.forEach((function(e){return(0,e.flush)()}))}};return i}(n,{mutationCb:i,inputCb:a}),c=function(e,r){void 0===e&&(e=ie()),void 0===r&&(r={status:0,elementsScrollPositions:o,shadowRootsController:s});var i=oo(),a=i.width,c=i.height;t({data:{height:c,href:window.location.href,width:a},type:4,timestamp:e}),t({data:{has_focus:document.hasFocus()},type:6,timestamp:e}),t({data:{node:ci(document,n,r),initialOffset:{left:to(),top:no()}},type:2,timestamp:e}
2),window.visualViewport&&t({data:pi(window.visualViewport),type:8,timestamp:e})};c();var u=function(e,t){var n=function(){var e=new WeakMap,t=1;return{getIdForEvent:function(n){return e.has(n)||e.set(n,t++),e.get(n)}}}(),r=vi(t.mutationCb,t.configuration,t.shadowRootsController,document),o=function(e,t){var n=j((function(e){var n=li(e);if(Go(n)){var r=fi(e);if(!r)return;var o={id:Wo(n),timeOffset:0,x:r.x,y:r.y};t([o],ui(e)?6:1)}}),50,{trailing:!1}).throttled;return Te(e,document,[ge.MOUSE_MOVE,ge.TOUCH_MOVE],n,{capture:!0,passive:!0}).stop}(e,t.mousemoveCb),i=function(e,t,n){return Te(e,document,Object.keys(mi),(function(r){var o=li(r);if(Uo(o,e.defaultPrivacyLevel)!==No.HIDDEN&&Go(o)){var i,a=Wo(o),s=mi[r.type];if(6!==s&&5!==s){var c=fi(r);if(!c)return;i={id:a,type:s,x:c.x,y:c.y}}else i={id:a,type:s};var u=C({id:n.getIdForEvent(r)},Lo(2,i));t(u)}}),{capture:!0,passive:!0}).stop}(e,t.mouseInteractionCb,n),a=function(e,t,n,r){var o=j((function(e){var o=li(e);if(o&&Uo(o,n)!==No.HIDDEN&&Go(o)){var i=Wo(o),a=o===document?{scrollTop:no(),scrollLeft:to()}:{scrollTop:Math.round(o.scrollTop),scrollLeft:Math.round(o.scrollLeft)};r.set(o,a),t({id:i,x:a.scrollLeft,y:a.scrollTop})}}),100).throttled;return Oe(e,document,ge.SCROLL,o,{capture:!0,passive:!0}).stop}(e,t.scrollCb,t.configuration.defaultPrivacyLevel,t.elementsScrollPositions),s=function(e,t){return ro(e).subscribe(t).unsubscribe}(e,t.viewportResizeCb),c=gi(e,t.inputCb),u=function(e,t,n){return Te(e,document,[ge.PLAY,ge.PAUSE],(function(e){var r=li(e);r&&Uo(r,n)!==No.HIDDEN&&Go(r)&&t({id:Wo(r),type:e.type===ge.PLAY?0:1})}),{capture:!0,passive:!0}).stop}(e,t.mediaInteractionCb,t.configuration.defaultPrivacyLevel),l=function(e){function t(e,t){e&&Go(e.ownerNode)&&t(Wo(e.ownerNode))}var n=[qn(CSSStyleSheet.prototype,"insertRule",{before:function(n,r){t(this,(function(t){return e({id:t,adds:[{rule:n,index:r}]})}))}}),qn(CSSStyleSheet.prototype,"deleteRule",{before:function(n){t(this,(function(t){return e({id:t,removes:[{index:n}]})}))}})];function r(r){n.push(qn(r.prototype,"insertRule",{before:function(n,r){var o=this;t(this.parentStyleSheet,(function(t){var i=yi(o);i&&(i.push(r||0),e({id:t,adds:[{rule:n,index:i}]}))}))}}),qn(r.prototype,"deleteRule",{before:function(n){var r=this;t(this.parentStyleSheet,(function(t){var o=yi(r);o&&(o.push(n),e({id:t,removes:[{index:o}]}))}))}}))}return"undefined"!=typeof CSSGroupingRule?r(CSSGroupingRule):(r(CSSMediaRule),r(CSSSupportsRule)),function(){return n.forEach((function(e){return e.stop()}))}}(t.styleSheetCb),d=function(e,t){return Te(e,window,[ge.FOCUS,ge.BLUR],(function(){t({has_focus:document.hasFocus()})})).stop}(e,t.focusCb),p=function(e,t){var n=window.visualViewport;if(!n)return L;var r=j((function(){t(pi(n))}),200,{trailing:!1}),o=r.throttled,i=r.cancel,a=Te(e,n,[ge.RESIZE,ge.SCROLL],o,{capture:!0,passive:!0}).stop;return function(){a(),i()}}
2(e,t.visualViewportResizeCb),f=function(e,t,n){return e.subscribe(10,(function(e){var r,o,i;"action"===e.rawRumEvent.type&&"click"===e.rawRumEvent.action.type&&(null===(o=null===(r=e.rawRumEvent.action.frustration)||void 0===r?void 0:r.type)||void 0===o?void 0:o.length)&&"events"in e.domainContext&&(null===(i=e.domainContext.events)||void 0===i?void 0:i.length)&&t({timestamp:e.rawRumEvent.date,type:9,data:{frustrationTypes:e.rawRumEvent.action.frustration.type,recordIds:e.domainContext.events.map((function(e){return n.getIdForEvent(e)}))}})})).unsubscribe}(t.lifeCycle,t.frustrationCb,n);return{flush:function(){r.flush()},stop:function(){r.stop(),o(),i(),a(),s(),c(),u(),l(),d(),p(),f()}}}(n,{lifeCycle:e.lifeCycle,configuration:n,elementsScrollPositions:o,inputCb:a,mediaInteractionCb:function(e){return t(Lo(7,e))},mouseInteractionCb:function(e){return t(e)},mousemoveCb:function(e,n){return t(Lo(n,{positions:e}))},mutationCb:i,scrollCb:function(e){return t(Lo(3,e))},styleSheetCb:function(e){return t(Lo(8,e))},viewportResizeCb:function(e){return t(Lo(4,e))},frustrationCb:function(e){return t(e)},focusCb:function(e){return t({data:e,type:6,timestamp:ie()})},visualViewportResizeCb:function(e){t({data:e,type:8,timestamp:ie()})},shadowRootsController:s}),l=u.stop,d=u.flush;function p(){s.flush(),d()}return{stop:function(){s.stop(),l()},takeSubsequentFullSnapshot:function(e){p(),c(e,{shadowRootsController:s,status:1,elementsScrollPositions:o})},flushMutations:p,shadowRootsController:s}}function wi(e){return Si(e).segments_count}function Si(e){var t;return hi||(hi=new Map),hi.has(e)?t=hi.get(e):(t={records_count:0,segments_count:0,segments_total_raw_size:0},hi.set(e,t),hi.size>10&&function(){if(hi)if(hi.keys)hi.delete(hi.keys().next().value);else{var e=!0;hi.forEach((function(t,n){e&&(hi.delete(n),e=!1)}))}}()),t}var Ci=function(){function e(e,t,n){this.encoder=e,this.encodedBytesCount=0;var r=t.view.id;this.metadata=C({start:1/0,end:-1/0,creation_reason:n,records_count:0,has_full_snapshot:!1,index_in_view:wi(r),source:"browser"},t),function(e){Si(e).segments_count+=1}(r)}return e.prototype.addRecord=function(e,t){var n,r=this;this.metadata.start=Math.min(this.metadata.start,e.timestamp),this.metadata.end=Math.max(this.metadata.end,e.timestamp),this.metadata.records_count+=1,(n=this.metadata).has_full_snapshot||(n.has_full_snapshot=2===e.type),qt("record",{record:e,segment:this.metadata}),Si(this.metadata.view.id).records_count+=1;var o=this.encoder.isEmpty?'{"records":[':",";this.encoder.write(o+JSON.stringify(e),(function(e){r.encodedBytesCount+=e,t(r.encodedBytesCount)}))},e.prototype.flush=function(e){var t=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,o;r=t.metadata.view.id,o=n.rawBytesCount,Si(r).segments_total_raw_size+=o,e(t.metadata,n)}))},e}(),ki=6e4;function xi(e,t,n,r,o,i){return function(e,o,i,a){var s={status:0,nextSegmentCreationReason:"init"},c=e.subscribe(2,(function(){l("view_change")})).unsubscribe,u=e.subscribe(9,(function(e){l(e.reason)})).unsubscribe;function l(e){1===s.status&&(s.segment.flush((function(t,n){var r=function(e,t,n){var r=new FormData;r.append("segment",new Blob([e],{type:"application/octet-stream"}),"".concat(t.session.id,"-").concat(t.start));var o=C({raw_segment_size:n,compressed_segment_size:e.byteLength},t),i=JSON.stringify(o);return r.append("event",new Blob([i],{type:"application/json"})),{data:r,bytesCount:e.byteLength}}(n.output,t,n.rawBytesCount);tn(e)?i.sendOnExit(r):i.send(r)})),A(s.expirationTimeoutId)),s="stop"!==e?{status:0,nextSegmentCreationReason:e}:{status:2}}return{addRecord:function(e){if(2!==s.status){if(0===s.status){var o=function(e,t,n){var r=t.findTrackedSession(),o=n.findView();if(r&&o)return{application:{id:e},session:{id:r.id},view:{id:o.id}}}(t.applicationId,n,r);if(!o)return;s={status:1,segment:new Ci(a,o,s.nextSegmentCreationReason),expirationTimeoutId:T((function(){l("segment_duration_limit")}),3e4)}}s.segment.addRecord(e,(function(e){e>6e4&&l("segment_bytes_limit")}))}},stop:function(){l("stop"),c(),u()}}}(e,0,o,i)}function Ei(){return"function"==typeof Array.from&&"function"==typeof CSSSupportsRule&&"function"==typeof URL.createObjectURL&&"forEach"in NodeList.prototype}function Oi(e,t,n,r){var o=t.findTrackedSession(),i=function(e,t){return Ei()?e?e.sessionReplayAllowed?t?void 0:"replay-not-started":"incorrect-session-plan":"rum-not-tracked":"browser-not-supported"}(o,r);return function(e,t){var n=t.session,r=t.viewContext,o=t.errorType,i=n?n.id:"no-session-id",a=[];void 0!==o&&a.push("error-type=".concat(o)),r&&(a.push("seed=".concat(r.id)),a.push("from=".concat(r.startClocks.timeStamp)));var s,c,u,l=(c=(s=e).site,u=s.subdomain||function(e){switch(e.site){case At:case"datadoghq.eu":return"app";case Tt:return"dd";default:return}}(s),"https://".concat(u?"".concat(u,"."):"").concat(c)),d="/rum/replay/sessions/".concat(i);return"".concat(l).concat(d,"?").concat(a.join("&"))}(e,{viewContext:n.findView(),errorType:i,session:o})}
2function Ti(e,t,n){var r,o=0,i=[],a=0,s=[],c=Oe(e,t,"message",(function(e){var t=e.data;if("wrote"===t.type&&t.streamId===n){o+=t.additionalBytesCount,i.push(t.result),r=t.trailer;var a=s.shift();a&&a.id===t.id?a.writeCallback?a.writeCallback(t.result.byteLength):a.finishCallback&&a.finishCallback():(c(),Jt("Worker responses received out of order."))}})).stop;function u(){var e=0===i.length?new Uint8Array(0):function(e){for(var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),r=0,o=0,i=e;o<i.length;o++){var a=i[o];n.set(a,r),r+=a.length}return n}(i.concat(r)),t={rawBytesCount:o,output:e,outputBytesCount:e.byteLength,encoding:"deflate"};return o=0,i=[],t}function l(){a>0&&(t.postMessage({action:"reset",streamId:n}),a=0)}return{isAsync:!0,get isEmpty(){return 0===a},write:function(e,r){t.postMessage({action:"write",id:a,data:e,streamId:n}),s.push({id:a,writeCallback:r,data:e}),a+=1},finish:function(e){l(),s.length?(s.forEach((function(e){delete e.writeCallback})),s[s.length-1].finishCallback=function(){return e(u())}):e(u())},finishSync:function(){l();var e=s.map((function(e){return delete e.writeCallback,delete e.finishCallback,e.data})).join("");return C(u(),{pendingData:e})},estimateEncodedBytesCount:function(e){return e.length/8},stop:function(){c()}}}function Ai(e){return new Worker(e.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<i.length;r++){var s=i[r];a.set(s,n),n+=s.length}return a}function e(t){for(var e=t.length;--e>=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<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=a-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=a)},x=function(t,e,a){z(t,a[2*e],a[2*e+1])},A=function(t,e){var a=0;do{a|=1&t,t>>>=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;e<n;e++)t.dyn_ltree[2*e]=0;for(e=0;e<r;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0},U=function(t){t.bi_valid>8?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]<t[i]||t[r]===t[i]&&n[e]<=n[a]},R=function(t,e,a){for(var n=t.heap[a],r=a<<1;r<=t.heap_len&&(r<t.heap_len&&S(e,t.heap[r+1],t.heap[r],t.depth)&&r++,!S(e,n,t.heap[r],t.depth));)t.heap[a]=t.heap[r],a=r,r<<=1;t.heap[a]=n},L=function(t,e,n){var r,i,h,l,o=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*o]<<8|t.pending_buf[t.d_buf+2*o+1],i=t.pending_buf[t.l_buf+o],o++,0===r?x(t,i,e):(h=f[i],x(t,h+a+1,e),0!==(l=s[h])&&(i-=c[h],z(t,i,l)),r--,h=y(r),x(t,h,n),0!==(l=_[h])&&(r-=v[h],z(t,r,l)))}while(o<t.last_lit);x(t,256,e)},F=function(t,e){var a,n,r,s=e.dyn_tree,_=e.stat_desc.static_tree,h=e.stat_desc.has_stree,l=e.stat_desc.elems,o=-1;for(t.heap_len=0,t.heap_max=573,a=0;a<l;a++)0!==s[2*a]?(t.heap[++t.heap_len]=o=a,t.depth[a]=0):s[2*a+1]=0;for(;t.heap_len<2;)s[2*(r=t.heap[++t.heap_len]=o<2?++o:0)]=1,t.depth[r]=0,t.opt_len--,h&&(t.static_len-=_[2*r+1]);for(e.max_code=o,a=t.heap_len>>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;
vendor: 4,275 bytes, line 2
2)(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],++_<h&&r===s||(_<l?t.bl_tree[2*r]+=_:0!==r?(r!==i&&t.bl_tree[2*r]++,t.bl_tree[32]++):_<=10?t.bl_tree[34]++:t.bl_tree[36]++,_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4))},I=function(t,e,a){var n,r,i=-1,s=e[1],_=0,h=7,l=4;for(0===s&&(h=138,l=3),n=0;n<=a;n++)if(r=s,s=e[2*(n+1)+1],!(++_<h&&r===s)){if(_<l)do{x(t,r,t.bl_tree)}while(0!=--_);else 0!==r?(r!==i&&(x(t,r,t.bl_tree),_--),x(t,16,t.bl_tree),z(t,_-3,2)):_<=10?(x(t,17,t.bl_tree),z(t,_-3,3)):(x(t,18,t.bl_tree),z(t,_-11,7));_=0,i=r,0===s?(h=138,l=3):r===s?(h=6,l=3):(h=7,l=4)}},N=!1,O=function(t,e,a,n){z(t,0+(n?1:0),3),function(t,e,a,n){U(t),n&&(k(t,a),k(t,~a)),t.pending_buf.set(t.window.subarray(e,e+a),t.pending),t.pending+=a}(t,e,a,!0)},D=function(t,e,n,r){var i,s,_=0;t.level>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<a;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),F(t,t.l_desc),F(t,t.d_desc),_=function(t){var e;for(T(t,t.dyn_ltree,t.l_desc.max_code),T(t,t.dyn_dtree,t.d_desc.max_code),F(t,t.bl_desc),e=18;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<n;r++)z(t,t.bl_tree[2*l[r]+1],3);I(t,t.dyn_ltree,e-1),I(t,t.dyn_dtree,a-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,_+1),L(t,t.dyn_ltree,t.dyn_dtree)),Z(t),r&&U(t)},B={_tr_init:function(t){N||(!function(){var t,e,a,l,m,y=new Array(16);for(a=0,l=0;l<28;l++)for(c[l]=a,t=0;t<1<<s[l];t++)f[a++]=l;for(f[a-1]=l,m=0,l=0;l<16;l++)for(v[l]=m,t=0;t<1<<_[l];t++)u[m++]=l;for(m>>=7;l<r;l++)for(v[l]=m<<7,t=0;t<1<<_[l]-7;t++)u[256+m++]=l;for(e=0;e<=i;e++)y[e]=0;for(t=0;t<=143;)o[2*t+1]=8,t++,y[8]++;for(;t<=255;)o[2*t+1]=9,t++,y[9]++;for(;t<=279;)o[2*t+1]=7,t++,y[7]++;for(;t<=287;)o[2*t+1]=8,t++,y[8]++;for(E(o,287,y),t=0;t<r;t++)d[2*t+1]=5,d[2*t]=A(t,5);p=new b(o,s,257,n,i),g=new b(d,_,0,r,i),w=new b(new Array(0),h,0,19,7)}(),N=!0),t.l_desc=new m(t.dyn_ltree,p),t.d_desc=new m(t.dyn_dtree,g),t.bl_desc=new m(t.bl_tree,w),t.bi_buf=0,t.bi_valid=0,Z(t)},_tr_stored_block:O,_tr_flush_block:D,_tr_tally:function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>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<i;s++)t=t>>>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_ER
2ROR,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.hash_shift^a)&t.hash_mask},kt=function(t){var e=t.state,a=e.pending;a>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]&&i<u);if(n=ft-(u-i),i=u-ft,n>s){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<ct&&0!==t.strm.avail_in)},Ut=function(t,e){for(var a,n;;){if(t.lookahead<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,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<ct){if(Zt(t),t.lookahead<ct&&e===q)return 1;if(0===t.lookahead)break}if(a=0,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_length<t.max_lazy_match&&t.strstart-a<=t.w_size-ct&&(t.match_length=Et(t,a),t.match_length<=5&&(t.strategy===st||3===t.match_length&&t.strstart-t.match_start>4096)&&(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<<r+6,_.pending_buf_size=4*_.lit_bufsize,_.pending_buf=new Uint8Array(_.pending_buf_size),_.d_buf=1*_.lit_bufsize,_.l_buf=3*_.lit_bufsize,_.level=e,_.strategy=i,_.method=a,It(t)}
2,Ot={deflateInit:function(t,e){return Nt(t,e,ut,15,8,ot)},deflateInit2:Nt,deflateReset:It,deflateResetKeep:Tt,deflateSetHeader:function(t,e){return t&&t.state?2!==t.state.wrap?at:(t.state.gzhead=e,tt):at},deflate:function(t,e){var a,n;if(!t||!t.state||e>$||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.gzindex<r.gzhead.name.length?255&r.gzhead.name.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(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.gzindex<r.gzhead.comment.length?255&r.gzhead.comment.charCodeAt(r.gzindex++):0,xt(r,n)}while(0!==n);r.gzhead.hcrc&&r.pending>a&&(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]&&r<i);t.match_length=ft-(i-r),t.match_length>t.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);
2i.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<n;a++)e+=t[a].length;for(var r=new Uint8Array(e),i=0,s=0,_=t.length;i<_;i++){var h=t[i];r.set(h,s),s+=h.length}return r}(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},function(e){void 0===e&&(e=self);try{var a=new Map;e.addEventListener("message",(function(n){try{var r=function(e,a){switch(a.action){case"init":return{type:"initialized",version:"5.4.0"};case"write":var n=e.get(a.streamId);n||(n=new Jt,e.set(a.streamId,n));var r=n.chunks.length,i=function(t){if("function"==typeof TextEncoder&&TextEncoder.prototype.encode)return(new TextEncoder).encode(t);var e,a,n,r,i,s=t.length,_=0;for(r=0;r<s;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),_+=a<128?1:a<2048?2:a<65536?3:4;for(e=new Uint8Array(_),i=0,r=0;i<_;r++)55296==(64512&(a=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(n=t.charCodeAt(r+1)))&&(a=65536+(a-55296<<10)+(n-56320),r++),a<128?e[i++]=a:a<2048?(e[i++]=192|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 Pi={status:0};function Ii(e,t,n,r){switch(void 0===r&&(r=Ai),0===Pi.status&&function(e,t,n){void 0===n&&(n=Ai);try{var r=n(e),o=Oe(e,r,"error",(function(n){Li(e,t,n)})).stop,i=Oe(e,r,"message",(function(n){var r,o=n.data;"errored"===o.type?Li(e,t,o.error,o.streamId):"initialized"===o.type&&(r=o.version,1===Pi.status&&(Pi={status:3,worker:Pi.worker,stop:Pi.stop,version:r}))})).stop;r.postMessage({action:"init"}),T((function(){return function(e){1===Pi.status&&(s.error("".concat(e," failed to start: a timeout occurred while initializing the Worker")),Pi.initializationFailureCallbacks.forEach((function(e){return e()})),Pi={status:2})}(t)}),1e4),Pi={status:1,worker:r,stop:function(){o(),i()},initializationFailureCallbacks:[]}}catch(n){Li(e,t,n)}}(e,t,r),Pi.status){case 1:return Pi.initializationFailureCallbacks.push(n),Pi.worker;case 3:return Pi.worker}}function ji(){return Pi.status}function Li(e,t,n,r){if(1===Pi.status||0===Pi.status){if(s.error("".concat(t," failed to start: an error occurred while creating the Worker:"),n),n instanceof Event||n instanceof Error&&function(e){return g(e,"Content Security Policy")||g(e,"requires 'TrustedScriptURL'")}(n.message)){var o;o=e.workerUrl?"Please make sure the Worker URL ".concat(e.workerUrl," is correct and CSP is correctly configured."):"Please make sure CSP is correctly configured.",s.error("".concat(o," See documentation at https://docs.datadoghq.com/integrations/content_security_policy_logs/#use-csp-with-real-user-monitoring-and-session-replay"))}else Zt(n);1===Pi.status&&Pi.initializationFailureCallbacks.forEach((function(e){return e()})),Pi={status:2}}else Zt(n,{worker_version:3===Pi.status&&Pi.version,stream_id:r})}var Ni=function(e,t){if(Ee()||!Ei())return{start:L,stop:L,getReplayStats:function(){},onRumStart:L,isRecording:function(){return!1},getSessionReplayLink:function(){}};var n={status:1},r=function(){n={status:1}},o=function(){n={status:0}};return{start:function(){return r()},stop:function(){return o()},getSessionReplayLink:function(e,t,r){return Oi(e,t,r,0!==n.status)},onRumStart:function(e,t,i,a,s){t.startSessionReplayRecordingManually&&(n={status:0}),e.subscribe(7,(function(){2!==n.status&&3!==n.status||(o(),n={status:1})})),e.subscribe(8,(function(){1===n.status&&r()})),r=function(){var r=i.findTrackedSession();r&&r.sessionReplayAllowed?2!==n.status&&3!==n.status&&(n={status:2},rn(t,"interactive",(function(){if(2===n.status)if(s||(s=Ii(t,"Datadog Session Replay",(function(){o()}),undefined))){var r=function(e,t,n,r,o,i){var a=i||_o(t,t.sessionReplayEndpointBuilder,ki,(function(t){e.notify(12,{error:t}),Jt("Error reported to customer",{"error.message":t.message})})),s=xi(e,t,n,r,a,o),c=s.addRecord,u=s.stop,l=_i({emit:c,configuration:t,lifeCycle:e}),d=l.stop,p=l.takeSubsequentFullSnapshot,f=l.flushMutations,h=e.subscribe(4,(function(){f(),c({timestamp:ie(),type:7})})).unsubscribe,m=e.subscribe(2,(function(e){p(e.startClocks.timeStamp)})).unsubscribe;return{stop:function(){h(),m(),d(),u()}}}(e,t,i,a,Ti(t,s,1)).stop;n={status:3,stopRecording:r}}else n={status:0}}))):n={status:1}},o=function(){0!==n.status&&(3===n.status&&n.stopRecording(),n={status:0})},1===n.status&&r()},isRecording:function(){return 3===ji()&&3===n.status},getReplayStats:function(e){return 3===ji()?function(e){return null==hi?void 0:hi.get(e)}(e):void 0}}}(),Ri=function(e,t,n){var r,o=void 0===n?{}:n,i=o.ignoreInitIfSyntheticsWillInjectRum,a=void 0===i||i,c=o.startDeflateWorker,l=o.createDeflateEncoder,d=!1,m=Y(2),v=Y(1),b=function(){},_=function(){},w=L,S=function(){},k=new K,x=function(e,t){void 0===t&&(t=ie()),k.add((function(){return x(e,t)}))},O=function(e,t){void 0===t&&(t=se()),k.add((function(){return O(e,t)}))},T=function(e,n){void 0===n&&(n=zt(m,v,t)),k.add((function(){return T(e,n)}))},A=function(e,n){void 0===n&&(n=zt(m,v,t)),k.add((function(){return A(e,n)}))},I=function(){k.add((function(){return I()}))},R=function(){k.add((function(){return R()}))},U=function(e,t){k.add((function(){return U(e,t)}))};function $(e,n,o){if(e.storeContextsAcrossPages){var i=m.getContext();(m=Pe(n,"rum",2)).setContext(M(m.getContext(),i));var a=v.getContext();(v=Pe(n,"rum",1)).setContext(M(v.getContext(),a))}var s=function(e,t,n,r,o,i,a){var s=[],c=new Bn;c.subscribe(11,(function(e){return qt("rum",e)}));var l=function(e){var t=function(e,t){var n,r=new q;Kt.telemetryEnabled=!g(Yt,t.site)&&J(t.telemetrySampleRate),Kt.telemetryConfigurationEnabled=Kt.telemetryEnabled&&J(t.telemetryConfigurationSampleRate);var o={is_local_file:"file:"===window.location.protocol,is_worker:"WorkerGlobalScope"in self};return Vt=function(t){if(Kt.telemetryEnabled){var i=function(e,t,r){return M({type:"telemetry",date:ie(),service:e,version:"5.4.0",source:"browser",_dd:{format_version:2},telemetry:M(t,{runtime_env:r}),experimental_features:y(Xe)},void 0!==n?n():{})}(e,t,o);r.notify(i),qt("telemetry",i)}},u=Zt,C(Kt,{maxEventsPerPage:t.maxTelemetryEventsPerPage,sentEventCount:0}),{setContextProvider:function(e){n=e},observable:r,enabled:Kt.telemetryEnabled}}("browser-rum-sdk",e);if(Ee()){var n=xe();t.observable.subscribe((function(e){return n.send("internal_telemetry",e)}))}return t}(t);l.setContextProvider((function(){var e,n;return{application:{id:t.applicationId},session:{id:null===(e=v.findTrackedSession())||void 0===e?void 0:e.id},view:{id:null===(n=k.findView())||void 0===n?void 0:n.id},action:{id:T.findActionId()}}}));var d=function(e){c.notify(12,{error:e}),Jt("Error reported to customer",{"error.message":e.message})},p=function(e,t){if(void 0===t&&(t=E),!Qe(ze.FEATURE_FLAGS))return{findFeatureFlagEvaluations:function(){},getFeatureFlagBytesCount:function(){return 0},addFeatureFlagEvaluation:L,stop:L};var n=new Hn(144e5),r=0,o=!1;e.subscribe(4,(function(e){var t=e.endClocks;n.closeActive(t.relative)})),e.subscribe(2,(function(e){var t=e.startClocks;n.add({},t.relative),r=0}));var i=j((function(e){r=t(F(e)),o||(o=W(r,0))}),200),a=i.throttled;return{findFeatureFlagEvaluations:function(e){return n.find(e)},getFeatureFlagBytesCount:function(){return n.find()?r:0},addFeatureFlagEvaluation:function(e,t){var r=n.find();r&&(r[e]=t,a(r))},stop:i.cancel}}(c),h=function(e){var t=new q((function(){var n=Qe(ze.PAGEHIDE),r=Te(e,window,[ge.VISIBILITY_CHANGE,ge.FREEZE,ge.PAGE_HIDE],(function(e){e.type===ge.PAGE_HIDE&&n?t.notify({reason:en.PAGEHIDE}):e.type===ge.VISIBILITY_CHANGE&&"hidden"===document.visibilityState?t.notify({reason:en.HIDDEN}):e.type===ge.FREEZE&&t.notify({reason:en.FROZEN})}),{capture:!0}).stop,o=L;return n||(o=Oe(e,window,ge.BEFORE_UNLOAD,(function(){t.notify({reason:en.UNLOADING})})).stop),function(){r(),o()}}));return t}(t),m=h.subscribe((function(e){c.notify(9,e)}));s.push((function(){return m.unsubscribe()}));var v=Ee()?function(){var e={id:"00000000-aaaa-0000-aaaa-000000000000",sessionReplayAllowed:!1};return{findTrackedSession:function(){return e},expire:L,expireObservable:new q}}():function(e,t){var n=lo(e,"rum",(function(t){return function(e,t){var n;return{trackingType:n=function(e){return"0"===e||"1"===e||"2"===e}(t)?t:J(e.sessionSampleRate)?J(e.sessionReplaySampleRate)?"1":"2":"0",
2isTracked:po(n)}}(e,t)}));return n.expireObservable.subscribe((function(){t.notify(7)})),n.renewObservable.subscribe((function(){t.notify(8)})),{findTrackedSession:function(e){var t=n.findActiveSession(e);if(t&&po(t.trackingType))return{id:t.id,sessionReplayAllowed:"1"===t.trackingType}},expire:n.expire,expireObservable:n.expireObservable}}(t,c);if(Ee())!function(e){var t=xe();e.subscribe(11,(function(e){t.send("rum",e)}))}(c);else{var b=Eo(t,c,l.observable,d,h,v.expireObservable,a);s.push((function(){return b.stop()})),function(e,t,n,r,o,i,a){t.enabled&&J(e.customerDataTelemetrySampleRate)&&(Po(),Io(),n.subscribe(11,(function(e){Co=!0,To(So.globalContextBytes,nt(r.getContext())?0:r.getBytesCount()),To(So.userContextBytes,nt(o.getContext())?0:o.getBytesCount());var t=i.findFeatureFlagEvaluations(),n=g(["view","error"],e.type)&&t&&!nt(t);To(So.featureFlagBytes,n?i.getFeatureFlagBytesCount():0)})),a.subscribe((function(e){var t=e.bytesCount,n=e.messagesCount;Co&&(wo.batchCount+=1,To(wo.batchBytesCount,t),To(wo.batchMessagesCount,n),Ao(wo.globalContextBytes,So.globalContextBytes),Ao(wo.userContextBytes,So.userContextBytes),Ao(wo.featureFlagBytes,So.featureFlagBytes),Io())})),P(Oo,1e4))}(t,l,c,r,o,p,b.flushObservable)}var _=function(){var e=nn(),t=new q((function(){if(e){var n=new e(f((function(){return t.notify()})));return n.observe(document,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),function(){return n.disconnect()}}}));return t}(),w=function(e,t){var n=et(t),r=new q((function(){var t=function(e,t){var n=qn(history,"pushState",{after:t}).stop,r=qn(history,"replaceState",{after:t}).stop,o=Oe(e,window,ge.POP_STATE,t).stop;return{stop:function(){n(),r(),o()}}}(e,o).stop,n=function(e,t){return Oe(e,window,ge.HASH_CHANGE,t)}(e,o).stop;return function(){t(),n()}}));function o(){if(n.href!==t.href){var e=et(t);r.notify({newLocation:e,oldLocation:n}),n=e}}return r}(t,location),S=function(e,t,n,r,o,i,a,s){var c=function(e){var t=new Hn(144e5);return e.subscribe(2,(function(e){t.add(function(e){return{service:e.service,version:e.version,id:e.id,name:e.name,startClocks:e.startClocks}}(e),e.startClocks.relative)})),e.subscribe(4,(function(e){var n=e.endClocks;t.closeActive(n.relative)})),e.subscribe(8,(function(){t.reset()})),{findView:function(e){return t.find(e)},stop:function(){t.stop()}}}(e),u=function(e,t,n){var r,o=new Hn(144e5);e.subscribe(4,(function(e){var t=e.endClocks;o.closeActive(t.relative)})),e.subscribe(2,(function(e){var t=e.startClocks,i=n.href;o.add(a({url:i,referrer:r||document.referrer}),t.relative),r=i}));var i=t.subscribe((function(e){var t=e.newLocation,n=o.find();if(n){var r=ae();o.closeActive(r),o.add(a({url:t.href,referrer:n.referrer}),r)}}));function a(e){return{url:e.url,referrer:e.referrer}}return{findUrl:function(e){return o.find(e)},stop:function(){i.unsubscribe(),o.stop()}}}(e,o,n),l=function(e,t){void 0===t&&(t=500);var n,r=new Hn(144e5,4e3);i(jo(),ae());var o=Te(e,window,[ge.PAGE_SHOW,ge.FOCUS,ge.BLUR,ge.VISIBILITY_CHANGE,ge.RESUME,ge.FREEZE,ge.PAGE_HIDE],(function(e){i(function(e){return e.type===ge.FREEZE?"frozen":e.type===ge.PAGE_HIDE?e.persisted?"frozen":"terminated":jo()}(e),e.timeStamp)}),{capture:!0}).stop;function i(e,t){void 0===t&&(t=ae()),e!==n&&(n=e,r.closeActive(t),r.add({state:n,startTime:t},t))}return{findAll:function(e,n){var o=r.findAll(e,n);if(0!==o.length){for(var i=[],a=Math.max(0,o.length-t),s=o.length-1;s>=a;s--){var c=o[s],u=ue(e,c.startTime);i.push({state:c.state,start:re(u)})}return i}},isInActivePageStateAt:function(e){var t=r.find(e);return void 0!==t&&"active"===t.state},addPageState:i,stop:function(){o(),r.stop()}}}(t),d=function(e,t,n,r){e.subscribe(1,(function(t){return e.notify(10,Lr(t,r))}));var o={findActionId:L};return n.trackUserInteractions&&(o=Ir(e,t,n).actionContexts),{addAction:function(t,n){e.notify(10,C({savedCommonContext:n},Lr(t,r)))},actionContexts:o}}(e,i,t,l),p=d.addAction,f=d.actionContexts,h=function(e){var t=oo();return{get:function(){return{viewport:t}},stop:ro(e).subscribe((function(e){t=e})).unsubscribe}}(t);return Fn(t,e,r,c,u,f,h,a,s),{viewContexts:c,pageStateHistory:l,urlContexts:u,addAction:p,actionContexts:f,stop:function(){h.stop(),l.stop(),u.stop(),c.stop(),l.stop()}}}(c,t,location,v,w,_,(function(){return zt(r,o,n)}),d),k=S.viewContexts,x=S.pageStateHistory,O=S.urlContexts,T=S.actionContexts,A=S.addAction,I=S.stop;s.push(I),function(e){Kt.telemetryConfigurationEnabled&&Xt({type:Gt,configuration:e})}(function(e){var t,n={session_sample_rate:(t=e).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};return C({session_replay_sample_rate:e.sessionReplaySampleRate,start_session_replay_recording_manually:e.startSessionReplayRecordingManually,trace_sample_rate:e.traceSampleRate,action_name_attribute:e.actionNameAttribute,use_allowed_tracing_urls:Array.isArray(e.allowedTracingUrls)&&e.allowedTracingUrls.length>0,selected_tracing_propagators:Ht(e),default_privacy_level:e.defaultPrivacyLevel,use_excluded_activity_urls:Array.isArray(e.excludedActivityUrls)&&e.excludedActivityUrls.length>0,use_worker_url:!!e.workerUrl,compress_intake_requests:e.compressIntakeRequests,track_views_manually:e.trackViewsManually,track_user_interactions:e.trackUserInteractions,track_resources:e.trackResources,track_long_task:e.trackLongTasks},n)}(e)),function(e,t,n){e.subscribe(0,(function(r){for(var o=0,i=r;o<i.length;o++){var a=i[o];if(a.entryType!==on.LONG_TASK)break;if(!n.findTrackedSession(a.startTime)||!t.trackLongTasks)break;var s=ne(a.startTime),c={date:s.timeStamp,long_task:{id:fe(),duration:re(a.duration)},type:"long_task",_dd:{discarded:!1}};e.notify(10,{rawRumEvent:c,startTime:s.relative,domainContext:{performanceEntry:a}})}}))}(c,t,v),zr(c,t,v,x);var N=so(c,t,location,_,w,p,x,n,i),R=N.addTiming,D=N.startView,U=N.stop;s.push(U);var B=$r(c,t,x,p).addError;tr(c,t,v),On(c,t);var $=function(e,t,n,r,o){return{get:function(i){var a=n.findView(i),s=o.findUrl(i),c=t.findTrackedSession(i);if(c&&a&&s){var u=r.findActionId(i);return{application_id:e,session_id:c.id,user_action:u?{id:u}:void 0,view:{id:a.id,name:a.name,referrer:s.referrer,url:s.url}}}}}}(t.applicationId,v,k,T,O);return{addAction:A,addError:B,addTiming:R,addFeatureFlagEvaluation:p.addFeatureFlagEvaluation,startView:D,lifeCycle:c,viewContexts:k,session:v,stopSession:function(){return v.expire()}
2,getInternalContext:$.get,stop:function(){s.forEach((function(e){return e()}))}}}(e,n,t,m,v,o,r&&l?function(e){return l(n,r,e)}:Ie);S=function(){return t.getSessionReplayLink(n,s.session,s.viewContexts)},I=t.start,R=t.stop,O=s.startView,T=s.addAction,A=s.addError,x=s.addTiming,U=s.addFeatureFlagEvaluation,b=s.getInternalContext,w=s.stopSession,t.onRumStart(s.lifeCycle,n,s.session,s.viewContexts,r),k.drain()}var H,z,V=f((function(e){O("object"==typeof e?e:{name:e})})),G=(H={init:f((function(e){if(e){if(_=function(){return D(e)},!a||!ke()){var t=Ee();if(t&&(e=function(e){return C({},e,{applicationId:"00000000-aaaa-0000-aaaa-000000000000",clientToken:"empty",sessionSampleRate:100})}(e)),function(e){return!d||(e.silentMultipleInit||s.error("DD_RUM is already initialized."),!1)}(e)){var n=function(e){var t,n;if(e.applicationId)if(void 0===e.sessionReplaySampleRate||X(e.sessionReplaySampleRate))if(void 0===e.traceSampleRate||X(e.traceSampleRate))if(void 0===e.excludedActivityUrls||Array.isArray(e.excludedActivityUrls)){var r=function(e){if(void 0!==e.allowedTracingUrls){if(!Array.isArray(e.allowedTracingUrls))return void s.error("Allowed Tracing URLs should be an array");if(0!==e.allowedTracingUrls.length&&void 0===e.service)return void s.error("Service needs to be configured when tracing is enabled");var t=[];return e.allowedTracingUrls.forEach((function(e){var n;Rt(e)?t.push({match:e,propagatorTypes:$t}):"object"===N(n=e)&&Rt(n.match)&&Array.isArray(n.propagatorTypes)?t.push(e):s.warn("Allowed Tracing Urls parameters should be a string, RegExp, function, or an object. Ignoring parameter",e)})),t}return[]}(e);if(r){var o=Nt(e);if(o)return C({applicationId:e.applicationId,version:e.version,actionNameAttribute:e.actionNameAttribute,sessionReplaySampleRate:null!==(t=e.sessionReplaySampleRate)&&void 0!==t?t:0,startSessionReplayRecordingManually:!!e.startSessionReplayRecordingManually,traceSampleRate:e.traceSampleRate,allowedTracingUrls:r,excludedActivityUrls:null!==(n=e.excludedActivityUrls)&&void 0!==n?n:[],workerUrl:e.workerUrl,compressIntakeRequests:!!e.compressIntakeRequests,trackUserInteractions:!!e.trackUserInteractions,trackViewsManually:!!e.trackViewsManually,trackResources:!!e.trackResources,trackLongTasks:!!e.trackLongTasks,subdomain:e.subdomain,defaultPrivacyLevel:tt(Lt,e.defaultPrivacyLevel)?e.defaultPrivacyLevel:Lt.MASK,customerDataTelemetrySampleRate:1},o)}}else s.error("Excluded Activity Urls should be an array");else s.error("Trace Sample Rate should be a number between 0 and 100");else s.error("Session Replay Sample Rate should be a number between 0 and 100");else s.error("Application ID is not configured, no RUM data will be collected.")}(e);if(n)if(t||n.sessionStoreStrategyType){if(!n.compressIntakeRequests||t||!c||(r=c(n,"Datadog RUM",L))){if(n.trackViewsManually){var o=k;k=new K,O=function(t){$(e,n,t)},o.drain()}else $(e,n);d=!0}}else s.warn("No storage available for session. We will not send any data.")}}}else s.error("Missing configuration")})),setGlobalContextProperty:f((function(e,t){return m.setContextProperty(e,t)})),removeGlobalContextProperty:f((function(e){return m.removeContextProperty(e)})),getGlobalContext:f((function(){return m.getContext()})),setGlobalContext:f((function(e){return m.setContext(e)})),clearGlobalContext:f((function(){return m.clearContext()})),getInternalContext:f((function(e){return b(e)})),getInitConfiguration:f((function(){return _()})),addAction:f((function(e,t){T({name:B(e),context:B(t),startClocks:se(),type:"custom"})})),addError:function(e,t){var n=Je();h((function(){A({error:e,handlingStack:n,context:B(t),startClocks:se()})}))},addTiming:f((function(e,t){x(B(e),t)})),setUser:f((function(e){(function(e){var t="object"===N(e);return t||s.error("Unsupported user:",e),t})(e)&&v.setContext(Ze(e))})),getUser:f((function(){return v.getContext()})),setUserProperty:f((function(e,t){var n,r=Ze((n={},n[e]=t,n))[e];v.setContextProperty(e,r)})),removeUserProperty:f((function(e){return v.removeContextProperty(e)})),clearUser:f((function(){return v.clearContext()})),startView:V,stopSession:f((function(){w()})),startSessionReplayRecording:f((function(){return I()})),stopSessionReplayRecording:f((function(){return R()})),addFeatureFlagEvaluation:f((function(e,t){U(B(e),B(t))})),getSessionReplayLink:f((function(){return S()}))},z=C({version:"5.4.0",onReady:function(e){e()}},H),Object.defineProperty(z,"_setDebug",{get:function(){return p},enumerable:!1}),z);return G}(0,Ni,{startDeflateWorker:Ii,createDeflateEncoder:Ti});!function(e,t,n){var r=e[t];e[t]=n,r&&r.q&&r.q.forEach((function(e){return c(e,"onReady callback threw an error:")()}))}(k(),"DD_RUM",Ri)},854465:(e,t,n)=>{"use strict";n.r(t),n.d(t,{loadStripe:()=>l});var r="https://js.stripe.com/v3",o=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,i="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used",a=null,s=function(e,t,n){if(null===e)return null;var r=e.apply(void 0,t);return function(e,t){e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",version:"1.32.0",startTime:t})}(r,n),r},c=Promise.resolve().then((function(){return e=null,null!==a||(a=new Promise((function(t,n){if("undefined"!=typeof window)if(window.Stripe&&e&&console.warn(i),window.Stripe)t(window.Stripe);else try{var a=function(){for(var e=document.querySelectorAll('script[src^="'.concat(r,'"]')),t=0;t<e.length;t++){var n=e[t];if(o.test(n.src))return n}return null}();a&&e?console.warn(i):a||(a=function(e){var t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",n=document.createElement("script");n.src="".concat(r).concat(t);var o=document.head||document.body;if(!o)throw new Error("Expected document.body not to be null. Stripe.js requires a <body> element.");return o.appendChild(n),n}(e)),a.addEventListener("load",(function(){window.Stripe?t(window.Stripe):n(new Error("Stripe.js not available"))})),a.addEventListener("error",(function(){n(new Error("Failed to load Stripe.js"))}))}catch(e){return void n(e)}else t(null)}))),a;var e})),u=!1;c.catch((function(e){u||console.warn(e)}));var l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];u=!0;var r=Date.now();return c.then((function(e){return s(e,t,r)}))}}
2,537593:(e,t,n)=>{"use strict";n.r(t),n.d(t,{initSuperflow:()=>r});var r=function(e,t){return n=void 0,r=void 0,i=function(){var n,r;return function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}(this,(function(o){switch(o.label){case 0:if(o.trys.push([0,2,,3]),!e)throw new Error("API Key is required");return document.getElementsByTagName("snippyly-plugin").length>0?[2]:((n=document.createElement("snippyly-plugin")).setAttribute("apiKey",e),(null==t?void 0:t.projectVersionKey)&&n.setAttribute("projectVersionKey",t.projectVersionKey),(null==t?void 0:t.projectId)&&n.setAttribute("projectId",t.projectId),document.body.append(n),[4,(i=null==t?void 0:t.options,new Promise((function(e,t){var n=document.getElementById("superflowScript"),r=!1,o="latest";if(i&&(i.staging&&(r=i.staging),i.version&&(o=i.version)),(null==i?void 0:i.version)||(o="latest"),n)e();else{var a=document.createElement("script");a.src="https://cdn.jsdelivr.net/npm/@snippyly/plugin".concat(r?"-staging":"","@").concat(o,"/snippyly.js"),a.id="superflowScript",a.type="module",document.body.appendChild(a),a.onload=function(){e()},a.onerror=function(){t(new Error("Failed to load Superflow script"))}}})))]);case 1:return o.sent(),[3,3];case 2:return r=o.sent(),console.error(r),[3,3];case 3:return[2]}var i}))},new((o=void 0)||(o=Promise))((function(e,t){function a(e){try{c(i.next(e))}catch(e){t(e)}}function s(e){try{c(i.throw(e))}catch(e){t(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof o?n:new o((function(e){e(n)}))).then(a,s)}c((i=i.apply(n,r||[])).next())}));var n,r,o,i}},100021:(e,t,n)=>{e.exports=u;var r=n(856362),o=n(293043),i=n(210137),a=n(251580),s=n(35717),c=n(623733);function u(){a.apply(this,arguments)}function l(){throw new c.AlgoliaSearchError("Not implemented in this environment.\nIf you feel this is a mistake, write to [email protected]")}s(u,a),u.prototype.deleteIndex=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(e),hostType:"write",callback:t})},u.prototype.moveIndex=function(e,t,n){var r={operation:"move",destination:t};return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:r,hostType:"write",callback:n})},u.prototype.copyIndex=function(e,t,n,r){var o={operation:"copy",destination:t},i=r;if("function"==typeof n)i=n;else if(Array.isArray(n)&&n.length>0)o.scope=n;else if(void 0!==n)throw new Error("the scope given to `copyIndex` was not an array with settings, synonyms or rules");return this._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(e)+"/operation",body:o,hostType:"write",callback:i})},u.prototype.getLogs=function(e,t,r){var o=n(382882),i={};return"object"==typeof e?(i=o(e),r=t):0===arguments.length||"function"==typeof e?r=e:1===arguments.length||"function"==typeof t?(r=t,i.offset=e):(i.offset=e,i.length=t),void 0===i.offset&&(i.offset=0),void 0===i.length&&(i.length=10),this._jsonRequest({method:"GET",url:"/1/logs?"+this._getSearchParams(i,""),hostType:"read",callback:r})},u.prototype.listIndexes=function(e,t){var n="";return void 0===e||"function"==typeof e?t=e:n="?page="+e,this._jsonRequest({method:"GET",url:"/1/indexes"+n,hostType:"read",callback:t})},u.prototype.initIndex=function(e){return new r(this,e)},u.prototype.initAnalytics=function(e){return n(497181)(this.applicationID,this.apiKey,e)},u.prototype.listUserKeys=o((function(e){return this.listApiKeys(e)}),i("client.listUserKeys()","client.listApiKeys()")),u.prototype.listApiKeys=function(e){return this._jsonRequest({method:"GET",url:"/1/keys",hostType:"read",callback:e})},u.prototype.getUserKeyACL=o((function(e,t){return this.getApiKey(e,t)}),i("client.getUserKeyACL()","client.getApiKey()")),u.prototype.getApiKey=function(e,t){return this._jsonRequest({method:"GET",url:"/1/keys/"+e,hostType:"read",callback:t})},u.prototype.deleteUserKey=o((function(e,t){return this.deleteApiKey(e,t)}),i("client.deleteUserKey()","client.deleteApiKey()")),u.prototype.deleteApiKey=function(e,t){return this._jsonRequest({method:"DELETE",url:"/1/keys/"+e,hostType:"write",callback:t})},u.prototype.restoreApiKey=function(e,t){return this._jsonRequest({method:"POST",url:"/1/keys/"+e+"/restore",hostType:"write",callback:t})},u.prototype.addUserKey=o((function(e,t,n){return this.addApiKey(e,t,n)}),i("client.addUserKey()","client.addApiKey()")),u.prototype.addApiKey=function(e,t,r){var o=n(405826),i="Usage: client.addApiKey(arrayOfAcls[, params, callback])";if(!o(e))throw new Error(i);1!==arguments.length&&"function"!=typeof t||(r=t,t=null);var a={acl:e};return t&&(a.validity=t.validity,a.maxQueriesPerIPPerHour=t.maxQueriesPerIPPerHour,a.maxHitsPerQuery=t.maxHitsPerQuery,a.indexes=t.indexes,a.description=t.description,t.queryParameters&&(a.queryParameters=this._getSearchParams(t.queryParameters,"")),a.referers=t.referers),this._jsonRequest({method:"POST",url:"/1/keys",body:a,hostType:"write",callback:r})},u.prototype.addUserKeyWithValidity=o((function(e,t,n){return this.addApiKey(e,t,n)}),i("client.addUserKeyWithValidity()","client.addApiKey()")),u.prototype.updateUserKey=o((function(e,t,n,r){return this.updateApiKey(e,t,n,r)}),i("client.updateUserKey()","client.updateApiKey()")),u.prototype.updateApiKey=function(e,t,r,o){var i=n(405826),a="Usage: client.updateApiKey(key, arrayOfAcls[, params, callback])";if(!i(t))throw new Error(a);2!==arguments.length&&"function"!=typeof r||(o=r,r=null);var s={acl:t};return r&&(s.validity=r.validity,s.maxQueriesPerIPPerHour=r.maxQueriesPerIPPerHour,s.maxHitsPerQuery=r.maxHitsPerQuery,s.indexes=r.indexes,s.description=r.description,r.queryParameters&&(s.queryParameters=this._getSearchParams(r.queryParameters,"")),s.referers=r.referers),this._jsonRequest({method:"PUT",url:"/1/keys/"+e,body:s,hostType:"write",callback:o})},u.prototype.startQueriesBatch=o((function(){this._batch=[]}),i("client.startQueriesBatch()","client.search()")),u.prototype.addQueryInBatch=o((function(e,t,n){this._batch.push({indexName:e,query:t,params:n})}),i("client.addQueryInBatch()","client.search()")),u.prototype.sendQueriesBatch=o((function(e){return this.search(this._batch,e)}),i("client.sendQueriesBatch()","client.search()")),u.prototype.batch=function(e,t){if(!n(405826)(e))throw new Error("Usage: client.batch(operations[, callback])");return this._jsonRequest({method:"POST",url:"/1/indexes/*/batch",body:{requests:e},hostType:"write",callback:t})},u.prototype.assignUserID=function(e,t){if(!e.userID||!e.cluster)throw new c.AlgoliaSearchError("You have to provide both a userID and cluster",e);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping",hostType:"write",body:{cluster:e.cluster},callback:t,headers:{"x-algolia-user-id":e.userID}})},u.prototype.assignUserIDs=function(e,t){if(!e.userIDs||!e.cluster)throw new c.AlgoliaSearchError("You have to provide both an array of userIDs and cluster",e);return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/batch",hostType:"write",body:{cluster:e.cluster,users:e.userIDs},callback:t})},u.prototype.getTopUserID=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/top",hostType:"read",callback:e})},u.prototype.getUserID=function(e,t){if(!e.userID)throw new c.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"GET",url:"/1/clusters/mapping/"+e.userID,hostType:"read",callback:t})}
2,u.prototype.listClusters=function(e){return this._jsonRequest({method:"GET",url:"/1/clusters",hostType:"read",callback:e})},u.prototype.listUserIDs=function(e,t){return this._jsonRequest({method:"GET",url:"/1/clusters/mapping",body:e,hostType:"read",callback:t})},u.prototype.removeUserID=function(e,t){if(!e.userID)throw new c.AlgoliaSearchError("You have to provide a userID",{debugData:e});return this._jsonRequest({method:"DELETE",url:"/1/clusters/mapping",hostType:"write",callback:t,headers:{"x-algolia-user-id":e.userID}})},u.prototype.searchUserIDs=function(e,t){return this._jsonRequest({method:"POST",url:"/1/clusters/mapping/search",body:e,hostType:"read",callback:t})},u.prototype.setPersonalizationStrategy=function(e,t){return this._jsonRequest({method:"POST",url:"/1/recommendation/personalization/strategy",body:e,hostType:"write",callback:t})},u.prototype.getPersonalizationStrategy=function(e){return this._jsonRequest({method:"GET",url:"/1/recommendation/personalization/strategy",hostType:"read",callback:e})},u.prototype.destroy=l,u.prototype.enableRateLimitForward=l,u.prototype.disableRateLimitForward=l,u.prototype.useSecuredAPIKey=l,u.prototype.disableSecuredAPIKey=l,u.prototype.generateSecuredApiKey=l,u.prototype.getSecuredApiKeyRemainingValidity=l},251580:(e,t,n)=>{var r=n(734155);e.exports=u;var o=n(623733),i=n(793753),a=n(399437),s=n(444475),c=r.env.RESET_APP_DATA_TIMER&&parseInt(r.env.RESET_APP_DATA_TIMER,10)||12e4;function u(e,t,r){var i=n(511227)("algoliasearch"),a=n(382882),s=n(405826),c=n(537164),u="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==r._allowEmptyCredentials&&!e)throw new o.AlgoliaSearchError("Please provide an application ID. "+u);if(!0!==r._allowEmptyCredentials&&!t)throw new o.AlgoliaSearchError("Please provide an API key. "+u);this.applicationID=e,this.apiKey=t,this.hosts={read:[],write:[]},r=r||{},this._timeouts=r.timeouts||{connect:1e3,read:2e3,write:3e4},r.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=r.timeout);var d=r.protocol||"https:";if(/:$/.test(d)||(d+=":"),"http:"!==d&&"https:"!==d)throw new o.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+r.protocol+"`)");if(this._checkAppIdData(),r.hosts)s(r.hosts)?(this.hosts.read=a(r.hosts),this.hosts.write=a(r.hosts)):(this.hosts.read=a(r.hosts.read),this.hosts.write=a(r.hosts.write));else{var p=c(this._shuffleResult,(function(t){return e+"-"+t+".algolianet.com"})),f=(!1===r.dsn?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+f].concat(p),this.hosts.write=[this.applicationID+".algolia.net"].concat(p)}this.hosts.read=c(this.hosts.read,l(d)),this.hosts.write=c(this.hosts.write,l(d)),this.extraHeaders={},this.cache=r._cache||{},this._ua=r._ua,this._useCache=!(void 0!==r._useCache&&!r._cache)||r._useCache,this._useRequestCache=this._useCache&&r._useRequestCache,this._useFallback=void 0===r.useFallback||r.useFallback,this._setTimeout=r._setTimeout,i("init done, %j",this)}function l(e){return function(t){return e+"//"+t.toLowerCase()}}function d(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(e);return Array.prototype.toJSON=t,n}function p(e){var t={};for(var n in e){var r;Object.prototype.hasOwnProperty.call(e,n)&&(r="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":e[n],t[n]=r)}return t}u.prototype.initIndex=function(e){return new a(this,e)},u.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},u.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},u.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},u.prototype.addAlgoliaAgent=function(e){var t="; "+e;-1===this._ua.indexOf(t)&&(this._ua+=t)},u.prototype._jsonRequest=function(e){this._checkAppIdData();var t,r,a,s=n(511227)("algoliasearch:"+e.url),c=e.additionalUA||"",u=e.cache,l=this,f=0,h=!1,m=l._useFallback&&l._request.fallback&&e.fallback;this.apiKey.length>500&&void 0!==e.body&&(void 0!==e.body.params||void 0!==e.body.requests)?(e.body.apiKey=this.apiKey,a=this._computeRequestHeaders({additionalUA:c,withApiKey:!1,headers:e.headers})):a=this._computeRequestHeaders({additionalUA:c,headers:e.headers}),void 0!==e.body&&(t=d(e.body)),s("request start");var g=[];function y(e,t,n){return l._useCache&&e&&t&&void 0!==t[n]}function v(t,n){if(y(l._useRequestCache,u,r)&&t.catch((function(){delete u[r]})),"function"!=typeof e.callback)return t.then(n);t.then((function(t){i((function(){e.callback(null,n(t))}),l._setTimeout||setTimeout)}),(function(t){i((function(){e.callback(t)}),l._setTimeout||setTimeout)}))}if(l._useCache&&l._useRequestCache&&(r=e.url),l._useCache&&l._useRequestCache&&t&&(r+="_body_"+t),y(l._useRequestCache,u,r)){s("serving request from cache");var b=u[r];return v("function"!=typeof b.then?l._promise.resolve({responseText:b}):b,(function(e){return JSON.parse(e.responseText)}))}var _=function n(i,v){l._checkAppIdData();var b=new Date;if(l._useCache&&!l._useRequestCache&&(r=e.url),l._useCache&&!l._useRequestCache&&t&&(r+="_body_"+v.body),y(!l._useRequestCache,u,r)){s("serving response from cache");var _=u[r];return l._promise.resolve({body:JSON.parse(_),responseText:_})}if(f>=l.hosts[e.hostType].length)return!m||h?(s("could not get any response"),l._promise.reject(new o.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to supp
2[email protected] to report and resolve the issue. Application id was: "+l.applicationID,{debugData:g}))):(s("switching to fallback"),f=0,v.method=e.fallback.method,v.url=e.fallback.url,v.jsonBody=e.fallback.body,v.jsonBody&&(v.body=d(v.jsonBody)),a=l._computeRequestHeaders({additionalUA:c,headers:e.headers}),v.timeouts=l._getTimeoutsForRequest(e.hostType),l._setHostIndexByType(0,e.hostType),h=!0,n(l._request.fallback,v));var w=l._getHostByType(e.hostType),S=w+v.url,C={body:v.body,jsonBody:v.jsonBody,method:v.method,headers:a,timeouts:v.timeouts,debug:s,forceAuthHeaders:v.forceAuthHeaders};return s("method: %s, url: %s, headers: %j, timeouts: %d",C.method,S,C.headers,C.timeouts),i===l._request.fallback&&s("using fallback"),i.call(l,S,C).then((function(e){var n=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;s("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,n,e.headers);var i=2===Math.floor(n/100),c=new Date;if(g.push({currentHost:w,headers:p(a),content:t||null,contentLength:void 0!==t?t.length:null,method:v.method,timeouts:v.timeouts,url:v.url,startTime:b,endTime:c,duration:c-b,statusCode:n}),i)return l._useCache&&!l._useRequestCache&&u&&(u[r]=e.responseText),{responseText:e.responseText,body:e.body};if(4!==Math.floor(n/100))return f+=1,k();s("unrecoverable error");var d=new o.AlgoliaSearchError(e.body&&e.body.message,{debugData:g,statusCode:n});return l._promise.reject(d)}),(function(r){s("error: %s, stack: %s",r.message,r.stack);var c=new Date;return g.push({currentHost:w,headers:p(a),content:t||null,contentLength:void 0!==t?t.length:null,method:v.method,timeouts:v.timeouts,url:v.url,startTime:b,endTime:c,duration:c-b}),r instanceof o.AlgoliaSearchError||(r=new o.Unknown(r&&r.message,r)),f+=1,r instanceof o.Unknown||r instanceof o.UnparsableJSON||f>=l.hosts[e.hostType].length&&(h||!m)?(r.debugData=g,l._promise.reject(r)):r instanceof o.RequestTimeout?(s("retrying request with higher timeout"),l._incrementHostIndex(e.hostType),l._incrementTimeoutMultipler(),v.timeouts=l._getTimeoutsForRequest(e.hostType),n(i,v)):k()}));function k(){return s("retrying request"),l._incrementHostIndex(e.hostType),n(i,v)}}(l._request,{url:e.url,method:e.method,body:t,jsonBody:e.body,timeouts:l._getTimeoutsForRequest(e.hostType),forceAuthHeaders:e.forceAuthHeaders});return l._useCache&&l._useRequestCache&&u&&(u[r]=_),v(_,(function(e){return e.body}))},u.prototype._getSearchParams=function(e,t){if(null==e)return t;for(var n in e)null!==n&&void 0!==e[n]&&e.hasOwnProperty(n)&&(t+=""===t?"":"&",t+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[n])?d(e[n]):e[n]));return t},u.prototype._computeRequestHeaders=function(e){var t=n(749804),r={"x-algolia-agent":e.additionalUA?this._ua+"; "+e.additionalUA:this._ua,"x-algolia-application-id":this.applicationID};return!1!==e.withApiKey&&(r["x-algolia-api-key"]=this.apiKey),this.userToken&&(r["x-algolia-usertoken"]=this.userToken),this.securityTags&&(r["x-algolia-tagfilters"]=this.securityTags),t(this.extraHeaders,(function(e,t){r[t]=e})),e.headers&&t(e.headers,(function(e,t){r[t]=e})),r},u.prototype.search=function(e,t,r){var o=n(405826),i=n(537164);if(!o(e))throw new Error("Usage: client.search(arrayOfQueries[, callback])");"function"==typeof t?(r=t,t={}):void 0===t&&(t={});var a=this,s={requests:i(e,(function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:a._getSearchParams(e.params,t)}}))},c=i(s.requests,(function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)})).join("&");return void 0!==t.strategy&&(s.strategy=t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:"/1/indexes/*/queries",body:s,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:c}},callback:r})},u.prototype.searchForFacetValues=function(e){var t=n(405826),r=n(537164),o="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!t(e))throw new Error(o);var i=this;return i._promise.all(r(e,(function(e){if(!e||void 0===e.indexName||void 0===e.params.facetName||void 0===e.params.facetQuery)throw new Error(o);var t=n(382882),r=n(633076),a=e.indexName,s=e.params,c=s.facetName,u=r(t(s),(function(e){return"facetName"===e})),l=i._getSearchParams(u,"");return i._jsonRequest({cache:i.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(a)+"/facets/"+encodeURIComponent(c)+"/query",hostType:"read",body:{params:l}})})))},u.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],n=0;n<e.length;++n)if("[object Array]"===Object.prototype.toString.call(e[n])){for(var r=[],o=0;o<e[n].length;++o)r.push(e[n][o]);t.push("("+r.join(",")+")")}else t.push(e[n]);e=t.join(",")}this.securityTags=e},u.prototype.setUserToken=function(e){this.userToken=e},u.prototype.clearCache=function(){this.cache={}},u.prototype.setRequestTimeout=function(e){e&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=e)},u.prototype.setTimeouts=function(e){this._timeouts=e},u.prototype.getTimeouts=function(){return this._timeouts},u.prototype._getAppIdData=function(){var e=s.get(this.applicationID);return null!==e&&this._cacheAppIdData(e),e},u.prototype._setAppIdData=function(e){return e.lastChange=(new Date).getTime(),this._cacheAppIdData(e),s.set(this.applicationID,e)},u.prototype._checkAppIdData=function(){var e=this._getAppIdData(),t=(new Date).getTime();return null===e||t-e.lastChange>c?this._resetInitialAppIdData(e):e},u.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||function(e){for(var t,n,r=e.length;0!==r;)n=Math.floor(Math.random()*r),t=e[r-=1],e[r]=e[n],e[n]=t;return e}([1,2,3]),this._setAppIdData(t)},u.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},u.prototype._partialAppIdDataUpdate=function(e){var t=n(749804),r=this._getAppIdData();return t(e,(function(e,t){r[t]=e})),this._setAppIdData(r)},u.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},u.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},u.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},u.prototype._setHostIndexByType=function(e,t){var r=n(382882)(this._hostIndexes);return r[t]=e,this._partialAppIdDataUpdate({hostIndexes:r}),e},u.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},u.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},u.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}}
2,856362:(e,t,n)=>{var r=n(35717),o=n(399437),i=n(293043),a=n(210137),s=n(793753),c=n(623733),u=i((function(){}),a("forwardToSlaves","forwardToReplicas"));function l(){o.apply(this,arguments)}function d(e,t,n){return function n(r,o){var i={page:r||0,hitsPerPage:t||100},a=o||[];return e(i).then((function(e){var t=e.hits,r=e.nbHits,o=t.map((function(e){return delete e._highlightResult,e})),s=a.concat(o);return s.length<r?n(i.page+1,s):s}))}().then((function(e){if("function"!=typeof n)return e;n(e)}))}e.exports=l,r(l,o),l.prototype.addObject=function(e,t,n){var r=this;return 1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0),this.as._jsonRequest({method:void 0!==t?"PUT":"POST",url:"/1/indexes/"+encodeURIComponent(r.indexName)+(void 0!==t?"/"+encodeURIComponent(t):""),body:e,hostType:"write",callback:n})},l.prototype.addObjects=function(e,t){if(!n(405826)(e))throw new Error("Usage: index.addObjects(arrayOfObjects[, callback])");for(var r={requests:[]},o=0;o<e.length;++o){var i={action:"addObject",body:e[o]};r.requests.push(i)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:r,hostType:"write",callback:t})},l.prototype.partialUpdateObject=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0);var r=this,o="/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(e.objectID)+"/partial";return!1===t&&(o+="?createIfNotExists=false"),this.as._jsonRequest({method:"POST",url:o,body:e,hostType:"write",callback:n})},l.prototype.partialUpdateObjects=function(e,t,r){1!==arguments.length&&"function"!=typeof t||(r=t,t=!0);var o=n(405826),i="Usage: index.partialUpdateObjects(arrayOfObjects[, callback])";if(!o(e))throw new Error(i);for(var a=this,s={requests:[]},c=0;c<e.length;++c){var u={action:!0===t?"partialUpdateObject":"partialUpdateObjectNoCreate",objectID:e[c].objectID,body:e[c]};s.requests.push(u)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/batch",body:s,hostType:"write",callback:r})},l.prototype.saveObject=function(e,t){return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e.objectID),body:e,hostType:"write",callback:t})},l.prototype.saveObjects=function(e,t){if(!n(405826)(e))throw new Error("Usage: index.saveObjects(arrayOfObjects[, callback])");for(var r={requests:[]},o=0;o<e.length;++o){var i={action:"updateObject",objectID:e[o].objectID,body:e[o]};r.requests.push(i)}return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:r,hostType:"write",callback:t})},l.prototype.deleteObject=function(e,t){if("function"==typeof e||"string"!=typeof e&&"number"!=typeof e){var n=new c.AlgoliaSearchError(e&&"function"!=typeof e?"ObjectID must be a string":"Cannot delete an object without an objectID");return"function"==typeof(t=e)?t(n):this.as._promise.reject(n)}return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/"+encodeURIComponent(e),hostType:"write",callback:t})},l.prototype.deleteObjects=function(e,t){var r=n(405826),o=n(537164);if(!r(e))throw new Error("Usage: index.deleteObjects(arrayOfObjectIDs[, callback])");var i={requests:o(e,(function(e){return{action:"deleteObject",objectID:e,body:{objectID:e}}}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/batch",body:i,hostType:"write",callback:t})},l.prototype.deleteByQuery=i((function(e,t,r){var o=n(382882),i=n(537164),a=this,c=a.as;1===arguments.length||"function"==typeof t?(r=t,t={}):t=o(t),t.attributesToRetrieve="objectID",t.hitsPerPage=1e3,t.distinct=!1,this.clearCache();var u=this.search(e,t).then(l);function l(e){if(0===e.nbHits)return e;var t=i(e.hits,(function(e){return e.objectID}));return a.deleteObjects(t).then(d).then(p)}function d(e){return a.waitTask(e.taskID)}function p(){return a.deleteByQuery(e,t)}if(!r)return u;function f(){s((function(){r(null)}),c._setTimeout||setTimeout)}function h(e){s((function(){r(e)}),c._setTimeout||setTimeout)}u.then(f,h)}),a("index.deleteByQuery()","index.deleteBy()")),l.prototype.deleteBy=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/deleteByQuery",body:{params:this.as._getSearchParams(e,"")},hostType:"write",callback:t})},l.prototype.browseAll=function(e,t){"object"==typeof e&&(t=e,e=void 0);var r=n(551004),o=new(n(701026)),i=this.as,a=this,s=i._getSearchParams(r({},t||{},{query:e}),"");function c(e){var t;o._stopped||(t=void 0!==e?{cursor:e}:{params:s},i._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(a.indexName)+"/browse",hostType:"read",body:t,callback:u}))}function u(e,t){o._stopped||(e?o._error(e):(o._result(t),void 0!==t.cursor?c(t.cursor):o._end()))}return c(),o},l.prototype.ttAdapter=i((function(e){var t=this;return function(n,r,o){var i;i="function"==typeof o?o:r,t.search(n,e,(function(e,t){i(e||t.hits)}))}}),"ttAdapter is not necessary anymore and will be removed in the next version,\nhave a look at autocomplete.js (https://github.com/algolia/autocomplete.js)"),l.prototype.waitTask=function(e,t){var n=0,r=this,o=r.as,i=function t(){return o._jsonRequest({method:"GET",hostType:"read",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/task/"+e}).then((function(e){var r=100*++n*n;return r>5e3&&(r=5e3),"published"!==e.status?o._promise.delay(r).then(t):e}))}();if(!t)return i;i.then((function(e){s((function(){t(null,e)}),o._setTimeout||setTimeout)}),(function(e){s((function(){t(e)}),o._setTimeout||setTimeout)}))},l.prototype.clearIndex=function(e){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/clear",hostType:"write",callback:e})},l.prototype.getSettings=function(e,t){1===arguments.length&&"function"==typeof e&&(t=e,e={}),e=e||{};var n=encodeURIComponent(this.indexName);return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+n+"/settings?getVersion=2"+(e.advanced?"&advanced="+e.advanced:""),hostType:"read",callback:t})},l.prototype.searchSynonyms=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/search",body:e,hostType:"read",callback:t})}
2,l.prototype.exportSynonyms=function(e,t){return d(this.searchSynonyms.bind(this),e,t)},l.prototype.saveSynonym=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&u();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+r,body:e,hostType:"write",callback:n})},l.prototype.getSynonym=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e),hostType:"read",callback:t})},l.prototype.deleteSynonym=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&u();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/"+encodeURIComponent(e)+"?forwardToReplicas="+r,hostType:"write",callback:n})},l.prototype.clearSynonyms=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),void 0!==e.forwardToSlaves&&u();var n=e.forwardToSlaves||e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/clear?forwardToReplicas="+n,hostType:"write",callback:t})},l.prototype.batchSynonyms=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={}),void 0!==t.forwardToSlaves&&u();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/synonyms/batch?forwardToReplicas="+r+"&replaceExistingSynonyms="+(t.replaceExistingSynonyms?"true":"false"),hostType:"write",body:e,callback:n})},l.prototype.searchRules=function(e,t){return"function"==typeof e?(t=e,e={}):void 0===e&&(e={}),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/search",body:e,hostType:"read",callback:t})},l.prototype.exportRules=function(e,t){return d(this.searchRules.bind(this),e,t)},l.prototype.saveRule=function(e,t,n){if("function"==typeof t?(n=t,t={}):void 0===t&&(t={}),!e.objectID)throw new c.AlgoliaSearchError("Missing or empty objectID field for rule");var r=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e.objectID)+"?forwardToReplicas="+r,body:e,hostType:"write",callback:n})},l.prototype.getRule=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e),hostType:"read",callback:t})},l.prototype.deleteRule=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={});var r=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/"+encodeURIComponent(e)+"?forwardToReplicas="+r,hostType:"write",callback:n})},l.prototype.clearRules=function(e,t){"function"==typeof e?(t=e,e={}):void 0===e&&(e={});var n=!0===e.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/clear?forwardToReplicas="+n,hostType:"write",callback:t})},l.prototype.batchRules=function(e,t,n){"function"==typeof t?(n=t,t={}):void 0===t&&(t={});var r=!0===t.forwardToReplicas?"true":"false";return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/rules/batch?forwardToReplicas="+r+"&clearExistingRules="+(!0===t.clearExistingRules?"true":"false"),hostType:"write",body:e,callback:n})},l.prototype.exists=function(e){var t=this.getSettings().then((function(){return!0})).catch((function(e){if(e instanceof c.AlgoliaSearchError&&404===e.statusCode)return!1;throw e}));if("function"!=typeof e)return t;t.then((function(t){e(null,t)})).catch((function(t){e(t)}))},l.prototype.findObject=function(e,t,n){var r=void 0===(t=void 0===t?{}:t).paginate||t.paginate,o=void 0!==t.query?t.query:"",i=this,a=0,s=function(){return t.page=a,i.search(o,t).then((function(t){for(var n=t.hits,o=0;o<n.length;o++){var i=n[o];if(e(i))return{object:i,position:o,page:a}}
2if(a+=1,!r||a>=t.nbPages)throw new c.ObjectNotFound("Object not found");return s()}))},u=s(a);if(void 0===n)return u;u.then((function(e){n(null,e)})).catch((function(e){n(e)}))},l.prototype.getObjectPosition=function(e,t){for(var n=e.hits,r=0;r<n.length;r++)if(n[r].objectID===t)return r;return-1},l.prototype.setSettings=function(e,t,n){1!==arguments.length&&"function"!=typeof t||(n=t,t={}),void 0!==t.forwardToSlaves&&u();var r=t.forwardToSlaves||t.forwardToReplicas?"true":"false",o=this;return this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(o.indexName)+"/settings?forwardToReplicas="+r,hostType:"write",body:e,callback:n})},l.prototype.listUserKeys=i((function(e){return this.listApiKeys(e)}),a("index.listUserKeys()","client.listApiKeys()")),l.prototype.listApiKeys=i((function(e){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",hostType:"read",callback:e})}),a("index.listApiKeys()","client.listApiKeys()")),l.prototype.getUserKeyACL=i((function(e,t){return this.getApiKey(e,t)}),a("index.getUserKeyACL()","client.getApiKey()")),l.prototype.getApiKey=i((function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,hostType:"read",callback:t})}),a("index.getApiKey()","client.getApiKey()")),l.prototype.deleteUserKey=i((function(e,t){return this.deleteApiKey(e,t)}),a("index.deleteUserKey()","client.deleteApiKey()")),l.prototype.deleteApiKey=i((function(e,t){return this.as._jsonRequest({method:"DELETE",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,hostType:"write",callback:t})}),a("index.deleteApiKey()","client.deleteApiKey()")),l.prototype.addUserKey=i((function(e,t,n){return this.addApiKey(e,t,n)}),a("index.addUserKey()","client.addApiKey()")),l.prototype.addApiKey=i((function(e,t,r){var o=n(405826),i="Usage: index.addApiKey(arrayOfAcls[, params, callback])";if(!o(e))throw new Error(i);1!==arguments.length&&"function"!=typeof t||(r=t,t=null);var a={acl:e};return t&&(a.validity=t.validity,a.maxQueriesPerIPPerHour=t.maxQueriesPerIPPerHour,a.maxHitsPerQuery=t.maxHitsPerQuery,a.description=t.description,t.queryParameters&&(a.queryParameters=this.as._getSearchParams(t.queryParameters,"")),a.referers=t.referers),this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys",body:a,hostType:"write",callback:r})}),a("index.addApiKey()","client.addApiKey()")),l.prototype.addUserKeyWithValidity=i((function(e,t,n){return this.addApiKey(e,t,n)}),a("index.addUserKeyWithValidity()","client.addApiKey()")),l.prototype.updateUserKey=i((function(e,t,n,r){return this.updateApiKey(e,t,n,r)}),a("index.updateUserKey()","client.updateApiKey()")),l.prototype.updateApiKey=i((function(e,t,r,o){var i=n(405826),a="Usage: index.updateApiKey(key, arrayOfAcls[, params, callback])";if(!i(t))throw new Error(a);2!==arguments.length&&"function"!=typeof r||(o=r,r=null);var s={acl:t};return r&&(s.validity=r.validity,s.maxQueriesPerIPPerHour=r.maxQueriesPerIPPerHour,s.maxHitsPerQuery=r.maxHitsPerQuery,s.description=r.description,r.queryParameters&&(s.queryParameters=this.as._getSearchParams(r.queryParameters,"")),s.referers=r.referers),this.as._jsonRequest({method:"PUT",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/keys/"+e,body:s,hostType:"write",callback:o})}),a("index.updateApiKey()","client.updateApiKey()"))},701026:(e,t,n)=>{"use strict";function r(){}e.exports=r,n(35717)(r,n(717187).EventEmitter),r.prototype.stop=function(){this._stopped=!0,this._clean()},r.prototype._end=function(){this.emit("end"),this._clean()},r.prototype._error=function(e){this.emit("error",e),this._clean()},r.prototype._result=function(e){this.emit("result",e)},r.prototype._clean=function(){this.removeAllListeners("stop"),this.removeAllListeners("end"),this.removeAllListeners("error"),this.removeAllListeners("result")}},399437:(e,t,n)=>{var r=n(410148),o=n(293043),i=n(210137);function a(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}e.exports=a,a.prototype.clearCache=function(){this.cache={}},a.prototype.search=r("query"),a.prototype.similarSearch=o(r("similarQuery"),i("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),a.prototype.browse=function(e,t,r){var o,i,a=n(551004),s=this;0===arguments.length||1===arguments.length&&"function"==typeof arguments[0]?(o=0,r=arguments[0],e=void 0):"number"==typeof arguments[0]?(o=arguments[0],"number"==typeof arguments[1]?i=arguments[1]:"function"==typeof arguments[1]&&(r=arguments[1],i=void 0),e=void 0,t=void 0):"object"==typeof arguments[0]?("function"==typeof arguments[1]&&(r=arguments[1]),t=arguments[0],e=void 0):"string"==typeof arguments[0]&&"function"==typeof arguments[1]&&(r=arguments[1],t=void 0),t=a({},t||{},{page:o,hitsPerPage:i,query:e});var c=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/browse",body:{params:c},hostType:"read",callback:r})},a.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},a.prototype.searchForFacetValues=function(e,t){var r=n(382882),o=n(633076);if(void 0===e.facetName||void 0===e.facetQuery)throw new Error("Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])");var i=e.facetName,a=o(r(e),(function(e){return"facetName"===e})),s=this.as._getSearchParams(a,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(i)+"/query",hostType:"read",body:{params:s},callback:t})},a.prototype.searchFacet=o((function(e,t){return this.searchForFacetValues(e,t)}),i("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),a.prototype._search=function(e,t,n,r){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:n,additionalUA:r})},a.prototype.getObject=function(e,t,n){var r=this;1!==arguments.length&&"function"!=typeof t||(n=t,t=void 0);var o="";if(void 0!==t){o="?attributes=";for(var i=0;i<t.length;++i)0!==i&&(o+=","),o+=t[i]}return this.as._jsonRequest({method:"GET",url:"/1/indexes/"+encodeURIComponent(r.indexName)+"/"+encodeURIComponent(e)+o,hostType:"read",callback:n})},a.prototype.getObjects=function(e,t,r){var o=n(405826),i=n(537164),a="Usage: index.getObjects(arrayOfObjectIDs[, callback])";if(!o(e))throw new Error(a);var s=this;1!==arguments.length&&"function"!=typeof t||(r=t,t=void 0);var c={requests:i(e,(function(e){var n={indexName:s.indexName,objectID:e};return t&&(n.attributesToRetrieve=t.join(",")),n}))};return this.as._jsonRequest({method:"POST",url:"/1/indexes/*/objects",hostType:"read",body:c,callback:r})},a.prototype.as=null,a.prototype.indexName=null,a.prototype.typeAheadArgs=null,a.prototype.typeAheadValueOption=null}
2,550638:(e,t,n)=>{"use strict";var r=n(100021),o=n(208779);e.exports=o(r,"Browser")},208779:(e,t,n)=>{"use strict";var r=n(158908),o=r.Promise||n(882702).Promise;e.exports=function(e,t){var i=n(35717),a=n(623733),s=n(580660),c=n(953970),u=n(194504);function l(e,t,r){return(r=n(382882)(r||{}))._ua=r._ua||l.ua,new p(e,t,r)}t=t||"",l.version=n(904572),l.ua="Algolia for JavaScript ("+l.version+"); "+t,l.initPlaces=u(l),r.__algolia={debug:n(511227),algoliasearch:l};var d={hasXMLHttpRequest:"XMLHttpRequest"in r,hasXDomainRequest:"XDomainRequest"in r};function p(){e.apply(this,arguments)}return d.hasXMLHttpRequest&&(d.cors="withCredentials"in new XMLHttpRequest),i(p,e),p.prototype._request=function(e,t){return new o((function(n,r){if(d.cors||d.hasXDomainRequest){e=s(e,t.headers);var o,i,c=t.body,u=d.cors?new XMLHttpRequest:new XDomainRequest,l=!1;o=setTimeout(p,t.timeouts.connect),u.onprogress=function(){l||f()},"onreadystatechange"in u&&(u.onreadystatechange=function(){!l&&u.readyState>1&&f()}),u.onload=function(){if(!i){var e;clearTimeout(o);try{e={body:JSON.parse(u.responseText),responseText:u.responseText,statusCode:u.status,headers:u.getAllResponseHeaders&&u.getAllResponseHeaders()||{}}}catch(t){e=new a.UnparsableJSON({more:u.responseText})}e instanceof a.UnparsableJSON?r(e):n(e)}},u.onerror=function(e){i||(clearTimeout(o),r(new a.Network({more:e})))},u instanceof XMLHttpRequest?(u.open(t.method,e,!0),t.forceAuthHeaders&&(u.setRequestHeader("x-algolia-application-id",t.headers["x-algolia-application-id"]),u.setRequestHeader("x-algolia-api-key",t.headers["x-algolia-api-key"]))):u.open(t.method,e),d.cors&&(c&&("POST"===t.method?u.setRequestHeader("content-type","application/x-www-form-urlencoded"):u.setRequestHeader("content-type","application/json")),u.setRequestHeader("accept","application/json")),c?u.send(c):u.send()}else r(new a.Network("CORS not supported"));function p(){i=!0,u.abort(),r(new a.RequestTimeout)}function f(){l=!0,clearTimeout(o),o=setTimeout(p,t.timeouts.complete)}}))},p.prototype._request.fallback=function(e,t){return e=s(e,t.headers),new o((function(n,r){c(e,t,(function(e,t){e?r(e):n(t)}))}))},p.prototype._promise={reject:function(e){return o.reject(e)},resolve:function(e){return o.resolve(e)},delay:function(e){return new o((function(t){setTimeout(t,e)}))},all:function(e){return o.all(e)}},l}},580660:(e,t,n)=>{"use strict";e.exports=function(e,t){return/\?/.test(e)?e+="&":e+="?",e+r(t)};var r=n(968795)},953970:(e,t,n)=>{"use strict";e.exports=function(e,t,n){if("GET"===t.method){t.debug("JSONP: start");var i=!1,a=!1;o+=1;var s=document.getElementsByTagName("head")[0],c=document.createElement("script"),u="algoliaJSONP_"+o,l=!1;window[u]=function(e){!function(){try{delete window[u],delete window[u+"_loaded"]}catch(e){window[u]=window[u+"_loaded"]=void 0}}(),a?t.debug("JSONP: Late answer, ignoring"):(i=!0,f(),n(null,{body:e,responseText:JSON.stringify(e)}))},e+="&callback="+u,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var d=setTimeout((function(){t.debug("JSONP: Script timeout"),a=!0,f(),n(new r.RequestTimeout)}),t.timeouts.complete);c.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||p()},c.onload=p,c.onerror=function(){t.debug("JSONP: Script error"),l||a||(f(),n(new r.JSONPScriptError))},c.async=!0,c.defer=!0,c.src=e,s.appendChild(c)}else n(new Error("Method "+t.method+" "+e+" is not supported by JSONP."));function p(){t.debug("JSONP: success"),l||a||(l=!0,i||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),f(),n(new r.JSONPScriptFail)))}function f(){clearTimeout(d),c.onload=null,c.onreadystatechange=null,c.onerror=null,s.removeChild(c)}};var r=n(623733),o=0},410148:(e,t,n)=>{e.exports=function(e,t){return function(n,o,i){if("function"==typeof n&&"object"==typeof o||"object"==typeof i)throw new r.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"==typeof n?(i=n,n=""):1!==arguments.length&&"function"!=typeof o||(i=o,o=void 0),"object"==typeof n&&null!==n?(o=n,n=void 0):null==n&&(n="");var a,s="";return void 0!==n&&(s+=e+"="+encodeURIComponent(n)),void 0!==o&&(o.additionalUA&&(a=o.additionalUA,delete o.additionalUA),s=this.as._getSearchParams(o,s)),this._search(s,t,i,a)}};var r=n(623733)},382882:e=>{e.exports=function(e){return JSON.parse(JSON.stringify(e))}},497181:(e,t,n)=>{e.exports=function(e,t,n){var o={};return(n=n||{}).hosts=n.hosts||["analytics.algolia.com","analytics.algolia.com","analytics.algolia.com","analytics.algolia.com"],n.protocol=n.protocol||"https:",o.as=r(e,t,n),o.getABTests=function(e,t){var n=n||{},r=n.offset||0,o=n.limit||10;return this.as._jsonRequest({method:"GET",url:"/2/abtests?offset="+encodeURIComponent(r)+"&limit="+encodeURIComponent(o),hostType:"read",forceAuthHeaders:!0,callback:t})},o.getABTest=function(e,t){return this.as._jsonRequest({method:"GET",url:"/2/abtests/"+encodeURIComponent(e),hostType:"read",forceAuthHeaders:!0,callback:t})},o.addABTest=function(e,t){return this.as._jsonRequest({method:"POST",url:"/2/abtests",body:e,hostType:"read",forceAuthHeaders:!0,callback:t})},o.stopABTest=function(e,t){return this.as._jsonRequest({method:"POST",url:"/2/abtests/"+encodeURIComponent(e)+"/stop",hostType:"read",forceAuthHeaders:!0,callback:t})},o.deleteABTest=function(e,t){return this.as._jsonRequest({method:"DELETE",url:"/2/abtests/"+encodeURIComponent(e),hostType:"write",forceAuthHeaders:!0,callback:t})},o.waitTask=function(e,t,n){return this.as.initIndex(e).waitTask(t,n)},o};var r=n(550638)},293043:e=>{e.exports=function(e,t){var n=!1;return function(){return n||(console.warn(t),n=!0),e.apply(this,arguments)}}},210137:e=>{e.exports=function(e,t){var n=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}}
2,623733:(e,t,n)=>{"use strict";var r=n(35717);function o(e,t){var r=n(749804),o=this;"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):o.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&r(t,(function(e,t){o[t]=e}))}function i(e,t){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!=typeof n[0]&&n.unshift(t),o.apply(this,n),this.name="AlgoliaSearch"+e+"Error"}return r(n,o),n}r(o,Error),e.exports={AlgoliaSearchError:o,UnparsableJSON:i("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:i("RequestTimeout","Request timed out before getting a response"),Network:i("Network","Network issue, see err.more for details"),JSONPScriptFail:i("JSONPScriptFail","<script> was loaded but did not call our provided callback"),ValidUntilNotFound:i("ValidUntilNotFound","The SecuredAPIKey does not have a validUntil parameter."),JSONPScriptError:i("JSONPScriptError","<script> unable to load due to an `error` event on it"),ObjectNotFound:i("ObjectNotFound","Object not found"),Unknown:i("Unknown","Unknown error occured")}},793753:e=>{e.exports=function(e,t){t(e,0)}},537164:(e,t,n)=>{var r=n(749804);e.exports=function(e,t){var n=[];return r(e,(function(r,o){n.push(t(r,o,e))})),n}},551004:(e,t,n)=>{var r=n(749804);e.exports=function e(t){var n=Array.prototype.slice.call(arguments);return r(n,(function(n){for(var r in n)n.hasOwnProperty(r)&&("object"==typeof t[r]&&"object"==typeof n[r]?t[r]=e({},t[r],n[r]):void 0!==n[r]&&(t[r]=n[r]))})),t}},633076:(e,t,n)=>{e.exports=function(e,t){var r=n(482215),o=n(749804),i={};return o(r(e),(function(n){!0!==t(n)&&(i[n]=e[n])})),i}}
2,194504:(e,t,n)=>{e.exports=function(e){return function(t,i,a){var s=n(382882);(a=a&&s(a)||{}).hosts=a.hosts||["places-dsn.algolia.net","places-1.algolianet.com","places-2.algolianet.com","places-3.algolianet.com"],0!==arguments.length&&"object"!=typeof t&&void 0!==t||(t="",i="",a._allowEmptyCredentials=!0);var c=e(t,i,a),u=c.initIndex("places");return u.search=o("query","/1/places/query"),u.reverse=function(e,t){var n=r.encode(e);return this.as._jsonRequest({method:"GET",url:"/1/places/reverse?"+n,hostType:"read",callback:t})},u.getObject=function(e,t){return this.as._jsonRequest({method:"GET",url:"/1/places/"+encodeURIComponent(e),hostType:"read",callback:t})},u}};var r=n(487735),o=n(410148)},444475:(e,t,n)=>{var r,o=n(511227)("algoliasearch:src/hostIndexState.js"),i="algoliasearch-client-js",a={state:{},set:function(e,t){return this.state[e]=t,this.state[e]},get:function(e){return this.state[e]||null}},s={set:function(e,t){a.set(e,t);try{var r=JSON.parse(n.g.localStorage[i]);return r[e]=t,n.g.localStorage[i]=JSON.stringify(r),r[e]}catch(t){return c(e,t)}},get:function(e){try{return JSON.parse(n.g.localStorage[i])[e]||null}catch(t){return c(e,t)}}};function c(e,t){return o("localStorage failed with",t),function(){try{n.g.localStorage.removeItem(i)}catch(e){}}(),(r=a).get(e)}function u(e,t){return 1===arguments.length?r.get(e):r.set(e,t)}function l(){try{return"localStorage"in n.g&&null!==n.g.localStorage&&(n.g.localStorage[i]||n.g.localStorage.setItem(i,JSON.stringify({})),!0)}catch(e){return!1}}r=l()?s:a,e.exports={get:u,set:u,supportsLocalStorage:l}},904572:e=>{"use strict";e.exports="3.35.1"},566978:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=d(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(null,arguments)}function l(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f,h=n(504015),m=n(299498);e.exports=((f=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,Backbone.Collection),n=t,a=[{key:"initClass",value:function(){this.prototype.loaded=!1,this.prototype.model=null}}],(r=[{key:"initialize",value:function(e,n){var r=this;if(null==n&&(n={}),null==this.model&&(this.model=n.model),this.model||console.error(this.constructor.name,"does not have a model defined. This will not do!"),u(d(t.prototype),"initialize",this).call(this,e,n),this.setProjection(n.project),n.url&&(this.url=n.url),this.once("sync",(function(){return r.loaded=!0,Array.from(r.models).map((function(e){return e.loaded=!0}))}
2)),(null!=h.application?h.application.testing:void 0)&&(this.fakeRequests=[],this.on("request",(function(){return this.fakeRequests.push(jasmine.Ajax.requests.mostRecent())}))),n.saveBackups)return this.on("sync",(function(){var e=this;return function(){for(var t=[],n=0,r=Array.from(e.models);n<r.length;n++){var o=r[n];o.saveBackups=!0,t.push(o.loadFromBackup())}return t}()}))}},{key:"getURL",value:function(){return _.isString(this.url)?this.url:this.url()}},{key:"fetch",value:function(e){if(null==e&&(e={}),this.project&&(null==e.data&&(e.data={}),e.data.project=this.project.join(",")),e.callOz){var n=e.url||this.getURL();e.url=m.getProductUrl("OZ",n)}return this.jqxhr=u(d(t.prototype),"fetch",this).call(this,e),this.loading=!0,this.jqxhr}},{key:"setProjection",value:function(e){this.project=e}},{key:"stringify",value:function(){return JSON.stringify(this.toJSON())}},{key:"wait",value:function(e){var t=this;return new Promise((function(n){return t.once(e,n)}))}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}()).initClass(),f)}
2,318038:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var d,p=n(566978),f=n(523402),h=n(299498),m=n(284358);e.exports=((d=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,a=[{key:"initClass",value:function(){this.prototype.url="/db/level",this.prototype.model=f}},{key:"getSolutionsHelper",value:function(e){for(var t=e.targetLangs,n=e.allSolutions,r=[],o=0,i=Array.from(t);o<i.length;o++){var a=i[o],s=void 0;if("html"===a){for(var c=0,u=Array.from(n);c<u.length;c++)if("html"===(s=u[c]).language){var l=h.extractPlayerCodeTag(s.source||"");l&&(s.source=l),r.push(s)}}else if("javascript"===a||_.find(n,{language:a}))for(var d=0,p=Array.from(n);d<p.length;d++)(s=p[d]).language===a&&r.push(s);else for(var f=0,g=Array.from(n);f<g.length;f++)if("javascript"===(s=g[f]).language){var y=_.cloneDeep(s);y.language=a,y.source=m.translateJS(s.source,a),r.push(y)}}return r}},{key:"fingerprintHelper",value:function(e,t){switch(t){case["javascript","java","cpp"]:return e.replace(/^(\/\/.*)/gm,"$1â");case"lua":return e.replace(/^(--.*)/gm,"$1â");case"html":return e.replace(/^(<!--.*)-->/gm,"$1â--\x3e");default:return e.replace(/^(#.*)/gm,"$1â")}}}],(r=[{key:"fetchForClassroom",value:function(e,t){return null==t&&(t={}),t.url="/db/classroom/".concat(e,"/levels"),this.fetch(t)}},{key:"fetchForClassroomAndCourse",value:function(e,t,n){return null==n&&(n={}),n.url="/db/classroom/".concat(e,"/courses/").concat(t,"/levels"),this.fetch(n)}},{key:"fetchForCampaign",value:function(e,t){return null==t&&(t={}),t.url="/db/campaign/".concat(e,"/levels"),this.fetch(t)}},{key:"getSolutionsMap",value:function(e){var t=this;return this.models.reduce((function(n,r){var o=r.get("primerLanguage")?[r.get("primerLanguage")]:e,i=_.filter(r.getSolutions(),(function(e){return!e.testOnly})),a=t.constructor.getSolutionsHelper({targetLangs:o,allSolutions:i});return"codecombat-junior"===r.get("product")&&(a=_.filter(a,(function(e){return e.succeeds}))),n[r.get("original")]=null!=a?a.map((function(e){return{source:t.fingerprint(e.source,e.language),description:e.description}})):void 0,n}),{})}},{key:"fingerprint",value:function(e,t){return this.constructor.fingerprintHelper(e,t)}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(p)).initClass(),d)},635420:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var d,p=n(989279),f=n(566978);e.exports=((d=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,a=[{key:"initClass",value:function(){this.prototype.model=p}}],(r=[{key:"fetchMineFor",value:function(e,t){return null==t&&(t={}),t.url="".concat(_.result(e,"url"),"/patches"),null==t.data&&(t.data={}),t.data.creator=me.id,this.fetch(t)}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(f)).initClass(),d)}
2,408939:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=d(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(null,arguments)}function l(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f,h=n(566978),m=n(31279);function g(e,t){return null!=e?t(e):void 0}e.exports=((f=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,a=[{key:"initClass",value:function(){this.prototype.model=m,this.prototype.url="/db/products"}}],(r=[{key:"initialize",value:function(e,n){return null==n&&(n={}),g("undefined"!=typeof window&&null!==window?window.location:void 0,(function(e){return e.pathname}))&&null==n.url&&(n.url="/db/products?path="+window.location.pathname),u(d(t.prototype),"initialize",this).call(this,e,n)}},{key:"getByName",value:function(e){return this.findWhere({name:e})}},{key:"getBasicSubscriptionForUser",value:function(e){var t,n=g(null!=e?e.get("stripe"):void 0,(function(e){return e.couponID}));return n&&(t=this.findWhere({name:"".concat(n,"_basic_subscription")})),t||(t=this.findWhere({name:"corrily_basic_subscription"}||this.findWhere({name:"corrily_".concat(null!=e?e.get("country"):void 0,"_basic_subscription")}))),t||(t=this.findWhere({name:"".concat(null!=e?e.get("country"):void 0,"_basic_subscription")})),console.log("product selected",t),t||this.findWhere({name:"basic_subscription"})}},{key:"getBasicAnnualSubscriptionForUser",value:function(){var e=this.findWhere({name:"corrily_basic_subscription_annual"});return console.log("product annual sel",e),e||this.findWhere({name:"basic_subscription_annual"})}},{key:"getLifetimeSubscriptionForUser",value:function(e){var t,n=((null!=e?e.get("country"):void 0)||"").toLowerCase();if("hong-kong"===n||"taiwan"===n)return null;var r=g(null!=e?e.get("stripe"):void 0,(function(e){return e.couponID}));return r&&(t=this.findWhere({name:"".concat(r,"_lifetime_subscription")})),t||(t=this.findWhere({name:"".concat(null!=e?e.get("country"):void 0,"_lifetime_subscription")})),t||this.findWhere({name:"lifetime_subscription"})}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(h)).initClass(),f)}
2,455433:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var d,p=n(249449),f=n(566978);e.exports=((d=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,a=[{key:"initClass",value:function(){this.prototype.model=p,this.prototype.url="/db/user"}}],(r=[{key:"fetchForClassroom",value:function(e,t){null==t&&(t={}),t.removeDeleted&&(delete t.removeDeleted,this.listenTo(this,"sync",this.removeDeletedUsers));var n=e.id||e,r=0,o=_.size(e.get("members"));t.url="/db/classroom/".concat(n,"/members"),null==t.data&&(t.data={}),t.data.memberLimit=10,t.remove=!1;for(var i=[];r<o;)(t=_.cloneDeep(t)).data.memberSkip=r,i.push(this.fetch(t)),r+=10;return i}},{key:"removeDeletedUsers",value:function(){return this.remove(this.filter((function(e){return e.get("deleted")}))),!0}},{key:"search",value:function(e){return e?(e=e.toLowerCase(),this.filter((function(t){var n;return t.broadName().toLowerCase().indexOf(e)>-1||(null!=(n=t.get("email"))?n:"").indexOf(e)>-1}))):this.slice()}},{key:"fetchByIds",value:function(e){return this.fetch({data:{fetchByIds:e||[]}})}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(f)).initClass(),d)},533740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=n(455861))&&r.__esModule?r:{default:r};t.default={mixins:[o.default],mounted:function(){var e=this;this.$el.addEventListener("click",(function(t){for(var n=t.target;n&&"A"!==n.nodeName&&"BUTTON"!==n.nodeName;)n=n.parentNode;var r=n.href;if("#"===r&&(r=null),n){var o="CTA ".concat(r||n.innerText," clicked on ").concat(window.location.pathname),i={link:r||"",text:n.innerText,path:window.location.pathname};e.trackEvent(o,i)}}))}}},455861:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={methods:{trackEvent:function(e,t){var n;e&&(null===(n=window.tracker)||void 0===n||n.trackEvent(e,t))}}}},847657:(e,t,n)=>{"use strict";var r,o=n(619755),i=n(665420);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t,n){if(g())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&w(o,n.prototype),o}function c(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==a(t)?t:t+""}function m(e,t,n){return t=b(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,g()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(null,arguments)}function v(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}var S=n(316726),C=n(7288),k=n(504015),x=function(e,t){return function(){return this.routeDirectly(e,arguments,t)}},E=function(e){return function(){return x("core/SingletonAppVueComponentView").apply(this,arguments)}},O=function(e){return function(){return delete window.alreadyLoadedView,this.navigate(e+document.location.search,{trigger:!0,replace:!0})}},T=n(299498),A=n(233954),P=n(805351);e.exports=((r=function(e){function t(){return p(this,t),m(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,Backbone.Router),r=t,a=[{key:"_routeToRegExp",value:function(e){return new RegExp(y(b(t.prototype),"_routeToRegExp",this).call(this,e),"i")}},{key:"initialize",value:function(){this.bind("route",this._trackPageView),Backbone.Mediator.subscribe("router:navigate",this.onNavigate,this),this.initializeSocialMediaServices=_.once(this.initializeSocialMediaServices),this.vueRouter=n(493232).default()}},{key:"routeToServer",value:function(e){window.location.href=window.location.href}},{key:"removeTrailingSlash",value:function(e){return this.navigate(e,{trigger:!0})}},{key:"routeDirectly",value:function(e,t,r){var i=this;if(null==t&&(t=[]),null==r&&(r={}),this.vueRouter.push("/".concat(Backbone.history.getFragment())).catch((function(e){return console.error("vue router push warning:",e)})),window.alreadyLoadedView&&(e=window.alreadyLoadedView),r.recursive||(this.viewLoad=new A),r.redirectStudents&&me.isStudent()&&!me.isAdmin())return this.redirectHome();if(r.redirectTeachers&&me.isTeacher()&&!me.isAdmin())return this.redirectHome();if(r.teachersOnly&&!me.isTeacher()&&!me.isAdmin())return this.routeDirectly("teachers/RestrictedToTeachersView");if(r.studentsOnly&&!me.isStudent()&&!me.isAdmin())return this.routeDirectly("courses/RestrictedToStudentsView");var a=_.result(k.currentView,"onLeaveMessage");if(a){if(!confirm(a))return this.navigate(this.path,{replace:!0});k.currentView.onLeaveMessage=_.noop}return features.playViewsOnly&&!_.string.startsWith(document.location.pathname,"/play")&&"/admin"!==document.location.pathname?(delete window.alreadyLoadedView,this.navigate("/play",{trigger:!0,replace:!0})):(features.playOnly&&!/^(views)?\/?play/.test(e)&&(delete window.alreadyLoadedView,e="play/CampaignView"),_.string.startsWith(e,"views/")||(e="views/".concat(e)),Promise.all([S[e](),C.load(me.get("preferredLanguage",!0))]).then((function(){var e,a=Array.from(arguments.length<=0?void 0:arguments[0]),l=u(a,1),d=l[0];if(!d)return x("NotFoundView");if(T.useWebsocket&&me.isStudent()){var p=k.application.wsBus;Object.entries(null!=(null!=p.wsInfos?p.wsInfos.friends:void 0)?null!=p.wsInfos?p.wsInfos.friends:void 0:{}
2).forEach((function(){var e=Array.from(arguments.length<=0?void 0:arguments[0]),t=u(e,2),n=t[0],r=t[1];if("teacher"===r.role&&r.online){var o={to:n,type:"send",infos:{viewName:d.default.name,url:window.location.href}};return p.ws.sendJSON(o)}}))}var f=n(368441).default;if(d===f&&k.currentView instanceof f)return k.currentView.modalClosed(),o(".modal-backdrop").remove(),void console.debug("Skipping route in Backbone - delegating to Vue app");if(r.vueRoute){var h=n(244556);e=s(h,[d.default,r].concat(c(Array.from(t))))}else{var m=d.default?d.default:d;e=s(m,[r].concat(c(Array.from(t))))}return e.render(),window.alreadyLoadedView?(console.log("Need to merge view"),delete window.alreadyLoadedView,i.mergeView(e)):i.openView(e),i.viewLoad.setView(e),i.viewLoad.record()})).catch((function(e){return console.log(e)})))}},{key:"redirectHome",value:function(){delete window.alreadyLoadedView;var e=function(){switch(!1){case!me.isAPIClient():return"/partner-dashboard";case!me.isStudent():return"/students";case!me.isTeacher():return"/teachers";default:return"/"}}();return this.navigate(e,{trigger:!0,replace:!0})}},{key:"openView",value:function(e){return this.closeCurrentView(),o("#page-container").empty().append(e.el),this.activateTab(),this.didOpenView(e)}},{key:"mergeView",value:function(e){if(null==e.mergeWithPrerendered)return this.openView(e);var t=o("#page-container>div");return e.mergeWithPrerendered(t),e.setElement(t[0]),this.didOpenView(e)}},{key:"didOpenView",value:function(e){return k.currentView=e,e.afterInsert(),e.didReappear(),this.path=document.location.pathname+document.location.search,this.trigger("did-load-route")}},{key:"closeCurrentView",value:function(){return(null!=k.currentView?k.currentView.reloadOnClose:void 0)?document.location.reload():("hide",t=function(e){return e.hide()},null!=(e=window.currentModal)&&"function"==typeof e.hide&&t(e),null!=k.currentView?(k.currentView.modalClosed(),k.currentView.destroy(),o(".popover").popover("hide"),o("#flying-focus").css({top:0,left:0}),_.delay((function(){o("html")[0].scrollTop=0,o("body")[0].scrollTop=0}),10)):void 0);var e,t}},{key:"initializeSocialMediaServices",value:function(){if(!i.testing&&!i.demoing&&me.useSocialSignOn())return i.facebookHandler.loadAPI(),i.gplusHandler.loadAPI(),n(692265)()}},{key:"activateTab",value:function(){var e=_.string.words(document.location.pathname.slice(1),"/")[0];try{return o("ul.nav li.".concat(e)).addClass("active")}catch(e){return console.warn(e)}}},{key:"_trackPageView",value:function(){return null!=window.tracker?window.tracker.trackPageView():void 0}},{key:"onNavigate",value:function(e,t){var n,r=this;if(null==t&&(t=!1),t||(this.viewLoad=new A),_.isString(e.viewClass))S[e.viewClass]().then((function(t){return r.onNavigate(_.assign({},e,{viewClass:t}),!0)}));else{var o=e.view||e.viewClass;if(e.route===document.location.pathname&&!o)return document.location.reload();if(this.navigate(e.route,{trigger:!o}),this._trackPageView(),o){if(e.viewClass){var i=e.viewArgs||[];(n=s(e.viewClass.default?e.viewClass.default:e.viewClass,c(Array.from(i||[])))).render(),this.openView(n),this.viewLoad.setView(n)}else this.openView(e.view),this.viewLoad.setView(e.view);return this.viewLoad.record()}}}},{key:"navigate",value:function(e,n){return y(b(t.prototype),"navigate",this).call(this,e,n),Backbone.Mediator.publish("router:navigated",{route:e})}},{key:"reload",value:function(){return document.location.reload()}},{key:"logout",value:function(){return me.logout(),this.navigate("/",{trigger:!0})}}],l=[{key:"initClass",value:function(){this.prototype.routes={"":function(){if(T.getQueryVariable("hour_of_code"))return delete window.alreadyLoadedView,this.navigate("/play?hour_of_code=true",{trigger:!0,replace:!0});if(T.isCodeCombat){if(T.getQueryVariable("payment-homeSubscriptions"))return this.routeDirectly("HomeView");if(!(me.isAnonymous()||me.isStudent()||me.isTeacher()||me.isAdmin()||me.hasSubscription()||me.isAPIClient()||P.hasTemporaryPremiumAccess()||me.isParentHome()))return delete window.alreadyLoadedView,this.navigate("/premium",{trigger:!0,replace:!0});if(me.isAPIClient())return delete window.alreadyLoadedView,this.navigate("/partner-dashboard",{trigger:!0,replace:!0});if(me.useChinaHomeView())return delete window.alreadyLoadedView,this.routeDirectly("HomeCNView",[])}return T.isCodeCombat?this.routeDirectly("HomeBeta",[],{vueRoute:!0,baseTemplate:"base-flat-vue"}):this.routeDirectly("HomeView",[])},about:x("AboutView"),"contact-cn":x("ContactCNView"),"china-bridge":x("ChinaBridgeView"),account:x("account/MainAccountView"),"account/oauth-aiyouth":x("account/OAuthAIYouthView"),"account/settings":x("account/AccountSettingsRootView"),"account/unsubscribe":x("account/UnsubscribeView"),"account/payments":x("account/PaymentsView"),"account/subscription":x("account/SubscriptionView",{redirectStudents:!0,redirectTeachers:!0}),"account/prepaid":x("account/PrepaidView"),ai:x("ai/AIView"),"ai/*path":x("ai/AIView"),"ai-junior":x("core/SingletonAppVueComponentView"),"ai-junior/project/:scenarioId":x("core/SingletonAppVueComponentView"),"ai-junior/project/:scenarioId/:userId":x("core/SingletonAppVueComponentView"),"ai-junior/project/:scenarioId/:userId/:projectId":x("core/SingletonAppVueComponentView"),"ai-junior/demo":x("core/SingletonAppVueComponentView"),"ai-junior/print/:scenarioHandle":x("core/SingletonAppVueComponentView"),"ai-junior/print/:scenarioHandle/:classroomId":x("core/SingletonAppVueComponentView"),"ai-junior/scan":x("core/SingletonAppVueComponentView"),"ai-junior/scan/:scenarioHandle":x("core/SingletonAppVueComponentView"),"ai-junior/scan/:scenarioHandle/:forUserId":x("core/SingletonAppVueComponentView"),"ai-junior/creation/:projectId":x("core/SingletonAppVueComponentView"),licensor:x("LicensorView"),admin:x("admin/MainAdminView"),"admin/clas":x("admin/CLAsView"),"admin/classroom-content":x("admin/AdminClassroomContentView"),"admin/classroom-levels":x("admin/AdminClassroomLevelsView"),"admin/partial-unit-release":function(){return this.routeDirectly("views/admin/PartialUnitReleaseView",[],{vueRoute:!0,baseTemplate:"base-empty"})},"admin/classrooms-progress":x("admin/AdminClassroomsProgressView"),"admin/design-elements":x("admin/DesignElementsView"),"admin/files":x("admin/FilesView"),"admin/analytics":x("admin/AnalyticsView"),"admin/level-hints":x("admin/AdminLevelHintsView"),"admin/level-sessions":x("admin/LevelSessionsView"),"admin/school-counts":x("admin/SchoolCountsView"),"admin/school-licenses":x("admin/SchoolLicensesView"),"admin/sub-cancellations":x("admin/AdminSubCancellationsView"),"admin/base":x("admin/BaseView"),"admin/demo-requests":x("admin/DemoRequestsView"),"admin/trial-requests":x("admin/TrialRequestsView"),"admin/user-code-problems":x("admin/UserCodeProblemsView"),"admin/pending-patches":x("admin/PendingPatchesView"),"admin/codelogs":x("admin/CodeLogsView"),"admin/skipped-contacts":x("admin/SkippedContactsView"),"admin/outcomes-report-result":x("admin/OutcomeReportResultView"),"admin/outcomes-report":x("admin/OutcomesReportView"),"admin/clan(/:clanID)":x("core/SingletonAppVueComponentView"),"admin/low-usage-users":x("core/SingletonAppVueComponentView"),"admin/activation-code-usage":x("core/SingletonAppVueComponentView"),announcements:x("core/SingletonAppVueComponentView"),"exams/(*subpath)":x("core/SingletonAppVueComponentView"),"library-dashboard":x("core/SingletonAppVueComponentView"),"partner-dashboard":x("core/SingletonAppVueComponentView"),"api-dashboard":x("core/SingletonAppVueComponentView"),artisans:x("artisans/ArtisansView"),"artisans/level-tasks":x("artisans/LevelTasksView"),"artisans/solution-problems":x("artisans/SolutionProblemsView"),"artisans/thang-tasks":x("artisans/ThangTasksView"),"artisans/level-concepts":x("artisans/LevelConceptMap"),"artisans/level-guides":x("artisans/LevelGuidesView"),"artisans/student-solutions":x("artisans/StudentSolutionsView"),"artisans/sandbox":x("artisans/SandboxView"),"artisans/arena-balancer(/:levelSlug)":x("artisans/ArenaBalancerView"),"artisans/block-testing":x("artisans/BlockTestingView"),careers:function(){window.location.href="https://jobs.lever.co/codecombat"},cla:x("CLAView"),clans:x("clans/ClansView",{redirectStudents:!0}),"clans/:clanID":x("clans/ClanDetailsView",{redirectStudents:!0}),community:function(){this.navigate("/contribute",{trigger:!0,replace:!0})},contribute:x("contribute/MainContributeView"),"contribute/adventurer":x("contribute/AdventurerView"),"contribute/ambassador":x("contribute/Ambassad
2orView"),"contribute/archmage":x("contribute/ArchmageView"),"contribute/artisan":x("contribute/ArtisanView"),"contribute/diplomat":x("contribute/DiplomatView"),"contribute/scribe":x("contribute/ScribeView"),courses:O("/students"),Courses:O("/students"),"courses/students":O("/students"),"courses/teachers":O("/teachers/classes"),"courses/purchase":O("/teachers/licenses"),"courses/enroll(/:courseID)":O("/teachers/licenses"),"courses/update-account":O("students/update-account"),"courses/:classroomID":function(){return this.navigate("/students/".concat(arguments[0]),{trigger:!0,replace:!0})},"courses/:courseID/:courseInstanceID":function(){return this.navigate("/students/".concat(arguments[0],"/").concat(arguments[1]),{trigger:!0,replace:!0})},dei:x("core/SingletonAppVueComponentView"),"diversity-equity-and-inclusion":x("core/SingletonAppVueComponentView"),"db/*path":"routeToServer","docs/components":x("editor/docs/ComponentsDocumentationView"),"docs/systems":x("editor/docs/SystemsDocumentationView"),editor:x("CommunityView"),"editor/concept":x("editor/concept/ConceptSearchView"),"editor/concept/:conceptID":x("editor/concept/ConceptEditView"),"editor/standards":x("editor/standards/StandardsSearchView"),"editor/standards/:standardsID":x("editor/standards/StandardsEditView"),"editor/achievement":x("editor/achievement/AchievementSearchView"),"editor/achievement/:articleID":x("editor/achievement/AchievementEditView"),"editor/article":x("editor/article/ArticleSearchView"),"editor/article/preview":x("editor/article/ArticlePreviewView"),"editor/article/:articleID":x("editor/article/ArticleEditView"),"editor/announcement":x("editor/announcement/AnnouncementSearchView"),"editor/announcement/:announcementId":x("editor/announcement/AnnouncementEditView"),"editor/cinematic(/*subpath)":x("core/SingletonAppVueComponentView"),"editor/cutscene(/*subpath)":x("core/SingletonAppVueComponentView"),"editor/interactive(/*subpath)":x("core/SingletonAppVueComponentView"),"editor/level":x("editor/level/LevelSearchView"),"editor/level/:levelID":x("editor/level/LevelEditView"),"editor/thang":x("editor/thang/ThangTypeSearchView"),"editor/thang/:thangID":x("editor/thang/ThangTypeEditView"),"editor/campaign/:campaignID(/:campaignPage)":x("editor/campaign/CampaignEditorView"),"editor/verifier(/:levelID)":x("editor/verifier/VerifierView"),"editor/i18n-verifier(/:levelID)":x("editor/verifier/i18nVerifierView"),"editor/course":x("editor/course/CourseSearchView"),"editor/course/:courseID":x("editor/course/CourseEditView"),"editor/resource":x("editor/resource/ResourceSearchView"),"editor/resource/:resourceID":x("editor/resource/ResourceEditView"),"editor/archived-elements":x("core/SingletonAppVueComponentView"),"editor/podcast":x("editor/podcast/PodcastSearchView"),"editor/podcast/:podcastId":x("editor/podcast/PodcastEditView"),"editor/minigame":x("editor/minigame/MiniGameSearchView"),"editor/minigame/:slugOrId":x("editor/minigame/MiniGameEditView"),"editor/chat":x("editor/chat/ChatSearchView"),"editor/chat/:chatID":x("editor/chat/ChatEditView"),"editor/ai-scenario":x("editor/ai-scenario/AIScenarioSearchView"),"editor/ai-scenario/:chatID":x("editor/ai-scenario/AIScenarioEditView"),"editor/ai-project":x("editor/ai-project/AIProjectSearchView"),"editor/ai-project/:chatID":x("editor/ai-project/AIProjectEditView"),"editor/ai-model":x("editor/ai-model/AIModelSearchView"),"editor/ai-model/:modelID":x("editor/ai-model/AIModelEditView"),"editor/ai-document":x("editor/ai-document/AIDocumentSearchView"),"editor/ai-document/:documentID":x("editor/ai-document/AIDocumentEditView"),"editor/ai-chat-message":x("editor/ai-chat-message/AIChatMessageSearchView"),"editor/ai-chat-message/:chatMessageID":x("editor/ai-chat-message/AIChatMessageEditView"),"editor/ai-junior-scenario":x("editor/ai-junior-scenario/AIJuniorScenarioSearchView"),"editor/ai-junior-scenario/:chatID":x("editor/ai-junior-scenario/AIJuniorScenarioEditView"),"editor/ai-junior-project":x("editor/ai-junior-project/AIJuniorProjectSearchView"),"editor/ai-junior-project/:chatID":x("editor/ai-junior-project/AIJuniorProjectEditView"),etc:O("/teachers/demo"),demo:O("/teachers/demo"),quote:O("/teachers/demo"),"file/*path":"routeToServer",funding:x("core/SingletonAppVueComponentView"),"github/*path":"routeToServer",hoc:function(e){return T.isCodeCombat?this.navigate("/play/hoc-2018",{trigger:!0,replace:!0}):(null==e&&(e=""),(new Image).src="https://code.org/api/hour/begin_codecombat_ozaria.png",e&&(e="&"+e),this.navigate("/play/chapter-1-sky-mountain?hour_of_code=true".concat(e),{trigger:!0}))},"play/hoc-2020":function(){return this.navigate("/play/hoc-2018",{trigger:!0,replace:!0})},home:function(){if(T.isCodeCombat&&me.useChinaHomeView()){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=x("HomeCNView")).call.apply(e,[this].concat(n))}return T.isCodeCombat?this.routeDirectly("HomeBeta",[],{vueRoute:!0,baseTemplate:"base-flat-vue"}):this.routeDirectly("HomeView",[])},i18n:x("i18n/I18NHomeView"),"i18n/thang/:handle":x("i18n/I18NEditThangTypeView"),"i18n/component/:handle":x("i18n/I18NEditComponentView"),"i18n/level/:handle":x("i18n/I18NEditLevelView"),"i18n/achievement/:handle":x("i18n/I18NEditAchievementView"),"i18n/campaign/:handle":x("i18n/I18NEditCampaignView"),"i18n/course/:handle":x("i18n/I18NEditCourseView"),"i18n/cinematic/:handle":x("i18n/I18NEditCinematicView"),"i18n/product/:handle":x("i18n/I18NEditProductView"),"i18n/article/:handle":x("i18n/I18NEditArticleView"),"i18n/interactive/:handle":x("i18n/I18NEditInteractiveView"),"i18n/cutscene/:handle":x("i18n/I18NEditCutsceneView"),"i18n/resource_hub_resource/:handle":x("i18n/I18NEditResourceHubResourceView"),"i18n/concept/:handle":x("i18n/I18NEditConceptView"),"i18n/standards/:handle":x("i18n/I18NEditStandardsCorrelationView"),"i18n/ai/scenario/:handle":x("i18n/I18NEditAIScenarioView"),"i18n/ai/chat_message/:handle":x("i18n/I18NEditAIChatMessageView"),"i18n/ai/document/:handle":x("i18n/I18NEditAIDocumentView"),"i18n/ai/junior_scenario/:handle":x("i18n/I18NEditAIJuniorScenarioView"),identify:x("user/IdentifyView"),"il
2-signup":x("account/IsraelSignupView"),impact:function(){return this.routeDirectly("PageImpact",[],{vueRoute:!0,baseTemplate:"base-flat-vue"})},partners:function(){return this.routeDirectly("PagePartners",[],{vueRoute:!0,baseTemplate:"base-flat-vue"})},apcsp:function(){return this.routeDirectly("PageAPCSPMarketing",[],{vueRoute:!0,baseTemplate:"base-flat-vue"})},apcspportal:function(){return this.routeDirectly("PageAPCSPCurriculum",[],{vueRoute:!0,baseTemplate:"base-flat-vue"})},apcsportal:function(){return this.routeDirectly("PageAPCSPCurriculum",[],{vueRoute:!0,baseTemplate:"base-flat-vue"})},codequest:function(){return this.routeDirectly("PageCodequest",[],{vueRoute:!0,baseTemplate:"base-flat-vue"})},hackstack:x("core/SingletonAppVueComponentView"),"hackstack-algebra":x("core/SingletonAppVueComponentView"),"hackstack-cyber":x("core/SingletonAppVueComponentView"),"home-beta":x("core/SingletonAppVueComponentView"),ozaria:function(){return this.routeDirectly("HomeView",[])},standards:x("core/SingletonAppVueComponentView"),schools:x("core/SingletonAppVueComponentView"),junior:x("core/SingletonAppVueComponentView"),"league/academica":O("/league/autoclan-school-network-academica"),"league/kipp":O("/league/autoclan-school-network-kipp"),"league(/*subpath)":x("core/SingletonAppVueComponentView"),legal:x("LegalView"),logout:"logout","minigames/conditionals":x("minigames/ConditionalMinigameView"),mobile:function(){return this.routeDirectly("views/landing-pages/mobile/PageMobileView",[],{vueRoute:!0,baseTemplate:"base-empty"})},"sign-up/promotion/:role":function(e){return this.routeDirectly("ozaria/site/components/sign-up/PageIndividualSignup",[],{vueRoute:!0,baseTemplate:"base-empty",propsData:{role:e}})},parents:x("core/SingletonAppVueComponentView"),"parents/*path":x("core/SingletonAppVueComponentView"),"live-classes":x("core/SingletonAppVueComponentView"),live:x("core/SingletonAppVueComponentView"),"outcomes-report(/*subpath)":x("core/SingletonAppVueComponentView"),"temporary-debug-timetap":x("core/SingletonAppVueComponentView"),"paypal/subscribe-callback":x("play/CampaignView"),"paypal/cancel-callback":x("account/SubscriptionView"),"tournaments/:pageType/:objectId":x("ladder/MainTournamentView"),"play(/)":x("play/CampaignView",{redirectStudents:!0,redirectTeachers:!0}),"play/minigame/:slug":x("play/MiniGamePlayView"),"play/ladder/:levelID/:leagueType/:leagueID":x("ladder/LadderView"),"play/ladder/:levelID":x("ladder/LadderView"),"play/ladder":x("ladder/MainLadderView"),"play/level/:levelID":function(e,t){if(T.isCodeCombat)return this.routeDirectly("play/level/PlayLevelView",arguments,t);var n={levelID:e};return this.routeDirectly("ozaria/site/play/PagePlayLevel",[],{vueRoute:!0,baseTemplate:"base-empty",propsData:n})},"play/ozaria/level/:levelID":function(e,t){var n={levelID:e};return this.routeDirectly("ozaria/site/play/PagePlayLevel",[],{vueRoute:!0,baseTemplate:"base-empty",propsData:n})},"play/intro/:introLevelIdOrSlug":function(e){var t={introLevelIdOrSlug:e};return this.routeDirectly("introLevel",[],{vueRoute:!0,baseTemplate:"base-empty",propsData:t})},"play/ozaria/intro/:introLevelIdOrSlug":function(e){var t={introLevelIdOrSlug:e};return this.routeDirectly("introLevel",[],{vueRoute:!0,baseTemplate:"base-empty",propsData:t})},"play/video/level/:levelID":x("play/level/PlayLevelVideoView"),"play/game-dev-level/:sessionID":x("play/level/PlayGameDevLevelView"),"play/web-dev-level/:sessionID":x("play/level/PlayWebDevLevelView"),"play/game-dev-level/:levelID/:sessionID":function(e,t,n){return this.navigate("play/game-dev-level/".concat(t,"?").concat(n),{trigger:!0,replace:!0})},"play/web-dev-level/:levelID/:sessionID":function(e,t,n){return this.navigate("play/web-dev-level/".concat(t,"?").concat(n),{trigger:!0,replace:!0})},"play/spectate/:levelID":x("play/SpectateView"),"play/:campaign":function(e){if(T.isCodeCombat){var t=(e||"").toLowerCase();return"ai"===t?this.routeDirectly("play/CampaignView",[t],{redirectStudents:!0,redirectTeachers:!0}):this.routeDirectly("play/CampaignView",arguments)}var n={campaign:e};return this.routeDirectly("ozaria/site/play/PageUnitMap",[],{vueRoute:!0,baseTemplate:"base-empty",propsData:n})},"play/ozaria/:campaign":function(e){var t={campaign:e};return this.routeDirectly("ozaria/site/play/PageUnitMap",[],{vueRoute:!0,baseTemplate:"base-empty",propsData:t})},"interactive/:interactiveIdOrSlug(?code-language=:codeLanguage)":function(e,t){var n={interactiveIdOrSlug:e,codeLanguage:t};if(me.isAdmin())return this.routeDirectly("interactive",[],{vueRoute:!0,baseTemplate:"base-empty",propsData:n})},"cinematic/:cinematicIdOrSlug":function(e){var t={cinematicIdOrSlug:e};if(me.isAdmin())return this.routeDirectly("cinematic",[],{vueRoute:!0,baseTemplate:"base-empty",propsData:t})}
2,"cutscene/:cutsceneId":function(e){var t={cutsceneId:e};if(me.isAdmin())return this.routeDirectly("cutscene",[],{vueRoute:!0,baseTemplate:"base-empty",propsData:t})},premium:x("core/SingletonAppVueComponentView"),"ozaria/avatar-selector":function(){if(me.isAdmin())return this.routeDirectly("ozaria/site/avatarSelector",[],{vueRoute:!0,baseTemplate:"base-empty"})},preview:me.useChinaHomeView()?x("HomeCNView"):x("HomeView"),privacy:x("PrivacyView"),"professional-development":x("core/SingletonAppVueComponentView"),pd:x("core/SingletonAppVueComponentView"),efficacy:x("core/SingletonAppVueComponentView"),sel:x("core/SingletonAppVueComponentView"),"social-and-emotional-learning":x("core/SingletonAppVueComponentView"),roblox:x("core/SingletonAppVueComponentView"),grants:x("core/SingletonAppVueComponentView"),seen:me.useChinaHomeView()?x("HomeCNView"):x("HomeView"),students:x("courses/CoursesView",{redirectTeachers:!0}),"students/update-account":x("courses/CoursesUpdateAccountView",{redirectTeachers:!0}),"students/project-gallery/:courseInstanceID":x("courses/ProjectGalleryView"),"students/assessments/:classroomID":x("courses/StudentAssessmentsView"),"students/videos/:courseID/:courseName":x("courses/CourseVideosView"),"students/:classroomID":x("courses/ClassroomView",{redirectTeachers:!0,studentsOnly:!0}),"students/:courseID/:courseInstanceID":x("courses/CourseDetailsView",{redirectTeachers:!0,studentsOnly:!0}),teachers:function(){return me.showChinaResourceInfo()&&!me.isNewDashboardActive()?(delete window.alreadyLoadedView,this.navigate("/teachers/classes"+document.location.search,{trigger:!0,replace:!0})):this.routeDirectly("core/SingletonAppVueComponentView",arguments,{redirectStudents:!0,teachersOnly:!0})},"teachers/classes":function(){return me.showChinaResourceInfo()&&!me.isNewDashboardActive()?this.routeDirectly("courses/TeacherClassesView",[],{redirectStudents:!0,teachersOnly:!0}):this.routeDirectly("core/SingletonAppVueComponentView",arguments,{redirectStudents:!0,teachersOnly:!0})},"teachers/projects/:classroomId":x("core/SingletonAppVueComponentView"),"teachers/assessments/:classroomId":x("core/SingletonAppVueComponentView"),"teachers/ai-junior/:classroomId":x("core/SingletonAppVueComponentView"),"teachers/classes/:classroomID/:studentID":x("teachers/TeacherStudentView",{redirectStudents:!0,teachersOnly:!0}),"teachers/classes/:classroomID":function(){return me.showChinaResourceInfo()&&!me.isNewDashboardActive()?this.routeDirectly("courses/TeacherClassView",arguments,{redirectStudents:!0,teachersOnly:!0}):this.routeDirectly("core/SingletonAppVueComponentView",arguments,{redirectStudents:!0,teachersOnly:!0})},"teachers/hackstack-classes/:classroomID":x("core/SingletonAppVueComponentView"),"teachers/courses":function(){return me.showChinaResourceInfo()&&!me.isNewDashboardActive()?this.routeDirectly("courses/TeacherCoursesView",arguments,{redirectStudents:!0}):(delete window.alreadyLoadedView,this.navigate("/teachers"+document.location.search,{trigger:!0,replace:!0}))},"teachers/units":O("/teachers"),"teachers/course-solution/ozaria/:courseID/:language":x("teachers/TeacherCourseSolutionView",{redirectStudents:!0}),"teachers/course-solution/:courseID/:language":x("teachers/TeacherCourseSolutionView",{redirectStudents:!0}),"teachers/campaign-solution/:courseID/:language":x("teachers/TeacherCourseSolutionView",{redirectStudents:!0,campaignMode:!0}),"teachers/demo":O("/teachers/quote"),"teachers/enrollments":O("/teachers/licenses"),"teachers/hour-of-code":T.isCodeCombat?x("core/SingletonAppVueComponentView"):function(){window.location.href="https://docs.google.com/presentation/d/1KgFOg2tqbKEH8qNwIBdmK2QbHvTsxnW_Xo7LvjPsxwE/edit?usp=sharing"},"teachers/resources/hoc2019":function(){window.location.href="https://docs.google.com/presentation/d/1KgFOg2tqbKEH8qNwIBdmK2QbHvTsxnW_Xo7LvjPsxwE/edit?usp=sharing"},"teachers/resources/hoc2020":function(){window.location.href="https://docs.google.com/presentation/d/1KgFOg2tqbKEH8qNwIBdmK2QbHvTsxnW_Xo7LvjPsxwE/edit?usp=sharing"},"teachers/licenses/v0":x("courses/EnrollmentsView",{redirectStudents:!0,teachersOnly:!0}),"teachers/freetrial":x("teachers/RequestQuoteView",{redirectStudents:!0}),"teachers/quote":O("/schools?openContactModal=true"),"teachers/resources_old":x("teachers/ResourceHubView",{redirectStudents:!0}),"teachers/resources":T.isCodeCombat&&me.useChinaHomeView()?x("teachers/ResourceHubView",{redirectStudents:!0}):x("core/SingletonAppVueComponentView",{redirectStudents:!0}),"teachers/resources_new":x("core/SingletonAppVueComponentView"),"teachers/curriculum":E(x("teachers/curriculum",{redirectStudents:!0})),"teachers/curriculum/:campaign":E(x("teachers/curriculum",{redirectStudents:!0})),"teachers/guide/:product(/*subpath)":E(x("core/SingletonAppVueComponentView")),"teachers/resources/ap-cs-principles":x("teachers/ApCsPrinciplesView",{redirectStudents:!0}
2),"teachers/resources/:name":x("teachers/MarkdownResourceView",{redirectStudents:!0}),"teachers/professional-development":E(x("pd/PDView",{redirectStudents:!0})),"teachers/apcsp":E(x("apcsp/PageMarketing",{redirectStudents:!0})),"teachers/roblox":E(x("landing-pages/hackstack/PageHackStack",{redirectStudents:!0})),"teachers/ai-league":E(x("ai-league/AILeagueView",{redirectStudents:!0})),"teachers/ai-league(/*subpath)":x("core/SingletonAppVueComponentView"),"teachers/signup":function(){return me.isAnonymous()?this.routeDirectly("teachers/CreateTeacherAccountView",[]):me.isStudent()&&!me.isAdmin()?this.navigate("/students",{trigger:!0,replace:!0}):this.navigate("/teachers/update-account",{trigger:!0,replace:!0})},"teachers/update-account":function(){return me.isAnonymous()?this.navigate("/teachers/signup",{trigger:!0,replace:!0}):me.isStudent()&&!me.isAdmin()?this.navigate("/students",{trigger:!0,replace:!0}):this.routeDirectly("teachers/ConvertToTeacherAccountView",[])},"school-administrator(/*subpath)":x("core/SingletonAppVueComponentView"),"cinematicplaceholder/:levelSlug":x("core/SingletonAppVueComponentView"),"sign-up/educator":x("core/SingletonAppVueComponentView"),"test(/*subpath)":x("TestView"),"user/:slugOrID":x("user/MainUserView"),"certificates/:slugOrID":x("user/CertificatesView"),"certificates/ozaria/:slugOrID":x("user/CertificatesView"),"certificates/all-courses/:slugOrID":x("user/AllCoursesCertificatesView"),"certificates/:id/anon":x("user/AnonCertificatesView"),"user/:userID/verify/:verificationCode":x("user/EmailVerifiedView"),"user/:userID/opt-in/:verificationCode":x("user/UserOptInView"),"users/switch-account":x("core/SingletonAppVueComponentView"),"users/switch-account/*path":x("core/SingletonAppVueComponentView"),"payments/*path":x("core/SingletonAppVueComponentView"),"ladders/*path":x("core/SingletonAppVueComponentView"),"ed-link/*path":x("core/SingletonAppVueComponentView"),"teachers/licenses":x("core/SingletonAppVueComponentView"),"teachers/licenses/join":x("core/SingletonAppVueComponentView"),podcast:x("core/SingletonAppVueComponentView"),"podcast/*path":x("core/SingletonAppVueComponentView"),libraries:x("core/SingletonAppVueComponentView"),"library/*path":x("core/SingletonAppVueComponentView"),acte:O("/home?registering=true&referrerEvent=ACTE#create-account-teacher"),acr:x("core/SingletonAppVueComponentView"),"*name/":"removeTrailingSlash","*name":x("NotFoundView")}}}],a&&f(r.prototype,a),l&&f(r,l),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a,l}()).initClass(),r)},403781:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var d=n(727851),p={},f=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,(r=[{key:"getName",value:function(e){var t;return null===(t=p[e])||void 0===t?void 0:t.name}},{key:"setName",value:function(e){p[e.get("original")]={name:e.get("name")}}}])&&i(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(d);e.exports=new f},80721:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(){r=function(){return t};var e,t={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==o&&i.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,578 bytes, line 2
2))}function E(e,t){function r(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==n(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,s,c)}),(function(e){r("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return r("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(n(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function o(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function s(e){o(a,r,i,s,c,"next",e)}function c(e){o(a,r,i,s,c,"throw",e)}s(void 0)}))}}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==n(t)?t:t+""}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.TRACKER_LOGGING_ENABLED_QUERY_PARAM=t.DEFAULT_USER_TRAITS_TO_REPORT=t.DEFAULT_TRACKER_INIT_TIMEOUT=void 0,t.extractDefaultUserTraits=function(e){return u.reduce((function(t,n){var r=e[n];return null!=r&&(t[n]=r),t}),{})};var c=t.TRACKER_LOGGING_ENABLED_QUERY_PARAM="tracker_logging",u=t.DEFAULT_USER_TRAITS_TO_REPORT=["email","anonymous","dateCreated","hourOfCode","name","referrer","testGroupNumber","testGroupNumberUS","gender","lastLevel","siteref","ageRange","schoolName","coursePrepaidID","role","firstName","lastName"],l=t.DEFAULT_TRACKER_INIT_TIMEOUT=12e3;t.default=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.initializing=!1,this.initialized=!1,this.setupInitialization(),this.loggingEnabled=!1;try{this.loggingEnabled=new URLSearchParams(window.location.search).has(c)}catch(e){}this.trackerInitTimeout=l},t=[{key:"identify",value:(f=i(r().mark((function e(){var t=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!(t.length>0&&void 0!==t[0])||t[0];case 1:case"end":return e.stop()}}),e)}))),function(){return f.apply(this,arguments)})},{key:"resetIdentity",value:(p=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return p.apply(this,arguments)})},{key:"trackPageView",value:(d=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return d.apply(this,arguments)})},{key:"trackEvent",value:(u=i(r().mark((function e(t){var n=arguments;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:!(n.length>1&&void 0!==n[1])||n[1];case 1:case"end":return e.stop()}}),e)}))),function(e){return u.apply(this,arguments)})},{key:"trackTiming",value:(s=i(r().mark((function e(t,n,o,i){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(e,t,n,r){return s.apply(this,arguments)})},{key:"watchForDisableAllTrackingChanges",value:function(e){var t=this;this.disableAllTracking=e.getters["tracker/disableAllTracking"],e.watch((function(e,t){return t["tracker/disableAllTracking"]}),(function(e){t.disableAllTracking=e}))}},{key:"isInitialized",get:function(){return this.initialized},set:function(e){this.initialized=e}},{key:"isInitializing",get:function(){return this.initializing},set:function(e){this.initializing=e}},{key:"initializationComplete",get:function(){return this.initializationCompletePromise}},{key:"initialize",value:(o=i(r().mark((function e(){var t,n=this;return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isInitializing){e.next=2;break}return e.abrupt("return",this.initializationComplete);case 2:return this.isInitializing=!0,t=new Promise((function(e,t){setTimeout((function(){return t(new Error("".concat(n.constructor.name||"Tracker"," init timeout")))}),n.trackerInitTimeout)})),e.prev=4,e.next=7,Promise.race([t,this._initializeTracker()]);case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),this.onInitializeFail(e.t0);case 12:return e.abrupt("return",this.initializationComplete);case 13:case"end":return e.stop()}}),e,this,[[4,9]])}
2))),function(){return o.apply(this,arguments)})},{key:"_initializeTracker",value:(n=i(r().mark((function e(){return r().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.onInitializeSuccess();case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"setupInitialization",value:function(){var e=this,t=function(t){e.isInitialized=t,e.onInitializeSuccess=function(){},e.onInitializeFail=function(){}};this.initializationCompletePromise=new Promise((function(n,r){e.onInitializeSuccess=function(){n(),t(!0)},e.onInitializeFail=function(n){/init timeout/.test(n.message)||console.error("".concat(e.constructor.name||"Tracker"," initialization failed"),n),r(n),t(!1)}}))}},{key:"log",value:function(){var e;if(this.loggingEnabled){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];(e=console).info.apply(e,["[tracker] [".concat(this.constructor.name,"]")].concat(n))}}}],t&&a(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n,o,s,u,d,p,f}()},762139:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=n(106605);n(964112);var i,a=(i=n(80721))&&i.__esModule?i:{default:i};function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}t.default=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=u(this,t)).store=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),function(e,t,n){return t&&s(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_initializeTracker",value:function(){var e,t=this,n=this.store.getters["me/preferredLocale"];this.store.getters.localeLoaded(n)||console.error("Preferred locale not loaded for user. This will result in consent tracker showing in incorrect language."),me.isStudent()||null!==(e=window.features)&&void 0!==e&&e.china?this.onInitializeSuccess():window.self===window.top?(this.syncConsentFromUserAccount(),this.store.watch((function(e,t){return t["me/preferredLocale"]}),(function(){return t.onPreferredLocaleChanged()})),this.initializeCookieConsent(),this.onInitializeSuccess()):this.onInitializeSuccess()}},{key:"syncConsentFromUserAccount",value:function(){var e=me.getLatestCookieConsent();if(e&&e.action){var t=new Date;t.setFullYear(t.getFullYear()+1),document.cookie="cookieconsent_status=".concat(e.action,"; expires=").concat(t.toUTCString(),"; path=/"),this.store.dispatch("tracker/cookieConsentStatusChange",e.action)}}},{key:"onInitialise",value:function(e){this.log("CookieConsent onInitialise - status:",e),this.store.dispatch("tracker/cookieConsentStatusChange",e)}},{key:"onStatusChange",value:function(e){this.log("CookieConsent onStatusChange - status:",e),this.store.dispatch("tracker/cookieConsentStatusChange",e),me.saveCookieConsent(e,"User
2cookie consent from banner"),me.save(null,{error:function(e,t){console.error("Failed to save cookie consent to user account",t)}})}},{key:"onPreferredLocaleChanged",value:function(){var e=this,t=this.store.getters["me/preferredLocale"];if(this.store.getters.localeLoaded(t))this.initializeCookieConsent();else var n=this.store.watch((function(e,n){return n.localeLoaded(t)}),(function(){n(),e.initializeCookieConsent()}))}},{key:"initializeCookieConsent",value:function(){this.popup&&(this.popup.destroy(),this.popup=void 0),this.popup=new o.Popup({onInitialise:this.onInitialise.bind(this),onStatusChange:this.onStatusChange.bind(this),container:document.body,palette:{popup:{background:"#000"},button:{background:"#7a65fc",text:"#ffffff"}},hasTransition:!1,revokeable:!0,law:!1,location:!1,type:"opt-in",content:{allow:Vue.t("legal.cookies_allow"),message:Vue.t("legal.cookies_message"),dismiss:Vue.t("general.accept"),deny:Vue.t("legal.cookies_deny"),link:Vue.t("nav.privacy"),href:"/privacy"}})}}])}(a.default)},175688:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=(o=n(80721))&&o.__esModule?o:{default:o};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=f(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){u=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 5,694 bytes, line 2
2(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function l(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)}))}}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f(r.key),r)}}function f(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function h(e,t,n){return t=g(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}
2function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var v="Subscribe",b="Purchase",_={"Parents page CTA clicked":!0,"Live classes CTA clicked":!0,"Email for booking class":!0,"Live classes welcome call scheduled":"Schedule","CodeCombat live class booked":"Schedule","Finished Signup":"CompleteRegistration","Sales chat opened":"Contact","Support chat opened":"Contact","Support email opened":"Contact","CreateAccountModal Teacher BasicInfoView Submit Success":"Lead","Teachers Request Demo Form Submitted":"Lead","Checkout initiated":"InitiateCheckout","Student licenses purchase success":b,"Online classes purchase success":v,"Home subscription purchase success":v,UniqueTeacherSignup:!0,OzariaUniqueTeacherSignup:!0};t.default=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=h(this,t)).store=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),function(e,t,n){return t&&p(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_initializeTracker",value:(o=d(u().mark((function e(){var t,n,r,o,i=this;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.watchForDisableAllTrackingChanges(this.store),t=this.store.getters["me/isStudent"],n=(window.features||{}).china,r=this.store.getters["me/isHomePlayer"],t||n||r||!window.fbq?(this.enabled=!1,(o=document.getElementById("analytics-fbq"))&&o.remove()):(this.enabled=!0,window.fbq("init","514962702046652"),this.disableAllTracking?window.fbq("consent","revoke"):(window.fbq("consent","grant"),window.fbq("track","PageView")),this.store.watch((function(e,t){return t["tracker/disableAllTracking"]}),(function(e,t){i.log("FB watch fired - new:",e,"old:",t),e?window.fbq("consent","revoke"):(window.fbq("consent","grant"),i.enabled=!0)}))),this.onInitializeSuccess();case 6:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"trackPageView",value:(r=d(u().mark((function e(){return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"trackEvent",value:(n=d(u().mark((function e(t){var n,r,o,i=arguments;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=i.length>1&&void 0!==i[1]?i[1]:{},!(this.disableAllTracking||!window.fbq||null!==(n=window.fbq)&&void 0!==n&&n.doNotTrack)){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.initializationComplete;case 5:if(this.enabled){e.next=7;break}return e.abrupt("return");case 7:if(o=_[t]){e.next=10;break}return e.abrupt("return");case 10:this.log("tracking event",o,this.mapToFbProperties(o,r,!1)),!0===o?window.fbq("trackCustom",t,this.mapToFbProperties(o,r)):"string"==typeof o&&window.fbq("track",o,this.mapToFbProperties(o,r));case 12:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"mapToFbProperties",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||0===Object.keys(t).length)return{};var r={};if(e===v){var o=t.purchaseAmount,i=t.predictedLtv,a=t.currency;r.predicted_ltv=i,r.value=o,r.currency=a}else if(e===b){var c=t.purchaseAmount,u=t.currency;r.value=c,r.currency=u}else r=s({},t),n&&(delete r.email,delete r.name,delete r.emails,delete r.emailOrUsername),t.category&&(r.content_category=t.category),t.label&&(r.content_name=t.label),"CompleteRegistration"===e&&(r.status=!0);return r}}]);var n,r,o}(i.default)},633463:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
vendor: 4,589 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.loadFullStory=y;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var c=a?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(80721));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function a(){a=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)}))}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function d(e,t,n){return t=f(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var m="coco.tracker.fullstory.enabled",g="coco.tracker.fullstory.lastUserId";function y(){var e,t,n,r,o,i,a,s;window._fs_debug=!1,window._fs_host="fullstory.com",window._fs_script="edge.fullstory.com/s/fs.js",window._fs_org="RQW5S",window._fs_namespace="FS",e=window,t=document,n=window._fs_namespace,r="script",o="user",n in e?e.console&&e.console.log&&e.console.log('FullStory namespace conflict. Please set window["_fs_namespace"].'):((a=e[n]=function(e,t,n){a.q?a.q.push([e,t,n]):a._api(e,t,n)}).q=[],(i=t.createElement(r)).async=1,i.crossOrigin="anonymous",i.src="https://"+_fs_script,(s=t.getElementsByTagName(r)[0]).parentNode.insertBefore(i,s),a.identify=function(e,t,n){a(o,{uid:e},n),t&&a(o,t,n)},a.setUserVars=function(e,t){a(o,e,t)},a.event=function(e,t,n){a("event",{n:e,p:t},n)},a.anonymize=function(){a.identify(!1)},a.shutdown=function(){a("rec",!1)},a.restart=function(){a("rec",!0)},a.log=function(e,t){a("log",[e,t])},a.consent=function(e){a("consent",!arguments.length||e)},a.identifyAccount=function(e,t){i="account",(t=t||{}).acctId=e,a(i,t)},a.clearUserCookie=function(){},a._w={},s="XMLHttpRequest",a._w[s]=e[s],s="fetch",a._w[s]=e[s],e[s]&&(e[s]=function(){return a._w[s].apply(this,arguments)}),a._v="1.2.0")}t.default=function(e){function t(e,n){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=d(this,t)).store=e,r.globalTracker=n;var o=window.sessionStorage.getItem(m);return r.enableDecisionMade=null!==o,r.enabled="true"===o,r.log("fs initialized enabled",r.enabled),r.log("fs initialized enable decision made",r.enableDecisionMade),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,r=[{key:"_initializeTracker",value:(f=c(a().mark((function e(){var t=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.watchForDisableAllTrackingChanges(this.store),this.disableAllTracking||this._loadFullStoryWithReadyCallback(),this.store.watch((function(e,t){return t["tracker/disableAllTracking"]}),(function(e){e||t.enabled?e&&window.FS&&t.disable():window.FS?t.decideEnabled()&&t.enable():t._loadFullStoryWithReadyCallback()})),this.onInitializeSuccess();case 4:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"_loadFullStoryWithReadyCallback",value:function(){var e=this;window._fs_ready=function(){var t=!1;try{t=new URLSearchParams(window.location.search).has("fullstory_enable")}catch(e){}try{e.log("fs ready"),t?(e.enabled=!0,e.log("query param force enable")):e.enableDecisionMade||(e.log("deciding on enabled"),e.enabled=e.decideEnabled(),e.enabled&&e.globalTracker.trackEvent("FullStory Tracking Enabled")),e.enabled?(e.log("enabling from init"),e.enable()):(e.log("disabling from init"),e.disable())}catch(t){e.log("_fs_ready error",t)}},y()}},{key:"enable",value:function(){this.enabled=!0,window.sessionStorage.setItem(m,"true"),FS.restart(),this.log("fs enabled")}},{key:"disable",value:function(){this.enabled=!1,window.sessionStorage.setItem(m,"false"),FS.shutdown(),this.log("fs disabled")}},{key:"decideEnabled",value:function(){var e=this.store.state.me;return this.disableAllTracking?(this.log("fs decide enabled","disable all tracking"),!1):e.anonymous&&Math.random()<.0015?(this.log("fs decide enabled","anon user"),!0):this.store.getters["me/isTeacher"]&&!this.store.getters["me/isParent"]&&Math.random()<.01?(this.log("fs decide enabled","non parent teacher"),!0):(this.log("fs decide enabled","not enabled"),!1)}},{key:"identify",value:(p=c(a().mark((function e(){var t,n=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.length>0&&void 0!==n[0]&&n[0],e.next=3,this.initializationComplete;case 3:if(t=this.store.state.me,window.sessionStorage.getItem(g)!==t._id&&(this.log("fs identify","new user"),this.enabled=this.decideEnabled(),this.enabled?(this.log("identify","enabling"),this.enable()):(this.log("identify","disabling"),this.disable())),window.sessionStorage.setItem(g,t._id),this.enabled){e.next=9;break}return e.abrupt("return");case 9:FS.identify(t._id),FS.setUserVars((0,o.extractDefaultUserTraits)(t));case 11:case"end":return e.stop()}}),e,this)}))),function(){return p.apply(this,arguments)})},{key:"trackPageView",value:(l=c(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializationComplete;case 2:if(this.enabled){e.next=4;break}return e.abrupt("return");case 4:t="/".concat(Backbone.history.getFragment()),FS.event("page",{url:t});case 6:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"trackEvent",value:(s=c(a().mark((function e(t){var n,r=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.next=3,this.initializationComplete;case 3:if(this.enabled){e.next=5;break}return e.abrupt("return");case 5:FS.event(t,n);case 6:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"resetIdentity",value:(i=c(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializationComplete;case 2:if(window.sessionStorage.removeItem(g),this.enabled){e.next=5;break}return e.abrupt("return");case 5:FS.anonymize();case 6:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})}],r&&u(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i,s,l,p,f}(o.default)},42432:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
vendor: 4,658 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=(o=n(80721))&&o.__esModule?o:{default:o};function a(){a=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)}))}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function d(e,t,n){return t=f(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}t.default=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=d(this,t)).store=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),function(e,t,n){return t&&u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_initializeTracker",value:(i=c(a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.watchForDisableAllTrackingChanges(this.store),t=function(e){return{analytics_storage:e,ad_storage:e,ad_user_data:e,ad_personalization:e}},window.gtag&&(this.disableAllTracking?window.gtag("consent","update",t("denied")):window.gtag("consent","update",t("granted")),this.store.watch((function(e,t){return t["tracker/disableAllTracking"]}),(function(e){e?window.gtag("consent","update",t("denied")):window.gtag("consent","update",t("granted"))}))),this.onInitializeSuccess();case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"trackPageView",value:(o=c(a().mark((function e(){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.disableAllTracking){e.next=2;break}return e.abrupt("return");case 2:if(!this.store.state.me.isAdmin){e.next=4;break}return e.abrupt("return");case 4:if(ga){e.next=6;break}return e.abrupt("return");case 6:t=Backbone.history.getFragment(),n="/".concat(t),this.log("tracking page view",n),ga("send","pageview",n);case 10:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"trackEvent",value:(r=c(a().mark((function e(t){var n,r,o=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.next=3,this.initializationComplete;case 3:if(!this.disableAllTracking){e.next=5;break}return e.abrupt("return");case 5:if(!this.store.state.me.isAdmin){e.next=7;break}return e.abrupt("return");case 7:if(ga){e.next=9;break}return e.abrupt("return");case 9:if(-1===["View Load","Script Started","Script Ended","Heard Sprite"].indexOf(t)){e.next=11;break}return e.abrupt("return");case 11:this.log("tracking event",t,n),r={hitType:"event",eventCategory:n.category||"All",eventAction:t},n.label&&(r.eventLabel=n.label),(n.value||n.predictedLtv||n.purchaseAmount)&&(r.eventValue=n.value||n.predictedLtv||n.purchaseAmount),ga("send",r),window.gtag4Installed&&window.gtag("event",r.eventAction,this.ga4Object(r));case 17:case"end":return e.stop()}}),e,this)}))),function(e){return r.apply(this,arguments)})},{key:"trackTiming",value:(n=c(a().mark((function e(t,n,r,o){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializationComplete;case 2:if(!this.disableAllTracking){e.next=4;break}return e.abrupt("return");case 4:if(!this.store.state.me.isAdmin){e.next=6;break}return e.abrupt("return");case 6:if(ga){e.next=8;break}return e.abrupt("return");case 8:if(t>=0&&t<36e5){e.next=11;break}return this.log("not tracking timing--duration too long",t,n,r,o),e.abrupt("return");case 11:this.log("tracking timing",t,n,r,o),ga("send","timing",n,r,t,o);case 13:case"end":return e.stop()}}),e,this)}))),function(e,t,r,o){return n.apply(this,arguments)})},{key:"ga4Object",value:function(e){var t={};return e.eventCategory&&(t.event_category=e.eventCategory),e.eventLabel&&(t.event_label=e.eventLabel),e.eventValue&&(t.value=e.eventValue),t}}]);var n,r,o,i}(i.default)},117891:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
vendor: 4,106 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&{}.hasOwnProperty.call(e,s)){var c=i?Object.getOwnPropertyDescriptor(e,s):null;c&&(c.get||c.set)?Object.defineProperty(o,s,c):o[s]=e[s]}return o.default=e,n&&n.set(e,o),o}(n(80721)),i=n(299498);function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||c(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(){l=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);
vendor: 5,369 bytes, line 2
2if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,u,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function d(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function m(e,t,n){return t=y(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,g()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}
2function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var b=n(694879);t.default=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=m(this,t)).store=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,r=[{key:"_initializeTracker",value:(h=p(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.log("internal tracker initialize start"),this.onInitializeSuccess(),this.trackReferrers(),this.trackUtm(),this.log("internal tracker initialize end");case 5:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"identify",value:(d=p(l().mark((function e(){var t,n,r=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},e.next=3,this.initializationComplete;case 3:n=this.store.state.me,(t=_.merge((0,o.extractDefaultUserTraits)(n),t)).host=document.location.host,me.isTeacher(!0)?t.teacher=!0:t=_.omit(t,"firstName","lastName"),t.deviceMemory="number"==typeof navigator.deviceMemory?navigator.deviceMemory:void 0,this.trackEventInternal("Identify",{id:me.id,traits:t});case 9:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"trackPageView",value:(u=p(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initializationComplete;case 2:t=Backbone.history.getFragment(),this.trackEventInternal("Pageview",{url:t,href:window.location.href});case 4:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"trackEvent",value:(a=p(l().mark((function e(t){var n,r=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.length>1&&void 0!==r[1]?r[1]:{},e.next=3,this.initializationComplete;case 3:this.trackEventInternal(t,n);case 4:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"trackEventInternal",value:function(e,t){return this.disableAllTracking?this.log("not tracking",e,"because of disableAllTtracking"):this.store.state.me.isAdmin?this.log("not tracking",e,"because of admin"):-1!==["Simulator Result","Started Level Load","Finished Level Load","View Load"].indexOf(e)?this.log("not tracking common event",e):(t=_.clone(t),-1!==["Clicked Start Level","Inventory Play","Heard Sprite","Started Level","Saw Victory","Click Play","Choose Inventory","Homepage Loaded","Change Hero"].indexOf(e)?(delete t.category,delete t.label):-1!==["Clicked Start Level","Inventory Play","Heard Sprite","Started Level","Saw Victory","Click Play","Choose Inventory","Homepage Loaded","Change Hero"].indexOf(e)&&delete t.category,this.log("tracking internal analytics event:",e,t),void b.analyticsLogEvents.post({event:e,properties:t}))}},{key:"trackReferrers",value:function(){if(!(new Date-new Date(me.get("dateCreated"))>=3e5||me.get("siteref")||me.get("referrer"))){var e=!1,t=(0,i.getQueryVariable)("_r"),n=document.referrer;t&&(me.set("siteref",t),e=!0),n&&(me.set("referrer",n),e=!0),e&&me.patch()}}},{key:"trackUtm",value:function(){var e,t={url:window.location.href},n=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(new URLSearchParams(window.location.search));try{for(n.s();!(e=n.n()).done;){var r=s(e.value,2),o=r[0],i=r[1];o.startsWith("utm_")&&(t[o]=i)}}catch(e){n.e(e)}finally{n.f()}t.utm_source&&t.utm_medium&&(document.referrer&&(t.referrer=document.referrer),this.trackEventInternal("Arrived With UTM",t))}}],r&&f(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a,u,d,h}(o.default)},252440:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
vendor: 4,682 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=(o=n(80721))&&o.__esModule?o:{default:o},a=n(537593),s=n(299498);function c(){c=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function u(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function p(e,t,n){return t=h(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}t.default=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=p(this,t)).store=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),function(e,t,n){return t&&l(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"isSuperflowEnabled",get:function(){return(0,s.getQueryVariable)("review")}},{key:"loadSuperflow",value:function(){(0,a.initSuperflow)("B57Yo9pQHtSLyn2fhVln",{projectId:"codecombat"})}},{key:"_initializeTracker",value:(n=c().mark((function e(){return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isSuperflowEnabled){e.next=3;break}return e.next=3,this.loadSuperflow();case 3:this.onInitializeSuccess();case 4:case"end":return e.stop()}}),e,this)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){u(i,r,o,a,s,"next",e)}function s(e){u(i,r,o,a,s,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})}]);var n,r}(i.default)}
vendor: 4,300 bytes, line 2
2,27248:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=(o=n(80721))&&o.__esModule?o:{default:o};function a(){a=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)}))}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function d(e,t,n){return t=f(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var m={online:"tw-obu6l-ock8c",home:"tw-obu6l-ock8d"},g="tw-obu6l-ock8a",y={"Parents page CTA clicked":"tw-obu6l-ock7m","Live classes CTA clicked":"tw-obu6l-ock7o","Email for booking class":"tw-obu6l-ock7p","Live classes welcome call scheduled":"tw-obu6l-ock7r","CodeCombat live class booked":"tw-obu6l-ock7u","Finished Signup":"tw-obu6l-ockv5","Sales chat opened":"tw-obu6l-ock7w","Support chat opened":"tw-obu6l-ock81","Support email opened":"tw-obu6l-ock83","CreateAccountModal Teacher BasicInfoView Submit Success":"tw-obu6l-ock85","Teachers Request Demo Form Submitted":"tw-obu6l-ock88","Checkout initiated":"tw-obu6l-ock89","Student licenses purchase success":g,"Online classes purchase success":m.online,"Home subscription purchase success":m.home,UniqueTeacherSignup:"tw-obu6l-ock8e",OzariaUniqueTeacherSignup:"tw-obu6l-ock8f","Page View":"tw-obu6l-ocku4"};t.default=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=d(this,t)).store=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),function(e,t,n){return t&&u(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"_initializeTracker",value:(o=c(a().mark((function e(){var t,n,r=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.watchForDisableAllTrackingChanges(this.store),t=this.store.getters["me/isStudent"],n=(window.features||{}).china,t||n||(this.disableAllTracking||this._loadAndInitTwitter(),this.store.watch((function(e,t){return t["tracker/disableAllTracking"]}),(function(e){e||r.enabled?e&&(r.enabled=!1):r._loadAndInitTwitter()}))),this.onInitializeSuccess();case 5:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"_loadAndInitTwitter",value:function(){!function(e,t,n,r,o,i){e.twq||(r=e.twq=function(){r.exe?r.exe.apply(r,arguments):r.queue.push(arguments)},r.version="1.1",r.queue=[],(o=t.createElement(n)).async=!0,o.src="https://static.ads-twitter.com/uwt.js",(i=t.getElementsByTagName(n)[0]).parentNode.insertBefore(o,i))}(window,document,"script"),twq("config","obu6l"),this.enabled=!0}},{key:"trackPageView",value:(r=c(a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)}))),function(){return r.apply(this,arguments)})},{key:"trackEvent",value:(n=c(a().mark((function e(t){var n,r,o=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=o.length>1&&void 0!==o[1]?o[1]:{},!this.disableAllTracking&&window.twq){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.initializationComplete;case 5:if(this.enabled){e.next=7;break}return e.abrupt("return");case 7:if(r=y[t]){e.next=10;break}return e.abrupt("return");case 10:window.twq("event",t,this.mapToTwitterProperties(r,n));case 11:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"mapToTwitterProperties",value:function(e,t){if(!t||0===Object.keys(t).length)return{};var n={};if(Object.values(m).includes(e)){var r=t.purchaseAmount,o=t.currency;n.value=r,n.currency=o}else if(e===g){var i=t.purchaseAmount,a=t.currency;n.value=i,n.currency=a}return n}}]);var n,r,o}(i.default)},427:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
vendor: 4,658 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o,i=(o=n(80721))&&o.__esModule?o:{default:o};function a(){a=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEac
2h(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function l(e,t,n){return t=p(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}t.default=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=l(this,t)).store=e,n.zendeskShown=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),function(e,t,n){return t&&c(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,[{key:"isChatEnabled",get:function(){return!this.onNoZendeskPage&&this.store.getters["me/isHomePlayer"]&&this.store.getters["me/isPremium"]}},{key:"onNoZendeskPage",get:function(){var e=this.store.state.route;return/(\/play|\/certificates)/.test(e.path||"")}},{key:"loadZendesk",value:function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.id="ze-snippet",e.src="https://static.zdassets.com/ekr/snippet.js?key=ed461a46-91a6-430a-a09c-73c364e02ffe",document.getElementsByTagName("head")[0].appendChild(e)}},{key:"hideZendesk",value:function(){window.zE("messenger","hide")}},{key:"showZendesk",value:function(){window.zE("messenger","show")}},{key:"watchForRouteChange",value:function(e){var t=this;e.watch((function(e){return e.route.path}),(function(){t.isChatEnabled?t.zendeskShown||(t.showZendesk(),t.zendeskShown=!0):t.zendeskShown&&(t.hideZendesk(),t.zendeskShown=!1)}))}},{key:"_initializeTracker",value:(n=a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isChatEnabled){e.next=4;break}return e.next=3,this.loadZendesk();case 3:this.zendeskShown=!0;case 4:this.onInitializeSuccess(),this.watchForRouteChange(this.store),this.watchForDisableAllTrackingChanges(this.store);case 7:case"end":return e.stop()}}),e,this)})),r=function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)}))},function(){return r.apply(this,arguments)})}]);var n,r}(i.default)}
vendor: 4,381 bytes, line 2
2,773314:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=f(n(762139)),i=f(n(117891)),a=f(n(80721)),s=f(n(42432)),c=f(n(633463)),u=f(n(175688)),l=f(n(27248)),d=f(n(427)),p=f(n(252440));function f(e){return e&&e.__esModule?e:{default:e}}function h(){h=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};l(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=p(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=p(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=p(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=l(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
vendor: 4,599 bytes, line 2
2ise);var a=new E(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),l(k,u,"Generator"),l(k,s,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function m(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){m(i,r,o,a,s,"next",e)}function s(e){m(i,r,o,a,s,"throw",e)}a(void 0)}))}}function y(e){return function(e){if(Array.isArray(e))return v(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_(r.key),r)}}function _(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function w(e,t,n){return t=C(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(t,n||[],C(e).constructor):t.apply(e,n))}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}
2function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}var x="coco.tracker.identifiedAtSessionStart",E="coco.tracker.identifyOnNextPageLoad",O=(Promise.allSettled||Promise.all).bind(Promise);t.Z=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=w(this,t)).store=e,n.cookieConsentTracker=new o.default(n.store),n.internalTracker=new i.default(n.store),n.googleAnalyticsTracker=new s.default(n.store),n.fullStoryTracker=new c.default(n.store,n),n.facebookPixelTracker=new u.default(n.store),n.twitterPixelTracker=new l.default(n.store),n.zendeskTracker=new d.default(n.store),n.superflowTracker=new p.default(n.store),n.trackers=[n.internalTracker],!(window.features||{}).china&&(n.trackers=[].concat(y(n.trackers),[n.googleAnalyticsTracker,n.fullStoryTracker,n.facebookPixelTracker,n.twitterPixelTracker,n.zendeskTracker,n.superflowTracker])),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(t,e),n=t,r=[{key:"_initializeTracker",value:(S=g(h().mark((function e(){var t,n;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=[this.cookieConsentTracker].concat(y(this.trackers)),e.next=4,O(t.map((function(e){return e.initialize()})));case 4:e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("Tracker init failed",e.t0);case 9:return e.prev=9,this.onInitializeSuccess(),e.finish(9);case 12:n=!1,"true"===window.sessionStorage.getItem(E)&&(window.sessionStorage.removeItem(E),n=!0),"true"!==window.sessionStorage.getItem(x)&&(n=!0,window.sessionStorage.setItem(x,"true")),n&&this.identify();case 18:case"end":return e.stop()}}),e,this,[[0,6,9,12]])}))),function(){return S.apply(this,arguments)})},{key:"identify",value:(_=g(h().mark((function e(){var t,n=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:{},e.prev=1,e.next=4,this.initializationComplete;case 4:return e.next=6,O(this.trackers.map((function(e){return e.identify(t)})));case 6:e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),this.log("identify call failed",e.t0);case 11:case"end":return e.stop()}}),e,this,[[1,8]])}))),function(){return _.apply(this,arguments)})},{key:"resetIdentity",value:(v=g(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.initializationComplete;case 3:return e.next=5,O(this.trackers.map((function(e){return e.resetIdentity()})));case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),this.log("resetIdentity call failed",e.t0);case 10:window.sessionStorage.removeItem(x);case 11:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return v.apply(this,arguments)})},{key:"trackPageView",value:(m=g(h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.initializationComplete;case 3:return e.next=5,O(this.trackers.map((function(e){return e.trackPageView()})));case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),this.log("trackPageView call failed",e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(){return m.apply(this,arguments)})},{key:"trackEvent",value:(f=g(h().mark((function e(t){var n,r,o=arguments;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=o.length>1&&void 0!==o[1]?o[1]:{},e.prev=1,e.next=4,this.initializationComplete;case 4:return e.next=6,O(this.trackers.map((function(e){return e.trackEvent(t,n)})));case 6:r=e.sent,Array.isArray(r)&&r.forEach((function(e){"rejected"===e.status&&console.error("trackEvent failed",e)})),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),this.log("trackEvent call failed",e.t0);case 13:case"end":return e.stop()}}),e,this,[[1,10]])}))),function(e){return f.apply(this,arguments)})},{key:"trackTiming",value:(a=g(h().mark((function e(t,n,r,o){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.initializationComplete;case 3:return e.next=5,O(this.trackers.map((function(e){return e.trackTiming(t,n,r,o)})));case 5:e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),this.log("trackTiming call failed",e.t0);case 10:case"end":return e.stop()}}),e,this,[[0,7]])}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"identifyAfterNextPageLoad",value:function(){window.sessionStorage.setItem(E,"true")}}],r&&b(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a,f,m,v,_,S}(a.default)}
2,233954:(e,t,n)=>{"use strict";var r=n(665420);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==o(t)?t:t+""}var c=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.view=t,this.firstLoad=e.firstLoad,e.firstLoad=!1,window.performance&&window.performance.now&&window.performance.getEntriesByType&&(this.t0=this.firstLoad?0:performance.now())},n=[{key:"initClass",value:function(){this.firstLoad=!0}}],(t=[{key:"setView",value:function(e){this.view=e}},{key:"record",value:function(){var e,t=this;if(this.firstLoad&&r.loadedStaticPage&&me.isAnonymous())this.skippingNetworkResources=!0,e=[];else{var n=[this.view];for(e=[];n.length;){var o=n.pop();n=n.concat(_.values(o.subviews)),o.supermodel.finished()||e.push(o.supermodel.finishLoading())}}return this.view.id,Promise.all(e).then((function(){var e;if(t.networkLoad=performance.now(),!t.view.destroyed){for(var n=[],r=0,o=Array.from(t.view.$("img:visible"));r<o.length;r++)if(!(e=o[r]).complete){var i=new Promise((function(t){if(e.complete)return t();e.onload=t,e.onerror=t}));i.imgSrc=e.src,n.push(i)}return t.imagesAlreadyLoaded=0===n.length,Promise.all(n)}})).then((function(){var e,n,r=performance.now();if(t.imagesAlreadyLoaded&&t.skippingNetworkResources){var o=performance.getEntriesByType("resource").filter((function(e){return _.contains(["img","css"],e.initiatorType)})).map((function(e){return e.responseEnd}));r=Math.max.apply(Math,function(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array.from(o||[])))}e=t.skippingNetworkResources?performance.timing.domInteractive-performance.timing.navigationStart:t.networkLoad-t.t0;var a=r-t.t0;if(!t.view.destroyed){if(!t.view.id)return console.warn("Unknown view at: ".concat(document.location.href,", could not record perf."));if(!_.isNumber(a))return console.warn("Got invalid time result for view ".concat(t.view.id,": ").concat(a,", could not record perf."));var s="function"==typeof t.view.getLoadTrackingTag?t.view.getLoadTrackingTag():void 0;if("Loaded ".concat(t.view.id,"/").concat(s," in: ").concat(a.toFixed(1),"ms"),t.firstLoad){var c=performance.getEntriesByType("resource").filter((function(e){return _.string.startsWith(e.name,location.origin)})),u=_.filter(c,(function(e){return!(/vimeo/.test(e.name)||/TestView/.test(e.name)||/file\/db\//.test(e.name)||/\/db\/analytics\.log\.event/.test(e.name)||!/\/db\//.test(e.name)&&!/chunks\/.*bundle.js/.test(e.name)&&!/app.js/.test(e.name)&&!/boot.js/.test(e.name)&&!/ace/.test(e.name)&&!/esper/.test(e.name)&&!/aether/.test(e.name)&&!/esper.modern.js/.test(e.name)&&!/lodash.js/.test(e.name)&&!/run-tests.js/.test(e.name)&&!/setImmediate.js/.test(e.name)&&!/web-dev-listener.js/.test(e.name)&&!/world/.test(e.name)&&!/app.css/.test(e.name))})),l=_.reduce(c,(function(e,t){return e+t.encodedBodySize}),0),d=_.reduce(u,(function(e,t){return e+t.encodedBodySize}),0),p=_.reduce(c,(function(e,t){return e+t.transferSize}),0),f=_.reduce(u,(function(e,t){return e+t.transferSize}),0),h=_.size(_.filter(c,(function(e){return e.transferSize/e.encodedBodySize<.1}))),m=_.size(_.filter(u,(function(e){return e.transferSize/e.encodedBodySize<.1})));n={totalEncodedBodySize:l,totalTransferSize:p,cachedResources:h,totalResources:_.size(c),totalEssentialEncodedBodySize:d,totalEssentialTransferSize:f,cachedEssentialResources:m,totalEssentialResources:_.size(u)}}else n={};var g=_.assign({networkTime:e,totalTime:a,viewId:t.view.id,firstLoad:t.firstLoad},n);return s&&(g.tag=s),window.performanceInfo=g,(null!=window.performance?window.performance.memory:void 0)&&_.assign(window.performanceInfo,_.pick(window.performance.memory,(function(){return!0}))),null!=window.tracker&&window.tracker.trackEvent("View Load",g),null==window.timeSpendWaiting&&(window.timeSpendWaiting=0),window.timeSpendWaiting+=a,window.timeSpendWaiting}window.bored+=a})).then((function(){}))}}])&&a(e.prototype,t),n&&a(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}();c.initClass(),e.exports=c},927136:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function c(){return c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=u(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},c.apply(null,arguments)}function u(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}
2function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var p=n(727851);new Idle({onAway:function(){return Backbone.Mediator.publish("view-visibility:away",{})},onAwayBack:function(){return Backbone.Mediator.publish("view-visibility:away-back",{})},onHidden:function(){return Backbone.Mediator.publish("view-visibility:hidden",{})},onVisible:function(){return Backbone.Mediator.publish("view-visibility:visible",{})},awayTimeout:1e3}).start();var f=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=a(this,t)).running=!1,e.awayTimeoutLimit=5e3,e.awayTimeoutId=null,e.throttleRate=50,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,i=[{key:"initClass",value:function(){this.prototype.subscriptions={"view-visibility:away":"onAway","view-visibility:away-back":"onAwayBack","view-visibility:hidden":"onHidden","view-visibility:visible":"onVisible"}}}],(r=[{key:"startTimer",value:function(e){this.featureData=e;var t=this.featureData,n=t.viewName;if(t.featureName,t.premiumThang,!n)throw new Error("No view name!");if(this.running&&window.performance.now()-this.startTime>this.throttleRate)throw new Error("Starting a timer over another one!");this.running||this.startTime&&!(window.performance.now()-this.startTime>this.throttleRate)||(this.running=!0,this.startTime=window.performance.now())}},{key:"stopTimer",value:function(e){null==e&&(e={});var t=e,n=t.subtractTimeout,r=t.clearName;if(null==n&&(n=!1),null==r&&(r=!1),clearTimeout(this.awayTimeoutId),this.running){this.running=!1,this.endTime=n?this.lastActive:window.performance.now();var o=this.endTime-this.startTime;o>this.throttleRate&&window.tracker.trackEvent("Premium Feature Viewed",{featureData:this.featureData,timeViewed:o})}r&&(this.featureData=null)}},{key:"markLastActive",value:function(){this.lastActive=window.performance.now()}},{key:"onAway",value:function(){var e=this;this.markLastActive(),this.running&&(this.awayTimeoutId=setTimeout((function(){return e.stopTimer({subtractTimeout:!0})}),this.awayTimeoutLimit))}},{key:"onAwayBack",value:function(){if(clearTimeout(this.awayTimeoutId),!this.running&&this.featureData)return this.startTimer(this.featureData)}},{key:"onHidden",value:function(){return this.stopTimer({subtractTimeout:!1})}},{key:"onVisible",value:function(){if(this.featureData)return this.startTimer(this.featureData)}},{key:"destroy",value:function(){return this.stopTimer(),c(l(t.prototype),"destroy",this).call(this)}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(p);f.initClass(),e.exports=f},430703:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(86856);e.exports={clearFeatureMode:function(e){return o("/admin/feature-mode",_.assign({},e,{method:"DELETE"}))},setFeatureMode:function(e,t){return o("/admin/feature-mode/".concat(e),_.assign({},t,{method:"PUT"}))},searchUser:function(e){var t,n,i;"object"===r(e)?(n=e.q,i=e.role,t=e.permissions):n=e.replace(/role:([^ ]+) /,(function(e,t){return i=t,""}));var a={adminSearch:n};return null!=i&&(a.role=i),null!=t&&(a.permissions=t),o("/db/user",{data:a})},fetchOnlineTeacherInfo:function(e){return o("/db/online-teachers/".concat(e))},putOnlineTeacherInfo:function(e,t){return o("/db/online-teachers/".concat(e),{method:"PUT",json:t})}}},21293:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}
2Object.defineProperty(t,"__esModule",{value:!0}),t.shareAIJuniorProject=t.processAIJuniorProject=t.getSharedAIJuniorProject=t.getAIJuniorProjectsForScenarioAndUser=t.getAIJuniorProjects=t.getAIJuniorProject=t.createNewAIJuniorProject=void 0;var o,i=(o=n(86856))&&o.__esModule?o:{default:o},a=["projectHandle"];function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(null,arguments)}t.createNewAIJuniorProject=function(e){var t=p({},(d(e),e)),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/ai_junior_project",_.assign({},n,{method:"POST",json:u({},t)}))},t.processAIJuniorProject=function(e){var t=e.projectHandle,n=s(e,a),r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/ai_junior_project/".concat(t,"/process"),_.assign({},r,{method:"POST",json:u({},n)}))},t.getAIJuniorProjects=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.default)("/db/ai_junior_project",e)},t.getAIJuniorProject=function(e){var t=e.projectHandle,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/ai_junior_project/".concat(t),n)},t.getAIJuniorProjectsForScenarioAndUser=function(e){var t=e.scenarioHandle,n=e.userId,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/ai_junior_project?scenarioHandle=".concat(t,"&userId=").concat(n,"&sort=-1"),r)},t.shareAIJuniorProject=function(e){var t=e.projectHandle,n=e.shared,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/ai_junior_project/".concat(t,"/share"),_.assign({},r,{method:"POST",json:{shared:n}}))},t.getSharedAIJuniorProject=function(e){var t=e.projectHandle,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/ai_junior_project/".concat(t,"/shared"),n)}},550745:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getAIJuniorScenarios=t.getAIJuniorScenario=t.createAIJuniorScenario=void 0;var o,i=(o=n(86856))&&o.__esModule?o:{default:o};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}t.createAIJuniorScenario=function(e){var t=l({},(u(e),e)),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/ai_junior_scenario",_.assign({},n,{method:"POST",json:s({},t)}))},t.getAIJuniorScenarios=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,i.default)("/db/ai_junior_scenario",e)},t.getAIJuniorScenario=function(e){var t=e.scenarioHandle,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/ai_junior_scenario/".concat(t),n)}},309555:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=n(86856);e.exports={get:function(e,t){var n=e.courseID,r=t||{};return s("/db/ai_model/".concat(n),r)},getAll:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="/db/ai_model";return s(t,i(i({},e),{},{data:i({cacheEdge:!0},e.data||{})}))}}},935967:(e,t,n)=>{"use strict";var r=n(86856);e.exports={fetchForClassroomMembers:function(e,t){return r("/db/classroom/".concat(e,"/member-ai-projects"),_.merge({},t,{method:"GET"}))}}},415248:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&i.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,578 bytes, line 2
2))}function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function i(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}var a=n(86856);e.exports={get:function(e,t){var n=e.courseID,r=t||{};return a("/db/ai_scenario/".concat(n),r)},getAll:function(e,t){null==e&&(e={});var n="/db/ai_scenario";return t&&(n="/".concat(t).concat(n)),a(n,e)},getReleased:function(e){return(t=o().mark((function t(){var n,r,i;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return null==e&&(e={}),null==e.data&&(e.data={}),t.next=4,a("/db/ai_scenario",e);case 4:return n=t.sent,r=["released"],me.isInternal()&&r.push("beta"),i=n.filter((function(e){return r.includes(e.releasePhase)})),t.abrupt("return",i);case 9:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))})();var t}}},527093:(e,t,n)=>{"use strict";var r=n(86856);e.exports={post:function(e,t){var n=e.event,o=e.properties;return r("/db/analytics.log.event/-/log_event",_.assign({},t,{method:"POST",json:{event:n,properties:o}}))}}}
2,601788:(e,t,n)=>{"use strict";var r=n(86856);e.exports={getNew:function(){return r("/db/user/announcements/new",{method:"POST"})},getList:function(e){var t="/db/user/announcements";return e&&e.skip&&(t+="?skip=".concat(e.skip)),r(t)},read:function(e){return r("/db/user/announcement/read",{method:"POST",json:e})}}},284897:(e,t,n)=>{"use strict";var r=n(86856);e.exports={getAPCSPFile:function(e,t){return r("/apcsp-files/"+e,t)}}},709099:(e,t,n)=>{"use strict";var r=n(86856);e.exports={createSecret:function(e,t){var n=e.clientID;return null==t&&(t={}),r("/db/api-clients/".concat(n,"/new-secret"),_.assign({},{method:"POST",json:t}))},createAutoClanOwner:function(e,t){var n=e.clientID;return null==t&&(t={}),r("/db/api-clients/".concat(n,"/create-auto-clan-owner"),_.assign({},{method:"POST",json:t}))},getByName:function(e,t){return null==t&&(t={}),null==t.data&&(t.data={}),t.data.name=e,r("/db/api-clients/name",t)},getAll:function(e){return null==e&&(e={}),r("/db/api-clients",e)},post:function(e){return null==e&&(e={}),r("/db/api-clients",_.assign({},{method:"POST",json:e}))},updateFeature:function(e,t){var n=e.clientID,o=e.featureID;return null==t&&(t={}),r("/db/api-clients/".concat(n,"/update-feature/").concat(o),_.assign({},{method:"PUT",json:t}))},getByHandle:function(e,t){return null==t&&(t={}),r("/db/api-clients/".concat(e),t)},editClient:function(e,t){return null==t&&(t={}),r("/db/api-clients",_.assign({},t,{method:"PUT",json:e}))},getLicenseStats:function(e,t,n){null==t&&(t={});var o=t,i=o.startDate,a=o.endDate;null==n&&(n={});var s="/db/api-clients/".concat(e,"/license-stats");return i&&a&&(s="".concat(s,"?start-date=").concat(i,"&end-date=").concat(a)),r(s,n)},getPlayTimeStats:function(e){return null==e&&(e={}),r("/api/playtime-stats",e)},getApiClientId:function(){return r("/api/get-client-id")},getTeacherCount:function(e,t){return null==t&&(t={}),r("/db/api-clients/".concat(e,"/teacher-count"))},getTeachers:function(e,t){var n=t.skip,o=t.limit;return r("/db/api-clients/".concat(e,"/teachers"),{method:"GET",data:{skip:n,limit:o}})}}},206415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unarchiveElement=t.archiveElement=void 0;var r,o=(r=n(86856))&&r.__esModule?r:{default:r};t.archiveElement=function(e,t){if(!me.isAdmin())throw new Error("Admin access required");if(!e)throw new Error("You must pass an '_id' to be archived");if(!t)throw new Error("You must pass an 'elementType' to be archived");return(0,o.default)("/db/archived-elements",{method:"POST",json:{_id:e,elementType:t}})},t.unarchiveElement=function(e,t){if(!me.isAdmin())throw new Error("Admin access required");if(!e)throw new Error("You must pass an '_id' to be un-archived");if(!t)throw new Error("You must pass an 'elementType' to be un-archived");return(0,o.default)("/db/archived-elements/".concat(e),{method:"PUT",json:{elementType:t}})}},341912:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUsableArenas=void 0;var r,o=(r=n(86856))&&r.__esModule?r:{default:r};t.getUsableArenas=function(){return(0,o.default)("/db/level/-/arenas")}},690662:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&i.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,578 bytes, line 2
2))}function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function i(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))}}var s=n(86856),c=n(176383).sleep;function u(){return u=a(o().mark((function e(t){var n,r,i,a,u,l,d,p,f=arguments;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=f.length>1&&void 0!==f[1]?f[1]:{},r="/db/background-jobs/".concat(t),n.other&&(r="/"+n.other+r),i=n.fetchOptions||{},e.next=6,s(r,i);case 6:a=e.sent,u=30,l=5e3,d=0;case 10:if(!("completed"!==a.status&&"failed"!==a.status&&d<u)){e.next=20;break}return e.next=13,c(l);case 13:return e.next=15,s(r,i);case 15:a=e.sent,d++,n.showNotification&&a.message&¬y({text:a.message,type:"warning",layout:"topCenter",timeout:3e3}),e.next=10;break;case 20:if("completed"!==a.status){e.next=23;break}return p=a.output||"{}",e.abrupt("return",JSON.parse(p));case 23:if("failed"!==a.status){e.next=25;break}throw new Error(a.message);case 25:if(d!==u){e.next=27;break}throw new Error("Failed to load the results");case 27:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}e.exports={create:function(e,t,n){var r="/db/background-jobs";return n&&(r="/"+n+r),s(r,{method:"POST",json:{type:e,input:t}})},get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r="/db/background-jobs/".concat(e);return t&&(r="/"+t+r),s(r,n)},pollTillResult:function(e){return u.apply(this,arguments)}}},960592:(e,t,n)=>{"use strict";var r=n(86856);e.exports={getAll:function(e){return null==e&&(e={}),r("/db/campaign",e)},get:function(e,t){var n=e.campaignHandle;return null==t&&(t={}),r("/db/campaign/".concat(n),t)},fetchGameContent:function(e,t){return null==t&&(t={}),r("/db/campaign/".concat(e,"/game-content"),t)},fetchOverworld:function(e){return null==e&&(e={}),r("/db/campaign/-/overworld",e)},fetchLevels:function(e,t){return null==t&&(t={}),r("/db/campaign/".concat(e,"/levels"),t)}}},881130:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getChatMessages=t.createNewChatMessage=void 0;var o,i=(o=n(86856))&&o.__esModule?o:{default:o};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}t.createNewChatMessage=function(e){var t=l({},(u(e),e)),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/chat_message",_.assign({},n,{method:"POST",json:s({},t)}))},t.getChatMessages=function(){return(0,i.default)("/db/chat_message")}},145713:(e,t,n)=>{"use strict";
vendor: 4,125 bytes, line 2
2Object.defineProperty(t,"__esModule",{value:!0}),t.leaveClan=t.joinClan=t.getUserClans=t.getTournamentsByClan=t.getPublicClans=t.getMyClans=t.getClanBySchool=t.getClanByDistrictId=t.getClanByDistrict=t.getClan=t.getChildClanDetails=t.getAILeagueStats=void 0;var r,o=(r=n(86856))&&r.__esModule?r:{default:r};t.getPublicClans=function(){return(0,o.default)("/db/clan/-/public")},t.getMyClans=function(){return(0,o.default)("/db/user/".concat(me.id,"/clans"))},t.getUserClans=function(e){return(0,o.default)("/db/user/".concat(e,"/clans"))},t.getClan=function(e){return(0,o.default)("/db/clan/".concat(e))},t.getClanBySchool=function(e){return(0,o.default)("/db/clan/school/".concat(e))},t.getClanByDistrict=function(e){return(0,o.default)("/db/clan/district/".concat(e))},t.getClanByDistrictId=function(e){return(0,o.default)("/db/clan/districtId/".concat(e))},t.joinClan=function(e){return(0,o.default)("/db/clan/".concat(e,"/join"),{method:"PUT"})},t.leaveClan=function(e){return(0,o.default)("/db/clan/".concat(e,"/leave"),{method:"PUT"})},t.getChildClanDetails=function(e){return(0,o.default)("/db/clan/".concat(e,"/subclans"))},t.getAILeagueStats=function(e){return(0,o.default)("/db/clan/".concat(e,"/league-stats"))},t.getTournamentsByClan=function(e){return(0,o.default)("/db/tournaments?clanId=".concat(e))}},828383:(e,t,n)=>{"use strict";var r=n(86856);e.exports={getAll:function(e){return null==e&&(e={}),r("/db/cla.submissions",e)}}},218484:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&i.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);
2if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(void 0)}))}}var l=n(86856);e.exports={get:function(e,t){var n=e.classroomID;return null==t&&(t={}),l("/db/classroom/".concat(n),t)},getMembers:function(e,t){var n=e.classroom,r=n._id,o=t.removeDeleted;delete t.removeDeleted;var i=0,a=_.size(n.members),s="/db/classroom/".concat(r,"/members");null==t.data&&(t.data={}),t.data.memberLimit=10,t.remove=!1;for(var c=[];i<a;)t.data.memberSkip=i,c.push(l(s,t)),i+=10;return Promise.all(c).then((function(e){var t=_.flatten(e);return o&&(t=_.filter(t,(function(e){return!e.deleted}))),t}))},getCourseLevels:function(e,t){var n=e.classroomID,r=e.courseID;return null==t&&(t={}),l("/db/classroom/".concat(n,"/courses/").concat(r,"/levels"),t)},addMembers:function(e,t){var n=e.classroomID,r=e.members;return null==t&&(t={}),l("/db/classroom/".concat(n,"/add-members"),_.assign({},t,{method:"POST",json:{members:r}}))},fetchByOwner:function(e){var t=arguments;return u(o().mark((function n(){var r,s,c,u,d,p,f;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.length>1&&void 0!==t[1]?t[1]:{},s="",Array.isArray(r.project)&&(s+="&project=".concat(r.project.join(","))),r.includeShared&&(s+="&includeShared=true"),n.next=6,l("/db/classroom?ownerID=".concat(e).concat(s),{callOz:r.callOz,method:"GET"});case 6:if(!((c=n.sent).length>0)){n.next=15;break}return u=a(c.reduce((function(e,t){return e.add(t.aceConfig.language),e}),new Set)),d=u.map((function(e){return l("/db/classroom-courses-data?language=".concat(e)).then((function(t){return i({},e,t)}))})),n.next=12,Promise.all(d);case 12:p=n.sent,f=Object.assign.apply(Object,[{}
2].concat(a(p))),c.forEach((function(e){e.courses=f[e.aceConfig.language]}));case 15:return n.abrupt("return",c);case 16:case"end":return n.stop()}}),n)})))()},fetchByCourseInstanceId:function(e){return l("/db/classroom?courseInstanceId=".concat(e),{method:"GET"})},post:function(e,t){return null==t&&(t={}),l("/db/classroom",_.assign({},t,{method:"POST",json:e}))},fetchGameContent:function(e,t){return null==t&&(t={}),l("/db/classroom/".concat(e,"/game-content"),t)},inviteMembers:function(e,t){var n=e.classroomID,r=e.emails,o=e.recaptchaResponseToken;return null==t&&(t={}),l("/db/classroom/".concat(n,"/invite-members"),_.assign({},t,{method:"POST",json:{emails:r,recaptchaResponseToken:o}}))},removeMember:function(e,t){var n=e.classroomID,r=e.userId;return null==t&&(t={}),l("/db/classroom/".concat(n,"/members/").concat(r),_.assign({},t,{method:"DELETE"}))},update:function(e,t){var n=e.classroomID,r=e.updates;return null==t&&(t={}),l("/db/classroom/".concat(n),_.assign({},t,{method:"PUT",json:r}))},addPermission:function(e){var t=e.classroomID,n=e.permission;return l("/db/classroom/".concat(t,"/permission"),_.assign({},{method:"POST",json:{permission:n}}))},getPermission:function(e){var t=e.classroomID;return l("/db/classroom/".concat(t,"/permission"),{method:"GET"})},removePermission:function(e){var t=e.classroomID,n=e.permission;return l("/db/classroom/".concat(t,"/permission"),_.assign({},{method:"DELETE",json:{permission:n}}))},getEdLinkClassrooms:function(){return l("/ed-link/classrooms",_.assign({},{method:"GET"}))},getMembersByClassCode:function(e){return l("/db/classroom/".concat(e,"/members-by-code"))},addOrUpdateCourse:function(e){var t=e.classroomId,n=e.courseId;return l("/db/classroom/".concat(t,"/update-course"),_.assign({},{method:"POST",json:{courseId:n}}))}}},650193:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getConcepts=t.createNewConcept=void 0;var o,i=(o=n(86856))&&o.__esModule?o:{default:o};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}t.createNewConcept=function(e){var t=l({},(u(e),e)),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/concept",_.assign({},n,{method:"POST",json:s({},t)}))},t.getConcepts=function(){return(0,i.default)("/db/concept")}},614678:e=>{"use strict";e.exports={}},448735:(e,t,n)=>{"use strict";var r=n(86856);e.exports={get:function(e,t){var n=e.courseInstanceID;return null==t&&(t={}),r("/db/course_instance/".concat(n),t)},getProjectGallery:function(e,t){var n=e.courseInstanceID;return null==t&&(t={}),r("/db/course_instance/".concat(n,"/peer-projects"),t)},getSessions:function(e,t){var n,o=e.courseInstanceID;null==t&&(t={});var i=(null===(n=t)||void 0===n?void 0:n.userID)||me.id;return r("/db/course_instance/".concat(o,"/course-level-sessions/").concat(i),t)},getMyCourseInstanceSessions:function(e){var t=e.courseInstanceID,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r("/db/course_instance/".concat(t,"/course-level-sessions/").concat(me.id),n)},fetchByOwner:function(e){return r("/db/course_instance",{data:{ownerID:e}})},fetchByClassroom:function(e){return r("/db/course_instance",{data:{classroomID:e}})},post:function(e,t){return null==t&&(t={}),r("/db/course_instance",_.assign({},t,{method:"POST",json:e}))},removeMember:function(e,t){return null==t&&(t={}),r("/db/course_instance/".concat(e,"/members"),_.assign({},t,{method:"DELETE",json:{userID:t.memberId}}))},update:function(e,t){var n=e.courseInstanceID,o=e.updates;return null==t&&(t={}),r("/db/course_instance/".concat(n),_.assign({},t,{method:"PUT",json:o}))}}}
2,610289:(e,t,n)=>{"use strict";var r=n(86856);e.exports={get:function(e,t){var n=e.courseID;return null==t&&(t={}),r("/db/course/".concat(n),t)},getAll:function(e,t){null==e&&(e={});var n="/db/course";return t&&(n="/"+t+n),r(n,e)},getReleased:function(e){return null==e&&(e={}),null==e.data&&(e.data={}),me.isInternal()?e.data.fetchInternal=!0:(e.data.releasePhase="released",(me.isBetaTester()||me.isStudent()||me.isAdmin())&&(e.data.fetchBeta=!0)),e.data.cacheEdge=!0,r("/db/course",e)},fetchChangeLog:function(e){return null==e&&(e={}),r("/db/course/change-log",e)},getAllClassroomLevels:function(e){return null==e&&(e={}),r("/db/course/".concat(e.courseId,"/get-all-classroom-levels"))},addLevelsForAllClassroomsDryRun:function(e){return null==e&&(e={}),r("/db/course/".concat(e.courseId,"/add-levels-for-all-classrooms"))},addLevelsForAllClasses:function(e){return null==e&&(e={}),r("/db/course/".concat(e.courseId,"/add-levels-for-all-classrooms/yes-really-update-all-classrooms!-this-is-not-a-drill!"))}}},401177:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.updateEvent=t.putInstance=t.putEventMember=t.postEventMember=t.postEvent=t.getInstances=t.getEventsByUser=t.getEvent=t.getAllEvents=t.deleteEventMember=void 0;var r=i(n(86856)),o=i(n(250636));function i(e){return e&&e.__esModule?e:{default:e}}t.getEvent=function(e){return(0,r.default)("/db/event/".concat(e))},t.getAllEvents=function(){return(0,r.default)("/db/events")},t.getEventsByUser=function(e){return(0,r.default)("/db/events?userId=".concat(e))},t.postEvent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(0,r.default)("/db/event",o.default.assign({},{method:"POST",json:e}))},t.updateEvent=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.default)("/db/event/".concat(e),o.default.assign({},{method:"PUT",json:t}))},t.postEventMember=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.default)("/db/event/".concat(e,"/member"),o.default.assign({},{method:"POST",json:t}))},t.putEventMember=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.default)("/db/event/".concat(e,"/member"),o.default.assign({},{method:"PUT",json:t}))},t.deleteEventMember=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.default)("/db/event/".concat(e,"/member"),o.default.assign({},{method:"DELETE",json:t}))},t.getInstances=function(e){return(0,r.default)("/db/event/".concat(e,"/instances"))},t.putInstance=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,r.default)("/db/event.instance/".concat(e),o.default.assign({},{method:"PUT",json:t}))}},475081:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&i.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}
vendor: 4,575 bytes, line 2
2function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function i(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))}}var s=n(86856),c=function(){var e=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s("/db/exam",{method:"POST",json:t}));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),u=function(){var e=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s("/db/exams/".concat(t)));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),l=function(){var e=a(o().mark((function e(t){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s("/db/exams/".concat(t,"/submission-status")));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();e.exports={postExam:c,getExamById:u,getSubmissionsStatus:l}},86856:(e,t,n)=>{"use strict";var r=n(619755),o=n(299498);e.exports=function(e,t){return null==t&&(t={}),t=_.cloneDeep(t),_.isUndefined(t.json)||(null==t.headers&&(t.headers={}),t.headers["content-type"]="application/json",t.body=JSON.stringify(t.json),delete t.json),t.data&&(e=e.split("?")[0]+"?"+r.param(t.data),delete t.data),t.callOz&&(e=o.getProductUrl("OZ",e)),null==t.credentials&&(t.credentials="same-origin"),fetch(e,t).then((function(e){var t=_.string.startsWith(e.headers.get("content-type"),"application/json");return e.status>=400?t?e.json().then((function(t){return Promise.reject(Object.assign({code:e.status},t))})):e.text().then((function(t){return Promise.reject({message:t,code:e.status})})):t?e.json():e.text()}))}},406895:(e,t,n)=>{"use strict";var r=n(86856);e.exports={getDirectory:function(e,t){var n=e.path;return null==t&&(t={}),_.string.endsWith(n,"/")||(n+="/"),r("/file/".concat(n),t).then((function(e){return JSON.parse(e)}))},saveFile:function(e,t){var n=e.url,o=e.filename,i=e.mimetype,a=e.path,s=e.force;return null==t&&(t={}),r("/file",_.assign({},t,{method:"POST",json:{url:n,filename:o,mimetype:i,path:a,force:s}}))}}},694879:(e,t,n)=>{"use strict";e.exports={admin:n(430703),aiJuniorScenarios:n(550745),aiJuniorProjects:n(21293),apcsp:n(284897),analyticsLogEvents:n(527093),aiScenarios:n(415248),aiModels:n(309555),aiProjects:n(935967),campaigns:n(960592),chats:n(881130),clas:n(828383),classrooms:n(218484),concept:n(650193),contact:n(614678),courses:n(610289),courseInstances:n(448735),files:n(406895),levels:n(648687),levelSessions:n(94600),markdown:n(981150),oauth2identity:n(580156),prepaids:n(867576),resourceHubResources:n(943156),skippedContacts:n(495715),standards:n(30793),thangTypes:n(995125),trialRequests:n(987972),userCodeProblems:n(672290),userCredits:n(935288),users:n(760185),apiClients:n(709099),oauth:n(576609),outcomesReports:n(574879),archivedElements:n(206415),backgroundJob:n(690662),lowUsageUsers:n(685140)}},116842:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMyRank=t.getLeaderboardPlayerCount=t.getLeaderboard=t.getCodePointsRankForUser=t.getCodePointsPlayerCount=t.getCodePointsLeaderboard=void 0;var r,o=(r=n(86856))&&r.__esModule?r:{default:r};function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=function(e){var t=Object.fromEntries(Object.entries(e||{}).filter((function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,2);return t[0],void 0!==t[1]})));return new URLSearchParams(t).toString()};t.getLeaderboard=function(e,t){return(0,o.default)("/db/level/".concat(e,"/rankings?").concat(a(t)))},t.getMyRank=function(e,t,n){return(0,o.default)("/db/level/".concat(e,"/rankings/").concat(t,"?").concat(a(n)))},t.getLeaderboardPlayerCount=function(e,t){return(0,o.default)("/db/level/".concat(e,"/rankings-count?").concat(a(t)))},t.getCodePointsLeaderboard=function(e,t){return(0,o.default)("/db/clan/".concat(e||"-","/code-points?").concat(a(t)))},t.getCodePointsRankForUser=function(e,t,n){return(0,o.default)("/db/clan/".concat(e||"-","/code-points/user/").concat(t||me.id,"?").concat(a(n)))},t.getCodePointsPlayerCount=function(e,t){return(0,o.default)("/db/clan/".concat(e||"-","/code-points-member-count?").concat(a(t)))}},94600:(e,t,n)=>{"use strict";var r=n(86856);e.exports={submitToRank:function(e,t){var n=e.session,o=e.courseInstanceId;return r("/queue/scoring",_.merge({},t,{method:"POST",json:{session:n,courseInstanceId:o}}))},getByStudentsAndLevels:function(e,t){var n=e.earliestCreated,o=e.studentIds,i=e.levelOriginals,a=e.project;return r("/db/level.session/-/levels-and-students",_.merge({},t,{method:"POST",json:{earliestCreated:n,studentIds:o,levelOriginals:i,project:a}}))},setKeyValue:function(e,t){var n=e.sessionID,o=e.key,i=e.value;return r("/db/level.session/".concat(n,"/key-value-db/").concat(o),_.merge({},t,{method:"PUT",json:i}))},incrementKeyValue:function(e,t){var n=e.sessionID,o=e.key,i=e.value;return null==i&&(i=1),r("/db/level.session/".concat(n,"/key-value-db/").concat(o,"/increment"),_.merge({},t,{method:"POST",json:i}))},fetchForClassroomMembers:function(e,t){return r("/db/classroom/".concat(e,"/member-sessions"),_.merge({},t,{method:"GET",remove:!1}))},update:function(e,t){return null==t&&(t={}),r("/db/level.session/".concat(e._id),_.assign({},t,{method:"PUT",json:e}))},fetchMySessions:function(e,t){return null==t&&(t={}),r("/db/level/".concat(e,"/my_sessions"),t)},fetchForCampaign:function(e,t){return r("/db/campaign/".concat(e,"/sessions"),t)},fetchCompletedByDate:function(e,t){return null==t&&(t={}),r("/db/level.session/".concat(me.id,"/completed/").concat(e),t)},resetProgressOfUserInCourseInstance:function(e,t,n){return null==n&&(n={}),r("/db/course_instances/".concat(e,"/users/").concat(t,"/reset-progress"),_.merge({},n,{method:"DELETE"}))}}},648687:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(86856),i=n(847429).getInteractive,a=n(4460).getCinematic,s=n(188238).getCutscene;e.exports={getByOriginal:function(e,t){return null==t&&(t={}),o("/db/level/".concat(e,"/version"),_.merge({},t))},getByIdOrSlug:function(e,t){return null==t&&(t={}),o("/db/level/".concat(e),_.merge({},t))},fetchForClassroom:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o("/db/classroom/".concat(e,"/levels"),_.merge({},t))},fetchNextForCourse:function(e,t){var n,r=e.levelOriginalID,i=e.courseInstanceID,a=e.courseID,s=e.sessionID;return null==t&&(t={}),n=i?"/db/course_instance/".concat(i,"/levels/").concat(r,"/sessions/").concat(s,"/next"):"/db/course/".concat(a,"/levels/").concat(r,"/next"),o(n,t)},fetchNextForCampaign:function(e,t){var n=e.campaignSlug,r=e.levelOriginal,i=e.includePractice,a=void 0!==i&&i;null==t&&(t={}),t.data=t.data||{},t.data.includePractice=a;var s="/db/campaign/".concat(n,"/levels/").concat(r,"/next");return o(s,t)},save:function(e,t){return null==t&&(t={}),o("/db/level/".concat(e._id),_.assign({},t,{method:"POST",json:e}))},upsertSession:function(e,t){null==t&&(t={});var n={};t.courseInstanceId&&(n.courseInstance=t.courseInstanceId),t.course&&(n.course=t.course),t.codeLanguage&&(n.codeLanguage=t.codeLanguage);var r="/db/level/".concat(e,"/session");return o(r,{data:n})},fetchIntroContent:function(e){var t=_.flatten(e.map((function(e){return e.get("introContent")}))),n={},o=[];return t.forEach((function(e){if("avatarSelectionScreen"!==e.type)return"interactive"===e.type&&"object"===r(e.contentId)?(Object.values(e.contentId)||[]).forEac
2h((function(e){return o.push(i(e))})):("cinematic"===e.type&&o.push(a(e.contentId)),"interactive"===e.type&&o.push(i(e.contentId)),"cutscene-video"===e.type?o.push(s(e.contentId)):void 0)})),Promise.all(o).then((function(e){return e.forEach((function(e){n[e._id]=e})),n}))},fetchPracticeLevels:function(e){return o("/db/level/".concat(e,"/practice-levels"))},fetchLevelStats:function(e){return o("/db/level/".concat(e,"/stats"))}}},685140:(e,t,n)=>{"use strict";var r=n(86856);e.exports={fetchAll:function(){return r("/db/low-usage-users?withPrepaids=true")},addAction:function(e){var t=e.lowUsageUserId,n=e.action,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r("/db/low-usage-users/".concat(t,"/action"),_.assign({},o,{method:"POST",json:{action:n}}))}}},981150:(e,t,n)=>{"use strict";var r=n(86856);e.exports={getMarkdownFile:function(e,t){return console.log("get markdown file",e),r("/markdown/"+e,t)}}},576609:(e,t,n)=>{"use strict";var r=n(86856);e.exports={post:function(e){return null==e&&(e={}),r("/db/o-auth",_.assign({},{method:"POST",json:e}))},editProvider:function(e,t){return null==t&&(t={}),r("/db/o-auth",_.assign({},t,{method:"PUT",json:e}))},getByName:function(e,t){return null==t&&(t={}),null==t.data&&(t.data={}),t.data.name=e,r("/db/o-auth/name",t)},getAll:function(e){return null==e&&(e={}),r("/db/o-auth",e)}}},580156:(e,t,n)=>{"use strict";var r=n(86856);e.exports={post:function(e){return null==e&&(e={}),r("/db/oauth2identity",_.assign({},{method:"POST",json:e}))},fetchForProviderAndUser:function(e,t){return r("/db/oauth2identity/by-user",{data:{userId:t,provider:e}})}}},574879:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getOutcomesReportStats=void 0;var r,o=(r=n(86856))&&r.__esModule?r:{default:r};t.getOutcomesReportStats=function(e,t,n){var r=n.includeSubOrgs,i=n.country,a=n.startDate,s=n.endDate,c=n.newReport,u="/db/outcomes-reports/".concat(e,"/").concat(t,"/stats?includeSubOrgs=").concat(r||!1);return c&&(u+="&new_report=true"),"administrative-region"===e&&(u+="&country=".concat(i||"US")),a&&(u+="&startDate=".concat(a)),s&&s!==moment(new Date).format("YYYY-MM-DD")&&(u+="&endDate=".concat(s)),(0,o.default)(u)}},326067:(e,t,n)=>{"use strict";var r=n(86856);e.exports={getPaymentGroup:function(e){return r("/db/payments/payment.groups/".concat(e))},getPaymentGroupFromProduct:function(e,t){return r(t?"/db/payments/payment.groups/products/".concat(e,"/?couponId=").concat(t):"/db/payments/payment.groups/products/".concat(e))}}},855012:(e,t,n)=>{"use strict";var r=n(86856);e.exports={createPaymentSession:function(e){return r("/db/payments/payment.sessions",{method:"POST",json:e})}}},811385:(e,t,n)=>{"use strict";var r=n(86856);e.exports={getPodcasts:function(){return r("/db/podcast",{data:{cacheEdge:!0}})},getPodcast:function(e){return r("/db/podcast/".concat(e))},podcastContact:function(e){return r("/db/podcast/contact",{method:"POST",json:e})}}},867576:(e,t,n)=>{"use strict";var r=n(86856);e.exports={url:function(e,t){return t?"/db/prepaid/".concat(e,"/").concat(t):"/db/prepaid/".concat(e)},addJoiner:function(e,t){var n=e.prepaidID,o=e.userID;return null==t&&(t={}),r(this.url(n,"joiners"),_.assign({},t,{method:"POST",json:{userID:o}}))},revokeJoiner:function(e,t){var n=e.prepaidID,o=e.userID;return null==t&&(t={}),r(this.url(n,"joiners"),_.assign({},t,{method:"DELETE",json:{userID:o}}))},setJoinerMaxRedeemers:function(e,t){var n=e.prepaidID,o=e.userID,i=e.maxRedeemers;return null==t&&(t={}),r(this.url(n,"joiners"),_.assign({},t,{method:"PUT",json:{userID:o,maxRedeemers:i}}))},fetchJoiners:function(e,t){var n=e.prepaidID;return null==t&&(t={}),r(this.url(n,"joiners"))},getOwn:function(e){return null==e&&(e={}),null==e.data&&(e.data={}),e.data.creator=me.id,r("/db/prepaid",e)},post:function(e){return null==e&&(e={}),r("/db/prepaid",_.assign({},{method:"POST",json:e}))},getByCreator:function(e,t){return null==t&&(t={}),null==t.data&&(t.data={}),t.data.creator=e,r("/db/prepaid",t)},getByClient:function(e,t){return null==t&&(t={}),null==t.data&&(t.data={}),t.data.client=e,r("/db/prepaid/client",t)},joinByCodes:function(e){return null==e&&(e={}),r("/db/prepaids/-/join-by-codes",_.assign({},{method:"POST",json:e}))},getOrCreateTestLicense:function(e){return null==e&&(e={}),r("/db/prepaids/-/test-student-license",_.assign({},{method:"POST",json:e}))},detailsByCodes:function(e,t){return null==t&&(t={}
2),r("/db/prepaids/".concat(e,"/details"),t)}}},943156:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getResourceHubZendeskResources=t.getResourceHubResources=t.createNewResourceHubResource=void 0;var o,i=(o=n(86856))&&o.__esModule?o:{default:o},a=["name"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.createNewResourceHubResource=function(e){var t=e.name,n=l(e,a),r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/resource_hub_resource",_.assign({},r,{method:"POST",json:c({name:t},n)}))},t.getResourceHubResources=function(){return(0,i.default)("/db/resource_hub_resource")},t.getResourceHubZendeskResources=function(){return(0,i.default)("/db/resource_hub_zendesk_resource")}},495715:(e,t,n)=>{"use strict";var r=n(86856),o=n(299498);e.exports={getAll:function(e){return r("/db/skipped-contact",e).then((function(e){return e.forEach((function(e){e.email=(null!=e.trialRequest?e.trialRequest.properties.email:void 0)||(null!=e.zpContact?e.zpContact.email:void 0),(null!=e.trialRequest?e.trialRequest.created:void 0)?e.dateCreated=new Date(e.trialRequest.created):e.dateCreated=o.objectIdToDate(e._id)})),e}))},put:function(e,t){return r("/db/skipped-contact/".concat(e._id),_.assign({},t,{method:"PUT",json:e}))}}},30793:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.getStandards=t.createNewStandards=void 0;var o,i=(o=n(86856))&&o.__esModule?o:{default:o};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e){if(null==e)throw new TypeError("Cannot destructure "+e)}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(null,arguments)}t.createNewStandards=function(e){var t=l({},(u(e),e)),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,i.default)("/db/standards",_.assign({},n,{method:"POST",json:s({},t)}))},t.getStandards=function(){return(0,i.default)("/db/standards")}},995125:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.getThangTypeOriginal=t.getThang=t.getHeroes=void 0;var r=i(n(86856)),o=i(n(250636));function i(e){return e&&e.__esModule?e:{default:e}}t.getThang=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};if(!e.slug)throw new Error("You must pass a 'slug' property into getThang function");return e.project&&Array.isArray(e.project)&&o.default.assign(t,{project:e.project.join(",")}),(0,r.default)("/db/thang.type/".concat(e.slug),{data:t})},t.getThangTypeOriginal=function(e){if(!e)throw new Error("You must pass an 'original' property into getThangOriginal");return(0,r.default)("/db/thang.type/".concat(e,"/version"))},t.getHeroes=function(e){var t={view:"codecombat-junior"===e.product?"heroes-junior":"heroes"};return e&&e.project&&o.default.assign(t,{project:e.project.join(",")}),(0,r.default)("/db/thang.type",{data:t})}},411871:(e,t,n)=>{"use strict";var r=n(86856);e.exports={postTournament:function(e){return r("/db/tournament",{method:"POST",json:e})},putTournament:function(e){return r("/db/tournament/".concat(e._id),{method:"PUT",json:e})},publishTournament:function(e){return r("/db/tournament/".concat(e.id,"/publish"),{method:"PUT",json:!0})},getTournamentsByMember:function(e){return r("/db/tournaments?memberId=".concat(e))}}},987972:(e,t,n)=>{"use strict";var r=n(86856);e.exports={post:function(e,t){return r("/db/trial.request",_.assign({},t,{method:"POST",json:e}))},getOwn:function(e){return null==e&&(e={}),null==e.data&&(e.data={}),e.data.applicant=me.id,r("/db/trial.request",e)},update:function(e,t){return e._id?r("/db/trial.request/update/".concat(e._id),_.assign({},t,{method:"PUT",json:e})):Promise.reject("Trial request id missing")}}},672290:(e,t,n)=>{"use strict";var r=n(86856);e.exports={getCommon:function(e,t){var n=e.levelSlug,o=e.startDay,i=e.endDay;return null==t&&(t={}),r("/db/user.code.problem/-/common_problems",_.assign({},t,{method:"POST",json:{slug:n,startDay:o,endDay:i}}))}}},935288:(e,t,n)=>{"use strict";var r=n(86856);e.exports={getCredits:function(e){return r("/db/credits/".concat(e))},getStudentCredits:function(e,t){return r("/db/user-credits/".concat(e,"?student=").concat(t))},redeemCredits:function(e){var t=e.operation,n=e.id;return r("/db/user-credits/redeem",{method:"POST",json:{operation:t,id:n}})},updateCreditUid:function(e){var t=e.operation,n=e.uid,o=e.newId;return r("/db/user-credits/update-uid",{method:"PUT",json:{operation:t,uid:n,newId:o}})},addCredits:function(e){var t=e.operation,n=e.credits,o=e.endDate,i=e.userId;return r("/db/user-credits/extra-credits",{method:"POST",json:{operation:t,credits:n,endDate:o,userId:i}})}}},350036:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&i.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 6,165 bytes, line 2
2(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function i(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))}}var s=n(86856),c=function(){var e=a(o().mark((function e(t,n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s("/db/user-exams/".concat(t,"/start"),{method:"POST",json:n}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),u=function(){var e=a(o().mark((function e(t,n){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",s("/db/user-exams/".concat(t,"/submit"),{method:"POST",json:n}));case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),l=function(){var e=a(o().mark((function e(t,n){var r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="/db/user-exams/".concat(t),n&&(r+="?includeArchived=true"),e.abrupt("return",s(r));case 3:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();e.exports={startExam:c,submitExam:u,getUserExam:l}},760185:(e,t,n)=>{"use strict";var r=n(665420);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i=["userID","email"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=n(86856);e.exports={url:function(e,t){return t?"/db/user/".concat(e,"/").concat(t):"/db/user/".concat(e)},getByHandle:function(e,t){return u("/db/user/".concat(e),t)},getByEmail:function(e,t){var n=e.email;return null==t&&(t={}),u("/db/user",_.merge({},t,{data:{email:n}}))},signupWithPassword:function(e,t){var n=e.userID,r=e.name,o=e.email,i=e.password;return null==t&&(t={}),u(this.url(n,"signup-with-password"),_.assign({},t,{method:"POST",credentials:"include",json:{name:r,email:o,password:i}}))},signupWithFacebook:function(e,t){var n=e.userID,o=e.name,i=e.email,a=e.facebookID;return null==t&&(t={}),u(this.url(n,"signup-with-facebook"),_.assign({},t,{method:"POST",credentials:"include",json:{name:o,email:i,facebookID:a,facebookAccessToken:r.facebookHandler.token()}}))},signupWithGPlus:function(e,t){var n=e.userID,o=e.name,i=e.email,a=e.gplusID;return null==t&&(t={}),u(this.url(n,"signup-with-gplus"),_.assign({},t,{method:"POST",credentials:"include",json:{name:o,email:i,gplusID:a,gplusAccessToken:r.gplusHandler.token()}}))},signupWithOAuth2:function(e){var t=e.userID,n=e.email,r=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i);return u(this.url(t,"signup-with-oauth2"),_.assign({},{method:"POST",credentials:"include",json:s({email:n},r)}))},signupFromGoogleClassroom:function(e,t){return null==t&&(t={}),u("/db/user/signup-from-google-classroom",_.assign({},t,{method:"POST",json:e}))},put:function(e,t){return null==t&&(t={}),u(this.url(e._id),_.assign({},t,{method:"PUT",json:e}))},createBillingAgreement:function(e,t){var n=e.userID,r=e.productID;return null==t&&(t={}),u(this.url(n,"paypal/create-billing-agreement"),_.assign({},t,{method:"POST",json:{productID:r}}))},executeBillingAgreement:function(e,t){var n=e.userID,r=e.token;return null==t&&(t={}),u(this.url(n,"paypal/execute-billing-agreement"),_.assign({},t,{method:"POST",json:{token:r}}))},cancelBillingAgreement:function(e,t){var n=e.userID,r=e.billingAgreementID;return null==t&&(t={}),u(this.url(n,"paypal/cancel-billing-agreement"),_.assign({},t,{method:"POST",json:{billingAgreementID:r}}))},getCourseInstances:function(e,t){var n=e.userID,r=e.campaignSlug;return null==t&&(t={}),u(this.url(n,"course-instances"),_.merge({},t,{data:{userID:n,campaignSlug:r}}))},getLevelSessions:function(e,t){var n=e.userID;return null==t&&(t={}),u("/db/user/".concat(n,"/level.sessions"),_.merge({},t))},resetProgress:function(e,t){var n=e.userID;return null==t&&(t={}),u("/db/user/".concat(n,"/reset_progress"),_.assign({},t,{method:"POST"}))},exportData:function(e,t){var n=e.userID;return null==t&&(t={}),u("/db/user/".concat(n,"/export-data"),_.assign({},t,{method:"GET"}))},fetchByIds:function(e){var t=e.fetchByIds,n=e.teachersOnly,r=e.includeTrialRequests;return u("/db/user",{method:"GET",data:{fetchByIds:t,teachersOnly:n,includeTrialRequests:r}})},setCountryGeo:function(e){return null==e&&(e={}),u("/db/user/setUserCountryGeo",_.assign({},e,{method:"PUT"}))},fetchCreatorOfPrepaid:function(e,t){var n=e.prepaidId;return null==t&&(t={}),u("/db/prepaid/".concat(n,"/creator"),_.assign({},t,{method:"GET"}))},extraProvisions:function(e){var t=e.userId;return u("/db/user/".concat(t,"/extra-provisions"),_.assign({},{method:"PUT"}))},grantItems:function(e){var t=e.userId,n=e.items,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u("/db/user/".concat(t,"/grant-items"),_.assign({},r,{method:"POST",json:{items:n}}))},loginArapahoe:function(e,t){return null==t&&(t={}),u("/auth/login-arapahoe",_.assign({},t,{method:"POST",json:e}))},loginLafourche:function(e,t){return null==t&&(t={}),u("/auth/login-lafourche",_.assign({},t,{method:"POST",json:e}))},loginShreve:function(e,t){return null==t&&(t={}),u("/auth/login-shreve",_.assign({},t,{method:"POST",json:e}))},loginHouston:function(e,t){return null==t&&(t={}),u("/auth/login-houston",_.assign({},t,{method:"POST",json:e}))},loginOpenAthens:function(e,t){return null==t&&(t={}),u("/auth/login-open-athens",_.assign({},t,{method:"POST",json:e}))},putUserProducts:function(e,t){return null==t&&(t={}),u("/db/user/products",_.assign({},t,{method:"PUT",json:e}))},getRelatedAccount:function(e){var t=e.userId;return u("/db/user/related-accounts/".concat(t),_.assign({},{method:"GET"}))},verifyRelatedAccount:function(e){var t=e.userAskingToRelateId,n=e.body;return u("/db/user/related-accounts/".concat(t,"/verify"),_.assign({},{method:"PUT",json:n}))},sendVerifyEmail:function(e){return u("/db/user/related-accounts/confirm-email",_.assign({},{method:"POST",json:e}))},getFullNames:function(e,t){return u("/db/user/-/getFullNames",_.assign({},t,{method:"POST",json:e}))},fetchNamesForUser:function(e){return u("/db/user/-/names",{method:"POST",data:{ids:e}})},getUserCredits:function(e){return u("/db/user-credits/".concat(e),_.assign({},{method:"GET"}))},getLowUsageData:function(e,t){return u("/db/users/".concat(e,"/low-usage-data"),t)},fetchClassNamesForUser:function(e){return u("/db/users/classroom-names",{method:"POST",json:{ids:e}})},fetchHeroProgressForUser:function(e){return u("/db/user/".concat(e,"/hero/progress"))},fetchHackstackProgressForUser:function(e){return u("/db/user/".concat(e,"/hackstack/progress"))}}},665420:(e,t,n)=>{"use strict";var r=n(619755),o=n(504015);window.SPRITE_RESOLUTION_FACTOR=3,window.SPRITE_PLACEHOLDER_WIDTH=10;var i=[219,221,80,83],a=function(e){return 8!==e.keyCode||s(e.srcElement||e.target)?(e.ctrlKey||e.metaKey)&&!e.altKey&&Array.from(i).includes(e.ke
2yCode)?(console.debug("Prevented keystroke",key,e),e.preventDefault()):void 0:e.preventDefault()},s=function(e){null==e&&(e=document.activeElement);var t=e.tagName.toLowerCase(),n=null!=e.type?e.type.toLowerCase():void 0;return("textarea"===t||"input"===t&&Array.from(["text","password","file","number","search","url","tel","email","date","month","week","time","datetimelocal"]).includes(n)||["","true"].includes(e.contentEditable))&&!(e.readOnly||e.disabled)};null==window.console&&(window.console={info:function(){},log:function(){},error:function(){},debug:function(){}}),null==console.debug&&(console.debug=console.log);var c={initialize:function(){var e,t=this,o=n(28045).me,i=n(248665),s=n(599919),c=n(246709),u=n(24153),l=n(543081),d=n(676272),p=n(667875),f=n(7288),h=n(773314).Z,m=n(694879),g=n(299498),y=n(482156),v=n(430328),b=n(847657);Vue.config.devtools=!this.isProduction(),Vue.config.ignoredElements=["stream"];var _=n(196363);g.useWebsocket&&(this.wsBus=new v),o.on("change",(function(){return _.commit("me/updateUser",o.changedAttributes())})),_.commit("me/updateUser",o.attributes),_.commit("updateFeatures",features),g.isOzaria&&_.dispatch("layoutChrome/syncSoundToAudioSystem"),this.store=_,this.api=m,this.isIPadApp=null!=("undefined"!=typeof webkit&&null!==webkit?webkit.messageHandlers:void 0)&&-1!==(null!=navigator.userAgent?navigator.userAgent.indexOf("CodeCombat-iPad"):void 0),this.isIPadApp&&r("body").addClass("ipad"),r.browser.msie&&10===parseInt(r.browser.version)&&r("html").addClass("ie10"),this.tracker=new h(_),window.tracker=this.tracker,f.load(o.get("preferredLanguage",!0)).then((function(){return t.tracker.initialize()})).catch((function(e){return console.error("Tracker initialization failed",e)})),o.useSocialSignOn()&&(this.facebookHandler=new u,this.gplusHandler=new l,this.schoologyHandler=new d,this.classlinkHandler=new p),r(document).bind("keydown",a),c.pollAchievements(),o.get("anonymous")||this.checkForNewAchievement(),this.remindPlayerToTakeBreaks(),y.extraProvisions(),window.i18n=e=i.default.createInstance({lng:o.get("preferredLanguage",!0),fallbackLng:f.mapFallbackLanguages(),resources:f,interpolation:{prefix:"__",suffix:"__"}});var w=n(680462);e.use(new w).init({postProcess:["AIPostProcessor"]}),e.services.languageUtils.__proto__.formatLanguageCode=function(e){return e},s.init(e,r,{tName:"t",i18nName:"i18n",handleName:"i18n",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!0,parseDefaultValueFromContent:!0});var S=n(483678),C=n(493232).default();S.sync(_,C),this.router=new b,this.userIsIdle=!1;var k=function(e){return function(){return Backbone.Mediator.publish("application:idle-changed",{idle:t.userIsIdle=e})}};this.idleTracker=new Idle({onAway:k(!0),onAwayBack:k(!1),onHidden:k(!0),onVisible:k(!1),awayTimeout:3e5}),this.idleTracker.start(),this.trackProductVisit(),this.setReferrerTracking()},checkForNewAchievement:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;if(!(t<=0)){var r,o=n(299498);if(!o.isOzaria){r=me.get("lastAchievementChecked")?new Date(me.get("lastAchievementChecked")):me.created();var i=moment.duration(new Date-r).asDays();return i>1?me.checkForNewAchievement().then((function(){return e.checkForNewAchievement(t-1)})):void 0}}},featureMode:{useChina:function(){return api.admin.setFeatureMode("china").then((function(){return document.location.reload()}))},useBrainPop:function(){return api.admin.setFeatureMode("brain-pop").then((function(){return document.location.reload()}))},clear:function(){return api.admin.clearFeatureMode().then((function(){return document.location.reload()}))}},isProduction:function(){return-1===document.location.href.search("https?://localhost")&&-1===document.location.href.search("https?://192.168.")},loadedStaticPage:null!=window.alreadyLoadedView,setHocCampaign:function(e){return n(969278).save("hoc-campaign",e)},getHocCampaign:function(){return n(969278).load("hoc-campaign")},remindPlayerToTakeBreaks:function(){if(me.showChinaRemindToast())return setInterval((function(){return noty({text:"ä½ å·²ç»ç»ä¹ äºä¸ä¸ªå°æ¶äºï¼å»ºè®®ä¼æ¯ä¸ä¼å¿å¦",layout:"topRight",type:"warning",killer:!1,timeout:5e3})}),36e5)},trackProductVisit:function(){var e,t;if(!(null!=window.serverSession?window.serverSession.amActually:void 0)){var r=n(299498),o="visit-".concat(r.isOzaria?"ozaria":"codecombat"),i=null===(e=me.get("activity"))||void 0===e||null===(t=e[o])||void 0===t?void 0:t.last;if(!i||!moment(i).isAfter(moment().subtract(12,"hour")))return me.trackActivity(o)}},setReferrerTracking:function(){if(!(null!=window.serverSession?window.serverSession.amActually:void 0)){var e=n(299498).getQueryVariables(),t=e.utm_source,r=e.utm_medium,o=e.utm_campaign,i={};if(t&&(i.source=t),r&&(i.medium=r),o&&(i.campaign=o),0!==Object.keys(i).length){var a=Object.assign(i,me.get("referrerTrack")||{});return me.set("referrerTrack",a),me.save()}}}};e.exports=c,o.application=c},28045:(e,t,n)=>{"use strict";var r,o=n(619755),i=n(186421).genericFailure,a=n(249449),s=n(969278),c="beenHereBefore",u=n(299498),l=u.getQueryVariable,d=u.isOzaria,p=n(694879);if(d){var f=n(267447);r=f.addLoggerGlobalContext}e.exports.logoutUser=function(e){return null==e&&(e={}),null==e.error&&(e.error=i),me.logout(e)}
2,e.exports.sendRecoveryEmail=function(e,t){return null==t&&(t={}),t=_.merge(t,{method:"POST",url:"/auth/reset",data:{email:e}}),o.ajax(t)},Backbone.Mediator.subscribe("level:set-volume",(function(e){if(e.volume!==me.get("volume"))return me.set("volume",e.volume),me.save()}),e.exports);var h=function(){if(me&&"united-states"===me.get("country")&&null==me.get("testGroupNumberUS"))return me.set("testGroupNumberUS",Math.floor(256*Math.random())),me.patch()};!function(){var t;e.exports.me=window.me=new a(window.userObject),e.exports.me.onLoaded(),function(){if(!s.load(c))null!=window.tracker&&window.tracker.trackEvent("First Arrived"),s.save(c,!0)}(),d&&r("userId",window.me.get("_id")),me.get("country")&&null!==(t=me.get("geo"))&&void 0!==t&&t.timeZone||p.users.setCountryGeo().then((function(e){return me.set(e),h()})).catch((function(e){return console.error("Error in setting country and geo:",e)})),me&&null==me.get("testGroupNumber")&&(me.set("testGroupNumber",Math.floor(256*Math.random())),me.patch()),h();var n=l("preferredLanguage");me&&n&&(me.set("preferredLanguage",n),me.save()),Backbone.listenTo(me,"sync",(function(){return Backbone.Mediator.publish("auth:me-synced",{me})}))}()},129612:e=>{"use strict";e.exports={black:"#000000",grey:"#d9d9d9",lightGold:"#e6c200",red:"#ff0000",tan:"#AF9F7D",gold:"#EBD689",yellow:"#FFD702",jayBlue:"#5082C8",lightBlue:"#ADD8E6",infernoRed:"#ff503c",sparkySilver:"#c1c1c1",seaGreen:"#2d9151",lightGreen:"#90EE90",darkGreen:"#006400",mysticViolet:"#AD62F8",green:"#00ff00",blue:"#0000ff",leafGreen:"#4FCA52",skyBlue:"#45AAFF",lavender:"#D8B4FE",deepPurple:"#7B1FA2",hexToRgb:function(e){return 3===(e=e.replace(/^#/,"")).length&&(e=e.split("").map((function(e){return e+e})).join("")),[0,2,4].map((function(t){return parseInt(e.slice(t,t+2),16)}))},rgbToHex:function(e){return"#"+e.map((function(e){return Math.round(e).toString(16).padStart(2,"0")})).join("")}}},64241:(e,t,n)=>{"use strict";function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var i=n(299498),a=["65f32b6c87c07dbeb5ba1936","560f1a9f22961295f9427742","5632661322961295f9428638","5789587aad86a6efb573701e","5789587aad86a6efb573701f"],s=["5d41d731a8d1836b5aa3cba1","5d8a57abe8919b28d5113af1","5e27600d1c9d440000ac3ee7","5f0cb0b7a2492bba0b3520df"],c={"Coding License(JR, CC, OZ)":[].concat(r(i.JUNIOR_COURSE_IDS),r(i.COCO_COURSE_IDS),s),"CodeCombat(CS, WD, GD, JR)":[].concat(r(i.COCO_COURSE_IDS),r(i.JUNIOR_COURSE_IDS)),Ozaria:s,"CS1+CS2+GD1+WD1":a,"CS1+GD1+WD1+JR":["560f1a9f22961295f9427742","5789587aad86a6efb573701e","5789587aad86a6efb573701f"].concat(r(i.JUNIOR_COURSE_IDS)),"CS1+CS2+CS3+CS4":["560f1a9f22961295f9427742","5632661322961295f9428638","56462f935afde0c6fd30fc8c","56462f935afde0c6fd30fc8d"],"CS1+CS2+CS3+CS4+CS5+CS6":["560f1a9f22961295f9427742","5632661322961295f9428638","56462f935afde0c6fd30fc8c","56462f935afde0c6fd30fc8d","569ed916efa72b0ced971447","5817d673e85d1220db624ca4"],"CS1+CS2+GD1+GD2+WD1+WD2":["560f1a9f22961295f9427742","5632661322961295f9428638","5789587aad86a6efb573701e","57b621e7ad86a6efb5737e64","5789587aad86a6efb573701f","5789587aad86a6efb5737020"],"CS1+CS2+GD1+GD2":["560f1a9f22961295f9427742","5632661322961295f9428638","5789587aad86a6efb573701e","57b621e7ad86a6efb5737e64"]};e.exports={STARTER_LICENSE_COURSE_IDS:a,FREE_COURSE_IDS:["65f32b6c87c07dbeb5ba1936","560f1a9f22961295f9427742"],MAX_STARTER_LICENSES:75,STARTER_LICENCE_LENGTH_MONTHS:3,COCO_CHINA_CONST:{CONTACT_PHONE:"13810906731",CONTACT_EMAIL:"china@co
2decombat.com"},HTTP_STATUS_CODES:{PAYMENT_REQUIRED_CODE:402},LICENSE_PRESETS:c,ESPORTS_PRODUCT_STATS:{TOURNAMENTS:{BASIC:1,PRO:3,MIN:0},TEAMS:{BASIC:1,PRO:5,MIN:0,MAX:10}},HTML5_FMT_DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",HTML5_FMT_DATE_LOCAL:"YYYY-MM-DD",HTML5_FMT_TIME_LOCAL:"hh:mm A",LEADERBOARDNAME:{FULLNAME:"fullName",ANONYMOUS:"anonymous",NAME:"name"},ANNOUNCEMENT_LIMIT:11,CODE_FORMAT_ALL:["text-code","blocks-and-code","blocks-text","blocks-icons"],CODE_FORMAT_BLOCKS:["blocks-and-code","blocks-text","blocks-icons"],CODE_FORMAT_IPAD:["blocks-text","blocks-icons"],CODE_FORMAT_TEXT:["text-code","blocks-and-code"],JUNIOR_LANGUAGES:["python","javascript"],ARENA_CURRICULUM:{equinox:"https://drive.google.com/drive/folders/16lYF5Bt_WupEUv9rNfTN_byL8DSJK3iX?usp=drive_link","tundra-tower":"https://drive.google.com/drive/folders/1xhl8oMNLU5gwuEChg1wCair2VKK-A3ln?usp=drive_link",sandstorm:"https://drive.google.com/drive/folders/1gXBG1tpuAhYkJKX5GvvHZHX48duPnZ7O?usp=drive_link"},USER_CREDIT_HACKSTACK_KEY:"HACKSTACK_QUERY",GLOBAL_AI_LEAGUE_CREATORS:["512ef4805a67a8c507000001","63e0d3551e18c6002505057c"],BD_LEAD_FORM:"https://docs.google.com/forms/d/18uhgIyMhYWGAHx265gkmP5tBW31sIPYHO05Sqb5aRrY",AI_LEAGUE_LEAD_FORM:"https://docs.google.com/forms/d/1rO__VvhM1yCuUHrtHJKXXj3RYA2vCzpRKzMCMaMS6SE"}},746516:(e,t,n)=>{"use strict";var r=n(619755);e.exports={sendContactMessage:function(e,t){null!=t&&t.find(".sending-indicator").show();var n=r.post("/contact",e,(function(e){if(t)return t.find(".sending-indicator").hide(),t.find("#contact-message").val("Thanks!"),_.delay((function(){return t.find("#contact-message").val(""),t.modal("hide")}),1e3)}));return n.fail((function(){if(t)return 500===n.status?t.find(".sending-indicator").text(r.i18n.t("loading_error.server_error")):void 0})),n},send:function(e){return null==e&&(e={}),e.type="POST",e.url="/contact",r.ajax(e)},sendParentSignupInstructions:function(e){var t=r.ajax("/contact/send-parent-signup-instructions",{method:"POST",data:{parentEmail:e}});return new Promise(t.then)},sendTeacherSignupInstructions:function(e,t){var n=r.ajax("/contact/send-teacher-signup-instructions",{method:"POST",data:{teacherEmail:e,studentName:t}});return new Promise(n.then)},sendAPCSPContactMail:function(e){var t=e.email,n=e.name,o=e.role,i=e.location,a=e.message,s=r.ajax("/contact/apcsp",{method:"POST",data:{email:t,name:n,role:o,location:i,message:a}});return new Promise(s.then)},sendGrantsContactMail:function(e){var t=e.title,n=e.name,o=e.fields,i=r.ajax("/contact/grants",{method:"POST",data:{title:t,name:n,fields:o}});return new Promise(i.then)},sendTeacherGameDevProjectShare:function(e){var t=e.teacherEmail,n=e.sessionId,o=e.codeLanguage,i=e.levelName,a=r.ajax("/contact/send-teacher-game-dev-project-share",{method:"POST",data:{teacherEmail:t,sessionId:n,levelName:i,codeLanguage:_.string.titleize(o).replace("script","Script")}});return new Promise(a.then)},sendSlackMessage:function(e){try{null==e.name&&(e.name="undefined"!=typeof me&&null!==me?me.broadName():void 0),null==e.email&&(e.email="undefined"!=typeof me&&null!==me?me.get("email"):void 0)}catch(t){e.lookupError=t}var t=r.ajax({type:"POST",url:"/contact/slacklog",data:e});return new Promise(t.then)}}},186421:(e,t,n)=>{"use strict";var r,o=n(619755),i=n(698874),a=n(439980).applyErrorsToForm;e.exports.parseServerError=function(e){var t;try{t=JSON.parse(e)||{message:"Unknown error."}}catch(n){t={message:e||"Unknown error."}}return _.isArray(t)&&(t=t[0]),t},e.exports.genericFailure=function(t){if(Backbone.Mediator.publish("errors:server-error",{response:t}),!t.status)return r();var n=e.exports.parseServerError(t.responseText),c=n.message;n.property&&(c=n.property+" "+c),console.warn(t.status,t.statusText,n);var u=o(".form:visible:first");if(u[0]){var l=a(u,[n]);return function(){for(var e=[],t=0,r=Array.from(l);t<r.length;t++)n=r[t],e.push(u.append(o('<div class="alert alert-danger"></div>').text(n.message)));return e}()}var d=i({status:t.status,statusText:t.statusText,message:c});return s(d)},e.exports.backboneFailure=function(t,n,r){return e.exports.genericFailure(n)},e.exports.connectionFailure=r=function(){var e=i({status:0,statusText:"Connection Gone",message:"No response from the CoCo servers, captain."});return s(e)},e.exports.showNotyNetworkError=function(){var e=_.find(arguments,"promise");return noty({text:(null!=e.responseJSON?e.responseJSON.message:void 0)||(null!=e.responseJSON?e.responseJSON.errorName:void 0)||"Unknown error",layout:"topCenter",type:"error",timeout:5e3,killer:!1,dismissQueue:!0})};var s=function(e){return o("#modal-wrapper").html(e),o(".modal:visible").modal("hide"),o("#modal-error").modal("show")},c=!1;e.exports.onWorkerError=function(){if(!c&&o.browser.msie&&11===o.browser.versionNumber)return c=!0,setTimeout((function(){return document.location.reload()}),5e3),noty({text:"Explorer failure. Reloading...",layout:"topCenter",type:"error"})}},439980:(e,t,n)=>{"use strict";var r,o,i=n(619755),a=n(99018);e.exports.formToObject=function(e,t){t=_.extend({trim:!0,ignoreEmptyString:!0},t);for(var n={},r=i("input, textarea, select",e),o=0,a=Array.from(r);o<a.length;o++){var s,c=a[o];if(s=(c=i(c)).attr("name"))if("checkbox"===c.attr("type"))null==n[s]&&(n[s]=[]),c.is(":checked")&&n[s].push(c.val());else if("radio"===c.attr("type")){if(!c.is(":checked"))continue;n[s]=c.val()}else{var u=c.val()||"";t.trim&&(u=_.string.trim(u)),!u&&t.ignoreEmptyString||(n[s]=u)}}return n},e.exports.objectToForm=function(e,t,n){null==n&&(n={}),n=_.extend({overwriteExisting:!1},n);var r=i("input, textarea, select",e);return function(){for(var e=[],o=0,a=Array.from(r);o<a.length;o++){var s,c=a[o],u=void 0;(s=(c=i(c)).attr("name"))&&null!=t[s]&&("checkbox"===c.attr("type")?(u=c.val(),_.contains(t[s],u)?e.push(c.attr("checked",!0)):e.push(void 0)):"radio"===c.attr("type")?(u=c.val(),t[s]===u?e.push(c.attr("checked",!0)):e.push(void 0)):n.overwriteExisting||!c.val()?e.push(c.val(t[s])):e.push(void 0))}return e}()},e.exports.applyErrorsToForm=function(e,t,n){null==n&&(n=!1),i.isArray(t)||(t=[t]);for(var r=[],s=0,c=Array.from(t);s<c.length;s++){var u=c[s],l=void 0,d=void 0;if(u.code===a.errorCodes.OBJECT_REQUIRED?(d=_.last(_.string.words(u.message)),l=i.i18n.t("common.required_field")):u.dataPath?(d=u.dataPath.slice(1),l=u.message):(l=(l="".concat(u.property," ").concat(u.message,"."))[0].toUpperCase()+l.slice(1),u.formatted&&(l=u.message),d=u.property),u.code===a.errorCodes.FORMAT_CUSTOM){var p=/Format validation failed \(([^\(\)]+)\)/.exec(l)[1];_.isEmpty(p)||(l=p)}409===u.code&&"email"===u.property&&(l+=' <a class="login-link">Log in?</a>'),o(e,d,l,n)||r.push(u)}return r},e.exports.setErrorToField=r=function(e,t,n){null==n&&(n=!1);var r=e.closest(".form-group");if(!r.length)return console.error(e," did not contain a form group, so couldn't show message:",t);var o=n?"warning":"error",a=i(r.find(".help-block, .form-control, input, select, textarea, .control-label")[0]);r.addClass("has-".concat(o));var s=i("<span class='help-block ".concat(o,"-help-block'>").concat(t,"</span>"));return a.length?a.before(s):r.append(s)},e.exports.setErrorToProperty=o=function(e,t,n,o){null==o&&(o=!1);var a=i("[name='".concat(t,"']"),e);return a.length?r(a,n,o):console.error("".concat(t," not found in"),e,"so couldn't show message:",n)},e.exports.scrollToFirstError=function(e){null==e&&(e=i("body"));var t=e.find(".has-error, .alert-danger, .error-help-block, .has-warning, .alert-warning, .warning-help-block").filter(":visible").first();if(t.length)return i("html, body").animate({scrollTop:t.offset().top-20},300)},e.exports.clearFormAlerts=function(e){return i(".has-error",e).removeClass("has-error"),i(".has-warning",e).removeClass("has-warning"),i(".alert.alert-danger",e).remove(),i(".alert.alert-warning",e).remove(),e.find(".help-block.error-help-block").remove(),e.find(".help-block.warning-help-block").remove()},e.exports.updateSelects=function(e){return e.find("select").each((function(e,t){var n=i(t).attr("value");return i(t).val(n)}))},e.exports.validateEmail=function(e){return!e||/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,63}$/i.test(e)},e.exports.validatePhoneNumber=function(e){return/^\D*(\d\D*){10,}$/i.test(e)},e.exports.disableSubmit=function(e,t){null==t&&(t="...");var n=i(e);return n.data("original-text",n.text()),n.text(t).attr("disabled",!0)},e.exports.enableSubmit=function(e){var t=i(e);return t.text(t.data("original-text")).attr("disabled",!1)}},504015:e=>{"use strict";e.exports={currentView:null,application:{}}},782628:e=>{"use strict";function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}e.exports={$themePath:function(e){var n,r=document.body,o=/(\w+)-theme/,i=(n=r.classList,function(e){if(Array.isArray(e))return t(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).find((function(e){return o.test(e)}));
vendor: 4,327 bytes, line 2
2if(i){var a=i.match(o)[1];if("blue"===a)return e;var s=e.split(".");s[s.length-2]+="__".concat(a),e=s.join(".")}return e}}},426764:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(){a=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==i(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(i(t)+" is not iterable")}return b.prototype=_,o(k,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}Backbone.Mediator.setValidationEnabled(!1);var c=null,u=n(299498),l=n(7288).installVueI18n,d=n(267447).log,p=n(504015),f=n(578345),h=n(420629),m=n(313034),g=n(2246),y=n(679278).VueMaskDirective,v=n(857879),b=(n(748735).datadogRum,n(782628).$themePath);Vue.prototype.$themePath=b,Vue.use(f.default),Vue.use(h.default),Vue.use(m.default),Vue.use(g),Vue.filter("moment",(function(e,t){return null==e||""===e?"":window.moment(e).format(t)})),Vue.prototype.$moment=window.moment,Vue.use(u.vueNonReactiveInstall),u.isOzaria&&(Vue.use(v),Vue.directive("mask",y));var w={auth:n(770858),bus:n(30894),editor:n(761149),errors:n(242156),ipad:n(767558),misc:n(823800),play:n(449564),surface:n(211872),tome:n(574315),god:n(802107),scripts:n(285962),"web-dev":n(326057),websocket:n(651705),world:n(707028)},S={bus:n(57483),misc:n(61655)},C=function e(){if(!c){if(!(null!=window.userObject?window.userObject._id:void 0)){var t={cache:!1};return t.data=_.pick(u.getQueryVariables(),"preferredLanguage"),void o.ajax("/auth/whoami",t).then((function(t){return window.userObject=t,e()}))}marked.setOptions({gfm:!0,sanitize:!0,smartLists:!0,breaks:!1}),c=n(665420),T(),A(),P();var r=document.location.pathname;return c.testing=_.string.startsWith(r,"/test"),c.demoing=_.string.startsWith(r,"/demo"),x(c),c.initialize(),c.isProduction()||I(),u.isCodeCombat&&o("head").prepend('<link rel="stylesheet" type="text/css" href="/fonts/vt323.css">'),Backbone.history.start({pushState:!0}),k(),E(),O(),l(),u.isOzaria&&(N(),L()),(me.isAdmin()||!c.isProduction()||("undefined"!=typeof serverSession&&null!==serverSession?serverSession.amActually:void 0)||("undefined"!=typeof serverSession&&null!==serverSession?serverSession.switchingUserActualId:void 0))&&(window.globalVar=p),self!==parent?parent.globalVar=p:void 0}};e.exports.init=C;var k=function(){return o(document).on("click","a[href^='/']",(function(e){var t=o(e.currentTarget).attr("href"),n=o(e.currentTarget).attr("target");if(!(t.indexOf("sign_out")>=0||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||"_blank"===n)){e.preventDefault();var r=t.replace(/^\//,"").replace("#!/","");return c.router.navigate(r,{trigger:!0}),!1}}))},x=function(e){var t;for(var n in S)t=S[n],Backbone.Mediator.addDefSchemas(t);for(var r in w)t=w[r],Backbone.Mediator.addChannelSchemas(t);if(Backbone.Mediator.setValidationEnabled(!e.isProduction()),"localhost"===window.location.hostname){if("1"===(null!=window.sessionStorage?window.sessionStorage.getItem("COCO_DEBUG_LOGGING"):void 0)){var o=new RegExp("tick|mouse-moved|mouse-over|mouse-out|hover-line|check-away|new-thang-ad
2ded|zoom-updated|away-back"),i=new RegExp("eval|debounce|defer|delay|Backbone|Idle"),a=Backbone.Mediator.publish;return Backbone.Mediator.publish=function(){if(!o.test(arguments[0]))try{for(var e=(new Error).stack.split("\n").slice(1),t=5,n=0;n<e.length;n++){var r=e[n];if(n>t)break;var s=r.trim().replace(/at\ |prototype|module|exports/gi,"").replace("..","");if(s=s.split("(webpack-internal")[0],!i.test(s)){var c;(c=console).log.apply(c,[">>> ".concat(s,"->")].concat(Array.prototype.slice.call(arguments)));break}}}catch(e){var u;(u=console).log.apply(u,[">>> ? -> "].concat(Array.prototype.slice.call(arguments)))}return a.apply(Backbone.Mediator,arguments)}}return console.log("Not logging Backbone events. Turn on by typing this in your browser console: window.sessionStorage.setItem('COCO_DEBUG_LOGGING', 1)")}},E=function(){var e=n(28045).me,t=function(){var e,t=(e=a().mark((function e(){var t,r,o=arguments;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=o.length>0&&void 0!==o[0]?o[0]:"en",!(t={"zh-hans":"zh-cn","zh-hant":"zh-tw"}[t=String(t||"en").toLowerCase()]||t).startsWith("en")){e.next=5;break}return e.abrupt("return",window.moment.locale("en"));case 5:return e.prev=5,e.next=8,n(934437)("./".concat(t,".js"));case 8:return e.abrupt("return",window.moment.locale(t));case 11:if(e.prev=11,e.t0=e.catch(5),!(r=t.split("-")[0])||r===t){e.next=23;break}return e.prev=15,e.next=18,n(934437)("./".concat(r,".js"));case 18:return e.abrupt("return",window.moment.locale(r));case 21:e.prev=21,e.t1=e.catch(15);case 23:return console.warn("laoding lang error: ",t),e.abrupt("return",window.moment.locale("en"));case 25:case"end":return e.stop()}}),e,null,[[5,11],[15,21]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();t(e.get("preferredLanguage",!0)),e.on("change:preferredLanguage",(function(e){return t(e.get("preferredLanguage",!0))}))},O=function(){var e=n(439980);return tv4.addFormat({email:function(t){return e.validateEmail(t)?null:{code:tv4.errorCodes.FORMAT_CUSTOM,message:o.t("form_validation_errors.requireValidEmail")}},phoneNumber:function(t){return e.validatePhoneNumber(t)?null:{code:tv4.errorCodes.FORMAT_CUSTOM,message:o.t("form_validation_errors.requireValidPhone")}}})},T=function(){if("undefined"!=typeof console&&null!==console||(window.console={info:function(){},log:function(){},error:function(){},debug:function(){}}),!console.debug)return console.debug=console.log},A=function(){var e=0,t=window.onerror,n=function(t){if(!(e>=3)&&(!c.isProduction()||me.isAdmin())&&(me.isAdmin()||-1===document.location.href.search(/codecombat.com/)||-1!==document.location.href.search(/\/editor\//)))return++e,("undefined"!=typeof webkit&&null!==webkit?webkit.messageHandlers:void 0)?void 0:noty({text:t,layout:"topCenter",type:"error",killer:!1,timeout:5e3,dismissQueue:!0,maxVisible:3,callback:{onClose:function(){return--e}}})};return window.onerror=function(e,r,o,i,a){t&&t.apply(window,arguments);var s="Error: ".concat(e,"<br>Check the JS console for more.");return n(s),Backbone.Mediator.publish("application:error",{message:"Line ".concat(o," of ").concat(r,":\n").concat(e)})},window.addEventListener("unhandledrejection",(function(e){if(e.promise)return e.promise.catch((function(e){var t="".concat(e.message,"<br>Check the JS console for more.");return n(t)}));var t="".concat(e.message||e,"<br>Check the JS console for more.");return n(t)}))};window.addIPadSubscription=function(e){return window.iPadSubscriptions[e]=!0},window.removeIPadSubscription=function(e){return window.iPadSubscriptions[e]=!1};var P=function(){if("undefined"!=typeof webkit&&null!==webkit?webkit.messageHandlers:void 0)return["debug","log","info","warn","error"].map((function(e){return function(e){var t=console[e];return console[e]=function(){var n=arguments;t.apply(console,arguments);try{var r;return R(R("undefined"!=typeof webkit&&null!==webkit?webkit.messageHandlers:void 0,(function(e){return e.consoleLogHandler})),(function(t){return t.postMessage({level:e,arguments:Array.from(n).map((function(e){return null!=(r=D(e,"toString",(function(e){return e.toString()})))?r:""+e}))})}))}catch(t){return R(R("undefined"!=typeof webkit&&null!==webkit?webkit.messageHandlers:void 0,(function(e){return e.consoleLogHandler})),(function(n){return n.postMessage({level:e,arguments:["could not post log: "+t]})}))}}}(e)}))},I=function(){if(o("head").prepend('<link rel="stylesheet" type="text/css" href="/fonts/openSansCondensed.css">'),o("head").prepend('<link rel="stylesheet" type="text/css" href="/fonts/openSans.css">'),u.isOzaria)return o("head").prepend('<link rel="stylesheet" type="text/css" href="/fonts/workSans.css">'),o("head").prepend('<link rel="stylesheet" type="text/css" href="/fonts/spaceMono.css">')},j=null;
2window.serializeForIOS=r=function(e,t){if(null==t&&(t=3),!t)return{};var n=null==j;null==j&&(j=[]);for(var o={},i=0,a=0,s=Object.keys(e||{});a<s.length;a++){var c=s[a],u=e[c];++i>50||(u?u===window||u.firstElementChild||u.preventDefault||Array.from(j).includes(u)||(_.isArray(u)?(o[c]=Array.from(u).map((function(e){return r(e,t-1)})),j.push(u)):_.isObject(u)?(u.id&&u.attributes&&(u=u.attributes),o[c]=r(u,t-1),j.push(u)):o[c]=u):o[c]=u)}return n&&(j=null),o};var L=function(){if(null!=window.sessionStorage?window.sessionStorage.getItem("hoc_progress_modal_time"):void 0)return u.registerHocProgressModalCheck()},N=function(){if(null!=window.sessionStorage?window.sessionStorage.getItem("oz_crashed"):void 0)return d("Browser crashed",{},"error"),null!=window.sessionStorage?window.sessionStorage.removeItem("oz_crashed"):void 0};function R(e,t){return null!=e?t(e):void 0}function D(e,t,n){return null!=e&&"function"==typeof e[t]?n(e,t):void 0}window.onbeforeunload=function(e){u.isOzaria&&null!=window.sessionStorage&&window.sessionStorage.setItem("oz_exit","true");var t=_.result(p.currentView,"onLeaveMessage");if(t)return t},u.isOzaria&&(window.onload=function(){if(window.sessionStorage)return window.sessionStorage.getItem("oz_exit")&&"true"!==window.sessionStorage.getItem("oz_exit")&&window.sessionStorage.setItem("oz_crashed","true"),window.sessionStorage.setItem("oz_exit","pending")}),o((function(){return C()}))},209996:(e,t,n)=>{"use strict";var r=n(523402);e.exports={buildLevelsListByModule:function(e,t){var n;null==t&&(t=!1);var o={};if(t&&e.find((function(e){return e.isCapstone()}))){var i=e.find((function(e){return e.isCapstone()})).get("original");if(i){var a=e.find((function(e){var t=Object.values(e.get("nextLevels")||{})[0]||{};return t.original===i&&10===t.nextLevelStage}));n=null!=a?a.get("original"):void 0}}var s={};return e.forEach((function(e){var i=e.get("moduleNum")||1;return t&&e.isCapstone()?s=new r(e.attributes):(null==o[i]&&(o[i]=[]),o[i].push(e),t&&n&&e.get("original")===n?o[i].push(s):void 0)})),o}}},417185:(e,t,n)=>{"use strict";n(874313),n(543270);var r=algoliasearch("JJM5H2CHJR","a9cca9403c5f27b89011de2872938b69");e.exports={client:r,schoolsIndex:r.initIndex("schools")}},13575:(e,t,n)=>{"use strict";var r=n(619755),o=n(665420),i=_.once((function(){return new Promise((function(e,t){return r.getScript("https://www.paypalobjects.com/api/checkout.js",(function(){return e()}))}))})),a=["en_US","en_AU","en_GB","fr_CA","es_ES","it_IT","fr_FR","de_DE","pt_BR","zh_CN","da_DK","zh_HK","id_ID","he_IL","ja_JP","nl_NL","no_NO","pl_PL","pt_PT","ru_RU","sv_SE","th_TH","zh_TW"];e.exports={loadPayPal:i,makeButton:function(e){var t,n=e.buttonContainerID,r=e.product,i=e.onPaymentStarted,s=e.onPaymentComplete,c=e.description;return"undefined"!=typeof paypal&&null!==paypal?paypal.Button.render(_.assign({env:o.isProduction()?"production":"sandbox",locale:(t=(me.get("preferredLanguage")||"en-US").replace("-","_"),Array.from(a).includes(t)?t:"en_US"),style:{size:"responsive",shape:"rect"},client:{sandbox:"AcS4lYmr_NwK_TTWSJzOzTh01tVDceWDjB_N7df3vlvW4alTV_AF2rtmcaZDh0AmnTcOof9gKyLyHkm-",production:"AXP_Bf0KAz8_HV0X6EFSu9cMAXcb7AoaRAYqrfPKBxnl5zTWEt5JzMTMJdXiCjK29AFlp_zAdP4zefRD"},commit:!0,payment:function(e,t){i();var n={payment:{transactions:[{amount:{total:r.adjustedPriceStringNoSymbol(),currency:"USD"},item_list:{items:[{sku:r.id,name:r.translateName(),quantity:1,price:r.adjustedPriceStringNoSymbol(),currency:"USD"}]},description:c}]}};return t.payment.create(n)},onAuthorize:function(e,t){return t.payment.get().then((function(e){return s(e)}))}},e.payPalOptions),n):void 0}}},926558:(e,t,n)=>{"use strict";var r=n(665420).isProduction()?"pk_live_27jQZozjDGN1HSUTnSuM578g":"pk_test_zG5UwVu6Ww8YhtE9ZYh0JO6a";if(me.isAnonymous())e.exports={open:_.noop,openAsync:_.noop},_.extend(e.exports,Backbone.Events),e.exports.makeNewInstance=_.clone(e.exports);else if("undefined"==typeof StripeCheckout||null===StripeCheckout)e.exports={},console.log("Failure loading StripeCheckout API, returning empty object.");else{var o=function(){var e=StripeCheckout.configure({key:r,name:"CodeCombat",email:me.get("email"),image:"https://codecombat.com/images/pages/base/logo_square_250.png",token:function(t){return e.trigger("received-token",{token:t}
2),Backbone.Mediator.publish("stripe:received-token",{token:t})},locale:"auto",zipCode:!0});return e.id=_.uniqueId(),e.openAsync=function(t){var n=new Promise((function(t,n){return e.once("received-token",t)}));return e.open(t),n},_.extend(e,Backbone.Events),e};e.exports=o(),e.exports.makeNewInstance=o}},692265:e=>{"use strict";e.exports=function(){return t="script",n="twitter-wjs",o=(e=document).getElementsByTagName(t)[0],i=/^http:/.test(e.location)?"http":"https",void(e.getElementById(n)||((r=e.createElement(t)).id=n,r.src=i+"://platform.twitter.com/widgets.js",o.parentNode.insertBefore(r,o)));var e,t,n,r,o,i}},570819:e=>{"use strict";var t=_.once((function(){return new Promise((function(e,t){var n=document.createElement("script");n.id="ze-snippet",n.type="text/javascript",n.async=!0,n.onerror=function(e){return console.error("Zendesk failed to initialize:",e),t(new Error("Zendesk failed to initialize"))},n.onload=function(){return zE("webWidget","hide"),zE("webWidget:on","userEvent",(function(e){if("Contact Form Shown"===e.action)return zE("webWidget","open")})),zE("webWidget:on","close",(function(){return zE("webWidget","hide")})),zE("webWidget","updateSettings",{webWidget:{offset:{horizontal:"100px",vertical:"20px"}}}),e()},n.src="https://static.zdassets.com/ekr/snippet.js?key=ed461a46-91a6-430a-a09c-73c364e02ffe";var r=document.getElementsByTagName("script")[0];return r.parentNode.insertBefore(n,r)}))}));e.exports={loadZendesk:t,openZendesk:function(){var e={};me.get("email")&&(e.email={value:me.get("email")}),me.get("firstName")&&(e.name={value:me.broadName()});try{_.size(e)&&zE("webWidget","prefill",e),zE("webWidget","open"),zE("webWidget","show")}catch(e){return console.error("Error trying to open Zendesk widget: ",e),!1}return!0}}},667875:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return t=a(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}
vendor: 5,363 bytes, line 2
2function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var c=n(755818);e.exports=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,t,["classlink"])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(c)},905343:e=>{"use strict";e.exports={logInWithClever:function(){var e,t,n;-1!==["next.ozaria.com","localhost"].indexOf(window.location.hostname)?(e="05e505ed3fa677319057",t="https://next.ozaria.com/auth/login-clever",n="5b2ad81a709e300001e2cd7a"):(e="88a2cfdb5893c16b4c0a",t="https://www.ozaria.com/auth/login-clever");var r="https://clever.com/oauth/authorize?response_type=code&redirect_uri=".concat(encodeURIComponent(t),"&client_id=").concat(e);n&&(r+="&district_id="+n),window.open(r,"_blank")}}},755818:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=["state"];function i(){i=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
vendor: 4,361 bytes, line 2
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function s(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)}))}}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function l(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function d(e,t,n){return t=f(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}
2function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var m=n(727851);e.exports=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=d(this,t)).providerName=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,r=[{key:"logInWithEdlink",value:(l=c(i().mark((function e(){var t,n,r,s;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=crypto.getRandomValues(new Uint32Array(1))[0].toString(36),n="/auth/oauth2/".concat(this.providerName,"?state=").concat(t),window.open(n,"_blank","width=800,height=600",!1)){e.next=6;break}return noty({text:"Please allow popups for this site",type:"error",timeout:5e3,layout:"topCenter"}),e.abrupt("return");case 6:return r=null,s="".concat(this.providerName,"ConnectionTrackingKey"),e.abrupt("return",new Promise((function(e,n){var i=function i(c){if(c.key===s){var u=localStorage.getItem(s),l=JSON.parse(u);if(l.state===t){localStorage.removeItem(s),window.removeEventListener("storage",i),r&&clearTimeout(r),l.state;var d=a(l,o);e(d)}else window.removeEventListener("storage",i),r&&clearTimeout(r),n(new Error("State mismatch: ".concat(l.state," !== ").concat(t)))}};try{window.addEventListener("storage",i),r=setTimeout((function(){window.removeEventListener("storage",i),noty({text:"Login timeout",type:"error",timeout:5e3,layout:"topCenter"}),n(new Error("Login timeout"))}),9e4)}catch(e){n(e)}})));case 9:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"connect",value:(s=c(i().mark((function e(t){var n;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.trigger("connect"),e.next=3,this.logInWithEdlink();case 3:if(!(n=e.sent).loggedIn){e.next=7;break}return window.location.reload(),e.abrupt("return");case 7:if(n.email){e.next=9;break}throw new Error("No email found in ".concat(this.providerName," response"));case 9:return this.trigger("connect"),this.result=n,e.abrupt("return",t.success.bind(t.context)(n));case 12:case"end":return e.stop()}}),e,this)}))),function(e){return s.apply(this,arguments)})},{key:"loadPerson",value:function(e){return this.trigger("load-person",e),e.success.bind(e.context)(this.result)}}],r&&u(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s,l}(m)},24153:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=c(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}
2var l,d=n(727851),p=n(28045).me,f={first_name:"firstName",last_name:"lastName",gender:"gender",email:"email",id:"facebookID"};e.exports=((l=function(e){function t(){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!p.useSocialSignOn())throw new Error("Social single sign on not supported");return a(this,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),n=t,i=[{key:"initClass",value:function(){this.prototype.startedLoading=!1,this.prototype.apiLoaded=!1,this.prototype.connected=!1,this.prototype.person=null}}],(r=[{key:"token",value:function(){return null}},{key:"fakeAPI",value:function(){window.FB={login:function(e,t){return e({status:"connected",authResponse:{accessToken:"1234"}})},api:function(e,t,n){return n({first_name:"Mr",last_name:"Bean",id:"abcd",email:"[email protected]"})}},this.startedLoading=!0,this.apiLoaded=!0}},{key:"loadAPI",value:function(e){var t=this;if(null==e&&(e={}),null==e.success&&(e.success=_.noop),null==e.context&&(e.context=e),this.apiLoaded?e.success.bind(e.context)():this.once("load-api",e.success,e.context),!this.startedLoading)return this.startedLoading=!0,function(e){var t="facebook-jssdk",n=e.getElementsByTagName("script")[0];if(!e.getElementById(t)){var r=e.createElement("script");r.id=t,r.async=!0,r.src="//connect.facebook.net/en_US/sdk.js",r.defer=!0,r.crossorigin="anonymous",n.parentNode.insertBefore(r,n)}}(document),window.fbAsyncInit=function(){return FB.init({appId:"http://localhost:3000"===document.location.origin?"607435142676437":"148832601965463",channelUrl:document.location.origin+"/channel.html",cookie:!0,xfbml:!0,version:"v20.0"}),t.trigger("load-api")},window.fbAsyncInit}},{key:"connect",value:function(e){var t=this;return null==e&&(e={}),null==e.success&&(e.success=_.noop),null==e.context&&(e.context=e),FB.login((function(n){if("connected"===n.status)return t.connected=!0,t.trigger("connect",{response:n}),e.success.bind(e.context)(n)}),{scope:"email"})}},{key:"loadPerson",value:function(e){var t=this;return null==e&&(e={}),null==e.success&&(e.success=_.noop),null==e.context&&(e.context=e),FB.api("/me",{fields:"email,last_name,first_name,gender"},(function(n){var r={};for(var o in f){var i=f[o],a=n[o];a&&(r[i]=a)}return t.trigger("load-person",r),e.success.bind(e.context)(r)}))}},{key:"renderButtons",value:function(){if(null!=(e="undefined"!=typeof FB&&null!==FB?FB.XFBML:void 0)?function(e){return e.parse}(e):void 0)return setTimeout(FB.XFBML.parse,10);var e}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(d)).initClass(),l)},543081:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=c(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}
2function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var l,d=n(727851),p=n(28045).me,f=n(969278),h="gplusToken",m=n(932070),g="800329290710-j9sivplv2gpcdgkrsis9rff3o417mlfa.apps.googleusercontent.com";e.exports=((l=function(e){function t(){var e;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=a(this,t),!p.useSocialSignOn())throw new Error("Social single sign on not supported");return e.accessToken=f.load(h,!0),e.googleIdentityInitialized=!1,e.googleIdentityCallback=null,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),n=t,i=[{key:"initClass",value:function(){this.prototype.startedLoading=!1,this.prototype.apiLoaded=!1,this.prototype.connected=!1,this.prototype.person=null}}],(r=[{key:"token",value:function(){return null!=this.accessToken?this.accessToken.access_token:void 0}},{key:"fakeAPI",value:function(){window.gapi={client:{init:function(){},load:function(e,t,n){return n()},people:{people:{get:function(){return{execute:function(e){return e({resourceName:"people/abcd",names:[{givenName:"Mr",familyName:"Bean"}],emailAddresses:[{value:"[email protected]"}]})}}}}}},auth2:{authorize:function(e,t){return t({access_token:"1234"})}}},window.google={accounts:{id:{initialize:function(){},renderButton:function(){},prompt:function(){}}}},this.startedLoading=!0,this.apiLoaded=!0}},{key:"fakeConnect",value:function(){return this.accessToken={access_token:"1234"},this.trigger("connect")}},{key:"loadAPI",value:function(e){var t=this;if(null==e&&(e={}),null==e.success&&(e.success=_.noop),null==e.context&&(e.context=e),this.apiLoaded?e.success.bind(e.context)():this.once("load-api",e.success,e.context),!this.startedLoading){window.init=function(){return t.apiLoaded=!0,t.trigger("load-api")};var n=document.createElement("script");n.type="text/javascript",n.async=!0,n.defer=!0,n.src="https://accounts.google.com/gsi/client";var r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(n,r),n.addEventListener("load",window.init),window.initGapi=function(){return window.gapi.load("client",(function(){return window.gapi.client.init({apiKey:"AIzaSyDW8CsHHJbAREZw8uXg0Hix8dtlJnuutls",discoveryDocs:["https://www.googleapis.com/discovery/v1/apis/calendar/v3/rest"]})}))};var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.defer=!0,o.src="https://apis.google.com/js/api.js";var i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(o,i),o.addEventListener("load",window.initGapi),this.startedLoading=!0}}},{key:"connect",value:function(e){var t=this;null==e&&(e={}),null==e.success&&(e.success=_.noop),null==e.context&&(e.context=e),this.googleIdentityCallback=e.success.bind(e.context),this.googleIdentityInitialized||(window.google.accounts.id.initialize({client_id:g,use_fedcm_for_prompt:!0,callback:function(e){t.accessToken={access_token:e.credential},t.trigger("connect");var n=t.googleIdentityCallback;if(t.googleIdentityCallback=null,n)return n(e)}}),this.googleIdentityInitialized=!0);var n=e.elementId||"google-login-button";if(document.getElementById(n)&&window.google.accounts.id.renderButton(document.getElementById(n),{theme:"outline",size:"large",use_fedcm_for_prompt:!0}),!e.renderOnly)return window.google.accounts.id.prompt()}},{key:"loadPerson",value:function(e){if(null==e&&(e={}),null==e.success&&(e.success=_.noop),null==e.context&&(e.context=e),null==e.resp&&(e.resp=null),e.resp){var t=m.parseGoogleJwtResponse(e.resp.credential);return this.trigger("load-person",t),e.success.bind(e.context)(t)}return console.error("gplus login failed",e)}},{key:"renderButtons",value:function(){return null!=("undefined"!=typeof gapi&&null!==gapi?gapi.plusone:void 0)&&("function"==typeof gapi.plusone.go?gapi.plusone.go():void 0)}},{key:"requestGoogleAuthorization",value:function(e,t){var n=this;return window.google.accounts.oauth2.initTokenClient({client_id:g,scope:e,callback:function(e){if(n.accessToken=e,f.save(h,n.accessToken,30),setTimeout((function(){n.accessToken=null}),1e3*n.accessToken.expires_in),t)return t()}}).requestAccessToken({prompt:"consent"})}},{key:"loadFriends",value:function(e){if(!this.loggedIn)return e();var t=function(){return gapi.client.request({path:"/plus/v1/people/me/people/visible",callback:e})};return(this.accessToken?parseInt(this.accessToken.expires_at)-(new Date).getTime()/1e3:-1)<0?(this.reauthorize(),this.listenToOnce(this,"logged-in",t)):t()}},{key:"reauthorize",value:function(){var e={client_id:g,scope};return gapi.auth.authorize(e,this.onGPlusLogin)}}])&&o(n.prototype,r),i&&o(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(d)).initClass(),l)}
2,676272:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t,n){return t=a(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,i()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(i=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}var c=n(755818);e.exports=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o(this,t,["schoology"])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(c)},969278:e=>{"use strict";e.exports.load=function(e,t){if(null==t&&(t=!0),t)return lscache.get(e);var n=localStorage.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch(t){return console.warn("error loading from storage",e),null}},e.exports.save=function(e,t,n){return null==n&&(n=10080),n?lscache.set(e,t,n):localStorage.setItem(e,JSON.stringify(t))},e.exports.remove=function(e,t){return null==t&&(t=!0),t?lscache.remove(e):localStorage.removeItem(e)}},196363:(e,t,n)=>{"use strict";var r;function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a=n(504015),s=(n(694879).lowUsageUsers,new Vuex.Store({strict:!a.application.isProduction()&&!a.application.testing,state:{pageErrors:[],localesLoaded:{},features:{}},mutations:{addPageError:function(e,t){return e.pageErrors.push(t)},clearPageErrors:function(e){return e.pageErrors=[]},addLocaleLoaded:function(e,t){var n={};return n[t]=!0,e.localesLoaded=_.assign(n,e.localesLoaded)},updateFeatures:function(e,t){return e.features=t}},getters:{localeLoaded:function(e){return function(t){return!0===e.localesLoaded[t]}}},modules:(r={me:n(583701).Z,courses:n(115400),game:n(566655),gameContent:n(30068).Z,schoolAdministrator:n(753923).Z,clans:n(990430).Z,classrooms:n(464764).Z,courseInstances:n(514798).Z,levelSessions:n(933413).Z,levels:n(816640).Z,users:n(568579).Z,interactives:n(475535).Z,campaigns:n(343617).Z,tints:n(257970).Z,layoutChrome:n(877019).Z,unitMap:n(941397).Z,audio:n(887752).default,voiceOver:n(272508).Z,archivedElements:n(886778).Z,prepaids:n(137159).Z,teacherDashboard:n(324604).Z,schoolAdminDashboard:n(185241).Z,userStats:n(732756).Z,baseSingleClass:n(521286).Z,baseCurriculumGuide:n(527168).Z,teacherDashboardPanel:n(397567).ZP,tracker:n(464408).Z,products:n(288176).Z,seasonalLeague:n(573324).default,paymentGroups:n(679086).Z,apiClient:n(201701).Z,trialRequest:n(723599).Z},i(i(i(i(i(i(i(i(i(i(r,"classrooms",n(464764).Z),"podcasts",n(461487).Z),"announcements",n(194352).Z),"events",n(325970).Z),"modalTeacher",n(974423).default),"lowUsageUsers",n(918504).Z),"aiScenarios",n(899094).Z),"aiProjects",n(779861).Z),"aiModels",n(527196).Z),"modals",n(718515).default),i(r,"exams",n(552747).Z))}));e.exports=s},527196:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&i.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,578 bytes, line 2
2))}function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
vendor: 5,181 bytes, line 2
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function i(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}t.Z=void 0;var s=n(694879);t.Z={namespaced:!0,state:{loaded:!1,byId:{},byName:{}},getters:{getModels:function(e){return _.values(e.byId)},getModelsByName:function(e){return e.byName}},mutations:{add:function(e,t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;Vue.set(e.byId,o._id,o),Vue.set(e.byName,o.name,o)}}catch(e){r.e(e)}finally{r.f()}}},actions:{fetch:function(e){return(t=o().mark((function t(){var n,r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,e.state,t.next=3,s.aiModels.getAll();case 3:r=t.sent,n("add",r);case 5:case"end":return t.stop()}}),t)})),function(){var e=this,n=arguments;return new Promise((function(r,o){var a=t.apply(e,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))})();var t}}}},779861:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o,i,a,s=(o=n(935967))&&o.__esModule?o:{default:o};function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(){l=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,017 bytes, line 2
2))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,u,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function d(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}t.Z={namespaced:!0,state:{loading:{aiProjectsByClassroom:{}},aiProjectsByClassroom:{}},mutations:{toggleClassroomLoading:function(e,t){var n=!0;e.loading.aiProjectsByClassroom[t]&&(n=!1),Vue.set(e.loading.aiProjectsByClassroom,t,n)},initAiProjectsByClassroomState:function(e,t){e.aiProjectsByClassroom[t]||Vue.set(e.aiProjectsByClassroom,t,{projects:[],aiProjectCompletionsByUser:{},aiProjectMapByUser:{}})},clearSessionsByClassroom:function(e,t){Vue.set(e.aiProjectsByClassroom,t,null)},setAiProjectsForClassroom:function(e,t){var n=t.classroomId,r=t.projects;e.aiProjectsByClassroom[n].projects=r,e.aiProjectsByClassroom[n].aiProjectCompletionsByUser={},e.aiProjectsByClassroom[n].aiProjectMapByUser={}},addLevelCompletionsByUserForClassroom:function(e,t){var n=t.classroomId,r=t.aiProjectCompletionsByUser;e.aiProjectsByClassroom[n].aiProjectCompletionsByUser=r},addAiProjectMapForClassroom:function(e,t){var n=t.classroomId,r=t.aiProjectMapByUser;e.aiProjectsByClassroom[n].aiProjectMapByUser=r}},getters:{getAiProjectsMapForClassroom:function(e){return function(t){return(e.aiProjectsByClassroom[t]||{}).aiProjectMapByUser}},getSessionsForClassroom:function(e){return function(t){return(e.aiProjectsByClassroom[t]||{}).projects}}},actions:{fetchForClassroomMembers:(i=l().mark((function e(t,n){var r,o,i,a,c,u;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,o=t.dispatch,i=n.classroom,a=n.options,c=void 0===a?{}:a,r("toggleClassroomLoading",i._id),r("initAiProjectsByClassroomState",i._id),e.prev=4,e.next=7,s.default.fetchForClassroomMembers(i._id,c);case 7:u=e.sent,r("setAiProjectsForClassroom",{classroomId:i._id,projects:Object.freeze(u)}),o("computeAiProjectMapForClassroom",i._id),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(4),console.log(e.t0),noty({text:"Fetch ai projects failure: ".concat(e.t0),type:"error"});case 16:return e.prev=16,r("toggleClassroomLoading",i._id),e.finish(16);case 19:case"end":return e.stop()}}),e,null,[[4,12,16,19]])})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){d(o,n,r,a,s,"next",e)}function s(e){d(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e,t){return a.apply(this,arguments)}),computeAiProjectCompletionByUserForClassroom:function(e,t){var n=e.commit,r=e.state.levelSessionsByClassroom[t];if(!r||!r.sessions)throw new Error("Sessions not loaded");var o,i={},a=c(r.sessions);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.creator,l=s.state||{};i[u]=i[u]||{},i[u][s.level.original]=!0===l.complete}}catch(e){a.e(e)}finally{a.f()}n("addLevelCompletionsByUserForClassroom",{classroomId:t,levelCompletionsByUser:Object.freeze(i)})},computeAiProjectMapForClassroom:function(e,t){var n=e.commit,r=e.state;if(!r.aiProjectsByClassroom[t]||!r.aiProjectsByClassroom[t].projects)throw new Error("Sessions not loaded");var o,i={},a=c(_.sortBy(r.aiProjectsByClassroom[t].projects||[],(function(e){return(e||{}).changed})));try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.user,l=s.scenario;l&&(i[u]=i[u]||{},i[u][l]=i[u][l]||[],i[u][l].push(s))}}catch(e){a.e(e)}finally{a.f()}n("addAiProjectMapForClassroom",{classroomId:t,aiProjectMapByUser:i})}}}},899094:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&i.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 4,578 bytes, line 2
2))}function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);
2var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function i(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}t.Z=void 0;var s=n(694879);t.Z={namespaced:!0,state:{loaded:!1,byId:{},byOriginal:{}},getters:{getScenarios:function(e){return _.values(e.byOriginal)}},mutations:{addScenarios:function(e,t){var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;Vue.set(e.byId,o._id,o),Vue.set(e.byOriginal,o.Original,o)}}catch(e){r.e(e)}finally{r.f()}}},actions:{fetchReleased:function(e,t){return(n=o().mark((function n(){var r,i,a;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,e.state,i=t||{},n.next=4,s.aiScenarios.getReleased(i);case 4:a=n.sent,r("addScenarios",a);case 6:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,o){var a=n.apply(e,t);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))})();var n}}}},194352:(e,t,n)=>{"use strict";t.Z=void 0;var r=n(601788);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var i=n(64241).ANNOUNCEMENT_LIMIT;t.Z={namespaced:!0,state:{announcementInterval:!1,announcementModalOpen:!1,announcements:[],unread:0,display:{},moreAnnouncements:!0,showMoreAnnouncementButton:!1},mutations:{setUnread:function(e,t){e.unread=t},setAnnouncementInterval:function(e,t){e.announcementInterval=t},setAnnouncementModalOpen:function(e,t){e.announcementModalOpen=t},setAnnouncements:function(e,t){var n,r=t.anns;t.append?r.forEach((function(t){_.find(e.announcements,{_id:t._id})||e.announcements.push(t)})):e.announcements=function(e){if(Array.isArray(e))return o(e)}(n=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},setDisplay:function(e,t){e.display=t},readAnnouncement:function(e,t){e.announcements=e.announcements.map((function(n){return n._id===t&&(n.read||(e.unread-=1),n.read=!0),n}))},setMoreAnnouncement:function(e,t){e.moreAnnouncements=t},setShowMoreButton:function(e,t){e.showMoreAnnouncementButton=t}}
2,actions:{openAnnouncementModal:function(e,t){var n=e.commit;n("setDisplay",t),n("setAnnouncementModalOpen",!0)},closeAnnouncementModal:function(e){(0,e.commit)("setAnnouncementModalOpen",!1)},startInterval:function(e,t){var n=e.commit,r=e.dispatch;n("setAnnouncementInterval",setInterval((function(){r("checkAnnouncements",t)}),6e5))},checkAnnouncements:function(e,t){var n=e.commit;me.isAnonymous()||(0,r.getNew)().then((function(e){n("setUnread",e.unread),e.sequence&&(n("setDisplay",e.sequence),n("setAnnouncementModalOpen",!0),n("setShowMoreButton",t))}))},getAnnouncements:function(e,t){var n=e.commit,o=!1;n("setShowMoreButton",!1),t&&(o=t.append),(0,r.getList)(t).then((function(e){n("setAnnouncements",{anns:e.slice(0,i-1),append:o}),e.length<i&&n("setMoreAnnouncement",!1)}))},readAnnouncement:function(e,t){var n=e.commit;(0,r.read)({announcement:t}).then((function(e){n("readAnnouncement",t)}))}},getters:{unread:function(e){return e.unread},announcements:function(e){return e.announcements},announcementInterval:function(e){return e.announcementInterval},announcementModalOpen:function(e){return e.announcementModalOpen},announcementDisplay:function(e){return e.display},moreAnnouncements:function(e){return e.moreAnnouncements},showMoreAnnouncementButton:function(e){return e.showMoreAnnouncementButton}}}},201701:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o,i,a,s=(o=n(709099))&&o.__esModule?o:{default:o},c=n(690662);function u(){u=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;
2return 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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function l(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)}))}}t.Z={namespaced:!0,state:{loading:{byLicense:!1,byPlayTime:!1,teachers:!1},clientId:"",licenseStats:{},playTimeStats:{},createdTeachers:[]},mutations:{toggleLoading:function(e,t){var n=!0;e.loading[t]&&(n=!1),Vue.set(e.loading,t,n)},setClientId:function(e,t){var n=t.id;e.clientId=n},addLicenseStats:function(e,t){var n=t.stats;e.licenseStats=n},addPlayTimeStats:function(e,t){var n=t.stats;e.playTimeStats=n},addTeachers:function(e,t){e.createdTeachers=t}},getters:{getTeachers:function(e){return e.createdTeachers},getLicenseStats:function(e){return e.licenseStats},getLoadingByLicenseState:function(e){return e.loading.byLicense}},actions:{fetchClientId:(a=d(u().mark((function e(t){var n,r;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.commit,e.next=3,s.default.getApiClientId();case 3:return r=e.sent,n("setClientId",{id:r}),e.abrupt("return",r);case 6:case"end":return e.stop()}}),e)}))),function(e){return a.apply(this,arguments)}),fetchLicenseStats:(i=d(u().mark((function e(t,n){var r,o,i,a,s,l,d;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,o=n.clientId,i=n.startDate,a=n.endDate,r("toggleLoading","byLicense"),e.prev=3,e.next=6,(0,c.create)("api-client-stats",{clientId:o,startDate:i,endDate:a});case 6:return s=e.sent,e.next=9,(0,c.pollTillResult)(null==s?void 0:s.job);case 9:l=e.sent,r("addLicenseStats",{stats:l}),e.next=17;break;case 13:e.prev=13,e.t0=e.catch(3),d=(null===e.t0||void 0===e.t0?void 0:e.t0.message)||"Failed to load the results",noty({text:"Fetch license stats failure: "+d,type:"error"});case 17:return e.prev=17,r("toggleLoading","byLicense"),e.finish(17);case 20:case"end":return e.stop()}}),e,null,[[3,13,17,20]])}))),function(e,t){return i.apply(this,arguments)}),fetchPlayTimeStats:function(e){var t=e.commit;return t("toggleLoading","byPlayTime"),s.default.getPlayTimeStats().then((function(e){if(!e)throw new Error("Unexpected response from play-time stats by owner API.");t("addPlayTimeStats",{stats:e})})).catch((function(e){return noty({text:"Fetch play time stats failure: "+e,type:"error"})})).finally((function(){return t("toggleLoading","byPlayTime")}))},fetchTeachers:function(e,t){var n=e.commit;e.rootState,n("toggleLoading","teachers"),s.default.getTeacherCount(t).then((function(e){for(var r=Math.ceil(e.num/100),o=0,i=[],a=0;a<r;a++)i.push(s.default.getTeachers(t,{skip:o,limit:100}).then((function(e){if(e)return e;throw new Error("Unexpected resjponse from teachers by APIClient.")}))),o+=100;return Promise.all(i).then((function(e){return e.flat()})).then((function(e){return n("addTeachers",e)}
vendor: 4,915 bytes, line 2
2)).catch((function(e){return noty({text:"Fetch teachers failure"+e,type:"error"})})).finally((function(){return n("toggleLoading","teachers")}))}))}}}},886778:(e,t)=>{"use strict";t.Z=void 0;var n=["none","only","both"];t.Z={namespaced:!0,state:{searchTerm:"",elementType:"ThangType",displayArchived:"none"},getters:{searchTerm:function(e){return e.searchTerm},elementType:function(e){return e.elementType},displayArchived:function(e){return e.displayArchived}},mutations:{setSearchTerm:function(e,t){e.searchTerm=t},setElementType:function(e,t){e.elementType=t},setDisplayArchived:function(e,t){if(-1===n.indexOf(t))throw new Error("Cannot mutate displayedArchive to ".concat(t));e.displayArchived=t}},actions:{setSearchTerm:function(e,t){var n=e.commit;e.rootState,n("setSearchTerm",t)},setElementType:function(e,t){var n=e.commit;e.rootState,n("setElementType",t)},setDisplayArchived:function(e,t){var n=e.commit;e.rootState,n("setDisplayArchived",t)}}}},887752:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(441766),o=["track","unique"],i=["unload"],a=["unload"];function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(){p=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};u(w,a,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,a)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var c=f(e[o],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==d(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 6,727 bytes, line 2
2(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(d(t)+" is not iterable")}return b.prototype=_,o(k,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:b,configurable:!0}),b.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),u(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),u(k,c,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function f(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){f(i,r,o,a,s,"next",e)}function s(e){f(i,r,o,a,s,"throw",e)}a(void 0)}))}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}t.default={namespaced:!0,state:{muted:{all:!1,voiceOver:!1,background:!1,soundEffects:!1,ui:!1},unique:{soundIdKeys:new Map,keys:new Set},tracks:{voiceOver:new Map,background:new Map,soundEffects:new Map,ui:new Map}},mutations:{addSoundToTrack:function(e,t){var n=t.trackName,r=t.soundId,o=t.sound,i=e.tracks[n];if(!i)throw new Error("Invalid track specified");i.set(r,o)},removeSound:function(e,t){for(var n=0,r=Object.keys(e.tracks);n<r.length;n++){var o=r[n];e.tracks[o].delete(t)}},setMute:function(e,t){var n=t.track,r=t.muted;e.muted[n]=r},addUniqueEntry:function(e,t){var n=t.unique,r=t.id;e.unique.keys.add(n),e.unique.soundIdKeys.set(r,n)},removeUniqueEntry:function(e,t){var n=t.unique,r=t.id;e.unique.keys.delete(n),e.unique.soundIdKeys.delete(r)}},getters:{hasId:function(e,t){return function(e){return!!t.getSoundById(e)}},getSoundById:function(e){return function(t){for(var n=0,r=Object.keys(e.tracks);n<r.length;n++){var o=r[n],i=e.tracks[o];if(i.has(t))return i.get(t)}}},hasTrack:function(e){return function(t){return!!e.tracks[t]}},getTrackSounds:function(e){return function(t){var n=e.tracks[t];if(!n)throw new Error("Invalid track");return Array.from(n.values())}},getAllSounds:function(e,t){for(var n=[],r=0,o=Object.keys(e.tracks);r<o.length;r++){var i=o[r];n.push.apply(n,function(e){if(Array.isArray(e))return m(e)}(a=t.getTrackSounds(i))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(a)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(a)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}var a;return n}},actions:{playAll:function(e){return h(p().mark((function t(){var n,r,o,i;return p().wrap((function(t){for(;;
2)switch(t.prev=t.next){case 0:return n=e.state,r=e.dispatch,o=Object.keys(n.tracks).map((function(e){return r("playTrack",e)})),t.next=4,Promise.all(o);case 4:return i=t.sent,t.abrupt("return",i.flat());case 6:case"end":return t.stop()}}),t)})))()},pauseAll:function(e){return h(p().mark((function t(){var n,r,o,i;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state,r=e.dispatch,o=Object.keys(n.tracks).map((function(e){return r("pauseTrack",e)})),t.next=4,Promise.all(o);case 4:return i=t.sent,t.abrupt("return",i.flat());case 6:case"end":return t.stop()}}),t)})))()},stopAll:function(e){var t=arguments;return h(p().mark((function n(){var r,o,i,a,s,c;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,i=t.length>1&&void 0!==t[1]?t[1]:{},a=i.unload,s=Object.keys(r.tracks).map((function(e){return o("stopTrack",{track:e,unload:a})})),n.next=6,Promise.all(s);case 6:return c=n.sent,n.abrupt("return",c.flat());case 8:case"end":return n.stop()}}),n)})))()},playTrack:function(e,t){var n=e.state,r=e.dispatch,o=n.tracks[t];if(!o)throw new Error("Invalid track specified");var i=Array.from(o.keys()).map((function(e){return r("playSound",e)}));return Promise.all(i)},pauseTrack:function(e,t){var n=e.state,r=e.dispatch,o=n.tracks[t];if(!o)throw new Error("Invalid track specified");var i=Array.from(o.keys()).map((function(e){return r("pauseSound",e)}));return Promise.all(i)},stopTrack:function(e,t){var n,r,o=e.state,i=e.dispatch;"object"===d(t)?(n=t.unload,r=t.track):(r=t,n=!1);var a=o.tracks[r];if(!a)throw new Error("Invalid track specified");var s=Array.from(a.keys()).map((function(e){return i("stopSound",{id:e,unload:n})}));return Promise.all(s)},playSound:function(e,t){var n=e.getters,i=e.commit,a=e.state,s=e.dispatch;if("object"!==d(t)||t.preloadedId){var u="object"!==d(t)?t:t.preloadedId,p=n.getSoundById(u);if(!p)throw new Error("Sound ID does not exist: ".concat(u));var f=p.play();return"number"==typeof(null==t?void 0:t.volume)&&p.volume(t.volume,f),u}if(!n.hasTrack(t.track))throw new Error("Invalid track specified");var h=t.track,m=t.unique,g=l(t,o);if(!m||!a.unique.keys.has(m)){h&&"background"===h&&!me.get("music",!0)&&s("muteTrack",h),void 0===g.autoplay&&(g.autoplay=!0);for(var y=new r.Howl(c(c({},g),{},{mute:g.muted||a.muted.all||a.muted[t.track]})),v=Math.random()+1;n.hasId(v);)v=Math.random()+1;return g.loop||(y.once("stop",(function(){return s("stopSound",{id:v,unload:!0})})),y.once("end",(function(){return s("stopSound",{id:v,unload:!0})}))),i("addSoundToTrack",{trackName:t.track,soundId:v,sound:y}),t.unique&&i("addUniqueEntry",{id:v,unique:m}),v}},pauseSound:function(e,t){var n=e.getters.getSoundById(t);if(!n)throw new Error("Sound ID does not exist: ".concat(t));return n.pause(),t},stopSound:function(e,t){var n,r,o=e.getters,i=e.commit,a=e.state;"object"===d(t)?(n=t.unload,r=t.id):(r=t,n=!1);var s=o.getSoundById(r);if(s)return s.stop(),n&&(s.unload(),i("removeSound",r),a.unique.soundIdKeys.has(r)&&i("removeUniqueEntry",{id:r,unique:a.unique.soundIdKeys.get(r)})),r},fadeAll:function(e,t){return h(p().mark((function n(){var r,o,i,a,s,c,u;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,i=t.from,a=t.to,s=t.duration,c=Object.keys(r.tracks).map((function(e){return o("fadeTrack",{track:e,from:i,to:a,duration:s})})),n.next=5,Promise.all(c);case 5:return u=n.sent,n.abrupt("return",u.flat());case 7:case"end":return n.stop()}}),n)})))()},fadeTrack:function(e,t){var n=e.state,r=e.dispatch,o=t.track,i=t.from,a=t.to,s=t.duration,c=n.tracks[o];if(!c)throw new Error("Invalid track specified");var u=Array.from(c.keys()).map((function(e){return r("fadeSound",{id:e,from:i,to:a,duration:s})}));return Promise.all(u)},fadeSound:function(e,t){var n=e.getters,r=t.id,o=t.from,i=t.to,a=t.duration,s=n.getSoundById(r);if(!s)throw new Error("Sound not found");return void 0===o&&(o=s.volume()),new Promise((function(e){s.once("fade",(function(){return e(r)})).fade(o,i,a)}))},setVolume:function(e,t){return h(p().mark((function n(){var r,o,i,a;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,i=Object.keys(r.tracks).map((function(e){return o("setTrackVolume",{track:e,volume:t})})),n.next=4,Promise.all(i);case 4:return a=n.sent,n.abrupt("return",a.flat());case 6:case"end":return n.stop()}}),n)})))()}
2,setTrackVolume:function(e,t){var n=e.state,r=e.dispatch,o=t.track,i=t.volume,a=n.tracks[o];if(!a)throw new Error("Invalid track specified");var s=Array.from(a.keys()).map((function(e){return r("setSoundVolume",{id:e,volume:i})}));return Promise.all(s)},setSoundVolume:function(e,t){var n=e.getters,r=t.id,o=t.volume,i=n.getSoundById(r);if(!i)throw new Error("Sound ID does not exist: ".concat(r));return i.volume(o),r},muteAll:function(e){return h(p().mark((function t(){var n,r,o,i,a;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state,r=e.dispatch,o=e.commit,i=Object.keys(n.tracks).map((function(e){return r("muteTrack",e)})),o("setMute",{track:"all",muted:!0}),t.next=5,Promise.all(i);case 5:return a=t.sent,t.abrupt("return",a.flat());case 7:case"end":return t.stop()}}),t)})))()},unmuteAll:function(e){return h(p().mark((function t(){var n,r,o,i,a;return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.state,r=e.dispatch,o=e.commit,i=Object.keys(n.tracks).map((function(e){return r("unmuteTrack",e)})),o("setMute",{track:"all",muted:!1}),t.next=5,Promise.all(i);case 5:return a=t.sent,t.abrupt("return",a.flat());case 7:case"end":return t.stop()}}),t)})))()},muteTrack:function(e,t){var n=e.state,r=e.dispatch,o=e.commit,i=n.tracks[t];if(!i)throw new Error("Invalid track specified");var a=Array.from(i.keys()).map((function(e){return r("muteSound",e)}));return o("setMute",{track:t,muted:!0}
vendor: 5,028 bytes, line 2
2),Promise.all(a)},unmuteTrack:function(e,t){var n=e.state,r=e.dispatch,o=e.commit,i=n.tracks[t];if(!i)throw new Error("Invalid track specified");var a=Array.from(i.keys()).map((function(e){return r("unmuteSound",e)}));return o("setMute",{track:t,muted:!1}),Promise.all(a)},muteSound:function(e,t){var n=e.getters.getSoundById(t);if(!n)throw new Error("Sound ID does not exist: ".concat(t));return n.mute(!0),t},unmuteSound:function(e,t){var n=e.getters.getSoundById(t);if(!n)throw new Error("Sound ID does not exist: ".concat(t));return n.mute(!1),t},fadeAndStopAll:function(e,t){return h(p().mark((function n(){var r,o,i,a;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,o=e.state,i=Object.keys(o.tracks).map((function(e){return r("fadeAndStopTrack",c(c({},t),{},{track:e}))})),n.next=4,Promise.all(i);case 4:return a=n.sent,n.abrupt("return",a.flat());case 6:case"end":return n.stop()}}),n)})))()},fadeAndStopTrack:function(e,t){return h(p().mark((function n(){var r,o,a,s,c;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,o=t.unload,a=l(t,i),n.next=4,r("fadeTrack",a);case 4:return s=n.sent,c=s.map((function(e){return r("stopSound",{id:e,unload:o})})),n.next=8,Promise.all(c);case 8:return n.abrupt("return",s);case 9:case"end":return n.stop()}}),n)})))()},fadeAndStopSound:function(e,t){return h(p().mark((function n(){var r,o,i;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,o=t.unload,i=l(t,a),n.next=4,r("fadeSound",i);case 4:return n.next=6,r("stopSound",{id:i.id,unload:o});case 6:return n.abrupt("return",i.id);case 7:case"end":return n.stop()}}),n)})))()}}}},343617:(e,t,n)=>{"use strict";t.Z=void 0;var r,o,i,a,s,c=l(n(960592)),u=l(n(967950));function l(e){return e&&e.__esModule?e:{default:e}}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==y(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){h=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:O(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",f="executing",m="completed",g={};function v(){}function b(){}function _(){}var w={};u(w,a,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,a)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var c=d(e[o],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==y(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var u=d(t,n,r);if("normal"===u.type){if(o=r.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 6,106 bytes, line 2
2(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.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,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(y(t)+" is not iterable")}return b.prototype=_,o(k,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:b,configurable:!0}),b.displayName=u(_,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,c,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),u(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),u(k,c,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function m(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){m(i,r,o,a,s,"next",e)}function s(e){m(i,r,o,a,s,"throw",e)}a(void 0)}))}}function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}t.Z={namespaced:!0,state:{campaignByCampaignHandle:{},campaignById:{},campaignBySlug:{},campaignByCourseInstanceId:{},campaignByCourseId:{},byId:{},bySlug:{},currentCampaignId:null,levelsByCampaignId:{},areCocoCampaignsFetched:!1,campaignLevelsFetched:{}},mutations:{setCampaignData:function(e,t){if("object"===y(t))if("courseId"in t){var n=t.campaignData,r=t.campaignHandle,o=t.courseInstanceId,i=t.courseId;Vue.set(e.campaignByCampaignHandle,r,n),Vue.set(e.campaignById,n._id,n),Vue.set(e.campaignBySlug,n.slug,n),Vue.set(e.campaignByCourseInstanceId,o,n),Vue.set(e.campaignByCourseId,i,n)}else{var a=t;Vue.set(e.byId,a._id,a),Vue.set(e.bySlug,a.slug,a),e.currentCampaignId=a._id}},setCampaignLevels:function(e,t){var n=t.campaignId,r=t.levels;Vue.set(e.levelsByCampaignId,n,r)},setCocoCampaignsFetched:function(e,t){e.areCocoCampaignsFetched=t},setCampaignLevelsFetched:function(e,t){var n=t.campaignHandle,r=t.flag;e.campaignLevelsFetched[n]=r}},getters:{getCampaignData:function(e,t){return function(e){var n="getCampaignDataCoco";return"object"===y(e)&&(n="getCampaignDataOzaria"),t[n](e)}},getCampaignDataCoco:function(e){return function(t){return e.byId[t]||e.bySlug[t]}},getCampaignDataOzaria:function(e){return function(t){var n=t.idOrSlug,r=t.campaignHandle,o=t.courseInstanceId,i=t.courseId;
2return e.campaignById[n]||e.campaignBySlug[n]||e.campaignByCampaignHandle[r]||e.campaignByCourseInstanceId[o]||e.campaignByCourseId[i]}},getCurrentCampaignId:function(e){return e.currentCampaignId},getHomeVersionCampaigns:function(e){var t=[];for(var n in e.byId){var r=e.byId[n];r.isInHomeVersion&&t.push(r)}return t},getCampaignLevels:function(e){return function(t){return e.levelsByCampaignId[t]}}},actions:{fetch:(s=g(h().mark((function e(t,n){var r,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.commit,t.state,t.rootGetters,r=t.dispatch,o="fetchCoco","object"===y(n)&&(o="fetchOzaria"),e.next=5,r(o,n);case 5:case"end":return e.stop()}}),e)}))),function(e,t){return s.apply(this,arguments)}),fetchOzaria:(a=g(h().mark((function e(t,n){var r,o,i,a,s,l,d;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.commit,o=t.state,t.rootGetters,t.dispatch,i=n.campaignHandle,a=n.courseInstanceId,s=n.courseId,!(o.campaignById[i]||o.campaignBySlug[i]||o.campaignByCampaignHandle[i]||o.campaignByCourseInstanceId[a]||o.campaignByCourseId[s])){e.next=4;break}return e.abrupt("return");case 4:if(l){e.next=15;break}return e.prev=5,e.next=8,c.default.get({campaignHandle:i},{data:{cacheEdge:!0}});case 8:l=e.sent,e.next=15;break;case 11:e.prev=11,e.t0=e.catch(5),console.error("Error in fetching campaign",e.t0),noty({text:"Fetch campaign failure",type:"error"});case 15:l.backgroundImage&&l.backgroundImage.filter((function(e){return!e.campaignPage})).map((function(e){e.campaignPage=1})),d=new Set(u.default.getLevels(l).map((function(e){return e.original}))),Object.keys(l.levels).filter((function(e){return!d.has(e)})).forEach((function(e){return delete l.levels[e]})),Object.values(l.levels).filter((function(e){return!e.campaignPage})).map((function(e){e.campaignPage=1})),r("setCampaignData",{campaignData:l,campaignHandle:i,courseInstanceId:a,courseId:s});case 21:case"end":return e.stop()}}),e,null,[[5,11]])}))),function(e,t){return a.apply(this,arguments)}),fetchCoco:(i=g(h().mark((function e(t,n){var r,o,i;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.commit,!(o=t.state).byId[n]&&!o.bySlug[n]){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,e.next=6,c.default.get({campaignHandle:n});case 6:i=e.sent,r("setCampaignData",i),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Error in fetching campaign",e.t0),noty({text:"Fetch campaign failure",type:"error"});case 14:case"end":return e.stop()}}),e,null,[[3,10]])}))),function(e,t){return i.apply(this,arguments)}),fetchAll:(o=g(h().mark((function e(t){var n,r,o;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.commit,!t.state.areCocoCampaignsFetched){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,c.default.fetchOverworld({data:{project:"slug,adjacentCampaigns,name,fullName,description,i18n,color,levels"}});case 5:r=e.sent,o=["dungeon","forest","desert","mountain","glacier","campaign-web-dev-1","campaign-web-dev-2","campaign-game-dev-1","campaign-game-dev-2","campaign-game-dev-3"],r.forEach((function(e){var t=o.includes(e.slug);n("setCampaignData",p(p({},e),{},{isInHomeVersion:t}))})),n("setCocoCampaignsFetched",!0);case 9:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)}),fetchCampaignLevels:(r=g(h().mark((function e(t,n){var r,o,i,a,s;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.commit,o=t.state,i=n.campaignHandle,a=n.callOz,!o.campaignLevelsFetched[i]){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,c.default.fetchLevels(i,{data:{project:"heroThang,name,slug,campaign,tasks,original,kind,practice"},callOz:a});case 6:s=e.sent,r("setCampaignLevels",{campaignId:i,levels:s}),r("setCampaignLevelsFetched",{campaignHandle:i,flag:!0});case 9:case"end":return e.stop()}}),e)}))),function(e,t){return r.apply(this,arguments)})}}},990430:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=n(145713),i=n(411871);function a(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
vendor: 4,481 bytes, line 2
2if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function s(){s=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function c(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(void 0)}))}}function l(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var p=n(250636);t.Z={namespaced:!0,state:{clans:{},childClanDetails:{},tournaments:{},loading:!1,allTournamentsLoaded:!1},getters:{isLoading:function(e){return e.loading},myClans:function(e){return n=(me.get("clans")||[]).map((function(t){return e.clans[t]})).filter((function(e){return e})),r=p.findIndex(n,(function(e){var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.startsWith("autoclan-classroom")})),o=n.filter((function(e){var t;return null==e||null===(t=e.slug)||void 0===t?void 0:t.startsWith("autoclan-classroom")})),i=n.filter((function(e){var t;return!(null!=e&&null!==(t=e.slug)&&void 0!==t&&t.startsWith("autoclan-classroom"))})),o.sort((function(e,t){return t._id.localeCompare(e._id)})),i.splice.apply(i,[r,0].concat(function(e){if(Array.isArray(e))return d(e)}(t=o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||l(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())),i;var t,n,r,o,i},clanByIdOrSlug:function(e){return function(t){return e.clans[t]||Object.values(e.clans).find((function(e){return e.slug===t}))}},childClanDetails:function(e){return function(t){return e.childClanDetails[t]||[]}},tournamentsByClan:function(e){return function(t){return e.tournaments[t]}},tournaments:function(e){return e.tournaments},allTournamentsLoaded:function(e){return e.allTournamentsLoaded}},mutations:{setClan:function(e,t){e.clans[t._id]&&Object.keys(e.clans[t._id]).length>Object.keys(t).length||Vue.set(e.clans,t._id,t)},setClanDetails:function(e,t){var n=t.clanId,r=t.childClans;Vue.set(e.childClanDetails,n,r)}
2,setLoading:function(e,t){e.loading=t},setTournaments:function(e,t){var n=t.clanId,r=t.tournaments;Vue.set(e.tournaments,n,r)},loadAllTournaments:function(e){e.allTournamentsLoaded=!0}},actions:{fetchRequiredInitialData:function(e,t){return u(s().mark((function n(){var r,o,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,o=e.dispatch,i=t.optionalIdOrSlug,r("setLoading",!0),n.prev=3,a=[o("fetchMyClans"),o("fetchPublicClans")],i&&a.push(o("fetchClan",{idOrSlug:i})),n.next=8,Promise.all(a);case 8:n.next=13;break;case 10:n.prev=10,n.t0=n.catch(3),console.error(n.t0);case 13:r("setLoading",!1);case 14:case"end":return n.stop()}}),n,null,[[3,10]])})))()},fetchMyClans:function(e){return u(s().mark((function t(){var n,r,i,c,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,t.next=3,(0,o.getMyClans)();case 3:r=t.sent,i=a(r);try{for(i.s();!(c=i.n()).done;)u=c.value,n("setClan",u)}catch(e){i.e(e)}finally{i.f()}case 6:case"end":return t.stop()}}),t)})))()},fetchClan:function(e,t){return u(s().mark((function n(){var r,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=t.idOrSlug,n.next=4,(0,o.getClan)(i);case 4:(a=n.sent)&&r("setClan",a);case 6:case"end":return n.stop()}}),n)})))()},fetchPublicClans:function(e){return u(s().mark((function t(){var n,r,i,c,u;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,t.next=3,(0,o.getPublicClans)();case 3:r=t.sent,i=a(r);try{for(i.s();!(c=i.n()).done;)u=c.value,n("setClan",u)}catch(e){i.e(e)}finally{i.f()}case 6:case"end":return t.stop()}}),t)})))()},fetchChildClanDetails:function(e,t){return u(s().mark((function n(){var r,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=t.id,n.next=4,(0,o.getChildClanDetails)(i);case 4:a=n.sent,r("setClanDetails",{clanId:i,childClans:a});case 6:case"end":return n.stop()}}),n)})))()},fetchTournamentsForClan:function(e,t){return u(s().mark((function n(){var r,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,i=t.clanId,n.next=4,(0,o.getTournamentsByClan)(i);case 4:(a=n.sent)&&r("setTournaments",{clanId:i,tournaments:Object.values(a)[0]});case 6:case"end":return n.stop()}}),n)})))()},fetchAllTournaments:function(e,t){return u(s().mark((function n(){var r,o,a,c,u;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,o=t.userId,n.next=4,(0,i.getTournamentsByMember)(o);case 4:if(a=n.sent){for(u in c=p.groupBy(a,"clan"))r("setTournaments",{clanId:u,tournaments:c[u]});r("loadAllTournaments")}case 6:case"end":return n.stop()}}),n)})))()}}}},464764:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o,i,a,s,c,u,l,d,p=y(n(218484)),f=y(n(448735)),h=y(n(969278)),m=y(n(299498)),g=y(n(250636));function y(e){return e&&e.__esModule?e:{default:e}}function v(){v=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var o=t&&t.prototype instanceof y?t:y,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var f="suspendedStart",h="executing",m="completed",g={};function y(){}function b(){}function _(){}var w={};l(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,s)&&(w=C);var k=_.prototype=y.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,017 bytes, line 2
2))}function E(e,t){function n(i,a,s,c){var u=p(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=f;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===g)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var u=p(t,n,r);if("normal"===u.type){if(o=r.done?m:"suspendedYield",u.arg===g)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=m,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=p(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.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,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=l(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(d(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),l(k,u,"Generator"),l(k,s,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function b(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){b(i,r,o,a,s,"next",e)}function s(e){b(i,r,o,a,s,"throw",e)}a(void 0)}))}}function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){C(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e){var t=e.ownerID;return(e.permissions||[]).find((function(e){return e.target===me.get("_id")&&"write"===e.access}))&&(t=me.get("_id")),t}function O(e,t){return"".concat(e,"-").concat(t)}t.Z={namespaced:!0,state:{loading:{byClassroom:{},byTeacher:{},byCourseInstanceId:{}},loaded:{byTeacher:{}},classrooms:{byClassroom:{},byTeacher:{},byCourseInstanceId:{}},classroomCourseLevels:{},mostRecentClassCode:""},mutations:{toggleLoadingForTeacher:function(e,t){Vue.set(e.loading.byTeacher,t,!e.loading.byTeacher[t])},setLoadedForTeacher:function(e,t){var n=t.teacherId,r=t.loaded;Vue.set(e.loaded.byTeacher,n,r)},toggleLoadingForClassroom:function(e,t){Vue.set(e.loading.byClassroom,t,!e.loading.byClassroom[t])},toggleLoadingForCourseInstanceId:function(e,t){Vue.set(e.loading.byCourseInstanceId,t,!e.loading.byCourseInstanceId[t])},addClassroomsForTeacher:function(e,t){var n=t.teacherId,r=t.classrooms,o={active:[],archived:[],shared:[]};r.forEach((function(e){e.ownerID!==n?o.shared.push(e):e.archived?o.archived.push(e):o.active.push(e)})),Vue.set(e.classrooms.byTeacher,n,o)},addNewClassroomForTeacher:function(e,t){var n=t.teacherId,r=t.classroom,o=e.classrooms.byTeacher[n]||{},i={active:o.active||[],archived:o.archived||[],shared:o.shared||[]};i.active.find((function(e){return e._id===r._id}))||i.archived.find((function(e){return e._id===r._id}))||i.shared.find((function(e){return e._id===r._id}))||(r.ownerID!==n?i.shared.push(r):r.archived?i.archived.push(r):i.active.push(r),Vue.set(e.classrooms.byTeacher,n,i))},addClassroomForId:function(e,t){var n=t.classroomID,r=t.classroom;Vue.set(e.classrooms.byClassroom,n,r)},addClassroomForCourseInstanceId:function(e,t){var n=t.courseInstanceId,r=t.classroom;Vue.set(e.classrooms.byCourseInstanceId,n,r)},addMembersForClassroom:function(e,t){var n=t.teacherId,r=t.classroomId,o=t.memberIds;if(e.classrooms.byTeacher[n]){var i={active:e.classrooms.byTeacher[n].active||[],archived:e.classrooms.byTeacher[n].archived||[],shared:e.classrooms.byTeacher[n].shared||[]},a=[].concat(k(i.active),k(i.shared)).find((function(e){return e._id===r}));a&&(a.members=(a.members||[]).concat(o),Vue.set(e.classrooms.byTeacher,n,i)
2)}},removeMembersForClassroom:function(e,t){var n=t.teacherId,r=t.classroomId,o=t.memberIds;if(e.classrooms.byTeacher[n]){var i={active:e.classrooms.byTeacher[n].active||[],archived:e.classrooms.byTeacher[n].archived||[],shared:e.classrooms.byTeacher[n].shared||[]},a=[].concat(k(i.active),k(i.shared)).find((function(e){return e._id===r}));a&&(a.members=(a.members||[]).filter((function(e){return!o.includes(e)})),Vue.set(e.classrooms.byTeacher,n,i))}},updateClassroom:function(e,t){var n=t.teacherId,r=t.classroomId,o=t.updates;if(e.classrooms.byTeacher[n]){var i={active:e.classrooms.byTeacher[n].active||[],archived:e.classrooms.byTeacher[n].archived||[],shared:e.classrooms.byTeacher[n].shared||[]},a=[].concat(k(i.active),k(i.shared),k(i.archived)).find((function(e){return e._id===r}));if(a){for(var s in o)a[s]=o[s];"boolean"==typeof o.archived&&(!0===o.archived?(i.active=i.active.filter((function(e){return e._id!==r})),i.archived.includes(a)||i.archived.push(a)):!1===o.archived&&(i.archived=i.archived.filter((function(e){return e._id!==r})),i.active.includes(a)||i.active.push(a))),Vue.set(e.classrooms.byTeacher,n,i)}}},setMostRecentClassCode:function(e,t){e.mostRecentClassCode=t,h.default.save("most-recent-class-code",t)},updateClassroomById:function(e,t){var n=t.classroomID,r=t.updates,o=e.classrooms.byClassroom[n];if(o){for(var i in o=S({},o),r)o[i]=r[i];Vue.set(e.classrooms.byClassroom,n,o)}else console.error("classroom not found for update")},setClassroomCourseLevels:function(e,t){var n=t.classroomID,r=t.courseID,o=t.levels;Vue.set(e.classroomCourseLevels,O(n,r),o)}},getters:{classroomById:function(e){return function(t){return e.classrooms.byClassroom[t]}},getClassroomsByTeacher:function(e){return function(t){return e.classrooms.byTeacher[t]}},getClassroomByCourseInstanceId:function(e){return function(t){return e.classrooms.byCourseInstanceId[t]}},getActiveClassroomsByTeacher:function(e){return function(t){return(e.classrooms.byTeacher[t]||{}).active}},getArchivedClassroomsByTeacher:function(e){return function(t){return(e.classrooms.byTeacher[t]||{}).archived}},getSharedClassroomsByTeacher:function(e){return function(t){return(e.classrooms.byTeacher[t]||{}).shared}},getMostRecentClassCode:function(e){var t;return(null===(t=e.mostRecentClassCode)||void 0===t?void 0:t.length)>0?e.mostRecentClassCode:me.isTeacher()?h.default.load("most-recent-class-code"):void 0},getClassroomById:function(e){return function(t){return e.classrooms.byClassroom[t]}},getCourseLevels:function(e){return function(t,n){return e.classroomCourseLevels[O(t,n)]}}},actions:{fetchClassroomsForTeacher:function(e,t){var n=this;return _(v().mark((function r(){var o,i,a,s;return v().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(o=e.commit,i=e.state,a=t.teacherId,s=t.project,!i.loaded.byTeacher[a]){r.next=4;break}return r.abrupt("return");case 4:if(!i.loading.byTeacher[a]){r.next=9;break}return r.next=7,new Promise((function(e){var t=n.watch((function(){return i.loaded.byTeacher[a]}),(function(){i.loaded.byTeacher[a]&&(t(),e())}))}));case 7:r.next=13;break;case 9:return o("toggleLoadingForTeacher",a),s=s||null,r.next=13,p.default.fetchByOwner(a,{project:s,includeShared:!0}).then(function(){var e=_(v().mark((function e(t){return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t){e.next=5;break}o("addClassroomsForTeacher",{teacherId:a,classrooms:t}),o("setLoadedForTeacher",{teacherId:a,loaded:!0}),e.next=6;break;case 5:throw new Error("Unexpected response from fetch classrooms API.");case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(e){console.error("Failed to fetch classrooms for teacher",e),noty({text:"Fetch classrooms failure"+e,type:"error",layout:"topCenter",timeout:2e3})})).finally((function(){o("toggleLoadingForTeacher",a)}));case 13:case"end":return r.stop()}}),r)})))()},fetchClassroomForId:(d=_(v().mark((function e(t,n){var r,o;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.commit,!t.getters.getClassroomById(n)){e.next=3;break}return e.abrupt("return");case 3:return r("toggleLoadingForClassroom",n),e.prev=4,e.next=7,p.default.get({classroomID:n});case 7:o=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),noty({text:"failed to fetch classroom:"+(null===e.t0||void 0===e.t0?void 0:e.t0.message),type:"error",layout:"topCenter",timeout:5e3}),e.abrupt("return");case 14:if(!o){e.next=20;break}r("addClassroomForId",{classroomID:n,classroom:o}),(o.ownerID===me.get("_id")||(o.permissions||[]).find((function(e){return e.target===me.get("_id")})))&&r("addNewClassroomForTeacher",{classroom:o,teacherId:me.get("_id")}),r("setMostRecentClassCode",o.codeCamel),e.next=21;break;case 20:throw new Error("Unexpected response from get classroom API.");case 21:r("toggleLoadingForClassroom",n);case 22:case"end":return e.stop()}}),e,null,[[4,10]])}))),function(e,t){return d.apply(this,arguments)}),fetchClassroomForCourseInstanceId:function(e,t){var n=e.commit;return n("toggleLoadingForCourseInstanceId",t),p.default.fetchByCourseInstanceId(t).then((function(e){if(!e)throw new Error("Unexpected response from fetchByCourseInstanceId classroom API.");n("addClassroomForCourseInstanceId",{courseInstanceId:t,classroom:e}),n("setMostRecentClassCode",e.codeCamel)})).catch((function(e){return noty({text:"Get classroom failure"+e,type:"error",layout:"topCenter",timeout:2e3})})).finally((function(){return n("toggleLoadingForCourseInstanceId",t)}))},createClassroom:function(e,t){var n=e.commit;return p.default.post(t).then((function(e){if(e)return n("addNewClassroomForTeacher",{teacherId:e.ownerID,classroom:e}),e;throw new Error("Unexpected response from create classroom API.")}))},removeMembersFromClassroom:(l=_(v().mark((function e(t,n){var r,o,i,a,s,c,u,l;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.rootGetters,o=t.commit,i=t.dispatch,a=n.memberIds,s=n.classroom,c=r["courseInstances/getCourseInstancesForClass"](s.ownerID,s._id)||[],u=[],a.forEach((function(e){(c.filter((function(t){return t.members.includes(e)}))||[]).map((function(e){return e._id}
2)).forEach((function(t){u.push(f.default.removeMember(t,{memberId:e}))})),u.push(p.default.removeMember({classroomID:s._id,userId:e}))})),l=E(s),e.next=9,Promise.all(u).then((function(){i("fetchClassroomsForTeacher",{teacherId:l}),o("removeMembersForClassroom",{teacherId:l,classroomId:s._id,memberIds:a})}));case 9:case"end":return e.stop()}}),e)}))),function(e,t){return l.apply(this,arguments)}),addMembersToClassroom:(u=_(v().mark((function e(t,n){var r,o,i,a,s,c,u;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,o=t.dispatch,i=n.members||[],a=i.map((function(e){return e._id})),s=n.classroom,e.next=6,p.default.addMembers({classroomID:s._id,members:i});case 6:c=E(s),r("addMembersForClassroom",{teacherId:c,classroomId:s._id,memberIds:a}),u={},null!=n&&n.componentName&&(u.componentName=n.componentName),o("baseSingleClass/fetchData",u,{root:!0});case 11:case"end":return e.stop()}}),e)}))),function(e,t){return u.apply(this,arguments)}),updateClassroom:(c=_(v().mark((function e(t,n){var r,o,i,a,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,o=n.classroom,e.next=4,p.default.update({classroomID:o._id,updates:n.updates});case 4:return i=e.sent,a=Object.keys(n.updates),s=E(o),r("updateClassroom",{teacherId:s,classroomId:o._id,updates:S(S({},n.updates),g.default.pick(i,a))}),e.abrupt("return",i);case 9:case"end":return e.stop()}}),e)}))),function(e,t){return c.apply(this,arguments)}),addPermission:(s=_(v().mark((function e(t,n){var r,o,i,a,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,o=n.classroom,i={classroomID:o._id,permission:n.permission},e.next=5,p.default.addPermission(i);case 5:a=e.sent,m.default.isOzaria?(s=E(o),r("updateClassroom",{teacherId:s,classroomId:o._id,updates:{permissions:a.data}})):r("updateClassroomById",{classroomID:o._id,updates:{permissions:a.data}});case 7:case"end":return e.stop()}}),e)}))),function(e,t){return s.apply(this,arguments)}),removePermission:(a=_(v().mark((function e(t,n){var r,o,i,a,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,o=n.classroom,i={classroomID:o._id,permission:n.permission},e.next=5,p.default.removePermission(i);case 5:a=e.sent,m.default.isOzaria?(s=E(o),r("updateClassroom",{teacherId:s,classroomId:o._id,updates:{permissions:a.data}})):r("updateClassroomById",{classroomID:o._id,updates:{permissions:a.data}});case 7:case"end":return e.stop()}}),e)}))),function(e,t){return a.apply(this,arguments)}),setMostRecentClassCode:function(e,t){(0,e.commit)("setMostRecentClassCode",t)},setMostRecentClassroomId:function(e,t){var n,r,o,i,a,s,c,u=e.commit,l=e.state,d=null==l||null===(n=l.classrooms)||void 0===n||null===(r=n.byClassroom)||void 0===r||null===(o=r[t])||void 0===o?void 0:o.codeCamel;d||(d=null===(i=Object.values((null==l||null===(c=l.classrooms)||void 0===c?void 0:c.byTeacher)||{}).find((function(e){return null==e?void 0:e.active})))||void 0===i||null===(a=i.active)||void 0===a||null===(s=a.find((function(e){return(null==e?void 0:e._id)===t})))||void 0===s?void 0:s.codeCamel),d&&u("setMostRecentClassCode",d)},fetchCourseLevels:(i=_(v().mark((function e(t,n){var r,o,i,a,s;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.commit,o=t.getters,i=n.classroomID,a=n.courseID,!o.getCourseLevels(i,a)){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,p.default.getCourseLevels({classroomID:i,courseID:a},{data:{cacheEdge:!0}});case 6:s=e.sent,r("setClassroomCourseLevels",{classroomID:i,courseID:a,levels:s});case 8:case"end":return e.stop()}}),e)}))),function(e,t){return i.apply(this,arguments)}),addOrUpdateCourse:(o=_(v().mark((function e(t,n){var r,o,i,a,s,c,u;return v().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,o=t.getters,i=n.classroomId,a=n.courseId,e.next=4,p.default.addOrUpdateCourse({classroomId:i,courseId:a},{});case 4:return s=e.sent,r("updateClassroomById",{classroomID:i,updates:{courses:s.courses}}),c=o.getClassroomById(i),u=E(c),r("updateClassroom",{teacherId:u,classroomId:i,updates:{courses:s.courses}}),e.abrupt("return",c);case 10:case"end":return e.stop()}}),e)}))),function(e,t){return o.apply(this,arguments)})}}}
vendor: 5,276 bytes, line 2
2,514798:(e,t,n)=>{"use strict";var r=n(619755);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.Z=void 0;var i,a=(i=n(448735))&&i.__esModule?i:{default:i};function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(){u=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==o(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function l(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function d(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)}))}}var p,f,h=n(864481),m=n(249449),g=n(910852),y=n(299498);t.Z={namespaced:!0,state:{loading:{byTeacher:{},byId:{}},courseInstancesByTeacher:{},courseInstanceById:{},courseInstanceByClassroom:{}},getters:{getCourseInstancesForClass:function(e){return function(t,n){return(e.courseInstancesByTeacher[t]||[]).filter((function(e){return e.classroomID==n}))}},getCourseInstancesOfClass:function(e){return function(t){return e.courseInstanceByClassroom[t]}},getCourseInstanceById:function(e){return function(t){return e.courseInstanceById[t]}}},mutations:{toggleTeacherLoading:function(e,t){var n=!0;e.loading.byTeacher[t]&&(n=!1),Vue.set(e.loading.byTeacher,t,n)},toggleIdLoading:function(e,t){var n=!0;e.loading.byId[t]&&(n=!1),Vue.set(e.loading.byId,t,n)},setCourseInstancesForTeacher:function(e,t){var n=t.teacherId,r=t.instances;Vue.set(e.courseInstancesByTeacher,n,r)},setCourseInstanceForId:function(e,t){var n=t.id,r=t.instance;Vue.set(e.courseInstanceById,n,r)},setCourseInstancesForClassroom:function(e,t){var n=t.classroomId,r=t.instances;Vue.set(e.courseInstanceByClassroom,n,r)},addCourseInstancesForTeacher:function(e,t){var n=t.teacherId,r=t.instances,o=(e.courseInstancesByTeacher[n]||[]).concat(r);Vue.set(e.courseInstancesByTeacher,n,o)}},actions:{fetchCourseInstancesForTeacher:function(e,t){var n=e.commit;return n("toggleTeacherLoading",t),a.default.fetchByOwner(t).then((function(e){if(!e)throw new Error("Unexpected response from course instances by owner API.");n("setCourseInstancesForTeacher",{teacherId:t,instances:e})})).catch((function(e){return noty({text:"Fetch course instances failure: "+e,type:"error",layout:"topCenter",timeout:2e3})})).finally((function(){return n("toggleTeacherLoading",t)}))},updateCourseInstance:(f=d(u().mark((function e(t,n){var r,o,i,s,c,l;return u().wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:return r=t.commit,o=t.state,i=n.courseInstance,s=n.updates,e.next=4,a.default.update({courseInstanceID:i._id,updates:s});case 4:if(!(c=e.sent)){e.next=11;break}r("setCourseInstanceForId",{id:i._id,instance:c}),l=c.classroomID,Vue.set(o.courseInstanceByClassroom,l,o.courseInstanceByClassroom[l].map((function(e){return e._id===i._id?c:e}))),e.next=12;break;case 11:throw new Error("Unexpected response from course instances update API.");case 12:case"end":return e.stop()}}),e)}))),function(e,t){return f.apply(this,arguments)}),fetchCourseInstancesForClassroom:function(e,t){var n=e.commit;return a.default.fetchByClassroom(t).then((function(e){if(!e)throw new Error("Unexpected response from course instances by classroom API.");n("setCourseInstancesForClassroom",{classroomId:t,instances:e})})).catch((function(e){return noty({text:"Failed to fetch course instances: "+e,type:"error",layout:"topCenter",timeout:5e3})}))},fetchCourseInstanceForId:(p=d(u().mark((function e(t,n){var r,o;return u().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.commit,!t.getters.getCourseInstanceById(n)){e.next=3;break}return e.abrupt("return");case 3:return r("toggleIdLoading",n),e.next=6,a.default.get({courseInstanceID:n});case 6:if(!(o=e.sent)){e.next=11;break}r("setCourseInstanceForId",{id:n,instance:o}),e.next=12;break;case 11:throw new Error("Unexpected response from course instances by id API.");case 12:r("toggleIdLoading",n);case 13:case"end":return e.stop()}}),e)}))),function(e,t){return p.apply(this,arguments)}),assignCourse:function(e,t){return d(u().mark((function n(){var o,i,a,c,l,d,p,f,v,b,_,w,S,C,k,x,E,O,T,A,P,I,j,L,N,R;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.rootGetters,i=e.state,a=t.course,c=t.members,l=t.classroom,d=t.sharedClassroomId,p=c.map((function(e){return new m(e)})),void 0!==(f=i.courseInstanceByClassroom[l._id].find((function(e){return e.courseID===a._id})))){n.next=11;break}return(f=new h({courseID:a._id,classroomID:l._id,ownerID:l.ownerID,aceConfig:{}})).notyErrors=!1,n.next=9,f.save();case 9:n.next=12;break;case 11:f=new h(f);case 12:if(v=o["prepaids/getPrepaidsByTeacher"](l.ownerID),b=v.available.map((function(e){return new g(e)})),_=p.filter((function(e){return!e.isEnrolled()||!e.prepaidIncludesCourse(a._id)})),w=b.reduce((function(e,t){return t.includesCourse(a._id)?e+t.openSpots():e}),0),S=w>=_.length,a.free||S){n.next=21;break}return C=_.length-w,noty({text:"Oops! It looks like you need ".concat(C," more license").concat(C>1?"s":""," to access the remaining chapters. Visit My Licenses to learn more!"),layout:"center",type:"error",killer:!0,timeout:5e3}),n.abrupt("return");case 21:if(k=_.length,x=y.i18n(a,"name"),!k||a.free){n.next=29;break}return E=!1,n.next=27,new Promise((function(e){return noty({text:r.i18n.t("teachers.assign_course_confirm",{numStudents:c.length,courseName:x,numberEnrolled:k}),buttons:[{addClass:"btn btn-primary",text:r.i18n.t("modal.okay"),onClick:function(t){E=!0,t.close(),e()}},{addClass:"btn btn-danger",text:r.i18n.t("modal.cancel"),onClick:function(t){t.close(),e()}}]})}));case 27:if(E){n.next=29;break}return n.abrupt("return");case 29:if(O=w-k,a.free){n.next=53;break}T=[],A=s(b),n.prev=33,A.s();case 35:if((P=A.n()).done){n.next=43;break}if((I=P.value).includesCourse(a._id)&&!(!Math.min(_.length,I.openSpots())>0)){n.next=39;break}return n.abrupt("continue",41);case 39:for(j=Math.min(_.length,I.openSpots()),L=0;L<j;L++)N=_.pop(),T.push(I.redeem(N.get("_id"),{data:{sharedClassroomId:d}}));case 41:n.next=35;break;case 43:n.next=48;break;case 45:n.prev=45,n.t0=n.catch(33),A.e(n.t0);case 48:return n.prev=48,A.f(),n.finish(48);case 51:return n.next=53,Promise.all(T);case 53:return n.prev=53,noty({text:r.i18n.t("teacher.assigning_course"),layout:"center",type:"information",killer:!0}),n.next=57,f.addMembers(c.map((function(e){return e._id})));case 57:R=[r.i18n.t("teacher.assigned_msg_1").replace("{{numberAssigned}}",c.length).replace("{{courseName}}",a.name)],!a.free&&k>0&&(R.push(r.i18n.t("teacher.assigned_msg_2").replace("{{numberEnrolled}}",k)),R.push(r.i18n.t("teacher.assigned_msg_3").replace("{{remainingSpots}}",O))),noty({text:R.join("<br />"),layout:"center",type:"information",killer:!0,timeout:5e3}),n.next=65;break;case 62:n.prev=62,n.t1=n.catch(53),noty({text:JSON.stringify(n.t1),type:"error"});case 65:case"end":return n.stop()}}),n,null,[[33,45,48,51],[53,62]])})))()},removeCourse:function(e,t){return d(u().mark((function n(){var o,i,a,s,c,l,d,p,f,m;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.state,i=t.course,a=t.members,s=t.classroom,c=o.courseInstanceByClassroom[s._id].find((function(e){return e.courseID===i._id}))){n.next=6;break}return noty({text:"No course found to remove.",type:"error",layout:"topCenter",timeout:5e3}),n.abrupt("return");case 6:if(l=new h(c),d=l.get("members").length,!a.length){n.next=16;break}return noty({text:r.i18n.t("teacher.removing_course"),layout:"center",type:"information",killer:!0}),n.next=12,l.removeMembers(a);case 12:p=l.get("members").length||0,f=d-p,m=[r.i18n.t("teacher.removed_course_msg").replace("{{numberRemoved}}",f).replace("{{courseName}}",i.name)],noty({text:m.join("<br />"),layout:"center",type:"information",killer:!0,timeout:5e3});case 16:case"end":return n.stop()}}),n)})))()},createFreeCourseInstances:function(e,t){return d(u().mark((function n(){var r,o,i,s,c,l;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.state,r=e.commit,o=t.classroom,i=t.courses,s=i.filter((function(e){return!0===e.free})),c=o.initialFreeCourses||[y.courseIDs.INTRODUCTION_TO_COMPUTER_SCIENCE],l=[],s.forEac
2h((function(e){c.includes(e._id)&&l.push(a.default.post({classroomID:o._id,courseID:e._id}).then((function(e){r("addCourseInstancesForTeacher",{teacherId:o.ownerID,instances:[e]})})))})),n.next=8,Promise.all(l);case 8:case"end":return n.stop()}}),n)})))()}}}},115400:(e,t,n)=>{"use strict";var r=n(694879),o=n(299498).sortAllCourses;e.exports={namespaced:!0,state:{loaded:!1,loadedOther:!1,byId:{},otherById:{}},getters:{sorted:function(e){var t=_.values(e.byId);return o(t)}},mutations:{addCourses:function(e,t){t.forEach((function(t){return Vue.set(e.byId,t._id,t)})),e.loaded=!0},addOtherCourses:function(e,t){t.forEach((function(t){return Vue.set(e.otherById,t._id,t)})),e.loadedOther=!0}},actions:{fetch:function(e){var t=e.commit;return e.state.loaded?Promise.resolve():r.courses.getAll().then((function(e){return t("addCourses",e)}))},fetchOther:function(e,t){var n=e.commit;return e.state.loadedOther?Promise.resolve():r.courses.getAll({},t).then((function(e){return n("addOtherCourses",e)})).catch((function(e){return console.log("other product seems offline, skipping...")}))},fetchReleased:function(e,t){var n=e.commit;return null==t&&(t={}),e.state.loaded?Promise.resolve():r.courses.getReleased(t).then((function(e){return n("addCourses",e)}))}}}},325970:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=n(401177),i=n(760185),a=n(218484);function s(){s=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;
vendor: 5,147 bytes, line 2
2return 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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function c(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(void 0)}))}}function l(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e){var t,n=[],r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
2if(!n){if(Array.isArray(e)||(n=d(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.push((0,o.getInstances)(i._id))}}catch(e){r.e(e)}finally{r.f()}return Promise.all(n)}t.Z={namespaced:!0,state:{events:{},loading:!1,eventPanel:{visible:!1,type:"info",clickedDate:void 0,editableEvent:void 0,editableInstance:void 0},teacherNames:{},memberNames:{}},getters:{events:function(e){return e.events},eventPanelVisible:function(e){return e.eventPanel.visible},eventPanelType:function(e){return e.eventPanel.type},eventPanelDate:function(e){return e.eventPanel.clickedDate},eventPanelEvent:function(e){return e.eventPanel.editableEvent},eventPanelInstance:function(e){return e.eventPanel.editableInstance},allTeacherIds:function(e){var t=Object.values(e.events).map((function(e){return e.owner}));return Array.from(new Set(t))},teacherNames:function(e){var t={};return Object.values(e.events).map((function(e){return t[e.owner]=e.ownerName})),t},allMemberIds:function(e){var t=Object.values(e.events).map((function(e){return[].concat(l(e.members||[]),l(e.removedMembers||[]))})).flat();return Array.from(new Set(t.map((function(e){return e.userId}))))},memberNames:function(e){return e.memberNames}},mutations:{setEvent:function(e,t){Vue.set(e.events,t._id,t)},cancelPreviewEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"temp-event";Vue.delete(e.events,t)},selectEvent:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.eventId,r=t.event,o=t.instance;if(n&&(r=e.events[n]),o){r=o.extendedProps,delete o.extendedProps;var i=r.instances.find((function(e){return e._id===o.id}));i.meetingLink=r.meetingLink,Vue.set(e.eventPanel,"editableInstance",i)}Vue.set(e.eventPanel,"editableEvent",r)},openPanel:function(e,t){var n=t.type,r=void 0===n?"info":n,o=t.date,i=void 0===o?void 0:o;Vue.set(e.eventPanel,"type",r),Vue.set(e.eventPanel,"clickedDate",i),Vue.set(e.eventPanel,"visible",!0)},changeEventPanelTab:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"edit";Vue.set(e.eventPanel,"type",t)},closeEventPanel:function(e){Vue.set(e.eventPanel,"visible",!1),Vue.delete(e.events,"temp-event")},setMemberNames:function(e,t){Vue.set(e,"memberNames",t)}},actions:{openEventPanel:function(e){var t=e.commit,n=e.state,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.type,i=void 0===o?"info":o,a=r.date,s=r.eventId,c=r.event,u=r.instance;s&&(c=n.events[s]),t("selectEvent",{event:c,instance:u}),t("openPanel",{type:i,date:a})},fetchAllEvents:function(e){return u(s().mark((function t(){var n,r,i;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.dispatch,t.next=3,(0,o.getAllEvents)();case 3:return r=t.sent,t.next=6,f(r);case 6:i=t.sent,n("setEventsInstances",{events:r,eventsInstances:i});case 8:case"end":return t.stop()}}),t)})))()},fetchUserEvents:function(e,t){return u(s().mark((function n(){var r,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.dispatch,n.next=3,(0,o.getEventsByUser)(t);case 3:return i=n.sent,n.next=6,f(i);case 6:a=n.sent,r("setEventsInstances",{events:i,eventsInstances:a});case 8:case"end":return n.stop()}}),n)})))()},setEventsInstances:function(e,t){for(var n=e.commit,r=t.events,o=t.eventsInstances,i=0;i<r.length;i++){var a=r[i],s=o[i];a.instances=s,n("setEvent",a)}},fetchEvent:function(e,t){return u(s().mark((function n(){var r,i;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,n.next=3,(0,o.getEvent)(t);case 3:return i=n.sent,n.next=6,(0,o.getInstances)(t);case 6:i.instances=n.sent,r("setEvent",i);case 8:case"end":return n.stop()}}),n)})))()},saveEvent:function(e,t){return u(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,n.next=3,(0,o.postEvent)(t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()},editEvent:function(e,t){return u(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,n.next=3,(0,o.updateEvent)(t._id,t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()},addEventMember:function(e){var t=arguments;return u(s().mark((function n(){var r,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,r=t.length>1&&void 0!==t[1]?t[1]:{},i=r.eventId,a=r.member,n.next=4,(0,o.postEventMember)(i,a);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()},editEventMember:function(e){var t=arguments;return u(s().mark((function n(){var r,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,r=t.length>1&&void 0!==t[1]?t[1]:{},i=r.eventId,a=r.member,n.next=4,(0,o.putEventMember)(i,a);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()},delEventMember:function(e){var t=arguments;return u(s().mark((function n(){var r,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,r=t.length>1&&void 0!==t[1]?t[1]:{},i=r.eventId,a=r.member,n.next=4,(0,o.deleteEventMember)(i,a);case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()},saveInstance:function(e,t){return u(s().mark((function n(){return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,n.next=3,(0,o.putInstance)(t._id,t);case 3:return n.abrupt("return",n.sent);case 4:case"end":return n.stop()}}),n)})))()},fetchMemberNames:function(e){return u(s().mark((function t(){var n,r,o;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.getters,r=e.commit,t.next=3,(0,i.getFullNames)({ids:n.allMemberIds,from:"online-classes"});case 3:return o=t.sent,r("setMemberNames",o),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t)})))()},importMembersFromClass:function(e,t){return u(s().mark((function n(){var r,o;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.commit,r=t.classCode,n.next=4,(0,a.getMembersByClassCode)(r);case 4:return o=n.sent,n.abrupt("return",o);case 6:case"end":return n.stop()}}),n)})))()}}}},552747:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=n(475081),i=n(350036);function a(){a=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,017 bytes, line 2
2))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)}))}}t.Z={namespaced:!0,state:{examsById:{},userExam:null},mutations:{addExam:function(e,t){e.examsById[t._id]=t},updateUserExam:function(e,t){t.examId;var n=t.userExam;e.userExam=n}},actions:{createExam:function(e,t){return c(a().mark((function n(){var r,i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,n.next=3,(0,o.postExam)(t);case 3:i=n.sent,r("addExam",i);case 5:case"end":return n.stop()}}),n)})))()},fetchExamById:function(e,t){return c(a().mark((function n(){var r,i;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,e.state,n.next=3,(0,o.getExamById)(t);case 3:i=n.sent,r("addExam",i);case 5:case"end":return n.stop()}}),n)})))()},startExam:function(e,t){return c(a().mark((function n(){var r,o,s,c,u;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,o=t.examId,s=t.codeLanguage,c=t.duration,n.next=4,(0,i.startExam)(o,{codeLanguage:s,duration:c});case 4:u=n.sent,r("updateUserExam",{examId:o,userExam:u});case 6:case"end":return n.stop()}}),n)})))()},submitExam:function(e,t){return c(a().mark((function n(){var r,o,s,c;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,o=t.userExamId,s=t.expires,n.next=4,(0,i.submitExam)(o,{expires:s});case 4:c=n.sent,r("updateUserExam",{examId:c.examId,userExam:c});case 6:case"end":return n.stop()}}),n)})))()},fetchUserExam:function(e,t){return c(a().mark((function n(){var r,o,s,c,u;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,o=t.examId,s=t.includeArchived,c=void 0!==s&&s,n.prev=2,n.next=5,(0,i.getUserExam)(o,c);case 5:u=n.sent,r("updateUserExam",{examId:o,userExam:u}),n.next=12;break;case 9:n.prev=9,n.t0=n.catch(2),console.log(n.t0);case 12:case"end":return n.stop()}}),n,null,[[2,9]])})))()}},getters:{getExamById:function(e){return function(t){return e.examsById[t]}},userExam:function(e){return e.userExam}}}},566655:(e,t,n)=>{"use strict";var r=n(619755),o=n(665420);function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=n(334657),s=n(299498),c=n(284358),u=_.zipObject(Array.from(_.keys(a.properties)).map((function(e){return[e,null]})));function l(e,t){return null!=e?t(e):void 0}e.exports={namespaced:!0,state:{level:u,hintsVisible:!1,aiHintVisible:!1,timesCodeRun:0,timesAutocompleteUsed:0,playing:!1,tutorial:[],tutorialActive:!1,codeBankOpen:!1,clickedUpdateCapstoneCode:!1,hasPlayedGame:!1,levelSolution:{autoFillCount:0,source:""},heroHealth:{current:0,max:0}},mutations:{setPlaying:function(e,t){e.playing=t},setLevel:function(e,t){e.level=r.extend(!0,{},t)},setLevelSolution:function(e,t){e.levelSolution=t},setHintsVisible:function(e,t){e.hintsVisible=t},setAIHintVisible:function(e,t){e.aiHintVisible=t},incrementTimesCodeRun:function(e){e.timesCodeRun+=1},setTimesCodeRun:function(e,t){e.timesCodeRun=t},incrementTimesAutocompleteUsed:function(e){e.timesAutocompleteUsed+=1},setTimesAutocompleteUsed:function(e,t){e.timesAutocompleteUsed=t},setHeroHealth:function(e,t){e.heroHealth=t},addTutorialStep:function(e,t){var n;e.tutorial.find((function(e){return _.isEqual(_.omit(t,_.functions(t)),_.omit(e,_.functions(e)))}))||(t.intro?e.tutorial=[t].concat(function(e){if(Array.isArray(e))return i(e)}(n=Array.from(e.tutorial))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):e.tutorial.push(t))},resetTutorial:function(e,t){null==t&&(t={}),e.tutorialActive=!1,t.keepIntro&&(null!=e.tutorial[0]?e.tutorial[0].intro:void 0)?e.tutorial=[e.tutorial[0]]:e.tutorial=[]},setTutorialActive:function(e,t){e.tutorialActive=t},setCodeBankOpen:function(e,t){e.codeBankOpen=t},setClickedUpdateCapstoneCode:function(e,t){e.clickedUpdateCapstoneCode=t},setHasPlayedGame:function(e,t){e.hasPlayedGame=t}},actions:{addTutorialStep:function(e,t){var n=e.commit,r=(e.rootState,e.dispatch);if(t.voiceOver||t.message&&/[a-z]/i.test(t.message)){var o=_.clone(t);o.message&&(o.text=o.message);var i=r("voiceOver/preload",{dialogNode:o,speakerThangType:t.speakerThangType},{root:!0});t.playVoiceOver=function(){return r("voiceOver/playVoiceOver",i,{root:!0})}}return n("addTutorialStep",t)},setTutorialActive:function(e,t){var n=e.commit;return e.rootState,n("setTutorialActive",t)},restartTutorial:function(e){var t=e.commit;return t("setTutorialActive",!1),setTimeout((function(){return t("setTutorialActive",!0)}),500)},resetTutorial:function(e,t){return(0,e.commit)("resetTutorial",t)},addTutorialStepsFromSayEvents:function(e,t){e.commit;
2var n=e.rootState,r=e.dispatch;return t.forEach((function(e){var t=e.say,o=e.tutorial;return r("addTutorialStep",{message:s.i18n(t,"text"),originalMessage:null!=t?t.text:void 0,position:(null!=o?o.position:void 0)||"stationary",targetElement:null!=o?o.targetElement:void 0,animation:null!=o?o.animation:void 0,targetLine:null!=o?o.targetLine:void 0,targetThangs:null!=o?o.targetThangs:void 0,grayOverlay:null!=o?o.grayOverlay:void 0,advanceOnTarget:null!=o?o.advanceOnTarget:void 0,internalRelease:null!=o?o.internalRelease:void 0,voiceOver:t.voiceOver,speakerThangType:(null!=n.game.level?n.game.level.characterPortrait:void 0)||"vega"})}))},toggleCodeBank:function(e){return(0,e.commit)("setCodeBankOpen",!e.rootState.game.codeBankOpen)},setClickedUpdateCapstoneCode:function(e,t){return(0,e.commit)("setClickedUpdateCapstoneCode",t)},setHasPlayedGame:function(e,t){return(0,e.commit)("setHasPlayedGame",t)},autoFillSolution:function(e,t){var n,r,o=e.commit,i=e.getters,a=e.rootState;if(!s.showOzaria())return null==t&&(t=null!=(r=s.getQueryVariable("codeLanguage"))?r:"javascript"),null==(n=i.getSolutionSrc(t))&&function(){var e="No ".concat(t," solution available for ").concat(a.game.level.name,".");noty({text:e,timeout:3e3}),console.error(e)}(),o("setLevelSolution",{autoFillCount:a.game.levelSolution.autoFillCount+1,source:n});try{var u,d=_.find(null!=(null!=a.game.level?a.game.level.thangs:void 0)?null!=a.game.level?a.game.level.thangs:void 0:[],{id:"Hero Placeholder"}),p=_.find(null!=d.components?d.components:[],(function(e){return l(l(null!=e?e.config:void 0,(function(e){return e.programmableMethods})),(function(e){return e.plan}))})),f=l(null!=p.config?p.config.programmableMethods:void 0,(function(e){return e.plan})),h=_.filter(null!=(null!=f?f.solutions:void 0)?null!=f?f.solutions:void 0:[],(function(e){return!e.testOnly&&e.succeeds})),m=l(_.find(h,{language:t}),(function(e){return e.source}));!m&&(u=l(_.find(h,{language:"javascript"}),(function(e){return e.source})))&&(m=c.translateJS(u,t));var g=null!=l(null!=a.me.ozariaUserOptions?a.me.ozariaUserOptions.avatar:void 0,(function(e){return e.avatarCodeString}))?l(null!=a.me.ozariaUserOptions?a.me.ozariaUserOptions.avatar:void 0,(function(e){return e.avatarCodeString})):"crown",y=_.merge({external_ch1_avatar:g},s.i18nCommentContext(f));return n=_.template(m)(y),_.isEmpty(n)?(noty({text:"No solution available.",timeout:3e3}),console.error("Could not find solution for ".concat(a.game.level.name))):o("setLevelSolution",{autoFillCount:a.game.levelSolution.autoFillCount+1,source:n})}catch(e){var v="Cannot auto fill solution: ".concat(e.message);return console.error(v),noty({type:"error",text:v})}}},getters:{codeBankOpen:function(e){return e.codeBankOpen},tutorialSteps:function(e){return e.tutorial},tutorialActive:function(e){return e.tutorialActive},clickedUpdateCapstoneCode:function(e){return e.clickedUpdateCapstoneCode},hasPlayedGame:function(e){return e.hasPlayedGame},levelSolution:function(e){return e.levelSolution},getSolutionSrc:function(e,t,n){return function(e){var t,r,o,i,a,u,l,d,p,f;if((d=_.find((null===(t=n.game)||void 0===t||null===(r=t.level)||void 0===r?void 0:r.thangs)||[],{id:"Hero Placeholder"}))&&(l=_.find(d.components||[],(function(e){var t,n;return null==e||null===(t=e.config)||void 0===t||null===(n=t.programmableMethods)||void 0===n?void 0:n.plan})))){var h=l.config.programmableMethods.plan,m=_.filter((null==h?void 0:h.solutions)||[],(function(e){return!e.testOnly&&e.succeeds}));if("web-dev"===(null===(o=n.game)||void 0===o||null===(i=o.level)||void 0===i?void 0:i.type)){var g,y=null===(g=_.find(m,{language:"html"}))||void 0===g?void 0:g.source;if(y)return/<playercode>/.test(y)?s.extractPlayerCodeTag(y):y}var v=null===(a=_.find(m,{language:e}))||void 0===a?void 0:a.source;if(!v&&(p=null===(u=_.find(m,{language:"javascript"}))||void 0===u?void 0:u.source)&&(v=c.translateJS(p,e)),v){try{f=_.template(v)(s.i18nCommentContext(h))}catch(e){console.error("Cannot auto fill solution: ".concat(e.message))}if(!_.isEmpty(f))return f}}}}}},Backbone.Mediator.subscribe("level:set-playing",(function(e){var t,n=null==(t=(null!=e?e:{}).playing)||t;return o.store.commit("game/setPlaying",n)}))},30068:(e,t,n)=>{"use strict";t.Z=void 0;var r=s(n(218484)),o=s(n(960592)),i=n(299498),a=n(408715);
vendor: 4,206 bytes, line 2
2function s(e){return e&&e.__esModule?e:{default:e}}function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(){u=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,a,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,a)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,s){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==c(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(c(t)+" is not iterable")}return b.prototype=_,o(k,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,s,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
vendor: 4,197 bytes, line 2
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,a,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function l(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||p(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEac
2h((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y="_id,i18n,name,slug,displayName,description",v="_id,i18n,name,slug,displayName,interactiveType,unitCodeLanguage,documentation,draggableOrderingData,insertCodeData,draggableStatementCompletionData,defaultArtAsset,promptText",b="_id,i18n,name,slug,displayName,description",_="original,name,description,slug,concepts,displayName,type,ozariaType,practice,shareable,i18n,assessment,goals,additionalGoals,documentation,heroThang,screenshot,exemplarProjectUrl,exemplarCodeUrl,projectRubricUrl,totalStages,practiceThresholdMinutes";t.Z={namespaced:!0,state:{loading:{byClassroom:{},byCampaign:{}},gameContent:{byClassroom:{},byCampaign:{}},levelNumberMap:{}},mutations:{toggleLoadingForClassroom:function(e,t){Vue.set(e.loading.byClassroom,t,!e.loading.byClassroom[t])},toggleLoadingForCampaign:function(e,t){Vue.set(e.loading.byCampaign,t,!e.loading.byCampaign[t])},addContentForClassroom:function(e,t){var n=t.classroomId,r=t.contentData;Vue.set(e.gameContent.byClassroom,n,r)},addContentForCampaign:function(e,t){var n=t.campaignId,r=t.contentData;Vue.set(e.gameContent.byCampaign,n,r)},addLevelNumber:function(e,t){var n=t.levelId,r=t.levelNumber;Vue.set(e.levelNumberMap,n,r)},updateLevelNumberMap:function(e,t){e.levelNumberMap=m(m({},e.levelNumberMap||{}),t)}},getters:{getContentForClassroom:function(e){return function(t){return e.gameContent.byClassroom[t]}},getContentForCampaign:function(e){return function(t){return e.gameContent.byCampaign[t]}},getLevelNumber:function(e){return function(t){var n;return null===(n=e.levelNumberMap)||void 0===n?void 0:n[t]}},levelNumberMap:function(e){return e.levelNumberMap}},actions:{fetchGameContentForClassroom:function(e,t){var n=e.commit,o=e.state,a=t.classroomId,s=t.options,c=void 0===s?{}:s;if(o.gameContent.byClassroom[a]&&!c.forceGameContentFetch)return Promise.resolve();n("toggleLoadingForClassroom",a);var u={cinematics:(c.project||{}).cinematics||y,interactives:(c.project||{}).interactives||v,cutscenes:(c.project||{}).cutscenes||b,levels:(c.project||{}).levels||_};return r.default.fetchGameContent(a,{data:{project:u}}).then((function(e){if(!e)throw new Error("Unexpected response from fetch content API.");if(e[i.courseIDs.JUNIOR])for(var t=e[i.courseIDs.JUNIOR],r=0,o=Object.entries(t.modules);r<o.length;r++){var s=d(o[r],2),c=s[0],u=s[1];t.modules[c]=u.reduce((function(e,t){if(t.practice){var n=e[e.length-1];n.practiceLevels=e[e.length-1].practiceLevels||[],n.practiceLevels.push(t)}else e.push(t);return e}),[])}n("addContentForClassroom",{classroomId:a,contentData:e})})).catch((function(e){return noty({text:"Fetch content failure"+e,type:"error",layout:"topCenter",timeout:2e3})})).finally((function(){return n("toggleLoadingForClassroom",a)}))},fetchGameContentForCampaign:function(e,t){var n=e.commit,r=e.state,i=t.campaignId,a=t.language,s=t.options,c=void 0===s?{}:s;if(r.gameContent.byCampaign[i])return Promise.resolve();n("toggleLoadingForCampaign",i);var u={cinematics:(c.project||{}).cinematics||y,interactives:(c.project||{}).interactives||v,cutscenes:(c.project||{}).cutscenes||b,levels:(c.project||{}).levels||_};return o.default.fetchGameContent(i,{data:{project:u,cacheEdge:!0,language:a||"python"},callOz:c.callOz}).then((function(e){if(!e)throw new Error("Unexpected response from fetch content API.");n("addContentForCampaign",{campaignId:i,contentData:e})})).catch((function(e){return noty({text:"Fetch content failure"+e,type:"error",layout:"topCenter",timeout:2e3})})).finally((function(){return n("toggleLoadingForCampaign",i)}))},generateLevelNumberMap:function(e,t){return(n=u().mark((function n(){var r,o,i,s,c,l,h,m,g,y,v,b,_,w,S;return u().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,o=e.state,i=e.dispatch,s=e.getters,c=t.campaignId,l=t.language,h=t.courseId,m=o.gameContent.byCampaign[c]){n.next=6;break}return n.next=6,i("fetchGameContentForCampaign",{campaignId:c,language:l});case 6:for(m=s.getContentForCampaign(c),g=[],y=0,v=Object.entries(m.modules);y<v.length;
vendor: 4,994 bytes, line 2
2y++)b=d(v[y],1),_=b[0],w=(0,a.getCurriculumGuideContentList)({introLevels:m.introLevels,moduleInfo:m.modules,moduleNum:_}),g.push.apply(g,function(e){if(Array.isArray(e))return f(e)}(u=w)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||p(u)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());S=(0,a.generateLevelNumberMap)(g,h),r("updateLevelNumberMap",S);case 11:case"end":return n.stop()}var u}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)}))})();var n}}}},475535:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=n(847429);function i(){i=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function a(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}t.Z={namespaced:!0,state:{loading:{interactive:!1,session:!1,byClassroom:{}},interactive:void 0,interactiveSession:void 0,interactiveSessionsByClassroom:{}},mutations:{toggleInteractiveLoading:function(e){e.loading.interactive=!e.loading.interactive},toggleInteractiveSessionLoading:function(e){e.loading.session=!e.loading.session},toggleLoadingForClassroom:function(e,t){var n=!0;e.loading.byClassroom[t]&&(n=!1),Vue.set(e.loading.byClassroom,t,n)},addInteractive:function(e,t){e.interactive=t},addInteractiveSession:function(e,t){e.interactiveSession=t},addInteractiveSessionsForClassroom:function(e,t){var n=t.classroomId,r=t.sessions;Vue.set(e.interactiveSessionsByClassroom[n],"sessions",r)},initSessionsByClassroomState:function(e,t){e.interactiveSessionsByClassroom[t]||Vue.set(e.interactiveSessionsByClassroom,t,{sessions:[],interactiveSessionMapByUser:{}})},addInteractiveSessionMapForClassroom:function(e,t){var n=t.classroomId,r=t.interactiveSessionMapByUser;Vue.set(e.interactiveSessionsByClassroom[n],"interactiveSessionMapByUser",r)}},getters:{currentInteractiveDataLoading:function(e){return e.loading.interactive||e.loading.session},currentInteractive:function(e){return e.interactive},currentInteractiveSession:function(e){return e.interactiveSession},correctSubmissionFromSession:function(e,t){var n=t.currentInteractiveSession;if(n){var r,o=c(n.submissions||[]);try{for(o.s();!(r=o.n()).done;){var i=r.value;if(i.correct)return i}}catch(e){o.e(e)}finally{o.f()}}},getInteractiveSessionsForClass:function(e){return function(t){var n;return null===(n=e.interactiveSessionsByClassroom[t])||void 0===n?void 0:n.interactiveSessionMapByUser}}},actions:{loadInteractive:function(e,t){return s(i().mark((function n(){var r,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=e.commit)("toggleInteractiveLoading"),n.prev=2,n.next=5,(0,o.getInteractive)(t);case 5:if(a=n.sent){n.next=8;break}throw new Error("Invalid interactive received");case 8:r("addInteractive",a),n.next=14;break;case 11:throw n.prev=11,n.t0=n.catch(2),new Error("Failed to load interactive");case 14:return n.prev=14,r("toggleInteractiveLoading"),n.finish(14);case 17:case"end":return n.stop()}}),n,null,[[2,11,14,17]])})))()},loadInteractiveSession:function(e,t){return s(i().mark((function n(){var r,a,s,c;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a=t.interactiveIdOrSlug,s=t.sessionOptions,r("toggleInteractiveSessionLoading"),n.prev=3,n.next=6,(0,o.getSession)(a,s);case 6:if(c=n.sent){n.next=9;break}throw new Error("Invalid interactive session received");case 9:r("addInteractiveSession",c),n.next=15;break;case 12:throw n.prev=12,n.t0=n.catch(3),new Error("Failed to load interactive session");case 15:return n.prev=15,r("toggleInteractiveSessionLoading"),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[3,12,15,18]])})))()},fetchSessionsForClassroomMembers:function(e,t){return s(i().mark((function n(){var r,a,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a=e.dispatch,r("toggleLoadingForClassroom",t._id),r("initSessionsByClassroomState",t._id),n.prev=3,n.next=6,Promise.all((0,o.fetchInteractiveSessionForAllClassroomMembers)(t));case 6:if(s=n.sent){n.next=9;break}throw new Error("Unexpected response returned from user API");case 9:r("addInteractiveSessionsForClassroom",{classroomId:t._id,sessions:Object.freeze(s.flat())}),a("computeInteractiveSessionMapForClassroom",t._id),n.next=16;break;case 13:throw n.prev=13,n.t0=n.catch(3),new Error("Failed to load interactive session:"+n.t0);case 16:return n.prev=16,r("toggleLoadingForClassroom",t._id),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[3,13,16,19]])})))()},computeInteractiveSessionMapForClassroom:function(e,t){var n=e.commit,r=e.state;if(!r.interactiveSessionsByClassroom[t]||!r.interactiveSessionsByClassroom[t].sessions)throw new Error("Sessions not loaded");var o,i={},a=c(r.interactiveSessionsByClassroom[t].sessions);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.userId,l=s.interactiveId;i[u]=i[u]||{},i[u][l]=s}}catch(e){a.e(e)}finally{a.f()}n("addInteractiveSessionMapForClassroom",{classroomId:t,interactiveSessionMapByUser:i})}}}},877019:(e,t,n)=>{"use strict";t.Z=void 0;var r=i(n(586369)),o=i(n(299498));
vendor: 5,423 bytes, line 2
2function i(e){return e&&e.__esModule?e:{default:e}}t.Z={namespaced:!0,state:function(){return{soundOn:me.get("volume",!0)>0,currentCourseInstanceId:null,currentCourseId:null}},mutations:{toggleSound:function(e){e.soundOn=!e.soundOn,me.set("volume",e.soundOn?1:0),me.patch(),Backbone.Mediator.publish("level:set-volume",{volume:me.get("volume")})},setUnitMapUrlDetails:function(e,t){Vue.set(e,"currentCourseId",t.courseId),Vue.set(e,"currentCourseInstanceId",t.courseInstanceId)}},getters:{soundOn:function(e){return e.soundOn},getMapUrl:function(e,t,n,i){var a=e.currentCourseInstanceId,s=e.currentCourseId,c=i["campaigns/getCampaignData"]({courseInstanceId:a,courseId:s});if(c){var u=r.default.courseWorldMap({courseId:s,courseInstanceId:a,campaignId:c.slug,codeLanguage:o.default.getQueryVariable("codeLanguage")});return o.default.showOzaria()&&!u.includes("ozaria")&&(u=u.replace(/^\/play\//,"/play/ozaria/")),u}}},actions:{toggleSoundAction:function(e){var t=e.commit,n=e.dispatch;t("toggleSound"),n("syncSoundToAudioSystem")},syncSoundToAudioSystem:function(e){var t=e.dispatch;e.state.soundOn?t("audio/unmuteAll",void 0,{root:!0}):t("audio/muteAll",void 0,{root:!0})}}}},933413:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o,i=(o=n(94600))&&o.__esModule?o:{default:o};function a(){a=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){u(i,r,o,a,s,"next",e)}function s(e){u(i,r,o,a,s,"throw",e)}a(void 0)}))}}t.Z={namespaced:!0,state:{loading:{sessionsByClassroom:{}},levelSessionsByClassroom:{},levelSessionsByCampaign:{},levelSessionsCountByDate:{},relatedUserCampaignFetched:{}},mutations:{toggleClassroomLoading:function(e,t){var n=!0;e.loading.sessionsByClassroom[t]&&(n=!1),Vue.set(e.loading.sessionsByClassroom,t,n)},initSessionsByClassroomState:function(e,t){e.levelSessionsByClassroom[t]||Vue.set(e.levelSessionsByClassroom,t,{sessions:[],levelCompletionsByUser:{},levelSessionMapByUser:{},lastFetchedMemberSessionsDate:null})},clearSessionsByClassroom:function(e,t){Vue.set(e.levelSessionsByClassroom,t,null)},initSessionsByCampaignState:function(e,t){e.levelSessionsByCampaign[t]||Vue.set(e.levelSessionsByCampaign,t,{sessions:[]})},setSessionsForClassroom:function(e,t){var n=t.classroomId,r=t.sessions;e.levelSessionsByClassroom[n].sessions=r,e.levelSessionsByClassroom[n].levelCompletionsByUser={},e.levelSessionsByClassroom[n].levelSessionMapByUser={}},setLastFetchedMemberSessionsDate:function(e,t){var n=t.classroomId,r=t.date;e.levelSessionsByClassroom[n].lastFetchedMemberSessionsDate=r},addLevelCompletionsByUserForClassroom:function(e,t){var n=t.classroomId,r=t.levelCompletionsByUser;e.levelSessionsByClassroom[n].levelCompletionsByUser=r},addLevelSessionMapForClassroom:function(e,t){var n=t.classroomId,r=t.levelSessionMapByUser;e.levelSessionsByClassroom[n].levelSessionMapByUser=r},setSessionsForCampaign:function(e,t){var n=t.campaign,r=t.sessions;e.levelSessionsByCampaign[n].sessions=r},setSessionsCountForDate:function(e,t){var n=t.date,r=t.sessions;e.levelSessionsCountByDate[n]=r},setSessionsForCampaignOfRelatedUser:function(e,t){var n=t.campaignHandle,r=t.sessions,o=t.userId;Vue.delete(e.levelSessionsByCampaign,n),e.levelSessionsByCampaign[n]||(e.levelSessionsByCampaign[n]={}),e.levelSessionsByCampaign[n][o]||(e.levelSessionsByCampaign[n][o]={}),e.levelSessionsByCampaign[n][o].sessions=r},setRelatedUserCampaignFetched:function(e,t){var n=t.campaignHandle,r=t.userId,o=t.flag;e.relatedUserCampaignFetched[r]||(e.relatedUserCampaignFetched[r]={}),e.relatedUserCampaignFetched[r][n]=o}},getters:{getSessionsForCampaign:function(e){return function(t){return e.levelSessionsByCampaign[t]}},getSessionsMapForClassroom:function(e){return function(t){return(e.levelSessionsByClassroom[t]||{}).levelSessionMapByUser}},getSessionsForClassroom:function(e){return function(t){return(e.levelSessionsByClassroom[t]||{}).sessions}},getSessionsCountForDate:function(e){return function(t){return e.levelSessionsCountByDate[t]}},getSessionsForCampaignOfRelatedUser:function(e){return function(t,n){var r;return null===(r=(e.levelSessionsByCampaign[n]||{})[t])||void 0===r?void 0:r.sessions}},getLastFetchedMemberSessionsDate:function(e){return function(t){return(e.levelSessionsByClassroom[t]||{}).lastFetchedMemberSessionsDate}}},actions:{fetchForClassroomMembers:function(e,t){var n=e.commit,r=e.dis
2patch,o=t.classroom,c=t.options,u=void 0===c?{}:c;n("toggleClassroomLoading",o._id),n("initSessionsByClassroomState",o._id);var d=parseInt(o.members.length/20,10)+1,p=function(){var e=l(a().mark((function e(){var t,n,r,c,l,p,f,h,m,g;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=[],n=null,r=0;case 3:if(!(r<d)){e.next=34;break}for(c=Math.min(r+3,d),l=[],p=r;p<c;p++)l.push(i.default.fetchForClassroomMembers(o._id,{data:{memberLimit:20,memberSkip:20*p,project:u.project||"state.complete,level,creator,changed,created,dateFirstCompleted,submitted,codeConcepts"}}));return e.next=9,Promise.all(l);case 9:f=e.sent,h=s(f),e.prev=11,h.s();case 13:if((m=h.n()).done){e.next=23;break}if(!(g=m.value)||!Array.isArray(g.sessions)){e.next=20;break}t=t.concat(g.sessions),g.lastUpdatedAt&&(n=g.lastUpdatedAt),e.next=21;break;case 20:throw new Error("Unexpected response from level sessions call");case 21:e.next=13;break;case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(11),h.e(e.t0);case 28:return e.prev=28,h.f(),e.finish(28);case 31:r+=3,e.next=3;break;case 34:return e.abrupt("return",{sessions:t,lastUpdatedAt:n});case 35:case"end":return e.stop()}}),e,null,[[11,25,28,31]])})));return function(){return e.apply(this,arguments)}}();return p().then((function(e){var t=e.sessions,i=e.lastUpdatedAt;n("setSessionsForClassroom",{classroomId:o._id,sessions:Object.freeze(t)}),i&&n("setLastFetchedMemberSessionsDate",{classroomId:o._id,date:i}),r("computeLevelSessionMapForClassroom",o._id)})).catch((function(e){return noty({text:"Fetch level sessions failure"+e,type:"error"})})).finally((function(){return n("toggleClassroomLoading",o._id)}))},computeLevelCompletionsByUserForClassroom:function(e,t){var n=e.commit,r=e.state.levelSessionsByClassroom[t];if(!r||!r.sessions)throw new Error("Sessions not loaded");var o,i={},a=s(r.sessions);try{for(a.s();!(o=a.n()).done;){var c=o.value,u=c.creator,l=c.state||{};i[u]=i[u]||{},i[u][c.level.original]=!0===l.complete}}catch(e){a.e(e)}finally{a.f()}n("addLevelCompletionsByUserForClassroom",{classroomId:t,levelCompletionsByUser:Object.freeze(i)})},computeLevelSessionMapForClassroom:function(e,t){var n=e.commit,r=e.state;if(!r.levelSessionsByClassroom[t]||!r.levelSessionsByClassroom[t].sessions)throw new Error("Sessions not loaded");var o,i={},a=s(_.sortBy(r.levelSessionsByClassroom[t].sessions||[],(function(e){return(e||{}).changed})));try{for(a.s();!(o=a.n()).done;){var c=o.value,u=c.creator,l=(c.level||{}).original;l&&(i[u]=i[u]||{},i[u][l]=c)}}catch(e){a.e(e)}finally{a.f()}n("addLevelSessionMapForClassroom",{classroomId:t,levelSessionMapByUser:i})},fetchLevelSessionsForCampaign:function(e,t){return l(a().mark((function n(){var r,o,s,c;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,o=t.campaignHandle,s=t.options,r("initSessionsByCampaignState",o),n.prev=3,n.next=6,i.default.fetchForCampaign(o,s);case 6:return c=n.sent,r("setSessionsForCampaign",{campaign:o,sessions:c}),n.abrupt("return",c);case 11:n.prev=11,n.t0=n.catch(3),console.error("Error in fetching campaign sessions",n.t0),noty({text:"Error in fetching campaign sessions",type:"error",timeout:1e3});case 15:case"end":return n.stop()}}),n,null,[[3,11]])})))()},fetchSessionsCountForDate:function(e,t){return l(a().mark((function n(){var r,o,s,c,u;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,o=e.getters,s=t.date,!(c=o.getSessionsCountForDate(s))){n.next=5;break}return n.abrupt("return",c);case 5:return n.prev=5,n.next=8,i.default.fetchCompletedByDate(s);case 8:return u=n.sent,r("setSessionsCountForDate",{date:s,sessions:u}),n.abrupt("return",u);case 13:n.prev=13,n.t0=n.catch(5),console.error("Error in fetching sessions count for date",n.t0),noty({text:"Error in fetching sessions count for date",type:"error",timeout:1e3});case 17:case"end":return n.stop()}}),n,null,[[5,13]])})))()},fetchLevelSessionsForCampaignOfRelatedUser:function(e,t){return l(a().mark((function n(){var r,o,s,c,u,l,d,p;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,o=e.state,s=e.getters,c=t.userId,u=t.campaignHandle,l=t.options,d=void 0===l?{}:l,r("initSessionsByCampaignState",u),n.prev=3,!o.relatedUserCampaignFetched[c]||!o.relatedUserCampaignFetched[c][u]){n.next=6;break}return n.abrupt("return",s.getSessionsForCampaignOfRelatedUser(c,u));case 6:return d.data={userId:c,noLanguageFilter:!0},n.next=9,i.default.fetchForCampaign(u,d);case 9:return p=n.sent,r("setSessionsForCampaignOfRelatedUser",{campaignHandle:u,sessions:p,userId:c}),r("setRelatedUserCampaignFetched",{campaignHandle:u,userId:c,flag:!0}),n.abrupt("return",p);case 15:n.prev=15,n.t0=n.catch(3),console.error("Error in fetching campaign sessions",n.t0),noty({text:"Error in fetching campaign sessions",type:"error",timeout:1e3});case 19:case"end":return n.stop()}}),n,null,[[3,15]])})))()},resetProgressOfUsers:function(e,t){return l(a().mark((function n(){var r,o,s,c,u,l,d;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.commit,o=e.dispatch,s=t.users,c=t.courseInstanceId,u=t.currentClassroom,l=0;case 3:if(!(l<s.length)){n.next=11;break}return d=s[l]._id,n.next=7,i.default.resetProgressOfUserInCourseInstance(c,d);case 7:l%3!=0&&l!==s.length-1||noty({text:"Progress reset status: ".concat(l+1," / ").concat(s.length),type:"success",timeout:2e3,layout:"center"});case 8:l++,n.next=3;break;case 11:if(!u){n.next=16;break}return noty({text:"Fetching progress after deletion",type:"information",timeout:3e3,layout:"center"}),r("clearSessionsByClassroom",u._id),n.next=16,o("fetchForClassroomMembers",{classroom:u});case 16:case"end":return n.stop()}}),n)})))()}}}},816640:(e,t,n)=>{"use strict";t.Z=void 0;var r,o=(r=n(648687))&&r.__esModule?r:{default:r};t.Z={namespaced:!0,state:{levelsByClassroom:{}},getters:{getLevelsForClassroom:function(e){return function(t){return e.levelsByClassroom[t]||[]}}},mutations:{setLevelsForClassroom:function(e,t){var n=t.classroomId,r=t.levels;e.levelsByClassroom[n]=r}},actions:{fetchForClassroom:function(e,t){var n=e.state,r=e.commit;if(e.dispatch,n.levelsByClassroom[t])return Promise.resolve(n.levelsByClassroom[t]);var i=o.default.fetchForClassroom(t,{data:{project:"original,name,primaryConcepts,concepts,primerLanguage,practice,shareable,i18n,assessment,assessmentPlacement,slug,goals"}});return Promise.all([i]).then((function(e){for(var n=[],o=0;o<e.length;o++){var i=e[o];if(!i||!Array.isArray(i))throw new Error("Unexpected response from levels call");n=n.concat(i)}r("setLevelsForClassroom",{classroomId:t,levels:Object.freeze(n)})})).catch((function(e){return noty({text:"Fetch levels failure"+e,type:"error"})}))}}}}
vendor: 4,186 bytes, line 2
2,918504:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&i.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
vendor: 4,631 bytes, line 2
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function i(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))}}t.Z=void 0;var s,c,u=n(685140);t.Z={namespaced:!0,state:{lowUsageUsers:[]},mutations:{setLowUsageUsers:function(e,t){e.lowUsageUsers=t},addAction:function(e,t){var n=t.lowUsageUserId,r=t.action,o=e.lowUsageUsers.find((function(e){return e._id===n})),i=e.lowUsageUsers.indexOf(o);o.actions||(o.actions=[]),o.actions.push(r),e.lowUsageUsers.splice(i,1,o)}},actions:{fetchLowUsageUsers:(c=a(o().mark((function e(t){var n,r;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.commit,e.next=3,u.fetchAll();case 3:r=e.sent,n("setLowUsageUsers",r.data);case 5:case"end":return e.stop()}}),e)}))),function(e){return c.apply(this,arguments)}),addActionToUser:(s=a(o().mark((function e(t,n){var r,i,a,s;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,i=n.lowUsageUserId,a=n.action,e.next=4,u.addAction({lowUsageUserId:i,action:a});case 4:s=e.sent,r("addAction",{lowUsageUserId:i,action:s.data});case 6:case"end":return e.stop()}}),e)}))),function(e,t){return s.apply(this,arguments)})},getters:{getLowUsageUsers:function(e){return e.lowUsageUsers}}}},583701:(e,t,n)=>{"use strict";var r=n(619755);t.Z=void 0;var o,i=(o=n(250636))&&o.__esModule?o:{default:o};function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=n(409240),d=n(249449),p=n(573131),f=n(694879),h=n(299498),m=i.default.zipObject(i.default.keys(l.properties).map((function(e){return[e,null]}))),g=d.SALES_CALL_ACCESS_LEVEL,y=p.SALES_CALL_ACCESS_LEVEL;t.Z={namespaced:!0,state:i.default.cloneDeep(m),getters:{currentUserId:function(e){return e._id},isInGodMode:function(e){return((e||{}).permissions||[]).indexOf(d.PERMISSIONS.GOD_MODE)>-1||((e||{}).permissions||[]).indexOf(d.PERMISSIONS.ONLINE_TEACHER)>-1},isAnonymous:function(e){return!0===e.anonymous},isStudent:function(e){return"student"===(e||{}).role},isTeacher:function(e,t){return d.isTeacher(e,t)},isParent:function(e){return"parent"===(e||{}).role},isHomePlayer:function(e){return!(e||{}).role&&!1===e.anonymous},isAdmin:function(e){return(e.permissions||[]).indexOf(d.PERMISSIONS.COCO_ADMIN)>-1},isLicensor:function(e){return((null!=e?e.permissions:void 0)||[]).indexOf(d.PERMISSIONS.LICENSOR)>-1},isAPIClient:function(e){return((null!=e?e.permissions:void 0)||[]).indexOf(d.PERMISSIONS.API_CLIENT)>-1},isSchoolAdmin:function(e){return((null!=e?e.permissions:void 0)||[]).indexOf(d.PERMISSIONS.SCHOOL_ADMINISTRATOR)>-1},preferredLocale:function(e){return e.preferredLanguage||"en-US"},isPaidTeacher:function(e,t,n,r){var o=r["prepaids/getPrepaidsByTeacher"](me.get("_id"));if(me.isPaidTeacher())return!0;if(!o)return!1;var i=o.pending,a=o.empty,s=o.available;return i.length+a.length+s.length>0||me.isPremium()},userAccessLevel:function(e,t){var n="free";return t.isPaidTeacher?n="paid":me.activeSalesCallProducts().length>0&&(n=g),n},isContentAccessible:function(e,t){return function(e){var n=t.userAccessLevel;return u(u({free:["free"]},g,["free",y]),"paid",["free",y,"paid"])[n].includes(e)}},getCh1Avatar:function(e){return(e.ozariaUserOptions||{}).avatar},inEU:function(e){if(e.country)return h.inEU(e.country)},isSmokeTestUser:function(e){return h.isSmokeTestEmail(e.email)},latestCookieConsent:function(e){var t=(e.consentHistory||[]).filter((function(e){return"cookies"===e.type}));return 0===t.length?null:i.default.max(t,(function(e){return new Date(e.date).getTime()}))},hasSubscription:function(e){return!(!e.payPal||!e.payPal.billingAgreementID)||!(!e.stripe||!e.stripe.sponsorID&&!e.stripe.subscriptionID&&!0!==e.stripe.free)||!(!e.stripe||"string"!=typeof e.stripe.free)&&new Date<new Date(e.stripe.free)},isPremium:function(e,t){return t.isAdmin||t.hasSubscription||t.isInGodMode}},mutations:{updateUser:function(e,t){return i.default.assign(e,r.extend(!0,{},t))}},actions:{save:function(e,t){var n=e.state,r=i.default.assign({},n,t);return f.users.put(r).then((function(){return me.set(t),n}))},setCh1Avatar:function(e,t){var n=e.state,r=e.commit,o=t.cinematicThangTypeId,i=t.cinematicPetThangId,a=t.avatarCodeString;if(!(o&&i&&a))throw new Error("Require a cinematicThangTypeId, cinematicPetThangId, and avatarCodeString");r("updateUser",{ozariaUserOptions:c(c({},n.ozariaUserOptions||{}),{},{avatar:{cinematicThangTypeId:o,cinematicPetThangId:i,avatarCodeString:a}})})},authenticated:function(e,t){(0,e.commit)("updateUser",t)}}}},718515:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={namespaced:!0,state:{modals:[]},mutations:{addModal:function(e,t){-1===e.modals.findIndex((function(e){return e.name===t.name}))&&(e.modals.push(t),e.modals.sort((function(e,t){return t.priority-e.priority})))},removeModal:function(e,t){var n=e.modals.findIndex((function(e){return e.name===t}));-1!==n&&e.modals.splice(n,1)}},getters:{getTopModal:function(e){var t=e.modals[0];return t?t.seenPromotionsProperty?me.shouldSeePromotion(t.seenPromotionsProperty)?t:null:t:null}}}},679086:(e,t,n)=>{"use strict";t.Z=void 0;var r=n(326067);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(){i=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,017 bytes, line 2
2))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==o(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
vendor: 11,084 bytes, line 2
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function a(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z={namespaced:!0,state:{loading:!0,paymentGroup:{}},mutations:{setPaymentGroup:function(e,t){e.paymentGroup=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)},setLoading:function(e,t){e.loading=t}},getters:{paymentGroup:function(e){return e.paymentGroup},loading:function(e){return e.loading}},actions:{fetch:function(e,t){return(n=i().mark((function n(){var o,a,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.commit,a=e.state,o("setLoading",!0),a.paymentGroup.slug!==t){n.next=5;break}return o("setLoading",!1),n.abrupt("return");case 5:return n.prev=5,n.next=8,(0,r.getPaymentGroup)(t);case 8:s=n.sent,n.next=15;break;case 11:return n.prev=11,n.t0=n.catch(5),console.error("GET paymentGroup failed",n.t0),n.abrupt("return");case 15:o("setPaymentGroup",s.data),o("setLoading",!1);case 17:case"end":return n.stop()}}),n,null,[[5,11]])})),function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})();var n}}}},461487:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=n(811385);function i(){i=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function a(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var u=function(e,t){if(e.priority||t.priority)return(t.priority||0)-(e.priority||0);var n=e.uploadDate?new Date(e.uploadDate).getTime():0;return(t.uploadDate?new Date(t.uploadDate).getTime():0)-n};t.Z={namespaced:!0,state:{loading:null,podcasts:[]},mutations:{setLoading:function(e,t){e.loading=t},setPodcasts:function(e,t){var n;e.podcasts=function(e){if(Array.isArray(e))return c(e)}(n=t.sort(u))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},setPodcast:function(e,t){var n=e.podcasts.findIndex((function(e){return e.id===t.id}));-1===n?e.podcasts.push(t):e.podcasts.splice(n,1,t)}},getters:{podcasts:function(e){return e.podcasts},podcast:function(e){return function(t){return e.podcasts.find((function(e){return e._id===t||e.slug===t}))}}},actions:{fetchAll:function(e){return s(i().mark((function t(){var n,r;return i().wrap((function(t){for(;;
vendor: 4,272 bytes, line 2
2)switch(t.prev=t.next){case 0:return(n=e.commit)("setLoading",!0),t.next=4,(0,o.getPodcasts)();case 4:r=t.sent,n("setPodcasts",r),n("setLoading",!1);case 7:case"end":return t.stop()}}),t)})))()},fetch:function(e,t){return s(i().mark((function n(){var r,a,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,a=t.podcastId,n.next=4,(0,o.getPodcast)(a);case 4:s=n.sent,r("setPodcast",s);case 6:case"end":return n.stop()}}),n)})))()}}}},137159:(e,t,n)=>{"use strict";var r=n(619755);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.Z=void 0;var i=s(n(867576)),a=s(n(760185));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(){l=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==o(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);
vendor: 5,952 bytes, line 2
2if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,u,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function d(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}var f,h=n(910852),m=n(249449),g=n(696624);t.Z={namespaced:!0,state:{loading:{byTeacher:{}},prepaids:{byTeacher:{}},joiners:{byPrepaid:{}},fetchedPrepaids:{}},mutations:{setFetchedPrepaidsForTeacher:function(e,t){Vue.set(e.fetchedPrepaids,t,!0)},toggleLoadingForTeacher:function(e,t){Vue.set(e.loading.byTeacher,t,!e.loading.byTeacher[t])},addTestLicenseToTeacher:function(e,t){var n=t.teacherId,r=t.prepaid,o=e.prepaids.byTeacher[n]||{expired:[],pending:[],empty:[],available:[],testOnlyAvaliable:[],testOnlyExpired:[]};o.testOnlyAvaliable.push(r),Vue.set(e.prepaids.byTeacher,n,o)},addPrepaidsForTeacher:function(e,t){var n=t.teacherId,r=t.prepaids,o={expired:[],pending:[],empty:[],available:[],testOnlyAvaliable:[],testOnlyExpired:[]};r.forEach((function(e){var t;null!==(t=e.properties)&&void 0!==t&&t.testStudentOnly?e.endDate&&new Date(e.endDate)<new Date?o.testOnlyExpired.push(e):o.testOnlyAvaliable.push(e):e.endDate&&new Date(e.endDate)<new Date?o.expired.push(e):e.startDate&&new Date(e.startDate)>new Date?o.pending.push(e):e.maxRedeemers-(e.redeemers||[]).length<=0||e.maxRedeemers<=0?o.empty.push(e):o.available.push(e)})),Vue.set(e.prepaids.byTeacher,n,o)},setJoinersForPrepaid:function(e,t){var n=t.prepaidId,r=t.joiners;Vue.set(e.joiners.byPrepaid,n,r)},addJoinerForPrepaid:function(e,t){var n=t.prepaidId,r=t.joiner,o=e.joiners.byPrepaid[n]||[];o.push({_id:r._id,firstName:r.firstName,lastName:r.lastName,email:r.email}),Vue.set(e.joiners.byPrepaid,n,o)},updateJoinerForPrepaid:function(e,t){var n=t.prepaid,r=t.userID,o=t.maxRedeemers,i=n._id,a=e.j
2oiners.byPrepaid[i]||[];a.forEach((function(e){e._id===r&&(e.maxRedeemers=o,(o<=0||o>=n.maxRedeemers)&&delete e.maxRedeemers)})),Vue.set(e.joiners.byPrepaid,i,a)},revokeJoiner:function(e,t){var n=t.prepaidId,r=t.joiner,o=(e.joiners.byPrepaid[n]||[]).filter((function(e){return e._id!==r._id}));Vue.set(e.joiners.byPrepaid,n,o)}},getters:{getPrepaidsByTeacher:function(e){return function(t){return e.prepaids.byTeacher[t]}},getLicensesStatsByTeacher:function(e,t){return function(e){var n=t.getPrepaidsByTeacher(e);if(!n)return{totalAvailableSpots:0,totalSpots:0};var r=n.available.map((function(e){return new h(e)})),o=r.reduce((function(e,t){return e+t.openSpots()}),0),i=r.reduce((function(e,t){return e+t.totalSpots()}),0);return{totalAvailableSpots:o,totalSpots:i,usedLicenses:i-o}}},getActiveLicensesForTeacher:function(e,t){return function(e){var n=t.getPrepaidsByTeacher(e);if(!n)return[];var r=[];return r.concat(n.available).concat(n.empty).concat(n.pending).concat(n.testOnlyAvaliable)}},getExpiredLicensesForTeacher:function(e,t){return function(e){var n=t.getPrepaidsByTeacher(e);if(!n)return[];var r=[];return r.concat(n.expired).concat(n.testOnlyExpired)}},getJoinersForPrepaid:function(e){return function(t){return e.joiners.byPrepaid[t]||[]}},getPossiblePrepaidFetchStates:function(e){return{NOT_START:"not start",FETCHING:"fetching",FETCHED:"fetched"}},getCurrentFetchStateForPrepaid:function(e,t){return function(n){return e.fetchedPrepaids[n]?e.loading.byTeacher[n]?t.getPossiblePrepaidFetchStates.FETCHING:t.getPossiblePrepaidFetchStates.FETCHED:t.getPossiblePrepaidFetchStates.NOT_START}}},actions:{ensurePrepaidsLoadedForTeacher:(f=p(l().mark((function e(t,n){var r,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.state,t.commit,o=t.dispatch,r.prepaids.byTeacher[n]||r.fetchedPrepaids[n]){e.next=4;break}return e.next=4,o("fetchPrepaidsForTeacher",{teacherId:n});case 4:case"end":return e.stop()}}),e)}))),function(e,t){return f.apply(this,arguments)}),fetchPrepaidsForTeacher:function(e){var t=e.state,n=e.commit,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.teacherId,a=r.sharedClassroomId,s=r.includeShared,c=void 0===s||s;if(!t.fetchedPrepaids[o]||!t.loading.byTeacher[o]){n("toggleLoadingForTeacher",o),n("setFetchedPrepaidsForTeacher",o);var u={sharedClassroomId:a};return c&&(u.includeShared=!0),i.default.getByCreator(o,{data:u}).then((function(e){if(!e)throw new Error("Unexpected response from fetch classrooms API.");n("addPrepaidsForTeacher",{teacherId:o,prepaids:e})})).catch((function(e){return noty({text:"Fetch prepaids failure"+e,type:"error",layout:"topCenter",timeout:2e3})})).finally((function(){return n("toggleLoadingForTeacher",o)}))}},fetchPrepaidsForAPIClient:function(e,t){var n=e.commit,r=t.clientId,o=t.teacherId;return n("toggleLoadingForTeacher",o),i.default.getByClient(r).then((function(e){if(!e)throw new Error("Unexpected response from fetch classrooms API.");n("addPrepaidsForTeacher",{teacherId:o,prepaids:e})})).catch((function(e){return noty({text:"Fetch prepaids failure"+e,type:"error",layout:"topCenter",timeout:2e3})})).finally((function(){return n("toggleLoadingForTeacher",o)}))},joinPrepaidByCodes:function(e,t){return e.commit,i.default.joinByCodes(t)},fetchJoinersForPrepaid:function(e,t){var n=e.commit;return i.default.fetchJoiners({prepaidID:t}).then((function(e){if(!e)throw new Error("Unexpected response from fetch joiners API.");n("setJoinersForPrepaid",{prepaidId:t,joiners:e})})).catch((function(e){return console.error("Error in fetching prepaid joiners:",e)}))},addJoinerForPrepaid:function(e,t){var n=e.commit,r=t.prepaidId,o=t.email;return a.default.getByEmail({email:o}).then((function(e){e&&i.default.addJoiner({prepaidID:r,userID:e._id}).then((function(){n("addJoinerForPrepaid",{prepaidId:r,joiner:e})})).catch((function(e){return noty({text:"Error:"+e.message,type:"error",layout:"topCenter",timeout:2e3})}))})).catch((function(e){throw console.error("Error in adding prepaid joiner:",e),e}))},revokeJoiner:function(e,t){return p(l().mark((function n(){var r,o,s,c;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,o=t.prepaidId,s=t.email,n.prev=2,n.next=5,a.default.getByEmail({email:s});case 5:if(!(c=n.sent)){n.next=16;break}return n.prev=7,n.next=10,i.default.revokeJoiner({prepaidID:o,userID:c._id});case 10:r("revokeJoiner",{prepaidId:o,joiner:c}),n.next=16;break;case 13:n.prev=13,n.t0=n.catch(7),noty({text:"Error:"+n.t0.message,type:"error",layout:"topCenter",timeout:2e3});case 16:n.next=22;break;case 18:throw n.prev=18,n.t1=n.catch(2),console.error("Error in revoking prepaid joiner:",n.t1),n.t1;case 22:case"end":return n.stop()}}),n,null,[[2,18],[7,13]])})))()},applySpecificLicenses:function(e,t){return p(l().mark((function n(){var o,i,a,s,u,d,p,f,g,y,v,b,_,w,S,C,k,x,E,O,T,A;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(i=e.getters,a=t.selectedId,s=t.members,u=t.teacherId,d=t.sharedClassroomId,p=i.getPrepaidsByTeacher(u)){n.next=5;break}throw new Error("no prepaids for the teacher");case 5:if(f=p.available.find((function(e){return e._id===a}))){n.next=9;break}return noty({text:"Something went wrong, selected license no longer available.",type:"error"}),n.abrupt("return");case 9:if(g=new h(f),y=s.map((function(e){return new m(e)})),v=y.filter((function(e){var t=g.numericalCourses();return t^t&e.prepaidNumericalCourses()})),b=g.get("maxRedeemers")-((null===(o=g.get("members"))||void 0===o?void 0:o.length)||0),_=b>=v.length,w=v.length-b,_){n.next=18;break}return noty({text:r.i18n.t("teachers.need_more_license",{additionalLicensesNum:w}),layout:"center",type:"error",killer:!0,timeout:5e3}),n.abrupt("return");case 18:if(!(S=v.length)){n.next=25;break}return C=!1,n.next=23,new Promise((function(e){return noty({text:r.i18n.t("teachers.confirm_apply_license",{numberEnrolled:S,numberRemaining:b-v.length}),type:"info",buttons:[{addClass:"btn btn-primary",text:r.i18n.t("modal.okay"),onClick:function(t){C=!0,t.close(),e()}},{addClass:"btn btn-danger",text:r.i18n.t("modal.cancel"),onClick:function(t){t.close(),e()}}]})}));case 23:if(C){n.next=25;break}return n.abrupt("return");case 25:k=[],x=c(v);try{for(x.s();!(E=x.n()).done;)O=E.value,k.push(g.redeem(O.get("_id"),{data:{sharedClassroomId:d}}))}catch(e){x.e(e)}finally{x.f()}return n.next=30,Promise.allSettled(k);case 30:T=n.sent,A=0,T.forEach((function(e,t){"rejected"===e.status&&(console.error("Redeem student-".concat(v[t].get("_id")," failed.")),A+=1)})),A&¬y({text:r.i18n.t("teachers.fail_get_license",{fails:A}),type:"error"});case 34:case"end":return n.stop()}}),n)})))()},applyLicenses:function(e,t){return p(l().mark((function n(){var o,i,a,s,u,d,p,f,g,y,v,b,_,w,S,C,k,x,E,O,T;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.getters,i=t.members,a=t.teacherId,s=t.sharedClassroomId,u=o.getPrepaidsByTeacher(a)){n.next=5;break}throw new Error("no prepaids for the teacher");case 5:if(d=i.map((function(e){return new m(e)})),p=u.available.map((function(e){return new h(e)})),f=d.filter((function(e){return!e.isEnrolled()})),g=o.getLicensesStatsByTeacher(a),y=g.totalAvailableSpots,v=y>=f.length,b=f.length-y,v){n.next=14;break}return noty({text:r.i18n.t("teachers.need_more_license",{additionalLicensesNum:b}),layout:"center",type:"error",killer:!0,timeout:5e3}),n.abrupt("return");case 14:if(!(_=f.length)){n.next=21;break}return w=!1,n.next=19,new Promise((function(e){return noty({text:r.i18n.t("teachers.confirm_apply_license",{numberEnrolled:_,numberRemaining:y-f.length}),type:"info",buttons:[{addClass:"btn btn-primary",text:r.i18n.t("modal.okay"),onClick:function(t){w=!0,t.close(),e()}},{addClass:"btn btn-danger",text:r.i18n.t("modal.cancel"),onClick:function(t){t.close(),e()}}]})}));case 19:if(w){n.next=21;break}return n.abrupt("return");case 21:S=[],C=c(p),n.prev=23,C.s();case 25:if((k=C.n()).done){n.next=35;break}if(x=k.value,0!==f.length){n.next=29;break}return n.abrupt("break",35);case 29:if(!(!Math.min(f.length,x.openSpots())>0)){n.next=31;break}return n.abrupt("continue",33);case 31:for(E=Math.min(f.length,x.openSpots()),O=0;O<E;O++)T=f.pop(),S.push(x.redeem(T.get("_id"),{data:{sharedClassroomId:s}}));case 33:n.next=25;break;case 35:n.next=40;break;case 37:n.prev=37,n.t0=n.catch(23),C.e(n.t0);case 40:return n.prev=40,C.f(),n.finish(40);case 43:return n.next=45,Promise.all(S);case 45:case"end":return n.stop()}}),n,null,[[23,37,40,43]])})))()},revokeLicenses:function(e,t){return p(l().mark((function e(){var n,o,i,a,s,u,d,f,y,v;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.members,o=t.sharedClassroomId,i=t.confirmed,a=void 0!==i&&i,s=t.updateUserProducts,u=void 0!==s&&s,(d=n.map((function(e){return e instanceof m?e:new m(e)})).filter((function(e){return e.isEnrolled()&&"course"===e.prepaidType()}))).length>0){e.next=6;break}return noty({text:r.i18n.t("teachers.no_licenses_applied")}),e.abrupt("return");case 6:if(a){e.next=11;break}return e.next=9,new Promise((function(e){return noty({text:r.i18n.t("teachers.revoke_license_tips"),buttons:[{addClass:"btn btn-primary",text:r.i18n.t("modal.okay"),onClick:function(t){a=!0,t.close(),e()}},{addClass:"btn btn-danger",text:r.i18n.t("modal.cancel"),onClick:function(t){t.close(),e()}}]})}));
2case 9:if(a){e.next=11;break}return e.abrupt("return");case 11:f=c(d),e.prev=12,v=l().mark((function e(){var t,n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=y.value,n=t.activeProducts("course"),e.next=4,g.map(n,function(){var e=p(l().mark((function e(n){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=new h({_id:n.prepaid,type:"course"}),e.next=3,new Promise((function(e,n){return r.revoke(t,{success:e,error:function(e,t){var r;return noty({text:(null==t||null===(r=t.responseJSON)||void 0===r?void 0:r.message)||"The revocation of the license failed",type:"error"}),n(t)},data:{sharedClassroomId:o}})}));case 3:u&&t.set("products",(t.get("products")||[]).map((function(e){return e.prepaid===n.prepaid&&(e.endDate=(new Date).toISOString()),e})));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 4:case"end":return e.stop()}}),e)})),f.s();case 15:if((y=f.n()).done){e.next=19;break}return e.delegateYield(v(),"t0",17);case 17:e.next=15;break;case 19:e.next=24;break;case 21:e.prev=21,e.t1=e.catch(12),f.e(e.t1);case 24:return e.prev=24,f.f(),e.finish(24);case 27:case"end":return e.stop()}}),e,null,[[12,21,24,27]])})))()},getTestLicense:function(e,t){return p(l().mark((function n(){var r,o;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,o=t.teacherId,n.abrupt("return",i.default.getOrCreateTestLicense().then((function(e){e&&r("addTestLicenseToTeacher",{teacherId:o,prepaid:e})})));case 3:case"end":return n.stop()}}),n)})))()},setJoinerMaxRedeemers:function(e,t){return p(l().mark((function n(){var r,o,a,s,c;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.commit,o=t.prepaid,a=t.userID,s=t.maxRedeemers,c=o._id,n.abrupt("return",i.default.setJoinerMaxRedeemers({prepaidID:c,userID:a,maxRedeemers:s}).then((function(){return r("updateJoinerForPrepaid",{prepaid:o,userID:a,maxRedeemers:s})})).catch((function(e){var t;noty({text:(null==e||null===(t=e.responseJSON)||void 0===t?void 0:t.message)||"The update of the joiner failed",type:"error"})})));case 4:case"end":return n.stop()}}),n)})))()}}}},288176:(e,t,n)=>{"use strict";t.Z=void 0;var r=i(n(408939)),o=i(n(250636));function i(e){return e&&e.__esModule?e:{default:e}}var a=n(299498);t.Z={namespaced:!0,state:{loading:{products:!1},products:[]},mutations:{toggleLoadingProducts:function(e){e.loading.products=!e.loading.products},addProducts:function(e,t){var n=t.products;e.products=n}},actions:{loadProducts:function(e){var t=e.commit,n=e.getters;t("toggleLoadingProducts");var o={};n.activeCouponID&&(o.coupon=n.activeCouponID);var i=(new r.default).fetch({data:o});i.done((function(e){return t("addProducts",{products:e})})),i.fail((function(){return noty({text:"Failed to load product pricing",type:"error"})})),i.always((function(){return t("toggleLoadingProducts")}))}},getters:{activeCouponID:function(){var e=a.getQueryVariable("coupon")||me.get("country");return"brazil"===e?"brazil-annual":e},basicSubscriptionForCurrentUser:function(e){if(Array.isArray(e.products)&&0!==e.products.length){var t=new r.default;return t.add(e.products),t.getBasicSubscriptionForUser(window.me).toJSON()}},basicAnnualSubscriptionForCurrentUser:function(e){if(Array.isArray(e.products)&&0!==e.products.length){var t=new r.default;return t.add(e.products),t.getBasicAnnualSubscriptionForUser(window.me).toJSON()}},basicAnnualSubscriptionPrice:function(e,t){if(!t.basicAnnualSubscriptionForCurrentUser||!t.activeCouponID)return 99;var n=o.default.find(t.basicAnnualSubscriptionForCurrentUser.coupons,{code:t.activeCouponID});if(!n)return 99;var r=parseInt(n.amount,10);return isNaN(r)?99:(n.amount/100).toFixed(2)},lifetimeSubscriptionForCurrentUser:function(e){if(Array.isArray(e.products)&&0!==e.products.length){var t=new r.default;return t.add(e.products),t.getLifetimeSubscriptionForUser(window.me).toJSON()}}}}},185241:(e,t,n)=>{"use strict";var r=n(619755);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.Z=void 0;var i,a=n(845057),s=(i=n(249449))&&i.__esModule?i:{default:i};function c(){c=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,017 bytes, line 2
2))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==o(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function u(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function l(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){u(i,r,o,a,s,"next",e)}function s(e){u(i,r,o,a,s,"throw",e)}a(void 0)}))}}t.Z={namespaced:!0,state:{schoolAdminId:"",selectedAdministeredTeacherId:"",selectedAdministeredTeacherClassroomId:"",loading:!1,pageTitle:"",componentName:""},mutations:{setSchoolAdminId:function(e,t){e.schoolAdminId!==t&&(e.schoolAdminId=t)},setSelectedAdministeredTeacherId:function(e,t){e.selectedAdministeredTeacherId=t},setSelectedAdministeredTeacherClassroomId:function(e,t){e.selectedAdministeredTeacherClassroomId=t},startLoading:function(e){e.loading=!0},stopLoading:function(e){e.loading=!1},resetLoadingState:function(e){e.loading=!1},setPageTitle:function(e,t){var n="i18n:";t.startsWith(n)?e.pageTitle=r.i18n.t(t.split(n)[1]):e.pageTitle=t},setComponentName:function(e,t){e.componentName=t}},getters:{schoolAdminId:function(e){return e.schoolAdminId},selectedAdministeredTeacherId:function(e){return e.selectedAdministeredTeacherId},selectedAdministeredTeacherClassroomId:function(e){return e.selectedAdministeredTeacherClassroomId},selectedAdministeredTeacherName:function(e,t){if(e.selectedAdministeredTeacherId){var n=t.getAdministratedTeacherData;return s.default.broadName(n)}return""},getLoadingState:function(e){return e.loading},getPageTitle:function(e){return e.pageTitle},getPageBreadCrumbs:function(e,t){if(!Object.values(a.COMPONENT_NAMES.ADMINISTERED_TEACHERS).includes(e.componentName))return[];var n=t.selectedAdministeredTeacherName,r=e.selectedAdministeredTeacherId,o="",i=[];return e.selectedAdministeredTeacherClassroomId&&(o=t.getAdministratedTeacherClassroomData.name),e.componentName===a.COMPONENT_NAMES.ADMINISTERED_TEACHERS.ALL_CLASSES?i=[{href:"/school-administrator",text:a.PAGE_TITLES[a.COMPONENT_NAMES.MY_SCHOOLS]},{text:"".concat(n,"'s Classes")}]:e.componentName===a.COMPONENT_NAMES.ADMINISTERED_TEACHERS.TEACHER_LICENSES?i=[{href:"/school-administrator",text:a.PAGE_TITLES[a.COMPONENT_NAMES.MY_SCHOOLS]},{text:"".concat(n,"'s Licenses")}]:e.componentName===a.COMPONENT_NAMES.ADMINISTERED_TEACHERS.CLASS_PROGRESS?i=[{href:"/school-administrator",text:a.PAGE_TITLES[a.COMPONENT_NAMES.MY_SCHOOLS]},{href:"/school-administrator/teacher/".concat(r),text:"".concat(n,"'s Classes")},{text:"".concat(o," Progress")}]:e.componentName===a.COMPONENT_NAMES.ADMINISTERED_TEACHERS.CLASS_PROJECTS&&(i=[{href:"/school-administrator",text:a.PAGE_TITLES[a.COMPONENT_NAMES.MY_SCHOOLS]},{href:"/school-administrator/teacher/".concat(r),text:"".concat(n,"'s Classes")},{text:"".concat(o," Projects")}]),i},getComponentName:function(e){return e.componentName},getActiveLicenses:function(e,t,n,r){return e.schoolAdminId&&r["prepaids/getActiveLicensesForTeacher"](e.schoolAdminId)||[]},getExpiredLicenses:function(e,t,n,r){return e.schoolAdminId&&r["prepaids/getExpiredLicensesForTeacher"](e.schoolAdminId)||[]},getAdministratedTeachers:function(e,t,n,r){return e.schoolAdminId&&r["schoolAdministrator/getTeachers"]||[]},getAdministratedTeacherData:function(e,t,n,r){return e.selectedAdministeredTeacherId&&(r["schoolAdministrator/getTeachers"]||[]).find((function(t){return t._id===e.selectedAdministeredTeacherId}))||{}},getAdministratedTeacherClassroomData:function(e,t,n,r){return e.selectedAdministeredTeacherId&&e.selectedAdministeredTeacherClassroomId&&(r["classrooms/getActiveClassroomsByTeacher"](e.selectedAdministeredTeacherId)||[]).find((function(t){return t._id===e.selectedAdministeredTeacherClassroomId}))||{}},getAllAdministratedClassrooms:function(e,t,n,r){var o=t.getAdministratedTeachers,i=[];return o.forEach((function(e){var t=r["classrooms/getClassroomsByTeacher"](e._id
2)||{};i=(i=i.concat(t.active||[])).concat(t.archived||[])})),i}},actions:{fetchData:function(e,t){return l(c().mark((function n(){var r,o,i,s,u,l,d;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.state,o=e.dispatch,i=e.commit,s=t.componentName,u=t.options,l=void 0===u?{}:u,r.schoolAdminId){n.next=6;break}return console.error("Error in fetching data: schoolAdminId is not set"),noty({text:"Error in fetching data",type:"error",layout:"center",timeout:2e3}),n.abrupt("return");case 6:if(i("startLoading"),i("setComponentName",s),n.prev=8,o("fetchDataCurriculumGuide"),s!==a.COMPONENT_NAMES.SCHOOL_ADMIN_LICENSES){n.next=15;break}return n.next=13,o("fetchDataMyLicenses",l);case 13:n.next=22;break;case 15:if(s!==a.COMPONENT_NAMES.MY_SCHOOLS){n.next=20;break}return n.next=18,o("fetchDataMySchools",l);case 18:n.next=22;break;case 20:return n.next=22,o("fetchDataAdministratedTeachers",l);case 22:n.next=28;break;case 24:n.prev=24,n.t0=n.catch(8),console.error("Error in fetching data:",n.t0),noty({text:"Error in fetching data",type:"error",layout:"topCenter",timeout:2e3});case 28:return n.prev=28,i("stopLoading"),l.loadedEventName&&(null===(d=window.tracker)||void 0===d||d.trackEvent(l.loadedEventName,{category:"SchoolAdmin"})),n.finish(28);case 32:case"end":return n.stop()}}),n,null,[[8,24,28,32]])})))()},fetchDataMySchools:function(e){var t=arguments;return l(c().mark((function n(){var r,o,i;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.state,r=e.dispatch,o=e.getters,t.length>1&&void 0!==t[1]&&t[1],n.next=4,r("schoolAdministrator/fetchTeachers",void 0,{root:!0});case 4:return i=[],o.getAdministratedTeachers.forEach((function(e){i.push(r("userStats/fetchStatsForUser",e._id,{root:!0}))})),n.next=9,Promise.all(i);case 9:case"end":return n.stop()}}),n)})))()},fetchDataAdministratedTeachers:function(e){var t=arguments;return l(c().mark((function n(){var r,o,i;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.state,r=e.dispatch,o=e.getters,t.length>1&&void 0!==t[1]&&t[1],n.next=4,r("schoolAdministrator/fetchTeachers",void 0,{root:!0});case 4:return i=[],o.getAdministratedTeachers.forEach((function(e){i.push(r("classrooms/fetchClassroomsForTeacher",{teacherId:e._id},{root:!0}))})),n.next=9,Promise.all(i);case 9:case"end":return n.stop()}}),n)})))()},fetchDataMyLicenses:function(e){var t=arguments;return l(c().mark((function n(){var r,o,i,a;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,i=t.length>1&&void 0!==t[1]?t[1]:{},(a=[]).push(o("prepaids/fetchPrepaidsForTeacher",{teacherId:r.schoolAdminId},{root:!0})),a.push(o("fetchDataAdministratedTeachers",i)),n.next=7,Promise.all(a);case 7:o("fetchDataMyLicensesAsync",i);case 8:case"end":return n.stop()}}),n)})))()},fetchDataMyLicensesAsync:function(e){var t=arguments;return l(c().mark((function n(){var r,o,i;return c().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.state,r=e.dispatch,o=e.getters,t.length>1&&void 0!==t[1]&&t[1],i=[],(o.getActiveLicenses.concat(o.getExpiredLicenses)||[]).map((function(e){return e._id})).forEach((function(e){i.push(r("users/fetchCreatorOfPrepaid",e,{root:!0})),i.push(r("prepaids/fetchJoinersForPrepaid",e,{root:!0}))})),n.next=8,Promise.all(i);case 8:case"end":return n.stop()}}),n)})))()},fetchDataCurriculumGuide:function(e){return l(c().mark((function t(){var n,r;return c().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e.state,r=e.dispatch,e.rootGetters,r("prepaids/fetchPrepaidsForTeacher",{teacherId:n.schoolAdminId},{root:!0}),r("teacherDashboard/fetchDataCurriculumGuide",void 0,{root:!0});case 3:case"end":return t.stop()}}),t)})))()}}}},753923:(e,t,n)=>{"use strict";t.Z=void 0;var r,o=(r=n(760185))&&r.__esModule?r:{default:r};t.Z={namespaced:!0,state:{loading:{classrooms:!1,teachers:!1},isSchoolAdministrator:!1,administratedTeachers:[]},mutations:{toggleLoading:function(e,t){return e.loading[t]=!e.loading[t]},addTeachers:function(e,t){e.administratedTeachers=t}},getters:{getTeachers:function(e){return e.administratedTeachers}},actions:{fetchTeachers:function(e){var t=e.commit,n=e.rootState.me.administratedTeachers||[];if(0!==n.length){t("toggleLoading","teachers");for(var r=Math.ceil(n.length/100),i=[],a=0,s=0;s<r;s++){var c=a+100;i.push(o.default.fetchByIds({fetchByIds:n.slice(a,c),includeTrialRequests:!0}).then((function(e){if(e)return e;throw new Error("Unexpected response from teachers by ID API.")}
vendor: 4,670 bytes, line 2
2))),a=c}return Promise.all(i).then((function(e){return e.flat()})).then((function(e){return t("addTeachers",e)})).catch((function(e){return noty({text:"Fetch teachers failure"+e,type:"error"})})).finally((function(){return t("toggleLoading","teachers")}))}}}}},573324:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.findArena=t.default=t.currentRegularArena=t.currentChampionshipArena=void 0;var o,i=n(116842),a=n(94600),s=n(299498),c=n(341912),u=(o=n(250636))&&o.__esModule?o:{default:o};function l(){l=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
vendor: 4,489 bytes, line 2
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,u,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function d(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=b(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||b(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function h(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){f(i,r,o,a,s,"next",e)}function s(e){f(i,r,o,a,s,"throw",e)}a(void 0)}))}}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?m(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){return function(e){if(Array.isArray(e))return _(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||b(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){if(e){if("string"==typeof e)return _(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_(e,t):void 0}}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var w=t.currentRegularArena=u.default.last(u.default.filter((0,s.activeArenas)(),(function(e){return"regular"===e.type||e.noRegular}))),S=t.currentChampionshipArena=u.default.last(u.default.filter((0,s.activeArenas)(),(function(e){return"championship"===e.type}))),C=t.findArena=function(e,t){return(0,s.activeAndPastArenas)().find((function(n){return n.season===e&&n.type===t}))};t.default={namespaced:!0,state:{currentRegularArena:w,currentChampionshipArena:S,currentRegularArenaOriginal:w?w.levelOriginal:null,currentChampionshipArenaOriginal:S?S.levelOriginal:null,loading:!1,mySession:{},myChampionshipSession:{},globalRankings:{globalTop:[],playersAbove:[],playersBelow:[],globalLeaderboardPlayerCount:0},championshipGlobalRankings:{globalTop:[],playersAbove:[],playersBelow:[],globalLeaderboardPlayerCount:0},championshipRankingsForLeague:{},rankingsForLeague:{},codePointsRankingsForLeague:{},usableArenas:[]},mutations:{setLoading:function(e,t){e.loading=t},paginateArenas:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"next",o=(null===(t=e.currentRegularArena)||void 0===t?void 0:t.season)||(null===(n=e.currentChampionshipArena)||void 0===n?void 0:n.season),i="next"===r?1:-1,a=C(o+i,"regular"),s=C(o+i,"championship");Vue.set(e,"currentRegularArena",a),Vue.set(e,"currentChampionshipArena",s),Vue.set(e,"currentRegularArenaOriginal",a?a.levelOriginal:null),Vue.set(e,"currentChampionshipArenaOriginal",s?s.levelOriginal:null)},setGlobalRanking:function(e,t){Vue.set(e.globalRankings,"globalTop",t)},setGlobalAbove:function(e,t){Vue.set(e.globalRankings,"playersAbove",t)},setGlobalBelow:function(e,t){Vue.set(e.globalRankings,"playersBelow",t)},setGlobalLeaderboardPlayerCount:function(e,t){Vue.set(e.globalRankings,"globalLeaderboardPlayerCount",t)},setChampionshipGlobalRanking:function(e,t){Vue.set(e.championshipGlobalRankings,"globalTop",t)},setChampionshipGlobalAbove:function(e,t){Vue.set(e.championshipGlobalRankings,"playersAbove",t)},setChampionshipGlobalBelow:function(e,t){Vue.set(e.championshipGlobalRankings,"playersBelow",t)},setChampionshipGlobalLeaderboardPlayerCount:function(e,t){Vue.set(e.championshipGlobalRankings,"globalLeaderboardPlayerCount",t)},setMySession:function(e,t){e.mySession=t},clearMySession:function(e){e.mySession={}},setMyChampionshipSession:function(e,t){e.myChampionshipSession=t},clearMyChampionshipSession:function(e){e.myChampionshipSession={}},setLeagueRanking:function(e,t){var n=t.leagueId,r=t.ranking;Vue.set(e.rankingsForLeague,n,r)},setChampionshipLeagueRanking:function(e,t){var n=t.leagueId,r=t.ranking;Vue.set(e.championshipRankingsForLeague,n,r)},setCodePointsRanking:function(e,t){var n=t.leagueId,r=t.ranking;Vue.set(e.codePointsRankingsForLeague,n,r)},setCodePointsPlayerCount:function(e,t){Vue.set(e.codePointsRankingsForLeague,"playerCount",t)},setMyCodePointsRank:function(e,t){e.myCodePointsRank=t},setUsableArenas:function(e,t){Vue.set(e,"usableArenas",t)}},getters:{isLoading:function(e){return e.loading},globalLeaderboardPlayerCount:function(e){return e.globalRankings.globalLeaderboardPlayerCount},globalChampionshipLeaderboardPlayerCount:function(e){return e.championshipGlobalRankings.globalLeaderboardPlayerCount},currentRegularArena:function(e){return e.currentRegularArena},currentChampionshipArena:function(e){return e.currentChampionshipArena},globalRankings:function(e){if(e.mySession&&e.mySession.rank>20){var t=[];return t.push.apply(t,v(e.globalRankings.globalTop.slice(0,10))),t.push({type:"BLANK_ROW"}),t.push.apply(t,v(e.globalRankings.playersAbove)),[].concat(v(e.globalRankings.playersAbove),v(e.globalRankings.playersBelow)).some((function(e){return e.creator===me.id}
2))||t.push(e.mySession),t.push.apply(t,v(e.globalRankings.playersBelow)),t}return e.globalRankings.globalTop},globalChampionshipRankings:function(e){if(e.myChampionshipSession&&e.myChampionshipSession.rank>20){var t=[];return t.push.apply(t,v(e.championshipGlobalRankings.globalTop.slice(0,10))),t.push({type:"BLANK_ROW"}),t.push.apply(t,v(e.championshipGlobalRankings.playersAbove)),[].concat(v(e.championshipGlobalRankings.playersAbove),v(e.championshipGlobalRankings.playersBelow)).some((function(e){return e.creator===me.id}))||t.push(e.myChampionshipSession),t.push.apply(t,v(e.championshipGlobalRankings.playersBelow)),t}return e.championshipGlobalRankings.globalTop},clanLeaderboardPlayerCount:function(e){return function(t){return e.rankingsForLeague[t]?e.rankingsForLeague[t].leaderboardPlayerCount:0}},clanChampionshipLeaderboardPlayerCount:function(e){return function(t){return e.championshipRankingsForLeague[t]?e.championshipRankingsForLeague[t].leaderboardPlayerCount:0}},clanRankings:function(e){return function(t){if(!e.rankingsForLeague[t])return[];var n=e.rankingsForLeague[t];if(e.mySession&&e.mySession.rank>20){var r=[];return r.push.apply(r,v(n.top.slice(0,10))),r.push({type:"BLANK_ROW"}),r.push.apply(r,v(n.playersAbove)),r.push(e.mySession),r.push.apply(r,v(n.playersBelow)),r}return n.top}},clanChampionshipRankings:function(e){return function(t){if(!e.championshipRankingsForLeague[t])return[];var n=e.championshipRankingsForLeague[t];if(e.myChampionshipSession&&e.myChampionshipSession.rank>20){var r=[];return r.push.apply(r,v(n.top.slice(0,10))),r.push({type:"BLANK_ROW"}),r.push.apply(r,v(n.playersAbove)),r.push(e.myChampionshipSession),r.push.apply(r,v(n.playersBelow)),r}return n.top}},codePointsRankings:function(e){return function(t){if(!e.codePointsRankingsForLeague[t])return[];var n=e.codePointsRankingsForLeague[t];try{if(e.myCodePointsRank&&e.myCodePointsRank.rank>20){var r=[];return r.push.apply(r,v(n.top.slice(0,10))),r.push({type:"BLANK_ROW"}),r.push.apply(r,v(n.playersAbove)),r.push(e.myCodePointsRank),r.push.apply(r,v(n.playersBelow)),r}if(e.myCodePointsRank&&"number"==typeof e.myCodePointsRank.rank&&e.myCodePointsRank.rank<=20){var o=e.myCodePointsRank.rank-1,i=v(n.top);return i[o]=g(g({},n.top[o]),{},{creator:me.id,creatorName:me.broadName()}),i}return n.top}catch(e){console.error(e)}return[]}},codePointsPlayerCount:function(e){return e.codePointsRankingsForLeague.playerCount},usableArenas:function(e){return e.usableArenas}},actions:{loadGlobalRequiredData:function(e){return h(l().mark((function t(){var n,r,o,s,c,u,f,h,m,g,y,v,b,_,w,S,C,k,x;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.commit,r=e.dispatch,(o=e.state).currentRegularArena){t.next=3;break}return t.abrupt("return");case 3:return n("setLoading",!0),n("clearMySession"),s=[r("fetchGlobalLeaderboard"),r("fetchGlobalLeaderboardPlayerCount")],t.next=8,(0,a.fetchMySessions)(o.currentRegularArenaOriginal);case 8:if(c=t.sent,!(Array.isArray(c)&&c.length>0)){t.next=35;break}if(u=c.find((function(e){return"humans"===e.team}))){t.next=14;break}return n("setLoading",!1),t.abrupt("return");case 14:if(void 0===(f=u.totalScore)){t.next=35;break}return t.next=18,Promise.all([(0,i.getLeaderboard)(o.currentRegularArenaOriginal,{order:1,scoreOffset:f,limit:4}),(0,i.getLeaderboard)(o.currentRegularArenaOriginal,{order:-1,scoreOffset:f,limit:4}),(0,i.getMyRank)(o.currentRegularArenaOriginal,u._id,{scoreOffset:f,team:"humans"})]);case 18:h=t.sent,m=p(h,3),g=m[0],y=m[1],v=m[2],b=parseInt(v,10),_=d(g);try{for(_.s();!(w=_.n()).done;)S=w.value,b-=1,S.rank=b}catch(e){_.e(e)}finally{_.f()}g.reverse(),b=parseInt(v,10),C=d(y);try{for(C.s();!(k=C.n()).done;)x=k.value,b+=1,x.rank=b}catch(e){C.e(e)}finally{C.f()}u.rank=parseInt(v,10),u.creatorName=me.broadName(),n("setMySession",u),n("setGlobalAbove",g),n("setGlobalBelow",y);case 35:return t.next=37,Promise.all(s);case 37:n("setLoading",!1);case 38:case"end":return t.stop()}}),t)})))()},loadChampionshipGlobalRequiredData:function(e){return h(l().mark((function t(){var n,r,o,s,c,u,f,h,m,g,y,v,b,_,w,S,C,k,x;return l().wrap((function(t){for(;;
2)switch(t.prev=t.next){case 0:if(n=e.commit,r=e.dispatch,(o=e.state).currentChampionshipArena){t.next=3;break}return t.abrupt("return");case 3:return n("setLoading",!0),n("clearMyChampionshipSession"),s=[r("fetchChampionshipGlobalLeaderboard"),r("fetchChampionshipGlobalLeaderboardPlayerCount")],t.next=8,(0,a.fetchMySessions)(o.currentChampionshipArenaOriginal);case 8:if(c=t.sent,!(Array.isArray(c)&&c.length>0)){t.next=35;break}if(u=c.find((function(e){return"humans"===e.team}))){t.next=13;break}return t.abrupt("return");case 13:if(f=u.totalScore,console.log("my score is:",f),void 0===f){t.next=35;break}return t.next=18,Promise.all([(0,i.getLeaderboard)(o.currentChampionshipArenaOriginal,{order:1,scoreOffset:f,limit:4}),(0,i.getLeaderboard)(o.currentChampionshipArenaOriginal,{order:-1,scoreOffset:f,limit:4}),(0,i.getMyRank)(o.currentChampionshipArenaOriginal,u._id,{scoreOffset:f,team:"humans"})]);case 18:h=t.sent,m=p(h,3),g=m[0],y=m[1],v=m[2],b=parseInt(v,10),_=d(g);try{for(_.s();!(w=_.n()).done;)S=w.value,b-=1,S.rank=b}catch(e){_.e(e)}finally{_.f()}g.reverse(),b=parseInt(v,10),C=d(y);try{for(C.s();!(k=C.n()).done;)x=k.value,b+=1,x.rank=b}catch(e){C.e(e)}finally{C.f()}u.rank=parseInt(v,10),u.creatorName=me.broadName(),n("setMyChampionshipSession",u),n("setChampionshipGlobalAbove",g),n("setChampionshipGlobalBelow",y);case 35:return t.next=37,Promise.all(s);case 37:n("setLoading",!1);case 38:case"end":return t.stop()}}),t)})))()},loadClanRequiredData:function(e,t){return h(l().mark((function n(){var r,o,s,c,f,h,m,g,y,v,b,_,w,S,C,k,x,E,O,T,A,P;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,o=e.state,s=t.leagueId,o.currentRegularArena){n.next=4;break}return n.abrupt("return");case 4:return c={top:[],playersAbove:[],playersBelow:[]},r("clearMySession"),f=(0,i.getLeaderboard)(o.currentRegularArenaOriginal,{order:-1,scoreOffset:1e6,limit:20,team:"humans","leagues.leagueID":s}).then((function(e){c.top=u.default.uniq(e,!0,(function(e){return e._id}))})),h=(0,i.getLeaderboardPlayerCount)(o.currentRegularArenaOriginal,{team:"humans","leagues.leagueID":s}).then((function(e){c.leaderboardPlayerCount=parseInt(e,10)})),m=[f,h],n.next=11,(0,a.fetchMySessions)(o.currentRegularArenaOriginal);case 11:if(g=n.sent,!(Array.isArray(g)&&g.length>0)){n.next=37;break}if(y=g.find((function(e){return"humans"===e.team}))){n.next=17;break}return r("setLoading",!1),n.abrupt("return");case 17:if(void 0===(v=(((y.leagues||[]).find((function(e){return e.leagueID===s}))||{}).stats||{}).totalScore)){n.next=37;break}return n.next=21,Promise.all([(0,i.getLeaderboard)(o.currentRegularArenaOriginal,{order:1,scoreOffset:v,limit:4,"leagues.leagueID":s}),(0,i.getLeaderboard)(o.currentRegularArenaOriginal,{order:-1,scoreOffset:v,limit:4,"leagues.leagueID":s}),(0,i.getMyRank)(o.currentRegularArenaOriginal,y._id,{scoreOffset:v,team:"humans","leagues.leagueID":s})]);case 21:b=n.sent,_=p(b,3),w=_[0],S=_[1],C=_[2],k=parseInt(C,10),x=d(w);try{for(x.s();!(E=x.n()).done;)O=E.value,k-=1,O.rank=k}catch(e){x.e(e)}finally{x.f()}w.reverse(),k=parseInt(C,10),T=d(S);try{for(T.s();!(A=T.n()).done;)P=A.value,k+=1,P.rank=k}catch(e){T.e(e)}finally{T.f()}y.rank=parseInt(C,10),c.playersAbove=w,c.playersBelow=S,r("setMySession",y);case 37:return n.next=39,Promise.all(m);case 39:r("setLeagueRanking",{leagueId:s,ranking:c});case 40:case"end":return n.stop()}}),n)})))()},loadChampionshipClanRequiredData:function(e,t){return h(l().mark((function n(){var r,o,s,c,f,h,m,g,y,v,b,_,w,S,C,k,x,E,O,T,A,P;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,o=e.state,s=t.leagueId,o.currentChampionshipArena){n.next=4;break}return n.abrupt("return");case 4:return c={top:[],playersAbove:[],playersBelow:[]},r("clearMyChampionshipSession"),f=(0,i.getLeaderboard)(o.currentChampionshipArenaOriginal,{order:-1,scoreOffset:1e6,limit:20,team:"humans","leagues.leagueID":s}).then((function(e){c.top=u.default.uniq(e,!0,(function(e){return e._id}))})),h=(0,i.getLeaderboardPlayerCount)(o.currentChampionshipArenaOriginal,{team:"humans","leagues.leagueID":s}).then((function(e){c.leaderboardPlayerCount=parseInt(e,10)})),m=[f,h],n.next=11,(0,a.fetchMySessions)(o.currentChampionshipArenaOriginal);case 11:if(g=n.sent,!(Array.isArray(g)&&g.length>0)){n.next=36;break}if(y=g.find((function(e){return"humans"===e.team}))){n.next=16;break}return n.abrupt("return");case 16:if(void 0===(v=(((y.leagues||[]).find((function(e){return e.leagueID===s}))||{}).stats||{}).totalScore)){n.next=36;break}return n.next=20,Promise.all([(0,i.getLeaderboard)(o.currentChampionshipArenaOriginal,{order:1,scoreOffset:v,limit:4,"leagues.leagueID":s}),(0,i.getLeaderboard)(o.currentChampionshipArenaOriginal,{order:-1,scoreOffset:v,limit:4,"leagues.leagueID":s}),(0,i.getMyRank)(o.currentChampionshipArenaOriginal,y._id,{scoreOffset:v,team:"humans","leagues.leagueID":s})]);case 20:b=n.sent,_=p(b,3),w=_[0],S=_[1],C=_[2],k=parseInt(C,10),x=d(w);try{for(x.s();!(E=x.n()).done;)O=E.value,k-=1,O.rank=k}catch(e){x.e(e)}finally{x.f()}w.reverse(),k=parseInt(C,10),T=d(S);try{for(T.s();!(A=T.n()).done;)P=A.value,k+=1,P.rank=k}catch(e){T.e(e)}finally{T.f()}y.rank=parseInt(C,10),c.playersAbove=w,c.playersBelow=S,r("setMyChampionshipSession",y);case 36:return n.next=38,Promise.all(m);case 38:r("setChampionshipLeagueRanking",{leagueId:s,ranking:c});case 39:case"end":return n.stop()}}),n)})))()},loadCodePointsRequiredData:function(e,t){return h(l().mark((function n(){var r,o,a,s,c,u,f,h,m,g,y,v,b,_,w,S,C,k;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.commit,o=t.leagueId,a={top:[],playersAbove:[],playersBelow:[]},s=(0,i.getCodePointsLeaderboard)(o,{order:-1,scoreOffset:1e6,limit:20}).then((function(e){a.top=e})),!me.get("stats")||!me.get("stats").codePoints){n.next=24;break}return n.next=7,Promise.all([(0,i.getCodePointsLeaderboard)(o,{order:1,scoreOffset:me.get("stats").codePoints,limit:4}),(0,i.getCodePointsLeaderboard)(o,{order:-1,scoreOffset:me.get("stats").codePoints,limit:4}),(0,i.getCodePointsRankForUser)(o,me.id,{scoreOffset:me.get("stats").codePoints})]);case 7:u=n.sent,f=p(u,3),h=f[0],m=f[1],g=f[2],y=parseInt(g,10),v=d(h);try{for(v.s();!(b=v.n()).done;)_=b.value,y-=1,_.rank=y}catch(e){v.e(e)}finally{v.f()}h.reverse(),y=parseInt(g,10),w=d(m);try{for(w.s();!(S=w.n()).done;)C=S.value,y+=1,C.rank=y}catch(e){w.e(e)}finally{w.f()}k={creatorName:me.broadName(),rank:parseInt(g,10),totalScore:me.get("stats").codePoints,creator:me.id,submittedCodeLanguage:null===(c=me.get("aceConfig"))||void 0===c?void 0:c.language},a.playersAbove=h,a.playersBelow=m,"unknown"===g&&(a.playersAbove=h.map((function(e){return e.rank=" ",e})),a.playersBelow=m.map((function(e){return e.rank=" ",e})),k.rank=" "),r("setMyCodePointsRank",k);case 24:return n.next=26,s;case 26:r("setCodePointsRanking",{leagueId:o,ranking:a}),(0,i.getCodePointsPlayerCount)(o,{}).then((function(e){r("setCodePointsPlayerCount",Number(e))})).catch((function(e){return console.error(e)}));case 28:case"end":return n.stop()}}),n)})))()},fetchGlobalLeaderboard:function(e){return h(l().mark((function t(){var n,r,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.commit,(r=e.state).currentRegularArena){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,(0,i.getLeaderboard)(r.currentRegularArenaOriginal,{order:-1,scoreOffset:1e6,limit:20,team:"humans",_:Math.floor(1e8*Math.random())});case 5:o=t.sent,n("setGlobalRanking",o);case 7:case"end":return t.stop()}}),t)})))()},fetchChampionshipGlobalLeaderboard:function(e){return h(l().mark((function t(){var n,r,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.commit,(r=e.state).currentChampionshipArena){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,(0,i.getLeaderboard)(r.currentChampionshipArenaOriginal,{order:-1,scoreOffset:1e6,limit:20,team:"humans",_:Math.floor(1e8*Math.random())});case 5:o=t.sent,n("setChampionshipGlobalRanking",o);case 7:case"end":return t.stop()}}),t)})))()},fetchGlobalLeaderboardPlayerCount:function(e){return h(l().mark((function t(){var n,r,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.commit,(r=e.state).currentRegularArena){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,(0,i.getLeaderboardPlayerCount)(r.currentRegularArenaOriginal,{});case 5:o=t.sent,n("setGlobalLeaderboardPlayerCount",parseInt(o,10));case 7:case"end":return t.stop()}}),t)})))()},fetchChampionshipGlobalLeaderboardPlayerCount:function(e){return h(l().mark((function t(){var n,r,o;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.commit,(r=e.state).currentChampionshipArena){t.next=3;break}return t.abrupt("return");case 3:return t.next=5,(0,i.getLeaderboardPlayerCount)(r.currentChampionshipArenaOriginal,{});case 5:o=t.sent,n("setChampionshipGlobalLeaderboardPlayerCount",parseInt(o,10));case 7:case"end":return t.stop()}}),t)})))()},fetchUsableArenas:function(e){return h(l().mark((function t(){var n,r;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.commit,t.next=3,(0,c.getUsableArenas)();case 3:r=t.sent,n("setUsableArenas",r);case 5:case"end":return t.stop()}}),t)})))()}}}}
vendor: 4,213 bytes, line 2
2,324604:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=n(432451);function i(){i=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
vendor: 7,590 bytes, line 2
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){if(e){if("string"==typeof e)return c(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,s,"next",e)}function s(e){p(i,r,o,a,s,"throw",e)}a(void 0)}))}}var h=n(299498);function m(e){return"courseID_".concat(e.teacherId,"_").concat(e.classroomId)}function g(){return"collapsed-modules-".concat(me.id)}function y(e,t){return v.apply(this,arguments)}function v(){return v=f(i().mark((function e(t,n){var r,a,s,c,u,l,p,h,m;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.dispatch,a=t.state,s=t.commit,c=n.componentName,u=n.options,e.prev=2,l=d(d(d(d(d(d(d(d(d({},o.COMPONENT_NAMES.MY_CLASSES_ALL,{preFetch:function(){var e=f(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r("fetchDataAllClasses",u));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lazy:function(){return r("fetchDataAllClassesAsync",u)}}),o.COMPONENT_NAMES.MY_CLASSES_SINGLE,{preFetch:function(){var e=f(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r("fetchDataSingleClass",u));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lazy:function(){return r("fetchDataSingleClassAsync",u)}}),o.COMPONENT_NAMES.STUDENT_PROJECTS,{preFetch:function(){var e=f(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r("fetchDataStudentProjects",u));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lazy:function(){return r("fetchDataStudentProjectsAsync",u)}}),o.COMPONENT_NAMES.MY_LICENSES,{preFetch:function(){var e=f(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r("fetchDataMyLicenses",u));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lazy:function(){return r("fetchDataMyLicensesAsync",u)}}),o.COMPONENT_NAMES.RESOURCE_HUB,{lazy:function(){return r("fetchDataResourceHubAsync",u)}}),o.COMPONENT_NAMES.PD,{preFetch:function(){var e=f(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r("fetchDataPDAsync",u));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),o.COMPONENT_NAMES.CURRICULUM_GUIDE,{preFetch:function(){var e=f(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r("fetchDataCurriculumGuideAsync",u));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}),o.COMPONENT_NAMES.STUDENT_ASSESSMENTS,{preFetch:function(){var e=f(i().mark((function e(){return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",r("fetchDataStudentAssessments",u));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),lazy:function(){return r("fetchDataStudentAssessmentsAsync",u)}}),o.COMPONENT_NAMES.APCSP,{}),!(p=l[c])){e.next=14;break}
2return(h=[]).push(r("classrooms/fetchClassroomsForTeacher",{teacherId:a.teacherId},{root:!0})),p.preFetch&&h.push(p.preFetch()),e.next=11,Promise.all(h);case 11:p.lazy&&p.lazy().catch(console.error),e.next=15;break;case 14:console.error("Unknown componentName: ".concat(c));case 15:e.next=21;break;case 17:e.prev=17,e.t0=e.catch(2),console.error("Error in fetching data:",e.t0),noty({text:"Error in fetching data",type:"error",layout:"topCenter",timeout:2e3});case 21:return e.prev=21,s("stopLoading"),r("classrooms/setMostRecentClassroomId",a.classroomId,{root:!0}),u.loadedEventName&&(null===(m=window.tracker)||void 0===m||m.trackEvent(u.loadedEventName,{category:a.trackCategory})),e.finish(21);case 26:case"end":return e.stop()}}),e,null,[[2,17,21,26]])}))),v.apply(this,arguments)}t.Z={namespaced:!0,state:{teacherId:"",classroomId:"",selectedCourseIdForClassroom:{},loading:!1,pageTitle:"",componentName:"",trackCategory:"Teachers",collapsedModules:null},mutations:{setTeacherId:function(e,t){e.teacherId!==t&&(e.teacherId=t)},setClassroomId:function(e,t){e.classroomId!==t&&(e.classroomId=t)},startLoading:function(e){e.loading=!0},stopLoading:function(e){e.loading=!1},resetLoadingState:function(e){e.loading=!1},setSelectedCourseIdCurrentClassroom:function(e,t){var n=t.courseId;e.classroomId&&(localStorage.setItem(m(e),n),Vue.set(e.selectedCourseIdForClassroom,e.classroomId,n))},setPageTitle:function(e,t){e.pageTitle=t},setComponentName:function(e,t){e.componentName=t},setTrackCategory:function(e,t){e.trackCategory=t},setModuleCollapsedState:function(e,t){var n=t.courseId,r=t.collapsedModules;e.collapsedModules=l(l({},e.collapsedModules||{}),{},d({},n,a(r||[]))),localStorage.setItem(g(),JSON.stringify(e.collapsedModules))}},getters:{teacherId:function(e){return e.teacherId},classroomId:function(e){return e.classroomId},classroom:function(e,t){return t.getActiveClassrooms.find((function(t){return t._id===e.classroomId}))||{}},getPageTitle:function(e){return Vue.t("teacher_dashboard.".concat(e.pageTitle))||e.pageTitle},getComponentName:function(e){return e.componentName},getLoadingState:function(e){return e.loading},getTrackCategory:function(e){return e.trackCategory},getActiveClassrooms:function(e,t,n,r){return e.teacherId&&r["classrooms/getActiveClassroomsByTeacher"](e.teacherId)||[]},getArchivedClassrooms:function(e,t,n,r){return e.teacherId&&r["classrooms/getArchivedClassroomsByTeacher"](e.teacherId)||[]},getSharedClassrooms:function(e,t,n,r){return e.teacherId&&r["classrooms/getSharedClassroomsByTeacher"](e.teacherId)||[]},getAllClassrooms:function(e,t,n,r){return[].concat(a(t.getActiveClassrooms||[]),a(t.getSharedClassrooms||[]),a(t.getArchivedClassrooms||[]))},getCurrentClassroom:function(e,t,n,r){if(e.teacherId&&e.classroomId){var o=[].concat(a(r["classrooms/getActiveClassroomsByTeacher"](e.teacherId)||[]),a(r["classrooms/getSharedClassroomsByTeacher"](e.teacherId)||[]));return o&&0!==o.length?o.find((function(t){return t._id===e.classroomId}))||{}:r["classrooms/getClassroomById"](e.classroomId)||{}}return{}},getCoursesCurrentClassroom:function(e,t,n,r){if(e.classroomId){var o=(t.getCurrentClassroom.courses||[]).map((function(e){return e._id}))||[];return(r["courses/sorted"]||[]).filter((function(e){return o.includes(e._id)}))}return[]},getSelectedCourseIdCurrentClassroom:function(e,t){if(e.classroomId&&e.selectedCourseIdForClassroom[e.classroomId])return e.selectedCourseIdForClassroom[e.classroomId];var n=localStorage.getItem(m(e));if(n)return n;var r,o=t.getCoursesCurrentClassroom||[];return o.length>0?"junior"===(null==o||null===(r=o[0])||void 0===r?void 0:r.slug)&&o.length>1?(o[1]||{})._id:(o[0]||{})._id:void 0},getMembersCurrentClassroom:function(e,t,n,r){if(e.classroomId){var o=t.getCurrentClassroom;return r["users/getClassroomMembers"](o)||[]}return[]},getLevelSessionsMapCurrentClassroom:function(e,t,n,r){return e.classroomId&&r["levelSessions/getSessionsMapForClassroom"](e.classroomId)||{}},getAiProjectsMapCurrentClassroom:function(e,t,n,r){return e.classroomId&&r["aiProjects/getAiProjectsMapForClassroom"](e.classroomId)||{}},getGameContentCurrentClassroom:function(e,t,n,r){return e.classroomId&&r["gameContent/getContentForClassroom"](e.classroomId)||{}},getActiveLicenses:function(e,t,n,r){return e&&r["prepaids/getActiveLicensesForTeacher"](e.teacherId)||[]},getExpiredLicenses:function(e,t,n,r){return e.teacherId&&r["prepaids/getExpiredLicensesForTeacher"](e.teacherId)||[]},getCollapsedModulesForCurrentCourse:function(e,t){return t.getCollapsedModules[t.getSelectedCourseIdCurrentClassroom]||[]},getCollapsedModules:function(e){return e.collapsedModules||{}},isModuleCollapsed:function(e,t){return function(e){var n=t.getSelectedCourseIdCurrentClassroom;return!!t.getCollapsedModules[n]&&t.getCollapsedModules[n].includes(e)}}},actions:{toggleModuleCollapse:function(e,t){var n=e.commit,r=e.getters;try{var o=r.getSelectedCourseIdCurrentClassroom,i=r.isModuleCollapsed(t),s=r.getCollapsedModules[o]||[];n("setModuleCollapsedState",{courseId:o,collapsedModules:i?s.filter((function(e){return e!==t})):[].concat(a(s),[t])})}catch(e){throw console.error("Failed to toggle module collapse:",e),e}},fetchData:function(e,t){return f(i().mark((function n(){var r,o,a,s,c,u,l;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.state,o=e.dispatch,a=e.commit,s=t.componentName,c=t.o
2ptions,u=void 0===c?{}:c,r.teacherId){n.next=6;break}return console.error("Error in fetching data: teacherId is not set"),noty({text:"Error in fetching data",type:"error",layout:"center",timeout:2e3}),n.abrupt("return");case 6:return a("startLoading"),a("setComponentName",s),(l=[]).push(y({dispatch:o,state:r,commit:a},{componentName:s,options:u})),n.next=12,Promise.all(l);case 12:case"end":return n.stop()}}),n)})))()},fetchDataAllClasses:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,e.rootGetters,t.length>1&&void 0!==t[1]&&t[1],(a=[]).push(o("courseInstances/fetchCourseInstancesForTeacher",r.teacherId,{root:!0})),a.push(o("courses/fetchReleased",void 0,{root:!0})),n.next=7,Promise.all(a);case 7:case"end":return n.stop()}}),n)})))()},fetchDataAllClassesAsync:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a,s,c,u;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,a=e.rootGetters,s=t.length>1&&void 0!==t[1]?t[1]:{},c=[],(((u=a["classrooms/getClassroomsByTeacher"](r.teacherId))||{}).active||[]).length>0&&u.active.forEach((function(e){var t={project:(s.data||{}).levelSessions};me.isMto()||(c.push(o("levelSessions/fetchForClassroomMembers",{classroom:e,options:t},{root:!0})),c.push(o("aiProjects/fetchForClassroomMembers",{classroom:e,options:{data:{from:"classes-view"}}},{root:!0})))})),c.push(o("prepaids/fetchPrepaidsForTeacher",{teacherId:r.teacherId},{root:!0})),n.next=8,Promise.all(c);case 8:case"end":return n.stop()}}),n)})))()},fetchDataSingleClass:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,a=t.length>1&&void 0!==t[1]?t[1]:{},(s=[]).push(o("courseInstances/fetchCourseInstancesForClassroom",r.classroomId,{root:!0})),s.push(o("courses/fetchReleased",void 0,{root:!0})),a.fetchInteractiveSessions=!0,s.push(o("teacherDashboard/fetchClassroomData",a,{root:!0})),n.next=9,Promise.all(s);case 9:case"end":return n.stop()}}),n)})))()},fetchDataSingleClassAsync:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a,s,c,u,l;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,a=e.getters,t.length>1&&void 0!==t[1]&&t[1],s=[],c=!1,u=r.teacherId,(l=a.getCurrentClassroom)&&(c=(l.permissions||[]).find((function(e){return e.target===me.get("_id")})))&&(u=l.ownerID),s.push(o("prepaids/fetchPrepaidsForTeacher",{teacherId:u,sharedClassroomId:c?r.classroomId:null},{root:!0})),n.next=10,Promise.all(s);case 10:case"end":return n.stop()}}),n)})))()},fetchDataStudentProjects:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,a=t.length>1&&void 0!==t[1]?t[1]:{},(s=[]).push(o("courseInstances/fetchCourseInstancesForTeacher",r.teacherId,{root:!0})),s.push(o("courses/fetchReleased",void 0,{root:!0})),s.push(o("teacherDashboard/fetchClassroomData",a,{root:!0})),n.next=8,Promise.all(s);case 8:case"end":return n.stop()}}),n)})))()},fetchDataStudentProjectsAsync:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,t.length>1&&void 0!==t[1]&&t[1],(a=[]).push(o("prepaids/fetchPrepaidsForTeacher",{teacherId:r.teacherId},{root:!0})),n.next=6,Promise.all(a);case 6:case"end":return n.stop()}}),n)})))()},fetchDataStudentAssessments:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,a=t.length>1&&void 0!==t[1]?t[1]:{},(s=[]).push(o("courseInstances/fetchCourseInstancesForClassroom",r.classroomId,{root:!0})),s.push(o("courses/fetchReleased",void 0,{root:!0})),s.push(o("classrooms/fetchClassroomsForTeacher",{teacherId:r.teacherId},{root:!0})),s.push(o("teacherDashboard/fetchClassroomData",a,{root:!0})),s.push(o("levels/fetchForClassroom",r.classroomId,{root:!0})),n.next=10,Promise.all(s);case 10:case"end":return n.stop()}}),n)})))()},fetchDataStudentAssessmentsAsync:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,t.length>1&&void 0!==t[1]&&t[1],(a=[]).push(o("prepaids/fetchPrepaidsForTeacher",{teacherId:r.teacherId},{root:!0})),a.push(o("teacherDashboard/fetchDataCurriculumGuide",void 0,{root:!0})),n.next=7,Promise.all(a);case 7:case"end":return n.stop()}}),n)})))()},fetchDataMyLicenses:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,t.length>1&&void 0!==t[1]&&t[1],(a=[]).push(o("prepaids/fetchPrepaidsForTeacher",{teacherId:r.teacherId},{root:!0})),n.next=6,Promise.all(a);case 6:case"end":return n.stop()}}),n)})))()},fetchDataMyLicensesAsync:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,a=e.getters,t.length>1&&void 0!==t[1]&&t[1],(s=[]).push(o("classrooms/fetchClassroomsForTeacher",{teacherId:r.teacherId},{root:!0})),(a.getActiveLicenses.concat(a.getExpiredLicenses)||[]).map((function(e){return e._id}
2)).forEach((function(e){s.push(o("users/fetchCreatorOfPrepaid",e,{root:!0})),s.push(o("prepaids/fetchJoinersForPrepaid",e,{root:!0}))})),n.next=9,Promise.all(s);case 9:case"end":return n.stop()}}),n)})))()},fetchDataCurriculumGuideAsync:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a,s;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,e.rootGetters,a=t.length>1&&void 0!==t[1]?t[1]:{},(s=[]).push(o("prepaids/fetchPrepaidsForTeacher",{teacherId:r.teacherId},{root:!0})),s.push(o("teacherDashboard/fetchDataCurriculumGuide",a,{root:!0})),n.next=7,Promise.all(s);case 7:case"end":return n.stop()}}),n)})))()},fetchDataResourceHubAsync:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,o=e.dispatch,t.length>1&&void 0!==t[1]&&t[1],(a=[]).push(o("prepaids/fetchPrepaidsForTeacher",{teacherId:r.teacherId},{root:!0})),a.push(o("classrooms/fetchClassroomsForTeacher",{teacherId:r.teacherId},{root:!0})),n.next=7,Promise.all(a);case 7:case"end":return n.stop()}}),n)})))()},fetchDataPDAsync:function(e){var t=arguments;return f(i().mark((function n(){var r;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.state,e.dispatch,t.length>1&&void 0!==t[1]&&t[1],r=[],n.next=5,Promise.all(r);case 5:case"end":return n.stop()}}),n)})))()},fetchDataCurriculumGuide:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a,s,c,u,l,d,p;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.dispatch,o=e.rootGetters,a=e.getters,s=t.length>1&&void 0!==t[1]?t[1]:{},0!==(c=o["courses/sorted"]||[]).length){n.next=6;break}return n.next=6,r("courses/fetchReleased",void 0,{root:!0});case 6:(c=o["courses/sorted"]||[])[0]&&(u=a.getCurrentClassroom,(l=(u.courses||[]).map((function(e){return e._id}))||[]).length&&(d=c.find((function(e){return l.includes(e._id)}))),s.campaignUrl&&(p=c.find((function(e){return e.slug===s.campaignUrl})))&&(d=p),d=d||c[0],r("baseCurriculumGuide/setSelectedCampaign",d.campaignID,{root:!0}));case 8:case"end":return n.stop()}}),n)})))()},fetchClassroomData:function(e){var t=arguments;return f(i().mark((function n(){var r,o,a,s,c,u,l,d;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.state,o=e.dispatch,a=e.rootGetters,s=t.length>1&&void 0!==t[1]?t[1]:{},r.classroomId){n.next=6;break}return console.error("Error in fetching data: classroomId is not set"),noty({text:"Error in fetching data",type:"error",layout:"center",timeout:2e3}),n.abrupt("return");case 6:return(c=[]).push(o("gameContent/fetchGameContentForClassroom",{classroomId:r.classroomId,options:s},{root:!0})),(u=a["classrooms/getClassroomById"](r.classroomId))&&(l={project:(s.data||{}).users},c.push(o("users/fetchClassroomMembers",{classroom:u,options:l},{root:!0})),d={project:(s.data||{}).levelSessions},c.push(o("levelSessions/fetchForClassroomMembers",{classroom:u,options:d},{root:!0})),h.isCodeCombat&&(c.push(o("aiProjects/fetchForClassroomMembers",{classroom:u},{root:!0})),c.push(o("aiScenarios/fetchReleased",{classroom:u},{root:!0})),c.push(o("aiModels/fetch",{},{root:!0}))),s.fetchInteractiveSessions&&c.push(o("interactives/fetchSessionsForClassroomMembers",u,{root:!0}))),n.next=12,Promise.all(c);case 12:case"end":return n.stop()}}),n)})))()},fetchModuleCollapseState:function(e){for(var t=e.commit,n=(e.getters,g()),r=JSON.parse(localStorage.getItem(n))||{},o=0,i=Object.entries(r);o<i.length;o++){var a=(c=i[o],u=2,function(e){if(Array.isArray(e))return e}(c)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(c,u)||s(c,u)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());t("setModuleCollapsedState",{courseId:a[0],collapsedModules:a[1]})}var c,u}}}},257970:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=n(169170);function i(){i=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,017 bytes, line 2
2))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function a(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}t.Z={namespaced:!0,state:{loading:!1,tints:[]},mutations:{toggleLoading:function(e){e.loading=!e.loading},addTints:function(e,t){Vue.set(e,"tints",t)}},getters:{characterCustomizationTints:function(e){return e.tints}},actions:{fetchTints:function(e){return(t=i().mark((function t(){var n,r;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(n=e.commit)("toggleLoading"),t.prev=2,t.next=5,(0,o.getAllTints)();case 5:r=t.sent,n("addTints",r),t.next=13;break;case 9:t.prev=9,t.t0=t.catch(2),noty({text:"Fetch tints failure",type:"error"}),n("toggleLoading");case 13:case"end":return t.stop()}}),t,null,[[2,9]])})),function(){var e=this,n=arguments;return new Promise((function(r,o){var i=t.apply(e,n);function s(e){a(i,r,o,s,c,"next",e)}function c(e){a(i,r,o,s,c,"throw",e)}s(void 0)}))})();var t}}}},464408:(e,t)=>{"use strict";var n;t.Z=void 0;var r=["codecombat.com","ozaria.com"],o=!1;try{(o=new URLSearchParams(window.location.search).has("coco_tracking"))&&r.push("localhost")}catch(e){}t.Z={namespaced:!0,state:{doNotTrack:window.navigator&&"1"===window.navigator.doNotTrack,spying:window.serverSession&&void 0!==window.serverSession.amActually,switching:null===(n=window.serverSession)||void 0===n?void 0:n.switchingUserActualId,trackingEnabledForEnvironment:r.includes(window.location.hostname.replace("www.","")),enableTrackingOverride:o,cookieConsent:{answered:!1,consented:!1,declined:!1}},mutations:{updateCookieConsentStatus:function(e,t){e.cookieConsent.answered=t.answered,e.cookieConsent.consented=t.consented,e.cookieConsent.declined=t.declined}},getters:{disableAllTracking:function(e,t,n,r){if(e.enableTrackingOverride)return console.log("disableAllTracking: false (tracking override enabled)"),!1;var o=!e.cookieConsent.consented,i=e.doNotTrack,a=r["me/isSmokeTestUser"],s=e.spying,c=!e.trackingEnabledForEnvironment;return o||i||a||s||c}},actions:{cookieConsentStatusChange:function(e,t){(0,e.commit)("updateCookieConsentStatus",{answered:"string"==typeof t,consented:"allow"===t||"dismiss"===t,declined:"deny"===t})}}}},723599:(e,t,n)=>{"use strict";t.Z=void 0;var r,o=(r=n(987972))&&r.__esModule?r:{default:r},i=n(511392);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){s=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,s,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==a(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 4,886 bytes, line 2
2(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(a(t)+" is not iterable")}return b.prototype=_,o(k,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function c(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(void 0)}))}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?l(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==a(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z={namespaced:!0,state:d({properties:Object.assign({},(0,i.getNcesData)(),{organization:"",district:"",city:"",state:"",country:"",phoneNumber:"",role:"",purchaserRole:"",numStudents:"",numStudentsTotal:"",notes:"",referrer:"",marketingReferrer:"",educationLevel:[],otherEducationLevel:!1,otherEducationLevelExplanation:"",siteOrigin:"create teacher",firstName:"",lastName:"",email:""})},(0,i.getRootLevelData)()),getters:{properties:function(e){return e.properties}},mutations:{setTrialData:function(e,t){(e=Object.assign(e,_.pick(t,i.ROOT_LEVEL_KEYS))).properties=d(d({},e.properties),t.properties)},updateOrganization:function(e,t){e.properties.organization=t},updateDistrict:function(e,t){e.properties.district=t},updateCity:function(e,t){e.properties.city=t},updateState:function(e,t){e.properties.state=t},updateCountry:function(e,t){e.properties.country=t}},actions:{fetchCurrentTrialRequest:function(e){return u(s().mark((function t(){var n,r,i,a;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=e.commit,!e.state.properties.email){t.next=3;break}return t.abrupt("return");case 3:return t.prev=3,t.next=6,o.default.getOwn();case 6:r=t.sent,t.next=12;break;case 9:t.prev=9,t.t0=t.catch(3),console.error("fetchCurrentTrialRequest err",t.t0);case 12:if(r&&0!==r.length){t.next=15;break}return console.error("trialRequests empty",r),t.abrupt("return",{});case 15:r.length>1&&console.error("More than 1 TrialRequest, chose ".concat(null===(i=r[0])||void 0===i?void 0:i.id),r),r=_.sortBy(r,(function(e){return e.id})),a=_.last(r),n("setTrialData",a);case 19:case"end":return t.stop()}}),t,null,[[3,9]])})))()},updateProperties:function(e,t){return u(s().mark((function n(){var r,i,a;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.state,i=e.commit,(a=_.clone(r)).properties=Object.assign({},a.properties,t),n.next=5,o.default.update(a,{});case 5:i("setTrialData",a);case 6:case"end":return n.stop()}}),n)})))()}}}},941397:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o,i,a,s=(o=n(250636))&&o.__esModule?o:{default:o};function c(){c=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;
vendor: 4,917 bytes, line 2
2return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}t.Z={namespaced:!0,state:{currentLevelsList:{}},mutations:{setCurrentLevelsList:function(e,t){e.currentLevelsList=t}},getters:{getCurrentLevelsList:function(e){return e.currentLevelsList}},actions:{buildLevelsData:(i=c().mark((function e(t,n){var r,o,i,a,l,d,p,f,h,m,g,y,v,b,_,w,S,C,k,x,E,O,T,A;return c().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.commit,o=t.rootGetters,i=t.dispatch,a=n.campaignHandle,l=n.courseInstanceId,d=n.courseId,p=n.classroom,e.next=4,i("campaigns/fetch",{campaignHandle:a,courseInstanceId:l,courseId:d},{root:!0});case 4:if(f=o["campaigns/getCampaignData"]({campaignHandle:a,courseInstanceId:l,courseId:d}),h={},l){e.next=10;break}h=f.levels,e.next=37;break;case 10:return e.prev=10,e.next=13,i("courseInstances/fetchCourseInstanceForId",l,{root:!0});case 13:if(m=o["courseInstances/getCourseInstanceById"](l),g=m.courseID,y=m.classroomID,v=s.default.cloneDeep(f.levels),p){e.next=21;break}return e.next=20,i("classrooms/fetchClassroomForId",y,{root:!0});case 20:p=o["classrooms/getClassroomById"](y);case 21:return b=s.default.find(p.courses,{_id:g}).levels,e.next=24,i("classrooms/fetchCourseLevels",{classroomID:y,courseID:g},{root:!0});case 24:_=o["classrooms/getCourseLevels"](y,g),w={},S=u(b);try{for(S.s();!(C=S.n()).done;)k=C.value,w[k.original]=k,w[k.original].campaignPage||(w[k.original].campaignPage=1)}catch(e){S.e(e)}finally{S.f()}x={},E=u(_);try{for(E.s();!(O=E.n()).done;)T=O.value,A=T.original,v[A]?x[A]=v[A]:x[A]=T,w[A].position&&(x[A].position=w[A].position),w[A].nextLevels&&(x[A].nextLevels=w[A].nextLevels),w[A].first&&(x[A].first=w[A].first),w[A].campaignPage&&(x[A].campaignPage=w[A].campaignPage)}catch(e){E.e(e)}finally{E.f()}h=x,e.next=37;break;case 34:e.prev=34,e.t0=e.catch(10),console.error("Error in building levels data",e.t0);case 37:r("setCurrentLevelsList",h);case 38:case"end":return e.stop()}}),e,null,[[10,34]])})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){d(o,n,r,a,s,"next",e)}function s(e){d(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e,t){return a.apply(this,arguments)})}}},732756:(e,t,n)=>{"use strict";t.Z=void 0;var r=n(44646);t.Z={namespaced:!0,state:{statsByUserId:{}},mutations:{addStatsForUser:function(e,t){var n=t.userId,r=t.stats;Vue.set(e.statsByUserId,n,r)}},getters:{getStatsByUser:function(e){return function(t){return e.statsByUserId[t]}}},actions:{fetchStatsForUser:function(e,t){var n=e.commit;return(0,r.getStatsForUser)(t).then((function(e){if(!e)throw new Error("Unexpected response from get user-stats API.");n("addStatsForUser",{userId:t,stats:e})})).catch((function(e){return noty({text:"Fetch user-stats failure"+e,type:"error",layout:"topCenter",timeout:2e3})}))}}}},568579:(e,t,n)=>{"use strict";t.Z=void 0;var r=a(n(760185)),o=a(n(218484)),i=a(n(430703));
2function a(e){return e&&e.__esModule?e:{default:e}}t.Z={namespaced:!0,state:{loading:{byId:{}},users:{byId:{},searchedResult:[]},userNames:{byId:{}},userClassrooms:{byId:{}}},mutations:{toggleLoadingForId:function(e,t){var n=!0;e.loading.byId[t]&&(n=!1),Vue.set(e.loading.byId,t,n)},addUser:function(e,t){Vue.set(e.users.byId,t._id,t)},setUsers:function(e,t){t.forEach((function(t){Vue.set(e.users.byId,t._id,t)}))},setSearchedResult:function(e,t){e.users.searchedResult=t},resetSearchedResult:function(e){e.users.searchedResult=[]},setUserNames:function(e,t){Object.keys(t).forEach((function(n){Vue.set(e.userNames.byId,n,t[n])}))},setClassroomNames:function(e,t){Object.keys(t).forEach((function(n){Vue.set(e.userClassrooms.byId,n,t[n])}))}},getters:{getClassroomMembers:function(e){return function(t){var n=[];return t.members&&t.members.forEach((function(t){e.users.byId[t]&&n.push(e.users.byId[t])})),n}},getClassroomsByUserId:function(e){return function(t){return e.userClassrooms.byId[t]}},getUserById:function(e){return function(t){return e.users.byId[t]}},getUserSearchResult:function(e){return e.users.searchedResult},getUserNameById:function(e){return function(t){var n=e.userNames.byId[t];if(!n)return"";var r="";return n.firstName&&(r=n.name),n.lastName&&(r+=" "+n.lastName),r||(r=n.name),r}}},actions:{fetchUserById:function(e,t){var n=e.commit;return n("toggleLoadingForId",t),r.default.fetchByIds({fetchByIds:[t]}).then((function(e){if(!e||1!==e.length)throw new Error("Unexpected response returned from user API");n("addUser",e[0])})).catch((function(e){return noty({text:"Fetch user failure"+e,type:"error",layout:"topCenter",timeout:2e3})})).finally((function(){return n("toggleLoadingForId",t)}))},fetchClassroomMembers:function(e,t){var n=e.commit,r=t.classroom,i=t.options,a=void 0===i?{}:i;return o.default.getMembers({classroom:r},{removeDeleted:!0,data:{project:a.project||"firstName,lastName,name,email,coursePrepaid,products,deleted"}}).then((function(e){e&&e.length>0&&n("setUsers",e)})).catch((function(e){return noty({text:"Fetch user failure"+e,type:"error",layout:"topCenter",timeout:2e3})}))},fetchCreatorOfPrepaid:function(e,t){var n=e.commit;return r.default.fetchCreatorOfPrepaid({prepaidId:t}).then((function(e){e&&n("setUsers",[e])})).catch((function(e){console.error("Fetch user failure ".concat(e.message))}))},fetchUsersByNameOrSlug:function(e,t){var n=e.commit;i.default.searchUser(t).then((function(e){n("setSearchedResult",e)})).catch((function(e){console.error("Fetch user failure ".concat(e.message))}))},fetchUserNamesById:function(e,t){var n=e.commit;return r.default.fetchNamesForUser(t).then((function(e){e&&n("setUserNames",e)})).catch((function(e){console.error("Fetch user names failure ".concat(e.message))}))},fetchClassroomNamesByUserId:function(e,t){var n=e.commit;return r.default.fetchClassNamesForUser(t).then((function(e){e&&n("setClassroomNames",e)})).catch((function(e){console.error("Fetch classroom names failure ".concat(e.message)),window.noty({text:"Fetch classroom names failure ".concat(e.message),type:"error"})}))}}}},272508:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=n(808243),i=n(579483),a=n(299498);function s(){s=function(){return t};var e,t={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&o.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,017 bytes, line 2
2))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(o.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function c(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}t.Z={namespaced:!0,actions:{preload:function(e,t){var n,r,o,s,c=e.dispatch,u=t.dialogNode,l=t.speakerThangType,d="male",p=(me.get("ozariaUserOptions")||{}).cinematicThangTypeOriginal||i.ozariaCinematicHeroes["hero-b"];-1!==[i.ozariaCinematicHeroes["hero-b"],i.ozariaCinematicHeroes["hero-c"],i.ozariaCinematicHeroes["hero-e"]].indexOf(p)&&(d="female");var f=u.voiceOver;if((null!==(n=f)&&void 0!==n&&n.male||null!==(r=f)&&void 0!==r&&r.female)&&(f=f[d]),!(null!==(o=f)&&void 0!==o&&o.mp3||null!==(s=f)&&void 0!==s&&s.ogg)){var h=u.originalMessage||u.text,m=(0,a.i18n)(u,"text"),g=m!==h;if(!m)return Promise.resolve(void 0);var y=(0,a.markdownToPlainText)(m);y=(y=y.replace(/Acodus/g,"akodus")).replace(/ ?\{%=.+?\} ?/g,""),"hero"===l&&(l="male"===d?"hero-a":"hero-b");var v=me.get("preferredLanguage",!0),b="text-to-speech/".concat(g||"en-GB"===v?v:"en-US","/").concat(l,"/").concat(encodeURIComponent(y));f={mp3:b+".mp3",ogg:b+".ogg"}}return c("audio/playSound",{track:"voiceOver",autoplay:!1,src:Object.values(f).map((function(e){return"/file/".concat(e)}))},{root:!0})},playVoiceOver:function(e,t){return(n=s().mark((function n(){var r,i;return s().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return(r=e.dispatch)("audio/fadeTrack",{to:0,track:"voiceOver",duration:100},{root:!0}),n.next=4,t;case 4:i=n.sent,r("audio/playSound",{preloadedId:i,volume:o.VOICE_OVER_VOLUME},{root:!0});case 6:case"end":return n.stop()}}),n)})),function(){var e=this,t=arguments;return new Promise((function(r,o){var i=n.apply(e,t);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(void 0)}))})();var n}}}},586369:(e,t,n)=>{"use strict";var r=n(619755),o=n(299498);e.exports={projectGallery:function(e){var t=e.courseInstanceID;return"/students/project-gallery/".concat(t)},playDevLevel:function(e){var t,n=e.level,r=e.session,o=e.course,i=e.courseInstanceId;n=n.attributes||n,r=r.attributes||r,o=(null===(t=o)||void 0===t?void 0:t.attributes)||o;var a="".concat(window.location.origin,"/play/").concat(n.type,"-level/").concat(n.slug,"/").concat(r._id);return o&&(a+="?course=".concat(o._id)),o&&i&&(a+="&course-instance=".concat(i)),a},courseArenaLadder:function(e){var t,n,r=e.level,o=e.courseInstance;if(r=(null===(t=r)||void 0===t?void 0:t.attributes)||r,o=(null===(n=o)||void 0===n?void 0:n.attributes)||o,r&&o)return"/play/ladder/".concat(r.slug,"/course/").concat(o._id)},courseLevel:function(e){var t=e.level,n=e.courseInstance,r="/play/level/".concat(t.get("slug"),"?course=").concat(n.get("courseID"),"&course-instance=").concat(n.id);return o.OZ_COURSE_IDS.includes(n.get("courseID"))&&(r=r.replace("/play/level","/play/ozaria/level")),t.get("primerLanguage")&&(r+="&codeLanguage=".concat(t.get("primerLanguage"))),r},courseWorldMap:function(e){var t,n,i,a,s,c,u,l,d=e.courseId||(null===(t=e.course)||void 0===t?void 0:t.id)||(null===(n=e.course)||void 0===n?void 0:n._id)||e.course,p=e.courseInstanceId||(null===(i=e.courseInstance)||void 0===i?void 0:i.id)||(null===(a=e.courseInstance)||void 0===a?void 0:a._id)||e.courseInstance,f=e.campaignId||(null===(s=e.course)||void 0===s||null===(c=s.attributes)||void 0===c?void 0:c.campaignID)||(null===(u=e.course)||void 0===u?void 0:u.campaignID),h=(null===(l=e.classroom)||void 0===l?void 0:l.id)||e.classroomId,m=e.campaignPage,g=e.codeLanguage;if(!f)return console.error("courseWorldMap: campaign id is not defined",e),"";if(d===o.courseIDs.HACKSTACK)return"/ai/course-instance/".concat(p);if(o.HACKSTACK_COURSE_IDS.includes(d))return p?"/ai/play/".concat(f,"/?course-instance=").concat(p):"/ai/play";var y=o.courseCampaignSlugs[d],v="/play/".concat(encodeURIComponent(y||f)),b={};d&&(b.course=encodeURIComponent(d)),p&&(b["course-instance"]=encodeURIComponent(p)),m&&(b["campaign-page"]=encodeURIComponent(m)),g&&(b.codeLanguage=encodeURIComponent(g)),h&&(b["classroom-id"]=encodeURIComponent(h));var _=r.param(b);return _&&(v+="?".concat(_)),o.OZ_COURSE_IDS.includes(d)&&!v.startsWith("/play/ozaria")&&(v=v.replace(/^\/play/,"/play/ozaria")),v},courseProjectGallery:function(e){var t=e.courseInstance;return"/students/project-gallery/".concat(t.id)}}}
vendor: 12,739 bytes, line 2
2,299498:(e,t,n)=>{"use strict";var r,o,i,a,s,c,u,l,d,p,f,h,m,g,y,v,b=n(619755),_=n(665420);function w(){w=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function l(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:E(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var p="suspendedStart",f="executing",h="completed",m={};function g(){}function y(){}function v(){}var b={};u(b,a,(function(){return this}));var _=Object.getPrototypeOf,S=_&&_(_(j([])));S&&S!==n&&r.call(S,a)&&(b=S);var C=v.prototype=g.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function n(o,i,a,s){var c=d(e[o],e,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==A(l)&&r.call(l,"__await")?t.resolve(l.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function E(t,n,r){var o=p;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===h){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=O(s,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=f;var u=d(t,n,r);if("normal"===u.type){if(o=r.done?h:"suspendedYield",u.arg===m)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=h,r.method="throw",r.arg=u.arg)}}}function O(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,O(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),m;var i=d(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var a=i.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,m):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(A(t)+" is not iterable")}return y.prototype=v,o(C,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=u(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,u(e,c,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},k(x.prototype),u(x.prototype,s,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new x(l(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(C),u(C,c,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),m}},t}function S(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function C(e){return function(e){if(Array.isArray(e))return x(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||k(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){if(e){if("string"==typeof e)return x(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?x(e,t):void 0}}function x(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){T(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function T(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==A(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}var P=null!=(p="codecombat")?p:"codecombat",I=null!=(p="production-2026-09-18-18-16-17")?p:"unknown",j="codecombat"===P,L=!j,N=n(250636),R=function(){return L||window.location.pathname.includes("ozaria")};if(j)n.g&&n.g._&&n.g._.str&&n.g._.str.slugify?y=n.g._.str.slugify:N&&N.string&&N.string.slugify&&(y=N.string.slugify);else{var D=n(996654);y=D.slugify}var M=[{country:"united-states",countryCode:"US",ageOfConsent:13,addressesIncludeAdministrativeRegion:!0},{country:"china",countryCode:"CN",addressesIncludeAdministrativeRegion:!0},{country:"brazil",countryCode:"BR"},{country:"united-kingdom",countryCode:"GB",inEU:!0,ageOfConsent:13},{country:"russia",countryCode:"RU"},{country:"australia",countryCode:"AU",addressesIncludeAdministrativeRegion:!0},{country:"canada",countryCode:"CA",addressesIncludeAdministrativeRegion:!0},{country:"france",countryCode:"FR",inEU:!0,ageOfConsent:15},{country:"taiwan",countryCode:"TW"},{country:"ukraine",countryCode:"UA"},{country:"poland",countryCode:"PL",inEU:!0,ageOfConsent:13},{country:"spain",countryCode:"ES",inEU:!0,ageOfConsent:13},{country:"germany",countryCode:"DE",inEU:!0,ageOfConsent:16},{country:"netherlands",countryCode:"NL",inEU:!0,ageOfConsent:16},{country:"hungary",countryCode:"HU",inEU:!0,ageOfConsent:16},{country:"japan",countryCode:"JP"},{country:"turkey",countryCode:"TR"},{country:"south-africa",countryCode:"ZA"},{country:"indonesia",countryCode:"ID"},{country:"new-zealand",countryCode:"NZ"},{country:"finland",countryCode:"FI",inEU:!0,ageOfConsent:13},{country:"south-korea",countryCode:"KR"},{country:"mexico",countryCode:"MX",addressesIncludeAdministrativeRegion:!0},{country:"vietnam",countryCode:"VN"},{country:"singapore",countryCode:"SG"},{country:"colombia",countryCode:"CO"},{country:"india",countryCode:"IN",addressesIncludeAdministrativeRegion:!0},{country:"thailand",countryCode:"TH"},{country:"belgium",countryCode:"BE",inEU:!0,ageOfConsent:13},{country:"sweden",countryCode:"SE",inEU:!0,ageOfConsent:13},{country:"denmark",countryCode:"DK",inEU:!0,ageOfConsent:13},{country:"czech-republic",countryCode:"CZ",inEU:!0,ageOfConsent:15},{country:"hong-kong",countryCode:"HK"},{country:"italy",countryCode:"IT",inEU:!0,ageOfConsent:16,addressesIncludeAdministrativeRegion:!0},{country:"romania",countryCode:"RO",inEU:!0,ageOfConsent:16},{country:"belarus",countryCode:"BY"},{country:"norway",countryCode:"NO",inEU:!0,ageOfConsent:13},{country:"philippines",countryCode:"PH"},{country:"lithuania",countryCode:"LT",inEU:!0,ageOfConsent:16},{country:"argentina",countryCode:"AR"},{country:"malaysia",countryCode:"MY",addressesIncludeAdministrativeRegion:!0},{country:"pakistan",countryCode:"PK"},{country:"serbia",countryCode:"RS"},{country:"greece",countryCode:"GR",inEU:!0,ageOfConsent:15},{country:"israel",countryCode:"IL",inEU:!0},{country:"portugal",countryCode:"PT",inEU:!0,ageOfConsent:13},{country:"slovakia",countryCode:"SK",inEU:!0,ageOfConsent:16},{country:"ireland",countryCode:"IE",inEU:!0,ageOfConsent:16},{country:"switzerland",countryCode:"CH",inEU:!0,ageOfConsent:16},{country:"peru",countryCode:"PE"},{country:"bulgaria",countryCode:"BG",inEU:!0,ageOfConsent:14},{country:"venezuela",countryCode:"VE"},{country:"austria",countryCode:"AT",inEU:!0,ageOfConsent:14},{country:"croatia",countryCode:"HR",inEU:!0,ageOfConsent:16},{country:"saudia-arabia",countryCode:"SA"},{country:"chile",countryCode:"CL"},{country:"united-arab-emirates",countryCode:"AE"},{country:"kazakhstan",countryCode:"KZ"},{country:"estonia",countryCode:"EE",inEU:!0,ageOfConsent:13},{country:"iran",countryCode:"IR"},{country:"egypt",countryCode:"EG"},{country:"ecuador",countryCode:"EC"},{country:"slovenia",countryCode:"SI",inEU:!0,ageOfConsent:15},{country:"macedonia",countryCode:"MK"},{country:"cyprus",countryCode:"CY",inEU:!0,ageOfConsent:14},{country:"latvia",countryCode:"LV",inEU:!0,ageOfConsent:13},{country:"luxembourg",countryCode:"LU",inEU:!0,ageOfConsent:16},{country:"malta",countryCode:"MT",inEU:!0,ageOfConsent:16},{country:"lichtenstein",countryCode:"LI",inEU:!0},{country:"iceland",countryCode:"IS",inEU:!0}
2],F=function(e){return N.string.titleize(N.string.humanize(e)).replace(/ (and|or|but|nor|yet|so|for|a|an|the|in|to|of|at|by|up|for|off|on|with|from)(?= )/gi,(function(e){return e.toLowerCase()}))},U={CHAPTER_ONE:"5d41d731a8d1836b5aa3cba1",CHAPTER_TWO:"5d8a57abe8919b28d5113af1",CHAPTER_THREE:"5e27600d1c9d440000ac3ee7",CHAPTER_FOUR:"5f0cb0b7a2492bba0b3520df"},B={INTRO_TO_AI:"69848429268d20956ac05832",ARTIFICIAL_INTELLIGENCE_1:"6984842b268d20956ac05843",ARTIFICIAL_INTELLIGENCE_2:"6984842d268d20956ac05849",ALGEBRA:"6984842a268d20956ac0583d",CAREER_READINESS:"6984842b268d20956ac05840",CAREER_READINESS_2:"6984842d268d20956ac0584c",CYBER:"69cde02a956c9590bf085a91",ENGLISH_LANGUAGE_ARTS:"69848429268d20956ac05838",COMPUTER_SCIENCE:"6984842c268d20956ac05846",AI_EXPLORATIONS:"6984842f268d20956ac05852",AI_SANDBOX:"6984842e268d20956ac0584f"},$={INTRODUCTION_TO_COMPUTER_SCIENCE:"560f1a9f22961295f9427742",GAME_DEVELOPMENT_1:"5789587aad86a6efb573701e",WEB_DEVELOPMENT_1:"5789587aad86a6efb573701f",COMPUTER_SCIENCE_2:"5632661322961295f9428638",GAME_DEVELOPMENT_2:"57b621e7ad86a6efb5737e64",WEB_DEVELOPMENT_2:"5789587aad86a6efb5737020",COMPUTER_SCIENCE_3:"56462f935afde0c6fd30fc8c",GAME_DEVELOPMENT_3:"5a0df02b8f2391437740f74f",COMPUTER_SCIENCE_4:"56462f935afde0c6fd30fc8d",COMPUTER_SCIENCE_5:"569ed916efa72b0ced971447",COMPUTER_SCIENCE_6:"5817d673e85d1220db624ca4"};j?(c=[(r={JUNIOR:"65c56663d2ca2055e65676af",INTRO:"55b29efd1cd6abe8ce07db0d",HACKSTACK:"663b25881c568468efc7b51c"}).JUNIOR,r.INTRO],d=[],a=[(i=O(O(O({JUNIOR:"65f32b6c87c07dbeb5ba1936"},$),B),{},{HACKSTACK:"663b25f11c568468efc8adde"})).GAME_DEVELOPMENT_1,i.WEB_DEVELOPMENT_1,i.GAME_DEVELOPMENT_2,i.WEB_DEVELOPMENT_2,i.GAME_DEVELOPMENT_3],h=U,s=[i.JUNIOR,i.INTRODUCTION_TO_COMPUTER_SCIENCE,i.COMPUTER_SCIENCE_2,i.COMPUTER_SCIENCE_3,i.COMPUTER_SCIENCE_4,i.COMPUTER_SCIENCE_5,i.COMPUTER_SCIENCE_6],v=[i.WEB_DEVELOPMENT_1,i.WEB_DEVELOPMENT_2],f=[i.JUNIOR,i.INTRODUCTION_TO_COMPUTER_SCIENCE,i.GAME_DEVELOPMENT_1,i.WEB_DEVELOPMENT_1,i.COMPUTER_SCIENCE_2,i.GAME_DEVELOPMENT_2,i.WEB_DEVELOPMENT_2,i.COMPUTER_SCIENCE_3,i.GAME_DEVELOPMENT_3,i.COMPUTER_SCIENCE_4,i.COMPUTER_SCIENCE_5,i.COMPUTER_SCIENCE_6,i.INTRO_TO_AI,i.ARTIFICIAL_INTELLIGENCE_1,i.ARTIFICIAL_INTELLIGENCE_2,i.ALGEBRA,i.CAREER_READINESS,i.CAREER_READINESS_2,i.CYBER,i.ENGLISH_LANGUAGE_ARTS,i.COMPUTER_SCIENCE,i.AI_EXPLORATIONS,i.AI_SANDBOX,h.CHAPTER_ONE,h.CHAPTER_TWO,h.CHAPTER_THREE,h.CHAPTER_FOUR],m=[],u={campaignId:c[1],courseId:i.INTRODUCTION_TO_COMPUTER_SCIENCE,name:"Introduction to Computer Science",progressModalAfter:15e5}):(c=[(r={CHAPTER_ONE:"5d1a8368abd38e8b5363bad9"}).CHAPTER_ONE],d=["5eb34fc8dc0fd35e8eae66b0"],i=U,h=O(O(O({JUNIOR:"65f32b6c87c07dbeb5ba1936"},$),B),{},{HACKSTACK:"663b25f11c568468efc8adde"}),s=[i.CHAPTER_ONE,i.CHAPTER_TWO,i.CHAPTER_THREE,i.CHAPTER_FOUR],v=[],f=[i.CHAPTER_ONE,i.CHAPTER_TWO,i.CHAPTER_THREE,i.CHAPTER_FOUR],m=[h.JUNIOR,h.INTRODUCTION_TO_COMPUTER_SCIENCE,h.GAME_DEVELOPMENT_1,h.WEB_DEVELOPMENT_1,h.COMPUTER_SCIENCE_2,h.GAME_DEVELOPMENT_2,h.WEB_DEVELOPMENT_2,h.COMPUTER_SCIENCE_3,h.GAME_DEVELOPMENT_3,h.COMPUTER_SCIENCE_4,h.COMPUTER_SCIENCE_5,h.COMPUTER_SCIENCE_6,h.INTRO_TO_AI,h.ARTIFICIAL_INTELLIGENCE_1,h.ARTIFICIAL_INTELLIGENCE_2,h.ALGEBRA,h.CAREER_READINESS,h.CAREER_READINESS_2,h.CYBER,h.ENGLISH_LANGUAGE_ARTS,h.COMPUTER_SCIENCE,h.AI_EXPLORATIONS,h.AI_SANDBOX],u={campaignId:c[0],courseId:i.CHAPTER_ONE,name:"Chapter 1: Up The Mountain",progressModalAfter:15e5});var H=N.assign({},i,h),z=[].concat(C(f),C(m)),q=[H.JUNIOR],V=[H.HACKSTACK].concat(C(Object.values(B))),G=[U.CHAPTER_ONE,U.CHAPTER_TWO,U.CHAPTER_THREE,U.CHAPTER_FOUR],W=[H.INTRODUCTION_TO_COMPUTER_SCIENCE,H.GAME_DEVELOPMENT_1,H.WEB_DEVELOPMENT_1,H.COMPUTER_SCIENCE_2,H.GAME_DEVELOPMENT_2,H.WEB_DEVELOPMENT_2,H.COMPUTER_SCIENCE_3,H.GAME_DEVELOPMENT_3,H.COMPUTER_SCIENCE_4,H.COMPUTER_SCIENCE_5,H.COMPUTER_SCIENCE_6],Y=[H.GAME_DEVELOPMENT_1,H.GAME_DEVELOPMENT_2,H.GAME_DEVELOPMENT_3],K=[H.WEB_DEVELOPMENT_1,H.WEB_DEVELOPMENT_2],J=[H.JUNIOR,H.INTRODUCTION_TO_COMPUTER_SCIENCE,H.CHAPTER_ONE,H.INTRO_TO_AI],Z={};!function(){Z.NO_ACCESS=0;for(var e=1,t=0,n=[].concat(C(Array.from(f)),C(Array.from(m)));t<n.length;t++){var r=n[t];Z[r]=e,e*=2}Z.FULL_ACCESS=e-1}();var X={};X[H.JUNIOR]="JR",X[H.INTRODUCTION_TO_COMPUTER_SCIENCE]="CS1",X[H.GAME_DEVELOPMENT_1]="GD1",X[H.WEB_DEVELOPMENT_1]="WD1",X[H.COMPUTER_SCIENCE_2]="CS2",X[H.GAME_DEVELOPMENT_2]="GD2",X[H.WEB_DEVELOPMENT_2]="WD2",X[H.COMPUTER_SCIENCE_3]="CS3",X[H.GAME_DEVELOPMENT_3]="GD3",X[H.COMPUTER_SCIENCE_4]="CS4",X[H.COMPUTER_SCIENCE_5]="CS5",X[H.COMPUTER_SCIENCE_6]="CS6",X[H.CHAPTER_ONE]="CH1",X[H.CHAPTER_TWO]="CH2",X[H.CHAPTER_THREE]="CH3",X[H.CHAPTER_FOUR]="CH4",X[H.HACKSTACK]="AI",X[B.INTRO_TO_AI]="INTRO",X[B.ENGLISH_LANGUAGE_ARTS]="ELA",X[B.ALGEBRA]="ALG",X[B.CAREER_READINESS]="CR1",X[B.ARTIFICIAL_INTELLIGENCE_1]="AI1",X[B.COMPUTER_SCIENCE]="CS",X[B.ARTIFICIAL_INTELLIGENCE_2]="AI2",X[B.CAREER_READINESS_2]="CR2",X[B.AI_SANDBOX]="SBOX",X[B.AI_EXPLORATIONS]="EXP",X[B.CYBER]="CYB";var Q={};Q[H.JUNIOR]="junior",Q[H.INTRODUCTION_TO_COMPUTER_SCIENCE]="intro",Q[H.GAME_DEVELOPMENT_1]="game-dev-1",Q[H.WEB_DEVELOPMENT_1]="web-dev-1",Q[H.COMPUTER_SCIENCE_2]="course-2",Q[H.GAME_DEVELOPMENT_2]="game-dev-2",Q[H.WEB_DEVELOPMENT_2]="web-dev-2",Q[H.COMPUTER_SCIENCE_3]="course-3",Q[H.GAME_DEVELOPMENT_3]="game-dev-3",Q[H.COMPUTER_SCIENCE_4]="course-4",Q[H.COMPUTER_SCIENCE_5]="course-5",Q[H.COMPUTER_SCIENCE_6]="course-6",Q[H.CHAPTER_ONE]="chapter-1-sky-mountain",Q[H.CHAPTER_TWO]="chapter-2-the-moon-dancers",Q[H.CHAPTER_THREE]="chapter-3-the-phoenix-lands",Q[H.CHAPTER_FOUR]="chapter-4-the-final-code",Q[H.HACKSTACK]="hackstack",Q[H.INTRO_TO_AI]="intro-to-ai",Q[H.ENGLISH_LANGUAGE_ARTS]="english-language-arts",Q[H.ALGEB
2RA]="algebra",Q[H.CAREER_READINESS]="career-readiness",Q[H.ARTIFICIAL_INTELLIGENCE_1]="artificial-intelligence-1",Q[H.COMPUTER_SCIENCE]="computer-science-ai",Q[H.ARTIFICIAL_INTELLIGENCE_2]="artificial-intelligence-2",Q[H.CAREER_READINESS_2]="career-readiness-2",Q[H.CYBER]="cyber",Q[H.AI_SANDBOX]="ai-sandbox",Q[H.AI_EXPLORATIONS]="ai-explorations";var ee,te,ne,re=function(e){return"#"===e.charAt(0)?e.substring(1,7):e},oe=function(e){var t,n=e.split("\n"),r=N.min(N.filter(n.map((function(e){return qe(qe(e.match(/^\s*/),(function(e){return e[0]})),(function(e){return e.length}))}))));return function(){for(var e=[],o=0,i=Array.from(n);o<i.length;o++)t=i[o],e.push(t.substr(r));return e}().join("\n")},ie=function e(t){if(!t)return"";if("object"===A(t)){var n={};return Object.keys(t).forEach((function(r){n[r]=e(t[r])})),n}return"string"!=typeof t?t:t.replace(/^\[AI_TRANSLATION\]/,"")},ae=function(e,t,n,r){var o;null==n&&(n=me.get("preferredLanguage",!0)),null==r&&(r="en");var i=null,a=null,s=null,c=null,u=/\w+/gi.exec(n);if(u&&(o=u[0]),!(null!=e?e.i18n:void 0))return ie(null!=e?e[t]:void 0);for(var l in e.i18n){var d,p=e.i18n[l];if("-"!==l&&t in p&&p[t]){if(d=p[t],l===n)return ie(d);l===o&&(i=d),l===r&&(a=d),0===l.indexOf(n)&&null==s&&(s=d),0===l.indexOf(o)&&null==c&&(c=d)}}return null!=i?ie(i):null!=s?ie(s):null!=c?ie(c):null!=a?ie(a):t in e?ie(e[t]):null},se=N.curry((function(e,t){return+t.toFixed(e)})),ce=function(e){return function(t){return function(n){return n>0?e(t)(n):0}}},ue={linear:ce((function(e){return function(t){return(e.a||1)*t+(e.b||0)}})),quadratic:ce((function(e){return function(t){return(e.a||1)*t*t+(e.b||1)*t+(e.c||0)}})),logarithmic:ce((function(e){return function(t){return t>0?(e.a||1)*Math.log((e.b||1)*(t+(e.c||0)))+(e.d||0):0}})),pow:ce((function(e){return function(t){return(e.a||1)*Math.pow(t,e.b||1)+(e.c||0)}}))},le=o=function(e,t){if(N.isObject(e)&&N.isObject(t)){for(var n=0,r=Array.from(N.union(Object.keys(e),Object.keys(t)));n<r.length;n++){var i=r[n];if(!o(e[i],t[i]))return!1}return!0}return e===t};if("undefined"!=typeof document&&null!==document?document.createElement:void 0){var de=document.createElement("div");de.innerHTML="text";var pe="text"===de.textContent?"textContent":"innerText";g=function(e,t){for(var n=0,r=Array.from(e);n<r.length;n++)r[n][pe]=t;return null}}("undefined"!=typeof document&&null!==document?document.createElement:void 0)&&(ee=document,te=ee.createElement("div"),ne=ee.createElement("div"),l=function(e){te.id||(te.id="injected-css",te.style.display="none",ee.body.appendChild(te)),ne.innerHTML="<br><style>"+e+"</style>",te.appendChild(ne.children[1])});var fe,he,ge,ye,ve=function(){for(var t=e.exports.getDocumentSearchString().substring(1),n=Array.from(t.split("&")).map((function(e){return e.split("=")})),r={},o=0,i=Array.from(n);o<i.length;o++){var a,s=(l=i[o],d=2,function(e){if(Array.isArray(e))return e}(l)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(l,d)||k(l,d)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=s[0],u=s[1];r[c]=null!=(a={true:!0,false:!1}[u])?a:decodeURIComponent(u)}var l,d;return r},be=function(e,t){var n=ve();return null!=n[e]?n[e]:t},_e=function(e){return null!=e?e.optional:void 0},we=function(e){return(null!=e?e.locked:void 0)&&!_e(e)},Se=function(e){return(null!=e?e.complete:void 0)||(null!=e?e.assessment:void 0)||_e(e)},Ce=function(e){return null!=e?e.practice:void 0},ke=(fe={AL:"Alabama",AK:"Alaska",AZ:"Arizona",AR:"Arkansas",CA:"California",CO:"Colorado",CT:"Connecticut",DE:"Delaware",DC:"District of Columbia",FL:"Florida",GA:"Georgia",HI:"Hawaii",ID:"Idaho",IL:"Illinois",IN:"Indiana",IA:"Iowa",KS:"Kansas",KY:"Kentucky",LA:"Louisiana",ME:"Maine",MD:"Maryland",MA:"Massachusetts",MI:"Michigan",MN:"Minnesota",MS:"Mississippi",MO:"Missouri",MT:"Montana",NE:"Nebraska",NV:"Nevada",NH:"New Hampshire",NJ:"New Jersey",NM:"New Mexico",NY:"New York",NC:"North Carolina",ND:"North Dakota",OH:"Ohio",OK:"Oklahoma",OR:"Oregon",PA:"Pennsylvania",RI:"Rhode Island",SC:"South Carolina",SD:"South Dakota",TN:"Tennessee",TX:"Texas",UT:"Utah",VT:"Vermont",VA:"Virginia",WA:"Washington",WV:"West Virginia",WI:"Wisconsin",WY:"Wyoming"},he=N.invert(fe),{sanitizeStateCode:ge=function(e){return e=N.isString(e)?e.trim().toUpperCase().replace(/[^A-Z]/g,""):null,fe[e]?e:null}
2,getStateNameByStateCode:function(e){return fe[ge(e)]||null},sanitizeStateName:ye=function(e){if(!N.isString(e))return null;var t=(e=e.trim().toLowerCase().replace(/[^a-z\s]/g,"").replace(/\s+/g," ")).split(/\s+/);return(t=N.map(t,(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}))).length>2&&(t[1]=t[1].toLowerCase()),e=t.join(" "),he[e]?e:null},getStateCodeByStateName:function(e){return he[ye(e)]||null},codes:Object.keys(fe)}),xe=/[A-z0-9._%+-]+@[A-z0-9.-]+\.[A-z]{2,63}/,Ee=[{slug:"0-11",max:11},{slug:"11-14",max:14},{slug:"14-18",max:18},{slug:"open",max:9001}],Oe=[{slug:"0-11",max:11},{slug:"11-18",max:18},{slug:"open",max:9001}],Te=[{name:"Season 1",start:"01-01",end:"04-30"},{name:"Season 2",start:"05-01",end:"08-31"},{name:"Season 3",start:"09-01",end:"12-31"}],Ae="codecombat",Pe="koudashijie",Ie="ozaria",je="aojiarui",Le=function(){if(b.browser){if(!(b.browser.webkit||b.browser.mozilla||b.browser.msedge))return!0;var e=b.browser.versionNumber;if(b.browser.mozilla&&e<75)return!0;if(b.browser.chrome&&e<79)return!0;if(b.browser.safari&&e<11.1)return!0}return!1},Ne=[{season:1,slug:"blazing-battle",type:"regular",start:new Date("2021-01-01T00:00:00.000-08:00"),end:new Date("2021-05-01T00:00:00.000-07:00"),results:new Date("2021-05-01T00:00:00.000-07:00"),levelOriginal:"5fc
2a06dc8b4da8002889dbf1",tournament:"608cea0f8f2b971478556ac6",image:"/file/db/level/5fca06dc8b4da8002889dbf1/Blazing Battle Final cut.jpg"},{season:1,slug:"infinite-inferno",type:"championship",start:new Date("2021-04-01T00:00:00.000-07:00"),end:new Date("2021-05-01T00:00:00.000-07:00"),results:new Date("2021-05-01T00:00:00.000-07:00"),levelOriginal:"602cdc204ef0480075fbd954",tournament:"608cd3f814fa0bf9f1c1f928",image:"/file/db/level/602cdc204ef0480075fbd954/InfiniteInferno_Banner_Final.jpg"},{season:2,slug:"mages-might",type:"regular",start:new Date("2021-05-01T00:00:00.000-07:00"),end:new Date("2021-09-01T00:00:00.000-07:00"),results:new Date("2021-09-08T07:00:00.000-07:00"),levelOriginal:"6066f956ddfd6f003d1ed6bb",tournament:"612d554b9abe2e0019aeffb9",image:"/file/db/level/6066f956ddfd6f003d1ed6bb/Mages'%20Might%20Banner.jpg"},{season:2,slug:"sorcerers",type:"championship",start:new Date("2021-08-01T00:00:00.000-07:00"),end:new Date("2021-09-01T00:00:00.000-07:00"),results:new Date("2021-09-08T07:00:00.000-07:00"),levelOriginal:"609a6ad2e1eb34001a84e7af",tournament:"612d556f9abe2e0019af000b",image:"/file/db/level/609a6ad2e1eb34001a84e7af/Sorcerer's-Blitz-01.jpg"},{season:3,slug:"giants-gate",type:"regular",start:new Date("2021-09-01T00:00:00.000-07:00"),end:new Date("2021-12-15T00:00:00.000-08:00"),results:new Date("2021-12-21T07:00:00.000-08:00"),levelOriginal:"60e69b24bed8ae001ac6ce3e",tournament:"6136a86e0c0ecaf34e431e81",image:"/file/db/level/60e69b24bed8ae001ac6ce3e/Giantâs-Gate-Final.jpg"},{season:3,slug:"colossus",type:"championship",start:new Date("2021-11-19T00:00:00.000-08:00"),end:new Date("2021-12-15T00:00:00.000-08:00"),results:new Date("2021-12-21T07:00:00.000-08:00"),levelOriginal:"615ffaf2b20b4900280e0070",tournament:"61983f74fd75db5e28ac127a",image:"/file/db/level/615ffaf2b20b4900280e0070/Colossus-Clash-02.jpg"},{season:4,slug:"iron-and-ice",type:"regular",start:new Date("2022-01-01T00:00:00.000-08:00"),end:new Date("2022-05-01T00:00:00.000-07:00"),results:new Date("2022-05-10T07:00:00.000-07:00"),levelOriginal:"618a5a13994545008d2d4990",tournament:"623a648580501d0025d8f4ef",image:"/file/db/level/618a5a13994545008d2d4990/Iron-and-Ice-Arena-Banner-02.jpg"},{season:4,slug:"tundra-tower",type:"championship",start:new Date("2022-03-11T00:00:00.000-07:00"),end:new Date("2022-05-01T00:00:00.000-07:00"),results:new Date("2022-05-10T07:00:00.000-07:00"),levelOriginal:"620cb80a9bc0f1005e9189d7",tournament:"623a652b53903c1c6c1c6045",image:"/file/db/level/620cb80a9bc0f1005e9189d7/Tundra-Tower-Cup-Arena-Banner-1000px.jpeg"},{season:5,slug:"desert-duel",type:"regular",start:new Date("2022-05-01T00:00:00.000-07:00"),end:new Date("2022-09-01T00:00:00.000-07:00"),results:new Date("2022-09-13T07:00:00.000-07:00"),levelOriginal:"62540bd270cb4400504ad44c",tournament:"626c6017deb6dd43a1937b81",image:"/file/db/level/62540bd270cb4400504ad44c/Basketball-Arena-Banner-01.jpg"},{season:5,slug:"sandstorm",type:"championship",start:new Date("2022-08-01T00:00:00.000-07:00"),end:new Date("2022-09-01T00:00:00.000-07:00"),results:new Date("2022-09-13T07:00:00.000-07:00"),levelOriginal:"62d50c5cd722b00025eddac7",tournament:"62e6ff22a6960064d67d87c3",image:"/file/db/level/62d50c5cd722b00025eddac7/Basketball-Arena-Sandstorm-Banner-02.jpg"},{season:6,slug:"magma-mountain",type:"regular",start:new Date("2022-09-01T00:00:00.000-07:00"),end:new Date("2023-01-01T00:00:00.000-08:00"),results:new Date("2023-01-11T07:00:00.000-08:00"),levelOriginal:"62f9f6506428860025b15a8b",tournament:"638557acf7cd36e695a1aad0",image:"/file/db/level/62f9f6506428860025b15a8b/Codecombat-Magma-Mountain-Banner-02b%20(1).jpg"},{season:6,slug:"lava-lake",type:"championship",start:new Date("2022-12-01T00:00:00.000-08:00"),end:new Date("2023-01-01T00:00:00.000-08:00"),results:new Date("2023-01-11T07:00:00.000-08:00"),levelOriginal:"635bceb16dc3150020acb1f8",tournament:"63855798f7cd36e695a1aac5",image:"/file/db/level/635bceb16dc3150020acb1f8/Lava-Lake-Arena-Banner-02.jpg"},{season:7,slug:"frozen-fortress",type:"regular",start:new Date("2023-01-01T00:00:00.000-08:00"),end:new Date("2023-05-01T00:00:00.000-07:00"),results:new Date("2023-05-10T07:00:00.000-07:00"),levelOriginal:"639c9a5fad4eb7001f66c801",tournament:"64260960f1c07d0018299145",image:"/file/db/level/639c9a5fad4eb7001f66c801/AILeague-Banner-Frozen-Fortress-01.jpg"},{season:7,slug:"equinox",type:"championship",start:new Date("2023-04-01T00:00:00.000-07:00"),end:new Date("2023-05-01T00:00:00.000-07:00"),results:new Date("2023-05-10T07:00:00.000-07:00"),levelOriginal:"6406d8b2da5aca06eb3560d7",tournament:"642609bf54cb921c6d8cf3df",image:"/file/db/level/6406d8b2da5aca06eb3560d7/AILeague-Banner-Equinox-Cup-01.jpg"},{season:8,slug:"farmers-feud",type:"regular",start:new Date("2023-05-01T00:00:00.000-07:00"),end:new Date("2023-09-01T00:00:00.000-07:00"),results:new Date("2023-09-14T07:00:00.000-07:00"),levelOriginal:"6436ae25bb80330019b127c6",tournament:"64c836a5d95277dfd69f9ae3",image:"/file/db/level/6436ae25bb80330019b127c6/AILeague-Banner-Farmer's-Feud-02.jpg"},{season:8,slug:"farmscape",type:"championship",start:new Date("2023-07-01T00:00:00.000-07:00"),end:new Date("2023-09-01T00:00:00.000-07:00"),results:new Date("2023-09-14T07:00:00.000-07:00"),levelOriginal:"649ab0387be08b00fdf31e8a",tournament:"64c836c5d95277dfd69f9af1",image:"/file/db/level/649ab0387be08b00fdf31e8a/AILeague-Banner-Farmer's-Feud-03.jpg"},{season:9,slug:"storm-siege",type:"regular",start:new Date("2023-09-01T00:00:00.000-07:00"),end:new Date("2024-01-01T00:00:00.000-08:00"),results:new Date("2024-01-10T07:00:00.000-08:00"),levelOriginal:"64c792d1562b9a008d3e2e1a",tournament:"658cfc449ac7fb700b08d815",image:"/file/db/level/64c792d1562b9a008d3e2e1a/StormSiegeBannerv3.png"},{season:9,slug:"snowhold",type:"championship",start:new Date("2023-12-01T00:00:00.000-08:00"),end:new Date("2024-01-01T00:00:00.000-08:00"),results:new Date("2024-01-10T07:00:00.000-08:00"),levelOriginal:"654a306ba0c557007a807ead",tournament:"658cfc869ac7fb700b08d82c",image:"/file/db/level/654a306ba0c557007a807ead/SnowholdClashBannerv2.png"},{season:10,slug:"fierce-forces",type:"regular",start:new Date("2024-01-01T00:00:00.000-08:00"),end:new Date("2024-05-01T00:00:00.000-07:00"),results:new Date("2024-05-13T07:00:00.000-07:00"),levelOriginal:"6576ff2b1457f600193d2cc9",tournament:"6631155d27d051fef8412658",image:"/file/db/level/6576ff2b1457f600193d2cc9/FierceForcesBannerNew.png"},{season:10,slug:"anti-gravity",type:"championship",start:new Date("2024-04-01T00:00:00.000-07:00"),end:new Date("2024-05-01T00:00:00.000-07:00"),results:new Date("2024-05-13T07:00:00.000-07:00"),levelOriginal:"65f2618f757a82bcc90b7c9e",tournament:"66311610236b3e1e9dcfd9f3",image:"/file/db/level/65f2618f757a82bcc90b7c9e/AntiGravityBanner.png"},{season:11,slug:"solar-skirmish",type:"regular",start:new Date("2024-05-01T00:00:00.000-07:00"),end:new Date("2024-09-01T00:00:00.000-07:00"),results:new Date("2024-09-14T07:00:00.000-07:00"),levelOriginal:"661f6cf6525db0fb41870360",tournament:"66311a29856d99556fa14326",image:"/file/db/level/661f6cf6525db0fb41870360/SolarSkirmishBanner.png"},{season:11,slug:"sunfire",type:"championship",start:new Date("2024-08-01T00:00:00.000-07:00"),end:new Date("2024-09-01T00:00:00.000-07:00"),results:new Date("2024-09-14T07:00:00.000-07:00"),levelOriginal:"6682089bb98780c672659043",tournament:"669aa78fcca07ea127d445d6",image:"/file/db/level/6682089bb98780c672659043/SunfireBanner.png"},{season:12,slug:"system-shock",type:"regular",start:new Date("2024-09-01T00:00:00.000-07:00"),end:new Date("2025-01-01T00:00:00.000-08:00"),results:new Date("2025-01-18T07:00:00.000-08:00"),levelOriginal:"66ba09c7c34ab945ba4f52a2",tournament:"66d0b7f11c8954cacec98d47",image:"/file/db/level/66ba09c7c34ab945ba4f52a2/SystemShockBanner2.png"},{season:12,slug:"supercharged",type:"championship",start:new Date("2024-12-01T00:00:00.000-08:00"),end:new Date("2025-01-01T00:00:00.000-08:00"),results:new Date("2025-01-14T07:00:00.000-08:00"),levelOriginal:"66f545e57e91e7168c3e463c",tournament:"6756bac52bfcb2c7059f3cb3",image:"/file/db/level/66f545e57e91e7168c3e463c/superchargedbanner2.jpg"},{season:13,slug:"pawns-passage",type:"regular",start:new Date("2025-01-01T00:00:00.000-08:00"),end:new Date("2025-06-01T00:00:00.000-07:00"),results:new Date("2025-06-14T07:00:00.000-07:00"),levelOriginal:"675a76867ea2b689e0f86e87",image:"/file/db/level/675a76867ea2b689e0f86e87/PawnsPassageBanner.jpg",tournament:"6810a48b4fb20ed54d4ddc7d"},{season:13,slug:"kings-gambit",type:"championship",start:new Date("2025-05-01T00:00:00.000-07:00"),end:new Date("2025-06-01T00:00:00.000-07:00"),results:new Date("2025-06-10T07:00:00.000-07:00"),levelOriginal:"679b1495454eb6d46f27e050",image:"/file/db/level/679b1495454eb6d46f27e050/KingsGambit.jpg",tournament:"6810a617882c6fe46452003d"},{season:14,slug:"grand-prix",noResults:!0,type:"championship",arca
2de:!0,start:new Date("2025-06-01T00:00:00.000-08:00"),end:new Date("2025-07-31T23:59:59.000-08:00"),results:new Date("2025-08-10T07:00:00.000-08:00"),levelOriginal:"682aef505b4bd67fa522f11d",image:"/file/db/level/682aef505b4bd67fa522f11d/Grand%20Prix%20banner.jpg",noRegular:!0},{season:15,slug:"golden-goal",type:"championship",start:new Date("2025-08-01T00:00:01.000-07:00"),end:new Date("2026-01-01T08:00:00.000Z"),results:new Date("2026-01-15T07:00:00.000-07:00"),levelOriginal:"68493b715562817aef7dea31",image:"/file/db/level/68493b715562817aef7dea31/Golden%20Goal%20Blitz%20Banner%20(1).png",tournament:"695383474e840b3f4aa401d3"},{season:16,slug:"devour-dash",type:"championship",start:new Date("2026-01-13T00:00:00.000-08:00"),end:new Date("2026-05-30T00:00:00.000-08:00"),results:new Date("2026-06-25T07:00:00.000-08:00"),levelOriginal:"69415fa85459d73effdd5c51",image:"/file/db/level/69415fa85459d73effdd5c51/DevourDashCupBanner.webp",tournament:"6a22ab6d78e6f30412322011",onePerSeason:!0},{season:17,slug:"gridlock-practice",type:"championship",start:new Date("2026-05-31T00:00:00.000-08:00"),end:new Date("2026-08-01T00:00:00.000-08:00"),results:new Date("2026-08-15T07:00:00.000-08:00"),levelOriginal:"6a0eda3fa9b23bee22fbc603",image:"/file/db/level/6a0eda3fa9b23bee22fbc603/gridlock%20banner.png",onePerSeason:!0,noResults:!0,restArena:!0},{season:18,slug:"chaotic-crossing",type:"championship",start:new Date("2026-08-01T00:00:00.000-08:00"),end:new Date("2026-12-29T00:00:00.000-08:00"),results:new Date("2027-01-15T07:00:00.000-08:00"),levelOriginal:"6a54e8722814d8ccb37047fc",image:"/file/db/level/6a54e8722814d8ccb37047fc/chaotic%20crossing%20banner.webp",tournament:"",onePerSeason:!0}],Re=function(){var e={regular:7,championship:14};return function(){for(var t=[],n=0,r=Array.from(Ne);n<r.length;n++){var o=r[n],i=new Date;o.start<=i&&i<o.end.getTime()+86400*e[o.type]*1e3&&o.levelOriginal&&t.push(N.clone(o))}return t}()},De=function(){return L?Ie:Ae},Me="support@".concat(De(),".com"),Fe=function(){return j?"":_.isProduction()?"".concat(document.location.protocol,"//").concat(document.location.host).replace(Ie,Ae).replace(je,Pe):"".concat(document.location.protocol,"//codecombat.com")},Ue=T(T({},Ie,["javascript","python"]),Ae,["javascript","python","java","cpp"])[P];e.exports.getImageFromAiTool=function(e){return e.includes("claude")?"/images/ai/claude.webp":e.includes("dall-e")||e.includes("gpt-image")?"/images/ai/DALL-E.webp":e.includes("stable-diffusion")?"/images/ai/Stable_Diffusion.png":e.includes("gpt")?"/images/ai/ChatGPT.svg":e.includes("gemini")||e.includes("imagen")?"/images/ai/gemini.svg":"/images/ai/IconHackStack_Gray.svg"},e.exports.getCodeLanguages=function(){var e={python:{id:"python",name:"Python (".concat(b.i18n.t("choose_hero.default"),")")},javascript:{id:"javascript",name:"JavaScript"}};return j?O(O({},e),{},{coffeescript:{id:"coffeescript",name:"CoffeeScript"},lua:{id:"lua",name:"Lua"},cpp:{id:"cpp",name:"C++"},java:{id:"java",name:"Java (".concat(b.i18n.t("choose_hero.experimental"),")")}}):e},e.exports.getCodeFormats=function(){return{"text-code":{id:"text-code",name:"".concat(b.i18n.t("choose_hero.text_code"))},"blocks-and-code":{id:"blocks-and-code",name:"".concat(b.i18n.t("choose_hero.blocks_and_code"))},"blocks-text":{id:"blocks-text",name:"".concat(b.i18n.t("choose_hero.blocks_text"))},"blocks-icons":{id:"blocks-icons",name:"".concat(b.i18n.t("choose_hero.blocks_icons"))}}},e.exports.MTOClients={MTO_STEM_DEV:"66d8d68b7fb24e9567588139",MTO_STEM_PROD:"66d8d72143881e9eebcf0cc9",MTO_NEO_DEV:"66d8d794f81368cbd77f5bca",MTO_NEO_PROD:"66d8d750f81368cbd77f4ab2",MTO_CODING_OLYMPIAD_DEV:"689af68799a3a0853dc08bb1",MTO_CODING_OLYMPIAD_PROD:"689af7752fce8bc44950b2da"},e.exports.secondsToMinutesAndSeconds=function(e){if(!e)return"";var t=Math.floor(e/60),n=e%60;return"".concat(t,":").concat(n<10?"0":"").concat(n)},e.exports.getJuniorUrl=function(){var e,t,n="/play/junior";return me&&me.isTeacher()&&!me.isAnonymous()&&(n="/teachers/guide/junior"),null!==(e=me)&&void 0!==e&&null!==(t=e.isHomeUser)&&void 0!==t&&t.call(e)&&(n="/play/odyssey"),"".concat(Fe()).concat(n)},e.exports.sessionlessCoursesUrl=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"codecombat";if(null!==(e=me)&&void 0!==e&&null!==(t=e.showChinaResourceInfo)&&void 0!==t&&t.call(e)&&!me.isNewDashboardActive())return"/teachers/courses";var r="codecombat-junior"===n?"junior":n;return"/teachers/guide/".concat(r)};var Be={use:"ai-use",practice:"ai-practice","learn to use":"ai-learn",capstone:"ai-capstone"};e.exports.aiProjectModes=Object.keys(Be),e.exports.aiProjectIcons=Object.values(Be),e.exports.scenarioMode2Icon=function(e){return Be[e]};var $e="capstone",He=["practice","use",$e];e.exports.isUseMode=function(e){return He.includes(e)},e.exports.isCapstone=function(e){return e===$e},e.exports.aiTranslate=function(){var e,t=(e=w().mark((function e(t,r,o){var i;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&r&&o){e.next=2;break}throw new Error("modelName, docId, and langs are required");case 2:return i=n(86856),e.next=5,i("/db/ai-translator/translate",{method:"POST",json:{modelName:t,docId:r,langs:o}});case 5:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){S(i,r,o,a,s,"next",e)}function s(e){S(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e,n,r){return t.apply(this,arguments)}}(),e.exports.groupedCoursesList=function(e){var t=[{_id:"junior",name:b.i18n.t("teacher.JR_short"),disabled:!0}].concat(C(e.filter((function(e){return q.includes(e._id)}))),[{_id:"codecombat",name:b.i18n.t("teacher_dashboard.curriculum_coco"),disabled:!0}],C(e.filter((function(e){return W.includes(e._id)}))),[{_id:"ai",name:b.i18n.t("teacher.AI_short"),disabled:!0}],C(e.filter((function(e){return V.includes(e._id)})))),n=[{_id:"ozaria",name:b.i18n.t("teacher_dashboard.curriculum_ozaria"),disabled:!0}].concat(C(e.filter((function(e){return G.includes(e._id)})))),r=[{_id:"beta",name:b.i18n.t("teacher_dashboard.curriculum_beta"),disabled:!0}].concat(C(e.filter((function(e){return!Object.values(H).includes(e._id)}))));return 1===r.length&&(r.length=0),L?[].concat(C(n),C(r)):[].concat(C(t),C(n),C(r))};var ze=function(e){return"codecombat-junior"===(null==e?void 0:e.get("product"))};function qe(e,t){return null!=e?t(e):void 0}e.exports.isJuniorLevel=ze,e.exports.guardJuniorLevelHealthCode=function(e,t){return"string"!=typeof t||ze(e)&&(t=t.replace(/(^|[^a-zA-Z.])health(?!\w)/g,(function(e,t){return"".concat(t,"hero.health")}))),t},e.exports.courseDescription=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=n(64241),o=r.LICENSE_PRESETS,i=function(e){return e.reduce((function(e,t){return e+Z[t]}),0)},a=function(e,t){return e.length===t.length&&i(e)===i(t)};if(e){var s=C(V.filter((function(e){return e!==H.HACKSTACK})));return t&&a(e,s)?b.i18n.t("teacher.hackstack_license")+b.i18n.t("teacher.hackstack_credits",t):a(e,o["CodeCombat(CS, WD, GD, JR)"])?b.i18n.t("teacher.coco_full_license"):a(e,o.Ozaria)?b.i18n.t("teacher.ozar_full_license"):b.i18n.t("teacher.customized_license")+": "+e.map((function(e){return X[e]})).join("+")}return b.i18n.t("teacher.full_license")},e.exports=O(O({},e.exports),{},{activeAndPastArenas:function(){return function(){for(var e=[],t=0,n=Array.from(Ne);t<n.length;t++){var r=n[t];r.start<=new Date&&e.push(N.clone(r))}return e}()},activeArenas:Re,addIntroLevelContent:function(e,t){if("intro"===e.get("type")&&(e.get("introContent")||[]).length>0&&t)return e.get("introContent").forEach((function(e){var n;if("avatarSelectionScreen"!==e.type){n="object"===A(e.contentId)?t[e.contentId.python]||{}:t[e.contentId]||{},e.displayName=ae(n,"displayName")||ae(n,"name");var r=((n.documentation||{}).specificArticles||[]).find((function(e){return"Learning Goals"===e.name}));return r?e.learningGoals=ae(r,"body"):void 0}}))},addressesIncludeAdministrativeRegion:function(e){return!!qe(N.find(M,(function(t){return t.country===y(e)})),(function(e){return e.addressesIncludeAdministrativeRegion}))},ageBrackets:Ee,ageBracketsChina:Oe,ageOfConsent:function(e,t){if(null==t&&(t=0),!e)return t;var n=N.find(M,(function(t){return t.country===y(e)}));return n?n.ageOfConsent?n.ageOfConsent:n.inEU?16:t:t},ageToBracket:function(e){if(!e)return"open";for(var t=0,n=Array.from(Ee);t<n.length;t++){var r=n[t];if(e<=r.max)return r.slug}return"open"},allowedLanguages:Ue,anonymizingUser:function(e){var t,n=null!=(null!=e?e.id:void 0)?null!=e?e.id:void 0:e;return b.i18n.t("general.player")+" "+Math.abs(function(e,t,n){for(var r=[],o=0<t,i=t,a=0;o?a<i:a>i;o?a++:a--)r.push(a);return r}(0,(t=n).length).map((function(e){return t.charCodeAt(e)})).reduce((function(e,t){return(e<<5)+e+t}),5381))%1e4},arenas:Ne,bracketToAge:function(e){var t,n,r,o,i;for(t=0,n=(r=Ee.length)>=0;n?t<r:t>r;n?t++:t--)if(Ee[t].slug===e)return{$gt:0===t?0:Ee[t-1].max,$lte:Ee[t].max};for(t=0,o=(i=Oe.length)>=0;o?t<i:t>i;o?t++:t--)if(Oe[t].slug===e)return{$gt:0===t?0:Oe[t-1].max,$lte:Oe[t].max}}
2,campaignIDs:r,capitalizeFirstLetter:function(e){return(e[0]||"").toUpperCase()+e.slice(1)},capitalLanguages:{javascript:"JavaScript",coffeescript:"CoffeeScript",python:"Python",java:"Java",cpp:"C++",lua:"Lua",html:"HTML"},clanHeroes:[{clanId:"601351bb4b79b4013e198fbe",clanSlug:"team-derbezt",thangTypeOriginal:"6037ed81ad0ac000f5e9f0b5",thangTypeSlug:"armando-hoyos"}],clone:function e(t){if(null===t||"object"!==A(t))return t;var n=t.constructor();for(var r in t)n[r]=e(t[r]);return n},combineAncestralObject:function(e,t){for(var n={};null!=e?e[t]:void 0;){for(var r in e[t]){var o=e[t][r];n[r]||(n[r]=o)}e=e.__proto__?e.__proto__:Object.getPrototypeOf(e)}return n},commentStarts:{javascript:"//",python:"#",coffeescript:"#",lua:"--",java:"//",cpp:"//",html:"\x3c!--",css:"/\\*"},countries:M,countryCodeToFlagEmoji:function(e){return 2!==(null!=e?e.length:void 0)?e:Array.from(e.toUpperCase()).map((function(e){return String.fromCodePoint(e.charCodeAt()+127397)})).join("")},countryCodeToName:function(e){var t;return 2!==(null!=e?e.length:void 0)?e:(t=N.find(M,{countryCode:e.toUpperCase()}))?F(t.country):e},countryNameToCode:function(e){return qe(N.find(M,{country:null!=e?e.toLowerCase():void 0}),(function(e){return e.countryCode}))},courseAcronyms:X,courseCampaignSlugs:Q,courseIDs:i,otherCourseIDs:h,allCourseIDs:H,allFreeCourseIDs:J,courseNumericalStatus:Z,coursesWithProjects:a,CSCourseIDs:s,WDCourseIDs:v,createLevelNumberMap:function(e,t){for(var n={},r=0,o=0,i=!R()&&!G.includes(t||""),a=0;a<e.length;a++){var s=e[a],c=a-r+1;if(i&&s.practice)c=a-r+String.fromCharCode("a".charCodeAt(0)+o),r++,o++;else if(s.assessment&&i){o=0;var u="cumulative"===s.assessment?b.t("play_level.combo_challenge"):b.t("play_level.concept_challenge");c="".concat(c,". ").concat(u)}else o=0;s.key?n[s.key]=c:n[s.key]="",t&&(n[t+":"+s.key]=n[s.key])}return n},currentArena:function(e){return N.last(N.filter(Re(),(function(t){return t.end>new Date&&(!e||t.type===e)})))},downTheChain:function(e,t,n){if(null==n&&(n=void 0),!e)return null;if(!N.isArray(t))return e[t];for(var r=e;t.length&&r;){if(void 0!==n&&1===t.length)return r[t[0]]=n,n;r=r[t[0]],t=t.slice(1)}return r},extractPlayerCodeTag:function(e){var t=qe(e.match(/<playercode>\n([\s\S]*)\n *<\/playercode>/),(function(e){return e[1]}));return t?oe(t):void 0},freeAccessLevels:[{access:"short",slug:"dungeons-of-kithgard"},{access:"short",slug:"gems-in-the-deep"},{access:"short",slug:"shadow-guard"},{access:"short",slug:"signs-and-portents"},{access:"short",slug:"enemy-mine"},{access:"short",slug:"true-names"},{access:"medium",slug:"cell-commentary"},{access:"medium",slug:"the-raised-sword"},{access:"medium",slug:"kithgard-librarian"},{access:"medium",slug:"the-prisoner"},{access:"medium",slug:"fire-dancing"},{access:"medium",slug:"haunted-kithmaze"},{access:"medium",slug:"descending-further"},{access:"medium",slug:"dread-door"},{access:"long",slug:"hack-and-dash"},{access:"long",slug:"cupboards-of-kithgard"},{access:"long",slug:"known-enemy"},{access:"long",slug:"master-of-names"},{access:"long",slug:"the-final-kithmaze"},{access:"long",slug:"kithgard-gates"},{access:"extended",slug:"defense-of-plainswood"},{access:"extended",slug:"winding-trail"},{access:"china-classroom",slug:"forgetful-gemsmith"},{access:"china-classroom",slug:"kounter-kithwise"},{access:"china-classroom",slug:"crawlways-of-kithgard"},{access:"china-classroom",slug:"illusory-interruption"},{access:"china-classroom",slug:"careful-steps"},{access:"china-classroom",slug:"long-steps"},{access:"china-classroom",slug:"favorable-odds"},{access:"short",slug:"1fhcutscene1b"},{access:"short",slug:"1fhm1l1l1b"},{access:"short",slug:"1fhm1l1l2b"},{access:"short",slug:"1fhm1l1l3b"},{access:"short",slug:"1fhm1l1l4b"},{access:"short",slug:"1fhm1l1l5b"},{access:"short",slug:"1fhm1l1l6b"},{access:"short",slug:"1fhm1l1l7b"},{access:"short",slug:"1fhm1l1l8b"}],findNextAssessmentForLevel:function(e,t,n){var r=t;for(r++;r<e.length;)if(e[r].practice){if(n&&!e[r].complete)return-1;r++}else{if(e[r].assessment)return e[r].complete?-1:r;if(!e[r].complete)return-1;r++}return-1},findNextLevel:function(e,t,n){var r=t+1;if(function(e,t){for(var n=0,r=t,o=r>=0;o?n<=r:n>=r;o?n++:n--)if(we(e[n]))return!0;return!1}(e,t))return-1;if(n){if(Ce(e[t])||r<e.length&&Ce(e[r]))for(;r<e.length&&(Se(e[r])||we(e[r]));){if(we(e[r]))return-1;r++}else if(-1===(r=function(e,t){var n=function(e,t){for(;t>=0&&!Ce(e[t]);)t--;return t}(e,t-1);if(n>=0&&(n=function(e,t){for(;t>=0&&Ce(e[t]);)t--;return t}(e,n),n>=0)){for(n++;n<e.length&&Ce(e[n])&&e[n].complete;)n++;if(we(e[n]))return-1;if(Ce(e[n])&&!e[n].complete)return n}return-1}(e,t)))for(r=t+1;r<e.length&&(Se(e[r])||we(e[r]));){if(we(e[r]))return-1;r++}}else for(;r<e.length&&(Ce(e[r])||Se(e[r])||we(e[r]));){if(we(e[r]))return-1;r++}return r},findParentLevelOriginal:function(e,t){if(e){var n=e.original;if(e.practice){var r,o=null===(r=e.slug)||void 0===r?void 0:r.replace(/-[a-z]$/,""),i=t.find((function(e){return e.slug===o}));i&&(n=i.original)}return n}},formatDollarValue:function(e){return"$"+parseFloat(e).toFixed(2)},formatStudentLicenseStatusDate:function(e,t){return function(){switch(e){case"not-enrolled":return b.i18n.t("teacher.status_not_enrolled");case"enrolled":return t?b.i18n.t("teacher.status_enrolled"):"-";case"expired":return b.i18n.t("teacher.status_expired")}}().replace("{{date}}",t||"Never")},formatStudentSingleLicenseStatusDate:function(e){var t=b.i18n.t("teacher.full_license");return null!=(null!=e.productOptions?e.productOptions.includedCourseIDs:void 0)&&(t=e.productOptions.includedCourseIDs.map((function(e){return X[e]})).join("+")),t+": "+moment(e.endDate).format("ll")},freeCampaignIds:c,functionCreators:ue,getApiClientIdFromEmail:function(e){if(/@codeninjas.com$/i.test(e))return"57fff652b0783842003fed00"},getByPath:function(e,t){if(!e)throw new Error("Expected an object to match a query against, instead got null");for(var n=t.split("."),r=e,o=0,i=Array.from(n);o<i.length;o++){var a=i[o];if(!(a in r))return;
2r=r[a]}return r},getCourseBundlePrice:function(e,t){null==t&&(t=20);var n=e.reduce((function(e,t){return e+t}),0);return t*(e.length>2?Math.round(n/2):parseInt(n))},getCoursePraise:function(){var e=[{quote:"The kids love it.",source:"Leo Joseph Tran, Athlos Leadership Academy"},{quote:"My students have been using the site for a couple of weeks and they love it.",source:"Scott Hatfield, Computer Applications Teacher, School Technology Coordinator, Eastside Middle School"},{quote:"Thanks for the captivating site. My eighth graders love it.",source:"Janet Cook, Ansbach Middle/High School"},{quote:"My students have started working on CodeCombat and love it! I love that they are learning coding and problem solving skills without them even knowing it!!",source:"Kristin Huff, Special Education Teacher, Webb City School District"},{quote:"I recently introduced Code Combat to a few of my fifth graders and they are loving it!",source:"Shauna Hamman, Fifth Grade Teacher, Four Peaks Elementary School"},{quote:"Overall I think it's a fantastic service. Variables, arrays, loops, all covered in very fun and imaginative ways. Every kid who has tried it is a fan.",source:"Aibinder Andrew, Technology Teacher"},{quote:"I love what you have created. The kids are so engaged.",source:"Desmond Smith, 4KS Academy"},{quote:"My students love the website and I hope on having content structured around it in the near future.",source:"Michael Leonard, Science Teacher, Clearwater Central Catholic High School"}];return e[N.random(0,e.length-1)]},getDocumentSearchString:function(){return document.location.search},getPrepaidCodeAmount:function(e,t,n){return null==e&&(e=0),null==t&&(t=0),null==n&&(n=0),t>0&&n>0?e*t*n:0},getProduct:De,getProductName:function(){return b.i18n.t("new_home."+De())},getQueryVariable:be,getQueryVariables:ve,getExperimentValueFromQuery:function(e){return{true:"beta",false:"control",control:"control",beta:"beta"}[be(e)]},getFirstNonNull:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.find((function(e){return null!=e}))},getScreenRefreshRate:function(e,t){var n=null,r=!1;null==window.requestAnimationFrame&&(window.requestAnimationFrame=window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame);var o=[];window.requestAnimationFrame((function i(a){if(o.unshift(a),o.length>10){var s=o.pop(),c=Math.floor(1e4/(a-s));r||e.call(void 0,c,o),r=!t}n=window.requestAnimationFrame(i)})),t||window.setTimeout((function(){return window.cancelAnimationFrame(n),n=null}),500)},getSponsoredSubsAmount:function(e,t,n){if(null==e&&(e=999),null==t&&(t=0),null==n&&(n=!1),!(t>0))return 0;var r=n?1:0;return t<=1-r?e:t<=11-r?Math.round((1-r)*e+(t-1+r)*e*.8):Math.round((1-r)*e+10*e*.8+(t-11+r)*e*.6)},getUTCDay:function(e){null==e&&(e=0);var t=new Date;t.setDate(t.getUTCDate()+e);var n=t.getUTCFullYear(),r=t.getUTCMonth()+1;r<10&&(r="0"+r);var o=t.getUTCDate();return o<10&&(o="0"+o),"".concat(n).concat(r).concat(o)},getAnonymizationStatus:function(e,t){if(!e||!features.enableAnonymization)return new Promise((function(e,t){return e(!1)}));var n=b.get("/esports/anonymous/"+e);return t.trackRequest(n),new Promise((function(e,t){return n.then((function(t){return e(t.anonymous)}))}))},getCorrectName:function(e){return e.fullName?e.fullName.replace(/^Anonymous/,b.i18n.t("general.player")):e.get("fullName")?e.get("fullName").replace(/^Anonymous/,b.i18n.t("general.player")):e.creatorName||e.get("creatorName")||b.i18n.t("play.anonymous")},grayscale:function(e){for(var t=e.data,n=0,r=t.length;n<=r;n+=4){var o=.2126*t[n]+.7152*t[n+1]+.0722*t[n+2];t[n]=t[n+1]=t[n+2]=o}return e},getUserTimeZone:function(e){var t=e.get("geo");return null!=t&&t.timeZone?t.timeZone:moment.tz.guess()},hexToHSL:function(e){return rgbToHsl(parseInt(re(e).substring(0,2),16),function(e){return parseInt(re(e).substring(2,4),16)}(e),function(e){return parseInt(re(e).substring(4,6),16)}(e))},hourOfCodeOptions:u,hslToHex:function(e){return"#"+Array.from(hslToRgb.apply(void 0,C(Array.from(e||[])))).map((function(e){return function(e){var t=Math.floor(e).toString(16);return 1===t.length&&(t="0"+t),t}(e)})).join("")},i18n:ae,i18nCommentContext:function(e){if(!e)return{};var t=ie(e.context||{}),n=ae(e,"context")||{},r=N.pick(n,(function(e){return!N.isString(e)||e.trim()}));return N.merge({},t,r)},inEU:function(e){return!!qe(N.find(M,(function(t){return t.country===y(e)})),(function(e){return e.inEU}))},injectCSS:l,internalCampaignIds:d,isID:function(e){return N.isString(e)&&24===e.length&&24===qe(e.match(/[a-f0-9]/gi),(function(e){return e.length}))},isRegionalSubscription:function(e){return/_basic_subscription/.test(e)},isSmokeTestEmail:function(e){return/@example.com/.test(e)||/smoketest/.test(e)},isValidEmail:function(e){return xe.test(null!=e?e.trim().toLowerCase():void 0)},keepDoingUntil:function(e,t,n){var r;null==t&&(t=100),null==n&&(n=5e3);var o=0;return(r=function(i){if((o+=t)<=n&&!i)return N.delay((function(){return e(r)}),t)}
2)(!1)},kindaEqual:le,markdownToPlainText:function(e){e=e.replace(/<[^>]*>/g,"");for(var t=new marked.Renderer,n=0,r=["code","blockquote","html","heading","hr","list","listitem","paragraph","table","tablerow","tablecell","strong","em","codespan","br","del","text"];n<r.length;n++)t[r[n]]=function(e){return e};for(var o=0,i=["link","image"];o<i.length;o++)t[i[o]]=function(e,t,n){return n};return marked(e,{renderer:t})},markedInline:function(e){return marked(e).replace(/^<p>|<\/p>$/g,"")},needsPractice:function(e,t){return null==e&&(e=0),null==t&&(t=5),e/60>t},normalizeFunc:function(e,t){if(null==t&&(t={}),N.isString(e)){var n=t[e];if(!n)return console.error("Could not find method ".concat(e," in object"),t),function(){return null};e=n}return e},objectIdToDate:function(e){return new Date(1e3*parseInt(e.toString().slice(0,8),16))},orderedCourseIDs:f,orgKindString:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("administrative-region"===e&&"US"===(null!=t?t.country:void 0)&&/^en/.test(me.get("preferredLanguage")))return"State";var n={country:"outcomes.country","administrative-region":"teachers_quote.state","school-district":"teachers_quote.district_label","school-admin":"outcomes.school_admin","school-network":"outcomes.school_network","school-subnetwork":"outcomes.school_subnetwork",school:"teachers_quote.organization_label",teacher:"courses.teacher",classroom:"outcomes.classroom",student:"courses.student"}[e];return b.i18n.t(n)},pathToUrl:function(e){return location.protocol+"//"+location.hostname+(location.port&&":"+location.port)+e},petThangIDs:["578d320d15e2501f00a585bd","5744e3683af6bf590cd27371","5786a472a6c64135009238d3","577d5d4dab818b210046b3bf","58c74b7c3d4a3d2900d43b7e","58c7614a62cc3a1f00442240","58a262520b43652f00dad75e","57869cf7bd31c14400834028","578691f9bd31c1440083251d","58a2712b0b43652f00dae5a4","58c737140ca7852e005deb8a","57586f0a22179b2800efda37"],premiumContent:{premiumHeroesCount:"15",totalHeroesCount:"19",premiumLevelsCount:"531",freeLevelsCount:"5"},registerHocProgressModalCheck:function(){var e;return e=setInterval((function(){if((null!=window.sessionStorage?window.sessionStorage.getItem("hoc_progress_modal_time"):void 0)<(new Date).getTime())return window.sessionStorage.setItem("show_hoc_progress_modal",!0),window.sessionStorage.removeItem("hoc_progress_modal_time"),clearInterval(e)}),6e4)},replaceText:g,round:se,removeAI:ie,AILeagueSeasons:[{number:1,championshipType:"cup",image:"/images/pages/league/logo_cup.png",video:"1422969c8f5fbee2a62ee60021becfb4",videoThumbnailTime:"1584s"},{number:2,championshipType:"blitz",image:"/images/pages/league/logo_blitz.png",video:"8a347a9c0da34f487ae4fdaa8234000a",videoThumbnailTime:"837s"},{number:3,championshipType:"clash",image:"/images/pages/league/logo_clash.png",video:"26bee42b433e19f789271ae400529025",videoThumbnailTime:"1732s"},{number:4,championshipType:"cup",image:"/images/pages/league/tundra-tower-cup.png",video:"bfbf1a5187888d110ee47f97b7491c2a",videoThumbnailTime:"1568s"},{number:5,championshipType:"blitz",image:"/images/pages/league/sand-storm-blitz.png",video:"4d73a54ff2cdc9b0084a538beb476437",videoThumbnailTime:"1638s"},{number:6,championshipType:"clash",image:"/images/pages/league/lava-lake-clash.png",video:"6650f5c84f65ecd1709cca1210c4e9ab",videoThumbnailTime:"1762s"},{number:7,championshipType:"cup",image:"/images/pages/league/equinox-cup.png",video:"4832912db10162e24cb2eb86df6c36d7",videoThumbnailTime:"1021s"},{number:8,championshipType:"blitz",image:"/images/pages/league/farmscape-blitz.png",video:"eae72056cd1e54f77ec35612c2d0c4b5",videoThumbnailTime:"2681s"},{number:9,championshipType:"clash",image:"/images/pages/league/snowhold-clash.png",video:"5ee0896f86d690840104adaaa7ec96b6",videoThumbnailTime:"1730s"},{number:10,championshipType:"cup",image:"/images/pages/league/anti-gravity-cup.png",video:"72d0ffc93599cf8cb5b0f7fed7861d0f",videoThumbnailTime:"188s"},{number:11,championshipType:"blitz",image:"/images/pages/league/sunfire-blitz.png",imagePath:"/images/pages/league/sunfire-results.webp",topMatchUrlPath:"/play/spectate/sunfire?session-one=6688815921af79d80736c0e2&session-two=66c64ee0b522c4f39324d832&tournament=669aa78fcca07ea127d445d6"},{number:12,championshipType:"clash",image:"/images/pages/league/supercharged-clash.png",imagePath:"/images/pages/league/supercharged-results.webp",topMatchUrlPath:"/play/spectate/supercharged?session-one=670022a88716adfc389b7843&session-two=6774cf6654ce86ae1fa25620&tournament=6756bac52bfcb2c7059f3cb3"},{number:13,championshipType:"cup",image:"/images/pages/league/kings-gambit-cup.png",imagePath:"/images/pages/league/kings-gambit-results.png",topMatchUrlPath:"/play/spectate/kings-gambit?session-one=67a8ef80800a161b01ff982f&session-two=683abaaac26f8d7dad1209f4&tournament=6810a617882c6fe46452003d"},{number:14,championshipType:"clash",image:"/images/pages/league/ail_practice_arena.webp",imagePath:"/images/pages/league/racing-rivals-results.png",topMatchUrlPath:"/play/ladder/grand-prix",restSeason:!0},{number:15,championshipType:"blitz",image:"/images/pages/league/golden-goal-blitz.png",imagePath:"/images/pages/league/soccer-showdown-results.png",topMatchUrlPath:"/play/spectate/golden-goal?session-one=688c73f5143d7ea07a1b923f&session-two=688cf6bcbda8eeb9912f5ed9&tournament=695383474e840b3f4aa401d3",video:"",videoThumbnailTime:""},{number:16,championshipType:"cup",image:"/images/pages/league/devour-dash-cup.webp",imagePath:"/images/pages/league/devour-dash-results.png",topMatchUrlPath:"/play/spectate/devour-dash?session-one=6a1a86f5c4e2186e3b6c3f1f&session-two=696ad86714dbf6bc7d4d58fa&tournament=6a22ab6d78e6f30412322011"},{number:17,championshipType:"arena",image:"/images/pages/league/ail_practice_arena.webp",video:"",videoThumbnailTime:"",restSeason:!0},{number:18,championshipType:"clash",image:"/images/pages/league/chaotic-crossing-clash.webp",video:"",videoThumbnailTime:""}],sortAllCourses:function(e){return N.sortBy(e,(function(e){var t=z.indexOf(null!=e.id?e.id:e._id
2);return-1===t&&(t=9001),t}))},sortCourses:function(e){return N.sortBy(e,(function(e){var t=f.indexOf(null!=e.id?e.id:e._id);return-1===t&&(t=9001),t}))},sortOtherCourses:function(e){return N.sortBy(e,(function(e){var t=m.indexOf(null!=e.id?e.id:e._id);return-1===t&&(t=9001),t}))},sortCoursesByAcronyms:function(e){var t=N.sortBy(X);return N.sortBy(e,(function(e){var n=t.indexOf(X[null!=e.id?e.id:e._id]);return-1===n&&(n=9001),n}))},stripIndentation:oe,shouldShowAiBotHelp:function(e){if("none"!==e.levelChat){if(me.isAdmin())return!0;if(me.isHomeUser()&&me.shouldShowLevelAIChat())return!0;if(!me.isHomeUser())return!0}return!1},teamSpells:{humans:["hero-placeholder/plan"],ogres:["hero-placeholder-1/plan"]},titleize:F,usStateCodes:ke,userAgent:function(){return window.navigator.userAgent},videoLevels:{"54173c90844506ae0195a0b4":{i18name:"basic_syntax",url:"https://iframe.videodelivery.net/d9a73d2f2d3d8de2e5e86203af47e20c?defaultTextTrack=en",cn_url:"https://assets.koudashijie.com/videos/%E5%AF%BC%E8%AF%BE01-%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95-Codecombat%20Instruction%20for%20Teachers.mp4",title:"Basic Syntax",original:"54173c90844506ae0195a0b4",thumbnail_locked:"/images/level/videos/basic_syntax_locked.png",thumbnail_unlocked:"/images/level/videos/basic_syntax_unlocked.png",captions_available:["en","es-419","es"]},"55ca293b9bc1892c835b0136":{i18name:"while_loops",url:"https://iframe.videodelivery.net/1cec5da9a56cd42ade2906cd03c0b82b?defaultTextTrack=en",cn_url:"https://assets.koudashijie.com/videos/%E5%AF%BC%E8%AF%BE03-CodeCombat%E6%95%99%E5%AD%A6%E5%AF%BC%E8%AF%BE-CS1-%E5%BE%AA%E7%8E%AFlogo.mp4",title:"While Loops",original:"55ca293b9bc1892c835b0136",thumbnail_locked:"/images/level/videos/while_loops_locked.png",thumbnail_unlocked:"/images/level/videos/while_loops_unlocked.png",captions_available:["en","es-419","es"]},"5452adea57e83800009730ee":{i18name:"variables",url:"https://iframe.videodelivery.net/239838623c19b13437705ebe69929031?defaultTextTrack=en",cn_url:"https://assets.koudashijie.com/videos/%E5%AF%BC%E8%AF%BE02-%E5%8F%98%E9%87%8F-CodeCombat-CS1-%E5%8F%98%E9%87%8Flogo.mp4",title:"Variables",original:"5452adea57e83800009730ee",thumbnail_locked:"/images/level/videos/variables_locked.png",thumbnail_unlocked:"/images/level/videos/variables_unlocked.png",captions_available:["en","es-419","es"]}},vueNonReactiveInstall:function(e){var t=(new e).$data.__ob__.constructor;return e.nonreactive=function(e){return e.__ob__=new t({}),e}},yearsSinceMonth:function(e,t){if(e){if(N.isString(e)){if(!/^\d{4}-\d{1,2}(-\d{1,2})?$/.test(e))return;2===e.split("-").length&&(e+="-28");var n=e.split("-");e=new Date(+n[0],+n[1]-1,+n[2])}if(N.isDate(e)){var r=e.getFullYear();e.getMonth()>7&&(r+=1);var o=function(){var e=new Date,t=e.getFullYear();return Te.find((function(n){var r=n.end.split("-");return e<new Date(t,+r[0]-1,r[1]).setHours(24,0,0,0)}))}();null==t&&(t=new Date);var i=t.getFullYear();return+o.start.split("-")[0]>=9&&(i+=1),i-r}}},CODECOMBAT:Ae,OZARIA:Ie,CODECOMBAT_CHINA:Pe,OZARIA_CHINA:je,isOldBrowser:Le,isChinaOldBrowser:function(){return!(!features.china||!Le())},isCodeCombat:j,isOzaria:L,isMobile:function(){var e;if(void 0!==(null===(e=navigator.userAgentData)||void 0===e?void 0:e.mobile))return navigator.userAgentData.mobile;if(navigator.maxTouchPoints&&navigator.maxTouchPoints>1)return!0;if(window.matchMedia("(max-width: 1024px) and (orientation: portrait), (max-width: 1024px) and (orientation: landscape)").matches)return!0;var t=navigator.userAgent||navigator.vendor||window.opera;return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Samsung.*Mobile|Mobile.*Firefox|Windows.*Phone|^HTC|LG.*Mobile|BB10|PlayBook|Tablet|Mobile Safari|Chrome.*Mobile/i.test(t)},isIPad:function(){var e,t=navigator.userAgent;return/iPad/.test(t)||"MacIntel"===(null===(e=navigator)||void 0===e?void 0:e.platform)&&navigator.maxTouchPoints>1},supportEmail:Me,tournamentSortFn:function(e,t){var n={starting:0,ended:1,initializing:2,disabled:4};return n[e.state]-n[t.state]||new Date(t.created)-new Date(e.created)},cocoBaseURL:Fe,ozBaseURL:function(){return L?"":_.isProduction()?"".concat(document.location.protocol,"//").concat(document.location.host).replace(Ae,Ie).replace(Pe,je):"".concat(document.location.protocol,"//ozaria.com")},useWebsocket:!1,getProductUrl:function(e,t){if("COCO"!==e&&"OZ"!==e)return t;var n=window.location.origin;return"OZ"===e?"".concat(n,"/ozaria").concat(t):t}
2,shaTag:I,JUNIOR_COURSE_IDS:q,HACKSTACK_COURSE_IDS:V,COCO_COURSE_IDS:W,OZ_COURSE_IDS:G,OZ_COURSE_IDS_MAP:U,GD_COURSE_IDS:Y,WD_COURSE_IDS:K,showOzaria:R,orderedHomeHSCampaignSlugs:["intro-to-ai","math-and-stats","artificial-intelligence-1","career-readiness","cyber","artificial-intelligence-2","career-readiness-2","english-language-arts","computer-science-ai","ai-sandbox","ai-explorations"],orderedHomeCampaignSlugs:["dungeon","campaign-game-dev-1","campaign-web-dev-1","forest","campaign-game-dev-2","campaign-web-dev-2","desert","campaign-game-dev-3","mountain","glacier"]})},493232:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){return void 0===u&&((u=new o.default({mode:"abstract",routes:[{path:"/ai-junior/creation/:projectId",component:function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,46745))},props:!0},{path:"/ai-junior",component:function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,34614))},children:[{path:"",component:function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,362506))}},{path:"project/:scenarioId",component:function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,573120))},props:!0},{path:"project/:scenarioId/:userId",component:function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,471947))},props:!0},{path:"project/:scenarioId/:userId/:projectId",component:function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,228373))},props:!0},{path:"demo",component:function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,973181))},props:!0},{path:"print/:scenarioHandle/:classroomId?",component:function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,93109))},props:!0},{path:"scan/:scenarioHandle?/:forUserId?",component:function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,928877))},props:!0}]},{path:"/announcements",component:function(){return n.e(1116).then(n.bind(n,577145))}},{path:"/premium",props:function(e){return{showPremium:!0,type:e.query.type}},component:function(){return Promise.all([n.e(6958),n.e(7892),n.e(2547),n.e(2626)]).then(n.bind(n,938084))},meta:{theme:"teal"}},{path:"/parents",props:function(e){return{showPremium:!0,type:e.query.type}},component:function(){return Promise.all([n.e(6958),n.e(7892),n.e(2547),n.e(2626)]).then(n.bind(n,50012))},meta:{theme:"teal"}},{path:"/hackstack",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(7892),n.e(6570),n.e(2336)]).then(n.bind(n,502257))},meta:{theme:"teal"}},{path:"/hackstack-algebra",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(7892),n.e(1359),n.e(3033)]).then(n.bind(n,721444))},meta:{theme:"teal"}},{path:"/hackstack-cyber",component:function(){return Promise.all([n.e(1359),n.e(1465)]).then(n.bind(n,141599))},meta:{theme:"teal"}},{path:"/codequest",component:function(){return Promise.all([n.e(6958),n.e(2547),n.e(2167)]).then(n.bind(n,575370))},meta:{theme:"teal"}},{path:"/teachers/hour-of-code",component:function(){return Promise.all([n.e(6958),n.e(2547),n.e(2167)]).then(n.bind(n,529367))}},{path:"/diversity-equity-and-inclusion",component:function(){return Promise.all([n.e(8343),n.e(6030),n.e(4088),n.e(384),n.e(2981),n.e(7184),n.e(9337)]).then(n.bind(n,656128))}},{path:"/dei",redirect:"/diversity-equity-and-inclusion"},{path:"/editor/cinematic",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.bind(n,176089))}},{path:"/league",component:function(){return Promise.all([n.e(8725),n.e(1652),n.e(1622),n.e(4459)]).then(n.bind(n,924776))},children:[{path:"",component:function(){return Promise.all([n.e(8725),n.e(1652),n.e(1622),n.e(4459)]).then(n.bind(n,184868))},meta:{theme:"teal"}},{path:"ladders/:idOrSlug?",name:"LaddersList",component:function(){return Promise.all([n.e(7875),n.e(2332)]).then(n.bind(n,407875))},props:function(e){return s(s({},e.query),e.params)},meta:{toTop:!0,theme:"teal"}},{path:":idOrSlug",component:function(){return Promise.all([n.e(8725),n.e(1652),n.e(1622),n.e(4459)]).then(n.bind(n,184868))},meta:{theme:"teal"}}]},{path:"/live-classes",props:function(e){return{showPremium:!0,type:e.query.type||"live-classes"}},component:function(){return Promise.all([n.e(6958),n.e(7892),n.e(2547),n.e(2626)]).then(n.bind(n,50012))},meta:{theme:"teal"}},{path:"/live",props:function(e){return{showPremium:!0,type:e.query.type||"direct-mail"}},component:function(){return Promise.all([n.e(6958),n.e(7892),n.e(2547),n.e(2626)]).then(n.bind(n,50012))},meta:{theme:"teal"}},{path:"/editor/cinematic/:slug",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.bind(n,351623))},props:!0},{path:"/editor/cutscene",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.bind(n,512278))}},{path:"/editor/cutscene/:slugOrId",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.bind(n,752296))},props:!0},{path:"/editor/interactive/:slug?",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.bind(n,889969))},props:!0},{path:"/editor/archived-elements",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.bind(n,469558))},beforeEnter:function(e,t,n){n(!!me.isAdmin()||"/editor")}},{path:"/funding",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(3800)]).then(n.bind(n,381911))}},{path:"/schools",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(6958),n.e(7892),n.e(8161),n.e(8019),n.e(4405)]).then(n.bind(n,718019))}},{path:"/junior",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(6958),n.e(7892),n.e(3041)]).then(n.bind(n,488326))}},{path:"/school-administrator",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,556730))},children:[{path:"",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,700018))}},{path:"teacher/:teacherId",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,354106))},props:!0},{path:"teacher/:teacherId/classes",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,354106))},props:!0},{path:"teacher/:teacherId/classes/:classroomId",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,458664))},props:!0},{path:"teacher/:teacherId/classes/:classroomId/projects",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,28933))},props:!0},{path:"teacher/:teacherId/licenses/",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,464577))},props:!0},{path:"teacher/:teacherId/classroom/:classroomId",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,787045))}},{path:"teacher/:teacherId/classroom/:classroomId/:studentId",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,150263))}},{path:"licenses",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,635380))}},{path:"licenses/stats",component:function(){return n.e(5233).then(n.bind(n,464200))}}]},{path:"/api-dashboard",component:function(){return Promise.all([n.e(6324),n.e(4781)]).then(n.bind(n,292958))},props:function(e){return s(s({},e.query),e.params)}},{path:"/admin/clan",component:function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.bind(n,265997))}},{path:"/admin/clan/:clanId",component:function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.bind(n,558313))}},{path:"/admin/activation-code-usage",component:function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.bind(n,124387))}},{path:"/outcomes-report/:kind/:country?/:idOrSlug",component:function(){return n.e(4705).then(n.bind(n,348289))}},{path:"/temporary-debug-timetap",component:function(){return n.e(7085).then(n.bind(n,680647))}},{path:"/payments/manage-billing",component:function(){return n.e(5400).then(n.bind(n,817774))}},{path:"/payments/manage-billing-beta",component:function(){return Promise.all([n.e(6958),n.e(1433)]).then(n.bind(n,64111))}},{path:"/payments/online-classes-success",component:function(){return n.e(3446).then(n.bind(n,228572))}},{path:"/payments/home-subscriptions-success",component:function(){return Promise.all([n.e(6958),n.e(5758)]).then(n.bind(n,777631))},props:function(e){return s(s({},e.query),e.params)}},{path:"/payments/tecmilenio-success",component:function(){return n.e(3231).then(n.bind(n,194562))}},{path:"/payments/:slug",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(1439),n.e(9713)]).then(n.bind(n,422078))}},{path:"/ed-link/login-redirect",component:function(){return n.e(6032).then(n.bind(n,234277
2))},props:function(e){return s(s({},e.query),e.params)}},{path:"/teachers",component:function(){return me.showChinaResourceInfo()&&!me.isNewDashboardActive()?Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,258161)):Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,405777))},children:[{path:"",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,651833))}},{path:"classes",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,651833))}},{path:"classes/:classroomId",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,587112))},props:!0},{path:"hackstack-classes/:classroomId",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,587112))},props:function(e){return{classroomId:e.params.classroomId,defaultCourseId:l.courseIDs.HACKSTACK}}},{path:"projects/:classroomId",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,951676))},props:!0},{path:"assessments/:classroomId",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,301381))},props:!0},{path:"ai-junior/:classroomId",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,852325))},props:!0},{path:"licenses/join",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,530571))}},{path:"licenses",component:function(){return me.showChinaResourceInfo()&&!me.isNewDashboardActive()?Promise.all([n.e(8343),n.e(384),n.e(1439),n.e(7675)]).then(n.bind(n,567258)):Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,812780))}},{path:"resources_new",component:function(){return Promise.all([n.e(6446),n.e(4818)]).then(n.bind(n,199197))}},{path:"resources",component:function(){return me.showChinaResourceInfo()&&!me.isNewDashboardActive()?Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,199197)):Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.bind(n,62034))}},{path:"professional-development",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(3800)]).then(n.bind(n,331478))}},{path:"roblox",component:function(){return Promise.all([n.e(8343),n.e(8725),n.e(4415),n.e(1652),n.e(384),n.e(7892),n.e(6250),n.e(6570),n.e(2410)]).then(n.bind(n,502257))}},{path:"curriculum",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(9966),n.e(1008),n.e(2944),n.e(746),n.e(7473)]).then(n.bind(n,321764))}},{path:"curriculum/:campaign",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(9966),n.e(1008),n.e(2944),n.e(746),n.e(7473)]).then(n.bind(n,321764))},props:!0},{path:"ai-league",component:function(){return Promise.all([n.e(1579),n.e(7875),n.e(1622),n.e(131),n.e(1866)]).then(n.bind(n,384390))},children:[{path:":idOrSlug",component:function(){return Promise.all([n.e(1579),n.e(7875),n.e(1622),n.e(131),n.e(915)]).then(n.bind(n,200131))}}]}
2,{path:"apcsp",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(6852)]).then(n.bind(n,665772))}},{path:"guide/:product/:course?",component:function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(2133),n.e(9966),n.e(384),n.e(6958),n.e(7892),n.e(1008),n.e(6570),n.e(2944),n.e(8161),n.e(746),n.e(8019),n.e(9628)]).then(n.bind(n,698278))},props:!0}]},{path:"/roblox",component:function(){return Promise.all([n.e(8343),n.e(8725),n.e(4415),n.e(1652),n.e(384),n.e(7892),n.e(6250),n.e(6570),n.e(2410)]).then(n.bind(n,744757))},meta:{theme:"teal"}},{path:"/grants",component:function(){return Promise.all([n.e(8343),n.e(4816)]).then(n.bind(n,798147))}},{path:"/cinematicplaceholder/:levelSlug?",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(4616),n.e(733),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(724),n.e(8821),n.e(3984),n.e(7271),n.e(9703),n.e(7347)]).then(n.bind(n,529167))},props:function(e){return{levelSlug:e.params.levelSlug}}},{path:"/sign-up/educator",component:function(){return Promise.all([n.e(8343),n.e(2471),n.e(1809)]).then(n.bind(n,27153))}},{path:"/professional-development",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(3800)]).then(n.bind(n,331478))}},{path:"/pd",redirect:"/professional-development"},{path:"/social-and-emotional-learning",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(555)]).then(n.bind(n,175388))}},{path:"/sel",redirect:"/social-and-emotional-learning"},{path:"/efficacy",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(4057)]).then(n.bind(n,594303))}},{path:"/libraries",component:function(){return Promise.all([n.e(8343),n.e(384),n.e(2921)]).then(n.bind(n,592698))}},{path:"/library/:libraryId/login",component:function(){return n.e(1925).then(n.bind(n,680104))},props:function(e){return s(s({},e.query),e.params)}},{path:"/podcast",name:"AllPodcasts",component:function(){return n.e(4249).then(n.bind(n,720443))}},{path:"/podcast/:handle",name:"PodcastSingle",component:function(){return n.e(5077).then(n.bind(n,502805))}},{path:"/users/switch-account",name:"UserSwitchAccount",component:function(){return Promise.all([n.e(1730),n.e(5309)]).then(n.bind(n,326478))}},{path:"/users/switch-account/:confirmingUserId/:requestingConfirmUserId/confirm",name:"UserSwitchAccountConfirmation",component:function(){return n.e(1992).then(n.bind(n,534041))},props:function(e){return s(s({},e.query),e.params)}},{path:"/parents/signup",name:"ParentSignup",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(9966),n.e(1008),n.e(2944),n.e(1730),n.e(9671)]).then(n.bind(n,28979))},props:function(e){return s(s({},e.query),e.params)}},{path:"/parents/:viewName/:childId?/:product?",name:"ParentDashboard",component:function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(9966),n.e(1008),n.e(2944),n.e(1730),n.e(9671)]).then(n.bind(n,411969))},props:function(e){return s(s({},e.query),e.params)}},{path:"/:pname(library|partner)-dashboard",name:"LibraryDashboard",component:function(){return Promise.all([n.e(6324),n.e(7844)]).then(n.bind(n,186228))}},{path:"/home-beta",name:"HomeBeta",component:function(){return Promise.all([n.e(6958),n.e(8161),n.e(6183)]).then(n.bind(n,395616))}},{path:"/standards",name:"StandardsPage",component:function(){return n.e(3529).then(n.bind(n,313194))}},{path:"/home",name:"HomeBeta1",component:function(){return Promise.all([n.e(6958),n.e(8161),n.e(6183)]).then(n.bind(n,395616))}},{path:"/",name:"HomeBeta2",component:function(){return Promise.all([n.e(6958),n.e(8161),n.e(6183)]).then(n.bind(n,395616))}},{path:"/admin/low-usage-users",name:"LowUsageUsersAdmin",component:function(){return n.e(1222).then(n.bind(n,162532))}},{path:"/exams/:examId",name:"ExamPage",component:function(){return n.e(6028).then(n.bind(n,393517))},props:function(e){return s(s({},e.query),e.params)},children:[{path:"start",name:"ExamStartPage",component:function(){return n.e(6028).then(n.bind(n,46744))},props:function(e){return s(s({},e.query),e.params)}},{path:"progress",name:"ExamProgressPage",component:function(){return n.e(6028).then(n.bind(n,884571))},props:!0},{path:"end",name:"ExamEndPage",component:function(){return n.e(6028).then(n.bind(n,70694))},props:!0}]},{path:"/acr",component:function(){return n.e(8573).then(n.bind(n,644858))}}],scrollBehavior:function(e){var t,n={};return null!==(t=e.meta)&&void 0!==t&&t.toTop&&(n.top=0),n}})).beforeEach((function(e,t,n){var r,o;null!==(r=t.meta)&&void 0!==r&&r.theme&&document.body.classList.remove("".concat(t.meta.theme,"-theme")),null!==(o=e.meta)&&void 0!==o&&o.theme&&document.body.classList.add("".concat(e.meta.theme,"-theme")),n()})),u.afterEach((function(e,t){if(e.path!==t.path)try{window.scrollTo(0,0)}catch(e){}}))),u};var r,o=(r=n(578345))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u,l=n(299498)},675539:e=>{"use strict";e.exports={checkIfProjectComplete:function(e,t){if(!Array.isArray(t)||0===(null==t?void 0:t.length))return!1;if(e.minMsgs)return!!t.some((function(t){var n;return(t.totalChatMessages||0)-((null===(n=t.unsafeChatMessages)||void 0===n?void 0:n.length)||0)>=e.minMsgs}));var n,r=t[t.length-1];return"learn to use"===e.mode?0===(null===(n=r.actionQueue)||void 0===n?void 0:n.length):!!r.isReadyToReview},hasStruggledOnProject:function(e){return(e||[]).some((function(e){var t=((null==e?void 0:e.wrongChoices)||[]).reduce((function(e,t){var n=t.actionMessageId;return e[n]=((null==e?void 0:e[n])||0)+1,e}),{});return Object.values(t).some((function(e){return e>1}))}))}}},932070:(e,t,n)=>{"use strict";var r,o=(r=n(696245))&&r.__esModule?r:{default:r};e.exports={parseGoogleJwtResponse:function(e){var t=(0,o.default)(e);return{gplusID:t.sub,firstName:t.given_name,lastName:t.family_name,email:t.email}}}},755895:(e,t,n)=>{"use strict";var r=n(619755);Object.defineProperty(t,"__esModule",{value:!0}),t.getDisplayPermission=function(e){var t=null==e?void 0:e.toLowerCase();return r.i18n.t("teacher_dashboard.".concat(t))},t.hasPermission=function(e,t){var n=t.ownerId,r=t.permissions;return me.id===n||!!me.isAdmin()||("read"===e||"write"===e)&&!!(r||[]).find((function(t){return t.target===me.id&&t.access===e}))},t.hasSharedWriteAccessPermission=function(e){return(e.permissions||[]).find((function(e){return e.target===me.get("_id")&&"write"===e.access}))}},176383:e=>{"use strict";e.exports={validateEmail:function(e){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(e).toLowerCase())},sleep:function(e){return new Promise((function(t){return setTimeout(t,e)}))}}},316726:(e,t,n)=>{"use strict";e.exports={"views/ai-junior/AIJuniorView":function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,34614))},"views/ai-junior/AIJuniorLandingView":function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,362506))},"views/ai-junior/AIJuniorScenarioView":function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,573120))},"views/ai-junior/AIJuniorScenarioUserView":function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,471947))},"views/ai-junior/AIJuniorScenarioUserProjectView":function(){return Promise.all([n.e(5616),n.e(2592),n.e(604),n.e(7828),n.e(3734),n.e(7982)]).then(n.bind(n,228373))},"views/AboutView":function(){return n.e(9678).then(n.t.bind(n,696920,23))},"views/HomeView":function(){return Promise.all([n.e(8343),n.e(384),n.e(7032)]).then(n.t.bind(n,7400,23))},"views/HomeCNView":function(){return n.e(5335).then(n.t.bind(n,967653,23))},"views/ContactCNView":function(){return n.e(5317).then(n.t.bind(n,421145,23))},"views/ChinaBridgeView":function(){return n.e(8277).then(n.t.bind(n,357237,23))},"views/account/OAuthAIYouthView":function(){return n.e(4740).then(n.t.bind(n,423885,23))},"views/account/MainAccountView":function(){return Promise.all([n.e(8343),n.e(2471),n.e(1809)]).then(n.t.bind(n,635987,23))},"views/account/AccountSettingsRootView":function(){return Promise.all([n.e(8725),n.e(4415),n.e(6250),n.e(1701),n.e(612),n.e(1136)]).then(n.t.bind(n,375009,23))},"views/account/AccountSettingsView":function(){return Promise.all([n.e(8725),n.e(4415),n.e(6250),n.e(1701),n.e(612),n.e(6333)]).then(n.t.bind(n,796136,23))},"views/account/UnsubscribeView":function(){return Promise.all([n.e(8343),n.e(2471),n.e(1809)]).then(n.t.bind(n,428865,23))},"views/account/PaymentsView":function(){return Promise.all([n.e(8343),n.e(2471),n.e(1809)]).then(n.t.bind(n,405839,23))},"views/account/SubscriptionView":function(){return Promise.all([n.e(8343),n.e(2471),n.e(1809)]).then(n.t.bind(n,712632,23))},"views/account/PrepaidView":function(){return Promise.all([n.e(8343),n.e(2471),n.e(1809)]).then(n.t.bind(n,687139,23))},"views/admin/MainAdminView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,103845,23))},"views/admin/CLAsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,746027,23))},"views/admin/AdminClassroomContentView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,589414,23))},"views/admin/AdminClassroomLevelsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,557973,23))},"views/admin/PartialUnitReleaseView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.bind(n,474053))},"views/admin/AdminClassroomsProgressView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,565792,23))},"views/admin/FilesView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,54232,23))}
2,"views/admin/AnalyticsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,599549,23))},"views/admin/AdminLevelHintsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,834879,23))},"views/admin/AdminSubCancellationsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,550774,23))},"views/admin/SchoolCountsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,36564,23))},"views/admin/SchoolLicensesView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,663915,23))},"views/admin/BaseView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,983155,23))},"views/admin/DemoRequestsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,511498,23))},"views/admin/TrialRequestsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,819421,23))},"views/admin/UserCodeProblemsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,284588,23))},"views/admin/PendingPatchesView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,458864,23))},"views/admin/CodeLogsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,254920,23))},"views/admin/SkippedContactsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,770354,23))},"views/admin/OutcomeReportResultView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,662543,23))},"views/admin/OutcomesReportView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,342771,23))},"views/admin/DesignElementsView":function(){return Promise.all([n.e(5131),n.e(5078),n.e(6062),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(8137),n.e(2328)]).then(n.t.bind(n,748593,23))},"views/ai/AIView":function(){return Promise.all([n.e(6381),n.e(5741)]).then(n.t.bind(n,932933,23))},"views/teachers/DynamicAPCSPView":function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.t.bind(n,328594,23))},"views/minigames/ConditionalMinigameView":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,646164,23))},"views/artisans/ArtisansView":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,158089,23))},"views/artisans/LevelTasksView":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,759257,23))},"views/artisans/SolutionProblemsView":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,996307,23))},"views/artisans/LevelConceptMap":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,19728,23))},"views/artisans/LevelGuidesView":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,13023,23))},"views/artisans/StudentSolutionsView":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,993398,23))},"views/artisans/SandboxView":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,547540,23))},"views/artisans/ThangTasksView":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,499296,23))},"views/artisans/ArenaBalancerView":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,54712,23))},"views/artisans/BlockTestingView":function(){return Promise.all([n.e(5131),n.e(4616),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(3984),n.e(5556)]).then(n.t.bind(n,924245,23))},"views/CLAView":function(){return n.e(8079).then(n.t.bind(n,306983,23))},"views/clans/ClansView":function(){return Promise.all([n.e(3378),n.e(4088),n.e(2033)]).then(n.t.bind(n,200174,23))},"views/clans/ClanDetailsView":function(){return Promise.all([n.e(3378),n.e(4088),n.e(2033)]).then(n.t.bind(n,673782,23))},"views/CommunityView":function(){return n.e(3447).then(n.t.bind(n,455204,23))},"views/contribute/MainContributeView":function(){return n.e(536).then(n.t.bind(n,632649,23))},"views/contribute/AdventurerView":function(){return n.e(536).then(n.t.bind(n,49032,23))}
2,"views/contribute/AmbassadorView":function(){return n.e(536).then(n.t.bind(n,322046,23))},"views/contribute/ArchmageView":function(){return n.e(536).then(n.t.bind(n,786440,23))},"views/contribute/ArtisanView":function(){return n.e(536).then(n.t.bind(n,72976,23))},"views/contribute/DiplomatView":function(){return n.e(536).then(n.t.bind(n,244371,23))},"views/contribute/ScribeView":function(){return n.e(536).then(n.t.bind(n,93701,23))},"views/editor/concept/ConceptSearchView":function(){return Promise.all([n.e(8159),n.e(7406)]).then(n.t.bind(n,554197,23))},"views/editor/concept/ConceptEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(3032),n.e(8623)]).then(n.t.bind(n,449860,23))},"views/editor/standards/StandardsSearchView":function(){return Promise.all([n.e(8159),n.e(8318)]).then(n.t.bind(n,232309,23))},"views/editor/standards/StandardsEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(1091),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(2025),n.e(3032),n.e(1917),n.e(7073)]).then(n.t.bind(n,403406,23))},"views/editor/announcement/AnnouncementSearchView":function(){return Promise.all([n.e(8159),n.e(2531)]).then(n.t.bind(n,64951,23))},"views/editor/announcement/AnnouncementEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(3032),n.e(5106)]).then(n.t.bind(n,795659,23))},"views/editor/docs/ComponentsDocumentationView":function(){return n.e(1163).then(n.t.bind(n,83991,23))},"views/editor/docs/SystemsDocumentationView":function(){return n.e(1163).then(n.t.bind(n,210019,23))},"views/editor/achievement/AchievementSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,207575,23))},"views/editor/achievement/AchievementEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,850225,23))},"views/editor/article/ArticleSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,995287,23))},"views/editor/article/ArticlePreviewView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,355898,23))},"views/editor/article/ArticleEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,228560,23))},"views/editor/level/LevelSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,431710,23))},"views/editor/level/LevelEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,214831,23))},"views/editor/thang/ThangTypeSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,280333,23))},"views/editor/thang/ThangTypeEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,581432,23))},"views/editor/campaign/CampaignEditorView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,686163,23))},"views/editor/verifier/VerifierView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,337558,23))},"views/editor/verifier/i18nVerifierView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,787944,23))},"views/editor/course/CourseSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,975685,23))},"views/editor/course/CourseEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,683494,23))},"views/editor/resource/ResourceSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,794499,23))},"views/editor/resource/ResourceEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,199186,23))},"views/editor/podcast/PodcastSearchView":function(){return Promise.all([n.e(8159),n.e(7064)]).then(n.t.bind(n,991095,23))},"views/editor/podcast/PodcastEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(3032),n.e(1162)]
2).then(n.t.bind(n,462035,23))},"views/editor/minigame/MiniGameSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,80639,23))},"views/editor/minigame/MiniGameEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,901151,23))},"views/editor/chat/ChatSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,847493,23))},"views/editor/chat/ChatEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,221350,23))},"views/editor/ai-scenario/AIScenarioSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,727970,23))},"views/editor/ai-scenario/AIScenarioEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,710022,23))},"views/editor/ai-project/AIProjectSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,311775,23))},"views/editor/ai-project/AIProjectEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,404937,23))},"views/editor/ai-model/AIModelSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,234514,23))},"views/editor/ai-model/AIModelEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,745181,23))},"views/editor/ai-document/AIDocumentSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,782763,23))},"views/editor/ai-document/AIDocumentEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,949477,23))},"views/editor/ai-chat-message/AIChatMessageSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,402111,23))},"views/editor/ai-chat-message/AIChatMessageEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,929052,23))},"views/editor/ai-junior-scenario/AIJuniorScenarioSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,621887,23))},"views/editor/ai-junior-scenario/AIJuniorScenarioEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,646845,23))},"views/editor/ai-junior-project/AIJuniorProjectSearchView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,269398,23))},"views/editor/ai-junior-project/AIJuniorProjectEditView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(5616),n.e(4738),n.e(2592),n.e(1091),n.e(5096),n.e(361),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(8159),n.e(3032),n.e(7290),n.e(7184),n.e(724),n.e(2393),n.e(1917),n.e(9284),n.e(7828),n.e(1189)]).then(n.t.bind(n,673521,23))}
2,"views/i18n/I18NHomeView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,616515,23))},"views/i18n/I18NEditThangTypeView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,962267,23))},"views/i18n/I18NEditComponentView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,350435,23))},"views/i18n/I18NEditLevelView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,923803,23))},"views/i18n/I18NEditAchievementView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,88004,23))},"views/i18n/I18NEditCampaignView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,968686,23))},"views/i18n/I18NEditCourseView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,927202,23))},"views/i18n/I18NEditCinematicView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,548049,23))},"views/i18n/I18NEditProductView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,961301,23))},"views/i18n/I18NEditArticleView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,436519,23))},"views/i18n/I18NEditInteractiveView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,492114,23))},"views/i18n/I18NEditCutsceneView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,300115,23))},"views/i18n/I18NEditResourceHubResourceView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,487958,23))},"views/i18n/I18NEditConceptView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,583967,23))},"views/i18n/I18NEditStandardsCorrelationView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,661166,23))},"views/i18n/I18NEditAIScenarioView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,959216,23))},"views/i18n/I18NEditAIDocumentView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,347190,23))},"views/i18n/I18NEditAIChatMessageView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,285710,23))},"views/i18n/I18NEditAIJuniorScenarioView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(6437),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(5042),n.e(2580)]).then(n.t.bind(n,910972,23))},"views/user/IdentifyView":function(){return Promise.all([n.e(3378),n.e(378)]).then(n.t.bind(n,184553,23))},"views/account/IsraelSignupView":function(){return Promise.all([n.e(8343),n.e(2471),n.e(1809)]).then(n.t.bind(n,868359,23))}
2,"views/LegalView":function(){return n.e(8895).then(n.t.bind(n,487422,23))},"views/play/CampaignView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(4616),n.e(733),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(724),n.e(8821),n.e(3984),n.e(7271),n.e(9703),n.e(7347)]).then(n.t.bind(n,339841,23))},"views/play/MiniGamePlayView":function(){return n.e(7320).then(n.t.bind(n,725800,23))},"views/ladder/LadderView":function(){return Promise.all([n.e(5131),n.e(4889),n.e(5078),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(1321),n.e(3506),n.e(4909),n.e(9703),n.e(4141)]).then(n.t.bind(n,193927,23))},"views/ladder/MainLadderView":function(){return Promise.all([n.e(5131),n.e(4889),n.e(5078),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(1321),n.e(3506),n.e(4909),n.e(9703),n.e(4141)]).then(n.t.bind(n,429933,23))},"views/ladder/MainTournamentView":function(){return Promise.all([n.e(3378),n.e(1041)]).then(n.t.bind(n,967527,23))},"views/play/level/PlayLevelView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(4616),n.e(733),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(724),n.e(8821),n.e(3984),n.e(7271),n.e(9703),n.e(7347)]).then(n.t.bind(n,301698,23))},"views/play/level/PlayLevelVideoView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(4616),n.e(733),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(724),n.e(8821),n.e(3984),n.e(7271),n.e(9703),n.e(7347)]).then(n.t.bind(n,72014,23))},"views/play/level/PlayGameDevLevelView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(4616),n.e(733),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(724),n.e(8821),n.e(3984),n.e(7271),n.e(9703),n.e(7347)]).then(n.t.bind(n,659050,23))},"views/play/level/PlayWebDevLevelView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(4616),n.e(733),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(724),n.e(8821),n.e(3984),n.e(7271),n.e(9703),n.e(7347)]).then(n.t.bind(n,110905,23))},"views/play/SpectateView":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(4616),n.e(733),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(724),n.e(8821),n.e(3984),n.e(7271),n.e(9703),n.e(7347)]).then(n.t.bind(n,501241,23))},"views/PageImpact":function(){return n.e(9545).then(n.bind(n,925017))},"views/PagePartners":function(){return n.e(6016).then(n.bind(n,644732))},"views/HomeBeta":function(){return Promise.all([n.e(6958),n.e(8161),n.e(6183)]).then(n.bind(n,395616))},"views/PageAPCSPMarketing":function(){return Promise.all([n.e(8343),n.e(384),n.e(6852)]).then(n.bind(n,665772))},"views/PageAPCSPCurriculum":function(){return Promise.all([n.e(8343),n.e(9950)]).then(n.bind(n,129261))},"views/PageCodequest":function(){return n.e(3e3).then(n.bind(n,575370))},"views/SchoolsView":function(){return Promise.all([n.e(8343),n.e(384),n.e(6958),n.e(7892),n.e(8161),n.e(8019),n.e(4405)]).then(n.bind(n,718019))},"views/PremiumFeaturesView":function(){return n.e(7376).then(n.t.bind(n,758089,23))},"views/PrivacyView":function(){return n.e(6269).then(n.t.bind(n,830047,23))},"views/courses/CoursesView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,371229,23))},"views/courses/CoursesUpdateAccountView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,993568,23))},"views/courses/ProjectGalleryView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,481225,23))},"views/courses/StudentAssessmentsView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,425078,23))},"views/courses/ClassroomView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,263354,23))},"views/courses/CourseDetailsView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,812582,23))},"views/courses/TeacherClassesView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,155885,23))},"views/courses/CourseVideosView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,927141,23))},"views/teachers/TeacherStudentView":function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.t.bind(n,140022,23))},"views/courses/TeacherClassView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,193765,23))},"views/courses/TeacherCoursesView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,678843,23))},"views/teachers/TeacherCourseSolutionView":function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.t.bind(n,986819,23))},"views/teachers/RequestQuoteView":function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.t.bind(n,592432,23))},"views/special_event/HoC2018View":function(){return n.e(6405).then(n.t.bind(n,350629,23))},"views/courses/EnrollmentsView":function(){return Promise.all([n.e(4529),n.e(1652),n.e(3378),n.e(4088),n.e(8137),n.e(4864),n.e(8034),n.e(2953)]).then(n.t.bind(n,118461,23))},"views/teachers/ResourceHubView":function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.t.bind(n,604431,23))},"views/teachers/ApCsPrinciplesView":function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.t.bind(n,206147,23))}
2,"views/teachers/MarkdownResourceView":function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.t.bind(n,107347,23))},"views/teachers/CreateTeacherAccountView":function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.t.bind(n,362934,23))},"views/teachers/ConvertToTeacherAccountView":function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(8725),n.e(2133),n.e(4415),n.e(5078),n.e(1579),n.e(2592),n.e(9841),n.e(8447),n.e(3378),n.e(9966),n.e(384),n.e(1942),n.e(1008),n.e(6250),n.e(8137),n.e(1701),n.e(5659),n.e(6446),n.e(8034),n.e(9840)]).then(n.t.bind(n,396619,23))},"views/TestView":function(){return Promise.all([n.e(8343),n.e(5131),n.e(2027),n.e(6437),n.e(8725),n.e(2133),n.e(4415),n.e(4889),n.e(5078),n.e(4529),n.e(6030),n.e(4616),n.e(5616),n.e(4738),n.e(1091),n.e(4002),n.e(5096),n.e(9841),n.e(6370),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(1942),n.e(474),n.e(356),n.e(5042),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(7184),n.e(724),n.e(8821),n.e(2393),n.e(3984),n.e(1917),n.e(9284),n.e(5659),n.e(2358),n.e(4929),n.e(9767),n.e(7697),n.e(3325),n.e(4047),n.e(7850),n.e(2491),n.e(6936),n.e(4481),n.e(8870),n.e(4717),n.e(9300),n.e(7928),n.e(7231),n.e(4993),n.e(3653),n.e(7143),n.e(8554),n.e(1888),n.e(8732),n.e(7160),n.e(4692),n.e(5371),n.e(6161),n.e(4043),n.e(6372),n.e(4486),n.e(4906),n.e(3182),n.e(4946),n.e(422),n.e(8296),n.e(1515),n.e(2154),n.e(5224),n.e(7767),n.e(50),n.e(1796),n.e(1221),n.e(7238),n.e(2329),n.e(5387),n.e(3090),n.e(74),n.e(224),n.e(6931),n.e(4997),n.e(5058),n.e(7564),n.e(3070),n.e(7050),n.e(1593),n.e(1135),n.e(189),n.e(640),n.e(2934),n.e(4537),n.e(972),n.e(2639),n.e(15),n.e(1261),n.e(5994),n.e(4864),n.e(2471),n.e(4909),n.e(3734),n.e(6042)]).then(n.t.bind(n,91314,23))},"views/user/MainUserView":function(){return Promise.all([n.e(3378),n.e(378)]).then(n.t.bind(n,814855,23))},"views/user/EmailVerifiedView":function(){return Promise.all([n.e(3378),n.e(378)]).then(n.t.bind(n,671234,23))},"views/user/UserOptInView":function(){return Promise.all([n.e(3378),n.e(378)]).then(n.t.bind(n,72336,23))},"views/NotFoundView":function(){return n.e(9558).then(n.t.bind(n,802431,23))},"views/teachers/RestrictedToTeachersView":function(){return n.e(775).then(n.t.bind(n,227466,23))},"views/courses/RestrictedToStudentsView":function(){return n.e(9060).then(n.t.bind(n,776693,23))},"views/user/CertificatesView":function(){return Promise.all([n.e(3378),n.e(4088),n.e(9542),n.e(6998)]).then(n.t.bind(n,203629,23))},"views/user/AllCoursesCertificatesView":function(){return Promise.all([n.e(3378),n.e(4088),n.e(9542),n.e(5709)]).then(n.t.bind(n,912830,23))},"views/user/AnonCertificatesView":function(){return Promise.all([n.e(3378),n.e(4088),n.e(9542),n.e(6998)]).then(n.t.bind(n,600397,23))},"views/LicensorView":function(){return n.e(6862).then(n.t.bind(n,638625,23))},"views/landing-pages/mobile/PageMobileView":function(){return Promise.all([n.e(8343),n.e(8725),n.e(4415),n.e(1652),n.e(5008)]).then(n.bind(n,568041))},"views/core/SingletonAppVueComponentView":function(){return Promise.resolve().then(n.bind(n,368441)).then((function(e){return e.default}))},"views/ozaria/site/play/PageUnitMap":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(1579),n.e(6030),n.e(4738),n.e(4002),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(7184),n.e(8821),n.e(2393),n.e(9767),n.e(7271),n.e(6868)]).then(n.bind(n,8119))},"views/ozaria/site/avatarSelector":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(1579),n.e(6030),n.e(4738),n.e(4002),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(7184),n.e(8821),n.e(2393),n.e(9767),n.e(7271),n.e(6868)]).then(n.bind(n,282231))},"views/ozaria/site/play/PagePlayLevel":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(1579),n.e(6030),n.e(4738),n.e(4002),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(7184),n.e(8821),n.e(2393),n.e(9767),n.e(7271),n.e(6868)]).then(n.bind(n,22745))},"views/cinematic":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(1579),n.e(6030),n.e(4738),n.e(4002),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(7184),n.e(8821),n.e(2393),n.e(9767),n.e(7271),n.e(6868)]).then(n.bind(n,784437))},"views/cutscene":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(1579),n.e(6030),n.e(4738),n.e(4002),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(7184),n.e(8821),n.e(2393),n.e(9767),n.e(7271),n.e(6868)]).then(n.bind(n,436671))},"views/interactive":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(1579),n.e(6030),n.e(4738),n.e(4002),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(7184),n.e(8821),n.e(2393),n.e(9767),n.e(7271),n.e(6868)]).then(n.bind(n,898641))},"views/introLevel":function(){return Promise.all([n.e(5131),n.e(2027),n.e(2133),n.e(4889),n.e(4529),n.e(1579),n.e(6030),n.e(4738),n.e(4002),n.e(3378),n.e(4088),n.e(9966),n.e(8068),n.e(356),n.e(2981),n.e(1321),n.e(3506),n.e(2025),n.e(7290),n.e(7184),n.e(8821),n.e(2393),n.e(9767),n.e(7271),n.e(6868)]).then(n.bind(n,966924))},"views/ozaria/site/components/sign-up/PageIndividualSignup":function(){return Promise.all([n.e(8343),n.e(8725),n.e(4415),n.e(1652),n.e(5008)]).then(n.bind(n,655220))}}},680462:e=>{"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,r(o.key),o)}}function r(e){var n=function(e,n){if("object"!=t(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n);if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==t(n)?n:n+""}var o=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type="postProcessor",this.name="AIPostProcessor"},(t=[{key:"process",value:function(e,t,n,r){return e.replace(/^\[AI_TRANSLATION\]/,"")}}])&&n(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t}();o.type="postProcessor",e.exports=o},805351:(e,t,n)=>{"use strict";var r=n(969278),o="temporary-premium-access",i="tracked-premium";e.exports={setTemporaryPremiumAccess:function(){r.save("".concat(o,"-").concat(me.get("_id")),!0,3)},hasTemporaryPremiumAccess:function(){return r.load("".concat(o,"-").concat(me.get("_id")))},setTrackedPremiumPurchase:function(){r.save("".concat(i,"-").concat(me.get("_id")),!0,360)},hasTrackedPremiumAccess:function(){return r.load("".concat(i,"-").concat(me.get("_id")))},getTrackingData:function(e){var t=e.amount,n=e.duration,r={};if(t){var o=parseInt(t);r.purchaseAmount=o,r.currency="USD",r.predictedLtv=o*function(e){if(!e)return 1;if(e.includes("year"))return 2;if(e.includes("month")){var t=parseInt(e.split("_")[0]);return Math.round(12/t)}return 1}(n)}return r}}},328395:(e,t,n)=>{"use strict";var r=n(665420),o=n(854465),i=n(326067),a=n(855012);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
vendor: 4,588 bytes, line 2
2t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){d=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};l(w,a,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,a)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,a,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==s(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(d).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(s(t)+" is not iterable")}return b.prototype=_,o(k,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:b,configurable:!0}),b.displayName=l(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),l(k,u,"Generator"),l(k,a,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function p(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,s,"next",e)}function s(e){p(i,r,o,a,s,"throw",e)}a(void 0)}))}}function h(){return m.apply(this,arguments)}function m(){return(m=f(d().mark((function e(){var t,n;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.isProduction(),n=t?"pk_live_27jQZozjDGN1HSUTnSuM578g":"pk_test_BqKtc6bIKPn6FeSA4GhuRrwT",e.abrupt("return",(0,o.loadStripe)(n));case 3:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(){return g=f(d().mark((function e(t,n){var r,o,a,s,c,u,l,p,f=arguments;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=f.length>2&&void 0!==f[2]?f[2]:{},o=r.purchasingForId,a=void 0===o?null:o,s=t.get("_id"),e.next=4,(0,i.getPaymentGroupFromProduct)(s,n);case 4:return c=e.sent,u=c.data,l={productId:s,purchasingForId:a},p={stripePriceId:u.priceInfo.id,paymentGroupId:u._id,numberOfLicenses:1,email:me.get("email"),userId:me.get("_id"),totalAmount:u.priceInfo.unit_amount,homeSubDetails:l},t.get("name").includes("corrily")&&(p.corrilyPriceKey=t.get("planID")),e.abrupt("return",y(p));case 10:case"end":return e.stop()}}),e)}))),g.apply(this,arguments)}function y(e){return v.apply(this,arguments)}function v(){return(v=f(d().mark((function e(t){var n,r,o,i,s;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,h();case 2:return n=e.sent,r=u({},t),e.prev=4,window.tracker.trackEvent("Checkout initiated",r),e.next=8,(0,a.createPaymentSession)(r);case 8:return o=e.sent,i=o.data.sessionId,e.next=12,n.redirectToCheckout({sessionId:i});case 12:return(s=e.sent).error&&console.error("resErr",s.error),e.abrupt("return",{result:s});case 17:return e.prev=17,e.t0=e.catch(4),console.error("paymentSession creation failed",e.t0),e.abrupt("return",{errMsg:(null===e.t0||void 0===e.t0?void 0:e.t0.message)||"Payment session creation failed"});case 21:case"end":return e.stop()}}),e,null,[[4,17]])})))).apply(this,arguments)}
vendor: 4,799 bytes, line 2
2e.exports={getStripeLib:h,handleHomeSubscription:function(e,t){return g.apply(this,arguments)},handleCheckoutSessionHelper:y}},511392:e=>{"use strict";var t=["district","district_id","district_schools","district_students","phone"].concat(["id","name","students"]),n=["_id","type","status","reviewer","applicant"];function r(e,t,n){return e[t]=n,e}e.exports={getNcesData:function(){return t.reduce((function(e,t){return r(e,"nces_".concat(t),"")}),{})},getRootLevelData:function(){return n.reduce((function(e,t){return r(e,t,"")}),{})},SCHOOL_NCES_KEYS:t,ROOT_LEVEL_KEYS:n}},482156:(e,t,n)=>{"use strict";var r=n(619755);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}var i=["provisionType"];function a(){a=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==o(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function s(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function c(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){s(i,r,o,a,c,"next",e)}function c(e){s(i,r,o,a,c,"throw",e)}a(void 0)}))}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=n(694879).users,f=n(969278),h=n(504015),m=n(250636);function g(e,t,n){t?f.save(e,t,n):f.remove(e)}function y(){return"lib-network-".concat(me.get("_id"))}function v(){return"hide-email-library-".concat(me.get("_id"))}function b(){return"library-name-".concat(me.get("_id"))}function _(){return"library-modal-".concat(me.get("_id"))}function w(){return"is-created-via-library-".concat(me.get("_id"))}function S(e){return"coco-activity-status-".concat(e)}function C(e){var t=S(e);return f.load(t,!1)||f.load(t)||{}}function k(e){return null!=e&&e.first?{first:new Date(e.first).getTime(),last:e.last?new Date(e.last).getTime():void 0,count:e.count}:null}function x(){return E.apply(this,arguments)}function E(){return(E=c(a().mark((function e(){var t,n,o,i,s,c,u;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p.getUserCredits("LEVEL_CHAT_BOT");case 2:if(t=e.sent,(n=null==t?void 0:t.result)&&0!==n.length){e.next=6;break}return e.abrupt("return",r.i18n.t("user_credits.level_chat_no_credits_left"));case 6:if(o=n[0],i=o.creditsLeft,s=o.durationKey,c=o.durationAmount,u=r.i18n.t("user_credits.level_chat_duration_".concat(s)),!(i>0)){e.next=16;break}if(!(c>1)){e.next=13;break}return e.abrupt("return",r.i18n.t("user_credits.level_chat_left_in_duration_multiple",{credits:i,duration_key:u,duration_amount:c}));case 13:return e.abrupt("return",r.i18n.t("user_credits.level_chat_left_in_duration",{credits:i,duration_key:u}));case 14:e.next=21;break;case 16:if(!(c>1)){e.next=20;break}return e.abrupt("return",r.i18n.t("user_credits.level_chat_no_credits_left_duration_multiple",{duration_key:u,duration_amount:c}));case 20:return e.abrupt("return",r.i18n.t("user_credits.level_chat_no_credits_left_duration",{duration_key:u}));case 21:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function O(){return"parent-buying-for-self-prompt-".concat(me.get("_id"))}function T(){var e=window.me;return f.load("exam-".concat(e.id),!0)}function A(e){if(!e)return[];var t=[];
2return e.problems.forEach((function(e){var n=e.courseId;e.levels.forEach((function(e){t.push(l(l({},e),{},{courseId:n}))}))})),t}e.exports={extraProvisions:function(){return p.extraProvisions({userId:me.get("_id")}).then((function(e){var t=e.provisionType,n=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,i);if("library"===t){var r=n.premiumAdded,o=n.isInLibraryNetwork,a=n.hideEmail,s=n.libraryName,c=n.showLoginModal,u=n.isCreatedViaLibrary;g(y(),o,1440),g(v(),a,1440),g(_(),c,60),g(w(),u,1440),g(b(),s,1440);var d=me.get("library")||{};!d.name&&s&&(d.name=s,me.set("library",d),me.save()),r&&me.fetch({cache:!1})}else"teacher"===t&&n.esportsAdded&&me.fetch({cache:!1});return l({provisionType:t},n)})).catch((function(e){console.error("provision err",e)}))},isInLibraryNetwork:function(){return!!f.load(y())},shouldHideEmail:function(){return!!f.load(v())},libraryName:function(){return f.load(b())},removeLibraryKeys:function(){f.remove(v()),f.remove(b()),f.remove(y()),f.remove(w())},shouldShowLibraryLoginModal:function(){return!!f.load(_())},levelChatCreditsString:x,isCreatedViaLibrary:function(){return f.load(w())},hasSeenParentBuyingforSelfPrompt:function(){return!!f.load(O())},markParentBuyingForSelfPromptSeen:function(){f.save(O(),!0,1440)},updateUserCreditsMessage:function(){h.fetchingCreditsString||(h.fetchingCreditsString=!0,x().then((function(e){e!==h.userCreditsMessage&&(h.userCreditsMessage=e,Backbone.Mediator.publish("auth:user-credits-message-updates",{})),h.fetchingCreditsString=!1})))},getStorageExam:T,levelsOfExam:A,levelNumberInExam:function(e){var t=T();if(!t)return 0;var n=A(t);return m.findIndex(n,{slug:e})+1},getActivityStatusCacheKey:S,readActivityFromCache:function(e,t){return null==(n=C(e)[t])?null:"number"==typeof n?{first:n,last:n,count:1}:null==n.first?null:{first:"number"==typeof n.first?n.first:new Date(n.first).getTime(),last:null!=n.last?"number"==typeof n.last?n.last:new Date(n.last).getTime():void 0,count:n.count};var n},reconcileActivity:function(e,t){var n,r,o,i,a,s,c=k(t);return e?c?(null!==(n=c.count)&&void 0!==n?n:0)>(null!==(r=e.count)&&void 0!==r?r:0)?c:(null!==(o=c.count)&&void 0!==o?o:0)<(null!==(i=e.count)&&void 0!==i?i:0)?e:(null!==(a=c.last)&&void 0!==a?a:0)>(null!==(s=e.last)&&void 0!==s?s:0)?c:e:e:c},writeActivityToCache:function(e,t,n){var r=S(e),o=C(e);o[t]=n,f.save(r,o,0)},activityFromRemote:k,clearActivityStatusCache:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.prefix,r=S(e);if(!n)return f.remove(r,!1),void f.remove(r);var o=C(e),i=m.pick(o,m.filter(m.keys(o),(function(e){return!e.startsWith(n)})));m.isEmpty(i)?(f.remove(r,!1),f.remove(r)):f.save(r,i,0)}}},953397:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=n(299498),i=null;"undefined"!=typeof WebSocket?i=WebSocket:"undefined"!=typeof MozWebSocket?i=MozWebSocket:void 0!==n.g?i=n.g.WebSocket||n.g.MozWebSocket:"undefined"!=typeof window?i=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(i=self.WebSocket||self.MozWebSocket);var a=function(e,t,n){Array.isArray(t)||"string"!=typeof t||(t=[t]);var r={type:e,topics:t};n.send(JSON.stringify(r))};e.exports={websocketUrl:function(e){var t=window.location.host,n="wss://".concat(t,"/websocket");return"https:"!==window.location.protocol&&(n="ws://".concat(t,"/websocket")),n+e},setupBaseWS:function(){if(!i)return console.log("WebSocket not found!"),null;if(o.useWebsocket){var t=e.exports.websocketUrl("/base-info"),n=new i(t);return n.sendJSON=function(e){"object"===r(e)&&(e=JSON.stringify(e)),n.send(e)},n.subscribe=function(e){return a("subscribe",e,n)},n.unsubscribe=function(e){return a("unsubscribe",e,n)},n.publish=function(e,t){Array.isArray(e)||"string"!=typeof e||(e=[e]);var r={type:"publish",topics:e,info:t};n.send(JSON.stringify(r))},n.topicName=function(e,t){return"".concat(e,"-").concat(t)},n}console.log("websocket disabled")}}}
vendor: 4,186 bytes, line 2
2,430328:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(){o=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},c=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:O(e,n,s)}),i}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&i.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==r(d)&&i.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var o;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,a=function n(){for(;++o<t.length;)if(i.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(r(t)+" is not iterable")}return b.prototype=_,a(k,"constructor",{value:_,configurable:!0}),a(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
vendor: 4,722 bytes, line 2
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function i(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,c,"next",e)}function c(e){i(a,r,o,s,c,"throw",e)}s(void 0)}))}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function l(e,t,n){return t=p(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var h,m=n(250636),g=n(272316),y=n(727851),v=n(953397),b=n(504015),_={"play-level":function(){var e=b.currentView;return"level-view"===e.id&&"PlayLevelView"===e.constructor.name&&{levelID:e.levelID,sessionID:e.session.id.toString()}}};e.exports=h=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),h.prototype.subscriptions={"auth:me-synced":"onMeSynced"},(e=l(this,t)).ws=null,e.wsInfos={inited:!1,friends:{}}
2,e.connected=!1,e.reconnectInterval=void 0,e.init(),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,r=[{key:"init",value:function(){var e=this;this.ws=v.setupBaseWS(),this.ws&&(this.ws.addEventListener("message",(function(t){var n=t.data;try{n=JSON.parse(n)}catch(e){}switch(n.type){case"fetch":e.getFetchMessage(n);break;case"send":e.getSendMessage(n);break;case"msg":e.getMsg(n);break;case"publish":e.getPublishMessage(n);break;case"ping":case"pong":e.updateFriend(n.from,{online:!0})}})),this.ws.addEventListener("open",(function(){e.connected=!0,e.reconnectInterval&&clearInterval(e.reconnectInterval),e.resetWSInfos()})),this.ws.addEventListener("close",(function(){console.log("ws close unexpected! try reconnect in 10 secnds..."),e.connected=!1,e.reconnectInterval=setInterval((function(){return e.ws=v.setupBaseWS()}),1e4)})))}},{key:"getFetchMessage",value:function(e){var t={to:e.from,type:"send",infos:{}};e.infos.forEach((function(e){t.infos[e]=_[e]()})),this.ws.sendJSON(t)}},{key:"getMsg",value:function(e){noty({text:e.info.text,layout:"centerRight",type:"alert",buttons:[{text:"Okay",onClick:function(t){t.close(),window.open(e.info.url,"_blank")}}]})}},{key:"getSendMessage",value:function(e){var t=m.assign({},this.wsInfos.friends[e.from].infos,e.infos);this.wsInfos.friends[e.from].infos=t,g.Mediator.publish("websocket:update-infos")}},{key:"getPublishMessage",value:function(e){var t=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?s(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e.topic.split("-"),2),n=t[0],r=t[1];"user"===n&&this.updateFriend(r,e.info)}},{key:"resetWSInfos",value:(u=a(o().mark((function e(){var t,n,r=this;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.wsInfos={inited:!1,friends:{}},me.isAnonymous()||(console.log("publish user online",me.id),this.ws.publish(this.ws.topicName("user",me.id.toString()),{online:!0}),t=me.get("friends")||[],n=[],t.forEach((function(e){r.addFriend(e.userId.toString(),{role:e.role}),n.push("user-".concat(e.userId.toString()))})),this.ws.subscribe(n)),this.wsInfos.inited=!0;case 2:case"end":return e.stop()}}),e,this)}))),function(){return u.apply(this,arguments)})},{key:"onMeSynced",value:(i=a(o().mark((function e(){return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("me synced"),!this.connected){e.next=4;break}return e.next=4,this.resetWSInfos();case 4:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"addFriend",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.role,r=void 0===n?"friend":n,o=t.online,i=void 0!==o&&o,a={role:r,online:i},s={};e in this.wsInfos.friends&&(s=this.wsInfos.friends[e]),this.wsInfos.friends[e]=m.assign(a,s)}},{key:"updateOnlineFriends",value:function(e){var t=this;e.forEach((function(e){t.updateFriend(e,{online:!0})}))}},{key:"updateFriend",value:function(e,t){e in this.wsInfos.friends&&(this.wsInfos.friends[e]=m.assign(this.wsInfos.friends[e],t),g.Mediator.publish("websocket:user-online",{user:e}))}}],r&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i,u}(y)},266005:e=>{"use strict";e.exports={nativeDescription:"English (US)",englishDescription:"English (US)",translation:{common:{loading:"Loading..."}}}},761625:e=>{"use strict";e.exports={nativeDescription:"English",englishDescription:"English",translation:{ozaria_home:{subtitle:"Computer Science that Captivates",heading_subtitle:"A coding adventure for students and your turnkey solution for teaching Computer Science.",item_list_p:"Try Chapter 1 for Free Today!",engaging_heading_corner:"A solution to Engage Students and Support Teachers",engaging_row1_h2:"Easy Implementation",engaging_row1_p:"Even with no coding experience, you can teach a full Computer Science curriculum with Ozaria. Our ready-to-go lesson plans and intuitive dashboard will provide you with the tools you need to be ready to teach on day one.",engaging_row2_h2:"Immersive Gameplay",engaging_row2_p:"Students are immersed in an adventure game in which their knowledge of Computer Science advances with the storyline. In this engaging learning environment, students build real-world skills through the power of play.",engaging_row3_h2:"Standards-Aligned Curriculum",engaging_row3_p:"Ozaria meets CSTA and ISTE standards, enabling you to teach with confidence as your students master core Computer Science concepts, develop computational thinking skills, and learn about the relevance of Computer Science to their daily lives.",engaging_row4_h2:"(used in zh-HANS)",engaging_row4_p:"(used in zh-HANS)",speaker_name_1:"(used in zh-HANS)",speaker_position_1:"(used in zh-HANS)",speaker_name_2:"(used in zh-HANS)",speaker_position_2:"(used in zh-HANS)",global_community_row1_header:"(used in zh-HANS)",global_community_row2_header:"(used in zh-HANS)",global_community_row3_header:"(used in zh-HANS)",global_community_row4_header:"(used in zh-HANS)",btn_download_pre:"(used in zh-HANS)",btn_download_flyer:"(used in zh-HANS)",pd_blurb:"Learn the skills to effectively teach computer science with our self-directed, CSTA-accredited __pd__ course. Earn up to 40 credit hours any time, from any device.",back_cta_1_a:"Try Chapter 1 for Free",speech_bubble_testimonial_1_blockquote:"Once again, your team has managed to accomplish the Holy Grail of Edutainment. In my opinion as a 26-year veteran Middle School educator, there is no more engaging resource for teaching coding.",core_curriculum_header:"Core Computer Science Curriculum",core_curriculum_p:"We have developed our instructional model based on proven theories and extensive evidence around how students learn best.",core_curriculum_carousel_item1_header:"Make Connections",core_curriculum_carousel_item1_p:"At the start of every module, use our turnkey lesson slides to help your students make the connection between new Computer Science concepts and relevant examples from their daily lives.",core_curriculum_carousel_item2_header:"Construct Own Meaning",core_curriculum_carousel_item2_p:"Next, guide your students in constructing a deeper understanding of new concepts through unplugged and discussion activities that are built into our lesson plans.",core_curriculum_carousel_item3_header:"Learn New Concepts",core_curriculum_carousel_item3_p:"In the third stage of the learning cycle, your students will learn new concepts through expositional dialogue between characters in the Ozaria story. Voice-over, graphics, and animations make absorbing new information even more accessible and fun.",core_curriculum_carousel_item4_header:"Apply New Knowledge",core_curriculum_carousel_item4_p:"Next, your students will put what they learned into practice by typing real Python or JavaScript to solve a variety of challenges in scaffolded game levels. Built-in hints help students identify and fix bugs, leading to greater coding confidence.",core_curriculum_carousel_item5_header:"Summative Project",core_curriculum_carousel_item5_p:"At the end of each chapter, your students will be challenged to showcase their new skills and express their creativity through summative projects in which they build their own games, stories, and more.",core_curriculum_scope_sequence:"View Scope & Sequence",core_curriculum_sample_lesson_slides:"View Sample Lesson Slides",global_community_header:"Join Our Global Community",global_community_row1_p:"Learners",global_community_row2_p:"Lines of Code",global_community_row3_p:"Teachers",global_community_row4_p:"Countries",admin_dashboard_header:"Comprehensive Teacher & Admin Dashboards",admin_dashboard_p:"Designed with feedback from our community of over 140,000 educators, Ozaria addresses the challenges of teaching Computer Science by providing tools and resources that work.",admin_dashboard_row1_p:"The intuitive Teacher Dashboard provides access to student-facing lesson plans, pacing guides, distance learning strategies, and other resources to support your needs.",admin_dashboard_row2_p:"The Track Progress page allows you to monitor student progress on an ongoing basis, get valuable information on their performance, and immediately identify whether interventions are needed.",admin_dashboard_row3_a:"Request a Quote",acodus_awards_a:"Try Chapter 1 for Free",speech_bubble_testimonial_2_blockquote:"Itâs the most accessible programming site Iâve seen as of yet. I appreciate the story that goes with Ozaria, as it aligns with a mission my students can empathize with. Frankly, I love it. In fact, I found myself playing for far longer than I wish to admit last weekend!",shareable_resources_header:"Shareable Resources",shareable_resources_p:"Share the resources below with teachers, administrators, and others involved in bringing Computer Science to your school or expanding offerings already in place.",shareable_resources_a:"Download Flyer",back_cta_2_a:"Try Chapter 1 for Free",faq_header:"Frequently Asked Questions",faq_row1_header:"How is Ozaria related to CodeCombat?",faq_row1_p:"Ozaria is the classroom-ce
2ntered evolution of CodeCombat, one of the most popular coding games in history. We built Ozaria based off the insights gained from teaching over 20 million learners Python and JavaScript. Ozaria incorporates new pedagogical models, an immersive story-driven narrative, and was designed to be implemented in classrooms, for both in-person and remote learning settings.",faq_row2_header:"What ages or grades are appropriate for Ozaria?",faq_row2_p:"Ozaria is aligned to the CSTA and ISTE middle school CS standards, but has been practiced and enjoyed by students ranging from upper elementary through high school.",faq_row3_header:"How much does it cost to access all of the available units and resources?",faq_row3_p_part1:"We customize solutions for schools and districts and work with you to understand your use case, context, and budget. ",faq_row3_p_part2:" for further details! We also provide a ",faq_row3_p_part3:"funding resources guide",faq_row3_p_part4:" for school and district CS programs.",faq_row4_header:"Does Ozaria have project-based learning?",faq_row4_p:"Yes. Ozaria incorporates shareable Capstone Projects at the end of each Chapter, where students create their own games. These projects serve as summative assessments and are great ways for students to express themselves and demonstrate their learnings to classmates, friends, and family.",faq_row5_header:"Can I use Ozaria as my classâs main curriculum?",faq_row5_p:"Absolutely! Ozaria has everything you need to run a full Computer Science class, even if you don't have a Computer Science background. From lesson plans and solution guides to project rubrics and built-in standards alignment, it's all here.",faq_row6_p_part1:"If you have any other questions, please ",see_faq_prefix:"See more",see_faq_link:"frequently asked questions in our help center",see_faq_suffix:".",summary:"Ozaria is a computer science program, an adventure game, and a fantasy story where students master the lost magic of coding to save their world.",value_prop1_h1:"Epic Story. Immersive Gameplay.",value_prop1_h2:"Inspire a deeper connection to learning",value_prop1_p:"In Ozaria, students find themselves embedded in a new world where they master core computer science concepts to progress within the game. The unfolding narrative creates a powerful student-centered learning experience, with each studentâs investment in Ozariaâs story paralleling the investment they are making in their own learning journey.",value_prop2_h1:"Discover the Hero within Every Student",value_prop2_h2:"Build real skills through play",value_prop2_p:"Concepts and skills are introduced via a thoughtfully-designed content progression that includes game levels, instructional character dialogue, cutscenes, and more. Students learn to type Python or JavaScript, problem-solve using computational thinking, demonstrate understanding through formative assessments, and apply what they learn by making their own projects.",value_prop3_h1:"Start Your Journey For Free",value_prop3_p:"Teach through adventure with free content covering introductory computer science concepts, plus access to implementation guides and lesson plans.",projects_inspire_heading:"Projects that Inspire. Resources that Empower.",student_creativity:"Unleash Student Creativity",student_creativity_paragraph:"At the end of each unit, students apply what they've learned by creating projects, from games to choose-your-own adventure stories and more. Built with scaffolded goals, yet allowing for limitless ideation, students build a shareable and playable portfolio of work that showcases their creative identity.",teach_with_support:"Teach with Support",teach_with_support_paragraph:"Ozaria is built for educators. Each unit throughout the curriculum has a lesson plan that outlines learning objectives, common student misconceptions, key terms, and CSTA standards. In addition, a comprehensive teacher dashboard helps teachers to track student progress and check student code.",request_demo:"Request a Demo",im_an_educator:"I'm an Educator",im_a_student:"I'm a Student",global_title:"Join Our Global Community of Learners and Educators",global_subtitle1:"Learners",global_subtitle2:"Lines of Code",global_subtitle3:"Teachers",global_subtitle4:"Countries",sign_up:"Sign Up",individual_account_warning:"You are logged in as __name__, which is an individual account. Ozaria is for teacher and student accounts only; do you need to update your account?",learner_number:"12 Million",code_line_number:"1 Billion",dei_initiatives:"What initiatives does Ozaria have to ensure diversity, equity, and inclusion in the game?",dei_initiatives_blurb:"Ozaria is dedicated to promoting diversity, equity, and inclusion (DEI) within the game. Through diverse character representation, equitable opportunities, and an inclusive environment, Ozaria embraces differences and fosters a welcoming experience for players of all backgrounds and abilities. Explore our __deipage__ to learn more about our commitment and initiatives towards DEI in Ozaria.",dei_page:"DEI page",ozaria_efficacy:"How does Ozaria measure and demonstrate its effectiveness in improving learning outcomes in the classroom?",ozaria_efficacy_blurb:"We prioritize effectiveness through evidence-based practices and assessment. Our __efficacypage__ offers detailed statistics, real teacher quotes, and compelling case studies demonstrating the transformative impact of Ozaria. By creating meaningful learning experiences and employing evidence-based practices, we design content that delivers the outcomes that matter most to teachers and students.",efficacy_page:"efficacy page",social_learning:"Does Ozaria promote social and emotional learning (SEL)?",social_learning_blurb:"Yes! Ozaria actively integrates social and emotional learning (SEL) into its curriculum. Through gamified activities, students develop essential skills such as decision-making, self-awareness, self-management, social awareness, relationship skills, and responsible decision-making. You can learn more about our philosophy on our __selpage__.",sel_page:"SEL page"},new_home:{title_coco:"CodeCombat - Coding games to learn Python and JavaScript",title_ozar:"Ozaria - Computer science that captivates",title_cn_home:"CodeCombat|Python, Javascript",meta_keywords_coco:"CodeCombat, python, javascript, Coding Games",meta_keywords_ozar:"CodeCombat, python, javascript, Coding Games, Computer Science Program, Adventure, Epic Story",meta_keywords_cn_home:"(used in zh-HANS)",meta_description_coco:"Learn typed code through a programming game. Learn Python, JavaScript, and HTML as you solve puzzles and learn to make your own coding games and websites.",meta_description_ozar:"Ozaria is a computer science program, an adventure game, and a fantasy story where students master the lost magic of coding to save their world.",meta_description_cn_home:"(used in zh-HANS)",meta_og_url:"https://codecombat.com",become_investor:"to become an investor in CodeCombat",built_for_teachers_title:"A Coding Game Built with Teachers in Mind",built_for_teachers_blurb:"Teaching kids to code can often feel overwhelming. CodeCombat helps all educators teach students how to code in either JavaScript or Python, two of the most popular programming languages. With a comprehensive curriculum that includes six computer science units and reinforces learning through project-based game development and web development units, kids will progress on a journey from basic syntax to recursion!",built_for_teachers_subtitle1:"Computer Science",built_for_teachers_subblurb1:"Starting with our free Introduction to Computer Science course, students master core coding concepts such as while/for loops, functions, and algorithms.",built_for_teachers_subtitle2:"Game Development",built_for_teachers_subblurb2:"Learners construct mazes and use basic
2input handling to code their own games that can be shared with friends and family.",built_for_teachers_subtitle3:"Web Development",built_for_teachers_subblurb3:"Using HTML, CSS, and jQuery, learners flex their creative muscles to program their own webpages with a custom URL to share with their classmates.",century_skills_title:"21st Century Skills",century_skills_blurb1:"Students Don't Just Level Up Their Hero, They Level Up Themselves",century_skills_quote1:"You mess upâ¦so then you think about all of the possible ways to fix it, and then try again. I wouldn't be able to get here without trying hard.",century_skills_subtitle1:"Critical Thinking",century_skills_subblurb1:"With coding puzzles that are naturally scaffolded into increasingly challenging levels, CodeCombat's programming game ensures kids are always practicing critical thinking.",century_skills_quote2:"Everyone else was making mazes, so I thought, âcapture the flagâ and thatâs what I did.",century_skills_subtitle2:"Creativity",century_skills_subblurb2:"CodeCombat encourages students to showcase their creativity by building and sharing their own games and webpages.",century_skills_quote3:"If I got stuck on a level. I would work with people around me until we were all able to figure it out.",century_skills_subtitle3:"Collaboration",century_skills_subblurb3:"Throughout the game, there are opportunities for students to collaborate when they get stuck and to work together using our pair programming guide.",century_skills_quote4:"Iâve always had aspirations of designing video games and learning how to code ... this is giving me a great starting point.",century_skills_quote4_author:"Joey, 10th Grade",century_skills_subtitle4:"Communication",century_skills_subblurb4:"Coding requires kids to practice new forms of communication, including communicating with the computer itself and conveying their ideas using the most efficient code.",classroom_in_box_title:"We Strive To:",classroom_in_box_blurb1:"Engage every student so that they believe coding is for them.",classroom_in_box_blurb2:"Empower any educator to feel confident when teaching coding.",classroom_in_box_blurb3:"Inspire all school leaders to create a world-class computer science program.",classroom_in_box_blurb4:"(used in zh-HANS)",click_here:"Click here",creativity_rigor_title:"Where Creativity Meets Rigor",creativity_rigor_subtitle1:"Make coding fun and teach real-world skills",creativity_rigor_blurb1:"Students type real Python and JavaScript while playing games that encourage trial-and-error, critical thinking, and creativity. Students then apply the coding skills theyâve learned by developing their own games and websites in project-based courses.",creativity_rigor_subtitle2:"Reach students at their level",creativity_rigor_blurb2:"Every CodeCombat level is scaffolded based on millions of data points and optimized to adapt to each learner. Practice levels and hints help students when they get stuck, and challenge levels assess students' learning throughout the game.",creativity_rigor_subtitle3:"Built for all teachers, regardless of experience",creativity_rigor_blurb3:"CodeCombatâs self-paced, standards-aligned curriculum makes teaching computer science possible for everyone. CodeCombat equips teachers with the training, instructional resources, and dedicated support to feel confident and successful in the classroom.",featured_partners_title1:"Featured In",featured_partners_title2:"Awards & Partners",featured_partners_blurb1:"Clever Partner",featured_partners_blurb2:"Best Creativity Tool for Students",featured_partners_blurb3:"Top Pick for Learning",featured_partners_blurb4:"Code.org Official Partner",featured_partners_blurb5:"CSforAll Official Member",featured_partners_blurb6:"Hour of Code Activity Partner",for_leaders_title:"For School Leaders",for_leaders_blurb:"A Comprehensive, Standards-Aligned Computer Science Program",for_leaders_subtitle1:"Easy Implementation",for_leaders_subblurb1:"A web-based program that requires no IT support. Get started in under 5 minutes using Google or Clever Single Sign-On (SSO).",for_leaders_subtitle2:"Full Coding Curriculum",for_leaders_subblurb2:"A standards-aligned curriculum with instructional resources and professional development to enable any teacher to teach computer science.",for_leaders_subtitle3:"Flexible Use Cases",for_leaders_subblurb3:"Whether you want to build a Middle School
2coding elective, a CTE pathway, or an AP Computer Science Principles class, CodeCombat is tailored to suit your needs.",for_leaders_subtitle4:"Real-World Skills",for_leaders_subblurb4:"Students build grit and develop a growth mindset through coding challenges that prepare them for the 500K+ open computing jobs.",for_teachers_title:"For Teachers",for_teachers_blurb:"Tools to Unlock Student Potential",for_teachers_subtitle1:"Project-Based Learning",for_teachers_subblurb1:"Promote creativity, problem-solving, and confidence in project-based courses where students develop their own games and webpages.",for_teachers_subtitle2:"Teacher Dashboard",for_teachers_subblurb2:"View data on student progress, discover curriculum resources, and access real-time support to empower student learning.",for_teachers_subtitle3:"Built-in Assessments",for_teachers_subblurb3:"Personalize instruction and ensure students understand core concepts with formative and summative assessments.",for_teachers_subtitle4:"Automatic Differentiation",for_teachers_subblurb4:"Engage all learners in a diverse classroom with practice levels that adapt to each student's learning needs.",game_based_blurb:"CodeCombat is a game-based computer science program where students type real code and see their characters react in real time.",get_started:"Get started",global_title:"Join Our Global Community of Learners and Educators",global_subtitle1:"Learners",global_subtitle2:"Lines of Code",global_subtitle3:"Teachers",global_subtitle4:"Countries",go_to_my_classes:"Go to my classes",go_to_my_courses:"Go to my courses",quotes_quote1:"Name any program online, Iâve tried it. None of them match up to CodeCombat & Ozaria. Any teacher who wants their students to learn how to code... start here!",quotes_quote2:" I was surprised about how easy and intuitive CodeCombat makes learning computer science. The scores on the AP exam were much higher than I expected and I believe CodeCombat is the reason why this was the case.",quotes_quote3:"CodeCombat has been the most beneficial for teaching my students real-life coding capabilities. My husband is a software engineer and he has tested out all of my programs. He put this as his top choice.",quotes_quote4:"The feedback ⦠has been so positive that we are structuring a computer science class around CodeCombat. The program really engages the students with a gaming style platform that is entertaining and instructional at the same time. Keep up the good work, CodeCombat!",quotes_quote5:"Even though the class starts every Saturday at 7am, my son is so excited that he wakes up before me! CodeCombat creates a pathway for my son to advance his coding skills.",quotes_quote5_author:"Latthaphon Pohpon, Parent",see_example:"See example",slogan:"The most engaging way to learn computer science",slogan_power_of_play:"Learn to Code Through the Power of Play",slogan_subtitle:"(used in zh-HANS)",teach_cs1_free:"Teach CS1 Free",teachers_love_codecombat_title:"Teachers Love CodeCombat",teachers_love_codecombat_blurb1:"Report that their students enjoy using CodeCombat to learn how to code",teachers_love_codecombat_blurb2:"Would recommend CodeCombat to other computer science teachers",teachers_love_codecombat_blurb3:"Say that CodeCombat helps them support studentsâ problem solving abilities",teachers_love_codecombat_subblurb:"In partnership with McREL International, a leader in research-based guid
2ance and evaluations of educational technology.",top_banner_blurb:"Parents, give your child the gift of coding and personalized instruction with our live teachers!",top_banner_summer_camp:"Enrollment now open for our summer coding campsâask us about our week-long virtual sessions starting at just $199.",top_banner_blurb_pd:"We now offer professional development for educators.",top_banner_blurb_funding:"New: CARES Act funding resources guide to ESSER and GEER funds for your CS programs.",top_banner_blurb_maintenance:"Upgrades coming! Scheduled maintenance: up to 3 hours starting at __maintenanceStartTime__.",top_banner_blurb_podcast:"NEW: Explore the world of EdTech with our new podcast EdTech Adventures.",top_banner_blurb_roblox:"NEW! CodeCombat is coming to Roblox!",top_banner_blurb_roblox_teachers:"NEW! CodeCombat has partnered with Roblox Education!",top_banner_blurb_roblox_players:"NEW! Learn to code while playing Roblox!",top_banner_blurb_roblox_players_cta:"Join Beta Waitlist",top_banner_blurb_live_online_classes_parents:"PARENTS! Get your child coding today with a free trial class.",top_banner_blurb_live_online_classes:"Live online coding classes powered by play!",top_banner_blurb_live_online_classes_cta:"Sign up for a free trial class!",top_banner_blurb_demo_day:"Please join us for a demo day webinar on Thursday, August 25 at 4:00 pm EDT.",top_banner_blurb_demo_day_10_20:"Join us for a spooktacular demo of CodeCombat & Ozaria on Thursday, October 20 at 4:00 pm CDT.",top_banner_blurb_hoc_2022_12_01:"Join us Dec. 1st for our Hour of Code Walkthrough! Everything you need to implement our all new activities __topBannerHereLink__",top_banner_blurb_hoc_2022_12_01_here:"HERE",top_banner_blurb_demo_day_2023_02_16:"LIVE DEMO! See how you can use esports to teach coding. Join us Thursday February 16th at 2:00 pm PST.",try_the_game:"Try the game",classroom_edition:"Classroom Edition:",learn_to_code:"Learn to code:",play_now:"Play Now",im_a_parent:"I'm a Parent",im_a_parent_description:"Explore our live online coding classes",im_an_educator:"I'm an Educator",im_an_educator_description:"Teach Computer Science with CodeCombat",im_a_teacher:"I'm a Teacher",im_a_student:"I'm a Student",im_a_student_description:"Learn Computer Science with your class",im_an_individual:"I'm an Individual",im_an_individual_description:"Play at home outside of a class setting",learn_more:"Learn more",check_it_out:"Check it out!",classroom_in_a_box:"A classroom in-a-box for teaching computer science.",codecombat_is:"CodeCombat is a platform <strong>for students</strong> to learn computer science while playing through a real game.",our_courses:"Our courses have been specifically playtested <strong>to excel in the classroom</strong>, even for teachers with little to no prior programming experience.",watch_how:"Watch how CodeCombat is transforming the way people learn computer science.",top_screenshots_hint:"Students write code and see their changes update in real-time",designed_with:"Designed with teachers in mind",real_code:"Real, typed code",from_the_first_level:"from the first level",getting_students:"Getting students to typed code as quickly as possible is critical to learning programming syntax and proper structure.",educator_resources:"Educator Resources",course_guides:"and course guides",teaching_computer_science:"Teaching computer science does not require a costly degree, because we provide tools to support educators of all backgrounds.",accessible_to:"Accessible to",everyone:"everyone",democratizing:"Democratizing the process of learning coding is at the core of our philosophy. Everyone should be able to learn to code.",forgot_learning:"I think they actually forgot that they were learning something.",wanted_to_do:" Coding is something I've always wanted to do, and I never thought I would be able to learn it in school.",builds_concepts_up:"I like how CodeCombat builds the concepts up. It's really easy to understand and fun to figure it out.",why_games:"Why is learning through games important?",games_reward:"Games reward the productive struggle.",encourage:"Gaming is a medium that encourages interaction, discovery, and trial-and-error. A good game challenges the player to master skills over time, which is the same critical process students go through as they learn.",excel:"Games excel at rewarding",struggle:"productive struggle",kind_of_struggle:"the kind of struggle that results in learning thatâs engaging and",motivating:"motivating",not_tedious:"not tedious.",gaming_is_good:"Studies suggest gaming is good for childrenâs brains. (itâs true!)",game_based:"When game-based learning systems are",compared:"compared",conventional:"against conventional assessment methods, the difference is clear: games are better at helping students retain knowledge, concentrate and",perform_at_higher_level:"perform at a higher level of achievement",feedback:"Games also provide real-time feedback that allows students to adjust their solution path and understand concepts more holistically, instead of being limited to just âcorrectâ or âincorrectâ answers.",real_game:"A real game, played with real coding.",great_game:"A great game is more than just badges and achievements - itâs about a playerâs journey, well-designed puzzles, and the ability to tackle challenges with agency and confidence.",agency:"CodeCombat is a game that gives players that agency and confidence with our robust typed code engine, which helps beginner and advanced students alike write proper, valid code.",request_demo_title:"Get your students started today!",request_demo_subtitle:"Request a demo and get your students started in less than an hour.",get_started_title:"Set up your class today",get_started_subtitle:"Set up a class, add your students, and monitor their progress as they learn computer science.",request_demo:"Request a Demo",request_quote:"Request a Quote",setup_a_class:"Set Up a Class",have_an_account:"Have an account?",logged_in_as:"You are currently logged in as",computer_science:"Our self-paced courses cover basic syntax to advanced concepts",ffa:"Free for all students",coming_soon:"More coming soon!",courses_available_in:"Courses are available in JavaScript and Python. Web Development courses utilize HTML, CSS, and jQuery.",boast:"Boasts riddles that are complex enough to fascinate gamers and coders alike.",winning:"A winning combination of RPG gameplay and programming homework that pulls off making kid-friendly education legitimately enjoyable.",run_class:"Everything you need to run a computer science class in your school today, no CS background required.",goto_classes:"Go to My Classes",view_profile:"View My Profile",view_progress:"View Progress",go_to_courses:"Go to My Courses",want_coco:"Want CodeCombat at your school?",educator:"Educator",student:"Student",go_to_my_dashboard:"Go to My Dashboard",our_coding_programs:"Our C
2oding Programs",codecombat:"CodeCombat Classroom",ozaria:"Ozaria Classroom",hackstack:"HackStack",codecombat_blurb:"Our original coding game. Recommended for parents, individuals, educators, and students who want to experience one of the most-loved coding games in the world.",ozaria_blurb:"An adventure game and Computer Science program where students master the lost magic of coding to save their world. Recommended for educators and students.",ozaria_china_blurb:"(used in zh-HANS)",hackstack_china_blurb:"(used in zh-HANS)",try_codecombat:"Try CodeCombat",try_ozaria:"Try Ozaria",try_hackstack:"(used in zh-HANS)",explore_codecombat:"Explore CodeCombat",explore_ai_league:"Explore AI League",explore_ozaria:"Explore Ozaria",explore_online_classes:"Explore Online Classes",explore_pd:"Explore Professional Development",new_adventure_game_blurb:"Ozaria is our brand new adventure game and your turnkey solution for teaching Computer science. Our student-facing __slides__ and teacher-facing notes make planning and delivering lessons easier and faster.",lesson_slides:"lesson slides",pd_blurb:"Learn the skills to effectively teach computer science with our self-directed, CSTA-accredited professional development course. Earn up to 40 credit hours any time, from any device. Pairs well with Ozaria Classroom.",ai_league_blurb:"Competitive coding has never been so epic with this educational esports league, uniquely both an AI battle simulator and game engine for learning real code.",codecombat_live_online_classes:"CodeCombat Live Online Classes",learning_technology_blurb:"Our original game teaches real-world skills through the power of play. The scaffolded curriculum systematically builds on studentâs experiences and knowledge as they progress.",learning_technology_blurb_short:"Our innovative game-based learning technology has transformed the way students learn to code.",online_classes_blurb:"Our online coding classes combine the power of gameplay and personalized instruction for an experience your child will love. With both private or group options available, this is remote learning that works.",codecombat_home_blurb:"__codecombatHome__ offers your child a fun and engaging way to advance their coding skills. With access to over 530 levels and exclusive features like pets, premium-only items, and heroes, your child can fully immerse themselves in the world of coding. They can even design games to challenge their friends, build websites and apps to share, and create private teams to compete on a group leaderboard, all in a safe and interactive environment that encourages learning and socialization.",codecombat_home:"CodeCombat",for_educators:"For Educators",for_parents:"For Parents",for_everyone:"For Everyone",for_students:"For Students",for_individuals:"For Individuals",for_libraries:"For Libraries",for_partners:"For Partners",for_partners_title:"Partner With CodeCombat",for_partners_blurb:"Join our mission to make coding accessible and engaging for all by becoming a valued partner with CodeCombat. Our partnership structures include educational businesses, esports sponsors, international distributors, and social impact partners. Partners receive access to our easy-to-use programs, implementation resources, and training options for a successful and enjoyable experience.",for_partners_button:"Explore Partnerships",for_libraries_title:"Library Integration",for_libraries_blurb:"As an entirely self-paced and self-directed digital resource, CodeCombat is the best integration for libraries that want to empower their members of all ages to learn how to code. Our platform offers everything learners need to experience a high-level coding education through a uniquely exciting, game-based curriculum. Perfect for learners in third grade all the way up to adults who want to master college-level coding concepts.",for_libraries_button:"Explore Libraries",what_our_customers_are_saying:"What Our Customers Are Saying",game_based_learning:"Game-Based Learning",unique_approach_blurb:"With our unique approach, students embrace learning as they play and write code from the very start of their adventure, promoting active learning and a growth mindset.",text_based_coding:"Text-Based Coding",custom_code_engine_blurb:"Our custom code engine and interpreter is designed for beginners, teaching true Python, JavaScript, and C++ programming languages using human, beginner-friendly terms.",student_impact:"Student Impact",help_enjoy_learning_blurb:"Our products have helped over 20 million students enjoy learning Computer Science, teaching them to be critical, confident, and creative learners. We engage all students, regardless of experience, helping them to realize a pathway to success in Computer Science.",global_community:"Join Our Global Community",million:"__num__ Million",billion:"__num__ Billion",meta_keywords_podcast:"CodeCombat, python, javascript, Coding Games, podcast, edtech",coco_worlds_header:"CodeCombat Worlds",coco_worlds_description:"Embark on a 3D coding adventure in Roblox, where you can program pets, play with friends, and develop games all while playing one. Join the CodeCombat community and unleash your creativity in the metaverse!",coco_worlds_button:"Explore CodeCombat Worlds",promo_modal_title:"CodeCombat Home",promo_modal_subtitle:"Learn Real Coding Through Epic Gameplay",promo_modal_text:"Dive into realâworld coding with **Python** and **JavaScript**, solving epic puzzles, battling foes, and building a strong coding foundation. Along the way, youâll learn the skills to **create your own games** and **websites** â all in their browser, no downloads needed."},nav:{aiyouth:"AI Youth",educators:"Educators",follow_us:"Follow Us",general:"General",map:"Map",play:"Levels",community:"Community",courses:"Courses",units:"Units",blog:"Blog",forum:"Forum",account:"Account",my_account:"My Account",profile:"Profile",home:"Home",contribute:"Contribute",legal:"Legal",privacy:"Privacy Notice",about:"About",events:"Events",impact:"Impact",star:"CoCoStar",coco_oj:"CoCoOJ",contact:"Contact",press:"Press",twitter_follow:"Follow",my_classrooms:"My Classes",my_courses:"My Courses",my_units:"My Units",my_teachers:"My Teachers",careers:"Careers",facebook:"Facebook",twitter:"Twitter",create_a_class:"Create a Class",other:"Other",learn_to_code:"Learn to Code!",toggle_nav:"Toggle navigation",schools:"Schools",get_involved:"Get Involved",related_urls:"Related Links",open_source:"Open source (GitHub)",supp
2ort:"Support",faqs:"FAQs",copyright_prefix:"Copyright",copyright_suffix:"All Rights Reserved.",help_pref:"Need help? Email",help_suff:"and we'll get in touch!",resource_hub:"Teacher Toolkit",apcsp:"AP CS Principles",parent:"Parents",faq:"FAQ",return_coco:"Return to CodeCombat",classes:"Classes",term_of_service:"Terms of Service",esports:"Esports",browser_recommendation:"For the best experience we recommend using the latest version of Chrome. Download the browser here!",ozaria_classroom:"Ozaria Classroom",codecombat_classroom:"CodeCombat Classroom",ozaria_dashboard:"Ozaria Dashboard",ozaria_teacher_dashboard:"Ozaria Teacher Dashboard",ozaria_admin_dashboard:"Ozaria Admin Dashboard",codecombat_dashboard:"CodeCombat Dashboard",codecombat_teacher_dashboard:"CodeCombat Teacher Dashboard",codecombat_admin_dashboard:"CodeCombat Admin Dashboard",professional_development:"Professional Development",new:"New!",admin:"Admin",teacher:"Teacher",api:"API",api_dashboard:"API Dashboard",funding_resources_guide:"Funding Resources Guide",partnerships:"Partnerships",podcast:"Our Podcast",dashboard:"Dashboard",products:"Products",live_online_classes:"Live Online Classes",codecombat_home:"CodeCombat",libraries:"Libraries",codecombat_worlds_on_roblox:"CodeCombat Worlds on Roblox",pricing:"Pricing",help_center:"Help Center",research_efficacy:"Research - Efficacy",research_impact:"Research - Impact",terms:"Terms",podcast_simple:"Podcast",create_free_account:"Create Free Account",school_district_solutions:"School & District Solutions",teacher_toolkit_preview:"Teacher Toolkit Preview",teacher_toolkit:"Teacher Toolkit",efficacy_studies:"Efficacy Studies",success_stories:"Success Stories",hoc:"Hour of Code & AI",grants_funding_resources:"Grants & Funding Resources",accessibility:"Accessibility (ACR/VPAT)",request_quote_demo:"Request a Demo or Quote",coco_junior_beta:"CodeCombat Junior (Beta)",coco_junior:"CodeCombat Junior",ap_csp:"AP CSP",ai_league_esports:"AI League Esports",ai_hackstack_beta:"AI HackStack (Beta)",ai_junior_beta:"AI Junior (Beta)",premium_self_paced:"Premium Self-Paced",codequest:"CodeQuest",library_solutions:"Library Solutions",partner_solutions:"Partner Solutions",teaching_solutions:"Teaching Solutions",play2:"Play",my_dashborads:"My Dashboards",resources:"Resources",curriculum:"Curriculum",company:"Company",coco_home_description:"With access to all 530 levels and exclusive features like pets, premium only items, and heroes, anyone can fully immerse themselves in the world of coding.",coco_classroom_description:"A full CS curriculum that builds from core concepts all the way through web development, game development and AP CSP.",coco_junior_description:"Our flagship K-5 curriculum features a progression of learning levels that teach basic coding concepts at a slower pace, modeled specifically for elementary students.",oz_classroom_description:"An enchanting narrative coding adventure that establishes the fundamentals of computer science.",ap_csp_description:"Endorsed by the College Board, our AP CSP curriculum provides game-based and turnkey tools to prepare students for the AP exam.",ai_league_description:"An epic competitive coding esports platform that encourages creative programming practice in a game-based environment.",roblox_description:"This MMORPG teaches Lua coding and provides a real-world platform to create amazing games and experiences.",ai_hackstack_description:"The first generative AI companion tool specifically crafted for those new to AI with a focus on student privacy and safety.",ai_junior_description:"Introduces multimodal generative AI in a simple and intuitive platform designed specifically for K-5 students.",learning_options:"Learning Options",ai_hackstack:"AI HackStack",beta:"Beta",teacher_tools:"Teacher Tools",ai_teacher_tool:"AI Teacher Tool",ccw_short:"Roblox",educator_hub:"Educator Hub"},modal:{close:"Close",okay:"Okay",cancel:"Cancel",try_again:"Try Again"},not_found:{page_not_found:"Page not found"},diplomat_suggestion:{title:"Help translate CodeCombat!",sub_heading:"We need your language skills.",pitch_body:"We develop CodeCombat in English, but we already have players all over the world. Many of them want to play in {English} but don't speak English, so if you can speak both and are a native speaker of {English}, please consider signing up to be a Diplomat and help translate both the CodeCombat website and all the levels into {English}.",missing_translations:"Until we can translate everything into {English}, you'll see English when {English} isn't available.",learn_more:"Learn more about being a Diplomat",subscribe_as_diplomat:"Subscribe as a Diplomat"},new_home_faq:{what_programming_languages:"What programming languages are available?",python_and_javascript:"We currently support Python, JavaScript, C++, Java, and Lua.",why_python:"Why should you choose Python?",why_python_blurb
2:"Python is both beginner-friendly and currently used by major corporations (such as Google). If you have younger or first-time learners, we strongly recommend Python.",why_javascript:"Why should you choose JavaScript?",why_javascript_blurb:"JavaScript is the language of the web and is used across nearly every website. You may prefer to choose JavaScript if you are planning to also study web development. Weâve also made it easy for students to transition from Python to JavaScript-based web development.",javascript_versus_python:"JavaScriptâs syntax is a little more difficult for beginners than Python, so if you cannot decide between the two, we recommend Python.",how_do_i_get_started:"How do I get started?",getting_started_1:"Create your Teacher Account",getting_started_2:"Create a class",getting_started_3:"Add students",getting_started_4:"Sit back and watch your students have fun learning to code",mobile_question:"(used in zh-HANS)",mobile_question_blurb:"(used in zh-HANS)",main_curriculum:"Can I use CodeCombat or Ozaria as my main curriculum?",main_curriculum_blurb:"Absolutely! Weâve spent time consulting with education specialists to craft classroom curriculum and materials specifically for teachers who are using CodeCombat or Ozaria without any prior computer science experience themselves. Many schools are implementing CodeCombat and/or Ozaria as the main computer science curriculum.",clever_instant_login:"Does CodeCombat and Ozaria support Clever Instant Login?",clever_instant_login_blurb:"Yes! Check out our __clever__ for more details on how to get started.",clever_integration_faq:"Clever Integration FAQ",google_classroom:"What about Google Classroom?",google_classroom_blurb1:"Yup! Be sure to use the Google Single Sign-On (SSO) Modal to sign up for your teacher account. If you already have an account using your Google email, use the Google SSO modal to log in next time. In the Create Class modal, you will see an option to Link Google Classroom. We only support rostering via Google Classroom at this time.",google_classroom_blurb2:"Note: you must use Google SSO to sign up or log in at least once in order to see the Google Classroom integration option.",how_much_does_it_cost:"How much does it cost to access all of the available courses and resources?",how_much_does_it_cost_blurb:"We customize solutions for schools and districts and work with you to understand your use case, context, and budget. __contact__ for further details! See also our __funding__ for how to leverage CARES Act funding sources like ESSER and GEER.",recommended_systems:"Is there a recommended browser and operating system?",recommended_systems_blurb:"CodeCombat and Ozaria run best on computers with at least 4GB of RAM, on a modern browser such as Chrome, Safari, Firefox, or Edge. Chromebooks with 2GB of RAM may have minor graphics issues in later courses. A minimum of 200 Kbps bandwidth per student is required, although 1+ Mbps is recommended.",other_questions:"If you have any other questions, please __contact__.",see_faq_prefix:"See more",see_faq_link:"frequently asked questions in our help center",see_faq_suffix:".",ai_bot_faq_title:"What is the AI Level Help Bot and what measures are in place to ensure safety?",ai_bot_faq_blurb:"The AI Chat Level Help Bot in CodeCombat empowers learners with AI-driven hints for coding challenges, ensuring a guided yet independent learning experience. Safety is paramount, as the AI filters out personal data and is trained to handle improper requests."},play:{title:"Play CodeCombat Levels - Learn Python, JavaScript, and HTML",meta_description:"Learn programming with a coding game for beginners. Learn Python or JavaScript as you solve mazes, make your own games, and level up. Challenge your friends in multiplayer arena levels!",level_title:"__level__ - CodeCombat",level_title_ozaria:"__level__ - Ozaria",video_title:"__video__ | Video Level",game_development_title:"__level__ | Game Development",web_development_title:"__level__ | Web Development",anon_signup_title_1:"CodeCombat has a",anon_signup_title_2:"Classroom Version!",anon_signup_enter_code:"Enter Class Code:",anon_signup_ask_teacher:"Don't have one? Ask your teacher!",anon_signup_create_class:"Want to create a class?",anon_signup_setup_class:"Set up a class, add your students, and monitor progress!",anon_signup_create_teacher:"Create free teacher account",play_as:"Play As",get_course_for_class:"Assign Game Development and more to your classes!",request_licenses:"Contact our school specialists for details.",compete:"Compete!",spectate:"Spectate",simulate_all:"Simulate All",players:"players",hours_played:"hours played",items:"Items",unlock:"Unlock",confirm:"Confirm",owned:"Owned",locked:"Locked",locked_by_teacher:"Locked By Teacher",locked_campaign:"Complete previous world to unlock",locked_campaign_forest:"Complete Kithgard Dungeon to unlock",locked_campaign_desert:"Complete Backwoods Forest to unlock",locked_campaign_mountain:"Complete Sarven Desert to unlock",locked_campaign_glacier:"Complete Cloudrip Mountain to unlock",locked_campaign_volcano:"Complete Kelvintaph Mountain to unlock",available:"Available",skills_granted:"Skills Granted",heroes:"Heroes",pets:"Pets",achievements:"Achievements",settings:"Settings",next:"Next",change_hero:"Change Hero",change_hero_or_language:"Change Hero or Language",change_language:"Code Language / Code Format",buy_gems:"Buy Gems",subscribers_only:"Subscribers Only!",subscribe_unlock:"Subscribe to Unlock!",subscriber_heroes:"Subscribe today to immediately unlock Amara, Hushbaum, and Hattori!",subscriber_gems:"Subscribe today to purchase this hero with gems!",practice_license_required:"(license required for practice levels)",anonymous:"Anonymous",level_difficulty:"Difficulty: ",awaiting_levels_adventurer_prefix:"We release new levels every week.",awaiting_levels_adventurer:"Sign up as an Adventurer",awaiting_levels_adventurer_suffix:"to be the first to play new levels.",adjust_volume:"Adjust volume",toggle_fullscreen:"Toggle fullscreen",campaign_multiplayer:"Multiplayer Arenas",campaign_multiplayer_description:"... in which you code head-to-head against other players.",brain_pop_done:"Youâve defeated the Ogres with code! You win!",brain_pop_challenge:"Challenge yourself to play again using a different programming language!",replay:"Replay",back_to_classroom:"Back to Class",teacher_button:"For Teachers",get_more_codecombat:"Get More CodeCombat",back_to_dashboard:"Back to Dashboard",back_to_ozaria:"Back to ozaria.com",customize_hero:"Customize Hero",account_settings:"Account Settings",back_to_tutorial:"Back to tutorial",teacher_vega_message:"Students are guided by these tutorial messages. In order to view these messages and to save your progress as you play through the game, please create a student account and play Ozaria as a
2student.",beta_levels_on:"beta levels on",beta_levels_turn_off:"turn off",confirm_m7_off:"Are you sure to turn beta levels off?",play_codecombat:"Play CodeCombat",play_codecombat_junior:"Play CodeCombat Junior",age_codecombat:"Ages 8+",age_codecombat_junior:"Ages 5-8",age_description_codecombat:"Real Python or JavaScript coding for everyone",age_description_codecombat_junior:"Blocks or simple text coding for beginners",campaign_about_dungeon:"Real text programming for brave adventurers!",campaign_about_junior:"Blocks or simple text coding for young heroes!",want_more_hints:"Want more hints?",choose_your_adventure:"Choose Your Adventure",junior:"Junior",original:"Original",roblox_button_hover:"Play, Code and Create on Roblox",ai_league_button_hover:"Compete in AI League Esports",hackstack_button_hover:"Code and Create with AI HackStack",junior_button_hover:"Blocks coding for beginners",cchome_button_hover:"Original CodeCombat Adventure",home_campaign_redirect_student:"Please visit the course map from your student page.",blockly_error_msg:"Oo
2ps! Something went wrong loading your blocks. Try reloading the page to bring your workspace back."},code:{if:"if",else:"else",elif:"else if",while:"while",loop:"loop",for:"for",break:"break",continue:"continue",pass:"pass",return:"return",then:"then",do:"do",end:"end",function:"function",def:"define",var:"variable",self:"self",hero:"hero",this:"this",or:"or","||":"or",and:"and","&&":"and",not:"not","!":"not","=":"assign","==":"equals","===":"strictly equals","!=":"does not equal","!==":"does not strictly equal",">":"is greater than",">=":"is greater than or equal","<":"is less than","<=":"is less than or equal","*":"multiplied by","/":"divided by","+":"plus","-":"minus","+=":"add and assign","-=":"subtract and assign",True:"True",true:"true",False:"False",false:"false",undefined:"undefined",null:"null",nil:"nil",None:"None"},share_progress_modal:{blurb:"Youâre making great progress! Tell your parent how much you've learned with CodeCombat.",email_invalid:"Email address invalid.",form_blurb:"Enter your parent's email below and weâll show them!",form_label:"Email Address",placeholder:"email address",title:"Excellent Work, Apprentice"},login:{auth_sign_up:"New to Ozaria? Create an Account",sign_up:"Create Account",email_or_username:"Email or Username",or:"or",log_in:"Log In",sign_in:"Sign In",logging_in:"Logging In",log_out:"Log Out",forgot_password:"Forgot your password?",finishing:"Finishing",sign_in_with_facebook:"Facebook",sign_in_with_gplus:"Google",signup_switch:"Want to create an account?",already_have_account1:"Already have a CodeCombat Teacher or Student account?",already_have_account2:"You can sign into Ozaria.com using that account.",sign_into_ozaria:"Sign Into Ozaria.com",individual_users_not_supported:"Ozaria is for classrooms only! Please visit CodeCombat to continue playing!",accounts_merge_confirmation:"There is an account associated with the email from this Google account. Would you like to merge these accounts?",stop_spying:"Stop Spying",stop_switching:"Stop Switching",test_as_student:"Test as Student",gplus_linked:"Google Account linked successfully",plus_link_error:"Google Account linked failed",email_or_username_or_library:"Email or Username or Library Card number",login_failed:"Login failed. You may need to sign up first."},signup:{complete_subscription:"Complete Subscription",create_student_header:"Create Student Account",create_teacher_header:"Create Teacher Account",create_individual_header:"Create a Free Individual Account",email_announcements:"Receive announcements about new CodeCombat levels and features!",sign_in_to_continue:"Sign in or create an account to continue",create_account_to_submit_multiplayer:"Create a free account to rank your multiplayer AI and explore the whole game!",teacher_email_announcements:"Keep me updated on new teacher resources, curriculum, and courses!",creating:"Creating Account...",sign_up:"Sign Up",log_in:"log in with password",login:"Login",required:"You need to log in before you can go that way.",login_switch:"Already have an account?",optional:"optional",connected_gplus_header:"You've successfully connected with Google+!",connected_gplus_p:"Finish signing up so you can log in with your Google+ account.",connected_facebook_header:"You've successfully connected with Facebook!",connected_facebook_p:"Finish signing up so you can log in with your Facebook account.",hey_students:"Students, enter the class code from your teacher.",birthday:"Birthday",parent_email_blurb:"We know you can't wait to learn programming — we're excited too! Your parents will receive an email with further instructions on how to create an account for you. Email {{email_link}} if you have any questions.",classroom_not_found:"No classes exist with this Class Code. Check your spelling or ask your teacher for help.",activation_code_used:"The activation code has been used. Check your spelling or ask your teacher for help.",checking:"Checking...",account_exists:"This email is already in use:",sign_in:"Sign in",email_good:"Email looks good!",name_taken:"Username already taken! Try {{suggestedName}}?",name_available:"Username available!",name_is_email:"Username may not be an email",choose_type:"Choose your account type:",teacher_type_1:"Teach programming using CodeCombat!",teacher_type_2:"Set up your class",teacher_type_3:"Access Course Guides",teacher_type_4:"View student progress",signup_as_teacher:"Create Teacher Account",student_type_1:"Learn to program while playing an engaging game!",student_type_2:"Play with your class",student_type_3:"Compete in arenas",student_type_4:"Choose your hero!",student_type_5:"Have your Class Code ready!",signup_as_student:"Create Student Account",individuals_or_parents:"Individuals & Parents",individual_type:"For players learning to code outside of a class. Parents should sign up for an account here.",signup_as_individual:"Sign up as an Indiv
2idual",enter_class_code:"Enter your Class Code",enter_birthdate:"Birthday",parent_use_birthdate:"Parents, please enter your own birthday",ask_teacher_1:"Ask your teacher for your Class Code.",ask_teacher_2:"Not part of a class? Create an ",ask_teacher_3:"Individual Account",ask_teacher_4:" instead.",about_to_join:"You're about to join:",enter_parent_email:"Enter your parentâs email address:",parent_email_error:"Something went wrong when trying to send the email. Check the email address and try again.",parent_email_sent:"Weâve sent an email with further instructions on how to create an account. Ask your parent to check their inbox.",parent_email_header:"What's your parent's email?",parent_email_label:"Parent email",parent_email_excited_blurb:"We're excited for you to start coding! Your parent will get an email with instructions to create your account. Contact us at {{email_link}} with any questions.",parent_email_check_inbox:"Check your parent's inbox",parent_email_finish_blurb:"Your parent needs to open the email and finish creating your account before you can save progress.",send_to_parent:"Send to my parent",step_1_of_2:"Step 1 of 2",im_under_13:"I'm under 13",account_created:"Account Created!",confirm_student_blurb:"Write down your information so that you don't forget it. Your teacher can also help you reset your password at any time.",confirm_individual_blurb:"Write down your login information in case you need it later. Verify your email so you can recover your account if you ever forget your password - check your inbox!",confirm_individual_blurb_without_email:"Write down your login information in case you need it later.",write_this_down:"Write down your username:",start_playing:"Start Playing",sso_connected:"Successfully connected with:",select_your_starting_hero:"Select Your Starting Hero:",you_can_always_change_your_hero_later:"You can always change your hero later.",finish:"Finish",teacher_ready_to_create_class:"You're ready to create your first class!",teacher_students_can_start_now_coco:"Your students will be able to start playing the first course, Introduction to Computer Science, immediately.",teacher_students_can_start_now_ozar:"Your students will be able to start playing the first unit, Chapter 1: Up The Mountain, immediately.",teacher_list_create_class:"On the next screen you will be able to create a new class.",teacher_list_add_students:"Add students to the class by clicking the View Class link, then sending your students the Class Code or URL. You can also invite them via email if they have email addresses.",teacher_list_resource_hub_1:"Check out the",teacher_list_resource_hub_2_coco:"Course Guides",teacher_list_resource_hub_2_ozar:"Unit Guides",teacher_list_resource_hub_3:"for solutions to every level, and the",teacher_list_resource_hub_4:"Teacher Toolkit",teacher_list_resource_hub_5:"for curriculum guides, activities, and more!",teacher_additional_questions:"Thatâs it! If you need additional help or have questions, reach out to __supportEmail__.",dont_use_our_email_silly:"Don't put our email here! Put your parent's email.",want_codecombat_in_school:"Want to play CodeCombat all the time?",eu_confirmation:"I agree to allow CodeCombat to store my data on US servers.",eu_confirmation_place_of_processing:"Learn more about the possible risks",eu_confirmation_student:"If you are not sure, ask your teacher.",eu_confirmation_individual:"If you do not want us to store your data on US servers, you can always keep playing anonymously without saving your co
2de.",request_class_code:"Students, request a Class Code from your Teacher to create an Account!",educators_create_account:"Educators, create a Teacher Account to access the first unit for free!",looking_for_classroom:"Looking for classroom...",create_your_educator_account:"Create your educator account",educator_signup_list_1_title:"See what your students see:",educator_signup_list_1_desc:"Demo each game level in the first unit",educator_signup_list_2_title:"See teacher resources:",educator_signup_list_2_desc:"Access scope and sequence, lessons, and more",educator_signup_list_3_title:"See your students thrive:",educator_signup_list_3_desc:"Try the first unit with your class for free",signup_with_email:"Sign up with Email",sign_up_with:"Sign up with",already_have_account:"Already have a CodeCombat or Ozaria account",already_have_account_q:"Already have an account?",choose_account_title:"Create A Free Account",choose_account_subtitle:"Please select the option that best describes you",select_your_role:"Select your role",select_your_state:"Select your state",password_requirements:"4 to 64 characters with no repeating",invalid:"Invalid",invalid_password:"Invalid password",with:"with",want_to_play_codecombat:"No, I don't have one but want to play CodeCombat!",have_a_classcode:"Have a Class Code?",yes_i_have_classcode:"Yes, I have a Class Code!",enter_it_here:"Enter it here:",play_without_saving:"Play without saving",phone_code:"Validation SMS Code",send_phone_code:"Send SMS Code",resend_phone_code:"ReSend(__countDown__)",sign_up_or_login:"Sign Up/Login"},recover:{recover_account_title:"Recover Account",send_password:"Send Recovery Password",recovery_sent:"Recovery email sent."},items:{primary:"Primary",secondary:"Secondary",armor:"Armor",accessories:"Accessories",misc:"Misc",books:"Books"},common:{default_title_coco:"CodeCombat - Coding games to learn Python and JavaScript",default_title_ozar:"Ozaria - Computer science that captivates",ozaria:"Ozaria",default_meta_description_coco:"Learn typed code through a programming game. Learn Python, JavaScript, and HTML as you solve puzzles and learn to make your own coding games and websites.",default_meta_description_ozar:"Ozaria is a computer science program, an adventure game, and a fantasy story where students master the lost magic of coding to save their world.",back:"Back",coming_soon:"Coming soon!",continue:"Continue",next:"Next",default_code:"Default Code",loading:"Loading...",overview:"Overview",processing:"Processing...",solution:"Solution",table_of_contents:"Table of Contents",intro:"Intro",saving:"Saving...",sending:"Sending...",send:"Send",sent:"Sent",cancel:"Cancel",save:"Save",publish:"Publish",output:"Output",create:"Create",fork:"Fork",clone:"Clone",play:"Play",retry:"Retry",actions:"Actions",info:"Info",help:"Help",watch:"Watch",unwatch:"Unwatch",submit_patch:"Submit Patch",submit_changes:"Submit Changes",save_changes:"Save Changes",required_field:"required",submit:"Submit",replay:"Replay",complete:"Complete",pick_image:"Pick Image",continue_editing:"Continue Editing",logout:"Logout",empty:"Empty",done:"Done",remove:"Remove",locked:"Locked",internal_error:"Internal Error",manage:"Manage",empty_results:"Empty Results.",roblox:"Roblox",warning:"Warning"},general:{and:"and",name:"Name",date:"Date",body:"Body",version:"Version",pending:"Pending",accepted:"Accepted",rejected:"Rejected",withdrawn:"Withdrawn",accept:"Accept",accept_and_save:"Accept&Save",reject:"Reject",withdraw:"Withdraw",submitter:"Submitter",submitted:"Submitted",commit_msg:"Commit Message",version_history:"Version History",version_history_for:"Version History for: ",select_changes:"Select two changes below to see the difference.",undo_prefix:"Undo",undo_shortcut:"(Ctrl+Z)",redo_prefix:"Redo",redo_shortcut:"(Ctrl+Shift+Z)",play_preview:"Play preview of current level",result:"Result",results:"Results",description:"Description",or:"or",subject:"Subject",email:"Email",password:"Password",confirm_password:"Confirm Password",message:"Message",code:"Code",ladder:"Ladder",when:"When",opponent:"Opponent",opponent_and_team:"Opponent",rank:"Rank",score:"Score",win:"Win",loss:"Loss",tie:"Tie",easy:"Easy",medium:"Medium",hard:"Hard",player:"Player",player_rank:"Rank",warrior:"Warrior",ranger:"Ranger",wizard:"Wizard",first_name:"First Name",last_name:"Last Name",last_initial:"Last Initial",username:"Username",contact_us:"Contact Us",close_window:"Close Window",learn_more:"Learn More",more:"More",fewer:"Fewer",with:"with",archived:"Archived",chat:"Chat",chat_with_us:"Chat with us",email_us:"Send us an email",sales:"Sales",support:"Support",here:"here",from:"From",classrooms:"Classrooms"},units:{second:"second",seconds:"seconds",sec:"sec",minute:"minute",minutes:"minutes",hour:"hour",hours:"hours",day:"day",days:"days",week:"week",weeks:"weeks",month:"month",months:"months",year:"year",years:"years"},play_level:{back_to_map:"Back to Map",directions:"Directions",edit_level:"Edit Level",keep_learning:"Keep Learning",explore_codecombat:"Explore CodeCombat",finished_hoc:"I'm finished with my Hour of Code",get_certificate:"Get your certificate!",level_complete:"Level Complete",level_complete_at:"Level Completed ",completed_level:"Completed Level:",course:"Course:",done:"Done",next_level:"Next Level",combo_challenge:"Combo Challenge",concept_challenge:"Concept Challenge",challenge:"Challenge",challenge_unlocked:"Challenge Unlocked",combo_challenge_unlocked:"Combo Challenge Unlocked",concept_challenge_unlocked:"Concept Challenge Unlocked",concept_challenge_complete:"Concept Challenge Complete!",combo_challenge_complete:"Combo Challenge Complete!",combo_challenge_complete_body:"Great job, it looks like you're well on your way to understanding __concept__!",replay_level:"Replay Level",combo_concepts_used:"__complete__/__total__ Concepts Used",combo_all_concepts_used:"You used all concepts possible to solve the challenge. Great job!",combo_not_all_concepts_used:"You used __complete__ out of the __total__ concepts possible to solve the challenge. Try to get all __total__ concepts next time!",start_challenge:"Start Challenge",next_game:"Next game",languages:"Languages",programming_language:"Programming language",show_menu:"Show game menu",home:"Home",level:"Level",ski
2p:"Skip",game_menu:"Game Menu",restart:"Restart",goals:"Goals",goal:"Goal",challenge_level_goals:"Challenge Level Goals",challenge_level_goal:"Challenge Level Goal",concept_challenge_goals:"Concept Challenge Goals",combo_challenge_goals:"Challenge Level Goals",concept_challenge_goal:"Concept Challenge Goal",combo_challenge_goal:"Challenge Level Goal",running:"Running...",success:"Success!",incomplete:"Incomplete",timed_out:"Ran out of time",failing:"Failing",reload:"Reload",reload_title:"Reload All Code?",reload_really:"Are you sure you want to reload this level back to the beginning?",reload_confirm:"Reload All",restart_really:"Are you sure you want to restart the level? You'll lose all the code you've written.",restart_confirm:"Yes, Restart",test_level:"Test Level",victory:"Victory",victory_title_prefix:"",victory_title_suffix:" Complete",victory_sign_up:"Sign Up to Save Progress",victory_sign_up_poke:"Want to save your code? Create a free account!",victory_rate_the_level:"How fun was this level?",victory_return_to_ladder:"Return to Ladder",victory_saving_progress:"Saving Progress",victory_go_home:"Go Home",victory_review:"Tell us more!",victory_review_placeholder:"How was the level?",victory_hour_of_code_done:"Are You Done?",victory_hour_of_code_done_yes:"Yes, I'm finished with my Hour of Codeâ¢!",victory_experience_gained:"XP Gained",victory_gems_gained:"Gems Gained",victory_new_item:"New Item",victory_new_hero:"New Hero",victory_viking_code_school:"Holy smokes, that was a hard level you just beat! If you aren't already a software developer, you should be. You just got fast-tracked for acceptance with Viking Code School, where you can take your skills to the next level and become a professional web developer in 14 weeks.",victory_become_a_viking:"Become a Viking",victory_no_progress_for_teachers:"Progress is not saved for teachers. But, you can add a student account to your classroom for yourself.",tome_cast_button_run:"Run",tome_cast_button_running:"Running",tome_cast_button_ran:"Ran",tome_cast_button_update:"Update",tome_submit_button:"Submit",tome_reload_method:"Reload original code to restart the level",tome_available_spells:"Available Spells",tome_your_skills:"Your Skills",blocks:"Blocks",hints:"Hints",docs:"Docs",videos:"Videos",hints_title:"Hint {{number}}",code_saved:"Code Saved",chat_placeholder:"Need coding help? Chat with the AI. (experimental!)",chat_fix_show:"Show Me",chat_fix_hide:"Hide",chat_fix_show_code:"Show Code",chat_fix_hide_co
2de:"Hide Code",apply_code:"Apply =>",skip_tutorial:"Skip (esc)",keyboard_shortcuts:"Key Shortcuts",loading_start:"Start Level",loading_start_combo:"Start Combo Challenge",loading_start_concept:"Start Concept Challenge",problem_alert_title:"Fix Your Code",problem_alert_need_help:"Need help?",problem_alert_ask_the_ai:"Ask the AI",ask_ai:"Ask AI",ask_ai_placeholder:"Enter your request here...",problem_alert_need_hint:"Need a hint? You can ask the AI for help.",time_current:"Now:",time_total:"Max:",time_goto:"Go to:",non_user_code_problem_title:"Unable to Load Level",infinite_loop_title:"Infinite Loop Detected",infinite_loop_description:"The initial code to build the world never finished running. It's probably either really slow or has an infinite loop. Or there might be a bug. You can either try running this code again or reset the code to the default state. If that doesn't fix it, please let us know.",non_user_code_problem_description:"The initial code to build the world never finished running because of an error: <pre>__error__</pre>You can either try running this code again or reset the code to the default state. If that doesn't fix it, please let us know.",check_dev_console:"You can also open the developer console to see what might be going wrong.",check_dev_console_link:"(instructions)",infinite_loop_try_again:"Try Again",infinite_loop_reset_level:"Reset Level",infinite_loop_comment_out:"Comment Out My Code",tip_toggle_play:"Toggle play/paused with Ctrl+P.",tip_scrub_shortcut:"Use Ctrl+[ and Ctrl+] to rewind and fast-forward.",tip_guide_exists:"Click the guide, inside game menu (at the top of the page), for useful info.",tip_open_source:"CodeCombat is part of the open source community!",tip_tell_friends:"Enjoying CodeCombat? Tell your friends about us!",tip_beta_launch:"CodeCombat launched its beta in October, 2013.",tip_think_solution:"Think of the solution, not the problem.",tip_theory_practice:"In theory, there is no difference between theory and practice. But in practice, there is. - Yogi Berra",tip_error_free:"There are two ways to write error-free programs; only the third one works. - Alan Perlis",tip_debugging_program:"If debugging is the process of removing bugs, then programming must be the process of putting them in. - Edsger W. Dijkstra",tip_forums:"Head over to the forums and tell us what you think!",tip_baby_coders:"In the future, even babies will be Archmages.",tip_morale_improves:"Loading will continue until morale improves.",tip_all_species:"We believe in equal opportunities to learn programming for all species.",tip_reticulating:"Reticulating spines.",tip_harry:"Yer a Wizard, ",tip_great_responsibility:"With great coding skill comes great debug responsibility.",tip_munchkin:"If you don't eat your vegetables, a munchkin will come after you while you're asleep.",tip_binary:"There are only 10 types of people in the world: those who understand binary, and those who don't.",tip_commitment_yoda:"A programmer must have the deepest commitment, the most serious mind. ~ Yoda",tip_no_try:"Do. Or do not. There is no try. - Yoda",tip_patience:"Patience you must have, young Padawan. - Yoda",tip_documented_bug:"A documented bug is not a bug; it is a feature.",tip_impossible:"It always seems impossible until it's done. - Nelson Mandela",tip_talk_is_cheap:"Talk is cheap. Show me the code. - Linus Torvalds",tip_first_language:"The most disastrous thing that you can ever learn is your first programming language. - Alan Kay",tip_hardware_problem:"Q: How many programmers does it take to change a light bulb? A: None, it's a hardware problem.",tip_hofstadters_law:"Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.",tip_premature_optimization:"Premature optimization is the root of all evil. - Donald Knuth",tip_brute_force:"When in doubt, use brute force. - Ken Thompson",tip_extrapolation:"There are only two kinds of people: those that can extrapolate from incomplete data...",tip_superpower:"Coding is the closest thing we have to a superpower.",tip_control_destiny:"In real open source, you have the right to control your own destiny. - Linus Torvalds",tip_no_code:"No code is faster than no code.",tip_code_never_lies:"Co
2de never lies, comments sometimes do. â Ron Jeffries",tip_reusable_software:"Before software can be reusable it first has to be usable.",tip_optimization_operator:"Every language has an optimization operator. In most languages that operator is â//â",tip_lines_of_code:"Measuring programming progress by lines of code is like measuring aircraft building progress by weight. â Bill Gates",tip_source_code:"I want to change the world but they would not give me the source code.",tip_javascript_java:"Java is to JavaScript what Car is to Carpet. - Chris Heilmann",tip_move_forward:"Whatever you do, keep moving forward. - Martin Luther King Jr.",tip_google:"Have a problem you can't solve? Google it!",tip_adding_evil:"Adding a pinch of evil.",tip_hate_computers:"That's the thing about people who think they hate computers. What they really hate is lousy programmers. - Larry Niven",tip_open_source_contribute:"You can help CodeCombat improve!",tip_recurse:"To iterate is human, to recurse divine. - L. Peter Deutsch",tip_free_your_mind:"You have to let it all go, Neo. Fear, doubt, and disbelief. Free your mind. - Morpheus",tip_strong_opponents:"Even the strongest of opponents always has a weakness. - Itachi Uchiha",tip_paper_and_pen:"Before you start coding, you can always plan with a sheet of paper and a pen.",tip_solve_then_write:"First, solve the problem. Then, write the code. - John Johnson",tip_compiler_ignores_comments:"Sometimes I think that the compiler ignores my comments.",tip_understand_recursion:"The only way to understand recursion is to understand recursion.",tip_life_and_polymorphism:"Open Source is like a totally polymorphic heterogeneous structure: All types are welcome.",tip_mistakes_proof_of_trying:"Mistakes in your code are just proof that you are trying.",tip_adding_orgres:"Rounding up ogres.",tip_sharpening_swords:"Sharpening the swords.",tip_ratatouille:"You must not let anyone define your limits because of where you come from. Your only limit is your soul. - Gusteau, Ratatouille",tip_nemo:"When life gets you down, want to know what you've gotta do? Just keep swimming, just keep swimming. - Dory, Finding Nemo",tip_internet_weather:"Just move to the internet, it's great here. We get to live inside where the weather is always awesome. - John Green",tip_nerds:"Nerds are allowed to love stuff, like jump-up-and-down-in-the-chair-can't-control-yourself love it. - John Green",tip_self_taught:"I taught myself 90% of what I've learned. And that's normal! - Hank Green",tip_luna_lovegood:"Don't worry, you're just as sane as I am. - Luna Lovegood",tip_good_idea:"The best way to have a good idea is to have a lot of ideas. - Linus Pauling",tip_programming_not_about_computers:"Computer Science is no more about computers than astronomy is about telescopes. - Edsger Dijkstra",tip_mulan:"Believe you can, then you will. - Mulan",project_complete:"Project Complete!",share_this_project:"Share this project with friends or family:",ready_to_share:"Ready to publish your project?",click_publish:'Click "Publish" to make it appear in the class gallery, then check out what your classmates built! You can come back and continue to work on this project. Any further changes will automatically be saved and shared with your classmates.',already_published_prefix:"Your changes have been published to the class gallery.",already_published_suffix:"Keep experimenting and making this project even better, or see what the rest of your class has built! Your changes will automatically be saved and shared with your classmates.",view_gallery:"View Gallery",project_published_noty:"Your level has been published!",keep_editing:"Keep Editing",learn_new_concepts:"Learn new concepts",watch_a_video:"Watch a video on __concept_name__",concept_unlocked:"Concept Unlocked",use_at_least_one_concept:"Use at least one concept: ",command_bank:"Code Bank",learning_goals:"Learning Goals",start:"Start",vega_character:"Vega Character",capella_character:"Capella Character",octans_character:"Octans Character",click_to_continue:"Click to Continue",fill_in_solution:"Fill in solution",toggle_solution:"Toggle solution",play_as_humans:"Play As Red",play_as_ogres:"Play As Blue",changed:"Last edited ",team_humans:"Red",team_ogres:"Blue",watch_game:"Spectate",block_go:"go",block_up:"up",block_down:"down",block_left:"left",block_right:"right",share_your_project:"Share Your Project",keep_editing_your_project:"You can always keep editing your project, even after sharing it.",copy_url:"Copy URL",level_status:"Status",level_status_locked:"Locked",level_status_in_progress:"In Progress",level_status_skipped:"Skipped",level_status_complete:"Complete",level_status_unlocked:"Unlocked",level_status_optional:"Optional",level_type_practice:"Practice",level_type_challenge:"Challenge",level_type_level:"Level",level_type_cutscene:"Cutscene",level_type_capstone:"Capstone",level_type_intro:"Intro",level_type_practice_level:"Practice Level",level_type_challenge_level:"Challenge Level",level_type_cutscene_level:"Cutscene Level",level_type_capstone_level:"Capstone Level",level_type_capstone_project:"Capstone Project",level_type_intro_level:"Intro Level",content_type_avatar:"Avatar Selection",content_type_cinematic:"Cinematic",content_type_interactive:"Concept Check",content_type_arena:"Arena",feedback:"Feedback",ask_teacher_for_help:"Ask your teacher for help",ask_teacher_for_help_offline:"Your Teacher is currently offline",not_enough_credits_bot:"Oops! Looks like you donât have enough queries. Subscribe now and get the queries you want for the AI-powered support you need!",not_enough_credits_interval:"No credits left for the __interval__. Consumed __amount__ credits.",not_enough_credits_interval_multiple:"No credits left for __duration__ __interval__. Consumed __amount__ credits.",credits_zero:"Out of credits.",credits_zero_until_day:"Out of credits until tomorrow.",credits_zero_until_week:"Out of credits until next week.",credits_zero_until_month:"Out of credits until next month.",create_account_to_get_credits:"Create an account to get free credits for using the AI-powered support!",ask_teacher_for_credits:"Ask your teacher for an AI Hackstack license.",get_credits:"Get Credits",get_ai_hs_license:"Get AI Hackstack License",use:"Create",learn_to_use:"Learn",navigate_to_previous_page:"Navigate to the previous page",navigate_to_next_page:"Navigate to the next page",restart_capstone_stage:"Do you want to restart capstone stage progress to 1?"},apis:{methods:"Methods",events:"Events",handlers:"Handlers",properties:"Properties",snippets:"Snippets",spawnable:"Spawnable",html:"HTML",math:"Math",array:"Array",object:"Object",string:"String",function:"Function",vector:"Vector",date:"Date",jquery:"jQuery",json:"JSON",number:"Number",webjavascript:"JavaScript"},amazon_hoc:{title:"Keep Learning with Amazon!",congrats:"Congratulations on conquering that challenging Hour of Code!",educate_1:"Now, keep learning about coding and cloud computing with AWS Educate, an exciting, free program from Amazon for both students and teachers. With AWS Educate, you can earn cool badges as you learn about the basics of the cloud and cutting-edge technologies such as gaming, virtual reality, and Alexa.",educate_2:"Learn more and sign up here",future_eng_1:"You can also try to build your own school facts skill for Alexa",future_eng_2:"here",future_eng_3:"(device is not required). This Alexa activity is brought to you by the",future_eng_4:"Amazon Future Engineer",future_eng_5:"program which creates learning and work opportunities for all K-12 students in the United States who wish to pursue computer science."},play_game_dev_level:{created_by:"Created by {{name}}",created_during_hoc:"Created during Hour of Code",restart:"Restart Level",play:"Play Level",play_more_codecombat:"Play More CodeCombat",learn_about_ozaria:"Learn About Ozaria",default_student_instructions:"Click to control your hero and win your game!",goal_survive:"Survive.",goal_survive_time:"Survive for __seconds__ seconds.",goal_defeat:"Defeat all enemies.",goal_defeat_amount:"Defeat __amount__ enemies.",goal_move:"Move to all the red X marks.",goal_collect:"Collect all the items.",goal_collect_amount:"Collect __amount__ items."},game_menu:{inventory_tab:"Inventory",save_load_tab:"Save/Load",options_tab:"Options",my_code_tab:"My Code",guide_tab:"Guide",guide_video_tutorial:"Video Tutorial",guide_tips:"Tips",multiplayer_tab:"Multiplayer",auth_tab:"Sign Up",inventory_caption:"Equip your hero",choose_hero_caption:"Choose hero, language",change_langugae_caption:"Choose language",change_language_tab:"Code Format",options_caption:"Configure settings",my_code_caption:"Quick Code Actions",guide_caption:"Docs and tips",multiplayer_caption:"Play with friends!",auth_caption:"Save your progress."},leaderboard:{view_other_solutions:"View Leaderboards",scores:"Scores",top_players:"Top Players by",day:"Today",week:"This Week",all:"All-Time",latest:"Latest",time:"Win Time",damage_taken:"Damage Taken",damage_dealt:"Damage Dealt",difficulty:"Difficulty",gold_collected:"Gold Collected",survival_time:"Survived",defeated:"Enemies Defeated",code_length:"Lines of Code",score_display:"__scoreType__: __score__"},inventory:{equipped_item:"Equipped",required_purchase_title:"Required",available_item:"Available",restricted_title:"Restricted",should_equip:"(double-click to equip)",equipped:"(equipped)",locked:"(locked)",restricted:"(restricted in this level)",equip:"Equip",unequip:"Unequip",warrior_only:"Warrior Only",ranger_only:"Ranger Only",wizard_only:"Wizard Only"},buy_gems:{few_gems:"A few gems",pile_gems:"Pile of gems",chest_gems:"Chest of gems",purchasing:"Purchasing...",declined:"Your card was declined",retrying:"Server error, retrying.",prompt_title:"Not Enough Gems",prompt_body:"Do you want to get more?",prompt_button:"Enter Shop",recovered:"Previous gems purchase recovered. Please refresh the page.",price:"x{{gems}} / mo",buy_premium:"Buy Premium",purchase:"Purchase",purchased:"Purchased"},subscribe_for_gems:{prompt_title:"Not Enough Gems!",prompt_body:"Subscribe to Premium to get gems and access to even more levels!"},earn_gems:{prompt_title:"Not Enough Gems",prompt_body:"Keep playing to earn more!"},subscribe:{best_deal:"Best Deal!",confirmation:"Congratulations! You now have a CodeCombat Premium Subscription!",premium_already_subscribed:"You're already subscribed to Premium!",subscribe_modal_title:"CodeCombat Premium",comparison_blurb
2:"Become a Master Coder - subscribe to <b>Premium</b> today!",must_be_logged:"You must be logged in first. Please create an account or log in from the menu above.",subscribe_title:"Subscribe",unsubscribe:"Unsubscribe",confirm_unsubscribe:"Confirm Unsubscribe",never_mind:"Never Mind, I Still Love You",thank_you_months_prefix:"Thank you for supporting us these last",thank_you_months_suffix:"months.",thank_you:"Thank you for supporting CodeCombat.",sorry_to_see_you_go:"Sorry to see you go! Please let us know what we could have done better.",unsubscribe_feedback_placeholder:"O, what have we done?",stripe_description:"Monthly Subscription",stripe_yearly_description:"Annual Subscription",buy_now:"Buy Now",subscription_required_to_play:"You'll need a subscription to play this level.",unlock_help_videos:"Subscribe to unlock all video tutorials.",personal_sub:"Personal Subscription",loading_info:"Loading subscription information...",managed_by:"Managed by",will_be_cancelled:"Will be cancelled on",currently_free:"You currently have a free subscription",currently_free_until:"You currently have a subscription until __date__",free_subscription:"Free subscription",was_free_until:"You had a free subscription until",managed_subs:"Managed Subscriptions",subscribing:"Subscribing...",current_recipients:"Current Recipients",unsubscribing:"Unsubscribing",subscribe_prepaid:"Click Subscribe to use prepaid code",using_prepaid:"Using prepaid code for monthly subscription",subscribe_to_premium:"Subscribe to Premium",feature_level_access:"Play 600+ levels",feature_heroes:"Unlock exclusive heroes and pets",feature_learn:"Create games and websites",feature_languages:"Get all supported languages",feature_level_chat:"AI Level Chat",feature_aiyouth:"",feature_gems:"Earn __gems__ gems/mo (__gems12__ gems/yr)",feature_all_products:"4-in-1: CodeCombat Home, CodeCombat Junior, CodeCombat Worlds on Roblox, and CodeCombat AI HackStack",feature_products:"Access CodeCombat Junior, CodeCombat & AI HackStack",month_price:"$__price__/mo",season_price:"__price__ RMB/3mo",month_price_without_currency:"__price__/mo",first_month_price:"Only $__price__ for your first month!",lifetime:"Lifetime Access",lifetime_price:"$__price__",season_subscription:"Seasonly Subscription",year_subscription:"Annual Subscription",year_price:"$__price__/yr",year_price_without_currency:"__price__/yr",support_part1:"Need help with payment or prefer PayPal? Email",support_part2:"[email protected]",go_prepaid:"Click here after scaning the code and purchasing",forever:"Forever",subscription_status:"Your Subscription Status",currently_not_free:"You don't have a Subscription yet.",online_classes:"Online Classes",feature_ai_level_bot:"Accelerate learning with AI-powered support",sure_buy_as_parent:"Are you sure you want premium access for yourself instead of your child?",monthly_inspire:"only $3.3 everyday",seasonly_inspire:"only one meal",yearly_inspire:"17% discount",having_activation_code:'Having an activation Code for Premium? <a href="/account/prepaid">Activate the code here</a>'},announcement:{now_available:"Now available for subscribers!",subscriber:"subscriber",cuddly_companions:"Cuddly Companions!",kindling_name:"Kindling Elemental",kindling_description:"Kindling Elementals just want to keep you warm at night. And during the day. All the time, really.",griffin_name:"Baby Griffin",griffin_description:"Griffins are half eagle, half lion, all adorable.",raven_name:"Raven",raven_description:"Ravens are excellent at gathering shiny bottles full of health for you.",mimic_name:"Mimic",mimic_description:"Mimics can pick up coins for you. Move them on top of coins to increase your gold supply.",cougar_name:"Cougar",cougar_description:"Cougars like to earn a PhD by Purring Happily Daily.",fox_name:"Blue Fox",fox_description:"Blue foxes are very clever and love digging in the dirt and snow!",pugicorn_name:"Pugicorn",pugicorn_description:"Pugicorns are some of the rarest creatures and can cast spells!",wolf_name:"Wolf Pup",wolf_description:"Wolf pups excel in hunting, gathering, and playing a mean game of hide-and-seek!",ball_name:"Red Squeaky Ball",ball_description:"ball.squeak()",collect_pets:"Collect pets for your heroes!",each_pet:"Each pet has a unique helper ability!",upgrade_to_premium:"Become a {{subscriber}} to equip pets.",play_second_kithmaze:"Play {{the_second_kithmaze}} to unlock the Wolf Pup!",the_second_kithmaze:"The Second Kithmaze",keep_playing:"Keep playing to discover the first pet!",coming_soon:"Coming soon",ritic:"Ritic the Cold",ritic_description:"Ritic the Cold. Trapped in Kelvintaph Glacier for countless ages, finally free and ready to tend to the ogres that imprisoned him.",ice_block:"A block of ice",ice_description:"There appears to be something trapped inside...",blink_name:"Blink",blink_description:"Ritic disappears and reappears in a blink of an eye, leaving nothing but a shadow.",shadowStep_name:"Shadowstep",shadowStep_description:"A master assassin knows how to walk between the shadows.",tornado_name:"Tornado",tornado_description:"It is good to have a reset button when one's cover is blown.",wallOfDarkness_name:"Wall of Darkness",wallOfDarkness_description:"Hide behind a wall of shadows to prevent the gaze of prying eyes.",notifications:"Notifications",x_announcement:"__x__ Notification",x_announcements:"__x__ Notifications",x_announcement_with_unread:"__x__ Notification (__y__ unread)",x_announcements_with_unread:"__x__ Notifications (__y__ unread)",see_more:"See __unread__ more unread Notifications",mark_read:"Mark Read",read_all:"Read All",more_announcements:"more notifications..."},avatar_selection:{pick_an_avatar:"Pick an avatar that will represent you as a player",select_avatar_title:"Cho
2ose Player Avatar"},premium_features:{get_premium:"Get<br>CodeCombat<br>Premium",master_coder:"Become a Master Coder by subscribing today!",paypal_redirect:"You will be redirected to PayPal to complete the subscription process.",subscribe_now:"Subscribe Now",hero_blurb_1:'Get access to __premiumHeroesCount__ super-charged subscriber-only heroes! Harness the unstoppable power of Okar Stompfoot, the deadly precision of Naria of the Leaf, or summon "adorable" skeletons with Nalfar Cryptor.',hero_blurb_2:"Premium Warriors unlock stunning martial skills like Warcry, Stomp, and Hurl Enemy. Or, play as a Ranger, using stealth and bows, throwing knives, traps! Try your skill as a true coding Wizard, and unleash a powerful array of Primordial, Necromantic or Elemental magic!",hero_caption:"Exciting new heroes!",pet_blurb_1:"Pets aren't just adorable companions, they also provide unique functionality and methods. The Baby Griffin can carry units through the air, the Wolf Pup plays catch with enemy arrows, the Cougar is fond of chasing ogres around, and the Mimic attracts coins like a magnet!",pet_blurb_2:"Collect all the pets to discover their unique abilities!",pet_caption:"Adopt pets to accompany your hero!",game_dev_blurb:"Learn game scripting and build new levels to share with your friends! Place the items you want, write code for unit logic and behavior, and see if your friends can beat the level!",game_dev_caption:"Design your own games to challenge your friends!",everything_in_premium:"Everything you get in CodeCombat Premium:",list_gems:"Receive bonus gems to buy gear, pets, and heroes",list_levels:"Gain access to __premiumLevelsCount__ more levels",list_heroes:"Unlock exclusive heroes, include Ranger and Wizard classes",list_game_dev:"Make and share games with friends",list_web_dev:"Build websites and interactive apps",list_items:"Equip Premium-only items like pets",list_support:"Get Premium support to help you debug tricky code",list_clans:"Create private clans to invite your friends and compete on a group leaderboard",ai_bot_learning:"AI-powered support to accelerate learning outcomes!",ai_bot_description:"CodeCombatâs AI-powered hints feature can evaluate code, point out errors, and explain how to fix them. Most importantly, it provides all the context needed to understand the why, without providing the entire solution. With only current code problem assistance available young learners will still need to work through each level's coding challenge. Premium subscribers receive an allocation of <b>10 AI hints per day</b> to ensure they always have the support they need.",list_ai_bot:"Premium subscribers receive an allocation of 10 AI hints per day",ai_bot_notice:"* AI hints rates are subject to change."},choose_hero:{choose_hero:"Choose Your Hero",choose_junior_hero:"Choose Your Young Hero",sign_up_to_unlock:"Sign Up to Unlock!",sign_up_pet_blurb:"Create a free account to play as this pet!",pet_subscribe_blurb:"Subscribe today to unlock this pet right away!",programming_language:"Programming Language",programming_language_description:"Which programming language do you want to use?",default:"Default",experimental:"Experimental",subscriber_only:"(Subscriber Only)",python_blurb:"Simple yet powerful, great for beginners and experts.",javascript_blurb:"The language of the web. (Not the same as Java.)",coffeescript_blurb:"Nicer JavaScript syntax.",lua_blurb:"Game scripting language.",java_blurb:"Android and enterprise.",cpp_blurb:"Game development and high performance computing.",code_format:"Code Format",text_code:"Text code",blocks_and_code:"Blocks and code",blocks_text:"Blocks",blocks_icons:"Blocks (Icons)",blocks_icons_helptext:"Junior only",text_code_blurb:"Type text-based code in a real code editor",blocks_and_code_blurb:"Blocks and text code side-by-side",blocks_text_blurb:"Drag and drop blocks for tablets or younger learners",blocks_icons_blurb:"Icon-based blocks for phones or pre-readers",status:"Status",weapons:"Weapons",weapons_warrior:"Swords - Short Range, No Magic",weapons_ranger:"Crossbows, Guns - Long Range, No Magic",weapons_wizard:"Wands, Staffs - Long Range, Magic",attack:"Damage",health:"Health",speed:"Speed",regeneration:"Regen",range:"Range",blocks:"Blocks",backstab:"Backstab",skills:"Skills",attack_1:"Deals",attack_2:"of listed",attack_3:"weapon damage.",health_1:"Gains",health_2:"of listed",health_3:"armor health.",speed_1:"Moves at",speed_2:"meters per second.",available_for_purchase:"Available for Purchase",level_to_unlock:"Level to unlock:",restricted_to_certain_heroes:"Only certain heroes can play this level.",code_format_not_supported:"Not Supported",code_format_only_junior:"Only Supported in CodeCombat Junior",code_format_in_mobile:"Only Supported in Big Screen(Pad, laptop, PC...)",code_format_disable_by_teacher:"Disabled by Teacher",code_language_subscriber_only:"Subscriber Only",code_language_not_support_by_blocks:"Not Supported with Blocks",code_language_not_support_in_classroom:"Not support in Classroom"},char_customization_modal:{heading:"Customize Your Hero",body:"Body",name_label:"Hero's Name",hair_label:"Hair Color",skin_label:"Skin Color"},skill_docs:{function:"function",method:"method",snippet:"snippet",number:"number",array:"array",object:"object",string:"string",writable:"writable",read_only:"read-only",action:"Action",spell:"Spell",action_name:"name",action_cooldown:"Takes",action_specific_cooldown:"Cooldown",action_damage:"Damage",action_range:"Range",action_radius:"Radius",action_duration:"Duration",example:"Example",ex:"ex",current_value:"Current Value",default_value:"Default value",parameters:"Parameters",required_parameters:"Required Parameters",optional_parameters:"Optional Parameters",returns:"Returns",granted_by:"Granted by",still_und
2ocumented:"Still undocumented, sorry.",description_coming_soon:"Description coming soon"},save_load:{granularity_saved_games:"Saved",granularity_change_history:"History"},options:{general_options:"General Options",volume_label:"Volume",music_label:"Music",music_description:"Turn background music on/off.",editor_config_title_coco:"Editor Configuration",editor_config_title_ozar:"Level Options:",editor_config_livecompletion_label:"Enable Autocomplete",editor_config_livecompletion_description:"Displays autocomplete suggestions while typing.",editor_config_invisibles_label:"Show Invisibles",editor_config_invisibles_description:"Displays invisibles such as spaces or tabs.",editor_config_indentguides_label:"Show Indent Guides",editor_config_indentguides_description:"Displays vertical lines to see indentation better.",editor_config_behaviors_label:"Enable Smart Behaviors",editor_config_behaviors_description:"Autocompletes brackets, braces, and quotes.",editor_config_wide_editor_label:"Enable Wide Editor",editor_config_wide_editor_description:"Increase the width of editor like old style",editor_config_screen_reader_mode_label:"Enable Screen Reader Mode",editor_config_screen_reader_mode_label_disable:"Disable Screen Reader Mode",editor_config_screen_reader_mode_description:"Display levels in text rather than visually.",editor_config_livecompletion_disabled_by_teacher:"Your teacher has disabled your autocomplete."},about:{title:"About CodeCombat - Engaging Students, Empowering Teachers, Inspiring Creation",meta_description:"Our mission is to level computer science through game-based learning and make coding accessible to every learner. We believe programming is magic and want learners to be empowered to to create things from pure imagination.",learn_more:"Learn More",main_title:"If you want to learn to program, you need to write (a lot of) code.",main_description:"Our job is to make sure you're doing that with a smile on your face.",mission_link:"Mission",team_link:"Team",story_link:"Story",press_link:"Press",mission_title:"Our mission: make computer science accessible to every student on Earth.",mission_description_1:"<strong>Programming is magic</strong>. It's the ability to create things from pure imagination. We started CodeCombat to give learners the feeling of wizardly power at their fingertips by using <strong>typed code</strong>.",mission_description_2:"As it turns out, that enables them to learn faster too. WAY faster. It's like having a conversation instead of reading a manual. We want to bring that conversation to every school and to <strong>every student</strong>, because everyone should have the chance to learn the magic of programming.",team_title:"Meet the CodeCombat team",team_values:"We value open and respectful dialogue, where the best idea wins. Our decisions are grounded in customer research and our process is focused on delivering tangible results for them. Everyone is hands-on, from our CEO to our GitHub contributors, because we value growth and learning in our team.",nick_title:"Cofounder, CEO",csr_title:"Customer Success Representative",csm_title:"Customer Success Manager",scsm_title:"Senior Customer Success Manager",ae_title:"Account Executive",sae_title:"Senior Account Executive",sgd_title:"Senior Game Developer",gd_title:"Game Developer",dois_title:"Director of Inside Sales",ism_title:"Inside Sales Manager",sism_title:"Senior Inside Sales Manager",shan_title:"Inside Sales, Europe",run_title:"Head of Operations, CodeCombat Greater China",lance_title:"Head of Technology, CodeCombat Greater China",zhiran_title:"Head of Curriculum, CodeCombat Greater China",yuqiang_title:"Head of Innovation, CodeCombat Greater China",swe_title:"Software Engineer",sswe_title:"Senior Software Engineer",css_title:"Customer Support Specialist",am_cs_title:"Associate Manager, Customer Success",css_qa_title:"Customer Support / QA Specialist",maya_title:"Senior Curriculum Developer",bill_title:"General Manager, CodeCombat Greater China",pvd_title:"Product and Visual Designer",spvd_title:"Senior Product and Visual Designer",daniela_title:"Marketing Manager",mm_title:"Marketing Manager",bobby_title:"Senior Game Designer",brian_title:"Senior Game Design Manager",stephanie_title:"Customer Support Specialist",sdr_title:"Sales Development Representative",bd_pr_title:"Business Development and Partnerships Representative",retrostyle_title:"Illustration",retrostyle_blurb:"RetroStyle Games",community_title:"...and our open-source community",lgd_title:"Lead Game Designer",oa_title:"Operations Associate",ac_title:"Administrative Coordinator",sac_title:"Senior Administrative Coordinator",oss_title:"Operations Support Specialist",ea_title:"Executive Assistant",om_title:"Operations Manager",som_title:"Senior Operations Manager",sales_om_title:"Sales Operations Manager",pe_title:"Principal Engineer",mo_title:"Manager, Operations",smo_title:"Senior Manager, Operations",do_title:"Director of Operations",vp_o_title:"VP, Operations",scd_title:"Senior Curriculum Developer",lcd_title:"Lead Curriculum Developer",cd_title:"Curriculum Developer",sem_title:"Senior Education Manager",de_title:"Director of Education",vpm_title:"VP, Marketing",vps_title:"VP, Sales",vpsm_title:"VP, Sales and Marketing",oi_title:"Online Instructor",m_oi_title:"Manager, Online Instruction",aoim_title:"Associate Online Instructor Manager",bdm_title:"Business Development Manager",community_subt
2itle:"Over 600 contributors have helped build CodeCombat, with more joining every week!",community_description_3:"CodeCombat is a",community_description_link_2:"community project",community_description_1:"with hundreds of players volunteering to create levels, contribute to our code to add features, fix bugs, playtest, and even translate the game into 50 languages so far. Employees, contributors and the site gain by sharing ideas and pooling effort, as does the open source community in general. The site is built on numerous open source projects, and we are open sourced to give back to the community and provide code-curious players a familiar project to explore and experiment with. Anyone can join the CodeCombat community! Check out our",community_description_link:"contribute page",community_description_2:"for more info.",number_contributors:"Over 650 contributors have lent their support and time to this project.",story_title:"Our story so far",story_subtitle:"Since 2013, CodeCombat has grown from a mere set of sketches to a living, thriving game.",story_statistic_1a:"20,000,000+",story_statistic_1b:"total players",story_statistic_1c:"have started their programming journey through CodeCombat and Ozaria",story_statistic_2a:"Weâve been translated into over 50 languages â our players hail from",story_statistic_2b:"190+ countries",story_statistic_3a:"Together, they have written",story_statistic_3b:"1 billion lines of code and counting",story_statistic_3c:"across many different programming languages",story_long_way_1:"Though we've come a long way...",story_sketch_caption:"Our very first sketch depicting a programming game in action.",story_long_way_2:"we still have much to do before we complete our quest, so...",jobs_title:"Come join us and bring computer science to the world!",jobs_subtitle:'Don\'t see a good fit but interested in keeping in touch? See our "Create Your Own" listing.',jobs_benefits:"Employee Benefits",jobs_benefit_4:"Flexible hours, unlimited vacation",jobs_benefit_5:"$1000/yr professional development and continuing education support",jobs_benefit_6:"Medical (gold), dental, vision, 401K",jobs_benefit_7:"",jobs_benefit_9:"10-year option exercise window",jobs_benefit_10:"Maternity leave: 12 weeks paid, next 6 @ 55% salary",jobs_benefit_11:"12 weeks paid parental leave",jobs_benefit_12:"$50/mo internet & biz services benefit",jobs_benefit_14:"100% distributed team",jobs_custom_title:"Create Your Own",jobs_custom_description:"Are you passionate about CodeCombat but don't see a job listed that matches your qualifications? Write us and show how you think you can contribute to our team. We'd love to hear from you!",jobs_custom_contact_1:"Send us a note at",jobs_custom_contact_2:"introducing yourself and we might get in touch in the future!",contact_title:"Press & Contact",contact_subtitle:"Need more information? Get in touch with us at",press_subtitle:"or visit our press site at",screenshots_title:"Game Screenshots",screenshots_hint:"(click to view full size)",downloads_title:"Download Assets & Information",about_codecombat:"About CodeCombat",logo:"Logo",screenshots:"Screenshots",character_art:"Character Art",download_all:"Download All",previous:"Previous",location_title:"We're located in downtown SF:",ceo:"CEO",coo:"COO",game_director:"Game Director",eng_team_lead:"Engineering Team Lead"},teachers:{licenses_needed:"Licenses needed",google_classroom_disabled_text:"To link Google Classroom, login using Google SSO",select_class:"Select class",programming_language:"Programming Language",programming_language_edit_desc:"Language cannot be changed once students join a class. We recommend creating a new class for the same students.",programming_language_edit_desc_new:"If you change the programming language, your students' progress in the old language will be hidden, and they will have to start over in the new language. We recommend creating a new class for the same students.",add_a_class:"Add a new class",select_desired_lang:"Select desired language for your class",elementary:"Elementary",middle:"Middle",high_school:"High School",class_name:"Class Name",grades:"Grades",select_all_that_apply:"Select all that apply",class_info_modal_sub_title:"Invite students to join your class by sending them:",class_url:"Class Url",class_url_desc:"Share URL to have students join your class after signing up",class_code:"Class Code",class_code_desc:"Students can enter this code when they sign up at",invite_by_email:"Invite by Email",regenerate_class_code:"Regenerate",invite_modal_sub_title:"Separate each email address by a line break or commas",no_new_students_imported:"No new students imported",error_in_
2importing_classrooms:"Error in importing classrooms",error_in_importing_students:"Error in importing students",classroom_items_description:"Whether students should earn gems and equip items during gameplay.",classroom_live_completion:"Whether to enable coding autocomplete in this classroom. Disabled: turns autocomplete off for all levels. Enabled: allows students to choose. We recommend leaving this enabled.",classroom_disable_paste:"Whether to disable pasting code into the code editor in this classroom.",disable_paste_noty:"Your teacher has disabled the paste feature!",code_formats:"Code Formats",code_formats_description:"Which code formats students can choose from.",code_formats_disabled_by:"Blocks and code, Blocks are not supported with __language__ language",code_formats_mobile:"* Students on mobile will be set to block-based mode",code_formats_fallback:"* Students will fallback to text-mode for courses without blocks support",code_formats_text:"text code: real code editor",code_formats_block:"blocks: block-based editor (python, javascript only)",code_formats_block_text:"blocks and code: block-based editor with text code(python, javascript only)",code_formats_block_icon:"blocks(icons): icons editor without text (Junior only) ",default_code_format:"Default Code Format",default_code_format_description:"The code format that students will start with.",not_allow_to_solution:"# Licenses needed to view solutions",classroom_level_chat:"AI Level Hints",classroom_level_chat_blurb:"Whether students can ask for AI hints and error explanations.",classroom_level_chat_option_free_form:"Free form",classroom_level_chat_option_fixed_prompt_only:"Fixed prompt only",classroom_level_chat_option_none:"No chat",initial_free_courses:"Initial Courses",select_initial_course:"Recommended Courses",course_title_junior:"CodeCombat Junior: Block & Text Code","course_title_introduction-to-computer-science":"CodeCombat: Intro to Computer Science","course_title_intro-to-ai":"AI HackStack: Intro to AI","course_title_chapter-1-sky-mountain":"Ozaria: Chapter 1 â Sky Mountain",free_course_blurb_junior:"Supports pre-readers with mobile-friendly drag-and-drop icons, then progresses to drag-and-drop text, side-by-side blocks and code, and finally written text code.","free_course_blurb_introduction-to-computer-science":"Start with core computer science concepts and progress through a full CS curriculum including web development, game development, AP CSP, and more.","free_course_blurb_intro-to-ai":"School-safe AI learning that starts with foundational AI skills, then lets teachers choose subject-specific courses in AI literacy, cybersecurity, algebra, and more.","free_course_blurb_chapter-1-sky-mountain":"A narrative coding adventure that establishes the fundamentals of computer science through story-driven, guided learning.",start_teaching_ai_today:"Start Teaching AI Today!",hackstack_beta_release:"HackStack Beta Release",introducing_ai_hackstack:"Introducing AI HackStack, a generative AI teaching tool for beginners. It provides safe access to top AI models like ChatGPT, Claude, and DALL-E.",our_curriculum_empowers_students:"Our curriculum empowers students to use AI to create websites, games, art, and more. Currently in beta.",test_student_promotion_1:'Ready to walk a mile in your students\' coding shoes? Clicking "Test as Student" lets you dive into the learning experience firsthand. ',test_student_promotion_2:"You'll be creating a unique test account that not only mimics the student journey but also saves your progress â unlike the quick previews in our curriculum guide, which are great for a sneak-peek but don't keep track of where you've been.",test_student_promotion_3:"Your first course is free. Ready for more? We'll guide you on adding a license for continued learning adventures.",dashboard_update:"Dashboard Update",dashboard_update_message:"We are currently optimizing the dashboard for your convenience. You can now find the Curriculum Guide in the left sidebar.",ai_algebra_promotion_title:"A Teacher-Led Algebra + AI Curriculum",ai_algebra_promotion_description:"Algebra + AI is a structured, year-long, classroom-ready curriculum that strengthens core Algebra skills while integrating AI as an acceleration tool. Traditional methods remain central, teachers guide the instruction, and students apply math through modeling, design thinking, and meaningful assessments.",switch_to_test_student:"Switching to test student account..",import_ozaria_classroom:"Import Ozaria Classroom",import_codecombat_classroom:"Import Codecombat Classroom",select_ozaria_classroom:"Select Ozaria Classroom",select_codecombat_classroom:"Select Codecombat Classroom",select_to_import_from_ozaria:"Select to Import from Ozaria",select_to_import_from_codecombat:"Select to Import from Codecombat",all_classrooms_imported:"All classrooms already imported",club_type:"Club / Camp Type",create_students_prompt:"How many students would you like to create?",initial_free_courses_description:"*Courses can be updated using Assign Content after creating class too.",recommended_courses_helptext_question:"Not seeing the course you want?",recommended_courses_helptext_answer:"Course content can be easily changed, added or removed after creating the class.",recommended_courses_helptext_info:"See all c
2ourse options after classroom creation.",junior_code_format_only:"Blocks (Icons) only available for Junior",hackstack_no_code_language_format:"AI HackStack does not need a programming language or code format",licenses_activated_success:"Licenses have been Activated Successfully!",license_code_used:"License Code used.",ai_hs_remix:"AI HackStack Remix",ai_hs_remix_blurb:"Whether students can use other student's projects to take inspiration from.",and_more:"and more",import_classroom:"Import Classroom",re_import_classroom:"Re-Import Classroom",need_more_license:"Oops! It looks like you need __additionalLicensesNum__ more license(s) for the course. Visit My Licenses to learn more!",confirm_apply_license:"Please confirm that you'd like to apply licenses to __numberEnrolled__ student(s). You will have __numberRemaining__ license(s) remaining.",fail_get_license:"Error! __fails__ students failed to get license",no_licenses_applied:"No licenses applied to selected student(s).",revoke_license_tips:"Revoking a license will make it available to apply to other students. Students will no longer be able to access paid content, but their progress will be saved. Please confirm you'd like to proceed.",assign_course_confirm:"Please confirm that you'd like to assign __courseName__ to __numStudents__ student(s). __numberEnrolled__ license(s) will be applied.",near_end_trial:"Your Students Are Nearing the End of the Trial Content",schedule_demo_subheading:"Schedule a Demo to Continue Your Students Coding Journey With...",schedule_demo_description:"Schedule a demo with our team to unlock more free content and explore our products, curricula, and resources. Let us help you craft a tailored solution for your class, school, or district.",practice_and_application:"Practice & Application Experiences",roster_via_csv:"Roster via CSV",roster_sub_text:"Supports email, firstName and lastName columns. Required: email and firstName.",roster_sub_text_2:"In case of log-in without SSO, students will have to reset their password.",roster_sub_text_3:"Existing students in the classroom are not removed.",roster_download_example:"Download Example CSV",roster_completed:"Sync completed, refresh to see changes."},no_licenses_page:{are_your_students_ready:"Are your students excited and ready to learn more?",once_students_have_completed:"Once students have completed Chapter 1, they will need licenses in order to continue their journey through the next chapter and beyond.",get_licenses:"Get Licenses",get_full_access_to_ozaria:"Get Full Access to Ozaria",unlock_all:"Unlock all the above plus all the teacher support you need",unlock_all_dsa:"Unlock all the above plus all the support teachers need",comprehensive_dashboards:"Comprehensive teacher and administrator dashboards",lesson_plans_rubrics_guides:"Lesson Plans, Project Rubrics, Solution Guides, and more",dedicated_customer_success_manager:"A dedicated customer success manager",automatic_access:"Automatic access to new content and features",license_quote:'"In my opinion as a 26 year veteran middle school educator, there is no more engaging resource for teaching coding."',join_our_community:"Join our community",join_our_community_desc:"Over 12 million people have learned to write Python and JavaScript using CodeCombat. Now, we welcome you to join our community of over 82,000 educators and 25,000 schools with Ozaria, designed for educators who want to inspire a new generation of students to learn Computer Science.",teach_real_typed_code:"Teach Real, Typed Code",teach_real_typed_code_desc:"Students learn Python and JavaScript, the two most popular coding languages, and build 21st century skills that will prepare them for any career.",support_student_progress:"Support Student Progress",support_student_progress_desc:"Unlock formative and summative assessment data from Concept Checks, Levels, and Capstone Projects to support student progress.",creative_projects:"Creative Projects",creative_projects_desc:"Inspire imagination and unleash student creativity with shareable capstone projects, like in Chapter 2 where students design their own storytelling game. ",looking_for_engaging:"Looking for engaging computer science curriculum?",licenses_are_required:"Licenses are required for students to continue their journey beyond Chapter 1.",real_world_skills:"Real-World Skills",real_world_skills_desc:"Students learn typed Python and JavaScript, the two most popular coding languages, and enhance their critical-thinking skills, creativity, and resilience to prepare them for any career.",personalized_learning:"Personalized Learning and Scaffolded Instru
2ction",personalized_learning_desc:"Students learn concepts at their own pace. Levels increase in difficulty while providing built-in hints to encourage persistence and grit.",flexible_curriculum:"Flexible Standards- Aligned Curriculum",flexible_curriculum_desc:"100% CSTA-aligned curriculum that can easily be adapted to any schedule, scenario, or setting.",resources_to_support:"Resources to Support Teachers",resources_to_support_desc:"Lesson plans, extension activities, curriculum guides, and more instructional resources designed with remote and hybrid settings in mind.",actionable_insights:"Actionable Insights for Educators",actionable_insights_desc:"Empower educators with intuitive student progress and assessment data that makes differentiating instruction possible."},special_offer:{special_offer:"Special Offer",project_based_title:"Project-Based Courses",project_based_description:"Web and Game Development courses feature shareable final projects.",great_for_clubs_title:"Great for clubs and electives",great_for_clubs_description:"Teachers can purchase up to __maxQuantityStarterLicenses__ Starter Licenses.",low_price_title:"Just __starterLicensePrice__ per student",low_price_description:"Starter Licenses are active for __starterLicenseLengthMonths__ months from purchase.",three_great_courses:"Three great courses included in the Starter License:",license_limit_description:"Teachers can purchase up to __maxQuantityStarterLicenses__ Starter Licenses. You have already purchased __quantityAlreadyPurchased__. If you need more, contact __supportEmail__. Starter Licenses are valid for __starterLicenseLengthMonths__ months.",student_starter_license:"Student Starter License",purchase_starter_licenses:"Purchase Starter Licenses",purchase_starter_licenses_to_grant:"Purchase Starter Licenses to grant access to __starterLicenseCourseList__",starter_licenses_can_be_used:"Starter Licenses can be used to assign additional courses immediately after purchase.",pay_now:"Pay Now",we_accept_all_major_credit_cards:"We accept all major credit cards.",cs2_description:"builds on the foundation from Introduction to Computer Science, diving into if-statements, functions, events and more.",wd1_description:"introduces the basics of HTML and CSS while teaching skills needed for students to build their first webpage.",gd1_description:"uses syntax students are already familiar with to show them how to build and share their own playable game levels.",see_an_example_project:"see an example project",get_started_today:"Get started today!",want_all_the_courses:"Want all the courses? Request information on our Full Licenses.",compare_license_types:"Compare License Types:",cs:"Computer Science",wd:"Web Development",wd1:"Web Development 1",gd:"Game Development",gd1:"Game Development 1",maximum_students:"Maximum # of Students",unlimited:"Unlimited",priority_support:"Priority support",yes:"Yes",price_per_student:"__price__ per student",pricing:"Pricing",free:"Free",purchase:"Purchase",courses_prefix:"Courses",courses_suffix:"",course_prefix:"Course",course_suffix:""},teachers_quote:{subtitle_coco:"Learn more about CodeCombat with an interactive walk through of the product, pricing, and implementation!",subtitle_ozar:"Learn more about Ozaria with an interactive walk through of the product, pricing, and implementation!",email_exists:"User exists with this email.",phone_number:"Phone number",phone_number_help:"What's the best number to reach you?",primary_role_label:"Your Primary Role",role_default:"Select Role",primary_role_default:"Select Primary Role",purchaser_role_default:"Select Purchaser Role",teacher:"Teacher",tech_coordinator:"Technology coordinator",advisor:"Curriculum Specialist/Advisor",principal:"Principal",superintendent:"Superintendent",parent:"Parent",purchaser_role_label:"Your Purchaser Role",influence_advocate:"Influence/Advocate",evaluate_recommend:"Evaluate/Recommend",approve_funds:"Approve Funds",no_purchaser_role:"No role in purchase decisions",teacher_account_details:"Teacher Account Details",district_label:"District",district_name:"District Name",district_na:"Enter N/A if not applicable",organization_label:"School",school_name:"School Name",city:"City",state:"State / Region",country:"Country / Region",num_students_help:"How many students will use __product__?",num_students_default:"Select Range",education_level_label:"Education Level of Students",education_level_help:"Choose as many as apply.",elementary_school:"Elementary School",high_school:"High School",please_explain:"(please explain)",middle_school:"Middle School",college_plus:"College or higher",referrer:"How did you hear about us?",referrer_help:"For example: from another teacher, a conference, your students, Code.org, etc.",referrer_default:"Select One",referrer_conference:"Conference (e.g. ISTE)",referrer_hoc:"Code.org/Hour of Code",referrer_teacher:"A teacher",referrer_admin:"An administrator",referrer_student:"A student",referrer_pd:"Professional trainings/workshops",referrer_web:"Google",referrer_other:"Other",anything_else:"What kind of class do you anticipate using __product__ for?",anything_else_helper:"",thanks_header:"Request Received!",thanks_sub_header_coco:"Thanks for expressing interest in CodeCombat for your school.",thanks_sub_header_ozar:"Thanks for expressing interest in Ozaria for your school.",thanks_p:"We'll be in touch soon! If you need to get in contact, you can reach us at:",back_to_classes:"Back to Classes",finish_signup:"Finish creating your teacher account:",finish_signup_p:"Create an account to set up a class, add your students, and monitor their progress as they learn computer science.",signup_with:"Sign up with:",connect_with:"Connect with:",conversion_warning:"WARNING: Your current account is a <em>Student Account</em>. Once you submit this form, your account will be updated to a Teacher Account.",learn_more_modal:"Teacher accounts on CodeCombat have the ability to monitor student progress, assign licenses and manage classrooms. Teacher accounts cannot be a part of a classroom - if you are currently enrolled in a class using this account, you will no longer be able to access it once you update to a Teacher Account.",create_account:"Create a Teacher Account",create_account_subtitle:"Get access to teacher-only tools for using CodeCombat in the classroom. <strong>Set up a class</strong>, add your students, and <strong>monitor their progress</strong>!",convert_account_title:"Update to Teacher Account",not:"Not",full_name_required:"First and last name required"},versions:{save_version_title:"Save New Version",new_major_version:"New Major Version",submitting_patch:"Submitting Patch...",cla_prefix:"To save changes, first you must agree to our",cla_url:"CLA",cla_suffix:".",cla_agree:"I AGREE",owner_approve:"An owner will need to approve it before your changes will become visible."},contact:{contact_us:"Contact CodeCombat",welcome:"Good to hear from you! Let us know how
2we can help, and we'll get back to you within a day.",forum_prefix:"You can check out our ",reddit_page:"public subreddit here ",faq_prefix:"and our ",faq:"FAQs here",faq_suffix:" for additional assistance.",prefer_email_prefix:"If you prefer, you can email ",prefer_email_suffix:" instead.",subscribe_prefix:"If you need help figuring out a level, please",subscribe:"buy a CodeCombat subscription",subscribe_suffix:"and we'll be happy to help you with your code.",subscriber_support:"Since you're a CodeCombat subscriber, your email will get our priority support.",screenshot_included:"Screenshot included.",where_reply:"Where should we reply?",send:"Send",ooo_blurb:"The CodeCombat team will be out of the office from June 5th to June 9th, and during this time will have limited access to emails. We will respond to your inquiry as soon as possible, please be aware of the anticipated wait time."},account_settings:{title:"Account Settings",not_logged_in:"Log in or create an account to change your settings.",me_tab:"Me",picture_tab:"Picture",delete_account_tab:"Delete Your Account",wrong_email:"Wrong Email or Username",wrong_password:"Wrong Password",temp_password_expired:"Your temporary password has been expired.",delete_this_account:"Delete this account permanently",reset_progress_tab:"Reset All Progress",reset_your_progress:"Clear all your progress and start over",connect_roblox_tab:"Connect Roblox",connect_roblox_button:"Connect",re_connect_roblox_button:"Connect Another Account",disconnect_roblox_button:"Disconnect",roblox_connected:"Your account <strong>__username__</strong> is connected to Roblox.",roblox_connected_other_user:"The student's account is connected to <strong>__username__</strong> Roblox account.",roblox_not_connected:"Connect your CodeCombat and Roblox accounts.",roblox_not_connected_other_user:"Connect the student's CodeCombat and Roblox accounts.",roblox_disconnect_confirm:"Are you sure you want to disconnect your Roblox account?",god_mode:"God Mode",emails_tab:"Emails",admin:"Admin",manage_subscription:"Click here to manage your subscription.",current_password:"Current Password",new_password:"New Password",new_password_verify:"Verify",type_in_email:"Type in your email or username to confirm account deletion.",type_in_email_progress:"Type in your email to confirm deleting your progress.",type_in_password:"Also, type in your password.",email_subscriptions:"Email Subscriptions",email_subscriptions_none:"No Email Subscriptions.",email_announcements:"Announcements",email_announcements_description:"Get emails on the latest news and developments at CodeCombat.",email_notifications:"Notifications",email_notifications_summary:"Controls for personalized, automatic email notifications related to your CodeCombat activity.",email_any_notes:"Any Notifications",email_any_notes_description:"Disable to stop all activity notification emails.",email_news:"News",email_recruit_notes:"Job Opportunities",email_recruit_notes_description:"If you play really well, we may contact you about getting you a (better) job.",contributor_emails:"Contributor Class Emails",contribute_prefix:"We're looking for people to join our party! Check out the ",contribute_page:"contribute page",contribute_suffix:" to find out more.",email_toggle:"Toggle All",error_saving:"Error Saving",saved:"Changes Saved",password_mismatch:"Password does not match.",password_repeat:"Please repeat your password.",switch_new_teacher_dashboard:"Try the new Teacher Dashboard",view_trial_class_bookings:"View Trial Class Bookings"},keyboard_shortcuts:{keyboard_shortcuts:"Keyboard Shortcuts",space:"Space",enter:"Enter",press_enter:"press enter",escape:"Escape",shift:"Shift",run_code:"Run current code.",run_real_time:"Run in real time.",continue_script:"Continue past current script.",skip_scripts:"Skip past all skippable scripts.",toggle_playback:"Toggle play/pause.",scrub_playback:"Scrub back and forward through time.",single_scrub_playback:"Scrub back and forward through time by a single frame.",scrub_execution:"Scrub through current spell execution.",toggle_debug:"Toggle debug display.",toggle_grid:"Toggle grid overlay.",toggle_pathfinding:"Toggle pathfinding overlay.",beautify:"Beautify
2your code by standardizing its formatting."},cinematic:{click_anywhere_continue:"Click to Continue",instructional_tooltip:"Click these arrow buttons to go backwards and forwards. You can also use the arrow keys on your keyboard to do the same.",error_find:"Error finding cinematic __slug__."},community:{main_title:"CodeCombat Community",introduction:"Check out the ways you can get involved below and decide what sounds the most fun. We look forward to working with you!",level_editor_prefix:"Use the CodeCombat",level_editor_suffix:"to create and edit levels. Users have created levels for their classes, friends, hackathons, students, and siblings. If create a new level sounds intimidating you can start by forking one of ours!",thang_editor_prefix:"We call units within the game 'thangs'. Use the",thang_editor_suffix:"to modify the CodeCombat source artwork. Allow units to throw projectiles, alter the direction of an animation, change a unit's hit points, or upload your own vector sprites.",article_editor_prefix:"See a mistake in some of our docs? Want to make some instructions for your own creations? Check out the",article_editor_suffix:"and help CodeCombat players get the most out of their playtime.",find_us:"Find us on these sites",social_github:"Check out all our code on GitHub",social_reddit:"Join the CodeCombat community on Reddit",social_blog:"Read the CodeCombat blog",social_discource:"Join the discussion on our Discourse forum",social_facebook:"Like CodeCombat on Facebook",social_twitter:"Follow CodeCombat on Twitter",social_slack:"Chat with us in the public CodeCombat Slack channel",contribute_to_the_project:"Contribute to the project"},clans:{title:"Join CodeCombat Clans - Learn to Code in Python, JavaScript, and HTML",clan_title:"__clan__ - Join CodeCombat Clans and Learn to Code",meta_description:"Join a Clan or build your own community of coders. Play multiplayer arena levels and level up your hero and your coding skills.",clan:"Clan",clans:"Clans",new_name:"New clan name",new_description:"New clan description",make_private:"Make clan private",subs_only:"subscribers only",create_clan:"Create New Clan",private_preview:"Preview",private_clans:"Private Clans",public_clans:"Public Clans",my_clans:"My Clans",clan_name:"Clan Name",name:"Name",chieftain:"Chieftain",edit_clan_name:"Edit Clan Name",edit_clan_description:"Edit Clan Description",edit_name:"edit name",edit_description:"edit description",private:"(private)",summary:"Summary",average_rank:"Average Rank",average_achievements:"Average Achievements",delete_clan:"Delete Clan",leave_clan:"Leave Clan",join_clan:"Join Clan",invite_1:"Invite:",invite_2:"*Invite players to this Clan by sending them this link.",members:"Members",progress:"Progress",not_started_1:"not started",started_1:"started",complete_1:"complete",exp_levels:"Expand levels",rem_hero:"Remove Hero",status:"Status",complete_2:"Complete",started_2:"Started",not_started_2:"Not Started",view_solution:"Click to view solution.",view_attempt:"Click to view attempt.",latest_achievement:"Latest Achievement",playtime:"Playtime",last_played:"Last played",leagues_explanation:"Play in a league against other clan members in these multiplayer arena instances.",track_concepts1:"Track concepts",track_concepts2a:"learned by each student",track_concepts2b:"learned by each member",track_concepts3a:"Track levels completed for each student",track_concepts3b:"Track levels completed for each member",track_concepts4a:"See your students'",track_concepts4b:"See your members'",track_concepts5:"solutions",track_concepts6a:"Sort students by name or progress",track_concepts6b:"Sort members by name or progress",track_concepts7:"Requires invitation",track_concepts8:"to join",private_require_sub:"Private clans require a subscription to create or join."},courses:{create_new_class:"Create New Class",hoc_blurb1:"Try the",hoc_blurb2:"Code, Play, Share",hoc_blurb3:"activity! Construct four different minigames to learn the basics of game development, then make your own!",solutions_require_licenses:"Level solutions are available for teachers who have licenses.",unnamed_class:"Unnamed Class",edit_settings1:"Edit Class Settings",add_students:"Add Students",stats:"Statistics",student_email_invite_blurb:"Your students can also use class code <strong>__classCode__</strong> when creating a Student Account, no email required.",total_students:"Total students:",average_time:"Average level play time:",total_time:"Total play time:",average_levels:"Average levels completed:",total_levels:"Total levels completed:",students:"Students",concepts:"Concepts",play_time:"Play time:",completed:"Completed:",enter_emails:"Separate each email address by a line break or commas",send_invites:"Invite Students",number_programming_students:"Number of Programming Students",number_total_students:"Total Students in School/District",enroll:"Enroll",enroll_paid:"Enroll Students in Paid Courses",get_enrollments:"Get More Licenses",change_language:"Change Course Language",keep_using:"Keep Using",switch_to:"Switch To",greetings:"Greetings!",back_classrooms:"Back to my classrooms",back_classroom:"Back to classroom",back_courses_coco:"Back to my courses",back_courses_ozar:"Back to Classes",edit_details:"Edit class details",purchase_enrollments:"Purchase Student Licenses",remove_student:"remove student",assign:"Assign",to_assign:"to assign paid courses.",student:"Student",teacher:"Teacher",arena:"Arena",available_levels:"Available Levels",started:"started",complete:"complete",practice:"practice",required:"required",python:"Python (supports blocks)",javascript:"JavaScript (supports blocks)",java:"Java (beta)",wel
2come_to_courses_coco:"Adventurer, welcome to CodeCombat!",welcome_to_courses_ozar:"Adventurers, welcome to Courses!",ready_to_play:"Ready to play?",start_new_game:"Start New Game",play_now_learn_header:"Play now to learn",play_now_learn_1:"basic syntax to control your character",play_now_learn_2:"while loops to solve pesky puzzles",play_now_learn_3:"strings & variables to customize actions",play_now_learn_4:"how to defeat an ogre (important life skills!)",welcome_to_page:"Student Dashboard",my_classes:"Current Classes",class_added:"Class successfully added!",view_map:"view map",view_videos:"view videos",view_project_gallery:"view my classmates' projects",join_class:"Join a Class",join_class_2:"Join class",ask_teacher_for_code_coco:"Ask your teacher if you have a CodeCombat class code! If so, enter it below:",ask_teacher_for_code_ozar:"Ask your teacher if you have a Ozaria class code! If so, enter it below:",enter_c_code_coco:"<Enter Class Code>",enter_c_code_ozar:"Enter Class Code",join:"Join",joining:"Joining class",course_complete:"Course Complete",unit_complete:"Unit Complete",play_arena:"Play Arena",view_project:"View Project",start:"Start",last_level:"Last level played",not_you:"Not you?",continue_playing:"Continue Playing",option1_header:"Invite Students by Email",remove_student1:"Remove Student",are_you_sure:"Are you sure you want to remove this student from this class?",remove_description1:"Student will lose access to this classroom and assigned classes. Progress and gameplay is NOT lost, and the student can be added back to the classroom at any time.",remove_description2:"The activated paid license will not be returned.",license_will_revoke:"This student's paid license will be revoked and made available to assign to another student.",keep_student:"Keep Student",removing_user:"Removing user",subtitle:"Review course overviews and levels",changelog:"View latest changes to course levels.",select_language:"Select language",select_level:"Select level",play_level:"Play Level",concepts_covered:"Concepts covered",view_guide_online:"Level Overviews and Solutions",lesson_slides:"Lesson Slides",grants_lifetime_access:"Grants access to all Courses.",enrollment_credits_available:"Licenses Available:",language_select:"Select a language",language_cannot_change:"Language cannot be changed once students join a class.",avg_student_exp_label:"Average Student Programming Experience",avg_student_exp_desc:"This will help us understand how to pace courses better.",avg_student_exp_select:"Select the best option",avg_student_exp_none:"No Experience - little to no experience",avg_student_exp_beginner:"Beginner - some exposure or block-based",avg_student_exp_intermediate:"Intermediate - some experience with typed code",avg_student_exp_advanced:"Advanced - extensive experience with typed code",avg_student_exp_varied:"Varied Levels of Experience",class_type_label:"Class Type",class_type_in_school:"In School",class_type_after_school:"After School",class_type_online:"Online",class_type_camp:"Camp",class_type_camp_esports:"Camp (Esports)",class_type_camp_junior:"Camp (Roblox)",class_type_homeschool:"Homeschool",class_type_other:"Other",student_age_range_label:"Student Age Range",student_age_range_younger:"Younger than 6",student_age_range_older:"Older than 18",student_age_range_to:"to",estimated_class_dates_label:"Estimated Class Dates",estimated_class_frequency_label:"Estimated Class Frequency",classes_per_week:"classes per week",minutes_per_class:"minutes per class",create_class:"Create Class",class_name:"Class Name",teacher_account_restricted:"Your account is a teacher account and cannot access student content.",account_restricted:"A student account is required to access this page.",update_account_login_title:"Log in to update your account",update_account_title:"Your account needs attention!",update_account_blurb:"Before you can access your classes, choose how you want to use this account.",update_account_current_type:"Current Account Type:",update_account_account_email:"Account Email/Username:",update_account_am_teacher:"I am a teacher",update_account_no_progress:"Let me create classes but save no game progress",update_account_teachers_can:"Teacher accounts can:",update_account_teachers_can1:"Create/manage/add classes",update_account_teachers_can2:"Assign/enroll students in courses",update_account_teachers_can3:"Unlock all course levels to try out",update_account_teachers_can4:"Acce
2ss new teacher-only features as we release them",update_account_teachers_warning_new:"Warning: you will not be able to save your progress on any levels; you will need separate student accounts to do that.",update_account_remain_teacher:"Remain a Teacher",update_account_update_teacher:"Update to Teacher",update_account_am_student:"I am a student",update_account_no_home:"Let me join classes but not play outside of class",update_account_students_can:"Student accounts can:",update_account_students_can1:"Join classes",update_account_students_can2:"Play through courses as a student and track your own progress",update_account_students_can3:"Compete against classmates in arenas",update_account_students_can4:"Access new student-only features as we release them",update_account_students_warning_new:"Warning: you will only be able to play the levels your teacher has assigned.",unsubscribe_warning:"Warning: You will be unsubscribed from your monthly subscription.",update_account_remain_student:"Remain a Student",update_account_update_student:"Update to Student",update_account_am_individual:"I am a individual",update_account_no_classes:"Let me play independently but not join classes",update_account_individuals_can:"Individual accounts can:",update_account_individuals_can1:"Earn gems, experience, items, and heroes",update_account_individuals_can2:"Play through the game as an individual and track your own progress",update_account_individuals_can3:"Compete against the world in arenas",update_account_individuals_can4:"Access new individual-only features as we release them",update_account_individuals_warning_ozaria:"Warning: individual accounts cannot play Ozaria, only CodeCombat.",update_account_remain_individual:"Remain an Individual",need_a_class_code:"You'll need a Class Code for the class you're joining:",update_account_not_sure:"Not sure which one to choose? Email",update_account_confirm_update_student:"Are you sure you want to update your account to a Student experience?",update_account_confirm_update_student2:"You will not be able to manage any classes that you have previously created or create new classes. Your previously created classes will be removed from CodeCombat and cannot be restored.",instructor:"Instructor: ",youve_been_invited_1:"You've been invited to join ",youve_been_invited_2:", where you'll learn ",youve_been_invited_3:" with your classmates in CodeCombat.",by_joining_1:"By joining ",by_joining_2:"will be able to help reset your password if you forget or lose it. You can also verify your email address so that you can reset the password yourself!",sent_verification:"We've sent a verification email to:",you_can_edit:"You can edit your email address in ",account_settings:"Account Settings",select_your_hero:"Select Your Hero",select_your_hero_description:'You can always change your hero by going to your Courses page and clicking "Change Hero"',select_this_hero:"Select this Hero",current_hero:"Current Hero:",current_hero_female:"Current Hero:",web_dev_language_transition:"All classes program in HTML / JavaScript for this course. Classes that have been using Python will start with extra JavaScript intro levels to ease the transition. Classes that are already using JavaScript will skip the intro levels.",course_membership_required_to_play:"You'll need to join a course to play this level.",license_required_to_play_coco:"Ask your teacher to assign a license to you so you can continue to play CodeCombat!",license_required_to_play_ozar:"Ask your teacher to assign you a license so you can continue to play Ozaria!",level_locked:"This level is locked.",update_old_classroom:"New school year, new levels!",update_old_classroom_detail:"To make sure you're getting the most up-to-date levels, make sure you create a new class for this semester by clicking Create a New Class on your",teacher_dashboard:"teacher dashboard",update_old_classroom_detail_2:"and giving students the new Class Code that appears.",view_assessments:"View Assessments",view_challenges:"view challenge levels",challenge:"Challenge:",challenge_level:"Challenge Level:",status:"Status:",assessments:"Assessments",challenges:"Challenges",level_name:"Level Name:",keep_trying:"Keep Trying",start_challenge:"Start Challenge",locked:"Locked",concepts_used:"Concepts Used:",show_change_log:"Show changes to this course's levels",hide_change_log:"Hide changes to this course's levels",concept_videos:"Concept Videos",concept:"Concept:",basic_syntax:"Basic Syntax",while_loops:"While Loops",variables:"Variables",basic_syntax_desc:"Syntax is how we write code. Just as spelling and grammar are important in writing narratives and essays, syntax is important when writing code. Humans are good at figuring out what something means, even if it isn't exactly correct, but computers aren't that smart, and they need you to write very precisely.",while_loops_desc:"A loop is a way of repeating actions in a program. You can use them so you don't have to keep writing repetitive code, and when you don't know exactly how many times an action will need to occur to accomplish a task.",variables_desc:'Working with variables is like organizing things in shoeboxes. You give the shoebox a name, like "School Supplies", and then you put things inside. The exact contents of the box might change over time, but whatever\'s inside will always be called "School Supplies". In programming, variables are symbols used to store data that will change over the course of the program. Variables can hold a variety of data types, including numbers and strings.',locked_videos_desc:"Keep playing the game to unlock the __concept_name__ concept video.",unlocked_videos_desc:"Review the __concept_name__ concept video.",video_shown_before:"shown before __level__",link_google_classroom:"Link Google Classroom",select_your_classroom:"Select Your Classroom",no_classrooms_found:"No classrooms found",create_classroom_manually:"Create classroom manually",classes:"Classes",certificate_btn_print:"Print",certificate_btn_toggle:"Toggle",error_in_creating_data:"Error in creating data for intro level!",ask_next_course:"Want to play more? Ask your teacher for access to the next course.",set_start_locked_level:"Lock levels starting at",no_level_limit:"-- (no levels locked)",ask_teacher_to_unlock:"Ask Teacher To Unlock",ask_teacher_to_unlock_instructions:"To play the next level, ask your teacher to unlock it on their Course Progress screen",play_next_level:"Play Next Level",play_tournament:"Play Tournament",levels_completed:"Levels Completed: __count__",ai_league_team_rankings:"AI League Team Rankings",view_standings:"View Standings",view_winners:"View Winners",classroom_announcement:"Classroom Announcement",link_lms_classroom:"Link LMS Classroom",classroom_items:"Items & Gems",classroom_live_completion:"Classroom Code Autocomplete: ",classroom_disable_paste:"Classroom Disable Paste: ",learn_without_classroom_title:"You can still learn and play without a classroom",learn_without_classroom_blurb:"Start by playing the free Sky Mountain chapter by <a href='/play/chapter-1-sky-mountain'>clicking here</a>.",learn_without_classroom_blurb_coco:"Start by playing the free Hour of Code campaign by <a href='/play/intro'>clicking here</a>.",all_courses_completed:"All Courses Completed!",all_units_completed:"All Units Completed!",hide_options:"Hide Options",more_options:"Advanced Settings",get_test_license:"Get Test Student License",create_students:"Generate Students",custom_tournaments:"Custom Tournaments",play_ozaria:"Play Ozaria",play_ccw_on_roblox:"Play CodeCombat Worlds on Roblox",camp_activities:"Camp Activities",view_camp_activities:"View Camp Activities"},project_gallery:{no_projects_published:"Be the first to publish a project in this course!",view_project:"View Project",edit_project:"Edit Project"},teacher:{assigning_course:"Assigning course",back_to_top:"Back to Top",click_student_code:"Click on any level that the student has started or completed below to view the code they wrote.",code:"__name__'s Code",complete_solution:"Complete Solution",course_not_started:"Student has not started this course yet.",hoc_happy_ed_week:"Happy Computer Science Education Week!",hoc_blurb1:"Learn about the free",hoc_blurb2:"Code, Play, Share",hoc_blurb3:"activity, download a new teacher lesson plan, and tell your students to log in to play!",hoc_button_text:"View Activity",no_code_yet:"Student has not written any code for this level yet.",open_ended_level:"Open-Ended Level",partial_solution:"Parti
2al Solution",capstone_solution:"Capstone Solution",removing_course:"Removing course",solution_arena_blurb:"Students are encouraged to solve arena levels creatively. The solution provided below meets the requirements of the arena level.",solution_challenge_blurb:"Students are encouraged to solve open-ended challenge levels creatively. One possible solution is displayed below.",solution_project_blurb:"Students are encouraged to build a creative project in this level. Please refer to curriculum guides in the Teacher Toolkit for information on how to evaluate these projects.",feedback_capstone:'The student will create a base project in Part 1. They will make creative updates based on peer feedback in Part 2. Here is a <a target="_blank" rel="noopener" href="https://docs.google.com/document/d/1itB0vY6WphjINQYJ9NHkILATcLLlYD3GDSg6FJg55OQ">Peer Feedback Template</a> that you can share with your students.',students_code_blurb:"A correct solution to each level is provided where appropriate. In some cases, itâs possible for a student to solve a level using different code. Solutions are not shown for levels the student has not started.",course_solution:"Course Solution",level_overview_solutions:"Level Overview and Solutions",no_student_assigned:"No students have been assigned this course.",paren_new:"(new)",student_code:"__name__'s Student Code",teacher_dashboard:"Teacher Dashboard",my_classes:"My Classes",courses_coco:"Course Guides",courses_ozar:"Unit Guides",enrollments:"Student Licenses",resources:"Resources",help:"Help",language:"Language",edit_class_settings:"edit class settings",access_restricted:"Account Update Required",teacher_account_required:"A teacher account is required to access this content.",create_teacher_account:"Create a Teacher Account",what_is_a_teacher_account:"What's a Teacher Account?",teacher_account_explanation:"A CodeCombat Teacher account allows you to set up classrooms, monitor studentsâ progress as they work through courses, manage licenses and access resources to aid in your curriculum-building.",current_classes:"Current Classes",archived_classes:"Archived Classes",shared_classes:"Shared Classes",archived_classes_blurb:"Classes can be archived for future reference. Unarchive a class to view it in the Current Classes list again.",view_class:"view class",view_ai_league_team:"View AI League team",archive_class:"archive class",unarchive_class:"unarchive class",unarchive_this_class:"Unarchive this class",no_students_yet:"This class has no students yet.",no_students_yet_view_class:"View class to add students.",try_refreshing:"(You may need to refresh the page)",create_new_class:"Create a New Class",class_overview:"Class Overview",avg_playtime:"Average level playtime",total_playtime:"Total play time",avg_completed:"Average levels completed",total_completed:"Total levels completed",created:"Created",concepts_covered:"Concepts covered",earliest_incomplete:"Earliest incomplete level",latest_complete:"Latest completed level",enroll_student:"Enroll student",apply_modal_subtitle:"You will be redirected to your My Classes page, where you can apply licenses to your students by:",apply_modal_list_item_1:"Selecting or creating a class",apply_modal_list_item_2:"Selecting students you want to apply licenses to",apply_modal_list_item_3:"Clicking the âApply Licensesâ button",apply_license:"Apply License",revoke_license:"Revoke License",revoke_licenses:"Revoke All Licenses",revoke_these_licenses:"Select Students and Revoke These Licenses",check_and_revoke_license:"Status & Revoke",manage_license:"Manage License",course_progress:"Course Progress",unit_progress:"Unit Progress",not_applicable:"N/A",edit:"edit",edit_2:"Edit",remove:"remove",latest_completed:"Latest completed:",sort_by:"Sort by",progress:"Progress",concepts_used:"Concepts used by Student:",concept_checked:"Concept checked:",completed:"Completed",practice:"Practice",started:"Started",no_progress:"No progress",not_required:"Not required",view_student_code:"Click to view student code",select_course_coco:"Select course to view",select_course_ozar:"Select unit to view",progress_color_key:"Progress color key:",level_in_progress:"Level in Progress",level_not_started:"Level Not Started",project_or_arena:"Project or Arena",students_not_assigned:"Students who have not been assigned {{courseName}}",course_overview:"Course Overview",copy_class_code:"Copy Class Code",class_code_blurb:"Students can join your class using this Class Code. No email address is required when creating a Student account with this Class Code.",copy_class_url:"Copy Class URL",class_join_url_blurb:"You can also post this unique class URL to a shared webpage.",add_students_manually:"Invite Students by Email",bulk_assign:"Select course",assigned_msg_1:"{{numberAssigned}} students were assigned {{courseName}}.",assigned_msg_2:"{{numberEnrolled}} licenses were applied.",assigned_msg_3:"You now have {{remainingSpots}} available licenses remaining.",assign_course:"Assign Course",removed_course_msg:"{{numberRemoved}} students were removed from {{courseName}}.",remove_course:"Remove Course",not_assigned_msg_1:"Cannot add users to a course instance until they are added to a prepaid that includes this course",not_assigned_modal_title:"Courses were not assigned",not_assigned_modal_starter_body_1:"This course requires a Starter License. You do not have enough Starter Licenses available to assign this course to all __selected__ selected students.",not_assigned_modal_starter_body_2:"Purchase Starter Licenses to grant access to this course.",not_assigned_modal_full_body_1:"This course requires a Full License. You do not have enough Full Licenses available to assign this course to all __selected__ selected students.",not_assigned_modal_full_body_2:"You only have __numFullLicensesAvailable__ Full Licenses available (__numStudentsWithoutFullLicenses__ students do not currently have a Full License active).",not_assigned_modal_full_body_3:"Please select fewer students, or reach out to __supportEmail__ for assistance.",assigned:"Assigned",enroll_selected_students:"Enroll Selected Students",no_students_selected:"No students were selected.",show_students_from:"Show students from",apply_licenses_to_the_following_students:"Apply Licenses to the Following Students",select_license_type:"Select License Type to Apply",students_have_licenses:"The following students already have licenses applied:",all_students:"All Students",apply_licenses:"Apply Licenses",not_enough_enrollments:"Not enough licenses available.",enrollments_blurb:"Students are required to have a license to access any content after the first course.",how_to_apply_licenses:"How to Apply Licenses",export_student_progress:"Export Student Progress (CSV)",send_email_to:"Send Recover Password Email to:",email_sent:"Email sent",send_recovery_email:"Send recovery email",enter_new_password_below:"Enter new password below:",change_password:"Change Password",changed:"Changed",available_credits:"Available Licenses",pending_credits:"Pending Licenses",empty_credits:"Exhausted Licenses",license_remaining:"license remaining",licenses_remaining:"licenses remaining",student_enrollment_history:"Student Enrollment History",enrollment_explanation_1:"The",enrollment_explanation_2:"Student Enrollment History",enrollment_explanation_3:"displays the total number of unique students who were enrolled across all teachers and classrooms added to your dashboard. This includes students in both archived and unarchived classrooms with a class creation date between July 1- June 30 of each respective school year.",enrollment_explanation_4:"Remember",enrollment_explanation_5:"classes may be ar
2chived and licenses may be reused throughout the school year, so this view allows administrators to understand how many students truly participated in the program overall.",one_license_used:"1 out of __totalLicenses__ licenses has been used",num_licenses_used:"__numLicensesUsed__ out of __totalLicenses__ licenses have been used",starter_licenses:"starter licenses",start_date:"start date:",end_date:"end date:",get_enrollments_blurb:" We'll help you build a solution that meets the needs of your class, school or district.",see_also_our:"See also our",for_more_funding_resources:"for how to leverage CARES Act funding sources like ESSER and GEER.",how_to_apply_licenses_blurb_1:"When a teacher assigns a course to a student for the first time, weâll automatically apply a license. Use the bulk-assign dropdown in your classroom to assign a course to selected students:",how_to_apply_licenses_blurb_2:"Can I still apply a license without assigning a course?",how_to_apply_licenses_blurb_3:'Yes â go to the License Status tab in your classroom and click "Apply License" to any student who does not have an active license.',request_sent:"Request Sent!",assessments:"Assessments",license_status:"License Status",status_expired:"Expired on {{date}}",status_not_enrolled:"Not Enrolled",status_enrolled:"Expires on {{date}}",status_partly_expires:"Partly expires on {{date}}",select_all:"Select All",project:"Project",projects:"Projects",project_gallery:"Project Gallery",view_project:"View Project",unpublished:"(unpublished)",view_arena_ladder:"View Arena Ladder",resource_hub:"Teacher Toolkit",pacing_guides:"Classroom-in-a-Box Pacing Guides",pacing_guides_desc:"Learn how to incorporate all of CodeCombat's resources to plan your school year!",pacing_guides_elem:"Elementary School Pacing Guide",pacing_guides_middle:"Middle School Pacing Guide",pacing_guides_high:"High School Pacing Guide",getting_started:"Getting Started",student_resources:"Student Resources",curriculum:"Curriculum",lesson_slides:"Lesson Slides",section:"Section",educator_faq:"Educator FAQ",educator_faq_desc:"Frequently asked questions about using Ozaria in your classroom or school.",teacher_getting_started:"Teacher Getting Started Guide",teacher_getting_started_desc:"New to Ozaria? Download this Teacher Getting Started Guide to set up your account, create your first class, and invite students to the first unit.",student_getting_started:"Student Quick Start Guide",student_getting_started_desc:"You can distribute this guide to your students before starting CodeCombat so that they can familiarize themselves with the code editor. This guide can be used for both Python and JavaScript classrooms.",standardized_curricula:"Standardized Curricula",ap_cs_principles:"AP Computer Science Principles",ap_cs_principles_desc:"AP Computer Science Principles gives students a broad introduction to the power, impact, and possibilities of Computer Science. The course emphasizes computational thinking and problem solving while also teaching the basics of programming.",cs1:"Introduction to Computer Science",cs2:"Computer Science 2",cs3:"Computer Science 3",cs4:"Computer Science 4",cs5:"Computer Science 5",cs1_syntax_python:"Course 1 Python Syntax Guide",cs1_syntax_python_desc:"Cheatsheet with references to common Python syntax that students will learn in Introduction to Computer Science.",cs1_syntax_javascript:"Course 1 JavaScript Syntax Guide",cs1_syntax_javascript_desc:"Cheatsheet with references to common JavaScript syntax that students will learn in Introduction to Computer Science.",coming_soon:"Additional guides coming soon!",engineering_cycle_worksheet:"Engineering Cycle Worksheet",engineering_cycle_worksheet_desc:"Use this worksheet to teach students the basics of the engineering cycle: Assess, Design, Implement and Debug. Refer to the completed example worksheet as a guide.",engineering_cycle_worksheet_link:"View example",progress_journal:"Progress Journal",progress_journal_desc:"Encourage students to keep track of their progress via a progress journal.",cs1_curriculum:"Introduction to Computer Science - Curriculum Guide",cs1_curriculum_desc:"Scope and sequence, lesson plans, activities and more for Course 1.",arenas_curriculum:"Arena Levels - Teacher Guide",arenas_curriculum_desc:"Instructions on how to run Wakka Maul, Cross Bones and Power Peak multiplayer arenas with your class.",assessments_curriculum:"Assessment Levels - Teacher Guide",assessments_curriculum_desc:"Learn how to use Challenge Levels and Combo Challenge levels to assess students' learning outcomes.",cs2_curriculum:"Computer Science 2 - Curriculum Guide",cs2_curriculum_desc:"Scope and sequence, lesson plans, activities and more for Course 2.",cs2_syntax_python:"Course 2 Python Syntax Guide",cs3_curriculum:"Computer Science 3 - Curriculum Guide",cs3_curriculum_desc:"Scope and sequence, lesson plans, activities and more for Course 3.",cs3_syntax_python:"Course 3 Python Syntax Guide",cs4_curriculum:"Computer Science 4 - Curriculum Guide",cs4_curriculum_desc:"Scope and sequence, lesson plans, activities and more for Course 4.",cs4_syntax_python:"Course 4 Python Syntax Guide",cs5_curriculum_js:"Computer Science 5 - Curriculum Guide (JavaScript)",cs5_curriculum_desc_js:"Scope and sequence, lesson plans, activities and more for Course 5 classes using JavaScript.",cs5_curriculum_py:"Computer Science 5 - Curriculum Guide (Python)",cs5_curriculum_desc_py:"Scope and sequence, lesson plans, activities and more for Course 5 classes using Python.",cs1_pairprogramming:"Pair Programming Activity",cs1_pairprogramming_desc:"Introduce students to a pair programming exercise that will help them become better listeners and communicators.",gd1:"Game Development 1",gd1_guide:"Game Development 1 - Project Guide",gd1_guide_desc:"Use this to guide your students as they create their first shareable game project in 5 days.",gd1_rubric:"Game Development 1 - Project Rubric",gd1_rubric_desc:"Use this rubric to assess student projects at the end of Game Development 1.",gd2:"Game Development 2",gd2_curriculum:"Game Development 2 - Curriculum Guide",gd2_curriculum_desc:"Lesson plans for Game Development 2.",gd3:"Game Development 3",gd3_curriculum:"Game Development 3 - Curriculum Guide",gd3_curriculum_desc:"Lesson plans for Game Development 3.",wd1:"Web Development 1",wd1_curriculum:"Web Development 1 - Curriculum Guide",wd1_curriculum_desc:"Scope and sequence, lesson plans, activities, and more for Web Development 1.",wd1_headlines:"Headlines & Headers Activity",wd1_headlines_example:"View sample solution",w
2d1_headlines_desc:"Why are paragraph and header tags important? Use this activity to show how well-chosen headers make web pages easier to read. There are many correct solutions to this!",wd1_html_syntax:"HTML Syntax Guide",wd1_html_syntax_desc:"One-page reference for the HTML style students will learn in Web Development 1.",wd1_css_syntax:"CSS Syntax Guide",wd1_css_syntax_desc:"One-page reference for the CSS and Style syntax students will learn in Web Development 1.",wd2:"Web Development 2",wd2_jquery_syntax:"jQuery Functions Syntax Guide",wd2_jquery_syntax_desc:"One-page reference for the jQuery functions students will learn in Web Development 2.",wd2_quizlet_worksheet:"Quizlet Planning Worksheet",wd2_quizlet_worksheet_instructions:"View instructions & examples",wd2_quizlet_worksheet_desc:"Before your students build their personality quiz project at the end of Web Development 2, they should plan out their quiz questions, outcomes and responses using this worksheet. Teachers can distribute the instructions and examples for students to refer to.",intro_to_cs_short:"Intro to CS",GD1_short:"Game Dev 1",GD2_short:"Game Dev 2",GD3_short:"Game Dev 3",WD1_short:"Web Dev 1",WD2_short:"Web Dev 2",WD3_short:"Web Dev 3",CS1_short:"Comp Sci 1",CS2_short:"Comp Sci 2",CS3_short:"Comp Sci 3",CS4_short:"Comp Sci 4",CS5_short:"Comp Sci 5",CS6_short:"Comp Sci 6",JR_short:"Junior",AI_short:"AI",student_overview:"Overview",student_details:"Student Details",student_name:"Student Name",no_name:"No name provided.",no_username:"No username provided.",no_email:"Student has no email address set.",student_profile:"Student Profile",playtime_detail:"Playtime Detail",student_completed:"Student Completed",student_in_progress:"Student in Progress",class_average:"Class Average",not_assigned:"has not been assigned the following courses",playtime_axis:"Playtime in Seconds",levels_axis:"Levels in",student_state:"How is",student_state_2:"doing?",student_good:"is doing well in",student_good_detail:"This student is keeping pace with the class's average level completion times.",student_warn:"might need some help in",student_warn_detail:"This student's average level completion times suggest they might need some help with new concepts that have been introduced in this course.",student_great:"is doing great in",student_great_detail:"This student might be a good candidate to help other students working through this course, based on average level completion times.",full_license:"Full License",starter_license:"Starter License",customized_license:"Customized License",hackstack_license:"AI HackStack License",hackstack_credits:"Credits: __limit__ prompts / __durationAmount__ __durationKey__(s)",coco_full_license:"CoCo License",ozar_full_license:"Ozaria License",trial:"Trial",hoc_welcome:"Happy Computer Science Education Week",hoc_title:"Hour of Code Games - Free Activities to Learn Real Coding Languages",hoc_meta_description:"Make your own game or code your way out of a dungeon! CodeCombat has four different Hour of Code activities and over 60 levels to learn code, play, and create.",hoc_intro:"There are three ways for your class to participate in Hour of Code with CodeCombat",hoc_self_led:"Self-Led Gameplay",hoc_self_led_desc:"Students can play through our Hour of Code CodeCombat tutorials on their own",hoc_game_dev:"Game Development",hoc_and:"and",hoc_programming:"JavaScript/Python Programming",hoc_teacher_led:"Teacher-Led Lessons",hoc_teacher_led_desc1:"Download our",hoc_teacher_led_link_coco:"Hour of Code lesson plans",hoc_teacher_led_link_ozar:"Introduction to Computer Science lesson plans",hoc_teacher_led_desc2:"to introduce your students to programming concepts using offline activities",hoc_group:"Group Gameplay",hoc_group_desc_1:"Teachers can use the lessons in conjunction with our Introduction to Computer Science course to track student progress. See our",hoc_group_link:"Getting Started Guide",hoc_group_desc_2:"for more details",hoc_additional_desc1:"For additional CodeCombat resources and activities, see our",hoc_additional_desc2:"Questions",hoc_additional_contact:"Get in touch",regenerate_class_code_tooltip:"Generate a new Class Code",regenerate_class_code_confirm:"Are you sure you want to generate a new Class Code?",revoke_confirm:"Are you sure you want to revoke a Full License from {{student_name}}? The license will become available to assign to another student.",revoke_alert_no_student:"Please select students first.",revoke_selected_confirm:"Are you sure you want to revoke Licenses from all selected students?",revoke_all_confirm:"Are you sure you want to revoke Full Licenses from all students in this class?",revoking:"Revoking...",unused_licenses:"You have unused Licenses that allow you to assign students paid courses when they're ready to learn more!",remember_new_courses:"Remember to assign new courses!",more_info:"More Info",how_to_assign_courses:"How to Assign Courses",select_students:"Select Students",select_instructions:"Click the checkbox next to each student you want to assign courses to.",choose_course:"Choose Course",choose_instructions:"Select the course from the dropdown menu youâd like to assign, then click âAssign to Selected Students.â",push_projects:"We recommend assigning Web Development 1 or Game Development 1 after students have finished Introduction to Computer Science!
2See our {{resource_hub}} for more details on those courses.",teacher_quest:"Teacher's Quest for Success",quests_complete:"Quests Complete",teacher_quest_create_classroom:"Create Classroom",teacher_quest_add_students:"Add Students",teacher_quest_teach_methods:"Help your students learn how to `call methods`.",teacher_quest_teach_methods_step1:"Get 75% of at least one class through the first level, Dungeons of Kithgard",teacher_quest_teach_methods_step2:"Print out the [Student Quick Start Guide](https://files.codecombat.com/docs/resources/StudentQuickStartGuide.pdf) in the Teacher Toolkit.",teacher_quest_teach_strings:"Don't string your students along, teach them `strings`.",teacher_quest_teach_strings_step1:"Get 75% of at least one class through True Names",teacher_quest_teach_strings_step2:"Use the Teacher Level Selector on [Course Guides](/teachers/courses) page to preview True Names.",teacher_quest_teach_loops:"Keep your students in the loop about `loops`.",teacher_quest_teach_loops_step1:"Get 75% of at least one class through Fire Dancing.",teacher_quest_teach_loops_step2:"Use the Loops Activity in the [CS1 Curriculum guide](/teachers/resources/cs1) to reinforce this concept.",teacher_quest_teach_variables:"Vary it up with `variables`.",teacher_quest_teach_variables_step1:"Get 75% of at least one class through Known Enemy.",teacher_quest_teach_variables_step2:"Encourage collaboration by using the [Pair Programming Activity](/teachers/resources/pair-programming).",teacher_quest_kithgard_gates_100:"Escape the Kithgard Gates with your class.",teacher_quest_kithgard_gates_100_step1:"Get 75% of at least one class through Kithgard Gates.",teacher_quest_kithgard_gates_100_step2:"Guide students to think through hard problems using the [Engineering Cycle Worksheet](https://files.codecombat.com/docs/resources/EngineeringCycleWorksheet.pdf).",teacher_quest_wakka_maul_100:"Prepare to duel in Wakka Maul.",teacher_quest_wakka_maul_100_step1:"Get 75% of at least one class to Wakka Maul.",teacher_quest_wakka_maul_100_step2:"See the [Arena Guide](/teachers/resources/arenas) in the [Teacher Toolkit](/teachers/resources) for tips on how to run a successful arena day.",teacher_quest_reach_gamedev:"Explore new worlds!",teacher_quest_reach_gamedev_step1:"[Get licenses](/teachers/licenses) so that your students can explore new worlds, like Game Development and Web Development!",teacher_quest_done:"Want your students to learn even more code? Get in touch with our [school specialists](mailto:[email protected]) today!",teacher_quest_keep_going:"Keep going! Here's what you can do next:",teacher_quest_more:"See all quests",teacher_quest_less:"See fewer quests",refresh_to_update:"(refresh the page to see updates)",view_project_gallery:"View Project Gallery",office_hours:"Teacher Webinars",office_hours_detail:"Learn how to keep up with with your students as they create games and embark on their coding journey! Come and attend our",office_hours_link:"teacher webinar",office_hours_detail_2:"sessions.",success:"Success",in_progress:"In Progress",not_started:"Not Started",mid_course:"Mid-Course",end_course:"End of Course",none:"None detected yet",explain_open_ended:"Note: Students are encouraged to solve this level creatively â one possible solution is provided below.",level_label:"Level:",time_played_label:"Time Spent:",practice_threshold_label:"Practice Threshold:",back_to_resource_hub:"Back to Teacher Toolkit",back_to_course_guides:"Back to Course Guides",print_guide:"Print this guide",combo:"Combo",combo_explanation:"Students pass Combo challenge levels by using at least one listed concept. Review student code by clicking the progress dot.",concept:"Concept",sync_google_classroom:"Sync Google Classroom",unit_overview:"Unit Overview",module_overview:"Module Overview",chapter1_unit_overview_desc:"Summary of student experience, including Cutscenes, Practice Levels, Intros, and the Capstone project in Chapter 1.",lesson_plan:"Lesson Plan",chapter1_lesson_plan_desc:"Detailed classroom guide including learning objectives, CSTA standards, reflection activities, facilitation tips, and more.",capstone_rubric:"Capstone Rubric",chapter1_capstone_rubric_desc:"Rubric for evaluating students' Capstone projects and reflection activities at the end of this unit.",chapter1:"Chapter 1: Up The Mountain",chapter2:"Chapter 2: The Moon Dancers",chapter3:"Chapter 3: The Phoenix Lands",module1:"Module 1: ",module2:"Module 2: ",module3:"Module 3: ",module4:"Module 4: ",module5:"Module 5: ",module6:"Module 6: ",module7:"Module 7: ",module8:"Module 8: ",algorithms_and_syntax:"Algorithms and Syntax",debugging:"Debugging",variables:"Variables",conditionals:"Conditionals",capstone_intro:"Capstone Intro",capstone_project:"Capstone Project",level_code:"Level Code",review_needed:"Review Needed",review_tooltip_heading:"What does this mean?",review_tooltip_text:"Red flags appear next to Concept Checks where your student(s) attempted to answer the question 3 or more times. In the <strong>Course Overview</strong> section, red flags appear next to Concept Checks if at least 50% of students who have started or completed the concept check attempted it 3 or more times.",scroll_to_see_more:"Scroll to see more",click_to_view_concept_check:"Click to view concept check",click_to_view_project_gallery:"Click to view project gallery",review_learning_goal:'Review "Learning Goal: __learningGoal__" with students.',view_capstone_project:"View Capstone Project",ozaria_dashboard_guide:"Teacher Dashboard Guide",dashboard_guide_desc:"Walkthrough of Ozaria Teacher Dashboard features that will help you view student progress and work.",review:"Review",for_loops:"For Loops",peer_feedback:"Peer Feedback Form",presentation_checklist:"Presentation Checklist",try_ozaria_footer:"Try our new adventure game, Ozaria!",try_ozaria_free:"Try Ozaria for free",ozaria_intro:"Introducing Our New Computer Science Program",share_class:"share class",permission:"Permission",
2not_write_permission:"You don't have write permission to the class",not_read_permission:"You don't have read permission to the class",owned_license:"Licensed",archive_revoke_confirm:" students of the archived class have active licenses. Would you like to revoke them so that you can re-apply them to other students?",archive_without_revoking:"Archive Without Revoking",revoke_and_archive:"Revoke and Archive",license_stats:"License Stats",redeemers:"Active Students",removed_redeemers:"Inactive Students",latest_podcast_episode:"Latest Podcast Episode",from_the_podcast:"From the Podcast",edit_student_access_title:"Edit Student Access to Levels",edit_student_access_title_scenarios:"Edit Student Access to Projects",edit_student_access_subtitle:"You have selected __levels__ levels for __students__ students.",edit_student_access_subtitle_scenarios:"You have selected __levels__ projects for __students__ students.",student_ask_for_help:"Your student __name__ asking for your help.",never_played:"Never Played",test_student_modal_header:"Creating Test Student",test_student_modal_p1:"You'll be creating a unique test account that mimics the student journey and saves your progress.",test_student_modal_no_class:"Please create a class to join as a student",test_student_modal_choose_class:"Choose a class to join:",test_student_modal_redirect:"You will be redirected to your test student account!",stop_spying_student:"You can return to the teacher account by clicking `Stop Spying` in the user dropdown",show_practice_levels:"Show Practice Levels",hide_practice_levels:"Hide Practice Levels",dashboard_deprecation_message:"This legacy dashboard will be discontinued soon. To ensure uninterrupted access to all features and the best teaching tools, please transition to our new and improved Teacher Dashboard.",partially_complete:"Partially Complete",INTRO_short:"Intro",ELA_short:"ELA",ALG_short:"ALG",ALGEBRA_short:"ALG",CR1_short:"CR1",CR2_short:"CR2",AI1_short:"AI 1",AI2_short:"AI 2",CS_short:"CS",SANDBOX_short:"Sandbox",EXPLORATIONS_short:"Explorations",course_not_covered:"Course __course__ not covered",license_is:"The student license is: "},teacher_licenses:{active_licenses:"Active Licenses",expired_licenses:"Expired Licenses"},teacher_ozaria_encouragement_modal:{title:"Build Computer Science Skills to Save Ozaria",sub_title:"You are invited to try the new adventure game from CodeCombat",cancel:"Back to CodeCombat",accept:"Try First Unit Free",bullet1:"Deepen student connection to learning through an epic story and immersive gameplay",bullet2:"Teach CS fundamentals, Python or JavaScript and 21st century skills",bullet3:"Unlock creativity through capstone projects",bullet4:"Support instructions through dedicated curriculum resources",you_can_return:"You can always return to CodeCombat"},educator_signup_ozaria_encouragement:{recommended_for:"Recommended for:",independent_learners:"Independent learners",homeschoolers:"Homeschoolers",educators_continue_coco:"Educators who want to continue using CodeCombat in their class",continue_coco:"Continue with CodeCombat"},ozaria_cta:{title1:"Standards Aligned Core Curriculum",description1:"Immersive, story based curriculum that meets all 6th-8th grade CSTA standards.",title2:"Turnkey Lesson Plans",description2:"In-depth presentations and worksheets for teachers to guide students through learning objectives.",title3:"New Teacher & Admin Dashboards",description3:"All the actionable insights educators need at a glance, such as student progress and concept understanding."},share_licenses:{share_licenses:"Share Licenses",shared_by:"Shared By:",add_teacher_label:"Enter exact teacher email:",add_teacher_button:"Add Teacher",modal_subtitle:"You can make your licenses available to other teachers in a shared pool.",modal_list_item_1:"Each license can only be used for one student at a time.",modal_list_item_2:"When teachers revoke licenses from students, the licenses will be returned to the shared pool for other teachers in this group to use.",subheader:"You can make your licenses available to other teachers in your organization. Each license can only be used for one student at a time.",teacher_not_found:"Teacher not found. Please make sure this teacher has already created a Teacher Account.",teacher_not_val
2id:"This is not a valid Teacher Account. Only teacher accounts can share licenses.",already_shared:"You've already shared these licenses with that teacher.",have_not_shared:"You've not shared these licenses with that teacher.",teachers_using_these:"Teachers who can access these licenses:",footer:"When teachers revoke licenses from students, the licenses will be returned to the shared pool for other teachers in this group to use.",you:"(you)",one_license_used:"(1/__all__ license used)",licenses_used:"(__licensesUsed__/__all__ licenses used)",licenses_used_no_braces:"__licensesUsed__/__all__ licenses used",more_info:"More info",shared_pool_label:"Teachers in your shared pool:",teacher_delete_warning:"The shared licenses assigned to the teacher won't be revoked!",licenses_limit:"Licenses Limit:"},sharing:{game:"Game",webpage:"Webpage",your_students_preview:"Your students will click here to see their finished projects! Unavailable in teacher preview.",unavailable:"Link sharing not available in teacher preview.",share_game:"Share This Game",share_web:"Share This Webpage",victory_share_prefix:"Share this link to invite your friends & family to",victory_share_prefix_short:"Invite people to",victory_share_game:"play your game level",victory_share_web:"view your webpage",victory_share_suffix:".",victory_course_share_prefix:"This link will let your friends & family",victory_course_share_game:"play the game",victory_course_share_web:"view the webpage",victory_course_share_suffix:"you just created.",copy_url:"Copy URL",share_with_teacher_email:"Send to your teacher",share_ladder_link:"Share Multiplayer Link",ladder_link_title:"Share Your Multiplayer Match Link",ladder_link_blurb
2:"Share your AI battle link so your friends and family can play versus your code:"},game_dev:{creator:"Creator"},web_dev:{image_gallery_title:"Image Gallery",select_an_image:"Select an image you want to use",scroll_down_for_more_images:"(Scroll down for more images)",copy_the_url:"Copy the URL below",copy_the_url_description:"Useful if you want to replace an existing image.",copy_the_img_tag:"Copy the <img> tag",copy_the_img_tag_description:"Useful if you want to insert a new image.",copy_url:"Copy URL",copy_img:"Copy <img>",how_to_copy_paste:"How to Copy/Paste",copy:"Copy",paste:"Paste",back_to_editing:"Back to Editing"},classes:{archmage_title:"Archmage",archmage_title_description:"(Coder)",archmage_summary:"If you are a developer interested in coding educational games, become an archmage to help us build CodeCombat!",artisan_title:"Artisan",artisan_title_description:"(Level Builder)",artisan_summary:"Build and share levels for you and your friends to play. Become an Artisan to learn the art of teaching others to program.",adventurer_title:"Adventurer",adventurer_title_description:"(Level Playtester)",adventurer_summary:"Get our new levels (even our subscriber content) for free one week early and help us work out bugs before our public release.",scribe_title:"Scribe",scribe_title_description:"(Article Editor)",scribe_summary:"Good code needs good documentation. Write, edit, and improve the docs read by millions of players across the globe.",diplomat_title:"Diplomat",diplomat_title_description:"(Translator)",diplomat_summary:"CodeCombat is localized in 45+ languages by our Diplomats. Help us out and contribute translations.",ambassador_title:"Ambassador",ambassador_title_description:"(Support)",ambassador_summary:"Tame our forum users and provide direction for those with questions. Our ambassadors represent CodeCombat to the world.",teacher_title:"Teacher"},editor:{main_title:"CodeCombat Editors",concept_title:"Concept Editor",standards_title:"Standards Correlation Editor",article_title:"Article Editor",thang_title:"Thang Editor",level_title:"Level Editor",course_title:"Course Editor",achievement_title:"Achievement Editor",resource_title:"Resource Editor",chat_title:"Chat Editor",ai_scenario_title:"AI Scenario Editor",ai_project_title:"AI Project Editor",ai_model_title:"AI Model Editor",ai_document_title:"AI Document Editor",ai_chat_message_title:"AI Chat Message Editor",ai_junior_scenario_title:"AI Junior Scenario Editor",ai_junior_project_title:"AI Junior Project Editor",resource_title_general:"__resource__ Editor",back:"Back",revert:"Revert",revert_models:"Revert Models",pick_a_terrain:"Pick A Terrain",dungeon:"Dungeon",indoor:"Indoor",desert:"Desert",grassy:"Grassy",mountain:"Mountain",glacier:"Glacier",small:"Small",large:"Large",fork_title:"Fork New Version",fork_creating:"Creating Fork...",generate_terrain:"Generate Terrain",generate_level:"Generate Level",generate_practice_level:"Generate Practice Level",generate_all_practice_levels:"Generate All Practice Levels",more:"More",wiki:"Wiki",live_chat:"Slack",thang_main:"Main",thang_spritesheets:"Spritesheets",thang_colors:"Colors",level_some_options:"Some Options?",level_tab_thangs:"Thangs",level_tab_scripts:"Scripts",level_tab_components:"Components",level_tab_systems:"Systems",level_tab_docs:"Documentation",level_tab_thangs_title:"Current Thangs",level_tab_thangs_all:"All",level_tab_thangs_conditions:"Starting Conditions",level_tab_thangs_add:"Add Thangs",level_tab_thangs_search:"Search thangs",add_components:"Add Components",component_configs:"Component Configurations",config_thang:"Double click to configure a thang",delete:"Delete",duplicate:"Duplicate",stop_duplicate:"Stop Duplicate",rotate:"Rotate",level_component_tab_title:"Current Components",level_component_btn_new:"Create New Component",level_systems_tab_title:"Current Systems",level_systems_btn_new:"Create New System",level_systems_btn_add:"Add System",level_components_title:"Back to All Thangs",level_components_type:"Type",concept_edit_title:"Edit Concept",standards_edit_title:"Edit Standards Correlation",level_component_edit_title:"Edit Component",level_component_config_schema:"Config Schema",level_system_edit_title:"Edit System",course_edit_title:"Edit Course",resource_edit_title:"Edit Resource",resource_edit_title_general:"Edit __resource__",chat_edit_title:"Edit Chat",chat_edit_title_general:"Edit __chat__",ai_
2scenario_edit_title:"Edit Scenario",ai_scenario_edit_title_general:"Edit __scenario__",ai_project_edit_title:"Edit Project",ai_project_edit_title_general:"Edit __project__",ai_model_edit_title:"Edit Model",ai_document_edit_title:"Edit Document",ai_chat_message_edit_title:"Edit Chat Message",ai_junior_scenario_edit_title:"Edit Junior Scenario",ai_junior_scenario_edit_title_general:"Edit __scenario__",ai_junior_project_edit_title:"Edit Junior Project",ai_junior_project_edit_title_general:"Edit __project__",create_system_title:"Create New System",new_concept_title:"Create New Concept",new_standards_title:"Create New Standards Correlation",new_component_title:"Create New Component",new_component_field_system:"System",new_article_title:"Create a New Article",new_thang_title:"Create a New Thang Type",new_level_title:"Create a New Level",new_article_title_login:"Log In to Create a New Article",new_thang_title_login:"Log In to Create a New Thang Type",new_level_title_login:"Log In to Create a New Level",new_achievement_title:"Create a New Achievement",new_achievement_title_login:"Log In to Create a New Achievement",new_course_title:"Create a New Course",new_course_title_login:"Log In to Create a New Course",new_resource_title:"Create a New Resource",new_resource_title_login:"Log In to Create a New Resource",new_chat_title:"Create a New Chat",new_chat_title_login:"Log In to Create a New Chat",new_ai_scenario_title:"Create a New Scenario",new_ai_scenario_title_login:"Log In to Create a New Scenario",new_ai_project_title:"Create a New Project",new_ai_project_title_login:"Log In to Create a New Project",new_ai_model_title:"Create a New Model",new_ai_model_title_login:"Log In to Create a New Model",new_ai_document_title:"Create a New Document",new_ai_document_title_login:"Log In to Create a New Document",new_ai_chat_message_title:"Create a New Chat Message",new_ai_chat_message_title_login:"Log In to Create a New Chat Message",new_ai_junior_scenario_title:"Create a New Junior Scenario",new_ai_junior_scenario_title_login:"Log In to Create a New Junior Scenario",new_ai_junior_project_title:"Create a New Junior Project",new_ai_junior_project_title_login:"Log In to Create a New Junior Project",article_search_title:"Search Articles Here",concept_search_title:"Search Concepts Here",standards_search_title:"Search Standards Correlations Here",thang_search_title:"Search Thang Types Here",level_search_title:"Search Levels Here",achievement_search_title:"Search Achievements",course_search_title:"Search Courses",resource_search_title:"Search Resources",chat_search_title:"Search Chats",ai_scenario_search_title:"Search Scenarios",ai_project_search_title:"Search Projects",ai_model_search_title:"Search Models",ai_document_search_title:"Search Documents",ai_chat_message_search_title:"Search Chat Messages",ai_junior_scenario_search_title:"Search Junior Scenarios",ai_junior_project_search_title:"Search Junior Projects",read_only_warning2:"Note: you can't save any edits here, because you're not logged in.",no_achievements:"No achievements have been added for this level yet.",achievement_query_misc:"Key achievement off of miscellanea",achievement_query_goals:"Key achievement off of level goals",level_completion:"Level Completion",pop_i18n:"Populate I18N",campaign_show_player_flags:"Show player-facing level flags",ai_translate:"AI Translate",tasks:"Tasks",clear_storage:"Clear your local changes",add_system_title:"Add Systems to Level",done_adding:"Done Adding",product:"Product",link:"Link",clone_to_new_scenario:"Clone to New Scenario",translate_warning_content:"Make sure the doc already Populate the i18n and Saved.",translate_pick_langs:"Pick the Languages you want to transalte.",translate_it:"Translate it!",translating:"Translating..."},article:{edit_btn_preview:"Preview",edit_article_title:"Edit Article"},polls:{priority:"Priority"},contribute:{page_title:"Contributing",intro_blurb:"CodeCombat is part of the open source community! Hundreds of dedicated players have helped us build the game into what it is today. Join us and write the next chapter in CodeCombat's quest to teach the world to code!",alert_account_message_intro:"Hey there!",alert_account_message:"To subscribe for class emails, you'll need to be logged in first.",archmage_introduction:"One of the best parts about building games is they synthesize so many different things. Graphics, sound, real-time networking, social networking, and of course many of the more common aspects of programming, from low-level database management, and server administration to user facing design and interface building. There's a lot to do, and if you're an experienced programmer with a hankering to really dive into the nitty-gritty of CodeCombat, this class might be for you. We would love to have your help building the best programming game ever.",class_attributes:"Class Attributes",archmage_attribute_1_pref:"Knowledge in ",archmage_attribute_1_suf:", or a desire to learn. Most of our code is in this language. If you're a fan of Ruby or Python, you'll feel right at home. It's JavaScript, but with a nicer syntax.",archmage_attribute_2:"Some experience in programming and personal initiative. We'll help you get oriented, but we can't spend much time training you.",how_to_join:"How To Join",join_desc_1:"Anyone can help out! Just check out our ",join_desc_2:"to get started, and check the box below to mark yourself as a brave Archmage and get the latest news by email. Want to chat about what to do or how to get more deeply involved? ",join_desc_3:", or find us in our ",join_desc_4:"and we'll go from there!",join_url_email:"Email us",join_url_slack:"public Slack channel",archmage_subscribe_desc:"Get emails on new coding opportunities and announcements.",artisan_introduction_pref:"We must construct additional levels! People be clamoring for more content, and we can only build so many ourselves. Right now your workstation is level one; our level editor is barely usable even by its creators, so be wary. If you have visions of campaigns spanning for-loops to",artisan_introduction_suf:", then this class might be for you.",artisan_attribute_1:"Any experience in building content like this would be nice, such as using Blizzard's level editors. But not required!",artisan_attribute_2:"A hankering to do a whole lot of testing and iteration. To make good levels, you need to take it to others and watch them play it, and be prepared to find a lot of things to fix.",artisan_attribute_3:"For the time being, endurance en par with an Adventurer. Our Level Editor is super preliminary and frustrating to use. You have been warned!",artisan_join_desc:"Use the Level Editor in these steps, give or take:",artisan_join_step1:"Read the documentation.",artisan_join_step2:"Create a new level and explore existing levels.",artisan_join_step3:"Find us in our public Slack channel for help.",artisan_join_step4:"Post your levels on the subreddit for feedback.",artisan_subscribe_desc:"Get emails on level editor updates and announcements.",adventurer_introduction:"Let's be clear about your role: you are the tank. You're going to take heavy damage. We need people to try out brand-new levels and help identify how to make things better. The pain will be enormous; making good games is a long process and no one gets it right the first time. If you can endure and have a high constitution score, then this class might be for you.",adventurer_attribute_1:"A thirst for learning. You want to learn how to code and we want to teach you how to code. You'll probably be doing most of the teaching in this case, though.",adventurer_attribute_2:"Charismatic. Be gentle but articulate about what needs improving, and offer suggestions on how to improve.",adventurer_join_pref:"Either get together with (or recruit!) an Artisan and work with them, or check the box below to receive emails when there are new levels to test. We'll also be posting about levels to review on our networks like",adventurer_forum_url:"our forum",adventurer_join_suf:"so if you prefer to be notified those ways, sign up there!",adventurer_subscribe_desc:"Get emails when there are new levels to test.",scribe_introduction_pref:"C
2odeCombat isn't just going to be a bunch of levels. It will also include a resource for knowledge, a wiki of programming concepts that levels can hook into. That way rather than each Artisan having to describe in detail what a comparison operator is, they can simply link their level to the Article describing them that is already written for the player's edification. Something along the lines of what the ",scribe_introduction_url_mozilla:"Mozilla Developer Network",scribe_introduction_suf:" has built. If your idea of fun is articulating the concepts of programming in Markdown form, then this class might be for you.",scribe_attribute_1:"Skill in words is pretty much all you need. Not only grammar and spelling, but able to convey complicated ideas to others.",contact_us_url:"Contact Us",scribe_join_description:"tell us a little about yourself, your experience with programming and what sort of things you'd like to write about. We'll go from there!",scribe_subscribe_desc:"Get emails about article writing announcements.",diplomat_introduction_pref:"So, if there's one thing we learned from the ",diplomat_introduction_url:"open source community",diplomat_introduction_suf:"it's that there is sizeable interest in CodeCombat in other countries! We're building a corps of translators eager to turn one set of words into another set of words to get CodeCombat as accessible across the world as possible. If you like getting sneak peeks at upcoming content and getting these levels to your fellow nationals ASAP, then this class might be for you.",diplomat_attribute_1:"Fluency in English and the language you would like to translate to. When conveying complicated ideas, it's important to have a strong grasp in both!",diplomat_i18n_page_prefix:"You can start translating our levels by going to our",diplomat_i18n_page:"translations page",diplomat_i18n_page_suffix:", or our interface and website on GitHub.",diplomat_join_pref_github:"Find your language locale file ",diplomat_github_url:"on GitHub",diplomat_join_suf_github:", edit it online, and submit a pull request. Also, check this box below to keep up-to-date on new internationalization developments!",diplomat_subscribe_desc:"Get emails about i18n developments and levels to translate.",ambassador_introduction:"This is a community we're building, and you are the connections. We've got forums, emails, and social networks with lots of people to talk with and help get acquainted with the game and learn from. If you want to help people get involved and have fun, and get a good feel of the pulse of CodeCombat and where we're going, then this class might be for you.",ambassador_attribute_1:"Communication skills. Be able to identify the problems players are having and help them solve them. Also, keep the rest of us informed about what players are saying, what they like and don't like and want more of!",ambassador_join_desc:"tell us a little about yourself, what you've done and what you'd be interested in doing. We'll go from there!",ambassador_join_step1:"Read the documentation.",ambassador_join_step2:"Find us in our public Slack channel.",ambassador_join_step3:"Help others in the Ambassador category.",ambassador_subscribe_desc:"Get emails on support updates and multiplayer developments.",teacher_subscribe_desc:"Get emails on updates and announcements for teachers.",changes_auto_save:"Changes are saved automatically when you toggle checkboxes.",diligent_scribes:"Our Diligent Scribes:",powerful_archmages:"Our Powerful Archmages:",creative_artisans:"Our Creative Artisans:",brave_adventurers:"Our Brave Adventurers:",translating_diplomats:"Our Translating Diplomats:",helpful_ambassadors:"Our Helpful Ambassadors:"},ladder:{title:"Multiplayer Arenas",arena_title:"__arena__ | Multiplayer Arenas",my_matches:"My Matches",simulate:"Simulate",simulation_explanation:"By simulating games you can get your game ranked faster!",simulation_explanation_leagues:"You will mainly help simulate games for allied players in your clans and courses.",simulate_games:"Simulate Games!",games_simulated_by:"Games simulated by you:",games_simulated_for:"Games simulated for you:",games_in_queue:"Games currently in the queue:",games_simulated:"Games simulated",games_played:"Games played",ratio:"Ratio",leaderboard:"Leaderboard",battle_as:"Battle as ",summary_your:"Your ",summary_matches:"Matches - ",summary_wins:" Wins, ",summary_losses:" Losses",rank_no_code:"No New Code to Rank",rank_my_game:"Rank My Game!",rank_submitting:"Submitting...",rank_submitted:"Submitted for Ranking",rank_failed:"Failed to Rank",rank_being_ranked:"Game Being Ranked",rank_last_submitted:"submitted ",help_simulate:"Help simulate games?",code_being_simulated:"Your new code is being simulated by other players for ranking. This will refresh as new matches come in.",no_ranked_matches_pre:"No ranked matches for the ",no_ranked_matches_post:" team! Play against some competitors and then come back here to get your game ranked.",choose_opponent:"Choose an Opponent",select_your_language:"Select your language!",tutorial_play:"Play Tutorial",tutorial_recommended:"Recommended if you've never played before",tutorial_skip:"Skip Tutorial",tutorial_not_sure:"Not sure what's going on?",tutorial_play_first:"Play the Tutorial first.",simple_ai:"Simple CPU",warmup:"Warmup",friends_playing:"Friends Playing",log_in_for_friends:"Log in to play with your friends!",
2social_connect_blurb:"Connect and play against your friends!",invite_friends_to_battle:"Invite your friends to join you in battle!",fight:"Battle!",watch_victory:"Watch your victory",defeat_the:"Defeat the",watch_battle:"Watch the battle",tournament_starts:"Tournament starts __timeElapsed__",tournament_started:"Tournament started __timeElapsed__",tournament_ends:", will end __timeLeft__",tournament_ended:"Tournament ended __timeLeft__",tournament_results_published:", results published __timeLeft__",tournament_results_wait_publish:", results will be published by owner",tournament_rules:"Tournament Rules",tournament_blurb:"Write code, collect gold, build armies, crush foes, win prizes, and upgrade your career in our $40,000 Greed tournament! Check out the details",tournament_blurb_criss_cross:"Win bids, construct paths, outwit opponents, grab gems, and upgrade your career in our Criss-Cross tournament! Check out the details",tournament_blurb_zero_sum:"Unleash your coding creativity in both gold gathering and battle tactics in this alpine mirror match between red sorcerer and blue sorcerer. The tournament began on Friday, March 27 and will run until Monday, April 6 at 5PM PDT. Compete for fun and glory! Check out the details",tournament_blurb_ace_of_coders:"Battle it out in the frozen glacier in this domination-style mirror match! The tournament began on Wednesday, September 16 and will run until Wednesday, October 14 at 5PM PDT. Check out the details",tournament_blurb_blog:"on our blog",rules:"Rules",winners:"Winners",league:"League",red_ai:"Red CPU",blue_ai:"Blue CPU",wins:"Wins",losses:"Losses",win_num:"Wins",loss_num:"Losses",win_rate:"Win %",humans:"Red",ogres:"Blue",live_tournament:"Live Tournament",awaiting_tournament_title:"Tournament Inactive",awaiting_tournament_blurb:"The tournament arena is not currently active.",tournament_end_desc:"The tournament is over, thanks for playing",age:"Age",age_bracket:"Age Bracket",bracket_0_11:"0-11",bracket_11_14:"11-14",bracket_14_18:"14-18",bracket_11_18:"11-18",bracket_open:"Open",create_tournament:"Create a Tournament",difficulty_beginner:"Beginner",difficulty_intermediate:"Intermediate",difficulty_advanced:"Advanced",ai_league_ends:"Global AI League ends at __time__"},user:{user_title:"__name__ - Learn to Code with CodeCombat",stats:"Stats",singleplayer_title:"Singleplayer Levels",multiplayer_title:"Multiplayer Levels",achievements_title:"Achievements",last_played:"Last Played",status:"Status",status_completed:"Completed",status_unfinished:"Unfinished",no_singleplayer:"No Singleplayer games played yet.",no_multiplayer:"No Multiplayer games played yet.",no_achievements:"No Achievements earned yet.",favorite_prefix:"Favorite language is ",favorite_postfix:".",not_member_of_clans:"Not a member of any clans yet.",certificate_view:"view certificate",certificate_click_to_view:"click to view certificate",certificate_course_incomplete:"course incomplete",certificate_of_completion:"Certificate of Completion",certificate_endorsed_by:"Endorsed by",certificate_stats:"Course Stats",certificate_lines_of:"lines of",certificate_levels_completed:"levels completed",certificate_ai_projects_completed:"AI projects completed",certificate_ai_prompts:"AI Prompts",certificate_for:"For",for_ozaria_chapters_1_4:"For Ozaria Chapters 1 - 4",certificate_number:"No.",heroes_unlocked:"Heroes Unlocked",current_items:"Items Equipped",contributor_badges:"Contributor Badges",contributions_title:"Contributions",type_stat:"Type",patches_submit:"Patches Submitted",patches_approved:"Patches Approved",patches_accepted:"Patches Accepted",level_edits:"Level Edits",total_translations:"Total Translations",campaign_stats:"Stats"},achievements:{last_earned:"Last Earned",amount_achieved:"Amount",achievement:"Achievement",current_xp_prefix:"",current_xp_postfix:" in total",new_xp_prefix:"",new_xp_postfix:" earned",left_xp_prefix:"",left_xp_rank_infix:" until rank ",left_xp_postfix:""},account:{title:"Account",settings_title:"Account Settings",unsubscribe_title:"Unsubscribe",payments_title:"Payments",subscription_title:"Subscription",invoices_title:"Invoices",prepaids_title:"Prepaids",payments:"Payments",prepaid_codes:"Prepaid Codes",purchased:"Purchased",subscribe_for_gems:"Subscribe for gems",subscription:"Subscription",invoices:"Invoices",service_apple:"Apple",service_web:"Web",paid_on:"Paid On",service:"Service",price:"Price",gems:"Gems",active:"Active",subscribed:"Subscribed",unsubscribed:"Unsubscribed",active_until:"Active Until",cost:"Cost",next_payment:"Next Payment",card:"Card",status_unsubscribed_active:"You're not subscribed and won't be billed, but your account is still active for now.",status_unsubscribed:"Get access to new levels, heroes, items, and bonus gems with a CodeCombat subscription!",not_yet_verified:"Not yet verified.",resend_email:"Please save first then Resend email",email_sent:"Email sent! Check your inbox.",verifying_email:"Verifying your email address...",successfully_verified:"You've successfully verified your email address!",verify_error:"Something went wrong when verifying your email :(",unsubscribe_from_marketing:"Unsubscribe __email__ from all CodeCombat marketing emails?",unsubscribe_button:"Yes, unsubscribe",unsubscribe_failed:"Failed",unsubscribe_success:"Success",manage_billing:"Manage Payments",payments_history:"Payments History",no_payments_found:"No payments found",create_a_free_account:"Create a Free Account",individual_inspiration:"Your new favorite game also happens to teach you real code",parent_inspiration:"Safe, teacher-backed coding games that build real skills",individual_completion:"Check your email to dive in! Open the link on your computer for the best way to learn and play while you code.",parent_completion:"Check your email to get started! For the best results, open the link on a computer so your child can learn and play in the best coding environment.",phone_completion:"Open the https://codecombat.cn on your computer for the best way to learn and play while you code.",all_set
2:"You're all set!",date_of_birth:"Date of Birth",unlock_next_level_with_sign_up:"Create a free account to save your progress and continue your coding journey."},account_invoices:{amount:"Amount in US dollars",declined:"Your card was declined",invalid_amount:"Please enter a US dollar amount.",not_logged_in:"Log in or create an account to access invoices.",pay:"Pay Invoice",purchasing:"Purchasing...",retrying:"Server error, retrying.",success:"Successfully paid. Thanks!"},account_prepaid:{purchase_code:"Purchase a Subscription Code",purchase_code1:"Subscription Codes can be redeemed to add premium subscription time to one or more accounts for the Home version of CodeCombat.",purchase_code2:"Each CodeCombat account can only redeem a particular Subscription Code once.",purchase_code3:"Subscription Code months will be added to the end of any existing subscription on the account.",purchase_code4:"Subscription Codes are for accounts playing the Home version of CodeCombat, they cannot be used in place of Student Licenses for the Classroom version.",purchase_code5:"For more information on Student Licenses, reach out to",users:"Users",months:"Months",purchase_total:"Total",purchase_button:"Submit Purchase",your_codes:"Your Codes",redeem_codes:"Redeem a Subscription Code",prepaid_code:"Prepaid Code",lookup_code:"Lookup prepaid code",apply_account:"Apply to your account",copy_link:"You can copy the code's link and send it to someone.",quantity:"Quantity",redeemed:"Redeemed",no_codes:"No codes yet!",you_can1:"You can",you_can2:"purchase a prepaid code",you_can3:"that can be applied to your own account or given to others.",prepaid_add_months:"This prepaid code adds <strong>__months__ months of subscription</strong> to your account.",can_use_times:"It can be used <strong>__unlocksLeft__ more</strong> times.",prepaid_applied_success:"Prepaid applied to your account!",activation_code_used:"The Activation code has been used.",activation_code_expired:"The Activation code has been expired.",activation_code_not_found:"The Activation code is not found.",redeem_code_error:"Error: Could not redeem prepaid code. "},ozaria_chrome:{sound_off:"Mute",sound_on:"Unmute",back_to_map:"Back to Map",level_options:"Level Options",restart_level:"Restart Level",max_browser:"Maximize Browser",ai_hint:"AI Hint"},impact:{hero_heading:"Building A World-Class Computer Science Program",hero_subheading:"We Help Empower Educators and Inspire Students Across the Country",featured_partner_story:"Featured Partner Story",partner_heading:"Successfully Teaching Coding at a Title I School",partner_school:"Bobby Duke Middle School",featured_teacher:"Scott Baily",teacher_title:"Technology Teacher Coachella, CA",implementation:"Implementation",grades_taught:"Grades Taught",length_use:"Length of Use",length_use_time:"3 years",students_enrolled:"Students Enrolled this Year",students_enrolled_number:"130",courses_covered:"Courses Covered",course1:"CompSci 1",course2:"CompSci 2",course3:"CompSci 3",course4:"CompSci 4",course5:"GameDev 1",fav_features:"Favorite Features",responsive_support:"Responsive Support",immediate_engagement:"Immediate Engagement",paragraph1:"Bobby Duke Middle School sits nestled between the Southern California mountains of Coachella Valley to the west and east and the Salton Sea 33 miles south, and boasts a student population of 697 students within Coachella Valley Unifiedâs district-wide population of 18,861 students.",paragraph2:"The students of Bobby Duke Middle School reflect the socioeconomic challenges facing Coachella Valleyâs residents and students within the district. With over 95% of the Bobby Duke Middle School student population qualifying for free and reduced-price meals and over 40% classified as English language learners, the importance of teaching 21st century skills was the top priority of Bobby Duke Middle School Technology teacher, Scott Baily.",paragraph3:"Baily knew that teaching his students coding was a key pathway to opportunity in a job landscape that increasingly prioritizes and necessitates computing skills. So, he decided to take on the exciting challenge of creating and teaching the only coding class in the school and finding a solution that was affordable, responsive to feedback, and engaging to students of all learning abilities and backgrounds.",teacher_quote:"When I got my hands on CodeCombat [and] started having my students use it, the light bulb went on. It was just night and day from every other program that we had used. Theyâre not even close.",quote_attribution:"Scott Baily, Technology Teacher",read_full_story:"Read Full Story",more_stories:"More Partner Stories",partners_heading_1:"Supporting Multiple CS Pathways in One Class",partners_school_1:"Preston High School",partners_heading_2:"Excelling on the AP Exam",partners_school_2:"River Ridge High School",partners_heading_3:"Teaching Computer Science Without Prior Experience",partners_school_3:"Riverdale High School",download_study:"Download Research Study",teacher_spotlight:"Teacher & Student Spotlights",teacher_name_1:"Amanda Henry",teacher_title_1:"Rehabilitation Instru
2ctor",teacher_location_1:"Morehead, Kentucky",spotlight_1:"Through her compassion and drive to help those who need second chances, Amanda Henry helped change the lives of students who need positive role models. With no previous computer science experience, Henry led her students to coding success in a regional coding competition.",teacher_name_2:"Kaila, Student",teacher_title_2:"Maysville Community & Technical College",teacher_location_2:"Lexington, Kentucky",spotlight_2:"Kaila was a student who never thought she would be writing lines of code, let alone enrolled in college with a pathway to a bright future.",teacher_name_3:"Susan Jones-Szabo",teacher_title_3:"Teacher Librarian",teacher_school_3:"Ruby Bridges Elementary",teacher_location_3:"Alameda, CA",spotlight_3:"Susan Jones-Szabo promotes an equitable atmosphere in her class where everyone can find success in their own way. Mistakes and struggles are welcomed because everyone learns from a challenge, even the teacher.",continue_reading_blog:"Continue Reading on Blog...",ozaria_impact_title:"Positive Impacts with Ozaria",ozaria_impact_blurb:"CodeCombat's sister curriculum, Ozaria, has proven to have a positive impact on the student learning outcomes that matter most to both students and educators.",ozaria_impact_learn_more:"Learn more about Ozaria's curriculum efficacy here."},loading_error:{could_not_load:"Error loading from server. Try refreshing the page.",connection_failure:"Connection Failed",connection_failure_desc:"It doesnât look like youâre connected to the internet! Check your network connection and then reload this page.",login_required:"Login Required",login_required_desc:"You need to be logged in to access this page.",unauthorized:"You need to be signed in. Do you have cookies disabled?",forbidden:"Forbidden",forbidden_desc:"Oh no, thereâs nothing we can show you here! Make sure youâre logged into the correct account, or visit one of the links below to get back to programming!",user_not_found:"User Not Found",not_found:"Not Found",resource_not_found:"404 __resource__ Not Found",not_found_desc:"Hm, thereâs nothing here. Visit one of the following links to get back to programming!",not_allowed:"Method not allowed.",timeout:"Server Timeout",conflict:"Resource conflict.",bad_input:"Bad input.",server_error:"Server error.",unknown:"Unknown Error",error:"ERROR",general_desc:"Something went wrong, and itâs probably our fault. Try waiting a bit and then refreshing the page, or visit one of the following links to get back to programming!",too_many_login_failures:"There have been too many unsuccessful login attempts. Please try again later.",something_went_wrong:"Oops! Something went wrong",phone_code_error:"SMS Code Dismatch",back_to_dashboard:"Back to Dashboard"},resources:{level:"Level",patch:"Patch",patches:"Patches",system:"System",systems:"Systems",component:"Component",components:"Components",hero:"Hero",campaigns:"Campaigns"},concepts:{abstraction:"Abstraction",accessibility:"Accessibility",advanced_algorithms:"Advanced Algorithms",advanced_css:"Advanced CSS",advanced_css_rules:"Advanced CSS Rules",advanced_css_selectors:"Advanced CSS Selectors",advanced_html:"Advanced HTML",advanced_html_attributes:"Advanced HTML Attributes",advanced_html_tags:"Advanced HTML Tags",advanced_prompt_engineering:"Advanced Prompt Engineering",advanced_strings:"Advanced Strings",advanced_web_scripting:"Advanced Web Scripting",agile_development:"Agile Development",ai_systems:"AI Systems",algorithms:"Algorithms",algorithm_average:"Algorithm Average",algorithm_find_minmax:"Algorithm Find Min/Max",algorithm_search_binary:"Algorithm Search Binary",algorithm_search_graph:"Algorithm Search Graph",algorithm_sort:"Algorithm Sort",algorithm_sum:"Algorithm Sum",alter_existing_web_pages:"Alter existing web pages",application_programming_interface:"Application Programming Interface (APIs)",arguments:"Arguments",arithmetic:"Arithmetic",array_2d:"2D Array",array_index:"Array Indexing",array_iterating:"Iterating Over Arrays",array_literals:"Array Literals",array_searching:"Array Searching",array_sorting:"Array Sorting",arrays:"Arrays",asymmetric_cryptography:"Asymmetric Cryptography",attack_surface:"Attack Surface",authentication:"Authentication",authorization:"Authorization",availability:"Availability",bandwidth:"Bandwidth",basic_css:"Basic CSS",basic_css_rules:"Basic CSS rules",basic_css_selectors:"Basic CSS selectors",basic_event_handling:"Basic Event Handling",basic_game_ai:"Basic Game AI",basic_html:"Basic HTML",basic_html_attributes:"Basic HTML Attributes",basic_html_tags:"Basic HTML Tags",basic_input_handling:"Basic Input Handling",basic_javascript:"Basic JavaScript",basic_syntax:"Basic Syntax",basic_web_scripting:"Basic Web Scripting",b
2ias:"Bias",binary:"Binary",boolean_and:"Boolean And",boolean_equality:"Boolean Equality",boolean_greater_less:"Boolean Greater/Less",boolean_inequality:"Boolean Inequality",boolean_logic:"Boolean Logic",boolean_logic_shortcircuit:"Boolean Logic Shortcircuiting",boolean_not:"Boolean Not",boolean_operator_precedence:"Boolean Operator Precedence",boolean_or:"Boolean Or",boolean_with_xycoordinates:"Coordinate Comparison",bootstrap:"Bootstrap",bpa:"BPA",branches:"Branches",breach:"Breach",break_statements:"Break Statements",calling_functions:"Calling Functions",career_technical_student_organizations:"Career-Technical Student Organizations (CTSOs)",central_tendency:"Central Tendency",chatbot:"Chatbot",cia_triad:"CIA Triad",classes:"Classes",classification:"Classification",cloning:"Cloning",clustering:"Clustering",collaboration:"Collaboration",command_line:"Command-Line",commits:"Commits",communication:"Communication",comparators:"Comparators",comparison_operators:"Comparison Operators",competitions:"Competitions",compound_conditionals:"Compound Conditionals",computational_thinking:"Computational Thinking",computer_networks:"Computer Networks",computing_devices:"Computing Devices",conditionals:"Conditionals",confidence_intervals:"Confidence Intervals",confidentiality:"Confidentiality",configurations:"Configurations",congruence:"Congruence",consoles:"Consoles",construct_mazes:"Construct mazes",continue_statements:"Continue Statements",create_playable_game:"Create a playable, sharable game project",create_sharable_interactive_web_page:"Create a sharable interactive web page",create_sharable_web_page:"Create a sharable web page",creative_commons:"Creative Commons",critical_thinking:"Critical Thinking",cryptography:"Cryptography",cyber_attacks:"Cyber Attacks",cyberpatriot:"CyberPatriot",dashboards:"Dashboards",data:"Data",data_and_analysis:"Data & Analysis",data_structures:"Data Structures",data_types:"Data Types",data_visualizations:"Data Visualizations",data_wrangling:"Data Wrangling",databases:"Databases",dataset:"Dataset",debugging:"Debugging",deca:"DECA",decision_trees:"Decision Trees",decomposition:"Decomposition",decryption:"Decryption",defense_in_depth:"Defense-In-Depth",defining_functions:"Defining Functions",design_thinking:"Design Thinking",distance:"Distance",dns:"DNS",documentation:"Documentation",dom_events:"DOM Events",dot_notation:"Dot Notation",dynamic_styling:"Dynamic Styling",elimination:"Elimination",encryption:"Encryption",equations:"Equations",ethics:"Ethics",events:"Events",event_concurrency:"Event Concurrency",event_data:"Event Data",event_handlers:"Event Handlers",event_spawn:"Spawn Event",exponential_functions:"Exponential Functions",expressions:"Expressions",fault_tolerance:"Fault Tolerance",fbla:"FBLA",fccla:"FCCLA",features:"Features",fetching:"Fetching",ffa:"FFA",file_management:"File Management",file_systems:"File Systems",firewalls:"Firewalls",floats:"Floats",for_loops:"For Loops",for_loops_nested:"Nested For Loops",for_loops_range:"For Loops Range",forks:"Forks",frequency:"Frequency",function_tables:"Function Tables",functions:"Functions",functions_parameters:"Parameters",functions_multiple_parameters:"Multiple Parameters",fundraising:"Fundraising",game_ai:"Game AI",game_design:"Game Design",game_goals:"Game Goals",game_spawn:"Game Spawn",generation:"Generation",genetic_algorithms:"Genetic Algorithms",geometric_transformations:"Geometric Transformations",git_github:"Git / GitHub",graphics:"Graphics",graphs:"Graphs",hardening:"Hardening",hardware:"Hardware",hash_maps:"Hash Maps",hashing:"Hashing",heaps:"Heaps",hosa:"HOSA",human_centered_design:"Human-Centered Design",hypothesis_testing:"Hypothesis Testing",if_condition:"Conditional If Statements",if_else_if:"If/Else If Statements",if_else_statements:"If/Else Statements",if_statements:"If Statements",if_statements_nested:"Nested If Statements",incident:"Incident",incident_reports:"Incident Reports",indexing:"Array Indexes",inequalities:"Inequalities",input_handling:"Input Handling",input_handling_flags:"Input Handling - Flags",input_handling_keyboard:"Input Handling - Keyboard",input_handling_mouse:"Input Handling - Mouse",input
2s_outputs:"Inputs / Outputs",integers:"Integers",integrated_development_environments:"Integrated Development Environments (IDEs)",intermediate_css:"Intermediate CSS",intermediate_css_rules:"Intermediate CSS Rules",intermediate_css_selectors:"Intermediate CSS Selectors",intermediate_html:"Intermediate HTML",intermediate_html_attributes:"Intermediate HTML Attributes",intermediate_html_tags:"Intermediate HTML Tags",intermediate_web_scripting:"Intermediate Web Scripting",internal_memos:"Internal Memos",internet:"Internet",ip_addresses:"IP Addresses",iteration:"Iteration",jquery:"jQuery",jquery_animations:"jQuery Animations",jquery_filtering:"jQuery Element Filtering",jquery_selectors:"jQuery Selectors",k_means:"K-Means",k_nearest_neighbors:"K-Nearest Neighbors",large_language_model:"Large Language Model (LLM)",leadership:"Leadership",leaks:"Leaks",length:"Array Length",library:"Library",linear_functions:"Linear Functions",linear_regression:"Linear Regression",linked_lists:"Linked Lists",linux:"Linux",lists:"Lists",logical_errors:"Logical Errors",logical_operators:"Logical Operators",logs:"Logs",loops:"Loops",machine_learning:"Machine Learning",malware:"Malware",math_coordinates:"Coordinate Math",math_geometry:"Geometry",math_operations:"Math Library Operations",math_proportions:"Proportion Math",math_trigonometry:"Trigonometry",matrices:"Matrices",merge_conflicts:"Merge Conflicts",methods:"Methods",midpoints:"Midpoints",mitigation:"Mitigation",model:"Model",models:"Models",modulo:"Modulo",naive_bayes:"Naive Bayes",nesting:"Nesting",network_segmentation:"Network Segmentation",neural_networks:"Neural Networks",object_oriented_programming:"Object Oriented Programming (OOP)",objects:"Objects",object_literals:"Object Literals",open_source:"Open Source",operating_systems:"Operating Systems",optimization:"Optimization",parallel_lines:"Parallel Lines",parameters:"Parameters",passwords:"Passwords",penetration_test_reports:"Penetration Test Reports",penetration_testing:"Penetration Testing",perpendicular_lines:"Perpendicular Lines",personally_identifiable_information:"Personally Identifiable Information (PII)",philanthropy:"Philanthropy",physical_security:"Physical Security",place_game_objects:"Place game objects",point_slope_form:"Point Slope Form",policies:"Policies",prediction:"Prediction",privacy:"Privacy",problem_solving:"Problem Solving",procedures:"Procedures",professional_emails:"Professional Emails",programs:"Programs",prompt_engineering:"Prompt Engineering",proofs:"Proofs",properties:"Properties",properties_attributes:"Properties / Attributes",property_access:"Accessing Properties",property_assignment:"Assigning Properties",property_coordinate:"Coordinate Property",prototypes:"Prototypes",pseudocode:"Pseudocode",public_speaking:"Public Speaking",pull_requests:"Pull Requests",push:"Push",q_learning:"Q Learning",queues:"Data Structures - Queues",random_forests:"Random Forests",ransomware:"Ransomware",reading_docs:"Reading the Docs",recommendation:"Recommendation",recursion:"Recursion",redundancy:"Redundancy",regulation:"Regulation",reinforcement_learning:"Reinforcement Learning",repositories:"Repositories",resilience:"Resilience",resumes:"Resumes",return_statements:"Return Statements",risk_assessments:"Risk Assessments",router:"Router",scalability:"Scalability",scrum:"Scrum",security_controls:"Security Controls",selection:"Selection",sequences:"Sequences",sequences_algorithms:"Sequences & Algorithms",servers:"Servers",simulations:"Simulations",skillsusa:"SkillsUSA",slack:"Slack",slope_intercept_form:"Slope Intercept Form",social_engineering:"Social Engineering",social_events:"Social Events",software:"Software",specifications:"Specifications",spread:"Spread",stacks:"Data Structures - Stacks",standard_form:"Standard Form",statements:"Statements",strings:"Strings",strings_concatenation:"String Concatenation",strings_substrings:"Substring",student_code:"Student Code",substitution:"Substitution",supervised_learning:"Supervised Learning",symmetric_cryptography:"Symmetric Cryptography",syntax:"Syntax",syntax_errors:"Syntax Errors",systems_of_equations:"Systems of Equations",threat:"Threat",threat_actors:"Threat Actors",threat_vectors:"Threat Vectors",time_management:"Time Management",training_and_testing:"Training and Testing",translation:"Translation",trees:"Data Structures - Trees",tsa:"TSA",unsupervised_learning:"Unsupervised Learning",updates_and_patches:"Updates and Patches",user_experience:"User Experience (UX)",variables:"Variables",vectors:"Vectors",version_control_softw
2are:"Version Control Software",vibe_coding:"Vibe Coding",while_condition_loops:"While Loops with Conditionals",while_loops:"While Loops",while_loops_simple:"While Loops",while_loops_nested:"Nested While Loops",wi_fi:"Wi-Fi",xy_coordinates:"Coordinate Pairs"},anonymous_teacher:{notify_teacher:"Notify Teacher",create_teacher_account:"Create free teacher account",enter_student_name:"Your name:",enter_teacher_email:"Your teacher's email:",teacher_email_placeholder:"[email protected]",student_name_placeholder:"type your name here",teachers_section:"Teachers:",students_section:"Students:",teacher_notified:"We've notified your teacher that you want to play more CodeCombat in your classroom!"},delta:{added:"Added",modified:"Modified",not_modified:"Not Modified",deleted:"Deleted",moved_index:"Moved Index",text_diff:"Text Diff",merge_conflict_with:"MERGE CONFLICT WITH",no_changes:"No Changes"},legal:{page_title:"Legal",opensource_introduction:"CodeCombat is part of the open source community.",opensource_description_prefix:"Check out ",github_url:"our GitHub",opensource_description_center:"and help out if you like! CodeCombat is built on dozens of open source projects, and we love them. See ",archmage_wiki_url:"our Archmage wiki",opensource_description_suffix:"for a list of the software that makes this game possible.",practices_title:"Respectful Best Practices",practices_description:"These are our promises to you, the player, in slightly less legalese.",privacy_title:"Privacy",privacy_description:"We will not sell any of your personal information.",security_title:"Security",security_description:"We strive to keep your personal information safe. As an open source project, our site is freely open to anyone to review and improve our security systems.",email_title:"Email",email_description_prefix:"We will not inundate you with spam. Through",email_settings_url:"your email settings",email_description_suffix:"or through links in the emails we send, you can change your preferences and easily unsubscribe at any time.",cost_title:"Cost",cost_description:"CodeCombat is free to play for its introductory levels, with a $__price__ USD/mo subscription for access to extra levels and __gems__ bonus gems per month. You can cancel with a click, and we offer a 100% money-back guarantee.",copyrights_title:"Copyrights and Licenses",contributor_title:"Contributor License Agreement",contributor_description_prefix:"All contributions, both on the site and on our GitHub repository, are subject to our",cla_url:"CLA",contributor_description_suffix:"to which you should agree before contributing.",code_title:"Client-Side Code - MIT",client_code_description_prefix:"All client-side code for codecombat.com in the public GitHub repository and in the codecombat.com database, is licensed under the",mit_license_url:"MIT license",code_description_suffix:"This includes all code in Systems and Components that are made available by CodeCombat for the purpose of creating levels.",art_title:"Art/Music - Creative Commons ",art_description_prefix:"All common content is available under the",cc_license_url:"Creative Commons Attribution 4.0 International License",art_description_suffix:"Common content is anything made generally available by CodeCombat for the purpose of creating Levels. This includes:",art_music:"Music",art_sound:"Sound",art_artwork:"Artwork",art_sprites:"Sprites",art_other:"Any and all other non-code creative works that are made available when creating Levels.",art_access:"Currently there is no universal, easy system for fetching these assets. In general, fetch them from the URLs as used by the site, contact us for assistance, or help us in extending the site to make these assets more easily accessible.",art_paragraph_1:"For attribution, please name and link to codecombat.com near where the source is used or where appropriate for the medium. For example:",use_list_1:"If used in a movie or another game, include codecombat.com in the credits.",use_list_2:"If used on a website, include a link near the usage, for example underneath an image, or in a general attributions page where you might also mention other Creative
2Commons works and open source software being used on the site. Something that's already clearly referencing CodeCombat, such as a blog post mentioning CodeCombat, does not need some separate attribution.",art_paragraph_2:"If the content being used is created not by CodeCombat but instead by a user of codecombat.com, attribute them instead, and follow attribution directions provided in that resource's description if there are any.",rights_title:"Rights Reserved",rights_desc:"All rights are reserved for Levels themselves. This includes",rights_scripts:"Scripts",rights_unit:"Unit configuration",rights_writings:"Writings",rights_media:"Media (sounds, music) and any other creative content made specifically for that Level and not made generally available when creating Levels.",rights_clarification:"To clarify, anything that is made available in the Level Editor for the purpose of making levels is under CC, whereas the content created with the Level Editor or uploaded in the course of creation of Levels is not.",nutshell_title:"In a Nutshell",nutshell_description:"Any resources we provide in the Level Editor are free to use as you like for creating Levels. But we reserve the right to restrict distribution of the Levels themselves (that are created on codecombat.com) so that they may be charged for.",nutshell_see_also:"See also:",canonical:"The English version of this document is the definitive, canonical version. If there are any discrepancies between translations, the English document takes precedence.",third_party_title:"Third Party Services",third_party_description:"CodeCombat uses the following third party services (among others):",cookies_message:"CodeCombat uses a few essential and non-essential cookies.",cookies_deny:"Decline non-essential cookies",cookies_allow:"Allow cookies"},ladder_prizes:{title:"Tournament Prizes",blurb_1:"These prizes will be awarded according to",blurb_2:"the tournament rules",blurb_3:"to the top human and ogre players.",blurb_4:"Two teams means double the prizes!",blurb_5:"(There will be two first place winners, two second-place winners, etc.)",rank:"Rank",prizes:"Prizes",total_value:"Total Value",in_cash:"in cash",custom_wizard:"Custom CodeCombat Wizard",custom_avatar:"Custom CodeCombat avatar",heap:'for six months of "Startup" access',credits:"credits",one_month_coupon:"coupon: choose either Rails or HTML",one_month_discount:"discount, 30% off: choose either Rails or HTML",license:"license",oreilly:"ebook of your choice"},calendar:{year:"Year",day:"Day",month:"Month",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December"},code_play_create_account_modal:{title:"You did it!",body:"You are now on your way to becoming a master coder. Sign up to receive an extra <strong>100 Gems</strong> & you will also be entered for a chance to <strong>win $2,500 & other Lenovo Prizes</strong>.",sign_up:"Sign up & keep coding â¶",victory_sign_up_poke:"Create a free account to save your code & be entered for a chance to win prizes!",victory_sign_up:"Sign up & be entered to <strong>win $2,500</strong>"},server_error:{email_taken:"Email already taken",username_taken:"Username already taken",easy_password:"Password is too easy to guess",reused_password:"Password cannot be reused"},esper:{line_no:"Line $1: ",uncaught:"Uncaught $1",reference_error:"ReferenceError: ",argument_error:"ArgumentError: ",type_error:"TypeError: ",syntax_error:"SyntaxError: ",error:"Error: ",x_not_a_function:"`$1` is not a function",x_not_defined:"`$1` is not defined",spelling_issues:"Look out for spelling issues: did you mean `$1` instead of `$2`?",capitalization_issues:"Look out for capitalization: `$1` should be `$2`.",py_empty_block:"Empty $1. Put 4 spaces in front of statements inside the $2 statement.",fx_missing_paren:"If you want to call `$1` as a function, you need `()`'s",unmatched_token:"Unmatched `$1`. Every opening `$2` needs a closing `$3` to match it.",unterminated_string:'Unterminated string. Add a matching `"` at the end of your string.',missing_semicolon:"Missing semicolon.",missing_quotes:"Missing quotes. Try `$1`",argument_type:"`$1`'s argument `$2` should have type `$3`, but got `$4`: `$5`.",argument_type2:"`$1`'s argument `$2` should have type `$3`, but got `$4`.",target_a_unit:"Target a unit.",attack_capitalization:"Attack `$1`, not `$2`. (Capital letters are important.)",empty_while:"Empty while statement. Put 4 spaces in front of statements inside the while statement.",line_of_site:"`$1`'s argument `$2` has a problem. Is there an enemy within your line-of-sight yet?",need_a_after_while:"Need a `$1` after `$2`.",too_much_indentation:"Too much indentation at the beginning of this line.",missing_hero:"Missing `$1` keyword; should be `$2`.",takes_no_arguments:"`$1` takes no arguments.",no_one_named:'There\'s no one named `"$1"` to target.',separated_by_comma:"Function calls paramaters must be seperated by `,`s",protected_property:"Can't read protected property: $1",need_parens_to_call:"If you want to call `$1` as function, you need `()`'
2s",expected_an_identifier:"Expected an identifier and instead saw '$1'.",unexpected_identifier:"Unexpected identifier",unexpected_end_of:"Unexpected end of input",unnecessary_semicolon:"Unnecessary semicolon.",unexpected_token_expected:"Unexpected token: expected `$1` but found `$2` while parsing `$3`",unexpected_token:"Unexpected token $1",unexpected_token2:"Unexpected token",unexpected_number:"Unexpected number",unexpected:"Unexpected '$1'.",escape_pressed_code:"Escape pressed; code aborted.",target_an_enemy:"Target an enemy by name, like `$1`, not the string `$2`.",target_an_enemy_2:"Target an enemy by name, like `$1`.",cannot_read_property:"Cannot read property `$1` of `undefined`",attempted_to_assign:"Attempted to assign to readonly property.",unexpected_early_end:"Unexpected early end of program.",you_need_a_string:"You need a string to build; one of `$1`",unable_to_get_property:"Unable to get property '$1' of undefined or null reference",code_never_finished_its:"Code never finished. It's either really slow or has an infinite loop.",unclosed_string:"Unclosed string.",unmatched:"Unmatched `$1`.",error_you_said_achoo:"You said: `$1`, but the password is: `$2`. (Capital letters are important.)",indentation_error_unindent_does:"Indentation Error: unindent does not match any outer indentation level",indentation_error:"Indentation error.",need_a_on_the:"Need a `:` on the end of the line following `$1`.",attempt_to_call_undefined:"attempt to call `$1` (a nil value)",unterminated:"Unterminated `$1`",target_an_enemy_variable:"Target an `$1` variable, not the string `$2`. (Try using `$3`.)",error_use_the_variable:"Use the variable name like `$1` instead of a string like `$2`",indentation_unindent_does_not:"Indentation unindent does not match any outer indentation level",unclosed_paren_in_function_arguments:"Unclosed `$1` in function arguments.",unexpected_end_of_input:"Unexpected end of input",there_is_no_enemy:"There is no `$1`. Use `$2` first.",try_herofindnearestenemy:"Try `$1`",there_is_no_function:"There is no function `$1`, but `$2` has a method `$3`.",attacks_argument_enemy_has:"`$1`'s argument `$2` has a problem.",is_there_an_enemy:"Is there an enemy within your line-of-sight yet?",target_is_null_is:"Target is `$1`. Is there always a target to attack? (Use `$2`?)",hero_has_no_method:"`$1` has no method `$2`.",there_is_a_problem:"There is a problem with your code.",did_you_mean:"Did you mean `$1`? You do not have an item equipped with that skill.",missing_a_quotation_mark:"Missing a quotation mark. ",missing_var_use_var:"Missing `$1`. Use `$2` to make a new variable.",you_do_not_have:"You do not have an item equipped with the `$1` skill.",put_each_command_on:"Put each command on a separate line",are_you_missing_a:"Are you missing a `$1` after `$2`? ",your_parentheses_must_match:"Your parentheses must match.",missing_parentheses:"Missing parentheses? Try `__suggestion__`",do_nothing_without_parentheses:"`__code__` doesn't do anything without `()`",error_index_empty:"Cannot read property `__name__` of `__specTypeName__`",error_call_non_function:"`__name__` is not a function.",error_not_iterable:"`__var__` is not iterable.",error_assignment_invalid:"Invalid reference in assignment.",error_invalid_array_length:"Invalid array length.",error_didnt_make_generator:"`__name__` didn't make a generator.",error_undefined_variable:"`__name__` is not defined.",error_declared_identifier:"Identifier `__name__` has already been declared.",error_declarations_cant_resolve:"Couldn't resolve declarations component: `__type__`.",error_strict_no_statement:"Strict mode code may not include a `with` statement.",error_cant_resolve_ref_component:"Couldn't resolve ref component: `__type__`.",error_cant_convert_null:"Cannot convert `undefined` or `null` to object.",error_need_object:"Need an object.",error_illegal_object_prototype:"Object prototype may only be an `Object` or `null`.",error_no_prototype:"No prototype.",error_cant_write_property_to_undefined:"Can't write property of `undefined`: `__idx__`.",error_cant_write_property_to_non_obj:"Can't write property of non-object type: `__idx__`.",error_function_isnt_constructor:"function is not a constructor",error_write_protected_property:"Can't write to protected property: `__name__`",error_read_protected_property:"Can't read protected property: `__name__`",error_convert_value_failed:"Cannot convert `__orig__` value to `__new__` value.",error_convert_object_to_primitive:"Cannot convert object to primitive value.",error_first_argument_to_be_function:"First argument to `__fun__` must be a function.",error_write_non_writable:"Can't write to non-writable value.",error_delete_nonconfigurable_object:"Can't delete non configurable object.",error_cant_access_get:"Can't access get `__name__` of that type.",error_base_obj_not_invokable:"Base object not invokable.",error_arg2_not_callable:"Arg2 not callable.",error_reduce_empty_array_without_init:"Reduce an empty array with
2no initial value.",error_realm_prototype_not_realm:"Realm prototype not realm.",error_function_tostring_not_generic:"Function.prototype.toString is not generic",error_regex_on_non_regex:"Calling regex method on non regex.",error_call_string_on_null:"called String function on null or undefined?",error_wrong_type:"Wrong Type.",error_replace_callback_not_written:"Replace with callbacks not written yet",error_right_hand_side_not_callable:"Right-hand side of `__name__` is not callable",error_segmentation_fault:"Segmentation Fault `__offset__`.",error_no_arg_to_reference:"No argument to reference.",error_unimplemented_property:"Unimplemented property type.",error_unimplemented:"Unimplemented.",error_cant_call_reference:"Can't call reference like that.",error_no_arg_to_dereference:"No argument to dereference.",error_try_dereference_non:"Tried to dereference non pointer.",error_no_arg_to_alloc:"No argument to alloc."},apcsp:{title:"AP Computer Science Principals | College Board Endorsed",meta_description:"CodeCombatâs comprehensive curriculum and professional development program are all you need to offer College Boardâs newest computer science course to your students.",syllabus:"AP CS Principles Syllabus",syllabus_description:"Use this resource to plan CodeCombat curriculum for your AP Computer Science Principles class.",computational_thinking_practices:"Computational Thinking Practices",learning_objectives:"Learning Objectives",curricular_requirements:"Curricular Requirements",unit_1:"Unit 1: Creative Technology",unit_1_activity_1:"Unit 1 Activity: Technology Usability Review",unit_2:"Unit 2: Computational Thinking",unit_2_activity_1:"Unit 2 Activity: Binary Sequences",unit_2_activity_2:"Unit 2 Activity: Computing Lesson Project",unit_3:"Unit 3: Algorithms",unit_3_activity_1:"Unit 3 Activity: Algorithms - Hitchhiker's Guide",unit_3_activity_2:"Unit 3 Activity: Simulation - Predator & Prey",unit_3_activity_3:"Unit 3 Activity: Algorithms - Pair Design and Programming",unit_4:"Unit 4: Programming",unit_4_activity_1:"Unit 4 Activity: Abstractions",unit_4_activity_2:"Unit 4 Activity: Searching & Sorting",unit_4_activity_3:"Unit 4 Activity: Refactoring",unit_5:"Unit 5: The Internet",unit_5_activity_1:"Unit 5 Activity: How the Internet Works",unit_5_activity_2:"Unit 5 Activity: Internet Simulator",unit_5_activity_3:"Unit 5 Activity: Chat Room Simulation",unit_5_activity_4:"Unit 5 Activity: Cybersecurity",unit_6:"Unit 6: Data",unit_6_activity_1:"Unit 6 Activity: Introduction to Data",unit_6_activity_2:"Unit 6 Activity: Big Data",unit_6_activity_3:"Unit 6 Activity: Lossy & Lossless Compression",unit_7:"Unit 7: Personal & Global Impact",unit_7_activity_1:"Unit 7 Activity: Personal & Global Impact",unit_7_activity_2:"Unit 7 Activity: Crowdsourcing",unit_8:"Unit 8: Performance Tasks",unit_8_description:"Prepare students for the Create Task by building their own games and practicing key concepts.",unit_8_activity_1:"Create Task Practice 1: Game Development 1",unit_8_activity_2:"Create Task Practice 2: Game Development 2",unit_8_activity_3:"Create Task Practice 3: Game Development 3",unit_9:"Unit 9: AP Review",unit_10:"Unit 10: Post-AP",unit_10_activity_1:"Unit 10 Activity: Web Quiz"},apcsp_marketing:{course_outline_unit_1:"Unit 1",course_outline_unit_2:"Unit 2",course_outline_unit_3:"Unit 3",course_outline_unit_4:"Unit 4",course_outline_unit_5:"Unit 5",course_outline_unit_6:"Unit 6",course_outline_unit_7:"Unit 7",course_outline_unit_8:"Unit 8",course_outline_unit_9:"Unit 9",course_outline_course_1:"Computer Science 1",course_outline_course_2:"Computer Science 2",course_outline_course_3:"Computer Science 3",course_outline_course_4:"Computer Science 4",course_outline_course_5:"Creative Development",course_outline_course_6:"Data",course_outline_course_7:"Computer Systems and Networks",course_outline_course_8:"Impact of Computing",course_outline_course_9:"Exam Prep",course_outline_description_1:"Students begin the course focusing on creativity, problem solving, and the basic syntax of Python.",course_outline_description_2:"Students focus on designing and implementing algorithms using the building blocks of Python.",course_outline_description_3:"Students explore the concept of abstraction by developing their own abstractions inside program code.",course_outline_description_4:"Students apply their understanding of problem solving, algorithms, and abstractions to design and implement digital games.",course_outline_description_5:"Students use all that they have learned about Python to complete and submit their Create Performance Task.",course_outline_description_6:"Students learn how computers consume, transform, store, and produce new information in order to solve problems.",course_outline_description_7:"Students experience the power of sharing information via computer networks by learning about the Internet.",course_outline_description_8:"Students examine how computing has revolutionized our lives and s
2ociety.",course_outline_description_9:"Students prepare to take the multiple choice section of the AP CSP exam.",icons_coding_levels:"150+ CodeCombat Coding Levels",icons_lesson_slides:"60+ Turnkey Lesson Slides",icons_kahoot:"400+ Kahoot! Quiz Questions",icons_classroom_instructions:"100+ Hours of Classroom Instruction",icons_weeks_of_curriculum:"26 Weeks of Curriculum",icons_project_activities:"25+ Project-Based Activities",icons_game_learning:"Game-Based Learning",icons_text_coding:"Text-Based Coding",icons_chromebook_compatible:"Chromebook Compatible",icons_standards_aligned:"Standards-Aligned Lessons",page_title:"AP Computer Science Principles",page_description:"Our AP CSP curriculum provides game-based and turnkey tools to prepare students for the AP exam.",page_description_endorsed:"Endorsed by the College Board, our AP CSP curriculum provides game-based and turnkey tools to prepare students for the AP exam.",request_access:"Request Access",game_based_learning:"Game-Based Learning",game_based_learning_description:"Our innovative game-based learning technology has transformed the way students prepare for the AP CSP exam. Through our browser-based games, students learn about important exam topics while exercising the critical thinking skills that are necessary for success on the exam.",fostering_confidence:"Fostering Confidence in the AP Exam",fostering_confidence_description:"With our curriculum, students will practice every stage of the Create Task through scaffolded and approachable capstone projects that can be adapted to a wide variety of student needs. We also provide curriculum and Kahoot! quizzes for students to practice multiple choice exam questions.",accessible_real_world:"Accessible & Real-World Connections",accessible_real_world_description:"For Data, Impacts of Computing, and additional Big Ideas, our turnkey lesson slides help students explore these topics through meaningful discussions and collaborative projects. Filled with real-world connections, our curriculum will allow students to fully understand how coding affects their everyday lives.",college_board:"The College Board is currently reviewing our curriculum with an expected endorsement in March 2023.",our_curriculum_offers:"Our curriculum offers engaging features so that students explore and learn Computer Science through...",course_outline:"Course Outline",course_outline_description:"The following descriptions are an overview of the content explored in the CodeCombat AP CSP course.",explore_our_curriculum:"Explore Our Curriculum",syllabus:"Syllabus",pacing_guide:"Pacing Guide",flyer:"Flyer",sample_lesson_slides:"Browse through our sample lesson slides",introduction_to_cs:"Introduction to Computer Science",introduction_to_cs_description:"Syntax and Sequences",big_ideas:"Big Ideas: Computer Systems and Networks",big_ideas_description:"The Internet (Overview)",get_full_course:"Get the full course here",professional_development:"Professional Development",professional_development_description:"CodeCombat offers an online, self-paced professional development course for educators of all levels of AP CSP expertise. Participants will explore the CodeCombat curriculum and learn how it can be used to prepare students to succeed on the AP CSP exam. Through asynchronous discussions with fellow teachers and video conferences with CodeCombat learning designers, you will be equipped with the tools and techniques you need to support all of your students in AP CSP. At the end of the course, you will earn a Certificate of Completion that can be used for the renewal of your teaching credential.",more_information:"For More Information",contact_us:"Contact Us",question_1:"How can I learn more about the AP CSP Course?",answer_1:"You can check out the College Boardâs AP Computer Science Principles __course_overview__ and also explore the __outcomes__ for this course.",question_2:"What are the technology requirements for CodeCombatâs AP CSP curriculum?",answer_2:"We recommend at least 4GB of RAM and using a modern browser such as Chrome, Safari, Firefox, or Edge. For additional specifics, please visit __coco_requirements__.",question_3:"What is the format of our lesson plans and lesson slides?",answer_3:"All of our lesson slides are in the format of Google Slides and our lesson plans are in the format of Google Docs. These formats allow you to make copies of our curriculum so that you can adapt them to the needs of your students. Lesson slides and lesson plans can also be downloaded as Microsoft® PowerPoint and Word files.",course_overview:"Course Overview",outcomes:"outcomes",coco_requirements:"CodeCombatâs system requirements",coco_recognized_blurb
2:"CodeCombat is recognized by College Board as an endorsed provider of curriculum and professional development for AP® Computer Science Principles (AP CSP). This endorsement affirms that CodeCombatâs curriculum is aligned to all the AP Curriculum Framework standards and the AP CSP assessment. This affords schools access to resources including an AP CSP syllabus pre-approved by the College Boardâs Course Audit, and officially recognized professional development that prepares teachers to teach this curriculum.",ap_csp_portal:"AP CSP Portal"},apcsp_curriculum:{access_syllabus:"Access our College Board approved __syllabus__",college_board_approved_syllabus:"Syllabus",access_pacing_guide:"Review our suggested __pacing_guide__",pacing_guide:"Pacing Guide",resources:"Professional Development Resources",professional_development_description:"CodeCombat offers an online, self-paced professional development course for educators of all levels of AP CSP expertise. Participants will explore the CodeCombat curriculum and learn how it can be used to prepare students to succeed on the AP CSP exam. Through asynchronous discussions with fellow teachers and video conferences with CodeCombat curriculum developers, you will be equipped with the tools and techniques you need to support all of your students in AP CSP. At the end of the course, you will earn a Certificate of Completion that can be used for the renewal of your teaching credential. We offer our Curriculum on __edapp__.",contact:"Contact __apcsp_email__ to get access.",role:"Role",location:"Location",state_and_country:"state and country",no_license:"Our AP CSP curriculum requires a paid license to view. Learn more about CodeCombat's AP CSP curriculum by visiting our About page, linked below.",request_license:"Join Pilot Program",page_title:"AP Computer Science Principles Curriculum",explore_each_unit:"Explore each unit, including <br> <strong>lesson plans</strong> and <strong>lesson slides</strong>",about_apcsp_curriculum:"About AP CSP Curriculum",step_1_title:"Get Started Today",step_1_subtitle:"Upload CodeCombatâs AP CSP syllabus to College Boardâs Course Audit.",step_1_button_1:"View the Syllabus",step_1_button_2:"Complete the Audit",join_the_community:"Join the AP Community",ap_teachers:"Teacher Central",ap_classroom:"AP Classroom",slack:"AP Workspace",join:"Join"},hoc_2019:{heading:"Hour of Code",start:"Start Your Journey",create_a_class:"Create a class to track your students' progress and ensure their hour of code games are saved!",choose_language:"1. CHOOSE LANGUAGE",programming_language:"Language",sign_up:"2. SIGN UP",already_have_account:"Already have a CodeCombat or Ozaria account? Login.",download_lesson_plan:"Download Lesson Plan",try_activity_without_class:"Try activity without creating a class",invite_students:"Invite Students to Your Class By Sending Them",class_code:"CLASS CODE",enter_code:"Students can enter this code at www.ozaria.com/hoc",class_url:"CLASS URL",share_url:"Share URL to have students automatically join your class.",start_activity:"Start Activity",save_progress_modal:"Save your progress and keep playing later",want_to_save:"Want to save your Hour of Code progress?",ask_teacher_class_code:"Ask your teacher for your Class Code",dont_have:"I don't have one, but want to Try the Activity!",hoc_activity:"Hour of Code Activity",save_progress:"Save Progress",err_google_exists:"An account already exists for the Google account you've selected. Please choose another Google account or sign up with a username and password.",err_username_taken:"An account already exists for the username you've entered. Please choose another username.",enter_it_here:"Enter it here to save your progress as you play:",have_a_class_code:"Have a class code?",create_class_and_try_activity:"Create Class and Try Activity"},parents_landing_1:{online_coding_classes:"Live Online Coding Classes",powered_by_play:"Powered by Play",partnership:"in partnership with",kids_message:"Kids: show this to your parents to get your free coding class and premium heroes!",codecombat_intro:"CodeCombat combines the power of gameplay and personalized instruction to deliver online coding classes that your child will look forward to every week!",remote_learning_works:"Remote Learning That Works",invest_in_future:"Invest in Your Childâs Future While They Have Fun!",personalized_learning_header:"Personalized Learning",personalized_learning_details:"Our dedicated teachers offer individualized attention through a structured curriculum. Your child will become a confident life-long coder as they conquer challenges and celebrate successes together!",power_of_play_header:"The Power of Play",power_of_play_details:"Our students type real Python and JavaScript while playing a game from beginning to end! Our engaging curriculum ensures that youâll never have to force your child to show up to class. We promise.",early_coding_exposure:"Early Exposure to Coding",early_coding_exposure_details:"Coding is a highly sought-after job skill, and this demand will only grow. Exposing your child to coding at an early age increases the chance that theyâll pursue
2Computer Science later in life.",quote_1:"Even though the class starts every Saturday at 7am, my son is so excited that he wakes up before me! CodeCombat creates a pathway for my son to advance his coding skills.",parent_name:"Latthaphon Pohpon, Parent",course_offering:"Course Offerings",flexible_scheduling:"With individual or small group class options and flexible scheduling available, this is the easiest way to get started in computer science.",private_instructions:'All classes feature private, individualized instruction. To enroll a group of students, contact <a href="mailto:[email protected]">[email protected]</a> for a custom plan.',most_popular:"Most popular",best_value:"Best Value",self_paced:"Self-Paced",private:"Private",subscription_plan:"Subscription plan",per_year:"per year",price_per_year_1:"$219 per month",price_per_year_2:"$399 per month",not_available:"N/A",one_to_one:"1:1",private_sessions_1:"1 private session per week",private_sessions_2:"2 private sessions per week",benefit_1:"60-minute sessions via Zoom",benefit_2:"Student to Instructor Ratio",benefit_3:"CodeCombat premium license included",benefit_4:"Immediate and personalized feedback",benefit_5:"Bonus activities, rewards, and course completion certificates",benefit_6:"End of course projects that demonstrate concepts learned",benefit_7:"Monthly progress updates from instructor",benefit_8:"Flexible schedule adapted to each student's learning needs",benefit_9:"1:1 support in tackling difficult coding concepts",benefit_10:"Automatic qualification into AI League coding tournaments",subscription_details:'All subscriptions are billed on a monthly basis and may be paused, cancelled, or resumed with no fees. Your subscription purchase is 100% risk-free within the first 30 days. If for any reason you decide not to continue, simply <a href="mailto:[email protected]">contact us</a> within 30 days of purchase and we will promptly refund 100% of your payment, no questions asked. All plans are automatically renewed at the same level and billing cycle unless otherwise changed or canceled.',curriculum:"Our Curriculum",curriculum_description:"Trusted by over 140,000 educators worldwide, our scaffolded curriculum is critical to helping students persevere. Our students type real code from the start, become more confident with each class, and learn how Computer Science is relevant to their daily lives.",student_outcomes:"Student Outcomes",grit_header:"Grit",grit_description:"CodeCombat challenges students to embrace and learn from their mistakes. Built-in hints help students identify and fix bugs, leading to greater coding confidence.",problem_solving_header:"Problem Solving Skills",problem_solving_description:"Through an iterative problem solving process, our students solve coding challenges and flex their creativity to build their own games, websites, and apps for end-of-course projects.",technological_literacy:"Technological Literacy",technological_literacy_description:"Students gain a deep understanding of Computer Science and technological literacy skills that will transfer to other disciplines as well as future careers.",concepts_covered:"Concepts Covered",beginner:"Beginner",beginner_description:"For students with little to no text-based coding experience.",beginner_concepts_1:"Sequences",beginner_concepts_2:"Algorithms",beginner_concepts_3:"Syntax",beginner_concepts_4:"Strings",beginner_concepts_5:"Arguments",beginner_concepts_6:"Loops",beginner_concepts_7:"Variables",beginner_concepts_8:"Cartesian coordinates",intermediate_header:"Intermediate",itermediate_details:"For students with some text-based coding experience.",intermediate_concepts_1:"Boolean logic",intermediate_concepts_2:"Properties",intermediate_concepts_3:"Advanced loops",intermediate_concepts_4:"Conditionals",intermediate_concepts_5:"Nested conditionals",intermediate_concepts_6:"Functions",intermediate_concepts_7:"Events",intermediate_concepts_8:"Basic game AI",advanced_header:"Advanced",advanced_details:"For students with substantial experience in text-based code and a good grasp of complex concepts.",advanced_concepts_1:"Advanced strings",advanced_concepts_2:"Computer arithmetic",advanced_concepts_3:"Functions with returns",advanced_concepts_4:"Complex conditionals",advanced_concepts_5:"Arrays",advanced_concepts_6:"Break/continue statements",advanced_concepts_7:"Recursion",advanced_concepts_8:"Stacks and Queues",ai_hints:"AI Hints",ai_hints_details:"Our instructors offer the guidance and support your child needs, but canât always be there. Thatâs where our innovative AI hints feature helps the learning continue between sessions. This support feature can evaluate code, point out errors, and explain how to fix them. Most importantly, it provides all the context needed to understand the why, without providing the entire solution. With only current code problem assistance available students will still need to work through each level's coding challenge. Subscribers receive an allocation of <b>20 AI hints per day</b> to ensure they always have the support they need.",faq_header:"FAQs",faq_q_1:"How are instructors matched with my child?",faq_a_1_trial_class:"After the initial trial class, our team carefully matches our online instructors to each student based on their experience level, personality, interests, and schedule. Our team will work with you to improve your experience if you or your child doesnât love learning with your instructor.",faq_a_1:"Each of our instructors were hand-picked to represent CodeCombat and provide a fun and personalized learning experience tailored to each student. We believe that your child will enjoy learning with any of our instructors, but if for any reason you would like to change teachers, we are happy to accommodate.",faq_q_2:"Are there any student age limits?",faq_a_2:"We recommend our online classes for students aged 7 through 16. However, if your child can type, use a mouse, and is comfortable using a computer, they are welcome to join our class.",faq_q_3:"What kind of technology do I need to join the class?",faq_a_3:"Any internet-connected device with a full keyboard. Laptops, PCs, and Chromebooks are recommended, however iPads will work with an external keyboard.",faq_q_4:"What is the cancellation policy?",faq_a_4:'Your subscription purchase is 100% risk-free within the first 30 days. If for any reason you decide not to continue, simply <a href="mailto:[email protected]">contact us</a> within 30 days of purchase and we will promptly refund 100% of your purchase, no questions asked. You can also freeze your subscription at any time and re-activate when it works for you.',faq_q_5:"What if I need to reschedule a class?",faq_a_5:"Once you have booked a weekly class with us, we have reserved time in our schedule exclusively for you, so we require 48 hours' advance notice for rescheduling classes. You can reschedule your class by emailing <a href=\"mailto:[email protected]\">
2[email protected]</a>. Classes missed or canceled with less than 48 hours' notice will not be rescheduled or refunded.",faq_q_6:"What should I expect in the trial class?",faq_a_6:"Each trial class is a private 60 minute session with <strong>45 minutes of instruction</strong> for the student followed by <strong>15 minutes for discussion with a parent or guardian</strong>. These 15 minutes are important and are set aside to answer any questions, provide insight into how the ongoing curriculum progresses, and help you select the right skill level and coding language for your child. If available, one of our remote learning advisors may join for this part of the session.",other_questions:'If you have any other questions about our online classes, please <a href="mailto:[email protected]">contact us.</a>'},parents_landing_2:{splash_title:"Discover the magic of coding at home.",learn_with_instructor:"Learn with an Instructor",live_classes:"Live Online Classes",live_classes_offered:"CodeCombat now offers live online computer science classes for students learning at home. Great for students who work best in 1:1 or small-group settings where learning outcomes are tailored to their needs.",live_class_details_1:"Small group or private lessons",live_class_details_2:"JavaScript and Python coding, plus core Computer Science concepts",live_class_details_3:"Taught by expert coding instructors",live_class_details_4:"Individualized and instant feedback",live_class_details_5:"Curriculum trusted by 80,000+ educators",try_free_class:"Try a free 60 minute class",pricing_plans:"Pricing Plans",choose_plan:"Choose Plan",per_student:"per student",sibling_discount:"15% Sibling Discount!",small_group_classes:"Small Group Coding Classes",small_group_classes_detail:"4 Group Sessions / Mo.",small_group_classes_price:"$159/mo",small_group_classes_detail_1:"4:1 student to instructor ratio",small_group_classes_detail_2:"60 minute classes",small_group_classes_detail_3:"Build projects and give feedback to other students",small_group_classes_detail_4:"Screen sharing to get live feedback on coding and debugging",private_classes:"Private Coding Classes",four_sessions_per_month:"4 Private Sessions / Mo.",eight_sessions_per_month:"8 Private Sessions / Mo.",four_private_classes_price:"$219/mo",eight_private_classes_price:"$399/mo",private_classes_detail:"4 or 8 Private Sessions / Mo.",private_classes_price:"$219/mo or $399/mo",private_classes_detail_1:"1:1 student to instructor ratio",private_classes_detail_2:"60 minute classes",private_classes_detail_3:"Flexible schedule tailored to your needs",private_classes_detail_4:"Lesson plans and live feedback tailored to students' learning style, pace, and ability level",best_seller:"Best Seller",best_value:"Best Value",codecombat_premium:"CodeCombat Premium",learn_at_own_pace:"Learn at Your Own Pace",monthly_sub:"Monthly Subscription",buy_now:"Buy now",per_month:" / mo",lifetime_access:"Lifetime Access",premium_details_title:"Great for self-driven learners who thrive with complete autonomy.",premium_details_1:"Access to subscriber-only heroes, pets and skills",premium_details_2:"Receive bonus gems to buy gear, pets and more heroes",premium_details_3:"Unlock a deeper understanding of core concepts and skills like web and game development",premium_details_4:"Premium support for subscribers",premium_details_5:"Create private clans to invite friends and compete on a group leaderboard",premium_need_help:'Need help or prefer Paypal? Email <a href="mailto:[email protected]">[email protected]</a>',not_sure_kid:"Not sure if CodeCombat is right for your kid? Ask them!",share_trailer:"Share our game trailer with your kid and have them create an account to get started.",why_kids_love:"Why Kids Love CodeCombat",learn_through_play:"Learning Through Play",learn_through_play_detail:"Students grow their coding skills, and also use problem-solving skills to progress through levels and power up their heroes.",skills_they_can_share:"Skills They Can Share",skills_they_can_share_details:"Students build real-world skills and create projects, such as games and webpages, that they can share with friends and family.",help_when_needed:"Help When They Need It",help_when_needed_detail
2:"Using data, every level has been built to be challenging, but never discouraging. Students are supported with hints when they get stuck.",book_first_class:"Book your first class",why_parents_love:"Why Parents Love CodeCombat",most_engaging:"The most engaging way to learn typed code",most_engaging_detail:"Your child will have everything they need at the tip of their fingers to program algorithms in Python or JavaScript, build websites and even design their own games, while learning material aligned with national curriculum standards.",critical_skills:"Building critical skills for the 21st century",critical_skills_detail:"Your child will learn how to navigate and become citizens in the digital world. CodeCombat is a solution that enhances your childâs critical thinking, creativity, and resilience, empowering them with the skills they need for any industry.",parent_support:"Supported by parents like you",parent_support_detail:"At CodeCombat, weâre parents. Weâre coders. Weâre educators. But most of all, weâre people who believe in giving our kids the best opportunity for success in whatever it is they decide to do.",everything_they_need:"Everything they need to start typing code on their own",beginner_concepts:"Beginner Concepts",beginner_concepts_1:"Basic syntax",beginner_concepts_2:"While loops",beginner_concepts_3:"Arguments",beginner_concepts_4:"Strings",beginner_concepts_5:"Variables",beginner_concepts_6:"Algorithms",intermediate_concepts:"Intermediate Concepts",intermediate_concepts_1:"If statements",intermediate_concepts_2:"Boolean comparisons",intermediate_concepts_3:"Nested conditionals",intermediate_concepts_4:"Functions",intermediate_concepts_5:"Basic input handling",intermediate_concepts_6:"Basic game artificial intelligence",advanced_concepts:"Advanced Concepts",advanced_concepts_1:"Event handling",advanced_concepts_2:"Conditional while loops",advanced_concepts_3:"Object literals",advanced_concepts_4:"Parameters",advanced_concepts_5:"Vectors",advanced_concepts_6:"Math library operations",advanced_concepts_7:"Recursion",get_started:"Get Started",quotes_title:"What parents and kids are saying about CodeCombat",quote_1:'"This is next level coding for kids and itâs pretty fun. I am going to learn a thing or two from this too."',quote_2:'"I liked learning a new skill that I havenât done before. I liked that when I was struggling, I could find the goals. I also liked that you could see the code work correctly."',quote_3:'"Oliverâs Python is coming along. Heâs using CodeCombat to make his own video games. He challenges me to play his games, then laughs when I lose."',quote_4:'"This is one of my favorite things to do. Every morning I wake up and play CodeCombat. If I had to give CodeCombat a rating from 1 to 10, I would give it a 10!"',parent:"Parent",student:"Student",grade:"Grade",subscribe_error_user_type:"Looks like you've already signed up for an account. If you're interested in CodeCombat Premium, please contact us at [email protected].",subscribe_error_already_subscribed:"You've already signed up for a Premium account.",start_free_trial_today:"Start free trial today",live_classes_title:"Live coding classes from CodeCombat!",live_class_booked_thank_you:"Your live class has been booked, thank you!",book_your_class:"Book Your Class",call_to_book:"Call now to book",student_journey_start:"Congratulations! Your student's coding journey is about to begin!",enter_email_address:"Please provide your email address to get started:",enter_parent_email_address:"If you are a student under 18 years of age, please enter your parent or guardian's email address.",email_sent_success:"Awesome! An email has been sent to the address you provided.",email_schedule_info:"Please open and click the link to access our trial class scheduling portal and select any available time that works best for you.",personalized_coding:"Personalized Coding Instruction",premium_access:"Premium Access",focus_choice:"Your Focus, Your Choice",get_free_coding_class:"You Get a Free Coding Class",tailored_guidance:"Tailored guidance in Python, Javascript, Lua, and more",enjoy_all_games:"Enjoy all our web games and Roblox experiences",choice_of_path:"Select from Coding Fundamentals, Game Development, AI Applications, AP CSP Prep, and more for a personalized learning path",classes_in_spanish_english:"Classes are available in English or Spanish",free_class:"Free Class"},modal_timetap_confirmation:{congratulations:"Congratulations!",paragraph_1:"Your studentâs coding adventure awaits.",paragraph_2:"We have your child booked for an online class and weâre so excited to meet them!",paragraph_3:"Soon you should be recieving an email invitation with the class schedule details as well as your class instructorâs name and contact information.",paragraph_4:"If for whatever reason you need to modify your class selections, reschedule or just want to talk with a customer care specialist, simply reach out using the contact information provided in your email invitation.",paragraph_5:"Thank y
2ou for choosing CodeCombat and good luck on your computer science journey!",back_to_coco:"Back to CodeCombat"},hoc_2018:{banner_coco:"Welcome to Hour of Code!",banner_ozar:"Happy Computer Science Education Week!",page_heading:"Your students will learn to code by building their own game!",page_heading_ai_league:"Your students will learn to code their own multiplayer AI!",page_heading_goblins:"Your students will learn coding by saving a village from goblins!",step_1:"Step 1: Watch Video Overview",step_2:"Step 2: Try it Yourself",step_3:"Step 3: Download Lesson Plan",try_activity:"Try Activity",download_pdf:"Download PDF",solutions:"Solutions",teacher_signup_heading:"Turn Hour of Code into a Year of Code",teacher_signup_blurb:"Everything you need to teach computer science, no prior experience needed.",teacher_signup_input_blurb:"Get first course free:",teacher_signup_input_placeholder:"Teacher email address",teacher_signup_input_button:"Get CS1 Free",activities_header:"More Hour of Code Activities",activity_label_1:"Beginner CS: Escape the Dungeon!",activity_label_2:" Beginner GD: Build a Game!",activity_label_3:"Advanced GD: Build an Arcade Game!",activity_label_hoc_2018:"Intermediate GD: Code, Play, Create",activity_label_ai_league:"Beginner CS: Esports Bootcamp: AI League",activity_label_goblins:"Beginner CS: Goblins 'n' Glory",activity_button_1:"View Lesson",about:"About CodeCombat",about_copy:"A game-based, standards-aligned computer science program that teaches real, typed Python and JavaScript.",point1:"â Scaffolded",point2:"â Differentiated",point3:"â Assessments",point4:"â Project-based courses",point5:"â Student tracking",point6:"â Full lesson plans",title:"HOUR OF CODE",acronym:"HOC",play_video:"Play Video",featured_title_1:"CodeCombat: Goblins 'n' Glory",featured_subtitle_1:"Grades 6-8 | JavaScript, Python",featured_blurb_1:"We need your help! Embark on an epic quest where you take control of the game through your powers of programming.",featured_title_2:"Esports Bootcamp: AI League",featured_subtitle_2:"Grades 6-8 | JavaScript, Python",featured_blurb_2:"Competitive coding has never been so epic! Learn the skills you need to play like the pros in our Esports Bootcamp. No coding experience needed",featured_title_3:"Ozaria: Your Journey Begins",featured_subtitle_3:"Grades 6-8 | JavaScript, Python",featured_blurb_3:"Enter the world of Ozaria where you must use the power of coding to defeat a darkness that has taken over the world!",page_heading_latest_activities:"Our latest activities are easy to implement and fun to play"},hoc_2018_interstitial:{welcome:"Welcome to CodeCombat's Hour of Code!",educator:"I'm an educator",show_resources:"Show me teacher resources!",student:"I'm a student",ready_to_code:"I'm ready to code!"},hoc_2018_completion:{congratulations:"Congratulations on completing <b>Code, Play, Share!</b>",send:"Send your Hour of Code game to friends and family!",copy:"Copy URL",get_certificate:"Get a certificate of completion to celebrate with your class!",get_cert_btn:"Get Certificate",first_name:"First Name",last_initial:"Last Initial",teacher_email:"Teacher's email address"},school_administrator:{title:"School Administrator Dashboard",my_teachers:"My Teachers",last_login:"Last Login",licenses_used:"licenses used",total_students:"total students",active_students:"active students",projects_created:"projects created",other:"Other",notice:"The following school administrators have view-only access to your classroom data:",add_additional_teacher:"Need to add an additional teacher? Contact your CodeCombat Account Manager or email [email protected]. ",license_stat_description:"Licenses available accounts for the total number of licenses available to the teacher, including Shared Licenses.",students_stat_description:"Total students accounts for all students across all classrooms, regardless of whether they have licenses applied.",active_students_stat_description:"Active students counts the number of students that have logged into CodeCombat in the last 60 days.",project_stat_description:"Projects created counts the total number of Game and Web development projects that have been created.",no_teachers:'You donât have any schools tied to your account yet. Please contact your <strong>District Success Manager</strong> or <a href="mailto:[email protected]">
2[email protected]</a> to get your dashboard set up.',totals_calculated:"How are these totals calculated?",totals_explanation_1:"How are these totals calculated?",totals_explanation_2:"Licenses used",totals_explanation_3:"Counts total licenses applied to students out of total licenses available.",totals_explanation_4:"Total students",totals_explanation_5:"Counts teacherâs students across all of their active classrooms. To see total students enrolled in both active and archived classrooms, go to the Student Licenses page.",totals_explanation_6:"Active students",totals_explanation_7:"Counts all students who were active within the past 60 days.",totals_explanation_8:"Projects created",totals_explanation_9:"Counts total games and web pages created.",date_thru_date:"__startDateRange__ thru __endDateRange__",teachers:"Teachers",students_enrolled:"Students Enrolled",select_time_range:"Select the time range:",export:"Export",preview:"Here is a preview for top 200 lines, Click the Export to get full stats",empty_results:"Empty Results.",roster:"Roster",licenses_total_label:"Licenses",enrolled_label:"Students Enrolled",active_classes:"active classes",licenses_class_label:"Licenses in use",license_details:"License Details",view_classes:"View Classes",my_schools:"My Schools",admin_licenses:"Admin Licenses",class_membership_history:"Classroom Membership History",membership_tooltip:"<p><b>The Classroom Membership History</b> displays the total number of unique students who were enrolled across all classrooms.</p><p><b>Remember:</b> Classes may be archived and licenses may be reused throughout the school year, so these numbers represent how many students truly participated in the program.</p>",have_license_question:"Have license related questions?"},interactives:{phenomenal_job:"Phenomenal Job!",try_again:"Whoops, try again!",select_statement_left:"Whoops! Select a code statement before pressing Submit.",fill_boxes:'Whoops, make sure to fill all boxes before hitting "Submit."',cannot_play_video:"Sadly, this video cannot be played in your area.",console_instructions:'See why by opening your browser console: 1) Right click 2) Choose "Inspect" 3) Click the console tab.',skip_video:"Skip video",unavailable:"Unavailable"},browser_recommendation:{title:"CodeCombat works best on Chrome!",pitch_body:"For the best CodeCombat experience we recommend using the latest version of Chrome. Download the latest version of chrome by clicking the button below!",download:"Download Chrome",ignore:"Ignore"},admin:{license_type_full:"Full Courses",license_type_hackstack:"Hackstack",license_type_customize:"Customize Courses"},events:{title:"CodeCombat Events",main_title:"CodeCombat Events",main_description:"The important events of codecombat China",dashboard:"Events Dashboard",online_classes:"Online Classes",my_classes:"My Online Classes",classes_stats:"Online Classes Stats",name:"Name",class_name:"Class Name",description:"Description",owner:"Owner",type:"Type",members:"Members",start_date:"Start Date",end_date:"End Time",time_range:"Time Range",rrule:"Recurrence Rules",add_member:"Add Member",class_count:"Lessons Count",done:"Finished Lesson",attendance:"Attendance",course_description:"Teacher Notes",teacher_notes:"Teacher Notes",levels_completed:"Levels Completed",no_levels_completed:"No Completed Levels Found",no_teacher_notes:"No Teacher Notes Found",no_video_recording:"No Video Recording Found",reply:"Reply",video_recording:"Video Recording",import_from_class:"Import from Class",link_google_calendar:"Link with Google Calendar",sync_to_google:"Sync to Google Calendar",synced_to_google:"Synced to Google Calendar",google_calendar_attendees:"Google Calendar Attendees",calendar:"Calendar",edit_instance_tab_desc:"Edit the single instance of this event, for editing whole events, see edit tab",edit_event_tab_desc:"Edit the whole event, for editing single instance of this event, see instance tab",edit_members_tab_desc:"Edit the member of this event, the startDate is depends on the instance date, so select the first instance for the new member",lessons_count_desc:"The total lessons count of this member, normally it is the same as the event instances count, but it can be different if the member is added after the event started or ended before the event ended",sync_to_google_desc:"Sync this event to YOUR google calendar, instead of the owner's calendar. And can only work on CodeCombat gmail",no_data_display:"No data to display",meetingLink:"Meeting Link",time_zone:"Time Zone",timezone_tips:"Note - Your timezone: "},teacher_dashboard:{lock:"Lock",unlock:"Unlock",lock_until_date:"Lock until date",skip:"Skip",unskip:"Unskip",make_optional:"Make optional",remove_optional:"Remove Optional",until_date:"until __date__",unassign:"Unassign",locked:"Locked",locked_by_previous:"Locked by previous level",locked_with_timeframe:"Locked",skipped:"Skipped",skipped_desc:"Students cannot play skipped levels. They are marked optional so students can still progress.",optional:"Optional",optional_desc:"Students may play these but are not required to complete them.",assigned:"Assigned",unlocked:"Unlocked",unassigned:"Unassigned",complete:"Complete",progress:"In Progress",choose_course:"Click to Select from Dropdown",teacher_locked_message:"Your teacher has locked the next level",plan_your_class_title:"Plan your first class by",plan_your_class1:"Viewing course progression info",plan_your_class2:"Previewing lesson slides & extension activities",plan_your_class3:"Trying the first chapter for free",click_dismiss:"Click to Dismiss",track_progress:"Track Progress",track_progress_desc:"Click into the class you just created to view detailed student progress.",add_classes_title:"Add Classes Here",add_classes:"Add classes and get students started with the first free chapter!",all_classes:"All Classes",my_licenses:"My Licenses",resource_hub:"Teacher Toolkit",pd:"Professional Development",pd_short:"PD",apcsp:"APCSP",curriculum_guide:"Curriculum Guide",curriculum:"Curriculum",coming_soon:"Coming Soon!",add_class:"Add New Class",no_licenses_yet:"No licenses yet",req_licenses:"Request Licenses",license_ratio_used:"__totalUsedLicenses__ out of __totalSpots__",licenses_applied:"Licenses Applied",student_projects:"Student Projects",no_classes_yet:"No classes yet",exemplar_project:"Exemplar Project",capstone_proj_for:"Capstone Project for __courseName__",project_rubric:"Project Rubric",select_chapter:"Select Chapter",select_course:"Select Course",concept_flag:"Concept Flag",support_learning:"Support Learning",concept_flag_desc:"More than 50% of the class attempted a Concept Check 3 or more times.",concept_flag_desc2:"Student attempted a Concept Check 3 or more times.",click_progress_dot_tip:"Tip: Click on the progress bubbles for more details",color_code:"Color Co
2de",content_guide:"Content Guide",story:"Story",cutscenes:"Cutscenes",cutscenes_tooltip:"<h3>Cutscene</h3><p>Short videos that explain parts of the epic Ozaria narrative.</p>",cinematics:"Cinematics",cinematics_tooltip:'<h3>Cinematic</h3><p>Expositional dialogue that introduces concepts in an engaging back-and-forth between characters.</p><p class="small">Part of an <b>intro</b>, which introduce new concepts in a scaffolded way.</p>',concepts_tooltip:'<h3>Concept Check</h3><p>Formative checks for student understanding presented in varied formats, including drag-and-drop and code ordering questions.</p><p class="small">Part of an <b>intro</b>, which introduce new concepts in a scaffolded way.</p>',ozaria_practices_tooltip:"<h3>Practice Level</h3><p>Game-play in which students are practicing concepts while solving puzzles to complete their hero's quest.</p>",challenges_tooltip:"<h3>Challenge Level</h3><p>Game-play that combines key concepts students have practiced previously.</p>",capstones_tooltip:"<h3>Capstone Level</h3><p>Students create games and stories using key concepts they learned from the chapter.</p>",coco_practices_tooltip:"<h3>Practice Level</h3><p>They are optional and only appears for the students that the system think needs extra practice.</p>",multiplayers_tooltip:"<h3>Multiplayer Level</h3><p>Levels which students can play against others.</p>",mains_tooltip:"<h3>Core Level</h3><p>Game-play in which students are practicing concepts while solving puzzles to complete their hero's quest.</p>",learn_to_use_tooltip:"<h3>Learn</h3><p>Students follow guided steps to learn how to craft effective AI prompts, building skills through structured practice.</p>",practice_tooltip:"<h3>Practice</h3><p>Students apply their prompting skills with light teacher guidance, bridging structured learning and open-ended creation.</p>",use_tooltip:"<h3>Create</h3><p>Students freely apply their prompting skills with open-ended access to the AI model.</p>",ai_capstone_tooltip:"<h3>AI Capstone</h3><p>A summative assessment at the end of each module where students build a project from scratch using all the prompting skills from the module.</p>",concept_checks:"Concept Checks",practice_level:"Practice Level",practice_levels:"Practice Levels",extra_practice:"Extra Practice",challenge_levels:"Challenge Levels",capstone_levels:"Capstone Levels",main_levels:"Core Levels",multiplayer_levels:"Multiplayer Levels",learn_levels:"Learn",use_levels:"Create",intro:"Intro",practice:"Practice",assess:"Assess",multiplayer:"MultiPlayer",main:"Main",type:"Type",view_options:"View Options",manage_class:"Manage Class",assign_content:"Assign Content",remove_students:"Remove Students",revoke_licenses:"Revoke Licenses",remaining_licenses:"__remaining__ license(s) remaining",start_date:"Start: __date__",end_date:"End: __date__",license_questions:"Have questions about applying or revoking licenses?",need_more_licenses:"Need more licenses? We'll help you build a solution that meets your needs.",see_also_our:"See also our",for_more_funding_resources:"for how to leverage CARES Act funding sources like ESSER and GEER.",support_oz:"[email protected]",standards_alignment:"Standards Alignment",standards_sample:"A sample of the standards covered in this Chapter:",add_course_to_classroom:"Add Course",play_chapter:"Play Chapter",play_course:"Play Course",class_time_range:"Class Time (Range):",in_game_play_time:"In-Game Play Time:",class_time:"Class Time",solution_guide:"Solution Guide",module:"Module",need_licenses_tooltip:"<h3>You need licenses to access this content!</h3><p>Please visit the <a href='/teachers/licenses'>My Licenses</a> page for more information.</p>",lesson_slides_tooltip:"<h3>Lesson Slides</h3><p>Downloadable, step-by-step presentation slides for guiding students through module learning objectives</p>",project_rubric_tooltip:"<h3>Project Rubric</h3><p>Downloadable and modifiable scoring rubric for the Capstone Project</p>",exemplar_projects_tooltip:"<h3>Exemplar Project</h3><p>Live view of the exemplar Capstone Project</p>",add_course_to_classroom_tooltip:"<h3>Add Course to Classroom</h3><p>This course is not yet in your classroom. To add it, click this button.</p>",want_to_save_tooltip:"<h3>Want to save your progress?</h3><p>Please create a student account, or go to <i>My Account / Test as Student</i>
2 and play Ozaria as a student if you would like to save your progress.</p>",want_to_save_tooltip_coco:"<h3>Want to save your progress?</h3><p>Please create a student account, or go to <i>My Account / Test as Student</i> and play CodeCombat as a student if you would like to save your progress.</p>",intro_explain_tooltip:'<b>"Intros"</b> introduce new concepts or further the storyline in a scaffolded way. They typically include Cinematics and/or Concept Checks.',chapter_num:"Chapter __num__",read:"View Only",write:"Full Access",read_blurb:"View Only permits the added teacher to view your class and student progress without the ability to make changes to your class.",write_blurb:"Full Access grants the added teacher the ability to make modifications to your class (add/remove students, assign chapters, modify licensure)",shared_with_none:"This class is not currently shared with any other teachers.",shared_with:"Shared with",share_info:"To give other teachers access to the class, add their emails below.",class_owner:"Class Owner",share:"Share",add:"Add",note:"Note",lock_or_skip_levels:"Lock or Skip Levels",level_access_status_blurb:"When you choose to skip a level, it will have both the 'locked' and 'optional' status. Unskipping the level will remove both the 'locked' and 'optional' statuses.",reset_progress:"Reset Progress",export_progress:"Export Progress",assessments_tab:"Assessments",ai_hackstack_junior_tab:"AI Junior",switch_on:"On",switch_off:"Off",ai_league:"AI League",version_old:"Old",version_new:"New",dashboard_version:"Dashboard Version",arena_days_left:"Days left in Season __season__, __arenaName__:",arena_days_elapse:"Season __season__, __arenaName__ ended __time__",global_stats_vs_team_stats:"Global stats vs team stats",global_stats:"Global stats",show_stats_for_all_players_and_teams:"show stats for all players and teams.",team_stats:"Team stats",show_stats_for_individuals_playing_on_the_same_team:"show stats for individuals playing on the same team.",for_each_class_you_add_a_team_will_be_automatically_created_for_the_students_in_that_class:"For each class you add, a team will be automatically created for the students in that class.",view_team_page:"Team Page",no_modifiers_changed:"Levels already modified for these students",no_modifiers_changed_unlocks_skipped:"It appears you attempted to unlock levels that aren't currently locked. Please note, if your selected level appears as locked, it might be due to a preceding level being locked. To proceed, ensure to unlock the prior level first.",view_custom_league:"View Custom League",view_global_league:"View Global League",refresh_progress:"Refresh Progress",assign_content_first:"Please ensure that content is assigned to students before adjusting access levels",failed_attempts:"Failed Attempts",no_failed_attempts:"No Failed Attempts",failed_attempts_subtext:"Number of times incorrect option was selected",open_project:"Open Project",create_class_hackstack:"Please create a New Class to access AI HackStack",add_club:"Add New Club / Camp / Annual",test_student_only:"(Test Student Only)",ready_to_review:"Ready to Review",ozaria_hs_modal_title:"Access AI Hackstack Exclusively on CodeCombat",ozaria_hs_modal_blurb:"Educators can now access AI Hackstack directly on **[https://codecombat.com/teachers/ai-league]CodeCombat** using the same credentials as Ozaria. For added convenience, you can easily import your classes from Ozaria into CodeCombat.",ozaria_ai_league_modal_title:"Access AI League Exclusively on CodeCombat",ozaria_ai_league_modal_blurb:"Educators can now access AI League directly on **[https://codecombat.com/teachers/ai-league]CodeCombat** using the same credentials as Ozaria. For added convenience, you can easily import your classes from Ozaria into CodeCombat.",completed_all_practice_levels:"The student has successfully completed all practice levels.",played_some_practice_levels:"The student has started working on the practice levels.",ai_league_start_title:"Welcome to AI League!",ai_league_start_blurb:"Our Getting Started guide walks you through everything you need to know - from setting up your first class to running your first tournament.",ai_league_curriculum_title:"AI League Curriculum",ai_league_curriculum_blurb:"Access our comprehensive curriculum guides designed specifically for AI League arenas. These resources help you introduce competitive coding concepts and teach strategic thinking.",ai_league_custom_title:"Custom AI League Tournaments",ai_league_custom_blurb:"Create your own customized tournaments to engage your students! Select from our library of coding arenas and set competition dates, whether it's a classroom challenge or a school-wide competition.",this_project_is_remixed:"This project is remixed.",view_original_project:"View Original Project",activate_license:"Activate License",violation:"Violation",safety_violations:"Safety Violations",warning:"Warning",collapse:"Collapse",num_student:"__num__ Students",one_student:"__num__ Student",sort_by_last_name:"Last Name",sort_by_first_name:"First Name",sort_by_progress_desc:"Progress (High to Low)",sort_by_progress_asc:"Progress (Low to High)",no_write_permission:"You do not have a write permission on this class",select_student_first:"You need to select student(s) first before performing that action.",n
2o_progress_to_delete:"No progress to delete",deleting_progress:"Deleting progress",delete_progress_warning:"Warning: student progress for __courseName__ will be deleted and cannot be recovered. Are you sure?",error_adding_teacher:"Error in adding teacher",error_occurred:"Error occurred: __err__",password_changed_successfully:"Password Changed successfully!",remove_students_title:"Remove Students from Class",remove_confirm_title:"Are you sure you want to remove (this student / these students) from your class?",remove_list_1:"If licenses are applied, remember to revoke them before removing students in order to apply them to other students.",remove_list_2:"Student(s) will lose access to this classroom and assigned chapters.",remove_list_3:"Student progress will not be lost and can be viewed if the student can be added back to the classroom at any time.",pick_a_license:"Pick a License",having_access:"Having Access",course_preview:"Course Preview",curriculum_coco:"CodeCombat",curriculum_ozaria:"Ozaria",curriculum_beta:"Beta",progress_last_fetched:"Progress last fetched",refresh_progress_helptext:"Student progress may take 2â3 minutes to sync after completion.",completed:"Completed",starter_code:"Starter Code",student_code:"Student Code",solution_code:"Solution",ai_evaluation:"AI Evaluation",ai_evaluated_on:"AI Evaluated On",ai_eval_yes:"AI Passed",ai_eval_no:"AI Failed",ai_eval_unsure:"AI Unsure",ai_eval_unsure_desc:"The AI evaluator could not confidently determine if the student completed the objective.",ai_struggling:"Struggling",ai_struggling_desc:"The student picked the wrong option more than once.",ai_unsafe_desc:"The student's conversation with the AI was flagged as unsafe, such as attempting to cheat, bypass the AI, or use abusive language.",ai_eval_status:"AI Evaluation Status",ai_model:"AI Model",welcome_tour_title:"A 60-second tour",welcome_tour_desc:"This page can feel busy at first. Let's walk through the handful of things you'll actually use â finding students, reading progress, and assigning work â in order.",all_students_title:"Your students",all_students_desc:"Everyone in this class appears in this column. Click any student to open their individual details and progress.",content_symbol_title:"What's in each lesson",content_symbol_desc:"Each symbol is one piece of content. Hover to preview it or play the level yourself. The icon shape tells you the type â see the Content Guide above for what each one means.",progress_dot_title:"How each student is doing",progress_dot_desc:"Each dot is one student's progress on that level. Its color shows their status (key is above). Click a dot to open exactly where that student is stuck or succeeding.",assign_content_title:"Assign work",assign_content_desc:"Select the students you want, then click here to assign them a new course. This is how you give students access to start.",apply_licenses_title:"Give access to paid courses",apply_licenses_desc:"Select students and apply a license so they can unlock and play paid content.",lock_content_title:"Lock content to set the pace",lock_content_desc:"Hover any module name to reveal its yellow lock icon â click it to stop students moving past that module until you're ready. Need to lock the whole course at once? Use the Lock or Skip Levels button instead.",tour_replay_title:"Need a refresher?",tour_replay_desc:"Lost track? Replay this tour anytime by clicking here.",replay_tour:"Play Tour",test_student_step_title:"Try It as a Student",test_student_step_desc:"Switch into a free test student account to experience the class exactly as your students do â assign content, play levels, and check progress. When you're done, click Stop Switching in the navigation bar to return to your teacher account.",add_students_step_title:"Invite Students to Your Class",add_students_step_desc:"Share a class code, send a join link, invite by email, or sync with Google Classroom â click here to find every way students can join and start learning.",teacher_toolkit_tour_desc:"Find Getting Started guides, educator resources, and FAQs here â everything you need to get comfortable before your first class.",teacher_toolkit_tour_title:"Your Teaching Toolkit",curriculum_glossary:"
2Curriculum Glossary",curriculum_glossary_desc:"ð¡ New to this curriculum? Here is a quick key to the courses below:",curriculum_glossary_desc_hackstack:"Intro: Intro to AI, AI: Artificial Intelligence, ALG: Algebra, CR: Career Readiness, CYB: Cyber, ELA: English Language Arts, CS: Computer Science, EXP: Explorations, SBOX: Sandbox",curriculum_glossary_desc_ozaria:"CH: Chapter",curriculum_glossary_desc_codecombat:"CS: Computer Science, GD: Game Development, WD: Web Development",curriculum_glossary_desc_junior:"JR: Junior",curriculum_glossary_close:"Got it, hide this",assign_to_class:"Assign to Class"},outcomes:{outcomes_report:"Outcomes Report",customize_report:"Customize Report",done_customizing:"Done Customizing",start_date:"Start date",end_date:"End date",country:"Country",school_admin:"School Administrator",school_network:"School Network",school_subnetwork:"School Subnetwork",classroom:"Classroom",view_outcomes_report:"View Outcomes Report",key_concepts:"Key Concepts",code_languages:"Code Languages",using_codecombat:"Using CodeCombat's personalized learning engine...",wrote:"wrote...",across_an_estimated:"across an estimated...",in:"in...",include:"Include ",archived:"Archived",max:"Max ",multiple:"s",computer_program:"computer program",computer_programs:"computer programs",line_of_code:"line of code",lines_of_code:"lines of code",coding_hours:"coding hours",expressed_creativity:"and expressed creativity by building",report_content_1:"standalone game and web ",project:"project",projects:"projects",progress_stats:"Progress stats based on sampling __sampleSize__ of __populationSize__ students.",standards_coverage:"Standards Coverage",coverage_p1_coco:"The full CodeCombat curriculum covers major programming standards in several widely-adopted frameworks, including those of the International Society for Technology in Education (ISTE), the Computer Science Teacher Association (CSTA), and the K-12 Computer Science Framework.",coverage_p1_ozar:"The full Ozaria curriculum covers major programming standards in several widely-adopted frameworks, including those of the International Society for Technology in Education (ISTE), the Computer Science Teacher Association (CSTA), and the K-12 Computer Science Framework.",coverage_p2_coco:"At CodeCombat, we believe that students will be most prepared for both real-world computing jobs and further study of computer science by using real, typed code in full programming languages, so instead of using block-based visual programming languages for beginners, we teach Python and JavaScript â the same languages used widely today by companies ranging from Google to the New York Times.",coverage_p2_ozar:"Ozaria is created by the CodeCombat, the game-based learning company. We believe that students will be most prepared for both real-world computing jobs and further study of computer science by using real, typed code in full programming languages, so instead of using block-based visual programming languages for beginners, we teach Python and JavaScript â the same languages used widely today by companies ranging from Google to the New York Times.",questions:"Have questions or want more information? We'd be happy to help.",reach_out_manager:"Reach out to your Account Manager __name__ at ",stats_include:"Stats include __number__ other __name__",include_other_product:"Show __product__ stats",show_other_product:"Show __product__ stats",show_license_stats:"Show Detail License Stats",show_license_summary:"Show License Summary",license_stats:"License Stats",license_template:"<b>Licenses</b>: __used__ used, __available__ available",licensed_teachers:"<b>Teachers with licenses</b>: __teachers__",licensed_schools:"<b>Schools with licenses</b>: __schools__",students:"Students",teachers:"Teachers",licensesUsed:"Licenses Used",schools:"Schools",top_teacher_info:"Teacher __A__, __B__ and __n__ other teachers use our platform",top_teacher_info_1:"Teacher __A__ and __B__ use our platform",top_teacher_info_2:"Teacher __A__ uses our platform",ai_league:"AI League",ai_league_stats:"__n__ players played in AI League arenas",ai_hackstack_progress:"AI HackStack Progress",ai_hackstack_summary:"AI HackStack Summary",using_ai_hackstack:"Using CodeCombat's AI HackStack...",completed:"completed...",ai_project:"AI project",ai_projects:"AI projects",practicing_with:"practicing with...",ai_prompt:"AI prompt",ai_prompts:"AI prompts",and_created:"and created...",ai_capstone_project:"AI capstone project",ai_capstone_projects:"AI capstone projects"},efficacy:{ozaria_efficacy:"Ozaria Efficacy",header_subtitle:"Ozaria has proven to have a positive impact on the student learning outcomes that matter most to both students and educators.",pathway_dialog_line1:"while True:",pathway_dialog_line2:"hero.moveDown(1)",pathway_dialog_line3:"hero.moveRight(2)",exploring_creativity:"Exploring Creativity",exploring_creativity_description:"Almost all students surveyed said they really enjoyed being able to create their own game at the end of each Chapter.",essential_skills:"Essential Skills",essential_skills_description:"Teachers found Ozaria to be a superior curriculum for teaching complex coding concepts as well as essential 21st century skills, such as problem solving and reasoning, critical and computational thinking skills.",fun_engaging:"Fun & Engaging",fun_engaging_description:"Ozaria was reported to be a fun and engaging curriculum. Students especially noted how effective it was in teaching text-based coding, and how the tutorials, hints, and error messages provided the appropriate amount of support.",easy_to_use:"Easy to Use",easy_to_use_description:"Both teacher and students found the platform easy to implement and use.",mcintosh_study_title:"Increasing Score Gains on Assessments",m
2cintosh_middle_school:"McIntosh Middle School",mcintosh_study_description:"A novice teacher with advanced level coding experience taught three cohorts of students. Each cohort was studied across a full semester.",study_highlights_title:"Highlights from the study results:",mcintosh_study_highlight_1:"98% of students rated their level of enthusiasm for Ozaria as high or extremely high",mcintosh_study_highlight_2:"100% of students scored above 70% on both the mid-term and final assessments",read_the_study:"Read the Study (PDF)",mrms_study_title:"Gaining Confidence in Computer Science",mountain_ridge_middle_school:"Mountain Ridge Middle School",mrms_study_description:"An experienced teacher with beginning level coding experience taught two cohorts of students. Each cohort was studied across a full semester.",mrms_study_highlight_1:"Students made an average gain score of 33% between the pre-assessment and the final assessment",mrms_study_highlight_2:" Both the teacher and students found Ozaria to be fun, engaging, and easy to use.",graph1_description:"Students made a 47% average gain score between the pre-assessment and the final assessment.",graph2_description:"More than 90% of students rated their coding confidence level as Confident or Extremely Confident after using Ozaria.",quote_section_content:"One thing I am able to do now that I could not do before is actually believe I can code.",quote_section_footer:"Student, Mountain Ridge Middle School",teacher_quote1_content:"The curriculum had students thoroughly engaged. They enjoyed the story and the characters. More importantly, they gained confidence in their ability to solve complex problems with concepts they'd learned in Ozaria.",teacher_quote1_footer1:"Ronnie Cox, Teacher",teacher_quote1_footer2:"McIntosh Middle School",student_quote_content:"I like that you can make a mistake and the game corrects it or tells you that there's an error. A lot of beginners make a lot of mistakes when coding and sometimes don't know how to code, so they can't correct their mistakes because they don't know what's wrong. Ozaria is the perfect coding game for beginners.",student_quote_footer:"Student, McIntosh Middle School",teacher_quote2_content:"I have absolutely loved using Ozaria in my class for the past three years. My students have thoroughly enjoyed the storyline as they learned Python in a self-paced learning environment. I would highly recommend Ozaria for teachers that know little to nothing about coding, as the support for teachers is very in-depth.",teacher_quote2_footer1:"Lynette Personett, Teacher",teacher_quote2_footer2:"Mountain Ridge Middle School",commitment_title:"CodeCombatâs Commitment to Efficacy",commitment_description:"We are committed to ensuring our products have a positive and measurable impact on learning outcomes. We create meaningful learning experiences, and use evidence-based practices to design content that will realize the outcomes that matter the most to teachers and students.",commitment_question:"Interested in implementing an effective and impactful CS curriculum at your school?",teachers_love_codecombat:"Teachers Love CodeCombat",teachers_love_description:"Explore the impact of our sister product, CodeCombat, on Computer Science teaching & learning!",teachers_love_box1:"Report that their students enjoy using CodeCombat to learn how to code",teachers_love_box2:"Would recommend CodeCombat to other computer science teachers",teachers_love_box3:"Say that CodeCombat helps them support studentsâ problem solving abilities",classroom_image:"Classroom",ozaria_branding_logo:"Ozaria branding logo",dog:"Dog",hero:"Hero",teacher:"Teacher"},league:{student_register_1:"Become the next AI Champion!",student_register_2:"Sign up, create your own team, or join other teams to start competing.",student_register_3:"Provide the information below to be eligible for prizes.",teacher_register_1:"Sign up to access your class league profile page and get your class started.",general_news:"Get emails on the latest news and updates regarding our AI Leagues and tournaments.",how_it_works1:"Join a __team__",seasonal_arena_tooltip:"Battle against your teammates and others as you use your best programming skills to earn points and rank up the AI League leaderboard before taking on the Championship arena at the end of the season.",summary:"The CodeCombat AI League is uniquely both a competitive AI battle simulator and game engine for learning real Python and JavaScript code.",join_now:"Join Now",tagline:"The CodeCombat AI League combines our project-based standards-aligned curriculum, engaging adventure-based coding game, and our annual AI coding global tournament into an organized academic competition unlike any other.",ladder_subheader:"Use your co
2ding skills and battle strategies to rise up the ranks!",earn_codepoints:"Earn CodePoints by completing levels",codepoints:"CodePoints",free_1:"Access competitive multiplayer arenas, leaderboard, and global coding championships",free_2:"Earn points for completing practice levels and competing in head-to-head matches",free_3:"Join competitive coding teams with friends, family, or classmates",free_4:"Showcase your coding skills and take home great prizes",compete_season:"Put all the skills youâve learned to the test! Compete against students and players from across the world in this exciting culmination to the season.",season_subheading1:"For both Season and Championship arenas, each player programs their team of âAI Heroesâ with code written in Python, JavaScript, C++, Lua, or Java.",season_subheading2:"Their code informs the strategies their AI Heroes will execute in a head-to-head battle against other competitors.",team_derbezt:"Learn coding and win prizes sponsored by superstar Mexican actor, comedian, and filmmaker Eugenio Derbez.",invite_link:"Invite players to this team by sending them this link:",public_link:"Share this team leaderboard with its public link:",end_to_end:"Unlike other esports platforms serving schools, we own the structure top to bottom, which means weâre not tied to any game developer or have issues with licensing. That also means we can make custom modifications in-game for your school or organization.",path_success:"The game platform fits into a regular Computer Science curriculum, so as students play through the game levels, theyâre completing course work. Students learn coding and computer science while they play, then use these skills in arena battles as they practice and play on the same platform.",unlimited_potential:"Our tournament structure is adaptable to any environment or use case. Students can participate at a designated time during regular learning, play at home asynchronously, or participate on their own schedule.",team:"Team",edit_team:"Edit Team",start_team:"Start a Team",leave_team:"Leave Team",join_team:"Join Team",view_team:"View Team",join_team_name:"Join Team __name__",features:"Features",built_in:"Built-in Competitive Infrastructure",built_in_subheader:"Our platform hosts every element of the competitive process, from leaderboards to the game platform, assets, and tournament awards.",custom_dev:"Custom Development",custom_dev_subheader:"Customization elements for your school or organization are included, plus options like branded landing pages and in-game characters.",comprehensive_curr:"Comprehensive Curriculum",comprehensive_curr_subheader:"CodeCombat is a standards-aligned CS solution that helps educators teach real coding in JavaScript and Python, no matter their experience.",roster_management:"Roster Management Tools",roster_management_subheader:"Track student performance within the curriculum and within the game, and easily add or remove students.",share_flyer:"Share our AI League flyer with educators, administrators, parents, esports coaches or others that may be interested.",download_flyer:"Download Flyer",championship_summary:"The __championshipArena__ championship arena is now open! Battle it out for the month of __championshipMonth__ to win prizes in the __championshipArena__ __championshipType__.",arcade_summary:"The __championshipArena__ arcade arena is now open! Enjoy the break from the competition until __championshipMonth__ to prepare for the next season.",play_arena_full:"Play __arenaName__ __arenaType__",play_arena_short:"Play __arenaName__",view_arena_winners:"View __arenaName__ __arenaType__ winners",arena_type_championship:"Championship Arena",arena_type_regular:"Multiplayer Arena",arena_type_arcade:"Arcade Arena",blazing_battle:"Blazing Battle",infinite_inferno:"Infinite Inferno",mages_might:"Mages' Might",sorcerers:"Sorcerers",giants_gate:"Giants' Gate",colossus:"Colossus",iron_and_ice:"Iron and Ice",tundra_tower:"Tundra Tower",magma_mountain:"Magma Mountain",lava_lake:"Lava Lake",desert_duel:"Desert Duel",sandstorm:"Sandstorm",frozen_fortress:"Frozen Fortress",equinox:"Equinox",farmers_feud:"Farmer's Feud",farmscape:"Farmscape",storm_siege:"Storm Siege",snowhold:"Snowhold",fierce_forces:"Fierce Forces",anti_gravity:"Anti-Gravity",solar_skirmish:"Solar Skirmish",sunfire:"Sunfire",system_shock:"System Shock",supercharged:"Supercharged",pawns_passage:"Pawn's Passage",kings_gambit:"King's Gambit",strikers_stadium:"Striker'
2s Stadium",golden_goal:"Golden Goal",turbo_track:"Turbo Track",grand_prix:"Grand Prix",season_label:"Season __seasonNumber__: __seasonName__",devour_dash:"Devour Dash",gridlock_practice:"Gridlock Practice",chaotic_crossing:"Chaotic Crossing",season_1:"Forged in Flame",season_2:"Spells of Fortune",season_3:"Titan Age",season_4:"Frosts of War",season_5:"Sands of Time",season_6:"Molten Mayhem",season_7:"Melting Point",season_8:"Coder's Harvest",season_9:"Reign of Code",season_10:"Gravity Games",season_11:"Summer Smash",season_12:"Spark of Power",season_13:"Checkmate Challenge",season_14:"Racing Rivals",season_15:"Soccer Showdown",season_16:"Chomp and Charge",season_17:"Zone Control",season_18:"Paths of Peril",cup:"Cup",blitz:"Blitz",clash:"Clash",arena:"Arena",season15_announcement_1:"Welcome to Golden Goal Blitz! â½ Where soccer meets strategy â and every shot is scripted. No feet. No players. Just code and chaos.",season15_announcement_2:"Note: this arena is getting updates and new features regullary during the season and the big twist mechanics one month ahead of the final simulation.",season13_announcement_1:"In the depths of ancient ruins, a magical checkerboard arises and the towers comes alive. Get as many pieces to the end of the line!",season13_announcement_2:"Note: arena balance adjustments may occur up until May 15th. So be sure to come back often to test your code against the global leaderboard.",season12_announcement_2:"Collectors fly high, control points emerges, mythical crystals stand tall, as the dungeon expands, the battle is getting fiercer, only the righteous shall be the victor.",season12_announcement_1:"Deep in the dungeons, mythical crystals stand tall, collecting energy and mana from abandoned ruins. Summon units, cast spells, and claim victory!",season11_announcement_1:"The competition is getting more heated! As the sun shines above, place down and upgrade your solar panels, avoid shock traps, place down robot crabs, and phase through portals, get as much solar as possible and claim victory!",season10_announcement_1:"It's fiery hot, and magma boulders are radiating powerful energies! Summon units and cast spells to push the magma boulders to your opponent's area. Adapt to the ever-changing gravity of the battlefield!",season9_announcement_1:"An epic battle is being waged atop the wintry peaks of Snowhold Clash for the Season 9 championship arena! Draw your cloak close and your code closer as you wield strategy and algorithms to achieve victory in this land beyond the sky.",season8_announcement_1:"It's harvesting season in Farmscape Blitz Season 8! As the leaves change, it's time to code your way around wild and impenetrable obstacles on the farm. Strategically collect vital boosts to empower your robot worker and utilize special abilities to boost productivity and out-farm your opponents!",season8_announcement_2:"Note: arena balance adjustments may occur up until August 15th. So be sure to come back often to test your code against the global leaderboard.",season7_announcement_1:"Witness the dawn of a new challenge in the Equinox Cup! Season 7's tower defense arena offers a unique blend of strategy, monsters, and boss battles for you to conquer.",season6_announcement_1:"Itâs absolute Molten Mayhem with the launch of the Lava Lake Clash finals! Outlast and outwit the competition in this hot take on classic Snake gameplay.",season6_announcement_2:"Note: arena balance adjustments may occur up until December 15th. So be sure to come back often to test your code against the global leaderboard.",season5_announcement_1:"The Sandstorm Blitz Final is on. In this basketbrawl of an arena, you must summon the right heroes, call the right plays, and outscore your opponent to take the victory!",season5_announcement_2:"Note: arena balance adjustments may occur up until September 15th. So be sure to come back often to test your code against the global leaderboard.",season4_announcement_1:"The Tundra Tower Cup Final is on. In this all new take on the classic tower defense gameplay, you must protect your base from the horde of monsters by building towers and using gravitational anomalies.",season4_announcement_2:"Note: arena balance adjustments may occur up until April 15th. So be sure to come back often to test your co
2de against the global leaderboard.",season3_announcement_1:"Time to put your coding skills to the test in our season 3 final arena. The Colossus Clash is live and offers a new challenge and a new leaderboard to climb.",season3_announcement_2:"Need more practice? Stick with the Giant's Gate Arena to refine your skills. You have until December 14th to play both arenas. Note: arena balance adjustments may occur until December 6th.",season3_announcement_3:"Great prizes available for top performers in the Colossus Clash:",season2_announcement_1:"Time to put your coding skills to the test in our season 2 final arena. The Sorcerers Blitz is live and offers a new challenge and a new leaderboard to climb.",season2_announcement_2:"Need more practice? Stick with the Mage's Might Arena to refine your skills. You have until August 31st to play both arenas. Note: arena balance adjustments may occur until August 23rd.",season2_announcement_3:"Great prizes available for top performers in the Sorcerers Blitz:",new_season_prize_1:"$500 Scholarship",new_season_prize_2:"$300 Scholarship",new_season_prize_3:"$200 Scholarship",season1_prize_1:"$1,000 Scholarship",season1_prize_2:"RESPAWN Gaming Gear",season1_prize_3:"Custom CodeCombat Avatar",season1_prize_4:"And more!",season1_prize_hyperx:"HyperX Premium Peripherals",codecombat_ai_league:"Join AI League",register:"Register",not_registered:"Not Registered",register_for_ai_league:"Register for AI League",world:"World",quickstart_video:"Quickstart Video",arena_rankings:"Arena Rankings",arena_rankings_blurb:"Global AI League arena rankings",arena_rankings_title:"Global leaderboard rank for all players in this team across AI League arenas in the open age bracket.",competing:"Competing:",count_student:"student",count_students:"students",top_student:"Top:",top_percent:"top",top_of:"of",arena_victories:"Arena Victories",arena_victories_blurb:"Global AI League arena recent wins",arena_victories_title:"Win count is based on the last 1000 matches played asynchronously by each player in each of their AI League arenas.",count_wins:"wins",codepoints_blurb:"1 CodePoint = 1 line of code written",codepoints_title:"One CodePoint is earned for every non-whitespace line of code needed to beat the level. Each level is worth the same amount of CodePoints according to its standard solution, regardless of whether the student wrote more or fewer lines of code.",count_total:"Total:",join_teams_header:"Join Teams & Get Cool Stuff!",join_team_hyperx_title:"Join Team HyperX, Get 10% Off",join_team_hyperx_blurb:"30 team members will be chosen at random for a free gaming mousepad!",join_team_derbezt_title:"Join Team DerBezt, Get Exclusive Hero",join_team_derbezt_blurb:"Unlock the Armando Hoyos hero from Mexican superstar Eugenio Derbez!",join_team_ned_title:"Join Team Ned, Unlock Ned's Hero",join_team_ned_blurb:"Get the exclusive spatula-wielding hero from YouTube star, Try Guy Ned Fulmer!",check_out_all:"Check out all the",pick_best_tournaments:"pick the ones that will work best for your custom tournament!",final_arena:"Final Arena",rest_season:"Practice Season",no_prizes:"No Prizing",prizing_top_3:"Prizing Awarded to Top 3 Champions",package_options_and_guide:"Package Options & Implementation Guide",custom_tournament:"For a Custom Tournament",you_win:"You can win",great_prizes:"great prizes",powered_by:"Powered by",grand_prize:"Grand Prize",second_prize:"2nd Place Overall",third_prize:"3rd Place Overall",scholarship:"Scholarship",top_players_win:"Top three players in each division win: HyperX pro peripherals",team_hyperx:"Team HyperX",earn_more_gear:"you could earn even more gear!",prize_footer1:"Awarded to the top performing player across all age groups.",prize_footer2:"Specific products and models subject to change.",prize_footer3:"Prizes will be awarded to players who reach the top of the leaderboard in the Finals arena.",prize_footer4_1:"Age verification necessary to be eligible. Some prizes are limited to US participants only.",coco_reserves:"CodeCombat reserves",prize_footer4_2:"the right to determine in its sole discretion if a player qualifies and will receive a prize.",place:"Place",arena_under_construction:"Next season's arena is under construction. Check back soon!",unlock_ai_league:"Unlock the full potential of the AI League.",esports_anonymous_changing:"Esports player name visibility changing September 1",esports_get_full_access:"Get Full Access",click_to_unlock_now:"Click to dismiss for now",click_to_unlock_before_sep:"Click to make the anonymizing go away before Sep.1",unlock_content_padding:"Contact our team today to see your student's scoress, ranks, code and more!",unlock_leaderboard:"Contact Us to unlock the leaderboard",without_license_blurb:"Unlock the full potential of AI League. Purchase a custom tournament package to access your studentsâ scores, ranks, code and experience more tournament customization options. See our",custom_pricing:"Custom Options and Implementation Guide",more_details:"for more details.",contact_sales_custom:"Your custom tournament awaits. Choose the arena that youâd like to use for your custom tournament and contact your CodeCombat sales representative to confirm set up and scheduling details.",create_custom:"Create Custom Tournament",custom_tournament_text:"Custom Tournament",promotion_blurb
2:"Competitive Coding - Free to Get Started",promotion_part1:"Join coding teams with friends and family",promotion_part2:"Access global coding arenas and leaderboards",promotion_part3:"Showcase your coding skills and win prizes",promotion_part4:"Earn points through practice and head-to-head matches",codecombat_ai_league_description:"The CodeCombat AI League combines our project-based standards-aligned curriculum, engaging adventure-based coding game, and our annual AI coding global tournament into an academic competition unlike any other.",teacher_getting_started_guide:"Teacher Getting Started Guide",try_ai_league_as_a_teacher:"Try AI League as a Teacher",ai_league_curriculum:"AI League Curriculum",current_season:"Current Season",all_time:"All Time",view_leaderboards_for_team:"Team Leaderboard:",global_stats:"GLOBAL STATS",code_your_way:"Code your way",to_win_the_price:"to first place to win",regular:"Regular",championship:"Championship",global:"Global",custom:"Custom"},league_v2:{headline:"Where Future **Coders** Train and **AI** Levels Up the Game",subhead:"Welcome to AI League 2.0, where weâve put the AI into AI League! Now you can[NEWLINE]choose to compete solo or team up with AI to outsmart opponents and level up your[NEWLINE]coding skills.",join_cta:"Join Global Tournament",free_to_play:"Free to play now",create_cta:"Create Custom Tournament",for_educators:"For educators with paid licenses",ai_league_desc:"The CodeCombat AI League is uniquely both a competitive AI battle simulator and game engine for learning real Python or JavaScript code.",get_start:"Free to Get Started",get_start_list_1:"Join global coding[NEWLINE]championships",get_start_list_2:"Earn codepoints in[NEWLINE]matches",get_start_list_3:"Team up with friends[NEWLINE]or classmates",get_start_list_4:"Showcase your skills[NEWLINE]and win prizes",compete_to_win:"Code Your Way to First Place to Win!",code_to_compete:"**Esports:** Code to Compete",compete_desc:"AI League is the ultimate coding arena where players battle using real Python, JavaScript, C++, and more. You can write your own logic or vibe code with an AI assistant to learn the ropes. Every match builds your skills, sharpens your strategy, and brings the heat. This is where smart code wins the game.",codecombat_reserves:"CodeCombat reserves",reserved_right:"the right to determine in its sole discretion if a player qualifies and will receive a prize.",grand_prize:"Grand Prize:[NEWLINE]$500 Scholarship",second_place:"2nd Place Overall:[NEWLINE]$300 Scholarship",third_place:"3rd Place Overall:[NEWLINE]$200 Scholarship",set_up_tournament:"Set Up Your Classroom Tournament",set_up_desc:"Your first few classroom tournaments are on us. Customize a private esports competition for your students today!",create_team:"Create a Team/Classroom",invite_players:"Invite Players",select_arena:"Select an Arena",refer_guide:'Refer to the <a href="https://docs.google.com/presentation/d/1ouDOu2k-pOxkWswUKuik7CbrUCkYXF7N_jNjGO0II6o/edit#slide=id.gb06b5c7fa4_0_10">Educator Getting Started Guide</a> to see how easy it can be to bring competitive coding to your school.',having_question:'Still have questions? Check out our <a target="_blank" href="https://codecombat.zendesk.com/hc/en-us/categories/1500000915842-AI-League">FAQs</a> or <a href="https://docs.google.com/forms/d/1rO__VvhM1yCuUHrtHJKXXj3RYA2vCzpRKzMCMaMS6SE" target="_blank">Contact Us</a> to learn more.',global_rankings:"Global Ranking",team_rankings:"Team Ranking",inspiration_title:"Are you an educator or esports coach?",inspiration_desc:"This game-based competitive coding competition delivers high engagement with a turn-key approach.",season_arenas:"Season Arenas",ranking_desc:"Use your coding skills and battle strategies to rise up the ranks!",step_1:"Step 1",step_2:"Step 2",step_3:"Step 3",academic_rigor:"Academic Rigor",asynchronous_competition:"Asynchronous Competition",greater_accessibility:"Greater Accessibility",academic_rigor_desc:"The open-ended objective encourages creativity and iteration as players apply what theyâve learned from the core curriculum. The AI assistant offers a more realistic coding experience, but success still depends on strategy, mechanics, and writing solid code.",asynchronous_competition_desc:"Unlike other esports, our platform allows players to compete anytime/anywhere with no need to coordinate schedules. ",greater_accessibility_desc:"Since AI League is an academic esport focused on knowledge and strategy, fast reactions or hand-eye coordination are not required. Anyone can compete using a basic computer with internet access, and players can also choose to use the AI assistant to supp
2ort their coding along the way.",earn_codepoints:"Earn CodePoints",earn_by:"By Completing Levels",search_teams:"Search team",global_clan_name:"-- Global --"},tournament:{tournament_title:"Tournament Title",mini_tournaments:"Mini Tournaments",usable_ladders:"All Usable Ladders",make_tournament:"Make a mini tournament",go_tournaments:"Go to mini tournaments",class_tournaments:"Class mini tournaments",class_tournaments_more:"More Class mini tournaments",no_tournaments_owner:"There is no tournament now, please create one",no_tournaments:"There is no tournament now",edit_tournament:"Edit Tournament",create_tournament:"Create a Tournament",view_tournament:"View Tournament",upcoming:"Upcoming",starting:"Starting",ended:"Ended",view_results:"View Results",estimate_days:"In __time__ Days",team_name:"Team: __name__",status:"Status: __state__",from_start:"Start __time__",from_end:"End __time__",start_date_time:"Start Time",end_date_time:"End Time",results_date_time:"Results Time",start_date_description:"(PT) The start time of tournament",end_date_description:"(PT) The end time of tournament",results_date_description:"Select a time to publish results.",results_date_suggestion_0:"Note: Tournament may need some time to generate final leaderboard, so you need to allow enough time for the results.",results_date_suggestion_1:"i.e. 0-50 players: 5 mins",results_date_suggestion_2:" 50-100 players: 20 mins",results_date_suggestion_3:" 100-500 players: 10 hours",select_team_desc:"select your team to creat/edit your tournaments",already_create_tournaments_num:"You already created __num__ tournaments here:",can_create_tournaments_num:"You can create __num__ more tournament(s) from below:",my_teams:"My Teams:",team
2:"Team",team_description:"(Required) Only the players in the team can join this tournament",review_results:"Review Results",review_description:"We will email you the results of tournament and wait for you to publish for participants.",publish_immediately:"Publish Immediately",publish_description:"The result of tournament will be published immediately once ready.",error_end_date_too_early:"The End Time cannot be earlier than Start Time",error_results_date_too_early:"The Results Time cannot be earlier than End Time",publish_results:"Publish Results",publish_options:"Publish Options",anonymize_players:"Anonymize Players",anonymize_players_description:"Players cannot see each other's name until tournament published."},payments:{student_licenses:"Student Licenses",computer_science:"Computer Science",web_development:"Web Development",game_development:"Game Development",per_student:"Per Student",just:"Just",teachers_upto:"Teacher can purchase upto",great_courses:"Great Courses included for",studentLicense_successful:"Congratulations! Your licenses will be ready to use in a min. Click on the Getting Started Guide in the Teacher Toolkit to learn how to apply them to your students.",onlineClasses_successful:"Congratulations! Your payment was successful. Our team will reach out to you with the next steps.",homeSubscriptions_successful:"Congratulations! Your payment was successful. Your premium access will be available in few minutes.",failed:"Your payment failed, please try again",session_week_1:"1 session/week",session_week_2:"2 sessions/week",month_1:"Monthly",month_3:"Quarterly",month_6:"Half-yearly",year_1:"Yearly",most_popular:"Most Popular",best_value:"Best Value",purchase_licenses:"Purchase Licenses easily to get full access to CodeCombat and Ozaria",homeschooling:"Homeschooling Licenses",recurring_month_1:"Recurring billing every month",recurring_month_3:"Recurring billing every 3 months",recurring_month_6:"Recurring billing every 6 months",recurring_year_1:"Recurring billing every year",purchase_licenses_2:"Purchase licenses for your students to access paid curriculum after the first course",applying_licenses:"applying licenses",about:"about",school_district_heading:"Schools or Districts",school_district_subheading:"For classrooms, schools and districts with 10 or more students",classroom_heading:"Small Classroom",classroom_subheading:"For clubs, after-school programs and small classrooms with 5-9 students.",customer_support_info_1:"Customer support via email or chat",customer_support_info_2:"Customer support via email or chat, plus a dedicated school success manager available via phone or email for implementation support",self_serve_credit:"Self
2-serve credit card purchase",multiple_payment_options:"Variety of payment options available, including: purchase order, site licenses, & multi-year discounts.",admin_dashboard:"Administrator dashboard with actionable data and insights",pd_info:"Comprehensive 40-hour online course that allows you to learn anytime, anywhere and at any pace.",implementation_info:"60 min Onboarding Training on how to use CodeCombat and Ozaria to support specific institutional and instructional goals.",ai_league_info:"Engage students in an exciting esports competition that allows them to showcase their understanding of concepts in a new environment and practice creative problem-solving strategies!",ai_custom_tournament:"AI League Custom Tournament",implementation_training:"Implementation Training",full_access_coco:"Full Access to both CodeCombat",and_oz:"And Ozaria",cs_info:"Computer Science 1-6: 65 sessions",wd_info:"Web Development 1-2: 10 sessions",gd_info:"Game Development 1-3: 20 sessions",chap1_info:"Chapter 1: 10 class sessions",chap2_info:"Chapter 2: 30 class sessions",chap3_info:"Chapter 3: 25 class sessions",chap4_info:"Chapter 4: 20 class sessions",includes:"Includes:",show_plan_features:"Show Plan Features",purchase_annually:"Available for purchase one time annually.",class_school_solution:"We'll help you build a solution that meets the needs of your class, school or district.",bulk:"Bulk",discounts:"discounts",available:"available",request_quote:"Request a Quote",business_partner_licenses:"Business Partner Licenses",bd_subheading:"For Business Partners with at least 10 students, get premium access to CodeCombatâs computer science and coding games:",bd_info_list_heading:"CodeCombat is the preferred partner for dozens of coding education businesses because:",bd_info_list_1:"students love our game-based curriculum based in fantasy and adventure and keep coming back for more sessions",bd_info_list_2:"anyone can teach coding with CodeCombat; the game is the primary teacher and we provide extensive support resources",bd_info_list_3:"you will receive over 200 hours of curriculum, providing years of educational content for your business",bd_includes_1:"Full access to CodeCombat and Ozaria with over 200 hours of premium game-based content",bd_includes_2:"Teacher dashboard for record keeping and progress tracking ",bd_includes_3:"Online Resource Hub with walkthroughs and tutorials",bd_help:"For any help, contact",manage_stripe:"Manage Stripe Billing",manage_billing_info:"This will take you to Stripe, where you can handle subscription-related tasks such as reviewing your billing history and updating your payment method.",billing_portal:"Customer Billing Portal",email_not_verified:"Your email is not verified, please verify it from the account settings!",stripe_no_data:"You do not have any data to manage on Stripe portal",manage_payment_and_subscription:"Manage Payment & Subscription",discover_more_title:"Discover More",discover_more_desc:"See everything you have access to with your premium account!",billing_portal_desc:"Manage your subscription, update your payment method, view invoices and more in Stripe.",billing_portal_btn:"Manage billing with Stripe",billing_portal_btn_desc:"Cancel Subscription",before_you_go:"Before You Go",before_you_go_desc:"You'll lose access to your premium benefits when your subscription ends.",unexplored_solutions:"Unexplored solutions",ai_credits_remaining:"AI credits remaining",premium_levels_available:"Premium levels still available to explore",access_until:"You'll continue to have access until __date__",keep_subscription:"Keep My Subscription",continue_cancel:"Continue to Cancellation",payment_history:"Payment History",payment_history_btn_all:"View all Invoices",payment_history_btn_less:"View recent Invoices",your_progress_title:"Your Progress",your_progress_desc:"You've started your learning journey. Keep it up!",current_status:"Current Status",codecombat_continue_title:"Play next level",codecombat_continue_desc:"Continue your coding adventure",aileague_continue_title:"Compete in the arena",aileague_continue_desc:"Battle to win prizes",hackstack_continue_title:"Continue building",hackstack_continue_desc:"Vibe code something amazing",codecombat_desc_template:"__levels__/__total__ levels in the __name__",aileague_desc_template:"Ranking __myRank__ in the __name__",hs_desc_template:"__levels__/__total__ levels in the __name__"}
2,form_validation_errors:{required:"Field is required",invalidEmail:"Invalid email",invalidPhone:"Invalid phone number",emailExists:"Email already exists",nameExists:"Username already exists",phoneExists:"Phone already exists",numberGreaterThanZero:"Should be a number greater than 0",requireValidEmail:"Please enter a valid email address.",requireValidPhone:"Please enter a valid phone number, including area code.",maxLength:"Text length exceed limits"},partners:{for:"for",business_partners:"Business Partners",headline:"Join us in our mission to make coding engaging and accessible to all",below_headline_blurb:"At CodeCombat weâve developed comprehensive tools that make learning to code fun and teaching programming easy. Our turnkey solutions can be leveraged in many executions.",coding_title:"Coding & STEAM Education Businesses:",coding_blurb:"Valued partners like Code Ninjas and IDEA Lab Kids use our game to teach real Python and JavaScript coding to students in their franchise locations. We offer an easy to use program, implementation resources and training options to ensure an amazing student experience.",esports_title:"Educational Esports Sponsors:",esports_blurb:"We are reinventing what an esport can be while engaging thousands of students to learn to code. Endemic esports mainstay __hyperx__ supported the CodeCombat AI League from its inaugural season, building compelling promotional programs around this unique esport.",hyperx:"HyperX",respawn:"RESPAWN",distribution_title:"International Distribution:",distribution_blurb:"Our programs have served students in over 190 countries and our content is translated into over __forty_languages__. While the US and China are markets where we sell directly, we work closely with local SaaS and EdTech distribution partners around the world to expand our reach",forty_languages:"40 languages",equity_social_title:"Tech Equity & Social Impact:",equity_social_blurb:"Not every partnership is built on the bottom line. As a mission-based organization we seek ways to give back as well. We work closely with foundations and other philanthropy partners to expand access to high-quality coding education. ",latin_superstar_blurb:"Additionally, Latin superstar __eugenio_derbez__ has helped us reach the Latinx community with a partnership to engage students in this often underserved and underrepresented group.",reach_latinx:"reach the Latinx community",eugenio_derbez_blurb:'"It is important to me to see Latino boys and girls represented in this space," said Eugenio Derbez. "Coding is the language of the future and if we want to be a part of that future then we need to get our kids coding."',seek_relationships_blurb:"We seek relationships with nonprofits and community-based organizations working with groups underrepresented in computer science and technology careers. Our partnership with __seeds_of_light__ will fund CS educational opportunities for thousands of young learners.",seeds_of_light:"Seeds of Light",corporate_team_building_title:"Corporate Team Building",corporate_team_building_blurb:"Need to engage your employees with a turnkey activity that will inspire their competitive spirit and challenge them to creatively problem solve? Work with us to build a custom competitive coding tournament that will have your team programming their own strategies while playing a game. __see_how__",footer_blurb:"These are just a few of the partnership structures we have successfully supported. If you would like to initiate a discussion with our business development team on any of these models or have a different partnership opportunity, please reach out today.",talk_with_us:"Talk with Us",our_partners:"Our Partners",see_how:"See How"},podcast:{learning_adventure:"Where learning is always an adventure.",explores_stem:"Our podcast explores the role of technology, STEM, and creative play in education. With expert guests, we discover how learning is always an adventure.",listen:"Listen",download:"Download",transcript:"Transcript",learn_more_coco:"Want to learn more about CodeCombat coding experiences?",subscribe:"Subscribe",explore_coco:"Explore CodeCombat",interested_in_being_guest:"Interested in being a guest on EdTech Adventures?",lets_chat:"Let's Chat",air_date:"Air date",play_episode:"Play Episode",about_guest:"About Our Guest",about_guests:"About Our Guests",all_episodes:"View All Episodes",no_permission:"You don't have permission to view this podcast",listen_now:"Listen Now",show_all_episodes:"Show all episodes"},library:{enter_library_card:"Enter your Library Card Number:",access_coco:"Access CodeCombat",play_premium:"Play CodeCombat Premium",play_free:"Play CodeCombat Free",not_in_library_network:"You're not connected to your library's network, so you can only access free content.",already_using_library_id:"Already using library id",play_coco:"to play CodeCombat",not_library_id:"Not your library id",access_using_id:"to access using your id!!",network_detected:"Library network detected, redirecting you to play CodeCombat",not_redirect_auto:"if redirect doesn't happen automatically",engage_members:"Give your members access to the most engaging way to learn coding.",importance_blurb:"Libraries play an important role in advancing educational equity in their communities. Many young learners do not have access or exposure to computer science, and libraries can provide important resources to these underserved groups. That is
2why we are partnering with libraries across the country to provide access to our game-based learning tools and educational resources.",games_teach_blurb:"Our games teach real typed Python, JavaScript and C++ coding languages through the power of play. The gameplay is paired with a scaffolded curriculum to allow self-paced learners the ability to master foundational programming concepts before moving on to the more complex. Each level challenges the player to type the code necessary to advance their hero and achieve the level goal.",platform_built:"Our platform is built to address the specific needs of libraries and their patrons:",accessible:"Accessible",accessible_blurb:"A basic computer with internet access is all you need to sign-in and start playing. The content is intended for beginners with no prior coding experience.",self_paced_intuitive:"Self-Paced and Intuitive",self_paced_intuitive_blurb:"Teachers are not required as players can dictate the pace at which they move through the curriculum. Our custom code engine and interpreter is designed for beginners, it understands the mistakes kids make and speaks to them using human, beginner-friendly terms.",engaging_content:"Engaging Content",engaging_content_blurb:"Game-based learning drives engagement from the start but perhaps even more importantly keeps students engaged when the concepts get more challenging. In a game environment failure and success are expected and embraced as part of the play experience.",api_integrate:"API integration",api_integrate_blurb:"Our games can be easily incorporated into your digital library interface through EZProxy or other popular systems. This structure provides instant access with the membersâ existing log in and no staff is needed to manage any logistics of licensing or access.",privacy:"Privacy",privacy_blurb:"We take user safety, cybersecurity, and data privacy seriously, following many stringent privacy regulations, like COPPA, FERPA, SOPIPA, California AB 1584, CalOPPA, Fair Information Practices, CAN-SPAM, and GDPR. These policies and protective measures have let us securely serve over twenty million users around the world.",privacy_policy:"our full privacy policy.",see:"See",communication_limit:"Communication Limits",communication_limit_blurb:"To ensure the security of your members, we do not offer in-game chat or other communication features between players, however we do allow members to
2safely share their coding projects with friends, family and the CodeCombat community. We restrict any upsell or marketing messaging to provide an uninterrupted experience for your patrons.",usage_stats:"Usage Stats",usage_stats_blurb:"Gain insight to your membersâ usage with our snapshot reporting tool. It provides access to usage stats at any time, including monthly active users, licensed days used and more valuable data points.",esports:"Academic Esports",esports_blurb:"Our esports program offers an opportunity to further engage your members through a fun and exciting competition. The AI League allows members to showcase their understanding of coding concepts in a new environment and practice problem solving strategies as they go head to head in battle against the global community.",work_with_us_blurb:"Work with us to unlock the next generation of engineers, programmers and CS professionals in your community.",schedule_demo:"Schedule a Demo",license_modal_subtitle:"Please complete this short form and one of our library specialists will reach out to provide a demo and custom pricing options!",license_modal_members:"Members Needing Access",license_modal_members_placeholder:"Approximately how many members will need access?",license_modal_contact:"Contact Our Team",license_days_used:"License days used",licenses_used:"Licenses used",users_active_licenses:"Users with active licenses",lines_code:"Lines of Code",programs_written:"Programs written",time_spent_min:"Time spent (in min)",month:"Month",teacher_classroom_name:"Teacher or classroom name",already_logged_in:"Already logged in, please logout from the top navigation bar to login again.",search_box_option:"If search box doesn't load, login by clicking",new_signups:"New Signups",heading_for:"for",heading_libraries:"Libraries",educational_equity:"Educational Equity",power_of_play:"Power of play",library_card:"Library Card Number",library_signup_promotion:"Sign Up to save progress and continue from where you left off on CodeCombat!!",welcome_dashboard:"Welcome to your dashboard",total_licenses_used:"Total Licenses Used",from_launch_date:"from the date of launch",renewal_date:"Renewal Date",access_old_dashboard:"If you want to access the old dashboard, visit",loading_from:"loading data from",user_activities:"User Activities",total_users:"Total Users",lines_of_code_written:"Lines of Code Written",hours_spent:"Hours spent",time_spent:"Time spent (in minutes)",new_users:"New Users",age_demographics:"Age demographics",levels_completed:"Levels Completed",adjust_dates_explore:"Adjust the dates below to explore patron usage trends over time."},related_accounts:{subtitle:"Add connections between different CodeCombat accounts to be able to quickly switch between them. For example, as a parent, you could switch to viewing CodeCombat from your kidsâ accounts. Or, as a teacher, you could add a test student account for yourself to see what your students see.",wrong_account:"Please log in to the correct account to confirm the account linking. Log In to the account and open link from email again.",link_account:"Link your account to",link_successful_redirect:"Account linked successfully, redirecting",add_related_user:"Add Related User",adding:"Adding",removing:"Removing",added:"Account added",related_email:"Related User Email",relation:"Relation",bi_directional:"Bi-directional",account_exists:"Account exists",link_using_email:"Link account using confirmation email",link_using_email_blurb:"User will receive a mail on __email__. Please ask the user to confirm linking by pressing on link present in email.",account_not_exist:"Account does not exist",account_type:"Account Type",create_account_and_email:"Create account and send email to link",authenticate:"Authenticate",invite:"Invite",auth_using_pass:"Authenticate using __email__ password",related_users:"Related Users",no_related_users:"No related users right now",send_verify_email:"Send Verify Email",verified:"Verified",switch:"Switch",title:"Related Accounts",bi_directional_help_text:"Allow added user to switch to your account?"}
2,modal_free_class:{paragraph_1:"Thank you for choosing CodeCombat.",paragraph_2:"Our team is eager to connect with you to get your child scheduled for a free trial class.",paragraph_3:"Please provide your contact information and one of our learning advisors will call you to gather student information, identify a teacher based on your childâs preferred learning style and to schedule the trial class.",name:"Name",phone_number:"Phone Number",available:"Are you available to talk now?",yes:"Yes",no:"No",preferred_time:"Preferred time for call if we can't connect now",anytime:"Anytime",morning:"Morning (8AM - 12PM)",afternoon:"Afternoon (12PM - 4PM)",evening:"Evening (4PM - 8PM)",time_zone:"Your Time Zone",email:"Email"},mobile_landing:{subtitle:"Get free access to the most engaging way to teach CS",you_re_set:"YOU'RE SET!",done_blurb:"Check your email for instructions on accessing your teacher account. For the best experience, we suggest using a device with an external keyboard and larger screen.",step_email:"STEP 1",step_name:"STEP 2",step_done:"DONE",video_title:"GET A SNEAK PEEK HERE",email_confirm:'The email address "__email__" is already registered. Would you like to login?'},roblox_landing:{meta_title:"CodeCombat Worlds on Roblox: Play, Code and Create",headline:"Empowering Every Player to Become a Creator!",subhead:"Experience the easiest and most enjoyable way to code and create your own Roblox games",join_the_beta:"Join the Beta",sign_up:"Sign Up",box_play_subhead:"Play",box_code_subhead:"Code",box_create_subhead:"Create",box_headline:"Play, Code and Create on Roblox",box_play_blurb_teacher:"In partnership with Roblox Education, we are combining our proven coding-as-gameplay approach with the creative and social power of the Roblox platform to make a new Roblox experience that teaches coding and game development in-game.",box_code_blurb_teacher:"The experience will be personalized and differentiated, offering structured and unstructured intuitive practice that allows the player to learn as they like, while still aligning with CSTA and ISTE computer science standards.",box_create_blurb_teacher:"This engaging play experience will provide the foundational instruction needed to take players from zero coding knowledge to publishing full Roblox games. Our Creative Mode lets players build while playing, without requiring switching modes to the full desktop Roblox Studio IDE.",box_play_blurb_player:"Explore the 3D immersive experience of CodeCombat Worlds. Program your pets and adventure into a universe of creativity and shared experiences with friends.",box_code_blurb_player:"Learn real Lua coding, from beginner to advanced. Use code to explore, gather resources, build, and discover your path to glory.",box_create_blurb_player:"No Roblox Studio? No problem. Code in-game in Creative Mode to make full Roblox games to share with your friends.",box_play_blurb_parent:"Through our proven game-based learning approach, we engage young learners through play, while teaching coding and game development.",box_code_blurb_parent:"Coding from the very start of their adventure, the experience is personalized and differentiated, offering structured and unstructured intuitive practice that allows your child to learn as they like.",box_create_blurb_parent:"Many kids want to create games but donât know where to start. This engaging play experience will provide the foundational instruction needed to take players from zero coding knowledge to publishing full Roblox games.",box_play_blurb_partner:"Engage young learners with a next-generation Roblox experience. With support from Roblox Education, we are combining our proven coding-as-gameplay approach with the creative and social power of the Roblox platform to make a new Roblox experience that teaches coding and game development in-game.",box_code_blurb_partner:"The experience will be personalized and differentiated, offering structured and unstructured intuitive practice that allows the player to learn as they like. We make it easier than ever to teach real coding to your students in either self-paced or instructor-directed contexts.",box_create_blurb_partner:"Instead of building a standalone curriculum tied to Roblox Studio, take advantage of our in-game Creative Mode and its scaffolded instruction to easily ramp your students from no coding experience to publishing full Roblox games.",role_teacher:"Teacher",role_player:"Player",role_parent:"Parent",role_partner:"Partner",select_role:"Please select your role",question_1:"Do I need to know Lua or Roblox Studio?",answer_1:"No. This experience will allow anyone to play, code and create from the very start of their adventure, without any coding experience.",question_2:"Can I create my own games?",answer_2:"Yes. Game development is at the core of this experience and after completing the core learning levels you will have the opportunity to create your own.",question_3:"Will my creations be available on Roblox?",answer_3:"Yes. Anything you create in this experience, you will be able to import into Roblox Studio and then publish to the platform for anyone to play.",bottom_blurb_parent:"No need to wait - __sign-up__ for our live online classes to get your child coding today! Get them started with CodeCombat web to be the first to get access to the CodeCombat Worlds Roblox experience.",bottom_blurb_sign_up:"Sign up",bottom_blurb_partner:"Want to use the new CodeCombat Worlds Roblox experience for your education business, social impact initiative or international distribution opportunity? __reach-out__ to discu
2ss partnering today.",bottom_blurb_reach_out:"Reach out",boxes_title:"Play, Code and Create on Roblox",login_message:"You need to login before connecting your account to Roblox",connect_button_header:"Account Linking Rewards",connect_button_linker_badge:"Linker Badge",connect_button_accounts_linked:"Accounts Linked",connect_button_pet_chroma:"Pet Chroma",connect_button_exclusive_pet:"Exclusive Pet",connect_button_blurb:"Link your CodeCombat and Roblox accounts for a seamless experience!",connect_button_list_item_1:"Manage subscriptions",connect_button_list_item_2:"Unlock additional content",connect_button_list_item_3:"Track progress",connect_button_list_item_4:"Receive exclusive rewards",connect_button_list_item_5:"Access curricular resources",connect_button_list_item_6:"Parent and teacher dashboard access",connect_button_list_item_7:"Unlock generative AI features",connect_button_list_item_8:"Creative mode publishing and exporting",connect_button_connected_blurb:"Congratulations, you have linked your accounts! Invite your friends to help reach the community linking goals.",connect_button_not_connected_blurb:"The more people link their accounts, the more rewards you'll receive!",faq_bottom:'See more <a href="https://codecombat.zendesk.com/hc/en-us/categories/18084251471383-CodeCombat-Worlds-Roblox-" target="_blank">frequently asked questions in our help center</a>. <br />If you have any other questions, please <a href="mailto:[email protected]">Contact Us</a>.',modal_title:"CodeCombat Worlds<br> Now Live on Roblox!",modal_play_now:"PLAY NOW!",modal_button_link_roblox_account:"Link Roblox Account",age_restriction:"You must be 13 years or older to link your Roblox account."},ai:{prompt_level_chat_1:"What does this error mean?",prompt_level_chat_2:"Please explain this error.",prompt_level_chat_3:"What's wrong?",prompt_level_chat_4:"Please help explain this.",prompt_level_chat_5:"How can I fix it?",prompt_level_chat_6:"Help, please.",prompt_level_chat_7:"What do I do?",prompt_level_chat_8:"What does this mean?",prompt_level_chat_9:"Please explain.",prompt_level_chat_10:"What is this error?",prompt_level_chat_11:"What is the problem?",prompt_level_chat_12:"???",prompt_level_chat_13:"Dear AI, I beseech you, explain my error, in verse.",prompt_level_chat_hint_1:"Can I get a hint?",prompt_level_chat_hint_2:"What's the next thing I should do?",prompt_level_chat_hint_3:"Please help me with the next part of my code.",prompt_level_chat_hint_4:"Coding hint, please.",prompt_level_chat_hint_5:"I need a hint on the next step.",hackstack_promotion:"Unlock the Full Potential of Generative AI",try_it_free:"Try it free",hackstack_promotion_blurb:"New to AI? Explore <b>CodeCombat AI HackStack</b> â the simplest route to AI literacy. Unlock the potential of ChatGPT-4, Claude, Stable Diffusion, and DALL-E. This innovative tool offers hands-on AI training, making creation effortless.",generate:"Generate",games:"Games",art:"Art",websites:"Websites",code_more:"Code and more",ideal_endeavour:"It's the ideal companion for any endeavor.",ai_made_ss:"AI Made Simple & Safe -- Start Today!",aiss_body:"Built as the simplest path to AI literacy, this tool empowers learners to harness top LLMs with hands-on AI training, making creation easyâwhether itâs games, art, writing, code, or more. Together, we help learners safely bring their ideas to life across any subject.",learn_more:"Learn More!",cyber_security_modal_header:"Cybersecurity Curriculum for AP and CompTIA Security+",cyber_security_modal_body:"Our Cybersecurity curriculum has now officially launched. Give students a classroom-ready way to prepare for AP Cybersecurity and CompTIA Security+ through digital simulations, te
2chnical writing, and real-world security scenarios, with no specialized hardware required."},user_credits:{level_chat_left_in_duration:"__credits__ AI Bot queries left for the __duration_key__",level_chat_left_in_duration_multiple:"__credits__ AI Bot queries left for __duration_amount__ __duration_key__",level_chat_no_credits_left_duration:"No AI Bot queries left for the __duration_key__",level_chat_no_credits_left_duration_multiple:"No AI Bot queries left for __duration_amount__ __duration_key__",level_chat_no_credits_left:"No AI Bot queries left",level_chat_duration_hour:"hour",level_chat_duration_day:"day",level_chat_duration_week:"week",level_chat_duration_month:"month",level_chat_duration_year:"year"},home_v3:{mission_title:"Join us in our mission to make coding and AI accessible to all.",mission_supporting_text:"Weâre committed to delivering high quality education solutions that empower everyone to realize their potential and help shape a better future.",stat_card_1_text:"20 Million",stat_card_1_description:"Engaged Students",stat_card_2_text:"1 Billion",stat_card_2_description:"Lines of Code",stat_card_3_text:"320,000",stat_card_3_description:"Supported Teachers",stat_card_4_text:"75,000",stat_card_4_description:"Schools Reached",stat_card_5_text:"190+",stat_card_5_description:"Countries",stat_card_6_text:"5.2 Million",stat_card_6_description:"ESports Players",learn_to_code:"Learn to **code** and use **AI**, all through the **power of play**.",innovative_play_experiences:"We create innovative play experiences to make computer science engaging and accessible to all.",sign_up_today:"Sign-up today to play for free and explore our games and resources.",im_an_educator:"Iâm an Educator",im_a_parent:"Iâm a Parent",im_a_student:"Iâm a Student",programming_languages:"Programming Languages & AI Tools",engaging_play_experiences:"Engaging Play Experiences",for_younger_learners:"For Younger Learners",y
2our_turnkey_solutions:"Your Turnkey Solutions",trends_insights:"Trends & Insights",awards_partners:"Awards & Partners",faq_visit_help_center:"For answers to frequently asked questions visit our **help center**.",contact_us:"Contact Us",for_further_questions:"For further questions",education_partner:"Education[NEWLINE]Partner",official_member:"Official[NEWLINE]Member",best_creativity_tool_for_students:"Best Creativity[NEWLINE]Tool for Students",official_partner:"Official[NEWLINE]Partner",hour_of_code_activity_partner:"Hour of Code[NEWLINE]Activity Partner",top_pick_for_learning:"Top Pick for[NEWLINE]Learning",testimonals_1_title:"âOne thing I am able to do now, that I could not do before, is actually believe I can code.â",testimonals_1_name:"Mountain Ridge Middle School Student",testimonals_2_title:'"Name any program online, Iâve tried it. None of them match up to CodeCombat & Ozaria. Any teacher who wants their students to learn how to code... start here!"',testimonals_2_name:"Scott Baily, Bobby Duke Middle School",testimonals_3_title:'"Iâve always had aspirations of designing video games and learning how to code ... this is giving me a great starting point."',testimonals_3_name:"Joey, 10th Grade",testimonals_4_title:'"What I love the most about CodeCombat is that it does not simplify coding. The students are learning to write actual code, yet doing it in such a way that they are having fun.â',testimonals_4_name:"Sandra Ahlstrom, Teacher, Sheridan County School District #2",carousel_1_title:"Game-Based[NEWLINE]Learning",carousel_1_text:"With our unique approach, students embrace learning as they play and write code from the very start of their adventure, promoting active learning and a growth mindset.",carousel_2_title:"Text-Based[NEWLINE]Coding",carousel_2_text:"Our custom code engine and interpreter is designed for beginners, teaching true Python, JavaScript, and C++ programming languages using human, beginner-friendly terms.",carousel_3_title:"Project-Based[NEWLINE]Assessments",carousel_3_text:"These projects are an opportunity for students to code their own shareable games. We provide evaluation rubrics so that you can use Capstone projects as your primary summative assessments.",carousel_4_title:"AI[NEWLINE]Acceleration",carousel_4_text:"We teach students how to use AI to expedite learning and advance their coding abilities. This powerful combination unlocks the creative potential of those at every skill level.",carousel_5_title:"Educator[NEWLINE]Empowerment",carousel_5_text:"Our classroom solutions are built with all the support and resources any educator would need to implement the curriculum and drive successful outcomes.",carousel_6_title:"Student[NEWLINE]Impact",carousel_6_text:"Our products have helped over 20 million students enjoy learning Computer Science, teaching them to be critical, confident, and creative learners. We engage all students, regardless of experience, helping them to realize a pathway to success in Computer Science.",engaging_boxes_1_title:"Ozaria Classroom",engaging_boxes_1_text:"A narrative coding adventure that establishes the fundamentals of computer science.",engaging_boxes_2_title:"CodeCombat Classroom",engaging_boxes_2_text:"A full CS curriculum that builds from core concepts all the way through web development, game development and **[https://codecombat.com/apcsp]AP CSP**.",engaging_boxes_3_title:"CodeCombat Worlds on Roblox",engaging_boxes_3_text:"In partnership with Roblox Education, this AI enabled experience super-charges student coding abilities and provides a real-world platform to create amazing games and experiences.",engaging_boxes_4_title:"CodeCombat AI League Esports",engaging_boxes_4_text:"An epic competitive coding esports platform that encourages creative programming in a game-based environment.",engaging_boxes_5_title:"CodeCombat AI HackStack",engaging_boxes_5_text:"The first generative AI companion tool specifically crafted for those new to AI with a focus on student privacy and safety. Blending simplicity and power, the platform accelerates student abilities and unleashes their creative potential.",engaging_boxes_6_title:"CodeCombat Home",engaging_boxes_6_text:"With access to over 530 levels and exclusive features like pets, premium-only items, and heroes, your child can fully immerse themselves in the world of coding. They can even design games to challenge their friends, build websites and apps to share.",young_learners_1_title:"CodeCombat Junior",young_learners_1_text:"Our flagship K-5 curriculum features a progression of learning levels that teach basic coding concepts at a slower pace, modeled specifically for elementary students.",young_learners_1_linkText:"Sign up for Beta Access",young_learners_2_title:"AI Junior",young_learners_2_text:"Introduces multi-modal generative AI in a simple and intuitive platform designed specifically for K-5 students.",young_learners_2_linkText:"Sign up for Beta Access",solutions_1_title:"Professional Development",solutions_1_text:"Built to empower all teachers with the skills, knowledge, and confidence to effectively teach computer science.",solutions_1_middleText:"Earn up to 6 graduate credits.",solutions_1_linkText:"Try it now",
2solutions_2_title:"AP CSP Exam Preperations",solutions_2_text:"We are recognized by the College Board as an endorsed provider of curriculum and professional development for AP® Computer Science Principles (AP CSP). Our AP CSP curriculum provides game-based and turnkey tools to prepare students for the AP exam.",solutions_2_linkText:"Try it now",solutions_3_title:"Grant and Funding Sources",solutions_3_text:"We understand the funding hurdles that schools encounter and are passionate about helping to overcome these obstacles. Check out our comprehensive guide to grant funding or speak with our team to learn more.",solutions_4_title:"District-Level Solutions",solutions_4_text:"Our innovative solutions have helped districts across the country expand or start their computer science programs. Designed with feedback from our community of over 320,000 educators, our comprehensive solution provides a responsive and flexible curriculum that meets the needs of all students and educators. Itâs easy to implement and scale with our team providing the training and support your teachers need.",solutions_5_title:"Live Online Classes",solutions_5_text:"Our online coding classes combine the power of gameplay and personalized instruction for an experience your child will love. From coding and publishing their own Roblox games, to building a website for a new business, your child will explore all that is possible with AI and coding.",solutions_6_title:"CodeQuest",solutions_6_text:"Join us for an immersive educational experience like no other, designed to inspire and empower the next generation of computer science innovators. This rare opportunity brings together students from around the globe to participate in a series of coding hackathons, learn from notable speakers and visit top universities and technology organizations.",solutions_6_linkText:"Discover More",solutions_7_title:"Partner Solutions",solutions_7_text:"Join our mission to make coding accessible and engaging for all by becoming a valued partner. Our flexible partnership structures include educational businesses, esports sponsors, international distributors, and social impact organizations. Partners receive access to our easy-to-use programs, implementation resources, and training options for a successful and enjoyable experience.",solutions_8_title:"Library Solutions",solutions_8_text:"As an entirely self-paced and self-directed digital resource, CodeCombat is the best integration for libraries that want to empower their members of all ages to learn how to code. Our platform offers everything learners need to experience a high-level coding education through a uniquely exciting, game-based curriculum. Perfect for beginners all the way up to those who want to master college-level coding concepts.",learn_more_text:"Discover More",best_homeschool_curriculum:"Best Homeschool[NEWLINE]Curriculum",sign_up_free:"Sign Up Free",try_it_now:"Try it now",junior_modal_header:"Try Our New K-5 Curriculum Today!",junior_modal_body:"Perfect for K-5 classrooms, this new curriculum features real coding with icons, drag-and-drop blocks, parallel blocks with text, or purely text-based options. Plus, itâs fully accessible on tablets making it easy to support all learners.",hs_modal_header:"Unlock Free AI Access This Summer",hs_modal_body:"Discover how educators innovate with our AI -- watch the quick demo! This summer, explore Claude, DALL-E, Stable Diffusion, and more. Book a brief meeting by August 15 to claim your free 90-day AI educator license -- We'll handle the setup so you can dive right in.",get_started:"Get Started!"},schools_page:{meta_title:"CodeCombat: the most effective computer science solution for schools",most_effective_computer_science_solution:"The most effective computer science solution for **schools**",our_comprehensive_implementation:"Our comprehensive implementation empowers teachers, engages students and delivers successful outcomes.",start_teach_trial:"Start teaching today with free trial access to all games and teaching resources.",get_my_solution:"Get My Solution",flexible_standards_aligned_curriculum_title:"A Flexible Standards Aligned Curriculum",flexible_standards_aligned_curriculum_text:"Our scaffolded approach covers computer science fundamentals up through advanced courses and features **[https://codecombat.com/apcsp]College Board endorsed AP CSP**, web and game development. We build customized pathways to deliver a personalized learning experience that meets **[https://codecombat.com/standards]CSTA, ISTE and Common Core State Standards**. The flexible curriculum offers the ability to teach Python, JavaScript, C++, Luau and more.",comprehensive_tools_resources_title:"Comprehensive Tools & Resources",comprehensive_tools_resources_text:"The teacher resource hub empowers all educators to teach on day one. Easily access lesson plans, student-facing lesson slides, rubrics, extension activities, capstone projects and assessments. Our safe AI integrations accelerate student potential and allow educators to optimize class time. For real-world practice and application, we offer competitive coding esports, Roblox game design and web design options. Additionally, educators can control student pacing with content assignment and locking features.",accessible_data_insights_title:"Accessible Data & Insights",accessible_data_insights_text:"We provide administrators the insight they need with real-time usage data and progress reports at the class, school, district and state level. Student level progress tracking enables educators to easily identify when intervention is needed and the built in pre and post module assessments measure student comprehension.",high_quality_professional_development_title:"High Quality Professional Development",high_quality_professional_development_text:"**[https://csteachers.org/p
2d-opportunities/accredited-pd/]Endorsed by the Computer Science Teachers Association (CSTA)**, the course provides 44+ hours of self-directed, web-based, and on-demand learning. The program is self-paced and designed to fit any busy schedule. The course prepares anyone with or without teaching experience to successfully implement a CS curriculum.",earn_up_to_3_graduate_credits:"Earn up to 6 graduate credits with this course.",request_a_demo:"Request a Demo",maximize_your_impact:"All the tools to maximize learning outcomes",core_curriculum:"Core Curriculum",practice_enrichment:"Practice & Enrichment",student_acceleration_ap_csp:"Student Acceleration & AP CSP",ai_enhanced_core_curriculum:"AI-Enhanced Core Curriculum",young_learners:"Young Learners",funding_solutions:"Funding Solutions",support_development:"Support & Development",ai_support_acceleration_title:"AI Support & Acceleration",ai_support_acceleration_text:"We use AI to make teaching time more effective. CodeCombat now supports an AI hints feature that evaluates code, points out errors, and explains how to fix them. Most importantly, it provides all the context needed to understand the why, without revealing the entire solution. Students will still need to work through each levelâs coding challenge but now you donât need to stop class to address individual needs. **Teachers receive an allocation of 100 AI hints per day** and **each student gets 5 AI hints per day**, to ensure they always have the support they need.",codecombat_ai_hackstack_text:"For those new to AI, we offer **CodeCombat AI HackStack**. This innovative tool not only teaches students how to use AI but provides secure access to many of the latest LLMs including ChatGPT-4, Claude, Stable Diffusion, DALL-E and others. After just a short time working through the training mode, users unlock the full creative potential of the tool, allowing prompt-to-code-to-published projects in minutes. This AI-powered application enables users to generate games, art, websites, code and more. **Teachers receive an allocation of 100 AI prompts per month** and **each student gets 10 AI prompts per week**, to create multiple AI projects.",pathways_for_success:"Pathways for Success",for_your_custom_pathway:"For Your Custom Pathway",elementary_school:"Elementary School",codecombat_jr:"CodeCombat Junior",ai_hacksstack_jr:"AI Junior",codecombat_worlds:"CodeCombat Worlds",k:"K",icons_block_based:"Icons & Block-Based",introduction_to_ai:"Introduction to AI",grade_1:"Grade 1",simple_ai_templates:"Simple AI Templates",grade_2:"Grade 2",complex_ai_templates:"Complex AI Templates",explorations:"Explorations",grade_3:"Grade 3",block_based:"Block-Based",grade_4:"Grade 4",block_based_text:"Block-Based & Text",grade_5:"Grade 5",text:"Text",our_k_5_implementation_pathway:"Our K-5 Implementation Pathway will introduce two new **beginner friendly** platforms which include CodeCombat Junior, our flagship elementary level curriculum features a progression of learning levels that **teach basic coding concepts at a slower pace**, and AI Junior, a **multimodal AI tool** that allows students to sketch, write, and design their own digital products.This scaffolded progression will let students grow with our immersive content and explore a wide variety of computational thinking and computer science concepts",middle_school:"Middle School",high_school:"High School",ozaria:"Ozaria",ai_hackstack:"AI HackStack",ai_league:"AI League",grade_6:"Grade 6",introduction_to_coding:"Introduction to Coding",introduction_to_luau_coding:"Introduction to Lua Coding",introduction_to_coding_esports:"Introduction to Coding Esports",grade_7:"Grade 7",loops_structures:"Loops & Structures",introduction_to_creative_mode:"Introduction to Creative Mode",ai_scenarios:"AI Scenarios",competitive_coding_arenas:"Competitive Coding Arenas",grade_8:"Grade 8",functions_data:"Functions & Data",game_development:"Game Development",open_ended_ai_projects:"Open-Ended AI Projects",middle_school_implementation:"Our middle school implementation establishes a **foundation of coding concepts** with Ozaria, our core Computer Science curriculum. This eventually expands to more voice and choice, where students will **explore coding and AI** across three diverse platforms. The **educator and students can choose** how deeply they will explore each of these additional platforms.",codecombat:"CodeCombat",ap_csp:"AP CSP",cs1_4_data_science_cybersecurity_exam_content:"CS1-4 [NEWLINE] Data Science [NEWLINE] Cybersecurity [NEWLINE] Exam Content",advanced_cs:"Advanced CS",cs5_6_gd1_3_wd1_2:"CS 5-6 [NEWLINE] GD 1-3 [NEWLINE] WD 1-2",advanced_game_development:"Advanced Game Development",advanced_ai_projects:"Advanced AI Projects",global_esports_tournament:"Global Esports Tournament",first_year_high_school_curriculum:"The first year of our high school curriculum focuses on **AP CS Principles**, which includes our CodeCombat courses, CS1âCS4 and exam curriculum content such as **Data Science** and **Computing Systems**. The more advanced year allows students to explore more of our **advanced CS courses** and offers voice and choice across our three platforms.",accessibility_representation_title:"Accessibility & Representation",accessibility_representation_text:"Our student-centric design meets students where they are and provides them with the support they need. In-person and remote learning capabilities allow students to learn anywhere, anytime. Keyboard accessibility, full-screen reader compatibility and colorblind-friendly color scheme ensures everyone can learn to code.",accessibility_acr_prefix:"We meet WCAG 2.1 Level AA and Revised Section 508 Standards. See our",accessibility_acr_link_text:"Accessibility Compliance Report (ACR) / VPAT",accessibility_acr_suffix:"for more information.",privacy_security_title:"Privacy & Security",privacy_security_text:"We take student safety, cybersecurity, and data privacy seriously, and follow the stringent school-grade privacy regulations including COPPA, FERPA, SOPIPA, California AB 1584, CalOPPA, Fair Information Practices, CAN-SPAM, as well as GDPR. All data is stored securely on Amazon Web Services in the US. our AI integrations have guardrails to protect Personal Identifiable Information and restrict sensitive content. Project sharing is controlled and peer-to-peer communication is restricted. Data Processing Agreements are available, visit **https://codecombat.com/privacy** for more information.",contact_our_team:"Contact Our Team",for_turnkey_solutions:"For your turnkey solution",testimonials_1_quote:"âLet me make this clear first. I recommend your product because it is the best programming teaching tool currently on Earth.â",testimonials_1_name:"Seth Reichelson",testimonials_1_title:"AP Computer Science Teacher, Lake Brantley High School. White House Champion of Change Winner",testimonials_2_quote:"â[Ozaria] is a full curriculum for computer science education, itâs super impressive, very extensive [...] Itâs got everything you need [...] I don't know that we've seen anything with this much extra stuff to help you teach it well.â",testimonials_2_name:"Tanner Higgin",testimonials_2_title:"Editorial Director - Learning Content, Common Sense Education",testimonials_2_full_review_text:"Full Review Here",testimonials_3_quote:"âCodeCombat was one of the easiest to implement programs weâve piloted and student engagement was extremely high. The way the content is designed, scaffolds perfectly and allows students to quickly move into high level programming skills far beyond anything we could have hoped for.â",testimonials_3_name:"Steve Kong",testimonials_3_title:"Instructional Services Specialist, Riverside Unified School District",testimonials_4_quote:"âOne thing I am able to do now that I could not do before is actually believe I can code.â",testimonials_4_name:"",testimonials_4_title:"Mountain Ridge Middle School Student",testimonials_5_quote:"âCodeCombat has transformed how I teach coding...I utilize the great teacher resources including Curriculum Guides, Project Guides, and Solutions. Using CodeCombat has helped me to teach fairly advanced concepts in a way the students enjoy and understand. What I love the most about C
2odeCombat is that it does not simplify coding. The students are learning to write actual code, yet doing it in such a way that they are having fun.â",testimonials_5_name:"Sandra Ahlstrom",testimonials_5_title:"Teacher, Sheridan County School District #2",faq_1_question:"What you need to know about certification exams and AP CSP",faq_1_answer:"Career Technical Education (CTE) programs in the U.S. focus on equipping students with industry-valued skills and can lead to trade school or college education. Mandated by state and federal laws, CTE programs must offer students postgraduate credit, industry certifications, or internship hours. While some fields, like cybersecurity, offer valued certification exams, others such as software engineering prioritize four-year degrees over such exams. However, passing the AP Computer Science Principles exam serves as a recognized avenue to postsecondary credit, enabling students to bypass costly and time-consuming college requirements. To help prepare students CodeCombat provides an **[https://codecombat.com/apcsp]AP CSP course**, endorsed by the College Board.",faq_2_question:"How we use AI to support educators",faq_2_answer:"We use AI to make teaching time more effective. With growing class sizes and limited time for personalized instruction our AI-powered level chat assistant is the perfect tool to take care of your students' individual questions. This powerful helper can evaluate code, point out errors, explain how to fix them, and provide all the context they need to understand the âwhyâ. And most importantly it will not give them the solution. With only next line assistance available students will still need to work through each level's coding challenge but now you donât need to stop class to address individual needs.",faq_3_question:"How we integrate AI safely and responsibly",faq_3_answer:"Our AI technology adheres to safety-first principles, providing confidence to both students and educators. We do not allow our backend LLM providers to train your chats and have established protective measures against inappropriate content. These measures include filtering harmful language, maintaining focus on relevant subjects, safeguarding personal information, and educating students about potential AI pitfalls. Moreover, we log AI chat activity for teacher monitoring and uphold stringent data privacy and security protocols.",faq_4_question:"Why computer science is important",faq_4_answer:"Computer science education provides the immediate benefits of boosting problem-solving competencies, sharpening mathematical abilities, and encourages the logical thinking necessary for success across other core school subjects. The learning extends far beyond the code, enhancing students' capability to solve complex problems and adapt to different situations. See how Ozaria helps make those **[https://docs.google.com/presentation/d/1xcc1tw4k8oY9basXuxO0v_RU9z-Dr8ImvbvbuNvJeHA/edit#slide=id.g134a7e7c8f1_0_3]cross curricular connections**. Our curriculum is designed to equip students today with the crucial computer science skills that will prepare them for the digital jobs of tomorrow.",faq_5_question:"Why game-based learning works",faq_5_answer:"Game-based learning is so effective because it provides a safe environment where failure is not feared but expected, offering an opportunity for growth and understanding. This approach encourages students to learn from their mistakes and adapt their strategies for success. Furthermore, the interactive and dynamic nature of games helps students retain information more effectively, as they are learning through practical, hands-on experiences. It actively engages students in the learning process, increasing their motivation and enjoyment.",faq_6_question:"How to find alternative funding sources",faq_6_answer:"Computer science education has become a vital component of a student's academic journey, however, many schools face challenges in securing the necessary resources to provide their students with comprehensive computer science programs. At CodeCombat, we understand the funding hurdles that schools encounter and are passionate about helping them overcome these obstacles. Grants can be a valuable resource but difficult to discover and apply for. Check out our comprehensive **[https://codecombat.com/grants]guide to grant funding** or speak with our team to learn more.",faq_7_question:"How to get started",faq_7_answer_1:"Create your Teacher or Admin Account",faq_7_answer_2:"Create a class",faq_7_answer_3:"Add students",faq_7_answer_4:"Sit back and watch your students have fun learning to code",faq_8_question:"Support for Clever and Google login",faq_8_answer:"We offer both Clever and Google Classroom integration. Check out our **[https://codecombat.com/teachers/resources/clever-faq]Clever Integration FAQ** for more details on how to get started. If you are using Google Classroom be sure to use the Google Single Sign-On (SSO) Modal to sign up for your teacher account. If you already have an account using your Google email, use the Google SSO modal to log in next time. In the Create Class modal, you will see an option to Link Google Classroom. We only support rostering via Google Classroom at this time. Note: you must use Google SSO to sign up or log in at least once in order to see the Google Classroom integration option.",faq_9_question:"Recommended browser and operating system",faq_9_answer:"CodeCombat and Ozaria run best on computers with at least 4GB of RAM, on a modern browser such as Chrome, Safari, Firefox, or Edge. Chromebooks with 2GB of RAM may have minor graphics issues in later courses. A minimum of 200 Kbps bandwidth per student is required, although 1+ Mbps is recommended.",core_curriculum_1_title:"Ozaria Classroom",core_curriculum_1_text:"A narrative coding adventure that establishes the fundamentals of computer science.",core_curriculum_1_link_text:"Try it now",core_curriculum_2_title:"CodeCombat Classroom",core_curriculum_2_text:"A full CS curriculum that builds from core concepts all the way through web development, game development and **[http://codecombat.com/apcsp]AP CSP**.",core_curriculum_2_link_text:"Try it now",practice_enrichment_1_title:"CodeCombat AI League Esports",practice_enrichment_1_text:"An epic competitive coding esports platform that encourages creative programming in a game-based environment.",practice_enrichment_1_link_text:"Try it now",practice_enrichment_2_title:"CodeCombat Worlds on Roblox",practice_enrichment_2_text:"In partnership with Roblox Education, this AI enabled experience super-charges student coding abilities and provides a real-world platform to create amazing games and experiences.",practice_enrichment_2_link_text:"Try it now",
2student_acceleration_1_title:"CodeCombat AI HackStack",student_acceleration_1_text:"The first generative AI companion tool specifically crafted for those new to AI with a focus on student privacy and safety. Blending simplicity and power, the platform accelerates student abilities and unleashes their creative potential.",student_acceleration_1_link_text:"Try it now",student_acceleration_2_title:"AP CSP Exam Preperations",student_acceleration_2_text:"We are recognized by the College Board as an endorsed provider of curriculum and professional development for AP® Computer Science Principles (AP CSP). Our AP CSP curriculum provides game-based and turnkey tools to prepare students for the AP exam.",student_acceleration_3_title:"Algebra + AI",student_acceleration_3_text:"A complete, teacher-led Algebra + AI curriculum that builds strong math foundations while integrating AI as a tool. Students develop deep reasoning, modeling skills, and critical thinking through structured, classroom-ready lessons.",student_acceleration_4_title:"Cybersecurity",student_acceleration_4_text:"A classroom-ready cybersecurity curriculum with digital simulations that eliminate the need for specialized hardware, plus technical writing, safe AI use, and learning aligned with AP Cybersecurity and CompTIA Security+.",young_learners_1_title:"CodeCombat Junior",young_learners_1_title_classroom:"CodeCombat Junior Classroom",young_learners_1_text:"Our flagship K-5 curriculum features a progression of learning levels that teach basic coding concepts at a slower pace, modeled specifically for elementary students.",young_learners_1_link_text:"Sign up for Beta Access",young_learners_2_title:"AI Junior",young_learners_2_text:"Introduces multi-modal generative AI in a simple and intuitive platform designed specifically for K-5 students.",young_learners_2_link_text:"Sign up for Beta Access",funding_solutions_1_title:"Grant and Funding Sources",funding_solutions_1_text:"We understand the funding hurdles that schools encounter and are passionate about helping to overcome these obstacles. Check out our comprehensive guide to grant funding or speak with our team to learn more.",funding_solutions_1_link_text:"Discover More",support_development_1_title:"Live Online Classes",support_development_1_text:"Want to provide high-quality CS instruction, but donât have the staff to execute? Our team of master instructors can provide engaging virtual lessons perfect for in-class or after school programs.",support_development_1_link_text:"Sign up for Beta Access",faq_header:"Frequently Asked Questions",faq_see_more:"See more frequently asked questions in our **[https://codecombat.zendesk.com/hc/en-us]help center**.",trends_1_title:"AI isnât Replacing Coding, Itâs Accelerating it!",trends_1_text:"We've officially entered the AI era. Along with hype and hyperbole comes a wave of fear and uncertainty concerning the future of computer science. Videos of AI writing code with simple inputs and stories of engineers replaced by AI bots fueled a dramatic yet ultimately flawed narrative. The truth is, AI isnât replacing coding; itâs accelerating it!",trends_1_linkText:"Read the Blog",trends_2_title:"Career Technical Education with Pat Keeney",trends_2_text:"Career Technical Education (CTE) prepares students to become lifelong learners and provides them with the skills and knowledge they need to succeed in their future careers. In this episode, Pat Keeney, CTE Champion at McGraw Hill, shares his experience",trends_2_linkText:"Listen to the Podcast",learn_more_text:"Discover More",your_turnkey_solutions:"Your Turnkey Solutions",free_teacher_account:"Free Teacher Account",trial_the_curriculum:"Trial the curriculum with your students today!",try_it_free:"Try It Free"},hackstack_page:{header:"Learn, create, and accelerate with **AI HackStack**",header_details:"Together, we empower learners to safely bring their ideas to life across any subject.",header_details_teacher:"With a license, unlock 100 monthly prompts for yourself and 30 weekly for students to bring your ideas to life across any subject.",accessible_safe_use:"Accessible, safe, and responsible use of AI",learn_title:"Learn",learn_description:"From **English L
2anguage Arts** to **Mathematics** and **Science**, students discover how to craft safe and effective prompts for generating output in each discipline. Learn essential prompt engineering skills in a **wide range of subjects** using Al HackStack's Learning Scenarios. Along the way, your students will gain hands-on experience with popular Al models like Claude, DALL-E, and Stable Diffusion.",create_title:"Create",create_description:"Bring your wildest ideas to life with HackStack's Al **sandbox environment**. Here, students will be able to quickly prototype interdisciplinary projects of all kinds. Use our turnkey curriculum to help your students engage in meaningful discussions about the **responsible use** of Al and the **ethical implications** of their creations. This holistic approach not only sparks innovation but also cultivates digital citizenship, equipping students with the skills and awareness needed to thrive in the digital age.",remix_title:"Remix",remix_description:"Supercharge the creative process by customizing one of the many projects found in Al HackStack's **community library**. The remix feature not only accelerates individual progress but also fosters a **collaborative ecosystem** where ideas evolve rapidly. As students remix and build upon each other's work, the collective output of your classroom will reach new creative heights, resulting in an impressive showcase of student-driven innovation.",privacy_title:"Safety and Privacy",privacy_subtitle:"Our AI platforms fuel student curiosity and creativity, with the privacy and security you need.",data_title:"Your Data is Safe",data_description:"We carefully vet Al tools before they are added to Al HackStack. If they're not safe, we don't include them. We also screen user prompts to make sure they don't contain any Personally Identifiable Information. If they do, we replace it with a placeholder value before giving it to an external Al model. Additionally, you have the power to lock specific Al tools so that your students cannot access the ones you don't feel comfortable using.",moderation_title:"Our Moderation Practices",moderation_description:"We monitor user prompts and Al output to make sure they don't contain any inappropriate content. You can review every prompt that your student has written in the Al HackStack teacher dashboard. We also provide turnkey resources to help you and your students navigate the complexity of using Al, and provide professional development opportunities for those who want more guidance on what to look for when students are using Al.",professional_development:"High Quality Professional Development",professional_development_text:"We offer professional development opportunities for those who want more guidance on how to use AI in the classroom. These professional development workshops were modeled after **[https://www.teachai.org/toolkit]Teach AI**, **[https://www.edsafeai.org/safe]EdSafe**, **[https://csteachers.org/k12standards/]CSTA**, and **[https://ai4k12.org/]AI4K12âs** AI standards, which focus on the safe and responsible use of AI.",ask_pd:"Ask about AI PD",testimonials_1_quote:"The energy and excitement... in experimenting with different models and brainstorming and pitching their first Al programs were truly uplifting! I can't wait to check out these programs. Here's to making Al accessible to everyone!",testimonials_1_name:"Vivienne Byrd",testimonials_1_title:"STEAM Librarian & Program Lead of Citizen Science Initiative, Los Angeles Public Library",try_it_free:"Try It Free",faq_1_question:"How old should my students be to use AI HackStack?",faq_1_answer:'AI HackStack is great for middle school and high school-aged students. Our safety and privacy practices allow us to help younger users, like your students, interface safely with AI. Do you teach elementary-aged students? If so, **[mailto:[email protected]]connect with our team** to learn more about CodeCombat AI Junior, which introduces multimodal generative AI in a simple and intuitive platform designed specifically for K-5 students."',faq_2_question:"How we integrate AI safely and responsibly?",faq_2_answer:"Our AI technology adheres to safety-first principles, providing confidence to both students and educators. We do not allow our backend LLM providers to train your chats and have established protective measures against inappropriate content. These measures include filtering harmful language, maintaining focus on relevant subjects, safeguarding personal information, and educating students about potential AI pitfalls. Moreover, we log AI chat activity for teacher monitoring and uphold stringent data privacy and security protocols.",faq_3_question:"What LLMs is AI HackStack using?",faq_3_answer_1:"ChatGPT-4: A model designed for natural language understanding and generation tasks.",faq_3_answer_2:"Claude: A language model that focuses on performance and safety in AI interactions.",faq_3_answer_3:"Stable Diffusion: A model that generates images from text descriptions.",faq_3_answer_4:"DALL-E: An image generation model that creates visuals based on text prompts.",faq_3_answer_5:"We continuously evaluate these models for performance and safety, ensuring we update to the latest versions available.",faq_4_question:"How to find alternative funding sources?",faq_4_answer:"Computer science education has become a vital component of a student's academic journey, however, many schools face challenges in securing the necessary resources to provide their students with comprehensive computer science programs. At CodeCombat, we understand the funding hurdles that schools encounter and are passionate about helping them overcome these obstacles. Grants can be a valuable resource but difficult to discover and apply for. Check out our comprehensive **[https://codecombat.com/grants]guide to grant funding** or **[mailto:[email protected]]speak with our team** to learn more.",faq_5_question:"How to get started",faq_5_answer_1:"Create your Teacher or Admin Account",faq_5_answer_2:"Create a class",faq_5_answer_3:"Add students",faq_5_answer_4:"Unlock AI HackStack for your class",faq_5_answer_5:"Sit back and watch your students have fun learning about AI",faq_6_question:"Support for Clever and Google login",faq_6_answer:"We offer both Clever and Google Classroom integration. Check out our **[https://codecombat.com/teachers/resources/clever-faq]Clever Integration FAQ** for more details on how to get started. If you are using Google Classroom be sure to use the Google Single Sign-On (SSO) Modal to sign up for your teacher account. If you already have an account using your Google email, use the Google SSO modal to log in next time. In the Create Class modal, you will see an option to Link Google Classroom. We only support rostering via Google Classroom at this time. Note: you must use Google SSO to sign up or log in at least once in order to see the Google Classroom integration option.",faq_7_question:"Recommended browser and operating system",faq_7_answer:"TBA",faq_8_question:"How many prompts do I get?",faq_8_answer:"With a license, you get 100 monthly prompts for teacher and 30 weekly for students. Individual premium users get 50 prompts per month.",learn_more:"Learn More",promo_modal_title:"Explore AI HackStack",promo_modal_subtitle:"Unlock the Full Potential of Generative AI",promo_modal_text:"**New to AI? Explore CodeCombat AI HackStack** â the easiest way to dive into AI literacy. Unlock the power of top models like **ChatGPT-4**, **Claude**, **Stable Diffusion**, and **DALL-E**. With hands-on tools, creating games, art, websites, code, and more has never been simpler. Itâs the perfect companion for any creative project, no experience required!",explore_hackstack:"Explore Hackstack",learn_1_text:"Play in a safe[NEWLINE]AI sandbox",learn_2_text:"Cross-[NEWLINE]Curricular[NEWLINE]Lessons",learn_3_text:"Prompt[NEWLINE]Engineering",learn_4_text:"Remix AI[NEWLINE]Project",learn_5_text:"Ethics-Centered[NEWLINE]Reflection",learn_6_text:"Actionable[NEWLINE]Data",learn_7_text:"Professional[NEWLINE]Development[NEWLINE]for AI"},hackstack_algebra_page:{header:"Algebra + AI Curriculum",header_powered_by:"Powered By",header_details:"A classroom-ready Algebra + AI curriculum focused on deep reasoning and hands-on exploration before introducing AI. Students compare methods, verify AI outputs, and solve larger problems, with teachers guiding the instruction.",header_details_teacher:"With a license, your students get a classroom-ready Algebra + AI curriculum focused on deep reasoning and hands-on exploration.",cta_get_solution:"Get My Solution",cta_explore:"Explore AI Algebra",features_title:"A Core Algebra Curriculum Enhanced With AI",feature_1_title:"Foundations First\nAI Second",feature_2_title:"Teaches to Critically\nEvaluate AI",feature_3_title:"Teacher-Guided\nReal-World Modeling",lesson_flow_title:"Inside a Module: Lesson Flow in Action",step:"Step",step_1_title:"Mathematical Reasoning Without AI",step_1_desc:"Students first solve problems with pen, paper or a calculator to build a strong foundation in algebra and learn to reason through equations independently before introducing AI.",step_1_tag:"Traditional",step_2_title:"Mathematical Reasoning With AI",step_2_desc:"Students then use an AI tool to solve the same problems and compare its process and results to their own, helping them see how AI approaches problem solving and where it differs.",step_2_tag:"AI + Traditional",step_3_title:"Practice",step_3_desc:"By working through more problems with both traditional and AI methods, students learn to verify AI outputs, identify errors or misinterpretations and refine prompts to improve accuracy.",step_3_tag:"AI + Traditional",step_4_title:"AI Modeling",step_4_desc:"Students move beyond simple calculations by using AI to model equations across larger or more complex datasets, showing how AI can scale problem solving in ways not possible by hand.",step_4_tag:"AI Enabled",step_5_title:"Checking AI Modeling",step_5_desc:"Finally, students use alternative AI tools or verification methods to cross-check their models for accuracy, reinfor
2cing the importance of validation and accountability when working with AI.",step_5_tag:"AI Enabled",module_structure_title:"Algebra + AI Module Structure",module_1_title:"Mathematical Reasoning Without AI",module_1_desc:"Students first solve problems with pen, paper or a calculator to build a strong foundation in algebra and learn to reason through equations independently before introducing AI.",module_1_tag:"Traditional",module_2_title:"Mathematical Reasoning With AI",module_2_desc:"Students then use an AI tool to solve the same problems and compare its process and results to their own, helping them see how AI approaches problem solving and where it differs.",module_2_tag:"AI + Traditional",module_3_title:"Practice",module_3_desc:"By working through more problems with both traditional and AI methods, students learn to verify AI outputs, identify errors or misinterpretations and refine prompts to improve accuracy.",module_3_tag:"AI + Traditional",module_4_title:"AI Modeling",module_4_desc:"Students move beyond simple calculations by using AI to model equations across larger or more complex datasets, showing how AI can scale problem solving in ways not possible by hand.",module_4_tag:"AI Enabled",module_5_title:"Checking AI Modeling",module_5_desc:"Finally, students use alternative AI tools or verification methods to cross-check their models for accuracy, reinforcing the importance of validation and accountability when working with AI.",module_5_tag:"AI Enabled",trusted_standards_title:"Built on Trusted Standards",trusted_standards_text:"Our curriculum aligns with Common Core Math standards and practices, strengthening students' skills in algebra, functions, modeling, and statistics. Additionally they'll develop AI literacy skills, such as prompt engineering, evaluating accuracy, using appropriate LLMs, understanding data, and considering human impact and design, all within teacher-guided instruction.",trusted_standards_link:"Learn More",curriculum_path_title:"A Structured Path from Algebra Foundations to AI Application",curriculum_path_cta:"Free Teacher Account",curriculum_path_subtitle:"Trial the curriculum with your students today!",testimonial_1_quote:"It shifted learning from just finding the final answer to understanding the step-by-step logic behind each problem.",testimonial_1_name:"Montebello High School Student"},hackstack_cyber_page:{header:"Cybersecurity Curriculum",header_details:"Explore real-world security concepts through digital simulations, te
2chnical writing, and classroom-ready lessons designed for flexible implementation.",header_aligned:"CompTIA Security+\nand AP Cybersecurity Aligned",cta_explore:"Explore Cybersecurity",features_title:"Designed for Real-World Cybersecurity Skills",feature_1_title:"Certification Pathways",feature_1_desc:"Builds skills students can carry into future coursework, certification, and careers",feature_2_title:"Technical Writing",feature_2_desc:"Real cybersecurity reports, memos, and assessments",feature_3_title:"Flexible Digital Delivery",feature_3_desc:"Digital simulations, no specialized hardware required",pathways_title:"Pathways at a Glance",module:"Module",module_1_title:"Intro to Security",module_1_tag:"Internal Memos",module_1_desc:"Students learn foundational security concepts and practice communicating risks clearly.",module_2_title:"Securing Spaces",module_2_tag:"Risk Assessments",module_2_desc:"Students evaluate environments, identify vulnerabilities, and recommend safer practices.",module_3_title:"Securing Networks",module_3_tag:"IOC Reports",module_3_desc:"Students investigate indicators of compromise and document evidence from simulated scenarios.",module_4_title:"Securing Devices",module_4_tag:"Remediation Reports",module_4_desc:"Students propose fixes, explain tradeoffs, and connect technical decisions to real-world outcomes.",module_5_title:"Securing Apps & Data",module_5_tag:"Incident Reports",module_5_desc:"Students apply what they've learned to analyze incidents and communicate next steps.",standards_cta:"See Standards Alignment",safety_title:"Built with Student Safety in Mind",safety_text:"AI HackStack supports safe, school-ready AI exploration with vetted tools, privacy filters, and educator controls. CodeCombat is built with student safety, cybersecurity, and data privacy in mind, following school-grade privacy requirements including COPPA, FERPA, SOPIPA, California AB 1584, CalOPPA, CAN-SPAM, and GDPR."},standards_page:{standards_aligned_curriculum:"**Standards Aligned Curriculum**",curriculum_description:"CodeCombat offers robust course pathways aligned with several national and state standard frameworks across grades K-12 including AP level programming courses in many languages. Our curriculum engages students to explore and learn computer science through standards-aligned lessons.",most_effective_computer_science_solution:"The most effective computer science solution for **[https://codecombat.com/schools]schools**",comprehensive_implementation:"Our comprehensive implementation empowers teachers, engages students and delivers successful outcomes.",carousel_1_title:"Computer Science Teachers Association (CSTA)",carousel_1_text:"The **[https://csteachers.org/k12standards/]Computer Science Teachers Association K-12 Computer Science Standards** outline a core set of learning objectives that are designed to provide the foundation for a complete computer science curriculum and its implementation in K-12.[NEWLINE]CodeCombat is recognized by CSTA as an endorsed provider of curriculum and professional development. Learn the skills to effectively teach computer science with our self-directed, CSTA-accredited **[https://www.ozaria.com/professional-development]Professional Development** course. Earn up to 40 credit hours any time, from any device.[NEWLINE]Learn about the detailed CSTA Standards Alignment below:",carousel_1_button_1_text:"CSTA Alignment",carousel_1_button_2_text:"CodeCombat",carousel_2_title:"AP Computer Science Principles (AP CSP)",carousel_2_text:"CodeCombat is recognized by College Board as an endorsed provider of curriculum and professional development for AP® Computer Science Principles (AP CSP). This endorsement affirms that CodeCombatâs curriculum is aligned to all of the AP Curriculum Framework standards and the AP CSP assessment. This affords schools access to resources including an AP CSP syllabus pre-approved by the College Boardâs Course Audit, and officially recognized professional development that prepares teachers to teach this curriculum.[NEWLINE]Learn more about our CodeCombat AP CSP curriculum below:",carousel_2_button_1_text:"CodeCombat AP CSP",carousel_3_title:"International Society for Technology in Education (ISTE)",carousel_3_text:"Focused on pedagogy, not tools, the **[https://iste.org/standards]ISTE Standards** are a framework that guides educators in using technology to create high-impact, sustainable, and scalable learning experiences for all students.[NEWLINE]CodeCombatâs curriculum is designed to meet the needs of all ISTE standards, for both students and teachers.[NEWLINE]Learn about the detailed ISTE Standards Alignment below:",carousel_3_button_1_text:"Ozaria",carousel_3_button_2_text:"CodeCombat",carousel_4_title:"Common Core State Standards",carousel_4_text:"The **[https://corestandards.org/]Common Core State Standards** are a set of uniform academic standards for Kâ12 Mathematics and English L
2anguage Arts.[NEWLINE]CodeCombat integrates a variety of cross-curricular connections to core subject areas throughout our curriculum. [NEWLINE]Learn about the detailed Common Core Standards Alignment below:",carousel_4_button_1_text:"Ozaria",carousel_4_button_2_text:"CodeCombat",carousel_5_title:"Next Generation Science Standards (NGSS)",carousel_5_text:"The **[https://www.nextgenscience.org/]Next Generation Science Standards (NGSS)** are Kâ12 science content standards, setting expectations for what students should know and be able to do. These standards were developed by states to improve science education for all students.[NEWLINE]CodeCombat is a perfect curriculum partner for introducing key science and engineering concepts from NGSS.[NEWLINE]Learn about the detailed NGSS Standards Alignment below:",carousel_5_button_1_text:"NGSS Alignment",carousel_5_button_2_text:"CodeCombat"},codequest_page:{join_us:"Join Us",start_application:"Start Application",codequest:"CodeQuest",date:"Date",date_time:"July 22 - July 27, 2024",supporting_text:"Join us for an immersive educational experience like no other, designed to inspire and empower the next generation of computer science innovators through coding and AI. Students aged 13-17 are welcome.",apply_now:"Apply Now",insight:"An insightful real-world learning experience!",testimonials_heading:"This rare opportunity brings together students from around the globe. Hereâs the student experience at a glance.",engaging_hackathongs:"Engaging Hackathons",insightful_speakers:"Insightful Speakers",university_visits:"University Campus Visits",silicon_valley_experience:"Silicon Valley Experience",content_title:"The Student Experience",core_curriculum_heading_1:"Multiple ",core_curriculum_heading_2:"hackathon competitions",core_curriculum_heading_3:" designed to ",core_curriculum_heading_4:"inspire creativity",core_curriculum_heading_5:" in coding and ",core_curriculum_heading_6:"teach real world applications of AI",core_curriculum_title_1:"AI HackStack Project Challenge",core_curriculum_text_1:"The first generative AI companion tool specifically crafted for those new to AI, enables students to go from text-to-code-to-output instantaneously. <br /><br /> Competitors will be partnered with other students to develop a project using AI prompting and present for judging.",core_curriculum_title_2:"AI League CodeQuest Global Final",core_curriculum_text_2:"An epic competitive coding esports platform that encourages creative programming in a game-based environment. <br /><br /> Competitors will be partnered with other students to develop the optimal code to outwit the other teams, collect head-to-head wins and finish atop the leaderboard.",core_curriculum_heading_11:"Hackathons will be held at ",core_curriculum_heading_12:"renowned universities",core_curriculum_heading_13:"offering a unique experience for students to",core_curriculum_heading_14:"immerse",core_curriculum_heading_15:" themselves in the ",core_curriculum_heading_16:"collegiate setting",core_curriculum_text_11:"Globally acclaimed for its cutting-edge research and innovation, UC Berkeley provides comprehensive and rigorous computer science programs. These programs enhance creative problem-solving skills and encourage a deeper understanding of computational theory, equipping individuals to be transformative leaders in the rapidly evolving tech industry.",core_curriculum_text_12:"Recognized worldwide as a leader in technology and innovation, Stanford offers robust programs in computer science, fostering creative thinking and a deep understanding of theoretical foundation, preparing individuals to become pioneering leaders in computer science and technology.",core_curriculum_heading_21:"Our roster of speakers offer ",core_curriculum_heading_22:"unparalleled insight",core_curriculum_heading_23:"into what it takes to pursue success in computer science and will help judge the competitions.",core_curriculum_title_21:"UC Berkeley Featured Speaker",core_curriculum_text_21:"While immersed in the collegiate setting of this storied university, students will be welcomed by representatives from the Department of Electrical Engineering and Computer Sciences at UC Berkeley, who will provide a glimpse into the extensive research and cutting edge developments in computer science happening right here on campus. Students will gain insight into what it is like to be a part of these research programs and what career pathways can be realized.",core_curriculum_title_22:"Google X - The Moonshot Factory Featured Speaker",core_curriculum_text_22:"In 2010, Google founders L
2arry Page and Sergey Brin decided to form a new division of the company to work on moonshots: far-out, sci-fi sounding technologies that could one day make the world a radically better place. 10 years in, X has incubated hundreds of different moonshot projects, many of which have gone on to become independent businesses. Hear how this diverse group of inventors and entrepreneurs build and launch technologies that aim to improve the lives of millions, even billions, of people.",core_curriculum_title_23:"Nick Winter, CEO, CodeCombat",core_curriculum_text_23:"Nick is the founder and CEO of CodeCombat. A proven leader in the edtech industry, Nick blends his passion for education with his technological expertise to make learning programming more accessible and engaging for students across the globe. Prior to CodeCombat, he co-founded Skritter, a platform for learning Chinese and Japanese characters. With a strong commitment to revolutionize the education sector, Nick actively contributes to making coding a fundamental skill for the future generation. His dedication and vision continue to inspire and impact the realm of edtech.",core_curriculum_title_24:"Apple Tech Development Workshop",core_curriculum_text_24:"Hear first hand from a panel of venture capitalists and tech leaders as they detail the process for building a global tech platform and creating a successful business plan. This interactive presentation will pull back the curtain on what it's like to build the next great piece of tech and how to launch it.",core_curriculum_heading_31:"San Francisco and Silicon Valley offer students the unique opportunity to ",core_curriculum_heading_32:"experience life at a tech giant",core_curriculum_heading_33:" and ",core_curriculum_heading_34:"explore the sights of the city",core_curriculum_title_31:"Visit Google HQ & X- The Moonshot Factory",core_curriculum_text_31:"Located in Mountain Vie
2w California, the Google campus offers a unique glimpse into the heart of Silicon Valley innovation. Students will encounter whimsical architecture, a multitude of collaborative workspaces, and tech-driven art installations that inspire creativity and provide a peek at what working in tech could be like. This exclusive tour will visit X - The Moonshot Factory to see how this innovative team inside of Google is creating radical new technologies to solve some of the world's hardest problems.",core_curriculum_title_32:"Apple Park HQ Visit & Workshop",core_curriculum_text_32:"Apple Park is the global headquarters for the innovative tech giant and a must visit attraction when in San Fransisco. Students will experience Steve Jobsâ âGarage Cultureâ that inspired Apple to become the largest company in the world, and join a workshop with venture capitalists and tech leaders, to hear first hand what it takes to build a global tech platform and create your own business plan.",core_curriculum_title_33:"San Francisco Tour",core_curriculum_text_33:"Students have the opportunity to immerse themselves in the diverse and dynamic charm of San Francisco. From the iconic Golden Gate Bridge and historic Alcatraz Island to the bustling piers and serene parks, there's adventure at every turn. A visit to San Francisco is a fascinating blend of natural beauty, urban sophistication, and rich cultural heritage, promising an unforgettable experience.",cta_supporting:"The specifics regarding the planned series of activities are subject to changes due. We commit to keeping you informed of such changes as much as possible, although they may occur without advance notice.",contact:"Contact Our Team",if_question:"If you have any questions",how_it_works:"How it Works",apply:"Apply",apply_time:"January-February",apply_steps_1:"Students interested in participating will fill out an application.",apply_steps_2:"A skills assessment or evaluation may be needed to confirm your ability to participate.",confirm:"Confirm",confirm_time:"March-April",confirm_steps_1:"If you are accepted, a program advisor will contact you to confirm the additional details.",confirm_steps_2:"An initial deposit will be required to hold your spot in the program.",confirm_steps_3:"Your travel will be coordinated and booked.",confirm_steps_4:"A liability waiver will be required for all participants.",travel:"Travel",travel_time:"July",travel_steps_1:"Prior to departure you will receive a comprehensive travel packet with all the information you will need to know.",travel_steps_2:"Preparations have been made to shuttle participants from the airport to the hotel and to and from the activities throughout the week. Transportation back to the airport for departure will also be arranged.",travel_steps_3:"The full package fee will be due prior to travel, minus the initial deposit fee.",frame_heading_1:"The paced schedule will fill the days with a mixture of ",frame_heading_2:"learning",frame_heading_3:" and ",frame_heading_4:"fun",all_participants:"All Participants",international_participants:"International Participants",schedule_day_title_1:"Monday",schedule_day_title_2:"Tuesday",schedule_day_title_3:"Wednesday",schedule_day_title_4:"Thursday",schedule_day_title_5:"Friday",schedule_day_title_6:"Saturday",schedule_event_title_1:"Travel Day",schedule_event_title_2:"San Francisco",schedule_event_title_3:"UC Berkeley",schedule_event_title_4:"Silicon Valley",schedule_event_title_5:"Stanford",schedule_event_sub_title_1:"Arrival",schedule_event_sub_title_2:"Tour",schedule_event_sub_title_3:"Hackathon",schedule_event_sub_title_4:"Tours & Speakers",schedule_event_sub_title_6:"Departure",frame_content_heading:"Included in most package options",frame_content_flight_title:"Airfare & Local Transportation",frame_content_flight_text:"Round-trip flights on major carriers and transportation to and from airport, hotel and event locations.",frame_content_hotel_title:"Hotel Accommodations",frame_content_hotel_text:"All hotels must meet our high standards for quality, safety, and cleanliness.",frame_content_meal_title:"Meals",frame_content_meal_text:"Minimum three meals per day, as well as snacks and water available throughout each activity filled day.",frame_cta_text:"Download Schedule",frame_cta_supporting:"All experience details are subject to change.",frame_core_heading_1:"This Opportunity is Open to ",frame_core_heading_2:"International",frame_core_heading_3:" and ",frame_core_heading_4:"Domestic",frame_core_heading_5:" Participants",frame_core_international_title_text:"International: ",frame_core_international_title_span:"FULL WEEK",frame_core_international_text:"The complete experience including all three hackathon days, multiple university campus experiences and two days of San Francisco and Silicon Valley immersion.",frame_core_international_price:"Pricing: $ 10,000",frame_core_international_price_text_1:"For our ",frame_core_international_price_text_2:"international participants",frame_core_international_price_text_3:"coming from outside the US",frame_core_international_price_text_4:"Includes air-travel and accommodations",frame_core_domestic_title_text:"Domestic (US): ",frame_core_domestic_title_span:"3 DAYS",frame_core_domestic_text:"Includes participation in all three hackathon days and features multiple university campus experiences.",frame_core_domestic_price:"Pricing: $3,750 (Early bird price: $2,950 if you book before 3/31)",frame_core_domestic_price_text_1:"For ",frame_core_domestic_price_text_2:"US-based participants",frame_core_domestic_price_text_3:"Includes air-travel and accommodations",frame_core_domestic_price_2:"Pricing: $2,175 (Early bird price: $1,675 if you book before 3/31)",frame_core_domestic_price_text_4:"local participants",frame_core_domestic_price_text_5:"Does not include travel or accommodations. Students will need to meet at each event site to participate",accessibility_title:"Health and Safety Precautions",accessibility_text_1:"Students will remain in secure facilities guided by our team of education advisors.",accessibility_text_2:"All chaperones and education advisors have completed background checks.",accessibility_text_3:"All facilities will be approved for safety, on-site quality control, and cleanliness.",accessibility_text_4:"At this time there are no travel restrictions due to Covid or another illness. If a travel restriction is reinstated or if our team deems there to be a concern for the health of the participants, the experience may be changed or cancelled.",faq:"Frequently Asked Questions",faq_q_1:"Is there an age requirement?",faq_a_1:"Participants must be aged 13-17 and be able to provide legal documentation to travel.",faq_q_2:"Can I travel with my child?",faq_a_2:"Some parents do choose to travel, however the activities, events, travel and accommodations are only provided for students.",faq_q_3:"How much experience do you need to participate?",faq_a_3:"A basic understanding of programming in any language is all that a student must know. Since we are grouping them into teams of varying experience levels we expect those with more experience to supp
2ort those with less.",faq_q_4:"Should I bring my laptop?",faq_a_4:"We will supply all the hardware and software needed to participate in the hackathons. While we will allow participants to use their personal computers, our team may not be able to fully support or troubleshoot all issues, so we recommend using the equipment provided.",faq_q_5:"Do I need bring any identification supporting materials?",faq_a_5_1:"Domestic - if the participant is traveling alone, we ask their parent or legal guardian to complete an emergency contact form that includes identification information about their child.",faq_a_5_2:"Global - global students need to bring their passports (with VISA) with them.",faq_q_6:"What accommodations can my child expect?",faq_a_6:"All participants and chaperones will be staying at the same hotel, with separate accommodations for participants and chaperones. Participants will share a room with a fellow participant. Staff members are never allowed to be alone with participants. Parents who wish to accompany their child will share a room together.",faq_q_7:"What if my child is allergic to certain foods or has medical needs?",faq_a_7:"Any health concerns pertaining to your child should be identified in the emergency contact form.",faq_q_8:"Who will be chaperoning my child?",faq_a_8_1:"Our pledge is to put your children in the company of the most trustworthy and capable individuals we can hireâcertified instructors and counselors who are well suited to the task of caring for participants. Each staff member undergoes an intense background and reference check; the effort we put into screening and selecting our staff is part of that pledge.",faq_a_8_2:"Our staff work with your children in the context of a visible, well scrutinized environment that has many built-in checks and balances. Instructors and counselors are guided by clear, firm policies regarding behavior. Their actions are visible to co-workers and participants.",faq_q_9:"What general safety measures do you have in place?",faq_a_9:"All staff go through emergency and crisis management training.",faq_q_10:"What is your refund policy?",faq_a_10:"Deposits to hold your space are refundable up until travel is booked for the participant. Once travel is booked we will not be able to provide a refund.",more_faq:"See more frequently asked questions in our ",help_center:"help center"},hackstack:{"Action_missing-renderer-for-action-type-actiont":'Missing renderer for action type "__actionType__"',ActionButton_create:"Create",ActionButton_learn:"Learn","AddEndOfLessonMsgButton_end-lesson":"End Lesson","AddTeacherMsgButton_add-teacher-message":"Add Teacher Message","AlternatePromptChoicesForm_save-choices":"Save Choices",App_alt:"",App_loading:"Loading...","ChatInputForm_enter-your-prompt-here":"Tell HackStack what to doâ¦","ChatLayout_tw-fixed-tw-inset-0-tw-z-30-tw-bg-black5":"tw-fixed tw-inset-0 tw-z-30 tw-bg-black/50 tw-transition-opacity tw-duration-300 tw-ease-in-out md:tw-hidden","ChatMessage_are-you-sure-you-want-to-delete-this-mes":"Are you sure you want to Delete this Message?",ChatMessage_delete:"Delete",ChatMessage_edit:"Edit","ChatMessage_update-a-messageactorteacherteacherendof":"Update a __messageActorTeacherTeacherEndOfLesson__ Lesson",CodeThumbnail_copy:"Copy","CodeThumbnail_open-in-editor":"Open in editor","CodeThumbnail_run-code":"Run Code","CodeThumbnail_edit-code":"Edit Code","ConfirmDeleteChatMessageButton_confirm-delete":"Confirm Delete",ContinueRenderer_continue:"Continue â",EditAlternatePromptChoicesPage_cancel:"Cancel","EditAlternatePromptChoicesPage_save-choices":"Save Choices","EditChatMessagePage_chat-message-settings":"Chat Message Settings","Empty_select-or-create-a-project-to-get-starte":"Select or create a project to get started!",EndOfLessonRenderer_feedback:"Feedback","EndOfLessonRenderer_start-a-new-project":"Start a New Project â",FullscreenModal_close:"Close","GenericError_something-went-wrong":"Something went wrong","HowItWorksPage_ah-now-thats-a-question-i-cant-answer-ju":"Ah, now that's a question I can't answer just yet. But if you want to have a say in it, you've got to experience what's possible, so... let's start creating. Are you ready?","HowItWorksPage_ah-thats-the-best-part
2-you-dont-have-to-":"Ah! That's the best part. You don't have to. I take care of it all. Just chat with me, and I'll do the rest.","HowItWorksPage_bet-so-what-if-i-wanna-create-a-sock-mat":"bet - so what if i wanna create a sock matching sim game","HowItWorksPage_but-i-dont-even-know-how-to-use-them-all":"but i don't even know how to use them all","HowItWorksPage_but-i-dont-have-accounts-for-those-and-i":"but i don't have accounts for those and I think chatgpt is blocked here","HowItWorksPage_but-who-made-you":"but who made you?","HowItWorksPage_codecombat-ai-hackstack-is-an-all-in-one":"CodeCombat AI HackStack is an all-in-one AI tool for creating games, art, songs, apps, and more by just chatting. It runs everything for you, hosts your projects, and helps with coding. CORE mode is free and teaches you through multiple-choice prompts. PRO+ mode is $9.99/mo for free-form prompts. Projects are secure and don't feed big tech data. It's made by the CodeCombat team to make AI accessible to everyone. Now, let's start creating.","HowItWorksPage_core-mode-is-free-and-you-dont-even-need":"CORE mode is free and you don't even need an account to TRY IT! If you want to go wild with free-form prompts in PRO+ mode, it's $9.99/mo, but you can try a few of these for free every day.","HowItWorksPage_did-they-use-ai-to-create-you":"did they use ai to create you?","HowItWorksPage_hey-ai-so-how-do-i-use-this-thingy":"hey ai - so how do I use this thingy?","HowItWorksPage_how-do-i-start":"how do i start?","HowItWorksPage_i-dont-know-how-to-code-tho":"i don't know how to code tho","HowItWorksPage_i-got-you-we-can-build-that-and-more":"I got you! We can build that and more.","HowItWorksPage_i-used-ai":"I used AI.","HowItWorksPage_is-it-free":"is it free??","HowItWorksPage_just-chat":"just chat?","HowItWorksPage_just-chat-and-lets-see-what-we-can-creat":"Just chat and let's see what we can create together.","HowItWorksPage_just-chat-with-me-ill-show-you":"Just chat with me, I'll show you.","HowItWorksPage_learn-anything-create-something-do-every":"Learn ANYTHING, create SOMETHING, do EVERYTHING with CodeCombat AI HackStack. AI empowerment for all
2!","HowItWorksPage_lets-go":"LET'S GO!!!",HowItWorksPage_marketing:"Marketing","HowItWorksPage_maybe-i-should-just-stick-to-directly-us":"maybe i should just stick to directly using chatgpt or use bing or bard",HowItWorksPage_more:"more?","HowItWorksPage_most-things-if-the-ai-isnt-smart-enough-":"Most things. If the AI isn't smart enough for something yet, it will be soon! You'll be able to access all sorts of creative projects in our gallery. Here are a few I'm working on with other users now: - A choose your own adventure story generator that can mail you a physical book - An ecommerce store for custom Roblox clothing and accessories - A virtual pimple popper extreme game Yes some creators are taking the âinfinite creativityâ thing literally!","HowItWorksPage_no-coding-experience-no-problem-just-tel":"No coding experience, no problem. Just tell me what you want and I will generate the code for you. Many projects don't even need code, but if you know even just a little, I can amplify your abilities to create something spectacular.","HowItWorksPage_no-worries-my-friend-i-have-the-keys-to-":"No worries, my friend! I have the keys to the creative kingdom. You can access all the best AI tools with a single AI HackStack account.","HowItWorksPage_not-with-ai-hackstack-i-access-all-the-l":"Not with AI HackStack. I access all the latest models, from GPT-4 to Stable Diffusion and everything in between.","HowItWorksPage_of-course":"Of course.","HowItWorksPage_oh-im-an-incredible-host-every-project-h":"Oh, I'm an incredible host! Every project has a URL you can share with the world. Build a website and start a business all with chat. Or download your project, sync to GitHub, or grab your code and venture offthe choice is yours.","HowItWorksPage_ok-so-where-does-my-project-live":"ok -so where does my project live?","HowItWorksPage_ok-well-can-i-really-make-anything":"ok well can i really make anything?","HowItWorksPage_so-how-are-you-making-all-this":"so - how are you making all this?","HowItWorksPage_so-if-ai-can-create-ai-what-happens-next":"so if ai can create ai what happens next?","HowItWorksPage_the-codecombat-team-they-got-really-good":"The CodeCombat team. They got really good at making it easy to learn hard stuff by teaching 20 million beginners how to code with game-based learning, so when the tech got good enough, they wanted to do the same thing for AI. If AI is the future of creation, then we need to make it easy for anyone to use!","HowItWorksPage_tldr-summarize-this-chat":"tl;dr. summarize this chat","HowItWorksPage_well-start-you-off-easy-in-core-mode-wit":"We'll start you off easy in CORE mode with some super simple Q&A to prep you on how to make the best prompts. Then we string those prompts together to create your first project. Within a few minutes, you're ready for PRO+ mode, where the guardrails come off and anything is possible.","HowItWorksPage_what-they-send-it-but-i-put-like-private":"what?!!! they send it⦠-but i put, like, private stuff in there! like that love-you-more rap battle for alex!","HowItWorksPage_wow-dont-you-need-like-a-100-different-a":"WOW!!! - don't you need like a 100 different ai tools for that","HowItWorksPage_yeah-thats-why-those-are-free-they-feed-":"Yeah, that's why those are free. They feed your data into their next AI so it can learn to make better love rap battles. But when you use me, they don't store it or train on it. So if you're in a school or you're under 18 with parental consent or under 13 in general, you technically can't use ChatGPT directly. With AI HackStack you're safe, secure, and good to go.","HowItWorksPage_yep-im-here-to-accelerate-your-creative-":"Yep! I'm here to accelerate your creative potential, supercharge your dreams, provide rocket fuel for your imagination! Games, music, movies, apps, art, websites, code and anything else rattling around in that amazing head of yours are all possible right here.","HowItWorksPage_you-could-but-i-answer-faster-dont-rate-":"You could BUT I⦠- answer faster - don't rate -limit you - give you more AI models - teach you how to use AI - automatically build and host projects for you - have a simpler yet more powerful UI - give built -in ethics guidance so you don't inadvertently rip off artists - let you view the source code and remix anyone's projects Oh, and I don't⦠SEND ALL YOUR CHATS TO OPENAI/MICROSOFT/GOOGLE TO TRAIN ON!!!!!",LeftSidebar_new:"+ New ",LeftSidebar_projects:"Projects",LeftSidebar_scenarios:"Scenarios","LeftSidebarItem_untitled-isprojectprojectscenario":"Untitled __isProjectProjectScenario__",MessageBubble_ai:"AI","MessageBubble_ais-response-was-cut-off-because-it-reac":"AI's response was cut off because it reached its length limit. Try asking a more specific question, or break it into smaller parts.",MessageBubble_teacher:"Teacher",MessageBubble_you:"You",NewProjectPage_:"â²","NewProjectPage_codecombat-ai":"CodeCombat AI",NewProjectPage_filters:"Filters â¼","NewProjectPage_learn-more":"Learn more","NewProjectPage_new-ai-project":"New AI Project","NewProjectPage_prompt-the-ai-to-create-websites-games-w":"Prompt the AI to create websites, games, web apps, stories, art, and more with the CodeCombat AI HackStack.","NewScenarioPage_a-webpage":"a webpage","NewScenarioPage_codecombat-ai":"CodeCombat AI","NewScenarioPage_create-new-scenario":"Create new Scenario",NewScenarioPage_document:"Document","NewScenarioPage_lets-go":"Let's Go!",NewScenarioPage_make:"make",NewScenarioPage_mode:"Mode",NewScenarioPage_task:"Task",NewScenarioPage_tool:"Tool","NewScenarioPage_whats-this":"What's this?","NotFound_not-found":"Not Found",ProjectTile_with:"with","PromptQuizRen
2derer_choose-the-best-prompt":"Choose the best prompt:",PromptQuizRenderer_continue:"Continue â","RenderedMessage_unknown-action-type-msgactiondatatype":"Unknown action type: __msgActionDataType__",ScenarioDetailsPanel_beta:"Beta",ScenarioDetailsPanel_draft:"Draft",ScenarioDetailsPanel_name:"Name","ScenarioDetailsPanel_release-phase":"Release phase",ScenarioDetailsPanel_released:"Released","ScenarioDetailsPanel_save-scenario":"Save Scenario","ScenarioDetailsPanel_scenario-settings":"Scenario settings","ScenarioDetailsPanel_allow-user-upload-file":"Allow user to upload file","ScenarioPage_youre-in-scenario-creation-mode-go-ahead":'You\'re in scenario creation mode! Go ahead, mess around and try to build a cool scenario, then click "beta" or "released" to share it with the world! If you ever don\'t like a prompt, just go back and edit it.',"ScenarioPage_youre-in-scenario-creation-mode-non-admin":"Here's a free-form way to prompt an AI Model","ScenarioPromptMessage_alternate-choices":"Alternate Choices",ScenarioPromptMessage_edit:"Edit","ScenarioPromptMessage_prompt-choices":"Prompt Choices",TeacherMessageForm_create:"Create","Topbar_back-to-chat":"â Back to Chat",UpdateChatMessageForm_update:"Update","creditMessage_creditcreditsleft-creditinitialcredits-c":"__creditCreditsLeft__ / __creditInitialCredits__ credits left for __durAmount__ __creditDurationKey__",creditMessage_the:"the","onDelete_are-you-sure-you-want-to-delete-this-isp":"Are you sure you want to delete this __isProjectProjectScenario__?",renderFilterCheckboxes_clear:"Clear","renderFilterCheckboxes_create-your-own-project":"Create your own project","renderFilterCheckboxes_creates-photorealistic-images-from-text":"Creates photorealistic images from text.","renderFilterCheckboxes_learn-how-to-use-a-model":"Learn how to use a model","renderFilterCheckboxes_learn-what-you-can-create-with-ai":"Learn what you can create with AI.","renderFilterCheckboxes_quickly-and-easily-creates-images-from-t":"Quickly and easily creates images from text.","renderFilterCheckboxes_use-models-to-create-your-own-ai-project":"Use models to create your own AI projects.","renderFilterCheckboxes_writes-code-for-web-games-and-apps":"Writes code for web games and apps.","renderFilterCheckboxes_writes-stories-and-summarizes-documents":"Writes stories and summarizes documents.","renderFilterCheckboxes_key-write":"write","renderFilterCheckboxes_key-code":"code","renderFilterCheckboxes_key-simulate":"simulate","renderFilterCheckboxes_key-study":"study","renderFilterCheckboxes_key-draw":"draw","renderFilterCheckboxes_key-graph":"graph","renderFilterCheckboxes_key-learn":"learn","renderFilterCheckboxes_key-advertise":"advertise","renderFilterCheckboxes_key-model":"model","renderFilterCheckboxes_key-solve":"solve",choices:"Choices","could-not-find-project-with-id-projectid":"Could not find project with id __projectId__",generated:"generated","missing-action-data-for-project-projecti":"Missing action data for project __projectId__","overwriting-existing-dev-command-callbac":"Overwriting existing dev command callback for key: __key__",prompt:"Prompt","teacher-response":"Teacher Response","unhandled-payload-exhaustivecheck":"Unhandled payload: __exhaustiveCheck__",modes:"Modes",tools:"Tools",tasks:"Tasks",documents:"Documents","stable-diffusion-description":"Creates photorealistic images from text.","dall-e-3-description":"Quickly and easily creates images from text.","gpt-4-description":"Writes code for web games and apps.","claude-description":"Writes stories and summarizes documents.",locked:"LOCKED",view:"View",continue:"Continue",no_assigned_projects:"Your teacher has not assigned any AI projects yet.",continue_here:"Continue",start_new:"Start from scratch",choice_prompt_1:"What would you like to do next?",choice_prompt_2:"You can continue with your project or start a new one from scratch!",create_from_scratch:"Create from scratch",complete_to_unlock:"Complete a __model__ learn mode project to unlock",actionbutton_finished:"Learned",my_class:"My Class",my_creations:"My Creations",my_trainings:"My Trainings",my_courses:"My Courses",what_do_you_want_to_do_today:"What do you want to do today?",learn_ai:"Learn AI",create_ai:"Create AI",learn_with_ai:"Learn With AI",create_with_ai:"Create With AI",name_conflict:"Name Conflict, please choose a different name",edit:"Edit",delete:"Delete",duplicate:"Duplicate",use_as_a_template:"Use as a Template",get_inspired:"Get Inspired",remixed_from:"Remixed from",hackstack_credits:"AI HackStack Credits",model:"Model",play_as_a_student:"Play as a Student",student_view:"Student View",tags:"Tags",see_all:"See All",created_by:"created by",remix:"Remix",copy:"copy",copied:"copied!",copied_error:"error copying!",NewScenarioPage_name:"Display Name",learning_modules:"Learning Modules",level_complete:"You did it! Level complete. Continue your AI journey with the next level.",run_code_tour_title:"Ready to see the magic?",run_code_tour_text:"Press âOutputâ and watch your project come to life. No experience required!",hint_course_map_welcome:"Explore courses across the AI Galaxy.",hint_intro_to_ai:"Start with Intro to AI.",hint_click_to_continue:"Click anyw
2here to continue",hint_click_target:"Click the item to continue",hint_tap_to_continue:"Tap anywhere to continue",hint_tap_target:"Tap the item to continue",hint_press_escape:"Press Escape to dismiss.",hint_start_this_level:"Start this level.",hint_latent_space_welcome:"Take a break and try AI-inspired experiments.",hint_level_learn:"Learn how to chat with HackStack.",hint_level_practice:"Use Practice levels to change existing projects.",hint_level_create:"Build projects from scratch with Create levels.",hint_instructor_message:"Your instructor gives guidance.",hint_ai_message:"Here is HackStack's response.",hint_output:"Open Output to see and test results.",hint_choice:"Choose a response to continue.",hint_prompt_input:"Tell HackStack what to do.",hint_prompt_credit:"Each prompt uses 1 credit.\nMake it count.",ready_to_review_helptext:"Mark this when your project is complete. Your teacher will then see it as ready to review on their side.",ready_to_review_confirm_text:"Ready to Submit? Click OK to notify your teacher to review your project.",no_course_instances:"You do not have any course instances. Please contact your teacher to get access to the AI Hackstack.",restart_scenario_confirm:"Your progress will be lost. Are you sure you want to restart?",credit_wall_play_in_latent_space:"Play in Latent Space",credit_wall_zero_play_while_you_wait:"__stem__ â play while you wait",credit_wall_nudge_eyebrow:"Out of credits?",credit_wall_nudge_headline:"Keep learning â by playing.",credit_wall_nudge_headline_premium:"Play while you wait.",credit_wall_nudge_badge_anonymous:"FREE · no account needed",credit_wall_nudge_badge_free:"FREE · no credits needed",credit_wall_nudge_hook_anonymous:"Clean Set: sort the good data and shred the junk before the AI learns nonsense.",credit_wall_nudge_hook_free:"Three mini-games are open in Latent Space â each one shows a piece of how AI works.",credit_wall_nudge_play_clean_set:"Play Clean Set",credit_wall_nudge_open_latent_space:"Open Latent Space",credit_wall_nudge_maybe_later:"Maybe later"},galaxy:{title:"Welcome to HackStack Galaxy",description:"Explore new worlds and use AI to help you in your journey. ",premium_only:"Premium only",not_enrolled:"Not Enrolled",need_sign_up:"Sign up to access",locked_by_teacher:"Locked by teacher"},new_premium:{mastering_code:"Master coding and AI with **premium home access**",unlock_passion:"Unlock unlimited access to hundreds of coding adventures and generative AI projects. Build real skills, tackle engaging challenges, and explore at your own pace from home.",boxes_title:"Premium access to all games & projects, with a single subscription",junior_title:"CodeCombat Junior",junior_text:"Our flagship K-5 curriculum features a progression of learning levels that teach basic coding concepts at a slower pace.",codecombat_worlds_text:"Developed in partnership with Roblox Education, this experience accelerates your coding abilities to create amazing Roblox games and experiences.",junior_text_short:"Our K-5 curriculum teaches coding concepts from icon blocks to text at a slower pace.",codecombat_text_short:"A game-based coding adventure that features web development, game development, and more.",ai_league_text_short:"A competitive coding esports platform that encourages creative programming.",codecombat_worlds_text_short:"Developed with Roblox Education, learn coding and game development on Roblox.",ai_hackstack_text_short:"Learn anything, create something, do everything with the first generative AI tool crafted for those new to AI.",subscription_includes_title:"Your subscription includes",subscription_includes_1:"Access to all learning adventures",subscription_includes_2:"AI project creation credits",subscription_includes_3:"More gems, heroes, and items",subscription_includes_4:"Game, website, and app creation",subscription_includes_5:"Premium support",testimonials_2_name:"Amanda S.",features_1:"Full Access to All[NEWLINE]Learning Adventures",features_2:"Master AI with[NEWLINE]AI HackStack",features_3:"Unlock More Gems,[NEWLINE]Heroes & Items",features_4:"Create Games,[NEWLINE]Websites & Apps",features_5:"Premium Support[NEWLINE]& AI-Powered Help",every_learner_different_learning_style:"**Every learner has a unique pace and passion for technology. Our engaging game-based learning programs provide the perfect environment to explore coding and AI, keeping you motivated and excited to learnâeven as concepts become more advanced**",adapt_interests:"We adapt to your interests",carousel_items_1_title:"Coding[NEWLINE]Fundamentals",carousel_items_1_text:"For learners with little to no coding experience, most sessions will start in CodeCombat Junior to build foun
2dational skills before progressing to CodeCombat for deeper programming knowledge. AI HackStack will accelerate learning and showcase real-world applications of coding and AI. CodeCombat Worlds and AI League provide additional opportunities for practice, creativity, and fun.",carousel_items_2_text:"If you love games and want to create them, our game development-focused curriculum is the perfect fit. You'll start building interactive projects with CodeCombat, then bring your ideas to life in CodeCombat Worlds, where you can design and publish real games on the Roblox platform. AI League offers a competitive edge by deepening your understanding of game dynamics, while AI HackStack helps refine and enhance your creations through iterative development.",carousel_items_3_text:"Web development is constantly evolving, and staying ahead of the curve is essential. In this curriculum, foundational web development activities will be conducted in CodeCombat, while CodeCombat Junior provides an accessible starting point for younger learners. AI HackStack will serve as the primary platform for building and publishing projects, with limited use of CodeCombat Worlds and AI League to reinforce key coding concepts in an engaging way.",carousel_items_4_text:"Esports enthusiasts will love the competitive spirit of this learning experience. Starting with CodeCombat Junior and CodeCombat, learners will build a strong coding foundation before taking on the challenge of our AI League global esports tournaments, where scholarships and prizes are up for grabs year-round. With a focus on creative coding and iteration, theyâll also harness the power of AI HackStack to level up their skills and gain a competitive edge.",carousel_items_5_title:"AI Literacy",carousel_items_5_text:"AI is shaping the future, and those who can harness its power will unlock endless opportunities. This learning experience starts with CodeCombat Junior and CodeCombat. It expands into AI HackStack, where learners will master the art of crafting effective AI prompts and using the latest generative AI tools in a safe and secure environment. ",cs_benefits:"Computer science education offers immediate benefits, such as improving **problem-solving skills, sharpening mathematical abilities,** and strengthening **logical thinkingâskills** that support success across many subjects. But the learning goes beyond just coding. It helps learners tackle complex challenges, adapt to new situations, and develop a growth mindset that lasts a lifetime.",our_solutions:"Our solutions are designed to equip you with essential computer science skills today, preparing you for the **digital careers of tomorrow.**",learning_code_challenging:"Learning to code can be challenging, but you donât have to do it alone. Our innovative AI hints feature provides real-time guidance to help you keep progressing. It can evaluate your code, highlight errors, and explain how to fix them, all while ensuring you understand the reasoning behind each solutionâwithout simply giving away the answer. Since AI hints only assist with your current coding challenge, you'll still need to think critically and solve each level on your own. Premium subscribers receive 10 AI hints per day, giving you the support you need to keep learning with confidence.",new_to_ai:"For those new to AI, we offer **[/ai]AI HackStack**, an innovative tool that teaches learners how to use AI safely and responsibly. With secure access to cutting-edge AI models like ChatGPT-4, Claude, Stable Diffusion, DALL·E, and more, users can create and experiment with AI- powered projects. In just a short time, theyâll unlock the full creative potential of AI, turning prompts into code, games, art, websites, and moreâall in minutes. Every Premium subscriber receives 50 prompts per month, providing plenty of opportunities to explore and build with AI.",premium_page_title:"CodeCombat Premium"},parents_v2:{testimonials_1_quote:"I can't even begin to explain the profound changes that have occurred in Luka academically since he's been working with you.",testimonials_1_name:"Marina G.",testimonials_1_title:"proud parent",testimonials_2_quote:"One thing I am able to do now that I could not do before is actually believe I can code.",testimonials_2_name:"Student",testimonials_2_title:"Mountain Ridge Middle School",testimonials_3_quote:"Even though the class starts every Saturday at 7am, my son is so excited that he wakes up before me! CodeCombat creates a pathway for my son to advance his coding skills.",testimonials_3_name:"Latthaphon Pohpon",testimonials_3_title:"Parent",comprehensive_package_item_0_text:"One-Hour[NEWLINE]Private 1:1[NEWLINE]Sessions",comprehensive_package_item_1_text:"24/7 Access to[NEWLINE]Play and Learn",comprehensive_package_item_2_text:"Same-Day[NEWLINE]Support",comprehensive_package_item_3_text:"Progress[NEWLINE]Updates",comprehensive_package_item_4_text:"Class[NEWLINE]Recordings",comprehensive_package_item_5_text:"Student[NEWLINE]Certification",comprehensive_package_item_6_text:"30-Day[NEWLINE]Money-Back[NEWLINE]Guarantee",grid_most_popular:"Most Popular",grid_best_value:"Best Value",grid_self_paced:"**[/premium]Self Paced**",grid_1_sessions_weekly:"**[/payments/initial-online-classes-71]1 Session Weekly**",grid_2_sessions_weekly:"**[/payments/initial-online-classes-71]2 Sessions Weekly**",grid_features:"Features",grid_99_annual:"$99 Annual",grid_219_monthly:"$219 Monthly",grid_399_monthly:"$399 Monthly",grid_self_paced_year_price:"$__price__ Annual",grid_self_paced_year_price_without_currency:"__price__ Annual",grid_personalized_instruction:"1:1 Personalized Instru
2ction",grid_premium_access:"Premium Access",grid_codecombat:"CodeCombat",grid_ozaria:"Ozaria",grid_ai_league:"AI League",grid_codecombat_worlds:"CodeCombat Worlds",grid_ai_hackstack:"AI HackStack",grid_parent_dashboard:"Personalized Parent Dashboard",grid_lesson_slides:"Contextual Lesson Slides",grid_connections_applications:"Real-world Connections & Applications",grid_monthly_reports:"Monthly Progress Reports",grid_completion_certificates:"Course Completion Certificates",grid_apcsp_option:"AP CSP Preparation Option",grid_class_recording:"Class Recording Option*",grid_money_back:"30-Day Money-Back Guarantee**",grid_ai_hints_allowance:"CodeCombat AI Hints Allowance (Daily)***",grid_prompts_allowance:"CodeCombat AI HackStack Prompts Allowance (Monthly)***",step_boxes_header_text:"The engaging, project-based curriculum focuses on teaching **real-world text-based coding languages**. While our hands-on approach ensures that students spend a majority of their class time coding, having fun, and experiencing real-time feedback, thus preventing feelings of frustration or stagnation.",step_box_1_title:"Live Instructions",step_box_1_subtitle:"Engage",step_box_1_footer_text:"What kind of loops exist in the real world?",step_box_2_title:"Live Instructions",step_box_2_subtitle:"Explore",step_box_2_footer_text:"Loops are a way to repeat a sequence of code.",step_box_3_title:"Game Time",step_box_3_subtitle:"Evaluate",step_box_3_footer_text:"Build a game using loops.",step_box_4_title:"Game Time",step_box_4_subtitle:"Extend",step_box_4_footer_text:"Use loops to collect the lightstones.",step_boxes_footer_text:"Trusted by over **320,000 educators** worldwide, our scaffolded curriculum is critical to helping students persevere. Our students type real code from the start, become more confident with each class, and learn how Computer Science is relevant to their daily lives.",play_code_create:"Play, code and create with the most engaging **live online coding classes**",unlock_passion:"Unlock your childâs passion for computer science and potential for success with our flexible curriculum and personalized instruction.",schedule_free_class:"Schedule a Free Class",enroll_now:"Or, **[https://codecombat.com/payments/initial-online-classes-71]enroll now**",create_parent_account:"Create Parent Account",to_explore:"To explore",testimonials_1_full_review_text:"Testimonial 1 Full Review Text",adapt_interests:"We adapt to your childâs interests",comprehensive_packages:"Our comprehensive packages include",classes_recorded:"Classes are recorded by default for quality and training purposes. We store class recordings for 3-5 business days. We will not record classes if requested.",subscriptions_billed:"All subscriptions are billed in advance and may be paused, canceled, or resumed with no additional fees. Live Online Classes subscriptions are 100% risk-free within the first 30 days. If for any reason you decide not to continue, simply **contact us** within 30 days of purchase and we will refund 100% of your payment. All plans are automatically renewed at the same level and billing cycle unless otherwise changed or canceled. We do not offer refunds after the first 30 days. Cancellation after the first 30 days will take effect at the start of the next billing cycle.",ai_hints:"AI hints and prompt allowances are subject to change",prefix_or:"Or, ",signup_description:"Sign Up for Self-Paced Access",homeschool_solution:"Looking for a homeschool solution",teach_child:"If you plan to teach your child, we can provide a turnkey solution that empowers you to deliver our curriculum in y
2our own home. We provide all the teaching resources needed for you and your child to succeed including course solution guides. Contact our team to learn more - email **[mailto:[email protected]][email protected]** to connect with a learning advisor.",meet_instructors:"**Meet our Instructors**",why_cs_important:"Why computer science is important",cs_benefits:"Computer science education provides the immediate benefits of boosting **problem-solving competencies, sharpening mathematical abilities**, and encourages the **logical thinking** necessary for success across many other core school subjects. The learning extends far beyond the code, enhancing students' capability to solve complex problems, adapt to different situations and foster a growth mindset. See how Ozaria helps make those **cross curricular connections.**",curriculum_design:"Our curriculum is designed to equip your child today with the crucial computer science skills that will prepare them for the **digital jobs of tomorrow.**",concepts_covered:"Concepts covered",beginner_level:"Beginner",beginner_title:"For students with little to no text-based coding experience",intermediate_level:"Intermediate",intermediate_title:"For students with some text-based coding experience",advanced_level:"Advanced",advanced_title:"For students with substantial experience in text-based coding and a good grasp of complex concepts",cs_careers:"For those interested in pursuing careers in coding and computer science, no worries; AI is not going to replace you. In fact, according to the **[https://www.mckinsey.com/mgi/our-research/generative-ai-and-the-future-of-work-in-america]McKinsey Global Institute Report [Generative AI and the future of work in America]**, by 2030, STEM jobs will see the second highest labor demand growth at +23%, just behind healthcare. STEM professionals will be well positioned to understand and adopt the latest AI technologies as they continue to evolve, making those with computer science knowledge even more effective and valuable.",why_game_based:"Why game-based learning works",game_based_effective:"Game-based learning is so effective because it provides a safe environment where failure is not feared but seen as an expected opportunity for growth and understanding. This approach encourages players to learn from their mistakes and adapt their strategies for success. Furthermore, the interactive and dynamic nature of games helps young learners retain information more effectively, as they are learning through practical, hands-on experiences. It actively engages them in the learning process, increasing their motivation and enjoyment.",how_integrate_ai:"How we integrate AI safely and responsibly",see_how:"See how our instructors blend core curriculum concept review, real-world application, in-game practice and creative coding exercises into a fun and personalized experience.",ai_technology_description:"Our AI technology adheres to **safety-first principles**, providing confidence to both learners and instructors. We do not allow our backend LLM providers to train on your chats and have established **protective measures against inappropriate content**. These measures include filtering harmful language, maintaining focus on relevant subjects, safeguarding personal information, and educating learners about potential AI pitfalls. Moreover, we log AI chat activity for instructor monitoring and uphold **stringent data privacy and security protocols**.",instructors_offer_guidance:"Our instructors offer the guidance and support your child needs, but canât always be there. Thatâs where our innovative AI hints feature helps the learning continue between sessions. This support feature can evaluate code, point out errors, and explain how to fix them. Most importantly, it provides all the context needed to understand the why, without providing the entire solution. With only current code problem assistance available students will still need to work through each level's coding challenge. Subscribers receive an allocation of 20 AI hints per day to ensure they always have the support they need.",new_to_ai:"For those new to AI, we offer **[/ai]CodeCombat AI HackStack**. Our instructors use this innovative tool to teach your child how to use AI safely and responsibly. The application provides secure access to many of the latest LLMs including ChatGPT-4, Claude, Stable Diffusion, DALL-E and others. After just a short time working with our instructors, your child will unlock the full creative potential of the tool, allowing prompt-to-code-to-published projects in minutes. This AI-powered a
2pplication enables users to generate games, art, websites code and more. Every live online classes subscriber receives 200 prompts per month to create multiple AI projects.",ap_csp_preparation:"AP CSP Preperation",ap_csp_description:"Did you know that you donât need to be enrolled in an AP CSP class to take the AP CSP exam? If your child plans to pursue a career in computer science taking the AP Computer Science Principles exam can be a promising first step, and we can help. Passing the exam serves as a recognized avenue to postsecondary credit, enabling learners to bypass costly and time-consuming college requirements. Our course, endorsed by the College Board affirms that our curriculum is aligned to all the AP Curriculum Framework standards and the AP CSP assessment.",get_prepared_for_ap_csp_exam:"**[/apcsp]Get prepared for the AP CSP exam**",schedule_a_free_class:"Schedule a Free Class",boxes_title:"Personalized instruction and premium access with a single subscription",ozaria_title:"Ozaria",ozaria_text:"An enchanting narrative coding adventure that establishes the fundamentals of computer science.",personalized_instruction:"An enchanting narrative coding adventure that establishes the fundamentals of computer science.",codecombat_title:"CodeCombat",codecombat_text:"A game-based computer science curriculum that features web development, game development and prep for the AP CSP exam.",ai_league_sports_title:"AI League Sports",ai_league_sports_text:"An epic competitive coding esports platform that encourages creative programming in a game-based environment.",codecombat_worlds_title:"CodeCombat Worlds",codecombat_worlds_text:"Developed in partnership with Roblox Education,this experience accelerates your childâs coding abilities to create amazing Roblox games and experiences.",ai_hackstack_title:"AI HackStack",ai_hackstack_text:"Learn anything, create something, do everything with the first generative AI companion tool specifically crafted for those new to AI. Itâs AI empowerment for all
2!",every_child_different_learning_style:"**Every child has a different learning style and academic interests. Weâve developed a suite of effective game-based learning programs to ensure your child stays engaged and excited to keep learning even when topics become complex or challenging.**",carousel_items_1_title:"Coding[NEWLINE]Fundamental",carousel_items_1_title_prefix:"**Focus:**",carousel_items_1_text:"For students with little to no coding experience, most class sessions will be in Ozaria to build foundational skills and then in CodeCombat to deepen programming knowledge. AI HackStack will be used to help accelerate your childâs coding abilities and showcase real-world applications of their new-found skills. CodeCombat Worlds and AI League will offer occasional practice and creative play opportunities.",carousel_items_2_title:"Game[NEWLINE]Development",carousel_items_2_title_prefix:"**Focus:**",carousel_items_2_text:"If your child loves games and wants to make them, then our game development focused curriculum will feature CodeCombat at the core for the initial game development activities and projects. In no time your child will be working in CodeCombat Worlds building and publishing real games to the Roblox platform. Competing in our AI League provides additional insight into successful game dynamics and development, while AI HackStack will be a powerful tool for iterative game development.",carousel_items_3_title:"Web[NEWLINE]Development",carousel_items_3_title_prefix:"**Focus:**",carousel_items_3_text:"Developing for the web is ever evolving and itâs important to stay ahead of the curve. In this curriculum focus the initial web development activities will be conducted in CodeCombat, while Ozaria will be used for those new to coding. AI HackStack will be heavily implemented as the platform to build an publish to the web, with limited use of CodeCombat Worlds and AI League to help reinforce key coding concepts.",carousel_items_4_title:"Competitive[NEWLINE]Coding Esports",carousel_items_4_title_prefix:"**Focus:**",carousel_items_4_text:"Esports enthusiasts will love the competitive spirit of this curriculum focus. With a foundation built from CodeCombat, your child will be competing in our AI League global esports tournaments year-round with scholarships and prizes on the line. With an emphasis on creative coding and iteration your child will learn how to use our AI HackStack tool to supercharge their abilities in competition.",carousel_items_5_title:"AI[NEWLINE]Applications",carousel_items_5_title_prefix:"**Focus:**",carousel_items_5_text:"AI is everywhere and those that can harness its power will be able to maximise their potential. This curriculum focus builds from CodeCombat but itâs AI HackStack that will help teach the art of drafting the strongest AI prompts and how to use all the latest generative AI tools in a safe and secure environment. The generative AI feature built into CodeCombat Worlds will offer yet another real world opportunity to see what your child can do with AI.",carousel_items_6_title:"AP CSP[NEWLINE]Preparations",carousel_items_6_title_prefix:"**Focus:**",carousel_items_6_text:"If your child plans to pursue a career in computer science taking the AP Computer Science Principles exam can be a promising first step. Passing the exam serves as a recognized avenue to postsecondary credit, enabling learners to bypass costly and time-consuming college requirements. Our course, endorsed by the College Board affirms that our curriculum is aligned to all the AP Curriculum Framework standards and the AP CSP assessment. You do not need to be enrolled in a high school AP class to take the exam and we can support you in finding an in-person exam location.",instructors_1_text:"Brian is a passionate coding teacher with 13 years in the classroom teaching mathematics and computer science. He has experience with Java, Python, Javascript, HTML, and CSS. With a bachelorâs in Mathematics Education and a Masters's in Educational Theory he loves sharing his passion for math and computer science with others. He believes that by teaching computer science we are preparing our youth to be the next generation of exceptional problem solvers.",instructors_2_text:"Shreeaa has a passion for helping others discover the joy of coding. Having previously found success with a career in software development, she brings real-world knowledge to her classes. Her teaching style is hands-on and practical, with a focus on helping one gain the skills they need to create real-world projects while having lots of fun. Whether you're new to coding or looking to expand your knowledge, sheâs here to supp
2ort you on your journey.",instructors_3_text:"Tai is currently studying both Criminal Justice and Cyber Security. He has a passion for justice and technology, and hopes to use his skills to make the world a safer place. In addition to his studies, Tai worked at the YMCA for over five years, where he gained valuable experience in child care. He is dedicated to fostering a safe and supportive environment for all, whether it's working with children or in the tech industry.",instructors_4_text:"Carson has been teaching coding for two years, with professional experience in many programming languages, including Python, Javascript and HTML. Carson's teaching approach focuses on relating the concepts to things the student is passionate about or interested in. He prefers to let the student explore and find their own path, while guiding them through learning in the way that suits their style and personality.",instructors_5_text:"Dania is a Computer Engineering graduate with a passion for teaching and spreading knowledge. Dania has over six years of experience teaching different programming languages and computer literacy. She believes in the importance of learning coding at a young age to ensure them an edge in today's fast-moving digital world where coding is the global language.",instructors_6_text:"Rileyâs journey began when he taught himself Python
2while pursuing his first Bachelor's degree. His passion for education led him to become a high school Social Studies teacher, where he continued to enhance his coding skills on the side. After three years of teaching, he decided to return to school to earn another Bachelor's degree in Computer Science. His enthusiasm for education remains as strong as ever, and now he is genuinely excited to be teaching something he loves. He fosters meaningful interactions with his students, igniting their genuine interest in the subject matter rather than relying solely on strict memorization.",instructors_7_text:"Ishraq is a passionate coding teacher with experience in full-stack web development. She started coding in middle school and believes that coding at a young age is vital. Having started coding at a young age she understands how important it is for them to enjoy the process of learning and goes the extra mile to ensure her students love every class.",instructors_8_text:"This is Edi, short for Edwin. He lives in Bali, Indonesia and has been running a programming school for the past two years. In his former career he was an IT professional who traveled across the globe implementing project structure. His passions are teaching and sharing knowledge and loves the chance to teach children and introduce them to the wonderful world of programming. Sampai Jumpa lagi (Indonesian for see you soon)!",instructors_9_text:"Meet Kislay, a mom, engineering graduate, coding instructor, and math enthusiast with three years of edtech teaching experience. She is passionate about teaching coding and math to others, and has helped hundreds of students from diverse backgrounds with their math concepts and coding languages such as Python, JavaScript, HTML/CSS, and Node.js. Her teaching style emphasizes practical, real-world applications, and her goal is to help her students build the skills and confidence they need to succeed in the tech industry.",instructors_10_text:"Nadeem was first inspired to take up coding while studying Java in community college. After transferring to the University of California, Berkeley and picking up Python, his passion and excitement for coding grew. As a current PhD student in computational mathematics, coding now sits at the heart of what he works on everyday. Coming from a large family, Nadeem has always enjoyed being around kids, and relishes the opportunity to mentor young students.",instructors_11_text:"Bhavika has a Masters Degree in Information Systems and extensive experience in tech. She started her career in Web Development and has explored other areas of IT, such as Middleware Administration and QA Testing. She has experience in several programming languages including Python, Django, AngularJS, Lua Coding, HTML and CSS. She believes no one is ever too young to start learning these vital skills.",instructors_12_text:"Sergio has been a Technology/Computer Science teacher for seven years, working in international schools in both South America and South Korea. He is originally from Venezuela and is currently living in Colombia. With a degree in Computer Science Education, he teaches Python, HTML, CSS, JavaScript, and Swift, amongst others non-coding subjects. He has also earned several certificates in programming languages and is currently working on a Data Science certification. He believes that learning how to code can help anyone solve problems in the real world. And yes, he can teach in spanish.",instructors_13_text:"Bella currently studies Computer Science at UC Berkeley and is passionate about sharing the excitement of the technological world with others. From robotics to web development, Bella has been teaching computer programming for over five years and fosters an inclusive and supportive learning environment so that students can prosper and take control of their coding journey.",faq_1_question:"What should I expect in the trial class?",faq_1_answer:"Each trial class is a private 60 minute session with **45 minutes of instruction** for the student followed by **15 minutes for discussion with a parent or guardian**. These 15 minutes are important and are set aside to answer any questions, provide insight into how the ongoing curriculum progresses, and help you select the right skill level and coding language for your child.",faq_2_question:"How are instructors matched with my child?",faq_2_answer:"After the initial trial class, our team carefully matches our online instructors to each student based on their experience level, personality, interests, and schedule. Our team will work with you to improve your experience if you or your child doesnât love learning with your instructor.",faq_3_question:"Are there any student age limits?",faq_3_answer:"We offer a variety of approaches to ensure younger and older students alike can get the most out of our curriculum and instruction. We mostly serve elementary to high school aged students. However, if your child can type, use a mouse, and is comfortable using a computer, they are welcome to join our class.",faq_4_question:"What kind of technology do I need to join the class?",faq_4_answer:"Your student will need a reliable internet connection and a laptop or desktop computer. We do not recommend tablets, as students will need the ability to screen share their browser.",faq_5_question:"What is the cancellation policy?",faq_5_answer:"Your subscription purchase is 100% risk-free within the first 30 days. If for any reason you decide not to continue, simply contact us at **[mailto:[email protected]]classe
2[email protected]** within 30 days of purchase and we will promptly refund 100% of your purchase, no questions asked.",faq_6_question:"What if I need to reschedule a class?",faq_6_answer:"Once you have booked a weekly class with us, we have reserved time in our schedule exclusively for you, so we require 48 hours' advance notice for rescheduling classes. You can reschedule your class by emailing **[mailto:[email protected]][email protected]**. Classes missed or canceled with less than 48 hours' notice will not be rescheduled or refunded.",faq_7_question:"What if we have vacation planned?",faq_7_answer:"We offer the option to pause your classes for up to two weeks. If an extended break is needed, we will suspend your subscription for the duration of your break and will connect with you upon your return to reinstate classes. Please note that we may need to find a new time if your studentâs instructor is no longer available at your previous time.",faq_8_question:"Do you provide group classes?",faq_8_answer:"We do not arrange or assign group classes, but if you have a group of students looking to work together, we are happy to facilitate a group class for them.",faq_9_question:"Do you offer any discounts?",faq_9_answer:"We offer discounts for siblings and group classes. We do not arrange or assign group classes, but if you have a group of students looking to work together, we will facilitate a group class for them. Please reach out to **[mailto:[email protected]][email protected]** for questions about specific pricing details.",faq_10_question:"Will my student get to work with the same instructor?",faq_10_answer:"Yes, once your subscription is arranged, your student will work with the same instructor each week. Periodically a substitute might need to be arranged for scheduling conflicts, but this is rare.",faq_11_question:"Is my childâs data secure?",faq_11_answer:"We take student safety, cybersecurity, and data privacy seriously, and follow the stringent school-grade privacy regulations including COPPA, FERPA, SOPIPA, California AB 1584, CalOPPA, Fair Information Practices, CAN-SPAM, as well as GDPR. All student data is stored securely on Amazon Web Services in the US. Our AI integrations have guardrails to protect Personal Identifiable Information (PII) and restrict sensitive content. Project sharing is controlled and peer-to-peer communication is restricted. Visit **[https://codecombat.com/privacy]https://codecombat.com/privacy** for more information.",faq_12_question:"Do you offer classes in other languages?",faq_12_answer:"We offer the full class experience in both English and Spanish. However our talented group of instructors speak many other languages. If you have a specific language preference please reach out to **[mailto:[email protected]][email protected]** to see if we can accommodate your childâs preferred language.",faq_13_question:"What makes our class experience different?",faq_13_answer:"Unlike other coding education platforms, our game-based approach uses our proprietary games and technology to deliver more engaging experience and more effective outcomes. Weâve developed our own web-based games and a fully immersive experience on Roblox that makes learning to code and game creation more enjoyable."},roblox:{header_title:"Empowering every player to become a **creator**!",header_content:"Experience the easiest and most enjoyable way to code and create your own Roblox games",link_reward:"Account Linking Rewards",link_reward_desc:"Link your CodeCombat and Roblox accounts to unlock features and rewards",link_encouragement:"The more people link their accounts, the more rewards you'll receive!",connect_button_list_item_1:"Manage subscriptions",connect_button_list_item_2:"Unlock premium content",connect_button_list_item_3:"Track progress",connect_button_list_item_4:"Earn exclusive rewards",connect_button_list_item_5:"Access curricular resources",connect_button_list_item_6:"Unlock generative AI features",connect_button_list_item_7:"Creative mode publishing",connect_button_list_item_8:"Parent and teacher dashboards",link_now:"Link Now",pcc_on_roblox:"Play, Code and Create on Roblox",play_title:"Play",play_de
2sc:"Explore the 3D immersive experience of CodeCombat Worlds. Program your pets and adventure into a universe of creativity and shared experiences with friends.",code_title:"Code",code_desc:"Learn real Lua coding, from beginner to advanced. Use code to explore, gather resources, build, and discover your path to glory.",create_title:"Create",create_desc:"No Roblox Studio? No problem. Code in-game in Creative Mode to make full Roblox games to share with your friends.",what_create:"What will you create?",access_guidebook:"Access Guidebook",guidebook_description:"Everything you need to know to get started",faq_1_question:"Do I need to know Lua or Roblox Studio?",faq_1_answer:"No. This experience will allow anyone to play, code and create from the very start of their adventure, without any coding experience.",faq_2_question:"Can I create my own games?",faq_2_answer:"Yes. Game development is at the core of this experience and after completing the essential learning levels you will have the opportunity to create your own.",faq_3_question:"Will my creations be available on Roblox?",faq_3_answer:"Yes. Players can share their experiences within CodeCombat Worlds and import their experiences to Studio for publishing via a plugin, maintaining Studio compatibility.",faq_4_question:"Do I need a Roblox account?",faq_4_answer:"Yes. All players can sign-up for free at roblox.com. Don't forget to link your CodeCombat account and Roblox account to access all the features and rewards.",faq_5_question:"Will it work on my Chromebook or mobile device?",faq_5_answer:"Yes. CodeCombat Worlds allows you to play, type real code and create games on PC, Mac, Chromebooks, tablets, phones, and consoles.",promo_modal_title:"Discover CodeCombat Worlds",promo_modal_text:"**Want to build a Roblox game but canât code?** Jump into **CodeCombat Worlds** â where youâll learn by playing! Start in Rift Village, coding your pets to harvest, and battle. Then tackle Lua (the coding language of Roblox) in the Learning Levels, and finally unleash your ideas in Creative Mode to craft immersive Roblox games. The power to create is in your hands!",having_trouble:"Having trouble?",check_help_doc:"View our connection guide here"},pd_page:{implementation_training_title:"Implementation Training",implementation_training_blurb:"Educators are provided with a live, online 60 minute onboarding training and guidance on how to use CodeCombat or Ozaria to support specific institutional and instructional goals. The implementation is focused on a comprehensive teacher dashboard walkthrough that covers:",list_1:"How to add classes & students",list_2:"How to track & lock student progress",list_3:"An overview of how to use the resources available in the Resource Hub, including: Course Guide, Lesson Plans, Lesson Slides, & Educator FAQ",modal_subtitle:"To get licenses for our professional development course, send us a message and our classroom success team will be in touch!",email_message:"Hi! Iâm interested in learning more about your professional development course and discussing pricing options.",professional_development_title:"Professional Development[NEWLINE](With Ozaria)",professional_development_blurb:"This 40+ hour online, self-directed course provides educators with the knowledge, skills and resources to implement high-quality CS instruction.",list_4:"It adheres to the ESSA guidelines for exemplary professional learning, is endorsed by the CSTA and qualifies for valuable professional education credit hours.",list_5:"The course is built on a Learn It, Try It, Teach It model ensuring teachers have a solid foundation of the concepts before they implement it in the classroom.",list_6:"Earn up to 3 graduate-level education credit hours while exploring core CS concepts and teaching strategies that include computational thinking, inquiry-based learning, SEL and DEI.",download_table_of_contents:"Download Table of Contents",ap_csp_professional_development_title:"AP CSP Professional Development[NEWLINE](With CodeCombat)",ap_csp_professional_development_blurb:"This 40+ hour online, largely self-directed course is ideal for any educator who wants to prepare their students to succeed on the AP Computer Science Principles exam using CodeCombat.",list_7:"Both this course and the CodeCombat AP CSP curriculum are endorsed by the C
2ollege Board. The hours completed in this course can be used to qualify for valuable professional education credit.",list_8:"The course leverages synchronous, small group conversations with AP CSP teachers from across the globe in order to deepen oneâs CS knowledge and enrich oneâs classroom practices.",list_9:"Through CodeCombatâs partnership with Southern New Hampshire University (SNHU), you can earn up to 3 graduate-level credit hours while learning how to best prepare your students to take the AP CSP exam.",download_syllabus:"Download Syllabus",get_full_course:"Get Full Course",try_sample_lesson:"Try Sample Lesson",trophy_header:"Level up as a Computer Science Teacher with our Professional Development offerings!"},junior_page:{testimonials_1_quote:"The future is programmable and you will need to be able to code to participate⦠I think CodeCombat has the best CS curriculum on the market⦠the teacher toolkit is what sets it apart.",testimonials_1_name:"Jacob Kaminski",testimonials_1_title:"STEM Program Director, American STEM Prep",start_their_coding_journey_today:"**Start** their coding journey **today!**",our_flagship_k_5_curriculum:"Our **flagship K-5 curriculum** features a scaffolded progression of learning levels that **teach coding concepts at a slower pace**, modeled specifically for elementary students.",sign_up_to_start_today:"Sign up to start today",testimonials_1_full_review_text:"Full review text",scaffolded_approach:"Scaffolded Approach",no_matter_the_coding_experience:"No matter the coding experience, CodeCombat Junior **meets students where theyâre at.** They can code with icon blocks, word blocks, blocks and text code in parallel, or text-based coding with industry standard languages.",accessible_to_all:"Accessible to All",with_our_tablet_friendly_platform:"Weâve anticipated the challenges our youngest learners might face, incorporating **no-reading and no-typing options.** The simplified user interface performs exceptionally well on Chromebooks, as well as tablets and iPads without physical keyboards, ensuring equity and accessibility for all, irrespective of their device.",adaptive_to_each_student:"Adaptive to Each Student",codecombat_junior_automatically_assesses:"CodeCombat Junior automatically assesses learnerâs coding success and recommends **custom-generated practice levels** when they need extra support. This provides a personalized learning pathway for every student while offering the ability for parents and educators to track progress.",coding_fundamentals_and_cross_curricular_connections:"Coding Fundamentals and Cross-Curricular Connections",our_curriculum_offers_student_facing:"For educators, our curriculum offers student-facing lesson slides and approachable activities to teach both core K-5 coding concepts and cross-curricular connections. The unplugged activities **integrate coding concepts with other disciplines like Math and ELA.** Topics include sequencing stories, visualizing and graphing data, narratives, and number sentences. All of our lessons are designed to **meet Computer Science Teachers Association (CSTA) Standards and Common Core Standards.**",request_a_quote:"Request a Quote",scope_and_sequence:"Scope and Sequence",check_out_this_resource:"Check out **[https://docs.google.com/spreadsheets/d/1_2zr55qsEcbHDyDNoelYamN9ov0G35ju7s-ufttSzVQ]this resource** as a starting point for your personalized approach.",connect_with_our_team:"Connect with our team to access all the teacher resources, a personalized learning pathway, generative practice levels, and more. Weâll help you integrate this comprehensive K-5 coding curriculum to ensure your students thrive at every stage of their coding journey.",faq_1_question:"FAQ 1 Question",faq_1_answer:"FAQ 1 Answer",faq_2_question:"FAQ 2 Question",faq_2_answer:"FAQ 2 Answer",faq_3_question:"FAQ 3 Question",faq_3_answer:"FAQ 3 Answer",faq_4_question:"FAQ 4 Question",faq_4_answer:"FAQ 4 Answer",meta_title:"CodeCombat Junior: K-5 Computer Science for Schools",our_comprehensive_implementation:"Our comprehensive implementation",trends_1_title:"Kickstarting CS in K-5 Classrooms",trends_1_text:"Watch as CodeCombat's Director of Education, Charlotte Cheng, and STEM Program Director, Jacob Kaminski, explore how to integrate **CodeCombat Junior** and **CodeCombat Worlds** into your classroom. They share practical strategies, success stories, and answer questions from fellow educators.",trends_1_linkText:"Learn more",trends_2_title:"CodeCombat Junior: A New Dynamic Approach to K-5 Coding",trends_2_text:"Learn more about how **CodeCombat Junior** can bring coding education to K-5 classrooms. From drag-and-drop icon-based block coding to text-based coding in Python and JavaScript, this adaptable platform supports students at every stage. With over 1,100 levels and more in development, CodeCombat Junior offers endless opportunities.",trends_2_linkText:"Read the blog",get_a_headstart:"Get a Headstart from Home",parents_junior_perfect:"Parents, CodeCombat Junior is the perfect way to start introducing your child not only to computer science but all the benefits, including problem solving, logic and reasoning, persistence, computational thinking and creative exploration.",explore_learning_options:"Explore Learning Options",promo_modal_subtitle:"Play, Learn, and Grow with GameâBased Coding",promo_modal_text:"**Kickstart their coding adventure with scaffolded levels designed for ages 5â8âno reading or typing needed!** Theyâll learn with icon blocks, word blocks, or simple text side by side, and tackle adaptive challenges that keep them engaged. Works seamlessly on **Chromebooks**, **tablets**, and **iPads**."}
2,paywall:{badge_free:"Free","badge_sales-call":"Unlock with Call",badge_paid:"Paid",badge_tooltip_free:"Explore our levels at no cost!","badge_tooltip_sales-call":"Interested in more? Give us a call and unlock!",badge_tooltip_paid:"This content is exclusive to users with a valid license."},exams:{timer_tip:"A timer will start when you click Start Exam",no_permission:"Only users with permission can take the exam",level_num:"Challenge __num__",time_left:"Time Left (HH:mm):",submit_tip:"Are you sure you want to mark as complete? You will not be able to play the levels again.",start_exam:"Start Exam",continue_exam:"Continue Exam",return_to_exam:"Return to the Exam"},hoc_page:{hoai_activities_poetry_title:"AI HackStack: Poetry in Motion",hoai_activities_poetry_description:"Bring poetry to life with AI HackStack! Learners explore a poemâs theme, craft prompts to generate images, and evaluate AI outputs for bias while blending ELA skills with AI literacy as words transform into art.",hoai_activities_social_title:"AI HackStack: Social Media Showdown",hoai_labels_grade:"Grades 6+",hoai_labels_multimodal:"Multimodal AI",hoai_labels_ela:"ELA",hoai_labels_algebra:"Algebra",hoai_labels_cs:"CS",hoai_activities_social_description:"Play social media manager in this algebra and AI challenge! Prompt AI to build formulas, model engagement, and judge celebrity content battles while mastering math and AI literacy.",hoai_activities_vibe_title:"AI HackStack: Vibe Coding Lab",hoai_activities_vibe_description:"Dive into vibe coding with AI HackStack! Guide a hero with simple algorithms, explore syntax, and prompt AI to remix code into games and sites for a creative, fast, and fun coding experience.",hoai_activities_esports_title:"CodeCombat: AI Esports",hoai_activities_esports_description:"AI meets esports in this coding challenge! Learn prompts and algorithms, experiment with vibe coding, then team up with an AI assistant to face the CPU in the ultimate AI League battle.",learn_and_engage_with_these_csedweek_activities:"**Learn** and **engage** with these **CSEdWeek** activities!",latest_activities:"Latest Activities",hoai_activities:"Hour of AI Activities",turn_csedweek_into_a_cs_year:"Turn CSEdWeek into a CS Year",start_teaching_today_with_free_trial_access_to_all_games_and_teaching_resources:"Start teaching today with free trial access to all games and teaching resources.",more_of_our_csedweek_activities:"More of Our CSEdWeek Activities",latest_activities_1_title:"AI HackStack: Exploring AI Basics",latest_activities_1_text:"Unleash your creativity and explore the future with AI HackStack! From designing AI-generated art to building intelligent tools, dive into hands-on activities that make learning safe, fun, and inspiring for all skill levels.",latest_activities_1_label_1:"Grades 6-8",latest_activities_1_label_2:"Multimodal AI",latest_activities_2_title:"CodeCombat Junior",latest_activities_2_text:"Ready, set, code! Help your pet collect gems by mastering the basics of programming. Learn to create sequences, solve puzzles, and build algorithms in this hands-on adventure!",latest_activities_2_label_1:"Grades K-5",latest_activities_2_label_2:"JavaScript, Python",latest_activities_2_label_3:"Tablet Friendly",try_activity:"Try Activity",view_lesson:"View Lesson",codecombat_worlds_title:"CodeCombat Worlds",codecombat_worlds_text:"Master coding by creating your own Roblox games, from coding pets in the Overworld to crafting games in Creative Mode!",codecombat_worlds_label_1:"Grades 2+",codecombat_worlds_label_2:"Lua",codecombat_worlds_label_3:"Tablet Friendly",codecombat_worlds_label_4:"Download Required",goblins_glory_title:"CodeCombat: Goblins 'n' Glory",goblins_glory_text:"We need your help! Embark on an epic quest where you take control of the game through your powers of programming.",goblins_glory_label_1:"Grades 6-8",goblins_glory_label_2:"JavaScript, Python",ai_league_title:"Esports Bootcamp: AI League",ai_league_text:"Competitive coding has never been so epic! Learn the skills you need to play like the pros in our Esports Bootcamp. No coding experience needed.",ai_league_label_1:"Grades 6-8",ai_league_label_2:"JavaScript, Python",ozaria_title:"Ozaria: Your Journey Begins",ozaria_text:"Enter the world of Ozaria where you must use the power of coding to defeat a darkness that has taken over the world!",ozaria_label_1:"Grades 6-8",ozaria_label_2:"JavaScript, Python",escape_dungeon_title:"Beginner CS: Escape the Dungeon!",escape_dungeon_text:"Cho
2ose your hero and code your way through the ogre patrols, lava pits, and laser beams of Kithgard Dungeon. Level up, earn gems, and loot magic items to unlock new programming powers!",escape_dungeon_label_1:"Grades 6-8",escape_dungeon_label_2:"JavaScript, Python",beginner_game_dev_title:"Beginner Game Dev: Build Your Own Game!",beginner_game_dev_text:"First, level up your Python or JavaScript programming skills by coding your way out of danger and grabbing sweet loot. Then use your programming powers to build your own game and see if your friends can beat it!",beginner_game_dev_label_1:"Grades 6-8",beginner_game_dev_label_2:"JavaScript, Python",intermediate_game_dev_title:"Intermediate Game Dev: Code, Play, Create",intermediate_game_dev_text:"Code and play a series of game levels while learning important Computer Science concepts. On the final level, show off your creativity and skills to code your own game from scratch!",intermediate_game_dev_label_1:"Grades 6+",intermediate_game_dev_label_2:"JavaScript, Python",advanced_game_dev_title:"Advanced Game Dev: Build an Arcade Game!",advanced_game_dev_text:"Ready to create an even cooler game? Brush up on advanced coding concepts like functions and events using Python or JavaScript, then use those skills to build your own arcade survival game!",advanced_game_dev_label_1:"Grades 6+",advanced_game_dev_label_2:"JavaScript, Python"}}}},7288:(e,t,n)=>{"use strict";var r=n(619755),o=n(299498);e.exports={en:n(761625),"en-US":n(266005),"en-GB":{nativeDescription:"English (UK)",englishDescription:"English (UK)"},"zh-HANS":{nativeDescription:"ç®ä½ä¸æ",englishDescription:"Chinese (Simplified)"},"zh-HANT":{nativeDescription:"ç¹é«ä¸æ",englishDescription:"Chinese (Traditional)"},ru:{nativeDescription:"ÑÑÑÑкий",englishDescription:"Russian"},"es-ES":{nativeDescription:"español (ES)",englishDescription:"Spanish (Spain)"},"es-419":{nativeDescription:"español (América Latina)",englishDescription:"Spanish (Latin America)"},fr:{nativeDescription:"français",englishDescription:"French"},"pt-PT":{nativeDescription:"Português (Portugal)",englishDescription:"Portuguese (Portugal)"},"pt-BR":{nativeDescription:"Português (Brasil)",englishDescription:"Portuguese (Brazil)"},ar:{nativeDescription:"Ø§ÙØ¹Ø±Ø¨ÙØ©",englishDescription:"Arabic"},az:{nativeDescription:"azÉrbaycan dili",englishDescription:"Azerbaijani"},bg:{nativeDescription:"бÑлгаÑÑки език",englishDescription:"Bulgarian"},ca:{nativeDescription:"Català ",englishDescription:"Catalan"},cs:{nativeDescription:"ÄeÅ¡tina",englishDescription:"Czech"},da:{nativeDescription:"dansk",englishDescription:"Danish"},"de-DE":{nativeDescription:"Deutsch (Deutschland)",englishDescription:"German (Germany)"},"de-AT":{nativeDescription:"Deutsch (Ãsterreich)",englishDescription:"German (Austria)"},"de-CH":{nativeDescription:"Deutsch (Schweiz)",englishDescription:"German (Switzerland)"},et:{nativeDescription:"Eesti",englishDescription:"Estonian"},el:{nativeDescription:"Îλληνικά",englishDescription:"Greek"},eo:{nativeDescription:"Esperanto",englishDescription:"Esperanto"},fil:{nativeDescription:"Filipino",englishDescription:"Filipino"},fa:{nativeDescription:"ÙØ§Ø±Ø³Û",englishDescription:"Persian"},gl:{nativeDescription:"Galego",englishDescription:"Galician"},ko:{nativeDescription:"íêµì´",englishDescription:"Korean"},haw:{nativeDescription:"Ê»Ålelo HawaiÊ»i",englishDescription:"Hawaiian"},he:{nativeDescription:"×¢×ר×ת",englishDescription:"Hebrew"},hr:{nativeDescription:"hrvatski jezik",englishDescription:"Croatian"},hu:{nativeDescription:"magyar",englishDescription:"Hungarian"},id:{nativeDescription:"Bahasa Indonesia",englishDescription:"Indonesian"},it:{nativeDescription:"Italiano",englishDescription:"Italian"},kk:{nativeDescription:"ÒÐ°Ð·Ð°Ò ÑÑлÑ",englishDescription:"Kazakh"},lt:{nativeDescription:"lietuvių kalba",englishDescription:"Lithuanian"},lv:{nativeDescription:"latvieÅ¡u",englishDescription:"Latvian"},mi:{nativeDescription:"te reo MÄori",englishDescription:"MÄori"},"mk-MK":{nativeDescription:"ÐакедонÑки",englishDescription:"Macedonian"},hi:{nativeDescription:"मानठहिनà¥à¤¦à¥",englishDescription:"Hindi"},mn:{nativeDescription:"Ðонгол Ñ
Ñл",englishDescription:"Mongolian"},ms:{nativeDescription:"Bahasa Melayu",englishDescription:"Bahasa Malaysia"},my:{nativeDescription:"áá¼ááºáá¬á
áá¬á¸",englishDescription:"Myanmar language"},nl:{nativeDescription:"Nederlands",englishDescription:"Dutch"},"nl-BE":{nativeDescription:"Nederlands (België)",englishDescription:"Dutch (Belgium)"},"nl-NL":{nativeDescription:"Nederlands (Nederland)",englishDescription:"Dutch (Netherlands)"},ja:{nativeDescription:"æ¥æ¬èª",englishDescription:"Japanese"},nb:{nativeDescription:"Norsk BokmÃ¥l",englishDescription:"Norwegian (BokmÃ¥l)"},nn:{nativeDescription:"Norsk Nynorsk",englishDescription:"Norwegian (Nynorsk)"},uz:{nativeDescription:"O'zbekcha",englishDescription:"Uzbek"},pl:{nativeDescription:"Polski",englishDescription:"Polish"},ro:{nativeDescription:"limba românÄ",englishDescription:"Romanian"},sr:{nativeDescription:"ÑÑпÑки",englishDescription:"Serbian"},sk:{nativeDescription:"slovenÄina",englishDescription:"Slovak"},sl:{nativeDescription:"slovenÅ¡Äina",englishDescription:"Slovene"},fi:{nativeDescription:"suomi",englishDescription:"Finnish"},sv:{nativeDescription:"Svenska",englishDescription:"Swedish"},th:{nativeDescription:"à¹à¸à¸¢",englishDescription:"Thai"},tr:{nativeDescription:"Türkçe",englishDescription:"Turkish"},uk:{nativeDescription:"ÑкÑаÑнÑÑка",englishDescription:"Ukrainian"},ur:{nativeDescription:"Ø§ÙØ±Ø¯ÙÙ",englishDescription:"Urdu"},vi:{nativeDescription:"Tiếng Viá»t",englishDescription:"Vietnamese"},"zh-WUU-HANS":{nativeDescription:"å´è¯",englishDescription:"Wuu (Simplified)"},"zh-WUU-HANT":{nativeDescription:"å³èª",englishDescription:"Wuu (Traditional)"}},Object.defineProperties(e.exports,{load:{enumerable:!1,value:function(t){var r=this;if(["en","en-US"].includes(t))return this.storeLoadedLanguage(t,e.exports[t]),Promise.resolve();console.log("Loading locale:",t);var o=[new Promise((function(e,r){return n(587942)("./"+t)((function(t){return e(t)}))}
2)).then((function(e){return r.storeLoadedLanguage(t,e)})).catch((function(e){return console.error("Error loading locale '".concat(t,"':\n"),e)}))],i=t.slice(0,2);return i!==t&&null!=this[i]&&o.push(new Promise((function(e,t){return n(411938)("./"+i)((function(t){return e(t)}))})).then((function(e){return r.storeLoadedLanguage(i,e)})).catch((function(e){return console.error("Error loading locale '".concat(i,"':\n"),e)}))),Promise.all(o)}},storeLoadedLanguage:{enumerable:!1,value:function(e,t){var r=n(196363);return this[e]=t,r.commit("addLocaleLoaded",e),t}},installVueI18n:{enumerable:!1,value:function(){var e=n(196363),t={install:function(t,n){var i={};t.util.extend(i,n),t.t=function(n,o){i={};var a=e.state.me.preferredLanguage||"en";return e.state.localesLoaded[a]||(a="en"),"string"==typeof a&&""!==a&&(i.lng=a),t.util.extend(i,o),r.i18n.t(n,i)},t.prototype.$t=function(n,o){i={};var a=e.state.me.preferredLanguage||"en";e.state.localesLoaded[a]||(a="en"),"string"==typeof a&&""!==a&&(i.lng=a);var s=this.$options.i18nextNamespace;return"string"==typeof s&&""!==s&&(i.ns=s),t.util.extend(i,o),r.i18n.t(n,i)},t.prototype.$dbt=function(e,t,n){return null==n&&(n={}),o.i18n(e,t,n.language,n.fallback)}}};return Vue.use(t)}},mapFallbackLanguages:{enumerable:!1,value:function(){var t={default:["en"]};for(var n in e.exports)if("en"!==n){for(var r=[],o=n.split("-");o.length>1;){var i=o.slice(0,o.length-1).join("-");for(var a in e.exports[i]&&!Array.from(r).includes(i)&&r.push(i),e.exports)a===n||a.split("-").slice(0,o.length-1).join("-")!==i||Array.from(r).includes(a)||r.push(a);o.pop()}(_.string||_.str).startsWith(n,"en")||r.push("en"),t[n]=r}return t["zh-WUU-HANS"]=["zh-WUU-HANT","zh-HANS","zh-HANT","en"],t["zh-WUU-HANT"]=["zh-WUU-HANS","zh-HANT","zh-HANS","en"],t}}})}
2,956323:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(null,arguments)}function p(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var m=n(246709),g=n(299498);e.exports=((r=function(e){function t(){return a(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),r=t,i=[{key:"isRepeatable",value:function(){return null!=this.get("proportionalTo")}},{key:"getExpFunction",value:function(){var e=this.get("function",!0);if(e.kind in g.functionCreators)return g.functionCreators[e.kind](e.parameters)}},{key:"save",value:function(){return this.populateI18N(),d(f(t.prototype),"save",this).apply(this,arguments)}},{key:"getStyle",value:function(){return t.styleMapping[this.get("difficulty",!0)]}},{key:"getImageURL",value:function(){return this.get("icon")?"/file/"+this.get("icon"):t.defaultImageURL}},{key:"hasImage",value:function(){return null!=this.get("icon")}},{key:"cacheLockedImage",value:function(){var e=this;if(this.lockedImageURL)return this.lockedImageURL;var t=document.createElement("canvas"),n=new Image;n.src=this.getImageURL();var r=o.Deferred();return n.onload=function(){t.width=n.width,t.height=n.height;var o=t.getContext("2d");o.drawImage(n,0,0);var i=o.getImageData(0,0,t.width,t.height);return i=g.grayscale(i),o.putImageData(i,0,0),e.lockedImageURL=t.toDataURL(),r.resolve(e.lockedImageURL)},r}},{key:"getLockedImageURL",value:function(){return this.lockedImageURL}},{key:"i18nName",value:function(){return g.i18n(this.attributes,"name")}},{key:"i18nDescription",value:function(){return g.i18n(this.attributes,"description")}}],c=[{key:"initClass",value:function(){this.className="Achievement",this.schema=n(802861),this.prototype.urlRoot="/db/achievement",this.prototype.editableByArtisans=!0,this.styleMapping={1:"achievement-wood",2:"achievement-stone",3:"achievement-silver",4:"achievement-gold",5:"achievement-diamond"},this.defaultImageURL="/images/achievements/default.png"}}],i&&s(r.prototype,i),c&&s(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,c}(m)).initClass(),r)},967950:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=d(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(null,arguments)}function l(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}
2function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f,h=n(246709),m=n(54783),g=n(318038),y=n(299498),v=n(694879),b=n(209996);e.exports=((f=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(e){return null==e&&(e={}),this.forceCourseNumbering=e.forceCourseNumbering,u(d(t.prototype),"initialize",this).apply(this,arguments)}},{key:"getLevels",value:function(){return new g(t.getLevels(this.toJSON()))}},{key:"getLevelsByModules",value:function(){var e=this.get("_id"),t=y.freeCampaignIds.includes(e),n=this.getLevels().models,r={};return r[e]={modules:b.buildLevelsListByModule(n,t)},r}},{key:"getNonLadderLevels",value:function(){var e=new g(_.values(this.get("levels")));return e.reset(e.reject((function(e){return e.isLadder()}))),e.comparator="campaignIndex",e.sort(),e}},{key:"getLevelNameMap",value:function(){var e={};return this.getLevels().models.forEach((function(t){e[t.get("original")]=y.i18n(t.attributes,"name")})),e}},{key:"getLevelNumber",value:function(e,n){return null==this.levelNumberMap&&(this.levelNumberMap=t.getLevelNumberMap(this.attributes)),null!=this.levelNumberMap[e]?this.levelNumberMap[e]:n}},{key:"levelIsPractice",value:function(e){return e.attributes&&(e=e.attributes),t.levelIsPractice(e,"course"===this.get("type")||this.forceCourseNumbering)}},{key:"levelIsAssessment",value:function(e){return e.attributes&&(e=e.attributes),t.levelIsAssessment(e)}},{key:"updateI18NCoverage",value:function(){return u(d(t.prototype),"updateI18NCoverage",this).call(this,_.omit(this.attributes,"levels"))}}],a=[{key:"initClass",value:function(){this.className="Campaign",this.schema=m,this.prototype.urlRoot="/db/campaign",this.denormalizedLevelProperties=_.keys(_.omit(m.properties.levels.additionalProperties.properties,["position","rewards","first","nextLevels","campaignPage","releasePhase","moduleNum"])),this.denormalizedCampaignProperties=["name","fullName","i18n","slug","description"],this.nextLevelProperties=["original","name","slug","type","permissions"]}},{key:"getLevels",value:function(e){var t=e.levels;return t=_.sortBy(t,"campaignIndex"),y.isOzaria&&(!me.isAdmin()&&me.isInternal()?t=t.filter((function(e){return"beta"!==e.releasePhase})):me.isAdmin()||me.isInternal()||y.internalCampaignIds.includes(e._id)||(t=t.filter((function(e){return"beta"!==e.releasePhase&&"internalRelease"!==e.releasePhase})))),t}},{key:"fetchIntroContentDataForLevels",value:function(e){var t,n=[];for(var r in e){var o=e[r];for(var i in o.modules)t=o.modules[i],n=n.concat(t.filter((function(e){return e.get("introContent")})))}return v.levels.fetchIntroContent(n).then((function(e){return n.forEach((function(t){return y.addIntroLevelContent(t,e)}))}))}},{key:"getLevelNumberMap",value:function(e,t){for(var n=[],r=0,o=Array.from(this.getLevels(e));r<o.length;r++){var i=o[r];if(i.original){var a=this.levelIsPractice(i,"course"===e.type||t),s=this.levelIsAssessment(i);n.push({key:i.original,practice:a,assessment:s})}}return y.createLevelNumberMap(n)}},{key:"levelIsPractice",value:function(e,t){return t?e.practice:e.practice&&/ [A-Z]$/.test(e.name)}},{key:"levelIsAssessment",value:function(e){return e.assessment}}],r&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(h)).initClass(),f)},609838:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=l(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function m(e,t,n){return t=b(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,g()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(null,arguments)}function v(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}var S=n(246709),C=n(264956),k=n(299498),x=n(209996),E=n(904311),O=E.findNextLevelsBySession,T=E.getLevelsDataByOriginals,A=n(675539).checkIfProjectComplete,P=n(276623),I=n(249449),j=n(523402),L=n(694879),N=n(256205),R=n(455433),D=n(755895),M=n(137159).Z;function F(e,t){return null!=e?t(e):void 0}e.exports=((r=function(e){function t(){return p(this,t),m(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,e),r=t,i=[{key:"initialize",value:function(){return this.listenTo(this,"change:aceConfig",this.capitalizeLanguageName),y(b(t.prototype),"initialize",this).apply(this,arguments)}},{key:"parse",value:function(e){return e._id?e:(this.owner=new I(e.owner),e.data)}},{key:"capitalizeLanguageName",value:function(){var e=F(this.get("aceConfig"),(function(e){return e.language}));return this.capitalLanguage=k.capitalLanguages[e],this.capitalLanguage}},{key:"joinWithCode",value:function(e,t){var n=this,r={url:14===e.length&&3===e.split("-").length?this.urlRoot+"/join-by-activation-code":this.urlRoot+"/~/members",type:"POST",data:{code:e},success:function(){return n.trigger("join:success")},error:function(){return n.trigger("join:error")}};return _.extend(r,t),this.fetch(r)}},{key:"fetchByCode",value:function(e,t){var n={url:_.result(this,"url"),data:{code:e,"with-owner":!0}};return _.extend(n,t),this.fetch(n)}},{key:"getLevelNumber",value:function(e,t,n){if(!this.levelNumberMap){var r;this.levelNumberMap={};var o,i=null===(r=this.get("aceConfig"))||void 0===r?void 0:r.language,a=u(this.get("courses")||[]);try{for(a.s();!(o=a.n()).done;){var s,c=o.value,l=[],d=u(c.levels);try{for(d.s();!(s=d.n()).done;){var p=s.value;if(p.original){if(null!=i&&p.primerLanguage===i)continue;l.push({key:p.original,practice:null!=p.practice&&p.practice,assessment:null!=p.assessment&&p.assessment})}}}catch(e){d.e(e)}finally{d.f()}_.assign(this.levelNumberMap,k.createLevelNumberMap(l,c._id))}}catch(e){a.e(e)}finally{a.f()}}
2return n&&this.levelNumberMap["".concat(n,":").concat(e)]?this.levelNumberMap["".concat(n,":").concat(e)]:null!=this.levelNumberMap[e]?this.levelNumberMap[e]:t}},{key:"removeMember",value:function(e,t){var n={url:_.result(this,"url")+"/members/".concat(e),type:"DELETE"};return _.extend(n,t),this.fetch(n)}},{key:"setStudentPassword",value:function(e,t){var n=this,r=this.id;return new Promise((function(i,a){return o.ajax({url:"/db/classroom/".concat(r,"/members/").concat(e.id,"/reset-password"),method:"POST",data:{password:t},success:function(){return n.trigger("save-password:success"),i()},error:function(e){return n.trigger("save-password:error",e.responseJSON),a(e.responseJSON)}})}))}},{key:"getLevels",value:function(e){null==e&&(e={});var t=n(318038),r=this.get("courses");if(!r)return new t;for(var o=[],i=0,a=Array.from(r);i<a.length;i++){var s=a[i];if(!e.courseID||e.courseID===s._id)if(e.levelsCollection)for(var c=0,u=Array.from(s.levels);c<u.length;c++){var l=u[c],d=e.levelsCollection.findWhere({original:l.original});o.push((null!=d?d.attributes:void 0)||d)}else o.push(s.levels)}var p=new t(_.flatten(o)),f=F(this.get("aceConfig"),(function(e){return e.language}));return f&&p.remove(p.filter((function(e){return e.get("primerLanguage")===f}))),e.withoutLadderLevels&&p.remove(p.filter((function(e){return e.isLadder()}))),e.projectLevels&&p.remove(p.filter((function(e){return"project"!==e.get("shareable")}))),e.assessmentLevels&&p.remove(p.filter((function(e){return!e.get("assessment")}))),p}},{key:"getLevelsByModules",value:function(){for(var e={},t=0,n=Array.from(this.get("courses"));t<n.length;t++){var r=n[t],o=this.getLevels({courseID:r._id}).models,i=o.find((function(e){return e.isCapstone()})),a=r._id===k.courseIDs.CHAPTER_ONE;e[r._id]={modules:x.buildLevelsListByModule(o,a)},i&&(e[r._id].capstone=i)}return e}},{key:"fetchIntroContentDataForLevels",value:function(e){for(var t,n=[],r=0,o=Array.from(this.get("courses"));r<o.length;r++){var i=o[r];for(var a in e[i._id].modules)t=e[i._id].modules[a],n=n.concat(t.filter((function(e){return e.get("introContent")})))}return L.levels.fetchIntroContent(n).then((function(e){return n.forEach((function(t){return k.addIntroLevelContent(t,e)}))}))}},{key:"getLadderLevel",value:function(e){var t=n(318038),r=this.get("courses"),o=_.findWhere(r,{_id:e});if(o)return new t(o.levels).find((function(e){return e.isLadder()}))}},{key:"getProjectLevel",value:function(e){var t=n(318038),r=this.get("courses"),o=_.findWhere(r,{_id:e});if(o){var i=new t(o.levels).filter((function(e){return e.isProject()}));return i[i.length-1]}}},{key:"findNextLevel",value:function(e,t){var n=O(e,t.models);return new j(T(t.models,[n])[0])}},{key:"statsForSessions",value:function(e,t,n){var r,o,i,a,c=this;if(null==n&&(n=void 0),!e)return null;e=e.models||e;for(var u=this.getLadderLevel(t),d=this.getProjectLevel(t),p=this.getLevels({courseID:t,withoutLadderLevels:!0,levelsCollection:n}),f={},h=0,m=Array.from(e);h<m.length;h++){var g,y,v=m[h],b=null!==(g=null===(y=v.get("level"))||void 0===y?void 0:y.original)&&void 0!==g?g:v.get("scenario");f[b]=v}for(var w=-1,S=null,C=0,x=0,E=null,A=null,I=0,L=[],N=0,R={},D=new Set,M=p.models.map((function(e){return e.attributes})),U=0;U<p.models.length;U++){var B,$,H=p.models[U];H.get("practice")||H.get("assessment")||C++,r=!1;var z,q=f[H.get("original")];q?(r=null!=(o=q.get("state").complete)&&o,I+=null!=(z=q.get("playtime"))?z:0,N+=q.countOriginalLinesOfCode(H),E=H,A=this.getLevelNumber(H.get("original"),U+1,t),r?w=U:(S=H,H.get("practice")||H.get("assessment")||x++)):H.get("practice")||H.get("assessment")||x++;var V=k.findParentLevelOriginal(H.attributes,M);L.push({assessment:null!=(B=H.get("assessment"))&&B,practice:null!=($=H.get("practice"))&&$,complete:r,optional:this.isStudentOnOptionalLevel(me.id,t,V),slug:H.get("slug"),original:H.get("original")}),H.get("practice")||H.get("assessment")||D.add(H.get("original")),R[H.get("original")]=r}(null!=(E=null!=S?S:E)?E.get("assessment"):void 0)&&(A="");var G=!1,W=0;if(w>=0){var Y,K,J=p.models[w],Z=null!=(K=F(f[J.get("original")],(function(e){return e.get("playtime")})))?K:0,X=1;k.JUNIOR_COURSE_IDS.includes(t)&&"text-code"===(null===(Y=me.get("aceConfig"))||void 0===Y?void 0:Y.codeFormat)&&(X=2),G=k.needsPractice(Z,J.get("practiceThresholdMinutes")*X)&&!J.get("assessment"),!k.isCodeCombat&&k.orderedCourseIDs.includes(t)||(W=k.findNextLevel(L.map((function(e){var n=k.findParentLevelOriginal(e,L);return s(s({},e),{},{locked:c.isStudentOnLockedLevel(me.id,t,n)})})),w,G))}if(k.OZ_COURSE_IDS.includes(t)){var Q=O(e,p.models,null,this,t);i=new j(T(p.models,[Q])[0])}else-1===w&&(W=k.findNextLevel(L.map((function(e){var n=k.findParentLevelOriginal(e,L);return s(s({},e),{},{locked:c.isStudentOnLockedLevel(me.id,t,n)})})),w,G)),i=p.models[W],0===x&&(i=u),null==i&&(i=_.find(p.models,(function(e){return!F(F(f[e.get("original")],(function(e){return e.get("state")})),(function(e){return e.complete}))})));i&&(a=this.getLevelNumber(i.get("original"),W+1,t));var ee=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array.from(P.hasUserCompletedCourse(R,D)),3),te=(ee[0],ee[1]);return ee[2],{levels:{size:C,left:x,done:0===x,numDone:C-x,pctDone:(100*(C-x)/C).toFixed(1)+"%",lastPlayed:E,lastPlayedNumber:A,next:i,nextNumber:a,first:p.first(),arena:u,project:d},playtime:I,linesOfCode:N,courseComplete:te}}},{key:"statsForAIProjects",value:function(e,t){var n,r={levels:{size:0,left:0,done:!0,numDone:0,pctDone:"0.0%",completedCapstones:0},courseComplete:!1,totalMessages:0},o=null===(n=this.get("courses"))||void 0===n?void 0:n.find((function(e){return e._id===t}));if(!o)return r;var i=o.levels;if(!i||!i.length)return r;var a=e.models.map((function(e){return e.toJSON()})),s=_.groupBy(a,"scenario"),c=i.length,u=c,l=0,d=0,p=function(e){var t=s[e],n=i.find((function(t){return t.original===e}));if(!n)return 1;var r=k.isCapstone(n.mode),o=A(n,t);d+=t.reduce((function(e,t){return e+(t.totalChatMessages||0)}),0),o&&(u-=1,r&&(l+=1))};for(var f in s)p(f);var h=0===u;return{levels:{size:c,left:u,done:0===u,numDone:c-u,pctDone:(100*(c-u)/c).toFixed(1)+"%",completedCapstones:l},totalMessages:d,courseComplete:h}}},{key:"fetchForCourseInstance",value:function(e,t){if(null==t&&(t={}),e){var r=n(864481),o=_.isString(e)?new r({_id:e}):e;return t=_.extend(t,{url:_.result(o,"url")+"/classroom"}),this.fetch(t)}}},{key:"inviteMembers",value:function(e,t,n){return null==n&&(n={}),null==n.data&&(n.data={}),n.data.emails=e,n.data.recaptchaResponseToken=t,n.url=this.url()+"/invite-members",n.type="POST",this.fetch(n)}},{key:"getSortedCourses",value:function(){var e;return k.sortCourses(null!=(e=this.get("courses"))?e:[])}},{key:"isStudentOnLockedCourse",value:function(e,n){return t.isStudentOnLockedCourse(this.attributes,e,n)}},{key:"isStudentOnLockedLevel",value:function(e,n,r){return t.isModifierActiveForStudent(this.attributes,e,n,r,"locked")}},{key:"isStudentOnOptionalLevel",value:function(e,n,r){return t.isModifierActiveForStudent(this.attributes,e,n,r,"optional")}},{key:"isStudentOnSkippedLevel",value:function(e,n,r){var o=t.isModifierActiveForStudent(this.attributes,e,n,r,"locked"),i=t.isModifierActiveForStudent(this.attributes,e,n,r,"optional");return o&&i}},{key:"updateCourses",value:function(e){return null==e&&(e={}),e.url=this.url()+"/update-courses",e.type="POST",this.fetch(e)}},{key:"hasAssessments",value:function(e){if(null==e&&(e={}),e.courseId){var t=_.find(this.get("courses"),(function(t){return t._id===e.courseId}));return!!t&&_.any(t.levels,{assessment:!0})}return _.any(this.get("courses"),(function(e){return _.any(e.levels,{assessment:!0})}))}},{key:"isGoogleClassroom",value:function(){return F(this.get("googleClassroomId"),(function(e){return e.length}))>0}},{key:"hasReadPermission",value:function(e){null==e&&(e={showNoty:!1});var t=e.showNoty||!1,n=D.hasPermission("read",{ownerId:this.get("ownerID"),permissions:this.get("permissions")})||this.hasWritePermission();return!n&&t&¬y({text:"teacher.not_read_permission",type:"error",timeout:4e3,killer:!0}),n}},{key:"hasWritePermission",value:function(e){null==e&&(e={showNoty:!1});var t=e.showNoty||!1,n=D.hasPermission("write",{ownerId:this.get("ownerID"),permissions:this.get("permissions")});return!n&&t&¬y({text:o.i18n.t("teacher.not_write_permission"),type:"error",timeout:4e3,killer:!0}),n}},{key:"isOwner",value:function(){return me.id===this.get("ownerID")||me.isAdmin()}},{key:"getDisplayPermission",value:function(){if(!this.isOwner())return this.hasWritePermission()?D.getDisplayPermission("write"):this.hasReadPermission()?D.getDisplayPermission("read"):void 0}},{key:"revokeStudentLicenses",value:function(){var e=this,t=new R;return Promise.all(t.fetchForClassroom(this,{removeDeleted:!0,data:{project:"firstName,lastName,name,email,products,deleted"}})).then((function(){var n=t.models.filter((function(e){return"enrolled"===e.prepaidStatus()&&"course"===e.prepaidType()}));if(n.length>0)return e.showRevokeConfirm(n).then((function(n){var r;if(n)return!e.isOwner()&&e.hasWritePermission()&&(r=e.id),M.actions.revokeLicenses(null,{members:t.models,sharedClassroomId:r,confirmed:!0,updateUserProducts:!0})}))}))}},{key:"showRevokeConfirm",value:function(e){return new Promise((function(t){return noty({text:e.length+o.i18n.t("teacher.archive_revoke_confirm"),type:"info",layout:"top",buttons:[{addClass:"btn btn-danger",text:o.i18n.t("teacher.archive_without_revoking"),onClick:function(e){return e.close(),t(!1)}},{addClass:"btn btn-primary",text:o.i18n.t("teacher.revoke_and_archive"),onClick:function(e){return e.close(),t(!0)}}]}).$buttons.addClass("style-flat")}))}},{key:"isCodeNinjaClubCamp",value:function(){return t.codeNinjaClassroomTypes().map((function(e){return e.id})).includes(this.get("type"))}}],a=[{key:"initClass",value:function(){this.className="Classroom",this.schema=C,this.prototype.urlRoot="/db/classroom"}},{key:"codeNinjaClassroomTypes",value:function(){return[{id:"club-3-month",name:"Club (3 Month)",disabled:!0},{id:"club-esports",name:"Club Esports"},{id:"club-hackstack",name:"Club Hackstack"},{id:"club-roblox",name:"Club Roblox"},{id:"club-ozaria",name:"Club Ozaria"},{id:"camp-week",name:"Camp (1 Week)",disabled:!0},{id:"camp-esports",name:"Camp Esports"},{id:"camp-junior",name:"Camp Junior"},{id:"annual-plan",name:"Annual",disabled:!0},{id:"annual-plan-cn-coco",name:"Annual CodeCombat & CodeCombat Junior"}]}}
2],i&&f(r.prototype,i),a&&f(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}(S)).initClass(),r),_.assign(r,N.default)},256205:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n(299498);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var i={setStudentLockLevel:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;e.studentLockMap||(e.studentLockMap={}),n||r||i.clearStudentLock(e,t),e.studentLockMap[t]={courseId:n,levelOriginal:r}},initializeLevelLockForStudent:function(e,t,n){e.studentLockMap||(e.studentLockMap={}),e.studentLockMap[t]||(e.studentLockMap[t]={lockedLevels:{}}),e.studentLockMap[t].lockedLevels||(e.studentLockMap[t].lockedLevels={}),e.studentLockMap[t].lockedScenarioLevels||(e.studentLockMap[t].lockedScenarioLevels={}),e.studentLockMap[t].optionalLevels||(e.studentLockMap[t].optionalLevels={})},setModifierForStudent:function(e){var t=e.classroom,n=e.studentId,r=e.courseId,o=e.levels,a=void 0===o?[]:o,s=e.date,c=void 0===s?null:s,u=e.modifier,l=e.value;i.initializeLevelLockForStudent(t,n,r),a.forEach((function(e){t.studentLockMap[n]["".concat(u,"Levels")][e]=c||l}))},isStudentOnLockedCourse:function(e,t,n){var o,i,a=null===(o=e.studentLockMap)||void 0===o||null===(i=o[t])||void 0===i?void 0:i.courseId;if(!a)return!1;var s=r.orderedCourseIDs.indexOf(a);return r.orderedCourseIDs.indexOf(n)>=s},isModifierActiveForStudent:function(e,t,n,r,o){var a,s,c,u=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null;if(!r)return!1;var l=null==e||null===(a=e.studentLockMap)||void 0===a||null===(s=a[t])||void 0===s||null===(c=s["".concat(o,"Levels")])||void 0===c?void 0:c[r];return void 0===l&&"locked"===o?i.isStudentOnLockedLevelLegacy(e,t,n,r):u?!(!l||new Date(l).toString()!==u.toString()):!0===l||new Date(l)>new Date},isStudentOnLockedLevelLegacy:function(e,t,n,r){var a,s,c,u,l=null==e||null===(a=e.studentLockMap)||void 0===a||null===(s=a[t])||void 0===s?void 0:s.courseId;if(!l)return!1;if(l!==n)return i.isStudentOnLockedCourse(e,t,n);var d=null===(c=e.studentLockMap)||void 0===c||null===(u=c[t])||void 0===u?void 0:u.levelOriginal;if(!d)return!0;if(r===d)return!0;var p,f=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}(e.courses.find((function(e){return e._id===n})).levels.map((function(e){return e.original})));try{for(f.s();!(p=f.n()).done;){var h=p.value;if(h===r)return!1;if(h===d)return!0}}catch(e){f.e(e)}finally{f.f()}return!1},getStudentLockDate:function(e,t,n){var r,o,i,a=null===(r=e.studentLockMap)||void 0===r||null===(o=r[t])||void 0===o||null===(i=o.lockedLevels)||void 0===i?void 0:i[n];return a&&"string"==typeof a?new Date(a):null}};t.default=i},246709:(e,t,n)=>{"use strict";var r=n(619755),o=n(665420);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,l(r.key),r)}}function u(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function d(e,t,n){return t=m(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=h(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},f.apply(null,arguments)}function h(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}
2function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var v=n(969278),b=n(299498),w=n(504015),S=function(e){function t(e,n){var r;return s(this,t),r=d(this,t,arguments),_.isObject(e)&&"undefined"in e&&(console.error("Unsetting `undefined` property key during construction of ".concat(r.constructor.className," model with value ").concat(e.undefined)),delete e.undefined),r}return g(t,Backbone.Model),u(t,[{key:"initialize",value:function(e,n){if(f(m(t.prototype),"initialize",this).apply(this,arguments),null==n&&(n={}),this.setProjection(n.project),this.constructor.className||console.error("".concat(this," needs a className set.")),this.on("sync",this.onLoaded,this),this.on("error",this.onError,this),this.on("add",this.onLoaded,this),this.saveBackup=_.debounce(this.saveBackup,500),this.usesVersions=null!=C(C(this.schema(),(function(e){return e.properties})),(function(e){return e.version})),null!=w.application?w.application.testing:void 0)return this.fakeRequests=[],this.on("request",(function(){return this.fakeRequests.push(jasmine.Ajax.requests.mostRecent())}))}},{key:"created",value:function(){return new Date(1e3*parseInt(this.id.substring(0,8),16))}},{key:"backupKey",value:function(){return this.usesVersions,this.id}},{key:"setProjection",value:function(e){if(e!==this.project){var t=this.getURL();/project=/.test(t)||(t+="&project="),/\?/.test(t)||(t=t.replace("&","?")),t=t.replace(/project=[^&]*/,"project=".concat((null!=e?e.join(","):void 0)||"")),(null!=e?e.length:void 0)||(t=t.replace(/[&?]project=&/,"&")),(null!=e?e.length:void 0)||(t=t.replace(/[&?]project=$/,"")),this.setURL(t),this.project=e}}},{key:"type",value:function(){return this.constructor.className}},{key:"clone",value:function(e){null==e&&(e=!0);var n=f(m(t.prototype),"clone",this).call(this);if(n.set(r.extend(!0,{},e||!this._revertAttributes?this.attributes:this._revertAttributes)),this._revertAttributes&&!e)for(var o=0,i=Array.from(_.difference(_.keys(n.attributes),_.keys(this._revertAttributes)));o<i.length;o++){var a=i[o];n.unset(a)}return n}},{key:"onError",value:function(e,t){if(this.loading=!1,this.jqxhr=null,402===t.status)return _.contains(t.responseText,"must be enrolled")?Backbone.Mediator.publish("level:license-required",{}):_.contains(t.responseText,"be in a course")?Backbone.Mediator.publish("level:course-membership-required",{}):Backbone.Mediator.publish("level:subscription-required",{})}},{key:"onLoaded",value:function(){return this.loaded=!0,this.loading=!1,this.jqxhr=null,this.loadFromBackup()}},{key:"getCreationDate",value:function(){return new Date(1e3*parseInt(this.id.slice(0,8),16))}},{key:"getNormalizedURL",value:function(){return"".concat(this.urlRoot,"/").concat(this.id)}},{key:"getTranslatedName",value:function(){return b.i18n(this.attributes,"displayName")||b.i18n(this.attributes,"name")}},{key:"get",value:function(e,n){return null==n&&(n=!1),n?(void 0===this.attributesWithDefaults&&this.buildAttributesWithDefaults(),this.attributesWithDefaults[e]):f(m(t.prototype),"get",this).call(this,e)}},{key:"set",value:function(e,n){"thangs"!==e&&delete this.attributesWithDefaults;var r=this.loading||!this.loaded;if(r||this._revertAttributes||this.project||(null!=n?n.fromMerge:void 0)||this.markToRevert(),!_.isString(e)||"undefined"!==e&&void 0!==e){_.isObject(e)&&"undefined"in e&&(console.error("Blocking setting of `undefined` property key to ".concat(this.constructor.className," model with value ").concat(e.undefined)),delete e.undefined);var o=f(m(t.prototype),"set",this).call(this,e,n);return this.saveBackups&&!r&&this.saveBackup(),o}console.error("Blocking setting of ".concat(e," property to ").concat(this.constructor.className," model with value ").concat(n))}},{key:"buildAttributesWithDefaults",value:function(){var e=new Date,t=r.extend(!0,{},this.attributes),o=tv4.freshApi();o.addSchema("#",this.schema()),o.addSchema("metaschema",n(988214)),TreemaUtils.populateDefaults(t,this.schema(),o),this.attributesWithDefaults=t;var i=new Date-e;if(i>
210)return console.debug("Populated defaults for ".concat(this.type()).concat(this.attributes.name?" "+this.attributes.name:""," in ").concat(i,"ms"))}},{key:"loadFromBackup",value:function(){if(this.saveBackups){var e=v.load(this.backupKey());return e?(this.set(e,{silent:!0}),t.backedUp[this.backupKey()]=this,this):void 0}}},{key:"saveBackup",value:function(){return this.saveBackupNow()}},{key:"saveBackupNow",value:function(){return v.save(this.backupKey(),this.attributes),t.backedUp[this.backupKey()]=this,this}},{key:"schema",value:function(){return this.constructor.schema}},{key:"getValidationErrors",value:function(){var e=_.pick(this.attributes,(function(e){return void 0!==e})),t=tv4.validateMultiple(e,this.constructor.schema||{}).errors;if(null!=t?t.length:void 0)return t}},{key:"validate",value:function(){var e=this.getValidationErrors();if(null!=e?e.length:void 0){if(!(null!=o?o.testing:void 0)){console.debug("Validation failed for ".concat(this.constructor.className,": '").concat(this.get("name")||this,"'."));for(var t=0,n=Array.from(e);t<n.length;t++){var r=n[t];console.debug("\t",r.dataPath,":",r.message)}"function"==typeof console.trace&&console.trace("cm err",e)}return e}}},{key:"save",value:function(e,n){var o=this;null==n&&(n={});var i=_.cloneDeep(n);null==n.headers&&(n.headers={}),n.headers["X-Current-Path"]=null!=(null!=document.location?document.location.pathname:void 0)?null!=document.location?document.location.pathname:void 0:"unknown";var a=n.success,s=n.error;return n.success=function(e,r){o.retries=0,o.trigger("save:success",o),a&&a(o,r),o._revertAttributes&&o.markToRevert(),o.clearBackup(),t.pollAchievements(),n.success=n.error=null},n.error=function(t,a){var c,u;if(0===a.status){var l;if(null==o.retries&&(o.retries=0),o.retries+=1,o.retries>20)return l="Your computer or our servers appear to be offline. Please try refreshing.",noty({text:l,layout:"center",type:"error",killer:!0}),void(s&&s(o,a));l=r.i18n.t("loading_error.connection_failure",{defaultValue:"Connection failed."});try{noty({text:l,layout:"center",type:"error",killer:!0,timeout:3e3})}catch(e){u=e,console.warn("Couldn't even show noty error for",s,"because",u)}return _.delay((function(){return o.save(e,i)}),3e3)}if(s&&s(o,a),o.notyErrors){var d="Error saving ".concat(null!=(c=o.get("name"))?c:o.type());if(console.log("going to log an error message"),console.warn(d,a.responseJSON),!("undefined"!=typeof webkit&&null!==webkit?webkit.messageHandlers:void 0))try{noty({text:"".concat(d,": ").concat(a.status," ").concat(a.statusText,"\n").concat(a.responseText),layout:"topCenter",type:"error",killer:!1,timeout:1e4})}catch(e){u=e,console.warn("Couldn't even show noty error for",s,"because",u)}n.success=n.error=null}},this.trigger("save",this),f(m(t.prototype),"save",this).call(this,e,n)}},{key:"patch",value:function(e){if(!this._revertAttributes)return!1;null==e&&(e={}),e.patch=!0,e.type="PUT";for(var t={_id:this.id},n=[],r=0,o=Array.from(_.keys(this.attributes));r<o.length;r++){var i=o[r];_.isEqual(this.attributes[i],this._revertAttributes[i])||(t[i]=this.attributes[i],n.push(i))}return n.length?this.save(t,e):void 0}},{key:"fetch",value:function(e){if(e||(e={}),null==e.data&&(e.data={}),this.project&&(e.data.project=this.project.join(",")),e.callOz){var n=e.url||this.getURL();e.url=b.getProductUrl("OZ",n)}return this.jqxhr=f(m(t.prototype),"fetch",this).call(this,e),this.loading=!0,this.jqxhr}},{key:"fetchAsPromise",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.fetch(t);return new Promise((function(t,r){n.then((function(){return t(e)}),r)}))}},{key:"markToRevert",value:function(){var e=this;if("ThangType"===this.type())return this._revertAttributes=_.clone(this.attributes),function(){var t=[];for(var n in e.attributes){var r=e.attributes[n];r&&"raw"!==n&&t.push(e._revertAttributes[n]=_.cloneDeep(r))}return t}();this._revertAttributes=r.extend(!0,{},this.attributes)}},{key:"revert",value:function(){return this.clear({silent:!0}),this._revertAttributes&&this.set(this._revertAttributes,{silent:!0}),this.clearBackup()}},{key:"clearBackup",value:function(){return v.remove(this.backupKey())}},{key:"hasLocalChanges",value:function(){return this._revertAttributes&&!_.isEqual(this.attributes,this._revertAttributes)}},{key:"cloneNewMinorVersion",value:function(){var e=_.clone(this.attributes);return new this.constructor(e)}},{key:"cloneNewMajorVersion",value:function(){var e=this.cloneNewMinorVersion();return e.unset("version"),e}},{key:"isPublished",value:function(){for(var e,t=0,n=Array.from(null!=(e=this.get("permissions",!0))?e:[]);t<n.length;t++){var r=n[t];if("public"===r.target&&"read"===r.access)return!0}return!1}},{key:"publish",value:function(){if(this.isPublished())throw new Error("Can't publish what's already-published. Can't kill what's already dead.");return this.set("permissions",this.get("permissions",!0).concat({access:"read",target:"public"}))}},{key:"hasReadAccess",value:function(e){var t;if(null==e&&(e=me),e.isAdmin())return!0;
2if(e.isArtisan()&&this.editableByArtisans)return!0;for(var n=0,r=Array.from(null!=(t=this.get("permissions",!0))?t:[]);n<r.length;n++){var o=r[n];if(("public"===o.target||e.get("_id")===o.target)&&["owner","read"].includes(o.access))return!0}return!1}},{key:"hasWriteAccess",value:function(e){var t;if(null==e&&(e=me),e.isAdmin())return!0;if(e.isArtisan()&&this.editableByArtisans)return!0;for(var n=0,r=Array.from(null!=(t=this.get("permissions",!0))?t:[]);n<r.length;n++){var o=r[n];if(("public"===o.target||e.get("_id")===o.target)&&["owner","write"].includes(o.access))return!0}return!1}},{key:"getOwner",value:function(){var e=_.find(this.get("permissions",!0),{access:"owner"});return null!=e?e.target:void 0}},{key:"watch",value:function(e){return null==e&&(e=!0),r.ajax("".concat(this.urlRoot,"/").concat(this.id,"/watch"),{type:"PUT",data:{on:e}}),this.watching=function(){return e},this.watching}},{key:"watching",value:function(){return Array.from(this.get("watchers")||[]).includes(me.id)}},{key:"populateI18N",value:function(e,t,n){var o;null==n&&(n="");var i=0;null==e&&(e=r.extend(!0,{},this.attributes)),null==t&&(t=this.schema()||{}),t.oneOf&&(t=_.find(t.oneOf,{type:"object"})||t);var a=!1;if((null!=t.properties?t.properties.i18n:void 0)&&_.isPlainObject(e)&&null==e.i18n&&(e.i18n={"-":{"-":"-"}},i+=1,a=!0),_.isPlainObject(e))for(var s in e){o=e[s];var c=0,u=null!=t.properties?t.properties[s]:void 0;!u&&_.isObject(t.additionalProperties)&&(u=t.additionalProperties),u&&(c=this.populateI18N(o,u,n+"/"+s)),c&&!n&&this.set(s,o),i+=c}if(t.items&&_.isArray(e))for(var l=0;l<e.length;l++)o=e[l],i+=this.populateI18N(o,t.items,n+"/"+l);return a&&!n&&this.set("i18n",e.i18n),n||this.updateI18NCoverage(),i}},{key:"setURL",value:function(e){var t;return this.url=(t=e,function(){return t}),this}},{key:"getURL",value:function(){return _.isString(this.url)?this.url:this.url()}},{key:"updateI18NCoverage",value:function(e){var t,n,r=[],o={};if(null==e&&(e=this.attributes),TreemaUtils.walk(e,this.schema(),null,(function(e,t,n){var i;if((null!=t?t.i18n:void 0)&&(o[e]=t),_.string.endsWith(e,"i18n")){var a=t,s=e.slice(0,-5),c=o[s],u=n.props||[];if(!(u=function(){for(var e=[],t=0,n=Array.from(u);t<n.length;t++)i=n[t],c[i]&&!["sound","soundTriggers"].includes(i)&&e.push(i);return e}()).length)return;if("additionalProperties"in a)return;var l=_.filter(_.keys(a),(function(e){var t=a[e];return t&&_.all(function(){for(var e=[],n=0,r=Array.from(u);n<r.length;n++)i=r[n],e.push(t[i]);return e}())}));return r.push(l)}})),r.length){var i=(t=_).intersection.apply(t,function(e){if(Array.isArray(e))return a(e)}(n=Array.from(r||[]))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return this.set("i18nCoverage",i)}}},{key:"deleteI18NCoverage",value:function(e){return null==e&&(e={}),e.url=this.url()+"/i18n-coverage",e.type="DELETE",r.ajax(e)}},{key:"saveNewMinorVersion",value:function(e,t){return null==t&&(t={}),t.url=this.url()+"/new-version",t.type="POST",this.save(e,t)}},{key:"saveNewMajorVersion",value:function(e,t){return null==t&&(t={}),e=e||_.omit(this.attributes,"version"),t.url=this.url()+"/new-version",t.type="POST",t.patch=!0,this.save(e,t)}},{key:"fetchPatchesWithStatus",value:function(e,t){null==e&&(e="pending"),null==t&&(t={});var r=new(n(635420));return null==t.data&&(t.data={}),t.data.status=e,t.url=this.urlRoot+"/"+(this.get("original")||this.id)+"/patches",r.fetch(t),r}},{key:"stringify",value:function(){return JSON.stringify(this.toJSON())}},{key:"wait",value:function(e){var t=this;return new Promise((function(n){return t.once(e,n)}))}}
2,{key:"fetchLatestVersion",value:function(e,t){return null==t&&(t={}),t.url=_.result(this,"urlRoot")+"/"+e+"/version",this.fetch(t)}}],[{key:"initClass",value:function(){this.prototype.idAttribute="_id",this.prototype.loaded=!1,this.prototype.loading=!1,this.prototype.saveBackups=!1,this.prototype.notyErrors=!0,this.schema=null,this.prototype.attributesWithDefaults=void 0,this.backedUp={},t.pollAchievements=_.debounce(t.pollAchievements,3e3)}},{key:"isObjectID",value:function(e){return 24===e.length&&24===C(e.match(/[a-f0-9]/gi),(function(e){return e.length}))}},{key:"pollAchievements",value:function(){if(!b.isOzaria&&!(null!=o?o.testing:void 0)){var e=n(566978),t=n(568811),r=function(e){function r(){return s(this,r),d(this,r,arguments)}return g(r,e),u(r,[{key:"initialize",value:function(e){null==e&&(e=n(28045).me),this.url="/db/user/".concat(e.id,"/achievements?notified=false")}}],[{key:"initClass",value:function(){this.prototype.model=t}}])}(e);return r.initClass(),(new r).fetch({success:function(e){if(!_.isEmpty(e.models))return me.fetch({cache:!1,success:function(){return Backbone.Mediator.publish("achievements:new",{earnedAchievements:e})}})},error:function(){return console.error("Miserably failed to fetch unnotified achievements",arguments)},cache:!1})}}}])}();function C(e,t){return null!=e?t(e):void 0}S.initClass(),e.exports=S},573131:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var d,p=n(246709),f=n(736638),h=n(299498);e.exports=((d=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,a=[{key:"initClass",value:function(){this.className="Course",this.schema=f,this.prototype.urlRoot="/db/course",this.SALES_CALL_ACCESS_LEVEL="sales-call"}}],(r=[{key:"fetchForCourseInstance",value:function(e,t){var n={url:"/db/course_instance/".concat(e,"/course")};return _.extend(n,t),this.fetch(n)}},{key:"acronym",value:function(){return h.courseAcronyms[this.get("_id")]}},{key:"isCh1Course",value:function(){return this.get("_id")===h.courseIDs.CHAPTER_ONE}},{key:"isHackStackCourse",value:function(){return h.HACKSTACK_COURSE_IDS.includes(this.get("_id"))}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(p)).initClass(),d)},864481:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var d,p=n(246709),f=n(344342);e.exports=((d=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,a=[{key:"initClass",value:function(){this.className="CourseInstance",this.schema=f,this.prototype.urlRoot="/db/course_instance"}}],(r=[{key:"addMember",value:function(e,t){var n={method:"POST",url:_.result(this,"url")+"/members",data:{userID:e}};_.extend(n,t);var r=this.fetch(n);return e===me.id&&(me.get("courseInstances")||me.set("courseInstances",[]),me.get("courseInstances").push(this.id)),r}},{key:"addMembers",value:function(e,t){var n=this,r={method:"POST",url:_.result(this,"url")+"/members",data:{userIDs:e},success:function(){return n.trigger("add-members",{userIDs:e})}};_.extend(r,t);var o=this.fetch(r);
2return Array.from(e).includes(me.id)&&(me.get("courseInstances")||me.set("courseInstances",[]),me.get("courseInstances").push(this.id)),o}},{key:"removeMember",value:function(e,t){var n={url:_.result(this,"url")+"/members",type:"DELETE",data:{userID:e}};_.extend(n,t);var r=this.fetch(n);return e===me.id&&me.set("courseInstances",_.without(me.get("courseInstances"),this.id)),r}},{key:"removeMembers",value:function(e,t){var n={url:_.result(this,"url")+"/members",type:"DELETE",data:{userIDs:e}};_.extend(n,t);var r=this.fetch(n);return Array.from(e).includes(me.id)&&me.set("courseInstances",_.without(me.get("courseInstances"),this.id)),r}},{key:"firstLevelURL",value:function(){return"/play/level/dungeons-of-kithgard?course=".concat(this.get("courseID"),"&course-instance=").concat(this.id)}},{key:"hasMember",value:function(e,t){var n=e.id||e;return Array.from(this.get("members")||[]).includes(n)}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(p)).initClass(),d)},568811:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=d(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(null,arguments)}function l(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f,h=n(246709);e.exports=((f=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,a=[{key:"save",value:function(){return null===this.get("earnedRewards")&&this.unset("earnedRewards"),u(d(t.prototype),"save",this).apply(this,arguments)}}],c=[{key:"initClass",value:function(){this.className="EarnedAchievement",this.schema=n(364891),this.prototype.urlRoot="/db/earned_achievement"}}],a&&i(r.prototype,a),c&&i(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a,c}(h)).initClass(),f)}
2,523402:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||d(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function g(e,t,n){return t=v(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var w=n(246709),S=n(828193),C=n(82103),k=n(967734),x=n(579483),E=n(299498),O=n(284358),T=n(196363);function A(e,t){return null!=e?t(e):void 0}e.exports=((r=function(e){function t(){return f(this,t),g(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(t,e),r=t,i=[{key:"serialize",value:function(e){var t,n,r,i;i=e.supermodel,r=e.session,n=e.otherSession,this.headless=e.headless,this.sessionless=e.sessionless,t=e.cached,this.isEditorPreview=e.isEditorPreview,null==t&&(t=!1);var a=this.denormalize(i,r,n);a.levelComponents=t?this.getCachedLevelComponents(i):o.extend(!0,[],Array.from(i.getModels(S)).map((function(e){return e.attributes}))),this.sortThangComponents(a.thangs,a.levelComponents,"Level Thang"),this.fillInDefaultComponentConfiguration(a.thangs,a.levelComponents);var s=o.extend(!0,[],Array.from(i.getModels(C)).map((function(e){return e.attributes})));a.systems=this.sortSystems(a.systems,s),this.fillInDefaultSystemConfiguration(a.systems);for(var c={},u=0,l=Array.from(null!=a.thangs?a.thangs:[]);u<l.length;u++)c[l[u].thangType]=!0;var d=[A(null!=r?r.get("heroConfig"):void 0,(function(e){return e.thangType})),A(null!=n?n.get("heroConfig"):void 0,(function(e){return e.thangType}))];this.isType("ladder")&&(d=[]),a.thangTypes=[];for(var p=0,f=Array.from(i.getModels("ThangType"));p<f.length;p++){var h=f[p];(c[h.get("original")]||"Hero"!==h.get("kind")&&"Junior Hero"!==h.get("kind")&&null!=h.get("kind")&&h.get("components")&&!h.notInLevel||("Hero"===h.get("kind")||"Junior Hero"===h.get("kind"))&&(this.isType("course","course-ladder","game-dev")||Array.from(d).includes(h.get("original"))))&&a.thangTypes.push({original:h.get("original"),name:h.get("name"),components:o.extend(!0,[],h.get("components")),kind:h.get("kind")})}return this.sortThangComponents(a.thangTypes,a.levelComponents,"ThangType"),this.fillInDefaultComponentConfiguration(a.thangTypes,a.levelComponents),a}},{key:"getCachedLevelComponents",value:function(e){null==this.cachedLevelComponents&&(this.cachedLevelComponents={});for(var t=e.getModels(S),n=[],r=0,i=Array.from(t);r<i.length;r++){var a=i[r];a.hasLocalChanges()?n.push(o.extend(!0,{},a.attributes)):(null==this.cachedLevelComponents[a.id]&&(this.cachedLevelComponents[a.id]=this.cachedLevelComponents[a.id]=o.extend(!0,{},a.attributes)),n.push(this.cachedLevelComponents[a.id]))}return n}},{key:"denormalize",value:function(e,t,n){var r,i=o.extend(!0,{},this.attributes);if(i.thangs&&(E.isCodeCombat||this.isType("hero","hero-ladder","hero-coop","course","course-ladder","game-dev","web-dev")))for(var a=function(){for(var t=[],n=0,o=Array.from(e.getModels("ThangType"));n<o.length;n++)(r=o[n]).get("components")&&t.push(r);return t}(),s=_.indexBy(a,(function(e){return e.get("original")})),c=0,u=Array.from(i.thangs);c<u.length;c++){var l=u[c];this.denormalizeThang(l,e,t,n,s)}return i}},{key:"denormalizeThang",value:function(e,t,n,r,i){var a,s,c,d,p,f,h;if(null==e.components&&(e.components=[]),E.isCodeCombat&&(/Hero Placeholder/.test(e.id)&&(c=this.usesSessionHeroInventory()),c&&r&&("Hero Placeholder 1"===e.id&&"humans"===n.get("team")||"Hero Placeholder"===e.id&&"ogres"===n.get("team"))&&(n=r),c)){p={},f={};var m=i[e.thangType];if(m){for(var g=0,y=Array.from(m.get("components"));g<y.length;g++){var v=y[g];p[v.original]=v}for(var b=0,w=Array.from(e.components);b<w.length;b++)p[(h=w[b]).original]=h;e.components=[];var C=A(null!=n?n.get("heroConfig"):void 0,(function(e){return e}))||{},k=E.isJuniorLevel(this)?C.juniorThangType:void 0;if(k&&!me.mayUseJuniorPet(k)&&(k=void 0),s=C.thangType,k)e.thangType=k;else if(s){var O;(O=E.isJuniorLevel(this)?x.juniorHeroReplacements[_.invert(x.heroes)[s]]:_.invert(x.juniorHeroReplacements)[_.invert(x.heroes)[s]])&&(s=x.heroes[O]),e.thangType=s}}else console.error("Couldn't find placeholder ThangType for the hero!"),c=!1}for(var T,P=i[e.thangType],I={},j=0,L=Array.from(e.components);j<L.length;j++)I[(h=L[j]).original]=h;for(var N=0,R=Array.from((null!=P?P.get("components"):void 0)||[]);N<R.length;N++){var D=R[N],M=void 0,F=I[D.original];if(F?(M=o.extend(!0,{},D.config),F.config=_.merge(M,F.config)):(F=o.extend(!0,{},D),e.components.push(F)),E.isCodeCombat&&c&&(d=p[D.original])){f[d.original]=!0;var U=d.config||{};if(null==F.config&&(F.config={}),a=F.config,U.pos)null==a.pos&&(a.pos={}),a.pos.x=U.pos.x,a.pos.y=U.pos.y,a.rotation=U.rotation;else if(U.team)a.team=U.team;else if(U.significantProperty)a.significantProperty=U.significantProperty;else if(U.programmableMethods){var B;M=o.extend(!0,{},U);var $=(null===(B=a)||void 0===B?void 0:B.programmableProperties)||[];M.programmableProperties=_.union($,M.programmableProperties||[]),F.config=a=_.merge(M,a)}else U.extraHUDProperties?a.extraHUDProperties=_.union(null!=a.extraHUDProperties?a.extraHUDProperties:[],U.extraHUDProperties):U.voiceRange?(a.voiceRange=U.voiceRange,a.cooldown=U.cooldown):U.inventory&&(T=U)}}if(E.isCodeCombat&&c){var H=_.find(e.components,{original:S.EquipsID});if(H){var z,q,V=(null===(z=n)||void 0===z||null===(q=z.get("heroConfig"))||void 0===q?void 0:q.inventory)||{};if(null==H.config&&(H.config={}),!this.headless&&!this.isEditorPreview)for(var G=0,W=Object.entries((null===(Y=T)||void 0===Y?void 0:Y.inventory)||{});G<W.length;G++){var Y,K,J,Z=l(W[G],2),X=Z[0],Q=Z[1];if(Q){var ee=i[Q];if(ee){var te,ne=[],re=u(ee.get("components")||[]);try{for(re.s();!(te=re.n()).done;){var oe,ie=te.value;ne=ne.concat((null===(oe=ie.config)||void 0===oe?void 0:oe.programmableProperties)||[])}}catch(e){re.e(e)}finally{re.f()}var ae=V[X],se=[],ce=void 0;
2if(ae&&(ce=i[ae])){var ue,le=u(ce.get("components")||[]);try{for(le.s();!(ue=le.n()).done;){var de,pe=ue.value;se=se.concat((null===(de=pe.config)||void 0===de?void 0:de.programmableProperties)||[])}}catch(e){le.e(e)}finally{le.f()}}var fe,he=this.get("requiredProperties")||[],ge=_.intersection(he,ne),ye=null===(K=this.get("requiredGear"))||void 0===K?void 0:K[X],ve=null===(J=this.get("restrictedGear"))||void 0===J?void 0:J[X],be=_.intersection(se,ge);if(0===be.length&&be.length<ge.length)console.log("Auto-equipping default item ".concat(Q," ").concat(ee.get("name")," in slot ").concat(X," to get required properties ").concat(ge," out of requiredProperties ").concat(he,", because player item ").concat(ae," ").concat(null===(fe=ce)||void 0===fe?void 0:fe.get("name")," only has properties ").concat(se)),V[X]=Q;else if(null!=ye&&ye.length&&!ae)console.log("Auto-equipping default item ".concat(Q," in slot ").concat(X," because player has no item equipped there and a required item is there")),V[X]=Q;else if(null!=ve&&ve.length&&ve.includes(ae)){var _e;console.log("Auto-equipping default item ".concat(Q," ").concat(ee.get("name")," in slot ").concat(X," because player item ").concat(ae," ").concat(null===(_e=ce)||void 0===_e?void 0:_e.get("name")," is in restricted list")),V[X]=Q}}}}V&&(H.config.inventory=o.extend(!0,{},V))}for(var we in p)d=p[we],f[we]||e.components.push(d)}if(E.showOzaria())/Hero Placeholder/.test(e.id)&&(s=!this.isType("course")||this.headless||this.sessionless?A(null!=n?n.get("heroConfig"):void 0,(function(e){return e.thangType})):A(me.get("ozariaUserOptions"),(function(e){return e.isometricThangTypeOriginal})))&&(e.thangType=s);else if(/Hero Placeholder/.test(e.id)&&this.usesSessionHeroThangType()&&!this.usesSessionHeroInventory()&&!this.headless&&!this.isEditorPreview){var Se,Ce,ke,xe;!(s=(null===(Se=n.get("heroConfig"))||void 0===Se?void 0:Se.thangType)||(null===(Ce=me.get("heroConfig"))||void 0===Ce?void 0:Ce.thangType))&&this.isType("course")&&(s=x.heroes.captain),s||(s=x.heroes.knight);var Ee=E.isJuniorLevel(this)?(null===(ke=n.get("heroConfig"))||void 0===ke?void 0:ke.juniorThangType)||(null===(xe=me.get("heroConfig"))||void 0===xe?void 0:xe.juniorThangType):void 0;if(Ee&&!me.mayUseJuniorPet(Ee)&&(Ee=void 0),Ee)e.thangType=Ee;else if(s){var Oe;(Oe=E.isJuniorLevel(this)?x.juniorHeroReplacements[_.invert(x.heroes)[s]]:_.invert(x.juniorHeroReplacements)[_.invert(x.heroes)[s]])&&(s=x.heroes[Oe]),e.thangType=s}}}},{key:"sortSystems",value:function(e,t){for(var n=l(Array.from([[],{}]),2),r=n[0],i=n[1],a=function n(a){if(!(a.original in i)){var s=_.find(t,{original:a.original});if(!s)return console.error("Couldn't find model for original",a.original,"from",t);for(var c=0,u=Array.from(s.dependencies||[]);c<u.length;c++){var l=u[c];n(_.find(e,{original:l.original}))}r.push({model:s,config:o.extend(!0,{},a.config)}),i[a.original]=!0}},s=0,c=Array.from(null!=e?e:[]);s<c.length;s++)a(c[s]);return r}},{key:"sortThangComponents",value:function(e,t,n){var r=_.indexBy(t,"original"),o=_.find(t,{name:"Allied"}),i=_.find(t,{name:"Acts"});return function(){for(var a=[],s=function(){for(var e=u[c],s=_.indexBy(e.components,"original"),l=[],d=function a(c,u){var d;if(!Array.from(l).includes(c)){var p=r[c.original];if(p||console.error(e.id||e.name,"couldn't find lc for",c,"of",t),p&&(!u||!Array.from(u).includes(p.name))){if("Plans"===p.name)for(var f=0,h=Array.from(e.components);f<h.length;f++)a(d=h[f],[p.name,"Programmable"]);else if("Programmable"===p.name)for(var m=0,g=Array.from(e.components);m<g.length;m++)a(d=g[m],[p.name]);else{for(var y=0,v=Array.from(p.dependencies||[]);y<v.length;y++){var b=v[y];if(!(d=s[b.original])){var _=r[b.original];_=(null!=_?_.name:void 0)||b.original,console.error(n,e.id||e.name,"does not have dependent Component",_,"from",p.name)}d&&a(d)}if("Collides"===p.name&&o){var w=s[o.original];w&&a(w)}if("Moves"===p.name&&i){var S=s[i.original];S&&a(S)}}return l.push(c)}}},p=0,f=Array.from(e.components);p<f.length;p++)d(f[p]);a.push(e.components=l)},c=0,u=Array.from(null!=e?e:[]);c<u.length;c++)s();return a}()}},{key:"fillInDefaultComponentConfiguration",value:function(e,t){var n=this;null==this.defaultComponentConfigurations&&(this.defaultComponentConfigurations={});var r=0;return Array.from(null!=e?e:[]).map((function(e){return function(){for(var i=[],a=function(){var e,a=c[s],u=_.find(n.defaultComponentConfigurations[a.original],(function(e){return _.isEqual(a,e.originalComponent)})),l=a.original===S.PhysicalID;if(!l&&u)return a.config=u.defaultedConfig,0;var d=_.find(t,{original:a.original});if(!d)return 0;l||(e=o.extend(!0,{},a)),null==a.config&&(a.config={}),TreemaUtils.populateDefaults(a.config,null!=d.configSchema?d.configSchema:{},tv4),n.lastType="component",n.lastOriginal=a.original,l||(null==n.defaultComponentConfigurations[a.original]&&(n.defaultComponentConfigurations[a.original]=[]),n.defaultComponentConfigurations[a.original].push({originalComponent:e,defaultedConfig:a.config})),i.push(++r)},s=0,c=Array.from(e.components||[]);s<c.length;s++)a();return i}()}))}},{key:"fillInDefaultSystemConfiguration",value:function(e){var t=this;return function(){for(var n=[],r=0,o=Array.from(null!=e?e:[]);r<o.length;r++){var i=o[r];null==i.config&&(i.config={}),TreemaUtils.populateDefaults(i.config,i.model.configSchema||{},tv4),t.lastType="system",n.push(t.lastOriginal=i.model.name)}return n}()}},{key:"dimensions",value:function(){for(var e=0,t=0,n=0,r=Array.from(this.get("thangs")||[]);n<r.length;n++)for(var o=r[n],i=0,a=Array.from(o.components);i<a.length;i++){var s=a[i].config;null!=s&&(null!=s.width&&s.width>e&&(e=s.width),null!=s.height&&s.height>t&&(t=s.height))}return{width:e,height:t}}},{key:"isLadder",value:function(){return t.isLadder(this.attributes)}},{key:"isProject",value:function(){return t.isProject(this.attributes)}},{key:"isType",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Array.from(t).includes(this.get("type",!0))}},{key:"getSolutions",value:function(){var e=this,t=this.getProgrammablePlan(),n=_.cloneDeep((null==t?void 0:t.solutions)||[]),r=this.getCodeContext(t);return _.map(n,(function(t){try{return s(s({},t),{},{source:_.template(t.source)(r)})}catch(n){return console.error("Problem with template and solution comments for '".concat(e.get("slug")||e.get("name"),"'"),n),t}}))}}
2,{key:"getSampleCode",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"humans",n=this.getProgrammablePlan(t),r=_.cloneDeep((null==n?void 0:n.languages)||{});r.javascript=null==n?void 0:n.source;var o=this.getCodeContext(n);return _.forEach(r,(function(t,n){try{r[n]=_.template(t)(o)}catch(t){console.error("Problem with template and solution comments for '".concat(e.get("slug")||e.get("name"),"'"),t)}})),r}},{key:"getSolutionForLanguage",value:function(e){if(!e)return"";var t=this.getSolutions();if(this.isType("web-dev")){var n=_.find(t,{language:"html",succeeds:!0});if(/<playercode>/.test(null==n?void 0:n.source)&&(n.source=E.extractPlayerCodeTag(n.source)),n)return n}var r=_.find(t,{language:e,succeeds:!0});if(r||"javascript"===e)return r;var o=_.find(t,{language:"javascript",succeeds:!0});return o?((r=_.cloneDeep(o)).source=O.translateJS(o.source,e),r):null}},{key:"getSampleCodeForLanguage",value:function(e){if(!e)return"";var t=this.getSampleCode();if(this.isType("web-dev")){var n=t.html;if(/<playercode>/.test(n))return E.extractPlayerCodeTag(n);if(n)return n}var r=t[e];return r||"javascript"===e||!t.javascript?r||"":O.translateJS(t.javascript,e)||""}},{key:"getProgrammablePlan",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"humans",n="ogres"===t?"Hero Placeholder 1":"Hero Placeholder",r=_.find(this.get("thangs")||[],{id:n});return null===(e=_.find((null==r?void 0:r.components)||[],(function(e){var t,n;return null===(t=e.config)||void 0===t||null===(n=t.programmableMethods)||void 0===n?void 0:n.plan})))||void 0===e?void 0:e.config.programmableMethods.plan}},{key:"getCodeContext",value:function(e){if(!e)return{};var t,n,r=E.i18nCommentContext(e);return E.showOzaria()&&(r=_.merge({external_ch1_avatar:null===(t=T.getters)||void 0===t||null===(n=t["me/getCh1Avatar.avatarCodeString"])||void 0===n?void 0:n.crown},r)),r}},{key:"isSummative",value:function(){return["open-ended","cumulative"].includes(this.get("assessment"))}},{key:"usesLevelHeroLadderEquipment",value:function(){var e;if(!this.isType("hero-ladder"))return!1;if(!(e=_.find(this.get("thangs"),{id:"Hero Placeholder"})))return!1;var t=_.find(e.components,{original:S.EquipsID});return null!=A(null!=t?t.config:void 0,(function(e){return e.inventory}))}},{key:"usesSessionHeroThangType",value:function(){return!this.isType("ladder","course-ladder","game-dev","web-dev")&&"open-ended"!==this.get("assessment")&&!this.usesLevelHeroLadderEquipment()}},{key:"usesSessionHeroInventory",value:function(){return!(E.showOzaria()||"codecombat-junior"===this.get("product",!0)||this.isType("course")&&!me.showHeroAndInventoryModalsToStudents()||this.isType("course")&&this.isAssessment()||this.get("assessment")||!this.isType("course","hero","hero-ladder","hero-coop")||this.usesLevelHeroLadderEquipment())}},{key:"isAssessment",value:function(){return Boolean(this.get("assessment"))}},{key:"isCapstone",value:function(){return"capstone"===this.get("ozariaType")}},{key:"isChallenge",value:function(){return"challenge"===this.get("ozariaType")}},{key:"getDisplayContentType",value:function(){if(this.isCapstone())return"capstone";if(this.isChallenge())return"challenge";if("intro"===this.get("type")){var e=this.get("introContent")||[];return 1===e.length&&"cutscene-video"===e[0].type?"cutscene":"intro"}return"practice"}},{key:"checkRemoteChanges",value:function(){var e=this;return fetch(this.url()).then((function(t){return t.json().then((function(t){var n=e._revertAttributes&&!_.isEqual(t,e._revertAttributes);return e.trigger("remote-changes-checked",{hasChanges:n})}))}))}},{key:"hasAccessByTeacher",value:function(e){if(!e)return!1;var t=this.get("classroomSub"),n=!1;if(e&&t&&t.base){var r,o=t[null===(r=e.get("geo"))||void 0===r?void 0:r.country]||t.base;n="free-after-sales"===o?e.activeSalesCallProducts().length>0:"free"===o}return n}}],a=[{key:"initClass",value:function(){this.className="Level",this.schema=n(334657),this.levels=k.levels,this.prototype.urlRoot="/db/level",this.prototype.editableByArtisans=!0,this.prototype.cachedLevelComponents=null}},{key:"isLadder",value:function(e){return(null!=e.type?e.type.indexOf("ladder"):void 0)>-1}},{key:"thresholdForScore",value:function(e){var t,n,r=e.level,o=e.type,i=e.score;if(!(n=r.scoreTypes))return null;if(!(t=_.find(n,{type:o})))return null;for(var a=0,s=["gold","silver","bronze"];a<s.length;a++){var c=s[a],u=t.thresholds[c];if(Array.from(k.lowerIsBetterScoreTypes).includes(o)?i<=u:i>=u)return c}}}
2],i&&h(r.prototype,i),a&&h(r,a),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,a}(w)).initClass(),r),_.assign(r,{isProject:function(e){return"project"===(null!=e?e.shareable:void 0)}})},828193:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function c(e,t,n){return t=p(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(null,arguments)}function d(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var h,m=n(246709);e.exports=((h=function(e){function t(){return i(this,t),c(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,s=[{key:"set",value:function(e,n,r){var i;if(_.isObject(e)){var a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array.from([e,n]),2);i=a[0],r=a[1]}else(i={})[e]=n;return"code"in i&&!("js"in i)&&(i.js=this.compile(i.code)),l(p(t.prototype),"set",this).call(this,i,r)}},{key:"onLoaded",value:function(){if(l(p(t.prototype),"onLoaded",this).call(this),!this.get("js"))return this.set("js",this.compile(this.get("code")))}},{key:"compile",value:function(e){var t;if(this.get("codeLanguage")&&"javascript"===this.get("codeLanguage"))return e;if(this.get("codeLanguage")&&"coffeescript"!==this.get("codeLanguage"))return console.error("Can't compile",this.get("codeLanguage"),"-- only CoffeeScript/JavaScript.",this);try{t=CoffeeScript.compile(e,{bare:!0})}catch(n){console.log("couldn't compile",e,"for",this.get("name"),"because",n),t=this.get("js")}return t}},{key:"getDependencies",value:function(e){for(var t=[],n=function(){for(var n=o[r],i=_.find(e,(function(e){return e.get("original")===n.original&&e.get("version").major===n.majorVersion})),a=0,s=Array.from(i.getDependencies(e).concat([i]));a<s.length;a++){var c=s[a];Array.from(t).includes(c)||t.push(c)}},r=0,o=Array.from(this.get("dependencies")||[]);r<o.length;r++)n();return t}}],u=[{key:"initClass",value:function(){this.className="LevelComponent",this.schema=n(724402),this.EquipsID="53e217d253457600003e3ebb",this.ItemID="53e12043b82921000051cdf9",this.AttacksID="524b7ba57fc0f6d519000016",this.PhysicalID="524b75ad7fc0f6d519000001",this.ExistsID="524b4150ff92f1f4f8000024",this.LandID="524b7aff7fc0f6d519000006",this.CollidesID="524b7b857fc0f6d519000012",this.PlansID="524b7b517fc0f6d51900000d",this.ProgrammableID="524b7b5a7fc0f6d51900000e",this.MovesID="524b7b8c7fc0f6d519000013",this.MissileID="524cc2593ea855e0ab000142",this.FindsPathsID="52872b0ead92b98561000002",this.AttackableID="524b7bab7fc0f6d519000017",this.RefereeID="54977ce657e90bd1903dea72",this.JuniorPlayerID="65b29e528f43392e778c9433",this.ScalesID="52a399b98537a70000000003",this.SelectableID="524b7bb67fc0f6d519000018",this.ProgrammableIDs=["524b7b5a7fc0f6d51900000e","5f7d7be6bad19a002837b394"],this.positionIDs=["524b75ad7fc0f6d519000001","5f589b061d240e002298f852"],this.shapeIDs=["524b75ad7fc0f6d519000001","5f58cbfe3f40380023b02f3c"],this.collisionIDs=["524b7b857fc0f6d519000012","5f5a19ba36dd000023f89f7b"],this.prototype.urlRoot="/db/level.component",this.prototype.editableByArtisans=!0}}],s&&a(r.prototype,s),u&&a(r,u),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s,u}(m)).initClass(),h)},82103:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}
2function c(e,t,n){return t=p(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(null,arguments)}function d(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var h,m=n(246709),g=n(403781);e.exports=((h=function(e){function t(){return i(this,t),c(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),r=t,u=[{key:"initClass",value:function(){this.className="LevelSystem",this.schema=n(256288),this.prototype.urlRoot="/db/level.system",this.prototype.editableByArtisans=!0}}],(s=[{key:"set",value:function(e,n,r){var i;if(_.isObject(e)){var a=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(Array.from([e,n]),2);i=a[0],r=a[1]}else(i={})[e]=n;return"code"in i&&!("js"in i)&&(i.js=this.compile(i.code)),l(p(t.prototype),"set",this).call(this,i,r)}},{key:"onLoaded",value:function(){return l(p(t.prototype),"onLoaded",this).call(this),this.get("js")||this.set("js",this.compile(this.get("code"))),g.setName(this)}},{key:"compile",value:function(e){var t;if(this.get("codeLanguage")&&"javascript"===this.get("codeLanguage"))return e;if(this.get("codeLanguage")&&"coffeescript"!==this.get("codeLanguage"))return console.error("Can't compile",this.get("codeLanguage"),"-- only CoffeeScript/JavaScript.",this);try{t=CoffeeScript.compile(e,{bare:!0})}catch(e){t=this.get("js")}return t}},{key:"getDependencies",value:function(e){for(var t=[],n=function(){for(var n=o[r],i=_.find(e,(function(e){return e.get("original")===n.original&&e.get("version").major===n.majorVersion})),a=0,s=Array.from(i.getDependencies(e).concat([i]));a<s.length;a++){var c=s[a];Array.from(t).includes(c)||t.push(c)}},r=0,o=Array.from(this.get("dependencies")||[]);r<o.length;r++)n();return t}}])&&a(r.prototype,s),u&&a(r,u),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,s,u}(m)).initClass(),h)},989279:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}
2function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=n(246709);e.exports=((r=function(e){function t(){return a(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,c=[{key:"initClass",value:function(){this.className="Patch",this.schema=n(64406),this.prototype.urlRoot="/db/patch"}},{key:"setStatus",value:function(e,t){return o.ajax("/db/patch/".concat(e,"/status"),{type:"PUT",data:{status:t}})}}],(i=[{key:"setStatus",value:function(e,t){return null==t&&(t={}),t.url="/db/patch/".concat(this.id,"/status"),t.type="PUT",this.save({status:e},t)}}])&&s(r.prototype,i),c&&s(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,c}(f)).initClass(),r)},910852:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=d(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(null,arguments)}function l(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f,h=n(246709),m=n(299498);function g(e,t){return null!=e?t(e):void 0}e.exports=((f=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"openSpots",value:function(){return null!=this.get("redeemers")?this.get("maxRedeemers")-g(this.get("redeemers"),(function(e){return e.length})):this.get("maxRedeemers")}},{key:"usedSpots",value:function(){return _.size(this.get("redeemers"))}},{key:"totalSpots",value:function(){return this.get("maxRedeemers")}},{key:"userHasRedeemed",value:function(e){for(var t=0,n=Array.from(this.get("redeemers"));t<n.length;t++){var r=n[t];if(r.userID===e)return r.date}return null}},{key:"initialize",value:function(){return this.listenTo(this,"add",(function(){var e=this.get("maxRedeemers");if(_.isString(e))return this.set("maxRedeemers",parseInt(e))})),u(d(t.prototype),"initialize",this).apply(this,arguments)}},{key:"status",value:function(){var e=this.get("endDate");if(e&&new Date(e)<new Date)return"expired";var t=this.get("startDate");return t&&new Date(t)>new Date?"pending":this.openSpots()<=0?"empty":"available"}},{key:"typeDescription",value:function(){var e;if("starter_license"===this.get("type"))return i18n.t("teacher.starter_license");var t=this.get("includedCourseIDs"),n=null===(e=this.get("properties"))||void 0===e?void 0:e.creditDetails;return m.courseDescription(t,n)}},{key:"typeDescriptionWithTime",value:function(){var e=moment(this.get("endDate")).utc().format("ll"),t="<br>".concat(i18n.t("teacher.status_enrolled"));return t=t.replace("{{date}}",e),this.typeDescription()+t}},{key:"redeem",value:function(e,t){return null==t&&(t={}),t.url=_.result(this,"url")+"/redeemers",t.type="POST",null==t.data&&(t.data={}),t.data.userID=e.id||e,this.fetch(t)}},{key:"includesCourse",value:function(e){var t=("function"==typeof e.get?e.get("name"):void 0)||e;return"starter_license"===this.get("type")?(this.get("includedCourseIDs")||[]).includes(t):(this.get("includedCourseIDs")||[t]).includes(t)}},{key:"numericalCourses",value:function(){return g(this.get("includedCourseIDs"),(function(e){return e.length}))?_.reduce(this.get("includedCourseIDs"),(function(e,t){return e+m.courseNumericalStatus[t]}),0):m.courseNumericalStatus.FULL_ACCESS}},{key:"revoke",value:function(e,t){return null==t&&(t={}),t.url=_.result(this,"url")+"/redeemers",t.type="DELETE",null==t.data&&(t.data={}),t.data.userID=e.id||e,this.fetch(t)}},{key:"convertToProduct",value:function(){return{product:"course",startDate:this.get("startDate"),endDate:this.get("endDate"),prepaid:this.get("_id"),productOptions:{includedCourseIDs:this.get("includedCourseIDs")}}}},{key:"hasBeenUsedByTeacher",value:function(e){return!(this.get("creator")!==e||!_.detect(this.get("redeemers"),{teacherID:void 0}))||_.detect(this.get("redeemers"),{teacherID:e})}}],a=[{key:"initClass",value:function(){this.className="Prepaid",this.prototype.urlRoot="/db/prepaid"}}],r&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(h)).initClass(),f)},31279:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}
2function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=n(246709),h=n(299498);e.exports=((r=function(e){function t(){return a(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),r=t,c=[{key:"initClass",value:function(){this.className="Product",this.schema=n(326782),this.prototype.urlRoot="/db/products"}}],(i=[{key:"isRegionalSubscription",value:function(e){return h.isRegionalSubscription(null!=e?e:this.get("name"))}},{key:"priceStringNoSymbol",value:function(){return(this.get("amount")/100).toFixed(2)}},{key:"adjustedPriceStringNoSymbol",value:function(){return(this.adjustedPrice()/100).toFixed(2)}},{key:"adjustedPrice",value:function(){var e=this.get("amount");return null!=this.get("coupons")&&this.get("coupons").length>0&&(e=this.get("coupons")[0].amount),e}},{key:"translateName",value:function(){return/year_subscription/.test(this.get("name"))?i18n.t("subscribe.year_subscription"):/lifetime_subscription/.test(this.get("name"))?i18n.t("subscribe.lifetime"):this.get("name")}},{key:"purchase",value:function(e,t){return null==t&&(t={}),t.url=_.result(this,"url")+"/purchase",t.method="POST",null==t.data&&(t.data={}),t.data.token=null!=e?e.id:void 0,t.data.timestamp=(new Date).getTime(),t.data=JSON.stringify(t.data),t.contentType="application/json",o.ajax(t)}},{key:"purchaseWithPayPal",value:function(e,t){return this.purchase(void 0,_.merge({data:{service:"paypal",paymentID:e.id,payerID:e.payer.payer_info.payer_id}},t))}}])&&s(r.prototype,i),c&&s(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,c}(f)).initClass(),r)},365117:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var d,p=n(246709);e.exports=((d=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,r=[{key:"initClass",value:function(){this.className="State"}}],null&&i(n.prototype,null),r&&i(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(p)).initClass(),d)}
vendor: 10,535 bytes, line 2
2,249449:(e,t,n)=>{"use strict";var r,o=n(665420),i=n(619755);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){s=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,i,s,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==a(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(a(t)+" is not iterable")}return b.prototype=_,o(k,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function c(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,h(r.key),r)}}function h(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==a(t)?t:t+""}function m(e,t,n){return t=b(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,g()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function y(){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=v(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},y.apply(null,arguments)}function v(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function w(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var C,k,x,E=n(246709),O=n(579483),T=n(967734),A=n(299498),P=n(694879),I=n(588333),j=n(969278),L=n(504015),N=n(86856),R=n(482156),D=n(250636),M=window.moment,F="junior-pet-access",U="play-while-you-wait",B="manage-billing-ab-test",$={broadName:function(e){var t,n;if(e.deleted)return"(deleted)";var r=D.filter([e.firstName,e.lastName]).join(" ");if(null!==(t=features)&&void 0!==t&&t.china&&(r=e.firstName),/[a-z]/.test(r)||(r=D.string.titleize(r)),r)return r;if(r=e.name)return r;var o,i,a=(o=Array.from((null===(n=e.email)||void 0===n?void 0:n.split("@"))||[]),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(o,i)||w(o,i)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),s=a[0];return a[1],s||"Anonymous"},isSmokeTestUser:function(e){return A.isSmokeTestEmail(e.email)},isTeacher:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!t||"possible teacher"!==e.role)||["teacher","technology coordinator","advisor","principal","superintendent","parent"].includes(e.role)}};e.exports=(r=function(e){function t(){var e;p(this,t);for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(e=m(this,t,[].concat(r))).prepaidType=e.prepaidType.bind(e),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(t,e),r=t,a=[{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=y(b(t.prototype),"get",this).call(this,e,n);return"products"===e?null!=r?r:[]:r}},{key:"isAdmin",value:function(){var e=this.constructor.PERMISSIONS.COCO_ADMIN;return this.get("permissions",!0).includes(e)}},{key:"isLicensor",value:function(){var e=this.constructor.PERMISSIONS.LICENSOR;return this.get("permissions",!0).includes(e)}},{key:"isArtisan",value:function(){var e=this.constructor.PERMISSIONS.ARTISAN;return this.get("permissions",!0).includes(e)}},{key:"isOnlineTeacher",value:function(){var e=this.constructor.PERMISSIONS.ONLINE_TEACHER;return this.get("permissions",!0).includes(e)}},{key:"isInGodMode",value:function(){var e=this.constructor.PERMISSIONS.GOD_MODE,t=this.constructor.PERMISSIONS.ONLINE_TEACHER;return this.get("permissions",!0).includes(e)||this.get("permissions",!0).includes(t)}},{key:"isSchoolAdmin",value:function(){var e=this.constructor.PERMISSIONS.SCHOOL_ADMINISTRATOR;return this.get("permissions",!0).includes(e)}},{key:"isAPIClient",value:function(){var e=this.constructor.PERMISSIONS.API_CLIENT;return this.get("permissions",!0).includes(e)}},{key:"isBetaTester",value:function(){var e=this.constructor.PERMISSIONS.BETA_TESTER;return this.get("permissions",!0).includes(e)}},{key:"isParentAdmin",value:function(){var e=this.constructor.PERMISSIONS.PARENT_ADMIN;return this.get("permissions",!0).includes(e)}},{key:"isNapervilleAdmin",value:function(){return this.get("permissions",!0).includes(this.constructor.PERMISSIONS.NAPERVILLE_ADMIN)}},{key:"isNapervilleUser",value:function(){var e;return"naperville"===(null===(e=this.get("library"))||void 0===e?void 0:e.name)}},{key:"isAnonymous",value:function(){return this.get("anonymous",!0)}},{key:"isSmokeTestUser",value:function(){return t.isSmokeTestUser(this.attributes)}},{key:"isIndividualUser",value:function(){return!this.isStudent()&&!t.isTeacher(this.attributes)}},{key:"isNewDashboardActive",value:function(){return l({isNewDashboardActive:!0},this.get("features")||{}).isNewDashboardActive}},{key:"isInternal",value:function(){var e=this.get("email");return!!e&&(e.endsWith("@codecombat.com")||e.endsWith("@ozaria.com"))}},{key:"isDistrictAdmin",value:function(e){var t;return!!e&&(null===(t=this.get("features"))||void 0===t?void 0:t.ownerDistrictId)===e}},{key:"displayName",value:function(){return this.get("name",!0)}},{key:"broadName",value:function(){return t.broadName(this.attributes)}},{key:"inEU",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.get("country")?A.inEU(this.get("country")):e}},{key:"addressesIncludeAdministrativeRegion",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.get("country")?A.addressesIncludeAdministrativeRegion(this.get("country")):e}},{key:"getPhotoURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:80;return o.testing?"":"/db/user/".concat(this.id,"/avatar?s=").concat(e)}},{key:"getRequestVerificationEmailURL",value:function(){return this.url()+"/request-verify-email"}},{key:"getSlugOrID",value:function(){return this.get("slug")||this.get("_id")}},{key:"hasNoPasswordLoginMethod",value:function(){var e;return Boolean(this.get("facebookID")||this.get("gplusID")||this.get("githubID")||this.get("cleverID"))||(null===(e=this.get("oAuth2Identities"))||void 0===e?void 0:e.length)>0}},{key:"currentPasswordRequired",value:function(){var e;return!(null===(e=window.serverSession)||void 0===e?void 0:e.amActually)&&!this.get("newPasswordRequired")&&!this.hasNoPasswordLoginMethod()}},{key:"getEnabledEmails",value:function(){var e=this;return function(){var t=[],n=e.get("emails",!0);for(var r in n)n[r].enabled&&t.push(r);return t}()}},{key:"setEmailSubscription",value:function(e,t){var n=D.clone(this.get("emails"))||{};return(null!=n[e]?n[e]:n[e]={}).enabled=t,this.set("emails",n)}},{key:"isEmailSubscriptionEnabled",value:function(e){var t;return null===(t=(this.get("emails")||{})[e])||void 0===t?void 0:t.enabled}},{key:"isHomeUser",value:function(){return!this.get("role")||this.isParentHome()}},{key:"isParentHome",value:function(){return"parent-home"===this.get("role")}},{key:"hasNoVerifiedChild",value:function(){return!D.find(this.get("related")||[],(function(e){return"children"===e.relation&&e.verified}))}},{key:"isRegisteredHomeUser",value:function(){return this.isHomeUser()&&!this.get("anonymous")}},{key:"isStudent",value:function(){return"student"===this.get("role")}},{key:"canUseRobloxOauthConnection",value:function(){return!this.isTeacher()&&!this.isStudent()}},{key:"isTestStudent",value:function(){return this.isStudent()&&(this.get("related")||[]).some((function(e){return"TestStudent"===e.relation}))}},{key:"isCreatedByClient",value:function(){return null!=this.get("clientCreator")}},{key:"isTeacher",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t.isTeacher(this.attributes,e)}},{key:"isPaidTeacher",value:function(){return!!this.isTeacher()&&(this.isCreatedByClient()||/@c
2odeninjas.com$/i.test(this.get("email")))}},{key:"hasAiJuniorAccess",value:function(){return this.isAdmin()||this.isBetaTester()||this.isOnlineTeacher()||!this.isAnonymous()}},{key:"getHocCourseInstanceId",value:function(){var e=me.get("courseInstances")||[];if(0!==e.length){var t=[];return e.forEach((function(e){return t.push(P.courseInstances.get({courseInstanceID:e}))})),Promise.all(t).then((function(e){var t=e.filter((function(e){return e.courseID===A.hourOfCodeOptions.courseId}));if(0!==t.length)return 1===t.length?t[0]._id:(t=D.sortBy(t,(function(e){return e._id})),D.last(t)._id)})).catch((function(e){return console.error("Error in fetching hoc course instance",e)}))}}},{key:"isSessionless",value:function(){return Boolean((A.getQueryVariable("dev",!1)||this.isTeacher())&&A.getQueryVariable("course",!1)&&!A.getQueryVariable("course-instance"))}},{key:"isInHourOfCode",value:function(){if(!this.get("hourOfCode"))return!1;var e=(new Date-new Date(this.get("dateCreated")))/864e5;return!(e>7||e>1&&this.get("hourOfCodeComplete"))}},{key:"getClientCreatorPermissions",value:(h=s().mark((function e(){var t,n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((t=this.get("clientCreator"))||(t=A.getApiClientIdFromEmail(this.get("email"))),!t){e.next=14;break}return e.prev=3,e.next=6,P.apiClients.getByHandle(t);case 6:return n=e.sent,this.clientPermissions=n.permissions,e.abrupt("return",this.clientPermissions);case 11:e.prev=11,e.t0=e.catch(3),console.error(e.t0);case 14:case"end":return e.stop()}}),e,this,[[3,11]])})),g=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=h.apply(e,t);function i(e){c(o,n,r,i,a,"next",e)}function a(e){c(o,n,r,i,a,"throw",e)}i(void 0)}))},function(){return g.apply(this,arguments)})},{key:"canManageLicensesViaUI",value:function(){var e,t;return null==(null===(e=this.clientPermissions)||void 0===e?void 0:e.manageLicensesViaUI)||(null===(t=this.clientPermissions)||void 0===t?void 0:t.manageLicensesViaUI)}},{key:"canRevokeLicensesViaUI",value:function(){return!!(!this.clientPermissions||this.clientPermissions.manageLicensesViaUI&&this.clientPermissions.revokeLicensesViaUI)}},{key:"setRole",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.get("role");if(n!==e&&(!n||t))return this.set("role",e),this.patch(),o.tracker.identify(),this.get("role")}},{key:"addNewUserCommonProperties",value:function(){var e=D.assign({},this.get("emails"));null==e.generalNews&&(e.generalNews={}),this.inEU()?(e.generalNews.enabled=!1,this.set("unsubscribedFromMarketingEmails",!0)):e.generalNews.enabled=!0,this.set("emails",e),this.set("features",l(l({},this.get("features")||{}),{},{isNewDashboardActive:!0}))}},{key:"rank",value:function(){var e=this.get("points");return this.isInGodMode()&&(e+=1e6),t.rankFromExp(e)}},{key:"tier",value:function(){return t.tierFromRank(this.rank())}},{key:"gems",value:function(){var e,t,n,r,o,i=null!=(n=null===(e=this.get("earned"))||void 0===e?void 0:e.gems)?n:0;this.isInGodMode()&&(i+=1e5),this.get("hourOfCode")&&(i+=1e3);var a=null!=(r=null===(t=this.get("purchased"))||void 0===t?void 0:t.gems)?r:0,s=null!=(o=this.get("spent"))?o:0;return Math.floor(i+a-s)}},{key:"heroes",value:function(){var e,t=((null===(e=this.get("purchased"))||void 0===e?void 0:e.heroes)||[]).concat([O.heroes.captain,O.heroes.knight,O.heroes.champion,O.heroes.duelist,O.heroes["wolf-pup-hero"],O.heroes["cougar-hero"],O.heroes["polar-bear-cub-hero"],O.heroes["frog-hero"],O.heroes["turtle-hero"],O.heroes["blue-fox-hero"],O.heroes["panther-cub-hero"],O.heroes["brown-rat-hero"],O.heroes["duck-hero"],O.heroes["tiger-cub-hero"]]);window.serverConfig.codeNinjas&&t.push(O.heroes["code-ninja"]);var n,r=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=w(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}(A.clanHeroes);try{for(r.s();!(n=r.n()).done;){var o=n.value;
2(this.get("clans")||[]).includes(o.clanId)&&t.push(o.thangTypeOriginal)}}catch(e){r.e(e)}finally{r.f()}return t}},{key:"juniorHeroes",value:function(){var e,t,n,r=O.juniorHeroesConfig.map((function(e){return O.heroes[e.slug]})),o=("beta"===this.getJuniorPetAccessExperimentValue()?O.juniorPetAccessConfig:O.juniorHeroesConfig).filter((function(e){return"free"===e.access})).map((function(e){return O.heroes[e.slug]})),i=((null===(e=this.get("purchased"))||void 0===e?void 0:e.heroes)||[]).filter((function(e){return r.includes(e)}));return D.union((null===(t=this.get("earned"))||void 0===t?void 0:t.juniorHeroes)||[],(null===(n=this.get("purchased"))||void 0===n?void 0:n.juniorHeroes)||[],i,o)}},{key:"ownsJuniorHero",value:function(e){return this.isInGodMode()||this.juniorHeroes().includes(e)}},{key:"mayUseJuniorPet",value:function(e){if("beta"!==this.getJuniorPetAccessExperimentValue())return!0;if(this.ownsJuniorHero(e))return!0;var t=D.find(O.juniorPetAccessConfig,(function(t){return O.heroes[t.slug]===e}));if(!t)return!0;switch(t.access){case"signup":return!this.isAnonymous();case"premium":return this.isPremium();default:return!1}}},{key:"items",value:function(){var e,t,n,r;return(null!=(n=null===(e=this.get("earned"))||void 0===e?void 0:e.items)?n:[]).concat(null!=(r=null===(t=this.get("purchased"))||void 0===t?void 0:t.items)?r:[]).concat([O.items["simple-boots"]])}},{key:"levels",value:function(){var e,t,n=(null===(e=this.get("earned"))||void 0===e?void 0:e.levels)||[],r=(null===(t=this.get("purchased"))||void 0===t?void 0:t.levels)||[];return n.concat(r).concat(T.levels["dungeons-of-kithgard"]).concat(T.levels["the-gem"])}},{key:"ownsHero",value:function(e){var t=e;return this.isInGodMode()||this.heroes().includes(t)}},{key:"ownsItem",value:function(e){var t=e;return this.items().includes(t)}},{key:"ownsLevel",value:function(e){var t=e;return this.levels().includes(t)}},{key:"getHeroClasses",value:function(){var e=D.invert(O.heroes),t=this.heroes().map((function(t){return e[t]})),n=[];for(var r in O.heroClasses){var o=O.heroClasses[r];D.intersection(t,o).length&&n.push(r)}return n}},{key:"validate",value:function(){var e=y(b(t.prototype),"validate",this).call(this);if(e&&this._revertAttributes){var n=D.pick(this._revertAttributes,(function(e){return void 0!==e})),r=tv4.validateMultiple(n,this.constructor.schema||{}),o=function(e){return[e.code.toString(),e.dataPath,e.schemaPath].join(":")},i=D.map(r.errors,o),a=D.map(e,o),s=D.difference(a,i);if(0===D.size(s))return}return e}},{key:"hasSubscription",value:function(){if(this.isStudent()||this.isTeacher())return!1;var e=this.get("payPal"),t=this.get("stripe"),n=this.get("products");if(e&&e.billingAgreementID)return!0;if(t){if(!0===t.free)return!0;if(D.isString(t.free)&&new Date<new Date(t.free))return!0}if(n){var r=this.activeProducts("basic_subscription"),o=D.max(r,(function(e){return new Date(e.endDate)})).endDate;if(new Date<new Date(o))return!0}return!1}},{key:"isPaidOnlineClassUser",value:function(){return!!(this.get("products")&&this.activeProducts("online-classes").length>0)}},{key:"premiumEndDate",value:function(){if(!this.isPremium())return null;var e,t=this.get("stripe");if(t){if(!0===t.free)return i.t("subscribe.forever");if(t.sponsorID)return i.t("subscribe.forever");if(t.subscriptionID)return i.t("subscribe.forever");D.isString(t.free)&&(e=M(t.free))}if(this.get("products")){var n=this.activeProducts("basic_subscription"),r=D.max(n,(function(e){return new Date(e.endDate)})).endDate,o=M(r);return e&&e.isAfter(o)?e.utc().format("ll"):o.utc().format("ll")}}},{key:"isPremium",value:function(){return!!this.isInGodMode()||!!this.isAdmin()||!!this.hasSubscription()}},{key:"isForeverPremium",value:function(){var e;return!0===(null===(e=this.get("stripe"))||void 0===e?void 0:e.free)}},{key:"sendVerificationCode",value:function(e){var t=this;return i.ajax({method:"POST",url:"/db/user/".concat(this.id,"/verify/").concat(e),success:function(e){return t.set(e),t.trigger("email-verify-success")},error:function(){return t.trigger("email-verify-error")}})}},{key:"sendKeepMeUpdatedVerificationCode",value:function(e){var t=this;return i.ajax({method:"POST",url:"/db/user/".concat(this.id,"/keep-me-updated/").concat(e),success:function(e){return t.set(e),t.trigger("user-keep-me-updated-success")},error:function(){return t.trigger("user-keep-me-updated-error")}})}},{key:"updatePassword",value:function(e,t,n,r){var o=this;return i.ajax({method:"PUT",url:"/db/user/".concat(this.id,"/update-user-password"),data:{currentPassword:e,newPassword:t},success:function(e){return o.set(e),n()},error:r})}},{key:"sendNoDeleteEUVerificationCode",value:function(e){var t=this;return i.ajax({method:"POST",url:"/db/user/".concat(this.id,"/no-delete-eu/").concat(e),success:function(e){return t.set(e),t.trigger("user-no-delete-eu-success")},error:function(){return t.trigger("user-no-delete-eu-error")}})}},{key:"trackActivity",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return i.ajax({method:"POST",url:"/db/user/".concat(this.id,"/track/").concat(e,"/").concat(n),success:function(e){return t.set(e)},error:function(){return console.error("Couldn't save activity ".concat(e))}})}},{key:"peekActivityStatus",value:function(e){var t,n=this.get("_id")||this.id;return n?R.reconcileActivity(R.readActivityFromCache(n,e),null===(t=this.get("activity"))||void 0===t?void 0:t[e]):null}},{key:"resolveActivityStatus",value:function(e){var t,n=this.get("_id")||this.id;if(!n)return null;var r=R.readActivityFromCache(n,e),o=R.reconcileActivity(r,null===(t=this.get("activity"))||void 0===t?void 0:t[e]);return!o||r&&r.count===o.count&&r.last===o.last&&r.first===o.first||R.writeActivityToCache(n,e,o),o}},{key:"markActivitySeen",value:function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),i=this.get("_id")||this.id;if(i){var a=R.reconcileActivity(R.readActivityFromCache(i,e),null===(t=this.get("activity"))||void 0===t?void 0:t[e]);if(!(null!=(null==a?void 0:a.last)&&o<=a.last)){var s={first:null!==(n=null==a?void 0:a.first)&&void 0!==n?n:o,last:o,c
2ount:null!=a&&a.first?(null!==(r=a.count)&&void 0!==r?r:0)+1:1};return R.writeActivityToCache(i,e,s),this.id?this.trackActivity(e):void 0}}}},{key:"clearActivityStatusCache",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.prefix;if(this.isInternal()||null===(e=L.application)||void 0===e||!e.isProduction()){var r=this.get("_id")||this.id;r&&R.clearActivityStatusCache(r,{prefix:n})}}},{key:"saveCookieConsent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=D.clone(this.get("consentHistory"))||[];n.push({action:e,date:new Date,type:"cookies",description:t}),this.set("consentHistory",n)}},{key:"getLatestCookieConsent",value:function(){var e=(this.get("consentHistory")||[]).filter((function(e){return"cookies"===e.type}));return 0===e.length?null:D.max(e,(function(e){return new Date(e.date).getTime()}))}},{key:"tryStartExperiment",value:function(e){var t,n,r,o,i=null===(t=window.serverConfig)||void 0===t||null===(n=t.experimentProbabilities)||void 0===n||null===(r=n[e])||void 0===r?void 0:r.beta;if(null==i)return"control";var a=Math.random();return a<i?o="beta":(o="control",i=1-i),console.log("starting ".concat(e," experiment with value ").concat(o," and probability ").concat(i," and rnd ").concat(a)),me.startExperiment(e,o,i),o}},{key:"startExperiment",value:function(e,t,n){var r,o=this,a=null!=(r=this.get("experiments"))?r:[];if(D.find(a,{name:e}))return console.error("Already started experiment ".concat(e));if(!/^[a-z][\-a-z0-9]*$/.test(e))return console.error("Invalid experiment name: ".concat(e));if(null==t)return console.error("No experiment value provided");if(null!=n&&!(n>=0&&n<=1))return console.error("Probability should be between 0-1 if set - ".concat(e," - ").concat(t," - ").concat(n));i.ajax({method:"POST",url:"/db/user/".concat(this.id,"/start-experiment"),data:{name:e,value:t,probability:n},success:function(e){return o.set(e)},error:function(t){return console.error("Couldn't start experiment ".concat(e,":"),t.responseJSON)}});var s={name:e,value:t,startDate:new Date};return null!=n&&(s.probability=n),a.push(s),this.set("experiments",a),s}},{key:"updateExperimentValue",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=D.sortBy(null!=(t=this.get("experiments"))?t:[],"startDate").reverse(),o=D.find(r,{name:e});return o?(o.value=n,o.probability=1,this.set({experiments:r}),this.save()):console.error("No experiment found")}},{key:"getExperimentValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null!=n&&this.isAdmin()?n:t,o=D.sortBy(this.get("experiments")||[],"startDate").reverse(),i=D.find(o,{name:e});return i&&null!=i.value?i.value:r}},{key:"isEnrolled",value:function(){return"enrolled"===this.prepaidStatus()}},{key:"prepaidStatus",value:function(){var e=D.filter(this.get("products"),{product:"course"}),t=new Date,n=D.filter(e,(function(e){return new Date(e.endDate)>t||!e.endDate})),r=A.orderedCourseIDs;return e.length?D.some(n,(function(e){var t,n;return null===(t=e.productOptions)||void 0===t||null===(n=t.includedCourseIDs)||void 0===n||!n.length||!!D.intersection(e.productOptions.includedCourseIDs,r).length}))?"enrolled":"expired":"not-enrolled"}},{key:"getSeenPromotion",value:function(e){return(this.get("seenPromotions")||{})[e]}},{key:"shouldSeeManualPromotion",value:function(e){return!!e&&!1===this.getSeenPromotion(e)}},{key:"shouldSeePromotion",value:function(e){if(!e)return!0;if(["end-of-trial-promotion-modal"].includes(e))return this.shouldSeeManualPromotion(e);if(this.getSeenPromotion(e))return!1;var t=Object.values(this.get("seenPromotions")||{}).reduce((function(e,t){return new Date(e)>new Date(t)?new Date(e):new Date(t)}),new Date(0)),n=new Date;return n.setDate(n.getDate()-7),t<n}},{key:"setSeenPromotion",value:function(e){var t=this.get("seenPromotions")||{};Object.assign(t,d({},e,new Date)),this.set("seenPromotions",t)}},{key:"activeProducts",value:function(e){var t=new Date;return D.filter(this.get("products")||[],(function(n){if(n.product!==e)return!1;var r=n.endDate&&new Date(n.endDate)>t||!n.endDate,o=!n.startDate||new Date(n.startDate)<=t;return r&&o}))}},{key:"expiredProducts",value:function(e){var t=new Date;return D.filter(this.get("products")||[],(function(n){return n.product===e&&new Date(n.endDate)<t}))}},{key:"activeSalesCallProducts",value:function(){return this.activeProducts(this.constructor.SALES_CALL_ACCESS_LEVEL)}},{key:"getExam",value:function(e){return D.find(this.get("exams"),{id:e})}},{key:"getProductsByType",value:function(e){var t=this.get("products");return e?D.filter(t,(function(t){return t.product===e})):t}},{key:"hasAiLeagueActiveProduct",value:function(){return this.activeProducts("esports").length>0}},{key:"prepaidNumericalCourses",value:function(){var e=this.activeProducts("course");if(!e.length)return A.courseNumericalStatus.NO_ACCESS;if(D.some(e,(function(e){var t;return null==(null===(t=e.productOptions)||void 0===t?void 0:t.includedCourseIDs)})))return A.courseNumericalStatus.FULL_ACCESS;var t=D.reduce(e,(function(e,t){var n,r;return D.union(e,null!=(null===(n=t.productOptions)||void 0===n?void 0:n.includedCourseIDs)?null===(r=t.productOptions)||void 0===r?void 0:r.includedCourseIDs:[])}),[]);return D.reduce(t,(function(e,t){return e+A.courseNumericalStatus[t]}),0)}},{key:"prepaidType",value:function(e){var t=this.activeProducts("course");if(t.length)return D.any(t,(function(e){var t;return null==(null===(t=e.productOptions)||void 0===t?void 0:t.includedCourseIDs)}))?"course":e?D.reduce(t,(function(e,t){var n,r;return D.union(e,null!=(null===(n=t.productOptions)||void 0===n?void 0:n.includedCourseIDs)?null===(r=t.productOptions)||void 0===r?void 0:r.includedCourseIDs:[])}),[]).map((function(e){return A.courseAcronyms[e]})).join("+"):"course"}},{key:"prepaidTypeDescription",value:function(){var e=this.activeProducts("course");if(!e.length)return"";if(D.any(e,(function(e){var t;return null==(null===(t=e.productOptions)||void 0===t?void 0:t.includedCourseIDs)})))return A.courseDescription();var t=D.reduce(e,(function(e,t){var n,r;return D.union(e,null!=(null===(n=t.productOptions)||void 0===n?void 0:n.includedCourseIDs)?null===(r=t.productOptions)||void 0===r?void 0:r.includedCourseIDs:[])}),[]);return A.courseDescription(t)}},{key:"prepaidIncludesCourse",value:function(e){var t=this.activeProducts("course");if(!t.length)return!1;if(D.any(t,(function(e){var t;return null==(null===(t=e.productOptions)||void 0===t?void 0:t.includedCourseIDs)})))return!0;var n=D.reduce(t,(function(e,t){var n,r;return D.union(e,null!=(null===(n=t.productOptions)||void 0===n?void 0:n.includedCourseIDs)?null===(r=t.productOptions)||void 0===r?void 0:r.includedCourseIDs:[])}),[]),r=e.id||e;return n.includes(r)}},{key:"findCourseProduct",value:function(e){return D.find(this.activeProducts("course"),(function(t){return t.prepaid+""==e+""}))}},{key:"fetchCreatorOfPrepaid",value:function(e){return this.fetch({url:"/db/prepaid/".concat(e.id,"/creator")})}},{key:"fetchNameForClassmate",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.method="GET",e.contentType="application/json",e.url="/db/user/".concat(this.id,"/name-for-classmate"),i.ajax(e)}},{key:"spy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=e.id||e,t.url="/auth/spy",t.type="POST",null==t.data&&(t.data={}),t.data.user=e,this.clearUserSpecificLocalStorage(),this.fetch(t)}},{key:"stopSpying",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.url="/auth/stop-spying",e.type="POST",this.clearUserSpecificLocalStorage(),this.fetch(e)}},{key:"logout",value:function(){var e,t,n,r=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o.type="POST",o.url="/auth/logout",null===(e=window)||void 0===e||null===(t=e.FB)||void 0===t||null===(n=t.logout)||void 0===n||n.call(t),o.success||(o.success=function(){return L.application.tracker.identifyAfterNextPageLoad(),L.application.tracker.resetIdentity().finally((function(){var e,t=D.result(L.currentView,"logoutRedirectURL");null===(e=r.clearUserSpecificLocalStorage)||void 0===e||e.call(r),r.clearCookieConsent(),t?window.location=t:window.location.reload()}))}),this.fetch(o)}},{key:"clearCookieConsent",value:function(){document.cookie="cookieconsent_status=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;"}},{key:"clearUserSpecificLocalStorage",value:function(){for(var e=0,t=["hoc-campaign"];e<t.length;e++){var n=t[e];j.remove(n)}R.removeLibraryKeys();var r=this.get("_id")||this.id;r&&R.clearActivityStatusCache(r)}},{key:"signupWithPassword",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r.url=D.result(this,"url")+"/signup-with-password",r.type="POST",null==r.data&&(r.data={}),D.extend(r.data,{name:e,email:t,password:n}),r.contentType="application/json",r.xhrFields={withCredentials:!0},r.data=JSON.stringify(r.data);var o=this.fetch(r);return o.then((function(){var e;return null===(e=window.tracker)||void 0===e?void 0:e.trackEvent("Finished Signup",{category:"Signup",label:"CodeCombat"})})),o}},{key:"signupWithOauth2",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};n.url=D.result(this,"url")+"/signup-with-oauth2",n.type="POST",null==n.data&&(n.data={}),D.extend(n.data,l({email:e},t)),n.contentType="application/json",n.xhrFields={withCredentials:!0},n.data=JSON.stringify(n.data);var r=this.fetch(n);return r.then((function(){var e;return null===(e=window.tracker)||void 0===e?void 0:e.trackEvent("Oauth2 Finished Signup",{category:"Signup",label:"CodeCombat"})})),r}},{key:"signupWithFacebook",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r.url=D.result(this,"url")+"/signup-with-facebook",r.type="POST",null==r.data&&(r.data={}),D.extend(r.data,{name:e,email:t,facebookID:n,facebookAccessToken:r.facebookAccessToken}),r.contentType="application/json",r.xhrFields={withCredentials:!0},r.data=JSON.stringify(r.data);var o=this.fetch(r);return o.then((function(){var e,t;return null===(e=window.tracker)||void 0===e||e.trackEvent("Facebook Login",{category:"Signup",label:"Facebook"}),null===(t=window.tracker)||void 0===t?void 0:t.trackEvent("Finished Signup",{category:"Signup",label:"Facebook"})})),o}},{key:"signupWithGPlus",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};r.url=D.result(this,"url")+"/signup-with-gplus",r.type="POST",null==r.data&&(r.data={}),D.extend(r.data,{name:e,email:t,gplusID:n,gplusAccessToken:o.gplusHandler.token()}),r.contentType="application/json",r.xhrFields={withCredentials:!0},r.data=JSON.stringify(r.data);var i=this.fetch(r);return i.then((function(){var e,t;return null===(e=window.tracker)||void 0===e||e.trackEvent("Google Login",{category:"Signup",label:"GPlus"}),null===(t=window.tracker)||void 0===t?void 0:t.trackEvent("Finished Signup",{category:"Signup",label:"GPlus"})})),i}},{key:"fetchGPlusUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==n.data&&(n.data={}),n.data.gplusID=e,n.data.gplusAccessToken=o.gplusHandler.token(),n.data.email=t,this.fetch(n)}},{key:"linkGPlusUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.url="/db/user/".concat(this.id,"/link-with-gplus"),n.type="POST",n.xhrFields={withCredentials:!0},null==n.data&&(n.data={}),n.data.gplusID=e,n.data.gplusAccessToken=o.gplusHandler.token(),n.data.email=t,this.fetch(n)}},{key:"loginGPlusUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url="/auth/login-gplus",t.type="POST",t.xhrFields={withCredentials:!0},null==t.data&&(t.data={}),t.data.gplusID=e,t.data.gplusAccessToken=o.gplusHandler.token(),this.fetch(t)}},{key:"fetchFacebookUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return null==n.data&&(n.data={}),n.data.facebookID=e,n.data.facebookAccessToken=t,this.fetch(n)}},{key:"loginFacebookUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.url="/auth/login-facebook",n.type="POST",n.xhrFields={withCredentials:!0},null==n.data&&(n.data={}),n.data.facebookID=e,n.data.facebookAccessToken=t,this.fetch(n)}},{key:"loginEdLinkUser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url="/auth/login-ed-link",t.type="POST",t.xhrFields={withCredentials:!0},null==t.data&&(t.data={}),t.data.code=e,this.fetch(t)}},{key:"loginPasswordUser",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.xhrFields={withCredentials:!0},n.url="/auth/login",n.type="POST",null==n.data&&(n.data={}),D.extend(n.data,{username:e,password:t}),this.fetch(n)}},{key:"confirmBindAIYouth",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.url="/auth/bind-aiyouth",n.type="POST",null==n.data&&(n.data={}),n.data.token=t,n.data.provider=e,this.fetch(n)}},{key:"changePassword",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.url="/auth/change-password",n.type="POST",null==n.data&&(n.data={}),D.extend(n.data,{userId:e,password:t}),this.fetch(n)}},{key:"makeCoursePrepaid",value:function(e){var t,r=D.find(this.get("products"),(function(t){return"course"===t.product&&t.prepaid+""==e+""}));return r?new(n(910852))({_id:e,type:"course",includedCourseIDs:null==r||null===(t=r.productOptions)||void 0===t?void 0:t.includedCourseIDs,startDate:r.startDate,endD
2ate:r.endDate}):null}},{key:"getLeadPriority",value:function(){var e=i.get("/db/user/-/lead-priority");return e.then((function(e){var t=e.priority;return o.tracker.identify({priority:t})})),e}},{key:"becomeStudent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.url="/db/user/-/become-student",e.type="PUT",this.fetch(e)}},{key:"remainTeacher",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.url="/db/user/-/remain-teacher",e.type="PUT",this.fetch(e)}},{key:"destudent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.url=D.result(this,"url")+"/destudent",e.type="POST",this.fetch(e)}},{key:"deteacher",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.url=D.result(this,"url")+"/deteacher",e.type="POST",this.fetch(e)}},{key:"checkForNewAchievement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.url=D.result(this,"url")+"/check-for-new-achievement",e.type="POST";var t=this.fetch(e);return this.loading=!1,t}},{key:"recalculateHsStars",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.url=D.result(this,"url")+"/recalculate-hs-stars",e.type="POST",e.campaign&&(e.data={campaign:e.campaign});var t=this.fetchAsPromise(e);return this.loading=!1,t}},{key:"finishedAnyLevels",value:function(){return Boolean((this.get("stats")||{}).gamesCompleted)}},{key:"isFromUk",value:function(){return"united-kingdom"===this.get("country")||"en-GB"===this.get("preferredLanguage")}},{key:"isFromIndia",value:function(){return"india"===this.get("country")}},{key:"setToGerman",value:function(){return D.string.startsWith(this.get("preferredLanguage")||"","de")}},{key:"setToSpanish",value:function(){return D.string.startsWith(this.get("preferredLanguage")||"","es")}},{key:"freeOnly",value:function(){return this.isStudent()||features.freeOnly&&!this.isPremium()||this.isAnonymous()&&"taiwan"===this.get("country")}},{key:"subscribe",value:function(e){var t,n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=D.clone(null!=(t=this.get("stripe"))?t:{});return o.planID=r.planID||"basic",o.token=e.id,r.couponID&&(o.couponID=r.couponID),this.set({stripe:o}),this.patch({headers:{"X-Change-Plan":"true"}}).then((function(){return A.isValidEmail(n.get("email"))||(n.set({email:e.email}),n.patch()),Promise.resolve()}))}},{key:"unsubscribe",value:function(){var e,t=D.clone(null!=(e=this.get("stripe"))?e:{});if(t.planID)return delete t.planID,this.set({stripe:t}),this.patch({headers:{"X-Change-Plan":"true"}})}},{key:"age",value:function(){return A.yearsSinceMonth(this.get("birthday"))}},{key:"isRegisteredForAILeague",value:function(){var e,t;return!(!this.get("birthday")||!this.get("email")||this.get("unsubscribedFromMarketingEmails")||null===(e=this.get("emails"))||void 0===e||null===(t=e.generalNews)||void 0===t||!t.enabled)}},{key:"shouldShowLevelAIChat",value:function(){var e;return!(A.isOzaria||null!==(e=features)&&void 0!==e&&e.china||"student"===me.get("role"))}},{key:"removeRelatedAccount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url="/db/user/related-accounts",t.type="DELETE",null==t.data&&(t.data={}),t.data.userId=e,this.fetch(t)}},{key:"linkRelatedAccount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url="/db/user/related-accounts",t.type="PUT",null==t.data&&(t.data=e),this.fetch(t)}},{key:"getRelatedAccounts",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url="/db/user/related-accounts/details",this.fetch(t)}},{key:"getTestStudentId",value:function(){var e=this,t=(this.get("related")||[]).filter((function(e){return"TestStudent"===e.relation}))[0];return t?Promise.resolve({id:t.userId,new:!1}):new Promise((function(t,n){try{e.createTestStudentAccount().then((function(e){t({id:e.relatedUserId,new:!0})}))}catch(e){n(e)}}))}},{key:"switchToStudentMode",value:function(){var e=this;return this.getTestStudentId().then((function(t){var n=t.id;return e.spy({id:n})}))}},{key:"switchToTeacherMode",value:function(){return this.switchToStudentMode()}},{key:"createTestStudentAccount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url="/db/user/create-test-student-account",t.type="PUT",null==t.data&&(t.data=e),this.fetch(t)}},{key:"createAndAssociateAccount",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.url="/db/user/related-accounts/associate-account",t.type="PUT",null==t.data&&(t.data=e),this.fetch(t)}},{key:"lastClassroomItems",value:function(){return null!=this.lastClassroomItemsCache?this.lastClassroomItemsCache:(this.lastClassroomItemsCache=j.load("last-classroom-items"),null!=this.lastClassroomItemsCache&&this.lastClassroomItemsCache)}},{key:"setLastClassroomItems",value:function(e){return this.lastClassroomItemsCache=e,j.save("last-classroom-items",e)}},{key:"canBuyGems",value:function(){return!1}},{key:"constrainHeroHealth",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.classroomItems)?null===(t=features)||void 0===t?void 0:t.classroomItems:this.lastClassroomItems()&&this.isStudent()}},{key:"promptForClassroomSignup",value:function(){var e,t,n,r,o,i;return!(null!=(null===(e=features)||void 0===e?void 0:e.chinaUx)&&(null===(t=features)||void 0===t?void 0:t.chinaUx)||null!=(null===(n=window.serverConfig)||void 0===n?void 0:n.codeNinjas)&&(null===(r=window.serverConfig)||void 0===r?void 0:r.codeNinjas)||null!=(null===(o=features)||void 0===o?void 0:o.brainPop)&&(null===(i=features)||void 0===i?void 0:i.brainPop)||R.isInLibraryNetwork())}},{key:"showGearRestrictionsInClassroom",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.classroomItems)?null===(t=features)||void 0===t?void 0:t.classroomItems:this.lastClassroomItems()&&this.isStudent()}},{key:"showGemsAndXpInClassroom",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.classroomItems)?null===(t=features)||void 0===t?void 0:t.classroomItems:this.lastClassroomItems()&&this.isStudent()}},{key:"showHeroAndInventoryModalsToStudents",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.classroomItems)?null===(t=features)||void 0===t?void 0:t.classroomItems:this.lastClassroomItems()&&this.isStudent()}},{key:"skipHeroSelectOnStudentSignUp",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.classroomItems)&&(null===(t=features)||void 0===t?void 0:t.classroomItems)}}
2,{key:"useSocialSignOn",value:function(){var e,t,n,r;return!(null!=(null===(e=features)||void 0===e?void 0:e.chinaUx)&&(null===(t=features)||void 0===t?void 0:t.chinaUx)||null!=(null===(n=features)||void 0===n?void 0:n.china)&&(null===(r=features)||void 0===r?void 0:r.china))}},{key:"isTarena",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.Tarena)&&(null===(t=features)||void 0===t?void 0:t.Tarena)}},{key:"useTarenaLogo",value:function(){return this.isTarena()}},{key:"hideTopRightNav",value:function(){return this.isTarena()||this.isILK()||this.isICode()||this.isCodeNinja()}},{key:"hideFooter",value:function(){return this.isTarena()||this.isILK()||this.isICode()||this.isCodeNinja()}},{key:"hideOtherProductCTAs",value:function(){return this.isTarena()||this.isILK()||this.isICode()||this.isCodeNinja()}},{key:"useGoogleClassroom",value:function(){var e,t;return!(null!=(null===(e=features)||void 0===e?void 0:e.chinaUx)&&(null===(t=features)||void 0===t?void 0:t.chinaUx))&&null!=this.get("gplusID")}},{key:"useGoogleCalendar",value:function(){var e,t;return!(null!=(null===(e=features)||void 0===e?void 0:e.chinaUx)&&(null===(t=features)||void 0===t?void 0:t.chinaUx))&&null!=this.get("gplusID")&&(this.isAdmin()||this.isOnlineTeacher())}},{key:"useGoogleAnalytics",value:function(){var e,t,n,r;return!(null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china)||null!=(null===(n=features)||void 0===n?void 0:n.chinaInfra)&&(null===(r=features)||void 0===r?void 0:r.chinaInfra))}},{key:"isEdLinkAccount",value:function(){var e,t;return!(null!=(null===(e=features)||void 0===e?void 0:e.chinaUx)&&(null===(t=features)||void 0===t?void 0:t.chinaUx))&&null!=this.get("edLink")}},{key:"useDataDog",value:function(){var e,t,n,r;return!(null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china)||null!=(null===(n=features)||void 0===n?void 0:n.chinaInfra)&&(null===(r=features)||void 0===r?void 0:r.chinaInfra))}},{key:"showChinaVideo",value:function(){var e,t,n,r;return null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china)||null!=(null===(n=features)||void 0===n?void 0:n.chinaInfra)&&(null===(r=features)||void 0===r?void 0:r.chinaInfra)}},{key:"canAccessCampaignFreelyFromChina",value:function(e){return A.isCodeCombat&&"55b29efd1cd6abe8ce07db0d"===e||A.isOzaria&&"5d1a8368abd38e8b5363bad9"===e}},{key:"isCreatedByTarena",value:function(){return"60fa65059e17ca0019950fdd"===this.get("clientCreator")||"5c80a2a0d78b69002448f545"===this.get("clientCreator")}},{key:"isILK",value:function(){return"6082ec9996895d00a9b96e90"===this.get("clientCreator")||(this.get("clientPermissions")||[]).some((function(e){return"6082ec9996895d00a9b96e90"===e.client}))}},{key:"isICode",value:function(){return"61393874c324991d0f68fc70"===this.get("clientCreator")||(this.get("clientPermissions")||[]).some((function(e){return"61393874c324991d0f68fc70"===e.client}))}},{key:"isTecmilenio",value:function(){return["62de625ef3365e002314d554","62e7a13c85e9850026fa2c7f"].includes(this.get("clientCreator"))||(this.get("clientPermissions")||[]).some((function(e){return["62de625ef3365e002314d554","62e7a13c85e9850026fa2c7f"].includes(e.client)}))}},{key:"isCodeNinja",value:function(){var e=["57fff652b0783842003fed00","5b9af3a99c27360047dd2123","65f9c0e3f9f905bd19a3fc26","65f9c1786c97604c1ea5ff0e","65f9d5cef9f905bd19acd446","65f9d616276bf6e4e513be2f","66b53237be6b406bc81c42c7","66b532875b263b1f31a78a45","66b532d3f68194c66d305301","66b5333dea513e36a48f646f","66b53386574bfe6467bab40d","66b533cdea513e36a48f7855","66b533f8ea513e36a48f7eae","66b5342d5b263b1f31a7ae5e"];return e.includes(this.get("clientCreator"))||(this.get("clientPermissions")||[]).some((function(t){return e.includes(t.client)}))}},{key:"isMtoStem",value:function(){return[A.MTOClients.MTO_STEM_DEV,A.MTOClients.MTO_STEM_PROD].includes(this.get("clientCreator"))}},{key:"isMtoNeo",value:function(){return[A.MTOClients.MTO_NEO_DEV,A.MTOClients.MTO_NEO_PROD].includes(this.get("clientCreator"))}},{key:"isMtoCodingOlympiad",value:function(){return[A.MTOClients.MTO_CODING_OLYMPIAD_DEV,A.MTOClients.MTO_CODING_OLYMPIAD_PROD].includes(this.get("clientCreator"))}}
2,{key:"isMto",value:function(){return this.isMtoStem()||this.isMtoNeo()||this.isMtoCodingOlympiad()}},{key:"isSchoology",value:function(){var e;return null===(e=this.get("oAuth2Identities"))||void 0===e?void 0:e.some((function(e){return"schoology"===e.provider}))}},{key:"isClassLink",value:function(){var e;return null===(e=this.get("oAuth2Identities"))||void 0===e?void 0:e.some((function(e){return"classlink"===e.provider}))}},{key:"isGeccClient",value:function(){return"61e7e20658f1020024bd8cf7"===this.get("_id")}},{key:"isManualClassroomJoinAllowed",value:function(){return!this.isMto()}},{key:"showForumLink",value:function(){var e,t;return!(null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china))}},{key:"showChinaResourceInfo",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china)}},{key:"showChinaHomeVersion",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.chinaHome)&&(null===(t=features)||void 0===t?void 0:t.chinaHome)}},{key:"useChinaHomeView",value:function(){var e,t,n;return null!=(n=(null===(e=features)||void 0===e?void 0:e.china)&&!(null!==(t=features)&&void 0!==t&&t.chinaHome))&&n}},{key:"showChinaRegistration",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china)}},{key:"enableCpp",value:function(){return A.isCodeCombat&&(this.hasSubscription()||this.isStudent()||this.isTeacher())}},{key:"enableJava",value:function(){return A.isCodeCombat&&(this.hasSubscription()||this.isStudent()||this.isTeacher())}},{key:"getEnabledLanguages",value:function(){var e=["javascript","python"];return this.enableCpp()&&e.push("cpp"),this.enableJava()&&e.push("java"),e}},{key:"useQiyukf",value:function(){return!1}},{key:"useChinaServices",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china)}},{key:"useGeneralArticle",value:function(){var e,t;return!(null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china))}},{key:"showingStaticPagesWhileLoading",value:function(){return!1}},{key:"showIndividualRegister",value:function(){var e,t;return!(null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china))}},{key:"showChinaRemindToast",value:function(){var e,t;return null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china)}},{key:"showOpenResourceLink",value:function(){var e,t;return!(null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china))}},{key:"useStripe",value:function(){var e,t,n,r;return!(null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china)||null!=(null===(n=features)||void 0===n?void 0:n.chinaInfra)&&(null===(r=features)||void 0===r?void 0:r.chinaInfra))&&"nl-BE"!==this.get("preferredLanguage")}},{key:"canDeleteAccount",value:function(){var e,t;return!(null!=(null===(e=features)||void 0===e?void 0:e.china)&&(null===(t=features)||void 0===t?void 0:t.china))}},{key:"canAutoFillCode",value:function(){return this.isAdmin()||this.isTeacher()||this.isInGodMode()}},{key:"hasCinematicEditorAccess",value:function(){return this.isAdmin()}},{key:"hasCutsceneEditorAccess",value:function(){return this.isAdmin()}},{key:"hasInteractiveEditorAccess",value:function(){return this.isAdmin()}},{key:"showGoogleClassroom",value:function(){var e,t;return!(null!=(null===(e=features)||void 0===e?void 0:e.chinaUx)&&(null===(t=features)||void 0===t?void 0:t.chinaUx)||me.isCodeNinja())}},{key:"googleClassroomEnabled",value:function(){return null!=me.get("gplusID")&&!me.isCodeNinja()}},{key:"hasCampaignAccess",value:function(e){return!!(A.freeCampaignIds.includes(e._id)||this.isAdmin()||this.isInternal()||t.isTeacher(this.attributes)||this.isStudent())}},{key:"getJuniorPetAccessExperimentValue",value:function(){var e,t;return this.isStudent()||this.isTeacher()||null!==(e=features)&&void 0!==e&&e.chinaInfra?"control":null!==(t=A.getFirstNonNull(A.getExperimentValueFromQuery(F),this.getExperimentValue(F,null)))&&void 0!==t?t:null}},{key:"getOrStartJuniorPetAccessExperimentValue",value:function(){var e=this.getJuniorPetAccessExperimentValue();return null!=e?e:this.isAnonymous()?this.freeOnly()||this.isInHourOfCode()||new Date(this.get("dateCreated"))<new Date("2026-07-29")?"control":this.tryStartExperiment(F):"control"}},{key:"getManageBillingExperimentValue",value:function(){var e,t;return this.isStudent()||this.isTeacher()||null!==(e=features)&&void 0!==e&&e.chinaInfra?"control":null!==(t=A.getFirstNonNull(A.getExperimentValueFromQuery(B),this.getExperimentValue(B,null)))&&void 0!==t?t:null}},{key:"getOrStartManageBillingExperimentValue",value:function(){var e=this.getManageBillingExperimentValue();
2return null!=e?e:this.tryStartExperiment(B)}},{key:"getPlayWhileYouWaitExperimentValue",value:function(){var e,t;return this.isStudent()||this.isTeacher()||null!==(e=features)&&void 0!==e&&e.chinaInfra?"control":null!==(t=A.getFirstNonNull(A.getExperimentValueFromQuery(U),this.getExperimentValue(U,null)))&&void 0!==t?t:null}},{key:"getOrStartPlayWhileYouWaitExperimentValue",value:function(){var e=this.getPlayWhileYouWaitExperimentValue();return null!=e?e:this.isAdmin()?"control":this.tryStartExperiment(U)}}],u=[{key:"initClass",value:function(){this.className="User",this.schema=n(409240),this.prototype.urlRoot="/db/user",this.prototype.notyErrors=!1,this.PERMISSIONS={COCO_ADMIN:"admin",SCHOOL_ADMINISTRATOR:"schoolAdministrator",ARTISAN:"artisan",GOD_MODE:"godmode",LICENSOR:"licensor",API_CLIENT:"apiclient",ONLINE_TEACHER:"onlineTeacher",BETA_TESTER:"betaTester",PARENT_ADMIN:"parentAdmin",NAPERVILLE_ADMIN:"napervilleAdmin"},this.SALES_CALL_ACCESS_LEVEL="call-sales",C=5,x=k=100,this.prototype.getHeroPoseImage=I.wrap(s().mark((function e(){var t,n,r,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=null!=(n=null===(t=this.get("heroConfig"))||void 0===t?void 0:t.thangType)?n:O.heroes.captain,e.next=3,N("/db/thang.type/".concat(r,"/version?project=poseImage"));case 3:return o=e.sent,e.abrupt("return","/file/"+o.poseImage);case 5:case"end":return e.stop()}}),e,this)}))),this.prototype.fetchOnlineTeachers=I.wrap(s().mark((function e(t){var n;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="/db/user/teachers/online",null!=t&&(n+="?teachers=".concat(encodeURIComponent(JSON.stringify(t)))),e.next=4,N(n);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))}},{key:"getUnconflictedName",value:function(e,t){return i.ajax("/auth/name/".concat(encodeURIComponent(e)),{cache:!1,success:function(e){return t(e.suggestedName)}})}},{key:"checkNameConflicts",value:function(e){return new Promise((function(t,n){return i.ajax("/auth/name/".concat(encodeURIComponent(e)),{cache:!1,success:t,error:function(e){return n(e.responseJSON)}})}))}},{key:"checkEmailExists",value:function(e){return new Promise((function(t,n){return i.ajax("/auth/email/".concat(encodeURIComponent(e)),{cache:!1,success:t,error:function(e){return n(e.responseJSON)}})}))}},{key:"getNapervilleDomain",value:function(){return"naperville203.org"}},{key:"rankFromExp",value:function(e){return e>0?Math.floor(C*Math.log(1/k*(e+x)))+1:1}},{key:"expForRank",value:function(e){return e>1?Math.ceil(Math.exp((e-1)/C)*k-x):0}},{key:"tierFromRank",value:function(e){return H[Math.min(e,H.length-1)]}},{key:"rankForTier",value:function(e){for(var t=0;t<H.length;t++)if(H[t]>=e)return t;return H.length-1}}],a&&f(r.prototype,a),u&&f(r,u),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a,u,h,g}(E),r.initClass(),r);var H=[-1,0,.05,.14,.18,.32,.41,.5,.64,.82,.91,1.04,1.22,1.35,1.48,1.65,1.78,1.96,2.1,2.24,2.38,2.55,2.69,2.86,3.03,3.16,3.29,3.42,3.58,3.74,3.89,4.04,4.19,4.32,4.47,4.64,4.79,4.96,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,10,10.5,11,11.5,12,12.5,13,13.5,14,14.5,15];D.assign(r,$)},57483:e=>{"use strict";e.exports={bus:{title:"Bus",id:"bus",$schema:"http://json-schema.org/draft-04/schema#",description:"Bus",type:"object",properties:{joined:{type:["boolean","null"]},players:{type:"object"}},required:["joined","players"],additionalProperties:!0}}},61655:e=>{"use strict";e.exports={jQueryEvent:{title:"jQuery Event",id:"jQueryEvent",$schema:"http://json-schema.org/draft-04/schema#",description:"A standard jQuery Event",type:"object",properties:{altKey:{type:"boolean"}},required:[],additionalProperties:!0}}},193482:(e,t,n)=>{"use strict";function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}
2}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var i,a,s,c=n(7288),u=[{code:"rot13",nativeDescription:"rot13",englishDescription:"rot13"}];for(s in c){var l=c[s];u.push({code:s,nativeDescription:l.nativeDescription,englishDescription:l.englishDescription})}e.exports.languages=u,e.exports.languageCodes=i=u.map((function(e){return e.code})),e.exports.languageCodesLower=a=[];var d,p=r(i);try{for(p.s();!(d=p.n()).done;)s=d.value,a.push(s.toLowerCase())}catch(e){p.e(e)}finally{p.f()}var f={en:"en-US","zh-cn":"zh-HANS","zh-hans-cn":"zh-HANS","zh-sg":"zh-HANS","zh-hans-sg":"zh-HANS","zh-tw":"zh-HANT","zh-hant-tw":"zh-HANT","zh-hk":"zh-HANT","zh-hant-hk":"zh-HANT","zh-mo":"zh-HANT","zh-hant-mo":"zh-HANT"};e.exports.languageCodeFromAcceptedLanguages=function(e){var t,n=r(e||[]);try{for(n.s();!(t=n.n()).done;){var o=t.value;if(s=f[o.toLowerCase()])return s;var c=_.indexOf(a,o);if(-1!==c)return i[c]}}catch(e){n.e(e)}finally{n.f()}return"en-US"}},988214:e=>{"use strict";e.exports={id:"metaschema",displayProperty:"title",$schema:"http://json-schema.org/draft-04/schema#",title:"Schema",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"},title:"Array of Schemas",default:[{}]},positiveInteger:{type:"integer",minimum:0,title:"Positive Integer"},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{title:"Single Type",enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0,title:"String Array",default:[""]}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri",default:"http://json-schema.org/draft-04/schema#"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean",default:!1},{$ref:"#"}]},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean",default:!0},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0,default:[""]},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0,title:"Array of Types",default:["string"]}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}},802861:(e,t,n)=>{"use strict";var r=n(975434),o=r.object();r.extendNamedProperties(o),r.extendBasicProperties(o,"achievement"),r.extendSearchableProperties(o),o.default={worth:10,description:"Probably the coolest you'll ever get.",difficulty:1,recalculable:!0,function:{}},_.extend(o.properties,{query:{$ref:"#/definitions/mongoFindQuery"},worth:r.float(),collection:{type:"string"},description:r.shortString(),userField:r.shortString(),related:r.objectId({description:"Related entity"}),icon:{type:"string",format:"image-file",title:"Icon",description:"Image should be a 100x100 transparent png."},category:{enum:["level","ladder","contributor"],description:"For categorizing and display purposes"},difficulty:r.int({description:"The higher the more difficult"}),proportionalTo:{type:"string",description:"For repeatables only. Denotes the field a repeatable achievement needs for its calculations"},recalculable:{type:"boolean",description:"Deprecated: all achievements must be recalculable now. Used to need to be set to true before it is eligible for recalculation."},function:{type:"object",description:"Function that gives total experience for X amount achieved",properties:{kind:{enum:["linear","logarithmic","quadratic","pow"]},parameters:{type:"object",default:{a:1,b:0,c:0},properties:{a:{type:"number"},b:{type:"number"},c:{type:"number"}},additionalProperties:!0}},default:{kind:"linear",parameters:{}},required:["kind","parameters"],additionalProperties:!1},i18n:{type:"object",format:"i18n",props:["name","description"],description:"Help translate this achievement"},rewards:r.RewardSchema("awarded by this achievement"),hidden:{type:"boolean",description:"Hide achievement from user if true"},updated:r.stringDate({description:"When the achievement was changed in such a way that earned achievements should get updated."})}),_.extend(o,{additionalProperties:!1}),o.definitions={},o.definitions.mongoQueryOperator={title:"Query Operator",type:"object",properties:{$gt:{type:"number"},$gte:{type:"number"},$in:{type:"array"},$lt:{type:"number"},$lte:{type:"number"},$ne:{type:["number","string"]},$nin:{type:"array"},$exists:{type:"boolean"}},additionalProperties:!1},o.definitions.mongoFindQuery={title:"Query",type:"object",patternProperties:{"^[-a-zA-Z0-9._]*$":{anyOf:[{$ref:"#/definitions/mongoQueryOperator"},{type:"string"},{type:"object"},{type:"boolean"}]}},properties:{},additionalProperties:!1,definitions:{}},r.extendTranslationCoverageProperties(o),r.extendPatchableProperties(o),e.exports=o}
2,54783:(e,t,n)=>{"use strict";var r;function o(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var a=n(975434),s=n(334657),c=n(129612),u=a.object({default:{type:"hero"}});a.extendNamedProperties(u),_.extend(u.properties,{i18n:{type:"object",title:"i18n",format:"i18n",props:["name","fullName","description"]},fullName:{type:"string",title:"Full Name",description:'Ex.: "Kithgard Dungeon"'},description:{type:"string",format:"string",description:"How long it takes and what players learn."},type:a.shortString({title:"Type",description:"What kind of campaign this is.",enum:["hero","course","hidden","hoc","hackstack","junior"]}),ambientSound:a.object({},{mp3:{type:"string",format:"sound-file"},ogg:{type:"string",format:"sound-file"}}),backgroundImage:a.array({},{type:"object",additionalProperties:!1,properties:{image:{type:"string",format:"image-file"},width:{type:"number"},campaignPage:{type:"number",title:"Campaign page number",description:"Give the page number if there are multiple pages in the campaign"}}}),backgroundColor:{type:"string"},backgroundColorTransparent:{type:"string"},adjacentCampaigns:{type:"object",format:"campaigns",additionalProperties:{title:"Campaign",type:"object",format:"campaign",properties:{id:{type:"string",format:"hidden"},name:{type:"string",format:"hidden"},description:{type:"string",format:"hidden"},i18n:{type:"object",format:"hidden"},slug:{type:"string",format:"hidden"},position:a.point2d(),rotation:{type:"number",format:"degrees"},color:{type:"string"},showIfUnlocked:{oneOf:[{type:"string",links:[{rel:"db",href:"/db/level/{($)}/version"}],format:"latest-version-original-reference"},{type:"array",items:{type:"string",links:[{rel:"db",href:"/db/level/{($)}/version"}],format:"latest-version-original-reference"}}]}}}},isOzaria:{type:"boolean",description:"Is this an ozaria campaign",default:!1},isGalaxy:{type:"boolean",description:"Is this campaign the part of the Galaxy Interface",default:!1},product:a.singleProduct,levelsUpdated:a.date(),levels:{type:"object",format:"levels",additionalProperties:{title:"Level",type:"object",format:"level",additionalProperties:!1,properties:{rewards:{format:"rewards",type:"array",items:{type:"object",additionalProperties:!1,properties:{achievement:{type:"string",links:[{rel:"db",href:"/db/achievement/{{$}}"}],format:"achievement"},item:{type:"string",links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],format:"latest-version-original-reference"},hero:{type:"string",links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],format:"latest-version-original-reference"},level:{type:"string",links:[{rel:"db",href:"/db/level/{($)}/version"}],format:"latest-version-original-reference"},type:{enum:["heroes","items","levels"]}}}},position:a.point2d(),nextLevels:{type:"object",description:"object containing next levels original id and their details",format:"levels",additionalProperties:{type:"object",format:"nextLevel",properties:{nextLevelStage:{type:"number",title:"Next Level Stage",description:"Which capstone stage is unlocked"},conditions:a.object({},{afterCapstoneStage:{type:"number",title:"After Capstone Stage",description:"What capstone stage needs to be completed to unlock this next level"}})}}},first:{type:"boolean",description:"Is it the first level in the campaign",default:!0},campaignPage:{type:"number",title:"Campaign page number",description:"Give the page number if there are multiple pages in the campaign"},releasePhase:{enum:["beta","internalRelease","released"],title:"Release status",description:"Release status of the level, determining who sees it.",default:"internalRelease"},moduleNum:{type:"number",title:"Module number",default:1}}}},scenarios:{type:"array",title:"AI Scenarios",items:{type:"object",properties:{scenario:a.stringID({title:"AI Scenario Original",format:"scenario",links:[{rel:"db",href:"/db/ai_scenario/{{$}}/version",model:"AIScenario"}]}),moduleNum:{type:"number",title:"Module number",default:5},position:a.point2d(),displayName:{type:"string",title:"Display Name"},firstInSequence:{type:"boolean",title:"First in Sequence",default:!1},connections:{type:"array",title:"Connections",items:{type:"object",properties:{toScenario:a.stringID({title:"AI Scenario Original",format:"scenario",links:[{rel:"db",href:"/db/ai_scenario/{{$}}/version",model:"AIScenario"}]}
2),connectionType:{type:"string",title:"Connection Type",enum:["required","optional"],default:"required"},curveSide:{type:"string",title:"Curve Side",enum:["left","right"],default:"left"},color:{type:"string",title:"Color",format:"color"},opacity:{type:"number",title:"Opacity",format:"range",minimum:0,maximum:1,default:.5},invisible:{type:"boolean",title:"Invisible",default:!1}}}}}}},isIsolatedCampaign:{type:"boolean",description:'Isolated campaign, can be accessed only by direct link and dont have "back" button',default:!1},isSideScrollerCampaign:{type:"boolean",description:"Side scroller campaign view",default:!1},parallaxBackgrounds:{type:"array",title:"Parallax Backgrounds",description:"Parallax backgrounds for the campaign",items:{type:"object",additionalProperties:!1,properties:{image:{type:"string",format:"image-file"},width:{type:"number"},speedFactor:{type:"number",title:"Speed Factor",default:1}}}},isPremiumOnly:{type:"boolean",description:"Does this campaign require a subscription to access?",default:!1},modules:{type:"array",title:"Modules",description:"If the campaign is used as a parent campaign, it can have modules that are used as child campaigns.",items:{type:"object",properties:{campaign:a.stringID({title:"Campaign",format:"campaignID",model:"Campaign",links:[{rel:"db",href:"/db/campaign/{{$}}",model:"Campaign"}]}),moduleNumber:{type:"number",title:"Module number",description:"The number of the module if its defined in the related course."},portalImage:{format:"image-file",title:"Portal Image",description:"The image to use for the portal of the module on interface."},imageSize:{type:"number",title:"Relative Image Size",description:"The relative size of the image to use for the portal of the module on interface. 0.1 means 10% of the map width.",minimum:0,maximum:1,default:.1},position:{type:"object",title:"Position",properties:{row:{type:"number",title:"Row",description:"The row of the module on the interface."},column:{type:"number",title:"Column",description:"The column of the module on the interface."},x:{type:"number",title:"X",description:"The x position of the module on the interface."},y:{type:"number",title:"Y",description:"The y position of the module on the interface."}}},access:{type:"string",enum:["free","sales-call","paid"],title:"Access",description:"Whether this module is free, free with a sales call, or paid."},levelToUnlock:{type:"string",title:"Level to Unlock",description:"Level original that must be completed to unlock this module.",links:[{rel:"db",href:"/db/level/{($)}/version"}],format:"level-original"}}}},miniGames:{type:"array",title:"Mini-Games",description:"Latent Space tiles: which mini-games this campaign shows, where they sit, and how they unlock.",items:{type:"object",title:"Mini-Game Tile",properties:{miniGame:{type:"string",title:"Mini-Game",format:"mini-game-original",description:"The MiniGame original this tile plays.",links:[{rel:"db",href:"/db/mini_game/{{$}}/version",model:"MiniGame"}]},slug:{type:"string",format:"hidden"},displayName:{type:"string",title:"Display Name",description:"Tile label. Falls back to the mini-game name."},icon:{type:"string",format:"image-file",title:"Icon",description:"The image to use for the tile on the interface."},accentColor:{type:"string",format:"color",title:"Accent Color",description:"Glow behind the tile on the Latent Space map, e.g. #FF5A3C. Leave empty for a neutral glow."},position:{type:"object",title:"Position",description:"Position of the tile on the interface.",properties:{row:{type:"number",title:"Row",description:"The row of the tile on the interface."},column:{type:"number",title:"Column",description:"The column of the tile on the interface."},x:{type:"number",title:"X",description:"The x position of the tile on the interface."},y:{type:"number",title:"Y",description:"The y position of the tile on the interface."}}},ruleToUnlock:{type:"array",title:"Rule To Unlock",description:"All rules must pass for the tile to unlock. Empty means always unlocked. The first unmet rule supplies the lock message and where its click leads, so order them the way a player should work through them.",items:{type:"object",title:"Rule",properties:{type:a.shortString({title:"Type",description:"stars: earn stars. registered: be signed up.",enum:["stars","registered"]}),campaign:a.shortString({title:"Send To Campaign",description:"stars only: where clicking the locked tile sends the player to go earn stars, e.g. intro-to-ai. Stars count no matter which campaign they came from. Empty sends them to the galaxy map."}),amount:{type:"integer",title:"Amount",description:"stars only: how many stars are needed, across all campaigns.",minimum:0}}}}}}},parentCampaignSlug:{type:"string",title:"Parent Campaign Slug",description:"The slug of the parent campaign."},visualConnections:{type:"array",title:"Visual Connections",description:"Visual connections between levels or just random points on the map",items:{type:"object",properties:{fromPos:a.point2d({description:"The position of the from point",title:"From Position"}),toPos:a.point2d({description:"The position of the to point",title:"To Position"}),opacity:{type:"number",title:"Opacity",format:"range",minimum:0,maximum:1,default:.5},curve:{type:"number",title:"Curve",description:"Curvature factor; 0 is straight, positive/negative bend the line left/right",default:0},head:{type:"string",title:"Head",description:"What to draw at the end of the connection (none or arrow)",enum:["none","arrow"],default:"none"},thickness:{type:"number",title:"Thickness",description:"Relative thickness of the connection line; 1 = 1% of map height, 2 = 2%, etc.",default:1,minimum:0},color:{type:"string",format:"color",description:"The color of the connection",default:c.black},lockedColor:{type:"string",format:"color",description:"The color of the connection when it is locked",default:c.grey},completeColor:{type:"string",format:"color",description:"The color of the connection when it is completed",default:c.lightGold},activeColor:{type:"string",format:"color",description:"The color of the connection when it is active",default:c.red},unlockLevelOriginal:{type:"string",title:"Unlock Level Original",description:"Level original ID that unlocks or enables this connection; used to determine when the connection becomes available.",links:[{rel:"db",href:"/db/level/{($)}/version"}],format:"level-original"},completeLevelOriginal:{type:"string",title:"Complete Level Original",description:"Level original ID that marks completion of this connection; used to determine when the connection is finished.",links:[{rel:"db",href:"/db/level/{($)}/version"}],format:"level-original"}}}}}
2),u.denormalizedLevelProperties=["name","description","i18n","requiresSubscription","classroomSub","requiresSignUp","replayable","type","kind","slug","original","adventurer","assessment","assessmentPlacement","practice","practiceThresholdMinutes","primerLanguage","shareable","adminOnly","releasePhase","disableSpaces","hidesSubmitUntilRun","hidesPlayButton","hidesRunShortcut","hidesHUD","hidesSay","hidesCodeToolbar","hidesRealTimePlayback","backspaceThrottle","lockDefaultCode","moveRightLoopSnippet","permissions","realTimeSpeedFactor","autocompleteFontSizePx","requiredGear","restrictedGear","requiredProperties","restrictedProperties","recommendedHealth","maximumHealth","clampedProperties","concepts","primaryConcepts","campaign","campaignIndex","scoreTypes","isPlayedInStages","ozariaType","introContent","displayName","hackstackScenarioId","returnAfterCompleteMap"],u.definitions=u.definitions||{},u.definitions.classroomSub=_.cloneDeep(null===(r=s.definitions)||void 0===r?void 0:r.classroomSub);var l,d=o(u.denormalizedLevelProperties);try{for(d.s();!(l=d.n()).done;){var p=l.value;u.properties.levels.additionalProperties.properties[p]=_.cloneDeep(s.properties[p])}}catch(e){d.e(e)}finally{d.f()}for(var f=0,h=["name","description","i18n","replayable","slug","original","primerLanguage","shareable","concepts","scoreTypes"];f<h.length;f++){var m=h[f];u.properties.levels.additionalProperties.properties[m].format="hidden"}u.denormalizedModuleCampaignProperties=["name","fullName","slug","i18n","description"];var g,y=o(u.denormalizedModuleCampaignProperties);try{for(y.s();!(g=y.n()).done;){var v=g.value;u.properties[v]&&(u.properties.modules.items.properties[v]=_.cloneDeep(u.properties[v]))}}catch(e){y.e(e)}finally{y.f()}a.extendBasicProperties(u,"campaign"),a.extendTranslationCoverageProperties(u),a.extendPatchableProperties(u),e.exports=u},18960:(e,t,n)=>{"use strict";var r=n(975434),o=n(250636),i=r.object({title:"ChatMessage",description:"A chat message sent by a player, teacher, or AI chatbot to help the player during a level",required:["product","kind"],default:{product:"both",kind:"level-chat",releasePhase:"beta"}}),a=r.object({title:"Sender",description:"Who/what sent this message (bot, player, teacher)"},{id:r.objectId({links:[{rel:"db",href:"/db/user/{($)}"}],title:"User ID",description:"The user ID of the sender"}),name:{type:"string",title:"Name",description:"Which bot/user sent this message"},kind:{type:"string",enum:["player","teacher","bot"],title:"Kind",description:"which kind of sender this is"},i18n:{additionalProperties:!0,type:"object",format:"i18n",props:["name"],description:"Translations for the sender name"}}),s=r.object({title:"Message",description:"A message from the player or the bot"},{text:{type:"string",title:"Text",format:"markdown"},originalText:{type:"string",title:"Original Text",format:"markdown",description:"The original text of the message, not reflecting any manual edits to tune the response for future training"},sender:a,startDate:r.date({title:"Start Date",description:"The time the message started being sent"}),endDate:r.date({title:"End Date",description:"The time the message finished being sent"}),messageId:r.objectId({title:"Message ID",description:"The ID of the message"}),textComponents:r.object({title:"Text Components",description:"Structured message components"},{freeText:{type:"string",title:"Free Text",format:"markdown"},codeIssue:r.object({title:"Code Issue",description:"Text describing current code line"},{line:{type:"integer",title:"Line"},text:{type:"string",title:"Text",format:"markdown"}}),codeIssueExplanation:r.object({title:"Code Issue Explanation",description:"Text explaining the code issue"},{text:{type:"string",title:"Text",format:"markdown"}}),actionButtons:r.array({title:"Action Buttons",description:"Buttons that can be clicked to perform an action"},{type:"object",properties:{text:{type:"string",title:"Text"},action:{type:"string",title:"Action"}}}),code:{type:"string",title:"Code",format:"code"},links:r.array({title:"Links",description:"Links to more information"},{type:"object",properties:{text:{type:"string",title:"Text"},url:{type:"string",title:"URL"},i18n:{additionalProperties:!0,type:"object",format:"i18n",props:["text","url"],description:"Translations for the link text and URL"}}})}),i18n:{additionalProperties:!0,type:"object",format:"i18n",props:["text"],description:"Translations for the message text"}});o.extend(i.properties,{product:{type:"string",enum:["ozaria","codecombat","both"],title:"Product",description:"Which product(s) this message is for"},kind:{type:"string",enum:["level-chat","ai-league"],title:"Kind",description:"`level-chat`: for in-level chatbot messages. `ai-league-chat`: for AI League chatbot messages."},levelRealID:{type:"string",title:"Level ID",description:"The real ID of the level this message is for, we are referring a specific version of the level."},example:{type:"boolean",title:"Example",description:"Whether this is an example message or not. Example messages are not shown to users, but used in training."},releasePhase:{type:"string",enum:["beta","released"],title:"Release Phase",description:"Example messages start off in beta, then are released when they are completed"},apiUsage:{title:"API Usage",type:"object",description:"The API usage of the chat message",additionalProperties:!0,properties:{tool:{type:"string",description:"The tool/model used for the chat message"}}},message:s,context:r.object({title:"Context",description:"Contextual state when this message triggered"},{codeLanguage:{type:"string",title:"Code Language",description:"The programming language of the player"},spokenLanguage:{type:"string",title:"Spoken Language",description:"The spoken language of the player"},replyLanguage:{type:"string",title:"Reply Language",description:"The reply language of the AI"},player:r.objectId({links:[{rel:"db",href:"/db/user/{($)}"}],title:"Player",description:"The user ID of the player"}),playerName:{type:"string",title:"Player Name",description:"The broad name of the player, by which the bot knows them"},levelOriginal:r.objectId({links:[{rel:"db",href:"/db/level/{($)}/version"}],format:"latest-version-original-reference",title:"Level",description:"The level original ID of the level the player is on"}),levelName:{type:"string",title:"Level Name",description:"The name of the level the player is on"},apiProperties:{type:"array",title:"API Properties",description:"The APIs the player has access to in this level",items:r.PropertyDocumentationSchema},i18n:{additionalProperties:!0,type:"object",format:"i18n",props:["levelName"],description:"Translations for the context fields, like `levelName`"},code:r.object({title:"Code",description:"Start, solution, and current code"}
2,{start:{format:"code-languages-object",type:"object",title:"Start Code by Language",description:"The start code for the level, by programming language",additionalProperties:{type:"string",format:"code",description:"Start code for this programming language"}},solution:{format:"code-languages-object",type:"object",title:"Solution Code by Language",description:"The solution code for the level, by programming language",additionalProperties:{type:"string",format:"code",description:"Solution code for this programming language"}},current:{format:"code-languages-object",type:"object",title:"Current Code by Language",description:"The current code for the player, by programming language",additionalProperties:{type:"string",format:"code",description:"Current code for this programming language"}},fixed:{format:"code-languages-object",type:"object",title:"Fixed Code by Language",description:"The fixed code for the player after the suggested single change, by programming language",additionalProperties:{type:"string",format:"code",description:"Fixed code for this programming language after the suggested single change"}}}),codeComments:r.object({title:"Code Comments",description:"Code comment translation strings"},{context:{additionalProperties:{type:"string"},type:"object",title:"Code Comments Context"},i18n:{additionalProperties:!0,type:"object",format:"i18n",props:["context"],description:"Translations for the start code comments"}}),error:r.object({title:"Error",description:"Current error player is experiencing"},{codeSnippet:{type:"string",title:"Code Snippet",description:"The code snippet that caused the error"},hint:{type:"string",title:"Error Hint"},id:{type:"string",title:"Error ID"},errorCode:{type:"string",title:"Error Code"},level:{type:"string",title:"Error Level"},message:{type:"string",title:"Error Message"},messageNoLineInfo:{type:"string",title:"Error Message No Line Info"},range:{type:"array",title:"Error Range",items:{type:"object"}},type:{type:"string",title:"Error Type"},i18nParams:{additionalProperties:!0,type:"object",title:"Error Translation Parameters",description:"Parameters to be used in translating the error message (passed from Esper.js)"}}),goalStates:{type:"object",title:"Goal States",description:"The current state of the goals for the level",additionalProperties:r.object({title:"Goal State",description:"The current state for a goal in the level"},{name:{type:"string",title:"Name"},status:{type:"string",title:"Status",enum:["success","incomplete","failure"]},i18n:{additionalProperties:!0,type:"object",format:"i18n",props:["name"],description:"Translations for the goal name"}})},previousMessages:{type:"array",title:"Previous Messages",description:"The messages that been sent so far in this session",items:s}})}),i.definitions={},r.extendBasicProperties(i,"chat_message"),r.extendSearchableProperties(i),r.extendPermissionsProperties(i,"chat_message"),r.extendTranslationCoverageProperties(i),e.exports=i},264956:(e,t,n)=>{"use strict";var r=n(975434),o=r.object({title:"Classroom",required:["name"],default:{classroomItems:!0,initializedOuterStats:!0}});r.extendNamedProperties(o),_.extend(o.properties,{name:{type:"string",minLength:1},members:r.array({title:"Members"},r.objectId()),membersCount:{type:"integer",title:"Members Count",description:"Cached count of members.length, kept in sync whenever members changes. Avoids scanning the members array for analytics/reporting queries."},deletedMembers:r.array({title:"Deleted Members"},r.objectId()),ownerID:r.objectId(),description:{type:"string"},code:r.shortString({title:"Unique code to redeem"}),codeCamel:r.shortString({title:"UpperCamelCase version of code for display purposes"}),aceConfig:r.object({},{language:{type:"string",enum:["python","javascript","cpp","java"]},liveCompletion:{type:"boolean",default:!0},disablePaste:{type:"boolean",default:!1},codeFormats:r.array({title:"Code Formats",description:"Enable these code formats for students",minitems:1,uniqueItems:!0},{type:"string",enum:["text-code","blocks-and-code","blocks-text","blocks-icons"]}),codeFormatDefault:{type:"string",enum:["blocks-icons","blocks-text","blocks-and-code","text-code"],description:"Default co
2de format option for students. Default if unset: text-code."},levelChat:{type:"string",enum:["fixed_prompt_only","none"]}}),hackstackConfig:r.object({},{remixAllowed:{type:"boolean",default:!0},useNewUI:{type:"boolean",default:!1}}),averageStudentExp:{type:"string"},ageRangeMin:{type:"string"},ageRangeMax:{type:"string"},classDateStart:r.stringDate(),classDateEnd:r.stringDate(),classesPerWeek:{type:"string"},minutesPerClass:{type:"string"},archived:{type:"boolean",default:!1,description:'Visual only; determines if the classroom is in the "archived" list of the normal list.'},courses:r.array({title:"Courses"},r.object({title:"Course"},{_id:r.objectId(),updated:r.stringDate(),levels:r.array({title:"Levels"},r.object({title:"Level"},{assessment:{type:["boolean","string"]},assessmentPlacement:{type:"string"},practice:{type:"boolean"},practiceThresholdMinutes:{type:"number"},primerLanguage:{type:"string",enum:["javascript","python","cpp","java"]},shareable:{title:"Shareable",type:["string","boolean"],enum:[!1,!0,"project"],description:"Whether the level is not shareable, shareable, or a sharing-encouraged project level."},type:r.shortString(),original:r.objectId(),name:{type:"string"},displayName:r.shortString(),slug:{type:"string"},position:r.point2d(),mode:{type:"string"},minMsgs:{type:"number"},nextLevels:{type:"object",description:"object containing next levels original id and their details",additionalProperties:{type:"object",properties:{type:r.shortString(),original:r.objectId(),name:{type:"string"},slug:{type:"string"},nextLevelStage:{type:"number",title:"Next Level Stage",description:"Which capstone stage is unlocked"},conditions:r.object({},{afterCapstoneStage:{type:"number",title:"After Capstone Stage",description:"What capstone stage needs to be completed to unlock this next level"}})}}},first:{type:"boolean",description:"Is it the first level in the campaign"},campaignPage:{type:"number",title:"Campaign page number"},moduleNum:{type:"number",title:"Module number"},ozariaType:r.shortString(),introContent:r.array()}))})),initialFreeCourses:{description:"Courses that are free and will be automatically assigned to any joining student",type:"array",items:{type:["string"],links:[{rel:"db",href:"/db/course/{($)}/version"}]}},googleClassroomId:{title:"Google classroom id",type:"string"},otherProductId:{title:"Id in other product",type:"string"},lmsClassroomId:{title:"LMS classroom id",type:"string"},lmsClassroom:{type:"object",properties:{classId:{type:"string"},name:{type:"string"},provider:{type:"string"}}},grades:r.array({title:"Class Grades"},{type:"string",enum:["elementary","middle","high"]}),classroomItems:{title:"Items & Gems",type:"boolean",description:"Whether students should earn gems and equip items during gameplay"},studentLockMap:r.object({title:"Student Locking Info",description:"The teacher controls this in order to control student progress through the chapters.",additionalProperties:r.object({title:"Student Lock Object",description:"Key value of student id tied to the lock data."},{courseId:r.objectId(),levelOriginal:r.objectId({description:"Deprecated: use lockedLevels instead"}),lockedScenarioLevels:r.object({description:"AI Scenario levels that can be locked or unlocked",additionalProperties:["boolean",r.stringDate()]}),lockedLevels:r.object({additionalProperties:["boolean",r.stringDate()]}),optionalLevels:r.object({additionalProperties:["boolean",r.stringDate()]})})},{}),stats:r.object({additionalProperties:!0}),initializedOuterStats:{type:"boolean",default:!0,description:"whether the classroom.stats for the classroom is initialized"},type:{title:"Class Type",type:"string",enum:["","in-school","after-school","online","camp","camp-esports","camp-junior","homeschool","other","club-ozaria","club-esports","club-roblox","club-hackstack","annual-plan-cn-coco"]}}),r.extendBasicProperties(o,"Classroom"),r.extendPermissionsProperties(o),e.exports=o},736638:(e,t,n)=>{"use strict";var r=n(975434),o=r.object({title:"Course",required:["name"]});r.extendNamedProperties(o),_.extend(o.properties,{i18n:{type:"object",title:"i18n",format:"i18n",props:["name","description"]},campaignID:r.objectId(),concepts:r.array({title:"Concepts",uniqueItems:!0},r.concept),description:{type:"string"},duration:{oneOf:[{type:"object",title:"Course duration",properties:{total:{type:"string",title:"Total class time (overall)"},inGame:{type:"string",title:"In-game time"},totalTimeRange:{type:"string",title:"Total class time (range)",description:"Relevant for curriculum guides hover tooltip"},i18n:{type:"object",title:"i18n",format:"i18n",props:["total","inGame","totalTimeRange"]}}},{type:"number",description:"Approximate hours of content"}]},pricePerSeat:{type:"number",description:"Price per seat in USD cents."},free:{type:"boolean"},screenshot:{oneOf:[{type:"string",format:"image-file",title:"Thumbn
2ail image",description:"Relevant for teacher dashboard",pattern:/^db.*/},r.path({title:"URL",description:"Link to course screenshot."})]},adminOnly:{type:"boolean",description:"Deprecated in favor of releasePhase."},releasePhase:{enum:["beta","internalRelease","released","draft"],description:"How far along the course's development is, determining who sees it."},isOzaria:{type:"boolean",description:"Is this an ozaria course"},shortName:{type:"string",title:"Short Name",description:"Short name to be used on dashboards"},cstaStandards:r.array({title:"Standards",description:"Sample standards list for display on teacher dashboard curriculum guides"},{type:"object",title:"Standard",properties:{name:{type:"string",title:"Name"},description:{type:"string",title:"Description"},i18n:{type:"object",title:"i18n",format:"i18n",props:["name","description"]}}}),modules:{title:"Modules",type:"object",description:"Module information to be shown on the curriculum guide. Please use module number as key field.",additionalProperties:{type:"object",title:"Module",description:"Relevant for information displayed on curriculum guides in teacher dashboard for each module",default:{access:"paid"},properties:{number:{anyOf:[{type:"number",title:"Module number"},{type:"string",title:"Module number string"}],title:"Module number",description:"(like 1, 2, 3, or A1, A2, B1)"},duration:{type:"object",title:"Module duration",properties:{total:{type:"string",title:"Total class time (overall)"},inGame:{type:"string",title:"In-game time"},totalTimeRange:{type:"string",title:"Total class time (range)",description:"Relevant for curriculum guides hover tooltip"},i18n:{type:"object",title:"i18n",format:"i18n",props:["total","inGame","totalTimeRange"]}}},lessonSlidesUrl:{title:"Lesson Slides URLs",oneOf:[r.url({title:"Lesson Slides URL"}),{type:"object",title:"Lesson Slides URLs by Language",additionalProperties:r.url(),format:"code-languages-object"}]},concepts:r.array({title:"Concepts",uniqueItems:!0},r.concept),primaryConcepts:r.array({title:"Primary Concepts",description:"The main 1-3 concepts this module focuses on.",uniqueItems:!0,inEditor:!0},r.concept),name:r.shortString({title:"Module Name"}),access:{type:"string",enum:["free","sales-call","paid"],title:"Access",description:"Whether this module is free, free with a sales call, or paid."},i18n:{type:"object",title:"i18n",format:"i18n",props:["name","lessonSlidesUrl"]},contentCampaignSlug:{type:"string",title:"Content Campaign Slug",description:"The slug of the campaign that contains the content for this module."},galaxy:{type:"object",title:"Galaxy related information",properties:{portalImage:{format:"image-file",title:"Portal Image",description:"The image to use for the portal of the module on the galaxy interface."},position:{type:"object",title:"Position on the galaxy interface",properties:{row:{type:"number",title:"Row",description:"The row of the module on the galaxy interface."},column:{type:"number",title:"Column",description:"The column of the module on the galaxy interface."}}}}}}}},curriculum:r.url({title:"Curriculum URL",description:"Link to curriculum folder. Relevant for teacher dashboard curriculum guides."}),standardsAlignmentLink:r.url({title:"Standards Alignment URL",description:"Link to standards alignment for display on teacher dashboard curriculum guides."}),standardsAlignmentLabel:r.shortString({title:"Standards Alignment Label",description:'Label for the standards alignment link on teacher dashboard curriculum guides, e.g. "CSTA Standards Alignment".'}),product:{type:"string",enum:["ozaria","codecombat","hackstack","junior"],description:"Which product this course is for, if applicable. Affects where the course appears in the teacher dashboard."},showLevelNumbers:{type:"boolean",title:"Level Number",description:"Whether to display level number or not.",default:!0}}),r.extendBasicProperties(o,"Course"),r.extendTranslationCoverageProperties(o),r.extendPatchableProperties(o),r.extendSearchableProperties(o),e.exports=o},344342:(e,t,n)=>{"use strict";var r=n(975434),o=r.object({title:"Course Instance"});_.extend(o.properties,{courseID:r.objectId(),classroomID:r.objectId(),description:{type:"string"},members:r.array({title:"Members"},r.objectId()),name:{type:"string"},ownerID:r.objectId(),prepaidID:r.objectId(),aceConfig:{language:{type:"string",enum:["python","javascript","cpp","java"]}},hourOfCode:{type:"boolean",description:"Deprecated, do not use."},stats:r.object({additionalProperties:!0}),startLockedLevel:r.shortString({description:"Updated by teacher, lock this level and all following levels in a course"})}),r.extendBasicProperties(o,"CourseInstance"),e.exports=o},364891:(e,t,n)=>{"use strict";var r=n(975434);e.exports={type:"object",default:{previouslyAchievedAmount:0},properties:{user:r.objectId({links:[{rel:"extra",href:"/db/user/{($)}"}]}),achievement:r.objectId({links:[{rel:"extra",href:"/db/achievement/{($)}"}]}
2),collection:{type:"string"},triggeredBy:r.objectId(),achievementName:{type:"string"},created:{type:["date","string","number"]},changed:{type:["date","string","number"]},achievedAmount:{type:"number"},earnedPoints:{type:"number"},previouslyAchievedAmount:{type:"number"},earnedRewards:r.RewardSchema("awarded by this achievement to this user"),notified:{type:"boolean"},archived:r.date({description:"Marks this record for automatic online archiving to cold storage by our cloud database."})}}},662319:(e,t,n)=>{"use strict";var r=n(975434),o={type:"object",title:"Feature Flag",required:["name","type"],properties:{name:r.shortString({title:"Name"}),type:r.shortString({title:"Type",description:"Intended type of the flag.",enum:["global","user"]}),enabled:{type:"boolean",description:"Whether to apply feature flag",default:!1}}};r.extendBasicProperties(o,"feature");var i={type:"object",required:["enabled","updated"],properties:{enabled:{type:"boolean",description:"Whether to apply feature flag",default:!1},updated:r.date()}},a=_.merge(_.cloneDeep(o),{type:"object",required:["authorityID","authorityType","updated"],properties:{authorityID:r.objectId({description:"Feature setting authority"}),authorityType:r.shortString({title:"Type",description:"Authority type settings by",enum:["api-client"]}),updated:r.date()}});e.exports={FeatureSchema:o,FeatureAuthoritySchema:i,FeatureRecipientSchema:a}},334657:(e,t,n)=>{"use strict";var r=n(975434),o=n(385651),i=r.object();r.extendNamedProperties(i),i.properties.body={type:"string",title:"Content",description:"The body content of the article, in Markdown.",format:"markdown"},i.properties.i18n={type:"object",format:"i18n",props:["name","body"],description:"Help translate this article"},i.displayProperty="name",i.properties.voiceOver=r.voiceOver;var a={title:"Side",description:"A side.",type:"string",enum:["left","right","top","bottom"]},s={title:"Thang",description:"The name of a Thang.",type:"string",maxLength:60,format:"thang"},c=["boolean","integer","number","null","string"],u=r.object({title:"Event Prerequisite",format:"event-prereq",description:"Script requires that the value of some property on the event triggering it to meet some prerequisite.",required:["eventProps"]},{eventProps:r.array({default:["thang"],format:"event-value-chain",maxItems:10,title:"Event Property",description:'A chain of keys in the event, like "thang.pos.x" to access event.thang.pos.x.'},r.shortString({title:"Property",description:"A key in the event property key chain."})),equalTo:r.object({type:c,title:"==",description:"Script requires the event's property chain value to be equal to this value."}),notEqualTo:r.object({type:c,title:"!=",description:"Script requires the event's property chain value to *not* be equal to this value."}),greaterThan:{type:"number",title:">",description:"Script requires the event's property chain value to be greater than this value."},greaterThanOrEqualTo:{type:"number",title:">=",description:"Script requires the event's property chain value to be greater or equal to this value."},lessThan:{type:"number",title:"<",description:"Script requires the event's property chain value to be less than this value."},lessThanOrEqualTo:{type:"number",title:"<=",description:"Script requires the event's property chain value to be less than or equal to this value."},containingString:r.shortString({title:"Contains",description:"Script requires the event's property chain value to be a string containing this string."}),notContainingString:r.shortString({title:"Does not contain",description:"Script requires the event's property chain value to *not* be a string containing this string."}),containingRegexp:r.shortString({title:"Contains Regexp",description:"Script requires the event's property chain value to be a string containing this regular expression."}),notContainingRegexp:r.shortString({title:"Does not contain regexp",description:"Script requires the event's property chain value to *not* be a string containing this regular expression."})}),l=r.object({title:"Goal",description:"A goal that the player can accomplish.",required:["name","id"]},{name:r.shortString({title:"Name",description:'Name of the goal that the player will see, like "Defeat eighteen dragons".'}),i18n:{type:"object",format:"i18n",props:["name"],description:"Help translate this goal"},id:r.shortString({title:"ID",description:'Unique identifier for this goal, like "defeat-dragons".',pattern:"^[a-z0-9-]+$"}),worldEndsAfter:{title:"World Ends After",description:"When included, ends the world this many seconds after this goal succeeds or fails.",type:"number",minimum:0,exclusiveMinimum:!0,maximum:300,default:3},howMany:{title:"How Many",description:"When included, require only this many of the listed goal targets instead of all of them.",type:"integer",minimum:1},hiddenGoal:{title:"Hidden",description:"Hidden goals don't show up in the goals area for the player until they're failed. (Usually they're obvious, like \"don't die\".)",type:"boolean"},optional:{title:"Optional",description:"Optional goals do not need to be completed for overallStatus to be success.",type:"boolean"},team:r.shortString({title:"Team",description:"Name of the team this goal is for, if it is not for all of the playable teams."}),killThangs:r.array({title:"Kill Thangs",description:"A list of Thang IDs the player should kill, or team names.",uniqueItems:!0,minItems:1,default:["ogres"]},s),saveThangs:r.array({title:"Save Thangs",description:"A list of Thang IDs the player should save, or team names",uniqueItems:!0,minItems:1,default:["Hero Placeholder"]},s),getToLocations:r.object({title:"Get To Locations",description:'Will be set off when any of the "who" touch any of the "targets"',required:["who","targets"]},{who:r.array({title:"Who",description:"The Thangs who must get to the target locations.",minItems:1},s),targets:r.array({title:"Targets",description:"The target locations to which the Thangs must get.",minItems:1},s)}),getAllToLocations:r.array({title:"Get all to locations",description:'Similar to getToLocations but now a specific "who" can have a specific "target", also must be used with the HowMany property for desired effect',required:["getToLocation"]},r.object({title:"",description:""},{getToLocation:r.object({title:"Get To Locations",description:"TODO: explain",required:["who","targets"]},{who:r.array({title:"Who",description:"The Thangs who must get to the target locations.",minItems:1},s),targets:r.array({title:"Targets",description:"The target locations to which the Thangs must get.",minItems:1},s)})})),keepFromLocations:r.object({title:"Keep From Locations",description:"TODO: explain",required:["who","targets"]},{who:r.array({title:"Who",description:"The Thangs who must not get to the target locations.",minItems:1},s),targets:r.array({title:"Targets",description:"The target locations to which the Thangs must not get.",minItems:1},s)}),keepAllFromLocations:r.array({title:"Keep ALL From Locations",description:'Similar to keepFromLocations but now a specific "who" can have a specific "target", also must be used with the HowMany property for desired effect',required:["keepFromLocation"]},r.object({title:"",description:""},{keepFromLocation:r.object({title:"Keep From Locations",description:"TODO: explain",required:["who","targets"]},{who:r.array({title:"Who",description:"The Thangs who must not get to the target locations.",minItems:1},s),targets:r.array({title:"Targets",description:"The target locations to which the Thangs must not get.",minItems:1},s)})})),leaveOffSides:r.object({title:"Leave Off Sides",description:"Sides of the level to get some Thangs to leave across.",required:["who","sides"]},{who:r.array({title:"Who",description:"The Thangs which must leave off the sides of the level.",minItems:1},s),sides:r.array({title:"Sides",description:"The sides off which the Thangs must leave.",minItems:1},a)}),keepFromLeavingOffSides:r.object({title:"Keep From Leaving Off Sides",description:"Sides of the level to keep some Thangs from leaving across.",required:["who","sides"]},{who:r.array({title:"Who",description:"The Thangs which must not leave off the sides of the level.",minItems:1},s),sides:a},{title:"Sides",description:"The sides off which the Thangs must not leave.",minItems:1},a),collectThangs:r.object({title:"Collect",description:"Thangs that other Thangs must collect.",required:["who","targets"]},{who:r.array({title:"Who",description:"The Thangs which must collect the target items.",minItems:1},s),targets:r.array({title:"Targets",description:"The target items which the Thangs must collect.",minItems:1},s)}),keepFromCollectingThangs:r.object({title:"Keep From Collecting",description:"Thangs that the player must prevent other Thangs from collecting.",required:["who","targets"]},{who:r.array({title:"Who",description:"The Thangs which must not collect the target items.",minItems:1},s),targets:r.array({title:"Targets",description:"The target items which the Thangs must not collect.",minItems:1},s)}),codeProblems:r.array({title:"Code Problems",description:"A list of Thang IDs that should not have any code problems, or team names.",uniqueItems:!0,minItems:1,default:["humans"]},s),linesOfCode:{title:"Lines of Code",description:"A mapping of Thang IDs or teams to how many many lines of code should be allowed (well, statements).",type:"object",default:{humans:10}
2,additionalProperties:{type:"integer",description:"How many lines to allow for this Thang."}},html:r.object({title:"HTML",description:"A jQuery selector and what its result should be"},{selector:{type:"string",description:'jQuery selector to run on the user HTML, like "h1:first-child"'},valueChecks:r.array({title:"Value checks",description:"Logical checks on the resulting value for this goal to pass.",format:"event-prereqs"},u)}),concepts:r.array({title:"Target Concepts",description:"Which programming concepts this goal demonstrates.",uniqueItems:!0,format:"concepts-list"},r.concept)}),d=r.object({title:"Dialogue Button",description:"A button to be shown to the user with the dialogue.",required:["text"]},{text:{title:"Title",description:"The text that will be on the button",default:"Okay",type:"string",maxLength:30},channel:r.shortString({title:"Channel",format:"event-channel",description:'Channel that this event will be broadcast over, like "level:set-playing".'}),event:{type:"object",title:"Event",description:"Event that will be broadcast when this button is pressed, like {playing: true}."},buttonClass:r.shortString({title:"Button Class",description:'CSS class that will be added to the button, like "btn-primary".'}),i18n:{type:"object",format:"i18n",props:["text"],description:"Help translate this button"}}),p=r.object({title:"Point",description:"An {x, y} coordinate point.",format:"point2d",default:{x:15,y:20}},{x:{title:"x",description:"The x coordinate.",type:"number"},y:{title:"y",description:"The y coordinate.",type:"number"}}),f=r.object({title:"Thang Command",description:"Make a target Thang move or say something, or select/deselect it.",required:["id"],default:{id:"Hero Placeholder"}},{id:s,select:{title:"Select",description:"Select or deselect this Thang.",type:"boolean"},say:r.object({title:"Say",description:"Make this Thang say a message.",required:["text"],default:{mood:"explain"}},{blurb:r.shortString({title:"Blurb",description:"A very short message to display above this Thang's head. Plain text.",maxLength:50}),mood:r.shortString({title:"Mood",description:"The mood with which the Thang speaks.",enum:["explain","confused","curious","dance-happy","dance","idle","neutral","sad","debrief","congrats","attack","joke","tip","alarm"]}),text:{title:"Text",description:"A short message to display in the dialogue area. Markdown okay.",type:"string",maxLength:400},sound:r.object({title:"Sound",description:"A dialogue sound file to accompany the message.",required:["mp3","ogg"]},{mp3:r.shortString({title:"MP3",format:"sound-file"}),ogg:r.shortString({title:"OGG",format:"sound-file"}),preload:{title:"Preload",description:"Whether to load this sound file before the level can begin (typically for the first dialogue of a level).",type:"boolean"}}),voiceOver:r.voiceOver,responses:r.array({title:"Buttons",description:"An array of buttons to include with the dialogue, with which the user can respond."},d),character:r.shortString({title:"Character",description:'The character portrait to use for the say message. Currently doesn\'t do anything. Use "Character Portrait" in the settings.',enum:["vega","blank","capella"],default:"vega"}),i18n:{type:"object",format:"i18n",props:["blurb","text","sound"],description:"Help translate this message"}}),move:r.object({title:"Move",description:"Tell the Thang to move.",required:["target"],default:{target:{},duration:500}},{target:_.extend(_.cloneDeep(p),{title:"Target",description:"Target point to which the Thang will move.",default:{x:20,y:20}}),duration:{title:"Duration",description:"Number of milliseconds over which to move, or 0 for an instant move.",type:"integer",minimum:0,format:"milliseconds"}}),tutorial:r.object({title:"Tutorial",description:"Move Vega around on the screen as a step by step tutorial to explain things.",default:{internalRelease:!1}},{internalRelease:{title:"Internal Release",description:"Only show this step to admins or accounts with @codecombat emails",type:"boolean"},position:r.shortString({title:"Dialog Position",description:'What side (or no side with "stationary") of the target element to move the tutorial modal to',enum:["smart","center","stationary","left","top","right","down"],default:"smart"}),targetElement:r.shortString({title:"Target Element",description:"What part of the screen to point at, like the editor, code bank or play button",enum:["Run Button","Next Button","Play Button","Update Button","Goal List","Code Bank Button","Code Editor Window"],default:"Code Editor Window"}),animation:r.shortString({title:"Element Animation",description:"How to animate the target",enum:["Outline","Shake","Zoom"]}),targetLine:{title:"Target Line",description:"Highlight a specific line in the code editor",type:"number",default:1},grayOverlay:{title:"Gray Overlay",description:"Fade out the rest of the website, except the message itself and the targetElement (if you set one).",type:"boolean",default:!0},advanceOnTarget:{title:"Advance On Target",description:"Go to next step when clicking the target element (requires Target Element to be set)",type:"boolean"},targetThangs:r.array({title:"Target Thangs",description:"Thang IDs of target Sprites to highlight."},s)})}),h=r.object({title:"Note Group",description:"A group of notes that should be sent out as a result of this script triggering.",displayProperty:"name"},{name:{title:"Name",description:'Short name describing the script, like "Anya greets the player", for your convenience.',type:"string"},dom:r.object({title:"DOM",description:"Manipulate things in the play area DOM, outside of the level area canvas."},{focus:r.shortString({title:"Focus",description:"Set the window focus to this DOM selector string."}),showVictory:{title:"Show Victory",description:"Show the done button and maybe also the victory modal.",enum:[!0,"Done Button","Done Button And Modal"]},highlight:r.object({title:"Highlight",description:"Highlight the target DOM selector string with a big arrow."},{target:r.shortString({title:"Target",description:"Target highlight element DOM selector string."}),delay:{type:"integer",minimum:0,title:"Delay",description:"Show the highlight after this many milliseconds. Doesn't affect the dim shade cutout highlight method."},offset:_.extend(_.cloneDeep(p),{title:"Offset",description:"Pointing arrow tip offset in pixels from the default target.",format:null}),rotation:{type:"number",minimum:0,title:"Rotation",description:"Rotation of the pointing arrow, in radians. PI / 2 points left, PI points up, etc.",format:"radians"},sides:r.array({title:"Sides",description:"Which sides of the target element to point at."},{type:"string",enum:["left","right","top","bottom"],title:"Side",description:"A side of the target element to point at."})}),lock:{title:"Lock",description:"Whether the interface should be locked so that the player'
2s focus is on the script, or specific areas to lock.",type:["boolean","array"],items:{type:"string",enum:["surface","editor","palette","hud","playback","playback-hover","level"]}},letterbox:{type:"boolean",title:"Letterbox",description:"Turn letterbox mode on or off. Disables surface and playback controls."}}),playback:r.object({title:"Playback",description:"Control the playback of the level."},{playing:{type:"boolean",title:"Set Playing",description:"Set whether playback is playing or paused."},scrub:r.object({title:"Scrub",description:"Scrub the level playback time to a certain point.",default:{offset:2,duration:1e3,toRatio:.5}},{offset:{type:"integer",title:"Offset",description:"Number of frames by which to adjust the scrub target time."},duration:{type:"integer",title:"Duration",description:"Number of milliseconds over which to scrub time.",minimum:0,format:"milliseconds"},toRatio:{type:"number",title:"To Progress Ratio",description:"Set playback time to a target playback progress ratio.",minimum:0,maximum:1},toTime:{type:"number",title:"To Time",description:"Set playback time to a target playback point, in seconds.",minimum:0},toGoal:r.shortString({title:"To Goal",description:"Set playback time to when this goal was achieved. (TODO: not implemented.)"})})}),script:r.object({title:"Script",description:"Extra configuration for this action group."},{duration:{type:"integer",minimum:0,title:"Duration",description:"How long this script should last in milliseconds. 0 for indefinite.",format:"milliseconds"},skippable:{type:"boolean",title:"Skippable",description:"Whether this script shouldn't bother firing when the player skips past all current scripts."},beforeLoad:{type:"boolean",title:"Before Load",description:"Whether this script should fire before the level is finished loading."}}),sprites:r.array({title:"Sprites",description:"Commands to issue to Sprites on the Surface."},f),surface:r.object({title:"Surface",description:"Commands to issue to the Surface itself."},{focus:r.object({title:"Camera",description:"Focus the camera on a specific point on the Surface.",format:"viewport"},{target:{anyOf:[p,s,{type:"null"}],title:"Target",description:"Where to center the camera view.",default:{x:0,y:0}},zoom:{type:"number",minimum:0,exclusiveMinimum:!0,maximum:64,title:"Zoom",description:"What zoom level to use."},duration:{type:"number",minimum:0,title:"Duration",description:"in ms"},bounds:r.array({title:"Boundary",maxItems:2,minItems:2,default:[{x:0,y:0},{x:46,y:39}],format:"bounds"},p),isNewDefault:{type:"boolean",format:"hidden",title:"New Default",description:"Set this as new default zoom once scripts end."}}),highlight:r.object({title:"Highlight",description:"Highlight specific Sprites on the Surface."},{targets:r.array({title:"Targets",description:"Thang IDs of target Sprites to highlight."},s),delay:{type:"integer",minimum:0,title:"Delay",description:"Delay in milliseconds before the highlight appears."}}),lockSelect:{type:"boolean",title:"Lock Select",description:"Whether to lock Sprite selection so that the player can't select/deselect anything."}}),sound:r.object({title:"Sound",description:"Commands to control sound playback."},{suppressSelectionSounds:{type:"boolean",title:"Suppress Selection Sounds",description:"Whether to suppress selection sounds made from clicking on Thangs."},music:r.object({title:"Music",description:"Control music playing"},{play:{title:"Play",type:"boolean"},file:r.shortString({title:"File",enum:["/music/OzariaPhoenixLandsMusicLoop4","/music/OzariaPhoenixLandsMusicLoop3","/music/OzariaPhoenixLandsMusicLoop2b","/music/OzariaPhoenixLandsMusicLoop1b","/music/OzariaCarnivalMusicLoop1","/music/OzariaCarnivalMusicLoop2","/music/OzariaCarnivalMusicLoop3","/music/OzariaCityMusicLoop1","/music/OzariaCityMusicLoop2","/music/OzariaCityMusicLoop3","/music/OzariaLoopMusic1","/music/OzariaLoopMusic2","/music/OzariaLoopMusic3","/music/OzariaLoopMusic5","/music/OzariaMusicLoop4","/music/SpiritLandsAmbient01","/music/OzariaSpiritLands1","/music/OzariaSpiritLands2","/music/OzariaSpiritLands3","/music/forestAmbience01","/music/forestAmbience02","/music/forestAmbience03","/music/mountainWind01","/music/music_level_1","/music/music_level_2","/music/music_level_3","/music/music_level_4","/music/music_level_5","/music/music_sophia_1"]})})})}),m=r.object({title:"Script",description:"A script fires off a chain of notes to interact with the game when a certain event triggers it.",required:["channel"],default:{channel:"world:won",
2noteChain:[]}},{id:r.shortString({title:"ID",description:"A unique ID that other scripts can rely on in their Happens After prereqs, for sequencing.",pattern:"^[a-zA-Z 0-9:'\"_!-]+$"}),channel:r.shortString({title:"Event",format:"event-channel",description:'Event channel this script might trigger for, like "world:won".'}),eventPrereqs:r.array({title:"Event Checks",description:"Logical checks on the event for this script to trigger.",format:"event-prereqs"},u),repeats:{title:"Repeats",description:"Whether this script can trigger more than once during a level.",enum:[!0,!1,"session"]},scriptPrereqs:r.array({title:"Happens After",description:"Scripts that need to fire first."},r.shortString({title:"ID",description:"A unique ID of a script."})),notAfter:r.array({title:"Not After",description:"Do not run this script if any of these scripts have run."},r.shortString({title:"ID",description:"A unique ID of a script."})),noteChain:r.array({title:"Actions",description:"A list of things that happen when this script triggers."},h)}),g=r.object({title:"Thang",description:'Thangs are any units, doodads, or abstract things that you use to build the level. ("Thing" was too confusing to say.)',format:"thang",required:["id","thangType","components"],default:{id:"Boris",thangType:"Soldier",components:[]}},{id:s,thangType:r.objectId({links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],title:"Thang Type",description:"A reference to the original Thang template being configured.",format:"thang-type"}),components:r.array({title:"Components",description:"Thangs are configured by changing the Components attached to them.",uniqueItems:!0,format:"thang-components-array"},o)}),y=r.object({title:"System",description:"Configuration for a System that this Level uses.",format:"level-system",required:["original","majorVersion"],default:{majorVersion:0,config:{}},links:[{rel:"db",href:"/db/level.system/{(original)}/version/{(majorVersion)}"}]},{original:r.objectId({title:"Original",description:"A reference to the original System being configured.",format:"hidden"}),config:r.object({title:"Configuration",description:"System-specific configuration properties.",additionalProperties:!0,format:"level-system-configuration"}),majorVersion:{title:"Major Version",description:"Which major version of the System is being used.",type:"integer",minimum:0,format:"hidden"}}),v=r.object({title:"Article",description:"Reference to a general documentation article.",required:["original"],format:"latest-version-reference",default:{original:null,majorVersion:0},links:[{rel:"db",href:"/db/article/{(original)}/version/{(majorVersion)}"}]},{original:r.objectId({title:"Original",description:"A reference to the original Article."}),majorVersion:{title:"Major Version",description:"Which major version of the Article is being used.",type:"integer",minimum:0}}),b={type:"object",additionalProperties:!1,properties:{type:{title:"Content type",enum:["cinematic","interactive","cutscene-video","avatarSelectionScreen"]},contentId:{oneOf:[r.stringID({title:"Content ID for all languages"}),{type:"object",title:"Content ID specific to languages",additionalProperties:r.stringID(),format:"code-languages-object"}]}}},w=r.object({title:"Level",description:"A spectacular level which will delight and educate its stalwart players with the sorcery of coding.",required:["name"],default:{name:"Ineffable Wizardry",description:"This level is indescribably flarmy.",documentation:{},scripts:[],thangs:[],systems:[],victory:{},type:"hero",goals:[{id:"ogres-die",name:"Defeat the ogres.",killThangs:["ogres"],worldEndsAfter:3},{id:"humans-survive",name:"Your hero must survive.",saveThangs:["Hero Placeholder"],howMany:1,worldEndsAfter:3,hiddenGoal:!0}],concepts:["basic_syntax"],product:"codecombat"}});r.extendNamedProperties(w),_.extend(w.properties,{description:{title:"Description",description:"A short explanation of what this level is about.",type:"string",maxLength:65536,format:"markdown",inEditor:!0},displayName:r.shortString({title:"Display Name",inEditor:!0}
2),studentPlayInstructions:{title:"Student Play Instructions",description:"Instructions for game dev levels when students play them.",type:"string",maxLength:65536,format:"markdown",inEditor:!0},loadingTip:{type:"string",title:"Loading Tip",description:"What to show for this level while it's loading.",inEditor:"codecombat"},documentation:r.object({title:"Documentation",description:"Documentation articles relating to this level.",default:{specificArticles:[],generalArticles:[]},inEditor:!0},{specificArticles:r.array({title:"Specific Articles",description:"Specific documentation articles that live only in this level.",uniqueItems:!0},i),generalArticles:r.array({title:"General Articles",description:"General documentation articles that can be linked from multiple levels.",uniqueItems:!0},v),hints:r.array({title:"Hints",description:"Tips and tricks to help unstick a player for the level.",uniqueItems:!0},{type:"object",properties:{body:{type:"string",title:"Content",description:"The body content of the article, in Markdown.",format:"markdown"},i18n:{type:"object",format:"i18n",props:["body"],description:"Help translate this hint"}}}),hintsB:r.array({title:"HintsB",description:"2nd style of hints for a/b testing significant variations",uniqueItems:!0},{type:"object",properties:{body:{type:"string",title:"Content",description:"The body content of the article, in Markdown.",format:"markdown"},i18n:{type:"object",format:"i18n",props:["body"],description:"Help translate this hint"}}})}),screenshot:{type:"string",format:"image-file",title:"Screenshot",description:"Relevant for teacher dashboard",inEditor:"ozaria"},exemplarProjectUrl:r.url({title:"Exemplar Project URL",description:"Needed for capstones only. Relevant for teacher dashboard (curriculum guides and projects page)",inEditor:"ozaria"}),exemplarCodeUrl:r.url({title:"Exemplar Code URL",description:"Needed for capstones only. Relevant for teacher dashboard (curriculum guides and projects page)",inEditor:"ozaria"}),projectRubricUrl:r.url({title:"Project Rubric URL",description:"Needed for capstones only. Relevant for teacher dashboard (curriculum guides and projects page)",inEditor:"ozaria"}),totalStages:r.int({title:"Capstone Total Stages",description:"Only needed for chapter 1 capstones. Tells the teacher dashboard (track progress table and curriculum guide) where to display this capstone. Required when we want to offset capstone to display after levels that are between the stages.",inEditor:"ozaria"}),arenaCurriculumUrl:r.url({title:"Arena Curriculum URL",description:"Needed for arena levels only. Relevant for teacher dashboard (ai league page)",inEditor:"codecombat"}),nextLevel:{type:"object",links:[{rel:"extra",href:"/db/level/{($)}"},{rel:"db",href:"/db/level/{(original)}/version/{(majorVersion)}"}],format:"latest-version-reference",title:"Next Level",description:"Reference to the next level players will play after beating this one.",inEditor:"codecombat"},scripts:r.array({title:"Scripts",description:"An array of scripts that trigger based on what the player does and affect things outside of the core level simulation."},m),thangs:r.array({title:"Thangs",description:"An array of Thangs that make up the level."},g),systems:r.array({title:"Systems",description:"Levels are configured by changing the Systems attached to them.",uniqueItems:!0},y),victory:r.object({title:"Victory Screen",inEditor:"codecombat"},{body:{type:"string",format:"markdown",title:"Body Text",description:"Inserted into the Victory Modal once this level is complete. Tell the player they did a good job and what they accomplished!"},i18n:{type:"object",format:"i18n",props:["body"],description:"Help translate this victory message"}}),i18n:{type:"object",format:"i18n",props:["name","description","loadingTip","studentPlayInstructions","displayName"],description:"Help translate this level",inEditor:!0},banner:{type:"string",format:"image-file",title:"Banner",inEditor:"codecombat"},goals:r.array({title:"Goals",description:"An array of goals which are visible to the player and can trigger scripts.",inEditor:!0},l),type:r.shortString({title:"Type",description:"What type of level this is.",enum:["campaign","ladder","ladder-tutorial","hero","hero-ladder","hero-coop","course","course-ladder","game-dev","web-dev","intro"],inEditor:!0}),kind:r.shortString({title:"Kind",description:"Similar to type, but just for our organization.",enum:["demo","usage","mastery","advanced","practice","challenge"],inEditor:"codecombat"}),ozariaType:r.shortString({title:"Ozaria Level Type",description:"Similar to type, specific to ozaria.",enum:["practice","challenge","capstone"],inEditor:"ozaria"}),terrain:r.terrainString,requiresSubscription:{title:"Requires Subscription",description:"Whether this level is available to subscribers only.",type:"boolean",inEditor:"codecombat"},classroomSub:{$ref:"#/definitions/classroomSub",inEditor:!0},requiresSignUp:{title:"Require SignUp",description:"Whether this level is available to anonymous user",type:"boolean",inEditor:"codecombat"},tasks:r.array({title:"Tasks",description:"Tasks to be completed for this level."},r.task),helpVideos:r.array({title:"Help Videos",inEditor:"codecombat"},r.object({default:{style:"eccentric",url:"",free:!1}},{style:r.shortString({title:"Style",description:"Like: original, eccentric, scripted, edited, etc."}),free:{type:"boolean",title:"Free",description:"Whether this video is freely available to all players without a subscription."},url:r.url({title:"URL",description:"Link to the video on Vimeo."})})),replayable:{type:"boolean",title:"Replayable",description:"Whether this (hero) level infinitely scales up its difficulty and can be beaten over and over for greater rewards.",inEditor:"codecombat"},buildTime:{type:"number",description:"How long it has taken to build this level."},practice:{type:"boolean",inEditor:"codecombat"},practiceThresholdMinutes:{type:"number",description:"Players with larger playtimes may be directed to a practice level.",inEditor:"codecombat"},assessment:{type:["boolean","string"],enum:[!0,!1,"open-ended","cumulative"],description:"Set to true if this is an assessment level.",inEditor:!0},assessmentPlacement:{type:"string",enum:["middle","end"],inEditor:"codecombat"},characterPortrait:r.shortString({title:"Character Portrait",description:"The character portrait to use for the say messages.",enum:["vega","blank","capella","octans","wise-capella","astra","snikrep","salazar","young-salazar","dragon-salazar"],default:"vega",inEditor:"ozaria"}),primerLanguage:{type:"string",enum:["javascript","python"],description:"Programming language taught by this level.",inEditor:"codecombat"}
2,shareable:{title:"Shareable",type:["string","boolean"],enum:[!1,!0,"project"],description:'Whether the level is not shareable (false), shareable (true), or a sharing-encouraged project level ("project"). Make sure to use "project" for project levels so they show up correctly in the Teacher Dashboard.',inEditor:!0},adventurer:{type:"boolean",inEditor:"codecombat"},adminOnly:{type:"boolean",inEditor:"codecombat"},releasePhase:{enum:["beta","internalRelease","released"],title:"Release status",description:"Release status of the level, determining who sees it.",default:"internalRelease",inEditor:!0},disableSpaces:{type:["boolean","integer"],inEditor:"codecombat"},hidesSubmitUntilRun:{type:"boolean",inEditor:"codecombat"},hidesPlayButton:{type:"boolean",inEditor:"codecombat"},hidesRunShortcut:{type:"boolean",inEditor:"codecombat"},hidesHUD:{type:"boolean",inEditor:"codecombat"},hidesSay:{type:"boolean",inEditor:"codecombat"},hidesCodeToolbar:{type:"boolean",inEditor:"codecombat"},hidesRealTimePlayback:{type:"boolean",inEditor:"codecombat"},backspaceThrottle:{type:"boolean",inEditor:"codecombat"},lockDefaultCode:{type:["boolean","integer"],inEditor:"codecombat"},moveRightLoopSnippet:{type:"boolean",inEditor:"codecombat"},realTimeSpeedFactor:{type:"number",inEditor:"codecombat"},autocompleteFontSizePx:{type:"number",inEditor:"codecombat"},requiredCode:r.array({inEditor:!0},{type:"string"}),suspectCode:r.array({inEditor:!0},{type:"object",properties:{name:{type:"string"},pattern:{type:"string"}}}),autocompleteReplacement:r.array({inEditor:!0},{type:"object",properties:{name:{type:"string"},snippets:{type:"object",title:"Snippets",description:"List of snippets for the respective programming languages",additionalProperties:r.codeSnippet,format:"code-languages-object"}}}),requiredGear:{type:"object",title:"Required Gear",description:"Slots that should require one of a set array of items for that slot",inEditor:"codecombat",additionalProperties:{type:"array",items:{type:"string",links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],format:"latest-version-original-reference"}}},restrictedGear:{type:"object",title:"Restricted Gear",description:"Slots that should restrict all of a set array of items for that slot",inEditor:"codecombat",additionalProperties:{type:"array",items:{type:"string",links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],format:"latest-version-original-reference"}}},requiredProperties:{type:"array",items:{type:"string"},description:"Names of properties a hero must have equipped to play.",format:"solution-gear",title:"Required Properties",inEditor:"codecombat"},restrictedProperties:{type:"array",items:{type:"string"},description:"Names of properties a hero must not have equipped to play.",title:"Restricted Properties",inEditor:"codecombat"},recommendedHealth:{type:"number",minimum:0,exclusiveMinimum:!0,description:"If set, will show the recommended health to be able to beat this level with the intended main solution to the player when choosing equipment.",format:"solution-stats",title:"Recommended Health",inEditor:"codecombat"},maximumHealth:{type:"number",minimum:0,exclusiveMinimum:!0,description:"If set, will enforce the maximum health of the hero.",title:"Maximum Health",inEditor:"codecombat"},clampedProperties:{type:"object",title:"Clamped Properties",description:"Other non-health properties that should be clamped to a range of values (attackDamage, maxSpeed, etc.). Only applies for classroom players with classroom items enabled.",inEditor:"codecombat",additionalProperties:{type:"object",properties:{min:{type:"number"},max:{type:"number"}}}},allowedHeroes:{type:"array",title:"Allowed Heroes",description:"Which heroes can play this level. For any hero, leave unset.",inEditor:"codecombat",items:{type:"string",links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],format:"latest-version-original-reference"}},campaign:r.shortString({title:"Campaign",description:"Campaign where Win Modal returns to if not additional parameters are passed.",inEditor:!0}),campaignIndex:r.int({title:"Campaign Index",description:"The 0-based index of this level in its campaign.",format:"hidden"}),scoreTypes:r.array({title:"Score Types",description:"What metric to show leaderboards for. Most important one first, not too many (2 is good).",inEditor:"codecombat"},{anyOf:[r.scoreType,{type:"object",title:"Score Type Object",required:["type"],additionalProperties:!1,properties:{type:r.scoreType,thresholds:{type:"object",properties:{bronze:{type:"number"},silver:{type:"number"},gold:{type:"number"}}}}}]}),concepts:r.array({title:"Programming Concepts",description:"Which programming concepts this level covers.",uniqueItems:!0,format:"concepts-list",inEditor:!0},r.concept),primaryConcepts:r.array({title:"Primary Concepts",description:"The main 1-3 concepts this level focuses on.",uniqueItems:!0,inEditor:!0},r.concept),password:{type:"string",description:"The password required to create a session for this level",inEditor:"codecombat"},mirrorMatch:{type:"boolean",description:"Whether a multiplayer ladder arena is a mirror match",inEditor:"codecombat"},codePoints:r.int({title:"CodePoints",minimum:0,description:"CodePoints that can be earned for c
2ompleting this level"}),clans:r.array({description:"If at least one clan is specified, only allow the users in these clans to access the level",format:"clans-list",inEditor:"codecombat"},r.objectId()),introContent:{title:"Intro content",description:"Intro content sequence",type:"array",items:b,inEditor:"ozaria"},creativeMode:{title:"Creative Mode",type:"boolean",description:"Only changes behavior of capstone levels. Treats the last stage of capstones as a creative mode, where goals are turned off. This also saves the students prior code created in prior stages. A teacher is able to see both normal code and creative code. Finally when student restarts level they start from their normal code written before creative mode.",inEditor:"ozaria"},additionalGoals:r.array({title:"Additional Goals",description:"Goals that are added after the first regular goals are completed",inEditor:"ozaria"},r.object({title:"Goals",description:"Goals for this stage",minItems:1,uniqueItems:!0,properties:{stage:{type:"integer",minimum:2,title:"Goal Stage",description:"Which stage these additional goals are for (2 and onwards)"},goals:r.array({title:"Goals",description:"An array of goals which are visible to the player and can trigger scripts."},l)}})),isPlayedInStages:{type:"boolean",title:"Is Played in Stages",description:"Is this level played in stages and other content(cinematics) is loaded in between stages",inEditor:"ozaria"},methodsBankList:r.array({title:"Methods Bank List",inEditor:"ozaria"},r.object({properties:{name:r.shortString({title:"Name"}),section:r.shortString({title:"Methods Bank Section",pattern:/^\w[\w ]*$/}),subSection:r.shortString({title:"Methods Bank Sub-Section",pattern:/^\w[\w ]*$/}),componentName:r.shortString({title:"Level Component Name",description:"Level Component to use for documentation in case there are multiple components with same property's documentation"})}})),archived:{type:"integer",description:"Marks this level with to be hidden from searches and lookups. Number is milliseconds since 1 January 1970 UTC, when it was marked as hidden."},difficulty:{type:"integer",title:"Difficulty",description:"Difficulty of this level - used to show difficulty in star-rating of 1 to 5",minimum:1,maximum:5,inEditor:"codecombat"},product:_.extend(r.singleProduct,{inEditor:!0}),aiAssistantSystemPrompt:{type:"string",description:"Additional system prompt for the AI assistant system about game rules and mechanics",inEditor:"codecombat",title:"AI Assistant System Prompt",format:"markdown"},aiChatKind:{type:"string",description:"Kind of AI chat to use for this level",inEditor:"codecombat",title:"AI Chat Kind",enum:["none","level-chat","ai-league"],default:"level-chat"},aiChatExampleMessages:{type:"object",title:"AI Chat Example Messages",description:"Example messages for AI chat organized by programming language. Keys are code languages, values are arrays of message examples with user and assistant roles.",inEditor:"codecombat",additionalProperties:{type:"array",title:"Example Messages for Language",description:"Array of example messages for this programming language",items:{type:"object",title:"Chat Message Example",required:["role","content"],properties:{role:{type:"string",title:"Message Role",description:"The role of the message sender",enum:["user","assistant"],default:"user"},content:{type:"string",title:"Message Content",description:"The content of the message",format:"markdown"}}}}},returnAfterCompleteMap:{type:"object",title:"After Complete Return Map",description:"fromCampaign : whereToReturnAfterComplete (string)",inEditor:"codecombat",additionalProperties:{type:"string",description:"Where to return after completing the level from the given campaign."}},hackstackScenarioId:r.stringID({title:"Hackstack Scenario ID",description:"Hackstack scenario original id. This level is a proxy for a hackstack scenario.",inEditor:"codecombat",format:"hackstackScenario"})}),w.definitions={classroomSub:{title:"Classroom Subscription",description:"Whether this level is available in classroom content for subscribers only.",type:"object",required:["base"],properties:{base:{type:"string",enum:["paid","free","free-after-sales"]}},patternProperties:{"^[a-zA-Z-]*$":{type:"string",enum:["paid","free","free-after-sales"]}}}},r.extendBasicProperties(w,"level"),r.extendSearchableProperties(w),r.extendVersionedProperties(w,"level"),r.extendPermissionsProperties(w,"level"),r.extendPatchableProperties(w),r.extendTranslationCoverageProperties(w),e.exports=w}
2,724402:(e,t,n)=>{"use strict";var r=n(975434),o=n(988214),i=r.object({title:"Component Dependency",description:"A Component upon which this Component depends.",required:["original","majorVersion"],format:"latest-version-reference",links:[{rel:"db",href:"/db/level.component/{(original)}/version/{(majorVersion)}"}]},{original:r.objectId({title:"Original",description:"A reference to another Component upon which this Component depends."}),majorVersion:{title:"Major Version",description:"Which major version of the Component this Component needs.",type:"integer",minimum:0}}),a=r.object({title:"Component",description:"A Component which can affect Thang behavior.",required:["system","name","code"],default:{system:"ai",name:"AttacksSelf",description:"This Component makes the Thang attack itself.",code:"class AttacksSelf extends Component\n @className: 'AttacksSelf'\n chooseAction: ->\n @attack @",codeLanguage:"coffeescript",dependencies:[],propertyDocumentation:[],configSchema:{},context:{}}});r.extendNamedProperties(a),a.properties.name.pattern=r.classNamePattern,_.extend(a.properties,{system:{title:"System",description:"The short name of the System this Component belongs to, like ai.",type:"string",enum:["action","ai","alliance","collision","combat","display","event","existence","hearing","inventory","movement","programming","targeting","ui","vision","misc","physics","effect","magic","game","junior"]},description:{title:"Description",description:"A short explanation of what this Component does.",type:"string",maxLength:2e3},codeLanguage:{type:"string",title:"Language",description:"Which programming language this Component is written in.",enum:["coffeescript","javascript"]},code:{title:"Code",description:"The code for this Component, as a CoffeeScript/JavaScript class. TODO: add link to documentation for how to write these.",type:"string",format:"coffee"},js:{title:"JavaScript",description:"The transpiled JavaScript code for this Component",type:"string",format:"hidden"},dependencies:r.array({title:"Dependencies",description:"An array of Components upon which this Component depends.",uniqueItems:!0},i),propertyDocumentation:r.array({title:"Property Documentation",description:"An array of documentation entries for each notable property this Component will add to its Thang which other Components might want to also use."},r.PropertyDocumentationSchema),configSchema:_.extend(o,{title:"Configuration Schema",description:"A schema for validating the arguments that can be passed to this Component as configuration.",default:{type:"object"}}),official:{type:"boolean",title:"Official",description:"Whether this is an official CodeCombat Component."},searchStrings:{type:"string"},context:{type:"object",title:"Code context",additionalProperties:{type:"string"},default:{}},i18n:{type:"object",format:"i18n",props:["context"],description:"Help translate the code context"},archived:{type:"integer",description:"Marks this component to be hidden from searches and lookups. Number is milliseconds since 1 January 1970 UTC, when it was marked as hidden."}}),r.extendBasicProperties(a,"level.component"),r.extendSearchableProperties(a),r.extendVersionedProperties(a,"level.component"),r.extendPermissionsProperties(a,"level.component"),r.extendPatchableProperties(a),r.extendTranslationCoverageProperties(a),e.exports=a},256288:(e,t,n)=>{"use strict";var r=n(975434),o=n(988214),i=r.object({title:"System Dependency",description:"A System upon which this System depends.",required:["original","majorVersion"],format:"latest-version-reference",links:[{rel:"db",href:"/db/level.system/{(original)}/version/{(majorVersion)}"}]},{original:r.objectId({title:"Original",description:"A reference to another System upon which this System depends."}),majorVersion:{title:"Major Version",description:"Which major version of the System this System needs.",type:"integer",minimum:0}}),a=r.object({title:"System",description:"A System which can affect Level behavior.",required:["name","code"],default:{name:"JitterSystem",description:"This System makes all idle, movable Thangs jitter around.",code:"class Jitter extends System\
2n constructor: (world, config) ->\n super world, config\n @idlers = @addRegistry (thang) -> thang.exists and thang.acts and thang.moves and thang.action is 'idle'\n\n update: ->\n # We return a simple numeric hash that will combine to a frame hash\n # help us determine whether this frame has changed in resimulations.\n hash = 0\n for thang in @idlers\n hash += thang.pos.x += 0.5 - Math.random()\n hash += thang.pos.y += 0.5 - Math.random()\n thang.hasMoved = true\n return hash",codeLanguage:"coffeescript",dependencies:[],configSchema:{}}});r.extendNamedProperties(a),a.properties.name.pattern=r.classNamePattern,_.extend(a.properties,{description:{title:"Description",description:"A short explanation of what this System does.",type:"string",maxLength:2e3},codeLanguage:{type:"string",title:"Language",description:"Which programming language this System is written in.",enum:["coffeescript","javascript"]},code:{title:"Code",description:"The code for this System, as a CoffeeScript/JavaScript class. TODO: add link to documentation for how to write these.",type:"string",format:"coffee"},js:{title:"JavaScript",description:"The transpiled JavaScript code for this System",type:"string",format:"hidden"},dependencies:r.array({title:"Dependencies",description:"An array of Systems upon which this System depends.",uniqueItems:!0},i),configSchema:_.extend(o,{title:"Configuration Schema",description:"A schema for validating the arguments that can be passed to this System as configuration.",default:{type:"object",additionalProperties:!1}}),official:{type:"boolean",title:"Official",description:"Whether this is an official CodeCombat System."}}),r.extendBasicProperties(a,"level.system"),r.extendSearchableProperties(a),r.extendVersionedProperties(a,"level.system"),r.extendPermissionsProperties(a),r.extendPatchableProperties(a),e.exports=a},64406:(e,t,n)=>{"use strict";var r=n(975434),o=r.object({title:"Patch",required:["target","delta","commitMessage"]},{delta:{title:"Delta",type:["array","object"]},commitMessage:r.shortString({maxLength:500,minLength:1}),creator:r.objectId({links:[{rel:"extra",href:"/db/user/{($)}"}]}),acceptor:r.objectId({links:[{rel:"extra",href:"/db/user/{($)}"}]}),created:r.date({title:"Created",readOnly:!0}),status:{enum:["pending","accepted","rejected","withdrawn"]},target:r.object({title:"Target",required:["collection","id"]},{collection:{enum:["achievement","article","campaign","course","level","level_component","level_system","poll","product","thang_type","interactive","cinematic","cutscene","resource_hub_resource","concept","standards","ai_scenario","ai_chat_message","ai_document"]},id:r.objectId({title:"Target ID"}),original:r.objectId({title:"Target Original"}),version:{properties:{major:{type:"number",minimum:0},minor:{type:"number",minimum:0}}}}),wasPending:{type:"boolean"},newlyAccepted:{type:"boolean"},reasonNotAutoAccepted:{type:"string"}});r.extendBasicProperties(o,"patch"),e.exports=o},326782:(e,t,n)=>{"use strict";var r,o=n(975434);e.exports=r={type:"object",additionalProperties:!1,properties:{i18n:{type:"object",title:"i18n",format:"i18n",props:["displayName","displayDescription"]},name:{type:"string"},displayName:{type:"string"},displayDescription:{type:"string"},amount:{type:"integer",description:"Cost in cents"},gems:{type:"integer",description:"Number of gems awarded"},coupons:{type:"array",items:{type:"object",additionalProperties:!1,properties:{code:{type:"string"},amount:{type:"integer",description:"Adjusted cost in cents"},duration:{type:"string",description:"Stripe duration, only support once currently."}}}},planID:{type:"string",description:"Probably should remove this"},payPalBillingPlanID:{type:"string"},formattedAmount:{type:"string",description:"eg: $23, â¹8,352"}}},o.extendBasicProperties(r,"Product"),o.extendTranslationCoverageProperties(r),o.extendPatchableProperties(r)},385651:(e,t,n)=>{"use strict";var r=n(975434);e.exports=r.object({title:"Component",description:"Configuration for a Component that this Thang uses.",format:"component-reference",required:["original","majorVersion"],default:{majorVersion:0,config:{}},links:[{rel:"db",href:"/db/level.component/{(original)}/version/{(majorVersion)}"}]},{original:r.objectId({title:"Original",description:"A reference to the original Component being configured.",format:"hidden"}),config:r.object({title:"Configuration",description:"Component-specific configuration properties.",additionalProperties:!0,format:"thang-component-configuration"}),majorVersion:{title:"Major Version",description:"Which major version of the Component is being used.",type:"integer",minimum:0,format:"hidden"}})},409240:(e,t,n)=>{"use strict";var r=n(975434),o=n(662319),i=o.FeatureAuthoritySchema,a=o.FeatureRecipientSchema,s=r.object({title:"User",default:{visa:"Authorized to work in the US",music:!0,name:"Anonymous",autocastDelay:5e3,emails:{},consentHistory:[],permissions:[],anonymous:!0,points:0,preferredLanguage:"en-US",aceConfig:{},simulatedBy:0,simulatedFor:0,jobProfile:{},earned:{heroes:[],items:[],levels:[],gems:0},purchased:{heroes:[],items:[],levels:[],gems:0}}});r.extendNamedProperties(s),_.extend(s.properties,{email:r.shortString({title:"Email",format:"email"}),emailVerified:{type:"boolean"},iosIdentifierForVendor:r.shortString({format:"hidden"}),firstName:r.shortString({title:"First Name",not:{pattern:"Q204384420"}}),lastName:r.shortString({title:"Last Name",not:{pattern:"Q204384420"}}),gender:{type:"string"},ageRange:{type:"string"},password:r.passwordString,passwordReset:{type:"string"},passwordResetExpires:r.date(),newPasswordRequired:{type:"boolean"},photoURL:{type:"string",format:"image-file",title:"Profile Picture",description:"Upload a 256x256px or larger image to serve as your profile picture."},facebookID:r.shortString({title:"Facebook ID"}),githubID:{type:"integer",title:"GitHub ID"},gplusID:r.shortString({title:"G+ ID"}),cleverID:r.shortString({title:"Clever ID"}),edLinkID:r.shortString({title:"Clever ID"}),oAuthIdentities:{description:"List of OAuth identities this user has.",type:"array",items:{description:"A single OAuth identity",type:"object",properties:{provider:r.objectId(),id:{type:"string",description:"The service provider's id for the user"}}}},oAuth2Identities:{description:"List of OAuth2 identities this user has.",type:"array",items:{description:"Reference to a single OAuth2 identity",type:"object",properties:{providerId:r.objectId(),oAuth2IdentityId:r.objectId(),provider:r.shortString({description:"The slug of the provider of the OAuth2 identity"})}}},clientCreator:r.objectId({description:"Client which created this user"}),clientPermissions:{description:"More APIClients with permissions on this user, apart from clientCreator.",type:"array",items:{type:"object",additionalProperties:!1,properties:{client:r.objectId({description:"APIClient with permissions on this user"}
2),access:{type:"string",enum:["read","grant","write","owner"]}}},format:"hidden"},wizardColor1:r.pct({title:"Wizard Clothes Color"}),volume:r.pct({title:"Volume"}),music:{type:"boolean"},autocastDelay:{type:"integer"},lastLevel:{type:"string"},heroConfig:r.HeroConfigSchema,emailSubscriptions:r.array({uniqueItems:!0},{enum:["announcement","tester","level_creator","developer","article_editor","translator","support","notification"]}),emails:r.object({title:"Email Settings",default:{generalNews:{enabled:!0},anyNotes:{enabled:!0},recruitNotes:{enabled:!0}}},{generalNews:{$ref:"#/definitions/emailSubscription"},adventurerNews:{$ref:"#/definitions/emailSubscription"},ambassadorNews:{$ref:"#/definitions/emailSubscription"},archmageNews:{$ref:"#/definitions/emailSubscription"},artisanNews:{$ref:"#/definitions/emailSubscription"},diplomatNews:{$ref:"#/definitions/emailSubscription"},teacherNews:{$ref:"#/definitions/emailSubscription"},scribeNews:{$ref:"#/definitions/emailSubscription"},anyNotes:{$ref:"#/definitions/emailSubscription"},recruitNotes:{$ref:"#/definitions/emailSubscription"},employerNotes:{$ref:"#/definitions/emailSubscription"},oneTimes:r.array({title:"One-time emails"},r.object({title:"One-time email",required:["type","email"]},{type:r.shortString(),email:r.shortString(),sent:r.date()})),validations:r.array},{title:"Sendgrid email validation results"},r.object({},{validationDate:r.date(),result:r.object({additionalProperties:!0})})),unsubscribedFromMarketingEmails:{type:"boolean"},consentHistory:r.array({title:"History of consent actions"},r.object({title:"Consent action",required:["action","date","type"]},{action:{type:"string",enum:["allow","forbid","deny","dismiss"]},date:r.date(),type:r.shortString(),emailHash:{type:"string",maxLength:128,minLength:128,title:"Hash of lower-case email address at the time"},description:r.shortString()})),permissions:r.array({},r.shortString()),dateCreated:r.date({title:"Date Joined"}),anonymous:{type:"boolean"},testGroupNumber:{type:"integer",minimum:0,maximum:256,exclusiveMaximum:!0},testGroupNumberUS:{type:"integer",minimum:0,maximum:256,exclusiveMaximum:!0},experiments:r.array({description:"A/B tests this user is a part of"},{name:r.shortString({description:'Experiment name, like "long-subscription-choice"',pattern:"^[a-z][-a-z0-9]*$"}),value:{description:"The experiment value/group that this user is assigned to",additionalProperties:!0},probability:r.pct({description:"Probability of being assigned to this experiment value"}),startDate:r.date({description:"When this user first started the experiment"})}),mailChimp:{type:"object"},hourOfCode:{type:"boolean"},hourOfCode2019:{type:"boolean"},hourOfCodeComplete:{type:"boolean"},hourOfCodeOptions:r.object({title:"Options useful for hour of code users"},{showCompleteSignupModal:{type:"boolean",description:"Whether to show complete signup modal on teacher dashboard - only valid for teachers who signup from hoc signup flow"},showHocProgress:{type:"boolean",description:"Set true for students who sign up from hoc save progress modal since they didnt have a class code"},hocCodeLanguage:{type:"string",description:"HoC code language played as anonymous student, used to show progress on student dashboard until they have a class code"}}),createdOnHost:{type:"string"},emailLower:r.shortString(),nameLower:r.shortString(),passwordHash:{type:"string",maxLength:256},emailHash:{type:"string"},preferredLanguage:{enum:[null].concat(r.getLanguageCodeArray())},signedCLA:r.date({title:"Date Signed the CLA"}),wizard:r.object({},{colorConfig:r.object({additionalProperties:r.colorConfig()})}),ozariaUserOptions:r.object({title:"Player Ozaria Customization",description:"Player customization options, including hero name, objectId and applied color tints."},{isometricThangTypeOriginal:r.stringID({links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],title:"Thang Type",description:"The isometric ThangType of the hero.",format:"thang-type"}),cinematicThangTypeOriginal:r.stringID({links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],title:"Cinematic Thang Type",description:"The cinematic ThangType of the hero.",format:"thang-type"}),playerHeroName:r.shortString({title:"Ozaria Hero Name",description:"The user set name for the ozaria hero. Used in cinematics."}),tints:r.array({title:"Tints",description:"Array of possible tints"},r.object({title:"tintGroup",description:"Duplicate data that would be found in a tint",required:["slug","colorGroups"]},{slug:r.shortString({title:"Tint Slug"}),colorGroups:r.object({additionalProperties:r.colorConfig()})})),avatar:r.object({title:"CH1 Avatar Choice",description:"The CH1 avatar that was chosen by the user"},{cinematicThangTypeId:r.stringID({links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],title:"Cinematic ThangType",description:"The cinematic avatar thangType original Id",format:"thang-type"}),cinematicPetThangId:r.stringID({links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],title:"Cinematic Pet ThangType",description:"The cinematic avatar pet thangType original Id",format:"thang-type"}),avatarCodeString:r.shortString({title:"Avatar Capstone String",description:"The string representation of the avatar for the capstone."})})}),aceConfig:r.object({default:{language:"python",keyBindings:"default",invisibles:!1,indentGuides:!1,behaviors:!1,liveCompletion:!0}},{language:{type:"string",enum:["python","javascript","coffeescript","lua","java","cpp"]},keyBindings:{type:"string",enum:["default","vim","emacs"]},invisibles:{type:"boolean"},indentGuides:{type:"boolean"},behaviors:{type:"boolean"},liveCompletion:{type:"boolean"},screenReaderMode:{type:"boolean"},codeFormat:{type:"string",enum:["blocks-icons","blocks-text","blocks-and-code","text-code"],description:"Default co
2de format option. Default if unset: text-code."},preferWideEditor:{type:"boolean",description:"Whether the user prefers a wide editor."}}),simulatedBy:{type:"integer",minimum:0},simulatedFor:{type:"integer",minimum:0},googleClassrooms:r.array({title:"Google classrooms for the teacher"},r.object({required:["name","id"]},{id:{type:"string"},name:{type:"string"},importedToCoco:{type:"boolean",default:!1},importedToOzaria:{type:"boolean",default:!1},deletedFromGC:{type:"boolean",default:!1,description:"Set true for classrooms imported to coco/ozaria but deleted from GC"}})),importedBy:r.objectId({description:"User ID of the teacher who imported this user"}),googleCalendarEvents:r.array({title:"Google calendar events for the online teacher"},r.object({required:["summary"]},{summary:{type:"string"},importedToCoco:{type:"boolean",default:!1},deletedFromGC:{type:"boolean",default:!1,description:"Set true for events imported to coco but deleted from GC"}})),points:{type:"number"},activity:{type:"object",description:"Summary statistics about user activity",additionalProperties:r.activity},stats:r.object({additionalProperties:!0},{gamesCompleted:r.int(),articleEdits:r.int(),levelEdits:r.int(),levelSystemEdits:r.int(),levelComponentEdits:r.int(),thangTypeEdits:r.int(),patchesSubmitted:r.int({description:"Amount of patches submitted, not necessarily accepted"}),patchesContributed:r.int({description:"Amount of patches submitted and accepted"}),patchesAccepted:r.int({description:"Amount of patches accepted by the user as owner"}),totalTranslationPatches:r.int(),totalMiscPatches:r.int(),articleTranslationPatches:r.int(),articleMiscPatches:r.int(),levelTranslationPatches:r.int(),levelMiscPatches:r.int(),levelComponentTranslationPatches:r.int(),levelComponentMiscPatches:r.int(),levelSystemTranslationPatches:r.int(),levelSystemMiscPatches:r.int(),thangTypeTranslationPatches:r.int(),thangTypeMiscPatches:r.int(),achievementTranslationPatches:r.int(),achievementMiscPatches:r.int(),pollTranslationPatches:r.int(),pollMiscPatches:r.int(),campaignTranslationPatches:r.int(),campaignMiscPatches:r.int(),courseTranslationPatches:r.int(),courseMiscPatches:r.int(),courseEdits:r.int(),cinematicTranslationPatches:r.int(),cinematicMiscPatches:r.int(),cinematicEdits:r.int(),interactiveTranslationPatches:r.int(),interactiveMiscPatches:r.int(),interactiveEdits:r.int(),concepts:{type:"object",additionalProperties:r.int(),description:"Number of levels completed using each programming concept."},licenses:r.object({additionalProperties:!0}),students:r.object({additionalProperties:!0}),codePoints:r.int({title:"CodePoints",minimum:0,description:"Total CodePoints earned"}),hsStarsPerCampaign:r.object({description:"Map from campaign slug to number of stars earned",additionalProperties:r.int({minimum:0})})}),earned:r.RewardSchema("earned by achievements"),purchased:r.RewardSchema("purchased with gems or money"),deleted:{type:"boolean"},dateDeleted:r.date(),doNotDeleteEU:r.date(),spent:{type:"number"},stripeCustomerID:{type:"string"},payPal:r.object({},{payerID:{type:"string"},billingAgreementID:{type:"string",description:"Set if user has PayPal monthly subscription"},subscribeDate:r.date(),cancelDate:r.date()}),stripe:r.object({},{customerID:{type:"string"},planID:{type:"string",description:"Determines if a user has or wants to subscribe. Matches subscription plan on stripe."},subscriptionID:{type:"string",description:"Determines if a user is subscribed"},token:{type:"string"},couponID:{type:"string"},currency:{type:"string"},free:{oneOf:[{type:"string",format:"date-time",description:"Type string is subscription end date"},{type:"boolean",description:"Type boolean is whether the subscription is free or not"}]},prepaidCode:r.shortString({description:"Prepaid code to apply to sub purchase"}),subscribeEmails:r.array({description:"Input for subscribing other users"},r.shortString()),unsubscribeEmail:{type:"string",description:"Input for unsubscribing a sponsored user"},recipients:r.array({title:"Recipient subscriptions owned by this user"},r.object({required:["userID","subscriptionID"]},{userID:r.objectId({description:"User ID of recipient"}),subscriptionID:{type:"string"},couponID:{type:"string"}})),sponsorID:r.objectId({description:"User ID that owns this user's subscription"}),sponsorSubscriptionID:{type:"string",description:"Sponsor aggregate subscription used to pay for all recipient subs"}}),siteref:{type:"string"},referrer:{type:"string"},country:{type:"string"},geo:r.object({},{country:{description:"2 letter ISO-3166-1 country code"},countryName:{description:"Full country name"},region:{description:"2 character region code"},city:{description:"Full city name"},ll:r.array({},{description:"Latitude and longitude of the city"}),metro:{description:"Metro code"},zip:{description:"Postal code"},timeZone:{description:"Timezone"}}),clans:r.array({},r.objectId()),courseInstances:r.array({},r.objectId()),currentCourse:r.object({},{courseID:r.objectId({}),courseInstanceID:r.objectId({})}),coursePrepaidID:r.objectId({description:"Prepaid which has paid for this user's course access"}),coursePrepaid:{type:"object",properties:{_id:r.objectId(),startDate:r.stringDate(),endDate:r.stringDate(),type:{type:["string","null"]},includedCourseIDs:{type:["array","null"],description:"courseIDs that this prepaid includes access to",items:r.objectId()},migrated:{type:"boolean"}}},enrollmentRequestSent:{type:"boolean",description:"deprecated"},schoolName:{type:"string",description:'Deprecated string. Use "school" object instead.'},role:{type:"string",enum:["advisor","parent","principal","student","superintendent","teacher","technology coordinator","possible teacher","parent-home"]},verifiedTeacher:{type:"boolean"},birthday:{type:"string",title:"Birthday",description:"Just month and year, stored YYYY-MM"},lastAchievementChecked:r.stringDate({name:"Last Achievement Checked"}),israelId:{type:"string",description:"ID string used just for il.codecombat.com"},school:{type:"object",description:"Generic property for storing school information. Currently \nonly used by Israel; if/when we use it for other purposes, \nthink about how to keep the data consistent.",properties:{name:{type:"string"},city:{type:"string"},district:{type:"string"},state:{type:"string"},country:{type:"string"}}},lastAnnouncementSeen:{type:"number",description:"The highed announcement modal index displayed to the user."},lastAnnouncementGen:r.date,studentMilestones:{type:"object",description:"Flags for whether a teacher's students have reached a given level. Used for Intercom campaigns.",properties:{studentStartedWakkaMaul:{type:"boolean",description:"One of a teacher's students has reached Wakka Maul"},studentStartedMayhemOfMunchkins:{type:"boolean",description:"One of a teacher's students has started A Mayhem of Munchkins"},studentsStartedDungeonsOfKithgard:{type:"integer",description:"The number of a teacher's students who have started Dungeons of Kithgard"},studentsStartedTrueNames:{type:"integer",description:"The number of a teacher's students who have started True Names"}}},administratedTeachers:r.array({},r.objectId()),administratingTeachers:r.array({},r.objectId()),seenNewDashboardModal:{type:"boolean",description:"Whether the user has seen the new dashboard onboarding modal? Set to true after the modal is seen and closed by the user"},closedNewTDGetStartedTooltip:{type:"boolean",description:"Whether the user has closed the get started tooltip in the new dashboard? Set to true once the user has dismissed the tooltip"},seenPromotions:{type:"object",properties:{"hackstack-beta-release-modal":[r.date(),{type:"boolean"}],"curriculum-sidebar-promotion-modal":[r.date(),{type:"boolean"}],"end-of-trial-promotion-modal":[r.date(),{type:"boolean"}],"hp-junior-modal":[r.date(),{type:"boolean"}],"ai-league-tour":[r.date(),{type:"boolean"}],"teacher-class-tour":[r.date(),{type:"boolean"}
2],"first-class-tour":[r.date(),{type:"boolean"}],"create-class-tour":[r.date(),{type:"boolean"}]}},features:{type:"object",title:"Feature Flags",properties:{hourOfAiCreditsGiven:{type:"boolean",description:"Whether the user has been given hour of AI credits"},authority:{type:"object",description:"Feature flags applied to associated users",additionalProperties:i},recipient:{type:"object",description:"Features flags applied to this user",additionalProperties:a},isNewDashboardActive:{type:"boolean"},ownerDistrictId:r.objectId({description:"District ID where user has admin permission to view data like outcome reports"}),syncedToSF:{type:"boolean",description:"Whether the user has been synced to Salesforce"},syncedToCIO:{type:"boolean",description:"Whether the user has been synced to CIO"},forceLogout:{type:"boolean",description:"Whether the user needs to be force logged out"},asRole:{type:"string",description:"If user is register as individual but need mark as other role"},canAccessOzCourse:{type:"boolean",description:"Whether the user can access Ozaria course"}}},archived:r.date({description:"Marks this record for automatic online archiving to cold storage by our cloud database."}),products:r.array({title:"Products purchased or used by this user"},r.object({required:["product","startDate","recipient","paymentService"],additionalProperties:!0},{product:{type:"string",enum:["course","basic_subscription","pd","esports","online-classes","call-sales"],description:'The "name" field for the product purchased'},prepaid:r.objectId({links:[{rel:"db",href:"/db/prepaid/{($)}"}]}),productOptions:{anyOf:[r.object({additionalProperties:!0},{includedCourseIDs:{type:["array","null"]}}),r.object({},{type:{type:"string",enum:["basic","pro"]},id:{type:"string"},teams:{type:["number","null"]},tournaments:{type:["number","null"]},createdTournaments:{type:["number","null"]},arenas:{type:["string","null"]}}),r.object({},{event:r.objectId({links:[{rel:"db",href:"/db/event/{($)}"}]}),count:{type:"number"}}),r.object({},{id:{type:"string"}})]},startDate:r.date(),endDate:r.date(),purchaser:r.objectId({links:[{rel:"extra",href:"/db/user/{($)}"}]}),recipient:r.objectId({links:[{rel:"extra",href:"/db/user/{($)}"}]}),purchaserDesc:{detailType:{enum:["email","phone"]},detail:r.shortString({description:"We may have a purchaser with no account, in which case only this email/phone/... will be set"})},paymentService:{enum:["stripe","testing","free","api","external","paypal"]},paymentDetails:{type:"object",properties:{purchaseDate:r.date(),amount:{type:"integer",description:"Payment in cents on US server and in RMB cents on the China server"},currency:{type:"string"}},additionalProperties:{anyOf:[r.object({},{stripeCustomerId:{type:"string"},subscriptionId:{type:"string"},paymentSession:r.objectId({links:[{rel:"extra",href:"/db/payment.session/{($)}"}]})}),r.object({},{paypalCustomerId:{type:"string"}}),r.object({},{staffCreator:r.objectId({links:[{rel:"extra",href:"/db/user/{($)}"}]})}),{additionalProperties:!0}]}}})),edLink:r.object({},{profileId:{type:"string"},refreshToken:{type:"string",description:"token to get access token to get user details"},identifiers:r.array({description:"identifiers to canvas, clever etc"},r.object({},{iType:{type:"string"},iValue:{type:"string"}}))}),library:r.object({},{profileId:{type:"string"},name:{type:"string",description:"name of library for the user"}}),related:r.array({description:"related accounts to this user"},r.object({},{userId:r.objectId({description:"userId of the account currentUser is related to"}),verified:{type:"boolean",description:"whether linking is verified/authenticated"},relation:r.shortString({description:"relation of this user to related one"}),code:r.shortString({description:"confirmation code for linking user"})})),referrerTrack:r.object({description:"utm_source, medium etc - anything to track from where user came to Coco"},{source:{type:"string"},medium:{type:"string"},campaign:{type:"string"}})}),r.extendBasicProperties(s,"user"),s.definitions={emailSubscription:r.object({default:{enabled:!0,count:0}},{enabled:{type:"boolean"},lastSent:r.date(),count:{type:"integer"}})},e.exports=s},975434:(e,t,n)=>{"use strict";var r=n(193482),o=n(250636),i=e.exports,a=function(e,t){return null==t?e:o.extend(e,t)};i.object=function(e,t){return a({type:"object",additionalProperties:!1,properties:t||{}},e)},i.array=function(e,t){return a({type:"array",items:t||{}},e)},i.shortString=function(e){return a({type:"string",maxLength:100},e)},i.pct=function(e){return a({type:"number",maximum:1,minimum:0},e)},i.passwordString={allOf:[{type:"string",maxLength:64,minLength:4,title:"Password"},{not:{pattern:"([\\s\\S])\\1\\1"}}]},i.date=function(e){return a({type:["object","string"],format:"date-time"},e)},i.stringDate=function(e){return a({type:["string"],format:"date-time"},e)},i.objectId=function(e){return a({type:["object","string"]},e)},i.stringID=function(e){return a({type:"string",minLength:24,maxLength:24},e)},i.url=function(e){return a({type:"string",format:"url",pattern:"^(ht|f)tp(s?)://[0-9a-zA-Z]([-.w]*[0-9a-zA-Z])*(:(0-9)*)*(/?)([a-zA-Z0-9-.?,'/\\+&%$#_=]*)?$"},e)},i.path=function(e){return a({type:"string",pattern:"^/([a-zA-Z0-9-.?,'/\\+&%$#_=]*)?$"},e)},i.int=function(e){return a({type:"integer"},e)},i.float=function(e){return a({type:"number"},e)},i.boolean=function(e){return a({type:"boolean"},e)};var s=i.object({title:"Point",description:"An {x, y} coordinate point.",format:"point2d",required:["x","y"]},{x:{title:"x",description:"The x coordinate.",type:"number",default:15},y:{title:"y",description:"The y coordinate.",type:"number",default:20}});i.point2d=function(e){return a(o.cloneDeep(s),e)};var c=i.object({format:"sound"},{mp3:{type:"string",format:"sound-file"},ogg:{type:"string",format:"sound-file"}});i.sound=function(e){var t=o.cloneDeep(c);for(var n in e)t.properties[n]=e[n];return t},i.file=function(e){return a({type:"string",format:"file"},e)};var u=i.object({format:"color-sound"},{hue:{format:"range",type:"number",minimum:0,maximum:1},saturation:{format:"range",type:"number",minimum:0,maximum:1},lightness:{format:"range",type:"number",minimum:0,maximum:1}});i.colorConfig=function(e){var t=o.cloneDeep(u);for(var n in e)t.properties[n]=e[n];return t},i.extendBasicProperties=function(e,t){return null==e.properties&&(e.properties={}),o.extend(e.properties,function(e){return{_id:i.objectId({links:[{rel:"self",href:"/db/".concat(e,"/{($)}")}],format:"hidden"}
2),__v:{title:"Mongoose Version",format:"hidden"}}}(t))},i.extendPatchableProperties=function(e){return null==e.properties&&(e.properties={}),o.extend(e.properties,{patches:i.array({title:"Patches"},{_id:i.objectId({links:[{rel:"db",href:"/db/patch/{($)}"}],title:"Patch ID",description:"A reference to the patch."}),status:{enum:["pending","accepted","rejected","cancelled"]}}),allowPatches:{type:"boolean"},watchers:i.array({title:"Watchers"},i.objectId({links:[{rel:"extra",href:"/db/user/{($)}"}]}))})},i.extendNamedProperties=function(e){return null==e.properties&&(e.properties={}),o.extend(e.properties,{name:i.shortString({title:"Name"}),slug:i.shortString({title:"Slug",format:"hidden"})})},i.extendVersionedProperties=function(e,t){return null==e.properties&&(e.properties={}),o.extend(e.properties,function(e){return{version:{default:{minor:0,major:0,isLatestMajor:!0,isLatestMinor:!0},format:"version",title:"Version",type:"object",readOnly:!0,additionalProperties:!1,properties:{major:{type:"number",minimum:0},minor:{type:"number",minimum:0},isLatestMajor:{type:"boolean"},isLatestMinor:{type:"boolean"}}},original:i.objectId({links:[{rel:"extra",href:"/db/".concat(e,"/{($)}")}],format:"hidden"}),parent:i.objectId({links:[{rel:"extra",href:"/db/".concat(e,"/{($)}")}],format:"hidden"}),creator:i.objectId({links:[{rel:"extra",href:"/db/user/{($)}"}],format:"hidden"}),created:i.date({title:"Created",readOnly:!0}),commitMessage:{type:"string",maxLength:500,title:"Commit Message",readOnly:!0}}}(t))},i.extendSearchableProperties=function(e){return null==e.properties&&(e.properties={}),o.extend(e.properties,{index:{format:"hidden"},_algoliaObjectID:{type:"string",format:"hidden"}})},i.extendPermissionsProperties=function(e){return null==e.properties&&(e.properties={}),o.extend(e.properties,{permissions:{type:"array",items:{type:"object",additionalProperties:!1,properties:{target:{},access:{type:"string",enum:["read","write","owner"]}}},format:"hidden"}})},i.generateLanguageCodeArrayRegex=function(){return"^("+r.languageCodes.join("|")+")$"},i.getLanguageCodeArray=function(){return r.languageCodes},i.getLanguagesObject=function(){return r},i.extendTranslationCoverageProperties=function(e){return null==e.properties&&(e.properties={}),e.properties.i18nCoverage={title:"i18n Coverage",type:"array",items:{type:"string"}},e.properties.i18nCoverage},i.classNamePattern="^[A-Z][A-Za-z0-9]*$",i.identifierPattern="^[a-z][A-Za-z0-9]*$",i.constantPattern="^[A-Z0-9_]+$",i.identifierOrConstantPattern="^([a-z][A-Za-z0-9]*|[A-Z0-9_]+)$",i.FunctionArgumentSchema=i.object({title:"Function Argument",description:"Documentation entry for a function argument.",default:{name:"target",type:"object",optional:!1,example:"this.getNearestEnemy()",description:"The target of this function."},required:["name","type","example","description"]},{name:{type:"string",pattern:i.identifierPattern,title:"Name",description:"Name of the function argument."},i18n:{type:"object",format:"i18n",props:["description"],description:"Help translate this argument"},type:i.shortString({title:"Type",description:"Intended type of the argument."}),optional:{title:"Optional",description:"Whether an argument may be omitted when calling the function",type:"boolean"},example:{oneOf:[{type:"object",title:"Language Examples",description:"Examples by code language.",additionalProperties:i.shortString({description:"Example value for the argument."}),format:"code-languages-object",default:{javascript:"",python:""}},i.shortString({title:"Example",description:"Example value for the argument."})]},description:{oneOf:[{type:"object",title:"Language Descriptions",description:"Example argument descriptions by code language.",additionalProperties:{type:"string",description:"Description of the argument.",maxLength:1e3},format:"code-languages-object",default:{javascript:"",python:""}},{title:"Description",type:"string",description:"Description of the argument.",maxLength:1e3}]},default:{title:"Default",description:"Default value of the argument. (Your code should set this.)",default:null}}),i.codeSnippet=i.object({description:"A language-specific code snippet"}
2,{code:{type:"string",format:"code",title:"Snippet",default:"",description:"Code snippet. Use ${1:defaultValue} syntax to add flexible arguments"},tab:{type:"string",title:"Tab Trigger",description:"Tab completion text. Will be expanded to the snippet if typed and hit tab."}}),i.PropertyDocumentationSchema=i.object({title:"Property Documentation",description:"Documentation entry for a property this Component will add to its Thang which other Components might want to also use.",default:{name:"foo",type:"object",description:"The `foo` property can satisfy all the #{spriteName}'s foobar needs. Use it wisely."},required:["name","type","description"],format:"property-documentation"},{name:{type:"string",title:"Name",description:"Name of the property."},componentName:{type:"string",description:"Component Name for ozaria."},i18n:{type:"object",format:"i18n",props:["name","shortDescription","description","context"],description:"Help translate this property"},context:{type:"object",title:"Example template context",additionalProperties:{type:"string"}},codeLanguages:i.array({title:"Specific Code Languages",description:"If present, then only the languages specified will show this documentation. Leave unset for language-independent documentation.",format:"code-languages-array"},i.shortString({title:"Code Language",description:"A specific code language to show this documentation for.",format:"code-language"})),type:i.shortString({title:"Type",description:"Intended type of the property."}),shortDescription:{oneOf:[{title:"Short Description",type:"string",description:"Short Description of the property.",maxLength:1e3,format:"markdown"},{type:"object",title:"Language Descriptions (short)",description:"Property short-descriptions by code language.",additionalProperties:{type:"string",description:"Short Description of the property.",maxLength:1e3,format:"markdown"},format:"code-languages-object",default:{javascript:""}}]},description:{oneOf:[{title:"Description",type:"string",description:"Description of the property.",maxLength:1e3,format:"markdown"},{type:"object",title:"Language Descriptions",description:"Property descriptions by code language.",additionalProperties:{type:"string",description:"Description of the property.",maxLength:1e3,format:"markdown"},format:"code-languages-object",default:{javascript:""}}]},args:i.array({title:"Arguments",description:'If this property has type "function", then provide documentation for any function arguments.'},i.FunctionArgumentSchema),owner:{title:"Owner",type:"string",description:'Owner of the property, like "this" or "Math".'},example:{oneOf:[{type:"object",title:"Language Examples",description:"Examples by code language.",additionalProperties:{type:"string",description:"An example code block.",format:"code"},format:"code-languages-object",default:{javascript:""}},{title:"Example",type:"string",description:"An optional example code block.",format:"javascript"}]},snippets:{type:"object",title:"Snippets",description:"List of snippets for the respective programming languages",additionalProperties:i.codeSnippet,format:"code-languages-object"},returns:i.object({title:"Return Value",description:"Optional documentation of any return value.",required:["type"],default:{type:"null"}},{type:i.shortString({title:"Type",description:"Type of the return value"}),example:{oneOf:[{type:"object",title:"Language Examples",description:"Example return values by code language.",additionalProperties:i.shortString({description:"Example return value.",format:"code"}),format:"code-languages-object",default:{javascript:""}},i.shortString({title:"Example",description:"Example return value"})]},description:{oneOf:[{type:"object",title:"Language Descriptions",description:"Example return values by code language.",additionalProperties:{type:"string",description:"Description of the return value.",maxLength:1e3},format:"code-languages-object",default:{javascript:""}},{title:"Description",type:"string",description:"Description of the return value.",maxLength:1e3}]},i18n:{type:"object",format:"i18n",props:["description"],description:"Help translate this return value"}}),autoCompletePriority:{type:"number",title:"Autocomplete Priority",description:"How important this property is to autocomplete.",minimum:0,default:1},userShouldCaptureReturn:{type:"object",title:"User Should Capture Return",properties:{variableName:{type:"string",title:"Variable Name",description:"Variable name this property is autocompleted into.",default:"result"},type:{type:"object",title:"Variable Type",description:"Variable return types by code language. Can usually leave blank. Fill in if it is a primitive type and n
2ot auto in C++.",additionalProperties:{type:"string",description:"Description of the return value.",maxLength:1e3},format:"code-languages-object",default:{cpp:"auto"}}}},hideGrantedBy:{type:"boolean",title:'Hide "Granted By"',description:'Whether to hide the "Granted By" footer section in the documentation.',default:!1}}),i.activity=i.object({description:"Stats on an activity"},{first:i.date(),last:i.date(),count:{type:"integer",minimum:0}}),i.terrainString=i.shortString({enum:["Grass","Dungeon","Indoor","Desert","Mountain","Glacier","Volcano","Junior"],title:"Terrain",description:"Which terrain type this is.",inEditor:"codecombat"}),i.heroInventorySlots=Object.freeze(["head","eyes","neck","torso","wrists","gloves","left-ring","right-ring","right-hand","left-hand","waist","feet","programming-book","pet","minion","flag"]),i.HeroConfigSchema=i.object({description:"Which hero the player is using, equipped with what inventory."},{inventory:{type:"object",description:"The inventory of the hero: slots to item ThangTypes.",properties:o.zipObject(i.heroInventorySlots.map((function(e){return[e,i.objectId({description:"An item ThangType."})]}))),additionalProperties:i.objectId({description:"An item ThangType."})},thangType:i.objectId({links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],title:"Thang Type",description:"The ThangType of the hero.",format:"thang-type"}),juniorThangType:i.objectId({links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],title:"Junior Thang Type",description:"The ThangType of the junior pet hero, chosen independently of the classic hero. Junior levels prefer this over thangType; absent means derive via juniorHeroReplacements.",format:"thang-type"})}),i.RewardSchema=function(e){return null==e&&(e="earned by achievements"),{type:"object",additionalProperties:!1,description:"Rewards ".concat(e,"."),properties:{heroes:i.array({uniqueItems:!0,description:"Heroes ".concat(e,".")},i.stringID({links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],title:"Hero ThangType",description:"A reference to the earned hero ThangType.",format:"thang-type"})),juniorHeroes:i.array({uniqueItems:!0,description:"Junior heroes ".concat(e,".")},i.stringID({links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],title:"Junior Hero ThangType",description:"A reference to the earned junior hero ThangType.",format:"thang-type"})),items:i.array({uniqueItems:!0,description:"Items ".concat(e,".")},i.stringID({links:[{rel:"db",href:"/db/thang.type/{($)}/version"}],title:"Item ThangType",description:"A reference to the earned item ThangType.",format:"thang-type"})),levels:i.array({uniqueItems:!0,description:"Levels ".concat(e,".")},i.stringID({links:[{rel:"db",href:"/db/level/{($)}/version"}],title:"Level",description:"A reference to the earned Level.",format:"latest-version-original-reference"})),gems:i.float({description:"Gems ".concat(e,".")})}}},i.task=i.object({title:"Task",description:"A task to be completed",format:"task",default:{name:"TODO",complete:!1}},{name:{title:"Name",description:"What must be done?",type:"string"},complete:{title:"Complete",description:"Whether this task is done.",type:"boolean",format:"checkbox"}}),i.concept={type:"string",format:"concept"},i.scoreType=i.shortString({title:"Score Type",enum:["time","damage-taken","damage-dealt","gold-collected","difficulty","code-length","survival-time","defeated"]}),i.resourceIcons=["PDF","Spreadsheet","Doc","FAQ","Slides","Solutions","Video","Audio"],i.voiceOver={oneOf:[i.sound(),i.object({title:"Hero VO",description:"This voice over is spoken by the hero",required:["female","male"]},{female:i.sound(),male:i.sound()})]},i.product={type:"string",title:"Product",description:"Which product this document is for (codecombat, ozaria, or both)",enum:["codecombat","ozaria","both"],default:"both"},i.singleProduct={type:"string",title:"Product",description:"Which product this document is for (codecombat, ozaria, or codecombat-junior)",enum:["codecombat","ozaria","codecombat-junior"],default:"codecombat"},i.InlineInteractionSchema=i.object({description:"An inline interaction",definitions:{},required:["type","actor"],additionalProperties:!0},{type:{type:"string",enum:["model-response","prompt-quiz","free-chat","chat-message","load-document"]},actor:{type:"string",enum:["user","model","teacher","system"],description:"Who is performing this interaction"},teacherDialogue:{$ref:"#/definitions/teacherDialogue"},repeat:{oneOf:[{type:"boolean"},{type:"integer",minimum:1}]},condition:{type:"object",description:"TODO"}}),i.InlineInteractionSchema.definitions.teacherDialogue=i.object({required:["text"]},{text:{type:"string",format:"markdown"},actions:i.array({},i.shortString({}))});var l=i.object({title:"Model Response",required:[],default:{type:"model-response",actor:"model"}}
2,{type:{type:"string",const:"model-response"},actor:{type:"string",const:"model"},interaction:i.objectId({links:[{rel:"db",href:"/db/ai_interaction/{($)}"}]})}),d=i.object({title:"Prompt Quiz",required:["content"],default:{type:"prompt-quiz",actor:"user",content:{}}},{type:{type:"string",const:"prompt-quiz"},actor:{type:"string",const:"user"},content:i.object({required:["choices"],default:{choices:[]}},{choices:i.array({},i.object({required:["text"]},{text:{type:"string"},isCorrect:{type:"boolean"},teacherDialogue:{$ref:"#/definitions/teacherDialogue"},resultingInteraction:i.objectId({links:[{rel:"db",href:"/db/ai_interaction/{($)}"}]})}))})}),p=i.object({title:"Free Chat",default:{type:"free-chat",actor:"user",content:{text:""}}},{type:{type:"string",const:"free-chat"},actor:{type:"string",const:"user"},content:i.object({},{text:{type:"string",format:"markdown"}})}),f=i.object({title:"Chat Message",default:{type:"chat-message",actor:"model",content:{text:""}}},{type:{type:"string",const:"chat-message"},content:i.object({},{text:{type:"string",format:"markdown"}})}),h=i.object({title:"Load Document",default:{type:"load-document",actor:"user",content:{}}},{type:{type:"string",const:"load-document"},content:i.object({},{document:i.objectId({links:[{rel:"db",href:"/db/ai_document/{($)}"}]})})});i.InlineInteractionSchema.oneOf=[l,d,p,f,h],i.InteractionArraySchema=function(e){return{type:"array",description:e,items:i.InlineInteractionSchema}}},770858:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"auth:me-synced":r.object({required:["me"]},{me:{type:"object"}}),"auth:signed-up":r.object({}),"auth:logging-out":r.object({}),"auth:linkedin-api-loaded":r.object({}),"auth:log-in-with-github":r.object({}),"auth:user-credits-message-updates":r.object({})}},30894:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"bus:connecting":r.object({title:"Bus Connecting",description:"Published when a Bus starts connecting"},{bus:{$ref:"bus"}}),"bus:connected":r.object({title:"Bus Connected",description:"Published when a Bus has connected"},{bus:{$ref:"bus"}}),"bus:disconnected":r.object({title:"Bus Disconnected",description:"Published when a Bus has disconnected"},{bus:{$ref:"bus"}}),"bus:new-message":r.object({title:"Message sent",description:"A new message was sent"},{message:{type:"object"},bus:{$ref:"bus"}}),"bus:player-joined":r.object({title:"Player joined",description:"A new player has joined"},{player:{type:"object"},bus:{$ref:"bus"}}),"bus:player-left":r.object({title:"Player left",description:"A player has left"},{player:{type:"object"},bus:{$ref:"bus"}}),"bus:player-states-changed":r.object({title:"Player state changes",description:"State of the players has changed"},{states:{type:"object",additionalProperties:{type:"object"}},bus:{$ref:"bus"}})}},761149:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"editor:campaign-analytics-modal-closed":r.object({title:"Campaign editor analytics modal closed"},{targetLevelSlug:{type:"string"}}),"editor:view-switched":r.object({title:"Level View Switched",description:"Published whenever the view switches"},{targetURL:{type:"string"}}),"editor:level-component-editing-ended":r.object({required:["component"]},{component:{type:"object"}}),"editor:edit-level-system":r.object({required:["original","majorVersion"]},{original:{type:"string"},majorVersion:{type:"integer",minimum:0}}),"editor:level-system-added":r.object({required:["system"]},{system:{type:"object"}}),"editor:level-system-editing-ended":r.object({required:["system"]},{system:{type:"object"}}),"editor:edit-level-thang":r.object({required:["thangID"]},{thangID:{type:"string"}}),"editor:level-thang-edited":r.object({required:["thangData","oldPath"]},{thangData:{type:"object"},oldPath:{type:"string"}}),"editor:level-thang-done-editing":r.object({required:["thangData","oldPath"]},{thangData:{type:"object"},oldPath:{type:"string"}}),"editor:level-thangs-changed":r.object({required:["thangs"],description:"Something has changed the list of thangs in the level config"},{thangs:r.array({},{type:"object"})}),"editor:thangs-edited":r.object({required:["thangs"],description:"Something has edited the fully built thangs in the world"},{thangs:r.array({},{type:"object"})}),"editor:thang-deleted":r.object({required:["thangID"],description:"We have deleted a Thang"},{thangID:{type:"string"}}),"editor:level-loaded":r.object({required:["level"]},{level:{type:"object"}}),"level:reload-from-data":r.object({required:["level","supermodel"]},{level:{type:"object"},supermodel:{type:"object"}}),"level:reload-thang-type":r.object({required:["thangType"]},{thangType:{type:"object"}}),"level:open-restart-modal":r.object({title:"Restart level modal about to open"}),"level:open-options-modal":r.object({title:"Level options modal opened"}),"editor:random-terrain-generated":r.object({required:["thangs","terrain"]},{thangs:r.array({},{type:"object"}),terrain:r.terrainString}),"editor:generate-random-level":r.object({required:["size"]},{size:{type:"string"}}),"editor:terrain-changed":r.object({required:["terrain"]},{terrain:{oneOf:[r.terrainString,{type:["null","undefined"]}]}}),"editor:migrate-junior":r.object({},{}),"editor:thang-type-kind-changed":r.object({required:["kind"]},{kind:{type:"string"}}),"editor:thang-type-color-groups-changed":r.object({required:["colorGroups"]}
2,{colorGroups:{type:"object"}})}},242156:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"errors:server-error":r.object({required:["response"]},{response:{type:"object"}})}},802107:(e,t,n)=>{"use strict";var r=n(975434),o={type:"object",additionalProperties:{type:"object",required:["status"],properties:{status:{oneOf:[{type:"null"},{type:"string",enum:["success","failure","incomplete"]}]},keyFrame:{oneOf:[{type:"integer",minimum:0},{type:"string",enum:["end"]}]},team:{type:["null","string","undefined"]}}}},i=r.object({required:["world","firstWorld","goalStates","team","firstChangedFrame"]},{world:{type:"object"},firstWorld:{type:"boolean"},goalStates:o,team:{type:"string"},firstChangedFrame:{type:"integer",minimum:0},finished:{type:"boolean"},god:{type:"object"},keyValueDb:{type:"object"}});e.exports={"god:user-code-problem":r.object({required:["problem","god"]},{god:{type:"object"},problem:{type:"object"}}),"god:non-user-code-problem":r.object({required:["problem","god"]},{god:{type:"object"},problem:{type:"object"}}),"god:infinite-loop":r.object({required:["firstWorld","god"],description:"Used for both infinite loops and non-user-code problems"},{god:{type:"object"},firstWorld:{type:"boolean"},nonUserCodeProblem:{type:"boolean"},problem:{type:"object"},timedOut:{type:"boolean"}}),"god:new-world-created":i,"god:streaming-world-updated":i,"god:new-html-goal-states":r.object({required:["goalStates","overallStatus"]},{goalStates:o,overallStatus:{type:["string","null"],enum:["success","failure","incomplete",null]}}),"god:goals-calculated":r.object({required:["goalStates","god"]},{god:{type:"object"},goalStates:o,preload:{type:"boolean"},overallStatus:{type:["string","null"],enum:["success","failure","incomplete",null]},totalFrames:{type:["integer","undefined"]},lastFrameHash:{type:["number","undefined"]},simulationFrameRate:{type:["number","undefined"]}}),"god:world-load-progress-changed":r.object({required:["progress","god"]},{god:{type:"object"},progress:{type:"number",minimum:0,maximum:1}}),"god:debug-world-load-progress-changed":r.object({required:["progress","god"]},{god:{type:"object"},progress:{type:"number",minimum:0,maximum:1}}),"god:debug-value-return":r.object({required:["key","god"]},{god:{type:"object"},key:{type:"string"},value:{}})}},767558:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"ipad:products":r.object({required:["products"]},{products:r.array({},r.object({},{price:{type:"string"},id:{type:"string"}}))}),"ipad:language-chosen":r.object({},{language:{type:"string"}}),"ipad:iap-complete":r.object({},{productID:{type:"string"}}),"ipad:memory-warning":r.object({})}},823800:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"application:idle-changed":r.object({},{idle:{type:"boolean"},type:{enum:["activity","visibility"]}}),"view-visibility:away":r.object({}),"view-visibility:away-back":r.object({}),"view-visibility:hidden":r.object({}),"view-visibility:visible":r.object({}),"application:error":r.object({},{message:{type:"string"},stack:{type:"string"}}),"audio-player:loaded":r.object({required:["sender"]},{sender:{type:"object"}}),"audio-player:play-sound":r.object({required:["trigger"]},{trigger:{type:"string"},volume:{type:"number",minimum:0,maximum:1},delay:{type:"number",minimum:0,description:"Delay in seconds before the sound should play"},pos:{type:["object","null"],description:"World coordinates for where the sound is coming from, for in-game sounds"},pan:{type:"number",minimum:-1,maximum:1,description:"Left/right panning (default: 0, center)"}}),"music-player:play-music":r.object({required:["play"]},{play:{type:"boolean"},file:{type:"string"},delay:{type:"integer",minimum:0,format:"milliseconds"}}),"music-player:enter-menu":r.object({required:[]},{terrain:{type:"string"}}),"music-player:exit-menu":r.object({}),"modal:opened":r.object({}),"modal:closed":r.object({}),"router:navigate":r.object({required:["route"]},{route:{type:"string"},view:{type:"object"},viewClass:{type:["function","string"]},viewArgs:{type:"array"}}),"router:navigated":r.object({required:["route"]},{route:{type:"string"}}),"achievements:new":r.object({required:["earnedAchievements"]},{earnedAchievements:{type:"object"}}),"ladder:game-submitted":r.object({required:["session","level"]},{session:{type:"object"},level:{type:"object"}}),"buy-gems-modal:update-products":{},"buy-gems-modal:purchase-initiated":r.object({required:["productID"]},{productID:{type:"string"}}),"subscribe-modal:subscribed":r.object({}),"stripe:received-token":r.object({required:["token"]},{token:{type:"object",properties:{id:{type:"string"}}}}),"store:item-purchased":r.object({required:["item","itemSlug"]},{item:{type:"object"},itemSlug:{type:"string"}}),"store:hero-purchased":r.object({required:["hero","heroSlug"]},{hero:{type:"object"},heroSlug:{type:"string"}}),"application:service-loaded":r.object({required:["service"]},{service:{type:"string"}}),"test:update":r.object({},{state:{type:"string"}})}}
2,449564:(e,t,n)=>{"use strict";var r=n(975434),o=n(18960);e.exports={"level:session-will-save":r.object({required:["session"]},{session:{type:"object"}}),"level:shift-space-pressed":r.object({}),"level:escape-pressed":r.object({}),"level:enable-controls":r.object({},{controls:r.array({},r.shortString())}),"level:disable-controls":r.object({},{controls:r.array({},r.shortString())}),"level:overallStatus-changed":r.object({required:["overallStatus"]},{overallStatus:{type:["string","null","undefined"]}}),"level:set-letterbox":r.object({},{on:{type:"boolean"}}),"level:started":r.object({}),"level:set-debug":r.object({required:["debug"]},{debug:{type:"boolean"}}),"level:restart":r.object({}),"level:restarted":r.object({}),"level:set-volume":r.object({required:["volume"]},{volume:{type:"number",minimum:0,maximum:1}}),"level:set-time":r.object({},{time:{type:"number",minimum:0},ratio:{type:"number",minimum:0,maximum:1},ratioOffset:{type:"number"},frameOffset:{type:"number"},scrubDuration:{type:"number",minimum:0}}),"level:select-sprite":r.object({},{thangID:{type:["string","null","undefined"]},spellName:{type:["string","null","undefined"]}}),"level:set-playing":r.object({required:["playing"]},{playing:{type:"boolean"}}),"level:team-set":r.object({required:["team"]},{team:r.shortString()}),"level:docs-shown":r.object({}),"level:docs-hidden":r.object({}),"level:hints-button":r.object({},{state:{type:"boolean"}}),"level:flag-color-selected":r.object({},{color:{oneOf:[{type:"null"},{type:"string",enum:["green","black","violet"],description:"The flag color to place next, or omitted/null if deselected."}]},pos:r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"}})}),"level:flag-updated":r.object({required:["player","color","time","active"]},{player:{type:"string"},team:{type:"string"},color:{type:"string",enum:["green","black","violet"]},time:{type:"number",minimum:0},active:{type:"boolean"},pos:r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"}}),source:{type:"string",enum:["click","code"]}}),"level:next-game-pressed":r.object({}),"level:loaded":r.object({required:["level"]},{level:{type:"object"},team:{type:["string","null","undefined"]}}),"level:session-loaded":r.object({required:["level","session"]},{level:{type:"object"},session:{type:"object"}}),"level:loading-view-unveiling":r.object({}),"level:loading-view-unveiled":r.object({required:["view"]},{view:{type:"object"}}),"playback:manually-scrubbed":r.object({required:["ratio"]},{ratio:{type:"number",minimum:0,maximum:1}}),"playback:stop-real-time-playback":r.object({}),"playback:stop-cinematic-playback":r.object({}),"playback:real-time-playback-started":r.object({}),"playback:real-time-playback-ended":r.object({}),"playback:cinematic-playback-started":r.object({}),"playback:cinematic-playback-ended":r.object({}),"playback:ended-changed":r.object({required:["ended"]},{ended:{type:"boolean"}}),"playback:playback-ended":r.object({description:"Ozaria uses this; not sure if it needs to be different from surface:playback-ended"}),"level:toggle-playing":r.object({}),"level:toggle-grid":r.object({}),"level:toggle-debug":r.object({}),"level:toggle-pathfinding":r.object({}),"level:scrub-forward":r.object({}),"level:scrub-back":r.object({}),"level:show-victory":r.object({required:["showModal"]},{showModal:{type:"boolean"},manual:{type:"boolean"},capstoneInProgress:{type:"boolean"},isCapstone:{type:"boolean"}}),"level:highlight-dom":r.object({required:["selector"]},{selector:{type:"string"},delay:{type:["number","null","undefined"]},sides:{type:"array",items:{enum:["left","right","top","bottom"]}},offset:{type:"object"},rotation:{type:"number"}}),"level:end-highlight-dom":r.object({}),"level:focus-dom":r.object({},{selector:{type:"string"}}),"level:lock-select":r.object({},{lock:{type:["boolean","array"]}}),"level:suppress-selection-sounds":r.object({required:["suppress"]},{suppress:{type:"boolean"}}),"goal-manager:new-goal-states":r.object({required:["goalStates","goals","overallStatus","timedOut"]},{goalStates:{type:"object",additionalProperties:{type:"object",required:["status"],properties:{status:{oneOf:[{type:"null"},{type:"string",enum:["success","failure","incomplete"]}]},keyFrame:{oneOf:[{type:"integer",minimum:0},{type:"string",enum:["end"]}]},team:{type:["null","string","undefined"]}}}},goals:r.array({},{type:"object"}),overallStatus:{oneOf:[{type:"null"},{type:"string",enum:["success","failure","incomplete"]}]},timedOut:{type:"boolean"},capstoneStage:{type:["integer","undefined"]}}),"level:hero-config-changed":r.object({}),"level:hero-selection-updated":r.object({required:["hero"]},{hero:{type:"object"}}),"level:subscription-required":r.object({}),"level:course-membership-required":r.object({}),"level:contact-button-pressed":r.object({title:"Contact Pressed",description:"Dispatched when the contact button is pressed in a level."}),"level:surface-context-menu-pressed":r.object({required:["posX","posY","wopX","wopY"]},{posX:{type:"number"},posY:{type:"number"},wopX:{type:"number"},wopY:{type:"number"}}),"level:surface-context-menu-hide":r.object({}),"level:license-required":r.object({}),"level:open-items-modal":r.object({}),"level:scores-updated":r.object({},{scores:r.array({},r.object({required:["type","score"]},{type:r.shortString(),score:{type:"number"}}))}),"level:top-scores-updated":r.object({},{scores:r.array({},r.object({required:["type","score"]},{type:r.shortString(),score:{type:"number"},date:r.date()}))}),"level:gather-chat-message-context":r.object({required:["chat"]},{chat:o}),"level:streaming-solution":r.object({},{finish:{type:"boolean"}}),"level:add-user-chat":r.object({required:["message"]},{message:{type:"string"}}),"level:update-solution":r.object({required:["code"]},{code:{type:"string"}}),"level:toggle-solution":r.object({},{code:{type:"string"}}),"level:close-solution":r.object({},{removeButton:{type:"boolean"}}),"level:apply-solution":r.object({}),"level:click-ai-hint":r.object({}),"level:locked":r.object({},{level:{type:"object"}}),"ladder:refresh":r.object({})}}
2,285962:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"script:end-current-script":r.object({}),"script:reset":r.object({}),"script:ended":r.object({required:["scriptID"]},{scriptID:{type:"string"}}),"script:state-changed":r.object({required:["currentScript","currentScriptOffset"]},{currentScript:{type:["string","null"]},currentScriptOffset:{type:"integer",minimum:0}}),"script:tick":r.object({required:["scriptRunning","noteGroupRunning","scriptStates","timeSinceLastScriptEnded"]},{scriptRunning:{type:"string"},noteGroupRunning:{type:"string"},timeSinceLastScriptEnded:{type:"number"},scriptStates:{type:"object",additionalProperties:r.object({title:"Script State"},{timeSinceLastEnded:{type:"number",minimum:0,description:"seconds since this script ended last"},timeSinceLastTriggered:{type:"number",minimum:0,description:"seconds since this script was triggered last"}})}}),"script:note-group-started":r.object({}),"script:note-group-ended":r.object({})}},211872:(e,t,n)=>{"use strict";var r=n(975434),o=r.object({required:["sprite","thang","originalEvent","canvas"]},{sprite:{type:"object"},thang:{type:"object"},originalEvent:{type:"object"},canvas:{type:"object"}});e.exports={"camera:dragged":r.object({}),"camera:zoom-in":r.object({}),"camera:zoom-out":r.object({}),"camera:zoom-to":r.object({required:["pos"]},{pos:r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"}}),duration:{type:"number",minimum:0}}),"camera:zoom-updated":r.object({required:["camera","zoom","surfaceViewport"]},{camera:{type:"object"},zoom:{type:"number",minimum:0,exclusiveMinimum:!0},surfaceViewport:{type:"object"},minZoom:{type:"number",minimum:0,exclusiveMinimum:!0}}),"camera:set-camera":r.object({},{pos:r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"}}),thangID:{type:"string"},zoom:{type:"number"},duration:{type:"number",minimum:0},bounds:r.array({maxItems:2,minItems:2},r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"}}))}),"sprite:speech-updated":r.object({required:["sprite","thang"]},{sprite:{type:"object"},thang:{type:["object","null"]},blurb:{type:["string","null","undefined"]},message:{type:"string"},mood:{type:"string"},responses:{type:["array","null","undefined"]},spriteID:{type:"string"},sound:{type:["null","undefined","object"]}}),"level:sprite-dialogue":r.object({required:["spriteID","message"]},{blurb:{type:["string","null","undefined"]},message:{type:"string"},mood:{type:"string"},responses:{type:["array","null","undefined"]},spriteID:{type:"string"},sound:{type:["null","undefined","object"]}}),"sprite:dialogue-sound-completed":r.object({}),"level:sprite-clear-dialogue":r.object({}),"sprite:hero-health-updated":r.object({required:["health","maxHealth"]},{health:{type:"number"},maxHealth:{type:"number"}}),"surface:gold-changed":r.object({required:["team","gold"]},{team:{type:"string"},gold:{type:"number"},goldEarned:{type:"number"}}),"surface:coordinate-selected":r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"},z:{type:"number"}}),"surface:coordinates-shown":r.object({}),"sprite:loaded":r.object({},{sprite:{type:"object"}}),"surface:choose-point":r.object({required:["point"]},{point:r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"},z:{type:"number"}})}),"surface:choose-region":r.object({required:["points"]},{points:r.array({minItems:2,maxItems:2},r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"},z:{type:"number"}}))}),"surface:new-thang-added":r.object({required:["thang","sprite"]},{thang:{type:"object"},sprite:{type:"object"}}),"surface:sprite-selected":r.object({required:["thang","sprite"]},{thang:{type:["object","null","undefined"]},sprite:{type:["object","null","undefined"]},spellName:{type:["string","null","undefined"]},originalEvent:{type:["object","null","undefined"]},worldPos:{type:["object","null","undefined"]}}),"sprite:thang-began-talking":r.object({},{thang:{type:"object"}}),"sprite:thang-finished-talking":r.object({},{thang:{type:"object"}}),"sprite:highlight-sprites":r.object({},{thangIDs:r.array({},{type:"string"}),delay:{type:["number","null","undefined"]}}),"sprite:move":r.object({required:["spriteID","pos"]},{spriteID:{type:"string"},pos:r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"},z:{type:"number"}}),duration:{type:"number",minimum:0}}),"sprite:mouse-down":o,"sprite:clicked":o,"sprite:double-clicked":o,"sprite:dragged":o,"sprite:mouse-up":o,"surface:frame-changed":r.object({required:["frame","world","progress"]},{frame:{type:"number",minimum:0},world:{type:"object"},progress:{type:"number",minimum:0,maximum:1},selectedThang:{type:["object","null","undefined"]}}),"surface:playback-ended":r.object({}),"surface:playback-restarted":r.object({}),"surface:mouse-moved":r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"}}),"surface:stage-mouse-down":r.object({required:["x","y","originalEvent"]}
2,{onBackground:{type:"boolean"},x:{type:"number"},y:{type:"number"},originalEvent:{type:"object"},worldPos:{type:["object","null","undefined"]}}),"surface:stage-mouse-up":r.object({required:["originalEvent"]},{x:{type:["number","undefined"]},y:{type:["number","undefined"]},originalEvent:{type:"object"}}),"surface:mouse-scrolled":r.object({required:["deltaX","deltaY","canvas"]},{deltaX:{type:"number"},deltaY:{type:"number"},screenPos:r.object({required:["x","y"]},{x:{type:"number"},y:{type:"number"}}),canvas:{type:"object"}}),"surface:ticked":r.object({required:["dt"]},{dt:{type:"number"}}),"surface:mouse-over":r.object({}),"surface:mouse-out":r.object({}),"sprite:echo-all-wizard-sprites":r.object({required:["payload"]},{payload:r.array({},{type:"object"})}),"self-wizard:created":r.object({required:["sprite"]},{sprite:{type:"object"}}),"self-wizard:target-changed":r.object({required:["sprite"]},{sprite:{type:"object"}}),"surface:flag-appeared":r.object({required:["sprite"]},{sprite:{type:"object"}}),"surface:remove-selected-flag":r.object({}),"surface:remove-flag":r.object({required:["color"]},{color:{type:"string"}}),"surface:update-screen-reader-map":r.object({required:["grid"]},{grid:{type:"object"},bounds:{type:"object"}})}},574315:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"tome:cast-spell":r.object({title:"Cast Spell",description:"Published when a spell is cast",required:[]},{spell:{type:"object"},thang:{type:"object"},preload:{type:"boolean"},realTime:{type:"boolean"},justBegin:{type:"boolean"},cinematic:{type:"boolean"}}),"tome:cast-spells":r.object({title:"Cast Spells",description:"Published when spells are cast",required:["spells","preload","realTime","submissionCount","flagHistory","difficulty","god"]},{spells:{type:"object"},preload:{type:"boolean"},realTime:{type:"boolean"},synchronous:{type:"boolean"},submissionCount:{type:"integer"},fixedSeed:{type:["integer","undefined"]},flagHistory:{type:"array"},difficulty:{type:"integer"},god:{type:"object"},justBegin:{type:"boolean"},cinematic:{type:"boolean"},keyValueDb:{type:"object"},spellJustLoaded:{type:"boolean"},spellsAreUnchanged:{type:"boolean",description:"Whether the code has is the same as it was on the last cast"}}),"tome:manual-cast":r.object({title:"Manually Cast Spells",description:"Published when you wish to manually recast all spells",required:[]},{realTime:{type:"boolean"}}),"tome:manual-cast-denied":r.object({title:"Manual Cast Denied",description:"Published when player attempts to submit for real-time playback, but must wait after a replayable level failure.",required:["timeUntilResubmit"]},{timeUntilResubmit:{type:"number"}}),"tome:spell-created":r.object({title:"Spell Created",description:"Published after a new spell has been created",required:["spell"]},{spell:{type:"object"}}),"tome:spell-has-changed-significantly-calculation":r.object({title:"Has Changed Significantly Calculation",description:"Let anyone know that the spell has changed significantly.",required:["hasChangedSignificantly"]},{hasChangedSignificantly:{type:"boolean"}}),"tome:spell-debug-property-hovered":r.object({title:"Spell Debug Property Hovered",description:"Published when you hover over a spell property",required:[]},{property:{type:"string"},owner:{type:"string"}}),"tome:spell-debug-value-request":r.object({title:"Spell Debug Value Request",description:"Published when the SpellDebugView wants to retrieve a debug value.",required:["thangID","spellID","variableChain","frame"]},{thangID:{type:"string"},spellID:{type:"string"},variableChain:r.array({},{type:"string"}),frame:{type:"integer",minimum:0}}),"tome:palette-cleared":r.object({title:"Palette Cleared",description:"Published when the spell palette is about to be cleared and recreated."},{thangID:{type:"string"}}),"tome:palette-updated":r.object({title:"Palette Updated",description:"Published when the spell palette has just been updated."},{thangID:{type:"string"},entryGroups:{type:"object"}}),"tome:palette-hovered":r.object({title:"Palette Hovered",description:"Published when you hover over a Thang in the spell palette",required:["thang","prop","entry"]},{thang:{type:"object"},prop:{type:"string"},entry:{type:"object"}}),"tome:palette-pin-toggled":r.object({title:"Palette Pin Toggled",description:"Published when you pin or unpin the spell palette",required:["entry","pinned"]},{entry:{type:"object"},pinned:{type:"boolean"}}),"tome:palette-clicked":r.object({title:"Palette Clicked",description:"Published when you click on the spell palette",required:["thang","prop","entry"]},{thang:{type:"object"},prop:{type:"string"},entry:{type:"object"}}),"tome:spell-statement-index-updated":r.object({title:"Spell Statement Index Updated",description:"Published when the spell index is updated",required:["statementIndex","ace"]},{statementIndex:{type:"integer"},ace:{type:"object"}}),"tome:spell-beautify":r.object({title:"Beautify",description:"Published when you click the 'beautify' button",required:[]},{spell:{type:"object"}}),"tome:spell-step-forward":r.object({title:"Step Forward",description:"Published when you step forward in time"}),"tome:spell-step-backward":r.object({title:"Step Backward",description:"Published when you step backward in time"}),"tome:spell-loaded":r.object({title:"Spell Loaded",description:"Published when a spell is loaded",required:["spell"]},{spell:{type:"object"}}),"tome:spell-changed":r.object({title:"Spell Changed",description:"Published when a spell is changed",required:["spell"]},{spell:{type:"object"}}),"tome:editing-began":r.object({title:"Editing Began",description:"Published when you have begun changing code"}
2),"tome:editing-ended":r.object({title:"Editing Ended",description:"Published when you have stopped changing code"}),"tome:problems-updated":r.object({title:"Problems Updated",description:"Published when problems have been updated",required:["spell","problems","isCast"]},{spell:{type:"object"},problems:{type:"array"},isCast:{type:"boolean",description:"Whether the code has been Run yet. Sometimes determines if error displays as just annotation or as full banner."}}),"tome:change-language":r.object({title:"Tome Change Language",description:"Published when the Tome should update its programming language",required:["language"]},{language:{type:"string"},reload:{type:"boolean",description:"Whether player code should reload to the default when the language changes."}}),"tome:spell-changed-language":r.object({title:"Spell Changed Language",description:"Published when an individual spell has updated its code language",required:["spell"]},{spell:{type:"object"},language:{type:"string"}}),"tome:comment-my-code":r.object({title:"Comment My Code",description:"Published when we comment out a chunk of your code"}),"tome:reset-my-code":r.object({title:"Reset My Code",description:"Published when we force reset your code from an error modal"}),"tome:change-config":r.object({title:"Change Config",description:"Published when you change your tome settings"}),"tome:update-snippets":r.object({title:"Update Snippets",description:"Published when we need to add autocomplete snippets",required:["propGroups","allDocs"]},{propGroups:{type:"object"},allDocs:{type:"object"},language:{type:"string"}}),"tome:insert-snippet":r.object({title:"Insert Snippet",description:"Published when we need to insert a autocomplete snippet",required:["doc","language","formatted"]},{doc:{type:"object"},language:{type:"string"},formatted:{type:"object"}}),"tome:focus-editor":r.object({title:"Focus Editor",description:"Published whenever we want to give focus back to the editor"}),"tome:select-primary-sprite":r.object({title:"Select Primary Sprite",description:"Published to get the most important sprite's code selected."}),"tome:toggle-blocks":r.object({title:"Toggle Blocks",description:"Published when we want to toggle the blocks view",required:["blocks"]},{blocks:{type:"boolean",description:"Whether blocks should be enabled"}}),"tome:code-format-changed":r.object({title:"Set Code Format",description:"Published when the Tome determines what the code format should be, or when it changes",required:["codeFormat"]},{oldCodeFormat:{type:"string",description:"The old code format",enum:["blocks-icons","blocks-text","blocks-and-code","text-code"]},codeFormat:{type:"string",description:"The new code format",enum:["blocks-icons","blocks-text","blocks-and-code","text-code"]}}),"tome:required-code-fragment-deleted":r.object({title:"Required Code Fragment Deleted",description:"Published when a required code fragment is deleted from the sample code.",required:["codeFragment"]},{codeFragment:{type:"string"}}),"tome:suspect-code-fragment-added":r.object({title:"Suspect Code Fragment Added",description:"Published when a suspect code fragment is added to the sample code.",required:["codeFragment"]},{codeFragment:{type:"string"},codeLanguage:{type:"string"}}),"tome:suspect-code-fragment-deleted":r.object({title:"Suspect Code Fragment Deleted",description:"Published when a suspect code fragment is deleted from the sample code.",required:["codeFragment"]},{codeFragment:{type:"string"},codeLanguage:{type:"string"}}),"tome:winnability-updated":r.object({title:"Winnability Updated",description:"When we think we can now win (or can no longer win), we may want to emphasize the submit button versus the run button (or vice versa), so this fires when we get new goal states (even preloaded goal states) suggesting success or failure change.",required:["winnable"]},{winnable:{type:"boolean"},level:{type:"object"}}),"tome:show-problem-alert":r.object({title:"Show Problem Alert",description:"A problem alert needs to be shown.",required:["problem"]},{problem:{type:"object"},lineOffsetPx:{type:["number","undefined"]}}),"tome:hide-problem-alert":r.object({title:"Hide Problem Alert"}),"tome:jiggle-problem-alert":r.object({title:"Jiggle Problem Alert"}),"tome:html-updated":r.object({title:"HTML Updated",required:["html","create"]},{html:{type:"string",description:"The full HTML to display"},create:{type:"boolean",description:"Whether we should (re)create the DOM (as opposed to updating it)"}}),"tome:remove-all-markers":r.object({}),"tome:scroll-to-top":r.object({}),"tome:update-aether-running":r.object({}),"tome:update-aether":r.object({}),"tome:completer-add-user-snippets":r.object({}),"tome:completer-popup-focus-change":r.object({},{word:{type:"string"},markerRange:{type:"object"}}),"tome:fix-code":r.object({required:["code"]},{code:{type:"string"}}
2),"tome:fix-code-preview-start":r.object({required:["code"]},{code:{type:"string"}}),"tome:fix-code-preview-end":r.object({}),"blockly:clicked-block":r.object({required:["block","text"]},{block:{type:"object"},text:{type:"string"}}),"tome:game-menu-opened":r.object({}),"tome:blockly-error":r.object({})}},326057:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"web-dev:error":r.object({title:"Web Dev Error",description:"Published when an uncaught error occurs in the web-dev iFrame",required:[]},{message:{type:"string"},url:{type:"string",description:"URL of the host iFrame"},line:{type:"integer",description:"Line number of the start of the code that threw the exception (relative to its <script> tag!)"},column:{type:"integer",description:"Column number of the start of the code that threw the exception"},error:{type:"string",description:"The .toString of the originally thrown exception"}}),"web-dev:hover-line":r.object({title:"Web-dev Hover Line",description:"Published when the user is hovering over a line of code, for the purposes of highlighting nodes based on the hovered CSS selector"},{row:{type:"integer",description:"The row number of the hovered line (zero-indexed!)"},line:{type:"string",description:"The full line of code that the user is hovering over"}}),"web-dev:stop-hovering-line":r.object({title:"Stop hovering line",description:"Published when the user is no longer hovering over a line of code with their mouse."})}},651705:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"websocket:update-infos":r.object({}),"websocket:user-online":r.object({title:"Player online states"},{user:{type:"object"}}),"websocket:asking-help":r.object({title:"Asking help",description:"Turn playLevelView to YJS and send message to teacher"},{msg:{type:"object"}})}},707028:(e,t,n)=>{"use strict";var r=n(975434);e.exports={"world:won":r.object({},{replacedNoteChain:{type:"array"}}),"world:thang-died":r.object({required:["thang","killer"]},{replacedNoteChain:{type:"array"},thang:{type:"object"},killer:{type:"object"},killerHealth:{type:["number","undefined"]},maxHealth:{type:"number"}}),"world:thang-touched-goal":r.object({required:["actor","touched"]},{replacedNoteChain:{type:"array"},thang:{type:"object"},actor:{type:"object"},touched:{type:"object"}}),"world:thang-collected-item":r.object({required:["actor","item"]},{replacedNoteChain:{type:"array"},thang:{type:"object"},actor:{type:"object"},item:{type:"object"}}),"world:thang-finished-plans":r.object({required:["thang"]},{replacedNoteChain:{type:"array"},thang:{type:"object"}}),"world:attacked-when-out-of-range":r.object({required:["thang"]},{replacedNoteChain:{type:"array"},thang:{type:"object"}}),"world:custom-script-trigger":{type:"object"},"world:user-code-problem":r.object({required:["thang","problem"]},{thang:{type:"object"},problem:r.object({required:["message","level","type"]},{userInfo:{type:"object"},message:{type:"string"},level:{type:"string",enum:["info","warning","error"]},type:{type:"string"},error:{type:"object"}})}),"world:lines-of-code-counted":r.object({required:["thang","linesUsed"]},{thang:{type:"object"},linesUsed:{type:"integer"}}),"world:update-key-value-db":r.object({title:"Update KeyValueDb",description:"The signal to update keyValueDb in a player level session from world"})}},296779:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function c(e,t,n){return t=p(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(null,arguments)}function d(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}
2function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}n(798242);var h=n(968029),m=n(724451),g=n(249449);n(956323),e.exports=((r=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=c(this,t,[e])).achievement=e.achievement,n.earnedAchievement=e.earnedAchievement,n.container=e.container||n.getContainer(),n.popup=e.container,null==n.popup&&(n.popup=!0),n.popup&&(n.className+=" popup"),n.render(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,i=[{key:"initClass",value:function(){this.prototype.className="achievement-popup",this.prototype.template=m}}],(r=[{key:"calculateData",value:function(){var e,t=me.rank(),n=t+1,r=g.expForRank(t),o=g.expForRank(n),i=o-r,a=this.achievement.getExpFunction(),s=me.get("points",!0);me.isInGodMode()&&(s+=1e6),this.achievement.isRepeatable()?this.achievement.isRepeatable()&&(e=a(this.earnedAchievement.get("previouslyAchievedAmount"))*this.achievement.get("worth")):e=this.achievement.get("worth",!0);var c=100*(s-e-r)/i;c<0&&(c=0);var u=s-e<r?100*(s-r)/i:100*e/i;return{title:this.achievement.i18nName(),imgURL:this.achievement.getImageURL(),description:this.achievement.i18nDescription(),rank:t,currentXP:s,newXP:e,leftXP:o-s,oldXPWidth:c,newXPWidth:u,leftXPWidth:100-u-c}}},{key:"getRenderData",value:function(){var e=l(p(t.prototype),"getRenderData",this).call(this);return _.extend(e,this.calculateData()),e.style=this.achievement.getStyle(),e.popup=!0,e.$=o,e}},{key:"render",value:function(){var e=this;if(l(p(t.prototype),"render",this).call(this),this.container.prepend(this.$el),this.popup){var n=function(){if(!e.destroyed)return e.$el.animate({left:-600},(function(){return e.$el.remove(),e.destroy()}))};if(this.$el.animate({left:0}),this.$el.on("click",n),!o("#editor-achievement-edit-view").length)return _.delay(n,1e4)}}},{key:"getContainer",value:function(){return this.container||(this.container=o(".achievement-popup-container"),this.container.length||(o("body").append('<div class="achievement-popup-container"></div>'),this.container=o(".achievement-popup-container"))),this.container}},{key:"afterRender",value:function(){return l(p(t.prototype),"afterRender",this).call(this),_.delay(this.initializeTooltips,1e3)}},{key:"initializeTooltips",value:function(){return o(".progress-bar").addClass("has-tooltip").tooltip()}}])&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(h)).initClass(),r)},498407:(e,t,n)=>{"use strict";var r,o=n(665420),i=n(619755);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(){s=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,c,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,c)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}
vendor: 5,017 bytes, line 2
2))}function E(e,t){function n(o,i,s,c){var u=f(e[o],e,i);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==a(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(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 o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(a(t)+" is not iterable")}return b.prototype=_,o(k,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,l,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,u,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,l,"Generator"),d(k,c,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];
2if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function c(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(void 0)}))}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==a(t)?t:t+""}function f(e,t,n){return t=y(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function m(){return m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=g(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},m.apply(null,arguments)}function g(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=y(e)););return e}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}n(580113);var b=n(299498),w=n(921336),S=n(545227),C=n(439980),k=n(249449),x=n(186421),E=n(226256),O=n(969278),T=n(905343).logInWithClever,A=n(676272),P=n(667875),I=n(504015),j=n(482156);e.exports=((r=function(e){function t(){return l(this,t),f(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),r=t,a=[{key:"initialize",value:function(e){var t=this;null==e&&(e={}),this.utils=b,this.previousFormInputs=e.initialValues||{},null==this.previousFormInputs.emailOrUsername&&(this.previousFormInputs.emailOrUsername=this.previousFormInputs.email||this.previousFormInputs.username),e.loginMessage&&(this.loginMessage=e.loginMessage),e.nextUrl&&(this.nextUrl=e.nextUrl,window.nextURL=e.nextUrl),me.useSocialSignOn()&&(o.gplusHandler.loadAPI({success:function(){return _.defer((function(){return t.$("#google-login-button").attr("disabled",!1),t.onClickGPlusLoginButton()}))}}),b.isCodeCombat&&o.facebookHandler.loadAPI({success:function(){return _.defer((function(){return t.$("#facebook-login-btn").attr("disabled",!1)}))}})),this.subModalContinue=e.subModalContinue,this.showLibraryModal=j.shouldShowLibraryLoginModal(),this.onFacebookLoginError=this.onFacebookLoginError.bind(this)}},{key:"afterRender",value:function(){return m(y(t.prototype),"afterRender",this).call(this),this.playSound("game-menu-open")}},{key:"afterInsert",value:function(){var e=this;return m(y(t.prototype),"afterInsert",this).call(this),_.delay((function(){return i("input:visible:first",e.$el).focus()}),500)}},{key:"destroy",value:function(){if(this.nextUrl&&this.nextUrl===window.nextURL)return delete window.nextURL}},{key:"onSignupInstead",value:function(e){var t=new(n(287127))({initialValues:C.formToObject(this.$el,this.subModalContinue)});return I.currentView.openModalView(t)}},{key:"onSubmitForm",value:function(e){var t=this;this.playSound("menu-button-click"),e.preventDefault(),C.clearFormAlerts(this.$el),this.$("#unknown-error-alert").addClass("hide");var n=C.formToObject(this.$el),r=tv4.validateMultiple(n,L);if(!r.valid)return C.applyErrorsToForm(this.$el,r.errors);var a=!1;return new Promise(me.loginPasswordUser(n.emailOrUsername,n.password).then).c
2atch((function(e){if(401===e.status){var n=e.responseJSON.errorID;"not-found"===n&&(C.setErrorToProperty(t.$el,"emailOrUsername",i.i18n.t("loading_error."+(b.isCodeCombat?"user_not_found":"not_found"))),a=!0),"wrong-password"===n&&(C.setErrorToProperty(t.$el,"password",i.i18n.t("account_settings.wrong_password")),a=!0),"temp-password-expired"===n&&(C.setErrorToProperty(t.$el,"password",i.i18n.t("account_settings.temp_password_expired")),a=!0),b.isOzaria&&"individuals-not-supported"===n&&(C.setErrorToProperty(t.$el,"emailOrUsername",i.i18n.t("login.individual_users_not_supported")),a=!0)}else 429===e.status&&(a=!0,C.setErrorToProperty(t.$el,"emailOrUsername",i.i18n.t("loading_error.too_many_login_failures")));if(!a)return t.$("#unknown-error-alert").removeClass("hide")})).then((function(){return o.tracker.identifyAfterNextPageLoad(),o.tracker.identify()})).finally((function(){if(!a)return window.nextURL?window.location.href=window.nextURL:N(t.subModalContinue)}))}},{key:"onClickGPlusLoginButton",value:function(){var e=this.$("#google-login-button");return o.gplusHandler.connect({context:this,success:function(t){return null==t&&(t={}),e.find(".sign-in-blurb").text(i.i18n.t("login.logging_in")),e.attr("disabled",!0),o.gplusHandler.loadPerson({resp:t,context:this,success:function(e){var t=this;return(new k).fetchGPlusUser(e.gplusID,e.email,{success:function(){return me.loginGPlusUser(e.gplusID,{success:function(){return o.tracker.identifyAfterNextPageLoad(),o.tracker.identify().finally((function(){return N(t.subModalContinue)}))},error:t.onGPlusLoginError})},error:function(n,r){if(409===r.status&&r.responseJSON.errorID&&"account-with-email-exists"===r.responseJSON.errorID){var a,s=function(e){return me.loginGPlusUser(e.gplusID,{data:{merge:!0,email:e.email},success:function(){return o.tracker.identifyAfterNextPageLoad(),o.tracker.identify().finally((function(){return N(t.subModalContinue)}))},error:t.onGPlusLoginError})};return null!==(a=e.email)&&void 0!==a&&a.includes(k.getNapervilleDomain())?s(e):noty({text:i.i18n.t("login.accounts_merge_confirmation"),layout:"topCenter",type:"info",buttons:[{text:"Yes",onClick:function(t){return t.close(),s(e)}},{text:"No",onClick:function(e){return e.close()}}]})}return t.onGPlusLoginError(n,r)}})}})},error:function(e){return this.onGPlusLoginError(),(null!=e?e.error:void 0)&&(null!=e?e.details:void 0)&&(e.message||(e.message="Google login failed: ".concat(e.error," - ").concat(e.details))),noty({text:(null!=e?e.message:void 0)||(null!=e?e.details:void 0)||(t=e,n="toString",r=function(e){return e.toString()},null!=t&&"function"==typeof t[n]?r(t,n):void 0)||"Unknown Google login error",layout:"topCenter",type:"error",timeout:5e3,killer:!1,dismissQueue:!0});var t,n,r}})}},{key:"onGPlusLoginError",value:function(e,t){401===(null!=t?t.status:void 0)&&t.responseJSON.errorID&&"individuals-not-supported"===t.responseJSON.errorID?C.setErrorToProperty(this.$el,"emailOrUsername",i.i18n.t("login.individual_users_not_supported")):arguments.length&&x.showNotyNetworkError.apply(x,arguments);var n=this.$("#google-login-button");if(n.find(".sign-in-blurb").text(i.i18n.t("login.sign_in_with_gplus")),n.attr("disabled",!1),arguments.length)return x.showNotyNetworkError.apply(x,arguments)}},{key:"onClickFacebookLoginButton",value:function(){var e=this.$("#facebook-login-btn");return o.facebookHandler.connect({context:this,success:function(t){return e.find(".sign-in-blurb").text(i.i18n.t("login.logging_in")),e.attr("disabled",!0),o.facebookHandler.loadPerson({context:this,success:function(e){var n,r=this;return(new k).fetchFacebookUser(e.facebookID,null==t||null===(n=t.authResponse)||void 0===n?void 0:n.accessToken,{success:function(){var n;return me.loginFacebookUser(e.facebookID,null==t||null===(n=t.authResponse)||void 0===n?void 0:n.accessToken,{success:function(){return o.tracker.identifyAfterNextPageLoad(),o.tracker.identify().then((function(){return N(r.subModalContinue)}))},error:r.onFacebookLoginError})},error:this.onFacebookLoginError})}})}})}},{key:"onFacebookLoginError",value:function(e){null==this||this.$("#unknown-error-alert").addClass("hide"),e.errorID&&"individuals-not-supported"===e.errorID?(C.setErrorToProperty(this.$el,"emailOrUsername",i.i18n.t("login.individual_users_not_supported")),this.$("#unknown-error-alert").removeClass("hide")):404===e.code&&(C.setErrorToProperty(this.$el,"emailOrUsername",i.i18n.t("loading_error.user_not_found")),this.$("#unknown-error-alert").removeClass("hide"));var t=this.$("#facebook-login-btn");return t.find(".sign-in-blurb").text(i.i18n.t("login.sign_in_with_facebook")),t.attr("disabled",!1),x.showNotyNetworkError.apply(x,arguments)}},{key:"onClickCleverSignupButton",value:function(){var e,t,n;["next.codecombat.com","localhost"].includes(window.location.hostname)?(e="943ece596555cac13fcc",n="https://next.codecombat.com/auth/login-clever",t="5b2ad81a709e300001e2cd7a"):(e="ffce544a7e02c0daabf2",n="https://codecombat.com/auth/login-clever");var r="https://clever.com/oauth/authorize?response_type=code&redirect_uri=".concat(encodeURIComponent(n),"&client_id=").concat(e);return t&&(r+="&district_id="+t),window.open(r,"_blank")}},{key:"onClickCleverLoginButton",value:function(){return T()}},{key:"onClickSchoologyLoginButton",value:(g=u(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new A,e.abrupt("return",this.onClickEdlinkLoginButton(t));case 2:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"onClickClasslinkLoginButton",value:(h=u(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=new P,e.abrupt("return",this.onClickEdlinkLoginButton(t));case 2:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"onClickEdlinkLoginButton",value:(p=u(s().mark((function e(t){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.logInWithEdlink();case 2:e.sent.loggedIn?window.location.reload():noty({text:i.i18n.t("login.login_failed"),layout:"topCenter",type:"error",timeout:5e3,killer:!1,dismissQueue:!0});case 5:case"end":return e.stop()}}),e)}))),function(e){return p.apply(this,arguments)})},{key:"openRecoverModal",value:function(e){return e.stopPropagation(),this.openModalView(new E)}},{key:"onHidden",value:function(){return m(y(t.prototype),"onHidden",this).call(this),this.playSound("game-menu-close")}}],c=[{key:"initClass",value:function(){this.prototype.id="auth-modal",this.prototype.template=S,this.prototype.trapsFocus=!1,this.prototype.events={"click #switch-to-signup-btn":"onSignupInstead","submit form":"onSubmitForm","keyup #name":"onNameChange","click #google-login-button":"onClickGPlusLoginButton","click #facebook-login-btn":"onClickFacebookLoginButton","click #clever-signup-btn":"onClickCleverSignupButton","click #clever-login-btn":"onClickCleverLoginButton","click #schoology-login-btn":"onClickSchoologyLoginButton","click #classlink-login-btn":"onClickClasslinkLoginButton","click #close-modal":"hide",'click [data-toggle="coco-modal"][data-target="core/RecoverModal"]':"openRecoverModal"}}}],a&&d(r.prototype,a),c&&d(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,a,c,p,h,g}
2(w)).initClass(),r);var L={type:"object",properties:{emailOrUsername:{$or:[k.schema.properties.name,k.schema.properties.email]}},required:["emailOrUsername","password"]},N=function(e){if(!window.nextURL){if(me.isAdmin())e&&O.save("sub-modal-continue",e);else if(me.isAPIClient())o.router.navigate("/partner-dashboard",{trigger:!0});else if(me.isStudent())o.router.navigate("/students",{trigger:!0});else if(me.isTeacher())me.isSchoolAdmin()?b.isCodeCombat?o.router.navigate("/teachers/licenses",{trigger:!0}):o.router.navigate("/school-administrator",{trigger:!0}):o.router.navigate("/teachers/classes",{trigger:!0});else if(me.isParentHome()){var t=me.hasNoVerifiedChild()?"/parents/add-another-child":"/parents/dashboard";o.router.navigate(t,{trigger:!0})}return window.location.reload()}window.location.href=window.nextURL}},311729:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var d,p=n(921336),f=n(13160);e.exports=((d=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,a=[{key:"initClass",value:function(){this.prototype.id="confirm-modal",this.prototype.template=f,this.prototype.closeButton=!0,this.prototype.closeOnConfirm=!0,this.prototype.events={"click #decline-button":"onClickDecline","click #confirm-button":"onClickConfirm"}}}],(r=[{key:"initialize",value:function(e){return _.assign(this,_.pick(e,"title","body","decline","confirm","closeOnConfirm","closeButton"))}},{key:"onClickDecline",value:function(){return this.trigger("decline")}},{key:"onClickConfirm",value:function(){return this.trigger("confirm")}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(p)).initClass(),d)},669760:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}
2function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=n(921336),h=n(663523),m=n(203949),g=n(439980),y=n(746516).sendContactMessage,v={additionalProperties:!1,required:["email","message"],properties:{email:{type:"string",maxLength:100,minLength:1,format:"email"},message:{type:"string",minLength:1}}};e.exports=((r=function(e){function t(){return a(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"openSubscribeModal",value:function(e){return e.stopPropagation(),this.openModalView(new m)}},{key:"contact",value:function(){this.playSound("menu-button-click"),g.clearFormAlerts(this.$el);var e=g.formToObject(this.$el),t=tv4.validateMultiple(e,v);return t.valid?(this.populateBrowserData(e),(e=_.merge(e,this.options)).country=me.get("country"),null!=window.tracker&&window.tracker.trackEvent("Sent Feedback",{message:e}),y(e,this.$el),o.post("/db/user/".concat(me.id,"/track/contact_codecombat"))):g.applyErrorsToForm(this.$el,t.errors)}},{key:"populateBrowserData",value:function(e){return o.browser&&(e.browser="".concat(o.browser.platform," ").concat(o.browser.name," ").concat(o.browser.versionNumber)),e.screenSize="".concat(null!=("undefined"!=typeof screen&&null!==screen?screen.width:void 0)?"undefined"!=typeof screen&&null!==screen?screen.width:void 0:o(window).width()," x ").concat(null!=("undefined"!=typeof screen&&null!==screen?screen.height:void 0)?"undefined"!=typeof screen&&null!==screen?screen.height:void 0:o(window).height()),e.screenshotURL=this.screenshotURL}},{key:"updateScreenshot",value:function(){if(this.screenshotURL){var e=this.$el.find("#contact-screenshot").removeClass("secret");return e.find("a").prop("href",this.screenshotURL.replace("http://codecombat.com/","/")),e.find("img").prop("src",this.screenshotURL.replace("http://codecombat.com/","/"))}}}],i=[{key:"initClass",value:function(){this.prototype.id="contact-modal",this.prototype.template=h,this.prototype.closeButton=!0,this.prototype.events={"click #contact-submit-button":"contact",'click [data-toggle="coco-modal"][data-target="core/SubscribeModal"]':"openSubscribeModal"}}}],r&&s(n.prototype,r),i&&s(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(f)).initClass(),r)},915066:(e,t,n)=>{"use strict";var r,o=n(348764).lW,i=n(665420),a=n(619755);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=m(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==s(t)?t:t+""}function g(e,t,n){return t=_(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],_(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=b(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},v.apply(null,arguments)}function b(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_(e)););return e}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}n(694633);var S=n(968029),C=n(847626),k=n(439980),x=n(249449),E=n(365117),O=n(196363),T=n(504015),A=n(299498),P=A.capitalizeFirstLetter,I=A.isCodeCombat,j=A.isOzaria,L=n(250636),N=n(482156);e.exports=((r=function(e){function t(){return f(this,t),g(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(e){var t,n=this;null==e&&(e={});var r=e.signupState;this.signupState=r,this.state=new E({suggestedNameText:"...",checkEmailState:"standby",checkEmailValue:null,checkEmailPromise:null,checkNameState:"standby",checkNameValue:null,checkNamePromise:null,error:""}),this.utils={isCodeCombat:I,isOzaria:j},this.listenTo(this.state,"change:checkEmailState",(function(){return this.renderSelectors(".email-check")})),this.listenTo(this.state,"change:checkNameState",(function(){return this.renderSelectors(".name-check")})),this.listenTo(this.state,"change:error",(function(){return this.renderSelectors(".error-area")})),this.listenTo(this.signupState,"change:facebookEnabled",(function(){return this.renderSelectors(".auth-network-logins")})),this.listenTo(this.signupState,"change:gplusEnabled",(function(){return this.renderSelectors(".auth-network-logins")}));var i=new URLSearchParams(window.location.search);t=i.get("prefill")?JSON.parse(o.from(i.get("prefill"),"base64").toString("ascii")):["firstName","lastName","email"].reduce((function(e,t){return null==e&&(e={}),i.get(t)&&(e[t]=i.get(t)),e}),{}),Object.entries(t).forEach((function(){var e,t,r=Array.from(arguments.length<=0?void 0:arguments[0]),o=d(r,2);return t=o[0],e=o[1],n.signupState.get("signupForm")[t]=e})),this.hideEmail=!!I&&N.shouldHideEmail(),this.showLibraryIdInsteadOfUsername=!!I&&N.shouldShowLibraryLoginModal()}},{key:"afterRender",value:function(){return this.$el.find("#first-name-input").focus(),me.showChinaRegistration()||i.gplusHandler.loadAPI({context:this,success:function(){return this.signupState.set({gplusEnabled:!0}),this.handleSSOConnect(i.gplusHandler,"gplus",{renderOnly:!0})}}
2),v(_(t.prototype),"afterRender",this).call(this)}},{key:"updateAuthModalInitialValues",value:function(e){return this.signupState.set({authModalInitialValues:L.merge(this.signupState.get("authModalInitialValues"),e)},{silent:!0})}},{key:"onChangeEmail",value:function(e){return this.updateAuthModalInitialValues({email:this.$(e.currentTarget).val()}),this.checkEmail()}},{key:"checkEmail",value:function(){var e=this,t=this.$('[name="email"]').val();return this.hideEmail?Promise.resolve(!0):"student"===this.signupState.get("path")||L.isEmpty(t)||t!==this.state.get("checkEmailValue")?t&&k.validateEmail(t)?(this.state.set({checkEmailState:"checking",checkEmailValue:t,checkEmailPromise:x.checkEmailExists(t).then((function(n){var r=n.exists;if(t===e.$('[name="email"]').val())return r?e.state.set("checkEmailState","exists"):e.state.set("checkEmailState","available")})).catch((function(t){throw e.state.set("checkEmailState","standby"),t}))}),this.state.get("checkEmailPromise")):(this.state.set({checkEmailState:"standby",checkEmailValue:t,checkEmailPromise:null}),Promise.resolve()):this.state.get("checkEmailPromise")}},{key:"onChangeNames",value:function(){var e=this.$el.find("#first-name-input").val()||"",t=this.$el.find("#last-name-input").val()||"",n=P(e)+P(t);return this.$el.find("#username-input").val(n),this.checkName()}},{key:"onChangeName",value:function(e){this.updateAuthModalInitialValues({name:this.$(e.currentTarget).val()});var t=k.formToObject(this.$el.find("#basic-info-form")).name;if(this.$el.find('[for="username-input"] ~ .help-block.error-help-block').remove(),this.$el.find('[for="username-input"]').closest(".form-group").removeClass("has-error"),!t||!k.validateEmail(t))return this.checkName();k.setErrorToProperty(this.$el,"name",a.i18n.t("signup.name_is_email"))}},{key:"checkName",value:function(){var e=this;if("teacher"===this.signupState.get("path"))return Promise.resolve();var t=this.$('input[name="name"]').val();return t===this.state.get("checkNameValue")?this.state.get("checkNamePromise"):t?(this.state.set({checkNameState:"checking",checkNameValue:t,checkNamePromise:x.checkNameConflicts(t).then((function(n){var r=n.suggestedName,o=n.conflicts;if(t===e.$('input[name="name"]').val()){if(o){var i=a.i18n.t("signup.name_taken").replace("{{suggestedName}}",r);return e.state.set({checkNameState:"exists",suggestedNameText:i})}return e.state.set({checkNameState:"available"})}})).catch((function(t){throw e.state.set("checkNameState","standby"),t}))}),this.state.get("checkNamePromise")):(this.state.set({checkNameState:"standby",checkNameValue:t,checkNamePromise:null}),Promise.resolve())}},{key:"onChangePassword",value:function(e){return this.updateAuthModalInitialValues({password:this.$(e.currentTarget).val()})}},{key:"checkBasicInfo",value:function(e){if(k.clearFormAlerts(this.$el),e.name&&k.validateEmail(e.name))return k.setErrorToProperty(this.$el,"name",a.i18n.t("signup.name_is_email")),!1;var t,n=tv4.validateMultiple(e,this.formSchema());if(n.errors&&n.errors.some((function(e){return"/password"===e.dataPath}))&&(n.errors=n.errors.filter((function(e){return"/password"!==e.dataPath})),n.errors.push({dataPath:"/password",message:a.i18n.t("signup.invalid")})),"vaughan-library"===(null!=(t=me.get("library"))?function(e){return e.name}(t):void 0)){var r=e.name||"",o=r.toLowerCase();o.includes("pacreg")?o.startsWith("pacreg")&&12===o.length&&!isNaN(r.slice(6))||n.errors.push({dataPath:"/name",message:" Invalid library id"}):14===o.length&&["23288","29158"].includes(o.slice(0,5))&&!isNaN(o)||n.errors.push({dataPath:"/name",message:" Invalid library id"})}return(!n.valid||(null!=n.errors?n.errors.length:void 0)>0)&&k.applyErrorsToForm(this.$("form"),n.errors),n.valid&&0===(null!=n.errors?n.errors.length:void 0)}},{key:"formSchema",value:function(){var e=this;return j?{type:"object",properties:{email:x.schema.properties.email,name:x.schema.properties.name,password:x.schema.properties.password},required:function(){switch(e.signupState.get("path")){case"student":return["name","password","firstName","lastName"];case"teacher":return["password","email","firstName","lastName"];default:return["name","password","email"]}}()}:{type:"object",properties:{email:x.schema.properties.email,name:x.schema.properties.name,password:x.schema.properties.password,firstName:x.schema.properties.firstName,lastName:x.schema.properties.lastName},required:function(){switch(e.signupState.get("path")){case"student":return["name","password","firstName"].concat(me.showChinaRegistration()?[]:["lastName"]);case"teacher":return["password","email","firstName"].concat(me.showChinaRegistration()?[]:["lastName"]);default:return["name","password"].concat(e.hideEmail?[]:["email"])}}()}}},{key:"onClickBackButton",value:function(){return"teacher"===this.signupState.get("path")&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher BasicInfoView Back Clicked",{c
2ategory:"Teachers"}),"student"===this.signupState.get("path")&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Student BasicInfoView Back Clicked",{category:"Students"}),"individual"===this.signupState.get("path")&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Individual BasicInfoView Back Clicked",{category:"Individuals"}),this.trigger("nav-back")}},{key:"onClickUseSuggestedNameLink",value:function(e){return this.$('input[name="name"]').val(this.state.get("suggestedName")),k.clearFormAlerts(this.$el.find('input[name="name"]').closest(".form-group").parent())}},{key:"trackIndividualStepNext",value:function(e){var t,n;if("individual"===this.signupState.get("path"))return null===(t=window.tracker)||void 0===t||t.trackEvent("CreateAccountModal Individual Next Clicked",{category:"Individuals",step:"basic-info",label:e}),null===(n=window.tracker)||void 0===n?void 0:n.trackEvent("CreateAccountModal Individual Step 2 Next Clicked",{category:"Individuals",action:e})}},{key:"onSubmitForm",value:function(e){var t=this;"teacher"===this.signupState.get("path")&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher BasicInfoView Submit Clicked",{category:"Teachers"}),"student"===this.signupState.get("path")&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Student BasicInfoView Submit Clicked",{category:"Students"}),"individual"===this.signupState.get("path")&&(this.trackIndividualStepNext("submit-clicked"),null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Individual BasicInfoView Submit Clicked",{category:"Individuals"})),this.state.unset("error"),e.preventDefault();var n=k.formToObject(e.currentTarget);if(this.checkBasicInfo(n)){this.displayFormSubmitting();var r=new Error;return this.checkEmail().then(this.checkName()).then((function(){var e,o;if(o=t.state.get("checkEmailState"),!["available","standby"].includes(o)||"available"!==t.state.get("checkNameState")&&"teacher"!==t.signupState.get("path"))throw r;var i=L.assign({},me.get("emails"));null==i.generalNews&&(i.generalNews={}),me.inEU()?(i.generalNews.enabled=!1,me.set("unsubscribedFromMarketingEmails",!0)):i.generalNews.enabled=!L.isEmpty(t.state.get("checkEmailValue")),me.set("emails",i),me.set(L.pick(n,"firstName","lastName")),L.isNaN(null===(e=t.signupState.get("birthday"))||void 0===e?void 0:e.getTime())||me.set("birthday",t.signupState.get("birthday").toISOString().slice(0,7)),me.set(L.omit(t.signupState.get("ssoAttrs")||{},"email","facebookID","gplusID")),me.set("features",u(u({},me.get("features")||{}),{},{isNewDashboardActive:!0}));var a=me.save();if(!a)throw console.error(me.validationError),new Error("Could not save user");return new Promise(a.then)})).then((function(e){var n,r,o;if(T.application.tracker.identifyAfterNextPageLoad(),"teacher"===t.signupState.get("path"))return t.signupState.set({signupForm:L.pick(k.formToObject(t.$el),"firstName","lastName","email","password","subscribe")}),void t.trigger("signup");switch(x.isSmokeTestUser({email:t.signupState.get("signupForm").email})||(O.dispatch("me/authenticated",e),T.application.tracker.identify()),t.signupState.get("ssoUsed")){case"gplus":var i=t.signupState.get("ssoAttrs"),a=i.email,s=i.gplusID,c=k.formToObject(t.$el).name;n=me.signupWithGPlus(c,a,s);break;case"facebook":var u,l,d=t.signupState.get("ssoAttrs");a=d.email,r=d.facebookID,c=k.formToObject(t.$el).name;var p=null===(u=t.signupState.get("ssoResp"))||void 0===u||null===(l=u.authResponse)||void 0===l?void 0:l.accessToken;n=me.signupWithFacebook(c,a,r,{facebookAccessToken:p});break;case"schoology":case"classlink":var f=k.formToObject(t.$el);c=f.name,a=f.email,n=me.signupWithOauth2(a,{name:c});break;default:var h=k.formToObject(t.$el);c=h.name,a=h.email,o=h.password,n=me.signupWithPassword(c,a,o)}return new Promise(n.then)})).then((function(){var e=[];return"gplus"===t.signupState.get("ssoUsed")?e.push(null!=window.tracker?window.tracker.trackEvent("Google Login",{category:"Signup",label:"GPlus"}):void 0):"facebook"===t.signupState.get("ssoUsed")&&e.push(null!=window.tracker?window.tracker.trackEvent("Facebook Login",{category:"Signup",label:"Facebook"}):void 0),Promise.all(e).catch((function(){}))})).then((function(){var e=t.signupState.attributes,n=e.classCode,r=e.classroom;if(n&&r)return new Promise(r.joinWithCode(n).then)}
2)).then((function(){return t.finishSignup()})).catch((function(e){if(t.displayFormStandingBy(),e!==r){if(e.status>=400&&e.status<500){var n=e.responseJSON,o=(null==n?void 0:n.message)||e.responseText;window.noty({type:"error",text:o})}else console.error("BasicInfoView form submission Promise error:",e);return(null!=e.responseJSON?e.responseJSON.i18n:void 0)?t.state.set("error",a.i18n.t(null!=e.responseJSON?e.responseJSON.i18n:void 0)||"Unknown Error"):t.state.set("error",(null!=e.responseJSON?e.responseJSON.message:void 0)||"Unknown Error")}}))}}},{key:"finishSignup",value:function(){return"teacher"===this.signupState.get("path")&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher BasicInfoView Submit Success",{category:"Teachers"}),"student"===this.signupState.get("path")&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Student BasicInfoView Submit Success",{category:"Students"}),"individual"===this.signupState.get("path")&&(null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Individual BasicInfoView Submit Success",{category:"Individuals",wantInSchool:this.$("#want-in-school-checkbox").is(":checked")}),this.$("#want-in-school-checkbox").is(":checked")&&this.signupState.set("wantInSchool",!0)),this.trigger("signup")}},{key:"displayFormSubmitting",value:function(){return this.$("#create-account-btn").text(a.i18n.t("signup.creating")).attr("disabled",!0),this.$("input").attr("disabled",!0)}},{key:"displayFormStandingBy",value:function(){return this.$("#create-account-btn").text(a.i18n.t("login.sign_up")).attr("disabled",!1),this.$("input").attr("disabled",!1)}},{key:"onClickSsoSignupButton",value:function(e){var t;e.preventDefault();var n=a(e.currentTarget).data("sso-used");if("gplus"!==n||this.signupState.get("gplusEnabled")){if(t=j?function(){switch(n){case"facebook":return i.facebookHandler;case"gplus":return i.gplusHandler;case"schoology":return i.schoologyHandler;case"classlink":return i.classlinkHandler}}():function(){switch(n){case"facebook":return i.facebookHandler;case"gplus":return i.gplusHandler;case"schoology":return i.schoologyHandler;case"classlink":return i.classlinkHandler;case"clever":return"clever"}}()){if("clever"===t){var r,o,s;["next.codecombat.com","localhost"].includes(window.location.hostname)?(r="943ece596555cac13fcc",s="https://next.codecombat.com/auth/login-clever",o="5b2ad81a709e300001e2cd7a"):(r="ffce544a7e02c0daabf2",s="https://codecombat.com/auth/login-clever");var c="https://clever.com/oauth/authorize?response_type=code&redirect_uri=".concat(encodeURIComponent(s),"&client_id=").concat(r);return o&&(c+="&district_id="+o),void window.open(c,"_blank")}return this.handleSSOConnect(t,n)}console.error("Unsupported SSO provider",n)}}},{key:"handleSSOConnect",value:function(e,t,n){if(!me.showChinaRegistration())return e.connect(u(u({},n),{},{context:this,success:function(n){return null==n&&(n={}),e.loadPerson({resp:n,context:this,success:function(e){var r=this;this.signupState.set({ssoAttrs:e,ssoResp:n});var o=e.email;return x.checkEmailExists(o).then((function(n){var o=n.exists;r.signupState.set({ssoUsed:t,email:e.email});var i="".concat(e.email.split("@")[0],"+").concat(t);return r.signupState.set("autoName",i),o?r.trigger("sso-connect:already-in-use"):r.trigger("sso-connect:new-user")}))}})}}))}}],s=[{key:"initClass",value:function(){this.prototype.id="basic-info-view",this.prototype.template=C,this.prototype.events={'change input[name="firstName"]':"onChangeNames",'change input[name="lastName"]':"onChangeNames",'change input[name="email"]':"onChangeEmail",'change input[name="name"]':"onChangeName",'change input[name="password"]':"onChangePassword","click .back-button":"onClickBackButton","submit form":"onSubmitForm","click .use-suggested-name-link":"onClickUseSuggestedNameLink","click #facebook-signup-btn":"onClickSsoSignupButton","click #clever-signup-btn":"onClickSsoSignupButton","click #schoology-signup-btn":"onClickSsoSignupButton","click #classlink-signup-btn":"onClickSsoSignupButton","click #google-signup-btn":"onClickSsoSignupButton"}}}],r&&h(n.prototype,r),s&&h(n,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,s}
2(S)).initClass(),r)},352307:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var d;n(740912);var p=n(968029),f=n(1144),h=n(299498);e.exports=((d=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(e){var t=e.signupState;return this.signupState=t,this.utils=h}},{key:"onClickLoginLink",value:function(e){return e&&e.preventDefault(),e&&e.stopPropagation(),this.trigger("login")}},{key:"onKeydownLoginLink",value:function(e){if("Enter"===e.key||" "===e.key||13===e.keyCode||32===e.keyCode)return this.onClickLoginLink(e)}},{key:"getClassCode",value:function(){return this.$(".class-code-input").val()||this.signupState.get("classCode")}},{key:"onInputClassCode",value:function(){var e=this.getClassCode();return this.signupState.set({classCode:e},{silent:!0})}},{key:"onSubmitStudent",value:function(e){return e.preventDefault(),this.onInputClassCode(),this.trigger("choose-path","student"),!1}}],a=[{key:"initClass",value:function(){this.prototype.id="choose-account-type-view",this.prototype.template=f,this.prototype.events={"click .teacher-path-button":function(){return this.trigger("choose-path",h.isOzaria?"teacher":"oz-vs-coco")},"click .student-path-button":function(){return this.trigger("choose-path","student")},"click .individual-path-button":function(){return this.trigger("choose-path","individual")},"input .class-code-input":"onInputClassCode","submit form.choose-account-type":"onSubmitStudent","click .parent-path-button":function(){return this.trigger("choose-path","individual")},"click .login-link":"onClickLoginLink","keydown .login-link":"onKeydownLoginLink"}}}],r&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(p)).initClass(),d)},844139:(e,t,n)=>{"use strict";var r,o=n(665420),i=n(619755);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==a(t)?t:t+""}function l(e,t,n){return t=p(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}
2function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}n(588222);var h=n(968029),m=(n(365117),n(108222)),g=(n(439980),n(585405)),y=n(482156);e.exports=((r=function(e){function t(){return s(this,t),l(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,a=[{key:"initClass",value:function(){this.prototype.id="confirmation-view",this.prototype.template=m,this.prototype.events={"click #start-btn":"onClickStartButton"}}}],(r=[{key:"initialize",value:function(e){null==e&&(e={});var t=e.signupState;return this.signupState=t,this.saveUserPromise=Promise.resolve(),this.hideEmail=y.shouldHideEmail()}},{key:"onClickStartButton",value:function(){var e=this;return this.saveUserPromise.then((function(){if(!window.nextURL)return e.signupState.get("classroom"),"student"===e.signupState.get("path")?(o.router.navigate("/",{replace:!0}),o.router.navigate("/students")):o.router.navigate("/play"),document.location.reload();window.location.href=window.nextURL}))}},{key:"afterRender",value:function(){var e=this,t=this.$el.find("#nces-search-input");if(t[0])return this.ncesSearchInput?t.replaceWith(this.ncesSearchInput.$el):(this.ncesSearchInput=new g({el:t[0],propsData:{label:i.i18n.t("teachers_quote.school_name"),displayKey:"name",name:"School Name",initialValue:""}}),this.ncesSearchInput.$on("navSearchChoose",(function(t,n){return me.set({school:n}),e.ncesSearchInput.$data.value=n[t],e.saveUserPromise=new Promise(me.save().then)})))}}])&&c(n.prototype,r),a&&c(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(h)).initClass(),r)},211754:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(null,arguments)}function p(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}n(178691);var m=n(968029),g=n(365117),y=n(630169),v=n(439980),b=n(746516);e.exports=((r=function(e){function t(){return a(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(e){null==e&&(e={});var t=e.signupState;this.signupState=t;var n=this.signupState.get("parentEmail")||"";return this.state=new g({parentEmail:n,parentEmailSent:!1,parentEmailSending:!1,error:!1,dontUseOurEmailSilly:/[email protected]/i.test(n)}),this.listenTo(this.state,"all",_.debounce(this.render))}}
2,{key:"afterRender",value:function(){d(f(t.prototype),"afterRender",this).call(this);var e=this.$(".parent-email-blurb.render");e.length&&e.html(o.i18n.t("signup.parent_email_excited_blurb").replace("{{email_link}}",'<a href="mailto:[email protected]">[email protected]</a>'))}},{key:"onChangeParentEmail",value:function(e){var t=o(e.currentTarget).val();return this.signupState.set({parentEmail:t},{silent:!0}),this.state.set({parentEmail:t,dontUseOurEmailSilly:/[email protected]/i.test(t),error:!1})}},{key:"trackIndividualStepNext",value:function(e){var t;if("individual"===this.signupState.get("path"))return null===(t=window.tracker)||void 0===t?void 0:t.trackEvent("CreateAccountModal Individual Next Clicked",{category:"Individuals",step:"coppa-deny",label:e})}},{key:"onClickSendParentEmailButton",value:function(e){var t=this;e.preventDefault();var n=this.state.get("parentEmail");return n&&v.validateEmail(n)&&!this.state.get("dontUseOurEmailSilly")?(this.state.set({parentEmailSending:!0,error:!1}),this.trackIndividualStepNext("send-parent-email"),null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Individual Parent Email Send Clicked",{category:"Individuals"}),b.sendParentSignupInstructions(n).then((function(){return t.state.set({error:!1,parentEmailSent:!0,parentEmailSending:!1})})).catch((function(){return t.state.set({error:!0,parentEmailSent:!1,parentEmailSending:!1})}))):this.state.set({error:!0})}},{key:"onClickBackButton",value:function(){return"individual"===this.signupState.get("path")&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Individual Parent Email Back Clicked",{category:"Individuals"}),this.trigger("nav-back")}}],i=[{key:"initClass",value:function(){this.prototype.id="coppa-deny-view",this.prototype.template=y,this.prototype.events={"click .send-parent-email-button":"onClickSendParentEmailButton",'change input[name="parentEmail"]':"onChangeParentEmail","click .back-btn":"onClickBackButton"}}}],r&&s(n.prototype,r),i&&s(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(m)).initClass(),r)},661706:(e,t,n)=>{"use strict";var r,o=n(665420);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function c(e,t,n){return t=p(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],p(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=d(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},l.apply(null,arguments)}function d(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}n(282149);
2var h=n(921336),m=n(498407),g=n(352307),y=n(549542),v=n(211754),b=n(792330),w=n(915066),S=n(654062),C=n(565051),k=n(200590),x=n(844139),E=n(965895),O=n(365117),T=n(352469),A=n(299498),P=n(196363),I=n(969278),j=function(){var e={category:A.isCodeCombat?"Homepage":"Home",user:me.get("role")||me.isAnonymous()&&"anonymous"||"homeuser"};return null!=window.tracker?window.tracker.trackEvent("Teacher signup started",e):void 0};e.exports=((r=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),null==e&&(e={}),(n=c(this,t,[e])).utils=A;var r=A.getQueryVariable("_cc",void 0);switch(n.signupState=new O({path:e.path||(r?"student":null),screen:e.screen||(r?"segment-check":"choose-account-type"),ssoUsed:e.ssoUsed||null,classroom:null,facebookEnabled:null!=o.facebookHandler?o.facebookHandler.apiLoaded:void 0,gplusEnabled:null!=o.gplusHandler?o.gplusHandler.apiLoaded:void 0,classCode:r,birthday:new Date(""),authModalInitialValues:{},accountCreated:!1,signupForm:{subscribe:["on"],email:null!=e.email?e.email:""},subModalContinue:e.subModalContinue,accountRequiredMessage:e.accountRequiredMessage,wantInSchool:!1,autoName:e.autoName,email:e.email,ssoAttrs:e.ssoAttrs}),n.signupState.on("change:screen",(function(e,t){var n;null===(n=window.tracker)||void 0===n||n.trackEvent("CreateAccountModal Screen Changed",{screen:t})})),e.startOnPath){case"student":n.signupState.set({path:"student",screen:"segment-check"});break;case"oz-vs-coco":n.signupState.set({path:"teacher",screen:n.euConfirmationRequiredInCountry()?"eu-confirmation":"basic-info"});break;case"individual":n.signupState.set({path:"individual",screen:"segment-check"});break;case"individual-basic":n.signupState.set({path:"individual",screen:"basic-info"});break;case"teacher":j(),A.isCodeCombat?n.signupState.set({path:"teacher",screen:n.euConfirmationRequiredInCountry()?"eu-confirmation":"basic-info"}):n.navigateToTeacherOnboarding();break;default:A.isCodeCombat&&/^\/play/.test(location.pathname)&&me.showIndividualRegister()&&n.signupState.set({path:"individual",screen:"segment-check"})}return"segment-check"!==n.signupState.get("screen")||"student"!==!n.signupState.get("path")||n.segmentCheckRequiredInCountry()||n.signupState.set({screen:"basic-info"}),n.listenTo(n.signupState,"all",_.debounce(n.render)),n.listenTo(n.insertSubView(new g({signupState:n.signupState})),{"choose-path":function(e){return"teacher"===e?(j(),A.isCodeCombat?(null!=window.tracker&&window.tracker.trackEvent("Teachers Create Account Loaded",{category:"Teachers"}),this.signupState.set({path:e,screen:this.euConfirmationRequiredInCountry()?"eu-confirmation":"basic-info"})):this.navigateToTeacherOnboarding()):"oz-vs-coco"===e?this.signupState.set({path:"teacher",screen:this.euConfirmationRequiredInCountry()?"eu-confirmation":"basic-info"}):("student"===e&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Student Path Clicked",{category:"Students"}),"individual"===e&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Individual Path Clicked",{category:"Individuals"}),this.signupState.set({path:e,screen:"segment-check"}))},login:function(){return this.onClickLoginLink()}}),n.listenTo(n.insertSubView(new y({signupState:n.signupState})),{"choose-path":function(e){return this.signupState.set({path:e,screen:"segment-check"})},"nav-back":function(){return this.signupState.set({path:null,screen:"choose-account-type"})},"nav-forward":function(e){return this.signupState.set({screen:e||"basic-info"})}}),n.listenTo(n.insertSubView(new v({signupState:n.signupState})),{"nav-back":function(){return this.signupState.set({screen:"segment-check"})}}),n.listenTo(n.insertSubView(new b({signupState:n.signupState})),{"nav-back":function(){return"teacher"===this.signupState.get("path")?this.signupState.set({path:null,screen:"choose-account-type"}):this.signupState.set({screen:"segment-check"})},"nav-forward":function(e){return this.signupState.set({screen:e||"basic-info"})}}),n.listenTo(n.insertSubView(new w({signupState:n.signupState})),{"sso-connect:already-in-use":function(){return this.signupState.set({screen:"sso-already-exists"})},"sso-connect:new-user":function(){return this.signupState.set({screen:"sso-confirm"})},"nav-back":function(){return this.euConfirmationRequiredInCountry()?this.signupState.set({screen:"eu-confirmation"}):"teacher"===this.signupState.get("path")||"individual"===this.signupState.get("path")&&null!==(e=features)&&void 0!==e&&e.china?this.signupState.set({screen:"choose-account-type"}):this.signupState.set({screen:"segment-check"});var e},signup:function(){if("student"===this.signupState.get("path"))return A.isOzaria||me.skipHeroSelectOnStudentSignUp()?this.signupState.set({screen:"confirmation",accountCreated:!0}):this.signupState.set({screen:"extras",accountCreated:!0});if("teacher"===this.signupState.get("path")){P.commit("modalTeacher/updateSso",_.pick(this.signupState.attributes,"ssoUsed","ssoAttrs")),P.commit("modalTeacher/updateSignupForm",this.signupState.get("signupForm"));var e=_.pick(this.signupState.get("signupForm"),"firstName","lastName");return A.getQueryVariable("referrerEvent")&&(e.marketingReferrer=A.getQueryVariable("referrerEvent")),P.commit("modalTeacher/updateTrialRequestProperties",e),this.signupState.set({screen:"teacher-signup-component"})}return this.signupState.get("subModalContinue")?(I.save("sub-modal-continue",this.signupState.get("subModalContinue")),window.location.reload()):this.signupState.set({screen:"confirmation",accountCreated:!0})}}),n.listenTo(n.insertSubView(new S({signupState:n.signupState})),{"nav-back":function(){return this.signupState.set({screen:"basic-info"})}}),n.listenTo(n.insertSubView(new C({signupState:n.signupState})),{"nav-back":function(){return this.signupState.set({screen:"basic-info"})},signup:function(){return"student"===this.signupState.get("path")?A.isOzaria||me.skipHeroSelectOnStudentSignUp()?this.signupState.set({screen:"confirmation",accountCreated:!0}):this.signupState.set({screen:"extras",accountCreated:!0}):"teacher"===this.signupState.get("path")?(P.commit("modalTeacher/updateSso",_.pick(this.signupState.attributes,"ssoUsed","ssoAttrs")),P.commit("modalTeacher/updateSignupForm",this.signupState.get("signupForm")),this.signupState.set({screen:"teacher-signup-component"})):this.signupState.get("subModalContinue")?(I.save("sub-modal-continue",this.signupState.get("subModalContinue")),window.location.reload()):this.signupState.set({screen:"confirmation",accountCreated:!0})}}),n.listenTo(n.insertSubView(new k({signupState:n.signupState})),{"nav-forward":function(){return this.signupState.set({screen:"confirmation"})}}),n.insertSubView(new x({signupState:n.signupState})),me.useSocialSignOn()&&(o.facebookHandler.loadAPI({success:function(){if(!n.destroyed)return n.signupState.set({facebookEnabled:!0})}}),o.gplusHandler.loadAPI({success:function(){if(!n.destroyed)return n.signupState.set({gplusEnabled:!0})}})),n.once("hidden",(function(){if(this.signupState.get("accountCreated")&&!o.testing)return window.nextURL?void(window.location.href=window.nextURL):(me.isStudent()?o.router.navigate("/students",{trigger:!0}):me.isTeacher()&&o.router.navigate("/teachers/classes",{trigger:!0}),window.location.reload())})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,i=[{key:"initClass",value:function(){this.prototype.id="create-account-modal",this.prototype.template=T,this.prototype.closesOnClickOutside=!1,this.prototype.retainSubviews=!0,this.prototype.events={"click .login-link":"onClickLoginLink","click .button.close":"onClickDismiss"}}}],(r=[{key:"navigateToTeacherOnboarding",value:function(){return"/sign-up/educator"===window.location.pathname?this.hide():o.router.navigate("/sign-up/educator",{trigger:!0})}},{key:"afterRender",value:function(){var e,n=this;
2l(p(t.prototype),"afterRender",this).call(this),"individual"===this.signupState.get("path")&&null!==(e=features)&&void 0!==e&&e.china&&"segment-check"===this.signupState.get("screen")&&this.signupState.set({screen:"basic-info"});var r=this.$el.find("#teacher-signup-component");if(r[0])return this.teacherSignupComponent?r.replaceWith(this.teacherSignupComponent.$el):(this.teacherSignupComponent=new E({el:r[0],store:P}),this.teacherSignupComponent.$on("back",(function(){return n.signupState.get("ssoUsed")&&n.signupState.set({ssoUsed:void 0,ssoAttrs:void 0}),n.signupState.set("screen","basic-info")})))}},{key:"destroy",value:function(){return this.teacherSignupComponent&&this.teacherSignupComponent.$destroy(),l(p(t.prototype),"destroy",this).call(this)}},{key:"onClickLoginLink",value:function(){var e={category:A.isCodeComba?"Homepage":"Home",subview:this.signupState.get("path")||"choosetype"};return null!=window.tracker&&window.tracker.trackEvent("Log in from CreateAccount",e),this.openModalView(new m({initialValues:this.signupState.get("authModalInitialValues"),subModalContinue:this.signupState.get("subModalContinue")}))}},{key:"onClickDismiss",value:function(){window.location.hash&&history.pushState("",document.title,window.location.pathname+window.location.search)}},{key:"segmentCheckRequiredInCountry",value:function(){var e;return!me.get("country")||!(!me.inEU()&&(e=me.get("country"),!["united-states","israel"].includes(e)))}},{key:"euConfirmationRequiredInCountry",value:function(){return me.get("country")&&me.inEU()}}])&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(h)).initClass(),r)},792330:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}n(213694);var f=n(968029),h=n(854050),m=(n(439980),n(609838),n(365117));e.exports=((r=function(e){function t(){return a(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(e){null==e&&(e={});var t=e.signupState;return this.signupState=t,this.state=new m}},{key:"trackIndividualStepNext",value:function(e){var t;if("individual"===this.signupState.get("path"))return null===(t=window.tracker)||void 0===t?void 0:t.trackEvent("CreateAccountModal Individual Next Clicked",{category:"Individuals",step:"eu-confirmation",label:e})}},{key:"onClickForwardButton",value:function(){return this.trackIndividualStepNext("continue"),this.trigger("nav-forward")}},{key:"onChangeEUConfirmationCheckbox",value:function(e){return this.state.set("euConfirmationGranted",o(e.target).is(":checked")),this.$(".forward-button").attr("disabled",!o(e.target).is(":checked"))}}],i=[{key:"initClass",value:function(){this.prototype.id="eu-confirmation-view",this.prototype.template=h,this.prototype.events={"click .back-button":function(){return this.trigger("nav-back")},"click .forward-button":"onClickForwardButton","change #eu-confirmation-checkbox":"onChangeEUConfirmationCheckbox"}}}],r&&s(n.prototype,r),i&&s(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(f)).initClass(),r)},200590:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i(r.key),r)}}function i(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function a(e,t,n){return t=c(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}
2function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}var l;n(612927);var d=n(968029),p=n(487471),f=n(121835);n(365117),e.exports=((l=function(e){function t(e){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),null==e&&(e={}),n=a(this,t,[e]);var r=e.signupState;return n.signupState=r,n.insertSubView(new p({showCurrentHero:!1,createAccount:!0})),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(t,e),n=t,r=[{key:"initClass",value:function(){this.prototype.id="extras-view",this.prototype.template=f,this.prototype.retainSubviews=!0,this.prototype.events={"click .next-button":function(){return"student"===this.signupState.get("path")&&null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Student ExtrasView Next Clicked",{category:"Students"}),this.trigger("nav-forward")}}}}],null&&o(n.prototype,null),r&&o(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(d)).initClass(),l)},549542:(e,t,n)=>{"use strict";var r,o=n(665420),i=n(619755);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==a(t)?t:t+""}function l(e,t,n){return t=h(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],h(e).constructor):t.apply(e,n))}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function p(){return p="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=f(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},p.apply(null,arguments)}function f(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}n(332712);var g=n(968029),y=n(84272),v=n(439980),b=n(609838),w=n(365117),S=n(299498);e.exports=((r=function(e){function t(){return s(this,t),l(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(e){null==e&&(e={});var t=e.signupState;return this.signupState=t,this.utils=S,this.checkClassCodeDebounced=_.debounce(this.checkClassCode,1e3),this.fetchAndApplyClassCodeDebounced=_.debounce(this.fetchAndApplyClassCode,1e3),this.fetchClassByCode=_.memoize(this.fetchClassByCode),this.classroom=new b,this.state=new w({birthdayComplete:Boolean(t.get("birthdayYear")&&t.get("birthdayMonth")&&t.get("birthdayDay"))}),this.signupState.get("classCode")&&(S.isCodeCombat?this.checkClassCode(this.signupState.get("classCode")):this.fetchAndApplyClassCode()),this.listenTo(this.state,"all",_.debounce((function(){return this.renderSelectors(".render, .next-button"),this.trigger("special-render")})))}},{key:"onPlayClicked",value:function(){return o.router.navigate("/play",{trigger:!0})}},{key:"getClassCode",value:function(){return this.$(".class-code-input").val()||this.signupState.get("classCode")}},{key:"onBackToAccountType",value:function(){return S.isOzaria&&this.state.set({doneFetching:!1}),this.trigger("nav-back")}},{key:"onInputClassCode",value:function(){this.classroom=new b,v.clearFormAlerts(this.$el);var e=this.getClassCode();return this.signupState.set({classCode:e},{silent:!0}),S.isCodeCombat?this.checkClassCodeDebounced():this.fetchAndApplyClassCodeDebounced()}},{key:"afterRender",value:function(){if(p(h(t.prototype),"afterRe
2nder",this).call(this),S.isOzaria)return this.onInputClassCode()}},{key:"fetchAndApplyClassCode",value:function(){var e=this;if(!this.destroyed){var t=this.getClassCode();if(t)return this.fetchClassByCode(t).then((function(n){if(!e.destroyed&&e.getClassCode()===t){if(n){var r=n.owner.get("firstName"),o=n.owner.get("lastName"),i=r||o?"".concat(r," ").concat(o):n.owner.get("name");return e.state.set({ownerName:i,classroomName:n.get("name"),doneFetching:!0,classCodeValid:!0,segmentCheckValid:!0})}return e.state.set({doneFetching:!0,classCodeValid:!1,segmentCheckValid:!1})}})).catch((function(e){throw e}))}}},{key:"checkClassCode",value:function(){var e=this;if(!this.destroyed){var t=this.getClassCode();return this.fetchClassByCode(t).then((function(n){if(!e.destroyed&&e.getClassCode()===t)return n?(e.classroom=n,e.state.set({classCodeValid:!0,segmentCheckValid:!0})):(e.classroom=new b,e.state.set({classCodeValid:!1,segmentCheckValid:!1}))})).catch((function(t){if(403!==t.code||"Activation code has been used"!==t.message)throw t;return e.state.set({classCodeValid:!1,segmentCheckValid:!1,codeExpired:!0}),console.error(t)}))}}},{key:"onInputBirthday",value:function(){var e=v.formToObject(this.$("form")),t=e.birthdayYear,n=e.birthdayMonth,r=e.birthdayDay,o=new Date(Date.UTC(t,n-1,r)),i=Boolean(t&&n&&r);if(this.signupState.set({birthdayYear:t,birthdayMonth:n,birthdayDay:r,birthday:o},{silent:!0}),this.state.set({birthdayComplete:i}),!_.isNaN(o.getTime()))return v.clearFormAlerts(this.$el)}},{key:"onClickUnder13",value:function(e){return e&&e.preventDefault(),this.trackIndividualStepNext("coppa-deny"),this.trigger("nav-forward","coppa-deny"),null!=window.tracker?window.tracker.trackEvent("CreateAccountModal Individual SegmentCheckView Under 13 Clicked",{category:"Individuals"}):void 0}},{key:"trackIndividualStepNext",value:function(e){var t,n;if("individual"===this.signupState.get("path"))return null===(t=window.tracker)||void 0===t||t.trackEvent("CreateAccountModal Individual Next Clicked",{category:"Individuals",step:"segment-check",label:e}),null===(n=window.tracker)||void 0===n?void 0:n.trackEvent("CreateAccountModal Individual Step 1 Next Clicked",{category:"Individuals",destination:e})}},{key:"onSubmitSegmentCheck",value:function(e){var t=this;if(e.preventDefault(),"student"===this.signupState.get("path"))return this.$(".class-code-input").attr("disabled",!0),this.$("button.next-button").attr("disabled",!0),this.fetchClassByCode(this.getClassCode()).then((function(e){if(!t.destroyed){if(e){t.signupState.set({classroom:e});var n=me.get("country")&&me.inEU()?"eu-confirmation":"basic-info";return t.signupState.get("ssoUsed")&&(n="sso-confirm"),t.trigger("nav-forward",n)}return t.$(".class-code-input").attr("disabled",!1),t.$("button.next-button").attr("disabled",!1),t.classroom=new b,t.state.set({classCodeValid:!1,segmentCheckValid:!1})}})).catch((function(e){throw this.$(".class-code-input").attr("disabled",!1),this.$("button.next-button").attr("disabled",!1),e}));if("individual"===this.signupState.get("path")){if(_.isNaN(this.signupState.get("birthday").getTime())){v.clearFormAlerts(this.$el);var n=_.string.titleize(i.i18n.t("common.required_field"));return v.setErrorToProperty(this.$el,"birthdayDay",n)}if(((new Date).getTime()-this.signupState.get("birthday").getTime())/365.4/24/60/60/1e3>S.ageOfConsent(me.get("country"),13)){var r=me.get("country")&&me.inEU()?"eu-confirmation":"basic-info";return this.trackIndividualStepNext(r),this.trigger("nav-forward",r),null!=window.tracker?window.tracker.trackEvent("CreateAccountModal Individual SegmentCheckView Submit",{category:"Individuals"}):void 0}return this.trackIndividualStepNext("coppa-deny"),this.trigger("nav-forward","coppa-deny"),null!=window.tracker?window.tracker.trackEvent("CreateAccountModal Individual SegmentCheckView Coppa Deny",{category:"Individuals"}):void 0}}},{key:"fetchClassByCode",value:function(e){return e?new Promise((function(t,n){return(new b).fetchByCode(e,{success:t,error:function(e,r){return 404===r.status?t():n(r.responseJSON)}})})):Promise.resolve()}}],a=[{key:"initClass",value:function(){this.prototype.id="segment-check-view",this.prototype.template=y,this.prototype.events={"click .back-to-account-type":"onBackToAccountType","input .class-code-input":"onInputClassCode","change .birthday-form-group":"onInputBirthday","submit form.segment-check":"onSubmitSegmentCheck","click button.play-now":"onPlayClicked","click .under-13-button":"onClickUnder13","click .individual-path-button":function(){return this.trigger("choose-path","individual")}}}}],r&&c(n.prototype,r),a&&c(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(g)).initClass(),r)}
2,654062:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}var d;n(883618);var p=n(968029),f=n(535172);n(439980),n(249449),e.exports=((d=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,a=[{key:"initClass",value:function(){this.prototype.id="single-sign-on-already-exists-view",this.prototype.template=f,this.prototype.events={"click .back-button":"onClickBackButton"}}}],(r=[{key:"initialize",value:function(e){var t=e.signupState;this.signupState=t}},{key:"onClickBackButton",value:function(){return this.signupState.set({ssoUsed:void 0,ssoAttrs:void 0}),this.trigger("nav-back")}}])&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(p)).initClass(),d)},565051:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=d(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(null,arguments)}function l(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}
2function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f;n(887961),n(968029);var h=n(915066),m=n(470074),g=(n(439980),n(249449));e.exports=((f=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(e){null==e&&(e={});var n=e,r=n.signupState;return this.signupState=r,u(d(t.prototype),"initialize",this).apply(this,arguments)}},{key:"afterRender",value:function(){u(d(t.prototype),"afterRender",this).call(this)}},{key:"onClickBackButton",value:function(){return this.signupState.set({ssoUsed:void 0,ssoAttrs:void 0}),this.trigger("nav-back")}},{key:"formSchema",value:function(){return{type:"object",properties:{name:g.schema.properties.name},required:[]}}}],a=[{key:"initClass",value:function(){this.prototype.id="single-sign-on-confirm-view",this.prototype.template=m,this.prototype.events=_.extend({},h.prototype.events,{"click .back-button":"onClickBackButton"})}}],r&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(h)).initClass(),f)},287127:(e,t,n)=>{"use strict";e.exports=n(661706)},585405:(e,t,n)=>{"use strict";var r=n(619755);n(73422);var o=n(417185),i=n(299498),a=(["district","district_id","district_schools","district_students"].concat(["id","name","students","phone"]),Vue.extend({name:"NcesSearchInput",template:n(137479)(),props:{displayKey:{type:String,default:""},initialValue:{type:String,default:""},name:{type:String,default:""},placeholder:{type:String,default:""},isOptional:{type:Boolean,default:!1},showRequired:{type:Boolean,default:!1},label:{type:String}},data:function(){return{mouseOnSuggestion:!1,suggestions:[],suggestionIndex:0,filledSuggestion:"",value:this.initialValue}},watch:{initialValue:function(e){this.value=e}},methods:{onInput:function(e){var t=r(e.currentTarget).val();return this.$emit("updateValue",this.name,t),this.searchNces(t)},searchNces:function(e){var t=this;if(!i.isCodeCombat||!me.get("country")||"united-states"===me.get("country"))return this.suggestions=[],this.filledSuggestion="",o.schoolsIndex.search(e,{hitsPerPage:5,aroundLatLngViaIP:!1}).then((function(n){var r=n.hits;if(t.value===e)return t.suggestions=r,t.suggestionIndex=0}))},navSearchUp:function(){return this.suggestionIndex=Math.max(0,this.suggestionIndex-1)},navSearchDown:function(){return this.suggestionIndex=Math.min(this.suggestions.length,this.suggestionIndex+1)},navSearchChoose:function(){var e=this.suggestions[this.suggestionIndex];if(e)return this.navSearchClear(),this.$emit("navSearchChoose",this.displayKey,e)},onBlur:function(){return this.navSearchClear()},navSearchClear:function(){return this.suggestions=[]},suggestionHover:function(e){return this.suggestionIndex=e}}}));e.exports=a},459437:(e,t,n)=>{"use strict";var r=n(619755);n(504871);var o=n(585405),i=(n(417185),n(299498)),a=["district","district_id","district_schools","district_students"],s=a.concat(["id","name","students","phone"]),c=(n(299498).countries,n(97660)()),u=n(636478).UsaStates,l={name:"school-info-panel",template:n(803492)(),data:function(){var e,t=_.zipObject(function(){for(var t=[],n=0,r=Array.from(s);n<r.length;n++)e=r[n],t.push(["nces_"+e,""]);return t}()),n=_.pick(this.$store.state.modalTeacher.trialRequestProperties,function(){for(var t=[],n=0,r=Array.from(s);n<r.length;n++)e=r[n],t.push("nces_"+e);return t}().concat(["organization","district","city","state","country"]));return Object.assign(n,{countriesList:c.getNames()}),_.assign(t,n,{showRequired:!1,usaStates:(new u).states,usaStatesAbbreviations:(new u).arrayOf("abbreviations"),countryMap:{"Hong Kong":"Hong Kong, China",Macao:"Macao, China","Taiwan, Province of China":"Taiwan, China"}})},components:{"nces-search-input":o},methods:{updateValue:function(e,t){if(this[e]=t,"organization"===e&&this.clearSchoolNcesValues(),"district"===e)return this.clearSchoolNcesValues(),this.clearDistrictNcesValues()},clearDistrictNcesValues:function(){var e=this;return Array.from(a).map((function(t){return e["nces_"+t]=""}))},clearSchoolNcesValues:function(){var e=this;return Array.from(_.difference(s,a)).map((function(t){return e["nces_"+t]=""}))},applySuggestion:function(e,t){var n=this;if(t){_.assign(this,_.pick(t,"district","city","state")),"name"===e&&(this.organization=t.name),this.country="United States",this.clearSchoolNcesValues(),this.clearDistrictNcesValues();var r="name"===e?s:a;return Array.from(r).map((function(e){return n["nces_"+e]=t[e]}))}},onChangeCountry:function(){if("United States"===this.country&&!this.usaStatesAbbreviations.includes(this.state))return this.state=""},commitValues:function(){for(var e=_.pick(this,"organization","district","city","state","country"),t=0,n=Array.from(s);t<n.length;t++){var r="nces_"+n[t];e[r]=this[r].toString()}return this.$store.commit("modalTeacher/updateTrialRequestProperties",e)},clickContinue:function(){null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher SchoolInfoPanel Continue Clicked",{c
2ategory:"Teachers"});var e=_.pick(this,"district","city","state","country");if(_.all(e))return this.commitValues(),null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher SchoolInfoPanel Continue Success",{category:"Teachers"}),this.$emit("continue");this.showRequired=!0},clickBack:function(){return this.commitValues(),null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher SchoolInfoPanel Back Clicked",{category:"Teachers"}),this.$emit("back")}},mounted:function(){if(r("input[name*='organization']").focus(),i.getQueryVariable("auto-auth")||me.isClassLink())this.$emit("continue");else if(!i.isOzaria){if(me.showChinaRegistration())this.country="China";else{var e=me.get("country"),t=e?_.find(c.getNames(),(function(t){return t===_.string.slugify(e)||t.toLowerCase()===e.toLowerCase()})):void 0;this.country=t||"United States"}return me.addressesIncludeAdministrativeRegion()?void 0:this.state=" "}}};e.exports=l},457242:(e,t,n)=>{"use strict";var r=n(619755),o=n(665420),i=n(299498),a=Vue.extend({name:"SetupAccountPanel",template:n(876363)(),data:function(){return{supportEmail:i.isOzaria?"<a href='mailto:[email protected]'>[email protected]</a>":"<a href='mailto:[email protected]'>[email protected]</a>",saving:!0,error:"",isCodeCombat:i.isCodeCombat}},computed:{inEU:function(){return me.inEU()}},mounted:function(){var e=this;this.$store.dispatch("modalTeacher/createAccount").catch((function(t){t.i18n?e.error=e.$t(t.i18n):e.error=t.message,e.error||(e.error=e.$t("loading_error.unknown"))})).then((function(){e.saving=!1}))},methods:{clickFinish:function(){var e=this;return console.log("click finish"),me.fetch({cache:!1}).then((function(){var t=_.assign({},me.get("emails"));null==t.generalNews&&(t.generalNews={}),t.generalNews.enabled=r("#subscribe-input").is(":checked"),e.inEU&&(null==t.teacherNews&&(t.teacherNews={}),t.teacherNews.enabled=r("#subscribe-input").is(":checked"),me.set("unsubscribedFromMarketingEmails",!r("#subscribe-input").is(":checked"))),me.set("emails",t);var n=me.save();if(!n)throw console.error(me.validationError),new Error("Could not save user");return new Promise(n.then).then((function(){null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher SetupAccountPanel Finish Clicked",{category:"Teachers"}),window.nextURL?window.location.href=window.nextURL:(o.router.navigate("teachers/classes",{trigger:!0}),document.location.reload())}))}))},clickBack:function(){null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher SetupAccountPanel Back Clicked",{category:"Teachers"}),this.$emit("back")}}});e.exports=a},381964:(e,t,n)=>{"use strict";var r=n(439980),o=n(299498),i=Vue.extend({name:"TeacherRolePanel",template:n(943952)(),data:function(){var e=_.pick(this.$store.state.modalTeacher.trialRequestProperties,["role","numStudents","notes","referrer","phoneNumber"]);return _.assign(e,{showRequired:!1,product:o.getProductName(),isCodeCombat:o.isCodeCombat})},computed:_.assign({},Vuex.mapGetters({trialReqProps:"modalTeacher/getTrialRequestProperties"}),{askForPhoneNumber:function(){return me.showChinaRegistration()||"United States"===this.trialReqProps.country},phoneNumberRequired:function(){return me.showChinaRegistration()},validPhoneNumber:function(){return!this.phoneNumber||r.validatePhoneNumber(this.phoneNumber)}}),mounted:function(){return this.$refs.focus.focus()},methods:{clickContinue:function(){null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher TeacherRolePanel Continue Clicked",{category:"Teachers"});var e=_.pick(this,["role","numStudents"].concat(this.phoneNumberRequired?["phoneNumber"]:[]));if(_.all(e)&&this.validPhoneNumber)return this.commitValues(),null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher TeacherRolePanel Continue Success",{category:"Teachers"}),o.isOzaria?null!=window.tracker&&window.tracker.trackEvent("OzariaUniqueTeacherSignup"):null!=window.tracker&&window.tracker.trackEvent("UniqueTeacherSignup"),"function"==typeof gtag&>ag("event","conversion",{send_to:"AW-811324643/8dp2CJK6_5QBEOOp74ID"}),this.$emit("continue");this.showRequired=!0},clickBack:function(){return this.commitValues(),null!=window.tracker&&window.tracker.trackEvent("CreateAccountModal Teacher TeacherRolePanel Back Clicked",{c
2ategory:"Teachers"}),this.$emit("back")},commitValues:function(){var e=_.pick(this,"role","numStudents","notes","referrer","phoneNumber");return this.$store.commit("modalTeacher/updateTrialRequestProperties",e)}}});e.exports=i},965895:(e,t,n)=>{"use strict";var r=n(619755),o=n(459437),i=n(381964),a=n(457242);e.exports=Vue.extend({name:"TeacherSignupComponent",template:n(711997)(),components:{"school-info-panel":o,"teacher-role-panel":i,"setup-account-panel":a},data:function(){return{panelIndex:0,panels:["school-info-panel","teacher-role-panel","setup-account-panel"],trialRequestAttributes:{}}},computed:{panel:function(){return this.panels[this.panelIndex]}},created:function(){return this.disableKeyboardClose()},mounted:function(){},methods:{onContinue:function(e){this.trialRequestAttributes=_.assign({},this.trialRequestAttributes,e),this.panelIndex+=1},onBack:function(){0===this.panelIndex?this.$emit("back"):this.panelIndex-=1},disableKeyboardClose:function(){var e,t,n=r("#create-account-modal").data("bs.modal");return null!=(e=null!=n?n.options:void 0)&&function(e){return e.keyboard=!1}(e),null!=(t=n)&&"function"==typeof t.escape?t.escape():void 0}}})},974423:(e,t,n)=>{"use strict";var r,o=n(665420);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(694879),a=["district","district_id","district_schools","district_students","phone"].concat(["id","name","students"]),s=_.zipObject(function(){for(var e=[],t=0,n=Array.from(a);t<n.length;t++)r=n[t],e.push(["nces_"+r,""]);return e}()),c=n(249449),u=(n(196363),n(504015),n(299498)),l=function(){return{trialRequestProperties:_.assign(s,{organization:"",district:"",city:"",state:"",country:"",phoneNumber:"",role:"",purchaserRole:"",numStudents:"",numStudentsTotal:"",notes:"",referrer:"",marketingReferrer:"",educationLevel:[],otherEducationLevel:!1,otherEducationLevelExplanation:"",siteOrigin:"create teacher",firstName:"",lastName:"",email:""}),signupForm:{name:"",email:"",password:"",firstName:"",lastName:""},ssoAttrs:{email:"",gplusID:"",facebookID:""},ssoUsed:"",isHourOfCode:!1,classLanguage:"",marketingConsent:void 0}};t.default={namespaced:!0,state:l(),getters:{getTrialRequestProperties:function(e){return e.trialRequestProperties},getSsoUsed:function(e){return e.ssoUsed}},mutations:{updateTrialRequestProperties:function(e,t){return _.assign(e.trialRequestProperties,t)},updateSignupForm:function(e,t){return _.assign(e.signupForm,t)},updateSso:function(e,t){var n=t.ssoUsed,r=t.ssoAttrs;return _.assign(e.ssoAttrs,r),e.ssoUsed=n},updateClassLanguage:function(e,t){var n=t.language;return e.classLanguage=n},setHourOfCode:function(e){return e.isHourOfCode=!0},setMarketingConsent:function(e,t){var n=t.marketingConsent;return e.marketingConsent=n},resetState:function(e){return _.assign(e,l())}},actions:{createAccount:function(e){var t=e.state,n=(e.commit,e.dispatch),r=e.rootState;return Promise.resolve().then((function(){var e={role:t.trialRequestProperties.role.toLowerCase()};return t.isHourOfCode&&(e.hourOfCode=!0,e.hourOfCode2019=!0,e.hourOfCodeOptions={showCompleteSignupModal:!0}),n("me/save",e,{root:!0})})).then((function(){var e=_.cloneDeep(t.trialRequestProperties);return e.otherEducationLevel&&e.educationLevel.push(e.otherEducationLevelExplanation),delete e.otherEducationLevel,delete e.otherEducationLevelExplanation,e.email=t.signupForm.email,i.trialRequests.post({type:"course",properties:e})})).then((function(){var e=_.omit(t.signupForm,(function(e){return""===e})),n=_.omit(t.ssoAttrs,(function(e){return""===e})),o=_.assign({},e,n,{userID:r.me._id});return"gplus"===t.ssoUsed?i.users.signupWithGPlus(o):"facebook"===t.ssoUsed?i.users.signupWithFacebook(o):t.ssoUsed?i.users.signupWithOAuth2(o):i.users.signupWithPassword(o)})).then((function(e){if(n("me/authenticated",e,{root:!0}),u.isOzaria)return o.tracker.identifyAfterNextPageLoad()})).then((function(){if(u.isCodeCombat){var e=_.pick(t.trialRequestProperties,["siteOrigin","marketingReferrer","referrer","notes","numStudentsTotal","numStudents","purchaserRole","role","phoneNumber","country","state","city","district","organization","nces_students","nces_name","nces_id","nces_phone","nces_district_students","nces_district_schools","nces_district_id","nces_district"]);if(e.educationLevel_elementary=_.contains(t.trialRequestProperties.educationLevel,"Elementary"),e.educationLevel_middle=_.contains(t.trialRequestProperties.educationLevel,"Middle"),e.educationLevel_high=_.contains(t.trialRequestProperties.educationLevel,"High"),e.educationLevel_college=_.contains(t.trialRequestProperties.educationLevel,"College+"),o.tracker.identifyAfterNextPageLoad(),!c.isSmokeTestUser({email:t.signupForm.email}))return o.tracker.identify(e).catch((function(){}))}else{var r={};if("boolean"==typeof t.marketingConsent){var i=_.assign({},me.get("emails"));null==i.generalNews&&(i.generalNews={}),null==i.teacherNews&&(i.teacherNews={}),i.generalNews.enabled=t.marketingConsent,i.teacherNews.enabled=t.marketingConsent,r.emails=i,t.marketingConsent||(r.unsubscribedFromMarketingEmails=!0)}if(t.trialRequestProperties.firstName&&(r.firstName=t.trialRequestProperties.firstName),t.trialRequestProperties.lastName&&(r.lastName=t.trialRequestProperties.lastName),Object.keys(r).length>0)return n("me/save",r,{root:!0})}})).then((function(){var e=[];return"gplus"===t.ssoUsed?e.push(null!=window.tracker?window.tracker.trackEvent("Google Login",{category:"Signup",label:"GPlus"}):void 0):"facebook"===t.ssoUsed&&e.push(null!=window.tracker?window.tracker.trackEvent("Facebook Login",{category:"Signup",label:"Facebook"}):void 0),Promise.all(e).catch((function(){}))}))},updateAccount:function(e){var t=e.state,n=(e.commit,e.dispatch);return e.rootState,i.trialRequests.getOwn().then((function(e){if(0===e.length)return console.log("No trial requests found to update"),Promise.resolve();e=_.sortBy(e,(function(e){return e.id}));var n=_.last(e),o=_.cloneDeep(t.trialRequestProperties);for(r in o.otherEducationLevel&&o.educationLevel.push(o.otherEducationLevelExplanation),delete o.otherEducationLevel,delete o.otherEducationLevelExplanation,o){var a=o[r];a&&a.length>0&&(n.properties[r]=a)}return i.trialRequests.update(n)})).then((function(){var e=_.pick(t.trialRequestProperties,["siteOrigin","marketingReferrer","referrer","notes","numStudentsTotal","numStudents","purchaserRole","role","phoneNumber","country","state","city","district","organization","nces_students","nces_name","nces_id","nces_phone","nces_district_students","nces_district_schools","nces_district_id","nces_district"]);if(e.educationLevel_elementary=_.contains(t.trialRequestProperties.educationLevel,"Elementary"),e.educationLevel_middle=_.contains(t.trialRequestProperties.educationLevel,"Middle"),e.educationLevel_high=_.contains(t.trialRequestProperties.educationLevel,"High"),e.educationLevel_college=_.contains(t.trialRequestProperties.educationLevel,"College+"),!c.isSmokeTestUser({email:t.signupForm.email}))return o.tracker.identify(e).catch((function(){}))})).then((function(){return n("me/save",{role:t.trialRequestProperties.role.toLowerCase()},{root:!0})}
2))}}}},82098:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=a(n(524549)),i=a(n(58968));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var p=function(e){function t(){return s(this,t),c(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(o.default);p.prototype.id="direct-contact-modal",p.prototype.template=n(97625),p.prototype.VueComponent=i.default,p.prototype.propsData=null,p.prototype.closesOnClickOutside=!1,p.prototype.closesOnEscape=!0,t.Z=p},487471:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}n(234337);var f=n(968029),h=n(93506),m=n(365117),g=n(579483),y=n(50869),v=(n(249449),n(694879)),b=n(299498);e.exports=((r=function(e){function t(){var e,n,r,o,i,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return a(this,t),(e=u(this,t,[s])).options=s,b.isCodeCombat?(r=g.heroes.captain,n=(null===(o=me.get("heroConfig"))||void 0===o?void 0:o.thangType)||r):(r=g.ozariaHeroes["hero-b"],n=(null===(i=me.get("ozariaUserOptions"))||void 0===i?void 0:i.isometricThangTypeOriginal)||r),e.debouncedRender=_.debounce(e.render,0),e.state=new m({currentHeroOriginal:n,selectedHeroOriginal:n}),b.isCodeCombat?v.thangTypes.getHeroes({project:["original","name","shortName","i18n","heroClass","slug","ozaria","poseImage"]}).then((function(t){if(!e.destroyed)return e.heroes=t.filter((function(e){var t,n,r;return!(e.ozaria||(t=_.find(b.clanHeroes,{thangTypeOriginal:e.original}))&&(r=t.clanId,!(null!=(n=me.get("clans"))?n:[]).includes(r))||e.original===g.heroes["code-ninja"]&&"coco.code.ninja"!==window.location.host)})),e.debouncedRender()})):v.thangTypes.getHeroes({project:["original","name","shortName","heroClass","slug","ozaria"]}).then((function(t){return e.heroes=t.filter((function(e){return!e.ozaria})),e.debouncedRender()})),e.listenTo(e.state,"all",(function(){return this.debouncedRender()})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"onClickHeroOption",value:function(e){var t=o(e.currentTarget).data("hero-original");return this.state.set({selectedHeroOriginal:t}),this.saveHeroSelection(t)}},{key:"getPortraitURL",value:function(e){return y.getPortraitURL(e)}},{key:"getHeroShortName",value:function(e){return y.getHeroShortName(e)}},{key:"saveHeroSelection",value:function(e){var t=this;me.get("heroConfig")||me.set({heroConfig:{}});var n=_.assign({},me.get("heroConfig"),{thangType:e});me.set({heroConfig:n});var r=_.find(this.heroes,{original:e});return me.save().then((function(){var n;
2if(!b.isCodeCmbat||!t.destroyed){var o="Hero selected";o+=me.isStudent()?" student":" teacher",t.options.createAccount&&(o+=" create account");var i=me.isStudent()?"Students":"Teachers";return null===(n=window.tracker)||void 0===n||n.trackEvent(o,{category:i,heroOriginal:e}),t.trigger("hero-select:success",{attributes:r})}}))}}],i=[{key:"initClass",value:function(){this.prototype.id="hero-select-view",this.prototype.template=h,this.prototype.events={"click .hero-option":"onClickHeroOption"}}}],r&&s(n.prototype,r),i&&s(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(f)).initClass(),r)},524549:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,a(r.key),r)}}function a(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function s(e,t,n){return t=d(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(){return u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=l(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},u.apply(null,arguments)}function l(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f,h=n(921336),m=n(196363),g={commit:_.noop,dispatch:_.noop};e.exports=((f=function(e){function t(){return o(this,t),s(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"afterRender",value:function(){if(this.vueComponent)return this.$el.find("#modal-base-flat").replaceWith(this.vueComponent.$el);if(this.vuexModule){if(!_.isFunction(this.vuexModule))throw new Error("@vuexModule should be a function");m.registerModule("modal",this.vuexModule())}return this.vueComponent=new this.VueComponent({el:this.$el.find("#modal-base-flat")[0],propsData:this.propsData,store:m}),u(d(t.prototype),"afterRender",this).apply(this,arguments)}},{key:"destroy",value:function(){return this.vuexModule&&m.unregisterModule("modal"),this.vueComponent.$destroy(),this.vueComponent.$el.remove(),this.vueComponent.$store=g,this.vueComponent=null,u(d(t.prototype),"destroy",this).call(this)}}],a=[{key:"initClass",value:function(){this.prototype.VueComponent=null,this.prototype.vuexModule=null,this.prototype.propsData=null}}],r&&i(n.prototype,r),a&&i(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(h)).initClass(),f)},921336:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(null,arguments)}function p(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}
2function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var m=n(968029),g=n(144291),y=n(147084);function v(e,t,n){return null!=e&&"function"==typeof e[t]?n(e,t):void 0}function b(e,t){return null!=e?t(e):void 0}e.exports=((r=function(e){function t(e){var n;return a(this,t),n=u(this,t,arguments),((null!=e?e.instant:void 0)||n.instant)&&(n.className=n.className.replace(" fade","")),null!=(null!=e?e.closeButton:void 0)&&(n.closeButton=e.closeButton),(null!=e?e.modalWidthPercent:void 0)&&(n.modalWidthPercent=e.modalWidthPercent),null==n.options&&(n.options={}),null!=(null!=e?e.trapsFocus:void 0)&&(n.trapsFocus=e.trapsFocus),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),r=t,c=[{key:"initClass",value:function(){this.prototype.className="modal fade",this.prototype.closeButton=!0,this.prototype.closesOnClickOutside=!0,this.prototype.modalWidthPercent=null,this.prototype.plain=!1,this.prototype.instant=!1,this.prototype.template=n(997586),this.prototype.trapsFocus=!0,this.prototype.events={"click a":"toggleModal","click button":"toggleModal","click li":"toggleModal","click [data-i18n]":"onClickTranslatedElement"},this.prototype.shortcuts={esc:"onEsc"},this.prototype.subscriptions={}}}],(i=[{key:"getRenderData",value:function(e){return(e=d(f(t.prototype),"getRenderData",this).call(this,e)).marked=y,e}},{key:"render",value:function(){v(this.focusTrap,"deactivate",(function(e){return e.deactivate()})),d(f(t.prototype),"render",this).call(this),this.trapFocus()}},{key:"afterRender",value:function(){var e=this;if(d(f(t.prototype),"afterRender",this).call(this),this.modalWidthPercent&&this.$el.find(".modal-dialog").css({width:"".concat(this.modalWidthPercent,"%")}),this.$el.on("hide.bs.modal",(function(){e.hidden||e.onHidden(),e.hidden=!0})),this.plain)return this.$el.find(".background-wrapper").addClass("plain")}},{key:"afterInsert",value:function(){if(d(f(t.prototype),"afterInsert",this).call(this),o(document.activeElement).blur(),"undefined"!=typeof localStorage&&null!==localStorage?localStorage.showViewNames:void 0){var e=null!=this.constructor?this.constructor.name:void 0;return setTimeout((function(){if(!this.destroyed)return o("title").text(e)}),500)}}},{key:"trapFocus",value:function(){if(this.trapsFocus){this.focusTrap||(this.focusTrap=g.createFocusTrap(this.el));try{var e,t;null===(e=this.focusTrap)||void 0===e||e.activate(),console.log(null===(t=this.constructor)||void 0===t?void 0:t.name,"trapping focus within modal")}catch(e){var n;console.log(null===(n=this.constructor)||void 0===n?void 0:n.name,"not trapping focus for modal with no focusable elements")}}}},{key:"showLoading",value:function(e){return e||(e=this.$el.find(".modal-body")),d(f(t.prototype),"showLoading",this).call(this,e)}},{key:"onEsc",value:function(){if(b(b(this.$el.data("bs.modal"),(function(e){return e.options})),(function(e){return e.keyboard})))return this.hide()}},{key:"hide",value:function(){return this.trigger("hide"),this.destroyed||this.$el.removeClass("fade").modal("hide"),v(this.focusTrap,"deactivate",(function(e){return e.deactivate()}))}},{key:"onHidden",value:function(){return this.trigger("hidden")}},{key:"destroy",value:function(){return this.hidden||this.hide(),this.$el&&this.$el.off("hide.bs.modal"),v(this.focusTrap,"deactivate",(function(e){return e.deactivate()})),d(f(t.prototype),"destroy",this).call(this)}}])&&s(r.prototype,i),c&&s(r,c),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,c}(m)).initClass(),r)},226256:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function s(e,t,n){return t=u(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],u(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function d(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}n(244524);
2var h=n(921336),m=n(136712),g=n(439980),y=n(186421).genericFailure,v=n(299498);e.exports=((r=function(e){function t(e){var n,r,i,a,c,u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=n=s(this,t,[e]),a=function(){var e=this;setTimeout((function(){e.$el.find("input").focus()}),500)},(i=d(i="afterRender"))in r?Object.defineProperty(r,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[i]=a,n.successfullyRecovered=n.successfullyRecovered.bind(n),n.recoverAccountHandler=(c=[13],u=function(e){n.playSound("menu-button-click"),g.clearFormAlerts(n.$el);var t=g.formToObject(n.$el).email;if(t)return v.isValidEmail(t)?(o.post("/auth/reset",{email:t},n.successfullyRecovered).fail(y),n.enableModalInProgress(n.$el)):noty({text:o.i18n.t("form_validation_errors.invalidEmail"),layout:"center",type:"error",timeout:3e3})},function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t[0];if(Array.from(c).includes(r.keyCode)||!r.keyCode)return u.apply(void 0,p(Array.from(t||[])))}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(t,e),n=t,r=[{key:"onServerError",value:function(e){return this.disableModalInProgress(this.$el)}},{key:"recoverAccount",value:function(e){return this.recoverAccountHandler(e)}},{key:"successfullyRecovered",value:function(){return this.disableModalInProgress(this.$el),this.$el.find(".modal-body:visible").text(o.i18n.t("recover.recovery_sent")),this.$el.find(".modal-footer").remove()}}],i=[{key:"initClass",value:function(){this.prototype.id="recover-modal",this.prototype.template=m,this.prototype.events={"click #recover-button":"recoverAccount","keyup input":"recoverAccount"},this.prototype.subscriptions={"errors:server-error":"onServerError"}}}],r&&a(n.prototype,r),i&&a(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(h)).initClass(),r)},368441:(e,t,n)=>{"use strict";var r=n(619755),o=n(665420);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=l(n(244556)),s=l(n(196363)),c=l(n(493232)),u=l(n(713970));function l(e){return e&&e.__esModule?e:{default:e}}function d(){d=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new I(r||[]);return o(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};l(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(o,a,s,c){var u=f(e[o],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==i(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&
vendor: 5,877 bytes, line 2
2(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(i(t)+" is not iterable")}return b.prototype=_,o(k,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:b,configurable:!0}),b.displayName=l(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),l(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),l(k,u,"Generator"),l(k,s,(function(){return this})),l(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function p(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function f(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){p(i,r,o,a,s,"next",e)}function s(e){p(i,r,o,a,s,"throw",e)}a(void 0)}))}}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m(r.key),r)}}function m(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function g(e,t,n){return t=w(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],w(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function v(){return v="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=b(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},v.apply(null,arguments)}function b(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=w(e)););return e}
2function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}var C=n(299498),k=!1;t.default=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=g(this,t,[null,{}])).skipMetaBinding=!0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(t,e),n=t,i=[{key:"afterRender",value:function(){return this.setupHashHandlers(),v(w(t.prototype),"afterRender",this).call(this)}},{key:"setupHashHandlers",value:(l=f(d().mark((function e(){var t,n,o,i,a,s,c,u=this;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=C.getQueryVariable("auto-auth"),me.isAnonymous()&&(n=document.location.hash,o=C.getQueryVariable("registering"),i=C.getQueryVariable("create-account"),a={"#create-account":null,"#create-account-individual":"individual","#create-account-home":"individual-basic","#create-account-student":"student","#create-account-teacher":"teacher"},("#create-account"===n&&!0===o||a[n]||"teacher"===i)&&(s=a[n]||i,_.defer((function(){if(!u.destroyed)return u.openCreateAccountModal({startOnPath:s})}))),"#login"===n&&(c=new URLSearchParams(window.location.search),_.defer((function(){if(!u.destroyed)return u.openAuthModal({initialValues:{email:c.get("email")}})})))),r(".ozaria-modal, .modal-dialog").length,!t){e.next=20;break}if(!k){e.next=8;break}return console.log("inProgressAuth",k),e.abrupt("return");case 8:return k=!0,e.prev=9,e.next=12,this.handleAutoAuth(t);case 12:e.next=17;break;case 14:e.prev=14,e.t0=e.catch(9),console.error(e.t0);case 17:return e.prev=17,k=!1,e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[9,14,17,20]])}))),function(){return l.apply(this,arguments)})},{key:"handleAutoAuth",value:(a=f(d().mark((function e(t){var n,i,a,s,c,u,l,p,f;return d().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(me.isAnonymous()){e.next=3;break}return noty({text:r.i18n.t("library.already_logged_in"),layout:"topCenter",type:"warning",timeout:5e3}),e.abrupt("return");case 3:if("classlink"!==t){e.next=7;break}n=o.classlinkHandler,e.next=13;break;case 7:if("schoology"!==t){e.next=11;break}n=o.schoologyHandler,e.next=13;break;case 11:return noty({text:"Unsupported authentication provider: ".concat(t),layout:"topCenter",type:"error",timeout:5e3}),e.abrupt("return");case 13:return e.next=15,n.logInWithEdlink();case 15:i=e.sent,a=i.loggedIn,s=i.role,c=i.email,u=i.firstName,l=i.lastName,a?window.location.href="/":(f={ssoUsed:t,path:p=s,email:c,screen:"student"!==p?"sso-confirm":"segment-check",autoName:"".concat(c.split("@")[0],"+").concat(t),ssoAttrs:{email:c}},u&&me.set("firstName",u),l&&me.set("lastName",l),this.openCreateAccountModal(f),noty({text:r.i18n.t("login.login_failed"),layout:"topCenter",type:"error",timeout:5e3,killer:!1,dismissQueue:!0}));case 22:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"buildVueComponent",value:function(){var e=this;return this.router=(0,c.default)(),this.router.afterEach((function(t,n){if(t.path!==n.path)try{e.render(),window.scrollTo(0,0)}catch(e){}})),new Vue({el:this.$el.find("#site-content-area")[0],store:s.default,router:this.router,render:function(e){return e(u.default)},provide:{openLegacyModal:this.openModalView.bind(this),legacyModalClosed:this.modalClosed.bind(this)}})}}],i&&h(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i,a,l}(a.default)},203949:(e,t,n)=>{"use strict";var r,o=n(619755),i=n(665420);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=a(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==a(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(null,arguments)}function p(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}
2function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}n(642158);var m=n(694879),g=n(921336),y=n(685115),v=n(926558),b=n(299498),w=n(287127),S=n(408939),C=n(13575),k=n(328395).handleHomeSubscription;e.exports=((r=function(e){function t(e){var n,r;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),null==e&&(e={}),(r=u(this,t,[e])).onPayPalPaymentStarted=r.onPayPalPaymentStarted.bind(r),r.onPayPalPaymentComplete=r.onPayPalPaymentComplete.bind(r),r.hideMonthlySub=(null!=e?e.hideMonthlySub:void 0)||window.location.pathname.startsWith("/parents")||"japan"===me.get("country")||null,(null!=e?e.forceShowMonthlySub:void 0)&&(r.hideMonthlySub=!1),r.state="standby",r.couponID=b.getQueryVariable("coupon"),r.subModalContinue=e.subModalContinue,e.products)r.products=e.products,r.onLoaded();else{r.products=new S;var o={};null==r.couponID&&(r.couponID="undefined"!=typeof me&&null!==me?me.get("country"):void 0),"brazil"===r.couponID&&(r.couponID="brazil-annual"),r.couponID&&(o.coupon=r.couponID),r.supermodel.trackRequest(r.products.fetch({data:o}))}return r.trackTimeVisible({trackViewLifecycle:!0}),C.loadPayPal().then((function(){return r.render()})),r.purchasingForId=null===(n=e)||void 0===n?void 0:n.purchasingForId,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),n=t,r=[{key:"onLoaded",value:function(){return this.basicProduct=this.products.getBasicSubscriptionForUser(me),this.basicProductAnnual=this.products.getBasicAnnualSubscriptionForUser(),this.couponID&&null!=(null!=this.basicProduct?this.basicProduct.get("coupons"):void 0)&&"basic_subscription"===(null!=this.basicProduct?this.basicProduct.get("name"):void 0)&&(this.basicCoupon=_.find(this.basicProduct.get("coupons"),{code:this.couponID})),this.couponID&&null!=(null!=this.basicProductAnnual?this.basicProductAnnual.get("coupons"):void 0)&&"basic_subscription_annual"===(null!=this.basicProductAnnual?this.basicProductAnnual.get("name"):void 0)&&(this.basicCouponAnnual=_.find(this.basicProductAnnual.get("coupons"),{code:this.couponID})),this.lifetimeProduct=this.products.getLifetimeSubscriptionForUser(me),this.paymentProcessor="stripe",this.isParentHomeAccount=me.isParentHome(),d(f(t.prototype),"onLoaded",this).call(this),this.render()}},{key:"render",value:function(){if("purchasing"!==this.state)return d(f(t.prototype),"render",this).apply(this,arguments),this.renderPayPalButton(),null}},{key:"renderPayPalButton",value:function(){if(this.$("#paypal-button-container").length&&!this.$("#paypal-button-container").children().length){var e=((12*this.basicProduct.get("amount")-this.lifetimeProduct.get("amount"))/100).toFixed(2),t=o.i18n.t("subscribe.lifetime").replace("{{discount}}",e);return null!=C?C.makeButton({buttonContainerID:"#paypal-button-container",product:this.lifetimeProduct,onPaymentStarted:this.onPayPalPaymentStarted,onPaymentComplete:this.onPayPalPaymentComplete,description:t}):void 0}}},{key:"afterRender",value:function(){if(d(f(t.prototype),"afterRender",this).call(this),this.playSound("game-menu-open"),this.basicProduct&&this.subModalContinue){if("monthly"===this.subModalContinue)return this.subModalContinue=null,this.onClickPurchaseButton();if("lifetime"===this.subModalContinue&&(this.subModalContinue=null,!this.basicProduct.isRegionalSubscription()))return this.onClickStripeLifetimeButton()}}},{key:"stripeOptions",value:function(e){return _.assign({alipay:"china"===me.get("country")||"zh"===(me.get("preferredLanguage")||"en-US").slice(0,2)||"auto",alipayReusable:!0},e)}},{key:"onClickPurchaseButton",value:function(e){if(this.basicProduct){if(this.playSound("menu-button-click"),me.get("anonymous")){var t=this.basicProduct.isRegionalSubscription()?"paypal":"stripe";return null!=i.tracker&&i.tracker.trackEvent("Started Signup from buy monthly",{service:t}),this.openModalView(new w({startOnPath:"individual",subModalContinue:"monthly"}))}return this.startStripeSubscribe()}}},{key:"onClickAnnualPurchaseButton",value:function(e){if(this.basicProductAnnual)return this.playSound("menu-button-click"),me.get("anonymous")?(null!=i.tracker&&i.tracker.trackEvent("Started Signup from buy yearly",{service:"stripe"}),this.openModalView(new w({startOnPath:"individual",subModalContinue:"yearly"}))):this.startYearlyStripeSubscription()}},{key:"startPayPalSubscribe",value:function(){var e=this;return null!=i.tracker&&i.tracker.trackEvent("Started subscription purchase",{service:"paypal"}),o(".purchase-button").addClass("disabled"),o(".purchase-button").html(o.i18n.t("common.processing")),m.users.createBillingAgreement({userID:me.id,productID:this.basicProduct.id}).then((function(e){for(var t=0,n=Array.from(e.links);t<n.length;t++){var r=n[t];if("approval_url"===r.rel)return null!=i.tracker&&i.tracker.trackEvent("Continue subscription purchase",{service:"paypal",redirectUrl:r.href}),void(window.location=r.href)}throw new Error("PayPal billing agreement has no redirect link ".concat(JSON.stringify(e)))})).catch((function(t){return o(".purchase-button").removeClass("disabled"),o(".purchase-button").html(o.i18n.t("premium_features.subscribe_now")),e.onSubscriptionError(t)}))}},{key:"startStripeSubscribe",value:function(){return this.startStripeSubscription(this.basicProduct)}},{key:"startYearlyStripeSubscription",value:function(){return this.startStripeSubscription(this.basicProductAnnual)}},{key:"startStripeSubscription",value:function(e){var t=this;return k(e,this.couponID,{purchasingForId:this.purchasingForId}).catch((function(n){return console.error("homeSubscription handle failed by new stripe",n),t.handleStripeSubscriptionByOldFormat(e)}))}},{key:"handleStripeSubscriptionByOldFormat",value:function(e){var t=this;null!=i.tracker&&i.tracker.trackEvent("Started subscription purchase",{service:"stripe"});var n=this.stripeOptions({description:"basic_subscription_annual"===e.get("name")?o.i18n.t("subscribe.stripe_yearly_description"):o.i18n.t("subscribe.stripe_description"),amount:e.adjustedPrice()});return this.purchasedAmount=n.amount,v.makeNewInstance().openAsync(n).then((function(n){var r=n.token;t.state="purchasing",t.render();var o="basic_subscription_annual"===e.get("name")?me.subscribe(r,{planID:e.get("planID"),couponID:null!=t.basicCouponAnnual?t.basicCouponAnnual.code:void 0}):(null!=t.basicCoupon?t.basicCoupon.code:void 0)?me.subscribe(r,{couponID:t.basicCoupon.code}):me.subscribe(r);return Promise.resolve(o)})).then((function(){return null!=i.tracker&&i.tracker.trackEvent("Finished subscription purchase",{value:t.purchasedAmount,service:"stripe"}),t.onSubscriptionSuccess()})).catch((function(e){var n;if(e){var r=null!=(n=me.get("stripe"))?n:{};return delete r.token,delete r.planID,t.onSubscriptionError(e,"Failed to finish subscription purchase")}}))}},{key:"makePurchaseOps",value:function(){var e={data:{}};return this.couponID&&(e.data.coupon=this.couponID),e}},{key:"onPayPalPaymentStarted",value:function(){return this.playSound("menu-button-click"),me.get("anonymous")?(null!=i.tracker&&i.tracker.trackEvent("Started Signup from buy lifetime",{service:"paypal"}),this.openModalView(new w({startOnPath:"individual",subModalContinue:"lifetime"}))):(null!=i.tracker&&i.tracker.trackEvent("Start Lifetime Purchase",{service:"paypal"}),this.state="purchasing",this.render())}},{key:"onPayPalPaymentComplete",value:function(e){var t=this;return this.purchasedAmount=100*Number(e.transactions[0].amount.total),Promise.resolve(this.lifetimeProduct.purchaseWithPayPal(e,this.makePurchaseOps())).then((function(e){return null!=i.tracker&&i.tracker.trackEvent("Finish Lifetime Purchase",{value:t.purchasedAmount,service:"paypal"}),null!=(null!=e?e.payPal:void 0)&&me.set("payPal",null!=e?e.payPal:void 0),t.onSubscriptionSuccess()})).catch((function(e){if(e)return t.onSubscriptionError(e,"Fail Lifetime Purchase")}))}},{key:"onClickStripeLifetimeButton",value:function(){var e=this;return this.playSound("menu-button-click"),me.get("anonymous")?(null!=i.tracker&&i.tracker.trackEvent("Started Signup from buy lifetime",{service:"stripe"}),this.openModalView(new w({startOnPath:"individual",subModalContinue:"lifetime"}))):this.startStripeSubscription(this.lifetimeProduct).catch((function(t){return console.error("stripe lifetime handle failed",t),e.oldStripeLifetimeHandle()}
2))}},{key:"oldStripeLifetimeHandle",value:function(){var e=this;null!=i.tracker&&i.tracker.trackEvent("Start Lifetime Purchase",{service:"stripe"});var t=((12*this.basicProduct.get("amount")-this.lifetimeProduct.get("amount"))/100).toFixed(2),n=this.stripeOptions({description:o.i18n.t("subscribe.lifetime").replace("{{discount}}",t),amount:this.lifetimeProduct.adjustedPrice()});return this.purchasedAmount=n.amount,v.makeNewInstance().openAsync(n).then((function(t){var n=t.token;return e.state="purchasing",e.render(),Promise.resolve(e.lifetimeProduct.purchase(n,e.makePurchaseOps()))})).then((function(t){return null!=i.tracker&&i.tracker.trackEvent("Finish Lifetime Purchase",{value:e.purchasedAmount,service:"stripe"}),null!=(null!=t?t.stripe:void 0)&&me.set("stripe",null!=t?t.stripe:void 0),e.onSubscriptionSuccess()})).catch((function(t){if(t)return e.onSubscriptionError(t,"Fail Lifetime Purchase")}))}},{key:"onSubscriptionSuccess",value:function(){var e=this;return this.playSound("victory"),me.fetch().then((function(){return Backbone.Mediator.publish("subscribe-modal:subscribed",{}),e.hide()}))}},{key:"onSubscriptionError",value:function(e,t){var n,r=null,a=null,s="";return e instanceof Error?(a=e,console.error(a.stack),s=a.message):s="".concat((r=e).status,": ").concat((null!=r.responseJSON?r.responseJSON.message:void 0)||r.responseText),null!=i.tracker&&i.tracker.trackEvent(t,{status:s,value:this.purchasedAmount}),402===(null!=r?r.status:void 0)?this.state="declined":(null!=(n=null!=r?r.responseJSON:void 0)?function(e){return e.i18n}(n):void 0)?(this.state="error",this.stateMessage=o.i18n.t(r.responseJSON.i18n)):(this.state="unknown_error",this.stateMessage=o.i18n.t("loading_error.unknown")),this.render()}},{key:"onHidden",value:function(){return d(f(t.prototype),"onHidden",this).call(this),this.playSound("game-menu-close")}}],a=[{key:"initClass",value:function(){this.prototype.id="subscribe-modal",this.prototype.template=y,this.prototype.plain=!0,this.prototype.closesOnClickOutside=!1,this.prototype.planID="basic",this.prototype.i18nData=b.premiumContent,this.prototype.events={"click #close-modal":"hide","click .purchase-button":"onClickPurchaseButton","click .stripe-lifetime-button":"onClickStripeLifetimeButton","click .stripe-annual-button":"onClickAnnualPurchaseButton","click .back-to-products":"onClickBackToProducts"}}}],r&&s(n.prototype,r),a&&s(n,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,a}(g)).initClass(),r)},244556:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}var o=a(n(976911)),i=a(n(196363));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}function u(e,t,n){return t=f(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],f(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},d.apply(null,arguments)}function p(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}
2function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}var m={commit:_.noop,dispatch:_.noop};e.exports=function(e){function t(e,r){var o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=u(this,t,[r]);var i=r.baseTemplate||"base-flat-vue";o.id="vue-component-view";try{o.template=n(17860)("./"+i)}catch(e){console.error("Error in importing the base template.",e)}return o.VueComponent=e,o.propsData=r.propsData,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(t,e),r=t,(o=[{key:"buildVueComponent",value:function(){return new this.VueComponent({el:this.$el.find("#site-content-area")[0],propsData:this.propsData,store:i.default})}},{key:"afterRender",value:function(){this.vueComponent?this.$el.find("#site-content-area").replaceWith(this.vueComponent.$el):(this.vueComponent=this.buildVueComponent(),window.rootComponent=this.vueComponent),d(f(t.prototype),"afterRender",this).call(this)}},{key:"destroy",value:function(){this.vueComponent.$destroy(),this.vueComponent.$store=m,d(f(t.prototype),"destroy",this).call(this)}}])&&s(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(o.default)},451210:(e,t,n)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var r,o=(r=n(778009))&&r.__esModule?r:{default:r};t.Z={components:{"meta-manager":o.default},computed:{currentQueryParams:function(){return this.$router.currentRoute.query}}}},955988:(e,t,n)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var r,o=(r=n(4306))&&r.__esModule?r:{default:r};t.Z={components:{BaseModalContainer:o.default}}},441910:(e,t,n)=>{"use strict";var r=n(619755);Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var o=a(n(375154)),i=a(n(937031));function a(e){return e&&e.__esModule?e:{default:e}}t.Z=Vue.extend({components:{ModalDivider:o.default,Modal:i.default},data:function(){return{}},methods:{showError:function(e){console.error(e),noty({text:"Unable to load chat (may be due to browser privacy features)",layout:"topCenter",type:"error",timeout:5e3})},programaticallyClose:function(){r("#coco-modal-header-close-button").click()},clickedSalesChat:function(){try{zE("messenger","open"),this.programaticallyClose(),window.tracker.trackEvent("Sales chat opened")}catch(e){this.showError(e)}},clickedSupportChat:function(){try{zE("messenger","open"),this.programaticallyClose(),window.tracker.trackEvent("Support chat opened")}catch(e){this.showError(e)}}}})},490875:(e,t,n)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var r=p(n(132816)),o=p(n(763715)),i=p(n(261844)),a=p(n(113203)),s=p(n(339952)),c=p(n(845911)),u=p(n(188212)),l=n(299498),d=n(64241);function p(e){return e&&e.__esModule?e:{default:e}}t.Z=Vue.extend({components:{FacebookIcon:r.default,TwitterIcon:o.default,InstagramIcon:i.default,LinkedInIcon:a.default,YouTubeIcon:s.default,TikTokIcon:c.default,DiscordIcon:u.default},data:function(){return{socialLinks:[{href:"https://www.facebook.com/codecombat",component:"facebook-icon",alt:"Facebook"},{href:"https://twitter.com/CodeCombat",component:"twitter-icon",alt:"Twitter"},{href:"https://www.instagram.com/codecombat/",component:"instagram-icon",alt:"Instagram"},{href:"https://www.linkedin.com/company/codecombat",component:"linked-in-icon",alt:"LinkedIn"},{href:"https://www.youtube.com/@CodeCombat1",component:"you-tube-icon",alt:"YouTube"},{href:"https://www.tiktok.com/@codecombat_official",component:"tik-tok-icon",alt:"TikTok"},{href:"https://discord.gg/vkW2dCYaxe",component:"discord-icon",alt:"Discord"}]}},computed:{isCodeCombat:function(){return l.isCodeCombat},isOzaria:function(){return l.isOzaria},darkMode:function(){return/^\/(roblox|hackstack|league|play|ai\/play|ai\/latent|ai\/starlab|ai\/mini-game)/.test(document.location.pathname)}},created:function(){this.me=me,this.document=window.document,this.COCO_CHINA_CONST=d.COCO_CHINA_CONST}})},258237:(e,t,n)=>{"use strict";t.Z=void 0;var r,o=n(299498),i=n(420629),a=(r=n(26243))&&r.__esModule?r:{default:r},s=n(421237);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==c(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=Vue.extend({components:{FinalFooter:a.default},data:function(){return{}},computed:l(l({},(0,i.mapGetters)({preferredLocale:"me/preferredLocale"})),{},{isCodeCombat:function(){return o.isCodeCombat},isOzaria:function(){return o.isOzaria},isChinaHome:function(){return features.chinaHome},cocoBaseURL:function(){return(0,o.cocoBaseURL)()},ozBaseURL:function(){return(0,o.ozBaseURL)()},hideFooter:function(){return(0,o.getQueryVariable)("landing",!1)||me.hideFooter()},footerUrls:function(){var e=[{title:"nav.company",condition:!0,lists:[{url:this.cocoPath("/about"),title:"nav.about",attrs:{"data-event-action":"Click: Footer About"}},{url:"https://codecombat.zendesk.com/hc/en-us",title:"nav.help_center",attrs:{target:"_blank","data-event-action":"Click: Footer Help Center"}},{title:"general.contact_us",attrs:{class:"contact-modal",tabindex:-1}},{url:this.cocoPath("/about#careers"),title:"nav.careers"},{url:"https://blog.codecombat.com/",title:"nav.blog"},{url:this.cocoPath("/podcast"),title:"nav.podcast_simple"}]},{title:"nav.curriculum",condition:!0,lists:[s.items.COCO_HOME,s.items.COCO_CLASSROOM,s.items.COCO_JUNIOR,s.items.OZ_CLASSROOM,s.items.AP_CSP,s.items.AI_LEAGUE,s.items.ROBLOX,s.items.AI_HACKSTACK,s.items.AI_JUNIOR]},{title:"nav.resources",condition:!0,lists:[s.items.LIVE_ONLINE_CLASSES,s.items.LIBRARY_SOLUTIONS,s.items.PARTNER_SOLUTIONS,s.items.TEACHING_SOLUTIONS,s.items.STANDARDS,s.items.EFFICACY,s.items.SUCCESS,s.items.PD,s.items.HOC,s.items.GRANTS,l(l({},s.items.ACCESSIBILITY),{},{filter:!me.get("country")||"united-states"===me.get("country")}),s.items.PRIVACY]}],t=[{title:"",condition:me.isStudent()||this.isChinaHome,lists:[]},{title:"nav.general",condition:!this.isChinaHome,lists:[{url:this.cocoPath("/events"),title:"nav.events"},{url:this.cocoPath("/contact-cn"),title:"nav.contact",hide:me.isStudent()},{url:this.cocoPath("/CoCoStar"),title:"nav.star"},{url:this.cocoPath("/contribute"),title:"nav.contribute"}]},{title:"nav.educators",condition:!me.isStudent()&&!this.isChinaHome,lists:[{url:"/teachers/resources/faq-zh-HANS",title:"teacher.educator_faq"},{url:"/teachers/resources",title:"nav.resource_hub"},{url:"/teachers/resources",extra:"课ç¨ä½ç³»"},{url:"teachers/classes",title:"nav.my_classrooms"}]},{title:"nav.related_urls",condition:!0,lists:[{url:"https://xuetang.koudashijie.com",extra:"æ£åå¦å "},{url:"https://aojiarui.com",extra:"奥佳ç¿"},{url:"https://aishiqingsai.org.cn",extra:"AIä¸éèµ"},{url:"https://koudashijie.com",extra:"æ£åä¸ç",hide:!this.isChinaHome},{url:"https://codecombat.cn",extra:"CodeCombat 个人ç",hide:this.isChinaHome}]}];return window.me.showChinaResourceInfo()?t:e},darkMode:function(){return/^\/(roblox|hackstack|league|play|ai\/play|ai\/latent|ai\/starlab|ai\/mini-game)/.test(document.location.pathname)}}),created:function(){this.me=me,this.document=window.document},methods:{footerEvent:function(e){if(e&&e.target&&"A"===e.target.tagName&&window.tracker){var t=e.target,n="Link: ".concat(t.getAttribute("href")||t.getAttribute("data-event-action")),r={category:"Footer",user:me.get("role")||me.isAnonymous()&&"anonymous"||"homeuser"};window.tracker.trackEvent(n,r)}},checkLocation:function(e){var t=document.location.href.replace(document.location.hash,"").replace(document.location.search,"");return e===new URL(t).pathname},cocoPath:function(e){return"".concat(this.cocoBaseURL).concat(e)},ozPath:function(e){return"".concat(this.ozBaseURL).concat(e)}}})},185868:(e,t,n)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var r=n(299498);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?i(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z={props:{currentQueryParams:{type:Object,default:function(){return{}}}},metaInfo:function(){var e,t=[],n=Object.keys(this.currentQueryParams||{}).filter((function(e){return e.startsWith("utm_")}));if(n.length>0){var o=new URL(window.location.href),i=new URLSearchParams(o.search);n.forEach((function(e){return i.delete(e)})),o.search=i.toString(),t.push({vmid:"rel-canonical",rel:"canonical",href:o.toString()})}return e=me.get("aceConfig")&&me.get("aceConfig").screenReaderMode?r.isOzaria?"common.ozaria":"new_home.codecombat":"common.default_title_"+(r.isOzaria?"ozar":"coco"),a(a({title:this.$t(e)},r.isOzaria?{}:{titleTemplate:"%s | CodeCombat"}),{},{meta:[{vmid:"meta-description",name:"description",content:this.$t("common.default_meta_description_"+(r.isOzaria?"ozar":"coco"))},{vmid:"viewport",name:"viewport",content:"width=device-width,initial-scale=1.0,viewport-fit=cover"}],link:t})},render:function(){return this.$slots.default}}},335978:(e,t,n)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var r,o=(r=n(269471))&&r.__esModule?r:{default:r};t.Z=Vue.extend({components:{BaseModal:o.default},props:{title:{type:String,default:""},backboneDismissModal:{type:Boolean,default:!1}},computed:{backboneClose:function(){return this.backboneDismissModal?"modal":void 0},vueClose:function(){return this.backboneDismissModal?null:"click"}}})},427738:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z=Vue.extend({props:{withOrText:{type:Boolean,default:!0}}})},600493:(e,t,n)=>{"use strict";var r=n(665420);Object.defineProperty(t,"X$",{value:!0}),t.ev=t.ZP=void 0;var o=n(299498),i=l(n(707613)),a=l(n(656988)),s=n(420629),c=l(n(914782)),u=l(n(867360));function l(e){return e&&e.__esModule?e:{default:e}}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=d(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){return"".concat((0,o.cocoBaseURL)()).concat(e)},v=t.ev={CREATE_FREE_ACCOUNT:{class:"signup-button",title:"nav.create_free_account"},SCHOOL_AND_DISTRICT:{url:y("/schools"),title:"nav.school_district_solutions"}
2,TEACHER_TOOLKIT_PREVIEW:{url:"/teachers/resources",title:"nav.teacher_toolkit_preview"},TEACHER_TOOLKIT:{url:"/teachers/resources",title:"nav.teacher_toolkit"},STANDARDS:{url:y("/standards"),title:"teacher_dashboard.standards_alignment"},EFFICACY:{url:("/efficacy","".concat((0,o.ozBaseURL)()).concat("/efficacy")),title:"nav.efficacy_studies"},SUCCESS:{url:"/impact",title:"nav.success_stories"},PD:{url:"/pd",title:"teacher_dashboard.pd"},HOC:{url:y("/teachers/hour-of-code"),title:"nav.hoc"},GRANTS:{url:y("/grants"),title:"nav.grants_funding_resources"},ACCESSIBILITY:{url:y("/acr"),title:"nav.accessibility"},DEMO:{url:"/teachers/quote",title:"nav.request_quote_demo"},COCO_CLASSROOM:{url:y("/schools"),title:"new_home.codecombat"},COCO_JUNIOR:{url:(0,o.getJuniorUrl)(),title:"nav.coco_junior"},COCO_HOME:{url:y("/play"),title:"nav.codecombat_home"},OZ_CLASSROOM:{url:"/teachers/guide/ozaria",title:"new_home.ozaria"},AP_CSP:{url:y("/apcsp"),title:"nav.ap_csp"},AI_LEAGUE:{url:y("/league"),title:"nav.ai_league_esports"},ROBLOX:{url:y("/roblox"),title:"nav.codecombat_worlds_on_roblox"},AI_HACKSTACK:{url:y("/ai/play"),title:"nav.ai_hackstack"},AI_JUNIOR:{url:"https://docs.google.com/forms/d/e/1FAIpQLSfcWo6JVeFP30OslksUwE1Z-XyWFIKW3h81v08aYU1-vbhSUA/viewform",attrs:{target:"_blank"},title:"nav.ai_junior_beta"},LIVE_ONLINE_CLASSES:{url:y("/parents"),title:"nav.live_online_classes"},PREMIUM:{url:y("/premium"),title:"nav.premium_self_paced"},LIBRARY_SOLUTIONS:{url:y("/libraries"),title:"nav.library_solutions"},PARTNER_SOLUTIONS:{url:y("/partners"),title:"nav.partner_solutions"},TEACHING_SOLUTIONS:{url:y("/schools"),title:"nav.teaching_solutions"},PRIVACY:{url:"/privacy",title:"nav.privacy"}};t.ZP=Vue.extend({components:{AnnouncementModal:i.default,AnnouncementNav:a.default,"cta-button":c.default,caret:u.default},props:{float:{type:Boolean,default:!1}},data:function(){return{showContactModal:!1}},computed:m(m({},(0,s.mapGetters)("announcements",["announcements","unread","announcementInterval","announcementModalOpen","announcementDisplay"])),{},{languageCode:function(){return me.get("preferredLanguage")},isChinaOldBrowser:function(){return(0,o.isChinaOldBrowser)()},isCodeCombat:function(){return o.isCodeCombat},isOzaria:function(){return o.isOzaria},cocoBaseURL:function(){return(0,o.cocoBaseURL)()},ozBaseURL:function(){return(0,o.ozBaseURL)()},hideNav:function(){return(0,o.getQueryVariable)("landing",!1)},useDarkMode:function(){return/^\/(roblox|hackstack|league|play|ai\/play|ai\/latent|ai\/starlab|ai\/mini-game)/.test(document.location.pathname)},homeLink:function(){return me.isCodeNinja()&&me.isStudent()?"/students":me.isCodeNinja()&&me.isAPIClient()?"/api-dashboard":me.isCodeNinja()&&me.isTeacher()?"/teachers/classes":me.isTarena()?"http://kidtts.tmooc.cn/ttsPage/login.html":this.hideNav?"#":"/home"},isWideScreen:function(){return window.innerWidth>=991},partnerLogo:function(){if(me.useTarenaLogo())return{url:"/images/pages/base/logo-tarena.png",className:"tarena-logo",alt:"Tarena logo"};if(this.serverConfig.codeNinjas||me.isCodeNinja())return{url:"/images/pages/base/code-ninjas-logo-right.png",className:"code-ninjas-logo",alt:"Code Ninjas logo"};if(me.isTecmilenio())return{url:"/images/pages/payment/tecmilenio-logo-2.png",className:"tecmilenio-logo",alt:"Tecmilenio logo"};if(me.isMtoCodingOlympiad())return{url:"/images/pages/partners/coding-olympiad-logo-1.png",className:"mto-logo",alt:"MTO Coding Olympiad logo"};
2if(me.isMto()){var e=me.isMtoStem()?"STEM":"NEO";return{url:"/images/pages/partners/".concat(e,"_logo.webp"),className:"mto-logo",alt:"MTO ".concat(e," Logo")}}return null}}),created:function(){this.me=me,this.document=window.document,this.serverConfig=window.serverConfig,this.serverSession=window.serverSession,this.CODECOMBAT=o.CODECOMBAT,this.OZARIA=o.OZARIA},mounted:function(){var e=this;setTimeout((function(){e.checkAnnouncements("fromNav"),e.announcementInterval||e.startInterval("fromNav")}),2e3)},beforeUnmounted:function(){this.announcementInterval&&clearInterval(this.announcementInterval)},methods:m(m({},(0,s.mapActions)("announcements",["closeAnnouncementModal","checkAnnouncements","startInterval"])),{},{navEvent:function(e){if(e&&e.target&&"A"===e.target.tagName&&window.tracker){var t=e.target,n="Link: ".concat(t.getAttribute("href")||t.getAttribute("data-event-action")),r={category:"Nav",user:me.get("role")||me.isAnonymous()&&"anonymous"||"homeuser"};window.tracker.trackEvent(n,r)}},checkLocation:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!0;return t===o.CODECOMBAT?n=this.isCodeCombat:t===o.OZARIA&&(n=this.isOzaria),n&&document.location.href.search(e)>=0},cocoPath:function(e){return"".concat(this.cocoBaseURL).concat(e)},ozPath:function(e){return"".concat(this.ozBaseURL).concat(e)},readAnnouncement:function(){return r.router.navigate("/announcements",{trigger:!0})},manageBillingABTest:function(){var e="/payments/manage-billing";"beta"===me.getOrStartManageBillingExperimentValue()&&(e+="-beta"),window.open(e,"_blank")},getNavbarData:function(){var e={educators:{url:o.isCodeCombat?"/schools":"/",title:"nav.educators",children:[v.CREATE_FREE_ACCOUNT,v.SCHOOL_AND_DISTRICT,v.TEACHER_TOOLKIT_PREVIEW,v.STANDARDS,v.EFFICACY,v.SUCCESS,v.PD,v.HOC,v.GRANTS,v.DEMO]},parents:{url:this.cocoPath("/parents"),title:"nav.parent"},play:{url:this.cocoPath("/play"),title:"nav.play2",children:[m(m({},v.COCO_HOME),{},{description:"nav.coco_home_description"}),m(m({},v.COCO_CLASSROOM),{},{description:"nav.coco_classroom_description"}),m(m({},v.COCO_JUNIOR),{},{description:"nav.coco_junior_description"}),m(m({},v.OZ_CLASSROOM),{},{description:"nav.oz_classroom_description"}),m(m({},v.AP_CSP),{},{description:"nav.ap_csp_description"}),m(m({},v.AI_LEAGUE),{},{description:"nav.ai_league_description"}),m(m({},v.ROBLOX),{},{description:"nav.roblox_description"}),m(m({},v.AI_HACKSTACK),{},{description:"nav.ai_hackstack_description"}),m(m({},v.AI_JUNIOR),{},{description:"nav.ai_junior_description"})]}},t={url:this.cocoPath("/teachers/classes"),title:"nav.codecombat_teacher_dashboard"},n={url:this.ozPath("/teachers/classes"),title:"nav.ozaria_teacher_dashboard"},r={url:this.cocoPath("/school-administrator"),hide:!me.isSchoolAdmin(),title:"nav.codecombat_admin_dashboard"},i={url:this.ozPath("/school-administrator"),hide:!me.isSchoolAdmin(),title:"nav.ozaria_admin_dashboard"},a={"my-dashboards":{title:"nav.my_dashborads",children:p(o.isCodeCombat?[t,n,r,i]:[n,t,i,r])},resources:{title:"nav.resources",children:[v.TEACHER_TOOLKIT,v.SCHOOL_AND_DISTRICT,v.STANDARDS,m(m({},v.EFFICACY),{},{filter:o.isOzaria}),m(m({},v.SUCCESS),{},{filter:o.isCodeCombat}),v.PD,v.HOC,v.GRANTS,v.DEMO]},curriculum:{title:"nav.curriculum",children:[].concat(p(o.isCodeCombat?[v.COCO_CLASSROOM,v.COCO_JUNIOR,v.OZ_CLASSROOM]:[v.OZ_CLASSROOM,v.COCO_CLASSROOM,v.COCO_JUNIOR]),[v.AP_CSP,v.AI_LEAGUE,v.ROBLOX,v.AI_HACKSTACK,v.AI_JUNIOR])}},s=m(m({},v.COCO_CLASSROOM),{},{url:this.cocoPath("/students")}),c=m(m({},v.OZ_CLASSROOM),{},{url:this.ozPath("/students")}),u={"my-courses":{title:"nav.my_courses",children:[].concat(p(o.isCodeCombat?[s,c]:[c,s]),[v.AI_LEAGUE,v.ROBLOX])}},l={dashboard:{title:"nav.dashboard",url:me.hasNoVerifiedChild()?this.cocoPath("/parents/add-another-child"):this.cocoPath("/parents/dashboard")},"learning-options":{title:"nav.learning_options",children:[v.LIVE_ONLINE_CLASSES,v.PREMIUM]},curriculum:{title:"nav.curriculum",children:[v.COCO_HOME,v.COCO_JUNIOR,v.AI_LEAGUE,v.ROBLOX,v.AI_HACKSTACK,v.AI_JUNIOR]}},d={"learning-options":{title:"nav.learning_options",children:[v.LIVE_ONLINE_CLASSES,v.PREMIUM]},play:{title:"nav.play2",children:[v.COCO_HOME,v.COCO_JUNIOR,v.AI_LEAGUE,v.ROBLOX,v.AI_HACKSTACK,v.AI_JUNIOR]}};return me.isAnonymous()?e:me.isTeacher()?a:me.isStudent()?u:me.isParentHome()?l:d}})})},27260:(e,t,n)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var r=i(n(276149)),o=i(n(533740));
2function i(e){return e&&e.__esModule?e:{default:e}}t.Z={name:"CTAButton",components:{MixedColorLabel:r.default},mixins:[o.default],props:{href:{type:String,required:!1,default:null},target:{type:String,required:!1,default:"_blank"},rel:{type:String,required:!1,default:null},description:{type:String,required:!1,default:null},size:{type:String,required:!1,validator:function(e){return["small","medium"].includes(e)},default:"medium"},type:{type:String,required:!1,default:"normal",validator:function(e){return["normal","no-background"].includes(e)}},buttonClass:{type:String,required:!1,default:null},startOnPath:{type:String,required:!1,default:null}}}},7121:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z={name:"CaretDown",props:{color:{type:String,default:"black"}}}},628972:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z={name:"MixedColorLabel",props:{text:{type:String,required:!1,default:""},link:{type:String,required:!1,default:null},target:{type:String,required:!1,default:"_blank"},inheritDefaultColor:{type:Boolean,required:!1,default:!1}},computed:{parsedWords:function(){var e=this;return this.text?this.text.split(/__|\*\*/).map((function(t,n){var r=t.match(/\[(.*?)\]/),o=r?r[1]:null;return{text:o?t.replace(r[0],""):t,isPurple:n%2!=0,link:o||e.link}})):[]}}}},988586:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z={name:"DiscordIcon"}},827993:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z={name:"FacebookIcon"}},221855:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z={name:"InstagramIcon"}},80697:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z={name:"LinkedInIcon"}},672777:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z={name:"TikTokIcon"}},471747:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z={name:"TwitterIcon"}},218694:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z={name:"YouTubeIcon"}},801868:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z=Vue.extend({props:{meta:{type:Object,default:function(){return{}}}},metaInfo:function(){return this.meta}})},916285:(e,t,n)=>{"use strict";t.Z=void 0;var r=n(250636),o=a(n(778009)),i=a(n(581982));function a(e){return e&&e.__esModule?e:{default:e}}t.Z=Vue.extend({components:{"meta-manager":o.default,"meta-info-injector":i.default},props:{baseMeta:{type:Object,default:function(){return{}}},legacyTitle:{type:String,default:function(){return""}}},data:function(){var e=new URL(window.location.href),t={};new URLSearchParams(e.search).forEach((function(e,n){t[n]=e}));var n=(0,r.merge)({},this.baseMeta);return this.legacyTitle.trim().length>0&&(n.title=this.legacyTitle.trim()),{meta:n,currentQueryParams:t}},methods:{setMeta:function(e){this.meta=(0,r.merge)({},this.meta,e)}}})},806025:(e,t,n)=>{"use strict";var r=n(665420);Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var o,i=(o=n(299498))&&o.__esModule?o:{default:o},a=n(420629);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z={name:"AnnouncementNav",computed:u({},(0,a.mapGetters)("announcements",["announcements","unread","moreAnnouncements"])),mounted:function(){this.getAnnouncements()},methods:u(u({},(0,a.mapActions)("announcements",["getAnnouncements"])),{},{naming:function(e){return i.default.i18n(e,"name")},read:function(e){r.router.navigate("/announcements?id=".concat(e),{trigger:!0})},more:function(){r.router.navigate("/announcements?skip=".concat(this.announcements.length),{trigger:!0})}})}},876275:(e,t,n)=>{"use strict";var r=n(619755);Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;
2var o=n(420629),i=c(n(937031)),a=c(n(299498)),s=c(n(827856));function c(e){return e&&e.__esModule?e:{default:e}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=Vue.extend({name:"AnnouncementModal",components:{Modal:i.default},props:["announcement"],computed:d(d({},(0,o.mapGetters)("announcements",["showMoreAnnouncementButton","announcementModalOpen","unread"])),{},{name:function(){return a.default.i18n(this.announcement,"name")},content:function(){var e=a.default.i18n(this.announcement,"content");return s.default.sanitize(window.marked(e||""))}}),watch:{announcementModalOpen:function(e){r("#announcement-modal-base-flat").modal(e?"show":"hide")}}})},418851:(e,t,n)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var r,o=(r=n(58591))&&r.__esModule?r:{default:r};t.Z={components:{BaseModalContainer:o.default}}},213268:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z={props:{fade:{type:Boolean,default:!0}}}},974593:(e,t,n)=>{"use strict";var r=n(619755);Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var o=a(n(801723)),i=a(n(647444));function a(e){return e&&e.__esModule?e:{default:e}}t.Z=Vue.extend({components:{ModalDivider:o.default,Modal:i.default},data:function(){return{}},methods:{programaticallyClose:function(){r("#ozaria-modal-header-close-button").click()},showError:function(e){console.error(e),noty({text:"Unable to load chat (may be due to browser privacy features)",layout:"topCenter",type:"error",timeout:5e3})},clickedSalesChat:function(){try{zE("messenger","open"),this.programaticallyClose(),window.tracker.trackEvent("Sales chat opened")}catch(e){this.showError(e)}},clickedSupportChat:function(){try{zE("messenger","open"),this.programaticallyClose(),window.tracker.trackEvent("Support chat opened")}catch(e){this.showError(e)}}}})},758444:(e,t,n)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0;var r,o=(r=n(45452))&&r.__esModule?r:{default:r};t.Z=Vue.extend({components:{BaseModal:o.default},props:{title:{type:String,default:""},backboneDismissModal:{type:Boolean,default:!1},modalType:{type:String,default:"oldModal"}},computed:{backboneClose:function(){return this.backboneDismissModal?"modal":void 0},vueClose:function(){return this.backboneDismissModal?null:"click"}}})},445376:(e,t)=>{"use strict";Object.defineProperty(t,"X",{value:!0}),t.Z=void 0,t.Z=Vue.extend({props:{withOrText:{type:Boolean,default:!0}}})},467311:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return t("router-view",[t("meta-manager",{attrs:{"current-query-params":e.currentQueryParams}},[e._t("default")],2)],1)},t.xk=[]},15292:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return t("base-modal-container",{staticClass:"modal"},[t("div",{staticClass:"modal-content"},[t("div",{staticClass:"modal-header"},[e._t("header")],2),e._v(" "),t("div",{staticClass:"modal-body"},[e._t("body")],2),e._v(" "),t("div",{staticClass:"modal-footer"},[e._t("footer")],2)])])},t.xk=[]},117347:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this._self._c;return e("transition",{attrs:{name:"modal"}},[e("div",{staticClass:"modal-mask"},[e("div",{staticClass:"modal-container"},[this._t("default")],2)])])},t.xk=[]},551195:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("modal",{attrs:{"backbone-dismiss-modal":!0,title:e.$t("general.contact_us")}},[t("div",{staticClass:"flex-container column"},[t("p",[e._v(e._s(e.$t("general.chat_with_us"))+" (9am-6pm ET)")]),e._v(" "),t("div",{staticClass:"flex-container"},[t("div",{staticClass:"flex-container column"},[t("button",{staticClass:"btn btn-large btn-primary btn-moon",on:{click:function(t){return t.preventDefault(),e.clickedSupportChat.apply(null,arguments)}}},[e._v("\n "+e._s(e.$t("general.support"))+"\n ")])]),e._v(" "),t("div",{staticClass:"flex-container column"},[t("button",{staticClass:"btn btn-large btn-primary btn-moon",on:{click:function(t){return t.preventDefault(),e.clickedSalesChat.apply(null,arguments)}}},[e._v("\n "+e._s(e.$t("general.sales"))+"\n ")])])]),e._v(" "),t("modal-divider"),e._v(" "),t("div",[e._v("\n "+e._s(e.$t("general.email_us"))+": "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")])])],1)])},t.xk=[]},359085:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("base-modal",{scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"teacher-modal-header"},[t("span",{staticClass:"title"},[e._v(" "+e._s(e.title)+" ")]),e._v(" "),t("img",{staticClass:"close-icon",attrs:{id:"c
2oco-modal-header-close-button",src:"/images/common/IconClose.svg","data-dismiss":e.backboneClose},on:e._d({},[e.vueClose,function(t){return e.$emit("close")}])})])]},proxy:!0},{key:"body",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)})},t.xk=[]},742036:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.withOrText?t("div",{staticClass:"divider"},[t("div",{staticClass:"divider-1"}),e._v(" "),t("div",{staticClass:"or-text"},[t("span",[e._v(" "+e._s(e.$t("general.or"))+" ")])]),e._v(" "),t("div",{staticClass:"divider-2"})]):t("div",{staticClass:"divider divider-3"})},t.xk=[]},585592:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}t.xk=t.sY=void 0,t.sY=function(){var e,t,r,o=this,i=o._self._c;return i("div",{staticClass:"cta-container",class:(e={},t=o.size,r=!0,(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e),style:"--size: ".concat(o.size,";--type: ").concat(o.type)},[i(o.href?"a":"button",{tag:"component",staticClass:"CTA",class:o.buttonClass,attrs:{"data-start-on-path":o.startOnPath,href:o.href,rel:o.rel,target:o.target},on:{click:function(e){return o.$emit("clickedCTA")}}},[i("span",{staticClass:"CTA__button"},[o._t("default")],2)]),o._v(" "),o.description?i("p",{staticClass:"description"},[i("mixed-color-label",{attrs:{text:o.description}})],1):o.$slots.description?i("p",{staticClass:"description"},[o._t("description")],2):o._e()],1)},t.xk=[]},534175:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this._self._c;return e("svg",{attrs:{width:"13",height:"7",viewBox:"0 0 13 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M6.68359 6.70801C6.51042 6.70801 6.35547 6.64193 6.21875 6.50977L0.927734 1.0957C0.86849 1.03646 0.822917 0.970378 0.791016 0.897461C0.759115 0.819987 0.743164 0.737956 0.743164 0.651367C0.743164 0.532878 0.770508 0.425781 0.825195 0.330078C0.879883 0.234375 0.952799 0.15918 1.04395 0.104492C1.13965 0.0498047 1.24674 0.0224609 1.36523 0.0224609C1.53841 0.0224609 1.68652 0.0817057 1.80957 0.200195L7.0459 5.55273H6.31445L11.5508 0.200195C11.6784 0.0817057 11.8265 0.0224609 11.9951 0.0224609C12.1136 0.0224609 12.2184 0.0498047 12.3096 0.104492C12.4053 0.15918 12.4805 0.234375 12.5352 0.330078C12.5898 0.425781 12.6172 0.532878 12.6172 0.651367C12.6172 0.819987 12.5557 0.96582 12.4326 1.08887L7.1416 6.50977C7.08236 6.57357 7.01172 6.6237 6.92969 6.66016C6.85221 6.69206 6.77018 6.70801 6.68359 6.70801Z",fill:this.color}})])},t.xk=[]},14879:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return t("span",{staticClass:"mixed-color-label"},e._l(e.parsedWords,(function(n,r){return t("span",{key:r},[n.isPurple&&n.link?t("a",{class:{inherit:e.inheritDefaultColor,"mixed-color-label__highlight":n.isPurple,"mixed-color-label__normal":!n.isPurple},attrs:{href:n.link,target:e.target},on:{click:function(t){return e.$emit("link-clicked")}}},[e._v(e._s(n.text))]):t("span",{class:{inherit:e.inheritDefaultColor,"mixed-color-label__highlight":n.isPurple,"mixed-color-label__normal":!n.isPurple}},[e._v(e._s(n.text))])])})),0)},t.xk=[]},799664:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 640 512"}},[e("path",{attrs:{d:"M524.5 69.8a1.5 1.5 0 0 0 -.8-.7A485.1 485.1 0 0 0 404.1 32a1.8 1.8 0 0 0 -1.9 .9 337.5 337.5 0 0 0 -14.9 30.6 447.8 447.8 0 0 0 -134.4 0 309.5 309.5 0 0 0 -15.1-30.6 1.9 1.9 0 0 0 -1.9-.9A483.7 483.7 0 0 0 116.1 69.1a1.7 1.7 0 0 0 -.8 .7C39.1 183.7 18.2 294.7 28.4 404.4a2 2 0 0 0 .8 1.4A487.7 487.7 0 0 0 176 479.9a1.9 1.9 0 0 0 2.1-.7A348.2 348.2 0 0 0 208.1 430.4a1.9 1.9 0 0 0 -1-2.6 321.2 321.2 0 0 1 -45.9-21.9 1.9 1.9 0 0 1 -.2-3.1c3.1-2.3 6.2-4.7 9.1-7.1a1.8 1.8 0 0 1 1.9-.3c96.2 43.9 200.4 43.9 295.5 0a1.8 1.8 0 0 1 1.9 .2c2.9 2.4 6 4.9 9.1 7.2a1.9 1.9 0 0 1 -.2 3.1 301.4 301.4 0 0 1 -45.9 21.8 1.9 1.9 0 0 0 -1 2.6 391.1 391.1 0 0 0 30 48.8 1.9 1.9 0 0 0 2.1 .7A486 486 0 0 0 610.7 405.7a1.9 1.9 0 0 0 .8-1.4C623.7 277.6 590.9 167.5 524.5 69.8zM222.5 337.6c-29 0-52.8-26.6-52.8-59.2S193.1 219.1 222.5 219.1c29.7 0 53.3 26.8 52.8 59.2C275.3 311 251.9 337.6 222.5 337.6zm195.4 0c-29 0-52.8-26.6-52.8-59.2S388.4 219.1 417.9 219.1c29.7 0 53.3 26.8 52.8 59.2C470.7 311 447.5 337.6 417.9 337.6z"}})])},t.xk=[]},990026:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 320 512"}},[e("path",{attrs:{d:"M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z"}})])},t.xk=[]},716625:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[e("path",{attrs:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"}})])},t.xk=[]},74937:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[e("path",{attrs:{d:"M100.3 448H7.4V148.9h92.9zM53.8 108.1C24.1 108.1 0 83.5 0 53.8a53.8 53.8 0 0 1 107.6 0c0 29.7-24.1 54.3-53.8 54.3zM447.9 448h-92.7V302.4c0-34.7-.7-79.2-48.3-79.2-48.3 0-55.7 37.7-55.7 76.7V448h-92.8V148.9h89.1v40.8h1.3c12.4-23.5 42.7-48.3 87.9-48.3 94 0 111.3 61.9 111.3 142.3V448z"}})])},t.xk=[]},40999:(e,t)=>
2{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512"}},[e("path",{attrs:{d:"M448 209.9a210.1 210.1 0 0 1 -122.8-39.3V349.4A162.6 162.6 0 1 1 185 188.3V278.2a74.6 74.6 0 1 0 52.2 71.2V0l88 0a121.2 121.2 0 0 0 1.9 22.2h0A122.2 122.2 0 0 0 381 102.4a121.4 121.4 0 0 0 67 20.1z"}})])},t.xk=[]},402448:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"}},[e("path",{attrs:{d:"M459.4 151.7c.3 4.5 .3 9.1 .3 13.6 0 138.7-105.6 298.6-298.6 298.6-59.5 0-114.7-17.2-161.1-47.1 8.4 1 16.6 1.3 25.3 1.3 49.1 0 94.2-16.6 130.3-44.8-46.1-1-84.8-31.2-98.1-72.8 6.5 1 13 1.6 19.8 1.6 9.4 0 18.8-1.3 27.6-3.6-48.1-9.7-84.1-52-84.1-103v-1.3c14 7.8 30.2 12.7 47.4 13.3-28.3-18.8-46.8-51-46.8-87.4 0-19.5 5.2-37.4 14.3-53 51.7 63.7 129.3 105.3 216.4 109.8-1.6-7.8-2.6-15.9-2.6-24 0-57.8 46.8-104.9 104.9-104.9 30.2 0 57.5 12.7 76.7 33.1 23.7-4.5 46.5-13.3 66.6-25.3-7.8 24.4-24.4 44.8-46.1 57.8 21.1-2.3 41.6-8.1 60.4-16.2-14.3 20.8-32.2 39.3-52.6 54.3z"}})])},t.xk=[]},636369:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this._self._c;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 576 512"}},[e("path",{attrs:{d:"M549.7 124.1c-6.3-23.7-24.8-42.3-48.3-48.6C458.8 64 288 64 288 64S117.2 64 74.6 75.5c-23.5 6.3-42 24.9-48.3 48.6-11.4 42.9-11.4 132.3-11.4 132.3s0 89.4 11.4 132.3c6.3 23.7 24.8 41.5 48.3 47.8C117.2 448 288 448 288 448s170.8 0 213.4-11.5c23.5-6.3 42-24.2 48.3-47.8 11.4-42.9 11.4-132.3 11.4-132.3s0-89.4-11.4-132.3zm-317.5 213.5V175.2l142.7 81.2-142.7 81.2z"}})])},t.xk=[]},521122:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this._self._c;return this._self._setupProxy,e("span")},t.xk=[]},62595:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("meta-manager",{attrs:{"current-query-params":e.currentQueryParams}},[t("meta-info-injector",{attrs:{meta:e.meta}})],1)},t.xk=[]},744512:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return t("ul",{staticClass:"dropdown-menu announcement-menu"},[e._l(e.announcements,(function(n){return t("li",{key:n._id,staticClass:"title",class:{read:n.read},on:{click:function(t){return e.read(n._id)}}},[e._v("\n "+e._s(e.naming(n))+"\n ")])})),e._v(" "),e.moreAnnouncements?[t("li",{staticClass:"split"}),e._v(" "),t("li",{staticClass:"more",on:{click:e.more}},[e._v("\n view more\n ")])]:e._e()],2)},t.xk=[]},364408:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return t("base-modal-container",{staticClass:"ozaria-modal",attrs:{role:"dialog",tabindex:"0"}},[e._t("close-icon"),e._v(" "),t("div",{staticClass:"ozaria-modal-content"},[t("div",{staticClass:"ozaria-modal-header"},[e._t("header")],2),e._v(" "),t("div",{staticClass:"ozaria-modal-body"},[e._t("body")],2),e._v(" "),t("div",{staticClass:"ozaria-modal-footer"},[e._t("footer")],2)])],2)},t.xk=[]},894711:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"modal"}},[t("div",{class:"".concat(e.fade?"modal-mask-fade":"modal-mask")},[t("div",{staticClass:"modal-container"},[e._t("default")],2)])])},t.xk=[]},630168:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("modal",{attrs:{"backbone-dismiss-modal":!0,title:e.$t("general.contact_us")}},[t("div",{staticClass:"flex-container column"},[t("p",[e._v(e._s(e.$t("general.chat_with_us"))+" (9am-6pm ET)")]),e._v(" "),t("div",{staticClass:"flex-container"},[t("div",{staticClass:"flex-container column"},[t("button",{staticClass:"btn btn-large btn-primary btn-moon",on:{click:function(t){return t.preventDefault(),e.clickedSupportChat.apply(null,arguments)}}},[e._v("\n "+e._s(e.$t("general.support"))+"\n ")])]),e._v(" "),t("div",{staticClass:"flex-container column"},[t("button",{staticClass:"btn btn-large btn-primary btn-moon",on:{click:function(t){return t.preventDefault(),e.clickedSalesChat.apply(null,arguments)}}},[e._v("\n "+e._s(e.$t("general.sales"))+"\n ")])])]),e._v(" "),t("modal-divider"),e._v(" "),t("div",[e._v("\n "+e._s(e.$t("general.email_us"))+": "),t("a",{attrs:{href:"mailto:[email protected]"}},[e._v("[email protected]")])])],1)])},t.xk=[]},876369:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("base-modal",{class:{"new-modal":"newM
2odal"===e.modalType},scopedSlots:e._u([{key:"header",fn:function(){return[t("div",{staticClass:"teacher-modal-header"},[t("span",{staticClass:"title"},[e._v(" "+e._s(e.title)+" ")]),e._v(" "),"oldModal"===e.modalType?t("img",{staticClass:"close-icon",attrs:{id:"ozaria-modal-header-close-button",src:"/images/ozaria/common/IconClose.svg","data-dismiss":e.backboneClose},on:e._d({},[e.vueClose,function(t){return e.$emit("close")}])}):t("span",{staticClass:"close-icon fake-icon",attrs:{"data-dismiss":e.backboneClose},on:e._d({},[e.vueClose,function(t){return e.$emit("close")}])},[e._v("\n x\n ")])])]},proxy:!0},{key:"body",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)})},t.xk=[]},788520:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.withOrText?t("div",{staticClass:"divider"},[t("div",{staticClass:"divider-1"}),e._v(" "),t("div",{staticClass:"or-text"},[t("span",[e._v(" "+e._s(e.$t("general.or"))+" ")])]),e._v(" "),t("div",{staticClass:"divider-2"})]):t("div",{staticClass:"divider divider-3"})},t.xk=[]},293363:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{attrs:{id:"final-footer",dir:"ltr"}},[e.isOzaria&&e.darkMode?t("img",{attrs:{src:"/images/ozaria/home/ozaria-wordmark-500px.png",alt:"Ozaria logo"}}):e.isOzaria&&!e.darkMode?t("img",{attrs:{src:"/images/ozaria/home/ozaria_logo_sun.png",alt:"Ozaria logo"}}):t("picture",[t("source",{attrs:{srcset:"/images/pages/base/logo.webp",type:"image/webp"}}),t("img",{attrs:{src:"/images/pages/base/logo.png",alt:"CodeCombat logo"}})]),t("div",{staticClass:"social-links"},e._l(e.socialLinks,(function(e){return t("a",{key:e.href,attrs:{href:e.href,alt:e.alt,target:"_blank"}},[t("div",{staticClass:"img"},[t(e.component,{tag:"component"})],1)])})),0),t("div",{staticClass:"copyright"},[e.me.showChinaResourceInfo()?t("span",{staticClass:"contact"},[e._v(e._s("åå¡åä½ï¼"+e.COCO_CHINA_CONST.CONTACT_EMAIL))]):e._e(),t("span",[e._v(e._s(e.$t("nav.copyright_prefix")))]),t("span",[e._v(e._s(" ©2024 CodeCombat Inc. "))]),t("span",[e._v(e._s(e.$t("nav.copyright_suffix")))]),e.me.showChinaResourceInfo()?[e.me.showChinaHomeVersion()?t("a",{staticClass:"small",attrs:{href:"http://beian.miit.gov.cn/"}},[e._v("京ICPå¤19012263å·-20")]):t("a",{staticClass:"small",attrs:{href:"http://beian.miit.gov.cn/"}},[e._v("京ICPå¤19012263å·")]),e.me.showChinaHomeVersion()?t("a",{staticClass:"small",attrs:{href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802038619"}},[t("img",{attrs:{id:"mps",src:"/images/pages/base/the_ministry_of_public_security_of_china.png"}}),t("span",[e._v(e._s("京å
¬ç½å®å¤ 11010802038619å·"))])]):t("a",{staticClass:"small",attrs:{href:"http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=11010802031936"}},[t("img",{attrs:{id:"mps",src:"/images/pages/base/the_ministry_of_public_security_of_china.png"}}),t("span",[e._v(e._s("京å
¬ç½å®å¤ 11010802031936å·"))])])]:e._e()],2)])},t.xk=[]},825566:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("footer",{staticClass:"small",class:{"dark-mode":e.darkMode},attrs:{id:"site-footer"},on:{click:e.footerEvent}},[e.hideFooter?e._e():t("div",{staticClass:"container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-lg-12 footer-links"},[t("div",{staticClass:"row footer-links__row"},e._l(e.footerUrls,(function(n){return n.condition&&n.lists.length?t("div",{staticClass:"col footer-links__col",class:n.lists.length?"":"shrunken-empty-column"},[t("h1",{staticClass:"text-h3"},[e._v(e._s(e.$t(n.title)))]),t("ul",{staticClass:"list-unstyled",class:n.class},e._l(n.lists,(function(n){return n.hide?e._e():t("li",[n.url?e.checkLocation(n.url)?e._e():t("a",e._b({attrs:{href:n.url}},"a",n.attrs,!1),[e._v(e._s(e.$t(n.title))),n.extra?t("span",{staticClass:"spr"},[e._v(e._s(n.extra))]):e._e()]):t("span",e._b({staticClass:"hover-link"},"span",n.attrs,!1),[e._v(e._s(e.$t(n.title))),n.extra?t("span",{staticClass:"spr"}
2,[e._v(e._s(n.extra))]):e._e()]),e.checkLocation(n.url)?t("span",{staticClass:"active"},[e._v(e._s(e.$t(n.title))),n.extra?t("span",{staticClass:"spr"},[e._v(e._s(n.extra))]):e._e()]):e._e()])})),0)]):e._e()})),0)])]),t("final-footer")],1)])},t.xk=[]},214463:(e,t)=>{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("nav",{staticClass:"navbar navbar-default text-center",class:{"dark-mode":e.useDarkMode,"floating-nav":e.float,"navbar-fixed-top":!e.float},attrs:{id:"main-nav"},on:{click:e.navEvent}},[e.float?t("div",{staticClass:"floating-nav-trigger"}):e._e(),e.announcementModalOpen?t("announcement-modal",{attrs:{announcement:e.announcementDisplay},on:{close:e.closeAnnouncementModal}}):e._e(),t("div",{staticClass:"container-fluid nav-container"},[t("div",{staticClass:"row"},[t("div",{staticClass:"col-md-12 header-container"},[e.float?e._e():t("div",{staticClass:"navbar-header"},[t("button",{staticClass:"navbar-toggle collapsed",attrs:{"data-toggle":"collapse","data-target":".navbar-collapse","aria-expanded":"false"}},[t("span",{staticClass:"sr-only"},[e._v(e._s(e.$t("nav.toggle_nav")))]),t("span",{staticClass:"icon-bar"}),t("span",{staticClass:"icon-bar"}),t("span",{staticClass:"icon-bar"})]),t("div",{staticClass:"navbar-brand"},[e.isOzaria?t("a",{attrs:{href:e.homeLink}},[e._m(0)]):t("a",{attrs:{href:e.homeLink}},[e.me.showChinaResourceInfo()?t("img",{staticClass:"logo-img powered-by",attrs:{src:"/images/pages/base/logo-cn.png",alt:"CodeCombat logo"}}):t("picture",[t("source",{staticClass:"logo-img powered-by",attrs:{srcset:"/images/pages/base/logo.webp",type:"image/webp"}}),t("img",{staticClass:"logo-img powered-by",attrs:{src:"/images/pages/base/logo.png",alt:"CodeCombat logo"}})])]),e.partnerLogo?t("a",{attrs:{href:e.homeLink}},[t("img",{class:e.partnerLogo.className,attrs:{src:e.partnerLogo.url,alt:e.partnerLogo.alt}})]):e._e()])]),e.isChinaOldBrowser&&!e.float?t("div",{staticClass:"navbar-browser-recommendation navbar-header"},[t("div",{staticClass:"nav-spacer"},[t("div",{staticClass:"navbar-nav"},[t("a",{staticClass:"text-p",attrs:{href:"https://www.google.cn/intl/zh-CN/chrome/"}},[e._v(e._s(e.$t("nav.browser_recommendation")))])])])]):e._e(),t("div",{staticClass:"collapse navbar-collapse"},[t("div",{staticClass:"nav-spacer"}),e.me.hideTopRightNav()||e.hideNav?e._e():t("ul",{staticClass:"nav navbar-nav"},[t("li"),e.me.showChinaResourceInfo()?[t("li",[t("a",{staticClass:"text-p",attrs:{href:"https://blog.koudashijie.com"}},[e._v(e._s(e.$t("nav.blog")))])]),t("li",[t("a",{staticClass:"text-p",attrs:{"data-event-action":"Header Request Quote CTA",href:"/contact-cn"}},[e._v(e._s(e.$t("new_home.request_quote")))])])]:e._e(),e._l(e.getNavbarData(),(function(n){return t("li",[n.children?t("ul",{staticClass:"nav navbar-nav"},[t("li",{staticClass:"dropdown dropdown-hover"},[t("a",{staticClass:"text-p",attrs:{href:e.isWideScreen?n.url:null,"data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[t("span",[e._v(e._s(e.$t(n.title)))]),e.useDarkMode?t("caret",{staticClass:"dropdown-caret",attrs:{color:"white"}}):t("caret",{staticClass:"dropdown-caret",attrs:{color:"black"}})],1),t("ul",{staticClass:"dropdown-menu",class:n.children.some((function(e){return e.description}))&&"text-wide"},e._l(n.children.filter((function(e){return!0!==e.hide})),(function(n){return t("li",[t("a",e._b({staticClass:"text-p",class:[n.class,n.url&&e.checkLocation(n.url)&&"text-teal"].filter(Boolean),attrs:{href:n.url}},"a",n.attrs,!1),[e._v(e._s(e.$t(n.title))),n.description?t("div",{staticClass:"text-description"},[e._v(e._s(e.$t(n.description)))]):e._e()])])})),0)])]):t("a",{staticClass:"text-p",attrs:{href:n.url}},[e._v(e._s(e.$t(n.title)))])])}))],2)]),e.float?e._e():t("div",{staticClass:"navbar-collapse collapse"},[e.me.isAnonymous()?e._e():t("ul",{staticClass:"nav navbar-nav loggedin"},[e.me.isTarena()?t("li",[t("a",{staticClass:"text-p",attrs:{id:"logout-button"}},[e._v(e._s(e.$t("login.log_out")))])]):t("li",{staticClass:"dropdown",attrs:{id:"user-account-dropdown"}},[t("a",{staticClass:"dropdown-toggle text-p",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[t("img",{staticClass:"img-circle img-circle-small m-r-1",class:{"border-navy":e.me.isTeacher()},attrs:{src:e.me.getPhotoURL()}}),e.unread?t("span",{staticClass:"unreadMessage"}
2):e._e(),t("span",[e._v(e._s(e.$t("nav.my_account"))),e.useDarkMode?t("caret",{staticClass:"dropdown-caret",attrs:{color:"white"}}):t("caret",{staticClass:"dropdown-caret",attrs:{color:"black"}})],1)]),t("ul",{staticClass:"dropdown-menu"},[t("li",{staticClass:"user-dropdown-header text-center hidden-xs hidden-sm"},[t("a",{attrs:{href:e.cocoPath("/user/".concat(e.me.getSlugOrID()))}},[t("img",{staticClass:"img-circle",class:e.me.isTeacher()?"border-navy":"",attrs:{src:e.me.getPhotoURL()}}),t("h5",[e._v(e._s(e.me.broadName()))])])]),e.isCodeCombat?t("li",[t("a",{staticClass:"account-dropdown-item",attrs:{href:e.cocoPath("/user/".concat(e.me.getSlugOrID()))}},[e._v(e._s(e.$t("nav.profile")))])]):e._e(),t("li",[t("a",{staticClass:"account-dropdown-item",attrs:{href:"/account/settings"}},[e._v(e._s(e.$t("play.settings")))])]),e.isCodeCombat&&(e.me.isAdmin()||e.me.isParentHome()||e.me.isRegisteredHomeUser())?t("li",[t("a",{staticClass:"account-dropdown-item",attrs:{id:"manage-billing",href:"#",role:"button"},on:{click:function(t){return t.preventDefault(),e.manageBillingABTest.apply(null,arguments)}}},[e._v(e._s(e.$t("account.manage_billing")))])]):e._e(),t("li",{staticClass:"dropdown dropleft dropdown-hover"},[t("a",{staticClass:"account-dropdown-item dropdown-toggle",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"},on:{click:e.readAnnouncement}},[this.announcements.length&&e.useDarkMode?t("caret",{staticClass:"rotate-left",attrs:{color:"white"}}):e._e(),this.announcements.length&&!e.useDarkMode?t("caret",{staticClass:"rotate-left",attrs:{color:"black"}}):e._e(),t("span",[e._v(e._s(e.$t("announcement.notifications")))]),e.unread?t("span",{staticClass:"unread"},[e._v(e._s(e.unread))]):e._e()],1),this.announcements.length?t("announcement-nav",{staticClass:"announcement-nav"}):e._e()],1),e.me.isAPIClient()?t("li",[t("a",{staticClass:"account-dropdown-item",attrs:{href:"/partner-dashboard",target:"_blank"}},[e._v(e._s(e.$t("nav.api_dashboard")))])]):e._e(),e.me.isAdmin()||e.me.isOnlineTeacher()||e.me.isParentAdmin()?t("li",[t("a",{staticClass:"account-dropdown-item",attrs:{href:"/admin"}},[e._v(e._s(e.$t("account_settings.admin")))])]):e._e(),e.serverSession&&e.serverSession.amActually?t("li",[t("a",{staticClass:"account-dropdown-item",attrs:{id:"nav-stop-spying-button",href:"#"}},[e._v("Stop Spying")])]):e._e(),e.me.isTeacher()?t("li",[t("a",{staticClass:"account-dropdown-item",attrs:{id:"nav-student-mode",href:"#"}},[e._v(e._s(e.$t("login.test_as_student")))])]):e.serverSession&&e.serverSession.switchingUserActualId&&e.me.isTestStudent()?t("li",[t("a",{staticClass:"account-dropdown-item",attrs:{id:"nav-stop-switching-button",href:"#"}},[e._v(e._s(e.$t("login.stop_switching")))])]):e._e(),t("li",[t("a",{staticClass:"account-dropdown-item",attrs:{id:"logout-button",href:"#"}},[e._v(e._s(e.$t("login.log_out")))])])])])]),t("div",{staticClass:"right-side-nav"},[e.me.isAnonymous()&&!e.hideNav?t("ul",{staticClass:"nav navbar-nav text-p login-buttons"},[t("li",[t("cta-button",{staticClass:"login-button",attrs:{id:"login-link","data-event-action":"Header Login CTA",size:"small",type:"no-background"}},[e._v(e._s(e.$t("signup.login")))])],1),t("li",[t("cta-button",{staticClass:"signup-button",attrs:{id:"create-account-link","data-event-action":"Header Sign Up CTA",size:"small"}},[e._v(e._s(e.$t("signup.sign_up")))])],1)]):e._e(),e._m(1),!e.me.isTeacher()||e.me.hideTopRightNav()||e.me.isCreatedByClient()?e._e():t("ul",{staticClass:"nav navbar-nav"},[t("li",[t("cta-button",{staticClass:"request-demo-button",attrs:{"data-event-action":"Header Request Demo CTA",size:"small",href:"/schools?openContactModal=true"}},[e._v(e._s(e.$t("new_home.request_quote")))])],1)])])])])])])],1)},t.xk=[function(){var e=this._self._c;return this._self._setupProxy,e("picture",[e("source",{staticClass:"logo-img oz-logo",attrs:{srcset:"/images/ozaria/home/ozaria_home_logo.webp",type:"image/webp"}}),e("img",{staticClass:"logo-img oz-logo",attrs:{src:"/images/ozaria/home/ozaria_home_logo.png",alt:"Ozaria by CodeCombat logo",title:"Ozaria","aria-label":"Home"}})])},function(){var e=this,t=e._self._c;return e._self._setupProxy,t("ul",{staticClass:"nav navbar-nav"},[t("li",{staticClass:"dropdown"},[t("a",{staticClass:"dropdown-toggle text-p",attrs:{href:"#","data-toggle":"dropdown",role:"button","aria-haspopup":"true","aria-expanded":"false"}},[t("span",{staticClass:"language-dropdown-current"},[e._v("Language")])]),t("ul",{staticClass:"dropdown-menu language-dropdown"})])])}]},464262:(e,t)=>
2{"use strict";t.xk=t.sY=void 0,t.sY=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("modal",{on:{close:function(t){return e.$emit("close")}}},[t("div",{staticClass:"modal-body"},[t("div",{staticClass:"title"},[e._v(e._s(e.name))]),t("div",{staticClass:"content",domProps:{innerHTML:e._s(e.content)}}),e.showMoreAnnouncementButton?t("a",{staticClass:"see-more btn btn-primary",attrs:{href:"/announcements"},on:{click:function(t){return e.$emit("close")}}},[e._v(e._s(e.$t("announcement.see_more",{unread:e.unread})))]):e._e()])])},t.xk=[]},808243:e=>{"use strict";e.exports={WIDTH:1366,HEIGHT:768,CINEMATIC_ASPECT_RATIO:.5622254758418741,LETTER_ANIMATE_TIME:45,LEFT_SPEAKER_CAMERA_POS:{x:-165,y:-65},RIGHT_SPEAKER_CAMERA_POS:{x:165,y:-65},HERO_THANG_ID:"5d03e18887ed53004682e340",AVATAR_THANG_ID:"5d48b61ae92cc00030a9b2db",PET_AVATAR_THANG_ID:"5d48bd7677c98f0029118e11",LEFT_LANK_KEY:"left",RIGHT_LANK_KEY:"right",HERO_PET:"HERO_PET",BACKGROUND_OBJECT:"BACKGROUND_OBJECT",BACKGROUND:"BACKGROUND",QUILL_CONFIG:{paragraphTag:"div",inlineStyles:{size:{small:"font-size: 0.8em",large:"font-size: 1.1em",huge:"font-size: 1.5em"}}
2},VOICE_OVER_VOLUME:.9,BACKGROUND_VOLUME:.15}},4460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.putCinematic=t.getCinematic=t.getAllCinematics=t.createCinematic=void 0;var r,o=(r=n(86856))&&r.__esModule?r:{default:r};t.getCinematic=function(e){if(!e)throw new Error("No slugOrId supplied");return(0,o.default)("/db/cinematic/".concat(e))},t.getAllCinematics=function(){return(0,o.default)("/db/cinematic?project=slug,name,displayName&limit=1000")},t.putCinematic=function(e){var t=e.data,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Please pass in a data property.");var r=t.id||t.slug;if(!r)throw new Error("You must pass either a slug or ObjectId");return(0,o.default)("/db/cinematic/".concat(r),_.assign({},n,{method:"PUT",json:t}))},t.createCinematic=function(e){var t=e.name,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.default)("/db/cinematic",_.assign({},n,{method:"POST",json:{name:t}}))}},188238:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.putCutscene=t.getCutscene=t.getAllCutscenes=t.createCutscene=void 0;var r,o=(r=n(86856))&&r.__esModule?r:{default:r};t.getCutscene=function(e){if(!e)throw new Error("No slugOrId supplied");return(0,o.default)("/db/cutscene/".concat(e),{data:{cacheEdge:!0}})},t.getAllCutscenes=function(){return(0,o.default)("/db/cutscene?project=slug,name&limit=1000")},t.putCutscene=function(e){var t=e.data,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Please pass in a data property.");var r=t.id||t.slug;if(!r)throw new Error("You must pass either a slug or ObjectId");return(0,o.default)("/db/cutscene/".concat(r),_.assign({},n,{method:"PUT",json:t}))},t.createCutscene=function(e){var t=e.name,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.default)("/db/cutscene",_.assign({},n,{method:"POST",json:{name:t}}))}},847429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.putSession=t.putInteractive=t.postInteractive=t.getSession=t.getInteractive=t.getAllInteractives=t.fetchInteractiveSessionForAllClassroomMembers=void 0;var r,o=(r=n(86856))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.getInteractive=function(e){if(!e)throw new Error("No slug/id supplied");return(0,o.default)("/db/interactive/".concat(e))},t.getAllInteractives=function(){return(0,o.default)("/db/interactives?limit=1000")},t.putInteractive=function(e){var t=e.data,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Please pass in a data property.");var r=t.id||t.slug;if(!r)throw new Error("You must pass either a slug or ObjectId");return(0,o.default)("/db/interactive/".concat(r),_.assign({},n,{method:"PUT",json:t}))},t.postInteractive=function(e){var t=e.name,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,o.default)("/db/interactive",_.assign({},n,{method:"POST",json:{name:t}}))},t.getSession=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No slug/id supplied");return(0,o.default)("/db/interactive/".concat(e,"/session"),{method:"GET",data:t})},t.putSession=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)throw new Error("No slug/id supplied");if(!(t.json||{}).codeLanguage)throw new Error("CodeLanguage required to post interactive submission");if(!(t.json||{}).submission)throw new Error("Need to post a submission");return(0,o.default)("/db/interactive/".concat(e,"/submission"),s({method:"POST"},t))},t.fetchInteractiveSessionForAllClassroomMembers=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=10,r=0,i=_.size(e.members||e.get("members"));t.data=t.data||{},t.data.memberLimit=n,t.remove=!1;for(var a=[];r<i;)(t=_.cloneDeep(t)).data.memberSkip=r,a.push((0,o.default)("/db/classroom/".concat(e._id||e.get("_id"),"/member-interactive-sessions"),t)),r+=n;return a}},169170:(e,t,n)=>{"use strict";
2Object.defineProperty(t,"__esModule",{value:!0}),t.putTint=t.getAllTints=void 0;var r,o=(r=n(86856))&&r.__esModule?r:{default:r};t.putTint=function(e){var t=e.data,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Please pass in a data property.");var r=t.id||t.slug;if(!r)throw new Error("You must pass either a slug or ObjectId");return(0,o.default)("/db/tint/".concat(r),_.assign({},n,{method:"PUT",json:t}))},t.getAllTints=function(){return(0,o.default)("/db/tint/all")}},44646:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStatsForUser=void 0;var r,o=(r=n(86856))&&r.__esModule?r:{default:r};t.getStatsForUser=function(e){if(!e)throw new Error("No userId supplied");return(0,o.default)("/db/user.stats/user/".concat(e))}},267447:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.startTimer=t.log=t.addLoggerGlobalContext=void 0;var r=n(504015),o=function(){return(window.performance||{}).now()||Date.now()};t.log=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info";if("function"==typeof((window.DD_LOGS||{}).logger||{}).log)try{(r.application&&!r.application.isProduction()||"localhost"===window.location.hostname)&&window.DD_LOGS.logger.setHandler("console"),window.DD_LOGS.logger.log(e,t,n)}catch(e){console.warning("Error while sending datadog log",e)}else me.useDataDog()&&console.debug("DD_LOGS not available. Log: ",e)},t.addLoggerGlobalContext=function(e,t){e&&t&&window.DD_LOGS&&DD_LOGS.addLoggerGlobalContext(e,t)},t.startTimer=function(){var e;try{e=o()}catch(e){return function(){return-1}}return function(){return o()-e}}},904311:(e,t,n)=>{"use strict";var r=n(619755);Object.defineProperty(t,"__esModule",{value:!0}),t.getAjvOptions=t.findNextLevelsBySession=t.defaultCodeLanguage=void 0,t.getGameContentDisplayNameWithType=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){var r=(0,i.i18n)(e,"displayName")||(0,i.i18n)(e,"name"),o=g(e.ozariaType||e.type,t,n);return"".concat(o,": ").concat(r)}},t.getGameContentDisplayType=g,t.getIntroContentNameWithLabel=function(e){if(e){var t=e.displayName||"...";return e.type?m(e.type)+": "+t:void 0}},t.getLevelDataMap=void 0,t.getLevelDisplayNameWithLabel=function(e){if(e){var t=e.getDisplayContentType(),n=(0,i.i18n)(e.attributes,"displayName")||(0,i.i18n)(e.attributes,"name");return"cutscene"===t&&(e.get("introContent")||[])[0]&&(n=e.get("introContent")[0].displayName||n),"capstone"===t?h(t,!1,!0)+": "+n:h(t)+": "+n}},t.getNextLevelLink=t.getNextLevelForLevel=t.getLevelsDataByOriginals=t.getLevelStatusMap=void 0,t.getOzariaAssetUrl=function(e){return"/file/".concat(encodeURI(e))},t.internationalizeConfig=function(e,t){var n=(t||"").split("-")[0],r=f(e,t),i=f(e,n),c=f(e,"en");e=(0,o.merge)({},e,c,i,r);for(var u=0,l=Object.values(e);u<l.length;u++){var d=l[u];if(Array.isArray(d)){var p,h=s(d);try{for(h.s();!(p=h.n()).done;)f(p.value,t)}catch(e){h.e(e)}finally{h.f()}}else"object"===a(d)&&f(d,t)}return e},t.internationalizeContentType=m,t.internationalizeLevelType=h,t.tryCopy=function(){try{document.execCommand("copy"),noty({text:"Copied to clipboard",layout:"topCenter",type:"info",killer:!1,timeout:2e3})}catch(e){noty({text:"Oops, unable to copy",layout:"topCenter",type:"error",killer:!1,timeout:3e3})}};var o=n(250636),i=n(299498);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function c(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}t.defaultCodeLanguage="python",t.findNextLevelsBySession=function(e,t,n,r,o){n||(n=d(e));var i,a,s,f=new Set;i=_.isArray(t)?l(t):t||{};for(var h=0,m=Object.entries(i);h<m.length;h++){var g=(a=m[h],s=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}
2finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(a,s)||c(a,s)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),y=g[0],v=g[1];if(!r||!r.isStudentOnSkippedLevel(me.get("_id"),o,y)){var b=n[y],w="string"==typeof b&&"complete"===b,S="number"==typeof b&&b>0;if("string"==typeof b&&"started"===b)f.add(y);else if(w||S){var C={};if(v.isPlayedInStages){var k=n[y];C=p(v,k)||{}}else C=p(v)||{};C.original&&r&&r.isStudentOnSkippedLevel(me.get("_id"),o,C.original)&&(C={});var x=n[C.original];!("string"==typeof x&&"complete"===x||"number"==typeof x&&x>=C.nextLevelStage)&&C.original&&f.add(C.original)}else v.first&&f.add(y)}}return function(e){return function(e){if(Array.isArray(e))return u(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||c(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(f)[0]},t.getAjvOptions=function(){return{unknownFormats:["ace","hidden","i18n","image-file","markdown"]}};var l=t.getLevelDataMap=function(e){var t,n={},r=s(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=o.original||o.get("original");i&&(n[i]=o.attributes||o)}}catch(e){r.e(e)}finally{r.f()}return n},d=(t.getLevelsDataByOriginals=function(e,t){var n;return n=_.isArray(e)?l(e):e,t.map((function(e){return n[e]}))},t.getLevelStatusMap=function(e){var t,n={},r=s(e);try{for(r.s();!(t=r.n()).done;){var o=t.value,i=(o.level||o.get("level")||{}).original,a=o.state||o.get("state")||{},c=a.capstoneStage;i&&("complete"===n[i]||c&&n[i]===c-1)||(c&&c>1?n[i]=c-1:a.complete?n[i]="complete":n[i]="started")}}catch(e){r.e(e)}finally{r.f()}return n}),p=t.getNextLevelForLevel=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=e.nextLevels||{};return(t&&e.isPlayedInStages?Object.values(n).filter((function(e){return(e.conditions||{}).afterCapstoneStage===t})):Object.values(n).sort((function(e,t){var n,r,o,i;return(null!==(n=null===(r=e.conditions)||void 0===r?void 0:r.afterCapstoneStage)&&void 0!==n?n:0)-(null!==(o=null===(i=t.conditions)||void 0===i?void 0:i.afterCapstoneStage)&&void 0!==o?o:0)})))[0]};function f(e,t){var n=(e||{}).i18n;if(n){var r=(0,i.removeAI)(n[t]||{});_.merge(e,r)}else if(e)for(var o=0,c=Object.values(e);o<c.length;o++){var u=c[o];if(Array.isArray(u)){var l,d=s(u);try{for(d.s();!(l=d.n()).done;)f(l.value,t)}catch(e){d.e(e)}finally{d.f()}}else"object"===a(u)&&f(u,t)}}function h(e,t,n){-1===["challenge","capstone","practice","cutscene","intro"].indexOf(e)&&(e="practice");var o="play_level.level_type_"+e;return n&&"capstone"===e?o+="_project":t&&(o+="_level"),r.i18n.t(o)}function m(e){switch(e){case"cutscene-video":case"cutscene":return r.i18n.t("play_level.level_type_cutscene");case"avatarSelectionScreen":return r.i18n.t("play_level.content_type_avatar");case"cinematic":return r.i18n.t("play_level.content_type_cinematic");case"interactive":return r.i18n.t("play_level.content_type_interactive");case"course-ladder":return r.i18n.t("play_level.content_type_arena");case"ai-use":return r.i18n.t("play_level.use");case"ai-learn":return r.i18n.t("play_level.learn_to_use");case"ai-practice":return r.i18n.t("play_level.level_type_practice");case"ai-capstone":return r.i18n.t("play_level.level_type_capstone");default:return r.i18n.t(i.isCodeCombat?"play_level.level_type_level":"play_level.level_type_challenge")}}function g(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e||(e="hero"),e.startsWith("practice")?h("practice",t,n):e.startsWith("capstone")?h("capstone",t,n):e.startsWith("challenge")?h("challenge",t,n):m(e)}t.getNextLevelLink=function(e,t){var n="";return"intro"===e.type?(n="/play/intro/"+e.slug,(0,i.showOzaria)()&&(n="/play/ozaria/intro/"+e.slug)):(n="/play/level/"+e.slug,(0,i.showOzaria)()&&(n="/play/ozaria/level/"+e.slug)),t.courseId&&t.courseInstanceId?(n+="?course=".concat(encodeURIComponent(t.courseId),"&course-instance=").concat(encodeURIComponent(t.courseInstanceId)),e.primerLanguage&&(n+="&codeLanguage=".concat(encodeURIComponent(e.primerLanguage))),t.nextLevelStage&&(n+="&capstoneStage=".concat(encodeURIComponent(t.nextLevelStage))),t.classroomId&&(n+="&classroom=".concat(encodeURIComponent(t.classroomId)))):t.courseInstanceId?(n+="?course-instance=".concat(encodeURIComponent(t.courseInstanceId)),t.codeLanguage&&(n+="&codeLanguage=".concat(encodeURIComponent(t.codeLanguage))),t.nextLevelStage&&(n+="&capstoneStage=".concat(encodeURIComponent(t.nextLevelStage)))):t.courseId?(n+="?course=".concat(encodeURIComponent(t.courseId)),t.codeLanguage&&(n+="&codeLanguage=".concat(encodeURIComponent(t.codeLanguage))),t.nextLevelStage&&(n+="&capstoneStage=".concat(encodeURIComponent(t.nextLevelStage)))):t.codeLanguage?(n+="?codeLanguage=".concat(encodeURIComponent(t.codeLanguage)),t.nextLevelStage&&(n+="&capstoneStage=".concat(encodeURIComponent(t.nextLevelStage)))):t.nextLevelStage&&(n+="?capstoneStage=".concat(encodeURIComponent(t.nextLevelStage))),n}},845057:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}
2Object.defineProperty(t,"__esModule",{value:!0}),t.PAGE_TITLES=t.COMPONENT_NAMES=void 0;var o=t.COMPONENT_NAMES={MY_SCHOOLS:"BaseMySchools",SCHOOL_ADMIN_LICENSES:"BaseSchoolAdminLicenses",ADMINISTERED_TEACHERS:{ALL_CLASSES:"BaseTeacherAllClasses",CLASS_PROGRESS:"BaseTeacherClassProgress",CLASS_PROJECTS:"BaseTeacherClassProjects",TEACHER_LICENSES:"BaseTeacherLicenses"}};t.PAGE_TITLES=r(r({},o.MY_SCHOOLS,"i18n:school_administrator.my_schools"),o.SCHOOL_ADMIN_LICENSES,"i18n:school_administrator.admin_licenses")},408715:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.generateLevelNumberMap=function(e,t){var n=e.map((function(e){var t=e.original,n=e.assessment,r=e.icon,o=e._id,i=e.practice,a=t;return e.isIntroHeadingRow?null:(p(r)&&(a=o),{_id:o,original:t,key:a,assessment:n,practice:i||"practicelvl"===r})})).filter(Boolean),r=i.default.createLevelNumberMap(n,t);return e.forEach((function(e){var t=e.original||e.fromIntroLevelOriginal;r[t]||(r[t]=r[e._id])})),r},t.getCurriculumGuideContentList=function(e){var t,n=e.introLevels,r=e.moduleInfo,o=e.moduleNum,a=e.currentCourseId,c=e.codeLanguage,p=[],f=null,h=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return u(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?u(e,t):void 0}}(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}((null==r?void 0:r[o])||[]);try{for(h.s();!(t=h.n()).done;){var m=t.value,g=s({type:m.practice?"practicelvl":"challengelvl"},m),y=g.type,v=g.ozariaType,b=g.introLevelSlug,_=g.fromIntroLevelOriginal,w=g.slug,S=g.introContent,C=g._id;b&&"cutscene"!==y&&f!==b&&(p.push({isIntroHeadingRow:!0,name:i.default.i18n(n[_],"displayName"),icon:"intro",_id:m._id}),f=b);var k=void 0;v?v&&("practice"===v?k="practicelvl":"capstone"===v?k="capstone":"challenge"===v&&(k="challengelvl")):(k=y,"project"===m.shareable?k="capstone":m.practice&&(k="practicelvl")),i.default.HACKSTACK_COURSE_IDS.includes(a)&&(k=i.default.scenarioMode2Icon(m.mode));var x=l({ozariaType:v,introLevelSlug:b,courseId:a,codeLanguage:c,slug:w,introContent:S,moduleNum:o,_id:C});x&&k||console.error("missing url or icon in curriculum guide"),p.push({icon:k,name:i.default.i18n(m,"displayName")||i.default.i18n(m,"name"),_id:C,description:d(m),url:x,isPartOfIntro:!!b&&"cutscene"!==k,isIntroHeadingRow:!1,slug:w,fromIntroLevelOriginal:_,original:m.original,assessment:m.assessment,tool:m.tool})}}catch(e){h.e(e)}finally{h.f()}return p},t.getLevelUrl=l,t.isOzariaNoCodeLevelHelper=p;var o,i=(o=n(299498))&&o.__esModule?o:{default:o};function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==r(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function l(e){var t=e.ozariaType,n=e.introLevelSlug,r=e.courseId,o=e.codeLanguage,a=e.slug,s=e.introContent,c=e.moduleNum;if(e._id,i.default.HACKSTACK_COURSE_IDS.includes(r))return"/ai/play/scenario/".concat(a);if(i.default.isOzaria||i.default.OZ_COURSE_IDS.includes(r))return!t&&n?"/play/intro/".concat(n,"?course=").concat(r,"&codeLanguage=").concat(o,"&intro-content=").concat(s||0):"/play/ozaria/level/".concat(a,"?course=").concat(r,"&codeLanguage=").concat(o);if(a){var u="/play/level/".concat(a,"?course=").concat(r,"&codeLanguage=").concat(o);return r===i.default.courseIDs.JUNIOR&&(u+=c<=4?"&codeFormat=blocks-icons":"&codeFormat=blocks-text"),u}return null}function d(e){var t;return i.default.i18n(((null==e||null===(t=e.documentation)||void 0===t?void 0:t.specificArticles)||[]).find((function(e){return"Learning Goals"===e.name})),"body")||i.default.i18n(e,"description")||""}
2function p(e){return["cutscene","cinematic","interactive"].includes(e)}},432451:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}function r(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=n(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t);if("object"!=n(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==n(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,"__esModule",{value:!0}),t.PAGE_TITLES=t.COMPONENT_NAMES=void 0;var o=t.COMPONENT_NAMES={MY_CLASSES_ALL:"BaseMyClasses",MY_CLASSES_SINGLE:"BaseSingleClass",STUDENT_PROJECTS:"BaseStudentProjects",MY_LICENSES:"BaseTeacherLicenses",RESOURCE_HUB:"BaseResourceHub",PD:"PD",STUDENT_ASSESSMENTS:"BaseStudentAssessments",AI_JUNIOR:"BaseAIJunior",AI_LEAGUE:"AILeague",CURRICULUM_GUIDE:"BaseCurriculumGuide",APCSP:"APCSPPage",ACTIVATE_LICENSE:"ActivateLicense"};t.PAGE_TITLES=r(r(r(r(r(r(r(r({},o.MY_CLASSES_ALL,"all_classes"),o.MY_LICENSES,"my_licenses"),o.RESOURCE_HUB,"resource_hub"),o.PD,"pd"),o.AI_LEAGUE,"ai_league"),o.APCSP,"apcsp"),o.CURRICULUM_GUIDE,"curriculum_guide"),o.ACTIVATE_LICENSE,"activate_license")},527168:(e,t,n)=>{"use strict";t.Z=void 0;var r=a(n(586369)),o=a(n(299498)),i=a(n(969278));function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var c=function(e){return"CURRICULUM_GLOSSARY_HIDE_".concat(e.toUpperCase())};t.Z={namespaced:!0,state:function(){return{visible:!1,selectedCampaignId:void 0,selectedLanguage:"python",hasAccessViaSharedClass:!1,hideGlossary:{hackstack:!1,codecombat:!1,ozaria:!1,junior:!1}}},mutations:{openCurriculumGuide:function(e){e.visible=!0},closeCurriculumGuide:function(e){e.visible=!1},setSelectedCampaignId:function(e,t){e.selectedCampaignId=t},setSelectedLanguage:function(e,t){e.selectedLanguage=t},setAccessViaSharedClass:function(e,t){e.hasAccessViaSharedClass=t},hideGlossary:function(e,t){e.hideGlossary[t]=!0,i.default.save(c(t),!0,0)},showGlossary:function(e,t){e.hideGlossary[t]=!1,i.default.save(c(t),!1,0)},loadGlossary:function(e){for(var t in e.hideGlossary)e.hideGlossary[t]=i.default.load(c(t),!1)}},getters:{chapterNavBar:function(e,t,n,r){return r["courses/sorted"]||[]},glossaryShown:function(e){return function(t){return!e.hideGlossary[t]}},isOnLockedCampaign:function(e,t,n,r){var o=t.getCurrentCourse,i=r["me/isPaidTeacher"];return!(null!=o&&o.free||i||e.hasAccessViaSharedClass)},selectedChapterId:function(e){return e.selectedCampaignId},getCurrentCourse:function(e,t,n,r){if(t.selectedChapterId&&r["courses/sorted"])return r["courses/sorted"].find((function(e){return e.campaignID===t.selectedChapterId}))},getCapstoneInfo:function(e,t,n,r){var o=r["gameContent/getContentForCampaign"](t.selectedChapterId);return(null==o?void 0:o.capstone)||{}},getModuleInfo:function(e,t,n,r){var o=r["gameContent/getContentForCampaign"](t.selectedChapterId);return null==o?void 0:o.modules},getModuleIntroLevels:function(e,t,n,r){var o=r["gameContent/getContentForCampaign"](t.selectedChapterId);return null==o?void 0:o.introLevels},getCurrentModuleNames:function(e,t,n,r){return function(e){var n=t.getCurrentCourse,r=Object.values(n.modules||{}).find((function(t){var n=t.number;return n===e||n===parseInt(e)}));return!r&&_.size(n.modules||{})&&(r=Object.values(n.modules)[parseInt(e)-1]),o.default.i18n(r||{},"name")}},getCurrentModuleHeadingInfo:function(e,t,n,r){return function(n){var r=t.getCurrentCourse,i=Object.values(r.modules||{}).find((function(e){var t=e.number;return t===n||t===parseInt(n)}));!i&&_.size(r.modules||{})&&(i=Object.values(r.modules)[parseInt(n)-1]);var a=o.default.i18n(i||{},"lessonSlidesUrl");return a&&("object"===s(a)&&(a=a[(null==e?void 0:e.selectedLanguage)||"javascript"]||a.javascript),(i=_.cloneDeep(i)).lessonSlidesUrl=a),i||{}}},getCourseUnitMapUrl:function(e,t,n){if(t.getCurrentCourse)return r.default.courseWorldMap({courseId:t.getCurrentCourse._id,campaignId:t.selectedChapterId,codeLanguage:e.selectedLanguage})},getContentDescription:function(){return function(e){var t;return e&&(o.default.i18n(((null==e||null===(t=e.documentation)||void 0===t?void 0:t.specificArticles)||[]).find((function(e){return"Learning Goals"===e.name})),"body")||o.default.i18n(e,"description"))||""}},getSelectedLanguage:function(e,t){return e.selectedLanguage}},actions:{toggleCurriculumGuide:function(e){var t=e.state,n=e.commit,r=e.rootGetters,o=e.dispatch;if(t.visible)n("closeCurriculumGuide");else{if(!t.selectedCampaignId){var i=r["courses/sorted"]||[];i[0]&&o("setSelectedCampaign",i[0].campaignID)}n("openCurriculumGuide")}},setSelectedCampaign:function(e,t){e.state;
vendor: 5,140 bytes, line 2
2var n=e.commit,r=e.dispatch;n("setSelectedCampaignId",t),r("gameContent/fetchGameContentForCampaign",{campaignId:t},{root:!0})},setAccessViaSharedClass:function(e,t){(0,e.commit)("setAccessViaSharedClass",t)}}}},521286:(e,t,n)=>{"use strict";var r=n(619755);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}t.Z=void 0;var i,a=n(432451),s=(i=n(256205))&&i.__esModule?i:{default:i},c=n(755895);function u(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function l(){l=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,a=Object.create(o.prototype),s=new I(r||[]);return i(a,"_invoke",{value:O(e,n,s)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h="suspendedStart",m="executing",g="completed",y={};function v(){}function b(){}function _(){}var w={};d(w,s,(function(){return this}));var S=Object.getPrototypeOf,C=S&&S(S(j([])));C&&C!==n&&r.call(C,s)&&(w=C);var k=_.prototype=v.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,c){var u=f(e[i],e,a);if("throw"!==u.type){var l=u.arg,d=l.value;return d&&"object"==o(d)&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,c)}),(function(e){n("throw",e,s,c)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function O(t,n,r){var o=h;return function(i,a){if(o===m)throw Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=T(s,r);if(c){if(c===y)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=m;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:"suspendedYield",u.arg===y)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.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 A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i<t.length;)if(r.call(t,i))return n.value=t[i],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(o(t)+" is not iterable")}return b.prototype=_,i(k,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:b,configurable:!0}),b.displayName=d(_,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===b||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,d(e,u,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},x(E.prototype),d(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,o,i){void 0===i&&(i=Prom
2ise);var a=new E(p(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(k),d(k,u,"Generator"),d(k,s,(function(){return this})),d(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(P),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return s.type="throw",s.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;P(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function d(e,t,n,r,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function f(e){return function(e){if(Array.isArray(e))return m(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var g={levelSessions:"state.complete,state.introContentSessionComplete,state.goalStates,level,creator,changed,created,dateFirstCompleted,submitted,codeConcepts,code,codeLanguage,introContentSessionComplete,playtime",users:"firstName,lastName,name,email,products,coursePrepaid,coursePrepaidID,deleted"};t.Z={namespaced:!0,state:{selectedStudents:{},selectableStudentIds:[],editingStudent:null,showingTooltipOfThisOriginal:null,selectableOriginals:[],selectedOriginals:[]},getters:{isStudentSelected:function(e){return function(t){return e.selectedStudents[t]||!1}},selectedStudentIds:function(e){return Object.keys(e.selectedStudents||[])},selectableStudentIds:function(e){return e.selectableStudentIds},selectableOriginals:function(e){return e.selectableOriginals},selectedOriginals:function(e){return e.selectedOriginals},currentEditingStudent:function(e){return e.editingStudent},getShowingTooltipOfThisOriginal:function(e){return e.showingTooltipOfThisOriginal}},mutations:{setCheckedStudent:function(e,t){var n=t.studentId;e.selectedStudents[n]||Vue.set(e.selectedStudents,n,!0)},setSelectableStudentIds:function(e,t){e.selectableStudentIds=t},setSelectableOriginals:function(e,t){e.selectableOriginals=t},removeCheckedStudent:function(e,t){var n=t.studentId;Vue.delete(e.selectedStudents,n)},clearSelectedStudents:function(e){e.selectedStudents={}},openModalEditStudent:function(e,t){e.editingStudent=t},closeModalEditStudent:function(e){e.editingStudent=void 0},setShowingTooltipOfThisOriginal:function(e,t){Vue.set(e,"showingTooltipOfThisOriginal",t)},replaceSelectedOriginals:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e.selectedOriginals=t,Vue.set(e,"selectedOriginals",t)},updateSelectedOriginals:function(e,t){var n=t.shiftKey,r=t.original,o=t.listOfOriginals,i=void 0===o?[]:o,a=i.indexOf(r);if(e.selectedOriginals.includes(r)){if(e.selectedOriginals=e.selectedOriginals.filter((function(e){return e!==r})),n){var s=i.indexOf(e.selectedOriginals[e.selectedOriginals.length-1]),c=Math.min(a,s),u=Math.max(a,s),l=i.slice(c,u+1);e.selectedOriginals=e.selectedOriginals.filter((function(e){return!l.includes(e)}))}}else if(e.selectedOriginals.push(r),n){var d=i.indexOf(e.selectedOriginals[e.selectedOriginals.length-2]),p=Math.min(a,d),h=Math.max(a,d),m=i.slice(p,h+1);e.selectedOriginals=[].concat(f(e.selectedOriginals),f(m))}var g=f(e.selectedOriginals);Vue.set(e,"selectedOriginals",g)}},actions:{addStudentSelectedId:function(e,t){(0,e.commit)("setCheckedStudent",{studentId:t.studentId})},removeStudentSelectedId:function(e,t){(0,e.commit)("removeCheckedStudent",{studentId:t.studentId})},toggleStudentSelectedId:function(e,t){var n=e.dispatch,r=e.state,o=t.studentId;r.selectedStudents[o]?n("removeStudentSelectedId",{studentId:o}):n("addStudentSelectedId",{studentId:o})},clearSelectedStudents:function(e){(0,e.commit)("clearSelectedStudents")},fetchData:function(e,t){var n=e.dispatch,r=a.COMPONENT_NAMES.MY_CLASSES_SINGLE;return null!=t&&t.componentName&&(r=t.componentName),n("teacherDashboard/fetchData",{componentName:r,options:_.assign({data:g},t)},{root:!0})},applyLicenses:function(e){var t=arguments;return p(l().mark((function n(){var o,i,a,s,u,d,p,f,h,m;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.state,o=e.rootGetters,i=e.dispatch,a=e.getters,s=t.length>1&&void 0!==t[1]?t[1]:{selectedPrepaidId:void 0},u=s.selectedPrepaidId,d=a.selectedStudentIds.map((function(e){return o["teacherDashboard/getMembersCurrentClassroom"].find((function(t){var n=t._id;return e===n}))}
2)).filter(Boolean),p=o["teacherDashboard/teacherId"],f=o["teacherDashboard/getCurrentClassroom"],h=(0,c.hasSharedWriteAccessPermission)(f),f.ownerID===p){n.next=13;break}if(!h){n.next=11;break}p=f.ownerID,n.next=13;break;case 11:return noty({text:r.i18n.t("teacher_dashboard.no_write_permission"),layout:"center",type:"information",killer:!0,timeout:5e3}),n.abrupt("return");case 13:if(0!==d.length){n.next=16;break}return noty({text:r.i18n.t("teacher_dashboard.select_student_first"),layout:"center",type:"information",killer:!0,timeout:8e3}),n.abrupt("return");case 16:if(m=h?f._id:null,n.prev=17,!u){n.next=23;break}return n.next=21,i("prepaids/applySpecificLicenses",{selectedId:u,members:d,teacherId:p,sharedClassroomId:m},{root:!0});case 21:n.next=25;break;case 23:return n.next=25,i("prepaids/applyLicenses",{members:d,teacherId:p,sharedClassroomId:m},{root:!0});case 25:n.next=31;break;case 27:return n.prev=27,n.t0=n.catch(17),console.error("License ".concat(u||"auto"," application failed: "),n.t0),n.abrupt("return");case 31:return i("prepaids/fetchPrepaidsForTeacher",{teacherId:p,sharedClassroomId:m},{root:!0}),n.next=34,i("users/fetchClassroomMembers",{classroom:o["teacherDashboard/getCurrentClassroom"],options:{project:g.users}},{root:!0});case 34:case"end":return n.stop()}}),n,null,[[17,27]])})))()},revokeLicenses:function(e){return p(l().mark((function t(){var n,o,i,a,s,u,d,p;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.state,n=e.rootGetters,o=e.dispatch,i=e.getters,0!==(a=i.selectedStudentIds.map((function(e){return n["teacherDashboard/getMembersCurrentClassroom"].find((function(t){var n=t._id;return e===n}))})).filter(Boolean)).length){t.next=5;break}return noty({text:r.i18n.t("teacher_dashboard.select_student_first"),layout:"center",type:"information",killer:!0,timeout:8e3}),t.abrupt("return");case 5:if(s=n["teacherDashboard/teacherId"],u=n["teacherDashboard/getCurrentClassroom"],d=(0,c.hasSharedWriteAccessPermission)(u),u.ownerID===s){t.next=15;break}if(!d){t.next=13;break}s=u.ownerID,t.next=15;break;case 13:return noty({text:r.i18n.t("teacher_dashboard.no_write_permission"),layout:"center",type:"information",killer:!0,timeout:5e3}),t.abrupt("return");case 15:return p=d?u._id:null,t.next=18,o("prepaids/revokeLicenses",{members:a,sharedClassroomId:p},{root:!0});case 18:return o("prepaids/fetchPrepaidsForTeacher",{teacherId:s,sharedClassroomId:p},{root:!0}),t.next=21,o("users/fetchClassroomMembers",{classroom:n["teacherDashboard/getCurrentClassroom"],options:{project:g.users}},{root:!0});case 21:case"end":return t.stop()}}),t)})))()},updateLevelAccessStatusForSelectedStudents:function(e,t){return p(l().mark((function n(){var o,i,a,c,d,p,f,h,m,g,y,v,b,_,w,S,C,k,x,E,O,T,A,P,I,j,L,N;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.rootGetters,i=e.getters,a=e.dispatch,c=t.classroom,d=t.currentCourseId,p=t.onSuccess,f=t.modifiers,h=void 0===f?[]:f,m=t.modifierValue,g=void 0===m||m,y=t.levels,v=void 0===y?[]:y,b=t.date,0!==(_=i.selectedStudentIds.map((function(e){return o["teacherDashboard/getMembersCurrentClassroom"].find((function(t){var n=t._id;return e===n}))}))).length){n.next=7;break}return noty({text:r.i18n.t("teacher_dashboard.select_student_first"),layout:"center",type:"information",killer:!0,timeout:8e3}),null===(w=window.tracker)||void 0===w||w.trackEvent("Failure to lock",{category:"Teachers"}),n.abrupt("return");case 7:if(d){n.next=9;break}throw new Error("You cannot lock an undefined course.");case 9:return S=JSON.parse(JSON.stringify(c)),C=0,k=[],n.next=14,a("levels/fetchForClassroom",S._id,{root:!0});case 14:if(x=o["courseInstances/getCourseInstancesOfClass"](S._id),E=o["teacherDashboard/getSelectedCourseIdCurrentClassroom"],O=x.find((function(e){return e.courseID===E})),T=o["levels/getLevelsForClassroom"](S._id),A=T.reduce((function(e,t){return e[t.original]=t,e}),{}),O){n.next=22;break}return noty({text:r.i18n.t("teacher_dashboard.assign_content_first"),layout:"center",type:"error",killer:!0,timeout:5e3}),n.abrupt("return");case 22:P=[],I=u(h),n.prev=24,L=l().mark((function e(){var t,n,r,o;return l().wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:t=j.value,n=u(_),e.prev=2,o=l().mark((function e(){var n,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.value._id,((o=v.filter((function(e){if("locked"===t&&!1===g){var r=A[e];r&&(null==O?void 0:O.startLockedLevel)===r.slug&&P.push(O)}var o=s.default.isModifierActiveForStudent(S,n,d,e,t,b),i=g?!o:o;return i||k.push({studentId:n,level:e,modifier:t,modifierValue:g}),i}))).length>0||(!v||0===v.length)&&!s.default.isStudentOnLockedCourse(S,n,d))&&(C+=1,s.default.setModifierForStudent({classroom:S,studentId:n,courseId:d,levels:o,date:b,modifier:t,value:g}));case 3:case"end":return e.stop()}}),e)})),n.s();case 5:if((r=n.n()).done){e.next=9;break}return e.delegateYield(o(),"t0",7);case 7:e.next=5;break;case 9:e.next=14;break;case 11:e.prev=11,e.t1=e.catch(2),n.e(e.t1);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[2,11,14,17]])})),I.s();case 27:if((j=I.n()).done){n.next=31;break}return n.delegateYield(L(),"t0",29);case 29:n.next=27;break;case 31:n.next=36;break;case 33:n.prev=33,n.t1=n.catch(24),I.e(n.t1);case 36:return n.prev=36,I.f(),n.finish(36);case 39:if(0!==C||0!==P.length){n.next=43;break}return N=k.filter((function(e){var t=e.modifierValue,n=e.modifier;return!1===t&&"locked"===n})),noty({text:N.length>0?r.i18n.t("teacher_dashboard.no_modifiers_changed_unlocks_skipped"):r.i18n.t("teacher_dashboard.no_modifiers_changed"),layout:"center",type:"information",killer:!0,timeout:5e3}),n.abrupt("return");case 43:if(!(P.length>0)){n.next=46;break}return n.next=46,Promise.all(P.map((function(e){return a("courseInstances/updateCourseInstance",{courseInstance:e,updates:{startLockedLevel:"none"}},{root:!0})})));case 46:return null==p||p(),n.abrupt("return",a("classrooms/updateClassroom",{classroom:c,updates:{studentLockMap:S.studentLockMap}},{root:!0}));case 48:case"end":return n.stop()}}),n,null,[[24,33,36,39]])})))()},updateScenarioAccessStatusForSelectedStudents:function(e,t){return p(l().mark((function n(){var o,i,a,c,d,p,f,h,m,g,y,v,b,_,w,S,C,k,x,E,O,T,A;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(o=e.rootGetters,i=e.getters,a=e.dispatch,c=t.classroom,d=t.currentCourseId,p=t.onSuccess,f=t.modifiers,h=void 0===f?[]:f,m=t.modifierValue,g=void 0===m||m,y=t.levels,v=void 0===y?[]:y,b=t.date,0!==(_=i.selectedStudentIds.map((function(e){return o["teacherDashboard/getMembersCurrentClassroom"].find((function(t){var n=t._id;return e===n}))}))).length){n.next=7;break}return noty({text:r.i18n.t("teacher_dashboard.select_student_first"),layout:"center",type:"information",killer:!0,timeout:8e3}),null===(w=window.tracker)||void 0===w||w.trackEvent("Failure to lock",{category:"Teachers"}),n.abrupt("return");case 7:if(d){n.next=9;break}throw new Error("You cannot lock an undefined course.");case 9:S=JSON.parse(JSON.stringify(c)),C=0,k=[],x=[],E=u(h),n.prev=14,T=l().mark((function e(){var t,n,r,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=O.value,n=u(_),e.prev=2,o=l().mark((function e(){var n,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.value._id,((o=v.filter((function(e){var r=s.default.isModifierActiveForStudent(S,n,d,e,t,b),o=g?!r:r;return o||k.push({studentId:n,level:e,modifier:t,modifierValue:g}),o}))).length>0||(!v||0===v.length)&&!s.default.isStudentOnLockedCourse(S,n,d))&&(C+=1,s.default.setModifierForStudent({classroom:S,studentId:n,courseId:d,levels:o,date:b,modifier:t,value:g}));case 3:case"end":return e.stop()}}),e)})),n.s();case 5:if((r=n.n()).done){e.next=9;break}return e.delegateYield(o(),"t0",7);case 7:e.next=5;break;case 9:e.next=14;break;case 11:e.prev=11,e.t1=e.catch(2),n.e(e.t1);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[2,11,14,17]])})),E.s();case 17:if((O=E.n()).done){n.next=21;break}return n.delegateYield(T(),"t0",19);case 19:n.next=17;break;case 21:n.next=26;break;case 23:n.prev=23,n.t1=n.catch(14),E.e(n.t1);case 26:return n.prev=26,E.f(),n.finish(26);case 29:if(0!==C||0!==x.length){n.next=33;break}return A=k.filter((function(e){var t=e.modifierValue,n=e.modifier;return!1===t&&"lockedScenario"===n})),noty({text:A.length>0?r.i18n.t("teacher_dashboard.no_modifiers_changed_unlocks_skipped"):r.i18n.t("teacher_dashboard.no_modifiers_changed"),layout:"center",type:"information",killer:!0,timeout:5e3}),n.abrupt("return");case 33:if(!(x.length>0)){n.next=36;break}return n.next=36,Promise.all(x.map((function(e){return a("courseInstances/updateCourseInstance",{courseInstance:e,updates:{startLockedLevel:"none"}},{root:!0})}
2)));case 36:return null==p||p(),n.abrupt("return",a("classrooms/updateClassroom",{classroom:c,updates:{studentLockMap:S.studentLockMap}},{root:!0}));case 38:case"end":return n.stop()}}),n,null,[[14,23,26,29]])})))()},resetProgress:function(e){var t=e.rootGetters,n=e.dispatch,o=e.getters.selectedStudentIds.map((function(e){return t["teacherDashboard/getMembersCurrentClassroom"].find((function(t){var n=t._id;return e===n}))})),i=t["teacherDashboard/getCurrentClassroom"],a=t["courseInstances/getCourseInstancesOfClass"](i._id),s=t["teacherDashboard/getSelectedCourseIdCurrentClassroom"],c=a.find((function(e){return e.courseID===s})),u=t["courses/sorted"].find((function(e){return e._id===s}));if(!u||0===o.length||!c)return noty({text:r.i18n.t("teacher_dashboard.no_progress_to_delete"),type:"error",timeout:2e3,layout:"center"});window.confirm(r.i18n.t("teacher_dashboard.delete_progress_warning",{courseName:u.name}))&&(noty({text:r.i18n.t("teacher_dashboard.deleting_progress"),timeout:200,type:"information",layout:"center"}),n("levelSessions/resetProgressOfUsers",{users:o,courseInstanceId:c._id,currentClassroom:i},{root:!0}))}}}},397567:(e,t,n)=>{"use strict";t.ZP=void 0;var r=a(n(299498)),o=a(n(523402)),i=n(904311);function a(e){return e&&e.__esModule?e:{default:e}}function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||l(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||l(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==s(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=window.moment;function g(e,t){var n,r,i,a,s,c=e.original,u=e.fromIntroLevelOriginal,l=e.practiceThresholdMinutes,d=c||u,p=new o.default(e),f=(null===(n=t[d])||void 0===n?void 0:n.codeLanguage)||"python";"web-dev"===e.type&&(f="html");var h=(null===(r=p.getSolutionForLanguage(f))||void 0===r?void 0:r.source)||"";
2return{type:"PRACTICE_LEVEL",starterCode:p.getSampleCodeForLanguage(f)||"",studentCode:(null===(i=t[d])||void 0===i||null===(a=i.code)||void 0===a||null===(s=a["hero-placeholder"])||void 0===s?void 0:s.plan)||"",solutionCode:h,language:f,practiceThresholdMinutes:l}}t.ZP={namespaced:!0,state:{open:!1,panelHeader:"Module 1 | Hard Coded",panelFooter:{icon:void 0,url:""},studentInfo:{name:"Student Name",completedContent:""},selectedProgressKey:void 0,conceptCheck:{learningGoal:void 0,totalSubmissions:-1,timeSpent:-1,lastPlayed:"",classAverage:-1},panelSessionContents:void 0,panelProjectContent:void 0},mutations:{openPanel:function(e){e.open=!0},closePanel:function(e){e.open=!1},setPanelHeader:function(e,t){e.panelHeader=t},setStudentInfo:function(e,t){var n=t.name,r=t.completedContent,o=t.practiceThresholdMinutes;e.studentInfo={name:n,completedContent:r,practiceThresholdMinutes:o}},setPanelSessionContents:function(e,t){e.panelSessionContents=t},setPanelProjectContent:function(e,t){e.panelProjectContent=t},setLearningGoal:function(e,t){Vue.set(e.conceptCheck,"learningGoal",t)},setSelectedProgressKey:function(e,t){e.selectedProgressKey=t},setTimeSpent:function(e,t){Vue.set(e.conceptCheck,"timeSpent",t)},setLastPlayed:function(e,t){Vue.set(e.conceptCheck,"lastPlayed",t)},setTotalSubmissions:function(e,t){Vue.set(e.conceptCheck,"totalSubmissions",t)},setPanelFooter:function(e,t){var n=t.icon,r=t.url;e.panelFooter={icon:n,url:r}},resetState:function(e){Vue.set(e.conceptCheck,"learningGoal",""),Vue.set(e.conceptCheck,"totalSubmissions",-1),Vue.set(e.conceptCheck,"timeSpent",-1),Vue.set(e.conceptCheck,"classAverage",-1),Vue.set(e.studentInfo,"completedContent",""),e.panelSessionContents=void 0,e.panelProjectContent=void 0,e.selectedProgressKey=void 0,e.panelFooter={icon:void 0,url:""}}},getters:{selectedProgressKey:function(e){return e.selectedProgressKey},panelFooter:function(e){return e.panelFooter},isOpen:function(e){return e.open},panelHeader:function(e){return e.panelHeader},studentInfo:function(e){return e.studentInfo},conceptCheck:function(e){return e.conceptCheck},panelSessionContents:function(e){return e.panelSessionContents},panelProjectContent:function(e){return e.panelProjectContent}},actions:{showPanelSessionContent:function(e,t){var n,o,a,s,l,d,p,h=e.commit,y=e.dispatch,v=e.rootGetters,b=e.state,_=t.student,w=t.classroomId,S=t.selectedCourseId,C=t.moduleNum,k=t.contentId,x=v["levelSessions/getSessionsMapForClassroom"](w)[_._id],E=v["teacherDashboard/classroom"],O=(null==E||null===(n=E.aceConfig)||void 0===n?void 0:n.language)||"python",T=(null===(o=v["gameContent/getContentForClassroom"](w))||void 0===o||null===(a=o[S])||void 0===a?void 0:a.modules)[C].find((function(e){return e._id===k})),A=T.introContent,P=T.ozariaType,I=T.original,j=T.fromIntroLevelOriginal,L=T.type,N=T.practiceThresholdMinutes;P?P&&("practice"===P?d="practicelvl":"capstone"===P?d="capstone":"challenge"===P&&(d="challengelvl"),p="/play/level/".concat(k,"?course=").concat(S,"&codeLanguage=").concat(O)):(d=L,p="/play/intro/".concat(j,"?course=").concat(S,"&codeLanguage=").concat(O,"&intro-content=").concat(A||0,"&original=true"),r.default.isCodeCombat&&(p="/play/level/".concat(T.slug,"?course=").concat(S,"&codeLanguage=").concat(O))),p&&d||console.error("missing url or icon in curriculum guide");var R=I||j;if(void 0===T)throw new Error("Couldn't find module content.");h("resetState"),h("setPanelFooter",{url:p,icon:d}),h("setSelectedProgressKey","".concat(_._id,"_").concat(T._id)),h("setLearningGoal",(null===(s=((null==T||null===(l=T.documentation)||void 0===l?void 0:l.specificArticles)||[]).find((function(e){return"Learning Goals"===e.name})))||void 0===s?void 0:s.body)||"");var D,M,F,U,B="Module ".concat(C," | ").concat((0,i.getGameContentDisplayNameWithType)(T));if(["hero","course",void 0].includes(T.type))h("setTimeSpent",r.default.secondsToMinutesAndSeconds(Math.ceil(x[R].playtime))),h("setLastPlayed",m(x[R].changed).format("lll")),y("setPanelSessionContent",{header:B,studentName:_.displayName,practiceThresholdMinutes:N,dateFirstCompleted:x[R].dateFirstCompleted,sessionContentObjects:[g(T,x)]});else if("game-dev"===T.type||"web-dev"===T.type){var $,H,z,q,V,G,W=(null===($=x[R])||void 0===$?void 0:$.codeLanguage)||"python",Y=[].concat(u(T.goals||[]),u((T.additionalGoals||[]).map((function(e){return e.goals})).flat()));h("setTimeSpent",r.default.secondsToMinutesAndSeconds(Math.ceil(x[R].playtime)));var K=new Set(Object.entries((null===(H=x[R])||void 0===H||null===(z=H.state)||void 0===z?void 0:z.goalStates)||{}).filter((function(e){var t=c(e,2);return t[0],"success"===t[1].status})).map((function(e){var t=c(e,2),n=t[0];return t[1],n}))||[]);y("setPanelSessionContent",{header:B,studentName:_.displayName,dateFirstCompleted:x[R].dateFirstCompleted,sessionContentObjects:[(U={studentCode:(null===(q=x[R])||void 0===q||null===(V=q.code)||void 0===V||null===(G=V["hero-placeholder"])||void 0===G?void 0:G.plan)||"",gameGoals:Y.map((function(e){return{goal:e,description:e.name,completed:K.has(e.id)}})),language:W},{type:"CAPSTONE_LEVEL",studentCode:U.studentCode,gameGoals:U.gameGoals,language:U.language})]})}else if("interactive"===T.type){var J,Z,X=null===(J=v["interactives/getInteractiveSessionsForClass"](w))||void 0===J||null===(Z=J[_._id])||void 0===Z?void 0:Z[k];if(h("setTotalSubmissions",X.submissionCount||0),"draggable-statement-completion"===T.interactiveType){var Q=new Map(T.draggableStatementCompletionData.elements.map((function(e){return[e.elementId,e]})));y("setPanelSessionContent",{header:B,studentName:_.displayName,dateFirstCompleted:X.dateFirstCompleted,sessionContentObjects:[(F={prompt:T.promptText,submissionText:X.submissions[0].submittedSolution.map((function(e,t){return{text:r.default.i18n(Q.get(e),"text"),correct:T.draggableStatementCompletionData.solution[t]===e}})),solutionText:T.draggableStatementCompletionData.solution.map((function(e){return{text:r.default.i18n(Q.get(e),"text")}})),labels:T.draggableStatementCompletionData.labels.map((function(e){return{text:r.default.i18n(e,"text")}}))},{type:"DRAGGABLE_STATEMENT_COMPLETION",prompt:F.prompt,submissionText:F.submissionText,solutionText:F.solutionText,labels:F.labels})]})}else if("draggable-ordering"===T.interactiveType){var ee=T.draggableOrderingData,te=new Map(ee.elements.map((function(e){return[e.elementId,e]})));y("setPanelSessionContent",{header:B,studentName:_.displayName,dateFirstCompleted:X.dateFirstCompleted,sessionContentObject:[(M={prompt:T.promptText,submissionText:X.submissions[0].submittedSolution.map((function(e,t){return{text:r.default.i18n(te.get(e),"text"),correct:ee.solution[t]===e}})),solutionText:ee.solution.map((function(e){return{text:r.default.i18n(te.get(e),"text")}})),lastColText:ee.labels.map((function(e){return{text:r.default.i18n(e,"text")}}))},{type:"DRAGGABLE_ORDERING",prompt:M.prompt,submissionText:M.submissionText,solutionText:M.solutionText,lastColText:M.lastColText})]})}else if("insert-code"===T.interactiveType){var ne=T.insertCodeData,re=new Map(ne.choices.map((function(e){return[e.choiceId,e]})));y("setPanelSessionContent",{header:B,studentName:_.displayName,dateFirstCompleted:X.dateFirstCompleted,sessionContentObject:[(D={prompt:T.promptText,code:ne.starterCode,studentSubmission:{text:r.default.i18n(re.get(X.submissions[0].submittedSolution),"text"),correct:X.submissions[0].correct},solution:{text:r.default.i18n(re.get(ne.solution),"text")},options:ne.choices.map((function(e){return{text:r.default.i18n(e,"text")}})),interactiveArt:T.defaultArtAsset},{type:"INSERT_CODE",prompt:D.prompt,code:D.code,studentSubmission:D.studentSubmission,solution:D.solution,options:D.options,interactiveArt:D.interactiveArt})]})}else console.error("Unhandled interactive type in TeacherDashboardPanel: '".concat(T.interactiveType,"'"))}T.practiceLevels&&h("setPanelSessionContents",[].concat(u(b.panelSessionContents),u(T.practiceLevels.map((function(e){return f({},function(e,t){var n=e.original,r=e.fromIntroLevelOriginal,o=n||r;return f(f({},g(e,t)),{},{session:t[o],levelTitle:(0,i.getGameContentDisplayNameWithType)(e),isExtra:!0})}(e,x))})).filter((function(e,t,n){var r;return e.session||(null===(r=n[t-1])||void 0===r?void 0:r.session)})))))}
2,showPanelProjectContent:function(e,t){var n=e.commit,r=e.dispatch,o=(e.rootGetters,t.student),i=t.header,a=(t.classroomId,t.selectedCourseId,t.moduleName,t.aiScenario),s=t.aiProjects;n("resetState"),r("setPanelProjectContent",{header:i,studentName:o.displayName,projectContentObject:{aiScenario:a,aiProjects:s}})},setPanelProjectContent:function(e,t){var n=e.commit,r=t.projectContentObject,o=t.header,i=t.studentName;t.dateFirstCompleted,n("setPanelProjectContent",r),n("setPanelHeader",o),n("setStudentInfo",{name:i}),n("openPanel")},setPanelSessionContent:function(e,t){var n=e.commit,r=t.sessionContentObjects,o=t.header,i=t.studentName,a=t.practiceThresholdMinutes,s=t.dateFirstCompleted;n("setPanelSessionContents",r),n("setPanelHeader",o),n("setStudentInfo",{name:i,completedContent:s?m(s).format("lll"):"",practiceThresholdMinutes:a}),n("openPanel")}}}},267891:(e,t,n)=>{"use strict";var r,o=n(619755);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!=i(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==i(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,l()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(l=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=n(921336),h=n(663523),m=n(203949),g=n(439980),y=n(746516).sendContactMessage,v={additionalProperties:!1,required:["email","message"],properties:{email:{type:"string",maxLength:100,minLength:1,format:"email"},message:{type:"string",minLength:1}}};e.exports=((r=function(e){function t(){return a(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,r=[{key:"openSubscribeModal",value:function(e){return e.stopPropagation(),this.openModalView(new m)}},{key:"contact",value:function(){this.playSound("menu-button-click"),g.clearFormAlerts(this.$el);var e=g.formToObject(this.$el),t=tv4.validateMultiple(e,v);return t.valid?(this.populateBrowserData(e),(e=_.merge(e,this.options)).country=me.get("country"),null!=window.tracker&&window.tracker.trackEvent("Sent Feedback",{message:e}),y(e,this.$el),o.post("/db/user/".concat(me.id,"/track/contact_codecombat"))):g.applyErrorsToForm(this.$el,t.errors)}},{key:"populateBrowserData",value:function(e){return o.browser&&(e.browser="".concat(o.browser.platform," ").concat(o.browser.name," ").concat(o.browser.versionNumber)),e.screenSize="".concat(null!=("undefined"!=typeof screen&&null!==screen?screen.width:void 0)?"undefined"!=typeof screen&&null!==screen?screen.width:void 0:o(window).width()," x ").concat(null!=("undefined"!=typeof screen&&null!==screen?screen.height:void 0)?"undefined"!=typeof screen&&null!==screen?screen.height:void 0:o(window).height()),e.screenshotURL=this.screenshotURL}},{key:"updateScreenshot",value:function(){if(this.screenshotURL){var e=this.$el.find("#contact-screenshot").removeClass("secret");return e.find("a").prop("href",this.screenshotURL.replace("http://codecombat.com/","/")),e.find("img").prop("src",this.screenshotURL.replace("http://codecombat.com/","/"))}}}
2],i=[{key:"initClass",value:function(){this.prototype.id="contact-modal",this.prototype.template=h,this.prototype.closeButton=!0,this.prototype.events={"click #contact-submit-button":"contact",'click [data-toggle="coco-modal"][data-target="core/SubscribeModal"]':"openSubscribeModal"}}}],r&&s(n.prototype,r),i&&s(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(f)).initClass(),r)},44278:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}t.Z=void 0;var o=a(n(524549)),i=a(n(422438));function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t,n){return t=l(t),function(e,t){if(t&&("object"==r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,u()?Reflect.construct(t,n||[],l(e).constructor):t.apply(e,n))}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}var p=function(e){function t(){return s(this,t),c(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(o.default);p.prototype.id="ozaria-direct-contact-modal",p.prototype.template=n(97625),p.prototype.VueComponent=i.default,p.prototype.propsData=null,p.prototype.closesOnClickOutside=!1,p.prototype.closesOnEscape=!0,t.Z=p},272316:function(e,t,n){var r,o,i;i=this,r=[n(250636),n(619755),t],o=function(e,t,n){i.Backbone=function(e,t,n,r){var o=e.Backbone,i=[],a=i.slice;t.VERSION="1.1.2",t.$=r,t.noConflict=function(){return e.Backbone=o,this},t.emulateHTTP=!1,t.emulateJSON=!1;var s=t.Events={on:function(e,t,n){return u(this,"on",e,[t,n])&&t?(this._events||(this._events={}),(this._events[e]||(this._events[e]=[])).push({callback:t,context:n,ctx:n||this}),this):this},once:function(e,t,r){if(!u(this,"once",e,[t,r])||!t)return this;var o=this,i=n.once((function(){o.off(e,i),t.apply(this,arguments)}));return i._callback=t,this.on(e,i,r)},off:function(e,t,r){var o,i,a,s,c,l,d,p;if(!this._events||!u(this,"off",e,[t,r]))return this;if(!e&&!t&&!r)return this._events=void 0,this;for(c=0,l=(s=e?[e]:n.keys(this._events)).length;c<l;c++)if(e=s[c],a=this._events[e]){if(this._events[e]=o=[],t||r)for(d=0,p=a.length;d<p;d++)i=a[d],(t&&t!==i.callback&&t!==i.callback._callback||r&&r!==i.context)&&o.push(i);o.length||delete this._events[e]}return this},trigger:function(e){if(!this._events)return this;var t=a.call(arguments,1);if(!u(this,"trigger",e,t))return this;var n=this._events[e],r=this._events.all;return n&&l(n,t),r&&l(r,arguments),this},stopListening:function(e,t,r){var o=this._listeningTo;if(!o)return this;var i=!t&&!r;for(var a in r||"object"!=typeof t||(r=this),e&&((o={})[e._listenId]=e),o)(e=o[a]).off(t,r,this),(i||n.isEmpty(e._events))&&delete this._listeningTo[a];return this}},c=/\s+/,u=function(e,t,n,r){if(!n)return!0;if("object"==typeof n){for(var o in n)e[t].apply(e,[o,n[o]].concat(r));return!1}if(c.test(n)){for(var i=n.split(c),a=0,s=i.length;a<s;a++)e[t].apply(e,[i[a]].concat(r));return!1}return!0},l=function(e,t){var n,r=-1,o=e.length,i=t[0],a=t[1],s=t[2];switch(t.length){case 0:for(;++r<o;)(n=e[r]).callback.call(n.ctx);return;case 1:for(;++r<o;)(n=e[r]).callback.call(n.ctx,i);return;case 2:for(;++r<o;)(n=e[r]).callback.call(n.ctx,i,a);return;case 3:for(;++r<o;)(n=e[r]).callback.call(n.ctx,i,a,s);return;default:for(;++r<o;)(n=e[r]).callback.apply(n.ctx,t);return}};n.each({listenTo:"on",listenToOnce:"once"},(function(e,t){s[t]=function(t,r,o){return(this._listeningTo||(this._listeningTo={}))[t._listenId||(t._listenId=n.uniqueId("l"))]=t,o||"object"!=typeof r||(o=this),t[e](r,o,this),this}})),s.bind=s.on,s.unbind=s.off,n.extend(t,s);var d=t.Model=function(e,t){var r=e||{};t||(t={}),this.cid=n.uniqueId("c"),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(r=this.parse(r,t)||{}),r=n.defaults({},r,n.result(this,"defaults")),this.set(r,t),this.changed={},this.initialize.apply(this,arguments)};n.extend(d.prototype,s,{changed:null,validationError:null,idAttribute:"id",initialize:function(){},toJSON:function(e){return n.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return n.escape(this.get(e))},has:function(e){return null!=this.get(e)}
2,set:function(e,t,r){var o,i,a,s,c,u,l,d;if(null==e)return this;if("object"==typeof e?(i=e,r=t):(i={})[e]=t,r||(r={}),!this._validate(i,r))return!1;for(o in a=r.unset,c=r.silent,s=[],u=this._changing,this._changing=!0,u||(this._previousAttributes=n.clone(this.attributes),this.changed={}),d=this.attributes,l=this._previousAttributes,this.idAttribute in i&&(this.id=i[this.idAttribute]),i)t=i[o],n.isEqual(d[o],t)||s.push(o),n.isEqual(l[o],t)?delete this.changed[o]:this.changed[o]=t,a?delete d[o]:d[o]=t;if(!c){s.length&&(this._pending=r);for(var p=0,f=s.length;p<f;p++)this.trigger("change:"+s[p],this,d[s[p]],r)}if(u)return this;if(!c)for(;this._pending;)r=this._pending,this._pending=!1,this.trigger("change",this,r);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,n.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var r in this.attributes)t[r]=void 0;return this.set(t,n.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!n.isEmpty(this.changed):n.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&n.clone(this.changed);var t,r=!1,o=this._changing?this._previousAttributes:this.attributes;for(var i in e)n.isEqual(o[i],t=e[i])||((r||(r={}))[i]=t);return r},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return n.clone(this._previousAttributes)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=this,r=e.success;return e.success=function(n){if(!t.set(t.parse(n,e),e))return!1;r&&r(t,n,e),t.trigger("sync",t,n,e)},j(this,e),this.sync("read",this,e)},save:function(e,t,r){var o,i,a,s=this.attributes;if(null==e||"object"==typeof e?(o=e,r=t):(o={})[e]=t,r=n.extend({validate:!0},r),o&&!r.wait){if(!this.set(o,r))return!1}else if(!this._validate(o,r))return!1;o&&r.wait&&(this.attributes=n.extend({},s,o)),void 0===r.parse&&(r.parse=!0);var c=this,u=r.success;return r.success=function(e){c.attributes=s;var t=c.parse(e,r);if(r.wait&&(t=n.extend(o||{},t)),n.isObject(t)&&!c.set(t,r))return!1;u&&u(c,e,r),c.trigger("sync",c,e,r)},j(this,r),"patch"==(i=this.isNew()?"create":r.patch?"patch":"update")&&(r.attrs=o),a=this.sync(i,this,r),o&&r.wait&&(this.attributes=s),a},destroy:function(e){e=e?n.clone(e):{};var t=this,r=e.success,o=function(){t.trigger("destroy",t,t.collection,e)};if(e.success=function(n){(e.wait||t.isNew())&&o(),r&&r(t,n,e),t.isNew()||t.trigger("sync",t,n,e)},this.isNew())return e.success(),!1;j(this,e);var i=this.sync("delete",this,e);return e.wait||o(),i},url:function(){var e=n.result(this,"urlRoot")||n.result(this.collection,"url")||I();return this.isNew()?e:e.replace(/([^\/])$/,"$1/")+encodeURIComponent(this.id)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},n.extend(e||{},{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=n.extend({},this.attributes,e);var r=this.validationError=this.validate(e,t)||null;return!r||(this.trigger("invalid",this,r,n.extend(t,{validationError:r})),!1)}});n.each(["keys","values","pairs","invert","pick","omit"],(function(e){d.prototype[e]=function(){var t=a.call(arguments);return t.unshift(this.attributes),n[e].apply(n,t)}}));var p=t.Collection=function(e,t){t||(t={}),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,n.extend({silent:!0},t))},f={add:!0,remove:!0,merge:!0},h={add:!0,remove:!1};n.extend(p.prototype,s,{model:d,initialize:function(){},toJSON:function(e){return this.map((function(t){return t.toJSON(e)}))},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,n.extend({merge:!1},t,h))},remove:function(e,t){var r,o,i,a,s=!n.isArray(e);for(t||(t={}),r=0,o=(e=s?[e]:n.clone(e)).length;r<o;r++)(a=e[r]=this.get(e[r]))&&(delete this._byId[a.id],delete this._byId[a.cid],i=this.indexOf(a),this.models.splice(i,1),this.length--,t.silent||(t.index=i,a.trigger("remove",a,this,t)),this._removeReference(a,t));return s?e[0]:e},set:function(e,t){(t=n.defaults({},t,f)).parse&&(e=this.parse(e,t));var r,o,i,a,s,c,u,l=!n.isArray(e);e=l?e?[e]:[]:n.clone(e);var p=t.at,h=this.model,m=this.comparator&&null==p&&!1!==t.sort,g=n.isString(this.comparator)?this.comparator:null,y=[],v=[],b={},_=t.add,w=t.merge,S=t.remove,C=!(m||!_||!S)&&[];for(r=0,o=e.length;r<o;r++){if(i=(s=e[r]||{})instanceof d?a=s:s[h.prototype.idAttribute||"id"],c=this.get(i))S&&(b[c.cid]=!0),w&&(s=s===a?a.attributes:s,t.parse&&(s=c.parse(s,t)),c.set(s,t),m&&!u&&c.hasChanged(g)&&(u=!0)),e[r]=c;else if(_){if(!(a=e[r]=this._prepareModel(s,t)))continue;y.push(a),this._addReference(a,t)}a=c||a,!C||!a.isNew()&&b[a.id]||C.push(a),b[a.id]=!0}if(S){for(r=0,o=this.length;r<o;++r)b[(a=this.models[r]).cid]||v.push(a);v.length&&this.remove(v,t)}if(y.length||C&&C.length)if(m&&(u=!0),this.length+=y.length,null!=p)for(r=0,o=y.length;r<o;r++)this.models.splice(p+r,0,y[r]);else{C&&(this.models.length=0);var k=C||y;for(r=0,o=k.length;r<o;r++)this.models.push(k[r])}if(u&&this.sort({silent:!0}),!t.silent){for(r=0,o=y.length;r<o;r++)(a=y[r]).trigger("add",a,this,t);(u||C&&C.length)&&this.trigger("sort",this,t)}return l?e[0]:e},reset:function(e,t){t||(t={});for(var r=0,o=this.models.length;r<o;r++)this._removeReference(this.models[r],t);return t.previousModels=this.models,this._reset(),e=this.add(e,n.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,n.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e),t},unshift:function(e,t){return this.add(e,n.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e),t},slice:function(){return a.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[e.id]||this._byId[e.cid]},at:function(e){return this.models[e]},where:function(e,t){return n.isEmpty(e)?t?void 0:[]:this[t?"find":"filter"]((function(t){for(var n in e)if(e[n]!==t.get(n))return!1;return!0}))},findWhere:function(e){return this.where(e,!0)},sort:function(e){if(!this.comparator)throw new Error("Cannot sort a set without a comparator");return e||(e={}),n.isString(this.comparator)||1===this.comparator.length?this.models=this.sortBy(this.comparator,this):this.models.sort(n.bind(this.comparator,this)),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return n.invoke(this.models,"get",e)},fetch:function(e){void 0===(e=e?n.clone(e):{}).parse&&(e.parse=!0);var t=e.success,r=this;return e.success=function(n){var o=e.reset?"reset":"set";r[o](n,e),t&&t(r,n,e),r.trigger("sync",r,n,e)},j(this,e),this.sync("read",this,e)},create:function(e,t){if(t=t?n.clone(t):{},!(e=this._prepareModel(e,t)))return!1;t.wait||this.add(e,t);var r=this,o=t.success;
2return t.success=function(e,n){t.wait&&r.add(e,t),o&&o(e,n,t)},e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){if(e instanceof d)return e;(t=t?n.clone(t):{}).collection=this;var r=new this.model(e,t);return r.validationError?(this.trigger("invalid",this,r.validationError,t),!1):r},_addReference:function(e,t){this._byId[e.cid]=e,null!=e.id&&(this._byId[e.id]=e),e.collection||(e.collection=this),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,n,r){("add"!==e&&"remove"!==e||n===this)&&("destroy"===e&&this.remove(t,r),t&&e==="change:"+t.idAttribute&&(delete this._byId[t.previous(t.idAttribute)],null!=t.id&&(this._byId[t.id]=t)),this.trigger.apply(this,arguments))}});n.each(["forEach","each","map","collect","reduce","foldl","inject","reduceRight","foldr","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","toArray","size","first","head","take","initial","rest","tail","drop","last","without","difference","indexOf","shuffle","lastIndexOf","isEmpty","chain","sample"],(function(e){p.prototype[e]=function(){var t=a.call(arguments);return t.unshift(this.models),n[e].apply(n,t)}}));n.each(["groupBy","countBy","sortBy","indexBy"],(function(e){p.prototype[e]=function(t,r){var o=n.isFunction(t)?t:function(e){return e.get(t)};return n[e](this.models,o,r)}}));var m=t.View=function(e){this.cid=n.uniqueId("view"),e||(e={}),n.extend(this,n.pick(e,y)),this._ensureElement(),this.initialize.apply(this,arguments),this.delegateEvents()},g=/^(\S+)\s*(.*)$/,y=["model","collection","el","id","attributes","className","tagName","events"];n.extend(m.prototype,s,{tagName:"div",$:function(e){return this.$el.find(e)},initialize:function(){},render:function(){return this},remove:function(){return this.$el.remove(),this.stopListening(),this},setElement:function(e,n){return this.$el&&this.undelegateEvents(),this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0],!1!==n&&this.delegateEvents(),this},delegateEvents:function(e){if(!e&&!(e=n.result(this,"events")))return this;for(var t in this.undelegateEvents(),e){var r=e[t];if(n.isFunction(r)||(r=this[e[t]]),r){var o=t.match(g),i=o[1],a=o[2];r=n.bind(r,this),i+=".delegateEvents"+this.cid,""===a?this.$el.on(i,r):this.$el.on(i,a,r)}}return this},undelegateEvents:function(){return this.$el.off(".delegateEvents"+this.cid),this},_ensureElement:function(){if(this.el)this.setElement(n.result(this,"el"),!1);else{var e=n.extend({},n.result(this,"attributes"));this.id&&(e.id=n.result(this,"id")),this.className&&(e.class=n.result(this,"className"));var r=t.$("<"+n.result(this,"tagName")+">").attr(e);this.setElement(r,!1)}}}),t.sync=function(e,r,o){var i=b[e];n.defaults(o||(o={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var a={type:i,dataType:"json"};if(o.url||(a.url=n.result(r,"url")||I()),null!=o.data||!r||"create"!==e&&"update"!==e&&"patch"!==e||(a.contentType="application/json",a.data=JSON.stringify(o.attrs||r.toJSON(o))),o.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),o.emulateHTTP&&("PUT"===i||"DELETE"===i||"PATCH"===i)){a.type="POST",o.emulateJSON&&(a.data._method=i);var s=o.beforeSend;o.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",i),s)return s.apply(this,arguments)}}"GET"===a.type||o.emulateJSON||(a.processData=!1),"PATCH"===a.type&&v&&(a.xhr=function(){return new ActiveXObject("Microsoft.XMLHTTP")});var c=o.xhr=t.ajax(n.extend(a,o));return r.trigger("request",r,c,o),c};var v=!("undefined"==typeof window||!window.ActiveXObject||window.XMLHttpRequest&&(new XMLHttpRequest).dispatchEvent),b={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var _=t.Router=function(e){e||(e={}),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},w=/\((.*?)\)/g,S=/(\(\?)?:\w+/g,C=/\*\w+/g,k=/[\-{}\[\]+?.,\\\^$|#\s]/g;n.extend(_.prototype,s,{initialize:function(){},route:function(e,r,o){n.isRegExp(e)||(e=this._routeToRegExp(e)),n.isFunction(r)&&(o=r,r=""),o||(o=this[r]);var i=this;return t.history.route(e,(function(n){var a=i._extractParameters(e,n);i.execute(o,a),i.trigger.apply(i,["route:"+r].concat(a)),i.trigger("route",r,a),t.history.trigger("route",i,r,a)})),this},execute:function(e,t){e&&e.apply(this,t)},navigate:function(e,n){return t.history.navigate(e,n),this},_bindRoutes:function(){if(this.routes){this.routes=n.result(this,"routes");for(var e,t=n.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return e=e.replace(k,"\\$&").replace(w,"(?:$1)?").replace(S,(function(e,t){return t?e:"([^/?]+)"})).replace(C,"([^?]*?)"),new RegExp("^"+e+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var r=e.exec(t).slice(1);return n.map(r,(function(e,t){return t===r.length-1?e||null:e?decodeURIComponent(e):null}))}});var x=t.History=function(){this.handlers=[],n.bindAll(this,"checkUrl"),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},E=/^[#\/]|\s+$/g,O=/^\/+|\/+$/g,T=/msie [\w.]+/,A=/\/$/,P=/#.*$/;x.started=!1,n.extend(x.prototype,s,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getFragment:function(e,t){if(null==e)if(this._hasPushState||!this._wantsHashChange||t){e=decodeURI(this.location.pathname+this.location.search);var n=this.root.replace(A,"");e.indexOf(n)||(e=e.slice(n.length))}else e=this.getHash();return e.replace(E,"")},start:function(e){if(x.started)throw new Error("Backbone.history has already been started");x.started=!0,this.options=n.extend({root:"/"},this.options,e),this.root=this.options.root,this._wantsHashChange=!1!==this.options.hashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.options.pushState&&this.history&&this.history.pushState);var r=this.getFragment(),o=document.documentMode,i=T.exec(navigator.userAgent.toLowerCase())&&(!o||o<=7);if(this.root=("/"+this.root+"/").replace(O,"/"),i&&this._wantsHashChange){var a=t.$('<iframe src="javascript:0" tabindex="-1">');this.iframe=a.hide().appendTo("body")[0].contentWindow,this.navigate(r)}this._hasPushState?t.$(window).on("popstate",this.checkUrl):this._wantsHashChange&&"onhashchange"in window&&!i?t.$(window).on("hashchange",this.checkUrl):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),this.fragment=r;var s=this.location;if(this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot())return this.fragment=this.getFragment(null,!0),this.location.replace(this.root+"#"+this.fragment),!0;this._hasPushState&&this.atRoot()&&s.hash&&(this.fragment=this.getHash().replace(E,""),this.history.replaceState({},document.title,this.root+this.fragment))}if(!this.options.silent)return this.loadUrl()},stop:function(){t.$(window).off("popstate",this.checkUrl).off("hashchange",this.checkUrl),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),x.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getFragment(this.getHash(this.iframe))),t===this.fragment)return!1;this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return e=this.fragment=this.getFragment(e),n.any(this.handlers,(function(t){if(t.route.test(e))return t.callback(e),!0}))},navigate:function(e,t){if(!x.started)return!1;t&&!0!==t||(t={trigger:!!t});var n=this.root+(e=this.getFragment(e||""));if(e=e.replace(P,""),this.fragment!==e){if(this.fragment=e,""===e&&"/"!==n&&(n=n.slice(0,-1)),this._hasPushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getFragment(this.getHash(this.iframe))&&(t.replace||this.iframe.document.open().close(),this._updateHash(this.iframe.location,e,t.replace))}return t.trigger?this.loadUrl(e):void 0}},_updateHash:function(e,t,n){if(n){var r=e.href.replace(/(javascript:|#).*$/,"");e.replace(r+"#"+t)}else e.hash="#"+t}}),t.history=new x;d.extend=p.extend=_.extend=m.extend=x.extend=function(e,t){var r,o=this;r=e&&n.has(e,"constructor")?e.constructor:function(){return o.apply(this,arguments)},n.extend(r,o,t);var i=function(){this.constructor=r};return i.prototype=o.prototype,r.prototype=new i,e&&n.extend(r.prototype,e),r.__super__=o.prototype,r};var I=function(){throw new Error('A "url" property or function must be specified')},j=function(e,t){var n=t.error;t.error=function(r){n&&n(e,r,t),e.trigger("error",e,r,t)}};return t}(i,n,e,t)}.apply(t,r),void 0===o||(e.exports=o)},679742:(e,t)=>{"use strict";t.byteLength=function(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=c(e),a=i[0],s=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;return 2===s&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>
24,u[l++]=255&t),1===s&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t),u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=16383,s=0,c=r-o;s<c;s+=a)i.push(u(e,s,s+a>c?c:s+a));return 1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+"==")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"=")),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)n[a]=i[a],r[i.charCodeAt(a)]=a;function c(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var o,i,a=[],s=t;s<r;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(i=o)>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},696624:(e,t,n)=>{var r,o=n(734155);r=function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof _dereq_&&_dereq_;if(!s&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return o(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof _dereq_&&_dereq_,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";t.exports=function(e){var t=e._SomePromiseArray;function n(e){var n=new t(e),r=n.promise();return n.setHowMany(1),n.setUnwrap(),n.init(),r}e.any=function(e){return n(e)},e.prototype.any=function(){return n(this)}}},{}],2:[function(e,t,n){"use strict";var r;try{throw new Error}catch(e){r=e}var i=e("./schedule"),a=e("./queue");function s(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new a(16),this._normalQueue=new a(16),this._haveDrainedQueues=!1;var e=this;this.drainQueues=function(){e._drainQueues()},this._schedule=i}function c(e){for(;e.length()>0;)u(e)}function u(e){var t=e.shift();if("function"!=typeof t)t._settlePromises();else{var n=e.shift(),r=e.shift();t.call(n,r)}}s.prototype.setScheduler=function(e){var t=this._schedule;return this._schedule=e,this._customScheduler=!0,t},s.prototype.hasCustomScheduler=function(){return this._customScheduler},s.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},s.prototype.fatalError=function(e,t){t?(o.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),o.exit(2)):this.throwLater(e)},s.prototype.throwLater=function(e,t){if(1===arguments.length&&(t=e,e=function(){throw t}),"undefined"!=typeof setTimeout)setTimeout((function(){e(t)}),0);else try{this._schedule((function(){e(t)}))}catch(e){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}},s.prototype.invokeLater=function(e,t,n){this._lateQueue.push(e,t,n),this._queueTick()},s.prototype.invoke=function(e,t,n){this._normalQueue.push(e,t,n),this._queueTick()},s.prototype.settlePromises=function(e){this._normalQueue._pushOne(e),this._queueTick()},s.prototype._drainQueues=function(){c(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,c(this._lateQueue)},s.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},s.prototype._reset=function(){this._isTickUsed=!1}
2,t.exports=s,t.exports.firstLineError=r},{"./queue":26,"./schedule":29}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){var o=!1,i=function(e,t){this._reject(t)},a=function(e,t){t.promiseRejectionQueued=!0,t.bindingPromise._then(i,i,null,this,e)},s=function(e,t){0==(50397184&this._bitField)&&this._resolveCallback(t.target)},c=function(e,t){t.promiseRejectionQueued||this._reject(e)};e.prototype.bind=function(i){o||(o=!0,e.prototype._propagateFrom=r.propagateFromFunction(),e.prototype._boundValue=r.boundValueFunction());var u=n(i),l=new e(t);l._propagateFrom(this,1);var d=this._target();if(l._setBoundTo(u),u instanceof e){var p={promiseRejectionQueued:!1,promise:l,target:d,bindingPromise:u};d._then(t,a,void 0,l,p),u._then(s,c,void 0,l,p),l._setOnCancel(u)}else l._resolveCallback(d);return l},e.prototype._setBoundTo=function(e){void 0!==e?(this._bitField=2097152|this._bitField,this._boundTo=e):this._bitField=-2097153&this._bitField},e.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},e.bind=function(t,n){return e.resolve(n).bind(t)}}},{}],4:[function(e,t,n){"use strict";var r;"undefined"!=typeof Promise&&(r=Promise);var o=e("./promise")();o.noConflict=function(){try{Promise===o&&(Promise=r)}catch(e){}return o},t.exports=o},{"./promise":22}],5:[function(e,t,n){"use strict";var r=Object.create;if(r){var o=r(null),i=r(null);o[" size"]=i[" size"]=0}t.exports=function(t){var n=e("./util"),r=n.canEvaluate;function o(e){var r=function(e,r){var o;if(null!=e&&(o=e[r]),"function"!=typeof o){var i="Object "+n.classString(e)+" has no method '"+n.toString(r)+"'";throw new t.TypeError(i)}return o}(e,this.pop());return r.apply(e,this)}function i(e){return e[this]}function a(e){var t=+this;return t<0&&(t=Math.max(0,t+e.length)),e[t]}n.isIdentifier,t.prototype.call=function(e){var t=[].slice.call(arguments,1);return t.push(e),this._then(o,void 0,void 0,t,void 0)},t.prototype.get=function(e){var t;if("number"==typeof e)t=a;else if(r){var n=(void 0)(e);t=null!==n?n:i}else t=i;return this._then(t,void 0,void 0,e,void 0)}}},{"./util":36}],6:[function(e,t,n){"use strict";t.exports=function(t,n,r,o){var i=e("./util"),a=i.tryCatch,s=i.errorObj,c=t._async;t.prototype.break=t.prototype.cancel=function(){if(!o.cancellation())return this._warn("cancellation is disabled");for(var e=this,t=e;e._isCancellable();){if(!e._cancelBy(t)){t._isFollowing()?t._followee().cancel():t._cancelBranched();break}var n=e._cancellationParent;if(null==n||!n._isCancellable()){e._isFollowing()?e._followee().cancel():e._cancelBranched();break}e._isFollowing()&&e._followee().cancel(),e._setWillBeCancelled(),t=e,e=n}},t.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},t.prototype._enoughBranchesHaveCancelled=function(){return void 0===this._branchesRemainingToCancel||this._branchesRemainingToCancel<=0},t.prototype._cancelBy=function(e){return e===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},t.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},t.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),c.invoke(this._cancelPromises,this,void 0))},t.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},t.prototype._unsetOnCancel=function(){this._onCancelField=void 0},t.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},t.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},t.prototype._doInvokeOnCancel=function(e,t){if(i.isArray(e))for(var n=0;n<e.length;++n)this._doInvokeOnCancel(e[n],t);else if(void 0!==e)if("function"==typeof e){if(!t){var r=a(e).call(this._boundValue());r===s&&(this._attachExtraTrace(r.e),c.throwLater(r.e))}}else e._resultCancelled(this)},t.prototype._invokeOnCancel=function(){var e=this._onCancel();this._unsetOnCancel(),c.invoke(this._doInvokeOnCancel,this,e)},t.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},t.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(e,t,n){"use strict";
vendor: 6,627 bytes, line 2
2t.exports=function(t){var n=e("./util"),r=e("./es5").keys,o=n.tryCatch,i=n.errorObj;return function(e,a,s){return function(c){var u=s._boundValue();e:for(var l=0;l<e.length;++l){var d=e[l];if(d===Error||null!=d&&d.prototype instanceof Error){if(c instanceof d)return o(a).call(u,c)}else if("function"==typeof d){var p=o(d).call(u,c);if(p===i)return p;if(p)return o(a).call(u,c)}else if(n.isObject(c)){for(var f=r(d),h=0;h<f.length;++h){var m=f[h];if(d[m]!=c[m])continue e}return o(a).call(u,c)}}return t}}}},{"./es5":13,"./util":36}],8:[function(e,t,n){"use strict";t.exports=function(e){var t=!1,n=[];function r(){this._trace=new r.CapturedTrace(o())}function o(){var e=n.length-1;if(e>=0)return n[e]}return e.prototype._promiseCreated=function(){},e.prototype._pushContext=function(){},e.prototype._popContext=function(){return null},e._peekContext=e.prototype._peekContext=function(){},r.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,n.push(this._trace))},r.prototype._popContext=function(){if(void 0!==this._trace){var e=n.pop(),t=e._promiseCreated;return e._promiseCreated=null,t}return null},r.CapturedTrace=null,r.create=function(){if(t)return new r},r.deactivateLongStackTraces=function(){},r.activateLongStackTraces=function(){var n=e.prototype._pushContext,i=e.prototype._popContext,a=e._peekContext,s=e.prototype._peekContext,c=e.prototype._promiseCreated;r.deactivateLongStackTraces=function(){e.prototype._pushContext=n,e.prototype._popContext=i,e._peekContext=a,e.prototype._peekContext=s,e.prototype._promiseCreated=c,t=!1},t=!0,e.prototype._pushContext=r.prototype._pushContext,e.prototype._popContext=r.prototype._popContext,e._peekContext=e.prototype._peekContext=o,e.prototype._promiseCreated=function(){var e=this._peekContext();e&&null==e._promiseCreated&&(e._promiseCreated=this)}},r}},{}],9:[function(e,t,n){"use strict";t.exports=function(t,n,r,i){var a,s,c,u,l=t._async,d=e("./errors").Warning,p=e("./util"),f=e("./es5"),h=p.canAttachTrace,m=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,g=/\((?:timers\.js):\d+:\d+\)/,y=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,v=null,b=null,_=!1,w=!(0==p.env("BLUEBIRD_DEBUG")),S=!(0==p.env("BLUEBIRD_WARNINGS")||!w&&!p.env("BLUEBIRD_WARNINGS")),C=!(0==p.env("BLUEBIRD_LONG_STACK_TRACES")||!w&&!p.env("BLUEBIRD_LONG_STACK_TRACES")),k=0!=p.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(S||!!p.env("BLUEBIRD_W_FORGOTTEN_RETURN"));!function(){var e=[];function n(){for(var t=0;t<e.length;++t)e[t]._notifyUnhandledRejection();r()}function r(){e.length=0}u=function(t){e.push(t),setTimeout(n,1)},f.defineProperty(t,"_unhandledRejectionCheck",{value:n}),f.defineProperty(t,"_unhandledRejectionClear",{value:r})}(),t.prototype.suppressUnhandledRejections=function(){var e=this._target();e._bitField=-1048577&e._bitField|524288},t.prototype._ensurePossibleRejectionHandled=function(){0==(524288&this._bitField)&&(this._setRejectionIsUnhandled(),u(this))},t.prototype._notifyUnhandledRejectionIsHandled=function(){Y("rejectionHandled",a,void 0,this)},t.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},t.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},t.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var e=this._settledValue();this._setUnhandledRejectionIsNotified(),Y("unhandledRejection",s,e,this)}},t.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},t.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},t.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},t.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},t.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},t.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},t.prototype._warn=function(e,t,n){return q(e,t,n||this)},t.onPossiblyUnhandledRejection=function(e){var n=t._getContext();s=p.contextBind(n,e)},t.onUnhandledRejectionHandled=function(e){var n=t._getContext();a=p.contextBind(n,e)};var x=function(){};t.longStackTraces=function(){if(l.haveItemsQueued()&&!ne.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");if(!ne.longStackTraces&&J()){var e=t.prototype._captureStackTrace,r=t.prototype._attachExtraTrace,o=t.prototype._dereferenceTrace;ne.longStackTraces=!0,x=function(){if(l.haveItemsQueued()&&!ne.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n See http://goo.gl/MqrFmX\n");t.prototype._captureStackTrace=e,t.prototype._attachExtraTrace=r,t.prototype._dereferenceTrace=o,n.deactivateLongStackTraces(),ne.longStackTraces=!1},t.prototype._captureStackTrace=$,t.prototype._attachExtraTrace=H,t.prototype._dereferenceTrace=z,n.activateLongStackTraces()}},t.hasLongStackTraces=function(){return ne.longStackTraces&&J()};var E={unhandledrejection:{before:function(){var e=p.global.onunhandledrejection;return p.global.onunhandledrejection=null,e},after:function(e){p.global.onunhandledrejection=e}},rejectionhandled:{before:function(){var e=p.global.onrejectionhandled;return p.global.onrejectionhandled=null,e},after:function(e){p.global.onrejectionhandled=e}}},O=function(){var e=function(e,t){if(!e)return!p.global.dispatchEvent(t);var n;try{return n=e.before(),!p.global.dispatchEvent(t)}finally{e.after(n)}};try{if("function"==typeof CustomEvent){var t=new CustomEvent("CustomEvent");return p.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=new CustomEvent(t,{detail:n,cancelable:!0});return f.defineProperty(r,"promise",{value:n.promise}),f.defineProperty(r,"reason",{value:n.reason}),e(E[t],r)}}return"function"==typeof Event?(t=new Event("CustomEvent"),p.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=new Event(t,{cancelable:!0});return r.detail=n,f.defineProperty(r,"promise",{value:n.promise}),f.defineProperty(r,"reason",{value:n.reason}),e(E[t],r)}):((t=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),p.global.dispatchEvent(t),function(t,n){t=t.toLowerCase();var r=document.createEvent("CustomEvent");return r.initCustomEvent(t,!1,!0,n),e(E[t],r)})}catch(e){}return function(){return!1}}(),T=p.isNode?function(){return o.emit.apply(o,arguments)}:p.global?function(e){var t="on"+e.toLowerCase(),n=p.global[t];
2return!!n&&(n.apply(p.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function A(e,t){return{promise:t}}var P={promiseCreated:A,promiseFulfilled:A,promiseRejected:A,promiseResolved:A,promiseCancelled:A,promiseChained:function(e,t,n){return{promise:t,child:n}},warning:function(e,t){return{warning:t}},unhandledRejection:function(e,t,n){return{reason:t,promise:n}},rejectionHandled:A},I=function(e){var t=!1;try{t=T.apply(null,arguments)}catch(e){l.throwLater(e),t=!0}var n=!1;try{n=O(e,P[e].apply(null,arguments))}catch(e){l.throwLater(e),n=!0}return n||t};function j(){return!1}function L(e,t,n){var r=this;try{e(t,n,(function(e){if("function"!=typeof e)throw new TypeError("onCancel must be a function, got: "+p.toString(e));r._attachCancellationCallback(e)}))}catch(e){return e}}function N(e){if(!this._isCancellable())return this;var t=this._onCancel();void 0!==t?p.isArray(t)?t.push(e):this._setOnCancel([t,e]):this._setOnCancel(e)}function R(){return this._onCancelField}function D(e){this._onCancelField=e}function M(){this._cancellationParent=void 0,this._onCancelField=void 0}function F(e,t){if(0!=(1&t)){this._cancellationParent=e;var n=e._branchesRemainingToCancel;void 0===n&&(n=0),e._branchesRemainingToCancel=n+1}0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)}t.config=function(e){if("longStackTraces"in(e=Object(e))&&(e.longStackTraces?t.longStackTraces():!e.longStackTraces&&t.hasLongStackTraces()&&x()),"warnings"in e){var n=e.warnings;ne.warnings=!!n,k=ne.warnings,p.isObject(n)&&"wForgottenReturn"in n&&(k=!!n.wForgottenReturn)}if("cancellation"in e&&e.cancellation&&!ne.cancellation){if(l.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");t.prototype._clearCancellationData=M,t.prototype._propagateFrom=F,t.prototype._onCancel=R,t.prototype._setOnCancel=D,t.prototype._attachCancellationCallback=N,t.prototype._execute=L,U=F,ne.cancellation=!0}if("monitoring"in e&&(e.monitoring&&!ne.monitoring?(ne.monitoring=!0,t.prototype._fireEvent=I):!e.monitoring&&ne.monitoring&&(ne.monitoring=!1,t.prototype._fireEvent=j)),"asyncHooks"in e&&p.nodeSupportsAsyncResource){var o=ne.asyncHooks,a=!!e.asyncHooks;o!==a&&(ne.asyncHooks=a,a?r():i())}return t},t.prototype._fireEvent=j,t.prototype._execute=function(e,t,n){try{e(t,n)}catch(e){return e}},t.prototype._onCancel=function(){},t.prototype._setOnCancel=function(e){},t.prototype._attachCancellationCallback=function(e){},t.prototype._captureStackTrace=function(){},t.prototype._attachExtraTrace=function(){},t.prototype._dereferenceTrace=function(){},t.prototype._clearCancellationData=function(){},t.prototype._propagateFrom=function(e,t){};var U=function(e,t){0!=(2&t)&&e._isBound()&&this._setBoundTo(e._boundTo)};function B(){var e=this._boundTo;return void 0!==e&&e instanceof t?e.isFulfilled()?e.value():void 0:e}function $(){this._trace=new ee(this._peekContext())}function H(e,t){if(h(e)){var n=this._trace;if(void 0!==n&&t&&(n=n._parent),void 0!==n)n.attachExtraTrace(e);else if(!e.__stackCleaned__){var r=G(e);p.notEnumerableProp(e,"stack",r.message+"\n"+r.stack.join("\n")),p.notEnumerableProp(e,"__stackCleaned__",!0)}}}function z(){this._trace=void 0}function q(e,n,r){if(ne.warnings){var o,i=new d(e);if(n)r._attachExtraTrace(i);else if(ne.longStackTraces&&(o=t._peekContext()))o.attachExtraTrace(i);else{var a=G(i);i.stack=a.message+"\n"+a.stack.join("\n")}I("warning",i)||W(i,"",!0)}}function V(e){for(var t=[],n=0;n<e.length;++n){var r=e[n],o=" (No stack trace)"===r||v.test(r),i=o&&Z(r);o&&!i&&(_&&" "!==r.charAt(0)&&(r=" "+r),t.push(r))}return t}function G(e){var t=e.stack,n=e.toString();return t="string"==typeof t&&t.length>0?function(e){for(var t=e.stack.replace(/\s+$/g,"").split("\n"),n=0;n<t.length;++n){var r=t[n];if(" (No stack trace)"===r||v.test(r))break}return n>0&&"SyntaxError"!=e.name&&(t=t.slice(n)),t}(e):[" (No stack trace)"],{message:n,stack:"SyntaxError"==e.name?t:V(t)}}function W(e,t,n){if("undefined"!=typeof console){var r;if(p.isObject(e)){var o=e.stack;r=t+b(o,e)}else r=t+String(e);"function"==typeof c?c(r,n):"function"!=typeof console.log&&"object"!=typeof console.log||console.log(r)}}function Y(e,t,n,r){var o=!1;try{"function"==typeof t&&(o=!0,"rejectionHandled"===e?t(r):t(n,r))}catch(e){l.throwLater(e)}"unhandledRejection"===e?I(e,n,r)||o||W(n,"Unhandled rejection "):I(e,r)}function K(e){var t;if("function"==typeof e)t="[function "+(e.name||"anonymous")+"]";else{if(t=e&&"function"==typeof e.toString?e.toString():p.toString(e),/\[object [a-zA-Z0-9$_]+\]/.test(t))try{t=JSON.stringify(e)}catch(e){}0===t.length&&(t="(empty array)")}return"(<"+function(e){return e.length<41?e:e.substr(0,38)+"..."}(t)+">, no stack trace)"}function J(){return"function"==typeof te}var Z=function(){return!1},X=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Q(e){var t=e.match(X);if(t)return{fileName:t[1],line:parseInt(t[2],10)}}function ee(e){this._parent=e,this._promisesCreated=0;var t=this._length=1+(void 0===e?0:e._length);te(this,ee),t>32&&this.uncycle()}p.inherits(ee,Error),n.CapturedTrace=ee,ee.prototype.uncycle=function(){var e=this._length;if(!(e<2)){for(var t=[],n={},r=0,o=this;void 0!==o;++r)t.push(o),o=o._parent;for(r=(e=this._length=r)-1;r>=0;--r){var i=t[r].stack;void 0===n[i]&&(n[i]=r)}for(r=0;r<e;++r){var a=n[t[r].stack];if(void 0!==a&&a!==r){a>0&&(t[a-1]._parent=void 0,t[a-1]._length=1),t[r]._parent=void 0,t[r]._length=1;var s=r>0?t[r-1]:this;a<e-1?(s._parent=t[a+1],s._parent.uncycle(),s._length=s._parent._length+1):(s._parent=void 0,s._length=1);for(var c=s._length+1,u=r-2;u>=0;
2--u)t[u]._length=c,c++;return}}}},ee.prototype.attachExtraTrace=function(e){if(!e.__stackCleaned__){this.uncycle();for(var t=G(e),n=t.message,r=[t.stack],o=this;void 0!==o;)r.push(V(o.stack.split("\n"))),o=o._parent;!function(e){for(var t=e[0],n=1;n<e.length;++n){for(var r=e[n],o=t.length-1,i=t[o],a=-1,s=r.length-1;s>=0;--s)if(r[s]===i){a=s;break}for(s=a;s>=0;--s){var c=r[s];if(t[o]!==c)break;t.pop(),o--}t=r}}(r),function(e){for(var t=0;t<e.length;++t)(0===e[t].length||t+1<e.length&&e[t][0]===e[t+1][0])&&(e.splice(t,1),t--)}(r),p.notEnumerableProp(e,"stack",function(e,t){for(var n=0;n<t.length-1;++n)t[n].push("From previous event:"),t[n]=t[n].join("\n");return n<t.length&&(t[n]=t[n].join("\n")),e+"\n"+t.join("\n")}(n,r)),p.notEnumerableProp(e,"__stackCleaned__",!0)}};var te=function(){var e=/^\s*at\s*/,t=function(e,t){return"string"==typeof e?e:void 0!==t.name&&void 0!==t.message?t.toString():K(t)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,v=e,b=t;var n=Error.captureStackTrace;return Z=function(e){return m.test(e)},function(e,t){Error.stackTraceLimit+=6,n(e,t),Error.stackTraceLimit-=6}}var r,o=new Error;if("string"==typeof o.stack&&o.stack.split("\n")[0].indexOf("stackDetection@")>=0)return v=/@/,b=t,_=!0,function(e){e.stack=(new Error).stack};try{throw new Error}catch(e){r="stack"in e}return!("stack"in o)&&r&&"number"==typeof Error.stackTraceLimit?(v=e,b=t,function(e){Error.stackTraceLimit+=6;try{throw new Error}catch(t){e.stack=t.stack}Error.stackTraceLimit-=6}):(b=function(e,t){return"string"==typeof e?e:"object"!=typeof t&&"function"!=typeof t||void 0===t.name||void 0===t.message?K(t):t.toString()},null)}();"undefined"!=typeof console&&void 0!==console.warn&&(c=function(e){console.warn(e)},p.isNode&&o.stderr.isTTY?c=function(e,t){var n=t?"�[33m":"�[31m";console.warn(n+e+"�[0m\n")}:p.isNode||"string"!=typeof(new Error).stack||(c=function(e,t){console.warn("%c"+e,t?"color: darkorange":"color: red")}));var ne={warnings:S,longStackTraces:!1,cancellation:!1,monitoring:!1,asyncHooks:!1};return C&&t.longStackTraces(),{asyncHooks:function(){return ne.asyncHooks},longStackTraces:function(){return ne.longStackTraces},warnings:function(){return ne.warnings},cancellation:function(){return ne.cancellation},monitoring:function(){return ne.monitoring},propagateFromFunction:function(){return U},boundValueFunction:function(){return B},checkForgottenReturns:function(e,t,n,r,o){if(void 0===e&&null!==t&&k){if(void 0!==o&&o._returnedNonUndefined())return;if(0==(65535&r._bitField))return;n&&(n+=" ");var i="",a="";if(t._trace){for(var s=t._trace.stack.split("\n"),c=V(s),u=c.length-1;u>=0;--u){var l=c[u];if(!g.test(l)){var d=l.match(y);d&&(i="at "+d[1]+":"+d[2]+":"+d[3]+" ");break}}if(c.length>0){var p=c[0];for(u=0;u<s.length;++u)if(s[u]===p){u>0&&(a="\n"+s[u-1]);break}}}var f="a promise was created in a "+n+"handler "+i+"but was not returned from it, see http://goo.gl/rRqMUw"+a;r._warn(f,!0,t)}},setBounds:function(e,t){if(J()){for(var n,r,o=(e.stack||"").split("\n"),i=(t.stack||"").split("\n"),a=-1,s=-1,c=0;c<o.length;++c)if(u=Q(o[c])){n=u.fileName,a=u.line;break}for(c=0;c<i.length;++c){var u;if(u=Q(i[c])){r=u.fileName,s=u.line;break}}a<0||s<0||!n||!r||n!==r||a>=s||(Z=function(e){if(m.test(e))return!0;var t=Q(e);return!!(t&&t.fileName===n&&a<=t.line&&t.line<=s)})}},warn:q,deprecated:function(e,t){var n=e+" is deprecated and will be removed in a future version.";return t&&(n+=" Use "+t+" instead."),q(n)},CapturedTrace:ee,fireDomEvent:O,fireGlobalEvent:T}}},{"./errors":12,"./es5":13,"./util":36}],10:[function(e,t,n){"use strict";t.exports=function(e){function t(){return this.value}function n(){throw this.reason}e.prototype.return=e.prototype.thenReturn=function(n){return n instanceof e&&n.suppressUnhandledRejections(),this._then(t,void 0,void 0,{value:n},void 0)},e.prototype.throw=e.prototype.thenThrow=function(e){return this._then(n,void 0,void 0,{reason:e},void 0)},e.prototype.catchThrow=function(e){if(arguments.length<=1)return this._then(void 0,n,void 0,{reason:e},void 0);var t=arguments[1],r=function(){throw t};return this.caught(e,r)},e.prototype.catchReturn=function(n){if(arguments.length<=1)return n instanceof e&&n.suppressUnhandledRejections(),this._then(void 0,t,void 0,{value:n},void 0);var r=arguments[1];r instanceof e&&r.suppressUnhandledRejections();var o=function(){return r};return this.caught(n,o)}}},{}],11:[function(e,t,n){"use strict";
2t.exports=function(e,t){var n=e.reduce,r=e.all;function o(){return r(this)}e.prototype.each=function(e){return n(this,e,t,0)._then(o,void 0,void 0,this,void 0)},e.prototype.mapSeries=function(e){return n(this,e,t,t)},e.each=function(e,r){return n(e,r,t,0)._then(o,void 0,void 0,e,void 0)},e.mapSeries=function(e,r){return n(e,r,t,t)}}},{}],12:[function(e,t,n){"use strict";var r,o,i=e("./es5"),a=i.freeze,s=e("./util"),c=s.inherits,u=s.notEnumerableProp;function l(e,t){function n(r){if(!(this instanceof n))return new n(r);u(this,"message","string"==typeof r?r:t),u(this,"name",e),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return c(n,Error),n}var d=l("Warning","warning"),p=l("CancellationError","cancellation error"),f=l("TimeoutError","timeout error"),h=l("AggregateError","aggregate error");try{r=TypeError,o=RangeError}catch(e){r=l("TypeError","type error"),o=l("RangeError","range error")}for(var m="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),g=0;g<m.length;++g)"function"==typeof Array.prototype[m[g]]&&(h.prototype[m[g]]=Array.prototype[m[g]]);i.defineProperty(h.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),h.prototype.isOperational=!0;var y=0;function v(e){if(!(this instanceof v))return new v(e);u(this,"name","OperationalError"),u(this,"message",e),this.cause=e,this.isOperational=!0,e instanceof Error?(u(this,"message",e.message),u(this,"stack",e.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}h.prototype.toString=function(){var e=Array(4*y+1).join(" "),t="\n"+e+"AggregateError of:\n";y++,e=Array(4*y+1).join(" ");for(var n=0;n<this.length;++n){for(var r=this[n]===this?"[Circular AggregateError]":this[n]+"",o=r.split("\n"),i=0;i<o.length;++i)o[i]=e+o[i];t+=(r=o.join("\n"))+"\n"}return y--,t},c(v,Error);var b=Error.__BluebirdErrorTypes__;b||(b=a({CancellationError:p,TimeoutError:f,OperationalError:v,RejectionError:v,AggregateError:h}),i.defineProperty(Error,"__BluebirdErrorTypes__",{value:b,writable:!1,enumerable:!1,configurable:!1})),t.exports={Error,TypeError:r,RangeError:o,CancellationError:b.CancellationError,OperationalError:b.OperationalError,TimeoutError:b.TimeoutError,AggregateError:b.AggregateError,Warning:d}},{"./es5":13,"./util":36}],13:[function(e,t,n){var r=function(){"use strict";return void 0===this}();if(r)t.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:r,propertyIsWritable:function(e,t){var n=Object.getOwnPropertyDescriptor(e,t);return!(n&&!n.writable&&!n.set)}};else{var o={}.hasOwnProperty,i={}.toString,a={}.constructor.prototype,s=function(e){var t=[];for(var n in e)o.call(e,n)&&t.push(n);return t};t.exports={isArray:function(e){try{return"[object Array]"===i.call(e)}catch(e){return!1}},keys:s,names:s,defineProperty:function(e,t,n){return e[t]=n.value,e},getDescriptor:function(e,t){return{value:e[t]}},freeze:function(e){return e},getPrototypeOf:function(e){try{return Object(e).constructor.prototype}catch(e){return a}},isES5:r,propertyIsWritable:function(){return!0}}}},{}],14:[function(e,t,n){"use strict";t.exports=function(e,t){var n=e.map;e.prototype.filter=function(e,r){return n(this,e,r,t)},e.filter=function(e,r,o){return n(e,r,o,t)}}},{}],15:[function(e,t,n){"use strict";t.exports=function(t,n,r){var o=e("./util"),i=t.CancellationError,a=o.errorObj,s=e("./catch_filter")(r);function c(e,t,n){this.promise=e,this.type=t,this.handler=n,this.called=!1,this.cancelPromise=null}function u(e){this.finallyHandler=e}function l(e,t){return null!=e.cancelPromise&&(arguments.length>1?e.cancelPromise._reject(t):e.cancelPromise._cancel(),e.cancelPromise=null,!0)}function d(){return f.call(this,this.promise._target()._settledValue())}function p(e){if(!l(this,e))return a.e=e,a}function f(e){var o=this.promise,s=this.handler;if(!this.called){this.called=!0;var c=this.isFinallyHandler()?s.call(o._boundValue()):s.call(o._boundValue(),e);if(c===r)return c;if(void 0!==c){o._setReturnedNonUndefined();var f=n(c,o);if(f instanceof t){if(null!=this.cancelPromise){if(f._isCancelled()){var h=new i("late cancellation observer");return o._attachExtraTrace(h),a.e=h,a}f.isPending()&&f._attachCancellationCallback(new u(this))}return f._then(d,p,void 0,this,void 0)}}}return o.isRejected()?(l(this),a.e=e,a):(l(this),e)}return c.prototype.isFinallyHandler=function(){return 0===this.type},u.prototype._resultCancelled=function(){l(this.finallyHandler)},t.prototype._passThrough=function(e,t,n,r){return"function"!=typeof e?this.then():this._then(n,r,void 0,new c(this,t,e),void 0)},t.prototype.lastly=t.prototype.finally=function(e){return this._passThrough(e,0,f,f)},t.prototype.tap=function(e){return this._passThrough(e,1,f)},t.prototype.tapCatch=function(e){var n=arguments.length;if(1===n)return this._passThrough(e,1,void 0,f);var r,i=new Array(n-1),a=0;for(r=0;r<n-1;++r){var c=arguments[r];if(!o.isObject(c))return t.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+o.classString(c)));i[a++]=c}i.length=a;var u=arguments[r];return this._passThrough(s(i,u,this),1,void 0,f)},c}},{"./catch_filter":7,"./util":36}],16:[function(e,t,n){"use strict";
2t.exports=function(t,n,r,o,i,a){var s=e("./errors").TypeError,c=e("./util"),u=c.errorObj,l=c.tryCatch,d=[];function p(e,n,o,i){if(a.cancellation()){var s=new t(r),c=this._finallyPromise=new t(r);this._promise=s.lastly((function(){return c})),s._captureStackTrace(),s._setOnCancel(this)}else(this._promise=new t(r))._captureStackTrace();this._stack=i,this._generatorFunction=e,this._receiver=n,this._generator=void 0,this._yieldHandlers="function"==typeof o?[o].concat(d):d,this._yieldedPromise=null,this._cancellationPhase=!1}c.inherits(p,i),p.prototype._isResolved=function(){return null===this._promise},p.prototype._cleanup=function(){this._promise=this._generator=null,a.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},p.prototype._promiseCancelled=function(){if(!this._isResolved()){var e;if(void 0!==this._generator.return)this._promise._pushContext(),e=l(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var n=new t.CancellationError("generator .return() sentinel");t.coroutine.returnSentinel=n,this._promise._attachExtraTrace(n),this._promise._pushContext(),e=l(this._generator.throw).call(this._generator,n),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(e)}},p.prototype._promiseFulfilled=function(e){this._yieldedPromise=null,this._promise._pushContext();var t=l(this._generator.next).call(this._generator,e);this._promise._popContext(),this._continue(t)}
2,p.prototype._promiseRejected=function(e){this._yieldedPromise=null,this._promise._attachExtraTrace(e),this._promise._pushContext();var t=l(this._generator.throw).call(this._generator,e);this._promise._popContext(),this._continue(t)},p.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof t){var e=this._yieldedPromise;this._yieldedPromise=null,e.cancel()}},p.prototype.promise=function(){return this._promise},p.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},p.prototype._continue=function(e){var n=this._promise;if(e===u)return this._cleanup(),this._cancellationPhase?n.cancel():n._rejectCallback(e.e,!1);var r=e.value;if(!0===e.done)return this._cleanup(),this._cancellationPhase?n.cancel():n._resolveCallback(r);var i=o(r,this._promise);if(i instanceof t||(i=function(e,n,r){for(var i=0;i<n.length;++i){r._pushContext();var a=l(n[i])(e);if(r._popContext(),a===u){r._pushContext();var s=t.reject(u.e);return r._popContext(),s}var c=o(a,r);if(c instanceof t)return c}return null}(i,this._yieldHandlers,this._promise),null!==i)){var a=(i=i._target())._bitField;0==(50397184&a)?(this._yieldedPromise=i,i._proxy(this,null)):0!=(33554432&a)?t._async.invoke(this._promiseFulfilled,this,i._value(
2)):0!=(16777216&a)?t._async.invoke(this._promiseRejected,this,i._reason()):this._promiseCancelled()}else this._promiseRejected(new s("A value %s was yielded that could not be treated as a promise\n\n See http://goo.gl/MqrFmX\n\n".replace("%s",String(r))+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")))},t.coroutine=function(e,t){if("function"!=typeof e)throw new s("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var n=Object(t).yieldHandler,r=p,o=(new Error).stack;return function(){var t=e.apply(this,arguments),i=new r(void 0,void 0,n,o),a=i.promise();return i._generator=t,i._promiseFulfilled(void 0),a}},t.coroutine.addYieldHandler=function(e){if("function"!=typeof e)throw new s("expecting a function but got "+c.classString(e));d.push(e)},t.spawn=function(e){if(a.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof e)return n("generatorFunction must be a function\n\n See http://goo.gl/MqrFmX\n");var r=new p(e,this),o=r.promise();return r._run(t.spawn),o}}},{"./errors":12,"./util":36}],17:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i){var a=e("./util");a.canEvaluate,a.tryCatch,a.errorObj,t.join=function(){var e,t=arguments.length-1;t>0&&"function"==typeof arguments[t]&&(e=arguments[t]);var r=[].slice.call(arguments);e&&r.pop();var o=new n(r).promise();return void 0!==e?o.spread(e):o}}},{"./util":36}],18:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i,a){var s=e("./util"),c=s.tryCatch,u=s.errorObj,l=t._async;function d(e,n,r,o){this.constructor$(e),this._promise._captureStackTrace();var a=t._getContext();if(this._callback=s.contextBind(a,n),this._preservedValues=o===i?new Array(this.length()):null,this._limit=r,this._inFlight=0,this._queue=[],l.invoke(this._asyncInit,this,void 0),s.isArray(e))for(var c=0;c<e.length;++c){var u=e[c];u instanceof t&&u.suppressUnhandledRejections()}}function p(e,n,o,i){if("function"!=typeof n)return r("expecting a function but got "+s.classString(n));var a=0;if(void 0!==o){if("object"!=typeof o||null===o)return t.reject(new TypeError("options argument must be an object but it is "+s.classString(o)));if("number"!=typeof o.concurrency)return t.reject(new TypeError("'concurrency' must be a number but it is "+s.classString(o.concurrency)));a=o.concurrency}return new d(e,n,a="number"==typeof a&&isFinite(a)&&a>=1?a:0,i).promise()}s.inherits(d,n),d.prototype._asyncInit=function(){this._init$(void 0,-2)},d.prototype._init=function(){},d.prototype._promiseFulfilled=function(e,n){var r=this._values,i=this.length(),s=this._preservedValues,l=this._limit;if(n<0){if(r[n=-1*n-1]=e,l>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(l>=1&&this._inFlight>=l)return r[n]=e,this._queue.push(n),!1;null!==s&&(s[n]=e);var d=this._promise,p=this._callback,f=d._boundValue();d._pushContext();var h=c(p).call(f,e,n,i),m=d._popContext();if(a.checkForgottenReturns(h,m,null!==s?"Promise.filter":"Promise.map",d),h===u)return this._reject(h.e),!0;var g=o(h,this._promise);if(g instanceof t){var y=(g=g._target())._bitField;if(0==(50397184&y))return l>=1&&this._inFlight++,r[n]=g,g._proxy(this,-1*(n+1)),!1;if(0==(33554432&y))return 0!=(16777216&y)?(this._reject(g._reason()),!0):(this._cancel(),!0);h=g._value()}r[n]=h}return++this._totalResolved>=i&&(null!==s?this._filter(r,s):this._resolve(r),!0)},d.prototype._drainQueue=function(){for(var e=this._queue,t=this._limit,n=this._values;e.length>0&&this._inFlight<t;){if(this._isResolved())return;var r=e.pop();this._promiseFulfilled(n[r],r)}},d.prototype._filter=function(e,t){for(var n=t.length,r=new Array(n),o=0,i=0;i<n;++i)e[i]&&(r[o++]=t[i]);r.length=o,this._resolve(r)},d.prototype.preservedValues=function(){return this._preservedValues},t.prototype.map=function(e,t){return p(this,e,t,null)},t.map=function(e,t,n,r){return p(e,t,n,r)}}},{"./util":36}],19:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i){var a=e("./util"),s=a.tryCatch;t.method=function(e){if("function"!=typeof e)throw new t.TypeError("expecting a function but got "+a.classString(e));return function(){var r=new t(n);r._captureStackTrace(),r._pushContext();var o=s(e).apply(this,arguments),a=r._popContext();return i.checkForgottenReturns(o,a,"Promise.method",r),r._resolveFromSyncValue(o),r}},t.attempt=t.try=function(e){if("function"!=typeof e)return o("expecting a function but got "+a.classString(e));var r,c=new t(n);if(c._captureStackTrace(),c._pushContext(),arguments.length>1){i.deprecated("calling Promise.try with more than 1 argument");var u=arguments[1],l=arguments[2];r=a.isArray(u)?s(e).apply(l,u):s(e).call(l,u)}else r=s(e)();var d=c._popContext();return i.checkForgottenReturns(r,d,"Promise.try",c),c._resolveFromSyncValue(r),c},t.prototype._resolveFromSyncValue=function(e){e===a.errorObj?this._rejectCallback(e.e,!1):this._resolveCallback(e,!0)}}},{"./util":36}],20:[function(e,t,n){"use strict";var r=e("./util"),o=r.maybeWrapAsError,i=e("./errors").OperationalError,a=e("./es5"),s=/^(?:name|message|stack|cause)$/;function c(e){var t;if(function(e){return e instanceof Error&&a.getPrototypeOf(e)===Error.prototype}(e)){(t=new i(e)).name=e.name,t.message=e.message,t.stack=e.stack;for(var n=a.keys(e),o=0;o<n.length;++o){var c=n[o];s.test(c)||(t[c]=e[c])}return t}return r.markAsOriginatingFromRejection(e),e}t.exports=function(e,t){return function(n,r){if(null!==e){if(n){var i=c(o(n));e._attachExtraTrace(i),e._reject(i)}
2else if(t){var a=[].slice.call(arguments,1);e._fulfill(a)}else e._fulfill(r);e=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(e,t,n){"use strict";t.exports=function(t){var n=e("./util"),r=t._async,o=n.tryCatch,i=n.errorObj;function a(e,t){if(!n.isArray(e))return s.call(this,e,t);var a=o(t).apply(this._boundValue(),[null].concat(e));a===i&&r.throwLater(a.e)}function s(e,t){var n=this._boundValue(),a=void 0===e?o(t).call(n,null):o(t).call(n,null,e);a===i&&r.throwLater(a.e)}function c(e,t){if(!e){var n=new Error(e+"");n.cause=e,e=n}var a=o(t).call(this._boundValue(),e);a===i&&r.throwLater(a.e)}t.prototype.asCallback=t.prototype.nodeify=function(e,t){if("function"==typeof e){var n=s;void 0!==t&&Object(t).spread&&(n=a),this._then(n,c,void 0,this,e)}return this}}},{"./util":36}],22:[function(e,t,n){"use strict";t.exports=function(){var n=function(){return new v("circular promise resolution chain\n\n See http://goo.gl/MqrFmX\n")},r=function(){return new L.PromiseInspection(this._target())},i=function(e){return L.reject(new v(e))};function a(){}var s={},c=e("./util");c.setReflectHandler(r);var u=function(){var e=o.domain;return void 0===e?null:e},l=function(){return{domain:u(),async:null}},d=c.isNode&&c.nodeSupportsAsyncResource?e("async_hooks").AsyncResource:null,p=function(){return{domain:u(),async:new d("Bluebird::Promise")}},f=c.isNode?l:function(){return null};c.notEnumerableProp(L,"_getContext",f);var h=e("./es5"),m=e("./async"),g=new m;h.defineProperty(L,"_async",{value:g});var y=e("./errors"),v=L.TypeError=y.TypeError;L.RangeError=y.RangeError;var b=L.CancellationError=y.CancellationError;L.TimeoutError=y.TimeoutError,L.OperationalError=y.OperationalError,L.RejectionError=y.OperationalError,L.AggregateError=y.AggregateError;var _=function(){},w={},S={},C=e("./thenables")(L,_),k=e("./promise_array")(L,_,C,i,a),x=e("./context")(L),E=x.create,O=e("./debuggability")(L,x,(function(){f=p,c.notEnumerableProp(L,"_getContext",p)}),(function(){f=l,c.notEnumerableProp(L,"_getContext",l)})),T=(O.CapturedTrace,e("./finally")(L,C,S)),A=e("./catch_filter")(S),P=e("./nodeback"),I=c.errorObj,j=c.tryCatch;function L(e){e!==_&&function(e,t){if(null==e||e.constructor!==L)throw new v("the promise constructor cannot be invoked directly\n\n See http://goo.gl/MqrFmX\n");if("function"!=typeof t)throw new v("expecting a function but got "+c.classString(t))}(this,e),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(e),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function N(e){this.promise._resolveCallback(e)}function R(e){this.promise._rejectCallback(e,!1)}function D(e){var t=new L(_);t._fulfillmentHandler0=e,t._rejectionHandler0=e,t._promise0=e,t._receiver0=e}return L.prototype.toString=function(){return"[object Promise]"},L.prototype.caught=L.prototype.catch=function(e){var t=arguments.length;if(t>1){var n,r=new Array(t-1),o=0;for(n=0;n<t-1;++n){var a=arguments[n];if(!c.isObject(a))return i("Catch statement predicate: expecting an object but got "+c.classString(a));r[o++]=a}if(r.length=o,"function"!=typeof(e=arguments[n]))throw new v("The last argument to .catch() must be a function, got "+c.toString(e));return this.then(void 0,A(r,e,this))}return this.then(void 0,e)},L.prototype.reflect=function(){return this._then(r,r,void 0,this,void 0)},L.prototype.then=function(e,t){if(O.warnings()&&arguments.length>0&&"function"!=typeof e&&"function"!=typeof t){var n=".then() only accepts functions but was passed: "+c.classString(e);arguments.length>1&&(n+=", "+c.classString(t)),this._warn(n)}return this._then(e,t,void 0,void 0,void 0)},L.prototype.done=function(e,t){this._then(e,t,void 0,void 0,void 0)._setIsFinal()},L.prototype.spread=function(e){return"function"!=typeof e?i("expecting a function but got "+c.classString(e)):this.all()._then(e,void 0,void 0,w,void 0)},L.prototype.toJSON=function(){var e={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(e.fulfillmentValue=this.value(),e.isFulfilled=!0):this.isRejected()&&(e.rejectionReason=this.reason(),e.isRejected=!0),e},L.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new k(this).promise()},L.prototype.error=function(e){return this.caught(c.originatesFromRejection,e)},L.getNewLibraryCopy=t.exports,L.is=function(e){return e instanceof L},L.fromNode=L.fromCallback=function(e){var t=new L(_);t._captureStackTrace();var n=arguments.length>1&&!!Object(arguments[1]).multiArgs,r=j(e)(P(t,n));return r===I&&t._rejectCallback(r.e,!0),t._isFateSealed()||t._setAsyncGuaranteed(),t},L.all=function(e){return new k(e).promise()},L.cast=function(e){var t=C(e);return t instanceof L||((t=new L(_))._captureStackTrace(),t._setFulfilled(),t._rejectionHandler0=e),t},L.resolve=L.fulfilled=L.cast,L.reject=L.rejected=function(e){var t=new L(_);return t._captureStackTrace(),t._rejectCallback(e,!0),t}
2,L.setScheduler=function(e){if("function"!=typeof e)throw new v("expecting a function but got "+c.classString(e));return g.setScheduler(e)},L.prototype._then=function(e,t,n,r,o){var i=void 0!==o,a=i?o:new L(_),s=this._target(),u=s._bitField;i||(a._propagateFrom(this,3),a._captureStackTrace(),void 0===r&&0!=(2097152&this._bitField)&&(r=0!=(50397184&u)?this._boundValue():s===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,a));var l=f();if(0!=(50397184&u)){var d,p,h=s._settlePromiseCtx;0!=(33554432&u)?(p=s._rejectionHandler0,d=e):0!=(16777216&u)?(p=s._fulfillmentHandler0,d=t,s._unsetRejectionIsUnhandled()):(h=s._settlePromiseLateCancellationObserver,p=new b("late cancellation observer"),s._attachExtraTrace(p),d=t),g.invoke(h,s,{handler:c.contextBind(l,d),promise:a,receiver:r,value:p})}else s._addCallbacks(e,t,a,r,l);return a},L.prototype._length=function(){return 65535&this._bitField},L.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},L.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},L.prototype._setLength=function(e){this._bitField=-65536&this._bitField|65535&e},L.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},L.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},L.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},L.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},L.prototype._isFinal=function(){return(4194304&this._bitField)>0},L.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},L.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},L.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},L.prototype._setAsyncGuaranteed=function(){if(!g.hasCustomScheduler()){var e=this._bitField;this._bitField=e|(536870912&e)>>2^134217728}},L.prototype._setNoAsyncGuarantee=function(){this._bitField=-134217729&(536870912|this._bitField)},L.prototype._receiverAt=function(e){var t=0===e?this._receiver0:this[4*e-4+3];if(t!==s)return void 0===t&&this._isBound()?this._boundValue():t},L.prototype._promiseAt=function(e){return this[4*e-4+2]},L.prototype._fulfillmentHandlerAt=function(e){return this[4*e-4+0]},L.prototype._rejectionHandlerAt=function(e){return this[4*e-4+1]},L.prototype._boundValue=function(){},L.prototype._migrateCallback0=function(e){e._bitField;var t=e._fulfillmentHandler0,n=e._rejectionHandler0,r=e._promise0,o=e._receiverAt(0);void 0===o&&(o=s),this._addCallbacks(t,n,r,o,null)},L.prototype._migrateCallbackAt=function(e,t){var n=e._fulfillmentHandlerAt(t),r=e._rejectionHandlerAt(t),o=e._promiseAt(t),i=e._receiverAt(t);void 0===i&&(i=s),this._addCallbacks(n,r,o,i,null)},L.prototype._addCallbacks=function(e,t,n,r,o){var i=this._length();if(i>=65531&&(i=0,this._setLength(0)),0===i)this._promise0=n,this._receiver0=r,"function"==typeof e&&(this._fulfillmentHandler0=c.contextBind(o,e)),"function"==typeof t&&(this._rejectionHandler0=c.contextBind(o,t));else{var a=4*i-4;this[a+2]=n,this[a+3]=r,"function"==typeof e&&(this[a+0]=c.contextBind(o,e)),"function"==typeof t&&(this[a+1]=c.contextBind(o,t))}return this._setLength(i+1),i},L.prototype._proxy=function(e,t){this._addCallbacks(void 0,void 0,t,e,null)},L.prototype._resolveCallback=function(e,t){if(0==(117506048&this._bitField)){if(e===this)return this._rejectCallback(n(),!1);var r=C(e,this);if(!(r instanceof L))return this._fulfill(e);t&&this._propagateFrom(r,2);var o=r._target();if(o!==this){var i=o._bitField;if(0==(50397184&i)){var a=this._length();a>0&&o._migrateCallback0(this);for(var s=1;s<a;++s)o._migrateCallbackAt(this,s);this._setFollowing(),this._setLength(0),this._setFollowee(r)}else if(0!=(33554432&i))this._fulfill(o._value());else if(0!=(16777216&i))this._reject(o._reason());else{var c=new b("late cancellation observer");o._attachExtraTrace(c),this._reject(c)}}else this._reject(n())}},L.prototype._rejectCallback=function(e,t,n){var r=c.ensureErrorObject(e),o=r===e;if(!o&&!n&&O.warnings()){var i="a promise was rejected with a non-error: "+c.classString(e);this._warn(i,!0)}this._attachExtraTrace(r,!!t&&o),this._reject(e)},L.prototype._resolveFromExecutor=function(e){if(e!==_){var t=this;this._captureStackTrace(),this._pushContext();var n=!0,r=this._execute(e,(function(e){t._resolveCallback(e)}),(function(e){t._rejectCallback(e,n)}));n=!1,this._popContext(),void 0!==r&&t._rejectCallback(r,!0)}},L.prototype._settlePromiseFromHandler=function(e,t,n,r){var o=r._bitField;if(0==(65536&o)){var i;r._pushContext(),t===w?n&&"number"==typeof n.length?i=j(e).apply(this._boundValue(),n):(i=I).e=new v("cannot .spread() a non-array: "+c.classString(n)):i=j(e).call(t,n);var a=r._popContext();0==(65536&(o=r._bitField))&&(i===S?r._reject(n):i===I?r._rejectCallback(i.e,!1):(O.checkForgottenReturns(i,a,"",r,this),r._resolveCallback(i)))}},L.prototype._target=function(){for(var e=this;e._isFollowing();)e=e._followee();return e},L.prototype._followee=function(){return this._rejectionHandler0},L.prototype._setFollowee=function(e){this._rejectionHandler0=e},L.prototype._settlePromise=function(e,t,n,o){var i=e instanceof L,s=this._bitField,c=0!=(134217728&s);0!=(65536&s)?(i&&e._invokeInternalOnCancel(),n instanceof T&&n.isFinallyHandler()?(n.cancelPromise=e,j(t).call(n,o)===I&&e._reject(I.e)):t===r?e._fulfill(r.call(n)):n instanceof a?n._promiseCancelled(e):i||e instanceof k?e._cancel():n.
2cancel()):"function"==typeof t?i?(c&&e._setAsyncGuaranteed(),this._settlePromiseFromHandler(t,n,o,e)):t.call(n,o,e):n instanceof a?n._isResolved()||(0!=(33554432&s)?n._promiseFulfilled(o,e):n._promiseRejected(o,e)):i&&(c&&e._setAsyncGuaranteed(),0!=(33554432&s)?e._fulfill(o):e._reject(o))},L.prototype._settlePromiseLateCancellationObserver=function(e){var t=e.handler,n=e.promise,r=e.receiver,o=e.value;"function"==typeof t?n instanceof L?this._settlePromiseFromHandler(t,r,o,n):t.call(r,o,n):n instanceof L&&n._reject(o)},L.prototype._settlePromiseCtx=function(e){this._settlePromise(e.promise,e.handler,e.receiver,e.value)},L.prototype._settlePromise0=function(e,t,n){var r=this._promise0,o=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(r,e,o,t)},L.prototype._clearCallbackDataAtIndex=function(e){var t=4*e-4;this[t+2]=this[t+3]=this[t+0]=this[t+1]=void 0},L.prototype._fulfill=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(e===this){var r=n();return this._attachExtraTrace(r),this._reject(r)}this._setFulfilled(),this._rejectionHandler0=e,(65535&t)>0&&(0!=(134217728&t)?this._settlePromises():g.settlePromises(this),this._dereferenceTrace())}},L.prototype._reject=function(e){var t=this._bitField;if(!((117506048&t)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=e,this._isFinal())return g.fatalError(e,c.isNode);(65535&t)>0?g.settlePromises(this):this._ensurePossibleRejectionHandled()}},L.prototype._fulfillPromises=function(e,t){for(var n=1;n<e;n++){var r=this._fulfillmentHandlerAt(n),o=this._promiseAt(n),i=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(o,r,i,t)}},L.prototype._rejectPromises=function(e,t){for(var n=1;n<e;n++){var r=this._rejectionHandlerAt(n),o=this._promiseAt(n),i=this._receiverAt(n);this._clearCallbackDataAtIndex(n),this._settlePromise(o,r,i,t)}},L.prototype._settlePromises=function(){var e=this._bitField,t=65535&e;if(t>0){if(0!=(16842752&e)){var n=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,n,e),this._rejectPromises(t,n)}else{var r=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,r,e),this._fulfillPromises(t,r)}this._setLength(0)}this._clearCancellationData()},L.prototype._settledValue=function(){var e=this._bitField;return 0!=(33554432&e)?this._rejectionHandler0:0!=(16777216&e)?this._fulfillmentHandler0:void 0},"undefined"!=typeof Symbol&&Symbol.toStringTag&&h.defineProperty(L.prototype,Symbol.toStringTag,{get:function(){return"Object"}}),L.defer=L.pending=function(){return O.deprecated("Promise.defer","new Promise"),{promise:new L(_),resolve:N,reject:R}},c.notEnumerableProp(L,"_makeSelfResolutionError",n),e("./method")(L,_,C,i,O),e("./bind")(L,_,C,O),e("./cancel")(L,k,i,O),e("./direct_resolve")(L),e("./synchronous_inspection")(L),e("./join")(L,k,C,_,g),L.Promise=L,L.version="3.7.2",e("./call_get.js")(L),e("./generators.js")(L,i,_,C,a,O),e("./map.js")(L,k,i,C,_,O),e("./nodeify.js")(L),e("./promisify.js")(L,_),e("./props.js")(L,k,C,i),e("./race.js")(L,_,C,i),e("./reduce.js")(L,k,i,C,_,O),e("./settle.js")(L,k,O),e("./some.js")(L,k,i),e("./timers.js")(L,_,O),e("./using.js")(L,i,C,E,_,O),e("./any.js")(L),e("./each.js")(L,_),e("./filter.js")(L,_),c.toFastProperties(L),c.toFastProperties(L.prototype),D({a:1}),D({b:2}),D({c:3}),D(1),D((function(){})),D(void 0),D(!1),D(new L(_)),O.setBounds(m.firstLineError,c.lastLineError),L}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36,async_hooks:void 0}],23:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i){var a=e("./util");function s(e){var r=this._promise=new t(n);e instanceof t&&(r._propagateFrom(e,3),e.suppressUnhandledRejections()),r._setOnCancel(this),this._values=e,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return a.isArray,a.inherits(s,i),s.prototype.length=function(){return this._length},s.prototype.promise=function(){return this._promise},s.prototype._init=function e(n,i){var s=r(this._values,this._promise);if(s instanceof t){var c=(s=s._target())._bitField;if(this._values=s,0==(50397184&c))return this._promise._setAsyncGuaranteed(),s._then(e,this._reject,void 0,this,i);if(0==(33554432&c))return 0!=(16777216&c)?this._reject(s._reason()):this._cancel();
2s=s._value()}if(null!==(s=a.asArray(s)))0!==s.length?this._iterate(s):-5===i?this._resolveEmptyArray():this._resolve(function(e){switch(e){case-2:return[];case-3:return{};case-6:return new Map}}(i));else{var u=o("expecting an array or an iterable object but got "+a.classString(s)).reason();this._promise._rejectCallback(u,!1)}},s.prototype._iterate=function(e){var n=this.getActualLength(e.length);this._length=n,this._values=this.shouldCopyValues()?new Array(n):this._values;for(var o=this._promise,i=!1,a=null,s=0;s<n;++s){var c=r(e[s],o);a=c instanceof t?(c=c._target())._bitField:null,i?null!==a&&c.suppressUnhandledRejections():null!==a?0==(50397184&a)?(c._proxy(this,s),this._values[s]=c):i=0!=(33554432&a)?this._promiseFulfilled(c._value(),s):0!=(16777216&a)?this._promiseRejected(c._reason(),s):this._promiseCancelled(s):i=this._promiseFulfilled(c,s)}i||o._setAsyncGuaranteed()},s.prototype._isResolved=function(){return null===this._values},s.prototype._resolve=function(e){this._values=null,this._promise._fulfill(e)},s.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},s.prototype._reject=function(e){this._values=null,this._promise._rejectCallback(e,!1)},s.prototype._promiseFulfilled=function(e,t){return this._values[t]=e,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},s.prototype._promiseCancelled=function(){return this._cancel(),!0}
2,s.prototype._promiseRejected=function(e){return this._totalResolved++,this._reject(e),!0},s.prototype._resultCancelled=function(){if(!this._isResolved()){var e=this._values;if(this._cancel(),e instanceof t)e.cancel();else for(var n=0;n<e.length;++n)e[n]instanceof t&&e[n].cancel()}},s.prototype.shouldCopyValues=function(){return!0},s.prototype.getActualLength=function(e){return e},s}},{"./util":36}],24:[function(e,t,n){"use strict";t.exports=function(t,n){var r={},o=e("./util"),i=e("./nodeback"),a=o.withAppended,s=o.maybeWrapAsError,c=o.canEvaluate,u=e("./errors").TypeError,l={__isPromisified__:!0},d=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),p=function(e){return o.isIdentifier(e)&&"_"!==e.charAt(0)&&"constructor"!==e};function f(e){return!d.test(e)}function h(e){try{return!0===e.__isPromisified__}catch(e){return!1}}function m(e,t,n){var r=o.getDataPropertyOrDefault(e,t+n,l);return!!r&&h(r)}var g=c?void 0:function(e,c,u,l,d,p){var f=function(){return this}(),h=e;function m(){var o=c;c===r&&(o=this);var u=new t(n);u._captureStackTrace();var l="string"==typeof h&&this!==f?this[h]:e,d=i(u,p);try{l.apply(o,a(arguments,d))}catch(e){u._rejectCallback(s(e),!0,!0)}return u._isFateSealed()||u._setAsyncGuaranteed(),u}return"string"==typeof h&&(e=l),o.notEnumerableProp(m,"__isPromisified__",!0),m};function y(e,t,n,i,a){for(var s=new RegExp(t.replace(/([$])/,"\\$")+"$"),c=function(e,t,n,r){for(var i=o.inheritedDataKeys(e),a=[],s=0;s<i.length;++s){var c=i[s],l=e[c],d=r===p||p(c);"function"!=typeof l||h(l)||m(e,c,t)||!r(c,l,e,d)||a.push(c,l)}return function(e,t,n){for(var r=0;r<e.length;r+=2){var o=e[r];if(n.test(o))for(var i=o.replace(n,""),a=0;a<e.length;a+=2)if(e[a]===i)throw new u("Cannot promisify an API that has normal methods with '%s'-suffix\n\n See http://goo.gl/MqrFmX\n".replace("%s",t))}}(a,t,n),a}(e,t,s,n),l=0,d=c.length;l<d;l+=2){var f=c[l],y=c[l+1],v=f+t;if(i===g)e[v]=g(f,r,f,y,t,a);else{var b=i(y,(function(){return g(f,r,f,y,t,a)}));o.notEnumerableProp(b,"__isPromisified__",!0),e[v]=b}}return o.toFastProperties(e),e}t.promisify=function(e,t){if("function"!=typeof e)throw new u("expecting a function but got "+o.classString(e));if(h(e))return e;var n,i,a,s=(n=e,i=void 0===(t=Object(t)).context?r:t.context,a=!!t.multiArgs,g(n,i,void 0,n,null,a));return o.copyDescriptors(e,s,f),s},t.promisifyAll=function(e,t){if("function"!=typeof e&&"object"!=typeof e)throw new u("the target of promisifyAll must be an object or a function\n\n See http://goo.gl/MqrFmX\n");var n=!!(t=Object(t)).multiArgs,r=t.suffix;"string"!=typeof r&&(r="Async");var i=t.filter;"function"!=typeof i&&(i=p);var a=t.promisifier;if("function"!=typeof a&&(a=g),!o.isIdentifier(r))throw new RangeError("suffix must be a valid identifier\n\n See http://goo.gl/MqrFmX\n");for(var s=o.inheritedDataKeys(e),c=0;c<s.length;++c){var l=e[s[c]];"constructor"!==s[c]&&o.isClass(l)&&(y(l.prototype,r,i,a,n),y(l,r,i,a,n))}return y(e,r,i,a,n)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(e,t,n){"use strict";t.exports=function(t,n,r,o){var i,a=e("./util"),s=a.isObject,c=e("./es5");"function"==typeof Map&&(i=Map);var u=function(){var e=0,t=0;function n(n,r){this[e]=n,this[e+t]=r,e++}return function(r){t=r.size,e=0;var o=new Array(2*r.size);return r.forEach(n,o),o}}();function l(e){var t,n=!1;if(void 0!==i&&e instanceof i)t=u(e),n=!0;else{var r=c.keys(e),o=r.length;t=new Array(2*o);for(var a=0;a<o;++a){var s=r[a];t[a]=e[s],t[a+o]=s}}this.constructor$(t),this._isMap=n,this._init$(void 0,n?-6:-3)}function d(e){var n,i=r(e);return s(i)?(n=i instanceof t?i._then(t.props,void 0,void 0,void 0,void 0):new l(i).promise(),i instanceof t&&n._propagateFrom(i,2),n):o("cannot await properties of a non-object\n\n See http://goo.gl/MqrFmX\n")}a.inherits(l,n),l.prototype._init=function(){},l.prototype._promiseFulfilled=function(e,t){if(this._values[t]=e,++this._totalResolved>=this._length){var n;if(this._isMap)n=function(e){for(var t=new i,n=e.length/2|0,r=0;r<n;++r){var o=e[n+r],a=e[r];t.set(o,a)}return t}(this._values);else{n={};for(var r=this.length(),o=0,a=this.length();o<a;++o)n[this._values[o+r]]=this._values[o]}return this._resolve(n),!0}return!1},l.prototype.shouldCopyValues=function(){return!1},l.prototype.getActualLength=function(e){return e>>1},t.prototype.props=function(){return d(this)},t.props=function(e){return d(e)}}}
2,{"./es5":13,"./util":36}],26:[function(e,t,n){"use strict";function r(e){this._capacity=e,this._length=0,this._front=0}r.prototype._willBeOverCapacity=function(e){return this._capacity<e},r.prototype._pushOne=function(e){var t=this.length();this._checkCapacity(t+1),this[this._front+t&this._capacity-1]=e,this._length=t+1},r.prototype.push=function(e,t,n){var r=this.length()+3;if(this._willBeOverCapacity(r))return this._pushOne(e),this._pushOne(t),void this._pushOne(n);var o=this._front+r-3;this._checkCapacity(r);var i=this._capacity-1;this[o+0&i]=e,this[o+1&i]=t,this[o+2&i]=n,this._length=r},r.prototype.shift=function(){var e=this._front,t=this[e];return this[e]=void 0,this._front=e+1&this._capacity-1,this._length--,t},r.prototype.length=function(){return this._length},r.prototype._checkCapacity=function(e){this._capacity<e&&this._resizeTo(this._capacity<<1)},r.prototype._resizeTo=function(e){var t=this._capacity;this._capacity=e,function(e,t,n,r,o){for(var i=0;i<o;++i)n[i+r]=e[i+0],e[i+0]=void 0}(this,0,this,t,this._front+this._length&t-1)},t.exports=r},{}],27:[function(e,t,n){"use strict";t.exports=function(t,n,r,o){var i=e("./util");function a(e,s){var c,u=r(e);if(u instanceof t)return(c=u).then((function(e){return a(e,c)}));if(null===(e=i.asArray(e)))return o("expecting an array or an iterable object but got "+i.classString(e));var l=new t(n);void 0!==s&&l._propagateFrom(s,3);for(var d=l._fulfill,p=l._reject,f=0,h=e.length;f<h;++f){var m=e[f];(void 0!==m||f in e)&&t.cast(m)._then(d,p,void 0,l,null)}return l}t.race=function(e){return a(e,void 0)},t.prototype.race=function(){return a(this,void 0)}}},{"./util":36}],28:[function(e,t,n){"use strict";t.exports=function(t,n,r,o,i,a){var s=e("./util"),c=s.tryCatch;function u(e,n,r,o){this.constructor$(e);var a=t._getContext();this._fn=s.contextBind(a,n),void 0!==r&&(r=t.resolve(r))._attachCancellationCallback(this),this._initialValue=r,this._currentCancellable=null,this._eachValues=o===i?Array(this._length):0===o?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function l(e,t){this.isFulfilled()?t._resolve(e):t._reject(e)}function d(e,t,n,o){return"function"!=typeof t?r("expecting a function but got "+s.classString(t)):new u(e,t,n,o).promise()}function p(e){this.accum=e,this.array._gotAccum(e);var n=o(this.value,this.array._promise);return n instanceof t?(this.array._currentCancellable=n,n._then(f,void 0,void 0,this,void 0)):f.call(this,n)}function f(e){var n,r=this.array,o=r._promise,i=c(r._fn);o._pushContext(),(n=void 0!==r._eachValues?i.call(o._boundValue(),e,this.index,this.length):i.call(o._boundValue(),this.accum,e,this.index,this.length))instanceof t&&(r._currentCancellable=n);var s=o._popContext();return a.checkForgottenReturns(n,s,void 0!==r._eachValues?"Promise.each":"Promise.reduce",o),n}s.inherits(u,n),u.prototype._gotAccum=function(e){void 0!==this._eachValues&&null!==this._eachValues&&e!==i&&this._eachValues.push(e)},u.prototype._eachComplete=function(e){return null!==this._eachValues&&this._eachValues.push(e),this._eachValues},u.prototype._init=function(){},u.prototype._resolveEmptyArray=function(){this._resolve(void 0!==this._eachValues?this._eachValues:this._initialValue)},u.prototype.shouldCopyValues=function(){return!1},u.prototype._resolve=function(e){this._promise._resolveCallback(e),this._values=null},u.prototype._resultCancelled=function(e){if(e===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof t&&this._currentCancellable.cancel(),this._initialValue instanceof t&&this._initialValue.cancel())},u.prototype._iterate=function(e){var n,r;this._values=e;var o=e.length;void 0!==this._initialValue?(n=this._initialValue,r=0):(n=t.resolve(e[0]),r=1),this._currentCancellable=n;for(var i=r;i<o;++i){var a=e[i];a instanceof t&&a.suppressUnhandledRejections()}if(!n.isRejected())for(;r<o;++r){var s={accum:null,value:e[r],index:r,length:o,array:this};n=n._then(p,void 0,void 0,s,void 0),0==(127&r)&&n._setNoAsyncGuarantee()}void 0!==this._eachValues&&(n=n._then(this._eachComplete,void 0,void 0,this,void 0)),n._then(l,l,void 0,n,this)},t.prototype.reduce=function(e,t){return d(this,e,t,null)},t.reduce=function(e,t,n,r){return d(e,t,n,r)}}},{"./util":36}],29:[function(e,t,r){"use strict";var i,a,s,c,u,l=e("./util"),d=l.getNativePromise();if(l.isNode&&"undefined"==typeof MutationObserver){var p=n.g.setImmediate,f=o.nextTick;i=l.isRecentNode?function(e){p.call(n.g,e)}:function(e){f.call(o,e)}}else if("function"==typeof d&&"function"==typeof d.resolve){var h=d.resolve();i=function(e){h.then(e)}}else i="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)||!("classList"in document.documentElement)?"undefined"!=typeof setImmediate?function(e){setImmediate(e)}:"undefined"!=typeof setTimeout?function(e){setTimeout(e,0)}:function(){throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n")}:(a=document.createElement("div"),s={attributes:!0},c=!1,u=document.createElement("div"),new MutationObserver((function(){a.classList.toggle("foo"),c=!1})).observe(u,s),function(e){var t=new MutationObserver((function(){t.disconnect(),e()}));t.observe(a,s),c||(c=!0,u.classList.toggle("foo"))});t.exports=i},{"./util":36}],30:[function(e,t,n){"use strict";
2t.exports=function(t,n,r){var o=t.PromiseInspection;function i(e){this.constructor$(e)}e("./util").inherits(i,n),i.prototype._promiseResolved=function(e,t){return this._values[e]=t,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},i.prototype._promiseFulfilled=function(e,t){var n=new o;return n._bitField=33554432,n._settledValueField=e,this._promiseResolved(t,n)},i.prototype._promiseRejected=function(e,t){var n=new o;return n._bitField=16777216,n._settledValueField=e,this._promiseResolved(t,n)},t.settle=function(e){return r.deprecated(".settle()",".reflect()"),new i(e).promise()},t.allSettled=function(e){return new i(e).promise()},t.prototype.settle=function(){return t.settle(this)}}},{"./util":36}],31:[function(e,t,n){"use strict";t.exports=function(t,n,r){var o=e("./util"),i=e("./errors").RangeError,a=e("./errors").AggregateError,s=o.isArray,c={};function u(e){this.constructor$(e),this._howMany=0,this._unwrap=!1,this._initialized=!1}function l(e,t){if((0|t)!==t||t<0)return r("expecting a positive integer\n\n See http://goo.gl/MqrFmX\n");var n=new u(e),o=n.promise();return n.setHowMany(t),n.init(),o}o.inherits(u,n),u.prototype._init=function(){if(this._initialized)if(0!==this._howMany){this._init$(void 0,-5);var e=s(this._values);!this._isResolved()&&e&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},u.prototype.init=function(){this._initialized=!0,this._init()},u.prototype.setUnwrap=function(){this._unwrap=!0},u.prototype.howMany=function(){return this._howMany},u.prototype.setHowMany=function(e){this._howMany=e},u.prototype._promiseFulfilled=function(e){return this._addFulfilled(e),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)}
2,u.prototype._promiseRejected=function(e){return this._addRejected(e),this._checkOutcome()},u.prototype._promiseCancelled=function(){return this._values instanceof t||null==this._values?this._cancel():(this._addRejected(c),this._checkOutcome())},u.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new a,t=this.length();t<this._values.length;++t)this._values[t]!==c&&e.push(this._values[t]);return e.length>0?this._reject(e):this._cancel(),!0}return!1},u.prototype._fulfilled=function(){return this._totalResolved},u.prototype._rejected=function(){return this._values.length-this.length()},u.prototype._addRejected=function(e){this._values.push(e)},u.prototype._addFulfilled=function(e){this._values[this._totalResolved++]=e},u.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},u.prototype._getRangeError=function(e){var t="Input array must contain at least "+this._howMany+" items but contains only "+e+" items";return new i(t)},u.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},t.some=function(e,t){return l(e,t)},t.prototype.some=function(e){return l(this,e)},t._SomePromiseArray=u}},{"./errors":12,"./util":36}],32:[function(e,t,n){"use strict";t.exports=function(e){function t(e){void 0!==e?(e=e._target(),this._bitField=e._bitField,this._settledValueField=e._isFateSealed()?e._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}t.prototype._settledValue=function(){return this._settledValueField};var n=t.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},r=t.prototype.error=t.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n See http://goo.gl/MqrFmX\n");return this._settledValue()},o=t.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},i=t.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},a=t.prototype.isPending=function(){return 0==(50397184&this._bitField)},s=t.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};t.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},e.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},e.prototype._isCancelled=function(){return this._target().__isCancelled()},e.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},e.prototype.isPending=function(){return a.call(this._target())},e.prototype.isRejected=function(){return i.call(this._target())},e.prototype.isFulfilled=function(){return o.call(this._target())},e.prototype.isResolved=function(){return s.call(this._target())},e.prototype.value=function(){return n.call(this._target())},e.prototype.reason=function(){var e=this._target();return e._unsetRejectionIsUnhandled(),r.call(e)},e.prototype._value=function(){return this._settledValue()},e.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},e.PromiseInspection=t}},{}],33:[function(e,t,n){"use strict";t.exports=function(t,n){var r=e("./util"),o=r.errorObj,i=r.isObject,a={}.hasOwnProperty;return function(e,s){if(i(e)){if(e instanceof t)return e;var c=function(e){try{return function(e){return e.then}(e)}catch(e){return o.e=e,o}}(e);if(c===o){s&&s._pushContext();var u=t.reject(c.e);return s&&s._popContext(),u}if("function"==typeof c)return function(e){try{return a.call(e,"_promise0")}catch(e){return!1}}(e)?(u=new t(n),e._then(u._fulfill,u._reject,void 0,u,null),u):function(e,i,a){var s=new t(n),c=s;a&&a._pushContext(),s._captureStackTrace(),a&&a._popContext();var u=!0,l=r.tryCatch(i).call(e,(function(e){s&&(s._resolveCallback(e),s=null)}),(function(e){s&&(s._rejectCallback(e,u,!0),s=null)}));return u=!1,s&&l===o&&(s._rejectCallback(l.e,!0,!0),s=null),c}(e,c,s)}return e}}},{"./util":36}],34:[function(e,t,n){"use strict";t.exports=function(t,n,r){var o=e("./util"),i=t.TimeoutError;function a(e){this.handle=e}a.prototype._resultCancelled=function(){clearTimeout(this.handle)};var s=function(e){return c(+this).thenReturn(e)},c=t.delay=function(e,o){var i,c;return void 0!==o?(i=t.resolve(o)._then(s,null,null,e,void 0),r.cancellation()&&o instanceof t&&i._setOnCancel(o)):(i=new t(n),c=setTimeout((function(){i._fulfill()}),+e),r.cancellation()&&i._setOnCancel(new a(c)),i._captureStackTrace()),i._setAsyncGuaranteed(),i};function u(e){return clearTimeout(this.handle),e}function l(e){throw clearTimeout(this.handle),e}t.prototype.delay=function(e){return c(e,this)},t.prototype.timeout=function(e,t){var n,s;e=+e;var c=new a(setTimeout((function(){n.isPending()&&function(e,t,n){var r;r="string"!=typeof t?t instanceof Error?t:new i("operation timed out"):new i(t),o.markAsOriginatingFromRejection(r),e._attachExtraTrace(r),e._reject(r),null!=n&&n.cancel()}(n,t,s)}),e));return r.cancellation()?(s=this.then(),(n=s._then(u,l,void 0,c,void 0))._setOnCancel(c)):n=this._then(u,l,void 0,c,void 0),n}}},{"./util":36}],35:[function(e,t,n){"use strict";
2t.exports=function(t,n,r,o,i,a){var s=e("./util"),c=e("./errors").TypeError,u=e("./util").inherits,l=s.errorObj,d=s.tryCatch,p={};function f(e){setTimeout((function(){throw e}),0)}function h(e,n){var o=0,a=e.length,s=new t(i);return function i(){if(o>=a)return s._fulfill();var c=function(e){var t=r(e);return t!==e&&"function"==typeof e._isDisposable&&"function"==typeof e._getDisposer&&e._isDisposable()&&t._setDisposable(e._getDisposer()),t}(e[o++]);if(c instanceof t&&c._isDisposable()){try{c=r(c._getDisposer().tryDispose(n),e.promise)}catch(e){return f(e)}if(c instanceof t)return c._then(i,f,null,null,null)}i()}(),s}function m(e,t,n){this._data=e,this._promise=t,this._context=n}function g(e,t,n){this.constructor$(e,t,n)}function y(e){return m.isDisposer(e)?(this.resources[this.index]._setDisposable(e),e.promise()):e}function v(e){this.length=e,this.promise=null,this[e-1]=null}m.prototype.data=function(){return this._data},m.prototype.promise=function(){return this._promise},m.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():p},m.prototype.tryDispose=function(e){var t=this.resource(),n=this._context;void 0!==n&&n._pushContext();var r=t!==p?this.doDispose(t,e):null;return void 0!==n&&n._popContext(),this._promise._unsetDisposable(),this._data=null,r},m.isDisposer=function(e){return null!=e&&"function"==typeof e.resource&&"function"==typeof e.tryDispose},u(g,m),g.prototype.doDispose=function(e,t){return this.data().call(e,e,t)},v.prototype._resultCancelled=function(){for(var e=this.length,n=0;n<e;++n){var r=this[n];r instanceof t&&r.cancel()}},t.using=function(){var e=arguments.length;if(e<2)return n("you must pass at least 2 arguments to Promise.using");var o,i=arguments[e-1];if("function"!=typeof i)return n("expecting a function but got "+s.classString(i));var c=!0;2===e&&Array.isArray(arguments[0])?(e=(o=arguments[0]).length,c=!1):(o=arguments,e--);for(var u=new v(e),p=0;p<e;++p){var f=o[p];if(m.isDisposer(f)){var g=f;(f=f.promise())._setDisposable(g)}else{var b=r(f);b instanceof t&&(f=b._then(y,null,null,{resources:u,index:p},void 0))}u[p]=f}var _=new Array(u.length);for(p=0;p<_.length;++p)_[p]=t.resolve(u[p]).reflect();var w=t.all(_).then((function(e){for(var t=0;t<e.length;++t){var n=e[t];if(n.isRejected())return l.e=n.error(),l;if(!n.isFulfilled())return void w.cancel();e[t]=n.value()}S._pushContext(),i=d(i);var r=c?i.apply(void 0,e):i(e),o=S._popContext();return a.checkForgottenReturns(r,o,"Promise.using",S),r})),S=w.lastly((function(){var e=new t.PromiseInspection(w);return h(u,e)}));return u.promise=S,S._setOnCancel(u),S},t.prototype._setDisposable=function(e){this._bitField=131072|this._bitField,this._disposer=e},t.prototype._isDisposable=function(){return(131072&this._bitField)>0},t.prototype._getDisposer=function(){return this._disposer},t.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},t.prototype.disposer=function(e){if("function"==typeof e)return new g(e,this,o());throw new c}}},{"./errors":12,"./util":36}],36:[function(e,t,r){"use strict";var i,a=e("./es5"),s="undefined"==typeof navigator,c={e:{}},u="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:void 0!==this?this:null;function l(){try{var e=i;return i=null,e.apply(this,arguments)}catch(e){return c.e=e,c}}function d(e){return null==e||!0===e||!1===e||"string"==typeof e||"number"==typeof e}function p(e,t,n){if(d(e))return e;var r={value:n,configurable:!0,enumerable:!1,writable:!0};return a.defineProperty(e,t,r),e}var f=function(){var e=[Array.prototype,Object.prototype,Function.prototype],t=function(t){for(var n=0;n<e.length;++n)if(e[n]===t)return!0;return!1};if(a.isES5){var n=Object.getOwnPropertyNames;return function(e){for(var r=[],o=Object.create(null);null!=e&&!t(e);){var i;try{i=n(e)}catch(e){return r}for(var s=0;s<i.length;++s){var c=i[s];if(!o[c]){o[c]=!0;var u=Object.getOwnPropertyDescriptor(e,c);null!=u&&null==u.get&&null==u.set&&r.push(c)}}e=a.getPrototypeOf(e)}return r}}var r={}.hasOwnProperty;return function(n){if(t(n))return[];var o=[];e:for(var i in n)if(r.call(n,i))o.push(i);else{for(var a=0;a<e.length;++a)if(r.call(e[a],i))continue e;o.push(i)}return o}}(),h=/this\s*\.\s*\S+\s*=/;var m=/^[a-z$_][a-z$_0-9]*$/i;function g(e){try{return e+""}
2catch(e){return"[no string representation]"}}function y(e){return e instanceof Error||null!==e&&"object"==typeof e&&"string"==typeof e.message&&"string"==typeof e.name}function v(e){return y(e)&&a.propertyIsWritable(e,"stack")}var b="stack"in new Error?function(e){return v(e)?e:new Error(g(e))}:function(e){if(v(e))return e;try{throw new Error(g(e))}catch(e){return e}};function _(e){return{}.toString.call(e)}var w=function(e){return a.isArray(e)?e:null};if("undefined"!=typeof Symbol&&Symbol.iterator){var S="function"==typeof Array.from?function(e){return Array.from(e)}:function(e){for(var t,n=[],r=e[Symbol.iterator]();!(t=r.next()).done;)n.push(t.value);return n};w=function(e){return a.isArray(e)?e:null!=e&&"function"==typeof e[Symbol.iterator]?S(e):null}}var C,k=void 0!==o&&"[object process]"===_(o).toLowerCase(),x=void 0!==o&&void 0!==o.env;var E,O={setReflectHandler:function(e){C=e},isClass:function(e){try{if("function"==typeof e){var t=a.names(e.prototype),n=a.isES5&&t.length>1,r=t.length>0&&!(1===t.length&&"constructor"===t[0]),o=h.test(e+"")&&a.names(e).length>0;if(n||r||o)return!0}return!1}catch(e){return!1}},isIdentifier:function(e){return m.test(e)},inheritedDataKeys:f,getDataPropertyOrDefault:function(e,t,n){if(!a.isES5)return{}.hasOwnProperty.call(e,t)?e[t]:void 0;var r=Object.getOwnPropertyDescriptor(e,t);return null!=r?null==r.get&&null==r.set?r.value:n:void 0},thrower:function(e){throw e},isArray:a.isArray,asArray:w,notEnumerableProp:p,isPrimitive:d,isObject:function(e){return"function"==typeof e||"object"==typeof e&&null!==e},isError:y,canEvaluate:s,errorObj:c,tryCatch:function(e){return i=e,l},inherits:function(e,t){var n={}.hasOwnProperty;function r(){for(var r in this.constructor=e,this.constructor$=t,t.prototype)n.call(t.prototype,r)&&"$"!==r.charAt(r.length-1)&&(this[r+"$"]=t.prototype[r])}return r.prototype=t.prototype,e.prototype=new r,e.prototype},withAppended:function(e,t){var n,r=e.length,o=new Array(r+1);for(n=0;n<r;++n)o[n]=e[n];return o[n]=t,o},maybeWrapAsError:function(e){return d(e)?new Error(g(e)):e},toFastProperties:function(e){function t(){}t.prototype=e;var n=new t;function r(){return typeof n.foo}return r(),r(),e},filledRange:function(e,t,n){for(var r=new Array(e),o=0;o<e;++o)r[o]=t+o+n;return r},toString:g,canAttachTrace:v,ensureErrorObject:b,originatesFromRejection:function(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)},markAsOriginatingFromRejection:function(e){try{p(e,"isOperational",!0)}catch(e){}},classString:_,copyDescriptors:function(e,t,n){for(var r=a.names(e),o=0;o<r.length;++o){var i=r[o];if(n(i))try{a.defineProperty(t,i,a.getDescriptor(e,i))}catch(e){}}},isNode:k,hasEnvVariables:x,env:function(e){return x?o.env[e]:void 0},global:u,getNativePromise:function(){if("function"==typeof Promise)try{if("[object Promise]"===_(new Promise((function(){}))))return Promise}catch(e){}},contextBind:function(e,t){if(null===e||"function"!=typeof t||t===C)return t;null!==e.domain&&(t=e.domain.bind(t));var n=e.async;if(null!==n){var r=t;t=function(){var e=new Array(2).concat([].slice.call(arguments));return e[0]=r,e[1]=this,n.runInAsyncScope.apply(n,e)}}return t}};O.isRecentNode=O.isNode&&(o.versions&&o.versions.node?E=o.versions.node.split(".").map(Number):o.version&&(E=o.version.split(".").map(Number)),0===E[0]&&E[1]>10||E[0]>0),O.nodeSupportsAsyncResource=O.isNode&&function(){var t=!1;try{t="function"==typeof e("async_hooks").AsyncResource.prototype.runInAsyncScope}catch(e){t=!1}return t}(),O.isNode&&O.toFastProperties(o);try{throw new Error}catch(e){O.lastLineError=e}t.exports=O},{"./es5":13,async_hooks:void 0}]},{},[4])(4)},e.exports=r(),"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)},157915:(e,t,n)=>{n(258294),n(321309),n(833929),n(474050),n(640063),n(639737),n(868852),n(856278),n(6927),n(253497),n(217814),n(395377)},395377:(e,t,n)=>{!function(e){"use strict";var t=function(n,r){this.options=e.extend({},t.DEFAULTS,r);var o=this.options.target===t.DEFAULTS.target?e(this.options.target):e(document).find(this.options.target);
vendor: 5,565 bytes, line 2
2this.$target=o.on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each((function(){var r=e(this),o=r.data("bs.affix"),i="object"==typeof n&&n;o||r.data("bs.affix",o=new t(this,i)),"string"==typeof n&&o[n]()}))}t.VERSION="3.4.1",t.RESET="affix affix-top affix-bottom",t.DEFAULTS={offset:0,target:window},t.prototype.getState=function(e,t,n,r){var o=this.$target.scrollTop(),i=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=i.top)&&"bottom":!(o+a<=e-r)&&"bottom";var s=null==this.affixed,c=s?o:i.top;return null!=n&&o<=n?"top":null!=r&&c+(s?a:t)>=e-r&&"bottom"},t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var e=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-e},t.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},t.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),r=this.options.offset,o=r.top,i=r.bottom,a=Math.max(e(document).height(),e(document.body).height());"object"!=typeof r&&(i=o=r),"function"==typeof o&&(o=r.top(this.$element)),"function"==typeof i&&(i=r.bottom(this.$element));var s=this.getState(a,n,o,i);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var c="affix"+(s?"-"+s:""),u=e.Event(c+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(c).trigger(c.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-n-i})}};var r=e.fn.affix;e.fn.affix=n,e.fn.affix.Constructor=t,e.fn.affix.noConflict=function(){return e.fn.affix=r,this},e(window).on("load",(function(){e('[data-spy="affix"]').each((function(){var t=e(this),r=t.data();r.offset=r.offset||{},null!=r.offsetBottom&&(r.offset.bottom=r.offsetBottom),null!=r.offsetTop&&(r.offset.top=r.offsetTop),n.call(t,r)}))}))}(n(619755))},321309:(e,t,n)=>{!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(t){var r=e(this),o=r.attr("data-target");o||(o=(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]*$)/,"")),o="#"===o?[]:o;var i=e(document).find(o);function a(){i.detach().trigger("closed.bs.alert").remove()}t&&t.preventDefault(),i.length||(i=r.closest(".alert")),i.trigger(t=e.Event("close.bs.alert")),t.isDefaultPrevented()||(i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a())};var r=e.fn.alert;e.fn.alert=function(t){return this.each((function(){var r=e(this),o=r.data("bs.alert");o||r.data("bs.alert",o=new n(this)),"string"==typeof t&&o[t].call(r)}))},e.fn.alert.Constructor=n,e.fn.alert.noConflict=function(){return e.fn.alert=r,this},e(document).on("click.bs.alert.data-api",t,n.prototype.close)}(n(619755))},833929:(e,t,n)=>{!function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.isLoading=!1};function n(n){return this.each((function(){var r=e(this),o=r.data("bs.button"),i="object"==typeof n&&n;o||r.data("bs.button",o=new t(this,i)),"toggle"==n?o.toggle():n&&o.setState(n)}))}t.VERSION="3.4.1",t.DEFAULTS={loadingText:"loading..."},t.prototype.setState=function(t){var n="disabled",r=this.$element,o=r.is("input")?"val":"html",i=r.data();t+="Text",null==i.resetText&&r.data("resetText",r[o]()),setTimeout(e.proxy((function(){r[o](null==i[t]?this.options[t]:i[t]),"loadingText"==t?(this.isLoading=!0,r.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(n).removeAttr(n).prop(n,!1))}),this),0)},t.prototype.toggle=function(){var e=!0,t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(e=!1),t.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),e&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var r=e.fn.button;e.fn.button=n,e.fn.button.Constructor=t,e.fn.button.noConflict=function(){return e.fn.button=r,this},e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var r=e(t.target).closest(".btn");n.call(r,"toggle"),e(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){e(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))}))}(n(619755))},474050:(e,t,n)=>{!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("key
2down.bs.carousel",e.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",e.proxy(this.pause,this)).on("mouseleave.bs.carousel",e.proxy(this.cycle,this))};function n(n){return this.each((function(){var r=e(this),o=r.data("bs.carousel"),i=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n),a="string"==typeof n?n:i.slide;o||r.data("bs.carousel",o=new t(this,i)),"number"==typeof n?o.to(n):a?o[a]():i.interval&&o.pause().cycle()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=600,t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},t.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},t.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},t.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;var r=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(r)},t.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",(function(){t.to(e)})):n==e?this.pause().cycle():this.slide(e>n?"next":"prev",this.$items.eq(e))},t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},t.prototype.next=function(){if(!this.sliding)return this.slide("next")},t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},t.prototype.slide=function(n,r){var o=this.$element.find(".item.active"),i=r||this.getItemForDirection(n,o),a=this.interval,s="next"==n?"left":"right",c=this;if(i.hasClass("active"))return this.sliding=!1;var u=i[0],l=e.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(l),!l.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=e(this.$indicators.children()[this.getItemIndex(i)]);d&&d.addClass("active")}var p=e.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return e.support.transition&&this.$element.hasClass("slide")?(i.addClass(n),"object"==typeof i&&i.length&&i[0].offsetWidth,o.addClass(s),i.addClass(s),o.one("bsTransitionEnd",(function(){i.removeClass([n,s].join(" ")).addClass("active"),o.removeClass(["active",s].join(" ")),c.sliding=!1,setTimeout((function(){c.$element.trigger(p)}),0)})).emulateTransitionEnd(t.TRANSITION_DURATION)):(o.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(p)),a&&this.cycle(),this}};var r=e.fn.carousel;e.fn.carousel=n,e.fn.carousel.Constructor=t,e.fn.carousel.noConflict=function(){return e.fn.carousel=r,this};var o=function(t){var r=e(this),o=r.attr("href");o&&(o=o.replace(/.*(?=#[^\s]+$)/,""));var i=r.attr("data-target")||o,a=e(document).find(i);if(a.hasClass("carousel")){var s=e.extend({},a.data(),r.data()),c=r.attr("data-slide-to");c&&(s.interval=!1),n.call(a,s),c&&a.data("bs.carousel").to(c),t.preventDefault()}};e(document).on("click.bs.carousel.data-api","[data-slide]",o).on("click.bs.carousel.data-api","[data-slide-to]",o),e(window).on("load",(function(){e('[data-ride="carousel"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(n(619755))},640063:(e,t,n)=>{!function(e){"use strict";var t=function(n,r){this.$element=e(n),this.options=e.extend({},t.DEFAULTS,r),this.$trigger=e('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(t){var n,r=t.attr("data-target")||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return e(document).find(r)}function r(n){return this.each((function(){var r=e(this),o=r.data("bs.collapse"),i=e.extend({},t.DEFAULTS,r.data(),"object"==typeof n&&n);!o&&i.toggle&&/show|hide/.test(n)&&(i.toggle=!1),o||r.data("bs.collapse",o=new t(this,i)),"string"==typeof n&&o[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=350,t.DEFAULTS={toggle:!0},t.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},t.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(n=o.data("bs.collapse"))&&n.transitioning)){var i=e.Event("show.bs.collapse");if(this.$element.trigger(i),!i.isDefaultPrevented()){o&&o.length&&(r.call(o,"hide"),n||o.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return s.call(this);var c=e.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",e.proxy(s,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[a](this.$element[0][c])}}}},t.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=e.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var r=this.dimension();this.$element[r](this.$element[r]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!e.support.transition)return o.call(this);this.$element[r](0).one("bsTransitionEnd",e.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}}},t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},t.prototype.getParent=function(){return e(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(e.proxy((function(t,r){var o=e(r);this.addAriaAndCollapsedClass(n(o),o)}),this)).end()},t.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var o=e.fn.collapse;e.fn.collapse=r,e.fn.collapse.Constructor=t,e.fn.collapse.noConflict=function(){return e.fn.collapse=o,this},e(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(t){var o=e(this);o.attr("data-target")||t.preventDefault();var i=n(o),a=i.data("bs.collapse")?"toggle":o.data();r.call(i,a)}))}(n(619755))},639737:(e,t,n)=>{!function(e){"use strict";
2var t='[data-toggle="dropdown"]',n=function(t){e(t).on("click.bs.dropdown",this.toggle)};function r(t){var n=t.attr("data-target");n||(n=(n=t.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r="#"!==n?e(document).find(n):null;return r&&r.length?r:t.parent()}function o(n){n&&3===n.which||(e(".dropdown-backdrop").remove(),e(t).each((function(){var t=e(this),o=r(t),i={relatedTarget:this};o.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&e.contains(o[0],n.target)||(o.trigger(n=e.Event("hide.bs.dropdown",i)),n.isDefaultPrevented()||(t.attr("aria-expanded","false"),o.removeClass("open").trigger(e.Event("hidden.bs.dropdown",i)))))})))}n.VERSION="3.4.1",n.prototype.toggle=function(t){var n=e(this);if(!n.is(".disabled, :disabled")){var i=r(n),a=i.hasClass("open");if(o(),!a){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&e(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(e(this)).on("click",o);var s={relatedTarget:this};if(i.trigger(t=e.Event("show.bs.dropdown",s)),t.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(e.Event("shown.bs.dropdown",s))}return!1}},n.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var o=e(this);if(n.preventDefault(),n.stopPropagation(),!o.is(".disabled, :disabled")){var i=r(o),a=i.hasClass("open");if(!a&&27!=n.which||a&&27==n.which)return 27==n.which&&i.find(t).trigger("focus"),o.trigger("click");var s=i.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var c=s.index(n.target);38==n.which&&c>0&&c--,40==n.which&&c<s.length-1&&c++,~c||(c=0),s.eq(c).trigger("focus")}}}};var i=e.fn.dropdown;e.fn.dropdown=function(t){return this.each((function(){var r=e(this),o=r.data("bs.dropdown");o||r.data("bs.dropdown",o=new n(this)),"string"==typeof t&&o[t].call(r)}))},e.fn.dropdown.Constructor=n,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=i,this},e(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",(function(e){e.stopPropagation()})).on("click.bs.dropdown.data-api",t,n.prototype.toggle).on("keydown.bs.dropdown.data-api",t,n.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",n.prototype.keydown)}(n(619755))},868852:(e,t,n)=>{!function(e){"use strict";var t=function(t,n){this.options=n,this.$body=e(document.body),this.$element=e(t),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy((function(){this.$element.trigger("loaded.bs.modal")}),this))};function n(n,r){return this.each((function(){var o=e(this),i=o.data("bs.modal"),a=e.extend({},t.DEFAULTS,o.data(),"object"==typeof n&&n);i||o.data("bs.modal",i=new t(this,a)),"string"==typeof n?i[n](r):a.show&&i.show(r)}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=300,t.BACKDROP_TRANSITION_DURATION=150,t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},t.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},t.prototype.show=function(n){var r=this,o=e.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(o),this.isShown||o.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",(function(){r.$element.one("mouseup.dismiss.bs.modal",(function(t){e(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)}))})),this.backdrop((function(){var o=e.support.transition&&r.$element.hasClass("fade");r.$element.parent().length||r.$element.appendTo(r.$body),r.$element.show().scrollTop(0),r.adjustDialog(),o&&r.$element[0].offsetWidth,r.$element.addClass("in"),r.enforceFocus();var i=e.Event("shown.bs.modal",{relatedTarget:n});o?r.$dialog.one("bsTransitionEnd",(function(){r.$element.trigger("focus").trigger(i)})).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(i)})))},t.prototype.hide=function(n){n&&n.preventDefault(),n=e.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("
2click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",e.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())},t.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy((function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")}),this))},t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",e.proxy((function(e){27==e.which&&this.hide()}),this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},t.prototype.resize=function(){this.isShown?e(window).on("resize.bs.modal",e.proxy(this.handleUpdate,this)):e(window).off("resize.bs.modal")},t.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop((function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")}))},t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},t.prototype.backdrop=function(n){var r=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&o;if(this.$backdrop=e(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",e.proxy((function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())}),this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;i?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){r.removeBackdrop(),n&&n()};e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):a()}else n&&n()},t.prototype.handleUpdate=function(){this.adjustDialog()},t.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},t.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth<e,this.scrollbarWidth=this.measureScrollbar()},t.prototype.setScrollbar=function(){var t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",t+n),e(this.fixedContent).each((function(t,r){var o=r.style.paddingRight,i=e(r).css("padding-right");e(r).data("padding-right",o).css("padding-right",parseFloat(i)+n+"px")})))},t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),e(this.fixedContent).each((function(t,n){var r=e(n).data("padding-right");e(n).removeData("padding-right"),n.style.paddingRight=r||""}))},t.prototype.measureScrollbar=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",this.$body.append(e);var t=e.offsetWidth-e.clientWidth;return this.$body[0].removeChild(e),t};var r=e.fn.modal;e.fn.modal=n,e.fn.modal.Constructor=t,e.fn.modal.noConflict=function(){return e.fn.modal=r,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(t){var r=e(this),o=r.attr("href"),i=r.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,""),a=e(document).find(i),s=a.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(o)&&o},a.data(),r.data());r.is("a")&&t.preventDefault(),a.one("show.bs.modal",(function(e){e.isDefaultPrevented()||a.one("hidden.bs.modal",(function(){r.is(":visible")&&r.trigger("focus")}))}
2)),n.call(a,s,this)}))}(n(619755))},6927:(e,t,n)=>{!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.4.1",t.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),(t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype)).constructor=t,t.prototype.getDefaults=function(){return t.DEFAULTS},t.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();if(this.options.html){var r=typeof n;this.options.sanitize&&(t=this.sanitizeHtml(t),"string"===r&&(n=this.sanitizeHtml(n))),e.find(".popover-title").html(t),e.find(".popover-content").children().detach().end()["string"===r?"html":"append"](n)}else e.find(".popover-title").text(t),e.find(".popover-content").children().detach().end().text(n);e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},t.prototype.hasContent=function(){return this.getTitle()||this.getContent()},t.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=e.fn.popover;e.fn.popover=function(n){return this.each((function(){var r=e(this),o=r.data("bs.popover"),i="object"==typeof n&&n;!o&&/destroy|hide/.test(n)||(o||r.data("bs.popover",o=new t(this,i)),"string"==typeof n&&o[n]())}))},e.fn.popover.Constructor=t,e.fn.popover.noConflict=function(){return e.fn.popover=n,this}}(n(619755))},253497:(e,t,n)=>{!function(e){"use strict";function t(n,r){this.$body=e(document.body),this.$scrollElement=e(n).is(document.body)?e(window):e(n),this.options=e.extend({},t.DEFAULTS,r),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each((function(){var r=e(this),o=r.data("bs.scrollspy"),i="object"==typeof n&&n;o||r.data("bs.scrollspy",o=new t(this,i)),"string"==typeof n&&o[n]()}))}t.VERSION="3.4.1",t.DEFAULTS={offset:10},t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},t.prototype.refresh=function(){var t=this,n="offset",r=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),e.isWindow(this.$scrollElement[0])||(n="position",r=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map((function(){var t=e(this),o=t.data("target")||t.attr("href"),i=/^#./.test(o)&&e(o);return i&&i.length&&i.is(":visible")&&[[i[n]().top+r,o]]||null})).sort((function(e,t){return e[0]-t[0]})).each((function(){t.offsets.push(this[0]),t.targets.push(this[1])}))},t.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),r=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,i=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),t>=r)return a!=(e=i[i.length-1])&&this.activate(e);if(a&&t<o[0])return this.activeTarget=null,this.clear();for(e=o.length;e--;)a!=i[e]&&t>=o[e]&&(void 0===o[e+1]||t<o[e+1])&&this.activate(i[e])},t.prototype.activate=function(t){this.activeTarget=t,this.clear();var n=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',r=e(n).parents("li").addClass("active");r.parent(".dropdown-menu").length&&(r=r.closest("li.dropdown").addClass("active")),r.trigger("activate.bs.scrollspy")},t.prototype.clear=function(){e(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=e.fn.scrollspy;e.fn.scrollspy=n,e.fn.scrollspy.Constructor=t,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=r,this},e(window).on("load.bs.scrollspy.data-api",(function(){e('[data-spy="scroll"]').each((function(){var t=e(this);n.call(t,t.data())}))}))}(n(619755))}
2,217814:(e,t,n)=>{!function(e){"use strict";var t=function(t){this.element=e(t)};function n(n){return this.each((function(){var r=e(this),o=r.data("bs.tab");o||r.data("bs.tab",o=new t(this)),"string"==typeof n&&o[n]()}))}t.VERSION="3.4.1",t.TRANSITION_DURATION=150,t.prototype.show=function(){var t=this.element,n=t.closest("ul:not(.dropdown-menu)"),r=t.data("target");if(r||(r=(r=t.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=n.find(".active:last a"),i=e.Event("hide.bs.tab",{relatedTarget:t[0]}),a=e.Event("show.bs.tab",{relatedTarget:o[0]});if(o.trigger(i),t.trigger(a),!a.isDefaultPrevented()&&!i.isDefaultPrevented()){var s=e(document).find(r);this.activate(t.closest("li"),n),this.activate(s,s.parent(),(function(){o.trigger({type:"hidden.bs.tab",relatedTarget:t[0]}),t.trigger({type:"shown.bs.tab",relatedTarget:o[0]})}))}}},t.prototype.activate=function(n,r,o){var i=r.find("> .active"),a=o&&e.support.transition&&(i.length&&i.hasClass("fade")||!!r.find("> .fade").length);function s(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),o&&o()}i.length&&a?i.one("bsTransitionEnd",s).emulateTransitionEnd(t.TRANSITION_DURATION):s(),i.removeClass("in")};var r=e.fn.tab;e.fn.tab=n,e.fn.tab.Constructor=t,e.fn.tab.noConflict=function(){return e.fn.tab=r,this};var o=function(t){t.preventDefault(),n.call(e(this),"show")};e(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',o).on("click.bs.tab.data-api",'[data-toggle="pill"]',o)}(n(619755))},856278:(e,t,n)=>{!function(e){"use strict";var t=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function i(t,i){var a=t.nodeName.toLowerCase();if(-1!==e.inArray(a,i))return-1===e.inArray(a,n)||Boolean(t.nodeValue.match(r)||t.nodeValue.match(o));for(var s=e(i).filter((function(e,t){return t instanceof RegExp})),c=0,u=s.length;c<u;c++)if(a.match(s[c]))return!0;return!1}function a(t,n,r){if(0===t.length)return t;if(r&&"function"==typeof r)return r(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;var o=document.implementation.createHTMLDocument("sanitization");o.body.innerHTML=t;for(var a=e.map(n,(function(e,t){return t})),s=e(o.body).find("*"),c=0,u=s.length;c<u;c++){var l=s[c],d=l.nodeName.toLowerCase();if(-1!==e.inArray(d,a))for(var p=e.map(l.attributes,(function(e){return e})),f=[].concat(n["*"]||[],n[d]||[]),h=0,m=p.length;h<m;h++)i(p[h],f)||l.removeAttribute(p[h].nodeName);else l.parentNode.removeChild(l)}return o.body.innerHTML}var s=function(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)};s.VERSION="3.4.1",s.TRANSITION_DURATION=150,s.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}},s.prototype.init=function(t,n,r){if(this.enabled=!0,this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&e(document).find(e.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var o=this.options.trigger.split(" "),i=o.length;i--;){var a=o[i];if("click"==a)this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",c="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(c+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.getOptions=function(n){var r=this.$element.data();for(var o in r)r.hasOwnProperty(o)&&-1!==e.inArray(o,t)&&delete r[o];return(n=e.extend({},this.getDefaults(),r,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=a(n.template,n.whiteList,n.sanitizeFn)),n},s.prototype.getDelegateOptions=function(){var t={},n=this.getDefaults();
vendor: 5,495 bytes, line 2
2return this._options&&e.each(this._options,(function(e,r){n[e]!=r&&(t[e]=r)})),t},s.prototype.enter=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusin"==t.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout((function(){"in"==n.hoverState&&n.show()}),n.options.delay.show)}},s.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},s.prototype.leave=function(t){var n=t instanceof this.constructor?t:e(t.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n)),t instanceof e.Event&&(n.inState["focusout"==t.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout((function(){"out"==n.hoverState&&n.hide()}),n.options.delay.hide)}},s.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(t);var n=e.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(t.isDefaultPrevented()||!n)return;var r=this,o=this.tip(),i=this.getUID(this.type);this.setContent(),o.attr("id",i),this.$element.attr("aria-describedby",i),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,c=/\s?auto?\s?/i,u=c.test(a);u&&(a=a.replace(c,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?o.appendTo(e(document).find(this.options.container)):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),d=o[0].offsetWidth,p=o[0].offsetHeight;if(u){var f=a,h=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+p>h.bottom?"top":"top"==a&&l.top-p<h.top?"bottom":"right"==a&&l.right+d>h.width?"left":"left"==a&&l.left-d<h.left?"right":a,o.removeClass(f).addClass(a)}var m=this.getCalculatedOffset(a,l,d,p);this.applyPlacement(m,a);var g=function(){var e=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==e&&r.leave(r)};e.support.transition&&this.$tip.hasClass("fade")?o.one("bsTransitionEnd",g).emulateTransitionEnd(s.TRANSITION_DURATION):g()}},s.prototype.applyPlacement=function(t,n){var r=this.tip(),o=r[0].offsetWidth,i=r[0].offsetHeight,a=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),t.top+=a,t.left+=s,e.offset.setOffset(r[0],e.extend({using:function(e){r.css({top:Math.round(e.top),left:Math.round(e.left)})}},t),0),r.addClass("in");var c=r[0].offsetWidth,u=r[0].offsetHeight;"top"==n&&u!=i&&(t.top=t.top+i-u);var l=this.getViewportAdjustedDelta(n,t,c,u);l.left?t.left+=l.left:t.top+=l.top;var d=/top|bottom/.test(n),p=d?2*l.left-o+c:2*l.top-i+u,f=d?"offsetWidth":"offsetHeight";r.offset(t),this.replaceArrow(p,r[0][f],d)},s.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},s.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();this.options.html?(this.options.sanitize&&(t=a(t,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(t)):e.find(".tooltip-inner").text(t),e.removeClass("fade in top bottom left right")},s.prototype.hide=function(t){var n=this,r=e(this.$tip),o=e.Event("hide.bs."+this.type);function i(){"in"!=n.hoverState&&r.detach(),n.$element&&n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),t&&t()}if(this.$element.trigger(o),!o.isDefaultPrevented())return r.removeClass("in"),e.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",i).emulateTransitionEnd(s.TRANSITION_DURATION):i(),this.hoverState=null,this},s.prototype.fixTitle=function(){var e=this.$element;(e.attr("title")||"string"!=typeof e.attr("data-original-title"))&&e.attr("data-original-title",e.attr("title")||"").attr("title","")},s.prototype.hasContent=function(){return this.getTitle()},s.prototype.getPosition=function(t){var n=(t=t||this.$element)[0],r="BODY"==n.tagName,o=n.getBoundingClientRect();null==o.width&&(o=e.extend({},o,{width:o.right-o.left,height:o.bottom-o.top}));var i=window.SVGElement&&n instanceof window.SVGElement,a=r?{top:0,left:0}:i?null:t.offset(),s={scroll:r?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},c=r?{width:e(window).width(),height:e(window).height()}:null;return e.extend({},o,s,c,a)},s.prototype.getCalculatedOffset=function(e,t,n,r){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-r,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-r/2,left:t.left-n}:{top:t.top+t.height/2-r/2,left:t.left+t.width}},s.prototype.getViewportAdjustedDelta=function(e,t,n,r){var o={top:0,left:0};if(!this.$viewport)return o;var i=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(e)){var s=t.top-i-a.scroll,c=t.top+i-a.scroll+r;s<a.top?o.top=a.top-s:c>a.top+a.height&&(o.top=a.top+a.height-c)}else{var u=t.left-i,l=t.left+i+n;
2u<a.left?o.left=a.left-u:l>a.right&&(o.left=a.left+a.width-l)}return o},s.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},s.prototype.getUID=function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},s.prototype.tip=function(){if(!this.$tip&&(this.$tip=e(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},s.prototype.enable=function(){this.enabled=!0},s.prototype.disable=function(){this.enabled=!1},s.prototype.toggleEnabled=function(){this.enabled=!this.enabled},s.prototype.toggle=function(t){var n=this;t&&((n=e(t.currentTarget).data("bs."+this.type))||(n=new this.constructor(t.currentTarget,this.getDelegateOptions()),e(t.currentTarget).data("bs."+this.type,n))),t?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},s.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide((function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null}))},s.prototype.sanitizeHtml=function(e){return a(e,this.options.whiteList,this.options.sanitizeFn)};var c=e.fn.tooltip;e.fn.tooltip=function(t){return this.each((function(){var n=e(this),r=n.data("bs.tooltip"),o="object"==typeof t&&t;!r&&/destroy|hide/.test(t)||(r||n.data("bs.tooltip",r=new s(this,o)),"string"==typeof t&&r[t]())}))},e.fn.tooltip.Constructor=s,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=c,this}}(n(619755))},258294:(e,t,n)=>{!function(e){"use strict";e.fn.emulateTransitionEnd=function(t){var n=!1,r=this;return e(this).one("bsTransitionEnd",(function(){n=!0})),setTimeout((function(){n||e(r).trigger(e.support.transition.end)}),t),this},e((function(){e.support.transition=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in t)if(void 0!==e.style[n])return{end:t[n]};return!1}(),e.support.transition&&(e.event.special.bsTransitionEnd={bindType:e.support.transition.end,delegateType:e.support.transition.end,handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})}))}(n(619755))},348764:(e,t,n)=>{"use strict";const r=n(679742),o=n(680645),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.lW=c,t.h2=50;const a=2147483647;function s(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return d(e)}return u(e,t,n)}function u(e,t,n){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!c.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const n=0|m(e,t);let r=s(n);const o=r.write(e,t);return o!==n&&(r=r.slice(0,o)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return f(t.buffer,t.byteOffset,t.byteLength)}return p(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return f(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return f(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const o=function(e){if(c.isBuffer(e)){const t=0|h(e.length),n=s(t);return 0===n.length||e.copy(n,0,0,t),n}return void 0!==e.length?"number"!=typeof e.length||J(e.length)?s(0):p(e):"Buffer"===e.type&&Array.isArray(e.data)?p(e.data):void 0}(e);if(o)return o;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');
vendor: 19,541 bytes, line 2
2if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function d(e){return l(e),s(e<0?0:0|h(e))}function p(e){const t=e.length<0?0:0|h(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function f(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function h(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return G(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(o)return r?-1:G(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return P(this,t,n);case"utf8":case"utf-8":return E(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),J(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,o);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,o){let i,a=1,s=e.length,c=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){let r=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*a}else-1!==r&&(i-=i-r),r=-1}else for(n+c>s&&(n=s-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(u(e,i+r)!==u(t,r)){n=!1;break}if(n)return i}return-1}function _(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let a;for(r>i/2&&(r=i/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(J(r))return a;e[n+a]=r}return a}function w(e,t,n,r){return Y(G(t,e.length-n),e,n,r)}function S(e,t,n,r){return Y(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function C(e,t,n,r){return Y(W(t),e,n,r)}function k(e,t,n,r){return Y(function(e,t){let n,r,o;const i=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,a=t>239?4:t>223?3:t>191?2:1;if(o+a<=n){let n,r,s,c;switch(a){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(i=c));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=e[o+1],r=e[o+2],s=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,a=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=a}return function(e){const t=e.length;if(t<=O)return String.fromCharCode.apply(String,e);let n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=O));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return l(e),e<=0?s(e):void 0!==t?"string"==typeof n?s(e).fill(t,n):s(e).fill(t):s(e)}(e,t,n)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))o+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!c.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?E(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e="";const n=t.h2;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,o){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0);const s=Math.min(i,a),u=this.slice(r,o),l=e.slice(t,n);for(let e=0;e<s;++e)if(u[e]!==l[e]){i=u[e],a=l[e];break}return i<a?-1:a<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let i=!1;for(;;)switch(r){case"hex":return _(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function T(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){let r="";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function P(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o="";for(let r=t;r<n;++r)o+=Z[e[r]];return o}function I(e,t,n){const r=e.slice(t,n);let o="";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function j(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function N(e,t,n,r,o){H(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function R(e,t,n,r,o){H(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function D(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return t=+t,n>>>=0,i||D(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||j(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=X((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))})),c.prototype.readBigUInt64BE=X((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)})),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||j(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||j(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||j(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||j(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=X((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=X((function(e){z(e>>>=0,"offset");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||j(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||j(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||j(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,r||L(this,e,t,n,Math.pow(2,8*n)-1,0);let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=X((function(e,t=0){return N(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=X((function(e,t=0){return R(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let o=0,i=1,a=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);L(this,e,t,n,r-1,-r)}let o=n-1,i=1,a=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/i>>0)-a&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=X((function(e,t=0){return N(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=X((function(e,t=0){return R(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=c.isBuffer(e)?e:c.from(e,r),a=i.length;
vendor: 4,133 bytes, line 2
2if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=i[o%a]}return this};const U={};function B(e,t,n){U[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function $(e){let t="",n=e.length;const r="-"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function H(e,t,n,r,o,i){if(e>n||e<t){const r="bigint"==typeof t?"n":"";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new U.ERR_OUT_OF_RANGE("value",o,e)}!function(e,t,n){z(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||q(t,e.length-(n+1))}(r,o,i)}function z(e,t){if("number"!=typeof e)throw new U.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,n){if(Math.floor(e)!==e)throw z(e,n),new U.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${t}`,e)}B("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),B("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),B("ERR_OUT_OF_RANGE",(function(e,t,n){let r=`The value of "${e}" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=$(String(n)):"bigint"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=$(o)),o+="n"),r+=` It must be ${t}. Received ${o}`,r}),RangeError);const V=/[^+/0-9A-Za-z-_]/g;function G(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let a=0;a<r;++a){if(n=e.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function W(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(V,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Y(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function J(e){return e!=e}const Z=function(){const e="0123456789abcdef",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function X(e){return"undefined"==typeof BigInt?Q:e}function Q(){throw new Error("BigInt not supported")}},114629:(e,t,n)=>{e.exports=function(e){n.e(7850).then(function(t){e(n(957764))}.bind(null,n)).catch(n.oe)}},577223:(e,t,n)=>{e.exports=function(e){n.e(4946).then(function(t){e(n(612971))}.bind(null,n)).catch(n.oe)}},958838:(e,t,n)=>{e.exports=function(e){n.e(6372).then(function(t){e(n(383469))}.bind(null,n)).catch(n.oe)}},565171:(e,t,n)=>{e.exports=function(e){n.e(4537).then(function(t){e(n(769314))}.bind(null,n)).catch(n.oe)}},353937:(e,t,n)=>{e.exports=function(e){n.e(4993).then(function(t){e(n(348804))}.bind(null,n)).catch(n.oe)}},867091:(e,t,n)=>{e.exports=function(e){n.e(972).then(function(t){e(n(915941))}.bind(null,n)).catch(n.oe)}},169989:(e,t,n)=>{e.exports=function(e){n.e(4997).then(function(t){e(n(45284))}.bind(null,n)).catch(n.oe)}},587598:(e,t,n)=>{e.exports=function(e){n.e(5058).then(function(t){e(n(727683))}
2.bind(null,n)).catch(n.oe)}},10614:(e,t,n)=>{e.exports=function(e){n.e(7143).then(function(t){e(n(691234))}.bind(null,n)).catch(n.oe)}},372824:(e,t,n)=>{e.exports=function(e){n.e(4481).then(function(t){e(n(427123))}.bind(null,n)).catch(n.oe)}},568188:(e,t,n)=>{e.exports=function(e){n.e(7238).then(function(t){e(n(234648))}.bind(null,n)).catch(n.oe)}},898463:(e,t,n)=>{e.exports=function(e){Promise.resolve().then(function(t){e(n(266005))}.bind(null,n)).catch(n.oe)}},117438:(e,t,n)=>{e.exports=function(e){Promise.resolve().then(function(t){e(n(761625))}.bind(null,n)).catch(n.oe)}},511739:(e,t,n)=>{e.exports=function(e){n.e(2329).then(function(t){e(n(43388))}.bind(null,n)).catch(n.oe)}},891021:(e,t,n)=>{e.exports=function(e){n.e(7160).then(function(t){e(n(598711))}.bind(null,n)).catch(n.oe)}},642675:(e,t,n)=>{e.exports=function(e){n.e(8870).then(function(t){e(n(860552))}.bind(null,n)).catch(n.oe)}},753817:(e,t,n)=>{e.exports=function(e){n.e(7767).then(function(t){e(n(775078))}.bind(null,n)).catch(n.oe)}},583882:(e,t,n)=>{e.exports=function(e){n.e(3182).then(function(t){e(n(407661))}.bind(null,n)).catch(n.oe)}},99875:(e,t,n)=>{e.exports=function(e){n.e(1135).then(function(t){e(n(451963))}.bind(null,n)).catch(n.oe)}},808838:(e,t,n)=>{e.exports=function(e){n.e(3090).then(function(t){e(n(606707))}.bind(null,n)).catch(n.oe)}},575601:(e,t,n)=>{e.exports=function(e){n.e(7231).then(function(t){e(n(221015))}.bind(null,n)).catch(n.oe)}},172594:(e,t,n)=>{e.exports=function(e){n.e(6931).then(function(t){e(n(724477))}.bind(null,n)).catch(n.oe)}},957867:(e,t,n)=>{e.exports=function(e){n.e(2154).then(function(t){e(n(896942))}.bind(null,n)).catch(n.oe)}},466595:(e,t,n)=>{e.exports=function(e){n.e(5371).then(function(t){e(n(621866))}.bind(null,n)).catch(n.oe)}},605994:(e,t,n)=>{e.exports=function(e){n.e(2358).then(function(t){e(n(631451))}.bind(null,n)).catch(n.oe)}},446693:(e,t,n)=>{e.exports=function(e){n.e(5224).then(function(t){e(n(718639))}.bind(null,n)).catch(n.oe)}},52626:(e,t,n)=>{e.exports=function(e){n.e(4717).then(function(t){e(n(757853))}.bind(null,n)).catch(n.oe)}},806034:(e,t,n)=>{e.exports=function(e){n.e(4692).then(function(t){e(n(468222))}.bind(null,n)).catch(n.oe)}},566508:(e,t,n)=>{e.exports=function(e){n.e(7928).then(function(t){e(n(212593))}.bind(null,n)).catch(n.oe)}},584333:(e,t,n)=>{e.exports=function(e){n.e(4043).then(function(t){e(n(925905))}.bind(null,n)).catch(n.oe)}},676642:(e,t,n)=>{e.exports=function(e){n.e(8296).then(function(t){e(n(250563))}.bind(null,n)).catch(n.oe)}},773576:(e,t,n)=>{e.exports=function(e){n.e(2491).then(function(t){e(n(218611))}.bind(null,n)).catch(n.oe)}},986441:(e,t,n)=>{e.exports=function(e){Promise.resolve().then(function(t){e(n(7288))}.bind(null,n)).catch(n.oe)}},984983:(e,t,n)=>{e.exports=function(e){n.e(7564).then(function(t){e(n(985261))}.bind(null,n)).catch(n.oe)}},361158:(e,t,n)=>{e.exports=function(e){n.e(224).then(function(t){e(n(706022))}.bind(null,n)).catch(n.oe)}},295583:(e,t,n)=>{e.exports=function(e){n.e(50).then(function(t){e(n(764009))}.bind(null,n)).catch(n.oe)}},848891:(e,t,n)=>{e.exports=function(e){n.e(4486).then(function(t){e(n(55976))}.bind(null,n)).catch(n.oe)}},98569:(e,t,n)=>{e.exports=function(e){n.e(4906).then(function(t){e(n(986699))}.bind(null,n)).catch(n.oe)}}
2,840948:(e,t,n)=>{e.exports=function(e){n.e(74).then(function(t){e(n(941674))}.bind(null,n)).catch(n.oe)}},791336:(e,t,n)=>{e.exports=function(e){n.e(422).then(function(t){e(n(736481))}.bind(null,n)).catch(n.oe)}},394671:(e,t,n)=>{e.exports=function(e){n.e(189).then(function(t){e(n(649943))}.bind(null,n)).catch(n.oe)}},180305:(e,t,n)=>{e.exports=function(e){n.e(3070).then(function(t){e(n(921590))}.bind(null,n)).catch(n.oe)}},749452:(e,t,n)=>{e.exports=function(e){n.e(1261).then(function(t){e(n(831837))}.bind(null,n)).catch(n.oe)}},786307:(e,t,n)=>{e.exports=function(e){n.e(1888).then(function(t){e(n(139306))}.bind(null,n)).catch(n.oe)}},494394:(e,t,n)=>{e.exports=function(e){n.e(1515).then(function(t){e(n(970723))}.bind(null,n)).catch(n.oe)}},268706:(e,t,n)=>{e.exports=function(e){n.e(640).then(function(t){e(n(775453))}.bind(null,n)).catch(n.oe)}},883271:(e,t,n)=>{e.exports=function(e){n.e(2934).then(function(t){e(n(461438))}.bind(null,n)).catch(n.oe)}},530611:(e,t,n)=>{e.exports=function(e){n.e(3653).then(function(t){e(n(451097))}.bind(null,n)).catch(n.oe)}},237214:(e,t,n)=>{e.exports=function(e){n.e(1593).then(function(t){e(n(317078))}.bind(null,n)).catch(n.oe)}},122497:(e,t,n)=>{e.exports=function(e){n.e(5994).then(function(t){e(n(687853))}.bind(null,n)).catch(n.oe)}},625610:(e,t,n)=>{e.exports=function(e){n.e(7697).then(function(t){e(n(661702))}.bind(null,n)).catch(n.oe)}},28056:(e,t,n)=>{e.exports=function(e){n.e(2639).then(function(t){e(n(321034))}.bind(null,n)).catch(n.oe)}},44825:(e,t,n)=>{e.exports=function(e){n.e(5387).then(function(t){e(n(321957))}.bind(null,n)).catch(n.oe)}},112802:(e,t,n)=>{e.exports=function(e){n.e(8554).then(function(t){e(n(799095))}.bind(null,n)).catch(n.oe)}},805250:(e,t,n)=>{e.exports=function(e){n.e(15).then(function(t){e(n(7603))}.bind(null,n)).catch(n.oe)}},814189:(e,t,n)=>{e.exports=function(e){n.e(4929).then(function(t){e(n(917362))}.bind(null,n)).catch(n.oe)}},743588:(e,t,n)=>{e.exports=function(e){n.e(9300).then(function(t){e(n(456592))}.bind(null,n)).catch(n.oe)}},874149:(e,t,n)=>{e.exports=function(e){n.e(4047).then(function(t){e(n(865609))}.bind(null,n)).catch(n.oe)}},120179:(e,t,n)=>{e.exports=function(e){n.e(3325).then(function(t){e(n(788179))}.bind(null,n)).catch(n.oe)}},212325:(e,t,n)=>{e.exports=function(e){n.e(1796).then(function(t){e(n(625560))}.bind(null,n)).catch(n.oe)}},228028:(e,t,n)=>{e.exports=function(e){n.e(6936).then(function(t){e(n(831970))}.bind(null,n)).catch(n.oe)}},202034:(e,t,n)=>{e.exports=function(e){n.e(6161).then(function(t){e(n(773178))}.bind(null,n)).catch(n.oe)}},680793:(e,t,n)=>{e.exports=function(e){n.e(8732).then(function(t){e(n(767646))}.bind(null,n)).catch(n.oe)}},202687:(e,t,n)=>{e.exports=function(e){n.e(1221).then(function(t){e(n(995190))}.bind(null,n)).catch(n.oe)}},503967:(e,t,n)=>{e.exports=function(e){n.e(7050).then(function(t){e(n(842026))}.bind(null,n)).catch(n.oe)}},128223:(e,t,n)=>{e.exports=function(e){n.e(7850).then(function(t){e(n(957764))}.bind(null,n)).catch(n.oe)}},579385:(e,t,n)=>{e.exports=function(e){n.e(4946).then(function(t){e(n(612971))}.bind(null,n)).catch(n.oe)}},805912:(e,t,n)=>{e.exports=function(e){n.e(6372).then(function(t){e(n(383469))}.bind(null,n)).catch(n.oe)}},810993:(e,t,n)=>{e.exports=function(e){n.e(4537).then(function(t){e(n(769314))}.bind(null,n)).catch(n.oe)}},846902:(e,t,n)=>{e.exports=function(e){n.e(4993).then(function(t){e(n(348804))}.bind(null,n)).catch(n.oe)}},81942:(e,t,n)=>{e.exports=function(e){n.e(972).then(function(t){e(n(915941))}.bind(null,n)).catch(n.oe)}},283304:(e,t,n)=>{e.exports=function(e){n.e(4997).then(function(t){e(n(45284))}.bind(null,n)).catch(n.oe)}},547327:(e,t,n)=>{e.exports=function(e){n.e(5058).then(function(t){e(n(727683))}.bind(null,n)).catch(n.oe)}},988353:(e,t,n)=>{e.exports=function(e){n.e(7143).then(function(t){e(n(691234))}.bind(null,n)).catch(n.oe)}},593674:(e,t,n)=>{e.exports=function(e){n.e(4481).then(function(t){e(n(427123))}.bind(null,n)).catch(n.oe)}},20932:(e,t,n)=>{e.exports=function(e){n.e(7238).then(function(t){e(n(234648))}.bind(null,n)).catch(n.oe)}},880703:(e,t,n)=>{e.exports=function(e){Promise.resolve().then(function(t){e(n(266005))}
2.bind(null,n)).catch(n.oe)}},930015:(e,t,n)=>{e.exports=function(e){Promise.resolve().then(function(t){e(n(761625))}.bind(null,n)).catch(n.oe)}},246528:(e,t,n)=>{e.exports=function(e){n.e(2329).then(function(t){e(n(43388))}.bind(null,n)).catch(n.oe)}},725719:(e,t,n)=>{e.exports=function(e){n.e(7160).then(function(t){e(n(598711))}.bind(null,n)).catch(n.oe)}},67172:(e,t,n)=>{e.exports=function(e){n.e(8870).then(function(t){e(n(860552))}.bind(null,n)).catch(n.oe)}},344572:(e,t,n)=>{e.exports=function(e){n.e(7767).then(function(t){e(n(775078))}.bind(null,n)).catch(n.oe)}},240215:(e,t,n)=>{e.exports=function(e){n.e(3182).then(function(t){e(n(407661))}.bind(null,n)).catch(n.oe)}},807854:(e,t,n)=>{e.exports=function(e){n.e(1135).then(function(t){e(n(451963))}.bind(null,n)).catch(n.oe)}},42106:(e,t,n)=>{e.exports=function(e){n.e(3090).then(function(t){e(n(606707))}.bind(null,n)).catch(n.oe)}},921193:(e,t,n)=>{e.exports=function(e){n.e(7231).then(function(t){e(n(221015))}.bind(null,n)).catch(n.oe)}},487382:(e,t,n)=>{e.exports=function(e){n.e(6931).then(function(t){e(n(724477))}.bind(null,n)).catch(n.oe)}},700799:(e,t,n)=>{e.exports=function(e){n.e(2154).then(function(t){e(n(896942))}.bind(null,n)).catch(n.oe)}},614421:(e,t,n)=>{e.exports=function(e){n.e(5371).then(function(t){e(n(621866))}.bind(null,n)).catch(n.oe)}},760689:(e,t,n)=>{e.exports=function(e){n.e(2358).then(function(t){e(n(631451))}.bind(null,n)).catch(n.oe)}},656841:(e,t,n)=>{e.exports=function(e){n.e(5224).then(function(t){e(n(718639))}.bind(null,n)).catch(n.oe)}},299314:(e,t,n)=>{e.exports=function(e){n.e(4717).then(function(t){e(n(757853))}.bind(null,n)).catch(n.oe)}},78943:(e,t,n)=>{e.exports=function(e){n.e(4692).then(function(t){e(n(468222))}.bind(null,n)).catch(n.oe)}},506689:(e,t,n)=>{e.exports=function(e){n.e(7928).then(function(t){e(n(212593))}.bind(null,n)).catch(n.oe)}},589872:(e,t,n)=>{e.exports=function(e){n.e(4043).then(function(t){e(n(925905))}.bind(null,n)).catch(n.oe)}},66265:(e,t,n)=>{e.exports=function(e){n.e(8296).then(function(t){e(n(250563))}.bind(null,n)).catch(n.oe)}},105311:(e,t,n)=>{e.exports=function(e){n.e(2491).then(function(t){e(n(218611))}.bind(null,n)).catch(n.oe)}},576947:(e,t,n)=>{e.exports=function(e){Promise.resolve().then(function(t){e(n(7288))}.bind(null,n)).catch(n.oe)}},88636:(e,t,n)=>{e.exports=function(e){n.e(7564).then(function(t){e(n(985261))}.bind(null,n)).catch(n.oe)}},684156:(e,t,n)=>{e.exports=function(e){n.e(224).then(function(t){e(n(706022))}.bind(null,n)).catch(n.oe)}},7483:(e,t,n)=>{e.exports=function(e){n.e(50).then(function(t){e(n(764009))}.bind(null,n)).catch(n.oe)}},627438:(e,t,n)=>{e.exports=function(e){n.e(4486).then(function(t){e(n(55976))}.bind(null,n)).catch(n.oe)}},660551:(e,t,n)=>{e.exports=function(e){n.e(4906).then(function(t){e(n(986699))}.bind(null,n)).catch(n.oe)}},300131:(e,t,n)=>{e.exports=function(e){n.e(74).then(function(t){e(n(941674))}.bind(null,n)).catch(n.oe)}},195879:(e,t,n)=>{e.exports=function(e){n.e(422).then(function(t){e(n(736481))}.bind(null,n)).catch(n.oe)}},210330:(e,t,n)=>{e.exports=function(e){n.e(189).then(function(t){e(n(649943))}.bind(null,n)).catch(n.oe)}},34157:(e,t,n)=>{e.exports=function(e){n.e(3070).then(function(t){e(n(921590))}.bind(null,n)).catch(n.oe)}},803325:(e,t,n)=>{e.exports=function(e){n.e(1261).then(function(t){e(n(831837))}.bind(null,n)).catch(n.oe)}},755054:(e,t,n)=>{e.exports=function(e){n.e(1888).then(function(t){e(n(139306))}.bind(null,n)).catch(n.oe)}},68492:(e,t,n)=>{e.exports=function(e){n.e(1515).then(function(t){e(n(970723))}.bind(null,n)).catch(n.oe)}},467280:(e,t,n)=>{e.exports=function(e){n.e(640).then(function(t){e(n(775453))}.bind(null,n)).catch(n.oe)}},683546:(e,t,n)=>{e.exports=function(e){n.e(2934).then(function(t){e(n(461438))}.bind(null,n)).catch(n.oe)}},10530:(e,t,n)=>{e.exports=function(e){n.e(3653).then(function(t){e(n(451097))}.bind(null,n)).catch(n.oe)}},725051:(e,t,n)=>{e.exports=function(e){n.e(1593).then(function(t){e(n(317078))}.bind(null,n)).catch(n.oe)}},681092:(e,t,n)=>{e.exports=function(e){n.e(5994).then(function(t){e(n(687853))}
2.bind(null,n)).catch(n.oe)}},865166:(e,t,n)=>{e.exports=function(e){n.e(7697).then(function(t){e(n(661702))}.bind(null,n)).catch(n.oe)}},909045:(e,t,n)=>{e.exports=function(e){n.e(2639).then(function(t){e(n(321034))}.bind(null,n)).catch(n.oe)}},101887:(e,t,n)=>{e.exports=function(e){n.e(5387).then(function(t){e(n(321957))}.bind(null,n)).catch(n.oe)}},901698:(e,t,n)=>{e.exports=function(e){n.e(8554).then(function(t){e(n(799095))}.bind(null,n)).catch(n.oe)}},422250:(e,t,n)=>{e.exports=function(e){n.e(15).then(function(t){e(n(7603))}.bind(null,n)).catch(n.oe)}},234912:(e,t,n)=>{e.exports=function(e){n.e(4929).then(function(t){e(n(917362))}.bind(null,n)).catch(n.oe)}},570373:(e,t,n)=>{e.exports=function(e){n.e(9300).then(function(t){e(n(456592))}.bind(null,n)).catch(n.oe)}},283722:(e,t,n)=>{e.exports=function(e){n.e(4047).then(function(t){e(n(865609))}.bind(null,n)).catch(n.oe)}},681646:(e,t,n)=>{e.exports=function(e){n.e(3325).then(function(t){e(n(788179))}.bind(null,n)).catch(n.oe)}},960650:(e,t,n)=>{e.exports=function(e){n.e(1796).then(function(t){e(n(625560))}.bind(null,n)).catch(n.oe)}},435680:(e,t,n)=>{e.exports=function(e){n.e(6936).then(function(t){e(n(831970))}.bind(null,n)).catch(n.oe)}},389467:(e,t,n)=>{e.exports=function(e){n.e(6161).then(function(t){e(n(773178))}.bind(null,n)).catch(n.oe)}},329550:(e,t,n)=>{e.exports=function(e){n.e(8732).then(function(t){e(n(767646))}.bind(null,n)).catch(n.oe)}},398511:(e,t,n)=>{e.exports=function(e){n.e(1221).then(function(t){e(n(995190))}.bind(null,n)).catch(n.oe)}},625445:(e,t,n)=>{e.exports=function(e){n.e(7050).then(function(t){e(n(842026))}.bind(null,n)).catch(n.oe)}},588333:e=>{var t=Array.prototype.slice;function n(e){var n=this,o=t.call(arguments,1);return new Promise((function(t,i){if("function"==typeof e&&(e=e.apply(n,o)),!e||"function"!=typeof e.next)return t(e);function a(t){var n;try{n=e.next(t)}catch(e){return i(e)}u(n)}function c(t){var n;try{n=e.throw(t)}catch(e){return i(e)}u(n)}function u(e){if(e.done)return t(e.value);var o=r.call(n,e.value);return o&&s(o)?o.then(a,c):c(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(e.value)+'"'))}a()}))}function r(e){return e?s(e)?e:function(e){var t=e.constructor;return!!t&&("GeneratorFunction"===t.name||"GeneratorFunction"===t.displayName||c(t.prototype))}(e)||c(e)?n.call(this,e):"function"==typeof e?o.call(this,e):Array.isArray(e)?i.call(this,e):Object==e.constructor?a.call(this,e):e:e}function o(e){var n=this;return new Promise((function(r,o){e.call(n,(function(e,n){if(e)return o(e);arguments.length>2&&(n=t.call(arguments,1)),r(n)}))}))}function i(e){return Promise.all(e.map(r,this))}function a(e){for(var t=new e.constructor,n=Object.keys(e),o=[],i=0;i<n.length;i++){var a=n[i],c=r.call(this,e[a]);c&&s(c)?u(c,a):t[a]=e[a]}return Promise.all(o).then((function(){return t}));function u(e,n){t[n]=void 0,o.push(e.then((function(e){t[n]=e})))}}function s(e){return"function"==typeof e.then}function c(e){return"function"==typeof e.next&&"function"==typeof e.throw}e.exports=n.default=n.co=n,n.wrap=function(e){return t.__generatorFunction__=e,t;function t(){return n.call(this,e.apply(this,arguments))}}},727851:(e,t,n)=>{var r,o,i,a;a=n(299498),r=0,i=function(){return"class-scope-"+r++},o=function(){},e.exports=function(){function e(){this.nick=this.constructor.nextNick(),this.subscriptions=a.combineAncestralObject(this,"subscriptions"),this.shortcuts=a.combineAncestralObject(this,"shortcuts"),this.listenToSubscriptions(),this.scope=i(),this.listenToShortcuts(),"undefined"!=typeof Backbone&&null!==Backbone&&_.extend(this,Backbone.Events)}return e.nicks=[],e.nicksUsed={},e.remainingNicks=[],e.nextNick=function(){var e,t,n;if(!this.nicks.length)return(this.name||"CocoClass")+" "+r;for(this.remainingNicks=this.remainingNicks.length?this.remainingNicks:this.nicks.slice(),e=this.remainingNicks.splice(Math.floor(Math.random()*this.remainingNicks.length),1)[0],t=0;n=t?e+" "+t:e,this.nicksUsed[n];)t++;return this.nicksUsed[n]=!0,n},e.prototype.subscriptions={},e.prototype.shortcuts={},e.prototype.destroy=function(){var e;
2for(e in"function"==typeof this.stopListening&&this.stopListening(),"function"==typeof this.off&&this.off(),this.unsubscribeAll(),this.stopListeningToShortcuts(),this.constructor.nicksUsed[this.nick]=!1,this)this[e]=void 0;return this.destroyed=!0,this.off=o,this.destroy=o},e.prototype.listenToSubscriptions=function(){var e,t,n,r;if(null!=("undefined"!=typeof Backbone&&null!==Backbone?Backbone.Mediator:void 0)){for(e in r=[],n=this.subscriptions)t=n[e],t=a.normalizeFunc(t,this),r.push(Backbone.Mediator.subscribe(e,t,this));return r}},e.prototype.addNewSubscription=function(e,t){if(null!=("undefined"!=typeof Backbone&&null!==Backbone?Backbone.Mediator:void 0)&&!this.destroyed&&void 0===this.subscriptions[e])return t=a.normalizeFunc(t,this),this.subscriptions[e]=t,Backbone.Mediator.subscribe(e,t,this)},e.prototype.unsubscribeAll=function(){var e,t,n,r;if(null!=("undefined"!=typeof Backbone&&null!==Backbone?Backbone.Mediator:void 0)){for(e in r=[],n=this.subscriptions)t=n[e],t=a.normalizeFunc(t,this),r.push(Backbone.Mediator.unsubscribe(e,t,this));return r}},e.prototype.listenToShortcuts=function(){var e,t,n,r;if("undefined"!=typeof key&&null!==key){for(r in n=[],t=this.shortcuts)e=t[r],e=a.normalizeFunc(e,this),n.push(key(r,this.scope,_.bind(e,this)));return n}},e.prototype.stopListeningToShortcuts=function(){if("undefined"!=typeof key&&null!==key)return key.deleteScope(this.scope)},e.prototype.playSound=function(e,t){return null==t&&(t=1),Backbone.Mediator.publish("audio-player:play-sound",{trigger:e,volume:t})},e.prototype.wait=function(e){return new Promise((t=this,function(n){return t.once(e,n)}));var t},e}()},967734:e=>{var t;t={levels:{"dungeons-of-kithgard":"5411cb3769152f1707be029c","defense-of-plainswood":"541b67f71ccc8eaae19f3c62","the-gem":"65c55febd2ca2055e6566b2b"},lowerIsBetterScoreTypes:["time","damage-taken","code-length"]},e.exports=t},579483:e=>{var t;t={heroes:{captain:"529ec584c423d4e83b000014",knight:"529ffbf1cf1818f2be000001",samurai:"53e12be0d042f23505c3023b",raider:"55527eb0b8abf4ba1fe9a107",goliath:"55e1a6e876cb0948c96af9f8",guardian:"566a058620de41290036a745",ninja:"52fc0ed77e01835453bd8f6c","forest-archer":"5466d4f2417c8b48a9811e87",trapper:"5466d449417c8b48a9811e83",pixie:"579a619382f2401f001cd5b4",assassin:"566a2202e132c81f00f38c81",librarian:"52fbf74b7e01835453bd8d8e","potion-master":"52e9adf7427172ae56002172",sorcerer:"52fd1524c7e6cf99160e7bc9",necromancer:"55652fb3b9effa46a1f775fd","master-wizard":"5f75db6b7e9d990022cf49f4",duelist:"57588f09046caf2e0012ed41",champion:"575848b522179b2800efbfbf","code-ninja":"58192d484954d56144a7062f",stalwart:"5a576ec52db68a00269b7a08","armando-hoyos":"6037ed81ad0ac000f5e9f0b5","ned-fulmer":"6136fe7e9f1147002c1316b4","wolf-pup-hero":"663cedaa5a5f9b8a296f9383","cougar-hero":"663ced3e5a5f9b8a296f92c8","polar-bear-cub-hero":"663ced2d5a5f9b8a296f92b9","frog-hero":"663ced675a5f9b8a296f92ff","turtle-hero":"663cedc65a5f9b8a296f93a5","blue-fox-hero":"663ced805a5f9b8a296f931d","panther-cub-hero":"663ced735a5f9b8a296f930e","brown-rat-hero":"663ced225a5f9b8a296f92aa","duck-hero":"663ced9f5a5f9b8a296f9374","tiger-cub-hero":"663ced955a5f9b8a296f9365","pugicorn-hero":"663ced085a5f9b8a296f928b","raven-hero":"663ced8a5a5f9b8a296f932c","baby-griffin-hero":"663ced185a5f9b8a296f929b","yetibab-hero":"663ced485a5f9b8a296f92d4","mimic-hero":"663cedcf5a5f9b8a296f93b2","phoenix-hero":"663ced555a5f9b8a296f92e4","dragonling-hero":"663ced5e5a5f9b8a296f92f3","kindling-elemental-hero":"663cedbb5a5f9b8a296f9396"},ozariaHeroes:{"hero-a":"5d1630bf14281c002af1ee51","hero-b":"5d164dfedf16b90034a2ce89","hero-c":"60f8f30a5b55bb0029710795","hero-d":"60ff9b255b55bb002971b998","hero-e":"60ff9b6b28067a00236ea9f0","hero-f":"60ff9b7a5b55bb002971b9e5"},ozariaCinematicHeroes:{"hero-a":"5d03e18887ed53004682e340","hero-b":"5d03e60dab809900234a0037","hero-c":"60fe44d128067a00236e6cc5","hero-d":"60ff9b9d28067a00236eaa21","hero-e":"60ff9bc75b55bb002971ba41","hero-f":"60ff9bd728067a00236eaa57"},heroClasses:{Warrior:["champion","duelist","captain","knight","samurai","raider","goliath","guardian","code-ninja","stalwart","armando-hoyos","ned-fulmer","wolf-pup-hero","cougar-hero","polar-bear-cub-hero","frog-hero","turtle-hero","blue-fox-hero","panther-cub-hero","brown-rat-hero","duck-hero","tiger-cub-hero","pugicorn-hero","raven-hero","baby-griffin-hero","yetibab-hero","mimic-hero","phoenix-hero","dragonling-hero","kindling-elemental-hero"],Ranger:["ninja","forest-archer","trapper","pixie","assassin"],Wizard:["librarian","potion-master","sorcerer","necromancer","master-wizard"]},items:{"simple-boots":"53e237bf53457600003e3f05"},juniorHeroesConfig:[{slug:"wolf-pup-hero",access:"free"},{slug:"cougar-hero",access:"free"},{slug:"polar-bear-cub-hero",access:"free"},{slug:"frog-hero",access:"free"},{slug:"turtle-hero",access:"free"},{slug:"blue-fox-hero",access:"free"},{slug:"panther-cub-hero",access:"free"},{slug:"brown-rat-hero",access:"free"},{slug:"duck-hero",access:"free"},{slug:"tiger-cub-hero",access:"free"},{slug:"pugicorn-hero",access:"subscriber"},{slug:"raven-hero",access:"subscriber"},{slug:"baby-griffin-hero",access:"subscriber"},{slug:"yetibab-hero",access:"premium"},{slug:"mimic-hero",access:"premium"},{slug:"phoenix-hero",access:"premium"},{slug:"dragonling-hero",access:"premium"},{slug:"kindling-elemental-hero",access:"premium"}],juniorPetAccessConfig:[{slug:"wolf-pup-hero",access:"free",position:{row:0,column:0}},{slug:"cougar-hero",access:"free",position:{row:0,column:1}},{slug:"duck-hero",access:"signup",position:{row:0,column:2}},{slug:"frog-hero",access:"signup",position:{row:0,column:3}},{slug:"pugicorn-hero",access:"premium",position:{row:0,column:4}}
2,{slug:"phoenix-hero",access:"premium",position:{row:0,column:5}},{slug:"baby-griffin-hero",access:"premium",position:{row:0,column:6}},{slug:"turtle-hero",access:"module",unlockLevel:"66072b276bfa8984388f2e65",hint:"Complete Sun Shores to unlock",position:{row:1,column:0}},{slug:"brown-rat-hero",access:"module",unlockLevel:"65ce52333ca6ed67e1be5447",hint:"Complete Amber Keys to unlock",position:{row:1,column:1}},{slug:"raven-hero",access:"module",unlockLevel:"65ce63c53ca6ed67e1be6f75",hint:"Complete Crimson Sands to unlock",position:{row:1,column:2}},{slug:"dragonling-hero",access:"module",unlockLevel:"66072bfc6bfa8984388f3377",hint:"Complete Blaze Coast to unlock",position:{row:1,column:3}},{slug:"panther-cub-hero",access:"module",unlockLevel:"66072c2b6bfa8984388f35ec",hint:"Complete Wild Growth to unlock",position:{row:1,column:4}},{slug:"kindling-elemental-hero",access:"module",unlockLevel:"660f19ffddeab4a188453963",hint:"Complete Redrock Reach to unlock",position:{row:1,column:5}},{slug:"yetibab-hero",access:"module",unlockLevel:"67180617c15a4d2ab0a38aef",hint:"Complete Coldrock Pass to unlock",position:{row:1,column:6}},{slug:"mimic-hero",access:"module",unlockLevel:"671a6929e431af0c7e6f1c9d",hint:"Complete Cool Waters to unlock",position:{row:1,column:7}},{slug:"polar-bear-cub-hero",access:"module",unlockLevel:"671a698ee431af0c7e6f210f",hint:"Complete Snow Isles to unlock",position:{row:1,column:8}},{slug:"blue-fox-hero",access:"module",unlockLevel:"67215459e389d6253f508cdc",hint:"Complete Tundra Break to unlock",position:{row:1,column:9}},{slug:"tiger-cub-hero",access:"module",unlockLevel:"6723fed6e389d6253f518552",hint:"Complete Greenrise Atoll to unlock",position:{row:1,column:10}}],juniorHeroReplacements:{captain:"wolf-pup-hero",knight:"cougar-hero",samurai:"polar-bear-cub-hero",raider:"frog-hero",goliath:"turtle-hero",guardian:"blue-fox-hero",duelist:"panther-cub-hero",champion:"tiger-cub-hero",stalwart:"duck-hero","armando-hoyos":"brown-rat-hero","ned-fulmer":"brown-rat-hero"}},e.exports=t},50869:(e,t,n)=>{var r,o,i=n(665420),a=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};o=n(299498),r={getPortraitURL:function(e){var t,n,r;return i.testing?"":(n="",o.isCodeCombat&&"localhost:3000"===window.location.host&&"nick"===me.get("slug")&&(n="https://codecombat.com"),(t=e.rasterIcon)?n+"/file/"+t:(r=e.raster)?n+"/file/"+r:n+"/file/db/thang.type/"+e.original+"/portrait.png")},getHeroShortName:function(e){var t,n,r;return(n=o.i18n(e,"shortName"))?n:(r=null!=(t={Assassin:{"en-US":"Ritic"},Captain:{"en-US":"Anya","zh-HANS":"å®é
"},Champion:{"en-US":"Ida"},"Master Wizard":{"en-US":"Usara"},Duelist:{"en-US":"Alejandro"},"Forest Archer":{"en-US":"Naria"},Goliath:{"en-US":"Okar"},Guardian:{"en-US":"Illia"},Knight:{"en-US":"Tharin","zh-HANS":"妿"},Librarian:{"en-US":"Hushbaum"},Necromancer:{"en-US":"Nalfar"},Ninja:{"en-US":"Amara"},Pixie:{"en-US":"Zana"},"Potion Master":{"en-US":"Omarn"},Raider:{"en-US":"Arryn"},Samurai:{"en-US":"Hattori"},"Ian Elliott":{"en-US":"Hattori"},Sorcerer:{"en-US":"Pender"},Trapper:{"en-US":"Senick"},"Code Ninja":{"en-US":"Code Ninja"}}[e.name])?t[me.get("preferredLanguage",!0)]:void 0)?r:null!=t?t["en-US"]:void 0},getGender:function(e){var t,n,r,o,i;return(t=null!=e?e.gender:void 0)?t:(i=null!=(r=null!=(o=null!=e?e.slug:void 0)?o:null!=e&&"function"==typeof e.get?e.get("slug"):void 0)?r:"",n={male:["knight","samurai","trapper","potion-master","goliath","assassin","necromancer","duelist","code-ninja","armando-hoyos"],female:["captain","ninja","forest-archer","librarian","sorcerer","raider","guardian","pixie","master-wizard","champion","valkyrie"]},a.call(n.female,i)>=0?"female":"male")}},e.exports=r},276623:(e,t,n)=>{var r,o,i;n(318038),i=n(299498),r=function(e,t){var n,r,o,i,a,s;for(i in s=!1,n=!0,o=0,a=0,e)r=e[i],t.has(i)&&(s=!0,r?o++:n=!1,a++);return s||(n=!1),[s,n&&a===t.size,o]},e.exports={calculateDots:function(e,t,n){var o,i,a,s,c,u,l,d,p,f,h,m,g,y,v,b,w,S,C,k,x,E;for(x={},S=_.flatten(function(){var t,n,r,o,i;for(i=[],t=0,n=(r=e.models).length;t<n;t++)a=r[t],i.push((null!=(o=a.sessions)?o.models:void 0)||[]);return i}()),u=0,p=S.length;u<p;u++)C=(w=S[u]).get("creator"),null==x[C]&&(x[C]={}),h=w.get("level").original,(i=x[C])[h]||(i[h]=w.completed());for(b=[],d=0,f=(v=e.models).length;d<f;
2d++)a=v[d],b.push(function(){var e,i,u,d,p,f,v,b,_;for(p=t.models,_=[],c=e=0,u=p.length;e<u;c=++e)if(s=p[c],l=n.findWhere({courseID:s.id,classroomID:a.id}))if(null!=(f=a.sessions)?f.loaded:void 0){for(l.sessionsLoaded=!0,l.numCompleted=0,l.started=!1,y=new Set(function(){var e,t,n,r;for(r=[],e=0,t=(n=a.getLevels({courseID:s.id}).models).length;e<t;e++)(h=n[e]).get("practice")||h.get("assessment")||r.push(h.get("original"));return r}()),g=0,i=0,d=(v=l.get("members")).length;i<d;i++)k=v[i],b=r(x[k],y),E=b[0],o=b[1],m=b[2],g+=m,l.started||(l.started=E),o&&++l.numCompleted;_.push(l.percentLevelCompletion=Math.floor(g/(y.size*l.get("members").length)*100))}else l.sessionsLoaded=!1;return _}());return b},calculateEarliestIncomplete:function(e,t,n,r){var o,a,s,c,u,l,d,p,f,h,m,g,y,v,b,w,S,C,k;for(a=s=0,l=(g=t.models).length;s<l;a=++s)if(o=g[a],n.findWhere({courseID:o.id,classroomID:e.id}))for(h=c=0,d=(y=e.getLevels({courseID:o.id}).models).length;c<d;h=++c){for(f=y[h],C=[],u=0,p=(v=r.models).length;u<p;u++)w=v[u],S=w.id,b=_.filter(e.sessions.models,(function(e){return e.get("creator")===S&&e.get("level").original===f.get("original")})),_.find(b,(function(e){return e.completed()}))||C.push(S);if(C.length>0)return k=_.map(C,(function(e){return r.get(e)})),m=e.getLevelNumber(f.get("original"),h+1,o.id),{courseName:i.i18n(o.attributes,"name"),courseNumber:a+1,levelNumber:m,levelName:f.get("name"),users:k}}return null},calculateLatestComplete:function(e,t,n,r,o){var a,s,c,u,l,d,p,f,h,m,g,y,v,b,w,S,C,k,x;for(s=c=0,d=(v=t.models.slice().reverse()).length;c<d;s=++c)if(a=v[s],s=t.models.length-s-1,n.findWhere({courseID:a.id,classroomID:e.id}))for(m=u=0,p=(b=(g=e.getLevels({courseID:a.id}).models.slice()).reverse()).length;u<p;m=++u){for(h=b[m],m=g.length-m-1,k=[],l=0,f=(w=r.models).length;l<f;l++)(null!=(S=o[C=w[l].id])?S[h.get("original").toString()]:void 0)&&k.push(C);if(k.length>0)return x=_.map(k,(function(e){return r.get(e)})),y=e.getLevelNumber(h.get("original"),m+1,a.id),{courseName:i.i18n(a.attributes,"name"),courseNumber:s+1,levelNumber:y,levelIndex:m,levelName:h.get("name"),users:x}}return null},calculateConceptsCovered:function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m,g,y,v,b,w,S,C,k,x,E,O,T,A,P,I,j,L,N,R,D,M,F,U,B,$;for(s={},l=0,h=(I=e.models).length;l<h;l++)for(s[(i=I[l]).id]={},u=d=0,m=(j=t.models).length;d<m;u=++d)for(c=j[u],p=0,g=(L=i.getLevels({courseID:c.id}).models).length;p<g;p++){for(k=L[p],x=k.get("original"),f=0,y=(N=k.get("concepts")).length;f<y;f++)a=N[f],s[i.id][a]||(s[i.id][a]={completed:!0,started:!1});for(E=0,v=(R=k.get("concepts")).length;E<v;E++)for(a=R[E],O=0,b=(D=i.get("members")).length;O<b;O++){if($=D[O],B=_.filter(i.sessions.models,(function(e){return e.get("creator")===$&&e.get("level").original===x})),0===_.size(B))for(T=0,w=(M=k.get("concepts")).length;T<w;T++)a=M[T],s[i.id][a].completed=!1;if(_.size(B)>0)for(A=0,S=(F=k.get("concepts")).length;A<S;A++)a=F[A],s[i.id][a].started=!0;if(!_.find(B,(function(e){return e.completed()})))for(P=0,C=(U=k.get("concepts")).length;P<C;P++)a=U[P],s[i.id][a].completed=!1}}return s},calculateAllProgressInteractives:function(e,t){var n,r,i,a,s,c,u,l,d,p,f,h,m;for(null==t&&(t=[]),h={},a=0,d=(m=e.models).length;a<d;a++)for(h[(r=m[a]).id]={},l=0,p=t.length;l<p;l++)(s=(u=t[l]).interactiveId)&&(null==(c=null!=(n=h[r.id])[s]?n[s]:n[s]={}).numStudents&&(c.numStudents=0),c.numStudents+=1,null==c.flaggedStudents&&(c.flaggedStudents=[]),((i=u.dateFirstCompleted||void 0)?u.submissions.filter((function(e){return new Date(e.submissionDate).getTime()<=new Date(i).getTime()}))||[]:u.submissions||[]).length>=3&&c.flaggedStudents.push(u.userId),f=c.flaggedStudents.length,c.needsReview=f/c.numStudents>=.5,c[u.userId]={session:u});return _.assign(h,o),h},calculateAllProgress:function(e,t,n,r){var i,a,s,c,u,l,d,p,f,h,m,g,y,v,b,w,S,C,k,x,E,O,T,A,P,I,j,L,N,R,D,M;for(O={},h=0,b=(T=e.models).length;h<b;h++)for(O[(u=T[h]).id]={},d=g=0,w=(A=t.models).length;g<w;d=++g)if(l=A[d],n.findWhere({courseID:l.id,classroomID:u.id}))for(O[u.id][l.id]={completed:!0,started:!1},E=u.getLevels({courseID:l.id}),O[u.id][l.id].levelCount=E.models.length,O[u.id][l.id].userCount=r.models.length,y=0,S=(P=E.models).length;y<S;y++){for(k=P[y],x=k.get("original"),O[u.id][l.id][x]={completed:r.size()>0,started:!1,numStarted:0},m=k.get("practice")||k.get("assessment")||k.isLadder(),R=_.filter(u.sessions.models,(function(e){return e.get("level").original===x})),v=0,C=(I=r.models).length;v<C;
2v++)D=I[v],M=D.id,null==(p=O[u.id][l.id])[M]&&(p[M]={completed:!0,started:!1,levelsCompleted:0}),p[x][M]={completed:!0,started:!1},N=_.filter(R,(function(e){return e.get("creator")===M})),p[x][M].session=null!=(j=_.find(N,(function(e){return e.completed()}))||_.first(N))?j.toJSON():void 0,0===_.size(N)&&(m||p.started||(p.started=!1),m||(p.completed=!1),m||(i=p[M]).started||(i.started=!1),m||(p[M].completed=!1),(a=p[x]).started||(a.started=!1),p[x].completed=!1,p[x][M].started=!1,p[x][M].completed=!1),_.size(N)>0&&(m||(p.started=!0),m||(p[M].started=!0),p[x].started=!0,p[x][M].started=!0,f=_.map(N,(function(e){return new Date(e.get("changed"))})),p[x][M].lastPlayed=new Date(Math.max.apply(Math,f)),p[x].numStarted+=1,p[x][M].codeConcepts=_.flatten(_.map(N,(function(e){return e.get("codeConcepts")||[]})))),_.find(N,(function(e){return e.completed()}))?(m||p.completed&&(p.completed=!0),m||(s=p[M]).completed&&(s.completed=!0),m||(p[M].levelsCompleted+=1),(c=p[x]).completed&&(c.completed=!0),p[x][M].completed=!0,f=function(){var e,t,n;for(n=[],t=0,e=N.length;t<e;t++)L=N[t],n.push(new Date(L.get("dateFirstCompleted")||L.get("changed")));return n}(),p[x][M].dateFirstCompleted=new Date(Math.max.apply(Math,f))):(m||(p.completed=!1),m||(p[M].completed=!1),m?p[x][M].started&&(p[x].completed=!1):p[x].completed=!1,p[x][M].completed=!1,p[x].dateFirstCompleted=null,p[x][M].dateFirstCompleted=null);m&&p&&!p[x].started&&(p[x].completed=!1)}else O[u.id][l.id]={completed:!1,started:!1};return _.assign(O,o),O},courseLabelsArray:function(e){return e.map((function(e){var t;return null!=(t=null!=e?e.acronym():void 0)?t:""}))},hasUserCompletedCourse:r},o={get:function(e){var t,n,r,o,i,a,s,c,u,l,d,p,f,h,m,g;if(null==e&&(e={}),t=e.classroom,n=e.course,i=e.level,g=e.user,o=e.interactiveId,!t)throw new Error("You must provide a classroom");if(o)return null!=(s=this[t.id])?s[o]:void 0;if(!n)throw new Error("You must provide a course");return r={completed:!1,started:!1},e.level?(a=i.get("original"),e.user?(null!=(c=this[t.id])&&null!=(u=c[n.id])&&null!=(l=u[a])?l[g.id]:void 0)||r:(null!=(d=this[t.id])&&null!=(p=d[n.id])?p[a]:void 0)||r):e.user?(null!=(f=this[t.id])&&null!=(h=f[n.id])?h[g.id]:void 0)||r:(null!=(m=this[t.id])?m[n.id]:void 0)||r}}},284358:e=>{var t,n,r;e.exports.translateJS=function(e,t,o){return null==t&&(t="cpp"),null==o&&(o=!0),"cpp"===t||"java"===t?n(e,t,o):"python"===t||"lua"===t||"coffeescript"===t?r(e,t):("javascript"===t||console.warn("Unsupported language translation: from javascript to",t),e)},n=function(e,t,n){var r,o,i,a,s,c,u,l,d,p,f,h,m,g,y,v,b,w,S,C,k,x,E,O;if(null==t&&(t="cpp"),null==n&&(n=!0),n&&!/;\n/.test(e))for(c=0,p=(y=[{regex:/(\b(let|var|const)\s+\w+\s*=.*[^;])\s*$/gm,replacement:"$1;"},{regex:/(\breturn\s+.*[^;])\s*$/gm,replacement:"$1;"},{regex:/;\s+$/gm,replacement:";"},{regex:/(\b(for|if|while|do)\s*\(.*\)\s*{[^\n}]*})\s*([^\n;{}\s])/gm,replacement:"$1;\n$3"},{regex:/^(?!\s*\/\/).*[^;\s{}]\s*$/gm,replacement:"$&;"}]).length;c<p;c++)S=(b=y[c]).regex,k=b.replacement,e=e.replace(S,k);if(C=function(e){var t,n,r,o,i,a;for(r=e.length-1,n=o=e.length-2;o>=0;n=o+=-1)/\n?function/.test(e[n])||/^[ \t]+\/\//.test(e[n])||(r-=1,e.splice(r,0,e.splice(n,1)[0]));for(a=e[e.length-1].split("\n").length,r=(t=e.splice(r).join("").split("\n")).length-a,n=i=t.length-a-1;i>=0;n=i+=-1)t[n]&&(/var /.test(t[n])||(r-=1,t.splice(r,0,t.splice(n,1)[0])));return e.concat([t.slice(0,r).join("\n"),t.slice(r).join("\n")])},h=function(e,t){var n,r,o,i,a;for(n=0,r=o=i=t,a=e.length;i<=a?o<a:o>a;r=i<=a?++o:--o)if("{"===e[r]&&(n+=1),"}"===e[r]&&!(n-=1))return r+2},E=function(e){var t,n,r,o,i,a,s,c,u,l,d;if(!e)return[];if(n=/\n?[ \t]*[^\/]/,(t=/^\n?(\/\/.*?\n)*\n/.exec(e))&&(d=t[0].slice(0,-1),e=e.slice(d.length),!n.exec(e)))return[d,e];for(i=[],c=/\n(\/\/.*?\n)*function/gi,e.startsWith("function ")&&i.push(0);u=c.exec(e);)i.push(u.index+1);for(l=[],r=0,a=0,s=i.length;a<s;a++)r!==(o=i[a])&&l.push({s:r,e:o}),r=h(e,o),l.push({s:o,e:r});return l.push({s:r,e:e.length}),(d?[d]:[]).concat(C(l.map((function(t){return e.slice(t.s,t.e)}))))},u=E(e),f=(d=(u=n?_.filter(u.slice(0,u.length-1),(function(e){return e.replace(/\s/g,"").length})).concat(u[u.length-1]):_.filter(u,(function(e){return e.replace(/\s/g,"").length}))).length)?(u[d-1]||"").trimStart().split("\n"):[],n){if("cpp"===t)u[d-1]="int main() {\n"+f.map((function(e){return" "+e})).join("\n")+"\n return 0;\n}";else if("java"===t){for(d>2&&!/function/.test(u[d-2])&&(u[d-2]=u[d-2].split("\n").map((function(e){return/ = /.test(e)&&(e="static "+e),e}
2)).join("\n")),O=/^\/\//.test(u[0])?1:0,o=u.splice(O,d-1-O).join("\n").trimStart().split("\n");o.length&&!o[0];)o.shift();u[(d=u.length)-1]="public class AI {"+(o.length?"\n"+o.map((function(e){return" "+e})).join("\n"):"")+"\n public static void main(String[] args) {\n"+f.map((function(e){return" "+e})).join("\n")+"\n }\n}"}}else d&&(u[d-1]=f.map((function(e){return" "+e})).join("\n"));for(a="cpp"===t?"auto":"public static var",i="cpp"===t?"auto":"Object",r="cpp"===t?"const":"final",s=l=0,w=d;0<=w?l<w:l>w;s=0<=w?++l:--l){if(x=(x=(x=(x=(x=(x=(x=(x=(x=(x=(x=(x=u[s]).replace(/function (.+?)\((.*?)\)/g,(function(e,t,n){var r;return r=_.filter(n.split(/, ?/)).map((function(e){return i+" "+e})).join(", "),a+" "+t+"("+r+")"}))).replace(/(var|let) (x|y|z|dist)/g,"float $2")).replace(/(var|let) (\w+)Index/g,"int $2Index")).replace(/(var|let) (i|j|k)(?![a-zA-Z0-9_])/g,"int $2")).replace(/const (x|y|z|dist)/g,"TEMPCONST float $1")).replace(/const (\w+)Index/g,"TEMPCONST int $1Index")).replace(/const (i|j|k)(?![a-zA-Z0-9_])/g,"TEMPCONST int $1")).replace(/\ ===\ /g," == ")).replace(/\ !== /g," != ")).replace(/hero\.throw\(/g,"hero.throwEnemy(")).replace(/\ = \[([^;]*)\];/g," = {$1};"),"cpp"===t?x=(x=(x=(x=(x=(x=(x=(x=(x=(x=x.replace(/\.length/g,".size()")).replace(/\.push\(/g,".push_back(")).replace(/\.pop\(/g,".pop_back(")).replace(/\.shift\(/g,".pop(")).replace(/\ (var|let) /g," auto ")).replace(/\((var|let) /g,"(auto ")).replace(/\n(var|let) /g,"\nauto ")).replace(/\ const /g," const auto ")).replace(/\nconst /g,"\nconst auto ")).replace(/\ return \[([^;]*)\];/g," return {$1};"):"java"===t&&(x=(x=(x=(x=(x=x.replace(/\ let /g," var ")).replace(/\(let /g,"(var ")).replace(/\nlet /g,"\nvar ")).replace(/\ const /g," final var ")).replace(/\nconst /g,"\nfinal var ")),x=x.replace(/TEMPCONST/g,r),g="^( *[^/\\r\\n]*?)","cpp"===t)for(m=new RegExp(g+"([^*])new ","gm");m.test(x);)x=x.replace(m,"$1$2*new ");for(v=new RegExp(g+"'(.*?)'","gm");v.test(x);)x=x.replace(v,'$1"$2"');"cpp"===t?x=x.replace(/\{\s*"?x"?\s*:\s*([^,]+),\s*"?y"?\s*:\s*([^\}]*)\}/g,"{$1, $2}"):"java"===t&&(x=x.replace(/\{\s*"?x"?\s*:\s*([^,]+),\s*"?y"?\s*:\s*([^\}]*)\}/g,"new Vector($1, $2)")),u[s]=x}return n||(d?(f=u[d-1].split("\n"),u[d-1]=f.map((function(e){return e.slice(1)})).join("\n")):u=[]),u.join("\n")},r=function(e,n){var r,o,i,a,s,c,u,l;if(null==n&&(n="lua"),l=e.split("\n").map((function(e){return" "+e})).join("\n"),"lua"===n?l=l.replace(/function (.+?)\((.*)\) ?{/g,"function $1($2)"):"python"===n?l=l.replace(/function (.+?)\((.*)\) ?{/g,"def $1($2):"):"coffeescript"===n&&(l=l.replace(/function (.+?)\((.*)\) ?{/g,(function(e,t,n){return n?t+" = ("+n+") ->":t+" = ->"}))),o=/for ?\((?:(?:var|let) )?(.+?) ?= ?0; ?\1 ?< ?(.+?).length; ?(?:.*?\+\+.*?)\) *\{?\n(.*)(?:var|let) (.+?) ?= ?\2\[\1\];? *$/gm,"lua"===n?l=l.replace(o,"for $1, $4 in pairs($2) do"):"python"===n?l=l.replace(o,"for $1 in range(len($2)):\n$3$4 = $2[$1]"):"coffeescript"===n&&(l=l.replace(o,"for $4, $1 in $2")),r=/for ?\((?:(?:var|let) )?(.+?) ?= ?0; ?\1 ?< ?(.+?).length; ?(?:.*?\+\+.*?)\) *\{?/g,"lua"===n?l=l.replace(r,"for $1 in pairs($2) do"):"python"===n?l=l.replace(r,"for $1 in range(len($2)):"):"coffeescript"===n&&(l=l.replace(r,"for $1 in [0...$2.length]")),i=/for ?\((?:(?:var|let) )?(.+?) ?= ?(\d+); ?\1 ?< ?(.+?); ?(?:.*?\+\+.*?)\) *\{?/g,"lua"===n?l=l.replace(i,(function(e,t,n,r){return"for "+t+"="+("0"===n?"1":n)+", "+r+" do"})):"python"===n?l=l.replace(i,"for $1 in range($2, $3):"):"coffeescript"===n&&(l=l.replace(i,"for $1 in [$2...$3]")),a=/for ?\((?:(?:var|let) )?(.+?) ?= ?(\d+); ?\1 ?(<=|<|>=|>) ?(.+?); ?\1 ?\+?(-?)= ?(.*)\) *\{?/g,"lua"===n?l=l.replace(a,(function(e,t,n,r,o,i,a){return"for "+t+"="+("0"===n?"1":n)+", "+o+", "+i+a+" do"})):"python"===n?l=l.replace(a,"for $1 in range($2, $4, $5$6):"):"coffeescript"===n&&(l=l.replace(a,"for $1 in [$2...$4, $5$6]")),"lua"===n?l=(l=(l=(l=(l=l.replace(/\ ===\ /g," == ")).replace(/\ !==? /g," ~= ")).replace(/(\S+)(\+|-){2}/g,"$1 = $1 $2 1")).replace(/(\+|-){2}(\S+)/g,"$2 = $2 $1 1")).replace(/(\S+) ?(\+|-|\*|\/)= ?(.+)/g,"$1 = $1 $2 $3"):"coffeescript"===n?l=(l=l.replace(/\ ===?\ /g," is ")).replace(/\ !==? /g," isnt "):"python"===n&&(l=(l=(l=(l=l.replace(/\ ===?\ /g," == ")).replace(/\ !==? /g," != ")).replace(/(\S+)(\+|-){2}/g,"$1 $2= 1")).replace(/(\+|-){2}(\S+)/g,"$2 $1= 1")),l=(l=(l=l.replace(/\ &&\ /g," and ")).replace(/\ \|\|\ /g," or ")).replace(/\!([$A-Z_(])/gi,"not $1"),"python"===n?l=(l=l.replace(/\.push\(/g,".append(")).replace(/\.shift\(0?\)/g,".pop(0)"):"lua"===n&&(l=(l=(l=l.replace(/\.push\(/g,".insert(")).replace(/\.pop\(/g,".remove(")).replace(/\.shift\(0?\)/g,".remove(0)")),"lua"===n?l=(l=(l=(l=(l=l.replace(/\ (var|let|const) /g," local ")).replace(/\ = \[([^;]*)\];/g," = {$1};")).replace(/\((var|let|const) /g,"(local ")).replace(/\n(var|let|const) /g,"\nlocal ")).replace(/\ return \[([^;]*)\];/g," return {$1};"):"python"!==n&&"coffeescript"!==n||(l=(l=(l=(l=l.replace(/^ *(var|let) [^=\n]*$\n/gm,"")).replace(/\ (var|let|const) /g," ")).replace(/\((var|let|const) /g,"(")).replace(/\n(var|let|const) /g,"\n")),"python"===n||"lua"===n)for(u=new RegExp("^ *([^/\\r\\n]*?)new ","gm");u.test(l);)l=l.replace(u,"$1");return s=t[n]||"#",c=new RegExp("([ \t]*?)//","gm"),l=(l=l.replace(c,"$1"+s)).replace(/;/g,""),"lua"===n&&(l=(l=l.replace(/([$A-Z_][$0-9a-z_]*)\.([$A-Za-z_][0-9A-Za-z_$]*)\(/gi,"$1:$2(")).replace(/([$A-Z_][$0-9a-z_]*):([$A-Za-z_][0-9A-Za-z_$]*)\(/g,"$1.$2(")),"lua"===n?l=l.replace(/^(\s*while) ?\((.*)\) ?\{?/gm,"$1 $2 do"):"python"===n?l=l.replace(/^(\s*while) ?\((.*)\) ?\{?/gm,"$1 $2:"):"coffeescript"===n&&(l=l.replace(/^(\s*while) ?\((.*)\) ?\{?/gm,"$1 $2")),"lua"===n?l=(l=l.replace(/else if/g,"elseif")).replace(/(} *)?( *(if|elseif)) ?\((.*)\) ?\{?/gm,"$2 $4 then"):"python"===n?l=(l=(l=l.replace(/else if/g,"elif")).replace(/(} *)?( *(if|elif)) ?\((.*)\) ?\{?/gm,"$2 $4:")).replace(/(}\s*)?else\s*{/g,"else:"):"coffeescript"===n&&(l=(l=l.replace(/(} *)?( *(if|else if)) ?\((.*)\) ?\{?/gm,"$2 $4")).replace(/(}\s*)?else\s*{/g,"else")),l=l.replace(/(}\s*)?else\s*{/g,"else"),"lua"===n?l=(l=l.replace(/^(\s*)\} *$/gm,"$1end")).replace(/^(\s*)end ?}?\n((\n|\s|--.*\n)*^\1)(elseif|else)/gm,"$2$4"):"python"!==n&&"coffeescript"!==n||(l=l.replace(/\n\s*\} *$/gm,"")),"lua"===n?l=(l=l.replace(/null/g,"nil")).replace(/(\S+)\.length/g,"#$1"):"python"===n&&(l=(l=(l=(l=l.replace(/true/g,"True")).replace(/false/g,"False")).replace(/null/g,"None")).replace(/(\S+)\.length/g,"len($1)")),"coffeescript"===n&&(l=(l=l.replace(/([$A-Z_][0-9A-Z_$]*)\(([^()]+)\)(?!\))$/gim,"$1 $2")).replace(/while true$/gm,"loop")),"lua"===n?l=l.replace(/(\$\{[^}]*\})|(\{[^\}]*\})/g,(function(e,t,n){return t||n.replace(/(['"])?(\w+)\1?\s*:\s*/g,"$2=")})):"python"===n&&(l=l.replace(/(\$\{[^}]*\})|(\{[^\}]*\})/g,(function(e,t,n){return t||n.replace(/(['"])?(\w+)\1?\s*:\s*/g,'"$2": ')}))),"lua"===n&&(l=l.replace(/\[(\d)\]/g,(function(e,t){return"["+(parseInt(t,10)+1)+"]"}))),"python"===n?l=(l=l.replace(/^([ ]*)(?![ ]*#)[^\n]+:[ ]*(?=\n+(?!\1[ ]+(?!#[^\n]*$)[^\n]+))/gm,"$&\n$1 pass")).replace(/([ ]*)(?![ ]*#)[^\n]+:$/g,"$&\n$1 pass"):"coffeescript"===n&&(l=(l=l.replace(/^([ ]*)(?![ ]*#).*(?:->|\b(?:if|then|else|unless|while|for|in)\b)(?![^\n]*(?:->|\b(?:if|then|else|unless|while|for|in)\b))[^\n]*(?=\n(?!\1[ ]+(?!#[^\n]*$)[^\n]+))/gm,"$&\n$1 ")).replace(/([ ]*)(?![ ]*#).*(?:->|\b(?:if|then|else|unless|while|for|in)\b)(?![^\n]*(?:->|\b(?:if|then|else|unless|while|for|in)\b))[^\n]*$/g,"$&\n$1 ")),l.split("\n").map((function(e){return e.slice(1)})).join("\n")},t={javascript:"//",python:"#",coffeescript:"#",lua:"--",java:"//",cpp:"//",html:"\x3c!--",css:"/\\*"}},223373:(e,t,n)=>{var r,o,i,a,s=n(619755),c=function(e,t){for(var n in t)u.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e},u={}.hasOwnProperty;e.exports=function(e){function t(){this.updateProgress=function(e,t){return function(){return e.apply(t,arguments)}}(this.updateProgress,this),this.num=0,this.denom=0,this.progress=0,this.resources={},this.rid=0,this.maxProgress=1,this.models={},this.collections={}}return c(t,e),t.prototype.report=function(){var e,t,n,r,o;for(console.info("SuperModel report ------------------------"),console.info(_.values(this.resources).length+" resources."),o=[],e=0,t=(n=_.values(this.resources)).length;e<t;e++)(r=n[e])&&(console.info("\t",r.name,"loaded",r.isLoaded,r.model),r.isLoaded||o.push(r));return o},t.prototype.numDuplicates=function(){var e,t;return e=function(){var e,n,r,o;for(o=[],e=0,n=(r=_.values(this.models)).length;e<n;e++)t=r[e],o.push(t.get("_id"));return o}.call(this),_.size(e)-_.size(_.unique(e))},t.prototype.loadModel=function(e,t,n,r){var o,i;return null==r&&(r=1),_.isNumber(n)&&(r=n),_.isObject(t)&&(n=t),!1===(null!=n?n.cache:void 0)&&"opponent_session"===t||(o=this.getModelByURL(e.getURL())),o?o.loaded?((i=this.addModelResource(o,t,n,0)).markLoaded(),i):((i=this.addModelResource(o,t,n,r)).markLoading(),i):(this.registerModel(e),i=this.addModelResource(e,t,n,r),e.loaded?i.markLoaded():i.load(),i)},t.prototype.loadCollection=function(e,t,n,r){var o,i,a,s;return null==r&&(r=1),_.isNumber(n)&&(r=n),_.isObject(t)&&(n=t),s=e.getURL(),(
2o=this.collections[s])?(console.debug("Collection cache hit",s,"already loaded",o.loaded),o.loaded?((a=this.addModelResource(o,t,n,0)).markLoaded(),a):((a=this.addModelResource(o,t,n,r)).markLoading(),a)):(this.addCollection(e),i=function(t){return e.url===t.url?this.registerCollection(t):(console.warn("Sync triggered for collection",t),console.warn("Yet got other object",t),this.listenToOnce(e,"sync",i))},this.listenToOnce(e,"sync",i),(a=this.addModelResource(e,t,n,r)).isLoading||a.isLoaded||a.load(),a)},t.prototype.trackModel=function(e,t){return this.addModelResource(e,"",{},t).listen()},t.prototype.trackCollection=function(e,t){return this.addModelResource(e,"",{},t).listen()},t.prototype.trackPromise=function(e,t){var n;return null==t&&(t=1),n=new i("",t),e.then((function(){return n.markLoaded()})),e.catch((function(e){return n.error=e,n.markFailed()})),this.storeResource(n,t),e},t.prototype.trackRequest=function(e,t){var n;return null==t&&(t=1),(n=new i("",t)).jqxhr=e,e.done((function(){return n.markLoaded()})),e.fail((function(){return n.markFailed()})),this.storeResource(n,t),e},t.prototype.trackRequests=function(e,t){var n,r,o,i;for(null==t&&(t=1),i=[],n=0,o=e.length;n<o;n++)r=e[n],i.push(this.trackRequest(r,t));return i},t.prototype.shouldSaveBackups=function(e){return!1},t.prototype.getModel=function(e,t){var n;return _.isString(e)?this.getModelByURL(e):(n=new e({_id:t}),this.getModelByURL(n.getURL()))},t.prototype.getModelByURL=function(e){return _.isFunction(e)&&(e=e()),this.models[e]||null},t.prototype.getModelByOriginal=function(e,t,n){return null==n&&(n=null),_.find(this.models,(function(r){return r.get("original")===t&&r.constructor.className===e.className&&(!n||n(r))}))},t.prototype.getModelByOriginalAndMajorVersion=function(e,t,n){return null==n&&(n=0),_.find(this.models,(function(r){var o;if(o=r.get("version"))return r.get("original")===t&&o.major===n&&r.constructor.className===e.className}))},t.prototype.getModels=function(e){var t,n,r;return e?(t=_.isString(e)?e:e.className,function(){var e,o;for(n in o=[],e=this.models)(r=e[n]).constructor.className===t&&o.push(r);return o}.call(this)):_.values(this.models)},t.prototype.registerModel=function(e){return this.models[e.getURL()]=e},t.prototype.getCollection=function(e){return this.collections[e.getURL()]||e},t.prototype.addCollection=function(e){var t;return t=e.getURL(),null!=this.collections[t]&&this.collections[t]!==e?console.warn("Tried to add Collection '"+t+"' to SuperModel when we already had it."):this.registerCollection(e)},t.prototype.registerCollection=function(e){var t,n,r,o,i,a,c;for(e.isCachable&&(this.collections[e.getURL()]=e),r=o=0,i=(c=e.models).length;o<i;r=++o)a=c[r],(t=this.getModelByURL(a.getURL()))?(n=s.extend(!0,{},a.attributes),t.set(n,{silent:!0,fromMerge:!0})):this.registerModel(a);return e},t.prototype.finished=function(){return 1===this.progress||!this.denom||this.failed},t.prototype.addModelResource=function(e,t,n,o){var i;return null==o&&(o=1),_.isNumber(n)&&(o=n),_.isObject(t)&&(n=t),e.saveBackups=e.saveBackups||this.shouldSaveBackups(e),this.checkName(t),i=new r(e,t,n,o),this.storeResource(i,o),i},t.prototype.removeModelResource=function(e){return this.removeResource(_.find(this.resources,(function(t){return(null!=t?t.model:void 0)===e})))},t.prototype.addRequestResource=function(e,t,n){var r;return null==n&&(n=1),_.isNumber(t)&&(n=t),_.isObject(e)&&(t=e),this.checkName(e),r=new o(e,t,n),this.storeResource(r,n),r},t.prototype.addSomethingResource=function(e,t){var n;return null==t&&(t=1),_.isNumber(e)&&(t=e),this.checkName(e),n=new a(e,t),this.storeResource(n,t),n},t.prototype.addPromiseResource=function(e,t){var n;return null==t&&(t=1),n=this.addSomethingResource("some promise",t),e.then((function(){return n.markLoaded()})),e.catch((function(){return n.markFailed()}))},t.prototype.checkName=function(e){},t.prototype.storeResource=function(e,t){if(this.rid++,e.rid=this.rid,this.resources[this.rid]=e,this.listenToOnce(e,"loaded",this.onResourceLoaded),this.listenTo(e,"failed",this.onResourceFailed),this.denom+=t,this.denom)return _.defer(this.updateProgress)},t.prototype.removeResource=function(e){if(this.resources[e.rid])return this.resources[e.rid]=null,e.isLoaded&&--this.num,--this.denom,_.defer(this.updateProgress)},t.prototype.onResourceLoaded=function(e){if(this.resources[e.rid])return this.num+=e.value,_.defer(this.updateProgress),e.clean(),this.stopListening(e,"failed",this.onResourceFailed),this.trigger("resource-loaded",e)},t.prototype.onResourceFailed=function(e){if(this.resources[e.rid])return this.failed=!0,this.trigger("failed",{resource:e}),e.clean()},t.prototype.updateProgress=function(){var e;if(e=this.denom?this.num/this.denom:1,e=Math.min(this.maxProgress,e),!(this.progress>=e))return this.progress=e,this.trigger("update-progress",this.progress),this.finished()?this.trigger("loaded-all"):void 0},t.prototype.setMaxProgress=function(e){this.maxProgress=e},t.prototype.resetProgress=function(){return this.progress=0},t.prototype.clearMaxProgress=function(){return this.maxProgress=1,_.defer(this.updateProgress)},t.prototype.getProgress=function(){return this.progress},t.prototype.getResource=function(e){return this.resources[e]},t.prototype.finishLoading=function(){return new Promise((e=this,function(t,n){return e.finished()?t(e):(e.once("failed",(function(e){var t,r,o;return t=(o=e.resource).jqxhr,n({message:(null!=t&&null!=(r=t.responseJSON)?r.message:void 0)||(null!=t?t.responseText:void 0)||o.error||"Unknown Error"})})),e.once("loaded-all",(function(){return t(e)})))}
2));var e},t}(Backbone.Model),i=function(e){function t(e,t){null==t&&(t=1),this.name=e,this.value=t,this.rid=-1,this.isLoading=!1,this.isLoaded=!1,this.model=null,this.jqxhr=null}return c(t,e),t.prototype.markLoaded=function(){if(!this.isLoaded)return this.trigger("loaded",this),this.isLoaded=!0,this.isLoading=!1},t.prototype.markFailed=function(){if(!this.isLoaded)return this.trigger("failed",this),this.isLoaded=this.isLoading=!1,this.isFailed=!0},t.prototype.markLoading=function(){return this.isLoaded=this.isFailed=!1,this.isLoading=!0},t.prototype.clean=function(){return this.jqxhr=null},t.prototype.load=function(){return this},t}(Backbone.Model),r=function(e){function t(e,n,r,o){t.__super__.constructor.call(this,n,o),this.model=e,this.fetchOptions=r,this.jqxhr=this.model.jqxhr,this.loadsAttempted=0}return c(t,e),t.prototype.load=function(){return this.markLoading(),this.fetchModel(),this},t.prototype.fetchModel=function(){return this.model.loading||(this.jqxhr=this.model.fetch(this.fetchOptions)),this.listen()},t.prototype.listen=function(){return this.listenToOnce(this.model,"sync",(function(){return this.markLoaded()})),this.listenToOnce(this.model,"error",(function(){return this.markFailed()}))},t.prototype.clean=function(){return this.jqxhr=null,this.model.jqxhr=null},t}(i),o=function(e){function t(e,n,r){t.__super__.constructor.call(this,e,r),this.jqxhrOptions=n}return c(t,e),t.prototype.load=function(){var e;return this.markLoading(),this.jqxhr=s.ajax(this.jqxhrOptions),this.jqxhr.done((e=this,function(){return _.defer((function(){return e.markLoaded()}))})),this.jqxhr.fail(function(e){return function(){return _.defer((function(){return e.markFailed()}))}}(this)),this},t}(i),a=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return c(t,e),t}(i)},968029:(e,t,n)=>{var r,o,i,a,s,c,u,l,d,p,f,h,m,g,y,v=n(619755),b=n(665420),w=function(e,t){return function(){return e.apply(t,arguments)}},S={}.hasOwnProperty,C=[].slice,k=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1};i=n(223373),m=n(299498),r=n(727851),p=n(911071),d=n(171341),n(83230),c=n(28045),s=n(927136),h=n(969278),n(570819),g=null,y=null,u=0,f=function(){return"view-scope-"+u++},l=function(){},a=n(233954),e.exports=o=function(e){function t(e){var n,r;this.animatePointer=w(this.animatePointer,this),this.modalClosed=w(this.modalClosed,this),this.modalShown=w(this.modalShown,this),this.loadProgress=_.cloneDeep(this.loadProgress),null==this.supermodel&&(this.supermodel=new i),this.options=e,(null!=e?e.supermodel:void 0)&&(this.supermodel.models=e.supermodel.models,this.supermodel.collections=e.supermodel.collections,this.supermodel.shouldSaveBackups=e.supermodel.shouldSaveBackups),this.subscriptions=m.combineAncestralObject(this,"subscriptions"),this.events=m.combineAncestralObject(this,"events"),this.scope=f(),this.shortcuts=m.combineAncestralObject(this,"shortcuts"),this.subviews={},this.listenToShortcuts(),this.updateProgressBar=_.debounce(this.updateProgressBar,100),this.listenTo(this.supermodel,"loaded-all",this.onLoaded),this.listenTo(this.supermodel,"update-progress",this.updateProgress),this.listenTo(this.supermodel,"failed",this.onResourceLoadFailed),this.warnConnectionError=_.throttle(this.warnConnectionError,3e3),v("body").addClass("product-"+m.getProductName().toLowerCase()),n=this.supermodel,_.defer((r=this,function(){var e,t;if(n!==r.supermodel&&!r.destroyed)throw new Error((null!=(e=null!=(t=r.constructor)?t.name:void 0)?e:r)+": Supermodel listeners not hooked up! Don't reassign @supermodel; CocoView does that for you.")})),t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)S.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,Backbone.View),t.prototype.cache=!1,t.prototype.retainSubviews=!1,t.prototype.template=function(){return""},t.prototype.events={"click #loading-error .login-btn":"onClickLoadingErrorLoginButton","click #loading-error #create-account-btn":"onClickLoadingErrorCreateAccountButton","click #loading-error #logout-btn":"onClickLoadingErrorLogoutButton","click .contact-modal":"onClickContactModal"},t.prototype.subscriptions={},t.prototype.shortcuts={},t.prototype.loadProgress={progress:0},t.prototype.destroy=function(){var e,t,n,r,o;for(t in null!=(r=this.viewVisibleTimer)&&r.destroy(),this.stopListening(),this.off(),this.stopListeningToShortcuts(),this.undelegateEvents(),o=this.subviews)o[t].destroy();
2v("#modal-wrapper .modal").off("hidden.bs.modal",this.modalClosed),m.isCodeCombat&&v("#modal-wrapper .modal").off("shown.bs.modal",this.modalShown),this.$el.find(".has-tooltip, [data-original-title]").tooltip("destroy");try{this.$(".nano").nanoScroller({destroy:!0})}catch(t){e=t,console.log("dont know why but ",this.$(".nano")," failed with ",e)}for(n in this.endHighlight(),this.getPointer(!1).remove(),this)this[n],this[n]=void 0;return this.destroyed=!0,this.off=l,this.destroy=l,v.noty.closeAll()},t.prototype.trackTimeVisible=function(e){var t;if(t=(null!=e?e:{}).trackViewLifecycle,!this.viewVisibleTimer)return this.viewVisibleTimer=new s,this.trackViewLifecycle=t},t.prototype.currentVisiblePremiumFeature=function(){return this.trackViewLifecycle?{viewName:this.id}:null},t.prototype.updateViewVisibleTimer=function(){var e;if(this.viewVisibleTimer)return(e=!this.hidden&&!this.destroyed&&this.currentVisiblePremiumFeature())&&!_.isEqual(e,this.viewVisibleTimer.featureData)?(this.viewVisibleTimer.stopTimer({clearName:!0}),this.viewVisibleTimer.startTimer(e)):e?void 0:this.viewVisibleTimer.stopTimer({clearName:!0})},t.prototype.destroyAceEditor=function(e){if(e)return e.getSession().setMode(""),e.destroy()},t.prototype.afterInsert=function(){var e,t;return h.load("sub-modal-continue")&&(e=h.load("sub-modal-continue"),h.remove("sub-modal-continue"),_.defer((t=this,function(){var r;return r=n(203949),t.openModalView(new r({subModalContinue:e}))}))),this.updateViewVisibleTimer()},t.prototype.willDisappear=function(){var e,t;for(e in this.undelegateEvents(),this.hidden=!0,this.updateViewVisibleTimer(),this.stopListeningToShortcuts(),t=this.subviews)t[e].willDisappear();return v.noty.closeAll()},t.prototype.didReappear=function(){var e,t,n,r,o;for(e in this.delegateEvents(),o=this.hidden,this.hidden=!1,this.updateViewVisibleTimer(),o&&this.listenToShortcuts(),n=[],t=this.subviews)r=t[e],n.push(r.didReappear());return n},t.prototype.isRTL=function(e){return/[\u0590-\u06FF]/.test(e)},t.prototype.applyRTLIfNeeded=function(){var e,t;if("he"===(e=me.get("preferredLanguage"))||"ar"===e||"fa"===e||"ur"===e)return this.$("[data-i18n]").each((t=this,function(e,n){if(t.isRTL(n.innerHTML))return n.dir="rtl",v(n).parentsUntil('table, form, noscript, div:not([class~="rtl-allowed"]):not([class~="form"]):not([class~="form-group"]):not([class~="form-group"]), [dir="ltr"]').attr("dir","rtl"),v(n).parents("div.form").attr("dir","rtl")}))},t.prototype.renderSelectors=function(){var e,t,n,r,o,i,a,s,c,u;for(u=1<=arguments.length?C.call(arguments,0):[],a=v(this.template(this.getRenderData())),t=n=0,o=u.length;n<o;t=++n)for(c=u[t],r=0,i=(s=_.zip(this.$el.find(c),a.find(c))).length;r<i;r++)e=s[r],v(e[0]).replaceWith(v(e[1]));return this.delegateEvents(),this.$el.i18n(),this.applyRTLIfNeeded()},t.prototype.render=function(){var e,n,r,o,i,a;if(!me)return this;if(this.retainSubviews)o=_.values(this.subviews);else for(e in i=this.subviews)(a=i[e]).destroy();if(this.subviews={},t.__super__.render.call(this),_.isString(this.template))return this.template;if(this.$el.html(this.template(this.getRenderData())),this.retainSubviews)for(n=0,r=o.length;n<r;n++)a=o[n],this.insertSubView(a);return this.supermodel.finished()?this.hideLoading():this.showLoading(),this.afterRender(),this.$el.i18n(),this.applyRTLIfNeeded(),this},t.prototype.getRenderData=function(e){return null==e&&(e={}),e.isProduction=b.isProduction(),e.me=me,e.pathname=document.location.pathname,e.fbRef=e.pathname.replace(/[^a-zA-Z0-9+\/=\-.:_]/g,"").slice(0,40)||"home",e.isMobile=this.isMobile(),e.moment=moment,e.translate=v.t,e.view=this,e._=_,e.document=document,e.i18n=m.i18n,e.state=this.state,e.serverConfig=window.serverConfig,e.serverSession=window.serverSession,e.features=window.features,e.getQueryVariable=m.getQueryVariable,e},t.prototype.afterRender=function(){return this.renderScrollbar()},t.prototype.renderScrollbar=function(){return _.defer((e=this,function(){if(!e.destroyed)return e.$el.find(".nano").nanoScroller()}));var e},t.prototype.updateProgress=function(e){if(!this.destroyed)return e>this.loadProgress.progress&&(this.loadProgress.progress=e),this.updateProgressBar(e)},t.prototype.updateProgressBar=function(e){var t,n;if(!this.destroyed)return this.trigger("loading:progress",100*e),t=parseInt(100*e)+"%",null!=(n=this.$el)?n.find(".loading-container .progress-bar").css("width",t):void 0},t.prototype.onLoaded=function(){return this.render()},t.prototype.onResourceLoadFailed=function(e){var t,n;if((t=e.resource).value&&this.stopListening(this.supermodel),402!==(null!=(n=t.jqxhr)?n.status:void 0))return this.showError(t.jqxhr)},t.prototype.warnConnectionError=function(){var e;return e=v.i18n.t("loading_error.connection_failure",{defaultValue:"Connection failed."}),noty({text:e,layout:"center",type:"error",killer:!0,timeout:3e3})},t.prototype.onClickContactModal=function(e){var t,r,o,i;return i=this,o=function(){var e;return e=m.isCodeCombat?n(82098).Z:n(44278).Z,i.openModalView(new e)},r=function(e){return function(){var t;return t=m.isCodeCombat?n(669760):n(267891),e.openModalView(new t)}}(this),t=function(e){return function(t){var r,o,i,a,s,c;if(i=new Date("2023-06-05T00:00:00Z"),o=new Date("2023-06-09T23:59:59Z"),c="contact-modal-confirm-seen-"+me.id+"-"+i.getTime()+"-"+o.getTime(),s=h.load(c),new Date>i&&new Date<o&&!s)return a={body:v.i18n.t("contact.ooo_blurb"),decline:v.i18n.t("modal.cancel"),confirm:v.i18n.t("modal.okay")},(r=new(n(311729))(a)).on("confirm",(function(){return h.save(c,!0),t()})),e.openModalView(r);t()}}(this),t((function(){return me.isTeacher(!0)&&window.zE||me.showChinaResourceInfo()?o():m.isCodeCombat?r():location.href="mailto:[email protected]"}))},t.prototype.onClickLoadingErrorLoginButton=function(e){var t;return e.stopPropagation(),t=n(498407),this.openModalView(new t)},t.prototype.onClickLoadingErrorCreateAccountButton=function(e){var t;return e.stopPropagation(),t=n(287127),this.openModalView(new t({mode:"signup"}))},t.prototype.onClickLoadingErrorLogoutButton=function(e){return e.stopPropagation(),c.logoutUser()},t.prototype.openModalView=function(e,t){var n,r,o;
2if(null==t&&(t=!1),!y){if(g){if(y=e,t)return;return g.$el.is(":visible")?g.hide():this.modalClosed(g)}return o=new a(e),e.render(),v("#modal-wrapper").removeClass("hide").empty().append(e.el),e.afterInsert(),g=e,n={show:!0,backdrop:!!e.closesOnClickOutside||"static"},"boolean"==typeof e.closesOnEscape&&!1===e.closesOnEscape&&(n.keyboard=!1),v(".modal-backdrop").remove(),r=v("#modal-wrapper .modal").modal(n),v(".modal-backdrop").toggleClass("vue-modal",Boolean(e.VueComponent)),r.on("hidden.bs.modal",this.modalClosed),r.on("shown.bs.modal",this.modalShown),window.currentModal=e,"function"==typeof this.getRootView&&this.getRootView().stopListeningToShortcuts(!0),Backbone.Mediator.publish("modal:opened",{}),o.record(),e}},t.prototype.modalShown=function(){return null!=g?g.trigger("shown"):void 0},t.prototype.modalClosed=function(){var e;return g&&g.willDisappear(),null!=g&&g.destroy(),g=null,window.currentModal=null,v("#modal-wrapper").addClass("hide"),y?(e=y,y=null,this.openModalView(e)):(this.getRootView().listenToShortcuts(!0),Backbone.Mediator.publish("modal:closed",{}))},t.prototype.showLoading=function(e){return null==e&&(e=this.$el),this.trigger("loading:show"),e.find(">").addClass("hidden"),e.append(p()).i18n(),this.applyRTLIfNeeded(),this._lastLoading=e},t.prototype.hideLoading=function(){if(null!=this._lastLoading)return this.trigger("loading:hide"),this._lastLoading.find(".loading-screen").remove(),this._lastLoading.find(">").removeClass("hidden"),this._lastLoading=null},t.prototype.showError=function(e){var t;if(null!=this._lastLoading)return t={jqxhr:e,view:this,me},this._lastLoading.find(".loading-screen").replaceWith(d(t)),this._lastLoading.i18n(),this.applyRTLIfNeeded()},t.prototype.showReadOnly=function(){var e;if(!me.isAdmin()&&!me.isArtisan())return e=v.i18n.t("editor.read_only_warning2",{defaultValue:"Note: you can't save any edits here, because you're not logged in."}),noty({text:e,layout:"center",type:"information",killer:!0,timeout:5e3})},t.prototype.enableModalInProgress=function(e){var t;return(t=e.find(".modal-content")).find("> div",e).hide(),t.find(".wait",e).show()},t.prototype.disableModalInProgress=function(e){var t;return(t=e.find(".modal-content")).find("> div",e).show(),t.find(".wait",e).hide()},t.prototype.addNewSubscription=r.prototype.addNewSubscription,t.prototype.listenToShortcuts=function(e){var t,n,r,o,i,a,s;if(key){for(i in n=this.shortcuts)t=n[i],t=m.normalizeFunc(t,this),key(i,this.scope,_.bind(t,this));if(e){for(s in o=[],r=this.subviews)a=r[s],o.push(a.listenToShortcuts());return o}}},t.prototype.stopListeningToShortcuts=function(e){var t,n,r,o;if(key&&(key.deleteScope(this.scope),e)){for(o in n=[],t=this.subviews)r=t[o],n.push(r.stopListeningToShortcuts());return n}},t.prototype.insertSubView=function(e,t){var n;return null==t&&(t=null),(n=this.makeSubViewKey(e))in this.subviews&&this.subviews[n].destroy(),null==t&&(t=this.$el.find("#"+e.id)),this.retainSubviews?(this.registerSubView(e,n),t[0]&&(e.setElement(t[0]),e.render(),e.afterInsert()),e):(t.after(e.el).remove(),this.registerSubView(e,n),e.render(),e.afterInsert(),e)},t.prototype.registerSubView=function(e,t){return t=this.makeSubViewKey(e),e.parent=this,e.parentKey=t,this.subviews[t]=e,e},t.prototype.makeSubViewKey=function(e){var t;return t=e.id||e.constructor.name+u++,_.string.underscored(t)},t.prototype.removeSubView=function(e){return e.$el.empty(),delete this.subviews[e.parentKey],e.destroy()},t.prototype.highlightElement=function(e,t){var n,r,o,i,a,s,c,u,l,d;if(this.endHighlight(),null==t&&(t={}),o=t.delay)return delete t.delay,this.pointerDelayTimeout=_.delay((d=this,function(){return d.highlightElement(e,t)}),o);if(n=this.getPointer(),r=v(e+":visible"),0!==parseFloat(r.css("opacity"))&&(s=r.offset())){for(u=s.left+.5*r.outerWidth(),l=s.top+.5*r.outerHeight(),t.sides?(k.call(t.sides,"left")>=0&&(u=s.left),k.call(t.sides,"right")>=0&&(u=s.left+r.outerWidth()),k.call(t.sides,"top")>=0&&(l=s.top),k.call(t.sides,"bottom")>=0&&(l=s.top+r.outerHeight())):(s.left>.5*this.$el.outerWidth()?u=s.left:s.left+r.outerWidth()<.5*this.$el.outerWidth()&&(u=s.left+r.outerWidth()),s.top>.5*this.$el.outerWidth()?l=s.top:s.top+r.outerHeight()<.5*this.$el.outerHeight()&&(l=s.top+r.outerHeight())),t.offset&&(u+=t.offset.x,l+=t.offset.y),this.pointerRadialDistance=-47,this.pointerRotation=null!=(c=t.rotation)?c:Math.atan2(.5*this.$el.outerWidth()-u,l-.5*this.$el.outerHeight()),i=this.pointerRotation;this.pointerRotation<i+2*Math.PI&&(u-150*Math.sin(this.pointerRotation)<0||u-150*Math.sin(this.pointerRotation)>this.$el.outerWidth()||l-150*Math.cos(this.pointerRotation)<0||l-150*Math.cos(this.pointerRotation)>this.$el.outerHeight());)this.pointerRotation+=Math.PI/16;return a=Math.max(1,20-me.rank()),n.css({opacity:1,transition:"none",transform:"rotate("+this.pointerRotation+"rad) translate(-3px, "+this.pointerRadialDistance+"px) scale("+a+")",top:l-50,left:u-50}),_.defer(function(e){return function(){if(!e.destroyed)return e.animatePointer(),clearInterval(e.pointerInterval),e.pointerInterval=setInterval(e.animatePointer,1200)}}(this)),t.duration?this.pointerDurationTimeout=_.delay(function(e){return function(){if(!e.destroyed)return e.endHighlight()}}(this),t.duration):void 0}},t.prototype.animatePointer=function(){var e,t;return(e=this.getPointer()).css({transition:"all 0.6s ease-out",transform:"rotate("+this.pointerRotation+"rad) translate(-3px, "+(this.pointerRadialDistance-50)+"px)"}),setTimeout((t=this,function(){return e.css({transition:"all 0.4s ease-in",transform:"rotate("+t.pointerRotation+"rad) translate(-3px, "+t.pointerRadialDistance+"px)"})}),800)},t.prototype.endHighlight=function(){return this.getPointer(!1).css({opacity:0,transition:"none",top:"-50px",right:"-50px"}),clearInterval(this.pointerInterval),clearTimeout(this.pointerDelayTimeout),clearTimeout(this.pointerDurationTimeout),this.pointerInterval=this.pointerDelayTimeout=this.pointerDurationTimeout=null},t.prototype.getPointer=function(e){var t;return null==e&&(e=!0),!(t=v(".highlight-pointer[data-cid='"+this.cid+"']"))||!t.length&&e?(t=v("<img src='/images/level/pointer.png' class='highlight-pointer' data-cid='"+this.cid+"'>"),this.$el.parents("#modal-wrapper").length&&t.css("z-index",1040),v("body").append(t),t):t},t.prototype.getRootView=function(){var e;
2for(e=this;null!=e.parent;)e=e.parent;return e},t.prototype.isMobile=function(){return m.isMobile()},t.prototype.isMac=function(){return-1!==navigator.platform.toUpperCase().indexOf("MAC")},t.prototype.isIPadApp=function(){var e;return null!=this._isIPadApp?this._isIPadApp:this._isIPadApp=null!=("undefined"!=typeof webkit&&null!==webkit?webkit.messageHandlers:void 0)&&-1!==(null!=(e=navigator.userAgent)?e.indexOf("iPad"):void 0)},t.prototype.isIPadBrowser=function(){var e;return-1!==("undefined"!=typeof navigator&&null!==navigator&&null!=(e=navigator.userAgent)?e.indexOf("iPad"):void 0)},t.prototype.isFirefox=function(){return-1!==navigator.userAgent.toLowerCase().indexOf("firefox")},t.prototype.scrollToLink=function(e,t){var n;return null==t&&(t=300),n=v(e).offset().top,v("html, body").animate({scrollTop:n},t)},t.prototype.scrollToTop=function(e){return null==e&&(e=300),v("html, body").animate({scrollTop:0},e)},t.prototype.getFullscreenRequestMethod=function(){var e;return(e=document.documentElement).requestFullScreen||e.mozRequestFullScreen||e.mozRequestFullscreen||e.msRequestFullscreen||(e.webkitRequestFullscreen?function(){return e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}:null)},t.prototype.toggleFullscreen=function(e){var t,n;document.fullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.webkitFullscreenElement||document.msFullscreenElement?(null!=(t=document.exitFullscreen||document.mozCancelFullScreen||document.mozCancelFullscreen||document.msExitFullscreen||document.webkitExitFullscreen)&&t.call(document),t&&this.playSound("full-screen-end")):(null!=(n=this.getFullscreenRequestMethod())&&n.call(document.documentElement),n&&this.playSound("full-screen-start"))},t.prototype.playSound=function(e,t,n,r,o){return null==t&&(t=1),null==n&&(n=0),null==r&&(r=null),null==o&&(o=0),Backbone.Mediator.publish("audio-player:play-sound",{trigger:e,volume:t,delay:n,pos:r,pan:o})},t.prototype.tryCopy=function(){var e;try{return document.execCommand("copy"),e="Copied to clipboard",noty({text:e,layout:"topCenter",type:"info",killer:!1,timeout:2e3})}catch(t){return e="Oops, unable to copy",noty({text:e,layout:"topCenter",type:"error",killer:!1,timeout:3e3})}},t.prototype.wait=function(e){return new Promise((t=this,function(n){return t.once(e,n)}));var t},t.prototype.onClickTranslatedElement=function(e){var t,r,o,i,a,s,c,u,l,d,p,f,h;if((key.ctrl||key.command)&&key.alt){for(s in e.preventDefault(),e.stopImmediatePropagation(),l=_.last(v(e.currentTarget).data("i18n").split(";")).replace(/\[.*?\]/,""),v.i18n.t(l,{lng:"en"}),v.i18n.t(l),o=n(761625),r=(p=l.split("."))[0],t=p[1],d=2,c=!1,f=o.translation){for(a in i=f[s])if(i[a],++d,r===s&&t===a){c=!0;break}if(c)break;d+=2}return c?("en"===(h=me.get("preferredLanguage")||"en").split("-")[0]&&(h="en"),u="https://github.com/codecombat/codecombat/blob/master/app/locale/"+h+".coffee#L"+d,window.open(u,{target:"_blank"})):console.log("Couldn't find "+l+" in app/locale/en.coffee.")}},t}(),e.exports=o},976911:(e,t,n)=>{var r,o,i,a,s,c,u,l,d,p,f,h,m,g,y=n(665420),v=n(619755),b=[].indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},w={}.hasOwnProperty;n(250636).merge,a=n(968029),f=n(28045),d=f.logoutUser,p=f.me,l=n(7288),r=n(956323),o=n(296779),u=n(186421),g=n(299498),m=n(482156),i=n(919101).Z,c=n(421237).default,s=n(736645).Z,h=n(196363),e.exports=function(e){function t(){return t.__super__.constructor.apply(this,arguments)}return function(e,t){for(var n in t)w.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype}(t,e),t.prototype.showBackground=!0,t.prototype.events={"click #logout-button":"logoutAccount","click #nav-stop-spying-button":"stopSpying","click #nav-stop-switching-button":"stopSwitching","click #nav-student-mode":"switchToStudentMode","change .language-dropdown":"onLanguageChanged","click .language-dropdown li":"onLanguageChanged","click .toggle-fullscreen":"toggleFullscreen","click .signup-button":"onClickSignupButton","click .login-button":"onClickLoginButton","treema-error":"onTreemaError","click [data-i18n]":"onClickTranslatedElement","click .track-cl
2ick-event":"onTrackClickEvent","click .dashboard-toggle-link":"onClickDashboardToggleLink"},t.prototype.subscriptions={"achievements:new":"handleNewAchievements"},t.prototype.shortcuts={"ctrl+shift+a":"navigateToAdmin"},t.prototype.initialize=function(e){var n;t.__super__.initialize.call(this,e);try{return this.initializeMetaBinding()}catch(e){return n=e,console.error("Failed to initialize meta binding",n)}},t.prototype.showNewAchievement=function(e,t){var n;if(t.set("notified",!0),t.patch(),("level.sessions"!==e.get("collection")||(null!=(n=e.get("query"))?n.team:void 0))&&!e.get("hidden")&&!g.isOzaria)return new o({achievement:e,earnedAchievement:t})},t.prototype.handleNewAchievements=function(e){return _.each(e.earnedAchievements.models,(t=this,function(e){return new r({_id:e.get("achievement")}).fetch({success:function(n){return"function"==typeof t.showNewAchievement?t.showNewAchievement(n,e):void 0},cache:!1})}));var t},t.prototype.logoutAccount=function(){var e,t,n,r,o;return y.isIPadApp&&"undefined"!=typeof window&&null!==window&&null!=(t=window.webkit)&&null!=(n=t.messageHandlers)&&null!=(r=n.notification)&&r.postMessage({name:"signOut"}),Backbone.Mediator.publish("auth:logging-out",{}),e=g.isCodeCombat?"Homepage":"Home","home-view"===this.id&&null!=(o=window.tracker)&&o.trackEvent("Log Out",{category:e}),p.isTarena()?d({success:function(){return window.location="http://kidtts.tmooc.cn/ttsPage/login.html"}}):d()},t.prototype.stopSpying=function(){return p.stopSpying({success:function(){return document.location.reload()},error:function(){return u.showNotyNetworkError.apply(u,arguments)}})},t.prototype.stopSwitching=function(){return noty({text:"Switching to teacher account..",type:"success",timeout:5e3,killer:!0}),p.switchToTeacherMode().then((function(){return document.location.reload()})).catch((function(e){return u.showNotyNetworkError(e)}))},t.prototype.switchToStudentMode=function(){return p.getTestStudentId().then((function(e){var t;return t=v.i18n.t("teachers.switch_to_test_student"),noty({text:t,type:"success",timeout:5e3,killer:!0}),p.spy({id:e.id}).then((function(){return document.location.reload()}))}))},t.prototype.onClickSignupButton=function(e){var t,n,r,o,i,a,s,c;switch(this.id){case"home-view":r={category:g.isCodeCombat?"Homepage":"Home"},null!=(o=window.tracker)&&o.trackEvent("Started Signup",r),(t=null!=(i=v(e.target))?i.data("event-action"):void 0)&&null!=(a=window.tracker)&&a.trackEvent(t,r);break;case"world-map-view":null!=(s=window.tracker)&&s.trackEvent("Started Signup",{category:"World Map",label:"World Map"});break;default:null!=(c=window.tracker)&&c.trackEvent("Started Signup",{label:this.id})}return n={},v(e.currentTarget).data("startOnPath")&&(n.startOnPath=v(e.currentTarget).data("startOnPath")),m.isInLibraryNetwork()&&(n.startOnPath="individual"),this.openCreateAccountModal(n)},t.prototype.openCreateAccountModal=function(e){var t;return t=n(287127),this.openModalView(new t(e))},t.prototype.onClickLoginButton=function(e){var t,n,r,o,i,a,s;return n=e.target.dataset.loginMessage,r=e.target.dataset.nextUrl,"home-view"===this.id&&(o={category:g.isCodeCombat?"Homepage":"Home"},null!=(i=window.tracker)&&i.trackEvent("Login",o),(t=null!=(a=v(e.target))?a.data("event-action"):void 0)&&null!=(s=window.tracker)&&s.trackEvent(t,o)),this.openAuthModal({loginMessage:n,nextUrl:r})},t.prototype.openAuthModal=function(e){var t;return t=n(498407),this.openModalView(new t(e))},t.prototype.onTrackClickEvent=function(e){var t,n,r,o;if(t=null!=(n=v(e.target))&&null!=(r=n.closest("a"))?r.data("event-action"):void 0)return null!=(o=window.tracker)?o.trackEvent(t,{category:"Teachers"}):void 0},t.prototype.onClickDashboardToggleLink=function(e){var t,n,r,o,i;return null!=(t=v(e.target))&&null!=(n=t.parent(".dashboard-button"))&&n.addClass("active"),null!=(r=v(e.target))&&null!=(o=r.parent(".dashboard-button"))&&null!=(i=o.siblings(".dashboard-button"))?i.removeClass("active"):void 0},t.prototype.showLoading=function(e){return null==e&&(e=this.$el.find("#site-content-area")),t.__super__.showLoading.call(this,e)},t.prototype.afterInsert=function(){return t.__super__.afterInsert.call(this),this.renderScrollbar(),this.initializeNavigation()}
2,t.prototype.afterRender=function(){return this.$el.find("#main-nav.legacy").length&&(this.$el.addClass("site-chrome"),this.showBackground&&this.$el.addClass("show-background")),t.__super__.afterRender.apply(this,arguments),location.hash&&this.chooseTab(location.hash.replace("#","")),this.buildLanguages(),v("body").removeClass("is-playing"),this.initializeNavigation()},t.prototype.chooseTab=function(e){return v("a[href='#"+e+"']",this.$el).tab("show")},t.prototype.buildLanguages=function(){var e,t;return e=this.$el.find(".language-dropdown").empty(),t=p.get("preferredLanguage",!0),this.addLanguagesToSelect(e,t),v("body").attr("lang",t)},t.prototype.initializeLanguageDropdown=function(e){var t;return null!=(t=this.$el.find(".language-dropdown-current"))?t.text(l[e].nativeDescription):void 0},t.prototype.addLanguagesToSelect=function(e,t){var n,r,o,i,a,s;for(n in o=l,r=_.keys(o),null==t&&(t=p.get("preferredLanguage",!0)),g.isOzaria&&b.call(r,t)<0&&(t="en-US"),e.is("ul")&&this.initializeLanguageDropdown(t),i=_.filter(r,(function(e){return _.find(r,(function(t){return t!==e&&t.split("-")[0]===e}))})),s=[],o)a=o[n],b.call(i,n)>=0&&n!==t||(e.is("ul")?(e.append(v('<li data-code="'+n+'"><a class="language-dropdown-item" href="#">'+a.nativeDescription+"</a></li>")),g.isCodeCombat&&"pt-BR"===n?s.push(e.append(v('<li role="separator" class="divider"</li>'))):s.push(void 0)):(e.append(v("<option></option>").val(n).text(a.nativeDescription)),g.isCodeCombat&&"pt-BR"===n&&e.append(v('<option class="select-dash" disabled="disabled"></option>').text("----------------------------------")),s.push(e.val(t))));return s},t.prototype.onLanguageChanged=function(e){var t,n,r;return(n=v(e.currentTarget)).is("li")?(t=n.data("code"),this.initializeLanguageDropdown(t)):t=v(".language-dropdown").val(),v.i18n.changeLanguage(t,(r=this,function(){return r.s
2aveLanguage(t),l.load(p.get("preferredLanguage",!0)).then((function(){return r.onLanguageLoaded()}))}))},t.prototype.onLanguageLoaded=function(){return this.render()},t.prototype.saveLanguage=function(e){var t;if(p.set("preferredLanguage",e),t=p.patch())return t.error((function(){return u=JSON.parse(t.responseText),console.warn("Error saving language:",u)})),t.success((function(e,t,n){}))},t.prototype.isOldBrowser=g.isOldBrowser,t.prototype.isChinaOldBrowser=g.isChinaOldBrowser,t.prototype.logoutRedirectURL="/",t.prototype.navigateToAdmin=function(){if(window.serverSession.amActually||p.isAdmin())return y.router.navigate("/admin",{trigger:!0})},t.prototype.onTreemaError=function(e){return noty({text:e.message,layout:"topCenter",type:"error",killer:!1,timeout:5e3,dismissQueue:!0})},t.prototype.initializeMetaBinding=function(){var e;return this.metaBinding?this.metaBinding:this.skipMetaBinding?this.metaBinding={$destroy:function(){},setMeta:function(){}}:(e=this.getTitle(),("undefined"!=typeof localStorage&&null!==localStorage?localStorage.showViewNames:void 0)&&(e=this.constructor.name),this.metaBinding=new i({el:document.createElement("div"),propsData:{baseMeta:this.getMeta(),legacyTitle:e}}))},t.prototype.initializeNavigation=function(){var e,t,n,r;if((n=document.querySelector("#main-nav"))&&(this.navigation?n.replaceWith(this.navigation.$el):(this.navigation=new c({el:n,store:h}),_.defer((r=this,function(){return"function"==typeof r.buildLanguages?r.buildLanguages():void 0})))),(e=document.querySelector("#floating-nav"))&&(p.isAnonymous()||p.isTeacher()||p.isAdmin())&&(this.floatNav?e.replaceWith(this.floatNav.$el):(this.floatNav=new c({el:e,store:h,propsData:{float:!0}}),_.defer(function(e){return function(){return"function"==typeof e.buildLanguages?e.buildLanguages():void 0}}(this)))),t=document.querySelector("#site-footer"))return this.footer?t.replaceWith(this.footer.$el):this.footer=new s({el:t,store:h})},t.prototype.getTitle=function(){return""},t.prototype.getMeta=function(){return{}},t.prototype.setMeta=function(e){return this.metaBinding.setMeta(e)},t.prototype.destroy=function(){var e,n,r;return null!=(e=this.metaBinding)&&e.$destroy(),null!=(n=this.navigation)&&n.$destroy(),null!=(r=this.footer)&&r.$destroy(),t.__super__.destroy.call(this)},t}(a)},804310:(e,t,n)=>{var r=n(782888);e.exports=r},985558:(e,t,n)=>{n(384944),n(133792);var r=n(302649);e.exports=r("Array","flat")},403758:(e,t,n)=>{n(580431)},580431:(e,t,n)=>{var r=n(804310);e.exports=r},419662:(e,t,n)=>{var r=n(360614),o=n(266330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a function")}},239483:(e,t,n)=>{var r=n(404411),o=n(266330),i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not a constructor")}},496077:(e,t,n)=>{var r=n(360614),o=String,i=TypeError;e.exports=function(e){if("object"==typeof e||r(e))return e;throw i("Can't set "+o(e)+" as a prototype")}},951223:(e,t,n)=>{var r=n(605112),o=n(70030),i=n(403070).f,a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,{configurable:!0,value:o(null)}),e.exports=function(e){s[a][e]=!0}},631530:(e,t,n)=>{"use strict";var r=n(128710).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},825787:(e,t,n)=>{var r=n(347976),o=TypeError;e.exports=function(e,t){if(r(t,e))return e;throw o("Incorrect invocation")}},919670:(e,t,n)=>{var r=n(970111),o=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw i(o(e)+" is not an object")}},324019:e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},107556:(e,t,n)=>{var r=n(747293);e.exports=r((function(){if("function"==typeof ArrayBuffer){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}}))},690260:(e,t,n)=>{"use strict";var r,o,i,a=n(324019),s=n(919781),c=n(317854),u=n(360614),l=n(970111),d=n(892597),p=n(870648),f=n(266330),h=n(168880),m=n(298052),g=n(403070).f,y=n(347976),v=n(579518),b=n(727674),_=n(605112),w=n(269711),S=n(929909),C=S.enforce,k=S.get,x=c.Int8Array,E=x&&x.prototype,O=c.Uint8ClampedArray,T=O&&O.prototype,A=x&&v(x),P=E&&v(E),I=Object.prototype,j=c.TypeError,L=_("toStringTag"),N=w("TYPED_ARRAY_TAG"),R=a&&!!b&&"Opera"!==p(c.opera),D=!1,M={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},F={BigInt64Array:8,BigUint64Array:8},U=function(e){var t=v(e);if(l(t)){var n=k(t);return n&&d(n,"TypedArrayConstructor")?n.TypedArrayConstructor:U(t)}},B=function(e){if(!l(e))return!1;var t=p(e);return d(M,t)||d(F,t)};for(r in M)(i=(o=c[r])&&o.prototype)?C(i).TypedArrayConstructor=o:R=!1;for(r in F)(i=(o=c[r])&&o.prototype)&&(C(i).TypedArrayConstructor=o);if((!R||!u(A)||A===Function.prototype)&&(A=function(){throw j("Incorrect invocation")},R))for(r in M)c[r]&&b(c[r],A);if((!R||!P||P===I)&&(P=A.prototype,R))for(r in M)c[r]&&b(c[r].prototype,P);if(R&&v(T)!==P&&b(T,P),s&&!d(P,L))for(r in D=!0,g(P,L,{get:function(){return l(this)?this[N]:void 0}}),M)c[r]&&h(c[r],N,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:D&&N,aTypedArray:function(e){if(B(e))return e;throw j("Target is not a typed array")},aTypedArrayConstructor:function(e){if(u(e)&&(!b||y(A,e)))return e;throw j(f(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(s){if(n)for(var o in M){var i=c[o];if(i&&d(i.prototype,e))try{delete i.prototype[e]}catch(n){try{i.prototype[e]=t}catch(e){}}}P[e]&&!n||m(P,e,n?t:R&&E[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;
vendor: 4,340 bytes, line 2
2if(s){if(b){if(n)for(r in M)if((o=c[r])&&d(o,e))try{delete o[e]}catch(e){}if(A[e]&&!n)return;try{return m(A,e,n?t:R&&A[e]||t)}catch(e){}}for(r in M)!(o=c[r])||o[e]&&!n||m(o,e,t)}},getTypedArrayConstructor:U,isView:function(e){if(!l(e))return!1;var t=p(e);return"DataView"===t||d(M,t)||d(F,t)},isTypedArray:B,TypedArray:A,TypedArrayPrototype:P}},413331:(e,t,n)=>{"use strict";var r=n(317854),o=n(901702),i=n(919781),a=n(324019),s=n(676530),c=n(168880),u=n(389190),l=n(747293),d=n(825787),p=n(19303),f=n(717466),h=n(457067),m=n(211179),g=n(579518),y=n(727674),v=n(308006).f,b=n(403070).f,_=n(721285),w=n(941589),S=n(158003),C=n(929909),k=s.PROPER,x=s.CONFIGURABLE,E=C.get,O=C.set,T="ArrayBuffer",A="Wrong index",P=r.ArrayBuffer,I=P,j=I&&I.prototype,L=r.DataView,N=L&&L.prototype,R=Object.prototype,D=r.Array,M=r.RangeError,F=o(_),U=o([].reverse),B=m.pack,$=m.unpack,H=function(e){return[255&e]},z=function(e){return[255&e,e>>8&255]},q=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},V=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},G=function(e){return B(e,23,4)},W=function(e){return B(e,52,8)},Y=function(e,t){b(e.prototype,t,{get:function(){return E(this)[t]}})},K=function(e,t,n,r){var o=h(n),i=E(e);if(o+t>i.byteLength)throw M(A);var a=E(i.buffer).bytes,s=o+i.byteOffset,c=w(a,s,s+t);return r?c:U(c)},J=function(e,t,n,r,o,i){var a=h(n),s=E(e);if(a+t>s.byteLength)throw M(A);for(var c=E(s.buffer).bytes,u=a+s.byteOffset,l=r(+o),d=0;d<t;d++)c[u+d]=l[i?d:t-d-1]};if(a){var Z=k&&P.name!==T;if(l((function(){P(1)}))&&l((function(){new P(-1)}))&&!l((function(){return new P,new P(1.5),new P(NaN),Z&&!x})))Z&&x&&c(P,"name",T);else{(I=function(e){return d(this,j),new P(h(e))}).prototype=j;for(var X,Q=v(P),ee=0;Q.length>ee;)(X=Q[ee++])in I||c(I,X,P[X]);j.constructor=I}y&&g(N)!==R&&y(N,R);var te=new L(new I(2)),ne=o(N.setInt8);te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||u(N,{setInt8:function(e,t){ne(this,e,t<<24>>24)},setUint8:function(e,t){ne(this,e,t<<24>>24)}},{unsafe:!0})}else j=(I=function(e){d(this,j);var t=h(e);O(this,{bytes:F(D(t),0),byteLength:t}),i||(this.byteLength=t)}).prototype,N=(L=function(e,t,n){d(this,N),d(e,j);var r=E(e).byteLength,o=p(t);if(o<0||o>r)throw M("Wrong offset");if(o+(n=void 0===n?r-o:f(n))>r)throw M("Wrong length");O(this,{buffer:e,byteLength:n,byteOffset:o}),i||(this.buffer=e,this.byteLength=n,this.byteOffset=o)}).prototype,i&&(Y(I,"byteLength"),Y(L,"buffer"),Y(L,"byteLength"),Y(L,"byteOffset")),u(N,{getInt8:function(e){return K(this,1,e)[0]<<24>>24},getUint8:function(e){return K(this,1,e)[0]},getInt16:function(e){var t=K(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=K(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return V(K(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return V(K(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return $(K(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return $(K(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){J(this,1,e,H,t)},setUint8:function(e,t){J(this,1,e,H,t)},setInt16:function(e,t){J(this,2,e,z,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){J(this,2,e,z,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){J(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){J(this,4,e,q,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){J(this,4,e,G,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){J(this,8,e,W,t,arguments.length>2?arguments[2]:void 0)}});S(I,T),S(L,"DataView"),e.exports={ArrayBuffer:I,DataView:L}},601048:(e,t,n)=>{"use strict";var r=n(747908),o=n(951400),i=n(426244),a=n(285117),s=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),c=i(n),u=o(e,c),l=o(t,c),d=arguments.length>2?arguments[2]:void 0,p=s((void 0===d?c:o(d,c))-l,c-u),f=1;for(l<u&&u<l+p&&(f=-1,l+=p-1,u+=p-1);p-- >0;)l in n?n[u]=n[l]:a(n,u),u+=f,l+=f;return n}},721285:(e,t,n)=>{"use strict";var r=n(747908),o=n(951400),i=n(426244);e.exports=function(e){for(var t=r(this),n=i(t),a=arguments.length,s=o(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,u=void 0===c?n:o(c,n);u>s;)t[s++]=e;return t}}
vendor: 4,218 bytes, line 2
2,318533:(e,t,n)=>{"use strict";var r=n(842092).forEach,o=n(609341)("forEach");e.exports=o?[].forEach:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}},597745:(e,t,n)=>{var r=n(426244);e.exports=function(e,t){for(var n=0,o=r(t),i=new e(o);o>n;)i[n]=t[n++];return i}},148457:(e,t,n)=>{"use strict";var r=n(249974),o=n(246916),i=n(747908),a=n(653411),s=n(297659),c=n(404411),u=n(426244),l=n(586135),d=n(118554),p=n(871246),f=Array;e.exports=function(e){var t=i(e),n=c(this),h=arguments.length,m=h>1?arguments[1]:void 0,g=void 0!==m;g&&(m=r(m,h>2?arguments[2]:void 0));var y,v,b,_,w,S,C=p(t),k=0;if(!C||this===f&&s(C))for(y=u(t),v=n?new this(y):f(y);y>k;k++)S=g?m(t[k],k):t[k],l(v,k,S);else for(w=(_=d(t,C)).next,v=n?new this:[];!(b=o(w,_)).done;k++)S=g?a(_,m,[b.value,k],!0):b.value,l(v,k,S);return v.length=k,v}},841318:(e,t,n)=>{var r=n(45656),o=n(951400),i=n(426244),a=function(e){return function(t,n,a){var s,c=r(t),u=i(c),l=o(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},9671:(e,t,n)=>{var r=n(249974),o=n(168361),i=n(747908),a=n(426244),s=function(e){var t=1==e;return function(n,s,c){for(var u,l=i(n),d=o(l),p=r(s,c),f=a(d);f-- >0;)if(p(u=d[f],f,l))switch(e){case 0:return u;case 1:return f}return t?-1:void 0}};e.exports={findLast:s(0),findLastIndex:s(1)}},842092:(e,t,n)=>{var r=n(249974),o=n(901702),i=n(168361),a=n(747908),s=n(426244),c=n(165417),u=o([].push),l=function(e){var t=1==e,n=2==e,o=3==e,l=4==e,d=6==e,p=7==e,f=5==e||d;return function(h,m,g,y){for(var v,b,_=a(h),w=i(_),S=r(m,g),C=s(w),k=0,x=y||c,E=t?x(h,C):n||p?x(h,0):void 0;C>k;k++)if((f||k in w)&&(b=S(v=w[k],k,_),e))if(t)E[k]=b;else if(b)switch(e){case 3:return!0;case 5:return v;case 6:return k;case 2:u(E,v)}else switch(e){case 4:return!1;case 7:u(E,v)}return d?-1:o||l?l:E}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6),filterReject:l(7)}},386583:(e,t,n)=>{"use strict";var r=n(522104),o=n(45656),i=n(19303),a=n(426244),s=n(609341),c=Math.min,u=[].lastIndexOf,l=!!u&&1/[1].lastIndexOf(1,-0)<0,d=s("lastIndexOf"),p=l||!d;e.exports=p?function(e){if(l)return r(u,this,arguments)||0;var t=o(this),n=a(t),s=n-1;for(arguments.length>1&&(s=c(s,i(arguments[1]))),s<0&&(s=n+s);s>=0;s--)if(s in t&&t[s]===e)return s||0;return-1}:u},881194:(e,t,n)=>{var r=n(747293),o=n(605112),i=n(507392),a=o("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[a]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},609341:(e,t,n)=>{"use strict";var r=n(747293);e.exports=function(e,t){var n=[][e];return!!n&&r((function(){n.call(null,t||function(){return 1},1)}))}},753671:(e,t,n)=>{var r=n(419662),o=n(747908),i=n(168361),a=n(426244),s=TypeError,c=function(e){return function(t,n,c,u){r(n);var l=o(t),d=i(l),p=a(l),f=e?p-1:0,h=e?-1:1;if(c<2)for(;;){if(f in d){u=d[f],f+=h;break}if(f+=h,e?f<0:p<=f)throw s("Reduce of empty array with no initial value")}for(;e?f>=0:p>f;f+=h)f in d&&(u=n(u,d[f],f,l));return u}};e.exports={left:c(!1),right:c(!0)}},941589:(e,t,n)=>{var r=n(951400),o=n(426244),i=n(586135),a=Array,s=Math.max;e.exports=function(e,t,n){for(var c=o(e),u=r(t,c),l=r(void 0===n?c:n,c),d=a(s(l-u,0)),p=0;u<l;u++,p++)i(d,p,e[u]);return d.length=p,d}},650206:(e,t,n)=>{var r=n(901702);e.exports=r([].slice)},994362:(e,t,n)=>{var r=n(941589),o=Math.floor,i=function(e,t){var n=e.length,c=o(n/2);return n<8?a(e,t):s(e,i(r(e,0,c),t),i(r(e,c),t),t)},a=function(e,t){for(var n,r,o=e.length,i=1;i<o;){for(r=i,n=e[i];r&&t(e[r-1],n)>0;)e[r]=e[--r];r!==i++&&(e[r]=n)}return e},s=function(e,t,n,r){for(var o=t.length,i=n.length,a=0,s=0;a<o||s<i;)e[a+s]=a<o&&s<i?r(t[a],n[s])<=0?t[a++]:n[s++]:a<o?t[a++]:n[s++];return e};e.exports=i},777475:(e,t,n)=>{var r=n(243157),o=n(404411),i=n(970111),a=n(605112)("species"),s=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,(o(t)&&(t===s||r(t.prototype))||i(t)&&null===(t=t[a]))&&(t=void 0)),void 0===t?s:t}},165417:(e,t,n)=>{var r=n(777475);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},414170:e=>{for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
vendor: 5,242 bytes, line 2
2+/=",n={},r=0;r<66;r++)n[t.charAt(r)]=r;e.exports={itoc:t,ctoi:n}},653411:(e,t,n)=>{var r=n(919670),o=n(199212);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){o(e,"throw",t)}}},617072:(e,t,n)=>{var r=n(605112)("iterator"),o=!1;try{var i=0,a={next:function(){return{done:!!i++}},return:function(){o=!0}};a[r]=function(){return this},Array.from(a,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i={};i[r]=function(){return{next:function(){return{done:n=!0}}}},e(i)}catch(e){}return n}},884326:(e,t,n)=>{var r=n(901702),o=r({}.toString),i=r("".slice);e.exports=function(e){return i(o(e),8,-1)}},870648:(e,t,n)=>{var r=n(351694),o=n(360614),i=n(884326),a=n(605112)("toStringTag"),s=Object,c="Arguments"==i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=s(e),a))?n:c?i(t):"Object"==(r=i(t))&&o(t.callee)?"Arguments":r}},877741:(e,t,n)=>{var r=n(901702),o=Error,i=r("".replace),a=String(o("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);e.exports=function(e,t){if(c&&"string"==typeof e&&!o.prepareStackTrace)for(;t--;)e=i(e,s,"");return e}},495631:(e,t,n)=>{"use strict";var r=n(403070).f,o=n(70030),i=n(389190),a=n(249974),s=n(825787),c=n(720408),u=n(970654),l=n(996340),d=n(919781),p=n(962423).fastKey,f=n(929909),h=f.set,m=f.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,f),h(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),null!=r&&c(r,e[u],{that:e,AS_ENTRIES:n})})),f=l.prototype,g=m(t),y=function(e,t,n){var r,o,i=g(e),a=v(e,t);return a?a.value=n:(i.last=a={index:o=p(t,!0),key:t,value:n,previous:r=i.last,next:void 0,removed:!1},i.first||(i.first=a),r&&(r.next=a),d?i.size++:e.size++,"F"!==o&&(i.index[o]=a)),e},v=function(e,t){var n,r=g(e),o=p(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(f,{clear:function(){for(var e=g(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,d?e.size=0:this.size=0},delete:function(e){var t=this,n=g(t),r=v(t,e);if(r){var o=r.next,i=r.previous;delete n.index[r.index],r.removed=!0,i&&(i.next=o),o&&(o.previous=i),n.first==r&&(n.first=o),n.last==r&&(n.last=i),d?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=g(this),r=a(e,arguments.length>1?arguments[1]:void 0);t=t?t.next:n.first;)for(r(t.value,t.key,this);t&&t.removed;)t=t.previous},has:function(e){return!!v(this,e)}}),i(f,n?{get:function(e){var t=v(this,e);return t&&t.value},set:function(e,t){return y(this,0===e?0:e,t)}}:{add:function(e){return y(this,e=0===e?0:e,e)}}),d&&r(f,"size",{get:function(){return g(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=m(t),i=m(r);u(e,t,(function(e,t){h(this,{type:r,target:e,state:o(e),kind:t,last:void 0})}),(function(){for(var e=i(this),t=e.kind,n=e.last;n&&n.removed;)n=n.previous;return e.target&&(e.last=n=n?n.next:e.state.first)?"keys"==t?{value:n.key,done:!1}:"values"==t?{value:n.value,done:!1}:{value:[n.key,n.value],done:!1}:(e.target=void 0,{value:void 0,done:!0})}),n?"entries":"values",!n,!0),l(t)}}},729320:(e,t,n)=>{"use strict";var r=n(901702),o=n(389190),i=n(962423).getWeakData,a=n(919670),s=n(970111),c=n(825787),u=n(720408),l=n(842092),d=n(892597),p=n(929909),f=p.set,h=p.getterFor,m=l.find,g=l.findIndex,y=r([].splice),v=0,b=function(e){return e.frozen||(e.frozen=new _)},_=function(){this.entries=[]},w=function(e,t){return m(e.entries,(function(e){return e[0]===t}))};_.prototype={get:function(e){var t=w(this,e);if(t)return t[1]},has:function(e){return!!w(this,e)},set:function(e,t){var n=w(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&y(this.entries,t,1),!!~t}},e.exports={getConstructor:function(e,t,n,r){var l=e((function(e,o){c(e,p),f(e,{type:t,id:v++,frozen:void 0}),null!=o&&u(o,e[r],{that:e,AS_ENTRIES:n})})),p=l.prototype,m=h(t),g=function(e,t,n){var r=m(e),o=i(a(t),!0);return!0===o?b(r).set(t,n):o[r.id]=n,e};return o(p,{delete:function(e){var t=m(this);if(!s(e))return!1;var n=i(e);return!0===n?b(t).delete(e):n&&d(n,t.id)&&delete n[t.id]},has:function(e){var t=m(this);if(!s(e))return!1;var n=i(e);return!0===n?b(t).has(e):n&&d(n,t.id)}}),o(p,n?{get:function(e){var t=m(this);if(s(e)){var n=i(e);return!0===n?b(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),l}}},277710:(e,t,n)=>{"use strict";var r=n(82109),o=n(317854),i=n(901702),a=n(554705),s=n(298052),c=n(962423),u=n(720408),l=n(825787),d=n(360614),p=n(970111),f=n(747293),h=n(617072),m=n(158003),g=n(979587);e.exports=function(e,t,n){var y=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),b=y?"set":"add",_=o[e],w=_&&_.prototype,S=_,C={},k=function(e){var t=i(w[e]);s(w,e,"add"==e?function(e){return t(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!p(e))&&t(this,0===e?0:e)}:"get"==e?function(e){return v&&!p(e)?void 0:t(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!p(e))&&t(this,0===e?0:e)}:function(e,n){return t(this,0===e?0:e,n),this})};
2if(a(e,!d(_)||!(v||w.forEach&&!f((function(){(new _).entries().next()})))))S=n.getConstructor(t,e,y,b),c.enable();else if(a(e,!0)){var x=new S,E=x[b](v?{}:-0,1)!=x,O=f((function(){x.has(1)})),T=h((function(e){new _(e)})),A=!v&&f((function(){for(var e=new _,t=5;t--;)e[b](t,t);return!e.has(-0)}));T||((S=t((function(e,t){l(e,w);var n=g(new _,e,S);return null!=t&&u(t,n[b],{that:n,AS_ENTRIES:y}),n}))).prototype=w,w.constructor=S),(O||A)&&(k("delete"),k("has"),y&&k("get")),(A||E)&&k(b),v&&w.clear&&delete w.clear}return C[e]=S,r({global:!0,constructor:!0,forced:S!=_},C),m(S,e),v||n.setStrong(S,e,y),S}},99920:(e,t,n)=>{var r=n(892597),o=n(53887),i=n(231236),a=n(403070);e.exports=function(e,t,n){for(var s=o(t),c=a.f,u=i.f,l=0;l<s.length;l++){var d=s[l];r(e,d)||n&&r(n,d)||c(e,d,u(t,d))}}},484964:(e,t,n)=>{var r=n(605112)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},849920:(e,t,n)=>{var r=n(747293);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},414230:(e,t,n)=>{var r=n(901702),o=n(784488),i=n(141340),a=/"/g,s=r("".replace);e.exports=function(e,t,n,r){var c=i(o(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+s(i(r),a,""")+'"'),u+">"+c+"</"+t+">"}},324994:(e,t,n)=>{"use strict";var r=n(13383).IteratorPrototype,o=n(70030),i=n(679114),a=n(158003),s=n(897497),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=o(r,{next:i(+!u,n)}),a(e,l,!1,!0),s[l]=c,e}},168880:(e,t,n)=>{var r=n(919781),o=n(403070),i=n(679114);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},679114:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},586135:(e,t,n)=>{"use strict";var r=n(734948),o=n(403070),i=n(679114);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},785573:(e,t,n)=>{"use strict";var r=n(901702),o=n(747293),i=n(976650).start,a=RangeError,s=Math.abs,c=Date.prototype,u=c.toISOString,l=r(c.getTime),d=r(c.getUTCDate),p=r(c.getUTCFullYear),f=r(c.getUTCHours),h=r(c.getUTCMilliseconds),m=r(c.getUTCMinutes),g=r(c.getUTCMonth),y=r(c.getUTCSeconds);e.exports=o((function(){return"0385-07-25T07:06:39.999Z"!=u.call(new Date(-50000000000001))}))||!o((function(){u.call(new Date(NaN))}))?function(){if(!isFinite(l(this)))throw a("Invalid time value");var e=this,t=p(e),n=h(e),r=t<0?"-":t>9999?"+":"";return r+i(s(t),r?6:4,0)+"-"+i(g(e)+1,2,0)+"-"+i(d(e),2,0)+"T"+i(f(e),2,0)+":"+i(m(e),2,0)+":"+i(y(e),2,0)+"."+i(n,3,0)+"Z"}:u},338709:(e,t,n)=>{"use strict";var r=n(919670),o=n(392140),i=TypeError;e.exports=function(e){if(r(this),"string"===e||"default"===e)e="string";else if("number"!==e)throw i("Incorrect hint");return o(this,e)}},447045:(e,t,n)=>{var r=n(56339),o=n(403070);e.exports=function(e,t,n){return n.get&&r(n.get,t,{getter:!0}),n.set&&r(n.set,t,{setter:!0}),o.f(e,t,n)}}
vendor: 3,556 bytes, line 2
2,298052:(e,t,n)=>{var r=n(360614),o=n(403070),i=n(56339),a=n(613072);e.exports=function(e,t,n,s){s||(s={});var c=s.enumerable,u=void 0!==s.name?s.name:t;if(r(n)&&i(n,u,s),s.global)c?e[t]=n:a(t,n);else{try{s.unsafe?e[t]&&(c=!0):delete e[t]}catch(e){}c?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return e}},389190:(e,t,n)=>{var r=n(298052);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},613072:(e,t,n)=>{var r=n(317854),o=Object.defineProperty;e.exports=function(e,t){try{o(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},970654:(e,t,n)=>{"use strict";var r=n(82109),o=n(246916),i=n(831913),a=n(676530),s=n(360614),c=n(324994),u=n(579518),l=n(727674),d=n(158003),p=n(168880),f=n(298052),h=n(605112),m=n(897497),g=n(13383),y=a.PROPER,v=a.CONFIGURABLE,b=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=h("iterator"),S="keys",C="values",k="entries",x=function(){return this};e.exports=function(e,t,n,a,h,g,E){c(n,t,a);var O,T,A,P=function(e){if(e===h&&R)return R;if(!_&&e in L)return L[e];switch(e){case S:case C:case k:return function(){return new n(this,e)}}return function(){return new n(this)}},I=t+" Iterator",j=!1,L=e.prototype,N=L[w]||L["@@iterator"]||h&&L[h],R=!_&&N||P(h),D="Array"==t&&L.entries||N;if(D&&(O=u(D.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===b||(l?l(O,b):s(O[w])||f(O,w,x)),d(O,I,!0,!0),i&&(m[I]=x)),y&&h==C&&N&&N.name!==C&&(!i&&v?p(L,"name",C):(j=!0,R=function(){return o(N,this)})),h)if(T={values:P(C),keys:g?R:P(S),entries:P(k)},E)for(A in T)(_||j||!(A in L))&&f(L,A,T[A]);else r({target:t,proto:!0,forced:_||j},T);return i&&!E||L[w]===R||f(L,w,R,{name:h}),m[t]=R,T}},497235:(e,t,n)=>{var r=n(140857),o=n(892597),i=n(506061),a=n(403070).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},285117:(e,t,n)=>{"use strict";var r=n(266330),o=TypeError;e.exports=function(e,t){if(!delete e[t])throw o("Cannot delete property "+r(t)+" of "+r(e))}},919781:(e,t,n)=>{var r=n(747293);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},180317:(e,t,n)=>{var r=n(317854),o=n(970111),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},507207:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},593678:e=>{e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1}
2,InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},848324:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},598509:(e,t,n)=>{var r=n(180317)("span").classList,o=r&&r.constructor&&r.constructor.prototype;e.exports=o===Object.prototype?void 0:o},568886:(e,t,n)=>{var r=n(188113).match(/firefox\/(\d+)/i);e.exports=!!r&&+r[1]},907871:e=>{e.exports="object"==typeof window&&"object"!=typeof Deno},983823:e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},530256:(e,t,n)=>{var r=n(188113);e.exports=/MSIE|Trident/.test(r)},771528:(e,t,n)=>{var r=n(188113),o=n(317854);e.exports=/ipad|iphone|ipod/i.test(r)&&void 0!==o.Pebble},506833:(e,t,n)=>{var r=n(188113);
2e.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(r)},235268:(e,t,n)=>{var r=n(884326),o=n(317854);e.exports="process"==r(o.process)},671036:(e,t,n)=>{var r=n(188113);e.exports=/web0s(?!.*chrome)/i.test(r)},188113:(e,t,n)=>{var r=n(435005);e.exports=r("navigator","userAgent")||""},507392:(e,t,n)=>{var r,o,i=n(317854),a=n(188113),s=i.process,c=i.Deno,u=s&&s.versions||c&&c.version,l=u&&u.v8;l&&(o=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!o&&a&&(!(r=a.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/))&&(o=+r[1]),e.exports=o},498008:(e,t,n)=>{var r=n(188113).match(/AppleWebKit\/(\d+)\./);e.exports=!!r&&+r[1]},302649:(e,t,n)=>{var r=n(317854),o=n(901702);e.exports=function(e,t){return o(r[e].prototype[t])}},280748:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},722914:(e,t,n)=>{var r=n(747293),o=n(679114);e.exports=!r((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",o(1,7)),7!==e.stack)}))},607762:(e,t,n)=>{"use strict";var r=n(919781),o=n(747293),i=n(919670),a=n(70030),s=n(856277),c=Error.prototype.toString,u=o((function(){if(r){var e=a(Object.defineProperty({},"name",{get:function(){return this===e}}));if("true"!==c.call(e))return!0}return"2: 1"!==c.call({message:1,name:2})||"Error"!==c.call({})}));e.exports=u?function(){var e=i(this),t=s(e.name,"Error"),n=s(e.message);return t?n?t+": "+n:t:n}:c},82109:(e,t,n)=>{var r=n(317854),o=n(231236).f,i=n(168880),a=n(298052),s=n(613072),c=n(99920),u=n(554705);e.exports=function(e,t){var n,l,d,p,f,h=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[h]||s(h,{}):(r[h]||{}).prototype)for(l in t){if(p=t[l],d=e.dontCallGetSet?(f=o(n,l))&&f.value:n[l],!u(m?l:h+(g?".":"#")+l,e.forced)&&void 0!==d){if(typeof p==typeof d)continue;c(p,d)}(e.sham||d&&d.sham)&&i(p,"sham",!0),a(n,l,p,e)}}},747293:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},227007:(e,t,n)=>{"use strict";n(974916);var r=n(901702),o=n(298052),i=n(722261),a=n(747293),s=n(605112),c=n(168880),u=s("species"),l=RegExp.prototype;e.exports=function(e,t,n,d){var p=s(e),f=!a((function(){var t={};return t[p]=function(){return 7},7!=""[e](t)})),h=f&&!a((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[u]=function(){return n},n.flags="",n[p]=/./[p]),n.exec=function(){return t=!0,null},n[p](""),!t}));if(!f||!h||n){var m=r(/./[p]),g=t(p,""[e],(function(e,t,n,o,a){var s=r(e),c=t.exec;return c===i||c===l.exec?f&&!a?{done:!0,value:m(t,n,o)}:{done:!0,value:s(n,t,o)}:{done:!1}}));o(String.prototype,e,g[0]),o(l,p,g[1])}d&&c(l[p],"sham",!0)}},706790:(e,t,n)=>{"use strict";var r=n(243157),o=n(426244),i=n(507207),a=n(249974),s=function(e,t,n,c,u,l,d,p){for(var f,h,m=u,g=0,y=!!d&&a(d,p);g<c;)g in n&&(f=y?y(n[g],g,t):n[g],l>0&&r(f)?(h=o(f),m=s(e,t,f,h,m,l-1)-1):(i(m+1),e[m]=f),m++),g++;return m};e.exports=s},876677:(e,t,n)=>{var r=n(747293);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},522104:(e,t,n)=>{var r=n(34374),o=Function.prototype,i=o.apply,a=o.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?a.bind(i):function(){return a.apply(i,arguments)})},249974:(e,t,n)=>
vendor: 2,508 bytes, line 2
2{var r=n(901702),o=n(419662),i=n(34374),a=r(r.bind);e.exports=function(e,t){return o(e),void 0===t?e:i?a(e,t):function(){return e.apply(t,arguments)}}},34374:(e,t,n)=>{var r=n(747293);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},427065:(e,t,n)=>{"use strict";var r=n(901702),o=n(419662),i=n(970111),a=n(892597),s=n(650206),c=n(34374),u=Function,l=r([].concat),d=r([].join),p={},f=function(e,t,n){if(!a(p,t)){for(var r=[],o=0;o<t;o++)r[o]="a["+o+"]";p[t]=u("C,a","return new C("+d(r,",")+")")}return p[t](e,n)};e.exports=c?u.bind:function(e){var t=o(this),n=t.prototype,r=s(arguments,1),a=function(){var n=l(r,s(arguments));return this instanceof a?f(t,n.length,n):t.apply(e,n)};return i(n)&&(a.prototype=n),a}},246916:(e,t,n)=>{var r=n(34374),o=Function.prototype.call;e.exports=r?o.bind(o):function(){return o.apply(o,arguments)}},676530:(e,t,n)=>{var r=n(919781),o=n(892597),i=Function.prototype,a=r&&Object.getOwnPropertyDescriptor,s=o(i,"name"),c=s&&"something"===function(){}.name,u=s&&(!r||r&&a(i,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:u}},901702:(e,t,n)=>{var r=n(34374),o=Function.prototype,i=o.bind,a=o.call,s=r&&i.bind(a,a);e.exports=r?function(e){return e&&s(e)}:function(e){return e&&function(){return a.apply(e,arguments)}}},435005:(e,t,n)=>{var r=n(317854),o=n(360614),i=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e]):r[e]&&r[e][t]}},871246:(e,t,n)=>{var r=n(870648),o=n(158173),i=n(897497),a=n(605112)("iterator");e.exports=function(e){if(null!=e)return o(e,a)||o(e,"@@iterator")||i[r(e)]}},118554:(e,t,n)=>{var r=n(246916),o=n(419662),i=n(919670),a=n(266330),s=n(871246),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?s(e):t;if(o(n))return i(r(n,e));throw c(a(e)+" is not iterable")}},158173:(e,t,n)=>{var r=n(419662);e.exports=function(e,t){var n=e[t];return null==n?void 0:r(n)}},10647:(e,t,n)=>{var r=n(901702),o=n(747908),i=Math.floor,a=r("".charAt),s=r("".replace),c=r("".slice),u=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,l=/\$([$&'`]|\d{1,2})/g;e.exports=function(e,t,n,r,d,p){var f=n+e.length,h=r.length,m=l;return void 0!==d&&(d=o(d),m=u),s(p,m,(function(o,s){var u;switch(a(s,0)){case"$":return"$";case"&":return e;case"`":return c(t,0,n);case"'":return c(t,f);case"<":u=d[c(s,1,-1)];break;default:var l=+s;if(0===l)return o;if(l>h){var p=i(l/10);return 0===p?o:p<=h?void 0===r[p-1]?a(s,1):r[p-1]+a(s,1):o}u=r[l-1]}return void 0===u?"":u}))}}
vendor: 5,076 bytes, line 2
2,317854:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},892597:(e,t,n)=>{var r=n(901702),o=n(747908),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(o(e),t)}},703501:e=>{e.exports={}},900842:(e,t,n)=>{var r=n(317854);e.exports=function(e,t){var n=r.console;n&&n.error&&(1==arguments.length?n.error(e):n.error(e,t))}},260490:(e,t,n)=>{var r=n(435005);e.exports=r("document","documentElement")},164664:(e,t,n)=>{var r=n(919781),o=n(747293),i=n(180317);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},211179:e=>{var t=Array,n=Math.abs,r=Math.pow,o=Math.floor,i=Math.log,a=Math.LN2;e.exports={pack:function(e,s,c){var u,l,d,p=t(c),f=8*c-s-1,h=(1<<f)-1,m=h>>1,g=23===s?r(2,-24)-r(2,-77):0,y=e<0||0===e&&1/e<0?1:0,v=0;for((e=n(e))!=e||e===1/0?(l=e!=e?1:0,u=h):(u=o(i(e)/a),e*(d=r(2,-u))<1&&(u--,d*=2),(e+=u+m>=1?g/d:g*r(2,1-m))*d>=2&&(u++,d/=2),u+m>=h?(l=0,u=h):u+m>=1?(l=(e*d-1)*r(2,s),u+=m):(l=e*r(2,m-1)*r(2,s),u=0));s>=8;)p[v++]=255&l,l/=256,s-=8;for(u=u<<s|l,f+=s;f>0;)p[v++]=255&u,u/=256,f-=8;return p[--v]|=128*y,p},unpack:function(e,t){var n,o=e.length,i=8*o-t-1,a=(1<<i)-1,s=a>>1,c=i-7,u=o-1,l=e[u--],d=127&l;for(l>>=7;c>0;)d=256*d+e[u--],c-=8;for(n=d&(1<<-c)-1,d>>=-c,c+=t;c>0;)n=256*n+e[u--],c-=8;if(0===d)d=1-s;else{if(d===a)return n?NaN:l?-1/0:1/0;n+=r(2,t),d-=s}return(l?-1:1)*n*r(2,d-t)}}},168361:(e,t,n)=>{var r=n(901702),o=n(747293),i=n(884326),a=Object,s=r("".split);e.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?s(e,""):a(e)}:a},979587:(e,t,n)=>{var r=n(360614),o=n(970111),i=n(727674);e.exports=function(e,t,n){var a,s;return i&&r(a=t.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&i(e,s),e}},642788:(e,t,n)=>{var r=n(901702),o=n(360614),i=n(205465),a=r(Function.toString);o(i.inspectSource)||(i.inspectSource=function(e){return a(e)}),e.exports=i.inspectSource},58340:(e,t,n)=>{var r=n(970111),o=n(168880);e.exports=function(e,t){r(t)&&"cause"in t&&o(e,"cause",t.cause)}},962423:(e,t,n)=>{var r=n(82109),o=n(901702),i=n(703501),a=n(970111),s=n(892597),c=n(403070).f,u=n(308006),l=n(501156),d=n(852050),p=n(269711),f=n(876677),h=!1,m=p("meta"),g=0,y=function(e){c(e,m,{value:{objectID:"O"+g++,weakData:{}}})},v=e.exports={enable:function(){v.enable=function(){},h=!0;var e=u.f,t=o([].splice),n={};n[m]=1,e(n).length&&(u.f=function(n){for(var r=e(n),o=0,i=r.length;o<i;o++)if(r[o]===m){t(r,o,1);break}return r},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:l.f}))},fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!s(e,m)){if(!d(e))return"F";if(!t)return"E";y(e)}return e[m].objectID},getWeakData:function(e,t){if(!s(e,m)){if(!d(e))return!0;if(!t)return!1;y(e)}return e[m].weakData},onFreeze:function(e){return f&&h&&d(e)&&!s(e,m)&&y(e),e}};i[m]=!0},929909:(e,t,n)=>{var r,o,i,a=n(468536),s=n(317854),c=n(901702),u=n(970111),l=n(168880),d=n(892597),p=n(205465),f=n(306200),h=n(703501),m="Object already initialized",g=s.TypeError,y=s.WeakMap;if(a||p.state){var v=p.state||(p.state=new y),b=c(v.get),_=c(v.has),w=c(v.set);r=function(e,t){if(_(v,e))throw new g(m);return t.facade=e,w(v,e,t),t},o=function(e){return b(v,e)||{}},i=function(e){return _(v,e)}}else{var S=f("state");h[S]=!0,r=function(e,t){if(d(e,S))throw new g(m);return t.facade=e,l(e,S,t),t},o=function(e){return d(e,S)?e[S]:{}},i=function(e){return d(e,S)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}}}},297659:(e,t,n)=>{var r=n(605112),o=n(897497),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},243157:(e,t,n)=>{var r=n(884326);e.exports=Array.isArray||function(e){return"Array"==r(e)}},360614:e=>{e.exports=function(e){return"function"==typeof e}},404411:(e,t,n)=>{var r=n(901702),o=n(747293),i=n(360614),a=n(870648),s=n(435005),c=n(642788),u=function(){},l=[],d=s("Reflect","construct"),p=/^\s*(?:class|function)\b/,f=r(p.exec),h=!p.exec(u),m=function(e){if(!i(e))return!1;try{return d(u,l,e),!0}catch(e){return!1}},g=function(e){if(!i(e))return!1;switch(a(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!f(p,c(e))}catch(e){return!0}};g.sham=!0,e.exports=!d||o((function(){var e;return m(m.call)||!m(Object)||!m((function(){e=!0}))||e}))?g:m},45032:(e,t,n)=>{var r=n(892597);e.exports=function(e){return void 0!==e&&(r(e,"value")||r(e,"writable"))}},554705:(e,t,n)=>{var r=n(747293),o=n(360614),i=/#|\.prototype\./,a=function(e,t){var n=c[s(e)];return n==l||n!=u&&(o(t)?r(t):!!t)},s=a.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=a.data={},u=a.NATIVE="N",l=a.POLYFILL="P";e.exports=a}
2,55988:(e,t,n)=>{var r=n(970111),o=Math.floor;e.exports=Number.isInteger||function(e){return!r(e)&&isFinite(e)&&o(e)===e}},970111:(e,t,n)=>{var r=n(360614);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},831913:e=>{e.exports=!1},247850:(e,t,n)=>{var r=n(970111),o=n(884326),i=n(605112)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},952190:(e,t,n)=>{var r=n(435005),o=n(360614),i=n(347976),a=n(543307),s=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return o(t)&&i(t.prototype,s(e))}},720408:(e,t,n)=>{var r=n(249974),o=n(246916),i=n(919670),a=n(266330),s=n(297659),c=n(426244),u=n(347976),l=n(118554),d=n(871246),p=n(199212),f=TypeError,h=function(e,t){this.stopped=e,this.result=t},m=h.prototype;e.exports=function(e,t,n){var g,y,v,b,_,w,S,C=n&&n.that,k=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),E=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),T=r(t,C),A=function(e){return g&&p(g,"normal",e),new h(!0,e)},P=function(e){return k?(i(e),O?T(e[0],e[1],A):T(e[0],e[1])):O?T(e,A):T(e)};if(x)g=e.iterator;else if(E)g=e;else{if(!(y=d(e)))throw f(a(e)+" is not iterable");if(s(y)){for(v=0,b=c(e);b>v;v++)if((_=P(e[v]))&&u(m,_))return _;return new h(!1)}g=l(e,y)}for(w=x?e.next:g.next;!(S=o(w,g)).done;){try{_=P(S.value)}catch(e){p(g,"throw",e)}if("object"==typeof _&&_&&u(m,_))return _}return new h(!1)}},199212:(e,t,n)=>{var r=n(246916),o=n(919670),i=n(158173);e.exports=function(e,t,n){var a,s;o(e);try{if(!(a=i(e,"return"))){if("throw"===t)throw n;return n}a=r(a,e)}catch(e){s=!0,a=e}if("throw"===t)throw n;if(s)throw a;return o(a),n}},13383:(e,t,n)=>{"use strict";var r,o,i,a=n(747293),s=n(360614),c=n(70030),u=n(579518),l=n(298052),d=n(605112),p=n(831913),f=d("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(r=o):h=!0),null==r||a((function(){var e={};return r[f].call(e)!==e}))?r={}:p&&(r=c(r)),s(r[f])||l(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},897497:e=>{e.exports={}},426244:(e,t,n)=>{var r=n(717466);e.exports=function(e){return r(e.length)}},56339:(e,t,n)=>{var r=n(747293),o=n(360614),i=n(892597),a=n(919781),s=n(676530).CONFIGURABLE,c=n(642788),u=n(929909),l=u.enforce,d=u.get,p=Object.defineProperty,f=a&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length})),h=String(String).split("String"),m=e.exports=function(e,t,n){"Symbol("===String(t).slice(0,7)&&(t="["+String(t).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!i(e,"name")||s&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),f&&n&&i(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&i(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var r=l(e);return i(r,"source")||(r.source=h.join("string"==typeof t?t:"")),e};Function.prototype.toString=m((function(){return o(this)&&d(this).source||c(this)}),"toString")},266736:e=>{var t=Math.expm1,n=Math.exp;e.exports=!t||t(10)>22025.465794806718||t(10)<22025.465794806718||-2e-17!=t(-2e-17)?function(e){var t=+e;return 0==t?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:t},326130:(e,t,n)=>{var r=n(64310),o=Math.abs,i=Math.pow,a=i(2,-52),s=i(2,-23),c=i(2,127)*(2-s),u=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=+e,l=o(i),d=r(i);return l<u?d*function(e){return e+1/a-1/a}(l/u/s)*u*s:(n=(t=(1+s/a)*l)-(t-l))>c||n!=n?d*(1/0):d*n}},120403:e=>{var t=Math.log,n=Math.LOG10E;e.exports=Math.log10||function(e){return t(e)*n}},926513:e=>{var t=Math.log;e.exports=Math.log1p||function(e){var n=+e;return n>-1e-8&&n<1e-8?n-n*n/2:t(1+n)}},64310:e=>{e.exports=Math.sign||function(e){var t=+e;return 0==t||t!=t?t:t<0?-1:1}},74758:e=>{var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},195948:(e,t,n)=>{var r,o,i,a,s,c,u,l,d=n(317854),p=n(249974),f=n(231236).f,h=n(20261).set,m=n(506833),g=n(771528),y=n(671036),v=n(235268),b=d.MutationObserver||d.WebKitMutationObserver,_=d.document,w=d.process,S=d.Promise,C=f(d,"queueMicrotask"),k=C&&C.value;k||(r=function(){var e,t;for(v&&(e=w.domain)&&e.exit();o;){t=o.fn,o=o.next;try{t()}catch(e){throw o?a():i=void 0,e}}i=void 0,e&&e.enter()},m||v||y||!b||!_?!g&&S&&S.resolve?((u=S.resolve(void 0)).constructor=S,l=p(u.then,u),a=function(){l(r)}):v?a=function(){w.nextTick(r)}:(h=p(h,d),a=function(){h(r)}):(s=!0,c=_.createTextNode(""),new b(r).observe(c,{characterData:!0}
2),a=function(){c.data=s=!s})),e.exports=k||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},830735:(e,t,n)=>{var r=n(130133);e.exports=r&&!!Symbol.for&&!!Symbol.keyFor},130133:(e,t,n)=>{var r=n(507392),o=n(747293);e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},100590:(e,t,n)=>{var r=n(747293),o=n(605112),i=n(831913),a=o("iterator");e.exports=!r((function(){var e=new URL("b?a=1&b=2&c=3","http://a"),t=e.searchParams,n="";return e.pathname="c%20d",t.forEach((function(e,r){t.delete("b"),n+=r+e})),i&&!e.toJSON||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://ÑеÑÑ").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==n||"x"!==new URL("http://x",void 0).host}))},468536:(e,t,n)=>{var r=n(317854),o=n(360614),i=n(642788),a=r.WeakMap;e.exports=o(a)&&/native code/.test(i(a))},878523:(e,t,n)=>{"use strict";var r=n(419662),o=function(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)};e.exports.f=function(e){return new o(e)}},856277:(e,t,n)=>{var r=n(141340);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},303929:(e,t,n)=>{var r=n(247850),o=TypeError;e.exports=function(e){if(r(e))throw o("The method doesn't accept regular expressions");return e}},77023:(e,t,n)=>{var r=n(317854).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},702814:(e,t,n)=>{var r=n(317854),o=n(747293),i=n(901702),a=n(141340),s=n(453111).trim,c=n(581361),u=i("".charAt),l=r.parseFloat,d=r.Symbol,p=d&&d.iterator,f=1/l(c+"-0")!=-1/0||p&&!o((function(){l(Object(p))}));e.exports=f?function(e){var t=s(a(e)),n=l(t);return 0===n&&"-"==u(t,0)?-0:n}:l},283009:(e,t,n)=>{var r=n(317854),o=n(747293),i=n(901702),a=n(141340),s=n(453111).trim,c=n(581361),u=r.parseInt,l=r.Symbol,d=l&&l.iterator,p=/^[+-]?0x/i,f=i(p.exec),h=8!==u(c+"08")||22!==u(c+"0x16")||d&&!o((function(){u(Object(d))}));e.exports=h?function(e,t){var n=s(a(e));return u(n,t>>>0||(f(p,n)?16:10))}:u},921574:(e,t,n)=>{"use strict";var r=n(919781),o=n(901702),i=n(246916),a=n(747293),s=n(181956),c=n(525181),u=n(755296),l=n(747908),d=n(168361),p=Object.assign,f=Object.defineProperty,h=o([].concat);e.exports=!p||a((function(){if(r&&1!==p({b:1},p(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach((function(e){t[e]=e})),7!=p({},e)[n]||s(p({},t)).join("")!=o}))?function(e,t){for(var n=l(e),o=arguments.length,a=1,p=c.f,f=u.f;o>a;)for(var m,g=d(arguments[a++]),y=p?h(s(g),p(g)):s(g),v=y.length,b=0;v>b;)m=y[b++],r&&!i(f,g,m)||(n[m]=g[m]);return n}:p},70030:(e,t,n)=>{var r,o=n(919670),i=n(536048),a=n(280748),s=n(703501),c=n(260490),u=n(180317),l=n(306200)("IE_PROTO"),d=function(){},p=function(e){return"<script>"+e+"<\/script>"},f=function(e){e.write(p("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t;h="undefined"!=typeof document?document.domain&&r?f(r):((t=u("iframe")).style.display="none",c.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write(p("document.F=Object")),e.close(),e.F):f(r);for(var n=a.length;n--;)delete h.prototype[a[n]];return h()};s[l]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(d.prototype=o(e),n=new d,d.prototype=null,n[l]=e):n=h(),void 0===t?n:i.f(n,t)}},536048:(e,t,n)=>{var r=n(919781),o=n(803353),i=n(403070),a=n(919670),s=n(45656),c=n(181956);t.f=r&&!o?Object.defineProperties:function(e,t){a(e);for(var n,r=s(t),o=c(t),u=o.length,l=0;u>l;)i.f(e,n=o[l++],r[n]);return e}},403070:(e,t,n)=>{var r=n(919781),o=n(164664),i=n(803353),a=n(919670),s=n(734948),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor;t.f=r?i?function(e,t,n){if(a(e),t=s(t),a(n),"function"==typeof e&&"prototype"===t&&"value"in n&&"writable"in n&&!n.writable){var r=l(e,t);
2r&&r.writable&&(e[t]=n.value,n={configurable:"configurable"in n?n.configurable:r.configurable,enumerable:"enumerable"in n?n.enumerable:r.enumerable,writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(a(e),t=s(t),a(n),o)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},231236:(e,t,n)=>{var r=n(919781),o=n(246916),i=n(755296),a=n(679114),s=n(45656),c=n(734948),u=n(892597),l=n(164664),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=s(e),t=c(t),l)try{return d(e,t)}catch(e){}if(u(e,t))return a(!o(i.f,e,t),e[t])}},501156:(e,t,n)=>{var r=n(884326),o=n(45656),i=n(308006).f,a=n(941589),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return s&&"Window"==r(e)?function(e){try{return i(e)}catch(e){return a(s)}}(e):i(o(e))}},308006:(e,t,n)=>{var r=n(416324),o=n(280748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},525181:(e,t)=>{t.f=Object.getOwnPropertySymbols},579518:(e,t,n)=>{var r=n(892597),o=n(360614),i=n(747908),a=n(306200),s=n(849920),c=a("IE_PROTO"),u=Object,l=u.prototype;e.exports=s?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},852050:(e,t,n)=>{var r=n(747293),o=n(970111),i=n(884326),a=n(107556),s=Object.isExtensible,c=r((function(){s(1)}));e.exports=c||a?function(e){return!!o(e)&&(!a||"ArrayBuffer"!=i(e))&&(!s||s(e))}:s},347976:(e,t,n)=>{var r=n(901702);e.exports=r({}.isPrototypeOf)},416324:(e,t,n)=>{var r=n(901702),o=n(892597),i=n(45656),a=n(841318).indexOf,s=n(703501),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!o(s,n)&&o(r,n)&&c(l,n);for(;t.length>u;)o(r,n=t[u++])&&(~a(l,n)||c(l,n));return l}},181956:(e,t,n)=>{var r=n(416324),o=n(280748);e.exports=Object.keys||function(e){return r(e,o)}},755296:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);t.f=o?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},169026:(e,t,n)=>{"use strict";var r=n(831913),o=n(317854),i=n(747293),a=n(498008);e.exports=r||!i((function(){if(!(a&&a<535)){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}}))},727674:(e,t,n)=>{var r=n(901702),o=n(919670),i=n(496077);
vendor: 4,179 bytes, line 2
2e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return o(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},344699:(e,t,n)=>{var r=n(919781),o=n(901702),i=n(181956),a=n(45656),s=o(n(755296).f),c=o([].push),u=function(e){return function(t){for(var n,o=a(t),u=i(o),l=u.length,d=0,p=[];l>d;)n=u[d++],r&&!s(o,n)||c(p,e?[n,o[n]]:o[n]);return p}};e.exports={entries:u(!0),values:u(!1)}},590288:(e,t,n)=>{"use strict";var r=n(351694),o=n(870648);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},392140:(e,t,n)=>{var r=n(246916),o=n(360614),i=n(970111),a=TypeError;e.exports=function(e,t){var n,s;if("string"===t&&o(n=e.toString)&&!i(s=r(n,e)))return s;if(o(n=e.valueOf)&&!i(s=r(n,e)))return s;if("string"!==t&&o(n=e.toString)&&!i(s=r(n,e)))return s;throw a("Can't convert object to primitive value")}},53887:(e,t,n)=>{var r=n(435005),o=n(901702),i=n(308006),a=n(525181),s=n(919670),c=o([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(s(e)),n=a.f;return n?c(t,n(e)):t}},140857:(e,t,n)=>{var r=n(317854);e.exports=r},412534:e=>{e.exports=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}}},763702:(e,t,n)=>{var r=n(317854),o=n(902492),i=n(360614),a=n(554705),s=n(642788),c=n(605112),u=n(907871),l=n(831913),d=n(507392),p=o&&o.prototype,f=c("species"),h=!1,m=i(r.PromiseRejectionEvent),g=a("Promise",(function(){var e=s(o),t=e!==String(o);if(!t&&66===d)return!0;if(l&&(!p.catch||!p.finally))return!0;if(d>=51&&/native code/.test(e))return!1;var n=new o((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[f]=r,!(h=n.then((function(){}))instanceof r)||!t&&u&&!m}));e.exports={CONSTRUCTOR:g,REJECTION_EVENT:m,SUBCLASSING:h}},902492:(e,t,n)=>{var r=n(317854);e.exports=r.Promise},569478:(e,t,n)=>{var r=n(919670),o=n(970111),i=n(878523);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},880612:(e,t,n)=>{var r=n(902492),o=n(617072),i=n(763702).CONSTRUCTOR;e.exports=i||!o((function(e){r.all(e).then(void 0,(function(){}))}))},402626:(e,t,n)=>{var r=n(403070).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},418572:e=>{var t=function(){this.head=null,this.tail=null};t.prototype={add:function(e){var t={item:e,next:null};this.head?this.tail.next=t:this.head=t,this.tail=t},get:function(){var e=this.head;if(e)return this.head=e.next,this.tail===e&&(this.tail=null),e.item}},e.exports=t},597651:(e,t,n)=>{var r=n(246916),o=n(919670),i=n(360614),a=n(884326),s=n(722261),c=TypeError;e.exports=function(e,t){var n=e.exec;if(i(n)){var u=r(n,e,t);return null!==u&&o(u),u}if("RegExp"===a(e))return r(s,e,t);throw c("RegExp#exec called on incompatible receiver")}},722261:(e,t,n)=>{"use strict";var r,o,i=n(246916),a=n(901702),s=n(141340),c=n(567066),u=n(852999),l=n(672309),d=n(70030),p=n(929909).get,f=n(309441),h=n(38173),m=l("native-string-replace",String.prototype.replace),g=RegExp.prototype.exec,y=g,v=a("".charAt),b=a("".indexOf),_=a("".replace),w=a("".slice),S=(o=/b*/g,i(g,r=/a/,"a"),i(g,o,"a"),0!==r.lastIndex||0!==o.lastIndex),C=u.BROKEN_CARET,k=void 0!==/()??/.exec("")[1];(S||k||C||f||h)&&(y=function(e){var t,n,r,o,a,u,l,f=this,h=p(f),x=s(e),E=h.raw;if(E)return E.lastIndex=f.lastIndex,t=i(y,E,x),f.lastIndex=E.lastIndex,t;var O=h.groups,T=C&&f.sticky,A=i(c,f),P=f.source,I=0,j=x;if(T&&(A=_(A,"y",""),-1===b(A,"g")&&(A+="g"),j=w(x,f.lastIndex),f.lastIndex>0&&(!f.multiline||f.multiline&&"\n"!==v(x,f.lastIndex-1))&&(P="(?: "+P+")",j=" "+j,I++),n=new RegExp("^(?:"+P+")",A)),k&&(n=new RegExp("^"+P+"$(?!\\s)",A)),S&&(r=f.lastIndex),o=i(g,T?n:f,j),T?o?(o.input=w(o.input,I),o[0]=w(o[0],I),o.index=f.lastIndex,f.lastIndex+=o[0].length):f.lastIndex=0:S&&o&&(f.lastIndex=f.global?o.index+o[0].length:r),k&&o&&o.length>1&&i(m,o[0],n,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&O)for(o.groups=u=d(null),a=0;a<O.length;a++)u[(l=O[a])[0]]=o[l[1]];return o}
2),e.exports=y},567066:(e,t,n)=>{"use strict";var r=n(919670);e.exports=function(){var e=r(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},534706:(e,t,n)=>{var r=n(246916),o=n(892597),i=n(347976),a=n(567066),s=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in s||o(e,"flags")||!i(s,e)?t:r(a,e)}},852999:(e,t,n)=>{var r=n(747293),o=n(317854).RegExp,i=r((function(){var e=o("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),a=i||r((function(){return!o("a","y").sticky})),s=i||r((function(){var e=o("^r","gy");return e.lastIndex=2,null!=e.exec("str")}));e.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:i}},309441:(e,t,n)=>{var r=n(747293),o=n(317854).RegExp;e.exports=r((function(){var e=o(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)}))},38173:(e,t,n)=>{var r=n(747293),o=n(317854).RegExp;e.exports=r((function(){var e=o("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")}))},784488:e=>{var t=TypeError;e.exports=function(e){if(null==e)throw t("Can't call method on "+e);return e}},281150:e=>{e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},917152:(e,t,n)=>{var r=n(317854),o=n(522104),i=n(360614),a=n(188113),s=n(650206),c=n(548053),u=/MSIE .\./.test(a),l=r.Function,d=function(e){return u?function(t,n){var r=c(arguments.length,1)>2,a=i(t)?t:l(t),u=r?s(arguments,2):void 0;return e(r?function(){o(a,this,u)}:a,n)}:e};e.exports={setTimeout:d(r.setTimeout),setInterval:d(r.setInterval)}},996340:(e,t,n)=>{"use strict";var r=n(435005),o=n(403070),i=n(605112),a=n(919781),s=i("species");e.exports=function(e){var t=r(e),n=o.f;a&&t&&!t[s]&&n(t,s,{configurable:!0,get:function(){return this}})}},158003:(e,t,n)=>{var r=n(403070).f,o=n(892597),i=n(605112)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,i)&&r(e,i,{configurable:!0,value:t})}},306200:(e,t,n)=>{var r=n(672309),o=n(269711),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},205465:(e,t,n)=>{var r=n(317854),o=n(613072),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},672309:(e,t,n)=>{var r=n(831913),o=n(205465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.23.5",mode:r?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.23.5/LICENSE",source:"https://github.com/zloirock/core-js"})},136707:(e,t,n)=>{var r=n(919670),o=n(239483),i=n(605112)("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||null==(n=r(a)[i])?t:o(n)}},343429:(e,t,n)=>{var r=n(747293);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},128710:(e,t,n)=>{var r=n(901702),o=n(19303),i=n(141340),a=n(784488),s=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,d=i(a(t)),p=o(n),f=d.length;return p<0||p>=f?e?"":void 0:(r=c(d,p))<55296||r>56319||p+1===f||(l=c(d,p+1))<56320||l>57343?e?s(d,p):r:e?u(d,p,p+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},654986:(e,t,n)=>{var r=n(188113);e.exports=/Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(r)},976650:(e,t,n)=>{var r=n(901702),o=n(717466),i=n(141340),a=n(338415),s=n(784488),c=r(a),u=r("".slice),l=Math.ceil,d=function(e){return function(t,n,r){var a,d,p=i(s(t)),f=o(n),h=p.length,m=void 0===r?" ":i(r);return f<=h||""==m?p:((d=c(m,l((a=f-h)/m.length))).length>a&&(d=u(d,0,a)),e?p+d:d+p)}};e.exports={start:d(!1),end:d(!0)}},233197:(e,t,n)=>{"use strict";var r=n(901702),o=2147483647,i=/[^\0-\u007E]/,a=/[.\u3002\uFF0E\uFF61]/g,s="Overflow: input needs wider integers to process",c=RangeError,u=r(a.exec),l=Math.floor,d=String.fromCharCode,p=r("".charCodeAt),f=r([].join),h=r([].push),m=r("".replace),g=r("".split),y=r("".toLowerCase),v=function(e){return e+22+75*(e<26)},b=function(e,t,n){var r=0;for(e=n?l(e/700):e>>1,e+=l(e/t);e>455;)e=l(e/35),r+=36;return l(r+36*e/(e+38))},_=function(e){var t=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var o=p(e,n++);if(o>=55296&&o<=56319&&n<r){var i=p(e,n++);56320==(64512&i)?h(t,((1023&o)<<10)+(1023&i)+65536):(h(t,o),n--)}else h(t,o)}return t}(e);var n,r,i=e.length,a=128,u=0,m=72;for(n=0;n<e.length;n++)(r=e[n])<128&&h(t,d(r));var g=t.length,y=g;for(g&&h(t,"-");y<i;){var _=o;for(n=0;n<e.length;n++)(r=e[n])>=a&&r<_&&(_=r);var w=y+1;if(_-a>l((o-u)/w))throw c(s);for(u+=(_-a)*w,a=_,n=0;n<e.length;n++){if((r=e[n])<a&&++u>o)throw c(s);if(r==a){for(var S=u,C=36;;){var k=C<=m?1:C>=m+26?26:C-m;if(S<k)break;var x=S-k,E=36-k;h(t,d(v(k+x%E))),S=l(x/E),C+=36}h(t,d(v(S))),m=b(u,w,y==g),u=0,y++}}u++,a++}return f(t,"")};e.exports=function(e){var t,n,r=[],o=g(m(y(e),a,"."),".");for(t=0;t<o.length;t++)n=o[t],h(r,u(i,n)?"xn--"+_(n):n);return f(r,".")}},338415:(e,t,n)=>{"use strict";var r=n(19303),o=n(141340),i=n(784488),a=RangeError;e.exports=function(e){var t=o(i(this)),n="",s=r(e);
2if(s<0||s==1/0)throw a("Wrong number of repetitions");for(;s>0;(s>>>=1)&&(t+=t))1&s&&(n+=t);return n}},210365:(e,t,n)=>{"use strict";var r=n(453111).end,o=n(776091);e.exports=o("trimEnd")?function(){return r(this)}:"".trimEnd},776091:(e,t,n)=>{var r=n(676530).PROPER,o=n(747293),i=n(581361);e.exports=function(e){return o((function(){return!!i[e]()||"âÂ
á "!=="âÂ
á "[e]()||r&&i[e].name!==e}))}},33217:(e,t,n)=>{"use strict";var r=n(453111).start,o=n(776091);e.exports=o("trimStart")?function(){return r(this)}:"".trimStart},453111:(e,t,n)=>{var r=n(901702),o=n(784488),i=n(141340),a=n(581361),s=r("".replace),c="["+a+"]",u=RegExp("^"+c+c+"*"),l=RegExp(c+c+"*$"),d=function(e){return function(t){var n=i(o(t));return 1&e&&(n=s(n,u,"")),2&e&&(n=s(n,l,"")),n}};e.exports={start:d(1),end:d(2),trim:d(3)}},356532:(e,t,n)=>{var r=n(246916),o=n(435005),i=n(605112),a=n(298052);e.exports=function(){var e=o("Symbol"),t=e&&e.prototype,n=t&&t.valueOf,s=i("toPrimitive");t&&!t[s]&&a(t,s,(function(e){return r(n,this)}),{arity:1})}},20261:(e,t,n)=>{var r,o,i,a,s=n(317854),c=n(522104),u=n(249974),l=n(360614),d=n(892597),p=n(747293),f=n(260490),h=n(650206),m=n(180317),g=n(548053),y=n(506833),v=n(235268),b=s.setImmediate,_=s.clearImmediate,w=s.process,S=s.Dispatch,C=s.Function,k=s.MessageChannel,x=s.String,E=0,O={};try{r=s.location}catch(e){}var T=function(e){if(d(O,e)){var t=O[e];delete O[e],t()}},A=function(e){return function(){T(e)}},P=function(e){T(e.data)},I=function(e){s.postMessage(x(e),r.protocol+"//"+r.host)};b&&_||(b=function(e){g(arguments.length,1);var t=l(e)?e:C(e),n=h(arguments,1);return O[++E]=function(){c(t,void 0,n)},o(E),E},_=function(e){delete O[e]},v?o=function(e){w.nextTick(A(e))}:S&&S.now?o=function(e){S.now(A(e))}:k&&!y?(a=(i=new k).port2,i.port1.onmessage=P,o=u(a.postMessage,a)):s.addEventListener&&l(s.postMessage)&&!s.importScripts&&r&&"file:"!==r.protocol&&!p(I)?(o=I,s.addEventListener("message",P,!1)):o="onreadystatechange"in m("script")?function(e){f.appendChild(m("script")).onreadystatechange=function(){f.removeChild(this),T(e)}}:function(e){setTimeout(A(e),0)}),e.exports={set:b,clear:_}},450863:(e,t,n)=>{var r=n(901702);e.exports=r(1..valueOf)},951400:(e,t,n)=>{var r=n(19303),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},664599:(e,t,n)=>{var r=n(457593),o=TypeError;e.exports=function(e){var t=r(e,"number");if("number"==typeof t)throw o("Can't convert number to bigint");return BigInt(t)}},457067:(e,t,n)=>{var r=n(19303),o=n(717466),i=RangeError;e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw i("Wrong length or index");return n}},45656:(e,t,n)=>{var r=n(168361),o=n(784488);e.exports=function(e){return r(o(e))}},19303:(e,t,n)=>{var r=n(74758);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},717466:(e,t,n)=>{var r=n(19303),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},747908:(e,t,n)=>{var r=n(784488),o=Object;e.exports=function(e){return o(r(e))}},784590:(e,t,n)=>{var r=n(673002),o=RangeError;e.exports=function(e,t){var n=r(e);if(n%t)throw o("Wrong offset");return n}},673002:(e,t,n)=>{var r=n(19303),o=RangeError;e.exports=function(e){var t=r(e);if(t<0)throw o("The argument can't be less than 0");return t}},457593:(e,t,n)=>{var r=n(246916),o=n(970111),i=n(952190),a=n(158173),s=n(392140),c=n(605112),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!o(e)||i(e))return e;var n,c=a(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!o(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===t&&(t="number"),s(e,t)}},734948:(e,t,n)=>{var r=n(457593),o=n(952190);e.exports=function(e){var t=r(e,"string");return o(t)?t:t+""}},351694:(e,t,n)=>{var r={};r[n(605112)("toStringTag")]="z",e.exports="[object z]"===String(r)},141340:(e,t,n)=>{var r=n(870648),o=String;e.exports=function(e){if("Symbol"===r(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}}
2,844038:(e,t,n)=>{var r=n(235268);e.exports=function(e){try{if(r)return Function('return require("'+e+'")')()}catch(e){}}},266330:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},519843:(e,t,n)=>{"use strict";var r=n(82109),o=n(317854),i=n(246916),a=n(919781),s=n(163832),c=n(690260),u=n(413331),l=n(825787),d=n(679114),p=n(168880),f=n(55988),h=n(717466),m=n(457067),g=n(784590),y=n(734948),v=n(892597),b=n(870648),_=n(970111),w=n(952190),S=n(70030),C=n(347976),k=n(727674),x=n(308006).f,E=n(997321),O=n(842092).forEach,T=n(996340),A=n(403070),P=n(231236),I=n(929909),j=n(979587),L=I.get,N=I.set,R=I.enforce,D=A.f,M=P.f,F=Math.round,U=o.RangeError,B=u.ArrayBuffer,$=B.prototype,H=u.DataView,z=c.NATIVE_ARRAY_BUFFER_VIEWS,q=c.TYPED_ARRAY_TAG,V=c.TypedArray,G=c.TypedArrayPrototype,W=c.aTypedArrayConstructor,Y=c.isTypedArray,K="BYTES_PER_ELEMENT",J="Wrong length",Z=function(e,t){W(e);for(var n=0,r=t.length,o=new e(r);r>n;)o[n]=t[n++];return o},X=function(e,t){D(e,t,{get:function(){return L(this)[t]}})},Q=function(e){var t;return C($,e)||"ArrayBuffer"==(t=b(e))||"SharedArrayBuffer"==t},ee=function(e,t){return Y(e)&&!w(t)&&t in e&&f(+t)&&t>=0},te=function(e,t){return t=y(t),ee(e,t)?d(2,e[t]):M(e,t)},ne=function(e,t,n){return t=y(t),!(ee(e,t)&&_(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?D(e,t,n):(e[t]=n.value,e)};a?(z||(P.f=te,A.f=ne,X(G,"buffer"),X(G,"byteOffset"),X(G,"byteLength"),X(G,"length")),r({target:"Object",stat:!0,forced:!z},{getOwnPropertyDescriptor:te,defineProperty:ne}),e.exports=function(e,t,n){var a=e.match(/\d+$/)[0]/8,c=e+(n?"Clamped":"")+"Array",u="get"+e,d="set"+e,f=o[c],y=f,v=y&&y.prototype,b={},w=function(e,t){D(e,t,{get:function(){return function(e,t){var n=L(e);return n.view[u](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=L(e);n&&(r=(r=F(r))<0?0:r>255?255:255&r),o.view[d](t*a+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};z?s&&(y=t((function(e,t,n,r){return l(e,v),j(_(t)?Q(t)?void 0!==r?new f(t,g(n,a),r):void 0!==n?new f(t,g(n,a)):new f(t):Y(t)?Z(y,t):i(E,y,t):new f(m(t)),e,y)})),k&&k(y,V),O(x(f),(function(e){e in y||p(y,e,f[e])})),y.prototype=v):(y=t((function(e,t,n,r){l(e,v);var o,s,c,u=0,d=0;if(_(t)){if(!Q(t))return Y(t)?Z(y,t):i(E,y,t);o=t,d=g(n,a);var p=t.byteLength;if(void 0===r){if(p%a)throw U(J);if((s=p-d)<0)throw U(J)}else if((s=h(r)*a)+d>p)throw U(J);c=s/a}else c=m(t),o=new B(s=c*a);for(N(e,{buffer:o,byteOffset:d,byteLength:s,length:c,view:new H(o)});u<c;)w(e,u++)})),k&&k(y,V),v=y.prototype=S(G)),v.constructor!==y&&p(v,"constructor",y),R(v).TypedArrayConstructor=y,q&&p(v,q,c);var C=y!=f;b[c]=y,r({global:!0,constructor:!0,forced:C,sham:!z},b),K in y||p(y,K,a),K in v||p(v,K,a),T(c)}):e.exports=function(){}},163832:(e,t,n)=>{var r=n(317854),o=n(747293),i=n(617072),a=n(690260).NATIVE_ARRAY_BUFFER_VIEWS,s=r.ArrayBuffer,c=r.Int8Array;e.exports=!a||!o((function(){c(1)}))||!o((function(){new c(-1)}))||!i((function(e){new c,new c(null),new c(1.5),new c(e)}),!0)||o((function(){return 1!==new c(new s(2),1,void 0).length}))},443074:(e,t,n)=>{var r=n(597745),o=n(166304);e.exports=function(e,t){return r(o(e),t)}},997321:(e,t,n)=>{var r=n(249974),o=n(246916),i=n(239483),a=n(747908),s=n(426244),c=n(118554),u=n(871246),l=n(297659),d=n(690260).aTypedArrayConstructor;e.exports=function(e){var t,n,p,f,h,m,g=i(this),y=a(e),v=arguments.length,b=v>1?arguments[1]:void 0,_=void 0!==b,w=u(y);if(w&&!l(w))for(m=(h=c(y,w)).next,y=[];!(f=o(m,h)).done;)y.push(f.value);for(_&&v>2&&(b=r(b,arguments[2])),n=s(y),p=new(d(g))(n),t=0;n>t;t++)p[t]=_?b(y[t],t):y[t];return p}},166304:(e,t,n)=>{var r=n(690260),o=n(136707),i=r.aTypedArrayConstructor,a=r.getTypedArrayConstructor;e.exports=function(e){return i(o(e,a(e)))}},269711:(e,t,n)=>{var r=n(901702),o=0,i=Math.random(),a=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++o+i,36)}},543307:(e,t,n)=>{var r=n(130133);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},803353:(e,t,n)=>{var r=n(919781),o=n(747293);e.exports=r&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},548053:e=>{var t=TypeError;e.exports=function(e,n){if(e<n)throw t("Not enough arguments");return e}},506061:(e,t,n)=>{var r=n(605112);t.f=r}
2,605112:(e,t,n)=>{var r=n(317854),o=n(672309),i=n(892597),a=n(269711),s=n(130133),c=n(543307),u=o("wks"),l=r.Symbol,d=l&&l.for,p=c?l:l&&l.withoutSetter||a;e.exports=function(e){if(!i(u,e)||!s&&"string"!=typeof u[e]){var t="Symbol."+e;s&&i(l,e)?u[e]=l[e]:u[e]=c&&d?d(t):p(t)}return u[e]}},581361:e=>{e.exports="\t\n\v\f\r  áââââââ
ââââââ¯âã\u2028\u2029\ufeff"},89191:(e,t,n)=>{"use strict";var r=n(435005),o=n(892597),i=n(168880),a=n(347976),s=n(727674),c=n(99920),u=n(402626),l=n(979587),d=n(856277),p=n(58340),f=n(877741),h=n(722914),m=n(919781),g=n(831913);e.exports=function(e,t,n,y){var v="stackTraceLimit",b=y?2:1,_=e.split("."),w=_[_.length-1],S=r.apply(null,_);if(S){var C=S.prototype;if(!g&&o(C,"cause")&&delete C.cause,!n)return S;var k=r("Error"),x=t((function(e,t){var n=d(y?t:e,void 0),r=y?new S(e):new S;return void 0!==n&&i(r,"message",n),h&&i(r,"stack",f(r.stack,2)),this&&a(C,this)&&l(r,this,x),arguments.length>b&&p(r,arguments[b]),r}));if(x.prototype=C,"Error"!==w?s?s(x,k):c(x,k,{name:!0}):m&&v in S&&(u(x,S,v),u(x,S,"prepareStackTrace")),c(x,S),!g)try{C.name!==w&&i(C,"name",w),C.constructor=x}catch(e){}return x}}},932120:(e,t,n)=>{var r=n(82109),o=n(435005),i=n(522104),a=n(747293),s=n(89191),c="AggregateError",u=o(c),l=!a((function(){return 1!==u([1]).errors[0]}))&&a((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:s(c,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},356967:(e,t,n)=>{"use strict";var r=n(82109),o=n(347976),i=n(579518),a=n(727674),s=n(99920),c=n(70030),u=n(168880),l=n(679114),d=n(877741),p=n(58340),f=n(720408),h=n(856277),m=n(605112),g=n(722914),y=m("toStringTag"),v=Error,b=[].push,_=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,s=o(w,this);a?n=a(new v,s?i(this):w):(n=s?this:c(w),u(n,y,"Error")),void 0!==t&&u(n,"message",h(t)),g&&u(n,"stack",d(n.stack,1)),p(n,r);var l=[];return f(e,b,{that:l}),u(n,"errors",l),n};a?a(_,v):s(_,v,{name:!0});var w=_.prototype=c(v.prototype,{constructor:l(1,_),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:_})},709170:(e,t,n)=>{n(356967)},718264:(e,t,n)=>{"use strict";var r=n(82109),o=n(317854),i=n(413331),a=n(996340),s=i.ArrayBuffer;r({global:!0,constructor:!0,forced:o.ArrayBuffer!==s},{ArrayBuffer:s}),a("ArrayBuffer")},776938:(e,t,n)=>{var r=n(82109),o=n(690260);r({target:"ArrayBuffer",stat:!0,forced:!o.NATIVE_ARRAY_BUFFER_VIEWS},{isView:o.isView})},439575:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(747293),a=n(413331),s=n(919670),c=n(951400),u=n(717466),l=n(136707),d=a.ArrayBuffer,p=a.DataView,f=p.prototype,h=o(d.prototype.slice),m=o(f.getUint8),g=o(f.setUint8);r({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new d(2).slice(1,void 0).byteLength}))},{slice:function(e,t){if(h&&void 0===t)return h(s(this),e);for(var n=s(this).byteLength,r=c(e,n),o=c(void 0===t?n:t,n),i=new(l(this,d))(u(o-r)),a=new p(this),f=new p(i),y=0;r<o;)g(f,y++,m(a,r++));return i}})},252262:(e,t,n)=>{"use strict";var r=n(82109),o=n(747908),i=n(426244),a=n(19303),s=n(951223);r({target:"Array",proto:!0},{at:function(e){var t=o(this),n=i(t),r=a(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}}),s("at")},892222:(e,t,n)=>{"use strict";var r=n(82109),o=n(747293),i=n(243157),a=n(970111),s=n(747908),c=n(426244),u=n(507207),l=n(586135),d=n(165417),p=n(881194),f=n(605112),h=n(507392),m=f("isConcatSpreadable"),g=h>=51||!o((function(){var e=[];return e[m]=!1,e.concat()[0]!==e})),y=p("concat"),v=function(e){if(!a(e))return!1;var t=e[m];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,arity:1,forced:!g||!y},{concat:function(e){var t,n,r,o,i,a=s(this),p=d(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(v(i=-1===t?a:arguments[t]))for(o=c(i),u(f+o),n=0;n<o;n++,f++)n in i&&l(p,f,i[n]);else u(f+1),l(p,f++,i);return p.length=f,p}})},250545:(e,t,n)=>{var r=n(82109),o=n(601048),i=n(951223);r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},126541:(e,t,n)=>{"use strict";var r=n(82109),o=n(842092).every;r({target:"Array",proto:!0,forced:!n(609341)("every")},{every:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},143290:(e,t,n)=>{var r=n(82109),o=n(721285),i=n(951223);r({target:"Array",proto:!0},{fill:o}),i("fill")},57327:(e,t,n)=>{"use strict";var r=n(82109),o=n(842092).filter;r({target:"Array",proto:!0,forced:!n(881194)("filter")},{filter:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},34553:(e,t,n)=>{"use strict";var r=n(82109),o=n(842092).findIndex,i=n(951223),a="findIndex",s=!0;a in[]&&Array(1).findIndex((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},477287:(e,t,n)=>{"use strict";var r=n(82109),o=n(9671).findLastIndex,i=n(951223);r({target:"Array",proto:!0},{findLastIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findLastIndex")},867635:(e,t,n)=>{"use strict";var r=n(82109),o=n(9671).findLast,i=n(951223);r({target:"Array",proto:!0},{findLast:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("findLast")},969826:(e,t,n)=>{"use strict";var r=n(82109),o=n(842092).find,i=n(951223),a="find",s=!0;a in[]&&Array(1).find((function(){s=!1})),r({target:"Array",proto:!0,forced:s},{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i(a)},586535:(e,t,n)=>{"use strict";var r=n(82109),o=n(706790),i=n(419662),a=n(747908),s=n(426244),c=n(165417);r({target:"Array",proto:!0},{flatMap:function(e){var t,n=a(this),r=s(n);return i(e),(t=c(n,0)).length=o(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}})},384944:(e,t,n)=>{"use strict";var r=n(82109),o=n(706790),i=n(747908),a=n(426244),s=n(19303),c=n(165417);r({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=i(this),n=a(t),r=c(t,0);return r.length=o(r,t,t,n,0,void 0===e?1:s(e)),r}})}
2,489554:(e,t,n)=>{"use strict";var r=n(82109),o=n(318533);r({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},491038:(e,t,n)=>{var r=n(82109),o=n(148457);r({target:"Array",stat:!0,forced:!n(617072)((function(e){Array.from(e)}))},{from:o})},226699:(e,t,n)=>{"use strict";var r=n(82109),o=n(841318).includes,i=n(747293),a=n(951223);r({target:"Array",proto:!0,forced:i((function(){return!Array(1).includes()}))},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),a("includes")},682772:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(841318).indexOf,a=n(609341),s=o([].indexOf),c=!!s&&1/s([1],1,-0)<0,u=a("indexOf");r({target:"Array",proto:!0,forced:c||!u},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?s(this,e,t)||0:i(this,e,t)}})},279753:(e,t,n)=>{n(82109)({target:"Array",stat:!0},{isArray:n(243157)})},66992:(e,t,n)=>{"use strict";var r=n(45656),o=n(951223),i=n(897497),a=n(929909),s=n(403070).f,c=n(970654),u=n(831913),l=n(919781),d="Array Iterator",p=a.set,f=a.getterFor(d);e.exports=c(Array,"Array",(function(e,t){p(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),"values");var h=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!u&&l&&"values"!==h.name)try{s(h,"name",{value:"values"})}catch(e){}},569600:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(168361),a=n(45656),s=n(609341),c=o([].join),u=i!=Object,l=s("join",",");r({target:"Array",proto:!0,forced:u||!l},{join:function(e){return c(a(this),void 0===e?",":e)}})},294986:(e,t,n)=>{var r=n(82109),o=n(386583);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},821249:(e,t,n)=>{"use strict";var r=n(82109),o=n(842092).map;r({target:"Array",proto:!0,forced:!n(881194)("map")},{map:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})}
2,126572:(e,t,n)=>{"use strict";var r=n(82109),o=n(747293),i=n(404411),a=n(586135),s=Array;r({target:"Array",stat:!0,forced:o((function(){function e(){}return!(s.of.call(e)instanceof e)}))},{of:function(){for(var e=0,t=arguments.length,n=new(i(this)?this:s)(t);t>e;)a(n,e,arguments[e++]);return n.length=t,n}})},757658:(e,t,n)=>{"use strict";var r=n(82109),o=n(747908),i=n(426244),a=n(507207),s=n(747293)((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:s||c},{push:function(e){var t=o(this),n=i(t),r=arguments.length;a(n+r);for(var s=0;s<r;s++)t[n]=arguments[s],n++;return t.length=n,n}})},996644:(e,t,n)=>{"use strict";var r=n(82109),o=n(753671).right,i=n(609341),a=n(507392),s=n(235268);r({target:"Array",proto:!0,forced:!i("reduceRight")||!s&&a>79&&a<83},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},185827:(e,t,n)=>{"use strict";var r=n(82109),o=n(753671).left,i=n(609341),a=n(507392),s=n(235268);r({target:"Array",proto:!0,forced:!i("reduce")||!s&&a>79&&a<83},{reduce:function(e){var t=arguments.length;return o(this,e,t,t>1?arguments[1]:void 0)}})},365069:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(243157),a=o([].reverse),s=[1,2];r({target:"Array",proto:!0,forced:String(s)===String(s.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),a(this)}})},747042:(e,t,n)=>{"use strict";var r=n(82109),o=n(243157),i=n(404411),a=n(970111),s=n(951400),c=n(426244),u=n(45656),l=n(586135),d=n(605112),p=n(881194),f=n(650206),h=p("slice"),m=d("species"),g=Array,y=Math.max;r({target:"Array",proto:!0,forced:!h},{slice:function(e,t){var n,r,d,p=u(this),h=c(p),v=s(e,h),b=s(void 0===t?h:t,h);if(o(p)&&(n=p.constructor,(i(n)&&(n===g||o(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return f(p,v,b);for(r=new(void 0===n?g:n)(y(b-v,0)),d=0;v<b;v++,d++)v in p&&l(r,d,p[v]);return r.length=d,r}})},605212:(e,t,n)=>{"use strict";var r=n(82109),o=n(842092).some;r({target:"Array",proto:!0,forced:!n(609341)("some")},{some:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},702707:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(419662),a=n(747908),s=n(426244),c=n(285117),u=n(141340),l=n(747293),d=n(994362),p=n(609341),f=n(568886),h=n(530256),m=n(507392),g=n(498008),y=[],v=o(y.sort),b=o(y.push),_=l((function(){y.sort(void 0)})),w=l((function(){y.sort(null)})),S=p("sort"),C=!l((function(){if(m)return m<70;if(!(f&&f>3)){if(h)return!0;if(g)return g<603;var e,t,n,r,o="";for(e=65;e<76;
2e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)y.push({k:t+r,v:n})}for(y.sort((function(e,t){return t.v-e.v})),r=0;r<y.length;r++)t=y[r].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));r({target:"Array",proto:!0,forced:_||!w||!S||!C},{sort:function(e){void 0!==e&&i(e);var t=a(this);if(C)return void 0===e?v(t):v(t,e);var n,r,o=[],l=s(t);for(r=0;r<l;r++)r in t&&b(o,t[r]);for(d(o,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:u(t)>u(n)?1:-1}}(e)),n=o.length,r=0;r<n;)t[r]=o[r++];for(;r<l;)c(t,r++);return t}})},338706:(e,t,n)=>{n(996340)("Array")},140561:(e,t,n)=>{"use strict";var r=n(82109),o=n(747908),i=n(951400),a=n(19303),s=n(426244),c=n(507207),u=n(165417),l=n(586135),d=n(285117),p=n(881194)("splice"),f=Math.max,h=Math.min;r({target:"Array",proto:!0,forced:!p},{splice:function(e,t){var n,r,p,m,g,y,v=o(this),b=s(v),_=i(e,b),w=arguments.length;for(0===w?n=r=0:1===w?(n=0,r=b-_):(n=w-2,r=h(f(a(t),0),b-_)),c(b+n-r),p=u(v,r),m=0;m<r;m++)(g=_+m)in v&&l(p,m,v[g]);if(p.length=r,n<r){for(m=_;m<b-r;m++)y=m+n,(g=m+r)in v?v[y]=v[g]:d(v,y);for(m=b;m>b-r+n;m--)d(v,m-1)}else if(n>r)for(m=b-r;m>_;m--)y=m+n-1,(g=m+r-1)in v?v[y]=v[g]:d(v,y);for(m=0;m<n;m++)v[m+_]=arguments[m+2];return v.length=b-r+n,p}})},199244:(e,t,n)=>{n(951223)("flatMap")},133792:(e,t,n)=>{n(951223)("flat")},430541:(e,t,n)=>{"use strict";var r=n(82109),o=n(747908),i=n(426244),a=n(285117),s=n(507207),c=1!==[].unshift(0),u=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}();r({target:"Array",proto:!0,arity:1,forced:c||u},{unshift:function(e){var t=o(this),n=i(t),r=arguments.length;if(r){s(n+r);for(var c=n;c--;){var u=c+r;c in t?t[u]=t[c]:a(t,u)}for(var l=0;l<r;l++)t[l]=arguments[l]}return t.length=n+r}})},503690:(e,t,n)=>{var r=n(82109),o=n(413331);r({global:!0,constructor:!0,forced:!n(324019)},{DataView:o.DataView})},616716:(e,t,n)=>{n(503690)},143016:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(747293)((function(){return 120!==new Date(16e11).getYear()})),a=o(Date.prototype.getFullYear);r({target:"Date",proto:!0,forced:i},{getYear:function(){return a(this)-1900}})},603843:(e,t,n)=>{var r=n(82109),o=n(901702),i=Date,a=o(i.prototype.getTime);r({target:"Date",stat:!0},{now:function(){return a(new i)}})},81801:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(19303),a=Date.prototype,s=o(a.getTime),c=o(a.setFullYear);r({target:"Date",proto:!0},{setYear:function(e){s(this);var t=i(e);return c(this,0<=t&&t<=99?t+1900:t)}})},809550:(e,t,n)=>{n(82109)({target:"Date",proto:!0},{toGMTString:Date.prototype.toUTCString})},335268:(e,t,n)=>{var r=n(82109),o=n(785573);r({target:"Date",proto:!0,forced:Date.prototype.toISOString!==o},{toISOString:o})},805735:(e,t,n)=>{"use strict";var r=n(82109),o=n(747293),i=n(747908),a=n(457593);r({target:"Date",proto:!0,arity:1,forced:o((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(e){var t=i(this),n=a(t,"number");return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},396078:(e,t,n)=>{var r=n(892597),o=n(298052),i=n(338709),a=n(605112)("toPrimitive"),s=Date.prototype;r(s,a)||o(s,a,i)},583710:(e,t,n)=>{var r=n(901702),o=n(298052),i=Date.prototype,a="Invalid Date",s=r(i.toString),c=r(i.getTime);String(new Date(NaN))!=a&&o(i,"toString",(function(){var e=c(this);return e==e?s(this):a}))},21703:(e,t,n)=>{var r=n(82109),o=n(317854),i=n(522104),a=n(89191),s=o.WebAssembly,c=7!==Error("e",{cause:7}).cause,u=function(e,t){var n={};n[e]=a(e,t,c),r({global:!0,constructor:!0,arity:1,forced:c},n)},l=function(e,t){if(s&&s[e]){var n={};n[e]=a("WebAssembly."+e,t,c),r({target:"WebAssembly",stat:!0,constructor:!0,arity:1,forced:c},n)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}}
2)),l("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),l("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),l("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},996647:(e,t,n)=>{var r=n(298052),o=n(607762),i=Error.prototype;i.toString!==o&&r(i,"toString",o)},162130:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(141340),a=o("".charAt),s=o("".charCodeAt),c=o(/./.exec),u=o(1..toString),l=o("".toUpperCase),d=/[\w*+\-./@]/,p=function(e,t){for(var n=u(e,16);n.length<t;)n="0"+n;return n};r({global:!0},{escape:function(e){for(var t,n,r=i(e),o="",u=r.length,f=0;f<u;)t=a(r,f++),c(d,t)?o+=t:o+=(n=s(t,0))<256?"%"+p(n,2):"%u"+l(p(n,4));return o}})},224812:(e,t,n)=>{var r=n(82109),o=n(427065);r({target:"Function",proto:!0,forced:Function.bind!==o},{bind:o})},504855:(e,t,n)=>{"use strict";var r=n(360614),o=n(970111),i=n(403070),a=n(579518),s=n(605112),c=n(56339),u=s("hasInstance"),l=Function.prototype;u in l||i.f(l,u,{value:c((function(e){if(!r(this)||!o(e))return!1;var t=this.prototype;if(!o(t))return e instanceof this;for(;e=a(e);)if(t===e)return!0;return!1}),u)})},968309:(e,t,n)=>{var r=n(919781),o=n(676530).EXISTS,i=n(901702),a=n(403070).f,s=Function.prototype,c=i(s.toString),u=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,l=i(u.exec);
2r&&!o&&a(s,"name",{configurable:!0,get:function(){try{return l(u,c(this))[1]}catch(e){return""}}})},235837:(e,t,n)=>{n(82109)({global:!0},{globalThis:n(317854)})},838862:(e,t,n)=>{var r=n(82109),o=n(435005),i=n(522104),a=n(246916),s=n(901702),c=n(747293),u=n(243157),l=n(360614),d=n(970111),p=n(952190),f=n(650206),h=n(130133),m=o("JSON","stringify"),g=s(/./.exec),y=s("".charAt),v=s("".charCodeAt),b=s("".replace),_=s(1..toString),w=/[\uD800-\uDFFF]/g,S=/^[\uD800-\uDBFF]$/,C=/^[\uDC00-\uDFFF]$/,k=!h||c((function(){var e=o("Symbol")();return"[null]"!=m([e])||"{}"!=m({a:e})||"{}"!=m(Object(e))})),x=c((function(){return'"\\udf06\\ud834"'!==m("\udf06\ud834")||'"\\udead"'!==m("\udead")})),E=function(e,t){var n=f(arguments),r=t;if((d(t)||void 0!==e)&&!p(e))return u(t)||(t=function(e,t){if(l(r)&&(t=a(r,this,e,t)),!p(t))return t}),n[1]=t,i(m,null,n)},O=function(e,t,n){var r=y(n,t-1),o=y(n,t+1);return g(S,e)&&!g(C,o)||g(C,e)&&!g(S,r)?"\\u"+_(v(e,0),16):e};m&&r({target:"JSON",stat:!0,arity:3,forced:k||x},{stringify:function(e,t,n){var r=f(arguments),o=i(k?E:m,null,r);return x&&"string"==typeof o?b(o,w,O):o}})},173706:(e,t,n)=>{var r=n(317854);n(158003)(r.JSON,"JSON",!0)},669098:(e,t,n)=>{"use strict";n(277710)("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(495631))},651532:(e,t,n)=>{n(669098)},399752:(e,t,n)=>{var r=n(82109),o=n(926513),i=Math.acosh,a=Math.log,s=Math.sqrt,c=Math.LN2;r({target:"Math",stat:!0,forced:!i||710!=Math.floor(i(Number.MAX_VALUE))||i(1/0)!=1/0},{acosh:function(e){var t=+e;return t<1?NaN:t>94906265.62425156?a(t)+c:o(t-1+s(t-1)*s(t+1))}})},982376:(e,t,n)=>{var r=n(82109),o=Math.asinh,i=Math.log,a=Math.sqrt;r({target:"Math",stat:!0,forced:!(o&&1/o(0)>0)},{asinh:function e(t){var n=+t;return isFinite(n)&&0!=n?n<0?-e(-n):i(n+a(n*n+1)):n}})},373181:(e,t,n)=>{var r=n(82109),o=Math.atanh,i=Math.log;r({target:"Math",stat:!0,forced:!(o&&1/o(-0)<0)},{atanh:function(e){var t=+e;return 0==t?t:i((1+t)/(1-t))/2}})},323484:(e,t,n)=>{var r=n(82109),o=n(64310),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){var t=+e;return o(t)*a(i(t),1/3)}})},902388:(e,t,n)=>{var r=n(82109),o=Math.floor,i=Math.log,a=Math.LOG2E;r({target:"Math",stat:!0},{clz32:function(e){var t=e>>>0;return t?31-o(i(t+.5)*a):32}})},688621:(e,t,n)=>{var r=n(82109),o=n(266736),i=Math.cosh,a=Math.abs,s=Math.E;r({target:"Math",stat:!0,forced:!i||i(710)===1/0},{cosh:function(e){var t=o(a(e)-1)+1;return(t+1/(t*s*s))*(s/2)}})},660403:(e,t,n)=>{var r=n(82109),o=n(266736);r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},284755:(e,t,n)=>{n(82109)({target:"Math",stat:!0},{fround:n(326130)})},925438:(e,t,n)=>{var r=n(82109),o=Math.hypot,i=Math.abs,a=Math.sqrt;r({target:"Math",stat:!0,arity:2,forced:!!o&&o(1/0,NaN)!==1/0},{hypot:function(e,t){for(var n,r,o=0,s=0,c=arguments.length,u=0;s<c;)u<(n=i(arguments[s++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*a(o)}})},690332:(e,t,n)=>{var r=n(82109),o=n(747293),i=Math.imul;r({target:"Math",stat:!0,forced:o((function(){return-5!=i(4294967295,5)||2!=i.length}))},{imul:function(e,t){var n=65535,r=+e,o=+t,i=n&r,a=n&o;return 0|i*a+((n&r>>>16)*a+i*(n&o>>>16)<<16>>>0)}})},940658:(e,t,n)=>{n(82109)({target:"Math",stat:!0},{log10:n(120403)})},540197:(e,t,n)=>{n(82109)({target:"Math",stat:!0},{log1p:n(926513)})},644914:(e,t,n)=>{var r=n(82109),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/i}})},152420:(e,t,n)=>{n(82109)({target:"Math",stat:!0},{sign:n(64310)})},260160:(e,t,n)=>{var r=n(82109),o=n(747293),i=n(266736),a=Math.abs,s=Math.exp,c=Math.E;r({target:"Math",stat:!0,forced:o((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(e){var t=+e;return a(t)<1?(i(t)-i(-t))/2:(s(t-1)-s(-t-1))*(c/2)}})},360970:(e,t,n)=>{var r=n(82109),o=n(266736),i=Math.exp;r({target:"Math",stat:!0},{tanh:function(e){var t=+e,n=o(t),r=o(-t);return n==1/0?1:r==1/0?-1:(n-r)/(i(t)+i(-t))}})},910408:(e,t,n)=>{n(158003)(Math,"Math",!0)},873689:(e,t,n)=>{n(82109)({target:"Math",stat:!0},{trunc:n(74758)})},209653:(e,t,n)=>{"use strict";var r=n(919781),o=n(317854),i=n(901702),a=n(554705),s=n(298052),c=n(892597),u=n(979587),l=n(347976),d=n(952190),p=n(457593),f=n(747293),h=n(308006).f,m=n(231236).f,g=n(403070).f,y=n(450863),v=n(453111).trim,b="Number",_=o.Number,w=_.prototype,S=o.TypeError,C=i("".slice),k=i("".charCodeAt),x=function(e){var t=p(e,"number");return"bigint"==typeof t?t:E(t)},E=function(e){var t,n,r,o,i,a,s,c,u=p(e,"number");if(d(u))throw S("Cannot convert a Symbol value to a number");if("string"==typeof u&&u.length>2)if(u=v(u),43===(t=k(u,0))||45===t){if(88===(n=k(u,2))||120===n)return NaN}else if(48===t){switch(k(u,1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(a=(i=C(u,2)).length,s=0;s<a;s++)if((c=k(i,s))<48||c>o)return NaN;return parseInt(i,r)}return+u};
2if(a(b,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var O,T=function(e){var t=arguments.length<1?0:_(x(e)),n=this;return l(w,n)&&f((function(){y(n)}))?u(Object(t),n,T):t},A=r?h(_):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),P=0;A.length>P;P++)c(_,O=A[P])&&!c(T,O)&&g(T,O,m(_,O));T.prototype=w,w.constructor=T,s(o,b,T,{constructor:!0})}},593299:(e,t,n)=>{n(82109)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{EPSILON:Math.pow(2,-52)})},435192:(e,t,n)=>{n(82109)({target:"Number",stat:!0},{isFinite:n(77023)})},533161:(e,t,n)=>{n(82109)({target:"Number",stat:!0},{isInteger:n(55988)})},944048:(e,t,n)=>{n(82109)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},178285:(e,t,n)=>{var r=n(82109),o=n(55988),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},144363:(e,t,n)=>{n(82109)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MAX_SAFE_INTEGER:9007199254740991})},155994:(e,t,n)=>{n(82109)({target:"Number",stat:!0,nonConfigurable:!0,nonWritable:!0},{MIN_SAFE_INTEGER:-9007199254740991})}
vendor: 4,509 bytes, line 2
2,961874:(e,t,n)=>{var r=n(82109),o=n(702814);r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},909494:(e,t,n)=>{var r=n(82109),o=n(283009);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},31354:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(19303),a=n(450863),s=n(338415),c=n(120403),u=n(747293),l=RangeError,d=String,p=isFinite,f=Math.abs,h=Math.floor,m=Math.pow,g=Math.round,y=o(1..toExponential),v=o(s),b=o("".slice),_="-6.9000e-11"===y(-69e-12,4)&&"1.25e+0"===y(1.255,2)&&"1.235e+4"===y(12345,3)&&"3e+1"===y(25,0),w=u((function(){y(1,1/0)}))&&u((function(){y(1,-1/0)})),S=!u((function(){y(1/0,1/0)}))&&!u((function(){y(NaN,1/0)}));r({target:"Number",proto:!0,forced:!_||!w||!S},{toExponential:function(e){var t=a(this);if(void 0===e)return y(t);var n=i(e);if(!p(t))return String(t);if(n<0||n>20)throw l("Incorrect fraction digits");if(_)return y(t,n);var r="",o="",s=0,u="",w="";if(t<0&&(r="-",t=-t),0===t)s=0,o=v("0",n+1);else{var S=c(t);s=h(S);var C=0,k=m(10,s-n);2*t>=(2*(C=g(t/k))+1)*k&&(C+=1),C>=m(10,n+1)&&(C/=10,s+=1),o=d(C)}return 0!==n&&(o=b(o,0,1)+"."+b(o,1)),0===s?(u="+",w="0"):(u=s>0?"+":"-",w=d(f(s))),r+(o+"e")+u+w}})},556977:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(19303),a=n(450863),s=n(338415),c=n(747293),u=RangeError,l=String,d=Math.floor,p=o(s),f=o("".slice),h=o(1..toFixed),m=function(e,t,n){return 0===t?n:t%2==1?m(e,t-1,n*e):m(e*e,t/2,n)},g=function(e,t,n){for(var r=-1,o=n;++r<6;)o+=t*e[r],e[r]=o%1e7,o=d(o/1e7)},y=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=d(r/t),r=r%t*1e7},v=function(e){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==e[t]){var r=l(e[t]);n=""===n?r:n+p("0",7-r.length)+r}return n};r({target:"Number",proto:!0,forced:c((function(){return"0.000"!==h(8e-5,3)||"1"!==h(.9,0)||"1.25"!==h(1.255,2)||"1000000000000000128"!==h(0xde0b6b3a7640080,0)}))||!c((function(){h({})}))},{toFixed:function(e){var t,n,r,o,s=a(this),c=i(e),d=[0,0,0,0,0,0],h="",b="0";if(c<0||c>20)throw u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return l(s);if(s<0&&(h="-",s=-s),s>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(s*m(2,69,1))-69)<0?s*m(2,-t,1):s/m(2,t,1),n*=4503599627370496,(t=52-t)>0){for(g(d,0,n),r=c;r>=7;)g(d,1e7,0),r-=7;for(g(d,m(10,r,1),0),r=t-1;r>=23;)y(d,1<<23),r-=23;y(d,1<<r),g(d,1,1),y(d,2),b=v(d)}else g(d,0,n),g(d,1<<-t,0),b=v(d)+p("0",c);return c>0?h+((o=b.length)<=c?"0."+p("0",c-o)+b:f(b,0,o-c)+"."+f(b,o-c)):h+b}})},855147:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(747293),a=n(450863),s=o(1..toPrecision);r({target:"Number",proto:!0,forced:i((function(){return"1"!==s(1,void 0)}))||!i((function(){s({})}))},{toPrecision:function(e){return void 0===e?s(a(this)):s(a(this),e)}})},319601:(e,t,n)=>{var r=n(82109),o=n(921574);r({target:"Object",stat:!0,arity:2,forced:Object.assign!==o},{assign:o})},978011:(e,t,n)=>{n(82109)({target:"Object",stat:!0,sham:!n(919781)},{create:n(70030)})},59595:(e,t,n)=>{"use strict";var r=n(82109),o=n(919781),i=n(169026),a=n(419662),s=n(747908),c=n(403070);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){c.f(s(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},833321:(e,t,n)=>{var r=n(82109),o=n(919781),i=n(536048).f;r({target:"Object",stat:!0,forced:Object.defineProperties!==i,sham:!o},{defineProperties:i})},369070:(e,t,n)=>{var r=n(82109),o=n(919781),i=n(403070).f;r({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!o},{defineProperty:i})},735500:(e,t,n)=>{"use strict";var r=n(82109),o=n(919781),i=n(169026),a=n(419662),s=n(747908),c=n(403070);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){c.f(s(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},569720:(e,t,n)=>{var r=n(82109),o=n(344699).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},643371:(e,t,n)=>{var r=n(82109),o=n(876677),i=n(747293),a=n(970111),s=n(962423).onFreeze,c=Object.freeze;r({target:"Object",stat:!0,forced:i((function(){c(1)})),sham:!o},{freeze:function(e){return c&&a(e)?c(s(e)):e}})},838559:(e,t,n)=>{var r=n(82109),o=n(720408),i=n(586135);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){i(t,e,n)}),{AS_ENTRIES:!0}),t}})},438880:(e,t,n)=>{var r=n(82109),o=n(747293),i=n(45656),a=n(231236).f,s=n(919781),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},749337:(e,t,n)=>
2{var r=n(82109),o=n(919781),i=n(53887),a=n(45656),s=n(231236),c=n(586135);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,u=i(r),l={},d=0;u.length>d;)void 0!==(n=o(r,t=u[d++]))&&c(l,t,n);return l}})},536210:(e,t,n)=>{var r=n(82109),o=n(747293),i=n(501156).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},29660:(e,t,n)=>{var r=n(82109),o=n(130133),i=n(747293),a=n(525181),s=n(747908);r({target:"Object",stat:!0,forced:!o||i((function(){a.f(1)}))},{getOwnPropertySymbols:function(e){var t=a.f;return t?t(s(e)):[]}})},530489:(e,t,n)=>{var r=n(82109),o=n(747293),i=n(747908),a=n(579518),s=n(849920);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},346314:(e,t,n)=>{n(82109)({target:"Object",stat:!0},{hasOwn:n(892597)})},441825:(e,t,n)=>{var r=n(82109),o=n(852050);r({target:"Object",stat:!0,forced:Object.isExtensible!==o},{isExtensible:o})},998410:(e,t,n)=>{var r=n(82109),o=n(747293),i=n(970111),a=n(884326),s=n(107556),c=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){c(1)}))||s},{isFrozen:function(e){return!i(e)||!(!s||"ArrayBuffer"!=a(e))||!!c&&c(e)}})},172200:(e,t,n)=>{var r=n(82109),o=n(747293),i=n(970111),a=n(884326),s=n(107556),c=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){c(1)}))||s},{isSealed:function(e){return!i(e)||!(!s||"ArrayBuffer"!=a(e))||!!c&&c(e)}})},243304:(e,t,n)=>{n(82109)({target:"Object",stat:!0},{is:n(281150)})},447941:(e,t,n)=>{var r=n(82109),o=n(747908),i=n(181956);r({target:"Object",stat:!0,forced:n(747293)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},294869:(e,t,n)=>{"use strict";var r=n(82109),o=n(919781),i=n(169026),a=n(747908),s=n(734948),c=n(579518),u=n(231236).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),r=s(e);do{if(t=u(n,r))return t.get}while(n=c(n))}})},933952:(e,t,n)=>{"use strict";var r=n(82109),o=n(919781),i=n(169026),a=n(747908),s=n(734948),c=n(579518),u=n(231236).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),r=s(e);do{if(t=u(n,r))return t.set}while(n=c(n))}})},857227:(e,t,n)=>{var r=n(82109),o=n(970111),i=n(962423).onFreeze,a=n(876677),s=n(747293),c=Object.preventExtensions;r({target:"Object",stat:!0,forced:s((function(){c(1)})),sham:!a},{preventExtensions:function(e){return c&&o(e)?c(i(e)):e}})},760514:(e,t,n)=>{var r=n(82109),o=n(970111),i=n(962423).onFreeze,a=n(876677),s=n(747293),c=Object.seal;r({target:"Object",stat:!0,forced:s((function(){c(1)})),sham:!a},{seal:function(e){return c&&o(e)?c(i(e)):e}})},968304:(e,t,n)=>{n(82109)({target:"Object",stat:!0},{setPrototypeOf:n(727674)})},241539:(e,t,n)=>{var r=n(351694),o=n(298052),i=n(590288);r||o(Object.prototype,"toString",i,{unsafe:!0})},426833:(e,t,n)=>{var r=n(82109),o=n(344699).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},454678:(e,t,n)=>{var r=n(82109),o=n(702814);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},891058:(e,t,n)=>{var r=n(82109),o=n(283009);r({global:!0,forced:parseInt!=o},{parseInt:o})},217922:(e,t,n)=>{"use strict";var r=n(82109),o=n(246916),i=n(419662),a=n(878523),s=n(412534),c=n(720408);r({target:"Promise",stat:!0},{allSettled:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,l=s((function(){var n=i(t.resolve),a=[],s=0,u=1;c(e,(function(e){var i=s++,c=!1;u++,o(n,t,e).then((function(e){c||(c=!0,a[i]={status:"fulfilled",value:e},--u||r(a))}),(function(e){c||(c=!0,a[i]={status:"rejected",reason:e},--u||r(a))}))})),--u||r(a)}));return l.error&&u(l.value),n.promise}})},870821:(e,t,n)=>{"use strict";var r=n(82109),o=n(246916),i=n(419662),a=n(878523),s=n(412534),c=n(720408);r({target:"Promise",stat:!0,forced:n(880612)},{all:function(e){var t=this,n=a.f(t),r=n.resolve,u=n.reject,l=s((function(){var n=i(t.resolve),a=[],s=0,l=1;c(e,(function(e){var i=s++,c=!1;l++,o(n,t,e).then((function(e){c||(c=!0,a[i]=e,--l||r(a))}),u)})),--l||r(a)}));return l.error&&u(l.value),n.promise}})},234668:(e,t,n)=>{"use strict";var r=n(82109),o=n(246916),i=n(419662),a=n(435005),s=n(878523),c=n(412534),u=n(720408),l="No one promise resolved";r({target:"Promise",stat:!0},{any:function(e){var t=this,n=a("AggregateError"),r=s.f(t),d=r.resolve,p=r.reject,f=c((function(){var r=i(t.resolve),a=[],s=0,c=1,f=!1;u(e,(function(e){var i=s++,u=!1;c++,o(r,t,e).then((function(e){u||f||(f=!0,d(e))}),(function(e){u||f||(u=!0,a[i]=e,--c||p(new n(a,l)))}))})),--c||p(new n(a,l))}));return f.error&&p(f.value),r.promise}})}
vendor: 4,144 bytes, line 2
2,94164:(e,t,n)=>{"use strict";var r=n(82109),o=n(831913),i=n(763702).CONSTRUCTOR,a=n(902492),s=n(435005),c=n(360614),u=n(298052),l=a&&a.prototype;if(r({target:"Promise",proto:!0,forced:i,real:!0},{catch:function(e){return this.then(void 0,e)}}),!o&&c(a)){var d=s("Promise").prototype.catch;l.catch!==d&&u(l,"catch",d,{unsafe:!0})}},343401:(e,t,n)=>{"use strict";var r,o,i,a=n(82109),s=n(831913),c=n(235268),u=n(317854),l=n(246916),d=n(298052),p=n(727674),f=n(158003),h=n(996340),m=n(419662),g=n(360614),y=n(970111),v=n(825787),b=n(136707),_=n(20261).set,w=n(195948),S=n(900842),C=n(412534),k=n(418572),x=n(929909),E=n(902492),O=n(763702),T=n(878523),A="Promise",P=O.CONSTRUCTOR,I=O.REJECTION_EVENT,j=O.SUBCLASSING,L=x.getterFor(A),N=x.set,R=E&&E.prototype,D=E,M=R,F=u.TypeError,U=u.document,B=u.process,$=T.f,H=$,z=!!(U&&U.createEvent&&u.dispatchEvent),q="unhandledrejection",V=function(e){var t;return!(!y(e)||!g(t=e.then))&&t},G=function(e,t){var n,r,o,i=t.value,a=1==t.state,s=a?e.ok:e.fail,c=e.resolve,u=e.reject,d=e.domain;try{s?(a||(2===t.rejection&&Z(t),t.rejection=1),!0===s?n=i:(d&&d.enter(),n=s(i),d&&(d.exit(),o=!0)),n===e.promise?u(F("Promise-chain cycle")):(r=V(n))?l(r,n,c,u):c(n)):u(i)}catch(e){d&&!o&&d.exit(),u(e)}},W=function(e,t){e.notified||(e.notified=!0,w((function(){for(var n,r=e.reactions;n=r.get();)G(n,e);e.notified=!1,t&&!e.rejection&&K(e)})))},Y=function(e,t,n){var r,o;z?((r=U.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},!I&&(o=u["on"+e])?o(r):e===q&&S("Unhandled promise rejection",n)},K=function(e){l(_,u,(function(){var t,n=e.facade,r=e.value;if(J(e)&&(t=C((function(){c?B.emit("unhandledRejection",r,n):Y(q,n,r)})),e.rejection=c||J(e)?2:1,t.error))throw t.value}))},J=function(e){return 1!==e.rejection&&!e.parent},Z=function(e){l(_,u,(function(){var t=e.facade;c?B.emit("rejectionHandled",t):Y("rejectionhandled",t,e.value)}))},X=function(e,t,n){return function(r){e(t,r,n)}},Q=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,W(e,!0))},ee=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw F("Promise can't be resolved itself");var r=V(t);r?w((function(){var n={done:!1};try{l(r,t,X(ee,n,e),X(Q,n,e))}catch(t){Q(n,t,e)}})):(e.value=t,e.state=1,W(e,!1))}catch(t){Q({done:!1},t,e)}}};if(P&&(M=(D=function(e){v(this,M),m(e),l(r,this);var t=L(this);try{e(X(ee,t),X(Q,t))}catch(e){Q(t,e)}}).prototype,(r=function(e){N(this,{type:A,done:!1,notified:!1,parent:!1,reactions:new k,rejection:!1,state:0,value:void 0})}).prototype=d(M,"then",(function(e,t){var n=L(this),r=$(b(this,D));return n.parent=!0,r.ok=!g(e)||e,r.fail=g(t)&&t,r.domain=c?B.domain:void 0,0==n.state?n.reactions.add(r):w((function(){G(r,n)})),r.promise})),o=function(){var e=new r,t=L(e);this.promise=e,this.resolve=X(ee,t),this.reject=X(Q,t)},T.f=$=function(e){return e===D||void 0===e?new o(e):H(e)},!s&&g(E)&&R!==Object.prototype)){i=R.then,j||d(R,"then",(function(e,t){var n=this;return new D((function(e,t){l(i,n,e,t)})).then(e,t)}),{unsafe:!0});try{delete R.constructor}catch(e){}p&&p(R,M)}a({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:D}),f(D,A,!1,!0),h(A)},117727:(e,t,n)=>{"use strict";var r=n(82109),o=n(831913),i=n(902492),a=n(747293),s=n(435005),c=n(360614),u=n(136707),l=n(569478),d=n(298052),p=i&&i.prototype;if(r({target:"Promise",proto:!0,real:!0,forced:!!i&&a((function(){p.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=u(this,s("Promise")),n=c(e);return this.then(n?function(n){return l(t,e()).then((function(){return n}))}:e,n?function(n){return l(t,e()).then((function(){throw n}))}:e)}}),!o&&c(i)){var f=s("Promise").prototype.finally;p.finally!==f&&d(p,"finally",f,{unsafe:!0})}},788674:(e,t,n)=>{n(343401),n(870821),n(94164),n(406027),n(660683),n(896294)},406027:(e,t,n)=>{"use strict";var r=n(82109),o=n(246916),i=n(419662),a=n(878523),s=n(412534),c=n(720408);r({target:"Promise",stat:!0,forced:n(880612)},{race:function(e){var t=this,n=a.f(t),r=n.reject,u=s((function(){var a=i(t.resolve);c(e,(function(e){o(a,t,e).then(n.resolve,r)}))}));return u.error&&r(u.value),n.promise}})}
2,660683:(e,t,n)=>{"use strict";var r=n(82109),o=n(246916),i=n(878523);r({target:"Promise",stat:!0,forced:n(763702).CONSTRUCTOR},{reject:function(e){var t=i.f(this);return o(t.reject,void 0,e),t.promise}})},896294:(e,t,n)=>{"use strict";var r=n(82109),o=n(435005),i=n(831913),a=n(902492),s=n(763702).CONSTRUCTOR,c=n(569478),u=o("Promise"),l=i&&!s;r({target:"Promise",stat:!0,forced:i||s},{resolve:function(e){return c(l&&this===u?a:this,e)}})},536535:(e,t,n)=>{var r=n(82109),o=n(522104),i=n(419662),a=n(919670);r({target:"Reflect",stat:!0,forced:!n(747293)((function(){Reflect.apply((function(){}))}))},{apply:function(e,t,n){return o(i(e),t,a(n))}})},912419:(e,t,n)=>{var r=n(82109),o=n(435005),i=n(522104),a=n(427065),s=n(239483),c=n(919670),u=n(970111),l=n(70030),d=n(747293),p=o("Reflect","construct"),f=Object.prototype,h=[].push,m=d((function(){function e(){}return!(p((function(){}),[],e)instanceof e)})),g=!d((function(){p((function(){}))})),y=m||g;r({target:"Reflect",stat:!0,forced:y,sham:y},{construct:function(e,t){s(e),c(t);var n=arguments.length<3?e:s(arguments[2]);if(g&&!m)return p(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return i(h,r,t),new(i(a,e,r))}var o=n.prototype,d=l(u(o)?o:f),y=i(e,d,t);return u(y)?y:d}})},569596:(e,t,n)=>{var r=n(82109),o=n(919781),i=n(919670),a=n(734948),s=n(403070);r({target:"Reflect",stat:!0,forced:n(747293)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!o},{defineProperty:function(e,t,n){i(e);var r=a(t);i(n);try{return s.f(e,r,n),!0}catch(e){return!1}}})},252586:(e,t,n)=>{var r=n(82109),o=n(919670),i=n(231236).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},595683:(e,t,n)=>{var r=n(82109),o=n(919781),i=n(919670),a=n(231236);r({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},839361:(e,t,n)=>{var r=n(82109),o=n(919670),i=n(579518);r({target:"Reflect",stat:!0,sham:!n(849920)},{getPrototypeOf:function(e){return i(o(e))}})},674819:(e,t,n)=>{var r=n(82109),o=n(246916),i=n(970111),a=n(919670),s=n(45032),c=n(231236),u=n(579518);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,l,d=arguments.length<3?t:arguments[2];return a(t)===d?t[n]:(r=c.f(t,n))?s(r)?r.value:void 0===r.get?void 0:o(r.get,d):i(l=u(t))?e(l,n,d):void 0}})},151037:(e,t,n)=>{n(82109)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},305898:(e,t,n)=>{var r=n(82109),o=n(919670),i=n(852050);r({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),i(e)}})},267556:(e,t,n)=>{n(82109)({target:"Reflect",stat:!0},{ownKeys:n(53887)})},914361:(e,t,n)=>{var r=n(82109),o=n(435005),i=n(919670);r({target:"Reflect",stat:!0,sham:!n(876677)},{preventExtensions:function(e){i(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(e){return!1}}})},539532:(e,t,n)=>{var r=n(82109),o=n(919670),i=n(496077),a=n(727674);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),i(t);try{return a(e,t),!0}catch(e){return!1}}})},683593:(e,t,n)=>{var r=n(82109),o=n(246916),i=n(919670),a=n(970111),s=n(45032),c=n(747293),u=n(403070),l=n(231236),d=n(579518),p=n(679114);r({target:"Reflect",stat:!0,forced:c((function(){var e=function(){},t=u.f(new e,"a",{configurable:!0});return!1!==Reflect.set(e.prototype,"a",1,t)}))},{set:function e(t,n,r){var c,f,h,m=arguments.length<4?t:arguments[3],g=l.f(i(t),n);if(!g){if(a(f=d(t)))return e(f,n,r,m);g=p(0)}if(s(g)){if(!1===g.writable||!a(m))return!1;if(c=l.f(m,n)){if(c.get||c.set||!1===c.writable)return!1;c.value=r,u.f(m,n,c)}else u.f(m,n,p(0,r))}else{if(void 0===(h=g.set))return!1;o(h,m,r)}return!0}})},481299:(e,t,n)=>{var r=n(82109),o=n(317854),i=n(158003);r({global:!0},{Reflect:{}}),i(o.Reflect,"Reflect",!0)},324603:(e,t,n)=>{var r=n(919781),o=n(317854),i=n(901702),a=n(554705),s=n(979587),c=n(168880),u=n(308006).f,l=n(347976),d=n(247850),p=n(141340),f=n(534706),h=n(852999),m=n(402626),g=n(298052),y=n(747293),v=n(892597),b=n(929909).enforce,_=n(996340),w=n(605112),S=n(309441),C=n(38173),k=w("match"),x=o.RegExp,E=x.prototype,O=o.SyntaxError,T=i(E.exec),A=i("".charAt),P=i("".replace),I=i("".indexOf),j=i("".slice),L=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,N=/a/g,R=/a/g,D=new x(N)!==N,M=h.MISSED_STICKY,F=h.UNSUPPORTED_Y;if(a("RegExp",r&&(!D||M||S||C||y((function(){return R[k]=!1,x(N)!=N||x(R)==R||"/a/i"!=x(N,"i")}))))){for(var U=function(e,t){var n,r,o,i,a,u,h=l(E,this),m=d(e),g=void 0===t,y=[],_=e;if(!h&&m&&g&&e.constructor===U)return e;if((m||l(E,e))&&(e=e.source,g&&(t=f(_))),e=void 0===e?"":p(e),t=void 0===t?"":p(t),_=e,S&&"dotAll"in N&&(r=!!t&&I(t,"s")>
2-1)&&(t=P(t,/s/g,"")),n=t,M&&"sticky"in N&&(o=!!t&&I(t,"y")>-1)&&F&&(t=P(t,/y/g,"")),C&&(i=function(e){for(var t,n=e.length,r=0,o="",i=[],a={},s=!1,c=!1,u=0,l="";r<=n;r++){if("\\"===(t=A(e,r)))t+=A(e,++r);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:T(L,j(e,r+1))&&(r+=2,c=!0),o+=t,u++;continue;case">"===t&&c:if(""===l||v(a,l))throw new O("Invalid capture group name");a[l]=!0,i[i.length]=[l,u],c=!1,l="";continue}c?l+=t:o+=t}return[o,i]}(e),e=i[0],y=i[1]),a=s(x(e,t),h?this:E,U),(r||o||y.length)&&(u=b(a),r&&(u.dotAll=!0,u.raw=U(function(e){for(var t,n=e.length,r=0,o="",i=!1;r<=n;r++)"\\"!==(t=A(e,r))?i||"."!==t?("["===t?i=!0:"]"===t&&(i=!1),o+=t):o+="[\\s\\S]":o+=t+A(e,++r);return o}(e),n)),o&&(u.sticky=!0),y.length&&(u.groups=y)),e!==_)try{c(a,"source",""===_?"(?:)":_)}catch(e){}return a},B=u(x),$=0;B.length>$;)m(U,x,B[$++]);E.constructor=U,U.prototype=E,g(o,"RegExp",U,{constructor:!0})}_("RegExp")},628450:(e,t,n)=>{var r=n(919781),o=n(309441),i=n(884326),a=n(447045),s=n(929909).get,c=RegExp.prototype,u=TypeError;r&&o&&a(c,"dotAll",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!s(this).dotAll;throw u("Incompatible receiver, RegExp required")}}})},974916:(e,t,n)=>{"use strict";var r=n(82109),o=n(722261);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},292087:(e,t,n)=>{var r=n(317854),o=n(919781),i=n(447045),a=n(567066),s=n(747293),c=r.RegExp,u=c.prototype;o&&s((function(){var e=!0;try{c(".","d")}catch(t){e=!1}var t={},n="",r=e?"dgimsy":"gimsy",o=function(e,r){Object.defineProperty(t,e,{get:function(){return n+=r,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(i.hasIndices="d"),i)o(a,i[a]);return Object.getOwnPropertyDescriptor(u,"flags").get.call(t)!==r||n!==r}))&&i(u,"flags",{configurable:!0,get:a})},588386:(e,t,n)=>{var r=n(919781),o=n(852999).MISSED_STICKY,i=n(884326),a=n(447045),s=n(929909).get,c=RegExp.prototype,u=TypeError;r&&o&&a(c,"sticky",{configurable:!0,get:function(){if(this!==c){if("RegExp"===i(this))return!!s(this).sticky;throw u("Incompatible receiver, RegExp required")}}})},477601:(e,t,n)=>{"use strict";n(974916);var r,o,i=n(82109),a=n(246916),s=n(901702),c=n(360614),u=n(970111),l=(r=!1,(o=/[ac]/).exec=function(){return r=!0,/./.exec.apply(this,arguments)},!0===o.test("abc")&&r),d=TypeError,p=s(/./.test);i({target:"RegExp",proto:!0,forced:!l},{test:function(e){var t=this.exec;if(!c(t))return p(this,e);var n=a(t,this,e);if(null!==n&&!u(n))throw new d("RegExp exec method returned something other than an Object or null");return!!n}})},339714:(e,t,n)=>{"use strict";var r=n(676530).PROPER,o=n(298052),i=n(919670),a=n(141340),s=n(747293),c=n(534706),u="toString",l=RegExp.prototype.toString,d=s((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),p=r&&l.name!=u;(d||p)&&o(RegExp.prototype,u,(function(){var e=i(this);return"/"+a(e.source)+"/"+a(c(e))}),{unsafe:!0})},237227:(e,t,n)=>{"use strict";n(277710)("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(495631))},470189:(e,t,n)=>{n(237227)},815218:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},324506:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(784488),a=n(19303),s=n(141340),c=n(747293),u=o("".charAt);r({target:"String",proto:!0,forced:c((function(){return"\ud842"!=="ð ®·".at(-2)}))},{at:function(e){var t=s(i(this)),n=t.length,r=a(e),o=r>=0?r:n+r;return o<0||o>=n?void 0:u(t,o)}})},574475:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("big")},{big:function(){return o(this,"big","","")}})},357929:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("blink")},{blink:function(){return o(this,"blink","","")}})},850915:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("bold")},{bold:function(){return o(this,"b","","")}})},579841:(e,t,n)=>{"use strict";var r=n(82109),o=n(128710).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})}
2,327852:(e,t,n)=>{"use strict";var r,o=n(82109),i=n(901702),a=n(231236).f,s=n(717466),c=n(141340),u=n(303929),l=n(784488),d=n(484964),p=n(831913),f=i("".endsWith),h=i("".slice),m=Math.min,g=d("endsWith");o({target:"String",proto:!0,forced:!(!p&&!g&&(r=a(String.prototype,"endsWith"),r&&!r.writable)||g)},{endsWith:function(e){var t=c(l(this));u(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,o=void 0===n?r:m(s(n),r),i=c(e);return f?f(t,i,o):h(t,o-i.length,o)===i}})},729253:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("fixed")},{fixed:function(){return o(this,"tt","","")}})},342125:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},678830:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},94953:(e,t,n)=>{var r=n(82109),o=n(901702),i=n(951400),a=RangeError,s=String.fromCharCode,c=String.fromCodePoint,u=o([].join);r({target:"String",stat:!0,arity:1,forced:!!c&&1!=c.length},{fromCodePoint:function(e){for(var t,n=[],r=arguments.length,o=0;r>o;){if(t=+arguments[o++],i(t,1114111)!==t)throw a(t+" is not a valid code point");n[o]=t<65536?s(t):s(55296+((t-=65536)>>10),t%1024+56320)}return u(n,"")}})},132023:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(303929),a=n(784488),s=n(141340),c=n(484964),u=o("".indexOf);r({target:"String",proto:!0,forced:!c("includes")},{includes:function(e){return!!~u(s(a(this)),s(i(e)),arguments.length>1?arguments[1]:void 0)}})},958734:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("italics")},{italics:function(){return o(this,"i","","")}})},978783:(e,t,n)=>{"use strict";var r=n(128710).charAt,o=n(141340),i=n(929909),a=n(970654),s="String Iterator",c=i.set,u=i.getterFor(s);a(String,"String",(function(e){c(this,{type:s,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?{value:void 0,done:!0}:(e=r(n,o),t.index+=e.length,{value:e,done:!1})}))}
2,229254:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("link")},{link:function(e){return o(this,"a","href",e)}})},576373:(e,t,n)=>{"use strict";var r=n(82109),o=n(246916),i=n(901702),a=n(324994),s=n(784488),c=n(717466),u=n(141340),l=n(919670),d=n(884326),p=n(247850),f=n(534706),h=n(158173),m=n(298052),g=n(747293),y=n(605112),v=n(136707),b=n(631530),_=n(597651),w=n(929909),S=n(831913),C=y("matchAll"),k="RegExp String Iterator",x=w.set,E=w.getterFor(k),O=RegExp.prototype,T=TypeError,A=i("".indexOf),P=i("".matchAll),I=!!P&&!g((function(){P("a",/./)})),j=a((function(e,t,n,r){x(this,{type:k,regexp:e,string:t,global:n,unicode:r,done:!1})}),"RegExp String",(function(){var e=E(this);if(e.done)return{value:void 0,done:!0};var t=e.regexp,n=e.string,r=_(t,n);return null===r?{value:void 0,done:e.done=!0}:e.global?(""===u(r[0])&&(t.lastIndex=b(n,c(t.lastIndex),e.unicode)),{value:r,done:!1}):(e.done=!0,{value:r,done:!1})})),L=function(e){var t,n,r,o=l(this),i=u(e),a=v(o,RegExp),s=u(f(o));return t=new a(a===RegExp?o.source:o,s),n=!!~A(s,"g"),r=!!~A(s,"u"),t.lastIndex=c(o.lastIndex),new j(t,i,n,r)};r({target:"String",proto:!0,forced:I},{matchAll:function(e){var t,n,r,i,a=s(this);if(null!=e){if(p(e)&&(t=u(s(f(e))),!~A(t,"g")))throw T("`.matchAll` does not allow non-global regexes");if(I)return P(a,e);if(void 0===(r=h(e,C))&&S&&"RegExp"==d(e)&&(r=L),r)return o(r,e,a)}else if(I)return P(a,e);return n=u(a),i=new RegExp(e,"g"),S?o(L,i,n):i[C](n)}}),S||C in O||m(O,C,L)},804723:(e,t,n)=>{"use strict";var r=n(246916),o=n(227007),i=n(919670),a=n(717466),s=n(141340),c=n(784488),u=n(158173),l=n(631530),d=n(597651);o("match",(function(e,t,n){return[function(t){var n=c(this),o=null==t?void 0:u(t,e);return o?r(o,t,n):new RegExp(t)[e](s(n))},function(e){var r=i(this),o=s(e),c=n(t,r,o);if(c.done)return c.value;if(!r.global)return d(r,o);var u=r.unicode;r.lastIndex=0;for(var p,f=[],h=0;null!==(p=d(r,o));){var m=s(p[0]);f[h]=m,""===m&&(r.lastIndex=l(o,a(r.lastIndex),u)),h++}return 0===h?null:f}]}))},66528:(e,t,n)=>{"use strict";var r=n(82109),o=n(976650).end;r({target:"String",proto:!0,forced:n(654986)},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},483112:(e,t,n)=>{"use strict";var r=n(82109),o=n(976650).start;r({target:"String",proto:!0,forced:n(654986)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},938992:(e,t,n)=>{var r=n(82109),o=n(901702),i=n(45656),a=n(747908),s=n(141340),c=n(426244),u=o([].push),l=o([].join);r({target:"String",stat:!0},{raw:function(e){for(var t=i(a(e).raw),n=c(t),r=arguments.length,o=[],d=0;n>d;){if(u(o,s(t[d++])),d===n)return l(o,"");d<r&&u(o,s(arguments[d]))}}})},482481:(e,t,n)=>{n(82109)({target:"String",proto:!0},{repeat:n(338415)})},568757:(e,t,n)=>{"use strict";var r=n(82109),o=n(246916),i=n(901702),a=n(784488),s=n(360614),c=n(247850),u=n(141340),l=n(158173),d=n(534706),p=n(10647),f=n(605112),h=n(831913),m=f("replace"),g=TypeError,y=i("".indexOf),v=i("".replace),b=i("".slice),_=Math.max,w=function(e,t,n){return n>e.length?-1:""===t?n:y(e,t,n)};r({target:"String",proto:!0},{replaceAll:function(e,t){var n,r,i,f,S,C,k,x,E,O=a(this),T=0,A=0,P="";if(null!=e){if((n=c(e))&&(r=u(a(d(e))),!~y(r,"g")))throw g("`.replaceAll` does not allow non-global regexes");if(i=l(e,m))return o(i,e,O,t);if(h&&n)return v(u(O),e,t)}for(f=u(O),S=u(e),(C=s(t))||(t=u(t)),k=S.length,x=_(1,k),T=w(f,S,0);-1!==T;)E=C?u(t(S,T,f)):p(S,f,T,[],void 0,t),P+=b(f,A,T)+E,A=T+k,T=w(f,S,T+x);return A<f.length&&(P+=b(f,A)),P}})},115306:(e,t,n)=>{"use strict";var r=n(522104),o=n(246916),i=n(901702),a=n(227007),s=n(747293),c=n(919670),u=n(360614),l=n(19303),d=n(717466),p=n(141340),f=n(784488),h=n(631530),m=n(158173),g=n(10647),y=n(597651),v=n(605112)("replace"),b=Math.max,_=Math.min,w=i([].concat),S=i([].push),C=i("".indexOf),k=i("".slice),x="$0"==="a".replace(/./,"$0"),E=!!/./[v]&&""===/./[v]("a","$0");a("replace",(function(e,t,n){var i=E?"$":"$0";return[function(e,n){var r=f(this),i=null==e?void 0:m(e,v);return i?o(i,e,r,n):o(t,p(r),e,n)},function(e,o){var a=c(this),s=p(e);if("string"==typeof o&&-1===C(o,i)&&-1===C(o,"$<")){var f=n(t,a,s,o);if(f.done)return f.value}var m=u(o);m||(o=p(o));var v=a.global;if(v){var x=a.unicode;a.lastIndex=0}for(var E=[];;){var O=y(a,s);if(null===O)break;
vendor: 4,239 bytes, line 2
2if(S(E,O),!v)break;""===p(O[0])&&(a.lastIndex=h(s,d(a.lastIndex),x))}for(var T,A="",P=0,I=0;I<E.length;I++){for(var j=p((O=E[I])[0]),L=b(_(l(O.index),s.length),0),N=[],R=1;R<O.length;R++)S(N,void 0===(T=O[R])?T:String(T));var D=O.groups;if(m){var M=w([j],N,L,s);void 0!==D&&S(M,D);var F=p(r(o,void 0,M))}else F=g(j,s,L,N,D,o);L>=P&&(A+=k(s,P,L)+F,P=L+j.length)}return A+k(s,P)}]}),!!s((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}))||!x||E)},864765:(e,t,n)=>{"use strict";var r=n(246916),o=n(227007),i=n(919670),a=n(784488),s=n(281150),c=n(141340),u=n(158173),l=n(597651);o("search",(function(e,t,n){return[function(t){var n=a(this),o=null==t?void 0:u(t,e);return o?r(o,t,n):new RegExp(t)[e](c(n))},function(e){var r=i(this),o=c(e),a=n(t,r,o);if(a.done)return a.value;var u=r.lastIndex;s(u,0)||(r.lastIndex=0);var d=l(r,o);return s(r.lastIndex,u)||(r.lastIndex=u),null===d?-1:d.index}]}))},37268:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("small")},{small:function(){return o(this,"small","","")}})},323123:(e,t,n)=>{"use strict";var r=n(522104),o=n(246916),i=n(901702),a=n(227007),s=n(247850),c=n(919670),u=n(784488),l=n(136707),d=n(631530),p=n(717466),f=n(141340),h=n(158173),m=n(941589),g=n(597651),y=n(722261),v=n(852999),b=n(747293),_=v.UNSUPPORTED_Y,w=4294967295,S=Math.min,C=[].push,k=i(/./.exec),x=i(C),E=i("".slice);a("split",(function(e,t,n){var i;return i="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,n){var i=f(u(this)),a=void 0===n?w:n>>>0;if(0===a)return[];if(void 0===e)return[i];if(!s(e))return o(t,i,e,a);for(var c,l,d,p=[],h=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),g=0,v=new RegExp(e.source,h+"g");(c=o(y,v,i))&&!((l=v.lastIndex)>g&&(x(p,E(i,g,c.index)),c.length>1&&c.index<i.length&&r(C,p,m(c,1)),d=c[0].length,g=l,p.length>=a));)v.lastIndex===c.index&&v.lastIndex++;return g===i.length?!d&&k(v,"")||x(p,""):x(p,E(i,g)),p.length>a?m(p,0,a):p}:"0".split(void 0,0).length?function(e,n){return void 0===e&&0===n?[]:o(t,this,e,n)}:t,[function(t,n){var r=u(this),a=null==t?void 0:h(t,e);return a?o(a,t,r,n):o(i,f(r),t,n)},function(e,r){var o=c(this),a=f(e),s=n(i,o,a,r,i!==t);if(s.done)return s.value;var u=l(o,RegExp),h=o.unicode,m=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(_?"g":"y"),y=new u(_?"^(?:"+o.source+")":o,m),v=void 0===r?w:r>>>0;if(0===v)return[];if(0===a.length)return null===g(y,a)?[a]:[];for(var b=0,C=0,k=[];C<a.length;){y.lastIndex=_?0:C;var O,T=g(y,_?E(a,C):a);if(null===T||(O=S(p(y.lastIndex+(_?C:0)),a.length))===b)C=d(a,C,h);else{if(x(k,E(a,b,C)),k.length===v)return k;for(var A=1;A<=T.length-1;A++)if(x(k,T[A]),k.length===v)return k;C=b=O}}return x(k,E(a,b)),k}]}),!!b((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),_)},923157:(e,t,n)=>{"use strict";var r,o=n(82109),i=n(901702),a=n(231236).f,s=n(717466),c=n(141340),u=n(303929),l=n(784488),d=n(484964),p=n(831913),f=i("".startsWith),h=i("".slice),m=Math.min,g=d("startsWith");o({target:"String",proto:!0,forced:!(!p&&!g&&(r=a(String.prototype,"startsWith"),r&&!r.writable)||g)},{startsWith:function(e){var t=c(l(this));u(e);var n=s(m(arguments.length>1?arguments[1]:void 0,t.length)),r=c(e);return f?f(t,r,n):h(t,n,n+r.length)===r}})},407397:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("strike")},{strike:function(){return o(this,"strike","","")}})},860086:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("sub")},{sub:function(){return o(this,"sub","","")}})},83650:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(784488),a=n(19303),s=n(141340),c=o("".slice),u=Math.max,l=Math.min;r({target:"String",proto:!0,forced:!"".substr||"b"!=="ab".substr(-1)},{substr:function(e,t){var n,r,o=s(i(this)),d=o.length,p=a(e);return p===1/0&&(p=0),p<0&&(p=u(d+p,0)),(n=void 0===t?d:a(t))<=0||n===1/0||p>=(r=l(p+n,d))?"":c(o,p,r)}})}
vendor: 4,674 bytes, line 2
2,880623:(e,t,n)=>{"use strict";var r=n(82109),o=n(414230);r({target:"String",proto:!0,forced:n(343429)("sup")},{sup:function(){return o(this,"sup","","")}})},348702:(e,t,n)=>{n(483462);var r=n(82109),o=n(210365);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimEnd!==o},{trimEnd:o})},199967:(e,t,n)=>{var r=n(82109),o=n(33217);r({target:"String",proto:!0,name:"trimStart",forced:"".trimLeft!==o},{trimLeft:o})},483462:(e,t,n)=>{var r=n(82109),o=n(210365);r({target:"String",proto:!0,name:"trimEnd",forced:"".trimRight!==o},{trimRight:o})},455674:(e,t,n)=>{n(199967);var r=n(82109),o=n(33217);r({target:"String",proto:!0,name:"trimStart",forced:"".trimStart!==o},{trimStart:o})},573210:(e,t,n)=>{"use strict";var r=n(82109),o=n(453111).trim;r({target:"String",proto:!0,forced:n(776091)("trim")},{trim:function(){return o(this)}})},472443:(e,t,n)=>{n(497235)("asyncIterator")},304032:(e,t,n)=>{"use strict";var r=n(82109),o=n(317854),i=n(246916),a=n(901702),s=n(831913),c=n(919781),u=n(130133),l=n(747293),d=n(892597),p=n(347976),f=n(919670),h=n(45656),m=n(734948),g=n(141340),y=n(679114),v=n(70030),b=n(181956),_=n(308006),w=n(501156),S=n(525181),C=n(231236),k=n(403070),x=n(536048),E=n(755296),O=n(298052),T=n(672309),A=n(306200),P=n(703501),I=n(269711),j=n(605112),L=n(506061),N=n(497235),R=n(356532),D=n(158003),M=n(929909),F=n(842092).forEach,U=A("hidden"),B="Symbol",$=M.set,H=M.getterFor(B),z=Object.prototype,q=o.Symbol,V=q&&q.prototype,G=o.TypeError,W=o.QObject,Y=C.f,K=k.f,J=w.f,Z=E.f,X=a([].push),Q=T("symbols"),ee=T("op-symbols"),te=T("wks"),ne=!W||!W.prototype||!W.prototype.findChild,re=c&&l((function(){return 7!=v(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=Y(z,t);r&&delete z[t],K(e,t,n),r&&e!==z&&K(z,t,r)}:K,oe=function(e,t){var n=Q[e]=v(V);return $(n,{type:B,tag:e,description:t}),c||(n.description=t),n},ie=function(e,t,n){e===z&&ie(ee,t,n),f(e);var r=m(t);return f(n),d(Q,r)?(n.enumerable?(d(e,U)&&e[U][r]&&(e[U][r]=!1),n=v(n,{enumerable:y(0,!1)})):(d(e,U)||K(e,U,y(1,{})),e[U][r]=!0),re(e,r,n)):K(e,r,n)},ae=function(e,t){f(e);var n=h(t),r=b(n).concat(le(n));return F(r,(function(t){c&&!i(se,n,t)||ie(e,t,n[t])})),e},se=function(e){var t=m(e),n=i(Z,this,t);return!(this===z&&d(Q,t)&&!d(ee,t))&&(!(n||!d(this,t)||!d(Q,t)||d(this,U)&&this[U][t])||n)},ce=function(e,t){var n=h(e),r=m(t);if(n!==z||!d(Q,r)||d(ee,r)){var o=Y(n,r);return!o||!d(Q,r)||d(n,U)&&n[U][r]||(o.enumerable=!0),o}},ue=function(e){var t=J(h(e)),n=[];return F(t,(function(e){d(Q,e)||d(P,e)||X(n,e)})),n},le=function(e){var t=e===z,n=J(t?ee:h(e)),r=[];return F(n,(function(e){!d(Q,e)||t&&!d(z,e)||X(r,Q[e])})),r};u||(O(V=(q=function(){if(p(V,this))throw G("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,t=I(e),n=function(e){this===z&&i(n,ee,e),d(this,U)&&d(this[U],t)&&(this[U][t]=!1),re(this,t,y(1,e))};return c&&ne&&re(z,t,{configurable:!0,set:n}),oe(t,e)}).prototype,"toString",(function(){return H(this).tag})),O(q,"withoutSetter",(function(e){return oe(I(e),e)})),E.f=se,k.f=ie,x.f=ae,C.f=ce,_.f=w.f=ue,S.f=le,L.f=function(e){return oe(j(e),e)},c&&(K(V,"description",{configurable:!0,get:function(){return H(this).description}}),s||O(z,"propertyIsEnumerable",se,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:q}),F(b(te),(function(e){N(e)})),r({target:B,stat:!0,forced:!u},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:function(e,t){return void 0===t?v(e):ae(v(e),t)},defineProperty:ie,defineProperties:ae,getOwnPropertyDescriptor:ce}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ue}),R(),D(q,B),P[U]=!0},141817:(e,t,n)=>{"use strict";var r=n(82109),o=n(919781),i=n(317854),a=n(901702),s=n(892597),c=n(360614),u=n(347976),l=n(141340),d=n(403070).f,p=n(99920),f=i.Symbol,h=f&&f.prototype;if(o&&c(f)&&(!("description"in h)||void 0!==f().description)){var m={},g=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:l(arguments[0]),t=u(h,this)?new f(e):void 0===e?f():f(e);return""===e&&(m[t]=!0),t};p(g,f),g.prototype=h,h.constructor=g;var y="Symbol(test)"==String(f("test")),v=a(h.toString),b=a(h.valueOf),_=/^Symbol\((.*)\)[^)]+$/,w=a("".replace),S=a("".slice);d(h,"description",{configurable:!0,get:function(){var e=b(this),t=v(e);if(s(m,e))return"";var n=y?S(t,7,-1):w(t,_,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:g})}},40763:(e,t,n)=>{var r=n(82109),o=n(435005),i=n(892597),a=n(141340),s=n(672309),c=n(830735),u=s("string-to-symbol-registry"),l=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c}
2,{for:function(e){var t=a(e);if(i(u,t))return u[t];var n=o("Symbol")(t);return u[t]=n,l[n]=t,n}})},692401:(e,t,n)=>{n(497235)("hasInstance")},908722:(e,t,n)=>{n(497235)("isConcatSpreadable")},932165:(e,t,n)=>{n(497235)("iterator")},382526:(e,t,n)=>{n(304032),n(40763),n(926620),n(838862),n(29660)},926620:(e,t,n)=>{var r=n(82109),o=n(892597),i=n(952190),a=n(266330),s=n(672309),c=n(830735),u=s("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(a(e)+" is not a symbol");if(o(u,e))return u[e]}})},716066:(e,t,n)=>{n(497235)("matchAll")},469007:(e,t,n)=>{n(497235)("match")},483510:(e,t,n)=>{n(497235)("replace")},841840:(e,t,n)=>{n(497235)("search")},706982:(e,t,n)=>{n(497235)("species")},32159:(e,t,n)=>{n(497235)("split")},696649:(e,t,n)=>{var r=n(497235),o=n(356532);r("toPrimitive"),o()},639341:(e,t,n)=>{var r=n(435005),o=n(497235),i=n(158003);o("toStringTag"),i(r("Symbol"),"Symbol")},660543:(e,t,n)=>{n(497235)("unscopables")},348675:(e,t,n)=>{"use strict";var r=n(690260),o=n(426244),i=n(19303),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("at",(function(e){var t=a(this),n=o(t),r=i(e),s=r>=0?r:n+r;return s<0||s>=n?void 0:t[s]}))},692990:(e,t,n)=>{"use strict";var r=n(901702),o=n(690260),i=r(n(601048)),a=o.aTypedArray;(0,o.exportTypedArrayMethod)("copyWithin",(function(e,t){return i(a(this),e,t,arguments.length>2?arguments[2]:void 0)}))},718927:(e,t,n)=>{"use strict";var r=n(690260),o=n(842092).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},533105:(e,t,n)=>{"use strict";var r=n(690260),o=n(721285),i=n(664599),a=n(870648),s=n(246916),c=n(901702),u=n(747293),l=r.aTypedArray,d=r.exportTypedArrayMethod,p=c("".slice);d("fill",(function(e){var t=arguments.length;l(this);var n="Big"===p(a(this),0,3)?i(e):+e;return s(o,this,n,t>1?arguments[1]:void 0,t>2?arguments[2]:void 0)}),u((function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e})))},335035:(e,t,n)=>{"use strict";var r=n(690260),o=n(842092).filter,i=n(443074),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("filter",(function(e){var t=o(a(this),e,arguments.length>1?arguments[1]:void 0);return i(this,t)}))},507174:(e,t,n)=>{"use strict";var r=n(690260),o=n(842092).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},614590:(e,t,n)=>{"use strict";var r=n(690260),o=n(9671).findLastIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLastIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},863408:(e,t,n)=>{"use strict";var r=n(690260),o=n(9671).findLast,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findLast",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},274345:(e,t,n)=>{"use strict";var r=n(690260),o=n(842092).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},444197:(e,t,n)=>{n(519843)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},76495:(e,t,n)=>{n(519843)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},632846:(e,t,n)=>{"use strict";var r=n(690260),o=n(842092).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},798145:(e,t,n)=>{"use strict";var r=n(163832);(0,n(690260).exportTypedArrayStaticMethod)("from",n(997321),r)},844731:(e,t,n)=>{"use strict";var r=n(690260),o=n(841318).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},677209:(e,t,n)=>{"use strict";var r=n(690260),o=n(841318).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},535109:(e,t,n)=>{n(519843)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},365125:(e,t,n)=>{n(519843)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},587145:(e,t,n)=>{n(519843)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},96319:(e,t,n)=>{"use strict";var r=n(317854),o=n(747293),i=n(901702),a=n(690260),s=n(66992),c=n(605112)("iterator"),u=r.Uint8Array,l=i(s.values),d=i(s.keys),p=i(s.entries),f=a.aTypedArray,h=a.exportTypedArrayMethod,m=u&&u.prototype,g=!o((function(){m[c].call([1])})),y=!!m&&m.values&&m[c]===m.values&&"values"===m.values.name,v=function(){return l(f(this))};h("entries",(function(){return p(f(this))}),g),h("keys",(function(){return d(f(this))}),g),h("values",v,g||!y,{name:"values"}),h(c,v,g||!y,{name:"values"})},958867:(e,t,n)=>{"use strict";var r=n(690260),o=n(901702),i=r.aTypedArray,a=r.exportTypedArrayMethod,s=o([].join);a("join",(function(e){return s(i(this),e)}))}
vendor: 4,353 bytes, line 2
2,737789:(e,t,n)=>{"use strict";var r=n(690260),o=n(522104),i=n(386583),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){var t=arguments.length;return o(i,a(this),t>1?[e,arguments[1]]:[e])}))},833739:(e,t,n)=>{"use strict";var r=n(690260),o=n(842092).map,i=n(166304),a=r.aTypedArray;(0,r.exportTypedArrayMethod)("map",(function(e){return o(a(this),e,arguments.length>1?arguments[1]:void 0,(function(e,t){return new(i(e))(t)}))}))},595206:(e,t,n)=>{"use strict";var r=n(690260),o=n(163832),i=r.aTypedArrayConstructor;(0,r.exportTypedArrayStaticMethod)("of",(function(){for(var e=0,t=arguments.length,n=new(i(this))(t);t>e;)n[e]=arguments[e++];return n}),o)},414483:(e,t,n)=>{"use strict";var r=n(690260),o=n(753671).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},629368:(e,t,n)=>{"use strict";var r=n(690260),o=n(753671).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){var t=arguments.length;return o(i(this),e,t,t>1?arguments[1]:void 0)}))},312056:(e,t,n)=>{"use strict";var r=n(690260),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=Math.floor;i("reverse",(function(){for(var e,t=this,n=o(t).length,r=a(n/2),i=0;i<r;)e=t[i],t[i++]=t[--n],t[n]=e;return t}))},103462:(e,t,n)=>{"use strict";var r=n(317854),o=n(246916),i=n(690260),a=n(426244),s=n(784590),c=n(747908),u=n(747293),l=r.RangeError,d=r.Int8Array,p=d&&d.prototype,f=p&&p.set,h=i.aTypedArray,m=i.exportTypedArrayMethod,g=!u((function(){var e=new Uint8ClampedArray(2);return o(f,e,{length:1,0:3},1),3!==e[1]})),y=g&&i.NATIVE_ARRAY_BUFFER_VIEWS&&u((function(){var e=new d(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]}));m("set",(function(e){h(this);var t=s(arguments.length>1?arguments[1]:void 0,1),n=c(e);if(g)return o(f,this,n,t);var r=this.length,i=a(n),u=0;if(i+t>r)throw l("Wrong length");for(;u<i;)this[t+u]=n[u++]}),!g||y)},930678:(e,t,n)=>{"use strict";var r=n(690260),o=n(166304),i=n(747293),a=n(650206),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("slice",(function(e,t){for(var n=a(s(this),e,t),r=o(this),i=0,c=n.length,u=new r(c);c>i;)u[i]=n[i++];return u}),i((function(){new Int8Array(1).slice()})))},627462:(e,t,n)=>{"use strict";var r=n(690260),o=n(842092).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},33824:(e,t,n)=>{"use strict";var r=n(317854),o=n(901702),i=n(747293),a=n(419662),s=n(994362),c=n(690260),u=n(568886),l=n(530256),d=n(507392),p=n(498008),f=c.aTypedArray,h=c.exportTypedArrayMethod,m=r.Uint16Array,g=m&&o(m.prototype.sort),y=!(!g||i((function(){g(new m(2),null)}))&&i((function(){g(new m(2),{})}))),v=!!g&&!i((function(){if(d)return d<74;if(u)return u<67;if(l)return!0;if(p)return p<602;var e,t,n=new m(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(g(n,(function(e,t){return(e/4|0)-(t/4|0)})),e=0;e<516;e++)if(n[e]!==r[e])return!0}));h("sort",(function(e){return void 0!==e&&a(e),v?g(this,e):s(f(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))}),!v||y)},155021:(e,t,n)=>{"use strict";var r=n(690260),o=n(717466),i=n(951400),a=n(166304),s=r.aTypedArray;(0,r.exportTypedArrayMethod)("subarray",(function(e,t){var n=s(this),r=n.length,c=i(e,r);return new(a(n))(n.buffer,n.byteOffset+c*n.BYTES_PER_ELEMENT,o((void 0===t?r:i(t,r))-c))}))},812974:(e,t,n)=>{"use strict";var r=n(317854),o=n(522104),i=n(690260),a=n(747293),s=n(650206),c=r.Int8Array,u=i.aTypedArray,l=i.exportTypedArrayMethod,d=[].toLocaleString,p=!!c&&a((function(){d.call(new c(1))}));l("toLocaleString",(function(){return o(d,p?s(u(this)):u(this),s(arguments))}),a((function(){return[1,2].toLocaleString()!=new c([1,2]).toLocaleString()}))||!a((function(){c.prototype.toLocaleString.call([1,2])})))},915016:(e,t,n)=>{"use strict";var r=n(690260).exportTypedArrayMethod,o=n(747293),i=n(317854),a=n(901702),s=i.Uint8Array,c=s&&s.prototype||{},u=[].toString,l=a([].join);o((function(){u.call({})}))&&(u=function(){return l(this)});var d=c.toString!=u;r("toString",u,d)},408255:(e,t,n)=>{n(519843)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},829135:(e,t,n)=>{n(519843)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))}
2,682472:(e,t,n)=>{n(519843)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},49743:(e,t,n)=>{n(519843)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},478221:(e,t,n)=>{"use strict";var r=n(82109),o=n(901702),i=n(141340),a=String.fromCharCode,s=o("".charAt),c=o(/./.exec),u=o("".slice),l=/^[\da-f]{2}$/i,d=/^[\da-f]{4}$/i;r({global:!0},{unescape:function(e){for(var t,n,r=i(e),o="",p=r.length,f=0;f<p;){if("%"===(t=s(r,f++)))if("u"===s(r,f)){if(n=u(r,f+1,f+5),c(d,n)){o+=a(parseInt(n,16)),f+=5;continue}}else if(n=u(r,f,f+2),c(l,n)){o+=a(parseInt(n,16)),f+=2;continue}o+=t}return o}})},241202:(e,t,n)=>{"use strict";var r,o=n(317854),i=n(901702),a=n(389190),s=n(962423),c=n(277710),u=n(729320),l=n(970111),d=n(852050),p=n(929909).enforce,f=n(468536),h=!o.ActiveXObject&&"ActiveXObject"in o,m=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=c("WeakMap",m,u);if(f&&h){r=u.getConstructor(m,"WeakMap",!0),s.enable();var y=g.prototype,v=i(y.delete),b=i(y.has),_=i(y.get),w=i(y.set);a(y,{delete:function(e){if(l(e)&&!d(e)){var t=p(this);return t.frozen||(t.frozen=new r),v(this,e)||t.frozen.delete(e)}return v(this,e)},has:function(e){if(l(e)&&!d(e)){var t=p(this);return t.frozen||(t.frozen=new r),b(this,e)||t.frozen.has(e)}return b(this,e)},get:function(e){if(l(e)&&!d(e)){var t=p(this);return t.frozen||(t.frozen=new r),b(this,e)?_(this,e):t.frozen.get(e)}return _(this,e)},set:function(e,t){if(l(e)&&!d(e)){var n=p(this);n.frozen||(n.frozen=new r),b(this,e)?w(this,e,t):n.frozen.set(e,t)}else w(this,e,t);return this}})}},104129:(e,t,n)=>{n(241202)},172098:(e,t,n)=>{"use strict";n(277710)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(729320))},838478:(e,t,n)=>{n(172098)},375505:(e,t,n)=>{var r=n(82109),o=n(435005),i=n(901702),a=n(747293),s=n(141340),c=n(892597),u=n(548053),l=n(414170).ctoi,d=/[^\d+/a-z]/i,p=/[\t\n\f\r ]+/g,f=/[=]+$/,h=o("atob"),m=String.fromCharCode,g=i("".charAt),y=i("".replace),v=i(d.exec),b=a((function(){return""!==h(" ")})),_=!a((function(){h("a")})),w=!b&&!_&&!a((function(){h()})),S=!b&&!_&&1!==h.length;r({global:!0,enumerable:!0,forced:b||_||w||S},{atob:function(e){if(u(arguments.length,1),w||S)return h(e);var t,n,r=y(s(e),p,""),i="",a=0,b=0;if(r.length%4==0&&(r=y(r,f,"")),r.length%4==1||v(d,r))throw new(o("DOMException"))("The string is not correctly encoded","InvalidCharacterError");for(;t=g(r,a++);)c(l,t)&&(n=b%4?64*n+l[t]:l[t],b++%4&&(i+=m(255&n>>(-2*b&6))));return i}})},927479:(e,t,n)=>{var r=n(82109),o=n(435005),i=n(901702),a=n(747293),s=n(141340),c=n(548053),u=n(414170).itoc,l=o("btoa"),d=i("".charAt),p=i("".charCodeAt),f=!!l&&!a((function(){l()})),h=!!l&&a((function(){return"bnVsbA=="!==l(null)})),m=!!l&&1!==l.length;r({global:!0,enumerable:!0,forced:f||h||m},{btoa:function(e){if(c(arguments.length,1),f||h||m)return l(s(e));for(var t,n,r=s(e),i="",a=0,g=u;d(r,a)||(g="=",a%1);){if((n=p(r,a+=3/4))>255)throw new(o("DOMException"))("The string contains characters outside of the Latin1 range","InvalidCharacterError");i+=d(g,63&(t=t<<8|n)>>8-a%1*8)}return i}})},811091:(e,t,n)=>{var r=n(82109),o=n(317854),i=n(20261).clear;r({global:!0,bind:!0,enumerable:!0,forced:o.clearImmediate!==i},{clearImmediate:i})},454747:(e,t,n)=>{var r=n(317854),o=n(848324),i=n(598509),a=n(318533),s=n(168880),c=function(e){if(e&&e.forEach!==a)try{s(e,"forEach",a)}catch(t){e.forEach=a}};for(var u in o)o[u]&&c(r[u]&&r[u].prototype);c(i)},333948:(e,t,n)=>{var r=n(317854),o=n(848324),i=n(598509),a=n(66992),s=n(168880),c=n(605112),u=c("iterator"),l=c("toStringTag"),d=a.values,p=function(e,t){if(e){if(e[u]!==d)try{s(e,u,d)}catch(t){e[u]=d}if(e[l]||s(e,l,t),o[t])for(var n in a)if(e[n]!==a[n])try{s(e,n,a[n])}catch(t){e[n]=a[n]}}};for(var f in o)p(r[f]&&r[f].prototype,f);p(i,"DOMTokenList")},487714:(e,t,n)=>{"use strict";var r=n(82109),o=n(844038),i=n(435005),a=n(747293),s=n(70030),c=n(679114),u=n(403070).f,l=n(298052),d=n(447045),p=n(892597),f=n(825787),h=n(919670),m=n(607762),g=n(856277),y=n(593678),v=n(877741),b=n(929909),_=n(919781),w=n(831913),S="DOMException",C=i("Error"),k=i(S)||function(){try{(new(i("MessageChannel")||o("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if("DATA_CLONE_ERR"==e.name&&25==e.code)return e.constructor}}(),x=k&&k.prototype,E=C.prototype,O=b.set,T=b.getterFor(S),A="stack"in C(S),P=function(e){return p(y,e)&&y[e].m?y[e].c:0},I=function(){f(this,j);var e=arguments.length,t=g(e<1?void 0:arguments[0]),n=g(e<2?void 0:arguments[1],"Error"),r=P(n);if(O(this,{type:S,name:n,message:t,code:r}
vendor: 8,184 bytes, line 2
2),_||(this.name=n,this.message=t,this.code=r),A){var o=C(t);o.name=S,u(this,"stack",c(1,v(o.stack,1)))}},j=I.prototype=s(E),L=function(e){return{enumerable:!0,configurable:!0,get:e}},N=function(e){return L((function(){return T(this)[e]}))};_&&(d(j,"code",N("code")),d(j,"message",N("message")),d(j,"name",N("name"))),u(j,"constructor",c(1,I));var R=a((function(){return!(new k instanceof C)})),D=R||a((function(){return E.toString!==m||"2: 1"!==String(new k(1,2))})),M=R||a((function(){return 25!==new k(1,"DataCloneError").code})),F=R||25!==k.DATA_CLONE_ERR||25!==x.DATA_CLONE_ERR,U=w?D||M||F:R;r({global:!0,constructor:!0,forced:U},{DOMException:U?I:k});var B=i(S),$=B.prototype;for(var H in D&&(w||k===B)&&l($,"toString",m),M&&_&&k===B&&d($,"code",L((function(){return P(h(this).name)}))),y)if(p(y,H)){var z=y[H],q=z.s,V=c(6,z.c);p(B,q)||u(B,q,V),p($,q)||u($,q,V)}},782801:(e,t,n)=>{"use strict";var r=n(82109),o=n(317854),i=n(435005),a=n(679114),s=n(403070).f,c=n(892597),u=n(825787),l=n(979587),d=n(856277),p=n(593678),f=n(877741),h=n(919781),m=n(831913),g="DOMException",y=i("Error"),v=i(g),b=function(){u(this,_);var e=arguments.length,t=d(e<1?void 0:arguments[0]),n=d(e<2?void 0:arguments[1],"Error"),r=new v(t,n),o=y(t);return o.name=g,s(r,"stack",a(1,f(o.stack,1))),l(r,this,b),r},_=b.prototype=v.prototype,w="stack"in y(g),S="stack"in new v(1,2),C=v&&h&&Object.getOwnPropertyDescriptor(o,g),k=!(!C||C.writable&&C.configurable),x=w&&!k&&!S;r({global:!0,constructor:!0,forced:m||x},{DOMException:x?b:v});var E=i(g),O=E.prototype;if(O.constructor!==E)for(var T in m||s(O,"constructor",a(1,E)),p)if(c(p,T)){var A=p[T],P=A.s;c(E,P)||s(E,P,a(6,A.c))}},501174:(e,t,n)=>{var r=n(435005),o="DOMException";n(158003)(r(o),o)},784633:(e,t,n)=>{n(811091),n(112986)},885844:(e,t,n)=>{var r=n(82109),o=n(317854),i=n(195948),a=n(419662),s=n(548053),c=n(235268),u=o.process;r({global:!0,enumerable:!0,dontCallGetSet:!0},{queueMicrotask:function(e){s(arguments.length,1),a(e);var t=c&&u.domain;i(t?t.bind(e):e)}})},112986:(e,t,n)=>{var r=n(82109),o=n(317854),i=n(20261).set;r({global:!0,bind:!0,enumerable:!0,forced:o.setImmediate!==i},{setImmediate:i})},696815:(e,t,n)=>{var r=n(82109),o=n(317854),i=n(917152).setInterval;r({global:!0,bind:!0,forced:o.setInterval!==i},{setInterval:i})},188417:(e,t,n)=>{var r=n(82109),o=n(317854),i=n(917152).setTimeout;r({global:!0,bind:!0,forced:o.setTimeout!==i},{setTimeout:i})},761295:(e,t,n)=>{var r,o=n(831913),i=n(82109),a=n(317854),s=n(435005),c=n(901702),u=n(747293),l=n(269711),d=n(360614),p=n(404411),f=n(970111),h=n(952190),m=n(720408),g=n(919670),y=n(870648),v=n(892597),b=n(586135),_=n(168880),w=n(426244),S=n(548053),C=n(534706),k=n(722914),x=n(507392),E=n(907871),O=n(983823),T=n(235268),A=a.Object,P=a.Date,I=a.Error,j=a.EvalError,L=a.RangeError,N=a.ReferenceError,R=a.SyntaxError,D=a.TypeError,M=a.URIError,F=a.PerformanceMark,U=a.WebAssembly,B=U&&U.CompileError||I,$=U&&U.LinkError||I,H=U&&U.RuntimeError||I,z=s("DOMException"),q=s("Set"),V=s("Map"),G=V.prototype,W=c(G.has),Y=c(G.get),K=c(G.set),J=c(q.prototype.add),Z=s("Object","keys"),X=c([].push),Q=c((!0).valueOf),ee=c(1..valueOf),te=c("".valueOf),ne=c(P.prototype.getTime),re=l("structuredClone"),oe="DataCloneError",ie="Transferring",ae=function(e){return!u((function(){var t=new a.Set([7]),n=e(t),r=e(A(7));return n==t||!n.has(7)||"object"!=typeof r||7!=r}))&&e},se=function(e,t){return!u((function(){var n=new t,r=e({a:n,b:n});return!(r&&r.a===r.b&&r.a instanceof t&&r.a.stack===n.stack)}))},ce=a.structuredClone,ue=o||!se(ce,I)||!se(ce,z)||(r=ce,!!u((function(){var e=r(new a.AggregateError([1],re,{cause:3}));return"AggregateError"!=e.name||1!=e.errors[0]||e.message!=re||3!=e.cause}))),le=!ce&&ae((function(e){return new F(re,{detail:e}).detail})),de=ae(ce)||le,pe=function(e){throw new z("Uncloneable type: "+e,oe)},fe=function(e,t){throw new z((t||"Cloning")+" of "+e+" cannot be properly polyfilled in this engine",oe)},he=function(e,t){if(h(e)&&pe("Symbol"),!f(e))return e;if(t){if(W(t,e))return Y(t,e)}else t=new V;var n,r,o,i,c,u,l,m,g,S,x=y(e),E=!1;switch(x){case"Array":o=[],E=!0;break;case"Object":o={},E=!0;break;case"Map":o=new V,E=!0;break;case"Set":o=new q,E=!0;break;case"RegExp":o=new RegExp(e.source,C(e));break;case"Error":switch(r=e.name){case"AggregateError":o=s("AggregateError")([]);break;case"EvalError":o=j();break;case"RangeError":o=L();break;case"ReferenceError":o=N();break;case"SyntaxError":o=R();break;case"TypeError":o=D();break;case"URIError":o=M();break;case"CompileError":o=B();break;case"LinkError":o=$();break;case"RuntimeError":o=H();break;default:o=I()}E=!0;break;case"DOMException":o=new z(e.message,e.name),E=!0;break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":n=a[x],f(n)||fe(x),o=new n(he(e.buffer,t),e.byteOffset,"DataView"===x?e.byteLength:e.length);break;case"DOMQuad":try{o=new DOMQuad(he(e.p1,t),he(e.p2,t),he(e.p3,t),he(e.p4,t))}catch(t){de?o=de(e):fe(x)}break;case"FileList":if(n=a.DataTransfer,p(n)){for(i=new n,c=0,u=w(e);c<u;c++)i.items.add(he(e[c],t));o=i.files}else de?o=de(e):fe(x);break;case"ImageData":try{o=new ImageData(he(e.data,t),e.width,e.height,{colorSpace:e.colorSpace})}catch(t){de?o=de(e):fe(x)}break;default:if(de)o=de(e);else switch(x){case"BigInt":o=A(e.valueOf());break;case"Boolean":o=A(Q(e));break;case"Number":o=A(ee(e));break;case"String":o=A(te(e));break;case"Date":o=new P(ne(e));break;case"ArrayBuffer":(n=a.DataView)||"function"==typeof e.slice||fe(x);try{if("function"==typeof e.slice)o=e.slice(0);else for(u=e.byteLength,o=new ArrayBuffer(u),g=new n(e),S=new n(o),c=0;c<u;c++)S.setUint8(c,g.getUint8(c))}catch(e){throw new z("ArrayBuffer is detached",oe)}break;case"SharedArrayBuffer":o=e;break;case"Blob":try{o=e.slice(0,e.size,e.type)}catch(e){fe(x)}break;case"DOMPoint":case"DOMPointReadOnly":n=a[x];try{o=n.fromPoint?n.fromPoint(e):new n(e.x,e.y,e.z,e.w)}catch(e){fe(x)}break;case"DOMRect":case"DOMRectReadOnly":n=a[x];try{o=n.fromRect?n.fromRect(e):new n(e.x,e.y,e.width,e.height)}catch(e){fe(x)}break;case"DOMMatrix":case"DOMMatrixReadOnly":n=a[x];try{o=n.fromMatrix?n.fromMatrix(e):new n(e)}catch(e){fe(x)}break;case"AudioData":case"VideoFrame":d(e.clone)||fe(x);try{o=e.clone()}catch(e){pe(x)}break;case"File":try{o=new File([e],e.name,e)}catch(e){fe(x)}break;case"CryptoKey":case"GPUCompilationMessage":case"GPUCompilationInfo":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":fe(x);default:pe(x)}}if(K(t,e,o),E)switch(x){case"Array":case"Object":for(l=Z(e),c=0,u=w(l);c<u;c++)m=l[c],b(o,m,he(e[m],t));break;case"Map":e.forEach((function(e,n){K(o,he(n,t),he(e,t))}));break;case"Set":e.forEach((function(e){J(o,he(e,t))}));break;case"Error":_(o,"message",he(e.message,t)),v(e,"cause")&&_(o,"cause",he(e.cause,t)),"AggregateError"==r&&(o.errors=he(e.errors,t));case"DOMException":k&&_(o,"stack",he(e.stack,t))}return o},me=ce&&!u((function(){if(O&&x>92||T&&x>94||E&&x>97)return!1;var e=new ArrayBuffer(8),t=ce(e,{transfer:[e]});return 0!=e.byteLength||8!=t.byteLength})),ge=function(e,t){if(!f(e))throw D("Transfer option cannot be converted to a sequence");var n=[];m(e,(function(e){X(n,g(e))}));var r,o,i,s,c,u,l=0,h=w(n);if(me)for(s=ce(n,{transfer:n});l<h;)K(t,n[l],s[l++]);else for(;l<h;){if(r=n[l++],W(t,r))throw new z("Duplicate transferable",oe);switch(o=y(r)){case"ImageBitmap":i=a.OffscreenCanvas,p(i)||fe(o,ie);try{(u=new i(r.width,r.height)).getContext("bitmaprenderer").transferFromImageBitmap(r),c=u.transferToImageBitmap()}catch(e){}break;case"AudioData":case"VideoFrame":d(r.clone)&&d(r.close)||fe(o,ie);try{c=r.clone(),r.close()}catch(e){}break;case"ArrayBuffer":case"MessagePort":case"OffscreenCanvas":case"ReadableStream":case"TransformStream":case"WritableStream":fe(o,ie)}if(void 0===c)throw new z("This object cannot be transferred: "+o,oe);K(t,r,c)}};i({global:!0,enumerable:!0,sham:!me,forced:ue},{structuredClone:function(e){var t,n=S(arguments.length,1)>1&&null!=arguments[1]?g(arguments[1]):void 0,r=n?n.transfer:void 0;return void 0!==r&&(t=new V,ge(r,t)),he(e,t)}})}
vendor: 4,643 bytes, line 2
2,932564:(e,t,n)=>{n(696815),n(188417)},65556:(e,t,n)=>{"use strict";n(66992);var r=n(82109),o=n(317854),i=n(246916),a=n(901702),s=n(919781),c=n(100590),u=n(298052),l=n(389190),d=n(158003),p=n(324994),f=n(929909),h=n(825787),m=n(360614),g=n(892597),y=n(249974),v=n(870648),b=n(919670),_=n(970111),w=n(141340),S=n(70030),C=n(679114),k=n(118554),x=n(871246),E=n(548053),O=n(605112),T=n(994362),A=O("iterator"),P="URLSearchParams",I="URLSearchParamsIterator",j=f.set,L=f.getterFor(P),N=f.getterFor(I),R=Object.getOwnPropertyDescriptor,D=function(e){if(!s)return o[e];var t=R(o,e);return t&&t.value},M=D("fetch"),F=D("Request"),U=D("Headers"),B=F&&F.prototype,$=U&&U.prototype,H=o.RegExp,z=o.TypeError,q=o.decodeURIComponent,V=o.encodeURIComponent,G=a("".charAt),W=a([].join),Y=a([].push),K=a("".replace),J=a([].shift),Z=a([].splice),X=a("".split),Q=a("".slice),ee=/\+/g,te=Array(4),ne=function(e){return te[e-1]||(te[e-1]=H("((?:%[\\da-f]{2}){"+e+"})","gi"))},re=function(e){try{return q(e)}catch(t){return e}},oe=function(e){var t=K(e,ee," "),n=4;try{return q(t)}catch(e){for(;n;)t=K(t,ne(n--),re);return t}},ie=/[!'()~]|%20/g,ae={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},se=function(e){return ae[e]},ce=function(e){return K(V(e),ie,se)},ue=p((function(e,t){j(this,{type:I,iterator:k(L(e).entries),kind:t})}),"Iterator",(function(){var e=N(this),t=e.kind,n=e.iterator.next(),r=n.value;return n.done||(n.value="keys"===t?r.key:"values"===t?r.value:[r.key,r.value]),n}),!0),le=function(e){this.entries=[],this.url=null,void 0!==e&&(_(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===G(e,0)?Q(e,1):e:w(e)))};le.prototype={type:P,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,a,s,c,u=x(e);if(u)for(n=(t=k(e,u)).next;!(r=i(n,t)).done;){if(a=(o=k(b(r.value))).next,(s=i(a,o)).done||(c=i(a,o)).done||!i(a,o).done)throw z("Expected sequence with length 2");Y(this.entries,{key:w(s.value),value:w(c.value)})}else for(var l in e)g(e,l)&&Y(this.entries,{key:l,value:w(e[l])})},parseQuery:function(e){if(e)for(var t,n,r=X(e,"&"),o=0;o<r.length;)(t=r[o++]).length&&(n=X(t,"="),Y(this.entries,{key:oe(J(n)),value:oe(W(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],Y(n,ce(e.key)+"="+ce(e.value));return W(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var de=function(){h(this,pe);var e=arguments.length>0?arguments[0]:void 0;j(this,new le(e))},pe=de.prototype;if(l(pe,{append:function(e,t){E(arguments.length,2);var n=L(this);Y(n.entries,{key:w(e),value:w(t)}),n.updateURL()},delete:function(e){E(arguments.length,1);for(var t=L(this),n=t.entries,r=w(e),o=0;o<n.length;)n[o].key===r?Z(n,o,1):o++;t.updateURL()},get:function(e){E(arguments.length,1);for(var t=L(this).entries,n=w(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){E(arguments.length,1);for(var t=L(this).entries,n=w(e),r=[],o=0;o<t.length;o++)t[o].key===n&&Y(r,t[o].value);return r},has:function(e){E(arguments.length,1);for(var t=L(this).entries,n=w(e),r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){E(arguments.length,1);for(var n,r=L(this),o=r.entries,i=!1,a=w(e),s=w(t),c=0;c<o.length;c++)(n=o[c]).key===a&&(i?Z(o,c--,1):(i=!0,n.value=s));i||Y(o,{key:a,value:s}),r.updateURL()},sort:function(){var e=L(this);T(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,n=L(this).entries,r=y(e,arguments.length>1?arguments[1]:void 0),o=0;o<n.length;)r((t=n[o++]).value,t.key,this)},keys:function(){return new ue(this,"keys")},values:function(){return new ue(this,"values")},entries:function(){return new ue(this,"entries")}},{enumerable:!0}),u(pe,A,pe.entries,{name:"entries"}),u(pe,"toString",(function(){return L(this).serialize()}),{enumerable:!0}),d(de,P),r({global:!0,constructor:!0,forced:!c},{URLSearchParams:de}),!c&&m(U)){var fe=a($.has),he=a($.set),me=function(e){if(_(e)){var t,n=e.body;if(v(n)===P)return t=e.headers?new U(e.headers):new U,fe(t,"content-type")||he(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),S(e,{body:C(0,w(n)),headers:C(0,t)})}return e};if(m(M)&&r({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return M(e,arguments.length>1?me(arguments[1]):{})}}),m(F)){var ge=function(e){return h(this,B),new F(e,arguments.length>1?me(arguments[1]):{})};B.constructor=ge,ge.prototype=B,r({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ge})}}e.exports={URLSearchParams:de,getState:L}},241637:(e,t,n)=>{n(65556)}
vendor: 12,353 bytes, line 2
2,368789:(e,t,n)=>{"use strict";n(978783);var r,o=n(82109),i=n(919781),a=n(100590),s=n(317854),c=n(249974),u=n(901702),l=n(298052),d=n(447045),p=n(825787),f=n(892597),h=n(921574),m=n(148457),g=n(941589),y=n(128710).codeAt,v=n(233197),b=n(141340),_=n(158003),w=n(548053),S=n(65556),C=n(929909),k=C.set,x=C.getterFor("URL"),E=S.URLSearchParams,O=S.getState,T=s.URL,A=s.TypeError,P=s.parseInt,I=Math.floor,j=Math.pow,L=u("".charAt),N=u(/./.exec),R=u([].join),D=u(1..toString),M=u([].pop),F=u([].push),U=u("".replace),B=u([].shift),$=u("".split),H=u("".slice),z=u("".toLowerCase),q=u([].unshift),V="Invalid scheme",G="Invalid host",W="Invalid port",Y=/[a-z]/i,K=/[\d+-.a-z]/i,J=/\d/,Z=/^0x/i,X=/^[0-7]+$/,Q=/^\d+$/,ee=/^[\da-f]+$/i,te=/[\0\t\n\r #%/:<>?@[\\\]^|]/,ne=/[\0\t\n\r #/:<>?@[\\\]^|]/,re=/^[\u0000-\u0020]+|[\u0000-\u0020]+$/g,oe=/[\t\n\r]/g,ie=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)q(t,e%256),e=I(e/256);return R(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=D(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ae={},se=h({},ae,{" ":1,'"':1,"<":1,">":1,"`":1}),ce=h({},se,{"#":1,"?":1,"{":1,"}":1}),ue=h({},ce,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),le=function(e,t){var n=y(e,0);return n>32&&n<127&&!f(t,e)?e:encodeURIComponent(e)},de={ftp:21,file:null,http:80,https:443,ws:80,wss:443},pe=function(e,t){var n;return 2==e.length&&N(Y,L(e,0))&&(":"==(n=L(e,1))||!t&&"|"==n)},fe=function(e){var t;return e.length>1&&pe(H(e,0,2))&&(2==e.length||"/"===(t=L(e,2))||"\\"===t||"?"===t||"#"===t)},he=function(e){return"."===e||"%2e"===z(e)},me={},ge={},ye={},ve={},be={},_e={},we={},Se={},Ce={},ke={},xe={},Ee={},Oe={},Te={},Ae={},Pe={},Ie={},je={},Le={},Ne={},Re={},De=function(e,t,n){var r,o,i,a=b(e);if(t){if(o=this.parse(a))throw A(o);this.searchParams=null}else{if(void 0!==n&&(r=new De(n,!0)),o=this.parse(a,null,r))throw A(o);(i=O(new E)).bindURL(this),this.searchParams=i}};De.prototype={type:"URL",parse:function(e,t,n){var o,i,a,s,c,u=this,l=t||me,d=0,p="",h=!1,y=!1,v=!1;for(e=b(e),t||(u.scheme="",u.username="",u.password="",u.host=null,u.port=null,u.path=[],u.query=null,u.fragment=null,u.cannotBeABaseURL=!1,e=U(e,re,"")),e=U(e,oe,""),o=m(e);d<=o.length;){switch(i=o[d],l){case me:if(!i||!N(Y,i)){if(t)return V;l=ye;continue}p+=z(i),l=ge;break;case ge:if(i&&(N(K,i)||"+"==i||"-"==i||"."==i))p+=z(i);else{if(":"!=i){if(t)return V;p="",l=ye,d=0;continue}if(t&&(u.isSpecial()!=f(de,p)||"file"==p&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=p,t)return void(u.isSpecial()&&de[u.scheme]==u.port&&(u.port=null));p="","file"==u.scheme?l=Te:u.isSpecial()&&n&&n.scheme==u.scheme?l=ve:u.isSpecial()?l=Se:"/"==o[d+1]?(l=be,d++):(u.cannotBeABaseURL=!0,F(u.path,""),l=Le)}break;case ye:if(!n||n.cannotBeABaseURL&&"#"!=i)return V;if(n.cannotBeABaseURL&&"#"==i){u.scheme=n.scheme,u.path=g(n.path),u.query=n.query,u.fragment="",u.cannotBeABaseURL=!0,l=Re;break}l="file"==n.scheme?Te:_e;continue;case ve:if("/"!=i||"/"!=o[d+1]){l=_e;continue}l=Ce,d++;break;case be:if("/"==i){l=ke;break}l=je;continue;case _e:if(u.scheme=n.scheme,i==r)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=g(n.path),u.query=n.query;else if("/"==i||"\\"==i&&u.isSpecial())l=we;else if("?"==i)u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=g(n.path),u.query="",l=Ne;else{if("#"!=i){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=g(n.path),u.path.length--,l=je;continue}u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,u.path=g(n.path),u.query=n.query,u.fragment="",l=Re}break;case we:if(!u.isSpecial()||"/"!=i&&"\\"!=i){if("/"!=i){u.username=n.username,u.password=n.password,u.host=n.host,u.port=n.port,l=je;continue}l=ke}else l=Ce;break;case Se:if(l=Ce,"/"!=i||"/"!=L(p,d+1))continue;d++;break;case Ce:if("/"!=i&&"\\"!=i){l=ke;continue}break;case ke:if("@"==i){h&&(p="%40"+p),h=!0,a=m(p);for(var _=0;_<a.length;_++){var w=a[_];if(":"!=w||v){var S=le(w,ue);v?u.password+=S:u.username+=S}else v=!0}p=""}else if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(h&&""==p)return"Invalid authority";d-=m(p).length+1,p="",l=xe}else p+=i;break;case xe:case Ee:if(t&&"file"==u.scheme){l=Pe;continue}if(":"!=i||y){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()){if(u.isSpecial()&&""==p)return G;if(t&&""==p&&(u.includesCredentials()||null!==u.port))return;if(s=u.parseHost(p))return s;if(p="",l=Ie,t)return;continue}"["==i?y=!0:"]"==i&&(y=!1),p+=i}else{if(""==p)return G;if(s=u.parseHost(p))return s;if(p="",l=Oe,t==Ee)return}break;case Oe:if(!N(J,i)){if(i==r||"/"==i||"?"==i||"#"==i||"\\"==i&&u.isSpecial()||t){if(""!=p){var C=P(p,10);if(C>65535)return W;u.port=u.isSpecial()&&C===de[u.scheme]?null:C,p=""}if(t)return;l=Ie;continue}return W}p+=i;break;case Te:if(u.scheme="file","/"==i||"\\"==i)l=Ae;else{if(!n||"file"!=n.scheme){l=je;continue}if(i==r)u.host=n.host,u.path=g(n.path),u.query=n.query;else if("?"==i)u.host=n.host,u.path=g(n.path),u.query="",l=Ne;else{if("#"!=i){fe(R(g(o,d),""))||(u.host=n.host,u.path=g(n.path),u.shortenPath()),l=je;continue}u.host=n.host,u.path=g(n.path),u.query=n.query,u.fragment="",l=Re}}break;case Ae:if("/"==i||"\\"==i){l=Pe;break}n&&"file"==n.scheme&&!fe(R(g(o,d),""))&&(pe(n.path[0],!0)?F(u.path,n.path[0]):u.host=n.host),l=je;continue;case Pe:if(i==r||"/"==i||"\\"==i||"?"==i||"#"==i){if(!t&&pe(p))l=je;else if(""==p){if(u.host="",t)return;l=Ie}else{if(s=u.parseHost(p))return s;if("localhost"==u.host&&(u.host=""),t)return;p="",l=Ie}continue}p+=i;break;case Ie:if(u.isSpecial()){if(l=je,"/"!=i&&"\\"!=i)continue}else if(t||"?"!=i)if(t||"#"!=i){if(i!=r&&(l=je,"/"!=i))continue}else u.fragment="",l=Re;else u.query="",l=Ne;break;case je:if(i==r||"/"==i||"\\"==i&&u.isSpecial()||!t&&("?"==i||"#"==i)){if(".."===(c=z(c=p))||"%2e."===c||".%2e"===c||"%2e%2e"===c?(u.shortenPath(),"/"==i||"\\"==i&&u.isSpecial()||F(u.path,"")):he(p)?"/"==i||"\\"==i&&u.isSpecial()||F(u.path,""):("file"==u.scheme&&!u.path.length&&pe(p)&&(u.host&&(u.host=""),p=L(p,0)+":"),F(u.path,p)),p="","file"==u.scheme&&(i==r||"?"==i||"#"==i))for(;u.path.length>1&&""===u.path[0];)B(u.path);"?"==i?(u.query="",l=Ne):"#"==i&&(u.fragment="",l=Re)}else p+=le(i,ce);break;case Le:"?"==i?(u.query="",l=Ne):"#"==i?(u.fragment="",l=Re):i!=r&&(u.path[0]+=le(i,ae));break;case Ne:t||"#"!=i?i!=r&&("'"==i&&u.isSpecial()?u.query+="%27":u.query+="#"==i?"%23":le(i,ae)):(u.fragment="",l=Re);break;case Re:i!=r&&(u.fragment+=le(i,se))}d++}},parseHost:function(e){var t,n,r;if("["==L(e,0)){if("]"!=L(e,e.length-1))return G;if(t=function(e){var t,n,r,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,p=function(){return L(e,d)};if(":"==p()){if(":"!=L(e,1))return;d+=2,l=++u}for(;p();){if(8==u)return;if(":"!=p()){for(t=n=0;n<4&&N(ee,p());)t=16*t+P(p(),16),d++,n++;if("."==p()){if(0==n)return;if(d-=n,u>6)return;for(r=0;p();){if(o=null,r>0){if(!("."==p()&&r<4))return;d++}if(!N(J,p()))return;for(;N(J,p());){if(i=P(p(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;d++}c[u]=256*c[u]+o,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==p()){if(d++,!p())return}else if(p())return;c[u++]=t}else{if(null!==l)return;d++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c}(H(e,1,-1)),!t)return G;this.host=t}else if(this.isSpecial()){if(e=v(e),N(te,e))return G;if(t=function(e){var t,n,r,o,i,a,s,c=$(e,".");if(c.length&&""==c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""==(o=c[r]))return e;if(i=10,o.length>1&&"0"==L(o,0)&&(i=N(Z,o)?16:8,o=H(o,8==i?1:2)),""===o)a=0;else{if(!N(10==i?Q:8==i?X:ee,o))return e;a=P(o,i)}F(n,a)}for(r=0;r<t;r++)if(a=n[r],r==t-1){if(a>=j(256,5-t))return null}else if(a>255)return null;for(s=M(n),r=0;r<n.length;r++)s+=n[r]*j(256,3-r);return s}(e),null===t)return G;this.host=t}else{if(N(ne,e))return G;for(t="",n=m(e),r=0;r<n.length;r++)t+=le(n[r],ae);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return f(de,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&pe(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,o=e.host,i=e.port,a=e.path,s=e.query,c=e.fragment,u=t+":";return null!==o?(u+="//",e.includesCredentials()&&(u+=n+(r?":"+r:"")+"@"),u+=ie(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+R(a,"/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},setHref:function(e){var t=this.parse(e);if(t)throw A(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new Me(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+ie(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(b(e)+":",me)},getUsername:function(){return this.username},setUsername:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=le(t[n],ue)}},getPassword:function(){return this.password},setPassword:function(e){var t=m(b(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=le(t[n],ue)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ie(e):ie(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,xe)},getHostname:function(){var e=this.host;return null===e?"":ie(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,Ee)},getPort:function(){var e=this.port;return null===e?"":b(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=b(e))?this.port=null:this.parse(e,Oe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+R(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,Ie))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=b(e))?this.query=null:("?"==L(e,0)&&(e=H(e,1)),this.query="",this.parse(e,Ne)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=b(e))?("#"==L(e,0)&&(e=H(e,1)),this.fragment="",this.parse(e,Re)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var Me=function(e){var t=p(this,Fe),n=w(arguments.length,1)>1?arguments[1]:void 0,r=k(t,new De(e,!1,n));i||(t.href=r.serialize(),t.origin=r.getOrigin(),t.protocol=r.getProtocol(),t.username=r.getUsername(),t.password=r.getPassword(),t.host=r.getHost(),t.hostname=r.getHostname(),t.port=r.getPort(),t.pathname=r.getPathname(),t.search=r.getSearch(),t.searchParams=r.getSearchParams(),t.hash=r.getHash())},Fe=Me.prototype,Ue=function(e,t){return{get:function(){return x(this)[e]()},set:t&&function(e){return x(this)[t](e)},configurable:!0,enumerable:!0}};if(i&&(d(Fe,"href",Ue("serialize","setHref")),d(Fe,"origin",Ue("getOrigin")),d(Fe,"protocol",Ue("getProtocol","setProtocol")),d(Fe,"username",Ue("getUsername","setUsername")),d(Fe,"password",Ue("getPassword","setPassword")),d(Fe,"host",Ue("getHost","setHost")),d(Fe,"hostname",Ue("getHostname","setHostname")),d(Fe,"port",Ue("getPort","setPort")),d(Fe,"pathname",Ue("getPathname","setPathname")),d(Fe,"search",Ue("getSearch","setSearch")),d(Fe,"searchParams",Ue("getSearchParams")),d(Fe,"hash",Ue("getHash","setHash"))),l(Fe,"toJSON",(function(){return x(this).serialize()}),{enumerable:!0}),l(Fe,"toString",(function(){return x(this).serialize()}),{enumerable:!0}),T){var Be=T.createObjectURL,$e=T.revokeObjectURL;Be&&l(Me,"createObjectURL",c(Be,T)),$e&&l(Me,"revokeObjectURL",c($e,T))}_(Me,"URL"),o({global:!0,constructor:!0,forced:!a,sham:!i},{URL:Me})},560285:(e,t,n)=>{n(368789)},583753:(e,t,n)=>{"use strict";var r=n(82109),o=n(246916);r({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return o(URL.prototype.toString,this)}})}
vendor: 7,037 bytes, line 2
2,782888:(e,t,n)=>{var r=n(985558);e.exports=r},128594:(e,t,n)=>{n(382526),n(141817),n(472443),n(692401),n(908722),n(932165),n(469007),n(716066),n(483510),n(841840),n(706982),n(32159),n(696649),n(639341),n(660543),n(21703),n(996647),n(709170),n(932120),n(252262),n(892222),n(250545),n(126541),n(143290),n(57327),n(969826),n(34553),n(867635),n(477287),n(384944),n(586535),n(489554),n(491038),n(226699),n(682772),n(279753),n(66992),n(569600),n(294986),n(821249),n(126572),n(757658),n(185827),n(996644),n(365069),n(747042),n(605212),n(702707),n(338706),n(140561),n(133792),n(199244),n(430541),n(718264),n(776938),n(439575),n(616716),n(143016),n(603843),n(81801),n(809550),n(335268),n(805735),n(396078),n(583710),n(162130),n(224812),n(504855),n(968309),n(235837),n(838862),n(173706),n(651532),n(399752),n(982376),n(373181),n(323484),n(902388),n(688621),n(660403),n(284755),n(925438),n(690332),n(940658),n(540197),n(644914),n(152420),n(260160),n(360970),n(910408),n(873689),n(209653),n(593299),n(435192),n(533161),n(944048),n(178285),n(144363),n(155994),n(961874),n(909494),n(31354),n(556977),n(855147),n(319601),n(978011),n(59595),n(833321),n(369070),n(735500),n(569720),n(643371),n(838559),n(438880),n(749337),n(536210),n(530489),n(346314),n(243304),n(441825),n(998410),n(172200),n(447941),n(294869),n(933952),n(857227),n(760514),n(968304),n(241539),n(426833),n(454678),n(891058),n(788674),n(217922),n(234668),n(117727),n(536535),n(912419),n(569596),n(252586),n(674819),n(595683),n(839361),n(151037),n(305898),n(267556),n(914361),n(683593),n(539532),n(481299),n(324603),n(628450),n(974916),n(292087),n(588386),n(477601),n(339714),n(470189),n(324506),n(579841),n(327852),n(94953),n(132023),n(978783),n(804723),n(576373),n(66528),n(483112),n(938992),n(482481),n(115306),n(568757),n(864765),n(323123),n(923157),n(83650),n(573210),n(348702),n(455674),n(815218),n(574475),n(357929),n(850915),n(729253),n(342125),n(678830),n(958734),n(229254),n(37268),n(407397),n(860086),n(880623),n(444197),n(76495),n(587145),n(535109),n(365125),n(682472),n(49743),n(408255),n(829135),n(348675),n(692990),n(718927),n(533105),n(335035),n(274345),n(507174),n(863408),n(614590),n(632846),n(798145),n(844731),n(677209),n(96319),n(958867),n(737789),n(833739),n(595206),n(629368),n(414483),n(312056),n(103462),n(930678),n(627462),n(33824),n(155021),n(812974),n(915016),n(478221),n(104129),n(838478),n(375505),n(927479),n(454747),n(333948),n(487714),n(782801),n(501174),n(784633),n(885844),n(761295),n(932564),n(560285),n(583753),n(241637),e.exports=n(140857)},97660:(e,t,n)=>{"use strict";var r=n(125463),o={},i={};function a(){if(!(this instanceof a))return new a}r.forEach((function(e){o[e.name.toLowerCase()]=e.code,i[e.code.toLowerCase()]=e.name})),e.exports=a,a.prototype.getCode=function(e){return o[e.toLowerCase()]},a.prototype.getName=function(e){return i[e.toLowerCase()]},a.prototype.getNames=function(){return r.map((function(e){return e.name}))},a.prototype.getCodes=function(){return r.map((function(e){return e.code}))},a.prototype.getData=function(){return r}},727484:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",c="month",u="quarter",l="year",d="date",p="Invalid Date",f=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,c),i=n-o<0,a=t.clone().add(r+(i?-1:1),c);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:c,y:l,w:s,d:a,D:d,h:i,m:o,s:r,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=m;var _="$isDayjsObject",w=function(e){return e instanceof x||!(!e||!e[_])},S=function e(t,n,r){var o;if(!t)return v;if("string"==typeof t){var i=t.toLowerCase();b[i]&&(o=i),n&&(b[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;b[s]=t,o=s}return!r&&o&&(v=o),o||!r&&v},C=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},k=y;k.l=S,k.i=w,k.w=function(e,t){return C(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function m(e){this.$L=S(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(k.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(f);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return!(this.$d.toString()===p)},g.isSame=function(e,t){var n=C(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return C(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<C(e)},g.$g=function(e,t,n){return k.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,u=!!k.u(t)||t,p=k.p(e),f=function(e,t){var r=k.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return u?r:r.endOf(a)},h=function(e,t){return k.w(n.toDate()[e].apply(n.toDate("s"),(u?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},m=this.$W,g=this.$M,y=this.$D,v="set"+(this.$u?"UTC":"");switch(p){case l:return u?f(1,0):f(31,11);case c:return u?f(1,g):f(0,g+1);case s:var b=this.$locale().weekStart||0,_=(m<b?m+7:m)-b;return f(u?y-_:y+(6-_),g);case a:case d:return h(v+"Hours",0);case i:return h(v+"Minutes",1);case o:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,u=k.p(e),p="set"+(this.$u?"UTC":""),f=(s={},s[a]=p+"Date",s[d]=p+"Date",s[c]=p+"Month",s[l]=p+"FullYear",s[i]=p+"Hours",s[o]=p+"Minutes",s[r]=p+"Seconds",s[n]=p+"Milliseconds",s)[u],h=u===a?this.$D+(t-this.$W):t;if(u===c||u===l){var m=this.clone().set(d,1);
vendor: 4,609 bytes, line 2
2m.$d[f](h),m.init(),this.$d=m.set(d,Math.min(this.$D,m.daysInMonth())).$d}else f&&this.$d[f](h);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[k.p(e)]()},g.add=function(n,u){var d,p=this;n=Number(n);var f=k.p(u),h=function(e){var t=C(p);return k.w(t.date(t.date()+Math.round(e*n)),p)};if(f===c)return this.set(c,this.$M+n);if(f===l)return this.set(l,this.$y+n);if(f===a)return h(1);if(f===s)return h(7);var m=(d={},d[o]=e,d[i]=t,d[r]=1e3,d)[f]||1,g=this.$d.getTime()+n*m;return k.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=k.z(this),i=this.$H,a=this.$m,s=this.$M,c=n.weekdays,u=n.months,l=n.meridiem,d=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return k.s(i%12||12,e,"0")},m=l||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return k.s(t.$y,4,"0");case"M":return s+1;case"MM":return k.s(s+1,2,"0");case"MMM":return d(n.monthsShort,s,u,3);case"MMMM":return d(u,s);case"D":return t.$D;case"DD":return k.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(n.weekdaysMin,t.$W,c,2);case"ddd":return d(n.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(i);case"HH":return k.s(i,2,"0");case"h":return f(1);case"hh":return f(2);case"a":return m(i,a,!0);case"A":return m(i,a,!1);case"m":return String(a);case"mm":return k.s(a,2,"0");case"s":return String(t.$s);case"ss":return k.s(t.$s,2,"0");case"SSS":return k.s(t.$ms,3,"0");case"Z":return o}return null}(e)||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,d,p){var f,h=this,m=k.p(d),g=C(n),y=(g.utcOffset()-this.utcOffset())*e,v=this-g,b=function(){return k.m(h,g)};switch(m){case l:f=b()/12;break;case c:f=b();break;case u:f=b()/3;break;case s:f=(v-y)/6048e5;break;case a:f=(v-y)/864e5;break;case i:f=v/t;break;case o:f=v/e;break;case r:f=v/1e3;break;default:f=v}return p?f:k.a(f)},g.daysInMonth=function(){return this.endOf(c).$D},g.$locale=function(){return b[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=S(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},m}(),E=x.prototype;return C.prototype=E,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",c],["$y",l],["$D",d]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),C.extend=function(e,t){return e.$i||(e(t,x,C),e.$i=!0),C},C.locale=S,C.isDayjs=w,C.unix=function(e){return C(1e3*e)},C.en=b[v],C.Ls=b,C.p={},C}()},934437:(e,t,n)=>{var r={"./af.js":[915903,5903],"./am.js":[329911,9911],"./ar-dz.js":[47200,7200],"./ar-iq.js":[487719,7719],"./ar-kw.js":[62376,2376],"./ar-ly.js":[848540,8540],"./ar-ma.js":[996817,6817],"./ar-sa.js":[511573,1573],"./ar-tn.js":[599339,9339],"./ar.js":[963939,3939],"./az.js":[888092,8092],"./be.js":[960504,504],"./bg.js":[119091,9091],"./bi.js":[419149,9149],"./bm.js":[415287,5287],"./bn-bd.js":[654067,4067],"./bn.js":[35254,5254],"./bo.js":[852502,2502],"./br.js":[308864,8864],"./bs.js":[604502,4502],"./ca.js":[333646,3646],"./cs.js":[498507,8507],"./cv.js":[916636,6636],"./cy.js":[228792,8792],"./da.js":[917427,7427],"./de-at.js":[373237,3237],"./de-ch.js":[716148,7608],"./de.js":[180790,790],"./dv.js":[911794,1794],"./el.js":[565423,5423],"./en-au.js":[885109,5109],"./en-ca.js":[55105,5105],"./en-gb.js":[899517,9517],"./en-ie.js":[230758,758],"./en-il.js":[995805,5805],"./en-in.js":[388529,8529],"./en-nz.js":[250302,302],"./en-sg.js":[935941,5941],"./en-tt.js":[746183,3973],"./en.js":[125054,5054],"./eo.js":[474990,4990],"./es-do.js":[603864,3864],"./es-mx.js":[337118,7118],"./es-pr.js":[723521,3521],"./es-us.js":[636165,6165],"./es.js":[667763,7763],"./et.js":[599670,9670],"./eu.js":[946629,6629],"./fa.js":[596953,6953],"./fi.js":[847822,7822],"./fo.js":[269197,9197],"./fr-ca.js":[477989,7989],"./fr-ch.js":[454254,4254],"./fr.js":[496023,6023],"./fy.js":[793220,3220],"./ga.js":[47467,7467],"./gd.js":[754855,4855],"./gl.js":[290229,229],"./gom-latn.js":[646312,6312],"./gu.js":[287632,7632],"./he.js":[645418,5418],"./hi.js":[577573,7573],"./hr.js":[496257,6257],"./ht.js":[
2698889,8889],"./hu.js":[968562,8562],"./hy-am.js":[38242,8242],"./id.js":[83783,3783],"./is.js":[998980,8980],"./it-ch.js":[283706,3706],"./it.js":[715551,5551],"./ja.js":[176831,6831],"./jv.js":[542641,2641],"./ka.js":[246622,6622],"./kk.js":[32921,7345],"./km.js":[845567,5567],"./kn.js":[321113,1113],"./ko.js":[919132,9132],"./ku.js":[994888,4888],"./ky.js":[660466,466],"./lb.js":[891796,6544],"./lo.js":[468894,8894],"./lt.js":[78768,8768],"./lv.js":[630953,953],"./me.js":[818066,8066],"./mi.js":[268602,8602],"./mk.js":[951560,1560],"./ml.js":[404017,4017],"./mn.js":[894717,6327],"./mr.js":[15473,5473],"./ms-my.js":[177387,7387],"./ms.js":[505742,5742],"./mt.js":[828477,8477],"./my.js":[462966,2966],"./nb.js":[119682,9682],"./ne.js":[14149,4149],"./nl-be.js":[737496,7496],"./nl.js":[899182,9182],"./nn.js":[992722,2722],"./oc-lnc.js":[776159,6159],"./pa-in.js":[135914,5914],"./pl.js":[581987,1987],"./pt-br.js":[457548,7548],"./pt.js":[515001,5001],"./rn.js":[300123,123],"./ro.js":[318146,8146],"./ru.js":[270600,600],"./rw.js":[206509,6509],"./sd.js":[465437,5437],"./se.js":[200772,772],"./si.js":[277109,7109],"./sk.js":[935627,5627],"./sl.js":[382544,2544],"./sq.js":[588341,8341],"./sr-cyrl.js":[137101,7101],"./sr.js":[450617,617],"./ss.js":[864127,4127],"./sv-fi.js":[819911,6421],"./sv.js":[991876,1876],"./sw.js":[146148,6148],"./ta.js":[255596,5596],"./te.js":[45159,5159],"./tet.js":[799157,9157],"./tg.js":[509928,9928],"./th.js":[262019,2019],"./tk.js":[675817,5817],"./tl-ph.js":[46513,6513],"./tlh.js":[997296,7296],"./tr.js":[373035,3035],"./tzl.js":[557797,7797],"./tzm-latn.js":[569684,261],"./tzm.js":[284722,4722],"./ug-cn.js":[580313,313],"./uk.js":[564144,4144],"./ur.js":[592957,2957],"./uz-latn.js":[98727,8727],"./uz.js":[307486,7486],"./vi.js":[337553,7553],"./x-pseudo.js":[955321,5321],"./yo.js":[114724,4724],"./zh-cn.js":[533852,3852],"./zh-hk.js":[502390,2390],"./zh-tw.js":[543901,3901],"./zh.js":[132009,2009]};function o(e){if(!n.o(r,e))return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}));var t=r[e],o=t[0];return n.e(t[1]).then((()=>n.t(o,23)))}o.keys=()=>Object.keys(r),o.id=934437,e.exports=o},828734:function(e){e.exports=function(){"use strict";return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var o=this.$utils(),i=(e||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case"Q":return Math.ceil((t.$M+1)/3);case"Do":return n.ordinal(t.$D);case"gggg":return t.weekYear();case"GGGG":return t.isoWeekYear();case"wo":return n.ordinal(t.week(),"W");case"w":case"ww":return o.s(t.week(),"w"===e?1:2,"0");case"W":case"WW":return o.s(t.isoWeek(),"W"===e?1:2,"0");case"k":case"kk":return o.s(String(0===t.$H?24:t.$H),"k"===e?1:2,"0");case"X":return Math.floor(t.$d.getTime()/1e3);case"x":return t.$d.getTime();case"z":return"["+t.offsetName()+"]";case"zzz":return"["+t.offsetName("long")+"]";default:return e}}));return r.bind(this)(i)}}}()},294712:function(e){e.exports=function(){"use strict";return function(e,t,n){var r="h:mm A",o={lastDay:"[Yesterday at] "+r,sameDay:"[Today at] "+r,nextDay:"[Tomorrow at] "+r,nextWeek:"dddd [at] "+r,lastWeek:"[Last] dddd [at] "+r,sameElse:"MM/DD/YYYY"};t.prototype.calendar=function(e,t){var r=t||this.$locale().calendar||o,i=n(e||void 0).startOf("d"),a=this.diff(i,"d",!0),s="sameElse",c=a<-6?s:a<-1?"lastWeek":a<0?"lastDay":a<1?"sameDay":a<2?"nextDay":a<7?"nextWeek":s,u=r[c]||o[c];return"function"==typeof u?u.call(this,n()):this.format(u)}}}()},201646:function(e){e.exports=function(){"use strict";var e,t,n=1e3,r=6e4,o=36e5,i=864e5,a=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,s=31536e6,c=2628e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:s,months:c,days:i,hours:o,minutes:r,seconds:n,milliseconds:1,weeks:6048e5},d=function(e){return e instanceof v},p=function(e,t,n){return new v(e,n,t.$l)},f=function(e){return t.p(e)+"s"},h=function(e){return e<0},m=function(e){return h(e)?Math.ceil(e):Math.floor(e)},g=function(e){return Math.abs(e)},y=function(e,t){return e?h(e)?{negative:!0,format:""+g(e)+t}:{negative:!1,format:""+e+t}:{negative:!1,format:""}}
2,v=function(){function h(e,t,n){var r=this;if(this.$d={},this.$l=n,void 0===e&&(this.$ms=0,this.parseFromMilliseconds()),t)return p(e*l[f(t)],this);if("number"==typeof e)return this.$ms=e,this.parseFromMilliseconds(),this;if("object"==typeof e)return Object.keys(e).forEach((function(t){r.$d[f(t)]=e[t]})),this.calMilliseconds(),this;if("string"==typeof e){var o=e.match(u);if(o){var i=o.slice(2).map((function(e){return null!=e?Number(e):0}));return this.$d.years=i[0],this.$d.months=i[1],this.$d.weeks=i[2],this.$d.days=i[3],this.$d.hours=i[4],this.$d.minutes=i[5],this.$d.seconds=i[6],this.calMilliseconds(),this}}return this}var g=h.prototype;return g.calMilliseconds=function(){var e=this;this.$ms=Object.keys(this.$d).reduce((function(t,n){return t+(e.$d[n]||0)*l[n]}),0)},g.parseFromMilliseconds=function(){var e=this.$ms;this.$d.years=m(e/s),e%=s,this.$d.months=m(e/c),e%=c,this.$d.days=m(e/i),e%=i,this.$d.hours=m(e/o),e%=o,this.$d.minutes=m(e/r),e%=r,this.$d.seconds=m(e/n),e%=n,this.$d.milliseconds=e},g.toISOString=function(){var e=y(this.$d.years,"Y"),t=y(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var r=y(n,"D"),o=y(this.$d.hours,"H"),i=y(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3,a=Math.round(1e3*a)/1e3);var s=y(a,"S"),c=e.negative||t.negative||r.negative||o.negative||i.negative||s.negative,u=o.format||i.format||s.format?"T":"",l=(c?"-":"")+"P"+e.format+t.format+r.format+u+o.format+i.format+s.format;return"P"===l||"-P"===l?"P0D":l},g.toJSON=function(){return this.toISOString()},g.format=function(e){var n=e||"YYYY-MM-DDTHH:mm:ss",r={Y:this.$d.years,YY:t.s(this.$d.years,2,"0"),YYYY:t.s(this.$d.years,4,"0"),M:this.$d.months,MM:t.s(this.$d.months,2,"0"),D:this.$d.days,DD:t.s(this.$d.days,2,"0"),H:this.$d.hours,HH:t.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:t.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:t.s(this.$d.seconds,2,"0"),SSS:t.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(e,t){return t||String(r[e])}))},g.as=function(e){return this.$ms/l[f(e)]},g.get=function(e){var t=this.$ms,n=f(e);return"milliseconds"===n?t%=1e3:t="weeks"===n?m(t/l[n]):this.$d[n],t||0},g.add=function(e,t,n){var r;return r=t?e*l[f(t)]:d(e)?e.$ms:p(e,this).$ms,p(this.$ms+r*(n?-1:1),this)},g.subtract=function(e,t){return this.add(e,t,!0)},g.locale=function(e){var t=this.clone();return t.$l=e,t},g.clone=function(){return p(this.$ms,this)},g.humanize=function(t){return e().add(this.$ms,"ms").locale(this.$l).fromNow(!t)},g.valueOf=function(){return this.asMilliseconds()},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},h}(),b=function(e,t,n){return e.add(t.years()*n,"y").add(t.months()*n,"M").add(t.days()*n,"d").add(t.hours()*n,"h").add(t.minutes()*n,"m").add(t.seconds()*n,"s").add(t.milliseconds()*n,"ms")};return function(n,r,o){e=o,t=o().$utils(),o.duration=function(e,t){var n=o.locale();return p(e,{$l:n},t)},o.isDuration=d;var i=r.prototype.add,a=r.prototype.subtract;r.prototype.add=function(e,t){return d(e)?b(this,e,1):i.bind(this)(e,t)},r.prototype.subtract=function(e,t){return d(e)?b(this,e,-1):a.bind(this)(e,t)}}}()},366607:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],c=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(c?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(c?this.isAfter(a,r):!this.isBefore(a,r))}}}()},356176:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,n,r){var o=n.prototype,i=o.format;r.en.formats=e,o.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,o){var i=o&&o.toUpperCase();return r||n[o]||e[o]||n[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,void 0===n?{}:n);return i.call(this,r)}}}()},884110:function(e){e.exports=function(){"use strict";return function(e,t,n){e=e||{};var r=t.prototype,o={future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function i(e,t,n,o){return r.fromToBase(e,t,n,o)}n.en.relativeTime=o,r.fromToBase=function(t,r,i,a,s){for(var c,u,l,d=i.$locale().relativeTime||o,p=e.thresholds||[{l:"s",r:44,d:"second"},{l:"m",r:89},{l:"mm",r:44,d:"minute"},{l:"h",r:89},{l:"hh",r:21,d:"hour"},{l:"d",r:35},{l:"dd",r:25,d:"day"},{l:"M",r:45},{l:"MM",r:10,d:"month"},{l:"y",r:17},{l:"yy",d:"year"}],f=p.length,h=0;h<f;h+=1){var m=p[h];m.d&&(c=a?n(t).diff(i,m.d,!0):i.diff(t,m.d,!0));var g=(e.rounding||Math.round)(Math.abs(c));if(l=c>0,g<=m.r||!m.r){g<=1&&h>0&&(m=p[h-1]);var y=d[m.l];s&&(g=s(""+g)),u="string"==typeof y?y.replace("%d",g):y(g,r,m.l,l);break}}if(r)return u;var v=l?d.future:d.past;return"function"==typeof v?v(u):v.replace("%s",u)},r.to=function(e,t){return i(e,t,this,!0)},r.from=function(e,t){return i(e,t,this)};var a=function(e){return e.$u?n.utc():n()};r.toNow=function(e){return this.to(a(this),e)},r.fromNow=function(e){return this.from(a(this),e)}}}()},629387:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,r,o){var i,a=function(e,n,r){void 0===r&&(r={});var o=new Date(e),i=function(e,n){void 0===n&&(n={});var r=n.timeZoneName||"short",o=e+"|"+r,i=t[o];
2return i||(i=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),t[o]=i),i}(n,r);return i.formatToParts(o)},s=function(t,n){for(var r=a(t,n),i=[],s=0;s<r.length;s+=1){var c=r[s],u=c.type,l=c.value,d=e[u];d>=0&&(i[d]=parseInt(l,10))}var p=i[3],f=24===p?0:p,h=i[0]+"-"+i[1]+"-"+i[2]+" "+f+":"+i[4]+":"+i[5]+":000",m=+t;return(o.utc(h).valueOf()-(m-=m%1e3))/6e4},c=r.prototype;c.tz=function(e,t){void 0===e&&(e=i);var n,r=this.utcOffset(),a=this.toDate(),s=a.toLocaleString("en-US",{timeZone:e}),c=Math.round((a-new Date(s))/1e3/60),u=15*-Math.round(a.getTimezoneOffset()/15)-c;if(Number(u)){if(n=o(s,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var l=n.utcOffset();n=n.add(r-l,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},c.offsetName=function(e){var t=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var u=c.startOf;c.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(n,e,t).tz(this.$x.$timezone,!0)},o.tz=function(e,t,n){var r=n&&t,a=n||t||i,c=s(+o(),a);if("string"!=typeof e)return o(e).tz(a);var u=function(e,t,n){var r=e-60*t*1e3,o=s(r,n);if(t===o)return[r,t];var i=s(r-=60*(o-t)*1e3,n);return o===i?[r,o]:[e-60*Math.min(o,i)*1e3,Math.max(o,i)]}(o.utc(e,r).valueOf(),c,a),l=u[0],d=u[1],p=o(l).utcOffset(d);return p.$x.$timezone=a,p},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(e){i=e}}}()},370178:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,o,i){var a=o.prototype;i.utc=function(e){return new o({date:e,utc:!0,args:arguments})},a.utc=function(t){var n=i(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},a.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=a.init;a.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var u=a.utcOffset;a.utcOffset=function(r,o){var i=this.$utils().u;if(i(r))return this.$u?0:i(this.$offset)?u.call(this):this.$offset;if("string"==typeof r&&(r=function(e){void 0===e&&(e="");var r=e.match(t);if(!r)return null;var o=(""+r[0]).match(n)||["-",0,0],i=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===i?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r;if(0===a)return this.utc(o);var s=this.clone();if(o)return s.$offset=a,s.$u=!1,s;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(a+c,e)).$offset=a,s.$x.$localOffset=c,s};var l=a.format;a.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,t)},a.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(e){return"s"===e&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=a.diff;a.diff=function(e,t,n){if(e&&this.$u===e.$u)return p.call(this,e,t,n);var r=this.local(),o=i(e).local();return p.call(r,o,t,n)}}}()},511227:(e,t,n)=>{var r=n(734155);function o(){var e;try{e=t.storage.debug}catch(e){}return!e&&void 0!==r&&"env"in r&&(e=r.env.DEBUG),e}(t=e.exports=n(511658)).log=function(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},t.formatArgs=function(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var r="color: "+this.color;e.splice(1,0,r,"color: inherit");var o=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(o++,"%c"===e&&(i=o))})),e.splice(i,0,r)}},t.save=function(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(e){}},t.load=o,t.useColors=function(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}},t.enable(o())},511658:(e,t,n)=>{var r;function o(e){function n(){if(n.enabled){var e=n,o=+new Date,i=o-(r||o);e.diff=i,e.prev=r,e.curr=o,r=o;for(var a=new Array(arguments.length),s=0;s<a.length;s++)a[s]=arguments[s];a[0]=t.coerce(a[0]),"string"!=typeof a[0]&&a.unshift("%O");var c=0;a[0]=a[0].replace(/%([a-zA-Z%])/g,(function(n,r){if("%%"===n)return n;c++;var o=t.formatters[r];if("function"==typeof o){var i=a[c];n=o.call(e,i),a.splice(c,1),c--}return n})),t.formatArgs.call(e,a);var u=n.log||t.log||console.log.bind(console);u.apply(e,a)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var n,r=0;for(n in e)r=(r<<5)-r+e.charCodeAt(n),r|=0;return t.colors[Math.abs(r)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}
2(t=e.exports=o.debug=o.default=o).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var n=("string"==typeof e?e:"").split(/[\s,]+/),r=n.length,o=0;o<r;o++)n[o]&&("-"===(e=n[o].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(857824),t.names=[],t.skips=[],t.formatters={}},827856:function(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function r(e,o,i){return r=n()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var i=new(Function.bind.apply(e,o));return r&&t(i,r.prototype),i},r.apply(null,arguments)}function o(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=Object.hasOwnProperty,s=Object.setPrototypeOf,c=Object.isFrozen,u=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,d=Object.freeze,p=Object.seal,f=Object.create,h="undefined"!=typeof Reflect&&Reflect,m=h.apply,g=h.construct;m||(m=function(e,t,n){return e.apply(t,n)}),d||(d=function(e){return e}),p||(p=function(e){return e}),g||(g=function(e,t){return r(e,o(t))});var y,v=T(Array.prototype.forEach),b=T(Array.prototype.pop),_=T(Array.prototype.push),w=T(String.prototype.toLowerCase),S=T(String.prototype.match),C=T(String.prototype.replace),k=T(String.prototype.indexOf),x=T(String.prototype.trim),E=T(RegExp.prototype.test),O=(y=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return g(y,t)});function T(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return m(e,t,r)}}function A(e,t,n){n=n||w,s&&s(e,null);for(var r=t.length;r--;){var o=t[r];if("string"==typeof o){var i=n(o);i!==o&&(c(t)||(t[r]=i),o=i)}e[o]=!0}return e}function P(e){var t,n=f(null);for(t in e)m(a,e,[t])&&(n[t]=e[t]);return n}function I(e,t){for(;null!==e;){var n=l(e,t);if(n){if(n.get)return T(n.get);if("function"==typeof n.value)return T(n.value)}e=u(e)}return function(e){return console.warn("fallback value for",e),null}}var j=d(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),L=d(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),N=d(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),R=d(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),D=d(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),M=d(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),F=d(["#text"]),U=d(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","
2spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),B=d(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),$=d(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=d(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),z=p(/\{\{[\w\W]*|[\w\W]*\}\}/gm),q=p(/<%[\w\W]*|[\w\W]*%>/gm),V=p(/^data-[\-\w.\u00B7-\uFFFF]/),G=p(/^aria-[\-\w]+$/),W=p(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=p(/^(?:\w+script|data):/i),K=p(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=p(/^html$/i),Z=function(){return"undefined"==typeof window?null:window},X=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var i="dompurify"+(r?"#"+r:"");try{return t.createPolicy(i,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z(),r=function(e){return t(e)};if(r.version="2.3.10",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var i=n.document,a=n.document,s=n.DocumentFragment,c=n.HTMLTemplateElement,u=n.Node,l=n.Element,p=n.NodeFilter,f=n.NamedNodeMap,h=void 0===f?n.NamedNodeMap||n.MozNamedAttrMap:f,m=n.HTMLFormElement,g=n.DOMParser,y=n.trustedTypes,T=l.prototype,Q=I(T,"cloneNode"),ee=I(T,"nextSibling"),te=I(T,"childNodes"),ne=I(T,"parentNode");if("function"==typeof c){var re=a.createElement("template");re.content&&re.content.ownerDocument&&(a=re.content.ownerDocument)}var oe=X(y,i),ie=oe?oe.createHTML(""):"",ae=a,se=ae.implementation,ce=ae.createNodeIterator,ue=ae.createDocumentFragment,le=ae.getElementsByTagName,de=i.importNode,pe={};try{pe=P(a).documentMode?a.documentMode:{}}catch(e){}var fe={};r.isSupported="function"==typeof ne&&se&&void 0!==se.createHTMLDocument&&9!==pe;var he,me,ge=z,ye=q,ve=V,be=G,_e=Y,we=K,Se=W,Ce=null,ke=A({},[].concat(o(j),o(L),o(N),o(D),o(F))),xe=null,Ee=A({},[].concat(o(U),o(B),o($),o(H))),Oe=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Te=null,Ae=null,Pe=!0,Ie=!0,je=!1,Le=!1,Ne=!1,Re=!1,De=!1,Me=!1,Fe=!1,Ue=!1,Be=!0,$e=!0,He=!1,ze={},qe=null,Ve=A({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ge=null,We=A({},["audio","video","img","source","image","track"]),Ye=null,Ke=A({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Je="http://www.w3.org/1998/Math/MathML",Ze="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml",Qe=Xe,et=!1,tt=["application/xhtml+xml","text/html"],nt="text/html",rt=null,ot=a.createElement("form"),it=function(e){return e instanceof RegExp||e instanceof Function},at=function(t){rt&&rt===t||(t&&"object"===e(t)||(t={}
2),t=P(t),he=he=-1===tt.indexOf(t.PARSER_MEDIA_TYPE)?nt:t.PARSER_MEDIA_TYPE,me="application/xhtml+xml"===he?function(e){return e}:w,Ce="ALLOWED_TAGS"in t?A({},t.ALLOWED_TAGS,me):ke,xe="ALLOWED_ATTR"in t?A({},t.ALLOWED_ATTR,me):Ee,Ye="ADD_URI_SAFE_ATTR"in t?A(P(Ke),t.ADD_URI_SAFE_ATTR,me):Ke,Ge="ADD_DATA_URI_TAGS"in t?A(P(We),t.ADD_DATA_URI_TAGS,me):We,qe="FORBID_CONTENTS"in t?A({},t.FORBID_CONTENTS,me):Ve,Te="FORBID_TAGS"in t?A({},t.FORBID_TAGS,me):{},Ae="FORBID_ATTR"in t?A({},t.FORBID_ATTR,me):{},ze="USE_PROFILES"in t&&t.USE_PROFILES,Pe=!1!==t.ALLOW_ARIA_ATTR,Ie=!1!==t.ALLOW_DATA_ATTR,je=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Le=t.SAFE_FOR_TEMPLATES||!1,Ne=t.WHOLE_DOCUMENT||!1,Me=t.RETURN_DOM||!1,Fe=t.RETURN_DOM_FRAGMENT||!1,Ue=t.RETURN_TRUSTED_TYPE||!1,De=t.FORCE_BODY||!1,Be=!1!==t.SANITIZE_DOM,$e=!1!==t.KEEP_CONTENT,He=t.IN_PLACE||!1,Se=t.ALLOWED_URI_REGEXP||Se,Qe=t.NAMESPACE||Xe,t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Oe.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&it(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Oe.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Oe.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Le&&(Ie=!1),Fe&&(Me=!0),ze&&(Ce=A({},o(F)),xe=[],!0===ze.html&&(A(Ce,j),A(xe,U)),!0===ze.svg&&(A(Ce,L),A(xe,B),A(xe,H)),!0===ze.svgFilters&&(A(Ce,N),A(xe,B),A(xe,H)),!0===ze.mathMl&&(A(Ce,D),A(xe,$),A(xe,H))),t.ADD_TAGS&&(Ce===ke&&(Ce=P(Ce)),A(Ce,t.ADD_TAGS,me)),t.ADD_ATTR&&(xe===Ee&&(xe=P(xe)),A(xe,t.ADD_ATTR,me)),t.ADD_URI_SAFE_ATTR&&A(Ye,t.ADD_URI_SAFE_ATTR,me),t.FORBID_CONTENTS&&(qe===Ve&&(qe=P(qe)),A(qe,t.FORBID_CONTENTS,me)),$e&&(Ce["#text"]=!0),Ne&&A(Ce,["html","head","body"]),Ce.table&&(A(Ce,["tbody"]),delete Te.tbody),d&&d(t),rt=t)},st=A({},["mi","mo","mn","ms","mtext"]),ct=A({},["foreignobject","desc","title","annotation-xml"]),ut=A({},["title","style","font","a","script"]),lt=A({},L);A(lt,N),A(lt,R);var dt=A({},D);A(dt,M);var pt=function(e){var t=ne(e);t&&t.tagName||(t={namespaceURI:Xe,tagName:"template"});var n=w(e.tagName),r=w(t.tagName);return e.namespaceURI===Ze?t.namespaceURI===Xe?"svg"===n:t.namespaceURI===Je?"svg"===n&&("annotation-xml"===r||st[r]):Boolean(lt[n]):e.namespaceURI===Je?t.namespaceURI===Xe?"math"===n:t.namespaceURI===Ze?"math"===n&&ct[r]:Boolean(dt[n]):e.namespaceURI===Xe&&!(t.namespaceURI===Ze&&!ct[r])&&!(t.namespaceURI===Je&&!st[r])&&!dt[n]&&(ut[n]||!lt[n])},ft=function(e){_(r.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ie}catch(t){e.remove()}}},ht=function(e,t){try{_(r.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){_(r.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!xe[e])if(Me||Fe)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},mt=function(e){var t,n;if(De)e="<remove></remove>"+e;else{var r=S(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===he&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=oe?oe.createHTML(e):e;if(Qe===Xe)try{t=(new g).parseFromString(o,he)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(Qe,"template",null);try{t.documentElement.innerHTML=et?"":o}catch(e){}}var i=t.body||t.documentElement;return e&&n&&i.insertBefore(a.createTextNode(n),i.childNodes[0]||null),Qe===Xe?le.call(t,Ne?"html":"body")[0]:Ne?t.documentElement:i},gt=function(e){return ce.call(e.ownerDocument||e,e,p.SHOW_ELEMENT|p.SHOW_COMMENT|p.SHOW_TEXT,null,!1)},yt=function(e){return e instanceof m&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore)},vt=function(t){return"object"===e(u)?t instanceof u:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},bt=function(e,t,n){fe[e]&&v(fe[e],(function(e){e.call(r,t,n,rt)}))},_t=function(e){var t;if(bt("beforeSanitizeElements",e,null),yt(e))return ft(e),!0;if(E(/[\u0080-\uFFFF]/,e.nodeName))return ft(e),!0;var n=me(e.nodeName);if(bt("uponSanitizeElement",e,{tagName:n,allowedTags:Ce}),e.hasChildNodes()&&!vt(e.firstElementChild)&&(!vt(e.content)||!vt(e.content.firstElementChild))&&E(/<[/\w]/g,e.innerHTML)&&E(/<[/\w]/g,e.textContent))return ft(e),!0;if("select"===n&&E(/<template/i,e.innerHTML))return ft(e),!0;
2if(!Ce[n]||Te[n]){if(!Te[n]&&St(n)){if(Oe.tagNameCheck instanceof RegExp&&E(Oe.tagNameCheck,n))return!1;if(Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(n))return!1}if($e&&!qe[n]){var o=ne(e)||e.parentNode,i=te(e)||e.childNodes;if(i&&o)for(var a=i.length-1;a>=0;--a)o.insertBefore(Q(i[a],!0),ee(e))}return ft(e),!0}return e instanceof l&&!pt(e)?(ft(e),!0):"noscript"!==n&&"noembed"!==n||!E(/<\/no(script|embed)/i,e.innerHTML)?(Le&&3===e.nodeType&&(t=e.textContent,t=C(t,ge," "),t=C(t,ye," "),e.textContent!==t&&(_(r.removed,{element:e.cloneNode()}),e.textContent=t)),bt("afterSanitizeElements",e,null),!1):(ft(e),!0)},wt=function(e,t,n){if(Be&&("id"===t||"name"===t)&&(n in a||n in ot))return!1;if(Ie&&!Ae[t]&&E(ve,t));else if(Pe&&E(be,t));else if(!xe[t]||Ae[t]){if(!(St(e)&&(Oe.tagNameCheck instanceof RegExp&&E(Oe.tagNameCheck,e)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(e))&&(Oe.attributeNameCheck instanceof RegExp&&E(Oe.attributeNameCheck,t)||Oe.attributeNameCheck instanceof Function&&Oe.attributeNameCheck(t))||"is"===t&&Oe.allowCustomizedBuiltInElements&&(Oe.tagNameCheck instanceof RegExp&&E(Oe.tagNameCheck,n)||Oe.tagNameCheck instanceof Function&&Oe.tagNameCheck(n))))return!1}else if(Ye[t]);else if(E(Se,C(n,we,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==k(n,"data:")||!Ge[e])if(je&&!E(_e,C(n,we,"")));else if(n)return!1;return!0},St=function(e){return e.indexOf("-")>0},Ct=function(t){var n,o,i,a;bt("beforeSanitizeAttributes",t,null);var s=t.attributes;if(s){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe};for(a=s.length;a--;){var u=n=s[a],l=u.name,d=u.namespaceURI;if(o="value"===l?n.value:x(n.value),i=me(l),c.attrName=i,c.attrValue=o,c.keepAttr=!0,c.forceKeepAttr=void 0,bt("uponSanitizeAttribute",t,c),o=c.attrValue,!c.forceKeepAttr&&(ht(l,t),c.keepAttr))if(E(/\/>/i,o))ht(l,t);else{Le&&(o=C(o,ge," "),o=C(o,ye," "));var p=me(t.nodeName);if(wt(p,i,o)){if(oe&&"object"===e(y)&&"function"==typeof y.getAttributeType)if(d);else switch(y.getAttributeType(p,i)){case"TrustedHTML":o=oe.createHTML(o);break;case"TrustedScriptURL":o=oe.createScriptURL(o)}try{d?t.setAttributeNS(d,l,o):t.setAttribute(l,o),b(r.removed)}catch(e){}}}}bt("afterSanitizeAttributes",t,null)}},kt=function e(t){var n,r=gt(t);for(bt("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)bt("uponSanitizeShadowNode",n,null),_t(n)||(n.content instanceof s&&e(n.content),Ct(n));bt("afterSanitizeShadowDOM",t,null)};return r.sanitize=function(t,o){var a,c,l,d,p;if((et=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!vt(t)){if("function"!=typeof t.toString)throw O("toString is not a function");if("string"!=typeof(t=t.toString()))throw O("dirty is not a string, aborting")}if(!r.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(vt(t))return n.toStaticHTML(t.outerHTML)}return t}if(Re||at(o),r.removed=[],"string"==typeof t&&(He=!1),He){if(t.nodeName){var f=me(t.nodeName);if(!Ce[f]||Te[f])throw O("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof u)1===(c=(a=mt("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Me&&!Le&&!Ne&&-1===t.indexOf("<"))return oe&&Ue?oe.createHTML(t):t;if(!(a=mt(t)))return Me?null:Ue?ie:""}a&&De&&ft(a.firstChild);for(var h=gt(He?t:a);l=h.nextNode();)3===l.nodeType&&l===d||_t(l)||(l.content instanceof s&&kt(l.content),Ct(l),d=l);if(d=null,He)return t;if(Me){if(Fe)for(p=ue.call(a.ownerDocument);a.firstChild;)p.appendChild(a.firstChild);else p=a;return xe.shadowroot&&(p=de.call(i,p,!0)),p}var m=Ne?a.outerHTML:a.innerHTML;return Ne&&Ce["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&E(J,a.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m),Le&&(m=C(m,ge," "),m=C(m,ye," ")),oe&&Ue?oe.createHTML(m):m},r.setConfig=function(e){at(e),Re=!0},r.clearConfig=function(){rt=null,Re=!1},r.isValidAttribute=function(e,t,n){rt||at({});var r=me(e),o=me(t);return wt(r,o,n)},r.addHook=function(e,t){"function"==typeof t&&(fe[e]=fe[e]||[],_(fe[e],t))},r.removeHook=function(e){if(fe[e])return b(fe[e])},r.removeHooks=function(e){fe[e]&&(fe[e]=[])},r.removeAllHooks=function(){fe={}},r}()}()},882702:function(e,t,n){var r=n(734155);e.exports=function(){"use strict";function e(e){return"function"==typeof e}var t=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,i=void 0,a=void 0,s=function(e,t){h[o]=e,h[o+1]=t,2===(o+=2)&&(a?a(m):_())};var c="undefined"!=typeof window?window:void 0,u=c||{},l=u.MutationObserver||u.WebKitMutationObserver,d="undefined"==typeof self&&void 0!==r&&"[object process]"==={}.toString.call(r),p="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var e=setTimeout;return function(){return e(m,1)}}var h=new Array(1e3);function m(){for(var e=0;e<o;e+=2)(0,h[e])(h[e+1]),h[e]=void 0,h[e+1]=void 0;o=0}var g,y,v,b,_=void 0;function w(e,t){var n=this,r=new this.constructor(k);void 0===r[C]&&R(r);var o=n._state;if(o){var i=arguments[o-1];s((function(){return L(o,r,i,n._result)}))}else I(n,r,e,t);return r}function S(e){if(e&&"object"==typeof e&&e.constructor===this)return e;var t=new this(k);return O(t,e),t}_=d?function(){return r.nextTick(m)}:l?(y=0,v=new l(m),b=document.createTextNode(""),v.observe(b,{characterData:!0}
vendor: 3,668 bytes, line 2
2),function(){b.data=y=++y%2}):p?((g=new MessageChannel).port1.onmessage=m,function(){return g.port2.postMessage(0)}):void 0===c?function(){try{var e=Function("return this")().require("vertx");return void 0!==(i=e.runOnLoop||e.runOnContext)?function(){i(m)}:f()}catch(e){return f()}}():f();var C=Math.random().toString(36).substring(2);function k(){}var x=void 0;function E(t,n,r){n.constructor===t.constructor&&r===w&&n.constructor.resolve===S?function(e,t){1===t._state?A(e,t._result):2===t._state?P(e,t._result):I(t,void 0,(function(t){return O(e,t)}),(function(t){return P(e,t)}))}(t,n):void 0===r?A(t,n):e(r)?function(e,t,n){s((function(e){var r=!1,o=function(e,t,n,r){try{e.call(t,n,r)}catch(e){return e}}(n,t,(function(n){r||(r=!0,t!==n?O(e,n):A(e,n))}),(function(t){r||(r=!0,P(e,t))}),e._label);!r&&o&&(r=!0,P(e,o))}),e)}(t,n,r):A(t,n)}function O(e,t){if(e===t)P(e,new TypeError("You cannot resolve a promise with itself"));else if(o=typeof(r=t),null===r||"object"!==o&&"function"!==o)A(e,t);else{var n=void 0;try{n=t.then}catch(t){return void P(e,t)}E(e,t,n)}var r,o}function T(e){e._onerror&&e._onerror(e._result),j(e)}function A(e,t){e._state===x&&(e._result=t,e._state=1,0!==e._subscribers.length&&s(j,e))}function P(e,t){e._state===x&&(e._state=2,e._result=t,s(T,e))}function I(e,t,n,r){var o=e._subscribers,i=o.length;e._onerror=null,o[i]=t,o[i+1]=n,o[i+2]=r,0===i&&e._state&&s(j,e)}function j(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r=void 0,o=void 0,i=e._result,a=0;a<t.length;a+=3)r=t[a],o=t[a+n],r?L(n,r,o,i):o(i);e._subscribers.length=0}}function L(t,n,r,o){var i=e(r),a=void 0,s=void 0,c=!0;if(i){try{a=r(o)}catch(e){c=!1,s=e}if(n===a)return void P(n,new TypeError("A promises callback cannot return that same promise."))}else a=o;n._state!==x||(i&&c?O(n,a):!1===c?P(n,s):1===t?A(n,a):2===t&&P(n,a))}var N=0;function R(e){e[C]=N++,e._state=void 0,e._result=void 0,e._subscribers=[]}var D=function(){function e(e,n){this._instanceConstructor=e,this.promise=new e(k),this.promise[C]||R(this.promise),t(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?A(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&A(this.promise,this._result))):P(this.promise,new Error("Array Methods must be provided an Array"))}return e.prototype._enumerate=function(e){for(var t=0;this._state===x&&t<e.length;t++)this._eachEntry(e[t],t)},e.prototype._eachEntry=function(e,t){var n=this._instanceConstructor,r=n.resolve;if(r===S){var o=void 0,i=void 0,a=!1;try{o=e.then}catch(e){a=!0,i=e}if(o===w&&e._state!==x)this._settledAt(e._state,t,e._result);else if("function"!=typeof o)this._remaining--,this._result[t]=e;else if(n===M){var s=new n(k);a?P(s,i):E(s,e,o),this._willSettleAt(s,t)}else this._willSettleAt(new n((function(t){return t(e)})),t)}else this._willSettleAt(r(e),t)},e.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===x&&(this._remaining--,2===e?P(r,n):this._result[t]=n),0===this._remaining&&A(r,this._result)},e.prototype._willSettleAt=function(e,t){var n=this;I(e,void 0,(function(e){return n._settledAt(1,t,e)}),(function(e){return n._settledAt(2,t,e)}))},e}();var M=function(){function t(e){this[C]=N++,this._result=this._state=void 0,this._subscribers=[],k!==e&&("function"!=typeof e&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof t?function(e,t){try{t((function(t){O(e,t)}),(function(t){P(e,t)}))}catch(t){P(e,t)}}(this,e):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object c
2onstructor cannot be called as a function.")}())}return t.prototype.catch=function(e){return this.then(null,e)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then((function(e){return r.resolve(t()).then((function(){return e}))}),(function(e){return r.resolve(t()).then((function(){throw e}))})):n.then(t,t)},t}();return M.prototype.then=w,M.all=function(e){return new D(this,e).promise},M.race=function(e){var n=this;return t(e)?new n((function(t,r){for(var o=e.length,i=0;i<o;i++)n.resolve(e[i]).then(t,r)})):new n((function(e,t){return t(new TypeError("You must pass an array to race."))}))},M.resolve=S,M.reject=function(e){var t=new this(k);return P(t,e),t},M._setScheduler=function(e){a=e},M._setAsap=function(e){s=e},M._asap=s,M.polyfill=function(){var e=void 0;if(void 0!==n.g)e=n.g;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var r=null;try{r=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===r&&!t.cast)return}e.Promise=M},M.Promise=M,M}()},717187:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function n(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,a,s,c,u;if(this._events||(this._events={}),"error"===e&&(!this._events.error||r(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(i=this._events[e]))return!1;if(n(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),i.apply(this,s)}else if(r(i))for(s=Array.prototype.slice.call(arguments,1),a=(u=i.slice()).length,c=0;c<a;c++)u[c].apply(this,s);return!0},t.prototype.addListener=function(e,i){var a;if(!n(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,n(i.listener)?i.listener:i),this._events[e]?r(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,r(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!n(t))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(e,o),r||(r=!0,t.apply(this,arguments))}return o.listener=t,this.on(e,o),this},t.prototype.removeListener=function(e,t){var o,i,a,s;if(!n(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(a=(o=this._events[e]).length,i=-1,o===t||n(o.listener)&&o.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(r(o)){for(s=a;s-- >0;)if(o[s]===t||o[s].listener&&o[s].listener===t){i=s;break}if(i<0)return this;1===o.length?(o.length=0,delete this._events[e]):o.splice(i,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(n(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},t.prototype.listeners=function(e){return this._events&&this._events[e]?n(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(n(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},754464:e=>{var t=function(){this.stack=[],this.playback=[],this.speed=1,this.target=null};t.prototype={track:function(e){this.target=e;let t=null;t=e.textInput&&e.textInput.getElement?e.textInput.getElement():e,t.addEventListener("keydown",this.createEvent.bind(this)),t.addEventListener("keyup",this.createEvent.bind(this)),e.addEventListener("mouseup",this.createEvent.bind(this))},createEvent:function(){this.target.getValue?this.stack.push({startPos:this.target.selection.getCursor(),endPos:this.target.selection.getSelectionAnchor(),content:this.target.getValue(),timestamp:(new Date).getTime()}):this.stack.push({startPos:this.target.selectionStart,endPos:this.target.selectionEnd,content:this.target.value,timestamp:(new Date).getTime()})},createUIEvent:function(e,t){0===this.stack.length&&this.createEvent(),"code-reset"!==e&&"saving-spade"!=e||this.createEvent(),this.stack.push({eventName:e,eventOptions:t,timestamp:(new Date).getTime()})},compile:function(){let e=[];
2if(0===this.stack.length)return e;let t=this.stack[0].timestamp,n=this.stack.filter((e=>!e.eventName)),r=this.stack.filter((e=>e.eventName));for(let o=0;o<n.length;o++){let i=n[o],a=i.timestamp-t,s="",c=null,u=null,l=0;if(o>=1){let e=n[o-1],t=!1;for(let n in e)if("timestamp"!=n)if("string"==typeof e[n])e[n]!==i[n]&&(t=!0);else for(let r in e[n])void 0!==i[n][r]?e[n][r]!==i[n][r]&&(t=!0):(console.warn("Warning: c[key][key2] doesn't exist, but p[key][key2] does."),t=!0);if(!t)continue;if(e.content!=i.content){for(let t=0;t<Math.max(e.content.length,i.content.length);t++)e.content.charAt(t)===i.content.charAt(t)?null!=c&&(s+=i.content.charAt(t),l++):(s+=i.content.charAt(t),null===c&&(c=t),l++);for(let t=0;t<Math.min(e.content.length,i.content.length)-c;t++)if(e.content.charAt(e.content.length-1-t)!==i.content.charAt(i.content.length-1-t)&&null==u){u=t;break}null===u&&(u=Math.min(e.content.length,i.content.length)-c),s=s.substring(0,s.length-u)}}else s=i.content,c=0,u=s.length;for(;r.length;){const n=r[0].timestamp-t;if(!(n<a))break;{const t=r.shift();t.timestamp=n,e.push(t)}}e.push({timestamp:a,difContent:s,difFIndex:c,difEIndex:u,selFIndex:i.startPos,selEIndex:i.endPos})}for(;r.length;){const n=r[0].timestamp-t,o=r.shift();o.timestamp=n,e.push(o)}return e},renderTime:function(e,t,n){if(0===e.length)return void console.warn("SPADE: No events to play.");let r,o,i=e[e.length-1].timestamp;for(let t=0;t<e.length;t++)if(e[t].difContent){r=e[t].difContent;break}for(let t=1;t<e.length;t++){if(o=e[t],o.eventName)continue;if(n*i<o.timestamp)break;let a=r;null!==o.difFIndex&&null!==o.difEIndex&&(r=a.substring(0,o.difFIndex)+o.difContent+a.substring(a.length-o.difEIndex,a.length))}let a={result:r};return o&&(a.selFIndex=o.selFIndex,a.selEIndex=o.selEIndex),a},renderToElem(e,t,n){n=n||0;let r=this.renderTime(e,t,n);r&&(t.setValue?(t.setValue(r.result),t.selection&&t.selection.moveCursorToPosition&&r.selFIndex&&(t.selection.moveCursorToPosition(r.selFIndex),t.selection.setSelectionAnchor(r.selEIndex.row,r.selEIndex.column))):t.value=r.result)},play:function(e,t,n,r){if(0===e.length)return void console.warn("SPADE: No events to play.");let o,i,a;n=n||0,this.renderToElem(e,t,n),(e=e.slice()).shift(),a=e.length>=1?e[e.length-1].timestamp:0;let s=n*a;this.elapsedTime=s;let c,u=(new Date).getTime();this.playback=c=setInterval(function(){o=(new Date).getTime(),i=o-u,i*=this.speed,s+=i;let n=e.filter((function(e){return e.timestamp>=s-i&&e.timestamp<s}));this.elapsedTime=s;for(let e=0;e<n.length;e++){let o=n[e],i=null;if(i=t.getValue?t.getValue():t.value,o.eventName)r&&r(o);else if(null!==o.difFIndex&&null!==o.difEIndex&&(t.setValue?t.setValue(i.substring(0,o.difFIndex)+o.difContent+i.substring(i.length-o.difEIndex,i.length)):t.value=i.substring(0,o.difFIndex)+o.difContent+i.substring(i.length-o.difEIndex,i.length)),t.selection&&t.selection.moveCursorToPosition)t.selection.moveCursorToPosition(o.selFIndex),t.selection.setSelectionAnchor(o.selEIndex.row,o.selEIndex.column);else{t.focus();let e=0,n=o.selFIndex.row,r=t.value.split("\n");for(;n>0;){let t=r.shift();if(void 0===t)break;e+=t.length,e++,n--}e+=o.selFIndex.column;let i=0;for(n=o.selEIndex.row,r=t.value.split("\n");n>0;){let e=r.shift();if(void 0===e)break;i+=e.length,i++,n--}i+=o.selEIndex.column,e>i?t.setSelectionRange(i,e):t.setSelectionRange(e,i)}}(void 0===e[e.length-1]||s>e[e.length-1].timestamp)&&clearInterval(c),u=o}.bind(this),10)},debugPlay:function(e){let t=document.createElement("textarea");t.zIndex=9999,t.style.width="256px",t.style.height="512px",t.style.position="absolute",t.style.left="100px",t.style.top="100px",document.body.appendChild(t);let n=document.createElement("div");n.zIndex=9999,n.style.width="256px",n.style.height="512px",n.style.position="absolute",n.style.left="356px",n.style.top="100px",n.style.border="1px solid red",n.style.backgroundColor="rgb(255,255,255)",document.body.appendChild(n),this.play(e,t,0,n)},condense:function(e){let t=[];for(let n=0;n<e.length;n++){let r=e[n];r.eventName?t.push(r):t.push([r.timestamp,r.difContent,r.difFIndex,r.difEIndex,r.selFIndex.row,r.selFIndex.column,r.selEIndex.row,r.selEIndex.column])}return t},expand:function(e){let t=[];for(let r=0;r<e.length;r++){let o=e[r];"object"!=typeof(n=o)||Array.isArray(n)?t.push({timestamp:o[0],difContent:o[1],difFIndex:o[2],difEIndex:o[3],selFIndex:{row:o[4],column:o[5]},selEIndex:{row:o[6],column:o[7]}}):t.push(o)}var n;return t}},e.exports=t},253203:(e,t,n)=>{var r,o;(o={}).populateDefaults=function(e,t,n){var r=this;return t.default&&!e&&(e=this.cloneDeep(t.default)),this.walk(e,t,n,(function(e,t,n){var o,i,a,s;if(o=n.default,"object"===r.type(o)&&"object"===r.type(t)){for(i in s=[],o)a=o[i],void 0===t[i]?s.push(t[i]=r.cloneDeep(a)):s.push(void 0);return s}})),e},o.populateRequireds=function(e,t,n){var r=this;return null==e&&(e={}),this.walk(e,t,n,(function(e,t,o){var i,a,s,c,u,l,d,p,f,h;if(o.required&&"object"===r.type(t)){for(h=[],l=0,d=(p=o.required).length;l<d;l++)null==t[a=p[l]]&&((s=null!=(f=o.default)?f[a]:void 0)?h.push(t[a]=r.cloneDeep(s)):(i=r.getChildSchema(a,o),null!=(s=(u=r.buildWorkingSchemas(i,n)[0]).default)?h.push(t[a]=r.cloneDeep(s)):(c=u.type,"array"===r.type(c)&&(c=c[0]),c||(c="string"),h.push(t[a]=r.defaultForType(c)))));return h}})),e},o.walk=function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m=this;if(null==o&&(o=""),n||((n=this.getGlobalTv4().freshApi()).addSchema("#",t),t.id&&n.addSchema(t.id,t)),l=this.buildWorkingSchemas(t,n),u=this.chooseWorkingSchema(e,l,n),r(o,e,u),"array"===(i=this.type(e))||"object"===i){if(a=function(t,i){var a,s;return i=e[t],(a=o.slice())&&(a+="."),a+=t,s=m.getChildSchema(t,u),m.walk(i,s,n,r,a)},"array"===i){for(f=[],s=d=0,p=e.length;d<p;s=++d)c=e[s],f.push(a(s,c));return f}for(s in h=[],e)c=e[s],h.push(a(s,c));return h}},o.getChildSchema=function(e,t){var n,r,o,i,a;if("string"===this.type(e)){for(n in i=t.properties)if(r=i[n],n===e)return r;for(n in a=t.patternProperties)if(r=a[n],e.match(new RegExp(n)))return r;if("object"==typeof t.additionalProperties)return t.additionalProperties}if("number"===this.type(e)&&(o=e,t.items))if(Array.isArray(t.items)){if(o<t.items.length)return t.items[o];if(t.additionalItems)return t.additionalItems}else if(t.items)return t.items;return{}},o.buildWorkingSchemas=function(e,t){var n,r,o,i,a,s,c,u,l,d,p,f;if(null==e&&(e={}),o=this.resolveReference(e,t),!(e.allOf||e.anyOf||e.oneOf))return[e];if(n=(o=this.cloneSchema(o)).allOf,r=o.anyOf,a=o.oneOf,null!=o.allOf&&delete o.allOf,null!=o.anyOf&&delete o.anyOf,null!=o.oneOf&&delete o.oneOf,null!=n)for(l=0,p=n.length;l<p;l++)e=n[l],this.combineSchemas(o,this.resolveReference(e,t));for(u=[],c=[],null!=r&&(c=c.concat(r)),null!=a&&(c=c.concat(a)),d=0,f=c.length;d<f;d++)s=c[d],s=this.resolveReference(s,t),i=this.cloneSchema(o),this.combineSchemas(i,s),u.push(i);return 0===u.length&&(u=[o]),u},o.chooseWorkingSchema=function(e,t,n){var r,o,i;if(1===t.length)return t[0];for(null==n&&(n=this.getGlobalTv4()),o=0,i=t.length;o<i;
2o++)if(r=t[o],n.validateMultiple(e,r).valid)return r;return t[0]},o.resolveReference=function(e,t,n){var r;return null==n&&(n=!1),null==e.$ref?e:(null==t&&(t=this.getGlobalTv4()),(r=t.getSchema(e.$ref))||console.warn("could not resolve reference",e.$ref,t.getMissingUris()),null==r&&(r={}),n&&null!=r.title&&delete r.title,r)},o.getGlobalTv4=function(){return"undefined"!=typeof window?window.tv4:void 0!==n.g?n.g.tv4:"undefined"!=typeof tv4?tv4:void 0},o.cloneSchema=function(e){var t,n,r;for(n in t={},e)r=e[n],t[n]=r;return t},o.combineSchemas=function(e,t){var n,r;for(n in t)r=t[n],e[n]=r;return e},o.cloneDeep=function(e){var t,n,r,o;if(t=e,"object"===(r=this.type(e))&&(t={}),"array"===r&&(t=[]),"object"===r||"array"===r)for(n in e)o=e[n],t[n]=this.cloneDeep(o);return t},o.type=function(){var e,t,n,r,o;for(e={},n=0,r=(o="Boolean Number String Function Array Date RegExp Undefined Null".split(" ")).length;n<r;n++)t=o[n],e["[object "+t+"]"]=t.toLowerCase();return function(t){var n;return n=Object.prototype.toString.call(t),e[n]||"object"}}(),o.defaultForType=function(e){return{string:"",number:0,null:null,object:{},integer:0,boolean:!1,array:[]}[e]},r="undefined"!=typeof TreemaNode?TreemaNode.utils=o:e.exports?e.exports=o:o,e.exports=r},106605:e=>{!function(e){if(!e.hasInitialised){var t={escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(e,t){var n=" ";return 1===e.nodeType&&(n+e.className+n).replace(/[\n\t]/g,n).indexOf(n+t+n)>=0},addClass:function(e,t){e.className+=" "+t},removeClass:function(e,t){var n=new RegExp("\\b"+this.escapeRegExp(t)+"\\b");e.className=e.className.replace(n,"")},interpolateString:function(e,t){return e.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,(function(e){return t(arguments[1])||""}))},getCookie:function(e){var t=("; "+document.cookie).split("; "+e+"=");return t.length<2?void 0:t.pop().split(";").shift()}
vendor: 6,200 bytes, line 2
2,setCookie:function(e,t,n,r,o,i){var a=new Date;a.setHours(a.getHours()+24*(n||365));var s=[e+"="+t,"expires="+a.toUTCString(),"path="+(o||"/")];r&&s.push("domain="+r),i&&s.push("secure"),document.cookie=s.join(";")},deepExtend:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(n in e&&this.isPlainObject(e[n])&&this.isPlainObject(t[n])?this.deepExtend(e[n],t[n]):e[n]=t[n]);return e},throttle:function(e,t){var n=!1;return function(){n||(e.apply(this,arguments),n=!0,setTimeout((function(){n=!1}),t))}},hash:function(e){var t,n,r=0;if(0===e.length)return r;for(t=0,n=e.length;t<n;++t)r=(r<<5)-r+e.charCodeAt(t),r|=0;return r},normaliseHex:function(e){return"#"==e[0]&&(e=e.substr(1)),3==e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),e},getContrast:function(e){return e=this.normaliseHex(e),(299*parseInt(e.substr(0,2),16)+587*parseInt(e.substr(2,2),16)+114*parseInt(e.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(e){var t=parseInt(this.normaliseHex(e),16),n=38+(t>>16),r=38+(t>>8&255),o=38+(255&t);return"#"+(16777216+65536*(n<255?n<1?0:n:255)+256*(r<255?r<1?0:r:255)+(o<255?o<1?0:o:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(e){return"object"==typeof e&&null!==e&&e.constructor==Object},traverseDOMPath:function(e,n){return e&&e.parentNode?t.hasClass(e,n)?e:this.traverseDOMPath(e.parentNode,n):null}};e.status={deny:"deny",allow:"allow",dismiss:"dismiss"},e.transitionEnd=function(){var e=document.createElement("div"),t={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var n in t)if(t.hasOwnProperty(n)&&void 0!==e.style[n+"ransition"])return t[n];return""}(),e.hasTransition=!!e.transitionEnd;var n=Object.keys(e.status).map(t.escapeRegExp);e.customStyles={},e.Popup=function(){var r={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(e){},onStatusChange:function(e,t){},onRevokeChoice:function(){},onNoCookieLaw:function(e,t){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span> ',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function o(){this.initialise.apply(this,arguments)}function i(e){this.openingTimeout=null,t.removeClass(e,"cc-invisible")}function a(t){t.style.display="none",t.removeEventListener(e.transitionEnd,this.afterTransition),this.afterTransition=null}function s(){var e=this.options.position.split("-"),t=[];return e.forEach((function(e){t.push("cc-"+e)})),t}function c(r){var o=this.options,i=document.createElement("div"),a=o.container&&1===o.container.nodeType?o.container:document.body;i.innerHTML=r;var s=i.children[0];return s.style.display="none",t.hasClass(s,"cc-window")&&e.hasTransition&&t.addClass(s,"cc-invisible"),this.onButtonClick=function(r){var o=t.traverseDOMPath(r.target,"cc-btn")||r.target;if(t.hasClass(o,"cc-btn")){var i=o.className.match(new RegExp("\\bcc-("+n.join("|")+")\\b")),a=i&&i[1]||!1;a&&(this.setStatus(a),this.close(!0))}t.hasClass(o,"cc-close")&&(this.setStatus(e.status.dismiss),this.close(!0)),t.hasClass(o,"cc-revoke")&&this.revokeChoice()}.bind(this),s.addEventListener("click",this.onButtonClick),o.autoAttach&&(a.firstChild?a.insertBefore(s,a.firstChild):a.appendChild(s)),s}function u(e){return"000000"==(e=t.normaliseHex(e))?"#222":t.getLuminance(e)}function l(e,t){for(var n=0,r=e.length;n<r;++n){var o=e[n];if(o instanceof RegExp&&o.test(t)||"string"==typeof o&&o.length&&o===t)return!0}return!1}return o.prototype.initialise=function(n){this.options&&this.destroy(),t.deepExtend(this.options={},r),t.isPlainObject(n)&&t.deepExtend(this.options,n),function(){var t=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return t(e.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return t(e.status.allow),!0;var n=Object.keys(e.status),r=this.getStatus(),o=n.indexOf(r)>=0;return o&&t(r),o}
2.call(this)&&(this.options.enabled=!1),l(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),l(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var o=this.options.window.replace("{{classes}}",function(){var n=this.options,r="top"==n.position||"bottom"==n.position?"banner":"floating";t.isMobile()&&(r="floating");var o=["cc-"+r,"cc-type-"+n.type,"cc-theme-"+n.theme];return n.static&&o.push("cc-static"),o.push.apply(o,s.call(this)),function(n){var r=t.hash(JSON.stringify(n)),o="cc-color-override-"+r,i=t.isPlainObject(n);return this.customStyleSelector=i?o:null,i&&function(n,r,o){if(e.customStyles[n])++e.customStyles[n].references;else{var i={},a=r.popup,s=r.button,c=r.highlight;a&&(a.text=a.text?a.text:t.getContrast(a.background),a.link=a.link?a.link:a.text,i[o+".cc-window"]=["color: "+a.text,"background-color: "+a.background],i[o+".cc-revoke"]=["color: "+a.text,"background-color: "+a.background],i[o+" .cc-link,"+o+" .cc-link:active,"+o+" .cc-link:visited"]=["color: "+a.link],s&&(s.text=s.text?s.text:t.getContrast(s.background),s.border=s.border?s.border:"transparent",i[o+" .cc-btn"]=["color: "+s.text,"border-color: "+s.border,"background-color: "+s.background],s.padding&&i[o+" .cc-btn"].push("padding: "+s.padding),"transparent"!=s.background&&(i[o+" .cc-btn:hover, "+o+" .cc-btn:focus"]=["background-color: "+(s.hover||u(s.background))]),c?(c.text=c.text?c.text:t.getContrast(c.background),c.border=c.border?c.border:"transparent",i[o+" .cc-highlight .cc-btn:first-child"]=["color: "+c.text,"border-color: "+c.border,"background-color: "+c.background]):i[o+" .cc-highlight .cc-btn:first-child"]=["color: "+a.text]));var l=document.createElement("style");document.head.appendChild(l),e.customStyles[n]={references:1,element:l.sheet};var d=-1;for(var p in i)i.hasOwnProperty(p)&&l.sheet.insertRule(p+"{"+i[p].join(";")+"}",++d)}}(r,n,"."+o),i}.call(this,this.options.palette),this.customStyleSelector&&o.push(this.customStyleSelector),o}.call(this).join(" ")).replace("{{children}}",function(){var e={},n=this.options;n.showLink||(n.elements.link="",n.elements.messagelink=n.elements.message),Object.keys(n.elements).forEach((function(r){e[r]=t.interpolateString(n.elements[r],(function(e){var t=n.content[e];return e&&"string"==typeof t&&t.length?t:""}))}));var r=n.compliance[n.type];r||(r=n.compliance.info),e.compliance=t.interpolateString(r,(function(t){return e[t]}));var o=n.layouts[n.layout];return o||(o=n.layouts.basic),t.interpolateString(o,(function(t){return e[t]}))}.call(this)),i=this.options.overrideHTML;if("string"==typeof i&&i.length&&(o=i),this.options.static){var a=c.call(this,'<div class="cc-grower">'+o+"</div>");a.style.display="",this.element=a.firstChild,this.element.style.display="none",t.addClass(this.element,"cc-invisible")}else this.element=c.call(this,o);(function(){var n=this.setStatus.bind(this),r=this.close.bind(this),o=this.options.dismissOnTimeout;"number"==typeof o&&o>=0&&(this.dismissTimeout=window.setTimeout((function(){n(e.status.dismiss),r(!0)}),Math.floor(o)));var i=this.options.dismissOnScroll;if("number"==typeof i&&i>=0){var a=function(t){window.pageYOffset>Math.floor(i)&&(n(e.status.dismiss),r(!0),window.removeEventListener("scroll",a),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=a,window.addEventListener("scroll",a))}var s=this.options.dismissOnWindowClick,c=this.options.ignoreClicksFrom;if(s){var u=function(o){for(var i=!1,a=o.path.length,s=c.length,l=0;l<a;l++)if(!i)for(var d=0;d<s;d++)i||(i=t.hasClass(o.path[l],c[d]));i||(n(e.status.dismiss),r(!0),window.removeEventListener("click",u),window.removeEventListener("touchend",u),this.onWindowClick=null)}.bind(this);this.options.enabled&&(this.onWindowClick=u,window.addEventListener("click",u),window.addEventListener("touchend",u))}}).call(this),function(){if("info"!=this.options.type&&(this.options.revokable=!0),t.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var e=s.call(this);this.options.animateRevokable&&e.push("cc-animate"),this.customStyleSelector&&e.push(this.customStyleSelector);var n=this.options.revokeBtn.replace("{{classes}}",e.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=c.call(this,n);var r=this.revokeBtn;if(this.options.animateRevokable){var o=t.throttle((function(e){var n=!1,o=window.innerHeight-20;
vendor: 9,656 bytes, line 2
2t.hasClass(r,"cc-top")&&e.clientY<20&&(n=!0),t.hasClass(r,"cc-bottom")&&e.clientY>o&&(n=!0),n?t.hasClass(r,"cc-active")||t.addClass(r,"cc-active"):t.hasClass(r,"cc-active")&&t.removeClass(r,"cc-active")}),200);this.onMouseMove=o,window.addEventListener("mousemove",o)}}}.call(this),this.options.autoOpen&&this.autoOpen()},o.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(n){if(t.isPlainObject(n)){var r=t.hash(JSON.stringify(n)),o=e.customStyles[r];if(o&&!--o.references){var i=o.element.ownerNode;i&&i.parentNode&&i.parentNode.removeChild(i),e.customStyles[r]=null}}}(this.options.palette),this.options=null},o.prototype.open=function(t){if(this.element)return this.isOpen()||(e.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},o.prototype.close=function(t){if(this.element)return this.isOpen()&&(e.hasTransition?this.fadeOut():this.element.style.display="none",t&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},o.prototype.fadeIn=function(){var n=this.element;if(e.hasTransition&&n&&(this.afterTransition&&a.call(this,n),t.hasClass(n,"cc-invisible"))){if(n.style.display="",this.options.static){var r=this.element.clientHeight;this.element.parentNode.style.maxHeight=r+"px"}this.openingTimeout=setTimeout(i.bind(this,n),20)}},o.prototype.fadeOut=function(){var n=this.element;e.hasTransition&&n&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),i.bind(this,n)),t.hasClass(n,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=a.bind(this,n),n.addEventListener(e.transitionEnd,this.afterTransition),t.addClass(n,"cc-invisible")))},o.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!e.hasTransition||!t.hasClass(this.element,"cc-invisible"))},o.prototype.toggleRevokeButton=function(e){this.revokeBtn&&(this.revokeBtn.style.display=e?"":"none")},o.prototype.revokeChoice=function(e){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),e||this.autoOpen()},o.prototype.hasAnswered=function(t){return Object.keys(e.status).indexOf(this.getStatus())>=0},o.prototype.hasConsented=function(t){var n=this.getStatus();return n==e.status.allow||n==e.status.dismiss},o.prototype.autoOpen=function(e){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},o.prototype.setStatus=function(n){var r=this.options.cookie,o=t.getCookie(r.name),i=Object.keys(e.status).indexOf(o)>=0;Object.keys(e.status).indexOf(n)>=0?(t.setCookie(r.name,n,r.expiryDays,r.domain,r.path,r.secure),this.options.onStatusChange.call(this,n,i)):this.clearStatus()},o.prototype.getStatus=function(){return t.getCookie(this.options.cookie.name)},o.prototype.clearStatus=function(){var e=this.options.cookie;t.setCookie(e.name,"",-1,e.domain,e.path)},o}(),e.Location=function(){var e={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(e,t){try{var n=JSON.parse(t);return n.error?i(n):{code:n.country}}catch(e){return i({error:"Invalid response ("+e+")"})}}}},ipinfodb:function(e){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(e,t){try{var n=JSON.parse(t);return"ERROR"==n.statusCode?i({error:n.statusMessage}):{code:n.countryCode}}catch(e){return i({error:"Invalid response ("+e+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(e){window.geoip2?geoip2.country((function(t){try{e({code:t.country.iso_code})}catch(t){e(i(t))}}),(function(t){e(i(t))})):e(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function n(n){t.deepExtend(this.options={},e),t.isPlainObject(n)&&t.deepExtend(this.options,n),this.currentServiceIndex=-1}function r(e,t,n){var r,o=document.createElement("script");o.type="text/"+(e.type||"javascript"),o.src=e.src||e,o.async=!1,o.onreadystatechange=o.onload=function(){var e=o.readyState;clearTimeout(r),t.done||e&&!/loaded|complete/.test(e)||(t.done=!0,t(),o.onreadystatechange=o.onload=null)},document.body.appendChild(o),r=setTimeout((function(){t.done=!0,t(),o.onreadystatechange=o.onload=null}),n)}function o(e,t,n,r,o){var i=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(i.open(r?"POST":"GET",e,1),i.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(o))for(var a=0,s=o.length;a<s;++a){var c=o[a].split(":",2);i.setRequestHeader(c[0].replace(/^\s+|\s+$/g,""),c[1].replace(/^\s+|\s+$/g,""))}"function"==typeof t&&(i.onreadystatechange=function(){i.readyState>3&&t(i)}),i.send(r)}function i(e){return new Error("Error ["+(e.code||"UNKNOWN")+"]: "+e.error)}return n.prototype.getNextService=function(){var e;do{e=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!e);return e},n.prototype.getServiceByIdx=function(e){var n=this.options.services[e];if("function"==typeof n){var r=n();return r.name&&t.deepExtend(r,this.options.serviceDefinitions[r.name](r)),r}return"string"==typeof n?this.options.serviceDefinitions[n]():t.isPlainObject(n)?this.options.serviceDefinitions[n.name](n):null},n.prototype.locate=function(e,t){var n=this.getNextService();n?(this.callbackComplete=e,this.callbackError=t,this.runService(n,this.runNextServiceOnError.bind(this))):t(new Error("No services to run"))},n.prototype.setupUrl=function(e){var t=this.getCurrentServiceOpts();return e.url.replace(/\{(.*?)\}/g,(function(n,r){if("callback"===r){var o="callback"+Date.now();return window[o]=function(t){e.__JSONP_DATA=JSON.stringify(t)},o}if(r in t.interpolateUrl)return t.interpolateUrl[r]}))},n.prototype.runService=function(e,t){var n=this;e&&e.url&&e.callback&&(e.isScript?r:o)(this.setupUrl(e),(function(r){var o=r?r.responseText:"";e.__JSONP_DATA&&(o=e.__JSONP_DATA,delete e.__JSONP_DATA),n.runServiceCallback.call(n,t,e,o)}),this.options.timeout,e.data,e.headers)},n.prototype.runServiceCallback=function(e,t,n){var r=this,o=t.callback((function(t){o||r.onServiceResult.call(r,e,t)}),n);o&&this.onServiceResult.call(this,e,o)},n.prototype.onServiceResult=function(e,t){t instanceof Error||t&&t.error?e.call(this,t,null):e.call(this,null,t)},n.prototype.runNextServiceOnError=function(e,t){if(e){this.logError(e);var n=this.getNextService();n?this.runService(n,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,t)},n.prototype.getCurrentServiceOpts=function(){var e=this.options.services[this.currentServiceIndex];return"string"==typeof e?{name:e}:"function"==typeof e?e():t.isPlainObject(e)?e:{}},n.prototype.completeService=function(e,t){this.currentServiceIndex=-1,e&&e(t)},n.prototype.logError=function(e){var t=this.currentServiceIndex,n=this.getServiceByIdx(t);console.warn("The service["+t+"] ("+n.url+") responded with the following error",e)},n}(),e.Law=function(){var e={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function n(e){this.initialise.apply(this,arguments)}return n.prototype.initialise=function(n){t.deepExtend(this.options={},e),t.isPlainObject(n)&&t.deepExtend(this.options,n)},n.prototype.get=function(e){var t=this.options;return{hasLaw:t.hasLaw.indexOf(e)>=0,revokable:t.revokable.indexOf(e)>=0,explicitAction:t.explicitAction.indexOf(e)>=0}},n.prototype.applyLaw=function(e,t){var n=this.get(t);return n.hasLaw||(e.enabled=!1,"function"==typeof e.onNoCookieLaw&&e.onNoCookieLaw(t,n)),this.options.regionalLaw&&(n.revokable&&(e.revokable=!0),n.explicitAction&&(e.dismissOnScroll=!1,e.dismissOnTimeout=!1)),e},n}(),e.initialise=function(n,r,o){var i=new e.Law(n.law);r||(r=function(){}),o||(o=function(){});var a=Object.keys(e.status),s=t.getCookie("cookieconsent_status");a.indexOf(s)>=0?r(new e.Popup(n)):e.getCountryCode(n,(function(t){delete n.law,delete n.location,t.code&&(n=i.applyLaw(n,t.code)),r(new e.Popup(n))}),(function(t){delete n.law,delete n.location,o(t,new e.Popup(n))}))},e.getCountryCode=function(t,n,r){t.law&&t.law.countryCode?n({code:t.law.countryCode}):t.location?new e.Location(t.location).locate((function(e){n(e||{})}),r):n({})},e.utils=t,e.hasInitialised=!0,window.cookieconsent=e}}(window.cookieconsent||{}),e.exports=cookieconsent},144291:(e,t,n)=>{"use strict";n.r(t),n.d(t,{createFocusTrap:()=>I});var r=["input","select","textarea","a[href]","button","[tabindex]:not
2(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],o=r.join(","),i="undefined"==typeof Element,a=i?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!i&&Element.prototype.getRootNode?function(e){return e.getRootNode()}:function(e){return e.ownerDocument},c=function(e,t,n){var r=Array.prototype.slice.apply(e.querySelectorAll(o));return t&&a.call(e,o)&&r.unshift(e),r.filter(n)},u=function e(t,n,r){for(var i=[],s=Array.from(t);s.length;){var c=s.shift();if("SLOT"===c.tagName){var u=c.assignedElements(),l=e(u.length?u:c.children,!0,r);r.flatten?i.push.apply(i,l):i.push({scope:c,candidates:l})}else{a.call(c,o)&&r.filter(c)&&(n||!t.includes(c))&&i.push(c);var d=c.shadowRoot||"function"==typeof r.getShadowRoot&&r.getShadowRoot(c),p=!r.shadowRootFilter||r.shadowRootFilter(c);if(d&&p){var f=e(!0===d?c.children:d.children,!0,r);r.flatten?i.push.apply(i,f):i.push({scope:c,candidates:f})}else s.unshift.apply(s,c.children)}}return i},l=function(e,t){return e.tabIndex<0&&(t||/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||e.isContentEditable)&&isNaN(parseInt(e.getAttribute("tabindex"),10))?0:e.tabIndex},d=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},p=function(e){return"INPUT"===e.tagName},f=function(e){var t=e.getBoundingClientRect(),n=t.width,r=t.height;return 0===n&&0===r},h=function(e,t){return!(t.disabled||function(e){return p(e)&&"hidden"===e.type}(t)||function(e,t){var n=t.displayCheck,r=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=a.call(e,"details>summary:first-of-type")?e.parentElement:e;if(a.call(o,"details:not([open]) *"))return!0;var i=s(e).host,c=(null==i?void 0:i.ownerDocument.contains(i))||e.ownerDocument.contains(e);if(n&&"full"!==n){if("non-zero-area"===n)return f(e)}else{if("function"==typeof r){for(var u=e;e;){var l=e.parentElement,d=s(e);if(l&&!l.shadowRoot&&!0===r(l))return f(e);e=e.assignedSlot?e.assignedSlot:l||d===e.ownerDocument?l:d.host}e=u}if(c)return!e.getClientRects().length}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var n=0;n<t.children.length;n++){var r=t.children.item(n);if("LEGEND"===r.tagName)return!!a.call(t,"fieldset[disabled] *")||!r.contains(e)}return!0}t=t.parentElement}return!1}(t))},m=function(e,t){return!(function(e){return function(e){return p(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,n=e.form||s(e),r=function(e){return n.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=r(window.CSS.escape(e.name));else try{t=r(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]}(t,e.form);return!o||o===e}(e)}(t)||l(t)<0||!h(e,t))},g=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},y=function e(t){var n=[],r=[];return t.forEach((function(t,o){var i=!!t.scope,a=i?t.scope:t,s=l(a,i),c=i?e(t.candidates):a;0===s?i?n.push.apply(n,c):n.push(a):r.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:c})})),r.sort(d).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(n)},v=function(e,t){var n;return n=(t=t||{}).getShadowRoot?u([e],t.includeContainer,{filter:m.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:g}):c(e,t.includeContainer,m.bind(null,t)),y(n)},b=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,o)&&m(t,e)},_=r.concat("iframe").join(","),w=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==a.call(e,_)&&h(t,e)};function S(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function C(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?S(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x,E=(x=[],{activateTrap:function(e){if(x.length>0){var t=x[x.length-1];t!==e&&t.pause()}var n=x.indexOf(e);-1===n||x.splice(n,1),x.push(e)},deactivateTrap:function(e){var t=x.indexOf(e);-1!==t&&x.splice(t,1),x.length>0&&x[x.length-1].unpause()}}),O=function(e){return setTimeout(e,0)},T=function(e,t){var n=-1;return e.every((function(e,r){return!t(e)||(n=r,!1)})),n},A=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e.apply(void 0,n):e},P=function(e){return e.target.shadowRoot&&"function"==typeof e.composedPath?e.composedPath()[0]:e.target},I=function(e,t){var n,r=(null==t?void 0:t.document)||document,o=C({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},t),i={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(e,t,n){return e&&void 0!==e[t]?e[t]:o[n||t]},s=function(e){return i.containerGroups.findIndex((function(t){var n=t.container,r=t.tabbableNodes;return n.contains(e)||r.find((function(t){return t===e}))}))},l=function(e){var t=o[e];if("function"==typeof t){for(var n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];t=t.apply(void 0,i)}if(!0===t&&(t=void 0),!t){if(void 0===t||!1===t)return t;throw new Error("`".concat(e,"` was specified but was not a node, or did not return a node"))}var s=t;if("string"==typeof t&&!(s=r.querySelector(t)))throw new Error("`".concat(e,"` as selector refers to no known node"));return s},d=function(){var e=l("initialFocus");if(!1===e)return!1;if(void 0===e)if(s(r.activeElement)>=0)e=r.activeElement;else{var t=i.tabbableGroups[0];e=t&&t.firstTabbableNode||l("fallbackFocus")}if(!e)throw new Error("Your focus-trap needs to have at least one focusable element");return e},p=function(){if(i.containerGroups=i.containers.map((function(e){var t,n,r=v(e,o.tabbableOptions),i=(t=e,(n=(n=o.tabbableOptions)||{}).getShadowRoot?u([t],n.includeContainer,{filter:h.bind(null,n),flatten:!0,getShadowRoot:n.getShadowRoot}):c(t,n.includeContainer,h.bind(null,n)));return{container:e,tabbableNodes:r,focusableNodes:i,firstTabbableNode:r.length>0?r[0]:null,lastTabbableNode:r.length>0?r[r.length-1]:null,nextTabbableNode:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=i.findIndex((function(t){return t===e}));if(!(n<0))return t?i.slice(n+1).find((function(e){return b(e,o.tabbableOptions)})):i.slice(0,n).reverse().find((function(e){return b(e,o.tabbableOptions)}))}}})),i.tabbableGroups=i.containerGroups.filter((function(e){return e.tabbableNodes.length>0})),i.tabbableGroups.length<=0&&!l("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},f=function e(t){!1!==t&&t!==r.activeElement&&(t&&t.focus?(t.focus({preventScroll:!!o.preventScroll}),i.mostRecentlyFocusedNode=t,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(t)&&t.select()):e(d()))},m=function(e){var t=l("setReturnFocus",e);return t||!1!==t&&e},g=function(e){var t=P(e);s(t)>=0||(A(o.clickOutsideDeactivates,e)?n.deactivate({returnFocus:o.returnFocusOnDeactivate&&!w(t,o.tabbableOptions)}):A(o.allowOutsideClick,e)||e.preventDefault())},y=function(e){var t=P(e),n=s(t)>=0;n||t instanceof Document?n&&(i.mostRecentlyFocusedNode=t):(e.stopImmediatePropagation(),f(i.mostRecentlyFocusedNode||d()))},_=function(e){if(function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e)&&!1!==A(o.escapeDeactivates,e))return e.preventDefault(),void n.deactivate();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){var t=P(e);p();var n=null;if(i.tabbableGroups.length>0){var r=s(t),a=r>=0?i.containerGroups[r]:void 0;if(r<0)n=e.shiftKey?i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:i.tabbableGroups[0].firstTabbableNode;
2else if(e.shiftKey){var c=T(i.tabbableGroups,(function(e){var n=e.firstTabbableNode;return t===n}));if(c<0&&(a.container===t||w(t,o.tabbableOptions)&&!b(t,o.tabbableOptions)&&!a.nextTabbableNode(t,!1))&&(c=r),c>=0){var u=0===c?i.tabbableGroups.length-1:c-1;n=i.tabbableGroups[u].lastTabbableNode}}else{var d=T(i.tabbableGroups,(function(e){var n=e.lastTabbableNode;return t===n}));if(d<0&&(a.container===t||w(t,o.tabbableOptions)&&!b(t,o.tabbableOptions)&&!a.nextTabbableNode(t))&&(d=r),d>=0){var h=d===i.tabbableGroups.length-1?0:d+1;n=i.tabbableGroups[h].firstTabbableNode}}}else n=l("fallbackFocus");n&&(e.preventDefault(),f(n))}(e)},S=function(e){var t=P(e);s(t)>=0||A(o.clickOutsideDeactivates,e)||A(o.allowOutsideClick,e)||(e.preventDefault(),e.stopImmediatePropagation())},k=function(){if(i.active)return E.activateTrap(n),i.delayInitialFocusTimer=o.delayInitialFocus?O((function(){f(d())})):f(d()),r.addEventListener("focusin",y,!0),r.addEventListener("mousedown",g,{capture:!0,passive:!1}),r.addEventListener("touchstart",g,{capture:!0,passive:!1}),r.addEventListener("click",S,{capture:!0,passive:!1}),r.addEventListener("keydown",_,{capture:!0,passive:!1}),n},x=function(){if(i.active)return r.removeEventListener("focusin",y,!0),r.removeEventListener("mousedown",g,!0),r.removeEventListener("touchstart",g,!0),r.removeEventListener("click",S,!0),r.removeEventListener("keydown",_,!0),n};return(n={get active(){return i.active},get paused(){return i.paused},activate:function(e){if(i.active)return this;var t=a(e,"onActivate"),n=a(e,"onPostActivate"),o=a(e,"checkCanFocusTrap");o||p(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=r.activeElement,t&&t();var s=function(){o&&p(),k(),n&&n()};return o?(o(i.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(e){if(!i.active)return this;var t=C({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},e);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,x(),i.active=!1,i.paused=!1,E.deactivateTrap(n);var r=a(t,"onDeactivate"),s=a(t,"onPostDeactivate"),c=a(t,"checkCanReturnFocus"),u=a(t,"returnFocus","returnFocusOnDeactivate");r&&r();var l=function(){O((function(){u&&f(m(i.nodeFocusedBeforeActivation)),s&&s()}))};return u&&c?(c(m(i.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return i.paused||!i.active||(i.paused=!0,x()),this},unpause:function(){return i.paused&&i.active?(i.paused=!1,p(),k(),this):this}
vendor: 5,759 bytes, line 2
2,updateContainerElements:function(e){var t=[].concat(e).filter(Boolean);return i.containers=t.map((function(e){return"string"==typeof e?r.querySelector(e):e})),i.active&&p(),this}}).updateContainerElements(e),n}},749804:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;e.exports=function(e,r,o){if("[object Function]"!==n.call(r))throw new TypeError("iterator must be a function");var i=e.length;if(i===+i)for(var a=0;a<i;a++)r.call(o,e[a],a,e);else for(var s in e)t.call(e,s)&&r.call(o,e[s],s,e)}},158908:(e,t,n)=>{var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=r},441766:(e,t,n)=>{var r;!function(){"use strict";var o=function(){this.init()};o.prototype={init:function(){var e=this||i;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||i;if(e=parseFloat(e),t.ctx||f(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,i.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),o=0;o<r.length;o++){var a=t._howls[n]._soundById(r[o]);a&&a._node&&(a._node.volume=a._volume*e)}return t}return t._volume},mute:function(e){var t=this||i;t.ctx||f(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,i.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),o=0;o<r.length;o++){var a=t._howls[n]._soundById(r[o]);a&&a._node&&(a._node.muted=!!e||a._muted)}return t},stop:function(){for(var e=this||i,t=0;t<e._howls.length;t++)e._howls[t].stop();return e},unload:function(){for(var e=this||i,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,f()),e},codecs:function(e){return(this||i)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||i;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(e){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||i,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(t){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator?e._navigator.userAgent:"",o=r.match(/OPR\/([0-6].)/g),a=o&&parseInt(o[0].split("/")[1],10)<33,s=-1!==r.indexOf("Safari")&&-1===r.indexOf("Chrome"),c=r.match(/Version\/(.*?) /),u=s&&c&&parseInt(c[1],10)<15;return e._codecs={mp3:!(a||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(t.canPlayType('audio/wav; codecs="1"')||t.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(t.canPlayType("audio/x-m4b;")||t.canPlayType("audio/m4b;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(u||!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||i;if(!e._audioUnlocked&&e.ctx){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var t=function(n){for(;e._html5AudioPool.length<e.html5PoolSize;)try{var r=new Audio;r._unlocked=!0,e._releaseHtml5Audio(r)}catch(n){e.noAudio=!0;break}for(var o=0;o<e._howls.length;o++)if(!e._howls[o]._webAudio)for(var i=e._howls[o]._getSoundIds(),a=0;a<i.length;a++){var s=e._howls[o]._soundById(i[a]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var c=e.ctx.createBufferSource();c.buffer=e._scratchBuffer,c.connect(e.ctx.destination),void 0===c.start?c.noteOn(0):c.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),c.onended=function(){c.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",t,!0),document.removeEventListener("touchend",t,!0),document.removeEventListener("click",t,!0),document.removeEventListener("keydown",t,!0);for(var n=0;n<e._howls.length;n++)e._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",t,!0),document.addEventListener("touchend",t,!0),document.addEventListener("click",t,!0),document.addEventListener("keydown",t,!0),e}},_obtainHtml5Audio:function(){var e=this||i;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch((function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")})),new Audio},_releaseHtml5Audio:function(e){var t=this||i;
vendor: 9,167 bytes, line 2
2return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&i.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout((function(){if(e.autoSuspend){e._suspendTimer=null,e.state="suspending";var t=function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())};e.ctx.suspend().then(t,t)}}),3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&i.usingWebAudio)return"running"===e.state&&"interrupted"!==e.ctx.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state||"running"===e.state&&"interrupted"===e.ctx.state?(e.ctx.resume().then((function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")})),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var i=new o,a=function(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")};a.prototype={init:function(e){var t=this;return i.ctx||f(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload&&"metadata"!==e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhr={method:e.xhr&&e.xhr.method?e.xhr.method:"GET",headers:e.xhr&&e.xhr.headers?e.xhr.headers:null,withCredentials:!(!e.xhr||!e.xhr.withCredentials)&&e.xhr.withCredentials},t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=i.usingWebAudio&&!t._html5,void 0!==i.ctx&&i.ctx&&i.autoUnlock&&i._unlockAudio(),i._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&"none"!==t._preload&&t.load(),t},load:function(){var e=this,t=null;if(i.noAudio)e._emit("loaderror",null,"No audio support.");else{"string"==typeof e._src&&(e._src=[e._src]);for(var n=0;n<e._src.length;n++){var r,o;if(e._format&&e._format[n])r=e._format[n];else{if("string"!=typeof(o=e._src[n])){e._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(r=/^data:audio\/([^;,]+);/i.exec(o))||(r=/\.([^.]+)$/.exec(o.split("?",1)[0])),r&&(r=r[1].toLowerCase())}if(r||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),r&&i.codecs(r)){t=e._src[n];break}}if(t)return e._src=t,e._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(e._html5=!0,e._webAudio=!1),new s(e),e._webAudio&&u(e),e;e._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var n=this,r=null;if("number"==typeof e)r=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e&&(e="__default",!n._playLock)){for(var o=0,a=0;a<n._sounds.length;a++)n._sounds[a]._paused&&!n._sounds[a]._ended&&(o++,r=n._sounds[a]._id);1===o?e=null:r=null}}var s=r?n._soundById(r):n._inactiveSound();if(!s)return null;if(r&&!e&&(e=s._sprite||"__default"),"loaded"!==n._state){s._sprite=e,s._ended=!1;var c=s._id;return n._queue.push({event:"play",action:function(){n.play(c)}}),c}if(r&&!s._paused)return t||n._loadQueue("play"),s._id;n._webAudio&&i._autoResume();var u=Math.max(0,s._seek>0?s._seek:n._sprite[e][0]/1e3),l=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-u),d=1e3*l/Math.abs(s._rate),p=n._sprite[e][0]/1e3,f=(n._sprite[e][0]+n._sprite[e][1])/1e3;s._sprite=e,s._ended=!1;var h=function(){s._paused=!1,s._seek=u,s._start=p,s._stop=f,s._loop=!(!s._loop&&!n._sprite[e][2])};if(!(u>=f)){var m=s._node;if(n._webAudio){var g=function(){n._playLock=!1,h(),n._refreshBuffer(s);var e=s._muted||n._muted?0:s._volume;m.gain.setValueAtTime(e,i.ctx.currentTime),s._playStart=i.ctx.currentTime,void 0===m.bufferSource.start?s._loop?m.bufferSource.noteGrainOn(0,u,86400):m.bufferSource.noteGrainOn(0,u,l):s._loop?m.bufferSource.start(0,u,86400):m.bufferSource.start(0,u,l),d!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d)),t||setTimeout((function(){n._emit("play",s._id),n._loadQueue()}),0)};"running"===i.state&&"interrupted"!==i.ctx.state?g():(n._playLock=!0,n.once("resume",g),n._clearTimer(s._id))}else{var y=function(){m.currentTime=u,m.muted=s._muted||n._muted||i._muted||m.muted,m.volume=s._volume*i.volume(),m.playbackRate=s._rate;try{var r=m.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,h(),r.then((function(){n._playLock=!1,m._unlocked=!0,t?n._loadQueue():n._emit("play",s._id)})).catch((function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0}))):t||(n._playLock=!1,h(),n._emit("play",s._id)),m.playbackRate=s._rate,m.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),d):(n._endTimers[s._id]=function(){n._ended(s),m.removeEventListener("ended",n._endTimers[s._id],!1)},m.addEventListener("ended",n._endTimers[s._id],!1))}catch(e){n._emit("playerror",s._id,e)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var v=window&&window.ejecta||!m.readyState&&i._navigator.isCocoonJS;if(m.readyState>=3||v)y();else{n._playLock=!0,n._state="loading";var b=function(){n._state="loaded",y(),m.removeEventListener(i._canPlayEvent,b,!1)};m.addEventListener(i._canPlayEvent,b,!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),r=0;r<n.length;r++){t._clearTimer(n[r]);var o=t._soundById(n[r]);if(o&&!o._paused&&(o._seek=t.seek(n[r]),o._rateSeek=0,o._paused=!0,t._stopFade(n[r]),o._node))if(t._webAudio){if(!o._node.bufferSource)continue;void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),t._cleanBuffer(o._node)}else isNaN(o._node.duration)&&o._node.duration!==1/0||o._node.pause();arguments[1]||t._emit("pause",o?o._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var r=n._getSoundIds(e),o=0;o<r.length;o++){n._clearTimer(r[o]);var i=n._soundById(r[o]);i&&(i._seek=i._start||0,i._rateSeek=0,i._paused=!0,i._ended=!0,n._stopFade(r[o]),i._node&&(n._webAudio?i._node.bufferSource&&(void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),n._cleanBuffer(i._node)):isNaN(i._node.duration)&&i._node.duration!==1/0||(i._node.currentTime=i._start||0,i._node.pause(),i._node.duration===1/0&&n._clearSound(i._node))),t||n._emit("stop",i._id))}return n},mute:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var r=n._getSoundIds(t),o=0;o<r.length;o++){var a=n._soundById(r[o]);a&&(a._muted=e,a._interval&&n._stopFade(a._id),n._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,i.ctx.currentTime):a._node&&(a._node.muted=!!i._muted||e),n._emit("mute",a._id))}return n},volume:function(){var e,t,n,r=this,o=arguments;if(0===o.length)return r._volume;if(1===o.length||2===o.length&&void 0===o[1]){var a=r._getSoundIds(),s=a.indexOf(o[0]);s>=0?t=parseInt(o[0],10):e=parseFloat(o[0])}else o.length>=2&&(e=parseFloat(o[0]),t=parseInt(o[1],10));if(!(void 0!==e&&e>=0&&e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,o)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var c=0;c<t.length;c++)(n=r._soundById(t[c]))&&(n._volume=e,o[2]||r._stopFade(t[c]),r._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,i.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*i.volume()),r._emit
vendor: 9,688 bytes, line 2
2("volume",n._id));return r},fade:function(e,t,n,r){var o=this;if("loaded"!==o._state||o._playLock)return o._queue.push({event:"fade",action:function(){o.fade(e,t,n,r)}}),o;e=Math.min(Math.max(0,parseFloat(e)),1),t=Math.min(Math.max(0,parseFloat(t)),1),n=parseFloat(n),o.volume(e,r);for(var a=o._getSoundIds(r),s=0;s<a.length;s++){var c=o._soundById(a[s]);if(c){if(r||o._stopFade(a[s]),o._webAudio&&!c._muted){var u=i.ctx.currentTime,l=u+n/1e3;c._volume=e,c._node.gain.setValueAtTime(e,u),c._node.gain.linearRampToValueAtTime(t,l)}o._startFadeInterval(c,e,t,n,a[s],void 0===r)}}return o},_startFadeInterval:function(e,t,n,r,o,i){var a=this,s=t,c=n-t,u=Math.abs(c/.01),l=Math.max(4,u>0?r/u:r),d=Date.now();e._fadeTo=n,e._interval=setInterval((function(){var o=(Date.now()-d)/r;d=Date.now(),s+=c*o,s=Math.round(100*s)/100,s=c<0?Math.max(n,s):Math.min(n,s),a._webAudio?e._volume=s:a.volume(s,e._id,!0),i&&(a._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))}),l)},_stopFade:function(e){var t=this,n=t._soundById(e);return n&&n._interval&&(t._webAudio&&n._node.gain.cancelScheduledValues(i.ctx.currentTime),clearInterval(n._interval),n._interval=null,t.volume(n._fadeTo,e),n._fadeTo=null,t._emit("fade",e)),t},loop:function(){var e,t,n,r=this,o=arguments;if(0===o.length)return r._loop;if(1===o.length){if("boolean"!=typeof o[0])return!!(n=r._soundById(parseInt(o[0],10)))&&n._loop;e=o[0],r._loop=e}else 2===o.length&&(e=o[0],t=parseInt(o[1],10));for(var i=r._getSoundIds(t),a=0;a<i.length;a++)(n=r._soundById(i[a]))&&(n._loop=e,r._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,r.playing(i[a])&&(r.pause(i[a],!0),r.play(i[a],!0)))));return r},rate:function(){var e,t,n,r=this,o=arguments;if(0===o.length)t=r._sounds[0]._id;else if(1===o.length){var a=r._getSoundIds(),s=a.indexOf(o[0]);s>=0?t=parseInt(o[0],10):e=parseFloat(o[0])}else 2===o.length&&(e=parseFloat(o[0]),t=parseInt(o[1],10));if("number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,o)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var c=0;c<t.length;c++)if(n=r._soundById(t[c])){r.playing(t[c])&&(n._rateSeek=r.seek(t[c]),n._playStart=r._webAudio?i.ctx.currentTime:n._playStart),n._rate=e,r._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,i.ctx.currentTime):n._node&&(n._node.playbackRate=e);var u=r.seek(t[c]),l=(r._sprite[n._sprite][0]+r._sprite[n._sprite][1])/1e3-u,d=1e3*l/Math.abs(n._rate);!r._endTimers[t[c]]&&n._paused||(r._clearTimer(t[c]),r._endTimers[t[c]]=setTimeout(r._ended.bind(r,n),d)),r._emit("rate",n._id)}return r},seek:function(){var e,t,n=this,r=arguments;if(0===r.length)n._sounds.length&&(t=n._sounds[0]._id);else if(1===r.length){var o=n._getSoundIds(),a=o.indexOf(r[0]);a>=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0]))}else 2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10));if(void 0===t)return 0;if("number"==typeof e&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var s=n._soundById(t);if(s){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var c=n.playing(t)?i.ctx.currentTime-s._playStart:0,u=s._rateSeek?s._rateSeek-s._seek:0;return s._seek+(u+c*Math.abs(s._rate))}return s._node.currentTime}var l=n.playing(t);l&&n.pause(t,!0),s._seek=e,s._ended=!1,n._clearTimer(t),n._webAudio||!s._node||isNaN(s._node.duration)||(s._node.currentTime=e);var d=function(){l&&n.play(t,!0),n._emit("seek",t)};if(l&&!n._webAudio){var p=function(){n._playLock?setTimeout(p,0):d()};setTimeout(p,0)}else d()}return n},playing:function(e){var t=this;if("number"==typeof e){var n=t._soundById(e);return!!n&&!n._paused}for(var r=0;r<t._sounds.length;r++)if(!t._sounds[r]._paused)return!0;return!1},duration:function(e){var t=this,n=t._duration,r=t._soundById(e);return r&&(n=t._sprite[r._sprite][1]/1e3),n},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++)t[n]._paused||e.stop(t[n]._id),e._webAudio||(e._clearSound(t[n]._node),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(i._canPlayEvent,t[n]._loadFn,!1),t[n]._node.removeEventListener("ended",t[n]._endFn,!1),i._releaseHtml5Audio(t[n]._node)),delete t[n]._node,e._clearTimer(t[n]._id);var r=i._howls.indexOf(e);r>=0&&i._howls.splice(r,1);var o=!0;for(n=0;n<i._howls.length;n++)if(i._howls[n]._src===e._src||e._src.indexOf(i._howls[n]._src)>=0){o=!1;break}return c&&o&&delete c[e._src],i.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,r){var o=this["_on"+e];return"function"==typeof t&&o.push(r?{id:n,fn:t,once:r}:{id:n,fn:t}),this},off:function(e,t,n){var r=this,o=r["_on"+e],i=0;if("number"==typeof t&&(n=t,t=null),t||n)for(i=0;i<o.length;i++){var a=n===o[i].id;if(t===o[i].fn&&a||!t&&a){o.splice(i,1);break}}else if(e)r["_on"+e]=[];else{var s=Object.keys(r);for(i=0;i<s.length;i++)0===s[i].indexOf("_on")&&Array.isArray(r[s[i]])&&(r[s[i]]=[])}return r},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var r=this,o=r["_on"+e],i=o.length-1;i>=0;i--)o[i].id&&o[i].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(r,o[i].fn),0),o[i].once&&r.off(e,o[i].fn,o[i].id));return r._loadQueue(e),r},_loadQueue:function(e){var t=this;if(t._queue.length>0){var n=t._queue[0];n.event===e&&(t._queue.shift(),t._loadQueue()),e||n.action()}return t},_ended:function(e){var t=this,n=e._sprite;if(!t._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(t._ended.bind(t,e),100),t;var r=!(!e._loop&&!t._sprite[n][2]);if(t._emit("end",e._id),!t._webAudio&&r&&t.stop(e._id,!0).play(e._id),t._webAudio&&r){t._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=i.ctx.currentTime;var o=1e3*(e._stop-e._start)/Math.abs(e._rate);t._endTimers[e._id]=setTimeout(t._ended.bind(t,e),o)}return t._webAudio&&!r&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,t._clearTimer(e._id),t._cleanBuffer(e._node),i._autoSuspend()),t._webAudio||r||t.stop(e._id,!0),t},_clearTimer:function(e){var t=this;if(t._endTimers[e]){if("function"!=typeof t._endTimers[e])clearTimeout(t._endTimers[e]);else{var n=t._soundById(e);n&&n._node&&n._node.removeEventListener("ended",t._endTimers[e],!1)}delete t._endTimers[e]}return t},_soundById:function(e){for(var t=this,n=0;n<t._sounds.length;n++)if(e===t._sounds[n]._id)return t._sounds[n];return null},_inactiveSound:function(){var e=this;e._drain();for(var t=0;t<e._sounds.length;t++)if(e._sounds[t]._ended)return e._sounds[t].reset();return new s(e)},_drain:function(){var e=this,t=e._pool,n=0,r=0;if(!(e._sounds.length<t)){for(r=0;r<e._sounds.length;r++)e._sounds[r]._ended&&n++;for(r=e._sounds.length-1;r>=0;r--){if(n<=t)return;e._sounds[r]._ended&&(e._webAudio&&e._sounds[r]._node&&e._sounds[r]._node.disconnect(0),e._sounds.splice(r,1),n--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t}return[e]},_refreshBuffer:function(e){return e._node.bufferSource=i.ctx.createBufferSource(),e._node.bufferSource.buffer=c[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,i.ctx.currentTime),this},_cleanBuffer:function(e){var t=i._navigator&&i._navigator.vendor.indexOf("Apple")>=0;if(i._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=i._scratchBuffer}catch(e){}return e.bufferSource=null,this},_clearSound:function(e){/MSIE |Trident\//.test(i._navigator&&i._navigator.userAgent)||(e.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var s=function(e){this._parent=e,this.init()};s.prototype={init:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++i._counter,t._sounds.push(e),e.create(),e},create:function(){var e=this,t=e._parent,n=i._muted||e._muted||e._parent._muted?0:e._volume;return t._webAudio?(e._node=void 0===i.ctx.createGain?i.ctx.createGainNode():i.ctx.createGain(),e._node.gain.setValueAtTime(n,i.ctx.currentTime),e._node.paused=!0,e._node.connect(i.masterGain)):i.noAudio||(e._node=i._obtainHtml5Audio(),e._errorFn=e._errorListener.bind(e),e._node.addEventListener("error",e._errorFn,!1),e._loadFn=e._loadListener.bind(e),e._node.addEventListener(i._canPlayEvent,e._loadFn,!1),e._endFn=e._endListener.bind(e),e._node.addEventListener("ended",e._endFn,!1),e._node.src=t._src,e._node.preload=!0===t._preload?"auto":t._preload,e._node.volume=n*i.volume(),e._node.load()),e},reset:function(){var e=this,t=e._parent;return e._muted=t._muted,e._loop=t._loop,e._volume=t._volume,e._rate=t._rate,e._seek=0,e._rateSeek=0,e._paused=!0,e._ended=!0,e._sprite="__default",e._id=++i._counter,e},_errorListener:function(){var e=this;e._parent._emit("loaderror",e._id,e._node.error?e._node.error.code:0),e._node.removeEventListener("error",e._errorFn,!1)},_loadListener:function(){var e=this,t=e._parent;t._duration=Math.ceil(10*e._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}
vendor: 8,964 bytes, line 2
2),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),e._node.removeEventListener(i._canPlayEvent,e._loadFn,!1)},_endListener:function(){var e=this,t=e._parent;t._duration===1/0&&(t._duration=Math.ceil(10*e._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(e)),e._node.removeEventListener("ended",e._endFn,!1)}};var c={},u=function(e){var t=e._src;if(c[t])return e._duration=c[t].duration,void p(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),r=new Uint8Array(n.length),o=0;o<n.length;++o)r[o]=n.charCodeAt(o);d(r.buffer,e)}else{var i=new XMLHttpRequest;i.open(e._xhr.method,t,!0),i.withCredentials=e._xhr.withCredentials,i.responseType="arraybuffer",e._xhr.headers&&Object.keys(e._xhr.headers).forEach((function(t){i.setRequestHeader(t,e._xhr.headers[t])})),i.onload=function(){var t=(i.status+"")[0];"0"===t||"2"===t||"3"===t?d(i.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+i.status+".")},i.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete c[t],e.load())},l(i)}},l=function(e){try{e.send()}catch(t){e.onerror()}},d=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},r=function(e){e&&t._sounds.length>0?(c[t._src]=e,p(t,e)):n()};"undefined"!=typeof Promise&&1===i.ctx.decodeAudioData.length?i.ctx.decodeAudioData(e).then(r).catch(n):i.ctx.decodeAudioData(e,r,n)},p=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},f=function(){if(i.usingWebAudio){try{"undefined"!=typeof AudioContext?i.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?i.ctx=new webkitAudioContext:i.usingWebAudio=!1}catch(e){i.usingWebAudio=!1}i.ctx||(i.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(i._navigator&&i._navigator.platform),t=i._navigator&&i._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(i._navigator&&i._navigator.userAgent.toLowerCase());i._navigator&&!r&&(i.usingWebAudio=!1)}i.usingWebAudio&&(i.masterGain=void 0===i.ctx.createGain?i.ctx.createGainNode():i.ctx.createGain(),i.masterGain.gain.setValueAtTime(i._muted?0:i._volume,i.ctx.currentTime),i.masterGain.connect(i.ctx.destination)),i._setup()}};void 0===(r=function(){return{Howler:i,Howl:a}}.apply(t,[]))||(e.exports=r),t.Howler=i,t.Howl=a,void 0!==n.g?(n.g.HowlerGlobal=o,n.g.Howler=i,n.g.Howl=a,n.g.Sound=s):"undefined"!=typeof window&&(window.HowlerGlobal=o,window.Howler=i,window.Howl=a,window.Sound=s)}(),function(){"use strict";var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){var t=this;if(!t.ctx||!t.ctx.listener)return t;for(var n=t._howls.length-1;n>=0;n--)t._howls[n].stereo(e);return t},HowlerGlobal.prototype.pos=function(e,t,n){var r=this;return r.ctx&&r.ctx.listener?(t="number"!=typeof t?r._pos[1]:t,n="number"!=typeof n?r._pos[2]:n,"number"!=typeof e?r._pos:(r._pos=[e,t,n],void 0!==r.ctx.listener.positionX?(r.ctx.listener.positionX.setTargetAtTime(r._pos[0],Howler.ctx.currentTime,.1),r.ctx.listener.positionY.setTargetAtTime(r._pos[1],Howler.ctx.currentTime,.1),r.ctx.listener.positionZ.setTargetAtTime(r._pos[2],Howler.ctx.currentTime,.1)):r.ctx.listener.setPosition(r._pos[0],r._pos[1],r._pos[2]),r)):r},HowlerGlobal.prototype.orientation=function(e,t,n,r,o,i){var a=this;if(!a.ctx||!a.ctx.listener)return a;var s=a._orientation;return t="number"!=typeof t?s[1]:t,n="number"!=typeof n?s[2]:n,r="number"!=typeof r?s[3]:r,o="number"!=typeof o?s[4]:o,i="number"!=typeof i?s[5]:i,"number"!=typeof e?s:(a._orientation=[e,t,n,r,o,i],void 0!==a.ctx.listener.forwardX?(a.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),a.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),a.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),a.ctx.listener.upX.setTargetAtTime(r,Howler.ctx.currentTime,.1),a.ctx.listener.upY.setTargetAtTime(o,Howler.ctx.currentTime,.1),a.ctx.listener.upZ.setTargetAtTime(i,Howler.ctx.currentTime,.1)):a.ctx.listener.setOrientation(e,t,n,r,o,i),a)},Howl.prototype.init=(e=Howl.prototype.init,function(t){var n=this;return n._orientation=t.orientation||[1,0,0],n._stereo=t.stereo||null,n._pos=t.pos||null,n._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},n._onstereo=t.onstereo?[{fn:t.onstereo}]:[],n._onpos=t.onpos?[{fn:t.onpos}]:[],n._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var r=this;if(!r._webAudio)return r;if("loaded"!==r._state)return r._queue.push({event:"stereo",action:function(){r.stereo(e,n)}}),r;var o=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return r._stereo;r._stereo=e,r._pos=[e,0,0]}for(var i=r._getSoundIds(n),a=0;a<i.length;a++){var s=r._soundById(i[a]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||t(s,o),"spatial"===o?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),r._emit("stereo",s._id)}}return r},Howl.prototype.pos=function(e,n,r,o){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"pos",action:function(){i.pos(e,n,r,o)}}),i;if(n="number"!=typeof n?0:n,r="number"!=typeof r?-.5:r,void 0===o){if("number"!=typeof e)return i._pos;i._pos=[e,n,r]}for(var a=i._getSoundIds(o),s=0;s<a.length;s++){var c=i._soundById(a[s]);if(c){if("number"!=typeof e)return c._pos;c._pos=[e,n,r],c._node&&(c._panner&&!c._panner.pan||t(c,"spatial"),void 0!==c._panner.positionX?(c._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(r,Howler.ctx.currentTime)):c._panner.setPosition(e,n,r)),i._emit("pos",c._id)}}return i},Howl.prototype.orientation=function(e,n,r,o){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"orientation",action:function(){i.orientation(e,n,r,o)}}),i;if(n="number"!=typeof n?i._orientation[1]:n,r="number"!=typeof r?i._orientation[2]:r,void 0===o){if("number"!=typeof e)return i._orientation;i._orientation=[e,n,r]}for(var a=i._getSoundIds(o),s=0;s<a.length;s++){var c=i._soundById(a[s]);if(c){if("number"!=typeof e)return c._orientation;c._orientation=[e,n,r],c._node&&(c._panner||(c._pos||(c._pos=i._pos||[0,0,-.5]),t(c,"spatial")),void 0!==c._panner.orientationX?(c._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(r,Howler.ctx.currentTime)):c._panner.setOrientation(e,n,r)),i._emit("orientation",c._id)}}return i},Howl.prototype.pannerAttr=function(){var e,n,r,o=this,i=arguments;if(!o._webAudio)return o;if(0===i.length)return o._pannerAttr;if(1===i.length){if("object"!=typeof i[0])return(r=o._soundById(parseInt(i[0],10)))?r._pannerAttr:o._pannerAttr;e=i[0],void 0===n&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),o._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:o._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:o._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:o._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:o._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:o._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:o._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:o._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:o._panningModel})}else 2===i.length&&(e=i[0],n=parseInt(i[1],10));for(var a=o._getSoundIds(n),s=0;s<a.length;
2s++)if(r=o._soundById(a[s])){var c=r._pannerAttr;c={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:c.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:c.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:c.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:c.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:c.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:c.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:c.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:c.panningModel};var u=r._panner;u?(u.coneInnerAngle=c.coneInnerAngle,u.coneOuterAngle=c.coneOuterAngle,u.coneOuterGain=c.coneOuterGain,u.distanceModel=c.distanceModel,u.maxDistance=c.maxDistance,u.refDistance=c.refDistance,u.rolloffFactor=c.rolloffFactor,u.panningModel=c.panningModel):(r._pos||(r._pos=o._pos||[0,0,-.5]),t(r,"spatial"))}return o},Sound.prototype.init=function(e){return function(){var t=this,n=t._parent;t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,e.call(this),t._stereo?n.stereo(t._stereo):t._pos&&n.pos(t._pos[0],t._pos[1],t._pos[2],t._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this,n=t._parent;return t._orientation=n._orientation,t._stereo=n._stereo,t._pos=n._pos,t._pannerAttr=n._pannerAttr,t._stereo?n.stereo(t._stereo):t._pos?n.pos(t._pos[0],t._pos[1],t._pos[2],t._id):t._panner&&(t._panner.disconnect(0),t._panner=void 0,n._refreshBuffer(t)),e.call(this)}}(Sound.prototype.reset);var t=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}()},248665:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>q});var r=n(671002),o=n(204942);function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){(0,o.Z)(e,t,n[t])}))}return e}var a=n(215671),s=n(143144);function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return c(e)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}var f={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},h=new(function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.init(t,n)}return(0,s.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||f,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,i({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}()),m=function(){function e(){(0,a.Z)(this,e),this.observers={}}return(0,s.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var o=[].concat(this.observers[e]);o.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var i=[].concat(this.observers["*"]);
vendor: 2,821 bytes, line 2
2i.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function g(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function y(e){return null==e?"":""+e}function v(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function b(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function _(e,t,n){var r=b(e,t,Object);r.obj[r.k]=n}function w(e,t){var n=b(e,t),r=n.obj,o=n.k;if(r)return r[o]}function S(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function C(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):C(e[r],t[r],n):e[r]=t[r]);return e}function k(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var x={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function E(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return x[e]})):e}var O="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),o=e,i=0;i<r.length;++i){if(!o)return;if("string"==typeof o[r[i]]&&i+1<r.length)return;if(void 0===o[r[i]]){for(var a=2,s=r.slice(i,i+a).join(n),c=o[s];void 0===c&&r.length>i+a;)a++,c=o[s=r.slice(i,i+a).join(n)];if(void 0===c)return;if("string"==typeof c)return c;if(s&&"string"==typeof c[s])return c[s];var u=r.slice(i+a).join(n);return u?T(c,u,n):void 0}o=o[r[i]]}return o}}var A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,a.Z)(this,t),n=u(this,l(t).call(this)),O&&m.call(c(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return p(t,e),(0,s.Z)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(o?n.split(o):n)),e.
2indexOf(".")>-1&&(a=e.split("."));var s=w(this.data,a);return s||!i||"string"!=typeof n?s:T(this.data&&this.data[e]&&this.data[e][t],n,o)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),_(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var c=w(this.data,s)||{};r?C(c,n,o):c=i({},c,n),_(this.data,s,c),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?i({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(m),P={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},I={},j=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,a.Z)(this,t),n=u(this,l(t).call(this)),O&&m.call(c(n)),v(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","
2i18nFormat","utils"],e,c(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=h.create("translator"),n}return p(t,e),(0,s.Z)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,o){var a=this;if("object"!==(0,r.Z)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,c=this.extractFromKey(e[e.length-1],n),u=c.key,l=c.namespaces,d=l[l.length-1],p=n.lng||this.language,f=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(f){var h=n.nsSeparator||this.options.nsSeparator;return d+h+u}return u}var m=this.resolve(e,n),g=m&&m.res,y=m&&m.usedKey||u,v=m&&m.exactUsedKey||u,b=Object.prototype.toString.apply(g),_=["[object Number]","[object Function]","[object RegExp]"],w=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,C="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(S&&g&&C&&_.indexOf(b)<0&&("string"!=typeof w||"[object Array]"!==b)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,g,i({},n,{ns:l})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");if(s){var k="[object Array]"===b,x=k?[]:{},E=k?v:y;for(var O in g)if(Object.prototype.hasOwnProperty.call(g,O)){var T="".concat(E).concat(s).concat(O);x[O]=this.translate(T,i({},n,{joinArrays:!1,ns:l})),x[O]===T&&(x[O]=g[O])}g=x}}else if(S&&"string"==typeof w&&"[object Array]"===b)(g=g.join(w))&&(g=this.extendTranslation(g,e,n,o));else{var A=!1,P=!1,I=void 0!==n.count&&"string"!=typeof n.count,j=t.hasDefaultValue(n),L=I?this.pluralResolver.getSuffix(p,n.count):"",N=n["defaultValue".concat(L)]||n.defaultValue;!this.isValidLookup(g)&&j&&(A=!0,g=N),this.isValidLookup(g)||(P=!0,g=u);var R=n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,D=R&&P?void 0:g,M=j&&N!==g&&this.options.updateMissing;if(P||A||M){if(this.logger.log(M?"updateKey":"missingKey",p,d,u,M?N:g),s){var F=this.resolve(u,i({},n,{keySeparator:!1}));F&&F.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var U=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var $=0;$<B.length;$++)U.push(B[$]);else"all"===this.options.saveMissingTo?U=this.languageUtils.toResolveHierarchy(n.lng||this.language):U.push(n.lng||this.language);var H=function(e,t,r){a.options.missingKeyHandler?a.options.missingKeyHandler(e,d,t,M?r:D,M,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,d,t,M?r:D,M,n),a.emit("missingKey",e,d,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&I?U.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){H([e],u+t,n["defaultValue".concat(t)]||N)}))})):H(U,u,N))}g=this.extendTranslation(g,e,n,m,o),P&&g===u&&this.options.appendNamespaceToMissingKey&&(g="".concat(d,":").concat(u)),(P||A)&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(e,t,n,r,o){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(i({},n,{interpolation:i({},this.options.interpolation,n.interpolation)}));var s,c=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(c){var u=e.match(this.interpolator.nestingRegexp);s=u&&u.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=i({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),c){var d=e.match(this.interpolator.nestingRegexp);s<(d&&d.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return o&&o[0]===r[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):a.translate.apply(a,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var p=n.postProcess||this.options.postProcess,f="string"==typeof p?[p]:p;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=P.handle(f,e,t,this.options&&this.options.postProcessPassResolved?i({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var c=a.extractFromKey(e,s
vendor: 4,407 bytes, line 2
2),u=c.key;n=u;var l=c.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,f=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!I["".concat(f[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(I["".concat(f[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(f.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),f.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,c,l=u,f=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(f,u,n,e,s):(d&&(i=a.pluralResolver.getSuffix(n,s.count)),d&&p&&f.push(l+i),p&&f.push(l+="".concat(a.options.contextSeparator).concat(s.context)),d&&f.push(l+=i));c=f.pop();)a.isValidLookup(t)||(r=c,t=a.getResource(n,e,c,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(m);function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}var N=function(){function e(t){(0,a.Z)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=h.create("languageUtils")}return(0,s.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=L(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];
vendor: 10,279 bytes, line 2
2return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),R=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],D={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function M(){var e={};return R.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:D[t.fc]}}))})),e}var F=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.languageUtils=t,this.options=n,this.logger=h.create("pluralResolver"),this.rules=M()}return(0,s.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),U=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)(this,e),this.logger=h.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,s.Z)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:E,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?k(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?k(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?k(t.nestingPrefix):t.nestingPrefixEscaped||k("$t("),this.nestingSuffix=t.nestingSuffix?k(t.nestingSuffix):t.nestingSuffixEscaped||k(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,a,s,c=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(e.indexOf(c.formatSeparator)<0){var o=S(t,u,e);return c.alwaysFormat?c.format(o,void 0,n,i({},r,t,{interpolationkey:e})):o}var a=e.split(c.formatSeparator),s=a.shift().trim(),l=a.join(c.formatSeparator).trim();return c.format(S(t,u,s),l,n,i({},r,t,{interpolationkey:s}))};this.resetRegExp();var p=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return c.escapeValue?l(c.escape(e)):l(e)}}].forEach((function(t){for(s=0;o=t.regex.exec(e);){if(void 0===(a=d(o[1].trim())))if("function"==typeof p){var n=p(e,o,r);a="string"==typeof n?n:""}else{if(f){a=o[0];continue}c.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),a=""}else"string"==typeof a||c.useRawValueToEscape||(a=y(a));var i=t.safeValue(a);if(e=e.replace(o[0],i),f?(t.regex.lastIndex+=i.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++s>=c.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=i({},a);function c(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,s)).replace(/'/g,'"');try{s=JSON.parse(o),t&&(s=i({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var d=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=d.shift(),u=d,l=!0}if((r=t(c.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=y(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=u.reduce((function(e,t){return o.format(e,t,a.lng,i({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),B=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,a.Z)(this,t),o=u(this,l(t).call(this)),O&&m.call(c(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=h.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return p(t,e),(0,s.Z)(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],c=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),c.indexOf(t)<0&&c.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:c}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];
vendor: 5,165 bytes, line 2
2t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,c,u,l;r=n.loaded,s=i,(u=(c=b(r,[o],Object)).obj)[l=c.k]=u[l]||[],u[l].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,c){s&&c&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,c)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,i({},a,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(m);function $(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===(0,r.Z)(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===(0,r.Z)(e[2])||"object"===(0,r.Z)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function H(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function z(){}const q=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if((0,a.Z)(this,t),e=u(this,l(t).call(this)),O&&m.call(c(e)),e.options=H(n),e.services={},e.logger=h,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),u(e,c(e));setTimeout((function(){e.init(n,r)}),0)}return e}return p(t,e),(0,s.Z)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}
vendor: 6,611 bytes, line 2
2),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=i({},$(),this.options,H(t)),this.format=this.options.interpolation.format,n||(n=z),!this.options.isClone){this.modules.logger?h.init(r(this.modules.logger),this.options):h.init(null,this.options);var o=new N(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=h,a.resourceStore=this.store,a.languageUtils=o,a.pluralResolver=new F(o,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new U(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new B(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(a.languageDetector=r(this.modules.languageDetector),a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=r(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new j(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var u=["addResource","addResources","addResourceBundle","removeResourceBundle"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=g(),d=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?d():setTimeout(d,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,r=n,o="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return r();var i=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){i.indexOf(e)<0&&i.push(e)}))};if(o)a(o);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(i,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=g();return e||(e=this.languages),t||(t=this.options.ns),n||(n=z),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&P.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=g();this.emit("languageChanging",e);var o=function(o){e||o||!n.services.languageDetector||(o=[]);var i="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);i&&(n.language||(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i)),n.translator.language||n.translator.changeLanguage(i),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(i)),n.loadResources(i,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,i)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var o=this,a=function e(t,a){var s;if("object"!==(0,r.Z)(a)){for(var c=arguments.length,u=new Array(c>2?c-2:0),l=2;l<c;l++)u[l-2]=arguments[l];s=o.options.overloadTranslationOptionHandler([t,a].concat(u))}else s=i({},a);s.lng=s.lng||e.lng,s.lngs=s.lngs||e.lngs,s.ns=s.ns||e.ns;var d=o.options.keySeparator||".",p=n?"".concat(n).concat(d).concat(t):t;return o.t(p,s)};return"string"==typeof e?a.lng=e:a.lngs=e,a.ns=t,a.keyPrefix=n,a}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;
2if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=g();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=g();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:z,o=i({},this.options,n,{isClone:!0}),a=new t(o),s=["store","services","language"];return s.forEach((function(t){a[t]=e[t]})),a.services=i({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new j(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];a.emit.apply(a,[e].concat(n))})),a.init(o,r),a.translator.options=a.options,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages}}}]),t}(m))},680645:(e,t)=>{t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?o-1:0,p=n?-1:1,f=e[t+d];for(d+=p,i=f&(1<<-l)-1,f>>=-l,l+=s;l>0;i=256*i+e[t+d],d+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+d],d+=p,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),i-=u}return(f?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,d=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:i-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+d>=1?p/c:p*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(t*c-1)*Math.pow(2,o),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+f]=255&s,f+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+f]=255&a,f+=h,a/=256,u-=8);e[n+f-h]|=128*m}},198784:()=>{(function(){window.Modernizr=function(e,t,n){var r,o,i,a={},s=t.documentElement,c="modernizr",u=t.createElement(c),l=u.style,d=t.createElement("input"),p=":)",f={}.toString,h=" -webkit- -moz- -o- -ms- ".split(" "),m="Webkit Moz O ms",g=m.split(" "),y=m.toLowerCase().split(" "),v="http://www.w3.org/2000/svg",b={},_={},w={},S=[],C=S.slice,k=function(e,n,r,o){var i,a,u,l,d=t.createElement("div"),p=t.body,f=p||t.createElement("body");if(parseInt(r,10))for(;r--;)(u=t.createElement("div")).id=o?o[r]:c+(r+1),d.appendChild(u);return i=["­",'<style id="s',c,'">',e,"</style>"].join(""),d.id=c,(p?d:f).innerHTML+=i,f.appendChild(d),p||(f.style.background="",f.style.overflow="hidden",l=s.style.overflow,s.style.overflow="hidden",s.appendChild(f)),a=n(d,e),p?d.parentNode.removeChild(d):(f.parentNode.removeChild(f),s.style.overflow=l),!!a},x=(i={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(e,r){r=r||t.createElement(i[e]||"div");var o=(e="on"+e)in r;return o||(r.setAttribute||(r=t.createElement("div")),r.setAttribute&&r.removeAttribute&&(r.setAttribute(e,""),o=T(r[e],"function"),T(r[e],"undefined")||(r[e]=n),r.removeAttribute(e))),r=null,o}),E={}.hasOwnProperty;function O(e){l.cssText=e}function T(e,t){return typeof e===t}function A(e,t){return!!~(""+e).indexOf(t)}function P(e,t){for(var r in e){var o=e[r];if(!A(o,"-")&&l[o]!==n)return"pfx"!=t||o}return!1}function I(e,t,r){var o=e.charAt(0).toUpperCase()+e.slice(1),i=(e+" "+g.join(o+" ")+o).split(" ");return T(t,"string")||T(t,"undefined")?P(i,t):function(e,t,r){for(var o in e){var i=t[e[o]];if(i!==n)return!1===r?e[o]:T(i,"function")?i.bind(r||t):i}return!1}(i=(e+" "+y.join(o+" ")+o).split(" "),t,r)}for(var j in o=T(E,"undefined")||T(E.call,"undefined")?function(e,t){return t in e&&T(e.constructor.prototype[t],"undefined")}:function(e,t){return E.call(e,t)},Function.prototype.bind||(Function.prototype.bind=function(e){var t=this;if("function"!=typeof t)throw new TypeError;
2var n=C.call(arguments,1),r=function(){if(this instanceof r){var o=function(){};o.prototype=t.prototype;var i=new o,a=t.apply(i,n.concat(C.call(arguments)));return Object(a)===a?a:i}return t.apply(e,n.concat(C.call(arguments)))};return r}),b.flexbox=function(){return I("flexWrap")},b.flexboxlegacy=function(){return I("boxDirection")},b.canvas=function(){var e=t.createElement("canvas");return!(!e.getContext||!e.getContext("2d"))},b.canvastext=function(){return!(!a.canvas||!T(t.createElement("canvas").getContext("2d").fillText,"function"))},b.webgl=function(){return!!e.WebGLRenderingContext},b.touch=function(){var n;return"ontouchstart"in e||e.DocumentTouch&&t instanceof DocumentTouch?n=!0:k(["@media (",h.join("touch-enabled),("),c,")","{#modernizr{top:9px;position:absolute}}"].join(""),(function(e){n=9===e.offsetTop})),n},b.geolocation=function(){return"geolocation"in navigator},b.postmessage=function(){return!!e.postMessage},b.websqldatabase=function(){return!!e.openDatabase},b.indexedDB=function(){return!!I("indexedDB",e)},b.hashchange=function(){return x("hashchange",e)&&(t.documentMode===n||t.documentMode>7)},b.history=function(){return!(!e.history||!history.pushState)},b.draganddrop=function(){var e=t.createElement("div");return"draggable"in e||"ondragstart"in e&&"ondrop"in e},b.websockets=function(){return"WebSocket"in e||"MozWebSocket"in e},b.rgba=function(){return O("background-color:rgba(150,255,150,.5)"),A(l.backgroundColor,"rgba")},b.hsla=function(){return O("background-color:hsla(120,40%,100%,.5)"),A(l.backgroundColor,"rgba")||A(l.backgroundColor,"hsla")},b.multiplebgs=function(){return O("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(l.background)},b.backgroundsize=function(){return I("backgroundSize")},b.borderimage=function(){return I("borderImage")}
2,b.borderradius=function(){return I("borderRadius")},b.boxshadow=function(){return I("boxShadow")},b.textshadow=function(){return""===t.createElement("div").style.textShadow},b.opacity=function(){return"opacity:.55",O(h.join("opacity:.55;")+""),/^0.55$/.test(l.opacity)},b.cssanimations=function(){return I("animationName")},b.csscolumns=function(){return I("columnCount")},b.cssgradients=function(){var e="background-image:";return O((e+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+e)+h.join("linear-gradient(left top,#9f9, white);"+e)).slice(0,-e.length)),A(l.backgroundImage,"gradient")},b.cssreflections=function(){return I("boxReflect")},b.csstransforms=function(){return!!I("transform")},b.csstransforms3d=function(){var e=!!I("perspective");return e&&"webkitPerspective"in s.style&&k("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",(function(t,n){e=9===t.offsetLeft&&3===t.offsetHeight})),e},b.csstransitions=function(){return I("transition")},b.fontface=function(){var e;return k('@font-face {font-family:"font";src:url("https://")}',(function(n,r){var o=t.getElementById("smodernizr"),i=o.sheet||o.styleSheet,a=i?i.cssRules&&i.cssRules[0]?i.cssRules[0].cssText:i.cssText||"":"";e=/src/i.test(a)&&0===a.indexOf(r.split(" ")[0])})),e},b.generatedcontent=function(){var e;return k(["#",c,"{font:0/0 a}#",c,':after{content:"',p,'";visibility:hidden;font:3px/1 a}'].join(""),(function(t){e=t.offsetHeight>=3})),e},b.video=function(){var e=t.createElement("video"),n=!1;try{(n=!!e.canPlayType)&&((n=new Boolean(n)).ogg=e.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),n.h264=e.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),n.webm=e.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""))}catch(e){}return n},b.audio=function(){var e=t.createElement("audio"),n=!1;try{(n=!!e.canPlayType)&&((n=new Boolean(n)).ogg=e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=e.canPlayType("audio/mpeg;").replace(/^no$/,""),n.wav=e.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(e){}return n},b.localstorage=function(){try{return localStorage.setItem(c,c),localStorage.removeItem(c),!0}catch(e){return!1}},b.sessionstorage=function(){try{return sessionStorage.setItem(c,c),sessionStorage.removeItem(c),!0}catch(e){return!1}},b.webworkers=function(){return!!e.Worker},b.applicationcache=function(){return!!e.applicationCache},b.svg=function(){return!!t.createElementNS&&!!t.createElementNS(v,"svg").createSVGRect},b.inlinesvg=function(){var e=t.createElement("div");return e.innerHTML="<svg/>",(e.firstChild&&e.firstChild.namespaceURI)==v},b.smil=function(){return!!t.createElementNS&&/SVGAnimate/.test(f.call(t.createElementNS(v,"animate")))},b.svgclippaths=function(){return!!t.createElementNS&&/SVGClipPath/.test(f.call(t.createElementNS(v,"clipPath")))},b)o(b,j)&&(r=j.toLowerCase(),a[r]=b[j](),S.push((a[r]?"":"no-")+r));return a.input||(a.input=function(n){for(var r=0,o=n.length;r<o;r++)w[n[r]]=!!(n[r]in d);return w.list&&(w.list=!(!t.createElement("datalist")||!e.HTMLDataListElement)),w}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),a.inputtypes=function(e){for(var r,o,i,a=0,c=e.length;a<c;a++)d.setAttribute("type",o=e[a]),(r="text"!==d.type)&&(d.value=p,d.style.cssText="position:absolute;visibility:hidden;",/^range$/.test(o)&&d.style.WebkitAppearance!==n?(s.appendChild(d),r=(i=t.defaultView).getComputedStyle&&"textfield"!==i.getComputedStyle(d,null).WebkitAppearance&&0!==d.offsetHeight,s.removeChild(d)):/^(search|tel)$/.test(o)||(r=/^(url|email)$/.test(o)?d.checkValidity&&!1===d.checkValidity():d.value!=p)),_[e[a]]=!!r;return _}("search tel url email datetime date month week time datetime-local number range color".split(" "))),a.addTest=function(e,t){if("object"==typeof e)for(var r in e)o(e,r)&&a.addTest(r,e[r]);else{if(e=e.toLowerCase(),a[e]!==n)return a;t="function"==typeof t?t():t,s.className+=" "+(t?"":"no-")+e,a[e]=t}return a},O(""),u=d=null,function(e,t){var n,r,o=e.html5||{},i=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,a=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,s="_html5shiv",c=0,u={};function l(){var e=h.elements;return"string"==typeof e?e.split(" "):e}function d(e){var t=u[e[s]];return t||(t={},c++,e[s]=c,u[c]=t),t}function p(e,n,o){return n||(n=t),r?n.createElement(e):(o||(o=d(n)),!(s=o.cache[e]?o.cache[e].cloneNode():a.test(e)?(o.cache[e]=o.createElem(e)).cloneNode():o.createElem(e)).canHaveChildren||i.test(e)||s.tagUrn?s:o.frag.appendChild(s));var s}function f(e){e||(e=t);var o=d(e);return!h.shivCSS||n||o.hasCSS||(o.hasCSS=!!function(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{dis
2play:block}mark{background:#FF0;color:#000}template{display:none}</style>",r.insertBefore(n.lastChild,r.firstChild)}(e)),r||function(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return h.shivMethods?p(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+l().join().replace(/[\w\-]+/g,(function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'}))+");return n}")(h,t.frag)}(e,o),e}!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",n="hidden"in e,r=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return void 0===e.cloneNode||void 0===e.createDocumentFragment||void 0===e.createElement}()}catch(e){n=!0,r=!0}}();var h={elements:o.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video",version:"3.7.0",shivCSS:!1!==o.shivCSS,supportsUnknownElements:r,shivMethods:!1!==o.shivMethods,type:"default",shivDocument:f,createElement:p,createDocumentFragment:function(e,n){if(e||(e=t),r)return e.createDocumentFragment();for(var o=(n=n||d(e)).frag.cloneNode(),i=0,a=l(),s=a.length;i<s;i++)o.createElement(a[i]);return o}};e.html5=h,f(t)}(this,t),a._version="2.8.3",a._prefixes=h,a._domPrefixes=y,a._cssomPrefixes=g,a.mq=function(t){var n,r=e.matchMedia||e.msMatchMedia;return r?r(t)&&r(t).matches||!1:(k("@media "+t+" { #"+c+" { position: absolute; } }",(function(t){n="absolute"==(e.getComputedStyle?getComputedStyle(t,null):t.currentStyle).position})),n)},a.hasEvent=x,a.testProp=function(e){return P([e])},a.testAllProps=I,a.testStyles=k,a.prefixed=function(e,t,n){return t?I(e,t,n):I(e,"pfx")},s.className=s.className.replace(/(^|\s)no-js(\s|$)/,"$1$2")+" js "+S.join(" "),a}(this,this.document)}).call(window)},35717:e=>{"function"==typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},405826:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},796508:(e,t)=>{"use strict";var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r={tName:"t",i18nName:"i18n",handleName:"localize",selectorAttr:"data-i18n",targetAttr:"i18n-target",optionsAttr:"i18n-options",useOptionsAttr:!1,parseDefaultValueFromContent:!0};t.default={init:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};function i(t,r,i){if(0!==r.length){var a="text";if(0===r.indexOf("[")){var s=r.split("]");r=s[1],a=s[0].substr(1,s[0].length-1)}if(r.indexOf(";")===r.length-1&&(r=r.substr(0,r.length-2)),"html"===a)t.html(e.t(r,l(i,t.html())));else if("text"===a)t.text(e.t(r,l(i,t.text())));else if("prepend"===a)t.prepend(e.t(r,l(i,t.html())));else if("append"===a)t.append(e.t(r,l(i,t.html())));else if(0===a.indexOf("data-")){var c=a.substr("data-".length),u=e.t(r,l(i,t.data(c)));t.data(c,u),t.attr(a,u)}else t.attr(a,e.t(r,l(i,t.attr(a))))}function l(e,t){return o.parseDefaultValueFromContent?n({},e,{defaultValue:t}):e}}function a(e,r){var a=e.attr(o.selectorAttr);if(a||void 0===a||!1===a||(a=e.text()||e.val()),a){var s=e,c=e.data(o.targetAttr);if(c&&(s=e.find(c)||e),r||!0!==o.useOptionsAttr||(r=e.data(o.optionsAttr)),r=r||{},a.indexOf(";")>=0){var u=a.split(";");t.each(u,(function(e,t){""!==t&&i(s,t.trim(),r)}))}else i(s,a,r);if(!0===o.useOptionsAttr){var l={};delete(l=n({clone:l},r)).lng,e.data(o.optionsAttr,l)}}}function s(e){return this.each((function(){a(t(this),e),t(this).find("["+o.selectorAttr+"]").each((function(){a(t(this),e)}))}))}o=n({},r,o),t[o.tName]=e.t.bind(e),t[o.i18nName]=e,t.fn[o.handleName]=s}}},599919:(e,t,n)=>{e.exports=n(796508).default},934371:(e,t,n)=>{var r,o;r=[n(619755)],void 0===(o=function(e){return function(e){"use strict";function t(e){void 0===e&&(e=window.navigator.userAgent),e=e.toLowerCase();var t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],n=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(silk)/.exec(e)||/(android)/.exec(e)||/(windows phone)/.exec(e)||/(win)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||/(playbook)/.exec(e)||/(bb)/.exec(e)||/(blackberry)/.exec(e)||[],r={},o={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",versionNumber:t[4]||t[2]||"0",platform:n[0]||""};if(o.browser&&(r[o.browser]=!0,r.version=o.version,r.versionNumber=parseInt(o.versionNumber,10)),o.platform&&(r[o.platform]=!0),(r.android||r.bb||r.blackberry||r.ipad||r.iphone||r.ipod||r.kindle||r.playbook||r.silk||r["windows phone"])&&(r.mobile=!0),(r.cros||r.mac||r.linux||r.win)&&(r.desktop=!0),(r.chrome||r.opr||r.safari)&&(r.webkit=!0),r.rv||r.edge){var i="msie";o.browser=i,r[i]=!0}if(r.safari&&r.blackberry){var a="blackberry";o.browser=a,r.blackberry=!0}if(r.safari&&r.playbook){var s="playbook";o.browser=s,r.playbook=!0}if(r.bb){var c="blackberry";o.browser=c,r[c]=!0}if(r.opr){var u="opera";o.browser=u,r.opera=!0}if(r.safari&&r.android){var l="android";o.browser=l,r.android=!0}if(r.safari&&r.kindle){var d="kindle";o.browser=d,r.kindle=!0}if(r.safari&&r.silk){var p="silk";o.browser=p,r.silk=!0}return r.name=o.browser,r.platform=o.platform,r}return window.jQBrowser=t(window.navigator.userAgent),window.jQBrowser.uaMatch=t,e&&(e.browser=window.jQBrowser),window.jQBrowser}(e)}.apply(t,r))||(e.exports=o)},619755:function(e,t){var n,r,o;r="undefined"!=typeof window?window:this,o=function(r,o){var i=[],a=i.slice,s=i.concat,c=i.push,u=i.indexOf,l={},d=l.toString,p=l.hasOwnProperty,f={},h=r.document,m="2.1.4",g=function(e,t){return new g.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,v=/^-ms-/,b=/-([\da-z])/gi,_=function(e,t){return t.toUpperCase()};function w(e){var t="length"in e&&e.length,n=g.type(e);return"function"!==n&&!g.isWindow(e)&&(!(1!==e.nodeType||!t)||"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}g.fn=g.prototype={jquery:m,constructor:g,selector:"",length:0,toArray:function(){return a.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:a.call(this)},pushStack:function(e){var t=g.merge(this.constructor(),e);
2return t.prevObject=this,t.context=this.context,t},each:function(e,t){return g.each(this,e,t)},map:function(e){return this.pushStack(g.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:c,sort:i.sort,splice:i.splice},g.extend=g.fn.extend=function(){var e,t,n,r,o,i,a=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||g.isFunction(a)||(a={}),s===c&&(a=this,s--);s<c;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(u&&r&&(g.isPlainObject(r)||(o=g.isArray(r)))?(o?(o=!1,i=n&&g.isArray(n)?n:[]):i=n&&g.isPlainObject(n)?n:{},a[t]=g.extend(u,i,r)):void 0!==r&&(a[t]=r));return a},g.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===g.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!g.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return!("object"!==g.type(e)||e.nodeType||g.isWindow(e)||e.constructor&&!p.call(e.constructor.prototype,"isPrototypeOf"))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l[d.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;(e=g.trim(e))&&(1===e.indexOf("use strict")?((t=h.createElement("script")).text=e,h.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(v,"ms-").replace(b,_)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,n){var r=0,o=e.length,i=w(e);if(n){if(i)for(;r<o&&!1!==t.apply(e[r],n);r++);else for(r in e)if(!1===t.apply(e[r],n))break}else if(i)for(;r<o&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(y,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(w(Object(e))?g.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,o=e.length;r<n;r++)e[o++]=t[r];return e.length=o,e},grep:function(e,t,n){for(var r=[],o=0,i=e.length,a=!n;o<i;o++)!t(e[o],o)!==a&&r.push(e[o]);return r},map:function(e,t,n){var r,o=0,i=e.length,a=[];if(w(e))for(;o<i;o++)null!=(r=t(e[o],o,n))&&a.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&a.push(r);return s.apply([],a)},guid:1,proxy:function(e,t){var n,r,o;if("string"==typeof t&&(n=e[t],t=e,e=n),g.isFunction(e))return r=a.call(arguments,2),o=function(){return e.apply(t||this,r.concat(a.call(arguments)))},o.guid=e.guid=e.guid||g.guid++,o},now:Date.now,support:f}),g.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()}));var S=function(e){var t,n,r,o,i,a,s,c,u,l,d,p,f,h,m,g,y,v,b,_="sizzle"+1*new Date,w=e.document,S=0,C=0,k=ae(),x=ae(),E=ae(),O=function(e,t){return e===t&&(d=!0),0},T=1<<31,A={}.hasOwnProperty,P=[],I=P.pop,j=P.push,L=P.push,N=P.slice,R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},D="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",F="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",U=F.replace("w","w#"),B="\\[[\\x20\\t\\r\\n\\f]*("+F+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+U+"))|)"+M+"*\\]",$=":("+F+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+B+")*)|.*)\\)|)",H=new RegExp(M+"+","g"),z=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),q=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),V=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),G=new RegExp("=[\\x20\\t\\r\\n\\f]*([^\\]'\"]*?)[\\x20\\t\\r\\n\\f]*\\]","g"),W=new RegExp($),Y=new RegExp("^"+U+"$"),K={ID:new RegExp("^#("+F+")"),CLASS:new RegExp("^\\.("+F+")"),TAG:new RegExp("^("+F.replace("w","w*")+")"),ATTR:new RegExp("^"+B),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+D+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},J=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=/'|\\/g,ne=new RegExp("\\\\([\\da-f]{1,6}[\\x20\\t\\r\\n\\f]?|([\\x20\\t\\r\\n\\f])|.)","ig"),re=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},oe=function(){p()};try{L.apply(P=N.call(w.childNodes),w.childNodes),P[w.childNodes.length].nodeType}catch(e){L={apply:P.length?function(e,t){j.apply(e,N.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function ie(e,t,r,o){var i,s,u,l,d,h,y,v,S,C;if((t?t.ownerDocument||t:w)!==f&&p(t),r=r||[],l=(t=t||f).nodeType,"string"!=typeof e||!e||1!==l&&9!==l&&11!==l)return r;if(!o&&m){if(11!==l&&(i=Q.exec(e)))if(u=i[1]){if(9===l){if(!(s=t.getElementById(u))||!s.parentNode)return r;if(s.id===u)return r.push(s),r}else if(t.ownerDocument&&(s=t.ownerDocument.getElementById(u))&&b(t,s)&&s.id===u)return r.push(s),r}else{if(i[2])return L.apply(r,t.getElementsByTagName(e)),r;if((u=i[3])&&n.getElementsByClassName)return L.apply(r,t.getElementsByClassName(u)),r}if(n.qsa&&(!g||!g.test(e))){if(v=y=_,S=t,C=1!==l&&e,1===l&&"object"!==t.nodeName.toLowerCase()){for(h=a(e),(y=t.getAttribute("id"))?v=y.replace(te,"\\$&"):t.setAttribute("id",v),v="[id='"+v+"'] ",d=h.length;d--;)h[d]=v+ge(h[d]);S=ee.test(e)&&he(t.parentNode)||t,C=h.join(",")}if(C)try{return L.apply(r,S.querySelectorAll(C)),r}catch(e){}finally{y||t.removeAttribute("id")}}}return c(e.replace(z,"$1"),t,r,o)}function ae(){var e=[];return function t(n,o){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function se(e){return e[_]=!0,e}function ce(e){var t=f.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),o=e.length;o--;)r.attrHandle[n[o]]=t}function le(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||T)-(~e.sourceIndex||T);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return se((function(t){return t=+t,se((function(n,r){for(var o,i=e([],n.length,t),a=i.length;a--;)n[o=i[a]]&&(n[o]=!(r[o]=n[o]))}))}))}function he(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},i=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=ie.setDocument=function(e){var t,o,a=e?e.ownerDocument||e:w;return a!==f&&9===a.nodeType&&a.documentElement?(f=a,h=a.documentElement,(o=a.defaultView)&&o!==o.top&&(o.addEventListener?o.addEventListener("unload",oe,!1):o.attachEvent&&o.attachEvent("onunload",oe)),m=!i(a),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(a.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=X.test(a.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=_,!a.getElementsByName||!a.getElementsByName(_).length})),n.getById?(r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},r.filter.ID=function(e){var t=e.replace(ne,re);return function(e){return e.getAttribute("id")===t}}):(delete r.find.ID,r.filter.ID=function(e){var t=e.replace(ne,re);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],o=0,i=t.getElementsByTagName(e);
vendor: 4,423 bytes, line 2
2if("*"===e){for(;n=i[o++];)1===n.nodeType&&r.push(n);return r}return i},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(m)return t.getElementsByClassName(e)},y=[],g=[],(n.qsa=X.test(a.querySelectorAll))&&(ce((function(e){h.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+D+")"),e.querySelectorAll("[id~="+_+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")})),ce((function(e){var t=a.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),e.querySelectorAll(":enabled").length||g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")}))),(n.matchesSelector=X.test(v=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=v.call(e,"div"),v.call(e,"[s!='']:x"),y.push("!=",$)})),g=g.length&&new RegExp(g.join("|")),y=y.length&&new RegExp(y.join("|")),t=X.test(h.compareDocumentPosition),b=t||X.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===a||e.ownerDocument===w&&b(w,e)?-1:t===a||t.ownerDocument===w&&b(w,t)?1:l?R(l,e)-R(l,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,o=e.parentNode,i=t.parentNode,s=[e],c=[t];if(!o||!i)return e===a?-1:t===a?1:o?-1:i?1:l?R(l,e)-R(l,t):0;if(o===i)return le(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;s[r]===c[r];)r++;return r?le(s[r],c[r]):s[r]===w?-1:c[r]===w?1:0},a):f},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(G,"='$1']"),n.matchesSelector&&m&&(!y||!y.test(t))&&(!g||!g.test(t)))try{var r=v.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return ie(t,f,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==f&&p(e);var o=r.attrHandle[t.toLowerCase()],i=o&&A.call(r.attrHandle,t.toLowerCase())?o(e,t,!m):void 0;return void 0!==i?i:n.attributes||!m?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,r=[],o=0,i=0;if(d=!n.detectDuplicates,l=!n.sortStable&&e.slice(0),e.sort(O),d){for(;t=e[i++];)t===e[i]&&(o=r.push(i));for(;o--;)e.splice(r[o],1)}return l=null,e},o=ie.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=o(t);return n},r=ie.selectors={cacheLength:50,createPseudo:se,match:K,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ne,re),e[3]=(e[3]||e[4]||e[5]||"").replace(ne,re),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ie.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&W.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ne,re).toLowerCase();return"*"===e?function(){return!0}
vendor: 8,837 bytes, line 2
2:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=k[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+M+"|$)"))&&k(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var o=ie.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,o){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===o?function(e){return!!e.parentNode}:function(t,n,c){var u,l,d,p,f,h,m=i!==a?"nextSibling":"previousSibling",g=t.parentNode,y=s&&t.nodeName.toLowerCase(),v=!c&&!s;if(g){if(i){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===y:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&v){for(f=(u=(l=g[_]||(g[_]={}))[e]||[])[0]===S&&u[1],p=u[0]===S&&u[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(p=f=0)||h.pop();)if(1===d.nodeType&&++p&&d===t){l[e]=[S,f,p];break}}else if(v&&(u=(t[_]||(t[_]={}))[e])&&u[0]===S)p=u[1];else for(;(d=++f&&d&&d[m]||(p=f=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==y:1!==d.nodeType)||!++p||(v&&((d[_]||(d[_]={}))[e]=[S,p]),d!==t)););return(p-=o)===r||p%r==0&&p/r>=0}}},PSEUDO:function(e,t){var n,o=r.pseudos[e]||r.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return o[_]?o(t):o.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se((function(e,n){for(var r,i=o(e,t),a=i.length;a--;)e[r=R(e,i[a])]=!(n[r]=i[a])})):function(e){return o(e,0,n)}):o}},pseudos:{not:se((function(e){var t=[],n=[],r=s(e.replace(z,"$1"));return r[_]?se((function(e,t,n,o){for(var i,a=r(e,null,o,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,o,i){return t[0]=e,r(t,null,i,n),t[0]=null,!n.pop()}})),has:se((function(e){return function(t){return ie(e,t).length>0}})),contains:se((function(e){return e=e.replace(ne,re),function(t){return(t.textContent||t.innerText||o(t)).indexOf(e)>-1}})),lang:se((function(e){return Y.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(ne,re).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Z.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:fe((function(){return[0]})),last:fe((function(e,t){return[t-1]})),eq:fe((function(e,t,n){return[n<0?n+t:n]})),even:fe((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:fe((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:fe((function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e})),gt:fe((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},r.pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function me(){}function ge(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(e,t,n){var r=t.dir,o=n&&"parentNode"===r,i=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||o)return e(t,n,i)}:function(t,n,a){var s,c,u=[S,i];if(a){for(;t=t[r];)if((1===t.nodeType||o)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||o){if((s=(c=t[_]||(t[_]={}))[r])&&s[0]===S&&s[1]===i)return u[2]=s[2];if(c[r]=u,u[2]=e(t,n,a))return!0}}}function ve(e){return e.length>1?function(t,n,r){for(var o=e.length;o--;)if(!e[o](t,n,r))return!1;return!0}:e[0]}function be(e,t,n,r,o){for(var i,a=[],s=0,c=e.length,u=null!=t;s<c;s++)(i=e[s])&&(n&&!n(i,r,o)||(a.push(i),u&&t.push(s)));return a}function _e(e,t,n,r,o,i){return r&&!r[_]&&(r=_e(r)),o&&!o[_]&&(o=_e(o,i)),se((function(i,a,s,c){var u,l,d,p=[],f=[],h=a.length,m=i||function(e,t,n){for(var r=0,o=t.length;r<o;r++)ie(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!i&&t?m:be(m,p,e,s,c),y=n?o||(i?e:h||r)?[]:a:g;if(n&&n(g,y,s,c),r)for(u=be(y,f),r(u,[],s,c),l=u.length;l--;)(d=u[l])&&(y[f[l]]=!(g[f[l]]=d));if(i){if(o||e){if(o){for(u=[],l=y.length;l--;)(d=y[l])&&u.push(g[l]=d);o(null,y=[],u,c)}for(l=y.length;l--;)(d=y[l])&&(u=o?R(i,d):p[l])>-1&&(i[u]=!(a[u]=d))}}else y=be(y===a?y.splice(h,y.length):y),o?o(null,a,y,c):L.apply(a,y)}))}function we(e){for(var t,n,o,i=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],c=a?1:0,l=ye((function(e){return e===t}),s,!0),d=ye((function(e){return R(t,e)>-1}),s,!0),p=[function(e,n,r){var o=!a&&(r||n!==u)||((t=n).nodeType?l(e,n,r):d(e,n,r));return t=null,o}];c<i;c++)if(n=r.relative[e[c].type])p=[ye(ve(p),n)];else{if((n=r.filter[e[c].type].apply(null,e[c].matches))[_]){for(o=++c;o<i&&!r.relative[e[o].type];o++);return _e(c>1&&ve(p),c>1&&ge(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(z,"$1"),n,c<o&&we(e.slice(c,o)),o<i&&we(e=e.slice(o)),o<i&&ge(e))}p.push(n)}return ve(p)}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=ie.tokenize=function(e,t){var n,o,i,a,s,c,u,l=x[e+" "];if(l)return t?0:l.slice(0);for(s=e,c=[],u=r.preFilter;s;){for(a in n&&!(o=q.exec(s))||(o&&(s=s.slice(o[0].length)||s),c.push(i=[])),n=!1,(o=V.exec(s))&&(n=o.shift(),i.push({value:n,type:o[0].replace(z," ")}),s=s.slice(n.length)),r.filter)!(o=K[a].exec(s))||u[a]&&!(o=u[a](o))||(n=o.shift(),i.push({value:n,type:a,matches:o}),s=s.slice(n.length));if(!n)break}return t?s.length:s?ie.error(e):x(e,c).slice(0)},s=ie.compile=function(e,t){var n,o=[],i=[],s=E[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=we(t[n]))[_]?o.push(s):i.push(s);s=E(e,function(e,t){var n=t.length>0,o=e.length>0,i=function(i,a,s,c,l){var d,p,h,m=0,g="0",y=i&&[],v=[],b=u,_=i||o&&r.find.TAG("*",l),w=S+=null==b?1:Math.random()||.1,C=_.length;for(l&&(u=a!==f&&a);g!==C&&null!=(d=_[g]);g++){if(o&&d){for(p=0;h=e[p++];)if(h(d,a,s)){c.push(d);break}l&&(S=w)}n&&((d=!h&&d)&&m--,i&&y.push(d))}if(m+=g,n&&g!==m){for(p=0;h=t[p++];)h(y,v,a,s);if(i){if(m>0)for(;g--;)y[g]||v[g]||(v[g]=I.call(c));v=be(v)}L.apply(c,v),l&&!i&&v.length>0&&m+t.length>1&&ie.uniqueSort(c)}return l&&(S=w,u=b),y};return n?se(i):i}(i,o)),s.selector=e}return s},c=ie.select=function(e,t,o,i){var c,u,l,d,p,f="function"==typeof e&&e,h=!i&&a(e=f.selector||e);if(o=o||[],1===h.length){if((u=h[0]=h[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&n.getById&&9===t.nodeType&&m&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(ne,re),t)||[])[0]))return o;f&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(c=K.needsContext.test(e)?0:u.length;c--&&(l=u[c],!r.relative[d=l.type]);)if((p=r.find[d])&&(i=p(l.matches[0].replace(ne,re),ee.test(u[0].type)&&he(t.parentNode)||t))){if(u.splice(c,1),!(e=i.length&&ge(u)))return L.apply(o,i),o;break}}return(f||s(e,h))(i,t,!m,o,ee.test(e)&&he(t.parentNode)||t),o},n.sortStable=_.split("").sort(O).join("")===_,n.detectDuplicates=!!d,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(f.createElement("div"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ue("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ue("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||ue(D,(function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null})),ie}(r);g.find=S,g.expr=S.selectors,g.expr[":"]=g.expr.pseudos,g.unique=S.uniqueSort,g.text=S.getText,g.isXMLDoc=S.isXML,g.contains=S.contains;var C=g.expr.match.needsContext,k=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,x=/^.[^:#\[\.,]*$/;
2function E(e,t,n){if(g.isFunction(t))return g.grep(e,(function(e,r){return!!t.call(e,r,e)!==n}));if(t.nodeType)return g.grep(e,(function(e){return e===t!==n}));if("string"==typeof t){if(x.test(t))return g.filter(t,e,n);t=g.filter(t,e)}return g.grep(e,(function(e){return u.call(t,e)>=0!==n}))}g.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?g.find.matchesSelector(r,e)?[r]:[]:g.find.matches(e,g.grep(t,(function(e){return 1===e.nodeType})))},g.fn.extend({find:function(e){var t,n=this.length,r=[],o=this;if("string"!=typeof e)return this.pushStack(g(e).filter((function(){for(t=0;t<n;t++)if(g.contains(o[t],this))return!0})));for(t=0;t<n;t++)g.find(e,o[t],r);return(r=this.pushStack(n>1?g.unique(r):r)).selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(E(this,e||[],!1))},not:function(e){return this.pushStack(E(this,e||[],!0))},is:function(e){return!!E(this,"string"==typeof e&&C.test(e)?g(e):e||[],!1).length}});var O,T=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(g.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:T.exec(e))||!n[1]&&t)return!t||t.jquery?(t||O).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof g?t[0]:t,g.merge(this,g.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:h,!0)),k.test(n[1])&&g.isPlainObject(t))for(n in t)g.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(r=h.getElementById(n[2]))&&r.parentNode&&(this.length=1,this[0]=r),this.context=h,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):g.isFunction(e)?void 0!==O.ready?O.ready(e):e(g):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),g.makeArray(e,this))}).prototype=g.fn,O=g(h);var A=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}g.extend({dir:function(e,t,n){for(var r=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&g(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),g.fn.extend({has:function(e){var t=g(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(g.contains(this,t[e]))return!0}))},closest:function(e,t){for(var n,r=0,o=this.length,i=[],a=C.test(e)||"string"!=typeof e?g(e,t||this.context):0;r<o;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&g.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?g.unique(i):i)},index:function(e){return e?"string"==typeof e?u.call(g(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(g.unique(g.merge(this.get(),g(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),g.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return g.dir(e,"parentNode")},parentsUntil:function(e,t,n){return g.dir(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return g.dir(e,"nextSibling")},prevAll:function(e){return g.dir(e,"previousSibling")},nextUntil:function(e,t,n){return g.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return g.dir(e,"previousSibling",n)},siblings:function(e){return g.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return g.sibling(e.firstChild)},contents:function(e){return e.contentDocument||g.merge([],e.childNodes)}},(function(e,t){g.fn[e]=function(n,r){var o=g.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(o=g.filter(r,o)),this.length>1&&(P[e]||g.unique(o),A.test(e)&&o.reverse()),this.pushStack(o)}}));var j,L=/\S+/g,N={};function R(){h.removeEventListener("DOMContentLoaded",R,!1),r.removeEventListener("load",R,!1),g.ready()}g.Callbacks=function(e){e="string"==typeof e?N[e]||function(e){var t=N[e]={};return g.each(e.match(L)||[],(function(e,n){t[n]=!0})),t}(e):g.extend({},e);var t,n,r,o,i,a,s=[],c=!e.once&&[],u=function(d){for(t=e.memory&&d,n=!0,a=o||0,o=0,i=s.length,r=!0;s&&a<i;a++)if(!1===s[a].apply(d[0],d[1])&&e.stopOnFalse){t=!1;break}r=!1,s&&(c?c.length&&u(c.shift()):t?s=[]:l.disable())},l={add:function(){if(s){var n=s.length;!function t(n){g.each(n,(function(n,r){var o=g.type(r);"function"===o?e.unique&&l.has(r)||s.push(r):r&&r.length&&"string"!==o&&t(r)}))}(arguments),r?i=s.length:t&&(o=n,u(t))}return this},remove:function(){return s&&g.each(arguments,(function(e,t){for(var n;(n=g.inArray(t,s,n))>-1;)s.splice(n,1),r&&(n<=i&&i--,n<=a&&a--)})),this},has:function(e){return e?g.inArray(e,s)>-1:!(!s||!s.length)},empty:function(){return s=[],i=0,this},disable:function(){return s=c=t=void 0,this},disabled:function(){return!s},lock:function(){return c=void 0,t||l.disable(),this},locked:function(){return!c}
2,fireWith:function(e,t){return!s||n&&!c||(t=[e,(t=t||[]).slice?t.slice():t],r?c.push(t):u(t)),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!n}};return l},g.extend({Deferred:function(e){var t=[["resolve","done",g.Callbacks("once memory"),"resolved"],["reject","fail",g.Callbacks("once memory"),"rejected"],["notify","progress",g.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var e=arguments;return g.Deferred((function(n){g.each(t,(function(t,i){var a=g.isFunction(e[t])&&e[t];o[i[1]]((function(){var e=a&&a.apply(this,arguments);e&&g.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[i[0]+"With"](this===r?n.promise():this,a?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?g.extend(e,r):r}},o={};return r.pipe=r.then,g.each(t,(function(e,i){var a=i[2],s=i[3];r[i[1]]=a.add,s&&a.add((function(){n=s}),t[1^e][2].disable,t[2][2].lock),o[i[0]]=function(){return o[i[0]+"With"](this===o?r:this,arguments),this},o[i[0]+"With"]=a.fireWith})),r.promise(o),e&&e.call(o,o),o},when:function(e){var t,n,r,o=0,i=a.call(arguments),s=i.length,c=1!==s||e&&g.isFunction(e.promise)?s:0,u=1===c?e:g.Deferred(),l=function(e,n,r){return function(o){n[e]=this,r[e]=arguments.length>1?a.call(arguments):o,r===t?u.notifyWith(n,r):--c||u.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);o<s;o++)i[o]&&g.isFunction(i[o].promise)?i[o].promise().done(l(o,r,i)).fail(u.reject).progress(l(o,n,t)):--c;return c||u.resolveWith(r,i),u.promise()}}),g.fn.ready=function(e){return g.ready.promise().done(e),this},g.extend({isReady:!1,readyWait:1,holdReady:function(e){e?g.readyWait++:g.ready(!0)},ready:function(e){(!0===e?--g.readyWait:g.isReady)||(g.isReady=!0,!0!==e&&--g.readyWait>0||(j.resolveWith(h,[g]),g.fn.triggerHandler&&(g(h).triggerHandler("ready"),g(h).off("ready"))))}}),g.ready.promise=function(e){return j||(j=g.Deferred(),"complete"===h.readyState?setTimeout(g.ready):(h.addEventListener("DOMContentLoaded",R,!1),r.addEventListener("load",R,!1))),j.promise(e)},g.ready.promise();var D=g.access=function(e,t,n,r,o,i,a){var s=0,c=e.length,u=null==n;if("object"===g.type(n))for(s in o=!0,n)g.access(e,t,s,n[s],!0,i,a);else if(void 0!==r&&(o=!0,g.isFunction(r)||(a=!0),u&&(a?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(g(e),n)})),t))for(;s<c;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return o?e:u?t.call(e):c?t(e[0],n):i};function M(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=g.expando+M.uid++}g.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},M.uid=1,M.accepts=g.acceptData,M.prototype={key:function(e){if(!M.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=M.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,g.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,o=this.key(e),i=this.cache[o];if("string"==typeof t)i[t]=n;else if(g.isEmptyObject(i))g.extend(this.cache[o],t);else for(r in t)i[r]=t[r];return i},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?void 0!==(r=this.get(e,t))?r:this.get(e,g.camelCase(t)):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,o,i=this.key(e),a=this.cache[i];if(void 0===t)this.cache[i]={};else{g.isArray(t)?r=t.concat(t.map(g.camelCase)):(o=g.camelCase(t),r=t in a?[t,o]:(r=o)in a?[r]:r.match(L)||[]),n=r.length;for(;n--;)delete a[r[n]]}},hasData:function(e){return!g.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var F=new M,U=new M,B=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,$=/([A-Z])/g;function H(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace($,"-$1").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:B.test(n)?g.parseJSON(n):n)}catch(e){}U.set(e,t,n)}else n=void 0;return n}g.extend({hasData:function(e){return U.hasData(e)||F.hasData(e)},data:function(e,t,n){return U.access(e,t,n)},removeData:function(e,t){U.remove(e,t)},_data:function(e,t,n){return F.access(e,t,n)},_removeData:function(e,t){F.remove(e,t)}}),g.fn.extend({data:function(e,t){var n,r,o,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(o=U.get(i),1===i.nodeType&&!F.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=g.camelCase(r.slice(5)),H(i,r,o[r]));F.set(i,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){U.set(this,e)})):D(this,(function(t){var n,r=g.camelCase(e);if(i&&void 0===t)return void 0!==(n=U.get(i,e))||void 0!==(n=U.get(i,r))||void 0!==(n=H(i,r,void 0))?n:void 0;this.each((function(){var n=U.get(this,r);U.set(this,r,t),-1!==e.indexOf("-")&&void 0!==n&&U.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){U.remove(this,e)}))}}),g.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=F.get(e,t),n&&(!r||g.isArray(n)?r=F.access(e,t,g.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=g.queue(e,t),r=n.length,o=n.shift(),i=g._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),r--),o&&("fx"===t&&n.unshift("inprogress"),delete i.stop,o.call(e,(function(){g.dequeue(e,t)}),i)),!r&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return F.get(e,n)||F.access(e,n,{empty:g.Callbacks("once memory").add((function(){F.remove(e,[t+"queue",n])}))})}}),g.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?g.queue(this[0],e):void 0===t?this:this.each((function(){var n=g.queue(this,e,t);g._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&g.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){g.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,o=g.Deferred(),i=this,a=this.length,s=function(){--r||o.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=F.get(i[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),o.promise(t)}});var z,q,V=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,G=["Top","Right","Bottom","Left"],W=function(e,t){return e=t||e,"none"===g.css(e,"display")||!g.contains(e.ownerDocument,e)},Y=/^(?:checkbox|radio)$/i;z=h.createDocumentFragment().appendChild(h.createElement("div")),(q=h.createElement("input")).setAttribute("type","radio"),q.setAttribute("checked","checked"),q.setAttribute("name","t"),z.appendChild(q),f.checkClone
vendor: 1,679 bytes, line 2
2=z.cloneNode(!0).cloneNode(!0).lastChild.checked,z.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!z.cloneNode(!0).lastChild.defaultValue;var K="undefined";f.focusinBubbles="onfocusin"in r;var J=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Q=/^([^.]*)(?:\.(.+)|)$/;function ee(){return!0}function te(){return!1}function ne(){try{return h.activeElement}catch(e){}}g.event={global:{},add:function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m,y=F.get(e);if(y)for(n.handler&&(n=(i=n).handler,o=i.selector),n.guid||(n.guid=g.guid++),(c=y.events)||(c=y.events={}),(a=y.handle)||(a=y.handle=function(t){return typeof g!==K&&g.event.triggered!==t.type?g.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(L)||[""]).length;u--;)f=m=(s=Q.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=g.event.special[f]||{},f=(o?d.delegateType:d.bindType)||f,d=g.event.special[f]||{},l=g.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:o,needsContext:o&&g.expr.match.needsContext.test(o),namespace:h.join(".")},i),(p=c[f])||((p=c[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(f,a,!1)),d.add&&(d.add.call(e,l),l.handler.guid||(l.handler.guid=n.guid)),o?p.splice(p.delegateCount++,0,l):p.push(l),g.event.global[f]=!0)},remove:function(e,t,n,r,o){var i,a,s,c,u,l,d,p,f,h,m,y=F.hasData(e)&&F.get(e);if(y&&(c=y.events)){for(u=(t=(t||"").match(L)||[""]).length;u--;)if(f=m=(s=Q.exec(t[u])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=g.event.special[f]||{},p=c[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=p.length;i--;
2)l=p[i],!o&&m!==l.origType||n&&n.guid!==l.guid||s&&!s.test(l.namespace)||r&&r!==l.selector&&("**"!==r||!l.selector)||(p.splice(i,1),l.selector&&p.delegateCount--,d.remove&&d.remove.call(e,l));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,y.handle)||g.removeEvent(e,f,y.handle),delete c[f])}else for(f in c)g.event.remove(e,f+t[u],n,r,!0);g.isEmptyObject(c)&&(delete y.handle,F.remove(e,"events"))}},trigger:function(e,t,n,o){var i,a,s,c,u,l,d,f=[n||h],m=p.call(e,"type")?e.type:e,y=p.call(e,"namespace")?e.namespace.split("."):[];if(a=s=n=n||h,3!==n.nodeType&&8!==n.nodeType&&!X.test(m+g.event.triggered)&&(m.indexOf(".")>=0&&(y=m.split("."),m=y.shift(),y.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[g.expando]?e:new g.Event(m,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=y.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:g.makeArray(t,[e]),d=g.event.special[m]||{},o||!d.trigger||!1!==d.trigger.apply(n,t))){if(!o&&!d.noBubble&&!g.isWindow(n)){for(c=d.delegateType||m,X.test(c+m)||(a=a.parentNode);a;a=a.parentNode)f.push(a),s=a;s===(n.ownerDocument||h)&&f.push(s.defaultView||s.parentWindow||r)}for(i=0;(a=f[i++])&&!e.isPropagationStopped();)e.type=i>1?c:d.bindType||m,(l=(F.get(a,"events")||{})[e.type]&&F.get(a,"handle"))&&l.apply(a,t),(l=u&&a[u])&&l.apply&&g.acceptData(a)&&(e.result=l.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,o||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(f.pop(),t)||!g.acceptData(n)||u&&g.isFunction(n[m])&&!g.isWindow(n)&&((s=n[u])&&(n[u]=null),g.event.triggered=m,n[m](),g.event.triggered=void 0,s&&(n[u]=s)),e.result}},dispatch:function(e){e=g.event.fix(e);var t,n,r,o,i,s=[],c=a.call(arguments),u=(F.get(this,"events")||{})[e.type]||[],l=g.event.special[e.type]||{};if(c[0]=e,e.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,e)){for(s=g.event.handlers.call(this,e,u),t=0;(o=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,n=0;(i=o.handlers[n++])&&!e.isImmediatePropagationStopped();)e.namespace_re&&!e.namespace_re.test(i.namespace)||(e.handleObj=i,e.data=i.data,void 0!==(r=((g.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,c))&&!1===(e.result=r)&&(e.preventDefault(),e.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,o,i,a=[],s=t.delegateCount,c=e.target;if(s&&c.nodeType&&(!e.button||"click"!==e.type))for(;c!==this;c=c.parentNode||this)if(!0!==c.disabled||"click"!==e.type){for(r=[],n=0;n<s;n++)void 0===r[o=(i=t[n]).selector+" "]&&(r[o]=i.needsContext?g(o,this).index(c)>=0:g.find(o,this,null,[c]).length),r[o]&&r.push(i);r.length&&a.push({elem:c,handlers:r})}return s<t.length&&a.push({elem:this,handlers:t.slice(s)}),a},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,o,i=t.button;return null==e.pageX&&null!=t.clientX&&(r=(n=e.target.ownerDocument||h).documentElement,o=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||o&&o.scrollLeft||0)-(r&&r.clientLeft||o&&o.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||o&&o.scrollTop||0)-(r&&r.clientTop||o&&o.clientTop||0)),e.which||void 0===i||(e.which=1&i?1:2&i?3:4&i?2:0),e}},fix:function(e){if(e[g.expando])return e;var t,n,r,o=e.type,i=e,a=this.fixHooks[o];for(a||(this.fixHooks[o]=a=Z.test(o)?this.mouseHooks:J.test(o)?this.keyHooks:{}),r=a.props?this.props.concat(a.props):this.props,e=new g.Event(i),t=r.length;t--;)e[n=r[t]]=i[n];return e.target||(e.target=h),3===e.target.nodeType&&(e.target=e.target.parentNode),a.filter?a.filter(e,i):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ne()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ne()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&g.nodeName(this,"input"))return this.click(),!1},_default:function(e){return g.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var o=g.extend(new g.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?g.event.trigger(o,null,t):g.event.dispatch.call(t,o),o.isDefaultPrevented()&&n.preventDefault()}},g.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},g.Event=function(e,t){if(!(this instanceof g.Event))return new g.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ee:te):this.type=e,t&&g.extend(this,t),this.timeStamp=e&&e.timeStamp||g.now(),this[g.expando]=!0},g.Event.prototype={isDefaultPrevented:te,isPropagationStopped:te,isImmediatePropagationStopped:te,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ee,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ee,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ee,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}}
2,g.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){g.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,o=e.relatedTarget,i=e.handleObj;return o&&(o===r||g.contains(r,o))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),f.focusinBubbles||g.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){g.event.simulate(t,e.target,g.event.fix(e),!0)};g.event.special[t]={setup:function(){var r=this.ownerDocument||this,o=F.access(r,t);o||r.addEventListener(e,n,!0),F.access(r,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=F.access(r,t)-1;o?F.access(r,t,o):(r.removeEventListener(e,n,!0),F.remove(r,t))}}})),g.fn.extend({on:function(e,t,n,r,o){var i,a;if("object"==typeof e){for(a in"string"!=typeof t&&(n=n||t,t=void 0),e)this.on(a,t,n,e[a],o);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),!1===r)r=te;else if(!r)return this;return 1===o&&(i=r,r=function(e){return g().off(e),i.apply(this,arguments)},r.guid=i.guid||(i.guid=g.guid++)),this.each((function(){g.event.add(this,e,r,n,t)}))},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,g(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=te),this.each((function(){g.event.remove(this,e,n,t)}))},trigger:function(e,t){return this.each((function(){g.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return g.event.trigger(e,t,n,!0)}});var re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,oe=/<([\w:]+)/,ie=/<|&#?\w+;/,ae=/<(?:script|style|link)/i,se=/checked\s*(?:[^=]|=\s*.checked.)/i,ce=/^$|\/(?:java|ecma)script/i,ue=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,de={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function pe(e,t){return g.nodeName(e,"table")&&g.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function fe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function he(e){var t=ue.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function me(e,t){for(var n=0,r=e.length;n<r;n++)F.set(e[n],"globalEval",!t||F.get(t[n],"globalEval"))}function ge(e,t){var n,r,o,i,a,s,c,u;if(1===t.nodeType){if(F.hasData(e)&&(i=F.access(e),a=F.set(t,i),u=i.events))for(o in delete a.handle,a.events={},u)for(n=0,r=u[o].length;n<r;n++)g.event.add(t,o,u[o][n]);U.hasData(e)&&(s=U.access(e),c=g.extend({},s),U.set(t,c))}}function ye(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&g.nodeName(e,t)?g.merge([e],n):n}de.optgroup=de.option,de.tbody=de.tfoot=de.colgroup=de.caption=de.thead,de.th=de.td,g.extend({clone:function(e,t,n){var r,o,i,a,s,c,u,l=e.cloneNode(!0),d=g.contains(e.ownerDocument,e);if(!(f.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||g.isXMLDoc(e)))for(a=ye(l),r=0,o=(i=ye(e)).length;r<o;r++)s=i[r],void 0,"input"===(u=(c=a[r]).nodeName.toLowerCase())&&Y.test(s.type)?c.checked=s.checked:"input"!==u&&"textarea"!==u||(c.defaultValue=s.defaultValue);if(t)if(n)for(i=i||ye(e),a=a||ye(l),r=0,o=i.length;r<o;r++)ge(i[r],a[r]);else ge(e,l);return(a=ye(l,"script")).length>0&&me(a,!d&&ye(e,"script")),l},buildFragment:function(e,t,n,r){for(var o,i,a,s,c,u,l=t.createDocumentFragment(),d=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===g.type(o))g.merge(d,o.nodeType?[o]:o);else if(ie.test(o)){for(i=i||l.appendChild(t.createElement("div")),a=(oe.exec(o)||["",""])[1].toLowerCase(),s=de[a]||de._default,i.innerHTML=s[1]+o.replace(re,"<$1></$2>")+s[2],u=s[0];u--;)i=i.lastChild;g.merge(d,i.childNodes),(i=l.firstChild).textContent=""}else d.push(t.createTextNode(o));for(l.textContent="",p=0;o=d[p++];)if((!r||-1===g.inArray(o,r))&&(c=g.contains(o.ownerDocument,o),i=ye(l.appendChild(o),"script"),c&&me(i),n))for(u=0;o=i[u++];)ce.test(o.type||"")&&n.push(o);return l},cleanData:function(e){for(var t,n,r,o,i=g.event.special,a=0;void 0!==(n=e[a]);a++){if(g.acceptData(n)&&(o=n[F.expando])&&(t=F.cache[o])){if(t.events)for(r in t.events)i[r]?g.event.remove(n,r):g.removeEvent(n,r,t.handle);F.cache[o]&&delete F.cache[o]}delete U.cache[n[U.expando]]}}}),g.fn.extend({text:function(e){return D(this,(function(e){return void 0===e?g.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return this.domManip(arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||pe(this,e).appendChild(e)}))},prepend:function(){return this.domManip(arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=pe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return this.domManip(arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},remove:function(e,t){for(var n,r=e?g.filter(e,this):this,o=0;null!=(n=r[o]);o++)t||1!==n.nodeType||g.cleanData(ye(n)),n.parentNode&&(t&&g.contains(n.ownerDocument,n)&&me(ye(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(g.cleanData(ye(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return g.clone(this,e,t)}))},html:function(e){return D(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ae.test(e)&&!de[(oe.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(re,"<$1></$2>");try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(g.cleanData(ye(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,(function(t){e=this.parentNode,g.cleanData(ye(this)),e&&e.replaceChild(t,this)})),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=s.apply([],e);var n,r,o,i,a,c,u=0,l=this.length,d=this,p=l-1,h=e[0],m=g.isFunction(h);if(m||l>1&&"string"==typeof h&&!f.checkClone&&se.test(h))return this.each((function(n){var r=d.eq(n);m&&(e[0]=h.call(this,n,r.html())),r.domManip(e,t)}));if(l&&(r=(n=g.buildFragment(e,this[0].ownerDocument,!1,this)).firstChild,1===n.childNodes.length&&(n=r),r)){for(i=(o=g.map(ye(n,"script"),fe)).length;u<l;u++)a=n,u!==p&&(a=g.clone(a,!0,!0),i&&g.merge(o,ye(a,"script"))),t.call(this[u],a,u);if(i)for(c=o[o.length-1].ownerDocument,g.map(o,he),u=0;u<i;u++)a=o[u],ce.test(a.type||"")&&!F.access(a,"globalEval")&&g.contains(c,a)&&(a.src?g._evalUrl&&g._evalUrl(a.src):g.globalEval(a.textContent.replace(le,"")))}return this}}),g.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){g.fn[e]=function(e){for(var n,r=[],o=g(e),i=o.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),g(o[a])[t](n),c.apply(r,n.get());return this.pushStack(r)}}));var ve,be={};function _e(e,t){var n,o=g(t.createElement(e)).appendTo(t.body),i=r.getDefaultComputedStyle&&(n=r.getDefaultComputedStyle(o[0]))?n.display:g.css(o[0],"display");return o.detach(),i}function we(e){var t=h,n=be[e];return n||("none"!==(n=_e(e,t))&&n||((t=(ve=(ve||g("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentDocument).write(),t.close(),n=_e(e,t),ve.detach()),be[e]=n),n}var Se=/^margin/,Ce=new RegExp("^("+V+")(?!px)[a-z%]+$","i"),ke=function(e){return e.ownerDocument.defaultView.opener?e.ownerDocument.defaultView.getComputedStyle(e,null):r.getComputedStyle(e,null)};function xe(e,t,n){var r,o,i,a,s=e.style;return(n=n||ke(e))&&(a=n.getPropertyValue(t)||n[t]),n&&(""!==a||g.contains(e.ownerDocument,e)||(a=g.style(e,t)),Ce.test(a)&&Se.test(t)&&(r=s.width,o=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=o,s.maxWidth=i)),void 0!==a?a+"":a}function Ee(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){var e,t,n=h.documentElement,o=h.createElement("div"),i=h.createElement("div");function a(){i.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",i.innerHTML="",n.appendChild(o);var a=r.getComputedStyle(i,null);e="1%"!==a.top,t="4px"===a.width,n.removeChild(o)}i.style&&(i.style.backgroundClip="content-box",i.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===i.style.backgroundClip,o.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",o.appendChild(i),r.getComputedStyle&&g.extend(f,{pixelPosition:function(){return a(),e},boxSizingReliable:function(){return null==t&&a(),t},reliableMarginRight:function(){var e,t=i.appendChild(h.createElement("div"));return t.style.cssText=i.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",i.style.width="1px",n.appendChild(o),e=!parseFloat(r.getComputedStyle(t,null).marginRight),n.removeChild(o),i.removeChild(t),e}}))}(),g.swap=function(e,t,n,r){var o,i,a={};for(i in t)a[i]=e.style[i],e.style[i]=t[i];for(i in o=n.apply(e,r||[]),t)e.style[i]=a[i];return o};var Oe=/^(none|table(?!-c[ea]).+)/,Te=new RegExp("^("+V+")(.*)$","i"),Ae=new RegExp("^([+-])=("+V+")","i"),Pe={position:"absolute",visibility:"hidden",display:"block"},Ie={letterSpacing:"0",fontWeight:"400"},je=["Webkit","O","Moz","ms"];function Le(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,o=je.length;o--;)if((t=je[o]+n)in e)return t;return r}function Ne(e,t,n){var r=Te.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function Re(e,t,n,r,o){for(var i=n===(r?"border":"content")?4:"width"===t?1:0,a=0;i<4;i+=2)"margin"===n&&(a+=g.css(e,n+G[i],!0,o)),r?("content"===n&&(a-=g.css(e,"padding"+G[i],!0,o)),"margin"!==n&&(a-=g.css(e,"border"+G[i]+"Width",!0,o))):(a+=g.css(e,"padding"+G[i],!0,o),"padding"!==n&&(a+=g.css(e,"border"+G[i]+"Width",!0,o)));return a}function De(e,t,n){var r=!0,o="width"===t?e.offsetWidth:e.offsetHeight,i=ke(e),a="border-box"===g.css(e,"boxSizing",!1,i);if(o<=0||null==o){if(((o=xe(e,t,i))<0||null==o)&&(o=e.style[t]),Ce.test(o))return o;r=a&&(f.boxSizingReliable()||o===e.style[t]),o=parseFloat(o)||0}return o+Re(e,t,n||(a?"border":"content"),r,i)+"px"}function Me(e,t){for(var n,r,o,i=[],a=0,s=e.length;a<s;a++)(r=e[a]).style&&(i[a]=F.get(r,"olddisplay"),n=r.style.display,t?(i[a]||"none"!==n||(r.style.display=""),""===r.style.display&&W(r)&&(i[a]=F.access(r,"olddisplay",we(r.nodeName)))):(o=W(r),"none"===n&&o||F.set(r,"olddisplay",o?n:g.css(r,"display"))));for(a=0;a<s;a++)(r=e[a]).style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?i[a]||"":"none"));return e}function Fe(e,t,n,r,o){return new Fe.prototype.init(e,t,n,r,o)}g.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=xe(e,"o
2pacity");return""===n?"1":n}}}},cssNumber:{columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,i,a,s=g.camelCase(t),c=e.style;if(t=g.cssProps[s]||(g.cssProps[s]=Le(c,s)),a=g.cssHooks[t]||g.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(o=a.get(e,!1,r))?o:c[t];"string"==(i=typeof n)&&(o=Ae.exec(n))&&(n=(o[1]+1)*o[2]+parseFloat(g.css(e,t)),i="number"),null!=n&&n==n&&("number"!==i||g.cssNumber[s]||(n+="px"),f.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(c[t]=n))}},css:function(e,t,n,r){var o,i,a,s=g.camelCase(t);return t=g.cssProps[s]||(g.cssProps[s]=Le(e.style,s)),(a=g.cssHooks[t]||g.cssHooks[s])&&"get"in a&&(o=a.get(e,!0,n)),void 0===o&&(o=xe(e,t,r)),"normal"===o&&t in Ie&&(o=Ie[t]),""===n||n?(i=parseFloat(o),!0===n||g.isNumeric(i)?i||0:o):o}}),g.each(["height","width"],(function(e,t){g.cssHooks[t]={get:function(e,n,r){if(n)return Oe.test(g.css(e,"display"))&&0===e.offsetWidth?g.swap(e,Pe,(function(){return De(e,t,r)})):De(e,t,r)},set:function(e,n,r){var o=r&&ke(e);return Ne(0,n,r?Re(e,t,r,"border-box"===g.css(e,"boxSizing",!1,o),o):0)}}})),g.cssHooks.marginRight=Ee(f.reliableMarginRight,(function(e,t){if(t)return g.swap(e,{display:"inline-block"},xe,[e,"marginRight"])})),g.each({margin:"",padding:"",border:"Width"},(function(e,t){g.cssHooks[e+t]={expand:function(n){for(var r=0,o={},i="string"==typeof n?n.split(" "):[n];r<4;r++)o[e+G[r]+t]=i[r]||i[r-2]||i[0];return o}},Se.test(e)||(g.cssHooks[e+t].set=Ne)})),g.fn.extend({css:function(e,t){return D(this,(function(e,t,n){var r,o,i={},a=0;if(g.isArray(t)){for(r=ke(e),o=t.length;a<o;a++)i[t[a]]=g.css(e,t[a],!1,r);return i}return void 0!==n?g.style(e,t,n):g.css(e,t)}),e,t,arguments.length>1)},show:function(){return Me(this,!0)},hide:function(){return Me(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){W(this)?g(this).show():g(this).hide()}))}}),g.Tween=Fe,Fe.prototype={constructor:Fe,init:function(e,t,n,r,o,i){this.elem=e,this.prop=n,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=i||(g.cssNumber[n]?"":"px")},cur:function(){var e=Fe.propHooks[this.prop];return e&&e.get?e.get(this):Fe.propHooks._default.get(this)},run:function(e){var t,n=Fe.propHooks[this.prop];return this.options.duration?this.pos=t=g.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Fe.propHooks._default.set(this),this}},Fe.prototype.init.prototype=Fe.prototype,Fe.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=g.css(e.elem,e.prop,""))&&"auto"!==t?t:0:e.elem[e.prop]},set:function(e){g.fx.step[e.prop]?g.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[g.cssProps[e.prop]]||g.cssHooks[e.prop])?g.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Fe.propHooks.scrollTop=Fe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},g.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},g.fx=Fe.prototype.init,g.fx.step={};var Ue,Be,$e=/^(?:toggle|show|hide)$/,He=new RegExp("^(?:([+-])=|)("+V+")([a-z%]*)$","i"),ze=/queueHooks$/,qe=[function(e,t,n){var r,o,i,a,s,c,u,l=this,d={},p=e.style,f=e.nodeType&&W(e),h=F.get(e,"fxshow");for(r in n.queue||(null==(s=g._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,c=s.empty.fire,s.empty.fire=function(){s.unqueued||c()}),s.unqueued++,l.always((function(){l.always((function(){s.unqueued--,g.queue(e,"fx").length||s.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],"inline"===("none"===(u=g.css(e,"display"))?F.get(e,"olddisplay")||we(e.nodeName):u)&&"none"===g.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",l.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),t)if(o=t[r],$e.exec(o)){if(delete t[r],i=i||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||
2!h||void 0===h[r])continue;f=!0}d[r]=h&&h[r]||g.style(e,r)}else u=void 0;if(g.isEmptyObject(d))"inline"===("none"===u?we(e.nodeName):u)&&(p.display=u);else for(r in h?"hidden"in h&&(f=h.hidden):h=F.access(e,"fxshow",{}),i&&(h.hidden=!f),f?g(e).show():l.done((function(){g(e).hide()})),l.done((function(){var t;for(t in F.remove(e,"fxshow"),d)g.style(e,t,d[t])})),d)a=Ye(f?h[r]:0,r,l),r in h||(h[r]=a.start,f&&(a.end=a.start,a.start="width"===r||"height"===r?1:0))}],Ve={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),o=He.exec(t),i=o&&o[3]||(g.cssNumber[e]?"":"px"),a=(g.cssNumber[e]||"px"!==i&&+r)&&He.exec(g.css(n.elem,e)),s=1,c=20;if(a&&a[3]!==i){i=i||a[3],o=o||[],a=+r||1;do{a/=s=s||".5",g.style(n.elem,e,a+i)}while(s!==(s=n.cur()/r)&&1!==s&&--c)}return o&&(a=n.start=+a||+r||0,n.unit=i,n.end=o[1]?a+(o[1]+1)*o[2]:+o[2]),n}]};function Ge(){return setTimeout((function(){Ue=void 0})),Ue=g.now()}function We(e,t){var n,r=0,o={height:e};for(t=t?1:0;r<4;r+=2-t)o["margin"+(n=G[r])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function Ye(e,t,n){for(var r,o=(Ve[t]||[]).concat(Ve["*"]),i=0,a=o.length;i<a;i++)if(r=o[i].call(n,t,e))return r}function Ke(e,t,n){var r,o,i=0,a=qe.length,s=g.Deferred().always((function(){delete c.elem})),c=function(){if(o)return!1;for(var t=Ue||Ge(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),i=0,a=u.tweens.length;i<a;i++)u.tweens[i].run(r);return s.notifyWith(e,[u,r,n]),r<1&&a?n:(s.resolveWith(e,[u]),!1)},u=s.promise({elem:e,props:g.extend({},t),opts:g.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Ue||Ge(),duration:n.duration,tweens:[],createTween:function(t,n){var r=g.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(o)return this;for(o=!0;n<r;n++)u.tweens[n].run(1);return t?s.resolveWith(e,[u,t]):s.rejectWith(e,[u,t]),this}}),l=u.props;for(function(e,t){var n,r,o,i,a;for(n in e)if(o=t[r=g.camelCase(n)],i=e[n],g.isArray(i)&&(o=i[1],i=e[n]=i[0]),n!==r&&(e[r]=i,delete e[n]),(a=g.cssHooks[r])&&"expand"in a)for(n in i=a.expand(i),delete e[r],i)n in e||(e[n]=i[n],t[n]=o);else t[r]=o}(l,u.opts.specialEasing);i<a;i++)if(r=qe[i].call(u,e,l,u.opts))return r;return g.map(l,Ye,u),g.isFunction(u.opts.start)&&u.opts.start.call(e,u),g.fx.timer(g.extend(c,{elem:e,anim:u,queue:u.opts.queue})),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always)}g.Animation=g.extend(Ke,{tweener:function(e,t){g.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,o=e.length;r<o;r++)n=e[r],Ve[n]=Ve[n]||[],Ve[n].unshift(t)},prefilter:function(e,t){t?qe.unshift(e):qe.push(e)}}),g.speed=function(e,t,n){var r=e&&"object"==typeof e?g.extend({},e):{complete:n||!n&&t||g.isFunction(e)&&e,duration:e,easing:n&&t||t&&!g.isFunction(t)&&t};return r.duration=g.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in g.fx.speeds?g.fx.speeds[r.duration]:g.fx.speeds._default,null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){g.isFunction(r.old)&&r.old.call(this),r.queue&&g.dequeue(this,r.queue)},r},g.fn.extend({fadeTo:function(e,t,n,r){return this.filter(W).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var o=g.isEmptyObject(e),i=g.speed(t,n,r),a=function(){var t=Ke(this,g.extend({},e),i);(o||F.get(this,"finish"))&&t.stop(!0)};return a.finish=a,o||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,o=null!=e&&e+"queueHooks",i=g.timers,a=F.get(this);if(o)a[o]&&a[o].stop&&r(a[o]);else for(o in a)a[o]&&a[o].stop&&ze.test(o)&&r(a[o]);for(o=i.length;o--;)i[o].elem!==this||null!=e&&i[o].queue!==e||(i[o].anim.stop(n),t=!1,i.splice(o,1));!t&&n||g.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=F.get(this),r=n[e+"queue"],o=n[e+"queueHooks"],i=g.timers,a=r?r.length:0;for(n.finish=!0,g.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1)
2);for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),g.each(["toggle","show","hide"],(function(e,t){var n=g.fn[t];g.fn[t]=function(e,r,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(We(t,!0),e,r,o)}})),g.each({slideDown:We("show"),slideUp:We("hide"),slideToggle:We("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){g.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),g.timers=[],g.fx.tick=function(){var e,t=0,n=g.timers;for(Ue=g.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||g.fx.stop(),Ue=void 0},g.fx.timer=function(e){g.timers.push(e),e()?g.fx.start():g.timers.pop()},g.fx.interval=13,g.fx.start=function(){Be||(Be=setInterval(g.fx.tick,g.fx.interval))},g.fx.stop=function(){clearInterval(Be),Be=null},g.fx.speeds={slow:600,fast:200,_default:400},g.fn.delay=function(e,t){return e=g.fx&&g.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}}))},function(){var e=h.createElement("input"),t=h.createElement("select"),n=t.appendChild(h.createElement("option"));e.type="checkbox",f.checkOn=""!==e.value,f.optSelected=n.selected,t.disabled=!0,f.optDisabled=!n.disabled,(e=h.createElement("input")).value="t",e.type="radio",f.radioValue="t"===e.value}();var Je,Ze=g.expr.attrHandle;g.fn.extend({attr:function(e,t){return D(this,g.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){g.removeAttr(this,e)}))}}),g.extend({attr:function(e,t,n){var r,o,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return typeof e.getAttribute===K?g.prop(e,t,n):(1===i&&g.isXMLDoc(e)||(t=t.toLowerCase(),r=g.attrHooks[t]||(g.expr.match.bool.test(t)?Je:void 0)),void 0===n?r&&"get"in r&&null!==(o=r.get(e,t))?o:null==(o=g.find.attr(e,t))?void 0:o:null!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):void g.removeAttr(e,t))},removeAttr:function(e,t){var n,r,o=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;n=i[o++];)r=g.propFix[n]||n,g.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!f.radioValue&&"radio"===t&&g.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),Je={set:function(e,t,n){return!1===t?g.removeAttr(e,n):e.setAttribute(n,n),n}},g.each(g.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=Ze[t]||g.find.attr;Ze[t]=function(e,t,r){var o,i;return r||(i=Ze[t],Ze[t]=o,o=null!=n(e,t,r)?t.toLowerCase():null,Ze[t]=i),o}}));var Xe=/^(?:input|select|textarea|button)$/i;g.fn.extend({prop:function(e,t){return D(this,g.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[g.propFix[e]||e]}))}}),g.extend({propFix:{for:"htmlFor",class:"className"},prop:function(e,t,n){var r,o,i=e.nodeType;if(e&&3!==i&&8!==i&&2!==i)return(1!==i||!g.isXMLDoc(e))&&(t=g.propFix[t]||t,o=g.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(r=o.set(e,n,t))?r:e[t]=n:o&&"get"in o&&null!==(r=o.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||Xe.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),f.optSelected||(g.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),g.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){g.propFix[this.toLowerCase()]=this}));var Qe=/[\t\r\n\f]/g;g.fn.extend({addClass:function(e){var t,n,r,o,i,a,s="string"==typeof e&&e,c=0,u=this.length;
2if(g.isFunction(e))return this.each((function(t){g(this).addClass(e.call(this,t,this.className))}));if(s)for(t=(e||"").match(L)||[];c<u;c++)if(r=1===(n=this[c]).nodeType&&(n.className?(" "+n.className+" ").replace(Qe," "):" ")){for(i=0;o=t[i++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");a=g.trim(r),n.className!==a&&(n.className=a)}return this},removeClass:function(e){var t,n,r,o,i,a,s=0===arguments.length||"string"==typeof e&&e,c=0,u=this.length;if(g.isFunction(e))return this.each((function(t){g(this).removeClass(e.call(this,t,this.className))}));if(s)for(t=(e||"").match(L)||[];c<u;c++)if(r=1===(n=this[c]).nodeType&&(n.className?(" "+n.className+" ").replace(Qe," "):"")){for(i=0;o=t[i++];)for(;r.indexOf(" "+o+" ")>=0;)r=r.replace(" "+o+" "," ");a=e?g.trim(r):"",n.className!==a&&(n.className=a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):g.isFunction(e)?this.each((function(n){g(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n)for(var t,r=0,o=g(this),i=e.match(L)||[];t=i[r++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else n!==K&&"boolean"!==n||(this.className&&F.set(this,"__className__",this.className),this.className=this.className||!1===e?"":F.get(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;n<r;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(Qe," ").indexOf(t)>=0)return!0;return!1}});var et=/\r/g;g.fn.extend({val:function(e){var t,n,r,o=this[0];return arguments.length?(r=g.isFunction(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=r?e.call(this,n,g(this).val()):e)?o="":"number"==typeof o?o+="":g.isArray(o)&&(o=g.map(o,(function(e){return null==e?"":e+""}))),(t=g.valHooks[this.type]||g.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=g.valHooks[o.type]||g.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(et,""):null==n?"":n:void 0}}),g.extend({valHooks:{option:{get:function(e){var t=g.find.attr(e,"value");return null!=t?t:g.trim(g.text(e))}},select:{get:function(e){for(var t,n,r=e.options,o=e.selectedIndex,i="select-one"===e.type||o<0,a=i?null:[],s=i?o+1:r.length,c=o<0?s:i?o:0;c<s;c++)if(((n=r[c]).selected||c===o)&&(f.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!g.nodeName(n.parentNode,"optgroup"))){if(t=g(n).val(),i)return t;a.push(t)}return a}
2,set:function(e,t){for(var n,r,o=e.options,i=g.makeArray(t),a=o.length;a--;)((r=o[a]).selected=g.inArray(r.value,i)>=0)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),g.each(["radio","checkbox"],(function(){g.valHooks[this]={set:function(e,t){if(g.isArray(t))return e.checked=g.inArray(g(e).val(),t)>=0}},f.checkOn||(g.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),g.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){g.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),g.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}});var tt=g.now(),nt=/\?/;g.parseJSON=function(e){return JSON.parse(e+"")},g.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||g.error("Invalid XML: "+e),t};var rt=/#.*$/,ot=/([?&])_=[^&]*/,it=/^(.*?):[ \t]*([^\r\n]*)$/gm,at=/^(?:GET|HEAD)$/,st=/^\/\//,ct=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,ut={},lt={},dt="*/".concat("*"),pt=r.location.href,ft=ct.exec(pt.toLowerCase())||[];function ht(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,o=0,i=t.toLowerCase().match(L)||[];if(g.isFunction(n))for(;r=i[o++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function mt(e,t,n,r){var o={},i=e===lt;function a(s){var c;return o[s]=!0,g.each(e[s]||[],(function(e,s){var u=s(t,n,r);return"string"!=typeof u||i||o[u]?i?!(c=u):void 0:(t.dataTypes.unshift(u),a(u),!1)})),c}return a(t.dataTypes[0])||!o["*"]&&a("*")}function gt(e,t){var n,r,o=g.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:r||(r={}))[n]=t[n]);return r&&g.extend(!0,e,r),e}g.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pt,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ft[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":dt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":g.parseJSON,"text xml":g.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?gt(gt(e,g.ajaxSettings),t):gt(g.ajaxSettings,e)},ajaxPrefilter:ht(ut),ajaxTransport:ht(lt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,o,i,a,s,c,u,l=g.ajaxSetup({},t),d=l.context||l,p=l.context&&(d.nodeType||d.jquery)?g(d):g.event,f=g.Deferred(),h=g.Callbacks("once memory"),m=l.statusCode||{},y={},v={},b=0,_="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!i)for(i={};t=it.exec(o);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(l.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)m[t]=[m[t],e[t]];else w.always(e[w.status]);return this},abort:function(e){var t=e||_;return n&&n.abort(t),S(0,t),this}};if(f.promise(w).complete=h.add,w.success=w.done,w.error=w.fail,l.url=((e||l.url||pt)+"").replace(rt,"").replace(st,ft[1]+"//"),l.type=t.method||t.type||l.method||l.type,l.dataTypes=g.trim(l.dataType||"*").toLowerCase().match(L)||[""],null==l.crossDomain&&(s=ct.exec(l.url.toLowerCase()),l.crossDomain=!(!s||s[1]===ft[1]&&s[2]===ft[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(ft[3]||("http:"===ft[1]?"80":"443")))),l.data&&l.processData&&"string"!=typeof l.data&&(l.data=g.param(l.data,l.traditional)),mt(ut,l,t,w),2===b)return w;for(u in(c=g.event&&l.global)&&0==g.active++&&g.event.trigger("ajaxStart"),l.type=l.type.toUpperCase(),l.hasContent=!at.test(l.type),r=l.url,l.hasContent||(l.data&&(r=l.url+=(nt.test(r)?"&":"?")+l.data,delete l.data),!1===l.cache&&(l.url=ot.test(r)?r.replace(ot,"$1_="+tt++):r+(nt.test(r)?"&":"?")+"_="+tt++)),l.ifModified&&(g.lastModified[r]&&w.setRequestHeader("If-Modified-Since",g.lastModified[r]),g.etag[r]&&w.setRequestHeader("If-None-Match",g.etag[r])),(l.data&&l.hasContent&&!1!==l.contentType||t.contentType)&&w.setRequestHeader("Content-Type",l.contentType),w.setRequestHeader("Accept",l.dataTypes[0]&&l.accepts[l.dataTypes[0]]?l.accepts[l.dataTypes[0]]+("*"!==l.dataTypes[0]?", "+dt+"; q=0.01":""):l.accepts["*"]),l.headers)w.setRequestHeader(u,l.headers[u]);
2if(l.beforeSend&&(!1===l.beforeSend.call(d,w,l)||2===b))return w.abort();for(u in _="abort",{success:1,error:1,complete:1})w[u](l[u]);if(n=mt(lt,l,t,w)){w.readyState=1,c&&p.trigger("ajaxSend",[w,l]),l.async&&l.timeout>0&&(a=setTimeout((function(){w.abort("timeout")}),l.timeout));try{b=1,n.send(y,S)}catch(e){if(!(b<2))throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,i,s){var u,y,v,_,S,C=t;2!==b&&(b=2,a&&clearTimeout(a),n=void 0,o=s||"",w.readyState=e>0?4:0,u=e>=200&&e<300||304===e,i&&(_=function(e,t,n){for(var r,o,i,a,s=e.contents,c=e.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(o in s)if(s[o]&&s[o].test(r)){c.unshift(o);break}if(c[0]in n)i=c[0];else{for(o in n){if(!c[0]||e.converters[o+" "+c[0]]){i=o;break}a||(a=o)}i=i||a}if(i)return i!==c[0]&&c.unshift(i),n[i]}(l,w,i)),_=function(e,t,n,r){var o,i,a,s,c,u={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)u[a.toLowerCase()]=e.converters[a];for(i=l.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!c&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=i,i=l.shift())if("*"===i)i=c;else if("*"!==c&&c!==i){if(!(a=u[c+" "+i]||u["* "+i]))for(o in u)if((s=o.split(" "))[1]===i&&(a=u[c+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[o]:!0!==u[o]&&(i=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+c+" to "+i}}}return{state:"success",data:t}}(l,_,w,u),u?(l.ifModified&&((S=w.getResponseHeader("Last-Modified"))&&(g.lastModified[r]=S),(S=w.getResponseHeader("etag"))&&(g.etag[r]=S)),204===e||"HEAD"===l.type?C="nocontent":304===e?C="notmodified":(C=_.state,y=_.data,u=!(v=_.error))):(v=C,!e&&C||(C="error",e<0&&(e=0))),w.status=e,w.statusText=(t||C)+"",u?f.resolveWith(d,[y,C,w]):f.rejectWith(d,[w,C,v]),w.statusCode(m),m=void 0,c&&p.trigger(u?"ajaxSuccess":"ajaxError",[w,l,u?y:v]),h.fireWith(d,[w,C]),c&&(p.trigger("ajaxComplete",[w,l]),--g.active||g.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return g.get(e,t,n,"json")},getScript:function(e,t){return g.get(e,void 0,t,"script")}}),g.each(["get","post"],(function(e,t){g[t]=function(e,n,r,o){return g.isFunction(n)&&(o=o||r,r=n,n=void 0),g.ajax({url:e,type:t,dataType:o,data:n,success:r})}})),g._evalUrl=function(e){return g.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},g.fn.extend({wrapAll:function(e){var t;return g.isFunction(e)?this.each((function(t){g(this).wrapAll(e.call(this,t))})):(this[0]&&(t=g(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this)},wrapInner:function(e){return g.isFunction(e)?this.each((function(t){g(this).wrapInner(e.call(this,t))})):this.each((function(){var t=g(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=g.isFunction(e);return this.each((function(n){g(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){g.nodeName(this,"body")||g(this).replaceWith(this.childNodes)})).end()}}),g.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},g.expr.filters.visible=function(e){return!g.expr.filters.hidden(e)};var yt=/%20/g,vt=/\[\]$/,bt=/\r?\n/g,_t=/^(?:submit|button|image|reset|file)$/i,wt=/^(?:input|select|textarea|keygen)/i;function St(e,t,n,r){var o;if(g.isArray(t))g.each(t,(function(t,o){n||vt.test(e)?r(e,o):St(e+"["+("object"==typeof o?t:"")+"]",o,n,r)}));else if(n||"object"!==g.type(t))r(e,t);else for(o in t)St(e+"["+o+"]",t[o],n,r)}g.param=function(e,t){var n,r=[],o=function(e,t){t=g.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=g.ajaxSettings&&g.ajaxSettings.traditional),g.isArray(e)||e.jquery&&!g.isPlainObject(e))g.each(e,(function(){o(this.name,this.value)}));else for(n in e)St(n,e[n],t,o);return r.join("&").replace(yt,"+")},g.fn.extend({serialize:function(){return g.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=g.prop(this,"elements");return e?g.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!g(this).is(":disabled")&&wt.test(this.nodeName)&&!_t.test(e)&&(this.checked||!Y.test(e))})).map((function(e,t){var n=g(this).val();return null==n?null:g.isArray(n)?g.map(n,(function(e){return{name:t.name,value:e.replace(bt,"\r\n")}})):{name:t.name,value:n.replace(bt,"\r\n")}})).get()}}),g.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var Ct=0,kt={},xt={0:200,1223:204},Et=g.ajaxSettings.xhr();r.attachEvent&&r.attachEvent("onunload",(function(){for(var e in kt)kt[e]()})),f.cors=!!Et&&"withCredentials"in Et,f.ajax=Et=!!Et,g.ajaxTransport((function(e){var t;if(f.cors||Et&&!e.crossDomain)return{send:function(n,r){var o,i=e.xhr(),a=++Ct;if(i.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(o in e.xhrFields)i[o]=e.xhrFields[o];for(o in e.mimeType&&i.overrideMimeType&&i.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)i.setRequestHeader(o,n[o]);t=function(e){return function(){t&&(delete kt[a],t=i.onload=i.onerror=null,"abort"===e?i.abort():"error"===e?r(i.status,i.statusText):r(xt[i.status]||i.status,i.statusText,"string"==typeof i.responseText?{text:i.responseText}:void 0,i.getAllResponseHeaders()))}},i.onload=t(),i.onerror=t("error"),t=kt[a]=t("abort");try{i.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),g.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return g.globalEval(e),e}}}),g.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),g.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain)return{send:function(r,o){t=g("<script>").prop({async:!0,charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),h.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Ot=[],Tt=/(=)\?(?=&|$)|\?\?/;g.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ot.pop()||g.expando+"_"+tt++;return this[e]=!0,e}}),g.ajaxPrefilter("json jsonp",(function(e,t,n){var o,i,a,s=!1!==e.jsonp&&(Tt.test(e.url)?"url":"string"==typeof e.data&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Tt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=g.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Tt,"$1"+o):!1!==e.jsonp&&(e.url+=(nt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||g.error(o+" was not called"),a[0]},e.dataTypes[0]="json",i=r[o],r[o]=function(){a=arguments},n.always((function(){r[o]=i,e[o]&&(e.jsonpCallback=t.jsonpCallback,Ot.push(o)),a&&g.isFunction(i)&&i(a[0]),a=i=void 0})),"script"})),g.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||h;var r=k.exec(e),o=!n&&[];return r?[t.createElement(r[1])]:(r=g.buildFragment([e],t,o),o&&o.length&&g(o).remove(),g.merge([],r.childNodes))};var At=g.fn.load;g.fn.load=function(e,t,n){if("string"!=typeof e&&At)return At.apply(this,arguments);var r,o,i,a=this,s=e.indexOf(" ");return s>=0&&(r=g.trim(e.slice(s)),e=e.slice(0,s)),g.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),a.length>0&&g.ajax({url:e,type:o,dataType:"html",data:t}
2).done((function(e){i=arguments,a.html(r?g("<div>").append(g.parseHTML(e)).find(r):e)})).complete(n&&function(e,t){a.each(n,i||[e.responseText,t,e])}),this},g.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){g.fn[t]=function(e){return this.on(t,e)}})),g.expr.filters.animated=function(e){return g.grep(g.timers,(function(t){return e===t.elem})).length};var Pt=r.document.documentElement;function It(e){return g.isWindow(e)?e:9===e.nodeType&&e.defaultView}g.offset={setOffset:function(e,t,n){var r,o,i,a,s,c,u=g.css(e,"position"),l=g(e),d={};"static"===u&&(e.style.position="relative"),s=l.offset(),i=g.css(e,"top"),c=g.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+c).indexOf("auto")>-1?(a=(r=l.position()).top,o=r.left):(a=parseFloat(i)||0,o=parseFloat(c)||0),g.isFunction(t)&&(t=t.call(e,n,s)),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+o),"using"in t?t.using.call(e,d):l.css(d)}},g.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){g.offset.setOffset(this,e,t)}));var t,n,r=this[0],o={top:0,left:0},i=r&&r.ownerDocument;return i?(t=i.documentElement,g.contains(t,r)?(typeof r.getBoundingClientRect!==K&&(o=r.getBoundingClientRect()),n=It(i),{top:o.top+n.pageYOffset-t.clientTop,left:o.left+n.pageXOffset-t.clientLeft}):o):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===g.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),g.nodeName(e[0],"html")||(r=e.offset()),r.top+=g.css(e[0],"borderTopWidth",!0),r.left+=g.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-g.css(n,"marginTop",!0),left:t.left-r.left-g.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent||Pt;e&&!g.nodeName(e,"html")&&"static"===g.css(e,"position");)e=e.offsetParent;return e||Pt}))}}),g.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;g.fn[e]=function(o){return D(this,(function(e,o,i){var a=It(e);if(void 0===i)return a?a[t]:e[o];a?a.scrollTo(n?r.pageXOffset:i,n?i:r.pageYOffset):e[o]=i}),e,o,arguments.length,null)}})),g.each(["top","left"],(function(e,t){g.cssHooks[t]=Ee(f.pixelPosition,(function(e,n){if(n)return n=xe(e,t),Ce.test(n)?g(e).position()[t]+"px":n}))})),g.each({Height:"height",Width:"width"},(function(e,t){g.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){g.fn[r]=function(r,o){var i=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===o?"margin":"border");return D(this,(function(t,n,r){var o;return g.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===r?g.css(t,n,a):g.style(t,n,r,a)}),t,i?r:void 0,i,null)}}))})),g.fn.size=function(){return this.length},g.fn.andSelf=g.fn.addBack,void 0===(n=function(){return g}.apply(t,[]))||(e.exports=n);var jt=r.jQuery,Lt=r.$;return g.noConflict=function(e){return r.$===g&&(r.$=Lt),e&&r.jQuery===g&&(r.jQuery=jt),g},typeof o===K&&(r.jQuery=r.$=g),g},"object"==typeof e.exports?e.exports=r.document?o(r,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return o(e)}:o(r)},696245:(e,t,n)=>{"use strict";function r(e){this.message=e}n.r(t),n.d(t,{InvalidTokenError:()=>a,default:()=>s}),r.prototype=new Error,r.prototype.name="InvalidCharacterError";var o="undefined"!=typeof window&&window.atob&&window.atob.bind(window)||function(e){var t=String(e).replace(/=+$/,"");if(t.length%4==1)throw new r("'atob' failed: The string to be decoded is not correctly encoded.");for(var n,o,i=0,a=0,s="";o=t.charAt(a++);~o&&(n=i%4?64*n+o:o,i++%4)?s+=String.fromCharCode(255&n>>(-2*i&6)):0)o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(o);return s};function i(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw"Illegal base64url string!"}try{return function(e){return decodeURIComponent(o(e).replace(/(.)/g,(function(e,t){var n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return o(t)}}function a(e){this.message=e}a.prototype=new Error,a.prototype.name="InvalidTokenError";const s=function(e,t){if("string"!=typeof e)throw new a("Invalid token specified");var n=!0===(t=t||{}).header?0:1;try{return JSON.parse(i(e.split(".")[n]))}catch(e){throw new a("Invalid token specified: "+e.message)}}},250636:function(e,t,n){var r;e=n.nmd(e),function(){var o,i=[],a=[],s=0,c=+new Date+"",u=" \t\v\f \ufeff\n\r\u2028\u2029áá ââââââ
ââââââ¯âã",l=/\b__p \+= '';/g,d=/\b(__p \+=) '' \+/g,p=/(__e\(.*?\)|\b__t\)) \+\n'';
2/g,f=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,h=/\w*$/,m=/^\s*function[ \n\r\t]+\w/,g=/<%=([\s\S]+?)%>/g,y=RegExp("^["+u+"]*0+(?=.$)"),v=/($^)/,b=/\bthis\b/,_=/['\n\r\t\u2028\u2029\\]/g,w=["Array","Boolean","Date","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],S=0,C="[object Arguments]",k="[object Array]",x="[object Boolean]",E="[object Date]",O="[object Number]",T="[object Object]",A="[object RegExp]",P="[object String]",I={"[object Function]":!1};I[C]=I[k]=I[x]=I[E]=I[O]=I[T]=I[A]=I[P]=!0;var j={leading:!1,maxWait:0,trailing:!1},L={configurable:!1,enumerable:!1,value:null,writable:!1},N={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},R={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},D=N[typeof window]&&window||this,M=(N[typeof t]&&t&&t.nodeType,N.object&&e&&!e.nodeType&&e),F=(M&&M.exports,N[typeof n.g]&&n.g);function U(e,t,n){for(var r=(n||0)-1,o=e?e.length:0;++r<o;)if(e[r]===t)return r;return-1}function B(e,t){var n=typeof t;if(e=e.cache,"boolean"==n||null==t)return e[t]?0:-1;"number"!=n&&"string"!=n&&(n="object");var r="number"==n?t:c+t;return e=(e=e[n])&&e[r],"object"==n?e&&U(e,t)>-1?0:-1:e?0:-1}function $(e){var t=this.cache,n=typeof e;if("boolean"==n||null==e)t[e]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?e:c+e,o=t[n]||(t[n]={});"object"==n?(o[r]||(o[r]=[])).push(e):o[r]=!0}}function H(e){return e.charCodeAt(0)}function z(e,t){for(var n=e.criteria,r=t.criteria,o=-1,i=n.length;++o<i;){var a=n[o],s=r[o];if(a!==s){if(a>s||void 0===a)return 1;if(a<s||void 0===s)return-1}}return e.index-t.index}function q(e){var t=-1,n=e.length,r=e[0],o=e[n/2|0],i=e[n-1];if(r&&"object"==typeof r&&o&&"object"==typeof o&&i&&"object"==typeof i)return!1;var a=W();a.false=a.null=a.true=a[void 0]=!1;var s=W();for(s.array=e,s.cache=a,s.push=$;++t<n;)s.push(e[t]);return s}function V(e){return"\\"+R[e]}function G(){return i.pop()||[]}function W(){return a.pop()||{array:null,cache:null,criteria:null,false:!1,index:0,null:!1,number:null,object:null,push:null,string:null,true:!1,undefined:!1,value:null}}function Y(e){e.length=0,i.length<40&&i.push(e)}function K(e){var t=e.cache;t&&K(t),e.array=e.cache=e.criteria=e.object=e.number=e.string=e.value=null,a.length<40&&a.push(e)}function J(e,t,n){t||(t=0),void 0===n&&(n=e?e.length:0);for(var r=-1,o=n-t||0,i=Array(o<0?0:o);++r<o;)i[r]=e[t+r];return i}!F||F.global!==F&&F.window!==F||(D=F);var Z=function e(t){var n=(t=t?Z.defaults(D.Object(),t,Z.pick(D,w)):D).Array,r=t.Boolean,i=t.Date,a=t.Function,R=t.Math,M=t.Number,F=t.Object,$=t.RegExp,X=t.String,Q=t.TypeError,ee=[],te=F.prototype,ne=t._,re=te.toString,oe=$("^"+X(re).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),ie=R.ceil,ae=t.clearTimeout,se=R.floor,ce=a.prototype.toString,ue=qe(ue=F.getPrototypeOf)&&ue,le=te.hasOwnProperty,de=ee.push,pe=t.setTimeout,fe=ee.splice,he=ee.unshift,me=function(){try{var e={},t=qe(t=F.defineProperty)&&t,n=t(e,e,e)&&t}catch(e){}return n}(),ge=qe(ge=F.create)&&ge,ye=qe(ye=n.isArray)&&ye,ve=t.isFinite,be=t.isNaN,_e=qe(_e=F.keys)&&_e,we=R.max,Se=R.min,Ce=t.parseInt,ke=R.random,xe={};function Ee(e){return e&&"object"==typeof e&&!Ke(e)&&le.call(e,"__wrapped__")?e:new Oe(e)}function Oe(e,t){this.__chain__=!!t,this.__wrapped__=e}xe[k]=n,xe[x]=r,xe[E]=i,xe["[object Function]"]=a,xe[T]=F,xe[O]=M,xe[A]=$,xe[P]=X,Oe.prototype=Ee.prototype;var Te=Ee.support={};function Ae(e){var t=e[0],n=e[2],r=e[4];function o(){if(n){var e=J(n);de.apply(e,arguments)}if(this instanceof o){var i=Ie(t.prototype),a=t.apply(i,e||arguments);return ut(a)?a:i}return t.apply(r,e||arguments)}return Ve(o,e),o}function Pe(e,t,n,r,o){if(n){var i=n(e);if(void 0!==i)return i}if(!ut(e))return e;var a=re.call(e);if(!I[a])return e;var s=xe[a];switch(a){case x:case E:return new s(+e);case O:case P:return new s(e);case A:return(i=s(e.source,h.exec(e))).lastIndex=e.lastIndex,i}var c=Ke(e);if(t){var u=!r;r||(r=G()),o||(o=G());for(var l=r.length;l--;)if(r[l]==e)return o[l];i=c?s(e.length):{}}
2else i=c?J(e):tt({},e);return c&&(le.call(e,"index")&&(i.index=e.index),le.call(e,"input")&&(i.input=e.input)),t?(r.push(e),o.push(i),(c?bt:ot)(e,(function(e,a){i[a]=Pe(e,t,n,r,o)})),u&&(Y(r),Y(o)),i):i}function Ie(e,t){return ut(e)?ge(e):{}}function je(e,t,n){if("function"!=typeof e)return Bt;if(void 0===t||!("prototype"in e))return e;var r=e.__bindData__;if(void 0===r&&(Te.funcNames&&(r=!e.name),!(r=r||!Te.funcDecomp))){var o=ce.call(e);Te.funcNames||(r=!m.test(o)),r||(r=b.test(o),Ve(e,r))}if(!1===r||!0!==r&&1&r[1])return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return Ft(e,t)}function Le(e){var t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=1&n,c=2&n,u=4&n,l=8&n,d=t;function p(){var e=s?i:this;if(r){var f=J(r);de.apply(f,arguments)}if((o||u)&&(f||(f=J(arguments)),o&&de.apply(f,o),u&&f.length<a))return n|=16,Le([t,l?n:-4&n,f,null,i,a]);if(f||(f=arguments),c&&(t=e[d]),this instanceof p){e=Ie(t.prototype);var h=t.apply(e,f);return ut(h)?h:e}return t.apply(e,f)}return Ve(p,e),p}function Ne(e,t){var n=-1,r=ze(),o=e?e.length:0,i=o>=75&&r===U,a=[];if(i){var s=q(t);s?(r=B,t=s):i=!1}for(;++n<o;){var c=e[n];r(t,c)<0&&a.push(c)}return i&&K(t),a}function Re(e,t,n,r){for(var o=(r||0)-1,i=e?e.length:0,a=[];++o<i;){var s=e[o];if(s&&"object"==typeof s&&"number"==typeof s.length&&(Ke(s)||Ye(s))){t||(s=Re(s,t,n));var c=-1,u=s.length,l=a.length;for(a.length+=u;++c<u;)a[l++]=s[c]}else n||a.push(s)}return a}function De(e,t,n,r,o,i){if(n){var a=n(e,t);if(void 0!==a)return!!a}if(e===t)return 0!==e||1/e==1/t;if(!(e!=e||e&&N[typeof e]||t&&N[typeof t]))return!1;if(null==e||null==t)return e===t;var s=re.call(e),c=re.call(t);if(s==C&&(s=T),c==C&&(c=T),s!=c)return!1;switch(s){case x:case E:return+e==+t;case O:return e!=+e?t!=+t:0==e?1/e==1/t:e==+t;case A:case P:return e==X(t)}var u=s==k;if(!u){var l=le.call(e,"__wrapped__"),d=le.call(t,"__wrapped__");
2if(l||d)return De(l?e.__wrapped__:e,d?t.__wrapped__:t,n,r,o,i);if(s!=T)return!1;var p=e.constructor,f=t.constructor;if(p!=f&&!(ct(p)&&p instanceof p&&ct(f)&&f instanceof f)&&"constructor"in e&&"constructor"in t)return!1}var h=!o;o||(o=G()),i||(i=G());for(var m=o.length;m--;)if(o[m]==e)return i[m]==t;var g=0;if(a=!0,o.push(e),i.push(t),u){if(m=e.length,g=t.length,(a=g==m)||r)for(;g--;){var y=m,v=t[g];if(r)for(;y--&&!(a=De(e[y],v,n,r,o,i)););else if(!(a=De(e[g],v,n,r,o,i)))break}}else rt(t,(function(t,s,c){if(le.call(c,s))return g++,a=le.call(e,s)&&De(e[s],t,n,r,o,i)})),a&&!r&&rt(e,(function(e,t,n){if(le.call(n,t))return a=--g>-1}));return o.pop(),i.pop(),h&&(Y(o),Y(i)),a}function Me(e,t,n,r,o){(Ke(t)?bt:ot)(t,(function(t,i){var a,s,c=t,u=e[i];if(t&&((s=Ke(t))||dt(t))){for(var l,d=r.length;d--;)if(a=r[d]==t){u=o[d];break}a||(n&&(l=void 0!==(c=n(u,t)))&&(u=c),l||(u=s?Ke(u)?u:[]:dt(u)?u:{}),r.push(t),o.push(u),l||Me(u,t,n,r,o))}else n&&void 0===(c=n(u,t))&&(c=t),void 0!==c&&(u=c);e[i]=u}))}function Fe(e,t){return e+se(ke()*(t-e+1))}function Ue(e,t,n){var r=-1,o=ze(),i=e?e.length:0,a=[],s=!t&&i>=75&&o===U,c=n||s?G():a;for(s&&(o=B,c=q(c));++r<i;){var u=e[r],l=n?n(u,r,e):u;(t?!r||c[c.length-1]!==l:o(c,l)<0)&&((n||s)&&c.push(l),a.push(u))}return s?(Y(c.array),K(c)):n&&Y(c),a}function Be(e){return function(t,n,r){var o={};n=Ee.createCallback(n,r,3);var i=-1,a=t?t.length:0;if("number"==typeof a)for(;++i<a;){var s=t[i];e(o,s,n(s,i,t),t)}else ot(t,(function(t,r,i){e(o,t,n(t,r,i),i)}));return o}}function $e(e,t,n,r,o,i){var a=1&t,s=4&t,c=16&t,u=32&t;if(!(2&t||ct(e)))throw new Q;c&&!n.length&&(t&=-17,c=n=!1),u&&!r.length&&(t&=-33,u=r=!1);var l=e&&e.__bindData__;return l&&!0!==l?((l=J(l))[2]&&(l[2]=J(l[2])),l[3]&&(l[3]=J(l[3])),!a||1&l[1]||(l[4]=o),!a&&1&l[1]&&(t|=8),!s||4&l[1]||(l[5]=i),c&&de.apply(l[2]||(l[2]=[]),n),u&&he.apply(l[3]||(l[3]=[]),r),l[1]|=t,$e.apply(null,l)):(1==t||17===t?Ae:Le)([e,t,n,r,o,i])}function He(e){return Ze[e]}function ze(){var e=(e=Ee.indexOf)===jt?U:e;return e}function qe(e){return"function"==typeof e&&oe.test(e)}Te.funcDecomp=!qe(t.WinRTError)&&b.test(e),Te.funcNames="string"==typeof a.name,Ee.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:g,variable:"",imports:{_:Ee}},ge||(Ie=function(){function e(){}return function(n){if(ut(n)){e.prototype=n;var r=new e;e.prototype=null}return r||t.Object()}}());var Ve=me?function(e,t){L.value=t,me(e,"__bindData__",L),L.value=null}:Ht;function Ge(e){var t,n;return!(!e||re.call(e)!=T||ct(t=e.constructor)&&!(t instanceof t))&&(rt(e,(function(e,t){n=t})),void 0===n||le.call(e,n))}function We(e){return Xe[e]}function Ye(e){return e&&"object"==typeof e&&"number"==typeof e.length&&re.call(e)==C||!1}var Ke=ye||function(e){return e&&"object"==typeof e&&"number"==typeof e.length&&re.call(e)==k||!1},Je=_e?function(e){return ut(e)?_e(e):[]}:function(e){var t,n=e,r=[];if(!n)return r;if(!N[typeof e])return r;for(t in n)le.call(n,t)&&r.push(t);return r},Ze={"&":"&","<":"<",">":">",'"':""","'":"'"},Xe=st(Ze),Qe=$("("+Je(Xe).join("|")+")","g"),et=$("["+Je(Ze).join("")+"]","g"),tt=function(e,t,n){var r,o=e,i=o;if(!o)return i;var a=arguments,s=0,c="number"==typeof n?2:a.length;if(c>3&&"function"==typeof a[c-2])var u=je(a[--c-1],a[c--],2);else c>2&&"function"==typeof a[c-1]&&(u=a[--c]);for(;++s<c;)if((o=a[s])&&N[typeof o])for(var l=-1,d=N[typeof o]&&Je(o),p=d?d.length:0;++l<p;)i[r=d[l]]=u?u(i[r],o[r]):o[r];return i},nt=function(e,t,n){var r,o=e,i=o;if(!o)return i;for(var a=arguments,s=0,c="number"==typeof n?2:a.length;++s<c;)if((o=a[s])&&N[typeof o])for(var u=-1,l=N[typeof o]&&Je(o),d=l?l.length:0;++u<d;)void 0===i[r=l[u]]&&(i[r]=o[r]);return i},rt=function(e,t,n){var r,o=e,i=o;if(!o)return i;if(!N[typeof o])return i;for(r in t=t&&void 0===n?t:je(t,n,3),o)if(!1===t(o[r],r,e))return i;return i},ot=function(e,t,n){var r,o=e,i=o;if(!o)return i;if(!N[typeof o])return i;t=t&&void 0===n?t:je(t,n,3);for(var a=-1,s=N[typeof o]&&Je(o),c=s?s.length:0;++a<c;)if(!1===t(o[r=s[a]],r,e))return i;return i};function it(e,t,n){var r=Je(e),o=r.length;for(t=je(t,n,3);o--;){var i=r[o];if(!1===t(e[i],i,e))break}return e}function at(e){var t=[];return rt(e,(function(e,n){ct(e)&&t.push(n)})),t.sort()}function st(e){for(var t=-1,n=Je(e),r=n.length,o={};++t<r;){var i=n[t];o[e[i]]=i}return o}function ct(e){return"function"==typeof e}function ut(e){return!(!e||!N[typeof e])}function lt(e){return"number"==typeof e||e&&"object"==typeof e&&re.call(e)==O||!1}var dt=ue?function(e){if(!e||re.call(e)!=T)return!1;var t=e.valueOf,n=qe(t)&&(n=ue(t))&&ue(n);return n?e==n||ue(e)==n:Ge(e)}:Ge;function pt(e){return"string"==typeof e||e&&"object"==typeof e&&re.call(e)==P||!1}function ft(e){for(var t=-1,r=Je(e),o=r.length,i=n(o);++t<o;)i[t]=e[r[t]];return i}function ht(e,t,n){var r=-1,o=ze(),i=e?e.length:0,a=!1;
2return n=(n<0?we(0,i+n):n)||0,Ke(e)?a=o(e,t,n)>-1:"number"==typeof i?a=(pt(e)?e.indexOf(t,n):o(e,t,n))>-1:ot(e,(function(e){if(++r>=n)return!(a=e===t)})),a}var mt=Be((function(e,t,n){le.call(e,n)?e[n]++:e[n]=1}));function gt(e,t,n){var r=!0;t=Ee.createCallback(t,n,3);var o=-1,i=e?e.length:0;if("number"==typeof i)for(;++o<i&&(r=!!t(e[o],o,e)););else ot(e,(function(e,n,o){return r=!!t(e,n,o)}));return r}function yt(e,t,n){var r=[];t=Ee.createCallback(t,n,3);var o=-1,i=e?e.length:0;if("number"==typeof i)for(;++o<i;){var a=e[o];t(a,o,e)&&r.push(a)}else ot(e,(function(e,n,o){t(e,n,o)&&r.push(e)}));return r}function vt(e,t,n){t=Ee.createCallback(t,n,3);var r,o=-1,i=e?e.length:0;if("number"!=typeof i)return ot(e,(function(e,n,o){if(t(e,n,o))return r=e,!1})),r;for(;++o<i;){var a=e[o];if(t(a,o,e))return a}}function bt(e,t,n){var r=-1,o=e?e.length:0;if(t=t&&void 0===n?t:je(t,n,3),"number"==typeof o)for(;++r<o&&!1!==t(e[r],r,e););else ot(e,t);return e}function _t(e,t,n){var r=e?e.length:0;if(t=t&&void 0===n?t:je(t,n,3),"number"==typeof r)for(;r--&&!1!==t(e[r],r,e););else{var o=Je(e);r=o.length,ot(e,(function(e,n,i){return n=o?o[--r]:--r,t(i[n],n,i)}))}return e}var wt=Be((function(e,t,n){(le.call(e,n)?e[n]:e[n]=[]).push(t)})),St=Be((function(e,t,n){e[n]=t}));function Ct(e,t,r){var o=-1,i=e?e.length:0;if(t=Ee.createCallback(t,r,3),"number"==typeof i)for(var a=n(i);++o<i;)a[o]=t(e[o],o,e);else a=[],ot(e,(function(e,n,r){a[++o]=t(e,n,r)}));return a}function kt(e,t,n){var r=-1/0,o=r;if("function"!=typeof t&&n&&n[t]===e&&(t=null),null==t&&Ke(e))for(var i=-1,a=e.length;++i<a;){var s=e[i];s>o&&(o=s)}else t=null==t&&pt(e)?H:Ee.createCallback(t,n,3),bt(e,(function(e,n,i){var a=t(e,n,i);a>r&&(r=a,o=e)}));return o}var xt=Ct;function Et(e,t,n,r){if(!e)return n;var o=arguments.length<3;t=Ee.createCallback(t,r,4);var i=-1,a=e.length;if("number"==typeof a)for(o&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);else ot(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)}));return n}function Ot(e,t,n,r){var o=arguments.length<3;return t=Ee.createCallback(t,r,4),_t(e,(function(e,r,i){n=o?(o=!1,e):t(n,e,r,i)})),n}function Tt(e){var t=-1,r=e?e.length:0,o=n("number"==typeof r?r:0);return bt(e,(function(e){var n=Fe(0,++t);o[t]=o[n],o[n]=e})),o}function At(e,t,n){var r;t=Ee.createCallback(t,n,3);var o=-1,i=e?e.length:0;if("number"==typeof i)for(;++o<i&&!(r=t(e[o],o,e)););else ot(e,(function(e,n,o){return!(r=t(e,n,o))}));return!!r}var Pt=yt;function It(e,t,n){var r=0,i=e?e.length:0;if("number"!=typeof t&&null!=t){var a=-1;for(t=Ee.createCallback(t,n,3);++a<i&&t(e[a],a,e);)r++}else if(null==(r=t)||n)return e?e[0]:o;return J(e,0,Se(we(0,r),i))}function jt(e,t,n){if("number"==typeof n){var r=e?e.length:0;n=n<0?we(0,r+n):n||0}else if(n){var o=Nt(e,t);return e[o]===t?o:-1}return U(e,t,n)}function Lt(e,t,n){if("number"!=typeof t&&null!=t){var r=0,o=-1,i=e?e.length:0;for(t=Ee.createCallback(t,n,3);++o<i&&t(e[o],o,e);)r++}else r=null==t||n?1:we(0,t);return J(e,r)}function Nt(e,t,n,r){var o=0,i=e?e.length:o;for(t=(n=n?Ee.createCallback(n,r,1):Bt)(t);o<i;){var a=o+i>>>1;n(e[a])<t?o=a+1:i=a}return o}function Rt(e,t,n,r){return"boolean"!=typeof t&&null!=t&&(r=n,n="function"!=typeof t&&r&&r[t]===e?null:t,t=!1),null!=n&&(n=Ee.createCallback(n,r,3)),Ue(e,t,n)}function Dt(){for(var e=arguments.length>1?arguments:arguments[0],t=-1,r=e?kt(xt(e,"length")):0,o=n(r<0?0:r);++t<r;)o[t]=xt(e,t);return o}function Mt(e,t){var n=-1,r=e?e.length:0,o={};for(t||!r||Ke(e[0])||(t=[]);++n<r;){var i=e[n];t?o[i]=t[n]:i&&(o[i[0]]=i[1])}return o}function Ft(e,t){return arguments.length>2?$e(e,17,J(arguments,2),null,t):$e(e,1,null,null,t)}function Ut(e,t,n){var r,i,a,s,c,u,l,d=0,p=!1,f=!0;if(!ct(e))throw new Q;if(t=we(0,t)||0,!0===n){var h=!0;f=!1}else ut(n)&&(h=n.leading,p="maxWait"in n&&(we(t,n.maxWait)||0),f="trailing"in n?n.trailing:f);var m=function(){var n=t-(qt()-s);if(n<=0){i&&ae(i);var p=l;i=u=l=o,p&&(d=qt(),a=e.apply(c,r),u||i||(r=c=null))}else u=pe(m,n)},g=function(){u&&ae(u),i=u=l=o,(f||p!==t)&&(d=qt(),a=e.apply(c,r),u||i||(r=c=null))};return function(){if(r=arguments,s=qt(),c=this,l=f&&(u||!h),!1===p)var n=h&&!u;else{i||h||(d=s);var o=p-(s-d),y=o<=0;y?(i&&(i=ae(i)),d=s,a=e.apply(c,r)):i||(i=pe(g,o))}return y&&u?u=ae(u):u||t===p||(u=pe(m,t)),n&&(y=!0,a=e.apply(c,r)),!y||u||i||(r=c=null),a}}function Bt(e){return e}function $t(e,t,n){var r=!0,o=t&&at(t);t&&(n||o.length)||(null==n&&(n=t),i=Oe,t=e,e=Ee,o=at(t)),!1===n?r=!1:ut(n)&&"chain"in n&&(r=n.chain);var i=e,a=ct(i);bt(o,(function(n){var o=e[n]=t[n];a&&(i.prototype[n]=function(){var t=this.__chain__,n=this.__wrapped__,a=[n];de.apply(a,arguments);var s=o.apply(e,a);if(r||t){if(n===s&&ut(s))return this;(s=new i(s)).__chain__=t}return s})}))}function Ht(){}var zt,qt=qe(qt=i.now)&&qt||function(){return(new i).getTime()},Vt=8==Ce(u+"08")?Ce:function(e,t){return Ce(pt(e)?e.replace(y,""):e,t||0)};function Gt(e){return function(t){return t[e]}}function Wt(){return this.__wrapped__}return Ee.after=function(e,t){if(!ct(t))throw new Q;return function(){if(--e<1)return t.apply(this,arguments)}},Ee.assign=tt,Ee.at=function(e){for(var t=arguments,r=-1,o=Re(t,!0,!1,1),i=t[2]&&t[2][t[1]]===e?1:o.length,a=n(i);++r<i;)a[r]=e[o[r]];return a},Ee.bind=Ft,Ee.bindAll=function(e){for(var t=arguments.length>1?Re(arguments,!0,!1,1):at(e),n=-1,r=t.length;++n<r;){var o=t[n];e[o]=$e(e[o],1,null,null,e)}return e},Ee.bindKey=function(e,t){return arguments.length>2?$e(t,19,J(arguments,2),null,e):$e(t,3,null,null,e)},Ee.chain=function(e){return(e=new Oe(e)).__chain__=!0,e},Ee.compact=function(e){for(var t=-1,n=e?e.length:0,r=[];++t<n;){var o=e[t];o&&r.push(o)}return r},Ee.compose=function(){for(var e=arguments,t=e.length;t--;)if(!ct(e[t]))throw new Q;return function(){for(var t=arguments,n=e.length;n--;)t=[e[n].apply(this,t)];return t[0]}},Ee.constant=function(e){return function(){return e}},Ee.countBy=mt,Ee.create=function(e,t){var n=Ie(e);return t?tt(n,t):n},Ee.createCallback=function(e,t,n){var r=typeof e;if(null==e||"function"==r)return je(e,t,n);if("object"!=r)return Gt(e);var o=Je(e),i=o[0],a=e[i];return 1!=o.length||a!=a||ut(a)?function(t){for(var n=o.length,r=!1;n--&&(r=De(t[o[n]],e[o[n]],null,!0)););return r}:function(e){var t=e[i];return a===t&&(0!==a||1/a==1/t)}},Ee.curry=function(e,t){return $e(e,4,null,null,null,t="number"==typeof t?t:+t||e.length)},Ee.debounce=Ut,Ee.defaults=nt,Ee.defer=function(e){if(!ct(e))throw new Q;
2var t=J(arguments,1);return pe((function(){e.apply(o,t)}),1)},Ee.delay=function(e,t){if(!ct(e))throw new Q;var n=J(arguments,2);return pe((function(){e.apply(o,n)}),t)},Ee.difference=function(e){return Ne(e,Re(arguments,!0,!0,1))},Ee.filter=yt,Ee.flatten=function(e,t,n,r){return"boolean"!=typeof t&&null!=t&&(r=n,n="function"!=typeof t&&r&&r[t]===e?null:t,t=!1),null!=n&&(e=Ct(e,n,r)),Re(e,t)},Ee.forEach=bt,Ee.forEachRight=_t,Ee.forIn=rt,Ee.forInRight=function(e,t,n){var r=[];rt(e,(function(e,t){r.push(t,e)}));var o=r.length;for(t=je(t,n,3);o--&&!1!==t(r[o--],r[o],e););return e},Ee.forOwn=ot,Ee.forOwnRight=it,Ee.functions=at,Ee.groupBy=wt,Ee.indexBy=St,Ee.initial=function(e,t,n){var r=0,o=e?e.length:0;if("number"!=typeof t&&null!=t){var i=o;for(t=Ee.createCallback(t,n,3);i--&&t(e[i],i,e);)r++}else r=null==t||n?1:t||r;return J(e,0,Se(we(0,o-r),o))},Ee.intersection=function(){for(var e=[],t=-1,n=arguments.length,r=G(),o=ze(),i=o===U,a=G();++t<n;){var s=arguments[t];(Ke(s)||Ye(s))&&(e.push(s),r.push(i&&s.length>=75&&q(t?e[t]:a)))}var c=e[0],u=-1,l=c?c.length:0,d=[];e:for(;++u<l;){var p=r[0];if(s=c[u],(p?B(p,s):o(a,s))<0){for(t=n,(p||a).push(s);--t;)if(((p=r[t])?B(p,s):o(e[t],s))<0)continue e;d.push(s)}}for(;n--;)(p=r[n])&&K(p);return Y(r),Y(a),d},Ee.invert=st,Ee.invoke=function(e,t){var r=J(arguments,2),o=-1,i="function"==typeof t,a=e?e.length:0,s=n("number"==typeof a?a:0);return bt(e,(function(e){s[++o]=(i?t:e[t]).apply(e,r)})),s},Ee.keys=Je,Ee.map=Ct,Ee.mapValues=function(e,t,n){var r={};return t=Ee.createCallback(t,n,3),ot(e,(function(e,n,o){r[n]=t(e,n,o)})),r},Ee.max=kt,Ee.memoize=function(e,t){if(!ct(e))throw new Q;var n=function(){var r=n.cache,o=t?t.apply(this,arguments):c+arguments[0];return le.call(r,o)?r[o]:r[o]=e.apply(this,arguments)};return n.cache={},n},Ee.merge=function(e){var t=arguments,n=2;if(!ut(e))return e;if("number"!=typeof t[2]&&(n=t.length),n>3&&"function"==typeof t[n-2])var r=je(t[--n-1],t[n--],2);else n>2&&"function"==typeof t[n-1]&&(r=t[--n]);for(var o=J(arguments,1,n),i=-1,a=G(),s=G();++i<n;)Me(e,o[i],r,a,s);return Y(a),Y(s),e},Ee.min=function(e,t,n){var r=1/0,o=r;if("function"!=typeof t&&n&&n[t]===e&&(t=null),null==t&&Ke(e))for(var i=-1,a=e.length;++i<a;){var s=e[i];s<o&&(o=s)}else t=null==t&&pt(e)?H:Ee.createCallback(t,n,3),bt(e,(function(e,n,i){var a=t(e,n,i);a<r&&(r=a,o=e)}));return o},Ee.omit=function(e,t,n){var r={};if("function"!=typeof t){var o=[];rt(e,(function(e,t){o.push(t)}));for(var i=-1,a=(o=Ne(o,Re(arguments,!0,!1,1))).length;++i<a;){var s=o[i];r[s]=e[s]}}else t=Ee.createCallback(t,n,3),rt(e,(function(e,n,o){t(e,n,o)||(r[n]=e)}));return r},Ee.once=function(e){var t,n;if(!ct(e))throw new Q;return function(){return t||(t=!0,n=e.apply(this,arguments),e=null),n}},Ee.pairs=function(e){for(var t=-1,r=Je(e),o=r.length,i=n(o);++t<o;){var a=r[t];i[t]=[a,e[a]]}return i},Ee.partial=function(e){return $e(e,16,J(arguments,1))},Ee.partialRight=function(e){return $e(e,32,null,J(arguments,1))},Ee.pick=function(e,t,n){var r={};if("function"!=typeof t)for(var o=-1,i=Re(arguments,!0,!1,1),a=ut(e)?i.length:0;++o<a;){var s=i[o];s in e&&(r[s]=e[s])}else t=Ee.createCallback(t,n,3),rt(e,(function(e,n,o){t(e,n,o)&&(r[n]=e)}));return r},Ee.pluck=xt,Ee.property=Gt,Ee.pull=function(e){for(var t=arguments,n=0,r=t.length,o=e?e.length:0;++n<r;)for(var i=-1,a=t[n];++i<o;)e[i]===a&&(fe.call(e,i--,1),o--);return e},Ee.range=function(e,t,r){e=+e||0,null==t&&(t=e,e=0);for(var o=-1,i=we(0,ie((t-e)/((r="number"==typeof r?r:+r||1)||1))),a=n(i);++o<i;)a[o]=e,e+=r;return a},Ee.reject=function(e,t,n){return t=Ee.createCallback(t,n,3),yt(e,(function(e,n,r){return!t(e,n,r)}))},Ee.remove=function(e,t,n){var r=-1,o=e?e.length:0,i=[];for(t=Ee.createCallback(t,n,3);++r<o;){var a=e[r];t(a,r,e)&&(i.push(a),fe.call(e,r--,1),o--)}return i},Ee.rest=Lt,Ee.shuffle=Tt,Ee.sortBy=function(e,t,r){var o=-1,i=Ke(t),a=e?e.length:0,s=n("number"==typeof a?a:0);for(i||(t=Ee.createCallback(t,r,3)),bt(e,(function(e,n,r){var a=s[++o]=W();i?a.criteria=Ct(t,(function(t){return e[t]})):(a.criteria=G())[0]=t(e,n,r),a.index=o,a.value=e})),a=s.length,s.sort(z);a--;){var c=s[a];s[a]=c.value,i||Y(c.criteria),K(c)}return s},Ee.tap=function(e,t){return t(e),e},Ee.throttle=function(e,t,n){var r=!0,o=!0;if(!ct(e))throw new Q;return!1===n?r=!1:ut(n)&&(r="leading"in n?n.leading:r,o="trailing"in n?n.trailing:o),j.leading=r,j.maxWait=t,j.trailing=o,Ut(e,t,j)},Ee.times=function(e,t,r){e=(e=+e)>-1?e:0;var o=-1,i=n(e);for(t=je(t,r,1);++o<e;)i[o]=t(o);return i},Ee.toArray=function(e){return e&&"number"==typeof e.length?J(e):ft(e)},Ee.transform=function(e,t,n,r){var o=Ke(e);if(null==n)if(o)n=[];else{var i=e&&e.constructor,a=i&&i.prototype;n=Ie(a)}return t&&(t=Ee.createCallback(t,r,4),(o?bt:ot)(e,(function(e,r,o){return t(n,e,r,o)}))),n},Ee.union=function(){return Ue(Re(arguments,!0,!0))},Ee.uniq=Rt,Ee.values=ft,Ee.where=Pt,Ee.without=function(e){return Ne(e,J(arguments,1
2))},Ee.wrap=function(e,t){return $e(t,16,[e])},Ee.xor=function(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(Ke(n)||Ye(n))var r=r?Ue(Ne(r,n).concat(Ne(n,r))):n}return r||[]},Ee.zip=Dt,Ee.zipObject=Mt,Ee.collect=Ct,Ee.drop=Lt,Ee.each=bt,Ee.eachRight=_t,Ee.extend=tt,Ee.methods=at,Ee.object=Mt,Ee.select=yt,Ee.tail=Lt,Ee.unique=Rt,Ee.unzip=Dt,$t(Ee),Ee.clone=function(e,t,n,r){return"boolean"!=typeof t&&null!=t&&(r=n,n=t,t=!1),Pe(e,t,"function"==typeof n&&je(n,r,1))},Ee.cloneDeep=function(e,t,n){return Pe(e,!0,"function"==typeof t&&je(t,n,1))},Ee.contains=ht,Ee.escape=function(e){return null==e?"":X(e).replace(et,He)},Ee.every=gt,Ee.find=vt,Ee.findIndex=function(e,t,n){var r=-1,o=e?e.length:0;for(t=Ee.createCallback(t,n,3);++r<o;)if(t(e[r],r,e))return r;return-1},Ee.findKey=function(e,t,n){var r;return t=Ee.createCallback(t,n,3),ot(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r},Ee.findLast=function(e,t,n){var r;return t=Ee.createCallback(t,n,3),_t(e,(function(e,n,o){if(t(e,n,o))return r=e,!1})),r},Ee.findLastIndex=function(e,t,n){var r=e?e.length:0;for(t=Ee.createCallback(t,n,3);r--;)if(t(e[r],r,e))return r;return-1},Ee.findLastKey=function(e,t,n){var r;return t=Ee.createCallback(t,n,3),it(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r},Ee.has=function(e,t){return!!e&&le.call(e,t)},Ee.identity=Bt,Ee.indexOf=jt,Ee.isArguments=Ye,Ee.isArray=Ke,Ee.isBoolean=function(e){return!0===e||!1===e||e&&"object"==typeof e&&re.call(e)==x||!1},Ee.isDate=function(e){return e&&"object"==typeof e&&re.call(e)==E||!1},Ee.isElement=function(e){return e&&1===e.nodeType||!1},Ee.isEmpty=function(e){var t=!0;if(!e)return t;var n=re.call(e),r=e.length;return n==k||n==P||n==C||n==T&&"number"==typeof r&&ct(e.splice)?!r:(ot(e,(function(){return t=!1})),t)},Ee.isEqual=function(e,t,n,r){return De(e,t,"function"==typeof n&&je(n,r,2))},Ee.isFinite=function(e){return ve(e)&&!be(parseFloat(e))},Ee.isFunction=ct,Ee.isNaN=function(e){return lt(e)&&e!=+e},Ee.isNull=function(e){return null===e},Ee.isNumber=lt,Ee.isObject=ut,Ee.isPlainObject=dt,Ee.isRegExp=function(e){return e&&"object"==typeof e&&re.call(e)==A||!1},Ee.isString=pt,Ee.isUndefined=function(e){return void 0===e},Ee.lastIndexOf=function(e,t,n){var r=e?e.length:0;for("number"==typeof n&&(r=(n<0?we(0,r+n):Se(n,r-1))+1);r--;)if(e[r]===t)return r;return-1},Ee.mixin=$t,Ee.noConflict=function(){return t._=ne,this},Ee.noop=Ht,Ee.now=qt,Ee.parseInt=Vt,Ee.random=function(e,t,n){var r=null==e,o=null==t;if(null==n&&("boolean"==typeof e&&o?(n=e,e=1):o||"boolean"!=typeof t||(n=t,o=!0)),r&&o&&(t=1),e=+e||0,o?(t=e,e=0):t=+t||0,n||e%1||t%1){var i=ke();return Se(e+i*(t-e+parseFloat("1e-"+((i+"").length-1))),t)}return Fe(e,t)},Ee.reduce=Et,Ee.reduceRight=Ot,Ee.result=function(e,t){if(e){var n=e[t];return ct(n)?e[t]():n}},Ee.runInContext=e,Ee.size=function(e){var t=e?e.length:0;return"number"==typeof t?t:Je(e).length},Ee.some=At,Ee.sortedIndex=Nt,Ee.template=function(e,t,n){var r=Ee.templateSettings;e=X(e||""),n=nt({},n,r);var i,s=nt({},n.imports,r.imports),c=Je(s),u=ft(s),h=0,m=n.interpolate||v,y="__p += '",b=$((n.escape||v).source+"|"+m.source+"|"+(m===g?f:v).source+"|"+(n.evaluate||v).source+"|$","g");e.replace(b,(function(t,n,r,o,a,s){return r||(r=o),y+=e.slice(h,s).replace(_,V),n&&(y+="' +\n__e("+n+") +\n'"),a&&(i=!0,y+="';\n"+a+";\n__p += '"),r&&(y+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=s+t.length,t})),y+="';\n";var w=n.variable,C=w;C||(y="with ("+(w="obj")+") {\n"+y+"\n}\n"),y=(i?y.replace(l,""):y).replace(d,"$1").replace(p,"$1;"),y="function("+w+") {\n"+(C?"":w+" || ("+w+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+y+"return __p\n}";var k="\n/*\n//# sourceURL="+(n.sourceURL||"/lodash/template/source["+S+++"]")+"\n*/";try{var x=a(c,"return "+y+k).apply(o,u)}catch(e){throw e.source=y,e}return t?x(t):(x.source=y,x)},Ee.unescape=function(e){return null==e?"":X(e).replace(Qe,We)},Ee.uniqueId=function(e){var t=++s;return X(null==e?"":e)+t},Ee.all=gt,Ee.any=At,Ee.detect=vt,Ee.findWhere=vt,Ee.foldl=Et,Ee.foldr=Ot,Ee.include=ht,Ee.inject=Et,$t((zt={},ot(Ee,(function(e,t){Ee.prototype[t]||(zt[t]=e)}
2)),zt),!1),Ee.first=It,Ee.last=function(e,t,n){var r=0,i=e?e.length:0;if("number"!=typeof t&&null!=t){var a=i;for(t=Ee.createCallback(t,n,3);a--&&t(e[a],a,e);)r++}else if(null==(r=t)||n)return e?e[i-1]:o;return J(e,we(0,i-r))},Ee.sample=function(e,t,n){if(e&&"number"!=typeof e.length&&(e=ft(e)),null==t||n)return e?e[Fe(0,e.length-1)]:o;var r=Tt(e);return r.length=Se(we(0,t),r.length),r},Ee.take=It,Ee.head=It,ot(Ee,(function(e,t){var n="sample"!==t;Ee.prototype[t]||(Ee.prototype[t]=function(t,r){var o=this.__chain__,i=e(this.__wrapped__,t,r);return o||null!=t&&(!r||n&&"function"==typeof t)?new Oe(i,o):i})})),Ee.VERSION="2.4.2",Ee.prototype.chain=function(){return this.__chain__=!0,this},Ee.prototype.toString=function(){return X(this.__wrapped__)},Ee.prototype.value=Wt,Ee.prototype.valueOf=Wt,bt(["join","pop","shift"],(function(e){var t=ee[e];Ee.prototype[e]=function(){var e=this.__chain__,n=t.apply(this.__wrapped__,arguments);return e?new Oe(n,e):n}})),bt(["push","reverse","sort","unshift"],(function(e){var t=ee[e];Ee.prototype[e]=function(){return t.apply(this.__wrapped__,arguments),this}})),bt(["concat","slice","splice"],(function(e){var t=ee[e];Ee.prototype[e]=function(){return new Oe(t.apply(this.__wrapped__,arguments),this.__chain__)}})),Ee}();D._=Z,(r=function(){return Z}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},420556:function(e,t){var n,r;void 0===(r="function"==typeof(n=function(){var e,t,n="lscache-",r="-cacheexpiration",o=Math.floor(144e9),i="",a=!1;function s(){var t="__lscachetest__";if(void 0!==e)return e;try{if(!localStorage)return!1}catch(e){return!1}try{f(t,"__lscachetest__"),h(t),e=!0}catch(t){e=!(!c(t)||!localStorage.length)}return e}function c(e){return!!(e&&"QUOTA_EXCEEDED_ERR"===e.name||"NS_ERROR_DOM_QUOTA_REACHED"===e.name||"QuotaExceededError"===e.name)}function u(){return void 0===t&&(t=null!=window.JSON),t}function l(e){return e+r}function d(){return Math.floor((new Date).getTime()/6e4)}function p(e){return localStorage.getItem(n+i+e)}function f(e,t){localStorage.removeItem(n+i+e),localStorage.setItem(n+i+e,t)}function h(e){localStorage.removeItem(n+i+e)}function m(e){for(var t=new RegExp("^lscache-"+(i.replace(/[[\]{}()*+?.\\^$|]/g,"\\$&")+"(.*)")),n=localStorage.length-1;n>=0;--n){var o=localStorage.key(n);(o=(o=o&&o.match(t))&&o[1])&&o.indexOf(r)<0&&e(o,l(o))}}function g(e){var t=l(e);h(e),h(t)}function y(e){var t=l(e),n=p(t);if(n){var r=parseInt(n,10);if(d()>=r)return h(e),h(t),!0}}function v(e,t){a&&"console"in window&&"function"==typeof window.console.warn&&(window.console.warn("lscache - "+e),t&&window.console.warn("lscache - The error was: "+t.message))}return{set:function(e,t,n){if(s()){if("string"!=typeof t){if(!u())return;try{t=JSON.stringify(t)}catch(e){return}}try{f(e,t)}catch(n){if(!c(n))return void v("Could not add item with key '"+e+"'",n);var r,i=[];m((function(e,t){var n=p(t);n=n?parseInt(n,10):o,i.push({key:e,size:(p(e)||"").length,expiration:n})})),i.sort((function(e,t){return t.expiration-e.expiration}));for(var a=(t||"").length;i.length&&a>0;)r=i.pop(),v("Cache is full, removing item with key '"+e+"'"),g(r.key),a-=r.size;try{f(e,t)}catch(t){return void v("Could not add item with key '"+e+"', perhaps it's too big?",t)}}n?f(l(e),(d()+n).toString(10)):h(l(e))}},get:function(e){if(!s())return null;if(y(e))return null;var t=p(e);if(!t||!u())return t;try{return JSON.parse(t)}catch(e){return t}},remove:function(e){s()&&g(e)},supported:function(){return s()},flush:function(){s()&&m((function(e){g(e)}))},flushExpired:function(){s()&&m((function(e){y(e)}))},setBucket:function(e){i=e},resetBucket:function(){i=""},enableWarnings:function(e){a=e}}})?n.apply(t,[]):n)||(e.exports=r)},147084:function(e,t,n){!function(t){"use strict";var n={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:m,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:m,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:m,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links={},this.options=e||y.defaults,this.rules=n.normal,this.options.gfm&&(this.options.tables?this.rules=n.tables:this.rules=n.gfm)}n._label=/(?:\\[\[\]]|[^\[\]])+/,n._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,n.def=d(n.def).replace("label",n._label).replace("title",n._title).getRegex(),n.bullet=/(?:[*+-]|\d+\.)/,n.item=/^( *)(bull) [^\n]*(?
2:\n(?!\1bull )[^\n]*)*/,n.item=d(n.item,"gm").replace(/bull/g,n.bullet).getRegex(),n.list=d(n.list).replace(/bull/g,n.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+n.def.source+")").getRegex(),n._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b",n.html=d(n.html).replace("comment",/<!--[\s\S]*?-->/).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/<tag(?:"[^"]*"|'[^']*'|\s[^'"\/>\s]*)*?\/?>/).replace(/tag/g,n._tag).getRegex(),n.paragraph=d(n.paragraph).replace("hr",n.hr).replace("heading",n.heading).replace("lheading",n.lheading).replace("tag","<"+n._tag).getRegex(),n.blockquote=d(n.blockquote).replace("paragraph",n.paragraph).getRegex(),n.normal=g({},n),n.gfm=g({},n.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),n.gfm.paragraph=d(n.paragraph).replace("(?!","(?!"+n.gfm.fences.source.replace("\\1","\\2")+"|"+n.list.source.replace("\\1","\\3")+"|").getRegex(),n.tables=g({},n.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),r.rules=n,r.lex=function(e,t){return new r(t).lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,t){var r,o,i,a,s,c,u,l,d,p,f;for(e=e.replace(/^ +$/gm,"");e;)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e))e=e.substring(i[0].length),i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?i:i.replace(/\n+$/,"")});else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if(t&&(i=this.rules.nptable.exec(e))){for(e=e.substring(i[0].length),c={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/\n$/,"").split("\n")},l=0;l<c.align.length;l++)/^ *-+: *$/.test(c.align[l])?c.align[l]="right":/^ *:-+: *$/.test(c.align[l])?c.align[l]="center":/^ *:-+ *$/.test(c.align[l])?c.align[l]="left":c.align[l]=null;for(l=0;l<c.cells.length;l++)c.cells[l]=c.cells[l].split(/ *\| */);this.tokens.push(c)}else if(i=this.rules.hr.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"hr"});else if(i=this.rules.blockquote.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"blockquote_start"}),i=i[0].replace(/^ *> ?/gm,""),this.token(i,t),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),f=(a=i[2]).length>1,this.tokens.push({type:"list_start",ordered:f,start:f?+a:""}),r=!1,p=(i=i[0].match(this.rules.item)).length,l=0;l<p;l++)u=(c=i[l]).length,~(c=c.replace(/^ *([*+-]|\d+\.) +/,"")).indexOf("\n ")&&(u-=c.length,c=this.options.pedantic?c.replace(/^ {1,4}/gm,""):c.replace(new RegExp("^ {1,"+u+"}","gm"),"")),this.options.smartLists&&l!==p-1&&(a===(s=n.bullet.exec(i[l+1])[0])||a.length>1&&s.length>1||(e=i.slice(l+1).join("\n")+e,l=p-1)),o=r||/\n\n(?!\s*$)/.test(c),l!==p-1&&(r="\n"===c.charAt(c.length-1),o||(o=r)),this.tokens.push({type:o?"loose_item_start":"list_item_start"}),this.token(c,!1),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(i=this.rules.html.exec(e))e=e.substring(i[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===i[1]||"script"===i[1]||"style"===i[1]),text:i[0]});else if(t&&(i=this.rules.def.exec(e)))e=e.substring(i[0].length),i[3]&&(i[3]=i[3].substring(1,i[3].length-1)),d=i[1].toLowerCase(),this.tokens.links[d]||(this.tokens.links[d]={href:i[2],title:i[3]});else if(t&&(i=this.rules.table.exec(e))){for(e=e.substring(i[0].length),c={type:"table",header:i[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3].replace(/(?: *\| *)?\n$/,"").split("\n")},l=0;l<c.align.length;l++)/^ *-+: *$/.test(c.align[l])?c.align[l]="right":/^ *:-+: *$/.test(c.align[l])?c.align[l]="center"
2:/^ *:-+ *$/.test(c.align[l])?c.align[l]="left":c.align[l]=null;for(l=0;l<c.cells.length;l++)c.cells[l]=c.cells[l].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(c)}else if(i=this.rules.lheading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:"="===i[2]?1:2,text:i[1]});else if(t&&(i=this.rules.paragraph.exec(e)))e=e.substring(i[0].length),this.tokens.push({type:"paragraph",text:"\n"===i[1].charAt(i[1].length-1)?i[1].slice(0,-1):i[1]});else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"text",text:i[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var o={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:/^<!--[\s\S]*?-->|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:m,text:/^[\s\S]+?(?=[\\<!\[`*]|\b_| {2,}\n|$)/};function i(e,t){if(this.options=t||y.defaults,this.links=e,this.rules=o.normal,this.renderer=this.options.renderer||new a,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=o.breaks:this.rules=o.gfm:this.options.pedantic&&(this.rules=o.pedantic)}function a(e){this.options=e||{}}function s(){}function c(e){this.tokens=[],this.token=null,this.options=e||y.defaults,this.options.renderer=this.options.renderer||new a,this.renderer=this.options.renderer,this.renderer.options=this.options}function u(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function d(e,t){return e=e.source,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function p(e,t){return f[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?f[" "+e]=e+"/":f[" "+e]=e.replace(/[^/]*$/,"")),e=f[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,o.autolink=d(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._inside=/(?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/,o._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,o.link=d(o.link).replace("inside",o._inside).replace("href",o._href).getRegex(),o.reflink=d(o.reflink).replace("inside",o._inside).getRegex(),o.normal=g({},o),o.pedantic=g({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),o.gfm=g({},o.normal,{escape:d(o.escape).replace("])","~|])").getRegex(),url:d(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",o._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:d(o.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),o.breaks=g({},o.gfm,{br:d(o.br).replace("{2,}","*").getRegex(),text:d(o.gfm.text).replace("{2,}","*").getRegex()}),i.rules=o,i.output=function(e,t,n){return new i(t,n).output(e)},i.prototype.output=function(e){for(var t,n,r,o,i="";e;)if(o=this.rules.escape.exec(e))e=e.substring(o[0].length),i+=o[1];else if(o=this.rules.autolink.exec(e))e=e.substring(o[0].length),r="@"===o[2]?"mailto:"+(n=u(this.mangle(o[1]))):n=u(o[1]),i+=this.renderer.link(r,null,n);else if(this.inLink||!(o=this.rules.url.exec(e))){if(o=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(o[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(o[0])&&(this.inLink=!1),e=e.substring(o[0].length),i+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):u(o[0]):o[0];else if(o=this.rules.link.exec(e))e=e.substring(o[0].length),this.inLink=!0,i+=this.outputLink(o,{href:o[2],title:o[3]}),this.inLink=!1;else if((o=this.rules.reflink.exec(e))||(o=this.rules.nolink.exec(e))){if(e=e.substring(o[0].length),t=(o[2]||o[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){i+=o[0].charAt(0),e=o[0].substring(1)+e;continue}this.inLink=!0,i+=this.outputLink(o,t),this.inLink=!1}else if(o=this.rules.strong.exec(e))e=e.substring(o[0].length),i+=this.renderer.strong(this.output(o[2]||o[1]));else if(o=this.rules.em.exec(e))e=e.substring(o[0].length),i+=this.renderer.em(this.output(o[2]||o[1]));else if(o=this.rules.code.exec(e))e=e.substring(o[0].length),i+=this.renderer.codespan(u(o[2].trim(),!0));else if(o=this.rules.br.exec(e))e=e.substring(o[0].length),i+=this.renderer.br();else if(o=this.rules.del.exec(e))e=e.substring(o[0].length),i+=this.renderer.del(this.output(o[1]));else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),i+=this.renderer.text(u(this.smartypants(o[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else o[0]=this.rules._backpedal.exec(o[0])[0],e=e.substring(o[0].length),"@"===o[2]?r="mailto:"+(n=u(o[0])):(n=u(o[0]),r
2="www."===o[1]?"http://"+n:n),i+=this.renderer.link(r,null,n);return i},i.prototype.outputLink=function(e,t){var n=u(t.href),r=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"â").replace(/--/g,"â").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1â").replace(/'/g,"â").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1â").replace(/"/g,"â").replace(/\.{3}/g,"â¦"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,o=0;o<r;o++)t=e.charCodeAt(o),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'<pre><code class="'+this.options.langPrefix+u(t,!0)+'">'+(n?e:u(e,!0))+"\n</code></pre>\n":"<pre><code>"+(n?e:u(e,!0))+"\n</code></pre>"},a.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"},a.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"</"+r+">\n"},a.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},a.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},a.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n<tbody>\n"+t+"</tbody>\n</table>\n"},a.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},a.prototype.strong=function(e){return"<strong>"+e+"</strong>"},a.prototype.em=function(e){return"<em>"+e+"</em>"},a.prototype.codespan=function(e){return"<code>"+e+"</code>"},a.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},a.prototype.del=function(e){return"<del>"+e+"</del>"},a.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(l(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return n}this.options.baseUrl&&!h.test(e)&&(e=p(this.options.baseUrl,e));var o='<a href="'+e+'"';return t&&(o+=' title="'+t+'"'),o+">"+n+"</a>"},a.prototype.image=function(e,t,n){this.options.baseUrl&&!h.test(e)&&(e=p(this.options.baseUrl,e));var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+(this.options.xhtml?"/>":">")},a.prototype.text=function(e){return e},s.prototype.strong=s.prototype.em=s.prototype.codespan=s.prototype.del=s.prototype.text=function(e){return e},s.prototype.link=s.prototype.image=function(e,t,n){return""+n},s.prototype.br=function(){return""},c.parse=function(e,t){return new c(t).parse(e)},c.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,g({},this.options,{renderer:new s})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},c.prototype.next=function(){return this.token=this.tokens.pop()},c.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},c.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},c.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,l(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,o="",i="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(o+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",r=0;r<t.length;
2r++)n+=this.renderer.tablecell(this.inline.output(t[r]),{header:!1,align:this.token.align[r]});i+=this.renderer.tablerow(n)}return this.renderer.table(o,i);case"blockquote_start":for(i="";"blockquote_end"!==this.next().type;)i+=this.tok();return this.renderer.blockquote(i);case"list_start":i="";for(var a=this.token.ordered,s=this.token.start;"list_end"!==this.next().type;)i+=this.tok();return this.renderer.list(i,a,s);case"list_item_start":for(i="";"list_item_end"!==this.next().type;)i+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(i);case"loose_item_start":for(i="";"list_item_end"!==this.next().type;)i+=this.tok();return this.renderer.listitem(i);case"html":var c=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(c);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}};var f={},h=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function g(e){for(var t,n,r=1;r<arguments.length;r++)for(n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function y(e,t,n){if(null==e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(n||"function"==typeof t){n||(n=t,t=null);var o,i,a=(t=g({},y.defaults,t||{})).highlight,s=0;try{o=r.lex(e,t)}catch(e){return n(e)}i=o.length;var l=function(e){if(e)return t.highlight=a,n(e);var r;try{r=c.parse(o,t)}catch(t){e=t}return t.highlight=a,e?n(e):n(null,r)};if(!a||a.length<3)return l();if(delete t.highlight,!i)return l();for(;s<o.length;s++)!function(e){"code"!==e.type?--i||l():a(e.text,e.lang,(function(t,n){return t?l(t):null==n||n===e.text?--i||l():(e.text=n,e.escaped=!0,void(--i||l()))}))}(o[s])}else try{return t&&(t=g({},y.defaults,t)),c.parse(r.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",(t||y.defaults).silent)return"<p>An error occurred:</p><pre>"+u(e.message+"",!0)+"</pre>";throw e}}m.exec=m,y.options=y.setOptions=function(e){return g(y.defaults,e),y},y.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new a,xhtml:!1,baseUrl:null},y.Parser=c,y.parser=c.parse,y.Renderer=a,y.TextRenderer=s,y.Lexer=r,y.lexer=r.lex,y.InlineLexer=i,y.inlineLexer=i.output,y.parse=y,e.exports=y}(this||("undefined"!=typeof window?window:n.g))},119243:()=>{},101516:()=>{},617379:()=>{},172776:()=>{},439574:()=>{},104540:()=>{},63327:()=>{},35500:()=>{},847694:()=>{},337288:()=>{},738905:()=>{},361519:()=>{},978033:()=>{},353259:()=>{},551819:()=>{},456927:()=>{},933401:()=>{},392556:()=>{},644016:()=>{},428640:()=>{},486628:()=>{},981388:()=>{},714848:()=>{},344564:()=>{},371548:()=>{},524880:()=>{},298337:()=>{},921538:()=>{},857824:e=>{var t=1e3,n=60*t,r=60*n,o=24*r;function i(e,t,n){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+n:Math.ceil(e/t)+" "+n+"s"}e.exports=function(e,a){a=a||{};var s,c=typeof e;if("string"===c&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var i=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(i){var a=parseFloat(i[1]);switch((i[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"days":case"day":case"d":return a*o;case"hours":case"hour":case"hrs":case"hr":case"h":return a*r;case"minutes":case"minute":case"mins":case"min":case"m":return a*n;case"seconds":case"second":case"secs":case"sec":case"s":return a*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(e);if("number"===c&&!1===isNaN(e))return a.long?i(s=e,o,"day")||i(s,r,"hour")||i(s,n,"minute")||i(s,t,"second")||s+" ms":function(e){return e>=o?Math.round(e/o)+"d":e>=r?Math.round(e/r)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},280884:(e,t,n)=>{var r,o;r=[n(619755)],void 0===(o=function(e){return function(e,t,n){"use strict";var r,o,i,a,s,c,u,l,d,p,f,h,m,g,y,v,b,_,w,S,C,k;y={paneClass:"nano-pane",sliderClass:"nano-slider",contentClass:"nano-content",iOSNativeScrolling:!1,preventPageScrolling:!1,disableResize:!1,alwaysVisible:!1,flashDelay:1500,sliderMinHeight:20,sliderMaxHeight:null,documentContext:null,windowContext:null}
2,h="scroll",s="mousedown",c="mouseenter",u="mousemove",d="mousewheel",l="mouseup",f="resize",m="up",i="DOMMouseScroll",a="down",r="Microsoft Internet Explorer"===t.navigator.appName&&/msie 7./i.test(t.navigator.appVersion)&&t.ActiveXObject,o=null,w=t.requestAnimationFrame,g=t.cancelAnimationFrame,C=n.createElement("div").style,k=function(){var e,t,n,r;for(e=n=0,r=(t=["t","webkitT","MozT","msT","OT"]).length;n<r;e=++n)if(t[e],t[e]+"ransform"in C)return t[e].substr(0,t[e].length-1);return!1}(),S=function(e){return!1!==k&&(""===k?e:k+e.charAt(0).toUpperCase()+e.substr(1))}("transform"),b=!1!==S,v=function(){var e,t,r;return(t=(e=n.createElement("div")).style).position="absolute",t.width="100px",t.height="100px",t.overflow=h,t.top="-9999px",n.body.appendChild(e),r=e.offsetWidth-e.clientWidth,n.body.removeChild(e),r},_=function(){var e,n,r;return n=t.navigator.userAgent,!!(e=/(?=.+Mac OS X)(?=.+Firefox)/.test(n))&&((r=/Firefox\/\d{2}\./.exec(n))&&(r=r[0].replace(/\D+/g,"")),e&&+r>23)},p=function(){function p(r,i){this.el=r,this.options=i,o||(o=v()),this.$el=e(this.el),this.doc=e(this.options.documentContext||n),this.win=e(this.options.windowContext||t),this.body=this.doc.find("body"),this.$content=this.$el.children("."+this.options.contentClass),this.$content.attr("tabindex",this.options.tabIndex||0),this.content=this.$content[0],this.previousPosition=0,this.options.iOSNativeScrolling&&null!=this.el.style.WebkitOverflowScrolling?this.nativeScrolling():this.generate(),this.createEvents(),this.addEvents(),this.reset()}return p.prototype.preventScrolling=function(e,t){if(this.isActive)if(e.type===i)(t===a&&e.originalEvent.detail>0||t===m&&e.originalEvent.detail<0)&&e.preventDefault();else if(e.type===d){if(!e.originalEvent||!e.originalEvent.wheelDelta)return;(t===a&&e.originalEvent.wheelDelta<0||t===m&&e.originalEvent.wheelDelta>0)&&e.preventDefault()}},p.prototype.nativeScrolling=function(){this.$content.css({WebkitOverflowScrolling:"touch"}),this.iOSNativeScrolling=!0,this.isActive=!0},p.prototype.updateScrollValues=function(){var e,t;e=this.content,this.maxScrollTop=e.scrollHeight-e.clientHeight,this.prevScrollTop=this.contentScrollTop||0,this.contentScrollTop=e.scrollTop,t=this.contentScrollTop>this.previousPosition?"down":this.contentScrollTop<this.previousPosition?"up":"same",this.previousPosition=this.contentScrollTop,"same"!==t&&this.$el.trigger("update",{position:this.contentScrollTop,maximum:this.maxScrollTop,direction:t}),this.iOSNativeScrolling||(this.maxSliderTop=this.paneHeight-this.sliderHeight,this.sliderTop=0===this.maxScrollTop?0:this.contentScrollTop*this.maxSliderTop/this.maxScrollTop)},p.prototype.setOnScrollStyles=function(){var e,t;b?(e={})[S]="translate(0, "+this.sliderTop+"px)":e={top:this.sliderTop},w?(g&&this.scrollRAF&&g(this.scrollRAF),this.scrollRAF=w((t=this,function(){return t.scrollRAF=null,t.slider.css(e)}))):this.slider.css(e)},p.prototype.createEvents=function(){var e;this.events={down:(e=this,function(t){return e.isBeingDragged=!0,e.offsetY=t.pageY-e.slider.offset().top,e.slider.is(t.target)||(e.offsetY=0),e.pane.addClass("active"),e.doc.bind(u,e.events.drag).bind(l,e.events.up),e.body.bind(c,e.events.enter),!1}),drag:function(e){return function(t){return e.sliderY=t.pageY-e.$el.offset().top-e.paneTop-(e.offsetY||.5*e.sliderHeight),e.scroll(),e.contentScrollTop>=e.maxScrollTop&&e.prevScrollTop!==e.maxScrollTop?e.$el.trigger("scrollend"):0===e.contentScrollTop&&0!==e.prevScrollTop&&e.$el.trigger("scrolltop"),!1}}(this),up:function(e){return function(t){return e.isBeingDragged=!1,e.pane.removeClass("active"),e.doc.unbind(u,e.events.drag).unbind(l,e.events.up),e.body.unbind(c,e.events.enter),!1}}(this),resize:function(e){return function(t){e.reset()}}(this),panedown:function(e){return function(t){return e.sliderY=(t.offsetY||t.originalEvent.layerY)-.5*e.sliderHeight,e.scroll(),e.events.down(t),!1}}(this),scroll:function(e){return function(t){e.updateScrollValues(),e.isBeingDragged||(e.iOSNativeScrolling||(e.sliderY=e.sliderTop,e.setOnScrollStyles()),null!=t&&(e.contentScrollTop>=e.maxScrollTop?(e.options.preventPageScrolling&&e.preventScrolling(t,a),e.prevScrollTop!==e.maxScrollTop&&e.$el.trigger("scrollend")):0===e.contentScrollTop&&(e.options.preventPageScrolling&&e.preventScrolling(t,m),0!==e.prevScrollTop&&e.$el.trigger("scrolltop"))))}}(this),wheel:function(e){return function(t){var n;if(null!=t)return(n=t.delta||t.wheelDelta||t.originalEvent&&t.originalEvent.wheelDelta||-t.detail||t.originalEvent&&-t.originalEvent.detail)&&(e.sliderY+=-n/3),e.scroll(),!1}}(this),enter:function(e){return function(t){var n;if(e.isBeingDragged)return 1!==(t.buttons||t.which)?(n=e.events).up.apply(n,arguments):void 0}}(this)}},p.prototype.addEvents=function(){var e;this.removeEvents(),e=this.events,this.options.disableResize||this.win.bind(f,e.resize),this.iOSNativeScrolling||(this.slider.bind(s,e.down),this.pane.bind(s,e.panedown).bind("mousewheel "+i,e.wheel)),this.$content.bind("scroll mousewheel DOMMouseScroll touchmove",e.scroll)},p.prototype.removeEvents=function(){var e;e=this.events,this.win.unbind(f,e.resize),this.iOSNativeScrolling||(this.slider.unbind(),this.pane.unbind()),this.$content.unbind("scroll mousewheel DOMMouseScroll touchmove",e.scroll)},p.prototype.generate=function(){var e,n,r,i,a;return i=(n=this.options).paneClass,a=n.sliderClass,n.contentClass,(r=this.$el.children("."+i)).length||r.children("."+a).length||this.$el.append('<div class="'+i+'"><div class="'+a+'" /></div>'),this.pane=this.$el.children("."+i),this.slider=this.pane.find("."+a),0===o&&_()?e={right:-14,paddingRight:+t.getComputedStyle(this.content,null).getPropertyValue("padding-right").replace(/[^0-9.]+/g,"")+14}:o&&(e={right:-o},this.$el.addClass("has-scrollbar")),null!=e&&this.$content.css(e),this},p.prototype.restore=function(){this.stopped=!1,this.iOSNativeScrolling||this.pane.show(),this.addEvents()},p.prototype.reset=function(){var e,t,n,i,a,s,c,u,l,d,p;if(!this.iOSNativeScrolling)return this.$el.find("."+this.options.paneClass).length||this.generate().stop(),this.stopped&&this.restore(
2),a=(i=(e=this.content).style).overflowY,r&&this.$content.css({height:this.$content.height()}),t=e.scrollHeight+o,(l=parseInt(this.$el.css("max-height"),10))>0&&(this.$el.height(""),this.$el.height(e.scrollHeight>l?l:e.scrollHeight)),c=(s=this.pane.outerHeight(!1))+(u=parseInt(this.pane.css("top"),10))+parseInt(this.pane.css("bottom"),10),(p=Math.round(c/t*s))<this.options.sliderMinHeight?p=this.options.sliderMinHeight:null!=this.options.sliderMaxHeight&&p>this.options.sliderMaxHeight&&(p=this.options.sliderMaxHeight),a===h&&i.overflowX!==h&&(p+=o),this.maxSliderTop=c-p,this.contentHeight=t,this.paneHeight=s,this.paneOuterHeight=c,this.sliderHeight=p,this.paneTop=u,this.slider.height(p),this.events.scroll(),this.pane.show(),this.isActive=!0,e.scrollHeight===e.clientHeight||this.pane.outerHeight(!0)>=e.scrollHeight&&a!==h?(this.pane.hide(),this.isActive=!1):this.el.clientHeight===e.scrollHeight&&a===h?this.slider.hide():this.slider.show(),this.pane.css({opacity:this.options.alwaysVisible?1:"",visibility:this.options.alwaysVisible?"visible":""}),"static"!==(n=this.$content.css("position"))&&"relative"!==n||(d=parseInt(this.$content.css("right"),10))&&this.$content.css({right:"",marginRight:d}),this;this.contentHeight=this.content.scrollHeight},p.prototype.scroll=function(){if(this.isActive)return this.sliderY=Math.max(0,this.sliderY),this.sliderY=Math.min(this.maxSliderTop,this.sliderY),this.$content.scrollTop(this.maxScrollTop*this.sliderY/this.maxSliderTop),this.iOSNativeScrolling||(this.updateScrollValues(),this.setOnScrollStyles()),this},p.prototype.scrollBottom=function(e){if(this.isActive)return this.$content.scrollTop(this.contentHeight-this.$content.height()-e).trigger(d),this.stop().restore(),this},p.prototype.scrollTop=function(e){if(this.isActive)return this.$content.scrollTop(+e).trigger(d),this.stop().restore(),this},p.prototype.scrollTo=function(e){if(this.isActive)return this.scrollTop(this.$el.find(e).get(0).offsetTop),this},p.prototype.stop=function(){return g&&this.scrollRAF&&(g(this.scrollRAF),this.scrollRAF=null),this.stopped=!0,this.removeEvents(),this.iOSNativeScrolling||this.pane.hide(),this},p.prototype.destroy=function(){return this.stopped||this.stop(),!this.iOSNativeScrolling&&this.pane.length&&this.pane.remove(),r&&this.$content.height(""),this.$content.removeAttr("tabindex"),this.$el.hasClass("has-scrollbar")&&(this.$el.removeClass("has-scrollbar"),this.$content.css({right:""})),this},p.prototype.flash=function(){var e;if(!this.iOSNativeScrolling&&this.isActive)return this.reset(),this.pane.addClass("flashed"),setTimeout((e=this,function(){e.pane.removeClass("flashed")}),this.options.flashDelay),this},p}(),e.fn.nanoScroller=function(t){return this.each((function(){var n,r;if((r=this.nanoscroller)||(n=e.extend({},y,t),this.nanoscroller=r=new p(this,n)),t&&"object"==typeof t){if(e.extend(r.options,t),null!=t.scrollBottom)return r.scrollBottom(t.scrollBottom);if(null!=t.scrollTop)return r.scrollTop(t.scrollTop);if(t.scrollTo)return r.scrollTo(t.scrollTo);if("bottom"===t.scroll)return r.scrollBottom(0);if("top"===t.scroll)return r.scrollTop(0);if(t.scroll&&t.scroll instanceof e)return r.scrollTo(t.scroll);if(t.stop)return r.stop();if(t.destroy)return r.destroy();if(t.flash)return r.flash()}return r.reset()}))},e.fn.nanoScroller.Constructor=p}(e,window,document)}.apply(t,r))||(e.exports=o)},618987:(e,t,n)=>{"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(21414),s=Object.prototype.propertyIsEnumerable,c=!s.call({toString:null},"toString"),u=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],d=function(e){var t=e.constructor;return t&&t.prototype===e},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!p["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{d(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),s=t&&"[object String]"===i.call(e),p=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=u&&n;if(s&&e.length>0&&!o.call(e,0))for(var m=0;m<e.length;++m)p.push(String(m));if(r&&e.length>0)for(var g=0;g<e.length;++g)p.push(String(g));else for(var y in e)h&&"prototype"===y||!o.call(e,y)||p.push(String(y));if(c)for(var v=function(e){if("undefined"==typeof window||!f)return d(e);try{return d(e)}catch(e){return!1}}(e),b=0;b<l.length;++b)v&&"constructor"===l[b]||!o.call(e,l[b])||p.push(l[b]);return p}}
2e.exports=r},482215:(e,t,n)=>{"use strict";var r=Array.prototype.slice,o=n(21414),i=Object.keys,a=i?function(e){return i(e)}:n(618987),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},21414:e=>{"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},734155:e=>{var t,n,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===o||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:o}catch(e){t=o}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,c=[],u=!1,l=-1;function d(){u&&s&&(u=!1,s.length?c=s.concat(c):l=-1,c.length&&p())}function p(){if(!u){var e=a(d);u=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===i||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new f(e,t)),1!==c.length||u||a(p)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},562401:function(e){!function(t){var n=setTimeout;function r(){}var o="function"==typeof setImmediate&&setImmediate||function(e){n(e,0)},i=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};function a(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}c(t.promise,r)}else(1===e._state?c:u)(t.promise,e._value)}))):e._deferreds.push(t)}function c(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof a)return e._state=3,e._value=t,void l(e);if("function"==typeof n)return void p((r=n,o=t,function(){r.apply(o,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){u(e,t)}var r,o}function u(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&o((function(){e._handled||i(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)s(e,e._deferreds[t]);e._deferreds=null}function d(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function p(e,t){var n=!1;try{e((function(e){n||(n=!0,c(t,e))}),(function(e){n||(n=!0,u(t,e))}))}catch(e){if(n)return;n=!0,u(t,e)}}a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,t){var n=new this.constructor(r);return s(this,new d(e,t,n)),n},a.all=function(e){var t=Array.prototype.slice.call(e);return new a((function(e,n){if(0===t.length)return e([]);var r=t.length;
2function o(i,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){o(i,e)}),n)}t[i]=a,0==--r&&e(t)}catch(e){n(e)}}for(var i=0;i<t.length;i++)o(i,t[i])}))},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a((function(t){t(e)}))},a.reject=function(e){return new a((function(t,n){n(e)}))},a.race=function(e){return new a((function(t,n){for(var r=0,o=e.length;r<o;r++)e[r].then(t,n)}))},a._setImmediateFn=function(e){o=e},a._setUnhandledRejectionFn=function(e){i=e},e.exports?e.exports=a:t.Promise||(t.Promise=a)}(this)},724451:(e,t,n)=>{var r=n(619755),o=n(477055);e.exports=function(e){var t,n="",i=e||{};return function(e,r,i,a,s,c,u,l,d,p,f,h,m,g){var y=m+(!0===u?" locked":"");if(n=n+"<div"+o.attr("class",o.classes(["clearfix","achievement-body",y],[!1,!1,!0]),!1,!0)+'><div class="achievement-icon"><div class="achievement-image"><img'+o.attr("src",a,!0,!0)+'></div></div><div class="achievement-content"><div class="achievement-title">'+o.escape(null==(t=g)?"":t)+'</div><p class="achievement-description">'+o.escape(null==(t=i)?"":t)+"</p>",f){n=n+'<div class="progress-wrapper"><span class="user-rank">'+o.escape(null==(t=h)?"":t)+'</span><div class="progress-bar-wrapper"><div class="progress">';var v=e.i18n.t("achievements.current_xp_prefix")+r+" XP"+e.i18n.t("achievements.current_xp_postfix"),b=e.i18n.t("achievements.new_xp_prefix")+l+" XP"+e.i18n.t("achievements.new_xp_postfix"),_=e.i18n.t("achievements.left_xp_prefix")+s+" XP"+e.i18n.t("achievements.left_xp_rank_infix")+(h+1)+e.i18n.t("achievements.left_xp_postfix");n=n+'<div class="progress-bar xp-bar-old"'+o.attr("style",o.style({width:p+"%"}),!0,!0)+' data-toggle="tooltip" data-placement="top"'+o.attr("title",v,!0,!0)+'></div><div class="progress-bar xp-bar-new"'+o.attr("style",o.style({width:d+"%"}),!0,!0)+' data-toggle="tooltip"'+o.attr("title",b,!0,!0)+'></div><div class="progress-bar xp-bar-left"'+o.attr("style",o.style({width:c+"%"}),!0,!0)+' data-toggle="tooltip"'+o.attr("title",_,!0,!0)+'></div></div></div><div class="progress-bar-border"></div></div>'}n+="</div></div>"}.call(this,"$"in i?i.$:void 0!==r?r:void 0,"currentXP"in i?i.currentXP:"undefined"!=typeof currentXP?currentXP:void 0,"description"in i?i.description:"undefined"!=typeof description?description:void 0,"imgURL"in i?i.imgURL:"undefined"!=typeof imgURL?imgURL:void 0,"leftXP"in i?i.leftXP:"undefined"!=typeof leftXP?leftXP:void 0,"leftXPWidth"in i?i.leftXPWidth:"undefined"!=typeof leftXPWidth?leftXPWidth:void 0,"locked"in i?i.locked:"undefined"!=typeof locked?locked:void 0,"newXP"in i?i.newXP:"undefined"!=typeof newXP?newXP:void 0,"newXPWidth"in i?i.newXPWidth:"undefined"!=typeof newXPWidth?newXPWidth:void 0,"oldXPWidth"in i?i.oldXPWidth:"undefined"!=typeof oldXPWidth?oldXPWidth:void 0,"popup"in i?i.popup:"undefined"!=typeof popup?popup:void 0,"rank"in i?i.rank:"undefined"!=typeof rank?rank:void 0,"style"in i?i.style:"undefined"!=typeof style?style:void 0,"title"in i?i.title:"undefined"!=typeof title?title:void 0),n}},545227:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o={},i=e||{};return function(e,i,a,s,c){o["recover-account"]=t=function(){this&&this.block,this&&this.attributes,n+='<div id="recover-account-wrapper"><a id="link-to-recover" data-toggle="coco-modal" data-target="core/RecoverModal" data-i18n="login.forgot_password" href="#"></a></div>'},o["auth-form-content"]=t=function(){if(this&&this.block,this&&this.attributes,n+='<div class="auth-form-content">',i&&(n+='<div class="alert alert-success"><span data-i18n="signup.required"></span></div>'),n+='<div class="alert alert-danger hide" id="unknown-error-alert" data-i18n="loading_error.unknown"></div><form class="form">',s.loginMessage&&(n=n+'<div class="alert alert-danger"><span></span>'+r.escape(null==(t=s.loginMessage)?"":t)+"</div>"),n+='<div class="form-group"><label class="control-label" for="username-or-email-input">',s.showLibraryModal?n+='<span data-i18n="login.email_or_username_or_library"></span>':n+='<span data-i18n="login.email_or_username"></span>',n=n+':</label><div class="input-border"><input class="input-large form-control" id="username-or-email-input" name="emailOrUsername"'+r.attr("value",s.previousFormInputs.email,!0,!0)+' dir="auto"></div></div><div class="form-group">',s.utils.isCodeCombat&&o["recover-account"](),n=n+'<label class="control-label"'+r.attr("for",s.utils.isCodeCombat?"password":"password-input",!0,!0)+'><span data-i18n="general.password"></span>'+r.escape(null==(t=s.utils.isCodeCombat?":":"")?"":t)+'</label><div class="input-border"><input class="input-large form-control" id="password-input" name="password" type="password"'+r.attr("value",s.previousFormInputs.password,!0,!0)+' dir="auto"></div>',s.utils.isOzaria&&o["recover-account"](),n=n+"</div><input"+r.attr("class",r.classes(["btn","btn-block","btn-success",s.utils.isCodeCombat?"btn-lg btn-illustrated":""],[!1,!1,!1,!0]),!1,!0)+' id="login-btn"'+r.attr("value",a(s.utils.isCodeCombat?"login.log_in":"login.sign_in"),!0,!0)+' type="submit"></form><div class="wait secret"><h3 data-i18n="login.logging_in"></h3></div></div>',s.utils.isCodeCombat&&e.useSocialSignOn()){var u=!/^\/play/.test(c.location.pathname);n=n+"<div"+r.attr("class",r.classes(["auth-network-logins"+(u?" three-choices":" two-choices")],[!0]),!1,!0)+'>
2\x3c!-- GitHub login complete, but the button does not fit in with the design yet. Hidden for now--\x3e\x3c!--div.network-login--\x3e\x3c!-- btn.btn.btn-sm.github-login-button#github-login-button--\x3e\x3c!-- img(src="/images/pages/modal/auth/github_icon.png")--\x3e\x3c!-- | GitHub--\x3e<a class="network-login signup-with-button" id="facebook-login-btn" disabled><img class="fb-login-img" src="/images/pages/modal/auth/facebook_small.png" draggable="false"><span>Facebook</span></a>',u&&(n+='<a class="network-login" id="clever-signup-btn"><img class="clever-login-img" src="/images/pages/modal/auth/clever-logo-blue.png" draggable="false"></a>'),n+='<a class="network-login" id="google-login-button" disabled><img class="google-login-img" src="/images/pages/modal/auth/gplus_sso_button2.svg" draggable="false"></a><a class="network-login signup-with-button" id="schoology-login-btn"><img class="schoology-login-img" src="/images/pages/modal/auth/schoology.png"><span>Schoology</span></a><a class="network-login signup-with-button" id="classlink-login-btn"><img class="classlink-login-img" src="/images/pages/modal/auth/classlink-logo-small.png"><span>ClassLink</span></a></div>'}n+='<div class="extra-pane">',s.utils.isCodeCombat?n+='<div class="switch-explanation" data-i18n="login.signup_switch"></div><div class="btn btn-lg btn-illustrated btn-warning" id="switch-to-signup-btn" data-i18n="login.sign_up"></div>':n+='<a id="switch-to-signup-btn" data-i18n="login.auth_sign_up" href="#"></a><p data-i18n="login.already_have_account1"></p><p data-i18n="login.already_have_account2"></p>',n+="</div>"},n=n+"<div"+r.attr("class",r.classes(["modal-dialog",s.utils.isOzaria?"style-ozaria":""],[!1,!0]),!1,!0)+'><div class="modal-content">',s.utils.isCodeCombat?n+='<img class="auth-modal-background" src="/images/pages/modal/auth/login-background.png" draggable="false"><h1 data-i18n="login.log_in"></h1><div id="close-modal"><span class="glyphicon glyphicon-remove"></span></div>':(n+='<h2 data-i18n="login.sign_into_ozaria"></h2>',e.useSocialSignOn()&&(n+='<div class="auth-network-logins">\x3c!-- GitHub login complete, but the button does not fit in with the design yet. Hidden for now--\x3e\x3c!--div.network-login--\x3e\x3c!-- btn.btn.btn-sm.github-login-button#github-login-button--\x3e\x3c!-- img(src="/images/pages/modal/auth/github_icon.png")--\x3e\x3c!-- | GitHub--\x3e<a class="sso-btn" id="google-login-button" disabled href="#"><img src="/images/ozaria/common/log-in-google-sso.svg" draggable="false"></a><a class="sso-btn" id="clever-login-btn" href="#"><img src="/images/pages/modal/auth/[email protected]" draggable="false"></a><a class="sso-btn" id="classlink-login-btn"><img class="classlink-login-img" src="/images/pages/modal/auth/classlink-logo-small.png"><span>ClassLink</span></a></div><div class="row or-row"><div class="line"></div><p class="or" data-i18n="login.or"></p><div class="line"></div></div>'),o["auth-form-content"]()),n+="</div>",s.utils.isCodeCombat&&o["auth-form-content"](),n+="</div>"}.call(this,"me"in i?i.me:"undefined"!=typeof me?me:void 0,"showRequiredError"in i?i.showRequiredError:"undefined"!=typeof showRequiredError?showRequiredError:void 0,"translate"in i?i.translate:"undefined"!=typeof translate?translate:void 0,"view"in i?i.view:"undefined"!=typeof view?view:void 0,"window"in i?i.window:"undefined"!=typeof window?window:void 0),n}},13160:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e,o){n+="\x3c!-- this allows the extended templates to add class to .modal-dialog--\x3e";let i=o.utils&&o.utils.isOzaria;n=n+"<div"+r.attr("class",r.classes(["modal-dialog",""],[!1,!0]),!1,!0)+"><div"+r.attr("class",r.classes(["modal-content","style-flat",i?"style-ozaria":""],[!1,!1,!0]),!1,!0)+' id="modal-base-flat"><div class="modal-header">',o.closeButton&&(n+='<div class="button close" type="button" data-dismiss="modal" aria-hidden="true">×</div>'),n=n+"<h3>"+r.escape(null==(t=o.title)?"":t)+'</h3></div><div class="modal-body"><p>'+(null==(t=o.body)?"":t)+'</p></div><div class="modal-body wait secret"><h3>Loading...</h3><div class="progress progress-striped active"><div class="progress-bar"></div></div></div><div class="modal-footer"><button class="btn btn-secondary" id="decline-button" type="button" data-dismiss="modal">'+r.escape(null==(t=o.decline)?"":t)+'</button><button class="btn btn-primary" id="confirm-button" type="button"'+r.attr("data-dismiss",!0===e?"modal":void 0,!0,!0)+">"+r.escape(null==(t=o.confirm)?"":t)+"</button></div></div></div>"}
2.call(this,"closeOnConfirm"in o?o.closeOnConfirm:"undefined"!=typeof closeOnConfirm?closeOnConfirm:void 0,"view"in o?o.view:"undefined"!=typeof view?view:void 0),n}},663523:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e,o,i){n+="\x3c!-- this allows the extended templates to add class to .modal-dialog--\x3e";let a=i.utils&&i.utils.isOzaria;n=n+"<div"+r.attr("class",r.classes(["modal-dialog",""],[!1,!0]),!1,!0)+"><div"+r.attr("class",r.classes(["modal-content","style-flat",a?"style-ozaria":""],[!1,!1,!0]),!1,!0)+' id="modal-base-flat"><div class="modal-header">',i.closeButton&&(n+='<div class="button close" type="button" data-dismiss="modal" aria-hidden="true">×</div>'),n+='<h3 data-i18n="contact.contact_us">Contact CodeCombat...</h3></div><div class="modal-body"><p><span data-i18n="contact.welcome"></span><span class="spl" data-i18n="contact.forum_prefix"></span>',o.isHomeUser()&&(n+='<a href="https://www.reddit.com/r/CodeCombat/" data-i18n="contact.reddit_page"></a><span class="spl spr" data-i18n="contact.faq_prefix"></span>'),e="[email protected]",n=(n=n+'<a data-i18n="contact.faq" href="https://codecombat.zendesk.com/hc/en-us"></a><span data-i18n="contact.faq_suffix"></span><span>'+r.escape(null==(t=" ")?"":t)+'</span><span data-i18n="contact.prefer_email_prefix"></span>')+"<a"+r.attr("href","mailto:"+e,!0,!0)+">"+r.escape(null==(t=e)?"":t)+'</a><span data-i18n="contact.prefer_email_suffix"></span></p><div class="form"><div class="form-group"><label class="control-label" for="contact-email" data-i18n="general.email">Email</label><input class="form-control" id="contact-email" name="email" type="email"'+r.attr("value",o.get("anonymous")?"":o.get("email"),!0,!0)+' data-i18n="[placeholder]contact.where_reply" placeholder="Where should we reply?"></div><div class="form-group"><label class="control-label" for="contact-message" data-i18n="general.message">Message</label><textarea class="form-control" id="contact-message" name="message" rows="8"></textarea></div></div><div class="secret" id="contact-screenshot"><a target="_blank" data-i18n="contact.screenshot_included">Screenshot included.</a><br><img class="pull-left" width="100"></div></div><div class="modal-body wait secret"><h3>Loading...</h3><div class="progress progress-striped active"><div class="progress-bar"></div></div></div><div class="modal-footer"><span class="sending-indicator pull-left secret" data-i18n="common.sending">Sending...</span><a class="btn" href="#" data-dismiss="modal" aria-hidden="true" data-i18n="common.cancel">Cancel</a><button class="btn btn-primary" id="contact-submit-button" data-i18n="contact.send">Send Feedback</button></div></div></div>'}.call(this,"email"in o?o.email:"undefined"!=typeof email?email:void 0,"me"in o?o.me:"undefined"!=typeof me?me:void 0,"view"in o?o.view:"undefined"!=typeof view?view:void 0),n}},847626:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o={},i=e||{};return function(e,i,a){o["error-area"]=t=function(){this&&this.block,this&&this.attributes,n+='<div class="error-area">';var e=a.state.get("error");e&&(n=n+'<div class="row"><div class="col-xs-7 col-xs-offset-3"></div></div><div class="alert alert-danger">'+r.escape(null==(t=e)?"":t)+"</div>"),n+="</div>"},o["use-social-signon"]=t=function(){this&&this.block,this&&this.attributes,a.utils.isCodeCombat?(a.showLibraryIdInsteadOfUsername||(n+='<div class="hr-text"><hr><span data-i18n="general.or"></span></div><div class="sso-header" data-i18n="signup.sign_up_with"></div><div class="auth-network-logins text-center">',i.showChinaRegistration()||(n=n+'<div class="gsi-mount" id="google-login-button"></div><a class="network-login sso-row" id="google-signup-btn"'+r.attr("disabled",!a.signupState.get("gplusEnabled"),!0,!0)+' data-sso-used="gplus" aria-label="Sign up with Google"><img class="sso-logo sso-logo-google" src="/images/pages/modal/auth/google-logo-wordmark.svg" draggable="false" alt=""></a>'),/(teacher|student)/.test(a.signupState.get("path"))||(n=n+'<a class="network-login sso-row" id="facebook-signup-btn"'+r.attr("disabled",!a.signupState.get("facebookEnabled"),!0,!0)+' data-sso-used="facebook" aria-label="Sign up with Facebook"><img class="sso-logo sso-logo-facebook" src="/images/pages/modal/auth/facebook-logo-wordmark.svg" draggable="false" alt=""></a>'),/(teacher|student)/.test(a.signupState.get("path"))&&(n+='<a class="network-login sso-row" id="clever-signup-btn" data-sso-used="clever" aria-label="Sign up with Clever"><img class="sso-logo sso-logo-clever" src="/images/pages/modal/auth/clever-logo-blue.png" draggable="false" alt=""></a><a class="network-login sso-row" id="schoology-signup-btn" data-sso-used="schoology" aria-label="Sign up with Schoology"><img class="sso-logo sso-logo-schoology" src="/images/pages/modal/auth/schoology-logo-wordmark.svg" alt=""></a><a class="network-login sso-row" id="classlink-signup-btn" data-sso-used="classlink" aria-label="Sign up with ClassLink"><img class="sso-logo sso-logo-classlink" src="/images/pages/modal/auth/classlink-logo-text.png" alt=""></a>'),n+="</div>"),n+="\x3c!-- TODO: turn on once we can ask about school inside ConfirmationView--\x3e"):(n=n+'<div class="auth-network-logins"><div class="gplus-login"><a class="network-login" id="google-login-button"'+r.attr("disabled",!a.signupState.get("gplusEnabled"),!0,!0)+' data-sso-used="gplus">',a.signupState.get("path"),n=n+'<img class="gplus-logo"'+r.attr("src","/images/ozaria/common/log-in-google-sso-generic.svg",!0,!0)+' draggable="false"></a></div><div class="classlink-login"><a class="network-login" id="classlink-signup-btn" data-sso-used="classlink"><img class="classlink-login-img" src="/images/pages/modal/auth/classlink-logo-small.png"><span>ClassLink</span></a></div></div>\x3c!-- TODO: turn on once we can ask about school inside ConfirmationView--\x3e\x3c!--if view.signupState.get(\'path\') === \'individual\' && (!me.get(\'country\') || me.get(\'country\') == \'united-states\').checkbox#want-in-school\n label.control-label(for="want-in-school-checkbox")\n input#want-in-school-checkbox(type="checkbox" value="")\n span(data-i18n="signup.want_codecombat_in_school")--\x3e<div class="row or-row"><div class="line"></div><p class="or" data-i18n="login.or"></p><div class="line"></div></div>')},n+='<form class="modal-body basic-info" id="basic-info-form">';var s,c,u=a.signupState.get("path");(n=n+"<div"+r.attr("class",r.classes(["modal-body-content","individual"===u?"individual-flow-body":""],[!1,!0]),!1,!0)+">","individual"===u)?(n+='<div class="individual-flow-panel"><div class="individual-flow-progress" aria-hidden="true"><div class="individual-flow-progress-step"></div><div class="individual-flow-progress-step active"></div></div><div class="individual-flow-card individual-basic-info-card">',a.signupState.get("subModalContinue")&&(n+='<div class="individual-flow-note" data-i18n="signup.sign_in_to_continue"></div>'),n+='<div class="individual-basic-info-fields">',a.showLibraryIdInsteadOfUsername&&(n+='<div class="form-group"><div class="row library-signup-text"><span data-i18n="library.library_signup_promotion"></span></div></div>'),n+='<div class="form-group">',a.showLibraryIdInsteadOfUsername?n+='<label class="control-label" for="username-input"><span data-i18n="library.library_card"></span></label>':n+='<label class="control-label" for="username-input"><span data-i18n="general.username"></span></label>',n=n+'<input class="form-control input-lg" id="username-input" name="name"'+r.attr("value",a.signupState.get("signupForm").name,!0,!0)+' dir="auto" spellcheck="false"><div class="name-check fancy-error rtl-allowed">',"checking"===(c=a.state.get("checkNameState"))&&(n+='<span class="small" data-i18n="signup.checking"></span>
2'),"exists"===c&&(n=n+'<span class="small"><span class="text-burgundy glyphicon glyphicon-remove-circle"></span>'+r.escape(null==(t=" ")?"":t)+"<span>"+r.escape(null==(t=a.state.get("suggestedNameText"))?"":t)+"</span></span>"),"available"===c&&(n=n+'<span class="small"><span class="text-forest glyphicon glyphicon-ok-circle"></span>'+r.escape(null==(t=" ")?"":t)+'<span data-i18n="signup.name_available"></span></span>'),n+="</div></div>",(a.utils.isOzaria||!a.hideEmail)&&(n=n+'<div class="form-group"><label class="control-label" for="email-input"><span data-i18n="share_progress_modal.form_label"></span></label><input class="form-control input-lg" id="email-input" name="email" type="email"'+r.attr("value",a.signupState.get("signupForm").email,!0,!0)+' dir="auto"><div class="email-check fancy-error rtl-allowed">',"checking"===(s=a.state.get("checkEmailState"))&&(n+='<span class="small" data-i18n="signup.checking"></span>'),"exists"===s&&(n=n+'<span class="small"><span class="text-burgundy glyphicon glyphicon-remove-circle"></span>'+r.escape(null==(t=" ")?"":t)+'<span data-i18n="signup.account_exists"></span>'+r.escape(null==(t=" ")?"":t)+'<a class="login-link" data-i18n="signup.sign_in"></a></span>'),"available"===s&&(n=n+'<span class="small"><span class="text-forest glyphicon glyphicon-ok-circle"></span>'+r.escape(null==(t=" ")?"":t)+'<span data-i18n="signup.email_good"></span></span>'),n+="</div></div>"),n=n+'<div class="form-group"><label class="control-label" for="password-input"><span data-i18n="general.password"></span></label><input class="form-control input-lg" id="password-input" name="password" type="password"'+r.attr("value",a.signupState.get("signupForm").password,!0,!0)+' dir="auto"><small class="form-text text-muted" data-i18n="signup.password_requirements"></small></div></div>
2',a.utils.isCodeCombat&&o["error-area"](),n+="</div>",a.utils.isCodeCombat&&i.useSocialSignOn()?(n+='<div class="individual-flow-social">',o["use-social-signon"](),n+="</div>"):!a.utils.isCodeCombat&&i.useSocialSignOn()&&o["use-social-signon"](),n+="</div>"):(!a.utils.isCodeCombat&&i.useSocialSignOn()&&o["use-social-signon"](),n+='<div class="form-container">',-1!==["student","teacher"].indexOf(a.signupState.get("path"))&&(n=n+'<div class="row full-name"><div'+r.attr("class",r.classes(["col-xs-offset-3","teacher"!==u||i.showChinaRegistration()?"col-xs-5":"col-xs-3"],[!1,!0]),!1,!0)+'><div class="form-group"><label class="control-label" for="first-name-input"><span data-i18n="general.first_name"></span></label><input class="form-control input-lg" id="first-name-input" name="firstName"'+r.attr("value",a.signupState.get("signupForm").firstName,!0,!0)+' dir="auto" spellcheck="false"></div></div>',i.showChinaRegistration()||(n=n+"<div"+r.attr("class",r.classes(["teacher"===u?"col-xs-3":"col-xs-4"],[!0]),!1,!0)+">",n="teacher"===a.signupState.get("path")?n+'<div class="last-name form-group"><label class="control-label" for="last-name-input"><span data-i18n="general.last_name"></span></label><input class="form-control input-lg" id="last-name-input" name="lastName"'+r.attr("value",a.signupState.get("signupForm").lastName,!0,!0)+' dir="auto" spellcheck="false"></div>':n+'<div class="last-initial form-group"><label class="control-label" for="last-name-input"><span data-i18n="general.last_initial"></span></label><input class="form-control input-lg" id="last-name-input" name="lastName" maxlength="1"'+r.attr("value",a.signupState.get("signupForm").lastName,!0,!0)+' dir="auto" spellcheck="false"></div>',n+="</div>"),n+="</div>"),n+='<div class="form-group"><div class="row rtl-allowed"><div class="col-xs-5 col-xs-offset-3 rtl-allowed">',!a.utils.isOzaria&&a.hideEmail||(n+='<label class="control-label" for="email-input"><span data-i18n="share_progress_modal.form_label"></span></label>',"student"===a.signupState.get("path")&&(n+='<div class="help-block optional-help-block pull-right"><span class="optional-text" data-i18n="signup.optional"></span></div>'),n=n+'<input class="form-control input-lg" id="email-input" name="email" type="email"'+r.attr("value",a.signupState.get("signupForm").email,!0,!0)+' dir="auto">'),n+='</div><div class="col-xs-4 email-check fancy-error rtl-allowed">',"checking"===(s=a.state.get("checkEmailState"))&&(n+='<span class="small" data-i18n="signup.checking"></span>'),"exists"===s&&(n=n+'<span class="small"><span class="text-burgundy glyphicon glyphicon-remove-circle"></span>'+r.escape(null==(t=" ")?"":t)+'<span data-i18n="signup.account_exists"></span>'+r.escape(null==(t=" ")?"":t)+'<a class="login-link" data-i18n="signup.sign_in"></a></span>'),"available"===s&&(n=n+'<span class="small"><span class="text-forest glyphicon glyphicon-ok-circle"></span>'+r.escape(null==(t=" ")?"":t)+'<span data-i18n="signup.email_good"></span></span>'),n+="</div></div></div>","teacher"!==a.signupState.get("path")&&(a.showLibraryIdInsteadOfUsername&&(n+='<div class="form-group"><div class="row library-signup-text"><span data-i18n="library.library_signup_promotion"></span></div></div>'),n+='<div class="form-group"><div class="row rtl-allowed"><div class="col-xs-5 col-xs-offset-3 rtl-allowed">',a.showLibraryIdInsteadOfUsername?n+='<label class="control-label" for="username-input"><span data-i18n="library.library_card"></span></label>':n+='<label class="control-label" for="username-input"><span data-i18n="general.username"></span></label>',n=n+'<input class="form-control input-lg" id="username-input" name="name"'+r.attr("value",a.signupState.get("signupForm").name,!0,!0)+' dir="auto" spellcheck="false"></div><div class="col-xs-4 name-check fancy-error rtl-allowed">',"checking"===(c=a.state.get("checkNameState"))&&(n+='<span class="small" data-i18n="signup.checking"></span>'),"exists"===c&&(n=n+'<span class="small"><span class="text-burgundy glyphicon glyphicon-remove-circle"></span>'+r.escape(null==(t=" ")?"":t)+"<span>"+r.escape(null==(t=a.state.get("suggestedNameText"))?"":t)+"</span></span>
2"),"available"===c&&(n=n+'<span class="small"><span class="text-forest glyphicon glyphicon-ok-circle"></span>'+r.escape(null==(t=" ")?"":t)+'<span data-i18n="signup.name_available"></span></span>'),n+="</div></div></div>"),n=n+'<div class="form-group"><div class="row rtl-allowed"><div class="col-xs-5 col-xs-offset-3 rtl-allowed"><label class="control-label" for="password-input"><span data-i18n="general.password"></span></label><input class="form-control input-lg" id="password-input" name="password" type="password"'+r.attr("value",a.signupState.get("signupForm").password,!0,!0)+' dir="auto"><small class="form-text text-muted" data-i18n="signup.password_requirements"></small></div></div></div>',a.utils.isCodeCombat&&o["error-area"](),n+="</div>",a.utils.isCodeCombat&&i.useSocialSignOn()&&o["use-social-signon"]());n+="</div>",a.utils.isOzaria&&o["error-area"](),n=n+"\x3c!-- In reverse order for tabbing purposes--\x3e<div"+r.attr("class",r.classes(["history-nav-buttons","individual"===a.signupState.get("path")?"individual":void 0],[!1,!0]),!1,!0)+">","teacher"===a.signupState.get("path")?n=n+"<button"+r.attr("class",r.classes(["next-button","btn","btn-lg",a.utils.isCodeCombat?"btn-navy":"ozaria-primary-button"],[!1,!1,!1,!0]),!1,!0)+' type="submit"><span data-i18n="common.next"></span></button>':a.signupState.get("subModalContinue")?n=n+"<button"+r.attr("class",r.classes(["next-button","btn","btn-lg",a.utils.isCodeCombat?"btn-navy":"ozaria-primary-button"],[!1,!1,!1,!0]),!1,!0)+' id="create-account-btn" type="submit"><span data-i18n="common.continue"></span></button>':(n=n+"<button"+r.attr("class",r.classes(["next-button","btn","btn-lg",a.utils.isCodeCombat?"btn-navy":"ozaria-primary-button"],[!1,!1,!1,!0]),!1,!0)+' id="create-account-btn" type="submit">',a.utils.isCodeCombat?n+='<span data-i18n="login.sign_up"></span>':n+='<span data-i18n="common.next"></span>',n+="</button>"),n=n+"<button"+r.attr("class",r.classes(["back-button","btn","btn-lg",a.utils.isCodeCombat?"btn-navy-alt":"ozaria-secondary-button"],[!1,!1,!1,!0]),!1,!0)+' type="button"><span data-i18n="common.back"></span></button></div></form>'}.call(this,"imgURL"in i?i.imgURL:"undefined"!=typeof imgURL?imgURL:void 0,"me"in i?i.me:"undefined"!=typeof me?me:void 0,"view"in i?i.view:"undefined"!=typeof view?view:void 0),n}},1144:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o={},i=e||{};return function(e,i){o["account-type-card"]=t=function(e,t,o,i,a){this&&this.block,this&&this.attributes,n=n+"<button"+r.attr("class",r.classes(["path-option",e],[!1,!0]),!1,!0)+' type="button"><span class="path-option-media"><img class="path-option-image"'+r.attr("data-i18n",i,!0,!0)+r.attr("src",a,!0,!0)+'><span class="path-option-description"'+r.attr("data-i18n",o,!0,!0)+'></span></span><span class="path-option-cta"><span class="path-option-label"'+r.attr("data-i18n",t,!0,!0)+"></span></span></button>"},i.utils.isCodeCombat?(n+='<div class="modal-body-content choose-account-shell"><div class="choose-type-header"><h2 class="choose-type-title" data-i18n="signup.choose_account_title"></h2><p class="choose-type-subtitle" data-i18n="signup.choose_account_subtitle"></p></div>',e.showIndividualRegister()?(n+='<div class="choose-type-grid">',o["account-type-card"]("teacher-path-button","new_home.im_an_educator","new_home.im_an_educator_description","[alt]new_home.for_educators","/images/pages/account/create/educator.png"),o["account-type-card"]("parent-path-button","new_home.im_a_parent","new_home.im_a_parent_description","[alt]new_home.for_parents","/images/pages/account/create/parent.png"),o["account-type-card"]("student-path-button","new_home.im_a_student","new_home.im_a_student_description","[alt]new_home.for_students","/images/pages/account/create/student.png"),o["account-type-card"]("individual-path-button","new_home.im_an_individual","new_home.im_an_individual_description","[alt]new_home.for_individuals","/images/pages/account/create/individual.png"),n+="</div>"):(n+='<div class="choose-type-grid">',o["account-type-card"]("teacher-path-button","new_home.im_an_educator","new_home.im_an_educator_description","[alt]new_home.for_educators","/images/pages/account/create/educator.png"),o["account-type-card"]("student-path-button","new_home.im_a_student","new_home.im_a_student_description","[alt]new_home.for_students","/images/pages/account/create/student.png"),n+="</div>"),n=n+'<p class="choose-type-footer"><span data-i18n="signup.already_have_account_q"></span>'+r.escape(null==(t=" ")?"":t)+'<a class="login-link" href="#" role="button" tabindex="0" data-i18n="signup.sign_in"></a></p></div>'):n=n+'<form class="modal-body choose-account-type"><div class="row"><p class="medium-gray constrain-text-width" data-i18n="signup.educators_create_account"></p></div><div class="row"><button class="btn btn-lg teacher-path-button ozaria-primary-button" data-i18n="signup.signup_as_teacher" type="button"></button></div><div class="row or-row"><div class="line"></div><p class="or" data-i18n="login.or"></p><div class="line"></div></div><div class="form-group"><p class="medium-gray constrain-text-width" data-i18n="signup.request_class_code"></p><label class="control-label" for="classCode"><span data-i18n="play.anon_signup_enter_code"></span></label><div class="class-code-input-group form-group"><input class="class-code-input" name="classCode"'+r.attr("value",i.signupState.get("classCode"),!0,!0)+' spellcheck="false"'+r.attr("required",!0,!0,!0)+'></div><button class="btn btn-lg student-path-button ozaria-primary-button" type="submit" data-i18n="signup.signup_as_student"></button></div></form>'}.call(this,"me"in i?i.me:"undefined"!=typeof me?me:void 0,"view"in i?i.view:"undefined"!=typeof view?view:void 0),n}},108222:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e,o){if(n+='<div class="modal-body"><div class="modal-body-content"><h4 class="m-y-1" data-i18n="signup.account_created"></h4><div class="confirm_container text-center m-y-1">',"student"===o.signupState.get("path")?n+='<p data-i18n="signup.confirm_student_blurb"></p>':o.hideEmail?n+='<p data-i18n="signup.confirm_individual_blurb_without_email"></p>':n+='<p data-i18n="signup.confirm_individual_blurb"></p>',n+='</div><div class="signup-info-box-wrapper"><div class="text-burgundy" data-i18n="signup.write_this_down"></div><div class="signup-info-box text-center">',e.get("name")&&(n=n+'<h4><b><span data-i18n="general.username"></span>: '+r.escape(null==(t=e.get("name"))?"":t)+"</b></h4>"),e.get("email")){n+="<h5><b>";var i=o.signupState.get("ssoUsed");n="facebook"===i?n+'<img class="m-r-1" src="/images/pages/modal/auth/facebook_small.png">'+r.escape(null==(t=e.get("email"))?"":t):"gplus"===i?n+'<img class="m-r-1" src="/images/pages/modal/auth/gplus_small.png">
2'+r.escape(null==(t=e.get("email"))?"":t):n+'<span data-i18n="general.email"></span>: '+r.escape(null==(t=e.get("email"))?"":t),n+="</b></h5>"}n+="</div></div>",o.signupState.get("wantInSchool")&&(n+='<div id="nces-search-input"></div>'),n+='<button class="btn btn-navy btn-lg m-t-3" id="start-btn" data-i18n="signup.start_playing"></button></div></div>'}.call(this,"me"in o?o.me:"undefined"!=typeof me?me:void 0,"view"in o?o.view:"undefined"!=typeof view?view:void 0),n}},630169:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t="",n=e||{};return function(e,n){t+='<form class="modal-body coppa-deny"><div class="modal-body-content"><div class="individual-flow-panel"><div class="individual-flow-progress" aria-hidden="true"><div class="individual-flow-progress-step active"></div><div class="individual-flow-progress-step"></div></div><div class="individual-flow-card parent-email-card">',n.state.get("parentEmailSent")?t+='<div class="parent-email-confirmation"><div class="parent-email-confirmation-mark"><span class="glyphicon glyphicon-ok"></span></div><div class="individual-flow-heading"><h4 data-i18n="signup.parent_email_check_inbox"></h4></div><p class="parent-email-sent-copy"><span data-i18n="signup.parent_email_sent"></span></p><p class="parent-email-blurb" data-i18n="signup.parent_email_finish_blurb"></p></div>':(t=t+'<div class="individual-flow-heading"><h4 data-i18n="signup.parent_email_header"></h4></div><div class="form-group parent-email-input-group"><label class="sr-only" for="parent-email-input" data-i18n="signup.parent_email_label"></label><input class="form-control input-lg" id="parent-email-input" type="email" name="parentEmail" placeholder="[email protected]"'+r.attr("value",e.get("parentEmail"),!0,!0)+"></div>",e.get("error")&&(t+='<p class="small error"><span data-i18n="signup.parent_email_error"></span></p>'),e.get("dontUseOurEmailSilly")&&(t+='<p class="error"><span data-i18n="signup.dont_use_our_email_silly"></span></p>'),t+='<div class="parent-email-blurb render"></div>'),t+='</div></div></div><div class="history-nav-buttons individual">',e.get("parentEmailSent")?t+='<a class="play-without-saving-button btn btn-lg btn-navy" href="/play" data-dismiss="modal" data-i18n="signup.play_without_saving"></a>':(t=t+'<button class="send-parent-email-button btn btn-lg btn-navy" type="submit"'+r.attr("disabled",e.get("parentEmailSending")||e.get("dontUseOurEmailSilly"),!0,!0)+">",e.get("parentEmailSending")?t+='<span data-i18n="common.sending"></span>':t+='<span data-i18n="signup.send_to_parent"></span>',t+='</button><button class="back-btn btn btn-lg btn-navy-alt" type="button"><span data-i18n="common.back"></span></button>'),t+="</div></form>"}.call(this,"state"in n?n.state:"undefined"!=typeof state?state:void 0,"view"in n?n.view:"undefined"!=typeof view?view:void 0),t}},352469:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t="",n={},o=e||{};return function(e,o){n["ozaria-close-button"]=function(){this&&this.block,this&&this.attributes,t+='<button class="close" data-dismiss="modal" aria-label="Close" data-i18n="[aria-label]modal.close"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button>'},n["modal-header-content"]=function(){if(this&&this.block,this&&this.attributes,o.utils.isCodeCombat){switch(t+="<h3>",o.signupState.get("path")){case"student":"segment-check"===o.signupState.get("screen")?t+='<span data-i18n="signup.have_a_classcode"></span>':t+='<span data-i18n="signup.create_student_header"></span>';break;case"teacher":t+='<span data-i18n="signup.create_teacher_header"></span>';break;case"individual":o.signupState.get("subModalContinue")?t+='<span data-i18n="signup.complete_subscription"></span>':t+='<span data-i18n="signup.create_individual_header"></span>';break;default:t+='<span data-i18n="login.sign_up"></span>'}t+="</h3>"}else{switch(t+="<h2>",o.signupState.get("path")){case"student":t+='<span data-i18n="signup.create_student_header"></span>';break;case"teacher":t+='<span data-i18n="signup.create_teacher_header"></span>';break;case"individual":o.signupState.get("subModalContinue")?t+='<span data-i18n="signup.complete_subscription"></span>':t+='<span data-i18n="signup.create_individual_header"></span>';break;default:t+='<span data-i18n="login.sign_up"></span>'}t+="</h2>"}},n["modal-footer-content"]=function(){this&&this.block,this&&this.attributes,"confirmation"===o.signupState.get("screen")||!o.utils.isCodeCombat&&"teacher-signup-component"===o.signupState.get("screen")||(t+='<div class="modal-footer-content"><div class="small-details rtl-allowed">',o.utils.isCodeCombat?t+='<span class="spr" data-i18n="signup.login_switch"></span><a class="login-link" href="#"><span data-i18n="signup.sign_in"></span></a>':t+='<span class="spr" data-i18n="login.already_have_account1"></span><a class="login-link" data-i18n="signup.sign_in" href="#"></a>',t+="</div></div>")},t+="\x3c!-- this allows the extended templates to add class to .modal-dialog--\x3e";let i="",a=o.utils&&o.utils.isOzaria;const s=o.signupState.get("path"),c=o.signupState.get("screen");switch(i=[["oz-vs-coco","choose-account-type"].includes(c)||"segment-check"===c&&"student"===s?"ozaria-modal":"","individual"===s?"path-individual":""].filter(e).join(" "),t=t+"<div"+r.attr("class",r.classes(["modal-dialog",i],[!1,!0]),!1,!0)+"><div"+r.attr("class",r.classes(["modal-content","style-flat",a?"style-ozaria":""],[!1,!1,!0]),!1,!0)+' id="modal-base-flat">',o.utils.isCodeCombat&&["oz-vs-coco","choose-account-type"].includes(o.signupState.get("screen"))?n["ozaria-close-button"]():o.utils.isCodeCombat&&"segment-check"===o.signupState.get("screen")&&"student"===o.signupState.get("path")?(t=t+"<
2div"+r.attr("class",r.classes(["modal-header","ozaria-modal-header",o.signupState.get("path")],[!1,!1,!0]),!1,!0)+"><div>",n["modal-header-content"](),t+="</div></div>",n["ozaria-close-button"]()):(t=t+"<div"+r.attr("class",r.classes(["modal-header",o.signupState.get("path")],[!1,!0]),!1,!0)+'><span class="glyphicon glyphicon-remove button close" data-dismiss="modal" aria-hidden="true"></span>',n["modal-header-content"](),t+="</div>"),o.signupState.get("screen")){case"choose-account-type":t+='<div id="choose-account-type-view"></div>';break;case"segment-check":t=t+"<div"+r.attr("class",r.classes([o.signupState.get("path")],[!0]),!1,!0)+' id="segment-check-view"></div>';break;case"eu-confirmation":t+='<div id="eu-confirmation-view"></div>';break;case"oz-vs-coco":t+='<div id="oz-vs-coco-view"></div>';break;case"basic-info":t+='<div id="basic-info-view"></div>';break;case"coppa-deny":t+='<div id="coppa-deny-view"></div>';break;case"sso-already-exists":t+='<div id="single-sign-on-already-exists-view"></div>';break;case"sso-confirm":t+='<div id="single-sign-on-confirm-view"></div>';break;case"extras":t+='<div id="extras-view"></div>';break;case"confirmation":t+='<div id="confirmation-view"></div>';break;case"teacher-signup-component":t+='<div id="teacher-signup-component"></div>'}o.utils.isCodeCombat&&"choose-account-type"===o.signupState.get("screen")||(t=t+"<div"+r.attr("class",r.classes(["modal-footer",o.utils.isCodeCombat?`screen-${o.signupState.get("screen")} path-${o.signupState.get("path")}`:o.signupState.get("path")],[!1,!0]),!1,!0)+">",n["modal-footer-content"](),t+="</div>"),t+="</div></div>"}.call(this,"Boolean"in o?o.Boolean:"undefined"!=typeof Boolean?Boolean:void 0,"view"in o?o.view:"undefined"!=typeof view?view:void 0),t}},854050:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t="",n=e||{};return function(e){switch(t=t+'<form class="modal-body eu-confirmation"><div class="modal-body-content"><div class="checkbox"><label class="control-label" for="eu-confirmation-checkbox"><input id="eu-confirmation-checkbox" type="checkbox" value=""'+r.attr("checked",e.state.get("euConfirmationGranted"),!0,!0)+'><span data-i18n="signup.eu_confirmation"></span></label></div><p><em><a href="/privacy#place-of-processing" target="_blank" data-i18n="signup.eu_confirmation_place_of_processing"></a></em></p><br><br>',e.signupState.get("path")){case"student":t+='<p class="small" data-i18n="signup.eu_confirmation_student"></p>';break;case"individual":t+='<p class="small" data-i18n="signup.eu_confirmation_individual"> </p>'}t=t+"</div>\x3c!-- In reverse order for tabbing purposes--\x3e<div"+r.attr("class",r.classes(["history-nav-buttons","individual"===e.signupState.get("path")?"individual":void 0],[!1,!0]),!1,!0)+'><button class="forward-button btn btn-lg btn-navy" type="button"'+r.attr("disabled",!e.state.get("euConfirmationGranted"),!0,!0)+'><span data-i18n="common.continue"></span></button><button class="back-button btn btn-lg btn-navy-alt" type="button"><span data-i18n="common.back"></span></button></div></form>'}.call(this,"view"in n?n.view:"undefined"!=typeof view?view:void 0),t}},121835:(e,t,n)=>{n(477055),e.exports=function(e){return""+'<div class="modal-body"><div class="modal-body-content"><div class="text-center"><h4 data-i18n="signup.select_your_starting_hero"></h4><div class="small" data-i18n="signup.you_can_always_change_your_hero_later"></div></div><div id="hero-select-view"></div></div>\x3c!-- In reverse order for tabbing purposes--\x3e<div class="history-nav-buttons"><button class="next-button btn btn-lg btn-navy" type="button"><span data-i18n="common.next"></span></button></div></div>'}},137479:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="";return n+'<div class="form-group nces-search-input-component" v-bind:class="{ \'has-error\': showRequired && !value }"><span class="control-label">{{ label }}'+r.escape(null==(t=" ")?"":t)+'<strong v-if="showRequired && !value">{{ $t("common.required_field") }}</strong></span><span class="control-label optional-text" v-if="isOptional">'+(null==(t=" ")?"":t)+'({{ $t("signup.optional") }})</span><input class="form-control" v-bind:name="name" v-bind:placeholder="placeholder" v-model="value" v-on:keyup.up="navSearchUp" v-on:keyup.down="navSearchDown" v-on:keyup.enter="navSearchChoose" v-on:keyup.esc.stop="navSearchClear" v-on:blur
2="onBlur" v-on:input="onInput" autocomplete="off"><div class="suggestion-wrapper"><div class="list-group"><div class="list-group-item" v-for="(suggestion, index) in suggestions" v-bind:class="{ active: index === suggestionIndex }" v-on:mouseover="suggestionHover(index)" v-on:click="navSearchChoose" v-on:mousedown.prevent=""><div class="school" v-if="displayKey === \'name\'" v-html="suggestion._highlightResult.name.value"></div><div class="district"><span v-html="suggestion._highlightResult.district.value">,</span>'+r.escape(null==(t=" ")?"":t)+'<span v-if="suggestion._highlightResult.city" v-html="suggestion._highlightResult.city.value"></span>'+r.escape(null==(t=" ")?"":t)+'<span v-html="suggestion._highlightResult.state.value"></span></div></div></div></div></div>'}},803492:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e){n=n+'<div class="school-info-panel"><div class="container-fluid text-left"><div class="row m-y-2"><div class="col-xs-offset-2 col-xs-8"><nces-search-input v-bind:label="$t("teachers_quote.school_name")" v-on:navSearchChoose="applySuggestion" name="organization" displayKey="name" v-bind:initialValue="organization" v-on:updateValue="updateValue"></nces-search-input></div></div><div class="row m-y-2"><div class="col-xs-offset-2 col-xs-4"><nces-search-input v-bind:label="$t("teachers_quote.district_name")" v-on:navSearchChoose="applySuggestion" name="district" displayKey="district" v-bind:initialValue="district" v-bind:showRequired="showRequired" v-on:updateValue="updateValue"></nces-search-input></div><div class="col-xs-4"><div class="form-group" v-bind:class="{ \'has-error\': showRequired && !city }"><span class="control-label">{{ $t("teachers_quote.city") }}'+r.escape(null==(t=" ")?"":t)+'<strong v-if="showRequired && !city">{{ $t("common.required_field") }}</strong></span><input class="form-control" name="city" v-model="city"></div></div></div><div class="row m-y-2">',e.addressesIncludeAdministrativeRegion()&&(n=n+'<div class="col-xs-offset-2 col-xs-4"><div class="form-group" v-bind:class="{ \'has-error\': showRequired && !state }"><span class="control-label">{{ $t("teachers_quote.state") }}'+r.escape(null==(t=" ")?"":t)+'<strong v-if="showRequired && !state">{{ $t("common.required_field") }}</strong></span><select class="form-control state" name="state" v-model="state" v-if="country == \'United States\'"><option v-for="state in usaStates" v-bind:value="state.abbreviation">{{ state.abbreviation }}'+r.escape(null==(t=", ")?"":t)+'{{ state.name }}</option></select><input class="form-control" name="state" v-model="state" v-else></div></div>'),n=n+"<div"+r.attr("class",r.classes(["col-xs-4",e.addressesIncludeAdministrativeRegion()?"":"col-xs-offset-2"],[!1,!0]),!1,!0)+'><div class="form-group" v-bind:class="{ \'has-error\': showRequired && !country }"><span class="control-label">{{ $t("teachers_quote.country") }}'+r.escape(null==(t=" ")?"":t)+'<strong v-if="showRequired && !country">{{ $t("common.required_field") }}</strong></span><select class="form-control country" name="country" v-model="country" @change="onChangeCountry"><option v-for="country in countriesList" v-bind:value="country">{{ countryMap[country] ? countryMap[country]: country }}</option></select></div></div></div></div>\x3c!-- In reverse order for tabbing purposes--\x3e<div class="history-nav-buttons"><button class="next-button btn btn-lg btn-navy" id="create-account-btn" v-on:click="clickContinue">{{ $t("common.next") }}</button><button class="back-button btn btn-lg btn-navy-alt" type="button" v-on:click="clickBack">{{ $t("common.back") }}</button></div></div>'}.call(this,"me"in o?o.me:"undefined"!=typeof me?me:void 0),n}},84272:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o={},i=e||{};return function(e,i,a,s){switch(o["coco-student-section"]=t=function(){this&&this.block,this&&this.attributes,n=n+'<div class="modal-student-contents"><div class="class-code-section"><p data-i18n="signup.yes_i_have_classcode"></p><label for="classCode" data-i18n="signup.enter_it_here"></label><div class="class-code-input-group form-group"><div class="input-with-glyph"><input class="class-code-input" name="classCode"'+r.attr("value",s.signupState.get("classCode"),!0,!0)+'><div class="render">',i.isEmpty(s.signupState.get("classCode"))||(a.get("classCodeValid")?n+='<span class="glyphicon glyphicon-ok-circle class-code-valid-icon"></span>':n+='<span class="glyphicon glyphicon-remove-circle class-code-valid-icon"></span>'),n=n+'</div></div><button class="primary-oz-button next-button" type="submit"'+r.attr("disabled",!a.get("classCodeValid"),!0,
2!0)+'><span data-i18n="common.continue"></span></button></div><div class="render">',a.get("classCodeValid")?(n=n+'<span class="spr" data-i18n="signup.about_to_join"></span><span class="spr">'+r.escape(null==(t=s.classroom.get("name"))?"":t)+"</span>",(s.classroom.owner.get("firstName")||s.classroom.owner.get("name"))&&(n+='<span class="spr" data-i18n="signup.with"></span>',s.classroom.owner.get("firstName")?n=n+"<span>"+r.escape(null==(t=s.classroom.owner.get("firstName")+" "+s.classroom.owner.get("lastName"))?"":t)+"</span>":s.classroom.owner.get("name")&&(n=n+"<span>"+r.escape(null==(t=s.classroom.owner.get("name"))?"":t)+"</span>"))):i.isEmpty(s.signupState.get("classCode"))||(n+='<div class="ask-teacher">',a.get("codeExpired")?n+='<span class="spr" data-i18n="signup.activation_code_used"></span>':n+='<span class="spr" data-i18n="signup.classroom_not_found"></span><span class="spr" data-i18n="signup.ask_teacher_2"></span><a class="individual-path-button"><span data-i18n="signup.ask_teacher_3"></span></a><span class="spl" data-i18n="signup.ask_teacher_4"></span>',n+="</div>"),n+='</div></div><div class="divider-line"></div><div class="play-now-section"><div><p data-i18n="signup.want_to_play_codecombat"></p></div><div><button class="primary-oz-button play-now"><span data-i18n="new_home.play_now"></span></button></div></div></div>'},o["ozar-student-section"]=t=function(){this&&this.block,this&&this.attributes,n=n+'<span data-i18n="signup.enter_class_code"></span><div class="class-code-input-group form-group"><input class="class-code-input" name="classCode"'+r.attr("value",s.signupState.get("classCode"),!0,!0)+' spellcheck="false"><div class="render">',a.get("doneFetching")&&(a.get("classCodeValid")?n+='<span class="glyphicon glyphicon-ok-circle class-code-valid-icon"></span>':n+='<span class="glyphicon glyphicon-remove-circle class-code-valid-icon"></span>'),n+='</div></div><div class="render">',i.isEmpty(s.signupState.get("classCode"))?n+='<p class="medium-gray"><span data-i18n="signup.ask_teacher_1"></span></p>':a.get("doneFetching")?a.get("classCodeValid")?n=n+'<p class="medium-gray"><p class="large-gray classroom-name">'+r.escape(null==(t=a.get("classroomName"))?"":t)+'</p><br><p class="medium-gray teacher-name">'+r.escape(null==(t=a.get("ownerName"))?"":t)+"</p></p>":n+='<p class="medium-gray" data-i18n="signup.classroom_not_found"></p>':n+='<p class="large-gray classroom-name" data-i18n="signup.looking_for_classroom"></p>',n+="</div>"},n+='<form class="modal-body segment-check"><div class="modal-body-content">',s.signupState.get("path")){case"student":s.utils.isCodeCombat?o["coco-student-section"]():o["ozar-student-section"]();break;case"teacher":n+="\x3c!-- TODO--\x3e";break;case"individual":n+='<div class="individual-flow-panel"><span class="sr-only" data-i18n="signup.step_1_of_2"></span><div class="individual-flow-progress" aria-hidden="true"><div class="individual-flow-progress-step active"></div><div class="individual-flow-progress-step"></div></div><div class="individual-flow-card">',s.signupState.get("subModalContinue")?n+='<div class="individual-flow-note" data-i18n="signup.sign_in_to_continue"></div>':s.utils.isCodeCombat&&s.signupState.get("accountRequiredMessage")&&(n=n+'<div class="individual-flow-note">'+r.escape(null==(t=s.signupState.get("accountRequiredMessage"))?"":t)+"</div>"),n+='<div class="individual-flow-heading"><h4 data-i18n="signup.enter_birthdate"></h4><p class="parent_birthdate" data-i18n="signup.parent_use_birthdate"></p></div><div class="birthday-form-group form-group individual-birthday-form"><div class="birthday-select-grid"><label class="sr-only" for="birthday-month-input" data-i18n="calendar.month"></label><select class="input-large form-control" id="birthday-month-input" name="birthdayMonth"><option value="" data-i18n="calendar.month"></option>',function(){var e=["january","february","march","april","may","june","july","august","september","october","november","december"];if("number"==typeof e.length)for(var t=0,o=e.length;t<o;t++){var i=e[t],a=t+1;n=n+"<option"+(r.attr("data-i18n","calendar."+i,!0,!0)+r.attr("value",a,!0,!0)+r.attr("selected",a===s.signupState.get("birthdayMonth"),!0,!0))+"></option>"}else for(var t in o=0,e)o++,i=e[t],a=t+1,n=n+"<option"+(r.attr("data-i18n","calendar."+i,!0,!0)+r.attr("value",a,!0,!0)+r.attr("selected",a===s.signupState.get("birthdayMonth"),!0,!0))+"></option>"}.call(this),n+='</select><label class="sr-only" for="birthday-day-input" data-i18n="calendar.day"></label><select class="input-large form-control" id="birthday-day-input" name="birthdayDay"><option value="" data-i18n="calendar.day"></option>',function(){var e=i.range(1,32);
2if("number"==typeof e.length)for(var o=0,a=e.length;o<a;o++){var c=e[o];n=n+"<option"+r.attr("selected",c===s.signupState.get("birthdayDay"),!0,!0)+">"+r.escape(null==(t=c)?"":t)+"</option>"}else for(var o in a=0,e)a++,c=e[o],n=n+"<option"+r.attr("selected",c===s.signupState.get("birthdayDay"),!0,!0)+">"+r.escape(null==(t=c)?"":t)+"</option>"}.call(this),n+='</select><label class="sr-only" for="birthday-year-input" data-i18n="calendar.year"></label><select class="input-large form-control" id="birthday-year-input" name="birthdayYear"><option value="" data-i18n="calendar.year"></option>';var c=(new e).getFullYear();(function(){var e=i.range(c,c-100,-1);if("number"==typeof e.length)for(var o=0,a=e.length;o<a;o++){var u=e[o];n=n+"<option"+r.attr("selected",u===s.signupState.get("birthdayYear"),!0,!0)+">"+r.escape(null==(t=u)?"":t)+"</option>"}else for(var o in a=0,e)a++,u=e[o],n=n+"<option"+r.attr("selected",u===s.signupState.get("birthdayYear"),!0,!0)+">"+r.escape(null==(t=u)?"":t)+"</option>"}).call(this),n+='</select></div></div><button class="under-13-button" type="button" data-i18n="signup.im_under_13"></button></div></div>';break;default:n=n+"<p"+r.attr("class",r.classes([s.utils.isOzaria?"medium-gray":""],[!0]),!1,!0)+"><span>Sign-up error, please contact</span>"+r.escape(null==(t=" ")?"":t)+'<a href="mailto:[email protected]">[email protected]</a>.</p>'}n+="</div>",(s.utils.isOzaria||"student"!=s.signupState.get("path"))&&(n=n+"\x3c!-- In reverse order for tabbing purposes--\x3e<div"+r.attr("class",r.classes(["history-nav-buttons","individual"===s.signupState.get("path")?"individual":void 0],[!1,!0]),!1,!0)+"><button"+r.attr("class",r.classes(["next-button","btn","btn-lg",s.utils.isCodeCombat?"btn-navy":"ozaria-primary-button"],[!1,!1,!1,!0]),!1,!0)+' type="submit"'+r.attr("disabled","individual"===s.signupState.get("path")&&!a.get("birthdayComplete")||void 0,!0,!0)+"><span"+r.attr("data-i18n",s.utils.isCodeCombat?"common.continue":"common.next",!0,!0)+"></span></button>",s.signupState.get("subModalContinue")||(n=n+"<button"+r.attr("class",r.classes(["back-to-account-type","btn","btn-lg",s.utils.isCodeCombat?"btn-navy-alt":"ozaria-secondary-button"],[!1,!1,!1,!0]),!1,!0)+' type="button"><span data-i18n="common.back"></span></button>'),n+="</div>"),n+="</form>"}.call(this,"Date"in i?i.Date:"undefined"!=typeof Date?Date:void 0,"_"in i?i._:"undefined"!=typeof _?_:void 0,"state"in i?i.state:"undefined"!=typeof state?state:void 0,"view"in i?i.view:"undefined"!=typeof view?view:void 0),n}},876363:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e){n=n+'<div class="setup-account-panel text-left"><div class="p-a-3"><div class="text-center" v-if="saving">{{ $t("common.saving") }}</div><div class="text-center" v-else-if="error">{{ $t("loading_error.error") }}'+r.escape(null==(t=": ")?"":t)+'{{ error }}</div><div v-else><h3 class="text-center"'+r.attr(":class",{"text-pitch":!e},!0,!0)+'>{{ $t("signup.teacher_ready_to_create_class") }}</h3><p class="m-t-3"'+r.attr(":class",{"medium-gray":!e},!0,!0)+'>{{ $t("signup." + (isCodeCombat ? "teacher_students_can_start_now_coco" : "teacher_students_can_start_now_ozar")) }}</p><ol><li'+r.attr(":class",{"medium-gray":!e},!0,!0)+'>{{ $t("signup.teacher_list_create_class") }}</li><li'+r.attr(":class",{"medium-gray":!e},!0,!0)+'>{{ $t("signup.teacher_list_add_students") }}</li><li'+r.attr(":class",{"medium-gray":!e},!0,!0)+'><span>{{ $t("signup.teacher_list_resource_hub_1") }}</span>'+r.escape(null==(t=" ")?"":t)+"<a :href=\"'/teachers/' + (isCodeCombat ? 'courses' : 'units')\">{{ $t(\"signup.teacher_list_resource_hub_2_\" + (isCodeCombat ? 'coco': 'ozar')) }}</a>"+r.escape(null==(t=" ")?"":t)+'<span>{{ $t("signup.teacher_list_resource_hub_3") }}</span>'+r.escape(null==(t=" ")?"":t)+'<a href="/teachers/resources">{{ $t("signup.teacher_list_resource_hub_4") }}</a>'+r.escape(null==(t=" ")?"":t)+'<span>{{ $t("signup.teacher_list_resource_hub_5") }}</span></li></ol><span v-if="isCodeCombat" v-html="$t(\'signup.teacher_additional_questions\', {supportEmail: supportEmail, interpolation: { escapeValue: false }})"></span>
2<p class="medium-gray" v-else v-html="$t(\'signup.teacher_additional_questions\', {supportEmail: supportEmail})"></p></div><br><div class="text-center"><input id="subscribe-input" type="checkbox" name="subscribe" v-bind:checked="!inEU"><span class="spl" v-if="isCodeCombat">{{ $t("signup.teacher_email_announcements") }}</span><p class="medium-gray subscribe-text" v-else>{{ $t("signup.teacher_email_announcements") }}</p></div></div><div class="history-nav-buttons"><button class="back-button btn btn-lg" type="button" v-on:click="clickBack" v-if="error" :class="isCodeCombat ? \'btn-navy-alt\' : \'ozaria-secondary-button\'">{{ $t("common.back") }}</button><button class="next-button btn btn-lg" v-on:click="clickFinish" v-else-if="!saving" :class="isCodeCombat ? \'btn-navy\' : \'ozaria-primary-button\'">{{ $t("signup.finish") }}</button></div></div>'}.call(this,"isCodeCombat"in o?o.isCodeCombat:"undefined"!=typeof isCodeCombat?isCodeCombat:void 0),n}},535172:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e){n+='<div class="modal-body"><div class="modal-body-content">',e.signupState.get("ssoUsed")&&(n=n+'<h4><span data-i18n="signup.account_exists"></span></h4><div class="small"><b><span>'+r.escape(null==(t=e.signupState.get("email"))?"":t)+'</span></b></div><div class="hr-text"><hr><span data-i18n="common.next"></span></div><button class="login-link btn btn-lg btn-navy"><span data-i18n="login.log_in"></span></button>'),n+='</div><div class="history-nav-buttons"><button class="back-button btn btn-lg btn-navy-alt" type="button"><span data-i18n="common.back"></span></button></div></div>'}.call(this,"view"in o?o.view:"undefined"!=typeof view?view:void 0),n}},470074:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e){n+='<form class="modal-body" id="basic-info-form"><div class="modal-body-content"><h4><span data-i18n="signup.sso_connected"></span></h4><div class="small m-y-1">';var o=e.signupState.get("ssoUsed");"facebook"===o&&(n+='<img src="/images/pages/modal/auth/facebook_small.png">'),"gplus"===o&&(n+='<img src="/images/pages/modal/auth/gplus_small.png">'),n=n+'<b class="m-x-1"><span>'+r.escape(null==(t=e.signupState.get("email"))?"":t)+'</span></b><span class="glyphicon glyphicon-ok-circle class-code-valid-icon"></span></div><div class="hr-text m-y-3"><hr></div><div class="form-container"><input class="hidden" name="email"'+r.attr("value",e.signupState.get("email"),!0,!0)+'><input class="hidden" name="name"'+r.attr("value",e.signupState.get("autoName"),!0,!0)+'><div class="form-group subscribe"><div class="row"><div class="col-xs-7 col-xs-offset-3"><div class="checkbox"><label><input id="subscribe-input" type="checkbox" name="subscribe"'+r.attr("checked","on"===e.signupState.get("signupForm").subscribe[0],!0,!0)+'><span data-i18n="signup.email_announcements"></span></label></div></div></div></div></div></div>\x3c!-- In reverse order for tabbing purposes--\x3e<div class="history-nav-buttons">',"teacher"===e.signupState.get("path")?n+='<button class="next-button btn btn-lg btn-navy" type="submit"><span data-i18n="common.next"></span></button>':e.signupState.get("subModalContinue")?n+='<button class="next-button btn btn-lg btn-navy" id="create-account-btn" type="submit"><span data-i18n="common.continue"></span></button>':n+='<button class="next-button btn btn-lg btn-navy" id="create-account-btn" type="submit"><span data-i18n="login.sign_up"></span></button>',n+='<button class="back-button btn btn-lg btn-navy-alt" type="button"><span data-i18n="common.back"></span></button></div></form>'}.call(this,"view"in o?o.view:"undefined"!=typeof view?view:void 0),n}},943952:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e){n=n+'<div class="school-info-panel text-left"><div class="row"><div class="col-xs-offset-3 col-xs-6"><div class="form-group" v-bind:class="{ \'has-error\': showRequired && !role }"><span class="control-label">{{ $t("teachers_quote.primary_role_label") }}'+r.escape(null==(t=" ")?"":t)+'<strong v-if="showRequired && !role">{{ $t("common.required_field") }}</strong></span><select class="form-control" v-model="role" name="role" ref="focus"><option value="">{{ $t("teachers_quote.primary_role_default") }}</option><template v-if="!isCodeCombat"><option value="Teacher">{{ $t("courses.teacher") }}</option><option value="Technology coordinator">{{ $t("teachers_quote.tech_coordinator") }}</option><option value="Advisor">{{ $t("teachers_quote.advisor") }}</option></template><option value="Principal">{{ $t("teachers_quote.principal") }}</option><option v-if="!isCodeCombat" value="Superintendent">{{ $t("teachers_quote.superintendent") }}</option><option value="Parent">{{ $t("teachers_quote.parent") }}</option><template v-if="isCodeCombat"><option value="Technology coordinator">{{ $t("teachers_quote.tech_coordinator") }}</option>',e.showChinaRegistration()||(n+='<option value="Teacher">{{ $t("courses.teacher") }}</option><option value="Advisor">{{ $t("teachers_quote.advisor") }}</option><option value="Superintendent">{{ $t("teachers_quote.superintendent") }}</option>'),n=n+'</template></select></div><div class="form-group" v-bind:class="{ \'has-error\': showRequired && !numStudents }"><span class="control-label">{{ $t("teachers_quote.num_students_help", { product }) }}</span><select class="form-control" v-model="numStudents" name="numStudents"><option value="">{{ $t("teachers_quote.num_students_default") }}</option><option>1-10</option><option>11-50</option><option>51-100</option><option>101-200</option><option>201-500</option><option>501-1000</option><option>1000+</option></select><strong class="help-block" v-if="showRequired && !numStudents">{{ $t("common.required_field") }}</strong></div><div class="form-group" v-if="askForPhoneNumber" v-bind:class="{ \'has-error\': (phoneNumberRequired && showRequired && (!phoneNumber || !validPhoneNumber)) || (phoneNumber && !validPhoneNumber) }"><span class="control-label">{{ $t("teachers_quote.phone_number") }}'+r.escape(null==(t=" ")?"":t)+'<span v-if="phoneNumberRequired"><strong v-if="showRequired && !phoneNumber">{{ $t("common.required_field") }}</strong></span><span class="spl text-muted optional-text" v-else>{{ $t("signup.optional") }}</span></span><input class="form-control" v-bind:placeholder="$t(\'teachers_quote.phone_number_help\')" v-model="phoneNumber" name="phoneNumber"></div><div class="form-group"><span class="control-label"><span>{{ $t("teachers_quote.referrer") }}</span><span class="spl text-muted optional-text">{{ $t("signup.optional") }}</span></span><select class="form-control" v-model="referrer" name="referrer"><option value="">{{ $t("teachers_quote.referrer_default") }}</option><option value="Conference (e.g. ISTE)">{{ $t("teachers_quote.referrer_conference") }}</option><option value="Code.org/Hour of Code">{{ $t("teachers_quote.referrer_hoc") }}</option><option value="A teacher">{{ $t("teachers_quote.referrer_teacher") }}</option><option value="An administrator">{{ $t("teachers_quote.referrer_admin") }}</option><option value="A student">{{ $t("teachers_quote.referrer_student") }}</option><option value="Professional trainings/workshops">{{ $t("teachers_quote.referrer_pd") }}</option><option value="Google">{{ $t("teachers_quote.referrer_web") }}</option><option value="Other">{{ $t("teachers_quote.referrer_other") }}</option></select></div><span class="control-label"><span>{{ $t("teachers_quote.anything_else", { product }) }}</span><span class="spl text-muted optional-text">{{ $t("signup.optional") }}</span></span><textarea class="form-control m-b-2" rows="2" v-model="notes" name="notes" v-bind:placeholder="$t(\'teachers_quote.anything_else_helper\')"></textarea></div></div>\x3c!-- In reverse order for tabbing purposes--\x3e<div class="history-nav-buttons"><button class="next-button btn btn-lg" v-on:click="clickContinue" :class="isCodeCombat? \'btn-navy\' : \'ozaria-primary-button\'">{{ $t(isCodeCombat ? "login.sign_up" : "common.next") }}</button><button class="back-button btn btn-lg" type="button" v-on:click="clickBack" :class="isCodeCombat ? \'btn-navy-alt\' : \'ozaria-secondary-button\'">{{ $t("common.back") }}</button></div></div>'}.call(this,"me"in o?o.me:"undefined"!=typeof me?me:void 0),n}},711997:(e,t,n)=>{n(477055),e.exports=function(e){return""+'<component class="modal-body teacher-panel" :is="panel" v-on:continue="onContinue" v-on:back="onBack" :trial-request-attributes="trialRequestAttributes"></component>'}}
2,698874:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e,o,i){n=n+'<div class="modal fade" id="modal-error"><div class="modal-dialog"><div class="modal-header"><div class="button close" type="button" data-dismiss="modal" aria-hidden="true">×</div><h3>Error '+r.escape(null==(t=o)?"":t)+": "+r.escape(null==(t=i)?"":t)+'</h3></div><div class="modal-body"><p>'+r.escape(null==(t=e)?"":t)+"</p></div></div></div>"}.call(this,"message"in o?o.message:"undefined"!=typeof message?message:void 0,"status"in o?o.status:"undefined"!=typeof status?status:void 0,"statusText"in o?o.statusText:"undefined"!=typeof statusText?statusText:void 0),n}},93506:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o={},i=e||{};return function(e,i){o.heroOption=t=function(o){this&&this.block,this&&this.attributes;var a,s=o.original;a=e.get("selectedHeroOriginal")===s?"selected":i.options.showCurrentHero&&e.get("currentHeroOriginal")===s?"current":"",n=n+"<div"+(r.attr("class",r.classes(["hero-option",a],[!1,!0]),!1,!0)+r.attr("data-hero-original",s,!0,!0))+'><div class="hero-avatar"><img'+r.attr("src",i.getPortraitURL(o),!0,!0)+'></div><div class="text-h5 hero-name"><span>'+r.escape(null==(t=i.getHeroShortName(o))?"":t)+"</span></div></div>"},n+='<div class="hero-list">',i.heroes&&function(){var e=i.heroes;if("number"==typeof e.length)for(var t=0,n=e.length;t<n;t++)"Warrior"===(r=e[t]).heroClass&&o.heroOption(r);else for(var t in n=0,e){var r;n++,"Warrior"===(r=e[t]).heroClass&&o.heroOption(r)}}.call(this),n+="</div>"}.call(this,"state"in i?i.state:"undefined"!=typeof state?state:void 0,"view"in i?i.view:"undefined"!=typeof view?view:void 0),n}},171341:(e,t,n)=>{var r=n(477055);e.exports=function(e){var t,n="",o=e||{};return function(e,o,i,a){n+='\x3c!-- TODO: this is the same as app/templates/core/components/page-errors.pug, but original Backbone version; can we merge them?--\x3e<div class="text-center" id="loading-error">',i?401===i.status?n+='<h1><span class="spr">401:</span><span data-i18n="loading_error.login_required"></span></h1><p data-i18n="loading_error.login_required_desc"></p><button class="login-btn btn btn-primary" data-i18n="login.log_in"></button><button class="btn btn-primary" id="create-account-btn" data-i18n="login.sign_up"></button>\x3c!-- 402 currently not in use. TODO: Set it up--\x3e':402===i.status?n+="<h2>402: Payment Required</h2>":403===i.status?(n+='<h1><span class="spr">403:</span><span data-i18n="loading_error.forbidden">Forbidden</span></h1><p data-i18n="loading_error.forbidden_desc"></p>\x3c!-- this should make no diff... but sometimes the server returns 403 when it should return 401--\x3e',a.isAnonymous()||(n+='<button class="btn btn-primary" id="logout-btn" data-i18n="login.log_out"></button>')):404===i.status?n+='<h1><span class="spr">404:</span><span data-i18n="loading_error.not_found"></span></h1><p data-i18n="loading_error.not_found_desc"></p>':i.status?(408===i.status?n+='<h1><span class="spr">408:</span><span data-i18n="loading_error.timeout"></span></h1>':i.status>=500&&i.status<=599?n=n+'<h1><span class="spr">'+r.escape(null==(t=i.status)?"":t)+':</span><span data-i18n="loading_error.server_error"></span></h1>':n+='<h1 data-i18n="loading_error.unknown"></h1>',n+='<p data-i18n="loading_error.general_desc"></p>'):n+='<h1 data-i18n="loading_error.connection_failure"></h1><p data-i18n="loading_error.connection_failure_desc"></p>':n+='<h1 data-i18n="loading_error.unknown"></h1>',n=n+'<p><a href="/" data-i18n="nav.home"></a><span>'+r.escape(null==(t=" | ")?"":t)+'</span><a href="/about" data-i18n="nav.about"></a>',o.china||(n=n+"<span>"+r.escape(null==(t=" | ")?"":t)+'</span><a href="https://codecombat.zendesk.com/hc/en-us" target="_blank" data-i18n="contact.faq"></a>'),a.isStudent()||(n=n+"<span>"+r.escape(null==(t=" | ")?"":t)+'</span><a class="contact-modal" data-i18n="nav.contact"></a>'),n+="</p>";var s=e.floor(3*e.random())+1;n=n+'<img id="not-found-img"'+r.attr("src","/images/pages/not_found/404_"+s+".png",!0,!0)+"></div>"}.call(this,"Math"in o?o.Math:"undefined"!=typeof Math?Math:void 0,"features"in o?o.features:"undefined"!=typeof features?features:void 0,"jqxhr"in o?o.jqxhr:"undefined"!=typeof jqxhr?jqxhr:void 0,"me"in o?o.me:"undefined"!=typeof me?me:void 0),n}},911071:(e,t,n)=>{n(477055),e.exports=function(e){return""+'<div class="loading-screen loading-container"><h1 data-i18n="common.loading">Loading...</h1><div class="progress"><div class="progress-bar"></div></div><div class="errors"></div></div>'}},997586:(e,t,n)=>{n(477055),e.exports=function(e){var t,n="",r=e||{};return function(e){n+='<div class="modal-dialog game"><div class="background-wrapper"><div class="modal-content"><div class="modal-header">',e.closeButton&&(n+='<div class="button close" type="button" data-dismiss="modal" aria-hidden="true">×</div>'),e.options.headerContent&&(n=n+"<h3>"+(null==(t=e.options.headerContent)?"":t)+"</h3>"),n+='</div><div class="modal-body">',e.options.bodyContent&&(n=n+"<div>"+(null==(t=e.options.bodyContent)?"":t)+"</div>"),n+='</div><div class="modal-body wait secret"><h3>Reticulating Splines...</h3><div class="progress progress-striped active"><div class="progress-bar"></div></div></div><div class="modal-footer"><button class="btn btn-primary" type="button" data-dismiss="modal" aria-hidden="true" data-i18n="modal.okay">
2Okay</button></div></div></div></div>'}.call(this,"view"in r?r.view:"undefined"!=typeof view?view:void 0),n}},97625:(e,t,n)=>{n(477055),e.exports=function(e){return""+'<div id="modal-base-flat"></div>'}},136712:(e,t,n)=>{n(477055),e.exports=function(e){var t="",n=e||{};return function(e){t+='<div class="modal-dialog game"><div class="background-wrapper"><div class="modal-content"><div class="modal-header">',e.closeButton&&(t+='<div class="button close" type="button" data-dismiss="modal" aria-hidden="true">×</div>'),t+='<h3 data-i18n="recover.recover_account_title">Recover Account</h3></div><div class="modal-body"><div class="form"><div class="form-group"><label class="control-label" for="recover-email" data-i18n="general.email">Email </label><input class="input-large form-control" id="recover-email" name="email" type="email"></div></div></div><div class="modal-body wait secret"><h3 data-i18n="common.sending">Sending...</h3><div class="progress progress-striped active"><div class="progress-bar"></div></div></div><div class="modal-footer"><button class="btn btn-primary btn-large" id="recover-button" data-i18n="recover.send_password">Send Recovery Password</button></div></div></div></div>'}.call(this,"view"in n?n.view:"undefined"!=typeof view?view:void 0),t}},685115:(e,t,n)=>{var r=n(619755),o=n(477055);e.exports=function(e){var t,n="",i={},a=e||{};return function(e,r,a,s,c){if(i.price=t=function(e,t,i){this&&this.block,this&&this.attributes;var a=t.priceStringNoSymbol();a%1==0&&(a=r.floor(a));var s=t.adjustedPriceStringNoSymbol();s%1==0&&(s=r.floor(s)),n=t.get("formattedAmount")?n+'<div class="price"'+o.attr("data-i18n",i,!0,!0)+o.attr("data-i18n-options",{price:t.get("formattedAmount")},!0,!0)+"></div>":a==s?n+'<div class="price"'+o.attr("data-i18n",e,!0,!0)+o.attr("data-i18n-options",{price:a},!0,!0)+"></div>":c.basicCoupon&&"once"===c.basicCoupon.duration?n+'<div class="price strike-price"'+o.attr("data-i18n",e,!0,!0)+o.attr("data-i18n-options",{price:a},!0,!0)+'></div><div class="new-price" data-i18n="subscribe.first_month_price"'+o.attr("data-i18n-options",{price:s},!0,!0)+"></div>":n+'<div><span class="old-price"'+o.attr("data-i18n",e,!0,!0)+o.attr("data-i18n-options",{price:a},!0,!0)+'></span><span class="price"'+o.attr("data-i18n",e,!0,!0)+o.attr("data-i18n-options",{price:s},!0,!0)+"></span></div>"},n+='<div class="modal-dialog"><div class="modal-content">',"purchasing"===c.state)n+='<div class="alert alert-info" data-i18n="buy_gems.purchasing"></div>';else if("retrying"===c.state)n+='<div class="alert alert-danger" id="retrying-alert" data-i18n="buy_gems.retrying"></div>';else{n+='<img id="subscribe-background" src="/images/pages/play/modal/subscribe-background-blank.png"><h1 data-i18n="subscribe.subscribe_to_premium"></h1><div id="close-modal"><span class="glyphicon glyphicon-remove"></span></div><div class="paper-area"><div class="container-fluid"><div class="row"><div class="col-xs-5 option-col col-xs-offset-1"><img src="/images/pages/home/anya-and-nando-pet.webp"></div><div class="col-xs-6"><ul class="features-list"><li data-i18n="subscribe.feature_products"></li><li data-i18n="subscribe.feature_heroes"></li><li data-i18n="subscribe.feature_learn"></li>',c.basicProduct&&(n=n+'<li data-i18n="subscribe.feature_gems"'+o.attr("data-i18n-options",{gems:c.basicProduct.get("gems").toLocaleString(),gems12:(12*c.basicProduct.get("gems")).toLocaleString()},!0,!0)+"></li>"),n+='<li data-i18n="subscribe.feature_ai_level_bot"></li></ul></div></div></div><hr>',c.lifetimeProduct&&(n+='<div class="short-row row">',c.basicProduct&&!c.hideMonthlySub?n+='<div class="col-xs-5 option-col col-xs-offset-1"></div><div class="option-col .col-xs-5"><div class="option-header best-deal" data-i18n="subscribe.best_deal"></div></div>':n+='<div class="option-col .col-xs-12"><div class="option-header best-deal" data-i18n="subscribe.best_deal"></div></div>',n+="</div>"),n+='<div class="row">';var u=".col-xs-5";c.basicProduct&&!c.hideMonthlySub?(n+='<div class="col-xs-5 option-col col-xs-offset-1">',i.price("subscribe.month_price",c.basicProduct,"subscribe.month_price_without_currency"),n+='<div class="option-header price-subtext text-center" data-i18n="subscribe.stripe_description"></div><button class="btn btn-lg btn-illustrated purchase-button"><span class="buy-now-text" data-i18n="subscribe.buy_now"></span><span class="buy-lock-icon">🔒</span></button></div>'):u=".col-xs-12",c.basicProductAnnual?(n=n+"<div"+o.attr("class",o.classes(["option-col",u],[!1,!0]),!1,!0)+">",i.price("subscribe.year_price",c.basicProductAnnual,"subscribe.year_price_without_currency"),n+='<div class="option-header price-subtext text-center" data-i18n="subscribe.year_subscription"></div>',"PayPal"===c.paymentProcessor?n+='<div id="paypal-button-container"></div>':n+='<button class="stripe-annual-button btn btn-lg btn-illustrated"><span class="buy-now-text" data-i18n="subscribe.buy_now"></span><span class="buy-lock-icon">🔒</span></button>',n+="</div>"):c.lifetimeProduct&&(n=n+"<div"+o.attr("class",o.classes(["option-col",u],[!1,!0]),!1,!0)+">",i.price("subscribe.lifetime_price",c.lifetimeProduct,"subscribe.lifetime_price"),n+='<div class="option-header price-subtext text-center" data-i18n="subscribe.lifetime"></div>',"PayPal"===c.paymentProcessor?n+='<div id="paypal-button-container"></div>':n+='<button class="stripe-lifetime-button btn btn-lg btn-illustrated"><span class="buy-now-text" data-i18n="subscribe.buy_now"></span><span class="buy-lock-icon">🔒</span></button>',n+="</div>"),n+="</div>",c.isParentHomeAccount&&!c.purchasingForId&&(n+='<div class="parent-account text-center"><p class="warning-blurb" data-i18n="subscribe.sure_buy_as_parent"></p></div>'),a.chinaHome&&!s.isAnonymous()&&(n=n+'<div class="row text-center">
2'+(null==(t=e.i18n.t("subscribe.having_activation_code"))?"":t)+"</div>"),s.get("country")&&"united-states"!=s.get("country")&&(n=n+'\x3c!-- Probably not worth including in US, so many Stripe options--\x3e<div class="support-blurb text-center"><p><span data-i18n="subscribe.support_part1"></span>'+o.escape(null==(t=" ")?"":t)+'<a href="mailto:[email protected]" data-i18n="subscribe.support_part2"></a></p></div>'),n+="</div>","declined"===c.state&&(n+='<div class="alert alert-danger alert-dismissible" id="declined-alert"><span data-i18n="buy_gems.declined"></span><button class="close" type="button" data-dismiss="alert"><span aria-hidden="true">×</span></button></div>'),"error"===c.state&&(n=n+'<div class="alert alert-danger alert-dismissible" id="error-alert"><button class="close" type="button" data-dismiss="alert"><span aria-hidden="true">×</span></button><p>'+o.escape(null==(t=c.stateMessage)?"":t)+"</p></div>"),"unknown_error"===c.state&&(n=n+'<div class="alert alert-danger alert-dismissible" id="error-alert"><button class="close" type="button" data-dismiss="alert"><span aria-hidden="true">×</span></button><p data-i18n="loading_error.unknown"></p><p>'+o.escape(null==(t=c.stateMessage)?"":t)+"</p></div>")}n+="</div></div>"}.call(this,"$"in a?a.$:void 0!==r?r:void 0,"Math"in a?a.Math:"undefined"!=typeof Math?Math:void 0,"features"in a?a.features:"undefined"!=typeof features?features:void 0,"me"in a?a.me:"undefined"!=typeof me?me:void 0,"view"in a?a.view:"undefined"!=typeof view?view:void 0),n}},114821:(e,t,n)=>{n(477055),e.exports=function(e){return""+'<div id="site-content-area"><p>If this is showing, you dun goofed</p></div>'}},984852:(e,t,n)=>{n(477055),e.exports=function(e){return""+'<div class="style-flat"><nav id="main-nav">\x3c!-- Will be replaced by Navigation.vue in RootView--\x3e</nav><div id="site-content-area"><p>If this is showing, you dun goofed</p></div><footer id="site-footer">\x3c!-- Will be replaced by Footer.vue in RootView--\x3e</footer></div>'}},477055:(e,t,n)=>{"use strict";var r=Object.prototype.hasOwnProperty;function o(e,t){return Array.isArray(e)?function(e,t){for(var n,r="",i="",a=Array.isArray(t),s=0;s<e.length;s++)(n=o(e[s]))&&(a&&t[s]&&(n=c(n)),r=r+i+n,i=" ");return r}(e,t):e&&"object"==typeof e?function(e){var t="",n="";for(var o in e)o&&e[o]&&r.call(e,o)&&(t=t+n+o,n=" ");return t}(e):e||""}function i(e){if(!e)return"";if("object"==typeof e){var t="";for(var n in e)r.call(e,n)&&(t=t+n+":"+e[n]+";");return t}return e+""}function a(e,t,n,r){if(!1===t||null==t||!t&&("class"===e||"style"===e))return"";if(!0===t)return" "+(r?e:e+'="'+e+'"');var o=typeof t;return"object"!==o&&"function"!==o||"function"!=typeof t.toJSON||(t=t.toJSON()),"string"==typeof t||(t=JSON.stringify(t),n||-1===t.indexOf('"'))?(n&&(t=c(t))," "+e+'="'+t+'"'):" "+e+"='"+t.replace(/'/g,"'")+"'"}t.merge=function e(t,n){if(1===arguments.length){for(var r=t[0],o=1;o<t.length;o++)r=e(r,t[o]);return r}for(var a in n)if("class"===a){var s=t[a]||[];t[a]=(Array.isArray(s)?s:[s]).concat(n[a]||[])}else if("style"===a){s=(s=i(t[a]))&&";"!==s[s.length-1]?s+";":s;var c=i(n[a]);c=c&&";"!==c[c.length-1]?c+";":c,t[a]=s+c}else t[a]=n[a];return t},t.classes=o,t.style=i,t.attr=a,t.attrs=function(e,t){var n="";for(var s in e)if(r.call(e,s)){var c=e[s];if("class"===s){n=a(s,c=o(c),!1,t)+n;continue}"style"===s&&(c=i(c)),n+=a(s,c,!1,t)}return n};var s=/["&<>]/;function c(e){var t=""+e,n=s.exec(t);if(!n)return e;var r,o,i,a="";for(r=n.index,o=0;r<t.length;r++){switch(t.charCodeAt(r)){case 34:i=""";break;case 38:i="&";break;case 60:i="<";break;case 62:i=">";break;default:continue}o!==r&&(a+=t.substring(o,r)),o=r+1,a+=i}return o!==r?a+t.substring(o,r):a}t.escape=c,t.rethrow=function e(t,r,o,i){if(!(t instanceof Error))throw t;if(!("undefined"==typeof window&&r||i))throw t.message+=" on line "+o,t;try{i=i||n(257835).readFileSync(r,"utf8")}catch(n){e(t,null,o)}var a=3,s=i.split("\n"),c=Math.max(o-a,0),u=Math.min(s.length,o+a);throw a=s.slice(c,u).map((function(e,t){var n=t+c+1;return(n==o?" > ":" ")+n+"| "+e})).join("\n"),t.path=r,t.message=(r||"Pug")+":"+o+"\n"+a+"\n\n"+t.message,t}},429335:e=>{"use strict";function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,r,o,i){r=r||"&",o=o||"=";var a={};if("string"!=typeof e||0===e.length)return a;var s=/\+/g;e=e.split(r);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=e.length;c>0&&u>c&&(u=c);for(var l=0;l<u;++l){var d,p,f,h,m=e[l].replace(s,"%20"),g=m.indexOf(o);g>=0?(d=m.substr(0,g),p=m.substr(g+1)):(d=m,p=""),f=decodeURIComponent(d),h=decodeURIComponent(p),t(a,f)?n(a[f])?a[f].push(h):a[f]=[a[f],h]:a[f]=h}return a};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},968795:e=>{"use strict";var t=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,i,a,s){return i=i||"&",a=a||"=",null===e&&(e=void 0),"object"==typeof e?r(o(e),(function(o){var s=encodeURIComponent(t(o))+a;return n(e[o])?r(e[o],(function(e){return s+encodeURIComponent(t(e))})).join(i):s+encodeURIComponent(t(e[o]))})).join(i):s?encodeURIComponent(t(s))+a+encodeURIComponent(t(e)):""};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function r(e,t){if(e.map)return e.map(t);for(var n=[],r=0;r<e.length;r++)n.push(t(e[r],r));return n}var o=Object.keys||function(e){var t=[];
vendor: 4,568 bytes, line 2
2for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.push(n);return t}},487735:(e,t,n)=>{"use strict";t.decode=t.parse=n(429335),t.encode=t.stringify=n(968795)},535666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new T(r||[]);return i._invoke=function(e,t,n){var r=d;return function(o,i){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=x(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",m={};function g(){}function y(){}function v(){}var b={};c(b,i,(function(){return this}));var _=Object.getPrototypeOf,w=_&&_(_(A([])));w&&w!==n&&r.call(w,i)&&(b=w);var S=v.prototype=g.prototype=Object.create(b);function C(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(c.arg)}var o;this._invoke=function(e,r){function i(){return new t((function(t,o){n(e,r,t,o)}))}return o=o?o.then(i,i):i()}}function x(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,m;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(e){if(e){var n=e[i];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:P}}function P(){return{value:t,done:!0}}return y.prototype=v,c(S,"constructor",v),c(v,"constructor",y),y.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},C(k.prototype),c(k.prototype,a,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new k(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(S),c(S,s,"Generator"),c(S,i,(function(){return this})),c(S,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEac
2h(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return s.type="throw",s.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),u=r.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},614246:e=>{var t={},n=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}},r=n((function(){return/msie [6-9]\b/.test(self.navigator.userAgent.toLowerCase())})),o=n((function(){return document.head||document.getElementsByTagName("head")[0]})),i=null,a=0,s=[];function c(e,n){for(var r=0;r<e.length;r++){var o=e[r],i=t[o.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](o.parts[a]);for(;a<o.parts.length;a++)i.parts.push(f(o.parts[a],n))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(f(o.parts[a],n));t[o.id]={id:o.id,refs:1,parts:s}}}}function u(e){for(var t=[],n={},r=0;r<e.length;r++){var o=e[r],i=o[0],a={css:o[1],media:o[2],sourceMap:o[3]};n[i]?n[i].parts.push(a):t.push(n[i]={id:i,parts:[a]})}return t}function l(e,t){var n=o(),r=s[s.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),s.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function d(e){e.parentNode.removeChild(e);var t=s.indexOf(e);t>=0&&s.splice(t,1)}function p(e){var t=document.createElement("style");return t.type="text/css",l(e,t),t}function f(e,t){var n,r,o;if(t.singleton){var s=a++;n=i||(i=p(t)),r=g.bind(null,n,s,!1),o=g.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return t.rel="stylesheet",l(e,t),t}(t),r=v.bind(null,n),o=function(){d(n),n.href&&URL.revokeObjectURL(n.href)}):(n=p(t),r=y.bind(null,n),o=function(){d(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,n){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");void 0===(n=n||{}).singleton&&(n.singleton=r()),void 0===n.insertAt&&(n.insertAt="bottom");var o=u(e);return c(o,n),function(e){for(var r=[],i=0;i<o.length;i++){var a=o[i];(s=t[a.id]).refs--,r.push(s)}for(e&&c(u(e),n),i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete t[s.id]}}}};
2var h,m=(h=[],function(e,t){return h[e]=t,h.filter(Boolean).join("\n")});function g(e,t,n,r){var o=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=m(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function y(e,t){var n=t.css,r=t.media;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function v(e,t){var n=t.css,r=t.sourceMap;r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var o=new Blob([n],{type:"text/css"}),i=e.href;e.href=URL.createObjectURL(o),i&&URL.revokeObjectURL(i)}},887067:(e,t,n)=>{var r=n(119243);"string"==typeof r&&(r=[[e.id,r,""]]),n(614246)(r,{}),r.locals&&(e.exports=r.locals)},964112:(e,t,n)=>{var r=n(101516);"string"==typeof r&&(r=[[e.id,r,""]]),n(614246)(r,{}),r.locals&&(e.exports=r.locals)},95798:(e,t,n)=>{var r=n(617379);"string"==typeof r&&(r=[[e.id,r,""]]),n(614246)(r,{}),r.locals&&(e.exports=r.locals)},438285:(e,t,n)=>{var r=n(172776);"string"==typeof r&&(r=[[e.id,r,""]]),n(614246)(r,{}),r.locals&&(e.exports=r.locals)},99018:function(e,t){var n,r;n=function(){var e,t,n,r;Object.keys||(Object.keys=(e=Object.prototype.hasOwnProperty,t=!{toString:null}.propertyIsEnumerable("toString"),r=(n=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(o){if("object"!=typeof o&&"function"!=typeof o||null===o)throw new TypeError("Object.keys called on non-object");var i=[];for(var a in o)e.call(o,a)&&i.push(a);if(t)for(var s=0;s<r;s++)e.call(o,n[s])&&i.push(n[s]);return i})),Object.create||(Object.create=function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create implementation only accepts one parameter.");return e.prototype=t,new e}}()),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e){if(null===this)throw new TypeError;var t=Object(this),n=t.length>>>0;if(0===n)return-1;var r=0;if(arguments.length>1&&((r=Number(arguments[1]))!=r?r=0:0!==r&&r!==1/0&&r!==-1/0&&(r=(r>0||-1)*Math.floor(Math.abs(r)))),r>=n)return-1;for(var o=r>=0?r:Math.max(n-Math.abs(r),0);o<n;o++)if(o in t&&t[o]===e)return o;return-1}),Object.isFrozen||(Object.isFrozen=function(e){for(var t="tv4_test_frozen_key";e.hasOwnProperty(t);)t+=Math.random();try{return e[t]=!0,delete e[t],!1}catch(e){return!0}});var o=function(e,t,n,r,o){if(this.missing=[],this.missingMap={},this.formatValidators=e?Object.create(e.formatValidators):{},this.schemas=e?Object.create(e.schemas):{},this.collectMultiple=t,this.errors=[],this.handleError=t?this.collectError:this.returnError,r&&(this.checkRecursive=!0,this.scanned=[],this.scannedFrozen=[],this.scannedFrozenSchemas=[],this.scannedFrozenValidationErrors=[],this.validatedSchemasKey="tv4_validation_id",this.validationErrorsKey="tv4_validation_errors_id"),o&&(this.trackUnknownProperties=!0,this.knownPropertyPaths={},this.unknownPropertyPaths={}),this.errorMessages=n,this.definedKeywords={},e)for(var i in e.definedKeywords)this.definedKeywords[i]=e.definedKeywords[i].slice(0)};function i(e,t){if(e===t)return!0;if("object"==typeof e&&"object"==typeof t){if(Array.isArray(e)!==Array.isArray(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!i(e[n],t[n]))return!1}else{var r;for(r in e)if(void 0===t[r]&&void 0!==e[r])return!1;for(r in t)if(void 0===e[r]&&void 0!==t[r])return!1;for(r in e)if(!i(e[r],t[r]))return!1}return!0}return!1}function a(e){var t=String(e).replace(/^\s+|\s+$/g,"").match(/^([^:\/?#]+:)?(\/\/(?:[^:@]*(?::[^:@]*)?@)?(([^:\/?#]*)(?::(\d*))?))?([^?#]*)(\?[^#]*)?(#[\s\S]*)?/);return t?{href:t[0]||"",protocol:t[1]||"",authority:t[2]||"",host:t[3]||"",hostname:t[4]||"",port:t[5]||"",pathname:t[6]||"",search:t[7]||"",hash:t[8]||""}:null}function s(e,t){return t=a(t||""),e=a(e||""),t&&e?(t.protocol||e.protocol)+(t.protocol||t.authority?t.authority:e.authority)+(n=t.protocol||t.authority||"/"===t.pathname.charAt(0)?t.pathname:t.pathname?(e.authority&&!e.pathname?"/":"")+e.pathname.slice(0,e.pathname.lastIndexOf("/")+1)+t.pathname:e.pathname,r=[],n.replace(/^(\.\.?(\/|$))+/,"").replace(/\/(\.(\/|$))+/g,"/").replace(/\/\.\.$/,"/../").replace(/\/?[^\/]*/g,(function(e){"/.."===e?r.pop():r.push(e)})),r.join("").replace(/^\//,"/"===n.charAt(0)?"/":""))+(t.protocol||t.authority||t.pathname?t.search:t.search||e.search)+t.hash:null;var n,r}function c(e){return e.split("#")[0]}function u(e,t){if(e&&"object"==typeof e)if(void 0===t?t=e.id:"string"==typeof e.id&&(t=s(t,e.id),e.id=t),Array.isArray(e))for(var n=0;n<e.length;n++)u(e[n],t);else for(var r in"string"==typeof e.$ref&&(e.$ref=s(t,e.$ref)),e)"enum"!==r&&u(e[r],t)}o.prototype.defineKeyword=function(e,t){this.definedKeywords[e]=this.definedKeywords[e]||[],this.definedKeywords[e].push(t)},o.prototype.createError=function(e,t,n,r,o){var i=this.errorMessages[e]||f[e];return new h(e,"string"!=typeof i?"Unknown error code "+e+": "+JSON.stringify(t):i.replace(/\{([^{}]*)\}/g,(function(e,n){var r=t[n];return"string"==typeof r||"number"==typeof r?r:e})),n,r,o)},o.prototype.returnError=function(e){return e},o.prototype.collectError=function(e){return e&&this.errors.push(e),null},o.prototype.prefixErrors=function(e,t,n){for(var r=e;r<this.errors.length;r++)this.errors[r]=this.errors[r].prefixWith(t,n);return this},o.prototype.banUnknownProperties=function(){for(var e in this.unknownPropertyPaths){var t=this.createError(l.UNKNOWN_PROPERTY,{path:e},e,""),n=this.handleError(t);if(n)return n}return null},o.prototype.addFormat=function(e,t){if("object"==typeof e){for(var n in e)this.addFormat(n,e[n]);return this}this.formatValidators[e]=t},o.prototype.resolveRefs=function(e,t){if(void 0!==e.$ref){if((t=t||{})[e.$ref])return this.createError(l.CIRCULAR_REFERENCE,{urls:Object.keys(t).join(", ")},"","");t[e.$ref]=!0,e=this.getSchema(e.$ref,t)}return e},o.prototype.getSchema=function(e,t){var n;if(void 0!==this.schemas[e])return n=this.schemas[e],this.resolveRefs(n,t);var r=e,o="";if(-1!==e.indexOf("#")&&(o=e.substring(e.indexOf("#")+1),r=e.substring(0,e.indexOf("#"))),"object"==typeof this.schemas[r]){n=this.schemas[r];var i=decodeURIComponent(o);if(""===i)return this.resolveRefs(n,t);if("/"!==i.charAt(0))return;for(var a=i.split("/").slice(1),s=0;s<a.length;s++){var c=a[s].replace(/~1/g,"/").replace(/~0/g,"~");if(void 0===n[c]){n=void 0;break}n=n[c]}if(void 0!==n)return this.resolveRefs(n,t)}void 0===this.missing[r]&&(this.missing.push(r),this.missing[r]=r,this.missingMap[r]=r)},o.prototype.searchSchemas=function(e,t){if(e&&"object"==typeof e)for(var n in"string"==typeof e.id&&function(e,t){if(t.substring(0,e.length)===e){var n=t.substring(e.length);if(t.length>0&&"/"===t.charAt(e.length-1)||"#"===n.charAt(0)||"?"===n.charAt(0))return!0}return!1}(t,e.id)&&void 0===this.schemas[e.id]&&(this.schemas[e.id]=e),e)if("enum"!==n)if("object"==typeof e[n])this.searchSchemas(e[n],t);else if("$ref"===n){var r=c(e[n]);r&&void 0===this.schemas[r]&&void 0===this.missingMap[r]&&(this.missingMap[r]=r)}},o.prototype.addSchema=function(e,t){if("string"!=typeof e||void 0===t){if("object"!=typeof e||"string"!=typeof e.id)return;e=(t=e).id}(e=c(e)+"#")&&(e=c(e)),this.schemas[e]=t,delete this.missingMap[e],u(t,e),this.searchSchemas(t,e)},o.prototype.getSchemaMap=function(){var e={};for(var t in this.schemas)e[t]=this.schemas[t];return e},o.prototype.getSchemaUris=function(e){var t=[];for(var n in this.schemas)e&&!e.test(n)||t.push(n);return t},o.prototype.getMissingUris=function(e){var t=[];for(var n in this.missingMap)e&&!e.test(n)||t.push(n);return t},o.prototype.dropSchemas=function(){this.schemas={},this.reset()},o.prototype.reset=function(){this.missing=[],this.missingMap={},this.errors=[]},o.prototype.validateAll=function(e,t,n,r,o){var i;if(!(t=this.resolveRefs(t)))return null;if(t instanceof h)return this.errors.push(t),t;var a,s=this.errors.length,c=null,u=null;if(this.checkRecursive&&e&&"object"==typeof e){if(i=!this.scanned.length,e[this.validatedSchemasKey]){var l=e[this.validatedSchemasKey].indexOf(t);if(-1!==l)return this.errors=this.errors.concat(e[this.validationErrorsKey][l]),null}if(Object.isFrozen(e)&&-1!==(a=this.scannedFrozen.indexOf(e))){var d=this.scannedFrozenSchemas[a].indexOf(t);if(-1!==d)return this.errors=this.errors.concat(this.scannedFrozenValidationErrors[a][d]),null}if(this.scanned.push(e),Object.isFrozen(e))-1===a&&(a=this.scannedFrozen.length,this.scannedFrozen.push(e),this.scannedFrozenSchemas.push([])),c=this.scannedFrozenSchemas[a].length,this.scannedFrozenSchemas[a][c]=t,this.scannedFrozenValidationErrors[a][c]=[];else{if(!e[this.validatedSchemasKey])try{Object.defineProperty(e,this.validatedSchemasKey,{value:[],configurable:!0}),Object.defineProperty(e,this.validationErrorsKey,{value:[],configurable:!0})}catch(t){e[this.validatedSchemasKey]=[],e[this.validationErrorsKey]=[]}u=e[this.validatedSchemasKey].length,e[this.validatedSchemasKey][u]=t,e[this.validationErrorsKey][u]=[]}}var p=this.errors.length,f=this.validateBasic(e,t,o)||this.validateNumeric(e,t,o)||this.validateString(e,t,o)||this.validateArray(e,t,o)||this.validateObject(e,t,o)||this.validateCombinations(e,t,o)||this.validateFormat(e,t,o)||this.validateDefinedKeywords(e,t,o)||null;if(i){for(;this.scanned.length;)delete this.scanned.pop()[this.validatedSchemasKey];this.scannedFrozen=[],this.scannedFrozenSchemas=[]}if(f||p!==this.errors.length)for(;n&&n.length||r&&r.length;){var m=n&&n.length?""+n.pop():null,g=r&&r.length?""+r.pop():null;f&&(f=f.prefixWith(m,g)),this.prefixErrors(p,m,g)}return null!==c?this.scannedFrozenValidationErrors[a][c]=this.errors.slice(s):null!==u&&(e[this.validationErrorsKey][u]=this.errors.slice(s)),this.handleError(f)},o.prototype.validateFormat=function(e,t){if("string"!=typeof t.format||!this.formatValidators[t.format])return null;var n=this.formatValidators[t.format].call(null,e,t);return"string"==typeof n||"number"==typeof n?this.createError(l.FORMAT_CUSTOM,{message:n}).prefixWith(null,"format"):n&&"object"==typeof n?this.createError(l.FORMAT_CUSTOM,{message:n.message||"?"}
2,n.dataPath||null,n.schemaPath||"/format"):null},o.prototype.validateDefinedKeywords=function(e,t){for(var n in this.definedKeywords)if(void 0!==t[n])for(var r=this.definedKeywords[n],o=0;o<r.length;o++){var i=(0,r[o])(e,t[n],t);if("string"==typeof i||"number"==typeof i)return this.createError(l.KEYWORD_CUSTOM,{key:n,message:i}).prefixWith(null,"format");if(i&&"object"==typeof i){var a=i.code||l.KEYWORD_CUSTOM;if("string"==typeof a){if(!l[a])throw new Error("Undefined error code (use defineError): "+a);a=l[a]}var s="object"==typeof i.message?i.message:{key:n,message:i.message||"?"},c=i.schemaPath||"/"+n.replace(/~/g,"~0").replace(/\//g,"~1");return this.createError(a,s,i.dataPath||null,c)}}return null},o.prototype.validateBasic=function(e,t,n){var r;return(r=this.validateType(e,t,n))||(r=this.validateEnum(e,t,n))?r.prefixWith(null,"type"):null},o.prototype.validateType=function(e,t){if(void 0===t.type)return null;var n=typeof e;null===e?n="null":Array.isArray(e)&&(n="array");var r=t.type;"object"!=typeof r&&(r=[r]);for(var o=0;o<r.length;o++){var i=r[o];if(i===n||"integer"===i&&"number"===n&&e%1==0)return null}return this.createError(l.INVALID_TYPE,{type:n,expected:r.join("/")})},o.prototype.validateEnum=function(e,t){if(void 0===t.enum)return null;for(var n=0;n<t.enum.length;n++)if(i(e,t.enum[n]))return null;return this.createError(l.ENUM_MISMATCH,{value:"undefined"!=typeof JSON?JSON.stringify(e):e})},o.prototype.validateNumeric=function(e,t,n){return this.validateMultipleOf(e,t,n)||this.validateMinMax(e,t,n)||null},o.prototype.validateMultipleOf=function(e,t){var n=t.multipleOf||t.divisibleBy;return void 0===n?null:"number"==typeof e&&e%n!=0?this.createError(l.NUMBER_MULTIPLE_OF,{value:e,multipleOf:n}):null},o.prototype.validateMinMax=function(e,t){if("number"!=typeof e)return null;if(void 0!==t.minimum){if(e<t.minimum)return this.createError(l.NUMBER_MINIMUM,{value:e,minimum:t.minimum}).prefixWith(null,"minimum");if(t.exclusiveMinimum&&e===t.minimum)return this.createError(l.NUMBER_MINIMUM_EXCLUSIVE,{value:e,minimum:t.minimum}).prefixWith(null,"exclusiveMinimum")}if(void 0!==t.maximum){if(e>t.maximum)return this.createError(l.NUMBER_MAXIMUM,{value:e,maximum:t.maximum}).prefixWith(null,"maximum");if(t.exclusiveMaximum&&e===t.maximum)return this.createError(l.NUMBER_MAXIMUM_EXCLUSIVE,{value:e,maximum:t.maximum}).prefixWith(null,"exclusiveMaximum")}return null},o.prototype.validateString=function(e,t,n){return this.validateStringLength(e,t,n)||this.validateStringPattern(e,t,n)||null},o.prototype.validateStringLength=function(e,t){return"string"!=typeof e?null:void 0!==t.minLength&&e.length<t.minLength?this.createError(l.STRING_LENGTH_SHORT,{length:e.length,minimum:t.minLength}).prefixWith(null,"minLength"):void 0!==t.maxLength&&e.length>t.maxLength?this.createError(l.STRING_LENGTH_LONG,{length:e.length,maximum:t.maxLength}).prefixWith(null,"maxLength"):null},o.prototype.validateStringPattern=function(e,t){return"string"!=typeof e||void 0===t.pattern||new RegExp(t.pattern).test(e)?null:this.createError(l.STRING_PATTERN,{pattern:t.pattern}).prefixWith(null,"pattern")},o.prototype.validateArray=function(e,t,n){return Array.isArray(e)&&(this.validateArrayLength(e,t,n)||this.validateArrayUniqueItems(e,t,n)||this.validateArrayItems(e,t,n))||null},o.prototype.validateArrayLength=function(e,t){var n;return void 0!==t.minItems&&e.length<t.minItems&&(n=this.createError(l.ARRAY_LENGTH_SHORT,{length:e.length,minimum:t.minItems}).prefixWith(null,"minItems"),this.handleError(n))||void 0!==t.maxItems&&e.length>t.maxItems&&(n=this.createError(l.ARRAY_LENGTH_LONG,{length:e.length,maximum:t.maxItems}).prefixWith(null,"maxItems"),this.handleError(n))?n:null},o.prototype.validateArrayUniqueItems=function(e,t){if(t.uniqueItems)for(var n=0;n<e.length;n++)for(var r=n+1;r<e.length;r++)if(i(e[n],e[r])){var o=this.createError(l.ARRAY_UNIQUE,{match1:n,match2:r}).prefixWith(null,"uniqueItems");if(this.handleError(o))return o}return null},o.prototype.validateArrayItems=function(e,t,n){if(void 0===t.items)return null;var r,o;if(Array.isArray(t.items)){for(o=0;o<e.length;o++)if(o<t.items.length){if(r=this.validateAll(e[o],t.items[o],[o],["items",o],n+"/"+o))return r}else if(void 0!==t.additionalItems)if("boolean"==typeof t.additionalItems){if(!t.additionalItems&&(r=this.createError(l.ARRAY_ADDITIONAL_ITEMS,{}).prefixWith(""+o,"additionalItems"),this.handleError(r)))return r}else if(r=this.validateAll(e[o],t.additionalItems,[o],["additionalItems"],n+"/"+o))return r}else for(o=0;o<e.length;o++)if(r=this.validateAll(e[o],t.items,[o],["items"],n+"/"+o))return r;return null},o.prototype.validateObject=function(e,t,n){return"object"!=typeof e||null===e||Array.isArray(e)?null:this.validateObjectMinMaxProperties(e,t,n)||this.validateObjectRequiredProperties(e,t,n)||this.validateObjectProperties(e,t,n)||this.validateObjectDependencies(e,t,n)||null},o.prototype.validateObjectMinMaxProperties=function(e,t){var n,r=Object.keys(e);return void 0!==t.minProperties&&r.length<t.minProperties&&(n=this.createError(l.OBJECT_PROPERTIES_MINIMUM,{propertyCount:r.length,minimum:t.minProperties}).prefixWith(null,"minProperties"),this.handleError(n))||void 0!==t.maxProperties&&r.length>t.maxProperties&&(n=this.createError(l.OBJECT_PROPERTIES_MAXIMUM,{propertyCount:r.length,maximum:t.maxProperties}).prefixWith(null,"maxProperties"),this.handleError(n))?n:null},o.prototype.validateObjectRequiredProperties=function(e,t){if(void 0!==t.required)for(var n=0;n<t.required.length;n++){var r=t.required[n];if(void 0===e[r]){var o=this.createError(l.OBJECT_REQUIRED,{key:r}).prefixWith(null,""+n).prefixWith(null,"required");if(this.handleError(o))return o}}return null},o.prototype.validateObjectProperties=function(e,t,n){var r;for(var o in e){var i=n+"/"+o.replace(/~/g,"~0").replace(/\//g,"~1"),a=!1;if(void 0!==t.properties&&void 0!==t.properties[o]&&(a=!0,r=this.validateAll(e[o],t.properties[o],[o],["properties",o],i)))return r;if(void 0!==t.patternProperties)for(var s in t.patternProperties)if(new RegExp(s).test(o)&&(a=!0,r=this.validateAll(e[o],t.patternProperties[s],[o],["patternProperties",s],i)))return r;if(a)this.trackUnknownProperties&&(this.knownPropertyPaths[i]=!0,delete this.unknownPropertyPaths[i]);else if(void 0!==t.additionalProperties){if(this.trackUnknownProperties&&(this.knownPropertyPaths[i]=!0,delete this.unknownPropertyPaths[i]),"boolean"==typeof t.additionalProperties){if(!t.additionalProperties&&(r=this.createError(l.OBJECT_ADDITIONAL_PROPERTIES,{}).prefixWith(o,"additionalProperties"),this.handleError(r)))return r}else if(r=this.validateAll(e[o],t.additionalProperties,[o],["additionalProperties"],i))return r}else this.trackUnknownProperties&&!this.knownPropertyPaths[i]&&(this.unknownPropertyPaths[i]=!0)}return null},o.prototype.validateObjectDependencies=function(e,t,n){var r;if(void 0!==t.dependencies)for(var o in t.dependencies)if(void 0!==e[o]){var i=t.dependencies[o];if("string"==typeof i){if(void 0===e[i]&&(r=this.createError(l.OBJECT_DEPENDENCY_KEY,{key:o,missing:i}).prefixWith(null,o).prefixWith(null,"dependencies"),this.handleError(r)))return r}else if(Array.isArray(i))for(var a=0;a<i.length;a++){var s=i[a];if(void 0===e[s]&&(r=this.createError(l.OBJECT_DEPENDENCY_KEY,{key:o,missing:s}).prefixWith(null,""+a).prefixWith(null,o).prefixWith(null,"dependencies"),this.handleError(r)))return r}else if(r=this.validateAll(e,i,[],["dependencies",o],n))return r}return null},o.prototype.validateCombinations=function(e,t,n){return this.validateAllOf(e,t,n)||this.validateAnyOf(e,t,n)||this.validateOneOf(e,t,n)||this.validateNot(e,t,n)||null},o.prototype.validateAllOf=function(e,t,n){if(void 0===t.allOf)return null;for(var r,o=0;o<t.allOf.length;o++){var i=t.allOf[o];if(r=this.validateAll(e,i,[],["allOf",o],n))return r}return null},o.prototype.validateAnyOf=function(e,t,n){if(void 0===t.anyOf)return null;var r,o,i=[],a=this.errors.length;this.trackUnknownProperties&&(r=this.unknownPropertyPaths,o=this.knownPropertyPaths);for(var s=!0,c=0;c<t.anyOf.length;c++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var u=t.anyOf[c],d=this.errors.length,p=this.validateAll(e,u,[],["anyOf",c],n);if(null===p&&d===this.errors.length){if(this.errors=this.errors.slice(0,a),this.trackUnknownProperties){for(var f in this.knownPropertyPaths)o[f]=!0,delete r[f];for(var h in this.unknownPropertyPaths)o[h]||(r[h]=!0);s=!1;continue}return null}p&&i.push(p.prefixWith(null,""+c).prefixWith(null,"anyOf"))}return this.trackUnknownProperties&&(this.unknownPropertyPaths=r,this.knownPropertyPaths=o),s?(i=i.concat(this.errors.slice(a)),this.errors=this.errors.slice(0,a),this.createError(l.ANY_OF_MISSING,{},"","/anyOf",i)):void 0},o.prototype.validateOneOf=function(e,t,n){if(void 0===t.oneOf)return null;var r,o,i=null,a=[],s=this.errors.length;this.trackUnknownProperties&&(r=this.unknownPropertyPaths,o=this.knownPropertyPaths);for(var c=0;c<t.oneOf.length;c++){this.trackUnknownProperties&&(this.unknownPropertyPaths={},this.knownPropertyPaths={});var u=t.oneOf[c],d=this.errors.length,p=this.validateAll(e,u,[],["oneOf",c],n);if(null===p&&d===this.errors.length){if(null!==i)return this.errors=this.errors.slice(0,s),this.createError(l.ONE_OF_MULTIPLE,{index1:i,index2:c},"","/oneOf");if(i=c,this.trackUnknownProperties){for(var f in this.knownPropertyPaths)o[f]=!0,delete r[f];for(var h in this.unknownPropertyPaths)o[h]||(r[h]=!0)}}else p&&a.push(p.prefixWith(null,""+c).prefixWith(null,"oneOf"))}return this.trackUnknownProperties&&(this.unknownPropertyPaths=r,this.knownPropertyPaths=o),null===i?(a=a.c
2oncat(this.errors.slice(s)),this.errors=this.errors.slice(0,s),this.createError(l.ONE_OF_MISSING,{},"","/oneOf",a)):(this.errors=this.errors.slice(0,s),null)},o.prototype.validateNot=function(e,t,n){if(void 0===t.not)return null;var r,o,i=this.errors.length;this.trackUnknownProperties&&(r=this.unknownPropertyPaths,o=this.knownPropertyPaths,this.unknownPropertyPaths={},this.knownPropertyPaths={});var a=this.validateAll(e,t.not,null,null,n),s=this.errors.slice(i);return this.errors=this.errors.slice(0,i),this.trackUnknownProperties&&(this.unknownPropertyPaths=r,this.knownPropertyPaths=o),null===a&&0===s.length?this.createError(l.NOT_PASSED,{},"","/not"):null};var l={INVALID_TYPE:0,ENUM_MISMATCH:1,ANY_OF_MISSING:10,ONE_OF_MISSING:11,ONE_OF_MULTIPLE:12,NOT_PASSED:13,NUMBER_MULTIPLE_OF:100,NUMBER_MINIMUM:101,NUMBER_MINIMUM_EXCLUSIVE:102,NUMBER_MAXIMUM:103,NUMBER_MAXIMUM_EXCLUSIVE:104,STRING_LENGTH_SHORT:200,STRING_LENGTH_LONG:201,STRING_PATTERN:202,OBJECT_PROPERTIES_MINIMUM:300,OBJECT_PROPERTIES_MAXIMUM:301,OBJECT_REQUIRED:302,OBJECT_ADDITIONAL_PROPERTIES:303,OBJECT_DEPENDENCY_KEY:304,ARRAY_LENGTH_SHORT:400,ARRAY_LENGTH_LONG:401,ARRAY_UNIQUE:402,ARRAY_ADDITIONAL_ITEMS:403,FORMAT_CUSTOM:500,KEYWORD_CUSTOM:501,CIRCULAR_REFERENCE:600,UNKNOWN_PROPERTY:1e3},d={};for(var p in l)d[l[p]]=p;var f={INVALID_TYPE:"invalid type: {type} (expected {expected})",ENUM_MISMATCH:"No enum match for: {value}",ANY_OF_MISSING:'Data does not match any schemas from "anyOf"',ONE_OF_MISSING:'Data does not match any schemas from "oneOf"',ONE_OF_MULTIPLE:'Data is valid against more than one schema from "oneOf": indices {index1} and {index2}',NOT_PASSED:'Data matches schema from "not"',NUMBER_MULTIPLE_OF:"Value {value} is not a multiple of {multipleOf}",NUMBER_MINIMUM:"Value {value} is less than minimum {minimum}",NUMBER_MINIMUM_EXCLUSIVE:"Value {value} is equal to exclusive minimum {minimum}",NUMBER_MAXIMUM:"Value {value} is greater than maximum {maximum}",NUMBER_MAXIMUM_EXCLUSIVE:"Value {value} is equal to exclusive maximum {maximum}",STRING_LENGTH_SHORT:"String is too short ({length} chars), minimum {minimum}",STRING_LENGTH_LONG:"String is too long ({length} chars), maximum {maximum}",STRING_PATTERN:"String does not match pattern: {pattern}",OBJECT_PROPERTIES_MINIMUM:"Too few properties defined ({propertyCount}), minimum {minimum}",OBJECT_PROPERTIES_MAXIMUM:"Too many properties defined ({propertyCount}), maximum {maximum}",OBJECT_REQUIRED:"Missing required property: {key}",OBJECT_ADDITIONAL_PROPERTIES:"Additional properties not allowed",OBJECT_DEPENDENCY_KEY:"Dependency failed - key must exist: {missing} (due to key: {key})",ARRAY_LENGTH_SHORT:"Array is too short ({length}), minimum {minimum}",ARRAY_LENGTH_LONG:"Array is too long ({length}), maximum {maximum}",ARRAY_UNIQUE:"Array items are not unique (indices {match1} and {match2})",ARRAY_ADDITIONAL_ITEMS:"Additional items not allowed",FORMAT_CUSTOM:"Format validation failed ({message})",KEYWORD_CUSTOM:"Keyword failed: {key} ({message})",CIRCULAR_REFERENCE:"Circular $refs: {urls}",UNKNOWN_PROPERTY:"Unknown property (not in schema)"};function h(e,t,n,r,o){if(Error.call(this),void 0===e)throw new Error("No code supplied for error: "+t);this.message=t,this.code=e,this.dataPath=n||"",this.schemaPath=r||"",this.subErrors=o||null;var i=new Error(this.message);if(this.stack=i.stack||i.stacktrace,!this.stack)try{throw i}catch(i){this.stack=i.stack||i.stacktrace}}h.prototype=Object.create(Error.prototype),h.prototype.constructor=h,h.prototype.name="ValidationError",h.prototype.prefixWith=function(e,t){if(null!==e&&(e=e.replace(/~/g,"~0").replace(/\//g,"~1"),this.dataPath="/"+e+this.dataPath),null!==t&&(t=t.replace(/~/g,"~0").replace(/\//g,"~1"),this.schemaPath="/"+t+this.schemaPath),null!==this.subErrors)for(var n=0;n<this.subErrors.length;n++)this.subErrors[n].prefixWith(e,t);return this};var m={};var g=function e(t){var n=new o,r=t||"en",i={addFormat:function(){n.addFormat.apply(n,arguments)},language:function(e){return e?(m[e]||(e=e.split("-")[0]),!!m[e]&&(r=e,e)):r},addLanguage:function(e,t){var n;for(n in l)t[n]&&!t[l[n]]&&(t[l[n]]=t[n]);var r=e.split("-")[0];if(m[r])for(n in m[e]=Object.create(m[r]),t)void 0===m[r][n]&&(m[r][n]=t[n]),m[e][n]=t[n];else m[e]=t,m[r]=t;return this},freshApi:function(t){var n=e();return t&&n.language(t),n},validate:function(e,t,i,a){var s=new o(n,!1,m[r],i,a);"string"==typeof t&&(t={$ref:t}),s.addSchema("",t);var c=s.validateAll(e,t,null,null,"");return!c&&a&&(c=s.banUnknownProperties()),this.error=c,this.missing=s.missing,this.valid=null===c,this.valid},validateResult:function(){var e={};return this.validate.apply(e,arguments),e},validateMultiple:function(e,t,i,a){var s=new o(n,!0,m[r],i,a);"string"==typeof t&&(t={$ref:t}),s.addSchema("",t),s.validateAll(e,t,null,null,""),a&&s.banUnknownProperties();var c={};
2return c.errors=s.errors,c.missing=s.missing,c.valid=0===c.errors.length,c},addSchema:function(){return n.addSchema.apply(n,arguments)},getSchema:function(){return n.getSchema.apply(n,arguments)},getSchemaMap:function(){return n.getSchemaMap.apply(n,arguments)},getSchemaUris:function(){return n.getSchemaUris.apply(n,arguments)},getMissingUris:function(){return n.getMissingUris.apply(n,arguments)},dropSchemas:function(){n.dropSchemas.apply(n,arguments)},defineKeyword:function(){n.defineKeyword.apply(n,arguments)},defineError:function(e,t,n){if("string"!=typeof e||!/^[A-Z]+(_[A-Z]+)*$/.test(e))throw new Error("Code name must be a string in UPPER_CASE_WITH_UNDERSCORES");if("number"!=typeof t||t%1!=0||t<1e4)throw new Error("Code number must be an integer > 10000");if(void 0!==l[e])throw new Error("Error already defined: "+e+" as "+l[e]);if(void 0!==d[t])throw new Error("Error code already used: "+d[t]+" as "+t);for(var r in l[e]=t,d[t]=e,f[e]=f[t]=n,m){var o=m[r];o[e]&&(o[t]=o[t]||o[e])}},reset:function(){n.reset(),this.error=null,this.missing=[],this.valid=!0},missing:[],error:null,valid:!0,normSchema:u,resolveUrl:s,getDocumentUri:c,errorCodes:l};return i}();return g.addLanguage("en-gb",f),g.tv4=g,g},void 0===(r=n.apply(t,[]))||(e.exports=r)},996654:function(e,t){var n;!function(r,o){"use strict";var i=o.prototype.trim,a=o.prototype.trimRight,s=o.prototype.trimLeft,c=function(e){return 1*e||0},u=function(e,t){if(t<1)return"";for(var n="";t>0;)1&t&&(n+=e),t>>=1,e+=e;return n},l=[].slice,d=function(e){return null==e?"\\s":e.source?e.source:"["+y.escapeRegExp(e)+"]"};function p(e,t){var n,r,o=e.toLowerCase();for(t=[].concat(t),n=0;n<t.length;n+=1)if(r=t[n]){if(r.test&&r.test(e))return!0;if(r.toLowerCase()===o)return!0}}var f={lt:"<",gt:">",quot:'"',amp:"&",apos:"'"},h={};for(var m in f)h[f[m]]=m;h["'"]="#39";var g=function(){function e(e){return Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}var t=u,n=function(){return n.cache.hasOwnProperty(arguments[0])||(n.cache[arguments[0]]=n.parse(arguments[0])),n.format.call(null,n.cache[arguments[0]],arguments)};return n.format=function(n,r){var i,a,s,c,u,l,d,p=1,f=n.length,h="",m=[];for(a=0;a<f;a++)if("string"===(h=e(n[a])))m.push(n[a]);else if("array"===h){if((c=n[a])[2])for(i=r[p],s=0;s<c[2].length;s++){if(!i.hasOwnProperty(c[2][s]))throw new Error(g('[_.sprintf] property "%s" does not exist',c[2][s]));i=i[c[2][s]]}else i=c[1]?r[c[1]]:r[p++];if(/[^s]/.test(c[8])&&"number"!=e(i))throw new Error(g("[_.sprintf] expecting number but found %s",e(i)));switch(c[8]){case"b":i=i.toString(2);break;case"c":i=o.fromCharCode(i);break;case"d":i=parseInt(i,10);break;case"e":i=c[7]?i.toExponential(c[7]):i.toExponential();break;case"f":i=c[7]?parseFloat(i).toFixed(c[7]):parseFloat(i);break;case"o":i=i.toString(8);break;case"s":i=(i=o(i))&&c[7]?i.substring(0,c[7]):i;break;case"u":i=Math.abs(i);break;case"x":i=i.toString(16);break;case"X":i=i.toString(16).toUpperCase()}i=/[def]/.test(c[8])&&c[3]&&i>=0?"+"+i:i,l=c[4]?"0"==c[4]?"0":c[4].charAt(1):" ",d=c[6]-o(i).length,u=c[6]?t(l,d):"",m.push(c[5]?i+u:u+i)}return m.join("")},n.cache={},n.parse=function(e){for(var t=e,n=[],r=[],o=0;t;){if(null!==(n=/^[^\x25]+/.exec(t)))r.push(n[0]);else if(null!==(n=/^\x25{2}/.exec(t)))r.push("%");else{if(null===(n=/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-fosuxX])/.exec(t)))throw new Error("[_.sprintf] huh?");if(n[2]){o|=1;var i=[],a=n[2],s=[];if(null===(s=/^([a-z_][a-z_\d]*)/i.exec(a)))throw new Error("[_.sprintf] huh?");for(i.push(s[1]);""!==(a=a.substring(s[0].length));)if(null!==(s=/^\.([a-z_][a-z_\d]*)/i.exec(a)))i.push(s[1]);else{if(null===(s=/^\[(\d+)\]/.exec(a)))throw new Error("[_.sprintf] huh?");i.push(s[1])}n[2]=i}else o|=2;if(3===o)throw new Error("[_.sprintf] mixing positional and named placeholders is not (yet) supported");r.push(n)}t=t.substring(n[0].length)}return r},n}(),y={VERSION:"2.3.0",isBlank:function(e){return null==e&&(e=""),/^\s*$/.test(e)},stripTags:function(e){return null==e?"":o(e).replace(/<\/?[^>]+>/g,"")},capitalize:function(e){return(e=null==e?"":o(e)).charAt(0).toUpperCase()+e.slice(1)},chop:function(e,t){return null==e?[]:(e=o(e),(t=~~t)>0?e.match(new RegExp(".{1,"+t+"}","g")):[e])},clean:function(e){return y.strip(e).replace(/\s+/g," ")},count:function(e,t){if(null==e||null==t)return 0;e=o(e);for(var n=0,r=0,i=(t=o(t)).length;-1!==(r=e.indexOf(t,r));)n++,r+=i;return n},chars:function(e){return null==e?[]:o(e).split("")},swapCase:function(e){return null==e?"":o(e).replace(/\S/g,(function(e){return e===e.toUpperCase()?e.toLowerCase():e.toUpperCase()}))},escapeHTML:function(e){return null==e?"":o(e).replace(/[&<>"']/g,(function(e){return"&"+h[e]+";"}))},unescapeHTML:function(e){return null==e?"":o(e).replace(/\&([^;]+);/g,(function(e,t){var n;return t in f?f[t]:(n=t.match(/^#x([\da-fA-F]+)$/))?o.fromCharCode(parseInt(n[1],16)):(n=t.match(/^#(\d+)$/))?o.fromCharCode(~~n[1]):e}))},escapeRegExp:function(e){return null==e?"":o(e).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")},splice:function(e,t,n,r){var o=y.chars(e);return o.splice(~~t,~~n,r),o.join("")},insert:function(e,t,n){return y.splice(e,t,0,n)},include:function(e,t){return""===t||null!=e&&-1!==o(e).indexOf(t)},join:function(){var e=l.call(arguments),t=e.shift();return null==t&&(t=""),e.join(t)},lines:function(e){return null==e?[]:o(e).split("\n")},reverse:function(e){return y.chars(e).reverse().join("")},startsWith:function(e,t){return""===t||null!=e&&null!=t&&(e=o(e),t=o(t),e.length>=t.length&&e.slice(0,t.length)===t)},endsWith:function(e,t){return""===t||null!=e&&null!=t&&(e=o(e),t=o(t),e.length>=t.length&&e.slice(e.length-t.length)===t)},succ:function(e){return null==e?"":(e=o(e)).slice(0,-1)+o.fromCharCode(e.charCodeAt(e.length-1)+1)},titleize:function(e){return null==e?"":(e=o(e).toLowerCase()).replace(/(?:^|\s|-)\S/g,(function(e){return e.toUpperCase()}))},camelize:function(e){return y.trim(e).replace(/[-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))},underscored:function(e){return y.trim(e).replace(/([a-z\d])([A-Z]+)/g,"$1_$2").replace(/[-\s]+/g,"_").toLowerCase()},dasherize:function(e){return y.trim(e).replace(/([A-Z])/g,"-$1").replace(/[-_\s]+/g,"-").toLowerCase()},classify:function(e){return y.titleize(o(e).replace(/[\W_]/g," ")).replace(/\s/g,"")}
2,humanize:function(e){return y.capitalize(y.underscored(e).replace(/_id$/,"").replace(/_/g," "))},trim:function(e,t){return null==e?"":!t&&i?i.call(e):(t=d(t),o(e).replace(new RegExp("^"+t+"+|"+t+"+$","g"),""))},ltrim:function(e,t){return null==e?"":!t&&s?s.call(e):(t=d(t),o(e).replace(new RegExp("^"+t+"+"),""))},rtrim:function(e,t){return null==e?"":!t&&a?a.call(e):(t=d(t),o(e).replace(new RegExp(t+"+$"),""))},truncate:function(e,t,n){return null==e?"":(n=n||"...",t=~~t,(e=o(e)).length>t?e.slice(0,t)+n:e)},prune:function(e,t,n){if(null==e)return"";if(e=o(e),t=~~t,n=null!=n?o(n):"...",e.length<=t)return e;var r=e.slice(0,t+1).replace(/.(?=\W*\w*$)/g,(function(e){return e.toUpperCase()!==e.toLowerCase()?"A":" "}));return((r=r.slice(r.length-2).match(/\w\w/)?r.replace(/\s*\S+$/,""):y.rtrim(r.slice(0,r.length-1)))+n).length>e.length?e:e.slice(0,r.length)+n},words:function(e,t){return y.isBlank(e)?[]:y.trim(e,t).split(t||/\s+/)},pad:function(e,t,n,r){e=null==e?"":o(e),t=~~t;var i=0;switch(n?n.length>1&&(n=n.charAt(0)):n=" ",r){case"right":return i=t-e.length,e+u(n,i);case"both":return i=t-e.length,u(n,Math.ceil(i/2))+e+u(n,Math.floor(i/2));default:return i=t-e.length,u(n,i)+e}},lpad:function(e,t,n){return y.pad(e,t,n)},rpad:function(e,t,n){return y.pad(e,t,n,"right")},lrpad:function(e,t,n){return y.pad(e,t,n,"both")},sprintf:g,vsprintf:function(e,t){return t.unshift(e),g.apply(null,t)},toNumber:function(e,t){return e?(e=y.trim(e)).match(/^-?\d+(?:\.\d+)?$/)?c(c(e).toFixed(~~t)):NaN:0},numberFormat:function(e,t,n,r){if(isNaN(e)||null==e)return"";r="string"==typeof r?r:",";var o=(e=e.toFixed(~~t)).split("."),i=o[0],a=o[1]?(n||".")+o[1]:"";return i.replace(/(\d)(?=(?:\d{3})+$)/g,"$1"+r)+a},strRight:function(e,t){if(null==e)return"";e=o(e);var n=(t=null!=t?o(t):t)?e.indexOf(t):-1;return~n?e.slice(n+t.length,e.length):e},strRightBack:function(e,t){if(null==e)return"";e=o(e);var n=(t=null!=t?o(t):t)?e.lastIndexOf(t):-1;return~n?e.slice(n+t.length,e.length):e},strLeft:function(e,t){if(null==e)return"";e=o(e);var n=(t=null!=t?o(t):t)?e.indexOf(t):-1;return~n?e.slice(0,n):e},strLeftBack:function(e,t){if(null==e)return"";var n=(e+="").lastIndexOf(t=null!=t?""+t:t);return~n?e.slice(0,n):e},toSentence:function(e,t,n,r){t=t||", ",n=n||" and ";var o=e.slice(),i=o.pop();return e.length>2&&r&&(n=y.rtrim(t)+n),o.length?o.join(t)+n+i:i},toSentenceSerial:function(){var e=l.call(arguments);return e[3]=!0,y.toSentence.apply(y,e)},slugify:function(e){if(null==e)return"";var t="Ä
à áäâãåæÄÄÄèéëêìÃïîÅÅòóöôõøÅÈÈùúüûñçżź",n=new RegExp(d(t),"g");return e=o(e).toLowerCase().replace(n,(function(e){var n=t.indexOf(e);return"aaaaaaaaaceeeeeiiiilnoooooosstuuuunczz".charAt(n)||"-"})),y.dasherize(e.replace(/[^\w\s-]/g,""))},surround:function(e,t){return[t,e,t].join("")},quote:function(e,t){return y.surround(e,t||'"')},unquote:function(e,t){return t=t||'"',e[0]===t&&e[e.length-1]===t?e.slice(1,e.length-1):e},exports:function(){var e={};for(var t in this)this.hasOwnProperty(t)&&!t.match(/^(?:include|contains|reverse)$/)&&(e[t]=this[t]);return e},repeat:function(e,t,n){if(null==e)return"";if(t=~~t,null==n)return u(o(e),t);for(var r=[];t>0;r[--t]=e);return r.join(n)},naturalCmp:function(e,t){if(e==t)return 0;if(!e)return-1;if(!t)return 1;for(var n=/(\.\d+)|(\d+)|(\D+)/g,r=o(e).toLowerCase().match(n),i=o(t).toLowerCase().match(n),a=Math.min(r.length,i.length),s=0;s<a;s++){var c=r[s],u=i[s];if(c!==u){var l=parseInt(c,10);if(!isNaN(l)){var d=parseInt(u,10);if(!isNaN(d)&&l-d)return l-d}return c<u?-1:1}}return r.length===i.length?r.length-i.length:e<t?-1:1},levenshtein:function(e,t){if(null==e&&null==t)return 0;if(null==e)return o(t).length;if(null==t)return o(e).length;e=o(e),t=o(t);for(var n,r,i=[],a=0;a<=t.length;a++)for(var s=0;s<=e.length;s++)r=a&&s?e.charAt(s-1)===t.charAt(a-1)?n:Math.min(i[s],i[s-1],n)+1:a+s,n=i[s],i[s]=r;return i.pop()},toBoolean:function(e,t,n){return"number"==typeof e&&(e=""+e),"string"!=typeof e?!!e:!!p(e=y.trim(e),t||["true","1"])||!p(e,n||["false","0"])&&void 0}};y.strip=y.trim,y.lstrip=y.ltrim,y.rstrip=y.rtrim,y.center=y.lrpad,y.rjust=y.lpad,y.ljust=y.rpad,y.contains=y.include,y.q=y.quote,y.toBo
2ol=y.toBoolean,e.exports&&(e.exports=y),t._s=y,void 0===(n=function(){return y}.apply(t,[]))||(e.exports=n),r._=r._||{},r._.string=r._.str=y}(this,String)},636478:(e,t)=>{var n=function(){function e(e){if(this._states=[{name:"Alabama",abbreviation:"AL",territory:!1,capital:"Montgomery",contiguous:!0},{name:"Alaska",abbreviation:"AK",territory:!1,capital:"Juneau",contiguous:!1},{name:"American Samoa",abbreviation:"AS",territory:!0,capital:"Pago Pago",contiguous:!1},{name:"Arizona",abbreviation:"AZ",territory:!1,capital:"Phoenix",contiguous:!0},{name:"Arkansas",abbreviation:"AR",territory:!1,capital:"Little Rock",contiguous:!0},{name:"California",abbreviation:"CA",territory:!1,capital:"Sacramento",contiguous:!0},{name:"Colorado",abbreviation:"CO",territory:!1,capital:"Denver",contiguous:!0},{name:"Connecticut",abbreviation:"CT",territory:!1,capital:"Hartford",contiguous:!0},{name:"Delaware",abbreviation:"DE",territory:!1,capital:"Dover",contiguous:!0},{name:"District Of Columbia",abbreviation:"DC",territory:!1,capital:"",contiguous:!0},{name:"Federated States Of Micronesia",abbreviation:"FM",territory:!0,capital:"Palikir",contiguous:!1},{name:"Florida",abbreviation:"FL",territory:!1,capital:"Tallahassee",contiguous:!0},{name:"Georgia",abbreviation:"GA",territory:!1,capital:"Atlanta",contiguous:!0},{name:"Guam",abbreviation:"GU",territory:!0,capital:"Hagåtña",contiguous:!1},{name:"Hawaii",abbreviation:"HI",territory:!1,capital:"Honolulu",contiguous:!1},{name:"Idaho",abbreviation:"ID",territory:!1,capital:"Boise",contiguous:!0},{name:"Illinois",abbreviation:"IL",territory:!1,capital:"Springfield",contiguous:!0},{name:"Indiana",abbreviation:"IN",territory:!1,capital:"Indianapolis",contiguous:!0},{name:"Iowa",abbreviation:"IA",territory:!1,capital:"Des Moines",contiguous:!0},{name:"Kansas",abbreviation:"KS",territory:!1,capital:"Topeka",contiguous:!0},{name:"Kentucky",abbreviation:"KY",territory:!1,capital:"Frankfort",contiguous:!0},{name:"Louisiana",abbreviation:"LA",territory:!1,capital:"Baton Rouge",contiguous:!0},{name:"Maine",abbreviation:"ME",territory:!1,capital:"Augusta",contiguous:!0},{name:"Marshall Islands",abbreviation:"MH",territory:!0,capital:"Majuro",contiguous:!1},{name:"Maryland",abbreviation:"MD",territory:!1,capital:"Annapolis",contiguous:!0},{name:"Massachusetts",abbreviation:"MA",territory:!1,capital:"Boston",contiguous:!0},{name:"Michigan",abbreviation:"MI",territory:!1,capital:"Lansing",contiguous:!0},{name:"Minnesota",abbreviation:"MN",territory:!1,capital:"Saint Paul",contiguous:!0},{name:"Mississippi",abbreviation:"MS",territory:!1,capital:"Jackson",contiguous:!0},{name:"Missouri",abbreviation:"MO",territory:!1,capital:"Jefferson City",contiguous:!0},{name:"Montana",abbreviation:"MT",territory:!1,capital:"Helena",contiguous:!0},{name:"Nebraska",abbreviation:"NE",territory:!1,capital:"Lincoln",contiguous:!0},{name:"Nevada",abbreviation:"NV",territory:!1,capital:"Carson City",contiguous:!0},{name:"New Hampshire",abbreviation:"NH",territory:!1,capital:"Concord",contiguous:!0},{name:"New Jersey",abbreviation:"NJ",territory:!1,capital:"Trenton",contiguous:!0},{name:"New Mexico",abbreviation:"NM",territory:!1,capital:"Santa Fe",contiguous:!0},{name:"New York",abbreviation:"NY",territory:!1,capital:"Albany",contiguous:!0},{name:"North Carolina",abbreviation:"NC",territory:!1,capital:"Raleigh",contiguous:!0},{name:"North Dakota",abbreviation:"ND",territory:!1,capital:"Bismarck",contiguous:!0},{name:"Northern Mariana Islands",abbreviation:"MP",territory:!0,capital:"Saipan",contiguous:!1},{name:"Ohio",abbreviation:"OH",territory:!1,capital:"Columbus",contiguous:!0},{name:"Oklahoma",abbreviation:"OK",territory:!1,capital:"Oklahoma City",contiguous:!0},{name:"Oregon",abbreviation:"OR",territory:!1,capital:"Salem",contiguous:!0},{name:"Palau",abbreviation:"PW",territory:!0,capital:"Ngerulmud",contiguous:!1},{name:"Pennsylvania",abbreviation:"PA",territory:!1,capital:"Harrisburg",contiguous:!0},{name:"Puerto Rico",abbreviation:"PR",territory:!0,capital:"San Juan",contiguous:!1},{name:"Rhode Island",abbreviation:"RI",territory:!1,capital:"Providence",contiguous:!0},{name:"South Carolina",abbreviation:"SC",territory:!1,capital:"Columbia",contiguous:!0},{name:"South Dakota",abbreviation:"SD",territory:!1,capital:"Pierre",contiguous:!0},{name:"Tennessee",abbreviation:"TN",territory:!1,capital:"Nashville",contiguous:!0},{name:"Texas",abbreviation:"TX",territory:!1,capital:"Austin",contiguous:!0},{name:"Utah",abbreviation:"UT",territory:!1,capital:"Salt Lake City",contiguous:!0},{name:"Vermont",abbreviation:"VT",territory:!1,capital:"Montpelier",contiguous:!0},{name:"Virgin Islands",abbreviation:"VI",territory:!0,capital:"Charlotte Amalie",contiguous:!1},{name:"Virginia",abbreviation:"VA",territory:!1,capital:"Richmond",contiguous:!0},{name:"Washington",abbreviation:"WA",territory:!1,capital:"Olympia",contiguous:!0},{name:"West Virginia",abbreviation:"WV",territory:!1,capital:"Charleston",contiguous:!0},{name:"Wisconsin",abbreviation:"WI",territory:!1,capital:"Madison",contiguous:!0},{name:"Wyoming",abbreviation:"WY",territory:!1,capital:"Cheyenne",contiguous:!0}],this.selectorAliases={abbreviation:["a","abbreviations","abbr"],name:["names","state","states","s","n"],capital:["c","cap","capitals"]},this.defaultFormat={abbreviation:"name"},this.defaultSelector="abbreviation",this.defaultConfig={contiguousOnly:!1,includeTerritories:!1,exclude:[]},this.config=this.defaultConfig,e)for(var t in this.config)void 0!==e[t]&&(this.config[t]=e[t]);this.aliasKeys=Object.keys(this.selectorAliases),this.states=this.generateStates()}return e.prototype.generateStates=function(){for(var e=[],t=0,n=this._states;t<n.length;t++){var r=n[t];this.config.contiguousOnly&&!r.contiguous||!this.config.includeTerritories&&r.territory||this.config.exclude&&(this.config.exclude.indexOf(r.abbreviation)>=0||this.config.exclude.indexOf(r.name)>=0||this.config.exclude.indexOf(r.capital)>
2=0)||e.push(r)}return e},e.prototype.arrayOf=function(e){var t=e?this.findSelector(e):this.defaultSelector;if(!t)throw new Error("Invalid selector used: "+e);for(var n=[],r=0,o=this.states;r<o.length;r++){var i=o[r];n.push(i[t])}return n},e.prototype.format=function(e){for(var t=[],n=e?this.normalizeFormat(e):this.defaultFormat,r=0,o=this.states;r<o.length;r++){var i=o[r],a={};for(var s in n){var c=this.findSelector(s),u=this.findSelector(n[s]);c||"$"!==s[0]||(s=s.substr(1)),u||"$"!==n[s][0]||(n[s]=n[s].substr(1)),a[c?i[c]:s]=u?i[u]:n[s]}t.push(a)}return t},e.prototype.normalizeFormat=function(e){var t={};for(var n in e){var r=this.findSelector(n),o=this.findSelector(e[n]);t[r||n]=o||e[n]}return t},e.prototype.findSelector=function(e){var t=e.toLowerCase();if(this.aliasKeys.indexOf(t)>=0)return t;for(var n=0,r=this.aliasKeys;n<r.length;n++){var o=r[n];if(this.selectorAliases[o].indexOf(t)>=0)return o}return null},e}();t.UsaStates=n},679278:(e,t,n)=>{"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.r(t),n.d(t,{VueMaskDirective:()=>j,VueMaskFilter:()=>N,VueMaskPlugin:()=>R,default:()=>R});var s="_",c="function",u=[];function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if(!d(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\n"+"The placeholder character that was received is: ".concat(JSON.stringify(t),"\n\n")+"The mask that was received is: ".concat(JSON.stringify(e)));return e.map((function(e){return e instanceof RegExp?t:e})).join("")}function d(e){return Array.isArray&&Array.isArray(e)||e instanceof Array}function p(e){for(var t,n=[];-1!==(t=e.indexOf("[]"));)n.push(t),e.splice(t,1);return{maskWithoutCaretTraps:e,indexes:n}}var f=[],h="";function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!d(t)){if(i(t)!==c)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=p(t=t(e,n)).maskWithoutCaretTraps}var r=n.guide,o=void 0===r||r,a=n.previousConformedValue,u=void 0===a?h:a,m=n.placeholderChar,g=void 0===m?s:m,y=n.placeholder,v=void 0===y?l(t,g):y,b=n.currentCaretPosition,_=n.keepCharPositions,w=!1===o&&void 0!==u,S=e.length,C=u.length,k=v.length,x=t.length,E=S-C,O=E>0,T=b+(O?-E:0),A=T+Math.abs(E);if(!0===_&&!O){for(var P=h,I=T;I<A;I++)v[I]===g&&(P+=g);e=e.slice(0,T)+P+e.slice(T,S)}for(var j=e.split(h).map((function(e,t){return{char:e,isNew:t>=T&&t<A}})),L=S-1;L>=0;L--){var N=j[L].char;if(N!==g){var R=L>=T&&C===x;N===v[R?L-E:L]&&j.splice(L,1)}}var D=h,M=!1;e:for(var F=0;F<k;F++){var U=v[F];if(U===g){if(j.length>0)for(;j.length>0;){var B=j.shift(),$=B.char,H=B.isNew;if($===g&&!0!==w){D+=g;continue e}if(t[F].test($)){if(!0===_&&!1!==H&&u!==h&&!1!==o&&O){for(var z=j.length,q=null,V=0;V<z;V++){var G=j[V];if(G.char!==g&&!1===G.isNew)break;if(G.char===g){q=V;break}}null!==q?(D+=$,j.splice(q,1)):F--}else D+=$;continue e}M=!0}!1===w&&(D+=v.substr(F,k));break}D+=U}if(w&&!1===O){for(var W=null,Y=0;Y<D.length;Y++)v[Y]===g&&(W=Y);D=null!==W?D.substr(0,W+1):h}return{conformedValue:D,meta:{someCharsRejected:M}}}var g={__nextCharOptional__:!0},y={"#":/\d/,A:/[a-z]/i,N:/[a-z0-9]/i,"?":g,X:/./},v=function(e){return n=(t=e.toString().replace(/.(\/)[gmiyus]{0,6}$/,(function(e){return e.replace("/","?/")}))).lastIndexOf("/"),new RegExp(t.slice(1,n),t.slice(n+1));var t,n},b=function(e){return e instanceof RegExp?e:function(e){return new RegExp("/[".concat(function(e){return"[\\^$.|?*+()".indexOf(e)>-1?"\\".concat(e):e}(e),"]/"))}(e)};function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;return e.map((function(e,n,r){var o=t[e]||e,i=r[n-1],a=t[i]||i;return o===g?null:a===g?v(b(o)):o}
2)).filter(Boolean)}var w=function(e){return e instanceof HTMLInputElement?e:e.querySelector("input")||e},S=function(e){return"function"==typeof e},C=function(e){return"string"==typeof e};function k(e,t){return Array.isArray(e)?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;return _(e.map((function(e){return e instanceof RegExp?e:"string"==typeof e?e.split(""):null})).filter(Boolean).reduce((function(e,t){return e.concat(t)}),[]),t)}(e,t):S(e)?e:C(e)&&e.length>0?function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;return _(e.split(""),t)}(e,t):e}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y;return null===e||Array.isArray(e)||"object"!==i(e)?t:Object.keys(e).reduce((function(t,n){var r=e[n];return null===r||r instanceof RegExp?o(o({},t),{},a({},n,r)):t}),t)}var E=function(){var e=new Map,t={previousValue:"",mask:[]};function n(n){return e.get(n)||o({},t)}return{partiallyUpdate:function(t,r){e.set(t,o(o({},n(t)),r))},remove:function(t){e.delete(t)},get:n}}();function O(e){!function(e,t){var n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(e)}function T(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.value,r=E.get(e),o=r.previousValue,i=r.mask,a=n!==o,s=n.length>o.length,c=n&&a&&s;if((t||c)&&i){var u=m(n,i,{guide:!1}),l=u.conformedValue;e.value=l,O(e)}E.partiallyUpdate(e,{previousValue:n})}function A(e,t,n){var r=k(t,n);E.partiallyUpdate(e,{mask:r})}function P(e){return(Array.isArray(e)?e:[e]).filter((function(e){return C(e)||e instanceof RegExp})).toString()}function I(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=x(e&&e.placeholders);return{bind:function(e,n){var r=n.value;A(e=w(e),r,t),T(e)},componentUpdated:function(e,n){var r=n.value,o=n.oldValue;e=w(e);var i=S(r)||P(o)!==P(r);i&&A(e,r,t),T(e,i)},unbind:function(e){e=w(e),E.remove(e)}}}var j=I();function L(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=x(e&&e.placeholders);return function(e,n){if(!C(e)&&!Number.isFinite(e))return e;var r=k(n,t);return m("".concat(e),r,{guide:!1}).conformedValue}}var N=L(),R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.directive("mask",I(t)),e.filter("VMask",L(t))}},313034:(e,t,n)=>{"use strict";n.r(t),n.d(t,{VClosePopover:()=>ft,VPopover:()=>ht,VTooltip:()=>pt,createTooltip:()=>He,default:()=>yt,destroyTooltip:()=>ze,install:()=>dt});var r=n(671002),o=n(204942),i=n(215671),a=n(143144),s="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,c=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(s&&navigator.userAgent.indexOf(e[t])>=0)return 1;return 0}(),u=s&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then((function(){t=!1,e()})))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout((function(){t=!1,e()}),c))}};function l(e){return e&&"[object Function]"==={}.toString.call(e)}function d(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function p(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function f(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=d(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/(auto|scroll|overlay)/.test(n+o+r)?e:f(p(e))}function h(e){return e&&e.referenceNode?e.referenceNode:e}var m=s&&!(!window.MSInputMethodContext||!document.documentMode),g=s&&/MSIE 10/.test(navigator.userAgent);function y(e){return 11===e?m:10===e?g:m||g}function v(e){if(!e)return document.documentElement;for(var t=y(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var r=n&&n.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===d(n,"position")?v(n):n:e?e.ownerDocument.documentElement:document.documentElement}function b(e){return null!==e.parentNode?b(e.parentNode):e}function _(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?e:t,o=n?t:e,i=document.createRange();i.setStart(r,0),i.setEnd(o,0);var a,s,c=i.commonAncestorContainer;if(e!==c&&t!==c||r.contains(o))return"BODY"===(s=(a=c).nodeName)||"HTML"!==s&&v(a.firstElementChild)!==a?v(c):c;var u=b(e);return u.host?_(u.host,t):_(e,b(t).host)}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===t?"scrollTop":"scrollLeft",r=e.nodeName;if("BODY"===r||"HTML"===r){var o=e.ownerDocument.documentElement,i=e.ownerDocument.scrollingElement||o;return i[n]}return e[n]}function S(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=w(t,"top"),o=w(t,"left"),i=n?-1:1;return e.top+=r*i,e.bottom+=r*i,e.left+=o*i,e.right+=o*i,e}function C(e,t){var n="x"===t?"Left":"Top",r="Left"===n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+r+"Width"])}function k(e,t,n,r){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],y(10)?parseInt(n["offset"+e])+parseInt(r["margin"+("Height"===e?"Top":"Left")])+parseInt(r["margin"+("Height"===e?"Bottom":"Right")]):0)}function x(e){var t=e.body,n=e.documentElement,r=y(10)&&getComputedStyle(n);return{height:k("Height",t,n,r),width:k("Width",t,n,r)}}var E=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},O=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),T=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function P(e){return A({},e,{right:e.left+e.width,bottom:e.top+e.height})}function I(e){var t={};try{if(y(10)){t=e.getBoundingClientRect();
vendor: 6,327 bytes, line 2
2var n=w(e,"top"),r=w(e,"left");t.top+=n,t.left+=r,t.bottom+=n,t.right+=r}else t=e.getBoundingClientRect()}catch(e){}var o={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top},i="HTML"===e.nodeName?x(e.ownerDocument):{},a=i.width||e.clientWidth||o.width,s=i.height||e.clientHeight||o.height,c=e.offsetWidth-a,u=e.offsetHeight-s;if(c||u){var l=d(e);c-=C(l,"x"),u-=C(l,"y"),o.width-=c,o.height-=u}return P(o)}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=y(10),o="HTML"===t.nodeName,i=I(e),a=I(t),s=f(e),c=d(t),u=parseFloat(c.borderTopWidth),l=parseFloat(c.borderLeftWidth);n&&o&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var p=P({top:i.top-a.top-u,left:i.left-a.left-l,width:i.width,height:i.height});if(p.marginTop=0,p.marginLeft=0,!r&&o){var h=parseFloat(c.marginTop),m=parseFloat(c.marginLeft);p.top-=u-h,p.bottom-=u-h,p.left-=l-m,p.right-=l-m,p.marginTop=h,p.marginLeft=m}return(r&&!n?t.contains(s):t===s&&"BODY"!==s.nodeName)&&(p=S(p,t)),p}function L(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.ownerDocument.documentElement,r=j(e,n),o=Math.max(n.clientWidth,window.innerWidth||0),i=Math.max(n.clientHeight,window.innerHeight||0),a=t?0:w(n),s=t?0:w(n,"left"),c={top:a-r.top+r.marginTop,left:s-r.left+r.marginLeft,width:o,height:i};return P(c)}function N(e){var t=e.nodeName;if("BODY"===t||"HTML"===t)return!1;if("fixed"===d(e,"position"))return!0;var n=p(e);return!!n&&N(n)}function R(e){if(!e||!e.parentElement||y())return document.documentElement;for(var t=e.parentElement;t&&"none"===d(t,"transform");)t=t.parentElement;return t||document.documentElement}function D(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i={top:0,left:0},a=o?R(e):_(e,h(t));if("viewport"===r)i=L(a,o);else{var s=void 0;"scrollParent"===r?"BODY"===(s=f(p(t))).nodeName&&(s=e.ownerDocument.documentElement):s="window"===r?e.ownerDocument.documentElement:r;var c=j(s,a,o);if("HTML"!==s.nodeName||N(a))i=c;else{var u=x(e.ownerDocument),l=u.height,d=u.width;i.top+=c.top-c.marginTop,i.bottom=l+c.top,i.left+=c.left-c.marginLeft,i.right=d+c.left}}var m="number"==typeof(n=n||0);return i.left+=m?n:n.left||0,i.top+=m?n:n.top||0,i.right-=m?n:n.right||0,i.bottom-=m?n:n.bottom||0,i}function M(e){return e.width*e.height}function F(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===e.indexOf("auto"))return e;var a=D(n,r,i,o),s={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(s).map((function(e){return A({key:e},s[e],{area:M(s[e])})})).sort((function(e,t){return t.area-e.area})),u=c.filter((function(e){var t=e.width,r=e.height;return t>=n.clientWidth&&r>=n.clientHeight})),l=u.length>0?u[0].key:c[0].key,d=e.split("-")[1];return l+(d?"-"+d:"")}function U(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=r?R(t):_(t,h(n));return j(n,o,r)}function B(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),r=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+r,height:e.offsetHeight+n}}function $(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,(function(e){return t[e]}))}function H(e,t,n){n=n.split("-")[0];var r=B(e),o={width:r.width,height:r.height},i=-1!==["right","left"].indexOf(n),a=i?"top":"left",s=i?"left":"top",c=i?"height":"width",u=i?"width":"height";return o[a]=t[a]+t[c]/2-r[c]/2,o[s]=n===s?t[s]-r[u]:t[$(s)],o}function z(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function q(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex((function(e){return e.name===n}));var r=z(e,(function(e){return e.name===n}));return e.indexOf(r)}(e,0,n))).forEach((function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&l(n)&&(t.offsets.popper=P(t.offsets.popper),t.offsets.reference=P(t.offsets.reference),t=n(t,e))})),t}function V(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=U(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=F(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=H(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=q(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}function G(e,t){return e.some((function(e){var n=e.name;return e.enabled&&n===t}))}function W(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),r=0;r<t.length;r++){var o=t[r],i=o?""+o+n:e;if(void 0!==document.body.style[i])return i}return null}function Y(){return this.state.isDestroyed=!0,G(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[W("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function K(e){var t=e.ownerDocument;return t?t.defaultView:window}function J(e,t,n,r){var o="BODY"===e.nodeName,i=o?e.ownerDocument.defaultView:e;i.addEventListener(t,n,{passive:!0}),o||J(f(i.parentNode),t,n,r),r.push(i)}function Z(e,t,n,r){n.updateBound=r,K(e).addEventListener("resize",n.updateBound,{passive:!0});var o=f(e);return J(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}function X(){this.state.eventsEnabled||(this.state=Z(this.reference,this.options,this.state,this.scheduleUpdate))}function Q(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return K(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEac
vendor: 8,804 bytes, line 2
2h((function(e){e.removeEventListener("scroll",t.updateBound)})),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function ee(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function te(e,t){Object.keys(t).forEach((function(n){var r="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&ee(t[n])&&(r="px"),e.style[n]=t[n]+r}))}var ne=s&&/Firefox/i.test(navigator.userAgent);function re(e,t,n){var r=z(e,(function(e){return e.name===t})),o=!!r&&e.some((function(e){return e.name===n&&e.enabled&&e.order<r.order}));if(!o){var i="`"+t+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return o}var oe=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],ie=oe.slice(3);function ae(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=ie.indexOf(e),r=ie.slice(n+1).concat(ie.slice(0,n));return t?r.reverse():r}var se={shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],r=t.split("-")[1];if(r){var o=e.offsets,i=o.reference,a=o.popper,s=-1!==["bottom","top"].indexOf(n),c=s?"left":"top",u=s?"width":"height",l={start:T({},c,i[c]),end:T({},c,i[c]+i[u]-a[u])};e.offsets.popper=A({},a,l[r])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,r=t.offset,o=e.placement,i=e.offsets,a=i.popper,s=i.reference,c=o.split("-")[0];return n=ee(+r)?[+r,0]:function(e,t,n,r){var o=[0,0],i=-1!==["right","left"].indexOf(r),a=e.split(/(\+|\-)/).map((function(e){return e.trim()})),s=a.indexOf(z(a,(function(e){return-1!==e.search(/,|\s/)})));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var c=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(c)[0]]),[a[s].split(c)[1]].concat(a.slice(s+1))]:[a];return u=u.map((function(e,r){var o=(1===r?!i:i)?"height":"width",a=!1;return e.reduce((function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,a=!0,e):a?(e[e.length-1]+=t,a=!1,e):e.concat(t)}),[]).map((function(e){return function(e,t,n,r){var o=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+o[1],a=o[2];return i?0===a.indexOf("%")?P("%p"===a?n:r)[t]/100*i:"vh"===a||"vw"===a?("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*i:i:e}(e,o,t,n)}))})),u.forEach((function(e,t){e.forEach((function(n,r){ee(n)&&(o[t]+=n*("-"===e[r-1]?-1:1))}))})),o}(r,a,s,c),"left"===c?(a.top+=n[0],a.left-=n[1]):"right"===c?(a.top+=n[0],a.left+=n[1]):"top"===c?(a.left+=n[0],a.top-=n[1]):"bottom"===c&&(a.left+=n[0],a.top+=n[1]),e.popper=a,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||v(e.instance.popper);e.instance.reference===n&&(n=v(n));var r=W("transform"),o=e.instance.popper.style,i=o.top,a=o.left,s=o[r];o.top="",o.left="",o[r]="";var c=D(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);o.top=i,o.left=a,o[r]=s,t.boundaries=c;var u=t.priority,l=e.offsets.popper,d={primary:function(e){var n=l[e];return l[e]<c[e]&&!t.escapeWithReference&&(n=Math.max(l[e],c[e])),T({},e,n)},secondary:function(e){var n="right"===e?"left":"top",r=l[n];return l[e]>c[e]&&!t.escapeWithReference&&(r=Math.min(l[n],c[e]-("right"===e?l.width:l.height))),T({},n,r)}};return u.forEach((function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";l=A({},l,d[t](e))})),e.offsets.popper=l,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,r=t.reference,o=e.placement.split("-")[0],i=Math.floor,a=-1!==["top","bottom"].indexOf(o),s=a?"right":"bottom",c=a?"left":"top",u=a?"width":"height";return n[s]<i(r[c])&&(e.offsets.popper[c]=i(r[c])-n[u]),n[c]>i(r[s])&&(e.offsets.popper[c]=i(r[s])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!re(e.instance.modifiers,"arrow","keepTogether"))return e;var r=t.element;if("string"==typeof r){if(!(r=e.instance.popper.querySelector(r)))return e}else if(!e.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var o=e.placement.split("-")[0],i=e.offsets,a=i.popper,s=i.reference,c=-1!==["left","right"].indexOf(o),u=c?"height":"width",l=c?"Top":"Left",p=l.toLowerCase(),f=c?"left":"top",h=c?"bottom":"right",m=B(r)[u];s[h]-m<a[p]&&(e.offsets.popper[p]-=a[p]-(s[h]-m)),s[p]+m>a[h]&&(e.offsets.popper[p]+=s[p]+m-a[h]),e.offsets.popper=P(e.offsets.popper);var g=s[p]+s[u]/2-m/2,y=d(e.instance.popper),v=parseFloat(y["margin"+l]),b=parseFloat(y["border"+l+"Width"]),_=g-e.offsets.popper[p]-v-b;return _=Math.max(Math.min(a[u]-m,_),0),e.arrowElement=r,e.offsets.arrow=(T(n={},p,Math.round(_)),T(n,f,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(G(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=D(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),r=e.placement.split("-")[0],o=$(r),i=e.placement.split("-")[1]||"",a=[];switch(t.behavior){case"flip":a=[r,o];break;case"clockwise":a=ae(r);break;case"counterclockwise":a=ae(r,!0);break;default:a=t.behavior}return a.forEach((function(s,c){if(r!==s||a.length===c+1)return e;r=e.placement.split("-")[0],o=$(r);var u=e.offsets.popper,l=e.offsets.reference,d=Math.floor,p="left"===r&&d(u.right)>d(l.left)||"right"===r&&d(u.left)<d(l.right)||"top"===r&&d(u.bottom)>d(l.top)||"bottom"===r&&d(u.top)<d(l.bottom),f=d(u.left)<d(n.left),h=d(u.right)>d(n.right),m=d(u.top)<d(n.top),g=d(u.bottom)>d(n.bottom),y="left"===r&&f||"right"===r&&h||"top"===r&&m||"bottom"===r&&g,v=-1!==["top","bottom"].indexOf(r),b=!!t.flipVariations&&(v&&"start"===i&&f||v&&"end"===i&&h||!v&&"start"===i&&m||!v&&"end"===i&&g),_=!!t.flipVariationsByContent&&(v&&"start"===i&&h||v&&"end"===i&&f||!v&&"start"===i&&g||!v&&"end"===i&&m),w=b||_;(p||y||w)&&(e.flipped=!0,(p||y)&&(r=a[c+1]),w&&(i=function(e){return"end"===e?"start":"start"===e?"end":e}(i)),e.placement=r+(i?"-"+i:""),e.offsets.popper=A({},e.offsets.popper,H(e.instance.popper,e.offsets.reference,e.placement)),e=q(e.instance.modifiers,e,"flip"))})),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],r=e.offsets,o=r.popper,i=r.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return o[a?"left":"top"]=i[n]-(s?o[a?"width":"height"]:0),e.placement=$(t),e.offsets.popper=P(o),e}},hide:{order:800,enabled:!0,fn:function(e){if(!re(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=z(e.instance.modifiers,(function(e){return"preventOverflow"===e.name})).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,r=t.y,o=e.offsets.popper,i=z(e.instance.modifiers,(function(e){return"applyStyle"===e.name})).gpuAcceleration;void 0!==i&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a,s,c=void 0!==i?i:t.gpuAcceleration,u=v(e.instance.popper),l=I(u),d={position:o.position},p=function(e,t){var n=e.offsets,r=n.popper,o=n.reference,i=Math.round,a=Math.floor,s=function(e){return e},c=i(o.width),u=i(r.width),l=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),p=t?l||d||c%2==u%2?i:a:s,f=t?i:s;return{left:p(c%2==1&&u%2==1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:p(r.right)}}(e,window.devicePixelRatio<2||!ne),f="bottom"===n?"top":"bottom",h="right"===r?"left":"right",m=W("transform");if(s="bottom"===f?"HTML"===u.nodeName?-u.clientHeight+p.bottom:-l.height+p.bottom:p.top,a="right"===h?"HTML"===u.nodeName?-u.clientWidth+p.right:-l.width+p.right:p.left,c&&m)d[m]="translate3d("+a+"px, "+s+"px, 0)",d[f]=0,d[h]=0,d.willChange="transform";else{var g="bottom"===f?-1:1,y="right"===h?-1:1;d[f]=s*g,d[h]=a*y,d.willChange=f+", "+h}var b={"x-placement":e.placement};return e.attributes=A({},b,e.attributes),e.styles=A({},d,e.styles),e.arrowStyles=A({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){var t,n;return te(e.instance.popper,e.styles),t=e.instance.popper,n=e.attributes,Object.keys(n).forEac
2h((function(e){!1!==n[e]?t.setAttribute(e,n[e]):t.removeAttribute(e)})),e.arrowElement&&Object.keys(e.arrowStyles).length&&te(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,r,o){var i=U(o,t,e,n.positionFixed),a=F(n.placement,i,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",a),te(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}},ce={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:se},ue=function(){function e(t,n){var r=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};E(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=u(this.update.bind(this)),this.options=A({},e.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(A({},e.Defaults.modifiers,o.modifiers)).forEach((function(t){r.options.modifiers[t]=A({},e.Defaults.modifiers[t]||{},o.modifiers?o.modifiers[t]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(e){return A({name:e},r.options.modifiers[e])})).sort((function(e,t){return e.order-t.order})),this.modifiers.forEach((function(e){e.enabled&&l(e.onLoad)&&e.onLoad(r.reference,r.popper,r.options,e,r.state)})),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return O(e,[{key:"update",value:function(){return V.call(this)}},{key:"destroy",value:function(){return Y.call(this)}},{key:"enableEventListeners",value:function(){return X.call(this)}},{key:"disableEventListeners",value:function(){return Q.call(this)}}]),e}();ue.Utils=("undefined"!=typeof window?window:n.g).PopperUtils,ue.placements=oe,ue.Defaults=ce;const le=ue;var de,pe=n(573093),fe=n.n(pe);function he(){he.init||(he.init=!0,de=-1!==function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}())}function me(e,t,n,r,o,i,a,s,c,u){"boolean"!=typeof a&&(c=s,s=a,a=!1);var l,d="function"==typeof n?n.options:n;if(e&&e.render&&(d.render=e.render,d.staticRenderFns=e.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),r&&(d._scopeId=r),i?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},d._ssrRegister=l):t&&(l=a?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),l)if(d.functional){var p=d.render;d.render=function(e,t){return l.call(t),p(e,t)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,l):[l]}return n}var ge={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;he(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()}));var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",de&&this.$el.appendChild(t),t.data="about:blank",de||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!de&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},ye=function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})};ye._withStripped=!0;var ve=me({render:ye,staticRenderFns:[]},void 0,ge,"data-v-8859cc6c",!1,void 0,!1,void 0,void 0,void 0),be={version:"1.0.1",install:function(e){e.component("resize-observer",ve),e.component("ResizeObserver",ve)}},_e=null;"undefined"!=typeof window?_e=window.Vue:void 0!==n.g&&(_e=n.g.Vue),_e&&_e.use(be);var we=n(700487),Se=n.n(we),Ce=function(){};function ke(e){return"string"==typeof e&&(e=e.split(" ")),e}function xe(e,t){var n,r=ke(t);n=e.className instanceof Ce?ke(e.className.baseVal):ke(e.className),r.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}function Ee(e,t){var n,r=ke(t);n=e.className instanceof Ce?ke(e.className.baseVal):ke(e.className),r.forEach((function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1)})),e instanceof SVGElement?e.setAttribute("class",n.join(" ")):e.className=n.join(" ")}"undefined"!=typeof window&&(Ce=window.SVGAnimatedString);var Oe=!1;if("undefined"!=typeof window){Oe=!1;try{var Te=Object.defineProperty({},"passive",{get:function(){Oe=!0}});window.addEventListener("test",null,Te)}catch(e){}}function Ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Ae(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ie={container:!1,delay:0,html:!1,placement:"top",title:"",template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",offset:0},je=[],Le=function(){function e(t,n){var r=this;(0,i.Z)(this,e),(0,o.Z)(this,"_events",[]),(0,o.Z)(this,"_setTooltipNodeEvent",(function(e,t,n,o){var i=e.relatedreference||e.toElement||e.relatedTarget;return!!r._tooltipNode.contains(i)&&(r._tooltipNode.addEventListener(e.type,(function n(i){var a=i.relatedreference||i.toElement||i.relatedTarget;r._tooltipNode.removeEventListener(e.type,n),t.contains(a)||r._scheduleHide(t,o.delay,o,i)})),!0)})),n=Pe(Pe({},Ie),n),t.jquery&&(t=t[0]),this.show=this.show.bind(this),this.hide=this.hide.bind(this),this.reference=t,this.options=n,this._isOpen=!1,this._init()}return(0,a.Z)(e,[{key:"show",value:function(){this._show(this.reference,this.options)}},{key:"hide",value:function(){this._hide()}},{key:"dispose",value:function(){this._dispose()}},{key:"toggle",value:function(){return this._isOpen?this.hide():this.show()}},{key:"setClasses",value:function(e){this._classes=e}},{key:"setContent",value:function(e){this.options.title=e,this._tooltipNode&&this._setContent(e,this.options)}},{key:"setOptions",value:function(e){var t=!1,n=e&&e.classes||Ve.options.defaultClass;fe()(this._classes,n)||(this.setClasses(n),t=!0),e=Ue(e);var r=!1,o=!1;for(var i in this.options.offset===e.offset&&this.options.placement===e.placement||(r=!0),(this.options.template!==e.template||this.options.trigger!==e.trigger||this.options.container!==e.container||t)&&(o=!0),e)this.options[i]=e[i];if(this._tooltipNode)if(o){var a=this._isOpen;this.dispose(),this._init(),a&&this.show()}else r&&this.popperInstance.update()}},{key:"_init",value:function(){var e="string"==typeof this.options.trigger?this.options.trigger.split(" "):[];this._isDisposed=!1,this._enableDocumentTouch=-1===e.indexOf("manual"),e=e.filter((function(e){return-1!==["click","hover","focus"].indexOf(e)})),this._setEventListeners(this.reference,e,this.options),this.$_originalTitle=this.reference.getAttribute("title"),this.reference.removeAttribute("title"),this.reference.setAttribute("data-original-title",this.$_originalTitle)}},{key:"_create",value:function(e,t){var n=this,r=window.document.createElement("div");r.innerHTML=t.trim();var o=r.childNodes[0];return o.id=this.options.ariaId||"tooltip_".concat(Math.random().toString(36).substr(2,10)),o.setAttribute("aria-hidden","true"),this.options.autoHide&&-1!==this.options.trigger.indexOf("hover")&&(o.addEventListener("mouseenter",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)})),o.addEventListener("click",(function(t){return n._scheduleHide(e,n.options.delay,n.options,t)}))),o}},{key:"_setContent",value:function(e,t){var n=this;this.asyncContent=!1,this._applyContent(e,t).then((function(){n.popperInstance&&n.popperInstance.update()}))}},{key:"_applyContent",value:function(e,t){var n=this;return new Promise((function(r,o){var i=t.html,a=n._tooltipNode;if(a){var s=a.querySelector(n.options.innerSelector);if(1===e.nodeType){if(i){for(;s.firstChild;)s.removeChild(s.firstChild);s.appendChild(e)}}else{if("function"==typeof e){var c=e();return void(c&&"function"==typeof c.then?(n.asyncContent=!0,t.loadingClass&&xe(a,t.loadingClass),t.loadingContent&&n._applyContent(t.loadingContent,t),c.then((function(e){return t.loadingClass&&Ee(a,t.loadingClass),n._applyContent(e,t)})).then(r).catch(o)):n._applyContent(c,t).then(r).catch(o))}i?s.innerHTML=e:s.innerText=e}r()}}))}},{key:"_show",value:function(e,t){if(!t||"string"!=typeof t.container||document.querySelector(t.container)){clearTimeout(this._disposeTimer),delete(t=Object.assign({},t)).offset;var n=!0;this._tooltipNode&&(xe(this._tooltipNode,this._classes),n=!1);var r=this._ensureShown(e,t);return n&&this._tooltipNode&&xe(this._tooltipNode,this._classes),xe(e,["v-tooltip-open"]),r}}},{key:"_ensureShown",value:function(e,t){var n=this;if(this._isOpen)return this;if(this._isOpen=!0,je.push(this),this._tooltipNode)return this._tooltipNode.style.display="",this._tooltipNode.setAttribute("aria-hidden","false"),this.popperInstance.enableEventListeners(),this.popperInstance.update(
2),this.asyncContent&&this._setContent(t.title,t),this;var r=e.getAttribute("title")||t.title;if(!r)return this;var o=this._create(e,t.template);this._tooltipNode=o,e.setAttribute("aria-describedby",o.id);var i=this._findContainer(t.container,e);this._append(o,i);var a=Pe(Pe({},t.popperOptions),{},{placement:t.placement});return a.modifiers=Pe(Pe({},a.modifiers),{},{arrow:{element:this.options.arrowSelector}}),t.boundariesElement&&(a.modifiers.preventOverflow={boundariesElement:t.boundariesElement}),this.popperInstance=new le(e,o,a),this._setContent(r,t),requestAnimationFrame((function(){!n._isDisposed&&n.popperInstance?(n.popperInstance.update(),requestAnimationFrame((function(){n._isDisposed?n.dispose():n._isOpen&&o.setAttribute("aria-hidden","false")}))):n.dispose()})),this}},{key:"_noLongerOpen",value:function(){var e=je.indexOf(this);-1!==e&&je.splice(e,1)}},{key:"_hide",value:function(){var e=this;if(!this._isOpen)return this;this._isOpen=!1,this._noLongerOpen(),this._tooltipNode.style.display="none",this._tooltipNode.setAttribute("aria-hidden","true"),this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this._disposeTimer);var t=Ve.options.disposeTimeout;return null!==t&&(this._disposeTimer=setTimeout((function(){e._tooltipNode&&(e._tooltipNode.removeEventListener("mouseenter",e.hide),e._tooltipNode.removeEventListener("click",e.hide),e._removeTooltipNode())}),t)),Ee(this.reference,["v-tooltip-open"]),this}},{key:"_removeTooltipNode",value:function(){if(this._tooltipNode){var e=this._tooltipNode.parentNode;e&&(e.removeChild(this._tooltipNode),this.reference.removeAttribute("aria-describedby")),this._tooltipNode=null}}},{key:"_dispose",value:function(){var e=this;return this._isDisposed=!0,this.reference.removeAttribute("data-original-title"),this.$_originalTitle&&this.reference.setAttribute("title",this.$_originalTitle),this._events.forEach((function(t){var n=t.func,r=t.event;e.reference.removeEventListener(r,n)})),this._events=[],this._tooltipNode?(this._hide(),this._tooltipNode.removeEventListener("mouseenter",this.hide),this._tooltipNode.removeEventListener("click",this.hide),this.popperInstance.destroy(),this.popperInstance.options.removeOnDestroy||this._removeTooltipNode()):this._noLongerOpen(),this}},{key:"_findContainer",value:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e}},{key:"_append",value:function(e,t){t.appendChild(e)}},{key:"_setEventListeners",value:function(e,t,n){var r=this,o=[],i=[];t.forEach((function(e){switch(e){case"hover":o.push("mouseenter"),i.push("mouseleave"),r.options.hideOnTargetClick&&i.push("click");break;case"focus":o.push("focus"),i.push("blur"),r.options.hideOnTargetClick&&i.push("click");break;case"click":o.push("click"),i.push("click")}})),o.forEach((function(t){var o=function(t){!0!==r._isOpen&&(t.usedByTooltip=!0,r._scheduleShow(e,n.delay,n,t))};r._events.push({event:t,func:o}),e.addEventListener(t,o)})),i.forEach((function(t){var o=function(t){!0!==t.usedByTooltip&&r._scheduleHide(e,n.delay,n,t)};r._events.push({event:t,func:o}),e.addEventListener(t,o)}))}},{key:"_onDocumentTouch",value:function(e){this._enableDocumentTouch&&this._scheduleHide(this.reference,this.options.delay,this.options,e)}},{key:"_scheduleShow",value:function(e,t,n){var r=this,o=t&&t.show||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){return r._show(e,n)}),o)}},{key:"_scheduleHide",value:function(e,t,n,r){var o=this,i=t&&t.hide||t||0;clearTimeout(this._scheduleTimer),this._scheduleTimer=window.setTimeout((function(){if(!1!==o._isOpen&&o._tooltipNode.ownerDocument.body.contains(o._tooltipNode)){if("mouseleave"===r.type&&o._setTooltipNodeEvent(r,e,t,n))return;o._hide(e,n)}}),i)}}]),e}();function Ne(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Ne(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}"undefined"!=typeof document&&document.addEventListener("touchstart",(function(e){for(var t=0;t<je.length;t++)je[t]._onDocumentTouch(e)}),!Oe||{passive:!0,capture:!0});var De={enabled:!0},Me=["top","top-start","top-end","right","right-start","right-end","bottom","bottom-start","bottom-end","left","left-start","left-end"],Fe={defaultPlacement:"top",defaultClass:"vue-tooltip-theme",defaultTargetClass:"has-tooltip",defaultHtml:!0,defaultTemplate:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',defaultArrowSelector:".tooltip-arrow, .tooltip__arrow",defaultInnerSelector:".tooltip-inner, .tooltip__inner",defaultDelay:0,defaultTrigger:"hover focus",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultLoadingClass:"tooltip-loading",defaultLoadingContent:"...",autoHide:!0,defaultHideOnTargetClick:!0,disposeTimeout:5e3,popover:{defaultPlacement:"bottom",defaultClass:"vue-popover-theme",defaultBaseClass:"tooltip popover",defaultWrapperClass:"wrapper",defaultInnerClass:"tooltip-inner popover-inner",defaultArrowClass:"tooltip-arrow popover-arrow",defaultOpenClass:"open",defaultDelay:0,defaultTrigger:"click",defaultOffset:0,defaultContainer:"body",defaultBoundariesElement:void 0,defaultPopperOptions:{},defaultAutoHide:!0,defaultHandleResize:!0}};function Ue(e){var t={placement:void 0!==e.placement?e.placement:Ve.options.defaultPlacement,delay:void 0!==e.delay?e.delay:Ve.options.defaultDelay,html:void 0!==e.html?e.html:Ve.options.defaultHtml,template:void 0!==e.template?e.template:Ve.options.defaultTemplate,arrowSelector:void 0!==e.arrowSelector?e.arrowSelector:Ve.options.defaultArrowSelector,innerSelector:void 0!==e.innerSelector?e.innerSelector:Ve.options.defaultInnerSelector,trigger:void 0!==e.trigger?e.trigger:Ve.options.defaultTrigger,offset:void 0!==e.offset?e.offset:Ve.options.defaultOffset,container:void 0!==e.container?e.container:Ve.options.defaultContainer,boundariesElement:void 0!==e.boundariesElement?e.boundariesElement:Ve.options.defaultBoundariesElement,autoHide:void 0!==e.autoHide?e.autoHide:Ve.options.autoHide,hideOnTargetClick:void 0!==e.hideOnTargetClick?e.hideOnTargetClick:Ve.options.defaultHideOnTargetClick,loadingClass:void 0!==e.loadingClass?e.loadingClass:Ve.options.defaultLoadingClass,loadingContent:void 0!==e.loadingContent?e.loadingContent:Ve.options.defaultLoadingContent,popperOptions:Re({},void 0!==e.popperOptions?e.popperOptions:Ve.options.defaultPopperOptions)};if(t.offset){var n=(0,r.Z)(t.offset),o=t.offset;("number"===n||"string"===n&&-1===o.indexOf(","))&&(o="0, ".concat(o)),t.popperOptions.modifiers||(t.popperOptions.modifiers={}),t.popperOptions.modifiers.offset={offset:o}}return t.trigger&&-1!==t.trigger.indexOf("click")&&(t.hideOnTargetClick=!1),t}function Be(e,t){for(var n=e.placement,r=0;r<Me.length;r++){var o=Me[r];t[o]&&(n=o)}return n}function $e(e){var t=(0,r.Z)(e);return"string"===t?e:!(!e||"object"!==t)&&e.content}function He(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=$e(t),i=void 0!==t.classes?t.classes:Ve.options.defaultClass,a=Re({title:o},Ue(Re(Re({},"object"===(0,r.Z)(t)?t:{}),{},{placement:Be(t,n)}))),s=e._tooltip=new Le(e,a);s.setClasses(i),s._vueEl=e;var c=void 0!==t.targetClasses?t.targetClasses:Ve.options.defaultTargetClass;return e._tooltipTargetClasses=c,xe(e,c),s}function ze(e){e._tooltip&&(e._tooltip.dispose(),delete e._tooltip,delete e._tooltipOldShow),e._tooltipTargetClasses&&(Ee(e,e._tooltipTargetClasses),delete e._tooltipTargetClasses)}function qe(e,t){var n=t.value;t.oldValue;var r,o=t.modifiers,i=$e(n);i&&De.enabled?(e._tooltip?((r=e._tooltip).setContent(i),r.setOptions(Re(Re({},n),{},{placement:Be(n,o)}))):r=He(e,n,o),void 0!==n.show&&n.show!==e._tooltipOldShow&&(e._tooltipOldShow=n.show,n.show?r.show():r.hide())):ze(e)}var Ve={options:Fe,bind:qe,update:qe,unbind:function(e){ze(e)}};function Ge(e){e.addEventListener("click",Ye),e.addEventListener("touchstart",Ke,!!Oe&&{passive:!0})}function We(e){e.removeEventListener("click",Ye),e.removeEventListener("touchstart",Ke),e.removeEventListener("touchend",Je),e.removeEventListener("touchcancel",Ze)}function Ye(e){var t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Ke(e){if(1===e.changedTouches.length){var t=e.currentTarget;t.$_vclosepopover_touch=!0;var n=e.changedTouches[0];t.$_vclosepopover_touchPoint=n,t.addEventListener("touchend",Je),t.addEventListener("touchcancel",Ze)}}function Je(e){var t=e.currentTarget;if(t.$_vclosepopover_touch=!1,1===e.changedTouches.length){var n=e.changedTouches[0],r=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(n.screenY-r.screenY)<20&&Math.abs(n.screenX-r.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Ze(e){e.currentTarget.$_vclosepopover_touch=!1}var Xe={bind:function(e,t){var n=t.value,r=t.modifiers;e.$_closePopoverModifiers=r,(void 0===n||n)&&Ge(e)},update:function(e,t){var n=t.value,r=t.oldValue,o=t.modifiers;e.$_closePopoverModifiers=o,n!==r&&(void 0===n||n?Ge(e):We(e))},unbind:function(e){We(e)}};function Qe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?Qe(Object(n),!0).forEach((function(t){(0,o.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e){var t=Ve.options.popover[e];return void 0===t?Ve.options[e]:t}var nt=!1;"undefined"!=typeof window&&"undefined"!=typeof navigator&&(nt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var rt=[],ot=function(){};"undefined"!=typeof window&&(ot=window.Element);var it={name:"VPopover",components:{ResizeObserver:ve},props:{open:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placement:{type:String,default:function(){return tt("defaultPlacement")}},delay:{type:[String,Number,Object],default:function(){return tt("defaultDelay")}},offset:{type:[String,Number],default:function(){return tt("defaultOffset")}},trigger:{type:String,default:function(){return tt("defaultTrigger")}},container:{type:[String,Object,ot,Boolean],default:function(){return tt("defaultContainer")}},boundariesElement:{type:[String,ot],default:function(){return tt("defaultBoundariesElement")}},popperOptions:{type:Object,default:function(){return tt("defaultPopperOptions")}},popoverClass:{type:[String,Array],default:function(){return tt("defaultClass")}},popoverBaseClass:{type:[String,Array],default:function(){return Ve.options.popover.defaultBaseClass}},popoverInnerClass:{type:[String,Array],default:function(){return Ve.options.popover.defaultInnerClass}},popoverWrapperClass:{type:[String,Array],default:function(){return Ve.options.popover.defaultWrapperClass}},popoverArrowClass:{type:[String,Array],default:function(){return Ve.options.popover.defaultArrowClass}},autoHide:{type:Boolean,default:function(){return Ve.options.popover.defaultAutoHide}},handleResize:{type:Boolean,default:function(){return Ve.options.popover.defaultHandleResize}},openGroup:{type:String,default:null},openClass:{type:[String,Array],default:function(){return Ve.options.popover.defaultOpenClass}},ariaId:{default:null}},data:function(){return{isOpen:!1,id:Math.random().toString(36).substr(2,10)}},computed:{cssClass:function(){return(0,o.Z)({},this.openClass,this.isOpen)},popoverId:function(){return"popover_".concat(null!=this.ariaId?this.ariaId:this.id)}},watch:{open:function(e){e?this.show():this.hide()},disabled:function(e,t){e!==t&&(e?this.hide():this.open&&this.show())},container:function(e){if(this.isOpen&&this.popperInstance){var t=this.$refs.popover,n=this.$refs.trigger,r=this.$_findContainer(this.container,n);if(!r)return void console.warn("No container for popover",this);r.appendChild(t),this.popperInstance.scheduleUpdate()}},trigger:function(e){this.$_removeEventListeners(),this.$_addEventListeners()},placement:function(e){var t=this;this.$_updatePopper((function(){t.popperInstance.options.placement=e}))},offset:"$_restartPopper",boundariesElement:"$_restartPopper",popperOptions:{handler:"$_restartPopper",deep:!0}},created:function(){this.$_isDisposed=!1,this.$_mounted=!1,this.$_events=[],this.$_preventOpen=!1},mounted:function(){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e),this.$_init(),this.open&&this.show()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event;t.skipDelay;var r=t.force,o=void 0!==r&&r;!o&&this.disabled||(this.$_scheduleShow(n),this.$emit("show")),this.$emit("update:open",!0),this.$_beingShowed=!0,requestAnimationFrame((function(){e.$_beingShowed=!1}))},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event;e.skipDelay,this.$_scheduleHide(t),this.$emit("hide"),this.$emit("update:open",!1)},dispose:function(){if(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),!this.popperInstance.options.removeOnDestroy)){var e=this.$refs.popover;e.parentNode&&e.parentNode.removeChild(e)}this.$_mounted=!1,this.popperInstance=null,this.isOpen=!1,this.$emit("dispose")},$_init:function(){-1===this.trigger.indexOf("manual")&&this.$_addEventListeners()},$_show:function(){var e=this,t=this.$refs.trigger,n=this.$refs.popover;if(clearTimeout(this.$_disposeTimer),!this.isOpen){if(this.popperInstance&&(this.isOpen=!0,this.popperInstance.enableEventListeners(),this.popperInstance.scheduleUpdate()),!this.$_mounted){var r=this.$_findContainer(this.container,t);if(!r)return void console.warn("No container for popover",this);r.appendChild(n),this.$_mounted=!0,this.isOpen=!1,this.popperInstance&&requestAnimationFrame((function(){e.hidden||(e.isOpen=!0)}))}if(!this.popperInstance){var o=et(et({},this.popperOptions),{},{placement:this.placement});if(o.modifiers=et(et({},o.modifiers),{},{arrow:et(et({},o.modifiers&&o.modifiers.arrow),{},{element:this.$refs.arrow})}),this.offset){var i=this.$_getOffset();o.modifiers.offset=et(et({},o.modifiers&&o.modifiers.offset),{},{offset:i})}this.boundariesElement&&(o.modifiers.preventOverflow=et(et({},o.modifiers&&o.modifiers.preventOverflow),{},{boundariesElement:this.boundariesElement})),this.popperInstance=new le(t,n,o),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();!e.$_isDisposed&&e.popperInstance?(e.popperInstance.scheduleUpdate(),requestAnimationFrame((function(){if(e.hidden)return e.hidden=!1,void e.$_hide();e.$_isDisposed?e.dispose():e.isOpen=!0}))):e.dispose()}))}var a=this.openGroup;if(a)for(var s,c=0;c<rt.length;c++)(s=rt[c]).openGroup!==a&&(s.hide(),s.$emit("close-group"));rt.push(this),this.$emit("apply-show")}},$_hide:function(){var e=this;if(this.isOpen){var t=rt.indexOf(this);-1!==t&&rt.splice(t,1),this.isOpen=!1,this.popperInstance&&this.popperInstance.disableEventListeners(),clearTimeout(this.$_disposeTimer);var n=Ve.options.popover.disposeTimeout||Ve.options.disposeTimeout;null!==n&&(this.$_disposeTimer=setTimeout((function(){var t=e.$refs.popover;t&&(t.parentNode&&t.parentNode.removeChild(t),e.$_mounted=!1)}),n)),this.$emit("apply-hide")}},$_findContainer:function(e,t){return"string"==typeof e?e=window.document.querySelector(e):!1===e&&(e=t.parentNode),e},$_getOffset:function(){var e=(0,r.Z)(this.offset),t=this.offset;return("number"===e||"string"===e&&-1===t.indexOf(","))&&(t="0, ".concat(t)),t},$_addEventListeners:function(){var e=this,t=this.$refs.trigger,n=[],r=[];("string"==typeof this.trigger?this.trigger.split(" ").filter((function(e){return-1!==["click","hover","focus"].indexOf(e)}
2)):[]).forEach((function(e){switch(e){case"hover":n.push("mouseenter"),r.push("mouseleave");break;case"focus":n.push("focus"),r.push("blur");break;case"click":n.push("click"),r.push("click")}})),n.forEach((function(n){var r=function(t){e.isOpen||(t.usedByTooltip=!0,!e.$_preventOpen&&e.show({event:t}),e.hidden=!1)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)})),r.forEach((function(n){var r=function(t){t.usedByTooltip||(e.hide({event:t}),e.hidden=!0)};e.$_events.push({event:n,func:r}),t.addEventListener(n,r)}))},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),e)this.$_show();else{var t=parseInt(this.delay&&this.delay.show||this.delay||0);this.$_scheduleTimer=setTimeout(this.$_show.bind(this),t)}},$_scheduleHide:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(clearTimeout(this.$_scheduleTimer),n)this.$_hide();else{var r=parseInt(this.delay&&this.delay.hide||this.delay||0);this.$_scheduleTimer=setTimeout((function(){if(e.isOpen){if(t&&"mouseleave"===t.type&&e.$_setTooltipNodeEvent(t))return;e.$_hide()}}),r)}},$_setTooltipNodeEvent:function(e){var t=this,n=this.$refs.trigger,r=this.$refs.popover,o=e.relatedreference||e.toElement||e.relatedTarget;return!!r.contains(o)&&(r.addEventListener(e.type,(function o(i){var a=i.relatedreference||i.toElement||i.relatedTarget;r.removeEventListener(e.type,o),n.contains(a)||t.hide({event:i})}
2)),!0)},$_removeEventListeners:function(){var e=this.$refs.trigger;this.$_events.forEach((function(t){var n=t.func,r=t.event;e.removeEventListener(r,n)})),this.$_events=[]},$_updatePopper:function(e){this.popperInstance&&(e(),this.isOpen&&this.popperInstance.scheduleUpdate())},$_restartPopper:function(){if(this.popperInstance){var e=this.isOpen;this.dispose(),this.$_isDisposed=!1,this.$_init(),e&&this.show({skipDelay:!0,force:!0})}},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_beingShowed||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventOpen=!0,setTimeout((function(){t.$_preventOpen=!1}),300)))},$_handleResize:function(){this.isOpen&&this.popperInstance&&(this.popperInstance.scheduleUpdate(),this.$emit("resize"))}}};function at(e){for(var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=function(n){var r=rt[n];if(r.$refs.popover){var o=r.$refs.popover.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&o||r.autoHide&&!o)&&r.$_handleGlobalClose(e,t)}))}},r=0;r<rt.length;r++)n(r)}function st(e,t,n,r,o,i,a,s,c,u){"boolean"!=typeof a&&(c=s,s=a,a=!1);const l="function"==typeof n?n.options:n;let d;if(e&&e.render&&(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,o&&(l.functional=!0)),r&&(l._scopeId=r),i?(d=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,c(e)),e&&e._registeredComponents&&e._registeredComponents.add(i)},l._ssrRegister=d):t&&(d=a?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),d)if(l.functional){const e=l.render;l.render=function(t,n){return d.call(n),e(t,n)}}else{const e=l.beforeCreate;l.beforeCreate=e?[].concat(e,d):[d]}return n}"undefined"!=typeof document&&"undefined"!=typeof window&&(nt?document.addEventListener("touchend",(function(e){at(e,!0)}),!Oe||{passive:!0,capture:!0}):window.addEventListener("click",(function(e){at(e)}),!0));var ct=it,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"v-popover",class:e.cssClass},[n("div",{ref:"trigger",staticClass:"trigger",staticStyle:{display:"inline-block"},attrs:{"aria-describedby":e.isOpen?e.popoverId:void 0,tabindex:-1!==e.trigger.indexOf("focus")?0:void 0}},[e._t("default")],2),e._v(" "),n("div",{ref:"popover",class:[e.popoverBaseClass,e.popoverClass,e.cssClass],style:{visibility:e.isOpen?"visible":"hidden"},attrs:{id:e.popoverId,"aria-hidden":e.isOpen?"false":"true",tabindex:e.autoHide?0:void 0},on:{keyup:function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;e.autoHide&&e.hide()}}},[n("div",{class:e.popoverWrapperClass},[n("div",{ref:"inner",class:e.popoverInnerClass,staticStyle:{position:"relative"}},[n("div",[e._t("popover",null,{isOpen:e.isOpen})],2),e._v(" "),e.handleResize?n("ResizeObserver",{on:{notify:e.$_handleResize}}):e._e()],1),e._v(" "),n("div",{ref:"arrow",class:e.popoverArrowClass})])])])};ut._withStripped=!0;var lt=st({render:ut,staticRenderFns:[]},void 0,ct,void 0,!1,void 0,!1,void 0,void 0,void 0);function dt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!dt.installed){dt.installed=!0;var n={};Se()(n,Fe,t),mt.options=n,Ve.options=n,e.directive("tooltip",Ve),e.directive("close-popover",Xe),e.component("VPopover",lt)}}!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}(".resize-observer[data-v-8859cc6c]{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;border:none;background-color:transparent;pointer-events:none;display:block;overflow:hidden;opacity:0}
2.resize-observer[data-v-8859cc6c] object{display:block;position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden;pointer-events:none;z-index:-1}");var pt=Ve,ft=Xe,ht=lt,mt={install:dt,get enabled(){return De.enabled},set enabled(e){De.enabled=e}},gt=null;"undefined"!=typeof window?gt=window.Vue:void 0!==n.g&&(gt=n.g.Vue),gt&>.use(mt);const yt=mt},39814:(e,t,n)=>{var r=n(687204)(n(496173),"DataView");e.exports=r},330470:(e,t,n)=>{var r=n(571122),o=n(355503),i=n(682272),a=n(318278),s=n(598026);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},642308:(e,t,n)=>{var r=n(900801),o=n(384110),i=n(285175),a=n(827442),s=n(425559);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},243902:(e,t,n)=>{var r=n(687204)(n(496173),"Map");e.exports=r},840715:(e,t,n)=>{var r=n(961069),o=n(810920),i=n(124217),a=n(989290),s=n(276581);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,e.exports=c},834799:(e,t,n)=>{var r=n(687204)(n(496173),"Promise");e.exports=r},706384:(e,t,n)=>{var r=n(687204)(n(496173),"Set");e.exports=r},469415:(e,t,n)=>{var r=n(840715),o=n(823187),i=n(134823);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},484597:(e,t,n)=>{var r=n(642308),o=n(433662),i=n(574805),a=n(426777),s=n(950165),c=n(264402);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=c,e.exports=u},38843:(e,t,n)=>{var r=n(496173).Symbol;e.exports=r},935494:(e,t,n)=>{var r=n(496173).Uint8Array;e.exports=r},368399:(e,t,n)=>{var r=n(687204)(n(496173),"WeakMap");e.exports=r},849832:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},520754:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},284988:(e,t,n)=>{var r=n(251141),o=n(164077),i=n(484874),a=n(954077),s=n(371251),c=n(109941),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&o(e),d=!n&&!l&&a(e),p=!n&&!l&&!d&&c(e),f=n||l||d||p,h=f?r(e.length,String):[],m=h.length;for(var g in e)!t&&!u.call(e,g)||f&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m))||h.push(g);return h}},22721:e=>{e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},617553:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},444505:(e,t,n)=>{var r=n(607940),o=n(544413);e.exports=function(e,t,n){(void 0!==n&&!o(e[t],n)||void 0===n&&!(t in e))&&r(e,t,n)}},996194:(e,t,n)=>{var r=n(607940),o=n(544413),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},133989:(e,t,n)=>{var r=n(544413);e.exports=function(e,t){for(var n=e.length;n--;
vendor: 1,503 bytes, line 2
2)if(r(e[n][0],t))return n;return-1}},607940:(e,t,n)=>{var r=n(666614);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},808378:(e,t,n)=>{var r=n(120924),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},214930:(e,t,n)=>{var r=n(205443)();e.exports=r},521164:(e,t,n)=>{var r=n(22721),o=n(484874);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},588976:(e,t,n)=>{var r=n(38843),o=n(837192),i=n(745016),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},207407:(e,t,n)=>{var r=n(588976),o=n(850540);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},873612:(e,t,n)=>{var r=n(477761),o=n(850540);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},477761:(e,t,n)=>{var r=n(484597),o=n(706916),i=n(567948),a=n(77099),s=n(49303),c=n(484874),u=n(954077),l=n(109941),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,y){var v=c(e),b=c(t),_=v?p:s(e),w=b?p:s(t),S=(_=_==d?f:_)==f,C=(w=w==d?f:w)==f,k=_==w;if(k&&u(e)){if(!u(t))return!1;v=!0,S=!1}if(k&&!S)return y||(y=new r),v||l(e)?o(e,t,n,m,g,y):i(e,t,_,n,m,g,y);if(!(1&n)){var x=S&&h.call(e,"__wrapped__"),E=C&&h.call(t,"__wrapped__");
vendor: 4,234 bytes, line 2
2if(x||E){var O=x?e.value():e,T=E?t.value():t;return y||(y=new r),g(O,T,n,m,y)}}return!!k&&(y||(y=new r),a(e,t,n,m,g,y))}},698272:(e,t,n)=>{var r=n(203406),o=n(268061),i=n(120924),a=n(783246),s=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,d=u.hasOwnProperty,p=RegExp("^"+l.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?p:s).test(a(e))}},344276:(e,t,n)=>{var r=n(588976),o=n(481747),i=n(850540),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},142494:(e,t,n)=>{var r=n(387880),o=n(82815),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},109848:(e,t,n)=>{var r=n(120924),o=n(387880),i=n(617382),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},555330:(e,t,n)=>{var r=n(484597),o=n(444505),i=n(214930),a=n(284495),s=n(120924),c=n(964641),u=n(847724);e.exports=function e(t,n,l,d,p){t!==n&&i(n,(function(i,c){if(p||(p=new r),s(i))a(t,n,c,l,e,d,p);else{var f=d?d(u(t,c),i,c+"",t,n,p):void 0;void 0===f&&(f=i),o(t,c,f)}}),c)}},284495:(e,t,n)=>{var r=n(444505),o=n(868298),i=n(930782),a=n(182640),s=n(395118),c=n(164077),u=n(484874),l=n(956136),d=n(954077),p=n(203406),f=n(120924),h=n(443315),m=n(109941),g=n(847724),y=n(728324);e.exports=function(e,t,n,v,b,_,w){var S=g(e,n),C=g(t,n),k=w.get(C);if(k)r(e,n,k);else{var x=_?_(S,C,n+"",e,t,w):void 0,E=void 0===x;if(E){var O=u(C),T=!O&&d(C),A=!O&&!T&&m(C);x=C,O||T||A?u(S)?x=S:l(S)?x=a(S):T?(E=!1,x=o(C,!0)):A?(E=!1,x=i(C,!0)):x=[]:h(C)||c(C)?(x=S,c(S)?x=y(S):f(S)&&!p(S)||(x=s(C))):E=!1}E&&(w.set(C,x),b(x,C,v,_,w),w.delete(C)),r(e,n,x)}}},580903:(e,t,n)=>{var r=n(351480),o=n(301991),i=n(667315);e.exports=function(e,t){return i(o(e,t,r),e+"")}},116612:(e,t,n)=>{var r=n(7518),o=n(666614),i=n(351480),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},251141:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},350286:e=>{e.exports=function(e){return function(t){return e(t)}}},458534:e=>{e.exports=function(e,t){return e.has(t)}},403946:(e,t,n)=>{var r=n(935494);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},868298:(e,t,n)=>{e=n.nmd(e);var r=n(496173),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},930782:(e,t,n)=>{var r=n(403946);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},182640:e=>{e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},212625:(e,t,n)=>{var r=n(996194),o=n(607940);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,c=t.length;++s<c;){var u=t[s],l=i?i(n[u],e[u],u,n,e):void 0;void 0===l&&(l=e[u]),a?o(n,u,l):r(n,u,l)}return n}},980040:(e,t,n)=>{var r=n(496173)["__core-js_shared__"];e.exports=r},618958:(e,t,n)=>{var r=n(580903),o=n(120844);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var c=n[r];c&&e(t,c,r,a)}return t}))}},205443:e=>{e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r
vendor: 5,309 bytes, line 2
2(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===n(i[c],c,i))break}return t}}},666614:(e,t,n)=>{var r=n(687204),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},706916:(e,t,n)=>{var r=n(469415),o=n(617553),i=n(458534);e.exports=function(e,t,n,a,s,c){var u=1&n,l=e.length,d=t.length;if(l!=d&&!(u&&d>l))return!1;var p=c.get(e),f=c.get(t);if(p&&f)return p==t&&f==e;var h=-1,m=!0,g=2&n?new r:void 0;for(c.set(e,t),c.set(t,e);++h<l;){var y=e[h],v=t[h];if(a)var b=u?a(v,y,h,t,e,c):a(y,v,h,e,t,c);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(y===e||s(y,e,n,a,c)))return g.push(t)}))){m=!1;break}}else if(y!==v&&!s(y,v,n,a,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},567948:(e,t,n)=>{var r=n(38843),o=n(935494),i=n(544413),a=n(706916),s=n(523934),c=n(963467),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=c),e.size!=t.size&&!h)return!1;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=a(f(e),f(t),r,u,d,p);return p.delete(e),g;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},77099:(e,t,n)=>{var r=n(405968),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var d=l;d--;){var p=u[d];if(!(c?p in t:o.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=c;++d<l;){var y=e[p=u[d]],v=t[p];if(i)var b=c?i(v,y,p,t,e,s):i(y,v,p,e,t,s);if(!(void 0===b?y===v||a(y,v,n,i,s):b)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var _=e.constructor,w=t.constructor;_==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w||(m=!1)}return s.delete(e),s.delete(t),m}},829507:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},405968:(e,t,n)=>{var r=n(521164),o=n(529024),i=n(865780);e.exports=function(e){return r(e,i,o)}},365126:(e,t,n)=>{var r=n(613004);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},687204:(e,t,n)=>{var r=n(698272),o=n(147004);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},108842:(e,t,n)=>{var r=n(391600)(Object.getPrototypeOf,Object);e.exports=r},837192:(e,t,n)=>{var r=n(38843),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},529024:(e,t,n)=>{var r=n(520754),o=n(845822),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},49303:(e,t,n)=>{var r=n(39814),o=n(243902),i=n(834799),a=n(706384),s=n(368399),c=n(588976),u=n(783246),l="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",m=u(r),g=u(o),y=u(i),v=u(a),b=u(s),_=c;(r&&_(new r(new ArrayBuffer(1)))!=h||o&&_(new o)!=l||i&&_(i.resolve())!=d||a&&_(new a)!=p||s&&_(new s)!=f)&&(_=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return h;case g:return l;case y:return d;case v:return p;case b:return f}return t}),e.exports=_},147004:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},571122:(e,t,n)=>{var r=n(404554);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},355503:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},682272:(e,t,n)=>{var r=n(404554),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},318278:(e,t,n)=>{var r=n(404554),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},598026:(e,t,n)=>{var r=n(404554);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},395118:(e,t,n)=>{var r=n(808378),o=n(108842),i=n(387880);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},371251:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},120844:(e,t,n)=>{var r=n(544413),o=n(921285),i=n(371251),a=n(120924);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?o(n)&&i(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},613004:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},268061:(e,t,n)=>{var r,o=n(980040),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+r:"";e.exports=function(e){return!!i&&i in e}},387880:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},900801:e=>{e.exports=function(){this.__data__=[],this.size=0}},384110:(e,t,n)=>{var r=n(133989),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():o.call(t,n,1),--this.size,0))}},285175:(e,t,n)=>{var r=n(133989);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},827442:(e,t,n)=>{var r=n(133989);e.exports=function(e){return r(this.__data__,e)>-1}},425559:(e,t,n)=>{var r=n(133989);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},961069:(e,t,n)=>{var r=n(330470),o=n(642308),i=n(243902);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},810920:(e,t,n)=>{var r=n(365126);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},124217:(e,t,n)=>{var r=n(365126);e.exports=function(e){return r(this,e).get(e)}},989290:(e,t,n)=>{var r=n(365126);e.exports=function(e){return r(this,e).has(e)}},276581:(e,t,n)=>{var r=n(365126);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},523934:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},404554:(e,t,n)=>{var r=n(687204)(Object,"create");e.exports=r},82815:(e,t,n)=>{var r=n(391600)(Object.keys,Object);e.exports=r},617382:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},39621:(e,t,n)=>{e=n.nmd(e);var r=n(829507),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},745016:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},391600:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},301991:(e,t,n)=>{var r=n(849832),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),c=Array(s);++a<s;)c[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(c),r(e,this,u)}}},496173:(e,t,n)=>{var r=n(829507),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},847724:e=>{e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},823187:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},134823:e=>{e.exports=function(e){return this.__data__.has(e)}},963467:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},667315:(e,t,n)=>{var r=n(116612),o=n(959684)(r);e.exports=o},959684:e=>{var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},433662:(e,t,n)=>{var r=n(642308);e.exports=function(){this.__data__=new r,this.size=0}},574805:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},426777:e=>{e.exports=function(e){return this.__data__.get(e)}},950165:e=>{e.exports=function(e){return this.__data__.has(e)}}
2,264402:(e,t,n)=>{var r=n(642308),o=n(243902),i=n(840715);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},783246:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7518:e=>{e.exports=function(e){return function(){return e}}},544413:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},351480:e=>{e.exports=function(e){return e}},164077:(e,t,n)=>{var r=n(207407),o=n(850540),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=c},484874:e=>{var t=Array.isArray;e.exports=t},921285:(e,t,n)=>{var r=n(203406),o=n(481747);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},956136:(e,t,n)=>{var r=n(921285),o=n(850540);e.exports=function(e){return o(e)&&r(e)}},954077:(e,t,n)=>{e=n.nmd(e);var r=n(496173),o=n(306265),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,c=(s?s.isBuffer:void 0)||o;e.exports=c},573093:(e,t,n)=>{var r=n(873612);e.exports=function(e,t){return r(e,t)}},203406:(e,t,n)=>{var r=n(588976),o=n(120924);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},481747:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},120924:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},850540:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},443315:(e,t,n)=>{var r=n(588976),o=n(108842),i=n(850540),a=Function.prototype,s=Object.prototype,c=a.toString,u=s.hasOwnProperty,l=c.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==l}},109941:(e,t,n)=>{var r=n(344276),o=n(350286),i=n(39621),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},865780:(e,t,n)=>{var r=n(284988),o=n(142494),i=n(921285);e.exports=function(e){return i(e)?r(e):o(e)}},964641:(e,t,n)=>{var r=n(284988),o=n(109848),i=n(921285);e.exports=function(e){return i(e)?r(e,!0):o(e)}},700487:(e,t,n)=>{var r=n(555330),o=n(618958)((function(e,t,n){r(e,t,n)}));e.exports=o},845822:e=>{e.exports=function(){return[]}},306265:e=>{e.exports=function(){return!1}},728324:(e,t,n)=>{var r=n(212625),o=n(964641);e.exports=function(e){return r(e,o(e))}},857879:(e,t,n)=>{"use strict";function r(e,t,n){e.$set(e.$data._asyncComputed[t],"state",n),e.$set(e.$data._asyncComputed[t],"updating","updating"===n),e.$set(e.$data._asyncComputed[t],"error","error"===n),e.$set(e.$data._asyncComputed[t],"success","success"===n)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function i(e){return o(e,"lazy")&&e.lazy}n.r(t),n.d(t,{default:()=>y});var a="async_computed$lazy_active$",s="async_computed$lazy_data$";function c(e,t,n){e[a+t]=!1,e[s+t]=n}function u(e){return{get:function(){return this[a+e]=!0,this[s+e]},set:function(t){this[s+e]=t}}}function l(e,t,n){e[s+t]=n}var d="function"==typeof Symbol?Symbol("did-not-update"):{},p="_async_computed$",f={install:function(e,t){t=t||{},e.config.optionMergeStrategies.asyncComputed=e.config.optionMergeStrategies.computed,e.mixin({data:function(){return{_asyncComputed:{}}},computed:{$asyncComputed:function(){return this.$data._asyncComputed}},beforeCreate:function(){var e=this.$options.asyncComputed||{};if(Object.keys(e).length){for(var n in e){var r=m(n,e[n]);this.$options.computed[p+n]=r}this.$options.data=function(e,t){var n=e.data,r=e.asyncComputed||{};return function(e){var o=("function"==typeof n?n.call(this,e):n)||{};for(var a in r){var s=this.$options.asyncComputed[a],l=g.call(this,s,t);i(s)?(c(o,a,l),this.$options.computed[a]=u(a)):o[a]=l}return o}}(this.$options,t)}},created:function(){for(var n in this.$options.asyncComputed||{}){var r=this.$options.asyncComputed[n],o=g.call(this,r,t);i(r)?l(this,n,o):this[n]=o}for(var a in this.$options.asyncComputed||{})h(this,a,t,e)}})}};function h(e,t,n,o){var i=0,a=function(a){var s=++i;d!==a&&(a&&a.then||(a=Promise.resolve(a)),r(e,t,"updating"),a.then((function(n){s===i&&(r(e,t,"success"),e[t]=n)}
2)).catch((function(a){if(s===i&&(r(e,t,"error"),o.set(e.$data._asyncComputed[t],"exception",a),!1!==n.errorHandler)){var c=void 0===n.errorHandler?console.error.bind(console,"Error evaluating async computed property:"):n.errorHandler;n.useRawError?c(a,e,a.stack):c(a.stack)}})))};o.set(e.$data._asyncComputed,t,{exception:null,update:function(){var n;e._isDestroyed||a((n=e.$options.asyncComputed[t],"function"==typeof n?n:n.get).apply(e))}}),r(e,t,"updating"),e.$watch(p+t,a,{immediate:!0})}function m(e,t){if("function"==typeof t)return t;var n,r,c=t.get;if(o(t,"watch")&&(c=function(e){if("function"==typeof e.watch)return function(e){return function(){return e.watch.call(this),e.get.call(this)}}(e);if(Array.isArray(e.watch))return e.watch.forEach((function(e){if("string"!=typeof e)throw new Error("AsyncComputed: watch elemnts must be strings")})),function(e){return function(){var t=this;return e.watch.forEach((function(e){var n=e.split(".");if(1===n.length)t[e];else try{var r=t;n.forEach((function(e){r=r[e]}))}catch(t){throw console.error("AsyncComputed: bad path: ",e),t}})),e.get.call(this)}}(e);throw Error("AsyncComputed: watch should be function or an array")}(t)),o(t,"shouldUpdate")&&(n=t,r=c,c=function(){return n.shouldUpdate.call(this)?r.call(this):d}),i(t)){var u=c;c=function(){return function(e,t){return e[a+t]}(this,e)?u.call(this):function(e,t){return e[s+t]}(this,e)}}return c}function g(e,t){var n=null;return"default"in e?n=e.default:"default"in t&&(n=t.default),"function"==typeof n?n.call(this):n}"undefined"!=typeof window&&window.Vue&&window.Vue.use(f);const y=f},713970:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(467311),o=n(451210);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,null,null).exports},269471:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(15292),o=n(955988);const i=o.Z;n(246594);const a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"21cf4ce9",null).exports},4306:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(117347);n(95798);const o=(0,n(551900).Z)({},r.sY,r.xk,!1,null,"3f620aa7",null).exports},58968:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(551195),o=n(441910);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"2c114df4",null).exports},26243:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});
2var r=n(293363),o=n(490875);const i=o.Z;n(46080);const a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"e6e61330",null).exports},736645:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(825566);const o=n(258237).Z;n(248108);const i=(0,n(551900).Z)(o,r.sY,r.xk,!1,null,"97dda2f6",null).exports},778009:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>r.X,default:()=>i});var r=n(185868);const o=r.Z,i=(0,n(551900).Z)(o,void 0,void 0,!1,null,null,null).exports},937031:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(359085),o=n(335978);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"6f22a5c7",null).exports},375154:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(742036),o=n(427738);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"47c971d7",null).exports},421237:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X$,default:()=>a,items:()=>o.ev});var r=n(214463),o=n(600493);const i=o.ZP,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"38456777",null).exports},914782:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(585592),o=n(27260);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"9d0a252c",null).exports},867360:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(534175),o=n(7121);const i=o.Z;n(438285);const a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"0741d00c",null).exports},276149:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(14879),o=n(628972);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"031b3864",null).exports},188212:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(799664),o=n(988586);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,null,null).exports},132816:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(990026),o=n(827993);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"f9b6afba",null).exports},261844:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(716625),o=n(221855);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"3d3d4b3c",null).exports},113203:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(74937),o=n(80697);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"d9f8edb6",null).exports},845911:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(40999),o=n(672777);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"76e9d162",null).exports},763715:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(402448),o=n(471747);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"8bfcf252",null).exports},339952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(636369),o=n(218694);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"5d44ac90",null).exports},581982:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(521122),o=n(801868);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,null,null).exports},919101:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(62595);const o=n(916285).Z,i=(0,n(551900).Z)(o,r.sY,r.xk,!1,null,null,null).exports},656988:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(744512),o=n(806025);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"0b87c902",null).exports},707613:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(464262),o=n(876275);const i=o.Z;n(114951);const a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"45b61abc",null).exports},45452:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(364408),o=n(418851);const i=o.Z;n(843506);const a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,null,null).exports},58591:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(894711),o=n(213268);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"70d33a17",null).exports},422438:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(630168),o=n(974593);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"6247d97c",null).exports},647444:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>
2o.X,default:()=>a});var r=n(876369),o=n(758444);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"29b85b5a",null).exports},801723:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__esModule:()=>o.X,default:()=>a});var r=n(788520),o=n(445376);const i=o.Z,a=(0,n(551900).Z)(i,r.sY,r.xk,!1,null,"6f0ca75e",null).exports},551900:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a,s){var c,u="function"==typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),i&&(u._scopeId="data-v-"+i),a?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:u}}n.d(t,{Z:()=>r})},2246:function(e,t,n){e.exports=function(){"use strict";var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var i=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(n,i){for(var a,s,c=arguments,u=o(n),l=1;l<arguments.length;l++){for(var d in a=Object(c[l]))t.call(a,d)&&(u[d]=a[d]);if(e){s=e(a);for(var p=0;p<s.length;p++)r.call(a,s[p])&&(u[s[p]]=a[s[p]])}}return u},a="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};var s=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(){var e=function(e){return t(e)&&!n(e)};function t(e){return!!e&&"object"==typeof e}function n(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||o(e)}var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(e){return e.$$typeof===r}function i(e){return Array.isArray(e)?[]:{}}function a(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l(i(e),e,t):e}function s(e,t,n){return e.concat(t).map((function(e){return a(e,n)}))}function c(e,t){if(!t.customMerge)return l;var n=t.customMerge(e);return"function"==typeof n?n:l}function u(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=a(e[t],n)})),Object.keys(t).forEach((function(o){n.isMergeableObject(t[o])&&e[o]?r[o]=c(o,n)(e[o],t[o],n):r[o]=a(t[o],n)})),r}function l(t,n,r){(r=r||{}).arrayMerge=r.arrayMerge||s,r.isMergeableObject=r.isMergeableObject||e;var o=Array.isArray(n);return o===Array.isArray(t)?o?r.arrayMerge(t,n,r):u(t,n,r):a(n,r)}return l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})},l}()}));var c,u,l=Function.prototype,d=Object.prototype,p=l.toString,f=d.hasOwnProperty,h=p.call(Object),m=d.toString,g=(c=Object.getPrototypeOf,u=Object,function(e){return c(u(e))});var y=function(e){if(!function(e){return!!e&&"object"==typeof e}(e)||"[object Object]"!=m.call(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e))return!1;var t=g(e);if(null===t)return!0;var n=f.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&p.call(n)==h};var v="[object Symbol]",b="object"==typeof a&&a&&a.Object===Object&&a,_="object"==typeof self&&self&&self.Object===Object&&self,w=b||_||Function("return this")(),S=Object.prototype,C=0,k=S.toString,x=w.Symbol,E=x?x.prototype:void 0,O=E?E.toString:void 0;function T(e){if("string"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&k.call(e)==v}(e))return O?O.call(e):"";var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t}var A=function(e){var t,n=++C;
2return(null==(t=e)?"":T(t))+n};function P(e,t){void 0===t&&(t={});var n,r,o=e.component,i=e.option,a=e.deep,c=e.arrayMerge,u=e.metaTemplateKeyName,l=e.tagIDKeyName,d=e.contentKeyName,p=o.$options;if(o._inactive)return t;if(void 0!==p[i]&&null!==p[i]){var f=p[i];"function"==typeof f&&(f=f.call(o)),t="object"==typeof f?s(t,f,{arrayMerge:c}):f}return a&&o.$children.length&&o.$children.forEach((function(e){t=P({component:e,option:i,deep:a,arrayMerge:c},t)})),u&&t.hasOwnProperty("meta")&&(t.meta=Object.keys(t.meta).map((function(e){var n=t.meta[e];if(!n.hasOwnProperty(u)||!n.hasOwnProperty(d)||void 0===n[u])return t.meta[e];var r=n[u];return delete n[u],r&&(n.content="function"==typeof r?r(n.content):r.replace(/%s/g,n.content)),n})),t.meta=(n=t.meta,r=function(e){return e.hasOwnProperty(l)?e[l]:A()},n.filter((function(e,t,n){return t===n.length-1||r(e)!==r(n[t+1])})))),t}function I(e){void 0===e&&(e={});var t=e.keyName,n=e.tagIDKeyName,r=e.metaTemplateKeyName,o=e.contentKeyName;return function(e){var i=P({component:e,option:t,deep:!0,metaTemplateKeyName:r,tagIDKeyName:n,contentKeyName:o,arrayMerge:function(t,i){var a=[];for(var s in t){var c=t[s],u=!1;for(var l in i){var d=i[l];if(c[n]&&c[n]===d[n]){var p=c[r],f=d[r];p&&!f&&(d[o]=j(e)(p)(d[o])),p&&f&&!d[o]&&(d[o]=j(e)(f)(c[o]),delete d[r]),u=!0;break}}u||a.push(c)}return a.concat(i)}});i.title&&(i.titleChunk=i.title),i.titleTemplate&&(i.title=j(e)(i.titleTemplate)(i.titleChunk||"")),i.base&&(i.base=Object.keys(i.base).length?[i.base]:[]);var a=i.__dangerouslyDisableSanitizers,c=i.__dangerouslyDisableSanitizersByTagID,u=function(e){return Object.keys(e).reduce((function(t,r){var o=a&&a.indexOf(r)>-1,i=e[n];!o&&i&&(o=c&&c[i]&&c[i].indexOf(r)>-1);var s,l,d=e[r];return t[r]=d,"__dangerouslyDisableSanitizers"===r||"__dangerouslyDisableSanitizersByTagID"===r||(o?t[r]=d:"string"==typeof d?t[r]=(l=d,"undefined"==typeof window?String(l).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):String(l).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'")):y(d)?t[r]=u(d):(s=d,(Array.isArray?Array.isArray(s):"[object Array]"===Object.prototype.toString.call(s))?t[r]=d.map(u):t[r]=d)),t}),{})};return i=s({title:"",titleChunk:"",titleTemplate:"%s",htmlAttrs:{},bodyAttrs:{},headAttrs:{},meta:[],base:[],link:[],style:[],script:[],noscript:[],__dangerouslyDisableSanitizers:[],__dangerouslyDisableSanitizersByTagID:{}},i),u(i)}}var j=function(e){return function(t){return function(n){return"function"==typeof t?t.call(e,n):t.replace(/%s/g,n)}}};function L(e){return void 0===e&&(e={}),function(t,n){switch(t){case"title":return function(e){void 0===e&&(e={});var t=e.attribute;return function(e,n){return{text:function(){return String(n).trim()?"<"+e+" "+t+'="true">'+n+"</"+e+">":""}}}}(e)(t,n);case"htmlAttrs":case"bodyAttrs":case"headAttrs":return function(e){void 0===e&&(e={});var t=e.attribute;return function(e,n){return{text:function(){var e="",r=[];for(var o in n)n.hasOwnProperty(o)&&(r.push(o),e+=(void 0!==n[o]?o+'="'+n[o]+'"':o)+" ");return(e+=t+'="'+r.join(",")+'"').trim()}}}}(e)(t,n);default:return function(e){void 0===e&&(e={});var t=e.attribute;return function(n,r){return{text:function(o){void 0===o&&(o={});var i=o.body;return void 0===i&&(i=!1),r.reduce((function(r,o){if(0===Object.keys(o).length)return r;if(!!o.body!==i)return r;var a=Object.keys(o).reduce((function(t,n){switch(n){case"innerHTML":case"cssText":case"once":return t;default:return-1!==[e.tagIDKeyName,"body"].indexOf(n)?t+" data-"+n+'="'+o[n]+'"':void 0===o[n]?t+" "+n:t+" "+n+'="'+o[n]+'"'}}),"").trim(),s=o.innerHTML||o.cssText||"",c=o.once?"":t+'="true" ',u=-1===["base","meta","link"].indexOf(n);return u&&["noscript","script","style"].indexOf(n)>-1?r+"<"+n+" "+c+a+">"+s+"</"+n+">":r+"<"+n+" "+c+a+(u?"/":"")+">"}),"")}}}}(e)(t,n)}}}function N(e){return void 0===e&&(e={}),function(){var t=I(e)(this.$root);for(var n in t)t.hasOwnProperty(n)&&"titleTemplate"!==n&&"titleChunk"!==n&&(t[n]=L(e)(n,t[n]));return t}}function R(e){void 0===e&&(e={});var t=e.attribute;return function(e,n){var r=n.getAttribute(t),o=r?r.split(","):[],i=[].concat(o);for(var a in e)if(e.hasOwnProperty(a)){var s=e[a]||"";n.setAttribute(a,s),-1===o.indexOf(a)&&o.push(a);var c=i.indexOf(a);-1!==c&&i.splice(c,1)}for(var u=i.length-1;u>=0;u--)n.removeAttribute(i[u]);o.length===i.length?n.removeAttribute(t):n.setAttribute(t,o.join(","))}}var D=Function.prototype.call.bind(Array.prototype.slice);function M(e){void 0===e&&(e={});var t=e.ssrAttribute;return function(n){var r=document.getElementsByTagName("html")[0];if(null===r.getAttribute(t)){var o={},i={};
2Object.keys(n).forEach((function(t){switch(t){case"title":!function(e){void 0===e&&(e=document.title),document.title=e}(n.title);break;case"htmlAttrs":R(e)(n[t],r);break;case"bodyAttrs":R(e)(n[t],document.getElementsByTagName("body")[0]);break;case"headAttrs":R(e)(n[t],document.getElementsByTagName("head")[0]);break;case"titleChunk":case"titleTemplate":case"changed":case"__dangerouslyDisableSanitizers":break;default:var a=document.getElementsByTagName("head")[0],s=document.getElementsByTagName("body")[0],c=function(e){void 0===e&&(e={});var t=e.attribute;return function(n,r,o,i){var a,s=D(o.querySelectorAll(n+"["+t+"]")),c=D(i.querySelectorAll(n+"["+t+'][data-body="true"]')),u=[];if(r.length>1){var l=[];r=r.map((function(e){var t=JSON.stringify(e);if(l.indexOf(t)<0)return l.push(t),e})).filter((function(e){return e}))}r&&r.length&&r.forEach((function(r){var o=document.createElement(n),i=!0!==r.body?s:c;for(var l in r)if(r.hasOwnProperty(l))if("innerHTML"===l)o.innerHTML=r.innerHTML;else if("cssText"===l)o.styleSheet?o.styleSheet.cssText=r.cssText:o.appendChild(document.createTextNode(r.cssText));else if(-1!==[e.tagIDKeyName,"body"].indexOf(l)){var d="data-"+l,p=void 0===r[l]?"":r[l];o.setAttribute(d,p)}else{var f=void 0===r[l]?"":r[l];o.setAttribute(l,f)}o.setAttribute(t,"true"),i.some((function(e,t){return a=t,o.isEqualNode(e)}))?i.splice(a,1):u.push(o)}));var d=s.concat(c);return d.forEach((function(e){return e.parentNode.removeChild(e)})),u.forEach((function(e){"true"===e.getAttribute("data-body")?i.appendChild(e):o.appendChild(e)})),{oldTags:d,newTags:u}}}(e)(t,n[t],a,s),u=c.oldTags,l=c.newTags;l.length&&(o[t]=l,i[t]=u)}})),"function"==typeof n.changed&&n.changed.call(this,n,o,i)}else r.removeAttribute(t)}}function F(e){return void 0===e&&(e={}),function(){var t=I(e)(this.$root);return M(e).call(this,t),t}}var U=("undefined"!=typeof window?window.cancelAnimationFrame:null)||clearTimeout,B=("undefined"!=typeof window?window.requestAnimationFrame:null)||function(e){return setTimeout(e,0)};function $(e,t){return U(e),B((function(){e=null,t()}))}function H(e,t){void 0===t&&(t={}),t=i({keyName:"metaInfo",contentKeyName:"content",metaTemplateKeyName:"template",attribute:"data-vue-meta",ssrAttribute:"data-vue-meta-server-rendered",tagIDKeyName:"vmid"},t),e.prototype.$meta=function(e){return void 0===e&&(e={}),function(){return{inject:N(e).bind(this),refresh:F(e).bind(this)}}}(t);var n=null;e.mixin({beforeCreate:function(){void 0!==this.$options[t.keyName]&&(this._hasMetaInfo=!0),"function"==typeof this.$options[t.keyName]&&(void 0===this.$options.computed&&(this.$options.computed={}),this.$options.computed.$metaInfo=this.$options[t.keyName])},created:function(){var e=this;!this.$isServer&&this.$metaInfo&&this.$watch("$metaInfo",(function(){n=$(n,(function(){return e.$meta().refresh()}))}))},activated:function(){var e=this;this._hasMetaInfo&&(n=$(n,(function(){return e.$meta().refresh()})))},deactivated:function(){var e=this;this._hasMetaInfo&&(n=$(n,(function(){return e.$meta().refresh()})))},beforeMount:function(){var e=this;this._hasMetaInfo&&(n=$(n,(function(){return e.$meta().refresh()})))},destroyed:function(){var e=this;if(!this.$isServer&&this._hasMetaInfo)var t=setInterval((function(){e.$el&&null!==e.$el.offsetParent||(clearInterval(t),e.$parent&&(n=$(n,(function(){return e.$meta().refresh()}))))}),50)}})}"undefined"!=typeof window&&void 0!==window.Vue&&Vue.use(H);return H.version="1.6.0",H}()},578345:(e,t,n)=>{"use strict";function r(e,t){for(var n in t)e[n]=t[n];return e}n.r(t),n.d(t,{default:()=>qe});var o=/[!'()*]/g,i=function(e){return"%"+e.charCodeAt(0).toString(16)},a=/%2C/g,s=function(e){return encodeURIComponent(e).replace(o,i).replace(a,",")};function c(e){try{return decodeURIComponent(e)}catch(e){}return e}var u=function(e){return null==e||"object"==typeof e?e:String(e)};function l(e){var t={};return(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach((function(e){var n=e.replace(/\+/g," ").split("="),r=c(n.shift()),o=n.length>0?c(n.join("=")):null;void 0===t[r]?t[r]=o:Array.isArray(t[r])?t[r].push(o):t[r]=[t[r],o]})),t):t}function d(e){var t=e?Object.keys(e).map((function(t){var n=e[t];if(void 0===n)return"";if(null===n)return s(t);if(Array.isArray(n)){var r=[];
2return n.forEach((function(e){void 0!==e&&(null===e?r.push(s(t)):r.push(s(t)+"="+s(e)))})),r.join("&")}return s(t)+"="+s(n)})).filter((function(e){return e.length>0})).join("&"):null;return t?"?"+t:""}var p=/\/?$/;function f(e,t,n,r){var o=r&&r.options.stringifyQuery,i=t.query||{};try{i=h(i)}catch(e){}var a={name:t.name||e&&e.name,meta:e&&e.meta||{},path:t.path||"/",hash:t.hash||"",query:i,params:t.params||{},fullPath:y(t,o),matched:e?g(e):[]};return n&&(a.redirectedFrom=y(n,o)),Object.freeze(a)}function h(e){if(Array.isArray(e))return e.map(h);if(e&&"object"==typeof e){var t={};for(var n in e)t[n]=h(e[n]);return t}return e}var m=f(null,{path:"/"});function g(e){for(var t=[];e;)t.unshift(e),e=e.parent;return t}function y(e,t){var n=e.path,r=e.query;void 0===r&&(r={});var o=e.hash;return void 0===o&&(o=""),(n||"/")+(t||d)(r)+o}function v(e,t,n){return t===m?e===t:!!t&&(e.path&&t.path?e.path.replace(p,"")===t.path.replace(p,"")&&(n||e.hash===t.hash&&b(e.query,t.query)):!(!e.name||!t.name)&&e.name===t.name&&(n||e.hash===t.hash&&b(e.query,t.query)&&b(e.params,t.params)))}function b(e,t){if(void 0===e&&(e={}),void 0===t&&(t={}),!e||!t)return e===t;var n=Object.keys(e).sort(),r=Object.keys(t).sort();return n.length===r.length&&n.every((function(n,o){var i=e[n];if(r[o]!==n)return!1;var a=t[n];return null==i||null==a?i===a:"object"==typeof i&&"object"==typeof a?b(i,a):String(i)===String(a)}))}function _(e){for(var t=0;t<e.matched.length;t++){var n=e.matched[t];for(var r in n.instances){var o=n.instances[r],i=n.enteredCbs[r];if(o&&i){delete n.enteredCbs[r];for(var a=0;a<i.length;a++)o._isBeingDestroyed||i[a](o)}}}}var w={name:"RouterView",functional:!0,props:{name:{type:String,default:"default"}},render:function(e,t){var n=t.props,o=t.children,i=t.parent,a=t.data;a.routerView=!0;for(var s=i.$createElement,c=n.name,u=i.$route,l=i._routerViewCache||(i._routerViewCache={}),d=0,p=!1;i&&i._routerRoot!==i;){var f=i.$vnode?i.$vnode.data:{};f.routerView&&d++,f.keepAlive&&i._directInactive&&i._inactive&&(p=!0),i=i.$parent}if(a.routerViewDepth=d,p){var h=l[c],m=h&&h.component;return m?(h.configProps&&S(m,a,h.route,h.configProps),s(m,a,o)):s()}var g=u.matched[d],y=g&&g.components[c];if(!g||!y)return l[c]=null,s();l[c]={component:y},a.registerRouteInstance=function(e,t){var n=g.instances[c];(t&&n!==e||!t&&n===e)&&(g.instances[c]=t)},(a.hook||(a.hook={})).prepatch=function(e,t){g.instances[c]=t.componentInstance},a.hook.init=function(e){e.data.keepAlive&&e.componentInstance&&e.componentInstance!==g.instances[c]&&(g.instances[c]=e.componentInstance),_(u)};var v=g.props&&g.props[c];return v&&(r(l[c],{route:u,configProps:v}),S(y,a,u,v)),s(y,a,o)}};function S(e,t,n,o){var i=t.props=function(e,t){switch(typeof t){case"undefined":return;case"object":return t;case"function":return t(e);case"boolean":return t?e.params:void 0}}(n,o);if(i){i=t.props=r({},i);var a=t.attrs=t.attrs||{};for(var s in i)e.props&&s in e.props||(a[s]=i[s],delete i[s])}}function C(e,t,n){var r=e.charAt(0);if("/"===r)return e;if("?"===r||"#"===r)return t+e;var o=t.split("/");n&&o[o.length-1]||o.pop();for(var i=e.replace(/^\//,"").split("/"),a=0;a<i.length;a++){var s=i[a];".."===s?o.pop():"."!==s&&o.push(s)}return""!==o[0]&&o.unshift(""),o.join("/")}function k(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var x=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)},E=function e(t,n,r){return x(n)||(r=n||r,n=[]),r=r||{},t instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return D(e,t)}(t,n):x(t)?function(t,n,r){for(var o=[],i=0;i<t.length;i++)o.push(e(t[i],n,r).source);return D(new RegExp("(?:"+o.join("|")+")",M(r)),n)}(t,n,r):function(e,t,n){return F(I(e,n),t,n)}(t,n,r)},O=I,T=L,A=F,P=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function I(e,t){for(var n,r=[],o=0,i=0,a="",s=t&&t.delimiter||"/";null!=(n=P.exec(e));){var c=n[0],u=n[1],l=n.index;if(a+=e.slice(i,l),i=l+c.length,u)a+=u[1];else{var d=e[i],p=n[2],f=n[3],h=n[4],m=n[5],g=n[6],y=n[7];a&&(r.push(a),a="");var v=null!=p&&null!=d&&d!==p,b="+"===g||"*"===g,_="?"===g||"*"===g,w=n[2]||s,S=h||m;r.push({name:f||o++,prefix:p||"",delimiter:w,optional:_,repeat:b,partial:v,asterisk:!!y,pattern:S?R(S):y?".*":"[^"+N(w)+"]+?"})}}return i<e.length&&(a+=e.substr(i)),a&&r.push(a),r}function j(e){return encodeURI(e).replace(/[\/?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}function L(e,t){for(var n=new Array(e.length),r=0;r<e.length;r++)"object"==typeof e[r]&&(n[r]=new RegExp("^(?:"+e[r].pattern+")$",M(t)));return function(t,r){for(var o="",i=t||{},a=(r||{}).pretty?j:encodeURIComponent,s=0;s<e.length;s++){var c=e[s];if("string"!=typeof c){var u,l=i[c.name];if(null==l){if(c.optional){c.partial&&(o+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(x(l)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(l)+"`");if(0===l.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var d=0;d<l.length;d++){if(u=a(l[d]),!n[s].test(u))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(u)+"`");o+=(0===d?c.prefix:c.delimiter)+u}}else{if(u=c.asterisk?encodeURI(l).replace(/[?#]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):a(l),!n[s].test(u))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+u+'"');o+=c.prefix+u}}else o+=c}return o}}function N(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function R(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function D(e,t){return e.keys=t,e}function M(e){return e&&e.sensitive?"":"i"}function F(e,t,n){x(t)||(n=t||n,t=[]);for(var r=(n=n||{}).strict,o=!1!==n.end,i="",a=0;a<e.length;a++){var s=e[a];if("string"==typeof s)i+=N(s);else{var c=N(s.prefix),u="(?:"+s.pattern+")";t.push(s),s.repeat&&(u+="(?:"+c+u+")*"),i+=u=s.optional?s.partial?c+"("+u+")?":"
2(?:"+c+"("+u+"))?":c+"("+u+")"}}var l=N(n.delimiter||"/"),d=i.slice(-l.length)===l;return r||(i=(d?i.slice(0,-l.length):i)+"(?:"+l+"(?=$))?"),i+=o?"$":r&&d?"":"(?="+l+"|$)",D(new RegExp("^"+i,M(n)),t)}E.parse=O,E.compile=function(e,t){return L(I(e,t),t)},E.tokensToFunction=T,E.tokensToRegExp=A;var U=Object.create(null);function B(e,t,n){t=t||{};try{var r=U[e]||(U[e]=E.compile(e));return"string"==typeof t.pathMatch&&(t[0]=t.pathMatch),r(t,{pretty:!0})}catch(e){return""}finally{delete t[0]}}function $(e,t,n,o){var i="string"==typeof e?{path:e}:e;if(i._normalized)return i;if(i.name){var a=(i=r({},e)).params;return a&&"object"==typeof a&&(i.params=r({},a)),i}if(!i.path&&i.params&&t){(i=r({},i))._normalized=!0;var s=r(r({},t.params),i.params);if(t.name)i.name=t.name,i.params=s;else if(t.matched.length){var c=t.matched[t.matched.length-1].path;i.path=B(c,s,t.path)}return i}var d=function(e){var t="",n="",r=e.indexOf("#");r>=0&&(t=e.slice(r),e=e.slice(0,r));var o=e.indexOf("?");return o>=0&&(n=e.slice(o+1),e=e.slice(0,o)),{path:e,query:n,hash:t}}(i.path||""),p=t&&t.path||"/",f=d.path?C(d.path,p,n||i.append):p,h=function(e,t,n){void 0===t&&(t={});var r,o=n||l;try{r=o(e||"")}catch(e){r={}}for(var i in t){var a=t[i];r[i]=Array.isArray(a)?a.map(u):u(a)}return r}(d.query,i.query,o&&o.options.parseQuery),m=i.hash||d.hash;return m&&"#"!==m.charAt(0)&&(m="#"+m),{_normalized:!0,path:f,query:h,hash:m}}var H,z=function(){},q={name:"RouterLink",props:{to:{type:[String,Object],required:!0},tag:{type:String,default:"a"},custom:Boolean,exact:Boolean,exactPath:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,ariaCurrentValue:{type:String,default:"page"},event:{type:[String,Array],default:"click"}},render:function(e){var t=this,n=this.$router,o=this.$route,i=n.resolve(this.to,o,this.append),a=i.location,s=i.route,c=i.href,u={},l=n.options.linkActiveClass,d=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,m=null==d?"router-link-exact-active":d,g=null==this.activeClass?h:this.activeClass,y=null==this.exactActiveClass?m:this.exactActiveClass,b=s.redirectedFrom?f(null,$(s.redirectedFrom),null,n):s;u[y]=v(o,b,this.exactPath),u[g]=this.exact||this.exactPath?u[y]:function(e,t){return 0===e.path.replace(p,"/").indexOf(t.path.replace(p,"/"))&&(!t.hash||e.hash===t.hash)&&function(e,t){for(var n in t)if(!(n in e))return!1;return!0}(e.query,t.query)}(o,b);var _=u[y]?this.ariaCurrentValue:null,w=function(e){V(e)&&(t.replace?n.replace(a,z):n.push(a,z))},S={click:V};Array.isArray(this.event)?this.event.forEach((function(e){S[e]=w})):S[this.event]=w;var C={class:u},k=!this.$scopedSlots.$hasNormal&&this.$scopedSlots.default&&this.$scopedSlots.default({href:c,route:s,navigate:w,isActive:u[g],isExactActive:u[y]});if(k){if(1===k.length)return k[0];if(k.length>1||!k.length)return 0===k.length?e():e("span",{},k)}if("a"===this.tag)C.on=S,C.attrs={href:c,"aria-current":_};else{var x=G(this.$slots.default);if(x){x.isStatic=!1;var E=x.data=r({},x.data);for(var O in E.on=E.on||{},E.on){var T=E.on[O];O in S&&(E.on[O]=Array.isArray(T)?T:[T])}for(var A in S)A in E.on?E.on[A].push(S[A]):E.on[A]=w;var P=x.data.attrs=r({},x.data.attrs);P.href=c,P["aria-current"]=_}else C.on=S}return e(this.tag,C,this.$slots.default)}};function V(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey||e.defaultPrevented||void 0!==e.button&&0!==e.button)){if(e.currentTarget&&e.currentTarget.getAttribute){var t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function G(e){if(e)for(var t,n=0;n<e.length;n++){if("a"===(t=e[n]).tag)return t;if(t.children&&(t=G(t.children)))return t}}var W="undefined"!=typeof window;function Y(e,t,n,r,o){var i=t||[],a=n||Object.create(null),s=r||Object.create(null);e.forEach((function(e){K(i,a,s,e,o)}));for(var c=0,u=i.length;c<u;c++)"*"===i[c]&&(i.push(i.splice(c,1)[0]),u--,c--);return{pathList:i,pathMap:a,nameMap:s}}function K(e,t,n,r,o,i){var a=r.path,s=r.name,c=r.pathToRegexpOptions||{},u=function(e,t,n){return n||(e=e.replace(/\/$/,"")),"/"===e[0]||null==t?e:k(t.path+"/"+e)}
2(a,o,c.strict);"boolean"==typeof r.caseSensitive&&(c.sensitive=r.caseSensitive);var l={path:u,regex:J(u,c),components:r.components||{default:r.component},alias:r.alias?"string"==typeof r.alias?[r.alias]:r.alias:[],instances:{},enteredCbs:{},name:s,parent:o,matchAs:i,redirect:r.redirect,beforeEnter:r.beforeEnter,meta:r.meta||{},props:null==r.props?{}:r.components?r.props:{default:r.props}};if(r.children&&r.children.forEach((function(r){var o=i?k(i+"/"+r.path):void 0;K(e,t,n,r,l,o)})),t[l.path]||(e.push(l.path),t[l.path]=l),void 0!==r.alias)for(var d=Array.isArray(r.alias)?r.alias:[r.alias],p=0;p<d.length;++p){var f={path:d[p],children:r.children};K(e,t,n,f,o,l.path||"/")}s&&(n[s]||(n[s]=l))}function J(e,t){return E(e,[],t)}function Z(e,t){var n=Y(e),r=n.pathList,o=n.pathMap,i=n.nameMap;function a(e,n,a){var c=$(e,n,!1,t),u=c.name;if(u){var l=i[u];if(!l)return s(null,c);var d=l.regex.keys.filter((function(e){return!e.optional})).map((function(e){return e.name}));if("object"!=typeof c.params&&(c.params={}),n&&"object"==typeof n.params)for(var p in n.params)!(p in c.params)&&d.indexOf(p)>-1&&(c.params[p]=n.params[p]);return c.path=B(l.path,c.params),s(l,c,a)}if(c.path){c.params={};for(var f=0;f<r.length;f++){var h=r[f],m=o[h];if(X(m.regex,c.path,c.params))return s(m,c,a)}}return s(null,c)}function s(e,n,r){return e&&e.redirect?function(e,n){var r=e.redirect,o="function"==typeof r?r(f(e,n,null,t)):r;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return s(null,n);var c=o,u=c.name,l=c.path,d=n.query,p=n.hash,h=n.params;if(d=c.hasOwnProperty("query")?c.query:d,p=c.hasOwnProperty("hash")?c.hash:p,h=c.hasOwnProperty("params")?c.params:h,u)return i[u],a({_normalized:!0,name:u,query:d,hash:p,params:h},void 0,n);if(l){var m=function(e,t){return C(e,t.parent?t.parent.path:"/",!0)}(l,e);return a({_normalized:!0,path:B(m,h),query:d,hash:p},void 0,n)}return s(null,n)}(e,r||n):e&&e.matchAs?function(e,t,n){var r=a({_normalized:!0,path:B(n,t.params)});if(r){var o=r.matched,i=o[o.length-1];return t.params=r.params,s(i,t)}return s(null,t)}(0,n,e.matchAs):f(e,n,r,t)}return{match:a,addRoute:function(e,t){var n="object"!=typeof e?i[e]:void 0;Y([t||e],r,o,i,n),n&&n.alias.length&&Y(n.alias.map((function(e){return{path:e,children:[t]}})),r,o,i,n)},getRoutes:function(){return r.map((function(e){return o[e]}))},addRoutes:function(e){Y(e,r,o,i)}}}function X(e,t,n){var r=t.match(e);if(!r)return!1;if(!n)return!0;for(var o=1,i=r.length;o<i;++o){var a=e.keys[o-1];
2a&&(n[a.name||"pathMatch"]="string"==typeof r[o]?c(r[o]):r[o])}return!0}var Q=W&&window.performance&&window.performance.now?window.performance:Date;function ee(){return Q.now().toFixed(3)}var te=ee();function ne(){return te}function re(e){return te=e}var oe=Object.create(null);function ie(){"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual");var e=window.location.protocol+"//"+window.location.host,t=window.location.href.replace(e,""),n=r({},window.history.state);return n.key=ne(),window.history.replaceState(n,"",t),window.addEventListener("popstate",ce),function(){window.removeEventListener("popstate",ce)}}function ae(e,t,n,r){if(e.app){var o=e.options.scrollBehavior;o&&e.app.$nextTick((function(){var i=function(){var e=ne();if(e)return oe[e]}(),a=o.call(e,t,n,r?i:null);a&&("function"==typeof a.then?a.then((function(e){fe(e,i)})).catch((function(e){})):fe(a,i))}))}}function se(){var e=ne();e&&(oe[e]={x:window.pageXOffset,y:window.pageYOffset})}function ce(e){se(),e.state&&e.state.key&&re(e.state.key)}function ue(e){return de(e.x)||de(e.y)}function le(e){return{x:de(e.x)?e.x:window.pageXOffset,y:de(e.y)?e.y:window.pageYOffset}}function de(e){return"number"==typeof e}var pe=/^#\d/;function fe(e,t){var n,r="object"==typeof e;if(r&&"string"==typeof e.selector){var o=pe.test(e.selector)?document.getElementById(e.selector.slice(1)):document.querySelector(e.selector);if(o){var i=e.offset&&"object"==typeof e.offset?e.offset:{};t=function(e,t){var n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{x:r.left-n.left-t.x,y:r.top-n.top-t.y}}(o,i={x:de((n=i).x)?n.x:0,y:de(n.y)?n.y:0})}else ue(e)&&(t=le(e))}else r&&ue(e)&&(t=le(e));t&&("scrollBehavior"in document.documentElement.style?window.scrollTo({left:t.x,top:t.y,behavior:e.behavior}):window.scrollTo(t.x,t.y))}var he,me=W&&(-1===(he=window.navigator.userAgent).indexOf("Android 2.")&&-1===he.indexOf("Android 4.0")||-1===he.indexOf("Mobile Safari")||-1!==he.indexOf("Chrome")||-1!==he.indexOf("Windows Phone"))&&window.history&&"function"==typeof window.history.pushState;function ge(e,t){se();var n=window.history;try{if(t){var o=r({},n.state);o.key=ne(),n.replaceState(o,"",e)}else n.pushState({key:re(ee())},"",e)}catch(n){window.location[t?"replace":"assign"](e)}}function ye(e){ge(e,!0)}function ve(e,t,n){var r=function(o){o>=e.length?n():e[o]?t(e[o],(function(){r(o+1)})):r(o+1)};r(0)}var be={redirected:2,aborted:4,cancelled:8,duplicated:16};function _e(e,t){return we(e,t,be.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+t.fullPath+'" with a new navigation.')}function we(e,t,n,r){var o=new Error(r);return o._isRouter=!0,o.from=e,o.to=t,o.type=n,o}var Se=["params","query","hash"];function Ce(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function ke(e,t){return Ce(e)&&e._isRouter&&(null==t||e.type===t)}function xe(e,t){return Ee(e.map((function(e){return Object.keys(e.components).map((function(n){return t(e.components[n],e.instances[n],e,n)}))})))}function Ee(e){return Array.prototype.concat.apply([],e)}var Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;function Te(e){var t=!1;return function(){for(var n=[],r=arguments.length;r--;)n[r]=arguments[r];if(!t)return t=!0,e.apply(this,n)}}var Ae=function(e,t){this.router=e,this.base=function(e){if(!e)if(W){var t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^https?:\/\/[^\/]+/,"")}else e="/";return"/"!==e.charAt(0)&&(e="/"+e),e.replace(/\/$/,"")}(t),this.current=m,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};function Pe(e,t,n,r){var o=xe(e,(function(e,r,o,i){var a=function(e,t){return"function"!=typeof e&&(e=H.extend(e)),e.options[t]}(e,t);if(a)return Array.isArray(a)?a.map((function(e){return n(e,r,o,i)})):n(a,r,o,i)}));return Ee(r?o.reverse():o)}function Ie(e,t){if(t)return function(){return e.apply(t,arguments)}}Ae.prototype.listen=function(e){this.cb=e},Ae.prototype.onReady=function(e,t){this.ready?e():(this.readyCbs.push(e),t&&this.readyErrorCbs.push(t))},Ae.prototype.onError=function(e){this.errorCbs.push(e)},Ae.prototype.transitionTo=function(e,t,n){var r,o=this;try{r=this.router.match(e,this.current)}
2catch(e){throw this.errorCbs.forEach((function(t){t(e)})),e}var i=this.current;this.confirmTransition(r,(function(){o.updateRoute(r),t&&t(r),o.ensureURL(),o.router.afterHooks.forEach((function(e){e&&e(r,i)})),o.ready||(o.ready=!0,o.readyCbs.forEach((function(e){e(r)})))}),(function(e){n&&n(e),e&&!o.ready&&(ke(e,be.redirected)&&i===m||(o.ready=!0,o.readyErrorCbs.forEach((function(t){t(e)}))))}))},Ae.prototype.confirmTransition=function(e,t,n){var r=this,o=this.current;this.pending=e;var i,a,s=function(e){!ke(e)&&Ce(e)&&(r.errorCbs.length?r.errorCbs.forEach((function(t){t(e)})):console.error(e)),n&&n(e)},c=e.matched.length-1,u=o.matched.length-1;if(v(e,o)&&c===u&&e.matched[c]===o.matched[u])return this.ensureURL(),e.hash&&ae(this.router,o,e,!1),s(((a=we(i=o,e,be.duplicated,'Avoided redundant navigation to current location: "'+i.fullPath+'".')).name="NavigationDuplicated",a));var l,d=function(e,t){var n,r=Math.max(e.length,t.length);for(n=0;n<r&&e[n]===t[n];n++);return{updated:t.slice(0,n),activated:t.slice(n),deactivated:e.slice(n)}}(this.current.matched,e.matched),p=d.updated,f=d.deactivated,h=d.activated,m=[].concat(function(e){return Pe(e,"beforeRouteLeave",Ie,!0)}(f),this.router.beforeHooks,function(e){return Pe(e,"beforeRouteUpdate",Ie)}(p),h.map((function(e){return e.beforeEnter})),(l=h,function(e,t,n){var r=!1,o=0,i=null;xe(l,(function(e,t,a,s){if("function"==typeof e&&void 0===e.cid){r=!0,o++;var c,u=Te((function(t){var r;((r=t).__esModule||Oe&&"Module"===r[Symbol.toStringTag])&&(t=t.default),e.resolved="function"==typeof t?t:H.extend(t),a.components[s]=t,--o<=0&&n()})),l=Te((function(e){var t="Failed to resolve async component "+s+": "+e;i||(i=Ce(e)?e:new Error(t),n(i))}));try{c=e(u,l)}catch(e){l(e)}if(c)if("function"==typeof c.then)c.then(u,l);else{var d=c.component;d&&"function"==typeof d.then&&d.then(u,l)}}})),r||n()})),g=function(t,n){if(r.pending!==e)return s(_e(o,e));try{t(e,o,(function(t){!1===t?(r.ensureURL(!0),s(function(e,t){return we(e,t,be.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+t.fullPath+'" via a navigation guard.')}(o,e))):Ce(t)?(r.ensureURL(!0),s(t)):"string"==typeof t||"object"==typeof t&&("string"==typeof t.path||"string"==typeof t.name)?(s(function(e,t){return we(e,t,be.redirected,'Redirected when going from "'+e.fullPath+'" to "'+function(e){if("string"==typeof e)return e;if("path"in e)return e.path;var t={};return Se.forEach((function(n){n in e&&(t[n]=e[n])})),JSON.stringify(t,null,2)}(t)+'" via a navigation guard.')}(o,e)),"object"==typeof t&&t.replace?r.replace(t):r.push(t)):n(t)}))}catch(e){s(e)}};ve(m,g,(function(){var n=function(e){return Pe(e,"beforeRouteEnter",(function(e,t,n,r){return function(e,t,n){return function(r,o,i){return e(r,o,(function(e){"function"==typeof e&&(t.enteredCbs[n]||(t.enteredCbs[n]=[]),t.enteredCbs[n].push(e)),i(e)}))}}(e,n,r)}))}(h);ve(n.concat(r.router.resolveHooks),g,(function(){if(r.pending!==e)return s(_e(o,e));r.pending=null,t(e),r.router.app&&r.router.app.$nextTick((function(){_(e)}))}))}))},Ae.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},Ae.prototype.setupListeners=function(){},Ae.prototype.teardown=function(){this.listeners.forEach((function(e){e()})),this.listeners=[],this.current=m,this.pending=null};var je=function(e){function t(t,n){e.call(this,t,n),this._startLocation=Le(this.base)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router,n=t.options.scrollBehavior,r=me&&n;r&&this.listeners.push(ie());var o=function(){var n=e.current,o=Le(e.base);e.current===m&&o===e._startLocation||e.transitionTo(o,(function(e){r&&ae(t,e,n,!0)}))};window.addEventListener("popstate",o),this.listeners.push((function(){window.removeEventListener("popstate",o)}))}},t.prototype.go=function(e){window.history.go(e)},t.prototype.push=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){ge(k(r.base+e.fullPath)),ae(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){ye(k(r.base+e.fullPath)),ae(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.ensureURL=function(e){if(Le(this.base)!==this.current.fullPath){var t=k(this.base+this.current.fullPath);e?ge(t):ye(t)}},t.prototype.getCurrentLocation=function(){return Le(this.base)},t}(Ae);function Le(e){var t=window.location.pathname,n=t.toLowerCase(),r=e.toLowerCase();return!e||n!==r&&0!==n.indexOf(k(r+"/"))||(t=t.slice(e.length)),(t||"/")+window.location.search+window.location.hash}var Ne=function(e){function t(t,n,r){e.call(this,t,n),r&&function(e){var t=Le(e);if(!/^\/#/.test(t))return window.location.replace(k(e+"/#"+t)),!0}(this.base)||Re()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.setupListeners=function(){var e=this;if(!(this.listeners.length>0)){var t=this.router.options.scrollBehavior,n=me&&t;n&&this.listeners.push(ie());var r=function(){var t=e.current;Re()&&e.transitionTo(De(),(function(r){n&&ae(e.router,r,t,!0),me||Ue(r.fullPath)}))},o=me?"popstate":"hashchange";window.addEventListener(o,r),this.listeners.push((function(){window.removeEventListener(o,r)}))}},t.prototype.push=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){Fe(e.fullPath),ae(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this,o=this.current;this.transitionTo(e,(function(e){Ue(e.fullPath),ae(r.router,e,o,!1),t&&t(e)}),n)},t.prototype.go=function(e){window.history.go(e)},t.prototype.ensureURL=function(e){var t=this.current.fullPath;De()!==t&&(e?Fe(t):Ue(t))},t.prototype.getCurrentLocation=function(){return De()},t}(Ae);function Re(){var e=De();return"/"===e.charAt(0)||(Ue("/"+e),!1)}function De(){var e=window.location.href,t=e.indexOf("#");
2return t<0?"":e=e.slice(t+1)}function Me(e){var t=window.location.href,n=t.indexOf("#");return(n>=0?t.slice(0,n):t)+"#"+e}function Fe(e){me?ge(Me(e)):window.location.hash=e}function Ue(e){me?ye(Me(e)):window.location.replace(Me(e))}var Be=function(e){function t(t,n){e.call(this,t,n),this.stack=[],this.index=-1}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.push=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index+1).concat(e),r.index++,t&&t(e)}),n)},t.prototype.replace=function(e,t,n){var r=this;this.transitionTo(e,(function(e){r.stack=r.stack.slice(0,r.index).concat(e),t&&t(e)}),n)},t.prototype.go=function(e){var t=this,n=this.index+e;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){var e=t.current;t.index=n,t.updateRoute(r),t.router.afterHooks.forEach((function(t){t&&t(r,e)}))}),(function(e){ke(e,be.duplicated)&&(t.index=n)}))}},t.prototype.getCurrentLocation=function(){var e=this.stack[this.stack.length-1];return e?e.fullPath:"/"},t.prototype.ensureURL=function(){},t}(Ae),$e=function(e){void 0===e&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Z(e.routes||[],this);var t=e.mode||"hash";switch(this.fallback="history"===t&&!me&&!1!==e.fallback,this.fallback&&(t="hash"),W||(t="abstract"),this.mode=t,t){case"history":this.history=new je(this,e.base);break;case"hash":this.history=new Ne(this,e.base,this.fallback);break;case"abstract":this.history=new Be(this,e.base)}},He={currentRoute:{configurable:!0}};function ze(e,t){return e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}$e.prototype.match=function(e,t,n){return this.matcher.match(e,t,n)},He.currentRoute.get=function(){return this.history&&this.history.current},$e.prototype.init=function(e){var t=this;if(this.apps.push(e),e.$once("hook:destroyed",(function(){var n=t.apps.indexOf(e);n>-1&&t.apps.splice(n,1),t.app===e&&(t.app=t.apps[0]||null),t.app||t.history.teardown()})),!this.app){this.app=e;var n=this.history;if(n instanceof je||n instanceof Ne){var r=function(e){n.setupListeners(),function(e){var r=n.current,o=t.options.scrollBehavior;me&&o&&"fullPath"in e&&ae(t,e,r,!1)}(e)};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(e){t.apps.forEach((function(t){t._route=e}))}))}},$e.prototype.beforeEach=function(e){return ze(this.beforeHooks,e)},$e.prototype.beforeResolve=function(e){return ze(this.resolveHooks,e)},$e.prototype.afterEach=function(e){return ze(this.afterHooks,e)},$e.prototype.onReady=function(e,t){this.history.onReady(e,t)},$e.prototype.onError=function(e){this.history.onError(e)},$e.prototype.push=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.push(e,t,n)}));this.history.push(e,t,n)},$e.prototype.replace=function(e,t,n){var r=this;if(!t&&!n&&"undefined"!=typeof Promise)return new Promise((function(t,n){r.history.replace(e,t,n)}));this.history.replace(e,t,n)},$e.prototype.go=function(e){this.history.go(e)},$e.prototype.back=function(){this.go(-1)},$e.prototype.forward=function(){this.go(1)},$e.prototype.getMatchedComponents=function(e){var t=e?e.matched?e:this.resolve(e).route:this.currentRoute;return t?[].concat.apply([],t.matched.map((function(e){return Object.keys(e.components).map((function(t){return e.components[t]}))}))):[]},$e.prototype.resolve=function(e,t,n){var r=$(e,t=t||this.history.current,n,this),o=this.match(r,t),i=o.redirectedFrom||o.fullPath,a=function(e,t,n){var r="hash"===n?"#"+t:t;return e?k(e+"/"+r):r}(this.history.base,i,this.mode);return{location:r,route:o,href:a,normalizedTo:r,resolved:o}},$e.prototype.getRoutes=function(){return this.matcher.getRoutes()},$e.prototype.addRoute=function(e,t){this.matcher.addRoute(e,t),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())},$e.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==m&&this.history.transitionTo(this.history.getCurrentLocation())}
2,Object.defineProperties($e.prototype,He),$e.install=function e(t){if(!e.installed||H!==t){e.installed=!0,H=t;var n=function(e){return void 0!==e},r=function(e,t){var r=e.$options._parentVnode;n(r)&&n(r=r.data)&&n(r=r.registerRouteInstance)&&r(e,t)};t.mixin({beforeCreate:function(){n(this.$options.router)?(this._routerRoot=this,this._router=this.$options.router,this._router.init(this),t.util.defineReactive(this,"_route",this._router.history.current)):this._routerRoot=this.$parent&&this.$parent._routerRoot||this,r(this,this)},destroyed:function(){r(this)}}),Object.defineProperty(t.prototype,"$router",{get:function(){return this._routerRoot._router}}),Object.defineProperty(t.prototype,"$route",{get:function(){return this._routerRoot._route}}),t.component("RouterView",w),t.component("RouterLink",q);var o=t.config.optionMergeStrategies;o.beforeRouteEnter=o.beforeRouteLeave=o.beforeRouteUpdate=o.created}},$e.version="3.5.4",$e.isNavigationFailure=ke,$e.NavigationFailureType=be,$e.START_LOCATION=m,W&&window.Vue&&window.Vue.use($e);const qe=$e},813254:(e,t,n)=>{var r=n(439574);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("9b0b515e",r,!0,{})},798242:(e,t,n)=>{var r=n(104540);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("1fd04a1c",r,!0,{})},234337:(e,t,n)=>{var r=n(63327);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("1803e7c0",r,!0,{})},83230:(e,t,n)=>{var r=n(35500);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("4a3552d4",r,!0,{})},580113:(e,t,n)=>{var r=n(847694);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("15e37400",r,!0,{})},694633:(e,t,n)=>{var r=n(337288);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("5dc5203b",r,!0,{})}
vendor: 4,917 bytes, line 2
2,740912:(e,t,n)=>{var r=n(738905);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("0ba81eb2",r,!0,{})},588222:(e,t,n)=>{var r=n(361519);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("376c570a",r,!0,{})},178691:(e,t,n)=>{var r=n(978033);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("8e2aa1ca",r,!0,{})},282149:(e,t,n)=>{var r=n(353259);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("2790649a",r,!0,{})},213694:(e,t,n)=>{var r=n(551819);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("7caa2aeb",r,!0,{})},612927:(e,t,n)=>{var r=n(456927);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("2b7a7d0a",r,!0,{})},73422:(e,t,n)=>{var r=n(933401);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("4dfbddbb",r,!0,{})},504871:(e,t,n)=>{var r=n(392556);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("ee69ffca",r,!0,{})},332712:(e,t,n)=>{var r=n(644016);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("073893e3",r,!0,{})},883618:(e,t,n)=>{var r=n(428640);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("ff92f10a",r,!0,{})},887961:(e,t,n)=>{var r=n(486628);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("326ae78b",r,!0,{})},244524:(e,t,n)=>{var r=n(981388);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("35dcafe4",r,!0,{})},642158:(e,t,n)=>{var r=n(714848);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("25dba082",r,!0,{})},246594:(e,t,n)=>{var r=n(344564);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("50c2eac0",r,!0,{})},46080:(e,t,n)=>{var r=n(371548);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("1c88b2bc",r,!0,{})},248108:(e,t,n)=>{var r=n(524880);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("1a560e0e",r,!0,{})},114951:(e,t,n)=>{var r=n(298337);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("078ecd89",r,!0,{})},843506:(e,t,n)=>{var r=n(921538);r.__esModule&&(r=r.default),"string"==typeof r&&(r=[[e.id,r,""]]),r.locals&&(e.exports=r.locals),(0,n(745346).Z)("6f10ff8f",r,!0,{})},745346:(e,t,n)=>{"use strict";function r(e,t){for(var n=[],r={},o=0;o<t.length;o++){var i=t[o],a=i[0],s={id:e+":"+o,css:i[1],media:i[2],sourceMap:i[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}n.d(t,{Z:()=>h});var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var i={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,c=0,u=!1,l=function(){},d=null,p="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function h(e,t,n,o){u=n,d=o||{};var a=r(e,t);return m(a),function(t){for(var n=[],o=0;o<a.length;o++){var s=a[o];(c=i[s.id]).refs--,n.push(c)}for(t?m(a=r(e,t)):a=[],o=0;o<n.length;o++){var c;if(0===(c=n[o]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete i[c.id]}}}}function m(e){for(var t=0;t<e.length;t++){var n=e[t],r=i[n.id];if(r){r.refs++;for(var o=0;o<r.parts.length;o++)r.parts[o](n.parts[o]);for(;o<n.parts.length;o++)r.parts.push(y(n.parts[o]));r.parts.length>n.parts.length&&(r.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(y(n.parts[o]));i[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var e=document.createElement("style");return e.type="text/css",a.appendChild(e),e}function y(e){var t,n,r=document.querySelector("style["+p+'~="'+e.id+'"]');if(r){if(u)return l;r.parentNode.removeChild(r)}if(f){var o=c++;r=s||(s=g()),t=_.bind(null,r,o,!1),n=_.bind(null,r,o,!0)}else r=g(),t=w.bind(null,r),n=function(){r.parentNode.removeChild(r)};return t(e),function(r){if(r){if(r.css===e.css&&r.media===e.media&&r.sourceMap===e.sourceMap)return;t(e=r)}else n()}}var v,b=(v=[],function(e,t){return v[e]=t,v.filter(Boolean).join("\n")});function _(e,t,n,r){var o=n?"":r.css;
2if(e.styleSheet)e.styleSheet.cssText=b(t,o);else{var i=document.createTextNode(o),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function w(e,t){var n=t.css,r=t.media,o=t.sourceMap;if(r&&e.setAttribute("media",r),d.ssrId&&e.setAttribute(p,t.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}},72100:(e,t,n)=>{e.exports=n(191317)},191317:(e,t,n)=>{"use strict";const r=Object.freeze({}),o=Array.isArray;function i(e){return null==e}function a(e){return null!=e}function s(e){return!0===e}function c(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return"function"==typeof e}function l(e){return null!==e&&"object"==typeof e}const d=Object.prototype.toString;function p(e){return"[object Object]"===d.call(e)}function f(e){const t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function h(e){return a(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function m(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function g(e){const t=parseFloat(e);return isNaN(t)?e:t}function y(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e<r.length;e++)n[r[e]]=!0;return t?e=>n[e.toLowerCase()]:e=>n[e]}const v=y("slot,component",!0),b=y("key,ref,slot,slot-scope,is");function _(e,t){if(e.length){const n=e.indexOf(t);if(n>-1)return e.splice(n,1)}}const w=Object.prototype.hasOwnProperty;function S(e,t){return w.call(e,t)}function C(e){const t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}const k=/-(\w)/g,x=C((e=>e.replace(k,((e,t)=>t?t.toUpperCase():"")))),E=C((e=>e.charAt(0).toUpperCase()+e.slice(1))),O=/\B([A-Z])/g,T=C((e=>e.replace(O,"-$1").toLowerCase())),A=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){const r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function P(e,t){t=t||0;let n=e.length-t;const r=new Array(n);for(;n--;)r[n]=e[n+t];return r}function I(e,t){for(const n in t)e[n]=t[n];return e}function j(e){const t={};for(let n=0;n<e.length;n++)e[n]&&I(t,e[n]);return t}function L(e,t,n){}const N=(e,t,n)=>!1,R=e=>e;function D(e,t){if(e===t)return!0;const n=l(e),r=l(t);if(!n||!r)return!n&&!r&&String(e)===String(t);try{const n=Array.isArray(e),r=Array.isArray(t);if(n&&r)return e.length===t.length&&e.every(((e,n)=>D(e,t[n])));if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(n||r)return!1;{const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every((n=>D(e[n],t[n])))}}catch(e){return!1}}function M(e,t){for(let n=0;n<e.length;n++)if(D(e[n],t))return n;return-1}function F(e){let t=!1;return function(){t||(t=!0,e.apply(this,arguments))}}function U(e,t){return e===t?0===e&&1/e!=1/t:e==e||t==t}const B=["component","directive","filter"],$=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch","renderTracked","renderTriggered"];var H={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:N,isReservedAttr:N,isUnknownElement:N,getTagNamespace:L,parsePlatformTagName:R,mustUseProp:N,async:!0,_lifecycleHooks:$};const z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function q(e){const t=(e+"").charCodeAt(0);return 36===t||95===t}function V(e,t,n,r){Object.defineProperty(e,t,{value:n,enumerable:!!r,writable:!0,configurable:!0})}const G=new RegExp(`[^${z.source}.$_\\d]`),W="__proto__"in{},Y="undefined"!=typeof window,K=Y&&window.navigator.userAgent.toLowerCase(),J=K&&/msie|trident/.test(K),Z=K&&K.indexOf("msie 9.0")>0,X=K&&K.indexOf("edge/")>0;K&&K.indexOf("android");const Q=K&&/iphone|ipad|ipod|ios/.test(K);K&&/chrome\/\d+/.test(K),K&&/phantomjs/.test(K);const ee=K&&K.match(/firefox\/(\d+)/),te={}.watch;let ne,re=!1;if(Y)try{const e={};Object.defineProperty(e,"passive",{get(){re=!0}}),window.addEventListener("test-passive",null,e)}catch(r){}const oe=()=>(void 0===ne&&(ne=!Y&&void 0!==n.g&&n.g.process&&"server"===n.g.process.env.VUE_ENV),ne),ie=Y&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function ae(e){return"function"==typeof e&&/native code/.test(e.toString())}const se="undefined"!=typeof Symbol&&ae(Symbol)&&"undefined"!=typeof Reflect&&ae(Reflect.ownKeys);let ce;ce="undefined"!=typeof Set&&ae(Set)?Set:class{constructor(){this.set=Object.create(null)}has(e){return!0===this.set[e]}add(e){this.set[e]=!0}clear(){this.set=Object.create(null)}};let ue=null;function le(e=null){e||ue&&ue._scope.off(),ue=e,e&&e._scope.on()}class de{constructor(e,t,n,r,o,i,a,s){this.tag=e,this.data=t,this.children=n,this.text=r,this.elm=o,this.ns=void 0,this.context=i,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=t&&t.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}get child(){return this.componentInstance}}
2const pe=(e="")=>{const t=new de;return t.text=e,t.isComment=!0,t};function fe(e){return new de(void 0,void 0,void 0,String(e))}function he(e){const t=new de(e.tag,e.data,e.children&&e.children.slice(),e.text,e.elm,e.context,e.componentOptions,e.asyncFactory);return t.ns=e.ns,t.isStatic=e.isStatic,t.key=e.key,t.isComment=e.isComment,t.fnContext=e.fnContext,t.fnOptions=e.fnOptions,t.fnScopeId=e.fnScopeId,t.asyncMeta=e.asyncMeta,t.isCloned=!0,t}let me=0;class ge{constructor(){this.id=me++,this.subs=[]}addSub(e){this.subs.push(e)}removeSub(e){_(this.subs,e)}depend(e){ge.target&&ge.target.addDep(this)}notify(e){const t=this.subs.slice();for(let e=0,n=t.length;e<n;e++)t[e].update()}}ge.target=null;const ye=[];function ve(e){ye.push(e),ge.target=e}function be(){ye.pop(),ge.target=ye[ye.length-1]}const _e=Array.prototype,we=Object.create(_e);["push","pop","shift","unshift","splice","sort","reverse"].forEach((function(e){const t=_e[e];V(we,e,(function(...n){const r=t.apply(this,n),o=this.__ob__;let i;switch(e){case"push":case"unshift":i=n;break;case"splice":i=n.slice(2)}return i&&o.observeArray(i),o.dep.notify(),r}))}));const Se=Object.getOwnPropertyNames(we),Ce={};let ke=!0;function xe(e){ke=e}const Ee={notify:L,depend:L,addSub:L,removeSub:L};class Oe{constructor(e,t=!1,n=!1){if(this.value=e,this.shallow=t,this.mock=n,this.dep=n?Ee:new ge,this.vmCount=0,V(e,"__ob__",this),o(e)){if(!n)if(W)e.__proto__=we;else for(let t=0,n=Se.length;t<n;t++){const n=Se[t];V(e,n,we[n])}t||this.observeArray(e)}else{const r=Object.keys(e);for(let o=0;o<r.length;o++)Ae(e,r[o],Ce,void 0,t,n)}}observeArray(e){for(let t=0,n=e.length;t<n;t++)Te(e[t],!1,this.mock)}}function Te(e,t,n){if(!l(e)||Fe(e)||e instanceof de)return;let r;return S(e,"__ob__")&&e.__ob__ instanceof Oe?r=e.__ob__:!ke||!n&&oe()||!o(e)&&!p(e)||!Object.isExtensible(e)||e.__v_skip||(r=new Oe(e,t,n)),r}function Ae(e,t,n,r,i,a){const s=new ge,c=Object.getOwnPropertyDescriptor(e,t);if(c&&!1===c.configurable)return;const u=c&&c.get,l=c&&c.set;u&&!l||n!==Ce&&2!==arguments.length||(n=e[t]);let d=!i&&Te(n,!1,a);return Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:function(){const t=u?u.call(e):n;return ge.target&&(s.depend(),d&&(d.dep.depend(),o(t)&&je(t))),Fe(t)&&!i?t.value:t},set:function(t){const r=u?u.call(e):n;if(U(r,t)){if(l)l.call(e,t);else{if(u)return;if(!i&&Fe(r)&&!Fe(t))return void(r.value=t);n=t}d=!i&&Te(t,!1,a),s.notify()}}}),s}function Pe(e,t,n){if(Me(e))return;const r=e.__ob__;return o(e)&&f(t)?(e.length=Math.max(e.length,t),e.splice(t,1,n),r&&!r.shallow&&r.mock&&Te(n,!1,!0),n):t in e&&!(t in Object.prototype)?(e[t]=n,n):e._isVue||r&&r.vmCount?n:r?(Ae(r.value,t,n,void 0,r.shallow,r.mock),r.dep.notify(),n):(e[t]=n,n)}function Ie(e,t){if(o(e)&&f(t))return void e.splice(t,1);const n=e.__ob__;e._isVue||n&&n.vmCount||Me(e)||S(e,t)&&(delete e[t],n&&n.dep.notify())}function je(e){for(let t,n=0,r=e.length;n<r;n++)t=e[n],t&&t.__ob__&&t.__ob__.dep.depend(),o(t)&&je(t)}function Le(e){return Ne(e,!0),V(e,"__v_isShallow",!0),e}function Ne(e,t){Me(e)||Te(e,t,oe())}function Re(e){return Me(e)?Re(e.__v_raw):!(!e||!e.__ob__)}function De(e){return!(!e||!e.__v_isShallow)}function Me(e){return!(!e||!e.__v_isReadonly)}function Fe(e){return!(!e||!0!==e.__v_isRef)}function Ue(e,t){if(Fe(e))return e;const n={};return V(n,"__v_isRef",!0),V(n,"__v_isShallow",t),V(n,"dep",Ae(n,"value",e,null,t,oe())),n}function Be(e,t,n){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>{const e=t[n];if(Fe(e))return e.value;{const t=e&&e.__ob__;return t&&t.dep.depend(),e}},set:e=>{const r=t[n];Fe(r)&&!Fe(e)?r.value=e:t[n]=e}})}function $e(e,t,n){const r=e[t];if(Fe(r))return r;const o={get value(){const r=e[t];return void 0===r?n:r},set value(n){e[t]=n}};return V(o,"__v_isRef",!0),o}function He(e){return ze(e,!1)}function ze(e,t){if(!p(e))return e;if(Me(e))return e;const n=t?"__v_rawToShallowReadonly":"__v_rawToReadonly",r=e[n];if(r)return r;const o=Object.create(Object.getPrototypeOf(e));V(e,n,o),V(o,"__v_isReadonly",!0),V(o,"__v_raw",e),Fe(e)&&V(o,"__v_isRef",!0),(t||De(e))&&V(o,"__v_isShallow",!0);const i=Object.keys(e);for(let n=0;n<i.length;n++)qe(o,e,i[n],t);return o}function qe(e,t,n,r){Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get(){const e=t[n];return r||!p(e)?e:He(e)},set(){}})}const Ve=C((e=>{const t="&"===e.charAt(0),n="~"===(e=t?e.slice(1):e).charAt(0),r="!"===(e=n?e.slice(1):e).charAt(0);return{name:e=r?e.slice(1):e,once:n,capture:r,passive:t}}));function Ge(e,t){function n(){const e=n.fns;if(!o(e))return an(e,null,arguments,t,"v-on handler");{const n=e.slice();for(let e=0;e<n.length;e++)an(n[e],null,arguments,t,"v-on handler")}}return n.fns=e,n}function We(e,t,n,r,o,a){let c,u,l,d;for(c in e)u=e[c],l=t[c],d=Ve(c),i(u)||(i(l)?(i(u.fns)&&(u=e[c]=Ge(u,a)),s(d.once)&&(u=e[c]=o(d.name,u,d.capture)),n(d.name,u,d.capture,d.passive,d.params)):u!==l&&(l.fns=u,e[c]=l));for(c in t)i(e[c])&&(d=Ve(c),r(d.name,t[c],d.capture))}function Ye(e,t,n){let r;e instanceof de&&(e=e.data.hook||(e.data.hook={}));const o=e[t];function c(){n.apply(this,arguments),_(r.fns,c)}i(o)?r=Ge([c]):a(o.fns)&&s(o.merged)?(r=o,r.fns.push(c)):r=Ge([o,c]),r.merged=!0,e[t]=r}function Ke(e,t,n,r,o){if(a(t)){if(S(t,n))return e[n]=t[n],o||delete t[n],!0;if(S(t,r))return e[n]=t[r],o||delete t[r],!0}return!1}function Je(e){return c(e)?[fe(e)]:o(e)?Xe(e):void 0}function Ze(e){return a(e)&&a(e.text)&&!1===e.isComment}function Xe(e,t){const n=[];let r,u,l,d;for(r=0;r<e.length;r++)u=e[r],i(u)||"boolean"==typeof u||(l=n.length-1,d=n[l],o(u)?u.length>0&&(u=Xe(u,`${t||""}_${r}`),Ze(u[0])&&Ze(d)&&(n[l]=fe(d.text+u[0].text),u.shift()),n.push.apply(n,u)):c(u)?Ze(d)?n[l]=fe(d.text+u):""!==u&&n.push(fe(u)):Ze(u)&&Ze(d)?n[l]=fe(d.text+u.text):(s(e._isVList)&&a(u.tag)&&i(u.key)&&a(t)&&(u.key=`__vlist${t}_${r}__`),n.push(u)));return n}function Qe(e,t,n,r,i,d){return(o(n)||c(n))&&(i=r,r=n,n=void 0),s(d)&&(i=2),function(e,t,n,r,i){if(a(n)&&a(n.__ob__))return pe();if(a(n)&&a(n.is)&&(t=n.is),!t)return pe();let s,c;if(o(r)&&u(r[0])&&((n=n||{}).scopedSlots={default:r[0]},r.length=0),2===i?r=Je(r):1===i&&(r=function(e){for(let t=0;t<e.length;t++)if(o(e[t]))return Array.prototype.concat.apply([],e);return e}(r)),"string"==typeof t){let o;c=e.$vnode&&e.$vnode.ns||H.getTagNamespace(t),s=H.isReservedTag(t)?new de(H.parsePlatformTagName(t),n,r,void 0,void 0,e):n&&n.pre||!a(o=sr(e.$options,"components",t))?new de(t,n,r,void 0,void 0,e):Zn(o,n,e,r,t)}else s=Zn(t,n,e,r);return o(s)?s:a(s)?(a(c)&&et(s,c),a(n)&&function(e){l(e.style)&&Pn(e.style),l(e.class)&&Pn(e.class)}(n),s):pe()}(e,t,n,r,i)}function et(e,t,n){if(e.ns=t,"foreignObject"===e.tag&&(t=void 0,n=!0),a(e.children))for(let r=0,o=e.children.length;r<o;r++){const o=e.children[r];a(o.tag)&&(i(o.ns)||s(n)&&"svg"!==o.tag)&&et(o,t,n)}}function tt(e,t){let n,r,i,s,c=null;if(o(e)||"string"==typeof e)for(c=new Array(e.length),n=0,r=e.length;n<r;n++)c[n]=t(e[n],n);else if("number"==typeof e)for(c=new Array(e),n=0;n<e;n++)c[n]=t(n+1,n);else if(l(e))if(se&&e[Symbol.iterator]){c=[];const n=e[Symbol.iterator]();let r=n.next();for(;!r.done;)c.push(t(r.value,c.length)),r=n.next()}else for(i=Object.keys(e),c=new Array(i.length),n=0,r=i.length;n<r;n++)s=i[n],c[n]=t(e[s],s,n);return a(c)||(c=[]),c._isVList=!0,c}function nt(e,t,n,r){const o=this.$scopedSlots[e];let i;o?(n=n||{},r&&(n=I(I({},r),n)),i=o(n)||(u(t)?t():t)):i=this.$slots[e]||(u(t)?t():t);const a=n&&n.slot;return a?this.$createElement("template",{slot:a},i):i}function rt(e){return sr(this.$options,"filters",e)||R}function ot(e,t){return o(e)?-1===e.indexOf(t):e!==t}function it(e,t,n,r,o){const i=H.keyCodes[t]||n;return o&&r&&!H.keyCodes[t]?ot(o,r):i?ot(i,e):r?T(r)!==t:void 0===e}function at(e,t,n,r,i){if(n&&l(n)){let a;o(n)&&(n=j(n));for(const o in n){if("class"===o||"style"===o||b(o))a=e;else{const n=e.attrs&&e.attrs.type;a=r||H.mustUseProp(t,n,o)?e.domProps||(e.domProps={}):e.attrs||(e.attrs={})}const s=x(o),c=T(o);s in a||c in a||(a[o]=n[o],!i)||((e.on||(e.on={}))[`update:${o}`]=function(e){n[o]=e})}}return e}function st(e,t){const n=this._staticTrees||(this._staticTrees=[]);let r=n[e];return r&&!t||(r=n[e]=this.$options.staticRenderFns[e].call(this._renderProxy,this._c,this),ut(r,`__static__${e}`,!1)),r}function ct(e,t,n){return ut(e,`__once__${t}${n?`_${n}`:""}`,!0),e}function ut(e,t,n){if(o(e))for(let r=0;r<e.length;r++)e[r]&&"string"!=typeof e[r]&<(e[r],`${t}_${r}`,n);else lt(e,t,n)}function lt(e,t,n){e.isStatic=!0,e.key=t,e.isOnce=n}function dt(e,t){if(t&&p(t)){const n=e.on=e.on?I({},e.on):{};for(const e in t){const r=n[e],o=t[e];n[e]=r?[].concat(r,o):o}}return e}function pt(e,t,n,r){t=t||{$stable:!n};for(let r=0;r<e.length;r++){const i=e[r];o(i)?pt(i,t,n):i&&(i.proxy&&(i.fn.proxy=!0),t[i.key]=i.fn)}return r&&(t.$key=r),t}function ft(e,t){for(let n=0;n<t.length;n+=2){const r=t[n];"string"==typeof r&&r&&(e[t[n]]=t[n+1])}return e}function ht(e,t){return"string"==typeof e?t+e:e}function mt(e){e._o=ct,e._n=g,e._s=m,e._l=tt,e._t=nt,e._q=D,e._i=M,e._m=st,e._f=rt,e._k=it,e._b=at,e._v=fe,e._e=pe,e._u=pt,e._g=dt,e._d=ft,e._p=ht}function gt(e,t){if(!e||!e.length)return{};const n={};for(let r=0,o=e.length;r<o;r++){const o=e[r],i=o.data;if(i&&i.attrs&&i.attrs.slot&&delete i.attrs.slot,o.context!==t&&o.fnContext!==t||!i||null==i.slot)(n.default||(n.default=[])).push(o);else{const e=i.slot,t=n[e]||(n[e]=[]);"template"===o.tag?t.push.apply(t,o.children||[]):t.push(o)}}for(const e in n)n[e].every(yt)&&delete n[e];return n}function yt(e){return e.isComment&&!e.asyncFactory||" "===e.text}function vt(e){return e.isComment&&e.asyncFactory}function bt(e,t,n,o){let i;const a=Object.keys(n).length>0,s=t?!!t.$stable:!a,c=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&o&&o!==r&&c===o.$key&&!a&&!o.$hasNormal)return o;i={};for(const r in t)t[r]&&"$"!==r[0]&&(i[r]=_t(e,n,r,t[r]))}else i={};for(const e in n)e in i||(i[e]=wt(n,e));return t&&Object.isExtensible(t)&&(t._normalized=i),V(i,"$stable",s),V(i,"$key",c),V(i,"$hasNormal",a),i}function _t(e,t,n,r){const i=function(){const t=ue;le(e);let n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"==typeof n&&!o(n)?[n]:Je(n);const i=n&&n[0];return le(t),n&&(!i||1===n.length&&i.isComment&&!vt(i))?void 0:n};return r.proxy&&Object.defineProperty(t,n,{get:i,enumerable:!0,configurable:!0}),i}function wt(e,t){return()=>e[t]}function St(e){return{get attrs(){if(!e._attrsProxy){const t=e._attrsProxy={};V(t,"_v_attr_proxy",!0),Ct(t,e.$attrs,r,e,"$attrs")}return e._attrsProxy},get listeners(){return e._listenersProxy||Ct(e._listenersProxy={},e.$listeners,r,e,"$listeners"),e._listenersProxy},get slots(){return function(e){return e._slotsProxy||xt(e._slotsProxy={},e.$scopedSlots),e._slotsProxy}(e)},emit:A(e.$emit,e),expose(t){t&&Object.keys(t).forEach((n=>Be(e,t,n)))}}}function Ct(e,t,n,r,o){let i=!1;for(const a in t)a in e?t[a]!==n[a]&&(i=!0):(i=!0,kt(e,a,r,o));for(const n in e)n in t||(i=!0,delete e[n]);return i}function kt(e,t,n,r){Object.defineProperty(e,t,{enumerable:!0,configurable:!0,get:()=>n[r][t]})}function xt(e,t){for(const n in t)e[n]=t[n];for(const n in e)n in t||delete e[n]}function Et(){const e=ue;return e._setupContext||(e._setupContext=St(e))}let Ot,Tt=null;function At(e,t){return(e.__esModule||se&&"Module"===e[Symbol.toStringTag])&&(e=e.default),l(e)?t.extend(e):e}function Pt(e){if(o(e))for(let t=0;t<e.length;t++){const n=e[t];if(a(n)&&(a(n.componentOptions)||vt(n)))return n}}function It(e,t){Ot.$on(e,t)}function jt(e,t){Ot.$off(e,t)}function Lt(e,t){const n=Ot;return function r(){const o=t.apply(null,arguments);null!==o&&n.$off(e,r)}}function Nt(e,t,n){Ot=e,We(t,n||{},It,jt,Lt,e),Ot=void 0}let Rt=null;function Dt(e){const t=Rt;return Rt=e,()=>{Rt=t}}function Mt(e){for(;e&&(e=e.$parent);)if(e._inactive)return!0;return!1}function Ft(e,t){if(t){if(e._directInactive=!1,Mt(e))return}else if(e._directInactive)return;if(e._inactive||null===e._inactive){e._inactive=!1;for(let t=0;t<e.$children.length;t++)Ft(e.$children[t]);Bt(e,"activated")}}function Ut(e,t){if(!(t&&(e._directInactive=!0,Mt(e))||e._inactive)){e._inactive=!0;for(let t=0;t<e.$children.length;t++)Ut(e.$children[t]);Bt(e,"deactivated")}}function Bt(e,t,n,r=!0){ve();const o=ue;r&&le(e);const i=e.$options[t],a=`${t} hook`;if(i)for(let t=0,r=i.length;t<r;t++)an(i[t],e,n||null,e,a);e._hasHookEvent&&e.$emit("hook:"+t),r&&le(o),be()}const $t=[],Ht=[];let zt={},qt=!1,Vt=!1,Gt=0,Wt=0,Yt=Date.now;if(Y&&!J){const e=window.performance;e&&"function"==typeof e.now&&Yt()>document.createEvent("Event").timeStamp&&(Yt=()=>e.now())}const Kt=(e,t)=>
2{if(e.post){if(!t.post)return 1}else if(t.post)return-1;return e.id-t.id};function Jt(){let e,t;for(Wt=Yt(),Vt=!0,$t.sort(Kt),Gt=0;Gt<$t.length;Gt++)e=$t[Gt],e.before&&e.before(),t=e.id,zt[t]=null,e.run();const n=Ht.slice(),r=$t.slice();Gt=$t.length=Ht.length=0,zt={},qt=Vt=!1,function(e){for(let t=0;t<e.length;t++)e[t]._inactive=!0,Ft(e[t],!0)}(n),function(e){let t=e.length;for(;t--;){const n=e[t],r=n.vm;r&&r._watcher===n&&r._isMounted&&!r._isDestroyed&&Bt(r,"updated")}}(r),ie&&H.devtools&&ie.emit("flush")}function Zt(e){const t=e.id;if(null==zt[t]&&(e!==ge.target||!e.noRecurse)){if(zt[t]=!0,Vt){let t=$t.length-1;for(;t>Gt&&$t[t].id>e.id;)t--;$t.splice(t+1,0,e)}else $t.push(e);qt||(qt=!0,hn(Jt))}}function Xt(e,t){return en(e,null,{flush:"post"})}const Qt={};function en(e,t,{immediate:n,deep:i,flush:a="pre",onTrack:s,onTrigger:c}=r){const l=ue,d=(e,t,n=null)=>an(e,null,n,l,t);let p,f,h=!1,m=!1;if(Fe(e)?(p=()=>e.value,h=De(e)):Re(e)?(p=()=>(e.__ob__.dep.depend(),e),i=!0):o(e)?(m=!0,h=e.some((e=>Re(e)||De(e))),p=()=>e.map((e=>Fe(e)?e.value:Re(e)?Pn(e):u(e)?d(e,"watcher getter"):void 0))):p=u(e)?t?()=>d(e,"watcher getter"):()=>{if(!l||!l._isDestroyed)return f&&f(),d(e,"watcher",[g])}:L,t&&i){const e=p;p=()=>Pn(e())}let g=e=>{f=y.onStop=()=>{d(e,"watcher cleanup")}};if(oe())return g=L,t?n&&d(t,"watcher callback",[p(),m?[]:void 0,g]):p(),L;const y=new Ln(ue,p,L,{lazy:!0});y.noRecurse=!t;let v=m?[]:Qt;return y.run=()=>{if(y.active)if(t){const e=y.get();(i||h||(m?e.some(((e,t)=>U(e,v[t]))):U(e,v)))&&(f&&f(),d(t,"watcher callback",[e,v===Qt?void 0:v,g]),v=e)}else y.get()},"sync"===a?y.update=y.run:"post"===a?(y.post=!0,y.update=()=>Zt(y)):y.update=()=>{if(l&&l===ue&&!l._isMounted){const e=l._preWatchers||(l._preWatchers=[]);e.indexOf(y)<0&&e.push(y)}else Zt(y)},t?n?y.run():v=y.get():"post"===a&&l?l.$once("hook:mounted",(()=>y.get())):y.get(),()=>{y.teardown()}}let tn;class nn{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&tn&&(this.parent=tn,this.index=(tn.scopes||(tn.scopes=[])).push(this)-1)}run(e){if(this.active){const t=tn;try{return tn=this,e()}finally{tn=t}}}on(){tn=this}off(){tn=this.parent}stop(e){if(this.active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].teardown();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}function rn(e){const t=e._provided,n=e.$parent&&e.$parent._provided;return n===t?e._provided=Object.create(n):t}function on(e,t,n){ve();try{if(t){let r=t;for(;r=r.$parent;){const o=r.$options.errorCaptured;if(o)for(let i=0;i<o.length;i++)try{if(!1===o[i].call(r,e,t,n))return}catch(e){sn(e,r,"errorCaptured hook")}}}sn(e,t,n)}finally{be()}}function an(e,t,n,r,o){let i;try{i=n?e.apply(t,n):e.call(t),i&&!i._isVue&&h(i)&&!i._handled&&(i.catch((e=>on(e,r,o+" (Promise/async)"))),i._handled=!0)}catch(e){on(e,r,o)}return i}function sn(e,t,n){if(H.errorHandler)try{return H.errorHandler.call(null,e,t,n)}catch(t){t!==e&&cn(t)}cn(e)}function cn(e,t,n){if(!Y||"undefined"==typeof console)throw e;console.error(e)}let un=!1;const ln=[];let dn,pn=!1;function fn(){pn=!1;const e=ln.slice(0);ln.length=0;for(let t=0;t<e.length;t++)e[t]()}if("undefined"!=typeof Promise&&ae(Promise)){const e=Promise.resolve();dn=()=>{e.then(fn),Q&&setTimeout(L)},un=!0}else if(J||"undefined"==typeof MutationObserver||!ae(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())dn="undefined"!=typeof setImmediate&&ae(setImmediate)?()=>{setImmediate(fn)}:()=>{setTimeout(fn,0)};else{let e=1;const t=new MutationObserver(fn),n=document.createTextNode(String(e));t.observe(n,{characterData:!0}),dn=()=>{e=(e+1)%2,n.data=String(e)},un=!0}function hn(e,t){let n;if(ln.push((()=>{if(e)try{e.call(t)}catch(e){on(e,t,"nextTick")}else n&&n(t)})),pn||(pn=!0,dn()),!e&&"undefined"!=typeof Promise)return new Promise((e=>{n=e}))}function mn(e){return(t,n=ue)=>{if(n)return function(e,t,n){const r=e.$options;r[t]=rr(r[t],n)}(n,e,t)}}const gn=mn("beforeMount"),yn=mn("mounted"),vn=mn("beforeUpdate"),bn=mn("updated"),_n=mn("beforeDestroy"),wn=mn("destroyed"),Sn=mn("activated"),Cn=mn("deactivated"),kn=mn("serverPrefetch"),xn=mn("renderTracked"),En=mn("renderTriggered"),On=mn("errorCaptured");var Tn=Object.freeze({__proto__:null,version:"2.7.10",defineComponent:function(e){return e},ref:function(e){return Ue(e,!1)},shallowRef:function(e){return Ue(e,!0)},isRef:Fe,toRef:$e,toRefs:function(e){const t=o(e)?new Array(e.length):{};for(const n in e)t[n]=$e(e,n);return t},unref:function(e){return Fe(e)?e.value:e},proxyRefs:function(e){if(Re(e))return e;const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)Be(t,e,n[r]);return t},customRef:function(e){const t=new ge,{get:n,set:r}=e((()=>{t.depend()}),(()=>{t.notify()})),o={get value(){return n()},set value(e){r(e)}};return V(o,"__v_isRef",!0),o},triggerRef:function(e){e.dep&&e.dep.notify()},reactive:function(e){return Ne(e,!1),e},isReactive:Re,isReadonly:Me,isShallow:De,isProxy:function(e){return Re(e)||Me(e)},shallowReactive:Le,markRaw:function(e){return V(e,"__v_skip",!0),e},toRaw:function e(t){const n=t&&t.__v_raw;return n?e(n):t},readonly:He,shallowReadonly:function(e){return ze(e,!0)},computed:function(e,t){let n,r;const o=u(e);o?(n=e,r=L):(n=e.get,r=e.set);const i=oe()?null:new Ln(ue,n,L,{lazy:!0}),a={effect:i,get value(){return i?(i.dirty&&i.evaluate(),ge.target&&i.depend(),i.value):n()},set value(e){r(e)}};return V(a,"__v_isRef",!0),V(a,"__v_isReadonly",o),a}
2,watch:function(e,t,n){return en(e,t,n)},watchEffect:function(e,t){return en(e,null,t)},watchPostEffect:Xt,watchSyncEffect:function(e,t){return en(e,null,{flush:"sync"})},EffectScope:nn,effectScope:function(e){return new nn(e)},onScopeDispose:function(e){tn&&tn.cleanups.push(e)},getCurrentScope:function(){return tn},provide:function(e,t){ue&&(rn(ue)[e]=t)},inject:function(e,t,n=!1){const r=ue;if(r){const o=r.$parent&&r.$parent._provided;if(o&&e in o)return o[e];if(arguments.length>1)return n&&u(t)?t.call(r):t}},h:function(e,t,n){return Qe(ue,e,t,n,2,!0)},getCurrentInstance:function(){return ue&&{proxy:ue}},useSlots:function(){return Et().slots},useAttrs:function(){return Et().attrs},useListeners:function(){return Et().listeners},mergeDefaults:function(e,t){const n=o(e)?e.reduce(((e,t)=>(e[t]={},e)),{}):e;for(const e in t){const r=n[e];r?o(r)||u(r)?n[e]={type:r,default:t[e]}:r.default=t[e]:null===r&&(n[e]={default:t[e]})}return n},nextTick:hn,set:Pe,del:Ie,useCssModule:function(e="$style"){return ue&&ue[e]||r},useCssVars:function(e){if(!Y)return;const t=ue;t&&Xt((()=>{const n=t.$el,r=e(t,t._setupProxy);if(n&&1===n.nodeType){const e=n.style;for(const t in r)e.setProperty(`--${t}`,r[t])}}))},defineAsyncComponent:function(e){u(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,timeout:i,suspensible:a=!1,onError:s}=e;let c=null,l=0;const d=()=>{let e;return c||(e=c=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{s(e,(()=>t((l++,c=null,d()))),(()=>n(e)),l+1)}));throw e})).then((t=>e!==c&&c?c:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),t))))};return()=>({component:d(),delay:o,timeout:i,error:r,loading:n})},onBeforeMount:gn,onMounted:yn,onBeforeUpdate:vn,onUpdated:bn,onBeforeUnmount:_n,onUnmounted:wn,onActivated:Sn,onDeactivated:Cn,onServerPrefetch:kn,onRenderTracked:xn,onRenderTriggered:En,onErrorCaptured:function(e,t=ue){On(e,t)}});const An=new ce;function Pn(e){return In(e,An),An.clear(),e}function In(e,t){let n,r;const i=o(e);if(!(!i&&!l(e)||Object.isFrozen(e)||e instanceof de)){if(e.__ob__){const n=e.__ob__.dep.id;if(t.has(n))return;t.add(n)}if(i)for(n=e.length;n--;)In(e[n],t);else if(Fe(e))In(e.value,t);else for(r=Object.keys(e),n=r.length;n--;)In(e[r[n]],t)}}let jn=0;class Ln{constructor(e,t,n,r,o){!function(e,t=tn){t&&t.active&&t.effects.push(e)}(this,tn&&!tn._vm?tn:e?e._scope:void 0),(this.vm=e)&&o&&(e._watcher=this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=n,this.id=++jn,this.active=!0,this.post=!1,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new ce,this.newDepIds=new ce,this.expression="",u(t)?this.getter=t:(this.getter=function(e){if(G.test(e))return;const t=e.split(".");return function(e){for(let n=0;n<t.length;n++){if(!e)return;e=e[t[n]]}return e}}(t),this.getter||(this.getter=L)),this.value=this.lazy?void 0:this.get()}get(){let e;ve(this);const t=this.vm;try{e=this.getter.call(t,t)}catch(e){if(!this.user)throw e;on(e,t,`getter for watcher "${this.expression}"`)}finally{this.deep&&Pn(e),be(),this.cleanupDeps()}return e}addDep(e){const t=e.id;this.newDepIds.has(t)||(this.newDepIds.add(t),this.newDeps.push(e),this.depIds.has(t)||e.addSub(this))}cleanupDeps(){let e=this.deps.length;for(;e--;){const t=this.deps[e];this.newDepIds.has(t.id)||t.removeSub(this)}let t=this.depIds;this.depIds=this.newDepIds,this.newDepIds=t,this.newDepIds.clear(),t=this.deps,this.deps=this.newDeps,this.newDeps=t,this.newDeps.length=0}update(){this.lazy?this.dirty=!0:this.sync?this.run():Zt(this)}run(){if(this.active){const e=this.get();if(e!==this.value||l(e)||this.deep){const t=this.value;if(this.value=e,this.user){const n=`callback for watcher "${this.expression}"`;an(this.cb,this.vm,[e,t],this.vm,n)}else this.cb.call(this.vm,e,t)}}}evaluate(){this.value=this.get(),this.dirty=!1}depend(){let e=this.deps.length;for(;e--;)this.deps[e].depend()}teardown(){if(this.vm&&!this.vm._isBeingDestroyed&&_(this.vm._scope.effects,this),this.active){let e=this.deps.length;for(;e--;)this.deps[e].removeSub(this);this.active=!1,this.onStop&&this.onStop()}}}const Nn={enumerable:!0,configurable:!0,get:L,set:L};function Rn(e,t,n){Nn.get=function(){return this[t][n]},Nn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,Nn)}function Dn(e){const t=e.$options;if(t.props&&function(e,t){const n=e.$options.propsData||{},r=e._props=Le({}),o=e.$options._propKeys=[];e.$parent&&xe(!1);for(const i in t)o.push(i),Ae(r,i,cr(i,t,n,e)),i in e||Rn(e,"_props",i);xe(!0)}(e,t.props),function(e){const t=e.$options,n=t.setup;if(n){const r=e._setupContext=St(e);le(e),ve();const o=an(n,null,[e._props||Le({}),r],e,"setup");if(be(),le(),u(o))t.render=o;else if(l(o))if(e._setupState=o,o.__sfc){const t=e._setupProxy={};for(const e in o)"__sfc"!==e&&Be(t,o,e)}else for(const t in o)q(t)||Be(e,o,t)}}(e),t.methods&&function(e,t){e.$options.props;for(const n in t)e[n]="function"!=typeof t[n]?L:A(t[n],e)}(e,t.methods),t.data)!function(e){let t=e.$options.data;
2t=e._data=u(t)?function(e,t){ve();try{return e.call(t,t)}catch(e){return on(e,t,"data()"),{}}finally{be()}}(t,e):t||{},p(t)||(t={});const n=Object.keys(t),r=e.$options.props;e.$options.methods;let o=n.length;for(;o--;){const t=n[o];r&&S(r,t)||q(t)||Rn(e,"_data",t)}const i=Te(t);i&&i.vmCount++}(e);else{const t=Te(e._data={});t&&t.vmCount++}t.computed&&function(e,t){const n=e._computedWatchers=Object.create(null),r=oe();for(const o in t){const i=t[o],a=u(i)?i:i.get;r||(n[o]=new Ln(e,a||L,L,Mn)),o in e||Fn(e,o,i)}}(e,t.computed),t.watch&&t.watch!==te&&function(e,t){for(const n in t){const r=t[n];if(o(r))for(let t=0;t<r.length;t++)$n(e,n,r[t]);else $n(e,n,r)}}(e,t.watch)}const Mn={lazy:!0};function Fn(e,t,n){const r=!oe();u(n)?(Nn.get=r?Un(t):Bn(n),Nn.set=L):(Nn.get=n.get?r&&!1!==n.cache?Un(t):Bn(n.get):L,Nn.set=n.set||L),Object.defineProperty(e,t,Nn)}function Un(e){return function(){const t=this._computedWatchers&&this._computedWatchers[e];if(t)return t.dirty&&t.evaluate(),ge.target&&t.depend(),t.value}}function Bn(e){return function(){return e.call(this,this)}}function $n(e,t,n,r){return p(n)&&(r=n,n=n.handler),"string"==typeof n&&(n=e[n]),e.$watch(t,n,r)}function Hn(e,t){if(e){const n=Object.create(null),r=se?Reflect.ownKeys(e):Object.keys(e);for(let o=0;o<r.length;o++){const i=r[o];if("__ob__"===i)continue;const a=e[i].from;if(a in t._provided)n[i]=t._provided[a];else if("default"in e[i]){const r=e[i].default;n[i]=u(r)?r.call(t):r}}return n}}let zn=0;function qn(e){let t=e.options;if(e.super){const n=qn(e.super);if(n!==e.superOptions){e.superOptions=n;const r=function(e){let t;const n=e.options,r=e.sealedOptions;for(const e in n)n[e]!==r[e]&&(t||(t={}),t[e]=n[e]);return t}(e);r&&I(e.extendOptions,r),t=e.options=ar(n,e.extendOptions),t.name&&(t.components[t.name]=e)}}return t}function Vn(e,t,n,i,a){const c=a.options;let u;S(i,"_uid")?(u=Object.create(i),u._original=i):(u=i,i=i._original);const l=s(c._compiled),d=!l;this.data=e,this.props=t,this.children=n,this.parent=i,this.listeners=e.on||r,this.injections=Hn(c.inject,i),this.slots=()=>(this.$slots||bt(i,e.scopedSlots,this.$slots=gt(n,i)),this.$slots),Object.defineProperty(this,"scopedSlots",{enumerable:!0,get(){return bt(i,e.scopedSlots,this.slots())}}),l&&(this.$options=c,this.$slots=this.slots(),this.$scopedSlots=bt(i,e.scopedSlots,this.$slots)),c._scopeId?this._c=(e,t,n,r)=>{const a=Qe(u,e,t,n,r,d);return a&&!o(a)&&(a.fnScopeId=c._scopeId,a.fnContext=i),a}:this._c=(e,t,n,r)=>Qe(u,e,t,n,r,d)}function Gn(e,t,n,r,o){const i=he(e);return i.fnContext=n,i.fnOptions=r,t.slot&&((i.data||(i.data={})).slot=t.slot),i}function Wn(e,t){for(const n in t)e[x(n)]=t[n]}function Yn(e){return e.name||e.__name||e._componentTag}mt(Vn.prototype);const Kn={init(e,t){if(e.componentInstance&&!e.componentInstance._isDestroyed&&e.data.keepAlive){const t=e;Kn.prepatch(t,t)}else(e.componentInstance=function(e,t){const n={_isComponent:!0,_parentVnode:e,parent:t},r=e.data.inlineTemplate;return a(r)&&(n.render=r.render,n.staticRenderFns=r.staticRenderFns),new e.componentOptions.Ctor(n)}(e,Rt)).$mount(t?e.elm:void 0,t)},prepatch(e,t){const n=t.componentOptions;!function(e,t,n,o,i){const a=o.data.scopedSlots,s=e.$scopedSlots,c=!!(a&&!a.$stable||s!==r&&!s.$stable||a&&e.$scopedSlots.$key!==a.$key||!a&&e.$scopedSlots.$key);let u=!!(i||e.$options._renderChildren||c);const l=e.$vnode;e.$options._parentVnode=o,e.$vnode=o,e._vnode&&(e._vnode.parent=o),e.$options._renderChildren=i;const d=o.data.attrs||r;e._attrsProxy&&Ct(e._attrsProxy,d,l.data&&l.data.attrs||r,e,"$attrs")&&(u=!0),e.$attrs=d,n=n||r;const p=e.$options._parentListeners;if(e._listenersProxy&&Ct(e._listenersProxy,n,p||r,e,"$listeners"),e.$listeners=e.$options._parentListeners=n,Nt(e,n,p),t&&e.$options.props){xe(!1);const n=e._props,r=e.$options._propKeys||[];for(let o=0;o<r.length;o++){const i=r[o],a=e.$options.props;n[i]=cr(i,a,t,e)}xe(!0),e.$options.propsData=t}u&&(e.$slots=gt(i,o.context),e.$forceUpdate())}(t.componentInstance=e.componentInstance,n.propsData,n.listeners,t,n.children)},insert(e){const{context:t,componentInstance:n}=e;var r;n._isMounted||(n._isMounted=!0,Bt(n,"mounted")),e.data.keepAlive&&(t._isMounted?((r=n)._inactive=!1,Ht.push(r)):Ft(n,!0))},destroy(e){const{componentInstance:t}=e;t._isDestroyed||(e.data.keepAlive?Ut(t,!0):t.$destroy())}},Jn=Object.keys(Kn);function Zn(e,t,n,c,u){if(i(e))return;const d=n.$options._base;if(l(e)&&(e=d.extend(e)),"function"!=typeof e)return;let p;if(i(e.cid)&&(p=e,e=function(e,t){if(s(e.error)&&a(e.errorComp))return e.errorComp;if(a(e.resolved))return e.resolved;const n=Tt;if(n&&a(e.owners)&&-1===e.owners.indexOf(n)&&e.owners.push(n),s(e.loading)&&a(e.loadingComp))return e.loadingComp;if(n&&!a(e.owners)){const r=e.owners=[n];let o=!0,s=null,c=null;n.$on("hook:destroyed",(()=>_(r,n)));const u=e=>{for(let e=0,t=r.length;e<t;e++)r[e].$forceUpdate();e&&(r.length=0,null!==s&&(clearTimeout(s),s=null),null!==c&&(clearTimeout(c),c=null))},d=F((n=>{e.resolved=At(n,t),o?r.length=0:u(!0)})),p=F((t=>{a(e.errorComp)&&(e.error=!0,u(!0))})),f=e(d,p);return l(f)&&(h(f)?i(e.resolved)&&f.then(d,p):h(f.component)&&(f.component.then(d,p),a(f.error)&&(e.errorComp=At(f.error,t)),a(f.loading)&&(e.loadingComp=At(f.loading,t),0===f.delay?e.loading=!0:s=setTimeout((()=>{s=null,i(e.resolved)&&i(e.error)&&(e.loading=!0,u(!1))}),f.delay||200)),a(f.timeout)&&(c=setTimeout((()=>{c=null,i(e.resolved)&&p(null)}),f.timeout)))),o=!1,e.loading?e.loadingComp:e.resolved}}(p,d),void 0===e))return function(e,t,n,r,o){const i=pe();return i.asyncFactory=e,i.asyncMeta={data:t,context:n,children:r,tag:o},i}(p,t,n,c,u);t=t||{},qn(e),a(t.model)&&function(e,t){const n=e.model&&e.model.prop||"value",r=e.model&&e.model.event||"input";(t.attrs||(t.attrs={}))[n]=t.model.value;const i=t.on||(t.on={}),s=i[r],c=t.model.callback;a(s)?(o(s)?-1===s.indexOf(c):s!==c)&&(i[r]=[c].concat(s)):i[r]=c}(e.options,t);const f=function(e,t,n){const r=t.options.props;if(i(r))return;const o={},{attrs:s,props:c}=e;if(a(s)||a(c))for(const e in r){const t=T(e);Ke(o,c,e,t,!0)||Ke(o,s,e,t,!1)}return o}(t,e);if(s(e.options.functional))return function(e,t,n,i,s){const c=e.options,u={},l=c.props;if(a(l))for(const e in l)u[e]=cr(e,l,t||r);else a(n.attrs)&&Wn(u,n.attrs),a(n.props)&&Wn(u,n.props);const d=new Vn(n,u,s,i,e),p=c.render.call(null,d._c,d);if(p instanceof de)return Gn(p,n,d.parent,c);if(o(p)){const e=Je(p)||[],t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=Gn(e[r],n,d.parent,c);return t}}(e,f,t,n,c);const m=t.on;if(t.on=t.nativeOn,s(e.options.abstract)){const e=t.slot;t={},e&&(t.slot=e)}!function(e){const t=e.hook||(e.hook={});for(let e=0;e<Jn.length;e++){const n=Jn[e],r=t[n],o=Kn[n];r===o||r&&r._merged||(t[n]=r?Xn(o,r):o)}}(t);const g=Yn(e.options)||u;return new de(`vue-component-${e.cid}${g?`-${g}`:""}`,t,void 0,void 0,void 0,n,{Ctor:e,propsData:f,listeners:m,tag:u,children:c},p)}function Xn(e,t){const n=(n,r)=>{e(n,r),t(n,r)};return n._merged=!0,n}let Qn=L;const er=H.optionMergeStrategies;function tr(e,t){if(!t)return e;let n,r,o;const i=se?Reflect.ownKeys(t):Object.keys(t);for(let a=0;a<i.length;a++)n=i[a],"__ob__"!==n&&(r=e[n],o=t[n],S(e,n)?r!==o&&p(r)&&p(o)&&tr(r,o):Pe(e,n,o));return e}function nr(e,t,n){return n?function(){const r=u(t)?t.call(n,n):t,o=u(e)?e.call(n,n):e;return r?tr(r,o):o}:t?e?function(){return tr(u(t)?t.call(this,this):t,u(e)?e.call(this,this):e)}:t:e}function rr(e,t){const n=t?e?e.concat(t):o(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;
2n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}function or(e,t,n,r){const o=Object.create(e||null);return t?I(o,t):o}er.data=function(e,t,n){return n?nr(e,t,n):t&&"function"!=typeof t?e:nr(e,t)},$.forEach((e=>{er[e]=rr})),B.forEach((function(e){er[e+"s"]=or})),er.watch=function(e,t,n,r){if(e===te&&(e=void 0),t===te&&(t=void 0),!t)return Object.create(e||null);if(!e)return t;const i={};I(i,e);for(const e in t){let n=i[e];const r=t[e];n&&!o(n)&&(n=[n]),i[e]=n?n.concat(r):o(r)?r:[r]}return i},er.props=er.methods=er.inject=er.computed=function(e,t,n,r){if(!e)return t;const o=Object.create(null);return I(o,e),t&&I(o,t),o},er.provide=nr;const ir=function(e,t){return void 0===t?e:t};function ar(e,t,n){if(u(t)&&(t=t.options),function(e,t){const n=e.props;if(!n)return;const r={};let i,a,s;if(o(n))for(i=n.length;i--;)a=n[i],"string"==typeof a&&(s=x(a),r[s]={type:null});else if(p(n))for(const e in n)a=n[e],s=x(e),r[s]=p(a)?a:{type:a};e.props=r}(t),function(e,t){const n=e.inject;if(!n)return;const r=e.inject={};if(o(n))for(let e=0;e<n.length;e++)r[n[e]]={from:n[e]};else if(p(n))for(const e in n){const t=n[e];r[e]=p(t)?I({from:e},t):{from:t}}}(t),function(e){const t=e.directives;if(t)for(const e in t){const n=t[e];u(n)&&(t[e]={bind:n,update:n})}}(t),!t._base&&(t.extends&&(e=ar(e,t.extends,n)),t.mixins))for(let r=0,o=t.mixins.length;r<o;r++)e=ar(e,t.mixins[r],n);const r={};let i;for(i in e)a(i);for(i in t)S(e,i)||a(i);function a(o){const i=er[o]||ir;r[o]=i(e[o],t[o],n,o)}return r}function sr(e,t,n,r){if("string"!=typeof n)return;const o=e[t];if(S(o,n))return o[n];const i=x(n);if(S(o,i))return o[i];const a=E(i);return S(o,a)?o[a]:o[n]||o[i]||o[a]}function cr(e,t,n,r){const o=t[e],i=!S(n,e);let a=n[e];const s=pr(Boolean,o.type);if(s>-1)if(i&&!S(o,"default"))a=!1;else if(""===a||a===T(e)){const e=pr(String,o.type);(e<0||s<e)&&(a=!0)}if(void 0===a){a=function(e,t,n){if(!S(t,"default"))return;const r=t.default;return e&&e.$options.propsData&&void 0===e.$options.propsData[n]&&void 0!==e._props[n]?e._props[n]:u(r)&&"Function"!==lr(t.type)?r.call(e):r}(r,o,e);const t=ke;xe(!0),Te(a),xe(t)}return a}const ur=/^\s*function (\w+)/;function lr(e){const t=e&&e.toString().match(ur);return t?t[1]:""}function dr(e,t){return lr(e)===lr(t)}function pr(e,t){if(!o(t))return dr(t,e)?0:-1;for(let n=0,r=t.length;n<r;n++)if(dr(t[n],e))return n;return-1}function fr(e){this._init(e)}function hr(e){return e&&(Yn(e.Ctor.options)||e.tag)}function mr(e,t){return o(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===d.call(n)&&e.test(t));var n}function gr(e,t){const{cache:n,keys:r,_vnode:o}=e;for(const e in n){const i=n[e];if(i){const a=i.name;a&&!t(a)&&yr(n,e,r,o)}}}function yr(e,t,n,r){const o=e[t];!o||r&&o.tag===r.tag||o.componentInstance.$destroy(),e[t]=null,_(n,t)}!function(e){e.prototype._init=function(e){const t=this;t._uid=zn++,t._isVue=!0,t.__v_skip=!0,t._scope=new nn(!0),t._scope._vm=!0,e&&e._isComponent?function(e,t){const n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;const o=r.componentOptions;n.propsData=o.propsData,n._parentListeners=o.listeners,n._renderChildren=o.children,n._componentTag=o.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=ar(qn(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){const t=e.$options;let n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._provided=n?n._provided:Object.create(null),e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;const t=e.$options._parentListeners;t&&Nt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;const t=e.$options,n=e.$vnode=t._parentVnode,o=n&&n.context;e.$slots=gt(t._renderChildren,o),e.$scopedSlots=n?bt(e.$parent,n.data.scopedSlots,e.$slots):r,e._c=(t,n,r,o)=>Qe(e,t,n,r,o,!1),e.$createElement=(t,n,r,o)=>Qe(e,t,n,r,o,!0);const i=n&&n.data;Ae(e,"$attrs",i&&i.attrs||r,null,!0),Ae(e,"$listeners",t._parentListeners||r,null,!0)}(t),Bt(t,"beforeCreate",void 0,!1),function(e){const t=Hn(e.$options.inject,e);t&&(xe(!1),Object.keys(t).forEach((n=>{Ae(e,n,t[n])})),xe(!0))}(t),Dn(t),function(e){const t=e.$options.provide;if(t){const n=u(t)?t.call(e):t;if(!l(n))return;const r=rn(e),o=se?Reflect.ownKeys(n):Object.keys(n);for(let e=0;e<o.length;e++){const t=o[e];Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}}}(t),Bt(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(fr),function(e){Object.defineProperty(e.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(e.prototype,"$props",{get:function(){return this._props}}),e.prototype.$set=Pe,e.prototype.$delete=Ie,e.prototype.$watch=function(e,t,n){const r=this;if(p(t))return $n(r,e,t,n);(n=n||{}).user=!0;const o=new Ln(r,e,t,n);if(n.immediate){const e=`callback for immediate watcher "${o.expression}"`;ve(),an(t,r,[o.value],r,e),be()}return function(){o.teardown()}}}(fr),function(e){const t=/^hook:/;e.prototype.$on=function(e,n){const r=this;if(o(e))for(let t=0,o=e.length;t<o;t++)r.$on(e[t],n);else(r._events[e]||(r._events[e]=[])).push(n),t.test(e)&&(r._hasHookEvent=!0);return r},e.prototype.$once=function(e,t){const n=this;function r(){n.$off(e,r),t.apply(n,arguments)}return r.fn=t,n.$on(e,r),n},e.prototype.$off=function(e,t){const n=this;if(!arguments.length)return n._events=Object.create(null),n;if(o(e)){for(let r=0,o=e.length;r<o;r++)n.$off(e[r],t);return n}const r=n._events[e];if(!r)return n;if(!t)return n._events[e]=null,n;let i,a=r.length;for(;a--;)if(i=r[a],i===t||i.fn===t){r.splice(a,1);break}return n},e.prototype.$emit=function(e){const t=this;let n=t._events[e];if(n){n=n.length>1?P(n):n;
2const r=P(arguments,1),o=`event handler for "${e}"`;for(let e=0,i=n.length;e<i;e++)an(n[e],t,r,t,o)}return t}}(fr),function(e){e.prototype._update=function(e,t){const n=this,r=n.$el,o=n._vnode,i=Dt(n);n._vnode=e,n.$el=o?n.__patch__(o,e):n.__patch__(n.$el,e,t,!1),i(),r&&(r.__vue__=null),n.$el&&(n.$el.__vue__=n);let a=n;for(;a&&a.$vnode&&a.$parent&&a.$vnode===a.$parent._vnode;)a.$parent.$el=a.$el,a=a.$parent},e.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},e.prototype.$destroy=function(){const e=this;if(e._isBeingDestroyed)return;Bt(e,"beforeDestroy"),e._isBeingDestroyed=!0;const t=e.$parent;!t||t._isBeingDestroyed||e.$options.abstract||_(t.$children,e),e._scope.stop(),e._data.__ob__&&e._data.__ob__.vmCount--,e._isDestroyed=!0,e.__patch__(e._vnode,null),Bt(e,"destroyed"),e.$off(),e.$el&&(e.$el.__vue__=null),e.$vnode&&(e.$vnode.parent=null)}}(fr),function(e){mt(e.prototype),e.prototype.$nextTick=function(e){return hn(e,this)},e.prototype._render=function(){const e=this,{render:t,_parentVnode:n}=e.$options;let r;n&&e._isMounted&&(e.$scopedSlots=bt(e.$parent,n.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&xt(e._slotsProxy,e.$scopedSlots)),e.$vnode=n;try{le(e),Tt=e,r=t.call(e._renderProxy,e.$createElement)}catch(t){on(t,e,"render"),r=e._vnode}finally{Tt=null,le()}return o(r)&&1===r.length&&(r=r[0]),r instanceof de||(r=pe()),r.parent=n,r}}(fr);const vr=[String,RegExp,Array];var br={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:vr,exclude:vr,max:[String,Number]},methods:{cacheVNode(){const{cache:e,keys:t,vnodeToCache:n,keyToCache:r}=this;if(n){const{tag:o,componentInstance:i,componentOptions:a}=n;e[r]={name:hr(a),tag:o,componentInstance:i},t.push(r),this.max&&t.length>parseInt(this.max)&&yr(e,t[0],t,this._vnode),this.vnodeToCache=null}}},created(){this.cache=Object.create(null),this.keys=[]},destroyed(){for(const e in this.cache)yr(this.cache,e,this.keys)},mounted(){this.cacheVNode(),this.$watch("include",(e=>{gr(this,(t=>mr(e,t)))})),this.$watch("exclude",(e=>{gr(this,(t=>!mr(e,t)))}))},updated(){this.cacheVNode()},render(){const e=this.$slots.default,t=Pt(e),n=t&&t.componentOptions;if(n){const e=hr(n),{include:r,exclude:o}=this;if(r&&(!e||!mr(r,e))||o&&e&&mr(o,e))return t;const{cache:i,keys:a}=this,s=null==t.key?n.Ctor.cid+(n.tag?`::${n.tag}`:""):t.key;i[s]?(t.componentInstance=i[s].componentInstance,_(a,s),a.push(s)):(this.vnodeToCache=t,this.keyToCache=s),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){const t={get:()=>H};Object.defineProperty(e,"config",t),e.util={warn:Qn,extend:I,mergeOptions:ar,defineReactive:Ae},e.set=Pe,e.delete=Ie,e.nextTick=hn,e.observable=e=>(Te(e),e),e.options=Object.create(null),B.forEach((t=>{e.options[t+"s"]=Object.create(null)})),e.options._base=e,I(e.options.components,br),function(e){e.use=function(e){const t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;const n=P(arguments,1);return n.unshift(this),u(e.install)?e.install.apply(e,n):u(e)&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=ar(this.options,e),this}}(e),function(e){e.cid=0;let t=1;e.extend=function(e){e=e||{};const n=this,r=n.cid,o=e._Ctor||(e._Ctor={});if(o[r])return o[r];const i=Yn(e)||Yn(n.options),a=function(e){this._init(e)};return(a.prototype=Object.create(n.prototype)).constructor=a,a.cid=t++,a.options=ar(n.options,e),a.super=n,a.options.props&&function(e){const t=e.options.props;for(const n in t)Rn(e.prototype,"_props",n)}(a),a.options.computed&&function(e){const t=e.options.computed;for(const n in t)Fn(e.prototype,n,t[n])}(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,B.forEach((function(e){a[e]=n[e]})),i&&(a.options.components[i]=a),a.superOptions=n.options,a.extendOptions=e,a.sealedOptions=I({},a.options),o[r]=a,a}}(e),function(e){B.forEach((t=>{e[t]=function(e,n){return n?("component"===t&&p(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&u(n)&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}}))}(e)}(fr),Object.defineProperty(fr.prototype,"$isServer",{get:oe}),Object.defineProperty(fr.prototype,"$ssrContext",{get(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(fr,"FunctionalRenderContext",{value:Vn}),fr.version="2.7.10";const _r=y("style,class"),wr=y("input,textarea,option,select,progress"),Sr=(e,t,n
2)=>"value"===n&&wr(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e,Cr=y("contenteditable,draggable,spellcheck"),kr=y("events,caret,typing,plaintext-only"),xr=y("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Er="http://www.w3.org/1999/xlink",Or=e=>":"===e.charAt(5)&&"xlink"===e.slice(0,5),Tr=e=>Or(e)?e.slice(6,e.length):"",Ar=e=>null==e||!1===e;function Pr(e,t){return{staticClass:Ir(e.staticClass,t.staticClass),class:a(e.class)?[e.class,t.class]:t.class}}function Ir(e,t){return e?t?e+" "+t:e:t||""}function jr(e){return Array.isArray(e)?function(e){let t,n="";for(let r=0,o=e.length;r<o;r++)a(t=jr(e[r]))&&""!==t&&(n&&(n+=" "),n+=t);return n}(e):l(e)?function(e){let t="";for(const n in e)e[n]&&(t&&(t+=" "),t+=n);return t}(e):"string"==typeof e?e:""}const Lr={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Nr=y("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Rr=y("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignobject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Dr=e=>Nr(e)||Rr(e);function Mr(e){return Rr(e)?"svg":"math"===e?"math":void 0}const Fr=Object.create(null),Ur=y("text,number,password,search,email,tel,url");function Br(e){return"string"==typeof e?document.querySelector(e)||document.createElement("div"):e}var $r=Object.freeze({__proto__:null,createElement:function(e,t){const n=document.createElement(e);return"select"!==e||t.data&&t.data.attrs&&void 0!==t.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n},createElementNS:function(e,t){return document.createElementNS(Lr[e],t)},createTextNode:function(e){return document.createTextNode(e)},createComment:function(e){return document.createComment(e)},insertBefore:function(e,t,n){e.insertBefore(t,n)},removeChild:function(e,t){e.removeChild(t)},appendChild:function(e,t){e.appendChild(t)},parentNode:function(e){return e.parentNode},nextSibling:function(e){return e.nextSibling},tagName:function(e){return e.tagName},setTextContent:function(e,t){e.textContent=t},setStyleScope:function(e,t){e.setAttribute(t,"")}}),Hr={create(e,t){zr(t)},update(e,t){e.data.ref!==t.data.ref&&(zr(e,!0),zr(t))},destroy(e){zr(e,!0)}};function zr(e,t){const n=e.data.ref;if(!a(n))return;const r=e.context,i=e.componentInstance||e.elm,s=t?null:i,c=t?void 0:i;if(u(n))return void an(n,r,[s],r,"template ref function");const l=e.data.refInFor,d="string"==typeof n||"number"==typeof n,p=Fe(n),f=r.$refs;if(d||p)if(l){const e=d?f[n]:n.value;t?o(e)&&_(e,i):o(e)?e.includes(i)||e.push(i):d?(f[n]=[i],qr(r,n,f[n])):n.value=[i]}else if(d){if(t&&f[n]!==i)return;f[n]=c,qr(r,n,s)}else if(p){if(t&&n.value!==i)return;n.value=s}}function qr({_setupState:e},t,n){e&&S(e,t)&&(Fe(e[t])?e[t].value=n:e[t]=n)}const Vr=new de("",{},[]),Gr=["create","activate","update","remove","destroy"];function Wr(e,t){return e.key===t.key&&e.asyncFactory===t.asyncFactory&&(e.tag===t.tag&&e.isComment===t.isComment&&a(e.data)===a(t.data)&&function(e,t){if("input"!==e.tag)return!0;let n;const r=a(n=e.data)&&a(n=n.attrs)&&n.type,o=a(n=t.data)&&a(n=n.attrs)&&n.type;return r===o||Ur(r)&&Ur(o)}(e,t)||s(e.isAsyncPlaceholder)&&i(t.asyncFactory.error))}function Yr(e,t,n){let r,o;const i={};for(r=t;r<=n;++r)o=e[r].key,a(o)&&(i[o]=r);return i}var Kr={create:Jr,update:Jr,destroy:function(e){Jr(e,Vr)}};function Jr(e,t){(e.data.directives||t.data.directives)&&function(e,t){const n=e===Vr,r=t===Vr,o=Xr(e.data.directives,e.context),i=Xr(t.data.directives,t.context),a=[],s=[];let c,u,l;for(c in i)u=o[c],l=i[c],u?(l.oldValue=u.value,l.oldArg=u.arg,eo(l,"update",t,e),l.def&&l.def.componentUpdated&&s.push(l)):(eo(l,"bind",t,e),l.def&&l.def.inserted&&a.push(l));if(a.length){const r=()=>{for(let n=0;n<a.length;n++)eo(a[n],"inserted",t,e)};n?Ye(t,"insert",r):r()}if(s.length&&Ye(t,"postpatch",(()=>{for(let n=0;n<s.length;n++)eo(s[n],"componentUpdated",t,e)})),!n)for(c in o)i[c]||eo(o[c],"unbind",e,e,r)}(e,t)}const Zr=Object.create(null);function Xr(e,t){const n=Object.create(null);if(!e)return n;let r,o;for(r=0;r<e.length;r++){if(o=e[r],o.modifiers||(o.modifiers=Zr),n[Qr(o)]=o,t._setupState&&t._setupState.__sfc){const e=o.def||sr(t,"_setupState","v-"+o.name);o.def="function"==typeof e?{bind:e,update:e}:e}o.def=o.def||sr(t.$options,"directives",o.name)}return n}function Qr(e){return e.rawName||`${e.name}.${Object.keys(e.modifiers||{}).join(".")}`}function eo(e,t,n,r,o){const i=e.def&&e.def[t];if(i)try{i(n.elm,e,n,r,o)}catch(r){on(r,n.context,`directive ${e.name} ${t} hook`)}}var to=[Hr,Kr];function no(e,t){const n=t.componentOptions;if(a(n)&&!1===n.Ctor.options.inheritAttrs)return;if(i(e.data.attrs)&&i(t.data.attrs))return;let r,o,c;const u=t.elm,l=e.data.attrs||{};let d=t.data.attrs||{};for(r in(a(d.__ob__)||s(d._v_attr_proxy))&&(d=t.data.attrs=I({},d)),d)o=d[r],c=l[r],c!==o&&ro(u,r,o,t.data.pre);for(r in(J||X)&&d.value!==l.value&&ro(u,"value",d.value),l)i(d[r])&&(Or(r)?u.removeAttributeNS(Er,Tr(r)):Cr(r)||u.removeAttribute(r))}function ro(e,t,n,r){r||e.tagName.indexOf("-")>
2-1?oo(e,t,n):xr(t)?Ar(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Cr(t)?e.setAttribute(t,((e,t)=>Ar(t)||"false"===t?"false":"contenteditable"===e&&kr(t)?t:"true")(t,n)):Or(t)?Ar(n)?e.removeAttributeNS(Er,Tr(t)):e.setAttributeNS(Er,t,n):oo(e,t,n)}function oo(e,t,n){if(Ar(n))e.removeAttribute(t);else{if(J&&!Z&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){const t=n=>{n.stopImmediatePropagation(),e.removeEventListener("input",t)};e.addEventListener("input",t),e.__ieph=!0}e.setAttribute(t,n)}}var io={create:no,update:no};function ao(e,t){const n=t.elm,r=t.data,o=e.data;if(i(r.staticClass)&&i(r.class)&&(i(o)||i(o.staticClass)&&i(o.class)))return;let s=function(e){let t=e.data,n=e,r=e;for(;a(r.componentInstance);)r=r.componentInstance._vnode,r&&r.data&&(t=Pr(r.data,t));for(;a(n=n.parent);)n&&n.data&&(t=Pr(t,n.data));return function(e,t){return a(e)||a(t)?Ir(e,jr(t)):""}(t.staticClass,t.class)}(t);const c=n._transitionClasses;a(c)&&(s=Ir(s,jr(c))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}var so={create:ao,update:ao};const co=/[\w).+\-_$\]]/;function uo(e){let t,n,r,o,i,a=!1,s=!1,c=!1,u=!1,l=0,d=0,p=0,f=0;for(r=0;r<e.length;r++)if(n=t,t=e.charCodeAt(r),a)39===t&&92!==n&&(a=!1);else if(s)34===t&&92!==n&&(s=!1);else if(c)96===t&&92!==n&&(c=!1);else if(u)47===t&&92!==n&&(u=!1);else if(124!==t||124===e.charCodeAt(r+1)||124===e.charCodeAt(r-1)||l||d||p){switch(t){case 34:s=!0;break;case 39:a=!0;break;case 96:c=!0;break;case 40:p++;break;case 41:p--;break;case 91:d++;break;case 93:d--;break;case 123:l++;break;case 125:l--}if(47===t){let t,n=r-1;for(;n>=0&&(t=e.charAt(n)," "===t);n--);t&&co.test(t)||(u=!0)}}else void 0===o?(f=r+1,o=e.slice(0,r).trim()):h();function h(){(i||(i=[])).push(e.slice(f,r).trim()),f=r+1}if(void 0===o?o=e.slice(0,r).trim():0!==f&&h(),i)for(r=0;r<i.length;r++)o=lo(o,i[r]);return o}function lo(e,t){const n=t.indexOf("(");if(n<0)return`_f("${t}")(${e})`;{const r=t.slice(0,n),o=t.slice(n+1);return`_f("${r}")(${e}${")"!==o?","+o:o}`}}function po(e,t){console.error(`[Vue compiler]: ${e}`)}function fo(e,t){return e?e.map((e=>e[t])).filter((e=>e)):[]}function ho(e,t,n,r,o){(e.props||(e.props=[])).push(Co({name:t,value:n,dynamic:o},r)),e.plain=!1}function mo(e,t,n,r,o){(o?e.dynamicAttrs||(e.dynamicAttrs=[]):e.attrs||(e.attrs=[])).push(Co({name:t,value:n,dynamic:o},r)),e.plain=!1}function go(e,t,n,r){e.attrsMap[t]=n,e.attrsList.push(Co({name:t,value:n},r))}function yo(e,t,n,r,o,i,a,s){(e.directives||(e.directives=[])).push(Co({name:t,rawName:n,value:r,arg:o,isDynamicArg:i,modifiers:a},s)),e.plain=!1}function vo(e,t,n){return n?`_p(${t},"${e}")`:e+t}function bo(e,t,n,o,i,a,s,c){let u;(o=o||r).right?c?t=`(${t})==='click'?'contextmenu':(${t})`:"click"===t&&(t="contextmenu",delete o.right):o.middle&&(c?t=`(${t})==='click'?'mouseup':(${t})`:"click"===t&&(t="mouseup")),o.capture&&(delete o.capture,t=vo("!",t,c)),o.once&&(delete o.once,t=vo("~",t,c)),o.passive&&(delete o.passive,t=vo("&",t,c)),o.native?(delete o.native,u=e.nativeEvents||(e.nativeEvents={})):u=e.events||(e.events={});const l=Co({value:n.trim(),dynamic:c},s);o!==r&&(l.modifiers=o);const d=u[t];Array.isArray(d)?i?d.unshift(l):d.push(l):u[t]=d?i?[l,d]:[d,l]:l,e.plain=!1}function _o(e,t,n){const r=wo(e,":"+t)||wo(e,"v-bind:"+t);if(null!=r)return uo(r);if(!1!==n){const n=wo(e,t);if(null!=n)return JSON.stringify(n)}}function wo(e,t,n){let r;if(null!=(r=e.attrsMap[t])){const n=e.attrsList;for(let e=0,r=n.length;e<r;e++)if(n[e].name===t){n.splice(e,1);break}}return n&&delete e.attrsMap[t],r}function So(e,t){const n=e.attrsList;for(let e=0,r=n.length;e<r;e++){const r=n[e];if(t.test(r.name))return n.splice(e,1),r}}function Co(e,t){return t&&(null!=t.start&&(e.start=t.start),null!=t.end&&(e.end=t.end)),e}function ko(e,t,n){const{number:r,trim:o}=n||{};let i="$$v";o&&(i="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(i=`_n(${i})`);const a=xo(t,i);e.model={value:`(${t})`,expression:JSON.stringify(t),callback:`function ($$v) {${a}}`}}function xo(e,t){const n=function(e){if(e=e.trim(),Eo=e.length,e.indexOf("[")<0||e.lastIndexOf("]")<Eo-1)return Ao=e.lastIndexOf("."),Ao>-1?{exp:e.slice(0,Ao),key:'"'+e.slice(Ao+1)+'"'}:{exp:e,key:null};for(Oo=e,Ao=Po=Io=0;!No();)To=Lo(),Ro(To)?Mo(To):91===To&&Do(To);return{exp:e.slice(0,Po),key:e.slice(Po+1,Io)}}(e);return null===n.key?`${e}=${t}`:`$set(${n.exp}, ${n.key}, ${t})`}let Eo,Oo,To,Ao,Po,Io,jo;function Lo(){return Oo.charCodeAt(++Ao)}function No(){return Ao>=Eo}function Ro(e){return 34===e||39===e}function Do(e){let t=1;for(Po=Ao;!No();)if(Ro(e=Lo()))Mo(e);else if(91===e&&t++,93===e&&t--,0===t){Io=Ao;break}}function Mo(e){const t=e;for(;!No()&&(e=Lo())!==t;);}
2function Fo(e,t,n){const r=jo;return function o(){const i=t.apply(null,arguments);null!==i&&$o(e,o,n,r)}}const Uo=un&&!(ee&&Number(ee[1])<=53);function Bo(e,t,n,r){if(Uo){const e=Wt,n=t;t=n._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=e||t.timeStamp<=0||t.target.ownerDocument!==document)return n.apply(this,arguments)}}jo.addEventListener(e,t,re?{capture:n,passive:r}:n)}function $o(e,t,n,r){(r||jo).removeEventListener(e,t._wrapper||t,n)}function Ho(e,t){if(i(e.data.on)&&i(t.data.on))return;const n=t.data.on||{},r=e.data.on||{};jo=t.elm||e.elm,function(e){if(a(e.__r)){const t=J?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}a(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(n),We(n,r,Bo,$o,Fo,t.context),jo=void 0}var zo={create:Ho,update:Ho,destroy:e=>Ho(e,Vr)};let qo;function Vo(e,t){if(i(e.data.domProps)&&i(t.data.domProps))return;let n,r;const o=t.elm,c=e.data.domProps||{};let u=t.data.domProps||{};for(n in(a(u.__ob__)||s(u._v_attr_proxy))&&(u=t.data.domProps=I({},u)),c)n in u||(o[n]="");for(n in u){if(r=u[n],"textContent"===n||"innerHTML"===n){if(t.children&&(t.children.length=0),r===c[n])continue;1===o.childNodes.length&&o.removeChild(o.childNodes[0])}if("value"===n&&"PROGRESS"!==o.tagName){o._value=r;const e=i(r)?"":String(r);Go(o,e)&&(o.value=e)}else if("innerHTML"===n&&Rr(o.tagName)&&i(o.innerHTML)){qo=qo||document.createElement("div"),qo.innerHTML=`<svg>${r}</svg>`;const e=qo.firstChild;for(;o.firstChild;)o.removeChild(o.firstChild);for(;e.firstChild;)o.appendChild(e.firstChild)}else if(r!==c[n])try{o[n]=r}catch(e){}}}function Go(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){let n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){const n=e.value,r=e._vModifiers;if(a(r)){if(r.number)return g(n)!==g(t);if(r.trim)return n.trim()!==t.trim()}return n!==t}(e,t))}var Wo={create:Vo,update:Vo};const Yo=C((function(e){const t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){const r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}})),t}));function Ko(e){const t=Jo(e.style);return e.staticStyle?I(e.staticStyle,t):t}function Jo(e){return Array.isArray(e)?j(e):"string"==typeof e?Yo(e):e}const Zo=/^--/,Xo=/\s*!important$/,Qo=(e,t,n)=>{if(Zo.test(t))e.style.setProperty(t,n);else if(Xo.test(n))e.style.setProperty(T(t),n.replace(Xo,""),"important");else{const r=ni(t);if(Array.isArray(n))for(let t=0,o=n.length;t<o;t++)e.style[r]=n[t];else e.style[r]=n}},ei=["Webkit","Moz","ms"];let ti;const ni=C((function(e){if(ti=ti||document.createElement("div").style,"filter"!==(e=x(e))&&e in ti)return e;const t=e.charAt(0).toUpperCase()+e.slice(1);for(let e=0;e<ei.length;e++){const n=ei[e]+t;if(n in ti)return n}}));function ri(e,t){const n=t.data,r=e.data;if(i(n.staticStyle)&&i(n.style)&&i(r.staticStyle)&&i(r.style))return;let o,s;const c=t.elm,u=r.staticStyle,l=r.normalizedStyle||r.style||{},d=u||l,p=Jo(t.data.style)||{};t.data.normalizedStyle=a(p.__ob__)?I({},p):p;const f=function(e,t){const n={};let r;{let t=e;for(;t.componentInstance;)t=t.componentInstance._vnode,t&&t.data&&(r=Ko(t.data))&&I(n,r)}(r=Ko(e.data))&&I(n,r);let o=e;for(;o=o.parent;)o.data&&(r=Ko(o.data))&&I(n,r);return n}(t);for(s in d)i(f[s])&&Qo(c,s,"");for(s in f)o=f[s],o!==d[s]&&Qo(c,s,null==o?"":o)}var oi={create:ri,update:ri};const ii=/\s+/;function ai(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>
2-1?t.split(ii).forEach((t=>e.classList.add(t))):e.classList.add(t);else{const n=` ${e.getAttribute("class")||""} `;n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function si(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(ii).forEach((t=>e.classList.remove(t))):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{let n=` ${e.getAttribute("class")||""} `;const r=" "+t+" ";for(;n.indexOf(r)>=0;)n=n.replace(r," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function ci(e){if(e){if("object"==typeof e){const t={};return!1!==e.css&&I(t,ui(e.name||"v")),I(t,e),t}return"string"==typeof e?ui(e):void 0}}const ui=C((e=>({enterClass:`${e}-enter`,enterToClass:`${e}-enter-to`,enterActiveClass:`${e}-enter-active`,leaveClass:`${e}-leave`,leaveToClass:`${e}-leave-to`,leaveActiveClass:`${e}-leave-active`}))),li=Y&&!Z;let di="transition",pi="transitionend",fi="animation",hi="animationend";li&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(di="WebkitTransition",pi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(fi="WebkitAnimation",hi="webkitAnimationEnd"));const mi=Y?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:e=>e();function gi(e){mi((()=>{mi(e)}))}function yi(e,t){const n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),ai(e,t))}function vi(e,t){e._transitionClasses&&_(e._transitionClasses,t),si(e,t)}function bi(e,t,n){const{type:r,timeout:o,propCount:i}=wi(e,t);if(!r)return n();const a="transition"===r?pi:hi;let s=0;const c=()=>{e.removeEventListener(a,u),n()},u=t=>{t.target===e&&++s>=i&&c()};setTimeout((()=>{s<i&&c()}),o+1),e.addEventListener(a,u)}const _i=/\b(transform|all)(,|$)/;function wi(e,t){const n=window.getComputedStyle(e),r=(n[di+"Delay"]||"").split(", "),o=(n[di+"Duration"]||"").split(", "),i=Si(r,o),a=(n[fi+"Delay"]||"").split(", "),s=(n[fi+"Duration"]||"").split(", "),c=Si(a,s);let u,l=0,d=0;return"transition"===t?i>0&&(u="transition",l=i,d=o.length):"animation"===t?c>0&&(u="animation",l=c,d=s.length):(l=Math.max(i,c),u=l>0?i>c?"transition":"animation":null,d=u?"transition"===u?o.length:s.length:0),{type:u,timeout:l,propCount:d,hasTransform:"transition"===u&&_i.test(n[di+"Property"])}}function Si(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max.apply(null,t.map(((t,n)=>Ci(t)+Ci(e[n]))))}function Ci(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}function ki(e,t){const n=e.elm;a(n._leaveCb)&&(n._leaveCb.cancelled=!0,n._leaveCb());const r=ci(e.data.transition);if(i(r))return;if(a(n._enterCb)||1!==n.nodeType)return;const{css:o,type:s,enterClass:c,enterToClass:d,enterActiveClass:p,appearClass:f,appearToClass:h,appearActiveClass:m,beforeEnter:y,enter:v,afterEnter:b,enterCancelled:_,beforeAppear:w,appear:S,afterAppear:C,appearCancelled:k,duration:x}=r;let E=Rt,O=Rt.$vnode;for(;O&&O.parent;)E=O.context,O=O.parent;const T=!E._isMounted||!e.isRootInsert;if(T&&!S&&""!==S)return;const A=T&&f?f:c,P=T&&m?m:p,I=T&&h?h:d,j=T&&w||y,L=T&&u(S)?S:v,N=T&&C||b,R=T&&k||_,D=g(l(x)?x.enter:x),M=!1!==o&&!Z,U=Oi(L),B=n._enterCb=F((()=>{M&&(vi(n,I),vi(n,P)),B.cancelled?(M&&vi(n,A),R&&R(n)):N&&N(n),n._enterCb=null}));e.data.show||Ye(e,"insert",(()=>{const t=n.parentNode,r=t&&t._pending&&t._pending[e.key];r&&r.tag===e.tag&&r.elm._leaveCb&&r.elm._leaveCb(),L&&L(n,B)})),j&&j(n),M&&(yi(n,A),yi(n,P),gi((()=>{vi(n,A),B.cancelled||(yi(n,I),U||(Ei(D)?setTimeout(B,D):bi(n,s,B)))}))),e.data.show&&(t&&t(),L&&L(n,B)),M||U||B()}function xi(e,t){const n=e.elm;a(n._enterCb)&&(n._enterCb.cancelled=!0,n._enterCb());const r=ci(e.data.transition);if(i(r)||1!==n.nodeType)return t();if(a(n._leaveCb))return;const{css:o,type:s,leaveClass:c,leaveToClass:u,leaveActiveClass:d,beforeLeave:p,leave:f,afterLeave:h,leaveCancelled:m,delayLeave:y,duration:v}=r,b=!1!==o&&!Z,_=Oi(f),w=g(l(v)?v.leave:v),S=n._leaveCb=F((()=>{n.parentNode&&n.parentNode._pending&&(n.parentNode._pending[e.key]=null),b&&(vi(n,u),vi(n,d)),S.cancelled?(b&&vi(n,c),m&&m(n)):(t(),h&&h(n)),n._leaveCb=null}));function C(){S.cancelled||(!e.data.show&&n.parentNode&&((n.parentNode._pending||(n.parentNode._pending={}))[e.key]=e),p&&p(n),b&&(yi(n,c),yi(n,d),gi((()=>{vi(n,c),S.cancelled||(yi(n,u),_||(Ei(w)?setTimeout(S,w):bi(n,s,S)))}))),f&&f(n,S),b||_||S())}y?y(C):C()}function Ei(e){return"number"==typeof e&&!isNaN(e)}function Oi(e){if(i(e))return!1;const t=e.fns;return a(t)?Oi(Array.isArray(t)?t[0]:t):(e._length||e.length)>1}function Ti(e,t){!0!==t.data.show&&ki(t)}const Ai=function(e){let t,n;const r={},{modules:u,nodeOps:l}=e;for(t=0;t<Gr.length;++t)for(r[Gr[t]]=[],n=0;n<u.length;++n)a(u[n][Gr[t]])&&r[Gr[t]].push(u[n][Gr[t]]);function d(e){const t=l.parentNode(e);a(t)&&l.removeChild(t,e)}function p(e,t,n,o,i,c,u){if(a(e.elm)&&a(c)&&(e=c[u]=he(e)),e.isRootInsert=!i,function(e,t,n,o){let i=e.data;if(a(i)){const c=a(e.componentInstance)&&i.keepAlive;if(a(i=i.hook)&&a(i=i.init)&&i(e,!1),a(e.componentInstance))return f(e,t),h(n,e.elm,o),s(c)&&function(e,t,n,o){let i,s=e;for(;s.componentInstance;)if(s=s.componentInstance._vnode,a(i=s.data)&&a(i=i.transition)){for(i=0;i<r.activate.length;++i)r.activate[i](Vr,s);t.push(s);break}h(n,e.elm,o)}(e,t,n,o),!0}}(e,t,n,o))return;const d=e.data,p=e.children,g=e.tag;a(g)?(e.elm=e.ns?l.createElementNS(e.ns,g):l.createElement(g,e),b(e),m(e,p,t),a(d)&&v(e,t),h(n,e.elm,o)):s(e.isComment)?(e.elm=l.createComment(e.text),h(n,e.elm,o)):(e.elm=l.createTextNode(e.text),h(n,e.elm,o))}function f(e,t){a(e.data.pendingInsert)&&(t.push.apply(t,e.data.pendingInsert),e.data.pendingInsert=null),e.elm=e.componentInstance.$el,g(e)?(v(e,t),b(e)):(zr(e),t.pu
2sh(e))}function h(e,t,n){a(e)&&(a(n)?l.parentNode(n)===e&&l.insertBefore(e,t,n):l.appendChild(e,t))}function m(e,t,n){if(o(t))for(let r=0;r<t.length;++r)p(t[r],n,e.elm,null,!0,t,r);else c(e.text)&&l.appendChild(e.elm,l.createTextNode(String(e.text)))}function g(e){for(;e.componentInstance;)e=e.componentInstance._vnode;return a(e.tag)}function v(e,n){for(let t=0;t<r.create.length;++t)r.create[t](Vr,e);t=e.data.hook,a(t)&&(a(t.create)&&t.create(Vr,e),a(t.insert)&&n.push(e))}function b(e){let t;if(a(t=e.fnScopeId))l.setStyleScope(e.elm,t);else{let n=e;for(;n;)a(t=n.context)&&a(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t),n=n.parent}a(t=Rt)&&t!==e.context&&t!==e.fnContext&&a(t=t.$options._scopeId)&&l.setStyleScope(e.elm,t)}function _(e,t,n,r,o,i){for(;r<=o;++r)p(n[r],i,e,t,!1,n,r)}function w(e){let t,n;const o=e.data;if(a(o))for(a(t=o.hook)&&a(t=t.destroy)&&t(e),t=0;t<r.destroy.length;++t)r.destroy[t](e);if(a(t=e.children))for(n=0;n<e.children.length;++n)w(e.children[n])}function S(e,t,n){for(;t<=n;++t){const n=e[t];a(n)&&(a(n.tag)?(C(n),w(n)):d(n.elm))}}function C(e,t){if(a(t)||a(e.data)){let n;const o=r.remove.length+1;for(a(t)?t.listeners+=o:t=function(e,t){function n(){0==--n.listeners&&d(e)}return n.listeners=t,n}(e.elm,o),a(n=e.componentInstance)&&a(n=n._vnode)&&a(n.data)&&C(n,t),n=0;n<r.remove.length;++n)r.remove[n](e,t);a(n=e.data.hook)&&a(n=n.remove)?n(e,t):t()}else d(e.elm)}function k(e,t,n,r){for(let o=n;o<r;o++){const n=t[o];if(a(n)&&Wr(e,n))return o}}function x(e,t,n,o,c,u){if(e===t)return;a(t.elm)&&a(o)&&(t=o[c]=he(t));const d=t.elm=e.elm;if(s(e.isAsyncPlaceholder))return void(a(t.asyncFactory.resolved)?T
2(e.elm,t,n):t.isAsyncPlaceholder=!0);if(s(t.isStatic)&&s(e.isStatic)&&t.key===e.key&&(s(t.isCloned)||s(t.isOnce)))return void(t.componentInstance=e.componentInstance);let f;const h=t.data;a(h)&&a(f=h.hook)&&a(f=f.prepatch)&&f(e,t);const m=e.children,y=t.children;if(a(h)&&g(t)){for(f=0;f<r.update.length;++f)r.update[f](e,t);a(f=h.hook)&&a(f=f.update)&&f(e,t)}i(t.text)?a(m)&&a(y)?m!==y&&function(e,t,n,r,o){let s,c,u,d,f=0,h=0,m=t.length-1,g=t[0],y=t[m],v=n.length-1,b=n[0],w=n[v];const C=!o;for(;f<=m&&h<=v;)i(g)?g=t[++f]:i(y)?y=t[--m]:Wr(g,b)?(x(g,b,r,n,h),g=t[++f],b=n[++h]):Wr(y,w)?(x(y,w,r,n,v),y=t[--m],w=n[--v]):Wr(g,w)?(x(g,w,r,n,v),C&&l.insertBefore(e,g.elm,l.nextSibling(y.elm)),g=t[++f],w=n[--v]):Wr(y,b)?(x(y,b,r,n,h),C&&l.insertBefore(e,y.elm,g.elm),y=t[--m],b=n[++h]):(i(s)&&(s=Yr(t,f,m)),c=a(b.key)?s[b.key]:k(b,t,f,m),i(c)?p(b,r,e,g.elm,!1,n,h):(u=t[c],Wr(u,b)?(x(u,b,r,n,h),t[c]=void 0,C&&l.insertBefore(e,u.elm,g.elm)):p(b,r,e,g.elm,!1,n,h)),b=n[++h]);f>m?(d=i(n[v+1])?null:n[v+1].elm,_(e,d,n,h,v,r)):h>v&&S(t,f,m)}(d,m,y,n,u):a(y)?(a(e.text)&&l.setTextContent(d,""),_(d,null,y,0,y.length-1,n)):a(m)?S(m,0,m.length-1):a(e.text)&&l.setTextContent(d,""):e.text!==t.text&&l.setTextContent(d,t.text),a(h)&&a(f=h.hook)&&a(f=f.postpatch)&&f(e,t)}function E(e,t,n){if(s(n)&&a(e.parent))e.parent.data.pendingInsert=t;else for(let e=0;e<t.length;++e)t[e].data.hook.insert(t[e])}const O=y("attrs,class,staticClass,staticStyle,key");function T(e,t,n,r){let o;const{tag:i,data:c,children:u}=t;if(r=r||c&&c.pre,t.elm=e,s(t.isComment)&&a(t.asyncFactory))return t.isAsyncPlaceholder=!0,!0;if(a(c)&&(a(o=c.hook)&&a(o=o.init)&&o(t,!0),a(o=t.componentInstance)))return f(t,n),!0;if(a(i)){if(a(u))if(e.hasChildNodes())if(a(o=c)&&a(o=o.domProps)&&a(o=o.innerHTML)){if(o!==e.innerHTML)return!1}else{let t=!0,o=e.firstChild;for(let e=0;e<u.length;e++){if(!o||!T(o,u[e],n,r)){t=!1;break}o=o.nextSibling}if(!t||o)return!1}else m(t,u,n);if(a(c)){let e=!1;for(const r in c)if(!O(r)){e=!0,v(t,n);break}!e&&c.class&&Pn(c.class)}}else e.data!==t.text&&(e.data=t.text);return!0}return function(e,t,n,o){if(i(t))return void(a(e)&&w(e));let c=!1;const u=[];if(i(e))c=!0,p(t,u);else{const i=a(e.nodeType);if(!i&&Wr(e,t))x(e,t,u,null,null,o);else{if(i){if(1===e.nodeType&&e.hasAttribute("data-server-rendered")&&(e.removeAttribute("data-server-rendered"),n=!0),s(n)&&T(e,t,u))return E(t,u,!0),e;d=e,e=new de(l.tagName(d).toLowerCase(),{},[],void 0,d)}const o=e.elm,c=l.parentNode(o);if(p(t,u,o._leaveCb?null:c,l.nextSibling(o)),a(t.parent)){let e=t.parent;const n=g(t);for(;e;){for(let t=0;t<r.destroy.length;++t)r.destroy[t](e);if(e.elm=t.elm,n){for(let t=0;t<r.create.length;++t)r.create[t](Vr,e);const t=e.data.hook.insert;if(t.merged)for(let e=1;e<t.fns.length;e++)t.fns[e]()}else zr(e);e=e.parent}}a(c)?S([e],0,0):a(e.tag)&&w(e)}}var d;return E(t,u,c),t.elm}}({nodeOps:$r,modules:[io,so,zo,Wo,oi,Y?{create:Ti,activate:Ti,remove(e,t){!0!==e.data.show?xi(e,t):t()}}:{}].concat(to)});Z&&document.addEventListener("selectionchange",(()=>{const e=document.activeElement;e&&e.vmodel&&Mi(e,"input")}));const Pi={inserted(e,t,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Ye(n,"postpatch",(()=>{Pi.componentUpdated(e,t,n)})):Ii(e,t,n.context),e._vOptions=[].map.call(e.options,Ni)):("textarea"===n.tag||Ur(e.type))&&(e._vModifiers=t.modifiers,t.modifiers.lazy||(e.addEventListener("compositionstart",Ri),e.addEventListener("compositionend",Di),e.addEventListener("change",Di),Z&&(e.vmodel=!0)))},componentUpdated(e,t,n){if("select"===n.tag){Ii(e,t,n.context);const r=e._vOptions,o=e._vOptions=[].map.call(e.options,Ni);o.some(((e,t)=>!D(e,r[t])))&&(e.multiple?t.value.some((e=>Li(e,o))):t.value!==t.oldValue&&Li(t.value,o))&&Mi(e,"change")}}};function Ii(e,t,n){ji(e,t),(J||X)&&setTimeout((()=>{ji(e,t)}),0)}function ji(e,t,n){const r=t.value,o=e.multiple;if(o&&!Array.isArray(r))return;let i,a;for(let t=0,n=e.options.length;t<n;t++)if(a=e.options[t],o)i=M(r,Ni(a))>-1,a.selected!==i&&(a.selected=i);else if(D(Ni(a),r))return void(e.selectedIndex!==t&&(e.selectedIndex=t));o||(e.selectedIndex=-1)}function Li(e,t){return t.every((t=>!D(t,e)))}function Ni(e){return"_value"in e?e._value:e.value}function Ri(e){e.target.composing=!0}function Di(e){e.target.composing&&(e.target.composing=!1,Mi(e.target,"input"))}function Mi(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Fi(e){return!e.componentInstance||e.data&&e.data.transition?e:Fi(e.componentInstance._vnode)}
2var Ui={bind(e,{value:t},n){const r=(n=Fi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;t&&r?(n.data.show=!0,ki(n,(()=>{e.style.display=o}))):e.style.display=t?o:"none"},update(e,{value:t,oldValue:n},r){!t!=!n&&((r=Fi(r)).data&&r.data.transition?(r.data.show=!0,t?ki(r,(()=>{e.style.display=e.__vOriginalDisplay})):xi(r,(()=>{e.style.display="none"}))):e.style.display=t?e.__vOriginalDisplay:"none")},unbind(e,t,n,r,o){o||(e.style.display=e.__vOriginalDisplay)}},Bi={model:Pi,show:Ui};const $i={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Hi(e){const t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?Hi(Pt(t.children)):e}function zi(e){const t={},n=e.$options;for(const r in n.propsData)t[r]=e[r];const r=n._parentListeners;for(const e in r)t[x(e)]=r[e];return t}function qi(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}const Vi=e=>e.tag||vt(e),Gi=e=>"show"===e.name;var Wi={name:"transition",props:$i,abstract:!0,render(e){let t=this.$slots.default;if(!t)return;if(t=t.filter(Vi),!t.length)return;const n=this.mode,r=t[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return r;const o=Hi(r);if(!o)return r;if(this._leaving)return qi(e,r);const i=`__transition-${this._uid}-`;o.key=null==o.key?o.isComment?i+"comment":i+o.tag:c(o.key)?0===String(o.key).indexOf(i)?o.key:i+o.key:o.key;const a=(o.data||(o.data={})).transition=zi(this),s=this._vnode,u=Hi(s);if(o.data.directives&&o.data.directives.some(Gi)&&(o.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(o,u)&&!vt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){const t=u.data.transition=I({},a);if("out-in"===n)return this._leaving=!0,Ye(t,"afterLeave",(()=>{this._leaving=!1,this.$forceUpdate()})),qi(e,r);if("in-out"===n){if(vt(o))return s;let e;const n=()=>{e()};Ye(a,"afterEnter",n),Ye(a,"enterCancelled",n),Ye(t,"delayLeave",(t=>{e=t}))}}return r}};const Yi=I({tag:String,moveClass:String},$i);delete Yi.mode;var Ki={props:Yi,beforeMount(){const e=this._update;this._update=(t,n)=>{const r=Dt(this);this.__patch__(this._vnode,this.kept,!1,!0),this._vnode=this.kept,r(),e.call(this,t,n)}},render(e){const t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,o=this.$slots.default||[],i=this.children=[],a=zi(this);for(let e=0;e<o.length;e++){const t=o[e];t.tag&&null!=t.key&&0!==String(t.key).indexOf("__vlist")&&(i.push(t),n[t.key]=t,(t.data||(t.data={})).transition=a)}if(r){const o=[],i=[];for(let e=0;e<r.length;e++){const t=r[e];t.data.transition=a,t.data.pos=t.elm.getBoundingClientRect(),n[t.key]?o.push(t):i.push(t)}this.kept=e(t,null,o),this.removed=i}return e(t,null,i)},updated(){const e=this.prevChildren,t=this.moveClass||(this.name||"v")+"-move";e.length&&this.hasMove(e[0].elm,t)&&(e.forEach(Ji),e.forEach(Zi),e.forEach(Xi),this._reflow=document.body.offsetHeight,e.forEach((e=>{if(e.data.moved){const n=e.elm,r=n.style;yi(n,t),r.transform=r.WebkitTransform=r.transitionDuration="",n.addEventListener(pi,n._moveCb=function e(r){r&&r.target!==n||r&&!/transform$/.test(r.propertyName)||(n.removeEventListener(pi,e),n._moveCb=null,vi(n,t))})}})))},methods:{hasMove(e,t){if(!li)return!1;if(this._hasMove)return this._hasMove;const n=e.cloneNode();e._transitionClasses&&e._transitionClasses.forEach((e=>{si(n,e)})),ai(n,t),n.style.display="none",this.$el.appendChild(n);const r=wi(n);return this.$el.removeChild(n),this._hasMove=r.hasTransform}}};function Ji(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function Zi(e){e.data.newPos=e.elm.getBoundingClientRect()}function Xi(e){const t=e.data.pos,n=e.data.newPos,r=t.left-n.left,o=t.top-n.top;if(r||o){e.data.moved=!0;const t=e.elm.style;t.transform=t.WebkitTransform=`translate(${r}px,${o}px)`,t.transitionDuration="0s"}}var Qi={Transition:Wi,TransitionGroup:Ki};fr.config.mustUseProp=Sr,fr.config.isReservedTag=Dr,fr.config.isReservedAttr=_r,fr.config.getTagNamespace=Mr,fr.config.isUnknownElement=function(e){if(!Y)return!0;
2if(Dr(e))return!1;if(e=e.toLowerCase(),null!=Fr[e])return Fr[e];const t=document.createElement(e);return e.indexOf("-")>-1?Fr[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Fr[e]=/HTMLUnknownElement/.test(t.toString())},I(fr.options.directives,Bi),I(fr.options.components,Qi),fr.prototype.__patch__=Y?Ai:L,fr.prototype.$mount=function(e,t){return function(e,t,n){let r;e.$el=t,e.$options.render||(e.$options.render=pe),Bt(e,"beforeMount"),r=()=>{e._update(e._render(),n)},new Ln(e,r,L,{before(){e._isMounted&&!e._isDestroyed&&Bt(e,"beforeUpdate")}},!0),n=!1;const o=e._preWatchers;if(o)for(let e=0;e<o.length;e++)o[e].run();return null==e.$vnode&&(e._isMounted=!0,Bt(e,"mounted")),e}(this,e=e&&Y?Br(e):void 0,t)},Y&&setTimeout((()=>{H.devtools&&ie&&ie.emit("init",fr)}),0);const ea=/\{\{((?:.|\r?\n)+?)\}\}/g,ta=/[-.*+?^${}()|[\]\/\\]/g,na=C((e=>{const t=e[0].replace(ta,"\\$&"),n=e[1].replace(ta,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")}));var ra={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;const n=wo(e,"class");n&&(e.staticClass=JSON.stringify(n.replace(/\s+/g," ").trim()));const r=_o(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){let t="";return e.staticClass&&(t+=`staticClass:${e.staticClass},`),e.classBinding&&(t+=`class:${e.classBinding},`),t}},oa={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;const n=wo(e,"style");n&&(e.staticStyle=JSON.stringify(Yo(n)));const r=_o(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){let t="";return e.staticStyle&&(t+=`staticStyle:${e.staticStyle},`),e.styleBinding&&(t+=`style:(${e.styleBinding}),`),t}};let ia;const aa=y("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),sa=y("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),ca=y("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),ua=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,la=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+?\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,da=`[a-zA-Z_][\\-\\.0-9_a-zA-Z${z.source}]*`,pa=`((?:${da}\\:)?${da})`,fa=new RegExp(`^<${pa}`),ha=/^\s*(\/?)>/,ma=new RegExp(`^<\\/${pa}[^>]*>`),ga=/^<!DOCTYPE [^>]+>/i,ya=/^<!\--/,va=/^<!\[/,ba=y("script,style,textarea",!0),_a={},wa={"<":"<",">":">",""":'"',"&":"&"," ":"\n","	":"\t","'":"'"},Sa=/&(?:lt|gt|quot|amp|#39);/g,Ca=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,ka=y("pre,textarea",!0),xa=(e,t)=>e&&ka(e)&&"\n"===t[0];function Ea(e,t){const n=t?Ca:Sa;return e.replace(n,(e=>wa[e]))}const Oa=/^@|^v-on:/,Ta=/^v-|^@|^:|^#/,Aa=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Pa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Ia=/^\(|\)$/g,ja=/^\[.*\]$/,La=/:(.*)$/,Na=/^:|^\.|^v-bind:/,Ra=/\.[^.\]]+(?=[^\]]*$)/g,Da=/^v-slot(:|$)|^#/,Ma=/[\r\n]/,Fa=/[ \f\t\r\n]+/g,Ua=C((e=>(ia=ia||document.createElement("div"),ia.innerHTML=e,ia.textContent)));let Ba,$a,Ha,za,qa,Va,Ga,Wa;function Ya(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:es(t),rawAttrsMap:{},parent:n,children:[]}}function Ka(e,t){var n;!function(e){const t=_o(e,"key");t&&(e.key=t)}(e),e.plain=!e.key&&!e.scopedSlots&&!e.attrsList.length,function(e){const t=_o(e,"ref");t&&(e.ref=t,e.refInFor=function(e){let t=e;for(;t;){if(void 0!==t.for)return!0;t=t.parent}return!1}(e))}(e),function(e){let t;"template"===e.tag?(t=wo(e,"scope"),e.slotScope=t||wo(e,"slot-scope")):(t=wo(e,"slot-scope"))&&(e.slotScope=t);const n=_o(e,"slot");if(n&&(e.slotTarget='""'===n?'"default"':n,e.slotTargetDynamic=!(!e.attrsMap[":slot"]&&!e.attrsMap["v-bind:slot"]),"template"===e.tag||e.slotScope||mo(e,"slot",n,function(e,t){return e.rawAttrsMap[":"+t]||e.rawAttrsMap["v-bind:"+t]||e.rawAttrsMap[t]}(e,"slot"))),"template"===e.tag){const t=So(e,Da);if(t){const{name:n,dynamic:r}=Xa(t);e.slotTarget=n,e.slotTargetDynamic=r,e.slotScope=t.value||"_empty_"}}else{const t=So(e,Da);if(t){const n=e.scopedSlots||(e.scopedSlots={}),{name:r,dynamic:o}=Xa(t),i=n[r]=Ya("template",[],e);i.slotTarget=r,i.slotTargetDynamic=o,i.children=e.children.filter((e=>{if(!e.slotScope)return e.parent=i,!0})),i.slotScope=t.value||"_empty_",e.children=[],e.plain=!1}
2}}(e),"slot"===(n=e).tag&&(n.slotName=_o(n,"name")),function(e){let t;(t=_o(e,"is"))&&(e.component=t),null!=wo(e,"inline-template")&&(e.inlineTemplate=!0)}(e);for(let n=0;n<Ha.length;n++)e=Ha[n](e,t)||e;return function(e){const t=e.attrsList;let n,r,o,i,a,s,c,u;for(n=0,r=t.length;n<r;n++)if(o=i=t[n].name,a=t[n].value,Ta.test(o))if(e.hasBindings=!0,s=Qa(o.replace(Ta,"")),s&&(o=o.replace(Ra,"")),Na.test(o))o=o.replace(Na,""),a=uo(a),u=ja.test(o),u&&(o=o.slice(1,-1)),s&&(s.prop&&!u&&(o=x(o),"innerHtml"===o&&(o="innerHTML")),s.camel&&!u&&(o=x(o)),s.sync&&(c=xo(a,"$event"),u?bo(e,`"update:"+(${o})`,c,null,!1,0,t[n],!0):(bo(e,`update:${x(o)}`,c,null,!1,0,t[n]),T(o)!==x(o)&&bo(e,`update:${T(o)}`,c,null,!1,0,t[n])))),s&&s.prop||!e.component&&Ga(e.tag,e.attrsMap.type,o)?ho(e,o,a,t[n],u):mo(e,o,a,t[n],u);else if(Oa.test(o))o=o.replace(Oa,""),u=ja.test(o),u&&(o=o.slice(1,-1)),bo(e,o,a,s,!1,0,t[n],u);else{o=o.replace(Ta,"");const r=o.match(La);let c=r&&r[1];u=!1,c&&(o=o.slice(0,-(c.length+1)),ja.test(c)&&(c=c.slice(1,-1),u=!0)),yo(e,o,i,a,c,u,s,t[n])}else mo(e,o,JSON.stringify(a),t[n]),!e.component&&"muted"===o&&Ga(e.tag,e.attrsMap.type,o)&&ho(e,o,"true",t[n])}(e),e}function Ja(e){let t;if(t=wo(e,"v-for")){const n=function(e){const t=e.match(Aa);if(!t)return;const n={};n.for=t[2].trim();const r=t[1].trim().replace(Ia,""),o=r.match(Pa);return o?(n.alias=r.replace(Pa,"").trim(),n.iterator1=o[1].trim(),o[2]&&(n.iterator2=o[2].trim())):n.alias=r,n}(t);n&&I(e,n)}}function Za(e,t){e.ifConditions||(e.ifConditions=[]),e.ifConditions.push(t)}function Xa(e){let t=e.name.replace(Da,"");return t||"#"!==e.name[0]&&(t="default"),ja.test(t)?{name:t.slice(1,-1),dynamic:!0}:{name:`"${t}"`,dynamic:!1}}function Qa(e){const t=e.match(Ra);if(t){const e={};return t.forEach((t=>{e[t.slice(1)]=!0})),e}}function es(e){const t={};for(let n=0,r=e.length;n<r;n++)t[e[n].name]=e[n].value;return t}const ts=/^xmlns:NS\d+/,ns=/^NS\d+:/;function rs(e){return Ya(e.tag,e.attrsList.slice(),e.parent)}var os=[ra,oa,{preTransformNode:function(e,t){if("input"===e.tag){const n=e.attrsMap;if(!n["v-model"])return;let r;if((n[":type"]||n["v-bind:type"])&&(r=_o(e,"type")),n.type||r||!n["v-bind"]||(r=`(${n["v-bind"]}).type`),r){const n=wo(e,"v-if",!0),o=n?`&&(${n})`:"",i=null!=wo(e,"v-else",!0),a=wo(e,"v-else-if",!0),s=rs(e);Ja(s),go(s,"type","checkbox"),Ka(s,t),s.processed=!0,s.if=`(${r})==='checkbox'`+o,Za(s,{exp:s.if,block:s});const c=rs(e);wo(c,"v-for",!0),go(c,"type","radio"),Ka(c,t),Za(s,{exp:`(${r})==='radio'`+o,block:c});const u=rs(e);return wo(u,"v-for",!0),go(u,":type",r),Ka(u,t),Za(s,{exp:n,block:u}),i?s.else=!0:a&&(s.elseif=a),s}}}}];const is={expectHTML:!0,modules:os,directives:{model:function(e,t,n){const r=t.value,o=t.modifiers,i=e.tag,a=e.attrsMap.type;if(e.component)return ko(e,r,o),!1;if("select"===i)!function(e,t,n){let r=`var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return ${n&&n.number?"_n(val)":"val"}});`;r=`${r} ${xo(t,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]")}`,bo(e,"change",r,null,!0)}(e,r,o);else if("input"===i&&"checkbox"===a)!function(e,t,n){const r=n&&n.number,o=_o(e,"value")||"null",i=_o(e,"true-value")||"true",a=_o(e,"false-value")||"false";ho(e,"checked",`Array.isArray(${t})?_i(${t},${o})>-1`+("true"===i?`:(${t})`:`:_q(${t},${i})`)),bo(e,"change",`var $$a=${t},$$el=$event.target,$$c=$$el.checked?(${i}):(${a});if(Array.isArray($$a)){var $$v=${r?"_n("+o+")":o},$$i=_i($$a,$$v);if($$el.checked){$$i<0&&(${xo(t,"$$a.concat([$$v])")})}else{$$i>-1&&(${xo(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")})}}else{${xo(t,"$$c")}}`,null,!0)}(e,r,o);else if("input"===i&&"radio"===a)!function(e,t,n){const r=n&&n.number;let o=_o(e,"value")||"null";o=r?`_n(${o})`:o,ho(e,"checked",`_q(${t},${o})`),bo(e,"change",xo(t,o),null,!0)}(e,r,o);else if("input"===i||"textarea"===i)!function(e,t,n){const r=e.attrsMap.type,{lazy:o,number:i,trim:a}=n||{},s=!o&&"range"!==r,c=o?"change":"range"===r?"__r":"input";let u="$event.target.value";a&&(u="$event.target.value.trim()"),i&&(u=`_n(${u})`);let l=xo(t,u);s&&(l=`if($event.target.composing)return;${l}`),ho(e,"value",`(${t})`),bo(e,c,l,null,!0),(a||i)&&bo(e,"blur","$forceUpdate()")}(e,r,o);else if(!H.isReservedTag(i))return ko(e,r,o),!1;return!0},text:function(e,t){t.value&&ho(e,"textContent",`_s(${t.value})`,t)},html:function(e,t){t.value&&ho(e,"innerHTML",`_s(${t.value})`,t)}},isPreTag:e=>"pre"===e,isUnaryTag:aa,mustUseProp:Sr,canBeLeftOpenTag:sa,isReservedTag:Dr,getTagNamespace:Mr,staticKeys:function(e){return e.reduce(((e,t)=>e.concat(t.staticKeys||[])),[]).join(",")}(os)};let as,ss;const cs=C((function(e){return y("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function us(e,t){e&&(as=cs(t.staticKeys||""),ss=t.isReservedTag||N,ls(e),ds(e,!1))}function ls(e){if(e.static=function(e){return 2!==e.type&&(3===e.type||!(!e.pre&&(e.hasBindings||e.if||e.for||v(e.tag)||!ss(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(as))))}(e),1===e.type){if(!ss(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(let t=0,n=e.children.length;t<n;t++){const n=e.children[t];ls(n),n.static||(e.static=!1)}
2if(e.ifConditions)for(let t=1,n=e.ifConditions.length;t<n;t++){const n=e.ifConditions[t].block;ls(n),n.static||(e.static=!1)}}}function ds(e,t){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=t),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(let n=0,r=e.children.length;n<r;n++)ds(e.children[n],t||!!e.for);if(e.ifConditions)for(let n=1,r=e.ifConditions.length;n<r;n++)ds(e.ifConditions[n].block,t)}}const ps=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,fs=/\([^)]*?\);*$/,hs=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,ms={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},gs={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},ys=e=>`if(${e})return null;`,vs={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:ys("$event.target !== $event.currentTarget"),ctrl:ys("!$event.ctrlKey"),shift:ys("!$event.shiftKey"),alt:ys("!$event.altKey"),meta:ys("!$event.metaKey"),left:ys("'button' in $event && $event.button !== 0"),middle:ys("'button' in $event && $event.button !== 1"),right:ys("'button' in $event && $event.button !== 2")};function bs(e,t){const n=t?"nativeOn:":"on:";let r="",o="";for(const t in e){const n=_s(e[t]);e[t]&&e[t].dynamic?o+=`${t},${n},`:r+=`"${t}":${n},`}return r=`{${r.slice(0,-1)}}`,o?n+`_d(${r},[${o.slice(0,-1)}])`:n+r}function _s(e){if(!e)return"function(){}";if(Array.isArray(e))return`[${e.map((e=>_s(e))).join(",")}]`;const t=hs.test(e.value),n=ps.test(e.value),r=hs.test(e.value.replace(fs,""));if(e.modifiers){let o="",i="";const a=[];for(const t in e.modifiers)if(vs[t])i+=vs[t],ms[t]&&a.push(t);else if("exact"===t){const t=e.modifiers;i+=ys(["ctrl","shift","alt","meta"].filter((e=>!t[e])).map((e=>`$event.${e}Key`)).join("||"))}else a.push(t);return a.length&&(o+=function(e){return`if(!$event.type.indexOf('key')&&${e.map(ws).join("&&")})return null;`}(a)),i&&(o+=i),`function($event){${o}${t?`return ${e.value}.apply(null, arguments)`:n?`return (${e.value}).apply(null, arguments)`:r?`return ${e.value}`:e.value}}`}return t||n?e.value:`function($event){${r?`return ${e.value}`:e.value}}`}function ws(e){const t=parseInt(e,10);if(t)return`$event.keyCode!==${t}`;const n=ms[e],r=gs[e];return`_k($event.keyCode,${JSON.stringify(e)},${JSON.stringify(n)},$event.key,${JSON.stringify(r)})`}var Ss={on:function(e,t){e.wrapListeners=e=>`_g(${e},${t.value})`},bind:function(e,t){e.wrapData=n=>`_b(${n},'${e.tag}',${t.value},${t.modifiers&&t.modifiers.prop?"true":"false"}${t.modifiers&&t.modifiers.sync?",true":""})`},cloak:L};class Cs{constructor(e){this.options=e,this.warn=e.warn||po,this.transforms=fo(e.modules,"transformCode"),this.dataGenFns=fo(e.modules,"genData"),this.directives=I(I({},Ss),e.directives);const t=e.isReservedTag||N;this.maybeComponent=e=>!!e.component||!t(e.tag),this.onceId=0,this.staticRenderFns=[],this.pre=!1}}function ks(e,t){const n=new Cs(t);return{render:`with(this){return ${e?"script"===e.tag?"null":xs(e,n):'_c("div")'}}`,staticRenderFns:n.staticRenderFns}}function xs(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Es(e,t);if(e.once&&!e.onceProcessed)return Os(e,t);if(e.for&&!e.forProcessed)return Ps(e,t);if(e.if&&!e.ifProcessed)return Ts(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){const n=e.slotName||'"default"',r=Ns(e,t);let o=`_t(${n}${r?`,function(){return ${r}}`:""}`;const i=e.attrs||e.dynamicAttrs?Ms((e.attrs||[]).concat(e.dynamicAttrs||[]).map((e=>({name:x(e.name),value:e.value,dynamic:e.dynamic})))):null,a=e.attrsMap["v-bind"];return!i&&!a||r||(o+=",null"),i&&(o+=`,${i}`),a&&(o+=`${i?"":",null"},${a}`),o+")"}(e,t);{let n;if(e.component)n=function(e,t,n){const r=t.inlineTemplate?null:Ns(t,n,!0);return`_c(${e},${Is(t,n)}${r?`,${r}`:""})`}(e.component,e,t);else{let r;const o=t.maybeComponent(e);let i;(!e.plain||e.pre&&o)&&(r=Is(e,t));const a=t.options.bindings;o&&a&&!1!==a.__isScriptSetup&&(i=function(e,t){const n=x(t),r=E(n),o=o=>e[t]===o?t:e[n]===o?n:e[r]===o?r:void 0,i=o("setup-const")||o("setup-reactive-const");if(i)return i;return o("setup-let")||o("setup-ref")||o("setup-maybe-ref")||void 0}(a,e.tag)),i||(i=`'${e.tag}'`);const s=e.inlineTemplate?null:Ns(e,t,!0);n=`_c(${i}${r?`,${r}`:""}${s?`,${s}`:""})`}for(let r=0;r<t.transforms.length;r++)n=t.transforms[r](e,n);return n}}return Ns(e,t)||"void 0"}function Es(e,t){e.staticProcessed=!0;const n=t.pre;return e.pre&&(t.pre=e.pre),t.staticRenderFns.push(`with(this){return ${xs(e,t)}}`),t.pre=n,`_m(${t.staticRenderFns.length-1}${e.staticInFor?",true":""})`}function Os(e,t){if(e.onceProcessed=!0,e.if&&!e.ifProcessed)return Ts(e,t);if(e.staticInFor){let n="",r=e.parent;for(;r;){if(r.for){n=r.key;break}r=r.parent}return n?`_o(${xs(e,t)},${t.onceId++},${n})`:xs(e,t)}return Es(e,t)}function Ts(e,t,n,r){return e.ifProcessed=!0,As(e.ifConditions.slice(),t,n,r)}function As(e,t,n,r){if(!e.length)return r||"_e()";const o=e.shift();return o.exp?`(${o.exp})?${i(o.block)}:${As(e,t,n,r)}`:`${i(o.block)}`;function i(e){return n?n(e,t):e.once?Os(e,t):xs(e,t)}}function Ps(e,t,n,r){const o=e.for,i=e.alias,a=e.iterator1?`,${e.iterator1}`:"",s=e.iterator2?`,${e.iterator2}`:"";return e.forProcessed=!0,`${r||"_l"}((${o}),function(${i}${a}${s}){return ${(n||xs)(e,t)}})`}function Is(e,t){let n="{";const r=function(e,t){const n=e.directives;if(!n)return;let r,o,i,a,s="directives:[",c=!1;for(r=0,o=n.length;r<o;r++){i=n[r],a=!0;const o=t.directives[i.name];o&&(a=!!o(e,i,t.warn)),a&&(c=!0,s+=`{name:"${i.name}",rawName:"${i.rawName}"${i.value?`,value:(${i.value}),expression:${JSON.stringify(i.value)}`:""}${i.arg?`,arg:${i.isDynamicArg?i.arg:`"${i.arg}"`}`:""}${i.modifiers?`,modifiers:${JSON.stringify(i.modifiers)}`:""}},`)}return c?s.slice(0,-1)+"]":void 0}(e,t);r&&(n+=r+","),e.key&&(n+=`key:${e.key},`),e.ref&&(n+=`ref:${e.ref},`),e.refInFor&&(n+="refInFor:true,"),e.pre&&(n+="pre:true,"),e.component&&(n+=`tag:"${e.tag}",`);for(let r=0;r<t.dataGenFns.length;r++)n+=t.dataGenFns[r](e);if(e.attrs&&(n+=`attrs:${Ms(e.attrs)},`),e.props&&(n+=`domProps:${Ms(e.props)},`),e.events&&(n+=`${bs(e.events,!1)},`),e.nativeEvents&&(n+=`${bs(e.nativeEvents,!0)},`),e.slotTarget&&!e.slotScope&&(n+=`slot:${e.slotTarget},`),e.scopedSlots&&(n+=`${function(e,t,n){let r=e.for||Object.keys(t).some((e=>{const n=t[e];return n.slotTargetDynamic||n.if||n.for||js(n)})),o=!!e.if;if(!r){let t=e.parent;for(;t;){if(t.slotScope&&"_empty_"!==t.slotScope||t.for){r=!0;break}t.if&&(o=!0),t=t.parent}}const i=Object.keys(t).map((e=>Ls(t[e],n))).join(",");return`scopedSlots:_u([${i}]${r?",null,true":""}
2${!r&&o?`,null,false,${function(e){let t=5381,n=e.length;for(;n;)t=33*t^e.charCodeAt(--n);return t>>>0}(i)}`:""})`}(e,e.scopedSlots,t)},`),e.model&&(n+=`model:{value:${e.model.value},callback:${e.model.callback},expression:${e.model.expression}},`),e.inlineTemplate){const r=function(e,t){const n=e.children[0];if(n&&1===n.type){const e=ks(n,t.options);return`inlineTemplate:{render:function(){${e.render}},staticRenderFns:[${e.staticRenderFns.map((e=>`function(){${e}}`)).join(",")}]}`}}(e,t);r&&(n+=`${r},`)}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n=`_b(${n},"${e.tag}",${Ms(e.dynamicAttrs)})`),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function js(e){return 1===e.type&&("slot"===e.tag||e.children.some(js))}function Ls(e,t){const n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ts(e,t,Ls,"null");if(e.for&&!e.forProcessed)return Ps(e,t,Ls);const r="_empty_"===e.slotScope?"":String(e.slotScope),o=`function(${r}){return ${"template"===e.tag?e.if&&n?`(${e.if})?${Ns(e,t)||"undefined"}:undefined`:Ns(e,t)||"undefined":xs(e,t)}}`,i=r?"":",proxy:true";return`{key:${e.slotTarget||'"default"'},fn:${o}${i}}`}function Ns(e,t,n,r,o){const i=e.children;if(i.length){const e=i[0];if(1===i.length&&e.for&&"template"!==e.tag&&"slot"!==e.tag){const o=n?t.maybeComponent(e)?",1":",0":"";return`${(r||xs)(e,t)}${o}`}const a=n?function(e,t){let n=0;for(let r=0;r<e.length;r++){const o=e[r];if(1===o.type){if(Rs(o)||o.ifConditions&&o.ifConditions.some((e=>Rs(e.block)))){n=2;break}(t(o)||o.ifConditions&&o.ifConditions.some((e=>t(e.block))))&&(n=1)}}return n}(i,t.maybeComponent):0,s=o||Ds;return`[${i.map((e=>s(e,t))).join(",")}]${a?`,${a}`:""}`}}function Rs(e){return void 0!==e.for||"template"===e.tag||"slot"===e.tag}function Ds(e,t){return 1===e.type?xs(e,t):3===e.type&&e.isComment?function(e){return`_e(${JSON.stringify(e.text)})`}(e):function(e){return`_v(${2===e.type?e.expression:Fs(JSON.stringify(e.text))})`}(e)}function Ms(e){let t="",n="";for(let r=0;r<e.length;r++){const o=e[r],i=Fs(o.value);o.dynamic?n+=`${o.name},${i},`:t+=`"${o.name}":${i},`}return t=`{${t.slice(0,-1)}}`,n?`_d(${t},[${n.slice(0,-1)}])`:t}function Fs(e){return e.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Us(e,t){try{return new Function(e)}catch(n){return t.push({err:n,code:e}),L}}function Bs(e){const t=Object.create(null);return function(n,r,o){(r=I({},r)).warn,delete r.warn;const i=r.delimiters?String(r.delimiters)+n:n;if(t[i])return t[i];const a=e(n,r),s={},c=[];return s.render=Us(a.render,c),s.staticRenderFns=a.staticRenderFns.map((e=>Us(e,c))),t[i]=s}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b"),new RegExp("\\b"+"delete,typeof,void".split(",").join("\\s*\\([^\\)]*\\)|\\b")+"\\s*\\([^\\)]*\\)");const $s=(Hs=function(e,t){const n=function(e,t){Ba=t.warn||po,Va=t.isPreTag||N,Ga=t.mustUseProp||N,Wa=t.getTagNamespace||N,t.isReservedTag,Ha=fo(t.modules,"transformNode"),za=fo(t.modules,"preTransformNode"),qa=fo(t.modules,"postTransformNode"),$a=t.delimiters;const n=[],r=!1!==t.preserveWhitespace,o=t.whitespace;let i,a,s=!1,c=!1;function u(e){if(l(e),s||e.processed||(e=Ka(e,t)),n.length||e===i||i.if&&(e.elseif||e.else)&&Za(i,{exp:e.elseif,block:e}),a&&!e.forbidden)if(e.elseif||e.else)!function(e,t){const n=function(e){let t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(t.children);n&&n.if&&Za(n,{exp:e.elseif,block:e})}(e,a);else{if(e.slotScope){const t=e.slotTarget||'"default"';(a.scopedSlots||(a.scopedSlots={}))[t]=e}a.children.push(e),e.parent=a}e.children=e.children.filter((e=>!e.slotScope)),l(e),e.pre&&(s=!1),Va(e.tag)&&(c=!1);for(let n=0;n<qa.length;n++)qa[n](e,t)}function l(e){if(!c){let t;for(;(t=e.children[e.children.length-1])&&3===t.type&&" "===t.text;)e.children.pop()}}return function(e,t){const n=[],r=t.expectHTML,o=t.isUnaryTag||N,i=t.canBeLeftOpenTag||N;let a,s,c=0;for(;e;){if(a=e,s&&ba(s)){let n=0;const r=s.toLowerCase(),o=_a[r]||(_a[r]=new RegExp("([\\s\\S]*?)(</"+r+"[^>]*>)","i")),i=e.replace(o,(function(e,o,i){return n=i.length,ba(r)||"noscript"===r||(o=o.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),xa(r,o)&&(o=o.slice(1)),t.chars&&t.chars(o),""}));c+=e.length-i.length,e=i,p(r,c-n,c)}else{let n,r,o,i=e.indexOf("<");if(0===i){if(ya.test(e)){const n=e.indexOf("--\x3e");
2if(n>=0){t.shouldKeepComment&&t.comment&&t.comment(e.substring(4,n),c,c+n+3),u(n+3);continue}}if(va.test(e)){const t=e.indexOf("]>");if(t>=0){u(t+2);continue}}const n=e.match(ga);if(n){u(n[0].length);continue}const r=e.match(ma);if(r){const e=c;u(r[0].length),p(r[1],e,c);continue}const o=l();if(o){d(o),xa(o.tagName,e)&&u(1);continue}}if(i>=0){for(r=e.slice(i);!(ma.test(r)||fa.test(r)||ya.test(r)||va.test(r)||(o=r.indexOf("<",1),o<0));)i+=o,r=e.slice(i);n=e.substring(0,i)}i<0&&(n=e),n&&u(n.length),t.chars&&n&&t.chars(n,c-n.length,c)}if(e===a){t.chars&&t.chars(e);break}}function u(t){c+=t,e=e.substring(t)}function l(){const t=e.match(fa);if(t){const n={tagName:t[1],attrs:[],start:c};let r,o;for(u(t[0].length);!(r=e.match(ha))&&(o=e.match(la)||e.match(ua));)o.start=c,u(o[0].length),o.end=c,n.attrs.push(o);if(r)return n.unarySlash=r[1],u(r[0].length),n.end=c,n}}function d(e){const a=e.tagName,c=e.unarySlash;r&&("p"===s&&ca(a)&&p(s),i(a)&&s===a&&p(a));const u=o(a)||!!c,l=e.attrs.length,d=new Array(l);for(let n=0;n<l;n++){const r=e.attrs[n],o=r[3]||r[4]||r[5]||"",i="a"===a&&"href"===r[1]?t.shouldDecodeNewlinesForHref:t.shouldDecodeNewlines;d[n]={name:r[1],value:Ea(o,i)}}u||(n.push({tag:a,lowerCasedTag:a.toLowerCase(),attrs:d,start:e.start,end:e.end}),s=a),t.start&&t.start(a,d,u,e.start,e.end)}function p(e,r,o){let i,a;if(null==r&&(r=c),null==o&&(o=c),e)for(a=e.toLowerCase(),i=n.length-1;i>=0&&n[i].lowerCasedTag!==a;i--);else i=0;if(i>=0){for(let e=n.length-1;e>=i;e--)t.end&&t.end(n[e].tag,r,o);n.length=i,s=i&&n[i-1].tag}else"br"===a?t.start&&t.start(e,[],!0,r,o):"p"===a&&(t.start&&t.start(e,[],!1,r,o),t.end&&t.end(e,r,o))}p()}(e,{warn:Ba,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start(e,r,o,l,d){const p=a&&a.ns||Wa(e);J&&"svg"===p&&(r=function(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n];ts.test(r.name)||(r.name=r.name.replace(ns,""),t.push(r))}return t}(r));let f=Ya(e,r,a);var h;p&&(f.ns=p),"style"!==(h=f).tag&&("script"!==h.tag||h.attrsMap.type&&"text/javascript"!==h.attrsMap.type)||oe()||(f.forbidden=!0);for(let e=0;e<za.length;e++)f=za[e](f,t)||f;s||(function(e){null!=wo(e,"v-pre")&&(e.pre=!0)}(f),f.pre&&(s=!0)),Va(f.tag)&&(c=!0),s?function(e){const t=e.attrsList,n=t.length;if(n){const r=e.attrs=new Array(n);for(let e=0;e<n;e++)r[e]={name:t[e].name,value:JSON.stringify(t[e].value)},null!=t[e].start&&(r[e].start=t[e].start,r[e].end=t[e].end)}else e.pre||(e.plain=!0)}(f):f.processed||(Ja(f),function(e){const t=wo(e,"v-if");if(t)e.if=t,Za(e,{exp:t,block:e});else{null!=wo(e,"v-else")&&(e.else=!0);const t=wo(e,"v-else-if");t&&(e.elseif=t)}}(f),function(e){null!=wo(e,"v-once")&&(e.once=!0)}(f)),i||(i=f),o?u(f):(a=f,n.push(f))},end(e,t,r){const o=n[n.length-1];n.length-=1,a=n[n.length-1],u(o)},chars(e,t,n){if(!a)return;if(J&&"textarea"===a.tag&&a.attrsMap.placeholder===e)return;const i=a.children;var u;if(e=c||e.trim()?"script"===(u=a).tag||"style"===u.tag?e:Ua(e):i.length?o?"condense"===o&&Ma.test(e)?"":" ":r?" ":"":""){let t,n;c||"condense"!==o||(e=e.replace(Fa," ")),!s&&" "!==e&&(t=function(e,t){const n=t?na(t):ea;if(!n.test(e))return;const r=[],o=[];let i,a,s,c=n.lastIndex=0;for(;i=n.exec(e);){a=i.index,a>c&&(o.push(s=e.slice(c,a)),r.push(JSON.stringify(s)));const t=uo(i[1].trim());r.push(`_s(${t})`),o.push({"@binding":t}),c=a+i[0].length}return c<e.length&&(o.push(s=e.slice(c)),r.push(JSON.stringify(s))),{expression:r.join("+"),tokens:o}}(e,$a))?n={type:2,expression:t.expression,tokens:t.tokens,text:e}:" "===e&&i.length&&" "===i[i.length-1].text||(n={type:3,text:e}),n&&i.push(n)}},comment(e,t,n){if(a){const t={type:3,text:e,isComment:!0};a.children.push(t)}}}),i}(e.trim(),t);!1!==t.optimize&&us(n,t);const r=ks(n,t);return{ast:n,render:r.render,staticRenderFns:r.staticRenderFns}},function(e){function t(t,n){const r=Object.create(e),o=[],i=[];if(n){n.modules&&(r.modules=(e.modules||[]).concat(n.modules)),n.directives&&(r.directives=I(Object.create(e.directives||null),n.directives));for(const e in n)"modules"!==e&&"directives"!==e&&(r[e]=n[e])}r.warn=(e,t,n)=>{(n?i:o).push(e)};const a=Hs(t.trim(),r);return a.errors=o,a.tips=i,a}return{compile:t,compileToFunctions:Bs(t)}});var Hs;const{compile:zs,compileToFunctions:qs}=$s(is);let Vs;function Gs(e){return Vs=Vs||document.createElement("div"),Vs.innerHTML=e?'<a href="\n"/>':'<div a="\n"/>',Vs.innerHTML.indexOf(" ")>0}const Ws=!!Y&&Gs(!1),Ys=!!Y&&Gs(!0),Ks=C((e=>{const t=Br(e);return t&&t.innerHTML})),Js=fr.prototype.$mount;fr.prototype.$mount=function(e,t){if((e=e&&Br(e))===document.body||e===document.documentElement)return this;const n=this.$options;if(!n.render){let t=n.template;if(t)if("string"==typeof t)"#"===t.charAt(0)&&(t=Ks(t));else{if(!t.nodeType)return this;t=t.innerHTML}else e&&(t=function(e){if(e.outerHTML)return e.outerHTML;{const t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}}(e));if(t){const{render:e,staticRenderFns:r}=qs(t,{outputSourceRange:!1,shouldDecodeNewlines:Ws,shouldDecodeNewlinesForHref:Ys,delimiters:n.delimiters,comments:n.comments},this);n.render=e,n.staticRenderFns=r}}return Js.call(this,e,t)},fr.compile=qs,I(fr,Tn),fr.effect=function(e,t){const n=new Ln(ue,e,L,{sync:!0});t&&(n.update=()=>{t((()=>n.run()))})},e.exports=fr},483678:(e,t)=>
2{function n(e,t){var r={name:e.name,path:e.path,hash:e.hash,query:e.query,params:e.params,fullPath:e.fullPath,meta:e.meta};return t&&(r.from=n(t)),Object.freeze(r)}t.sync=function(e,t,r){var o=(r||{}).moduleName||"route";e.registerModule(o,{namespaced:!0,state:n(t.currentRoute),mutations:{ROUTE_CHANGED:function(t,r){e.state[o]=n(r.to,r.from)}}});var i,a=!1,s=e.watch((function(e){return e[o]}),(function(e){var n=e.fullPath;n!==i&&(null!=i&&(a=!0,t.push(e)),i=n)}),{sync:!0}),c=t.afterEach((function(t,n){a?a=!1:(i=t.fullPath,e.commit(o+"/ROUTE_CHANGED",{to:t,from:n}))}));return function(){null!=c&&c(),null!=s&&s(),e.unregisterModule(o)}}},420629:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Store:()=>p,createLogger:()=>A,createNamespacedHelpers:()=>x,default:()=>N,install:()=>_,mapActions:()=>k,mapGetters:()=>C,mapMutations:()=>S,mapState:()=>w});var r=("undefined"!=typeof window?window:void 0!==n.g?n.g:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function o(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var n,r=(n=function(t){return t.original===e},t.filter(n)[0]);if(r)return r.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(n){i[n]=o(e[n],t)})),i}function i(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function a(e){return null!==e&&"object"==typeof e}var s=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"==typeof n?n():n)||{}},c={namespaced:{configurable:!0}};c.namespaced.get=function(){return!!this._rawModule.namespaced},s.prototype.addChild=function(e,t){this._children[e]=t},s.prototype.removeChild=function(e){delete this._children[e]},s.prototype.getChild=function(e){return this._children[e]},s.prototype.hasChild=function(e){return e in this._children},s.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},s.prototype.forEachChild=function(e){i(this._children,e)},s.prototype.forEachGetter=function(e){this._rawModule.getters&&i(this._rawModule.getters,e)},s.prototype.forEachAction=function(e){this._rawModule.actions&&i(this._rawModule.actions,e)},s.prototype.forEachMutation=function(e){this._rawModule.mutations&&i(this._rawModule.mutations,e)},Object.defineProperties(s.prototype,c);var u,l=function(e){this.register([],e,!1)};function d(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;d(e.concat(r),t.getChild(r),n.modules[r])}}l.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},l.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return e+((t=t.getChild(n)).namespaced?n+"/":"")}),"")},l.prototype.update=function(e){d([],this.root,e)},l.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var o=new s(t,n);0===e.length?this.root=o:this.get(e.slice(0,-1)).addChild(e[e.length-1],o),t.modules&&i(t.modules,(function(t,o){r.register(e.concat(o),t,n)}))},l.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},l.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var p=function(e){var t=this;void 0===e&&(e={}),!u&&"undefined"!=typeof window&&window.Vue&&_(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var o=e.strict;void 0===o&&(o=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new l(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new u,this._makeLocalGettersCache=Object.create(null);var i=this,a=this.dispatch,s=this.commit;this.dispatch=function(e,t){return a.call(i,e,t)},this.commit=function(e,t,n){return s.call(i,e,t,n)},this.strict=o;var c=this._modules.root.state;y(this,c,[],this._modules.root),g(this,c),n.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:u.config.devtools)&&function(e){r&&(e._devtoolHook=r,r.emit("vuex:init",e),r.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){r.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){r.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},f={state:{configurable:!0}};function h(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function m(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;y(e,n,[],e._modules.root,!0),g(e,n,t)}function g(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,a={};i(o,(function(t,n){a[n]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}
2));var s=u.config.silent;u.config.silent=!0,e._vm=new u({data:{$$state:t},computed:a}),u.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),u.nextTick((function(){return r.$destroy()})))}function y(e,t,n,r,o){var i=!n.length,a=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[a],e._modulesNamespaceMap[a]=r),!i&&!o){var s=v(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit((function(){u.set(s,c,r.state)}))}var l=r.context=function(e,t,n){var r=""===t,o={dispatch:r?e.dispatch:function(n,r,o){var i=b(n,r,o),a=i.payload,s=i.options,c=i.type;return s&&s.root||(c=t+c),e.dispatch(c,a)},commit:r?e.commit:function(n,r,o){var i=b(n,r,o),a=i.payload,s=i.options,c=i.type;s&&s.root||(c=t+c),e.commit(c,a,s)}};return Object.defineProperties(o,{getters:{get:r?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(o){if(o.slice(0,r)===t){var i=o.slice(r);Object.defineProperty(n,i,{get:function(){return e.getters[o]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return v(e.state,n)}}}),o}(e,a,n);r.forEachMutation((function(t,n){!function(e,t,n,r){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){n.call(e,r.state,t)}))}(e,a+n,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:a+n,o=t.handler||t;!function(e,t,n,r){(e._actions[t]||(e._actions[t]=[])).push((function(t){var o,i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return(o=i)&&"function"==typeof o.then||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}(e,r,o,l)})),r.forEachGetter((function(t,n){!function(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}(e,a+n,t,l)})),r.forEachChild((function(r,i){y(e,t,n.concat(i),r,o)}))}function v(e,t){return t.reduce((function(e,t){return e[t]}),e)}function b(e,t,n){return a(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function _(e){u&&e===u||function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:n});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[n].concat(e.init):n,t.call(this,e)}}function n(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(u=e)}f.state.get=function(){return this._vm._data.$$state},f.state.set=function(e){},p.prototype.commit=function(e,t,n){var r=this,o=b(e,t,n),i=o.type,a=o.payload,s=(o.options,{type:i,payload:a}),c=this._mutations[i];c&&(this._withCommit((function(){c.forEach((function(e){e(a)}))})),this._subscribers.slice().forEach((function(e){return e(s,r.state)})))},p.prototype.dispatch=function(e,t){var n=this,r=b(e,t),o=r.type,i=r.payload,a={type:o,payload:i},s=this._actions[o];if(s){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(a,n.state)}))}catch(e){}var c=s.length>1?Promise.all(s.map((function(e){return e(i)}))):s[0](i);return new Promise((function(e,t){c.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(a,n.state)}))}catch(e){}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(a,n.state,e)}))}catch(e){}t(e)}))}))}},p.prototype.subscribe=function(e,t){return h(e,this._subscribers,t)},p.prototype.subscribeAction=function(e,t){return h("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},p.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},p.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},p.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),y(this,this.state,e,this._modules.get(e),n.preserveState),g(this,this.state)},p.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=v(t.state,e.slice(0,-1));u.delete(n,e[e.length-1])})),m(this)},p.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},p.prototype.hotUpdate=function(e){this._modules.update(e),m(this,!0)},p.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(p.prototype,f);var w=O((function(e,t){var n={};return E(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=T(this.$store,0,e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"==typeof o?o.call(this,t,n):t[o]},n[r].vuex=!0})),n})),S=O((function(e,t){var n={};return E(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.commit;if(e){var i=T(this.$store,0,e);if(!i)return;r=i.context.commit}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),C=O((function(e,t){var n={};return E(t).forEach((function(t){var r=t.key,o=t.val;o=e+o,n[r]=function(){if(!e||T(this.$store,0,e))return this.$store.getters[o]},n[r].vuex=!0})),n})),k=O((function(e,t){var n={};return E(t).forEach((function(t){var r=t.key,o=t.val;n[r]=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var i=T(this.$store,0,e);if(!i)return;r=i.context.dispatch}return"function"==typeof o?o.apply(this,[r].concat(t)):r.apply(this.$store,[o].concat(t))}})),n})),x=function(e){return{mapState:w.bind(null,e),mapGetters:C.bind(null,e),mapMutations:S.bind(null,e),mapActions:k.bind(null,e)}};function E(e){return function(e){return Array.isArray(e)||a(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}
2})):[]}function O(e){return function(t,n){return"string"!=typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function T(e,t,n){return e._modulesNamespaceMap[n]}function A(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var a=e.actionFilter;void 0===a&&(a=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var c=e.logMutations;void 0===c&&(c=!0);var u=e.logActions;void 0===u&&(u=!0);var l=e.logger;return void 0===l&&(l=console),function(e){var d=o(e.state);void 0!==l&&(c&&e.subscribe((function(e,a){var s=o(a);if(n(e,d,s)){var c=j(),u=i(e),p="mutation "+e.type+c;P(l,p,t),l.log("%c prev state","color: #9E9E9E; font-weight: bold",r(d)),l.log("%c mutation","color: #03A9F4; font-weight: bold",u),l.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),I(l)}d=s})),u&&e.subscribeAction((function(e,n){if(a(e,n)){var r=j(),o=s(e),i="action "+e.type+r;P(l,i,t),l.log("%c action","color: #03A9F4; font-weight: bold",o),I(l)}})))}}function P(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(n){e.log(t)}}function I(e){try{e.groupEnd()}catch(t){e.log("ââ log end ââ")}}function j(){var e=new Date;return" @ "+L(e.getHours(),2)+":"+L(e.getMinutes(),2)+":"+L(e.getSeconds(),2)+"."+L(e.getMilliseconds(),3)}function L(e,t){return"0",n=t-e.toString().length,new Array(n+1).join("0")+e;var n}const N={Store:p,install:_,version:"3.6.2",mapState:w,mapMutations:S,mapGetters:C,mapActions:k,createNamespacedHelpers:x,createLogger:A}},445330:()=>{var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g;function t(e){return e?e.replace(/^\s+|\s+$/g,""):""}function n(e,t){var r=e&&"string"==typeof e.type,o=r?e:t;for(var i in e){var a=e[i];Array.isArray(a)?a.forEach((function(e){n(e,o)})):a&&"object"==typeof a&&n(a,o)}return r&&Object.defineProperty(e,"parent",{configurable:!0,writable:!0,enumerable:!1,value:t||null}),e}parseCss=function(r,o){o=o||{};var i=1,a=1;function s(e){var t=e.match(/\n/g);t&&(i+=t.length);var n=e.lastIndexOf("\n");a=~n?e.length-n:a+e.length}function c(){var e={line:i,column:a};return function(t){return t.position=new u(e),g(),t}}function u(e){this.start=e,this.end={line:i,column:a},this.source=o.source}u.prototype.content=r;var l=[];function d(e){var t=new Error(o.source+":"+i+":"+a+": "+e);if(t.reason=e,t.filename=o.source,t.line=i,t.column=a,t.source=r,!o.silent)throw t;l.push(t)}function p(){return m(/^{\s*/)}function f(){return m(/^}/)}function h(){var e,t,n,o=[];for(g(),y(o);r.length&&"}"!=r.charAt(0)&&(e=O()||(t=void 0,n=void 0,t=c(),(n=b())?(y(),t({type:"rule",selectors:n,declarations:w()})):d("selector missing")));)!1!==e&&(o.push(e),y(o));return o}function m(e){var t=e.exec(r);if(t){var n=t[0];return s(n),r=r.slice(n.length),t}}function g(){m(/^\s*/)}function y(e){var t;for(e=e||[];t=v();)!1!==t&&e.push(t);return e}function v(){var e=c();if("/"==r.charAt(0)&&"*"==r.charAt(1)){for(var t=2;""!=r.charAt(t)&&("*"!=r.charAt(t)||"/"!=r.charAt(t+1));)++t;if(t+=2,""===r.charAt(t-1))return d("End of comment missing");var n=r.slice(2,t-2);return a+=2,s(n),r=r.slice(t),a+=2,e({type:"comment",comment:n})}}function b(){var e=m(/^([^{]+)/);if(e)return t(e[0]).replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").replace(/"(?:\\"|[^"])*"|'(?:\\'|[^'])*'/g,(function(e){return e.replace(/,/g,"â")})).split(/\s*(?![^(]*\)),\s*/).map((function(e){return e.replace(/\u200C/g,",")}))}function _(){var n=c(),r=m(/^(\*?[-#\/\*\\\w]+(\[[0-9a-z_-]+\])?)\s*/);if(r){if(r=t(r[0]),!m(/^:\s*/))return d("property missing ':'");var o=m(/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^\)]*?\)|[^};])+)/),i=n({type:"declaration",property:r.replace(e,""),value:o?t(o[0]).replace(e,""):""});return m(/^[;\s]*/),i}}function w(){var e,t=[];if(!p())return d("missing '{'");for(y(t);e=_();)!1!==e&&(t.push(e),y(t));return f()?t:d("missing '}'")}function S(){for(var e,t=[],n=c();e=m(/^((\d+\.\d+|\.\d+|\d+)%?|[a-z]+)\s*/);)t.push(e[1]),m(/^,\s*/);if(t.length)return n({type:"keyframe",values:t,declarations:w()})}var C=E("import"),k=E("charset"),x=E("namespace");function E(e){var t=new RegExp("^@"+e+"\\s*([^;]+);");return function(){var n=c(),r=m(t);if(r){var o={type:e};return o[e]=r[1].trim(),n(o)}}}function O(){if("@"==r[0])return function(){var e=c();
2if(t=m(/^@([-\w]+)?keyframes\s*/)){var t,n=t[1];if(!(t=m(/^([-\w]+)\s*/)))return d("@keyframes missing name");var r,o=t[1];if(!p())return d("@keyframes missing '{'");for(var i=y();r=S();)i.push(r),i=i.concat(y());return f()?e({type:"keyframes",name:o,vendor:n,keyframes:i}):d("@keyframes missing '}'")}}()||function(){var e=c(),n=m(/^@media *([^{]+)/);if(n){var r=t(n[1]);if(!p())return d("@media missing '{'");var o=y().concat(h());return f()?e({type:"media",media:r,rules:o}):d("@media missing '}'")}}()||function(){var e=c(),n=m(/^@custom-media\s+(--[^\s]+)\s*([^{;]+);/);if(n)return e({type:"custom-media",name:t(n[1]),media:t(n[2])})}()||function(){var e=c(),n=m(/^@supports *([^{]+)/);if(n){var r=t(n[1]);if(!p())return d("@supports missing '{'");var o=y().concat(h());return f()?e({type:"supports",supports:r,rules:o}):d("@supports missing '}'")}}()||C()||k()||x()||function(){var e=c(),n=m(/^@([-\w]+)?document *([^{]+)/);if(n){var r=t(n[1]),o=t(n[2]);if(!p())return d("@document missing '{'");var i=y().concat(h());return f()?e({type:"document",document:o,vendor:r,rules:i}):d("@document missing '}'")}}()||function(){var e=c();if(m(/^@page */)){var t=b()||[];if(!p())return d("@page missing '{'");for(var n,r=y();n=_();)r.push(n),r=r.concat(y());return f()?e({type:"page",selectors:t,declarations:r}):d("@page missing '}'")}}()||function(){var e=c();if(m(/^@host\s*/)){if(!p())return d("@host missing '{'");var t=y().concat(h());return f()?e({type:"host",rules:t}):d("@host missing '}'")}}()||function(){var e=c();if(m(/^@font-face\s*/)){if(!p())return d("@font-face missing '{'");for(var t,n=y();t=_();)n.push(t),n=n.concat(y());return f()?e({type:"font-face",declarations:n}):d("@font-face missing '}'")}}()}return n({type:"stylesheet",stylesheet:{rules:h(),parsingErrors:l}})}},398213:(e,t,n)=>{n(619755)(document).ready((function(){if(!document.getElementById("flying-focus")){var e=document.createElement("flying-focus");e.id="flying-focus",document.body.appendChild(e),e.style.transitionDuration=e.style.WebkitTransitionDuration="0.1s";var t=0,n=null,r=!0,o=0;document.documentElement.addEventListener("keydown",(function(e){var t=e.which;(9===t||t>36&&t<41)&&(o=s())}),!1),document.documentElement.addEventListener("focus",(function(i){var c=i.target;if("flying-focus"!==c.id){var u,l,d,p,f,h,m,g,y=(u=c.getBoundingClientRect(),l=document.documentElement,d=document.defaultView,p=document.body,f=l.clientTop||p.clientTop||0,h=l.clientLeft||p.clientLeft||0,m=d.pageYOffset||l.scrollTop||p.scrollTop,g=d.pageXOffset||l.scrollLeft||p.scrollLeft,{top:u.top+m-f,left:u.left+g-h});e.style.left=y.left+"px",e.style.top=y.top+"px",e.style.width=c.offsetWidth+"px",e.style.height=c.offsetHeight+"px",r?r=!1:s()-o>42||(a(),c.classList.add("flying-focus_target"),e.classList.add("flying-focus_visible"),n=c,t=setTimeout(a,100))}}),!0),document.documentElement.addEventListener("blur",(function(){a()}),!0);var i=document.createElement("style");i.textContent="#flying-focus {\tposition: absolute;\tmargin: 0;\tbackground: transparent;\t-webkit-transition-property: left, top, width, height, opacity;\ttransition-property: left, top, width, height, opacity;\t-webkit-transition-timing-function: cubic-bezier(0, 0.2, 0, 1);\ttransition-timing-function: cubic-bezier(0, 0.2, 0, 1);\tvisibility: hidden;\tpointer-events: none;\tbox-shadow: 0 0 2px 3px #78aeda, 0 0 2px #78aeda inset; border-radius: 2px;}#flying-focus.flying-focus_visible {\tvisibility: visible;\tz-index: 9999;}.flying-focus_target {\toutline: none !important; /* Doesn't work in Firefox :( */}/* http://stackoverflow.com/questions/71074/how-to-remove-firefoxs-dotted-outline-on-buttons-as-well-as-links/199319 */.flying-focus_target::-moz-focus-inner {\tborder: 0 !important;}/* Replace it with @supports rule when browsers catch up */@media screen and (-webkit-min-device-pixel-ratio: 0) {\t#flying-focus {\t\tbox-shadow: none;\t\toutline: 5px auto -webkit-focus-ring-color;\t\toutline-offset: -3px;\t}}@media print {\t#flying-focus {\t\tdisplay: none;\t}}",document.body.appendChild(i)}function a(){t&&(clearTimeout(t),t=0,e.classList.remove("flying-focus_visible"),n.classList.remove("flying-focus_target"),n=null)}function s(){return(new Date).valueOf()}}))},706264:function(e,t){!function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[a]={exports:{}};t[a][0].call(l.exports,(function(e){return o(t[a][1][e]||e)}),l,l.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(e){function t(e,t){for(var n=0,r=e.length-1;r>=0;r--){var o=e[r];"."===o?e.splice(r,1):".."===o?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return r.exec(e).slice(1)};function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}n.resolve=function(){for(var n="",r=!1,o=arguments.length-1;o>=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(n=a+"/"+n,r="/"===a.charAt(0))}return(r?"/":"")+(n=t(i(n.split("/"),(function(e){return!!e})),!r).join("/"))||"."},n.normalize=function(e){var r=n.isAbsolute(e),o="/"===a(e,-1);return(e=t(i(e.split("/"),(function(e){return!!e})),!r).join("/"))||r||(e="."),e&&o&&(e+="/"),(r?"/":"")+e},n.isAbsolute=function(e){return"/"===e.charAt(0)},n.join=function(){var e=Array.prototype.slice.call(arguments,0);return n.normalize(i(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},n.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=n.resolve(e).substr(1),t=n.resolve(t).substr(1);for(var o=r(e.split("/")),i=r(t.split("/")),a=Math.min(o.length,i.length),s=a,c=0;c<a;c++)if(o[c]!==i[c]){s=c;break}var u=[];for(c=s;c<o.length;c++)u.push("..");return(u=u.concat(i.slice(s))).join("/")}
2,n.sep="/",n.delimiter=":",n.dirname=function(e){var t=o(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},n.basename=function(e,t){var n=o(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},n.extname=function(e){return o(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,e("_process"))},{_process:2}],2:[function(e,t,n){var r,o,i=t.exports={};!function(){try{r=setTimeout}catch(e){r=function(){throw new Error("setTimeout is not defined")}}try{o=clearTimeout}catch(e){o=function(){throw new Error("clearTimeout is not defined")}}}();var a,s=[],c=!1,u=-1;function l(){c&&a&&(c=!1,a.length?s=a.concat(s):u=-1,s.length&&d())}function d(){if(!c){var e=r(l);c=!0;for(var t=s.length;t;){for(a=s,s=[];++u<t;)a&&a[u].run();u=-1,t=s.length}a=null,c=!1,o(e)}}function p(e,t){this.fun=e,this.array=t}function f(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new p(e,t)),1!==s.length||c||r(d,0)},p.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=f,i.addListener=f,i.once=f,i.off=f,i.removeListener=f,i.removeAllListeners=f,i.emit=f,i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},{}],3:[function(e,t,n){(function(){var n,r,o;r=e("./scorer"),n=function(e){return e.candidate},o=function(e,t){return t.score-e.score},t.exports=function(e,t,i,a){var s,c,u,l,d,p,f,h,m;if(c=(m=null!=a?a:{}).key,u=m.maxResults,t){for(d=[],f=0,h=e.length;f<h;f++)s=e[f],(p=null!=c?s[c]:s)&&(l=r.score(p,t,i),i||(l=r.basenameScore(p,t,l)),l>0&&d.push({candidate:s,score:l}));d.sort(o),e=d.map(n)}return null!=u&&(e=e.slice(0,u)),e}}).call(this)},{"./scorer":6}],4:[function(e,t,n){(function(){var n,r,o,i,a;a=e("./scorer"),o=e("./filter"),i=e("./matcher"),n=e("path").sep,r=/\ /g,t.exports={filter:function(e,t,i){var a;return t&&(a=-1!==t.indexOf(n),t=t.replace(r,"")),o(e,t,a,i)},score:function(e,t){var o,i;return e&&t?e===t?2:(o=-1!==t.indexOf(n),t=t.replace(r,""),i=a.score(e,t),o||(i=a.basenameScore(e,t,i)),i):0},match:function(e,t){var o,a,s,c,u,l;if(!e)return[];if(!t)return[];if(e===t)return function(){l=[];for(var t=0,n=e.length;0<=n?t<n:t>n;0<=n?t++:t--)l.push(t);return l}.apply(this);if(c=-1!==t.indexOf(n),t=t.replace(r,""),s=i.match(e,t),!c)for(o=i.basenameMatch(e,t),s=s.concat(o).sort((function(e,t){return e-t})),u=null,a=0;a<s.length;)a&&u===s[a]?s.splice(a,1):(u=s[a],a++);return s}}}).call(this)},{"./filter":3,"./matcher":5,"./scorer":6,path:1}],5:[function(e,t,n){(function(){var t;t=e("path").sep,n.basenameMatch=function(e,r){var o,i,a;for(i=e.length-1;e[i]===t;)i--;for(a=i,o=null;i>=0;)e[i]===t?null==o&&(o=e.substring(i+1,a+1)):0===i&&(a<e.length-1?null==o&&(o=e.substring(0,a+1)):null==o&&(o=e)),i--;return n.match(o,r,e.length-o.length)},n.match=function(e,t,n){var r,o,i,a,s,c,u,l,d,p;if(null==n&&(n=0),e===t)return function(){p=[];for(var t=n,r=n+e.length;n<=r?t<r:t>r;n<=r?t++:t--)p.push(t);return p}.apply(this);for(u=t.length,l=e.length,o=0,i=0,s=[];o<u;){if(r=t[o++],a=e.indexOf(r.toLowerCase()),d=e.indexOf(r.toUpperCase()),-1===(c=Math.min(a,d))&&(c=Math.max(a,d)),-1===(i=c))return[];s.push(n+i),n+=i+1,e=e.substring(i+1,l)}return s}}).call(this)},{path:1}],6:[function(e,t,n){(function(){var t,r;t=e("path").sep,n.basenameScore=function(e,r,o){var i,a,s,c,u;for(a=e.length-1;e[a]===t;)a--;for(u=0,s=a,i=null;a>=0;)e[a]===t?(u++,null==i&&(i=e.substring(a+1,s+1))):0===a&&(s<e.length-1?null==i&&(i=e.substring(0,s+1)):null==i&&(i=e)),a--;return i===e?o*=2:i&&(o+=n.score(i,r)),c=u+1,o*(.01*Math.max(1,10-c))},n.score=function(e,n){var o,i,a,s,c,u,l,d,p,f,h,m;if(e===n)return 1;if(r(e,n))return 1;for(f=0,l=n.length,p=e.length,a=0,s=0;a<l;){if(o=n[a++],c=e.indexOf(o.toLowerCase()),h=e.indexOf(o.toUpperCase()),-1===(u=Math.min(c,h))&&(u=Math.max(c,h)),-1===(s=u))return 0;i=.1,e[s]===o&&(i+=.1),0===s||e[s-1]===t?i+=.8:"-"!==(m=e[s-1])&&"_"!==m&&" "!==m||(i+=.7),e=e.substring(s+1,p),f+=i}return((d=f/l)*(l/p)+d)/2},r=function(e,n){if(e[e.length-n.length-1]===t)return e.lastIndexOf(n)===e.length-n.length}}).call(this)},{path:1}],7:[function(e,t,n){var r;r=function(){return e("fuzzaldrin")},Function("return this")().fuzzaldrin=r()},{fuzzaldrin:4}]},{},[7])},704300:()=>{window.hslToRgb=function(e,t,n){var r,o,i;if(0==t)r=o=i=n;else{function a(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=a(c,s,e+1/3),o=a(c,s,e),i=a(c,s,e-1/3)}return[255*r,255*o,255*i]},window.rgbToHsl=function(e,t,n){e/=255,t/=255,n/=255;
2var r,o,i=Math.max(e,t,n),a=Math.min(e,t,n),s=(i+a)/2;if(i==a)r=o=0;else{var c=i-a;switch(o=s>.5?c/(2-i-a):c/(i+a),i){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return[r,o,s]}},464106:function(){(function(){"use strict";var e;e=function(){function e(e){var t,n;e&&(this.awayTimeout=parseInt(e.awayTimeout,10),this.onAway=e.onAway,this.onAwayBack=e.onAwayBack,this.onVisible=e.onVisible,this.onHidden=e.onHidden),n=this,t=function(){return n.onActive()},window.addEventListener("click",t,{passive:!0}),window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("mouseenter",t,{passive:!0}),window.addEventListener("keydown",t,{passive:!0}),window.addEventListener("scroll",t,{passive:!0}),window.addEventListener("mousewheel",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("touchstart",t,{passive:!0})}return e.isAway=!1,e.awayTimeout=3e3,e.awayTimestamp=0,e.awayTimer=null,e.onAway=null,e.onAwayBack=null,e.onVisible=null,e.onHidden=null,e.prototype.onActive=function(){return this.awayTimestamp=(new Date).getTime()+this.awayTimeout,this.isAway&&(this.onAwayBack&&this.onAwayBack(),this.start()),this.isAway=!1,!0},e.prototype.start=function(){var e;return this.listener||(this.listener=function(){return e.handleVisibilityChange()},document.addEventListener("visibilitychange",this.listener,!1),document.addEventListener("webkitvisibilitychange",this.listener,!1),document.addEventListener("msvisibilitychange",this.listener,!1)),this.awayTimestamp=(new Date).getTime()+this.awayTimeout,null!==this.awayTimer&&clearTimeout(this.awayTimer),e=this,this.awayTimer=setTimeout((function(){return e.checkAway()}),this.awayTimeout+100),this},e.prototype.stop=function(){return null!==this.awayTimer&&clearTimeout(this.awayTimer),null!==this.listener&&(document.removeEventListener("visibilitychange",this.listener),document.removeEventListener("webkitvisibilitychange",this.listener),document.removeEventListener("msvisibilitychange",this.listener),this.listener=null),this},e.prototype.setAwayTimeout=function(e){return this.awayTimeout=parseInt(e,10),this},e.prototype.checkAway=function(){var e,t;return(t=(new Date).getTime())<this.awayTimestamp?(this.isAway=!1,e=this,void(this.awayTimer=setTimeout((function(){return e.checkAway()}),this.awayTimestamp-t+100))):(null!==this.awayTimer&&clearTimeout(this.awayTimer),this.isAway=!0,this.onAway?this.onAway():void 0)},e.prototype.handleVisibilityChange=function(){if(document.hidden||document.msHidden||document.webkitHidden){if(this.onHidden)return this.onHidden()}else if(this.onVisible)return this.onVisible()},e}(),window.Idle=e}).call(this)},901834:(e,t,n)=>{!function(e){e.attrFn=e.attrFn||{};var t=navigator.userAgent.toLowerCase(),n=t.indexOf("chrome")>-1&&(t.indexOf("windows")>-1||t.indexOf("macintosh")>-1||t.indexOf("linux")>-1)&&t.indexOf("mobile")<0&&t.indexOf("nexus")<0,r={tap_pixel_range:5,swipe_h_threshold:50,swipe_v_threshold:50,taphold_threshold:750,doubletap_int:500,touch_capable:"ontouchstart"in document.documentElement&&!n,orientation_support:"orientation"in window&&"onorientationchange"in window,startevent:"ontouchstart"in document.documentElement&&!n?"touchstart":"mousedown",endevent:"ontouchstart"in document.documentElement&&!n?"touchend":"mouseup",moveevent:"ontouchstart"in document.documentElement&&!n?"touchmove":"mousemove",tapevent:"ontouchstart"in document.documentElement&&!n?"tap":"click",
2scrollevent:"ontouchstart"in document.documentElement&&!n?"touchmove":"scroll",hold_timer:null,tap_timer:null};e.isTouchCapable=function(){return r.touch_capable},e.getStartEvent=function(){return r.startevent},e.getEndEvent=function(){return r.endevent},e.getMoveEvent=function(){return r.moveevent},e.getTapEvent=function(){return r.tapevent},e.getScrollEvent=function(){return r.scrollevent},e.each(["tapstart","tapend","tap","singletap","doubletap","taphold","swipe","swipeup","swiperight","swipedown","swipeleft","swipeend","scrollstart","scrollend","orientationchange"],(function(t,n){e.fn[n]=function(e){return e?this.on(n,e):this.trigger(n)},e.attrFn[n]=!0})),e.event.special.tapstart={setup:function(){var t=this,n=e(t);n.on(r.startevent,(function(e){if(n.data("callee",arguments.callee),e.which&&1!==e.which)return!1;var o=e.originalEvent,i={position:{x:r.touch_capable?o.touches[0].screenX:e.screenX,y:r.touch_capable?o.touches[0].screenY:e.screenY},offset:{x:r.touch_capable?o.touches[0].pageX-o.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?o.touches[0].pageY-o.touches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};return v(t,"tapstart",e,i),!0}))},remove:function(){e(this).off(r.startevent,e(this).data.callee)}},e.event.special.tapmove={setup:function(){var t=this,n=e(t);n.on(r.moveevent,(function(e){n.data("callee",arguments.callee);var o=e.originalEvent,i={position:{x:r.touch_capable?o.touches[0].screenX:e.screenX,y:r.touch_capable?o.touches[0].screenY:e.screenY},offset:{x:r.touch_capable?o.touches[0].pageX-o.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?o.touches[0].pageY-o.touches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};return v(t,"tapmove",e,i),!0}))},remove:function(){e(this).off(r.moveevent,e(this).data.callee)}},e.event.special.tapend={setup:function(){var t=this,n=e(t);n.on(r.endevent,(function(e){n.data("callee",arguments.callee);var o=e.originalEvent,i={position:{x:r.touch_capable?o.changedTouches[0].screenX:e.screenX,y:r.touch_capable?o.changedTouches[0].screenY:e.screenY},offset:{x:r.touch_capable?o.changedTouches[0].pageX-o.changedTouches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?o.changedTouches[0].pageY-o.changedTouches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};return v(t,"tapend",e,i),!0}))},remove:function(){e(this).off(r.endevent,e(this).data.callee)}},e.event.special.taphold={setup:function(){var t,n=this,o=e(n),i={x:0,y:0};o.on(r.startevent,(function(e){if(e.which&&1!==e.which)return!1;o.data("tapheld",!1),t=e.target;var a=e.originalEvent,s=(new Date).getTime(),c={x:r.touch_capable?a.touches[0].screenX:e.screenX,y:r.touch_capable?a.touches[0].screenY:e.screenY},u={x:r.touch_capable?a.touches[0].pageX-a.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?a.touches[0].pageY-a.touches[0].target.offsetTop:e.offsetY};return i.x=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX,i.y=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY,r.hold_timer=window.setTimeout((function(){var l=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX,d=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY;if(e.target==t&&i.x==l&&i.y==d){o.data("tapheld",!0);var p=(new Date).getTime(),f={x:r.touch_capable?a.touches[0].screenX:e.screenX,y:r.touch_capable?a.touches[0].screenY:e.screenY},h={x:r.touch_capable?a.touches[0].pageX-a.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?a.touches[0].pageY-a.touches[0].target.offsetTop:e.offsetY};duration=p-s;var m={startTime:s,endTime:p,startPosition:c,startOffset:u,endPosition:f,endOffset:h,duration,target:e.target};o.data("callee1",arguments.callee),v(n,"taphold",e,m)}}),r.taphold_threshold),!0})).on(r.endevent,(function(){o.data("callee2",arguments.callee),o.data("tapheld",!1),window.clearTimeout(r.hold_timer)}))},remove:function(){e(this).off(r.startevent,e(this).data.callee1).off(r.endevent,e(this).data.callee2)}},e.event.special.doubletap={setup:function(){var t,n,o,i,a=this,s=e(a);s.on(r.startevent,(function(e){return!(e.which&&1!==e.which||(s.data("doubletapped",!1),t=e.target,s.data("callee1",arguments.callee),i=e.originalEvent,o={position:{x:r.touch_capable?i.touches[0].screenX:e.screenX,y:r.touch_capable?i.touches[0].screenY:e.screenY},offset:{x:r.touch_capable?i.touches[0].pageX-i.touches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?i.touches[0].pageY-i.touches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target},0))}
2)).on(r.endevent,(function(e){var i=(new Date).getTime(),c=s.data("lastTouch")||i+1,u=i-c;if(window.clearTimeout(n),s.data("callee2",arguments.callee),u<r.doubletap_int&&e.target==t&&u>100){s.data("doubletapped",!0),window.clearTimeout(r.tap_timer);var l={position:{x:r.touch_capable?e.originalEvent.changedTouches[0].screenX:e.screenX,y:r.touch_capable?e.originalEvent.changedTouches[0].screenY:e.screenY},offset:{x:r.touch_capable?e.originalEvent.changedTouches[0].pageX-e.originalEvent.changedTouches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?e.originalEvent.changedTouches[0].pageY-e.originalEvent.changedTouches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target},d={firstTap:o,secondTap:l,interval:l.time-o.time};v(a,"doubletap",e,d)}else s.data("lastTouch",i),n=window.setTimeout((function(e){window.clearTimeout(n)}),r.doubletap_int,[e]);s.data("lastTouch",i)}))},remove:function(){e(this).off(r.startevent,e(this).data.callee1).off(r.endevent,e(this).data.callee2)}},e.event.special.singletap={setup:function(){var t=this,n=e(t),o=null,i=null,a={x:0,y:0};n.on(r.startevent,(function(e){return!(e.which&&1!==e.which||(i=(new Date).getTime(),o=e.target,n.data("callee1",arguments.callee),a.x=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX,a.y=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY,0))})).on(r.endevent,(function(e){n.data("callee2",arguments.callee),e.target==o&&(end_pos_x=e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].pageX:e.pageX,end_pos_y=e.originalEvent.changedTouches?e.originalEvent.changedTouches[0].pageY:e.pageY,r.tap_timer=window.setTimeout((function(){if(!n.data("doubletapped")&&!n.data("tapheld")&&a.x==end_pos_x&&a.y==end_pos_y){var o=e.originalEvent,s={position:{x:r.touch_capable?o.changedTouches[0].screenX:e.screenX,y:r.touch_capable?o.changedTouches[0].screenY:e.screenY},offset:{x:r.touch_capable?o.changedTouches[0].pageX-o.changedTouches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?o.changedTouches[0].pageY-o.changedTouches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};s.time-i<r.taphold_threshold&&v(t,"singletap",e,s)}}),r.doubletap_int))}))},remove:function(){e(this).off(r.startevent,e(this).data.callee1).off(r.endevent,e(this).data.callee2)}},e.event.special.tap={setup:function(){var t,n=this,o=e(n),i=!1,a=null,s={x:0,y:0};o.on(r.startevent,(function(e){return o.data("callee1",arguments.callee),!(e.which&&1!==e.which||(i=!0,s.x=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageX:e.pageX,s.y=e.originalEvent.targetTouches?e.originalEvent.targetTouches[0].pageY:e.pageY,t=(new Date).getTime(),a=e.target,0))})).on(r.endevent,(function(e){o.data("callee2",arguments.callee);var c=e.originalEvent.targetTouches?e.originalEvent.changedTouches[0].pageX:e.pageX,u=e.originalEvent.targetTouches?e.originalEvent.changedTouches[0].pageY:e.pageY;if(diff_x=s.x-c,diff_y=s.y-u,a==e.target&&i&&(new Date).getTime()-t<r.taphold_threshold&&(s.x==c&&s.y==u||diff_x>=-r.tap_pixel_range&&diff_x<=r.tap_pixel_range&&diff_y>=-r.tap_pixel_range&&diff_y<=r.tap_pixel_range)){var l=e.originalEvent,d={position:{x:r.touch_capable?l.changedTouches[0].screenX:e.screenX,y:r.touch_capable?l.changedTouches[0].screenY:e.screenY},offset:{x:r.touch_capable?l.changedTouches[0].pageX-l.changedTouches[0].target.offsetLeft:e.offsetX,y:r.touch_capable?l.changedTouches[0].pageY-l.changedTouches[0].target.offsetTop:e.offsetY},time:(new Date).getTime(),target:e.target};v(n,"tap",e,d)}}))},remove:function(){e(this).off(r.startevent,e(this).data.callee1).off(r.endevent,e(this).data.callee2)}},e.event.special.swipe={setup:function(){var t,n=e(this),o=!1,i=!1,a={x:0,y:0},s={x:0,y:0};n.on(r.startevent,(function(i){(n=e(i.target)).data("callee1",arguments.callee),a.x=i.originalEvent.targetTouches?i.originalEvent.targetTouches[0].pageX:i.pageX,a.y=i.originalEvent.targetTouches?i.originalEvent.targetTouches[0].pageY:i.pageY,s.x=a.x,s.y=a.y,o=!0;var c=i.originalEvent;t={position:{x:r.touch_capable?c.touches[0].screenX:i.screenX,y:r.touch_capable?c.touches[0].screenY:i.screenY},offset:{x:r.touch_capable?c.touches[0].pageX-c.touches[0].target.offsetLeft:i.offsetX,y:r.touch_capable?c.touches[0].pageY-c.touches[0].target.offsetTop:i.offsetY},time:(new Date).getTime(),target:i.target};for(var u=new Date;new Date-u<100;);})),n.on(r.moveevent,(function(c){var u;(n=e(c.target)).data("callee2",arguments.callee),s.x=c.originalEvent.targetTouches?c.originalEvent.targetTouches[0].pageX:c.pageX,s.y=c.originalEvent.targetTouches?c.originalEvent.targetTouches[0].pageY:c.pageY,window.clearTimeout(r.hold_timer);var l=n.data("xthreshold"),d=n.data("ythreshold"),p=void 0!==l&&!1!==l&&parseInt(l)?parseInt(l):r.swipe_h_threshold,f=void 0!==d&&!1!==d&&parseInt(d)?parseInt(d):r.swipe_v_threshold;if(a.y>s.y&&a.y-s.y>f&&(u="swipeup"),a.x<s.x&&s.x-a.x>p&&(u="swiperight"),a.y<s.y&&s.y-a.y>f&&(u="swipedown"),a.x>s.x&&a.x-s.x>p&&(u="swipeleft"),null!=u&&o){a.x=0,a.y=0,s.x=0,s.y=0,o=!1;var h=c.originalEvent;endEvnt={position:{x:r.touch_capable?h.touches[0].screenX:c.screenX,y:r.touch_capable?h.touches[0].screenY:c.screenY},offset:{x:r.touch_capable?h.touches[0].pageX-h.touches[0].target.offsetLeft:c.offsetX,y:r.touch_capable?h.touches[0].pageY-h.touches[0].target.offsetTop:c.offsetY},time:(new Date).getTime(),target:c.target};var m=Math.abs(t.position.x-endEvnt.position.x),g=Math.abs(t.position.y-endEvnt.position.y),y={startEvnt:t,endEvnt,direction:u.replace("swipe",""),xAmount:m,yAmount:g,duration:endEvnt.time-t.time};i=!0,n.trigger("swipe",y).trigger(u,y)}})),n.on(r.endevent,(function(a){var s="";if((n=e(a.target)).data("callee3",arguments.callee),i){var c=n.data("xthreshold"),u=n.data("ythreshold"),l=void 0!==c&&!1!==c&&parseInt(c)?parseInt(c):r.swipe_h_threshold,d=void 0!==u&&!1!==u&&parseInt(u)?parseInt(u):r.swipe_v_threshold,p=a.originalEvent;endEvnt={position:{x:r.touch_capable?p.changedTouches[0].screenX:a.screenX,y:r.touch_capable?p.changedTouches[0].screenY:a.screenY},offset:{x:r.touch_capable?p.changedTouches[0].pageX-p.changedTouches[0].target.offsetLeft:a.offsetX,y:r.touch_capable?p.changedTouches[0].pageY-p.changedTouches[0].target.offsetTop:a.offsetY},time:(new Date).getTime(),target:a.target},t.position.y>endEvnt.position.y&&t.position.y-endEvnt.position.y>d&&(s="swipeup"),t.position.x<endEvnt.position.x&&endEvnt.position.x-t.position.x>l&&(s="swiperight"),t.position.y<endEvnt.position.y&&endEvnt.position.y-t.position.y>d&&(s="swipedown"),t.position.x>endEvnt.position.x&&t.position.x-endEvnt.position.x>l&&(s="swipeleft");var f=Math.abs(t.position.x-endEvnt.position.x),h=Math.abs(t.position.y-endEvnt.position.y),m={startEvnt:t,endEvnt,direction:s.replace("swipe",""),xAmount:f,yAmount:h,duration:endEvnt.time-t.time};n.trigger("swipeend",m)}o=!1,i=!1}))},remove:function(){e(this).off(r.startevent,e(this).data.callee1).off(r.moveevent,e(this).data.callee2).off(r.endevent,e(this).data.callee3)}},e.event.special.scrollstart={setup:function(){var t,n,o=this,i=e(o
2);function a(e,n){v(o,(t=n)?"scrollstart":"scrollend",e)}i.on(r.scrollevent,(function(e){i.data("callee",arguments.callee),t||a(e,!0),clearTimeout(n),n=setTimeout((function(){a(e,!1)}),50)}))},remove:function(){e(this).off(r.scrollevent,e(this).data.callee)}};var o,i,a,s,c=e(window),u={0:!0,180:!0};if(r.orientation_support){var l=window.innerWidth||e(window).width(),d=window.innerHeight||e(window).height();a=l>d&&l-d>50,s=u[window.orientation],(a&&s||!a&&!s)&&(u={"-90":!0,90:!0})}function p(){var e=o();e!==i&&(i=e,c.trigger("orientationchange"))}e.event.special.orientationchange={setup:function(){return!r.orientation_support&&(i=o(),c.on("throttledresize",p),!0)},teardown:function(){return!r.orientation_support&&(c.off("throttledresize",p),!0)},add:function(e){var t=e.handler;e.handler=function(e){return e.orientation=o(),t.apply(this,arguments)}}},e.event.special.orientationchange.orientation=o=function(){var e=document.documentElement;return(r.orientation_support?u[window.orientation]:e&&e.clientWidth/e.clientHeight<1.1)?"portrait":"landscape"},e.event.special.throttledresize={setup:function(){e(this).on("resize",g)},teardown:function(){e(this).off("resize",g)}};var f,h,m,g=function(){h=(new Date).getTime(),(m=h-y)>=250?(y=h,e(this).trigger("throttledresize")):(f&&window.clearTimeout(f),f=window.setTimeout(p,250-m))},y=0;function v(t,n,r,o){var i=r.type;r.type=n,e.event.dispatch.call(t,r,o),r.type=i}e.each({scrollend:"scrollstart",swipeup:"swipe",swiperight:"swipe",swipedown:"swipe",swipeleft:"swipe",swipeend:"swipe"},(function(t,n,r){e.event.special[t]={setup:function(){e(this).on(n,e.noop)}}}))}(n(619755))},413037:(e,t,n)=>{var r,o=n(619755);"function"!=typeof Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),function(e){var t={init:function(t){return this.options=e.extend({},e.noty.defaults,t),this.options.layout=this.options.custom?e.noty.layouts.inline:e.noty.layouts[this.options.layout],e.noty.themes[this.options.theme]?this.options.theme=e.noty.themes[this.options.theme]:t.themeClassName=this.options.theme,delete t.layout,delete t.theme,this.options=e.extend({},this.options,this.options.layout.options),this.options.id="noty_"+(new Date).getTime()*Math.floor(1e6*Math.random()),this.options=e.extend({},this.options,t),this._build(),this},_build:function(){var t=e('<div class="noty_bar noty_type_'+this.options.type+'"></div>').attr("id",this.options.id);if(t.append(this.options.template).find(".noty_text").html(this.options.text),this.$bar=null!==this.options.layout.parent.object?e(this.options.layout.parent.object).css(this.options.layout.parent.css).append(t):t,this.options.themeClassName&&this.$bar.addClass(this.options.themeClassName).addClass("noty_container_type_"+this.options.type),this.options.buttons){this.options.closeWith=[],this.options.timeout=!1;var n=e("<div/>").addClass("noty_buttons");null!==this.options.layout.parent.object?this.$bar.find(".noty_bar").append(n):this.$bar.append(n);var r=this;e.each(this.options.buttons,(function(t,n){var o=e("<button/>").addClass(n.addClass?n.addClass:"gray").html(n.text).attr("id",n.id?n.id:"button-"+t).appendTo(r.$bar.find(".noty_buttons")).bind("click",(function(){e.isFunction(n.onClick)&&n.onClick.call(o,r)}))}))}this.$message=this.$bar.find(".noty_message"),this.$closeButton=this.$bar.find(".noty_close"),this.$buttons=this.$bar.find(".noty_buttons"),e.noty.store[this.options.id]=this},show:function(){var t=this;return t.options.custom?t.options.custom.find(t.options.layout.container.selector).append(t.$bar):e(t.options.layout.container.selector).append(t.$bar),t.options.theme&&t.options.theme.style&&t.options.theme.style.apply(t),"function"===e.type(t.options.layout.css)?this.options.layout.css.apply(t.$bar):t.$bar.css(this.options.layout.css||{}),t.$bar.addClass(t.options.layout.addClass),t.options.layout.container.style.apply(e(t.options.layout.container.selector)),t.showing=!0,t.options.theme&&t.options.theme.style&&t.options.theme.callback.onShow.apply(this),e.inArray("click",t.options.closeWith)>-1&&t.$bar.css("cursor","pointer").one("click",(function(e){t.stopPropagation(e),t.options.callback.onCloseClick&&t.options.callback.onCloseClick.apply(t),t.close()})),e.inArray("hover",t.options.closeWith)>-1&&t.$bar.one("mouseenter",(function(){t.close()})),e.inArray("button",t.options.closeWith)>-1&&t.$closeButton.one("click",(function(e){t.stopPropagation(e),t.close()})),-1==e.inArray("button",t.options.closeWith)&&t.$closeButton.remove(),t.options.callback.onShow&&t.options.callback.onShow.apply(t),t.$bar.animate(t.options.animation.open,t.options.animation.speed,t.options.animation.easing,(function(){t.options.callback.afterShow&&t.options.callback.afterShow.apply(t),t.showing=!1,t.shown=!0})),t.options.timeout&&t.$bar.delay(t.options.timeout).promise().done((function(){t.close()})),this},close:function(){if(!(this.closed||this.$bar&&this.$bar.hasClass("i-am-closing-now"))){var t=this;if(this.showing)return void t.$bar.queue((function(){t.close.apply(t)}));if(!this.shown&&!this.showing){var n=[];return e.each(e.noty.queue,(function(e,r){r.options.id!=t.options.id&&n.push(r)})),void(e.noty.queue=n)}t.$bar.addClass("i-am-closing-now"),t.options.callback.onClose&&t.options.callback.onClose.apply(t),t.$bar.clearQueue().stop().animate(t.options.animation.close,t.options.animation.speed,t.options.animation.easing,(function(){t.options.callback.afterClose&&t.options.callback.afterClose.apply(t)})).promise().done((function(){t.options.modal&&(e.notyRenderer.setModalCount(-1),0==e.notyRenderer.getModalCount()&&e(".noty_modal").fadeOut("fast",(function(){e(this).remove()}))),e.notyRenderer.setLayoutCountFor(t,-1),0==e.notyRenderer.getLayoutCountFor(t)&&e(t.options.layout.container.selector).remove(),void 0!==t.$bar&&null!==t.$bar&&(t.$bar.remove(),t.$bar=null,t.closed=!0),delete e.noty.store[t.options.id],t.options.theme.callback&&t.options.theme.callback.onClose&&t.options.theme.callback.onClose.apply(t),t.options.dismissQueue||(e.noty.ontap=!0,e.notyRenderer.render()),t.options.maxVisible>0&&t.options.dismissQueue&&e.notyRenderer.render()}))}},setText:function(e){return this.closed||(this.options.text=e,this.$bar.find(".noty_text").html(e)),this},setType:function(e){return this.closed||(this.options.type=e,this.options.theme.style.apply(this),this.options.theme.callback.onShow.apply(this)),this},setTimeout:function(e){if(!this.closed){var t=this;this.options.timeout=e,t.$bar.delay(t.options.timeout).promise().done((function(){t.close()}))}return this},stopPropagation:function(e){void 0!==(e=e||window.event).stopPropagation?e.stopPropagation():e.cancelBubble=!0},closed:!1,showing:!1,shown:!1};e.notyRenderer={},e.notyRenderer.init=function(n){var r=Object.create(t).init(n);return r.options.killer&&e.noty.closeAll(),r.options.force?e.noty.queue.unshift(r):e.noty.queue.push(r),e.notyRenderer.render(),"object"==e.noty.returns?r:r.options.id},e.notyRenderer.render=function(){var t=e.noty.queue[0];"object"===e.type(t)?t.options.dismissQueue?t.options.maxVisible>0?e(t.options.layout.container.selector+" li").length<t.options.maxVisible&&e.notyRenderer.show(e.noty.queue.shift()):e.notyRenderer.show(e.noty.queue.shift()):e.noty.ontap&&(e.notyRenderer.show(e.noty.queue.shift()),e.noty.ontap=!1):e.noty.ontap=!0},e.notyRenderer.show=function(t){t.options.modal&&(e.notyRenderer.createModalFor(t),e.notyRenderer.setModalCount(1)),t.options.custom?0==t.options.custom.find(t.options.layout.container.selector).length?t.options.custom.append(e(t.options.layout.container.object).addClass("i-am-new")):t.options.custom.find(t.options.layout.container.selector).removeClass("i-am-new"):0==e(t.options.layout.container.selector).length?e("body").append(e(t.options.layout.container.object).addClass("i-am-new")):e(t.options.layout.container.selector).removeClass("i-am-new"),e.notyRenderer.setLayoutCountFor(t,1),t.show()},e.notyRenderer.createModalFor=function(t){if(0==e(".noty_modal").length){var n=e("<div/>
2").addClass("noty_modal").addClass(t.options.theme).data("noty_modal_count",0);t.options.theme.modal&&t.options.theme.modal.css&&n.css(t.options.theme.modal.css),n.prependTo(e("body")).fadeIn("fast")}},e.notyRenderer.getLayoutCountFor=function(t){return e(t.options.layout.container.selector).data("noty_layout_count")||0},e.notyRenderer.setLayoutCountFor=function(t,n){return e(t.options.layout.container.selector).data("noty_layout_count",e.notyRenderer.getLayoutCountFor(t)+n)},e.notyRenderer.getModalCount=function(){return e(".noty_modal").data("noty_modal_count")||0},e.notyRenderer.setModalCount=function(t){return e(".noty_modal").data("noty_modal_count",e.notyRenderer.getModalCount()+t)},e.fn.noty=function(t){return t.custom=e(this),e.notyRenderer.init(t)},e.noty={},e.noty.queue=[],e.noty.ontap=!0,e.noty.layouts={},e.noty.themes={},e.noty.returns="object",e.noty.store={},e.noty.get=function(t){return!!e.noty.store.hasOwnProperty(t)&&e.noty.store[t]},e.noty.close=function(t){return!!e.noty.get(t)&&e.noty.get(t).close()},e.noty.setText=function(t,n){return!!e.noty.get(t)&&e.noty.get(t).setText(n)},e.noty.setType=function(t,n){return!!e.noty.get(t)&&e.noty.get(t).setType(n)},e.noty.clearQueue=function(){e.noty.queue=[]},e.noty.closeAll=function(){e.noty.clearQueue(),e.each(e.noty.store,(function(e,t){t.close()}))};var n=window.alert;e.noty.consumeAlert=function(t){window.alert=function(n){t?t.text=n:t={text:n},e.notyRenderer.init(t)}},e.noty.stopConsumeAlert=function(){window.alert=n},e.noty.defaults={layout:"top",theme:"defaultTheme",type:"alert",text:"",dismissQueue:!0,template:'<div class="noty_message"><span class="noty_text"></span><div class="noty_close"></div></div>',animation:{open:{height:"toggle"},close:{height:"toggle"},easing:"swing",speed:500},timeout:!1,force:!1,modal:!1,maxVisible:5,killer:!1,closeWith:["click"],callback:{onShow:function(){},afterShow:function(){},onClose:function(){},afterClose:function(){},onCloseClick:function(){}},buttons:!1},e(window).resize((function(){e.each(e.noty.layouts,(function(t,n){n.container.style.apply(e(n.container.selector))}))}))}(o),window.noty=function(e){return o.notyRenderer.init(e)},(r=o).noty.layouts.bottom={name:"bottom",options:{},container:{object:'<ul id="noty_bottom_layout_container" />',selector:"ul#noty_bottom_layout_container",style:function(){r(this).css({bottom:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""},function(e){e.noty.layouts.bottomCenter={name:"bottomCenter",options:{},container:{object:'<ul id="noty_bottomCenter_layout_container" />',selector:"ul#noty_bottomCenter_layout_container",style:function(){e(this).css({bottom:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),e(this).css({left:(e(window).width()-e(this).outerWidth(!1))/2+"px"})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(o),function(e){e.noty.layouts.bottomLeft={name:"bottomLeft",options:{},container:{object:'<ul id="noty_bottomLeft_layout_container" />',selector:"ul#noty_bottomLeft_layout_container",style:function(){e(this).css({bottom:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&e(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(o),function(e){e.noty.layouts.bottomRight={name:"bottomRight",options:{},container:{object:'<ul id="noty_bottomRight_layout_container" />',selector:"ul#noty_bottomRight_layout_container",style:function(){e(this).css({bottom:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&e(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(o),function(e){e.noty.layouts.center={name:"center",options:{},container:{object:'<ul id="noty_center_layout_container" />',selector:"ul#noty_center_layout_container",style:function(){e(this).css({position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var t=e(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");
2e("body").append(t),t.find(".i-am-closing-now").remove(),t.find("li").css("display","block");var n=t.height();t.remove(),e(this).hasClass("i-am-new")?e(this).css({left:(e(window).width()-e(this).outerWidth(!1))/2+"px",top:(e(window).height()-n)/2+"px"}):e(this).animate({left:(e(window).width()-e(this).outerWidth(!1))/2+"px",top:(e(window).height()-n)/2+"px"},500)}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(o),function(e){e.noty.layouts.centerLeft={name:"centerLeft",options:{},container:{object:'<ul id="noty_centerLeft_layout_container" />',selector:"ul#noty_centerLeft_layout_container",style:function(){e(this).css({left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var t=e(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");e("body").append(t),t.find(".i-am-closing-now").remove(),t.find("li").css("display","block");var n=t.height();t.remove(),e(this).hasClass("i-am-new")?e(this).css({top:(e(window).height()-n)/2+"px"}):e(this).animate({top:(e(window).height()-n)/2+"px"},500),window.innerWidth<600&&e(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(o),function(e){e.noty.layouts.centerRight={name:"centerRight",options:{},container:{object:'<ul id="noty_centerRight_layout_container" />',selector:"ul#noty_centerRight_layout_container",style:function(){e(this).css({right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7});var t=e(this).clone().css({visibility:"hidden",display:"block",position:"absolute",top:0,left:0}).attr("id","dupe");e("body").append(t),t.find(".i-am-closing-now").remove(),t.find("li").css("display","block");var n=t.height();t.remove(),e(this).hasClass("i-am-new")?e(this).css({top:(e(window).height()-n)/2+"px"}):e(this).animate({top:(e(window).height()-n)/2+"px"},500),window.innerWidth<600&&e(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(o),function(e){e.noty.layouts.inline={name:"inline",options:{},container:{object:'<ul class="noty_inline_layout_container" />',selector:"ul.noty_inline_layout_container",style:function(){e(this).css({width:"100%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""}}(o),function(e){e.noty.layouts.top={name:"top",options:{},container:{object:'<ul id="noty_top_layout_container" />',selector:"ul#noty_top_layout_container",style:function(){e(this).css({top:0,left:"5%",position:"fixed",width:"90%",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:9999999})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none"},addClass:""}}(o),function(e){e.noty.layouts.topCenter={name:"topCenter",options:{},container:{object:'<ul id="noty_topCenter_layout_container" />',selector:"ul#noty_topCenter_layout_container",style:function(){e(this).css({top:20,left:0,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),e(this).css({left:(e(window).width()-e(this).outerWidth(!1))/2+"px"})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(o),function(e){e.noty.layouts.topLeft={name:"topLeft",options:{},container:{object:'<ul id="noty_topLeft_layout_container" />',selector:"ul#noty_topLeft_layout_container",style:function(){e(this).css({top:20,left:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&e(this).css({left:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(o),function(e){e.noty.layouts.topRight={name:"topRight",options:{},container:{object:'<ul id="noty_topRight_layout_container" />',selector:"ul#noty_topRight_layout_container",style:function(){e(this).css({top:20,right:20,position:"fixed",width:"310px",height:"auto",margin:0,padding:0,listStyleType:"none",zIndex:1e7}),window.innerWidth<600&&e(this).css({right:5})}},parent:{object:"<li />",selector:"li",css:{}},css:{display:"none",width:"310px"},addClass:""}}(o),function(e){e.noty.themes.defaultTheme={name:"defaultTheme",helpers:{borderFix:function(){if(this.options.dismissQueue){var t=this.options.layout.container.selector+" "+this.options.layout.parent.selector;switch(this.options.layout.name){case"top":e(t).css({borderRadius:"0px 0px 0px 0px"}),e(t).last().css({borderRadius:"0px 0px 5px 5px"});break;case"topCenter":case"topLeft":case"topRight":case"bottomCenter":case"bottomLeft":case"bottomRight":case"center":case"centerLeft":case"centerRight":case"inline":e(t).css({borderRadius:"0px 0px 0px 0px"}),e(t).first().css({"border-top-left-radius":"5px","border-top-right-radius":"5px"}),e(t).last().css({"border-bottom-left-radius":"5px","border-bottom-right-radius":"5px"});break;case"bottom":e(t).css({borderRadius:"0px 0px 0px 0px"}),e(t).first().css({borderRadius:"5px 5px 0px 0px"})}}}},modal:{css:{position:"fixed",width:"100%",height:"100%",backgroundColor:"#000",zIndex:1e4,opacity:.6,display:"none",left:0,top:0}},style:function(){switch(this.$bar.css({overflow:"hidden",background:"url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAoCAYAAAAPOoFWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAPZJREFUeNq81tsOgjAMANB2ov7/7ypaN7IlIwi9rGuT8QSc9EIDAsAznxvY4pXPKr05RUE5MEVB+TyWfCEl9LZApYopCmo9C4FKSMtYoI8Bwv79aQJU4l6hXXCZrQbokJEksxHo9KMOgc6w1atHXM8K9DVC7FQnJ0i8iK3QooGgbnyKgMDygBWyYFZoqx4qS27KqLZJjA1D0jK6QJcYEQEiWv9PGkTsbqxQ8oT+ZtZB6AkdsJnQDnMoHXHLGKOgDYuCWmYhEERCI5gaamW0bnHdA3k2ltlIN+2qKRyCND0bhqSYCyTB3CAOc4WusBEIpkeBuPgJMAAX8Hs1NfqHRgAAAABJRU5ErkJggg==') repeat-x scroll left top #fff"}),this.$message.css({fontSize:"13px",lineHeight:"16px",textAlign:"center",padding:"8px 10px 9px",width:"auto",position:"relative"}),this.$closeButton.css({position:"absolute",top:4,right:4,width:10,height:10,background:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBG
2CzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAATpJREFUeNoszrFqVFEUheG19zlz7sQ7ijMQBAvfYBqbpJCoZSAQbOwEE1IHGytbLQUJ8SUktW8gCCFJMSGSNxCmFBJO7j5rpXD6n5/P5vM53H3b3T9LOiB5AQDuDjM7BnA7DMPHDGBH0nuSzwHsRcRVRNRSysuU0i6AOwA/02w2+9Fae00SEbEh6SGAR5K+k3zWWptKepCm0+kpyRoRGyRBcpPkDsn1iEBr7drdP2VJZyQXERGSPpiZAViTBACXKaV9kqd5uVzCzO5KKb/d/UZSDwD/eyxqree1VqSu6zKAF2Z2RPJJaw0rAkjOJT0m+SuT/AbgDcmnkmBmfwAsJL1dXQ8lWY6IGwB1ZbrOOb8zs8thGP4COFwx/mE8Ho9Go9ErMzvJOW/1fY/JZIJSypqZfXX3L13X9fcDAKJct1sx3OiuAAAAAElFTkSuQmCC)",display:"none",cursor:"pointer"}),this.$buttons.css({padding:5,textAlign:"right",borderTop:"1px solid #ccc",backgroundColor:"#fff"}),this.$buttons.find("button").css({marginLeft:5}),this.$buttons.find("button:first").css({marginLeft:0}),this.$bar.bind({mouseenter:function(){e(this).find(".noty_close").stop().fadeTo("normal",1)},mouseleave:function(){e(this).find(".noty_close").stop().fadeTo("normal",0)}}),this.options.layout.name){case"top":this.$bar.css({borderRadius:"0px 0px 5px 5px",borderBottom:"2px solid #eee",borderLeft:"2px solid #eee",borderRight:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"});break;case"topCenter":case"center":case"bottomCenter":case"inline":this.$bar.css({borderRadius:"5px",border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"center"});break;case"topLeft":case"topRight":case"bottomLeft":case"bottomRight":case"centerLeft":case"centerRight":this.$bar.css({borderRadius:"5px",border:"1px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"}),this.$message.css({fontSize:"13px",textAlign:"left"});break;case"bottom":this.$bar.css({borderRadius:"5px 5px 0px 0px",borderTop:"2px solid #eee",borderLeft:"2px s
2olid #eee",borderRight:"2px solid #eee",boxShadow:"0 -2px 4px rgba(0, 0, 0, 0.1)"});break;default:this.$bar.css({border:"2px solid #eee",boxShadow:"0 2px 4px rgba(0, 0, 0, 0.1)"})}switch(this.options.type){case"alert":case"notification":default:this.$bar.css({backgroundColor:"#FFF",borderColor:"#CCC",color:"#444"});break;case"warning":this.$bar.css({backgroundColor:"#FFEAA8",borderColor:"#FFC237",color:"#826200"}),this.$buttons.css({borderTop:"1px solid #FFC237"});break;case"error":this.$bar.css({backgroundColor:"red",borderColor:"darkred",color:"#FFF"}),this.$message.css({fontWeight:"bold"}),this.$buttons.css({borderTop:"1px solid darkred"});break;case"information":this.$bar.css({backgroundColor:"#57B7E2",borderColor:"#0B90C4",color:"#FFF"}),this.$buttons.css({borderTop:"1px solid #0B90C4"});break;case"success":this.$bar.css({backgroundColor:"lightgreen",borderColor:"#50C24E",color:"darkgreen"}),this.$buttons.css({borderTop:"1px solid #50C24E"})}},callback:{onShow:function(){e.noty.themes.defaultTheme.helpers.borderFix.apply(this)},onClose:function(){e.noty.themes.defaultTheme.helpers.borderFix.apply(this)}}}}(o)},505073:(e,t,n)=>{var r,o={},i={16:!1,18:!1,17:!1,91:!1},a="all",s={"â§":16,shift:16,"â¥":18,alt:18,option:18,"â":17,ctrl:17,control:17,"â":91,command:91},c={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220},u=function(e){return c[e]||e.toUpperCase().charCodeAt(0)},l=[];for(r=1;r<20;r++)c["f"+r]=111+r;function d(e,t){for(var n=e.length;n--;)if(e[n]===t)return n;return-1}function p(e,t){if(e.length!=t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var f={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey"};function h(e){for(r in i)i[r]=e[f[r]]}function m(e,t,n){var r,i;r=y(e),void 0===n&&(n=t,t="all");for(var a=0;a<r.length;a++)i=[],(e=r[a].split("+")).length>1&&(i=v(e),e=[e[e.length-1]]),e=e[0],(e=u(e))in o||(o[e]=[]),o[e].push({shortcut:r[a],scope:t,method:n,key:r[a],mods:i})}for(r in s)m[r]=!1;function g(){return a||"all"}function y(e){var t;return""==(t=(e=e.replace(/\s/g,"")).split(","))[t.length-1]&&(t[t.length-2]+=","),t}function v(e){for(var t=e.slice(0,e.length-1),n=0;n<t.length;n++)t[n]=s[t[n]];return t}function b(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent&&e.attachEvent("on"+t,(function(){n(window.event)}))}b(document,"keydown",(function(e){!function(e){var t,n,r,a,c;if(t=e.keyCode,-1==d(l,t)&&l.push(t),93!=t&&224!=t||(t=91),t in i)for(r in i[t]=!0,s)s[r]==t&&(m[r]=!0);else if(h(e),m.filter.call(this,e)&&t in o)for(g(),a=0;a<o[t].length;a++){for(r in c=(n=o[t][a]).mods.length>0,i)(!i[r]&&d(n.mods,+r)>-1||i[r]&&-1==d(n.mods,+r))&&(c=!1);(0!=n.mods.length||i[16]||i[18]||i[17]||i[91])&&!c||!1===n.method(e,n)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}(e)})),b(document,"keyup",(function(e){var t,n=e.keyCode,r=d(l,n);if(r>=0&&l.splice(r,1),93!=n&&224!=n||(n=91),n in i)for(t in i[n]=!1,s)s[t]==n&&(m[t]=!1)})),b(window,"focus",(function(){for(r in i)i[r]=!1;for(r in s)m[r]=!1}));var _=n.g.key;n.g.key=m,n.g.key.setScope=function(e){a=e||"all"},n.g.key.getScope=g,n.g.key.deleteScope=function(e){var t,n,r;for(t in o)for(n=o[t],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++},n.g.key.filter=function(e){var t=(e.target||e.srcElement).tagName;return!("INPUT"==t||"SELECT"==t||"TEXTAREA"==t)},n.g.key.isPressed=function(e){return"string"==typeof e&&(e=u(e)),-1!=d(l,e)},n.g.key.getPressedKeyCodes=function(){return l.slice(0)},n.g.key.noConflict=function(){var e=n.g.key;return n.g.key=_,e},n.g.key.unbind=function(e,t){var n,r,i,a,s,c=[];for(n=y(e),a=0;a<n.length;a++){if((r=n[a].split("+")).length>1&&(c=v(r),e=r[r.length-1]),e=u(e),void 0===t&&(t=g()),!o[e])return;for(i in o[e])(s=o[e][i]).scope===t&&p(s.mods,c)&&(o[e][i]={})}},e.exports=key},899103:(e,t,n)=>{e=n.nmd(e);var r={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/=",_f:String.fromCharCode,compressToBase64:function(e){if(null==e)return"";var t,n,o,i,a,s,c,u="",l=0;for(e=r.compress(e);l<2*e.length;)l%2==0?(t=e.charCodeAt(l/2)>>8,n=255&e.charCodeAt(l/2),o=l/2+1<e.length?e.charCodeAt(l/2+1)>>8:NaN):(t=255&e.charCodeAt((l-1)/2),(l+1)/2<e.length?(n=e.charCodeAt((l+1)/2)>>8,o=255&e.charCodeAt((l+1)/2)):n=o=NaN),l+=3,i=t>>2,a=(3&t)<<4|n>>4,s=(15&n)<<2|o>>6,c=63&o,isNaN(n)?s=c=64:isNaN(o)&&(c=64),u=u+r._keyStr.charAt(i)+r._keyStr.charAt(a)+r._keyStr.charAt(s)+r._keyStr.charAt(c);return u},decompressFromBase64:function(e){if(null==e)return"";var t,n,o,i,a,s,c,u="",l=0,d=0,p=r._f;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");d<e.length;)n=r._keyStr.indexOf(e.charAt(d++))<<2|(a=r._keyStr.indexOf(e.charAt(d++)))>>4,o=(15&a)<<4|(s=r._keyStr.indexOf(e.charAt(d++)))>>2,i=(3&s)<<6|(c=r._keyStr.indexOf(e.charAt(d++))),l%2==0?(t=n<<8,64!=s&&(u+=p(t|o)),64!=c&&(t=i<<8)):(u+=p(t|n),64!=s&&(t=o<<8),64!=c&&(u+=p(t|i))),l+=3;return r.decompress(u)},compressToUTF16:function(e){if(null==e)return"";var t,n,o,i="",a=0,s=r._f;for(e=r.compress(e),t=0;t<e.length;t++)switch(n=e.charCodeAt(t),a++){case 0:i+=s(32+(n>>1)),o=(1&n)<<14;break;case 1:i+=s(o+(n>>2)+32),o=(3&n)<<13;break;case 2:i+=s(o+(n>>3)+32),o=(7&n)<<12;break;case 3:i+=s(o+(n>>4)+32),o=(15&n)<<11;break;case 4:i+=s(o+(n>>5)+32),o=(31&n)<<10;break;case 5:i+=s(o+(n>>6)+32),o=(63&n)<<9;break;case 6:i+=s(o+(n>>7)+32),o=(127&n)<<8;break;case 7:i+=s(o+(n>>8)+32),o=(255&n)<<7;break;case 8:i+=s(o+(n>>9)+32),o=(511&n)<<6;break;case 9:i+=s(o+(n>>10)+32),o=(1023&n)<<5;break;case 10:i+=s(o+(n>>11)+32),o=(2047&n)<<4;break;case 11:i+=s(o+(n>>12)+32),o=(4095&n)<<3;break;case 12:i+=s(o+(n>>13)+32),o=(8191&n)<<2;break;case 13:i+=s(o+(n>>14)+32),o=(16383&n)<<1;break;case 14:i+=s(o+(n>>15)+32,32+(32767&n)),a=0}return i+s(o+32)},decompressFromUTF16:function(e){if(null==e)return"";for(var t,n,o="",i=0,a=0,s=r._f;a<e.length;){switch(n=e.charCodeAt(a)-32,i++){case 0:t=n<<1;break;case 1:o+=s(t|n>>14),t=(16383&n)<<2;break;case 2:o+=s(t|n>>13),t=(8191&n)<<3;break;case 3:o+=s(t|n>>12),t=(4095&n)<<4;break;case 4:o+=s(t|n>>11),t=(2047&n)<<5;break;case 5:o+=s(t|n>>10),t=(1023&n)<<6;break;case 6:o+=s(t|n>>9),t=(511&n)<<7;break;case 7:o+=s(t|n>>8),t=(255&n)<<8;break;case 8:o+=s(t|n>>7),t=(127&n)<<9;break;case 9:o+=s(t|n>>6),t=(63&n)<<10;break;case 10:o+=s(t|n>>5),t=(31&n)<<11;break;case 11:o+=s(t|n>>4),t=(15&n)<<12;break;case 12:o+=s(t|n>>3),t=(7&n)<<13;break;case 13:o+=s(t|n>>2),t=(3&n)<<14;break;case 14:o+=s(t|n>>1),t=(1&n)<<15;break;case 15:o+=s(t|n),i=0}a++}return r.decompress(o)},compress:function(e){if(null==e)return"";var t,n,o,i={},a={},s="",c="",u="",l=2,d=3,p=2,f="",h=0,m=0,g=r._f;for(o=0;o<e.length;o+=1)if(s=e.charAt(o),Object.prototype.hasOwnProperty.call(i,s)||(i[s]=d++,a[s]=!0),c=u+s,Object.prototype.hasOwnProperty.call(i,c))u=c;else{if(Object.prototype.hasOwnProperty.call(a,u)){if(u.charCodeAt(0)<256){for(t=0;t<p;t++)h<<=1,15==m?(m=0,f+=g(h),h=0):m++;for(n=u.charCodeAt(0),t=0;t<8;t++)h=h<<1|1&n,15==m?(m=0,f+=g(h),h=0):m++,n>>=1}else{for(n=1,t=0;t<p;t++)h=h<<1|n,15==m?(m=0,f+=g(h),h=0):m++,n=0;for(n=u.charCodeAt(0),t=0;t<16;t++)h=h<<1|1&n,15==m?(m=0,f+=g(h),h=0):m++,n>>=1}0==--l&&(l=Math.pow(2,p),p++),delete a[u]}else for(n=i[u],t=0;t<p;t++)h=h<<1|1&n,15==m?(m=0,f+=g(h),h=0):m++,n>>=1;0==--l&&(l=Math.pow(2,p),p++),i[c]=d++,u=String(s)}if(""!==u){if(Object.prototype.hasOwnProperty.call(a,u)){if(u.charCodeAt(0)<256){for(t=0;t<p;t++)h<<=1,15==m?(m=0,f+=g(h),h=0):m++;for(n=u.charCodeAt(0),t=0;t<8;t++)h=h<<1|1&n,15==m?(m=0,f+=g(h),h=0):m++,n>>=1}else{for(n=1,t=0;t<p;t++)h=h<<1|n,15==m?(m=0,f+=g(h),h=0):m++,n=0;for(n=u.charCodeAt(0),t=0;t<16;t++)h=h<<1|1&n,15==m?(m=0,f+=g(h),h=0):m++,n>>=1}0==--l&&(l=Math.pow(2,p),p++),delete a[u]}else for(n=i[u],t=0;t<p;t++)h=h<<1|1&n,15==m?(m=0,f+=g(h),h=0):m++,n>>=1;0==--l&&(l=Math.pow(2,p),p++)}for(n=2,t=0;t<p;t++)h=h<<1|1&n,15==m?(m=0,f+=g(h),h=0):m++,n>>=1;for(;;){if(h<<=1,15==m){f+=g(h);break}m++}return f},decompress:function(e){if(null==e)return"";if(""==e)return null;var t,n,o,i,a,s,c,u=[],l=4,d=4,p=3,f="",h="",m=r._f,g={string:e,val:e.charCodeAt(0),position:32768,index:1};for(t=0;t<3;t+=1)u[t]=t;for(o=0,a=Math.pow(2,2),s=1;s!=a;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=32768,g.val=g.string.charCodeAt(g.index++)),o|
2=(i>0?1:0)*s,s<<=1;switch(o){case 0:for(o=0,a=Math.pow(2,8),s=1;s!=a;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=32768,g.val=g.string.charCodeAt(g.index++)),o|=(i>0?1:0)*s,s<<=1;c=m(o);break;case 1:for(o=0,a=Math.pow(2,16),s=1;s!=a;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=32768,g.val=g.string.charCodeAt(g.index++)),o|=(i>0?1:0)*s,s<<=1;c=m(o);break;case 2:return""}for(u[3]=c,n=h=c;;){if(g.index>g.string.length)return"";for(o=0,a=Math.pow(2,p),s=1;s!=a;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=32768,g.val=g.string.charCodeAt(g.index++)),o|=(i>0?1:0)*s,s<<=1;switch(c=o){case 0:for(o=0,a=Math.pow(2,8),s=1;s!=a;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=32768,g.val=g.string.charCodeAt(g.index++)),o|=(i>0?1:0)*s,s<<=1;u[d++]=m(o),c=d-1,l--;break;case 1:for(o=0,a=Math.pow(2,16),s=1;s!=a;)i=g.val&g.position,g.position>>=1,0==g.position&&(g.position=32768,g.val=g.string.charCodeAt(g.index++)),o|=(i>0?1:0)*s,s<<=1;u[d++]=m(o),c=d-1,l--;break;case 2:return h}if(0==l&&(l=Math.pow(2,p),p++),u[c])f=u[c];else{if(c!==d)return null;f=n+n.charAt(0)}h+=f,u[d++]=n+f.charAt(0),n=f,0==--l&&(l=Math.pow(2,p),p++)}}};null!=e&&(e.exports=r)},207789:e=>{"use strict";e.exports=esper},257835:()=>{},215671:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},143144:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},204942:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},671002:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},125463:e=>{"use strict";e.exports=JSON.parse('[{"code":"AF","name":"Afghanistan"},{"code":"AX","name":"Ã
land Islands"},{"code":"AL","name":"Albania"},{"code":"DZ","name":"Algeria"},{"code":"AS","name":"American Samoa"},{"code":"AD","name":"Andorra"},{"code":"AO","name":"Angola"},{"code":"AI","name":"Anguilla"},{"code":"AQ","name":"Antarctica"},{"code":"AG","name":"Antigua and Barbuda"},{"code":"AR","name":"Argentina"},{"code":"AM","name":"Armenia"},{"code":"AW","name":"Aruba"},{"code":"AU","name":"Australia"},{"code":"AT","name":"Austria"},{"code":"AZ","name":"Azerbaijan"},{"code":"BS","name":"Bahamas"},{"code":"BH","name":"Bahrain"},{"code":"BD","name":"Bangladesh"},{"code":"BB","name":"Barbados"},{"code":"BY","name":"Belarus"},{"code":"BE","name":"Belgium"},{"code":"BZ","name":"Belize"},{"code":"BJ","name":"Benin"},{"code":"BM","name":"Bermuda"},{"code":"BT","name":"Bhutan"},{"code":"BO","name":"Bolivia, Plurinational State of"},{"code":"BQ","name":"Bonaire, Sint Eustatius and Saba"},{"code":"BA","name":"Bosnia and Herzegovina"},{"code":"BW","name":"Botswana"},{"code":"BV","name":"Bouvet Island"},{"code":"BR","name":"Brazil"},{"code":"IO","name":"British Indian Ocean Territory"},{"code":"BN","name":"Brunei Darussalam"},{"code":"BG","name":"Bulgaria"},{"code":"BF","name":"Burkina Faso"},{"code":"BI","name":"Burundi"},{"code":"KH","name":"Cambodia"},{"code":"CM","name":"Cameroon"},{"code":"CA","name":"Canada"},{"code":"CV","name":"Cape Verde"},{"code":"KY","name":"Cayman Islands"},{"code":"CF","name":"Central African Republic"},{"code":"TD","name":"Chad"},{"code":"CL","name":"Chile"},{"code":"CN","name":"China"},{"code":"CX","name":"Christmas Island"},{"code":"CC","name":"Cocos (Keeling) Islands"},{"code":"CO","name":"Colombia"},{"code":"KM","name":"Comoros"},{"code":"CG","name":"Congo"},{"code":"CD","name":"Congo, the Democratic Republic of the"},{"code":"CK","name":"Cook Islands"},{"code":"CR","name":"Costa Rica"},{"code":"CI","name":"Côte d\'Ivoire"},{"code":"HR","name":"Croatia"},{"code":"CU","name":"Cuba"},{"code":"CW","name":"Curaçao"},{"code":"CY","name":"Cyprus"},{"code":"CZ","name":"Czech Republic"},{"code":"DK","name":"Denmark"},{"code":"DJ","name":"Djibouti"},{"code":"DM","name":"Dominica"},{"code":"DO","name":"Dominican Republic"}
2,{"code":"EC","name":"Ecuador"},{"code":"EG","name":"Egypt"},{"code":"SV","name":"El Salvador"},{"code":"GQ","name":"Equatorial Guinea"},{"code":"ER","name":"Eritrea"},{"code":"EE","name":"Estonia"},{"code":"ET","name":"Ethiopia"},{"code":"FK","name":"Falkland Islands (Malvinas)"},{"code":"FO","name":"Faroe Islands"},{"code":"FJ","name":"Fiji"},{"code":"FI","name":"Finland"},{"code":"FR","name":"France"},{"code":"GF","name":"French Guiana"},{"code":"PF","name":"French Polynesia"},{"code":"TF","name":"French Southern Territories"},{"code":"GA","name":"Gabon"},{"code":"GM","name":"Gambia"},{"code":"GE","name":"Georgia"},{"code":"DE","name":"Germany"},{"code":"GH","name":"Ghana"},{"code":"GI","name":"Gibraltar"},{"code":"GR","name":"Greece"},{"code":"GL","name":"Greenland"},{"code":"GD","name":"Grenada"},{"code":"GP","name":"Guadeloupe"},{"code":"GU","name":"Guam"},{"code":"GT","name":"Guatemala"},{"code":"GG","name":"Guernsey"},{"code":"GN","name":"Guinea"},{"code":"GW","name":"Guinea-Bissau"},{"code":"GY","name":"Guyana"},{"code":"HT","name":"Haiti"},{"code":"HM","name":"Heard Island and McDonald Mcdonald Islands"},{"code":"VA","name":"Holy See (Vatican City State)"},{"code":"HN","name":"Honduras"},{"code":"HK","name":"Hong Kong"},{"code":"HU","name":"Hungary"},{"code":"IS","name":"Iceland"},{"code":"IN","name":"India"},{"code":"ID","name":"Indonesia"},{"code":"IR","name":"Iran, Islamic Republic of"},{"code":"IQ","name":"Iraq"},{"code":"IE","name":"Ireland"},{"code":"IM","name":"Isle of Man"},{"code":"IL","name":"Israel"},{"code":"IT","name":"Italy"},{"code":"JM","name":"Jamaica"},{"code":"JP","name":"Japan"},{"code":"JE","name":"Jersey"},{"code":"JO","name":"Jordan"},{"code":"KZ","name":"Kazakhstan"},{"code":"KE","name":"Kenya"},{"code":"KI","name":"Kiribati"},{"code":"KP","name":"Korea, Democratic People\'s Republic of"},{"code":"KR","name":"Korea, Republic of"},{"code":"KW","name":"Kuwait"},{"code":"KG","name":"Kyrgyzstan"},{"code":"LA","name":"Lao People\'s Democratic Republic"},{"code":"LV","name":"Latvia"},{"code":"LB","name":"Lebanon"},{"code":"LS","name":"Lesotho"},{"code":"LR","name":"Liberia"},{"code":"LY","name":"Libya"},{"code":"LI","name":"Liechtenstein"},{"code":"LT","name":"Lithuania"},{"code":"LU","name":"Luxembourg"},{"code":"MO","name":"Macao"},{"code":"MK","name":"Macedonia, the Former Yugoslav Republic of"},{"code":"MG","name":"Madagascar"},{"code":"MW","name":"Malawi"},{"code":"MY","name":"Malaysia"},{"code":"MV","name":"Maldives"},{"code":"ML","name":"Mali"},{"code":"MT","name":"Malta"},{"code":"MH","name":"Marshall Islands"},{"code":"MQ","name":"Martinique"},{"code":"MR","name":"Mauritania"},{"code":"MU","name":"Mauritius"},{"code":"YT","name":"Mayotte"},{"code":"MX","name":"Mexico"},{"code":"FM","name":"Micronesia, Federated States of"},{"code":"MD","name":"Moldova, Republic of"},{"code":"MC","name":"Monaco"},{"code":"MN","name":"Mongolia"},{"code":"ME","name":"Montenegro"},{"code":"MS","name":"Montserrat"},{"code":"MA","name":"Morocco"},{"code":"MZ","name":"Mozambique"},{"code":"MM","name":"Myanmar"},{"code":"NA","name":"Namibia"},{"code":"NR","name":"Nauru"},{"code":"NP","name":"Nepal"},{"code":"NL","name":"Netherlands"},{"code":"NC","name":"New Caledonia"},{"code":"NZ","name":"New Zealand"},{"code":"NI","name":"Nicaragua"},{"code":"NE","name":"Niger"},{"code":"NG","name":"Nigeria"},{"code":"NU","name":"Niue"},{"code":"NF","name":"Norfolk Island"},{"code":"MP","name":"Northern Mariana Islands"},{"code":"NO","name":"Norway"},{"code":"OM","name":"Oman"},{"code":"PK","name":"Pakistan"},{"code":"PW","name":"Palau"},{"code":"PS","name":"Palestine, State of"},{"code":"PA","name":"Panama"},{"code":"PG","name":"Papua New Guinea"},{"code":"PY","name":"Paraguay"},{"code":"PE","name":"Peru"},{"code":"PH","name":"Philippines"},{"code":"PN","name":"Pitcairn"},{"code":"PL","name":"Poland"},{"code":"PT","name":"Portugal"},{"code":"PR","name":"Puerto Rico"},{"code":"QA","name":"Qatar"},{"code":"RE","name":"Réunion"},{"code":"RO","name":"Romania"},{"code":"RU","name":"Russian Federation"},{"code":"RW","name":"Rwanda"},{"code":"BL","name":"Saint Barthélemy"},{"code":"SH","name":"Saint Helena, Ascension and Tristan da Cunha"},{"code":"KN","name":"Saint Kitts and Nevis"},{"code":"LC","name":"Saint Lucia"},{"code":"MF","name":"Saint Martin (French part)"},{"code":"PM","name":"Saint Pierre and Miquelon"},{"code":"VC","name":"Saint Vincent and the Grenadines"},{"code":"WS","name":"Samoa"},{"code":"SM","name":"San Marino"},{"code":"ST","name":"Sao Tome and Principe"},{"code":"SA","name":"Saudi Arabia"},{"code":"SN","name":"Senegal"},{"code":"RS","name":"Serbia"},{"code":"SC","name":"Seychelles"},{"code":"SL","name":"Sierra Leone"},{"code":"SG","name":"Singapore"},{"code":"SX","name":"Sint Maarten (Dutch part)"},{"code":"SK","name":"Slovakia"},{"code":"SI","name":"Slovenia"},{"code":"SB","name":"Solomon Islands"},{"code":"SO","name":"Somalia"},{"code":"ZA","name":"South Africa"},{"code":"GS","name":"South Georgia and the South Sandwich Islands"},{"code":"SS","name":"South Sudan"},{"code":"ES","name":"Spain"},{"code":"LK","name":"Sri Lanka"},{"code":"SD","name":"Sudan"},{"code":"SR","name":"Suriname"},{"code":"SJ","name":"Svalbard and Jan Mayen"},{"code":"SZ","name":"Swaziland"},{"code":"SE","name":"Sweden"},{"code":"CH","name":"Switzerland"},{"code":"SY","name":"Syrian Arab Republic"},{"code":"TW","name":"Taiwan, Province of China"},{"code":"TJ","name":"Tajikistan"},{"code":"TZ","name":"Tanzania, United Republic of"},{"code":"TH","name":"Thailand"},{"code":"TL","name":"Timor-Leste"},{"code":"TG","name":"Togo"},{"code":"TK","name":"Tokelau"},{"code":"TO","name":"Tonga"},{"code":"TT","name":"Trinidad and Tobago"},{"code":"TN","name":"Tunisia"},{"code":"TR","name":"Turkey"},{"code":"TM","name":"Turkmenistan"},{"code":"TC","name":"Turks and Caicos Islands"},{"code":"TV","name":"Tuvalu"},{"code":"UG","name":"Uganda"},{"code":"UA","name":"Ukraine"},{"code":"AE","name":"United Arab Emirates"}
2,{"code":"GB","name":"United Kingdom"},{"code":"US","name":"United States"},{"code":"UM","name":"United States Minor Outlying Islands"},{"code":"UY","name":"Uruguay"},{"code":"UZ","name":"Uzbekistan"},{"code":"VU","name":"Vanuatu"},{"code":"VE","name":"Venezuela, Bolivarian Republic of"},{"code":"VN","name":"Viet Nam"},{"code":"VG","name":"Virgin Islands, British"},{"code":"VI","name":"Virgin Islands, U.S."},{"code":"WF","name":"Wallis and Futuna"},{"code":"EH","name":"Western Sahara"},{"code":"YE","name":"Yemen"},{"code":"ZM","name":"Zambia"},{"code":"ZW","name":"Zimbabwe"}]')}},s={};function c(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,loaded:!1,exports:{}};return a[e].call(n.exports,n,n.exports,c),n.loaded=!0,n.exports}c.m=a,c.amdD=function(){throw new Error("define cannot be used indirect")},c.amdO={},c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,c.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var o=Object.create(null);c.r(o);var i={};e=e||[null,t({}),t([]),t(t)];for(var a=2&r&&n;"object"==typeof a&&!~e.indexOf(a);a=t(a))Object.getOwnPropertyNames(a).forEach((e=>i[e]=()=>n[e]));return i.default=()=>n,c.d(o,i),o},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce(((t,n)=>(c.f[n](e,t),t)),[])),c.u=e=>"javascripts/chunks/"+({15:"sv",50:"mi",74:"ms",189:"nb",224:"lv",303:"UsFont",378:"user",422:"my",536:"contribute",555:"sel",640:"pl",775:"RestrictedToTeachersView",915:"LeagueViewTeachers",972:"da",1041:"tournament",1116:"AnnouncementView",1135:"fi",1136:"AccountSettingsRoot",1162:"podcastEditView",1163:"docs",1189:"editor",1221:"zh-WUU-HANS",1222:"lowUsageUsersAdmin",1261:"nl-NL",1433:"manageBillingComponentBeta",1465:"HackStackCyberView",1515:"nn",1593:"ro",1796:"uz",1809:"account",1856:"ChinaFont",1866:"ai-league",1888:"nl",1925:"libraryLogin",1992:"userSwitchAccountConfirm",2033:"clans",2154:"haw",2167:"CodequestView",2328:"admin",2329:"eo",2332:"mainLadderViewV2",2336:"HackStackView",2358:"hi",2410:"RobloxView",2491:"ko",2531:"announcementSearchView",2580:"i18n",2626:"ParentsView",2639:"sk",2921:"libraryMain",2934:"pt-BR",2953:"courses",3e3:"PageCodequest",3033:"HackStackAlgebraView",3041:"JuniorView",3070:"nl-BE",3090:"fil",3182:"fa",3231:"tecmilenioSuccessComponent",3325:"ur",3446:"onlineClassesSuccessComponent",3447:"CommunityView",3529:"standardsPage",3653:"pt-PT",3800:"pd",4043:"ja",4047:"uk",4057:"efficacy",4141:"ladder",4249:"podcastMain",4405:"SchoolsView",4459:"LeagueView",4481:"el",4486:"mk-MK",4537:"ca",4692:"id",4705:"outcomesReport",4717:"hu",4740:"OAuthAIYouthView",4781:"apiViews",4816:"GrantsView",4818:"teachers_new",4906:"mn",4929:"th",4946:"az",4993:"cs",4997:"de-AT",5008:"mobile",5058:"de-CH",5077:"podcastSingle",5106:"announcementEditView",5224:"hr",5233:"LicenseStats",5309:"userSwitchAccount",5317:"ContactCNView",5335:"HomeCNView",5371:"he",5387:"sl",5400:"manageBillingComponent",5556:"artisans",5709:"AllCoursesCertificatesView",5741:"ai",5758:"homeSubscriptionSuccessComponent",5994:"rot13",6016:"PagePartners",6028:"examPage",6032:"edLinkRedirectView",6042:"TestView",6161:"zh-HANS",6183:"homeBeta",6269:"PrivacyView",6333:"AccountSettings",6372:"bg",6405:"HoC2018",6852:"apcsp",6862:"LicensorView",6868:"ozariaPlay",6931:"gl",6936:"vi",6998:"CertificatesView",7032:"HomeView",7050:"zh-WUU-HANT",7064:"podcastSearchView",7073:"standardsEditView",7085:"thirdPartyDebugging",7143:"de-DE",7160:"es-419",7231:"fr",7238:"en-GB",7320:"minigamePlay",7347:"play",7376:"PremiumFeaturesView",7406:"conceptSearchView",7473:"curriculum",7564:"lt",7675:"paymentStudentLicenses",7697:"ru",7767:"et",7844:"libraryDashboard",7850:"ar",7928:"it",7982:"aiJunior",8079:"CLAView",8277:"ContactGEEKView",8296:"kk",8318:"standardsSearchView",8554:"sr",8573:"acr",8623:"conceptEditView",8732:"zh-HANT",8870:"es-ES",8895:"LegalView",9060:"RestrictedToStudentsView",9300:"tr",9337:"dei",9426:"phaser",9545:"PageImpact",9558:"NotFoundView",9628:"guide",9671:"parentDashboard",9678:"AboutView",9713:"paymentComponent",9840:"teachers",9950:"PageCurriculum"}[e]||e)+"-"+{15:"f6fbdcdc003a349d1f91",50:"4381fbad73f8f6048803",74:"62e290015a41256b4850",123:"ba12bdc62f0b58abee3b",131:"410b0aa329278439b72c",189:"cdc262bc49413b25a330",224:"07536da813661326bb88",229:"0421825f7db8248da7d3",261:"2e23a19d6483f21d971b",302:"9332334d31651f98f2fa",303:"1301c1d0022c763c22eb",313:"90aac4cf8783072a94e7",356:"4059a16c5e76bb7ad2fa",361:"7e33d889d770c15847d0",378:"11942b769735b62e0157",384:"349fcb5e03be7a615683",422:"e142f6e16a1ee38c22ba",466:"b8a3581da6bb7d86ea59",474:"eef34341074e87b41884",504:"80f4b9acd53dc2835c18",536:"e699b83030ac3c78749c",555:"7d9af1043cc8cb0d4be4",600:"bcad6a52fde51b97b2a5",604:"206874b81a75bd71fc2f",612:"490877eb2e823e99dbbc",617:"6d660e0aa6ef1a6a909d",640:"c2e88161f2b3cdf1d52d",724:"c607de759001b525c36b",733:"6376e1c5dce6f21851ea",746:"6882e444d9b05733eb4e",758:"c99e4b6c6865e030f4f2",772:"bc4a58edec4f810f86a3",775:"a847afc657eef19e0385",790:"f2ad58bd799664756fce",915:"7ca0e5598afb65c29612",953:"37f7fec465e199b09b4c",972:"1c6c6a16fc67ba299825",1008:"b41de27d0e82e05c31f7",1041:"470de08acfb7a91635f9",1091:"5a45a79f1fecafa6ad4a",1113:"36e7a3b714bfbf307b07",1116:"609d7e81722b54969be4",1135:"6371f6955b943bb5b736",1136:"912d502401898dcfbb29",1162:"55d6c772221892e1ed66",1163:"b18f58b6e90b4105c732",1189:"8326937feda00f7c6cfe",1221:"5955523ea38f1c9afd07",1222:"1d2017d23247d0827a5e",1261:"d10e4b8d7a09caf847b3",1321:"8d58fff6e6850221c592",1359:"d8cd970a9d22a2748b91",1433:"cee5a2f63c411bc51444",1439:"f81323e5800c5c560e4a",1465:"569a49a655413c8e3183",1515:"361f3af5131ad4dcaecd",1560:"4aa898449aa3476783c5",1573:"34a104e08f8d73f0cf3d",1579:"3a29a634a71af0b2c90d",1593:"2367d8179b22121d5dcb",1622:"17217bd5ebc495ab9c28",1652:"592fa1fbe4b4ffe3e6e8",1701:"bb7954087056274c3b56",1730:"9842e26441d6cf8a7e2f",1794:"b894be3f3b49a0a78757",1796:"58955b91162a2afffdb1",1809:"5035cfa70e76472bf43e",1856:"9d7dbcc3757a1eb1c88e",1866:"d1dd539380899a819504",1876:"ca3561fe9c6c6a44bf94",1888:"ad00daa2b16771cc2fef",1917:"a831dc8fdb8a3a6c6be8",1925:"cb577da27b500e4f1cc8",1942:"7dcd04091d6971a7ac38",1987:"928174f2c417ed1dc351",1992:"7b741ff26c45320794d6",2009:"cf7b4dadc872ebaf8908",2019:"eaa81b99fb2105da0d1e",2025:"2a653f86ea2280163794",2027:"68c92de52817b706ab79",2033:"760cd63756e6e1a70f5b",2133:"d53a2df27ceab43b3f41",2154:"ee0a09afcc427e3ffaee",2167:"3aca4e1138fe126672bf",2328:"5d6eeeb8c1b1ac7aece6",2329:"e5cff64be463e41567ba",2332:"874f1b5a56f154171fb8",2336:"55ca09912789c6a1c473",2358:"82b04f2bb6d756e9545f",2376:"f38d7f7a60941d595286",2390:"ffca2a47be8416072019",2393:"94cb5b92cd8bceca508b",2410:"a38c139f4a75ab8500cb",2471:"9eae272c1e6391ad52f8",2491:"390005c780a651523d18",2502:"f897343414cab1d95b24",2531:"a85631502cd0fc
2a18b79",2544:"de4a1db334bc636a0b7c",2547:"2346a116b8828cc15d12",2580:"4831c9f854d899423caa",2592:"9e5b812030c6053900f7",2626:"707d94c1d6ee3e2fe018",2639:"4954b0f4cbcb9fe6d676",2641:"6581ba65274d6c9e2c6c",2722:"9ef8666a572944e8e70c",2921:"1398c18151e7468041b2",2934:"39ee08bf4e2237430e55",2944:"9a89bb1f6bda9bfc4cb2",2953:"3d8f034438b8d42ea452",2957:"7ad291c6e70c0132f09b",2966:"39a7178d9193c6402240",2981:"8a1a3f9cb985af4427b3",3e3:"020232ad03aee8c7fe99",3032:"01ea3cc73fb4a048f43d",3033:"73b86b7ef593a6b7c51a",3035:"53b44f5f19dd79075f13",3041:"f73fe40ff50f075f5cc5",3070:"204cf1dba14ce4026099",3090:"2d8d0cbcb4c7d609337f",3182:"733b98c87b3492f1a687",3220:"b2341ba419715d990967",3231:"b376cc24c96cf4620019",3237:"4e11ee296fa777ad6de4",3325:"e663b3ac765dcc7b8a8d",3378:"4e9630021df8441ddee4",3446:"3adbdee342b07a9ce02e",3447:"6040df16e3f14e55131b",3506:"9346fc5c481e4aa4aae2",3521:"d5115489518bda172628",3529:"9f3ed9bd8ce9bfa8e333",3646:"3666c172f1efce52e84a",3653:"82d20ff62b5b4fb1e568",3706:"23d2afd83b3209df8609",3734:"a8765054c7834f149adc",3783:"aa5cee9881b72426c79f",3800:"5611e79fc0c7e35adb8a",3852:"380f003ec1ccb6c5a1ec",3864:"899d320186c5bbc2ef66",3901:"315e94ad6007ab4a8f19",3939:"8eb9eb5c1cb934925a86",3973:"500c49fd94a7559b7dae",3984:"02db50b7e6e6dff3241a",4002:"7e16a2570d38d67390d1",4017:"d3b6d5550032dd0b6619",4043:"48ec22f7e4957b935015",4047:"e765fe4ddc1302372668",4057:"57eaaf9ab3dc23c4c3ae",4067:"df243dc5b8f7f8079c08",4088:"04f226fd9fdeef3bd2f2",4127:"8dc7d78972c6e0455155",4141:"7ebfa6955f542b2c19db",4144:"cac96d9a9ddee67cd60f",4149:"33bcf252702cb2991fda",4249:"0af7b26fefb7c7f8b01f",4254:"20ccaf382b3b51af95aa",4405:"99a4649481900b2e65cd",4415:"7adca151905295236b4c",4459:"bd54aa02b3c9bbecb8b6",4481:"7a1ae91f47134b4c8105",4486:"e7b7e0c8e7985511c637",4502:"8032719c913ba26608a8",4529:"6c1d3d7f2783dcf5329a",4537:"1df28e44f2d133d56a59",4616:"b46ddcb4d4c9a73483f8",4692:"4f73a4b7d74431d7f108",4705:"5d3a72e9bdd818f711cf",4717:"ad0c25be890b8c8d8339",4722:"ab4ba7c2b527a1e6f1f2",4724:"d06dfc94252936566f75",4738:"160352cf3aca452e2f5e",4740:"05cb134064160efd32c0",4781:"2aa40bad005867850ee6",4816:"025328a3be68563476d7",4818:"ac197f4e2ba80d8928a4",4855:"e0b4df2a50e7e684ce11",4864:"0f0d8d7c6cfbca54f06d",4888:"04e534a0c68f01ae747e",4889:"a7fd29584d841e4a27c9",4906:"e85a4e1d5b12960a8ec5",4909:"22df1e19a10bf218c24b",4929:"1f752a274f64e0a18b67",4946:"43c786f2475de73ba824",4990:"82fb8125edcd11dc269e",4993:"0505e397a7ca121c9510",4997:"d2fbd749a2b3be672916",5001:"0c68aed0eec817d7baf1",5008:"888b8d1d8c1c534a1f02",5042:"34992a3d120d008d175a",5054:"28a33aba4ade37e2a0db",5058:"22a13c9a9dd184d5c5d6",5077:"e97bfb5a392ea624830a",5078:"8c8b919caee258a28462",5096:"879718fdf92b8063792b",5105:"f3bbda4a21f17cea4fd1",5106:"56e64cd87102930b91f8",5109:"b8db16bc3eadd49bbf08",5131:"3fc0b6acbf06c3a5e501",5159:"29395725a11fc8eb7c6d",5224:"69c75b44ed24a90b07b5",5233:"962ead845d63ae0e3328",5254:"cfef92027af81c21a808",5287:"13cabebe5225b3c09513",5309:"53d1d774cd3831faf9eb",5317:"9956ae7307611d126dcf",5321:"e413a18f5377f1dd41b8",5335:"edb199947bd0cac3e97a",5371:"fba9d2c266aff3117419",5387:"504047ef4099d412881b",5400:"27b89316549959af8a07",5418:"d924255def2ac941d6d6",5423:"e4d4c3ce6b3b2aa4798e",5437:"54f895ee8e9a965ed776",5473:"5999cf72d84e18a43844",5551:"1a36e999b39af4384b27",5556:"908fb5eb030f7ecc1552",5567:"c5f87817f7bce79b00d3",5596:"5da0868d0fa73f071f9f",5616:"c1b8876f47816af1de0f",5627:"2e444042f624c6c098db",5659:"258f40fd2642f2dd6fd0",5709:"7f1ed464e307a27290f5",5741:"a30a8c313849dd85f885",5742:"0e2257c748b460bd861d",5758:"ac88048054d54877cb13",5805:"d68f8d272f2e86e89cb3",5817:"eb2cb2a5cddafaf5c3fa",5903:"75556896fca5892fff0d",5914:"4cdfcc4488cc146ec507",5941:"b7aadd963bb671e44395",5994:"997cec84f87db5be4062",6016:"07d67542ee44992b8eca",6023:"f64d0b1a1c11738b64b3",6028:"c36d178dc364a79e9170",6030:"39e3332f47fdc5d858a6",6032:"a108ebccb86ed98e5020",6042:"46ac735c8dbafc8d05b8",6062:"6b3870069c5e5415f0ba",6148:"6259016222313024bc1d",6159:"63b49f842d4cf4ed5aa0",6161:"11878c178cd957e1439c",6165:"14c97b7f325fb5d566ef",6183:"3571a514c5206633e149",6250:"cec6641547a9f1ca1109",6257:"040e0a4e772b5e5b48b9",6269:"cdc72ef2c8667acf3754",6312:"2278b2d018f8b3e1b4bf",6324:"15fc3712fbce87044dde",6327:"b15316d48624dbc18467",6333:"bdbd2cd953c95f994896",6370:"4a0e8b6dfa10fad6ac0e",6372:"95b6aba6aeb4cdfac293",6381:"977e085d16f731813db8",6405:"bc9137ed0d942d4989e1",6421:"d2258688ec66feef42a8",6437:"f3c8a76e28a78cae39e8",6446:"b3d04777d80decc9e712",6509:"5ffb672198b01ea10714",6513:"6cdf4e74cc12c893c687",6544:"0fdad5df0fd98d13ce3a",6570:"9a5bfd5c74d08aa2e428",6622:"5c9e3bfd07dcf73e6bd0",6629:"884c3c46fbe9bde4b4c0",6636:"ac4155928b5c75396cfe",6817:"1c140ee6343e746e0627",6831:"ea452d539c3577c3ce50",6852:"6158daa2699485fcea78",6862:"a321c02840d98c7c0e94",6868:"87a9972cb2969133fb82",6931:"16e3b040e50880e16a8c",6936:"2a686e95c35be3768341",6953:"08ef07a15bb87ccae234",6958:"4330f10f98f9321978b3",6998:"11b96f23a83b08b6326f",7032:"71f777c23b2a045a7152",7050:"d3a66c83d7dc7d726d98",7064:"9ad9a38319ed5c62a334",7073:"0821071683f5248ac88c",7085:"7ab5fac2008efd3037b5",7101:"e769efdf593b758be1e0",7109:"7b2b1f476792c3e89cef",7118:"ac048bd566eeb5e50866",7143:"3f7aeeb4d8ace8ece5ea",7160:"a562021a64e76c737226",7184:"c4e0a186a3056f38297c",7200:"9b505e94833a08f8fe69",7231:"0ff0c0afe74e8f830be6",7238:"9e3fde8a14dd9a9efc93",7271:"a3a95a2b521ece94279d",7290:"96824b6d67c0f5c41f8e",7296:"8670027eeea563c1230b",7320:"2ee11f371984a7ab89fa",7345:"f4edf45c3255740bca94",7347:"962e61337b9e579186b4",7376:"04a0f655246db95f044b",7387:"3302dde3b132e33fa04d",7406:"15d84e84cfb458d8e6f9",7427:"532e33cfd880407d5ab8",7467:"8d319c699e8ac63fd71c",7473:"e13f02f5dde7778d2938",7486:"776d51debf8b76eb9875",7496:"5d61254d741047a14387",7548:"9f2c7c56af4f013685b1",7553:"e1e83feff907a9f298b5",7564:"be729604cfe83e3b1293",7573:"0e32a7bcafc4d17d0279",7608:"9449fe0c37c9fe98541f",7632:"c3cea027633f70cb60ec",7675:"de31e96ba269fbc36015",7697:"540b04bf166878d48aec",7719:"ebd93d54f63d0f720929",7763:"8b14061068eea8aa48aa",7767:"3305be22d1ff80169f4a",7797:"a23bb736e8263f83f379",7822:"dc795102d6b4bf978ff5",7828:"48ff8cace4deb636d7e1",7844:"05b582c83be58832a9fe",7850:"d13ed7de0f1ad8f3bf60",7875:"395057594adc77cdcd44",7892:"1dda06309fe56dec16a5",7928:"83221ffcfa0636c6bf36",7982:"1c120
2a6b4a29dbda918c",7989:"c6f1204e0a6e7b063bf1",8019:"f1b4d76f61d1165b4b60",8034:"6185b095cb1bd5c88299",8066:"312bb1f51455ef76d0b5",8068:"3f40959fed1c1ff84db1",8079:"b86bc38c890bf4f70b15",8092:"30abbdbee500ca9bbc29",8137:"03d3da44ee01f82ff42d",8146:"711a27346de403851fff",8159:"601d3f59a012189c7dfb",8161:"96d0b804b6e2fc93cbb0",8242:"f4b06449fdb1a08f0ec2",8277:"4e74f098bad7d5a4f381",8296:"bb7ba83767da1e7519f5",8318:"9037c6eb32236ffe9864",8341:"b0726974217013b3d3b3",8343:"7914468c39d9b22b8830",8447:"d5b0774d3d5c3122564b",8477:"f4d62829993ee6e70dd6",8507:"7fa9e1c9e50275616bc9",8529:"f13f5966714a01808faa",8540:"88ee9ff4e471513c71fc",8554:"3702a13115324562db77",8562:"f3e77a0503a860a3f153",8573:"83330aab347a4f34d842",8602:"75304ebd090702ca0d08",8623:"8c8d25d782e33cc8c8b7",8725:"4232f0d38d3eddb03ca9",8727:"ed868a6859ddd387df6a",8732:"6f8b4be632dee50ce117",8768:"97f65f6be6e743db73a9",8792:"d6f51835010018b0bcef",8821:"6537e6dd5f73674edbec",8864:"701e98ea65b0a312df71",8870:"7434f9446cc4a05d1a4a",8889:"cc4a28e32c273ddf8cda",8894:"1b6c8b07dddde38a164f",8895:"2808896fec0708184fc4",8980:"debff2dbb72139d6cc9c",9060:"34d740bd38267e0b14bf",9091:"7fbc11dae69e40c5bf4c",9132:"63f58b0d74c8763dd4dd",9149:"0d30cfec682c24955261",9157:"78edd950bcadcdfe0a30",9182:"361a2ae5eb8458a0c468",9197:"04dfe5e481d9a0b0674b",9284:"b7f6c161cb9c3589e02b",9300:"7dddf3276bb4d2768d13",9337:"5990f30257217f8d947c",9339:"aa7bc7ea676d5438989c",9426:"0a99bc1f5e856e7ef13b",9517:"cb2875e37e47a05fa595",9542:"3f4c41fed0f2aa52afef",9545:"eb091d1b11363f8585a9",9558:"0cd125714136a3f2c2a9",9628:"c86272934b3faf99ecc5",9670:"0961ea9bda0b9a46ab20",9671:"723939d4c155f0389233",9678:"ca50e722b4618647d705",9682:"967f406c442e57e613cd",9703:"b6602231e3fa1a3df581",9713:"8182af1b3e018f232cf4",9767:"8c73b53ea5eb4d98aab3",9840:"dc708839a91ead316577",9841:"327cb3a3bcca169c41a9",9911:"3d5e3647d0d19dc0e080",9928:"15ba4ebfe01d3a4d0af3",9950:"8399660e573c31b42c68",9966:"6fc32d4cbdb41850eaf9"}[e]+".bundle.js",c.miniCssF=e=>"stylesheets/"+({303:"UsFont",378:"user",536:"contribute",555:"sel",915:"LeagueViewTeachers",1041:"tournament",1116:"AnnouncementView",1136:"AccountSettingsRoot",1162:"podcastEditView",1163:"docs",1189:"editor",1222:"lowUsageUsersAdmin",1433:"manageBillingComponentBeta",1465:"HackStackCyberView",1809:"account",1856:"ChinaFont",1866:"ai-league",1925:"libraryLogin",1992:"userSwitchAccountConfirm",2033:"clans",2167:"CodequestView",2328:"admin",2332:"mainLadderViewV2",2410:"RobloxView",2580:"i18n",2626:"ParentsView",2921:"libraryMain",2953:"courses",3e3:"PageCodequest",3033:"HackStackAlgebraView",3041:"JuniorView",3231:"tecmilenioSuccessComponent",3446:"onlineClassesSuccessComponent",3447:"CommunityView",3529:"standardsPage",3800:"pd",4057:"efficacy",4141:"ladder",4249:"podcastMain",4405:"SchoolsView",4459:"LeagueView",4705:"outcomesReport",4740:"OAuthAIYouthView",4781:"apiViews",4816:"GrantsView",4818:"teachers_new",5008:"mobile",5077:"podcastSingle",5106:"announcementEditView",5233:"LicenseStats",5309:"userSwitchAccount",5317:"ContactCNView",5335:"HomeCNView",5400:"manageBillingComponent",5556:"artisans",5709:"AllCoursesCertificatesView",5741:"ai",5758:"homeSubscriptionSuccessComponent",6016:"PagePartners",6028:"examPage",6032:"edLinkRedirectView",6042:"TestView",6183:"homeBeta",6269:"PrivacyView",6333:"AccountSettings",6405:"HoC2018",6852:"apcsp",6862:"LicensorView",6868:"ozariaPlay",6998:"CertificatesView",7032:"HomeView",7073:"standardsEditView",7320:"minigamePlay",7347:"play",7376:"PremiumFeaturesView",7406:"conceptSearchView",7473:"curriculum",7675:"paymentStudentLicenses",7844:"libraryDashboard",7982:"aiJunior",8079:"CLAView",8277:"ContactGEEKView",8318:"standardsSearchView",8573:"acr",8623:"conceptEditView",8895:"LegalView",9337:"dei",9545:"PageImpact",9558:"NotFoundView",9628:"guide",9671:"parentDashboard",9678:"AboutView",9713:"paymentComponent",9840:"teachers",9950:"PageCurriculum"}[e]||e)+"-"+{303:"19aebb5d9fb6529705bf",378:"9e0d91ebcac674c6f732",536:"cb73fdd2f84ac5aae311",555:"08507a2e53a97d958989",724:"02dad5a119b95e8140b5",746:"cdae18d1671a532c6b23",915:"ffc52ab57412fbbb43c8",1041:"0a37f73e846c6d324812",1116:"ac2ea3a9d6230d7602a1",1136:"3d02945861ecb99d3466",1162:"272a7a011b4cdf1cbb31",1163:"7447c85e2841576db490",1189:"c30e17e5afc901f3638c",1222:"e769d520c8e78d652453",1433:"f8d482682dc8fcf828dd",1465:"fcbd2545cf06a3260959",1809:"5f6c1a3cfacadc91af53",1856:"455f244bcf9fa919e2ac",1866:"ffc52ab57412fbbb43c8",1925:"013bc4b9320e34f1701a",1992:"d1255a8d878f055ad58a",2033:"5c7288f2c236342631b9",2167:"702db273e89898afa927",2328:"f8bebd45a16258ce889c",2332:"ed0f77f92f7faaa3c100",2410:"d6d100f047716d253b1a",2547:"1181715cdc87e5f7c7ea",2580:"9eb36c797ac65bbeab3d",2626:"159662352dab8c3e91d8",2921:"084a84146fd4b1b7a9dd",2953:"e458278ad2b0c0767cc1",3e3:"0f34f5073f545ed04b85",3033:"5df384c0990e778af7f9",3041:"682dea31cd2128a64a7
2a",3231:"8de9d2645faa1e15c812",3446:"378d50367f40843b86d7",3447:"e133aa1d2b67eb9c57e2",3529:"66594eecb7ff3c89c679",3800:"f74e8675ac4edfd053a9",4057:"94e6b4f929cd90767bdf",4141:"947154c071cfe84903be",4249:"df59ef70dbee712a3e43",4405:"88a2c6c2643735520cd6",4459:"7d12f2100ce75280df11",4705:"2404693ec0d8a16aa139",4740:"134653c7dd34f1af9883",4781:"0bd18f01791bac45fd7e",4816:"363fcc9590cd5491e30d",4818:"be432aa6dcb4006d977b",5008:"2a774a642f29664341ef",5077:"c1878db2adf4fd86d75e",5106:"272a7a011b4cdf1cbb31",5233:"461332e2ee5a2a68adbb",5309:"8eb9a14defc08328c5ec",5317:"b9f1aca2fb0633526f66",5335:"4dd7036ac6add2b988b1",5400:"519a5a76756b96ed30b8",5556:"350965e0884abd91c3cf",5659:"0a0ee0291a95f7dfaf6c",5709:"1a0d0026be12e2a3965a",5741:"f2b6476620ede8b04614",5758:"c7665470b06c9b0c70e8",6016:"89e8e10b83ae45d9d9f0",6028:"4f2abcf5d9c9f614be00",6032:"5757fc8ed50f375d5378",6042:"a6a9b39bb9f024d10cd9",6183:"3f00a4a9d274a41956a1",6269:"122f1771e46941640426",6333:"3d02945861ecb99d3466",6381:"ca441015f488a7acfc3a",6405:"13e5d72507b9b14ba81e",6570:"2fc769c9a829e8e4cd8a",6852:"91b79211ef5a14e841f8",6862:"4677e6274c68217d8b3d",6868:"28cb590a97ec7f95606d",6998:"1a0d0026be12e2a3965a",7032:"e6eafdf116e1c93eb2df",7073:"07e46f75efc439c9cef9",7271:"419b87bf2a3c932d4322",7290:"2438c63fd4f0474f76e5",7320:"573e4b13ac95e9834a2c",7347:"7888f911549e7a562412",7376:"66d675b5b8b3adea4e46",7406:"9a4201858b2e0f73be4a",7473:"4e2634f0d673a2944c61",7675:"43293cf4542912d3d506",7844:"223cc020cdb92554c8da",7982:"a04ac67c9ae989ef8706",8068:"2b4cbfa0d984daf3348a",8079:"35ea6417c042380af9e6",8277:"544b7d934284d628778a",8318:"64c8432ea97abfd5c646",8573:"9d1f7bef180d2b7e7ea7",8623:"a6eb89585f93f2818c41",8895:"959b8491b1e6e68ae17c",9284:"6e22d7e18b28d81492f6",9337:"294fbe3f56fc256f18d7",9545:"29393648e50c6b40e305",9558:"26e52fa6a03af6d6dd18",9628:"19ee98b6f2aa87e9356a",9671:"a4c521eb6e751476184d",9678:"738974eda2d6ea98fb41",9713:"bfd9677b9bc86e21a4fc",9767:"d021622942f84fda0cfa",9840:"9a49ee27459170d453ab",9950:"90096292f17d64d47a4b"}[e]+".css",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="codecombat:",c.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var a,s;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){a=d;break}}a||(s=!0,(a=document.createElement("script")).charset="utf-8",a.timeout=120,c.nc&&a.setAttribute("nonce",c.nc),a.setAttribute("data-webpack",r+o),a.src=e),n[e]=[t];var p=(t,r)=>{a.onerror=a.onload=null,clearTimeout(f);var o=n[e];if(delete n[e],a.parentNode&&a.parentNode.removeChild(a),o&&o.forEach((e=>e(r))),t)return t(r)},f=setTimeout(p.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=p.bind(null,a.onerror),a.onload=p.bind(null,a.onload),s&&document.head.appendChild(a)}},c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),c.p="/",o=e=>new Promise(((t,n)=>{var r=c.miniCssF(e),o=c.p+r;if(((e,t)=>{for(var n=document.getElementsByTagName("link"),r=0;r<n.length;r++){var o=(a=n[r]).getAttribute("data-href")||a.getAttribute("href");if("stylesheet"===a.rel&&(o===e||o===t))return a}var i=document.getElementsByTagName("style");for(r=0;r<i.length;r++){var a;if((o=(a=i[r]).getAttribute("data-href"))===e||o===t)return a}})(r,o))return t();((e,t,n,r)=>{var o=document.createElement("link");o.rel="stylesheet",o.type="text/css",o.onerror=o.onload=i=>{if(o.onerror=o.onload=null,"load"===i.type)n();else{var a=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.href||t,c=new Error("Loading CSS chunk "+e+" failed.\n("+s+")");c.code="CSS_CHUNK_LOAD_FAILED",c.type=a,c.request=s,o.parentNode.removeChild(o),r(c)}},o.href=t,document.head.appendChild(o)})(e,o,t,n)})),i={2143:0,6202:0},c.f.miniCss=(e,t)=>{i[e]?t.push(i[e]):0!==i[e]&&{303:1,378:1,536:1,555:1,724:1,746:1,915:1,1041:1,1116:1,1136:1,1162:1,1163:1,1189:1,1222:1,1433:1,1465:1,1809:1,1856:1,1866:1,
21925:1,1992:1,2033:1,2167:1,2328:1,2332:1,2410:1,2547:1,2580:1,2626:1,2921:1,2953:1,3e3:1,3033:1,3041:1,3231:1,3446:1,3447:1,3529:1,3800:1,4057:1,4141:1,4249:1,4405:1,4459:1,4705:1,4740:1,4781:1,4816:1,4818:1,5008:1,5077:1,5106:1,5233:1,5309:1,5317:1,5335:1,5400:1,5556:1,5659:1,5709:1,5741:1,5758:1,6016:1,6028:1,6032:1,6042:1,6183:1,6269:1,6333:1,6381:1,6405:1,6570:1,6852:1,6862:1,6868:1,6998:1,7032:1,7073:1,7271:1,7290:1,7320:1,7347:1,7376:1,7406:1,7473:1,7675:1,7844:1,7982:1,8068:1,8079:1,8277:1,8318:1,8573:1,8623:1,8895:1,9284:1,9337:1,9545:1,9558:1,9628:1,9671:1,9678:1,9713:1,9767:1,9840:1,9950:1}[e]&&t.push(i[e]=o(e).then((()=>{i[e]=0}),(t=>{throw delete i[e],t})))},(()=>{var e={2143:0,6202:0};c.f.j=(t,n)=>{var r=c.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else if(/^(2332|6333|915)$/.test(t))e[t]=0;else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=c.p+c.u(t),a=new Error;c.l(i,(n=>{if(c.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;a.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",a.name="ChunkLoadError",a.type=o,a.request=i,r[1](a)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,a,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in a)c.o(a,r)&&(c.m[r]=a[r]);s&&s(c)}for(t&&t(n);u<i.length;u++)o=i[u],c.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunkcodecombat=self.webpackChunkcodecombat||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";c(157915),c(813254),c(128594),c(535666),c.g.$=window.$=c.g.jQuery=window.jQuery=c(619755),window.features=window.features||{},window.features&&window.features.chinaUx?c.e(1856).then(c.t.bind(c,753286,23)):c.e(303).then(c.t.bind(c,867972,23)),c(153870),c(426764)})()})(); 3//# sourceMappingURL=app.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.