/*
 jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license  ************************************************
 jquery.cookies.2.2.0.min.js Cookie Util
************************************************ ************************************************
 E-Store Interface 관련 공통 Util
 인터페이스명세서(NG_to_Store)_20140226-v.3.0 적용
************************************************ samsung.com GEO Cannibalization
 src : /samsungp5/components/common/cm-g-gnb-201807/clientlibs/devjs/main1.gnb1.smg.global.cookieGeo.js

 @version 1.0.0
 @since 2018.06.26
*/
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var n=0;return function(){return n<a.length?{done:!1,value:a[n++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,n,h){if(a==Array.prototype||a==Object.prototype)return a;a[n]=h.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<a.length;++n){var h=a[n];if(h&&h.Math==Math)return h}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,n){var h=$jscomp.propertyToPolyfillSymbol[n];if(null==h)return a[n];h=a[h];return void 0!==h?h:a[n]};
$jscomp.polyfill=function(a,n,h,f){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,n,h,f):$jscomp.polyfillUnisolated(a,n,h,f))};$jscomp.polyfillUnisolated=function(a,n,h,f){h=$jscomp.global;a=a.split(".");for(f=0;f<a.length-1;f++){var c=a[f];if(!(c in h))return;h=h[c]}a=a[a.length-1];f=h[a];n=n(f);n!=f&&null!=n&&$jscomp.defineProperty(h,a,{configurable:!0,writable:!0,value:n})};
$jscomp.polyfillIsolated=function(a,n,h,f){var c=a.split(".");a=1===c.length;f=c[0];f=!a&&f in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var k=0;k<c.length-1;k++){var l=c[k];if(!(l in f))return;f=f[l]}c=c[c.length-1];h=$jscomp.IS_SYMBOL_NATIVE&&"es6"===h?f[c]:null;n=n(h);null!=n&&(a?$jscomp.defineProperty($jscomp.polyfills,c,{configurable:!0,writable:!0,value:n}):n!==h&&(void 0===$jscomp.propertyToPolyfillSymbol[c]&&($jscomp.propertyToPolyfillSymbol[c]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(c):
$jscomp.POLYFILL_PREFIX+c),c=$jscomp.propertyToPolyfillSymbol[c],$jscomp.defineProperty(f,c,{configurable:!0,writable:!0,value:n})))};$jscomp.initSymbol=function(){};
$jscomp.polyfill("Symbol",function(a){if(a)return a;var n=function(c,k){this.$jscomp$symbol$id_=c;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:k})};n.prototype.toString=function(){return this.$jscomp$symbol$id_};var h=0,f=function(c){if(this instanceof f)throw new TypeError("Symbol is not a constructor");return new n("jscomp_symbol_"+(c||"")+"_"+h++,c)};return f},"es6","es3");
$jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),h=0;h<n.length;h++){var f=$jscomp.global[n[h]];"function"===typeof f&&"function"!=typeof f.prototype[a]&&$jscomp.defineProperty(f.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6",
"es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,n){a.raw=n;return a};$jscomp.makeIterator=function(a){var n="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return n?n.call(a):$jscomp.arrayIterator(a)};$jscomp.arrayFromIterator=function(a){for(var n,h=[];!(n=a.next()).done;)h.push(n.value);return h};
$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))};$jscomp.objectCreate=$jscomp.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(a){var n=function(){};n.prototype=a;return new n};
$jscomp.getConstructImplementation=function(){function a(){function h(){}new h;Reflect.construct(h,[],function(){});return new h instanceof h}if($jscomp.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var n=Reflect.construct;return function(h,f,c){h=n(h,f);c&&Reflect.setPrototypeOf(h,c.prototype);return h}}return function(h,f,c){void 0===c&&(c=h);c=$jscomp.objectCreate(c.prototype||Object.prototype);return Function.prototype.apply.call(h,c,f)||
c}};$jscomp.construct={valueOf:$jscomp.getConstructImplementation}.valueOf();$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},n={};try{return n.__proto__=a,n.a}catch(h){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,n){a.__proto__=n;if(a.__proto__!==n)throw new TypeError(a+" is not extensible");return a}:null;
$jscomp.inherits=function(a,n){a.prototype=$jscomp.objectCreate(n.prototype);a.prototype.constructor=a;if($jscomp.setPrototypeOf){var h=$jscomp.setPrototypeOf;h(a,n)}else for(h in n)if("prototype"!=h)if(Object.defineProperties){var f=Object.getOwnPropertyDescriptor(n,h);f&&Object.defineProperty(a,h,f)}else a[h]=n[h];a.superClass_=n.prototype};$jscomp.generator={};
$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};
$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};
$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,n){this.nextAddress=n;return{value:a}};
$jscomp.generator.Context.prototype.yieldAll=function(a,n){a=$jscomp.makeIterator(a);var h=a.next();$jscomp.generator.ensureIteratorResultIsObject_(h);if(h.done)this.yieldResult=h.value,this.nextAddress=n;else return this.yieldAllIterator_=a,this.yield(h.value,n)};$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};
$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,n){this.catchAddress_=a;void 0!=n&&(this.finallyAddress_=n)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,n){this.nextAddress=a;this.catchAddress_=n||0};
$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,n,h){h?this.finallyContexts_[h]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=n||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,n){n=this.finallyContexts_.splice(n||0)[0];if(n=this.abruptCompletion_=this.abruptCompletion_||n){if(n.isException)return this.jumpToErrorHandler_();void 0!=n.jumpTo&&this.finallyAddress_<n.jumpTo?(this.nextAddress=n.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var n in a)this.properties_.push(n);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var n=this.context_.yieldAllIterator_;if(n)return this.yieldAllStep_("return"in n?n["return"]:function(h){return{value:h,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,n,h){try{var f=a.call(this.context_.yieldAllIterator_,n);$jscomp.generator.ensureIteratorResultIsObject_(f);if(!f.done)return this.context_.stop_(),f;var c=f.value}catch(k){return this.context_.yieldAllIterator_=null,this.context_.throw_(k),this.nextStep_()}this.context_.yieldAllIterator_=null;h.call(this.context_,c);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(n){this.context_.yieldResult=void 0,this.context_.throw_(n)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
$jscomp.generator.Generator_=function(a){this.next=function(n){return a.next_(n)};this.throw=function(n){return a.throw_(n)};this.return=function(n){return a.return_(n)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,n){n=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(n));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(n,a.prototype);return n};
$jscomp.asyncExecutePromiseGenerator=function(a){function n(f){return a.next(f)}function h(f){return a.throw(f)}return new Promise(function(f,c){function k(l){l.done?f(l.value):Promise.resolve(l.value).then(n,h).then(k,c)}k(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
!function(a,n){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?n(a,!0):function(h){if(!h.document)throw Error("jQuery requires a window with a document");return n(h)}:n(a)}("undefined"!=typeof window?window:this,function(a,n){function h(d,m,q){var v,x,A=(q=q||Na).createElement("script");if(A.text=d,m)for(v in nb)(x=m[v]||m.getAttribute&&m.getAttribute(v))&&A.setAttribute(v,x);q.head.appendChild(A).parentNode.removeChild(A)}function f(d){return null==d?d+"":"object"==
typeof d||"function"==typeof d?qc[Bb.call(d)]||"object":typeof d}function c(d){var m=!!d&&"length"in d&&d.length,q=f(d);return!Ka(d)&&!Yb(d)&&("array"===q||0===m||"number"==typeof m&&0<m&&m-1 in d)}function k(d,m){return d.nodeName&&d.nodeName.toLowerCase()===m.toLowerCase()}function l(d,m,q){return Ka(m)?u.grep(d,function(v,x){return!!m.call(v,x,v)!==q}):m.nodeType?u.grep(d,function(v){return v===m!==q}):"string"!=typeof m?u.grep(d,function(v){return-1<Zb.call(m,v)!==q}):u.filter(m,d,q)}function e(d,
m){for(;(d=d[m])&&1!==d.nodeType;);return d}function b(d){return d}function g(d){throw d;}function p(d,m,q,v){var x;try{d&&Ka(x=d.promise)?x.call(d).done(m).fail(q):d&&Ka(x=d.then)?x.call(d,m,q):m.apply(void 0,[d].slice(v))}catch(A){q.apply(void 0,[A])}}function r(){Na.removeEventListener("DOMContentLoaded",r);a.removeEventListener("load",r);u.ready()}function t(d,m){return m.toUpperCase()}function w(d){return d.replace(ha,"ms-").replace(sa,t)}function z(){this.expando=u.expando+z.uid++}function D(d,
m,q){var v,x;if(void 0===q&&1===d.nodeType)if(v="data-"+m.replace(Jb,"-$\x26").toLowerCase(),"string"==typeof(q=d.getAttribute(v))){try{q="true"===(x=q)||"false"!==x&&("null"===x?null:x===+x+""?+x:hb.test(x)?JSON.parse(x):x)}catch(A){}Ca.set(d,m,q)}else q=void 0;return q}function E(d,m,q,v){var x,A,C=20,F=v?function(){return v.cur()}:function(){return u.css(d,m,"")},K=F(),S=q&&q[3]||(u.cssNumber[m]?"":"px"),Y=d.nodeType&&(u.cssNumber[m]||"px"!==S&&+K)&&ic.exec(u.css(d,m));if(Y&&Y[3]!==S){K/=2;S=S||
Y[3];for(Y=+K||1;C--;)u.style(d,m,Y+S),0>=(1-A)*(1-(A=F()/K||.5))&&(C=0),Y/=A;Y*=2;u.style(d,m,Y+S);q=q||[]}return q&&(Y=+Y||+K||0,x=q[1]?Y+(q[1]+1)*q[2]:+q[2],v&&(v.unit=S,v.start=Y,v.end=x)),x}function y(d,m){for(var q,v,x,A,C,F,K,S=[],Y=0,R=d.length;Y<R;Y++)(v=d[Y]).style&&(q=v.style.display,m?("none"===q&&(S[Y]=ba.get(v,"display")||null,S[Y]||(v.style.display="")),""===v.style.display&&rc(v)&&(S[Y]=(K=C=A=void 0,C=(x=v).ownerDocument,F=x.nodeName,(K=jc[F])||(A=C.body.appendChild(C.createElement(F)),
K=u.css(A,"display"),A.parentNode.removeChild(A),"none"===K&&(K="block"),jc[F]=K)))):"none"!==q&&(S[Y]="none",ba.set(v,"display",q)));for(Y=0;Y<R;Y++)null!=S[Y]&&(d[Y].style.display=S[Y]);return d}function V(d,m){var q;return q="undefined"!=typeof d.getElementsByTagName?d.getElementsByTagName(m||"*"):"undefined"!=typeof d.querySelectorAll?d.querySelectorAll(m||"*"):[],void 0===m||m&&k(d,m)?u.merge([d],q):q}function ca(d,m){for(var q=0,v=d.length;q<v;q++)ba.set(d[q],"globalEval",!m||ba.get(m[q],"globalEval"))}
function xa(d,m,q,v,x){for(var A,C,F,K,S=m.createDocumentFragment(),Y=[],R=0,pa=d.length;R<pa;R++)if((A=d[R])||0===A)if("object"===f(A))u.merge(Y,A.nodeType?[A]:A);else if(id.test(A)){C=C||S.appendChild(m.createElement("div"));F=($a.exec(A)||["",""])[1].toLowerCase();F=Qb[F]||Qb._default;C.innerHTML=F[1]+u.htmlPrefilter(A)+F[2];for(F=F[0];F--;)C=C.lastChild;u.merge(Y,C.childNodes);(C=S.firstChild).textContent=""}else Y.push(m.createTextNode(A));S.textContent="";for(R=0;A=Y[R++];)if(v&&-1<u.inArray(A,
v))x&&x.push(A);else if(K=Rb(A),C=V(S.appendChild(A),"script"),K&&ca(C),q)for(F=0;A=C[F++];)Jc.test(A.type||"")&&q.push(A);return S}function ea(){return!0}function va(){return!1}function na(d,m){a:{try{var q=Na.activeElement;break a}catch(v){}q=void 0}return d===q==("focus"===m)}function cb(d,m,q,v,x,A){var C,F;if("object"==typeof m){for(F in"string"!=typeof q&&(v=v||q,q=void 0),m)cb(d,F,q,v,m[F],A);return d}if(null==v&&null==x?(x=q,v=q=void 0):null==x&&("string"==typeof q?(x=v,v=void 0):(x=v,v=q,
q=void 0)),!1===x)x=va;else if(!x)return d;return 1===A&&(C=x,(x=function(K){return u().off(K),C.apply(this,arguments)}).guid=C.guid||(C.guid=u.guid++)),d.each(function(){u.event.add(this,m,x,v,q)})}function db(d,m,q){q?(ba.set(d,m,!1),u.event.add(d,m,{namespace:!1,handler:function(v){var x,A,C=ba.get(this,m);if(1&v.isTrigger&&this[m])if(C.length)(u.event.special[m]||{}).delegateType&&v.stopPropagation();else{if(C=Hb.call(arguments),ba.set(this,m,C),x=q(this,m),this[m](),C!==(A=ba.get(this,m))||x?
ba.set(this,m,!1):A={},C!==A)return v.stopImmediatePropagation(),v.preventDefault(),A.value}else C.length&&(ba.set(this,m,{value:u.event.trigger(u.extend(C[0],u.Event.prototype),C.slice(1),this)}),v.stopImmediatePropagation())}})):void 0===ba.get(d,m)&&u.event.add(d,m,ea)}function wa(d,m){return k(d,"table")&&k(11!==m.nodeType?m:m.firstChild,"tr")&&u(d).children("tbody")[0]||d}function Ra(d){return d.type=(null!==d.getAttribute("type"))+"/"+d.type,d}function Ia(d){return"true/"===(d.type||"").slice(0,
5)?d.type=d.type.slice(5):d.removeAttribute("type"),d}function M(d,m){var q,v,x,A,C,F;if(1===m.nodeType){if(ba.hasData(d)&&(q=ba.access(d),v=ba.set(m,q),F=q.events))for(x in delete v.handle,v.events={},F)for(q=0,v=F[x].length;q<v;q++)u.event.add(m,x,F[x][q]);Ca.hasData(d)&&(A=Ca.access(d),C=u.extend({},A),Ca.set(m,C))}}function I(d,m,q,v){m=Uc.apply([],m);var x,A,C,F=0,K=d.length,S=K-1,Y=m[0],R=Ka(Y);if(R||1<K&&"string"==typeof Y&&!ab.checkClone&&xc.test(Y))return d.each(function(Aa){var ya=d.eq(Aa);
R&&(m[0]=Y.call(this,Aa,ya.html()));I(ya,m,q,v)});if(K&&(A=(x=xa(m,d[0].ownerDocument,!1,d,v)).firstChild,1===x.childNodes.length&&(x=A),A||v)){for(C=(A=u.map(V(x,"script"),Ra)).length;F<K;F++){var pa=x;F!==S&&(pa=u.clone(pa,!0,!0),C&&u.merge(A,V(pa,"script")));q.call(d[F],pa,F)}if(C)for(x=A[A.length-1].ownerDocument,u.map(A,Ia),F=0;F<C;F++)pa=A[F],Jc.test(pa.type||"")&&!ba.access(pa,"globalEval")&&u.contains(x,pa)&&(pa.src&&"module"!==(pa.type||"").toLowerCase()?u._evalUrl&&!pa.noModule&&u._evalUrl(pa.src,
{nonce:pa.nonce||pa.getAttribute("nonce")}):h(pa.textContent.replace(Yc,""),pa,x))}return d}function N(d,m,q){for(var v=m?u.filter(m,d):d,x=0;null!=(m=v[x]);x++)q||1!==m.nodeType||u.cleanData(V(m)),m.parentNode&&(q&&Rb(m)&&ca(V(m,"script")),m.parentNode.removeChild(m));return d}function T(d,m,q){var v,x,A,C,F=d.style;return(q=q||Dc(d))&&(""!==(C=q.getPropertyValue(m)||q[m])||Rb(d)||(C=u.style(d,m)),!ab.pixelBoxStyles()&&$b.test(C)&&jd.test(m)&&(v=F.width,x=F.minWidth,A=F.maxWidth,F.minWidth=F.maxWidth=
F.width=C,C=q.width,F.width=v,F.minWidth=x,F.maxWidth=A)),void 0!==C?C+"":C}function Z(d,m){return{get:function(){if(!d())return(this.get=m).apply(this,arguments);delete this.get}}}function fa(d){var m;if(!(m=u.cssProps[d]||Sb[d])){if(!(d in Zc)){a:{m=d;for(var q=m[0].toUpperCase()+m.slice(1),v=$c.length;v--;)if((m=$c[v]+q)in Zc)break a;m=void 0}d=Sb[d]=m||d}m=d}return m}function qa(d,m,q){return(d=ic.exec(m))?Math.max(0,d[2]-(q||0))+(d[3]||"px"):m}function ua(d,m,q,v,x,A){var C="width"===m?1:0,F=
0,K=0;if(q===(v?"border":"content"))return 0;for(;4>C;C+=2)"margin"===q&&(K+=u.css(d,q+rb[C],!0,x)),v?("content"===q&&(K-=u.css(d,"padding"+rb[C],!0,x)),"margin"!==q&&(K-=u.css(d,"border"+rb[C]+"Width",!0,x))):(K+=u.css(d,"padding"+rb[C],!0,x),"padding"!==q?K+=u.css(d,"border"+rb[C]+"Width",!0,x):F+=u.css(d,"border"+rb[C]+"Width",!0,x));return!v&&0<=A&&(K+=Math.max(0,Math.ceil(d["offset"+m[0].toUpperCase()+m.slice(1)]-A-K-F-.5))||0),K}function ob(d,m,q){var v=Dc(d),x=(!ab.boxSizingReliable()||q)&&
"border-box"===u.css(d,"boxSizing",!1,v),A=x,C=T(d,m,v),F="offset"+m[0].toUpperCase()+m.slice(1);if($b.test(C)){if(!q)return C;C="auto"}return(!ab.boxSizingReliable()&&x||"auto"===C||!parseFloat(C)&&"inline"===u.css(d,"display",!1,v))&&d.getClientRects().length&&(x="border-box"===u.css(d,"boxSizing",!1,v),(A=F in d)&&(C=d[F])),(C=parseFloat(C)||0)+ua(d,m,q||(x?"border":"content"),A,v,C)+"px"}function Ha(d,m,q,v,x){return new Ha.prototype.init(d,m,q,v,x)}function Ya(){kc&&(!1===Na.hidden&&a.requestAnimationFrame?
a.requestAnimationFrame(Ya):a.setTimeout(Ya,u.fx.interval),u.fx.tick())}function oa(){return a.setTimeout(function(){yc=void 0}),yc=Date.now()}function ib(d,m){var q,v=0,x={height:d};for(m=m?1:0;4>v;v+=2-m)x["margin"+(q=rb[v])]=x["padding"+q]=d;return m&&(x.opacity=x.width=d),x}function lc(d,m,q){for(var v,x=(Tb.tweeners[m]||[]).concat(Tb.tweeners["*"]),A=0,C=x.length;A<C;A++)if(v=x[A].call(q,m,d))return v}function Tb(d,m,q){var v,x=0,A=Tb.prefilters.length,C=u.Deferred().always(function(){delete F.elem}),
F=function(){if(v)return!1;var S=yc||oa();S=Math.max(0,K.startTime+K.duration-S);for(var Y=1-(S/K.duration||0),R=0,pa=K.tweens.length;R<pa;R++)K.tweens[R].run(Y);return C.notifyWith(d,[K,Y,S]),1>Y&&pa?S:(pa||C.notifyWith(d,[K,1,0]),C.resolveWith(d,[K]),!1)},K=C.promise({elem:d,props:u.extend({},m),opts:u.extend(!0,{specialEasing:{},easing:u.easing._default},q),originalProperties:m,originalOptions:q,startTime:yc||oa(),duration:q.duration,tweens:[],createTween:function(S,Y){S=u.Tween(d,K.opts,S,Y,K.opts.specialEasing[S]||
K.opts.easing);return K.tweens.push(S),S},stop:function(S){var Y=0,R=S?K.tweens.length:0;if(v)return this;for(v=!0;Y<R;Y++)K.tweens[Y].run(1);return S?(C.notifyWith(d,[K,1,0]),C.resolveWith(d,[K,S])):C.rejectWith(d,[K,S]),this}});q=K.props;!function(S,Y){var R,pa,Aa,ya,Ua;for(R in S)if(Aa=Y[pa=w(R)],ya=S[R],Array.isArray(ya)&&(Aa=ya[1],ya=S[R]=ya[0]),R!==pa&&(S[pa]=ya,delete S[R]),(Ua=u.cssHooks[pa])&&"expand"in Ua)for(R in ya=Ua.expand(ya),delete S[pa],ya)R in S||(S[R]=ya[R],Y[R]=Aa);else Y[pa]=
Aa}(q,K.opts.specialEasing);for(;x<A;x++)if(m=Tb.prefilters[x].call(K,d,q,K.opts))return Ka(m.stop)&&(u._queueHooks(K.elem,K.opts.queue).stop=m.stop.bind(m)),m;return u.map(q,lc,K),Ka(K.opts.start)&&K.opts.start.call(d,K),K.progress(K.opts.progress).done(K.opts.done,K.opts.complete).fail(K.opts.fail).always(K.opts.always),u.fx.timer(u.extend(F,{elem:d,anim:K,queue:K.opts.queue})),K}function pb(d){return(d.match(Cb)||[]).join(" ")}function Za(d){return d.getAttribute&&d.getAttribute("class")||""}function za(d){return Array.isArray(d)?
d:"string"==typeof d&&d.match(Cb)||[]}function Q(d,m,q,v){var x;if(Array.isArray(m))u.each(m,function(A,C){q||Db.test(d)?v(d,C):Q(d+"["+("object"==typeof C&&null!=C?A:"")+"]",C,q,v)});else if(q||"object"!==f(m))v(d,m);else for(x in m)Q(d+"["+x+"]",m[x],q,v)}function zc(d){return function(m,q){"string"!=typeof m&&(q=m,m="*");var v=0,x=m.toLowerCase().match(Cb)||[];if(Ka(q))for(;m=x[v++];)"+"===m[0]?(m=m.slice(1)||"*",(d[m]=d[m]||[]).unshift(q)):(d[m]=d[m]||[]).push(q)}}function Vc(d,m,q,v){function x(F){var K;
return A[F]=!0,u.each(d[F]||[],function(S,Y){S=Y(m,q,v);return"string"!=typeof S||C||A[S]?C?!(K=S):void 0:(m.dataTypes.unshift(S),x(S),!1)}),K}var A={},C=d===qd;return x(m.dataTypes[0])||!A["*"]&&x("*")}function sc(d,m){var q,v,x=u.ajaxSettings.flatOptions||{};for(q in m)void 0!==m[q]&&((x[q]?d:v||(v={}))[q]=m[q]);return v&&u.extend(!0,d,v),d}var Oa=[],Na=a.document,fc=Object.getPrototypeOf,Hb=Oa.slice,Uc=Oa.concat,Kc=Oa.push,Zb=Oa.indexOf,qc={},Bb=qc.toString,Ob=qc.hasOwnProperty,mc=Ob.toString,
tc=mc.call(Object),ab={},Ka=function(d){return"function"==typeof d&&"number"!=typeof d.nodeType},Yb=function(d){return null!=d&&d===d.window},nb={type:!0,src:!0,nonce:!0,noModule:!0},u=function(d,m){return new u.fn.init(d,m)},Ub=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;u.fn=u.prototype={jquery:"3.4.1",constructor:u,length:0,toArray:function(){return Hb.call(this)},get:function(d){return null==d?Hb.call(this):0>d?this[d+this.length]:this[d]},pushStack:function(d){d=u.merge(this.constructor(),d);return d.prevObject=
this,d},each:function(d){return u.each(this,d)},map:function(d){return this.pushStack(u.map(this,function(m,q){return d.call(m,q,m)}))},slice:function(){return this.pushStack(Hb.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(d){var m=this.length;d=+d+(0>d?m:0);return this.pushStack(0<=d&&d<m?[this[d]]:[])},end:function(){return this.prevObject||this.constructor()},push:Kc,sort:Oa.sort,splice:Oa.splice};u.extend=u.fn.extend=function(){var d,
m,q,v,x,A=arguments[0]||{},C=1,F=arguments.length,K=!1;"boolean"==typeof A&&(K=A,A=arguments[C]||{},C++);"object"==typeof A||Ka(A)||(A={});for(C===F&&(A=this,C--);C<F;C++)if(null!=(d=arguments[C]))for(m in d){var S=d[m];"__proto__"!==m&&A!==S&&(K&&S&&(u.isPlainObject(S)||(v=Array.isArray(S)))?(q=A[m],x=v&&!Array.isArray(q)?[]:v||u.isPlainObject(q)?q:{},v=!1,A[m]=u.extend(K,x,S)):void 0!==S&&(A[m]=S))}return A};u.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(d){throw Error(d);
},noop:function(){},isPlainObject:function(d){var m,q;return!(!d||"[object Object]"!==Bb.call(d))&&(!(m=fc(d))||"function"==typeof(q=Ob.call(m,"constructor")&&m.constructor)&&mc.call(q)===tc)},isEmptyObject:function(d){for(var m in d)return!1;return!0},globalEval:function(d,m){h(d,{nonce:m&&m.nonce})},each:function(d,m){var q,v=0;if(c(d))for(q=d.length;v<q&&!1!==m.call(d[v],v,d[v]);v++);else for(v in d)if(!1===m.call(d[v],v,d[v]))break;return d},trim:function(d){return null==d?"":(d+"").replace(Ub,
"")},makeArray:function(d,m){m=m||[];return null!=d&&(c(Object(d))?u.merge(m,"string"==typeof d?[d]:d):Kc.call(m,d)),m},inArray:function(d,m,q){return null==m?-1:Zb.call(m,d,q)},merge:function(d,m){for(var q=+m.length,v=0,x=d.length;v<q;v++)d[x++]=m[v];return d.length=x,d},grep:function(d,m,q){var v=[],x=0,A=d.length;for(q=!q;x<A;x++)!m(d[x],x)!==q&&v.push(d[x]);return v},map:function(d,m,q){var v,x,A=0,C=[];if(c(d))for(v=d.length;A<v;A++)null!=(x=m(d[A],A,q))&&C.push(x);else for(A in d)null!=(x=
m(d[A],A,q))&&C.push(x);return Uc.apply([],C)},guid:1,support:ab});"function"==typeof Symbol&&(u.fn[Symbol.iterator]=Oa[Symbol.iterator]);u.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(d,m){qc["[object "+m+"]"]=m.toLowerCase()});var zb=function(d){function m(B,G,O,P){var W,la,ia,Ea;var ja=G&&G.ownerDocument;var Ga=G?G.nodeType:9;if(O=O||[],"string"!=typeof B||!B||1!==Ga&&9!==Ga&&11!==Ga)return O;if(!P&&((G?G.ownerDocument||G:wb)!==Sa&&ac(G),G=G||
Sa,sb)){if(11!==Ga&&(Ea=Id.exec(B)))if(W=Ea[1])if(9===Ga){if(!(la=G.getElementById(W)))return O;if(la.id===W)return O.push(la),O}else{if(ja&&(la=ja.getElementById(W))&&gb(G,la)&&la.id===W)return O.push(la),O}else{if(Ea[2])return Ec.apply(O,G.getElementsByTagName(B)),O;if((W=Ea[3])&&Ba.getElementsByClassName&&G.getElementsByClassName)return Ec.apply(O,G.getElementsByClassName(W)),O}if(!(!Ba.qsa||kd[B+" "]||tb&&tb.test(B)||1===Ga&&"object"===G.nodeName.toLowerCase())){if(W=B,ja=G,1===Ga&&Jd.test(B)){(ia=
G.getAttribute("id"))?ia=ia.replace(xd,yd):G.setAttribute("id",ia=Pa);for(ja=(Ga=Fc(B)).length;ja--;)Ga[ja]="#"+ia+" "+Aa(Ga[ja]);W=Ga.join(",");ja=rd.test(B)&&R(G.parentNode)||G}try{return Ec.apply(O,ja.querySelectorAll(W)),O}catch(Va){kd(B,!0)}finally{ia===Pa&&G.removeAttribute("id")}}}return uc(B.replace(ld,"$1"),G,O,P)}function q(){var B=[];return function W(O,P){return B.push(O+" ")>La.cacheLength&&delete W[B.shift()],W[O+" "]=P}}function v(B){return B[Pa]=!0,B}function x(B){var G=Sa.createElement("fieldset");
try{return!!B(G)}catch(O){return!1}finally{G.parentNode&&G.parentNode.removeChild(G)}}function A(B,G){B=B.split("|");for(var O=B.length;O--;)La.attrHandle[B[O]]=G}function C(B,G){var O=G&&B,P=O&&1===B.nodeType&&1===G.nodeType&&B.sourceIndex-G.sourceIndex;if(P)return P;if(O)for(;O=O.nextSibling;)if(O===G)return-1;return B?1:-1}function F(B){return function(G){return"input"===G.nodeName.toLowerCase()&&G.type===B}}function K(B){return function(G){var O=G.nodeName.toLowerCase();return("input"===O||"button"===
O)&&G.type===B}}function S(B){return function(G){return"form"in G?G.parentNode&&!1===G.disabled?"label"in G?"label"in G.parentNode?G.parentNode.disabled===B:G.disabled===B:G.isDisabled===B||G.isDisabled!==!B&&Kd(G)===B:G.disabled===B:"label"in G&&G.disabled===B}}function Y(B){return v(function(G){return G=+G,v(function(O,P){for(var W,la=B([],O.length,G),ia=la.length;ia--;)O[W=la[ia]]&&(O[W]=!(P[W]=O[W]))})})}function R(B){return B&&"undefined"!=typeof B.getElementsByTagName&&B}function pa(){}function Aa(B){for(var G=
0,O=B.length,P="";G<O;G++)P+=B[G].value;return P}function ya(B,G,O){var P=G.dir,W=G.next,la=W||P,ia=O&&"parentNode"===la,Ea=vc++;return G.first?function(ja,Ga,Va){for(;ja=ja[P];)if(1===ja.nodeType||ia)return B(ja,Ga,Va);return!1}:function(ja,Ga,Va){var xb,ub,Qa,bb=[jb,Ea];if(Va)for(;ja=ja[P];){if((1===ja.nodeType||ia)&&B(ja,Ga,Va))return!0}else for(;ja=ja[P];)if(1===ja.nodeType||ia)if(ub=(Qa=ja[Pa]||(ja[Pa]={}))[ja.uniqueID]||(Qa[ja.uniqueID]={}),W&&W===ja.nodeName.toLowerCase())ja=ja[P]||ja;else{if((xb=
ub[la])&&xb[0]===jb&&xb[1]===Ea)return bb[2]=xb[2];if((ub[la]=bb)[2]=B(ja,Ga,Va))return!0}return!1}}function Ua(B){return 1<B.length?function(G,O,P){for(var W=B.length;W--;)if(!B[W](G,O,P))return!1;return!0}:B[0]}function kb(B,G,O,P,W){for(var la,ia=[],Ea=0,ja=B.length,Ga=null!=G;Ea<ja;Ea++)(la=B[Ea])&&(O&&!O(la,P,W)||(ia.push(la),Ga&&G.push(Ea)));return ia}function nc(B,G,O,P,W,la){return P&&!P[Pa]&&(P=nc(P)),W&&!W[Pa]&&(W=nc(W,la)),v(function(ia,Ea,ja,Ga){var Va,xb=[],ub=[],Qa=Ea.length,bb;if(!(bb=
ia)){bb=G||"*";for(var fb=ja.nodeType?[ja]:ja,oc=[],Nb=0,Ib=fb.length;Nb<Ib;Nb++)m(bb,fb[Nb],oc);bb=oc}bb=!B||!ia&&G?bb:kb(bb,xb,B,ja,Ga);fb=O?W||(ia?B:Qa||P)?[]:Ea:bb;if(O&&O(bb,fb,ja,Ga),P){var yb=kb(fb,ub);P(yb,[],ja,Ga);for(ja=yb.length;ja--;)(Va=yb[ja])&&(fb[ub[ja]]=!(bb[ub[ja]]=Va))}if(ia){if(W||B){if(W){yb=[];for(ja=fb.length;ja--;)(Va=fb[ja])&&yb.push(bb[ja]=Va);W(null,fb=[],yb,Ga)}for(ja=fb.length;ja--;)(Va=fb[ja])&&-1<(yb=W?Lc(ia,Va):xb[ja])&&(ia[yb]=!(Ea[yb]=Va))}}else fb=kb(fb===Ea?fb.splice(Qa,
fb.length):fb),W?W(null,Ea,fb,Ga):Ec.apply(Ea,fb)})}function Kb(B){var G,O,P=B.length,W=La.relative[B[0].type];var la=W||La.relative[" "];for(var ia=W?1:0,Ea=ya(function(Va){return Va===G},la,!0),ja=ya(function(Va){return-1<Lc(G,Va)},la,!0),Ga=[function(Va,xb,ub){Va=!W&&(ub||xb!==Gc)||((G=xb).nodeType?Ea(Va,xb,ub):ja(Va,xb,ub));return G=null,Va}];ia<P;ia++)if(la=La.relative[B[ia].type])Ga=[ya(Ua(Ga),la)];else{if((la=La.filter[B[ia].type].apply(null,B[ia].matches))[Pa]){for(O=++ia;O<P&&!La.relative[B[O].type];O++);
return nc(1<ia&&Ua(Ga),1<ia&&Aa(B.slice(0,ia-1).concat({value:" "===B[ia-2].type?"*":""})).replace(ld,"$1"),la,ia<O&&Kb(B.slice(ia,O)),O<P&&Kb(B=B.slice(O)),O<P&&Aa(B))}Ga.push(la)}return Ua(Ga)}var bc,Ba,La,Wa,Eb,Fc,ad,uc,Gc,cc,dc,ac,Sa,lb,sb,tb,Xb,Lb,gb,Pa="sizzle"+1*new Date,wb=d.document,jb=0,vc=0,Mc=q(),md=q(),zd=q(),kd=q(),sd=function(B,G){return B===G&&(dc=!0),0},Ld={}.hasOwnProperty,Nc=[],Md=Nc.pop,Nd=Nc.push,Ec=Nc.push,Ad=Nc.slice,Lc=function(B,G){for(var O=0,P=B.length;O<P;O++)if(B[O]===
G)return O;return-1},Od=/[\x20\t\r\n\f]+/g,ld=/^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g,Pd=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,Qd=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,Jd=/[\x20\t\r\n\f]|>/,Rd=/:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,
Sd=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,nd={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\]/,PSEUDO:/^:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/,
CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},Td=/HTML$/i,Ud=/^(?:input|select|textarea|button)$/i,Vd=
/^h\d$/i,bd=/^[^{]+\{\s*\[native \w/,Id=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rd=/[+~]/,Ac=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,Bc=function(B,G,O){B="0x"+G-65536;return B!=B||O?G:0>B?String.fromCharCode(B+65536):String.fromCharCode(B>>10|55296,1023&B|56320)},xd=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yd=function(B,G){return G?"\x00"===B?"\ufffd":B.slice(0,-1)+"\\"+B.charCodeAt(B.length-1).toString(16)+" ":"\\"+B},Bd=function(){ac()},Kd=ya(function(B){return!0===B.disabled&&
"fieldset"===B.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Ec.apply(Nc=Ad.call(wb.childNodes),wb.childNodes),Nc[wb.childNodes.length].nodeType}catch(B){Ec={apply:Nc.length?function(G,O){Nd.apply(G,Ad.call(O))}:function(G,O){for(var P=G.length,W=0;G[P++]=O[W++];);G.length=P-1}}}for(bc in Ba=m.support={},Eb=m.isXML=function(B){var G=(B.ownerDocument||B).documentElement;return!Td.test(B.namespaceURI||G&&G.nodeName||"HTML")},ac=m.setDocument=function(B){var G,O;B=B?B.ownerDocument||
B:wb;return B!==Sa&&9===B.nodeType&&B.documentElement&&(lb=(Sa=B).documentElement,sb=!Eb(Sa),wb!==Sa&&(O=Sa.defaultView)&&O.top!==O&&(O.addEventListener?O.addEventListener("unload",Bd,!1):O.attachEvent&&O.attachEvent("onunload",Bd)),Ba.attributes=x(function(P){return P.className="i",!P.getAttribute("className")}),Ba.getElementsByTagName=x(function(P){return P.appendChild(Sa.createComment("")),!P.getElementsByTagName("*").length}),Ba.getElementsByClassName=bd.test(Sa.getElementsByClassName),Ba.getById=
x(function(P){return lb.appendChild(P).id=Pa,!Sa.getElementsByName||!Sa.getElementsByName(Pa).length}),Ba.getById?(La.filter.ID=function(P){var W=P.replace(Ac,Bc);return function(la){return la.getAttribute("id")===W}},La.find.ID=function(P,W){if("undefined"!=typeof W.getElementById&&sb)return(P=W.getElementById(P))?[P]:[]}):(La.filter.ID=function(P){var W=P.replace(Ac,Bc);return function(la){return(la="undefined"!=typeof la.getAttributeNode&&la.getAttributeNode("id"))&&la.value===W}},La.find.ID=function(P,
W){if("undefined"!=typeof W.getElementById&&sb){var la,ia=W.getElementById(P);if(ia){if((la=ia.getAttributeNode("id"))&&la.value===P)return[ia];var Ea=W.getElementsByName(P);for(W=0;ia=Ea[W++];)if((la=ia.getAttributeNode("id"))&&la.value===P)return[ia]}return[]}}),La.find.TAG=Ba.getElementsByTagName?function(P,W){return"undefined"!=typeof W.getElementsByTagName?W.getElementsByTagName(P):Ba.qsa?W.querySelectorAll(P):void 0}:function(P,W){var la=[],ia=0;W=W.getElementsByTagName(P);if("*"===P){for(;P=
W[ia++];)1===P.nodeType&&la.push(P);return la}return W},La.find.CLASS=Ba.getElementsByClassName&&function(P,W){if("undefined"!=typeof W.getElementsByClassName&&sb)return W.getElementsByClassName(P)},Xb=[],tb=[],(Ba.qsa=bd.test(Sa.querySelectorAll))&&(x(function(P){lb.appendChild(P).innerHTML="\x3ca id\x3d'"+Pa+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+Pa+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";P.querySelectorAll("[msallowcapture^\x3d'']").length&&tb.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")");
P.querySelectorAll("[selected]").length||tb.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");P.querySelectorAll("[id~\x3d"+Pa+"-]").length||tb.push("~\x3d");P.querySelectorAll(":checked").length||tb.push(":checked");P.querySelectorAll("a#"+Pa+"+*").length||tb.push(".#.+[+~]")}),x(function(P){P.innerHTML="\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e";
var W=Sa.createElement("input");W.setAttribute("type","hidden");P.appendChild(W).setAttribute("name","D");P.querySelectorAll("[name\x3dd]").length&&tb.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");2!==P.querySelectorAll(":enabled").length&&tb.push(":enabled",":disabled");lb.appendChild(P).disabled=!0;2!==P.querySelectorAll(":disabled").length&&tb.push(":enabled",":disabled");P.querySelectorAll("*,:x");tb.push(",.*:")})),(Ba.matchesSelector=bd.test(Lb=lb.matches||lb.webkitMatchesSelector||lb.mozMatchesSelector||
lb.oMatchesSelector||lb.msMatchesSelector))&&x(function(P){Ba.disconnectedMatch=Lb.call(P,"*");Lb.call(P,"[s!\x3d'']:x");Xb.push("!\x3d",":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}),tb=
tb.length&&new RegExp(tb.join("|")),Xb=Xb.length&&new RegExp(Xb.join("|")),G=bd.test(lb.compareDocumentPosition),gb=G||bd.test(lb.contains)?function(P,W){var la=9===P.nodeType?P.documentElement:P;W=W&&W.parentNode;return P===W||!(!W||1!==W.nodeType||!(la.contains?la.contains(W):P.compareDocumentPosition&&16&P.compareDocumentPosition(W)))}:function(P,W){if(W)for(;W=W.parentNode;)if(W===P)return!0;return!1},sd=G?function(P,W){if(P===W)return dc=!0,0;var la=!P.compareDocumentPosition-!W.compareDocumentPosition;
return la||(1&(la=(P.ownerDocument||P)===(W.ownerDocument||W)?P.compareDocumentPosition(W):1)||!Ba.sortDetached&&W.compareDocumentPosition(P)===la?P===Sa||P.ownerDocument===wb&&gb(wb,P)?-1:W===Sa||W.ownerDocument===wb&&gb(wb,W)?1:cc?Lc(cc,P)-Lc(cc,W):0:4&la?-1:1)}:function(P,W){if(P===W)return dc=!0,0;var la=0,ia=P.parentNode,Ea=W.parentNode,ja=[P],Ga=[W];if(!ia||!Ea)return P===Sa?-1:W===Sa?1:ia?-1:Ea?1:cc?Lc(cc,P)-Lc(cc,W):0;if(ia===Ea)return C(P,W);for(;P=P.parentNode;)ja.unshift(P);for(P=W;P=P.parentNode;)Ga.unshift(P);
for(;ja[la]===Ga[la];)la++;return la?C(ja[la],Ga[la]):ja[la]===wb?-1:Ga[la]===wb?1:0}),Sa},m.matches=function(B,G){return m(B,null,null,G)},m.matchesSelector=function(B,G){if((B.ownerDocument||B)!==Sa&&ac(B),!(!Ba.matchesSelector||!sb||kd[G+" "]||Xb&&Xb.test(G)||tb&&tb.test(G)))try{var O=Lb.call(B,G);if(O||Ba.disconnectedMatch||B.document&&11!==B.document.nodeType)return O}catch(P){kd(G,!0)}return 0<m(G,Sa,null,[B]).length},m.contains=function(B,G){return(B.ownerDocument||B)!==Sa&&ac(B),gb(B,G)},
m.attr=function(B,G){(B.ownerDocument||B)!==Sa&&ac(B);var O=La.attrHandle[G.toLowerCase()];O=O&&Ld.call(La.attrHandle,G.toLowerCase())?O(B,G,!sb):void 0;return void 0!==O?O:Ba.attributes||!sb?B.getAttribute(G):(O=B.getAttributeNode(G))&&O.specified?O.value:null},m.escape=function(B){return(B+"").replace(xd,yd)},m.error=function(B){throw Error("Syntax error, unrecognized expression: "+B);},m.uniqueSort=function(B){var G,O=[],P=0,W=0;if(dc=!Ba.detectDuplicates,cc=!Ba.sortStable&&B.slice(0),B.sort(sd),
dc){for(;G=B[W++];)G===B[W]&&(P=O.push(W));for(;P--;)B.splice(O[P],1)}return cc=null,B},Wa=m.getText=function(B){var G,O="",P=0;if(G=B.nodeType)if(1===G||9===G||11===G){if("string"==typeof B.textContent)return B.textContent;for(B=B.firstChild;B;B=B.nextSibling)O+=Wa(B)}else{if(3===G||4===G)return B.nodeValue}else for(;G=B[P++];)O+=Wa(G);return O},(La=m.selectors={cacheLength:50,createPseudo:v,match:nd,attrHandle:{},find:{},relative:{"\x3e":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",
first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(B){return B[1]=B[1].replace(Ac,Bc),B[3]=(B[3]||B[4]||B[5]||"").replace(Ac,Bc),"~\x3d"===B[2]&&(B[3]=" "+B[3]+" "),B.slice(0,4)},CHILD:function(B){return B[1]=B[1].toLowerCase(),"nth"===B[1].slice(0,3)?(B[3]||m.error(B[0]),B[4]=+(B[4]?B[5]+(B[6]||1):2*("even"===B[3]||"odd"===B[3])),B[5]=+(B[7]+B[8]||"odd"===B[3])):B[3]&&m.error(B[0]),B},PSEUDO:function(B){var G,O=!B[6]&&B[2];return nd.CHILD.test(B[0])?null:(B[3]?B[2]=B[4]||B[5]||"":O&&
Rd.test(O)&&(G=Fc(O,!0))&&(G=O.indexOf(")",O.length-G)-O.length)&&(B[0]=B[0].slice(0,G),B[2]=O.slice(0,G)),B.slice(0,3))}},filter:{TAG:function(B){var G=B.replace(Ac,Bc).toLowerCase();return"*"===B?function(){return!0}:function(O){return O.nodeName&&O.nodeName.toLowerCase()===G}},CLASS:function(B){var G=Mc[B+" "];return G||(G=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+B+"([\\x20\\t\\r\\n\\f]|$)"),Mc(B,function(O){return G.test("string"==typeof O.className&&O.className||"undefined"!=typeof O.getAttribute&&
O.getAttribute("class")||"")}))},ATTR:function(B,G,O){return function(P){P=m.attr(P,B);return null==P?"!\x3d"===G:!G||(P+="","\x3d"===G?P===O:"!\x3d"===G?P!==O:"^\x3d"===G?O&&0===P.indexOf(O):"*\x3d"===G?O&&-1<P.indexOf(O):"$\x3d"===G?O&&P.slice(-O.length)===O:"~\x3d"===G?-1<(" "+P.replace(Od," ")+" ").indexOf(O):"|\x3d"===G&&(P===O||P.slice(0,O.length+1)===O+"-"))}},CHILD:function(B,G,O,P,W){var la="nth"!==B.slice(0,3),ia="last"!==B.slice(-4),Ea="of-type"===G;return 1===P&&0===W?function(ja){return!!ja.parentNode}:
function(ja,Ga,Va){var xb,ub,Qa,bb;Ga=la!==ia?"nextSibling":"previousSibling";var fb=ja.parentNode,oc=Ea&&ja.nodeName.toLowerCase(),Nb=!Va&&!Ea,Ib=!1;if(fb){if(la){for(;Ga;){for(Qa=ja;Qa=Qa[Ga];)if(Ea?Qa.nodeName.toLowerCase()===oc:1===Qa.nodeType)return!1;var yb=Ga="only"===B&&!yb&&"nextSibling"}return!0}if(yb=[ia?fb.firstChild:fb.lastChild],ia&&Nb)for(Ib=(bb=(xb=(Va=(ub=(Qa=fb)[Pa]||(Qa[Pa]={}))[Qa.uniqueID]||(ub[Qa.uniqueID]={}))[B]||[])[0]===jb&&xb[1])&&xb[2],Qa=bb&&fb.childNodes[bb];Qa=++bb&&
Qa&&Qa[Ga]||(Ib=bb=0)||yb.pop();){if(1===Qa.nodeType&&++Ib&&Qa===ja){Va[B]=[jb,bb,Ib];break}}else if(Nb&&(Ib=bb=(xb=((ub=(Qa=ja)[Pa]||(Qa[Pa]={}))[Qa.uniqueID]||(ub[Qa.uniqueID]={}))[B]||[])[0]===jb&&xb[1]),!1===Ib)for(;(Qa=++bb&&Qa&&Qa[Ga]||(Ib=bb=0)||yb.pop())&&((Ea?Qa.nodeName.toLowerCase()!==oc:1!==Qa.nodeType)||!++Ib||(Nb&&((Va=(ub=Qa[Pa]||(Qa[Pa]={}))[Qa.uniqueID]||(ub[Qa.uniqueID]={}))[B]=[jb,Ib]),Qa!==ja)););return(Ib-=W)===P||0==Ib%P&&0<=Ib/P}}},PSEUDO:function(B,G){var O,P=La.pseudos[B]||
La.setFilters[B.toLowerCase()]||m.error("unsupported pseudo: "+B);return P[Pa]?P(G):1<P.length?(O=[B,B,"",G],La.setFilters.hasOwnProperty(B.toLowerCase())?v(function(W,la){for(var ia,Ea=P(W,G),ja=Ea.length;ja--;)W[ia=Lc(W,Ea[ja])]=!(la[ia]=Ea[ja])}):function(W){return P(W,0,O)}):P}},pseudos:{not:v(function(B){var G=[],O=[],P=ad(B.replace(ld,"$1"));return P[Pa]?v(function(W,la,ia,Ea){var ja;ia=P(W,null,Ea,[]);for(Ea=W.length;Ea--;)(ja=ia[Ea])&&(W[Ea]=!(la[Ea]=ja))}):function(W,la,ia){return G[0]=W,
P(G,null,ia,O),G[0]=null,!O.pop()}}),has:v(function(B){return function(G){return 0<m(B,G).length}}),contains:v(function(B){return B=B.replace(Ac,Bc),function(G){return-1<(G.textContent||Wa(G)).indexOf(B)}}),lang:v(function(B){return Sd.test(B||"")||m.error("unsupported lang: "+B),B=B.replace(Ac,Bc).toLowerCase(),function(G){var O;do if(O=sb?G.lang:G.getAttribute("xml:lang")||G.getAttribute("lang"))return(O=O.toLowerCase())===B||0===O.indexOf(B+"-");while((G=G.parentNode)&&1===G.nodeType);return!1}}),
target:function(B){var G=d.location&&d.location.hash;return G&&G.slice(1)===B.id},root:function(B){return B===lb},focus:function(B){return B===Sa.activeElement&&(!Sa.hasFocus||Sa.hasFocus())&&!!(B.type||B.href||~B.tabIndex)},enabled:S(!1),disabled:S(!0),checked:function(B){var G=B.nodeName.toLowerCase();return"input"===G&&!!B.checked||"option"===G&&!!B.selected},selected:function(B){return B.parentNode&&B.parentNode.selectedIndex,!0===B.selected},empty:function(B){for(B=B.firstChild;B;B=B.nextSibling)if(6>
B.nodeType)return!1;return!0},parent:function(B){return!La.pseudos.empty(B)},header:function(B){return Vd.test(B.nodeName)},input:function(B){return Ud.test(B.nodeName)},button:function(B){var G=B.nodeName.toLowerCase();return"input"===G&&"button"===B.type||"button"===G},text:function(B){var G;return"input"===B.nodeName.toLowerCase()&&"text"===B.type&&(null==(G=B.getAttribute("type"))||"text"===G.toLowerCase())},first:Y(function(){return[0]}),last:Y(function(B,G){return[G-1]}),eq:Y(function(B,G,O){return[0>
O?O+G:O]}),even:Y(function(B,G){for(var O=0;O<G;O+=2)B.push(O);return B}),odd:Y(function(B,G){for(var O=1;O<G;O+=2)B.push(O);return B}),lt:Y(function(B,G,O){for(G=0>O?O+G:G<O?G:O;0<=--G;)B.push(G);return B}),gt:Y(function(B,G,O){for(O=0>O?O+G:O;++O<G;)B.push(O);return B})}}).pseudos.nth=La.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})La.pseudos[bc]=F(bc);for(bc in{submit:!0,reset:!0})La.pseudos[bc]=K(bc);return pa.prototype=La.filters=La.pseudos,La.setFilters=new pa,Fc=m.tokenize=
function(B,G){var O,P,W,la,ia,Ea;if(ia=md[B+" "])return G?0:ia.slice(0);ia=B;var ja=[];for(Ea=La.preFilter;ia;){for(la in O&&!(P=Pd.exec(ia))||(P&&(ia=ia.slice(P[0].length)||ia),ja.push(W=[])),O=!1,(P=Qd.exec(ia))&&(O=P.shift(),W.push({value:O,type:P[0].replace(ld," ")}),ia=ia.slice(O.length)),La.filter)!(P=nd[la].exec(ia))||Ea[la]&&!(P=Ea[la](P))||(O=P.shift(),W.push({value:O,type:la,matches:P}),ia=ia.slice(O.length));if(!O)break}return G?ia.length:ia?m.error(B):md(B,ja).slice(0)},ad=m.compile=function(B,
G){var O,P,W,la,ia=[],Ea=[],ja=zd[B+" "];if(!ja){G||(G=Fc(B));for(O=G.length;O--;)(ja=Kb(G[O]))[Pa]?ia.push(ja):Ea.push(ja);(ja=zd(B,(P=0<ia.length,W=0<Ea.length,la=function(Ga,Va,xb,ub,Qa){var bb,fb,oc=0,Nb="0",Ib=Ga&&[],yb=[],Cd=Gc,Dd=Ga||W&&La.find.TAG("*",Qa),Ed=jb+=null==Cd?1:Math.random()||.1,Wd=Dd.length;for(Qa&&(Gc=Va===Sa||Va||Qa);Nb!==Wd&&null!=(bb=Dd[Nb]);Nb++){if(W&&bb){var td=0;for(Va||bb.ownerDocument===Sa||(ac(bb),xb=!sb);fb=Ea[td++];)if(fb(bb,Va||Sa,xb)){ub.push(bb);break}Qa&&(jb=
Ed)}P&&((bb=!fb&&bb)&&oc--,Ga&&Ib.push(bb))}if(oc+=Nb,P&&Nb!==oc){for(td=0;fb=ia[td++];)fb(Ib,yb,Va,xb);if(Ga){if(0<oc)for(;Nb--;)Ib[Nb]||yb[Nb]||(yb[Nb]=Md.call(ub));yb=kb(yb)}Ec.apply(ub,yb);Qa&&!Ga&&0<yb.length&&1<oc+ia.length&&m.uniqueSort(ub)}return Qa&&(jb=Ed,Gc=Cd),Ib},P?v(la):la))).selector=B}return ja},uc=m.select=function(B,G,O,P){var W,la,ia,Ea,ja,Ga="function"==typeof B&&B,Va=!P&&Fc(B=Ga.selector||B);if(O=O||[],1===Va.length){if(2<(la=Va[0]=Va[0].slice(0)).length&&"ID"===(ia=la[0]).type&&
9===G.nodeType&&sb&&La.relative[la[1].type]){if(!(G=(La.find.ID(ia.matches[0].replace(Ac,Bc),G)||[])[0]))return O;Ga&&(G=G.parentNode);B=B.slice(la.shift().value.length)}for(W=nd.needsContext.test(B)?0:la.length;W--&&(ia=la[W],!La.relative[Ea=ia.type]);)if((ja=La.find[Ea])&&(P=ja(ia.matches[0].replace(Ac,Bc),rd.test(la[0].type)&&R(G.parentNode)||G))){if(la.splice(W,1),!(B=P.length&&Aa(la)))return Ec.apply(O,P),O;break}}return(Ga||ad(B,Va))(P,G,!sb,O,!G||rd.test(B)&&R(G.parentNode)||G),O},Ba.sortStable=
Pa.split("").sort(sd).join("")===Pa,Ba.detectDuplicates=!!dc,ac(),Ba.sortDetached=x(function(B){return 1&B.compareDocumentPosition(Sa.createElement("fieldset"))}),x(function(B){return B.innerHTML="\x3ca href\x3d'#'\x3e\x3c/a\x3e","#"===B.firstChild.getAttribute("href")})||A("type|href|height|width",function(B,G,O){if(!O)return B.getAttribute(G,"type"===G.toLowerCase()?1:2)}),Ba.attributes&&x(function(B){return B.innerHTML="\x3cinput/\x3e",B.firstChild.setAttribute("value",""),""===B.firstChild.getAttribute("value")})||
A("value",function(B,G,O){if(!O&&"input"===B.nodeName.toLowerCase())return B.defaultValue}),x(function(B){return null==B.getAttribute("disabled")})||A("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(B,G,O){var P;if(!O)return!0===B[G]?G.toLowerCase():(P=B.getAttributeNode(G))&&P.specified?P.value:null}),m}(a);u.find=zb;u.expr=zb.selectors;u.expr[":"]=u.expr.pseudos;u.uniqueSort=u.unique=zb.uniqueSort;u.text=zb.getText;
u.isXMLDoc=zb.isXML;u.contains=zb.contains;u.escapeSelector=zb.escape;var gc=function(d,m,q){for(var v=[],x=void 0!==q;(d=d[m])&&9!==d.nodeType;)if(1===d.nodeType){if(x&&u(d).is(q))break;v.push(d)}return v},Oc=function(d,m){for(var q=[];d;d=d.nextSibling)1===d.nodeType&&d!==m&&q.push(d);return q},Pc=u.expr.match.needsContext,Qc=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;u.filter=function(d,m,q){var v=m[0];return q&&(d=":not("+d+")"),1===m.length&&1===v.nodeType?u.find.matchesSelector(v,
d)?[v]:[]:u.find.matches(d,u.grep(m,function(x){return 1===x.nodeType}))};u.fn.extend({find:function(d){var m,q=this.length,v=this;if("string"!=typeof d)return this.pushStack(u(d).filter(function(){for(m=0;m<q;m++)if(u.contains(v[m],this))return!0}));var x=this.pushStack([]);for(m=0;m<q;m++)u.find(d,v[m],x);return 1<q?u.uniqueSort(x):x},filter:function(d){return this.pushStack(l(this,d||[],!1))},not:function(d){return this.pushStack(l(this,d||[],!0))},is:function(d){return!!l(this,"string"==typeof d&&
Pc.test(d)?u(d):d||[],!1).length}});var Vb=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(u.fn.init=function(d,m,q){var v,x;if(!d)return this;if(q=q||eb,"string"==typeof d){if(!(v="\x3c"===d[0]&&"\x3e"===d[d.length-1]&&3<=d.length?[null,d,null]:Vb.exec(d))||!v[1]&&m)return!m||m.jquery?(m||q).find(d):this.constructor(m).find(d);if(v[1]){if(m=m instanceof u?m[0]:m,u.merge(this,u.parseHTML(v[1],m&&m.nodeType?m.ownerDocument||m:Na,!0)),Qc.test(v[1])&&u.isPlainObject(m))for(v in m)Ka(this[v])?this[v](m[v]):this.attr(v,
m[v]);return this}return(x=Na.getElementById(v[2]))&&(this[0]=x,this.length=1),this}return d.nodeType?(this[0]=d,this.length=1,this):Ka(d)?void 0!==q.ready?q.ready(d):d(u):u.makeArray(d,this)}).prototype=u.fn;var eb=u(Na);var Fb=/^(?:parents|prev(?:Until|All))/,Da={children:!0,contents:!0,next:!0,prev:!0};u.fn.extend({has:function(d){var m=u(d,this),q=m.length;return this.filter(function(){for(var v=0;v<q;v++)if(u.contains(this,m[v]))return!0})},closest:function(d,m){var q,v=0,x=this.length,A=[],
C="string"!=typeof d&&u(d);if(!Pc.test(d))for(;v<x;v++)for(q=this[v];q&&q!==m;q=q.parentNode)if(11>q.nodeType&&(C?-1<C.index(q):1===q.nodeType&&u.find.matchesSelector(q,d))){A.push(q);break}return this.pushStack(1<A.length?u.uniqueSort(A):A)},index:function(d){return d?"string"==typeof d?Zb.call(u(d),this[0]):Zb.call(this,d.jquery?d[0]:d):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(d,m){return this.pushStack(u.uniqueSort(u.merge(this.get(),u(d,m))))},addBack:function(d){return this.add(null==
d?this.prevObject:this.prevObject.filter(d))}});u.each({parent:function(d){return(d=d.parentNode)&&11!==d.nodeType?d:null},parents:function(d){return gc(d,"parentNode")},parentsUntil:function(d,m,q){return gc(d,"parentNode",q)},next:function(d){return e(d,"nextSibling")},prev:function(d){return e(d,"previousSibling")},nextAll:function(d){return gc(d,"nextSibling")},prevAll:function(d){return gc(d,"previousSibling")},nextUntil:function(d,m,q){return gc(d,"nextSibling",q)},prevUntil:function(d,m,q){return gc(d,
"previousSibling",q)},siblings:function(d){return Oc((d.parentNode||{}).firstChild,d)},children:function(d){return Oc(d.firstChild)},contents:function(d){return"undefined"!=typeof d.contentDocument?d.contentDocument:(k(d,"template")&&(d=d.content||d),u.merge([],d.childNodes))}},function(d,m){u.fn[d]=function(q,v){var x=u.map(this,m,q);return"Until"!==d.slice(-5)&&(v=q),v&&"string"==typeof v&&(x=u.filter(v,x)),1<this.length&&(Da[d]||u.uniqueSort(x),Fb.test(d)&&x.reverse()),this.pushStack(x)}});var Cb=
/[^\x20\t\r\n\f]+/g;u.Callbacks=function(d){var m,q;d="string"==typeof d?(m=d,q={},u.each(m.match(Cb)||[],function(pa,Aa){q[Aa]=!0}),q):u.extend({},d);var v,x,A,C,F=[],K=[],S=-1,Y=function(){C=C||d.once;for(A=v=!0;K.length;S=-1)for(x=K.shift();++S<F.length;)!1===F[S].apply(x[0],x[1])&&d.stopOnFalse&&(S=F.length,x=!1);d.memory||(x=!1);v=!1;C&&(F=x?[]:"")},R={add:function(){return F&&(x&&!v&&(S=F.length-1,K.push(x)),function ya(Aa){u.each(Aa,function(Ua,kb){Ka(kb)?d.unique&&R.has(kb)||F.push(kb):kb&&
kb.length&&"string"!==f(kb)&&ya(kb)})}(arguments),x&&!v&&Y()),this},remove:function(){return u.each(arguments,function(pa,Aa){for(var ya;-1<(ya=u.inArray(Aa,F,ya));)F.splice(ya,1),ya<=S&&S--}),this},has:function(pa){return pa?-1<u.inArray(pa,F):0<F.length},empty:function(){return F&&(F=[]),this},disable:function(){return C=K=[],F=x="",this},disabled:function(){return!F},lock:function(){return C=K=[],x||v||(F=x=""),this},locked:function(){return!!C},fireWith:function(pa,Aa){return C||(Aa=[pa,(Aa=Aa||
[]).slice?Aa.slice():Aa],K.push(Aa),v||Y()),this},fire:function(){return R.fireWith(this,arguments),this},fired:function(){return!!A}};return R};u.extend({Deferred:function(d){var m=[["notify","progress",u.Callbacks("memory"),u.Callbacks("memory"),2],["resolve","done",u.Callbacks("once memory"),u.Callbacks("once memory"),0,"resolved"],["reject","fail",u.Callbacks("once memory"),u.Callbacks("once memory"),1,"rejected"]],q="pending",v={state:function(){return q},always:function(){return x.done(arguments).fail(arguments),
this},"catch":function(A){return v.then(null,A)},pipe:function(){var A=arguments;return u.Deferred(function(C){u.each(m,function(F,K){var S=Ka(A[K[4]])&&A[K[4]];x[K[1]](function(){var Y=S&&S.apply(this,arguments);Y&&Ka(Y.promise)?Y.promise().progress(C.notify).done(C.resolve).fail(C.reject):C[K[0]+"With"](this,S?[Y]:arguments)})});A=null}).promise()},then:function(A,C,F){function K(Y,R,pa,Aa){return function(){var ya=this,Ua=arguments,kb=function(){var Kb;if(!(Y<S)){if((Kb=pa.apply(ya,Ua))===R.promise())throw new TypeError("Thenable self-resolution");
var bc=Kb&&("object"==typeof Kb||"function"==typeof Kb)&&Kb.then;Ka(bc)?Aa?bc.call(Kb,K(S,R,b,Aa),K(S,R,g,Aa)):(S++,bc.call(Kb,K(S,R,b,Aa),K(S,R,g,Aa),K(S,R,b,R.notifyWith))):(pa!==b&&(ya=void 0,Ua=[Kb]),(Aa||R.resolveWith)(ya,Ua))}},nc=Aa?kb:function(){try{kb()}catch(Kb){u.Deferred.exceptionHook&&u.Deferred.exceptionHook(Kb,nc.stackTrace),S<=Y+1&&(pa!==g&&(ya=void 0,Ua=[Kb]),R.rejectWith(ya,Ua))}};Y?nc():(u.Deferred.getStackHook&&(nc.stackTrace=u.Deferred.getStackHook()),a.setTimeout(nc))}}var S=
0;return u.Deferred(function(Y){m[0][3].add(K(0,Y,Ka(F)?F:b,Y.notifyWith));m[1][3].add(K(0,Y,Ka(A)?A:b));m[2][3].add(K(0,Y,Ka(C)?C:g))}).promise()},promise:function(A){return null!=A?u.extend(A,v):v}},x={};return u.each(m,function(A,C){var F=C[2],K=C[5];v[C[1]]=F.add;K&&F.add(function(){q=K},m[3-A][2].disable,m[3-A][3].disable,m[0][2].lock,m[0][3].lock);F.add(C[3].fire);x[C[0]]=function(){return x[C[0]+"With"](this===x?void 0:this,arguments),this};x[C[0]+"With"]=F.fireWith}),v.promise(x),d&&d.call(x,
x),x},when:function(d){var m=arguments.length,q=m,v=Array(q),x=Hb.call(arguments),A=u.Deferred(),C=function(F){return function(K){v[F]=this;x[F]=1<arguments.length?Hb.call(arguments):K;--m||A.resolveWith(v,x)}};if(1>=m&&(p(d,A.done(C(q)).resolve,A.reject,!m),"pending"===A.state()||Ka(x[q]&&x[q].then)))return A.then();for(;q--;)p(x[q],C(q),A.reject);return A.promise()}});var L=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;u.Deferred.exceptionHook=function(d,m){a.console&&a.console.warn&&
d&&L.test(d.name)&&a.console.warn("jQuery.Deferred exception: "+d.message,d.stack,m)};u.readyException=function(d){a.setTimeout(function(){throw d;})};var da=u.Deferred();u.fn.ready=function(d){return da.then(d)["catch"](function(m){u.readyException(m)}),this};u.extend({isReady:!1,readyWait:1,ready:function(d){(!0===d?--u.readyWait:u.isReady)||(u.isReady=!0)!==d&&0<--u.readyWait||da.resolveWith(Na,[u])}});u.ready.then=da.then;"complete"===Na.readyState||"loading"!==Na.readyState&&!Na.documentElement.doScroll?
a.setTimeout(u.ready):(Na.addEventListener("DOMContentLoaded",r),a.addEventListener("load",r));var aa=function(d,m,q,v,x,A,C){var F=0,K=d.length,S=null==q;if("object"===f(q))for(F in x=!0,q)aa(d,m,F,q[F],!0,A,C);else if(void 0!==v&&(x=!0,Ka(v)||(C=!0),S&&(C?(m.call(d,v),m=null):(S=m,m=function(Y,R,pa){return S.call(u(Y),pa)})),m))for(;F<K;F++)m(d[F],q,C?v:v.call(d[F],F,m(d[F],q)));return x?d:S?m.call(d):K?m(d[0],q):A},ha=/^-ms-/,sa=/-([a-z])/g,ka=function(d){return 1===d.nodeType||9===d.nodeType||
!+d.nodeType};z.uid=1;z.prototype={cache:function(d){var m=d[this.expando];return m||(m={},ka(d)&&(d.nodeType?d[this.expando]=m:Object.defineProperty(d,this.expando,{value:m,configurable:!0}))),m},set:function(d,m,q){var v;d=this.cache(d);if("string"==typeof m)d[w(m)]=q;else for(v in m)d[w(v)]=m[v];return d},get:function(d,m){return void 0===m?this.cache(d):d[this.expando]&&d[this.expando][w(m)]},access:function(d,m,q){return void 0===m||m&&"string"==typeof m&&void 0===q?this.get(d,m):(this.set(d,
m,q),void 0!==q?q:m)},remove:function(d,m){var q=d[this.expando];if(void 0!==q){if(void 0!==m){var v=(m=Array.isArray(m)?m.map(w):(m=w(m))in q?[m]:m.match(Cb)||[]).length;for(;v--;)delete q[m[v]]}(void 0===m||u.isEmptyObject(q))&&(d.nodeType?d[this.expando]=void 0:delete d[this.expando])}},hasData:function(d){d=d[this.expando];return void 0!==d&&!u.isEmptyObject(d)}};var ba=new z,Ca=new z,hb=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Jb=/[A-Z]/g;u.extend({hasData:function(d){return Ca.hasData(d)||ba.hasData(d)},
data:function(d,m,q){return Ca.access(d,m,q)},removeData:function(d,m){Ca.remove(d,m)},_data:function(d,m,q){return ba.access(d,m,q)},_removeData:function(d,m){ba.remove(d,m)}});u.fn.extend({data:function(d,m){var q,v,x,A=this[0],C=A&&A.attributes;if(void 0===d){if(this.length&&(x=Ca.get(A),1===A.nodeType&&!ba.get(A,"hasDataAttrs"))){for(q=C.length;q--;)C[q]&&0===(v=C[q].name).indexOf("data-")&&(v=w(v.slice(5)),D(A,v,x[v]));ba.set(A,"hasDataAttrs",!0)}return x}return"object"==typeof d?this.each(function(){Ca.set(this,
d)}):aa(this,function(F){var K;if(A&&void 0===F)return void 0!==(K=Ca.get(A,d))?K:void 0!==(K=D(A,d))?K:void 0;this.each(function(){Ca.set(this,d,F)})},null,m,1<arguments.length,null,!0)},removeData:function(d){return this.each(function(){Ca.remove(this,d)})}});u.extend({queue:function(d,m,q){var v;if(d)return m=(m||"fx")+"queue",v=ba.get(d,m),q&&(!v||Array.isArray(q)?v=ba.access(d,m,u.makeArray(q)):v.push(q)),v||[]},dequeue:function(d,m){m=m||"fx";var q=u.queue(d,m),v=q.length,x=q.shift(),A=u._queueHooks(d,
m);"inprogress"===x&&(x=q.shift(),v--);x&&("fx"===m&&q.unshift("inprogress"),delete A.stop,x.call(d,function(){u.dequeue(d,m)},A));!v&&A&&A.empty.fire()},_queueHooks:function(d,m){var q=m+"queueHooks";return ba.get(d,q)||ba.access(d,q,{empty:u.Callbacks("once memory").add(function(){ba.remove(d,[m+"queue",q])})})}});u.fn.extend({queue:function(d,m){var q=2;return"string"!=typeof d&&(m=d,d="fx",q--),arguments.length<q?u.queue(this[0],d):void 0===m?this:this.each(function(){var v=u.queue(this,d,m);
u._queueHooks(this,d);"fx"===d&&"inprogress"!==v[0]&&u.dequeue(this,d)})},dequeue:function(d){return this.each(function(){u.dequeue(this,d)})},clearQueue:function(d){return this.queue(d||"fx",[])},promise:function(d,m){var q,v=1,x=u.Deferred(),A=this,C=this.length,F=function(){--v||x.resolveWith(A,[A])};"string"!=typeof d&&(m=d,d=void 0);for(d=d||"fx";C--;)(q=ba.get(A[C],d+"queueHooks"))&&q.empty&&(v++,q.empty.add(F));return F(),x.promise(m)}});var Gb=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
ic=new RegExp("^(?:([+-])\x3d|)("+Gb+")([a-z%]*)$","i"),rb=["Top","Right","Bottom","Left"],ec=Na.documentElement,Rb=function(d){return u.contains(d.ownerDocument,d)},Pb={composed:!0};ec.getRootNode&&(Rb=function(d){return u.contains(d.ownerDocument,d)||d.getRootNode(Pb)===d.ownerDocument});var rc=function(d,m){return"none"===(d=m||d).style.display||""===d.style.display&&Rb(d)&&"none"===u.css(d,"display")},Wb=function(d,m,q,v){var x,A={};for(x in m)A[x]=d.style[x],d.style[x]=m[x];for(x in q=q.apply(d,
v||[]),m)d.style[x]=A[x];return q},jc={};u.fn.extend({show:function(){return y(this,!0)},hide:function(){return y(this)},toggle:function(d){return"boolean"==typeof d?d?this.show():this.hide():this.each(function(){rc(this)?u(this).show():u(this).hide()})}});var Xa=/^(?:checkbox|radio)$/i,$a=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Jc=/^$|^module$|\/(?:java|ecma)script/i,Qb={option:[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"],thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ccolgroup\x3e",
"\x3c/colgroup\x3e\x3c/table\x3e"],tr:[2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],_default:[0,"",""]};Qb.optgroup=Qb.option;Qb.tbody=Qb.tfoot=Qb.colgroup=Qb.caption=Qb.thead;Qb.th=Qb.td;var Rc,id=/<|&#?\w+;/;var Sc=Na.createDocumentFragment().appendChild(Na.createElement("div"));(Rc=Na.createElement("input")).setAttribute("type","radio");Rc.setAttribute("checked","checked");Rc.setAttribute("name",
"t");Sc.appendChild(Rc);ab.checkClone=Sc.cloneNode(!0).cloneNode(!0).lastChild.checked;Sc.innerHTML="\x3ctextarea\x3ex\x3c/textarea\x3e";ab.noCloneChecked=!!Sc.cloneNode(!0).lastChild.defaultValue;var Wc=/^key/,cd=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dd=/^([^.]*)(?:\.(.+)|)/;u.event={global:{},add:function(d,m,q,v,x){var A,C,F,K,S,Y,R,pa,Aa;if(S=ba.get(d))for(q.handler&&(q=(A=q).handler,x=A.selector),x&&u.find.matchesSelector(ec,x),q.guid||(q.guid=u.guid++),(K=S.events)||(K=S.events={}),
(C=S.handle)||(C=S.handle=function(Ua){return"undefined"!=typeof u&&u.event.triggered!==Ua.type?u.event.dispatch.apply(d,arguments):void 0}),S=(m=(m||"").match(Cb)||[""]).length;S--;){var ya=Aa=(F=dd.exec(m[S])||[])[1];F=(F[2]||"").split(".").sort();ya&&(R=u.event.special[ya]||{},ya=(x?R.delegateType:R.bindType)||ya,R=u.event.special[ya]||{},Y=u.extend({type:ya,origType:Aa,data:v,handler:q,guid:q.guid,selector:x,needsContext:x&&u.expr.match.needsContext.test(x),namespace:F.join(".")},A),(pa=K[ya])||
((pa=K[ya]=[]).delegateCount=0,R.setup&&!1!==R.setup.call(d,v,F,C)||d.addEventListener&&d.addEventListener(ya,C)),R.add&&(R.add.call(d,Y),Y.handler.guid||(Y.handler.guid=q.guid)),x?pa.splice(pa.delegateCount++,0,Y):pa.push(Y),u.event.global[ya]=!0)}},remove:function(d,m,q,v,x){var A,C,F,K,S,Y,R,pa,Aa=ba.hasData(d)&&ba.get(d);if(Aa&&(K=Aa.events)){for(S=(m=(m||"").match(Cb)||[""]).length;S--;)if(Y=pa=(F=dd.exec(m[S])||[])[1],R=(F[2]||"").split(".").sort(),Y){var ya=u.event.special[Y]||{};var Ua=K[Y=
(v?ya.delegateType:ya.bindType)||Y]||[];F=F[2]&&new RegExp("(^|\\.)"+R.join("\\.(?:.*\\.|)")+"(\\.|$)");for(C=A=Ua.length;A--;){var kb=Ua[A];!x&&pa!==kb.origType||q&&q.guid!==kb.guid||F&&!F.test(kb.namespace)||v&&v!==kb.selector&&("**"!==v||!kb.selector)||(Ua.splice(A,1),kb.selector&&Ua.delegateCount--,ya.remove&&ya.remove.call(d,kb))}C&&!Ua.length&&(ya.teardown&&!1!==ya.teardown.call(d,R,Aa.handle)||u.removeEvent(d,Y,Aa.handle),delete K[Y])}else for(Y in K)u.event.remove(d,Y+m[S],q,v,!0);u.isEmptyObject(K)&&
ba.remove(d,"handle events")}},dispatch:function(d){var m,q,v,x,A=u.event.fix(d),C=Array(arguments.length);var F=(ba.get(this,"events")||{})[A.type]||[];var K=u.event.special[A.type]||{};C[0]=A;for(m=1;m<arguments.length;m++)C[m]=arguments[m];if(A.delegateTarget=this,!K.preDispatch||!1!==K.preDispatch.call(this,A)){var S=u.event.handlers.call(this,A,F);for(m=0;(v=S[m++])&&!A.isPropagationStopped();)for(A.currentTarget=v.elem,F=0;(x=v.handlers[F++])&&!A.isImmediatePropagationStopped();)A.rnamespace&&
!1!==x.namespace&&!A.rnamespace.test(x.namespace)||(A.handleObj=x,A.data=x.data,void 0!==(q=((u.event.special[x.origType]||{}).handle||x.handler).apply(v.elem,C))&&!1===(A.result=q)&&(A.preventDefault(),A.stopPropagation()));return K.postDispatch&&K.postDispatch.call(this,A),A.result}},handlers:function(d,m){var q,v,x,A=[],C=m.delegateCount,F=d.target;if(C&&F.nodeType&&!("click"===d.type&&1<=d.button))for(;F!==this;F=F.parentNode||this)if(1===F.nodeType&&("click"!==d.type||!0!==F.disabled)){var K=
[];var S={};for(q=0;q<C;q++)void 0===S[x=(v=m[q]).selector+" "]&&(S[x]=v.needsContext?-1<u(x,this).index(F):u.find(x,this,null,[F]).length),S[x]&&K.push(v);K.length&&A.push({elem:F,handlers:K})}return F=this,C<m.length&&A.push({elem:F,handlers:m.slice(C)}),A},addProp:function(d,m){Object.defineProperty(u.Event.prototype,d,{enumerable:!0,configurable:!0,get:Ka(m)?function(){if(this.originalEvent)return m(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[d]},set:function(q){Object.defineProperty(this,
d,{enumerable:!0,configurable:!0,writable:!0,value:q})}})},fix:function(d){return d[u.expando]?d:new u.Event(d)},special:{load:{noBubble:!0},click:{setup:function(d){d=this||d;return Xa.test(d.type)&&d.click&&k(d,"input")&&db(d,"click",ea),!1},trigger:function(d){d=this||d;return Xa.test(d.type)&&d.click&&k(d,"input")&&db(d,"click"),!0},_default:function(d){d=d.target;return Xa.test(d.type)&&d.click&&k(d,"input")&&ba.get(d,"click")||k(d,"a")}},beforeunload:{postDispatch:function(d){void 0!==d.result&&
d.originalEvent&&(d.originalEvent.returnValue=d.result)}}}};u.removeEvent=function(d,m,q){d.removeEventListener&&d.removeEventListener(m,q)};u.Event=function(d,m){if(!(this instanceof u.Event))return new u.Event(d,m);d&&d.type?(this.originalEvent=d,this.type=d.type,this.isDefaultPrevented=d.defaultPrevented||void 0===d.defaultPrevented&&!1===d.returnValue?ea:va,this.target=d.target&&3===d.target.nodeType?d.target.parentNode:d.target,this.currentTarget=d.currentTarget,this.relatedTarget=d.relatedTarget):
this.type=d;m&&u.extend(this,m);this.timeStamp=d&&d.timeStamp||Date.now();this[u.expando]=!0};u.Event.prototype={constructor:u.Event,isDefaultPrevented:va,isPropagationStopped:va,isImmediatePropagationStopped:va,isSimulated:!1,preventDefault:function(){var d=this.originalEvent;this.isDefaultPrevented=ea;d&&!this.isSimulated&&d.preventDefault()},stopPropagation:function(){var d=this.originalEvent;this.isPropagationStopped=ea;d&&!this.isSimulated&&d.stopPropagation()},stopImmediatePropagation:function(){var d=
this.originalEvent;this.isImmediatePropagationStopped=ea;d&&!this.isSimulated&&d.stopImmediatePropagation();this.stopPropagation()}};u.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(d){var m=
d.button;return null==d.which&&Wc.test(d.type)?null!=d.charCode?d.charCode:d.keyCode:!d.which&&void 0!==m&&cd.test(d.type)?1&m?1:2&m?3:4&m?2:0:d.which}},u.event.addProp);u.each({focus:"focusin",blur:"focusout"},function(d,m){u.event.special[d]={setup:function(){return db(this,d,na),!1},trigger:function(){return db(this,d),!0},delegateType:m}});u.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(d,m){u.event.special[d]={delegateType:m,
bindType:m,handle:function(q){var v,x=q.relatedTarget,A=q.handleObj;return x&&(x===this||u.contains(this,x))||(q.type=A.origType,v=A.handler.apply(this,arguments),q.type=m),v}}});u.fn.extend({on:function(d,m,q,v){return cb(this,d,m,q,v)},one:function(d,m,q,v){return cb(this,d,m,q,v,1)},off:function(d,m,q){var v,x;if(d&&d.preventDefault&&d.handleObj)return v=d.handleObj,u(d.delegateTarget).off(v.namespace?v.origType+"."+v.namespace:v.origType,v.selector,v.handler),this;if("object"==typeof d){for(x in d)this.off(x,
m,d[x]);return this}return!1!==m&&"function"!=typeof m||(q=m,m=void 0),!1===q&&(q=va),this.each(function(){u.event.remove(this,d,q,m)})}});var od=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ed=/<script|<style|<link/i,xc=/checked\s*(?:[^=]|=\s*.checked.)/i,Yc=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;u.extend({htmlPrefilter:function(d){return d.replace(od,"\x3c$1\x3e\x3c/$2\x3e")},clone:function(d,m,q){var v,x,A,C=d.cloneNode(!0),F=Rb(d);if(!(ab.noCloneChecked||
1!==d.nodeType&&11!==d.nodeType||u.isXMLDoc(d))){var K=V(C);var S=0;for(v=(x=V(d)).length;S<v;S++){var Y=x[S];var R=K[S];void 0;"input"===(A=R.nodeName.toLowerCase())&&Xa.test(Y.type)?R.checked=Y.checked:"input"!==A&&"textarea"!==A||(R.defaultValue=Y.defaultValue)}}if(m)if(q)for(x=x||V(d),K=K||V(C),S=0,v=x.length;S<v;S++)M(x[S],K[S]);else M(d,C);return 0<(K=V(C,"script")).length&&ca(K,!F&&V(d,"script")),C},cleanData:function(d){for(var m,q,v,x=u.event.special,A=0;void 0!==(q=d[A]);A++)if(ka(q)){if(m=
q[ba.expando]){if(m.events)for(v in m.events)x[v]?u.event.remove(q,v):u.removeEvent(q,v,m.handle);q[ba.expando]=void 0}q[Ca.expando]&&(q[Ca.expando]=void 0)}}});u.fn.extend({detach:function(d){return N(this,d,!0)},remove:function(d){return N(this,d)},text:function(d){return aa(this,function(m){return void 0===m?u.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=m)})},null,d,arguments.length)},append:function(){return I(this,arguments,
function(d){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||wa(this,d).appendChild(d)})},prepend:function(){return I(this,arguments,function(d){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var m=wa(this,d);m.insertBefore(d,m.firstChild)}})},before:function(){return I(this,arguments,function(d){this.parentNode&&this.parentNode.insertBefore(d,this)})},after:function(){return I(this,arguments,function(d){this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling)})},empty:function(){for(var d,
m=0;null!=(d=this[m]);m++)1===d.nodeType&&(u.cleanData(V(d,!1)),d.textContent="");return this},clone:function(d,m){return d=null!=d&&d,m=null==m?d:m,this.map(function(){return u.clone(this,d,m)})},html:function(d){return aa(this,function(m){var q=this[0]||{},v=0,x=this.length;if(void 0===m&&1===q.nodeType)return q.innerHTML;if("string"==typeof m&&!ed.test(m)&&!Qb[($a.exec(m)||["",""])[1].toLowerCase()]){m=u.htmlPrefilter(m);try{for(;v<x;v++)1===(q=this[v]||{}).nodeType&&(u.cleanData(V(q,!1)),q.innerHTML=
m);q=0}catch(A){}}q&&this.empty().append(m)},null,d,arguments.length)},replaceWith:function(){var d=[];return I(this,arguments,function(m){var q=this.parentNode;0>u.inArray(this,d)&&(u.cleanData(V(this)),q&&q.replaceChild(m,this))},d)}});u.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,m){u.fn[d]=function(q){for(var v=[],x=u(q),A=x.length-1,C=0;C<=A;C++)q=C===A?this:this.clone(!0),u(x[C])[m](q),Kc.apply(v,q.get());return this.pushStack(v)}});
var $b=new RegExp("^("+Gb+")(?!px)[a-z%]+$","i"),Dc=function(d){var m=d.ownerDocument.defaultView;return m&&m.opener||(m=a),m.getComputedStyle(d)},jd=new RegExp(rb.join("|"),"i");!function(){function d(){if(F){C.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";F.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";ec.appendChild(C).appendChild(F);var K=a.getComputedStyle(F);
m="1%"!==K.top;A=12===Math.round(parseFloat(K.marginLeft));F.style.right="60%";x=36===Math.round(parseFloat(K.right));q=36===Math.round(parseFloat(K.width));F.style.position="absolute";v=12===Math.round(parseFloat(F.offsetWidth/3));ec.removeChild(C);F=null}}var m,q,v,x,A,C=Na.createElement("div"),F=Na.createElement("div");F.style&&(F.style.backgroundClip="content-box",F.cloneNode(!0).style.backgroundClip="",ab.clearCloneStyle="content-box"===F.style.backgroundClip,u.extend(ab,{boxSizingReliable:function(){return d(),
q},pixelBoxStyles:function(){return d(),x},pixelPosition:function(){return d(),m},reliableMarginLeft:function(){return d(),A},scrollboxSize:function(){return d(),v}}))}();var $c=["Webkit","Moz","ms"],Zc=Na.createElement("div").style,Sb={},Hc=/^(none|table(?!-c[ea]).+)/,Cc=/^--/,pd={position:"absolute",visibility:"hidden",display:"block"},fd={letterSpacing:"0",fontWeight:"400"};u.extend({cssHooks:{opacity:{get:function(d,m){if(m)return d=T(d,"opacity"),""===d?"1":d}}},cssNumber:{animationIterationCount:!0,
columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(d,m,q,v){if(d&&3!==d.nodeType&&8!==d.nodeType&&d.style){var x,A,C,F=w(m),K=Cc.test(m),S=d.style;if(K||(m=fa(F)),C=u.cssHooks[m]||u.cssHooks[F],void 0===q)return C&&"get"in C&&void 0!==(x=C.get(d,!1,v))?x:S[m];"string"===(A=typeof q)&&
(x=ic.exec(q))&&x[1]&&(q=E(d,m,x),A="number");null!=q&&q==q&&("number"!==A||K||(q+=x&&x[3]||(u.cssNumber[F]?"":"px")),ab.clearCloneStyle||""!==q||0!==m.indexOf("background")||(S[m]="inherit"),C&&"set"in C&&void 0===(q=C.set(d,q,v))||(K?S.setProperty(m,q):S[m]=q))}},css:function(d,m,q,v){var x,A,C,F=w(m);return Cc.test(m)||(m=fa(F)),(C=u.cssHooks[m]||u.cssHooks[F])&&"get"in C&&(x=C.get(d,!0,q)),void 0===x&&(x=T(d,m,v)),"normal"===x&&m in fd&&(x=fd[m]),""===q||q?(A=parseFloat(x),!0===q||isFinite(A)?
A||0:x):x}});u.each(["height","width"],function(d,m){u.cssHooks[m]={get:function(q,v,x){if(v)return!Hc.test(u.css(q,"display"))||q.getClientRects().length&&q.getBoundingClientRect().width?ob(q,m,x):Wb(q,pd,function(){return ob(q,m,x)})},set:function(q,v,x){var A,C=Dc(q),F=!ab.scrollboxSize()&&"absolute"===C.position,K=(F||x)&&"border-box"===u.css(q,"boxSizing",!1,C);x=x?ua(q,m,x,K,C):0;return K&&F&&(x-=Math.ceil(q["offset"+m[0].toUpperCase()+m.slice(1)]-parseFloat(C[m])-ua(q,m,"border",!1,C)-.5)),
x&&(A=ic.exec(v))&&"px"!==(A[3]||"px")&&(q.style[m]=v,v=u.css(q,m)),qa(0,v,x)}}});u.cssHooks.marginLeft=Z(ab.reliableMarginLeft,function(d,m){if(m)return(parseFloat(T(d,"marginLeft"))||d.getBoundingClientRect().left-Wb(d,{marginLeft:0},function(){return d.getBoundingClientRect().left}))+"px"});u.each({margin:"",padding:"",border:"Width"},function(d,m){u.cssHooks[d+m]={expand:function(q){var v=0,x={};for(q="string"==typeof q?q.split(" "):[q];4>v;v++)x[d+rb[v]+m]=q[v]||q[v-2]||q[0];return x}};"margin"!==
d&&(u.cssHooks[d+m].set=qa)});u.fn.extend({css:function(d,m){return aa(this,function(q,v,x){var A,C={},F=0;if(Array.isArray(v)){x=Dc(q);for(A=v.length;F<A;F++)C[v[F]]=u.css(q,v[F],!1,x);return C}return void 0!==x?u.style(q,v,x):u.css(q,v)},d,m,1<arguments.length)}});((u.Tween=Ha).prototype={constructor:Ha,init:function(d,m,q,v,x,A){this.elem=d;this.prop=q;this.easing=x||u.easing._default;this.options=m;this.start=this.now=this.cur();this.end=v;this.unit=A||(u.cssNumber[q]?"":"px")},cur:function(){var d=
Ha.propHooks[this.prop];return d&&d.get?d.get(this):Ha.propHooks._default.get(this)},run:function(d){var m,q=Ha.propHooks[this.prop];return this.options.duration?this.pos=m=u.easing[this.easing](d,this.options.duration*d,0,1,this.options.duration):this.pos=m=d,this.now=(this.end-this.start)*m+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),q&&q.set?q.set(this):Ha.propHooks._default.set(this),this}}).init.prototype=Ha.prototype;(Ha.propHooks={_default:{get:function(d){var m;
return 1!==d.elem.nodeType||null!=d.elem[d.prop]&&null==d.elem.style[d.prop]?d.elem[d.prop]:(m=u.css(d.elem,d.prop,""))&&"auto"!==m?m:0},set:function(d){u.fx.step[d.prop]?u.fx.step[d.prop](d):1!==d.elem.nodeType||!u.cssHooks[d.prop]&&null==d.elem.style[fa(d.prop)]?d.elem[d.prop]=d.now:u.style(d.elem,d.prop,d.now+d.unit)}}}).scrollTop=Ha.propHooks.scrollLeft={set:function(d){d.elem.nodeType&&d.elem.parentNode&&(d.elem[d.prop]=d.now)}};u.easing={linear:function(d){return d},swing:function(d){return.5-
Math.cos(d*Math.PI)/2},_default:"swing"};u.fx=Ha.prototype.init;u.fx.step={};var yc,kc,ud=/^(?:toggle|show|hide)$/,gd=/queueHooks$/;u.Animation=u.extend(Tb,{tweeners:{"*":[function(d,m){var q=this.createTween(d,m);return E(q.elem,d,ic.exec(m),q),q}]},tweener:function(d,m){Ka(d)?(m=d,d=["*"]):d=d.match(Cb);for(var q,v=0,x=d.length;v<x;v++)q=d[v],Tb.tweeners[q]=Tb.tweeners[q]||[],Tb.tweeners[q].unshift(m)},prefilters:[function(d,m,q){var v,x,A,C,F,K,S,Y="width"in m||"height"in m,R=this,pa={},Aa=d.style,
ya=d.nodeType&&rc(d),Ua=ba.get(d,"fxshow");for(v in q.queue||(null==(C=u._queueHooks(d,"fx")).unqueued&&(C.unqueued=0,F=C.empty.fire,C.empty.fire=function(){C.unqueued||F()}),C.unqueued++,R.always(function(){R.always(function(){C.unqueued--;u.queue(d,"fx").length||C.empty.fire()})})),m)if(x=m[v],ud.test(x)){if(delete m[v],A=A||"toggle"===x,x===(ya?"hide":"show")){if("show"!==x||!Ua||void 0===Ua[v])continue;ya=!0}pa[v]=Ua&&Ua[v]||u.style(d,v)}if((m=!u.isEmptyObject(m))||!u.isEmptyObject(pa))for(v in Y&&
1===d.nodeType&&(q.overflow=[Aa.overflow,Aa.overflowX,Aa.overflowY],null==(K=Ua&&Ua.display)&&(K=ba.get(d,"display")),"none"===(S=u.css(d,"display"))&&(K?S=K:(y([d],!0),K=d.style.display||K,S=u.css(d,"display"),y([d]))),("inline"===S||"inline-block"===S&&null!=K)&&"none"===u.css(d,"float")&&(m||(R.done(function(){Aa.display=K}),null==K&&(S=Aa.display,K="none"===S?"":S)),Aa.display="inline-block")),q.overflow&&(Aa.overflow="hidden",R.always(function(){Aa.overflow=q.overflow[0];Aa.overflowX=q.overflow[1];
Aa.overflowY=q.overflow[2]})),m=!1,pa)m||(Ua?"hidden"in Ua&&(ya=Ua.hidden):Ua=ba.access(d,"fxshow",{display:K}),A&&(Ua.hidden=!ya),ya&&y([d],!0),R.done(function(){for(v in ya||y([d]),ba.remove(d,"fxshow"),pa)u.style(d,v,pa[v])})),m=lc(ya?Ua[v]:0,v,R),v in Ua||(Ua[v]=m.start,ya&&(m.end=m.start,m.start=0))}],prefilter:function(d,m){m?Tb.prefilters.unshift(d):Tb.prefilters.push(d)}});u.speed=function(d,m,q){var v=d&&"object"==typeof d?u.extend({},d):{complete:q||!q&&m||Ka(d)&&d,duration:d,easing:q&&
m||m&&!Ka(m)&&m};return u.fx.off?v.duration=0:"number"!=typeof v.duration&&(v.duration in u.fx.speeds?v.duration=u.fx.speeds[v.duration]:v.duration=u.fx.speeds._default),null!=v.queue&&!0!==v.queue||(v.queue="fx"),v.old=v.complete,v.complete=function(){Ka(v.old)&&v.old.call(this);v.queue&&u.dequeue(this,v.queue)},v};u.fn.extend({fadeTo:function(d,m,q,v){return this.filter(rc).css("opacity",0).show().end().animate({opacity:m},d,q,v)},animate:function(d,m,q,v){var x=u.isEmptyObject(d),A=u.speed(m,q,
v);m=function(){var C=Tb(this,u.extend({},d),A);(x||ba.get(this,"finish"))&&C.stop(!0)};return m.finish=m,x||!1===A.queue?this.each(m):this.queue(A.queue,m)},stop:function(d,m,q){var v=function(x){var A=x.stop;delete x.stop;A(q)};return"string"!=typeof d&&(q=m,m=d,d=void 0),m&&!1!==d&&this.queue(d||"fx",[]),this.each(function(){var x=!0,A=null!=d&&d+"queueHooks",C=u.timers,F=ba.get(this);if(A)F[A]&&F[A].stop&&v(F[A]);else for(A in F)F[A]&&F[A].stop&&gd.test(A)&&v(F[A]);for(A=C.length;A--;)C[A].elem!==
this||null!=d&&C[A].queue!==d||(C[A].anim.stop(q),x=!1,C.splice(A,1));!x&&q||u.dequeue(this,d)})},finish:function(d){return!1!==d&&(d=d||"fx"),this.each(function(){var m=ba.get(this),q=m[d+"queue"];var v=m[d+"queueHooks"];var x=u.timers,A=q?q.length:0;m.finish=!0;u.queue(this,d,[]);v&&v.stop&&v.stop.call(this,!0);for(v=x.length;v--;)x[v].elem===this&&x[v].queue===d&&(x[v].anim.stop(!0),x.splice(v,1));for(v=0;v<A;v++)q[v]&&q[v].finish&&q[v].finish.call(this);delete m.finish})}});u.each(["toggle","show",
"hide"],function(d,m){var q=u.fn[m];u.fn[m]=function(v,x,A){return null==v||"boolean"==typeof v?q.apply(this,arguments):this.animate(ib(m,!0),v,x,A)}});u.each({slideDown:ib("show"),slideUp:ib("hide"),slideToggle:ib("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,m){u.fn[d]=function(q,v,x){return this.animate(m,q,v,x)}});u.timers=[];u.fx.tick=function(){var d,m=0,q=u.timers;for(yc=Date.now();m<q.length;m++)(d=q[m])()||q[m]!==d||q.splice(m--,1);q.length||
u.fx.stop();yc=void 0};u.fx.timer=function(d){u.timers.push(d);u.fx.start()};u.fx.interval=13;u.fx.start=function(){kc||(kc=!0,Ya())};u.fx.stop=function(){kc=null};u.fx.speeds={slow:600,fast:200,_default:400};u.fn.delay=function(d,m){return d=u.fx&&u.fx.speeds[d]||d,m=m||"fx",this.queue(m,function(q,v){var x=a.setTimeout(q,d);v.stop=function(){a.clearTimeout(x)}})};var Tc=Na.createElement("input");var J=Na.createElement("select").appendChild(Na.createElement("option"));Tc.type="checkbox";ab.checkOn=
""!==Tc.value;ab.optSelected=J.selected;(Tc=Na.createElement("input")).value="t";Tc.type="radio";ab.radioValue="t"===Tc.value;var H=u.expr.attrHandle;u.fn.extend({attr:function(d,m){return aa(this,u.attr,d,m,1<arguments.length)},removeAttr:function(d){return this.each(function(){u.removeAttr(this,d)})}});u.extend({attr:function(d,m,q){var v,x,A=d.nodeType;if(3!==A&&8!==A&&2!==A)return"undefined"==typeof d.getAttribute?u.prop(d,m,q):(1===A&&u.isXMLDoc(d)||(x=u.attrHooks[m.toLowerCase()]||(u.expr.match.bool.test(m)?
U:void 0)),void 0!==q?null===q?void u.removeAttr(d,m):x&&"set"in x&&void 0!==(v=x.set(d,q,m))?v:(d.setAttribute(m,q+""),q):x&&"get"in x&&null!==(v=x.get(d,m))?v:null==(v=u.find.attr(d,m))?void 0:v)},attrHooks:{type:{set:function(d,m){if(!ab.radioValue&&"radio"===m&&k(d,"input")){var q=d.value;return d.setAttribute("type",m),q&&(d.value=q),m}}}},removeAttr:function(d,m){var q=0,v=m&&m.match(Cb);if(v&&1===d.nodeType)for(;m=v[q++];)d.removeAttribute(m)}});var U={set:function(d,m,q){return!1===m?u.removeAttr(d,
q):d.setAttribute(q,q),q}};u.each(u.expr.match.bool.source.match(/\w+/g),function(d,m){var q=H[m]||u.find.attr;H[m]=function(v,x,A){var C,F,K=x.toLowerCase();return A||(F=H[K],H[K]=C,C=null!=q(v,x,A)?K:null,H[K]=F),C}});var X=/^(?:input|select|textarea|button)$/i,ma=/^(?:a|area)$/i;u.fn.extend({prop:function(d,m){return aa(this,u.prop,d,m,1<arguments.length)},removeProp:function(d){return this.each(function(){delete this[u.propFix[d]||d]})}});u.extend({prop:function(d,m,q){var v,x,A=d.nodeType;if(3!==
A&&8!==A&&2!==A)return 1===A&&u.isXMLDoc(d)||(m=u.propFix[m]||m,x=u.propHooks[m]),void 0!==q?x&&"set"in x&&void 0!==(v=x.set(d,q,m))?v:d[m]=q:x&&"get"in x&&null!==(v=x.get(d,m))?v:d[m]},propHooks:{tabIndex:{get:function(d){var m=u.find.attr(d,"tabindex");return m?parseInt(m,10):X.test(d.nodeName)||ma.test(d.nodeName)&&d.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});ab.optSelected||(u.propHooks.selected={get:function(d){d=d.parentNode;return d&&d.parentNode&&d.parentNode.selectedIndex,
null},set:function(d){d=d.parentNode;d&&(d.selectedIndex,d.parentNode&&d.parentNode.selectedIndex)}});u.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){u.propFix[this.toLowerCase()]=this});u.fn.extend({addClass:function(d){var m,q,v,x,A,C,F,K=0;if(Ka(d))return this.each(function(S){u(this).addClass(d.call(this,S,Za(this)))});if((m=za(d)).length)for(;q=this[K++];)if(x=Za(q),v=1===q.nodeType&&" "+pb(x)+" "){for(C=0;A=
m[C++];)0>v.indexOf(" "+A+" ")&&(v+=A+" ");x!==(F=pb(v))&&q.setAttribute("class",F)}return this},removeClass:function(d){var m,q,v,x,A,C,F,K=0;if(Ka(d))return this.each(function(S){u(this).removeClass(d.call(this,S,Za(this)))});if(!arguments.length)return this.attr("class","");if((m=za(d)).length)for(;q=this[K++];)if(x=Za(q),v=1===q.nodeType&&" "+pb(x)+" "){for(C=0;A=m[C++];)for(;-1<v.indexOf(" "+A+" ");)v=v.replace(" "+A+" "," ");x!==(F=pb(v))&&q.setAttribute("class",F)}return this},toggleClass:function(d,
m){var q=typeof d,v="string"===q||Array.isArray(d);return"boolean"==typeof m&&v?m?this.addClass(d):this.removeClass(d):Ka(d)?this.each(function(x){u(this).toggleClass(d.call(this,x,Za(this),m),m)}):this.each(function(){var x,A;if(v){var C=0;var F=u(this);for(A=za(d);x=A[C++];)F.hasClass(x)?F.removeClass(x):F.addClass(x)}else void 0!==d&&"boolean"!==q||((x=Za(this))&&ba.set(this,"__className__",x),this.setAttribute&&this.setAttribute("class",x||!1===d?"":ba.get(this,"__className__")||""))})},hasClass:function(d){var m,
q=0;for(d=" "+d+" ";m=this[q++];)if(1===m.nodeType&&-1<(" "+pb(Za(m))+" ").indexOf(d))return!0;return!1}});var ra=/\r/g;u.fn.extend({val:function(d){var m,q,v,x=this[0];return arguments.length?(v=Ka(d),this.each(function(A){var C;1===this.nodeType&&(null==(C=v?d.call(this,A,u(this).val()):d)?C="":"number"==typeof C?C+="":Array.isArray(C)&&(C=u.map(C,function(F){return null==F?"":F+""})),(m=u.valHooks[this.type]||u.valHooks[this.nodeName.toLowerCase()])&&"set"in m&&void 0!==m.set(this,C,"value")||
(this.value=C))})):x?(m=u.valHooks[x.type]||u.valHooks[x.nodeName.toLowerCase()])&&"get"in m&&void 0!==(q=m.get(x,"value"))?q:"string"==typeof(q=x.value)?q.replace(ra,""):null==q?"":q:void 0}});u.extend({valHooks:{option:{get:function(d){var m=u.find.attr(d,"value");return null!=m?m:pb(u.text(d))}},select:{get:function(d){var m,q,v=d.options,x=d.selectedIndex,A="select-one"===d.type,C=A?null:[],F=A?x+1:v.length;for(q=0>x?F:A?x:0;q<F;q++)if(!(!(m=v[q]).selected&&q!==x||m.disabled||m.parentNode.disabled&&
k(m.parentNode,"optgroup"))){if(d=u(m).val(),A)return d;C.push(d)}return C},set:function(d,m){var q,v,x=d.options;m=u.makeArray(m);for(var A=x.length;A--;)((v=x[A]).selected=-1<u.inArray(u.valHooks.option.get(v),m))&&(q=!0);return q||(d.selectedIndex=-1),m}}}});u.each(["radio","checkbox"],function(){u.valHooks[this]={set:function(d,m){if(Array.isArray(m))return d.checked=-1<u.inArray(u(d).val(),m)}};ab.checkOn||(u.valHooks[this].get=function(d){return null===d.getAttribute("value")?"on":d.value})});
ab.focusin="onfocusin"in a;var qb=/^(?:focusinfocus|focusoutblur)$/,ta=function(d){d.stopPropagation()};u.extend(u.event,{trigger:function(d,m,q,v){var x,A,C,F,K,S,Y=[q||Na],R=Ob.call(d,"type")?d.type:d;var pa=Ob.call(d,"namespace")?d.namespace.split("."):[];if(x=S=A=q=q||Na,3!==q.nodeType&&8!==q.nodeType&&!qb.test(R+u.event.triggered)&&(-1<R.indexOf(".")&&(R=(pa=R.split(".")).shift(),pa.sort()),C=0>R.indexOf(":")&&"on"+R,(d=d[u.expando]?d:new u.Event(R,"object"==typeof d&&d)).isTrigger=v?2:3,d.namespace=
pa.join("."),d.rnamespace=d.namespace?new RegExp("(^|\\.)"+pa.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d.result=void 0,d.target||(d.target=q),m=null==m?[d]:u.makeArray(m,[d]),K=u.event.special[R]||{},v||!K.trigger||!1!==K.trigger.apply(q,m))){if(!v&&!K.noBubble&&!Yb(q)){var Aa=K.delegateType||R;for(qb.test(Aa+R)||(x=x.parentNode);x;x=x.parentNode)Y.push(x),A=x;A===(q.ownerDocument||Na)&&Y.push(A.defaultView||A.parentWindow||a)}for(pa=0;(x=Y[pa++])&&!d.isPropagationStopped();)S=x,d.type=1<pa?Aa:K.bindType||
R,(F=(ba.get(x,"events")||{})[d.type]&&ba.get(x,"handle"))&&F.apply(x,m),(F=C&&x[C])&&F.apply&&ka(x)&&(d.result=F.apply(x,m),!1===d.result&&d.preventDefault());return d.type=R,v||d.isDefaultPrevented()||K._default&&!1!==K._default.apply(Y.pop(),m)||!ka(q)||C&&Ka(q[R])&&!Yb(q)&&((A=q[C])&&(q[C]=null),u.event.triggered=R,d.isPropagationStopped()&&S.addEventListener(R,ta),q[R](),d.isPropagationStopped()&&S.removeEventListener(R,ta),u.event.triggered=void 0,A&&(q[C]=A)),d.result}},simulate:function(d,
m,q){d=u.extend(new u.Event,q,{type:d,isSimulated:!0});u.event.trigger(d,null,m)}});u.fn.extend({trigger:function(d,m){return this.each(function(){u.event.trigger(d,m,this)})},triggerHandler:function(d,m){var q=this[0];if(q)return u.event.trigger(d,m,q,!0)}});ab.focusin||u.each({focus:"focusin",blur:"focusout"},function(d,m){var q=function(v){u.event.simulate(m,v.target,u.event.fix(v))};u.event.special[m]={setup:function(){var v=this.ownerDocument||this,x=ba.access(v,m);x||v.addEventListener(d,q,
!0);ba.access(v,m,(x||0)+1)},teardown:function(){var v=this.ownerDocument||this,x=ba.access(v,m)-1;x?ba.access(v,m,x):(v.removeEventListener(d,q,!0),ba.remove(v,m))}}});var Fa=a.location,Ab=Date.now(),Ja=/\?/;u.parseXML=function(d){if(!d||"string"!=typeof d)return null;try{var m=(new a.DOMParser).parseFromString(d,"text/xml")}catch(q){m=void 0}return m&&!m.getElementsByTagName("parsererror").length||u.error("Invalid XML: "+d),m};var Db=/\[\]$/,mb=/\r?\n/g,Ma=/^(?:submit|button|image|reset|file)$/i,
vb=/^(?:input|select|textarea|keygen)/i;u.param=function(d,m){var q,v=[],x=function(A,C){C=Ka(C)?C():C;v[v.length]=encodeURIComponent(A)+"\x3d"+encodeURIComponent(null==C?"":C)};if(null==d)return"";if(Array.isArray(d)||d.jquery&&!u.isPlainObject(d))u.each(d,function(){x(this.name,this.value)});else for(q in d)Q(q,d[q],m,x);return v.join("\x26")};u.fn.extend({serialize:function(){return u.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var d=u.prop(this,"elements");
return d?u.makeArray(d):this}).filter(function(){var d=this.type;return this.name&&!u(this).is(":disabled")&&vb.test(this.nodeName)&&!Ma.test(d)&&(this.checked||!Xa.test(d))}).map(function(d,m){d=u(this).val();return null==d?null:Array.isArray(d)?u.map(d,function(q){return{name:m.name,value:q.replace(mb,"\r\n")}}):{name:m.name,value:d.replace(mb,"\r\n")}}).get()}});var Mb=/%20/g,pc=/#.*$/,hc=/([?&])_=[^&]*/,Xc=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ta=/^(?:GET|HEAD)$/,Ic=/^\/\//,wc={},qd={},Fd="*/".concat("*"),
vd=Na.createElement("a");vd.href=Fa.href;u.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Fa.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Fa.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset\x3dUTF-8",accepts:{"*":Fd,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",
text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":u.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(d,m){return m?sc(sc(d,u.ajaxSettings),m):sc(u.ajaxSettings,d)},ajaxPrefilter:zc(wc),ajaxTransport:zc(qd),ajax:function(d,m){function q(Wa,Eb,Fc,ad){var uc,Gc,cc,dc,ac,Sa=Eb;La||(La=!0,F&&a.clearTimeout(F),v=void 0,A=ad||"",Ba.readyState=0<Wa?4:0,uc=200<=Wa&&300>Wa||304===Wa,Fc&&(dc=function(lb,sb,tb){for(var Xb,Lb,gb,
Pa,wb=lb.contents,jb=lb.dataTypes;"*"===jb[0];)jb.shift(),void 0===Xb&&(Xb=lb.mimeType||sb.getResponseHeader("Content-Type"));if(Xb)for(Lb in wb)if(wb[Lb]&&wb[Lb].test(Xb)){jb.unshift(Lb);break}if(jb[0]in tb)gb=jb[0];else{for(Lb in tb){if(!jb[0]||lb.converters[Lb+" "+jb[0]]){gb=Lb;break}Pa||(Pa=Lb)}gb=gb||Pa}if(gb)return gb!==jb[0]&&jb.unshift(gb),tb[gb]}(R,Ba,Fc)),dc=function(lb,sb,tb,Xb){var Lb,gb,Pa,wb,jb,vc={},Mc=lb.dataTypes.slice();if(Mc[1])for(Pa in lb.converters)vc[Pa.toLowerCase()]=lb.converters[Pa];
for(gb=Mc.shift();gb;)if(lb.responseFields[gb]&&(tb[lb.responseFields[gb]]=sb),!jb&&Xb&&lb.dataFilter&&(sb=lb.dataFilter(sb,lb.dataType)),jb=gb,gb=Mc.shift())if("*"===gb)gb=jb;else if("*"!==jb&&jb!==gb){if(!(Pa=vc[jb+" "+gb]||vc["* "+gb]))for(Lb in vc)if((wb=Lb.split(" "))[1]===gb&&(Pa=vc[jb+" "+wb[0]]||vc["* "+wb[0]])){!0===Pa?Pa=vc[Lb]:!0!==vc[Lb]&&(gb=wb[0],Mc.unshift(wb[1]));break}if(!0!==Pa)if(Pa&&lb["throws"])sb=Pa(sb);else try{sb=Pa(sb)}catch(md){return{state:"parsererror",error:Pa?md:"No conversion from "+
jb+" to "+gb}}}return{state:"success",data:sb}}(R,dc,Ba,uc),uc?(R.ifModified&&((ac=Ba.getResponseHeader("Last-Modified"))&&(u.lastModified[x]=ac),(ac=Ba.getResponseHeader("etag"))&&(u.etag[x]=ac)),204===Wa||"HEAD"===R.type?Sa="nocontent":304===Wa?Sa="notmodified":(Sa=dc.state,Gc=dc.data,uc=!(cc=dc.error))):(cc=Sa,!Wa&&Sa||(Sa="error",0>Wa&&(Wa=0))),Ba.status=Wa,Ba.statusText=(Eb||Sa)+"",uc?ya.resolveWith(pa,[Gc,Sa,Ba]):ya.rejectWith(pa,[Ba,Sa,cc]),Ba.statusCode(kb),kb=void 0,K&&Aa.trigger(uc?"ajaxSuccess":
"ajaxError",[Ba,R,uc?Gc:cc]),Ua.fireWith(pa,[Ba,Sa]),K&&(Aa.trigger("ajaxComplete",[Ba,R]),--u.active||u.event.trigger("ajaxStop")))}"object"==typeof d&&(m=d,d=void 0);m=m||{};var v,x,A,C,F,K,S,Y,R=u.ajaxSetup({},m),pa=R.context||R,Aa=R.context&&(pa.nodeType||pa.jquery)?u(pa):u.event,ya=u.Deferred(),Ua=u.Callbacks("once memory"),kb=R.statusCode||{},nc={},Kb={},bc="canceled",Ba={readyState:0,getResponseHeader:function(Wa){var Eb;if(La){if(!C)for(C={};Eb=Xc.exec(A);)C[Eb[1].toLowerCase()+" "]=(C[Eb[1].toLowerCase()+
" "]||[]).concat(Eb[2]);Eb=C[Wa.toLowerCase()+" "]}return null==Eb?null:Eb.join(", ")},getAllResponseHeaders:function(){return La?A:null},setRequestHeader:function(Wa,Eb){return null==La&&(Wa=Kb[Wa.toLowerCase()]=Kb[Wa.toLowerCase()]||Wa,nc[Wa]=Eb),this},overrideMimeType:function(Wa){return null==La&&(R.mimeType=Wa),this},statusCode:function(Wa){var Eb;if(Wa)if(La)Ba.always(Wa[Ba.status]);else for(Eb in Wa)kb[Eb]=[kb[Eb],Wa[Eb]];return this},abort:function(Wa){Wa=Wa||bc;return v&&v.abort(Wa),q(0,
Wa),this}};if(ya.promise(Ba),R.url=((d||R.url||Fa.href)+"").replace(Ic,Fa.protocol+"//"),R.type=m.method||m.type||R.method||R.type,R.dataTypes=(R.dataType||"*").toLowerCase().match(Cb)||[""],null==R.crossDomain){d=Na.createElement("a");try{d.href=R.url,d.href=d.href,R.crossDomain=vd.protocol+"//"+vd.host!=d.protocol+"//"+d.host}catch(Wa){R.crossDomain=!0}}if(R.data&&R.processData&&"string"!=typeof R.data&&(R.data=u.param(R.data,R.traditional)),Vc(wc,R,m,Ba),La)return Ba;for(S in(K=u.event&&R.global)&&
0==u.active++&&u.event.trigger("ajaxStart"),R.type=R.type.toUpperCase(),R.hasContent=!Ta.test(R.type),x=R.url.replace(pc,""),R.hasContent?R.data&&R.processData&&0===(R.contentType||"").indexOf("application/x-www-form-urlencoded")&&(R.data=R.data.replace(Mb,"+")):(Y=R.url.slice(x.length),R.data&&(R.processData||"string"==typeof R.data)&&(x+=(Ja.test(x)?"\x26":"?")+R.data,delete R.data),!1===R.cache&&(x=x.replace(hc,"$1"),Y=(Ja.test(x)?"\x26":"?")+"_\x3d"+Ab++ +Y),R.url=x+Y),R.ifModified&&(u.lastModified[x]&&
Ba.setRequestHeader("If-Modified-Since",u.lastModified[x]),u.etag[x]&&Ba.setRequestHeader("If-None-Match",u.etag[x])),(R.data&&R.hasContent&&!1!==R.contentType||m.contentType)&&Ba.setRequestHeader("Content-Type",R.contentType),Ba.setRequestHeader("Accept",R.dataTypes[0]&&R.accepts[R.dataTypes[0]]?R.accepts[R.dataTypes[0]]+("*"!==R.dataTypes[0]?", "+Fd+"; q\x3d0.01":""):R.accepts["*"]),R.headers)Ba.setRequestHeader(S,R.headers[S]);if(R.beforeSend&&(!1===R.beforeSend.call(pa,Ba,R)||La))return Ba.abort();
if(bc="abort",Ua.add(R.complete),Ba.done(R.success),Ba.fail(R.error),v=Vc(qd,R,m,Ba)){if(Ba.readyState=1,K&&Aa.trigger("ajaxSend",[Ba,R]),La)return Ba;R.async&&0<R.timeout&&(F=a.setTimeout(function(){Ba.abort("timeout")},R.timeout));try{var La=!1;v.send(nc,q)}catch(Wa){if(La)throw Wa;q(-1,Wa)}}else q(-1,"No Transport");return Ba},getJSON:function(d,m,q){return u.get(d,m,q,"json")},getScript:function(d,m){return u.get(d,void 0,m,"script")}});u.each(["get","post"],function(d,m){u[m]=function(q,v,x,
A){return Ka(v)&&(A=A||x,x=v,v=void 0),u.ajax(u.extend({url:q,type:m,dataType:A,data:v,success:x},u.isPlainObject(q)&&q))}});u._evalUrl=function(d,m){return u.ajax({url:d,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(q){u.globalEval(q,m)}})};u.fn.extend({wrapAll:function(d){var m;return this[0]&&(Ka(d)&&(d=d.call(this[0])),m=u(d,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&m.insertBefore(this[0]),m.map(function(){for(var q=
this;q.firstElementChild;)q=q.firstElementChild;return q}).append(this)),this},wrapInner:function(d){return Ka(d)?this.each(function(m){u(this).wrapInner(d.call(this,m))}):this.each(function(){var m=u(this),q=m.contents();q.length?q.wrapAll(d):m.append(d)})},wrap:function(d){var m=Ka(d);return this.each(function(q){u(this).wrapAll(m?d.call(this,q):d)})},unwrap:function(d){return this.parent(d).not("body").each(function(){u(this).replaceWith(this.childNodes)}),this}});u.expr.pseudos.hidden=function(d){return!u.expr.pseudos.visible(d)};
u.expr.pseudos.visible=function(d){return!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length)};u.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(d){}};var Xd={0:200,1223:204},hd=u.ajaxSettings.xhr();ab.cors=!!hd&&"withCredentials"in hd;ab.ajax=hd=!!hd;u.ajaxTransport(function(d){var m,q;if(ab.cors||hd&&!d.crossDomain)return{send:function(v,x){var A,C=d.xhr();if(C.open(d.type,d.url,d.async,d.username,d.password),d.xhrFields)for(A in d.xhrFields)C[A]=d.xhrFields[A];for(A in d.mimeType&&
C.overrideMimeType&&C.overrideMimeType(d.mimeType),d.crossDomain||v["X-Requested-With"]||(v["X-Requested-With"]="XMLHttpRequest"),v)C.setRequestHeader(A,v[A]);m=function(F){return function(){m&&(m=q=C.onload=C.onerror=C.onabort=C.ontimeout=C.onreadystatechange=null,"abort"===F?C.abort():"error"===F?"number"!=typeof C.status?x(0,"error"):x(C.status,C.statusText):x(Xd[C.status]||C.status,C.statusText,"text"!==(C.responseType||"text")||"string"!=typeof C.responseText?{binary:C.response}:{text:C.responseText},
C.getAllResponseHeaders()))}};C.onload=m();q=C.onerror=C.ontimeout=m("error");void 0!==C.onabort?C.onabort=q:C.onreadystatechange=function(){4===C.readyState&&a.setTimeout(function(){m&&q()})};m=m("abort");try{C.send(d.hasContent&&d.data||null)}catch(F){if(m)throw F;}},abort:function(){m&&m()}}});u.ajaxPrefilter(function(d){d.crossDomain&&(d.contents.script=!1)});u.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},
converters:{"text script":function(d){return u.globalEval(d),d}}});u.ajaxPrefilter("script",function(d){void 0===d.cache&&(d.cache=!1);d.crossDomain&&(d.type="GET")});u.ajaxTransport("script",function(d){var m,q;if(d.crossDomain||d.scriptAttrs)return{send:function(v,x){m=u("\x3cscript\x3e").attr(d.scriptAttrs||{}).prop({charset:d.scriptCharset,src:d.url}).on("load error",q=function(A){m.remove();q=null;A&&x("error"===A.type?404:200,A.type)});Na.head.appendChild(m[0])},abort:function(){q&&q()}}});
var Gd,Hd=[],wd=/(=)\?(?=&|$)|\?\?/;u.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var d=Hd.pop()||u.expando+"_"+Ab++;return this[d]=!0,d}});u.ajaxPrefilter("json jsonp",function(d,m,q){var v,x,A,C=!1!==d.jsonp&&(wd.test(d.url)?"url":"string"==typeof d.data&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&wd.test(d.data)&&"data");if(C||"jsonp"===d.dataTypes[0])return v=d.jsonpCallback=Ka(d.jsonpCallback)?d.jsonpCallback():d.jsonpCallback,C?d[C]=d[C].replace(wd,"$1"+v):
!1!==d.jsonp&&(d.url+=(Ja.test(d.url)?"\x26":"?")+d.jsonp+"\x3d"+v),d.converters["script json"]=function(){return A||u.error(v+" was not called"),A[0]},d.dataTypes[0]="json",x=a[v],a[v]=function(){A=arguments},q.always(function(){void 0===x?u(a).removeProp(v):a[v]=x;d[v]&&(d.jsonpCallback=m.jsonpCallback,Hd.push(v));A&&Ka(x)&&x(A[0]);A=x=void 0}),"script"});ab.createHTMLDocument=((Gd=Na.implementation.createHTMLDocument("").body).innerHTML="\x3cform\x3e\x3c/form\x3e\x3cform\x3e\x3c/form\x3e",2===
Gd.childNodes.length);u.parseHTML=function(d,m,q){return"string"!=typeof d?[]:("boolean"==typeof m&&(q=m,m=!1),m||(ab.createHTMLDocument?((v=(m=Na.implementation.createHTMLDocument("")).createElement("base")).href=Na.location.href,m.head.appendChild(v)):m=Na),A=!q&&[],(x=Qc.exec(d))?[m.createElement(x[1])]:(x=xa([d],m,A),A&&A.length&&u(A).remove(),u.merge([],x.childNodes)));var v,x,A};u.fn.load=function(d,m,q){var v,x,A,C=this,F=d.indexOf(" ");return-1<F&&(v=pb(d.slice(F)),d=d.slice(0,F)),Ka(m)?(q=
m,m=void 0):m&&"object"==typeof m&&(x="POST"),0<C.length&&u.ajax({url:d,type:x||"GET",dataType:"html",data:m}).done(function(K){A=arguments;C.html(v?u("\x3cdiv\x3e").append(u.parseHTML(K)).find(v):K)}).always(q&&function(K,S){C.each(function(){q.apply(this,A||[K.responseText,S,K])})}),this};u.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(d,m){u.fn[m]=function(q){return this.on(m,q)}});u.expr.pseudos.animated=function(d){return u.grep(u.timers,function(m){return d===
m.elem}).length};u.offset={setOffset:function(d,m,q){var v,x,A,C=u.css(d,"position"),F=u(d),K={};"static"===C&&(d.style.position="relative");var S=F.offset();var Y=u.css(d,"top");var R=u.css(d,"left");("absolute"===C||"fixed"===C)&&-1<(Y+R).indexOf("auto")?(A=(v=F.position()).top,x=v.left):(A=parseFloat(Y)||0,x=parseFloat(R)||0);Ka(m)&&(m=m.call(d,q,u.extend({},S)));null!=m.top&&(K.top=m.top-S.top+A);null!=m.left&&(K.left=m.left-S.left+x);"using"in m?m.using.call(d,K):F.css(K)}};u.fn.extend({offset:function(d){if(arguments.length)return void 0===
d?this:this.each(function(x){u.offset.setOffset(this,d,x)});var m,q,v=this[0];return v?v.getClientRects().length?(m=v.getBoundingClientRect(),q=v.ownerDocument.defaultView,{top:m.top+q.pageYOffset,left:m.left+q.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var d,m=this[0],q={top:0,left:0};if("fixed"===u.css(m,"position"))var v=m.getBoundingClientRect();else{v=this.offset();var x=m.ownerDocument;for(d=m.offsetParent||x.documentElement;d&&(d===x.body||d===x.documentElement)&&
"static"===u.css(d,"position");)d=d.parentNode;d&&d!==m&&1===d.nodeType&&((q=u(d).offset()).top+=u.css(d,"borderTopWidth",!0),q.left+=u.css(d,"borderLeftWidth",!0))}return{top:v.top-q.top-u.css(m,"marginTop",!0),left:v.left-q.left-u.css(m,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var d=this.offsetParent;d&&"static"===u.css(d,"position");)d=d.offsetParent;return d||ec})}});u.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(d,m){var q="pageYOffset"===
m;u.fn[d]=function(v){return aa(this,function(x,A,C){var F;if(Yb(x)?F=x:9===x.nodeType&&(F=x.defaultView),void 0===C)return F?F[m]:x[A];F?F.scrollTo(q?F.pageXOffset:C,q?C:F.pageYOffset):x[A]=C},d,v,arguments.length)}});u.each(["top","left"],function(d,m){u.cssHooks[m]=Z(ab.pixelPosition,function(q,v){if(v)return v=T(q,m),$b.test(v)?u(q).position()[m]+"px":v})});u.each({Height:"height",Width:"width"},function(d,m){u.each({padding:"inner"+d,content:m,"":"outer"+d},function(q,v){u.fn[v]=function(x,A){var C=
arguments.length&&(q||"boolean"!=typeof x),F=q||(!0===x||!0===A?"margin":"border");return aa(this,function(K,S,Y){var R;return Yb(K)?0===v.indexOf("outer")?K["inner"+d]:K.document.documentElement["client"+d]:9===K.nodeType?(R=K.documentElement,Math.max(K.body["scroll"+d],R["scroll"+d],K.body["offset"+d],R["offset"+d],R["client"+d])):void 0===Y?u.css(K,S,F):u.style(K,S,Y,F)},m,C?x:void 0,C)}})});u.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),
function(d,m){u.fn[m]=function(q,v){return 0<arguments.length?this.on(m,null,q,v):this.trigger(m)}});u.fn.extend({hover:function(d,m){return this.mouseenter(d).mouseleave(m||d)}});u.fn.extend({bind:function(d,m,q){return this.on(d,null,m,q)},unbind:function(d,m){return this.off(d,null,m)},delegate:function(d,m,q,v){return this.on(m,d,q,v)},undelegate:function(d,m,q){return 1===arguments.length?this.off(d,"**"):this.off(m,d||"**",q)}});u.proxy=function(d,m){var q,v,x;if("string"==typeof m&&(q=d[m],
m=d,d=q),Ka(d))return v=Hb.call(arguments,2),(x=function(){return d.apply(m||this,v.concat(Hb.call(arguments)))}).guid=d.guid=d.guid||u.guid++,x};u.holdReady=function(d){d?u.readyWait++:u.ready(!0)};u.isArray=Array.isArray;u.parseJSON=JSON.parse;u.nodeName=k;u.isFunction=Ka;u.isWindow=Yb;u.camelCase=w;u.type=f;u.now=Date.now;u.isNumeric=function(d){var m=u.type(d);return("number"===m||"string"===m)&&!isNaN(d-parseFloat(d))};"function"==typeof define&&define.amd&&define("jquery",[],function(){return u});
var Yd=a.jQuery,Zd=a.$;return u.noConflict=function(d){return a.$===u&&(a.$=Zd),d&&a.jQuery===u&&(a.jQuery=Yd),u},n||(a.jQuery=a.$=u),u});window.Granite=window.Granite||{};(function(a,n){a.Util=function(){return{patchText:function(h,f){if(f)if(n.isArray(f))for(var c=0;c<f.length;c++)h=h.replace("{"+c+"}",f[c]);else h=h.replace("{0}",f);return h}}}()})(Granite,jQuery);
(function(a,n,h){a.HTTP=function(){var f=null,c=/^(?:http|https):\/\/[^\/]+(\/.*)\/(?:etc(\/.*)*\/clientlibs|libs(\/.*)*\/clientlibs|apps(\/.*)*\/clientlibs).*\.js(\?.*)?$/,k=/[^1\w-\.!~\*'\(\)\/%;:@&=\$,]/,l=!1,e={getSchemeAndAuthority:function(b){try{if(-1===b.indexOf("://"))return"";var g=b.indexOf("/",b.indexOf("://")+3);return-1===g?b:b.substring(0,g)}catch(p){return""}},getContextPath:function(){return f},detectContextPath:function(){try{if(window.CQURLInfo)f=CQURLInfo.contextPath||"";else{for(var b=
document.getElementsByTagName("script"),g=0;g<b.length;g++){var p=c.exec(b[g].src);if(p){f=p[1];return}}f=""}}catch(r){}},externalize:function(b){try{0===b.indexOf("/")&&f&&0!==b.indexOf(f+"/")&&(b=f+b)}catch(g){}return b},internalize:function(b,g){if("/"===b.charAt(0))return f===b?"":f&&0===b.indexOf(f+"/")?b.substring(f.length):b;g||(g=document);g=e.getSchemeAndAuthority(g.location.href);var p=e.getSchemeAndAuthority(b);return g===p?b.substring(p.length+(f?f.length:0)):b},getPath:function(b){if(b)b=
e.removeParameters(b),b=e.removeAnchor(b);else{if(window.CQURLInfo&&CQURLInfo.requestPath)return CQURLInfo.requestPath;b=window.location.pathname}b=e.internalize(b);var g=b.indexOf(".",b.lastIndexOf("/"));-1!==g&&(b=b.substring(0,g));return b},removeAnchor:function(b){return-1!==b.indexOf("#")?b.substring(0,b.indexOf("#")):b},removeParameters:function(b){return-1!==b.indexOf("?")?b.substring(0,b.indexOf("?")):b},encodePathOfURI:function(b){if(-1!==b.indexOf("?")){b=b.split("?");var g="?"}else-1!==
b.indexOf("#")?(b=b.split("#"),g="#"):b=[b];k.test(b[0])&&(b[0]=e.encodePath(b[0]));return b.join(g)},encodePath:function(b){b=encodeURI(b).replace(/%5B/g,"[").replace(/%5D/g,"]");b=b.replace(/\+/g,"%2B");b=b.replace(/\?/g,"%3F");b=b.replace(/;/g,"%3B");b=b.replace(/#/g,"%23");b=b.replace(/=/g,"%3D");b=b.replace(/\$/g,"%24");b=b.replace(/,/g,"%2C");b=b.replace(/'/g,"%27");return b=b.replace(/"/g,"%22")},handleLoginRedirect:function(){if(!l){l=!0;alert(a.I18n.get("Your request could not be completed because you have been signed out."));
var b=n.getTopWindow().document.location;b.href=e.externalize(sling.LOGIN_URL)+"?resource\x3d"+encodeURIComponent(b.pathname+b.search+b.hash)}},getXhrHook:function(b,g,p){g=g||"GET";return window.G_XHR_HOOK&&h.isFunction(G_XHR_HOOK)?(b={url:b,method:g},p&&(b.params=p),G_XHR_HOOK(b)):null},eval:function(b){"object"!==typeof b&&(b=h.ajax({url:b,type:"get",async:!1}));try{return eval("("+(b.body?b.body:b.responseText)+")")}catch(g){}return null}};return e}()})(Granite,Granite.Util,jQuery);
(function(a,n,h,f,c){n.I18n=function(){var k={},l="/aemapi/v6/common/i18n/dict.",e=".b2c",b=".json",g=void 0,p=!1,r=null,t={},w=!1;t.LOCALE_DEFAULT="en";t.PSEUDO_LANGUAGE="zz";t.PSEUDO_PATTERN_KEY="_pseudoPattern_";t.init=function(z){z=z||{};this.setLocale(z.locale);this.setUrlPrefix(z.urlPrefix);this.setUrlSuffix(z.urlSuffix)};t.setLocale=function(z){z&&(g=c("#language").val()||z)};t.getLocale=function(){c.isFunction(g)&&(g=g());return c("#language").val()||t.LOCALE_DEFAULT};t.setUrlPrefix=function(z){z&&
(l=z,w=!0)};t.setUrlSuffix=function(z){z&&(b=z,w=!0)};t.getDictionary=function(z){z=z||t.getLocale();if(!k[z]){p=0===z.indexOf(t.PSEUDO_LANGUAGE);try{var D=c.ajax;var E=z,y=c("#i18nAppsParam").val();y&&-1<y.length&&(e="bc"==y?".bc":e+("."+y));if(w)var V=l+E+e+b;else{var ca=c("html").attr("data-i18n-dictionary-src");V=ca?ca.replace("{locale}",encodeURIComponent(E)).replace("{+locale}",E):l+E+e+b}var xa=D.call(c,V,{async:!1,dataType:"json"});k[z]=c.parseJSON(xa.responseText)}catch(ea){}k[z]||(k[z]=
{})}return k[z]};t.get=function(z,D,E){var y;var V=t.getDictionary();var ca=p?t.PSEUDO_PATTERN_KEY:E?z+" (("+E+"))":z;V&&(y=V[ca]);y||(y=z);p&&(y=y.replace("{string}",z).replace("{comment}",E?E:""));return h.patchText(y,D)};t.getVar=function(z,D){return z?t.get(z,null,D):null};t.getLanguages=function(){if(!r)try{var z=f.eval("/libs/wcm/core/resources/languages.overlay.infinity.json");c.each(z,function(D,E){E.title=t.getVar(E.language);E.title&&E.country&&"*"!==E.country&&(E.title+=" ("+t.getVar(E.country)+
")")});r=z}catch(D){r={}}return r};t.parseLocale=function(z){if(!z)return null;var D=z.indexOf("_");0>D&&(D=z.indexOf("-"));if(0>D){var E=z;D=null}else E=z.substring(0,D),D=z.substring(D+1);return{code:z,language:E,country:D}};return t}()})(document,Granite,Granite.Util,Granite.HTTP,jQuery);Granite.HTTP.detectContextPath();var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{};
jaaulde.utils.cookies=function(){var a={expiresAt:null,path:"/",domain:null,secure:!1};var n=function(k){if("object"!==typeof k||null===k)var l=a;else{l={expiresAt:a.expiresAt,path:a.path,domain:a.domain,secure:a.secure};if("object"===typeof k.expiresAt&&k.expiresAt instanceof Date)l.expiresAt=k.expiresAt;else if("number"===typeof k.hoursToLive&&0!==k.hoursToLive){var e=new Date;e.setTime(e.getTime()+36E5*k.hoursToLive);l.expiresAt=e}"string"===typeof k.path&&""!==k.path&&(l.path=k.path);"string"===
typeof k.domain&&""!==k.domain&&(l.domain=k.domain);!0===k.secure&&(l.secure=k.secure)}return l};var h=function(k){k=n(k);return("object"===typeof k.expiresAt&&k.expiresAt instanceof Date?"; expires\x3d"+k.expiresAt.toGMTString():"")+"; path\x3d"+k.path+("string"===typeof k.domain?"; domain\x3d"+k.domain:"")+(!0===k.secure?"; secure":"")};var f=function(){var k={},l,e=document.cookie.split(";");for(l=0;l<e.length;l+=1){var b=e[l].split("\x3d");var g=b[0].replace(/^\s*/,"").replace(/\s*$/,"");try{var p=
decodeURIComponent(b[1])}catch(t){p=b[1]}if("object"===typeof JSON&&null!==JSON&&"function"===typeof JSON.parse)try{var r=p;p=JSON.parse(p)}catch(t){p=r}k[g]=p}return k};var c=function(){};c.prototype.get=function(k){var l,e=f();if("string"===typeof k)var b="undefined"!==typeof e[k]?e[k]:null;else if("object"===typeof k&&null!==k)for(l in b={},k)b[k[l]]="undefined"!==typeof e[k[l]]?e[k[l]]:null;else b=e;return b};c.prototype.filter=function(k){var l,e={},b=f();"string"===typeof k&&(k=new RegExp(k));
for(l in b)l.match(k)&&(e[l]=b[l]);return e};c.prototype.set=function(k,l,e){if("object"!==typeof e||null===e)e={};if("undefined"===typeof l||null===l)l="",e.hoursToLive=-8760;else if("string"!==typeof l)if("object"===typeof JSON&&null!==JSON&&"function"===typeof JSON.stringify)l=JSON.stringify(l);else throw Error("cookies.set() received non-string value and could not serialize.");e=h(e);document.cookie=k+"\x3d"+encodeURIComponent(l)+e};c.prototype.del=function(k,l){var e={},b;if("object"!==typeof l||
null===l)l={};"boolean"===typeof k&&!0===k?e=this.get():"string"===typeof k&&(e[k]=!0);for(b in e)"string"===typeof b&&""!==b&&this.set(b,null,l)};c.prototype.test=function(){var k=!1;this.set("cT","data");"data"===this.get("cT")&&(this.del("cT"),k=!0);return k};c.prototype.setOptions=function(k){"object"!==typeof k&&(k=null);a=n(k)};return new c}();
(function(){window.jQuery&&function(a){a.cookies=jaaulde.utils.cookies;a.each({cookify:function(n){return this.each(function(){var h,f=["name","id"],c=a(this),k;for(h in f)if(!isNaN(h)){var l=c.attr(f[h]);if("string"===typeof l&&""!==l){c.is(":checkbox, :radio")?c.attr("checked")&&(k=c.val()):k=c.is(":input")?c.val():c.html();if("string"!==typeof k||""===k)k=null;a.cookies.set(l,k,n);break}}})},cookieFill:function(){return this.each(function(){var n,h,f=["name","id"],c=a(this);for(h=function(){n=
f.pop();return!!n};h();){var k=c.attr(n);if("string"===typeof k&&""!==k){h=a.cookies.get(k);null!==h&&(c.is(":checkbox, :radio")?c.val()===h?c.attr("checked","checked"):c.removeAttr("checked"):c.is(":input")?c.val(h):c.html(h));break}}})},cookieBind:function(n){return this.each(function(){var h=a(this);h.cookieFill().change(function(){h.cookify(n)})})}},function(n){a.fn[n]=this})}(window.jQuery)})();Granite.I18n.setLocale($("#language").val());
var NUMBER_GROUP_PATTERN=/\B(?=(\d{3})+(?!\d))/g,SAUDI_CURRENCY_SYMBOL=String.fromCodePoint(8385);function getMultistoreSiteCode(a){var n={levant:"jo",levant_ar:"jo_ar",n_africa:"ma"};if(n[a])return n[a];if("ae"===a||"ae_ar"===a){n="ae ae_ar kw kw_ar om om_ar bh bh_ar qa qa_ar".split(" ");var h=$.cookies.get("estoreSitecode");if(h&&n.includes(h))return h}return a}
var currencyComma=function(a,n){null!=n&&(n=n.toLowerCase());if(null===a||""===a)return"";a=String(a);var h=$("#siteCode").val();if(-1<a.indexOf(".")){var f=a.split(".");1<f.length&&2>f[1].length?a+="0":2<f[1].length&&(a=Number(a).toFixed(2))}f="";var c=getMultistoreSiteCode(h);switch(n){case "usd":if("n_africa"===h)return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g," "):a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",f+" DH";if("iq_ar"===h||"iq_ku"===h)return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,
","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00",f+" $";f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+f;case "cad":if("ca_fr"===h)return-1<a.indexOf(".")?(f=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),f=f.replace(".",",")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",f+" $";f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+f;case "eur":if("de"===h||"es"===h||"be_fr"===
h||"it"===h||"pt"===h)return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00","be_fr"===h?f:f+" \u20ac";if("fi"===h||"fr"===h||"sk"===h||"at"===h||"ee"===h||"lt"===h||"lv"===h||"hr"===h)return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g," ")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",f+" \u20ac";if("si"==h)return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,
".")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+",00",f+" \u20ac";if("bg"==h)return-1<a.indexOf(".")?(f=a.replace(".","\x3csup\x3e"),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\x3c/sup\x3e"):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\u2070\u2070",f+" \u20ac";-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00";return"be"===h||"nl"===h?f:"gr"===h?f+" \u20ac":"\u20ac "+f;case "gbp":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,
","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u00a3"+f;case "sek":return f=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),f+" kr";case "dkk":return-1<a.indexOf(".")&&(a=parseFloat(a).toFixed(0)),f=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),f+" kr";case "nok":return f=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),f+" kr";case "brl":return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00","R$ "+f;case "inr":return h=".00",-1<a.indexOf(".")?
(n=a.substring(0,a.indexOf(".")),h=a.substring(a.indexOf("."))):n=a,"\u20b9 "+(n+h);case "krw":return f=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),f+"\uc6d0";case "aed":if("ae_ar"===h)return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","kw_ar"==c?f+" \u062f.\u0643":"om_ar"==c?f+" \u0631.\u0639.":"bh_ar"==c?f+" .\u062f.\u0628":"qa_ar"==c?f+" \u0631.\u0642":f+" \u062f.\u0625";f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,
",")+".00";return"kw"==c?f+" KD":"bh"==c?f+" BD":"om"==c?f+" RO":"qa"==c?f+" QAR":f+" AED";case "rub":return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g," ")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),f+" \u20bd";case "twd":return f=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),"NT$"+f;case "czk":return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g," ")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),f+" K\u010d";case "myr":return f=-1<a.indexOf(".")?
a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","RM "+f;case "idr":return f=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"Rp "+f;case "pln":return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g," ")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",f+" z\u0142";case "ron":return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",f+" lei";case "php":return f=-1<a.indexOf(".")?
a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u20b1"+f;case "sar":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","sa"==siteCode?f+" "+SAUDI_CURRENCY_SYMBOL:SAUDI_CURRENCY_SYMBOL+" "+f;case "pab":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","US$ "+f;case "mxn":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,
",")+".00","$ "+f;case "ars":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","$ "+f;case "pen":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","s/ "+f;case "clp":return f=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"$ "+f;case "cop":return f=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"$ "+f;case "vnd":return f=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),f+" VND";case "chf":if("ch"===h||
"ch_fr"===h)return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",f+" CHF";f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,"'"):a.replace(/\B(?=(\d{3})+(?!\d))/g,"'")+".00";return"CHF "+f;case "hkd":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","HK$ "+f;case "jod":case "lbp":f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,
",")+".00";if("jo"==c)return f+" JD";if("jo_ar"==c)return f+" \u062f.\u0627";break;case "pkr":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","Rs. "+f;case "ils":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00",f+" \u20aa";case "kzt":return f=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),f+" \u20b8";case "egp":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,
",")+".00",f+" \u062c.\u0645.";case "huf":return a=String(Math.ceil(parseFloat(a))),f=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),f+" Ft";case "hrk":return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")+" kn"):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00 kn",f;case "uah":return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g," ")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),f+" \u20b4";case "jpy":case "yen":return-1<a.indexOf(".")&&(a=parseFloat(a).toFixed(0)),
f=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),f+"\u5186";case "iqd":if(-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g," ")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),"iq_ar"===h||"iq_ku"===h)return f+"\u062f.\u0639";case "mad":return f=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g," "):a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",f+" DH";case "cny":return"\uffe5 "+a;case "try":return-1<a.indexOf(".")?(f=a.replace(".",","),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,".")):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,
".")+",00",f+" TL";case "bgn":return-1<a.indexOf(".")?(f=a.replace(".","\x3csup\x3e"),f=f.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\x3c/sup\x3e"):f=a.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\u2070\u2070",f+" \u043b\u0432";default:try{f=parseFloat(a).toLocaleString($("#localLang").val(),{style:"currency",currency:n.toUpperCase()})}catch(k){f=a}return f}},currencyCommaExcep=function(a,n){null!=n&&(n=n.toLowerCase());if(null===a||""===a)return"";var h=String(a),f=$("#siteCode").val();if(-1<h.indexOf(".")){var c=
h.split(".");1<c.length&&2>c[1].length?h+="0":2<c[1].length&&"id"!==f&&(h=Number(h).toFixed(2))}var k=c="";if("levant"===f)k="jo";else if("levant_ar"===f)k="jo_ar";else if("ae"===f||"ae_ar"===f)$.cookies.get("estoreSitecode")?(k=$.cookies.get("estoreSitecode").toString(),k="ae"===k||"ae_ar"===k||"kw"===k||"kw_ar"===k||"om"===k||"om_ar"===k||"bh"===k||"bh_ar"===k||"qa"===k||"qa_ar"===k?k:f):k=f;switch(n){case "usd":if("n_africa"===f)return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g," "):
h.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",c+" DH";c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+c;case "dollar":if("ca_fr"===f)return-1<h.indexOf(".")?(c=h.replace(/\B(?=(\d{3})+(?!\d))/g," "),c=c.replace(".",",")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",c+" $";c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+c;case "eur":if("de"===f||"es"===f||"be_fr"===f||
"it"===f||"pt"===f)return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,".")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",c+" \u20ac";if("fi"===f||"fr"===f||"sk"===f||"at"===f||"ee"===f||"lt"===f||"lv"===f||"si"===f)return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g," ")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",c+" \u20ac";if("gr"===f)return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,
",")+".00","\u20ac"+c;-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,".")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00";return"be"===f||"nl"===f?c:"\u20ac "+c;case "gbp":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u00a3"+c;case "sek":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g," "),c+" kr";case "dkk":return-1<h.indexOf(".")&&(h=parseFloat(h).toFixed(0)),c=h.replace(/\B(?=(\d{3})+(?!\d))/g,"."),c+" kr";
case "nok":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g," "),c+" kr";case "brl":return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,".")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00","R$ "+c;case "inr":return n=".00",-1<h.indexOf(".")?(a=h.substring(0,h.indexOf(".")),n=h.substring(h.indexOf("."))):a=h,"\u20b9 "+(a+n);case "krw":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,","),c+"\uc6d0";case "aed":if("ae_ar"===f)return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,
","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","kw_ar"==k?c+" \u062f.\u0643":"om_ar"==k?c+" \u0631.\u0639.":"bh_ar"==k?c+" .\u062f.\u0628":"qa_ar"==k?c+" \u0631.\u0642":c+" \u062f.\u0625";c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"kw"==k?c+" KD":"bh"==k?c+" BD":"om"==k?c+" RO":"qa"==k?c+" QAR":c+" AED";case "rub":return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g," ")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,
" "),c+" \u20bd";case "twd":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,","),"NT$"+c;case "czk":return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g," ")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g," "),c+" K\u010d";case "myr":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","RM "+c;case "idr":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"Rp "+c;case "pln":return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,
" ")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",c+" z\u0142";case "ron":return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,".")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",c+" lei";case "php":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u20b1"+c;case "sar":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","sa"==siteCode?c+" "+SAUDI_CURRENCY_SYMBOL:
SAUDI_CURRENCY_SYMBOL+" "+c;case "pab":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","US$ "+c;case "mxn":return"$ "+a;case "ars":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","$ "+c;case "pen":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","s/ "+c;case "clp":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,"."),
"$ "+c;case "cop":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"$ "+c;case "vnd":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,"."),c+" VND";case "chf":if("ch"===f||"ch_fr"===f)return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,".")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",c+" CHF";c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,"'"):h.replace(/\B(?=(\d{3})+(?!\d))/g,"'")+".00";return"CHF "+c;case "hkd":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,
","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","HK$ "+c;case "jod":case "lbp":c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";if("jo"==k)return c+" JD";if("jo_ar"==k)return c+" \u062f.\u0627";case "pkr":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","Rs. "+c;case "ils":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00",
c+" \u20aa";case "mad":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g," "):h.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",c+" DH";default:try{c=parseFloat(h).toLocaleString($("#localLang").val(),{style:"currency",currency:n.toUpperCase()})}catch(l){c=h}return c}},deleteCurrencyComma=function(a,n){var h="",f=$("#siteCode").val();null!=n&&(n=n.toLowerCase());if(fnIsNull(a))return"";"ca_fr"===f||"eur"===n&&"gr"!==f||"rub"===n||"brl"===n||"pln"===n||"ron"===n||"krw"===n||"twd"===n||"ch"===
f||"ch_fr"===f?-1<a.indexOf(",")?(a=a.split(","),null!=a[0]&&""!=a[0]&&(h=a[0].replace(/[^0-9]/g,"")),null!=a[1]&&""!=a[1]&&(h+="."+a[1].replace(/[^0-9]/g,""))):h=a.replace(/[^0-9]/g,""):"pk"===f?-1<a.indexOf(".")&&(a=a.split("."),null!=a[1]&&""!=a[1]&&(h=a[1].replace(/[^0-9]/g,"")),null!=a[2]&&""!=a[2]&&(h+="."+a[2].replace(/[^0-9]/g,""))):-1<a.indexOf(".")?(a=a.split("."),null!=a[0]&&""!=a[0]&&(h=a[0].replace(/[^0-9]/g,"")),null!=a[1]&&""!=a[1]&&(h+="."+a[1].replace(/[^0-9]/g,""))):h=a.replace(/[^0-9]/g,
"");return h};String.prototype.comma=function(a){return this.replace(NUMBER_GROUP_PATTERN,a)};function checkFlot(a){return 0!=a%1}
var currencyInfo=function(a,n,h){h=void 0===h?!1:h;null!=n&&(n=n.toLowerCase());if(null===a||""===a)return"";a=String(a);var f=$("#siteCode").val(),c=checkFlot(a);if(c){var k=a.split(".");1<k.length&&2>k[1].length?a+="0":2<k[1].length&&(a=Number(a).toFixed(2))}var l=k="";if("levant"===f)l="jo";else if("levant_ar"===f)l="jo_ar";else if("ae"===f||"ae_ar"===f)if($.cookies.get("estoreSitecode")){var e=$.cookies.get("estoreSitecode").toString();l="ae"===e||"ae_ar"===e||"kw"===e||"kw_ar"===e||"om"===e||
"om_ar"===e||"bh"===e||"bh_ar"===e||"qa"===e||"qa_ar"===e?e:f}else l=f;var b=".00",g=",00";h&&(g=b="");var p=h="";e="";switch(n){case "usd":"n_africa"===f?(k=a.comma(" "),e=b,h=" DH"):"iq_ar"===f||"iq_ku"===f?(k=a.comma(","),e=b,h=" $"):(k=a.comma(","),e=b,p="$");break;case "cad":"ca_fr"===f?(k=a.comma(" "),k=k.replace(".",","),e=g,h=" $"):(k=a.comma(","),e=b,p="$");break;case "eur":"de"===f||"es"===f||"be_fr"===f||"it"===f||"pt"===f?(k=a.replace(".",","),k=k.comma("."),e=g,"be_fr"!==f&&(h=" \u20ac")):
"fi"===f||"fr"===f||"sk"===f||"at"===f||"ee"===f||"lt"===f||"lv"===f||"hr"===f?(k=a.replace(".",","),k=k.comma(" "),e=g,h=" \u20ac"):"si"==f?(k=a.replace(".",","),k=k.comma("."),e=g,h=" \u20ac"):(c?(k=a.replace(".",","),k=k.comma(".")):e=g,"be"!==f&&"nl"!==f?p="\u20ac ":"gr"===f&&(h=" \u20ac"));break;case "gbp":k=a.comma(",");e=b;p="\u00a3";break;case "sek":k=a.comma(" ");h=" kr";break;case "dkk":k=a.comma(" ");h=" kr";break;case "nok":k=a.comma(" ");h=" kr";break;case "brl":k=a.replace(".",",");
k=k.comma(".");e=g;p="R$ ";break;case "inr":n=b;c?(c=a.substring(0,a.indexOf(".")),n=a.substring(a.indexOf("."))):c=a;k=c+n;p="\u20b9 ";break;case "krw":k=a.comma(",");h="\uc6d0";break;case "aed":"ae_ar"===f?(k=a.comma(","),e=b,h="kw_ar"==l?" \u062f.\u0643":"om_ar"==l?" \u0631.\u0639.":"bh_ar"==l?" .\u062f.\u0628":"qa_ar"==l?" \u0631.\u0642":" \u062f.\u0625"):(k=a.comma(","),e=b,h="kw"==l?" KD":"bh"==l?" BD":"om"==l?" RO":"qa"==l?" QAR":" AED");break;case "rub":k=a.replace(".",",");k.comma(" ");k=
a.comma(" ");h=" \u20bd";break;case "twd":k=a.comma(",");p="NT$";break;case "czk":k=a.replace(".",",");k.comma(" ");k=a.comma(" ");h=" K\u010d";break;case "myr":k=a.comma(",");e=b;p="RM ";break;case "idr":k=a.comma(".");p="Rp ";break;case "pln":k=a.replace(".",",");k=k.comma(" ");e=g;h=" z\u0142";break;case "ron":k=a.replace(".",",");k=k.comma(".");e=g;h=" lei";break;case "php":k=a.comma(",");e=b;p="\u20b1";break;case "sar":k=a.comma(",");e=b;h="sa"==siteCode?" "+SAUDI_CURRENCY_SYMBOL:SAUDI_CURRENCY_SYMBOL+
" ";break;case "pab":k=a.comma(",");e=b;p="US$ ";break;case "mxn":k=a.comma(",");e=b;p="$ ";break;case "ars":k=a.comma(",");e=b;p="$ ";break;case "pen":k=a.comma(",");e=b;p="s/ ";break;case "clp":k=a.comma(".");p="$ ";break;case "cop":k=a.comma(".");p="$ ";break;case "vnd":k=a.comma(".");h=" VND";break;case "chf":"ch"===f||"ch_fr"===f?(k=a.replace(".",","),k=k.comma("."),e=g,h=" CHF"):(a.comma("'"),k=a.comma("'")+b,p="CHF ");break;case "hkd":k=a.comma(",");e=b;p="HK$ ";break;case "jod":break;case "lbp":k=
a.comma(",");e=b;"jo"==l?h=" JD":"jo_ar"==l&&(h=" \u062f.\u0627");break;case "pkr":k=a.comma(",");e=b;p="Rs. ";break;case "ils":k=a.comma(",");e=b;h=" \u20aa";break;case "kzt":k=a.comma(" ");h=" \u20b8";break;case "egp":k=a.comma(",");e=b;h=" \u062c.\u0645.";break;case "huf":a=String(Math.ceil(parseFloat(a)));k=a.comma(".");h=" Ft";break;case "hrk":k=a.replace(".",",");k=k.comma(".");e=g;h=" kn";break;case "uah":-1<a.indexOf(".")?(k=a.replace(".",","),k=k.comma(" ")):k=a.comma(" ");h=" \u20b4";break;
case "jpy":k=a.comma(",");h="\u5186";break;case "yen":k=a.comma(",");h="\u5186";break;case "iqd":c?(k=a.replace(".",","),k=k.comma(" ")):k=a.comma(",");"iq_ar"===f?h="\u062f.\u0639":"iq_ku"===f&&(h="\u062f.\u0639");break;case "mad":k=a.comma(" ");e=b;h=" DH";break;case "cny":k=a;p="\uffe5 ";break;case "try":k=a.replace(".",",");k=k.comma(".");e=g;h=" TL";break;default:try{k=parseFloat(a).toLocaleString($("#localLang").val(),{style:"currency",currency:n.toUpperCase()})}catch(r){k=a}}checkFlot(k)||
(k+=e);return{suffix:h,prefix:p,value:p+k+h,currency:(p+h).replace(" ","")}},deleteCurrency=function(a,n){if(fnIsNull(a))return"";if("cl"==siteCode||"py"==siteCode)a=a.replace(/[^0-9]/g,"");else if(("pe"==siteCode||"ar"==siteCode||"co"==siteCode||"pk"===siteCode)&&-1<a.indexOf(".")){var h=a.split(".");"pk"===siteCode?null!=h[1]&&""!=h[1]&&(a=h[1].replace(/[^0-9]/g,"")):null!=h[0]&&""!=h[0]&&(a=h[0].replace(/[^0-9]/g,""))}h=a;null!=n&&(n=n.toLowerCase());switch(n){case "usd":return-1<a.indexOf("$")&&
(h=a.replace("$","")),h;case "dollar":return-1<a.indexOf("$")&&(h=a.replace("$","")),h;case "eur":return-1<a.indexOf("\u20ac")&&(h=a.replace("\u20ac","")),h;case "gbp":return-1<a.indexOf("\u00a3")&&(h=a.replace("\u00a3","")),h;case "sek":return-1<a.indexOf("kr")&&(h=a.replace("kr","")),h;case "dkk":return-1<a.indexOf("kr")&&(h=a.replace("kr","")),h;case "nok":return-1<a.indexOf("kr")&&(h=a.replace("kr","")),h;case "brl":return-1<a.indexOf("R$")&&(h=a.replace(".","").replace("R$","").replace(" ","").replace(",",
".")),h;case "inr":return-1<a.indexOf("\u20b9")&&(h=a.replace("\u20b9","")),"\u20b9"+h;case "krw":return-1<a.indexOf("\uc6d0")&&(h=a.replace("\uc6d0","")),h;case "ae":return"ae_ar"===siteCode?-1<a.indexOf("\u062f.\u0625")&&(h=a.replace("\u062f.\u0625","")):-1<a.indexOf("AED")&&(h=a.replace("AED","")),h;case "rub":return-1<a.indexOf("\u20bd")&&(h=a.replace("\u20bd","")),h;case "twd":return-1<a.indexOf("NT$")&&(h=a.replace("NT$","")),"NT$"+h;case "czk":return-1<a.indexOf("K\u010d")&&(h=a.replace("K\u010d",
"")),h;case "myr":return-1<a.indexOf("RM")&&(h=a.replace("RM","")),h;case "aed":return-1<a.indexOf(" \u062f.\u0625")&&(h=a.replace(" \u062f.\u0625","")),h;case "pab":return-1<a.indexOf("U$S")?h=a.replace("U$S","").replace(",","").replace(" ",""):-1<a.indexOf("US$")&&(h=a.replace("US$","").replace(",","").replace(" ","")),h;case "mxn":return-1<a.indexOf("$")&&(h=a.replace("$","").replace(" ","")),h;case "ars":return-1<a.indexOf("$")&&(h=a.replace("$","").replace(" ","")),h;case "pen":return-1<a.indexOf("s/")&&
(h=a.replace("s/","").replace(" ","")),h;case "clp":return-1<a.indexOf("$")&&(h=a.replace("$","").replace(" ","")),h;case "cop":return-1<a.indexOf("$")&&(h=a.replace("$","").replace(" ","")),h;case "pyg":return-1<a.indexOf("\u20b2")&&(h=a.replace("\u20b2","").replace(" ","")),h;case "hkd":return-1<a.indexOf("HK$")&&(h=a.replace("HK$","").replace(" ","")),h;case "pkr":return a.indexOf("Rs."),h;case "ils":return-1<a.indexOf("\u20aa")&&(h=a.replace("\u20aa","").replace(" ","")),h;case "mad":return-1<
a.indexOf("DH")&&(h=a.replace("DH","")),h;default:return a}},imagePreset=function(a){return-1<a.indexOf("jpg")?"?$ORIGIN_JPG$":-1<a.indexOf("jpeg")?"?$ORIGIN_JPG$":-1<a.indexOf("png")?"?$ORIGIN_PNG$":-1<a.indexOf("gif")?"?$ORIGIN_GIF$":"?$ORIGIN_PNG$"},imgDomain=function(a,n){var h="",f=$("#scene7domain").val();null!==a&&(-1<a.indexOf("image.samsung.com")?h=a+imagePreset(a):-1<a.indexOf("http:")||""===a?h=a:(n&&(f=f.replace("/image/","/content/")),h=f+a+imagePreset(a)));return h},jqueryImgsrc=function(a,
n,h){if(null===a)return"";-1<a.indexOf("/content/dam/samsung")&&("qa"===n?(a="stg"===h?a.replace("/content/dam/samsung","//stg-images.samsung.com/is/image/samsung/assets"):"prod"===h?a.replace("/content/dam/samsung","//stg-images.samsung.com/is/image/samsung/assets"):a.replace("/content/dam/samsung","//stg-images.samsung.com/is/image/samsungdev/assets"),a+=imagePreset(a)):"live"===n&&(a="stg"===h?a.replace("/content/dam/samsung","//images.samsung.com/is/image/samsungstg/assets"):"prod"===h?a.replace("/content/dam/samsung",
"//images.samsung.com/is/image/samsung/assets"):a.replace("/content/dam/samsung","//images.samsung.com/is/image/samsungdev/assets"),a+=imagePreset(a)));return a},dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,n=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,h=/[^-+\dA-Z]/g,f=function(c,k){c=String(c);for(k=k||2;c.length<k;)c="0"+c;return c};return function(c,k,l){var e=
dateFormat,b=c;1!==arguments.length||"[object String]"!==Object.prototype.toString.call(c)||/\d/.test(c)||(k=c,c=void 0);c=c?new Date(c):new Date;if(isNaN(c)){if(b)return b;throw SyntaxError("invalid date");}k=String(e.masks[k]||k||e.masks["default"]);"UTC:"===k.slice(0,4)&&(k=k.slice(4),l=!0);var g=l?"getUTC":"get";b=c[g+"Date"]();var p=c[g+"Day"](),r=c[g+"Month"](),t=c[g+"FullYear"](),w=c[g+"Hours"](),z=c[g+"Minutes"](),D=c[g+"Seconds"]();g=c[g+"Milliseconds"]();var E=l?0:c.getTimezoneOffset(),
y={d:b,dd:f(b),ddd:e.i18n.dayNames[p],dddd:e.i18n.dayNames[p+7],m:r+1,mm:f(r+1),mmm:e.i18n.monthNames[r],mmmm:e.i18n.monthNames[r+12],yy:String(t).slice(2),yyyy:t,h:w%12||12,hh:f(w%12||12),H:w,HH:f(w),M:z,MM:f(z),s:D,ss:f(D),l:f(g,3),L:f(99<g?Math.round(g/10):g),t:12>w?"a":"p",tt:12>w?"am":"pm",T:12>w?"A":"P",TT:12>w?"AM":"PM",Z:l?"UTC":(String(c).match(n)||[""]).pop().replace(h,""),o:(0<E?"-":"+")+f(100*Math.floor(Math.abs(E)/60)+Math.abs(E)%60,4),S:["th","st","nd","rd"][3<b%10?0:(10!==b%100-b%10)*
b%10]};return k.replace(a,function(V){return V in y?y[V]:V.slice(1,V.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};
dateFormat.i18n={dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")};Date.prototype.format=function(a,n){return dateFormat(this,a,n)};
var loginJwtApiCal=function(a,n,h){var f={jwt:loginJwt};if("us"===siteCode){var c=$.cookies.get("epp_verified",{domain:".samsung.com"}),k=$.cookies.get("tmktid",{domain:".samsung.com"}),l=$.cookies.get("store_id",{domain:".samsung.com"});null!=c&&(c=c.toString(),"true"==c&&null!=k&&""!=k?f.store_id=k.toString():null!=l&&""!=l&&(f.store_id=l.toString()))}$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/user/validate",type:"POST",
dataType:"json",data:JSON.stringify(f),timeout:1E4,xhrFields:{withCredentials:!0},async:!1,beforeSend:function(e){"Y"===buyingMultiLanguageYn&&e.setRequestHeader("x-ecom-locale",n)},success:function(e){if(200!==e.statusCode&&"200"!==e.statusCode)return $.cookies.del("jwt_"+h,{domain:".samsung.com"}),{isValidJwtToken:!1}},error:function(e,b,g){console.error(b);return null==e.responseJSON||"StoreIdNotPresent"!==e.responseJSON.error?($.cookies.del("jwt_"+h,{domain:".samsung.com"}),{isValidJwtToken:!1}):
{loginFlag:!1}}})},isValidJwtTokenApiCal=function(a,n,h,f){$.cookies.get("ReD",{domain:".samsung.com"});a=$("#siteCode").val();var c=!1;$.ajax({url:"/aemapi/v6/data-login/callSALogin."+a+".json",type:"GET",dataType:"json",success:function(k){200===k.statusCode&&"Y"===k.redCookieChk&&$.cookies.get("jwt_"+h,{domain:".samsung.com"})&&(c=!0)},error:function(k,l,e){}});return c},loginJwtValidateApiCal=function(a,n,h,f,c){var k=!1;h={jwt:c};if("us"===siteCode){c=$.cookies.get("epp_verified",{domain:".samsung.com"});
var l=$.cookies.get("tmktid",{domain:".samsung.com"}),e=$.cookies.get("store_id",{domain:".samsung.com"});null!=c&&(c=c.toString(),"true"==c&&null!=l&&""!=l?h.store_id=l.toString():null!=e&&""!=e&&(h.store_id=e.toString()))}$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(h),xhrFields:{withCredentials:!0},async:!1,beforeSend:function(b){"Y"===f&&b.setRequestHeader("x-ecom-locale",
n)},success:function(b){200===b.statusCode||"200"===b.statusCode?(k=!0,$("#loginValidateYnForGPv2").val("Y")):$("#loginValidateYnForGPv2").val("N")},error:function(){$("#loginValidateYnForGPv2").val("N")}});return k},commonLoginCheck=function(a){var n="GPv2"===$("#shopIntegrationFlag").val()?!0:!1,h=function(){$("#loginValidateYnForGPv2").val("N");return!1};if(checkEppSite())if(null!=window.sg.epp&&null!=window.sg.epp.common)if(a&&"function"===typeof a)a(window.sg.epp.common.isLogged);else return window.sg.epp.common.isLogged;
else return!1;else if(n){a=$("#storeDomain").val();n=$("#countryIsoCode").val();var f=$("#multiLanguageYn").val(),c=$("#localLang").val(),k=$.cookies.get("xsdcxyn",{domain:".samsung.com"}),l=$.cookies.get("jwt_"+n,{domain:".samsung.com"}),e=$("#loginValidateYnForGPv2").val(),b=!1,g=!0;if("in"!==$("#siteCode").val()||a||n)if(e){if("Y"===e)return!0;if("N"===e)return!1}else{if(null!=l){k={jwt:l};var p=!1;"us"===siteCode&&(b=$.cookies.get("epp_verified",{domain:".samsung.com"}),l=$.cookies.get("tmktid",
{domain:".samsung.com"}),e=$.cookies.get("store_id",{domain:".samsung.com"}),null!=b&&(b=b.toString(),"true"==b&&null!=l&&""!=l?k.store_id=l.toString():null!=e&&""!=e&&(k.store_id=e.toString())),$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/jwt/details",type:"POST",async:!1,dataType:"json",data:JSON.stringify(k),xhrFields:{withCredentials:!0},success:function(r){null==r||""===r||null==r.login_type||"guest_epp_store"!==
r.login_type&&"referral_url"!==r.login_type||(p=!0)}}));p?b=h():$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(k),async:!1,xhrFields:{withCredentials:!0},beforeSend:function(r){"Y"===f&&r.setRequestHeader("x-ecom-locale",c)},success:function(r){200!==r.statusCode&&"200"!==r.statusCode&&(g=!1)},error:function(r,t,w){console.error(t);g=!1}});g?($("#loginValidateYnForGPv2").val("Y"),
b=!0):isValidJwtTokenApiCal(a,c,n,f)?(h=$.cookies.get("jwt_"+n,{domain:".samsung.com"}).toString(),b=loginJwtValidateApiCal(a,c,n,f,h)):b=h()}else null!=k?isValidJwtTokenApiCal(a,c,n,f)?(h=$.cookies.get("jwt_"+n,{domain:".samsung.com"}).toString(),b=loginJwtValidateApiCal(a,c,n,f,h)):b=h():b=h();return b}else return!!$.cookies.get("jwt_IND",{domain:".samsung.com"})}else return ss.Auth.checkSignIn(a)},addedWishList=[],commonGetWishlist=function(a){var n="it ch ch_fr hk hk_en hu ae ae_ar levant levant_ar es pt ca ca_fr sg za".split(" "),
h=$("#shopIntegrationFlag").val(),f="Hybris-new"===h?!0:!1,c=$("#storeDomain").val(),k=$("#b2bFlag").val(),l=$("#store_sitecode").val(),e=$("#siteCode").val(),b=!1;checkEppSite()&&null!=window.sg.epp&&null!=window.sg.epp.common&&(l=window.sg.epp.common.companyCode,b=window.sg.epp.common.isLogged);checkEppSite()||("levant"===e?l="jo":"levant_ar"===e&&(l="jo_ar"));addedWishList=[];if(f||k&&"true"==h||n.includes(e))c=c+"/tokocommercewebservices/v2/"+l+"/users/current/wishlist?loadEntries\x3dtrue",n.includes(e)&&
(c=$("#newHyvStoreDomain").val()+"/tokocommercewebservices/v2/"+l+"/users/current/wishlist?loadEntries\x3dtrue"),checkLoginCookie()||b?$.ajax({url:c,type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(r){if(null!=r&&null!=r.wishlists&&0<r.wishlists.length)for(wishlist in r.wishlists){var t=r.wishlists[wishlist];if(null!=t&&(t.isDefault||"N"===k&&n.includes(e))){if(null!=t.entries&&0<t.entries.length)for(entry in t.entries)if(r=t.entries[entry],null!=
r.product&&null!=r.product.code){var w={};w.sku=r.product.code;w.deleted=!1;addedWishList.push(w)}break}}},error:function(r){addedWishList=[]},complete:function(){a&&"function"===typeof a&&a()}}):a&&"function"===typeof a&&a();else if("GPv2"===h){h=$("#countryIsoCode").val();h=$.cookies.get("jwt_"+h,{domain:".samsung.com"});f={};b&&null!=window.sg.epp&&null!=window.sg.epp.common&&(f.store_id=window.sg.epp.common.companyCode);var g=$("#multiLanguageYn").val(),p=$("#hreflang").val();null!=h?$.ajax({headers:{"Cache-Control":"no-cache",
"Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store-global","x-ecom-jwt":h},url:c+"/v4/identity/wishlist",type:"GET",data:f,dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(r){"Y"===g&&r.setRequestHeader("x-ecom-locale",p)},success:function(r){null!=r&&(addedWishList=r)},error:function(r){addedWishList=[]},complete:function(){a&&"function"===typeof a&&a()}}):a&&"function"===typeof a&&a()}};
function fnIsNull(a){return""===a||void 0===a||null===a}function def(a,n){for(var h in n)Object.prototype.hasOwnProperty.call(n,h)&&("object"===$.type(a[h])?a[h]=this.isArray(a[h])?n[h].slice(0):this.def(a[h],n[h]):a[h]=n[h]);return a}
var cookies=function(){var a={expires:"",path:"/",domain:"",secure:"",httpOnly:""};return{setCookie:function(n,h,f){var c=new Date;c.setTime(c.getTime()+864E5*(f||0));f=def(a,{expires:c});document.cookie=[n,"\x3d",h,f.expires?"; expires\x3d"+f.expires.toUTCString():"",f.path?"; path\x3d"+f.path:"",f.domain?"; domain\x3d"+f.domain:"",f.secure?"; secure":""].join("")},setCookie2:function(n,h,f,c){var k=new Date;k.setTime(k.getTime()+864E5*(f||0));f=def(a,{expires:k});f.domain=!0===c?".samsung.com":
".samsung.com.cn";document.cookie=[n,"\x3d",h,f.expires?"; expires\x3d"+f.expires.toUTCString():"",f.path?"; path\x3d"+f.path:"",f.domain?"; domain\x3d"+f.domain:"",f.secure?"; secure":""].join("")},setCookie3:function(n,h,f,c,k,l){var e=new Date;e.setTime(e.getTime()+6E4*f);f=def(a,{expires:e});f.domain=!0===c?".samsung.com":".samsung.com.cn";!0===k&&(f.httpOnly="HttpOnly");!0===l&&(f.secure="secure");document.cookie=[n,"\x3d",h,f.expires?"; expires\x3d"+f.expires.toUTCString():"",f.path?"; path\x3d"+
f.path:"",f.domain?"; domain\x3d"+f.domain:"",f.secure?"; secure":"",f.httpOnly?"; HttpOnly":""].join("")},getCookie:function(n){n+="\x3d";for(var h=document.cookie.split(";"),f,c=0,k=h.length;c<k;c++){for(f=h[c];" "===f.charAt(0);)f=f.substring(1);if(-1!==f.indexOf(n))return f.substring(n.length,f.length)}return""},setCookieMailForm:function(n){for(var h in n)if(this.checkMailName(h)&&null!=n[h]){var f=n[h].replace(";","||@||");this.setCookie("mail_form_"+h,f,1)}},checkMailName:function(n){return n&&
("CompanyName"===n||"ContactFirstName"===n||"ContactName"===n||"EmailAddress"===n||"CompanyAddress"===n||"CompanyInterest"===n||"JobTitle"===n||"Employee"===n||"City"===n||"Zipcode"===n||"Telephone"===n)},getCookieMailForm:function(){var n=document.cookie.split(";"),h={};n=$jscomp.makeIterator(n);for(var f=n.next();!f.done;f=n.next())if(f=f.value,0<f.indexOf("mail_form_")){var c=f.replace("mail_form_","").trim().split("\x3d");f=c[0];c=c[1].replace("||@||",";");h[f]=c}return h},getCookies:function(){var n=
document.cookie.split(";"),h={};n=$jscomp.makeIterator(n);for(var f=n.next();!f.done;f=n.next())f=f.value.trim().split("\x3d"),h[f[0]]=f[1];return h}}}(),isNotEmpty=function(a){return"number"!=typeof a&&""==a||null==a||void 0==a||null!=a&&"object"==typeof a&&!Object.keys(a).length?!1:!0};void 0===window.sg&&(window.sg={});void 0===window.sg.components&&(window.sg.components={});
window.sg.components.pfdevfn={afterAddWishlist:function(a,n,h,f,c,k){fnIsNull(a)||(a.hasClass(n)?"GPv2"===f&&a.removeClass(n):a.addClass(n),n=h,k&&""!=k&&(n=k),"hybrisIntg"===f?(a.prop("disabled",!0),a.attr("data-add-text",h),a.removeAttr("aria-label"),a.addClass("cta--disabled")):"GPv2"===f&&(a.hasClass("js-delete-wishlist-btn")?(a.removeClass("js-delete-wishlist-btn"),a.removeAttr("data-added-text"),a.attr("data-add-text",h),a.attr("an-la","add to wishlist"),a.find("span").text(h),a.blur()):(a.addClass("js-delete-wishlist-btn"),
a.removeAttr("data-add-text"),a.attr("data-added-text",h),a.attr("an-la","remove from wishlist"),a.find("span").text(h),h={},h.sku=c,h.deleted=!1,addedWishList.push(h)),window.sg.components.wishlistIcon.reInit()),a.removeAttr("aria-label").attr("aria-label",n))},spliceAddedWishList:function(a){if(0<addedWishList.length)for(var n=0;n<addedWishList.length;n++)if(addedWishList[n].sku===a){addedWishList.splice(n,1);break}}};
function modelCodeToSelector(a){var n="";a&&(n=a.replace(/\//g,"@$"));return n}
function addToCartNewHybris(a,n,h,f,c,k,l){n=void 0===n?"":n;c=void 0===c?{}:c;k=void 0===k?!1:k;var e=$("#storeDomain")?$("#storeDomain").val()+"/tokocommercewebservices/v2":"",b=$("#storeWebDomain").val(),g=$("#store_sitecode").val(),p=$("#siteCode")?$("#siteCode").val():"",r=$("#tempTitle").val(),t=k?g:getMultistoreSiteCode(p),w="page-wearable-bc"===$("#tempTitle").val()||"page-wearable-bc-v2"===$("#tempTitle").val()?"\x26ref\x3dwbc":"",z=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val()+
"/tokocommercewebservices/v2":"";g="Y"===$("#useNewAddToCartApi").val()?!0:!1;var D="ae ae_ar at au be be_fr bg ca ca_fr ch ch_fr cl cn co de dk eg es fi fr hk hk_en hu nl il it iq_ku iq_ar my mx no nz n_africa levant levant_ar pe ph pt pk sa sa_en se sg th tr tw vn za jp hr si ee lv lt cz sk pl gr ua ro kz_kz kz_ru in id".split(" "),E=["jp","be","be_fr","nl"],y=$("#categoryTypeCode").val();t=checkEppSite()?null!=window.sg.epp&&null!=window.sg.epp.common?window.sg.epp.common.companyCode:"":t;var V=
window.cookies.getCookie("eligible_epp");V&&-1<location.pathname.indexOf("/us/mypage")&&(t=V.split("/").reverse()[0]);e=e+"/"+t+"/addToCart/multi/?fields\x3dBASIC"+w;g&&z&&!k&&(e=z+"/"+t+"/addToCart/multi/?fields\x3dBASIC"+w);w=[];var ca="",xa=!1;if(f){f.isAddonComponent&&(w=f.filter(function(wa){return wa}));f.bezelCode&&!f.isContinue&&w.push({productCode:f.bezelCode,qty:1});if(f.embedaddon&&0<f.embedaddon.length)for(t=$jscomp.makeIterator(f.embedaddon),z=t.next();!z.done;z=t.next())w.push({productCode:z.value,
qty:1});if(f.addon&&f.addon.modelCodeList&&0<f.addon.modelCodeList.length)for(t=$jscomp.makeIterator(f.addon.modelCodeList),z=t.next();!z.done;z=t.next()){z=z.value;V={productCode:z,qty:1};if("at"==p&&("page-buying-pd"==r||"page-standard-pd"==r)){var ea=f.addon.childModelObject;if(0<Object.keys(ea).length)for(var va in ea)va==z&&(V.childProducts=[],V.childProducts.push({product:{code:ea[va]},quantity:1}))}w.push(V)}if(f.gift&&f.gift.modelCode)for(r=0;r<f.gift.modelCode.length;r++)w.push({productCode:f.gift.modelCode[r],
qty:1});if(f.combo&&f.combo.modelCodeList&&0<f.combo.modelCodeList.length)for(r=$jscomp.makeIterator(f.combo.modelCodeList),z=r.next();!z.done;z=r.next())va=z.value,w.push({productCode:va,qty:1}),va.indexOf("SIM");if(f.multi&&f.multi.modelCodeList&&0<f.multi.modelCodeList.length)for(r=$jscomp.makeIterator(f.multi.modelCodeList),z=r.next();!z.done;z=r.next())w.push({productCode:z.value,qty:1})}if(a){var na={productCode:a,qty:1};if(f){f.band&&f.band.bandCode&&(na.childProducts=[],na.childProducts.push({product:{code:f.band.bandCode},
quantity:1}));na.services=[];f.orignalQuantity&&(na.qty=f.orignalQuantity.quantity);f.postalCode&&(na.postalCode=f.postalCode);if(("cn"==p||"tr"==p)&&f.tradeIn&&f.tradeIn.plan_id)for(r=$jscomp.makeIterator(f.tradeIn.tradeInResultList),va=r.next();!va.done;va=r.next())va=va.value,na.services.push({serviceCode:va.services.serviceCode,provider:va.services.provider,addToCartType:"append",additionalInfos:va.services.tradeInAdditionalInfo});if(f.exchange&&f.exchange.exchangeId&&D.includes(p))"in"==p?f.exchange.tradeInType&&
"CE"===f.exchange.tradeInType?na.services.push({exchangeId:f.exchange.exchangeId,additionalInfos:[{key:"isTradeUp",value:"true"}]}):na.services.push({exchangeId:f.exchange.exchangeId}):na.services.push({exchangeId:f.exchange.exchangeId,serviceType:"TRADE_UP"});else if(f.exchange&&f.exchange.exchangeId&&"uk"==p)na.services.push({exchangeId:f.exchange.exchangeId,serviceType:"TRADE_UP"});else if(f.tradeIn&&f.tradeIn.plan_id&&!g&&"cn"!=p&&"tr"!=p)na.services.push({exchangeId:f.tradeIn.plan_id});else if(f.tradeIn&&
f.tradeIn.plan_id&&E.includes(p))na.services.push({exchangeId:f.tradeIn.plan_id});else if(f.tradeIn&&f.tradeIn.plan_id&&g){var cb=f.tradeIn.tradeInResultList;if(0<cb.length){var db=!1;$.each(cb,function(wa,Ra){var Ia=Ra.services;if(Ia){Ia.tradeInType||(Ia.tradeInType="IMEI");$.each(Ia.tradeInAdditionalInfo,function(I,N){"sg"!=p||"compasia.imei"!=N.key||isNotEmpty(N.value)||(N.value=Ia.imeiKey);if(!isNotEmpty(Ia.imeiKey)&&N.key==Ia.tradeInType)return Ia.imeiKey=N.value,!1});na.services.push({serviceCode:Ia.serviceCode,
additionalInfos:[{key:Ia.tradeInType,value:Ia.imeiKey}]});"de"==p&&(na.services[wa].serviceCode=Ia.serviceCode,na.services[wa].provider=Ia.provider);"fr"==p&&null!=Ia.serviceType&&void 0!=Ia.serviceType&&(na.services[wa].serviceType=Ia.serviceTypeCode);"bg"==p&&(na.services[wa].provider="FOXWAY");"at"!=p||y.startsWith("01")||na.services[wa].additionalInfos.push({key:"isTradeInTVEnabled",value:!0});Ia.tradeInAdditionalInfo&&$.each(Ia.tradeInAdditionalInfo,function(I,N){na.services[wa].additionalInfos.push({key:N.key,
value:N.value});"serviceID"==N.key&&(Ia.serviceID=N.value)});var M=0;Ra.specialPrice&&!db&&(db=!0,M=Ra.specialPrice);Ra.dataPrice&&Ia.serviceID&&"au"==p&&(na.services[wa].additionalInfos=na.services[wa].additionalInfos.filter(function(I){return"discountAmount"!=I.key&&"additionalDiscount"!=I.key&&"totalTradeinAmount"!=I.key&&!("IMEI"==I.key&&I.value==Ia.serviceID)}),na.services[wa].additionalInfos.push({key:"discountAmount",value:Ra.discountAmountPrice}),na.services[wa].additionalInfos.push({key:"additionalDiscount",
value:M}),na.services[wa].additionalInfos.push({key:"totalTradeinAmount",value:Ra.discountAmountPrice+M}));Ra.dataPrice&&!Ia.serviceID&&("au"==p?(na.services[wa].additionalInfos=na.services[wa].additionalInfos.filter(function(I){return"discountAmount"!=I.key&&"additionalDiscount"!=I.key&&"totalTradeinAmount"!=I.key}),na.services[wa].additionalInfos.push({key:"discountAmount",value:Ra.discountAmountPrice}),na.services[wa].additionalInfos.push({key:"additionalDiscount",value:M}),na.services[wa].additionalInfos.push({key:"totalTradeinAmount",
value:Ra.discountAmountPrice+M})):"kz_kz"!=p&&"kz_ru"!=p&&na.services[wa].additionalInfos.push({key:"discountAmount",value:Ra.dataPrice}));1<cb.length&&(na.services[wa].addToCartType="APPEND");Ia.questionAndAnswer&&0<Ia.questionAndAnswer.length&&(na.services[wa].additionalInfos.push({key:"questionAndAnswer",value:JSON.stringify(Ia.questionAndAnswer)}),$.each(Ia.questionAndAnswer,function(I,N){na.services[wa].assessmentCriteria||(na.services[wa].assessmentCriteria=[]);na.services[wa].assessmentCriteria.push({name:N.name,
value:N.value})}))}else Ra={serviceCode:Ra.services.serviceCode,additionalInfos:[{key:"IMEI",value:Ra.services.imeiKey},{key:"discountAmount",value:Ra.dataPrice}]},1<cb.length&&(Ra.addToCartType="append"),na.services.push(Ra)})}}else f.exchange&&f.exchange.exchangeId&&na.services.push({exchangeId:f.exchange.exchangeId,provider:"EXCHANGE"});f.samsungUpgrade&&na.services.push({serviceCode:f.samsungUpgrade.serviceCode});f.care&&f.care.modelCode&&f.care&&f.care.modelCode&&(D={serviceCode:f.care.modelCode},
f.care.isMonltly&&(D.additionalInfos=[{key:"paymentCycle",value:f.care.paymentCycle}]),na.services.push(D));f.upgrade&&f.upgrade.modelCode&&na.services.push({serviceCode:f.upgrade.modelCode});f.tariff&&f.tariff.modelCode&&(f.tariff.tariffResult.isBroadbandService?na.services.push({planId:f.tariff.modelCode,serviceType:"BROADBAND_PLAN",serviceAddress:f.tariff.tariffResult.tariffArr[0],serviceCode:f.tariff.tariffResult.simSkuCode}):na.services.push({planId:f.tariff.modelCode,serviceType:"SIM_PLAN",
serviceCode:f.tariff.tariffResult.simSkuCode}),e+="\x26newCart\x3dtrue");f.newAssuredBuyBack&&f.newAssuredBuyBack.modelCode&&na.services.push({serviceCode:f.newAssuredBuyBack.modelCode});if("cn"===p&&f.installment&&f.installment.selectedOffers)for(na.selectedOffers=[],D=$jscomp.makeIterator(f.installment.selectedOffers),E=D.next();!E.done;E=D.next())na.selectedOffers.push(E.value);f.warrantyVd&&f.warrantyVd.modelCode&&na.services.push({serviceCode:f.warrantyVd.modelCode});if(k){if(f.tradeIn&&f.tradeIn.exchangeData)for(E=
$jscomp.makeIterator(f.tradeIn.exchangeData),D=E.next();!D.done;D=E.next())na.services.push(D.value);f.samsungCareData&&na.services.push(f.samsungCareData);f.knoxManage&&na.services.push({serviceCode:f.knoxManage.serviceSkuCode})}}na&&w.push(na)}if(0===w.length)n?location.href=n:h&&"function"===typeof h&&(h(ca,xa,c),ss.Auth.getGlobalCartCount());else if(k&&"uk"!==p&&"cn"!==p&&"tr"!==p&&!g){g=1;e=0;D=[];k={products:[]};b+="/servicesv2/addToCart";if(f&&(f.orignalQuantity&&(g=f.orignalQuantity.quantity),
f.addon&&f.addon.modelCodeList&&0<f.addon.modelCodeList.length))for(E=$jscomp.makeIterator(f.addon.modelCodeList),z=E.next();!z.done;z=E.next())w=z.value,D.push("products["+e+"].productCode\x3d"+w+"\x26products["+e+"].quantity\x3d1"),e++,k.products.push({productCode:w,quantity:1});if(a){D.push("products["+e+"].productCode\x3d"+a+"\x26products["+e+"].quantity\x3d"+g);e++;a={productCode:a,quantity:g,services:[]};if(f){if(f.tradeIn&&f.tradeIn.exchangeData)for(g=$jscomp.makeIterator(f.tradeIn.exchangeData),
D=g.next();!D.done;D=g.next())a.services.push(D.value);f.samsungCareData&&a.services.push(f.samsungCareData);f.knoxManage&&a.services.push({serviceCode:f.knoxManage.serviceSkuCode})}a&&k.products.push(a)}$.ajax({url:b,type:"POST",cache:!1,crossDomain:!0,xhrFields:{withCredentials:!0},contentType:"application/json",dataType:"json",data:JSON.stringify(k),timeout:2E4,success:function(wa){if("0000"===wa.resultCode||"00301"===wa.resultCode||"00302"===wa.resultCode)ca=wa,xa=!0},error:function(wa){var Ra=
"";wa.responseJSON&&wa.responseJSON.message&&(Ra=wa.responseJSON.message);confirmPopup(Ra,null,null,l)},complete:function(){xa&&(n&&"00301"!==ca.resultCode&&"00302"!==ca.resultCode?location.href=n:h&&"function"===typeof h&&(h(ca,xa,c),ss.Auth.getGlobalCartCount()))}})}else $.ajax({url:e,type:"POST",dataType:"json",cache:!0,crossDomain:!0,contentType:"application/json",timeout:3E4,xhrFields:{withCredentials:!0},data:JSON.stringify(w),success:function(wa){ca=wa;xa=!0},error:function(wa){var Ra="";wa.responseJSON&&
wa.responseJSON.message&&(Ra=wa.responseJSON.message);if(wa&&wa.responseJSON&&wa.responseJSON.errors&&0<wa.responseJSON.errors.length&&wa.responseJSON.errors[0]&&wa.responseJSON.errors[0].type){var Ia=wa.responseJSON.errors[0].type,M="Please remove Samsung Flex or Samsung Upgrade to order multiple items, or place a separate order.";"cn"==p?M=Granite.I18n.get("Please remove Samsung Flex or Samsung Upgrade to order multiple items, or place a separate order."):"uk"==p&&(M="Please remove Galaxy Club to order multiple items, or place a separate order");
"TokoUpgradeProductsError"==Ia&&(Ra=M);("levant"==p||"levant_ar"==p||"sa"==p||"sa_en"==p||"ae"==p||"ae_ar"==p)&&"MaxExternalServiceLimitError"==Ia&&wa.responseJSON.errors[0].type&&wa.responseJSON.errors[0].message&&(Ra=wa.responseJSON.errors[0].message)}confirmPopup(Ra,null,null,l)},complete:function(){xa&&(n&&"00301"!==ca[0].statusCode&&"00302"!==ca[0].statusCode?location.href=n:h&&"function"===typeof h&&(h(ca,xa,c),ss.Auth.getGlobalCartCount()))}})}
function setCookieData(a,n,h,f){var c=new Date,k="";c.setTime(c.getTime()+36E5*(h||0));f&&(k="; path\x3d"+f);document.cookie=a+"\x3d"+n+"; domain\x3dsamsung.com; expires\x3d"+c.toUTCString()+k}
function getNewCartId(a,n){n=void 0===n?{}:n;var h=commonLoginCheck(),f=$("#storeDomain")?$("#storeDomain").val()+"/tokocommercewebservices/v2":"",c=$("#siteCode")?$("#siteCode").val():"",k=$("#store_sitecode").val(),l=$("#b2bFlag").val(),e=$.cookies.get("hybriscartID-guid"),b=$.cookies.get("hybriscartID-code"),g=!1,p="",r=!1;h&&!b?(g=!0,p="current"):h||e?(r=!0,a&&"function"===typeof a&&a(r,n)):(g=!0,p="anonymous");g&&(h=f+"/"+c+"/users/"+p+"/carts?fields\x3dBASIC","Y"===l&&(h=f+"/"+k+"/users/"+p+
"/carts?fields\x3dBASIC"),$.ajax({url:h,type:"POST",dataType:"json",cache:!0,crossDomain:!0,timeout:5E3,xhrFields:{withCredentials:!0},success:function(t){if(t&&(t.code||t.guid)){var w=-1<location.href.indexOf("/content/samsung")?"/content/samsung/"+c:""+c;"current"===p?(r=!0,setCookieData("hybriscartID-code",t.code,1,w)):(r=!0,setCookieData("hybriscartID-guid",t.guid,1,w))}},error:function(t){var w="";t.responseJSON&&t.responseJSON.message&&(w=t.responseJSON.message);confirmPopup(w)},complete:function(){a&&
"function"===typeof a&&a(r,n)}}))}function goToSMBRegister(a,n){$.cookies.del("isSMBRegisteredUserYN",{path:"/"+SITE_CD+"/",domain:".samsung.com"});n?document.location.href=a:($.cookies.set("goSMBRegisterYN","Y",{domain:".samsung.com"}),$.cookies.set("smbRegisterUrl",a,{domain:".samsung.com"}),ss.Auth.callSaSignInGate())}
function checkEppSite(){var a="",n=document.location.pathname;n=n.replace(".html","/");n=n.split("/");5<=n.length&&"content"==n[1]&&"samsung"==n[2]?a=n[4]:3<=n.length&&(a="cn"===$("#siteCode").val()?n[1]:n[2]);return"multistore"==a}
function getEppMultiStorePath(a){if(checkEppSite()){if(fnIsNull(a)||a.startsWith("//")||a.startsWith("http:")||a.startsWith("https:")||a.includes("/multistore/")||a.startsWith("/"+siteCode+"/")||a.startsWith("/"+siteCode))return a;var n="/"+siteCode+"/multistore/"+window.sg.epp.common.companyCode;a.startsWith("/")||(a="/"+a);return n+a}return a}
function checkLoginCookie(){var a=Object.freeze({B2C:"xsdcxyn",B2B:"xsdcbxyn"}),n=Object.freeze({BASE:".samsung.com",CN:".samsung.com.cn"}),h=$("#b2bFlag").val(),f=$("#siteCode").val(),c=$("#shopIntegrationFlag").val();n="cn"===f?n.CN:n.BASE;a="Y"===h?a.B2B:a.B2C;["Hybris","Hybris-intg","Hybris-new"].includes(c);document.cookie.match(a);return!!$.cookies.get(a,{domain:n})}
function getSECACountryRegion(){var a=$("#siteCode").val();return["ca","ca_fr"].includes(a)?$.cookies.get("country_region",{domain:".samsung.com"})||"CA-ON":""}function ellipsize(a,n){n=void 0===n?12:n;if("string"!==typeof a){var h;a=String(null!=(h=a)?h:"")}return a.length<=n?a:a.slice(0,n)+"..."}
(function(a){"undefined"===typeof a.cookies&&(a.cookies={});var n=a("#siteCode").val(),h="/";"cn"!==n&&(h="/"+n+"/");"/global_nw/"===h?h="/global/business/networks/":"/global_cps/"===h&&(h="/global/business/compressor/");a.cookies.data=a.cookies.data||{};a.cookies.data.SEARCH_NAME="sk";a.cookies.data.ACCESSORY_SEARCH_NAME="ask";a.cookies.getDefaultOption=function(f,c){f&&f instanceof Date||(f=new Date,f.setTime(f.getTime()+864E5));c?-1<window.location.pathname.indexOf("/content/samsung")&&(c="/content/samsung"+
c):c="/";var k=".samsung.com";"cn"===n&&(k=".samsung.com.cn");return{expiresAt:f,path:c,domain:k,secure:!1}};a.cookies.setSearchKeyword=function(f,c){var k=this.data.SEARCH_NAME,l=this.get(k);if(l){if(0<=a.inArray(f,l))return;4<=l.length&&l.splice(0,1);l.push(f)}else l=[f];this.set(k,l,this.getDefaultOption(c,h))};a.cookies.getSearchKeyword=function(){var f=this.get(this.data.SEARCH_NAME);return f&&a.isArray(f)?f:[]};a.cookies.clearSearchKeyword=function(f){this.del(this.data.SEARCH_NAME,this.getDefaultOption(f,
h))};a.cookies.setAccessorySearchKeyword=function(f,c){var k=this.data.ACCESSORY_SEARCH_NAME,l=this.get(k);if(l){if(0<=a.inArray(f,l))return;4<=l.length&&l.splice(0,1);l.push(f)}else l=[f];this.set(k,l,this.getDefaultOption(c,h))};a.cookies.getAccessorySearchKeyword=function(){var f=this.get(this.data.ACCESSORY_SEARCH_NAME);return f&&a.isArray(f)?f:[]};a.cookies.clearAccessorySearchKeyword=function(f){this.del(this.data.ACCESSORY_SEARCH_NAME,this.getDefaultOption(f,h))};a(function(){var f="us"===
n;if("live"===a("#runmodeInfo").val()&&"Y"===a("#b2bFlag").val()&&!f){f="";if("business solution detail"===digitalData.page.pageInfo.pageTrack||"business solutions detail"===digitalData.page.pageInfo.pageTrack)f="solution";else if("business insight detail"===digitalData.page.pageInfo.pageTrack||"business insights detail"===digitalData.page.pageInfo.pageTrack)f="insight";""!==f&&void 0!==window.sg.components.util&&(this.cookieUtil=new window.sg.components.util.CookieUtil,this.cookieUtil.addHistory(f,
a("#pathString").val(),a("#pageUrl").val()))}})})(window.jQuery);
(function(a,n){function h(M,I){if(I.children)for(var N=0;N<I.children.length;){var T=I.children[N],Z=T.classList;if(Z&&Z.contains("sdf-component-metadata"))f(M,T);else if(Z&&Z.contains("sdf-component-templates")){Z=T.children;for(var fa=0;fa<Z.length;){var qa=Z[fa];qa.hasAttribute("data-sdf-template")?c(M,qa):fa++}I.removeChild(T)}else T.hasAttribute("data-sdf-template")?c(M,T):(T.hasAttribute("data-sdf-test")&&(Z=T.sdfContext={},l(Z,T.getAttribute("data-sdf-test")),T.removeAttribute("data-sdf-test")),
T.hasAttribute("data-sdf-call")?(Z=T.sdfContext={},e(Z,T.getAttribute("data-sdf-call")),T.removeAttribute("data-sdf-call")):(h(M,T),N++))}}function f(M,I){I=a(I);I.find("[data-sdf-prop]").each(function(){var N=a.trim(this.getAttribute("data-sdf-prop"));N&&0<N.length&&M.metadata.set(N,a.trim(this.textContent))});I.remove()}function c(M,I){var N=a(I),T=I.parentElement;N.removeClass("sdf-component-template");var Z=a.trim(I.getAttribute("data-sdf-template"));if(0===Z.length)log.error("[SDF] Illegal template attribute: template name required: "+
na(I));else{var fa=Z.indexOf("@");var qa=0>fa?Z:a.trim(Z.substring(0,fa));if(0===qa.length)log.error("[SDF] Illegal template attribute: template name is empty: "+na(I));else{var ua=a.trim(Z.substring(fa+1));Z=[];fa=!1;if(0<ua.length){ua=ua.split(",");for(var ob=0;ob<ua.length;ob++){var Ha=a.trim(ua[ob]);if(0!==Ha.length){var Ya=Ha.indexOf("\x3d");if(0>Ya)Z.push({variable:Ha});else{var oa=a.trim(Ha.substring(0,Ya));Ha=t(a.trim(Ha.substring(Ya+1)));!fa&&Ha&&(fa=!0);Z.push({variable:oa,reference:Ha})}}}}I.removeAttribute("data-sdf-template");
if(fa){T=n.createElement(I.localName);if(I.hasAttributes()){fa=I.attributes;for(ua=0;ua<fa.length;ua++)T.setAttribute(fa[ua].localName,fa[ua].nodeValue);fa=I.attributes;for(ua=fa.length-1;0<=ua;ua--)I.removeAttribute(fa[ua].localName)}if(I.hasChildNodes())for(;I.firstChild;)T.appendChild(I.firstChild);fa=r(qa);I.sdfContext={invokeTemplate:{template:qa,isDynamic:fa,nameToken:fa?p(qa):null,binds:Z}};I=T}else T&&T.removeChild(I);T=I;fa=(fa=N.parent())&&0<fa.length&&!fa.hasClass("sdf-component-templates")?
fa.get(0):null;N={name:qa,element:T,$element:N,variables:Z,target:fa};M.templates.set(qa,N);I.sdfContext=I.sdfContext||{};I.sdfContext.template=N;k(M,N,I)}}}function k(M,I,N){if(N.nodeType===n.ELEMENT_NODE){a:{N.sdfContext=N.sdfContext||{};if(N.hasAttributes()){if(N.hasAttribute("data-sdf-template")){c(M,N);M=!0;break a}for(var T=N.attributes,Z=N.sdfContext,fa=0;fa<T.length;fa++){var qa=T[fa],ua=qa.name;qa=qa.nodeValue;if("data-sdf-test"===ua)l(Z,qa);else if("data-sdf-call"===ua)e(Z,qa);else if("data-sdf-unwrap"===
ua)ua=Z,r(qa)?ua.unwrap={isDynamic:!0,value:t(qa)}:(qa=a.trim(qa),ua.unwrap={isDynamic:!1,value:0===qa.length||"true"===qa.toLowerCase()});else if("data-sdf-element"===ua)ua=Z,r(qa)?ua.element={isDynamic:!0,value:t(qa)}:ua.element={isDynamic:!1,value:a.trim(qa)};else if(0===ua.indexOf("data-sdf-attr")){var ob=Z;ua=ua.substring(13);1>=ua.length||"."!==ua.charAt(0)?console.warn("[SDF] Empty dynamic attribute name: "+ua+'\x3d"'+qa+'"'):g(ob,!0,!1,ua.substring(1),p(qa))}else 0===ua.indexOf("data-sdf-list")?
b("data-sdf-list",Z,ua,qa):0===ua.indexOf("data-sdf-repeat")?b("data-sdf-repeat",Z,ua,qa):(ob=r(qa),g(Z,ob,!0,ua,ob?p(qa):qa))}N.sdfContext=Z}if(N.hasChildNodes())for(N=N.childNodes,T=0;T<N.length;)k(M,I,N[T])||T++;M=!1}return M}N.nodeType===n.TEXT_NODE&&0<=N.nodeValue.indexOf("{{")&&(M=p(N.nodeValue),N.sdfContext={bindTokens:M});return!1}function l(M,I){var N=r(I),T=N?t(a.trim(I)):I.toLowerCase();T&&0<T.length?N?(I=T.split(/[ \t]+/),2===I.length&&"not"===I[0]?(M.testInverse=!0,M.test=I[1]):M.test=
T):M.test="true"===T:console.warn("[SDF] Empty test attribute: "+aname+'\x3d"'+I+'"')}function e(M,I){var N=a.trim(I).split(/\s*@\s*/);if(0===N[0].length)console.warn("[SDF] Illegal template call: "+I+'"');else{I=N[0];var T=r(I);M.invokeTemplate={template:I,isDynamic:T,nameTokens:T?p(I):null};if(1<N.length&&0<N[1].length){I=[];N=N[1].split(/\s*,\s*/);for(T=0;T<N.length;T++)if(0<N[T].length){var Z=N[T].split(/\s*=\s*/);2<Z.length||0===Z[0].length?console.warn("[SDF] Illegal variable binds: "+N[T]):
I.push({variable:Z[0],reference:2===Z.length?t(Z[1]):null})}0<I.length&&(M.invokeTemplate.binds=I)}}}function b(M,I,N,T){N=N.substring(M.length);var Z=1<N.length&&"."===N.charAt(0)?N.substring(1):"";0===Z.length&&(Z="item");var fa=t(T);0===fa.length?console.warn("[SDF] Illegal '"+M+"' directive: "+N+'\x3d"'+T+'"'):I["data-sdf-list"===M?"list":"repeat"]={variable:Z,reference:fa}}function g(M,I,N,T,Z){T&&Z&&0<Z.length&&(M.attributes||(M.attributes={}),M.attributes[T]={isDynamic:I,isAllowBlank:N,isNamespaceProvided:0<
T.indexOf(":"),name:T,value:Z})}function p(M){for(var I=0,N=0,T=[];I<M.length;){I=M.indexOf("{{",N);if(0>I){T.push(M.substring(N));break}T.push(M.substring(N,I));N=M.indexOf("}}",I+2);if(0>N){T.push(M.substring(I));break}T.push(M.substring(I+2,N));I=N+=2}return T}function r(M){var I=M.indexOf("{{");return 0<=I?0<M.indexOf("}}",I+2+1):!1}function t(M){if(!M||4>M.length)return"";var I=M.indexOf("{{"),N=M.indexOf("}}");return 0>I||0>N||I>N||I+2===N?(console.warn("[SDF] Illegal expression: "+M),""):M.substring(I+
2,N)}function w(M,I,N,T){(T=T||I.target)||console.log("[SDF] Unknown bind target with template: "+I.name);var Z={component:M,template:I,bindObject:N,target:T,parent:T||a("\x3cdiv\x3e\x3c/div\x3e").get(0),currentNode:I.element},fa=z(Z);fa&&(fa.boundData=N);0<M.observers.length&&M.notify("onTemplateRendered",{template:I,target:T,boundData:N});return T?fa:Z.parent}function z(M){var I=M.currentNode,N=I.sdfContext;if(I.nodeType===n.TEXT_NODE){var T=I.nodeValue;N?N.bindTokens&&(T=V(N.bindTokens,M.bindObject)):
r(T)&&(T=p(T),T=V(T,M.bindObject));N=document.createElement("div");for(N.innerHTML=T;N.firstChild;)M.parent.appendChild(N.firstChild);return I}a:if(T=N||{},I=M.bindObject,ca(T,I)){if(T.invokeTemplate){N=T.invokeTemplate;var Z=N.isDynamic?V(N.nameTokens,I):N.template,fa=M.component.templates.get(Z);if(fa){M=D(M.component,fa,N.binds,I,M.parent);break a}else console.warn("[SDF] Unknown template '"+Z+"'")}N=!1;T.unwrap&&(Z=T.unwrap,!Z.isDynamic&&!0===Z.value||Z.isDynamic&&!0===y(Z.value))&&(N=!0);Z=void 0;
if(T.repeat||T.list){if(T.repeat){fa=N;var qa=y(I,T.repeat.reference);if(qa&&0<qa.length){for(var ua=M.parent,ob=M.currentNode,Ha=T.repeat.variable,Ya=Ha+"List",oa=0;oa<qa.length;oa++){var ib=qa[oa];I[Ha]=ib||{};try{ib.loopIndex=String(oa),ib.loopCount=String(oa+1)}catch(lc){}ib=I[Ya]=I[Ya]||{};ib.loopIndex=String(oa);ib.loopCount=String(oa+1);M.parent=fa?ua:xa(ua,ob,T,I);M.currentNode=ob;E(M)}delete I[Ha];M.parent=ua}}if(T.list&&(Z=void 0,(fa=y(I,T.list.reference))&&0<fa.length)){qa=M.parent;ua=
M.currentNode;ob=T.list.variable;Ha=ob+"List";N||(Z=xa(qa,ua,T,I),M.parent=Z);for(T=0;T<fa.length;T++){Ya=fa[T]||{};I[ob]=Ya;try{Ya.loopIndex=String(T),Ya.loopCount=String(T+1)}catch(lc){}Ya=I[Ha]=I[Ha]||{};Ya.loopIndex=String(T);Ya.loopCount=String(T+1);M.parent=N?qa:Z;M.currentNode=ua;E(M)}delete I[ob];M.parent=qa}}else N||(Z=xa(M.parent,M.currentNode,T,I),M.parent=Z),E(M);M=Z}else M=void 0;return M}function D(M,I,N,T,Z){var fa={};if(N&&0<N.length)for(var qa=0;qa<N.length;qa++)fa[N[qa].variable]=
y(T,N[qa].reference);return w(M,I,fa,Z||I.target)}function E(M){var I=M.parent,N=M.currentNode.childNodes;if(N&&0<N.length)for(var T=0;T<N.length;T++)M.parent=I,M.currentNode=N[T],z(M);M.parent=I}function y(M,I){if(M&&I){I=a.trim(I).split(".");for(var N=0;N<I.length&&(M=M[I[N]],M);N++);return M}}function V(M,I){var N=[];if(M&&0<M.length)for(var T=0;T<M.length;T++){var Z=M[T],fa=y(I,Z);void 0!==fa&&null!==fa&&(fa=String(fa));N.push(0===T%2?Z:fa)}return N.join("")}function ca(M,I){var N=!0;"undefined"!==
typeof M.test&&(I="string"===typeof M.test?y(I,M.test):M.test,void 0===I||null===I||!1===I||"undefined"!==typeof I.length&&0===I.length)&&(N=!1);return M.testInverse?!N:N}function xa(M,I,N,T){var Z=I.localName;N.element&&(Z=N.element,Z=a.trim(Z.isDynamic?y(T,Z.value):Z.value),0===Z.length&&(console.warn("[SDF] Empty dynamic tag name: use default '"+I.localName+"'"),Z=I.localName));try{if(I.prefix){var fa=wa[I.prefix];if(fa)var qa=n.createElementNS(fa,Z);else console.warn("[SDF] Unsupported name prefix of element: "+
I.name+"; namespace ignored"),qa=n.createElement(Z)}else qa=n.createElement(Z)}catch(ob){console.warn("[SDF] Can't create element: "+ob.toString()+": use default '"+I.localName+"'"),qa=n.createElement(I.localName)}if(I=N.attributes)for(var ua in I)if(fa=I[ua],N=fa.isDynamic?V(fa.value,T):fa.value,fa.isAllowBlank||!fa.isAllowBlank&&0<N.length)fa.isNamespaceProvided?(fa=ua.substring(0,ua.indexOf(":")),(fa=wa[fa])?qa.setAttributeNS(fa,ua,N):(console.warn("[SDF] Unsupported name prefix of attribute: "+
ua+"; namespace ignored"),qa.setAttribute(ua,N))):qa.setAttribute(ua,N);M.appendChild(qa);return qa}function ea(M,I,N){if(I.nodeType===n.TEXT_NODE)va(I,N);else{if(I.sdfContext){var T=I.sdfContext;if(!ca(T,N)){I.parentElement.removeChild(I);return}if(T.invokeTemplate){T=I.parentElement;var Z=I.sdfContext.invokeTemplate,fa=Z.isDynamic?V(Z.nameTokens,N):Z.template;if(fa=M.templates.get(fa)){for(var qa=I.childNodes,ua=qa.length-1;0<=ua;ua--)I.removeChild(qa[ua]);D(M,fa,Z.binds,N,I);if(T)for(;I.hasChildNodes();)T.insertBefore(I.firstChild,
I)}T&&T.removeChild(I);return}}if(I.hasAttributes())for(T=I.attributes,Z=0;Z<T.length;Z++)0>T[Z].localName.indexOf("data-sdf-")&&va(T[Z],N);if(I.hasChildNodes())for(T=0;T<I.childNodes.length;T++)ea(M,I.childNodes[T],N)}}function va(M,I){if(r(M.nodeValue)){var N=p(M.nodeValue);M.nodeValue=V(N,I)}}function na(M){var I="\x3c"+M.nodeName.toLowerCase();if(M.hasAttributes()){M=M.attributes;for(var N=0;N<M.length;N++)I+=" "+M[N].name+'\x3d"'+M[N].nodeValue+'"'}return I+"\x3e"}function cb(M,I,N){if((M=Ra.get(M))&&
0<M.length)for(var T=0;T<M.length;T++){var Z=M[T];if(Z[I])try{Z[I].call(Z,N)}catch(fa){console.warn("[SDF] Can't notify component event '"+I+"': "+fa)}}}function db(M,I){this.selector=M;this.$ui=I;this.rootElement=I.get(0);this.metadata=new Map;this.templates=new Map;this.observers=[];h(this,this.rootElement)}window.sg=window.sg||{};window.sg.sdf=window.sg.sdf||{};var wa={html:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xbl:"http://www.mozilla.org/xbl",
xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"},Ra=new Map,Ia=new Map;db.prototype={init:function(M){cb(this.selector,"onBeforeInit",this);var I=t(this.rootElement.getAttribute("data-sdf-bind"));I&&0<I.length&&((M=y(M,I))&&ea(this,this.rootElement,M),this.rootElement.removeAttribute("data-sdf-bind"),this.rootElement.boundData=M);cb(this.selector,"onAfterInit",this)},meta:function(M){return this.metadata.get(M)},invokeTemplate:function(M,I,N){r(M)&&(M=p(M),M=V(M,I));return(M=this.templates.get(M))?
w(this,M,I,N):null},addObserver:function(M){this.observers.push(M)},removeObserver:function(M){M=this.observers.indexOf(M);0<=M&&this.observers.splice(M,1)},notify:function(M,I){for(var N=0;N<this.observers.length;N++){var T=this.observers[N];if(T[M])try{T[M].call(T,I)}catch(Z){console.warn("[SDF] Notification failure: '"+M+"': "+Z)}}}};window.sg.sdf.comp={dispatch:function(M){var I=a(M);if(0!==I.length){var N=Ia.get(M);N||(N=[],Ia.set(M,N),I.each(function(){var T=new db(M,a(this));cb(M,"onCreated",
T);N.push(T)}));return 1===N.length?N[0]:N}},dispose:function(M){if(Ia.has(M)){for(var I=Ia.get(M),N=0;N<I.length;N++)cb(M,"onDispose",I[N]);Ia["delete"](M)}},attachListener:function(M,I){var N=Ra.get(M);N||(N=[],Ra.set(M,N));N.push(I)},detachListener:function(M,I){(M=Ra.get(M))&&0<M.length&&(I=M.indexOf(I),0<=I&&M.splice(I,1))}}})(jQuery,document);
(function(a){function n(c){this._capacity=c;this._queue=[]}function h(){this._handlerMap={}}window.sg=window.sg||{};window.sg.sdf=window.sg.sdf||{};var f={prepareNamespace:function(c,k){var l=a.trim(c).split(".");c=null;k=k||window;l=$jscomp.makeIterator(l);for(var e=l.next();!e.done;e=l.next())e=e.value,null==c?(c=k[e])||(c=k[e]={}):c=c[e]=c[e]||{};return c},resolve:function(c,k){c=a.trim(c).split(".");if(k=k||window){c=$jscomp.makeIterator(c);for(var l=c.next();!l.done&&(k=k[l.value],"undefined"!==
typeof k&&null!=k);l=c.next());}return k},getImagePreset:function(c,k,l){function e(p,r){var t=p.lastIndexOf(".");if(0<t)switch(p.substring(t+1).toLowerCase()){case "jpg":case "jpeg":return"JPG";case "png":return"PNG";case "gif":return"GIF";default:if("LazyLoad_Home"===r)return"PNG"}return"IMG"}k=a.trim(k);l=a.trim(l);c=a.trim(c);var b=k.indexOf("?$");if(0<b){var g=k.indexOf("$",b+2);if(0<g)return b=k.substring(b+2,g).split("_"),c=""!==c?c:1===b.length?b[0]:b.slice(0,b.length-1).join("_"),k=""!==
l?l.toUpperCase():1===b.length?e(k,c):b[b.length-1].toUpperCase(),"?$"+c+"_"+k+"$"}return function(p,r,t){if(""===r)return"";p=""!==t?t.toUpperCase():e(p,r);return"?$"+r+"_"+p+"$"}(k,c,l)},presetImage:function(c,k,l){k=a.trim(k);if(0<k.length){var e=k.indexOf("?$");if(0>e)return k+this.getImagePreset(c,k,l);if(0<e){var b=k.indexOf("$",e+2);b=0<b?k.substring(b+1):"";return k.substring(0,e)+this.getImagePreset(c,k,l)+b}}return k},previewImageSrc:function(c,k){return this.presetImage("LazyLoad_Home",
c,k)},productCardImageSrc:function(c,k){return this.presetImage("PC_PRD_CARD",c,k)}};n.prototype={offer:function(c){return this._queue.length<this._capacity?(this._queue.push(c),!0):!1},put:function(c){var k=null;this._queue.length===this._capacity&&(k=this._queue.shift());this._queue.push(c);return k},get:function(){var c=null;0<this._queue.length&&(c=this._queue[0]);return c},take:function(){var c=null;0<this._queue.length&&(c=this._queue.shift());return c},clear:function(){this._queue=[]},capacity:function(){return this._capacity},
size:function(){return this._queue.length}};f.Queue=n;h.prototype={register:function(c,k){if(k){var l=this._handlerMap[c];l||(l=[],this._handlerMap[c]=l);l.push(k)}},unregister:function(c,k){if(k){var l=this._handlerMap[c];if(l&&0<l.length){var e=[];l=$jscomp.makeIterator(l);for(var b=l.next();!b.done;b=l.next())b=b.value,b!==k&&e.push(b);this._handlerMap[c]=e}}},fire:function(c,k,l){var e=this._handlerMap[c];if(e&&0<e.length){c={};e=$jscomp.makeIterator(e);for(var b=e.next();!b.done;c={$jscomp$loop$prop$h$88:c.$jscomp$loop$prop$h$88},
b=e.next())c.$jscomp$loop$prop$h$88=b.value,setTimeout(function(g){return function(){g.$jscomp$loop$prop$h$88.call(l||this,k)}}(c),10)}}};f.eventBroker=new h;window.sg.sdf.util=f})(jQuery);(function(a){function n(h,f){a(h).each(function(c,k){k.hasAttribute(f)||k.setAttribute(f,"")})}a(function(){n("img","alt")})})(jQuery);
(function(){function a(h,f){var c=f+"_desktop",k=h[c],l=f+"_mobile",e=h[l];"mobile"===n?e&&0<e.length?h[f]=e:!h[f]&&k&&0<k.length&&(h[f]=k):"desktop"===n&&(k&&0<k.length?h[f]=k:!h[f]&&e&&0<e.length&&(h[f]=e));delete h[c];delete h[l]}var n=function(){var h=window,f="inner";"innerWidth"in window||(f="client",h=document.documentElement||document.body);return 767<h[f+"Width"]?"desktop":"mobile"}();(function(){var h=document.querySelectorAll("script[data-object-type\x3d'VideoObject']");if(h&&0<h.length)for(var f=
0,c=h.length;f<c;f++){var k=JSON.parse(h[f].innerText);a(k,"thumbnailUrl");a(k,"contentUrl");h[f].innerText=JSON.stringify(k)}})()})();
(function(){window.sg=window.sg||{};window.sg.common=window.sg.common||{};window.sg.components=window.sg.components||{};var a={BREAKPOINTS:{DESKTOP:1440,MOBILE:767,MOBILE_UNDER:360},SELECTOR:{RES_IMG:".responsive-img",VIDEO:".video",LAZY_LOAD:".lazy-load",PREVIEW_IMG:".preview",INDICATOR:".indicator"},KEY_CODE:{TAB:9,ENTER:13,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,ESC:27}},n,h,f="",c=null,k=null,l=!!document.querySelector(".wearable-bc"),e=new Intl.Segmenter(void 0,
{granularity:"grapheme"}),b={getViewPort:function(){var g=window,p="inner";"innerWidth"in window||(p="client",g=document.documentElement||document.body);return{width:g[p+"Width"],height:g[p+"Height"]}},getCurrentDevice:function(){return b.getViewPort().width>a.BREAKPOINTS.MOBILE?"desktop":"mobile"},getCurrentMediaType:function(){var g=b.getViewPort().width;return g>a.BREAKPOINTS.MOBILE?g>a.BREAKPOINTS.DESKTOP?"desktop-over":"desktop":g>a.BREAKPOINTS.MOBILE_UNDER?"mobile":"mobile-under"},isInVerticalViewPort:function(g,
p){p=void 0===p?200:p;g=g.getBoundingClientRect();return g.top-p<=b.getViewPort().height&&g.bottom>=0+(this.scrollFlag?null:b.getStickyNavHeightPromise())},isInHorizontalViewPort:function(g,p){p=void 0===p?200:p;g=g.getBoundingClientRect();return g.left-p<=b.getViewPort().width&&0<=g.right+p},isVerticalVisible:function(g,p){return b.isInVerticalViewPort(g,void 0===p?200:p)&&!!(g.offsetWidth||g.offsetHeight||g.getClientRects().length)},isHorizontalVisible:function(g,p){return b.isInHorizontalViewPort(g,
void 0===p?200:p)&&!!(g.offsetWidth||g.offsetHeight||g.getClientRects().length)},isInViewPort:function(g){return b.isInVerticalViewPort(g)&&b.isInHorizontalViewPort(g)},isVisible:function(g){return b.isInViewPort(g)&&!!(g.offsetWidth||g.offsetHeight||g.getClientRects().length)},scrollTo:function(g,p){var r=document.documentElement,t=r.scrollTop,w=r.scrollHeight,z=r.clientHeight;r=r.scrollLeft;g>w-z&&(g=w-z);var D=isNaN(p)?t:p;D+=(g-t)/7;0>D?D=0:D>w-z&&(D=w-z);p=Math.ceil(D);window.scrollTo(r,p);p!==
g?n=setTimeout(function(){b.scrollTo(g,D)},15):clearTimeout(n)},setImageSpecGuide:function(g,p){var r=document.createElement("span");r.innerHTML=p;r.style.position="absolute";r.style.display="inline-block";r.style.top="50%";r.style.right="50%";r.style.width="100%";r.style.textAlign="center";r.style.fontStyle="italic";r.style.transform="translateX(50%) translateY(-50%)";r.style.color="#fff";r.style.fontSize="30px";r.classList.add("media-size-guide");g.appendChild(r)},extend:function(g,p){Object.keys(p).forEach(function(r){g[r]=
p[r]});return g},setCookie:function(g,p,r){var t=new Date;t.setTime(t.getTime()+864E5*r);document.cookie=g+"\x3d"+p+"; expires\x3d"+t.toUTCString()+"; path\x3d/"},getCookie:function(g){return(g=document.cookie.match("(^|;) ?"+g+"\x3d([^;]*)(;|$)"))?g[2]:null},triggerEvent:function(g,p,r,t,w){r=void 0===r?null:r;t=void 0===t?!1:t;w=void 0===w?!0:w;if("function"===typeof CustomEvent)var z=new CustomEvent(p,{bubbles:t,cancelable:w,detail:r});else z=document.createEvent("CustomEvent"),z.initCustomEvent(p,
t,w,r);g.dispatchEvent(z)},hiddenScroll:function(){if(!0!==this.scrollFlag){this.scrollFlag=!0;this.currentPos=window.scrollY||document.documentElement.scrollTop;var g=document.querySelector("body");var p=0<this.currentPos?"-"+this.currentPos+"px":0;g.style.position="fixed";g.style.width="100%";g.style.top=p}},visibleScroll:function(){if(!0===this.scrollFlag){this.scrollFlag=!1;var g=document.querySelector("body");g.style.position="";g.style.width="";g.style.top="";window.scrollTo(0,this.currentPos)}},
getDirection:function(){return window.getComputedStyle(document.body).direction},addEventListener:function(g,p,r){if(g){h||(h=new WeakMap);var t=h.has(g)?h.get(g):{};t[p]||(t[p]=[]);t[p].push(r);h.set(g,t);g.addEventListener(p,r)}},removeAllEventListeners:function(g,p){if(g&&h&&h.has(g)){var r=h.get(g);r[p]&&(r[p].forEach(function(t){g.removeEventListener(p,t)}),delete r[p],Object.keys(r).length||h.delete(g))}},closest:function(g,p){do{if(g.matches?g.matches(p):g.msMatchesSelector(p))return g;g=g.parentElement||
g.parentNode}while(null!==g&&1===g.nodeType);return null},popupControl:{closeParam:null,popstateHandler:function(){window.history.state?"popOpen"===window.history.state.page&&(window.sg.common.utils.popupControl.closeParam(),window.sg.common.utils.popupControl.close()):(window.sg.common.utils.popupControl.closeParam(),window.sg.common.utils.popupControl.close())},open:function(g){this.closeParam=g;window.removeEventListener("popstate",this.popstateHandler);window.addEventListener("popstate",this.popstateHandler);
g=window.history.state&&"popOpen"===window.history.state.page;(new URLSearchParams(window.location.search)).has("addon")||g||window.history.pushState({page:"popOpen"},"",""+window.location.href);l&&b.hideOverDimEls()},close:function(g){g=void 0===g?!1:g;this.closeParam=null;window.history.state&&("popOpen"===window.history.state.page&&(g?window.history.back():window.history.forward(),window.removeEventListener("popstate",this.popstateHandler)),l&&b.showOverDimEls())}},setSwiperIndicatorTaggingAttributes:function(g,
p){var r=JSON.parse(g);[].concat($jscomp.arrayFromIterable(p.querySelectorAll(".swiper-pagination-bullet"))).forEach(function(t,w){t.setAttribute("an-tr",r.anTr);t.setAttribute("an-ca",r.anCa);t.setAttribute("an-ac",r.anAc);t.setAttribute("an-la",""+r.anLa+(w+1))})},isEnglish:function(g){return/^[a-zA-Z]*$/.test(g)},isNumber:function(g){return/^[0-9]*$/.test(g)},isEngNum:function(g){return/^[a-zA-Z0-9]*$/.test(g)},isEmail:function(g){return/^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*.[a-zA-Z]{2,3}$/i.test(g)},
detectTransitionEndEvent:function(g){for(var p={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},r=Object.keys(p),t=0;t<r.length;t++)if(void 0!==g.style[r[t]])return p[r[t]]},isRtl:function(){return"RTL"===getComputedStyle(document.body).direction.toUpperCase()},setMobileFocusLoop:function(g){do{for(var p=g.parentElement.childNodes,r=0;r<p.length;r++)1===p[r].nodeType&&p[r]!==g&&"SCRIPT"!==p[r].tagName.toUpperCase()&&"STYLE"!==
p[r].tagName.toUpperCase()&&(p[r].setAttribute("data-aria-hidden",p[r].getAttribute("aria-hidden")||"null"),p[r].setAttribute("aria-hidden","true"));g=g.parentElement}while(g!==document.body)},removeMobileFocusLoop:function(){for(var g=document.querySelectorAll("[data-aria-hidden]"),p=0;p<g.length;p++){var r=g[p].getAttribute("data-aria-hidden");"null"===r?g[p].removeAttribute("aria-hidden"):g[p].setAttribute("aria-hidden",r);g[p].removeAttribute("data-aria-hidden")}},detectScrollType:function(){if(f)return f;
f="reverse";var g=document.createElement("div");g.appendChild(document.createTextNode("tmpDivEl"));g.dir="rtl";g.style.fontSize="12px";g.style.width="4px";g.style.height="2px";g.style.position="absolute";g.style.overflow="scroll";document.body.appendChild(g);0<g.scrollLeft?f="default":(g.scrollLeft=2,2>g.scrollLeft&&(f="negative"));document.body.removeChild(g);return f},getNormalizedScrollLeft:function(g){if(b.isRtl())switch(b.detectScrollType()){case "negative":return g.scrollWidth-g.clientWidth+
g.scrollLeft;case "reverse":return g.scrollWidth-g.clientWidth-g.scrollLeft}return g.scrollLeft},setNormalizedScrollLeft:function(g,p){if(b.isRtl())switch(b.detectScrollType()){case "negative":g.scrollLeft=g.clientWidth-g.scrollWidth+p;break;case "reverse":g.scrollLeft=g.scrollWidth-g.clientWidth-p;break;default:g.scrollLeft=p}else g.scrollLeft=p},isPassiveSupported:function(){if(null===c)try{var g={get passive(){c=!0}};window.addEventListener("test",g,g);window.removeEventListener("test",g,g)}catch(p){c=
!1}return c},makeDate:function(g){var p=g.replace(/[+|-][0-9]{4}$/,""),r=new Date(p);p=g.substring(p.length);""!==p&&(g=parseInt(p.substring(0,3),0),p=parseInt(p.substring(3),0),0>g&&(p*=-1),r.setHours(r.getHours()+-1*g),r.setMinutes(r.getMinutes()+-1*p));return r},getTimeStatus:function(g,p){g=b.makeDate(g);p=b.makeDate(p);var r=new Date;return r>=g?r>p?"after":"live":"before"},showBambuserLiveShopping:function(g){window.onBambuserLiveShoppingReady=function(r){r.configure({buttons:{dismiss:r.BUTTON.MINIMIZE}})};
if(!window.initBambuserLiveShopping){window.initBambuserLiveShopping=function(r){window.initBambuserLiveShopping.queue.push(r)};window.initBambuserLiveShopping.queue=[];var p=document.createElement("script");p.src="https://lcx-embed.bambuser.com/samsung/embed.js";document.body.appendChild(p)}window.initBambuserLiveShopping({showId:g,type:"overlay"})},removeReCaptchaFrameBorder:function(){0<document.querySelectorAll('[title\x3d"reCAPTCHA"]').length&&[].concat($jscomp.arrayFromIterable(document.querySelectorAll('[title\x3d"reCAPTCHA"]'))).forEach(function(g){g.removeAttribute("frameborder")})},
changeActiveReCaptchaProperty:function(){0<document.querySelectorAll('[title\x3d"reCAPTCHA"]').length&&[].concat($jscomp.arrayFromIterable(document.querySelectorAll('[title\x3d"reCAPTCHA"]'))).forEach(function(g){g.setAttribute("aria-hidden","true");g.removeAttribute("frameborder");/Android/i.test(navigator.userAgent)&&g.removeAttribute("role")})},changeInActiveReCaptchaProperty:function(){0<document.querySelectorAll('[title\x3d"reCAPTCHA"]').length&&[].concat($jscomp.arrayFromIterable(document.querySelectorAll('[title\x3d"reCAPTCHA"]'))).forEach(function(g){g.removeAttribute("aria-hidden");
/Android/i.test(navigator.userAgent)&&g.setAttribute("role","presentation")})},buyingFocus:function(g){(g=document.querySelector(['.pdd-buying-tool [data-target-popup\x3d"'+g+'"]','.pd-buying-tool [data-target-popup\x3d"'+g+'"]','.wearable-bc-buying [data-target-popup\x3d"'+g+'"]'].join()))&&g.focus()},hideOverDimEls:function(){k||(k=[{display:null,sel:"#spr-live-chat-app"},{display:null,sel:"#QSIFeedbackButton-btn"},{display:null,sel:"#kampyleButtonContainer"}],k.forEach(function(g){var p=document.querySelector(g.sel);
p&&(g.display=p.style.display,p.style.display="none")}))},showOverDimEls:function(){k&&(k.forEach(function(g){var p=document.querySelector(g.sel);p&&(p.style.display=g.display)}),k=null)},bindRaf:function(g){var p=!1;return function(r){p||(p=!0,requestAnimationFrame(function(){p=!1;g(r)}))}},getFirstFocusableEl:function(g,p){p=void 0===p?[]:p;g=g?g:document;var r=function(D){return!!(D.offsetWidth||D.offsetHeight||D.getClientRects().length)&&"hidden"!==getComputedStyle(D).visibility},t=function(D){if(p.length)for(var E=
0;E<p.length;E++)if(D.matches(p[E]))return!0;return!1};if((g.matches?g.matches('input:not([tabindex\x3d"-1"]), select:not([tabindex\x3d"-1"]), textarea:not([tabindex\x3d"-1"]), button:not([disabled]):not([tabindex\x3d"-1"]), [href]:not(use):not([tabindex\x3d"-1"]), [tabindex]:not([tabindex\x3d"-1"])'):g.msMatchesSelector('input:not([tabindex\x3d"-1"]), select:not([tabindex\x3d"-1"]), textarea:not([tabindex\x3d"-1"]), button:not([disabled]):not([tabindex\x3d"-1"]), [href]:not(use):not([tabindex\x3d"-1"]), [tabindex]:not([tabindex\x3d"-1"])'))&&
r(g))return g;g=g.querySelectorAll('input:not([tabindex\x3d"-1"]), select:not([tabindex\x3d"-1"]), textarea:not([tabindex\x3d"-1"]), button:not([disabled]):not([tabindex\x3d"-1"]), [href]:not(use):not([tabindex\x3d"-1"]), [tabindex]:not([tabindex\x3d"-1"])');if(!g.length)return null;for(var w=0;w<g.length;w++){var z=g[w];if(r(z)&&!t(z))return z}},setFocusFirstFocusableEl:function(g,p){p=void 0===p?[]:p;if(g=b.getFirstFocusableEl(g,p))return g.focus(),g},setFocusNextFocusableEl:function(g){if(!(g&&
g instanceof Element))return null;var p=g.nextElementSibling;if(p)return(g=b.getFirstFocusableEl(p))?(g.focus(),g):b.setFocusNextFocusableEl(p);p=g.parentElement;return p===document.body?null:b.setFocusNextFocusableEl(p)},setFocusFirstEl:function(g,p){var r=g.querySelector(p);if(r){r.setAttribute("tabindex",0);var t=function(){r.removeAttribute("tabindex");r.removeEventListener("blur",t)};requestAnimationFrame(function(){r.addEventListener("blur",t);r.focus()})}},getMobileOS:function(){var g=navigator.userAgent;
return/android/i.test(g)?"android":/iPad|iPhone|iPod|iPad Simulator|iPhone Simulator|iPod Simulator/.test(g)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints?"ios":"other"},getStickyNavHeightPromise:function(g){g=void 0===g?!1:g;var p=[],r=null;".explore-lnb-navigation .explore-lnb.sticky-nav;.nv07-explore-floating-navigation.use-sticky-nav;.floating-navigation.floating-navigation--fixed;.nv14-visual-lnb__container.sticky;.lnb-nav.lnb-nav--sticky.lnb-nav--fixed;.sticky-navigation-text.is-fixed;.pdd01-anchor-nav-v2--fixed .pdd01-anchor-nav-v2__menu".split(";").forEach(function(t){var w=
document.querySelector(t);w&&0<w.offsetWidth&&0<w.offsetHeight&&(g?(t=new Promise(function(z){var D=null,E=w.offsetHeight,y=setInterval(function(){w.offsetHeight===E?(clearInterval(y),D+=w.offsetHeight,z(D)):E=w.offsetHeight},100)}),p.push(t)):r+=w.offsetHeight)});return g?Promise.allSettled(p):r},scrollHash:function(){var g=window.location.hash.trim().replace("#","");document.getElementById(g)&&b.getStickyNavHeightPromise(!0).then(function(p){var r=null;p.forEach(function(t){r+=t.value});window.scrollTo(0,
Math.round(document.getElementById(g).getBoundingClientRect().top+window.scrollY)-r)})},getEllipsis:function(g,p){function r(E){if(!z)if(E.nodeType===Node.TEXT_NODE){var y=[].concat($jscomp.arrayFromIterable(e.segment(E.textContent))),V=p-w;y.length>V&&(z=E,D=V);w+=y.length}else E.nodeType===Node.ELEMENT_NODE&&Array.from(E.childNodes).forEach(function(ca){r(ca)})}var t=document.createElement("div");t.innerHTML=g;var w=0,z=null,D=0;r(t);if(!z)return g;g=[].concat($jscomp.arrayFromIterable(e.segment(z.textContent)));
z.textContent=g.slice(0,D).map(function(E){return E.segment}).join("")+"...";for(g=z;g&&g!==t;){for(;g.nextSibling;)g.nextSibling.remove();g=g.parentNode}return t.innerHTML},setScrollPaddingTop:function(){var g={};return function(p,r){Number.isNaN(Number(r))||(g[p]=Number(r),p=Object.values(g).reduce(function(t,w){return t+w},0),0<p?document.querySelector("html").style.scrollPaddingTop=p+3+"px":document.querySelector("html").style.scrollPaddingTop="")}}(),getFileData:function(g){return window.__fileData__&&
window.__fileData__[g]}};window.sg.common.constants=a;window.sg.common.utils=b;window.sg.common.bindEvents={hashChange:function(){window.removeEventListener("hashchange",window.sg.common.utils.scrollHash);window.addEventListener("hashchange",window.sg.common.utils.scrollHash)}};window.sg.common.bindEvents.hashChange()})();
(function(){var a={},n=window.sg.common.utils,h=n.extend,f=n.closest,c=function(l,e){e=void 0===e?{}:e;if(!l||l.nodeType!==Node.ELEMENT_NODE)throw new TypeError("Element should be given to initialize.");this.el=l;this.options={isRoot:!0,shouldInitChildren:!0};h(this.options,e);this.children=new Map;this.init();this.constructor.instances.set(this.el,this)};c.create=function(l,e){return this.instances.get(l)||new this(l,e)};c.prototype.init=function(){this.options.isRoot&&this.options.shouldInitChildren&&
this._initChildren();this._init()};c.prototype._initChildren=function(){var l=this;this._getChildEls().forEach(function(e){return l._initChild(e)})};c.prototype._getChildEls=function(l){l=void 0===l?this.el:l;l=Array.from(l.querySelectorAll("[data-comp-name]"));l.sort(function(e,b){if(e===b)return 0;e=e.compareDocumentPosition(b);return e&4||e&16?1:e&2||e&8?-1:0});return l};c.prototype._initChild=function(l){var e=a[l.getAttribute("data-comp-name")];e&&((e=e.create&&"function"===typeof e.create?e.create(l,
{isRoot:!1,shouldInitChildren:!1}):e.instances&&e.instances.has(l)?e.instances.get(l):new e(l))&&e.swiper&&(e=e.swiper),this.children.set(l,e))};c.prototype._init=function(){};c.prototype.reInit=function(l){for(var e=[],b=0;b<arguments.length;++b)e[b-0]=arguments[b];var g;b={shouldInitChildren:!0};1===e.length?e[0]instanceof Element?g=e[0]:"string"===typeof e[0]?g=this.el.querySelector(e[0]):"object"===typeof e[0]&&(b=e[0]):2===e.length&&(e[0]instanceof Element?g=e[0]:"string"===typeof e[0]&&(g=this.el.querySelector(e[0])),
"object"===typeof e[1]&&(b=e[1]));h(this.options,b);g||(g=this.el);!this.options.isRoot&&this.options.shouldInitChildren?(g=this._getRoot(),g.reInit.apply(g,$jscomp.arrayFromIterable(e))):(this.options.isRoot&&this._reInitChildren(g),this.el===g?this._reInit():this.el.contains(g)&&this._reInitChild(g),this.options.isRoot&&window.sg.common.lazyLoad.setLazyLoad())};c.prototype._getRoot=function(l){l=void 0===l?this.el:l;var e=f(l.parentElement,"[data-comp-name]");if(l)return l=this.constructor.instances.get(e),
l.options.isRoot?l:this._getRoot(e)};c.prototype._reInitChildren=function(l){var e=this;l=void 0===l?this.el:l;this.children.forEach(function(b,g){e.el.contains(g)||(b.destroy&&"function"===typeof b.destroy&&b.destroy(),e.children.delete(g))});this._getChildEls(l).forEach(function(b){return e._reInitChild(b)})};c.prototype._reInitChild=function(l){this.children.has(l)?(l=this.children.get(l),l.reInit&&"function"===typeof l.reInit&&(l.options&&"shouldInitChildren"in l.options?l.reInit({shouldInitChildren:!1}):
l.reInit())):this._initChild(l)};c.prototype._reInit=function(){this._init()};c.prototype.update=function(){this.options.isRoot&&this._updateChildren();this._update();this.options.isRoot&&window.sg.common.lazyLoad.setLazyLoad()};c.prototype._updateChildren=function(){var l=this;this.children.forEach(function(e,b){l.el.contains(b)&&e.update&&"function"===typeof e.update&&e.update()})};c.prototype._update=function(){};c.prototype.destroy=function(){var l=this;this.children.forEach(function(e,b){e.destroy&&
"function"===typeof e.destroy&&e.destroy();l.children.delete(b)});this.children=null;this._destroy();this.constructor.instances.delete(this.el)};c.prototype._destroy=function(){};c.prototype.getChild=function(l){if(!(l instanceof Element))if("string"===typeof l)l=this.el.querySelector(l);else return;if(this.children&&this.children.has(l))return this.children.get(l);if(this.el.contains(l)){var e=a[l.getAttribute("data-comp-name")];if(e&&e.instances&&e.instances.has(l))return(l=e.instances.get(l))&&
l.swiper&&(l=l.swiper),l}};c.prototype.setOptions=function(l){h(this.options,l)};c.prototype.emit=function(l,e,b){b=void 0===b?!1:b;if("function"===typeof CustomEvent)var g=new CustomEvent(l,{bubbles:b,detail:e});else g=document.createEvent("CustomEvent"),g.initCustomEvent(l,b,!1,e);this.el.dispatchEvent(g)};c.prototype.listen=function(l,e,b){this.el.addEventListener(l,e,b)};c.prototype.unListen=function(l,e,b){this.el.removeEventListener(l,e,b)};c.instances=new WeakMap;var k=function(l,e){if(!(l instanceof
Element))if("string"===typeof l)l=document.querySelector(l);else throw new TypeError("Element or selector string should be given as an argument");var b=l.getAttribute("data-comp-name");if(!b||!a[b])throw new ReferenceError("Component class should be registered.");b=a[b];(e=b===c||b.prototype instanceof c?b.create(l,e):b.instances&&b.instances.has(l)?b.instances.get(l):new b(l))&&e.swiper&&(e=e.swiper);return e};n=function(l,e){a[l]=e;if(e===c||e.prototype instanceof c){var b=Array.from(document.querySelectorAll('[data-comp-name\x3d"'+
l+'"]:not([data-auto-init\x3d"false"])'));b=b.filter(function(g){return!f(g.parentElement,"[data-comp-name]")});l=function(){return b.forEach(function(g){return k(g)})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",l):l()}};n("base",c);h(window.sg.components,{create:k,registerClass:n,unRegisterClass:function(l){a[l]=null;delete a[l]},getClass:function(l){return a[l]},Base:c})})();
(function(){var a=[];window.sg.common.observer={register:function(n){"function"===typeof n&&-1===a.indexOf(n)&&a.push(n)},unRegister:function(n){if("function"===typeof n){var h=a.indexOf(n);-1<h&&n.splice(h,1)}},test:function(){a.forEach(function(n){n(document)})},handlers:a}})();
(function(){var a=function(h){this.target="object"===typeof h?Array.isArray(h)?h:[h]:h?Array.prototype.slice.call(document.querySelectorAll(h)):[]};a.prototype.find=function(h){var f=[];this.target.forEach(function(c){f=f.concat(Array.prototype.slice.call(c.querySelectorAll(h)))});return new a(f)};a.prototype.eq=function(h){h=this.target[h];return new a(h?[h]:"")};a.prototype.parent=function(){return 0===this.target.length?new a(""):new a(this.target[0].parentNode?[this.target[0].parentNode]:"")};
a.prototype.children=function(h){h=void 0===h?null:h;var f=[];this.target.forEach(function(c){f=h?f.concat(Array.prototype.slice.call(c.querySelectorAll(h))):f.concat(Array.prototype.slice.call(c.children))});return new a(f)};a.prototype.closest=function(h){function f(e){return(e.matches?e.matches(h):e.webkitMatchesSelector?e.webkitMatchesSelector(h):e.msMatchesSelector(h))?e:e===document.body?null:null!==e.parentNode?f(e.parentNode):null}function c(e){return e===h?e:e===document.body?null:c(e.parentNode)}
if(0===this.target.length)return this;if(!this.target[0].parentElement)return new a([this.target]);var k=[],l="string"===typeof h;this.target.forEach(function(e){e=l?f(e):c(e);null!==e&&k.push(e)});return new a(k)};a.prototype.siblings=function(){return new a(function(h){return[].concat($jscomp.arrayFromIterable(h.parentElement.children)).filter(function(f){return f!==h})}(this.target[0]))};a.prototype.setLayerFocus=function(h,f,c){c=void 0===c?!0:c;var k=this.find(h);c&&k.attr("tabindex",0);k.addClass("layer-popup__looping");
this.find(".layer-popup__looping--first").target.length||(c?k.prepend('\x3cdiv class\x3d"layer-popup__looping--first hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'):this.target[0].insertAdjacentHTML("afterbegin",'\x3cdiv class\x3d"layer-popup__looping--first hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'));var l=this.find(f);this.find(".layer-popup__looping--end").target.length||(c?l.after('\x3cdiv class\x3d"layer-popup__looping--end hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'):
this.append('\x3cdiv class\x3d"layer-popup__looping--end hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'));h=this.find(".layer-popup__looping--first");f=this.find(".layer-popup__looping--end");h.off("focus").on("focus",function(){l.focus()});f.off("focus").on("focus",function(){k.focus()});k.focus()};a.prototype.offLayerFocus=function(){this.find(".layer-popup__looping").removeAttr("tabindex");this.find(".layer-popup__looping--first").off("focus").remove();this.find(".layer-popup__looping--end").off("focus").remove()};
a.prototype.css=function(h){var f=this.target[0];if(f){if("string"===typeof h)return window.getComputedStyle(f)[h];this.target.forEach(function(c){Object.keys(h).forEach(function(k){c.style[k]=h[k]})})}};a.prototype.show=function(){var h=this.target;h&&h.forEach(function(f){n(f).css({display:"block"})})};a.prototype.hide=function(){var h=this.target;h&&h.forEach(function(f){n(f).css({display:"none"})})};a.prototype.scrollTop=function(h){var f=this.target[0];if(f){if(void 0===h)return f.scrollTop;
f.scrollTop=h}};a.prototype.animate=function(h,f,c,k){var l=this;c=void 0===c?null:c;k=void 0===k?null:k;"string"!==typeof c&&(k=c,c=null);var e="webkitTransitionEnd oTransitionEnd otransitionend mozTransitionEnd moztransitionend transitionend transitionEnd".split(" ");this.target.forEach(function(b){function g(t){if(void 0===t||t.target===b)null!==k&&k(b),b.style.transition=r,e.forEach(function(w){b.removeEventListener(w,g);b.animateComplete=null})}var p=window.getComputedStyle(b);Object.keys(h).forEach(function(t){b.style[t]=
p[t]});var r=b.style.transition;b.style.transitionDuration=f/1E3+"s";null!==c&&(b.style.transitionTimingFunction=c);["o","ms","moz","webkit"].forEach(function(t){b.style[t+"TransitionDuration"]=f/1E3+"s";null!==c&&(b.style[t+"transitionTimingFunction"]=c)});b.animateComplete=g;e.forEach(function(t){b.addEventListener(t,g)})});setTimeout(function(){l.css(h)}.bind(this),30)};a.prototype.finish=function(){var h=this;if(this.target[0]){var f=document.createEvent("Event");"webkitTransitionEnd oTransitionEnd otransitionend mozTransitionEnd moztransitionend transitionend transitionEnd".split(" ").forEach(function(c){f.initEvent(c,
!1,!0);h.target.forEach(function(k){k.dispatchEvent(f)})});return this}};a.prototype.stop=function(){this.target.forEach(function(h){for(var f=0,c=window.getComputedStyle(h);h.style.length>f;){f++;var k=h.style[f-1];-1<k.indexOf("transition")||(h.style[k]=c[k])}h.style.transitionDuration="0s";["o","ms","moz","webkit"].forEach(function(e){h.style[e+"TransitionDuration"]="0s"});var l=h.animateComplete;"webkitTransitionEnd oTransitionEnd otransitionend mozTransitionEnd moztransitionend transitionend transitionEnd".split(" ").forEach(function(e){h.removeEventListener(e,
l);h.animateComplete=null})});return this};a.prototype.isAnimate=function(){return this.target.some(function(h){if("function"===typeof h.animateComplete)return!0})};a.prototype.slideDown=function(h,f){var c=this;this.target.forEach(function(k){var l=k.style.height,e=k.style.display;k.style.display="block";var b=window.getComputedStyle(k).height;k.style.height="0px";var g=k.style.overflow;k.style.overflow="hidden";c.css({overflow:"hidden"});c.animate({height:b},h,function(){k.style.display=e;k.style.height=
l;k.style.overflow=g;void 0!==f&&f()})})};a.prototype.slideUp=function(h,f){var c=this;this.target.forEach(function(k){function l(){k.style.height=e.height;k.style.overflow=e.overflow;k.style.padding=e.padding;void 0!==f&&f()}var e={height:k.style.height,overflow:k.style.overflow,padding:k.style.padding};k.style.height=window.getComputedStyle(k).height;setTimeout(function(){c.animate({overflow:"hidden",height:"0px",paddingTop:"0px",paddingBottom:"0px"},h,l)}.bind(c),30)})};a.prototype.index=function(){var h=
this.target[0];if(h){var f=0;Array.prototype.slice.call(h.parentNode.children).forEach(function(c,k){h===c&&(f=k)});return f}};a.prototype.offset=function(){var h=this.target[0];if(h)return h.getBoundingClientRect()};a.prototype.width=function(){var h=this.target[0];if(h){var f=window.getComputedStyle(h);return h.offsetWidth-parseInt(f.paddingLeft,10)-parseInt(f.paddingRight,10)-parseInt(f.borderLeftWidth,10)-parseInt(f.borderRightWidth,10)}};a.prototype.innerWidth=function(){var h=this.target[0];
if(h){var f=window.getComputedStyle(h);return h.offsetWidth-parseInt(f.borderLeftWidth,10)-parseInt(f.borderRightWidth,10)}};a.prototype.outerWidth=function(){var h=this.target[0];if(h)return h.clientWidth};a.prototype.height=function(){var h=this.target[0];if(h){var f=window.getComputedStyle(h);return h.offsetHeight-parseInt(f.paddingTop,10)-parseInt(f.paddingBottom,10)-parseInt(f.borderTopWidth,10)-parseInt(f.borderBottomWidth,10)}};a.prototype.innerHeight=function(){var h=this.target[0];if(h){var f=
window.getComputedStyle(h);return h.offsetHeight-parseInt(f.borderTopWidth,10)-parseInt(f.borderBottomWidth,10)}};a.prototype.outerHeight=function(){var h=this.target[0];if(h)return h.clientHeight};a.prototype.isImageLoad=function(){return 0<this.target[0].naturalWidth&&this.target[0].naturalHeight?!0:!1};a.prototype.hasClass=function(h){var f=this.target[0];if(f)return(new RegExp("(\\s|^)"+h+"(\\s|$)")).test(f.className)};a.prototype.addClass=function(h){var f=this.target;f&&f.forEach(function(c){c.classList.add(h)})};
a.prototype.removeClass=function(h){var f=this.target;f&&f.forEach(function(c){c.classList.remove(h)})};a.prototype.toggleClass=function(h){var f=this.target;f&&f.forEach(function(c){c.classList.toggle(h)})};a.prototype.attr=function(h,f){if(this.target){if(1<arguments.length)this.target.forEach(function(k){k.setAttribute&&k.setAttribute(h,f)});else{var c=this.target[0];return c?c.getAttribute(h):!1}return this}};a.prototype.removeAttr=function(h){this.target&&this.target.forEach(function(f){f.removeAttribute(h)})};
a.prototype.text=function(h){this.target.forEach(function(f){f.textContent=h})};a.prototype.innerHTML=function(h){this.target&&(this.target[0].innerHTML=h)};a.prototype.append=function(h){this.target.forEach(function(f){Array.isArray(h)?h.forEach(function(c){"string"===typeof c?f.insertAdjacentHTML("beforeend",c):f.appendChild(c)}):"string"===typeof h?f.insertAdjacentHTML("beforeend",h):f.appendChild(h)})};a.prototype.after=function(h){this.target.forEach(function(f){Array.isArray(h)?(h=[].concat($jscomp.arrayFromIterable(h)).reverse(),
h.forEach(function(c){"string"===typeof c?f.insertAdjacentHTML("afterend",c):f.insertAdjacentElement("afterend",c)})):"string"===typeof h?f.insertAdjacentHTML("afterend",h):f.insertAdjacentElement("afterend",h)})};a.prototype.prepend=function(h){this.target.forEach(function(f){Array.isArray(h)?h.forEach(function(c){"string"===typeof c?f.insertAdjacentHTML("beforebegin",c):c&&f.insertBefore(c,f.firstChild)}):"string"===typeof h?f.insertAdjacentHTML("beforebegin",h):h&&f.insertBefore(h,f.firstChild)})};
a.prototype.before=function(){};a.prototype.clone=function(){if(this.target[0]){var h=[];this.target.forEach(function(f){h.push(f.cloneNode(!0))});return h}};a.prototype.remove=function(){this.target[0]&&this.target.forEach(function(h){h.parentNode.removeChild(h)})};a.prototype.focus=function(){var h=this.target[0];if(h&&h.focus)return h.focus(),this};a.prototype.blur=function(){var h=this.target[0];if(h)return h.blur(),this};a.prototype.on=function(h,f){var c=this.target;c&&c.forEach(function(k){a.instances.has(k)||
a.instances.set(k,{event:[],handler:[]});a.instances.get(k).handler.push({event:h,handler:f});k.addEventListener(h,f)})};a.prototype.off=function(h,f){var c=this.target;if(c)return c.forEach(function(k){if(a.instances.has(k)){var l=a.instances.get(k);if(h&&f){var e=[];l.handler.forEach(function(g){g.event===h&&g.handler===f?k.removeEventListener(g.event,g.handler):e.push({event:g.event,handler:g.handler})});l.handler=e}else if(h){var b=[];l.handler.forEach(function(g){g.event===h&&k!==window?k.removeEventListener(g.event,
g.handler):b.push({event:g.event,handler:g.handler})});l.handler=b}else k!==window&&(l.handler.forEach(function(g){k.removeEventListener(g.event,g.handler)}),l.handler=[])}}),this};a.prototype.trigger=function(h){if(this.target[0]){var f=document.createEvent("Event");f.initEvent(h,!1,!0);this.target.forEach(function(c){c.dispatchEvent(f)})}};a.prototype.moveScroll=function(h,f,c){f=void 0===f?500:f;c=void 0===c?null:c;var k=(new Date).getTime();if(0===this.target.length)return!1;if("HTML"!==this.target[0].tagName&&
"BODY"!==this.target[0].tagName){var l=this.target[0],e=h-l.scrollTop,b=f,g=Math.ceil(Math.abs(e)/Math.ceil(b/16));requestAnimationFrame(function E(){var y=(new Date).getTime()-k;if(0<e){var V=l.scrollTop+g;l.scrollTop=l.scrollTop>h?h:V}else V=l.scrollTop-g,l.scrollTop=l.scrollTop<h?h:V;y<=b?requestAnimationFrame(E):(0<e?l.scrollTop<h&&(l.scrollTop=h):l.scrollTop>h&&(l.scrollTop=h),null!==c&&c())})}else{var p=Math.round(h),r=p-(document.body.scrollTop||document.documentElement.scrollTop),t=Math.ceil(Math.abs(r)/
(f/16)),w=document.body.scrollLeft||document.documentElement.scrollLeft,z=null;requestAnimationFrame(function E(){var y=document.body.scrollTop||document.documentElement.scrollTop;if(z===y)null!==c&&c();else{if(0<r){var V=y+t;V>p&&(V=p)}else V=y-t,V<p&&(V=p);window.scrollTo(w,V);z=y;p!==V?requestAnimationFrame(E):null!==c&&c()}})}};a.prototype.moveScrollX=function(h,f,c){function k(){b.scrollLeft=e;null!==c&&c()}f=void 0===f?500:f;c=void 0===c?null:c;var l=(new Date).getTime();if(0===this.target.length)return!1;
var e=h,b=this.target[0],g=e-b.scrollLeft,p=f,r=Math.ceil(Math.abs(g)/Math.ceil(p/16));requestAnimationFrame(function w(){var z=(new Date).getTime()-l;if(0<g){var D=b.scrollLeft+r;if(b.scrollLeft>e){k();return}}else if(D=b.scrollLeft-r,b.scrollLeft<e){k();return}b.scrollLeft=D;z<=p?requestAnimationFrame(w):0<g?b.scrollLeft<e&&k():b.scrollLeft>e&&k()})};a.instances=new WeakMap;var n=function(h){return new a(h)};n.ready=function(h){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",
h):h()};n.load=function(h){document.addEventListener("readystatechange",function(f){"complete"===f.target.readyState&&h()})};window.sg.common.libs={keyCode:{TAB_KEY:9,ENTER:13,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},extend:function(h,f){Object.keys(f).forEach(function(c){h[c]=f[c]});return h}};window.sg.common.$q=n})();
(function(){var a=window.sg.common.utils.isVerticalVisible,n=window.sg.common.utils.isHorizontalVisible,h=function(c){this.el=c=void 0===c?document:c;this.lazyEls=[];this.disabled=this.active=!1;this.tempTitle=document.querySelector("#tempTitle")&&document.querySelector("#tempTitle").value;this.tempTitleVerticalBuffer={"page-standard-pd":2E3,"page-feature-pd":2E3};this.tempTitleHorizontalBuffer={};this.init()};h.prototype.init=function(){this.setLazyLoad();this.bindEvents()};h.prototype.dispose=function(){this.el=
null;this.lazyEls=[];this.unBindEvents()};h.prototype.setDisabled=function(c){(this.disabled=c=void 0===c?!0:c)||this.setLazyLoad()};h.prototype.getEls=function(){this.el&&(this.lazyEls=[].concat($jscomp.arrayFromIterable(this.el.querySelectorAll(".lazy-load"))))};h.prototype.reInit=function(){this.disabled=this.active=!1;this.setLazyLoad();this.unBindEvents();this.bindEvents()};h.prototype.handleLazyLoad=function(c){var k=void 0;c&&c.detail&&(k=c.detail.delay);this.setLazyLoad(k)};h.prototype.setLazyLoad=
function(c){var k=this;c=void 0===c?200:c;var l=function(){k.disabled||(k.getEls(),k.lazyEls.forEach(function(e){k.load(e);0===k.lazyEls.length&&k.unBindEvents()}))};this.active||(0<c?(this.active=!0,setTimeout(function(){l();k.active=!1},c)):l())};h.prototype.setPreviewImageLoaded=function(c){var k=this,l=this.tempTitleVerticalBuffer&&this.tempTitleVerticalBuffer[this.tempTitle]||void 0,e=function(){!k.disabled&&a(c,l)&&([].concat($jscomp.arrayFromIterable(c.querySelectorAll(".image__preview"))).forEach(function(b){b.classList.contains("lazy-load")&&
k.loadImage(b)}),document.removeEventListener("scroll",e),window.removeEventListener("resize",e),window.removeEventListener("orientationchange",e))};document.addEventListener("scroll",e);window.addEventListener("resize",e);window.addEventListener("orientationchange",e)};h.prototype.loadImmediately=function(c){c.classList.contains("image__preview")||c.classList.contains("image__main")||c.classList.contains("image__hover-image--hover")?this.loadImage(c):c.classList.contains("video")&&this.loadVideo(c);
c.classList.contains("image-v2")&&this.loadImage(c,"all")};h.prototype.setLazyLoadManually=function(c){var k=this;c.classList.contains("lazy-load-man")?(this.loadImmediately(c),c.classList.remove("lazy-load-man")):[].concat($jscomp.arrayFromIterable(c.querySelectorAll(".lazy-load-man"))).forEach(function(l){k.loadImmediately(l);l.classList.remove("lazy-load-man")})};h.prototype.ignoreLazyLoadOnceUnder=function(c,k){[].concat($jscomp.arrayFromIterable(c.querySelectorAll(".lazy-load"))).forEach(function(l){var e=
window.pageYOffset,b=l.getBoundingClientRect();(b.bottom+e<k||b.top+e<k)&&l.classList.add("lazy-load-ignore-once")})};h.prototype.forceLoad=function(c){var k=this;c.classList.contains("lazy-load")?this.loadImmediately(c):[].concat($jscomp.arrayFromIterable(c.querySelectorAll(".lazy-load"))).forEach(function(l){k.loadImmediately(l)})};h.prototype.load=function(c){var k=this.tempTitleVerticalBuffer&&this.tempTitleVerticalBuffer[this.tempTitle]||void 0,l=this.tempTitleHorizontalBuffe&&this.tempTitleHorizontalBuffer[this.tempTitle]||
void 0;c.classList.contains("lazy-load-ignore-once")||(a(c,k)&&(c.classList.contains("image__preview")?this.loadImage(c):n(c,l)&&(c.classList.contains("image__main")||c.classList.contains("image__hover-image--hover")?this.loadImage(c):c.classList.contains("video")&&this.loadVideo(c))),c.classList.contains("image-v2")&&a(c)&&(this.loadImage(c,"preview"),n(c)&&this.loadImage(c,"main")));c.classList.remove("lazy-load-ignore-once")};h.prototype.clearLazy=function(c){if(c.classList.contains("image-v2")){var k=
!1;[].concat($jscomp.arrayFromIterable(c.querySelectorAll("img"))).forEach(function(l){l.dataset.src&&(k=!0)});if(k)return}c.classList.remove("lazy-load");this.lazyEls=this.lazyEls.filter(function(l){return l!==c})};h.prototype.loadImage=function(c,k){var l=(k=void 0===k?null:k)?window.sg.common.imagev2:window.sg.common.image;l&&l.load(c,k);this.clearLazy(c)};h.prototype.loadVideo=function(c){var k=window.sg.common.video;k&&k.load(c);this.clearLazy(c)};h.prototype.bindEvents=function(){this.handleLazyLoad=
this.handleLazyLoad.bind(this);document.addEventListener("scroll",this.handleLazyLoad);window.addEventListener("resize",this.handleLazyLoad);window.addEventListener("orientationchange",this.handleLazyLoad)};h.prototype.unBindEvents=function(){document.removeEventListener("scroll",this.handleLazyLoad);window.removeEventListener("resize",this.handleLazyLoad);window.removeEventListener("orientationchange",this.handleLazyLoad)};h.instance=null;var f={initAll:function(){h.instance&&(h.instance.dispose(),
h.instance=null);h.instance=new h},init:function(){h.instance?h.instance.reInit():h.instance=new h},reInit:function(){f.init()},setLazyLoad:function(){h.instance||(h.instance=new h);h.instance.setLazyLoad(0)},setPreviewImageLoaded:function(c){h.instance||(h.instance=new h);h.instance.setPreviewImageLoaded(c)},setLazyLoadManually:function(c){c&&(h.instance||(h.instance=new h),h.instance.setLazyLoadManually(c))},ignoreLazyLoadOnceUnder:function(c,k){h.instance||(h.instance=new h);h.instance.ignoreLazyLoadOnceUnder(c,
k)},setDisabled:function(c){c=void 0===c?!0:c;h.instance||(h.instance=new h);h.instance.setDisabled(c)},forceLoad:function(c){c&&(h.instance||(h.instance=new h),h.instance.forceLoad(c))}};window.sg.common.lazyLoad=f;document.addEventListener("DOMContentLoaded",f.initAll);"loading"!==document.readyState&&f.initAll()})();
(function(){var a=window.sg.common.utils.getViewPort,n=window.sg.common.utils.getCurrentDevice,h=function(c){this.els={el:c,previewImgEl:null,mainImgEl:null};this.dpr=this.maxWidth=this.device="";this.init()};h.prototype.init=function(){h.instances.has(this.els.el)||(h.instances.set(this.els.el,this),this.setElement(),this.els.mainImgEl.complete&&0!==this.els.mainImgEl.naturalWidth&&this.handleLoad(),this.setResponsive(),this.bindEvents())};h.prototype.setElement=function(){this.els.previewImgEl=
this.els.el.querySelector(".image-v2__preview");this.els.mainImgEl=this.els.el.querySelector(".image-v2__main")};h.prototype.setResponsive=function(){var c=this,k=n(),l=this.getCurrentMaxWidth(),e=this.getCurrentDpr(),b=this.els.el.classList.contains("lazy-load")||this.els.el.classList.contains("lazy-load-man"),g=function(p,r){b?(p.dataset.src=void 0===p.dataset.src?"":p.dataset.src,0>p.dataset.src.indexOf(r)&&(p.dataset.src=r)):0>decodeURI(p.src).indexOf(r)&&(p===c.els.mainImgEl&&c.els.el.classList.remove("image-v2--main-loaded"),
p.src=r)};this.els.previewImgEl&&this.device!==k&&(this.device=k,g(this.els.previewImgEl,this.els.previewImgEl.dataset[this.device+"Src"]),this.els.previewImgEl.dataset.desktopAlt&&("desktop"===this.device?this.els.previewImgEl.setAttribute("alt",this.els.previewImgEl.dataset.desktopAlt):this.els.previewImgEl.setAttribute("alt",this.els.previewImgEl.dataset.mobileAlt)));if(this.maxWidth!==l||this.dpr!==e)this.maxWidth=l,this.dpr=e,g(this.els.mainImgEl,this.els.mainImgEl.dataset[this.maxWidth+"w"+
this.dpr+"xSrc"]),this.els.mainImgEl.dataset.desktopAlt&&("360"===this.maxWidth?this.els.mainImgEl.setAttribute("alt",this.els.mainImgEl.dataset.mobileAlt):this.els.mainImgEl.setAttribute("alt",this.els.mainImgEl.dataset.desktopAlt))};h.prototype.load=function(c){var k=this,l=function(e){e&&e.dataset.src&&0>decodeURI(e.src).indexOf(e.dataset.src)&&(e===k.els.mainImgEl&&k.els.el.classList.remove("image-v2--main-loaded"),e.src=e.dataset.src,e.removeAttribute("data-src"))};"preview"===c?l(this.els.previewImgEl):
("main"!==c&&l(this.els.previewImgEl),l(this.els.mainImgEl))};h.prototype.handleLoad=function(){this.els.el.classList.add("image-v2--main-loaded")};h.prototype.bindEvents=function(){this.setResponsive=this.setResponsive.bind(this);window.addEventListener("resize",this.setResponsive);this.handleLoad=this.handleLoad.bind(this);this.els.mainImgEl.addEventListener("load",this.handleLoad)};h.prototype.getCurrentMaxWidth=function(){var c=a().width;return 768>c?"360":768<=c&&1366>c?"768":"1366"};h.prototype.getCurrentDpr=
function(){return 1.5>window.devicePixelRatio?1:2};h.instances=new WeakMap;var f={initAll:function(c){c=void 0===c?document:c;var k=function(l){h.instances.has(l)||new h(l)};c!==document&&c.classList&&c.classList.contain("image-v2")?k(c):(c.querySelectorAll||(c=document),[].concat($jscomp.arrayFromIterable(c.querySelectorAll(".image-v2"))).forEach(function(l){k(l)}))},load:function(c,k){k=void 0===k?"all":k;h.instances.has(c)?h.instances.get(c).load(k):(new h(c)).load(k)}};window.sg.common.imagev2=
f;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",f.initAll):f.initAll()})();
(function(){var a=window.sg.common.utils.getCurrentDevice,n=window.sg.common.utils.detectTransitionEndEvent,h=function(c){this.el=c;this.init()};h.prototype.init=function(){h.instances.has(this.el)||(h.instances.set(this.el,this),this.setElement(),this.setResponsiveImage(),this.bindEvents())};h.prototype.reInit=function(){this.unBindEvents();this.setElement();this.setResponsiveImage();this.bindEvents()};h.prototype.setElement=function(){this.el.getAttribute("alt")||(this.el.setAttribute("alt",""),
this.el.removeAttribute("role"))};h.prototype.destroy=function(){this.unBindEvents();h.instances.has(this.el)&&h.instances.delete(this.el);this.el=null};h.prototype.load=function(){0>decodeURI(this.el.src).indexOf(this.el.dataset.src)&&(this.el.src=this.el.dataset.src,this.el.classList.remove("image--loaded"),this.el.classList.remove("image--hide"),this.el.removeAttribute("aria-hidden"));this.el.removeAttribute("data-src")};h.prototype.setImageLoaded=function(){var c=this;this.el.classList.add("image--loaded");
if(this.el.classList.contains("image__main")){this.el.style.transition="opacity .2s";this.el.parentElement.classList.add("image--main-loaded");var k=function(){c.el.style.transition="";var b=c.el.parentElement.querySelector(".image__preview");b&&(b.classList.add("image--hide"),b.setAttribute("aria-hidden","true"))},l=n(this.el);if(l){var e=function(){k();c.el.removeEventListener(l,e)};this.el.addEventListener(l,e)}else setTimeout(k,200)}};h.prototype.bindImageLoad=function(){if(this.el.classList.contains("image__main")||
this.el.classList.contains("image__preview"))this.el.complete&&0!==this.el.naturalWidth&&!this.el.classList.contains("image--loaded")&&this.setImageLoaded(),this.setImageLoaded=this.setImageLoaded.bind(this),this.el.addEventListener("load",this.setImageLoaded)};h.prototype.bindResponsive=function(){this.el.dataset.desktopSrc!==this.el.dataset.mobileSrc&&(this.setResponsiveImage=this.setResponsiveImage.bind(this),window.addEventListener("resize",this.setResponsiveImage))};h.prototype.bindEvents=function(){this.el.classList.contains("responsive-img")&&
this.bindResponsive();this.bindImageLoad()};h.prototype.unBindEvents=function(){this.el.removeEventListener("load",this.setImageLoaded);window.removeEventListener("resize",this.setResponsiveImage)};h.prototype.setResponsiveImage=function(){if(this.el.classList.contains("responsive-img")){var c=a();if(this.device!==c){this.device=c;(c=this.el.dataset[this.device+"Src"])?this.el.style.removeProperty("display"):this.el.style.display="none";if(this.el.classList.contains("lazy-load")||this.el.classList.contains("lazy-load-man"))this.el.dataset.src=
void 0===this.el.dataset.src?"":this.el.dataset.src,0>this.el.dataset.src.indexOf(c)&&(this.el.dataset.src=c);else{try{var k=decodeURI(this.el.src)}catch(l){k=this.el.src}0>k.indexOf(c)&&(this.el.classList.remove("image--loaded"),this.el.classList.remove("image--hide"),this.el.removeAttribute("aria-hidden"),this.el.src=c)}k=this.el.dataset[this.device+"Alt"];void 0!==k&&this.el.setAttribute("alt",k)}}};h.instances=new WeakMap;window.sg.components.registerClass("image",h);var f={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.image img:not([data-auto-init\x3d"false"])'))).forEach(function(c){h.instances.has(c)||
new h(c)})},init:function(c){h.instances.has(c)||new h(c)},reInit:function(c){h.instances.has(c)?h.instances.get(c).reInit():new h(c)},load:function(c){h.instances.has(c)?h.instances.get(c).load():(new h(c)).load()},delete:function(c){h.instances.delete(c)},destroy:function(c){h.instances.has(c)&&h.instances.get(c).destroy()}};window.sg.common.image=f;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",f.initAll):f.initAll()})();
(function(){var a={index:0,isYoutubeReady:!1,callbacks:[],enqueueOnYoutubeIframeApiReady:function(b){a.isYoutubeReady?b():a.callbacks.push(b)},onYouTubeIframeApiReady:function(){a.isYoutubeReady=!0;a.callbacks.forEach(function(b){b()});a.callbacks.splice(0)}};window.sg.common.videoApi=a;window.onYouTubeIframeAPIReady=a.onYouTubeIframeApiReady;var n={ACE:{accountId:"5685289444001",playerId:"WO3Tb7i1g"},AE:{accountId:"923227814001",playerId:"YVPxrKSek"},AE_ARABIC:{accountId:"923136719001",playerId:"E3oao1olw"},
AE_ARABIC_CS:{accountId:"5711373595001",playerId:"9urZPAGHD"},AE_CS:{accountId:"5711373594001",playerId:"0XMYguG2Nw"},AFRICA_EN:{accountId:"923270648001",playerId:"lsyG00Wz0"},AFRICA_EN_CS:{accountId:"5711373605001",playerId:"t1guP7iYwy"},AFRICA_FR:{accountId:"923227818001",playerId:"Tmx2dzbrT"},AFRICA_FR_CS:{accountId:"5711373606001",playerId:"gLuvxDp4b"},AFRICA_PT:{accountId:"923136723001",playerId:"1CZXrnviEE"},AFRICA_PT_CS:{accountId:"5711373607001",playerId:"azVZUTl7x"},AL:{accountId:"5395474900001",
playerId:"oKHrt1Hn6"},AL_CS:{accountId:"5711373614001",playerId:"if48zX24H"},AR:{accountId:"923270634001",playerId:"gqJSxYCzB"},AR_CS:{accountId:"5709700884001",playerId:"ojd4uMnUWl"},AT:{accountId:"923227809001",playerId:"wnRfbwIVL"},AT_CS:{accountId:"5711373581001",playerId:"cGZtAkJpT"},AU:{accountId:"923162666001",playerId:"VMb9FyMxk"},AU_CS:{accountId:"5709700889001",playerId:"bB2vkQudw"},BE:{accountId:"923136716001",playerId:"LzbXypCvz"},BE_CS:{accountId:"5675787971001",playerId:"sEimKv7IW"},
BE_FR:{accountId:"923162674001",playerId:"FleM4KQofp"},BE_FR_CS:{accountId:"5675787972001",playerId:"7WhhmlxJj"},BG:{accountId:"923270643001",playerId:"Jo7zzVtd5"},BG_CS:{accountId:"5711373580001",playerId:"e6AWwoixf"},BR:{accountId:"923162661001",playerId:"v2BLpgM8d"},BR_CS:{accountId:"5709700879001",playerId:"qjm3J8bZLB"},CA:{accountId:"923270632001",playerId:"RUxsKbp4e"},CA_CS:{accountId:"5709700877001",playerId:"VCXS3jzBQ"},CA_FR:{accountId:"923227798001",playerId:"db9VQnzIIo"},CA_FR_CS:{accountId:"5709700876001",
playerId:"Hghbkb4GOc"},CH:{accountId:"923162673001",playerId:"U0Tv0wE3G"},CH_CS:{accountId:"5711373582001",playerId:"wfkyW1T9N"},CH_FR:{accountId:"923227810001",playerId:"wvyBB7ZyD"},CH_FR_CS:{accountId:"5711373583001",playerId:"8iaLX3eay"},CL:{accountId:"923227801001",playerId:"nbGAqWiyZ"},CL_CS:{accountId:"5709700885001",playerId:"seAio3Iab1"},CN:{accountId:"923270636001",playerId:"UOGt9s1Ot"},CN_CS:{accountId:"5711373561001",playerId:"0polYNx0hB"},CO:{accountId:"923162663001",playerId:"VN3FsuEmoA"},
CO_CS:{accountId:"5709700883001",playerId:"QkIcs4LRi"},CZ:{accountId:"923270642001",playerId:"JofGmsuUaU"},CZ_CS:{accountId:"5711373577001",playerId:"W4LcfRCdX"},DE:{accountId:"923227805001",playerId:"r5nOZyzd1"},DEV:{accountId:"901961867001",playerId:"jSPFC1gYrR"},DE_CS:{accountId:"5675787970001",playerId:"Ojq20h6rI"},DK:{accountId:"923270638001",playerId:"zThis2SPx"},DK_CS:{accountId:"5711373569001",playerId:"V6MCi9Amm"},EE:{accountId:"923227812001",playerId:"89aGBrdO5"},EE_CS:{accountId:"5711373586001",
playerId:"h1RB4WzC8h"},EG:{accountId:"923162680001",playerId:"KWJoclhcD"},EG_CS:{accountId:"5711373603001",playerId:"t6vHuEvebf"},ES:{accountId:"923162670001",playerId:"yq8Y8zZ3dG"},ES_CS:{accountId:"5711373566001",playerId:"AzllJfpFb"},FI:{accountId:"923162672001",playerId:"B8mrwLnI6"},FI_CS:{accountId:"5711373571001",playerId:"1d4N0XfEj"},FR:{accountId:"923227807001",playerId:"aACd9IQvK"},FR_CS:{accountId:"5711373573001",playerId:"wfmvyAQHg"},GCS:{accountId:"1852113008001",playerId:"b1SElAGyQ"},
GLOBAL:{accountId:"2933392367001",playerId:"i8zNocbMqF"},GR:{accountId:"923136713001",playerId:"VXwt3KwO7"},GR_CS:{accountId:"5711373576001",playerId:"OHk0ZpVMG"},HK:{accountId:"923227804001",playerId:"BlUhaVyrM"},HK_CS:{accountId:"5711373562001",playerId:"rUnBOAERZ"},HK_EN:{accountId:"923136709001",playerId:"y80dQbj5o"},HK_EN_CS:{accountId:"5711373563001",playerId:"oiUmA2Dpb"},HR:{accountId:"923270646001",playerId:"rtDIMNREJ"},HR_CS:{accountId:"5711373588001",playerId:"4dpG0kuPi"},HU:{accountId:"923270637001",
playerId:"J3N8K2Ta8"},HU_CS:{accountId:"5711373567001",playerId:"xhpdyXZwQC"},ID:{accountId:"923162667001",playerId:"8VQZlxO23"},ID_CS:{accountId:"5709700891001",playerId:"eS8Ygw9D5N"},IE:{accountId:"923136711001",playerId:"Eby5I5ug3"},IE_CS:{accountId:"5711373564001",playerId:"g2yJSJmLr"},IL:{accountId:"923162679001",playerId:"CNuem5Ud0"},IL_CS:{accountId:"5711373596001",playerId:"CuXrQqYtZ"},IN:{accountId:"923162669001",playerId:"q6Ut0BCj1"},IN_CS:{accountId:"5711373560001",playerId:"CcOagXw6na"},
IRAN:{accountId:"923270650001",playerId:"z13tWzaxK"},IRAN_CS:{accountId:"5711373600001",playerId:"rLjx2H1MSc"},IT:{accountId:"923136712001",playerId:"JhjbQ74fF"},IT_CS:{accountId:"5711373565001",playerId:"YeJZJaeSW"},JP:{accountId:"923162668001",playerId:"5syx1iggoU"},JP_CS:{accountId:"5711373559001",playerId:"1pWQq0OoW"},KZ_RU_CS:{accountId:"5711373593001",playerId:"IjzGA4NhB"},KZ_UR:{accountId:"923270647001",playerId:"1wWJHtrJL"},LATIN:{accountId:"923136703001",playerId:"Ejglgn7vR"},LATIN_CS:{accountId:"5709700880001",
playerId:"xtj1AknXN"},LATIN_EN:{accountId:"923227800001",playerId:"PqDI8nhcAF"},LATIN_EN_CS:{accountId:"5709700881001",playerId:"BwUsVdHWJ"},LB:{accountId:"5359769185001",playerId:"I6JB29uKP"},LB_CS:{accountId:"5711373613001",playerId:"PF3r8iX45"},LED:{accountId:"2172563229001",playerId:"fZOTwR23Ja"},LEVANT:{accountId:"923227815001",playerId:"sNmJq2Rhtq"},LEVANT_CS:{accountId:"5711373601001",playerId:"S2BFseOxn"},LIVE:{accountId:"901973578001",playerId:"rkHiJmE8b"},LIVE2:{accountId:"901973578001",
playerId:"BJroFThOM"},LT:{accountId:"923227813001",playerId:"UnNH8Q0aA"},LT_CS:{accountId:"5711373585001",playerId:"PLBhOXxqd"},LV:{accountId:"923270644001",playerId:"8DWjAYXe8t"},LV_CS:{accountId:"5711373584001",playerId:"wVmguU4uL"},MM:{accountId:"5395474902001",playerId:"vF6OMxYpz"},MM_CS:{accountId:"5711373615001",playerId:"HRve5S5Wk"},MX:{accountId:"923227799001",playerId:"yWADI9eqWt"},MX_CS:{accountId:"5709700878001",playerId:"fMFwGNOoA"},MY:{accountId:"923136706001",playerId:"kkY3yWnfk2"},
MY_CS:{accountId:"5711373556001",playerId:"TUr9f1ZrD"},NL:{accountId:"923136717001",playerId:"Lv58R1RvL"},NL_CS:{accountId:"5675788007001",playerId:"MKP6lFpdB"},NO:{accountId:"923227806001",playerId:"RtYYg3Lhz"},NO_CS:{accountId:"5711373572001",playerId:"lpa9BAvSi"},NZ:{accountId:"923136704001",playerId:"uc2rRn2xNM"},NZ_CS:{accountId:"5709700890001",playerId:"C200YutMY"},N_AFRICA:{accountId:"923227817001",playerId:"xMwGwNxoe"},N_AFRICA_CS:{accountId:"5711373604001",playerId:"trym9TQi9"},PE:{accountId:"923162664001",
playerId:"QnLGOyhWT"},PE_CS:{accountId:"5709700887001",playerId:"8g7eqsa4b"},PH:{accountId:"923136707001",playerId:"TPkcStHQq"},PH_CS:{accountId:"5711373557001",playerId:"XAANJvPl4I"},PK:{accountId:"923227816001",playerId:"KMGcvTLwI"},PK_CS:{accountId:"5711373602001",playerId:"ucBD9N7Wo"},PL:{accountId:"923270641001",playerId:"w6lBgsUzX"},PL_CS:{accountId:"5711373575001",playerId:"oimMVhVjJ"},PT:{accountId:"923270640001",playerId:"sdOVA4ZFD"},PT_CS:{accountId:"5711373574001",playerId:"coEoIreou"},
PY:{accountId:"4455299568001",playerId:"DVT5m3yv2"},PY_CS:{accountId:"5711373610001",playerId:"Pog90o2pZ"},RO:{accountId:"923136715001",playerId:"Xpb5ogQRq"},RO_CS:{accountId:"5711373579001",playerId:"7m3xl6r857"},RS:{accountId:"923162676001",playerId:"An8gNEU4n"},RS_CS:{accountId:"5711373587001",playerId:"XkZo8R4hQ"},RU:{accountId:"923136718001",playerId:"prEGLNvtgw"},RU_CS:{accountId:"5711373589001",playerId:"TGIYbAEj4"},SA:{accountId:"923136720001",playerId:"UGyvbSD4m"},SA_CS:{accountId:"5711373597001",
playerId:"e8LeXD9z2"},SA_EN:{accountId:"2571515532001",playerId:"e1aY2iob1"},SA_EN_CS:{accountId:"5711373598001",playerId:"HMfJhv02t"},SC:{accountId:"1275380501001",playerId:"uOrcEND0S"},SE:{accountId:"923162671001",playerId:"87s7LoiYm"},SEC:{accountId:"923136708001",playerId:"O0UmvJBBkC"},SE_CS:{accountId:"5711373568001",playerId:"YQAEzeCh7"},SG:{accountId:"923162665001",playerId:"VcCu1i5eGY"},SG_CS:{accountId:"5709700888001",playerId:"1uAHw2z66"},SI:{accountId:"3855502820001",playerId:"3iQ8u8kzHJ"},
SI_CS:{accountId:"5711373609001",playerId:"aWXzB4G7Y"},SK:{accountId:"923227808001",playerId:"6pYCGSOVM"},SK_CS:{accountId:"5711373578001",playerId:"DtyAUtIWf"},TH:{accountId:"923227802001",playerId:"GjtcZdzhG"},TH_CS:{accountId:"5711373553001",playerId:"jhV8EaiQ2P"},TR:{accountId:"923136721001",playerId:"eo4EiXfOZ6"},TR_CS:{accountId:"5711373599001",playerId:"uw0Vade3U"},TW:{accountId:"923270635001",playerId:"gB0Jrk4eC"},TW_CS:{accountId:"5711373558001",playerId:"zRLdsvdiUi"},UA:{accountId:"923162678001",
playerId:"1ZqNirAQQ"},UA_CS:{accountId:"5711373590001",playerId:"1oPqU5Hja"},UA_RU:{accountId:"923162677001",playerId:"TNhyfS3s0z"},UA_RU_CS:{accountId:"5711373592001",playerId:"n355uJ5toG"},UK:{accountId:"923136710001",playerId:"Ta4g51Ongy"},UK_CS:{accountId:"5675787969001",playerId:"X4XabEZljp"},UR:{accountId:"4455299570001",playerId:"6Sn4qURxs"},UR_CS:{accountId:"5711373612001",playerId:"SQg3bJxYB"},US:{accountId:"923227797001",playerId:"COJfPFSPz"},US_CS:{accountId:"5709700875001",playerId:"YtbrW77H5e"},
VE:{accountId:"923162662001",playerId:"NGFTP7VzK"},VE_CS:{accountId:"5709700882001",playerId:"t00eQogYI"},VN:{accountId:"923136705001",playerId:"V8VheyNOH"},VN_CS:{accountId:"5711373555001",playerId:"4gy4Qw9sC"},ZA:{accountId:"2571515531001",playerId:"ohoOzqLWr"},ZA_CS:{accountId:"5711373608001",playerId:"lK2PT9hyDT"},GLOBAL_NW:{accountId:"1832636967001",playerId:"default"},GLOBAL_CPS:{accountId:"1832636966001",playerId:"HJ7xuijZz"}},h=window.sg.common.utils.isVisible,f=window.sg.common.utils.getCurrentDevice,
c=window.sg.common.utils.getCookie,k=window.sg.common.utils.triggerEvent,l=function(b){this.el=b;this.init()};l.prototype.initValues=function(){this.type="";this.isResonsiveBind=this.isScrollPlayBind=this.isResponsive=this.isScrollPlay=this.isLazyLoad=this.isEmbed=!1;this.option={};this.defaultOption={mp4:{videoEl:'\x3cvideo class\x3d"video-player" playsinline\x3e\x3csource src\x3d"" type\x3d"video/mp4"\x3e\x3c/video\x3e',src:"",desktopSrc:"",mobileSrc:"",autoplay:!1,muted:!1,controls:!1,loop:!1,
scrollplay:!1},youtube:{videoEl:'\x3ciframe class\x3d"video-player" src\x3d\'about:blank\' allowfullscreen allow\x3d"autoplay" sandbox\x3d"allow-scripts allow-same-origin allow-presentation" style\x3d"border: none;"\x3e\x3c/iframe\x3e',src:"https://www.youtube.com/embed/{{VIDEO_ID}}?wmode\x3dopaque\x26rel\x3d0\x26enablejsapi\x3d1\x26version\x3d3\x26origin\x3d{{ORIGIN}}",id:"",autoplay:!1,muted:!1},brightCove:{countryCode:"DEV",videoEl:'\x3cvideo data-embed\x3d"default" controls class\x3d"video-js video-player"\x3e\x3c/video\x3e',
id:"",autoplay:!1,muted:!1},aparat:{videoEl:"\x3ciframe src\x3d'about:blank' allowfullscreen style\x3d\"border: none;\"\x3e\x3c/iframe\x3e",src:"https://www.aparat.com/video/video/embed/videohash/{{VIDEO_ID}}/vt/frame",liveSrc:"",autoplay:!1},url:{videoEl:"\x3ciframe src\x3d'about:blank' allowfullscreen style\x3d\"border: none;\"\x3e\x3c/iframe\x3e",src:""}};this.videoInfo={};this.toVideoState="";this.useDefaultImage=!1;this.isLazyLoad=this.el.classList.contains("lazy-load")||this.el.classList.contains("lazy-load-man");
this.isEmbed=this.el.dataset.videoEmbed?"TRUE"===this.el.dataset.videoEmbed.toUpperCase():!1;this.videoData=this.el.dataset.videoData?JSON.parse(this.el.dataset.videoData):null;this.type=this.el.dataset.videoType};l.prototype.setElements=function(){this.videoData&&(this.setDefaultImage(),!this.isLazyLoad&&this.isEmbed&&this.setVideo())};l.prototype.init=function(){l.instances.has(this.el)||(l.instances.set(this.el,this),this.initValues(),this.setElements())};l.prototype.reInit=function(){this.unBindEvents();
this.dispose();this.initValues();this.setElements()};l.prototype.load=function(){!this.isLazyLoad&&this.isEmbed||this.setVideo()};l.prototype.setDefaultImage=function(){var b=this.el.querySelector(".image");b&&(b.style.width=this.videoData.width?this.videoData.width:"100%",b.style.height=this.videoData.height?this.videoData.height:"100%");if(this.useDefaultImage="TRUE"===this.el.dataset.imageDefault.toUpperCase()){var g=c("__COM_SPEED");if(null===g||"L"!==g.toString().toUpperCase())this.useDefaultImage=
!1}this.el.dataset.imageDefault=this.useDefaultImage.toString();b&&(this.useDefaultImage?b.classList.add("default-image--show"):b.setAttribute("aria-hidden","true"))};l.prototype.setVideo=function(){if(!this.useDefaultImage){switch(this.type){case "mp4":this.setMp4(this.videoData);break;case "youtube":this.setYoutube(this.videoData);break;case "brightcove":this.setBrightCove(this.videoData);break;case "aparat":this.setAparat(this.videoData);break;case "url":this.setIframe(this.videoData)}k(this.el,
"videoInit",this.type)}};l.prototype.setMp4=function(b){var g=JSON.parse(JSON.stringify(this.defaultOption.mp4)),p=this.getEl(g.videoEl,this.el),r=p.querySelector("source");this.videoInfo.el=p;this.videoInfo.sourceEl=r;this.option=this.setOption(g,b);""!==this.option.src?r.setAttribute("src",this.option.src):(this.setResponsiveVideo(),this.isResponsive=!0,this.isResonsiveBind||(this.bindResponsive(),this.isResonsiveBind=!0));this.bindPlay();p.muted=this.option.muted;p.autoplay=this.option.autoplay;
p.controls=this.option.controls;p.loop=this.option.loop;this.isEmbed&&(p.disableRemotePlayback=!0);this.option.scrollplay&&this.isEmbed&&(p.preload="auto",p.autoplay=!1,this.videoInfo.state="stop",this.isScrollPlay=!0,this.isScrollPlayBind||(this.bindScrollPlay(),this.isScrollPlayBind=!0));p.style.width=this.option.width?this.option.width:"100%";p.style.height=this.option.height?this.option.height:"100%";b=this.option[f()+"Caption"]||this.option.caption;this.setCaption(b,p);"play"===this.toVideoState?
this.playMp4Video():"stop"===this.toVideoState&&this.stopMp4Video();this.toVideoState=""};l.prototype.setPlayed=function(){this.videoInfo.el.parentElement.classList.contains("video--played")||this.videoInfo.el.parentElement.classList.add("video--played")};l.prototype.bindPlay=function(){"mp4"===this.type&&(this.setPlayed=this.setPlayed.bind(this),this.videoInfo.el.addEventListener("play",this.setPlayed))};l.prototype.setScrollPlayVideo=function(){h(this.videoInfo.el)?"play"!==this.videoInfo.state&&
1<=this.videoInfo.el.readyState&&(this.videoInfo.el.currentTime=0,this.videoInfo.el.play(),this.videoInfo.state="play"):"play"===this.videoInfo.state&&1<=this.videoInfo.el.readyState&&(this.videoInfo.el.pause(),this.videoInfo.state="pause")};l.prototype.bindScrollPlay=function(){"mp4"===this.type&&this.isScrollPlay&&(this.setScrollPlayVideo=this.setScrollPlayVideo.bind(this),this.videoInfo.el.addEventListener("loadedmetadata",this.setScrollPlayVideo),document.addEventListener("scroll",this.setScrollPlayVideo),
window.addEventListener("resize",this.setScrollPlayVideo),window.addEventListener("orientationchange",this.setScrollPlayVideo),this.setScrollPlayVideo())};l.prototype.setResponsiveVideo=function(){var b=f();this.isEmbed&&this.device===b||(this.device=b,b=this.option[this.device+"Src"],0>this.videoInfo.sourceEl.src.indexOf(b)&&(this.videoInfo.sourceEl.src=b,this.videoInfo.el.load(),this.isScrollPlay&&(this.videoInfo.state="stop")),this.setCaption(this.option[this.device+"Caption"]||this.option.caption,
this.videoInfo.el))};l.prototype.bindResponsive=function(){"mp4"===this.type&&this.isResponsive&&(this.setResponsiveVideo=this.setResponsiveVideo.bind(this),window.addEventListener("resize",this.setResponsiveVideo))};l.prototype.unBindEvents=function(){this.videoInfo.el&&(this.videoInfo.el.removeEventListener("play",this.setPlayed),this.videoInfo.el.removeEventListener("loadedmetadata",this.setScrollPlayVideo));document.removeEventListener("scroll",this.setScrollPlayVideo);window.removeEventListener("resize",
this.setResponsiveVideo);window.removeEventListener("resize",this.setScrollPlayVideo);window.removeEventListener("orientationchange",this.setScrollPlayVideo)};l.prototype.destroy=function(){this.unBindEvents();this.dispose();l.instances.has(this.el)&&l.instances.delete(this.el);this.videoInfo=this.el=null};l.prototype.setYoutube=function(b){var g=this,p=window.sg.common.videoApi,r=JSON.parse(JSON.stringify(this.defaultOption.youtube)),t=this.getEl(r.videoEl,this.el);this.option=this.setOption(r,b);
this.option.muted=void 0!==b.muted?b.muted:this.option.autoplay;this.option.src=this.option.src.replace("{{VIDEO_ID}}",this.option.id).replace("{{ORIGIN}}",window.location.origin)+"\x26autoplay\x3d"+(this.option.autoplay?"1":"0")+"\x26mute\x3d"+(this.option.muted?"1":"0");var w=this.option.id+p.index++;t.setAttribute("id",w);t.setAttribute("src",this.option.src);t.setAttribute("title",this.option.title);t.style.width=this.option.width?this.option.width:"100%";t.style.height=this.option.height?this.option.height:
"100%";this.setCaption(this.option.caption,t);b=document.createElement("script");b.src="https://www.youtube.com/iframe_api";b.classList.add("sg-youtube-api");document.querySelector('script[src\x3d"'+b.src+'"]')||document.body.appendChild(b);var z=function(){"play"===g.toVideoState?g.playYoutubeVideo():"stop"===g.toVideoState&&g.stopYoutubeVideo();g.toVideoState=""};p.enqueueOnYoutubeIframeApiReady(function(){g.videoInfo.player=new YT.Player(w,{host:"https://www.youtube.com",events:{onReady:z}})})};
l.prototype.setBrightCove=function(b){var g=this,p=window.sg.common.videoApi,r=JSON.parse(JSON.stringify(this.defaultOption.brightCove)),t=this.getEl(r.videoEl,this.el);this.option=this.setOption(r,b);this.option.muted=void 0!==b.muted?b.muted:this.option.autoplay;b=this.option.countryCode.toUpperCase();var w=this.option.id+p.index++;t.setAttribute("id",w);t.setAttribute("data-video-id",this.option.id);t.setAttribute("data-account",n[b].accountId);t.setAttribute("data-player",n[b].playerId);t.style.width=
this.option.width?this.option.width:"100%";t.style.height=this.option.height?this.option.height:"100%";this.setCaption(this.option.caption,t);p="https://players.brightcove.net/"+n[b].accountId+"/"+n[b].playerId+"_default/index.min.js";t=document.createElement("script");t.src=p;document.body.appendChild(t);t.onload=function(){return g.setBrightCovePlayer(w,g.option)}};l.prototype.setBrightCovePlayer=function(b,g){var p=this;this.videoInfo.player=videojs(b);b=function(){p.option.muted&&p.videoInfo.player.muted(!0);
p.videoInfo.player.play()};var r=function(){"play"===p.toVideoState?p.playBrightCoveVideo():"stop"===p.toVideoState&&p.stopBrightCoveVideo();p.toVideoState=""};if(1>this.videoInfo.player.readyState()){if(g.autoplay)this.videoInfo.player.on("loadedmetadata",b);this.videoInfo.player.on("loadedmetadata",r)}else g.autoplay&&b(),r()};l.prototype.setAparat=function(b){var g=JSON.parse(JSON.stringify(this.defaultOption.aparat)),p=this.getEl(g.videoEl,this.el);this.option=this.setOption(g,b);this.option.src=
this.option.liveSrc?this.option.liveSrc:""+this.option.src.replace("{{VIDEO_ID}}",this.option.id);p.setAttribute("src",this.option.src);p.setAttribute("title",this.option.title);p.style.width=this.option.width?this.option.width:"100%";p.style.height=this.option.height?this.option.height:"100%";this.setCaption(this.option.caption,p)};l.prototype.setIframe=function(b){var g=JSON.parse(JSON.stringify(this.defaultOption.url)),p=this.getEl(g.videoEl,this.el);this.option=this.setOption(g,b);p.setAttribute("src",
this.option.src);p.setAttribute("title",this.option.title);p.style.width=this.option.width?this.option.width:"100%";p.style.height=this.option.height?this.option.height:"100%";this.setCaption(this.option.caption,p)};l.prototype.setOption=function(b,g){for(var p=Object.keys(g),r=0;r<p.length;r++){var t=p[r];b[t]=g[t]?g[t]:b[t]}return b};l.prototype.setCaption=function(b,g){var p=this.el.querySelector("p.hidden");(b=(b||"").replace(/\\\//g,"/"))?p?p.innerHTML=b:g.insertAdjacentHTML("afterend",'\x3cp class\x3d"hidden"\x3e'+
b+"\x3c/p\x3e"):p&&p.remove()};l.prototype.getEl=function(b,g){g.querySelector("figure")||g.insertAdjacentHTML("beforeend","\x3cfigure\x3e\x3c/figure\x3e");g=g.lastElementChild;g.style.width=this.videoData.width?this.videoData.width:"100%";g.style.height=this.videoData.height?this.videoData.height:"100%";g.querySelector(".video-player")||g.insertAdjacentHTML("afterbegin",b);return g.firstElementChild};l.prototype.play=function(){switch(this.type){case "mp4":this.playMp4Video();break;case "youtube":this.playYoutubeVideo();
break;case "brightcove":this.playBrightCoveVideo()}};l.prototype.stop=function(){switch(this.type){case "mp4":this.stopMp4Video();break;case "youtube":this.stopYoutubeVideo();break;case "brightcove":this.stopBrightCoveVideo()}};l.prototype.playMp4Video=function(){"mp4"===this.type&&(this.videoInfo.el?this.isScrollPlay||(this.videoInfo.el.play(),this.videoInfo.state="play"):this.toVideoState="play")};l.prototype.stopMp4Video=function(){var b=this;if("mp4"===this.type)if(this.videoInfo.el){var g=function(){b.videoInfo.el.pause();
b.videoInfo.el.currentTime=0;b.videoInfo.state="stop"},p=function(){g();b.videoInfo.el.removeEventListener("loadedmetadata",p)};1>this.videoInfo.el.readyState?this.videoInfo.el.addEventListener("loadedmetadata",p):g()}else this.toVideoState="stop"};l.prototype.playYoutubeVideo=function(){"youtube"===this.type&&(this.videoInfo.player?(this.videoInfo.player.playVideo(),this.videoInfo.state="play"):this.toVideoState="play")};l.prototype.stopYoutubeVideo=function(){"youtube"===this.type&&(this.videoInfo.player?
(this.videoInfo.player.stopVideo(),this.videoInfo.state="stop"):this.toVideoState="stop")};l.prototype.playBrightCoveVideo=function(){var b=this;if("brightcove"===this.type)if(this.videoInfo.player)if(1>this.videoInfo.player.readyState())this.videoInfo.player.on("loadedmetadata",function(){b.videoInfo.player.play();b.videoInfo.state="play"});else this.videoInfo.player.play(),this.videoInfo.state="play";else this.toVideoState="play"};l.prototype.stopBrightCoveVideo=function(){var b=this;if("brightcove"===
this.type)if(this.videoInfo.player)if(1>this.videoInfo.player.readyState())this.videoInfo.player.on("loadedmetadata",function(){b.videoInfo.player.pause();b.videoInfo.player.currentTime(0);b.videoInfo.state="stop"});else this.videoInfo.player.pause(),this.videoInfo.player.currentTime(0),this.videoInfo.state="stop";else this.toVideoState="stop"};l.prototype.dispose=function(){if(this.el.lastElementChild&&!this.isEmbed){if("brightcove"===this.type){this.videoInfo.player&&this.videoInfo.player.dispose();
var b=this.option.countryCode.toUpperCase();(b=document.querySelector('script[src\x3d"https://players.brightcove.net/'+(n[b].accountId+"/"+n[b].playerId+'_default/index.min.js"]')))&&document.body.removeChild(b)}else"youtube"===this.type&&(b=document.body.querySelector('script[src\x3d"https://www.youtube.com/iframe_api"].sg-youtube-api'))&&document.body.removeChild(b);for(;this.el.lastElementChild.hasChildNodes();)this.el.lastElementChild.removeChild(this.el.lastElementChild.firstChild);this.el.removeChild(this.el.lastElementChild)}};
l.instances=new WeakMap;var e={initAll:function(){for(var b=[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".video"))),g=[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".static-content .video"))),p=0;p<b.length;p++){for(var r=b[p],t=!1,w=0;w<g.length;w++)if(r===g[w]){t=!0;break}t||l.instances.has(r)||new l(r)}},init:function(b,g){g=void 0===g?!0:g;b=l.instances.has(b)?l.instances.get(b):new l(b);g&&b.load();return b},reInit:function(b){l.instances.has(b)?l.instances.get(b).reInit():
new l(b)},dispose:function(b){l.instances.has(b)&&l.instances.get(b).dispose()},load:function(b){l.instances.has(b)?l.instances.get(b).load():(new l(b)).load()},play:function(b){l.instances.has(b)?l.instances.get(b).play():(new l(b)).play()},stop:function(b){l.instances.has(b)?l.instances.get(b).stop():(new l(b)).stop()},destroy:function(b){l.instances.has(b)&&l.instances.get(b).destroy()}};window.sg.common.video=e;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e.initAll):
e.initAll()})();
(function(){var a=window.sg.common.$q,n=window.BezierEasing,h=window.sg.common.utils.closest,f=window.sg.common.utils.getNormalizedScrollLeft,c=window.sg.common.utils.setNormalizedScrollLeft,k=window.sg.common.utils.isPassiveSupported,l=window.sg.common.utils.bindRaf,e=function(g){this.els={el:g,contentsEl:null,wrapEl:null,horizTrackEl:null,horizTrackContentEl:null,horizBarEl:null,vertTrackEl:null,vertTrackContentEl:null,vertBarEl:null};this.init()};e.prototype.init=function(){e.instances.has(this.els.el)||(e.instances.set(this.els.el,
this),this.initValues(),this.setElement(),this.resize(),this.initHandlers(),this.bindEvents())};e.prototype.initValues=function(){this.barScrollTop=this.barScrollLeft=0;this.isAnim=this.isContentsDragging=this.isbarDragging=!1;this.isPassiveSupported=k();this.isAutoResize=this.els.el.hasAttribute("data-auto-resize");this.observer=null};e.prototype.reInit=function(){this.unBindEvents();this.initValues();this.setElement();this.resize();this.bindEvents()};e.prototype.destroy=function(){this.unBindEvents();
e.instances.has(this.els.el)&&e.instances.delete(this.els.el);this.els=this.els.el=null};e.prototype.setElement=function(){this.els.contentsEl=this.els.el.querySelector(".scrollbar__contents");this.els.wrapEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar__wrap")})[0];this.els.wrapEl||(this.els.el.insertAdjacentHTML("afterbegin",'\x3cdiv class\x3d"scrollbar__wrap"\x3e\x3c/div\x3e'),this.els.wrapEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar__wrap")})[0],
this.els.wrapEl.insertAdjacentElement("afterbegin",this.els.contentsEl));this.els.horizTrackEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar-horizontal__track")})[0];this.els.horizTrackEl||(this.els.el.insertAdjacentHTML("beforeend",'\x3cdiv class\x3d"scrollbar-horizontal__track"\x3e\x3cdiv class\x3d"scrollbar-horizontal__track-content"\x3e\x3cdiv class\x3d"scrollbar-horizontal__bar"\x3e\x3c/div\x3e\x3c/div\x3e'),this.els.horizTrackEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar-horizontal__track")})[0]);
this.els.horizTrackContentEl=this.els.horizTrackEl.querySelector(".scrollbar-horizontal__track-content");this.els.horizBarEl=this.els.horizTrackEl.querySelector(".scrollbar-horizontal__bar");this.els.vertTrackEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar-vertical__track")})[0];this.els.vertTrackEl||(this.els.el.insertAdjacentHTML("beforeend",'\x3cdiv class\x3d"scrollbar-vertical__track"\x3e\x3cdiv class\x3d"scrollbar-vertical__track-content"\x3e\x3cdiv class\x3d"scrollbar-vertical__bar"\x3e\x3c/div\x3e'),
this.els.vertTrackEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar-vertical__track")})[0]);this.els.vertTrackContentEl=this.els.vertTrackEl.querySelector(".scrollbar-vertical__track-content");this.els.vertBarEl=this.els.vertTrackEl.querySelector(".scrollbar-vertical__bar");this.els.wrapEl.style["-ms-user-select"]="";this.els.wrapEl.style.userSelect="";this.els.wrapEl.style.cursor="";this.els.wrapEl.style.overscrollBehaviorX=""};e.prototype.setTagging=function(){var g=
this;if(this.els.horizTrackEl&&this.isHorizBar!==this.prevIsHorizBar){var p=this.els.el.getAttributeNames().filter(function(r){return r.startsWith("data-tagging-")}).reduce(function(r,t){r[t.replace("data-tagging-","")]=g.els.el.getAttribute(t);return r},{});Object.keys(p).length&&(this.isHorizBar&&"none"!==window.getComputedStyle(this.els.horizTrackEl).display?Object.keys(p).forEach(function(r){g.els.horizTrackEl.setAttribute(r,p[r])}):Object.keys(p).forEach(function(r){g.els.horizTrackEl.removeAttribute(r)}));
this.prevIsHorizBar=this.isHorizBar}};e.prototype.setBarSize=function(){this.els.horizTrackEl.style.display="";var g=Math.ceil(this.els.wrapEl.getBoundingClientRect().width),p=this.els.contentsEl.scrollWidth,r=Math.ceil(this.els.horizTrackContentEl.getBoundingClientRect().width),t=g/p;1>t?(this.els.horizTrackEl.style.display="",this.horizBarWidth=r*t,this.els.horizBarEl.style.width=this.horizBarWidth+"px",this.contentsMaxScrollLeft=p-g,this.barMaxScrollLeft=r-r*t,this.isHorizBar=!0,this.els.wrapEl.style["-ms-user-select"]=
"none",this.els.wrapEl.style.userSelect="none",this.els.wrapEl.style.cursor="default",this.els.wrapEl.style.overscrollBehaviorX="contain"):(this.els.horizTrackEl.style.display="none",this.barMaxScrollLeft=this.contentsMaxScrollLeft=0,this.isHorizBar=!1);this.els.vertTrackEl.style.display="";g=Math.ceil(this.els.wrapEl.getBoundingClientRect().height);p=this.els.contentsEl.scrollHeight;r=Math.ceil(this.els.vertTrackContentEl.getBoundingClientRect().height);t=g/p;1>t?(this.els.vertTrackEl.style.display=
"",this.els.vertBarEl.style.height=r*t+"px",this.contentsMaxScrollTop=p-g,this.barMaxScrollTop=r-r*t,this.isVertBar=!0):(this.els.vertTrackEl.style.display="none",this.barMaxScrollTop=this.contentsMaxScrollTop=0,this.isVertBar=!1);this.setTagging()};e.prototype.scrollHorizBar=function(g){0>g?g=0:g>this.barMaxScrollLeft&&(g=this.barMaxScrollLeft);this.barScrollLeft=g;this.els.horizBarEl.style.transition="";this.els.horizBarEl.style.transform="translate3d("+g+"px, 0, 0)"};e.prototype.scrollVertBar=
function(g){0>g?g=0:g>this.barMaxScrollTop&&(g=this.barMaxScrollTop);this.barScrollTop=g;this.els.vertBarEl.style.transform="translate3d(0, "+g+"px, 0)"};e.prototype.scrollHoriz=function(g){var p=g;0>g?p=0:g>this.contentsMaxScrollLeft&&(p=this.contentsMaxScrollLeft);c(this.els.wrapEl,p)};e.prototype.scrollVert=function(g){0>g?g=0:g>this.contentsMaxScrollTop&&(g=this.contentsMaxScrollTop);this.els.wrapEl.scrollTop=g};e.prototype.handleScroll=function(){if(this.isHorizBar){var g=f(this.els.wrapEl);
this.scrollHorizBar(g/this.contentsMaxScrollLeft*this.barMaxScrollLeft)}this.isVertBar&&this.scrollVertBar(this.els.wrapEl.scrollTop/this.contentsMaxScrollTop*this.barMaxScrollTop);a(document).trigger("scroll")};e.prototype.handleBarScrollStart=function(g){this.isbarDragging=!0;this.prevPointX=g.screenX;this.prevPointY=g.screenY;g.target===this.els.horizBarEl?this.els.horizTrackContentEl.classList.add("bar-dragging"):g.target===this.els.vertBarEl&&this.els.vertTrackContentEl.classList.add("bar-dragging");
document.addEventListener("mousemove",this.handleBarScroll);document.addEventListener("mouseup",this.handleBarScrollEnd);document.addEventListener("selectstart",this.handleSelect)};e.prototype.handleBarScrollTouchStart=function(g){this.isbarDragging=!0;this.prevPointX=g.touches[0].screenX;this.prevPointY=g.touches[0].screenY;g.target===this.els.horizBarEl?this.els.horizTrackContentEl.classList.add("bar-dragging"):g.target===this.els.vertBarEl&&this.els.vertTrackContentEl.classList.add("bar-dragging");
document.addEventListener("touchmove",this.handleBarScroll,this.isPassiveSupported?{passive:!0}:!1);document.addEventListener("touchend",this.handleBarScrollEnd)};e.prototype.handleBarScroll=function(g){if(!this.isAnim&&this.isbarDragging){if(this.isHorizBar){var p=void 0!==g.screenX?g.screenX:g.touches[0].screenX,r=this.barScrollLeft+(p-this.prevPointX);this.scrollHorizBar(r);this.scrollHoriz(r*this.contentsMaxScrollLeft/this.barMaxScrollLeft);this.prevPointX=p}this.isVertBar&&(g=void 0!==g.screenY?
g.screenY:g.touches[0].screenY,p=this.barScrollTop+(g-this.prevPointY),this.scrollVertBar(p),this.scrollVert(p*this.contentsMaxScrollTop/this.barMaxScrollTop),this.prevPointY=g)}};e.prototype.handleBarScrollEnd=function(){this.isbarDragging=!1;this.prevPointY=this.prevPointX=0;this.els.horizTrackContentEl.classList.remove("bar-dragging");this.els.vertTrackContentEl.classList.remove("bar-dragging");document.removeEventListener("mousemove",this.handleBarScroll);document.removeEventListener("mouseup",
this.handleBarScrollEnd);document.removeEventListener("touchmove",this.handleBarScroll);document.removeEventListener("touchend",this.handleBarScrollEnd);document.removeEventListener("selectstart",this.handleSelect)};e.prototype.handleSelect=function(g){g.stopPropagation();g.preventDefault();return!1};e.prototype.handleContentsDragStart=function(g){this.isHorizBar&&"hidden"!==window.getComputedStyle(this.els.wrapEl).overflow&&(this.startX=g.clientX+f(this.els.wrapEl),this.isContentsDragging=!0,this.isClickDisabled=
!1,this.diffX=0,document.addEventListener("mousemove",this.handleContentsDrag),document.addEventListener("mouseup",this.handleContentsDragEnd))};e.prototype.handleContentsDrag=function(g){if(!this.isAnim&&this.isContentsDragging){this.diffX=this.startX-(g.clientX+f(this.els.wrapEl));this.scrollHoriz(f(this.els.wrapEl)+this.diffX);var p=function(r){h(r.target,"a")&&(r.preventDefault(),r.stopPropagation());document.removeEventListener("click",p)};this.isClickDisabled||(document.addEventListener("click",
p),this.isClickDisabled=!0)}};e.prototype.handleContentsDragEnd=function(){this.isContentsDragging=!1;document.removeEventListener("mousemove",this.handleContentsDrag);document.removeEventListener("mouseup",this.handleContentsDragEnd)};e.prototype.handleHorizTrackContentClick=function(g){g=g.clientX-this.els.horizTrackContentEl.getBoundingClientRect().left;g<this.barScrollLeft?this.scrollTo(-this.els.wrapEl.getBoundingClientRect().width,null,!1,200):g>this.barScrollLeft+this.horizBarWidth&&this.scrollTo(this.els.wrapEl.getBoundingClientRect().width,
null,!1,200)};e.prototype.handleDragStart=function(g){g.preventDefault()};e.prototype.resize=function(){this.setBarSize();this.handleScroll()};e.prototype.initHandlers=function(){this.handleScroll=l(this.handleScroll.bind(this));this.handleBarScrollStart=this.handleBarScrollStart.bind(this);this.handleBarScrollTouchStart=this.handleBarScrollTouchStart.bind(this);this.handleBarScroll=l(this.handleBarScroll.bind(this));this.handleBarScrollEnd=this.handleBarScrollEnd.bind(this);this.handleSelect=this.handleSelect.bind(this);
this.handleContentsDragStart=this.handleContentsDragStart.bind(this);this.handleContentsDrag=l(this.handleContentsDrag.bind(this));this.handleContentsDragEnd=this.handleContentsDragEnd.bind(this);this.resize=l(this.resize.bind(this));this.handleHorizTrackContentClick=this.handleHorizTrackContentClick.bind(this);this.handleDragStart=this.handleDragStart.bind(this)};e.prototype.bindEvents=function(){var g=this;this.els.wrapEl.addEventListener("scroll",this.handleScroll);this.els.horizTrackContentEl.addEventListener("click",
this.handleHorizTrackContentClick);this.els.horizBarEl.addEventListener("mousedown",this.handleBarScrollStart);this.els.horizBarEl.addEventListener("touchstart",this.handleBarScrollTouchStart,this.isPassiveSupported?{passive:!0}:!1);this.els.vertBarEl.addEventListener("mousedown",this.handleBarScrollStart);this.els.vertBarEl.addEventListener("touchstart",this.handleBarScrollTouchStart,this.isPassiveSupported?{passive:!0}:!1);this.els.wrapEl.addEventListener("mousedown",this.handleContentsDragStart);
this.els.wrapEl.addEventListener("dragstart",this.handleDragStart);window.addEventListener("resize",this.resize);if(this.isAutoResize){var p=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;this.observerTimer=null;this.observer=new p(function(){g.observerTimer&&clearTimeout(g.observerTimer);g.observerTimer=setTimeout(function(){g.resize()},320)});this.observer.observe(this.els.wrapEl,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]})}};e.prototype.unBindEvents=
function(){this.els.wrapEl.removeEventListener("scroll",this.handleScroll);this.els.horizTrackContentEl.removeEventListener("click",this.handleHorizTrackContentClick);this.els.horizBarEl.removeEventListener("mousedown",this.handleBarScrollStart);this.els.horizBarEl.removeEventListener("touchstart",this.handleBarScrollTouchStart);this.els.vertBarEl.removeEventListener("mousedown",this.handleBarScrollStart);this.els.vertBarEl.removeEventListener("touchstart",this.handleBarScrollTouchStart);this.els.wrapEl.removeEventListener("mousedown",
this.handleContentsDragStart);this.els.wrapEl.removeEventListener("dragstart",this.handleDragStart);window.removeEventListener("resize",this.resize);this.observerTimer&&(clearTimeout(this.observerTimer),this.observerTimer=null);this.observer&&(this.observer.disconnect(),this.observer=null)};e.prototype.scrollBottom=function(){this.scrollTo(null,this.contentsMaxScrollTop-this.els.wrapEl.scrollTop)};e.prototype.scrollTo=function(g,p,r,t,w){var z=this;t=void 0===t?300:t;w=void 0===w?n(.4,0,.2,1):w;var D=
f(this.els.wrapEl),E=this.els.wrapEl.scrollTop;r?(g&&(g>this.contentsMaxScrollLeft&&(g=this.contentsMaxScrollLeft),0>g&&(g=0),g-=D),p&&(p>this.contentsMaxScrollTop&&(p=this.contentsMaxScrollTop),0>g&&(p=0),p-=E)):(g&&(D+g>this.contentsMaxScrollLeft&&(g=this.contentsMaxScrollLeft-D),0>D+g&&(g=-D)),p&&(E+p>this.contentsMaxScrollTop&&(p=this.contentsMaxScrollTop-E),0>E+g&&(p=-E)));r=function(y){g&&z.scrollHoriz(D+g*y);p&&z.scrollVert(E+p*y)};0<t?this.isAnim||this.animate(r,t,w):r(1)};e.prototype.animate=
function(g,p,r){var t=this,w=Date.now();this.isAnim=!0;this.isbarDragging=this.isContentsDragging=!1;var z=function(){var D=(Date.now()-w)/p;1<D?(g(1),t.isAnim=!1):(requestAnimationFrame(z),g(r(D)))};z()};e.instances=new WeakMap;window.sg.components.registerClass("scrollbar",e);var b={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.scrollbar:not([data-auto-init\x3d"false"])'))).forEach(function(g){e.instances.has(g)||new e(g)})},init:function(g){return e.instances.has(g)?
e.instances.get(g):new e(g)},reInit:function(g){e.instances.has(g)?(g=e.instances.get(g),g.reInit()):g=new e(g);return g},scrollTo:function(g,p,r,t){t=void 0===t?!1:t;e.instances.has(g)&&e.instances.get(g).scrollTo(p,r,t)},scrollBottom:function(g){e.instances.has(g)&&e.instances.get(g).scrollBottom()},resize:function(g){e.instances.has(g)&&e.instances.get(g).resize()},destroy:function(g){e.instances.has(g)&&e.instances.get(g).destroy()}};window.sg.common.scrollbar=b;a.ready(b.initAll)})();
(function(){var a=window.sg.common.$q,n=window.sg.common.constants.BREAKPOINTS,h=window.sg.common.utils,f=window.sg.common.scrollbar,c=function(k){this.ele={window:a(window),section:a(k),scrollPopup:null,boxWrap:null};this.setProperty();this.handler={resize:this.resize.bind(this)};c.instances.set(k,this);this.init()};c.prototype.setProperty=function(){this.ele.scrollPopup=this.ele.section.find(".layer-popup__contents.scrollbar");this.ele.boxWrap=this.ele.section.find(".layer-popup__inner")};c.prototype.init=
function(){var k=this;0>=this.ele.scrollPopup.target.length||(this.bindEvents(),this.resize(),setTimeout(function(){k.resize()},500))};c.prototype.reInit=function(){var k=this;this.setProperty();0>=this.ele.scrollPopup.target.length||(this.bindEvents(),this.resize(),setTimeout(function(){k.resize()},500))};c.prototype.resize=function(){this.setScrollHeight()};c.prototype.setScrollHeight=function(){var k=this.ele.scrollPopup.find(".scrollbar__wrap").eq(0),l=k.target[0].scrollTop,e=h.getViewPort().height;
k.css({maxHeight:""});e-=this.ele.scrollPopup.target[0].offsetTop;e-=this.ele.boxWrap.offset().bottom-this.ele.scrollPopup.offset().bottom;e=void 0===this.ele.section.target[0].dataset.paddingCustom?e-(n.MOBILE<h.getViewPort().width?60:2*this.ele.boxWrap.target[0].offsetTop):e-2*this.ele.boxWrap.target[0].offsetTop;0>e&&(e=0);k.height()-1>Math.round(e)&&k.css({maxHeight:e+"px"});k.target[0].scrollTop=l;f.resize(this.ele.scrollPopup.target[0])};c.prototype.bindEvents=function(){this.ele.window.off("resize",
this.handler.resize).on("resize",this.handler.resize)};c.instances=new WeakMap;window.sg.common.layerPopupMaxHeight={initAll:function(){a(".layer-popup").target.forEach(function(k){if(0<k.querySelectorAll(".layer-popup__contents.scrollbar").length&&!c.instances.has(k))new c(k);else return null})},init:function(k){if(0<k.querySelectorAll(".layer-popup__contents.scrollbar").length&&!c.instances.has(k))[].concat($jscomp.arrayFromIterable(k.querySelectorAll(".scrollbar"))).forEach(function(l){f.init(l)}),
new c(k);else return null},reInit:function(k){if(0<k.querySelectorAll(".layer-popup__contents.scrollbar").length&&c.instances.has(k))c.instances.get(k).reInit();else return null},setMax:function(k){if(0<k.querySelectorAll(".layer-popup__contents.scrollbar").length&&c.instances.has(k))c.instances.get(k).setScrollHeight();else return null}}})();
(function(){var a=window.sg.common.$q,n=window.Swiper,h=window.sg.common.constants.BREAKPOINTS,f=window.sg.common.utils,c=window.sg.common.lazyLoad,k=window.sg.common.utils.removeAllEventListeners,l={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.basic-swiper:not([data-auto-init\x3d"false"])'))).forEach(function(b){e.instances.has(b)||new e(b)})},init:function(){a(".basic-swiper").target.forEach(function(b){e.instances.has(b)?e.instances.get(b).swiper.reInit():
new e(b)})},reInit:function(){c.reInit();a(".basic-swiper").target.forEach(function(b){e.instances.has(b)?e.instances.get(b).swiper.reInit():new e(b)})},update:function(){a(".basic-swiper").target.forEach(function(b){e.instances.has(b)&&(b=e.instances.get(b).swiper,b.slideResize(),b.update())})},getSwiper:function(b){if(e.instances.has(b))return e.instances.get(b).swiper.getSwiper()},slideChange:function(b,g){e.instances.has(b)&&e.instances.get(b).swiper.slideChange(g)},slideChangeTransitionEnd:function(b,
g){e.instances.has(b)&&e.instances.get(b).swiper.slideChangeTransitionEnd(g)},slideReInit:function(b){e.instances.has(b)?e.instances.get(b).swiper.reInit():new e(b)},slideUpdate:function(b,g){e.instances.has(b)&&e.instances.get(b).swiper.slideUpdate(g)},slideInit:function(b,g){new e(b,g)},slideRemove:function(b){e.instances.has(b)&&e.instances.get(b).swiper.remove()},slideInitEnd:function(b,g){e.instances.has(b)&&e.instances.get(b).swiper.slideInitEnd(g)},slideSwiperDestory:function(b){e.instances.has(b)&&
e.instances.get(b).swiper.slideSwiperDestory()},slideStop:function(b){e.instances.has(b)&&e.instances.get(b).swiper.slideStop()},slideStart:function(b){e.instances.has(b)&&e.instances.get(b).swiper.slideStart()},destroy:function(b){e.instances.has(b)&&e.instances.get(b).swiper.destroy()}},e=function(b,g){var p=this;this.indicator=window.sg.common.indicator;this.selector={imageMain:".image \x3e .image__main",swiperSlide:".swiper-slide",swiperWrapper:".swiper-wrapper",swiperButtonNext:".swiper-button-next",
swiperButtonPrev:".swiper-button-prev",indicator:".indicator",indicatorList:".indicator__list",indicatorControls:".indicator__controls",indicatorItem:".indicator__item",indicatorScreenWrap:".screen-indicator-wrap",indicatorScreenPrev:".screen-indicator--prev",indicatorScreenNext:".screen-indicator--next",indicatorProgress:".progressbar-indicator",indicatorProgressBar:".progressbar-indicator__bar",indicatorProgressShowClass:"progressbar-indicator--show",indicatorProgressFillClass:"progressbar-indicator__bar-fill",
hiddenButton:".hiddenButton"};this.el={componentEl:null,containerEl:null,indicatorEl:null,prevEl:null,nextEl:null,autoPlayBtnEl:null};this.group=0;this.el.containerEl=a(b);b=this.el.containerEl.attr("data-swiper-option")?JSON.parse(this.el.containerEl.target[0].dataset.swiperOption):{};this.el.componentEl=this.el.containerEl.closest(b.componentEl);var r={slidesPerView:1,spaceBetween:0,longSwipes:!0,longSwipesRatio:.1,keepWrapper:!0,offSlideAccessibility:!1,offTxtAccesibility:!1};r=f.extend(r,b);r.on=
{};r.threshold=10;r.init=!1;r.accessibility=!0;g&&(r=f.extend(r,g));void 0!==r.offTxtAccessibility&&(r.offTxtAccesibility=r.offTxtAccessibility);r.freeMode&&(r.threshold=0,r.freeModeSticky=!0,r.freeModeMomentumRatio=.01,r.centeredSlidesBounds=!0,r.touchStartPreventDefault=!1);r.a11y=!1;r.autoplay&&(r.autoplay.disableOnInteraction=!1,!1===r.autoplay.start&&(r.autoplay=!1));this.$qwindow=a(window);this.option=r;this.focusInCheck=this.autoPlayCheck=null;this.clickCheck=!1;this.activeSlide=0;this.slideChangeHandler=
this.slideInitEndHandler=this.slideChangeTransitionEndHandler=null;this.prevImageCheck=!1;this.wrapperStr='\x3cdiv class\x3d"swiper-wrapper" role\x3d"listbox"\x3e';this.focusElementStr="a, button, .video, video, h1, h2, h3, h4, h5, h6, p";this.focusElementNotxt="a, button";this.focusClass=".three-column-carousel__content, .swiper-slide-focus";this.swiperStopEle=".swiper-wrapper";this.hiddenButton='\x3cbutton type\x3d"button" class\x3d"hidden hiddenButton" tabindex\x3d"-1"\x3eStop automatic slide show\x3c/button\x3e';
this.textColorArr=[];this.textColorArr[0]=".text-white";this.textColorArr[1]=".text-black";this.bulletColorArr=[];this.bulletColorArr[0]="text-color--white";this.bulletColorArr[1]="text-color--black";this.sw=!1;this.handler={setImageCheck:function(){var t=p.el.containerEl.find(p.selector.imageMain).eq(0);0>=t.height()&&(p.el.containerEl.css({"min-height":"2px"}),t.on("load",p.handler.checkImageLoad))},checkImageLoad:function(t){p.el.containerEl.css({"min-height":""});p.slideResize();a(t.target).off("load",
p.handler.checkImageLoad)},autoPlayHandler:function(){p.autoPlayCheck=p.autoPlayCheck?!1:!0;p.autoPlayCheck?(p.sw.autoplay.start(),p.handler.autoPlayBtnSetup(!1)):(p.sw.autoplay.stop(),p.handler.autoPlayBtnSetup(!0))},autoPlayBtnSetup:function(t){if(p.el.autoPlayBtnEl.target.length){var w=p.el.autoPlayBtnEl.attr("an-la");t?(p.el.autoPlayBtnEl.attr("an-la",w.replace(":stop",":play")),p.el.autoPlayBtnEl.find(".hidden").innerHTML("play"),p.el.indicatorEl&&p.indicator.pause(p.el.indicatorEl),p.el.autoPlayBtnEl.addClass("indicator__controls--play"),
p.el.containerEl.find(p.selector.hiddenButton).text("Play automatic slide show")):(p.el.autoPlayBtnEl.attr("an-la",w.replace(":play",":stop")),p.el.autoPlayBtnEl.find(".hidden").innerHTML("stop"),p.el.indicatorEl&&p.indicator.play(p.el.indicatorEl),p.el.autoPlayBtnEl.removeClass("indicator__controls--play"),p.el.containerEl.find(p.selector.hiddenButton).text("Stop automatic slide show"))}},focusInHandler:function(t){t.preventDefault();p.sw.autoplay&&!p.focusInCheck&&(p.focusInCheck=!0,p.autoPlayCheck=
p.sw.autoplay.running,"focusin"!==t.type.toLowerCase()&&"mouseover"!==t.type.toLowerCase()||p.handler.autoPlayBtnSetup(!0),p.sw.autoplay.stop())},focusOutHandler:function(t){t.preventDefault();p.sw.autoplay&&p.focusInCheck&&(p.focusInCheck=!1,p.autoPlayCheck&&(p.clickCheck=!1,p.sw.autoplay.start(),p.handler.autoPlayBtnSetup(!1)))},renderIndicator:function(){if(p.el.indicatorEl){var t=p.indicator.init(p.el.indicatorEl);t&&t.reInit();p.el.componentEl.find(p.selector.indicatorItem).target.length&&p.indicator.move(p.el.indicatorEl,
p.activeSlide)}p.el.autoPlayBtnEl.target.length&&(p.el.autoPlayBtnEl.find(".hidden").innerHTML("stop"),k(p.el.autoPlayBtnEl.target[0],"click"),p.el.autoPlayBtnEl.removeClass("indicator__controls--play"),t=function(w){p.el.indicatorEl||p.el.autoPlayBtnEl.toggleClass("indicator__controls--play");w.preventDefault();p.focusInCheck&&!p.clickCheck&&(p.clickCheck=!0,setTimeout(function(){p.handler.autoPlayHandler(!0)},100));p.handler.autoPlayHandler()},p.el.autoPlayBtnEl.off("click").on("click",t),p.el.containerEl.find(p.selector.hiddenButton).off("click").on("click",
t))},paginationUpdateHandler:function(t,w){t=a(w).find(p.selector.indicatorItem+".swiper-pagination-bullet-active").target[0];w=a(w).find(p.selector.indicatorItem+".indicator__item--active").target[0];t!==w&&t&&(w=parseInt(t.getAttribute("data-type-clickid"),10),p.indicator.move(p.el.indicatorEl,w))},paginationRenderHandler:function(){p.handler.renderIndicator();p.handler.setupBullet()},setupBullet:function(){p.headlineArr=[];p.el.containerEl.find(".swiper-slide:not(.swiper-slide-duplicate)").target.forEach(function(z){var D=
z.getAttribute("data-type-headline");D||(D=z.dataset.tagging?JSON.parse(z.dataset.tagging)["an-tr"]:z.getAttribute("an-tr"));p.headlineArr.push(D)});p.headlineArr=p.headlineArr.concat(p.headlineArr);a(p.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(z,D){var E=null;E=D*p.group;p.group!==p.getNowPerView()&&(E=D);E=p.option.loop?p.el.containerEl.find(p.selector.swiperWrapper).find('.swiper-slide[data-swiper-slide-index\x3d"'+E+'"]'):a(p.sw.slides[E]);var y=a(z);E.target.forEach(function(va){va.setAttribute("aria-describedby",
y.attr("id"))});if(E.target[0].dataset.tagging){var V=JSON.parse(E.target[0].dataset.tagging);z=V["an-tr"];var ca=V["an-ca"];var xa=V["an-ac"];V=V["an-la"]}else z=E.attr("an-tr"),ca=E.attr("an-ca"),xa=E.attr("an-ac"),V=E.attr("an-la");var ea=E.attr("data-type-headline");ea||(ea=z);y.attr("an-tr",z);y.attr("an-ca",ca);y.attr("an-ac",xa);y.attr("an-la",V);y.attr("data-type-slide-index",D);setTimeout(function(){y.find(".hidden").innerHTML(""+ea)},0)});var t=p.getNowPerView();if(1<t)if(1>=p.option.slidesPerGroup)a(p.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(z,
D){for(var E="",y=D;y<D+t;y++)E=y!==D+t-1?E+(p.headlineArr[y]+", "):E+(""+p.headlineArr[y]);a(z).find(".hidden").innerHTML(""+E)});else{var w=0;a(p.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(z){for(var D="",E=w;E<w+t;E++)D=E!==w+t-1?D+(p.headlineArr[E]+", "):D+(""+p.headlineArr[E]);w+=t;a(z).find(".hidden").innerHTML(""+D)})}},resize:function(){"pc"===p.option.viewMode?p.resizePc():"mobile"===p.option.viewMode?p.resizeMobile():p.resize()}};this.handler.setImageCheck();
this.bindEvents();this.reInit=function(){p.el.containerEl.find(p.selector.swiperSlide).removeClass("swiper-slide-active");p.remove();p.handler.setImageCheck();p.bindEvents()};e.instances.set(this.el.containerEl.target[0],{swiper:this})};e.createCount=function(){return this.count+=1};e.prototype.customFocus=function(){};e.prototype.getSwiper=function(){return this.sw};e.prototype.init=function(){function b(){p.option.loop||z(D())}var g=this;if(!1===this.sw){this.activeSlide=0;var p=this,r=this.el.containerEl.find(this.selector.swiperSlide);
this.el.autoPlayBtnEl=this.el.componentEl.find(this.selector.indicatorControls);this.el.indicatorEl=this.el.componentEl.find(this.selector.indicator).target[0];this.el.prevEl=this.el.componentEl.find(this.selector.swiperButtonPrev);this.el.nextEl=this.el.componentEl.find(this.selector.swiperButtonNext);this.el.indicatorScreenPrev=this.el.componentEl.find(this.selector.indicatorScreenPrev);this.el.indicatorScreenNext=this.el.componentEl.find(this.selector.indicatorScreenNext);if(this.getNowPerView()>
r.target.length)this.el.prevEl.hide(),this.el.nextEl.hide();else{this.el.containerEl.find(this.selector.swiperSlide).target.forEach(function(ea,va){a(ea).hasClass("swiper-slide-active")&&(g.activeSlide=va)});if(0===this.el.containerEl.find(this.selector.swiperWrapper).target.length){var t=this.el.containerEl.find(this.selector.swiperSlide);this.slideAccessibility();r=t.clone();t.remove();t=this.el.containerEl.find(".indicator");var w=this.el.containerEl.children();0===w.target.length?this.el.containerEl.append(this.wrapperStr):
t.target.length&&!this.el.containerEl.find(this.selector.swiperButtonPrev).target.length?t.prepend(this.wrapperStr):w.eq(0).after(this.wrapperStr);this.el.containerEl.find(this.selector.swiperWrapper).append(r);window.sg.common.image.initAll();c.initAll()}this.el.containerEl.find(this.selector.hiddenButton).off().remove();this.option.autoplay&&this.el.containerEl.target[0].insertAdjacentHTML("afterbegin",this.hiddenButton);this.option.navigation?"string"===(typeof this.option.navigation.prevEl).toLowerCase()&&
(this.el.prevEl=this.el.componentEl.find(this.option.navigation.prevEl),this.el.nextEl=this.el.componentEl.find(this.option.navigation.nextEl)):(this.option.navigation={},this.option.navigation.prevEl=this.el.prevEl.target[0],this.option.navigation.nextEl=this.el.nextEl.target[0]);this.option.navigation.navigationDisabledClass="swiper-navigation-disabled";this.slideChangeHandler&&(this.option.on.slideChange=function(){g.slideChangeHandler(g.sw,g.sw.realIndex)});if(this.option.pagination){this.option.pagination=
{};if(r=this.el.componentEl.find(this.selector.indicatorProgress).target[0])this.option.pagination.type="progressbar";switch(this.option.pagination.type){case "progressbar":this.option.pagination.el=r.querySelector(this.selector.indicatorProgressBar);this.option.pagination.progressbarFillClass=this.selector.indicatorProgressFillClass;break;default:this.el.componentEl.find(this.selector.indicatorList+" \x3e button").remove(),this.option.pagination.el=this.el.componentEl.find(this.selector.indicatorList).target[0],
this.option.pagination.el&&"list"===this.option.pagination.el.getAttribute("role")?this.option.pagination.renderBullet=function(ea,va){return'\x3cdiv class\x3d"div-for-accessibility" role\x3d"listitem"\x3e\x3cbutton class\x3d"indicator__item '+va+'" data-type-clickid\x3d"'+ea+'" id\x3d"swiper'+e.createCount()+'"\x3e\x3cspan class\x3d"indicator__dot-wrap"\x3e\x3cspan class\x3d"indicator__dot"\x3e \x3cspan class\x3d"indicator__dot-inner"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"hidden"\x3eIndicator 10\x3c/span\x3e\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e'}:
this.option.pagination.el&&(this.option.pagination.renderBullet=function(ea,va){return'\x3cbutton class\x3d"indicator__item '+va+'" role\x3d"tab" data-type-clickid\x3d"'+ea+'" id\x3d"swiper'+e.createCount()+'"\x3e\x3cspan class\x3d"indicator__dot-wrap"\x3e\x3cspan class\x3d"indicator__dot"\x3e \x3cspan class\x3d"indicator__dot-inner"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"hidden"\x3eIndicator 10\x3c/span\x3e\x3c/span\x3e\x3c/button\x3e'})}}var z=function(ea){switch(void 0===ea?!1:ea){case "beginning":g.el.indicatorScreenPrev.attr("disabled",
!0);g.el.prevEl.attr("disabled",!0);g.sw.isEnd||g.sw.perView>=g.sw.slides.length?(g.el.indicatorScreenNext.attr("disabled",!0),g.el.nextEl.attr("disabled",!0)):(g.el.indicatorScreenNext.removeAttr("disabled"),g.el.nextEl.removeAttr("disabled"));g.el.containerEl.removeClass("swiper-slide--end");g.el.containerEl.addClass("swiper-slide--beginning");break;case "end":g.el.indicatorScreenPrev.removeAttr("disabled");g.el.prevEl.removeAttr("disabled");g.el.indicatorScreenNext.attr("disabled",!0);g.el.nextEl.attr("disabled",
!0);g.el.containerEl.addClass("swiper-slide--end");g.el.containerEl.removeClass("swiper-slide--beginning");break;case !1:g.el.indicatorScreenNext.removeAttr("disabled"),g.el.nextEl.removeAttr("disabled"),g.el.indicatorScreenPrev.removeAttr("disabled"),g.el.prevEl.removeAttr("disabled"),g.el.containerEl.removeClass("swiper-slide--end"),g.el.containerEl.removeClass("swiper-slide--beginning")}},D=function(){return!p.option.loop&&p.sw.isBeginning?"beginning":!p.option.loop&&p.sw.isEnd?"end":!1};r=this.getNowPerView();
this.group=this.option.slidesPerGroup;this.group||(this.group=1);r=r!==this.group&&"number"===(typeof this.group).toLowerCase()&&"auto"!==r?!0:!1;var E=[];r?(this.option.slidesPerGroup=1,this.timer=null,this.option.on={slideNextTransitionStart:function(){var ea=this;0===(this.realIndex-1)%this.group&&this.slideTo(this.activeIndex+(this.group-1));var va=!1;E.forEach(function(na){ea.realIndex===na&&(va=!0)});va&&this.slideNext();this.slideChangeHandler&&(this.timer&&clearTimeout(this.timer),this.timer=
setTimeout(function(){ea.slideChangeHandler(ea.sw,ea.sw.realIndex)},200))},slidePrevTransitionStart:function(){var ea=this;0===(this.realIndex+1)%this.group&&this.slideTo(this.activeIndex-(this.group-1));var va=!1;E.forEach(function(na){ea.realIndex===na&&(va=!0)});va&&this.slidePrev();this.slideChangeHandler&&(this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){ea.slideChangeHandler(ea.sw,ea.sw.realIndex)},200))}}):this.option.pagination&&(this.option.pagination.clickable=!0);this.option.autoHeight&&
(this.el.containerEl.find(this.selector.swiperWrapper).css({transition:"all ease-out","-o-transition":"all ease-out","-ms-transition":"all ease-out","-moz-transition":"all ease-out","-webkit-transition":"all ease-out"}),this.option.on.touchStart=function(){g.slideResize()});var y=!1;this.option.freeMode&&(this.option.on.touchEnd=function(){y=!0});this.option.on.slideChangeTransitionEnd=function(){g.slideChangeTransitionEndHandler&&g.slideChangeTransitionEndHandler(g.sw,g.sw.realIndex);g.slideAccessibility();
y||g.customFocus();y=!1};this.sw=new n(this.el.containerEl.target[0],this.option);this.sw.init();this.option.autoplay?(this.el.autoPlayBtnEl.attr("an-tr",this.option.autoplay["an-tr"]),this.el.autoPlayBtnEl.attr("an-ca",this.option.autoplay["an-ca"]),this.el.autoPlayBtnEl.attr("an-ac",this.option.autoplay["an-ac"]),this.el.autoPlayBtnEl.attr("an-la",this.option.autoplay["an-la"]),!this.el.indicatorEl&&this.el.autoPlayBtnEl&&this.handler.renderIndicator()):this.el.autoPlayBtnEl.hide();if(this.option.pagination){this.handler.setupBullet();
if(r){var V=0,ca=a(this.option.pagination.el).find(".swiper-pagination-bullet");ca.target.forEach(function(ea,va){0===va%g.group||va===ca.target.length-1?(ea.setAttribute("data-type-group-index",va),ea.setAttribute("data-type-clickid",V),V++):(E.push(va),ea.setAttribute("disabled","false"))});this.el.componentEl.find(this.selector.indicatorItem+'[disabled\x3d"false"]').remove();this.el.componentEl.find(this.selector.indicatorItem).on("click",function(ea){ea=parseInt(a(ea.target).closest(g.selector.indicatorItem).attr("data-type-group-index"),
10);g.sw.slideToLoop(ea)});var xa=parseInt(this.getNowPerView(),0);a(this.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(ea,va){var na="",cb=parseInt(ea.getAttribute("data-type-slide-index"),10);if(g.option.realSlidesPerView){for(var db=cb;db<cb+xa;db++)na+=" "+g.headlineArr[db];a(ea).find(".hidden").innerHTML("Slide "+(va+1)+":"+na)}else{for(va=cb;va<cb+xa;va++)na=va!==cb+xa-1?na+(g.headlineArr[va]+", "):na+(""+g.headlineArr[va]);a(ea).find(".hidden").innerHTML(""+
na)}})}this.option.pagination&&setTimeout(function(){g.sw.pagination&&g.sw.pagination.bullets&&(g.handler.renderIndicator(),g.sw.on("paginationUpdate",g.handler.paginationUpdateHandler),g.sw.on("paginationRender",g.handler.paginationRenderHandler))},100)}this.option.autoplay&&(this.autoPlayCheck=this.sw.autoplay.running,r=null,r=this.el.componentEl.target.length?this.el.componentEl.find(this.swiperStopEle):this.el.containerEl,this.focusInCheck=!1,r.off("mouseover",this.handler.focusInHandler).on("mouseover",
this.handler.focusInHandler),r.off("mouseleave",this.handler.focusOutHandler).on("mouseleave",this.handler.focusOutHandler),r.off("focusin",this.handler.focusInHandler).on("focusin",this.handler.focusInHandler),r.off("focusout",this.handler.focusOutHandler).on("focusout",function(ea){setTimeout(function(){a(document.activeElement).target[0]!==g.el.autoPlayBtnEl.target[0]&&g.handler.focusOutHandler(ea)},300)}));if(this.option.loop)this.sw.slideToLoop(this.activeSlide,0);else if(this.sw.slideTo(this.activeSlide,
0),this.el.indicatorEl&&"none"!==this.el.autoPlayBtnEl.css("display"))this.sw.on("slideChange",function(){g.sw.isEnd&&!g.el.autoPlayBtnEl.hasClass("indicator__controls--play")&&(g.clickCheck=!0,g.handler.autoPlayHandler())});this.slideAccessibility();this.el.nextEl.off("click").on("click",function(){g.sw.isEnd&&!g.option.loop&&g.el.prevEl.focus()});this.el.prevEl.off("click").on("click",function(){g.sw.isBeginning&&!g.option.loop&&g.el.nextEl.focus()});this.el.indicatorScreenNext.off("click").on("click",
function(){g.sw.slideNext();g.sw.isEnd&&!g.option.loop&&g.el.indicatorScreenPrev.focus()});this.el.indicatorScreenPrev.off("click").on("click",function(){g.sw.slidePrev();g.sw.isBeginning&&!g.option.loop&&g.el.indicatorScreenNext.focus()});this.sw.on("slideChange",function(){c.setLazyLoad();!1===D()&&z()});this.sw.on("transitionEnd",function(){c.setLazyLoad()});this.sw.on("reachBeginning",function(){z("beginning")});this.sw.on("reachEnd",function(){z("end")});this.sw.on("breakpoint",function(){setTimeout(function(){b()},
10)});this.sw.on("update",function(){b()});this.sw.on("init",function(){g.slideInitEndHandler&&g.slideInitEndHandler()});this.option&&this.option.pagination&&"progressbar"===this.option.pagination.type&&(r=this.el.componentEl.find(this.selector.indicatorProgress).target[0],this.sw&&this.sw.params.slidesPerView<this.sw.slides.length&&r&&r.classList.add(this.selector.indicatorProgressShowClass));b()}}};e.prototype.slideStart=function(){this.sw&&(this.autoPlayCheck=!0,this.sw.autoplay.start(),this.handler.autoPlayBtnSetup(!1))};
e.prototype.slideStop=function(){this.sw&&(this.autoPlayCheck=!1,this.sw.autoplay.stop(),this.handler.autoPlayBtnSetup(!0))};e.prototype.getNowPerView=function(){var b=0,g=this.option.breakpoints;g&&Object.keys(g).forEach(function(p){p=parseInt(p,0);f.getViewPort().width>p&&b<p&&(b=p)});g=0!==b?g[b].slidesPerView:this.option.slidesPerView;this.option.realSlidesPerView&&(g=parseInt(this.option.realSlidesPerView,0));return g};e.prototype.slideAccessibility=function(){var b=this;if(this.sw&&!this.sw.destroyed&&
!this.option.offSlideAccessibility){var g=this.getNowPerView();this.el.containerEl.find(this.focusClass).removeAttr("tabindex");for(var p=[],r=0;r<this.sw.slides.length;r++){var t=a(this.sw.slides[r]);this.option.offTxtAccesibility?t.find(this.focusElementNotxt).attr("tabindex","-1"):t.find(this.focusElementStr).attr("tabindex","-1");t.attr("aria-hidden",!0);p.push(t)}if("auto"!==g&&1<g)for(r=this.sw.activeIndex;r<this.sw.activeIndex+g;r++)if(t=p[r])t.find(this.focusElementStr).removeAttr("tabindex"),
t.attr("aria-hidden",!1),0<t.find(this.focusClass).target.length?t.find(this.focusClass).attr("tabindex","0"):t.find(this.focusElementStr).target.forEach(function(D){b.option.offTxtAccesibility&&!1===(D.matches?D.matches(b.focusElementNotxt):D.msMatchesSelector(b.focusElementNotxt))?D.removeAttribute("tabindex"):D.setAttribute("tabindex","0")});var w=this.el.containerEl.find(".swiper-slide-active");w.find(this.focusClass).target.length?w.find(this.focusClass).attr("tabindex","0"):w.find(this.focusElementStr).target.forEach(function(D){b.option.offTxtAccesibility&&
!1===(D.matches?D.matches(b.focusElementNotxt):D.msMatchesSelector(b.focusElementNotxt))?D.removeAttribute("tabindex"):D.setAttribute("tabindex","0")});w.attr("aria-hidden",!1);if(this.option.pagination){var z=!0;this.textColorArr.forEach(function(D,E){w.find(D).target.length&&(b.bulletColorArr.forEach(function(y){b.el.containerEl.removeClass(y)}),z=!1,b.el.containerEl.addClass(b.bulletColorArr[E]))});z&&this.bulletColorArr.forEach(function(D){b.el.containerEl.removeClass(D)})}}};e.prototype.update=
function(){if(this.sw){var b=this.el.containerEl.find(".swiper-slide-active").index();this.option.loop||(this.sw.activeIndex=b);this.slideResize();this.sw.update();this.slideAccessibility()}};e.prototype.slideChange=function(b){this.slideChangeHandler=b};e.prototype.slideChangeTransitionEnd=function(b){this.slideChangeTransitionEndHandler=b};e.prototype.slideInitEnd=function(b){this.sw.initialized?b():this.slideInitEndHandler=b};e.prototype.slideResize=function(){if(!1!==this.sw&&this.option.autoHeight){var b=
this.el.containerEl.find(this.selector.swiperWrapper),g=b.find(this.selector.swiperSlide);b.css({height:""});g.css({height:""});g.target.forEach(function(p){p=a(p);var r=p.outerHeight();p.css({height:r+"px"})});g=b.find(".swiper-slide.swiper-slide-active").height();b.css({height:g+"px"})}};e.prototype.remove=function(){if(!1!==this.sw){this.el.containerEl.find(".swiper-pagination-bullet").off();this.el.componentEl.find(this.selector.indicatorControls).off();var b=this.el.containerEl.find(this.selector.swiperSlide);
b.find(this.focusElementStr).removeAttr("tabindex");b.css({width:"",height:"",visibility:""});b.removeAttr("aria-hidden");b.removeAttr("aria-describedby");b.removeClass("swiper-slide-prev");b.removeClass("swiper-slide-next");this.option.keepWrapper||(b=b.clone(),this.el.containerEl.find(this.selector.swiperWrapper).remove(),this.el.containerEl.append(b));this.el.containerEl.find(".swiper-slide-duplicate").remove();this.sw.destroy();this.sw=!1}};e.prototype.slideSwiperDestory=function(){this.sw.destroy();
this.sw=!1};e.prototype.resizePc=function(){h.MOBILE<f.getViewPort().width?(this.resize(),this.init()):this.remove();this.slideAccessibility()};e.prototype.resize=function(){this.el.containerEl.find(this.selector.swiperWrapper).css({height:""});this.el.containerEl.find(this.selector.swiperWrapper+" "+this.selector.swiperSlide).css({height:""});this.slideResize();this.slideAccessibility()};e.prototype.resizeMobile=function(){h.MOBILE>=f.getViewPort().width?(this.resize(),this.init()):this.remove();
this.slideAccessibility()};e.prototype.bindEvents=function(){this.$qwindow.off("resize",this.handler.resize).on("resize",this.handler.resize);this.$qwindow.off("change",this.handler.resize).on("change",this.handler.resize);this.option.viewMode||this.init();this.handler.resize()};e.prototype.slideUpdate=function(b){void 0!==b&&(this.option=f.extend(this.option,b));this.update()};e.prototype.destroy=function(){!1!==this.sw&&(this.sw.destroy(),this.$qwindow.off("resize",this.handler.resize),e.instances.has(this.el.containerEl.target[0])&&
e.instances.delete(this.el.containerEl.target[0]))};e.count=0;e.instances=new WeakMap;window.sg.components.registerClass("swiper",e);window.sg.common.swiperManager=l;a.ready(l.initAll);a.load(l.update)})();
(function(){var a=0,n=function(){var k=window.document.createEvent("UIEvents");k.initUIEvent("resize",!0,!1,window,0);window.dispatchEvent(k)},h=function(k){k?60<a||768===window.innerWidth?n():(a++,requestAnimationFrame(function(){return h(k)})):60<a||768!==window.innerWidth?n():(a++,requestAnimationFrame(function(){return h(k)}))},f=function(){var k=document.querySelector('meta[name\x3d"viewport"]'),l=k.getAttribute("content");768>window.outerWidth&&534<window.outerWidth||window.outerWidth>window.outerHeight&&
768<=window.outerWidth&&768>window.innerWidth?"width\x3d768"!==l&&(null!=document.getElementById("isBespokeDesignStudioUSPage")?k.setAttribute("content","width\x3ddevice-width,initial-scale\x3d1.0,minimum-scale\x3d1.0"):k.setAttribute("content","width\x3d768"),a=0,requestAnimationFrame(function(){return h(!0)})):window.outerWidth>window.outerHeight&&"width\x3d768"===l||"width\x3ddevice-width,initial-scale\x3d1.0,minimum-scale\x3d1.0"===l||(k.setAttribute("content","width\x3ddevice-width,initial-scale\x3d1.0,minimum-scale\x3d1.0"),
a=0,requestAnimationFrame(function(){return h(!1)}))},c=function(k){window.outerWidth!==k||120<=a?f():(a++,k=window.outerWidth,requestAnimationFrame(function(){return c(k)}))};window.addEventListener("resize",f);window.addEventListener("orientationchange",function(){a=0;c(window.outerWidth)});"loading"===document.readyState?document.addEventListener("DOMContentLoaded",f):f()})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils.closest,h=function(k,l){this.el=k;this.src=l;Array.isArray(this.src)||(this.src=[this.src]);this.init()};h.prototype.init=function(){var k=this;this.src.forEach(function(l){k.loadSvgSprite(l)});this.setSvgs(this.el)};h.prototype.load=function(k){k&&0>this.src.indexOf(k)&&(this.src.push(k),this.loadSvgSprite(k))};h.prototype.loadSvgSprite=function(k){var l=new XMLHttpRequest;l.open("GET",k);l.send();k=function(){if(4===l.readyState){var e=
document.createElement("div");e.innerHTML=l.responseText;if(e=e.querySelector("svg"))e.setAttribute("aria-hidden","true"),e.style.position="absolute",e.style.width="0",e.style.height="0",document.body.insertBefore(e,document.body.firstChild)}};l.onreadystatechange=k;k()};h.prototype.setSvgs=function(k){k=k.querySelectorAll("use");[].concat($jscomp.arrayFromIterable(k)).forEach(function(l){var e=l.getAttribute("xlink:href")||l.getAttribute("href"),b=n(l,"svg");e&&b&&(e="#"+e.split("#")[1],l.setAttribute("xlink:href",
e),l.setAttribute("href",e))})};h.instance=null;var f=[function(){var k="";"sg"===(document.querySelector("#siteCode")?document.querySelector("#siteCode").value:"")&&(k=document.querySelector("#cdnAkamaiDomain")?document.querySelector("#cdnAkamaiDomain").value:"");return k}()+"/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/svg-sprite.svg"],c={init:function(){var k=document.querySelector("#useSvgSprite");if(!k||k&&"N"!==k.value)h.instance=new h(document,f)},load:function(k){h.instance?
h.instance.load(k):0>f.indexOf(k)&&f.push(k)},setSvgs:function(k){k=void 0===k?document:k;h.instance&&h.instance.setSvgs(k)},redrawSvg:function(k){var l=k.parentElement;if(l){var e=[].concat($jscomp.arrayFromIterable(l.childNodes)).indexOf(k);l.removeChild(k);var b=document.createElement("div");b.appendChild(k);b.innerHTML=b.innerHTML;k=b.firstChild;l.childNodes[e]?l.insertBefore(k,l.childNodes[e]):l.appendChild(k)}},redrawSvgs:function(k){k=void 0===k?document:k;k=k.querySelectorAll("svg");[].concat($jscomp.arrayFromIterable(k)).forEach(function(l){c.redrawSvg(l)})},
redrawAbnormalSvgs:function(k){k=void 0===k?document:k;var l=k.querySelectorAll("svg");[].concat($jscomp.arrayFromIterable(l)).forEach(function(e){"http://www.w3.org/2000/svg"!==k.namespaceURI&&c.redrawSvg(e)})},update:function(k){k=void 0===k?document:k;c.setSvgs(k);c.redrawSvgs(k)},updateAbnormalSvgs:function(k){k=void 0===k?document:k;c.setSvgs(k);c.redrawAbnormalSvgs(k)}};window.sg.common.icon=c;a.ready(c.init)})();
(function(){window.sg=window.sg||{};window.sg.authoring=window.sg.authoring||{};window.sg.authoring.raiseEvent={domContentLoaded:function(){var a=document.createEvent("Event");a.initEvent("DOMContentLoaded",!0,!0);return window.document.dispatchEvent(a)}}})();
(function(){var a=window.sg.common.$q,n=window.sg.common.constants.KEY_CODE,h=window.sg.common.scrollbar,f=function(k,l){var e=this;l=void 0===l?-1:l;this.els={el:a(k),selectEl:null,btnEl:null,btnTextEl:null,listWrapEl:null,listEl:null,itemEls:null,docEl:a(document)};this.els.selectEl=this.els.el.find("select");this.els.selectEl.hide();this.options=[].concat($jscomp.arrayFromIterable(this.els.selectEl.target[0].options));this.selectedIndex=l;this.isDisabled=this.isOpen=!1;this.itemMappedIndices=[];
this.itemMappedIndicesExclDisabled=[];this.eventHandler={docEl:{click:function(b){b.preventDefault();b.target.hasClass("dropdown__option")||e.close()}},el:{keydown:function(b){if(!e.isDisabled)switch(b.keyCode){case n.TAB:e.els.el.removeClass("selected");break;case n.ENTER:case n.SPACE:-1===e.selectedIndex&&(e.selectedIndex=0,e.selectItem(e.selectedIndex));e.keydown(b);break;case n.PAGE_UP:case n.HOME:e.selectedIndex=0;e.selectItem(e.selectedIndex,b);break;case n.PAGE_DOWN:case n.END:e.selectedIndex=
e.els.itemEls.target.length-1;e.selectItem(e.selectedIndex,b);break;case n.LEFT:case n.UP:-1!==e.selectedIndex&&e.selectNext(-1,b);break;case n.RIGHT:case n.DOWN:-1!==e.selectedIndex?e.selectNext(1,b):e.selectItem(0,b);break;default:e.selectItem(e.getSelectedItemIndex(b.keyCode),b)}}},btnEl:{click:function(b){b.preventDefault();b.stopPropagation();e.isDisabled||(e.els.el.toggleClass("selected"),e.els.el.hasClass("selected")?(e.els.docEl.off("click",e.eventHandler.docEl.click),e.els.docEl.on("click",
e.eventHandler.docEl.click),e.open()):e.close())}},selectEl:{change:function(b){e.selectedIndex=b.target.selectedIndex;e.els.btnTextEl.text(b.target.options[e.selectedIndex].text);e.select()}},itemEls:{click:function(b){b.preventDefault();b=a(b.target);b.hasClass("disabled")||(b=b.closest("li").index(),e.change(b),e.close(),e.els.btnEl.focus())}}};this.init()};f.prototype.init=function(){f.instances.has(this.els.el.target[0])||(f.instances.set(this.els.el.target[0],this),this.setElements(),this.bindEvents(),
this.update(),-1<this.selectedIndex&&this.selectItem(this.selectedIndex))};f.prototype.reInit=function(k){this.els.selectEl=this.els.el.find("select");this.els.btnEl=this.els.el.find(".dropdown__cta");this.els.listWrapEl=this.els.el.find(".dropdown__list-wrap");this.options=[].concat($jscomp.arrayFromIterable(this.els.selectEl.target[0].options));this.removeElements();this.setElements();this.bindEvents();this.update();-1<k&&this.selectItem(k)};f.prototype.removeElements=function(){this.els.btnEl.remove();
this.els.listWrapEl.remove()};f.prototype.setElements=function(){var k=this,l=this.els.selectEl.target[0],e=l.dataset.defaultMessage;e?l.selectedIndex=-1:e=l.options[l.selectedIndex].text;this.selectedIndex=l.selectedIndex;this.els.el.append('\x3ca class\x3d"dropdown__cta" title\x3d"'+l.title+'" href\x3d"#" role\x3d"combobox" aria-haspopup\x3d"listbox" aria-expanded\x3d"false"\x3e\x3cspan\x3e'+e+"\x3c/span\x3e\x3c/a\x3e");this.els.btnEl=this.els.el.find(".dropdown__cta");this.els.btnTextEl=this.els.btnEl.find("span");
this.els.el.append('\x3cdiv class\x3d"dropdown__list-wrap scrollbar"\x3e\x3c/div\x3e');this.els.listWrapEl=this.els.el.find(".dropdown__list-wrap");this.els.listWrapEl.append('\x3cul class\x3d"dropdown__option-list scrollbar__contents" role\x3d"listbox" tabindex\x3d"0"\x3e');this.els.listEl=this.els.listWrapEl.find(".dropdown__option-list");this.options.forEach(function(b){k.els.listEl.append('\x3cli class\x3d"dropdown__option"\x3e\x3ca href\x3d"#" role\x3d"option"\x3e\x3cspan\x3e'+b.text+"\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e")});
this.els.itemEls=this.els.listEl.find("li\x3ea");h.init(this.els.listWrapEl.target[0]);this.select()};f.prototype.select=function(){this.els.itemEls.removeAttr("aria-selected");this.els.itemEls.removeClass("active");var k=this.els.itemEls.eq(this.selectedIndex);k.addClass("active");k.attr("aria-selected",!0)};f.prototype.bindEvents=function(){this.els.btnEl.off("click").on("click",this.eventHandler.btnEl.click);this.els.itemEls.off("click").on("click",this.eventHandler.itemEls.click);this.els.selectEl.off("change").on("change",
this.eventHandler.selectEl.change);this.els.el.off("keydown").on("keydown",this.eventHandler.el.keydown)};f.prototype.update=function(){var k=this;this.els.el.hasClass("selected")&&(this.els.el.removeClass("selected"),this.els.btnEl.trigger("click"));(this.isDisabled=this.els.el.hasClass("disabled"))?(this.els.btnEl.attr("tabindex","-1"),this.els.btnEl.attr("aria-disabled","true")):(this.els.btnEl.removeAttr("tabindex"),this.els.btnEl.attr("aria-disabled","false"));this.els.itemEls.removeClass("disabled");
this.els.itemEls.removeAttr("tabindex");this.els.itemEls.attr("aria-disabled","false");this.itemMappedIndices=[];this.itemMappedIndicesExclDisabled=[];var l=0;this.options.forEach(function(e,b){k.itemMappedIndices.push(-1);e.disabled?(e=k.els.itemEls.eq(b),e.addClass("disabled"),e.attr("tabindex","-1"),e.attr("aria-disabled","true")):(k.itemMappedIndices[b]=l++,k.itemMappedIndicesExclDisabled.push(b))})};f.prototype.open=function(){this.els.el.css({"z-index":1});-1!==this.els.selectEl.target[0].selectedIndex&&
this.els.itemEls.eq(this.els.selectEl.target[0].selectedIndex).focus();this.els.btnEl.attr("aria-expanded",!0);this.isOpen=!0;this.resize()};f.prototype.close=function(){this.els.el.css({"z-index":""});this.els.el.removeAttr("z-index");this.els.el.removeClass("selected");this.isOpen=!1;this.els.btnEl.attr("aria-expanded",!1);this.els.docEl.off("click",this.eventHandler.docEl.click);this.els.btnEl.focus()};f.prototype.resize=function(){h.resize(this.els.listWrapEl.target[0])};f.prototype.change=function(k){var l=
this.els.selectEl.target[0];l.selectedIndex!==k&&(this.selectedIndex=l.selectedIndex=k,this.els.selectEl.trigger("change"))};f.prototype.keydown=function(k){this.els.btnEl.trigger("click");k.preventDefault()};f.prototype.selectNext=function(k,l){var e=-1===this.itemMappedIndices[this.selectedIndex]?0:this.itemMappedIndices[this.selectedIndex];e+=k;k=0>e?this.itemMappedIndicesExclDisabled[0]:e>this.itemMappedIndicesExclDisabled.length-1?this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-
1]:this.itemMappedIndicesExclDisabled[e];-1!==k&&(this.els.itemEls.target[k].focus(),this.change(k));l&&l.preventDefault()};f.prototype.selectItem=function(k,l){if(!(0>k)){var e=-1;0===k?e=this.itemMappedIndicesExclDisabled[0]:k===this.itemMappedIndices.length-1?e=this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-1]:-1!==this.itemMappedIndices[k]&&(e=k);-1!==e&&(this.els.itemEls.target[e].focus(),this.change(e));l&&l.preventDefault()}};f.prototype.getSelectedItemIndex=function(k){var l=
this,e=/[A-Z]/,b=k-48*Math.floor(k/48),g=String.fromCharCode(96<=k?b:k),p=!0,r=-1;k=this.selectedIndex;this.els.itemEls.target.forEach(function(t,w){var z=t.textContent.substring(0,1).toUpperCase();t=a(t).hasClass("disabled");e.test(z)&&z===g&&!t&&-1===r&&(r=w);e.test(z)&&z===g&&l.selectedIndex<w&&p&&!t&&(l.selectedIndex=w,p=!1)});k===this.selectedIndex&&-1!==r&&(this.selectedIndex=r);return this.selectedIndex};f.instances=new WeakMap;var c={initAll:function(){a(".dropdown").target.forEach(function(k){f.instances.has(k)||
new f(k)})},init:function(k){f.instances.has(k)||new f(k)},reInit:function(k,l){l=void 0===l?-1:l;f.instances.has(k)?f.instances.get(k).reInit(l):new f(k,l)}};window.sg.common.dropdown=c;a.ready(c.initAll)})();
(function(){var a=window.sg.common.$q,n=window.BezierEasing,h=window.sg.common.lazyLoad,f=function(c){this.el=c;this.init()};f.prototype.init=function(){this.scrollPos=document.body.scrollTop||document.documentElement.scrollTop;this.isAnim=!1;this.duration=600;this.easing=n(.4,0,.2,1);this.bindEvent()};f.prototype.bindEvent=function(){this.handleScroll=this.handleScroll.bind(this);window.addEventListener("scroll",this.handleScroll);this.scrollToTop=this.scrollToTop.bind(this);this.el.addEventListener("click",
this.scrollToTop)};f.prototype.handleScroll=function(){var c=document.body.scrollTop||document.documentElement.scrollTop;0<=c&&c!==this.scrollPos&&(0===c||c>this.scrollPos||this.isAnim?this.el.classList.remove("show"):this.el.classList.add("show"),this.scrollPos=c)};f.prototype.scrollToTop=function(){var c=document.body.scrollTop||document.documentElement.scrollTop,k=function(l){window.scrollTo(0,c-c*l);1===l&&h.setDisabled(!1)};this.isAnim||(h.setDisabled(),this.animate(k))};f.prototype.animate=
function(c){var k=this,l=Date.now();this.isAnim=!0;var e=function(){var b=(Date.now()-l)/k.duration;1<b?(c(1),k.isAnim=!1):(requestAnimationFrame(e),c(k.easing(b)))};requestAnimationFrame(e)};f.instance=null;a.ready(function(){var c=document.querySelector(".fab");c&&!f.instance&&(f.instance=new f(c))})})();
(function(){var a=window.sg.common.$q,n=function(f){this.els={el:f,inputEl:f.querySelector("input, textArea"),clearButtonEl:f.querySelector(".icon"),assistiveMsgEl:f.querySelector(".assistive-message"),errorMsgEl:f.querySelector(".error-message"),successMsgEl:f.querySelector(".success-message")};this.init()};n.prototype.init=function(){n.instances.has(this.els.el)||(n.instances.set(this.els.el,this),this.bindEvents())};n.prototype.setAssistiveMessage=function(f){this.els.assistiveMsgEl.innerText=
f};n.prototype.setErrorMessage=function(f){this.els.errorMsgEl.innerText=f};n.prototype.setSuccessMessage=function(f){this.els.errorMsgEl.innerText=f};n.prototype.setValue=function(f){this.els.inputEl.value=f;this.els.inputEl!==document.activeElement&&(""!==f.replace(/^\s+$/,"")?this.els.el.classList.add("text-field--active"):this.els.el.classList.remove("text-field--active"))};n.prototype.focusIn=function(){this.els.el.classList.add("text-field--focus")};n.prototype.focusOut=function(f){this.els.el.classList.remove("text-field--focus");
""!==f.target.value.replace(/^\s+$/,"")?this.els.el.classList.add("text-field--active"):this.els.el.classList.remove("text-field--active")};n.prototype.bindEvents=function(){var f=this;this.focusIn=this.focusIn.bind(this);this.focusOut=this.focusOut.bind(this);this.els.inputEl.addEventListener("focus",this.focusIn);this.els.inputEl.addEventListener("blur",this.focusOut);this.els.clearButtonEl&&this.els.clearButtonEl.addEventListener("click",function(){f.els.inputEl.value="";f.els.el.classList.remove("text-field--active")})};
n.instances=new WeakMap;var h={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".text-field"))).forEach(function(f){n.instances.has(f)||new n(f)})},init:function(f){return n.instances.has(f)?n.instances.get(f):new n(f)},setAssistiveMessage:function(f,c){n.instances.has(f)&&n.instances.get(f).setAssistiveMessage(c)},setErrorMessage:function(f,c){n.instances.has(f)&&n.instances.get(f).setErrorMessage(c)},setSuccessMessage:function(f,c){n.instances.has(f)&&n.instances.get(f).setSuccessMessage(c)},
setValue:function(f,c){n.instances.has(f)&&n.instances.get(f).setValue(c)}};window.sg.common.textField=h;a.ready(function(){return h.initAll()})})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils.getCurrentDevice,h=function(c){this.els={el:c,inputWrapEl:null,hintTextEl:null,inputWrapOutlineEl:null,inputEl:null,textAreaEl:null,voiceInputBtnEl:null,deleteBtnEl:null,errorIconEl:null,openDownBtnEl:null,iconEls:[],textLengthEl:null,assistiveMsgEl:null,errorMsgEl:null,successMsgEl:null};this.isCheckTextLength=this.isMultiLineHint=this.isMultiLine=this.isNoTitle=this.disabled=!1;this.maxLength=0;this.device=n();this.init()};h.prototype.init=
function(){h.instances.has(this.els.el)||(h.instances.set(this.els.el,this),this.setElements(),this.bindEvents())};h.prototype.reInit=function(){this.unBindEvents();this.setElements();this.bindEvents()};h.prototype.destroy=function(){this.unBindEvents();h.instances.has(this.els.el)&&h.instances.delete(this.els.el);this.els=null};h.prototype.setElements=function(){this.els.inputEl=this.els.el.querySelector(".text-field-v2__input");this.els.textAreaEl=this.els.el.querySelector(".text-field-v2__input-multi-line");
this.els.voiceInputBtnEl=this.els.el.querySelector(".text-field-v2__input-icon.voice-input");this.els.voiceInputBtnEl&&this.els.iconEls.push(this.els.voiceInputBtnEl);this.els.deleteBtnEl=this.els.el.querySelector(".text-field-v2__input-icon.delete");this.els.deleteBtnEl&&this.els.iconEls.push(this.els.deleteBtnEl);this.els.errorIconEl=this.els.el.querySelector(".text-field-v2__input-icon.error");this.els.errorIconEl&&this.els.iconEls.push(this.els.errorIconEl);this.els.openDownBtnEl=this.els.el.querySelector(".text-field-v2__input-icon.open-down");
this.els.openDownBtnEl&&this.els.iconEls.push(this.els.openDownBtnEl);this.els.assistiveMsgEl=this.els.el.querySelector(".text-field-v2__text.assistive");this.els.errorMsgEl=this.els.el.querySelector(".text-field-v2__text.error");this.els.successMsgEl=this.els.el.querySelector(".text-field-v2__text.success");this.disabled=this.els.el.classList.contains("disabled");!this.els.inputEl&&this.els.textAreaEl&&(this.els.el.classList.add("multi-line"),this.isMultiLine=!0);!this.els.iconEls.length&&this.els.inputEl&&
this.els.el.classList.add("no-icon");this.isNoTitle=this.els.el.classList.contains("no-title");if(this.isMultiLineHint=this.els.el.hasAttribute("data-multi-line-hint"))this.els.inputWrapEl=this.els.el.querySelector(".text-field-v2__input-wrap"),this.els.hintTextEl=this.els.el.querySelector(".text-field-v2__hint"),this.isMultiLine&&(this.els.inputWrapOutlineEl=this.els.el.querySelector(".text-field-v2__input-wrap__outline")),this.setMultiLineHint();if(this.isCheckTextLength=this.isMultiLine&&this.els.el.hasAttribute("data-text-length"))this.els.textLengthEl=
this.els.el.querySelector(".text-field-v2__text.text-length"),this.maxLength=this.els.textAreaEl.getAttribute("maxLength"),this.setTextLength(this.els.textAreaEl.value);this.checkActive();this.els.el.classList.contains("error")?this.setState("error"):this.els.el.classList.contains("success")?this.setState("success"):this.setState("normal")};h.prototype.setAccessibility=function(c){switch(c){case "error":if(this.els.errorMsgEl)var k=this.els.errorMsgEl.id;break;case "success":this.els.successMsgEl&&
(k=this.els.successMsgEl.id);break;default:this.els.assistiveMsgEl&&(k=this.els.assistiveMsgEl.id)}this.els.textLengthEl&&(k=k?k+" "+this.els.textLengthEl.id:this.els.textLengthEl.id);this.els.inputEl&&(k?this.els.inputEl.setAttribute("aria-describedby",k):this.els.inputEl.removeAttribute("aria-describedby"));this.els.textAreaEl&&(k?this.els.textAreaEl.setAttribute("aria-describedby",k):this.els.textAreaEl.removeAttribute("aria-describedby"))};h.prototype.handleFocus=function(){this.els.el.classList.add("active");
this.els.el.classList.add("focus")};h.prototype.handleBlur=function(){this.els.el.classList.remove("focus");this.checkActive()};h.prototype.handleInput=function(c){""!==c.target.value.replace(/^\s+$/,"")?this.els.deleteBtnEl&&this.els.el.classList.add("delete"):(this.els.el.classList.remove("delete"),this.setState("normal"));this.setTextLength(c.target.value)};h.prototype.handleDeleteBtnClick=function(){this.els.inputEl.value="";this.els.el.classList.remove("delete");this.setState("normal");this.els.inputEl.focus()};
h.prototype.handleDeleteBtnKeypress=function(c){13===c.keyCode&&c.stopPropagation()};h.prototype.checkActive=function(){var c="";this.els.inputEl&&(c=this.els.inputEl.value);this.els.textAreaEl&&(c=this.els.textAreaEl.value);""!==c.replace(/^\s+$/,"")?this.els.el.classList.add("active"):this.els.el.classList.remove("active")};h.prototype.setTextLength=function(c){this.isCheckTextLength&&(this.els.textLengthEl.textContent=c.length+"/"+this.maxLength)};h.prototype.bindEvents=function(){this.handleFocus=
this.handleFocus.bind(this);this.handleBlur=this.handleBlur.bind(this);this.handleInput=this.handleInput.bind(this);this.els.inputEl&&(this.els.inputEl.addEventListener("focus",this.handleFocus),this.els.inputEl.addEventListener("blur",this.handleBlur),this.els.inputEl.addEventListener("input",this.handleInput));this.els.textAreaEl&&(this.els.textAreaEl.addEventListener("focus",this.handleFocus),this.els.textAreaEl.addEventListener("blur",this.handleBlur),this.els.textAreaEl.addEventListener("input",
this.handleInput));this.els.deleteBtnEl&&(this.handleDeleteBtnClick=this.handleDeleteBtnClick.bind(this),this.handleDeleteBtnKeypress=this.handleDeleteBtnKeypress.bind(this),this.els.deleteBtnEl.addEventListener("click",this.handleDeleteBtnClick),this.els.deleteBtnEl.addEventListener("keypress",this.handleDeleteBtnKeypress));this.isMultiLineHint&&(this.resize=this.resize.bind(this),window.addEventListener("resize",this.resize))};h.prototype.unBindEvents=function(){this.els.inputEl&&(this.els.inputEl.removeEventListener("focus",
this.handleFocus),this.els.inputEl.removeEventListener("blur",this.handleBlur),this.els.inputEl.removeEventListener("input",this.handleInput));this.els.textAreaEl&&(this.els.textAreaEl.removeEventListener("input",this.handleInput),this.els.textAreaEl.removeEventListener("blur",this.handleBlur),this.els.textAreaEl.removeEventListener("input",this.handleInput));this.els.deleteBtnEl&&(this.els.deleteBtnEl.removeEventListener("click",this.handleDeleteBtnClick),this.els.deleteBtnEl.removeEventListener("keypress",
this.handleDeleteBtnKeypress));this.isMultiLineHint&&window.removeEventListener("resize",this.resize)};h.prototype.setDisabled=function(c){(this.disabled=void 0===c?!0:c)?(this.els.el.classList.add("disabled"),[].concat($jscomp.arrayFromIterable(this.els.iconEls)).forEach(function(k){k&&"BUTTON"===k.tagName.toUpperCase()&&(k.disabled=!0)})):(this.els.el.classList.remove("disabled"),[].concat($jscomp.arrayFromIterable(this.els.iconEls)).forEach(function(k){k&&"BUTTON"===k.tagName.toUpperCase()&&(k.disabled=
!1)}))};h.prototype.setState=function(c){switch(c){case "error":this.els.errorIconEl&&this.els.el.classList.remove("delete");this.els.el.classList.remove("success");this.els.el.classList.add("error");break;case "success":this.els.el.classList.remove("delete");this.els.el.classList.remove("error");this.els.el.classList.add("success");break;default:this.els.el.classList.remove("success"),this.els.el.classList.remove("error")}this.setAccessibility(c)};h.prototype.setMsg=function(c,k){switch(c){case "error":this.els.errorMsgEl&&
(this.els.errorMsgEl.innerText=k);break;case "success":this.els.successMsgEl&&(this.els.successMsgEl.innerText=k);break;default:this.els.assistiveMsgEl&&(this.els.assistiveMsgEl.innerText=k)}};h.prototype.setMultiLineHint=function(){var c=this;if("mobile"===this.device){var k=function(e){return(100*e/360).toFixed(2)+"vw"};requestAnimationFrame(function(){if(c.isMultiLine){if(!c.isNoTitle){c.els.el.querySelector(".text-field-v2__fake-label.title")||c.els.el.insertAdjacentHTML("afterbegin",'\x3cp class\x3d"text-field-v2__fake-label title" aria-hidden\x3d"true"\x3e'+
c.els.hintTextEl.textContent+"\x3c/p\x3e");var e=360*c.els.el.querySelector(".text-field-v2__fake-label.title").getBoundingClientRect().height/window.innerWidth+10;c.els.hintTextEl.style.transform="translate("+k(14)+", "+k(e)+")"}}else{c.isNoTitle||(c.els.el.querySelector(".text-field-v2__fake-label.title")||c.els.el.insertAdjacentHTML("afterbegin",'\x3cp class\x3d"text-field-v2__fake-label title" aria-hidden\x3d"true"\x3e'+c.els.hintTextEl.textContent+"\x3c/p\x3e"),e=360*c.els.el.querySelector(".text-field-v2__fake-label.title").getBoundingClientRect().height/
window.innerWidth,c.els.hintTextEl.style.transform="translate(0, "+k(e)+")");c.els.inputWrapEl.querySelector(".text-field-v2__fake-label.input")||c.els.inputWrapEl.insertAdjacentHTML("afterbegin",'\x3cp class\x3d"text-field-v2__fake-label input" aria-hidden\x3d"true"\x3e'+c.els.hintTextEl.textContent+"\x3c/p\x3e");var b=c.els.el.querySelector(".text-field-v2__fake-label.input").getBoundingClientRect().height;c.els.inputEl.style.height=k(360*b/window.innerWidth);c.els.iconEls.forEach(function(g){g.style.bottom=
k(360*b/window.innerWidth/2-6)})}})}else{var l=this.els.el.querySelector(".text-field-v2__fake-label.title");l&&l.remove();(l=this.els.el.querySelector(".text-field-v2__fake-label.input"))&&l.remove();this.els.hintTextEl.style="";this.els.inputEl&&(this.els.inputEl.style="");this.els.iconEls.forEach(function(e){e.style=""})}};h.prototype.resize=function(){var c=n();this.device!==c&&(this.device=c,this.setMultiLineHint())};h.prototype.setValue=function(c){if(this.els.inputEl)var k=this.els.inputEl;
this.els.textAreaEl&&(k=this.els.textAreaEl);k.value=void 0===c?"":c;""!==k.value.replace(/^\s+$/,"")?(this.els.el.classList.add("active"),this.els.deleteBtnEl&&this.els.el.classList.add("delete")):(document.activeElement!==k&&this.els.el.classList.remove("active"),this.els.el.classList.remove("delete"),this.setState("normal"));this.setTextLength(k.value)};h.prototype.getValue=function(){if(this.els.inputEl)return this.els.inputEl.value;if(this.els.textAreaEl)return this.els.textAreaEl.value};h.instances=
new WeakMap;window.sg.components.registerClass("textFieldv2",h);var f={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.text-field-v2:not([data-auto-init\x3d"false"])'))).forEach(function(c){h.instances.has(c)||new h(c)})},init:function(c){h.instances.has(c)||new h(c)},reInit:function(c){h.instances.has(c)?h.instances.get(c).reInit():new h(c)},destroy:function(c){h.instances.has(c)&&h.instances.get(c).destroy()},setDisabled:function(c,k){k=void 0===k?!0:k;h.instances.has(c)&&
h.instances.get(c).setDisabled(k)},setState:function(c,k){h.instances.has(c)&&h.instances.get(c).setState(k)},setMsg:function(c,k,l){h.instances.has(c)&&h.instances.get(c).setMsg(k,l)}};window.sg.common.textFieldv2=f;a.ready(f.initAll)})();
(function(){var a=window.sg.common.$q,n=function(f){this.els={el:a(f),buttonEl:null};this.on=!1;this.init()};n.prototype.init=function(){n.instances.has(this.els.el.target[0])||(n.instances.set(this.els.el.target[0],this),this.setElements(),this.bindEvents())};n.prototype.reInit=function(){this.setElements();this.bindEvents()};n.prototype.setElements=function(){this.els.buttonEl=this.els.el.find(".switch-v2__button");this.els.textEl=this.els.el.find(".switch-v2__button-text");this.on=this.els.buttonEl.hasClass("on");
this.els.el.addClass("initialized")};n.prototype.bindEvents=function(){var f=this;this.els.buttonEl.off("click").on("click",function(){f.els.el.removeClass("initialized");f.els.buttonEl.hasClass("on")?(f.els.buttonEl.removeClass("on"),f.on=!1,f.els.buttonEl.attr("aria-pressed",!1)):(f.els.buttonEl.addClass("on"),f.on=!0,f.els.buttonEl.attr("aria-pressed",!0))})};n.instances=new WeakMap;var h={initAll:function(){a(".switch-v2").target.forEach(function(f){n.instances.has(f)||new n(f)})},reInit:function(f){n.instances.has(f)?
n.instances.get(f).reInit():new n(f)}};window.sg.common.switchv2=h;a.ready(h.initAll())})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils,h=n.getCurrentDevice,f=n.extend,c=n.closest,k=n.addEventListener,l=n.removeAllEventListeners,e=n.triggerEvent,b=n.isRtl,g=n.getNormalizedScrollLeft,p=n.setNormalizedScrollLeft,r=window.BezierEasing,t=function(w){this.els={el:w,wrap:null,controlEl:null,controlHiddenEl:null,indicatorListWrapEl:null,indicatorListEl:null,indicatorEls:[],indicatorDotEls:[],indicatorLineEls:[],indicatorPageEls:[],videoWrapEls:[],videoEls:[]};this.defaultOption=
{type:"label-indicator",play:!1,control:!1,autoRolling:!1,infiniteRolling:!1,indicators:[]};this.dotSizeSmall=.5;this.dotSizeMedium=.75;this.dotSizeLarge=1;this.transitionDuration=400;this.transitionTimer=null;this.init()};t.prototype.init=function(){this.initValues();this.setElements();this.bindEvents();this.option.control||this.option.play||this.select(0);t.instances.has(this.els.el)||t.instances.set(this.els.el,this)};t.prototype.reInit=function(){this.select(-1);this.unBindEvents();this.initValues();
this.setElements();this.bindEvents();clearTimeout(this.transitionTimer);this.option.control||this.option.play||this.select(0)};t.prototype.destroy=function(){this.select(-1);this.unBindEvents();t.instances.has(this.els.el)&&t.instances.delete(this.els.el);this.els=null};t.prototype.initValues=function(){this.option={};this.playing=!1;this.selectedIndex=-1;this.elapseTime=0;this.device=h();this.type="";this.firstIndex=this.translateX=0;this.lastIndex=6;this.maxDotNum=7;this.inTransition=!1;this.control=
"stop";this.role="";this.animReqId&&(cancelAnimationFrame(this.animReqId),this.animReqId=null);this.videosLoaded=[];this.isRtl=b();if(this.isDotSrollable=!!this.els.el.hasAttribute("data-dot-scrollable"))this.isAnim=!1,this.duration=200,this.easing=r(.4,0,.2,1)};t.prototype.setElements=function(){var w=this,z=c(this.els.el,".indicator-container");z?(this.els.wrap=z,[].concat($jscomp.arrayFromIterable(this.els.wrap.querySelectorAll(".indicator-page"))).forEach(function(E){E.classList.contains("swiper-slide-duplicate")||
w.els.indicatorPageEls.push(E)})):this.els.wrap=null;this.els.controlEl=this.els.el.querySelector(".indicator__controls");this.els.controlHiddenEl=this.els.el.querySelector(".indicator__controls \x3e .hidden");this.els.indicatorEls=this.els.el.querySelectorAll(".indicator__item");this.els.indicatorListWrapEl=this.els.el.querySelector(".indicator__list-wrap");this.els.indicatorListEl=this.els.el.querySelector(".indicator__list");this.els.indicatorDotEls=this.els.el.querySelectorAll(".indicator__dot-inner");
this.els.indicatorLineEls=this.els.el.querySelectorAll(".indicator__label-line-filled");var D=JSON.parse(JSON.stringify(this.defaultOption));this.role=this.els.indicatorListEl.getAttribute("role");[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(E){"tablist"===w.role&&E.setAttribute("aria-selected","false");D.indicators.push(parseInt(E.dataset.indicatorDelay))});z=JSON.parse(this.els.el.dataset.indicatorData);this.option=f(D,z);this.els.controlEl&&(this.option.control=
!0);this.option.autoRolling&&(this.option.play=!1);this.setType();this.setDots()};t.prototype.setType=function(){if("desktop"===h())switch(this.option.type){case "dot-indicator":this.els.el.classList.remove("label-indicator");this.els.el.classList.add("dot-indicator");this.type="dot-indicator";break;case "dot-indicator-mobile-only":this.els.el.classList.remove("label-indicator");this.els.el.classList.add("dot-indicator");this.els.el.classList.add("dot-indicator-mobile-only");this.type="dot-indicator";
break;case "progress-indicator":break;default:this.els.el.classList.remove("dot-indicator"),this.els.el.classList.remove("dot-indicator-mobile-only"),this.els.el.classList.add("label-indicator"),this.type="label-indicator"}else"dot-indicator-mobile-only"===this.option.type&&this.els.el.classList.add("dot-indicator-mobile-only"),this.els.el.classList.remove("label-indicator"),this.els.el.classList.add("dot-indicator"),this.type="dot-indicator";"dot-indicator"===this.type&&this.option.indicators.length>
this.maxDotNum&&this.els.indicatorListWrapEl.classList.add("dot-more")};t.prototype.bindEvents=function(){var w=this;[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(z,D){k(z,"click",function(){return w.select(D)});k(z,"mouseenter",function(){return w.handleMouseEnter(D)});k(z,"mouseleave",function(){return w.handleMouseLeave(D)});k(z,"focusin",function(){w.handleMouseEnter(D);w.isDotSrollable||w.setDotsFocused(D)});k(z,"focusout",function(){w.handleMouseLeave(D)})});this.option.control&&
k(this.els.controlEl,"click",function(){w.handleControl()});this.resize=this.resize.bind(this);window.addEventListener("resize",this.resize)};t.prototype.unBindEvents=function(){[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(w){l(w,"click");l(w,"mouseenter");l(w,"mouseleave");l(w,"focusin");l(w,"focusout")});this.option.control&&l(this.els.controlEl,"click");window.removeEventListener("resize",this.resize)};t.prototype.resize=function(){var w=h();this.device!==w&&(this.device=
w,this.setType(),"label-indicator"===this.type&&(this.els.indicatorListEl.style.transform="",[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(z){z.removeAttribute("tabindex");z.removeAttribute("aria-hidden");z.style.visibility=""})),this.select(this.selectedIndex,!0));this.setDots()};t.prototype.handleMouseEnter=function(w){w=this.els.indicatorEls[w];w.classList.add("indicator__item--hover");w.classList.remove("indicator__item--not-hover")};t.prototype.handleMouseLeave=
function(w){w=this.els.indicatorEls[w];var z=w.matches?w.matches(":hover"):w.msMatchesSelector(":hover"),D=w.matches?w.matches(":focus"):w.msMatchesSelector(":focus");z||D||(w.classList.remove("indicator__item--hover"),w.classList.add("indicator__item--not-hover"))};t.prototype.handleControl=function(w){if((w=void 0===w?null:w)?!this.playing&&"play"===w:!this.playing)this.control="play",-1<this.selectedIndex?this.play():this.select(0);else if(w?this.playing&&"pause"===w:this.playing)this.control=
"stop",this.pause();this.option.control&&(this.setControlTagging(),w||e(this.els.el,"controlChange",{index:this.selectedIndex,playing:this.playing}))};t.prototype.setControlTagging=function(){var w="play"===this.control?"stop":"play",z=this.els.controlEl.getAttribute("an-la");z&&(z=""+z.substring(0,z.length-4)+w,this.els.controlEl.setAttribute("an-la",z))};t.prototype.select=function(w,z,D){var E=this;D=void 0===D?!1:D;if(this.els.indicatorEls.length){var y=this.selectedIndex;if(y!==w||(void 0===
z?0:z))if(this.animReqId&&(cancelAnimationFrame(this.animReqId),this.animReqId=null),-1<y&&(this.els.indicatorEls[y].classList.contains("indicator__item--active")&&this.els.indicatorEls[y].classList.remove("indicator__item--active"),"tablist"===this.role?this.els.indicatorEls[y].setAttribute("aria-selected","false"):this.els.indicatorEls[y].removeAttribute("title"),"label-indicator"===this.type&&this.els.indicatorLineEls[y]&&(this.els.indicatorLineEls[y].style.transform="")),0>w)this.option.control&&
this.pause(),this.selectedIndex=w;else{this.selectedIndex=w;this.els.indicatorEls[this.selectedIndex].classList.contains("indicator__item--active")||this.els.indicatorEls[this.selectedIndex].classList.add("indicator__item--active");"tablist"===this.role?this.els.indicatorEls[this.selectedIndex].setAttribute("aria-selected","true"):this.els.indicatorEls[this.selectedIndex].setAttribute("title","selected");D&&e(this.els.el,"indicatorReiterate");e(this.els.el,"indicatorMove",this.selectedIndex);this.inTransition=
!0;var V=function(ea){ea=void 0===ea?E.transitionDuration:ea;E.transitionTimer=setTimeout(function(){E.elapseTime=0;E.inTransition=!1;E.selectedIndex===w&&("play"===E.control||!E.option.autoRolling&&E.option.play)&&E.play()},0<ea?ea:0)},ca=0,xa=function(ea){var va=E.els.videoEls[E.selectedIndex]?E.els.videoEls[E.selectedIndex]:E.els.videoEls[E.selectedIndex]=ea.querySelector(".indicator-background video");if(va)if(4>va.readyState&&!E.videosLoaded[E.selectedIndex]){var na=Date.now(),cb=function(){va.removeEventListener("canplaythrough",
cb);va.currentTime=0;E.option.indicators[E.selectedIndex]===parseInt(E.els.indicatorEls[E.selectedIndex].dataset.indicatorDelay)&&(E.option.indicators[E.selectedIndex]=1E3*va.duration);E.videosLoaded[E.selectedIndex]=!0;V(E.transitionDuration-(Date.now()-na+200*ca))};va.addEventListener("canplaythrough",cb)}else va.currentTime=0,E.option.indicators[E.selectedIndex]===parseInt(E.els.indicatorEls[E.selectedIndex].dataset.indicatorDelay)&&(E.option.indicators[E.selectedIndex]=1E3*va.duration),E.videosLoaded[E.selectedIndex]=
!0,V();else 5>ca&&setTimeout(function(){xa(ea);ca++},200)};this.els.indicatorPageEls[this.selectedIndex]?(z=this.els.videoWrapEls[this.selectedIndex]?this.els.videoWrapEls[this.selectedIndex]:this.els.videoWrapEls[this.selectedIndex]=this.els.indicatorPageEls[this.selectedIndex].querySelector(".indicator-background .video"))?"TRUE"===z.dataset.videoEmbed.toUpperCase()&&"FALSE"===z.dataset.imageDefault.toUpperCase()?xa(z):V():V():V();-1<y&&this.els.videoEls[y]&&this.els.videoEls[y].pause();this.setDots()}}};
t.prototype.moveDots=function(){var w=this;if("dot-indicator"===this.type&&this.option.indicators.length>this.maxDotNum){var z=this.els.indicatorEls[0].getBoundingClientRect().width+parseFloat(this.isRtl?getComputedStyle(this.els.indicatorEls[0]).marginLeft:getComputedStyle(this.els.indicatorEls[0]).marginRight),D=this.firstIndex*z;if(this.isDotSrollable){var E=g(this.els.indicatorListEl);z=this.els.indicatorListEl.scrollWidth-Math.floor(this.els.indicatorListEl.getBoundingClientRect().width);D>z&&
(D=z);D=this.isRtl?z-D-E:D-E;z=function(){if(!w.isAnim){var y=Date.now();w.isAnim=!0;var V=function(){var ca=(Date.now()-y)/w.duration;1<ca?(p(w.els.indicatorListEl,E+1*D),w.isAnim=!1):(requestAnimationFrame(V),p(w.els.indicatorListEl,E+D*w.easing(ca)))};requestAnimationFrame(V)}};0<Math.abs(D)&&z()}else D=this.isRtl?D:-D,this.els.indicatorListEl.style.transform="translate3d("+D+"px,0,0)"}};t.prototype.setDotsFocused=function(w){"dot-indicator"===this.type&&this.option.indicators.length>this.maxDotNum&&
(w>this.lastIndex?(this.firstIndex=w-6,this.lastIndex=w,this.moveDots()):w<this.firstIndex&&(this.firstIndex=w,this.lastIndex=w+6,this.moveDots()))};t.prototype.setDots=function(){if("dot-indicator"===this.type&&this.option.indicators.length>this.maxDotNum){var w=0>this.selectedIndex?0:this.selectedIndex;w>this.lastIndex?(this.firstIndex=w-6,this.lastIndex=w):w<this.firstIndex&&(this.firstIndex=w,this.lastIndex=w+6);if(w>this.lastIndex-2){var z=2-(this.lastIndex-w),D=this.option.indicators.length-
this.lastIndex-1;this.firstIndex+=D>=z?z:D;this.lastIndex+=D>=z?z:D}else w<this.firstIndex+2&&(z=2-(w-this.firstIndex),D=this.firstIndex,this.firstIndex-=D>=z?z:D,this.lastIndex-=D>=z?z:D);this.moveDots();for(z=0;z<this.els.indicatorEls.length;z++)if(z<this.firstIndex||z>this.lastIndex)this.els.indicatorDotEls[z].style.transform="scale("+this.dotSizeSmall+")";this.els.indicatorDotEls[w].style.transform="scale("+this.dotSizeLarge+")";if(w>this.lastIndex-3){for(z=this.firstIndex+2;z<w;z++)this.els.indicatorDotEls[z].style.transform=
"scale("+this.dotSizeLarge+")";1<this.firstIndex?(this.els.indicatorDotEls[this.firstIndex].style.transform="scale("+this.dotSizeSmall+")",this.els.indicatorDotEls[this.firstIndex+1].style.transform="scale("+this.dotSizeMedium+")"):0<this.firstIndex&&(this.els.indicatorDotEls[this.firstIndex].style.transform="scale("+this.dotSizeMedium+")");this.els.indicatorDotEls[w+1]&&(z=parseFloat(this.els.indicatorDotEls[w+1].style.transform.replace(/[^\d.]/g,"")),this.dotSizeMedium>=z&&(this.els.indicatorDotEls[w+
1].style.transform="scale("+this.dotSizeMedium+")"));this.els.indicatorDotEls[w+2]&&(z=parseFloat(this.els.indicatorDotEls[w+2].style.transform.replace(/[^\d.]/g,"")),this.dotSizeSmall>=z&&(this.els.indicatorDotEls[w+2].style.transform="scale("+this.dotSizeSmall+")"))}if(w<this.firstIndex+3){for(z=w+1;z<this.lastIndex-1;z++)this.els.indicatorDotEls[z].style.transform="scale("+this.dotSizeLarge+")";this.lastIndex<this.option.indicators.length-2?(this.els.indicatorDotEls[this.lastIndex].style.transform=
"scale("+this.dotSizeSmall+")",this.els.indicatorDotEls[this.lastIndex-1].style.transform="scale("+this.dotSizeMedium+")"):this.lastIndex<this.option.indicators.length-1&&(this.els.indicatorDotEls[this.lastIndex].style.transform="scale("+this.dotSizeMedium+")");this.els.indicatorDotEls[w-1]&&(z=parseFloat(this.els.indicatorDotEls[w-1].style.transform.replace(/[^\d.]/g,"")),this.dotSizeMedium>=z&&(this.els.indicatorDotEls[w-1].style.transform="scale("+this.dotSizeMedium+")"));this.els.indicatorDotEls[w-
2]&&(z=parseFloat(this.els.indicatorDotEls[w-2].style.transform.replace(/[^\d.]/g,"")),this.dotSizeSmall>=z&&(this.els.indicatorDotEls[w-2].style.transform="scale("+this.dotSizeSmall+")"))}}};t.prototype.setIndicatorDelay=function(w,z){this.option.indicators[w]=z};t.prototype.play=function(){var w=this;this.inTransition||(this.option.control&&(this.els.controlEl.classList.remove("indicator__controls--play"),this.els.controlHiddenEl.innerHTML="stop",this.control="play",this.setControlTagging()),this.playing=
!0,this.els.videoEls[this.selectedIndex]&&!this.els.videoEls[this.selectedIndex].ended&&this.els.videoEls[this.selectedIndex].play(),this.delay=this.option.indicators[this.selectedIndex]-this.elapseTime,0<this.delay&&(this.start=Date.now(),this.animReqId=requestAnimationFrame(function(){return w.updateProgress(w.selectedIndex)})))};t.prototype.pause=function(){this.option.control&&(this.els.controlEl.classList.add("indicator__controls--play"),this.els.controlHiddenEl.innerHTML="play",this.control=
"stop",this.setControlTagging());this.playing=!1;this.els.videoEls[this.selectedIndex]&&this.els.videoEls[this.selectedIndex].pause();this.animReqId&&(this.elapseTime+=Date.now()-this.start,cancelAnimationFrame(this.animReqId),this.animReqId=null)};t.prototype.updateProgress=function(w){var z=this;if(this.selectedIndex===w){var D=Date.now()-this.start;D>=this.delay?(e(this.els.el,"indicatorDelayEnd",{index:this.selectedIndex}),this.option.autoRolling&&(w===this.option.indicators.length-1?this.option.infiniteRolling?
this.select(0,!1,!0):this.select(-1):this.select(w+1))):("label-indicator"===this.type&&(D=(this.elapseTime+D)/this.option.indicators[w],1<D&&(D=100),this.els.indicatorLineEls[w].style.transform="scaleX("+D+")"),this.animReqId=requestAnimationFrame(function(){return z.updateProgress(w)}))}};t.instances=new WeakMap;window.sg.components.registerClass&&window.sg.components.registerClass("indicator",t);n={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.indicator:not([data-auto-init\x3d"false"])'))).forEach(function(w){t.instances.has(w)||
new t(w)})},init:function(w){return t.instances.has(w)?t.instances.get(w):new t(w)},reInit:function(w){t.instances.has(w)?t.instances.get(w).reInit():new t(w)},move:function(w,z,D){D=void 0===D?!1:D;t.instances.has(w)&&t.instances.get(w).select(z,D)},play:function(w){t.instances.has(w)&&t.instances.get(w).handleControl("play")},pause:function(w){t.instances.has(w)&&t.instances.get(w).handleControl("pause")},setIndicatorDelay:function(w,z,D){t.instances.has(w)&&t.instances.get(w).setIndicatorDelay(z,
D)}};window.sg.common.indicator=n;a.ready(n.initAll)})();
(function(){var a=window.sg.common.$q,n=function(f){this.els={el:f,mobileSourceEl:f.querySelector("source:nth-of-type(1)"),desktopSourceEl:f.querySelector("source:nth-of-type(2)"),desktopOverSourceEl:f.querySelector("source:nth-of-type(3)"),imgEl:f.querySelector("img")};this.currentPlayingVideoEl={};this.focusTargetEl={};this.init()};n.prototype.init=function(){var f=this;n.instances.get(this.els.el)||(n.instances.set(this.els.el,this),"Netscape"===navigator.appName&&-1!==navigator.userAgent.search("Trident")||
-1!==navigator.userAgent.indexOf("msie")?(this.setFirstImage(),window.addEventListener("resize",function(){f.setFirstImage()})):this.els.imgEl.dataset.desktopAlt&&(this.setResponsiveAlt(),window.addEventListener("resize",function(){f.setResponsiveAlt()})))};n.prototype.setFirstImage=function(){var f=this.getTargetDevice();if(this.els.imgEl.dataset.targetDevice!==f){var c="";"mobile"===f?(c=this.els.mobileSourceEl.getAttribute("srcset").split(","),c=1.5>window.devicePixelRatio||1===c.length?c[0]:c[1]):
"desktop"===f?(c=this.els.desktopSourceEl.getAttribute("srcset").split(","),c=1.5>window.devicePixelRatio||1===c.length?c[0]:c[1]):"desktop-over"===f&&(c=this.els.desktopOverSourceEl.getAttribute("srcset").split(","),c=1.5>window.devicePixelRatio||1===c.length?c[0]:c[1]);c=c.trim().split(" ")[0];c!==this.els.imgEl.src&&(this.els.imgEl.src=c);this.els.imgEl.dataset.desktopAlt&&("mobile"===f?this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.mobileAlt):this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.desktopAlt));
this.els.imgEl.dataset.targetDevice=f}};n.prototype.setResponsiveAlt=function(){var f=this.getTargetDevice();this.els.imgEl.dataset.targetDevice!==f&&("mobile"===f?this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.mobileAlt):this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.desktopAlt),this.els.imgEl.dataset.targetDevice=f)};n.prototype.getTargetDevice=function(){var f=window,c="inner";"innerWidth"in window||(c="client",f=document.documentElement||document.body);f=f[c+"Width"];return 768>
f?"mobile":768<=f&&1366>f?"desktop":"desktop-over"};n.instances=new WeakMap;var h={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".first-image"))).forEach(function(f){n.instances.has(f)||new n(f)})}};window.sg.common.firstImage=h;a.ready(h.initAll)})();
(function(){var a=window.sg.common.$q,n=window.sg.common.constants.KEY_CODE,h=window.sg.common.scrollbar,f=window.sg.common.utils.getCurrentDevice,c=window.sg.common.utils.getMobileOS,k=window.sg.common.utils.detectTransitionEndEvent,l=window.sg.common.utils.closest,e=window.sg.common.utils.isVisible,b=window.sg.common.icon,g=function(r,t){var w=this;t=void 0===t?-1:t;this.els={el:a(r),selectEl:null,selectOptionTaggingEl:null,fieldEl:null,fieldTextEl:null,listWrapEl:null,listEl:null,scrollWrapEl:null,
itemWrapEls:null,itemEls:null,textFiledErrorTextEl:null,docEl:a(document),winEl:a(window)};this.handler={docEl:{click:function(z){w.isDisabled||(z.preventDefault(),l(z.target,".menu")!==w.els.el.target[0]&&w.close())}},el:{keydown:function(z){if(!w.isDisabled)switch(z.keyCode){case n.TAB:case n.ESC:w.isOpen&&w.close();break;case n.PAGE_UP:case n.HOME:w.index=0;w.selectItem(w.index,z);break;case n.PAGE_DOWN:case n.END:w.index=w.els.itemEls.target.length-1;w.selectItem(w.index,z);break;case n.LEFT:case n.UP:w.selectNext(-1,
z);break;case n.RIGHT:case n.DOWN:w.selectNext(1,z);break;case n.ENTER:case n.SPACE:"mobile"===w.getCurrentDevice()&&z.target===w.els.selectEl.target[0]&&-1===w.index&&(w.index=0,w.selectItem(w.index));break;default:w.selectItem(w.getSelectedItemIndex(z.keyCode),z)}}},fieldEl:{click:function(z){z.preventDefault();w.isDisabled||(w.isOpen?w.close():w.open())}},selectEl:{change:function(z){var D=w.els.selectEl.find("option"),E=z.target.selectedIndex;D.target.forEach(function(ca,xa){E!==xa&&ca.removeAttribute("selected")});
w.index=E;-1<w.index&&D.target[w.index].setAttribute("selected","");w.els.fieldTextEl.text(z.target.options[w.index].text);w.select();w.els.fieldEl.target[0].dataset.ariaLabel&&w.els.fieldEl.target[0].setAttribute("aria-label",z.target.options[w.index].text+": "+w.els.fieldEl.target[0].dataset.ariaLabel);w.els.selectEl.target[0].dataset.selectAriaLabel&&w.els.selectEl.target[0].setAttribute("aria-label",z.target.options[w.index].text+" "+w.els.selectEl.target[0].dataset.selectAriaLabel);w.handleMobileOptionTagging(z);
if(z.target.dataset.useLink){z=D.target[w.index];var y=z.dataset.openAction,V=z.value;requestAnimationFrame(function(){"current-window"===y?window.location.href=V:"new-window"===y&&window.open(V,"_blank")})}w.setState("normal")},click:function(){"mobile"===w.getCurrentDevice()&&(w.isOpen?w.close():w.open())},keyup:function(z){w.isDisabled||"mobile"===w.getCurrentDevice()&&w.isOpen&&z.keyCode===n.ESC&&w.close()}},itemWrapEls:{click:function(z){z.preventDefault();var D=a(z.target),E=w.els.selectEl.target[0];
D.hasClass("disabled")||(D=D.closest("li").index(),"click"===z.type&&E.dataset.useLink&&E.selectedIndex===D&&(E.selectedIndex=-1),w.change(D),w.close())}},winEl:{resize:this.resize.bind(this)}};this.init();this.selectItem(t)};g.prototype.init=function(){g.instances.has(this.els.el.target[0])||(g.instances.set(this.els.el.target[0],this),this.initValues(),this.setElements(),this.bindEvents(),this.update())};g.prototype.reInit=function(r){r=void 0===r?-1:r;this.els.listWrapEl.remove();this.initValues();
this.setElements();this.bindEvents();this.update();this.selectItem(r)};g.prototype.initValues=function(){this.options={};this.index=-1;this.isDisabled=this.isOpen=!1;this.itemMappedIndices=[];this.itemMappedIndicesExclDisabled=[];this.maxHeight=0;this.maxItemNum=11;this.isAnim=!0;this.device=this.getCurrentDevice();this.openDir=this.defaultOpenDir="";this.focusedIndex=-1;this.isMobileCustomSelect=this.els.el.attr("data-use-customselect-mo")?"TRUE"===this.els.el.attr("data-use-customselect-mo").toUpperCase():
!1};g.prototype.setElements=function(){var r=this;this.els.selectEl=this.els.el.find(".menu__select");var t=this.els.selectEl.target[0],w=this.els.selectEl.find("option[selected]");"ios"!==c()||this.isMobileCustomSelect||t.setAttribute("style","z-index: 1; visibility: visible;");w.target[0]&&(t.selectedIndex=w.index(),this.els.selectEl.target[0].dataset.selectAriaLabel&&this.els.selectEl.target[0].setAttribute("aria-label",w.target[0].text+" "+this.els.selectEl.target[0].dataset.selectAriaLabel));
var z=t.dataset.defaultMessage;!z&&t.options[t.selectedIndex]?z=t.options[t.selectedIndex].text:t.selectedIndex=-1;this.els.el.hasClass("menu--text-field")&&!w.target[0]&&(z="",t.selectedIndex=-1);this.index=t.selectedIndex;this.options=[].concat($jscomp.arrayFromIterable(t.options));-1===this.index&&this.options.forEach(function(E){E.removeAttribute("selected")});var D=this.els.el.target[0].hasAttribute("data-tagging-button");this.els.fieldEl=this.els.el.find(".menu__select-field");this.els.fieldTextEl=
this.els.fieldEl.find(".menu__select-field-text");this.els.fieldTextEl.text(z);this.els.fieldEl.target[0].dataset.ariaLabel&&""!==z&&this.els.fieldEl.target[0].setAttribute("aria-label",z+": "+this.els.fieldEl.target[0].dataset.ariaLabel);this.els.el.append('\x3cdiv class\x3d"menu__list-wrap scrollbar"\x3e\x3c/div\x3e');this.els.listWrapEl=this.els.el.find(".menu__list-wrap");this.els.listWrapEl.append('\x3cul class\x3d"menu__list scrollbar__contents" role\x3d"listbox"\x3e');this.els.listEl=this.els.listWrapEl.find(".menu__list");
this.options.forEach(function(E){var y="",V="";["an-tr","an-ca","an-ac","an-la"].forEach(function(ca){E.hasAttribute(ca)&&(y+=" "+ca+'\x3d"'+E.getAttribute(ca).replace('"',"")+'" ')});t.dataset.useLink&&E.title&&""!==E.title&&(V=' title\x3d"'+E.title+'"');r.els.listEl.append('\x3cli class\x3d"menu__list-option-wrap" role\x3d"presentation"'+(D?"":y)+'\x3e\x3cbutton class\x3d"menu__list-option" aria-selected\x3d"false" role\x3d"option"'+V+(D?y:"")+'\x3e\x3cspan class\x3d"menu__list-option-text"\x3e'+
E.text+'\x3c/span\x3e\x3csvg class\x3d"menu__list-option-icon" focusable\x3d"false"\x3e\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3c/li\x3e')});this.els.itemWrapEls=this.els.listEl.find(".menu__list-option-wrap");this.els.itemEls=this.els.listEl.find(".menu__list-option");h.init(this.els.listWrapEl.target[0]);this.els.scrollWrapEl=this.els.listWrapEl.find(".scrollbar__wrap");this.els.scrollWrapEl.css({"max-height":0});this.els.listWrapEl.css({visibility:"hidden"});
this.els.listWrapEl.attr("aria-hidden",!0);this.els.textFiledErrorTextEl=this.els.el.find(".menu--text-field__error");this.els.el.attr("data-max-item-number")&&(w=parseInt(this.els.el.attr("data-max-item-number")))&&(this.maxItemNum=w);this.els.el.attr("data-open-direction")&&(w=this.els.el.attr("data-open-direction"))&&(this.defaultOpenDir=w);this.els.el.attr("data-animation")&&(w=this.els.el.attr("data-animation"))&&"false"===w.toLowerCase()&&(this.isAnim=!1);b.update(this.els.el.target[0]);this.select(!0)};
g.prototype.select=function(r){if("desktop"===this.getCurrentDevice()){if(this.isOpen){var t=this.els.el.hasClass("filled"),w=this.els.el.offset();t=t?0:w.height;"up"===this.openDir?(this.els.el.hasClass("menu--text-field")&&(t-=parseInt(this.els.el.css("padding-top"),10)),this.els.listWrapEl.css({bottom:0===t?"0":t+"px",top:"auto"})):"down"===this.openDir&&(this.els.el.hasClass("menu--text-field")&&this.els.textFiledErrorTextEl.target.length&&(t-=this.els.textFiledErrorTextEl.offset().height.toFixed(2)),
this.els.listWrapEl.css({bottom:"auto",top:0===t?"0":t+"px"}))}this.els.el.removeClass("selected");this.els.itemEls.attr("aria-selected","false");this.els.itemWrapEls.removeClass("active");-1<this.index&&(this.els.el.hasClass("menu--text-field")&&(r?this.els.el.addClass("init"):this.els.el.removeClass("init")),this.els.el.addClass("selected"),this.els.itemWrapEls.eq(this.index).addClass("active"),this.els.itemEls.eq(this.index).attr("aria-selected",!0))}else-1<this.index&&(r=this.els.el.target[0].dataset.type,
(this.els.el.hasClass("menu--text-field")||"textField"===r||"filled"===r)&&this.els.el.addClass("selected"))};g.prototype.bindEvents=function(){var r=this;this.els.fieldEl.off("click").on("click",this.handler.fieldEl.click);this.els.itemWrapEls.off("click").on("click",this.handler.itemWrapEls.click);this.els.selectEl.off("change").on("change",this.handler.selectEl.change);this.els.selectEl.off("click").on("click",this.handler.selectEl.click);this.els.selectEl.off("keyup").on("keyup",this.handler.selectEl.keyup);
this.els.itemEls.off("focus").on("focus",function(t){a(t.target).closest(".menu__list-option-wrap").addClass("focus")});this.els.itemEls.off("blur").on("blur",function(t){a(t.target).closest(".menu__list-option-wrap").removeClass("focus")});this.els.selectEl.off("focus").on("focus",function(){r.els.el.addClass("focus")});this.els.selectEl.off("blur").on("blur",function(){r.els.el.removeClass("focus")});this.els.el.off("keydown").on("keydown",this.handler.el.keydown);this.els.winEl.off("resize",this.handler.winEl.resize).on("resize",
this.handler.winEl.resize);this.els.el.hasClass("menu--text-field")&&(this.els.fieldEl.off("focus").on("focus",function(){r.els.el.addClass("focus")}),this.els.fieldEl.off("blur").on("blur",function(){r.els.el.removeClass("focus")}))};g.prototype.update=function(){var r=this;this.isOpen&&this.close(!1);(this.isDisabled=this.els.el.hasClass("disabled"))?(this.els.selectEl.attr("disabled",!0),this.els.fieldEl.attr("disabled",!0)):(this.els.selectEl.removeAttr("disabled"),this.els.fieldEl.removeAttr("disabled"));
this.els.itemWrapEls.removeClass("disabled");"desktop"===this.device?(this.els.selectEl.attr("tabindex","-1"),this.els.selectEl.attr("aria-hidden",!0),this.els.fieldEl.removeAttr("tabindex"),this.els.fieldEl.removeAttr("aria-hidden")):(this.els.selectEl.removeAttr("tabindex"),this.els.selectEl.removeAttr("aria-hidden"),this.els.fieldEl.attr("tabindex","-1"),this.els.fieldEl.attr("aria-hidden",!0),this.els.fieldEl.removeAttr("aria-expanded"));this.itemMappedIndices=[];this.itemMappedIndicesExclDisabled=
[];var t=0;this.options.forEach(function(w,z){var D=r.els.itemWrapEls.eq(z);w.disabled?("desktop"===r.getCurrentDevice()&&D.addClass("disabled"),r.itemMappedIndices[z]=-1):(r.itemMappedIndices[z]=t++,r.itemMappedIndicesExclDisabled.push(z))})};g.prototype.open=function(r){var t=this;r=void 0===r?!0:r;this.isAnim||(r=!1);var w=function(){t.els.docEl.on("click",t.handler.docEl.click);"desktop"===t.getCurrentDevice()&&(t.focusedIndex=-1===t.els.selectEl.target[0].selectedIndex?t.itemMappedIndicesExclDisabled[0]:
t.els.selectEl.target[0].selectedIndex,requestAnimationFrame(function(){t.els.itemEls.eq(t.focusedIndex).focus();h.resize(t.els.listWrapEl.target[0])}))};requestAnimationFrame(function(){t.els.el.addClass("open");t.isOpen=!0;if("desktop"===t.getCurrentDevice()){t.els.scrollWrapEl.css({"max-height":""});var z=t.els.itemWrapEls.target.length;t.maxHeight=0;if(z>t.maxItemNum){for(var D=0;D<t.maxItemNum;D++){var E=t.els.itemWrapEls.eq(D);t.maxHeight+=E.offset().height}t.maxHeight+=parseFloat(getComputedStyle(t.els.itemWrapEls.target[0]).marginTop)+
parseFloat(getComputedStyle(t.els.itemWrapEls.target[z-1]).marginBottom)}else t.maxHeight=t.els.scrollWrapEl.offset().height;t.els.scrollWrapEl.css({"max-height":"0"});var y=t.els.el.hasClass("filled"),V=t.els.el.offset();z=window.innerHeight-V.bottom;D=V.top;E=y?t.maxHeight-V.height:t.maxHeight;var ca=y?0:V.height;y=function(){t.els.el.hasClass("menu--text-field")&&(ca-=parseInt(t.els.el.css("padding-top"),10));ca=0===ca?"0":ca+"px";t.openDir="up";t.els.listWrapEl.css({bottom:ca,top:"auto"})};V=
function(){t.els.el.hasClass("menu--text-field")&&t.els.textFiledErrorTextEl.target.length&&(ca-=t.els.textFiledErrorTextEl.offset().height.toFixed(2));ca=0===ca?"0":ca+"px";t.openDir="down";t.els.listWrapEl.css({bottom:"auto",top:ca})};t.defaultOpenDir?"up"===t.defaultOpenDir?y():V():E>z&&E<D?y():V();if(r){t.els.scrollWrapEl.css({transition:"max-height .2s cubic-bezier(.4,0,.2,1)"});var xa=k(t.els.scrollWrapEl.target[0]);if(xa){var ea=function(){w();t.els.scrollWrapEl.off(xa,ea)};t.els.scrollWrapEl.on(xa,
ea)}else setTimeout(w,200)}else t.els.scrollWrapEl.css({transition:""}),requestAnimationFrame(w);requestAnimationFrame(function(){t.els.fieldEl.attr("aria-expanded",!0);t.els.listWrapEl.css({visibility:"visible"});t.els.listWrapEl.attr("aria-hidden",!1);t.els.scrollWrapEl.css({"max-height":t.maxHeight+"px"})})}else w()})};g.prototype.close=function(r){var t=this;r=void 0===r?!0:r;this.isAnim&&e(this.els.el.target[0])||(r=!1);var w=function(){t.els.listWrapEl.css({visibility:"hidden"});t.els.listWrapEl.attr("aria-hidden",
!0)};requestAnimationFrame(function(){t.els.docEl.off("click",t.handler.docEl.click);t.els.el.removeClass("open");t.isOpen=!1;if("desktop"===t.getCurrentDevice()){if(r){t.els.scrollWrapEl.css({transition:"max-height .2s cubic-bezier(.4,0,.2,1)"});var z=k(t.els.scrollWrapEl.target[0]);if(z){var D=function(){w();t.els.scrollWrapEl.off(z,D)};t.els.scrollWrapEl.on(z,D)}else setTimeout(w,200)}else t.els.scrollWrapEl.css({transition:""}),w();t.els.fieldEl.attr("aria-expanded",!1);t.els.scrollWrapEl.css({"max-height":"0"});
t.els.fieldEl.focus()}else w()})};g.prototype.resize=function(){var r=this.getCurrentDevice();this.device!==r&&(this.device=r,this.update(),"desktop"===this.device&&(this.els.el.target[0].dataset.type&&(this.els.selectEl.target[0].selectedIndex=-1),this.selectItem(this.index)));"desktop"===this.device&&this.isOpen&&this.close(!1)};g.prototype.change=function(r){var t=this.els.selectEl.target[0];t.selectedIndex!==r&&(this.index=t.selectedIndex=r,this.els.selectEl.trigger("change"))};g.prototype.keydown=
function(r){this.els.fieldEl.trigger("click");r.preventDefault()};g.prototype.selectNext=function(r,t){this.focusedIndex=0>this.focusedIndex?-1!==this.index?this.itemMappedIndicesExclDisabled[0]:0:this.focusedIndex;var w=this.itemMappedIndices[this.focusedIndex];w+=r;r=0>w?this.itemMappedIndicesExclDisabled[0]:w>this.itemMappedIndicesExclDisabled.length-1?this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-1]:this.itemMappedIndicesExclDisabled[w];-1!==r&&("desktop"===this.getCurrentDevice()&&
this.els.itemEls.target[r].focus(),this.focusedIndex=r);t&&t.preventDefault()};g.prototype.selectItem=function(r,t){if(!(0>r)){var w=-1;0===r?w=this.itemMappedIndicesExclDisabled[0]:r===this.itemMappedIndices.length-1?w=this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-1]:-1!==this.itemMappedIndices[r]&&(w=r);-1!==w&&("desktop"===this.getCurrentDevice()&&this.els.itemEls.target[w].focus(),this.change(w));t&&t.preventDefault()}};g.prototype.getSelectedItemIndex=function(r){var t=
this,w=/[A-Z]/,z=r-48*Math.floor(r/48),D=String.fromCharCode(96<=r?z:r),E=!0,y=-1;r=this.index;this.els.itemEls.target.forEach(function(V,ca){var xa=V.textContent.substring(0,1).toUpperCase();V=a(V).closest(".menu__list-option-wrap").hasClass("disabled");w.test(xa)&&xa===D&&!V&&-1===y&&(y=ca);w.test(xa)&&xa===D&&t.index<ca&&E&&!V&&(t.index=ca,E=!1)});r===this.index&&-1!==y&&(this.index=y);return this.index};g.prototype.setState=function(r){if(this.els.el.hasClass("menu--text-field")){var t=this.els.el.find(".required"),
w=this.els.textFiledErrorTextEl.target.length?this.els.textFiledErrorTextEl.attr("id"):"";switch(r){case "error":this.els.el.addClass("error");w&&(this.els.fieldEl.attr("aria-describedby",w),this.els.selectEl.attr("aria-labelledby",this.els.selectEl.attr("aria-labelledby")+" "+w),t&&t.attr("aria-hidden",!0));break;default:this.els.el.removeClass("error"),this.els.fieldEl.removeAttr("aria-describedby"),w&&this.els.selectEl.attr("aria-labelledby",this.els.selectEl.attr("aria-labelledby").replace(w,
"").trim()),t&&t.removeAttr("aria-hidden")}}};g.prototype.getCurrentDevice=function(){return"ios"!==c()||this.isMobileCustomSelect?this.isMobileCustomSelect?"desktop":f():"mobile"};g.prototype.handleMobileOptionTagging=function(r){var t=this;if("mobile"===f()&&"visible"===this.els.selectEl.css("visibility")){var w=r.target.selectedIndex,z=(0===w||!!w)&&r.target.options[w],D=function(){t.els.selectOptionTaggingEl=t.els.el.find(".menu__select-option-tagging");return t.els.selectOptionTaggingEl&&t.els.selectOptionTaggingEl.target&&
0<t.els.selectOptionTaggingEl.target.length};D()||this.els.selectEl.after('\x3cbutton class\x3d"menu__select-option-tagging hidden" tabindex\x3d"-1" aria-hidden\x3d"true"\x3e\x3c/button\x3e');requestAnimationFrame(function(){z&&D()&&(Array.from(z.attributes).forEach(function(E){t.els.selectOptionTaggingEl.attr(E.name,E.value)}),t.els.selectOptionTaggingEl.trigger("click"))})}};g.instances=new WeakMap;window.sg.components.registerClass("menu",g);var p={initAll:function(){a('.menu:not([data-auto-init\x3d"false"])').target.forEach(function(r){g.instances.has(r)||
new g(r)})},init:function(r){g.instances.has(r)||new g(r)},reInit:function(r,t){t=void 0===t?-1:t;g.instances.has(r)?g.instances.get(r).reInit(t):new g(r,t)},setState:function(r,t){g.instances.has(r)&&g.instances.get(r).setState(t)},selectItem:function(r,t){t=void 0===t?-1:t;g.instances.has(r)&&g.instances.get(r).selectItem(t)}};window.sg.common.menu=p;a.ready(p.initAll)})();
(function(){var a=window.sg.common.$q,n=window.sg.common.constants.BREAKPOINTS,h=window.sg.common.utils,f=window.sg.common.icon,c=function(l,e){var b=this;e=void 0===e?null:e;this.selector={swiperSlide:".option-selector__swiper-slide",swiperWrap:".option-selector__swiper",swiperPrev:".option-selector__button-prev",swiperNext:".option-selector__button-next",btnDisabledCls:"option-selector__button--disabled",capaContainer:".option-selector__swiper-container",capaItemInner:".option-selector__size",capaItemRadio:".option-selector__size input",
flotingBox:".option-selector__floating-bar",moveWapper:".option-selector__swiper-wrapper",optionRadio:'input[type\x3d"radio"]',colorRadio:".option-selector__color input",colorName:".option-selector__color-name",tooltipCta:".option-selector__color-name-text",tooltipWrap:".option-selector__color-tooltip",closeCta:".option-selector__color-tooltip-close",slideButtonList:".option-selector__swiper-slide input",activeClass:"is-show"};this.el={window:a(window),component:a(l)};this.handler={timeHandler:function(){b.el.moveWapper.css({transition:"none"});
b.resize();b.resizeTimer&&clearTimeout(b.resizeTimer);b.resizeTimer=setTimeout(function(){b.el.moveWapper.css({transition:""})},400)},changeCapacity:this.changeCapacity.bind(this),setHalfSlide:this.setHalfSlide.bind(this),changeColor:function(g){var p=a(g.target).closest(".option-selector__color");p=p.find(".hidden").target[0]||p.find(".option-selector__color-code").target[0];var r=a(g.target).closest(".option-selector").find(".option-selector__color-name .color-name-text");g=a(g.target).closest(".option-selector").find(".option-selector__color-name-text-in");
null!==p&&0<r.target.length&&r.innerHTML(p.innerText);null!==p&&0<g.target.length&&g.innerHTML(p.innerText)},tooltipShow:this.tooltipShow.bind(this),tooltipKeyEvent:function(g){g.keyCode===window.sg.common.constants.KEY_CODE.ENTER?b.showBoxEvent():g.keyCode===window.sg.common.constants.KEY_CODE.ESC&&b.hideBoxEvent()},changeColorName:function(g){g=g.target.parentNode.querySelector(".hidden")||null;0<b.el.component.parent().find(".option-selector__color-name button, span.option-selector__color-name-text").target.length&&
(b.el.component.parent().find(".option-selector__color-name .option-selector__color-name-text-in").innerHTML(g.innerText),b.el.component.parent().find(".option-selector__color-name .option-selector__color-tooltip-text").innerHTML(g.innerText),b.tooltipShow())},showBoxEvent:function(){b.showBoxEvent()},hideBoxEvent:function(g){"focusout"===g.type?requestAnimationFrame(function(){0===a(document.activeElement).closest(b.el.colorName.target[0]).target.length&&b.hideBoxEvent()}):b.hideBoxEvent()}};this.moveLength=
null;c.instances.set(l,this);this.setElements();this.checkedActive=e;this.init()};c.prototype.setElements=function(){var l=this;this.el.swiperPrev=this.el.component.find(this.selector.swiperPrev);this.el.swiperNext=this.el.component.find(this.selector.swiperNext);this.el.swiperSlide=this.el.component.find(this.selector.swiperSlide);this.el.moveWapper=this.el.component.find(this.selector.moveWapper);this.el.capaContainer=this.el.component.find(this.selector.capaContainer);this.el.capaItemInner=this.el.component.find(this.selector.capaItemInner);
this.el.capaItemRadio=this.el.component.find(this.selector.capaItemRadio);this.el.capaItemRadioActive=this.el.component.find(this.selector.capaItemRadio+":checked").closest(this.selector.swiperSlide);this.el.flotingBox=this.el.component.find(this.selector.flotingBox);this.el.optionRadio=this.el.component.find(this.selector.optionRadio);this.el.colorRadio=this.el.component.find(this.selector.colorRadio);this.desktopPerView=this.el.component.attr("data-desktop-view");this.mobilePerView=this.el.component.attr("data-mobile-view");
this.maxCnt=Number(n.MOBILE<h.getViewPort().width?this.desktopPerView:this.mobilePerView);this.mobileFlg=this.desktopFlg=!1;this.slideCnt=this.el.swiperSlide.target.length;this.lastCnt=this.slideCnt<=this.maxCnt?1:this.slideCnt-this.maxCnt;this.activeCnt=this.slideCnt<=this.maxCnt&&this.el.moveWapper.target[0].scrollWidth-8>this.el.capaContainer.outerWidth()&&this.el.capaItemRadioActive.index()===this.slideCnt-1?this.lastCnt:0;this.maxPos=this.el.moveWapper.target[0].scrollWidth-8<=this.el.capaContainer.outerWidth()?
0:this.el.moveWapper.target[0].scrollWidth-this.el.capaContainer.outerWidth();this.slideGradientWidth=0===this.el.component.find(".option-selector__button-prev").target.length?0:parseInt(window.getComputedStyle(this.el.component.find(".option-selector__button-prev").target[0],":after").getPropertyValue("width"));this.slideLength=0===this.el.component.find(this.selector.swiperSlide).target.length?0:this.el.component.find(this.selector.swiperSlide).target.length-1;this.slidePadding=0;this.el.colorName=
this.el.component.parent(".option-selector").find(this.selector.colorName);this.el.tooltipCta=this.el.colorName.find(this.selector.tooltipCta);this.el.closeCta=this.el.colorName.find(this.selector.closeCta);this.el.tooltipWrap=this.el.colorName.find(this.selector.tooltipWrap);this.el.slideButtonList=this.el.component.find(this.selector.slideButtonList);this.resizeTimer=this.timer=null;this.reInitFlag=this.initFlag=this.activeCheck=!1;this.direction=(this.rtlFlag="rtl"===a("body").css("direction")?
!0:!1)?1:-1;this.startActiveIdx=null;this.isCapacity=this.el.component.target[0].classList.contains("option-selector__wrap--capacity");this.checkedActive=null;this.tooltipFlag=!1;"none"!==this.el.moveWapper.css("transform")?this.moveLength=Math.abs(Number(this.el.moveWapper.css("transform").match(/-?[\d\\.]+/g)[4])):this.moveLength=0;this.el.swiperSlide.target.forEach(function(e,b){a(e).hasClass("active-slide")&&(l.startActiveIdx=b)});this.calcPos=this.rtlFlag?-1*parseInt(this.el.moveWapper.css("margin-right"),
10):-1*parseInt(this.el.moveWapper.css("margin-left"),10);this.hiddenText=this.el.tooltipCta.find(".hidden");this.globalText=0<this.hiddenText.target.length?JSON.parse(this.hiddenText.target[0].dataset.globalText):null};c.prototype.init=function(){this.initFlag=!0;this.bindEvents();this.optionSlide();this.resize(!0);this.setHalfSlide()};c.prototype.reInit=function(l){this.setElements();this.reInitFlag=!0;this.checkedActive=l;this.init()};c.prototype.calcPadding=function(){0<this.el.component.find(".option-selector__color").target.length&&
(this.slidePadding=parseInt(window.getComputedStyle(this.el.component.find(".option-selector__color").target[0]).getPropertyValue("padding-left")));0<this.el.component.find(".option-selector__size").target.length&&(this.slidePadding=parseInt(window.getComputedStyle(this.el.component.find(".option-selector__size-label").target[0]).getPropertyValue("padding-left"))/2)};c.prototype.setBtnDisable=function(){this.el.capaItemRadioActive=this.el.component.find(this.selector.capaItemRadio+":checked").closest(this.selector.swiperSlide);
var l=this.el.swiperSlide.outerWidth();(this.el.component.hasClass("option-selector__wrap--wide")?0<this.el.component.find(".option-selector__color").target.length?l*this.slideCnt-2*this.slidePadding:l*this.slideCnt:l*this.slideCnt)>this.el.capaContainer.outerWidth()&&0!==this.maxPos?(this.el.swiperNext.show(),this.el.swiperPrev.show(),this.el.component.hasClass("option-selector__wrap--wide")&&this.el.component.removeClass("no-swiper-mode"),this.el.component.addClass("swiper-mode"),0<this.moveLength?
(this.el.swiperPrev.removeClass(this.selector.btnDisabledCls),this.el.swiperPrev.attr("aria-disabled","false"),this.el.swiperPrev.attr("tabindex","0"),this.moveLength>=this.maxPos?(this.el.swiperNext.addClass(this.selector.btnDisabledCls),this.el.swiperNext.attr("aria-disabled","true"),this.el.swiperNext.attr("tabindex","-1"),document.activeElement===this.el.swiperNext.target[0]&&this.el.swiperNext.hasClass("option-selector__button--disabled")&&this.el.swiperPrev.focus()):(this.el.swiperNext.removeClass(this.selector.btnDisabledCls),
this.el.swiperNext.attr("aria-disabled","false"),this.el.swiperNext.attr("tabindex","0"))):(this.el.swiperNext.removeClass(this.selector.btnDisabledCls),this.el.swiperNext.attr("aria-disabled","false"),this.el.swiperNext.attr("tabindex","0"),this.el.swiperPrev.addClass(this.selector.btnDisabledCls),this.el.swiperPrev.attr("aria-disabled","true"),this.el.swiperPrev.attr("tabindex","-1"),document.activeElement===this.el.swiperPrev.target[0]&&this.el.swiperPrev.hasClass("option-selector__button--disabled")&&
this.el.swiperNext.focus())):(this.el.component.removeClass("swiper-mode"),this.el.component.hasClass("option-selector__wrap--wide")&&this.el.component.addClass("no-swiper-mode"),this.el.swiperNext.hide(),this.el.swiperNext.attr("aria-disabled","true"),this.el.swiperNext.attr("tabindex","-1"),this.el.swiperPrev.hide(),this.el.swiperPrev.attr("aria-disabled","true"),this.el.swiperPrev.attr("tabindex","-1"))};c.prototype.setActiveCnt=function(){!0===this.initFlag&&("none"===this.el.moveWapper.css("transform")?
this.activeCnt=this.el.component.find("input:checked").closest(this.selector.swiperSlide).index():this.activeCnt=null);this.initFlag=!1};c.prototype.setSlidePos=function(l){l=void 0===l?null:l;this.desktopPerView||this.mobilePerView?(this.calcPadding(),this.maxPos=this.el.moveWapper.target[0].scrollWidth-8<=this.el.capaContainer.outerWidth()?0:this.el.moveWapper.target[0].scrollWidth-this.el.capaContainer.outerWidth()-Math.floor(this.slidePadding/2)):(this.el.component.addClass("option-selector__wrap--wide"),
this.calcPos=this.rtlFlag?-1*parseInt(this.el.moveWapper.css("margin-right"),10):-1*parseInt(this.el.moveWapper.css("margin-left"),10),this.maxPos=this.el.moveWapper.target[0].scrollWidth-8<=this.el.capaContainer.outerWidth()?0:this.el.moveWapper.target[0].scrollWidth-this.el.capaContainer.outerWidth()-2*this.calcPos,0>=this.maxPos&&(this.maxPos=0,this.el.component.removeClass("swiper-mode"),this.el.component.addClass("no-swiper-mode")));this.el.component.hasClass("swiper-mode")?this.setSlideMove(l):
this.el.moveWapper.css({transform:""})};c.prototype.setSlideMove=function(l){var e=this;l=void 0===l?null:l;var b=this.el.component.find("input:checked").closest(this.selector.swiperSlide).index(),g=this.el.component.find(this.selector.swiperSlide).outerWidth();this.slideGradientWidth=0===this.el.component.find(".option-selector__button-prev").target.length?0:parseInt(window.getComputedStyle(this.el.component.find(".option-selector__button-prev").target[0],":after").getPropertyValue("width"));this.calcPadding();
this.reInitFlag||(null!==l?null!==this.activeCnt?0!==b&&(this.el.component.hasClass("option-selector__wrap--wide")?this.moveLength=g*this.activeCnt>this.maxPos+this.slideGradientWidth?this.maxPos:g*this.activeCnt-this.slideGradientWidth:n.MOBILE<h.getViewPort().width?this.moveLength=g*this.activeCnt>this.maxPos?this.maxPos:g*this.activeCnt-this.slidePadding:this.el.component.hasClass("option-selector__wrap--color-chip")&&(this.moveLength=g*this.activeCnt>this.maxPos+this.slideGradientWidth?this.maxPos:
g*this.activeCnt)):this.activeCnt=Math.ceil(this.moveLength/g):(this.checkedActive||"none"===this.el.moveWapper.css("transform")&&0===this.moveLength&&0<b)&&0!==b&&(this.el.component.hasClass("option-selector__wrap--wide")?this.moveLength=g*b>this.maxPos+this.slideGradientWidth?this.maxPos:g*b-this.slideGradientWidth:n.MOBILE<h.getViewPort().width?this.moveLength=g*b>this.maxPos?this.maxPos:g*b-this.slidePadding:this.el.component.hasClass("option-selector__wrap--color-chip")&&(this.moveLength=g*b>
this.maxPos+this.slideGradientWidth?this.maxPos:g*b-this.slideGradientWidth+this.slidePadding)));0<=this.moveLength&&this.el.moveWapper.css({transform:"translateX("+this.direction*this.moveLength+"px)"});this.checkedActive=null;this.reInitFlag&&(this.reInitFlag=!1);setTimeout(function(){e.setBtnDisable()},300)};c.prototype.setSwiperWidth=function(){var l=this;this.el.component.target.forEach(function(e){e=a(e);var b=[],g=e.find(l.selector.swiperSlide);g.css({width:""});g.target.forEach(function(D){b.push(a(D).width())});
var p=Math.max.apply(null,b),r=n.MOBILE<h.getViewPort().width?l.desktopPerView:l.mobilePerView,t=["pf-product-compare","hubble-item-card__option-memory"],w=16,z=e.closest("."+t.join(",.")).target[0];void 0!==z&&(z.classList.contains(t[0])?w=n.MOBILE<h.getViewPort().width?4:8:z.classList.contains(t[1])&&(w=0));g.css({width:p+"px"});null!==r?(e.find(l.selector.swiperWrap).css({width:p*r+2+"px"}),l.calcPadding()):(p*l.slideCnt>l.el.capaContainer.outerWidth()&&l.el.component.addClass("swiper-mode"),l.el.component.addClass("option-selector__wrap--wide"),
e.find(l.selector.swiperWrap).css({width:"auto"}));0!==e.find(l.selector.flotingBox).target.length&&e.find(l.selector.flotingBox).css({transition:"none",width:p-w+"px"})})};c.prototype.setHalfSlide=function(l){l=l?a(l.target):a(this.el.slideButtonList.target.filter(function(g){return g.checked}));if(l.target.length){var e=l.closest(this.selector.swiperSlide).index(),b=this.el.swiperSlide.outerWidth()*e;this.el.component.hasClass("swiper-mode")?(this.activeCnt=e,this.el.component.hasClass("option-selector__wrap--wide")?
this.moveLength=b>=this.maxPos+this.slideGradientWidth?this.maxPos:b-this.slideGradientWidth:n.MOBILE<h.getViewPort().width?this.moveLength=b>=this.maxPos+this.slideGradientWidth?this.maxPos:b-this.slidePadding:this.el.component.hasClass("option-selector__wrap--color-chip")?this.moveLength=b>=this.maxPos+this.slideGradientWidth?this.maxPos:b-this.slideGradientWidth+this.slidePadding:this.moveLength=b>=this.maxPos+this.slideGradientWidth?this.maxPos:b,0===e&&(this.moveLength=0),this.el.moveWapper.css({transform:"translateX("+
this.direction*this.moveLength+"px)"}),this.setBtnDisable(),this.el.moveWapper.find(".option-selector__color-name.active").removeClass("active"),l.closest(this.selector.swiperSlide).find(".option-selector__color-name").addClass("active")):(this.el.swiperNext.hide(),this.el.swiperNext.attr("aria-disabled","true"),this.el.swiperNext.attr("tabindex","-1"),this.el.swiperPrev.hide(),this.el.swiperPrev.attr("aria-disabled","true"),this.el.swiperPrev.attr("tabindex","-1"))}};c.prototype.optionSlide=function(){var l=
this;this.el.swiperNext.target.forEach(function(e){a(e).off("click").on("click",function(){var b=l.el.swiperSlide.outerWidth();l.activeCnt+=1;l.moveLength>=l.el.moveWapper.target[0].scrollWidth-l.el.capaContainer.outerWidth()&&(l.activeCnt=l.lastCnt);l.el.component.hasClass("option-selector__wrap--wide")?l.moveLength=1===l.activeCnt?l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b-l.slideGradientWidth:l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b:n.MOBILE<h.getViewPort().width?l.moveLength=1===l.activeCnt?
l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b-l.slidePadding:l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b:l.el.component.hasClass("option-selector__wrap--color-chip")?l.moveLength=l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b:l.moveLength=1===l.activeCnt?l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b+l.slidePadding:l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b;l.el.moveWapper.css({transform:"translateX("+l.direction*l.moveLength+"px)"});l.setBtnDisable()})});this.el.swiperPrev.target.forEach(function(e){a(e).off("click").on("click",
function(){var b=l.el.swiperSlide.outerWidth();--l.activeCnt;0>l.activeCnt&&(l.activeCnt=0);b=0<l.moveLength%b?l.moveLength-Math.floor(l.moveLength/b)*b:b;l.el.component.hasClass("option-selector__wrap--wide")?l.moveLength=0>=l.moveLength-b?0:l.moveLength-b-l.slideGradientWidth:n.MOBILE<h.getViewPort().width?l.moveLength=0>=l.moveLength-b?0:l.moveLength-b-l.slidePadding:l.el.component.hasClass("option-selector__wrap--color-chip")?l.moveLength=0>=l.moveLength-b?0:l.moveLength-b-l.slideGradientWidth+
l.slidePadding:l.moveLength=0>=l.moveLength-b?0:l.moveLength-b;l.el.moveWapper.css({transform:"translateX("+l.direction*l.moveLength+"px)"});l.setBtnDisable()})})};c.prototype.moveFloting=function(l){if(!(0>=l.target.length)){var e=0;0<this.el.flotingBox.closest(".pf-product-compare").target.length?e=n.MOBILE<h.getViewPort().width?2:4:1>this.el.flotingBox.closest(".hubble-item-card__option-memory").target.length&&(e=7.5);this.el.flotingBox.css({display:"block",transition:"",left:l.target[0].offsetLeft+
e+"px"});this.flotingActive=l.closest(this.selector.swiperSlide)}};c.prototype.resize=function(l){l=void 0===l?null:l;this.setSwiperWidth();this.moveFloting(this.el.component.find(this.selector.capaItemRadio+":checked").closest(this.selector.swiperSlide));n.MOBILE<h.getViewPort().width?!1===this.desktopFlg&&(this.desktopFlg=!0,this.mobileFlg=!1,this.el.component.removeClass("no-swiper-mode"),!0===l?(this.setActiveCnt(),this.reInitFlag?(this.setBtnDisable(),this.setSlidePos()):(this.setSlidePos(),
this.setBtnDisable())):this.desktopPerView!==this.mobilePerView&&(this.setActiveCnt(),this.setBtnDisable())):!1===this.mobileFlg&&(this.mobileFlg=!0,this.desktopFlg=!1,this.el.component.removeClass("no-swiper-mode"),!0===l?(this.setActiveCnt(),this.reInitFlag?(this.setBtnDisable(),this.setSlidePos()):(this.setSlidePos(),this.setBtnDisable())):this.desktopPerView!==this.mobilePerView&&(this.setActiveCnt(),this.setBtnDisable()));this.setSlidePos(!0);this.tooltipShow()};c.prototype.changeCapacity=function(l){l=
a(l.currentTarget);this.el.component.find(".option-selector__wrap--capacity "+this.selector.swiperSlide+".is-active").removeClass("is-active");l.closest(this.selector.swiperSlide).addClass("is-active");this.moveFloting(l.closest(this.selector.swiperSlide))};c.prototype.tooltipShow=function(){if(0!==this.el.tooltipCta.target.length){var l=this.el.tooltipCta.outerWidth()<this.el.tooltipCta.target[0].scrollWidth,e="button"===this.el.tooltipCta.target[0].tagName.toLowerCase();l?this.tooltipFlag||(this.tooltipFlag=
!0,e?this.el.tooltipCta.removeAttr("disabled"):this.el.tooltipCta.attr("tabindex","0")):(this.tooltipFlag=!1,e?this.el.tooltipCta.attr("disabled",""):this.el.tooltipCta.removeAttr("tabindex"))}};c.prototype.showBoxEvent=function(){this.tooltipFlag&&!this.el.colorName.hasClass(this.selector.activeClass)&&(this.el.colorName.addClass(this.selector.activeClass),this.globalText&&(this.hiddenText.text(this.globalText.Collapse),this.el.tooltipWrap.attr("aria-hidden",!1)),this.hiddenText.attr("aria-hidden",
!1))};c.prototype.hideBoxEvent=function(){this.el.colorName.hasClass(this.selector.activeClass)&&(document.activeElement===this.el.closeCta.target[0]&&this.el.tooltipCta.focus(),this.el.colorName.removeClass(this.selector.activeClass),this.globalText&&(this.hiddenText.text(this.globalText.Expand),this.el.tooltipWrap.attr("aria-hidden",!0)),this.hiddenText.attr("aria-hidden",!0))};c.prototype.bindEvents=function(){this.el.window.off("resize",this.handler.timeHandler).on("resize",this.handler.timeHandler);
this.el.optionRadio.off("change",this.handler.setHalfSlide).on("change",this.handler.setHalfSlide);this.el.optionRadio.off("focus",this.handler.setHalfSlide).on("focus",this.handler.setHalfSlide);this.el.capaItemRadio.off("change",this.handler.changeCapacity).on("change",this.handler.changeCapacity);this.el.colorRadio.off("change",this.handler.changeColor).on("change",this.handler.changeColor);0<this.el.colorName.target.length&&(this.el.slideButtonList.off("click",this.handler.changeColorName).on("click",
this.handler.changeColorName),this.el.tooltipCta.off("mouseenter",this.handler.showBoxEvent).on("mouseenter",this.handler.showBoxEvent),this.el.colorName.off("mouseleave",this.handler.hideBoxEvent).on("mouseleave",this.handler.hideBoxEvent),this.el.tooltipCta.off("focus",this.handler.showBoxEvent).on("focus",this.handler.showBoxEvent),this.el.colorName.off("focusout",this.handler.hideBoxEvent).on("focusout",this.handler.hideBoxEvent),this.el.tooltipCta.off("click",this.handler.showBoxEvent).on("click",
this.handler.showBoxEvent),this.el.closeCta.off("click",this.handler.hideBoxEvent).on("click",this.handler.hideBoxEvent),this.el.tooltipCta.off("keydown",this.handler.tooltipKeyEvent).on("keydown",this.handler.tooltipKeyEvent))};var k=function(){a(".option-selector__wrap").target.forEach(function(l){a(l).closest(".unbind-option").target.length||c.instances.has(l)||new c(l)})};c.instances=new WeakMap;a.ready(k);window.sg.common.OptionSelector={init:k,reInit:function(l,e){e=void 0===e?null:e;var b=
a(".option-selector__wrap");void 0!==l&&(b=l.hasClass("option-selector__wrap")?l:l.find(".option-selector__wrap"));b.target.forEach(function(g){c.instances.has(g)?c.instances.get(g).reInit(e):new c(g,e);f.update(g)})}}})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils,h=window.sg.common.constants.KEY_CODE,f=window.sg.common.swiperManager,c=function(l){var e=this;this.isTouchEvent=this.keypress=this.motioning=this.dragging=!1;this.containerPadding=this.timer=this.percent=0;this.type=this.currentDevice=null;this.isCentered=!1;this.offset={startX:0,wrapperX:0,x_origine:0,y_origine:0,x_new:0,y_new:0};this.touchEvents={};this.el={window:a(window),document:a(document),section:a(l),component:null,slideContainer:null,
slideWrap:null,slideButtonList:null,slideList:null};this.selector={wrapper:".option-selector-v2",component:".option-selector-v2__swiper",colorNameMaxchar:"data-maxchar",colorNameMaxcharPC:"data-maxchar-pc",colorNameMaxcharMO:"data-maxchar-mo",colorName:".option-selector-v2__color-name",colorNameTooltip:".option-selector-v2__color-tooltip",colorNameTooltipText:".option-selector-v2__color-tooltip-text",colorCode:".option-selector-v2__color-code",sizeText:".option-selector-v2__size-text",slideContainer:".option-selector-v2__swiper-container",
slideWrap:".option-selector-v2__swiper-wrapper",slideButtonList:".option-selector-v2__swiper-slide button",slideList:".option-selector-v2__swiper-slide",slideSelected:".is-checked"};this.classes={typeColor:"option-selector-v2__wrap--color-chip",typeSize:"option-selector-v2__wrap--capacity"};this.handler={touchsupport:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints},heightLimit:function(){return e.isTouchEvent?
10:100},clickHandler:function(b){e.dragging||e.handler.slideTo(a(b.target).closest(".option-selector-v2__swiper-slide"));e.dragging=!1},slideTo:function(b){var g=e.el.slideWrap.offset();b=b.offset();var p=g.left-b.left;"ltr"!==c.direction&&(p=g.right-b.right);e.handler.setWrapperPos(p,!0,e.isCentered,b.width)},eventClick:function(b){b.preventDefault();b.preventDefault?b.preventDefault():b.returnValue=!1},touchStart:function(b){b=e.isTouchEvent?b.touches[0]||b.changedTouches[0]:b;e.offset.x_new=0;
e.offset.y_new=0;e.offset.x_origine=b.pageX;e.offset.y_origine=b.pageY;e.offset.wrapperX=e.offset.startX;e.el.slideWrap.on(e.touchEvents.touchMove,e.handler.touchMove);e.el.document.on(e.touchEvents.touchMove,e.handler.touchMove);e.el.document.on(e.touchEvents.touchEnd,e.handler.touchEnd);e.el.document.on("mouseleave",e.handler.touchEnd);if(b=f.getSwiper(e.el.slideContainer.closest(".swiper-container").target[0]))b.allowTouchMove=!1},touchMove:function(b){var g=e.isTouchEvent?b.touches[0]||b.changedTouches[0]:
b;e.offset.x_new=e.offset.x_origine-g.pageX;e.offset.y_new=e.offset.y_origine-g.pageY;b.preventDefault();Math.abs(e.offset.y_new)>e.handler.heightLimit()?(e.handler.touchEnd(),e.handler.eventClick(b),e.dragging=!1):0!==e.offset.x_new&&(e.dragging=!0,e.handler.setWrapperPos(e.offset.wrapperX-e.offset.x_new))},touchEnd:function(){e.el.slideWrap.off(e.touchEvents.touchMove,e.handler.touchMove);e.el.document.off(e.touchEvents.touchMove,e.handler.touchMove);e.el.document.off(e.touchEvents.touchEnd,e.handler.touchEnd);
e.el.document.off("mouseleave",e.handler.touchEnd);setTimeout(function(){e.dragging=!1},1);var b=f.getSwiper(e.el.slideContainer.closest(".swiper-container").target[0]);b&&(b.allowTouchMove=!0)},resetPos:function(){e.el.slideWrap.css({transform:""})},changeHandler:function(b){e.el.slideList.removeClass("is-checked");e.el.slideList.find(".blind").remove();var g=a(b.target).closest(e.selector.slideList),p=g.find(e.selector.colorCode),r=g.find(e.selector.sizeText);b=b.target.querySelector(".hidden")||
null;g.addClass("is-checked");p.target.length&&p.after('\x3cspan class\x3d"blind"\x3e'+e.globalText+"\x3c/span\x3e");r.target.length&&r.after('\x3cspan class\x3d"blind"\x3e'+e.globalText+"\x3c/span\x3e");null!==b&&e.setColorName(b.innerText)},keyDownHandler:function(b){b.keyCode===h.TAB&&e.el.component.hasClass("bindCheck")&&(e.handler.clickHandler(b),e.el.slideContainer.target[0].scrollLeft=0)},setWrapperPos:function(b,g,p,r){g=void 0===g?!1:g;p=void 0===p?!1:p;r=void 0===r?null:r;if(!isNaN(b)){var t=
e.el.slideContainer.outerWidth()-e.containerPadding,w=e.el.slideWrap.outerWidth();"ltr"!==c.direction&&(b*=-1);p?b=0<b||Math.abs(b)<t/2?0:Math.max(b+t/2-r/2,-(w-t)):0<b?b=0:w+b<=t&&(b=t-w);"ltr"!==c.direction&&(b*=-1);e.el.slideWrap.css({transform:"translateX("+b+"px)",transition:g?"":"none"});e.offset.startX=b;b=Math.abs(b)/(t-w)*100;b=isNaN(b)?0:b;e.percent=Math.abs(b);e.el.component.removeClass("next");e.el.component.removeClass("prev");2>=e.percent?e.el.component.addClass("next"):98>=e.percent?
(e.el.component.addClass("prev"),e.el.component.addClass("next")):e.el.component.addClass("prev")}},resize:function(){clearTimeout(e.timer);e.timer=setTimeout(function(){e.handler.timeResize()},10)},timeResize:function(){var b=n.getCurrentDevice();if(e.el.slideContainer.width()<e.el.slideWrap.width()){e.el.component.hasClass("bindCheck")||(e.el.component.addClass("bindCheck"),e.el.slideWrap.on(e.touchEvents.touchStart,e.handler.touchStart),e.el.slideWrap.on(e.touchEvents.touchEnd,e.handler.touchEnd),
e.el.slideButtonList.on("click",e.handler.clickHandler));e.containerPadding=2*parseInt(e.el.slideContainer.css("padding-right"),10);var g=(e.el.slideContainer.outerWidth()-e.containerPadding-e.el.slideWrap.outerWidth())*(e.percent/100);"ltr"!==c.direction&&(g*=-1);e.handler.setWrapperPos(g)}else e.el.component.removeClass("bindCheck"),e.el.component.removeClass("next"),e.el.component.removeClass("prev"),e.el.component.addClass("option-selector-v2__swiper--min"),e.el.slideWrap.off(e.touchEvents.touchStart,
e.handler.touchStart),e.el.slideWrap.off(e.touchEvents.touchEnd,e.handler.touchEnd),e.el.slideButtonList.off("click",e.handler.clickHandler),e.handler.resetPos();e.currentDevice!==b&&e.handleColorName();e.currentDevice=b}};this.startX=0;this.globalText=null;c.instances.set(l,this);this.init()};c.prototype.init=function(){this.setProperty();this.bindEvents()};c.prototype.scrollX=function(){var l=window.getComputedStyle(this.el.slideWrap.target[0]).getPropertyValue("transform").match(/(-?[0-9\\.]+)/g),
e=0;l&&(e=parseInt(l[4],10));return e};c.prototype.reInit=function(){this.isTouchEvent=this.handler.touchsupport();this.unBindEvents();this.setProperty();this.bindEvents()};c.prototype.setProperty=function(){"rtl"===n.getDirection()&&(c.direction="rtl");this.el.section.hasClass(this.classes.typeColor)?this.type="color":this.el.section.hasClass(this.classes.typeSize)&&(this.type="size");this.el.component=this.el.section.find(this.selector.component);this.el.slideWrap=this.el.component.find(this.selector.slideWrap);
this.el.slideContainer=this.el.component.find(this.selector.slideContainer);this.el.slideButtonList=this.el.component.find(this.selector.slideButtonList);this.el.slideList=this.el.component.find(this.selector.slideList);this.el.component.removeClass("bindCheck");this.isTouchEvent=this.handler.touchsupport();this.touchEvents={touchStart:this.isTouchEvent?"touchstart":"mousedown",touchMove:this.isTouchEvent?"touchmove":"mousemove",touchEnd:this.isTouchEvent?"touchend":"mouseup"};this.globalText=JSON.parse(this.el.section.target[0].dataset.globalText).selected;
this.isCentered="true"===this.el.section.attr("data-align-center");this.startX=Math.abs(this.scrollX());if(0<this.startX){var l=this.startX/(this.el.slideContainer.outerWidth()-2*parseInt(this.el.slideContainer.css("padding-right"),10)-this.el.slideWrap.outerWidth())*100;this.percent=Math.abs(l)}};c.prototype.bindEvents=function(){this.el.window.on("resize",this.handler.timeResize);this.el.slideButtonList.on("click",this.handler.changeHandler);this.el.slideButtonList.on("keyup",this.handler.keyDownHandler);
this.handler.timeResize();var l=this.el.slideContainer.find(".is-checked");0===this.startX&&l.target.length&&this.el.component.hasClass("bindCheck")&&this.handler.slideTo(l)};c.prototype.unBindEvents=function(){this.el.window.off("resize",this.handler.timeResize);this.el.slideButtonList.off("click",this.handler.clickHandler);this.el.slideButtonList.off("keyup",this.handler.keyDownHandler);this.el.slideButtonList.off("click",this.handler.changeHandler);this.el.slideWrap.off(this.touchEvents.touchStart,
this.handler.touchStart);this.el.slideWrap.off(this.touchEvents.touchEnd,this.handler.touchEnd)};c.prototype.handleColorName=function(){if("color"===this.type){var l=this.el.section.find(this.selector.slideSelected);l.target.length&&(l=l.find(".hidden"),this.setColorName(l.target.length&&l.target[0].textContent))}};c.prototype.setColorName=function(l){if(null!==l&&void 0!==l){var e=this.el.section.closest(this.selector.wrapper).find(this.selector.colorName);if(e.target.length){var b=Math.max(0,parseInt(e.attr(this.selector.colorNameMaxchar))),
g=Math.max(0,parseInt(e.attr(this.selector.colorNameMaxcharPC)))||b;b=Math.max(0,parseInt(e.attr(this.selector.colorNameMaxcharMO)))||b;var p="desktop"===n.getCurrentDevice()?g:b,r=e.find("\x26 \x3e span"),t=e.find(this.selector.colorNameTooltip);p?(p&&g!==b?r.target.length&&r.innerHTML('\x3cspan class\x3d"option-selector-v2__color-name--pc"\x3e'+n.getEllipsis(l,g)+'\x3c/span\x3e\x3cspan class\x3d"option-selector-v2__color-name--mo"\x3e'+n.getEllipsis(l,b)+"\x3c/span\x3e"):r.target.length&&r.innerHTML(n.getEllipsis(l,
p)),l.length>p?(t.target.length?t.find(this.selector.colorNameTooltipText).innerHTML(l):e.append('\x3cdiv class\x3d"option-selector-v2__color-tooltip"\x3e\x3cp class\x3d"option-selector-v2__color-tooltip-text"\x3e'+l+'\x3c/p\x3e\x3cbutton class\x3d"option-selector-v2__color-tooltip-close"\x3e\x3cspan class\x3d"blind"\x3eClose\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e'),r.attr("tabindex",0)):(t.remove(),r.removeAttr("tabindex"))):r.text(l)}}};c.direction="ltr";var k=function(){a(".option-selector-v2 .option-selector-v2__wrap").target.forEach(function(l){new c(l)})};
c.instances=new WeakMap;a.ready(k);window.sg.common.optionSelectorV2={init:k,reInit:function(l){a(l).find(".option-selector-v2 .option-selector-v2__wrap").target.forEach(function(e){c.instances.has(e)?c.instances.get(e).reInit():new c(e)})}}})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils,h=function(c){var k=this;this.isTouchEvent=this.keypress=this.motioning=this.dragging=!1;this.containerPadding=this.timer=this.percent=0;this.type=this.currentDevice=null;this.offset={startX:0,wrapperX:0,x_origine:0,y_origine:0,x_new:0,y_new:0};this.el={window:a(window),document:a(document),section:a(c),component:null,itemList:null,itemButtonList:null};this.selector={wrapper:".option-selector-v3",component:".option-selector-v3__list",
colorNameMaxchar:"data-maxchar",colorNameMaxcharPC:"data-maxchar-pc",colorNameMaxcharMO:"data-maxchar-mo",colorName:".option-selector-v3__color-name",colorNameTooltip:".option-selector-v3__color-tooltip",colorNameTooltipText:".option-selector-v3__color-tooltip-text",colorCode:".option-selector-v3__color-code",sizeText:".option-selector-v3__size-text",itemList:".option-selector-v3__item",itemButtonList:".option-selector-v3__item button",itemSelected:".is-checked"};this.classes={typeColor:"option-selector-v3__wrap--color-chip",
typeSize:"option-selector-v3__wrap--capacity"};this.handler={touchsupport:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints},heightLimit:function(){return k.isTouchEvent?10:100},eventClick:function(l){l.preventDefault();l.preventDefault?l.preventDefault():l.returnValue=!1},changeHandler:function(l){k.el.itemList.removeClass("is-checked");k.el.itemList.find(".blind").remove();var e=
a(l.target).closest(k.selector.itemList),b=e.find(k.selector.colorCode),g=e.find(k.selector.sizeText);l=l.target.querySelector(".hidden")||null;e.addClass("is-checked");b.target.length&&b.after('\x3cspan class\x3d"blind"\x3e'+k.globalText+"\x3c/span\x3e");g.target.length&&g.after('\x3cspan class\x3d"blind"\x3e'+k.globalText+"\x3c/span\x3e");null!==l&&k.setColorName(l.innerText)},resize:function(){var l=n.getCurrentDevice();k.currentDevice!==l&&k.handleColorName();k.currentDevice=l}};this.startX=0;
this.globalText=null;h.instances.set(c,this);this.init()};h.prototype.init=function(){this.setProperty();this.bindEvents()};h.prototype.reInit=function(){this.isTouchEvent=this.handler.touchsupport();this.setProperty();this.bindEvents()};h.prototype.setProperty=function(){"rtl"===n.getDirection()&&(h.direction="rtl");this.el.section.hasClass(this.classes.typeColor)?this.type="color":this.el.section.hasClass(this.classes.typeSize)&&(this.type="size");this.el.component=this.el.section.find(this.selector.component);
this.el.itemButtonList=this.el.component.find(this.selector.itemButtonList);this.el.itemList=this.el.component.find(this.selector.itemList);this.globalText=JSON.parse(this.el.section.target[0].dataset.globalText).selected};h.prototype.bindEvents=function(){this.el.itemButtonList.off("click",this.handler.changeHandler).on("click",this.handler.changeHandler);var c=this.el.section.find(this.selector.itemSelected);c.target.length?c.eq(0).trigger("click"):this.el.itemButtonList.eq(0).trigger("click");
this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};h.prototype.handleColorName=function(){if("color"===this.type){var c=this.el.section.find(this.selector.itemSelected);c.target.length&&(c=c.find(".hidden"),this.setColorName(c.target.length&&c.target[0].textContent))}};h.prototype.setColorName=function(c){if(null!==c&&void 0!==c){var k=this.el.section.closest(this.selector.wrapper).find(this.selector.colorName);if(k.target.length){var l=Math.max(0,parseInt(k.attr(this.selector.colorNameMaxchar))),
e=Math.max(0,parseInt(k.attr(this.selector.colorNameMaxcharPC)))||l;l=Math.max(0,parseInt(k.attr(this.selector.colorNameMaxcharMO)))||l;var b="desktop"===n.getCurrentDevice()?e:l,g=k.find("\x26 \x3e span"),p=k.find(this.selector.colorNameTooltip);b?(b&&e!==l?g.target.length&&g.innerHTML('\x3cspan class\x3d"option-selector-v3__color-name--pc"\x3e'+n.getEllipsis(c,e)+'\x3c/span\x3e\x3cspan class\x3d"option-selector-v3__color-name--mo"\x3e'+n.getEllipsis(c,l)+"\x3c/span\x3e"):g.target.length&&g.innerHTML(n.getEllipsis(c,
b)),c.length>b?(p.target.length?p.find(this.selector.colorNameTooltipText).innerHTML(c):k.append('\x3cdiv class\x3d"option-selector-v3__color-tooltip"\x3e\x3cp class\x3d"option-selector-v3__color-tooltip-text"\x3e'+c+'\x3c/p\x3e\x3cbutton class\x3d"option-selector-v3__color-tooltip-close"\x3e\x3cspan class\x3d"blind"\x3eClose\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e'),g.attr("tabindex",0)):(p.remove(),g.removeAttr("tabindex"))):g.text(c)}}};h.direction="ltr";var f=function(){a(".option-selector-v3 .option-selector-v3__wrap").target.forEach(function(c){new h(c)})};
h.instances=new WeakMap;a.ready(f);window.sg.common.optionSelectorV3={init:f,reInit:function(c){a(c).find(".option-selector-v3 .option-selector-v3__wrap").target.forEach(function(k){h.instances.has(k)?h.instances.get(k).reInit():new h(k)})}}})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils.getCurrentDevice,h=window.sg.common.video,f=window.sg.common.utils.triggerEvent,c=window.sg.common.utils.setMobileFocusLoop,k=window.sg.common.utils.removeMobileFocusLoop,l=function(b){this.el=b;this.init()};l.prototype.setElements=function(){this.els={el:this.el,videoWrapEl:this.el.querySelector(".popup-video__video-wrap"),currentVideoTitleEl:this.el.querySelector(".popup-video__current-video-title"),videoEls:this.el.querySelectorAll(".popup-video__video-wrap .video"),
videoCloseButtonEl:this.el.querySelector(".popup-video__btn-video-close"),popupVideoLoopingStartEl:this.el.querySelector(".popup-video__looping--start"),popupVideoLoopingEndEl:this.el.querySelector(".popup-video__looping--end")};this.currentPlayingVideoEl={};this.focusTargetEl={}};l.prototype.init=function(){l.instances.get(this.el)||(l.instances.set(this.el,this),this.setElements(),this.bindEvents())};l.prototype.reInit=function(){this.currentPlayingVideoEl instanceof Element&&this.close();this.unBindEvents();
this.setElements();this.bindEvents()};l.prototype.destroy=function(){this.unBindEvents();l.instances.has(this.els.el)&&l.instances.delete(this.els.el);this.els=null};l.prototype.setVideoSize=function(){this.els.videoWrapEl.classList.contains("popup-video__video-wrap--vertical")?"desktop"===n()?(this.els.videoWrapEl.style.height=window.innerHeight+"px",this.els.videoWrapEl.style.width=9*window.innerHeight/16+"px"):.9*window.innerWidth<7.2*window.innerHeight/16?(this.els.videoWrapEl.style.height=14.4*
window.innerWidth/9+"px",this.els.videoWrapEl.style.width=.9*window.innerWidth+"px"):(this.els.videoWrapEl.style.height=.8*window.innerHeight+"px",this.els.videoWrapEl.style.width=7.2*window.innerHeight/16+"px"):"desktop"===n()?.9*window.innerHeight<8.1*window.innerWidth/16?(this.els.videoWrapEl.style.width=14.4*window.innerHeight/9+"px",this.els.videoWrapEl.style.height=.9*window.innerHeight+"px"):(this.els.videoWrapEl.style.width=.9*window.innerWidth+"px",this.els.videoWrapEl.style.height=8.1*window.innerWidth/
16+"px"):(this.els.videoWrapEl.style.width=window.innerWidth+"px",this.els.videoWrapEl.style.height=9*window.innerWidth/16+"px")};l.prototype.setFocusToCloseButtonEl=function(){this.els.videoCloseButtonEl.focus()};l.prototype.setFocusToVideoTitleEl=function(){this.els.currentVideoTitleEl.focus()};l.prototype.bindEvents=function(){this.close=this.close.bind(this);this.setFocusToCloseButtonEl=this.setFocusToCloseButtonEl.bind(this);this.setFocusToVideoTitleEl=this.setFocusToVideoTitleEl.bind(this);
this.setVideoSize=this.setVideoSize.bind(this);this.els.videoCloseButtonEl.addEventListener("click",this.close);this.els.popupVideoLoopingStartEl.addEventListener("focus",this.setFocusToCloseButtonEl);this.els.popupVideoLoopingEndEl.addEventListener("focus",this.setFocusToVideoTitleEl);window.addEventListener("resize",this.setVideoSize)};l.prototype.unBindEvents=function(){this.els.videoCloseButtonEl.removeEventListener("click",this.close);this.els.popupVideoLoopingStartEl.removeEventListener("focus",
this.setFocusToCloseButtonEl);this.els.popupVideoLoopingEndEl.removeEventListener("focus",this.setFocusToVideoTitleEl);window.removeEventListener("resize",this.setVideoSize)};l.prototype.open=function(b,g,p){var r=this;b=void 0===b?0:b;g=void 0===g?null:g;"vertical"===(void 0===p?null:p)?this.els.videoWrapEl.classList.add("popup-video__video-wrap--vertical"):this.els.videoWrapEl.classList.remove("popup-video__video-wrap--vertical");this.els.currentVideoTitleEl.innerText=JSON.parse(this.els.videoEls[b].dataset.videoData).title;
document.body.style.overflow="hidden";this.els.el.classList.add("popup-video--show");this.els.videoCloseButtonEl.focus();this.els.videoEls[b].style.display="block";this.setVideoSize();h.init(this.els.videoEls[b]);this.currentPlayingVideoEl=this.els.videoEls[b];this.focusTargetEl=g;"mobile"===n()&&c(this.els.el);setTimeout(function(){r.els.videoWrapEl.focus()},200)};l.prototype.close=function(){h.dispose(this.currentPlayingVideoEl);this.els.currentVideoTitleEl.innerText="";this.currentPlayingVideoEl.removeAttribute("style");
this.els.el.classList.remove("popup-video--show");document.body.removeAttribute("style");this.currentPlayingVideoEl={};this.focusTargetEl instanceof Element&&this.focusTargetEl.focus();"mobile"===n()&&k();f(this.els.el,"popupVideoClose")};l.instances=new WeakMap;var e={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".popup-video"))).forEach(function(b){l.instances.has(b)||new l(b)})},init:function(b){l.instances.has(b)||new l(b)},reInit:function(b){l.instances.has(b)?
l.instances.get(b).reInit():new l(b)},destroy:function(b){l.instances.has(b)&&l.instances.get(b).destroy()},open:function(b,g,p,r){l.instances.has(b)?l.instances.get(b).open(g,p,r):(new l(b)).open(g,p,r)},close:function(b){l.instances.has(b)?l.instances.get(b).close():(new l(b)).close()}};window.sg.common.popupVideo=e;a.ready(e.initAll)})();
(function(){var a=window.sg.common.constants.KEY_CODE,n={getFirstFocusableEl:window.sg.common.utils.getFirstFocusableEl,setFocusFirstFocusableEl:window.sg.common.utils.setFocusFirstFocusableEl,setMobileFocusLoop:window.sg.common.utils.setMobileFocusLoop,removeMobileFocusLoop:window.sg.common.utils.removeMobileFocusLoop,hideScroll:window.sg.common.utils.hiddenScroll,showScroll:window.sg.common.utils.visibleScroll,handlePopstate:{open:window.sg.common.utils.popupControl.open,close:window.sg.common.utils.popupControl.close},
showOverDimEls:window.sg.common.utils.showOverDimEls,hideOverDimEls:window.sg.common.utils.hideOverDimEls},h=window.sg.common.utils.getMobileOS,f=function(){return window.sg.components.Base.apply(this,arguments)||this};$jscomp.inherits(f,window.sg.components.Base);f.prototype._init=function(){this.els={el:this.el,closeEl:null,innerEl:null,scrollEls:null,childEl:null,actionsWrapEl:null};this.id=null;this.isOpen=!1;this.focusTargetEl=null;this._setElements();this._bindEvents()};f.prototype._setElements=
function(){this.els.closeEl=this.els.el.querySelector(".popup__close");this.els.innerEl=this.els.el.querySelector(".popup__inner");this.els.scrollEls=this.els.el.querySelectorAll('[data-comp-name\x3d"scrollbar"]');this.els.childEl=this.els.el.querySelector(".popup__inner \x3e [data-comp-name]");this.els.actionsWrapEl=this.els.el.querySelector(".popup__btn-wrap");this.id=this.els.el.getAttribute("id");(this.child=this.getChild(this.els.childEl))&&this.child.setOptions({id:this.id});this.isOpen=!!this.els.el.classList.contains("popup--open")};
f.prototype._bindEvents=function(){this.close=this.close.bind(this);this._handleKeydown=this._handleKeydown.bind(this);this._handleCloseKeydown=this._handleCloseKeydown.bind(this);this._handleActionClick=this._handleActionClick.bind(this);this._handleSetActions=this._handleSetActions.bind(this);this._handleReInit=this._handleReInit.bind(this);this.els.closeEl.addEventListener("click",this.close);this.els.el.addEventListener("keydown",this._handleKeydown);this.els.closeEl.addEventListener("keydown",
this._handleCloseKeydown);this.child&&(this.child.listen("setButtons",this._handleSetActions),this.child.listen("reInit",this._handleReInit),this.child.listen("close",this.close));this.els.actionsWrapEl&&this.els.actionsWrapEl.addEventListener("click",this._handleActionClick)};f.prototype._unBindEvents=function(){this.els.closeEl.removeEventListener("click",this.close);this.els.el.removeEventListener("keydown",this._handleKeydown);this.els.closeEl.removeEventListener("keydown",this._handleCloseKeydown);
this.child&&(this.child.unListen("setButtons",this._handleSetActions),this.child.unListen("close",this.close));this.els.actionsWrapEl&&this.els.actionsWrapEl.removeEventListener("click",this._handleActionClick)};f.prototype.open=function(c){var k=this;this.isOpen||(this.focusTargetEl=c&&c instanceof Element?c:document.activeElement,this.els.el.classList.add("popup--open"),this.isOpen=!0,n.handlePopstate.open(this.close),n.hideScroll(),n.setMobileFocusLoop(this.el),n.hideOverDimEls(),"ios"===h()?setTimeout(function(){return k._setFocusFirstFocusableEl()},
450):this._setFocusFirstFocusableEl(),c={id:this.id},this.emit("open",c),window.sg.common.lazyLoad.setLazyLoadManually(this.els.innerEl),Array.from(this.els.scrollEls).forEach(function(l){k.getChild(l).resize()}),this._handleControl("open",c))};f.prototype._handleControl=function(c,k){if(this.child&&this.child[c]&&"function"===typeof this.child[c])this.child[c](k)};f.prototype._reInit=function(){this._unBindEvents();this._setElements();this._bindEvents()};f.prototype._destroy=function(){this._unBindEvents()};
f.prototype.close=function(){var c=this;if(this.isOpen){this.els.el.classList.remove("popup--open");n.handlePopstate.close(this.els.el.dataset.backHistory&&"true"===this.els.el.dataset.backHistory?!0:!1);n.showScroll();n.removeMobileFocusLoop();n.showOverDimEls();if(this.focusTargetEl&&this.focusTargetEl instanceof Element){var k=function(){c.focusTargetEl.focus();c.focusTargetEl=null};"ios"===h()?setTimeout(k,200):k()}this.isOpen=!1;k={id:this.id};this.emit("close",{id:this.id},!0);this._handleControl("close",
k)}};f.prototype._handleKeydown=function(c){if(c.shiftKey&&a.TAB===c.keyCode){var k=this._getFirstFocusableEl();k&&c.target===k&&(c.preventDefault(),this.els.closeEl.focus())}};f.prototype._handleCloseKeydown=function(c){c.shiftKey||a.TAB!==c.keyCode||(c.preventDefault(),this._setFocusFirstFocusableEl())};f.prototype._setFocusFirstFocusableEl=function(){var c=this.els.el.querySelector(".popup__title"),k=c||this._getFirstFocusableEl();c&&c.setAttribute("tabindex","-1");k&&k.focus()};f.prototype._getFirstFocusableEl=
function(){var c=n.getFirstFocusableEl(this.els.el);if(c&&c.matches('input[type\x3d"radio"]')){var k=this.els.el.querySelector('input[type\x3d"radio"][name\x3d"'+c.name+'"]:checked');k&&(c=k)}return c};f.prototype._handleActionClick=function(c){if(c=c.target.dataset.action)c={id:this.id,action:c},this.emit("action",c),this._handleControl("action",c)};f.prototype._handleSetActions=function(c){var k=this;c.stopPropagation();var l=c.detail;Array.isArray(l)||(l=[l]);l.forEach(function(e){var b=k.els.actionsWrapEl.querySelector("[data-action\x3d'"+
e.action+"']");b&&("enable"===e.state?(b.classList.remove("cta--disabled"),b.disabled=!1):"disable"===e.state&&(b.classList.add("cta--disabled"),b.disabled=!0),c.detail.focus&&b.focus())})};f.prototype._handleReInit=function(c){(c=c.detail.el?c.detail.el:null)?this.reInit(c):this.reInit()};window.sg.components.registerClass("popup",f)})();
(function(){var a=document.querySelector("#siteCode")?document.querySelector("#siteCode").value:"",n="fr pl ro bg it se dk fi no hr si hu de ee lv lt pt".split(" ").includes(a),h="function"===typeof currencyComma?currencyComma:function(b){return b},f=document.querySelector("#shopIntegrationFlag")?document.querySelector("#shopIntegrationFlag").value:"",c=function(b,g){var p=b;"undefined"!==typeof Granite&&(p=g?Granite.I18n.get(b,g):Granite.I18n.get(b));return p},k=function(b){this.productInfo=b;this.upperStock=
b.ctaType?b.ctaType.toUpperCase():"";this.priceObj={usePrice:!0,wasPrice:null,wasPriceFormatted:null,salePrice:null,salePriceFormatted:null,currentSub:"",savePrice:null,savePriceFormatted:null,monthlyPriceInfo:{},priceCurrency:b.currency,descText:null,installText:null,saveI18nText:"Save {0}"};this.init()};k.prototype.init=function(){this.setPriceObjectByDefaultRule();return this.priceObj};k.prototype.setPriceObjectByDefaultRule=function(){switch(a){case "pl":"OUTOFSTOCK"===this.upperStock&&(this.priceObj.usePrice=
!1);break;case "nl":case "be":case "be_fr":if("NOORDER"===this.upperStock||"LEARNMORE"===this.upperStock)this.priceObj.usePrice=!0;break;default:if("NOORDER"===this.upperStock||"LEARNMORE"===this.upperStock)this.priceObj.usePrice=!1}if(this.priceObj.usePrice){""===this.productInfo.lowestWasPrice&&(this.productInfo.lowestWasPrice="0");switch(!0){case !(!n||!parseFloat(this.productInfo.lowestWasPrice)):this.priceObj.wasPrice=parseFloat(this.productInfo.lowestWasPrice);break;case !!this.productInfo.price:this.priceObj.wasPrice=
parseFloat(this.productInfo.price)}switch(!0){case !(!n||!this.productInfo.lowestWasPriceDisplay):this.priceObj.wasPriceFormatted=this.productInfo.lowestWasPriceDisplay;break;case !!this.productInfo.priceDisplay:this.priceObj.wasPriceFormatted=this.productInfo.priceDisplay;break;case !!this.productInfo.price:this.priceObj.wasPriceFormatted=h(this.productInfo.price,this.priceObj.priceCurrency)}switch(!0){case !!this.productInfo.promotionPrice:this.priceObj.salePrice=parseFloat(this.productInfo.promotionPrice);
break;case !!this.productInfo.price:this.priceObj.salePrice=parseFloat(this.productInfo.price)}switch(!0){case !!this.productInfo.promotionPriceDisplay:this.priceObj.salePriceFormatted=this.productInfo.promotionPriceDisplay;break;case !!this.priceObj.salePrice:this.priceObj.salePriceFormatted=h(this.priceObj.salePrice,this.priceObj.priceCurrency)}switch(!0){case this.priceObj.wasPrice>this.priceObj.salePrice:this.priceObj.savePrice=this.priceObj.wasPrice-this.priceObj.salePrice}switch(!0){case !!this.priceObj.savePrice:this.priceObj.savePriceFormatted=
h(this.priceObj.savePrice,this.priceObj.priceCurrency)}switch(!0){case !!(this.productInfo.monthlyPriceInfo&&this.productInfo.monthlyPriceInfo.leasingMonthly&&this.productInfo.monthlyPriceInfo.leasingMonths):this.priceObj.monthlyPriceInfo.monthlyPrice=h(this.productInfo.monthlyPriceInfo.leasingMonthly,this.priceObj.priceCurrency),this.priceObj.monthlyPriceInfo.tenureVal=this.productInfo.monthlyPriceInfo.leasingMonths,this.productInfo.monthlyPriceInfo.interest&&(this.priceObj.monthlyPriceInfo.leasingInterest=
this.productInfo.monthlyPriceInfo.interest),this.priceObj.monthlyPriceInfo.useMonthlyPrice=!0}switch(a){case "pl":this.priceObj.descText=c("Lowest price 30 days before the discount:");break;case "hu":var b=this.priceObj,g=""+c("Best price in the past 30 days:")+this.priceObj.wasPriceFormatted+"(",p=this.priceObj.wasPrice;p=(Number(this.priceObj.salePrice)-Number(p))/Number(p)*Math.pow(10,2);p=Math.round(Number(p));b.descText=g+p+"%)"}switch(a){case "ch":case "ch_fr":this.priceObj.installText=c("From {0}/mo*",
this.priceObj.monthlyPriceInfo.monthlyPrice)+" "+c("or")+" "+this.priceObj.salePriceFormatted}switch(f){case "Hybris":if("pt"===a)break;this.productInfo.formattedPriceSave?this.priceObj.savePriceFormatted=this.productInfo.formattedPriceSave:(this.priceObj.savePriceFormatted=null,this.priceObj.savePrice=null);this.priceObj.wasPriceFormatted=null;this.priceObj.saveI18nText="{0}";break;case "Hybris-intg":this.priceObj.savePriceFormatted=null}switch(a){case "fr":case "pl":case "de":case "ee":case "lv":case "lt":case "pt":this.priceObj.salePrice>=
parseFloat(this.productInfo.lowestWasPrice)&&(this.priceObj.savePrice=null);break;case "it":this.productInfo.lowestWasPriceDisplay?(b=this.priceObj,g=Number(this.priceObj.savePrice)/Number(this.priceObj.wasPrice)*Math.pow(10,2),g=Number(g).toFixed(2),g=g.replace(".",","),b.savePriceFormatted=g,this.priceObj.wasPriceFormatted=this.productInfo.lowestWasPriceDisplay):this.priceObj.savePriceFormatted=null;this.priceObj.saveI18nText="Save the {0}%";break;case "br":this.productInfo.formattedPriceSave?(this.priceObj.wasPriceFormatted=
this.productInfo.rrpPriceDisplay,this.priceObj.savePriceFormatted=this.productInfo.formattedPriceSave,this.priceObj.savePrice=this.priceObj.savePriceFormatted):(this.priceObj.wasPriceFormatted=null,this.priceObj.savePriceFormatted=null);this.priceObj.currentSub=this.priceObj.savePriceFormatted?"\u00e0 vista":"";this.priceObj.saveI18nText="{0}";break;case "iq_ar":case "iq_ku":this.priceObj.saveI18nText="{0}";break;case "tr":this.priceObj.savePriceFormatted=null;this.priceObj.wasPriceFormatted=null;
break;case "bg":case "ro":this.priceObj.wasPriceFormatted=c("RRP {0}",this.priceObj.wasPriceFormatted);this.priceObj.savePriceFormatted=null;break;case "my":this.priceObj.savePriceFormatted=h(this.priceObj.savePrice,this.priceObj.priceCurrency);break;case "nl":this.priceObj.wasPriceFormatted=this.productInfo.msrpPrice?c("Recommend price")+" "+this.productInfo.msrpPrice:null;this.priceObj.savePriceFormatted=null;break;case "in":this.priceObj.salePriceFormatted=h(this.priceObj.salePrice,this.priceObj.priceCurrency);
this.priceObj.wasPriceFormatted="MRP: "+h(this.productInfo.price,this.priceObj.priceCurrency)+" (Incl. of all taxes)";break;case "ae_ar":case "ae":case "ca_fr":case "ca":case "eg":case "levant_ar":case "levant":this.priceObj.wasPriceFormatted=this.priceObj.savePriceFormatted,this.priceObj.savePriceFormatted=null}}};k.prototype.getPriceObject=function(){return this.priceObj};var l=function(){if(l.instance)return l.instance;this.instance=this;this.priceObj};l.prototype.getPriceInfoByProductInfo=function(b){return(new k(b)).getPriceObject()};
l.prototype.buildCurrentHTML=function(){return'\n      \x3cdiv class\x3d"price-ux__price-current" data-pricetext\x3d"'+this.priceObj.salePriceFormatted+'"\x3e\n        \x3cspan class\x3d"hidden"\x3e'+c("Total Price")+": \x3c/span\x3e\n        \x3cstrong\x3e"+this.priceObj.salePriceFormatted+"\x3c/strong\x3e\n        "+(this.priceObj.currentSub?'\x3cspan class\x3d"price-ux__price-current-sub"\x3e'+this.priceObj.currentSub+"\x3c/span\x3e":"")+"\n      \x3c/div\x3e"};l.prototype.buildInstallmentHTML=
function(){return this.priceObj.monthlyPriceInfo.useMonthlyPrice?'\x3cdiv class\x3d"price-ux__installment"\x3e\n          '+this.priceObj.installText+"\n        \x3c/div\x3e":""};l.prototype.buildWasHTML=function(){if(!this.priceObj.wasPriceFormatted)return"";switch(a){case "dk":case "fi":case "no":case "pl":case "se":case "fr":var b="\x3cdel\x3e"+this.priceObj.wasPriceFormatted+"\x3c/del\x3e";break;default:b=this.priceObj.wasPriceFormatted}return'\x3cp class\x3d"price-ux__price-original"\x3e'+b+
"\x3c/p\x3e"};l.prototype.buildSaveHTML=function(){var b="";if(!this.priceObj.savePriceFormatted)return b;b=c(this.priceObj.saveI18nText,this.priceObj.savePriceFormatted);switch(a){case "au":case "ch":case "ch_fr":case "hu":b='\n          \x3cp class\x3d"price-ux__price-save price-ux__price-save--line-through"\x3e\n            \x3cem\x3e'+b+"\x3c/em\x3e\n          \x3c/p\x3e";break;case "br":b='\n        \x3cp class\x3d"price-ux__price-save price-ux__price-save--line-break"\x3e\n          \x3cem\x3e'+
b+"\x3c/em\x3e\n        \x3c/p\x3e";break;default:b='\n          \x3cp class\x3d"price-ux__price-save"\x3e\n            \x3cem\x3e'+b+"\x3c/em\x3e\n          \x3c/p\x3e"}return b};l.prototype.buildSubHTML=function(){return this.priceObj.savePrice?'\n      \x3cdiv class\x3d"price-ux__price-sub price-ux__price-sub--ux-v2"\x3e\n        \x3cspan class\x3d"hidden"\x3e'+c("Original Price")+": \x3c/span\x3e\n        "+(this.buildWasHTML()+this.buildSaveHTML())+"\n      \x3c/div\x3e":""};l.prototype.buildDescriptionHTML=
function(){return'\x3cdiv class\x3d"price-ux__desc"\x3e'+this.priceObj.descText+"\x3c/div\x3e"};l.prototype.buildPrice=function(){var b=this.buildCurrentHTML();switch(a){case "uk":case "pt":b+=this.buildSubHTML();break;case "pl":this.priceObj.savePrice&&(b+=this.buildSaveHTML()+this.buildDescriptionHTML()+this.buildWasHTML());break;case "hu":this.priceObj.savePrice&&(b+=this.buildDescriptionHTML()+this.buildSaveHTML());break;case "ch":case "ch_fr":this.priceObj.savePrice&&(b+=this.buildSaveHTML()+
this.buildWasHTML());b+=this.buildInstallmentHTML();break;case "in":b+=(this.priceObj.savePrice?this.buildSaveHTML():"")+this.buildWasHTML();break;default:this.priceObj.savePrice&&(b+=this.buildSaveHTML()+this.buildWasHTML())}return b};l.prototype.getPriceHTML=function(b){this.priceObj=this.getPriceInfoByProductInfo(b);return'\n        \x3cdiv class\x3d"price-ux__wrap price-ux__wrap--ux-v2"\x3e\n          '+(this.priceObj.usePrice?this.buildPrice():"")+"\n        \x3c/div\x3e"};var e=null;window.sg.common.price=
{getPriceInfoByProductInfo:function(b,g){e||(e=new l);b.currency=g;return e.getPriceInfoByProductInfo(b)},getPrice:function(b,g){b=Object.assign({},b,{currency:g.currency});e||(e=new l);return e.getPriceHTML(b)}}})();
(function(){function a(){n(c.section).target.forEach(function(b){e.instances.has(b)||new e(b)})}var n=window.sg.common.$q,h=window.sg.common.utils,f="function"===typeof currencyComma?currencyComma:function(b,g){return""+b+g},c={section:".multi-range-slider"},k={},l=(k["default"]="default",k.number="number",k.currency="currency",k),e=function(b){this.selector={rangeTrack:".multi-range-slider__track",rangeHandleMin:".multi-range-slider__range-handle--min",rangeHandleMax:".multi-range-slider__range-handle--max",
rangeInput:".multi-range-slider__range input",rangeMinEl:".multi-range-slider__range--min",rangeMaxEl:".multi-range-slider__range--max",textFieldWrap:".multi-range-slider__text",textFieldMinEl:".multi-range-slider__text-field--min",textFieldMaxEl:".multi-range-slider__text-field--max",textInput:".multi-range-slider__text input",textMinEl:".multi-range-slider__text--min",textMaxEl:".multi-range-slider__text--max",rangeProgress:".multi-range-slider__progress",stepIndicator:".multi-range-slider__step-indicator"};
this.type=l.default;this.els={section:n(b),sectionEl:b};this.handler={handleResize:this.handleResize.bind(this),handleInputValues:this.handleInputValues.bind(this)};this.init();e.instances.set(b,this)};e.prototype.init=function(){this.setElements();this.setType();this.setInitialValues();this.setOptions();this.setRangeSliderOptions();this.drawInitValues();this.bindEvents()};e.prototype.reInit=function(){this.unbindEvents();this.setElements();this.setType();this.setInitialValues();this.setOptions();
this.setRangeSliderOptions();this.drawInitValues();this.bindEvents()};e.prototype.setOptions=function(){this.els.stepIndicator.target.length&&this.els.stepIndicator.remove();var b=this.els.section.attr("data-slider-data");if(b){var g=JSON.parse(b),p=g.stepIndicator,r=g.stepType;b=g.step;this.options=g;if(p&&r&&b){g=Math.floor(100/parseInt(b));for(p=0;p<g;p++){r=document.createElement("div");var t=b*(p+1),w=(this.rangeMaxValue-this.rangeMinValue)*t/100;r.classList.add("multi-range-slider__step-indicator");
r.setAttribute("data-step-value",w);h.isRtl()?r.style.right=t+"%":r.style.left=t+"%";this.els.rangeTrack.append(r)}this.els.stepIndicator=this.els.section.find(this.selector.stepIndicator)}}else this.options={},this.options.stepIndicator=!1,this.options.stepType="percent",this.options.step=1,this.options.activeMaxStepIndicatorIndex=0};e.prototype.updateStepIndicatorActive=function(){var b=this;if(this.options.stepIndicator){var g=this.els.rangeMaxEl.attr("value");this.els.stepIndicator.target.forEach(function(p,
r){p=n(p);var t=p.attr("data-step-value");parseInt(t)<=parseInt(g)?(p.addClass("multi-range-slider__step-indicator--active"),b.options.activeMaxStepIndicatorIndex=r):p.removeClass("multi-range-slider__step-indicator--active")});this.els.stepIndicator.hasClass("multi-range-slider__step-indicator--active")||(this.options.activeMaxStepIndicatorIndex=-1)}};e.prototype.setElements=function(){this.els.rangeTrack=this.els.section.find(this.selector.rangeTrack);this.els.rangeHandleMin=this.els.section.find(this.selector.rangeHandleMin);
this.els.rangeHandleMax=this.els.section.find(this.selector.rangeHandleMax);this.els.rangeInput=this.els.section.find(this.selector.rangeInput);this.els.rangeMinEl=this.els.section.find(this.selector.rangeMinEl);this.els.rangeMaxEl=this.els.section.find(this.selector.rangeMaxEl);this.els.textFieldWrap=this.els.section.find(this.selector.textFieldWrap);this.els.textFieldMinEl=this.els.section.find(this.selector.textFieldMinEl);this.els.textFieldMaxEl=this.els.section.find(this.selector.textFieldMaxEl);
this.els.textInput=this.els.section.find(this.selector.textInput);this.els.textMinEl=this.els.section.find(this.selector.textMinEl);this.els.textMaxEl=this.els.section.find(this.selector.textMaxEl);this.els.rangeProgress=this.els.section.find(this.selector.rangeProgress);this.els.stepIndicator=this.els.section.find(this.selector.stepIndicator)};e.prototype.setType=function(){var b=this;switch((this.els.section.attr("data-type")||"default").toLowerCase()){case l.default:case l.number:this.type=l.number;
this.adaptor=function(g){return(new Intl.NumberFormat("en-US")).format(String(g))};break;case l.currency:this.type=l.currency;this.currency=this.els.section.attr("data-currency")||"";this.adaptor=function(g){return f(g,b.currency)};break;default:this.type=l.default,this.adaptor=function(g){return(new Intl.NumberFormat("en-US")).format(String(g))}}};e.prototype.setInitialValues=function(){this.rangeMinValue=this.els.rangeMinEl.attr("min")||0;this.rangeMaxValue=this.els.rangeMaxEl.attr("max")||100;
this.minPrefix=this.els.textFieldMinEl.attr("data-prefix")||"";this.minSuffix=this.els.textFieldMinEl.attr("data-suffix")||"";this.maxPrefix=this.els.textFieldMaxEl.attr("data-prefix")||"";this.maxSuffix=this.els.textFieldMaxEl.attr("data-suffix")||"";this.initialMinValue=this.els.rangeMinEl.attr("value")||this.rangeMinValue;this.initialMaxValue=this.els.rangeMaxEl.attr("value")||this.rangeMaxValue};e.prototype.setRangeSliderOptions=function(){var b=this;this.range=this.rangeMaxValue-this.rangeMinValue;
this.rangeStart=this.rangeMinValue/this.range*100;this.rangeGap=this.options.stepIndicator?0:10;this.step=this.els.rangeMinEl.attr("data-step")?this.els.rangeMinEl.attr("data-step")*this.range/100:1*this.range/100;this.els.rangeInput.target.forEach(function(g){g.min=b.rangeMinValue;g.max=b.rangeMaxValue;g.step=b.step})};e.prototype.drawValues=function(b){for(var g=[],p=0;p<arguments.length;++p)g[p-0]=arguments[p];p=Math.min(this.rangeMaxValue,Math.max(this.rangeMinValue,2>g.length?0:g[0]));g=Math.max(this.rangeMinValue,
Math.min(this.rangeMaxValue,2>g.length?g[0]:g[1]));this.updateInputValue(this.els.rangeMinEl,p);this.updateInputValue(this.els.rangeMaxEl,g);this.makeDisplayText(p,g);this.setOffset(p,g);"rtl"===h.getDirection()?(this.els.rangeProgress.css({right:p/this.range*100-this.rangeStart+this.minHandleOffset+"%",left:100-g/this.range*100+this.rangeStart+this.maxHandleOffset+"%"}),this.els.rangeHandleMin.css({right:p/this.range*100-this.rangeStart+this.minHandleOffset+"%"}),this.els.rangeHandleMax.css({left:100-
g/this.range*100+this.rangeStart+this.maxHandleOffset+"%"})):(this.els.rangeProgress.css({left:p/this.range*100-this.rangeStart+this.minHandleOffset+"%",right:100-g/this.range*100+this.rangeStart+this.maxHandleOffset+"%"}),this.els.rangeHandleMin.css({left:p/this.range*100-this.rangeStart+this.minHandleOffset+"%"}),this.els.rangeHandleMax.css({right:100-g/this.range*100+this.rangeStart+this.maxHandleOffset+"%"}));this.updateStepIndicatorActive()};e.prototype.drawInitValues=function(){this.drawValues(this.initialMinValue,
this.initialMaxValue)};e.prototype.bindEvents=function(){window.addEventListener("resize",this.handler.handleResize);this.els.rangeInput.on("input",this.handler.handleInputValues)};e.prototype.unbindEvents=function(){window.removeEventListener("resize",this.handler.handleResize);this.els.rangeInput.off("input",this.handler.handleInputValues)};e.prototype.makeDisplayText=function(b,g){var p=parseFloat(b),r=parseFloat(g);0<=p&&(b=""+this.minPrefix+this.adaptor(b)+this.minSuffix,this.updateInputValue(this.els.textMinEl,
b));0<=r&&(g=""+this.maxPrefix+this.adaptor(g)+this.maxSuffix,this.updateInputValue(this.els.textMaxEl,g))};e.prototype.updateInputValue=function(b,g){b.target[0]&&(b.target[0].value=g,b.attr("value",g))};e.prototype.getHandleSize=function(){this.handleSize=this.els.rangeHandleMin.target.length&&!this.options.stepIndicator?this.els.rangeHandleMin.target[0].offsetWidth:0};e.prototype.getRangeTrackSize=function(){this.rangeTrackW=this.els.rangeTrack.offset().width};e.prototype.setOffset=function(b,
g){this.getHandleSize();this.getRangeTrackSize();this.minHandleOffset=(this.handleSize/2-(b-this.rangeMinValue)/this.range*this.handleSize)/this.rangeTrackW*100;this.maxHandleOffset=(this.handleSize/2-(this.rangeMaxValue-g)/this.range*this.handleSize)/this.rangeTrackW*100};e.prototype.handleInputValues=function(b){if(this.els.rangeMinEl.target.length&&this.els.rangeMaxEl.target.length){var g=parseInt(this.els.rangeMinEl.target[0].value),p=parseInt(this.els.rangeMaxEl.target[0].value);p/this.range*
100-g/this.range*100<=this.rangeGap&&(b.target===this.els.rangeMinEl.target[0]?g=p-parseInt(this.rangeGap*this.range/100):p=g+parseInt(this.rangeGap*this.range/100));this.drawValues(g,p)}};e.prototype.handleResize=function(){this.getHandleSize();this.getRangeTrackSize()};e.prototype.goNextStep=function(){var b=this.els.stepIndicator.eq(this.options.activeMaxStepIndicatorIndex+1);b.target.length&&this.drawValues(b.attr("data-step-value"))};e.prototype.goPrevStep=function(){var b=this.els.rangeMaxEl.attr("value"),
g=this.options.activeMaxStepIndicatorIndex;g=this.els.stepIndicator.eq(g);var p=g.attr("data-step-value");b>p?this.drawValues(p):(g=this.options.activeMaxStepIndicatorIndex-1,g=this.els.stepIndicator.eq(g),p=g.attr("data-step-value"),this.drawValues(g.target.length?p:this.rangeMinValue))};e.instances=new WeakMap;window.sg.components.RangeSlider={init:a,reInit:function(){n(c.section).target.forEach(function(b){e.instances.has(b)?e.instances.get(b).reInit():new e(b)})},updateRange:function(b,g,p){e.instances.has(b)?
e.instances.get(b).drawValues(g,p):(new e(b)).drawValues(g,p)},goNextStep:function(b){return e.instances.has(b)?e.instances.get(b).goNextStep():(new e(b)).goNextStep()},goPrevStep:function(b){return e.instances.has(b)?e.instances.get(b).goPrevStep():(new e(b)).goPrevStep()},getRangeSlider:function(b){return e.instances.has(b)?e.instances.get(b):new e(b)}};n.ready(a)})();
(function(){var a=function(){return window.sg.components.Base.apply(this,arguments)||this};$jscomp.inherits(a,window.sg.components.Base);a.prototype._init=function(){this.els={el:this.el,containerEl:null,wrapperEl:null,slideEls:null,prevEl:null,nextEl:null,indicatorEl:null};this.isCarousel=!1;this.indicator=this.swiper=null;this.isLoop=!1;this._setElements();this._setSwiper();this._bindEvents()};a.prototype._setElements=function(){this.els.containerEl=this.els.el.querySelector(".slider__container");
this.els.wrapperEl=this.els.el.querySelector(".slider__wrapper");this.els.slideEls=this.els.el.querySelectorAll(".slider__slide");this.els.prevEl=this.els.el.querySelector(".arrow-indicator--prev");this.els.nextEl=this.els.el.querySelector(".arrow-indicator--next");this.els.indicatorEl=this.els.el.querySelector(".indicator")};a.prototype._setSwiper=function(){if(this.isCarousel=1<this.els.slideEls.length)this.isLoop=this.els.el.hasAttribute("data-loop"),this.swiper=new Swiper(this.els.containerEl,
{loop:this.isLoop,navigation:{prevEl:this.els.prevEl,nextEl:this.els.nextEl}}),this.els.slideEls=this.els.el.querySelectorAll(".slider__slide"),this._setSwiperArrows(),this._setAccessibility(),this.indicator=this.getChild(this.els.indicatorEl)};a.prototype._bindEvents=function(){var n=this;this.isCarousel&&(this.swiper.on("slideChange",function(){n._setSwiperArrows();n._setAccessibility();n.indicator.select(n.swiper.realIndex);window.sg.common.lazyLoad.setLazyLoadManually(n.els.slideEls[n.swiper.activeIndex])}),
this._handleIndicatorMove=this._handleIndicatorMove.bind(this),this.els.indicatorEl.addEventListener("indicatorMove",this._handleIndicatorMove))};a.prototype._unBindEvents=function(){this.isCarousel&&this.els.indicatorEl.removeEventListener("indicatorMove",this._handleIndicatorMove)};a.prototype._setSwiperArrows=function(){this.isLoop||(this.swiper.isBeginning?(document.activeElement===this.els.prevEl&&this.els.nextEl.focus(),this.els.prevEl.style.display="none"):this.els.prevEl.style.display="",
this.swiper.isEnd?(document.activeElement===this.els.nextEl&&this.els.prevEl.focus(),this.els.nextEl.style.display="none"):this.els.nextEl.style.display="")};a.prototype._setAccessibility=function(){var n=this;[].concat($jscomp.arrayFromIterable(this.els.slideEls)).forEach(function(h,f){f===n.swiper.activeIndex?(h.removeAttribute("aria-hidden"),[].concat($jscomp.arrayFromIterable(h.querySelectorAll('input, select, textarea, button, [href], [tabindex]:not([tabindex\x3d"-1"])'))).forEach(function(c){c.removeAttribute("tabindex");
c.removeAttribute("aria-hidden")})):(h.setAttribute("aria-hidden","true"),[].concat($jscomp.arrayFromIterable(h.querySelectorAll('input, select, textarea, button, [href], [tabindex]:not([tabindex\x3d"-1"])'))).forEach(function(c){c.setAttribute("tabindex","-1");c.setAttribute("aria-hidden","true")}))})};a.prototype._handleIndicatorMove=function(n){this.swiper&&n.detail!==this.swiper.realIndex&&this.swiper.slideToLoop(n.detail)};a.prototype._reInit=function(){this._unBindEvents();this.swiper&&this.swiper.destroy();
this._setElements();this._setSwiper();this._bindEvents()};a.prototype._destroy=function(){this._unBindEvents();this.swiper.destroy()};window.sg.components.registerClass("slider",a)})();
(function(){var a=window.sg.common.$q,n=function(f){this.els={el:f,linkActionEl:f.querySelector(".cta")};this.init()};n.prototype.init=function(){n.instances.get(this.els.el)||(n.instances.set(this.els.el,this),this.bindEvents())};n.prototype.bindEvents=function(){this.els.el.style.bottom=-this.els.el.getBoundingClientRect().height+"px";this.els.linkActionEl&&this.els.linkActionEl.setAttribute("tabindex","-1")};n.prototype.open=function(){var f=this;this.els.el.removeAttribute("aria-hidden");this.els.linkActionEl&&
this.els.linkActionEl.removeAttribute("tabindex");this.els.el.classList.add("show");this.els.el.style.bottom="24px";setTimeout(function(){f.els.el.style.transitionProperty="opacity";f.els.el.style.opacity="0"},3500);setTimeout(function(){f.els.el.classList.remove("show");f.els.el.removeAttribute("style");f.els.el.setAttribute("aria-hidden",!0);f.els.el.style.bottom=-f.els.el.getBoundingClientRect().height+"px";f.els.linkActionEl&&f.els.linkActionEl.setAttribute("tabindex","-1")},4E3)};n.instances=
new WeakMap;var h={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".snack-bar"))).forEach(function(f){n.instances.has(f)||new n(f)})},show:function(f){n.instances.has(f)?n.instances.get(f).open():(new n(f)).open()}};window.sg.common.snackBar=h;a.ready(h.initAll)})();
(function(){var a=window.sg.common.$q,n=window.sg.common.utils.getCurrentDevice,h=window.sg.common.utils.getCurrentMediaType,f=window.BezierEasing,c=window.sg.common.utils.triggerEvent,k=window.sg.common.utils.addEventListener,l=window.sg.common.utils.removeAllEventListeners,e=window.sg.common.utils.getNormalizedScrollLeft,b=window.sg.common.utils.setNormalizedScrollLeft,g=window.sg.common.utils.isRtl,p=window.sg.common.constants.KEY_CODE,r=window.sg.common.lazyLoad,t=function(z,D){this.selector=
{setPositionOption:"[data-set-scroll-position]",focusable:"a[href], button:not([disabled])"};this.els={el:z,tabListEl:null,tabItemTitleEls:[],tabLeftArrowEl:null,tabRightArrowEl:null};this.selectedAriaTypeText={selected:"selected",current:"current"};this.scrollEndTime=this.dragStartTitle=null;this.init(void 0===D?0:D)};t.prototype.init=function(z){z=void 0===z?0:z;t.instances.has(this.els.el)||(t.instances.set(this.els.el,this),this.initValues(),this.setElements(),this.setSelectedAriaType(),this.bindEvents(),
this.select(z,!0))};t.prototype.reInit=function(z){z=void 0===z?0:z;this.unBindEvents();this.initValues();this.setElements();this.setSelectedAriaType();this.bindEvents();if("false"===this.els.el.dataset.reinitActive){var D=this.els.el.querySelector(".tab__item--active .tab__item-title");D?this.index=[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).indexOf(D):this.select(z)}else this.select(z)};t.prototype.destroy=function(){this.unBindEvents();t.instances.has(this.els.el)&&t.instances.delete(this.els.el);
this.els=null};t.prototype.initValues=function(){this.index=-1;this.startX=0;this.isAnim=this.isContentsDragging=!1;this.diffX=0;this.device="";this.selectDisabled=!1;this.selectedAriaType=this.selectedAriaTypeText.selected;this.selectedAriaDisabled=!1;this.isUseArrow=void 0!==this.els.el.dataset.useArrow;this.isUseArrowMo=void 0!==this.els.el.dataset.useArrowMo;this.setPositionOption=this.els.el.dataset.setScrollPosition;this.intoScrollExtend=this.els.el.dataset.intoScrollExtend;this.duration=300;
this.easing=f(.4,0,.2,1);this.isRtl=g()};t.prototype.setElements=function(){this.els.tabListEl=this.els.el.querySelector(".tab__list");this.els.tabItemTitleEls=this.els.el.querySelectorAll(".tab__item-title");if(this.isUseArrow){this.els.tabLeftArrowEl=this.els.el.querySelector(".tab__left-arrow");this.els.tabRightArrowEl=this.els.el.querySelector(".tab__right-arrow");if(this.isRtl){var z=this.els.tabLeftArrowEl.getAttribute("aria-label"),D=this.els.tabRightArrowEl.getAttribute("aria-label");this.els.tabLeftArrowEl.setAttribute("aria-label",
D);this.els.tabRightArrowEl.setAttribute("aria-label",z)}this.setArrow()}};t.prototype.setSelectedAriaType=function(){this.selectedAriaType=this.els.el.hasAttribute("data-selected-aria-type")&&this.els.el.getAttribute("data-selected-aria-type")===this.selectedAriaTypeText.current?this.selectedAriaTypeText.current:this.selectedAriaTypeText.selected;this.selectedAriaDisabled=this.els.el.hasAttribute("data-selected-aria-type")&&"false"===this.els.el.getAttribute("data-selected-aria-type")?!0:!1};t.prototype.select=
function(z,D){var E=this;D=void 0===D?!1:D;var y=parseInt(z);z===this.index||this.isAnim||(this.index=y,Array.from(this.els.tabItemTitleEls).forEach(function(V,ca){if(ca===E.index){if(a(V).parent().addClass("tab__item--active"),!E.selectedAriaDisabled)a:switch(E.selectedAriaType){case E.selectedAriaTypeText.selected:a(V).attr("aria-"+E.selectedAriaType,"true");break a;case E.selectedAriaTypeText.current:ca=V.dataset.ariaCurrentValue?V.dataset.ariaCurrentValue:"page",a(V).attr("aria-"+E.selectedAriaType,
ca)}}else if(a(V).parent().removeClass("tab__item--active"),!E.selectedAriaDisabled)a:switch(E.selectedAriaType){case E.selectedAriaTypeText.selected:a(V).attr("aria-"+E.selectedAriaType,"false");break a;case E.selectedAriaTypeText.current:a(V).removeAttr("aria-"+E.selectedAriaType)}}),0>y||(D?this.setPosition(y,!1):this.setPosition(y),D||c(this.els.el,"tabSelect",this.index)))};t.prototype.selectTab=function(z){this.selectDisabled||(this.select(z),this.setPosition(z))};t.prototype.setPosition=function(z,
D){var E=this;D=void 0===D?!0:D;var y=Math.max(0,parseInt(z)),V=this.els.tabListEl.getBoundingClientRect(),ca=this.els.tabItemTitleEls[y];if(ca){z=ca.getBoundingClientRect();var xa=this.els.tabListEl.getBoundingClientRect(),ea=D?this.duration:0;D=this.isUseArrow?this.els.el.querySelector(".tab__left-arrow-wrap").getBoundingClientRect().width||this.els.el.querySelector(".tab__right-arrow-wrap").getBoundingClientRect().width:0;var va=2>this.els.tabItemTitleEls.length?0:(this.isRtl?this.els.tabItemTitleEls[0].getBoundingClientRect().left-
this.els.tabItemTitleEls[1].getBoundingClientRect().right:this.els.tabItemTitleEls[1].getBoundingClientRect().left-this.els.tabItemTitleEls[0].getBoundingClientRect().right)/2,na=D+va,cb=function(db){db=db.getBoundingClientRect();return db.right+na>V.right?(E.scrollTo(db.right-V.right+na,ea),!0):db.left-na<V.left?(E.scrollTo(-(V.left-db.left+na),ea),!0):!1};D=function(){var db=E.isRtl?-1:1,wa=E.els.tabItemTitleEls[y+db],Ra=wa&&wa.getBoundingClientRect(),Ia=(db=E.els.tabItemTitleEls[y-db])&&db.getBoundingClientRect();
Ra&&Ra.right+na>V.right?cb(wa):Ia&&Ia.left-na<V.left?cb(db):cb(ca)};if("mobile"===n())switch(this.setPositionOption){case "center":this.scrollTo(z.left-xa.width/2+z.width/2,ea);break;case "start":this.isRtl?this.scrollTo(z.left-(xa.width-z.width)+na):this.scrollTo(z.left-na);break;default:cb(ca)}else"true"===this.intoScrollExtend?D():cb(ca)}};t.prototype.animate=function(z,D,E){var y=this,V=Date.now();this.isAnim=!0;this.isContentsDragging=!1;var ca=function(){var xa=(Date.now()-V)/D;1<xa?(z(1),y.isAnim=
!1):(requestAnimationFrame(ca),z(E(xa)))};requestAnimationFrame(ca)};t.prototype.scrollTo=function(z,D){var E=this;D=void 0===D?this.duration:D;var y=e(this.els.tabListEl),V=this.els.tabListEl.scrollWidth-this.els.el.getBoundingClientRect().width;y+z>V&&(z=V-y);0>y+z&&(z=-y);V=function(ca){b(E.els.tabListEl,y+z*ca)};0<D?this.isAnim||this.animate(V,D,this.easing):V(1)};t.prototype.handleScroll=function(){this.isUseArrow&&this.setArrow();this.scrollEndTime&&clearTimeout(this.scrollEndTime);this.scrollEndTime=
setTimeout(function(){r.setLazyLoad()},100)};t.prototype.getCurrentPixelSize=function(z){var D=h(),E=parseFloat(z),y="desktop-over"!==D;D=-1<D.indexOf("mobile")?360:1440;if(!isNaN(E))return y?parseFloat((z/D*window.innerWidth).toFixed(3)):z};t.prototype.setArrow=function(){if("desktop"===n()&&this.isUseArrow||this.isUseArrowMo&&this.isUseArrow){var z=this.els.tabListEl.scrollWidth-this.els.el.getBoundingClientRect().width,D=this.els.tabLeftArrowEl.parentElement,E=this.els.tabRightArrowEl.parentElement,
y=e(this.els.tabListEl);4>y?(document.activeElement===this.els.tabLeftArrowEl&&this.els.tabRightArrowEl.focus(),D.classList.add("disabled"),this.els.tabLeftArrowEl.setAttribute("disabled",!0),this.els.tabLeftArrowEl.setAttribute("aria-disabled",!0),this.els.tabLeftArrowEl.setAttribute("tabindex",-1)):D.classList.contains("disabled")&&(D.classList.remove("disabled"),this.els.tabLeftArrowEl.removeAttribute("disabled"),this.els.tabLeftArrowEl.removeAttribute("aria-disabled"),this.els.tabLeftArrowEl.removeAttribute("tabindex"));
y>z-4?(document.activeElement===this.els.tabRightArrowEl&&this.els.tabLeftArrowEl.focus(),E.classList.add("disabled"),this.els.tabRightArrowEl.setAttribute("disabled",!0),this.els.tabRightArrowEl.setAttribute("aria-disabled",!0),this.els.tabRightArrowEl.setAttribute("tabindex",-1)):E.classList.contains("disabled")&&(E.classList.remove("disabled"),this.els.tabRightArrowEl.removeAttribute("disabled"),this.els.tabRightArrowEl.removeAttribute("aria-disabled"),this.els.tabRightArrowEl.removeAttribute("tabindex"))}};
t.prototype.handleTabLeftArrowClick=function(){if("desktop"===n()&&this.isUseArrow||this.isUseArrowMo&&this.isUseArrow){for(var z=this.els.el.getBoundingClientRect().left+this.getCurrentPixelSize(56),D=-1,E=this.els.tabItemTitleEls.length,y=0;y<E;y++){var V=this.els.tabItemTitleEls[y].parentElement.getBoundingClientRect().left;if(!this.isRtl){if(V+4>z||y===E-1){D=y-1;break}}else if(V+4<z){D=y;break}}this.scrollTo(this.els.tabItemTitleEls[D].parentElement.getBoundingClientRect().left-z)}};t.prototype.handleTabRightArrowClick=
function(){if("desktop"===n()&&this.isUseArrow||this.isUseArrowMo&&this.isUseArrow){for(var z=this.els.el.getBoundingClientRect().right-this.getCurrentPixelSize(56),D=-1,E=this.els.tabItemTitleEls.length,y=0;y<E;y++){var V=this.els.tabItemTitleEls[y].parentElement.getBoundingClientRect().right;if(!this.isRtl){if(V-4>z){D=y;break}}else if(V-4<z||y===E-1){D=y-1;break}}this.scrollTo(this.els.tabItemTitleEls[D].parentElement.getBoundingClientRect().right-z)}};t.prototype.handleKeydown=function(z){var D=
this,E=z.currentTarget;if(E.matches(this.selector.focusable)){var y=[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).filter(function(ca){return ca.matches(D.selector.focusable)});E=y.indexOf(E);var V=this.isRtl?p.RIGHT:p.LEFT;z.keyCode===(this.isRtl?p.LEFT:p.RIGHT)||z.keyCode===p.DOWN?y[E+1]&&y[E+1].focus():(z.keyCode===V||z.keyCode===p.UP)&&y[E-1]&&y[E-1].focus()}};t.prototype.bindEvents=function(){var z=this;[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).forEach(function(D,
E){k(D,"click",function(){z.selectDisabled||z.select(E)});k(D,"keydown",function(y){z.handleKeydown(y)})});this.handleContentsDragStart=this.handleContentsDragStart.bind(this);this.handleContentsDrag=this.handleContentsDrag.bind(this);this.handleContentsDragEnd=this.handleContentsDragEnd.bind(this);this.els.el.addEventListener("mousedown",this.handleContentsDragStart);this.handleScroll=this.handleScroll.bind(this);this.handleTabLeftArrowClick=this.handleTabLeftArrowClick.bind(this);this.handleTabRightArrowClick=
this.handleTabRightArrowClick.bind(this);this.els.tabListEl.addEventListener("scroll",this.handleScroll);this.isUseArrow&&(this.els.tabLeftArrowEl.addEventListener("click",this.handleTabLeftArrowClick),this.els.tabRightArrowEl.addEventListener("click",this.handleTabRightArrowClick));this.resize=this.resize.bind(this);window.addEventListener("resize",this.resize)};t.prototype.unBindEvents=function(){[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).forEach(function(z){l(z,"click")});this.els.el.removeEventListener("mousedown",
this.handleContentsDragStart);this.els.tabListEl.removeEventListener("scroll",this.handleScroll);this.isUseArrow&&(this.els.tabLeftArrowEl.removeEventListener("click",this.handleTabLeftArrowClick),this.els.tabRightArrowEl.removeEventListener("click",this.handleTabRightArrowClick));window.removeEventListener("resize",this.resize)};t.prototype.resize=function(){var z=n();this.device!==z&&(this.device=z,this.setPosition(this.index));this.setArrow()};t.prototype.handleContentsDragStart=function(z){if("mobile"===
n()||"desktop"===n()&&this.isUseArrow)this.dragStartTitle=z.target.closest(".tab__item-title"),this.startX=z.clientX+e(this.els.tabListEl),this.isContentsDragging=!0,this.diffX=0,document.addEventListener("mousemove",this.handleContentsDrag),document.addEventListener("mouseup",this.handleContentsDragEnd)};t.prototype.handleContentsDrag=function(z){if(!this.isAnim&&this.isContentsDragging){this.diffX=this.startX-(z.clientX+e(this.els.tabListEl));0!==this.diffX&&this.dragStartTitle&&"A"===this.dragStartTitle.tagName&&
(this.dragStartTitle.style.pointerEvents="none");z=e(this.els.tabListEl)+this.diffX;var D=this.els.tabListEl.scrollWidth-this.els.el.getBoundingClientRect().width;0>z?z=0:z>D&&(z=D);b(this.els.tabListEl,z)}};t.prototype.handleContentsDragEnd=function(){this.isContentsDragging=!1;this.dragStartTitle&&(this.dragStartTitle.style.pointerEvents="auto");this.dragStartTitle=null;document.removeEventListener("mousemove",this.handleContentsDrag);document.removeEventListener("mouseup",this.handleContentsDragEnd)};
t.prototype.setSelectDisabled=function(z){this.selectDisabled=z};t.instances=new WeakMap;window.sg.components.registerClass("tab",t);var w={initAll:function(){for(var z=[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.tab:not([data-auto-init\x3d"false"])'))),D=[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.static-content .tab:not([data-auto-init\x3d"false"])'))),E=0;E<z.length;E++){for(var y=z[E],V=!1,ca=0;ca<D.length;ca++)if(y===D[ca]){V=!0;break}V||t.instances.has(y)||
new t(y)}},init:function(z,D){t.instances.has(z)?(z=t.instances.get(z),z.reInit(D)):z=new t(z,D);return z},reInit:function(z,D){t.instances.has(z)?t.instances.get(z).reInit(D):new t(z,D)},selectTab:function(z,D){t.instances.has(z)&&t.instances.get(z).selectTab(D)},setSelectDisabled:function(z,D){t.instances.has(z)&&t.instances.get(z).setSelectDisabled(D)},destroy:function(z){t.instances.has(z)&&t.instances.get(z).destroy()}};window.sg.common.tab=w;a.ready(w.initAll)})();
(function(){function a(){n(f.section).target.forEach(function(k){c.instances.has(k)?c.instances.get(k).reInit():new c(k)})}var n=window.sg.common.$q,h=window.sg.common.constants.KEY_CODE,f={section:'[data-js-action\x3d"tooltipUx"]:not([data-auto-init\x3d"false"])'},c=function(k){this.selector={tooltip:'[data-js-action\x3d"tooltipUx"]',layer:'[data-js-action\x3d"tooltipUxLayer"]',button:'[data-js-action\x3d"tooltipUxButton"]',close:'[data-js-action\x3d"tooltipUxClose"]',dataShow:"data-tooltip-ux-show",
dataOptionHover:"data-tooltip-ux-hover"};this.el={section:n(k),document:n(document)};this.isHover="true"===this.el.section.attr(this.selector.dataOptionHover);this.handler={handleTooltipOpen:this.handleTooltipOpen.bind(this),handleTooltipClose:this.handleTooltipClose.bind(this)};this.init();c.instances.set(k,this)};c.prototype.init=function(){this.setElements();this.bindEvents()};c.prototype.reInit=function(){a()};c.prototype.setElements=function(){this.el.button=this.el.section.find(this.selector.button);
this.el.layer=this.el.section.find(this.selector.layer);this.el.close=this.el.section.find(this.selector.close)};c.prototype.bindEvents=function(){this.el.button.off("click",this.handler.handleTooltipOpen).on("click",this.handler.handleTooltipOpen);this.isHover&&(this.el.button.off("mouseenter",this.handler.handleTooltipOpen).on("mouseenter",this.handler.handleTooltipOpen),this.el.button.off("focus",this.handler.handleTooltipOpen).on("focus",this.handler.handleTooltipOpen),this.el.button.off("mouseleave",
this.handler.handleTooltipClose).on("mouseleave",this.handler.handleTooltipClose),this.el.button.off("focusout",this.handler.handleTooltipClose).on("focusout",this.handler.handleTooltipClose))};c.prototype.handleTooltipOpen=function(k){var l=n(k.currentTarget).closest(this.selector.tooltip),e=k.relatedTarget||document.activeElement;"click"===k.type&&this.isShow()?this.close():"focus"===k.type&&l.target[0].contains(e)||(window.sg.components.Tooltip.closeAll(),this.open())};c.prototype.handleTooltipClose=
function(k){var l=k.type,e=n(k.target),b=k.relatedTarget||document.activeElement;if("keydown"!==l||k.keyCode===h.ESC)"focusout"===l&&this.el.section.target[0].contains(b)||("click"!==l||e.closest(this.selector.close).target.length||!e.closest(this.selector.tooltip).target.length||this.isShow())&&this.close()};c.prototype.open=function(){var k=this;this.el.section.attr(this.selector.dataShow,!0);this.el.button.attr("aria-expanded",!0);this.el.close.off("click",this.handler.handleTooltipClose).on("click",
this.handler.handleTooltipClose);setTimeout(function(){k.el.document.off("click",k.handler.handleTooltipClose).on("click",k.handler.handleTooltipClose);k.el.document.off("keydown",k.handler.handleTooltipClose).on("keydown",k.handler.handleTooltipClose)},10)};c.prototype.close=function(){this.el.close.off("click",this.handler.handleTooltipClose);this.el.document.off("click",this.handler.handleTooltipClose);this.el.document.off("keydown",this.handler.handleTooltipClose);this.el.section.attr(this.selector.dataShow,
!1);this.el.button.attr("aria-expanded",!1)};c.prototype.isShow=function(){return"true"===this.el.section.attr(this.selector.dataShow)};c.instances=new WeakMap;window.sg.components.Tooltip={init:a,reInit:function(){n(f.section).target.forEach(function(k){c.instances.has(k)?c.instances.get(k).reInit():new c(k)})},closeAll:function(){n(f.section).target.forEach(function(k){c.instances.has(k)&&c.instances.get(k).close()})}};n.ready(a)})();
(function(){function a(p){var r=p.getAttribute("aria-label");null!==r&&p.setAttribute("data-old-labeltxt",r);p.removeAttribute("aria-label")}function n(p){var r=p.getAttribute("data-old-labeltxt");null!==r&&p.setAttribute("aria-label",r);p.removeAttribute("data-old-labeltxt")}function h(p){p=void 0===p?null:p;l(b.start||".wishlist-popup").hide();e.window.off("keydown",g.focusLockPop);c.visibleScroll();p instanceof Element?p.focus():b.closefocus.focus();b.start=null;b.close=null;b.closefocus=null}
function f(){e.window.off("keydown",g.hideBoxHover).on("keydown",g.hideBoxHover);e.component.off("click",g.clickBtn).on("click",g.clickBtn);e.component.target.forEach(function(p){var r=l(p);r.on("keydown",g.hideBoxEvent);r.on("click",g.showBoxEvent);r.on("blur",g.showBoxEvent);r.on("mouseleave",g.showBoxEvent);p.classList.contains("pd-wishlist-cta--on")?!0===p.hasAttribute("data-product-name")?p.setAttribute("aria-label",p.getAttribute("data-added-text")+" : "+p.getAttribute("data-product-name")):
p.setAttribute("aria-label",p.getAttribute("data-added-text")):!0===p.hasAttribute("data-product-name")?p.setAttribute("aria-label",p.getAttribute("data-add-text")+" : "+p.getAttribute("data-product-name")):p.setAttribute("aria-label",p.getAttribute("data-add-text"))})}var c=window.sg.common.utils,k=window.sg.common.constants,l=window.sg.common.$q,e={component:null,window:l(window)},b={start:null,close:null,closefocus:null},g={clickBtn:function(p){p=l(p.currentTarget);var r=l(p.attr("data-div-id")||
"");if(!(0>=r.target.length)){var t=r.find(".wishlist-popup__close");b.start=r.target[0];b.close=t.target[0];b.closefocus=p;r.show();e.window.off("keydown",g.focusLockPop).on("keydown",g.focusLockPop);c.hiddenScroll();r.focus();t.off("click",h).on("click",h)}},hideBoxEvent:function(p){p.keyCode===window.sg.common.constants.KEY_CODE.ESC?a(p.currentTarget||p.target):p.keyCode===window.sg.common.constants.KEY_CODE.ENTER&&n(p.currentTarget||p.target)},hideBoxHover:function(p){p.keyCode===window.sg.common.constants.KEY_CODE.ESC&&
(p=document.querySelector(".pd-wishlist-cta:hover"),null!==p&&a(p))},showBoxEvent:function(p){n(p.currentTarget||p.target)},focusLockPop:function(p){p.keyCode===k.KEY_CODE.TAB&&(b.close===document.activeElement&&!1===p.shiftKey?(p.preventDefault(),b.start.focus()):b.start===document.activeElement&&!0===p.shiftKey&&(p.preventDefault(),b.close.focus()))}};window.sg.components.wishlistIcon={reInit:function(){e.component=l(".pd-wishlist-cta");f()},closeWishlistPop:h};l.ready(function(){e.component=l(".pd-wishlist-cta");
f()})})();var SITE_CD="";SITE_CD=""!==$("#siteCode").val()&&void 0!==$("#siteCode").val()?$("#siteCode").val():"sec";var USE_ESTORE=!0,DOMAIN="";DOMAIN=""!==$("#domain").val()&&void 0!==$("#domain").val()?$("#domain").val():"www.samsung.com";var STORE_DOMAIN="";"N"===$("#useStore").val()&&(USE_ESTORE=!1);
""!==$("#storeDomain").val()?STORE_DOMAIN=$("#storeDomain").val():(STORE_DOMAIN=location.protocol+"shop.samsung.com","us"===SITE_CD&&(STORE_DOMAIN=-1!=window.location.host.indexOf("www")?"https://p1-smu-api-cdn.shop.samsung.com":"https://s2-smu-api-cdn.ecom-stg.samsung.com"));var STORE_SITE_CODE=$("#store_sitecode").val(),IS_B2B="Y"===$("#b2bFlag").val()?!0:!1,IS_EPP=checkEppSite(),EPP_COMPANYCODE="";null!=window.sg&&null!=window.sg.epp&&null!=window.sg.epp.common&&(EPP_COMPANYCODE=window.sg.epp.common.companyCode);
var SEC_LOCAL_URL_CHECKMEMBERSTATE="http://local.sec.samsung.com/comLocal/checkMemberStateAjax.do",SEC_LOCAL_URL_SIGNIN="http://local.sec.samsung.com/comLocal/loginCheck.do",login_user_info={};$("#signInForm input[name\x3ddomain]").val(DOMAIN);$("#joinForm input[name\x3ddomain]").val(DOMAIN);$("#findAccountForm input[name\x3ddomain]").val(DOMAIN);
(function(a,n){a(function(){a(".layer_popup .close, .layer_popup .icon-close-x, .layer_popup .alert-ok-button").click(function(){"close"===a(this).data("popup")&&a(".accesseFocusTarget").trigger("focus");a(".layer_popup").hide();a(".lightbox-skrim").hide();return!1})})})(jQuery,window);
$.cookies.data={SEARCH_NAME:"sk",ACCESSORY_SEARCH_NAME:"ask",NAVIGATION_NAME:"nh",PRIVATECODE_NAME:"pv",COMPARELIST_NAME:"cl",WISHLIST_NAME:"wl",INSTORE_PRIVATECODE_NAME:"ipv",STORE_REGION_NUM:"cnregionnum",STORE_REGION_CODE:"cnregion",STORE_REGION_NAME:"cnregionname",STORE_CITY_NUM:"cncitynamenum",STORE_CITY_CODE:"cncity",STORE_CITY_NAME:"cncityname",SEARCH_MAX_SIZE:4,PRIVATECODE_MAX_SIZE:5,WISHLIST_MAX_SIZE:6,STORE_REGION_MAX_SIZE:1,STORE_CITY_MAX_SIZE:1};var CONTENT="/content/samsung";
$.cookies.getDefaultOption=function(a,n){a&&a instanceof Date||(a=new Date,a.setTime(a.getTime()+864E5));n?-1<window.location.pathname.indexOf(CONTENT)&&(n=CONTENT+n):n="/";var h=".samsung.com";"cn"===SITE_CD&&(h=".samsung.com.cn");return{expiresAt:a,path:n,domain:h,secure:!1}};$.cookies.setWishList=function(a,n){var h=this.data.WISHLIST_NAME,f=this.get(h);if(f){if(0<=$.inArray(a,f))return;f.length>=this.data.WISHLIST_MAX_SIZE&&f.splice(0,1);f.push(a)}else f=[a];this.set(h,f,this.getDefaultOption(n))};
$.cookies.getWishListCnt=function(){var a=this.get(this.data.WISHLIST_NAME);return a&&$.isArray(a)?a.length:0};$.cookies.getWishList=function(){var a=this.get(this.data.WISHLIST_NAME);return a&&$.isArray(a)?a:[]};$.cookies.isAddedWishList=function(a){var n=this.get(this.data.WISHLIST_NAME);if(n&&$.isArray(n))for(var h=0,f=n.length;h<f;h++)if(n[h]===a)return!0;return!1};
$.cookies.deleteWishProduct=function(a,n){var h=this.data.WISHLIST_NAME,f=this.get(h);return f&&$.isArray(f)&&(a=$.inArray(a,f),0<=a)?(f.splice(a,1),0>=f.length?this.del(h,this.getDefaultOption(n)):this.set(h,f,this.getDefaultOption(n)),!0):!1};$.cookies.deleteWishList=function(a){this.del(this.data.WISHLIST_NAME,this.getDefaultOption(a))};
try{if(!$.cookies.get("cookie_country")||""===$.cookies.get("cookie_country"))$.cookies.set("cookie_country",SITE_CD,$.cookies.getDefaultOption());else if(SITE_CD!==$.cookies.get("cookie_country")){var deleteOption=$.cookies.getDefaultOption();$.cookies.del($.cookies.data.NAVIGATION_NAME,deleteOption);$.cookies.del($.cookies.data.PRIVATECODE_NAME,deleteOption);$.cookies.del($.cookies.data.COMPARELIST_NAME,deleteOption);$.cookies.del($.cookies.data.WISHLIST_NAME,deleteOption);$.cookies.del($.cookies.data.INSTORE_PRIVATECODE_NAME,
deleteOption);$.cookies.set("cookie_country",SITE_CD,$.cookies.getDefaultOption())}}catch(a){}var ss=$;
(function(a){ss.EstoreIfQueue={setQueue:function(n){var h=a.cookies.get("iPlanetDirectoryPro",{domain:".samsung.com"}),f=a.cookies.get("snsSessionId",{domain:".samsung.com"});h||f?USE_ESTORE?this.getIsSignReady()?this.callFunction(n,arguments):this.queue.push(arguments):this.callFunction(n,arguments):this.callFunction(n,arguments)},callFunction:function(n,h){if(n&&"function"==typeof n){for(var f=[],c=1;c<h.length;c++)f.push(h[c]);n.apply(null,f)}},setIsSignReady:function(n){this.isSignReady=n;if(!0===
n||"true"===n)for(n=0;n<this.queue.length;n++)this.queue[n].length&&this.callFunction(this.queue[n][0],this.queue[n])},getIsSignReady:function(){return this.isSignReady},setProperties:function(){this.isSignReady=!1;this.queue=[]},init:function(){this.setProperties()}};ss.EstoreIfQueue.init()})(jQuery);
var estore=function(){var a=function(c){var k="?",l=0,e;for(e in c){0!=l&&(k+="\x26");var b=c[e];$.isArray(b)?$.each(b,function(g,p){k+=e+"\x3d"+p;g<b.length-1&&(k+="\x26")}):k+=e+"\x3d"+b;l++}return k},n=function(c){var k=$("#popup_alert");k.find(".msg-text").html(c);"sec"===SITE_CD&&k.find(".pop-btn").find(".button").text("\ud655\uc778");$(".layer_popup").hide();k.parent().show();"sec"===SITE_CD?$(".lightbox-skrim").show():$(".lightbox-skrim").hide();c=parseInt(($("body").width()-k.width())/2);
var l=parseInt($(window).scrollTop()+($(window).height()-k.height())/2);$(window).height()<k.height()&&(l=$(window).scrollTop()+10);k.css({top:l+"px",left:c+"px"});$("#popup_alert .popup_wrap .pop-btn").find("a").focus()},h=function(c,k,l){var e=!1;-1<location.href.indexOf("/consumer")&&(e=!0);var b=$("#hybrisApiJson").val(),g="Hybris-new"===$("#shopIntegrationFlag").val()?!0:!1,p="Hybris-intg"===$("#shopIntegrationFlag").val()?!0:!1,r="Hybris"===$("#shopIntegrationFlag").val()?!0:!1,t=$("#newHyvStoreDomain").val(),
w="";if("ae"==SITE_CD||"ae_ar"==SITE_CD){var z=$.cookies.get("estoreSitecode")?$.cookies.get("estoreSitecode").toString():"";w=fnIsNull(z)?SITE_CD:z}else"levant"==SITE_CD?w="jo":"levant_ar"==SITE_CD?w="jo_ar":"n_africa"==SITE_CD&&(w="ma");IS_EPP&&""!=w&&(w=EPP_COMPANYCODE);var D=IS_EPP?EPP_COMPANYCODE:STORE_SITE_CODE;z=IS_EPP?EPP_COMPANYCODE:SITE_CD;var E="";"addCart"===c&&("ar"===SITE_CD||"br"===SITE_CD?(E=STORE_DOMAIN+"/"+SITE_CD+"/getServicesProduct"+(k?a(k):""),window.location.href=E):"py"===
SITE_CD&&(E=STORE_DOMAIN+"/getServicesProduct"+(k?a(k):""),window.location.href=E));(g||p||r||IS_B2B)&&"getCartCount"===c?E=IS_B2B?STORE_DOMAIN+"/tokocommercewebservices/v2/"+D+"/minicart/totalProducts":g?""!=w?STORE_DOMAIN+"/tokocommercewebservices/v2/"+w+"/minicart/totalProducts":STORE_DOMAIN+"/tokocommercewebservices/v2/"+D+"/minicart/totalProducts":""!=w?t+"/tokocommercewebservices/v2/"+w+"/minicart/totalProducts":t+"/tokocommercewebservices/v2/"+D+"/minicart/totalProducts":"ar"!==SITE_CD&&"br"!==
SITE_CD||"getCartCount"!==c?"py"===SITE_CD?E="getCartCount"===c&&"py"===SITE_CD?STORE_DOMAIN+"/_v/private/ng/p4v1/"+c+(k?a(k):""):STORE_DOMAIN+"/ng/p4v1/"+c+(k?a(k):""):""!=w?E=STORE_DOMAIN+"/"+w+"/ng/p4v1/"+c+(k?a(k):""):g&&"uk"!=SITE_CD&&"cn"!=SITE_CD||IS_B2B?(t=$("#storeWebDomain").val(),E=t+"/"+z+"/ng/p4v1/"+c+(k?a(k):""),IS_B2B&&(E=t+"/ng/p4v1/"+c+(k?a(k):""))):E=STORE_DOMAIN+"/"+D+"/ng/p4v1/"+c+(k?a(k):""):E=STORE_DOMAIN+"/"+SITE_CD+"/_v/private/ng/p4v1/"+c+(k?a(k):"");(g||p||r||IS_B2B)&&"getCartCount"===
c?""!=E&&$.ajax({url:E,type:"GET",dataType:"json",crossDomain:!0,xhrFields:{withCredentials:!0},success:function(y){$.isFunction(l)&&("undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isPlatformReady()&&shopAppUtilInstance.updateCartCount(y),l(y))}}):"getRealTimeProductSimpleInfo"===c&&e&&"br"!==SITE_CD&&"Y"!==b?$.ajax({url:E,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584",jsonp:"callback",success:function(y){"2100"===y.resultCode||2100===y.resultCode?
k&&k.hasOwnProperty("returnUrl")&&""!==k.returnUrl?$.Auth.signOut(k.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===y.resultCode||"9000"===y.resultCode||"9001"===y.resultCode||"9002"===y.resultCode||9E3===y.resultCode||9001===y.resultCode||9002===y.resultCode||"2110"===y.resultCode||2110===y.resultCode||4!==y.resultCode.length||"2"!==y.resultCode.charAt(0)&&"3"!==y.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===y.resultCode||"9000"===y.resultCode||"9001"===y.resultCode||"9002"===y.resultCode||
9E3===y.resultCode||9001===y.resultCode||9002===y.resultCode||"2110"===y.resultCode||2110===y.resultCode||"2002"===y.resultCode||2002===y.resultCode||4!==y.resultCode.length||"2"!==y.resultCode.charAt(0)&&"3"!==y.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==y.resultCode&&"9000"!==y.resultCode&&"9001"!==y.resultCode&&"9002"!==y.resultCode&&9E3!==y.resultCode&&9001!==y.resultCode&&9002!==y.resultCode&&"2110"!==y.resultCode&&2110!==y.resultCode&&n(y.resultMessage):n(y.resultMessage):
n(y.resultMessage);$.isFunction(l)&&l(y)},error:function(y,V,ca){}}):"getRealTimeProductSimpleInfo"===c&&"sec"===SITE_CD?$.ajax({url:E,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584",jsonp:"callback",timeout:1E4,success:function(y){"2100"===y.resultCode||2100===y.resultCode?k&&k.hasOwnProperty("returnUrl")&&""!==k.returnUrl?$.Auth.signOut(k.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===y.resultCode||"9000"===y.resultCode||"9001"===y.resultCode||"9002"===
y.resultCode||9E3===y.resultCode||9001===y.resultCode||9002===y.resultCode||"2110"===y.resultCode||2110===y.resultCode||4!==y.resultCode.length||"2"!==y.resultCode.charAt(0)&&"3"!==y.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===y.resultCode||"9000"===y.resultCode||"9001"===y.resultCode||"9002"===y.resultCode||9E3===y.resultCode||9001===y.resultCode||9002===y.resultCode||"2110"===y.resultCode||2110===y.resultCode||"2002"===y.resultCode||2002===y.resultCode||4!==y.resultCode.length||"2"!==y.resultCode.charAt(0)&&
"3"!==y.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==y.resultCode&&"9000"!==y.resultCode&&"9001"!==y.resultCode&&"9002"!==y.resultCode&&9E3!==y.resultCode&&9001!==y.resultCode&&9002!==y.resultCode&&"2110"!==y.resultCode&&2110!==y.resultCode&&n(y.resultMessage):(-1!==y.resultMessage.indexOf("\uad6c\ub9e4 \ud55c\ub3c4\ub97c \ucd08\uacfc\ud558\uc5ec \uad6c\ub9e4\uac00 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.\x3cbr /\x3e")&&(y.resultMessage="\uad6c\ub9e4 \ud55c\ub3c4"+y.resultMessage.split("\uad6c\ub9e4 \ud55c\ub3c4")[1].replace("\x3cbr /\x3e",
"\n")),n(y.resultMessage)):n(y.resultMessage);$.isFunction(l)&&l(y)},error:function(y,V,ca){"au"!==SITE_CD&&"nz"!==SITE_CD&&"sec"!==SITE_CD||window.location.pathname!=="/"+SITE_CD+"/wishlist"||l();"sec"===SITE_CD&&"timeout"===ca&&$("#product-detail-current-modelcode").val()&&($("#BT_shop .BT_txt").html("\ud574\ub2f9 \uc0c1\ud488\uc744 \ud310\ub9e4 \uc900\ube44\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uad6c\ub9e4 \uac00\ub2a5 \uc5ec\ubd80\ub294\x3cbr /\x3e\uac00\uae4c\uc6b4 \ub9e4\uc7a5\uc774\ub098 \uc0bc\uc131\uc804\uc790 \uacf5\uc2dd \ud310\ub9e4\ucc98\uc5d0 \ubb38\uc758\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4."),
$("#BT_shop").show(),$("#BT_shop .product-details__link.s-cta-retailer.js-cta-buy-sec").hide(),$("#BT_shop .BT_help").hide(),$("#BT_shop .BT_help-content").hide(),$("#BT_shop .BT_txt").show(),$("#find-store-shopmain").show(),$("#store-reservation").hide())}}):"getRealTimeProductSimpleInfo"===c&&e&&"Y"===b?$.ajax({url:E,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(y){"2100"===y.resultCode||2100===y.resultCode?
k&&k.hasOwnProperty("returnUrl")&&""!==k.returnUrl?$.Auth.signOut(k.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===y.resultCode||"9000"===y.resultCode||"9001"===y.resultCode||"9002"===y.resultCode||9E3===y.resultCode||9001===y.resultCode||9002===y.resultCode||"2110"===y.resultCode||2110===y.resultCode||4!==y.resultCode.length||"2"!==y.resultCode.charAt(0)&&"3"!==y.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===y.resultCode||"9000"===y.resultCode||"9001"===y.resultCode||"9002"===y.resultCode||
9E3===y.resultCode||9001===y.resultCode||9002===y.resultCode||"2110"===y.resultCode||2110===y.resultCode||"2002"===y.resultCode||2002===y.resultCode||4!==y.resultCode.length||"2"!==y.resultCode.charAt(0)&&"3"!==y.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==y.resultCode&&"9000"!==y.resultCode&&"9001"!==y.resultCode&&"9002"!==y.resultCode&&9E3!==y.resultCode&&9001!==y.resultCode&&9002!==y.resultCode&&"2110"!==y.resultCode&&2110!==y.resultCode&&n(y.resultMessage):n(y.resultMessage):
n(y.resultMessage);$.isFunction(l)&&l(y)},error:function(y,V,ca){}}):"getRealTimeProductSimpleInfo"===c||e||"Y"!==b?$.ajax({url:E,type:"GET",dataType:"jsonp",jsonp:"callback",success:function(y){"2100"===y.resultCode?k&&k.hasOwnProperty("returnUrl")&&""!==k.returnUrl?$.Auth.signOut(k.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===y.resultCode||"9000"===y.resultCode||"9001"===y.resultCode||"9002"===y.resultCode||9E3===y.resultCode||9001===y.resultCode||9002===y.resultCode||"2110"===y.resultCode||
2110===y.resultCode||4!==y.resultCode.length||"2"!==y.resultCode.charAt(0)&&"3"!==y.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===y.resultCode||"9000"===y.resultCode||"9001"===y.resultCode||"9002"===y.resultCode||9E3===y.resultCode||9001===y.resultCode||9002===y.resultCode||"2110"===y.resultCode||2110===y.resultCode||"2002"===y.resultCode||2002===y.resultCode||4!==y.resultCode.length||"2"!==y.resultCode.charAt(0)&&"3"!==y.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==y.resultCode&&
"9000"!==y.resultCode&&"9001"!==y.resultCode&&"9002"!==y.resultCode&&9E3!==y.resultCode&&9001!==y.resultCode&&9002!==y.resultCode&&"2110"!==y.resultCode&&2110!==y.resultCode&&n(y.resultMessage):(-1!==y.resultMessage.indexOf("\uad6c\ub9e4 \ud55c\ub3c4\ub97c \ucd08\uacfc\ud558\uc5ec \uad6c\ub9e4\uac00 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.\x3cbr /\x3e")&&(y.resultMessage="\uad6c\ub9e4 \ud55c\ub3c4"+y.resultMessage.split("\uad6c\ub9e4 \ud55c\ub3c4")[1].replace("\x3cbr /\x3e","\n")),n(y.resultMessage)):
n(y.resultMessage);$.isFunction(l)&&l(y)},error:function(y,V,ca){"au"!==SITE_CD&&"nz"!==SITE_CD&&"sec"!==SITE_CD||window.location.pathname!=="/"+SITE_CD+"/wishlist"||l()}}):$.ajax({url:E,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(y){"2100"===y.resultCode||2100===y.resultCode?k&&k.hasOwnProperty("returnUrl")&&""!==k.returnUrl?$.Auth.signOut(k.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===y.resultCode||
"9000"===y.resultCode||"9001"===y.resultCode||"9002"===y.resultCode||9E3===y.resultCode||9001===y.resultCode||9002===y.resultCode||"2110"===y.resultCode||2110===y.resultCode||4!==y.resultCode.length||"2"!==y.resultCode.charAt(0)&&"3"!==y.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===y.resultCode||"9000"===y.resultCode||"9001"===y.resultCode||"9002"===y.resultCode||9E3===y.resultCode||9001===y.resultCode||9002===y.resultCode||"2110"===y.resultCode||2110===y.resultCode||"2002"===y.resultCode||2002===
y.resultCode||4!==y.resultCode.length||"2"!==y.resultCode.charAt(0)&&"3"!==y.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==y.resultCode&&"9000"!==y.resultCode&&"9001"!==y.resultCode&&"9002"!==y.resultCode&&9E3!==y.resultCode&&9001!==y.resultCode&&9002!==y.resultCode&&"2110"!==y.resultCode&&2110!==y.resultCode&&n(y.resultMessage):(-1!==y.resultMessage.indexOf("\uad6c\ub9e4 \ud55c\ub3c4\ub97c \ucd08\uacfc\ud558\uc5ec \uad6c\ub9e4\uac00 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.\x3cbr /\x3e")&&
(y.resultMessage="\uad6c\ub9e4 \ud55c\ub3c4"+y.resultMessage.split("\uad6c\ub9e4 \ud55c\ub3c4")[1].replace("\x3cbr /\x3e","\n")),n(y.resultMessage)):n(y.resultMessage);$.isFunction(l)&&l(y)},error:function(y,V,ca){"au"!==SITE_CD&&"nz"!==SITE_CD&&"sec"!==SITE_CD||window.location.pathname!=="/"+SITE_CD+"/wishlist"||l()}})},f=function(){};f.prototype.makeBuyNowCookie=function(c){$.EstoreIfQueue.setQueue(h,"makeBuyNowCookie",null,c)};f.prototype.addCart=function(c,k){$.EstoreIfQueue.setQueue(h,"addCart",
c,k)};f.prototype.getCartCount=function(c){$.EstoreIfQueue.setQueue(h,"getCartCount",null,c)};f.prototype.getRealTimeProductSimpleInfo=function(c,k){$.EstoreIfQueue.setQueue(h,"getRealTimeProductSimpleInfo",c,k)};f.prototype.getRealTimeProductListInfo=function(c,k){$.EstoreIfQueue.setQueue(h,"getRealTimeProductListInfo",c,k)};f.prototype.addWishListItem=function(c,k){$.EstoreIfQueue.setQueue(h,"addWishListItem",c,k)};f.prototype.addWishListItemForce=function(c,k){h("addWishListItem",c,k)};f.prototype.delWishListItem=
function(c,k){$.EstoreIfQueue.setQueue(h,"delWishListItem",c,k)};f.prototype.getWishList=function(c,k){var l={page:1,pageSize:5};c&&!$.isFunction(c)&&(l=$.extend(l,c));$.EstoreIfQueue.setQueue(h,"getWishList",l,k)};f.prototype.login=function(c){$.EstoreIfQueue.setQueue(h,"login",null,c)};f.prototype.logout=function(c,k){$.EstoreIfQueue.setQueue(h,"logout",c,k)};f.prototype.getRealTimeWishProductListInfo=function(c,k){$.EstoreIfQueue.setQueue(h,"getRealTimeWishProductListInfo",c,k)};f.prototype.getGuestOrderExistYn=
function(c,k){$.EstoreIfQueue.setQueue(h,"getGuestOrderExistYn",c,k)};f.prototype.getSnsUserInfo=function(c,k){$.EstoreIfQueue.setQueue(h,"getSnsUserInfo",c,k)};f.prototype.setAgreeStorePolicy=function(c,k){$.EstoreIfQueue.setQueue(h,"setAgreeStorePolicy",c,k)};f.prototype.getSessionCheck=function(c,k){$.EstoreIfQueue.setQueue(h,"getSessionCheck",c,k)};f.prototype.getEstoreCategoryList=function(c){$.EstoreIfQueue.setQueue(h,"getEstoreCategoryList",null,c)};f.prototype.getCurrentUserInfo=function(c,
k){$.EstoreIfQueue.setQueue(h,"getCurrentUserInfo",c,k)};f.prototype.buyNow=function(c,k){$.EstoreIfQueue.setQueue(h,"buyNow",c,k)};f.prototype.getReviews=function(c,k){$.EstoreIfQueue.setQueue(h,"getReviewList",c,k)};f.prototype.getMyReview=function(c,k){$.EstoreIfQueue.setQueue(h,"getMyReview",c,k)};f.prototype.addReview=function(c,k){$.EstoreIfQueue.setQueue(h,"addReview",c,k)};f.prototype.updateReview=function(c,k){$.EstoreIfQueue.setQueue(h,"updateReview",c,k)};f.prototype.deleteReview=function(c,
k){$.EstoreIfQueue.setQueue(h,"deleteReview",c,k)};f.prototype.addReviewHelpful=function(c,k){$.EstoreIfQueue.setQueue(h,"setReviewHelpful",c,k)};f.prototype.addReviewHelpful=function(c,k){$.EstoreIfQueue.setQueue(h,"setReviewHelpful",c,k)};f.prototype.addReviewUnHelpful=function(c,k){$.EstoreIfQueue.setQueue(h,"setReviewUnHelpful",c,k)};f.prototype.addReviewAbuse=function(c,k){$.EstoreIfQueue.setQueue(h,"setReviewAbuse",c,k)};f.prototype.getExpertReviewList=function(c,k){$.EstoreIfQueue.setQueue(h,
"getExpertReviewList",c,k)};f.prototype.getProductDetailRegion=function(c,k){$.EstoreIfQueue.setQueue(h,"getProductDetailRegion",c,k)};f.prototype.getProductDetailCity=function(c,k){$.EstoreIfQueue.setQueue(h,"getProductDetailCity",c,k)};f.prototype.showProductOpenphoneOption=function(c,k){$.EstoreIfQueue.setQueue(h,"showProductOpenphoneOption",c,k)};f.prototype.preCalc=function(c,k){$.EstoreIfQueue.setQueue(h,"preCalc",c,k)};f.prototype.preCalcApply=function(c,k){$.EstoreIfQueue.setQueue(h,"preCalcApply",
c,k)};f.prototype.stores=function(c,k){$.EstoreIfQueue.setQueue(h,"stores",c,k)};f.prototype.getReviewStatus=function(c,k){$.EstoreIfQueue.setQueue(h,"getReviewStatus",c,k)};f.prototype.addViewCount=function(c,k){$.EstoreIfQueue.setQueue(h,"addViewCount",c,k)};return new f}();
(function(){function a(){n(l.section).target.forEach(function(b){e.instances.has(b)||new e(b)})}var n=window.sg.common.$q,h=window.sg.common.utils,f=window.sg.common.lazyLoad,c=window.sg.common.constants.KEY_CODE,k=window.sg.common.swiperManager,l={section:".nv00-gnb-v4"},e=function(b){this.selector={header:".nv00-gnb-v4__header",container:".nv00-gnb-v4__container",containerInner:".nv00-gnb-v4__container-inner",featuredWrap:".nv00-gnb-v4__featured-wrap",featuredSwiper:".nv00-gnb-v4__featured-list",
featuredSwiperSlide:".nv00-gnb-v4__featured-item",featuredSwiperIndicator:".nv00-gnb-v4__featured-list .screen-indicator-wrap",l0MenuList:".nv00-gnb-v4__l0-menu-list",l0MenuListRight:".nv00-gnb-v4__l0-menu-list--right",l0Menu:".nv00-gnb-v4__l0-menu",l0MenuItem:'[data-js-action\x3d"l0MenuBtn"]',l0MenuTitle:".nv00-gnb-v4__l0-menu-title",l0MenuBtn:".nv00-gnb-v4__l0-menu-btn",l0MenuLink:".nv00-gnb-v4__l0-menu-link",l0MenuToggleBtn:".nv00-gnb-v4__l0-menu-toggle-btn",l1MenuContainer:".nv00-gnb-v4__l1-menu-container",
l1MenuInner:".nv00-gnb-v4__l1-menu-inner",l1MenuList:".nv00-gnb-v4__l1-menu-list",l1MenuItem:".nv00-gnb-v4__l1-menu-btn, .nv00-gnb-v4__l1-menu-link",l1MenuAccordion:'.nv00-gnb-v4__l1-menu [data-js-action\x3d"accordionBtn"]',l2FeaturedAccordionContainer:'.nv00-gnb-v4__l2-featured-container[data-js-action\x3d"accordionContainer"]',l2FeaturedLink:".nv00-gnb-v4__l2-featured-link",utilityList:".nv00-gnb-v4__utility-list",utilityUserWrap:".nv00-gnb-v4__utility-wrap",utilityUserBtn:".nv00-gnb-v4__utility-user",
utilityUserList:".nv00-gnb-v4__utility-menu-list",utilityMenuWrap:".nv00-gnb-v4__utility-menu-wrap",mobileExpandMenuButton:".nv00-gnb-v4__utility-hamburger",mobileExpandCloseButton:".nv00-gnb-v4__close-btn",mobileContainerHeader:".nv00-gnb-v4__container-header",mobileContainerHeaderSearch:".nv00-gnb-v4__container-header .nv00-gnb-v4__search",mobileL0MenuBtn:'[data-js-action\x3d"l0MenuBtn"]',mobileBackwardBtn:".nv00-gnb-v4__backward-btn",mobileLeftMenuList:".nv00-gnb-v4__mo-left-menu-list",l0AccordionList:".nv00-gnb-v4__accordion-list",
accordionBtn:'[data-js-action\x3d"accordionBtn"]',accordionWrap:'[data-js-action\x3d"accordionWrap"]',accordionContainer:'[data-js-action\x3d"accordionContainer"]',accordionInner:'[data-js-action\x3d"accordionInner"]',dimm:".nv00-gnb-v4__dim",layerPopup:".layer-popup",layerPopupWrap:".nv00-gnb-v4__layer-popup-wrap",layerPopupOpenButton:".js-layer-open",layerPopupCloseButton:".layer-popup__close",layerPopupLoopingStart:".nv00-gnb-v4__layer-popup-looping--start",layerPopupLoopingEnd:".nv00-gnb-v4__layer-popup-looping--end",
heroKv:".hd08-hero-kv-home"};this.classes={textType:"nv00-gnb-v4--text-type",gnbShow:"nv00-gnb-v4--show",gnbOpended:"nv00-gnb-v4--opended",gnbl1MenuShow:"nv00-gnb-v4--l1-show",l0MenuShow:"nv00-gnb-v4__l0-menu--show",l0MenuBannerType:"nv00-gnb-v4__l0-menu--type-banner",l0MenuListShow:"nv00-gnb-v4__l0-menu-list--show",l1MenuShow:"nv00-gnb-v4__l1-menu--show",l1MenuGroupType:"nv00-gnb-v4__l1-menu-inner--group",featuredTextType:"nv00-gnb-v4__l1-featured-list--text",accordionActive:"nv00-gnb-v4__accordion--active",
userMenuShow:"nv00-gnb-v4__utility-wrap--show",fixed:"nv00-gnb-v4--fixed",down:"nv00-gnb-v4--down",shyLight:"nv00-gnb-v4--shy-light",shyDark:"nv00-gnb-v4--shy-dark",mobileOnly:"nv00-gnb-v4--mobile-only",l2FeaturedLinkHide:"nv00-gnb-v4__l2-featured-link--hide",popupLooping:"layer-popup__looping"};this.el={section:n(b),window:n(window)};this.currentDevice=null;this.stickyMode=!1;this.shyTheme=null;this.scrollTop=window.scrollY;this.navRightMenuTop=this.navOffsetTop=0;this.isDimClick=this.isTextType=
this.isTouchScreen=!1;this.resizeTimer=this.swiper=null;if("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints)this.isTouchScreen=!0;this.menuOpenTimeout=this.menuEnterTimeout=null;this.isKeydown=this.isLeaveAfterTouch=this.isTouch=this.isActiveMenuOpen=this.isRightpcMenuOpen=!1;this.handler={resize:this.resize.bind(this),scroll:this.scroll.bind(this),mousewheel:this.mousewheel.bind(this),keydown:this.keydown.bind(this),
handleSticky:this.handleSticky(this),handleMenuMouseEnter:this.handleMenuMouseEnter.bind(this),handleMenuMouseLeave:this.handleMenuMouseLeave.bind(this),hanledMenuListMouseLeave:this.hanledMenuListMouseLeave.bind(this),handleMenuToggleClick:this.handleMenuToggleClick.bind(this),handleMenuToggleKeydown:this.handleMenuToggleKeydown.bind(this),handleMenuLinkClick:this.handleMenuLinkClick.bind(this),handleMenuLinkKeydown:this.handleMenuLinkKeydown.bind(this),handleLeaveFirstFocus:this.handleLeaveFirstFocus.bind(this),
handleMobileGnbOpen:this.handleMobileGnbOpen.bind(this),handleMobileGnbClose:this.handleMobileGnbClose.bind(this),handleMobileMenuOpen:this.handleMobileMenuOpen.bind(this),handleMobileMenuClose:this.handleMobileMenuClose.bind(this),handleUtilityMouseEnter:this.handleUtilityMouseEnter.bind(this),handleAccordionToggle:this.handleAccordionToggle.bind(this),handleAccordionKeydown:this.handleAccordionKeydown.bind(this),handleUserMenuMouseEnter:this.handleUserMenuMouseEnter.bind(this),handleUserMenuMouseLeave:this.handleUserMenuMouseLeave.bind(this),
handleUserMenuKeydown:this.handleUserMenuKeydown.bind(this),handleCheckClickDim:this.handleCheckClickDim.bind(this),handleClickDim:this.handleClickDim.bind(this),openLayerPopup:this.openLayerPopup.bind(this),closeLayerPopup:this.closeLayerPopup.bind(this)};this.init();e.instances.set(b,this)};e.prototype.init=function(){this.currentDevice=this.getCurrentDevice();this.setElements();this.setAccessbility();this.setL1MenuHeight();this.reInitL2Featured();this.initSwiper();this.setShyGNB();this.setScrollPaddingTop();
this.bindEvent();this.resize()};e.prototype.reInit=function(){this.init()};e.prototype.reInitL2Featured=function(){var b=this;this.el.l0Menu.target.forEach(function(g){if(n(g).find(b.selector.l2FeaturedAccordionContainer).target.length){var p=n(g).find(b.selector.l2FeaturedLink+":not(."+b.classes.mobileOnly+")");g=n(g).find("."+b.classes.featuredTextType).target.length?p.target.slice(10):p.target.slice(8);p.removeClass(b.classes.l2FeaturedLinkHide);n(g).addClass(b.classes.l2FeaturedLinkHide)}})};
e.prototype.setElements=function(){this.el.header=this.el.section.find(this.selector.header);this.el.container=this.el.section.find(this.selector.container);this.el.containerInner=this.el.section.find(this.selector.containerInner);this.el.featuredWrap=this.el.section.find(this.selector.featuredWrap);this.el.featuredSwiper=this.el.section.find(this.selector.featuredSwiper);this.el.featuredSwiperSlide=this.el.section.find(this.selector.featuredSwiperSlide);this.el.featuredSwiperIndicator=this.el.section.find(this.selector.featuredSwiperIndicator);
this.el.l0MenuList=this.el.section.find(this.selector.l0MenuList);this.el.l0Menu=this.el.section.find(this.selector.l0Menu);this.el.l0MenuTitle=this.el.section.find(this.selector.l0MenuTitle);this.el.l0MenuItem=this.el.section.find(this.selector.l0MenuItem);this.el.l0MenuBtn=this.el.section.find(this.selector.l0MenuBtn);this.el.l0MenuLink=this.el.section.find(this.selector.l0MenuLink);this.el.l0MenuToggleBtn=this.el.section.find(this.selector.l0MenuToggleBtn);this.el.l1MenuContainer=this.el.section.find(this.selector.l1MenuContainer);
this.el.l1MenuInner=this.el.section.find(this.selector.l1MenuInner);this.el.l1MenuAccordion=this.el.section.find(this.selector.l1MenuAccordion);this.el.l2FeaturedAccordionContainer=this.el.section.find(this.selector.l2FeaturedAccordionContainer);this.el.l2FeaturedLink=this.el.section.find(this.selector.l2FeaturedLink);this.el.utilityList=this.el.section.find(this.selector.utilityList);this.el.dimm=this.el.section.find(this.selector.dimm);this.el.utilityUserWrap=this.el.section.find(this.selector.utilityUserWrap);
this.el.utilityUserBtn=this.el.section.find(this.selector.utilityUserBtn);this.el.utilityUserList=this.el.section.find(this.selector.utilityUserList);this.el.mobileExpandMenuButton=this.el.section.find(this.selector.mobileExpandMenuButton);this.el.mobileExpandCloseButton=this.el.section.find(this.selector.mobileExpandCloseButton);this.el.mobileContainerHeader=this.el.section.find(this.selector.mobileContainerHeader);this.el.mobileContainerHeaderSearch=this.el.section.find(this.selector.mobileContainerHeaderSearch);
this.el.mobileL0MenuBtn=this.el.section.find(this.selector.mobileL0MenuBtn);this.el.mobileBackwardBtn=this.el.section.find(this.selector.mobileBackwardBtn);this.el.mobileLeftMenuList=this.el.section.find(this.selector.mobileLeftMenuList);this.el.l0AccordionList=this.el.section.find(this.selector.l0AccordionList);this.el.accordionWrap=this.el.section.find(this.selector.accordionWrap);this.el.accordionBtn=this.el.section.find(this.selector.accordionBtn);this.el.accordionContainer=this.el.section.find(this.selector.accordionContainer);
this.el.accordionInner=this.el.section.find(this.selector.accordionInner);this.el.layerPopupOpenButton=this.el.section.find(this.selector.layerPopupOpenButton);this.el.layerPopupWrap=this.el.section.find(this.selector.layerPopupWrap);this.el.layerPopupLoopingStart=this.el.section.find(this.selector.layerPopupLoopingStart);this.el.layerPopupLoopingEnd=this.el.section.find(this.selector.layerPopupLoopingEnd);this.el.section.hasClass(this.classes.textType)&&(this.isTextType=!0)};e.prototype.bindEvent=
function(){var b=this;"mobile"===this.getCurrentDevice()?this.bindMobileEvents():this.bindDesktopEvents();this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize);this.el.window.off("scroll",this.handler.scroll).on("scroll",this.handler.scroll);this.el.window.off("mousewheel",this.handler.mousewheel).on("mousewheel",this.handler.mousewheel);this.el.dimm.off("click",this.handler.handleMobileGnbClose).on("click",this.handler.handleMobileGnbClose);this.el.layerPopupOpenButton.target.forEach(function(g){n(g).off("click").on("click",
function(){return b.handler.openLayerPopup(g.dataset.targetPopup)})})};e.prototype.bindMobileEvents=function(){this.el.window.off("keydown",this.handler.keydown);this.el.l0MenuToggleBtn.off("click",this.handler.handleMenuToggleClick);this.el.l0MenuToggleBtn.off("keydown",this.handler.handleMenuToggleKeydown);this.el.l0MenuBtn.off("click",this.handler.handleMenuToggleClick);this.el.l0MenuBtn.off("keydown",this.handler.handleMenuToggleKeydown);this.el.l0MenuLink.off("click",this.handler.handleMenuLinkClick);
this.el.l0MenuLink.off("keydown",this.handler.handleMenuLinkKeydown);this.el.utilityList.off("mouseenter",this.handler.handleUtilityMouseEnter);this.el.l0MenuItem.off("mouseenter",this.handler.handleMenuMouseEnter);this.el.l0MenuItem.off("mouseleave",this.handler.handleMenuMouseLeave);this.el.l0MenuList.off("mouseleave",this.handler.hanledMenuListMouseLeave);this.el.utilityUserWrap.off("mouseenter",this.handler.handleUserMenuMouseEnter);this.el.utilityUserWrap.off("mouseleave",this.handler.handleUserMenuMouseLeave);
this.el.utilityUserBtn.off("keydown",this.handler.handleUserMenuKeydown);this.el.mobileExpandMenuButton.off("click",this.handler.handleMobileGnbOpen).on("click",this.handler.handleMobileGnbOpen);this.el.mobileExpandCloseButton.off("click",this.handler.handleMobileGnbClose).on("click",this.handler.handleMobileGnbClose);this.el.mobileBackwardBtn.off("click",this.handler.handleMobileMenuClose).on("click",this.handler.handleMobileMenuClose);this.el.accordionBtn.off("click",this.handler.handleAccordionToggle).on("click",
this.handler.handleAccordionToggle);this.el.l1MenuAccordion.off("keydown",this.handler.handleAccordionKeydown).on("keydown",this.handler.handleAccordionKeydown);if(this.isTextType)this.el.l0MenuBtn.off("click",this.handler.handleMobileMenuOpen).on("click",this.handler.handleMobileMenuOpen),this.el.l0MenuToggleBtn.off("click",this.handler.handleMobileMenuOpen).on("click",this.handler.handleMobileMenuOpen);else this.el.mobileL0MenuBtn.off("click",this.handler.handleMobileMenuOpen).on("click",this.handler.handleMobileMenuOpen)};
e.prototype.bindDesktopEvents=function(){var b=this;this.el.mobileExpandMenuButton.off("click",this.handler.handleMobileGnbOpen);this.el.mobileExpandCloseButton.off("click",this.handler.handleMobileGnbClose);this.el.mobileBackwardBtn.off("click",this.handler.handleMobileMenuClose);this.el.accordionBtn.off("click",this.handler.handleAccordionToggle);this.el.l1MenuAccordion.off("keydown",this.handler.handleAccordionKeydown);this.isTextType?(this.el.l0MenuBtn.off("click",this.handler.handleMobileMenuOpen),
this.el.l0MenuToggleBtn.off("click",this.handler.handleMobileMenuOpen)):this.el.mobileL0MenuBtn.off("click",this.handler.handleMobileMenuOpen);this.el.l0MenuList.target.forEach(function(g){b.setPcFocusLooping(g,"l0menu")});this.el.l1MenuInner.target.forEach(function(g){var p=g.closest(b.selector.l0Menu).querySelector(b.selector.l0MenuToggleBtn||b.selector.l0MenuBtn);b.setPcFocusLooping(g,"l1menu",p)});this.el.utilityUserWrap.target.forEach(function(g){var p=g.querySelector(b.selector.utilityUserBtn);
g=g.querySelector(b.selector.utilityMenuWrap);b.setPcFocusLooping(g,"usermenu",p)});this.el.window.off("keydown",this.handler.keydown).on("keydown",this.handler.keydown);this.el.l0MenuToggleBtn.off("click",this.handler.handleMenuToggleClick).on("click",this.handler.handleMenuToggleClick);this.el.l0MenuToggleBtn.off("keydown",this.handler.handleMenuToggleKeydown).on("keydown",this.handler.handleMenuToggleKeydown);this.el.l0MenuLink.off("click",this.handler.handleMenuLinkClick).on("click",this.handler.handleMenuLinkClick);
this.el.l0MenuLink.off("keydown",this.handler.handleMenuLinkKeydown).on("keydown",this.handler.handleMenuLinkKeydown);this.el.l0MenuBtn.off("click",this.handler.handleMenuToggleClick).on("click",this.handler.handleMenuToggleClick);this.el.l0MenuBtn.off("keydown",this.handler.handleMenuToggleKeydown).on("keydown",this.handler.handleMenuToggleKeydown);this.el.utilityList.off("mouseenter",this.handler.handleUtilityMouseEnter).on("mouseenter",this.handler.handleUtilityMouseEnter);this.el.l0MenuItem.off("mouseenter",
this.handler.handleMenuMouseEnter).on("mouseenter",this.handler.handleMenuMouseEnter);this.el.l0MenuItem.off("mouseleave",this.handler.handleMenuMouseLeave).on("mouseleave",this.handler.handleMenuMouseLeave);this.el.l0MenuList.off("mouseleave",this.handler.hanledMenuListMouseLeave).on("mouseleave",this.handler.hanledMenuListMouseLeave);this.el.utilityUserWrap.off("mouseenter",this.handler.handleUserMenuMouseEnter).on("mouseenter",this.handler.handleUserMenuMouseEnter);this.el.utilityUserWrap.off("mouseleave",
this.handler.handleUserMenuMouseLeave).on("mouseleave",this.handler.handleUserMenuMouseLeave);this.el.utilityUserBtn.off("keydown",this.handler.handleUserMenuKeydown).on("keydown",this.handler.handleUserMenuKeydown)};e.prototype.resize=function(){var b=this,g=this.getCurrentDevice();this.navOffsetTop=this.el.section.target[0].offsetTop;this.navRightMenuTop=this.el.section.target[0].getBoundingClientRect().top;this.el.section.target[0].style.setProperty("--gnb04-top",this.navOffsetTop+"px");this.el.section.target[0].style.setProperty("--gnb04-rightmenu-top",
this.navRightMenuTop+"px");g!==this.currentDevice&&(this.setDeviceBindEvents(),this.setAccessbility());clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout(function(){"mobile"===g&&b.updateSwiper();b.setL1MenuHeight();b.setScrollPaddingTop()});this.currentDevice=g};e.prototype.scroll=function(){this.isRightpcMenuOpen&&(this.setRightMenuTop(),this.hanledMenuListMouseLeave());this.stickyMode&&this.handleSticky()};e.prototype.mousewheel=function(b){var g=this.el.section.find(".nv00-gnb-v4__l0-menu--show .nv00-gnb-v4__l1-menu-container");
"desktop"===this.getCurrentDevice()&&g.target.length&&b.clientY>g.offset().bottom&&(this.isActiveMenuOpen=!1,this.pcMenuClose())};e.prototype.keydown=function(b){"desktop"===this.getCurrentDevice()&&b.keyCode===c.ESC&&(this.isActiveMenuOpen=!1,this.el.section.find("."+this.classes.l0MenuShow).target.length?this.pcMenuClose():this.el.section.find("."+this.classes.userMenuShow).target.length&&this.userMenuClose())};e.prototype.setPcFocusLooping=function(b,g,p){function r(z){if("desktop"===t.getCurrentDevice()){var D=
w.target.findIndex(function(y){return y===z.target});if(z&&z.keyCode===c.TAB&&!0===z.shiftKey&&0===D&&"l0menu"!==g)t.handleLeaveFirstFocus(g),z.preventDefault();else if("l0menu"!==g||z.keyCode===c.RIGHT||z.keyCode===c.LEFT)if(t.isKeydownNextInput(z)||t.isKeydownPrevInput(z)){var E;t.isKeydownNextInput(z)?E=w.target[D+1]:t.isKeydownPrevInput(z)&&0===D&&"l0menu"!==g?E=p:t.isKeydownPrevInput(z)&&(E=w.target[D-1]);E&&E.focus();E===p&&t.handleLeaveFirstFocus(g);z.preventDefault()}}}p=void 0===p?null:p;
if(b){var t=this,w=this.getFocusableElements(b,g);w&&w.off("keydown").on("keydown",r)}};e.prototype.getFocusableElements=function(b,g){var p=this;b=b.target?b:n(b);g="mobile"===this.getCurrentDevice()?[].concat($jscomp.arrayFromIterable(b.find("a, button").target)).filter(function(r){return!r.closest(".nv00-gnb-v4--pc-only")}):"l0menu"===g?[].concat($jscomp.arrayFromIterable(b.find(this.selector.l0MenuItem+", "+this.selector.l0MenuToggleBtn).target)):"l1menu"===g?b.closest(this.selector.l0MenuListRight).target.length?
[].concat($jscomp.arrayFromIterable(b.find("a").target)):[].concat($jscomp.arrayFromIterable(b.find("a, button").target)).filter(function(r){return!(n(r).hasClass("nv00-gnb-v4__l1-featured-btn")||n(r).hasClass(p.classes.mobileOnly)||n(r).hasClass(p.classes.l2FeaturedLinkHide)||r.closest(".nv00-gnb-v4__l2-menu-container"))}):[].concat($jscomp.arrayFromIterable(b.find("a").target));return n(g)};e.prototype.handleLeaveFirstFocus=function(b){this.isActiveMenuOpen=!1;"l1menu"===b?this.pcMenuClose():"usermenu"===
b&&this.userMenuClose()};e.prototype.setRightMenuTop=function(){this.el.section.hasClass(this.classes.fixed)?this.el.section.target[0].style.setProperty("--gnb04-rightmenu-top",0):(this.navRightMenuTop=this.el.section.target[0].getBoundingClientRect().top,this.el.section.target[0].style.setProperty("--gnb04-rightmenu-top",this.navRightMenuTop+"px"))};e.prototype.setDeviceBindEvents=function(){"mobile"===this.getCurrentDevice()?(this.hanledMenuListMouseLeave(),this.bindMobileEvents()):(this.handleMobileGnbClose(),
this.bindDesktopEvents())};e.prototype.setAccessbility=function(){var b=this,g=[this.el.l1MenuContainer,this.el.utilityUserList],p=[this.el.container,this.el.l1MenuContainer,this.el.accordionContainer];"mobile"===this.getCurrentDevice()?(this.el.l0MenuList.attr("role","menu"),g.forEach(function(r){r.removeAttr("aria-hidden")}),p.forEach(function(r){r.attr("aria-hidden",!0)}),this.el.l2FeaturedAccordionContainer.target.forEach(function(r){var t=r.dataset.jsTitle?r.dataset.jsTitle:null;t&&n(r).attr("aria-label",
t);n(r).attr("role","menu");n(r).find(b.selector.l2FeaturedLink).attr("tabindex",-1)}),this.el.l0MenuTitle.target.forEach(function(r){n(r).find("a, button").removeAttr("aria-expanded");b.isTextType?n(r).find("button").attr("aria-haspopup",!0):(n(r).find("a, button").removeAttr("aria-haspopup"),n(r).closest(b.selector.l0Menu).find(b.selector.l1MenuContainer).target[0]&&n(r).find(b.selector.l0MenuItem).attr("aria-haspopup",!0))}),this.el.l1MenuAccordion.target.forEach(function(r){n(r).attr("role","button");
n(r).attr("aria-expanded",!1);n(r).attr("tabindex","0");n(r).closest(b.selector.accordionWrap).find(b.selector.accordionInner+" a").attr("tabindex",-1)})):(h.removeMobileFocusLoop(),this.el.container.find(".layer-popup__looping--first, .layer-popup__looping--end").remove(),this.el.l0MenuList.attr("role","menubar"),this.el.l0MenuTitle.removeAttr("aria-hidden"),this.el.l2FeaturedAccordionContainer.removeAttr("role"),this.el.l2FeaturedAccordionContainer.removeAttr("aria-label"),p.forEach(function(r){r.removeAttr("aria-hidden")}),
g.forEach(function(r){r.attr("aria-hidden",!0)}),this.el.l0MenuTitle.target.forEach(function(r){n(r).find("a, button").removeAttr("aria-expanded");n(r).find("a, button").removeAttr("aria-haspopup");n(r).closest(b.selector.l0Menu).find(b.selector.l1MenuContainer).target[0]&&(n(r).find(b.selector.l0MenuToggleBtn).target[0]?(n(r).find(b.selector.l0MenuToggleBtn).attr("aria-expanded",!1),n(r).find(b.selector.l0MenuToggleBtn).attr("aria-haspopup",!0)):(n(r).find(b.selector.l0MenuItem).attr("aria-expanded",
!1),n(r).find(b.selector.l0MenuItem).attr("aria-haspopup",!0)))}),this.el.l1MenuAccordion.target.forEach(function(r){n(r).attr("role","menuitem");n(r).removeAttr("aria-expanded");r.classList.contains("nv00-gnb-v4__l1-menu-btn")&&n(r).attr("tabindex",-1);n(r).closest(b.selector.accordionWrap).find(b.selector.accordionInner+" a").removeAttr("tabindex")}),this.el.l2FeaturedLink.removeAttr("tabindex"))};e.prototype.setL1MenuHeight=function(){var b=this;this.el.l1MenuInner.target.forEach(function(g){if(n(g).hasClass(b.classes.l1MenuGroupType)){g=
n(g).find(b.selector.l1MenuList).target.map(function(w){return n(w).find(b.selector.l1MenuItem)});var p=Math.max.apply(Math,$jscomp.arrayFromIterable(g.map(function(w){return w.target.length}))),r=[];g.forEach(function(w){w.css({height:""})});if("mobile"!==b.getCurrentDevice()){for(var t={$jscomp$loop$prop$i$90:0};t.$jscomp$loop$prop$i$90<p;t={$jscomp$loop$prop$i$90:t.$jscomp$loop$prop$i$90},t.$jscomp$loop$prop$i$90+=2)r.push(g.flatMap(function(w){return function(z){return z.target.slice(w.$jscomp$loop$prop$i$90,
w.$jscomp$loop$prop$i$90+2)}}(t)));r.forEach(function(w){var z=Math.max.apply(Math,$jscomp.arrayFromIterable(w.map(function(D){return D.getBoundingClientRect().height})));w.forEach(function(D){n(D).css({height:Math.round(z)+"px"})})})}}})};e.prototype.handleMenuMouseEnter=function(b){this.isTouch=!1;this.isLeaveAfterTouch||this.handlePcMenuOpen(b)};e.prototype.handleMenuLinkKeydown=function(){this.isKeydown=!0};e.prototype.handleMenuLinkClick=function(b){this.isTouchScreen&&(this.isKeydown?this.isKeydown=
!1:1>n(b.target).closest(this.selector.l0Menu).find(this.selector.l1MenuContainer).target.length||(this.isTouch=!0,this.handlePcMenuOpen(b)))};e.prototype.handleMenuToggleKeydown=function(b){this.isKeydown=!0;b.keyCode===c.DOWN&&(b.preventDefault(),this.handleMenuToggle(b))};e.prototype.handleMenuToggleClick=function(b){this.isTouch=!0;this.handleMenuToggle(b)};e.prototype.handleMenuToggle=function(b){b=n(b.target).closest(this.selector.l0Menu);var g=b.find(this.selector.l1MenuContainer),p=this.isKeydown?
g.find("a:not(.nv00-gnb-v4__l1-menu-container-title), button:not(.nv00-gnb-v4__l1-menu-container-title):not(.nv00-gnb-v4__l1-menu-btn)").target[0]:null;this.isKeydown&&(this.isKeydown=!1);!b.hasClass(this.classes.l0MenuShow)&&g.target.length?(this.isActiveMenuOpen=!0,this.pcMenuOpen(b,p)):(this.isActiveMenuOpen=!1,this.pcMenuClose())};e.prototype.handlePcMenuOpen=function(b){var g=this;n(b.target).closest(this.selector.l0Menu).hasClass(this.classes.l0MenuShow)||b.preventDefault();clearTimeout(this.menuOpenTimeout);
this.menuOpenTimeout=setTimeout(function(){clearTimeout(g.menuEnterTimeout);var p=b.type,r=n(b.target).closest(g.selector.l0Menu),t=r.find(g.selector.l1MenuContainer),w=100;g.isLeaveAfterTouch&&"mouseenter"===p||(!r.hasClass(g.classes.l0MenuShow)&&t.target.length?(g.isActiveMenuOpen=!0,g.el.section.hasClass(g.classes.gnbShow)&&(w=300),"click"===p?w=0:"mouseenter"===p&&g.el.l0MenuList.find(g.selector.l0MenuItem+":focus, "+g.selector.l0MenuToggleBtn+":focus").blur(),g.menuEnterTimeout=setTimeout(function(){g.pcMenuOpen(r)},
w)):t.target.length||(g.isActiveMenuOpen=!1,setTimeout(function(){g.pcMenuClose()})))})};e.prototype.handleMenuMouseLeave=function(){this.isTouch?this.isLeaveAfterTouch=!0:this.isActiveMenuOpen=this.isLeaveAfterTouch=!1};e.prototype.hanledMenuListMouseLeave=function(){var b=this;this.isTouch?this.isTouch=!1:(this.isActiveMenuOpen=!1,setTimeout(function(){b.pcMenuClose()}))};e.prototype.pcMenuOpen=function(b,g){g=void 0===g?null:g;if(this.isActiveMenuOpen){var p=b.find(this.selector.l0MenuBtn+", "+
this.selector.l0MenuToggleBtn),r=b.closest(this.selector.l0Menu),t=r.find(this.selector.l1MenuContainer),w=r.find(this.selector.l1MenuInner);r=b.closest(this.selector.l0MenuList);w=w.innerHeight();var z=this.el.section.find("."+this.classes.l0MenuShow),D=z.find(this.selector.l0MenuBtn+", "+this.selector.l0MenuToggleBtn),E=this.el.section.find("."+this.classes.l0MenuShow).target.length;this.isRightpcMenuOpen=b.closest(this.selector.l0MenuListRight).target.length;f.setLazyLoadManually(t.target[0]);
E&&(this.el.section.addClass(this.classes.gnbOpended),z.removeClass(this.classes.l0MenuShow),D.attr("aria-expanded",!1),z.find(this.selector.l1MenuContainer).attr("aria-hidden",!0));this.isRightpcMenuOpen&&this.setRightMenuTop();b.addClass(this.classes.l0MenuShow);p.attr("aria-expanded",!0);t.attr("aria-hidden",!1);g&&g.focus();this.el.section.target[0].style.setProperty("--l1-container-current-height",w+"px");this.el.section.hasClass(this.classes.gnbShow)||this.el.section.addClass(this.classes.gnbShow);
r.hasClass(this.classes.l0MenuListShow)||(this.el.section.removeClass(this.classes.gnbOpended),this.el.l0MenuList.removeClass(this.classes.l0MenuListShow),r.addClass(this.classes.l0MenuListShow))}};e.prototype.pcMenuClose=function(){if(!this.isActiveMenuOpen){var b=this.el.section.find("."+this.classes.l0MenuShow),g=b.find(this.selector.l0MenuToggleBtn).target.length?b.find(this.selector.l0MenuToggleBtn):b.find(this.selector.l0MenuItem);b=b.find(this.selector.l1MenuContainer+" a:focus").target.length?
b.find(this.selector.l1MenuContainer+" a:focus"):null;"desktop"===this.getCurrentDevice()&&(this.el.l0MenuBtn.attr("aria-expanded",!1),this.el.l0MenuToggleBtn.attr("aria-expanded",!1));b&&g&&g.focus();this.el.l1MenuContainer.attr("aria-hidden",!0);this.el.section.removeClass(this.classes.gnbOpended);this.el.section.removeClass(this.classes.gnbShow);this.el.l0MenuList.removeClass(this.classes.l0MenuListShow);this.el.l0Menu.removeClass(this.classes.l0MenuShow);this.el.section.target[0].style.setProperty("--l1-container-current-height",
0);this.isRightpcMenuOpen=!1}};e.prototype.handleUtilityMouseEnter=function(){this.isActiveMenuOpen=this.isRightpcMenuOpen?!0:!1};e.prototype.handleMobileGnbOpen=function(){this.el.section.hasClass(this.classes.gnbShow)||(this.isTextType?f.setLazyLoadManually(this.el.featuredWrap.target[0]):f.setLazyLoadManually(this.el.mobileLeftMenuList.target[0]),this.el.l0MenuTitle.target.forEach(function(b){return f.setLazyLoadManually(b)}),this.el.section.addClass(this.classes.gnbShow),this.el.l0MenuTitle.attr("aria-hidden",
!1),this.el.container.attr("aria-hidden",!1),this.el.container.setLayerFocus(this.selector.mobileContainerHeaderSearch,this.selector.mobileExpandCloseButton,!1),this.el.mobileContainerHeaderSearch.focus(),this.setAccordion(),h.setMobileFocusLoop(this.el.container.target[0]),this.el.header.find("a, button").attr("tabindex",-1),h.hiddenScroll(),this.el.window.off("click",this.handler.handleClickDim).on("click",this.handler.handleClickDim),this.el.window.off("pointerdown",this.handler.handleCheckClickDim).on("pointerdown",
this.handler.handleCheckClickDim))};e.prototype.handleMobileGnbClose=function(){var b=this;this.isLeaveAfterTouch=this.isTouch=!0;this.el.section.hasClass(this.classes.gnbShow)&&(h.removeMobileFocusLoop(),this.el.section.removeClass(this.classes.gnbShow),this.el.header.find("a, button").removeAttr("tabindex"),this.el.mobileExpandMenuButton.focus(),this.el.l0MenuTitle.attr("aria-hidden",!1),this.el.l0Menu.attr("aria-hidden",!1),this.el.l1MenuContainer.attr("aria-hidden",!0),this.el.container.attr("aria-hidden",
!0),this.el.l0MenuList.removeClass(this.classes.l0MenuListShow),this.el.section.removeClass(this.classes.gnbl1MenuShow),this.el.l0Menu.removeClass(this.classes.l0MenuShow),this.setAccordion(),h.visibleScroll(),this.el.window.off("click",this.handler.handleClickDim),this.el.window.off("pointerdown",this.handler.handleCheckClickDim),setTimeout(function(){b.el.containerInner.target[0].scrollTo({top:0})},300))};e.prototype.handleCheckClickDim=function(b){this.isDimClick=!b.target.closest(this.selector.container)&&
!b.target.closest(this.selector.header)};e.prototype.handleMobileMenuOpen=function(b){var g=n(b.currentTarget).closest(".nv00-gnb-v4__l0-menu"),p=g.closest(this.selector.l0MenuList),r=g.find(this.selector.l1MenuContainer);!g.hasClass(this.classes.l0MenuBannerType)&&!g.hasClass(this.classes.l0MenuShow)&&g.target.length&&r.target.length&&(this.isTextType||b.preventDefault(),r.attr("aria-hidden",!1),f.setLazyLoadManually(p.target[0]),this.el.l0Menu.removeClass(this.classes.l0MenuShow),this.el.section.addClass(this.classes.gnbl1MenuShow),
p.addClass(this.classes.l0MenuListShow),g.addClass(this.classes.l0MenuShow),this.setAccordion(),this.el.mobileContainerHeaderSearch.removeClass(this.classes.popupLooping),this.el.container.setLayerFocus(this.selector.mobileBackwardBtn,this.selector.mobileExpandCloseButton,!1),g.find("a.nv00-gnb-v4__l1-menu-container-title, "+this.selector.l1MenuItem).eq(0).focus(),this.el.l0MenuList.find(this.selector.l0Menu+":not(."+this.classes.l0MenuShow+")").attr("aria-hidden",!0),this.el.l0MenuTitle.attr("aria-hidden",
!0))};e.prototype.handleMobileMenuClose=function(){var b=this,g=this.el.section.find("."+this.classes.l0MenuShow),p=g.find(this.selector.l0MenuItem);this.isTextType&&(p=g.find(".nv00-gnb-v4__l0-menu-title button"));this.el.l0MenuTitle.attr("aria-hidden",!1);this.el.l0Menu.attr("aria-hidden",!1);this.el.l0Menu.removeClass(this.classes.l0MenuShow);this.el.section.removeClass(this.classes.gnbl1MenuShow);this.el.l0MenuList.removeClass(this.classes.l0MenuListShow);this.setAccordion();this.el.mobileBackwardBtn.removeClass(this.classes.popupLooping);
setTimeout(function(){b.el.container.setLayerFocus(b.selector.mobileContainerHeaderSearch,b.selector.mobileExpandCloseButton,!1);p.target[0].focus();b.el.l1MenuContainer.attr("aria-hidden",!0)},400)};e.prototype.initSwiper=function(){var b=this,g=this.el.featuredSwiper.target[0];g&&(k.slideReInit(g),k.slideUpdate(g,{realSlidesPerView:Math.round(this.getRealSlidePerview())}),k.slideInitEnd(g,function(){b.swiper=k.getSwiper(g);b.setSwiperStatus()}))};e.prototype.updateSwiper=function(){var b=this.el.featuredSwiper.target[0];
b&&(k.slideUpdate(b,{realSlidesPerView:Math.round(this.getRealSlidePerview())}),this.setSwiperStatus())};e.prototype.getRealSlidePerview=function(){var b=parseInt(window.getComputedStyle(this.el.featuredSwiper.target[0]).paddingLeft);b=this.el.featuredSwiper.offset().width-b;var g=this.el.featuredSwiperSlide.offset().width;b/=g;return.8<b-Math.floor(b)?b:Math.floor(b)};e.prototype.setSwiperStatus=function(){var b=this.el.featuredSwiper.target[0];(this.swiper=k.getSwiper(b))?this.swiper.slides.length<=
this.getRealSlidePerview()||1===this.swiper.slides.length?(this.swiper.allowTouchMove=!1,this.el.featuredSwiperIndicator.hide(),k.destroy(b)):(this.swiper.allowTouchMove=!0,this.el.featuredSwiperIndicator.show()):this.initSwiper()};e.prototype.handleAccordionKeydown=function(b){b.keyCode===c.SPACE&&(b.preventDefault(),this.handleAccordionToggle(b))};e.prototype.setAccordion=function(){var b=this,g=null,p=null;p=this.el.section.hasClass(this.classes.gnbl1MenuShow);var r=!this.el.section.hasClass(this.classes.gnbShow);
p?(g=this.el.l0MenuList.find("."+this.classes.l0MenuListShow+" "+this.selector.accordionWrap),p=this.el.section.find(this.selector.l0Menu+":not(."+this.classes.l0MenuShow+") "+this.selector.accordionWrap+", "+this.selector.l0AccordionList)):r?p=this.el.section.find(this.selector.accordionWrap):(g=this.el.l0AccordionList,p=this.el.l0MenuList.find(this.selector.accordionWrap));g&&g.target.forEach(function(t){t=n(t);var w=t.find(b.selector.accordionBtn);t.hasClass(b.classes.accordionActive)?b.openAccordion(w):
b.closeAccordion(t)});p&&p.target.forEach(function(t){t=n(t);b.closeAccordion(t)})};e.prototype.handleAccordionToggle=function(b){b.preventDefault();b=n(b.currentTarget);var g=b.closest(this.selector.accordionWrap);g.hasClass(this.classes.accordionActive)?(this.closeAccordion(g),g.removeClass(this.classes.accordionActive)):(this.openAccordion(b),g.addClass(this.classes.accordionActive))};e.prototype.openAccordion=function(b){var g=b.closest(this.selector.accordionWrap),p=g.find(this.selector.accordionContainer),
r=g.find(this.selector.accordionInner);g=g.find("a");r=r.innerHeight();p.css({"max-height":r+"px"});b.attr("aria-expanded",!0);p.attr("aria-hidden",!1);g.removeAttr("tabindex")};e.prototype.closeAccordion=function(b){var g=b.find(this.selector.accordionContainer),p=b.find(this.selector.accordionBtn);b=b.find(this.selector.accordionInner+" a");g.attr("aria-hidden",!0);g.css({"max-height":null});p.attr("aria-expanded",!1);b.attr("tabindex",-1)};e.prototype.handleUserMenuMouseEnter=function(b){b=n(b.currentTarget);
this.userMenuOpen(b)};e.prototype.handleUserMenuMouseLeave=function(){this.userMenuClose()};e.prototype.handleUserMenuKeydown=function(b){if("keydown"!==b.type||this.isKeydownEvent(b)){b.preventDefault();b=n(b.currentTarget).closest(this.selector.utilityUserWrap);var g=b.find(".nv00-gnb-v4__utility-menu").target[0];b.hasClass(this.classes.userMenuShow)?this.userMenuClose():this.userMenuOpen(b,g)}};e.prototype.handleClickDim=function(b){!this.isDimClick||b.target.closest(this.selector.container)||
b.target.closest(this.selector.header)||this.handleMobileGnbClose()};e.prototype.userMenuOpen=function(b,g){g=void 0===g?null:g;var p=b.find(this.selector.utilityMenuWrap);p=p.innerHeight()+parseFloat(window.getComputedStyle(p.target[0]).marginTop)+15;var r=b.find(this.selector.utilityUserBtn),t=b.find(this.selector.utilityUserList);this.isActiveMenuOpen=!1;this.pcMenuClose();b.target[0].style.setProperty("--gnb04-utility-user-height",p+"px");b.addClass(this.classes.userMenuShow);r.attr("aria-expanded",
!0);t.attr("aria-hidden",!1);g&&g.focus()};e.prototype.userMenuClose=function(){var b=this.el.section.find("."+this.classes.userMenuShow),g=b.find(this.selector.utilityUserBtn),p=b.find(this.selector.utilityUserList);p.find(".nv00-gnb-v4__utility-menu:focus").target.length&&p.find(".nv00-gnb-v4__utility-menu:focus")&&g.focus();b.removeClass(this.classes.userMenuShow);g.attr("aria-expanded",!1);p.attr("aria-hidden",!0)};e.prototype.setShyGNB=function(){var b=n(this.selector.heroKv).eq(0);if(b.target.length){var g=
this.el.section.offset().top+this.el.section.height(),p=b.offset().top;g=10>Math.abs(parseInt(g-p));b.target.length&&g&&(this.stickyMode=!0,this.shyTheme=b.hasClass("hd08-hero-kv-home--text-white")?"dark":"light",this.setShyTheme())}else this.stickyMode=!1};e.prototype.setShyMode=function(b){this.stickyMode=!0;this.shyTheme=b;this.setShyTheme()};e.prototype.handleSticky=function(){if(this.stickyMode){var b=window.scrollY,g=b>this.scrollTop?"down":"up",p=0>this.el.section.offset().top;"up"===g&&p?
(this.el.section.addClass(this.classes.fixed),this.removeShyTheme()):(this.el.section.removeClass(this.classes.fixed),this.setShyTheme());"down"===g&&p?this.el.section.addClass(this.classes.down):this.el.section.removeClass(this.classes.down);this.scrollTop=b}else this.el.section.removeClass(this.classes.fixed),this.el.section.removeClass(this.classes.down)};e.prototype.setShyTheme=function(){"dark"===this.shyTheme?this.el.section.addClass(this.classes.shyDark):"light"===this.shyTheme?this.el.section.addClass(this.classes.shyLight):
this.removeShyTheme()};e.prototype.removeShyTheme=function(){this.el.section.removeClass(this.classes.shyDark);this.el.section.removeClass(this.classes.shyLight)};e.prototype.setScrollPaddingTop=function(){this.stickyMode&&h.setScrollPaddingTop("gnbV4",this.el.section.innerHeight())};e.prototype.openLayerPopup=function(b){var g=this,p=b&&this.el.layerPopupWrap.find(b);b&&p.target.length&&(h.setMobileFocusLoop(this.el.layerPopupWrap.target[0]),this.el.layerPopupWrap.addClass("show"),this.el.layerPopupWrap.setLayerFocus(this.selector.layerPopupLoopingStart,
this.selector.layerPopupLoopingEnd),p.addClass("show"),b=p.find(this.selector.layerPopupCloseButton),b.focus(),b.off("click").on("click",function(){return g.handler.closeLayerPopup(p.target[0])}),this.el.layerPopupWrap.off("click").on("click",function(r){r.target.closest(".layer-popup")||g.handler.closeLayerPopup(p.target[0])}),h.hiddenScroll())};e.prototype.closeLayerPopup=function(b){h.removeMobileFocusLoop();b=b?n(b):this.el.section.find(this.el.layerPopup+".show");b.removeClass("show");this.el.layerPopupWrap.removeClass("show");
this.el.layerPopupWrap.offLayerFocus();this.el.layerPopupWrap.off("click");b="mobile"===this.getCurrentDevice()?this.el.section.find('.nv00-gnb-v4__header [data-target-popup\x3d"#'+b.attr("id")+'"]'):this.el.section.find('.nv00-gnb-v4__container [data-target-popup\x3d"#'+b.attr("id")+'"]');b.target.length&&b.focus();h.visibleScroll()};e.prototype.getCurrentDevice=function(){return 1279<h.getViewPort().width?"desktop":"mobile"};e.prototype.isKeydownEvent=function(b){return"keydown"===b.type&&(b.keyCode===
c.ENTER||b.keyCode===c.DOWN||b.keyCode===c.SPACE)};e.prototype.isKeydownNextInput=function(b){return b&&b.keyCode===c.RIGHT||b.keyCode===c.DOWN};e.prototype.isKeydownPrevInput=function(b){return b&&b.keyCode===c.LEFT||b.keyCode===c.UP};e.instances=new WeakMap;window.sg.components.Nv00GnbV4={init:a,reInit:function(){n(l.section).target.forEach(function(b){e.instances.has(b)?e.instances.get(b).reInit():new e(b)})},openLayerPopup:function(b){n(l.section).target.forEach(function(g){e.instances.has(g)&&
e.instances.get(g).openLayerPopup(b)})},closeLayerPopup:function(b){n(l.section).target.forEach(function(g){e.instances.has(g)&&e.instances.get(g).closeLayerPopup(b)})},getCurrentDevice:function(){var b=document.querySelector(l.section);if(b)return e.instances.get(b).getCurrentDevice()},setShyLight:function(){n(l.section).target.forEach(function(b){e.instances.has(b)&&e.instances.get(b).setShyMode("light")})},setShyDark:function(){n(l.section).target.forEach(function(b){e.instances.has(b)&&e.instances.get(b).setShyMode("dark")})}};
n.ready(a)})();ss=$;var reservationUserData=null;function nextGenLoginResult(a){}
(function(a){ss.Sign=function(){function n(J){if(!J)return{};var H={};J.slice(1).split("\x26").map(function(U){return U.split("\x3d")}).forEach(function(U){var X=$jscomp.makeIterator(U);U=X.next().value;X=X.next().value;U&&X&&(H[U]=decodeURIComponent(X))});return H}function h(){a.cookies.del("estoreLoginRequesting");a.cookies.del("estoreLoginRequesting",{domain:Q})}function f(){a.cookies.del("snsSessionId");a.cookies.del("snsSessionId",{path:"/",domain:Q});a.cookies.del("isStoreLogedIn");a.cookies.del("sa_em");
a.cookies.del("sa_em",{path:"/",domain:Q});a.cookies.del("eVar67");a.cookies.del("eVar67",{path:"/",domain:Q});a.cookies.del("lastName",{domain:Q});a.cookies.del("firstName",{domain:Q});a.cookies.del("guid",{domain:Q});a.cookies.del("ReD",{domain:Q});a.cookies.del("ReDCheck",{domain:Q});a.cookies.del("directCallFl",{expires:null,domain:Q});a.cookies.del("directCallFlv2",{expires:null,domain:Q});a.cookies.del("returnURL",{domain:Q});a.cookies.del("mVal10",{domain:Q});a.cookies.del("mVal11",{domain:Q});
a.cookies.del("flpe",{domain:Q});a.cookies.del("encGuid",{domain:Q});a.cookies.del("dcgue",{domain:Q});a.cookies.del("dg_sai",{domain:Q});a.cookies.del("glbState",{domain:Q});a.cookies.del("cntoken",{domain:Q});a.cookies.del("cnfl",{domain:Q});if(IS_B2B){var J="/"+SITE_CD+"/";a.cookies.del("emailId",{domain:Q});a.cookies.del("emailAddr",{domain:Q});a.cookies.del("phone",{domain:Q});a.cookies.del("userAccount",{domain:Q});a.cookies.del("dotcomReturnURL",{domain:Q});a.cookies.del("isSMBRegisteredUserYN",
{path:J,domain:Q})}h();a.cookies.del("prof_id",{path:"/",domain:Q});a.cookies.del("prof_lname",{path:"/",domain:Q});a.cookies.del("prof_bpno",{path:"/",domain:Q});a.cookies.del("prof_bpno_s",{path:"/",domain:Q});a.cookies.del("rew_enr",{path:"/",domain:Q});a.cookies.del("prof_fname",{path:"/",domain:Q});a.cookies.del("tppid",{path:"/",domain:Q});a.cookies.del("tmktid",{path:"/",domain:Q});a.cookies.del("tmktname",{path:"/",domain:Q});a.cookies.del("tlgimg",{path:"/",domain:Q});a.cookies.del("taccessrtype",
{path:"/",domain:Q});a.cookies.del("remoteId",{path:"/",domain:Q});a.cookies.del("tsgmt",{path:"/",domain:Q});a.cookies.del("epp_verified",{path:"/",domain:Q});a.cookies.del("store_id",{path:"/",domain:Q});login_user_info={};if(IS_EPP){J=document.cookie.split(";");J=$jscomp.makeIterator(J);for(var H=J.next();!H.done;H=J.next()){H=H.value;var U=H.indexOf("\x3d");H=unescape(H.slice(0,U)).trim();(-1<H.indexOf("useAuthorizedApi.")||-1<H.indexOf("groupName."))&&a.cookies.del(H,{domain:Q})}}}function c(){a.cookies.del("xsdcxyn");
a.cookies.del("xsdcxyn",{path:"/",domain:Q});a.cookies.del("xsdcbxyn");a.cookies.del("xsdcbxyn",{path:"/",domain:Q});a.cookies.del("iPlanetDirectoryPro");a.cookies.del("iPlanetDirectoryPro",{path:"/",domain:Q});a.cookies.del("iPlanetDirectoryProOptVal");a.cookies.del("iPlanetDirectoryProOptVal",{path:"/",domain:Q})}function k(){window.localStorage.removeItem("dcgue");window.localStorage.removeItem("flpe");window.localStorage.removeItem("encGuid");window.localStorage.removeItem("guidSet");window.localStorage.removeItem("TierName");
window.localStorage.removeItem("TierCode")}function l(J){var H={education:"/us/shop/offer-program/education/","first responder":"/us/shop/offer-program/first-responders/",government:"/us/shop/offer-program/government/",workplace:"/us/shop/offer-program/workplace/",military:"/us/shop/offer-program/military/"},U=a.cookies.get("tlgimg"),X=a.cookies.get("tmktname"),ma=a.cookies.get("tmktid"),ra=a.cookies.get("tsgmt"),qb=a.cookies.get("xsdcxyn"),ta;if(J){if(ta=J.store_info)ta.image_logo_url&&(U=ta.image_logo_url),
ta.store_disp_name&&(X=ta.store_disp_name),ta.store_id&&(ma=ta.store_id),ta.store_segment&&(ra=ta.store_segment);"sa_login"===J.login_type?(ta=!0,window.isSaLogin=!0):(ta=!1,window.isSaLogin=!1)}J=ra&&H[ra.toLowerCase()]||"/us/shop/offer-program/";window.EcommFlutterClient&&(window.EcommFlutterClient.onmessage=function(Ja){Ja=JSON.parse(Ja.data);var Db=Ja.data.status;"isSignedInStatus"===Ja.name&&(window.isShopSignedIn=Db)},window.EcommFlutterClient.postMessage(JSON.stringify({name:"isSignedIn",params:{callbackEvent:"isSignedInStatus"}})));
H=a(".epp-bar-wrap");H.show();H.addClass("gnb-edited");ra=H.find(".epp-bar-msg");ra.empty();var Fa=H.find(".benfit-wrap");Fa.empty();var Ab=H.find(".epp-bar-logo");Ab.empty();U&&Ab.append("\x3cimg src\x3d"+U+" /\x3e");X?(qb?ta||window.isShopSignedIn?ra.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+X+" Store!\x3c/div\x3e Please enjoy our special offers for you."):ra.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+X+' Store!\x3c/div\x3e Please \x3ca href\x3d"#" class\x3d"epp-login"\x3elogin\x3c/a\x3e to access your special pricing.'):
("4145500"===ma&&"17593200"===a.cookies.get("tppid")?(a(".epp-bar-logo img").remove(),a(".epp-bar-logo").append('\x3cimg src\x3d"'+U+'"/\x3e'),a(".epp-bar-msg").html("Welcome to Samsung's Friends and Family Store! Enjoy special pricing. Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'font-size:12px;font-weight: bold'\x3elogin/signup\x3c/a\x3e to make a purchase.")):"900297"==ma||"4789760653"==ma?(a(".epp-bar-logo img").remove(),a(".epp-bar-logo").append('\x3cimg src\x3d"'+U+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+
X+" Store!\x3c/div\x3e")):(a(".epp-bar-logo img").remove(),a(".epp-bar-logo").append('\x3cimg src\x3d"'+U+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username" style\x3d"color:#1428a0;"\x3e'+X+" Store!\x3c/div\x3e Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'color:#1428a0;font-weight: bold'\x3elogin\x3c/a\x3e to enjoy our special pricing."),a("#openLogin").click(function(Ja){Ja.preventDefault();a(".gnb-login").trigger("click")})),a(".epp-bar-wrap").slideDown()),
"900297"!=ma&&"4789760653"!=ma&&Fa.append('\x3ca class\x3d"benfit-wrap__offers" href\x3d"'+J+'"\x3eSPECIAL OFFERS\x3c/a\x3e'),ta||"900297"==ma||"4789760653"==ma||Fa.append('\x3cspan class\x3d"benfit-wrap__gap"\x3e\x3c/span\x3e\x3ca class\x3d"benfit-wrap__exit"\x3eEXIT STORE\x3c/a\x3e'),H.find(".epp-login").click(function(Ja){Ja.preventDefault();a(".nv00-gnb-v4__utility-menu.loginBtn").trigger("click")}),Fa.find(".benfit-wrap__exit").click(function(){window.AEMapp.eppStore.exitStore();a(document).trigger("exit__store");
a(".epp-bar-wrap").hide();a(".epp-bar-wrap").find(".epp-bar-msg").empty();a(".epp-bar-wrap").find(".epp-bar-logo").empty();a(".epp-bar-wrap").find(".benfit-wrap").empty()})):H.hide();window.location.href.includes("us/business")&&H.hide()}function e(){f();c();k();clearInterval(Fb);Ha=null;(USE_ESTORE||Da)&&g(!1);return!1}function b(J,H,U,X){var ma=a.trim(J+" "+H);"jp"===siteCode&&(ma=a.trim(H+" "+J));"cn"===SITE_CD&&(ma=H);J=ma;null!=Bb&&void 0!=Bb.emailAddr&&null!=Bb.emailAddr&&(J+=". "+Bb.emailAddr,
Bb.emailAddr&&(Bb.emailAddr.includes("@")?window.userEmailDomain=Bb.emailAddr.split("@")[1]:window.userEmailDomain=Bb.emailAddr));a(".nv00-gnb-v4__utility-menu.nv00-gnb-v4__utility-menu--user-profile.nv00-gnb-v4--pc-only.js-user-name").attr("aria-label",J);Za.find(".image__main");J=Za.find(".user-name");H=a(".js-gnb-afterlogin-image");var ra=a(".js-gnb-afterlogin-no-image");if(""!=Ub&&null!=Ub&&U){Tc("LazyLoad_Home",Ub);var qb=Ub;H.find(".image__main").attr("src",qb);H.show();ra.remove()}else H.remove();
X&&(ec="https://account.samsung.com/membership/contents/profile/profile-gate",Za.attr("href",ec));J.html(ma);window.sg.common.lazyLoad.setLazyLoadManually(H[0]);!window.localStorage.getItem("guidSet")&&U?(window.digitalData.user.sa=Oa,window.localStorage.setItem("guidSet","true"),a.ajax({url:"/aemapi/v6/mysamsung/pdrewards/tierinfo",type:"GET",data:{siteCode:SITE_CD,ncp:Math.random()},dataType:"json"}).done(function(ta){if(ta&&ta.resultData&&ta.resultData.apiResult&&ta.resultData.apiResult.d){var Fa=
ta.resultData.apiResult.d.TierCode;window.localStorage.setItem("TierName",ta.resultData.apiResult.d.TierName);window.localStorage.setItem("TierCode",Fa)}})):window.digitalData.user.sa=""}function g(J){null==nb||null==u?b("","",!1):"vn"===SITE_CD?b("",u,!1):b(nb,"",!1)}function p(J,H){var U=new Date;U.setDate(U.getDate()+H);document.cookie="_common_saveEmail\x3d"+encodeURIComponent(J)+"; path\x3d/; domain\x3d.samsung.com; expires\x3d"+U.toGMTString()+";"}function r(){var J=document.cookie+";",H=J.indexOf("_common_saveEmail",
0),U="";-1!=H&&(J=J.substring(H,J.length),H=J.indexOf("\x3d",0)+1,U=J.indexOf(";",H),U=decodeURIComponent(J.substring(H,U)));""!==U&&(xc.next().css({visibility:"hidden"}),xc.val(U),$b.attr("checked","checked"),$b.prop("checked",!0),$b.next().addClass($b.next().attr("data-acc-onclass")))}function t(){"N"===a.cookies.get("directCallFlv2")&&("undefined"!=typeof dataLayer&&"object"==typeof dataLayer&&dataLayer.push({event:"login",eventNonInteraction:!0}),a.cookies.set("directCallFlv2","Y",{expires:null,
domain:Q}))}function w(J){J?(ss.Auth.getUserProfile(function(H){null!=H&&""!==H?"vn"===SITE_CD?b("",H.lastName,!0):b(H.firstName,H.lastName,!0):b("","",!0)}),IS_EPP||IS_B2B||!ud||a(".nv00-gnb-v4__utility-user-menu-rewards-link"),za.addClass("hide")):za.removeClass("hide")}function z(){a.ajax({url:"https://account.samsung.com/api/v1/users",type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(J){console.log("reload sa cookie -"+
new Date)},error:function(J,H,U){}})}function D(){function J(X){U<H.length?(estore.addWishListItemForce({productCode:H[U]},J),U++):(a.cookies.deleteWishList(),a.EstoreIfQueue&&a.EstoreIfQueue.setIsSignReady(!0))}var H=a.cookies.getWishList(),U=0;0<H.length?J():a.EstoreIfQueue&&a.EstoreIfQueue.setIsSignReady(!0)}function E(){void 0!=window.sg.components.Nv00GnbV4&&(window.sg.components.Nv00GnbV4.closeLayerPopup("#"+Sb.attr("id")),window.sg.components.Nv00GnbV4.closeLayerPopup("#"+Hc.attr("id")))}function y(J){if(J){var H=
LOGIN.msg.errorTitleText,U="";switch(J){case "DW":case "AW":case "WP":U=LOGIN.msg.errorText1;break;case "BA":U=LOGIN.msg.errorText2;break;case "UK":U=LOGIN.msg.errorText3;break;case "ES":U=LOGIN.msg.errorText4}Pb=Cc;-1=="pop-tit".indexOf(a("#confirmPopup \x3ediv\x3e div.popup_wrap").find("h2").attr("class"))&&(Cc.append('\x3ch2 class\x3d"pop-tit"\x3e'),Cc.append('\x3cp class\x3d"msg-text tc"\x3e'));a(".pop-tit",Cc).text(H);a(".msg-text",Cc).text(U)}E();if(ha){a("#privacy-terms").parent().find(".checkbox-v2__label-text").empty();
a("#privacy-terms2").parent().find(".checkbox-v2__label-text").remove();a("#privacy-terms2").parent().find(".layer-popup__checkbox-desc").remove();if(0<rb.length){var X=rb[0].data.content;if(null!=rb[1]){var ma=rb[1].data.content;ma=ma.replace("checkbox-v2__label-text","checkbox-radio__label-text checkbox-v2__label-text")}}a("#privacy-terms").parent().find(".checkbox-v2__label-text").append(X);null!=ma&&a("#privacy-terms2").parent().append(ma)}Pb&&0<Pb.length&&void 0!=window.sg.components.Nv00GnbV4&&
window.sg.components.Nv00GnbV4.openLayerPopup("#"+Pb.attr("id"))}function V(J){var H="",U=a.cookies.get("jwt_"+ka,{domain:Q});ha&&(H=STORE_DOMAIN+"/v4/identity/preferences");a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store","x-ecom-jwt":U},url:H,type:"PUT",dataType:"json",data:J,xhrFields:{withCredentials:!0},beforeSend:function(X){"Y"===Jb&&X.setRequestHeader("x-ecom-locale",Gb)},success:function(X){E();
Pb="Y"===N||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Hc;y()},error:function(X,ma,ra){console.error(ma)}})}function ca(){var J="";IS_B2B?J=ba+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa:"au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||
"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"eg"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"pk"===SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD?J=STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa:L?(J=ba+"/"+STORE_SITE_CODE+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa,"tr"===SITE_CD&&(J=STORE_DOMAIN+"/tokocommercewebservices/v2/tr/users/current/agreeStorePolicy?receiveEmail\x3d"+
qa+"\x26etkOptin\x3d"+ua+"\x26dataTransferConsent\x3d"+ob)):J="es"===SITE_CD||"it"===SITE_CD?-1<STORE_DOMAIN.indexOf("https://")?STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/setAgreeStorePolicy?receiveEmail\x3d"+qa:"levant"===SITE_CD?STORE_DOMAIN+"/jo/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa:"levant_ar"===SITE_CD?STORE_DOMAIN+"/jo_ar/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa:"n_africa"===SITE_CD?STORE_DOMAIN+"/ma/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+
qa:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/setAgreeStorePolicy?receiveEmail\x3d"+qa;Rb?a.ajax({url:J,type:"GET",data:{ssoID:Oa},dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,beforeSend:function(){},success:function(H){E();"0000"===H.resultCode&&(Pb="Y"===N||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Hc,y())},error:function(H,U,X){console.error(U)}}):a.ajax({url:J,
type:"GET",dataType:"jsonp",data:{ssoID:Oa},jsonp:"callback",beforeSend:function(){},success:function(H){E();"0000"===H.resultCode&&(Pb="Y"===N||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Hc,y())},error:function(H,U,X){console.error(U)}})}function xa(){var J=!0,H=a.cookies.get("new_sa_login",{domain:".samsung.com"});H&&"us"===SITE_CD&&(J=!1);if(Z)J=a.cookies.get("sa_state",{domain:Q}),H=a.cookies.get("temp_sa_state",{domain:Q}),
!J&&!H||nb&&u?shopAppUtilInstance.isPlatformReady()?window.flutter_inappwebview.callHandler("login",window.location.href):window.addEventListener("flutterInAppWebViewPlatformReady",function(){window.flutter_inappwebview.callHandler("login",window.location.href)}):Ra();else if("cn"===SITE_CD)a("#signInForm").attr("action",ib),a("#client_id",Xa).val(a("#loginAccountServiceId").val()),J=a("#redirect_uri",Xa).val(),H="https://"+window.location.host+J,a("#redirect_uri",Xa).val(H),a("#response_type",Xa).val("code"),
a("#scope",Xa).val("server"),a("#signInState",Xa).val("STATE"),a.cookies.set("glbState","STATE",{domain:Q}),oa=window.location.href,a.cookies.set("returnURL",oa,{domain:Q}),IS_B2B&&a.cookies.set("dotcomReturnURL",oa,{domain:Q}),Xa.submit(),oa=void 0;else if(J){oa=window.location.href;J=a("#redirect_uri",Xa).val();H="https://"+window.location.host+J;J="GLB"+Math.random().toString(36).substr(2,7);a.cookies.set("glbState",J,{domain:Q});var U=a("#loginAccountServiceId").val(),X=a("#languageCode").val(),
ma=a("#countryCode").val();"id"==SITE_CD&&(X="in");X=X+"-"+ma;a.cookies.set("returnURL",oa,{domain:Q});IS_B2B&&a.cookies.set("dotcomReturnURL",oa,{domain:Q});oa=void 0;(ma=$b.is(":checked"))?p(a.trim(xc.val()),7):p(null,-1);J={clientId:U,redirectUri:encodeURIComponent(H),responseType:"code",scope:"",state:J};window.samsung.account.signIn(J,{locale:X})}else if(!IS_B2B||null!=ib&&""!=ib&&IS_B2B){a("#signInForm").attr("action",ib);oa=window.location.href;J=a("#redirect_uri",Xa).val();H="";H=window.location.port;
H=null==H||""===H||"80"===H||"8080"===H?"https://"+window.location.host:"http://"+window.location.host;0>J.indexOf(window.location.hostname)&&(H+=J,a("#redirect_uri",Xa).val(H));J="GLB"+Math.random().toString(36).substr(2,11);a.cookies.set("glbState",J,{domain:Q});a("#response_type",Xa).val("code");a("#countryCode",Xa).val(a("#countryCode",Xa).val());a("#redirect_uri",Xa).val(a("#redirect_uri",Xa).val());a("#signInState",Xa).val(J);a("#signInGoBackURL",Xa).val(oa);a(".goBackURL").val(oa);a("#scope",
Xa).val("");(H=a.cookies.get("new_sa_login",{domain:".samsung.com"}))&&"us"===SITE_CD&&(J=btoa(window.location.href+"?state\x3d"+J),a("#signInState",Xa).val(J),J=-1<window.location.host.indexOf("p6-pre-qa")||-1<window.location.host.indexOf("p6-qa")?"https://us.ecom-qa.samsung.com/v4/sso/sa/login":"https://www.samsung.com/us/api/v4/sso/sa/login",a("#redirect_uri",Xa).val(J));if(J=a("#loginAccountServiceId").val())U=J,a("#client_id",Xa).val(U);X=a("#languageCode").val();ma=a("#countryCode").val();X&&
ma&&(X=X+"_"+ma,a("#locale",Xa).val(X));a.cookies.set("returnURL",oa,{domain:Q});IS_B2B&&a.cookies.set("dotcomReturnURL",oa,{domain:Q});Xa.submit();(ma=$b.is(":checked"))?p(a.trim(xc.val()),7):p(null,-1);oa=void 0}}function ea(){var J=!0;oa=window.location.href;a.cookies.set("returnURL",oa,{domain:Q});var H=a.cookies.get("new_sa_login",{domain:".samsung.com"});H&&"us"===SITE_CD&&(J=!1);if("cn"===SITE_CD){var U=a.cookies.get("cntoken",{domain:Q});U=decodeURIComponent(U).split("|");a.ajax({headers:{"Cache-Control":"no-cache",
"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Authorization:"Bearer "+U[0]},url:lc,type:"POST",data:JSON.stringify({accessToken:U[0],channel:"hybris"}),dataType:"json",xhrFields:{withCredentials:!0},success:function(X){null!=X&&"200"==X.status?(e(),oa=window.location.href,oa=oa.escapeHtml(),location.href=ba+"/cn/logout?redirectUrl\x3d"+encodeURIComponent(oa)):null!=X&&"500"==X.status&&console.error(X.code+" : "+X.message)}})}else if(J)window.samsung.account.signOut().then(function(){location.href=
"/aemapi/v6/data-login/afterLogout."+SITE_CD+".json?state\x3dstate\x26result\x3dsuccess"}).catch(function(X){console.error(X);console.error("sign-out failure");a("#signOutForm").attr("action",lc);oa=window.location.href;!a("#tempTitle").val()||"page-my-samsung"!==a("#tempTitle").val()&&"page-my-products"!==a("#tempTitle").val()&&"page-my-rewards"!==a("#tempTitle").val()&&"page-my-referrals"!==a("#tempTitle").val()||(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/");a.cookies.set("returnURL",
oa,{domain:Q});if(IS_B2B){a.cookies.set("dotcomReturnURL",oa,{domain:Q});X="/"+SITE_CD+"/";a.cookies.del("useTaxExPriceYN",{path:X,domain:Q});var ma=a.cookies.get("useSMBCookiePaths");a.cookies.del("useSMBCookiePaths",{path:"/",domain:Q});if(null!=ma){X=ma.split(";");for(var ra in X)""!=X[ra]&&null!=X[ra]&&a.cookies.del("isSMBRegisteredUserYN",{path:X[ra],domain:Q})}else a.cookies.del("isSMBRegisteredUserYN",{path:X,domain:Q})}ra=a("#signOutURL",$a).val();X=window.location.port;X=null==X||""===X||
"80"===X||"8080"===X?"https://"+window.location.host:"http://"+window.location.host;0>ra.indexOf(window.location.hostname)&&(ra=X+ra,a("#signOutURL",$a).val(ra));ra="GLB"+Math.random().toString(36).substr(2,11);a.cookies.set("glbState",ra,{domain:Q});a("#signOutState",$a).val(ra);"us"===SITE_CD&&(ra=btoa(window.location.href+"?state\x3d"+ra),a("#signOutState",$a).val(ra),ra=-1<window.location.host.indexOf("p6-pre-qa")?"https://us3.ecom-qa.samsung.com/v2/sso/user/logout":"/us/api/v2/sso/user/logout",
a("#signOutURL",$a).val(ra));(ra=a("#loginAccountServiceId").val())&&a("#client_id",$a).val(ra);k();clearInterval(Fb);Rb&&"us"===siteCode?(ra=ba+"/us/logout?redirectUrl\x3d"+encodeURIComponent(window.location.href),location.href=ra):$a.submit();oa=void 0});else{a("#signOutForm").attr("action",lc);oa=window.location.href;!a("#tempTitle").val()||"page-my-samsung"!==a("#tempTitle").val()&&"page-my-products"!==a("#tempTitle").val()&&"page-my-rewards"!==a("#tempTitle").val()&&"page-my-referrals"!==a("#tempTitle").val()||
(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/");a.cookies.set("returnURL",oa,{domain:Q});if(IS_B2B)if(a.cookies.set("dotcomReturnURL",oa,{domain:Q}),H="/"+SITE_CD+"/",a.cookies.del("useTaxExPriceYN",{path:H,domain:Q}),J=a.cookies.get("useSMBCookiePaths"),a.cookies.del("useSMBCookiePaths",{path:"/",domain:Q}),null!=J)for(U in H=J.split(";"),H)""!=H[U]&&null!=H[U]&&a.cookies.del("isSMBRegisteredUserYN",{path:H[U],domain:Q});else a.cookies.del("isSMBRegisteredUserYN",{path:H,
domain:Q});U=a("#signOutURL",$a).val();H="";H=window.location.port;H=null==H||""===H||"80"===H||"8080"===H?"https://"+window.location.host:"http://"+window.location.host;0>U.indexOf(window.location.hostname)&&(U=H+U,a("#signOutURL",$a).val(U));U="GLB"+Math.random().toString(36).substr(2,11);a.cookies.set("glbState",U,{domain:Q});a("#signOutState",$a).val(U);(H=a.cookies.get("new_sa_login",{domain:".samsung.com"}))&&"us"===SITE_CD&&(U=btoa(window.location.href+"?state\x3d"+U),a("#signOutState",$a).val(U),
U=-1<window.location.host.indexOf("p6-pre-qa")?"https://us3.ecom-qa.samsung.com/v2/sso/user/logout":"/us/api/v2/sso/user/logout",a("#signOutURL",$a).val(U));(U=a("#loginAccountServiceId").val())&&a("#client_id",$a).val(U);k();clearInterval(Fb);$a.submit();oa=void 0}}function va(){function J(H){H?ss.Auth.signOut(oa):a.cookies.get("sa_state",{domain:Q})&&"cn"!=SITE_CD&&"us"!=SITE_CD?Ra():xa()}Jc.click(function(){signIn()});Qb.click(function(){oa="http://"+window.location.host+"/"+SITE_CD+"/";a("#joinReturnURL",
Wb).val(oa);a("#joinGoBackURL",Wb).val(oa);var H=a("#joinRegistURL",Wb).val();var U=window.location.port;U=null==U||""===U||"80"===U||"8080"===U?"https://"+window.location.host:"http://"+window.location.host;0>H.indexOf(window.location.hostname)&&(H=U+H,a("#joinRegistURL",Wb).val(H));H=a("#joinEmailActivationURL",Wb).val();0>H.indexOf(window.location.hostname)&&(H=window.location.protocol+"//"+window.location.host+H,a("#joinEmailActivationURL",Wb).val(H));Wb.submit()});Rc.click(function(){oa=window.location.href;
a("#findReturnURL",jc).val(oa);a("#findGoBackURL",jc).val(oa);jc.submit()});Zc.click(function(){a(this).closest("#loginLayerPopup").is(":visible")&&(a("body").removeClass("gb-login-open"),a("#loginLayerPopup .popAlign").trigger("clickoutside","touchstartoutside"))});Sc.click(function(){"es"===SITE_CD&&ss.Auth.signOut();E();return!1});a(document).on("click",".loginBtn",function(H){H.preventDefault();H=!1;a(this).hasClass("nv00-gnb-v4__utility-btn")?"mobile"===window.sg.components.Nv00GnbV4.getCurrentDevice()&&
(H=!0):H=!0;H&&(ha?ss.Auth.checkSignInUs():ss.Auth.checkSignIn(J))});a(document).on("click",".js-account",function(H){H.preventDefault();fnIsNull(ec)?window.location.href="cn"===SITE_CD?"https://shop.samsung.com.cn/cn/mypage":"https://account.samsung.com/membership/contents/profile/profile-gate":window.location.href=ec});a(document).on("click",".logoutBtn",function(H){H.preventDefault();H=a(this).attr("data-return-url");ha&&!IS_B2B?("dev"===T?(oa=window.location.protocol+"//"+window.location.host+
"/content/samsung/"+SITE_CD+".html",IS_B2B&&(oa=window.location.protocol+"//"+window.location.host+"/content/samsung/"+SITE_CD+"/business.html")):"qa"===T?(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+".html",IS_B2B&&(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business.html")):"live"===T&&(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/",IS_B2B&&(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business/")),ss.Auth.signOutUs()):
(null!=H&&""!==H?oa=H:"dev"===T?(oa=window.location.protocol+"//"+window.location.host+"/content/samsung/"+SITE_CD+".html",IS_B2B&&(oa=window.location.protocol+"//"+window.location.host+"/content/samsung/"+SITE_CD+"/business.html")):"qa"===T?(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+".html",IS_B2B&&(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business.html")):"live"===T&&(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/",IS_B2B&&
(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business/")),ss.Auth.checkSignIn(J));return!1});a(".sign_input").focusin(function(){switch(a(this).attr("id")){case xc.attr("id"):jd.hide();break;case Yc.attr("id"):$c.hide()}});a(".sign-in__form-text").unbind("keydown").bind("keydown",function(H){if("13"===H.keyCode)switch(H.preventDefault(),a(this).attr("id")){case xc.attr("id"):case Yc.attr("id"):signIn()}});$b.focusin(function(H){H.preventDefault();Dc.addClass("fs-boarder")});
$b.focusout(function(H){H.preventDefault();Dc.removeClass()});pd.click(function(){var H=Wc.is(":checked");if("tr"!=siteCode&&!H)return ed.show(),!1;qa=cd.is(":checked");"tr"==siteCode&&(ua=dd.is(":checked"),ob=od.is(":checked"));if(0<rb.length){var U=rb[0].id;if(null!=rb[1])var X=rb[1].id}if(fa)return a.cookies.set("shopPrivacyPolicyAgreeYN","Y",{domain:Q}),Ia();if(ha){var ma=Wc.is(":checked")?!0:!1;H=null!=X?cd.is(":checked")?!0:!1:!1;U='{"consents": {"'+U+'" : {"is_accepted" : '+ma+"}";null!=X&&
(U+=',"'+X+'" : {"is_accepted" : '+H+"}");return V(U+"}}")}return ca()});Wc.change(function(){ed.hide()});fd.click(function(){if("Y"===sa)ha?(a("#accountModifyForm").attr("target",""),a("#accountModifyForm").submit()):window.location.href=Cb;else if(null!=gd&&""!==gd)if("ca"===SITE_CD||"ca_fr"===SITE_CD){var H=a.cookies.get("prof_id",{domain:Q}),U=a.cookies.get("prof_country",{domain:Q});window.location.href="https://support-ca.samsung.com/seca/myaccount/ap/premodify/go?prof_id\x3d"+H+"\x26lang\x3d"+
U+"\x26page\x3dmyaccount"}else window.location.href=STORE_DOMAIN+gd;else window.location.href=IS_B2B?ba+"/ng/my-samsung/updatemyprofile":STORE_DOMAIN+"/"+SITE_CD+"/ng/my-samsung/updatemyprofile"});yc.click(function(){a(this).closest("#layerPreference").is(":visible")&&a(this).closest("#layerPreference").hide()});id.click(function(){a(".icon-down-arrow",rc).toggleClass("icon-up-arrow")})}function na(){return"undefined"!==typeof window?!(!window.EcommAndroidClient&&!window.flutter_inappwebview):!1}
function cb(){function J(){if(ha){if(!window.sg.epp.common.isPreLanding){var X={"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"};if("in"===siteCode){window&&window.EcommAndroidClient&&(X["x-ecom-app-id"]="samsung-mobile-app");if(na()){var ma=-1<(navigator.userAgent&&navigator.userAgent.toLowerCase()).indexOf("android")?"samsung-mobile-app":"samsung-mobile-app-ios";X["x-ecom-app-id"]=ma}X["x-ecom-source"]="AEM.PDP"}a.ajax({headers:X,url:STORE_DOMAIN+"/v4/shopping-carts/",
type:"POST",data:JSON.stringify({}),dataType:"json",xhrFields:{withCredentials:!0},beforeSend:function(ra){null!=U&&""!=U&&ra.setRequestHeader("x-ecom-jwt",U)},success:function(){var ra=a.cookies.get("s_ecom_sc_cnt",{domain:Q});null!=ra&&""!==ra&&(0===ra?pb.hide():pb.show(),pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e"+ra))}})}}else ss.Auth.getGlobalCartCount()}null==window.sg.epp&&(window.sg.epp={},window.sg.epp.common={});var H=window.sg.epp.common.isLogged;
!H&&"in"===siteCode&&window.sg.epp.common.isEndlessAisleSite&&window.sg.epp.common.isGuestLogged&&(H=!0);var U=a.cookies.get("jwt_"+ka,{domain:Q});a(".js-epp-partner-bar-exit").on("click",function(){window.sg.epp.common.signOut(!0)});H?(!window.sg.epp.common.isExternalSSO&&nb&&u?b(nb,u,!0,!1):b(window.sg.epp.common.tempUserName,"",!0,!1),J(),za.addClass("hide"),a(document).on("click",".logoutBtn",function(X){X.preventDefault();window.sg.epp.common.signOut()})):(za.removeClass("hide"),J(),a(document).on("click",
".loginBtn",function(X){X.preventDefault();window.sg.epp.common.signIn()}))}function db(J){var H=!0;a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store","x-ecom-jwt":J},url:STORE_DOMAIN+"/v4/identity/preferences",type:"GET",dataType:"json",cache:!0,xhrFields:{withCredentials:!0},beforeSend:function(U){"Y"===Jb&&U.setRequestHeader("x-ecom-locale",Gb)},success:function(U){if(null!=U&&""!==U){if("pl"===SITE_CD)H=
!0;else if(null!=U.consents&&""!==U.consents){rb=Array(U.consents.length);for(var X=0;X<U.consents.length;X++){var ma=U.consents[X];rb[X]=ma;!0===ma.data.is_required&&!0!==ma.is_accepted&&(H=!1)}}!1===H&&(E(),Pb="Y"===N||"de"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Sb,y())}},error:function(U,X,ma){console.error(X)}})}function wa(J){var H=a.cookies.get("jwt_"+ka,{domain:Q}),U=function(){f();c();kc.val("N")},X=
function(Ja){var Db={jwt:Ja};if("us"===siteCode){var mb=a.cookies.get("epp_verified",{domain:Q}),Ma=a.cookies.get("tmktid",{domain:Q}),vb=a.cookies.get("store_id",{domain:Q});null!=mb&&(mb=mb.toString(),"true"==mb&&null!=Ma&&""!=Ma?Db.store_id=Ma.toString():null!=vb&&""!=vb&&(Db.store_id=vb.toString()))}a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(Db),
xhrFields:{withCredentials:!0},beforeSend:function(Mb){"Y"===Jb&&Mb.setRequestHeader("x-ecom-locale",Gb)},success:function(Mb){if(200===Mb.statusCode||"200"===Mb.statusCode){var pc=a.cookies.get("jwt_"+ka,{domain:Q});kc.val("Y");var hc=function(){if(a.cookies.get("xsdcxyn")){if(a.cookies.get("tppid")&&a.cookies.get("tmktname")){var Ta=a.cookies.get("tlgimg");Ta&&(Ta=a('\x3cimg src\x3d"'+Ta+'"\x3e'),a(".epp-bar-logo").append(Ta));Ta=a.cookies.get("tmktname")+" Store";a(".epp-bar-username").text(Ta);
"16568500"===a.cookies.get("tppid")&&a(".gnb__utility-link.sea").removeClass("hidden");a(".epp-bar-wrap").show()}}else if(a.cookies.get("tppid")){var Ic=a.cookies.get("xsdcxyn");Ta=a.cookies.get("tlgimg");var wc=a.cookies.get("tmktname");Ic?(Ic=a.cookies.get("prof_fname")?a.cookies.get("prof_fname"):a.cookies.get("tmktname"),a(".epp-bar-logo img").remove(),Ta&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ta+'"/\x3e'),"null"!=Ic?a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+
wc+" Store.\x3c/div\x3e Please enjoy our special offers for you"):a(".epp-bar-msg").html('Welcome \x3cdiv class\x3d"epp-bar-username"\x3e'+wc+'!\x3c/div\x3e Please \x3cdiv class\x3d"epp-bar-username"\x3e\x3ca href\x3d"#" id\x3d"openLogin"\x3elogin\x3c/a\x3e\x3c/div\x3e to enjoy our special offers for you')):"4145500"===a.cookies.get("tmktid")&&"17593200"===a.cookies.get("tppid")?(a(".epp-bar-logo img").remove(),Ta&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ta+'"/\x3e'),a(".epp-bar-msg").html("Welcome to Samsung's Friends and Family Store! Enjoy special pricing. Please \x3cdiv class\x3d'epp-bar-username'\x3e\x3ca href\x3d'#' id\x3d'openLogin' style\x3d'font-size:12px;'\x3elogin/signup\x3c/a\x3e\x3c/div\x3e to make a purchase.")):
"900297"==a.cookies.get("tmktid")||"4789760653"==a.cookies.get("tmktid")?(a(".epp-bar-logo img").remove(),Ta&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ta+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+wc+" Store!\x3c/div\x3e")):(a(".epp-bar-logo img").remove(),Ta&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ta+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username" style\x3d"color:#1428a0;"\x3e'+wc+" Store!\x3c/div\x3e Please \x3cdiv class\x3d'epp-bar-username' style\x3d'color:#1428a0;'\x3e\x3ca href\x3d'#' id\x3d'openLogin' style\x3d'color:#1428a0;'\x3elogin\x3c/a\x3e\x3c/div\x3e to enjoy our special pricing."));
a(".epp-bar-wrap").slideDown()}else a(".epp-bar-wrap").hide();window.location.href.includes("us/business")&&a(".epp-bar-wrap").hide()};-1<window.location.href.indexOf("/us/")&&hc();-1<window.location.hostname.indexOf("stgwebus")||-1<window.location.hostname.indexOf("p6-pre-qa")||window.location.hostname.indexOf("p6-pre-qa");"us"!==siteCode||a.cookies.get("rewards_tier",{domain:Q})||a.ajax({url:"https://www.samsung.com/us/api/ecom/v4/rewards/reward-points",method:"GET",xhrFields:{withCredentials:!0},
crossDomain:!0,headers:{"x-ecom-jwt":a.cookies.get("jwt_USA",{domain:Q})}});hc={"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-jwt":pc};if("in"===siteCode){window&&window.EcommAndroidClient&&(hc["x-ecom-app-id"]="samsung-mobile-app");if(na()){var Xc=-1<(navigator.userAgent&&navigator.userAgent.toLowerCase()).indexOf("android")?"samsung-mobile-app":"samsung-mobile-app-ios";hc["x-ecom-app-id"]=Xc}hc["x-ecom-source"]="AEM.PDP"}a.ajax({headers:hc,
url:STORE_DOMAIN+"/v4/shopping-carts/",type:"POST",dataType:"json",data:JSON.stringify({}),xhrFields:{withCredentials:!0},beforeSend:function(Ta){"Y"===Jb&&Ta.setRequestHeader("x-ecom-locale",Gb)},success:function(){var Ta=a.cookies.get("s_ecom_sc_cnt",{domain:Q});null!=Ta&&""!==Ta&&(0===Ta?pb.hide():pb.show(),pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e"+Ta))}});null!=Mb.user_info.firstname&&""!==Mb.user_info.firstname?(za.addClass("hide"),b(Mb.user_info.firstname,
Mb.user_info.lastname,!0)):a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",dataType:"json",data:JSON.stringify({jwt:pc}),xhrFields:{withCredentials:!0},beforeSend:function(Ta){"Y"===Jb&&Ta.setRequestHeader("x-ecom-locale",Gb)},success:function(Ta){null!=Ta&&""!==Ta&&(null!=Ta.user_info.firstname&&""!==Ta.user_info.firstname?(za.addClass("hide"),b(Ta.user_info.firstname,Ta.user_info.lastname,
!0)):(za.addClass("hide"),b("User","",!0)),login_user_info.user_info=Ta.user_info,login_user_info.login_type=Ta.login_type,login_user_info.user_identity=Ta.user_identity)}});db(Ja)}else a.cookies.del("jwt_"+ka,{domain:Q}),a(".epp-bar-wrap").hide(),U()},error:function(Mb,pc,hc){console.error(pc);a.cookies.del("jwt_"+ka,{domain:Q});U()}})},ma=function(){a.ajax({url:"/aemapi/v6/data-login/callSALogin."+siteCode+".json",type:"GET",dataType:"json",success:function(Ja){var Db=a.cookies.get("jwt_"+ka,{domain:Q});
t();200===Ja.statusCode&&"Y"===Ja.redCookieChk?Db?X(Db):U():"N"===Ja.redCookieChk&&J?(f(),c(),xa()):U()},error:function(Ja,Db,mb){console.error(Db);U()}})},ra=a.cookies.get("sa_state",{domain:Q});a.cookies.get("temp_sa_state",{domain:Q});ra&&(z(),Fb=setInterval(z,9E5));if(H){ra={jwt:H};var qb=!1;if("us"===siteCode){var ta=a.cookies.get("epp_verified",{domain:Q}),Fa=a.cookies.get("tmktid",{domain:Q}),Ab=a.cookies.get("store_id",{domain:Q});null!=ta&&(ta=ta.toString(),"true"==ta&&null!=Fa&&""!=Fa?ra.store_id=
Fa.toString():null!=Ab&&""!=Ab&&(ra.store_id=Ab.toString()));a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",async:!1,dataType:"json",data:JSON.stringify({jwt:H}),xhrFields:{withCredentials:!0},success:function(Ja){Ja&&"us"===siteCode&&l(Ja);null==Ja||""===Ja||null==Ja.login_type||"guest_epp_store"!==Ja.login_type&&"referral_url"!==Ja.login_type?a.cookies.set("isUSGuestUser","N"):(qb=
!0,a.cookies.set("isUSGuestUser","Y"),a.cookies.del("snsSessionId"),a.cookies.del("snsSessionId",{path:"/",domain:Q}),a.cookies.del("isStoreLogedIn"),a.cookies.del("sa_em"),a.cookies.del("sa_em",{path:"/",domain:Q}),a.cookies.del("eVar67"),a.cookies.del("eVar67",{path:"/",domain:Q}),a.cookies.del("lastName",{domain:Q}),a.cookies.del("firstName",{domain:Q}),a.cookies.del("guid",{domain:Q}),a.cookies.del("ReD",{domain:Q}),a.cookies.del("ReDCheck",{domain:Q}),a.cookies.del("directCallFl",{expires:null,
domain:Q}),a.cookies.del("directCallFlv2",{expires:null,domain:Q}),a.cookies.del("returnURL",{domain:Q}),a.cookies.del("mVal10",{domain:Q}),a.cookies.del("mVal11",{domain:Q}),a.cookies.del("flpe",{domain:Q}),a.cookies.del("encGuid",{domain:domainName}),a.cookies.del("dcgue",{domain:Q}),a.cookies.del("dg_sai",{domain:Q}),a.cookies.del("glbState",{domain:domainName}),h(),c(),kc.val("N"))}})}qb||a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},
url:STORE_DOMAIN+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(ra),xhrFields:{withCredentials:!0},beforeSend:function(Ja){"Y"===Jb&&Ja.setRequestHeader("x-ecom-locale",Gb)},success:function(Ja){if(200===Ja.statusCode||"200"===Ja.statusCode){var Db=a.cookies.get("jwt_"+ka,{domain:Q});kc.val("Y");t();null!=Ja.user_info.firstname&&""!==Ja.user_info.firstname?(za.addClass("hide"),Db=a.cookies.get("guid",{domain:Q}),fnIsNull(Db)?b(Ja.user_info.firstname,Ja.user_info.lastname,
!0,!0):b(Ja.user_info.firstname,Ja.user_info.lastname,!0)):a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",dataType:"json",data:JSON.stringify({jwt:Db}),xhrFields:{withCredentials:!0},beforeSend:function(mb){"Y"===Jb&&mb.setRequestHeader("x-ecom-locale",Gb)},success:function(mb){null!=mb&&""!==mb&&(null!=mb.user_info.firstname&&""!==mb.user_info.firstname?(za.addClass("hide"),b(mb.user_info.firstname,
mb.user_info.lastname,!0,!0)):(za.addClass("hide"),b("User","",!0,!0)),login_user_info.user_info=mb.user_info,login_user_info.login_type=mb.login_type,login_user_info.user_identity=mb.user_identity)}});db(H);-1<window.location.hostname.indexOf("stgwebus")||-1<window.location.hostname.indexOf("p6-pre-qa")||window.location.hostname.indexOf("p6-pre-qa");"us"!==siteCode||a.cookies.get("rewards_tier",{domain:Q})||a.ajax({url:"https://www.samsung.com/us/api/ecom/v4/rewards/reward-points",method:"GET",xhrFields:{withCredentials:!0},
crossDomain:!0,headers:{"x-ecom-jwt":a.cookies.get("jwt_USA",{domain:Q})}})}else ma()},error:function(Ja,Db,mb){console.error(Db);console.log(Ja);void 0==Ja.responseJSON||"StoreIdNotPresent"!==Ja.responseJSON.error?ma():kc.val("N")}})}else J?ma():kc.val("N")}function Ra(){a.ajax({url:"/aemapi/v6/data-login/holdLogin."+siteCode+".json",type:"GET",data:{return_url:window.location.href},dataType:"json",success:function(J){200===J.statusCode?location.reload(!0):301===J.statusCode?location.replace(J.returnURL):
e()},error:function(J,H,U){e()}})}function Ia(){var J=!IS_B2B||IS_B2B&&"Y"==a("#useLogin").val()&&null!=ib&&""!=ib?!0:!1,H=a.cookies.get("snsSessionId",{domain:Q}),U=a.cookies.get("xsdcxyn",{domain:Q}),X=a.cookies.get("xsdcbxyn",{domain:Q}),ma=a.cookies.get("cntoken",{domain:Q}),ra=a.cookies.get("sa_state",{domain:Q}),qb=a.cookies.get("temp_sa_state",{domain:Q});ra&&(z(),Fb=setInterval(z,9E5));var ta="Y"===a.cookies.get("estoreLoginRequesting",{domain:Q})?!0:!1;r();t();za.removeClass("hide");if(J){if(!IS_B2B&&
("YG"===U||"us"===SITE_CD&&"YA"===U||"YH"===U)&&nb&&u||IS_B2B&&X&&nb&&u)if(USE_ESTORE&&!Ca&&"cn"!=SITE_CD){J=!1;if(!ta){ta=[Q];for(H=0;H<ta.length;H++)if(-1<document.referrer.indexOf(ta[H])){J=!0;break}Z&&(J=!0);if(J)for(ta="www.samsung.com dev.samsung.com p4.samsung.com stgweb4.samsung.com ptcweb4.samsung.com local.dev.my.eu.samsung.com dev.my.eu.samsung.com stg.my.eu.samsung.com my.eu.samsung.com www.eumysamsung.com stg-account.samsung.com account.samsung.com local.sec.samsung.com dev-aem.samsung.com stg-aem.samsung.com itg-aem.samsung.com aem.samsung.com org-aem.samsung.com qaweb.samsung.com org-qaweb.samsung.com org-ap.samsung.com org-eu.samsung.com org-aem-eu.samsung.com aem-eu.samsung.com org-qashop.samsung.com qashop.samsung.com pre-qa.samsung.com pre-qa2.samsung.com p6-pre-qa.samsung.com p6-pre-qa2.samsung.com p6-pre-qa3.samsung.com ushl.samsung.com".split(" "),
H=document.referrer.replace(/http(s)?:\/\//,""),U="",ma=0;ma<ta.length;ma++)if("es"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"uk"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"it"===SITE_CD||"au"===SITE_CD||"cn"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||
"eg"==SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||L||IS_B2B){if(U="account.samsung.com"===ta[ma]||"stg-account.samsung.com"===ta[ma]?ta[ma]+"/":ta[ma]+"/"+SITE_CD+"/",-1<H.indexOf(U)&&"Y"!==a.cookies.get("isStoreLogedIn")){J=!1;break}}else if(U=ta[ma]+"/"+SITE_CD+"/",-1<U.indexOf(H)&&"Y"!==a.cookies.get("isStoreLogedIn")){J=!1;break}}if(J)"es"===
SITE_CD&&E(),w(!0),a.EstoreIfQueue&&a.EstoreIfQueue.setIsSignReady(!0);else{nextGenLoginResult=function(Ma){if("0000"!==Ma.resultCode)"903"===Ma.resultCode||903===Ma.resultCode?y("BA"):Ma.customerStatus?y(Ma.customerStatus):y("UK"),h();else if(w(!0),"Y"===a.cookies.get("estoreLoginRequesting",{domain:Q})&&(h(),ss.Auth.getGlobalCartCount()),D(),a.cookies.set("isStoreLogedIn","Y"),!Ma.hasAddInfo&&("au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||
"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"uk"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"eg"==SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||L||IS_B2B||("es"===SITE_CD||
"it"===SITE_CD)&&-1<STORE_DOMAIN.indexOf("https://"))||!Ma.hasAddInfo&&"cn"!==SITE_CD)fa?ca():(Pb="Y"===N||"de"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Sb,y())};a.cookies.set("estoreLoginRequesting","Y",{domain:Q});var Fa="";ta="";Fa=STORE_DOMAIN.split("/")[2];if(L||IS_B2B)Fa=ba.split("/")[2];ta="https://"+Fa+"/"+SITE_CD+"/ng/p4v1/sessionCheck";IS_B2B&&(ta=ba+"/ng/p4v1/sessionCheck");"levant"==SITE_CD?ta="https://"+
Fa+"/jo/ng/p4v1/sessionCheck":"levant_ar"==SITE_CD?ta="https://"+Fa+"/jo_ar/ng/p4v1/sessionCheck":"n_africa"==SITE_CD&&(ta="https://"+Fa+"/ma/ng/p4v1/sessionCheck");"tr"===SITE_CD&&(ta=STORE_DOMAIN+"/tokocommercewebservices/v2/tr/users/current/sessionCheck");"us"===SITE_CD&&(ta=STORE_DOMAIN+"/tokocommercewebservices/v2/us/users/current/sessionCheck");if(Rb)try{a.ajax({url:ta,type:"GET",data:{ssoID:Oa},dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,
success:function(Ma){"0000"!==Ma.resultCode?ss.Auth.signOut():nextGenLoginResult(Ma)},error:function(Ma,vb,Mb){Ya=!1}}),Ya||ss.Auth.signOut()}catch(Ma){Ya=!1}else if("es"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"it"===SITE_CD||"au"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"uk"===SITE_CD||"my"===
SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"us"===SITE_CD||"eg"===SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||L||IS_B2B)try{a.ajax({url:ta,type:"GET",dataType:"jsonp",data:{ssoID:Oa},jsonp:"callback",success:function(Ma){var vb="0000"===Ma.resultCode?!0:!1;"latin"===SITE_CD&&(vb=!0,Ma.hasAddInfo=!0);vb?nextGenLoginResult(Ma):ss.Auth.signOut()},error:function(Ma,
vb,Mb){Ya=!1}}),Ya||ss.Auth.signOut()}catch(Ma){Ya=!1}else"cn"===SITE_CD&&(a("body").append("\x3ciframe id\x3d'storeLoginIframe' src\x3d'"+STORE_DOMAIN+"/"+SITE_CD+"/ng/p4v1/login' style\x3d'display:block;width:0px;height:0px;border:none;'\x3e\x3c/iframe\x3e"),a("#storeLoginIframe").load(function(){a("#storeLoginIframe").unbind("load");try{document.getElementById("storeLoginIframe").contentWindow.postMessage("","https://"+Fa);var Ma=0;Fa=STORE_DOMAIN.split("/")[2];a.ajax({url:"https://"+Fa+"/"+SITE_CD+
"/ng/p4v1/getSessionCheck",type:"GET",dataType:"jsonp",jsonp:"callback",success:function(vb){var Mb="0000"===vb.resultCode?!0:!1,pc="N";Ma++;if(Mb)Ma=0,nextGenLoginResult(vb);else{var hc=function(Xc){Ma++;a.ajax({url:"https://"+Fa+"/"+SITE_CD+"/ng/p4v1/getSessionCheck",type:"GET",dataType:"jsonp",jsonp:"callback",success:function(Ta){var Ic="0000"===Ta.resultCode?!0:!1;pc="N";Ic?(Ma=0,nextGenLoginResult(Ta)):(Ma="Y"===pc)?(pc="N",setTimeout(function(wc){Ma=2;return function(){hc(wc)}}(Ta),5E3)):ss.Auth.signOut()},
error:function(Ta,Ic,wc){Ya=!1}})};setTimeout(function(Xc){return function(){hc(Xc)}}(vb),6E3)}},error:function(vb,Mb,pc){Ya=!1}});Ya||ss.Auth.signOut()}catch(vb){Ya=!1,ss.Auth.signOut()}}))}}else if(Da||Ca)w(!0);else{if("cn"==SITE_CD&&Oa&&ma){w(!0);var Ab=decodeURIComponent(ma).split("|");a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://shop-support.samsung.com.cn/api/auth/login/refresh",type:"POST",data:JSON.stringify({clientId:Ab[3],
clientSecret:Ab[4],refreshToken:Ab[1]}),dataType:"json",xhrFields:{withCredentials:!0},success:function(Ma){if(null!=Ma&&"200"==Ma.status){var vb=Ma.data.refresh_token,Mb=Ma.data.expires_in;Ma=encodeURIComponent(Ma.data.access_token)+"|"+encodeURIComponent(vb)+"|"+encodeURIComponent(Mb)+"|"+encodeURIComponent(Ab[3])+"|"+encodeURIComponent(Ab[4]);a.cookies.set("cntoken",Ma,{domain:Q})}else e()}})}}else U&&!IS_B2B||IS_B2B&&X?"cn"==SITE_CD?e():ra&&"cn"!=SITE_CD?Ra():xa():H?(w(!0),USE_ESTORE&&D()):!ra&&
!qb||nb&&u||"cn"==SITE_CD||"us"==SITE_CD||Ra();if(IS_B2B&&X&&null!=Oa&&"true"===a("#shopIntegrationFlag").val()){X=a.cookies.get("isSMBRegisteredUserYN");var Ja=a.cookies.get("goSMBRegisterYN"),Db=a.cookies.get("smbRegisterUrl"),mb=a.cookies.get("useSMBCookiePaths");null==mb&&(mb="");a.cookies.del("goSMBRegisterYN",{path:"/",domain:Q});a.cookies.del("smbRegisterUrl",{path:"/",domain:Q});X&&"Y"!=Ja||a.ajax({url:STORE_DOMAIN+"/tokocommercewebservices/v2/"+STORE_SITE_CODE+"/users/current/getCustomer",
type:"GET",dataType:"json",async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,beforeSend:function(){},success:function(Ma){if(null!=Ma&&null!=Ma.customer){var vb="/"+SITE_CD+"/";1==Ma.customer.isSMBRegisteredUser?(a.cookies.set("isSMBRegisteredUserYN","Y",{path:vb,domain:Q}),mb+=vb+";"):"Y"==Ja?document.location.href=Db:(a.cookies.set("isSMBRegisteredUserYN","N",{path:vb,domain:Q}),mb+=vb+";");a.cookies.set("useSMBCookiePaths",mb,{path:"/",domain:Q})}},error:function(Ma){"401"==Ma.status&&ss.Auth.signOut()}})}"Y"==
a.cookies.get("isSMBRegisteredUserYN")?a("li.js-smb-user-only-menu").show():a("li.js-smb-user-only-menu").remove()}ss.Auth.getGlobalCartCount();X=n(document.location.search);if(null!=X.customerStatus||null!=X.isblock)X.isblock&&"true"===X.isblock?y("BA"):data.customerStatus?y(data.customerStatus):y("UK")}function M(){var J=a.cookies.get("xsdcxyn",{domain:Q}),H=a.cookies.get("xsdcbxyn",{domain:Q});ha&&!IS_B2B?J?J?wa(J):wa():wa():(J&&!IS_B2B||H&&IS_B2B)&&fa?(J=STORE_DOMAIN+"/"+STORE_SITE_CODE,IS_B2B&&
(J=ba),a.ajax({url:J+"/ng/p4v1/getGuidCheckInfo",type:"GET",dataType:"jsonp",data:{ssoID:Oa},jsonp:"callback",beforeSend:function(){},success:function(U){"0000"===U.resultCode?"N"===U.resultValue?(E(),Pb="Y"===N||"de"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Sb,y()):Ia():ss.Auth.signOut()},error:function(U,X,ma){console.error(X)}})):Ia()}var I=navigator.userAgent,N="N";"in"===SITE_CD&&(-1<I.indexOf("MyGalaxy")||
-1<I.indexOf("SamsungShopSDK"))&&(N="Y");Granite.I18n.setLocale(a("#language").val());var T=a("#runmodeInfo").val(),Z="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView(),fa="es"!==SITE_CD||Z?!1:!0,qa=!1,ua=!1,ob=!1,Ha=null,Ya=!0,oa="",ib=a("#loginLinkURL").val(),lc=a("#logoutURL").val(),Tb=!IS_B2B||IS_B2B&&"Y"==a("#useLogin").val()&&null!=ib&&""!=ib?!0:!1,pb=a(".gnb-cart-count"),Za=a(".nv00-gnb-v4__inner").find(".js-user-name"),za=a(".before-login");a("#scene7domain").val();
var Q=".samsung.com";"cn"===SITE_CD&&(Q=".samsung.com.cn");var zc=a.cookies.get("xsdcxyn",{domain:Q}),Vc=a.cookies.get("xsdcbxyn",{domain:Q}),sc=!IS_B2B&&("YG"===zc||"us"===SITE_CD&&"YA"===zc)||IS_B2B&&"YGB"===Vc||IS_EPP&&zc?!0:!1;!sc&&(window.localStorage.getItem("dcgue")||window.localStorage.getItem("flpe")||window.localStorage.getItem("encGuid"))&&k();var Oa=a.cookies.get("guid",{domain:Q}),Na=window.cookies.getCookie("flpe");if(!(a.cookies.get("sa_state",{domain:Q})||Z||"ae"!==SITE_CD&&"ae_ar"!==
SITE_CD&&"levant"!==SITE_CD&&"levant_ar"!==SITE_CD&&"iq_ar"!==SITE_CD&&"iq_ku"!==SITE_CD&&"sa"!==SITE_CD&&"sa_en"!==SITE_CD&&"n_africa"!==SITE_CD&&"eg"!==SITE_CD&&"il"!==SITE_CD&&"pk"!==SITE_CD&&"za"!==SITE_CD&&"ca"!==SITE_CD&&"ca_fr"!==SITE_CD&&"pl"!==SITE_CD&&"ro"!==SITE_CD&&"cz"!==SITE_CD&&"sk"!==SITE_CD&&"hr"!==SITE_CD&&"si"!==SITE_CD&&"hu"!==SITE_CD&&"lv"!==SITE_CD&&"lt"!==SITE_CD&&"ee"!==SITE_CD&&"gr"!==SITE_CD&&"mx"!==SITE_CD&&"cl"!==SITE_CD&&"co"!==SITE_CD&&"pe"!==SITE_CD&&"au"!==SITE_CD&&
"kz_ru"!==SITE_CD&&"kz_kz"!==SITE_CD&&"ua"!==SITE_CD&&"jp"!==SITE_CD&&"de"!==SITE_CD&&"fr"!==SITE_CD&&"be"!==SITE_CD&&"be_fr"!==SITE_CD&&"nl"!==SITE_CD&&"uk"!==SITE_CD&&"it"!==SITE_CD&&"es"!==SITE_CD&&"pt"!==SITE_CD&&"se"!==SITE_CD&&"dk"!==SITE_CD&&"fi"!==SITE_CD&&"no"!==SITE_CD&&"at"!==SITE_CD&&"ch"!==SITE_CD&&"ch_fr"!==SITE_CD&&"id"!==SITE_CD&&"th"!==SITE_CD&&"my"!==SITE_CD&&"ph"!==SITE_CD&&"sg"!==SITE_CD&&"nz"!==SITE_CD&&"vn"!==SITE_CD&&"ru"!==SITE_CD&&"tw"!==SITE_CD&&"hk"!==SITE_CD&&"hk_en"!==
SITE_CD))e();else if(Tb){var fc=window.cookies.getCookie("dcgue"),Hb=a.cookies.get("encGuid",{domain:Q});fc?(fc=decodeURIComponent(fc),window.localStorage.setItem("dcgue",encodeURIComponent(fc)),a.cookies.del("dcgue",{domain:Q}),void 0!=Na&&window.localStorage.setItem("flpe",encodeURIComponent(Na)),void 0!=Hb&&window.localStorage.setItem("encGuid",encodeURIComponent(Hb))):window.localStorage.getItem("dcgue")&&sc&&(fc=decodeURIComponent(window.localStorage.getItem("dcgue")),void 0==Na&&window.localStorage.getItem("flpe")&&
(Na=decodeURIComponent(window.localStorage.getItem("flpe")),document.cookie="flpe\x3d"+Na+";domain\x3d"+Q+";path\x3d/"),void 0==Hb&&window.localStorage.getItem("encGuid")&&(Hb=decodeURIComponent(window.localStorage.getItem("encGuid")),document.cookie="encGuid\x3d"+Hb+";domain\x3d"+Q+";path\x3d/"));if(sc&&fc&&!Oa&&Hb){var Uc=Hb.substring(4,36).toLowerCase(),Kc=CryptoJS.enc.Utf8.parse(Uc),Zb=CryptoJS.AES.decrypt(fc,Kc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7});Oa=CryptoJS.enc.Utf8.stringify(Zb)}var qc=
function(){a.ajax({url:"/aemapi/v6/data-login/getidentity."+siteCode+".json",type:"GET",data:{siteCode:siteCode,return_url:window.location.href,enc:Hb},dataType:"json",async:!1,timeout:1E4,success:function(J){200===J.statusCode&&(Oa=J.identity)}})};sc&&!Oa&&qc();var Bb={};if(Na&&Oa){var Ob=a("#cck").val(),mc=CryptoJS.enc.Utf8.parse(Ob),tc=(CryptoJS.AES.encrypt(""+Oa,mc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+Ob).substring(0,32),ab=CryptoJS.enc.Utf8.parse(tc),Ka=CryptoJS.AES.decrypt(Na,
ab,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),Yb=CryptoJS.enc.Utf8.stringify(Ka);Bb=JSON.parse(decodeURIComponent(Yb))}Z&&a.cookies.get("sa_state",{domain:Q})&&(a.cookies.del("firstName"),a.cookies.del("firstName",{domain:Q}),a.cookies.del("lastName"),a.cookies.del("lastName",{domain:Q}));var nb=Bb.firstName?Bb.firstName:a.cookies.get("firstName",{domain:Q}),u=Bb.lastName?Bb.lastName:a.cookies.get("lastName",{domain:Q}),Ub=Bb.picturePath?Bb.picturePath:a.cookies.get("mVal11",{domain:Q});
null!=Ub&&""!=Ub&&(Ub=decodeURI(Ub.toString()));var zb=a.cookies.get("cnfl",{domain:Q});if("cn"===SITE_CD&&Oa&&zb&&!IS_EPP){var gc=a("#cck").val(),Oc=CryptoJS.enc.Utf8.parse(gc),Pc=(CryptoJS.AES.encrypt(""+Oa,Oc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+gc).substring(0,32),Qc=CryptoJS.enc.Utf8.parse(Pc),Vb=CryptoJS.AES.decrypt(zb,Qc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),eb=CryptoJS.enc.Utf8.stringify(Vb);nb=Granite.I18n.get("Hello");u=decodeURIComponent(eb)}}var Fb=0,Da=
a("#isLoginWithNoStore").val();Da="Y"===Da?!0:!1;var Cb=a("#gnbMyAccountUrl").val(),L="Hybris-new"===a("#shopIntegrationFlag").val()?!0:!1,da="Hybris-intg"===a("#shopIntegrationFlag").val()?!0:!1,aa="Hybris"===a("#shopIntegrationFlag").val()?!0:!1,ha="GPv2"===a("#shopIntegrationFlag").val()?!0:!1,sa=ha||L||"Hybris-intg"===a("#shopIntegrationFlag").val()?"Y":"",ka=a("#countryIsoCode").val(),ba=a("#storeWebDomain").val(),Ca=!1;if("ar"===SITE_CD||"co"===SITE_CD||"py"===SITE_CD||"mx"===SITE_CD||"uy"===
SITE_CD||"br"===SITE_CD)Ca=!0;if(ha){var hb=a.cookies.get("s_ecom_sc_cnt",{domain:Q});null!=hb&&""!==hb&&(pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e"+hb),0===hb?pb.hide():pb.show())}var Jb=a("#multiLanguageYn").val(),Gb=a("#localLang").val();null!=Gb&&(Gb=Gb.toLowerCase());var ic="https://sso-stg.us.samsung.com/sso";"prod"===a("#serverType").val()&&(ic="https://sso-us.samsung.com/sso");var rb=[],ec="",Rb=a("#hybrisApiJson").val(),Pb=null,rc=null,Wb=null,
jc=null,Xa=null,$a=null,Jc=null,Qb=null,Rc=null,id=null,Sc=null,Wc=null,cd=null,dd=null,od=null,ed=null,xc=null,Yc=null,$b=null,Dc=null,jd=null,$c=null,Zc=null,Sb=null,Hc=null,Cc=null,pd=null,fd=null,yc=null,kc=a("#loginValidateYnForGPv2"),ud=!fnIsNull(a("#mySamsungRewardsTierType").val())&&"none"!=a("#mySamsungRewardsTierType").val(),gd=a("#updateProfileURL").val();ss.Auth={};Date.prototype.format=function(J){if(!this.valueOf())return" ";var H=this;return J.replace(/(yyyy|MM|dd|HH|mm|ss)/gi,function(U){switch(U){case "yyyy":return H.getFullYear();
case "MM":return(H.getMonth()+1).zf(2);case "dd":return H.getDate().zf(2);case "HH":return H.getHours().zf(2);case "mm":return H.getMinutes().zf(2);case "ss":return H.getSeconds().zf(2);default:return U}})};String.prototype.string=function(J){for(var H="",U=0;U++<J;)H+=this;return H};String.prototype.zf=function(J){return"0".string(J-this.length)+this};Number.prototype.zf=function(J){return this.toString().zf(J)};String.prototype.escapeHtml=function(){return this.replace(/</g,"\x26lt;").replace(/"/g,
"\x26quot;").replace(/>/g,"\x26gt;").replace(/'/g,"\x26#039;")};var Tc=function(J,H){J="?$"+J;H=H.toLowerCase();return J=-1<H.indexOf(".jpg")?J+"_JPG$":-1<H.indexOf(".jpeg")?J+"_JPG$":-1<H.indexOf(".png")?J+"_PNG$":-1<H.indexOf(".gif")?J+"_GIF$":J+"_PNG$"};ss.Auth.checkSignInUs=function(J){var H=a.cookies.get("xsdcxyn",{domain:Q}),U=a.cookies.get("jwt_"+ka,{domain:Q}),X=function(){a.ajax({url:"/aemapi/v6/data-login/callSALogin."+siteCode+".json",type:"GET",dataType:"json",success:function(Fa){200===
Fa.statusCode?"N"===Fa.redCookieChk?(f(),c(),J&&"function"==typeof J?J():xa()):a.cookies.get("jwt_"+ka,{domain:Q})?location.reload(!0):(f(),c(),J&&"function"==typeof J?J():xa()):(f(),c(),J&&"function"==typeof J?J():xa())},error:function(Fa,Ab,Ja){console.error(Ab);f();c();J&&"function"==typeof J?J():xa()}})};if(U){H={jwt:U};var ma=!1;if("us"===siteCode){var ra=a.cookies.get("epp_verified",{domain:Q}),qb=a.cookies.get("tmktid",{domain:Q}),ta=a.cookies.get("store_id",{domain:Q});null!=ra&&(ra=ra.toString(),
"true"==ra&&null!=qb&&""!=qb?H.store_id=qb.toString():null!=ta&&""!=ta&&(H.store_id=ta.toString()));a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",async:!1,dataType:"json",data:JSON.stringify({jwt:U}),xhrFields:{withCredentials:!0},success:function(Fa){Fa&&"us"===siteCode&&l(Fa);null==Fa||""===Fa||null==Fa.login_type||"guest_epp_store"!==Fa.login_type&&"referral_url"!==Fa.login_type?
a.cookies.set("isUSGuestUser","N"):(ma=!0,a.cookies.set("isUSGuestUser","Y"))}})}ma?J&&"function"==typeof J?J():xa():a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(H),xhrFields:{withCredentials:!0},beforeSend:function(Fa){"Y"===Jb&&Fa.setRequestHeader("x-ecom-locale",Gb)},success:function(Fa){200!==Fa.statusCode&&"200"!==Fa.statusCode?X():null!=
Fa.user_info.firstname&&""!==Fa.user_info.firstname&&(za.addClass("hide"),fnIsNull(Oa)?b(Fa.user_info.firstname,Fa.user_info.lastname,!0,!0):b(Fa.user_info.firstname,Fa.user_info.lastname,!0),-1<window.location.hostname.indexOf("stgwebus")||-1<window.location.hostname.indexOf("p6-pre-qa")||window.location.hostname.indexOf("p6-pre-qa"),"us"!==siteCode||a.cookies.get("rewards_tier",{domain:Q})||a.ajax({url:"https://www.samsung.com/us/api/ecom/v4/rewards/reward-points",method:"GET",xhrFields:{withCredentials:!0},
crossDomain:!0,headers:{"x-ecom-jwt":a.cookies.get("jwt_USA",{domain:Q})}}))},error:function(Fa,Ab,Ja){console.error(Ab);X()}})}else H?X():J&&"function"==typeof J?J():xa()};ss.Auth.checkSignIn=function(J,H,U){var X=!1;if(!IS_B2B||null!=ib&&""!=ib&&IS_B2B){var ma=a.cookies.get("xsdcxyn",{domain:Q}),ra=a.cookies.get("xsdcbxyn",{domain:Q}),qb=a.cookies.get("snsSessionId",{domain:Q});if(!IS_B2B&&ma||IS_B2B&&(ra||qb))if(H){if(USE_ESTORE&&!Ca){H="";H=STORE_DOMAIN.split("/")[2];if(L||IS_B2B)H=ba.split("/")[2];
"au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"uk"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"es"===SITE_CD||"it"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"eg"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"pk"==SITE_CD||
"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||L||IS_B2B?(H="https://"+H+"/"+SITE_CD+"/ng/p4v1/sessionCheck",IS_B2B&&(H=ba+"/ng/p4v1/sessionCheck")):H="levant"===SITE_CD?"https://"+H+"/jo/ng/p4v1/sessionCheck":"levant_ar"===SITE_CD?"https://"+H+"/jo_ar/ng/p4v1/sessionCheck":"n_africa"===SITE_CD?"https://"+H+"/ma/ng/p4v1/sessionCheck":"https://"+H+"/"+SITE_CD+"/ng/p4v1/getSessionCheck";"tr"===SITE_CD&&(H=STORE_DOMAIN+"/tokocommercewebservices/v2/tr/users/current/sessionCheck");"us"===SITE_CD&&(H=
STORE_DOMAIN+"/tokocommercewebservices/v2/us/users/current/sessionCheck");Rb?a.ajax({url:H,type:"GET",data:{ssoID:Oa},dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(ta){J&&"function"==typeof J&&(ta="0000"===ta.resultCode?!0:!1,0==ta&&(e(),U&&xa()),J(ta))},error:function(ta,Fa,Ab){}}):a.ajax({url:H,type:"GET",dataType:"jsonp",data:{ssoID:Oa},jsonp:"callback",success:function(ta){J&&"function"==typeof J&&(ta="0000"===ta.resultCode?
!0:!1,0==ta&&(e(),U&&xa()),J(ta))},error:function(ta,Fa,Ab){}})}}else X=!0,J&&"function"==typeof J&&J(X);else J&&"function"==typeof J&&(J(X),U&&xa()),w(!1)}return X};ss.Auth.callSaSignInGate=function(){xa()};ss.Auth.getUserProfile=function(J){if(Ha)J&&"function"==typeof J&&J(Ha);else{var H=a.cookies.get("xsdcxyn",{domain:Q}),U=a.cookies.get("snsSessionId",{domain:Q}),X=a.cookies.get("xsdcbxyn",{domain:Q});!IS_B2B&&!H&&U||IS_B2B&&!X&&U?Rb?a.ajax({url:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/getSnsUserInfo?snsSessionId\x3d"+
U,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,beforeSend:function(){},success:function(ma){Ha=ma?{firstName:ma.givenName,lastName:ma.familyName}:null;J&&"function"==typeof J&&J(Ha)},error:function(ma,ra,qb){console.error(ra)}}):a.ajax({url:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/getSnsUserInfo?snsSessionId\x3d"+U,type:"GET",dataType:"jsonp",jsonp:"callback",beforeSend:function(){},success:function(ma){Ha=ma?{firstName:ma.givenName,
lastName:ma.familyName}:null;J&&"function"==typeof J&&J(Ha)},error:function(ma,ra,qb){console.error(ra)}}):H&&!IS_B2B?(b(nb,u,!0),Ha={firstName:nb,lastName:u},reservationUserData={firstName:nb,lastName:u}):X&&IS_B2B?(H=a.cookies.get("emailId",{domain:Q}),b(nb,u,!0),Ha={firstName:nb,lastName:u,emailId:H}):(H=function(){console.log("get user profile Success");if(null!=nb||null!=u){Ha={firstName:nb,lastName:u};reservationUserData={firstName:nb,lastName:u};if(IS_B2B){var ma=a.cookies.get("emailId",{domain:Q}),
ra=a.cookies.get("emailAddrText",{domain:Q}),qb=a.cookies.get("phone",{domain:Q}),ta=a.cookies.get("userAccount",{domain:Q});Ha={firstName:nb,lastName:u,emailId:ma};reservationUserData={firstName:nb,lastName:u,emailAddr:ra,phone:qb,userAccount:ta}}if(USE_ESTORE||Da)"vn"===SITE_CD?b("",u,!0):b(nb,u,!0)}else Ha=null,(USE_ESTORE||Da)&&b("","",!0);J&&"function"==typeof J&&J(Ha)},"Y"===a("#useLogin").val()&&(USE_ESTORE?ss.EstoreIfQueue.setQueue(H):H()))}};ss.Auth.signOutUs=function(J){oa=J?J:window.location.href;
oa=oa.escapeHtml();var H=a.cookies.get("jwt_"+ka,{domain:Q});if("us"==siteCode){var U=-1==window.location.hostname.indexOf("www.samsung.com")?"https://us.ecom-stg.samsung.com":"https://www.samsung.com/us/api";J=btoa(window.location.href+"?state\x3d"+Math.random().toString(36).substr(2,11));var X=a("#loginAccountServiceId").val();U+="/v2/sso/user/logout";var ma=-1==window.location.hostname.indexOf("www.samsung.com")?"https://stg-account.samsung.com/accounts/v1/samsung_com_us":"https://account.samsung.com/accounts/v1/samsung_com_us";
window.location.href=ma+"/signOutGate?client_id\x3d"+X+"\x26signOutURL\x3d"+U+"\x26state\x3d"+J}else H?(a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/user/logout",type:"GET",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,async:!1,beforeSend:function(ra){"Y"===Jb&&ra.setRequestHeader("x-ecom-locale",Gb);"us"===siteCode&&ra.setRequestHeader("x-ecom-jwt",H)},success:function(ra){200===ra.statusCode||
"200"===ra.statusCode?"us"===siteCode?a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Request-Headers":"access-control-allow-origin","Access-Control-Allow-Origin":"*"},url:ic+"/apiservices/logout",type:"GET",dataType:"jsonp",async:!1,crossDomain:!0,xhrFields:{withCredentials:!0},success:function(qb){window.location.replace("/"+SITE_CD)},error:function(qb,ta,Fa){console.error(ta);a.cookies.del("jwt_"+ka,{domain:Q});window.location.replace("/"+SITE_CD)}}):
window.location.replace("/"+SITE_CD):a.cookies.del("jwt_"+ka,{domain:Q})},error:function(ra,qb,ta){console.error(qb);a.cookies.del("jwt_"+ka,{domain:Q});window.location.replace("/"+SITE_CD)},complete:function(){ea()}}),za.removeClass("hide"),b("","",!1)):location.href=oa,oa=void 0};ss.Auth.signOut=function(J){oa=J?J:window.location.href;oa=oa.escapeHtml();(USE_ESTORE||Da||Ca||IS_B2B)&&Ya?"au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||
"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"uk"===SITE_CD||Da||Ca||"ca"===SITE_CD||"ca_fr"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||("es"===SITE_CD||"it"===SITE_CD)&&-1<STORE_DOMAIN.indexOf("https://")||"pt"===SITE_CD||"sg"===SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"eg"==SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==
SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||L||IS_B2B?(ea(),g(!1)):(k(),clearInterval(Fb),location.href=STORE_DOMAIN+"/"+SITE_CD+"/ng/logout?goUrl\x3d"+encodeURIComponent(oa)):location.href=oa;oa=void 0;Ha=null};ss.Auth.setCartEl=function(J){J=a(".js-global-cart-btn");var H=a("#pageTrack").val();J.each(function(){a(this).hasClass("js-has-carturl")&&a(this).attr("an-tr","nv00_gnb-"+H+"-gnb cart icon-navigation6")});J.removeClass("js-layer-open");J.removeAttr("data-target-popup");var U=J.data("cart-url");
J.attr("href",U)};ss.Auth.getGlobalCartCount=function(J){function H(X){var ma=!1,ra=0;L||da||aa||IS_B2B?X?(X=parseInt(X),!isNaN(X)&&0<X?(ra=99<X?99:X,ma=!0):ma=!1):ma=!1:X?"0000"===X.resultCode?(ra=99<parseInt(X.cartCount)?99:parseInt(X.cartCount),0<ra&&(ma=!0)):ma=!1:ma=!1;ma?(pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e"+ra),pb.show()):(pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e0"),pb.hide());ss.Auth.setCartEl(ma);
J&&"function"==typeof J&&J(X)}function U(X){if(X)estore.getCartCount(H);else{IS_EPP&&ss.cookies.del("everAddCart",{path:"/"+siteCode,domain:Q});X=ss.cookies.get("everAddCart",{domain:Q});if("br"===SITE_CD||"ar"===SITE_CD||"mx"===SITE_CD||"co"===SITE_CD||"py"===SITE_CD||"uy"===SITE_CD)X="Y";"sec"!==SITE_CD||void 0!==X&&null!==X||(X="N");"Y"===X?estore.getCartCount(H):(pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e0"),pb.hide(),ss.Auth.setCartEl(!1))}}USE_ESTORE&&
"Y"!==a.cookies.get("estoreLoginRequesting",{domain:Q})&&(IS_EPP?window.sg.epp.common.isLogged?U(!0):U(!1):ss.Auth.checkSignIn(U))};ss.Auth.setReturnURL=function(J){};Wb=a("#joinForm");jc=a("#findAccountForm");Xa=a("#signInForm");$a=a("#signOutForm");rc=a("#loginLayerPopup");xc=a("#email");Yc=a("#password");$b=a("#save-mail");Dc=a("label[for\x3d'save-mail']");jd=a("#errorId");$c=a("#errorPw");Jc=a("input[type\x3d'submit'].sign-in__btn-submit");Qb=a(".sign-in__btn-submit__black");Rc=a(".sign-in__form-forgot-password a");
id=a("#signToggleArrow");Zc=a("#loginLayerPopup .login-close-btn");Sc=a(".login-leave-btn");Sb=a("#layerPrivacy");ha&&(Sb=a("#layerPrivacyGPV2"));Hc=a("#layerPreference");Cc=a("#confirmPopup");pd=a("#privacyBtn",Sb);Wc=a("#privacy-terms",Sb);cd=a("#privacy-terms2",Sb);dd=a("#privacy-terms3",Sb);od=a("#privacy-terms4",Sb);ed=a("#errorPrivacy",Sb);fd=a("#preferenceCheckBtn",Hc);yc=a("#privacyCloseBtn");IS_EPP?cb():(va(),M())}})(jQuery);new ss.Sign;
(function(){window.AEMapp=window.AEMapp||{};window.AEMapp.eppStore=window.AEMapp.eppStore||{};window.AEMapp.eppStore.isRealEppUser=function(){var l=$.cookies.get("jwt_USA"),e=$.cookies.get("tmktid"),b=$.cookies.get("taccessrtype")||"";return!!l&&!!e&&~b.toLowerCase().indexOf("email")};window.AEMapp.eppStore.isUnverifiedEppUser=function(){var l=$.cookies.get("tmktid"),e=$.cookies.get("taccessrtype")||"";return!!$.cookies.get("jwt_USA")&&!!l&&-1==e.toLowerCase().indexOf("email")};window.AEMapp.eppStore.setEppStoreCookie=
function(l){var e=l&&l.store_info,b={path:"/",domain:".samsung.com"};$.cookies.set("jwt_USA",l.jwt,b);$.cookies.set("epp_verified",l.epp_verified,b);$.cookies.set("tmktname",e.store_disp_name,b);$.cookies.set("tmktid",e.store_id,b);$.cookies.set("tlgimg",e.image_logo_url,b);$.cookies.set("tppid",e.legacy_plan_id,b);$.cookies.set("tsgmt",e.store_segment,b)};window.AEMapp.eppStore.clearEppStoreCookie=function(){var l={path:"/",domain:".samsung.com"};$.cookies.del("tmktname",l);$.cookies.del("tmktid",
l);$.cookies.del("tlgimg",l);$.cookies.del("tppid",l);$.cookies.del("tsgmt",l);$.cookies.del("epp_verified",l)};window.AEMapp.eppStore.getEcomURL=function(){var l="https://www.samsung.com/us/api/ecom";~window.location.href.indexOf("stgwwwus")&&(l="https://us.ecom-qa.samsung.com");~window.location.href.indexOf("stgwebus")&&(l="https://us.ecom-stg.samsung.com");return l};window.AEMapp.eppStore.getEppStore=function(){return new Promise(function(l,e){$.ajax({url:"/us/smg/content/samsung/content-library/prepurchase/eppdiscount/epp-discount.json",
method:"GET",success:function(b){l(b)},error:function(b){l({eppDiscounts:[{storeId:"4789741110",label:"Education Discounts"},{storeId:"654345",label:"First Responders Discounts"},{storeId:"4789760945",label:"Government Discounts"},{storeId:"3485000",label:"Workplace Discounts"},{storeId:"4789760940",label:"Military Discounts"}]})}})})};window.AEMapp.eppStore.exitStore=function(){$.cookies.get("jwt_USA")&&$.ajax({url:window.AEMapp.eppStore.getEcomURL()+"/v1/sso/user/private-store/exit-store",method:"GET",
headers:{"x-ecom-jwt":$.cookies.get("jwt_USA")},success:function(l){l&&l.jwt?$.cookies.set("jwt_USA",l.jwt,{path:"/",domain:".samsung.com"}):$.cookies.del("jwt_USA",{path:"/",domain:".samsung.com"})},fail:function(){$.cookies.del("jwt_USA",{path:"/",domain:".samsung.com"})}});window.AEMapp.eppStore.clearEppStoreCookie()};window.AEMapp.eppStore.updateGNBCartSaving=function(){function l(e,b){_.each(e,function(g){b=((100*g.line_item_cost.unit_list_price-100*g.line_item_cost.unit_price)/100*1E5*g.quantity/
1E3+100*b)/100;g.line_items&&0<Object.keys(g.line_items).length&&(b=l(g.line_items,b))});return b}($.cookies.get("remoteId")||$.cookies.get("xsdcxyn"))&&$.cookies.get("tppid")&&1<=$.cookies.get("s_ecom_sc_cnt")?$.ajax({type:"POST",url:window.AEMapp.eppStore.getEcomURL()+"/v4/shopping-carts/fetch-cart",headers:{"x-ecom-jwt":$.cookies.get("jwt_USA"),"x-ecom-app-id":"temp"},contentType:"application/json",data:JSON.stringify({}),xhrFields:{withCredentials:!0,crossDomain:!0}}).then(function(e){(e=l(e.line_items,
0))&&(0<$(".epp-bar-save").length?$(".epp-bar-save").html("You will save \x3cb\x3e$"+e.toFixed(2)+"\x3c/b\x3e on this purchase."):$(".epp-bar-msg").after('\x3cspan class\x3d"epp-bar-save"\x3eYou will save \x3cb\x3e$'+e.toFixed(2)+"\x3c/b\x3e on this purchase.\x3c/span\x3e"))}):$(".epp-bar-save").remove()};window.AEMapp.eppStore.updateEppGNB=function(l,e){var b={education:"/us/shop/discount-program/education/","first responder":"/us/shop/discount-program/first-responders/",government:"/us/shop/discount-program/government/",
employee:"/us/shop/discount-program/workplace/",military:"/us/shop/discount-program/military/"}[($.cookies.get("tsgmt")||"").toLowerCase()]||"/us/shop/discount-program/",g=$(".epp-bar-wrap");g.show();g.addClass("gnb-edited");var p=g.find(".epp-bar-msg");p.empty();var r=g.find(".benfit-wrap");r.empty();var t=g.find(".epp-bar-logo");t.empty();$.cookies.get("tlgimg")&&($(".epp-bar-logo img").remove(),t.append("\x3cimg src\x3d"+$.cookies.get("tlgimg")+" /\x3e"));window.EcommFlutterClient&&(window.EcommFlutterClient.onmessage=
function(w){w=JSON.parse(w.data);var z=w.data.status;"isSignedInStatus"===w.name&&(window.isShopSignedIn=z)},window.EcommFlutterClient.postMessage(JSON.stringify({name:"isSignedIn",params:{callbackEvent:"isSignedInStatus"}})));$.cookies.get("remoteId")||$.cookies.get("xsdcxyn")||window.isShopSignedIn?p.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+l+" Store!\x3c/div\x3e Please enjoy our special offers for you."):"900297"==$.cookies.get("tmktid")||"4789760653"==$.cookies.get("tmktid")?
p.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+l+" Store!\x3c/div\x3e"):p.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+l+' Store!\x3c/div\x3e Please \x3ca href\x3d"#" class\x3d"epp-login"\x3elogin\x3c/a\x3e to access your special pricing.');"900297"!=$.cookies.get("tmktid")&&"4789760653"!=$.cookies.get("tmktid")&&r.append('\x3ca class\x3d"benfit-wrap__offers" href\x3d"'+b+'"\x3eSPECIAL OFFERS\x3c/a\x3e\x3cspan class\x3d"benfit-wrap__gap"\x3e\x3c/span\x3e\x3ca class\x3d"benfit-wrap__exit"\x3eEXIT STORE\x3c/a\x3e');
g.find(".epp-login").click(function(w){w.preventDefault();$(".nv00-gnb-v4__utility-menu.loginBtn").trigger("click")});r.find(".benfit-wrap__exit").click(function(){window.AEMapp.eppStore.exitStore();$(document).trigger("exit__store");$(".epp-bar-wrap").hide();$(".epp-bar-wrap").find(".epp-bar-msg").empty();$(".epp-bar-wrap").find(".epp-bar-logo").empty();$(".epp-bar-wrap").find(".benfit-wrap").empty()});($.cookies.get("remoteId")||$.cookies.get("xsdcxyn"))&&$.cookies.get("tppid")&&1<=$.cookies.get("s_ecom_sc_cnt")&&
window.AEMapp.eppStore.updateGNBCartSaving();l=g.find(".benfit-wrap__exit");l.attr("an-tr","epp discount-"+e+"-text-link");l.attr("an-ca","content click");l.attr("an-ac","feature");l.attr("an-la","epp:bar:exit store");l=g.find(".benfit-wrap__offers");l.attr("an-tr","epp discount-"+e+"-text-link");l.attr("an-ca","content click");l.attr("an-ac","feature");l.attr("an-la","epp:bar:special offer");window.location.href.includes("us/business")&&g.hide()};if("us"===siteCode&&!window.location.href.includes("us/business"))if($.cookies.get("tmktid")||
$.cookies.get("tppid")){var a=$.cookies.get("xsdcxyn")||$.cookies.get("remoteId"),n=$.cookies.get("tlgimg"),h=$.cookies.get("tmktname");if(h)if(window.AEMapp&&window.AEMapp.eppStore&&window.AEMapp.eppStore.isUnverifiedEppUser()&&!window.isSaLogin)window.AEMapp.eppStore.updateEppGNB(h,window.digitalData&&window.digitalData.page&&window.digitalData.page.pageInfo&&window.digitalData.page.pageInfo.pageTrack||"");else{if(a){var f=$.cookies.get("guid",{domain:".samsung.com"});a=$.cookies.get("flpe",{domain:".samsung.com"});
var c={};if(a&&f){c=$("#cck").val();var k=CryptoJS.enc.Utf8.parse(c);f=(CryptoJS.AES.encrypt(f,k,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+c).substring(0,32);f=CryptoJS.enc.Utf8.parse(f);a=CryptoJS.AES.decrypt(a,f,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7});a=CryptoJS.enc.Utf8.stringify(a);c=JSON.parse(decodeURIComponent(a))}a=(a=c.firstName)?a:$.cookies.get("tmktname");$(".epp-bar-logo img").remove();n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e');"null"!=a&&(window.isSaLogin||
window.isShopSignedIn)?$(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+h+" Store.\x3c/div\x3e Please enjoy our special offers for you"):$(".epp-bar-msg").html('Welcome \x3cdiv class\x3d"epp-bar-username"\x3e'+h+'!\x3c/div\x3e Please \x3ca href\x3d"#" id\x3d"openLogin" style\x3d"color:#1428a0;font-weight: bold"\x3elogin\x3c/a\x3e to enjoy our special offers for you')}else a&&"4145500"===$.cookies.get("tmktid")&&"17593200"===$.cookies.get("tppid")?($(".epp-bar-logo img").remove(),
n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e'),$(".epp-bar-msg").html("Welcome to Samsung's Friends and Family Store! Enjoy special pricing. Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'font-size:12px;font-weight: bold'\x3elogin/signup\x3c/a\x3e to make a purchase.")):"900297"==$.cookies.get("tmktid")||"4789760653"==$.cookies.get("tmktid")?($(".epp-bar-logo img").remove(),n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e'),$(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+
h+" Store!\x3c/div\x3e")):($(".epp-bar-logo img").remove(),n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e'),$(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username" style\x3d"color:#1428a0;"\x3e'+h+" Store!\x3c/div\x3e Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'color:#1428a0;font-weight: bold'\x3elogin\x3c/a\x3e to enjoy our special pricing."),$("#openLogin").click(function(l){l.preventDefault();$(".gnb-login").trigger("click")}));$(".epp-bar-wrap").slideDown();
window.AEMapp&&window.AEMapp.eppStore&&window.AEMapp.eppStore.updateGNBCartSaving()}else $(".epp-bar-wrap").hide()}else $(".epp-bar-wrap").hide()})();
(function(a,n){function h(c,k){var l={};l.cid=c;l.utm_source=k;n.ajax({type:"GET",data:l,url:"/aemapi/v6/business/common/campaignCookie",success:function(e,b,g){console.log("call success")}})}var f=function(){var c=n("#typeCodeForGNB").val(),k=n("#groupCodeForGNB").val();n(".js-gnb-menu-btn");if(!fnIsNull(c)||!fnIsNull(k)){var l=n(".gnb__depth2-menu").filter("[data-type-code\x3d'"+c+"']");fnIsNull(l)&&(l=n(".gnb__depth2-menu").filter("[data-group-code\x3d'"+k+"']"));fnIsNull(l)||l.each(function(e){0===
e&&(l.closest(".gnb__depth1-menu").addClass("active-first"),l.addClass("active-second"))})}};n(function(){f();var c="Y"===n("#b2bFlag").val()?!0:!1,k=n("#siteCode").val();if(c&&("nl"===k||"be"===k||"be_fr"===k)){var l=new URLSearchParams(location.search);c=l.get("cid");k=l.get("utm_source");var e=l.get("utm_medium");l=l.get("utm_campaign");console.log("cid\x3d["+c+"]");console.log("utm_source\x3d["+k+"]");null!=c&&null!=k&&""!=c&&""!=k&&null!=e&&null!=l&&""!=e&&""!=l&&2<c.length&&2<k.length&&(e=cookies.getCookie("cid"),
l=cookies.getCookie("utm_source"),console.log("cookieCidString\x3d["+e+"]"),console.log("cookieUtmSourceString\x3d["+l+"]"),null!=e&&null!=l&&""!=e&&""!=l?e!=c&&l!=k&&h(c,k):(console.log("cookieCid, cookieUtmSourceString is empty~"),h(c,k)))}});n("div.s-page-error div.s-page-error__wrap a.s-link-text").on("click",function(){if(-1<location.pathname.indexOf("/"+n("#siteCode").val()+"/multistore/")){var c=location.pathname.substring(location.pathname.indexOf("/"+n("#siteCode").val()+"/multistore/"),
location.pathname.length).split("/");4<c.length&&c[4]&&n(this).attr("href","/"+n("#siteCode").val()+"/multistore/"+c[3])}})})(window,$);
(function(){if("us"===siteCode){var a=$("#storeDomain").val(),n=$("#isUSPFpage").val(),h=$("#hybrisApiJson").val(),f=window.location.pathname;!h||f.includes("/us/multistore")||f.includes("/us/business")||f.includes("/us/support")||commonLoginCheck()&&("/us/"===f||"/us/shop/"===f||"/us/offer/"===f||f.includes("/us/shop/offer-program/")||"Y"===n)&&fetch(a+"/tokocommercewebservices/v2/us/users/current/eppEligibility",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:""})}).then(function(c){return c.json()}).then(function(c){!0===
(null==c?void 0:c.eligible)&&(null==c?0:c.multistoreLoginUrl)&&(null==c?0:c.multistoreUrl)&&(null==c||!c.multistoreUrl.includes("/us/business"))&&(window.location.href=c.multistoreLoginUrl)}).catch(function(c){console.error("EPP Eligibility API Error:",c)})}})();function getNextApiDomain(){return STORE_DOMAIN}
function updateTotalCartCount(a){/^[0-9]+$/.test(a)||(a=0);99<a&&(a=99);$(".gnb-cart-count").html('\x3cspan class\x3d"hidden"\x3e'+$("#productCountText").val()+" : \x3c/span\x3e"+a);0<a?($(".gnb-cart-count").show(),ss.Auth.setCartEl(!0)):($(".gnb-cart-count").hide(),ss.Auth.setCartEl(!1))}function hideMiniCart(){navigation.miniCartHide()}
function nextViewPopup(a){a=$("#"+a.split("#")[1]);$(".layer_popup, .layer_popup_ng").hide();a.parent().show();$(".lightbox-skrim").show();var n=document.getElementById(a.attr("id"));setTimeout(function(){n.popAlign()},100);return!1}function hidePopup(){$(".layer_popup, .layer_popup_ng").hide();$(".lightbox-skrim").hide();return!1}
function viewGlovalMessagePopup(a){var n=$("#gloval_message_popup");n.find(".msg-text").text(a);n.find(".button").attr("tabindex","1");n.find(".button").attr("data-focus-id","shop-popover-ok");n.find(".button").attr("data-tab-next","shop-popover-close");n.find(".icon-close-x").attr("data-tab-next","shop-popover-ok");n.attr("data-tab-next","nav-cart-link");n.find(".button").focus();nextViewPopup("#"+n.attr("id"));n.find(".button").focus();n.find(".pop-btn\x3e.button").click(function(){hidePopup();
$(".cartbutton.item").focus();return!1})}function getProtocal(){return document.location.href.split("://")[0]}
(function(){var a=window.sg.common.$q,n=window.sg.common.utils,h=function(c){this.selector={gnbMenu:".gnb__depth1-menu.has-depth-menu .gnb__depth1-link, .gnb__depth2-menu.has-depth-menu .gnb__depth2-link"};this.el={window:a(window),component:a(c)};this.handler={resize:this.resize.bind(this)};h.instances.set(c,this);this.setElements();this.init()};h.prototype.setElements=function(){this.el.gnbMenu=this.el.component.find(this.selector.gnbMenu);this.breakpoint=1279;this.mobileFlag=this.desktopFlag=!1};
h.prototype.init=function(){this.bindEvents();this.resize()};h.prototype.reInit=function(){this.setElements();this.bindEvents();this.resize()};h.prototype.removeTagging=function(){this.el.gnbMenu.removeAttr("an-tr");this.el.gnbMenu.removeAttr("an-la");this.el.gnbMenu.removeAttr("an-ca");this.el.gnbMenu.removeAttr("an-ac")};h.prototype.setTagging=function(){this.el.gnbMenu.target.forEach(function(c){var k=a(c);c=void 0!==c.dataset.engname?c.dataset.engname:"";var l=k.hasClass("gnb__depth1-link")?"nv00_gnb--click-depth1":
"nv00_gnb--click-depth2";k.attr("an-tr",l);k.attr("an-la",c);k.attr("an-ca","navigation");k.attr("an-ac","gnb")})};h.prototype.resize=function(){this.breakpoint<n.getViewPort().width?!1===this.desktopFlag&&(this.desktopFlag=!0,this.mobileFlag=!1,this.removeTagging()):!1===this.mobileFlag&&(this.mobileFlag=!0,this.desktopFlag=!1,this.setTagging())};h.prototype.bindEvents=function(){this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};h.instances=new WeakMap;var f=function(){a(".gnb").target.forEach(function(c){h.instances.has(c)||
new h(c)})};a.ready(f);window.sg.components.gnbTagging={init:f,reInit:function(){a(".gnb").target.forEach(function(c){h.instances.has(c)?h.instances.get(c).reInit():new h(c)})}}})();
(function(){function a(){n(k.section).target.forEach(function(e){l.instance.has(e)||new l(e)})}var n=window.sg.common.$q,h=window.sg.common.lazyLoad,f=window.sg.common.utils.setMobileFocusLoop,c=window.sg.common.utils.removeMobileFocusLoop,k={section:".srd19-gnb-search"},l=function(e){this.selector={focusLoopingStart:".srd19-gnb-search__looping--start",focusLoopingEnd:".srd19-gnb-search__looping--end",searchInput:".srd19-gnb-search__input",searchInputWrap:".srd19-gnb-search__input-wrap",btnSearch:".nv00-gnb-v3__utility-btn",
btnClose:".srd19-gnb-search__close",dim:".srd19-gnb-search__dimmed"};this.class={searchShowClass:"srd19-gnb-search--show",searchCloseClass:"srd19-gnb-search--close",searchShowBodyClass:"srd19-gnb-search--layer-open",searchInputOverflowClass:"srd19-gnb-search__input--overflow",searchInputMax:"srd19-gnb-search__input--max"};this.el={window:n(window),body:n("body"),section:n(e)};this.returnFocusEl=!1;this.handler={handleInputText:this.handleInputText.bind(this),handleResize:this.handleResize.bind(this),
close:this.close.bind(this)};this.init();l.instance.set(e,this)};l.prototype.init=function(){this.setElements();this.bindEvents()};l.prototype.reInit=function(){this.init();this.loadImages()};l.prototype.setElements=function(){this.el.searchInput=this.el.section.find(this.selector.searchInput);this.el.searchInputWrap=this.el.section.find(this.selector.searchInputWrap);this.el.btnClose=this.el.section.find(this.selector.btnClose);this.el.focusLoopingStart=this.el.section.find(this.selector.focusLoopingStart);
this.el.focusLoopingEnd=this.el.section.find(this.selector.focusLoopingEnd);this.el.dim=this.el.section.find(this.selector.dim)};l.prototype.bindEvents=function(){this.el.searchInput.off("input",this.handler.handleInputText).on("input",this.handler.handleInputText);this.el.btnClose.off("click",this.handler.close).on("click",this.handler.close);this.el.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize)};l.prototype.show=function(e){var b=this;this.returnFocusEl=e;
this.el.body.addClass(this.class.searchShowBodyClass);this.el.section.css({display:"block"});f(this.el.section.target[0]);this.el.section.setLayerFocus(this.selector.focusLoopingStart,this.selector.focusLoopingEnd);this.el.section.find(".layer-popup__looping--first,.layer-popup__looping--end").attr("aria-hidden",!0);if(n(".nv00-gnb-v3").target.length&&"mobile"===window.sg.components.nv00GnbV3.getCurrentDevice()){e=n(".nv00-gnb-v3__inner-wrap");var g=n(".nv00-gnb-v3__close-btn");e.hasClass("show")&&
g.trigger("click")}else n(".nv00-gnb-v4").target.length&&"mobile"===window.sg.components.Nv00GnbV4.getCurrentDevice()&&(e=n(".nv00-gnb-v4"),g=n(".nv00-gnb-v4__close-btn"),e.hasClass("nv00-gnb-v4--show")&&g.trigger("click"));this.el.section.addClass(this.class.searchShowClass);this.loadImages();this.el.dim.off("click").on("click",function(){b.close()});setTimeout(function(){b.el.searchInput.focus()},500)};l.prototype.close=function(){function e(){b.el.body.removeClass(b.class.searchShowBodyClass);
b.el.section.off("transitionend",e);setTimeout(function(){b.el.section.css({display:"none"});b.el.section.removeClass(b.class.searchCloseClass);b.returnFocusEl&&b.returnFocusEl.focus()},500)}var b=this;this.el.section.on("transitionend",e);this.el.section.addClass(this.class.searchCloseClass);this.el.section.removeClass(this.class.searchShowClass);this.el.dim.off("click");c();this.el.section.offLayerFocus()};l.prototype.loadImages=function(){this.el.section.find(".image").target.forEach(function(e){h.setLazyLoadManually(e)})};
l.prototype.handleResize=function(){this.handleInputText()};l.prototype.handleInputText=function(){var e=this.el.searchInput.target[0];150<=e.value.length?this.el.searchInputWrap.addClass(this.class.searchInputMax):this.el.searchInputWrap.removeClass(this.class.searchInputMax);e.scrollLeft?this.el.searchInputWrap.addClass(this.class.searchInputOverflowClass):this.el.searchInputWrap.removeClass(this.class.searchInputOverflowClass)};l.instance=new WeakMap;window.sg.components.GnbSearchV25={init:a,reInit:function(){n(k.section).target.forEach(function(e){l.instance.has(e)?
l.instance.get(e).reInit():new l(e)})},show:function(e){e=void 0===e?!1:e;n(k.section).target.forEach(function(b){l.instance.has(b)&&l.instance.get(b).show(e)})}};n.ready(a)})();
(function(a){function n(){Da.gnbSearchRecent.addClass("srd19-gnb-search__list-wrap--hide");Da.gnbSearchSuggested.addClass("srd19-gnb-search__list-wrap--hide");Da.gnbSearchAISuggested.addClass("srd19-gnb-search__list-wrap--hide");Da.gnbSearchNoSuggestions.addClass("srd19-gnb-search__list-wrap--hide");Da.gnbSearchPopular.addClass("srd19-gnb-search__list-wrap--hide")}function h(){n();g();Da.gnbSearchRecent.removeClass("srd19-gnb-search__list-wrap--hide")}function f(){n();0<tc.length&&(g(),Da.gnbSearchPopular.removeClass("srd19-gnb-search__list-wrap--hide"));
zb&&Ob&&Da.gnbSearchAISuggested.removeClass("srd19-gnb-search__list-wrap--hide")}function c(){f();Da.gnbSearchNoSuggestions.removeClass("srd19-gnb-search__list-wrap--hide")}function k(){"us"===za?(Da.gnbSearchRelatedThumb.addClass("srd19-gnb-search__list-wrap--hide"),window.RECOMMENDATIONS_DATA&&Da.gnbSearchRecommendedThumb.removeClass("srd19-gnb-search__list-wrap--hide"),Ub&&Da.gnbSearchRecommendedThumb.removeClass("srd19-gnb-search__list-wrap--hide")):(Da.gnbSearchRelatedThumb.addClass("srd19-gnb-search__list-wrap--hide"),
Da.gnbSearchRecommendedThumb.removeClass("srd19-gnb-search__list-wrap--hide"))}function l(){Da.gnbSearchRecommendedThumb.addClass("srd19-gnb-search__list-wrap--hide");Da.gnbSearchRelatedThumb.removeClass("srd19-gnb-search__list-wrap--hide")}function e(){Da.gnbSearchRecommendedThumb.addClass("srd19-gnb-search__list-wrap--hide")}function b(){Da.gnbSearchRelatedThumb.addClass("srd19-gnb-search__list-wrap--hide")}function g(){if(0<mc.length){var L="";a.each(mc,function(da,aa){L+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e';
L+='   \x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Oa+encodeURIComponent("us"===za?I(aa):N(aa))+ib("recentsearch")+'" an-tr\x3d"srd19_gnb search-'+Vb+'-search history-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"search history:'+(da+1+"_"+T(aa))+'"\x3e';L+='       \x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e\x3cstrong\x3e'+aa+"\x3c/strong\x3e\x3c/span\x3e";L+="   \x3c/a\x3e";L+="\x3c/li\x3e"});Da.gnbSearchRecent.find("ul").html(L)}}function p(L){var da,aa,ha,sa,
ka,ba,Ca,hb,Jb,Gb,ic,rb,ec,Rb,Pb,rc,Wb,jc;return $jscomp.asyncExecutePromiseGeneratorProgram(function(Xa){switch(Xa.nextAddress){case 1:return da=za+":"+Math.floor((new Date).getTime()/1E3)+":"+Math.floor(1E5+9E5*Math.random()),ka=sa=ha=aa="",Xa.setCatchFinallyBlocks(2),Xa.yield(alloy("getIdentity").then(function($a){return $a.identity.ECID}),4);case 4:ka=Xa.yieldResult;Xa.leaveTryBlock(3);break;case 2:Xa.enterCatchBlock(),ka="";case 3:ba=".samsung.com","cn"===za&&(ba=".samsung.com.cn"),commonLoginCheck()&&
(aa=a.cookies.get("guid",{domain:ba}),(Ca=a.cookies.get("dcgue",{domain:ba}))?(Ca=decodeURIComponent(Ca),window.localStorage.setItem("dcgue",encodeURIComponent(Ca)),a.cookies.del("dcgue",{domain:ba})):window.localStorage.getItem("dcgue")&&(Ca=window.localStorage.getItem("dcgue"),Ca=decodeURIComponent(Ca)),hb=a.cookies.get("encGuid",{domain:ba}),Ca&&hb&&(Jb=hb.substring(4,36).toLowerCase(),Gb=CryptoJS.enc.Utf8.parse(Jb),ic=CryptoJS.AES.decrypt(Ca,Gb,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),
aa=CryptoJS.enc.Utf8.stringify(ic)),rb=function(){a.ajax({url:"/aemapi/v6/data-login/getidentity."+za+".json",type:"GET",data:{siteCode:za,return_url:window.location.href,enc:hb},dataType:"json",async:!1,timeout:1E4,success:function($a){200===$a.statusCode&&(aa=$a.identity)}})},aa||rb(),ha=a.cookies.get("sa_id",{domain:ba}),sa=a.cookies.get("s_ecid",{domain:ba})),ec=a.cookies.get("cmapi_cookie_privacy",{domain:ba}),Rb=cookies.getCookie("recent_list"),Pb=[],a.each(cookies.getCookies(),function($a,
Jc){-1!=$a.indexOf("AMCV_")&&Pb.push(Jc.toString())}),rc=window.location.href,Wb={requestId:da,country:za,num:Fb.recommend},jc={pageType:"search",guid:aa,ecid:ka,saId:ha,visitorId:sa,visitorIdList:Pb,consent:ec,recentList:Rb,targetModel:"",rewardPoint:"",url:rc},checkEppSite()&&(Wb.siteType="epp",jc.eppStoreName=window.sg.epp.common.companyCode),a.ajax({headers:Wb,url:"https://api-recommender.bigdata.samsung.com/prodrec/recommendation",type:"POST",data:JSON.stringify(jc),contentType:"application/json; charset\x3dutf-8",
dataType:"json",xhrFields:{withCredentials:!0},cache:!0,timeout:2E4}).done(function($a){$a.code&&200===$a.code&&$a.recommendations&&0<$a.recommendations.length&&r($a.recommendations,$a.requestId)}).fail(function($a){console.log("error::"+$a)}),Xa.jumpToEnd()}})}function r(L,da){var aa="";L.forEach(function(ha,sa){var ka=ha.product.modelList.find(function(ba){return"Y"===ba.selected});sa<Fb.recommend&&(checkEppSite()&&(ka.pdpUrl=ka.pdpUrl.replace("feature.","buy.")),ka.promotionPriceDisplay&&(ka.priceDisplay=
ka.promotionPriceDisplay),aa+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n                  \x3ca href\x3d"'+ka.pdpUrl+'" class\x3d"srd19-gnb-search__thumb-link" role\x3d"menuitem" an-tr\x3d"srd19_gnb search-'+Vb+'-recommended product click-search4" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"recommended:'+ha.recType+":card"+(sa+1)+"_"+Cb(ka.displayName)+':product click"\n                  data-modelcode\x3d"'+ka.modelCode+'" data-modelname\x3d"'+ka.modelName+'" data-modeldisplay\x3d"'+
qa(ka.displayName)+'" data-modelprice\x3d"'+ka.price+'" data-modelrevenue\x3d"'+ka.promotionPrice+'"\n                  data-pvitype\x3d"'+ka.pviTypeName+'" data-pvisubtype\x3d"'+ka.pviSubtypeName+'" data-requested\x3d"'+da+'"\x3e\n                    \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n                      \x3cdiv class\x3d"image"\x3e\n                        \x3cimg class\x3d"image__main '+("us"===za?"us-image":"")+' lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+
(ka.thumbUrl+'?$200_200_PNG$" data-mobile-src\x3d"')+(ka.thumbUrl+'?$140_140_PNG$" alt\x3d"" role\x3d"img" data-comp-name\x3d"image"\x3e\n                      \x3c/div\x3e\n                    \x3c/div\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e')+fa(ka.displayName,20)+'\x3c/p\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e'+ka.priceDisplay+"\x3c/p\x3e\n                  \x3c/a\x3e\n                \x3c/li\x3e")});Da.gnbSearchRecommendedThumb.find("ul").html(aa);
window.sg.components.GnbSearchV25.reInit();0==L.length?e():k()}function t(L){if(null===L||void 0===L||"null"===L||"undefined"===L||""===L)return!1;L=parseFloat(String(L).trim());return!isNaN(L)&&0!==L}function w(L){if(Array.isArray(L)&&L.length){var da=[];L.forEach(function(aa){var ha=t((null==aa?void 0:aa.value)||null),sa=t((null==aa?void 0:aa.promoPrice)||null),ka="N"!==(null==aa?void 0:aa.stockFlag);(ha||sa)&&ka&&(aa.customDisplayValue=sa?aa.promoPrice:aa.value,da.push(aa))});ab=da;z(da)}}function z(L){var da=
"";L.forEach(function(aa,ha){if(ha<Fb.recommend){var sa;da+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n                  \x3ca an-ca\x3d"search" an-ac\x3d"search layer" an-la\x3d"pzn\x3erecommended\x3e'+(ha+1)+"\x3e"+(null==(sa=aa.name)?void 0:sa.replaceAll('"',""))+'" an-tr\x3d"select_search_recommended_card_click"  href\x3d"'+aa.pageUrl+'" class\x3d"srd19-gnb-search__thumb-link gnb-tagging-trigger" role\x3d"menuitem"\x3e\n                    \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n                      \x3cdiv class\x3d"image"\x3e\n                        \x3cimg class\x3d"image__main us-image lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+
aa.thumbnailUrl+'" data-mobile-src\x3d"'+aa.thumbnailUrl+'" alt\x3d"'+aa.name+'" role\x3d"img" data-comp-name\x3d"image"\x3e\n                      \x3c/div\x3e\n                    \x3c/div\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e'+aa.name+'\x3c/p\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e$ '+aa.customDisplayValue+"\x3c/p\x3e\n                  \x3c/a\x3e\n                \x3c/li\x3e"}});Da.gnbSearchRecommendedThumb.find("ul").html(da);
window.sg.components.GnbSearchV25.reInit();0==L.length&&e()}function D(L){Yb=!0;a.ajax({type:"GET",data:{siteCd:za,stage:eb.stage,searchValue:""},dataType:"json",jsonCallback:"samsungcallback",url:ob(eb.domain)+eb.uri,error:function(){},success:function(da){(da=da.response.resultData)&&da.common&&da.common.suggestedKeywords&&ca({resultSet:da.common.suggestedKeywords})},complete:function(){Ya("");window.sg.components.GnbSearchV25.show(L)}})}function E(L){Yb=!0;var da=window.location.pathname.split(za)[1]||
"";-1<da.indexOf("/content/samsung")&&(da=da.split(".html")[0]);a.ajax({type:"POST",crossDomain:!0,headers:eb.headers,data:{clientCode:"b2c",clientName:"scom",countryCode:za,storeID:Zb,baseURL:da},dataType:"json",url:eb.domain+"/us/popularSearch",success:function(aa){if("OK"==aa.statusCode){aa=aa.popularSearchResults;0<aa.resultCount&&(tc=aa.resultSet,xa(aa.resultSet),f());aa=aa.resultCount;var ha=da,sa=window.navigator.userAgent.match(/(Windows\sNT|iOS|iPhone\sOS|Android)\s([\d_]+)/);aa="si\x3d"+
Ha()+"\x26qt\x3d"+ha.replace(/ /ig,"_")+"\x26cn\x3dscom\x26ch\x3d"+Zb+"\x26cc\x3d"+za+"\x26lc\x3d"+a("#languageCode").val()+"\x26sc\x3d"+aa+"\x26ff\x3d"+(sa,sa?sa[1].split(" ")[0].toLowerCase():"")+"\x26ui\x3d"+Ha()+"\x26ti\x3d"+Ha()+"\x26qi\x3d"+Ha();window.ssMetrics=aa;a.ajax({headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"POST",data:{metricsParam:aa},url:"cn"==za?eb.domain+"/metrics/popularSearch":eb.domain+"/"+za+"/metrics/popularSearch"})}},complete:function(){Ya("");window.sg.components.GnbSearchV25.show(L)}})}
function y(){var L=window.location.pathname;"cn"!==za&&(L=L.split(za)[1]);if(-1<L.indexOf(".html"))L=L.split(".html")[0];else{var da=L.lastIndexOf("/");L.length-1==da&&(L=L.substr(0,da))}return L}function V(L){Yb=!0;var da=y();a.ajax({type:"POST",crossDomain:!0,headers:eb.headers,data:{clientCode:"b2c",countryCode:za,storeID:Zb,baseURL:da},dataType:"json",url:eb.domain+"/popularSearch",success:function(aa){"OK"==aa.statusCode&&(aa=aa.popularSearchResults,0<aa.resultCount&&ca(aa))},complete:function(){Ya("");
window.sg.components.GnbSearchV25.show(L)}})}function ca(L){var da="";a.each(L.resultSet,function(aa,ha){0>tc.indexOf(ha)&&tc.push(ha);aa<Fb.popular&&(da+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e',da+='\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Oa+encodeURIComponent(N(ha))+ib("popularsearch")+'" title\x3d"'+ua(ha)+'" an-tr\x3d"srd19_gnb search-'+Vb+'-popular keywords-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"popular keywords:'+(aa+1)+"_"+Cb(ha)+
'"\x3e',da+='\x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e\x3cstrong\x3e'+ha+"\x3c/strong\x3e\x3c/span\x3e",da+="\x3c/a\x3e",da+="\x3c/li\x3e")});Da.gnbSearchPopular.find("ul").html(da)}function xa(L){var da="";a.each(L,function(aa,ha){aa<Fb.popular&&(da+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e',da+='\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Oa+encodeURIComponent(I(ha))+'" title\x3d"'+ua(ha)+'" an-tr\x3d"gnb search-'+Vb+'-popular keywords-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"popular keywords:'+
(aa+1)+"_"+Cb(ha)+'"\x3e',da+='\x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e\x3cstrong\x3e'+ha+"\x3c/strong\x3e\x3c/span\x3e",da+="\x3c/a\x3e",da+="\x3c/li\x3e")});Da.gnbSearchPopular.find("ul").html(da)}function ea(){clearTimeout(Oc);Oc=setTimeout(function(){eb.data.isTyping="N";var L=N(a.trim(Da.gnbSearchInput.val()));L&&va(L,!0)},500)}function va(L,da,aa){eb.data[eb.keywordKey]=L;!u&&"us"!==za||da||ea();a.ajax({type:eb.type,crossDomain:!0,dataType:"json",data:eb.data,url:eb.domain+eb.uri,
headers:eb.headers,success:function(ha){if(nb||aa){n();var sa,ka=0;if("us"===za){var ba=ha.resultData.suggestedSearches;ha=ha.resultData.relatedProducts;Pc=sa=ba.results.length;Qc=L;na(ba.results,L);ha&&ha.results&&0<ha.results.length?(ka=ha.results.length,Ra(ha.results,L)):b();Ia(sa,L)}else if(u)zb&&Ob&&""===L?(ba=ha.resultData.suggestedAiSearches,sa=ba.results.length,cb(ba.results,L)):(ba=ha.resultData.suggestedSearches,sa=ba.results.length,db(ba.results,L)),ha=ha.resultData.relatedProducts,Ub&&
wa(ha.results,L),Ia(sa,L);else{ba=ha.response.resultData;sa=ba.common.relatedKeywords.length;ha=ba.common.relatedKeywords;ba="";for(var Ca=0;Ca<ha.length;Ca++){var hb=ha[Ca]||"";hb=fa(hb,58);if(Ca<Fb.suggest){var Jb="suggested searches:"+(Ca+1)+"_"+Cb(hb)+":keyword:"+a.trim(L),Gb=Z(hb,L);ba+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Oa+encodeURIComponent(N(ha[Ca]))+'" title\x3d"'+ua(hb)+'" an-tr\x3d"srd19_gnb search-'+
Vb+'-suggested searches-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"'+Jb+'"\x3e'+qa(hb).toLowerCase()+"\x3e"+L+'"\x3e'+Gb+"\x3c/a\x3e\x3c/li\x3e"}}Da.gnbSearchSuggested.find("ul").html(ba)}Ub||(e(),b());0<sa?(zb&&Ob&&""===L||Da.gnbSearchSuggested.removeClass("srd19-gnb-search__list-wrap--hide"),!u&&"us"!==za||aa?k():e(),"us"===za&&0<ka?l():"us"===za&&(b(),window.RECOMMENDATIONS_DATA||e())):(c(),b(),e())}},error:function(){c()},complete:function(){aa&&(Ya(""),window.sg.components.GnbSearchV25.show(aa))}});
if(u||"us"===za)eb.data.isTyping="Y"}function na(L,da){var aa="",ha=Da.gnbSearchInput.val();a.each(L,function(sa,ka){var ba=fa(ka.name,58),Ca=ka.category;if(sa<Fb.suggest){var hb=Z(ba,da),Jb=aa;sa='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Oa+encodeURIComponent(I(ka.name))+'" title\x3d"'+ua(ba)+'" an-tr\x3d"srd19_gnb search-'+Vb+'-suggested searches-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"suggested searches:'+
(sa+1)+"_"+(ba&&ba.replace(/"/g,"\x26quot;"))+":"+Ca+":keyword:"+ha+'"\x3e';if(ka=hb)"us"===za?hb.includes("in")?(Ca=hb.split(" in "),1<Ca.length&&(ka=Ca[0]+' \x3cem class\x3d"srd19-gnb-search__list-category"\x3ein '+Ca[1]+"\x3c/em\x3e")):ka=hb+' \x3cem class\x3d"srd19-gnb-search__list-category"\x3ein '+Ca+"\x3c/em\x3e":(Ca=hb.split(" in "),1<Ca.length&&(ka=Ca[0]+' \x3cem class\x3d"srd19-gnb-search__list-category"\x3ein '+Ca[1]+"\x3c/em\x3e"));aa=Jb+(sa+ka+"\x3c/a\x3e\x3c/li\x3e")}});Da.gnbSearchSuggested.find("ul").html(aa)}
function cb(L,da){var aa="";a.each(L,function(ha,sa){var ka=fa(sa.name,58);ha<Fb.suggestAi&&(Z(ka,da),aa+='\n\t\t\t\t\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\n\t\t\t\t\t\x3ca href\x3d"'+Oa+encodeURIComponent(N(sa))+ib("suggestedsearch")+'" title\x3d"'+ua(sa)+'" class\x3d"srd19-gnb-search__list-link"\n\t\t\t\t\t\tan-tr\x3d"srd19_gnb search-'+Vb+'-ai suggested searches-search"\n\t\t\t\t\t\tan-ca\x3d"search"\n\t\t\t\t\t\tan-ac\x3d"gnb search"\n\t\t\t\t\t\tan-la\x3d"ai suggested searches:'+
sa+':keyword:"\n\t\t\t\t\t\t\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e'+sa+"\x3c/span\x3e\n\t\t\t\t\t\x3c/a\x3e\n\t\t\t\t\u00a0\x3c/li\x3e\n\t\t\t\t")});Da.gnbSearchAISuggested.find("ul").html(aa)}function db(L,da){var aa="";a.each(L,function(ha,sa){var ka=fa(sa.name,58);if(ha<Fb.suggest){var ba=Z(ka,da),Ca="srd19_gnb search-"+Vb+"-suggested searches-search";ha="suggested searches:"+(ha+1)+"_"+Cb(sa.name)+":keyword:"+a.trim(da);zb&&Ob&&(Ca="srd19_gnb search-"+Vb+"-ai suggested searches-search",
ha="ai suggested searches:"+Cb(sa.name)+":keyword:"+a.trim(da));aa+='\n                \x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\n                    \x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+Oa+encodeURIComponent(N(sa.name))+ib("suggestedsearch")+'"\n\t\t\t\t\t\ttitle\x3d"'+ua(ka)+'"\n\t\t\t\t\t\tan-tr\x3d"'+Ca+'" \n\t\t\t\t\t\tan-ca\x3d"search" \n\t\t\t\t\t\tan-ac\x3d"gnb search" \n\t\t\t\t\t\tan-la\x3d"'+ha+'"\x3e\n                        '+ba+" \n                    \x3c/a\x3e\n                \x3c/li\x3e\n\t\t\t\t"}});
zb&&Ob&&Da.gnbSearchSuggested.find("p").text(Granite.I18n.get("AI Suggested Searches"));Da.gnbSearchSuggested.find("ul").html(aa)}function wa(L,da){var aa="";a.each(L,function(ha,sa){if(ha<Fb.recommend){var ka="";sa.images&&(ka=sa.images.laImage);aa+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n                  \x3ca href\x3d"'+sa.pdpURL+'"  class\x3d"srd19-gnb-search__thumb-link" role\x3d"menuitem" data-feedback\x3d"'+sa.feedbackParam+'"\n                  an-tr\x3d"srd19_gnb search-'+Vb+
'-related product click-search4" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"related products:card'+(ha+1)+"_"+Cb(sa.name)+":product click:keyword:"+da+'"\n                  data-modelcode\x3d"'+sa.sku+'"  data-modelname\x3d"'+sa.modelName+'" data-modeldisplay\x3d"'+sa.name+'" data-modelprice\x3d"'+sa.msrp+'" data-modelrevenue\x3d"'+sa.salePrice+'" data-pvisubtype\x3d"'+sa.classification+'"\x3e\n                    \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n                      \x3cdiv class\x3d"image"\x3e\n                        \x3cimg class\x3d"image__main '+
("us"===za?"us-image":"")+' lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+(ka+'?$200_200_PNG$" data-mobile-src\x3d"')+(ka+'?$140_140_PNG$" alt\x3d"alt text" role\x3d"img" data-comp-name\x3d"image"\x3e\n                      \x3c/div\x3e\n                    \x3c/div\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e')+fa(sa.name,20)+'\x3c/p\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e'+currencyComma(sa.salePrice,Na)+"\x3c/p\x3e\n                  \x3c/a\x3e\n                \x3c/li\x3e"}});
Da.gnbSearchRelatedThumb.find("ul").html(aa);window.sg.components.GnbSearchV25.reInit();0==L.length?b():l()}function Ra(L,da){var aa="",ha=Da.gnbSearchInput.val();a.each(L,function(sa,ka){if(sa<Fb.recommend){var ba="";ka.images&&(ba=ka.images.laImage);var Ca,hb=ka.name&&(null==(Ca=ka.name.replace(/"/g,"\x26quot;"))?void 0:Ca.toLowerCase())||"";aa+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n                  \x3ca href\x3d"'+ka.pdpURL+'"  class\x3d"srd19-gnb-search__thumb-link" data-feedback\x3d"'+
(ka.feedbackParam&&ka.feedbackParam.replace(/"/g,"\x26quot;"))+'"\n                  an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"related products:card'+(sa+1)+"_"+hb+":product click:keyword:"+ha+'" an-tr\x3d"srd19_gnb search-'+Vb+"-related product click-search"+(sa+1)+'"\n                  data-modelcode\x3d"'+ka.sku+'"  data-modelname\x3d"'+ka.modelName+'" data-modeldisplay\x3d"'+(ka.name&&ka.name.replace(/"/g,"\x26quot;"))+'" data-modelprice\x3d"'+ka.msrp+'" data-modelrevenue\x3d"'+ka.salePrice+
'" data-pvisubtype\x3d"'+ka.classification+'"\x3e\n                    \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n                      \x3cdiv class\x3d"image"\x3e\n                        \x3cimg class\x3d"image__main us-image lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+ba+'" data-mobile-src\x3d"'+ba+'" alt\x3d"alt text" role\x3d"img" data-comp-name\x3d"image"\x3e\n                      \x3c/div\x3e\n                    \x3c/div\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e'+
ka.name+'\x3c/p\x3e\n                    \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e'+currencyComma(ka.salePrice,Na)+"\x3c/p\x3e\n                  \x3c/a\x3e\n                \x3c/li\x3e"}});Da.gnbSearchRelatedThumb.find("ul").html(aa);window.sg.components.GnbSearchV25.reInit();0==L.length?(b(),window.RECOMMENDATIONS_DATA&&k()):l()}function Ia(L,da){var aa=window.navigator.userAgent.match(/(Windows\sNT|iOS|iPhone\sOS|Android)\s([\d_]+)/);L="si\x3d"+Ha()+"\x26qt\x3d"+da.replace(/ /ig,"_")+
"\x26cn\x3dscom\x26ch\x3d"+Zb+"\x26cc\x3d"+za+"\x26lc\x3d"+a("#languageCode").val()+"\x26sc\x3d"+L+"\x26ff\x3d"+(aa,aa?aa[1].split(" ")[0].toLowerCase():"")+"\x26ui\x3d"+Ha()+"\x26ti\x3d"+Ha()+"\x26qi\x3d"+Ha();window.ssMetrics=L;a.ajax({headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"POST",data:{metricsParam:L},url:"cn"==za?eb.domain+"/metrics/suggestedSearch":eb.domain+"/"+za+"/metrics/suggestedSearch"})}function M(L,da,aa){var ha=window.ssMetrics,sa=ha.match(/(ui=)([^&]+)/)[2],
ka=ha.match(/(qi=)([^&]+)/)[2],ba=ha.match(/(si=)([^&]+)/)[2],Ca=ha.match(/(ti=)([^&]+)/)[2],hb=ha.match(/(ch=)([^&]+)/)[2];ha=ha.match(/(sc=)([^&]+)/)[2];L=a.extend({feedbackParam:"st\x3d"+hb+"\x26ct\x3d"+za+"\x26qt\x3d"+L.replace(/ /ig,"_")+"\x26cn\x3dscom\x26ui\x3d"+sa+"\x26si\x3d"+ba+"\x26ti\x3d"+Ca+"\x26qi\x3d"+ka+"\x26ft\x3dSS\x26tr\x3d"+ha+"\x26dr\x3d"+da,actionType:"click"},{feedbackParam:aa});a.ajax({headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"POST",url:"cn"==za?eb.domain+
"/feedback/click":eb.domain+"/"+za+"/feedback/click",data:L})}function I(L){var da=L;null!=L&&(da=da.split('"').join('"').split("\x3cb\x3e").join("").split("\x3c/b\x3e").join(""),da=da.split(" in ")[0]);return da}function N(L){null!=L&&(L=L.split("\x3c").join("").split("\x3e").join("").split("\x26lt").join("").split("\x26gt").join(""));return L}function T(L){var da=/[\{\}\[\]?,;:|\)*~`!^_<>@#$%&\\=\('"]/gi;"cn"===za&&(da=/[\{\}\[\]?,;:|\)*~`!^_<>@#$%&\\=\("]/gi);da.test(L)&&(L=L.replace(da,""));return L}
function Z(L,da){null!=L&&(L=L.replace(new RegExp("("+da+")","i"),"\x3cstrong\x3e$1\x3c/strong\x3e"));return L}function fa(L,da){if(!L)return"";for(var aa,ha=0,sa=L.length,ka="",ba=0;ba<sa;ba++){aa=L.charAt(ba);4<encodeURI(aa).length?ha+=2:ha++;if(ha>da){ka+="...";break}ka+=aa}return ka}function qa(L){null!=L&&(L=L.split('"').join("\x26quot;").split("\x3cb\x3e").join("").split("\x3c/b\x3e").join(""));return L}function ua(L){qa(L);return Granite.I18n.get("search.comp.queryInput.searchButton")}function ob(L){var da=
L;L.lastIndexOf("/")===L.length-1&&(da=L.substr(0,L.length-1));return da}function Ha(){var L=window.crypto||window.msCrypto;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(da){return(da^L.getRandomValues(new Uint8Array(1))[0]&15>>da/4).toString(16)})}function Ya(L){Da.gnbSearchInputSubmitButton.attr("an-la","search bar:keyword submit:keyword:"+L)}function oa(L){if(Ka===L)return!1;Ka=L;return!0}function ib(L){var da="";zb&&("suggestedsearch"===L&&Ob&&(L="aisuggestedsearch"),
da="\x26querySource\x3d"+L);return da}function lc(){Da.gnbSearchInput.val("");Da.gnbSearchInput.trigger("input");Da.gnbSearchInputWrap.removeClass("srd19-gnb-search__input--overflow");Da.gnbSearchInput.focus()}function Tb(){var L=a(".srd19-gnb-search__input"),da=!1,aa="";L.off("input.resetState").on("input.resetState",function(){""===this.value&&(da=!1,aa="")});L.off("keydown.firstKey").on("keydown.firstKey",function(ha){var sa=this.value;da||""!==aa||0!==sa.length||1!==ha.key.length||(window._satellite&&
"us"===za&&_satellite.track("searchoverlaytyping",{an_tr:"select_search_search layer_start_typing_click",an_ca:"search",an_ac:"search layer",an_la:"start typing"}),da=!0);aa=sa});L.off("blur.resetState").on("blur.resetState",function(){da=!1;aa=""})}function pb(){Granite.I18n.setLocale(a("#language").val());var L="searchvalue",da={"Content-type":"application/x-www-form-urlencoded"};"cn"===za&&(zc="https://sribsrch.ecom.samsung.com/estoresearch-api/v1/scom/cn");if("us"===za){L="searchvalue";var aa,
ha=qc?(null==(aa=sg)?void 0:aa.epp.common.storeId)||Zb:"us";eb={type:"POST",uri:"/us/suggestedSearch",domain:Vc,keywordKey:"query",data:{countryCode:za,clientName:"scom",storeID:ha,isTyping:"Y",clientCode:"b2c",query:""},headers:da};Oa=fc}else u||gc?(eb={type:"POST",uri:"/suggestedSearch",domain:zc,keywordKey:"query",data:{countryCode:za,storeID:Zb,isTyping:"Y",clientCode:"b2c",query:""},headers:da},zb&&Ob&&(eb.data.clientName="scom")):eb={type:"GET",uri:"/search/suggest/v6",domain:ob(Q),keywordKey:"searchValue",
data:{siteCd:za,stage:sc,searchValue:""},headers:{}};Oa=-1<Oa.indexOf(".html")?Oa+("?"+L+"\x3d"):Oa+("/?"+L+"\x3d");qc&&window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&"Y"===a("#scannerYn").val()&&(Da.gnbSearchScanBarcodeButton.removeClass("srd19-gnb-search__scan-barcode--hide"),L=location.pathname.substr(0,location.pathname.indexOf(window.sg.epp.common.companyCode))+window.sg.epp.common.companyCode,L=0<location.pathname.indexOf(".html")?L+".scanner.html":L+".scanner/",a.ajax({url:L,
success:function(sa){a("section.srd19-gnb-search").append(sa)},error:function(sa){console.log(sa)}}))}var Za=a("section.srd19-gnb-search");if(Za){var za=a("#siteCode").val(),Q=a.trim(a("#esapiSearchDomain").val()),zc="https://sribsrch.ecom.samsung.com/estoresearch-api/v1/scom",Vc=-1<window.location.host.indexOf("www")||-1<window.location.host.indexOf("org-p6")?"https://sribsrch.ecom.samsung.com/estoresearch-api/v1/scom":"https://sribsrch.ecom-qa.samsung.com/estoresearch-api/v1/scom";window.location.href.indexOf("www.samsung.com");
window.location.href.indexOf("www.samsung.com");var sc=a.trim(a("#apiStageInfo").val()),Oa=a("#sc_gnb_searchURL").val(),Na=a("#gPriceCurrency").val(),fc=a("#sc_gnb_AI_searchURL").val();a("#sc_gnb_placeholder").val();var Hb=a("#sc_gnb_aiSearchUseYn").val(),Uc=a("#sc_gnb_bdcApiUseYn").val(),Kc=a("#sc_gnb_AiLoginUseYn").val(),Zb=a("#siteCode").val(),qc="Y"===a("#eppFlag").val(),Bb=a("#sc_gnb_eppUseGnbAiSearchYn").val();a("#loginLinkURL").val();var Ob=commonLoginCheck(),mc=a.cookies.getSearchKeyword(),
tc=[],ab=[],Ka="",Yb=!1,nb=!1,u="Y"===Hb,Ub="Y"===Uc,zb="Y"===Kc,gc="Y"===Bb,Oc=null,Pc=0,Qc="",Vb=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),eb={keywordKey:"",url:null,data:{}},Fb={recommend:4,popular:4,suggest:5,suggestAi:4},Da={gnbSearchInput:Za.find(".srd19-gnb-search__input"),gnbSearchInputWrap:Za.find(".srd19-gnb-search__input-wrap"),gnbSearchInputClearButton:Za.find(".srd19-gnb-search__clear"),gnbSearchInputSubmitButton:Za.find(".srd19-gnb-search__btn-search"),gnbSearchResultWrap:Za.find(".srd19-gnb-search__result-wrap"),
gnbSearchRecent:Za.find(".srd19-gnb-search__recent"),gnbSearchPopular:Za.find(".srd19-gnb-search__popular"),gnbSearchSuggested:Za.find(".srd19-gnb-search__suggested"),gnbSearchAISuggested:Za.find(".srd19-gnb-search__ai-search"),gnbSearchRelatedThumb:Za.find(".srd19-gnb-search__related"),gnbSearchRecommendedThumb:Za.find(".srd19-gnb-search__recommended"),gnbSearchNoSuggestions:Za.find(".srd19-gnb-search__no-suggestions"),gnbSearchCloseBtn:Za.find(".srd19-gnb-search__btn--close"),gnbSearchScanBarcodeButton:Za.find(".srd19-gnb-search__scan-barcode"),
gnbSearchSearchSearches:Za.find(".srd19-gnb-search__searches")},Cb=function(L){fnIsNull(L)||(L=L.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26#92;\x26quot;").replace(/'/g,"\x26#039;"));return L};Za.on("focus",".srd19-gnb-search__input",function(){Tb();var L=N(a.trim(a(this).val()));if(oa(L)||""==L)mc=a.cookies.getSearchKeyword(),n(),L&&0<L.length?va(L):0<mc.length?h():f(),window.sg.components.GnbSearchV25.reInit()});Za.on("click",".srd19-gnb-search__clear",
function(){lc()});Za.on("propertychange change keyup paste input",".srd19-gnb-search__input",function(){var L=a(this).val();oa(L)&&(a(this).val(T(L)),L=a.trim(L),mc=a.cookies.getSearchKeyword(),Ya(L),L&&0<L.length?(nb=!0,Da.gnbSearchInputClearButton.addClass("srd19-gnb-search__clear--show"),va(L)):(nb=!1,Da.gnbSearchInputClearButton.removeClass("srd19-gnb-search__clear--show"),0<mc.length?h():f(),k(),Da.gnbSearchSuggested.find("ul").empty()))});Za.on("click",".srd19-gnb-search__suggested a, .srd19-gnb-search__ai-search a",
function(){var L=a(this).text();a.cookies.setSearchKeyword(decodeURIComponent(L));L=[].concat($jscomp.arrayFromIterable(this.parentElement.parentElement.children)).indexOf(this.parentElement);M(Ka,L+1)});Za.on("click",".srd19-gnb-search__popular a",function(){var L=a(this).text();a.cookies.setSearchKeyword(decodeURIComponent(L))});Za.on("click",".srd19-gnb-search__related .srd19-gnb-search__thumb-item a",function(){var L=a(this).attr("data-feedback");M("","",L)});Za.on("click",".srd19-gnb-search__btn-search",
function(L){L.preventDefault();if(L=N(a.trim(Da.gnbSearchInput.val()))){a.cookies.setSearchKeyword(decodeURIComponent(L));if("us"===za){encodeURIComponent(L);Ia(Pc,Qc);var da=fc+"/?searchvalue\x3d"+encodeURIComponent(L);window.location.href=da}else window.location.href=Oa+encodeURIComponent(L)+ib("suggestedsearch");window.gmap=null;"undefined"!==typeof window&&window._satellite&&"us"===za&&_satellite.track("searchoverlaytyping",{an_tr:"select_search_search layer_finish_typing_click",an_ca:"search",
an_ac:"search layer",an_la:"finish typing",global_search_term:""+L})}});a(document).on("click",".gnb__search-btn-js",function(){zb=zb&&"true"===window.sg.common.utils.getCookie("aisearch");lc();Ub?p(this):Da.gnbSearchRecommendedThumb.hide();"us"===za||Yb?(Ya(""),window.sg.components.GnbSearchV25.show(this)):u||gc?zb&&Ob?(eb.data.isTyping="N",va("",!0,this)):V(this):D(this);if("us"===za)if(tc&&0<tc.length?f():E(this),ab&&0<ab.length)z(ab);else{var L=window&&window.RECOMMENDATIONS_DATA&&window.RECOMMENDATIONS_DATA["target-search-recs-scom51498"];
L&&0<L.length&&w(L)}});a(document).on("click",".shop-with-expert-search",function(L){L.preventDefault();768>a(window).width()?window.open("https://www.samsung.com/us/expert-chat/?search_instant","newwindow"):window.open("https://www.samsung.com/us/expert-chat/?search_instant","newwindow","height\x3d700, width\x3d440, top\x3d0, left\x3d0, toolbar\x3dno, menubar\x3dno, scrollbars\x3dno, resizable\x3dno, location\x3dno, status\x3dno")});Za.on("click",".srd19-gnb-search__scan-barcode",function(L){L.preventDefault();
qc&&(L=new CustomEvent("scanner.enabled"),document.dispatchEvent(L),window.sg.components.barcodeScannerPopup.showPopup(this))});a(function(){Oa&&""!==Oa&&pb()})}})(window.jQuery);
(function(){var a,n,h,f,c,k,l,e,b,g,p,r,t;function w(){var ea=document.querySelector(".cod03-delivery-location-selector");if(ea)for(a=ea,n=ea.querySelector(".cod03-delivery-location-selector__select"),h=ea.querySelector("#detail-btn"),f=ea.querySelector(".menu__select"),c=ea.querySelector(".cod03-delivery-location-selector__region-name"),k=ea.querySelector(".cod03-delivery-location-selector__select-ctas"),l=ea.querySelector(".cod03-delivery-location-selector__popup"),e=ea.querySelector(".cod03-delivery-location-selector__popup--contents"),
b=ea.querySelector(".cta--confirm"),g=ea.querySelector(".cta--cancel"),p=ea.querySelector(".cod03-delivery-location-selector__popup--close"),r=ea.querySelector(".cod03-delivery-location-selector__popup--looping-start"),t=ea.querySelector(".cod03-delivery-location-selector__popup--looping-end"),V=ea.querySelector(".menu__select"),z(),ea=0;ea<V.length;ea++)V.options[ea].hasAttribute("selected")&&(xa=ea)}function z(){a.querySelector(".cod03-delivery-location-selector__region-icon").addEventListener("click",
function(){n.classList.contains("show")?(n.classList.remove("show"),n.classList.add("hide"),h.setAttribute("xlink:href","#open-down-regular"),h.setAttribute("href","#open-down-regular")):n.classList.contains("hide")?(n.classList.remove("hide"),n.classList.add("show"),h.setAttribute("xlink:href","#close-up-regular"),h.setAttribute("href","#close-up-regular")):n.classList.add("hide")});f.addEventListener("change",function(){l.classList.add("cod03-delivery-location-selector__popup--show");e.classList.add("show");
b.focus()});p.addEventListener("click",function(){D();E()});g.addEventListener("click",function(){D();E()});b.addEventListener("click",function(){ca=V.options[V.selectedIndex].text;c.textContent=ca;xa=V.selectedIndex;E()});r.addEventListener("focus",function(){p.focus()});t.addEventListener("focus",function(){e.querySelector(".cta").focus()})}function D(){window.sg.common.menu.selectItem(a.querySelector(".menu"),xa)}function E(){e.classList.remove("show");l.classList.remove("cod03-delivery-location-selector__popup--show");
k.focus()}var y=window.sg.common.$q;var V=t=r=p=g=b=e=l=k=c=f=h=n=a=void 0;var ca,xa;window.sg.components.deliveryLocationSelector={init:w};y.ready(function(){return w()})})();var componentDeliveryLocationSelector={};
(function(a,n){"undefined"===typeof a.smg&&(a.smg={});a.smg.deliverylocationselector=a.smg.deliverylocationselector||{};var h=n("#siteCode").val(),f=n("#tempTitle").val();a=n.cookies.get("country_region",{domain:".samsung.com"});if(null==a||""==a)a="CA-ON",n.cookies.set("country_region",a,{domain:".samsung.com"});for(var c=n(".cod03-delivery-location-selector__select-ctas .menu__select").children(),k=0;k<c.length;k++)if(a==c.eq(k).val()){c.eq(k).val();var l=c.eq(k).text();n(".cod03-delivery-location-selector__select-ctas .menu__select option").eq(k).attr("selected",
!0);n(".cod03-delivery-location-selector__region-name").text(l)}a="cod03_delivery location selector-"+n("#pageTrackPd").val()+"-province selector-content_click";n(".cod03-delivery-location-selector__popup .cta--confirm").attr("an-tr",a).attr("an-ca","content click").attr("an-ac","feature").attr("an-la","confirm popup:confirm");n(".cod03-delivery-location-selector__popup .cta--cancel").attr("an-tr",a).attr("an-ca","content click").attr("an-ac","feature").attr("an-la","confirm popup:cancel");n(".cod03-delivery-location-selector__popup--close").attr("an-tr",
a).attr("an-ca","content click").attr("an-ac","feature").attr("an-la","confirm popup:cancel");n(".cod03-delivery-location-selector").find(".menu__list-option").on("click",function(){console.log("$componentByDropDownOption   click!!!");var e=n(this).find(".menu__list-option-text").text().trim();console.log("delivery-location-selector-confirm   clickedSelectedText\x3d["+e+"]")});n(document).off("click","#delivery-location-selector-confirm");n(document).on("click","#delivery-location-selector-confirm",
function(){var e=n(".cod03-delivery-location-selector__select-ctas .menu__select option:selected").val(),b=n(".cod03-delivery-location-selector__select-ctas .menu__select option:selected").text();n.cookies.set("country_region",e,{domain:".samsung.com"});n(".cod03-delivery-location-selector__region-name").text(b);n(document).ready(function(){("ca"==h||"ca_fr"==h)&&("page-standard-pd"==f||"page-buying-pd"==f||"page-pf"==f||"page-pf-ux2"==f||"page-search"==f||"page-wearable-bc"==f||"page-bc-pd"==f||
"page-pcd"==f&&0<n(".pf-product-compare").length)&&location.reload()})});componentDeliveryLocationSelector={initGrid:function(){}}})(window,$);
(function(){var a=window.sg.common.$q,n=window.sg.common.libs,h=window.sg.common.constants.BREAKPOINTS,f=window.sg.common.utils,c="undefined"!==typeof commonLoginCheck?commonLoginCheck():!1,k=function(l){var e=this;this.selector={section:".footer",footerTopCta:".footer-top__content-link",category:".footer-category__anchor",categoryActive:"footer-category__anchor--active",categoryList:".footer-category__list-wrap",categoryItem:".footer-column__item",language:".footer-language__anchor",languagePanel:".footer-language__panel .footer-language__content",
languageActive:"footer-language__anchor--active",languageTopTarget:".footer-copyright-align",topBtn:".footer-back-to-top__cta",showFormBtn:'[data-js-action\x3d"showForm"]'};this.ele={window:a(window),section:a(l),wrap2list:[]};this.setProperty();this.prevDevice-0;this.isPCmode=h.MOBILE<f.getViewPort().width;this.handler={resize:this.resize.bind(this),focusLock:this.focusLock.bind(this),outClick:this.outClick.bind(this),clickLanguage:function(){e.ele.language.hasClass(e.selector.languageActive)?e.closeLanguage():
e.openLanguage()},handleShowFormBtnClick:this.handleShowFormBtnClick.bind(this)};k.instances.set(l,this);this.init()};k.prototype.setProperty=function(){var l=this;this.ele.topBtn=this.ele.section.find(this.selector.topBtn).eq(0);this.ele.footerTopCta=this.ele.section.find(this.selector.footerTopCta);var e=this.ele.section.find("."+this.selector.categoryActive);this.ele.categoryActive=0>=e.target.length?null:e;this.ele.category=this.ele.section.find(this.selector.category);this.ele.language=this.ele.section.find(this.selector.language);
this.ele.languagePanel=this.ele.section.find(this.selector.languagePanel);this.ele.languageTopTarget=this.ele.section.find(this.selector.languageTopTarget);this.ele.wrap2list=[];this.ele.section.find(this.selector.categoryList).target.forEach(function(b){b=b.querySelectorAll(".footer-category__list");1<b.length&&l.ele.wrap2list.push([].concat($jscomp.arrayFromIterable(b)))});this.ele.showFormBtn=this.ele.section.find(this.selector.showFormBtn)};k.prototype.focusLock=function(l){var e=this;l.keyCode===
n.keyCode.TAB_KEY&&setTimeout(function(){if(0>=a(document.activeElement).closest(e.selector.languagePanel).target.length)if("desktop"===f.getCurrentDevice())e.closeLanguage(document.activeElement);else if(l.shiftKey){var b=e.ele.languagePanel.eq(0).find("a");b.target[b.target.length-1].focus()}}.bind(this),30)};k.prototype.outClick=function(l){(("touchend"===l.type?0>=a(l.target||l.touches[0].target).closest(this.ele.languagePanel.target[0]).target.length:0>=a(l.target).closest(this.ele.languagePanel.target[0]).target.length)||
l.target===document.documentElement)&&this.closeLanguage()};k.prototype.init=function(){var l=this;this.setLengthTop();this.bindEvents();var e=this.ele.section.find(".image__preview");if(0<e.target.length)e.eq(e.target.length-1).on("load",function(){l.setLengthTop()});this.setContentIdDamTagging();this.setLoginStatus()};k.prototype.reInit=function(){this.setProperty();this.bindEvents();this.resize();this.setContentIdDamTagging();this.setLoginStatus()};k.prototype.resize=function(){this.isPCmode=h.MOBILE<
f.getViewPort().width;this.setLengthTop();this.isPCmode?(null!==this.ele.categoryActive&&this.closeCategory(this.ele.categoryActive,!0),this.ele.language.hasClass(this.selector.languageActive)&&this.closeLanguage(!1),this.ele.category.removeAttr("aria-expanded")):this.ele.category.attr("aria-expanded",!1)};k.prototype.bindEvents=function(){var l=this;this.ele.topBtn.off("click").on("click",this.moveScroll.bind(this));this.ele.category.off("click").on("click",function(e){e=a(e.currentTarget);e.hasClass(l.selector.categoryActive)?
l.closeCategory(e):l.openCategory(e)});this.ele.showFormBtn.off("click",this.handler.handleShowFormBtnClick).on("click",this.handler.handleShowFormBtnClick);this.ele.language.off("click").on("click",this.handler.clickLanguage);this.ele.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};k.prototype.moveScroll=function(){f.scrollTo(0)};k.prototype.openLanguage=function(){var l=this,e="mobile"===f.getCurrentDevice();this.ele.language.addClass(this.selector.languageActive);this.ele.language.attr("aria-expanded",
!0);e&&window.sg.common.utils.setMobileFocusLoop(this.ele.languagePanel.target[0]);var b=e?this.ele.languagePanel.eq(0).find(".footer-language__link--selected").target[0]:this.ele.languagePanel.eq(1).find(".footer-language__link--selected").target[0];b&&b.blur();setTimeout(function(){b&&b.focus();l.ele.window.off("keydown",l.handler.focusLock).on("keydown",l.handler.focusLock);l.ele.window.off("click",l.handler.outClick).on("click",l.handler.outClick);l.ele.window.off("touchend",l.handler.outClick).on("touchend",
l.handler.outClick)},30)};k.prototype.closeLanguage=function(l){var e=this;l=void 0===l?null:l;this.ele.language.attr("aria-expanded",!1);"mobile"===f.getCurrentDevice()&&window.sg.common.utils.removeMobileFocusLoop();this.ele.window.off("keydown",this.handler.focusLock);this.ele.window.off("click",this.handler.outClick);this.ele.window.off("touchend",this.handler.outClick);setTimeout(function(){e.ele.language.removeClass(e.selector.languageActive);null===l&&e.ele.language.target.forEach(function(b){"none"!==
a(b).closest(".footer-language").css("display")&&b.focus()})},30)};k.prototype.openCategory=function(l){if(null!==this.ele.categoryActive){this.ele.categoryActive.removeClass(this.selector.categoryActive);l.addClass(this.selector.categoryActive);var e=l.closest(this.selector.categoryItem).target[0].getBoundingClientRect();e.top<-1*l.height()&&window.scrollTo(document.body.scrollLeft||document.documentElement.scrollLeft,(document.body.scrollTop||document.documentElement.scrollTop)+e.top);this.ele.categoryActive.addClass(this.selector.categoryActive);
l.removeClass(this.selector.categoryActive);this.closeCategory(this.ele.categoryActive)}l.addClass(this.selector.categoryActive);l.attr("aria-expanded",!0);l.parent().find(this.selector.categoryList).slideDown(500);e=l.find(".hidden").target[0].dataset.i18nClose;l.find(".hidden").target[0].innerHTML=e;this.ele.categoryActive=l};k.prototype.closeCategory=function(l,e){var b=this;e=void 0===e?!1:e;var g=l.parent().find(this.selector.categoryList),p=l.find(".hidden").target[0].dataset.i18nOpen;if(e)l.removeClass(this.selector.categoryActive),
l.find(".hidden").target[0].innerHTML=p;else{var r=g.isAnimate();g.stop().slideUp(500,function(){l.removeClass(b.selector.categoryActive);l.find(".hidden").target[0].innerHTML=p;r&&g.css({height:"",display:"",overflow:""})})}l.attr("aria-expanded",!1);this.ele.categoryActive=null};k.prototype.setLengthTop=function(){};k.prototype.handleShowFormBtnClick=function(l){"undefined"!==typeof KAMPYLE_ONSITE_SDK&&(l=parseInt(l.currentTarget.getAttribute("data-form-id")),KAMPYLE_ONSITE_SDK.loadForm(l)&&KAMPYLE_ONSITE_SDK.showForm(l))};
k.prototype.setLoginStatus=function(){var l=this.ele.footerTopCta.target[0];l&&l.setAttribute("href",c?l.dataset.loginUrl:l.dataset.logoutUrl)};k.prototype.setContentIdDamTagging=function(){function l(z,D){var E="";return E="desktop"===D?z.find(".image__main[data-desktop-aem-asset-id], .image-v2__main[data-desktop-aem-asset-id], .first-image img[data-desktop-aem-asset-id], .video[data-desktop-aem-asset-id], .image__main[data-aem-asset-id], .image-v2__main[data-aem-asset-id], .first-image img[data-aem-asset-id], .video[data-aem-asset-id]").target.map(function(y){return a(y).attr("data-desktop-aem-asset-id")||
a(y).attr("data-aem-asset-id")}).filter(function(y){return null!==y&&""!==y}).join(","):z.find(".image__main[data-mobile-aem-asset-id], .image-v2__main[data-mobile-aem-asset-id], .first-image img[data-mobile-aem-asset-id], .video[data-mobile-aem-asset-id], .image__main[data-aem-asset-id], .image-v2__main[data-aem-asset-id], .first-image img[data-aem-asset-id], .video[data-aem-asset-id]").target.map(function(y){return a(y).attr("data-mobile-aem-asset-id")||a(y).attr("data-aem-asset-id")}).filter(function(y){return null!==
y&&""!==y}).join(",")}function e(z,D){var E=l(t,D);z.forEach(function(y){y=a(y);switch(D){case "desktop":y.attr("an-as",E);break;case "mobile":y.attr("an-as",E)}})}function b(z,D){z.forEach(function(E){E=a(E);var y=l(E,D);switch(D){case "desktop":E.attr("an-as",y);break;case "mobile":E.attr("an-as",y)}})}var g=this;this.prevDevice=f.getCurrentDevice();var p=this.ele.window,r=this.ele.section,t=r.find(".footer-local-logo__item a"),w=r.find(".footer-category__anchor, .footer-category__link, .footer-language__link, .footer-language__anchor, .footer-terms__link, .footer-sns__link").target;
a(".fab").target.length&&w.push(a(".fab").target[0]);e(w,this.prevDevice);b(t.target,this.prevDevice);p.on("resize",function(){var z=f.getCurrentDevice();g.prevDevice!==z&&(g.prevDevice=z,e(w,g.prevDevice),b(t.target,g.prevDevice))})};k.instances=new WeakMap;window.sg.components.footer={reInit:function(){a(".footer").target.forEach(function(l){k.instances.has(l)&&k.instances.get(l).reInit()})}};a.ready(function(){a(".footer").target.forEach(function(l){k.instances.has(l)||new k(l)})})})();
(function(){var a=window.sg.common.$q,n=window.sg.common.menu,h=window.sg.common.utils.getCurrentDevice,f=function(k){this.els={el:k,cookieBarShopBanner:k.querySelector(".cookie-bar__app-banner"),cookieBarShopBannerCloseButton:k.querySelector(".cookie-bar__shop-app-close"),cookieBarMainArea:k.querySelector(".cookie-bar__wrap"),settingButton:k.querySelector(".cookie-bar__setting"),settingConditionWrap:k.querySelector(".cookie-bar__setting-condition-wrap"),cookieBarMainCloseButton:k.querySelector(".cookie-bar__main-close")};
this.isMainArea=this.isMobileShopBanner=this.isShowSettingConditionWrap=!1;this.init()};f.prototype.init=function(){f.instances.get(this.els.el)||(f.instances.set(this.els.el,this),this.bindEvents(),this.checkCookieBarCloseStatus())};f.prototype.reInitMobileAppBar=function(){this.checkCookieBarCloseStatus()};f.prototype.bindEvents=function(){var k=this;this.els.cookieBarMainCloseButton.addEventListener("click",this.closeMain.bind(this));this.els.cookieBarShopBannerCloseButton&&this.els.cookieBarShopBannerCloseButton.addEventListener("click",
this.closeBanner.bind(this));this.els.settingButton&&this.els.settingButton.addEventListener("click",function(){k.isShowSettingConditionWrap?(k.els.settingConditionWrap.removeAttribute("style"),k.isShowSettingConditionWrap=!1):(k.els.settingConditionWrap.style.display="block",k.isShowSettingConditionWrap=!0)});window.addEventListener("resize",function(){k.checkCookieBarCloseStatus()})};f.prototype.checkCookieBarCloseStatus=function(){this.isMobileShopBanner&&!this.isMainArea&&("mobile"===h()?this.els.el.style.display=
"block":this.els.el.style.display="none")};f.prototype.closeBanner=function(){this.els.cookieBarShopBanner.classList.remove("cookie-bar__app-banner--visible");this.isMobileShopBanner=!1;this.isMainArea||(this.els.el.style.display="none")};f.prototype.showBanner=function(){this.els.cookieBarShopBanner.classList.remove("cookie-bar--hidden");this.isMobileShopBanner=!0};f.prototype.closeMain=function(){this.els.cookieBarMainArea.classList.add("cookie-bar--hidden");this.isMainArea=!1;this.isMobileShopBanner?
this.checkCookieBarCloseStatus():this.els.el.style.display="none"};f.prototype.showMain=function(){this.els.cookieBarMainArea.classList.remove("cookie-bar--hidden");this.isMainArea=!0};f.instances=new WeakMap;var c={init:function(){a(".cookie-bar").target.forEach(function(k){f.instances.has(k)||new f(k)})},reInit:function(){a(".cookie-bar").find(".menu").target.forEach(function(k){n.reInit(k)})},showCookieBar:function(){f.instances.get(document.querySelector(".cookie-bar")).isMainArea=!0;f.instances.get(document.querySelector(".cookie-bar")).showMain();
f.instances.get(document.querySelector(".cookie-bar")).els.el.style.display="block"},showMobileAppBanner:function(){this.showCookieBar();f.instances.get(document.querySelector(".cookie-bar")).els.cookieBarMainArea.classList.add("cookie-bar--hidden");f.instances.get(document.querySelector(".cookie-bar")).isMainArea=!1;f.instances.get(document.querySelector(".cookie-bar")).els.cookieBarShopBanner.classList.add("cookie-bar__app-banner--visible");f.instances.get(document.querySelector(".cookie-bar")).isMobileShopBanner=
!0;f.instances.get(document.querySelector(".cookie-bar")).reInitMobileAppBar()}};window.sg.components.cookieBar=c;a.ready(c.init)})();
(function(a,n){var h=[{site_code:"CA_FR",global:{country_name:"Canada",lang:"French"},local:{country_name:"Canada",lang:"Fran\u00e7ais"},country_codes:["ca"]},{site_code:"CA",global:{country_name:"Canada",lang:"English"},local:{country_name:"Canada",lang:"English"},country_codes:["ca"]},{site_code:"MX",global:{country_name:"Mexico",lang:"Spanish"},local:{country_name:"M\u00e9xico",lang:"Espa\u00f1o"},country_codes:["mx"]},{site_code:"BR",global:{country_name:"Brazil",lang:"Portuguese"},local:{country_name:"Brasil",
lang:"Portugu\u00eas"},country_codes:["br"]},{site_code:"LATIN",global:{country_name:"Latin America",lang:"Spanish"},local:{country_name:"Latin",lang:"Espa\u00f1ol"},country_codes:"gt ni do bo ec sv cr pa hn".split(" ")},{site_code:"LATIN_EN",global:{country_name:"Latin America",lang:"English"},local:{country_name:"Latin",lang:"English"},country_codes:"gy gp mq bb bm bz lc sr aw ht ag jm ky tt".split(" ")},{site_code:"CO",global:{country_name:"Colombia",lang:"Spanish"},local:{country_name:"Colombia",
lang:"Espa\u00f1ol"},country_codes:["co"]},{site_code:"AR",global:{country_name:"Argentina",lang:"Spanish"},local:{country_name:"Argentina",lang:"Espa\u00f1ol"},country_codes:["ar"]},{site_code:"UY",global:{country_name:"Uruguay",lang:"Spanish"},local:{country_name:"Uruguay",lang:"Espa\u00f1ol"},country_codes:["uy"]},{site_code:"PY",global:{country_name:"Paraguay",lang:"Spanish"},local:{country_name:"Paraguay",lang:"Espa\u00f1ol"},country_codes:["py"]},{site_code:"CL",global:{country_name:"Chile",
lang:"Spanish"},local:{country_name:"Chile",lang:"Espa\u00f1ol"},country_codes:["cl"]},{site_code:"PE",global:{country_name:"Peru",lang:"Spanish"},local:{country_name:"Per\u00fa ",lang:"Espa\u00f1ol"},country_codes:["pe"]},{site_code:"SG",global:{country_name:"Singapore",lang:"English"},local:{country_name:"Singapore",lang:"English"},country_codes:["sg"]},{site_code:"AU",global:{country_name:"Australia",lang:"English"},local:{country_name:"Australia",lang:"English"},country_codes:["au"]},{site_code:"NZ",
global:{country_name:"New Zealand",lang:"English"},local:{country_name:"New Zealand",lang:"English"},country_codes:["nz"]},{site_code:"ID",global:{country_name:"Indonesia",lang:"Indonesian"},local:{country_name:"Indonesia",lang:"Bahasa Indonesia"},country_codes:["id"]},{site_code:"TH",global:{country_name:"Thailand",lang:"Thai"},local:{country_name:"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22",lang:"\u0e44\u0e17\u0e22"},country_codes:["th"]},{site_code:"VN",global:{country_name:"Vietnam",
lang:"Vietnamese"},local:{country_name:"Vi\u1ec7t Nam",lang:"Ti\u1ebfng Vi\u1ec7t"},country_codes:["vn"]},{site_code:"MY",global:{country_name:"Malaysia",lang:"English"},local:{country_name:"Malaysia",lang:"English"},country_codes:["my"]},{site_code:"MM",global:{country_name:"Myanmar",lang:"Burmese"},local:{country_name:"Myanmar",lang:"Burmese"},country_codes:["mm"]},{site_code:"JP",global:{country_name:"Japan",lang:"Japanese"},local:{country_name:"\u65e5\u672c",lang:"\u65e5\u672c\u8a9e"},country_codes:["jp"]},
{site_code:"IN",global:{country_name:"India",lang:"English"},local:{country_name:"India",lang:"English"},country_codes:["in","np","bd","lk"]},{site_code:"UK",global:{country_name:"United Kingdom",lang:"English"},local:{country_name:"United Kingdom",lang:"English"},country_codes:["gb","uk"]},{site_code:"IE",global:{country_name:"Ireland",lang:"English"},local:{country_name:"Ireland",lang:"English"},country_codes:["ie"]},{site_code:"IT",global:{country_name:"Italy",lang:"Italian"},local:{country_name:"Italia",
lang:"Italiano"},country_codes:["it","mt"]},{site_code:"ES",global:{country_name:"Spain",lang:"Spanish"},local:{country_name:"Espana",lang:"Espanol"},country_codes:["es"]},{site_code:"HU",global:{country_name:"Hungary",lang:"Hungarian"},local:{country_name:"Magyarorsz\u00e1g",lang:"Magyar"},country_codes:["hu"]},{site_code:"DE",global:{country_name:"Germany",lang:"German"},local:{country_name:"Deutschland",lang:"Deutsch"},country_codes:["de"]},{site_code:"SE",global:{country_name:"Sweden",lang:"Swedish"},
local:{country_name:"Sverige",lang:"Svenska"},country_codes:["se"]},{site_code:"DK",global:{country_name:"Denmark",lang:"Danish"},local:{country_name:"Danmark",lang:"Dansk"},country_codes:["dk"]},{site_code:"FI",global:{country_name:"Finland",lang:"Finnish"},local:{country_name:"Suomi",lang:"Suomi"},country_codes:["fi"]},{site_code:"NO",global:{country_name:"Norway",lang:"Norwegian"},local:{country_name:"Norge",lang:"Norsk"},country_codes:["no"]},{site_code:"FR",global:{country_name:"France",lang:"French"},
local:{country_name:"France",lang:"Fran\u00e7ais"},country_codes:["fr"]},{site_code:"PT",global:{country_name:"Portugal",lang:"Portuguese"},local:{country_name:"Portugal",lang:"Portugu\u00eas"},country_codes:["pt"]},{site_code:"PL",global:{country_name:"Poland",lang:"Polish"},local:{country_name:"Polska",lang:"Polski"},country_codes:["pl"]},{site_code:"GR",global:{country_name:"Greece",lang:"Greek"},local:{country_name:"\u0395\u03bb\u03bb\u03ac\u03b4\u03b1",lang:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},
country_codes:["gr"]},{site_code:"CZ",global:{country_name:"Czech",lang:"Czech"},local:{country_name:"\u010cesk\u00e1 republika",lang:"\u010ce\u0161tina"},country_codes:["cz"]},{site_code:"SK",global:{country_name:"Slovakia",lang:"Slovakian"},local:{country_name:"Slovensko",lang:"Sloven\u010dina"},country_codes:["sk"]},{site_code:"RO",global:{country_name:"Romania",lang:"Romanian"},local:{country_name:"Romania",lang:"Romanian"},country_codes:["ro"]},{site_code:"BG",global:{country_name:"Bulgaria",
lang:"Bulgarian"},local:{country_name:"\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",lang:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},country_codes:["bg"]},{site_code:"AT",global:{country_name:"Austria",lang:"German"},local:{country_name:"\u00d6sterreich",lang:"Deutsch"},country_codes:["at"]},{site_code:"CH",global:{country_name:"Switzerland",lang:"German"},local:{country_name:"Schweiz",lang:"Deutsch"},country_codes:["ch"]},{site_code:"CH_FR",global:{country_name:"Switzerland",lang:"French"},
local:{country_name:"Suisse",lang:"Francaise"},country_codes:["ch"]},{site_code:"BE",global:{country_name:"Belgium",lang:"Dutch"},local:{country_name:"Belgi\u00eb",lang:"Nederlands"},country_codes:["be"]},{site_code:"BE_FR",global:{country_name:"Belgium",lang:"French"},local:{country_name:"Belgium",lang:"French"},country_codes:["lu"]},{site_code:"NL",global:{country_name:"Netherlands",lang:"Dutch"},local:{country_name:"Nederland",lang:"Nederlands"},country_codes:["nl"]},{site_code:"LV",global:{country_name:"Latvia",
lang:"Latvian"},local:{country_name:"Latvija",lang:"Latvie\u0161u"},country_codes:["lv"]},{site_code:"LT",global:{country_name:"Lithuania",lang:"Lithuanian"},local:{country_name:"Lietuva",lang:"Lietuvi\u0173"},country_codes:["lt"]},{site_code:"EE",global:{country_name:"Estonia",lang:"Estonian"},local:{country_name:"Eesti",lang:"Eesti"},country_codes:["ee"]},{site_code:"RS",global:{country_name:"Serbia",lang:"Serbian"},local:{country_name:"C\u0440\u0431\u0438\u0458\u0430",lang:"C\u0440\u043f\u0441\u043a\u0438"},
country_codes:["rs"]},{site_code:"HR",global:{country_name:"Croatia",lang:"Croatian"},local:{country_name:"Hrvatska",lang:"Hrvatski"},country_codes:["hr"]},{site_code:"SI",global:{country_name:"Slovenia",lang:"Slovenijan"},local:{country_name:"Slovenija",lang:"Sloven\u0161\u010dina"},country_codes:["sl"]},{site_code:"AL",global:{country_name:"Albania",lang:"Albania"},local:{country_name:"Shqip\u00ebri",lang:"Shqi"},country_codes:["al"]},{site_code:"RU",global:{country_name:"Russia",lang:"Russian"},
local:{country_name:"\u0420\u043e\u0441\u0441\u0438\u044f",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["ru"]},{site_code:"UA",global:{country_name:"Ukraine",lang:"Ukrainian"},local:{country_name:"\u0423\u043a\u0440\u0430\u0457\u043d\u0430",lang:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},country_codes:["ua"]},{site_code:"UA_RU",global:{country_name:"Ukraine",lang:"Russian"},local:{country_name:"\u0423\u043a\u0440\u0430\u0438\u043d\u0430",lang:"P\u0443\u0441\u0441\u043a\u0438\u0439"},
country_codes:["ua"]},{site_code:"KZ_RU",global:{country_name:"Kazakhstan",lang:"Russian"},local:{country_name:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d",lang:"P\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["kz"]},{site_code:"KZ_KZ",global:{country_name:"Kazakhstan",lang:"Kazakh"},local:{country_name:"\u049a\u0430\u0437\u0430\u049b\u0441\u0442\u0430\u043d",lang:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430"},country_codes:["kz"]},{site_code:"UZ_RU",global:{country_name:"Uzbekistan",
lang:"Russian"},local:{country_name:"\u0423\u0437\u0431\u0435\u043a\u0438\u0441\u0442\u0430\u043d",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["uz"]},{site_code:"UZ_UZ",global:{country_name:"Uzbekistan",lang:"Uzbek"},local:{country_name:"O'zbekiston",lang:"O'zbek"},country_codes:["uz"]},{site_code:"AE",global:{country_name:"UAE",lang:"English"},local:{country_name:"UAE",lang:"English"},country_codes:"bh ae ye om qa kw".split(" ")},{site_code:"AE_AR",global:{country_name:"UAE",
lang:"Arabic"},local:{country_name:"\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a ",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:["ae"]},{site_code:"IL",global:{country_name:"Israel",lang:"Hebrew"},local:{country_name:"\u05d9\u05e9\u05e8\u05d0\u05dc",lang:"\u05e2\u05d1\u05e8\u05d9\u05ea"},country_codes:["il"]},{site_code:"SA",global:{country_name:"Saudi Arabia",lang:"Arabic"},local:{country_name:"\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629",
lang:"\u0639\u0631\u0628\u064a"},country_codes:["sa","ly"]},{site_code:"SA_EN",global:{country_name:"Saudi Arabia",lang:"English"},local:{country_name:"Saudi Arabia",lang:"English"},country_codes:["sa"]},{site_code:"TR",global:{country_name:"Turkey",lang:"Turkish"},local:{country_name:"T\u00fcrkiye",lang:"T\u00fcrk\u00e7e"},country_codes:["tr"]},{site_code:"IRAN",global:{country_name:"Iran",lang:"Persian"},local:{country_name:"\u0627\u06cc\u0631\u0627\u0646",lang:"\u0641\u0627\u0631\u0633\u064a"},
country_codes:["lr"]},{site_code:"LEVANT",global:{country_name:"Levant",lang:"English"},local:{country_name:"Levant",lang:"English"},country_codes:["lb","jo","iq","ps"]},{site_code:"LEVANT_AR",global:{country_name:"Levant",lang:"Arabic"},local:{country_name:"Levant",lang:"Arabic"},country_codes:["lb","jo","iq","ps"]},{site_code:"PK",global:{country_name:"Pakistan",lang:"English"},local:{country_name:"Pakistan",lang:"English"},country_codes:["pk","af"]},{site_code:"EG",global:{country_name:"Egypt",
lang:"Arabic"},local:{country_name:"\u0627\u0644\u0628\u0644\u062f \u0645\u0635\u0631",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:["eg","so","er"]},{site_code:"LB",global:{country_name:"Lebanon",lang:"Lebanon"},local:{country_name:"Lebanon",lang:"English"},country_codes:["lb"]},{site_code:"N_AFRICA",global:{country_name:"Africa",lang:"French"},local:{country_name:"Maroc",lang:"Fran\u00e7ais"},country_codes:["ma","dz","tn"]},{site_code:"AFRICA_EN",global:{country_name:"Africa Pan",
lang:"English"},local:{country_name:"Africa",lang:"English"},country_codes:"gh gm na ng lr mw bw sz sl et ug zm zw ke tz".split(" ")},{site_code:"AFRICA_FR",global:{country_name:"Africa Pan",lang:"French"},local:{country_name:"Afrique",lang:"Fran\u00e7ais"},country_codes:"ga gn ne rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" ")},{site_code:"AFRICA_PT",global:{country_name:"Africa Pan",lang:"Portuguese"},local:{country_name:"\u00c1frica",lang:"Portugu\u00eas"},country_codes:["gw",
"mz","ao","cv"]},{site_code:"ZA",global:{country_name:"South Africa",lang:"English"},local:{country_name:"South Africa",lang:"English"},country_codes:["za"]},{site_code:"US",global:{country_name:"USA",lang:"English"},local:{country_name:"USA",lang:"English"},country_codes:["us"]},{site_code:"CN",global:{country_name:"China",lang:"Chinese"},local:{country_name:"\u4e2d\u56fd",lang:"\u4e2d\u6587"},country_codes:["cn"]},{site_code:"HK",global:{country_name:"Hong Kong",lang:"Chinese"},local:{country_name:"\u9999\u6e2f",
lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["hk"]},{site_code:"HK_EN",global:{country_name:"Hong Kong",lang:"English"},local:{country_name:"Hong Kong",lang:"English"},country_codes:["hk"]},{site_code:"TW",global:{country_name:"Taiwan",lang:"Chinese"},local:{country_name:"\u53f0\u7063",lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["tw"]},{site_code:"SEC",global:{country_name:"Korea",lang:"Korean"},local:{country_name:"\ub300\ud55c\ubbfc\uad6d",lang:"\ud55c\uad6d\uc5b4"},country_codes:["kr"]},
{site_code:"PH",global:{country_name:"Philippines",lang:"English"},local:{country_name:"Philippines",lang:"English"},country_codes:["ph"]},{site_code:"VE",global:{country_name:"Venezuela",lang:"English"},local:{country_name:"Venezuela",lang:"English"},country_codes:["sg","ve"]}];"undefined"===typeof a.smg&&(a.smg={});"undefined"===typeof a.smg.aem&&(a.smg.aem={});"undefined"===typeof a.smg.aem.common&&(a.smg.aem.common={});var f=function(){var c=n("#siteCode").val(),k=!0;"cn"===c&&(k=!1);var l={closeBtn:".cookie-bar__close",
akkoordBtn:"#akkoord_btn",cookieAcceptBtn:".cta--contained",geoSelectWrap:".cookie-bar__select",visitBtnsWrap:".cookie-bar__select-ctas .menu__select",geoMsgCookieWrap:".cookie-bar__msg-wrap",typeManage:".cookie-bar--type-manage",paramsCookie:{commonaccepted:"cookiesaccepted",accepted:"cookiesaccepted-geo",acceptedCountries:"cookiesaccepted-countries",banneraccepted:"cookiesaccepted_banner",countryCodes:"country_codes",siteCode:"site_cd"}};return{init:function(e,b){if(!(1>n(".cookie-bar").length||
"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView())){var g="N",p=navigator.userAgent;if("in"===c||"es"===c||"de"===c||"nl"===c||"uk"===c){if(-1<p.indexOf("MyGalaxy")||-1<p.indexOf("SamsungShopSDK"))g="Y";if("Y"===g){n(".cookie-bar").remove();return}navigator.userAgent.match(/iPhone|iPad|iPod/i);window.location.href.indexOf("/"+c+"/support/")}(this.$container=e).length&&!this.$container.data("initialized")&&c&&(this.options=def(l,b||{}),this.assignedHTMLElements(),this.initProperties(),
this.isAcceptedCountries()&&this.$geoMsgCookieWrap.remove(),this.isAcceptedBanner()&&this.removebannerInner(),this.setCountryInfo(),!this.isAcceptedGeo()&&!this.isLocalLanguageSite()&&""!==this.visitCountryCode&&this.currentCountrySiteInfo[0]||!this.isAcceptedCountries()||null!==this.$bannerInner&&(null===this.$bannerInner||0!==this.$bannerInner.length))&&(this.bindEvents(),this.$container.attr("data-initialized",!0),"es"!==c&&"de"!==c&&"nl"!==c&&"uk"!==c||this.$geoMsgCookieWrap.hide(),window.sg.components.cookieBar.showCookieBar())}},
assignedHTMLElements:function(){var e=this.$container,b=this.options;this.$visitBtnsWrap=e.find(b.visitBtnsWrap);this.$cookieGeoClose=e.find(b.closeBtn);this.$akkoordBtn=e.find(b.akkoordBtn);this.$cookieAcceptBtn=e.find(b.cookieAcceptBtn);this.$geoSelectWrap=e.find(b.geoSelectWrap);this.$selectListToggleBtn=e.find(b.selectListToggleBtn);this.$geoMsgCookieWrap=e.find(b.geoMsgCookieWrap);this.$bannerClose=n(".cookie-bar__shop-app-close");this.$bannerInner=n(".cookie-bar__app-banner")},initProperties:function(){var e=
this.options.paramsCookie;this.testSiteCd=this.getParam(e.siteCode);this.currentSiteCode=c.toLowerCase();this.visitCountryCode=this.testSiteCd?this.testSiteCd:cookies.getCookie(e.countryCodes).toLowerCase();this.currentCountrySiteInfo=[];this.visitCountrySiteInfo=[];this.selectedSiteCode="";this.acceptedCountries=[];cookies.getCookie(e.acceptedCountries)&&(this.acceptedCountries=cookies.getCookie(e.acceptedCountries).split(","))},isLocalLanguageSite:function(){return this.currentSiteCode===this.visitCountryCode},
isSameSiteGroup:function(){var e=this.visitCountrySiteInfo,b=this.currentCountrySiteInfo[0],g=!1;b&&n.each(b.country_codes,function(p,r){n.each(e,function(t,w){0<=n.inArray(r,w.country_codes)&&(g=!0)})});return g},setCountryInfo:function(){n.each(h,n.proxy(function(e,b){e=b.country_codes;var g=b.site_code.toLowerCase();n.each(e,n.proxy(function(p,r){g===this.currentSiteCode&&this.currentCountrySiteInfo.push(b);r===this.visitCountryCode&&this.visitCountrySiteInfo.push(b)},this))},this))},append:function(){var e=
this.visitCountrySiteInfo,b=this.currentCountrySiteInfo[0];if(e.length&&b){var g="",p="",r=0;this.isSameSiteGroup()||(r++,g+='\x3coption value\x3d"'+r+'" site_cd\x3d"'+b.site_code.toLowerCase()+'" title\x3d"Visit '+b.local.country_name+"/"+b.local.lang+' site"\x3e'+b.local.country_name+" / "+b.local.lang+"\x3c/option\x3e",p=b.local.country_name+" / "+b.local.lang);n.each(e,n.proxy(function(t,w){r++;g+='\x3coption value\x3d"'+r+'" site_cd\x3d"'+w.site_code.toLowerCase()+'" title\x3d"Visit '+w.local.country_name+
"/"+w.local.lang+' site"\x3e'+w.local.country_name+" / "+w.local.lang+"\x3c/option\x3e";""===p&&(p=w.local.country_name+" / "+w.local.lang)},this));this.$visitBtnsWrap.attr("data-default-message",p);this.$visitBtnsWrap.html(g);window.sg.components.cookieBar.reInit()}else this.$geoSelectWrap.remove()},bindEvents:function(){this.$visitBtnsWrap.on("change",n.proxy(this.onSelectBtnsClick,this));this.$cookieGeoClose.on("click",n.proxy(this.onCloseBtnClick,this));this.$akkoordBtn.on("click",n.proxy(this.onAkkoordBtnClick,
this));this.$cookieAcceptBtn.on("click",n.proxy(this.onAcceptClick,this));this.$bannerClose.on("click",n.proxy(this.onBaanerCloseBtnClick,this))},isTypeManage:function(){return this.$container.is(this.options.typeManage)},onCloseBtnClick:function(){this.isTypeManage()||this.setCookieAccept()},onAkkoordBtnClick:function(){this.isTypeManage()||(this.setCookieAccept(),n(".cookie-bar").hide())},setCookieAccept:function(){var e=this.options.paramsCookie;0>n.inArray(this.currentSiteCode,this.acceptedCountries)&&
this.acceptedCountries.push(this.currentSiteCode);cookies.setCookie2(e.acceptedCountries,this.acceptedCountries,90,k);cookies.setCookie2(e.commonaccepted,"true",90,k)},setCookieGeo:function(){var e=this.options.paramsCookie;cookies.setCookie(e.accepted,"true",90);cookies.setCookie2(e.commonaccepted,"true",90,k)},setBannerCookie:function(){cookies.setCookie(this.options.paramsCookie.banneraccepted,"true",90)},onAcceptClick:function(){this.setCookieAccept();this.isTypeManage()?n(".cookie-bar").hide():
this.$geoMsgCookieWrap.remove()},onSelectBtnsClick:function(e){e=this.options.paramsCookie;this.selectedSiteCode=n(".cookie-bar__select-ctas .menu__select option:selected").attr("site_cd");this.setParamsCookie(e.siteCode,this.selectedSiteCode,999);this.setCookieGeo();this.isTypeManage()||this.setCookieAccept()},onBaanerCloseBtnClick:function(){this.setBannerCookie()},isAcceptedGeo:function(){return!!cookies.getCookie(this.options.paramsCookie.accepted)},isAcceptedBanner:function(){return!!cookies.getCookie(this.options.paramsCookie.banneraccepted)},
isAcceptedCountries:function(){return 0>n.inArray(this.currentSiteCode,this.acceptedCountries)?!1:!0},removebannerInner:function(){null!==this.$bannerInner&&(this.$bannerInner.remove(),this.$bannerInner=null)},setParamsCookie:function(e,b,g){var p=new Date,r=window.location.protocol+"//"+window.location.host+"/"+this.selectedSiteCode;p.setDate(p.getDate()+parseInt(g));document.cookie=e+"\x3d"+escape(b)+"; path\x3d/; expires\x3d"+p.toGMTString()+";";window.location.href=r},getParam:function(e){var b=
{};document.location.search.replace("?","").replace(/(?:^|\?|&)([^=]+)(?==)(?:=([^&]*))?/g,function(g,p,r){b[decodeURIComponent(p.split("+").join(" "))]=decodeURIComponent(r.split("+").join(" "))});return b[e]}}}();n(function(){f.init(n(".cookie-bar__wrap"))})})(window,jQuery);
(function(){function a(){n(h.section).target.forEach(function(c){f.instances.has(c)||new f(c)})}var n=window.sg.common.$q,h={section:".notice"},f=function(c){var k=this;this.selector={section:h.section,btn:".notice__toggle-btn",hidden:".notice__toggle-btn .hidden",content:".notice__inner",nomarl:".notice__column notice__column--collapsed",expend:".notice__column notice__column--expanded",close:".notice__close"};this.timer=null;this.ele={window:n(window),section:n(c),btn:null,content:null,nomarl:null,
expand:null,close:null};this.toggleType=this.ele.section.hasClass("notice--toggle");this.handler={resize:function(){k.toggleType&&(k.ele.section.css({height:""}),k.timer&&clearTimeout(k.timer),setTimeout(function(){k.setHeight()},400))},clickClose:function(l){l.preventDefault();k.ele.section.hide();k.ele.window.trigger("resize")}};this.init();f.instances.set(c,this)};f.prototype.setProperty=function(){this.ele.btn=this.ele.section.find(this.selector.btn);this.toggleType?(this.ele.hidden=this.ele.section.find(this.selector.hidden),
this.ele.content=this.ele.section.find(this.selector.content),this.ele.pdBanner=this.ele.section.find(this.selector.pdBanner),this.ele.nomarl=this.ele.section.find(this.selector.nomarl),this.ele.expand=this.ele.section.find(this.selector.expend)):this.ele.close=this.ele.section.find(this.selector.close)};f.prototype.init=function(){this.setProperty();this.bindEvents()};f.prototype.reInit=function(){this.setProperty();this.bindEvents()};f.prototype.setHeight=function(){this.ele.section.css({height:this.ele.content.outerHeight()+
"px"})};f.prototype.bindEvents=function(){var c=this;if(this.toggleType)this.ele.btn.off("click").on("click",function(){c.ele.section.hasClass("is-expanded")?c.closeBanner():c.openBanner()}),this.setHeight();else this.ele.close.off("click").on("click",this.handler.clickClose);this.ele.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};f.prototype.openBanner=function(){this.ele.section.addClass("is-expanded");this.ele.section.attr("aria-expanded",!0);this.ele.nomarl.hide();
this.ele.expand.show();this.ele.hidden.innerHTML("Click to Collapse");this.setHeight()};f.prototype.closeBanner=function(){this.ele.section.removeClass("is-expanded");this.ele.section.attr("aria-expanded",!1);this.ele.nomarl.show();this.ele.expand.hide();this.ele.hidden.innerHTML("Click to Expand");this.setHeight()};f.instances=new WeakMap;window.sg.components.notice={init:a,reInit:function(){n(h.section).target.forEach(function(c){f.instances.has(c)?f.instances.get(c).reInit():new f(c)})},closeBanner:function(c){c=
void 0===c?!0:c;n(h.section).target.forEach(function(k){f.instances.has(k)&&f.instances.get(k).closeBanner(c)})}};n.ready(a)})();
(function(){function a(){n(c.section).target.forEach(function(e){l.instance.has(e)||new l(e)})}var n=window.sg.common.$q,h=window.sg.common.utils,f=window.sg.common.utils.getCurrentDevice,c={section:".nv16-country-selector"},k=[{site_code:"AE",local:{country_name:"UAE",lang:"English"},country_codes:"ae ae_ar bh ye om qa kw".split(" "),lang_code:"en-AE"},{site_code:"AE_AR",local:{country_name:"\u0627\u0644\u062e\u0644\u064a\u062c",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:"ae ae_ar bh ye om qa kw".split(" "),
lang_code:"ar-AE"},{site_code:"AFRICA_EN",local:{country_name:"Africa",lang:"English"},country_codes:"africa_en africa_fr africa_pt gh gm ga gn gw na ng ne lr mz mw bw sz sl et ug zm zw ke tz ao cv rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" "),lang_code:"en-002"},{site_code:"AFRICA_FR",local:{country_name:"Afrique",lang:"Fran\u00e7ais"},country_codes:"africa_en africa_fr africa_pt gh gm ga gn gw na ng ne lr mz mw bw sz sl et ug zm zw ke tz ao cv rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" "),
lang_code:"fr-002"},{site_code:"AFRICA_PT",local:{country_name:"\u00c1frica",lang:"Portugu\u00eas"},country_codes:"africa_en africa_fr africa_pt gh gm ga gn gw na ng ne lr mz mw bw sz sl et ug zm zw ke tz ao cv rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" "),lang_code:"pt-002"},{site_code:"AL",local:{country_name:"Shqip\u00ebri",lang:"Shqip"},country_codes:["al"],lang_code:"sq-AL"},{site_code:"AR",local:{country_name:"Argentina",lang:"Espa\u00f1ol"},country_codes:["ar"],
lang_code:"es-AR"},{site_code:"AT",local:{country_name:"\u00d6sterreich",lang:"Deutsch"},country_codes:["at"],lang_code:"de-AT"},{site_code:"AZ",local:{country_name:"Az\u0259rbaycan",lang:"Az\u0259rbaycan dili"},country_codes:["az"],lang_code:"az_AZ"},{site_code:"AU",local:{country_name:"Australia",lang:"English"},country_codes:["au"],lang_code:"en-AU"},{site_code:"BA",local:{country_name:"Bosna i Hercegovina",lang:"Bosanski"},country_codes:["ba"],lang_code:"bs-BA"},{site_code:"BD",local:{country_name:"Bangladesh",
lang:"English"},country_codes:["bd"],lang_code:"en-BD"},{site_code:"BE",local:{country_name:"Belgi\u00eb",lang:"Nederlands"},country_codes:["be","be_fr","lu"],lang_code:"nl-BE"},{site_code:"BE_FR",local:{country_name:"Belgium",lang:"French"},country_codes:["be","be_fr","lu"],lang_code:"fr-BE"},{site_code:"BG",local:{country_name:"\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",lang:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},country_codes:["bg"],lang_code:"bg-BG"},{site_code:"BR",
local:{country_name:"Brasil",lang:"Portugu\u00eas"},country_codes:["br"],lang_code:"pt-BR"},{site_code:"CA",local:{country_name:"Canada",lang:"English"},country_codes:["ca","ca_fr"],lang_code:"en-CA"},{site_code:"CA_FR",local:{country_name:"Canada",lang:"Fran\u00e7ais"},country_codes:["ca","ca_fr"],lang_code:"fr-CA"},{site_code:"CH",local:{country_name:"Schweiz",lang:"Deutsch"},country_codes:["ch","ch_fr"],lang_code:"de-CH"},{site_code:"CH_FR",local:{country_name:"Suisse",lang:"Francaise"},country_codes:["ch",
"ch_fr"],lang_code:"fr-CH"},{site_code:"CL",local:{country_name:"Chile",lang:"Espa\u00f1ol"},country_codes:["cl"],lang_code:"es-CL"},{site_code:"CN",local:{country_name:"\u4e2d\u56fd",lang:"\u4e2d\u6587"},country_codes:["cn"],lang_code:"zh-CN"},{site_code:"CO",local:{country_name:"Colombia",lang:"Espa\u00f1ol"},country_codes:["co"],lang_code:"es-CO"},{site_code:"CZ",local:{country_name:"\u010cesk\u00e1 republika",lang:"\u010ce\u0161tina"},country_codes:["cz"],lang_code:"cs-CZ"},{site_code:"DE",local:{country_name:"Deutschland",
lang:"Deutsch"},country_codes:["de"],lang_code:"de-DE"},{site_code:"DK",local:{country_name:"Danmark",lang:"Dansk"},country_codes:["dk"],lang_code:"da-DK"},{site_code:"EE",local:{country_name:"Eesti",lang:"Eesti"},country_codes:["ee"],lang_code:"et-EE"},{site_code:"EG",local:{country_name:"\u0627\u0644\u0628\u0644\u062f \u0645\u0635\u0631",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:["eg","so","er"],lang_code:"ar-EG"},{site_code:"ES",local:{country_name:"Espana",lang:"Espanol"},
country_codes:["es"],lang_code:"es-ES"},{site_code:"FI",local:{country_name:"Suomi",lang:"Suomi"},country_codes:["fi"],lang_code:"fi-FI"},{site_code:"FR",local:{country_name:"France",lang:"Fran\u00e7ais"},country_codes:["fr"],lang_code:"fr-FR"},{site_code:"GE",local:{country_name:"\u10e1\u10d0\u10e5\u10d0\u10e0\u10d7\u10d5\u10d4\u10da\u10dd",lang:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},country_codes:["ge"],lang_code:"ka_GE"},{site_code:"GR",local:{country_name:"\u0395\u03bb\u03bb\u03ac\u03b4\u03b1",
lang:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},country_codes:["gr"],lang_code:"el-GR"},{site_code:"HK",local:{country_name:"\u9999\u6e2f",lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["hk","hk_en"],lang_code:"zh-HK"},{site_code:"HK_EN",local:{country_name:"Hong Kong",lang:"English"},country_codes:["hk","hk_en"],lang_code:"en-HK"},{site_code:"HR",local:{country_name:"Hrvatska",lang:"Hrvatski"},country_codes:["hr"],lang_code:"hr-HR"},{site_code:"HU",local:{country_name:"Magyarorsz\u00e1g",
lang:"Magyar"},country_codes:["hu"],lang_code:"hu-HU"},{site_code:"ID",local:{country_name:"Indonesia",lang:"Bahasa Indonesia"},country_codes:["id"],lang_code:"id-ID"},{site_code:"IE",local:{country_name:"Ireland",lang:"English"},country_codes:["ie"],lang_code:"en-IE"},{site_code:"IL",local:{country_name:"\u05d9\u05e9\u05e8\u05d0\u05dc",lang:"\u05e2\u05d1\u05e8\u05d9\u05ea"},country_codes:["il"],lang_code:"he-IL"},{site_code:"IN",local:{country_name:"India",lang:"English"},country_codes:["in","np",
"bd","lk"],lang_code:"en-IN"},{site_code:"IQ_AR",local:{country_name:"\u0627\u0644\u0639\u0631\u0627\u0642",lang:"\u0639\u0631\u0628\u064a"},country_codes:["iq","iq_ar","iq_ku"],lang_code:"ar-IQ"},{site_code:"IQ_KU",local:{country_name:"\u06a9\u0648\u0631\u062f\u0633\u062a\u0627\u0646",lang:"\u06a9\u0648\u0631\u062f\u06cc"},country_codes:["iq","iq_ar","iq_ku"],lang_code:"ku-IQ"},{site_code:"IRAN",local:{country_name:"\u0627\u06cc\u0631\u0627\u0646",lang:"\u0641\u0627\u0631\u0633\u064a"},country_codes:["lr",
"iran"],lang_code:"fa-IR"},{site_code:"IT",local:{country_name:"Italia",lang:"Italiano"},country_codes:["it","mt"],lang_code:"it-IT"},{site_code:"JP",local:{country_name:"\u65e5\u672c",lang:"\u65e5\u672c\u8a9e"},country_codes:["jp"],lang_code:"ja-JP"},{site_code:"KZ_KZ",local:{country_name:"\u049a\u0430\u0437\u0430\u049b\u0441\u0442\u0430\u043d",lang:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430"},country_codes:["kz","kz_kz","kz_ru"],lang_code:"kk-KZ"},{site_code:"KZ_RU",local:{country_name:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d",
lang:"P\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["kz","kz_kz","kz_ru"],lang_code:"ru-KZ"},{site_code:"LATIN",local:{country_name:"Latin",lang:"Espa\u00f1ol"},country_codes:"latin_en latin gt ni do bo ec sv cr pa hn gy gp mq bb bm bz lc sr aw ht ag jm ky tt".split(" "),lang_code:"es-419"},{site_code:"LATIN_EN",local:{country_name:"Latin",lang:"English"},country_codes:"latin_en latin gt ni do bo ec sv cr pa hn gy gp mq bb bm bz lc sr aw ht ag jm ky tt".split(" "),lang_code:"en-419"},{site_code:"LB",
local:{country_name:"Lebanon",lang:"English"},country_codes:["lb"],lang_code:"en-LB"},{site_code:"LEVANT",local:{country_name:"Levant",lang:"English"},country_codes:["levant_ar","levant","jo"],lang_code:"en-JO"},{site_code:"LEVANT_AR",local:{country_name:"Levant",lang:"Arabic"},country_codes:["levant_ar","levant","jo"],lang_code:"ar-JO"},{site_code:"LT",local:{country_name:"Lietuva",lang:"Lietuvi\u0173"},country_codes:["lt"],lang_code:"lt-LT"},{site_code:"LV",local:{country_name:"Latvija",lang:"Latvie\u0161u"},
country_codes:["lv"],lang_code:"lv-LV"},{site_code:"MK",local:{country_name:"\u0421\u0435\u0432\u0435\u0440\u043d\u0430 \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u0458\u0430",lang:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438"},country_codes:["mk"],lang_code:"mk-MK"},{site_code:"MM",local:{country_name:"Myanmar",lang:"Burmese"},country_codes:["mm"],lang_code:"my-MM"},{site_code:"MN",local:{country_name:"\u041c\u043e\u043d\u0433\u043e\u043b \u0443\u043b\u0441",lang:"\u041c\u043e\u043d\u0433\u043e\u043b \u0445\u044d\u043b"},
country_codes:["mn"],lang_code:"mn-MN"},{site_code:"MX",local:{country_name:"M\u00e9xico",lang:"Espa\u00f1o"},country_codes:["mx"],lang_code:"es-MX"},{site_code:"MY",local:{country_name:"Malaysia",lang:"English"},country_codes:["my"],lang_code:"en-MY"},{site_code:"N_AFRICA",local:{country_name:"Maroc",lang:"Fran\u00e7ais"},country_codes:["ma","dz","tn"],lang_code:"fr-MA"},{site_code:"NL",local:{country_name:"Nederland",lang:"Nederlands"},country_codes:["nl"],lang_code:"nl-NL"},{site_code:"NO",local:{country_name:"Norge",
lang:"Norsk"},country_codes:["no"],lang_code:"no-NO"},{site_code:"NZ",local:{country_name:"New Zealand",lang:"English"},country_codes:["nz"],lang_code:"en-NZ"},{site_code:"PE",local:{country_name:"Per\u00fa ",lang:"Espa\u00f1ol"},country_codes:["pe"],lang_code:"es-PE"},{site_code:"PH",local:{country_name:"Philippines",lang:"English"},country_codes:["ph"],lang_code:"en-PH"},{site_code:"PK",local:{country_name:"Pakistan",lang:"English"},country_codes:["pk","af"],lang_code:"en-PK"},{site_code:"PL",local:{country_name:"Polska",
lang:"Polski"},country_codes:["pl"],lang_code:"pl-PL"},{site_code:"PS",local:{country_name:"\u0641\u0644\u0633\u0637\u064a\u0646",lang:" \u062f\u0648\u0644\u0629"},country_codes:["ps"],lang_code:"ar-PS"},{site_code:"PT",local:{country_name:"Portugal",lang:"Portugu\u00eas"},country_codes:["pt"],lang_code:"pt-PT"},{site_code:"PY",local:{country_name:"Paraguay",lang:"Espa\u00f1ol"},country_codes:["py"],lang_code:"es-PY"},{site_code:"RO",local:{country_name:"Romania",lang:"Romanian"},country_codes:["ro"],
lang_code:"ro-RO"},{site_code:"RS",local:{country_name:"C\u0440\u0431\u0438\u0458\u0430",lang:"C\u0440\u043f\u0441\u043a\u0438"},country_codes:["rs"],lang_code:"sr-RS"},{site_code:"RU",local:{country_name:"\u0420\u043e\u0441\u0441\u0438\u044f",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["ru"],lang_code:"ru-RU"},{site_code:"SA",local:{country_name:"\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629",
lang:"\u0639\u0631\u0628\u064a"},country_codes:["sa","sa_en","ly"],lang_code:"ar-SA"},{site_code:"SA_EN",local:{country_name:"Saudi Arabia",lang:"English"},country_codes:["sa","sa_en","ly"],lang_code:"en-SA"},{site_code:"SE",local:{country_name:"Sverige",lang:"Svenska"},country_codes:["se"],lang_code:"sv-SE"},{site_code:"SEC",local:{country_name:"\ub300\ud55c\ubbfc\uad6d",lang:"\ud55c\uad6d\uc5b4"},country_codes:["kr"],lang_code:"ko"},{site_code:"SG",local:{country_name:"Singapore",lang:"English"},
country_codes:["sg"],lang_code:"en-SG"},{site_code:"SI",local:{country_name:"Slovenija",lang:"Sloven\u0161\u010dina"},country_codes:["si"],lang_code:"sl-SI"},{site_code:"SK",local:{country_name:"Slovensko",lang:"Sloven\u010dina"},country_codes:["sk"],lang_code:"sk-SK"},{site_code:"TH",local:{country_name:"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22",lang:"\u0e44\u0e17\u0e22"},country_codes:["th"],lang_code:"th-TH"},{site_code:"TR",local:{country_name:"T\u00fcrkiye",lang:"T\u00fcrk\u00e7e"},
country_codes:["tr"],lang_code:"tr-TR"},{site_code:"TW",local:{country_name:"\u53f0\u7063",lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["tw"],lang_code:"zh-TW"},{site_code:"UA",local:{country_name:"\u0423\u043a\u0440\u0430\u0457\u043d\u0430",lang:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},country_codes:["ua"],lang_code:"uk-UA"},{site_code:"UK",local:{country_name:"United Kingdom",lang:"English"},country_codes:["gb","uk"],lang_code:"en-GB"},{site_code:"US",local:{country_name:"USA",
lang:"English"},country_codes:["us"],lang_code:"en"},{site_code:"UY",local:{country_name:"Uruguay",lang:"Espa\u00f1ol"},country_codes:["uy"],lang_code:"es-UY"},{site_code:"UZ_UZ",local:{country_name:"O'zbekiston",lang:"O'zbek"},country_codes:["uz","uz_ru","uz_uz"],lang_code:"uz-uz"},{site_code:"UZ_RU",local:{country_name:"\u0423\u0437\u0431\u0435\u043a\u0438\u0441\u0442\u0430\u043d",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["uz","uz_ru","uz_uz"],lang_code:"uz-ru"},{site_code:"VN",
local:{country_name:"Vi\u1ec7t Nam",lang:"Ti\u1ebfng Vi\u1ec7t"},country_codes:["vn"],lang_code:"vi-VN"},{site_code:"ZA",local:{country_name:"South Africa",lang:"English"},country_codes:["za"],lang_code:"en-ZA"}],l=function(e){this.els={window:n(window),wrap:n("#wrap"),section:n(e)};this.settings={SITECD:this.getSITECD(),selector:{content:".nv16-country-selector__content-wrap",countrySelector:".nv16-country-selector__menu .menu",countryList:".nv16-country-selector__menu .menu__select",menuOptionText:".nv16-country-selector__menu .menu__list-option-text",
menuSelectFieldText:".menu__select-field-text",urlSitecd:"[data-country-type\x3dsitecd]",locationSitecd:"[data-country-type\x3dlocation]",continue:"[data-action\x3dcountrySelectorContinue]",close:"[data-action\x3dcountrySelectorClose]"},cookies:{accept:{name:"cookiesaccepted-geo",value:!0,days:90},selectedSitecd:{name:"site_cd",days:999},countryCodes:{name:"country_codes",value:h.getCookie("country_codes")}},otherCountry:"/function/ipredirection/ipredirectionLocalList/"};this.currentDevice=f();this.handler=
{handleResize:this.handleResize.bind(this),handleCountryChange:this.handleCountryChange.bind(this)};l.instance.set(e,this);this.init()};l.prototype.init=function(){this.settings.SITECD=this.getSITECD();this.settings.cookies.countryCodes.value=h.getCookie("country_codes");this.isExistSitecd()&&(this.setElements(),this.bindEvents(),this.isAccepted()||this.isCountrySelected()||!this.checkCountryValid()||this.isWebViewFlag()?this.remove():this.show())};l.prototype.reInit=function(){this.init()};l.prototype.getSITECD=
function(){return document.querySelector("#siteCode")?document.querySelector("#siteCode").value.toLowerCase():"test"};l.prototype.setElements=function(){var e=this;this.els.content=this.els.section.find(this.settings.selector.content);this.els.countrySelector=this.els.section.find(this.settings.selector.countrySelector);this.els.countryList=this.els.section.find(this.settings.selector.countryList);this.els.continue=this.els.section.find(this.settings.selector.continue);this.els.close=this.els.section.find(this.settings.selector.close);
this.els.countryList.find(this.settings.selector.urlSitecd).remove();this.els.countryList.find(this.settings.selector.locationSitecd).remove();var b=[];k.forEach(function(g){(g.country_codes.find(function(p){return p===e.settings.SITECD})||g.site_code.toLowerCase()===e.settings.SITECD)&&b.push(g.site_code)});k.forEach(function(g){g.country_codes.find(function(p){return p===e.settings.cookies.countryCodes.value})&&b.push(g.site_code)});b=[].concat($jscomp.arrayFromIterable(new Set(b)));b.forEach(function(g){var p=
k.find(function(r){return r.site_code===g});e.setOptions(p)});window.sg.common.menu.reInit(this.els.section.find(".menu").target[0]);this.setLangCode();this.changeSelectedLangCode();this.changeSelectedText()};l.prototype.setLangCode=function(){var e=this.els.section.find(".menu option");this.els.section.find(this.settings.selector.menuOptionText).target.forEach(function(b,g){(g=e.target[g].getAttribute("lang"))&&n(b).attr("lang",g)})};l.prototype.bindEvents=function(){this.els.continue.off("click").on("click",
this.handleContinue.bind(this));this.els.close.off("click").on("click",this.close.bind(this));this.els.countrySelector.off("click").on("click",this.handleCountrySelector.bind(this));this.els.countryList.off("change",this.handler.handleCountryChange).on("change",this.handler.handleCountryChange);this.els.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize)};l.prototype.show=function(){var e=this;this.els.section.css({height:this.els.content.height()+"px"});this.els.section.slideDown(400,
function(){e.els.section.addClass("nv16-country-selector--init");e.els.section.css({height:"auto"})})};l.prototype.close=function(){this.setAcceptCookie();this.els.section.css({height:this.els.section.height()+"px"});this.els.section.slideUp(350,this.remove.bind(this,"close"))};l.prototype.handleCountrySelector=function(){var e=this,b=new MutationObserver(function(g){g[0].target.classList.contains("open")?e.els.section.addClass("s-menu-opened"):(e.els.section.removeClass("s-menu-opened"),b.disconnect())});
b.observe(this.els.countrySelector.target[0],{attributes:!0,childList:!1})};l.prototype.handleCountryChange=function(){this.changeSelectedLangCode();this.changeSelectedText()};l.prototype.changeSelectedLangCode=function(){var e=this.els.countryList.target[0].querySelector("option[selected]")&&this.els.countryList.target[0].querySelector("option[selected]").getAttribute("lang");e?this.els.section.find(this.settings.selector.menuSelectFieldText).attr("lang",e):this.els.section.find(this.settings.selector.menuSelectFieldText).removeAttr("lang")};
l.prototype.changeSelectedText=function(){var e=this.els.countryList.target[0].options;(e=n(e[e.selectedIndex]).attr("data-display-text"))&&this.els.section.find(this.settings.selector.menuSelectFieldText).text(e)};l.prototype.handleContinue=function(){var e=this.els.countryList.target[0].querySelector("option[selected]").getAttribute("value"),b=checkEppSite();if("other"===e)window.location.href=window.location.origin+"/"+this.settings.SITECD+this.settings.otherCountry;else{h.setCookie(this.settings.cookies.selectedSitecd.name,
e,this.settings.cookies.selectedSitecd.days);this.setAcceptCookie();this.close();var g=window.location.origin;"cn"===this.settings.SITECD&&window.location.origin.endsWith(".com.cn")&&(g=window.location.origin.replace("samsung.com.cn","samsung.com"));e===this.settings.SITECD?window.location.reload():this.isB2b()?window.location.href=g+"/"+e+"/business/":b?(e=document.getElementById("eppStoreCountryPath").value,window.location.href=g+"/"+e+"/"):window.location.href=g+"/"+e+"/"}};l.prototype.handleResize=
function(){var e=f();e!==this.currentDevice&&"desktop"===e&&this.changeSelectedText();this.currentDevice=e};l.prototype.setAcceptCookie=function(){var e=this.settings.cookies.accept;h.setCookie(e.name,e.value,e.days)};l.prototype.setOptions=function(e){if(e.site_code&&e.local&&e.local.country_name&&e.local.lang){var b=e.site_code.toLowerCase(),g=e.lang_code,p=b===this.settings.SITECD,r='an-tr\x3d"nv16_country selector-'+(window.digitalData&&window.digitalData.page&&window.digitalData.page.pageInfo&&
window.digitalData.page.pageInfo.pageTrack||"")+'-drop down menu-navigation2" an-ca\x3d"navigation" an-ac\x3d"gnb" an-la\x3d"'+(this.isB2b()?"b2b_":"")+'country selector"';e="\x3coption"+(p?" selected":"")+' value\x3d"'+b+'" data-country-type\x3d'+(p?"sitecd":"location")+' lang\x3d"'+g+'" data-display-text\x3d"'+e.local.country_name+'" '+r+"\x3e"+e.local.country_name+" / "+e.local.lang+"\x3c/option\x3e";this.els.countryList.find("option[value\x3dother]").target[0].insertAdjacentHTML("beforebegin",
e)}};l.prototype.remove=function(e){e=void 0===e?!1:e;this.els.section.remove();this.els.wrap.target.length&&"close"===e&&h.setFocusFirstFocusableEl(this.els.wrap.target[0],["#header [href]","#header button, #haeder input, #haeder textarea, #haeder select"])};l.prototype.isAccepted=function(){return h.getCookie(this.settings.cookies.accept.name)?!0:!1};l.prototype.isCountrySelected=function(){return this.settings.SITECD===h.getCookie(this.settings.cookies.selectedSitecd.name)?!0:!1};l.prototype.isLocalSite=
function(){var e=this;return!!this.els.countryList.find(this.settings.selector.locationSitecd).target.map(function(b){return b.value}).find(function(b){return b===e.settings.SITECD})};l.prototype.isExistSitecd=function(){var e=this;return k.find(function(b){return b.site_code.toLowerCase()===e.settings.SITECD})?!0:!1};l.prototype.checkCountryValid=function(){return this.els.countryList.find(this.settings.selector.urlSitecd).target.length&&this.els.countryList.find(this.settings.selector.locationSitecd).target.length?
!0:!1};l.prototype.isOnlyOption=function(){return 2>this.els.countryList.find(this.settings.selector.urlSitecd).target.length};l.prototype.isWebViewFlag=function(){var e=!1;window.addEventListener("flutterInAppWebViewPlatformReady",function(){e=!0});var b=navigator.userAgent.toLowerCase(),g=-1<b.indexOf("line")||-1<b.indexOf("naver")||-1<b.indexOf("kakao")||-1<b.indexOf("instagram")||-1<b.indexOf("fbsn")||-1<b.indexOf("twitter"),p=!(!window.EcommAndroidClient&&!window.flutter_inappwebview)||-1<b.indexOf("samsung-mobile-app"),
r=-1<b.indexOf("mygalaxy")||-1<b.indexOf("samsungshopsdk");b=-1<b.indexOf("wv")||-1<b.indexOf("webview");return sessionStorage.getItem("isInAppWebViewSessionStorage")||e||g||p||r||b?!0:!1};l.prototype.isB2b=function(){var e=document.getElementById("b2bFlag");return e&&"Y"===e.value};l.instance=new WeakMap;window.sg.components.CountrySelector={init:a,reInit:function(){n(c.section).target.forEach(function(e){l.instance.has(e)&&l.instance.get(e).reInit()})},show:function(){n(c.section).target.forEach(function(e){l.instance.has(e)&&
l.instance.get(e).show()})},close:function(){n(c.section).target.forEach(function(e){l.instance.has(e)&&l.instance.get(e).close()})}};n.ready(a)})();
(function(a,n){var h=document.querySelector(".nv16-country-selector__menu");null!=h&&h.querySelector(".menu__select").addEventListener("change",function(f){if(checkEppSite()){var c=document.getElementById("eppStoreCountryPath");if(null==c){var k=document.createElement("input");k.setAttribute("type","hidden");k.setAttribute("id","eppStoreCountryPath");h.appendChild(k);c=document.getElementById("eppStoreCountryPath")}var l=f.target.selectedOptions[0].value;if("other"!=l){f=n.trim(n("input#searchDomain").val());
k=n.trim(n("input#apiStageInfo").val());var e=window.sg.epp.common.storeId;f=f+"/"+k+"/epp/v2/cms/storeinfo";k={siteCode:n.trim(l),companyCode:e};n.ajax({url:f,data:k,type:"GET",dataType:"json",async:!1,success:function(b){c.value=b&&b.response&&b.response.resultData&&b.response.resultData.storeInfo?l+"/multistore/"+e:""+l},error:function(b){c.value=""+l}})}}})})(window,$);
(function(a,n){function h(){var D=n("#searchDomain").val(),E=n("#apiStageInfo").val();n.ajax({url:D+"/"+E+"/"+(w?"epp/v2":"b2c")+"/contents/mobileappbanner?siteCode\x3d"+e+(w?"\x26companyCode\x3d"+a.sg.epp.common.companyCode:""),type:"GET",dataType:"json",crossDomain:!0,cache:!0,timeout:2E4,success:function(y){200===y.response.statusCode&&null!=y.response.resultData&&null!=y.response.resultData.mobileAppBanner&&(y=y.response.resultData.mobileAppBanner,z=p?{useFlag:y.iosUseFlag,headlineTitle:y.iosHeadlineTitle,
description:y.iosDescription,ctaTitle:y.iosCtaTitle,ctaUrl:y.iosCtaUrl,imgUrl:y.iosImgUrl}:{useFlag:y.aosUseFlag,headlineTitle:y.aosHeadlineTitle,description:y.aosDescription,ctaTitle:y.aosCtaTitle,ctaUrl:y.aosCtaUrl,imgUrl:y.aosImgUrl})},error:function(){},complete:function(){var y=z;if(0<t.length){var V=t.get(0);V.innerHTML="";if("Y"===("Y"===y.useFlag?"Y":"N")){var ca='\x3cdiv class\x3d"cod05-app-banner__icon"\x3e\t\x3cimg src\x3d"'+(y.imgUrl+'" alt\x3d"Samsung Shop App Icon"/\x3e');ca=ca+'\x3c/div\x3e\x3cdiv class\x3d"cod05-app-banner__content"\x3e\t\x3ch3 class\x3d"cod05-app-banner__title"\x3e'+
(y.headlineTitle+"\x3c/h3\x3e");ca+='\t\x3cp class\x3d"cod05-app-banner__desc"\x3e'+y.description+"\x3c/p\x3e";ca+='\t\x3ca class\x3d"cta cta--underline cta--black cod05-app-banner__cta" href\x3d"'+getEppMultiStorePath(y.ctaUrl)+'" aria-label\x3d"'+y.ctaTitle+'" an-tr\x3d"cod05_app banner-'+digitalData.page.pageInfo.pageTrack+'-cta-content click" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"top banner:samsung shop app:download"\x3e';ca+=y.ctaTitle;V.innerHTML=ca+'\t\x3c/a\x3e\x3c/div\x3e\x3cbutton class\x3d"cod05-app-banner__close"\x3e\t\x3cspan class\x3d"hidden"\x3eClose\x3c/span\x3e\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\t\t\x3cuse xlink:href\x3d"#delete-bold" href\x3d"#delete-bold"\x3e\x3c/use\x3e\t\x3c/svg\x3e\x3c/button\x3e'}}y=
"Y"===y.useFlag?"Y":"N";!r||"Y"!==y||k()||l()?t.hide():t.show();c()}})}function f(){0<t.length&&(t.get(0).innerHTML="",t.hide())}function c(){var D=n(".cod05-app-banner__close");if(0<D.length)D.on("click",function(E){cookies.setCookie2("shopappBannerExp","true",1,!0);f()})}function k(){return!!cookies.getCookie("shopappBannerExp")}function l(){var D=!1;window.flutter_inappwebview?D=!0:window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.firebase&&(D=!0);return D}var e=n("#siteCode").val(),
b=window.sg.common.utils.getCurrentDevice,g=window.sg.common.utils.getMobileOS,p="ios"===g(),r="mobile"===b(),t=n(".cod05-app-banner"),w=checkEppSite(),z={useFlag:"N",headlineTitle:null,description:null,ctaTitle:null,ctaUrl:null,imgUrl:null};n(function(){0<t.length&&(r="mobile"===b(),(k()||l())&&f(),!r||k()||l()||(w?h():(t.show(),c())))})})(window,jQuery);