!function(){"use strict";var Trigger=function(){function e(e,t){this.referencedTags=[],this.theTrigger={},this.id=e.id,this.triggerKey=e.triggerKey,this.triggerKey in t&&(this.theTrigger=new t[this.triggerKey])}return e.prototype.getId=function(){return this.id},e.prototype.addReferencedTag=function(e){this.referencedTags.push(e)},e.prototype.getReferencedTags=function(){return this.referencedTags},e.prototype.setUp=function(){if(this.theTrigger&&this.theTrigger.setUp){var e=this;this.theTrigger.setUp(function(t){if("event"in t&&e.meetsConditions())for(var n=0,r=e.getReferencedTags();n * Version: 1.0.1 * LastModified: Dec 25 1999 */ var e=32768,t=0,n=1,r=2,o=6,i=!0,a=32768,c=64,l=8192,u=2*e,s=3,d=258,f=16,m=8192,h=13;m>a&&alert("error: zip_INBUFSIZ is too small"),e<<1>1<f-1&&alert("error: zip_HASH_BITS is too large"),(h<8||258!=d)&&alert("error: Code too clever");var g,_,p,w,v,y,b,C,k,x,T,V,E,S,B,A,F,D,I,O,R,j,L,U,P,M,q,$,N,K,X,H,Y,J,z,Q,W,Z,G,ee,te,ne,re,oe,ie,ae,ce,le,ue,se,de,fe,me,he,ge,_e,pe=m,we=1<9&&(e=9):e=o,q=e,w=!1,L=!1,null==Pe){for(g=_=p=null,Pe=new Array(l),C=new Array(u),k=new Array(pe),x=new Array(a+c),T=new Array(1<>>8):(et(255&e),et(e>>>8))},nt=function(){B=(B<>7)])},it=function(e,t,n){return e[t].fcxe?R-xe:be,l=R+d,u=C[o+a-1],s=C[o+a];O>=$&&(r>>=2);do{if(C[(t=e)+a]==s&&C[t+a-1]==u&&C[t]==C[o]&&C[++t]==C[o+1]){o+=2,t++;do{}while(C[++o]==C[++t]&&C[++o]==C[++t]&&C[++o]==C[++t]&&C[++o]==C[++t]&&C[++o]==C[++t]&&C[++o]==C[++t]&&C[++o]==C[++t]&&C[++o]==C[++t]&&oa){if(j=e,a=n,i){if(n>=d)break}else if(n>=N)break;u=C[o+a-1],s=C[o+a]}}}while((e=T[e&ye])>c&&0!=--r);return a},ut=function(){var t,n,r=u-U-R;if(-1==r)r--;else if(R>=e+xe){for(t=0;t=e?n-e:be);for(t=0;t=e?n-e:be;r+=e}L||((t=at(C,R+U,r))<=0?L=!0:U+=t)},st=function(){for(;0!=U&&null==_;){var e;if(nt(),A!=be&&R-A<=xe&&(I=lt(A))>U&&(I=U),I>=s)if(e=Vt(R-j,I-s),U-=I,I<=M){I--;do{R++,nt()}while(0!=--I);R++}else R+=I,I=0,B=((B=255&C[R])<U&&(I=U),I==s&&R-j>Ce&&I--),O>=s&&I<=O){var e;e=Vt(R-1-F,O-s),U-=O-1,O-=2;do{R++,nt()}while(0!=--O);D=0,I=s-1,R++,e&&(Tt(0),S=R)}else 0!=D?(Vt(0,255&C[R-1])&&(Tt(0),S=R),R++,U--):(D=1,R++,U--);for(;U_.len&&(o=_.len),i=0;iv-y&&(o=v-y),i=0;i>=7;rd&&(o=d,m++),c[n].dl=o,n>s||(Z[o]++,i=0,n>=u&&(i=l[n-u]),a=c[n].fc,me+=a*(o+i),null!=f&&(he+=a*(f[n].dl+i)));if(0!=m){do{for(o=d-1;0==Z[o];)o--;Z[o]--,Z[o+1]+=2,Z[d]--,m-=2}while(m>0);for(o=d;0!=o;o--)for(n=Z[o];0!=n;)(r=G[--t])>s||(c[r].dl!=o&&(me+=(o-c[r].dl)*c[r].fc,c[r].fc=o),n--)}},vt=function(e,t){var n,r,o=new Array(Ve+1),i=0;for(n=1;n<=Ve;n++)i=i+Z[n-1]<<1,o[n]=i;for(r=0;r<=t;r++){var a=e[r].dl;0!=a&&(e[r].fc=At(o[a]++,a))}},yt=function(e){var t,n,r=e.dyn_tree,o=e.static_tree,i=e.elems,a=-1,c=i;for(ee=0,te=Le,t=0;t>1;t>=1;t--)pt(r,t);do{t=G[Te],G[Te]=G[ee--],pt(r,Te),n=G[Te],G[--te]=t,G[--te]=n,r[c].fc=r[t].fc+r[n].fc,ne[t]>ne[n]+1?ne[c]=ne[t]:ne[c]=ne[n]+1,r[t].dl=r[n].dl=c,G[Te]=c++,pt(r,Te)}while(ee>=2);G[--te]=G[Te],wt(e),vt(r,a)},bt=function(e,t){var n,r,o=-1,i=e[0].dl,a=0,c=7,l=4;for(0==i&&(c=138,l=3),e[t+1].dl=65535,n=0;n<=t;n++)r=i,i=e[n+1].dl,++a=3&&0==J[Ye[e]].dl;e--);return me+=3*(e+1)+5+5+4,e},xt=function(e,t,n){var r;for(Bt(e-257,5),Bt(t-1,5),Bt(n-4,4),r=0;r>3)<=(o=me+3+7>>3)&&(o=i),c+4<=o&&S>=0)for(Bt((t<<1)+e,3),Ft(),tt(c),tt(~c),l=0;l2&&0==(4095&le)){var n,r=8*le,o=R-S;for(n=0;n>=3,ue>=1}while(aSt-t?(tt(V|=e<>St-E,E+=t-St):(V|=e<>=1,n<<=1}while(--t>0);return n>>1},Ft=function(){E>8?tt(V):E>0&&et(V),V=0,E=0},Dt=function(){if(0!=v){var e,t;for(e=We(),null==_?_=p=e:p=p.next=e,e.len=v-y,t=0;t0;){var c=new Array(n);for(r=0;r256?e[256]:this.BMAX,h=e,g=0,d=t;do{k[h[g]]++,g++}while(--d>0);if(k[0]==t)return this.root=null,this.m=0,void(this.status=0);for(f=1;f<=this.BMAX&&0==k[f];f++);for(m=f,id&&(i=d),v=1<0;)A[w++]=f+=h[g++];h=e,g=0,d=0;do{0!=(f=h[g++])&&(E[A[f]++]=d)}while(++d0;){for(;m>p+x[1+s];){if(p+=x[1+s],s++,y=(y=u-p)>i?i:y,(l=1<<(f=m-p))>a+1)for(l-=a+1,w=m;++fc&&p0&&(A[s]=d,T.b=x[s],T.e=16+f,T.t=_,f=(d&(1<>p-x[s],V[s-1][f].e=T.e,V[s-1][f].b=T.b,V[s-1][f].n=T.n,V[s-1][f].t=T.t)}for(T.b=m-p,g>=t?T.e=99:h[g]>p;f>=1)d^=f;for(d^=f;(d&(1<>=e,a-=e},R=function(n,r,o){var i,a,l;if(0==o)return 0;for(l=0;;){for(D(m),i=(a=d.list[I(m)]).e;i>16;){if(99==i)return-1;O(a.b),D(i-=16),i=(a=a.t[I(i)]).e}if(O(a.b),16!=i){if(15==i)break;for(D(i),u=a.n+I(i),O(i),D(h),i=(a=f.list[I(h)]).e;i>16;){if(99==i)return-1;O(a.b),D(i-=16),i=(a=a.t[I(i)]).e}for(O(a.b),D(i),s=t-a.n-I(i),O(i);u>0&&l0&&l1)return b=null,alert("HufBuild error: "+c.status),-1;n=c.root,o=c.m}return d=b,f=n,m=r,h=o,R(e,t,i)},U=function(e,t,n){var r,o,i,a,c,l,u,s,g,_=new Array(316);for(r=0;r<_.length;r++)_[r]=0;if(D(5),u=257+I(5),O(5),D(5),s=1+I(5),O(5),D(4),l=4+I(4),O(4),u>286||s>30)return-1;for(o=0;oa)return-1;for(;o-- >0;)_[r++]=i}else if(17==o){if(D(3),o=3+I(3),O(3),r+o>a)return-1;for(;o-- >0;)_[r++]=0;i=0}else{if(D(7),o=11+I(7),O(7),r+o>a)return-1;for(;o-- >0;)_[r++]=0;i=0}if(g=new A(_,u,257,k,x,m=v),0==m&&(g.status=1),0!=g.status)return g.status,-1;for(d=g.root,m=g.m,r=0;r257?-1:(g.status,0!=g.status?-1:R(e,t,n))},P=function(){null==e&&(e=new Array(2*p)),t=0,i=0,a=0,c=-1,l=!1,u=s=0,d=null},M=function(n,r,o){var i,a;for(i=0;i0){if(c!=w)for(;u>0&&i0&&i0;){var i=new Array(t);for(n=0;n=0)return!0;break;case"not_include":if(r.indexOf(o)<0)return!0;break;case"start_with":if(0===r.indexOf(o))return!0;break;case"not_start_with":if(0!==r.indexOf(o))return!0;break;case"end_with":if(new RegExp(o.replace(/[$()*+.[\]{}\\|^\\/,?]/g,"\\$&")+"$").test(r))return!0;break;case"not_end_with":if(!new RegExp(o.replace(/[$()*+.[\]{}\\|^\\/,?]/g,"\\$&")+"$").test(r))return!0;break;case"regex":if(new RegExp(n).test(e))return!0}return!1}function encodeCondValue(e){try{return encodeURIComponent(decodeURIComponent(e))}catch(t){return e}}function findHtmlChild(e,t){return e?e.querySelectorAll(t.element)[t.nth-1]:null}function extractAttributeValue(e,t){return e.getAttribute(t.key)}function extractString(e,t){switch(t.extract_type||t.type){case"left":var n=t.extract_length||t.length;return e.slice(0,1*n);case"mid":var r=t.extract_start||t.start,o=t.extract_end||t.end;return e.substring(1*r-1,1*o);case"right":n=t.extract_length||t.length;return e.slice(-1*n);default:return e}}function encodeCookieValue(e){var t=encodeURIComponent(e);if(window.BdashRawDeflate&&window.BdashRawDeflate.deflate&&"function"==typeof window.BdashRawDeflate.deflate){var n=window.BdashRawDeflate.deflate(t);if(window.BdashRawDeflate.inflate&&"function"==typeof window.BdashRawDeflate.inflate)window.BdashRawDeflate.inflate(n)!==t&&(n=window.BdashRawDeflate.deflate(t,3));t=DEFLATED_PREFIX+n}return t=window.btoa(t)}function decodeCookieValue(e){try{var t=!1;0===e.indexOf("@")&&(t=!0,e=e.slice(1));var n,r=window.atob(e);return 0===r.indexOf(DEFLATED_PREFIX)&&(t=!0,r=r.slice(DEFLATED_PREFIX.length)),t&&window.BdashRawDeflate&&window.BdashRawDeflate.inflate&&"function"==typeof window.BdashRawDeflate.inflate&&(n=window.BdashRawDeflate.inflate(r)),decodeURIComponent(n||r)}catch(o){return e}}function shouldFetchCustomColumnOnPageview(e){var t=e.fetch_conditions;return!t||t.pageview.enabled}function shouldFetchCustomColumnOnClick(e,t){var n=e.fetch_conditions;if(!n)return!0;if(!n.click.enabled)return!1;if("all"===n.click.condition.target)return!0;var r=n.click.condition.element_conditions,o=t&&t.target;if(!o)return!1;for(var i=o.parentElement,a=0;au.test(e[o.type]))}if(i.length){var s=i[o.nth?o.nth-1:0];if(o.child&&o.child.enabled&&(s=findHtmlChild(s,o.child)),s){if(o.attribute&&o.attribute.enabled)return extractAttributeValue(s,o.attribute)||"";var d=s.outerHTML,f=d.indexOf(">")+1,m=d.lastIndexOf("<");return extractString(d=d.substring(f,m),e.extract)}}}}function extractFromJs(e){return window[e.conditions[0].name]||""}function extractByCustomScript(conditions){var customValue="";return eval(conditions.custom_script),customValue}function extractFromSourceCode(e){switch(e.source_type){case"html":return extractFromHtml(e);case"javascript":return extractFromJs(e);case"others":return extractByCustomScript(e)}return""}function extractFromUrl(e){var t=e.urls&&e.urls[0]||{},n=t.matching,r=self.getCurrentPageUrl();if("regex"===n){var o=new RegExp(t.name),i=r.match(o);return i&&i[0]||""}return"extract"===n?extractString(r,t):""}function extractFromCookie(e){for(var t=e.name,n=e.values||[],r=self.getCookieValues(t),o=0;o=0},this.restoreCookieValue=function(e,t){return self.isEncodingCookie(e)?decodeCookieValue(t):t},this.getCookieValues=function(e){for(var t=[],n=document.cookie.split(";"),r=new RegExp("^\\s*"+e+"=\\s*(.*)\\s*$"),o=0;o0){for(var r=[],o=location.hostname.split("."),i=0;!t&&i=0||t.match(/\t|\n/))&&(t='"'+t+'"'),t}}var util=new BdashTagUtil;if(util){if(!util.isTargetDomain||"function"!=typeof util.isTargetDomain||util.isTargetDomain()){var toString64=function(e){for(var t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ+-",n="";e>0;)n=t.charAt(e%64)+n,e=Math.floor(e/64);return n},makeRandomNumber=function(e){return Math.round(Math.random()*e)},getIdFromLinker=function(){var e=function(e){var t=5,n=1*e,r=util.getUnixtimeSec();return n>r||r>=n+t},t=util.getCurrentPageUrl().match(/[?&#]_bdsid=([^&#]*)/),n="";if(t&&t[1]&&-1=0;i--){var a=o.slice(i).join("."),c=util.generateCookieStoreValue(e,a);if(util.setCookie(t,c,n,a,r))return window.BdashTagManager.Tracker.cookieDomain=a,!0}return window.BdashTagManager.Tracker.cookieDomain="failed",!1},createSessionId=function(e){return[e,(new Date).getTime()].join(".")},setSessionIdCookie=function(e){for(var t="_bdsid",n=18e5,r="/",o=location.hostname.split("."),i=o.length-1;i>=0;i--){var a=o.slice(i).join("."),c=util.generateCookieStoreValue(e,a);if(util.setCookie(t,c,n,a,r))return!0}return!1},setNewVisitorCookie=function(e,t){for(var n="_bdnvf",r="/",o=location.hostname.split("."),i=o.length-1;i>=0;i--){var a=o.slice(i).join("."),c=util.generateCookieStoreValue(e,a);if(util.setCookie(n,c,t,a,r))return!0}return!1},publishOrKeepVisitorIdAndSessionId=function(){var e=util.extractValueFromCookie("_bdck"),t=util.extractValueFromCookie("_bdsid"),n=getIdFromLinker();if(n){var r=n.split(".");t=n,e=[r[0],r[1]].join("."),"0"===getRepeaterFlagFromLinker()&&setNewVisitorCookie("",-1)}removeLinkerFromUrl(),e||(e=createVisitorId(),t=null),t||(t=createSessionId(e),window.BdashTagManager.Tracker.newSessionFlag="1"),setVisitorIdCookie(e),window.BdashTagManager.Tracker.vid=e,setSessionIdCookie(t),window.BdashTagManager.Tracker.sid=t;var o=util.extractValueFromCookie("_bdnvf");setNewVisitorCookie(o||t,63072e6),(o=util.extractValueFromCookie("_bdnvf"))===t&&(window.BdashTagManager.Tracker.repeaterFlag="0")};window.bdashFlags||(window.bdashFlags={}),window.BdashTagManager.Tracker={},publishOrKeepVisitorIdAndSessionId()}}else console.warn("BdashTagUtil is not found.")}()}}}(),templates.CmsEmbeddedVisitorTag=function(){return function(){this.fire=function(){!function(){function BdashTagUtil(){function matched(e,t,n){var r=encodeCondValue(e),o=encodeCondValue(n);switch(t){case"match":if(r===o)return!0;break;case"not_match":if(r!==o)return!0;break;case"include":if(r.indexOf(o)>=0)return!0;break;case"not_include":if(r.indexOf(o)<0)return!0;break;case"start_with":if(0===r.indexOf(o))return!0;break;case"not_start_with":if(0!==r.indexOf(o))return!0;break;case"end_with":if(new RegExp(o.replace(/[$()*+.[\]{}\\|^\\/,?]/g,"\\$&")+"$").test(r))return!0;break;case"not_end_with":if(!new RegExp(o.replace(/[$()*+.[\]{}\\|^\\/,?]/g,"\\$&")+"$").test(r))return!0;break;case"regex":if(new RegExp(n).test(e))return!0}return!1}function encodeCondValue(e){try{return encodeURIComponent(decodeURIComponent(e))}catch(t){return e}}function findHtmlChild(e,t){return e?e.querySelectorAll(t.element)[t.nth-1]:null}function extractAttributeValue(e,t){return e.getAttribute(t.key)}function extractString(e,t){switch(t.extract_type||t.type){case"left":var n=t.extract_length||t.length;return e.slice(0,1*n);case"mid":var r=t.extract_start||t.start,o=t.extract_end||t.end;return e.substring(1*r-1,1*o);case"right":n=t.extract_length||t.length;return e.slice(-1*n);default:return e}}function encodeCookieValue(e){var t=encodeURIComponent(e);if(window.BdashRawDeflate&&window.BdashRawDeflate.deflate&&"function"==typeof window.BdashRawDeflate.deflate){var n=window.BdashRawDeflate.deflate(t);if(window.BdashRawDeflate.inflate&&"function"==typeof window.BdashRawDeflate.inflate)window.BdashRawDeflate.inflate(n)!==t&&(n=window.BdashRawDeflate.deflate(t,3));t=DEFLATED_PREFIX+n}return t=window.btoa(t)}function decodeCookieValue(e){try{var t=!1;0===e.indexOf("@")&&(t=!0,e=e.slice(1));var n,r=window.atob(e);return 0===r.indexOf(DEFLATED_PREFIX)&&(t=!0,r=r.slice(DEFLATED_PREFIX.length)),t&&window.BdashRawDeflate&&window.BdashRawDeflate.inflate&&"function"==typeof window.BdashRawDeflate.inflate&&(n=window.BdashRawDeflate.inflate(r)),decodeURIComponent(n||r)}catch(o){ return e}}function shouldFetchCustomColumnOnPageview(e){var t=e.fetch_conditions;return!t||t.pageview.enabled}function shouldFetchCustomColumnOnClick(e,t){var n=e.fetch_conditions;if(!n)return!0;if(!n.click.enabled)return!1;if("all"===n.click.condition.target)return!0;var r=n.click.condition.element_conditions,o=t&&t.target;if(!o)return!1;for(var i=o.parentElement,a=0;au.test(e[o.type]))}if(i.length){var s=i[o.nth?o.nth-1:0];if(o.child&&o.child.enabled&&(s=findHtmlChild(s,o.child)),s){if(o.attribute&&o.attribute.enabled)return extractAttributeValue(s,o.attribute)||"";var d=s.outerHTML,f=d.indexOf(">")+1,m=d.lastIndexOf("<");return extractString(d=d.substring(f,m),e.extract)}}}}function extractFromJs(e){return window[e.conditions[0].name]||""}function extractByCustomScript(conditions){var customValue="";return eval(conditions.custom_script),customValue}function extractFromSourceCode(e){switch(e.source_type){case"html":return extractFromHtml(e);case"javascript":return extractFromJs(e);case"others":return extractByCustomScript(e)}return""}function extractFromUrl(e){var t=e.urls&&e.urls[0]||{},n=t.matching,r=self.getCurrentPageUrl();if("regex"===n){var o=new RegExp(t.name),i=r.match(o);return i&&i[0]||""}return"extract"===n?extractString(r,t):""}function extractFromCookie(e){for(var t=e.name,n=e.values||[],r=self.getCookieValues(t),o=0;o=0},this.restoreCookieValue=function(e,t){return self.isEncodingCookie(e)?decodeCookieValue(t):t},this.getCookieValues=function(e){for(var t=[],n=document.cookie.split(";"),r=new RegExp("^\\s*"+e+"=\\s*(.*)\\s*$"),o=0;o0){for(var r=[],o=location.hostname.split("."),i=0;!t&&i=0||t.match(/\t|\n/))&&(t='"'+t+'"'),t}}var util=new BdashTagUtil;if(util){var OPTIN_KEY="_bd4_optin_tracking_BD-4NDSQA";window.BdashTagManager.optinTracking=function(e){var t="/",n=location.hostname.split("."),r=63072e6;e&&(r=e);for(var o=n.length-1;o>=0;o--){var i,a=n.slice(o).join(".");if(util.setCookie(OPTIN_KEY,(new Date).getTime(),r,a,t))return window.BdashTagManager.Optin.tracking=!!util.getCookieValue(OPTIN_KEY),"function"==typeof Event?i=new Event("optin"):(i=document.createEvent("Event")).initEvent("optin",!0,!0),dispatchEvent(i),!0}},window.BdashTagManager.optoutTracking=function(){for(var e="/",t=location.hostname.split("."),n=t.length-1;n>=0;n--){var r=t.slice(n).join(".");window.BdashTagManager.Optin.tracking=!1,util.setCookie(OPTIN_KEY,"",-1,r,e)}var o=new Event("optout");return"function"==typeof Event?o=new Event("optout"):(o=document.createEvent("Event")).initEvent("optout",!0,!0),dispatchEvent(o),!0},window.BdashTagManager.Optin===undefined&&(window.BdashTagManager.Optin={}),window.BdashTagManager.Optin.tracking=!!util.getCookieValue(OPTIN_KEY),window.BdashTagManager.OptinMode=!1;var passVisitorIdToCmsEmbedded=function(){var e=util.extractValueFromCookie("_bdck");passValueToCmsEmbedded(e)},clearVisitorIdToCmsEmbedded=function(){passValueToCmsEmbedded("")},passValueToCmsEmbedded=function(e){var t=0,n={},r=setInterval(function(){searchAndPostValueToCmsEmbedded(e,n),++t>=10&&clearInterval(r)},1e3)},searchAndPostValueToCmsEmbedded=function(e,t){for(var n=document.querySelectorAll('[id^="bdash_embed_form_container_prd_100444_"]'),r=0;r=0)return!0;break;case"not_include":if(r.indexOf(o)<0)return!0;break;case"start_with":if(0===r.indexOf(o))return!0;break;case"not_start_with":if(0!==r.indexOf(o))return!0;break;case"end_with":if(new RegExp(o.replace(/[$()*+.[\]{}\\|^\\/,?]/g,"\\$&")+"$").test(r))return!0;break;case"not_end_with":if(!new RegExp(o.replace(/[$()*+.[\]{}\\|^\\/,?]/g,"\\$&")+"$").test(r))return!0;break;case"regex":if(new RegExp(n).test(e))return!0}return!1}function encodeCondValue(e){try{return encodeURIComponent(decodeURIComponent(e))}catch(t){return e}}function findHtmlChild(e,t){return e?e.querySelectorAll(t.element)[t.nth-1]:null}function extractAttributeValue(e,t){return e.getAttribute(t.key)}function extractString(e,t){switch(t.extract_type||t.type){case"left":var n=t.extract_length||t.length;return e.slice(0,1*n);case"mid":var r=t.extract_start||t.start,o=t.extract_end||t.end;return e.substring(1*r-1,1*o);case"right":n=t.extract_length||t.length;return e.slice(-1*n);default:return e}}function encodeCookieValue(e){var t=encodeURIComponent(e);if(window.BdashRawDeflate&&window.BdashRawDeflate.deflate&&"function"==typeof window.BdashRawDeflate.deflate){var n=window.BdashRawDeflate.deflate(t);if(window.BdashRawDeflate.inflate&&"function"==typeof window.BdashRawDeflate.inflate)window.BdashRawDeflate.inflate(n)!==t&&(n=window.BdashRawDeflate.deflate(t,3));t=DEFLATED_PREFIX+n}return t=window.btoa(t)}function decodeCookieValue(e){try{var t=!1;0===e.indexOf("@")&&(t=!0,e=e.slice(1));var n,r=window.atob(e);return 0===r.indexOf(DEFLATED_PREFIX)&&(t=!0,r=r.slice(DEFLATED_PREFIX.length)),t&&window.BdashRawDeflate&&window.BdashRawDeflate.inflate&&"function"==typeof window.BdashRawDeflate.inflate&&(n=window.BdashRawDeflate.inflate(r)),decodeURIComponent(n||r)}catch(o){return e}}function shouldFetchCustomColumnOnPageview(e){var t=e.fetch_conditions;return!t||t.pageview.enabled}function shouldFetchCustomColumnOnClick(e,t){var n=e.fetch_conditions;if(!n)return!0;if(!n.click.enabled)return!1;if("all"===n.click.condition.target)return!0;var r=n.click.condition.element_conditions,o=t&&t.target;if(!o)return!1;for(var i=o.parentElement,a=0;au.test(e[o.type]))}if(i.length){var s=i[o.nth?o.nth-1:0];if(o.child&&o.child.enabled&&(s=findHtmlChild(s,o.child)),s){if(o.attribute&&o.attribute.enabled)return extractAttributeValue(s,o.attribute)||"";var d=s.outerHTML,f=d.indexOf(">")+1,m=d.lastIndexOf("<");return extractString(d=d.substring(f,m),e.extract)}}}}function extractFromJs(e){return window[e.conditions[0].name]||""}function extractByCustomScript(conditions){var customValue="";return eval(conditions.custom_script),customValue}function extractFromSourceCode(e){switch(e.source_type){case"html":return extractFromHtml(e);case"javascript":return extractFromJs(e);case"others":return extractByCustomScript(e)}return""}function extractFromUrl(e){var t=e.urls&&e.urls[0]||{},n=t.matching,r=self.getCurrentPageUrl();if("regex"===n){var o=new RegExp(t.name),i=r.match(o);return i&&i[0]||""}return"extract"===n?extractString(r,t):""}function extractFromCookie(e){for(var t=e.name,n=e.values||[],r=self.getCookieValues(t),o=0;o=0},this.restoreCookieValue=function(e,t){return self.isEncodingCookie(e)?decodeCookieValue(t):t},this.getCookieValues=function(e){for(var t=[],n=document.cookie.split(";"),r=new RegExp("^\\s*"+e+"=\\s*(.*)\\s*$"),o=0;o0){for(var r=[],o=location.hostname.split("."),i=0;!t&&i=0||t.match(/\t|\n/))&&(t='"'+t+'"'),t}}function setCustomColumnValues(e,t){for(var n=util.getCustomColumnValues(e,t),r=0;r=0;o--){var i,a=n.slice(o).join(".");if(util.setCookie(OPTIN_KEY,(new Date).getTime(),r,a,t))return window.BdashTagManager.Optin.tracking=!!util.getCookieValue(OPTIN_KEY),"function"==typeof Event?i=new Event("optin"):(i=document.createEvent("Event")).initEvent("optin",!0,!0),dispatchEvent(i),!0}},window.BdashTagManager.optoutTracking=function(){for(var e="/",t=location.hostname.split("."),n=t.length-1;n>=0;n--){var r=t.slice(n).join(".");window.BdashTagManager.Optin.tracking=!1,util.setCookie(OPTIN_KEY,"",-1,r,e)}var o=new Event("optout");return"function"==typeof Event?o=new Event("optout"):(o=document.createEvent("Event")).initEvent("optout",!0,!0),dispatchEvent(o),!0},window.BdashTagManager.Optin===undefined&&(window.BdashTagManager.Optin={}),window.BdashTagManager.Optin.tracking=!!util.getCookieValue(OPTIN_KEY),window.BdashTagManager.OptinMode=!1,util.isTargetDomain&&"function"==typeof util.isTargetDomain&&!util.isTargetDomain()||(!function(e,t,n,r){if(!e.bdash4){e.bdash4=function(){e.bdash4.queue.push(arguments)},e.bdash4.queue=[],e.bdash4.load=new Date;var o=t.createElement(n);o.type="text/javascript",o.async=!0,o.src=r;var i=t.getElementsByTagName(n)[0];i.parentNode.insertBefore(o,i)}}(window,document,"script","//cdn.activity.smart-bdash.com/tracking-script/bdash_log.js"),bdash4("create",{id:"BD-4NDSQA"}),setCustomColumnValues("pageview"),bdash4("addCallback",{type:"click",callback:function(e){setCustomColumnValues("click",e)}}),bdash4("send",{type:"pageview"}))}else console.warn("BdashTagUtil is not found.")}()}}}(),templates.ReceptionTag=function(){return function(){this.fire=function(){!function(){function BdashTagUtil(){function matched(e,t,n){var r=encodeCondValue(e),o=encodeCondValue(n);switch(t){case"match":if(r===o)return!0;break;case"not_match":if(r!==o)return!0;break;case"include":if(r.indexOf(o)>=0)return!0;break;case"not_include":if(r.indexOf(o)<0)return!0;break;case"start_with":if(0===r.indexOf(o))return!0;break;case"not_start_with":if(0!==r.indexOf(o))return!0;break;case"end_with":if(new RegExp(o.replace(/[$()*+.[\]{}\\|^\\/,?]/g,"\\$&")+"$").test(r))return!0;break;case"not_end_with":if(!new RegExp(o.replace(/[$()*+.[\]{}\\|^\\/,?]/g,"\\$&")+"$").test(r))return!0;break;case"regex":if(new RegExp(n).test(e))return!0}return!1}function encodeCondValue(e){try{return encodeURIComponent(decodeURIComponent(e))}catch(t){return e}}function findHtmlChild(e,t){return e?e.querySelectorAll(t.element)[t.nth-1]:null}function extractAttributeValue(e,t){return e.getAttribute(t.key)}function extractString(e,t){switch(t.extract_type||t.type){case"left":var n=t.extract_length||t.length;return e.slice(0,1*n);case"mid":var r=t.extract_start||t.start,o=t.extract_end||t.end;return e.substring(1*r-1,1*o);case"right":n=t.extract_length||t.length;return e.slice(-1*n);default:return e}}function encodeCookieValue(e){var t=encodeURIComponent(e);if(window.BdashRawDeflate&&window.BdashRawDeflate.deflate&&"function"==typeof window.BdashRawDeflate.deflate){var n=window.BdashRawDeflate.deflate(t);if(window.BdashRawDeflate.inflate&&"function"==typeof window.BdashRawDeflate.inflate)window.BdashRawDeflate.inflate(n)!==t&&(n=window.BdashRawDeflate.deflate(t,3));t=DEFLATED_PREFIX+n}return t=window.btoa(t)}function decodeCookieValue(e){try{var t=!1;0===e.indexOf("@")&&(t=!0,e=e.slice(1));var n,r=window.atob(e);return 0===r.indexOf(DEFLATED_PREFIX)&&(t=!0,r=r.slice(DEFLATED_PREFIX.length)),t&&window.BdashRawDeflate&&window.BdashRawDeflate.inflate&&"function"==typeof window.BdashRawDeflate.inflate&&(n=window.BdashRawDeflate.inflate(r)),decodeURIComponent(n||r)}catch(o){return e}}function shouldFetchCustomColumnOnPageview(e){var t=e.fetch_conditions;return!t||t.pageview.enabled}function shouldFetchCustomColumnOnClick(e,t){var n=e.fetch_conditions;if(!n)return!0;if(!n.click.enabled)return!1;if("all"===n.click.condition.target)return!0;var r=n.click.condition.element_conditions,o=t&&t.target;if(!o)return!1;for(var i=o.parentElement,a=0;au.test(e[o.type]))}if(i.length){var s=i[o.nth?o.nth-1:0];if(o.child&&o.child.enabled&&(s=findHtmlChild(s,o.child)),s){if(o.attribute&&o.attribute.enabled)return extractAttributeValue(s,o.attribute)||"";var d=s.outerHTML,f=d.indexOf(">")+1,m=d.lastIndexOf("<");return extractString(d=d.substring(f,m),e.extract)}}}}function extractFromJs(e){return window[e.conditions[0].name]||""}function extractByCustomScript(conditions){var customValue="";return eval(conditions.custom_script),customValue}function extractFromSourceCode(e){switch(e.source_type){case"html":return extractFromHtml(e);case"javascript": return extractFromJs(e);case"others":return extractByCustomScript(e)}return""}function extractFromUrl(e){var t=e.urls&&e.urls[0]||{},n=t.matching,r=self.getCurrentPageUrl();if("regex"===n){var o=new RegExp(t.name),i=r.match(o);return i&&i[0]||""}return"extract"===n?extractString(r,t):""}function extractFromCookie(e){for(var t=e.name,n=e.values||[],r=self.getCookieValues(t),o=0;o=0},this.restoreCookieValue=function(e,t){return self.isEncodingCookie(e)?decodeCookieValue(t):t},this.getCookieValues=function(e){for(var t=[],n=document.cookie.split(";"),r=new RegExp("^\\s*"+e+"=\\s*(.*)\\s*$"),o=0;o0){for(var r=[],o=location.hostname.split("."),i=0;!t&&i=0||t.match(/\t|\n/))&&(t='"'+t+'"'),t}}var util=new BdashTagUtil;if(util){var OPTIN_KEY="_bd4_optin_reception_BD-4NDSQA";if(window.BdashTagManager.optinReception=function(e){var t="/",n=location.hostname.split("."),r=63072e6;e&&(r=e);for(var o=n.length-1;o>=0;o--){var i,a=n.slice(o).join(".");if(util.setCookie(OPTIN_KEY,(new Date).getTime(),r,a,t))return window.BdashTagManager.Optin.reception=!!util.getCookieValue(OPTIN_KEY),"function"==typeof Event?i=new Event("optin"):(i=document.createEvent("Event")).initEvent("optin",!0,!0),dispatchEvent(i),!0}},window.BdashTagManager.optoutReception=function(){for(var e="/",t=location.hostname.split("."),n=t.length-1;n>=0;n--){var r=t.slice(n).join(".");window.BdashTagManager.Optin.reception=!1,util.setCookie(OPTIN_KEY,"",-1,r,e)}var o=new Event("optout");return"function"==typeof Event?o=new Event("optout"):(o=document.createEvent("Event")).initEvent("optout",!0,!0),dispatchEvent(o),!0},window.BdashTagManager.Optin===undefined&&(window.BdashTagManager.Optin={}),window.BdashTagManager.Optin.reception=!!util.getCookieValue(OPTIN_KEY),window.BdashTagManager.OptinMode=!1,!util.isTargetDomain||"function"!=typeof util.isTargetDomain||util.isTargetDomain())if(function(e,t,n,r){if(!e.bdash4_concier){e.bdash4_concier=function(){e.bdash4_concier.queue.push(arguments)},e.bdash4_concier.queue=[],e.bdash4_concier.load=new Date;var o=t.createElement(n);o.type="text/javascript",o.async=!0,o.src=r;var i=t.getElementsByTagName(n)[0];i.parentNode.insertBefore(o,i)}}(window,document,"script","//cdn.activity.smart-bdash.com/reception-script/reception.js"),!bdash4_concier.queue||bdash4_concier.queue.length>0)console.warn("skip reception request");else{bdash4_concier("create",{id:"BD-4NDSQA",domains:"",anchor_domains:""}),bdash4_concier("set",{dvid:827});var customColumnValues=util.getCustomColumnValues("pageview"),customerIdColumns=customColumnValues.filter(function(e){return"customer_id"===e.column_type});customerIdColumns.length>0&&bdash4_concier("customer",{id:customerIdColumns[0].value}),bdash4_concier("set",{rvs:customColumnValues.reduce(function(e,t){return e[t.key]=t.value,e},{})}),bdash4_concier("send",{type:"pageview"})}}else console.warn("BdashTagUtil is not found.")}()}}}(),templates.SetCurrentPageTag=function(){return function(){this.fire=function(){!function(){function BdashTagUtil(){function matched(e,t,n){var r=encodeCondValue(e),o=encodeCondValue(n);switch(t){case"match":if(r===o)return!0;break;case"not_match":if(r!==o)return!0;break;case"include":if(r.indexOf(o)>=0)return!0;break;case"not_include":if(r.indexOf(o)<0)return!0;break;case"start_with":if(0===r.indexOf(o))return!0;break;case"not_start_with":if(0!==r.indexOf(o))return!0;break;case"end_with":if(new RegExp(o.replace(/[$()*+.[\]{}\\|^\\/,?]/g,"\\$&")+"$").test(r))return!0;break;case"not_end_with":if(!new RegExp(o.replace(/[$()*+.[\]{}\\|^\\/,?]/g,"\\$&")+"$").test(r))return!0;break;case"regex":if(new RegExp(n).test(e))return!0}return!1}function encodeCondValue(e){try{return encodeURIComponent(decodeURIComponent(e))}catch(t){return e}}function findHtmlChild(e,t){return e?e.querySelectorAll(t.element)[t.nth-1]:null}function extractAttributeValue(e,t){return e.getAttribute(t.key)}function extractString(e,t){switch(t.extract_type||t.type){case"left":var n=t.extract_length||t.length;return e.slice(0,1*n);case"mid":var r=t.extract_start||t.start,o=t.extract_end||t.end;return e.substring(1*r-1,1*o);case"right":n=t.extract_length||t.length;return e.slice(-1*n);default:return e}}function encodeCookieValue(e){var t=encodeURIComponent(e);if(window.BdashRawDeflate&&window.BdashRawDeflate.deflate&&"function"==typeof window.BdashRawDeflate.deflate){var n=window.BdashRawDeflate.deflate(t);if(window.BdashRawDeflate.inflate&&"function"==typeof window.BdashRawDeflate.inflate)window.BdashRawDeflate.inflate(n)!==t&&(n=window.BdashRawDeflate.deflate(t,3));t=DEFLATED_PREFIX+n}return t=window.btoa(t)}function decodeCookieValue(e){try{var t=!1;0===e.indexOf("@")&&(t=!0,e=e.slice(1));var n,r=window.atob(e);return 0===r.indexOf(DEFLATED_PREFIX)&&(t=!0,r=r.slice(DEFLATED_PREFIX.length)),t&&window.BdashRawDeflate&&window.BdashRawDeflate.inflate&&"function"==typeof window.BdashRawDeflate.inflate&&(n=window.BdashRawDeflate.inflate(r)),decodeURIComponent(n||r)}catch(o){return e}}function shouldFetchCustomColumnOnPageview(e){var t=e.fetch_conditions;return!t||t.pageview.enabled}function shouldFetchCustomColumnOnClick(e,t){var n=e.fetch_conditions;if(!n)return!0;if(!n.click.enabled)return!1;if("all"===n.click.condition.target)return!0;var r=n.click.condition.element_conditions,o=t&&t.target;if(!o)return!1;for(var i=o.parentElement,a=0;au.test(e[o.type]))}if(i.length){var s=i[o.nth?o.nth-1:0];if(o.child&&o.child.enabled&&(s=findHtmlChild(s,o.child)),s){if(o.attribute&&o.attribute.enabled)return extractAttributeValue(s,o.attribute)||"";var d=s.outerHTML,f=d.indexOf(">")+1,m=d.lastIndexOf("<");return extractString(d=d.substring(f,m),e.extract)}}}}function extractFromJs(e){return window[e.conditions[0].name]||""}function extractByCustomScript(conditions){var customValue="";return eval(conditions.custom_script),customValue}function extractFromSourceCode(e){switch(e.source_type){case"html":return extractFromHtml(e);case"javascript":return extractFromJs(e);case"others":return extractByCustomScript(e)}return""}function extractFromUrl(e){var t=e.urls&&e.urls[0]||{},n=t.matching,r=self.getCurrentPageUrl();if("regex"===n){var o=new RegExp(t.name),i=r.match(o);return i&&i[0]||""}return"extract"===n?extractString(r,t):""}function extractFromCookie(e){for(var t=e.name,n=e.values||[],r=self.getCookieValues(t),o=0;o=0},this.restoreCookieValue=function(e,t){return self.isEncodingCookie(e)?decodeCookieValue(t):t},this.getCookieValues=function(e){for(var t=[],n=document.cookie.split(";"),r=new RegExp("^\\s*"+e+"=\\s*(.*)\\s*$"),o=0;o0){for(var r=[],o=location.hostname.split("."),i=0;!t&&i=0||t.match(/\t|\n/))&&(t='"'+t+'"'),t}}var util=new BdashTagUtil;util?window.addEventListener("load",function(){for(var e=util.getCurrentPageUrl(),t="_bd_prev_page_ex",n=18e5,r="/",o=location.hostname.split("."),i=o.length-1;i>=0;i--){var a=o.slice(i).join("."),c=util.generateCookieStoreValue(e,a);if(util.setCookie(t,c,n,a,r))return!0}return!1}):console.warn("BdashTagUtil is not found.")}()}}}(),templates.PageViewTrigger=function(){this.setUp=function(e){e({event:"btm.PageView"})}},window.BdashTagManager.addContainer({id:"container_id",triggerConfigs:[{id:1,triggerKey:"PageViewTrigger"}],tagConfigs:[{id:2,fireTriggerIds:[1],tagKey:"UtilTag"},{id:3,fireTriggerIds:[1],tagKey:"VisitorSessionTag"},{id:4,fireTriggerIds:[1],tagKey:"CmsEmbeddedVisitorTag"},{id:5,fireTriggerIds:[1],tagKey:"AccessLogTag"},{id:6,fireTriggerIds:[1],tagKey:"ReceptionTag"},{id:7,fireTriggerIds:[1],tagKey:"SetCurrentPageTag"}]},templates)}();