/*! ds-bootstrap - v1.0.0.33225 - 2024-09-17 1:22am UTC * Copyright (c) 2024 ; Not Licensed */!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(t,n){for(var i=0;i0&&n.traverseMenu(e,i.links)}))}},{key:"updateMenuStrings",value:function(){var e=l.getPath(this.frame,"navData.outline.links",[]);this.traverseMenu((function(e){e.displaytext=s.getUpdatedTextData("menuItem","".concat(e.translationId,"-Name"),e.displaytext)}),e)}},{key:"updateGlossaryStrings",value:function(){(this.frame.glossaryData||[]).forEach((function(e){var t=e.translationId;e.title=s.getUpdatedTextData("glossaryItem","".concat(t,"-Term"),e.title),e.content=s.getUpdatedTextData("glossaryItem","".concat(t,"-Definition"),e.content)}))}},{key:"updateResourcesStrings",value:function(){l.getPath(this.frame,"resourceData.resources",[]).forEach((function(e){var t=e.translationId;e.title=s.getUpdatedTextData("resourceItem","".concat(t,"-Title"),e.title)}))}},{key:"updateNoteStrings",value:function(){(this.frame.notesData||[]).forEach((function(e){var t=e.slideId,n=i.last(t.split(".")),r=s.getUpdatedTextData("slideNote","".concat(n,"-Note"));null!=r&&null!=DS.renderHtmlString&&(e.content=DS.renderHtmlString(r))}))}},{key:"updateReviewStrings",value:function(){this.updateMenuStrings(),this.updateGlossaryStrings(),this.updateResourcesStrings(),this.updateNoteStrings(),this.title.text=s.getUpdatedTextData("projectTitle","project-Title",this.title.text),this.notifyStringsUpdated()}},{key:"setLocalizationData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.frame.stringTables=e.stringTables,this.frame.navData=e.navData,this.frame.resourceData=e.resourceData,this.frame.glossaryData=e.glossaryData,this.frame.notesData=e.notesData,this.frame.controlStrings=e.controlStrings.reduce((function(e,t){var n=t.id,i=t.value;return e[n]=i,e}),{}),this.title.text=this.frame.controlStrings.title,t||this.notifyStringsUpdated()}},{key:"notifyStringsUpdated",value:function(){r.trigger(o.strings.UPDATE_STRINGS),r.trigger(o.navData.REFRESH_VIEW),r.trigger(o.glossary.REFRESH_VIEW),r.trigger(o.resources.REFRESH_VIEW),r.trigger(o.transcript.REFRESH_VIEW),r.trigger(o.frame.REFLOW)}},{key:"setupControlOptions",value:function(){var e=this.frame.controlOptions.sidebarOptions;this.sidebarOpts=e,this.bottomBarOpts=this.frame.controlOptions.bottomBarOptions,this.topTabs=e.tabs.linkRight||[],this.topTabsLeft=e.tabs.linkLeft||[],this.topTabsRight=e.tabs.linkRight||[],this.sidebarTabs=e.tabs.sidebar||[],this.outlineInSidebar=this.sidebarTabs.some((function(e){return"outline"===e.name})),this.buttonOptions=this.frame.controlOptions.buttonoptions,this.title={enabled:e.titleEnabled,text:e.titleText}}},{key:"optionChangesRequireMenuRefresh",value:function(e,t){return e.wrapListItems!==t.wrapListItems||e.autonumber!==t.autonumber}},{key:"onLayoutChanged",value:function(e,t){this.setLayout(e,t)}},{key:"hasTopLinks",value:function(){return 0!==this.topTabsLeft.length||0!==this.topTabsRight.length}},{key:"getControlString",value:function(e){return s.getUpdatedTextData("frameLink","".concat(e,"-Link"),l.getPath(this.frame,"controlStrings.".concat(e),null))}},{key:"getString",value:function(e){var t=this.currLayout.string_table,n=this.frame.stringTables[t].string[e];return null==n?(c.includes(e)||(c.push(e),console.warn("could not find ".concat(e," in string table ").concat(t))),e.replace("acc_","").replace(/_/g," ")):n}},{key:"setDocked",value:function(e,t,n){t===a.docked.NONE?(this.dockedStates[e]=null,delete this.dockedStates[e]):this.dockedStates[e]={dockedState:t,width:n};var i=Object.keys(this.dockedStates);0===i.length?this.dockSettings={dockedState:a.docked.NONE,width:0}:t!==a.docked.NONE?this.dockSettings={dockedState:t,width:n}:this.dockSettings=this.dockedStates[i[0]]}},{key:"getDockedWidth",value:function(){var e=this.dockSettings,t=e.dockedState,n=e.width;return t!==DS.constants.docked.NONE?n:0}},{key:"setLayout",value:function(e,t){this.currLayout=this.frame.layouts[e],this.currControlLayout=this.frame.controlLayouts[e],this.layouts[t]=this.currControlLayout,r.trigger(o.frameModel.LAYOUT_CHANGED,this.currControlLayout,t)}},{key:"getWndControlLayout",value:function(e){return this.layouts[e]||this.currControlLayout}},{key:"dir",value:function(e){if(null!=e)return this.rtl?e.reverse():e}}],u&&t(n.prototype,u),f&&t(n,f),Object.defineProperty(n,"prototype",{writable:!1}),e}(),f=u;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 h(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}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 i,r,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(e,t)}(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 y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0?n:0,e.y=e.top=0,e.x=e.left=t.l+n,e.update(!0),t.l=e.x+e.w},H=function(e,t,n){B(e),n=e.w>0?n:0,e.y=e.top=0,e.x=e.left=t.r-e.w-n,e.update(!0),t.r=e.x},N=function(e,t,n){B(e),n=e.h>0?n:0,e.x=e.left=0,e.y=e.top=t.t+n,e.update(!0),t.t=e.y+e.h},F=function(e,t,n){B(e),n=e.h>0?n:0,e.x=e.left=0,e.y=e.top=t.b-e.h-n,e.update(!0),t.b=e.y},W={l:M,r:H,t:N,b:F},V=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ViewLogic=t,this.params=n,this.nameKey=null!=n&&n.nameKey||t.nameKey,this.enabled=!0}var t,n,i;return t=e,n=[{key:"init",value:function(e){if(this.hasInited)console.warn("has already initialized",this);else{var t;this.hasInited=!0;var n=this.ViewLogic,i=this.params;null==i&&null!=n?i=n:null!=n&&(t=!0),w.isFunction(i)&&(i=i(this.nameSpace||e)),i.w=i.w||i.minW||100,i.h=i.h||i.minH||100,this.orientationProps(i,"x","y","w","h","scale"),(i=Object.assign({position:"absolute",x:0,y:0,minW:0,maxW:Number.MAX_SAFE_INTEGER,minH:0,maxH:Number.MAX_SAFE_INTEGER,wPad:0,scale:1,visibility:"reflow",visual:!0,bgColor:null,overflow:"hidden",origin:"center center",z:null,opacity:null,visible:!0,attrs:{},noContent:!0,calcTextSize:!1},i)).calcTextSize&&(i.noContent=!1),this.noContent=i.noContent,this.lastWidthByText=0,this.lastHeightByText=0,this.padLeft=i.padLeft||0,this.padRight=i.padRight||0,this.childDef=i.childDef,this.childViews=i.childViews,this.updateHook=i.updateHook,this.onCaptionChanged=i.onCaptionChanged,i.childViews=null,i.updateHook=null,i.childDef=null,i.nameKey=null,i.onCaptionChanged=null,Object.assign(this,i.methods),i.methods=null,this.createDynamicGetters(i),i.visual&&(this.el=document.createElement(i.tag||"div"),this.initAttributes(i.attrs),this.initStyles(i),"button"===i.tag&&(this.el.style.cursor="pointer"),this.initContent(i),i.add&&A.appendChild(this.el),this.hasInitialized=!0),this.initVisibility(i),this.initChildRefs(),t&&(this.viewLogic=new n(this))}}},{key:"orientationProp",value:function(e,t){var n="".concat(t,"l"),i="".concat(t,"p");null!=e[n]&&null!=e[i]&&(e[t]=function(){return O.isLandscape?this[n]:this[i]})}},{key:"orientationProps",value:function(e){for(var t=this,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:function(){return!0},t=0;return null!=this.children&&this.children.forEach((function(n){e(n)&&(n.update(),t+=n.w)})),t}},{key:"calcChildrensHeight",value:function(){var e=0;return null!=this.children&&this.children.forEach((function(t){t.update(),e+=t.h})),e}},{key:"positionChildren",value:function(e){var t=e.vertical,n=e.toTop,i=e.toLeft,r=e.pad,o=e.startPos,a=e.reverse,l=void 0!==a&&a,s=e.hook,c=void 0===s?w.noop:s,u=e.rtl,f=void 0!==u&&u,d=e.sizeToChildren,h=e.alignChild,y=t?n?F:N:i?H:M,b=Object.assign({l:o,r:o,t:o,b:o},e.bounds),v=l!==f?this.children.slice().reverse():this.children,g=p(t?["height","t"]:["width","l"],2),m=g[0],S=g[1],k=O.isLandscape?w.first:w.last;v.forEach((function(e){(e.beforeReflowHook||w.noop)();var t=h&&k(e.parentAlign);!e.visible&&"reflow"===e.visibility||"-"===t||(t?W[t](e,b,r):y(e,b,r),c(e))})),d&&(this[m]=b[S])}},{key:"flowChildren",value:function(e){(e=Object.assign({pad:0,sizeToChildren:!1,startPos:0,toLeft:!1,reverse:!1,fullUpdate:!1,rtl:!1,hook:function(){}},e)).fullUpdate?this.hasAllChildren()&&(this.positionChildren(e),this.updateSize()):this.positionChildren(e)}},{key:"isBlocked",value:function(){if(k.theme.isClassic)return!1;var e=G.getTopNameSpace(),t=G.getCurrentNameSpace(),n=G.getBlocker(t.name);return null!=e&&null!=n&&n.visible}},{key:"setEnabled",value:function(e,t){this.enabled!=e&&(this.enabled=e,e?j(this.el,"cs-disabled"):T(this.el,"cs-disabled"),this.el.setAttribute("aria-disabled",!e));var n=this.el.getAttribute("data-tabindex");null!=n&&this.el.setAttribute("tabindex",t&&!e||this.isBlocked()?-1:n)}},{key:"setVisibility",value:function(e,t){var n=this.visible!==e,i=!1;return"no-reflow"===this.visibility?(this.el.style.visibility=e?"visible":"hidden",this.el.style.pointerEvents=e?"":"none"):"reflow"===this.visibility&&(this.el.style.display=e?"block":"none",i=!0),t&&(this.layoutDefaultVisible=e),this.visible=e,n&&C(this,"viewLogic.didChangeVisibility")&&this.viewLogic.didChangeVisibility(e),i}},{key:"childVisibilityChanged",value:function(){null!=this.childVisibilityChangedHook?this.childVisibilityChangedHook():null!=this.parent&&this.parent.childVisibilityChanged()}},{key:"update",value:function(e){null==this.beforeUpdateHook||e||this.beforeUpdateHook(),this.updateSize(),this.updateTrans(),null!=this.updateHook&&this.updateHook()}},{key:"updateChildren",value:function(e){this.children.forEach((function(t){t.update(),e&&t.updateChildren(e)}))}},{key:"doTextCalcs",value:function(){var e=1/S.getScale(),t=this.content.style.width,n=this.el.style.display;(DS.flagManager.multiLangSupport||DS.flagManager.aiCourseTranslation)&&(this.el.style.display="block",this.content.style.width="fit-content");var i=this.content.clientWidth*e,r=this.content.clientHeight*e;(DS.flagManager.multiLangSupport||DS.flagManager.aiCourseTranslation)&&(this.content.style.width=t,this.el.style.display=n),this.lastWidthByText=i+4+this.padLeft+this.padRight,this.lastHeightByText=r+4}},{key:"wasAppended",value:function(){var e=this;this.calcTextSize&&this.doTextCalcs(),null!=this.childViews&&this.childViews.forEach((function(t){"string"==typeof t&&(t=G.getOrCreateView(t)),t.init(e.nameSpace),e.append(t)}))}},{key:"setChildNum",value:function(e){this.defaultChildNum=e}},{key:"hasAllChildren",value:function(){return this.hasInitialized&&this.children.length===this.defaultChildNum}},{key:"append",value:function(e,t){if(e.parent=this,this.children[w.camelCase(e.nameKey)]=e,t?this.children.unshift(e):this.children.push(e),this.noContent||e.outsideContent?this.el.appendChild(e.el):this.content.appendChild(e.el),e.wasAppended(),e.update(),null==e.nameSpace){for(var n=this;null!=n&&null==n.nameSpace;)n=n.parent;e.nameSpace=n.nameSpace,G.hasNamespace(n.nameSpace)?G.getNamespace(n.nameSpace)[e.nameKey]=e:console.warn("could not find namespace ".concat(n.nameSpace," when appending"))}}},{key:"destroy",value:function(){null!=this.children&&this.children.forEach((function(e){return e.destroy()})),null!=this.viewLogic&&this.viewLogic.teardown(),null!=this.el.parentNode&&this.el.parentNode.removeChild(this.el),this.nameSpace=null}},{key:"startFloat",value:function(){this.floating=!0,this.lastFloatParent=this.el.parentNode,this.shouldReparent&&G.getNamespace(this.nameSpace).wrapper.el.appendChild(this.el)}},{key:"endFloat",value:function(){this.floating&&(this.floating=!1,this.shouldReparent&&this.lastFloatParent.appendChild(this.el))}},{key:"right",value:function(){return this.floating?0:this.x+this.w}},{key:"bottom",value:function(){return this.floating?0:this.y+this.h}},{key:"getBox",value:function(){if(null==G.getNamespace(this.nameSpace).wrapper)return null;var e=k.theme.isClassic&&G.getNamespace(this.nameSpace).wrapper.dimScale||1,t=(G.getNamespace(this.nameSpace).wrapper.scale||1)*e,n=this.x,i=this.y,r=this.w,o=this.h,a=this.offsets,l=(a=void 0===a?{}:a).l,s=void 0===l?0:l,c=a.t,u=this;for(n=(n+s)*t,i=(i+(void 0===c?0:c))*t;u=u.parent;){var f=null!=u.parent?t:1,d=u.offsets,h=(d=void 0===d?{}:d).l,p=void 0===h?0:h,y=d.t,b=void 0===y?0:y;n+=(u.x+p)*f,i+=(u.y+b)*f}return{x:n,y:i,w:r*=t,h:o*=t}}}],n&&b(t.prototype,n),i&&b(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();V.propFns={"fit-to-text-w":function(){return Math.max(this.minW,this.lastWidthByText)+this.wPad},"fit-to-text-h":function(){return Math.max(this.minH,this.lastHeightByText)},"vertical-center":function(){return this.parent.h/2-this.h/2},"horizontal-center":function(){return this.parent.w/2-this.w/2}},V.prop=function(e,t,n){if("number"==typeof n)e[t]=n;else if("string"==typeof n&&null!=V.propFns[n])Object.defineProperties(e,h({},t,{get:V.propFns[n],set:w.noop}));else if("string"==typeof n&&n.endsWith("%")){var i=parseFloat(n)/100,r=null!=I[t]?I[t]:t;Object.defineProperties(e,h({},t,{get:function(){return this.parent[r]?e.parent[r]*i:0},set:w.noop}))}else if(w.isFunction(n)){var o;if("w"===t||"h"===t){var a=n.bind(e),l=t.toUpperCase(),s=e["min".concat(l)],c=e["max".concat(l)];o=function(){var e=a();return ec&&(e=c),e}.bind(e)}else o=n;Object.defineProperties(e,h({},t,{get:o,set:w.noop}))}else e[t]=n;e[t]=n};var U={},K={},z={},Q=function(e){var t,n,i=d(e);return"string"===i?t=e:"object"===i?n=e[t=Object.keys(e)[0]]:console.warn("invalid view definition. ".concat(e," is a ").concat(d(e))),{viewName:t,children:n}},G={nameSpaces:{},nsStack:[],getNamespace:function(e){return this.nameSpaces[e]},hasNamespace:function(e){return null!=this.nameSpaces[e]},setModel:function(e){return this.model=e,this},resetStates:function(e){var t=this.getNamespace(e);w.forEach(t,(function(e){return e&&e.setEnabled&&e.setEnabled(!0)}))},updateVisibility:function(e,t){var n=!1;for(var i in e){var r=this.nameSpaces[t][i];if(null!=r)r.setVisibility(e[i],!0)&&(n=!0)}return n},def:function(e,t,n){null==n?t.nameKey=e:n.nameKey=e;var i=new V(t,n);return null==U[e]?(U[e]=i,K[e]={ViewLogic:t,p:n},z[e]=0):console.warn("views connot share the same name ".concat(e)),i},addNameSpace:function(e){g=e,this.nameSpaces[g]=this.nameSpaces[g]||{name:e,topLevelElements:[],isAttached:!0,tabReachable:!0,detach:function(){this.isAttached=!1,this.topLevelElements.forEach((function(e){return A.removeChild(e.el)}))},reattach:function(){this.isAttached=!0,this.topLevelElements.forEach((function(e){return A.appendChild(e.el)}))},updateTabIndex:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=function(t){if(!t.dataset.leavealone){var n=t.getAttribute("data-tabindex");null==n&&(n=t.tabIndex,t.setAttribute("data-tabindex",n)),t.tabIndex=e.tabReachable?n:-1}};this.topLevelElements.forEach((function(r){var o=function(e,t){t?e.el.removeAttribute("aria-hidden"):e.el.setAttribute("aria-hidden",!0)};t&&(r.children.some((function(e){return"startoverlay"===e.nameKey}))?r.children.filter((function(e){return"startoverlay"!==e.nameKey})).forEach((function(t){return o(t,e.tabReachable)})):o(r,e.tabReachable)),r.el.querySelectorAll(n?"[tabIndex]:not(.acc-shadow-el):not(.slide-object)":"[tabIndex]").forEach((function(e){return i(e)})),"lightBoxClose"===r.nameKey&&i(r.el)}))}}},update:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(e,t){e.forEach((function(e){w.isFunction(e)?e():Array.isArray(e)?update(e,t):null==e||!e.update||e.noUpdate&&!t||(e.update(),t&&e.updateHtml())}))})),getViewConfig:function(e){var t=K[e];return{name:e,ViewLogic:t.ViewLogic,p:t.p}},getOrCreateView:function(e){if(++z[e]>1){var t=K[e],n=t.ViewLogic,i=t.p;return new V(n,i)}return U[e]},tree:function(e,t){for(var n=this,i=[],r=function t(i){if(null!==i){var r=Q(i),o=r.viewName,a=r.children,l=n.nameSpaces[e][o]=n.getOrCreateView(o);if(null!=l){if(l.nameSpace=e,C(a,"length")>0){l.setChildNum(a.length),l.hasChildren=!0;for(var s=0;se.length)&&(t=e.length);for(var n=0,i=new Array(t);n3&&void 0!==arguments[3]?arguments[3]:"",r=se(t,i);if(null==ae[r]){var o=J.find((function(e){return e.selectorText===r}));null==o&&(oe=!oe,r=se(t,i),o=J.find((function(e){return e.selectorText===r}))||{}),ae[r]=o.style||{}}return ae[r][n]||""}}else{var ce=function(e,t){var n=document.createElement(e);return n.setAttribute("class",t),n},ue=/^\./,fe=/\./g;re.getColor=function(e,t,n){var i,r,o=(arguments.length>4&&void 0!==arguments[4]&&arguments[4]||t).split(/\s+/),a=G.getNamespace(e).wrapper.el;o.forEach((function(e,t){if(ue.test(e))s=e.replace(fe," "),i=ce("div",s);else{var n=Z(e.split(".")),o=n[0],l=n.slice(1);i=ce(o,l.join(" "))}var s;0===t&&(i.style.position="absolute",i.style.display="none",r=i),a.appendChild(i),a=i}));var l=window.getComputedStyle(i).getPropertyValue(n);return""===l&&"border-color"===n&&(l=window.getComputedStyle(i).getPropertyValue("border-top-color")),r.parentNode.removeChild(r),l||""}}var de=re;function he(e){return he="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},he(e)}function pe(e,t){for(var n=0;n .mobile-load-title-overlay");null!=e&&e.parentNode.removeChild(e)}},{key:"getSpinLoader",value:function(){return document.querySelector("body > .slide-loader")}},{key:"onLoaderMute",value:function(){var e=this.getSpinLoader();null!=e&&(e.style.opacity=0)}},{key:"showLoaderDelayed",value:function(e){clearTimeout(this.loaderTimeout),this.loaderTimeout=setTimeout(this.onLoaderShow,e)}},{key:"onLoaderHide",value:function(){clearTimeout(this.loaderTimeout),this.getSpinLoader().style.display="none",we.addClass(document.getElementById("preso"),"hide-slide-loader"),Oe.trigger(Ee.app.HIDE_LOADER)}},{key:"onLoaderUnmute",value:function(){var e=this.getSpinLoader();null!=e&&(e.style.opacity=1)}},{key:"onLoaderShow",value:function(e){e>0?this.showLoaderDelayed(e):(this.getSpinLoader().style.display="block",we.removeClass(document.getElementById("preso"),"hide-slide-loader"),Oe.trigger(Ee.app.SHOW_LOADER))}}])&&pe(t.prototype,n),i&&pe(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}(),xe=DS,Le=xe.globalEventHelper.addWindowListener,Pe=xe.events,Te=Pe.ds,_e=Te.FRAME_DATA_LOADED,je=Te.PRESO_READY,De=Pe.window.STACKING_CHANGED,Ae=Pe.frame,Ie=Ae.MODEL_READY,Re=Ae.SCALE,Be=Pe.resume.SET_DATA,Me=Pe.startOverlay.READY,He=Pe.controlOptions.RESET,Ne=Pe.sidebar.ACTIVE_TAB_SET,Fe=Pe.renderTree.DESTROYED,We=xe.constants,Ve=(We.els.PRESO,We.refs.FRAME),Ue=xe.detection.theme,Ke=xe.pubSub,ze=xe.focusManager,Qe=(xe.flagManager,xe.playerGlobals),Ge=xe.stringTabler,Ze=xe.shortcutManager,qe=xe.dom,Ye={},Xe=function(e){var t=G.nsStack.indexOf(e);t>=0&&G.nsStack.splice(t,1)},$e=function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];G.nsStack.forEach((function(t,n,i){t.tabReachable=n===i.length-1&&e,t.updateTabIndex()}))},Je=function(e){ye={createWindow:function(t){var n,i,r=this,o=G.getNamespace(t),a=function(){return function(e){var t=G.getNamespace(e),n=t.isAttached;t.reattach(),Xe(t),G.nsStack.push(t),n||Ye[e].all();var i=G.nsStack.length;G.nsStack.forEach((function(e,t){var n=e.slide.el;t===i-1?(qe.addClass(n,"primary-slide"),qe.removeClass(n,"secondary-slide")):(qe.removeClass(n,"primary-slide"),qe.addClass(n,"secondary-slide"))})),$e(),Ke.trigger(De,e)}(t)},l=function(e,n,i){if(e===t){var r=i?i.getWndBlockerBackground():"",a=G.getBlocker(e);null!=a&&(a.setBackgroundColor(r),a.setVisibility(n)),o.tabReachable=!n,o.updateTabIndex(!1,!0)}};return null==o&&(G.addNameSpace(t),i=e[t](be),n=_.flow(Le("resize",(function(){i.resize(),Ke.trigger(Re)})),DS.pubSub.addListener(DS.events.utilityWindow.DOCKED,(function(){i.resize(),Ke.trigger(Re)}))),t===Ve?be.setLayout(be.frame.default_layout,Ve):i.all(),o=G.getNamespace(t),Ye[t]=i,o.moveToTop=a,Ue.isUnified&&(Ke.on(DS.events.frameModel.BLOCKED_CHANGED,l),Ke.on(DS.events.window.MAIN_CHANGED,(function(e,t){return l(t,!1)})))),a(),Ke.on(He,(function e(){var t=function(){var e=[],t=G.getNamespace(Ve).tabs.viewLogic.getSelectedTab();return t&&e.push(t.nameKey),_.each(G.getNamespace(Ve).topTabs.children,(function(t){_.each(_.filter(t.children,"viewLogic.showing",!0),(function(t){return e.push(t.nameKey)}))})),e}();Xe(G.getNamespace(Ve)),i.destroy(),DS.pubSub.trigger(Fe),G.nameSpaces[Ve]=null,n(),Ke.off(He,e),r.createWindow("_frame"),i.rerender(),t.forEach((function(e){Ke.trigger(Ne,e)}))})),{id:t,el:o.slide.el,wndEl:o.wrapper.el,captionEl:(o.captionContainer||{}).el,x:function(){return o.wrapper.x},y:function(){return o.wrapper.y},close:function(){o.zoomBounds=null,o.detach(),Xe(o),G.nsStack[G.nsStack.length-1].moveToTop(),ze.reCenter()},moveToTop:a,getWinScale:function(){return o.slide.winScale||1},getPinchZoomBounds:function(){return o.slide.pinchZoomBounds},onPinchZoom:Ye[t].pinchZoom?function(e){o.zoomBounds=e,Ye[t].pinchZoom()}:function(){},onWndBlockedChanged:l}},getSidebarPosition:function(){return be.sidebarOpts.sidebarPos},getDefaultLayout:function(){return ve.default_layout},getFonts:function(){return ve.fonts},getFontScale:function(){return be.frame.fontscale},getCaptionData:function(){var e=be.frame.controlOptions.controls,t={font:e.font,enabled:e.closed_captions},n=be.frame.controlOptions.ccOptions||{};return t.font=n.font,t.size=n.size,t.placement=n.placement,t.backgroundColor=n.backgroundColor,t.color=n.color,t.text=n.text,t},getNavData:function(){return be.frame.navData.outline.links},isReadOnlyOnce:function(){return ve.controlOptions.controls.readonlyOnce},topmostUnreachable:function(){return G.nsStack},setAllAccVisibility:function(e){_.forEach(G.nameSpaces,(function(t){var n=t.wrapper;e?n.el.removeAttribute("aria-hidden"):n.el.setAttribute("aria-hidden",!0)}))}},Ke.on(Be,$e),Ke.on(Me,(function(){$e(!1)})),Qe.player=ye},et=function(){ye.hasData=!0,Ke.trigger(_e,ye)},tt=DS,nt=tt.MicroScrollBar,it=tt.detection,rt=function(e){return null!=e&&2===e.split(".").length},ot=function(e,t){return e.some((function(e){var n=t[e.name];return null==n||"outline"===e.name&&n.enabled||!0===n}))};function at(e){return at="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},at(e)}function lt(e,t){for(var n=0;n=u-10?f=u-10-c:f<=10&&(f=10);var d=a-(s+10);d<=10&&(d=a+s+10),st.style.left="".concat(f,"px"),st.style.top="".concat(d,"px")},hideTooltip:function(e){null==st||null!=e&&e!==dt||(st.style.display="none",st.innerText="",st.style.left=0,dt=void 0)},updateTooltip:function(e,t){var n=st.getBoundingClientRect().width;st.innerText=t,st.style.left="".concat(e-n/2,"px")},runObjHoverOut:function(){null!=dt?dt.onHoverOut():yt.hideTooltip()}},bt=yt;function vt(e){return vt="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},vt(e)}function gt(e,t){for(var n=0;n
'}}));var Qt,Gt,Zt=DS,qt=Zt.detection,Yt=Zt.events,Xt=Zt.pubSub,$t=function(){return document.getElementById("app-top")||document.body},Jt=DS.utils.pxify,en=function(e){!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&&Vt(e,t)}(o,e);var t,n,i,r=Ut(o);function o(e){var t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=r.call(this,e)).visualNode=((n=document.createElement("div")).className="skipnav transparent",n.innerText=G.model.getString("acc_skipnavigation"),$t().appendChild(n),window.requestAnimationFrame((function(){Gt=n.clientHeight,Qt=n.clientWidth,n.className="skipnav",null!=n.parentNode&&n.parentNode.removeChild(n)})),n),DS._.bindAll(Kt(t),"onButtonClick"),t.onClick(t.onButtonClick),t}return t=o,n=[{key:"onFocus",value:function(){if(!qt.device.isMobile){DS.focusManager.takeFocusOff();var e=G.getTopNameSpace().slide,t=e.getBox(),n=t.x,i=t.y,r=t.w,o=t.h;Object.assign(this.visualNode.style,{top:Jt(i+o-Gt-50),left:Jt(n+r-Qt-50)}),e.el.style.opacity=.6,$t().appendChild(this.visualNode),Xt.trigger(Yt.skipNav.FOCUSED)}}},{key:"onBlur",value:function(){var e=G.getTopNameSpace().slide,t=this.visualNode.parentNode;e.el.style.opacity=1,null!=t&&t.removeChild(this.visualNode)}},{key:"onButtonClick",value:function(e){this.el.focus(),setTimeout((function(){DS.focusManager.onSlideStarted(null,DS.windowManager.getCurrentWindowSlide())}),100)}}],n&&Wt(t.prototype,n),i&&Wt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),tn=en,nn="skipnav";function rn(e){return rn="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},rn(e)}function on(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==rn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==rn(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rn(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}G.def(nn,tn,(function(){var e=G.model,t=e.getString("acc_skipnavigation");return{tag:"button",ariaStringId:"acc_skipnavigation",attrs:{id:nn,"aria-label":t,tabindex:0},visible:e.sidebarOpts.sidebarEnabled,x:-100,y:-100,w:1,h:1,html:t,methods:{updateDomStrings:function(){this.el.textContent=e.getString("acc_skipnavigation")}}}}));var an=DS,ln=an._,sn=an.pubSub,cn=an.events,un=an.detection,fn=an.constants.MOBILE_UI_SIZE,dn="top ".concat(150,"ms ease-in-out");function hn(e){return hn="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},hn(e)}function pn(e,t){for(var n=0;n0?(e.scrollbar.update(),e.hscrollbar.update()):window.requestAnimationFrame(t)}))}else this.scrollbar&&(this.scrollbar.setEnabled(!1),this.hscrollbar.setEnabled(!1))},html:'
\n
',noContent:!0}}));var Bn="logo";DS.flagManager;function Mn(e){return function(e){if(Array.isArray(e))return Hn(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)return;if("string"==typeof e)return Hn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Hn(e,t)}(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 Hn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);nr/i.data.actualWidth()?(t.style.width="auto",t.style.height="100%"):(t.style.width="100%",t.style.height="auto")}}}));var Nn="sidebar",Fn=DS,Wn=Fn.utils,Vn=Fn.TweenLite,Un=Fn.dom,Kn=Fn.events,zn=Fn.pubSub,Qn=Fn.detection;G.def(Nn,(function(e){var t=G.model,n=de.getColor(e,".cs-brandhighlight-bg","background-color",".cs-base.cs-custom-theme"),i=t.sidebarOpts.sidebarPos;Un.addClass(document.body,"sidebar-".concat(i));var r=.25,o=function(){var e=t.dockSettings||{},n=e.dockedState,i=e.width,r=n!==DS.constants.docked.NONE,o=window.innerWidth-(r?i:0),a=Qn.device.isPhone?.8*window.innerWidth:o/4;return Wn.clamp(245,400,a)},a=function(){return"left"===i?0:window.innerWidth-o()},l={x:a()},s=[];return{tag:"section",attrs:{id:Nn,class:"cs-left area-secondary-wrapper","aria-label":"sidebar"},overflow:"visible",visible:t.sidebarOpts.sidebarEnabled,pos:i,noContent:!1,shouldReparent:!1,xs:[0],data:{actualWidth:o},x:function(){var e=this,t=a();if(this.collapsed&&("left"===this.pos?t-=o():t+=o()),this.animate&&!this.animating){var n="left"===this.pos?-30:30;this.collapsed&&this.floating?(Un.addClass(document.body,"sidebar-closing"),Vn.to(this.content,r,{opacity:0,x:n,ease:"power4.out",onComplete:function(){Un.removeClass(document.body,"sidebar-closing"),Un.addClass(document.body,"sidebar-closed")}})):(Un[this.collapsed?"addClass":"removeClass"](document.body,"sidebar-closed"),Vn.set(this.content,{x:n,opacity:0}),Vn.to(this.content,r,{x:0,delay:.11,ease:"power2.out"}),Vn.to(this.content,r,{opacity:1,delay:.11,ease:"none",overwrite:!1}));var i=window.innerWidth,s=Vn.to(l,r,{x:t,onComplete:function(){e.animating=!1,e.animate=!1},onUpdate:function(){"right"===e.pos&&window.innerWidth!=i&&(s.kill(),e.animating=!1),zn.trigger(Kn.frame.REFLOW),zn.trigger(Kn.frame.SCALE)}});this.animating=!0}return this.animating||(l.x=t),this.floating?"right"===this.pos?(this.xs[0]=l.x-window.innerWidth,window.innerWidth):(this.xs[0]=l.x,0):(this.xs[0]=0,l.x)},w:function(){return this.visible?o():0},h:"100%",html:"\n \n
\n
\n
\n '),updateHook:function(){this.hasAllChildren()&&this[this.collapsed?"onSidebarHide":"onSidebarShow"]()},methods:{onSidebarHide:function(){this.onSidebarShow(),(s=Mn(this.el.querySelectorAll('[tabindex="0"]:not(#hamburger)'))).forEach((function(e){e.tabIndex=-1})),this.content.setAttribute("aria-hidden",!0)},onSidebarShow:function(){s.forEach((function(e){e.tabIndex=0})),this.content.removeAttribute("aria-hidden")}}}}));var Gn=function(){return"no icon"},Zn={next:function(){return'\n \n \n '},prev:function(){return'\n \n \n \n'},submit:function(){return'\n \n\n \n\n '},replay:function(){return'\n \n '},play:function(){return'\n \n '},pause:function(){return'\n \n \n '},volume:function(e,t){var n=Math.min(1,e/5),i=Math.min(1,Math.max(0,e/5-.5));return'\n \n \n \n \n \n \n \n \n \n \n ')},captionsOn:function(e){return'\n \n '},captionsOff:function(e){return'\n \n \n \n \n '},captions:function(){return'\n \n \n \n \n \n '},carrot:function(e){return'\n \n \n \n \n ')},search:function(){return'\n \n \n \n \n \n \n \n '},searchClear:function(){return'\n \n \n \n \n \n \n \n \n \n '},filter:function(){return'\n \n '},close:function(){return'\n \n \n '},clear:function(){return'\n \n \n '},hamburger:function(){return'\n \n \n \n '},file:function(){return'\n \n \n \n \n \n \n \n '},link:function(e){return'\n \n \n ')},settings:function(){return'\n \n \n \n '},playbackSpeed:function(){return'\n \n \n \n '},track:function(e,t){return'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ')},downArrow:function(e,t){return'\n
\n ')},checkmark:function(){return'\n \n \n \n '},lock:function(){return'\n \n \n \n \n \n'},lockedViewed:function(){return'\n \n \n \n \n \n'},languagePicker:function(){return'\n\n \n\n '}},qn={play:function(){return'\n \n '}},Yn=function(e){return DS.detection.env.isPerpetual?Zn[e]||Gn:qn[e]||Zn[e]||Gn},Xn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return window.innerWidth-e<900};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 Jn(e,t){for(var n=0;na||t)?(this.sidebar.autoCollapsed=!0,this.sidebar.collapsed=!0,this.setExpandedAttr().animateSidebar()):this.sidebar.autoCollapsed&&!this.sidebar.floating&&this.prevWidth0&&void 0!==arguments[0])||arguments[0];this.sidebar.collapsed=!this.sidebar.collapsed,this.sidebar.collapsed||(this.sidebar.autoCollapsed=!1),t?(this.onBlur(),this.setExpandedAttr().animateSidebar(),setTimeout((function(){e.sidebar.collapsed?e.onFocus():e.sidebar.el.querySelector('[tabIndex="0"]').focus()}),250)):this.setExpandedAttr().animateSidebar(),oi.trigger(ai.hamburger.TOGGLE,this.sidebar.collapsed)}},{key:"teardown",value:function(){hi=this.sidebar.collapsed,oi.off(ai.sidebar.CLOSE),oi.off(ai.sidebar.OPEN)}}],n&&Jn(t.prototype,n),i&&Jn(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),vi=bi,gi="hamburger";G.def(gi,vi,(function(e){var t=G.model,n=G.getNamespace(e).sidebar;return{tag:"button",ariaStringId:"sidebar_toggle",attrs:{id:gi,"aria-expanded":!t.sidebarOpts.closed,"aria-controls":"sidebar","aria-label":"".concat(t.getString("sidebar_toggle")),tabIndex:0},x:function(){return"left"===n.pos?n.data.actualWidth():-65},w:50,h:65,outsideContent:!0,html:'\n \n ")}}));var mi=DS.detection.deviceView,wi="topBar";G.def(wi,(function(e){var t=G.getNamespace(e),n=(t.sidebar,t.title,t.frame),i=t.slide,r=G.model;return{tag:"section",noTabIndex:!0,attrs:{id:wi,"aria-label":"top bar"},overflow:"visible",x:function(){var e=r.dockSettings,t=e.dockedState,n=e.width,o="left"===t?n:0;return i.sidebarXOffset+o},y:0,w:function(){var e=r.dockSettings,t=e.dockedState,o=e.width,a="none"!==t?o:0;return n.w-(i.sidebarWidthOffset+a)},h:function(){return mi.isMobile||i.topBarExists()?Pn:0}}}));var Si="title",ki=DS,Oi=ki.detection,Ei=ki.utils;function Ci(e){return Ci="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},Ci(e)}function xi(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 i,r,o,a,l=[],s=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(i=o.call(n)).done)&&(l.push(i.value),l.length!==t);s=!0);}catch(e){c=!0,r=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Li(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Li(e,t)}(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 Li(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n".concat(c?n.title.text:"","
").concat(l?'
'):"")},methods:{updateDomStrings:function(){c&&(this.viewLogic.labelEl.textContent=Ei.decodeHtml(n.title.text))}},visible:c}}));var Ri=DS,Bi=Ri.detection,Mi=Ri.events,Hi=Ri.pubSub,Ni=Ri.svgUtils,Fi=Ri._.bindAll,Wi={remaining:function(e,t){return DS.utils.formatSecondsAsTime(t-e,!0)},totalelapsed:function(e,t){return[e,t].map((function(e){return DS.utils.formatSecondsAsTime(e,!0)})).join(" / ")},elapsed:function(e){return DS.utils.formatSecondsAsTime(e,!0)},none:function(){return""}},Vi=function(e){!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&&ji(e,t)}(o,e);var t,n,i,r=Di(o);function o(e){var t,n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n=r.call(this,e),Fi(Ai(n),"onShow","onHide","onTick"),Hi.on((Pi(t={},Mi.timer.SHOW,n.onShow),Pi(t,Mi.timer.HIDE,n.onHide),t)),n.timeFormat=n.getTimeFormat(),n.isPieProgress=Bi.theme.isUnified,n}return t=o,(n=[{key:"getTimeFormat",value:function(){if(!Bi.deviceView.isClassicMobile){var e=G.model.sidebarOpts.timeFormat;if(e&&null!=Wi[e.toLowerCase()])return e.toLowerCase();if(!G.model.sidebarOpts.timeEnabled)return"none"}return"remaining"}},{key:"teardown",value:function(){var e;Hi.off((Pi(e={},Mi.timer.SHOW,this.onShow),Pi(e,Mi.timer.HIDE,this.onHide),e))}},{key:"onTick",value:function(e,t,n){if(this.view.children.timerText.el.innerHTML=Wi[this.timeFormat](t,n),!Bi.deviceView.isClassicMobile){var i=Ni.wheelPath(9,9,9,0,360*(1-e),this.isPieProgress);this.view.children.timerPath.el.setAttributeNS(null,"d",i)}}},{key:"onShow",value:function(e){null!=this.currentTimer&&this.onHide(),this.currentTimer=e,this.currentTimer.on("tick",this.onTick),this.toggleVisibility(!0),window.requestAnimationFrame(DS.pubSub.trigger.bind(DS.pubSub,DS.events.timer.SHOWN))}},{key:"onHide",value:function(){null!=this.currentTimer&&(this.currentTimer.off("tick",this.onTick),this.currentTimer=null,window.requestAnimationFrame(DS.pubSub.trigger.bind(DS.pubSub,DS.events.timer.HIDDEN))),this.toggleVisibility(!1)}},{key:"toggleVisibility",value:function(e){var t=xi(e?["add","remove"]:["remove","add"],2),n=t[0],i=t[1];document.body.classList[n]("timer-shown"),this.el.classList[i]("hidden"),this.el.classList[n]("shown"),this.view.setVisibility(e),this.view.parent.updateChildren(!0)}},{key:"onFocus",value:function(){var e=this.view.children.timerText.el.getBoundingClientRect(),t=e.left,n=e.top,i=e.width,r=e.height;t-=8,n-=8,i+=37,r+=12,DS.focusManager.setFocusRectOn(this.el,{left:t,top:n,width:i,height:r})}}])&&Ti(t.prototype,n),i&&Ti(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),Ui=Vi,Ki=DS.detection,zi="timer";G.def(zi,Ui,(function(e){var t=G.getNamespace(e),n=t.topBar,i=t.title,r=t.sidebar,o=t.hamburger,a=t.topEllipsis;return{noTabIndex:!0,attrs:{id:zi,"aria-label":"timer",class:"timer cs-timer"},overflow:"visible",visible:!1,methods:{hasUpperRightElement:function(){var e="right"===r.pos&&o.visible,t="left"===r.pos&&a.visible;return e||t}},x:function(){var e=G.model.rtl?n.w-240-(i.visible?i.w:0):n.w-230;return"right"===r.pos&&o.visible&&(e-=o.w),Ki.deviceView.isPhone&&(e+=4,Ki.orientation.isLandscape?e=window.innerWidth-this.w-5:this.hasUpperRightElement()?e-=58:e-=xn),e},y:function(){var e=Ln;return Ki.deviceView.isPhone&&Ki.orientation.isLandscape&&this.hasUpperRightElement()&&(e+=Ln),e},w:220,h:22,html:function(){return'\n
\n '.concat('\n \n\n \n\n \n\n \n '),"\n
\n
\n ")}}}));var Qi=function(e,t){return'\n
\n
\n
')};function Gi(e){return Gi="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},Gi(e)}function Zi(e,t){for(var n=0;n=0,a=i.xe.length)&&(t=e.length);for(var n=0,i=new Array(t);n0||!n.includes(this.currentTab)){var i=ur(n,1)[0];this.currentTab=i}if(null!=this.currentTab){this.currentTab.el.setAttribute("aria-selected",!0);var r=kr.getCurrentWindow();null!=r&&null!=r.getId&&"_frame"!==r.getId()||(this.currentTab.el.tabIndex=0)}this.active=n}}},{key:"onFocus",value:function(e){this.isFocused||(this.isFocused=!0,this.getInitialActive().setCurrent(),Lr("keydown",this.onKeydown))}},{key:"onBlur",value:function(e){this.el.contains(e.relatedTarget)||(this.isFocused=!1,hr(vr(o.prototype),"onBlur",this).call(this),Pr("keydown",this.onKeydown))}},{key:"onKeydown",value:function(e){var t=this.currentTab;wr.isActionKey(e.which)?(this.activeTab=this.currentTab,this.activateTab()):wr.isRightKey(e.which)?this.currentTab=this.getNextTab(this.currentTab.model.idx):wr.isLeftKey(e.which)?this.currentTab=this.getPrevTab(this.currentTab.model.idx):wr.isHomeKey(e.which)?this.currentTab=this.getFirstTab():wr.isEndKey(e.which)&&(this.currentTab=this.getLastTab()),t!==this.currentTab&&(null!=t&&(t.el.tabIndex=-1),this.setCurrent())}},{key:"activateTab",value:function(){null!=this.activeTab&&(mr.forEach(this.view.children,(function(e){return e.el.setAttribute("aria-selected",!1)})),this.activeTab.el.setAttribute("aria-selected",!0),this.activeTab.viewLogic.showPanel())}},{key:"setAsActive",value:function(e){this.activeTab=this.currentTab=e}},{key:"tabDidChangeVisibility",value:function(){this.view.visible&&(null!=this.activeTab&&this.activeTab.visible||(this.currentTab=this.activeTab=mr.first(this.getLiveChildren())),this.activateTab())}},{key:"setCurrent",value:function(){var e=this.currentTab;if(null!=e){e.el.tabIndex=0,e.el.focus();var t=e.getBox(),n=t.x,i=t.y,r=t.w,o=t.h;Sr.setFocusRectOn(e.el,{left:n,top:i,width:r,height:o})}}},{key:"getInitialActive",value:function(){return this.currentTab=this.activeTab=this.getLiveChildren().find((function(e){return e.el===document.activeElement})),this}},{key:"getNextTab",value:function(e){var t=this.getLiveChildren(),n=t.findIndex((function(t){return t.model.idx===e}))+1;return n===t.length&&(n=0),t[n]}},{key:"getPrevTab",value:function(e){var t=this.getLiveChildren(),n=t.findIndex((function(t){return t.model.idx===e}))-1;return-1===n&&(n=t.length-1),t[n]}},{key:"getFirstTab",value:function(){return this.view.children.find((function(e){return e.viewLogic.isLive()}))}},{key:"getLastTab",value:function(){return this.view.children.slice().reverse().find((function(e){return e.viewLogic.isLive()}))}},{key:"getLiveChildren",value:function(){return this.view.children.filter((function(e){return e.viewLogic.isLive()}))}},{key:"getSelectedTab",value:function(){return this.view.children.find((function(e){return!0===e.viewLogic.isActive}))}},{key:"teardown",value:function(){Or.off(Er.sidebar.ACTIVE_TAB_SET),o.lastSelectedTab=this.getSelectedTab(),null!=this.removeResize&&this.removeResize()}}])&&dr(t.prototype,n),i&&dr(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt);function jr(e){return jr="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},jr(e)}function Dr(e,t){for(var n=0;ne;c?oo.addClass(this.el,"overflow-tabs"):oo.removeClass(this.el,"overflow-tabs");for(var u=0;u-1&&n[r].viewLogic.onHide();this.el.style.display="block",null!=i.onPanelVisible&&i.onPanelVisible()}}},{key:"onHide",value:function(){this.el.style.display="none"}},{key:"isTopLink",value:function(){return null!=this.view.tabsId}},{key:"getTopTabsView",value:function(){return this.view.lnk.parent.parent}},{key:"teardown",value:function(){mo.off(DS.events.tab.SHOW,this.onShow)}}])&&uo(t.prototype,n),i&&uo(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),Co=Eo;function xo(e){return xo="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},xo(e)}function Lo(e,t){for(var n=0;n\n
\n
\n \n \n
")},methods:{updateDomStrings:function(){this.viewLogic.searchInputEl.setAttribute("placeholder",e.getString("search")),this.viewLogic.searchClearLabelEl.setAttribute("aria-label",e.getString("close"))}},updateHook:function(){this.viewLogic.ensureEventSubscriptions()}}}));function ga(e){return ga="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},ga(e)}function ma(e,t){for(var n=0;nt?e.scrollTop=r-t+10:ie.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0)&&this.searchResults.set(n.slideid,n.displaytext),null!=n.links&&this.traverseLinks(n.links)}}},{key:"getDefaultSate",value:function(e){var t=nl.getCurrentWindow().getCurrentSlide().absoluteId===e||sl.resolvePath(e).viewed,n=this.menuOptions.flow;if(t)switch(n){case"free":case"restricted":return G.model.getString("acc_visited");case"locked":return"".concat(G.model.getString("acc_visited"),", ").concat(G.model.getString("acc_locked"))}else switch(n){case"free":return"";case"restricted":case"locked":return G.model.getString("acc_locked")}}},{key:"performSearch",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(window.globals.HAS_SLIDE){this.term=t.toLowerCase(),this.items=null,this.noSearchTerm=""===t,this.searchResults=new Map,this.resultsEl.innerHTML="",this.slideTextEnabled=this.slideCheckEl.checked,this.notesEnabled=this.notesCheckEl.checked;var n=G.model.frame.navData.links;null!=n&&this.traverseLinks(n),this.hasSlideBankSlides&&void 0===this.slideBankTextBySlideId&&this.loadSlideBankSearchData();var i=function(t){t.forEach((function(t){(t.text.toLowerCase().indexOf(e.term)>=0||t.title.toLowerCase().indexOf(e.term)>=0)&&e.searchResults.set(t.slideId,t.title)}))},r=!this.noSearchTerm;this.slideTextEnabled&&r&&i(this.slideTextBySlideId),this.hasSlideBankSlides&&r&&i(this.slideBankTextBySlideId),this.notesEnabled&&r&&i(this.notesBySlideId);kl.isIOS;var o=this.wrapListItems?"":"no-wrap",a=nl.getCurrentWindow().getCurrentSlide().absoluteId,l=0;this.searchResults.forEach((function(t,n){0;var i=a===n?"cs-selected":"",r=document.createElement("li"),s=sl.resolvePath(n).viewed?"cs-viewed":"",c=e.menuOptions.flow,u=e.getDefaultSate(n),f='\n \n "):f+="\n ".concat(t,"\n "),r.innerHTML=f,e.resultsEl.appendChild(r),l=-1}))}}},{key:"onClear",value:function(){var e=this,t=this.view.parent.children,n=t.outline,i=t.search;this.outlineUl=this.outlineUl||document.querySelector("#outline-content ul"),n.setVisibility(!0),rl.to(this.el,this.animationDuration,{alpha:0,onComplete:function(){rl.to(e.outlineUl,e.animationDuration,{alpha:1}),e.view.setVisibility(!1),i.children.bottomDiv.el.style.opacity=1,ll.isShowFocus&&e.el.contains(document.activeElement)&&n.el.focus()}}),this.term="",i.children.searchInput.el.value="",ul(document.body,"search-results-active"),al.trigger(ol.search.UPDATE_PANEL)}},{key:"hasListItems",value:function(){return!_.isEmpty(this.getItems())}},{key:"getItems",value:function(){return this.items=this.items||Ua(this.el.querySelectorAll(".cs-listitem")),this.items}},{key:"activateItem",value:function(){this["locked"!==this.menuOptions.flow?"onClickLink":"onCarrotClick"]({target:this.currentItem})}},{key:"findIndexCb",value:function(e,t){return e===t}},{key:"getItemContent",value:function(){return this.currentItem}},{key:"onAfterVisible",value:function(){this.view.parent.children.outline.setVisibility(!1)}}]),n}(Wa),Cl=El,xl="searchResults",Ll=G.def(xl,Cl,(function(e){var t=G.model,n=t.rtl?"rtl":"";return{attrs:{id:xl+"-content",class:"cs-menu cs-panel panel ".concat(n),tabindex:-1},z:2,x:0,y:68,w:"100%",overflow:"scroll",h:function(){return this.parent.h-58-2-xn},visible:!1,html:'\n \n
\n \n

\n '.concat(t.getString("search_results"),'\n

\n \n
\n\n
\n

').concat(t.getString("search_in"),'

\n \n \n
\n
\n
\n
    \n
    \n
    \n '),methods:{updateDomStrings:function(){this.viewLogic.titleEl.textContent=t.getString("search_results"),this.viewLogic.searchFilterLabelEl.textContent=t.getString("filter"),this.viewLogic.searchOptionsLabelEl.textContent=t.getString("search_in"),this.viewLogic.notesCheckLabelEl.textContent=t.getString("transcript_chk"),this.viewLogic.slideCheckLabelEl.textContent=t.getString("slide_text_chk")}}}}));function Pl(e){return Pl="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},Pl(e)}function Tl(e){return function(e){if(Array.isArray(e))return _l(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)return;if("string"==typeof e)return _l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _l(e,t)}(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){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,i=this.el.querySelectorAll(e);Array.from(i).forEach((function(e){Array.from(e.parentNode.querySelectorAll("div")).slice(n).every((function(e){return es(e,"cs-viewed")}))&&(ts(e,"cs-complete"),t.updateAriaLabel(e))}))}},{key:"updateVisitedSlides",value:function(e,t){null!=e&&(e.forEach(this.addSlideToVisited),this.visuallyUpdateLinks())}},{key:"getNextItem",value:function(e){var t,n=this,i=this.getItems(),r=i.findIndex((function(t){return n.findIndexCb(t,e)}));do{(r+=1)===i.length&&(r=0),t=i[r]}while(rs(t));return t}},{key:"getPrevItem",value:function(e){var t,n=this,i=this.getItems(),r=i.findIndex((function(t){return n.findIndexCb(t,e)}));do{-1==(r-=1)&&(r=i.length-1),t=i[r]}while(rs(t));return t}},{key:"addSlideToVisited",value:function(e){var t=e.absoluteId,n=e.getScene().absoluteId;this.visitedSlides.add(n).add(t)}},{key:"isCurrentLinkParent",value:function(e,t){return e.el===this.view.children[t].el&&e.el.getAttribute("data-has-links")&&!e.el.getAttribute("data-is-scene")}},{key:"onSelectFirstSlideLink",value:function(){var e=this.view.el.querySelector("ul > li > div:not(.is-scene)");if(null!=e){var t=e.getAttribute("data-ref");this.selectLink(e,t)}}},{key:"onSlideChanged",value:function(e){if(this.addSlideToVisited(e),!this.currentItem||Jl(this.currentItem,"listitem").getAttribute("data-ref")!=e.absoluteId){var t=e.absoluteId,n=this.view.children[t];if(null==n){var i=e.getSlideDraw();null!=i&&(t=i.absoluteId,n=this.view.children[t])}null!=n&&this.selectLink(n.el,t)}}},{key:"selectLink",value:function(e,t){var n=this;this.onClickLink(e,!0),$l(e,(function(i){i.classList.contains("item-collapsed")&&(n.isCurrentLinkParent(e,t)||(ns(i,"item-collapsed"),i.setAttribute("aria-expanded",!0)))}),(function(e){return n.el===e}))}},{key:"collapsibleParents",value:function(e){var t=this;return $l(e,(function(e){return e.classList.contains("item-collapsible")}),(function(e){return t.el===e}))}},{key:"collapseLastItem",value:function(e){var t=this;null!=this.lastExpandedEls&&this.menuOptions.autocollapse&&this.lastExpandedEls.forEach((function(n){n.contains(e)||es(n,"item-collapsed")||t.toggleScene(n)}))}},{key:"toggleScene",value:function(e){var t,n=es(e,"item-collapsed");if(t=n?"remove":"add",e.classList[t]("item-collapsed"),e.setAttribute("aria-expanded",n),Wl.theme.isUnified){var i=Array.from(e.querySelectorAll("div.listitem")),r=i[0];!function(e,t){if(!n){var i=e.slice(1).filter((function(e){return!es(e,"is-promoted-slide")&&!es(e,"is-scene")}));i.some((function(e){return es(e,"cs-viewed")}))&&ns(t,"cs-unvisited"),i.every((function(e){return es(e,"cs-viewed")}))&&ts(t,"cs-complete")}}(i,r),this.updateAriaLabel(r)}Vl.trigger(Kl.menuLinksListItem.TOGGLE)}},{key:"updateAriaLabel",value:function(e){var t=[].slice.call(e.querySelector(".outline-states").children),n=e.getAttribute("data-slide-title"),i=e.children[0];t.some((function(e){if("none"!==window.getComputedStyle(e).display){var t=e.getAttribute("aria-label");return i.textContent=n+" "+t,!0}}))||(i.textContent=n)}},{key:"onCarrotClick",value:function(e){if(null!==e){var t=Jl(e,"item-collapsible");this.toggleScene(t)}}},{key:"onClickLink",value:function(e,t){var n=this;if(e)if(Wl.theme.isUnified){var i=e.getAttribute("data-ref"),r=null!=i;if("restricted"!==this.menuOptions.flow||t||this.visitedSlides.has(i)){if(null!=this.currentItem&&e!==this.currentItem&&(this.currentItem.tabIndex=-1,ns(this.currentItem,"hover")),this.currentItem=e,null!=i&&(this.collapseLastItem(e),this.lastExpandedEls=this.collapsibleParents(e),this.lastExpandedEls.forEach((function(e){var t=e.firstElementChild;i.includes(t.getAttribute("data-ref"))&&(ts(t,"cs-viewed"),n.updateAriaLabel(t))}))),es(e,"listitem")){this.updateViewedState(e);var o=this.el.querySelector(".cs-selected");es(e,"is-scene")||(null!=o&&(ns(o,"cs-selected"),this.updateAriaLabel(o)),ts(e,"cs-selected"),window.requestAnimationFrame((function(){return n.updateAriaLabel(e)})))}else this.onCarrotClick(e);if(r&&!t){var a=Gl.getCurrentWindowSlide().absoluteId;i!=a&&(Vl.trigger(Kl.request.NEXT_SLIDE,i),Wl.theme.isUnified&&Vl.trigger(Kl.topEllipsesPanel.HIDE)),Wl.deviceView.isMobile&&(Vl.trigger(Kl.tab.HIDE),(Wl.deviceView.isPhone||Wl.theme.isClassic)&&Vl.trigger(Kl.sidebar.CLOSE))}null!=this.currentItem&&null!=this.focusor&&ql(this.currentItem)}}else this.onClickLinkOld(e,t)}},{key:"onClickLinkOld",value:function(e,t){var n=e.getAttribute("data-ref"),i=null!=n,r=rt(n);if("UL"!==e.nodeName)if("restricted"!==this.menuOptions.flow||t||this.visitedSlides.has(n)){if(null!=this.currentItem&&e!==this.currentItem&&(this.currentItem.tabIndex=-1,ns(this.currentItem,"hover")),this.currentItem=e,(r||es(e.parentNode,"item-collapsible"))&&this.toggleScene(e.parentNode),null!=n&&(this.collapseLastItem(e),this.lastExpandedEls=this.collapsibleParents(e),Array.from(this.lastExpandedEls).forEach((function(e){var t=e.firstElementChild;n.includes(t.getAttribute("data-ref"))&&ts(t,"cs-viewed")}))),es(e,"listitem")){ts(e,"cs-viewed");var o=this.el.querySelector(".cs-selected");null!=o&&ns(o,"cs-selected"),ts(e,"cs-selected")}else this.onCarrotClick(e);if(i&&!t){var a=Gl.getCurrentWindowSlide().absoluteId;r||n==a||(Vl.trigger(Kl.request.NEXT_SLIDE,n),Wl.theme.isUnified&&Vl.trigger(Kl.topEllipsesPanel.HIDE)),Wl.deviceView.isMobile&&(Vl.trigger(Kl.tab.HIDE),(Wl.deviceView.isPhone||Wl.theme.isClassic)&&Vl.trigger(Kl.sidebar.CLOSE))}null!=this.currentItem&&null!=this.focusor&&ql(this.currentItem)}else es(e,"carrot")&&this.onCarrotClick(e)}},{key:"updateViewedState",value:function(e){ts(e,"cs-viewed");var t=is(e).pop();if(!es(e,"is-scene")&&null!=t){var n=t.querySelector("div.listitem");ns(n,"cs-unvisited")}this.updateAriaLabel(e)}},{key:"isExpanded",value:function(){return!!this.currentItem.dataset.hasLinks&&es(this.parentElement,"item-collapsed")}},{key:"onKeydown",value:function(e){var t=this.currentItem;if(zl.isActionKey(e.which))this.activateItem(),zl.isSpaceKey(e.which)&&e.preventDefault();else if(zl.isRightKey(e.which)&&t.dataset.hasLinks)es(this.currentItem.parentNode,"item-collapsed")?this.onCarrotClick(this.currentItem.firstElementChild):this.currentItem=this.getNextItem(this.getItemContent());else if(zl.isDownKey(e.which))this.currentItem=this.getNextItem(this.getItemContent());else if(zl.isUpKey(e.which))this.currentItem=this.getPrevItem(this.getItemContent());else if(zl.isLeftKey(e.which))if(t.dataset.hasLinks&&!es(t.parentNode,"item-collapsed"))this.onCarrotClick(this.currentItem.firstElementChild);else{var n=Jl(this.currentItem,"item-collapsible");null!=n&&(this.currentItem=n.querySelector(".cs-listitem"))}else zl.isHomeKey(e.which)?this.currentItem=this.getFirstItem():zl.isEndKey(e.which)&&(this.currentItem=this.getLastItem());t!==this.currentItem&&(e.preventDefault(),ns(t,"hover"),t.parentNode.tabIndex=-1,this.focusOnCurrent())}},{key:"focusOnCurrent",value:function(){this.centerOnFocused(),document.activeElement!==this.currentItem.parentNode&&(this.currentItem.parentNode.tabIndex=0,ts(this.currentItem,"hover"),this.currentItem.parentNode.focus()),ql(this.currentItem)}},{key:"hasListItems",value:function(){return!Ul.isEmpty(G.model.frame.navData.outline.links)}},{key:"getItems",value:function(){return this.links=this.links||Tl(this.el.querySelectorAll(".cs-listitem")),this.links}},{key:"activateItem",value:function(){var e="locked"!==this.menuOptions.flow&&null==this.currentItem.dataset.isScene,t=e?"onClickLink":"onCarrotClick",n=e?this.currentItem:this.currentItem.querySelector(".carrot");this[t](n)}},{key:"findIndexCb",value:function(e,t){return e===t}},{key:"getItemContent",value:function(){return this.currentItem}},{key:"getTreeRootEl",value:function(){return this.el.querySelector("ul")}},{key:"getOffsetEl",value:function(){return Wl.deviceView.isMobile?this.el.parentNode:this.el}},{key:"getOffsetTop",value:function(e){return Wl.deviceView.isMobile?Ul.first($l(e,(function(e){return"li"===e.nodeName.toLowerCase()}))).offsetTop:Dl(Bl(o.prototype),"getOffsetTop",this).call(this,e)}},{key:"onShowTabItem",value:function(e,t){if("outline"===e&&null!=t){var n=this.getItems().find((function(e){return e.dataset.translationId===t}));null!=n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}}},{key:"scrollToCurrent",value:function(){var e=this;Wl.deviceView.isMobile&&(this.currentItem=this.getItems().find((function(t){return t.getAttribute("data-ref")===e.currentSlideId}))),Dl(Bl(o.prototype),"scrollToCurrent",this).call(this)}},{key:"setDrawSlides",value:function(){var e=this;this.view.draws.forEach((function(t){var n=t.link,i=t.links,r=Ql.resolvePath(Zl(n.drawid)),o=function(){var t=n.spliceNum||1,o=r.slides();i.splice.apply(i,[n.index,t].concat(Tl(o.map(e.createNewLink)))),n.spliceNum=o.length,e.view.updateHtml(),e.view.initChildRefs()};r.on(Kl.draw.RESET_COMPLETE,o),null!=r.slides()&&o()}))}},{key:"createNewLink",value:function(e){var t={kind:"slidelink",expand:!1,type:"slide"};return t.slideid=e.absoluteId,t.slidetitle=t.displaytext=e.get("title"),t}}],n&&jl(t.prototype,n),i&&jl(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Wa),as=os,ls="rtl",ss=function(){return G.model.rtl?ls:""},cs=function(e){G.model.rtl&&!e.contains(ls)?e.add(ls):!G.model.rtl&&e.contains(ls)&&e.remove(ls)},us=DS.detection,fs="outline",ds=function(e){for(var t="";e;)t=e.index+1+"."+t,e=null!=e.parent&&"slidelink"===e.parent.kind&&e.parent;return t+" "},hs=function(){var e=de.getColor(DS.constants.refs.FRAME,".cs-brandhighlight-bg","background-color",".cs-base.cs-custom-theme");if(null==Ml||Nl!==!!G.model.rtl||Hl!==e){var t=de.getColor(DS.constants.refs.FRAME,".cs-tabs.cs-selected","color");Ml=".item-collapsible:not(.item-collapsed) .is-scene {\n color: ".concat(t," !important;\n }\n \n .is-scene:not(.item-collapsed) .cs-icon-carrot * {\n fill: ").concat(t," !important;\n }"),Nl=!!G.model.rtl,Hl=e;var n=window.btoa("\n \n \n \n \n "));Ml+="\n .cs-listitem.cs-selected {\n background-position: ".concat(Nl?"right":"left",' top !important;\n background-repeat: no-repeat !important;\n background-size: 6px 100% !important;\n background-image: url("data:image/svg+xml;base64,').concat(n,'") !important; \n }')}return Ml},ps=G.def(fs,as,(function(){var e=G.model;return{tag:"nav",attrs:{id:fs+"-content",class:"is-scrollable cs-outline ".concat(ss()),tabindex:-1,"aria-label":e.getString("outline-container")},y:function(){return null!=this.parent.children.search?this.parent.children.search.h+xn:xn},w:"100%",h:function(){return this.parent.h-(null!=this.parent.children.search?this.parent.children.search.h+xn:xn)},overflow:"auto",draws:[],html:function(){var t=this,n={},i=0;DS.flagManager.multiLangSupport&&this.el.querySelectorAll("[data-collapsible-id]").forEach((function(e){var t=e.dataset.collapsibleId;n[t]=!e.classList.contains("item-collapsed")}));var r=e.frame.navData.outline.links||[],o=e.frame.controlOptions.menuOptions,a=o.wrapListItems,l=o.autonumber,s=o.tooltips,c=o.flow;this.el.depth=0;var u=this.el;return u.innerHTML="\n \n "),function r(o,u,f){var d=document.createElement("ul");d.depth=u.depth+1,d.tabIndex=-1,null!=f?d.setAttribute("role","group"):(d.setAttribute("aria-label",e.getString("outline")),d.setAttribute("role","tree")),u.appendChild(d);for(var h=0;h\n ').concat(k).concat(y.displaytext," ").concat(S,"\n\n ").concat(b?Yn("carrot")("".concat(w?-1:1,"px")):"",'\n \n \n \n ");p.innerHTML=E,b&&(DS.flagManager.multiLangSupport&&p.setAttribute("data-collapsible-id",i),p.setAttribute("aria-expanded",y.expand),p.classList.add("item-collapsible"),null!=n[i]?n[i]||p.classList.add("item-collapsed"):y.expand||p.classList.add("item-collapsed"),r(y.links,p,y),i++)}}(r,u),u.innerHTML},updateHook:function(){var e=document.getElementById("sceneStyle");if(us.browser.isIE){var t=document.createElement("style");t.setAttribute("id","dynamicStyle"),t.setAttribute("type","text/css"),t.cssText=hs(),document.head.querySelector("#dynamicStyle")||document.head.appendChild(t)}else null!=e&&(e.innerText=hs());cs(this.el.classList)}}}));function ys(e){return function(e){if(Array.isArray(e))return bs(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)return;if("string"==typeof e)return bs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bs(e,t)}(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 bs(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);ne.length)&&(t=e.length);for(var n=0,i=new Array(t);ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n0}},{key:"getItems",value:function(){return this.items=this.items||Ns(this.el.querySelectorAll(".resource a")),this.items}},{key:"activateItem",value:function(e){qs(e.keyCode)&&DS.windowOpen.open({url:this.currentItem.dataset.url})}},{key:"getOffsetTop",value:function(e){return this.currentItem.offsetTop}},{key:"getFocusRectTarget",value:function(){return this.currentItem.parentNode}},{key:"onShowTabItem",value:function(e,t){if("resource"===e&&null!=t){var n=this.getItems().find((function(e){return e.dataset.translationId===t}));null!=n&&n.scrollIntoView({block:"nearest",behavior:"smooth"})}}}])&&Ws(t.prototype,n),i&&Ws(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ms),Xs=Ys;function $s(e){return function(e){if(Array.isArray(e))return Js(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)return;if("string"==typeof e)return Js(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Js(e,t)}(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 Js(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n\n \n ")},updateHook:function(){cs(this.el.classList)},methods:{onPanelVisible:function(){$s(this.el.querySelectorAll(".resource")).forEach((function(e){var t=e.querySelector(".file-name").scrollHeight;e.clientHeight\n
    \n '.concat(cc(e,"frame.glossaryData",[]).map((function(e,t){var n="glossary-def-".concat(t),i=DS.flagManager.aiCourseTranslation&&e.translationId;return'\n
    \n ").concat(e.title,'\n
    \n
    \n ").concat(e.content.toString().split(uc.LINE_BREAK_REGEX).map((function(e){return"

    ").concat(e,"

    ")})).join(""),"\n
    \n ")})).join(""),"\n
    \n ")},updateHook:function(){cs(this.el.classList)}}}));function hc(e){return hc="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},hc(e)}function pc(e,t){for(var n=0;n\n ',model:e.frame}}))},_c=DS.utils.getPath,jc=DS.constants.refs.FRAME,Dc="sidebarPanels",Ac=(G.def(Dc,(function(e){var t=G.getNamespace(e),n=t.sidebar,i=t.tabs,r=t.logo;return{attrs:{id:Dc},x:0,z:1,y:function(){return i.bottom()},w:function(){return n.data.actualWidth()},h:function(){var e=r?r.h+xn:0;return n.h-i.h-e},childDef:function(){Ac(G.model,e)}}})),function(e,t){_c(e,"sidebarTabs",[]).forEach((function(e,n){!function(e,t,n,i){var r=t.name,o=r+"Panel",a=0===n,l=G.def(o,Co,{attrs:{id:o,class:"cs-menu cs-panel is-scrollable panel","aria-labelledby":r+"-tab",role:"tabpanel",tabindex:-1},visibility:"no-reflow",style:{display:a},x:0,y:0,w:"100%",h:"100%",html:""});l.init(),G.getNamespace(jc).sidebarPanels.append(l);var s=Tc[r];null!=s&&(s.nameSpace=i,s.init(),l.append(s))}(0,e,n,t)}))}),Ic="topTabs";function Rc(e){return Rc="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},Rc(e)}function Bc(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];this.translationShown=e,this.el.style.border="1px solid ".concat(this.view.selectedBorderColor),this.el.setAttribute("aria-expanded",!0),ou(this.el,"cs-selected"),ou(this.el,"active"),this.view.panel.el.style.display="block",this.view.panel.viewLogic.focusChild(),Xc("mouseup",this.onCheckShouldHide),eu.on(tu.controlLayout.CHANGED,this.hidePanel),this.showing=!0}},{key:"hidePanel",value:function(){this.translationShown=!1,this.el.style.border="1px solid rgba(0, 0, 0, 0)",this.el.setAttribute("aria-expanded",!1),au(this.el,"cs-selected"),au(this.el,"active"),this.view.panel.el.style.display="none",$c("mouseup",this.onCheckShouldHide),eu.off(tu.controlLayout.CHANGED,this.hidePanel),this.showing=!1}},{key:"onBlur",value:function(e){iu.presentation.isPreview()&&!window.globals.HAS_SLIDE||this.onCheckShouldHide({target:e.relatedTarget}),Kc(Zc(o.prototype),"onBlur",this).call(this,e)}},{key:"onCheckShouldHide",value:function(e){null!=e.target&&(qc(e.target,"panel")||this.el.contains(e.target))||this.hidePanel()}},{key:"isLive",value:function(){var e=G.model.currControlLayout[this.model.name];return nu.isObject(e)?e.enabled:e}},{key:"teardown",value:function(){eu.off(tu.controlLayout.CHANGED,this.hidePanel),eu.off(tu.sidebar.ACTIVE_TAB_SET)}}],n&&Uc(t.prototype,n),i&&Uc(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),su=lu;function cu(e){return cu="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},cu(e)}function uu(e,t){for(var n=0;n0&&void 0!==arguments[0]&&arguments[0];mu.trigger(gu.tabLink.SHOW_PANEL,this),wu.deviceView.isPhone&&ku.from(this.view.panel.el,.12,{left:"left"===G.model.sidebarOpts.sidebarPos?30:-30}),ju(document.body,"nested-panel-shown"),this.el.setAttribute("aria-expanded",!0),this.el.classList.add("cs-selected","active"),this.view.panel.el.style.display="block",this.updatePanel(),t||this.view.panel.viewLogic.focusChild(),this.removeShowPanelListeners=vu.flow(xu("keydown",(function(t){return e.handleKeyDown(t)})),xu(Au,this.onCheckShouldHide)),mu.on(gu.controlLayout.CHANGED,this.hidePanel),this.showing=!0,mu.trigger(gu.tabLink.PANEL_SHOWN,this)}},{key:"handleKeyDown",value:function(e){Su.isEscapeKey(e.which)&&(this.hidePanel(),this.el.focus(),Ou.setFocusRectOn(this.el))}},{key:"hidePanel",value:function(e){mu.trigger(gu.tabLink.HIDE_PANEL,this),!e&&wu.deviceView.isPhone&&this.view.panel.inEllipsis||(fu(yu(o.prototype),"hidePanel",this).call(this),null!=this.removeShowPanelListeners&&this.removeShowPanelListeners(),Du(document.body,"nested-panel-shown"))}}],n&&uu(t.prototype,n),i&&uu(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(su),Ru=Iu;function Bu(e){return function(e){if(Array.isArray(e))return Mu(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)return;if("string"==typeof e)return Mu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mu(e,t)}(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 Mu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0){var t=e.shift();return Qu.unshift(t),t}},qu=function(e){return e.reduce((function(e,t){return t.update(),e+(t.isTopLink?t.w:0)}),0)};function Yu(e){return Yu="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},Yu(e)}function Xu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Yu(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==Yu(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Yu(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){var t,n=e.id,i=(G.def(n,(function(i){var o=G.getNamespace(i),a=o.title,l=o.hamburger,s=o.sidebar,c=o.timer,u=o.topEllipsis;G.model.topTabsRight.length;return t=n,{attrs:{id:n,tabindex:-1},style:{left:"-1px"},w:function(){var e=this.parent.w-xn;return a.visible&&(e-=a.w),s.visible&&(e-=l.w),null!=c&&c.visible&&(e-=c.w),u.visible&&(e-=u.w),e-Ln},overflow:"visible",x:e.x,y:"vertical-center",h:22,z:5,childDef:function(){r(G.model,i)},methods:e.methods,updateHook:e.updateHook}})),function(n,i,r,o){var a,l,s,c,u="customlink"===r.name;u?(l=Wc,a=DS.flagManager.multiLangSupport&&i.getControlString(r.properties.data)||r.properties.title,s="link".concat(e.dir).concat(o),c="custom-link"):(l=Ru,a=i.getString(r.name),s=r.name+"Link",c="panel-link");var f=de.getColor(n,".cs-topmenu-item.active .cs-tab","border-top-color",".cs-base"),d={id:s,class:"cs-topmenu-item cs-tabs top-tab ".concat(c),tabindex:0};u||(d["aria-controls"]="".concat(r.name,"-panel"),d["aria-expanded"]=!1);var h=G.def(s,l,{selectedBorderColor:f,attrs:d,model:Object.assign(r,{idx:o}),isTopLink:!0,calcTextSize:!0,noUpdate:!0,contentStyle:{},tag:"button",html:function(){return''.concat(a,"")},methods:{updateDomStrings:function(){var e="customlink"===r.name?i.getControlString(r.properties.data):i.getString(r.name);this.viewLogic.labelEl.textContent=e}},wPad:14,z:2,w:"fit-to-text-w",h:"fit-to-text-h",minH:23});h.init(),G.getNamespace(Fu)[e.id].append(h,!0),u||function(n,i,r,o){var a=o.name+"Panel",l="linksRight"===e.id,s=G.getNamespace(n),c=(s.topBar,s.frame,s.sidebar),u=s.slide,f=(s.wrapper,s.topEllipsis,de.getColor(n,".cs-topmenu-item.active .cs-panel","border-top-color",".cs-base")),d=Nu.env.isFileProtocol||Nu.browser.isFF?"background-color":"background",h=de.getColor(n,".cs-topmenu-item.active .cs-panel",d),p=G.getNamespace(n)[o.name+"Link"],y=G.getNamespace(n),b=y.topEllipsisPanel,v=y.linksRight,g=G.model.rtl,m=G.def(a,Co,{attrs:{id:a,class:"cs-topmenu-item topmenu-item active cs-menu cs-panel panel top-tabs-drop topmenu-panel-align-".concat(l?"right":"left"),tabIndex:-1},style:{borderColor:f,background:h},w:Wu,h:function(){return this.height||200},z:u.z+1,visible:!1,lnk:i,tabsId:t,overflow:"visible",x:function(){var e=0;if(p.inEllipsis)return!g||Nu.deviceView.isPhone?"left"===c.pos?e=b.maxWidth-Wu+8:Nu.deviceView.isPhone||(e=(b.maxWidth-Wu)/2+8):"left"!==c.pos&&(e=-2),e;var t=(e=i.x+(i.w-Wu)/2)+Wu;return!p.inEllipsis&&t>v.w&&(e=v.w-Wu-20),e=Math.max(g?20:0,e),this.children.arrow.el.style.left="".concat(i.x-e+i.w/2-11,"px"),e},y:function(){return p.inEllipsis?0:this.lnk.h+10},html:Qi(h,f)});m.init(n),G.getNamespace(Fu)[e.id].append(m),i.panel=m;var w=Tc[o.name];null!=w&&(w.init(n),m.append(w))}(n,h,0,r)}),r=function(e,t){[].concat(Bu(e.topTabsLeft),Bu(e.topTabsRight)).forEach((function(n,r){i(t,e,n,r)}))}}({id:"linksRight",dir:"Right",linkListName:"topTabsRight",x:function(){var e=G.getNamespace(DS.constants.refs.FRAME),t=e.hamburger,n=e.title,i=e.sidebar,r=e.topEllipsis,o=0;return G.model.rtl?(i.visible&&(o+=t.w),r.visible&&(o+=r.w,"right"===i.pos&&(o=r.w))):n.visible?o=n.right():i.visible&&(o=t.w),o+("right"===i.pos?0:Ln)},methods:{tabWidths:function(){return qu(this.children)},phoneUpdateHook:function(){if(0!==this.children.length||0!==Qu.length){var e=G.getNamespace(this.nameSpace),t=e.topEllipsis,n=e.topEllipsisPanel;this.children.forEach((function(e){var i=n.children.links.el;null!=e.panel&&(e.panel.inEllipsis=!0,i.insertBefore(e.panel.el,i.firstChild),e.panel.update()),e.inEllipsis=!0,i.insertBefore(e.el,i.firstChild),t.setVisibility(!0)})),this.updateHook=DS._.noop}}},updateHook:function(){if(DS.detection.deviceView.isPhone)this.phoneUpdateHook();else{var e=this.children;if(Gu||0!==this.children.length||DS.presentation.isPreview()||this.setVisibility(Qu.length>0||this.children.some((function(e){return e.visible}))),Gu=!1,(0!==e.length||0!==Qu.length)&&null!=this.nameSpace){var t=G.getNamespace(this.nameSpace),n=t.linksRight,i=t.topEllipsis,r=t.sidebar,o=t.topEllipsisPanel,a=this.w;if(Hu>a&&(zu=!0),Hu=a,zu&&qu(e)>this.w)for(;qu(e)>this.w;){var l=Zu(this.children);if(null!=l&&l.isTopLink){if(null!=l.el){var s=o.children.links.el;null!=l.panel&&(l.panel.inEllipsis=!0,s.insertBefore(l.panel.el,s.firstChild),l.panel.update()),l.inEllipsis=!0,s.insertBefore(l.el,s.firstChild)}i.setVisibility(!0)}}else if(Qu.length>0){var c=qu(e),u=Qu[0];this.w>c+u.w&&(Qu.shift(),this.el.appendChild(u.el),null!=u.panel&&(u.panel.inEllipsis=!1,u.panel.update(),this.el.appendChild(u.panel.el)),this.children.unshift(u),u.inEllipsis=!1)}0===Qu.length&&i.visible&&i.setVisibility(!1),zu=!1;var f={toLeft:!0,startPos:n.w-xn,hook:function(e){null!=e.panel&&e.panel.update()}};"right"!==r.pos||G.model.rtl?G.model.rtl&&(f.toLeft=!1,f.startPos=0,f.reverse=!1):(f.toLeft=!1,f.startPos=0,f.reverse=!0),this.flowChildren(f)}}}});var $u="bottomBar";G.def($u,(function(e){var t,n=G.getNamespace(e),i=n.frame,r=n.topBar,o=n.navControls;return Xu(t={openPanels:{},tag:"section",attrs:{id:$u},overflow:"visible",x:function(){return r.x},y:function(){return i.h-Pn},w:function(){return r.w},h:Pn},"overflow","visible"),Xu(t,"updateHook",(function(){if(this.hasAllChildren()){var e=G.model.rtl,t=this.children.playbackControls.children.seek;if(t.width=0,o.update(),this.children.playbackControls.visible&&t.visible){var n=this.calcChildrensWidth()+xn,i=e?1:0,r=(this.children.filter((function(e){return e.w>0})).length+i)*xn;t.width=this.w-n-r}this.flowChildren({alignChild:!0,bounds:{t:0,b:this.h,l:0,r:this.w},rtl:!1,pad:xn,reverse:!0})}})),Xu(t,"childVisibilityChangedHook",(function(){this.update()})),Xu(t,"methods",{panelToggled:function(e,t){this.openPanels[e]=t,t?this.el.style.zIndex=11:_.values(this.openPanels).every((function(e){return!e}))&&(this.el.style.zIndex=3)}}),t}));var Ju="navControls";G.def(Ju,(function(){var e=G.model.rtl;return{tag:"nav",attrs:{id:Ju,"aria-label":"slide navigation"},w:function(){return this.width||0},h:Pn,yp:"vertical-center",updateHook:function(){this.flowChildren({rtl:e,startPos:-10,pad:xn,fullUpdate:!0,sizeToChildren:!0})},parentAlign:e?"l":"r"}}));var ef="miscControls",tf=DS.detection.deviceView;function nf(e){return nf="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},nf(e)}function rf(e,t){for(var n=0;n0?"acc_mute":"acc_unmute"}},{key:"onVolumeChanged",value:function(e){e=Of.clamp(0,Mf,e*Mf),this.view.volumeStrength=e,this.view.updateButton();var t=0===e;this.buttonEl.setAttribute("aria-pressed",t),this.volumeRangeEl.valueAsNumber!==e&&(this.volumeRangeEl.value=e)}},{key:"onHide",value:function(e){var t=this;setTimeout((function(){var e=document.elementFromPoint(Tf.mouseX,Tf.mouseY);t.el.contains(e)||"tooltip"===e.id||(t.isOpen=!1,Df(t.el,"open"),t.view.el.removeEventListener("mouseleave",t.onHide),Rf("keydown",t.onKeydown),t.view.update())}),200)}},{key:"onShow",value:function(){this.isOpen||(this.isOpen=!0,jf(this.el,"open"),this.view.el.addEventListener("mouseleave",this.onHide),If("keydown",this.onKeydown),this.view.update())}},{key:"onInputChanged",value:function(e){var t=e.target.valueAsNumber;Bf.setVolume(t/Mf)}},{key:"toggleMute",value:function(e){Bf.onToggleVolume()}},{key:"onFocus",value:function(e){this.onShow(),this.onHoverIn(e),Pf.setFocusRectOn(e.target)}},{key:"onBlur",value:function(e){null!=e&&this.isOpen&&!this.el.contains(e.relatedTarget)&&(this.onHoverOut(e),this.onHide(),yf(mf(o.prototype),"onBlur",this).call(this))}},{key:"onKeydown",value:function(e){var t=e.which,n=this.volumeRangeEl.valueAsNumber,i=function(t){Bf.setVolume(t/Mf),e.preventDefault()};document.activeElement!==this.volumeRangeEl&&(Lf.isDownishKey(t)||Lf.isPageDownKey(t)?i(n-1):Lf.isUpishKey(t)||Lf.isPageUpKey(t)?i(n+1):Lf.isEndKey(t)?i(Mf):Lf.isHomeKey(t)&&(this.previousVolume=n,i(0)))}},{key:"onScroll",value:function(e){e.target.scrollTop=0}},{key:"dismissTooltip",value:function(){yf(mf(o.prototype),"dismissTooltip",this).call(this),this.onHide()}},{key:"teardown",value:function(){Ef.off(Cf.volume.CHANGED,this.onVolumeChanged)}}])&&pf(t.prototype,n),i&&pf(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),Nf=Hf,Ff="volume",Wf=DS,Vf=Wf.utils.pxify,Uf=Wf.constants;function Kf(e){return Kf="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},Kf(e)}function zf(e,t){for(var n=0;n\n \n
    \n \n
    \n
    \n
    \n
    ')},updateHook:function(){n.panelToggled("volume",this.viewLogic.isOpen)},methods:{updateButton:function(){var e=this.volumeStrength/10;this.children.button.el.innerHTML=Yn("volume")(this.volumeStrength),this.children.button.el.setAttribute("aria-label",t.getString(this.volumeStrength>0?"acc_mute":"acc_unmute")),this.children.volumeDot.el.style.top=Vf(55*(1-e)),this.children.volumeProgress.el.style.height=Vf(55*e)},updateDomStrings:function(){this.viewLogic.buttonEl.setAttribute("aria-label",t.getString("acc_volume")),this.viewLogic.volumeRangeEl.setAttribute("aria-label",t.getString("acc_volume"))}}}}));var Xf=DS,$f=Xf.pubSub,Jf=Xf.captionsManager,ed=Xf.stringTabler,td=Xf.events.captions,nd=td.SHOW_BUTTON,id=td.HIDE_BUTTON,rd=td.ENABLED,od=td.ENABLE,ad=Xf.detection.theme.isUnified,ld=function(e){!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&&Qf(e,t)}(o,e);var t,n,i,r=Gf(o);function o(e){var t,n,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=r.call(this,e),n=Zf(t),a=!0,(i=Yf(i="hasTooltip"))in n?Object.defineProperty(n,i,{value:a,enumerable:!0,configurable:!0,writable:!0}):n[i]=a,t.onClick(t.onClickCaptions),t.toggle=!1,$f.on(nd,(function(e){return t.onVisibilityChanged(!0)})),$f.on(id,(function(e){return t.onVisibilityChanged(!1)})),$f.on(rd,t.onCaptionsEnabled.bind(Zf(t))),t}return t=o,(n=[{key:"tooltipKey",get:function(){return this.toggle?"acc_cc_hide":"acc_cc_show"}},{key:"onVisibilityChanged",value:function(e){this.view.setVisibility(e,!0),this.view.childVisibilityChanged(),this.toggle=Jf.isCaptionEnabled(),this.updateBtn()}},{key:"onCaptionsEnabled",value:function(e){this.toggle=e,this.updateBtn()}},{key:"updateBtn",value:function(){var e=this.toggle?"add":"remove";this.view.el.classList[e]("cs-tabs","cs-selected"),this.view.el.setAttribute("aria-pressed",this.toggle),this.view.el.setAttribute("aria-label",ed.getString(this.toggle?"acc_cc_hide":"acc_cc_show")),ad&&this.view.updateHtml()}},{key:"onClickCaptions",value:function(e){this.toggleCaptions()}},{key:"toggleCaptions",value:function(){this.toggle=!this.toggle,$f.trigger(od,this.toggle),this.updateBtn()}},{key:"getViewBox",value:function(){var e=this.view.getBox(),t=(e.h-30)/2;return e.h=30,e.y=e.y+t,e}},{key:"teardown",value:function(){$f.off(nd),$f.off(id),$f.off(rd)}}])&&zf(t.prototype,n),i&&zf(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),sd=ld,cd=(DS.flagManager,"captions");function ud(e){return ud="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},ud(e)}function fd(e,t){for(var n=0;n\n #captions.cs-button:after {\n background: ".concat(e?t:"transparent",";\n }\n \n ").concat(Yn("captions")(),"\n ")}}}));var gd=DS,md=gd._,wd=gd.events,Sd=gd.pubSub,kd=gd.detection,Od=gd.dom.tappedClass,Ed=gd.keyManager,Cd=gd.stringTabler,xd=function(e){!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&&dd(e,t)}(o,e);var t,n,i,r=hd(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),bd(pd(t=r.call(this,e)),"hasTooltip",!0),bd(pd(t),"onTap",(function(e){Od(t.el)})),bd(pd(t),"onClickBtn",(function(e){1!==t.currTimeline.progress()?t.currTimeline.togglePlayback():kd.theme.isUnified&&t.currTimeline.reset()})),bd(pd(t),"onKeydown",(function(e){var t=e.which;Ed.isSeekKey(t)&&Sd.trigger(wd.player.SEEK,e)})),bd(pd(t),"onPlaybackChanged",(function(){t.updateToggle(),t.updateView()})),md.bindAll(pd(t),"onTimelineChanged"),Sd.on(wd.player.TOGGLE_PLAYBACK,t.onClickBtn),Sd.on(wd.playbackControls.TIMELINE_CHANGED,t.onTimelineChanged),kd.deviceView.isMobile&&t.onClick(t.onTap),t.onClick(t.onClickBtn),t.el.addEventListener("keydown",t.onKeydown),t.view.toggle=!0,kd.deviceView.isMobile&&Sd.on(wd.currTimeline.TICK,t.onTick.bind(pd(t))),t}return t=o,(n=[{key:"tooltipKey",get:function(){return this.view.toggle?"acc_pause":"acc_play"}},{key:"teardown",value:function(){Sd.off(wd.currTimeline.TICK,this.onTick.bind(this))}},{key:"onTick",value:function(e){null!=this.circleProgress&&this.circleProgress.setAttribute("d",DS.svgUtils.wheelPath(17,17,17,0,360*e)),this.lastProgress=e}},{key:"updateView",value:function(){this.view.updateHtml(),this.circleProgress=this.el.querySelector(".circle-progress path"),this.onTick(this.lastProgress)}},{key:"updateToggle",value:function(){this.view.toggle="playing"===this.currTimeline.playbackState(),this.view.el.setAttribute("aria-pressed",!this.view.toggle),this.view.el.setAttribute("aria-label",Cd.getString(this.view.toggle?"acc_pause":"acc_play"))}},{key:"onTimelineChanged",value:function(e){this.currTimeline=e,this.view.toggle=this.currTimeline.isPlaying(),this.updateView()}}])&&fd(t.prototype,n),i&&fd(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),Ld=xd,Pd=DS.stringTabler,Td="playPause";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 jd(e,t){for(var n=0;n=1}},{key:"onChange",value:function(e){this.currTimeline.progress(this.progressBarEl.value/this.progressBarEl.max)}},{key:"onMouseDown",value:function(e){this.isUp=!1,this.removeEndListener=Gd(this.endEvent,this.onMouseUp),this.removeSeekListener=Gd(this.seekEvent,this.onSeek),this.currTimeline.onSeekStart(),this.onSeek(e)}},{key:"onMouseUp",value:function(e){this.onSeek(e),this.removeEndListener(),this.removeSeekListener(),this.isUp=!0,this.currTimeline.onSeekEnd()}},{key:"onKeydown",value:function(e){var t=e.which;Vd.isActionKey(t)?qd.trigger(Zd.player.TOGGLE_PLAYBACK):this.isSeekable()&&(Vd.isDownishKey(t)?this.seekBy(e,-100):Vd.isPageDownKey(t)?this.seekBy(e,-1e3):Vd.isUpishKey(t)?this.seekBy(e,100):Vd.isPageUpKey(t)&&this.seekBy(e,1e3))}},{key:"getViewBox",value:function(e){var t=this.view.getBox();return null!=e&&(t.x="focusin"===e.type?t.x+t.w/2:e.pageX,t.w=2),t}},{key:"onMouseMove",value:function(e){bt.updateTooltip(e.pageX,this.getTooltipString())}},{key:"setForFollowMouse",value:function(){this.el.addEventListener("mousemove",this.onMouseMove)}},{key:"stopFollowMouse",value:function(){this.el.removeEventListener("mousemove",this.onMouseMove)}},{key:"getTooltipString",value:function(e){if(null!=this.duration){this.view.getBox().x;var t=this.getSeekValue(Ud.mouseX)*this.duration;null!=e&&"focusin"===e.type&&(t=Math.floor(Wd.toSeconds(this.progressBarEl.value)));var n=Wd.formatSecondsAsTime(t),i=Wd.formatSecondsAsTime(this.duration);return"".concat(Yd(n)," / ").concat(Yd(i))}}}])&&jd(t.prototype,n),i&&jd(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),$d=Xd;function Jd(e){return Jd="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},Jd(e)}function eh(e,t){for(var n=0;n=n&&(i=0),this.previewWidth=Math.min(e.w,t),this.prevProgWidth=Math.min(n,i),this.updatePreviewEls(),this.detailsId=window.requestAnimationFrame(this.animateProgressDetails)}}],n&&eh(t.prototype,n),i&&eh(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}($d),hh=dh,ph=(DS.detection.device.isMobile,"seek");function yh(e){return yh="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},yh(e)}function bh(e,t){for(var n=0;n\n #seek:before {\n border: 1px solid ".concat(r,";\n background-image: ").concat(o,';\n background-repeat: no-repeat !important;\n }\n \n\n
    \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n '),methods:{updateDomStrings:function(){this.viewLogic.progressBarEl.setAttribute("aria-label",t.getString("acc_slide_progress"))}}}}));var Oh=DS,Eh=Oh._,Ch=Oh.events,xh=Oh.pubSub,Lh=function(e){!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&&vh(e,t)}(o,e);var t,n,i,r=gh(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),Sh(mh(t=r.call(this,e)),"hasTooltip",!0),Sh(mh(t),"tooltipKey","acc_replay"),Eh.bindAll(mh(t),"onClickBtn","onTimelineChanged"),t.onClick(t.onClickBtn),xh.on(Ch.playbackControls.TIMELINE_CHANGED,t.onTimelineChanged),t}return t=o,(n=[{key:"onClickBtn",value:function(){this.resetTimeline()}},{key:"resetTimeline",value:function(){this.currTimeline.reset()}},{key:"onTimelineChanged",value:function(e){this.currTimeline=e}}])&&bh(t.prototype,n),i&&bh(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),Ph=Lh,Th="reset";G.def(Th,Ph,(function(){return{tag:"button",ariaStringId:"acc_replay",attrs:{id:Th,class:"content-center cs-button","aria-label":"".concat(G.model.getString("acc_replay")),tabindex:0},style:{background:"transparent",border:"none"},html:Yn("replay")(),z:1,y:"vertical-center",padRight:10,minH:30,minW:30}}));var _h=function(){return"no icon"},jh={next:function(){return'\n \n \n '},prev:function(){return'\n \n \n \n'},submit:function(){return'\n \n \n '},replay:function(){return'\n \n '},play:function(){return'\n \n '},pause:function(){return'\n \n \n \n \n '},volume:function(e,t){var n=Math.min(1,e/5),i=Math.min(1,Math.max(0,e/5-.5));return'\n \n \n \n \n \n \n \n \n \n \n \n ')},captionsOn:function(e){return'\n \n '},captionsOff:function(e){return'\n \n \n \n \n '},captions:function(){return'\n \n \n \n \n \n '},carrot:function(e){return'\n \n \n \n \n ')},search:function(){return'\n \n \n \n \n \n \n \n '},searchClear:function(){return'\n \n \n \n \n \n \n \n \n \n '},filter:function(){return'\n \n '},close:function(){return'\n \n \n '},clear:function(){return'\n \n \n '},hamburger:function(){return'\n \n \n \n '},file:function(){return'\n \n \n \n \n \n \n \n '},link:function(e){return'\n \n \n ')},disableOrientation:function(){return'\n \n \n \n \n \n '},enterFullScreen:function(){return'\n \n \n \n \n \n \n '},exitFullScreen:function(){return'\n \n \n \n \n \n \n '},settings:function(){return'\n \n \n \n '},playbackSpeed:function(){return'\n \n \n \n '},track:function(e,t){return'\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ')},downArrow:function(e,t){return'\n
    \n ')}},Dh={play:function(){return'\n \n '}},Ah=function(e){return DS.detection.env.isPerpetual?jh[e]||_h:Dh[e]||jh[e]||_h};function Ih(e){return Ih="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},Ih(e)}function Rh(e,t){for(var n=0;n').concat(i.getString(e),""):"",o=n.includes("icon")||qh?''.concat(Ah(i.rtl?Yh[e]:e)(),""):"";return i.dir(t?[o,r]:[r,o]).join("\n")},calcTextSize:!0,wp:"fit-to-text-w",wl:function(){return qh?this.width||0:this.wp},yp:function(){return(this.parent.h-this.h)/2},yl:function(){return!qh||r?this.yp:this.top||0},xp:function(){return this.left||0},xl:function(){return r||!qh?this.xp:(this.parent.w-this.w)/2},methods:{shortcutActivated:function(){this.visible&&this.viewLogic.onClickBtn()},updateDomStrings:function(){null!=this.viewLogic.labelEl&&(this.viewLogic.labelEl.textContent=i.getString(e))}},overflow:"visible",padLeft:20,padRight:3.5,minW:30,minH:30}}))};function ep(e){return ep="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},ep(e)}function tp(e,t){for(var n=0;n
    \n ")})).join("")},updatePanelPosition:function(){if(null!=o){var e=this.children.settingsPanel.el;e.style.left=0;var t=e.getBoundingClientRect(),n=o.el.getBoundingClientRect(),i=0;t.right>n.right-xn&&(i=n.right-(t.right+xn)),t.left\n ').concat(Yn("settings")(),'\n \n
    \n
    \n ').concat(this.getToggleControls(),'\n
    \n
    \n
    \n ').concat(Yn("downArrow")(n,i),"\n
    \n
    \n
    \n ");return e}}}));var Qy=DS,Gy=Qy.dom,Zy=Gy.addClass,qy=Gy.removeClass,Yy=Qy.appState,Xy=Qy.focusManager,$y=Qy.keyManager,Jy=Qy.globalEventHelper.addDocumentListener,eb=function(e){!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&&Fy(e,t)}(o,e);var t,n,i,r=Wy(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),Ky(Vy(t=r.call(this,e)),"hasTooltip",!0),Ky(Vy(t),"tooltipKey","acc_playback_speed"),Ky(Vy(t),"hideTooltipWhenOpen",!0),t.currentSpeed=1,t.currentIndex=4,t.currentFocusIndex=4,By(t.el.querySelectorAll(".menu-choice")).forEach((function(e){e.classList.contains("selected")&&(t.currentSpeed=e.dataset.speed,t.currentIndex=e.dataset.index,t.selectedEl=e),t.onClickEl(e,(function(){return t.choiceClicked(e)}))})),t.onClickEl(t.toggleBtnEl,t.togglePanel),t}return t=o,(n=[{key:"choiceClicked",value:function(e){this.updateSpeed(e),this.hidePanel()}},{key:"updateSpeed",value:function(e){this.selectedEl.classList.remove("selected"),this.selectedEl.tabIndex=-1,this.selectedEl.setAttribute("aria-checked",!1),e.classList.add("selected"),e.tabIndex=0,e.setAttribute("aria-checked",!0),this.selectedEl=e;var t=e.dataset,n=t.speed,i=t.index;this.currentSpeed=parseFloat(n),this.currentIndex=parseInt(i),Yy.setPlaybackSpeed(this.currentSpeed)}},{key:"togglePanel",value:function(){this.isOpen?this.hidePanel():(this.showPanel(),this.dismissTooltip())}},{key:"handleKeyDown",value:function(e){var t=this.currentFocusIndex;if($y.isDownishKey(e.which))t++;else if($y.isUpishKey(e.which))t--;else if($y.isHomeKey(e.which))t=0;else if($y.isEndKey(e.which))t=7;else if($y.isActionKey(e.which)){if(t!==this.currentIndex){var n=this.el.querySelector('[data-index="'.concat(t,'"]'));this.updateSpeed(n)}this.hidePanel(),this.toggleBtnEl.focus(),e.preventDefault()}else $y.isEscapeKey(e.which)&&(this.hidePanel(),this.toggleBtnEl.focus(),e.preventDefault());t>=8&&(t=0),t<0&&(t=7),t!==this.currentFocusIndex&&(this.currentFocusIndex=t,e.preventDefault(),this.el.querySelector('[data-index="'.concat(t,'"]')).focus())}},{key:"showPanel",value:function(){var e=this;this.isOpen=!0,this.currentFocusIndex=this.currentIndex,Zy(this.el,"open"),this.view.updatePanelPosition(),this.toggleBtnEl.setAttribute("aria-expanded",!0),null!=this.view.updatePanelDepth&&this.view.updatePanelDepth(!0),this.selectedEl.focus(),Xy.setFocusRectOn(this.selectedEl),this.removeKeyListener=Jy("keydown",(function(t){return e.handleKeyDown(t)}))}},{key:"hidePanel",value:function(){this.isOpen=!1,qy(this.el,"open"),this.toggleBtnEl.setAttribute("aria-expanded",!1),this.removeKeyListener(),null!=this.view.updatePanelDepth&&this.view.updatePanelDepth(!1)}},{key:"onBlur",value:function(e){null!=e&&this.isOpen&&!this.el.contains(e.relatedTarget)&&(this.hidePanel(),Ny(Uy(o.prototype),"onBlur",this).call(this))}},{key:"onFocus",value:function(e){var t=e.target;if(this.el.contains(t))return Xy.setFocusRectOn(t),this.onHoverIn(e),this.isFocused=!1,!1}}])&&Hy(t.prototype,n),i&&Hy(t,i),Object.defineProperty(t,"prototype",{writable:!1}),o}(Dt),tb=eb,nb=DS.utils.pxify,ib="playbackSpeed";G.def(ib,tb,(function(e){var t=G.model,n=de.getColor(e,".cs-topmenu-item.active .cs-panel","background-color"),i=de.getColor(e,".cs-topmenu-item.active .cs-panel","border-top-color",".cs-base"),r=de.getColor(e,".cs-brandhighlight-bg","background-color",".cs-base.cs-custom-theme"),o=G.getNamespace(e).bottomBar;return{noUpdate:!0,attrs:{id:ib,class:"btn cs-button cs-settings"},overflow:"visible",w:30,parentAlign:"l",h:function(){return 30},x:function(){return this.left||0},y:"vertical-center",methods:{getSpeedOptions:function(){var e=G.model.getString("playback_speed_normal");return[{label:"2",value:2},{label:"1.75",value:1.75},{label:"1.5",value:1.5},{label:"1.25",value:1.25},{label:e,value:1,ref:"Normal"},{label:"0.75",value:.75},{label:"0.5",value:.5},{label:"0.25",value:.25}].map((function(e,t){var n=e.label,i=e.value,o=e.ref,a="",l="";return null!=o&&(a='data-ref="label'.concat(o,'"'),l='data-ref="aria'.concat(o,'"')),'\n
  • \n \n
  • \n ")})).join("")},updatePanelPosition:function(){if(null!=o){var e=this.children.contentPanel.el;e.style.left=0;var t=e.getBoundingClientRect(),n=o.el.getBoundingClientRect(),i=0;t.right>n.right-xn&&(i=n.right-(t.right+xn)),t.left