iBet uBet web content aggregator. Adding the entire web to your favor.
iBet uBet web content aggregator. Adding the entire web to your favor.



Link to original content: http://www.apple.com/ac/localeswitcher/4/en_US/scripts/localeswitcher.built.js
!function e(t,n,r){function i(s,a){if(!n[s]){if(!t[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};t[s][0].call(u.exports,(function(e){return i(t[s][1][e]||e)}),u,u.exports,e,t,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s-1&&document.activeElement!==this._navItems[this.focusedNavItemIndex]&&(this.focusedNavItemIndex=n),this._allowMultiSelection?this._toggleState():(this._navItems[this.selectedNavitemIndex].setAttribute(this._state,"false"),this._navItems[this.focusedNavItemIndex].setAttribute(this._state,"true")),this.selectedNavitemIndex=this.focusedNavItemIndex,t||this.trigger(u.ONSELECT,{event:e,index:this.selectedNavitemIndex,el:this._navItems[this.selectedNavitemIndex]})},h._toggleState=function(){var e=this._navItems[this.focusedNavItemIndex].getAttribute(this._state);o(e)?this._navItems[this.focusedNavItemIndex].setAttribute(this._state,"false"):this._navItems[this.focusedNavItemIndex].setAttribute(this._state,"true")},h._calculateIndex=function(e,t){var n=t;if(!0===e){if(n=++n>=this._navItems.length?0:n,!o(this._navItems[n].getAttribute(l.DISABLED))||this._navItems[n].hasAttribute("disabled"))return n}else if(n=--n<0?this._navItems.length-1:n,!o(this._navItems[n].getAttribute(l.DISABLED))||this._navItems[n].hasAttribute("disabled"))return n;return this._calculateIndex(e,n)},h.updateNavItems=function(){var e=this.el.querySelectorAll(this._selector);this._navItems=Array.prototype.slice.call(e)},h.addNavItem=function(e){e&&e.nodeType&&this._navItems.indexOf(e)<0&&(o(e.getAttribute(l.DISABLED))||i(e),this._navItems.push(e))},h.setSelectedItemByIndex=function(e,t){this._allowMultiSelection||isNaN(this.selectedNavitemIndex)||this._navItems[this.selectedNavitemIndex].setAttribute(this._state,"false"),this.focusedNavItemIndex=e,this.selectedNavitemIndex=e,this._navItems[this.selectedNavitemIndex].setAttribute(this._state,"true"),t||this.trigger(u.ONSELECT,{event:null,index:this.focusedNavItemIndex,el:this._navItems[this.focusedNavItemIndex]})},h.getSelectedItem=function(){return this._navItems[this.selectedNavitemIndex]},h.getFocusedItem=function(e){return this._navItems[this.focusedNavItemIndex]},h.addNavkey=function(e,t){"function"==typeof t&&"number"==typeof e?this._navKeys[e]=t:console.warn("incorrect types arguments were passed")},h.removeNavkey=function(e){delete this._navKeys[e]},h.destroy=function(){for(var e in a.destroy.call(this),this.stop(),this.el=null,this._options=null,this._selector=null,this.focusedNavItemIndex=null,this.selectedNavitemIndex=null,this._navItems=null,this._state=null,this.selectOption=null,this._handleKeyDown=null,this._navKeys)this._navKeys.hasOwnProperty(e)&&this.removeNavkey(e);this._navKeys=null},t.exports=u},{11:11,44:44,5:5,6:6,7:7,9:9}],3:[function(e,t,n){"use strict";var r=e(11),i=0,o=["button","checkbox","listbox","option","menuitem","menuitemradio","menuitemcheckbox","tab"],s=e(16),a=function(){this._elements={},this._callbacks={},this._bindEvents(),this._proxies={},this._setup()},l=a.prototype;l._bindEvents=function(){this._handleKeydown=this._handleKeydown.bind(this),this._handleHover=this._handleHover.bind(this)},l._setup=function(){this._addProxy("click",this._clickProxy),this._addProxy("hover",this._hoverProxy)},l._addProxy=function(e,t){this._proxies[e]=this._proxies[e]||[],this._proxies[e].push(t)},l._removeProxy=function(e,t){if(this._proxies[e]){var n=this._proxies[e].indexOf(t);n>-1&&this._proxies[e].splice(n,1),0===this._proxies[e].length&&delete this._proxies[e]}},l.addEventListener=function(e,t,n){this._proxies[t]&&(this._proxies[t].forEach(function(r){r.call(this,e,t,n)}.bind(this)),e.addEventListener(t,n))},l.removeEventListener=function(e,t,n){this._proxies[t]&&(this._proxies[t].forEach(function(r){r.call(this,e,t,n,!0)}.bind(this)),e.removeEventListener(t,n))},l._clickProxy=function(e,t,n,r){var i=e.getAttribute("role");o.indexOf(i)<0&&s("element's role is not set to any of the following "+o.join(", ")),r?(e.removeEventListener("keydown",this._handleKeydown),this._removeCallback(e,t,n)):(e.addEventListener("keydown",this._handleKeydown),this._addCallback(e,t,n))},l._hoverProxy=function(e,t,n,r){r?(e.removeEventListener("focus",this._handleHover,!0),e.removeEventListener("blur",this._handleHover,!0),n&&this._removeCallback(e,t,n)):(e.addEventListener("focus",this._handleHover,!0),e.addEventListener("blur",this._handleHover,!0),n&&this._addCallback(e,t,n))},l._handleKeydown=function(e){if(e.ctrlKey||e.altKey||e.metaKey)return!0;e.keyCode!==r.SPACEBAR&&e.keyCode!==r.ENTER||this._executeCallback(e,"click")},l._handleHover=function(e){"focus"===e.type?e.currentTarget.classList.add("hover"):e.currentTarget.classList.remove("hover"),this._executeCallback(e,"hover")},l._executeCallback=function(e,t){var n=this._getCallbacksByElement(e.currentTarget,t);if(n)for(var r=0;r=0},o._isDisplayed=function(e){var t=e.getBoundingClientRect();return(0!==t.top||0!==t.left||0!==t.width||0!==t.height)&&"hidden"!==window.getComputedStyle(e).visibility},o.getTabbableElements=function(e,t){for(var n=e.querySelectorAll(this.focusableSelectors),r=n.length,i=[],o=0;o{r.isTabbableElement(e)||e.setAttribute("tabindex","0")};t.exports=function(e){e instanceof Node?i(e):e.forEach(e=>{i(e)})}},{4:4}],7:[function(e,t,n){"use strict";t.exports=function(e){return"string"==typeof e?"true"===(e=e.toLowerCase()):e}},{}],8:[function(e,t,n){"use strict";t.exports=function(e,t,n){let r;"string"!=typeof n&&(n=n.toString()),r=e instanceof NodeList?e:[].concat(e),r.forEach(e=>{e.setAttribute(t,n)})}},{}],9:[function(e,t,n){"use strict";t.exports={AUTOCOMPLETE:"aria-autocomplete",CHECKED:"aria-checked",DISABLED:"aria-disabled",EXPANDED:"aria-expanded",HASPOPUP:"aria-haspopup",HIDDEN:"aria-hidden",INVALID:"aria-invalid",LABEL:"aria-label",LEVEL:"aria-level",MULTILINE:"aria-multiline",MULTISELECTABLE:"aria-multiselectable",ORIENTATION:"aria-orientation",PRESSED:"aria-pressed",READONLY:"aria-readonly",REQUIRED:"aria-required",SELECTED:"aria-selected",SORT:"aria-sort",VALUEMAX:"aria-valuemax",VALUEMIN:"aria-valuemin",VALUENOW:"aria-valuenow",VALUETEXT:"aria-valuetext",ATOMIC:"aria-atomic",BUSY:"aria-busy",LIVE:"aria-live",RELEVANT:"aria-relevant",DROPEFFECT:"aria-dropeffect",GRABBED:"aria-grabbed",ACTIVEDESCENDANT:"aria-activedescendant",CONTROLS:"aria-controls",DESCRIBEDBY:"aria-describedby",FLOWTO:"aria-flowto",LABELLEDBY:"aria-labelledby",OWNS:"aria-owns",POSINSET:"aria-posinset",SETSIZE:"aria-setsize"}},{}],10:[function(e,t,n){"use strict";t.exports={selectors:["input","select","textarea","button","optgroup","option","menuitem","fieldset","object","a[href]","[tabindex]","[contenteditable]"].join(","),nodeName:{INPUT:"input",SELECT:"select",TEXTAREA:"textarea",BUTTON:"button",OPTGROUP:"optgroup",OPTION:"option",MENUITEM:"menuitem",FIELDSET:"fieldset",OBJECT:"object",A:"a"}}},{}],11:[function(e,t,n){"use strict";t.exports=e(1)},{1:1}],12:[function(e,t,n){"use strict";t.exports={adler32:e(13)}},{13:13}],13:[function(e,t,n){"use strict";t.exports=function(e){var t,n=1,r=0;for(t=0;t=0;n--)void 0!==t?this._events[e][n](t):this._events[e][n]()},i.has=function(e){return e in this._events!=!1&&0!==this._events[e].length},i.destroy=function(){for(var e in this._events)this._events[e]=null;this._events=null},t.exports=r},{}],46:[function(e,t,n){"use strict";t.exports={canvasAvailable:e(47),continuousScrollEventsAvailable:e(48),cookiesAvailable:e(49),cssLinearGradientAvailable:e(50),cssPropertyAvailable:e(51),cssViewportUnitsAvailable:e(52),elementAttributeAvailable:e(53),eventTypeAvailable:e(54),isDesktop:e(56),isHandheld:e(57),isRetina:e(58),isTablet:e(59),localStorageAvailable:e(60),mediaElementsAvailable:e(61),mediaQueriesAvailable:e(62),prefersReducedMotion:e(63),sessionStorageAvailable:e(64),svgAvailable:e(65),threeDTransformsAvailable:e(66),touchAvailable:e(67),webGLAvailable:e(68)}},{47:47,48:48,49:49,50:50,51:51,52:52,53:53,54:54,56:56,57:57,58:58,59:59,60:60,61:61,62:62,63:63,64:64,65:65,66:66,67:67,68:68}],47:[function(e,t,n){"use strict";var r=e(55),i=e(70),o=function(){var e=r.getDocument().createElement("canvas");return!("function"!=typeof e.getContext||!e.getContext("2d"))};t.exports=i(o),t.exports.original=o},{55:55,70:70}],48:[function(e,t,n){"use strict";var r=e(122),i=e(67).original,o=e(70);function s(){return!i()||r.os.ios&&r.os.version.major>=8||r.browser.chrome}t.exports=o(s),t.exports.original=s},{122:122,67:67,70:70}],49:[function(e,t,n){"use strict";var r=e(55),i=e(70);function o(){var e=!1,t=r.getDocument(),n=r.getNavigator();try{"cookie"in t&&n.cookieEnabled&&(t.cookie="ac_feature_cookie=1",e=-1!==t.cookie.indexOf("ac_feature_cookie"),t.cookie="ac_feature_cookie=; expires=Thu, 01 Jan 1970 00:00:01 GMT;")}catch(e){}return e}t.exports=i(o),t.exports.original=o},{55:55,70:70}],50:[function(e,t,n){"use strict";var r=e(95),i=e(70);function o(){return["linear-gradient(to bottom right, #9f9, white)","linear-gradient(top left, #9f9, white)","gradient(linear, left top, right bottom, from(#9f9), to(white))"].some((function(e){return!!r("background-image",e)}))}t.exports=i(o),t.exports.original=o},{70:70,95:95}],51:[function(e,t,n){"use strict";var r=e(95),i=e(94),o=e(69);function s(e,t){return void 0!==t?!!r(e,t):!!i(e)}t.exports=o(s),t.exports.original=s},{69:69,94:94,95:95}],52:[function(e,t,n){"use strict";var r=e(95),i=e(70);function o(){return!!r("margin","1vw 1vh")}t.exports=i(o),t.exports.original=o},{70:70,95:95}],53:[function(e,t,n){"use strict";var r=e(55),i=e(69);function o(e,t){return t=t||"div",e in r.getDocument().createElement(t)}t.exports=i(o),t.exports.original=o},{55:55,69:69}],54:[function(e,t,n){"use strict";var r=e(93),i=e(69);function o(e,t){return!!r(e,t)}t.exports=i(o),t.exports.original=o},{69:69,93:93}],55:[function(e,t,n){"use strict";t.exports={getWindow:function(){return window},getDocument:function(){return document},getNavigator:function(){return navigator}}},{}],56:[function(e,t,n){"use strict";var r=e(122).os,i=e(67).original,o=e(55),s=e(70);function a(){var e=o.getWindow();return!i()&&!e.orientation||r.windows}t.exports=s(a),t.exports.original=a},{122:122,55:55,67:67,70:70}],57:[function(e,t,n){"use strict";var r=e(56).original,i=e(59).original,o=e(70);function s(){return!r()&&!i()}t.exports=o(s),t.exports.original=s},{56:56,59:59,70:70}],58:[function(e,t,n){"use strict";var r=e(55);t.exports=function(){var e=r.getWindow();return"devicePixelRatio"in e&&e.devicePixelRatio>=1.5}},{55:55}],59:[function(e,t,n){"use strict";var r=e(56).original,i=e(55),o=e(70);function s(){var e=i.getWindow(),t=e.screen.width;return e.orientation&&e.screen.height=600}t.exports=o(s),t.exports.original=s},{55:55,56:56,70:70}],60:[function(e,t,n){"use strict";var r=e(55),i=e(70);function o(){var e=r.getWindow(),t=!1;try{t=!(!e.localStorage||null===e.localStorage.non_existent)}catch(e){}return t}t.exports=i(o),t.exports.original=o},{55:55,70:70}],61:[function(e,t,n){"use strict";var r=e(55),i=e(70);function o(){return"HTMLMediaElement"in r.getWindow()}t.exports=i(o),t.exports.original=o},{55:55,70:70}],62:[function(e,t,n){"use strict";e(92);var r=e(55),i=e(70);function o(){var e=r.getWindow().matchMedia("only all");return!(!e||!e.matches)}t.exports=i(o),t.exports.original=o},{55:55,70:70,92:92}],63:[function(e,t,n){"use strict";var r=e(55);t.exports=function(){var e=r.getWindow().matchMedia("(prefers-reduced-motion)");return!(!e||!e.matches)}},{55:55}],64:[function(e,t,n){"use strict";var r=e(55),i=e(70);function o(){var e=r.getWindow(),t=!1;try{"sessionStorage"in e&&"function"==typeof e.sessionStorage.setItem&&(e.sessionStorage.setItem("ac_feature","test"),t=!0,e.sessionStorage.removeItem("ac_feature","test"))}catch(e){}return t}t.exports=i(o),t.exports.original=o},{55:55,70:70}],65:[function(e,t,n){"use strict";var r=e(55),i=e(70);function o(){return!!r.getDocument().implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Image","1.1")}t.exports=i(o),t.exports.original=o},{55:55,70:70}],66:[function(e,t,n){"use strict";var r=e(95),i=e(70);function o(){return!(!r("perspective","1px")||!r("transform","translateZ(0)"))}t.exports=i(o),t.exports.original=o},{70:70,95:95}],67:[function(e,t,n){"use strict";var r=e(55),i=e(70);function o(){var e=r.getWindow(),t=r.getDocument(),n=r.getNavigator();return!!("ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch||n.maxTouchPoints>0||n.msMaxTouchPoints>0)}t.exports=i(o),t.exports.original=o},{55:55,70:70}],68:[function(e,t,n){"use strict";var r=e(55),i=e(70);function o(){var e=r.getDocument().createElement("canvas");return"function"==typeof e.getContext&&!(!e.getContext("webgl")&&!e.getContext("experimental-webgl"))}t.exports=i(o),t.exports.original=o},{55:55,70:70}],69:[function(e,t,n){"use strict";var r=function(){var e,t="";for(e=0;e0&&(t+=","),t+=arguments[e];return t};t.exports=function(e,t){t=t||r;var n=function(){var r=arguments,i=t.apply(this,r);return i in n.cache||(n.cache[i]=e.apply(this,r)),n.cache[i]};return n.cache={},n}},{}],70:[function(e,t,n){"use strict";t.exports=function(e){var t;return function(){return void 0===t&&(t=e.apply(this,arguments)),t}}},{}],71:[function(e,t,n){"use strict";var r=e(76)(),i=e(123);function o(e){return e?e&&"object"==typeof e?(e.value||e.string||"").trim():(String(e)||"").trim():""}function s(){var e,t=/\{%([^%]+)%\}/g,n=Array.prototype.slice.call(arguments),r=n.pop(),s=r.fn?r.fn(this):o(n[0]);if(r.fn)e=n[0]||this;else{e=n[1]||this;var a=n[0]instanceof Object?n[0]:null}return s?s.replace(t,(function(n,s){var l,c=s.replace(t,"$1").trim();return"@root."===c.substr(0,6)&&(l=i.get(r.data.root,c.substr(6))),o(l||i.get(r.hash||{},c)||a&&i.get(a||{},c)||i.get(e||{},c)||i.get(r.data.root||{},c)||"")})):""}t.exports=function(e){var t={value:function(e){return o(e)},ref:function(){return s.apply(this,arguments)},md:function(t){return t=s.apply(this,arguments),t=r(t),new e.SafeString(t)},strip:function(e){return e+="",e=t.md.apply(this,arguments),e=(e+="").replace(/<([^>]+)>/g,"").trim()},e:function(n){return n=t.md.apply(this,arguments),n=(n+="").replace(/^

(.*)<\/p>(\n)?$/,(function(e,t){return t.trim()})),new e.SafeString(n)}};return t}},{123:123,76:76}],72:[function(e,t,n){const r=e(45),i=e(73);t.exports=class extends r{constructor(e){super(),this._keysDown={},this._DOMKeyDown=this._DOMKeyDown.bind(this),this._DOMKeyUp=this._DOMKeyUp.bind(this),this._context=e||document,this._context.addEventListener("keydown",this._DOMKeyDown,!0),this._context.addEventListener("keyup",this._DOMKeyUp,!0)}onDown(e,t){return this.on("keydown:"+e,t)}onceDown(e,t){return this.once("keydown:"+e,t)}offDown(e,t){return this.off("keydown:"+e,t)}onUp(e,t){return this.on("keyup:"+e,t)}onceUp(e,t){return this.once("keyup:"+e,t)}offUp(e,t){return this.off("keyup:"+e,t)}isDown(e){return e+="",this._keysDown[e]||!1}isUp(e){return!this.isDown(e)}destroy(){return this._context.removeEventListener("keydown",this._DOMKeyDown,!0),this._context.removeEventListener("keyup",this._DOMKeyUp,!0),this._keysDown=null,this._context=null,super.destroy(),this}_DOMKeyDown(e){var t=this._normalizeKeyboardEvent(e),n=t.keyCode+="";this._trackKeyDown(n),this.trigger("keydown:"+n,t)}_DOMKeyUp(e){var t=this._normalizeKeyboardEvent(e),n=t.keyCode+="";this._trackKeyUp(n),this.trigger("keyup:"+n,t)}_normalizeKeyboardEvent(e){return new i(e)}_trackKeyUp(e){this._keysDown[e]&&(this._keysDown[e]=!1)}_trackKeyDown(e){this._keysDown[e]||(this._keysDown[e]=!0)}}},{45:45,73:73}],73:[function(e,t,n){"use strict";const r=e(74),i=["keyLocation","keyIdentifier"];t.exports=class{constructor(e){this.originalEvent=e;for(let t in e)-1===i.indexOf(t)&&"function"!=typeof e[t]&&(this[t]=e[t]);this.keyCode||(this.keyCode=this._getKeyCode()),this.location=void 0!==this.originalEvent.location?this.originalEvent.location:this.originalEvent.keyLocation}preventDefault(){if("function"==typeof this.originalEvent.preventDefault)return this.originalEvent.preventDefault();this.originalEvent.returnValue=!1}stopPropagation(){return this.originalEvent.stopPropagation()}_getKeyCode(){return r[this.code]||-1}}},{74:74}],74:[function(e,t,n){"use strict";t.exports={Backspace:8,Tab:9,Enter:13,NumpadEnter:13,ShiftLeft:16,ShiftRight:16,ControlLeft:17,ControlRight:17,AltLeft:18,AltRight:18,CapsLock:20,Escape:27,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Delete:46,Digit0:48,Digit1:49,Digit2:50,Digit3:51,Digit4:52,Digit5:53,Digit6:54,Digit7:55,Digit8:56,Digit9:57,KeyA:65,KeyB:66,KeyC:67,KeyD:68,KeyE:69,KeyF:70,KeyG:71,KeyH:72,KeyI:73,KeyJ:74,KeyK:75,KeyL:76,KeyM:77,KeyN:78,KeyO:79,KeyP:80,KeyQ:81,KeyR:82,KeyS:83,KeyT:84,KeyU:85,KeyV:86,KeyW:87,KeyX:88,KeyY:89,KeyZ:90,Numpad0:96,Numpad1:97,Numpad2:98,Numpad3:99,Numpad4:100,Numpad5:101,Numpad6:102,Numpad7:103,Numpad8:104,Numpad9:105,NumpadMultiply:106,NumpadAdd:107,NumpadSubtract:109,NumpadDecimal:110,NumpadDivide:111,NumpadEqual:187,Backquote:192,BracketLeft:219,BracketRight:221,Backslash:220,Semicolon:186,Quote:222,Space:32,Equal:187,Comma:188,Minus:189,Period:190,Slash:191}},{}],75:[function(e,t,n){"use strict";t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CONTROL:17,ALT:18,COMMAND:91,CAPSLOCK:20,ESCAPE:27,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ASTERISK:106,NUMPAD_PLUS:107,NUMPAD_DASH:109,NUMPAD_DOT:110,NUMPAD_SLASH:111,NUMPAD_EQUALS:187,TICK:192,LEFT_BRACKET:219,RIGHT_BRACKET:221,BACKSLASH:220,SEMICOLON:186,APOSTROPHE:222,SPACEBAR:32,CLEAR:12,COMMA:188,DOT:190,SLASH:191}},{}],76:[function(e,t,n){"use strict";var r=e(157);r.Lexer.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)};var i={br:function(e,t){var n=[];t&&t.replace(/[\\(\\)]/g,"").split(/,| /).map((function(e){return e.trim()})).filter((function(e){return e.length>0})).filter((function(e){return e.match(/^[a-zA-Z0-9-]+$/)})).forEach((function(e){switch(e){case"s":e="small";break;case"m":e="medium";break;case"l":e="large"}n.push(e)}));var r=""}}},after:{cite:{regex:"\\[@(.+?)\\]",replace:"$1"},sub:{regex:"\\^\\^(.+?)\\^\\^",replace:"$1"},sup:{regex:"\\^(.+?)\\^",replace:"$1"},data:{regex:"\\{\\{DATA:(.+?)\\}\\}",replace:"$1"},nowrap:{regex:"\\{\\{(.+?)\\}\\}",replace:'$1'},nbsp:{regex:":nbsp:",replace:" "},wj:{regex:":wj:",replace:"⁠"},shyp:{regex:":shyp:",replace:"­"},nbhyp:{regex:":nbhyp:",replace:"‑"},wbr:{regex:":wbr:",replace:"​"},lrm:{regex:":lrm:",replace:"‎"},rlm:{regex:":rlm:",replace:"‏"},br:{regex:":br(\\(.*?\\))?:",replace:i.br},styleguide:{regex:"([^ ])/>",replace:"$1 />"}}};function s(e,t){return Object.keys(t).forEach((function(n){e=e.replace(new RegExp(t[n].regex,"g"),t[n].replace)})),e}var a=new r.Renderer;function l(e){return e}t.exports=function(e){(e=e||{}).renderer=e.renderer||a;var t=e.renderer.paragraph;return e.xhtml=!0,function(n,i){return i=i||{},e.renderer.paragraph=i.inline?l:t,n=s(n,o.before),n=s(n=r(n,e),o.after)}}},{157:157}],77:[function(e,t,n){"use strict";t.exports={clone:e(78),create:e(79),defaults:e(80),extend:e(81),getPrototypeOf:e(82),isDate:e(83),isEmpty:e(84),isRegExp:e(85),toQueryParameters:e(86)}},{78:78,79:79,80:80,81:81,82:82,83:83,84:84,85:85,86:86}],78:[function(e,t,n){"use strict";e(87);var r=e(81),i=Object.prototype.hasOwnProperty,o=function(e,t){var n;for(n in t)i.call(t,n)&&(null===t[n]?e[n]=null:"object"==typeof t[n]?(e[n]=Array.isArray(t[n])?[]:{},o(e[n],t[n])):e[n]=t[n]);return e};t.exports=function(e,t){return t?o({},e):r({},e)}},{81:81,87:87}],79:[function(e,t,n){"use strict";var r=function(){};t.exports=function(e){if(arguments.length>1)throw new Error("Second argument not supported");if(null===e||"object"!=typeof e)throw new TypeError("Object prototype may only be an Object.");return"function"==typeof Object.create?Object.create(e):(r.prototype=e,new r)}},{}],80:[function(e,t,n){"use strict";var r=e(81);t.exports=function(e,t){if("object"!=typeof e)throw new TypeError("defaults: must provide a defaults object");if("object"!=typeof(t=t||{}))throw new TypeError("defaults: options must be a typeof object");return r({},e,t)}},{81:81}],81:[function(e,t,n){"use strict";e(89);var r=Object.prototype.hasOwnProperty;t.exports=function(){var e,t;return e=arguments.length<2?[{},arguments[0]]:[].slice.call(arguments),t=e.shift(),e.forEach((function(e){if(null!=e)for(var n in e)r.call(e,n)&&(t[n]=e[n])})),t}},{89:89}],82:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;t.exports=function(e){if(Object.getPrototypeOf)return Object.getPrototypeOf(e);if("object"!=typeof e)throw new Error("Requested prototype of a value that is not an object.");if("object"==typeof this.__proto__)return e.__proto__;var t,n=e.constructor;if(r.call(e,"constructor")){if(t=n,!delete e.constructor)return null;n=e.constructor,e.constructor=t}return n?n.prototype:null}},{}],83:[function(e,t,n){"use strict";t.exports=function(e){return"[object Date]"===Object.prototype.toString.call(e)}},{}],84:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;t.exports=function(e){var t;if("object"!=typeof e)throw new TypeError("ac-base.Object.isEmpty : Invalid parameter - expected object");for(t in e)if(r.call(e,t))return!1;return!0}},{}],85:[function(e,t,n){"use strict";t.exports=function(e){return!!window.RegExp&&e instanceof RegExp}},{}],86:[function(e,t,n){"use strict";var r=e(114);t.exports=function(e){if("object"!=typeof e)throw new TypeError("toQueryParameters error: argument is not an object");return r(e,!1)}},{114:114}],87:[function(e,t,n){Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)})},{}],88:[function(e,t,n){Array.prototype.filter||(Array.prototype.filter=function(e,t){var n,r=Object(this),i=r.length>>>0,o=[];if("function"!=typeof e)throw new TypeError(e+" is not a function");for(n=0;n=0?a:s+a))>0)if(o=new Array(i),this.charAt)for(r=0;r-1||"Mozilla/5.0 (Windows NT 10.0; Win64; x64)"===e.ua}},{name:"edgeChromium",userAgent:"Edge",version:["rv","Edg"],test:function(e){return e.ua.indexOf("Edg")>-1&&-1===e.ua.indexOf("Edge")}},{name:"chrome",userAgent:"Chrome"},{name:"firefox",test:function(e){return e.ua.indexOf("Firefox")>-1&&-1===e.ua.indexOf("Opera")},version:"Firefox"},{name:"android",userAgent:"Android"},{name:"safari",test:function(e){return e.ua.indexOf("Safari")>-1&&e.vendor.indexOf("Apple")>-1},version:"Version"},{name:"ie",test:function(e){return e.ua.indexOf("IE")>-1||e.ua.indexOf("Trident")>-1},version:["MSIE","rv"],parseDocumentMode:function(){var e=!1;return document.documentMode&&(e=parseInt(document.documentMode,10)),e}},{name:"opera",userAgent:"Opera",version:["Version","Opera"]}],os:[{name:"windows",test:function(e){return e.ua.indexOf("Windows")>-1},version:"Windows NT"},{name:"osx",userAgent:"Mac",test:function(e){return e.ua.indexOf("Macintosh")>-1}},{name:"ios",test:function(e){return e.ua.indexOf("iPhone")>-1||e.ua.indexOf("iPad")>-1},version:["iPhone OS","CPU OS"]},{name:"linux",userAgent:"Linux",test:function(e){return(e.ua.indexOf("Linux")>-1||e.platform.indexOf("Linux")>-1)&&-1===e.ua.indexOf("Android")}},{name:"fireos",test:function(e){return e.ua.indexOf("Firefox")>-1&&e.ua.indexOf("Mobile")>-1},version:"rv"},{name:"android",userAgent:"Android",test:function(e){return e.ua.indexOf("Android")>-1}},{name:"chromeos",userAgent:"CrOS"}]}},{}],121:[function(e,t,n){"use strict";var r=e(119),i=e(120);function o(e,t){if("function"==typeof e.parseVersion)return e.parseVersion(t);var n,r=e.version||e.userAgent;"string"==typeof r&&(r=[r]);for(var i,o=r.length,s=0;s1)return i[1].replace(/_/g,".");return!1}function s(e,t,n){for(var r,i,s=e.length,a=0;a-1&&(r=e[a].name),r){if(t[r]=!0,"string"==typeof(i=o(e[a],n.ua))){var l=i.split(".");t.version.string=i,l&&l.length>0&&(t.version.major=parseInt(l[0]||0),t.version.minor=parseInt(l[1]||0),t.version.patch=parseInt(l[2]||0))}else"edge"===r&&(t.version.string="12.0.0",t.version.major="12",t.version.minor="0",t.version.patch="0");return"function"==typeof e[a].parseDocumentMode&&(t.version.documentMode=e[a].parseDocumentMode()),t}return t}t.exports=function(e){var t={};return t.browser=s(i.browser,r.browser,e),t.os=s(i.os,r.os,e),t}},{119:119,120:120}],122:[function(e,t,n){"use strict";var r={ua:window.navigator.userAgent,platform:window.navigator.platform,vendor:window.navigator.vendor};t.exports=e(121)(r)},{121:121}],123:[function(e,t,n){"use strict";var r=function(e,t,n,r){Array.isArray(t)||(t=t.split("."));for(var i=t.length-1,o=0;o= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};function u(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},s.registerDefaultHelpers(this),a.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:l.default,log:l.default.log,registerHelper:function(e,t){if("[object Object]"===i.toString.call(e)){if(t)throw new o.default("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if("[object Object]"===i.toString.call(e))i.extend(this.partials,e);else{if(void 0===t)throw new o.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if("[object Object]"===i.toString.call(e)){if(t)throw new o.default("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){c.resetLoggedProperties()}};var h=l.default.log;n.log=h,n.createFrame=i.createFrame,n.logger=l.default},{137:137,139:139,140:140,149:149,151:151,155:155}],127:[function(e,t,n){"use strict";n.__esModule=!0;var r={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!r.helpers.scopedId(e)&&!e.depth}}};n.default=r,t.exports=n.default},{}],128:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0,n.parseWithoutProcessing=c,n.parse=function(e,t){var n=c(e,t);return new o.default(t).accept(n)};var i=r(e(133)),o=r(e(136)),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(e(131)),a=e(155);n.parser=i.default;var l={};function c(e,t){return"Program"===e.type?e:(i.default.yy=l,l.locInfo=function(e){return new l.SourceLocation(t&&t.srcName,e)},i.default.parse(e))}a.extend(l,s)},{131:131,133:133,136:136,155:155}],129:[function(e,t,n){"use strict";n.__esModule=!0;var r=e(155),i=void 0;try{if("function"!=typeof define||!define.amd){var o=e(170);i=o.SourceNode}}catch(e){}function s(e,t,n){if(r.isArray(e)){for(var i=[],o=0,s=e.length;o1)throw new i.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,o="SubExpression"===e.name.type;o&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",o,r,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){u(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,n){var r=e.path,i=r.parts[0],o=null!=t||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,o)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,n){var r=this.setupFullMustacheParams(e,t,n),o=e.path,a=o.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new i.default("You specified knownHelpersOnly, but used the unknown helper "+a,e);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",r.length,o.original,s.default.helpers.simpleId(o))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],n=s.default.helpers.scopedId(e),r=!e.depth&&!n&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,n=0,r=t.length;for(this.opcode("pushHash");n=0)return[t,i]}}}},{127:127,139:139,155:155}],131:[function(e,t,n){"use strict";n.__esModule=!0,n.SourceLocation=function(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}},n.id=function(e){return/^\[.*\]$/.test(e)?e.substring(1,e.length-1):e},n.stripFlags=function(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}},n.stripComment=function(e){return e.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")},n.preparePath=function(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",i=[],s=0,a=0,l=t.length;a0)throw new o.default("Invalid path: "+r,{loc:n});".."===c&&s++}}return{type:"PathExpression",data:e,depth:s,parts:i,original:r,loc:n}},n.prepareMustache=function(e,t,n,r,i,o){var s=r.charAt(3)||r.charAt(2),a="{"!==s&&"&"!==s;return{type:/\*/.test(r)?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:a,strip:i,loc:this.locInfo(o)}},n.prepareRawBlock=function(e,t,n,r){s(e,n),r=this.locInfo(r);var i={type:"Program",body:t,strip:{},loc:r};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:r}},n.prepareBlock=function(e,t,n,r,i,a){r&&r.path&&s(e,r);var l=/\*/.test(e.open);t.blockParams=e.blockParams;var c=void 0,u=void 0;if(n){if(l)throw new o.default("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=r.strip),u=n.strip,c=n.program}i&&(i=c,c=t,t=i);return{type:l?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:c,openStrip:e.strip,inverseStrip:u,closeStrip:r&&r.strip,loc:this.locInfo(a)}},n.prepareProgram=function(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}},n.preparePartialBlock=function(e,t,n,r){return s(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(r)}};var r,i=e(139),o=(r=i)&&r.__esModule?r:{default:r};function s(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new o.default(e.path.original+" doesn't match "+t,n)}}},{139:139}],132:[function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}n.__esModule=!0;var i=e(126),o=r(e(139)),s=e(155),a=r(e(129));function l(e){this.value=e}function c(){}c.prototype={nameLookup:function(e,t){return this.internalNameLookup(e,t)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=i.COMPILER_REVISION;return[e,i.REVISION_CHANGES[e]]},appendToBuffer:function(e,t,n){return s.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,t){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(t),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,t,n,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,s=void 0,a=void 0,l=void 0,c=void 0;for(l=0,c=i.length;l0&&(n+=", "+r.join(", "));var i=0;Object.keys(this.aliases).forEach((function(e){var r=t.aliases[e];r.children&&r.referenceCount>1&&(n+=", alias"+ ++i+"="+e,r.children[0]="alias"+i)})),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var o=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&o.push("blockParams"),this.useDepths&&o.push("depths");var s=this.mergeSource(n);return e?(o.push(s),Function.apply(this,o)):this.source.wrap(["function(",o.join(","),") {\n ",s,"}"])},mergeSource:function(e){var t=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,o=void 0,s=void 0;return this.source.each((function(e){e.appendToBuffer?(o?e.prepend(" + "):o=e,s=e):(o&&(i?o.prepend("buffer += "):r=!0,s.add(";"),o=s=void 0),i=!0,t||(n=!1))})),n?o?(o.prepend("return "),s.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),o?(o.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},lookupPropertyFunctionVarDeclaration:function(){return"\n lookupProperty = container.lookupProperty || function(parent, propertyName) {\n if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {\n return parent[propertyName];\n }\n return undefined\n }\n ".trim()},blockValue:function(e){var t=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("container.hooks.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var n=this.topStack();t.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack((function(e){return[" != null ? ",e,' : ""']})),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[i++])),this.resolvePath("context",e,i,t,n)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,n)},resolvePath:function(e,t,n,r,i){var o=this;if(this.options.strict||this.options.assumeObjects)this.push(function(e,t,n,r){var i=t.popStack(),o=0,s=n.length;e&&s--;for(;othis.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;t2&&b.push("'"+this.terminals_[v]+"'");k=this.lexer.showPosition?"Parse error on line "+(a+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+b.join(", ")+", got '"+(this.terminals_[p]||p)+"'":"Parse error on line "+(a+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:u,expected:b})}}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+f+", token: "+p);switch(g[0]){case 1:n.push(p),r.push(this.lexer.yytext),i.push(this.lexer.yylloc),n.push(g[1]),p=null,d?(p=d,d=null):(l=this.lexer.yyleng,s=this.lexer.yytext,a=this.lexer.yylineno,u=this.lexer.yylloc,c>0&&c--);break;case 2:if(_=this.productions_[g[1]][1],w.$=r[r.length-_],w._$={first_line:i[i.length-(_||1)].first_line,last_line:i[i.length-1].last_line,first_column:i[i.length-(_||1)].first_column,last_column:i[i.length-1].last_column},h&&(w._$.range=[i[i.length-(_||1)].range[0],i[i.length-1].range[1]]),void 0!==(m=this.performAction.call(w,s,l,a,this.yy,g[1],r,i)))return m;_&&(n=n.slice(0,-1*_*2),r=r.slice(0,-1*_),i=i.slice(0,-1*_)),n.push(this.productions_[g[1]][0]),r.push(w.$),i.push(w._$),y=o[n[n.length-2]][n[n.length-1]],n.push(y);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;var e,t,n,r,i;this._input||(this.done=!0),this._more||(this.yytext="",this.match="");for(var o=this._currentRules(),s=0;st[0].length)||(t=n,r=s,this.options.flex));s++);return t?((i=t[0].match(/(?:\r\n?|\n).*/g))&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,o[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e||void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return void 0!==e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)},options:{},performAction:function(e,t,n,r){function i(e,n){return t.yytext=t.yytext.substring(e,t.yyleng-n+e)}switch(n){case 0:if("\\\\"===t.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(i(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return e}();function n(){this.yy={}}return e.lexer=t,n.prototype=e,e.Parser=n,new n}();n.default=r,t.exports=n.default},{}],134:[function(e,t,n){"use strict";n.__esModule=!0,n.print=function(e){return(new s).accept(e)},n.PrintVisitor=s;var r,i=e(135),o=(r=i)&&r.__esModule?r:{default:r};function s(){this.padding=0}s.prototype=new o.default,s.prototype.pad=function(e){for(var t="",n=0,r=this.padding;n "+t+" }}")},s.prototype.PartialBlockStatement=function(e){var t="PARTIAL BLOCK:"+e.name.original;return e.params[0]&&(t+=" "+this.accept(e.params[0])),e.hash&&(t+=" "+this.accept(e.hash)),t+=" "+this.pad("PROGRAM:"),this.padding++,t+=this.accept(e.program),this.padding--,this.pad("{{> "+t+" }}")},s.prototype.ContentStatement=function(e){return this.pad("CONTENT[ '"+e.value+"' ]")},s.prototype.CommentStatement=function(e){return this.pad("{{! '"+e.value+"' }}")},s.prototype.SubExpression=function(e){for(var t,n=e.params,r=[],i=0,o=n.length;i0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var s=r.createFrame(n.data);s.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:s}}return o(t,n)}))},t.exports=n.default},{155:155}],142:[function(e,t,n){(function(r){(function(){"use strict";n.__esModule=!0;var i,o=e(155),s=e(139),a=(i=s)&&i.__esModule?i:{default:i};n.default=function(e){e.registerHelper("each",(function(e,t){if(!t)throw new a.default("Must pass iterator to #each");var n,i=t.fn,s=t.inverse,l=0,c="",u=void 0,h=void 0;function p(t,n,r){u&&(u.key=t,u.index=n,u.first=0===n,u.last=!!r,h&&(u.contextPath=h+t)),c+=i(e[t],{data:u,blockParams:o.blockParams([e[t],t],[h+t,null])})}if(t.data&&t.ids&&(h=o.appendContextPath(t.data.contextPath,t.ids[0])+"."),o.isFunction(e)&&(e=e.call(this)),t.data&&(u=o.createFrame(t.data)),e&&"object"==typeof e)if(o.isArray(e))for(var d=e.length;l=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o=a.LAST_COMPATIBLE_COMPILER_REVISION&&t<=a.COMPILER_REVISION)return;if(t":">",'"':""","'":"'","`":"`","=":"="},i=/[&<>"'`=]/g,o=/[&<>"'`=]/;function s(e){return r[e]}function a(e){for(var t=1;t ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:m,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};function i(e){this.tokens=[],this.tokens.links={},this.options=e||_.defaults,this.rules=r.normal,this.options.gfm&&(this.options.tables?this.rules=r.tables:this.rules=r.gfm)}r._label=/(?:\\[\[\]]|[^\[\]])+/,r._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,r.def=p(r.def).replace("label",r._label).replace("title",r._title).getRegex(),r.bullet=/(?:[*+-]|\d+\.)/,r.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,r.item=p(r.item,"gm").replace(/bull/g,r.bullet).getRegex(),r.list=p(r.list).replace(/bull/g,r.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+r.def.source+")").getRegex(),r._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b",r.html=p(r.html).replace("comment",//).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/\s]*)*?\/?>/).replace(/tag/g,r._tag).getRegex(),r.paragraph=p(r.paragraph).replace("hr",r.hr).replace("heading",r.heading).replace("lheading",r.lheading).replace("tag","<"+r._tag).getRegex(),r.blockquote=p(r.blockquote).replace("paragraph",r.paragraph).getRegex(),r.normal=v({},r),r.gfm=v({},r.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),r.gfm.paragraph=p(r.paragraph).replace("(?!","(?!"+r.gfm.fences.source.replace("\\1","\\2")+"|"+r.list.source.replace("\\1","\\3")+"|").getRegex(),r.tables=v({},r.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),i.rules=r,i.lex=function(e,t){return new i(t).lex(e)},i.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},i.prototype.token=function(e,t){var n,i,o,s,a,l,c,u,h,p,d;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(t&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},u=0;u ?/gm,""),this.token(o,t),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),d=(s=o[2]).length>1,this.tokens.push({type:"list_start",ordered:d,start:d?+s:""}),n=!1,p=(o=o[0].match(this.rules.item)).length,u=0;u1&&a.length>1||(e=o.slice(u+1).join("\n")+e,u=p-1)),i=n||/\n\n(?!\s*$)/.test(l),u!==p-1&&(n="\n"===l.charAt(l.length-1),i||(i=n)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(l,!1),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(t&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),h=o[1].toLowerCase(),this.tokens.links[h]||(this.tokens.links[h]={href:o[2],title:o[3]});else if(t&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},u=0;u])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:/^|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:m,text:/^[\s\S]+?(?=[\\/g,">").replace(/"/g,""").replace(/'/g,"'")}function h(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}function p(e,t){return e=e.source,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function d(e,t){return f[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?f[" "+e]=e+"/":f[" "+e]=e.replace(/[^/]*$/,"")),e=f[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}o._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,o._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,o.autolink=p(o.autolink).replace("scheme",o._scheme).replace("email",o._email).getRegex(),o._inside=/(?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/,o._href=/\s*?(?:\s+['"]([\s\S]*?)['"])?\s*/,o.link=p(o.link).replace("inside",o._inside).replace("href",o._href).getRegex(),o.reflink=p(o.reflink).replace("inside",o._inside).getRegex(),o.normal=v({},o),o.pedantic=v({},o.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),o.gfm=v({},o.normal,{escape:p(o.escape).replace("])","~|])").getRegex(),url:p(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",o._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:p(o.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),o.breaks=v({},o.gfm,{br:p(o.br).replace("{2,}","*").getRegex(),text:p(o.gfm.text).replace("{2,}","*").getRegex()}),s.rules=o,s.output=function(e,t,n){return new s(t,n).output(e)},s.prototype.output=function(e){for(var t,n,r,i,o="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),r="@"===i[2]?"mailto:"+(n=u(this.mangle(i[1]))):n=u(i[1]),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):u(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){o+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),o+=this.renderer.codespan(u(i[2].trim(),!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),o+=this.renderer.text(u(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else i[0]=this.rules._backpedal.exec(i[0])[0],e=e.substring(i[0].length),"@"===i[2]?r="mailto:"+(n=u(i[0])):(n=u(i[0]),r="www."===i[1]?"http://"+n:n),o+=this.renderer.link(r,null,n);return o},s.prototype.outputLink=function(e,t){var n=u(t.href),r=t.title?u(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,u(e[1]))},s.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},s.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},a.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'

'+(n?e:u(e,!0))+"\n
\n":"
"+(n?e:u(e,!0))+"\n
"},a.prototype.blockquote=function(e){return"
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,t,n){return"'+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,t){return"\n\n"+e+"\n\n"+t+"\n
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(h(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return n}this.options.baseUrl&&!g.test(e)&&(e=d(this.options.baseUrl,e));var i='
    "},a.prototype.image=function(e,t,n){this.options.baseUrl&&!g.test(e)&&(e=d(this.options.baseUrl,e));var r=''+n+'":">"},a.prototype.text=function(e){return e},l.prototype.strong=l.prototype.em=l.prototype.codespan=l.prototype.del=l.prototype.text=function(e){return e},l.prototype.link=l.prototype.image=function(e,t,n){return""+n},l.prototype.br=function(){return""},c.parse=function(e,t){return new c(t).parse(e)},c.prototype.parse=function(e){this.inline=new s(e.links,this.options),this.inlineText=new s(e.links,v({},this.options,{renderer:new l})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},c.prototype.next=function(){return this.token=this.tokens.pop()},c.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},c.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},c.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,h(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;eAn error occurred:

    "+u(e.message+"",!0)+"
    ";throw e}}m.exec=m,_.options=_.setOptions=function(e){return v(_.defaults,e),_},_.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new a,xhtml:!1,baseUrl:null},_.Parser=c,_.parser=c.parse,_.Renderer=a,_.TextRenderer=l,_.Lexer=i,_.lexer=i.lex,_.InlineLexer=s,_.inlineLexer=s.output,_.parse=_,void 0!==t&&"object"==typeof n?t.exports=_:"function"==typeof define&&define.amd?define((function(){return _})):e.marked=_}(this||("undefined"!=typeof window?window:e))}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],158:[function(e,t,n){!function(){if(window.matchMedia&&window.matchMedia("all").addListener)return!1;var e=window.matchMedia,t=e("only all").matches,n=!1,r=0,i=[],o=function(t){clearTimeout(r),r=setTimeout((function(){for(var t=0,n=i.length;t=0)return t}else{var n=r.toSetString(e);if(i.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')},s.prototype.at=function(e){if(e>=0&&e>>=5)>0&&(t|=32),n+=r.encode(t)}while(i>0);return n},n.decode=function(e,t,n){var i,o,s,a,l=e.length,c=0,u=0;do{if(t>=l)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(o=r.decode(e.charCodeAt(t++))))throw new Error("Invalid base64 digit: "+e.charAt(t-1));i=!!(32&o),c+=(o&=31)<>1,1==(1&s)?-a:a),n.rest=t}},{162:162}],162:[function(e,t,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");n.encode=function(e){if(0<=e&&e0?r-l>1?e(l,r,i,o,s,a):a==n.LEAST_UPPER_BOUND?r1?e(t,l,i,o,s,a):a==n.LEAST_UPPER_BOUND?l:t<0?-1:t}(-1,t.length,e,t,r,i||n.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&0===r(t[o],t[o-1],!0);)--o;return o}},{}],164:[function(e,t,n){var r=e(169);function i(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}i.prototype.unsortedForEach=function(e,t){this._array.forEach(e,t)},i.prototype.add=function(e){var t,n,i,o,s,a;t=this._last,n=e,i=t.generatedLine,o=n.generatedLine,s=t.generatedColumn,a=n.generatedColumn,o>i||o==i&&a>=s||r.compareByGeneratedPositionsInflated(t,n)<=0?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))},i.prototype.toArray=function(){return this._sorted||(this._array.sort(r.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},n.MappingList=i},{169:169}],165:[function(e,t,n){function r(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function i(e,t,n,o){if(n=0){var a=this._originalMappings[s];if(void 0===e.column)for(var l=a.originalLine;a&&a.originalLine===l;)o.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===t&&a.originalColumn==c;)o.push({line:r.getArg(a,"generatedLine",null),column:r.getArg(a,"generatedColumn",null),lastColumn:r.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return o},n.SourceMapConsumer=l,c.prototype=Object.create(l.prototype),c.prototype.consumer=l,c.prototype._findSourceIndex=function(e){var t,n=e;if(null!=this.sourceRoot&&(n=r.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(t=0;t1&&(n.source=g+o[1],g+=o[1],n.originalLine=d+o[2],d=n.originalLine,n.originalLine+=1,n.originalColumn=f+o[3],f=n.originalColumn,o.length>4&&(n.name=m+o[4],m+=o[4])),w.push(n),"number"==typeof n.originalLine&&x.push(n)}a(w,r.compareByGeneratedPositionsDeflated),this.__generatedMappings=w,a(x,r.compareByOriginalPositions),this.__originalMappings=x},c.prototype._findMapping=function(e,t,n,r,o,s){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return i.search(e,t,o,s)},c.prototype.computeColumnSpans=function(){for(var e=0;e=0){var i=this._generatedMappings[n];if(i.generatedLine===t.generatedLine){var o=r.getArg(i,"source",null);null!==o&&(o=this._sources.at(o),o=r.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=r.getArg(i,"name",null);return null!==s&&(s=this._names.at(s)),{source:o,line:r.getArg(i,"originalLine",null),column:r.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}},c.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&(this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some((function(e){return null==e})))},c.prototype.sourceContentFor=function(e,t){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i,o=e;if(null!=this.sourceRoot&&(o=r.relative(this.sourceRoot,o)),null!=this.sourceRoot&&(i=r.urlParse(this.sourceRoot))){var s=o.replace(/^file:\/\//,"");if("file"==i.scheme&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!i.path||"/"==i.path)&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(t)return null;throw new Error('"'+o+'" is not in the SourceMap.')},c.prototype.generatedPositionFor=function(e){var t=r.getArg(e,"source");if((t=this._findSourceIndex(t))<0)return{line:null,column:null,lastColumn:null};var n={source:t,originalLine:r.getArg(e,"line"),originalColumn:r.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",r.compareByOriginalPositions,r.getArg(e,"bias",l.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:r.getArg(o,"generatedLine",null),column:r.getArg(o,"generatedColumn",null),lastColumn:r.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},n.BasicSourceMapConsumer=c,h.prototype=Object.create(l.prototype),h.prototype.constructor=l,h.prototype._version=3,Object.defineProperty(h.prototype,"sources",{get:function(){for(var e=[],t=0;t0&&e.column>=0)||t||n||r)&&!(e&&"line"in e&&"column"in e&&t&&"line"in t&&"column"in t&&e.line>0&&e.column>=0&&t.line>0&&t.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:t,name:r}))},a.prototype._serializeMappings=function(){for(var e,t,n,o,s=0,a=1,l=0,c=0,u=0,h=0,p="",d=this._mappings.toArray(),f=0,g=d.length;f0){if(!i.compareByGeneratedPositionsInflated(t,d[f-1]))continue;e+=","}e+=r.encode(t.generatedColumn-s),s=t.generatedColumn,null!=t.source&&(o=this._sources.indexOf(t.source),e+=r.encode(o-h),h=o,e+=r.encode(t.originalLine-1-c),c=t.originalLine-1,e+=r.encode(t.originalColumn-l),l=t.originalColumn,null!=t.name&&(n=this._names.indexOf(t.name),e+=r.encode(n-u),u=n)),p+=e}return p},a.prototype._generateSourcesContent=function(e,t){return e.map((function(e){if(!this._sourcesContents)return null;null!=t&&(e=i.relative(t,e));var n=i.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},a.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},a.prototype.toString=function(){return JSON.stringify(this.toJSON())},n.SourceMapGenerator=a},{160:160,161:161,164:164,169:169}],168:[function(e,t,n){var r=e(167).SourceMapGenerator,i=e(169),o=/(\r?\n)/,s="$$$isSourceNode$$$";function a(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==t?null:t,this.source=null==n?null:n,this.name=null==i?null:i,this[s]=!0,null!=r&&this.add(r)}a.fromStringWithSourceMap=function(e,t,n){var r=new a,s=e.split(o),l=0,c=function(){return e()+(e()||"");function e(){return l=0;t--)this.prepend(e[t]);else{if(!e[s]&&"string"!=typeof e)throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);this.children.unshift(e)}return this},a.prototype.walk=function(e){for(var t,n=0,r=this.children.length;n0){for(t=[],n=0;n=0;u--)"."===(i=l[u])?l.splice(u,1):".."===i?c++:c>0&&(""===i?(l.splice(u+1,c),c=0):(l.splice(u,2),c--));return""===(t=l.join("/"))&&(t=a?"/":"."),r?(r.path=t,s(r)):t}function l(e,t){""===e&&(e="."),""===t&&(t=".");var n=o(t),r=o(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),s(n);if(n||t.match(i))return t;if(r&&!r.host&&!r.path)return r.host=t,s(r);var l="/"===t.charAt(0)?t:a(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=l,s(r)):l}n.urlParse=o,n.urlGenerate=s,n.normalize=a,n.join=l,n.isAbsolute=function(e){return"/"===e.charAt(0)||r.test(e)},n.relative=function(e,t){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==t.indexOf(e+"/");){var r=e.lastIndexOf("/");if(r<0)return t;if((e=e.slice(0,r)).match(/^([^\/]+:\/)?\/*$/))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)};var c=!("__proto__"in Object.create(null));function u(e){return e}function h(e){if(!e)return!1;var t=e.length;if(t<9)return!1;if(95!==e.charCodeAt(t-1)||95!==e.charCodeAt(t-2)||111!==e.charCodeAt(t-3)||116!==e.charCodeAt(t-4)||111!==e.charCodeAt(t-5)||114!==e.charCodeAt(t-6)||112!==e.charCodeAt(t-7)||95!==e.charCodeAt(t-8)||95!==e.charCodeAt(t-9))return!1;for(var n=t-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function p(e,t){return e===t?0:null===e?1:null===t?-1:e>t?1:-1}n.toSetString=c?u:function(e){return h(e)?"$"+e:e},n.fromSetString=c?u:function(e){return h(e)?e.slice(1):e},n.compareByOriginalPositions=function(e,t,n){var r=p(e.source,t.source);return 0!==r||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)||n||0!==(r=e.generatedColumn-t.generatedColumn)||0!==(r=e.generatedLine-t.generatedLine)?r:p(e.name,t.name)},n.compareByGeneratedPositionsDeflated=function(e,t,n){var r=e.generatedLine-t.generatedLine;return 0!==r||0!==(r=e.generatedColumn-t.generatedColumn)||n||0!==(r=p(e.source,t.source))||0!==(r=e.originalLine-t.originalLine)||0!==(r=e.originalColumn-t.originalColumn)?r:p(e.name,t.name)},n.compareByGeneratedPositionsInflated=function(e,t){var n=e.generatedLine-t.generatedLine;return 0!==n||0!==(n=e.generatedColumn-t.generatedColumn)||0!==(n=p(e.source,t.source))||0!==(n=e.originalLine-t.originalLine)||0!==(n=e.originalColumn-t.originalColumn)?n:p(e.name,t.name)},n.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},n.computeSourceURL=function(e,t,n){if(t=t||"",e&&("/"!==e[e.length-1]&&"/"!==t[0]&&(e+="/"),t=e+t),n){var r=o(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var i=r.path.lastIndexOf("/");i>=0&&(r.path=r.path.substring(0,i+1))}t=l(s(r),t)}return a(t)}},{}],170:[function(e,t,n){n.SourceMapGenerator=e(167).SourceMapGenerator,n.SourceMapConsumer=e(166).SourceMapConsumer,n.SourceNode=e(168).SourceNode},{166:166,167:167,168:168}],171:[function(e,t,n){t.exports='{{#with localeswitcher}}
    {{/with}}'},{}],172:[function(e,t,n){"use strict";new(e(173))},{173:173}],173:[function(e,t,n){"use strict";let r=null;try{r=e("@marcom/ac-analytics").observer.Event}catch(e){}const i=e(44).EventEmitterMicro,o=e(2),s=e(72),a=e(75),l=e(117),c=e(107),u=e(6),h=e(3),p=e(156),d=e(71),f=e(171),g=e(4);p.registerHelper(d(p));const m={className:"ac-ls",releaseVersion:"4",jsonFilePath:"/content/localeswitcher.json",fluidStyleSheetFilePath:"/styles/localeswitcher.built.css",optOutDismissalMax:3,optOutDaysToExpiration:30,focusedElementsTimeout:300};t.exports=class{constructor(){this._options=m,this._eventEmitterMicro=new i,this._setUserLangLocale(),this._userLangLocale&&this._loadJson(this._userLangLocale),l()&&(this.storageItem=new c("ls-opt-out"),this.storageItem.load()),this.focusedElementsId=null}_setUserLangLocale(){this._userLang=this._getUserBrowserLanguage(),this._geoCookieLocale=this._getCookie("geo");const e=this._getParameterByName("ls-geo"),t=this._getParameterByName("ls-locale");e||t?(this._forceLoad=!0,e?(this._geoCookieLocale=e,this._userLangLocale=this._getLocaleCode(this._geoCookieLocale,this._userLang)):t&&(this._userLangLocale="true"===t?"en-US":t)):this._userLangLocale=this._getLocaleCode(this._geoCookieLocale,this._userLang)}_loadJson(e){const t=this._getAcFilePath(e)+this._options.jsonFilePath;let n=new XMLHttpRequest;n.open("GET",t),n.onreadystatechange=function(){4===n.readyState&&200===n.status&&(this._jsonData=JSON.parse(n.responseText),this._loadJsonComplete())}.bind(this),n.send()}_loadJsonComplete(){this._setMetaData(),this._shouldInitialize=this._shouldInitializeLocaleSwitcher(),this._shouldInitialize&&this._addStyleSheet()}_setMetaData(){let e={};e.optOutDismissalMax=parseInt(this._jsonData.localeswitcher.exit.metadata.dismiss),e.optOutDaysToExpiration=parseInt(this._jsonData.localeswitcher.exit.metadata.duration),this._options=Object.assign(m,e)}_addStyleSheet(){let e=this._getAcFilePath(this._userLangLocale)+this._options.fluidStyleSheetFilePath;const t=document.createElement("link");t.rel="stylesheet",t.type="text/css",t.href=e,t.addEventListener("load",this._loadStylesComplete.bind(this)),document.head.appendChild(t)}_loadStylesComplete(){this._shouldInitialize&&this._addLocaleSwitcherContent()}_addLocaleSwitcherContent(){const e=p.compile(f)(this._jsonData);document.body.firstElementChild.insertAdjacentHTML("beforebegin",e),this.el=document.getElementById("ac-localeswitcher"),this.el&&this._initialize()}_initialize(){this._selectIsOpen=!1,this._selectors={dropdownOptionsId:this._options.className+"-dropdown-options",dropdownCollapsedClass:"select-collapsed",dropdownOptionClass:this._options.className+"-dropdown-option",visibleClass:this._options.className+"-visible",fixedClass:this._options.className+"-fixed"},this._dropdownList=document.getElementById(this._selectors.dropdownOptionsId),this._selectTrigger=document.getElementById("ac-ls-dropdown-select"),this._continueButton=document.getElementById("ac-ls-continue"),this._closeButton=document.getElementById("ac-ls-close"),this._firstFocusableMenuEl=document.getElementById("ac-ls-dropdown-option-1"),this._lastFocusableMenuEl=document.getElementById("ac-ls-dropdown-option-country-region"),this._openDropdown=this._openDropdown.bind(this),this._closeDropdown=this._closeDropdown.bind(this),this._dropdownFocusOut=this._dropdownFocusOut.bind(this),this._handleDropdownSelection=this._handleDropdownSelection.bind(this),this._handleDropdownClickAway=this._handleDropdownClickAway.bind(this),this._handleCloseBarEvent=this._handleCloseBarEvent.bind(this),this._setUpEventListeners(),this._setDropdownLinks(),this._setContinueButton(this._listItems[0]),document.documentElement.classList.toggle(this._selectors.visibleClass),this._gnMenuIcon=document.querySelector(".globalnav-menutrigger"),this._gnMenuIcon&&this._gnMenuIcon.addEventListener("click",this._handleCloseBarEvent),this._lnMenuCta=document.querySelector(".ac-ln-menucta"),this._lnMenuCta&&this._lnMenuCta.addEventListener("click",this._handleCloseBarEvent),this._lnCta=document.querySelector(".localnav-menucta"),this._lnCta&&this._lnCta.addEventListener("click",this._handleCloseBarEvent);const e=document.querySelector("[hreflang=en-US]");e&&("https://www.apple.com/"===e.href||null!==e.href.match(/.com\/$/im))&&document.documentElement.classList.toggle(this._selectors.fixedClass)}_setUpEventListeners(){"ontouchstart"in document.documentElement?document.addEventListener("touchstart",this._handleDropdownClickAway):document.addEventListener("click",this._handleDropdownClickAway),this._closeButton.addEventListener("click",this._handleCloseBarEvent),this._closeButton.addEventListener("keydown",this._handleCloseBarKeyDownEvent.bind(this)),this._continueButton.addEventListener("click",this._handleContinueButtonEvent.bind(this)),this._initializeDropdownToggle()}_getUserBrowserLanguage(){return(navigator.language||navigator.userLanguage||navigator.browserLanguage||navigator.systemLanguage||"en-US").substring(0,2)}_hasOptedOut(){let e=!1;if(l()){this._removeExpiredLocalStorage();const t=this.storageItem.value();null===t?this._createLocalStorage():t.dismissals===this._options.optOutDismissalMax&&(e=!0)}else e=!0;return e}_createLocalStorage(){this.storageItem.setValue({dismissals:0}),this.storageItemExpiration=c.createExpirationDate(this._options.optOutDaysToExpiration),this.storageItem.setExpirationDate(this.storageItemExpiration),this.storageItem.save()}_removeExpiredLocalStorage(){const e=this.storageItem.expirationDate();c.createExpirationDate(0)>e&&this.storageItem.remove()}_setOptOutCounter(){var e,t;const n=null===(e=this.storageItem)||void 0===e||null===(t=e.value())||void 0===t?void 0:t.dismissals;n{const n=document.querySelector(`[hreflang=${e}]`).href;"ac-ls-dropdown-option-country-region"!==this._listItems[t].id&&this._listItems[t].setAttribute("data-href",n)})}_sortLinkIds(e,t){const n=e.indexOf(t);if(-1!==n&&e.length>1){const t=[];return t[0]=e[n],e.splice(n,1),t[1]=e[0],t}return e}_setContinueButton(e){const t=e.getAttribute("data-href");this._selectedLink=t;const n=document.querySelector(`[href$="${t}"][hreflang]`);this._selectedCountry="choose your country",n&&(this._selectedCountry=n.hreflang),this._continueButton.setAttribute("href",t)}_onRAFUpdate(){this._elHeight=window.getComputedStyle(this.el).height}_onRAFDraw(){this._elHeight!==this._lastHeight&&(document.documentElement.style["margin-top"]=this._elHeight,this.el.style.top="-"+this._elHeight),this._lastHeight=this._elHeight}_determineAnalyticsEvents(){let e;this._listItems.forEach((t,n)=>{this._listItems[n].getAttribute("data-href")===this._selectedLink&&(e=n)});let t="event142";return 0===e?t="event141":e===this._listItems.length-1&&(t="event143"),t}_handleContinueButtonEvent(e){e.preventDefault();const t="event144, "+this._determineAnalyticsEvents();if(r){new r(this._eventEmitterMicro).track({title:"continued with localeswitcher",events:t,eVar74:this._userLangLocale,eVar75:this._selectedCountry,prop3:"continue"})}setTimeout(()=>{window.location=e.target.getAttribute("href")},300)}_handleCloseBarEvent(){if(r){new r(this._eventEmitterMicro).track({title:"closed localeswitcher",events:"event145",eVar74:this._userLangLocale,eVar75:"no selection",prop3:"exit"})}document.documentElement.classList.remove(this._selectors.visibleClass),document.documentElement.classList.remove(this._selectors.fixedClass),document.documentElement.style["margin-top"]="",this.el.style.top="","ontouchstart"in document.documentElement?document.removeEventListener("touchstart",this._handleDropdownClickAway):document.removeEventListener("click",this._handleDropdownClickAway),this._gnMenuIcon&&this._gnMenuIcon.removeEventListener("click",this._handleCloseBarEvent),this._lnMenuCta&&this._lnMenuCta.removeEventListener("click",this._handleCloseBarEvent),this._lnCta&&this._lnCta.removeEventListener("click",this._handleCloseBarEvent),this._arrowNavigation.destroy(),this._dropdownWrapperKeyboard.destroy(),this._dropdownFirstItemKeyboard.destroy(),this._dropdownLastItemKeyboard.destroy(),this._setOptOutCounter()}_handleCloseBarKeyDownEvent(e){const t=e.currentTarget;if(document.activeElement===t&&("Enter"===e.code||"Space"===e.code)){const e=g.getFocusableElements(document.body,!0).filter(e=>!0!==this.el.contains(e));e.length>0&&(this.focusedElementsId=setTimeout(()=>{e[0].focus(),clearTimeout(this.focusedElementsId)},this._options.focusedElementsTimeout))}}_handleDropdownClickAway(e){var t;const n=this._dropdownList.parentElement,r=n.contains(e.target),i=n.classList.contains(this._selectors.dropdownCollapsedClass),o=e.target.classList.contains("globalnav-link-search")||(null===(t=e.target.parentElement)||void 0===t?void 0:t.classList.contains("globalnav-searchfield-wrapper"));r||i?r||!i||o||"click"!==e.type?r||!i||o||"touchstart"!==e.type||document.activeElement.blur():document.body.focus():this._closeDropdown()}_openDropdown(e){this._selectIsOpen||(e.preventDefault(),e.stopPropagation(),this._dropdownList.parentElement.classList.remove(this._selectors.dropdownCollapsedClass),this._dropdownList.querySelector("[data-ac-ls-selected=true]").focus(),this._selectTrigger.removeAttribute("tabindex"),this._selectTrigger.setAttribute("aria-expanded","true"),this._selectIsOpen=!0)}_closeDropdown(){this._selectIsOpen&&(this._dropdownList.parentElement.classList.add(this._selectors.dropdownCollapsedClass),u(this._selectTrigger),this._selectTrigger.removeAttribute("aria-expanded"),this._selectTrigger.focus(),this._selectIsOpen=!1)}_dropdownFocusOut(e){e.currentTarget===this._firstFocusableMenuEl&&!0===e.shiftKey&&(e.stopPropagation(),e.preventDefault(),this._closeDropdown()),e.currentTarget===this._lastFocusableMenuEl&&!1===e.shiftKey&&(e.stopPropagation(),e.preventDefault(),this._closeDropdown(),this._continueButton.focus())}_getCookie(e){const t=("; "+document.cookie).split(`; ${e}=`);if(2===t.length)return t.pop().split(";").shift()}_getLocaleCode(e,t){let n=[],r=null;return n=this._findCountryMatches(e),r=this._findLanguageMatches(n,t),r}_findCountryMatches(e){const t=[];return document.querySelectorAll("[hreflang]").forEach(n=>{const r=n.hreflang,i=n.hreflang.split("-")[1];e===i&&t.push(r)}),t}_findLanguageMatches(e,t){let n=e[0];return e.length>1&&e.forEach(e=>{const r=e.split("-")[0];t===r&&(n=e)}),n}_getParameterByName(e,t){t||(t=window.location.href);const n=e.replace(/[\[\]]/g,"\\$&"),r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)").exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null}_getAcFilePath(e){const t=e.replace("-","_");let n=`/ac/localeswitcher/${this._options.releaseVersion}/`;return-1!==window.location.href.indexOf("/tests/")&&(n=`./../built/ac/localeswitcher/${this._options.releaseVersion}/`),n+t}}},{107:107,117:117,156:156,171:171,2:2,3:3,4:4,44:44,6:6,71:71,72:72,75:75,undefined:void 0}]},{},[172]);