You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
71 KiB

!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=219)}([function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){var n=r(27)("wks"),o=r(26),i=r(0).Symbol,a="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=n},function(e,t){var r=e.exports={version:"2.6.11"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(6);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){e.exports=!r(19)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){var n=r(10),o=r(23);e.exports=r(4)?function(e,t,r){return n.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t,r){var n=r(0),o=r(2),i=r(11),a=r(5),s=r(9),c=function(e,t,r){var l,u,f,p=e&c.F,g=e&c.G,d=e&c.S,h=e&c.P,v=e&c.B,m=e&c.W,y=g?o:o[t]||(o[t]={}),w=y.prototype,b=g?n:d?n[t]:(n[t]||{}).prototype;for(l in g&&(r=t),r)(u=!p&&b&&void 0!==b[l])&&s(y,l)||(f=u?b[l]:r[l],y[l]=g&&"function"!=typeof b[l]?r[l]:v&&u?i(f,n):m&&b[l]==f?function(e){var t=function(t,r,n){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,r)}return new e(t,r,n)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):h&&"function"==typeof f?i(Function.call,f):f,h&&((y.virtual||(y.virtual={}))[l]=f,e&c.R&&w&&!w[l]&&a(w,l,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(3),o=r(57),i=r(56),a=Object.defineProperty;t.f=r(4)?Object.defineProperty:function(e,t,r){if(n(e),t=i(t,!0),n(r),o)try{return a(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){var n=r(13);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,r){var n=r(27)("keys"),o=r(26);e.exports=function(e){return n[e]||(n[e]=o(e))}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,r){var n=r(10).f,o=r(9),i=r(1)("toStringTag");e.exports=function(e,t,r){e&&!o(e=r?e:e.prototype,i)&&n(e,i,{configurable:!0,value:t})}},function(e,t,r){var n=r(6),o=r(0).document,i=n(o)&&n(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=!0},function(e,t,r){var n=r(33),o=r(16);e.exports=function(e){return n(o(e))}},function(e,t,r){"use strict";var n=r(13);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,r){var n=r(16);e.exports=function(e){return Object(n(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(2),o=r(0),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(20)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){var n=r(15),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},function(e,t,r){var n=r(12),o=r(1)("toStringTag"),i="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?r:i?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,r){var n=r(0).document;e.exports=n&&n.documentElement},function(e,t,r){var n=r(51),o=r(25);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){"use strict";var n=r(20),o=r(8),i=r(55),a=r(5),s=r(7),c=r(54),l=r(17),u=r(48),f=r(1)("iterator"),p=!([].keys&&"next"in[].keys()),g=function(){return this};e.exports=function(e,t,r,d,h,v,m){c(r,t,d);var y,w,b,S=function(e){if(!p&&e in k)return k[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},x=t+" Iterator",_="values"==h,O=!1,k=e.prototype,j=k[f]||k["@@iterator"]||h&&k[h],E=j||S(h),A=h?_?S("entries"):E:void 0,L="Array"==t&&k.entries||j;if(L&&(b=u(L.call(new e)))!==Object.prototype&&b.next&&(l(b,x,!0),n||"function"==typeof b[f]||a(b,f,g)),_&&j&&"values"!==j.name&&(O=!0,E=function(){return j.call(this)}),n&&!m||!p&&!O&&k[f]||a(k,f,E),s[t]=E,s[x]=g,h)if(y={values:_?E:S("values"),keys:v?E:S("keys"),entries:A},m)for(w in y)w in k||i(k,w,y[w]);else o(o.P+o.F*(p||O),t,y);return y}},function(e,t,r){var n=r(12);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.metrics=t.EXIT_EVENT_VALUES=t.EXIT_EVENT=void 0;var n=a(r(75)),o=a(r(41)),i=r(36);function a(e){return e&&e.__esModule?e:{default:e}}t.EXIT_EVENT="exit";var s=[],c=(t.EXIT_EVENT_VALUES={cas:"exit to cas",article:"exit to article",discussion:"exit to discussion",psp:"exit to psp"},function(e){window._satellite?window._satellite.track(e):s.push({name:e,param:(0,o.default)({},window._applemd)})}),l=function(e){var t=void 0,r=void 0,n=void 0,o=getUrlParam("campaign");o?t=o:(n=getUrlParam("cid"))?t=n:(r=getUrlParam("caller"))&&(t="rcon"===r?r+"/storeID="+getUrlParam("storeID"):r),t&&(e.campaign=t)},u=function(e,t,r){window._applemd&&("event"===e?function(e,t){window._applemd={},(0,o.default)(window._applemd,window._applemd_original),(0,o.default)(window._applemd,t),"pageload"===e&&""!==window._applemd.eventName&&(e=window._applemd.eventName),c(e),window.NN&&("pageload"===e?NN.default.load((0,i.getNeighborLoadDataObj)()):NN.default.action((0,i.getNeighborActionDataObj)()))}(t,r):function(e,t){var r=(0,o.default)({},window.analyticsData.page);r.page_error=["error",t],r.content_subtype="error",r.campaign||l(r),window._applemd=(0,o.default)({},window.analyticsData,{page:r}),c(e)}(t,r))};t.metrics={pageView:function(){return null},track:function(e,t){return u("event",e,t)},trackPage:function(e){return u("event",e.page.a_name||"support.app.view",e)},trackError:function(e){return u("error","support.app.error",e)}};new n.default(function(e,t){window.waitForDTMToBeReady&&window.waitForDTMToBeReady.then(function(t){e(window._satellite)})}).then(function(){!function(){for(;s.length;){var e=s.pop();window._applemd=e.param,window._satellite.track(e.name)}}()})},function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}}(r(41)),o=r(34);var i={component:{type:"simple link"}},a=function(e){var t={component:{}};if(e.ssAnalyticsLinkComponent_name&&(t.component.name=e.ssAnalyticsLinkComponent_name),e.ssAnalyticsLinkComponent_type&&(t.component.type=e.ssAnalyticsLinkComponent_type),e.ssAnalyticsLinkText){var r=document.createElement("span");r.innerHTML=e.ssAnalyticsLinkText,t.component.link_text=r.textContent}if(e.ssAnalyticsLinkUrl&&(t.component.dest_url=e.ssAnalyticsLinkUrl),e.ssAnalyticsNavtagId&&(t.component.navtag_id=e.ssAnalyticsNavtagId),e.ssAnalyticsNavtagIndex&&(t.component.navtag_index=e.ssAnalyticsNavtagIndex),e.ssAnalyticsLinkIndex&&(t.component.link_index=e.ssAnalyticsLinkIndex),e.ssAnalyticsBizchatId){var o=document.createElement("span");o.innerHTML=e.ssAnalyticsBizchatId,t.component.bizchat_id=o.textContent}return(0,n.default)({},i,t)},s=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!document.querySelector("#ac-globalnav")||document.querySelector("#ac-globalnav").contains(e.target))return!1;if("pageload"===e)o.metrics.track("pageload",window._applemd);else{var r=e.target,n=r.dataset;if(t||!n.ignoreTracking)if(n.ssAnalyticsEvent){var i=n.ssAnalyticsEvent;window.appleMDUpdateCallers&&window.appleMDUpdateCallers.forEach(function(e){return e(n)}),o.metrics.track(i,a(n))}else if(r.parentNode.dataset.ssAnalyticsEvent){var s=r.parentNode.dataset,c=s.ssAnalyticsEvent;window.appleMDUpdateCallers&&window.appleMDUpdateCallers.forEach(function(e){return e(s)}),o.metrics.track(c,a(s))}else if("a"===r.nodeName.toLowerCase()||"a"===r.parentNode.nodeName.toLowerCase()){var l=r.getAttribute("href")?r:r.parentNode,u={};u.ssAnalyticsLinkUrl=l.getAttribute("href"),u.ssAnalyticsLinkComponent_type="simple link",u.ssAnalyticsLinkText=l.textContent,window.appleMDUpdateCallers&&window.appleMDUpdateCallers.forEach(function(e){return e(u)}),o.metrics.track("acs.link_click",a(u))}else if("select"===r.nodeName.toLowerCase()){var f=r[r.selectedIndex].dataset,p=f.ssAnalyticsEvent;window.appleMDUpdateCallers&&window.appleMDUpdateCallers.forEach(function(e){return e(f)}),o.metrics.track(p,a(f))}}};window.registerAppleMDUpdateCallers=function(e){window.appleMDUpdateCallers||(window.appleMDUpdateCallers=[]),window.appleMDUpdateCallers.push(e)},e.exports={startAnalytics:function(){window._applemd_original={},(0,n.default)(window._applemd_original,window._applemd);var e=document.body;e.addEventListener("click",function(e){s(e)},!0),e.addEventListener("keyup",function(e){32!==e.keyCode&&13!==e.keyCode||s(e)},!0)},triggerDTMEvent:s}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rebindsDTMEvents=t.triggerNeighborJsReady=t.getNeighborActionDataObj=t.getNeighborLoadDataObj=t.triggerDTMPageLoad=void 0;var n=r(35),o=(t.triggerDTMPageLoad=function e(t){window._satellite&&window._satellite.track?window._satellite.track(t):window.setTimeout(function(){e(t)},200)},t.getNeighborLoadDataObj=function(){var e={};return window._applemd.page&&(e.page=window._applemd.page),window._applemd.search&&(e.search=window._applemd.search),window._applemd.stitch&&(e.stitch=window._applemd.stitch),e});t.getNeighborActionDataObj=function(){var e={};return window._applemd.component&&(e.component=window._applemd.component),window._applemd.search&&(e.search=window._applemd.search),e},t.triggerNeighborJsReady=function e(t){window.NN&&window.neighborInitData?(window.neighborInitData.source=t,window.NN.default.init(window.neighborInitData),window.NN.default.load(o())):window.setTimeout(e,200)},t.rebindsDTMEvents=function(){(0,n.triggerDTMEvent)("pageload",!0)}},function(e,t,r){var n=r(3),o=r(6),i=r(22);e.exports=function(e,t){if(n(e),o(t)&&t.constructor===e)return t;var r=i.f(e);return(0,r.resolve)(t),r.promise}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,r){var n,o,i,a=r(11),s=r(69),c=r(30),l=r(18),u=r(0),f=u.process,p=u.setImmediate,g=u.clearImmediate,d=u.MessageChannel,h=u.Dispatch,v=0,m={},y=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},w=function(e){y.call(e.data)};p&&g||(p=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return m[++v]=function(){s("function"==typeof e?e:Function(e),t)},n(v),v},g=function(e){delete m[e]},"process"==r(12)(f)?n=function(e){f.nextTick(a(y,e,1))}:h&&h.now?n=function(e){h.now(a(y,e,1))}:d?(i=(o=new d).port2,o.port1.onmessage=w,n=a(i.postMessage,i,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(e){u.postMessage(e+"","*")},u.addEventListener("message",w,!1)):n="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),e.exports={set:p,clear:g}},function(e,t,r){var n=r(3),o=r(13),i=r(1)("species");e.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[i])?t:o(r)}},function(e,t,r){e.exports={default:r(80),__esModule:!0}},function(e,t,r){var n=r(29),o=r(1)("iterator"),i=r(7);e.exports=r(2).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[n(e)]}},function(e,t,r){"use strict";var n=r(47)(!0);r(32)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){var n=r(1)("iterator"),o=!1;try{var i=[7][n]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var r=!1;try{var i=[7],a=i[n]();a.next=function(){return{done:r=!0}},i[n]=function(){return a},e(i)}catch(e){}return r}},function(e,t,r){var n=r(7),o=r(1)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||i[o]===e)}},function(e,t,r){var n=r(3);e.exports=function(e,t,r,o){try{return o?t(n(r)[0],r[1]):t(r)}catch(t){var i=e.return;throw void 0!==i&&n(i.call(e)),t}}},function(e,t,r){var n=r(15),o=r(16);e.exports=function(e){return function(t,r){var i,a,s=String(o(t)),c=n(r),l=s.length;return c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(e,t,r){var n=r(9),o=r(24),i=r(14)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),n(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,r){var n=r(15),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=n(e))<0?o(e+t,0):i(e,t)}},function(e,t,r){var n=r(21),o=r(28),i=r(49);e.exports=function(e){return function(t,r,a){var s,c=n(t),l=o(c.length),u=i(a,l);if(e&&r!=r){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}}},function(e,t,r){var n=r(9),o=r(21),i=r(50)(!1),a=r(14)("IE_PROTO");e.exports=function(e,t){var r,s=o(e),c=0,l=[];for(r in s)r!=a&&n(s,r)&&l.push(r);for(;t.length>c;)n(s,r=t[c++])&&(~i(l,r)||l.push(r));return l}},function(e,t,r){var n=r(10),o=r(3),i=r(31);e.exports=r(4)?Object.defineProperties:function(e,t){o(e);for(var r,a=i(t),s=a.length,c=0;s>c;)n.f(e,r=a[c++],t[r]);return e}},function(e,t,r){var n=r(3),o=r(52),i=r(25),a=r(14)("IE_PROTO"),s=function(){},c=function(){var e,t=r(18)("iframe"),n=i.length;for(t.style.display="none",r(30).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;n--;)delete c.prototype[i[n]];return c()};e.exports=Object.create||function(e,t){var r;return null!==e?(s.prototype=n(e),r=new s,s.prototype=null,r[a]=e):r=c(),void 0===t?r:o(r,t)}},function(e,t,r){"use strict";var n=r(53),o=r(23),i=r(17),a={};r(5)(a,r(1)("iterator"),function(){return this}),e.exports=function(e,t,r){e.prototype=n(a,{next:o(1,r)}),i(e,t+" Iterator")}},function(e,t,r){e.exports=r(5)},function(e,t,r){var n=r(6);e.exports=function(e,t){if(!n(e))return e;var r,o;if(t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;if("function"==typeof(r=e.valueOf)&&!n(o=r.call(e)))return o;if(!t&&"function"==typeof(r=e.toString)&&!n(o=r.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t,r){e.exports=!r(4)&&!r(19)(function(){return 7!=Object.defineProperty(r(18)("div"),"a",{get:function(){return 7}}).a})},function(e,t,r){r(83);for(var n=r(0),o=r(5),i=r(7),a=r(1)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=n[l],f=u&&u.prototype;f&&!f[a]&&o(f,a,l),i[l]=i.Array}},,function(e,t,r){var n=r(2),o=n.JSON||(n.JSON={stringify:JSON.stringify});e.exports=function(e){return o.stringify.apply(o,arguments)}},function(e,t,r){e.exports={default:r(60),__esModule:!0}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.generatePOD=function(e){try{return"POD="+e+"; path=/; domain=.apple.com; expires="+new Date(Date.now()+24192e5).toGMTString()}catch(e){}}},function(e,t,r){"use strict";var n=r(8),o=r(22),i=r(38);n(n.S,"Promise",{try:function(e){var t=o.f(this),r=i(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}})},function(e,t,r){"use strict";var n=r(8),o=r(2),i=r(0),a=r(40),s=r(37);n(n.P+n.R,"Promise",{finally:function(e){var t=a(this,o.Promise||i.Promise),r="function"==typeof e;return this.then(r?function(r){return s(t,e()).then(function(){return r})}:e,r?function(r){return s(t,e()).then(function(){throw r})}:e)}})},function(e,t,r){"use strict";var n=r(0),o=r(2),i=r(10),a=r(4),s=r(1)("species");e.exports=function(e){var t="function"==typeof o[e]?o[e]:n[e];a&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(5);e.exports=function(e,t,r){for(var o in t)r&&e[o]?e[o]=t[o]:n(e,o,t[o]);return e}},function(e,t,r){var n=r(0).navigator;e.exports=n&&n.userAgent||""},function(e,t,r){var n=r(0),o=r(39).set,i=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,c="process"==r(12)(a);e.exports=function(){var e,t,r,l=function(){var n,o;for(c&&(n=a.domain)&&n.exit();e;){o=e.fn,e=e.next;try{o()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(l)};else if(!i||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);r=function(){u.then(l)}}else r=function(){o.call(n,l)};else{var f=!0,p=document.createTextNode("");new i(l).observe(p,{characterData:!0}),r=function(){p.data=f=!f}}return function(n){var o={fn:n,next:void 0};t&&(t.next=o),e||(e=o,r()),t=o}}},function(e,t){e.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},function(e,t,r){var n=r(11),o=r(46),i=r(45),a=r(3),s=r(28),c=r(42),l={},u={};(t=e.exports=function(e,t,r,f,p){var g,d,h,v,m=p?function(){return e}:c(e),y=n(r,f,t?2:1),w=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(i(m)){for(g=s(e.length);g>w;w++)if((v=t?y(a(d=e[w])[0],d[1]):y(e[w]))===l||v===u)return v}else for(h=m.call(e);!(d=h.next()).done;)if((v=o(h,y,d.value,t))===l||v===u)return v}).BREAK=l,t.RETURN=u},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){"use strict";var n,o,i,a,s=r(20),c=r(0),l=r(11),u=r(29),f=r(8),p=r(6),g=r(13),d=r(71),h=r(70),v=r(40),m=r(39).set,y=r(68)(),w=r(22),b=r(38),S=r(67),x=r(37),_=c.TypeError,O=c.process,k=O&&O.versions,j=k&&k.v8||"",E=c.Promise,A="process"==u(O),L=function(){},P=o=w.f,C=!!function(){try{var e=E.resolve(1),t=(e.constructor={})[r(1)("species")]=function(e){e(L,L)};return(A||"function"==typeof PromiseRejectionEvent)&&e.then(L)instanceof t&&0!==j.indexOf("6.6")&&-1===S.indexOf("Chrome/66")}catch(e){}}(),I=function(e){var t;return!(!p(e)||"function"!=typeof(t=e.then))&&t},T=function(e,t){if(!e._n){e._n=!0;var r=e._c;y(function(){for(var n=e._v,o=1==e._s,i=0,a=function(t){var r,i,a,s=o?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{s?(o||(2==e._h&&D(e),e._h=1),!0===s?r=n:(u&&u.enter(),r=s(n),u&&(u.exit(),a=!0)),r===t.promise?l(_("Promise-chain cycle")):(i=I(r))?i.call(r,c,l):c(r)):l(n)}catch(e){u&&!a&&u.exit(),l(e)}};r.length>i;)a(r[i++]);e._c=[],e._n=!1,t&&!e._h&&M(e)})}},M=function(e){m.call(c,function(){var t,r,n,o=e._v,i=N(e);if(i&&(t=b(function(){A?O.emit("unhandledRejection",o,e):(r=c.onunhandledrejection)?r({promise:e,reason:o}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",o)}),e._h=A||N(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},N=function(e){return 1!==e._h&&0===(e._a||e._c).length},D=function(e){m.call(c,function(){var t;A?O.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},q=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),T(t,!0))},R=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw _("Promise can't be resolved itself");(t=I(e))?y(function(){var n={_w:r,_d:!1};try{t.call(e,l(R,n,1),l(q,n,1))}catch(e){q.call(n,e)}}):(r._v=e,r._s=1,T(r,!1))}catch(e){q.call({_w:r,_d:!1},e)}}};C||(E=function(e){d(this,E,"Promise","_h"),g(e),n.call(this);try{e(l(R,this,1),l(q,this,1))}catch(e){q.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(66)(E.prototype,{then:function(e,t){var r=P(v(this,E));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=A?O.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&T(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new n;this.promise=e,this.resolve=l(R,e,1),this.reject=l(q,e,1)},w.f=P=function(e){return e===E||e===a?new i(e):o(e)}),f(f.G+f.W+f.F*!C,{Promise:E}),r(17)(E,"Promise"),r(65)("Promise"),a=r(2).Promise,f(f.S+f.F*!C,"Promise",{reject:function(e){var t=P(this);return(0,t.reject)(e),t.promise}}),f(f.S+f.F*(s||!C),"Promise",{resolve:function(e){return x(s&&this===a?E:this,e)}}),f(f.S+f.F*!(C&&r(44)(function(e){E.all(e).catch(L)})),"Promise",{all:function(e){var t=this,r=P(t),n=r.resolve,o=r.reject,i=b(function(){var r=[],i=0,a=1;h(e,!1,function(e){var s=i++,c=!1;r.push(void 0),a++,t.resolve(e).then(function(e){c||(c=!0,r[s]=e,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function(e){var t=this,r=P(t),n=r.reject,o=b(function(){h(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}})},function(e,t){},function(e,t,r){r(73),r(43),r(58),r(72),r(64),r(63),e.exports=r(2).Promise},function(e,t,r){e.exports={default:r(74),__esModule:!0}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";var n=r(4),o=r(31),i=r(77),a=r(76),s=r(24),c=r(33),l=Object.assign;e.exports=!l||r(19)(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=l({},e)[r]||Object.keys(l({},t)).join("")!=n})?function(e,t){for(var r=s(e),l=arguments.length,u=1,f=i.f,p=a.f;l>u;)for(var g,d=c(arguments[u++]),h=f?o(d).concat(f(d)):o(d),v=h.length,m=0;v>m;)g=h[m++],n&&!p.call(d,g)||(r[g]=d[g]);return r}:l},function(e,t,r){var n=r(8);n(n.S+n.F,"Object",{assign:r(78)})},function(e,t,r){r(79),e.exports=r(2).Object.assign},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=function(){}},function(e,t,r){"use strict";var n=r(82),o=r(81),i=r(7),a=r(21);e.exports=r(32)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),i.Arguments=i.Array,n("keys"),n("values"),n("entries")},,function(e,t,r){"use strict";var n=function(e){return e&&e.__esModule?e:{default:e}}(r(86)),o=r(34);var i=function(e,t){var r=document.querySelector("#okapi-"+e),n=document.querySelector("#okapi-"+t);r&&n&&e!==t&&(r.style.display="none",n.style.display="block"),document.querySelector("#helpful").classList.remove("okapi-enabled")},a=function(){var e=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var r=Math.random();"undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues&&(r=parseFloat(crypto.getRandomValues(new Uint32Array(2)).join(""))/1e20);var n=(e+16*r)%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)})},s="a",c={cache:{duration:"VISIT",size:3},endpoints:{basePath:"https://okapi-services.apple.com/api/v1/okapi",getOrAllocatePath:"/getOrAllocate",forceAllocatePath:"/forceAllocate",trackMetricPath:"/track",timeout:2e3,retries:2,retryDelay:3e3},config:{projectSlug:"Support_Site_HT_articles",testSlug:"HT_Helpful_Verbiage",token:"52d892626abc670b956fdc52e60c7a7761ecdcfb6eb0a1af0d423c4b9ca09c45",metricSlug:"Rating_Variation_Displayed",ratingButtonSlug:"Rating_Submission",ratingButtonYesSlug:"Helpful_Yes",ratingButtonNoSlug:"Helpful_No"}},l=null,u="",f="",p="",g="",d=sessionStorage?sessionStorage.getItem("okapi-userid"):null,h=JSON.parse(window.appState);function v(e,t){c&&h.isOkapiEnabled&&l&&l.trackMetric(d,u,f,p,e,t,g).catch(function(){})}window._applemd&&h.isOkapiEnabled&&(window._applemd.isOkapi=c.config.projectSlug),e.exports={initOkapi:function(){c&&h.isOkapiEnabled&&(g={locale:h.urlLocale},c.userData=g,l=new n.default(c),u=c.config.projectSlug,f=c.config.testSlug,p=c.config.token,null==d&&(d=a(),sessionStorage&&sessionStorage.setItem("okapi-userid",d)),l.getOrAllocate(d,u,f,p,g).then(function(e){i(s,e),v(c.config.metricSlug,1),window._applemd&&(window._applemd.page.isOkapi=c.config.projectSlug,window._applemd.page.test_id=c.config.testSlug,window._applemd.page.variance_id=e,o.metrics.track("track_okapi",{}))}).catch(function(){document.querySelector("#helpful").classList.remove("okapi-enabled")}))},trackOkapiYes:function(){v(c.config.ratingButtonYesSlug,5)},trackOkapiNo:function(){v(c.config.ratingButtonNoSlug,1)}}},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=11)}([function(e,t,r){e.exports=r(7)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(t){return"function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?e.exports=n=function(e){return r(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},n(t)}e.exports=n},function(e,t){function r(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}e.exports=function(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,c,"next",e)}function c(e){r(a,o,i,s,c,"throw",e)}s(void 0)})}}},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){var n=r(8),o=r(9),i=r(10);e.exports=function(e){return n(e)||o(e)||i()}},function(e,t,r){var n=function(e){"use strict";var t,r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(e,t,r,n){var o=t&&t.prototype instanceof h?t:h,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(e,t,r){var n=u;return function(o,i){if(n===p)throw new Error("Generator is already running");if(n===g){if("throw"===o)throw i;return L()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=O(a,r);if(s){if(s===d)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===u)throw n=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=p;var c=l(e,t,r);if("normal"===c.type){if(n=r.done?g:f,c.arg===d)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=g,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var u="suspendedStart",f="suspendedYield",p="executing",g="completed",d={};function h(){}function v(){}function m(){}var y={};y[i]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(A([])));b&&b!==r&&n.call(b,i)&&(y=b);var S=m.prototype=h.prototype=Object.create(y);function x(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function _(e){var t;this._invoke=function(r,o){function i(){return new Promise(function(t,i){!function t(r,o,i,a){var s=l(e[r],e,o);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(u).then(function(e){c.value=e,i(c)},function(e){return t("throw",e,i,a)})}a(s.arg)}(r,o,t,i)})}return t=t?t.then(i,i):i()}}function O(e,r){var n=e.iterator[r.method];if(n===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,O(e,r),"throw"===r.method))return d;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=l(n,e.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,d;var i=o.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,d):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function j(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:L}}function L(){return{value:t,done:!0}}return v.prototype=S.constructor=m,m.constructor=v,m[s]=v.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},x(_.prototype),_.prototype[a]=function(){return this},e.AsyncIterator=_,e.async=function(t,r,n,o){var i=new _(c(t,r,n,o));return e.isGeneratorFunction(r)?i:i.next().then(function(e){return e.done?e.value:i.next()})},x(S),S[s]="Generator",S[i]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=A,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(j),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return s.type="throw",s.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),j(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;j(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:A(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),d}},e}(e.exports);try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}},function(e,t){e.exports=function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,r){"use strict";r.r(t);var n=r(0),o=r.n(n),i=r(4),a=r.n(i),s=r(1),c=r.n(s),l=r(2),u=r.n(l),f=r(3),p=r.n(f),g=r(5),d=r.n(g),h=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"DEFAULT";c()(this,e),this.namespace=t,this.shouldLog=!1}return u()(e,[{key:"_checkLogStatus",value:function(){var e=new URL(window.location.href),t="object"===p()(e.searchParams)&&"yup"===e.searchParams.get("showOkapiLogs");this.shouldLog=t}},{key:"log",value:function(){var e;this._checkLogStatus();for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this.shouldLog&&(e=console).log.apply(e,["".concat(this.namespace.toUpperCase(),": ")].concat(r))}}]),e}(),v=new h("Utils"),m=function(){function e(){c()(this,e)}return u()(e,null,[{key:"flattenObject",value:function(e){return function e(t,r,n){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i={},a=r;return void 0!==n&&""!==n&&(a=o?"".concat(n,"[").concat(r,"]"):"".concat(n,".").concat(r)),"object"!==p()(t)?(i[a]=t,i):(Object.keys(t).forEach(function(r){var n=Array.isArray(t),o=e(t[r],r,a,n);i=function(e){var t={};return e.forEach(function(e){Object.keys(e).forEach(function(r){t[r]=e[r]})}),t}([i,o])}),i)}(e)}},{key:"validateArguments",value:function(e){for(var t,r=null,n=!0,o=0;n&&o<e.length;)"string"==typeof e[o].type&&p()(e[o].argument)!==e[o].type||Array.isArray(e[o].type)&&!e[o].type.includes(p()(e[o].argument))?(n=!1,t="".concat(e[o].name," is not a valid argument. Value: ").concat(e[o].argument),r=new Error(t)):(t="".concat(e[o].name," is a valid argument."),o++),v.log(t);return{isArgumentsValid:n,argumentsError:r}}}]),e}();function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var w=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c()(this,e);var r=new h("Config");r.log("Initializing config");var n={"endpoints.timeout":{value:3e3,allowOverwrite:!0,type:"number"},"endpoints.retries":{value:0,allowOverwrite:!0,type:"number"},"endpoints.retryDelay":{value:0,allowOverwrite:!0,type:"number"},"endpoints.basePath":{value:"https://okapi-services-uat.rno.apple.com/api/v1/okapi",allowOverwrite:!0,type:"string"},"endpoints.getOrAllocatePath":{value:"/getOrAllocate",allowOverwrite:!0,type:"string"},"endpoints.trackMetricPath":{value:"/track",allowOverwrite:!0,type:"string"},"endpoints.forceAllocatePath":{value:"/forceAllocate",allowOverwrite:!0,type:"string"},"cache.duration":{value:"VISIT",allowOverwrite:!0,type:["string","number"],validator:function(e){return"number"==typeof e||["VISIT","SESSION"].includes(e)}},"cache.size":{value:100,allowOverwrite:!0,type:"number"},_getValues:function(){var e=this,t={};return Object.keys(this).filter(function(e){return"_getValues"!==e}).forEach(function(r){t[r]=e[r].value}),t}};r.log("Client config",t);var o=m.flattenObject(t);r.log("Flattened client config",o),r.log("Default config",n._getValues());var i=this.constructor._merge(o,n,r);this.config=Object.freeze(i._getValues()),r.log("Final config",this.config)}return u()(e,null,[{key:"_merge",value:function(e,t,r){var n=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},t);return Object.keys(e).forEach(function(o){var i,a,s;if(o.startsWith("_")||void 0===t[o])r.log("".concat(o," is not a valid config prop."));else if(!0===t[o].allowOverwrite)if(i=e[o],a=t[o].type,s=function(e,t){return"array"===t?Array.isArray(e):p()(e)===t},"string"==typeof a?s(i,a):Array.isArray(a)&&a.some(function(e){return s(i,e)})){if("function"==typeof t[o].validator&&!t[o].validator(e[o]))return void r.log("".concat(o," config prop has not passed custom property validation check. Validator: ").concat(t[o].validator,"."));if(function(e,t){return"object"===p()(e)?JSON.stringify(e)===JSON.stringify(t):"function"!=typeof e&&e===t}(e[o],t[o].value))r.log("".concat(o," config prop value is the same as current config value."));else{if("function"==typeof t[o].modifier){var c=t[o].modifier(e[o]);r.log("".concat(o," user config prop value has been modified by modifier. New value: ").concat(c,". Old value: ").concat(n[o],".")),e[o]=c}r.log("".concat(o," config prop value has been updated. New value: ").concat(e[o],". Old value: ").concat(t[o].value,".")),n[o].value=e[o]}}else r.log("".concat(o," config prop has invalid type. Allowed types: ").concat(t[o].type,"."));else r.log("".concat(o," config prop is read-only."),t[o])}),n}}]),e}(),b=r(6),S=r.n(b);function x(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function _(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?x(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}var O=function(){function e(t){if(c()(this,e),this.logger=new h("Cache"),this.logger.log("Initializing cache"),this.storagePrefix="okapi",this.storeKey="".concat(this.storagePrefix,"store"),this.orderKey="".concat(this.storagePrefix,"order"),this.cacheSize=t["cache.size"],this.cacheDuration=t["cache.duration"],this.store={},this.order=[],this.logger.log("Cache size",this.cacheSize),this.logger.log("Cache duration",this.cacheDuration),this.logger.log("Cache store key",this.storeKey),this.logger.log("Cache order key",this.orderKey),"SESSION"===this.cacheDuration){this.logger.log("Getting cache form session storage:");try{this.store=JSON.parse(sessionStorage.getItem(this.storeKey)),this.logger.log("Read store:",JSON.parse(JSON.stringify(this.store))),null!==this.store&&"object"===p()(this.store)||(this.logger.log("Store is not an object, converting to empty object."),this.store={},this.logger.log("Cache store state:",JSON.parse(JSON.stringify(this.store)))),this.order=JSON.parse(sessionStorage.getItem(this.orderKey)),this.logger.log("Read order:",JSON.parse(JSON.stringify(this.order))),Array.isArray(this.order)||(this.logger.log("Order is not an array, converting to empty array."),this.order=[],this.logger.log("Cache order state:",JSON.parse(JSON.stringify(this.order)))),this._clearLocalStorage()}catch(e){this.logger.log("Unable to read cache from session storage",e)}}else if("number"==typeof this.cacheDuration){this.logger.log("Getting cache form local storage:");try{this.store=JSON.parse(localStorage.getItem(this.storeKey)),this.logger.log("Read store:",JSON.parse(JSON.stringify(this.store))),null!==this.store&&"object"===p()(this.store)||(this.logger.log("Store is not an object, converting to empty object."),this.store={},this.logger.log("Cache store state:",JSON.parse(JSON.stringify(this.store)))),this.order=JSON.parse(localStorage.getItem(this.orderKey)),this.logger.log("Read order:",JSON.parse(JSON.stringify(this.order))),Array.isArray(this.order)||(this.logger.log("Order is not an array, converting to empty array."),this.order=[],this.logger.log("Cache order state:",JSON.parse(JSON.stringify(this.order)))),this._clearSessionStorage()}catch(e){this.logger.log("Unable to read cache from local storage",e)}}else this._clearLocalStorage(),this._clearSessionStorage();this.logger.log("Cache is ready"),this.logger.log("Initial cache",this.store),this.logger.log("Initial cache order",this.order)}return u()(e,[{key:"_clearSessionStorage",value:function(){this.logger.log("Cleaning session storage:");try{sessionStorage.removeItem(this.storeKey),sessionStorage.removeItem(this.orderKey),this.logger.log("Session storage cleared.")}catch(e){this.logger.log("Unable to clean session storage",e)}}},{key:"_clearLocalStorage",value:function(){this.logger.log("Cleaning local storage:");try{localStorage.removeItem(this.storeKey),localStorage.removeItem(this.orderKey),this.logger.log("Local storage cleared.")}catch(e){this.logger.log("Unable to clean local storage",e)}}},{key:"_remove",value:function(e){this.logger.log("Removing item from the cache. Hash:",e),delete this.store[e];var t=this.order.indexOf(e);this.order.splice(t,1),this.logger.log("Item removed")}},{key:"get",value:function(e,t,r){this.logger.log("Get cached item called. UserId: ".concat(e,". ProjectSlug: ").concat(t,". TestSlug: ").concat(r,"."));var n=this.constructor._getHash(e,t,r);this.logger.log("Hash:",n);var o=this.store[n];if(!o)return this.logger.log("Item not found in the cache.",o),null;if(this.logger.log("Item found in the cache.",o),"never"===o.expirationTime)return o.data;var i=(new Date).getTime();return o.expirationTime>i?o.data:(this.logger.log("Item expired. Expiration time: ".concat(o.expirationTime,". Now: ").concat(i,".")),delete this.store[n],this.order.splice(this.order.indexOf(n),1),this.logger.log("Item removed from the cache."),null)}},{key:"set",value:function(e,t,r,n){this.logger.log("Set item called. UserId: ".concat(e,". ProjectSlug: ").concat(t,". TestSlug: ").concat(r,"."));var o=this.constructor._getHash(e,t,r);this.logger.log("Hash:",o);var i="never";if("number"==typeof this.cacheDuration&&(i=(new Date).getTime()+this.cacheDuration),this.order.length>=this.cacheSize){this.logger.log("Cache is full. Cache size: ".concat(this.order.length,".")),this.logger.log("Cache state:",_({},this.store)),this.logger.log("Order state:",S()(this.order)),this.logger.log("Removing oldest item:");var a=this.order[0];this.logger.log("Item to remove hash:",a),this._remove(a),this.logger.log("Cache state:",_({},this.store)),this.logger.log("Order state:",S()(this.order))}var s={data:n,expirationTime:i};if(this.logger.log("Adding item to the cache:",s),this.order.includes(o)&&(this.logger.log("Item is already cached."),this.logger.log("Cache state:",_({},this.store)),this.logger.log("Order state:",S()(this.order)),this._remove(o),this.logger.log("Cache state:",_({},this.store)),this.logger.log("Order state:",S()(this.order))),this.store[o]=s,this.order.push(o),this.logger.log("Item added to the cache."),this.logger.log("Cache state:",_({},this.store)),"SESSION"===this.cacheDuration){this.logger.log("Updating cache and cache order in session storage:");try{sessionStorage.setItem(this.storeKey,JSON.stringify(this.store)),sessionStorage.setItem(this.orderKey,JSON.stringify(this.order)),this.logger.log("Session storage updated."),this.logger.log("Session storage store:",sessionStorage.getItem(this.storeKey)),this.logger.log("Session storage order:",sessionStorage.getItem(this.orderKey))}catch(e){this.logger.log("Unable to write cache to session storage:",e)}}else if("number"==typeof this.cacheDuration){this.logger.log("Updating cache and cache order in local storage:");try{localStorage.setItem(this.storeKey,JSON.stringify(this.store)),localStorage.setItem(this.orderKey,JSON.stringify(this.order)),this.logger.log("Local storage updated."),this.logger.log("Local storage store:",localStorage.getItem(this.storeKey)),this.logger.log("Local storage order:",localStorage.getItem(this.orderKey))}catch(e){this.logger.log("Unable to write cache to local storage:",e)}}}}],[{key:"_getHash",value:function(e,t,r){return"".concat(e,"-").concat(t,"-").concat(r)}}]),e}();function k(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}var j=function(){function e(t){c()(this,e),this.logger=new h("api"),this.logger.log("Initializing APIs:"),this.config=t,this.logger.log("APIs initialized."),this.errors=Object.freeze({internal:Error("Internal Error"),timeout:Error("Timeout"),notFound:Error("Endpoint not found"),unauthorized:Error("Unauthorized"),invalid:Error("Invalid Client Request")})}var t,r,n;return u()(e,[{key:"post",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.logger.log("Making ajax call. URL: ".concat(e,". Try number: ").concat(i,". Data:"),t),new Promise(function(a,s){var c=function(c){var l;r.logger.log("Retrying. Try number: ".concat(i,". Max num of retries: ").concat(r.config["endpoints.retries"],".")),i<r.config["endpoints.retries"]?l=setTimeout(function(){a(r.post(e,t,n,o,++i))},r.config["endpoints.retryDelay"]):(r.logger.log("Maximum number of retries reached."),clearTimeout(l),s(c))},l=function(e){return function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k(r,!0).forEach(function(t){d()(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k(r).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},e.error&&{error:e.error},{},e.exceptionMessage&&{exceptionMessage:e.exceptionMessage},{},e.exceptionStack&&{exceptionStack:e.exceptionStack},{},e.errorMessage&&{errorMessage:e.errorMessage},{},e.violations&&{violations:e.violations},{},e.stack&&{stack:e.stack},{},e.code&&{code:e.code})},u=new XMLHttpRequest;u.open("POST",e),u.timeout=r.config["endpoints.timeout"],u.setRequestHeader("Content-Type","application/json"),u.setRequestHeader("Cache-Control","no-cache"),Object.keys(n).forEach(function(e){u.setRequestHeader(e,n[e])}),u.onload=function(){if(u.status>=200&&u.status<300)if(r.logger.log("Success response received:",u.response),o)try{r.logger.log("Parsing response:");var e=JSON.parse(u.response);r.logger.log("Parsed:",e),a(e)}catch(e){r.logger.log("Unable to parse response.",e),s(r.errors.internal)}else a();else try{r.logger.log("Error response received:",u.response);var t=JSON.parse(u.response);c(l(t))}catch(e){r.logger.log("Unable to parse response.",e),404===u.status?(r.logger.log("Not found response received:",u.response),c(r.errors.notFound)):401===u.status?(r.logger.log("Unauthorized response received:",u.response),a(r.errors.unauthorized)):400===u.status||403===u.status?(r.logger.log("Invalid Client Request:",u.response),c(r.errors.invalid)):(r.logger.log("Unauthorized response received:",u.response),c(r.errors.internal))}},u.onerror=function(){try{r.logger.log("Error received:",u.response);var e=JSON.parse(u.response);c(l(e))}catch(e){r.logger.log("Unable to parse response.",e),c(r.errors.internal)}},u.ontimeout=function(){r.logger.log("Timeout."),c(r.errors.timeout)},u.send(JSON.stringify(t))})}},{key:"getOrAllocate",value:(n=a()(o.a.mark(function e(t,r,n,i,a,s){var c,l,u;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return c="".concat(this.config["endpoints.basePath"]).concat(this.config["endpoints.getOrAllocatePath"]),l={userId:t,projectSlug:r,testSlug:n,publicToken:i,payload:a},this.logger.log('Calling "getOrAllocate" API. URL: '.concat(c,". Data:"),l),e.prev=3,e.next=6,this.post(c,l,s);case 6:return u=e.sent,this.logger.log('"getOrAllocate" response received:',u),e.abrupt("return",u);case 11:throw e.prev=11,e.t0=e.catch(3),this.logger.log('"getOrAllocate" error occur:',e.t0),e.t0;case 15:case"end":return e.stop()}},e,this,[[3,11]])})),function(e,t,r,o,i,a){return n.apply(this,arguments)})},{key:"forceAllocate",value:(r=a()(o.a.mark(function e(t,r,n,i,a,s,c){var l,u,f;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return l="".concat(this.config["endpoints.basePath"]).concat(this.config["endpoints.forceAllocatePath"],"/").concat(encodeURI(a)),u={userId:t,projectSlug:r,testSlug:n,publicToken:i,payload:s},this.logger.log('Calling "forceAllocate" API. URL: '.concat(l,". Data:"),u),e.prev=3,e.next=6,this.post(l,u,c);case 6:return f=e.sent,this.logger.log('"forceAllocate" response received:',f),e.abrupt("return",f);case 11:throw e.prev=11,e.t0=e.catch(3),e.t0;case 14:case"end":return e.stop()}},e,this,[[3,11]])})),function(e,t,n,o,i,a,s){return r.apply(this,arguments)})},{key:"trackMetric",value:(t=a()(o.a.mark(function e(t,r,n,i,a,s,c,l,u){var f,p;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return f="".concat(this.config["endpoints.basePath"]).concat(this.config["endpoints.trackMetricPath"]),p=[{userId:t,projectSlug:r,testSlug:n,publicToken:i,metricSlug:a,metricValue:s,eventTime:l,userMetadata:c}],this.logger.log('Calling "trackMetric" API. URL: '.concat(f,". Data:"),p),e.prev=3,e.next=6,this.post(f,p,u,!1);case 6:return this.logger.log('"trackMetric" response received.'),e.abrupt("return",!0);case 10:throw e.prev=10,e.t0=e.catch(3),e.t0;case 13:case"end":return e.stop()}},e,this,[[3,10]])})),function(e,r,n,o,i,a,s,c,l){return t.apply(this,arguments)})}]),e}();r.d(t,"default",function(){return E});var E=function(){function e(t){c()(this,e),this.logger=new h("Main"),this.logger.log("Initializing Okapi JS Thin Client."),this.config=new w(t),this.cache=new O(this.config.config),this.api=new j(this.config.config)}var t,r,n;return u()(e,[{key:"getOrAllocate",value:(n=a()(o.a.mark(function e(t,r,n,i,a,s){var c,l,u,f,p,g,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.logger.log("getOrAllocate method called."),this.logger.log('Validating "getOrAllocate" arguments.'),c=m.validateArguments([{argument:t,name:"userId",type:["number","string"]},{argument:r,name:"projectSlug",type:"string"},{argument:n,name:"testSlug",type:"string"},{argument:i,name:"token",type:"string"},{argument:a,name:"userDataObj",type:["null","undefined","object"]},{argument:s,name:"headers",type:["object","undefined"]}]),l=c.isArgumentsValid,u=c.argumentsError,l){e.next=5;break}throw u;case 5:if(this.logger.log('All "arguments" are valid.'),this.logger.log("Checking cache:"),!(f=this.cache.get(t,r,n))){e.next=11;break}return this.logger.log("Cached value:",f),e.abrupt("return",f);case 11:return p=null,a&&(this.logger.log("Generating map from the user data object."),p=m.flattenObject(a),this.logger.log("User data map is generated:",p)),e.prev=13,this.logger.log('Calling "getOrAllocate" API.'),e.next=17,this.api.getOrAllocate(t,r,n,i,p,s);case 17:return g=e.sent,this.logger.log('"getOrAllocate" response received:',g),void 0!==g.response?(this.logger.log('Response contains "response" property, using it.',g.response),d=g.response.variation):d=g.variation,this.logger.log("Variation:",d),this.logger.log("Caching response:"),this.cache.set(t,r,n,d),this.logger.log("Response cached."),e.abrupt("return",d);case 27:throw e.prev=27,e.t0=e.catch(13),e.t0;case 30:case"end":return e.stop()}},e,this,[[13,27]])})),function(e,t,r,o,i,a){return n.apply(this,arguments)})},{key:"forceAllocate",value:(r=a()(o.a.mark(function e(t,r,n,i,a,s,c){var l,u,f,p,g,d;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.logger.log('Validating "forceAllocate" arguments.'),l=m.validateArguments([{argument:t,name:"userId",type:["number","string"]},{argument:r,name:"projectSlug",type:"string"},{argument:n,name:"testSlug",type:"string"},{argument:i,name:"token",type:"string"},{argument:a,name:"variationName",type:"string"},{argument:s,name:"userDataObj",type:["null","undefined","object"]},{argument:c,name:"headers",type:["object","undefined"]}]),u=l.isArgumentsValid,f=l.argumentsError,u){e.next=4;break}throw f;case 4:return this.logger.log('All "arguments" are valid.'),p=null,s&&(this.logger.log("Generating map from the user data object."),p=m.flattenObject(s),this.logger.log("User data map is generated:",p)),e.prev=7,this.logger.log('Calling "forceAllocate" API.'),e.next=11,this.api.forceAllocate(t,r,n,i,a,p,c);case 11:return g=e.sent,this.logger.log('"forceAllocate" response received:',g),void 0!==g.response?(this.logger.log('Response contains "response" property, using it.',g.response),d=g.response.variation):d=g.variation,this.logger.log("Variation:",d),this.logger.log("Caching response:"),this.cache.set(t,r,n,d),this.logger.log("Response cached."),e.abrupt("return",d);case 21:throw e.prev=21,e.t0=e.catch(7),e.t0;case 24:case"end":return e.stop()}},e,this,[[7,21]])})),function(e,t,n,o,i,a,s){return r.apply(this,arguments)})},{key:"trackMetric",value:(t=a()(o.a.mark(function e(t,r,n,i,a,s,c,l,u){var f,p,g,d,h;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.logger.log('Validating "trackMetric" arguments.'),f=m.validateArguments([{argument:t,name:"userId",type:["number","string"]},{argument:r,name:"projectSlug",type:"string"},{argument:n,name:"testSlug",type:"string"},{argument:i,name:"token",type:"string"},{argument:a,name:"metricSlug",type:"string"},{argument:s,name:"metricValue",type:"number"},{argument:c,name:"userDataObj",type:["null","undefined","object"]},{argument:l,name:"eventTime",type:["undefined","number"]},{argument:u,name:"headers",type:["object","undefined"]}]),p=f.isArgumentsValid,g=f.argumentsError,p){e.next=4;break}throw g;case 4:return this.logger.log('All "arguments" are valid.'),d=null,c&&(this.logger.log("Generating map from the metric data object."),d=m.flattenObject(c),this.logger.log("Metric data map is generated:",d)),e.prev=7,this.logger.log('Calling "trackMetric" API.'),e.next=11,this.api.trackMetric(t,r,n,i,a,s,d,l,u);case 11:return h=e.sent,this.logger.log('"trackMetric" response received:',h),e.abrupt("return",h);case 16:throw e.prev=16,e.t0=e.catch(7),e.t0;case 19:case"end":return e.stop()}},e,this,[[7,16]])})),function(e,r,n,o,i,a,s,c,l){return t.apply(this,arguments)})}]),e}()}])},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=document.getElementById("apd-aria-live-region");t.innerHTML="",window.setTimeout(function(){t.innerHTML=e,window.setTimeout(function(){t.innerHTML===e&&(t.innerHTML="")},1e4)},100)}},function(e,t,r){"use strict";var n=a(r(61)),o=a(r(87)),i=r(85);function a(e){return e&&e.__esModule?e:{default:e}}e.exports=function(){var e=document.querySelector("#feedback textarea"),t=e?e.dataset:{},r=document.querySelector(".form-counter"),a=document.querySelector("#form-counter-error-message"),s=a?a.value:"",c=document.querySelector("#feedback-state.form-element"),l=document.querySelector(".form-textbox-counter"),u=(document.querySelector(".form-label"),document.querySelector("#char-limit-message")),f=u?u.textContent:"",p=void 0,g=JSON.parse(window.appState),d=g.showHelpFulfeedBack,h=g.id,v=g.locale;function m(){var e=document.querySelector("#feedback-label"),r=e?e.dataset:{};p=5,S(t.yesPlaceholder,r.yesLabel),j({rating:5,locale:v,articleId:h}),(0,i.trackOkapiYes)()}function y(){var e=document.querySelector("#feedback-label"),r=e?e.dataset:{};p=1,S(t.noPlaceholder,r.noLabel),j({rating:1,locale:v,articleId:h}),(0,i.trackOkapiNo)()}function w(e){e.classList.remove("show"),e.classList.add("hide")}function b(e){e.classList.remove("hide"),e.classList.add("show")}function S(e,t){if(d){var r=document.querySelector(".form-label"),n=document.querySelector("#feedback-label");r.textContent=e,n.textContent=t,w(document.querySelector("#question-state")),b(document.querySelector("#feedback-state"));var o=document.querySelector("#results-helpful");o&&w(o)}else x()}function x(){d&&w(document.querySelector("#feedback-state"));var e=document.querySelector("#results-helpful");e&&w(e),w(document.querySelector("#question-state")),b(document.querySelector("#rating-done"))}function _(e){if(e.preventDefault(),!k()){x();var t=document.querySelector("#feedback textarea").value;""!==(t=t.trim())&&j({rating:p,locale:v,articleId:h,comments:t})}}function O(n){var i=t.maxLength-e.textLength;if(i>0){if(k(),i<=10){var a=f+" "+i;(0,o.default)(a)}}else i<1&&(l.classList.add("is-error"),(0,o.default)(s));r.textContent=i}function k(){return t.maxLength-e.textLength<0?(c.classList.add("is-error"),l.classList.add("is-error"),!0):(c.classList.remove("is-error"),l.classList.remove("is-error"),!1)}function j(e){var t={id:e.articleId,rating:e.rating,locale:e.locale,comments:e.comments?e.comments:""};fetch("/ols/realtimeapi/ratings",{method:"post",body:(0,n.default)(t),headers:{"Content-Type":"application/json"}})}if(null!=window.onload)var E=window.onload;return window.onload=function(){!function(){var t=document.querySelector("#yes-button"),r=document.querySelector("#no-button");t&&t.addEventListener("click",m),r&&r.addEventListener("click",y);var n=document.querySelector("#submit-feedback");n&&n.addEventListener("click",_),e&&(e.addEventListener("input",O),e.addEventListener("blur",k)),!window.okapiConfig&&document.querySelector("#helpful")&&document.querySelector("#helpful").classList.remove("okapi-enabled")}(),null!=E&&E()},{handleRatingYesClick:m,handleRatingNoClick:y}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={submitImpression:function(e){var t="/ols/realtimeapi/impression?id="+e.id+"&locale="+e.locale+"&src="+e.src;fetch(t)}};t.default=n},,,,,,,,,,,,,,,,,function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(var t=document.querySelectorAll('#content a[href^="#"]'),r=function(r){t[r].onclick=function(n){n.preventDefault();var o=t[r].getAttribute("href"),i=o.substr(1,o.length),a=document.getElementById(i);a.setAttribute("tabindex",-1);try{e(a)}catch(e){console.error("some error occured",e)}return window.setTimeout(function(){a.focus()},500),!1}},n=0;n<t.length;n++)r(n)}},function(e,t,r){var n,o;!function(i,a){"use strict";void 0===(o="function"==typeof(n=function(){if("object"!=typeof window)return;if(void 0===document.querySelectorAll||void 0===window.pageYOffset||void 0===history.pushState)return;var e=function(e,t,r,n){return r>n?t:e+(t-e)*function(e){return e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1}(r/n)},t=function(t,r,n,o){r=r||500;var i=(o=o||window).scrollTop||window.pageYOffset;if("number"==typeof t)var a=parseInt(t);else var a=function(e,t){return"HTML"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,i);var s=Date.now(),c=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)},l=function(){var u=Date.now()-s;o!==window?o.scrollTop=e(i,a,u,r):window.scroll(0,e(i,a,u,r)),u>r?"function"==typeof n&&n(t):c(l)};l()},r=function(e){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var r=document.getElementById(this.hash.substring(1));r&&t(r,500,function(e){location.replace("#"+e.id)})};return document.addEventListener("DOMContentLoaded",function(){for(var e,t=document.querySelectorAll('a[href^="#"]:not([href="#"])'),n=t.length;e=t[--n];)e.addEventListener("click",r,!1)}),t})?n.call(t,r,t,e):n)||(e.exports=o)}()},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(34),o=function(e){window._applemd&&(window._applemd.page.promotions={},window._applemd.page.promotions.isPromo="true",window._applemd.page.promotions.promo_ids=2===e.length?e[0].id+","+e[1].id:e[0].id,n.metrics.track("track_promo",{}))};e.exports={initFlexBanner:function(){var e=JSON.parse(window.appState);if(!("HOWTO_ARTICLES"!==e.channel||e.source.length>0)){var t=document.getElementById("flexbanner-wrapper"),r=document.getElementById("flexbanner"),n=e.urlLocale,i=e.id;fetch("/ols/api/flex/"+n+"/"+i,{headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(function(e){if(200!==e.status)throw new Error;return e.json()}).then(function(e){if(1===e.length||2===e.length){o(e),t.style.display="block";for(var n=[],i=[],a=[],s=0;s<e.length;s++)n[s]='<div class="bannerImage"><img alt="" src="'+e[s].image.thumbnail+'"></div>',i[s]='<div class="bannerHeading"><h2>'+e[s].title+"</h2></div>",a[s]='<div class="bannerDescription">'+e[s].content.replace(/<a /g,'<a class="more" data-ss-analytics-link-component_type="promo" data-ss-analytics-link-text="'+e[s].title+'" data-ss-analytics-link-url="" data-ss-analytics-event="acs.link_click"')+"</div>";1===e.length?(n[0]='<div class="bannerImage"><img alt="" src="'+e[0].image.socialImage+'"></div>',r.innerHTML="<div class=\"bannerItem\" id='fbonlyone'>\n "+(n[0]+i[0]+a[0])+"</div>"):2===e.length&&(r.innerHTML="<div class=\"bannerItem\" id='fbone'>\n "+(n[0]+i[0]+a[0])+"</div>\n <div class=\"bannerItem\" id='fbtwo'>\n "+(n[1]+i[1]+a[1])+"</div>")}r.querySelectorAll("a").forEach(function(e){e.setAttribute("data-ss-analytics-link-url",e.getAttribute("href"))})}).catch(function(e){})}}}},function(e,t,r){},function(e,t,r){"use strict";e.exports={getIosVersion:function(e){var t=e.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return null!==t?parseFloat(t[1]+"."+t[2]+t[3]):null},getEdgeScapeCountry:function(e){return fetch(e).then(function(e){return e.headers.get("X-Akamai-Edgescape")})},isIosDevice:function(e){var t=e.platform;return!!/iP(hone|od|ad)/.test(t)},getBrowserCountryAndLanguage:function(e){var t=e.language.split("-");return{language:t[0],country:t[1]}}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){document.querySelectorAll("div.steps").forEach(function(e){e.querySelectorAll("p > img").forEach(function(t){e.appendChild(t)}),e.querySelectorAll("p:empty").forEach(function(e){e.remove()});var t=document.createElement("div");e.insertBefore(t,e.childNodes[0]),e.querySelectorAll("h2").forEach(function(e){t.appendChild(e)}),e.querySelectorAll("p").forEach(function(e){t.appendChild(e)});var r=e.querySelector("div[data-reactid]");r&&r.remove()}),document.querySelectorAll("div.stepswrap").forEach(function(e){e.querySelectorAll("p > img").forEach(function(t){e.appendChild(t)}),e.querySelectorAll("p:empty").forEach(function(e){e.remove()});var t=document.createElement("div");e.insertBefore(t,e.childNodes[0]),e.querySelectorAll("h2").forEach(function(e){t.appendChild(e)}),e.querySelectorAll("p").forEach(function(e){t.appendChild(e)});var r=e.querySelector("div[data-reactid]");r&&r.remove()})}},function(e,t,r){var n=r(3),o=r(42);e.exports=r(2).getIterator=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return n(t.call(e))}},function(e,t,r){r(58),r(43),e.exports=r(216)},function(e,t,r){e.exports={default:r(217),__esModule:!0}},function(e,t,r){"use strict";var n=d(r(218)),o=d(r(107)),i=d(r(215)),a=d(r(89)),s=d(r(106)),c=r(35),l=r(36),u=r(214),f=(d(r(213)),r(62)),p=(d(r(88)),r(85)),g=r(212);function d(e){return e&&e.__esModule?e:{default:e}}document.body.className=document.body.className.replace("no-js","js");var h=JSON.parse(window.appState),v="_applemd";function m(){return h.bizChatSupportedCountries.split("+").includes((0,u.getBrowserCountryAndLanguage)(navigator).country)&&(0,u.isIosDevice)(navigator)&&(0,u.getIosVersion)(navigator)>=11.3&&function(){try{var e=h.bizChatthrottleValue,t=sessionStorage?sessionStorage.getItem("showBizChat"):null;if(e>0&&null!==t)return"true"===t;if(e&&e>0&&e<=100){var r=parseInt(100*Math.random());return sessionStorage&&sessionStorage.setItem("showBizChat",r<=e),r<=e}}catch(r){}return!1}()}function y(){var e=h.bizChatLink,t=null;document.querySelectorAll("a[href*='bizchat.html']").forEach(function(r){var n=new URL(r.href),o=n.searchParams.get("data-apple-banner-mode")||"",i=n.searchParams.get("data-apple-bizchat-message-body")||"",a=n.searchParams.get("data-apple-banner-context")||h.bizChatBody;a=unescape(a);var s=n.searchParams.get("data-apple-business-group-id")||h.bizChatGroupId;s=s.replace("ARTICLEID",h.id.toLowerCase()),t=n.searchParams.get("data-apple-business-intent-id")?n.searchParams.get("data-apple-business-intent-id"):'{"authBag":""}';var c=e+"?biz-intent-id="+t+"&biz-group-id="+s+"&body="+i,l='<div class="apple-business-chat-button-container '+o+'"> <div class="bizchat-text"><div class="text">'+a+"</div> </div><div class=\"bizchat-image\"><a aria-label='Open Messages to chat with Apple' class='disable-menu' target='_parent' href=\""+c+'"><svg id="apple-button-chat" class="apple-button" width="44px" height="44px" viewBox="0 0 45 45" version="1.1"><path data-ss-analytics-bizchat-id=\''+t+"' data-ss-analytics-link-url='"+c+"' data-ss-analytics-link-component_name='bizchat' data-ss-analytics-link-component_type='simple link' data-ss-analytics-link-text='"+a+'\' data-ss-analytics-event=\'ht_link.click\' class="apple-button-circle" fill="#EFEFF4" d="M22.5,45 C10.0735931,45 0,34.9264069 0,22.5 C0,10.0735931 10.0735931,0 22.5,0 C34.9264069,0 45,10.0735931 45,22.5 C45,34.9264069 34.9264069,45 22.5,45 Z M22.4619356,30.7786771 C28.8431598,30.7786771 34.0161642,26.6017171 34.0161642,21.4491758 C34.0161642,16.2966345 28.8431598,12.1196744 22.4619356,12.1196744 C16.0807113,12.1196744 10.907707,16.2966345 10.907707,21.4491758 C10.907707,24.5967503 12.8381275,27.3802652 15.795146,29.0699258 C15.8018337,29.0737472 15.8268985,29.0878733 15.8703404,29.1123041 C15.9086504,29.13384 15.9357892,29.1708735 15.9447928,29.2138896 C16.1991538,30.4291461 14.5351454,31.5190311 13.422981,32.2462538 C17.1091602,32.4782927 18.9690206,31.0025315 19.5011958,30.5186766 C20.4035939,30.7013957 21.4893693,30.7786771 22.4619356,30.7786771 Z" style="filter: brightness(0.9);"></path><path data-ss-analytics-bizchat-id=\''+t+"' data-ss-analytics-link-component_name='bizchat' data-ss-analytics-link-component_type='simple link' data-ss-analytics-link-text='"+a+"' data-ss-analytics-event='ht_link.click' data-ss-analytics-link-url='"+c+'\' class="apple-button-icon" fill="#007AFF" stroke="#EFEFF4" stroke-width="0.2px" d="M22.4619356,30.7786771 C28.8431598,30.7786771 34.0161642,26.6017171 34.0161642,21.4491758 C34.0161642,16.2966345 28.8431598,12.1196744 22.4619356,12.1196744 C16.0807113,12.1196744 10.907707,16.2966345 10.907707,21.4491758 C10.907707,24.5967503 12.8381275,27.3802652 15.795146,29.0699258 C15.8018337,29.0737472 15.8268985,29.0878733 15.8703404,29.1123041 L15.8703441,29.1122974 C15.9086504,29.13384 15.9357892,29.1708735 15.9447928,29.2138896 C15.9447928,29.2138896 15.9447928,29.2138896 15.9447928,29.2138896 C16.1991538,30.4291461 14.5351454,31.5190311 13.422981,32.2462538 C17.1091602,32.4782927 18.9690206,31.0025315 19.5011958,30.5186766 C20.4035939,30.7013957 21.4893693,30.7786771 22.4619356,30.7786771 Z" style="filter: brightness(0.9);"></path></svg></a></div></div>';r.outerHTML=l}),window[v]&&(window[v].component={},window[v].component.name="bizchat",window[v].component.type="impression",window[v].component.bizchat_id=t,window[v].eventName="track_impression",(0,c.triggerDTMEvent)("pageload"))}function w(e){e.preventDefault();var t=[document.querySelector("#questionInputField").value.trim(),document.querySelector("#questionInputField").getAttribute("placeholder")],r=t[0];""===r||r===t[1]?alert(document.querySelector("#ols_discussion_error_no_question").value):((0,c.triggerDTMEvent)(e,!0),e.target.submit())}function b(){var e=document.querySelector("#questionInputField");""!==e.value.trim()?e.classList.add("form-textbox-entered"):e.classList.remove("form-textbox-entered")}function S(){if("support_app"!==h.source&&!h.isPreview&&"KBMini"!==h.channel){null!=document.getElementById("cas")&&function(){var e="/ols/api/offers?productCategory="+h.productCategories+"&locale="+h.locale;h.productCategories&&fetch(e).then(function(e){return e.json()}).then(function(e){if(e.browseResponse){var t=e.browseResponse;if(t.count>0)for(var r=0;r<t.browseArticles.length;r++){var o=t.browseArticles[r].additionalFields,i=void 0===o?[]:o,a=!0,s=!1,c=void 0;try{for(var l,u=(0,n.default)(i);!(a=(l=u.next()).done);a=!0){var f=l.value,p=f.key,g=f.value;"SUMMARY"===p&&(document.querySelector("#promo").innerHTML=g)}}catch(e){s=!0,c=e}finally{try{!a&&u.return&&u.return()}finally{if(s)throw c}}}}}).catch()}();var e=document.querySelector("#question-form");if(e)e.addEventListener("submit",w),document.querySelector("#questionInputField").addEventListener("keyup",b)}m()&&(0,u.getEdgeScapeCountry)(h.akamaiEdgeScapeURL).then(function(e){"US"===e&&y()}),h.bypassBizChat&&y()}(0,c.startAnalytics)(),h.isNeighborJsEnabled&&(0,l.triggerNeighborJsReady)("ss-ht"),document.getElementById("howto-section")&&((0,s.default)(o.default),(0,i.default)(),h.isPreview||a.default.submitImpression({locale:h.locale,id:h.id,src:h.source}));var x=null;null!=window.onload&&(x=window.onload),window.onload=function(){S(),(0,p.initOkapi)(),(0,g.initFlexBanner)(),(0,l.triggerDTMPageLoad)(h.dtmPageName),null!=x&&x()},document.cookie=(0,f.generatePOD)(h.podCookie),e.exports={intiBizChat:y}}]);