!function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);throw new Error("Cannot find module '"+a+"'")}var d=r[a]={exports:{}};e[a][0].call(d.exports,function(t){var r=e[a][1][t];return i(r?r:t)},d,d.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a>>0)+(y++ +"__")},w.prototype={set:function(t,e){var r=t[this.name];return r&&r[0]===t?r[1]=e:b(t,this.name,{value:[t,e],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},"delete":function(t){var e=t[this.name];if(!e)return!1;var r=e[0]===t;return e[0]=e[1]=void 0,r},has:function(t){var e=t[this.name];return e?e[0]===t:!1}}}var S=new w,C=window.msSetImmediate;if(!C){var O=[],N=String(Math.random());window.addEventListener("message",function(t){if(t.data===N){var e=O;O=[],e.forEach(function(t){t()})}}),C=function(t){O.push(t),window.postMessage(N,"*")}}var x=!1,I=[],E=0;u.prototype={observe:function(t,e){if(t=i(t),!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var r=S.get(t);r||S.set(t,r=[]);for(var n,o=0;o0){var i=e[r-1],o=g(i,t);if(o)return void(e[r-1]=o)}else n(this.observer);e[r]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=S.get(t);e||S.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=S.get(t),r=0;re;e++)if(e in this&&this[e]===t)return e;return-1};c=t("./utils"),s=c.detectIE()||0/0,9>s?t("json2"):(window.MutationObserver=t("mutation-observer"),a=t("tree-mirror")),u=t("./info"),c=t("./utils"),i=t("./messaging_observer"),o=t("./server_imp_setting"),d=c.detectIOS()||0/0,n=function(){function t(){this.setPSForActionMessage=h(this.setPSForActionMessage,this),this.pageChanged=h(this.pageChanged,this),this.getDocumentReferrer=h(this.getDocumentReferrer,this)}var e,r,n,s,p,f,g,v,m,w,b,y,S,C,O,N,x,I;return s=null,O=3,f=[],r={},p={},I={tspan:1,text:1,g:1,rect:1,path:1,defs:1,clipPath:1,desc:1,title:1},v={},x=null,g=null,N=null,n=!0,e=["TEXTAREA","HTML","BODY"],S=["button","submit"],C=["A","BUTTON","INPUT","IMG"],w=["I","SPAN","EM","svg"],y=["A","BUTTON"],b=y,m=["radio","checkbox"],t.prototype.setPageGroup=function(t){return r.pg=t,this.pageLoaded&&+Date.now()-this.pageLoaded<4e3?setTimeout(function(e){return function(){var r;return e.trackPageView(3),null!=(r=e.messagingObserver)?r.sendPageLoad({pg:t}):void 0}}(this),10):void 0},t.prototype.setPS1=function(t){return r.ps1=Array.isArray(t)?t.join("##"):t},t.prototype.setPS2=function(t){return r.ps2=Array.isArray(t)?t.join("##"):t},t.prototype.setPS3=function(t){return r.ps3=Array.isArray(t)?t.join("##"):t},t.prototype.setPS4=function(t){return r.ps4=Array.isArray(t)?t.join("##"):t},t.prototype.setPS5=function(t){return r.ps5=Array.isArray(t)?t.join("##"):t},t.prototype.setPS6=function(t){return r.ps6=Array.isArray(t)?t.join("##"):t},t.prototype.setPS7=function(t){return r.ps7=Array.isArray(t)?t.join("##"):t},t.prototype.setPS8=function(t){return r.ps8=Array.isArray(t)?t.join("##"):t},t.prototype.setPS9=function(t){return r.ps9=Array.isArray(t)?t.join("##"):t},t.prototype.setPS10=function(t){return r.ps10=Array.isArray(t)?t.join("##"):t},t.prototype.trackCS1=function(t,e){return window.grcs.cs1=t+":"+e,t&&e&&this.gruser?this.gruser.hasSid()?(this.gruser.isNeedToUpdateSessionByCS(window.vds.accountId)&&(this.pageLoaded=+Date.now()),this.gruser.handleCSChanged(window.vds.accountId),setTimeout(function(t){return function(){return r=p,+Date.now()-t.pageLoaded>1e4?t.trackPageView(4):t.trackPageView()}}(this),10)):(this.pageLoaded=+Date.now(),void this.trackPageView(2)):void 0},t.prototype.registerDomObserver=function(){var t;if(window.vds.imp)return null!=s&&s.disconnect(),t={initialize:function(t){return function(e){var r,n,i,o,a;for(a={u:t.gruser.vid(),s:t.gruser.sid(),t:"imp",tm:+Date.now(),ptm:t.pageLoaded,d:window.location.host||window.vds.accountId,p:t.currentPath},t.currentQuery.length>0&&(a.q=t.currentQuery),t.setPSForActionMessage(a),n=[],i=0,o=e.length;o>i;i++)r=e[i],"use"!==r.tagName&&(n=n.concat(t.getLeafNodes(r,e.length)));return a.e=n,n.length>0?t.send([a]):void 0}}(this),applyChanged:function(t){return function(e,r,n,i){var o,a,s,u,d;if(r.length>0&&!document.body.className.match(/\bvds-entrytext\b/)){for(t.gruser.hasSid()||(t.pageLoaded=+Date.now(),t.trackPageView(2)),u={u:t.gruser.vid(),s:t.gruser.sid(),t:"imp",tm:+Date.now(),ptm:t.pageLoaded,d:window.location.host||window.vds.accountId,p:t.currentPath},t.currentQuery.length>0&&(u.q=t.currentQuery),t.setPSForActionMessage(u),o=[],a=0,s=r.length;s>a;a++)d=r[a],"use"!==d.tagName&&(o=o.concat(t.getLeafNodes(d,d.length)));if(u.e=o,o.length>0)return f.push(u),0>O?t.sendQueue():(t.queueTimeout&&clearTimeout(t.queueTimeout),t.queueTimeout=setTimeout(function(){return t.sendQueue()},3e3),t.checkingBlance())}}}(this)},s=new a.Client(document.body,t)},t.prototype.deregisterDomObserver=function(){return null!=s?s.disconnect():void 0},t.prototype.idle=function(){return this.lastSentTime=this.lastSentTime||+Date.now(),this.lastSentTime&&(+Date.now()-this.lastSentTime)/f.length>300},t.prototype.checkingBlance=function(){return this.idle()?O-=1:void 0},t.prototype.sendQueue=function(){return f.length>0&&+Date.now()-this.lastActionTime<12e4&&this.send(f),this.queueTimeout=null,this.lastSentTime=+Date.now(),f=[],O=3},t.prototype.getLeafNodes=function(t,e){var r,n,i,o,a,s,d,h,l,p,f,g,v,m,w,y,S;if(d=[],g=!0,t.leaf)1===t.nodeType&&((null!=(v=t.attributes)?v.href:void 0)||null!=t.text||null!=t.obj)&&(f=this.nodeMessage(t,!0),e>1&&(f.idx=t.idx),d.push(f));else if(t.isContainer&&(f=this.nodeMessage(t,!0),d.push(f)),0===t.childNodes.length&&-1===c.indexOf(C,t.tagName));else{for(m=t.childNodes,o=0,h=m.length;h>o;o++)n=m[o],n.leaf||(g=!1),"use"!==n.tagName&&(d=d.concat(this.getLeafNodes(n,t.childNodes.length)));if((-1!==c.indexOf(b,t.tagName)||g&&((null!=(w=t.attributes)?w.any:void 0)||t.text))&&(t.text||(i=t.dom,t.text=i?u.containerElemContent(i):c.parentOfLeafText(t)),f=this.nodeMessage(t,!1),d.push(f)),"SPAN"===t.tagName)for(y=t.childNodes,a=0,l=y.length;l>a;a++)if(n=y[a],"svg"===n.tagName)for(S=n.childNodes,s=0,p=S.length;p>s;s++)r=S[s],1===r.nodeType&&"use"===r.tagName&&c.hasAttr(r,"xlink:href")&&(t.text=r.getAttribute("xlink:href"),f=this.nodeMessage(t,!1),d.push(f))}return d},t.prototype.nodeMessage=function(t,e){var r,n,i,o;return n={x:t.path},n.v=c.processText(t.text),"A"===t.tagName&&0===(null!=(i=t.text)?i.length:void 0)&&(n.v=void 0),(null!=(o=n.v)?o.length:void 0)>50&&(n.v="A"===t.tagName?c.processText(t.text.slice(0,50)):void 0),(r=t.attributes)&&r.href&&0!==r.href.indexOf("javascript")&&(n.h=c.normalizePath(r.href.slice(0,320)),delete t.attributes.href),t.idx&&(n.idx=t.idx),t.obj&&(n.obj=t.obj),n},t.prototype.registerEventListener=function(){var t,r,i,o,a,s,d,h,l,p;s={click:"clck",change:"chng",submit:"sbmt"},t="__mutation_summary_node_map_id__",r=function(t,e,r){return t.addEventListener?t.addEventListener(e,r,!0):t.attachEvent?t.attachEvent("on"+e,r):t["on"+e]=r},l=function(t){return t.which>1||(N=+Date.now(),g===N)?void 0:(g=N,v={time:N,target:t.target||t.srcElement,x:d("x",t),y:d("y",t)},x=setTimeout(function(){return t={target:v.target,type:"click"},a(t)},100))},h=function(t){var e;return e={adx:Math.abs(d("x",t)-v.x),ady:Math.abs(d("y",t)-v.y)},e.adx>10||e.ady>10?clearTimeout(x):void 0},p=function(t){var e;return e=+Date.now()-v.time,e>1e3?clearTimeout(x):void 0},d=function(t,e){var r;return r=n?e.touches[0]:e,r["page"+t.toUpperCase()]},i=function(){var t,e,i,o,a,s,u,d,c,f,g,v,m,w;w=navigator.userAgent,o=/chrome/i.exec(w),i=/android/i.exec(w),n="ontouchstart"in window&&!(o&&!i),v=n?["touchstart"]:["mousedown"],m=n?["touchend","touchcancel"]:["mouseup","mouseleave"],f=n?["touchmove"]:["mousemove"];for(e=0,u=v.length;u>e;e++)t=v[e],r(document,t,l);for(a=0,d=f.length;d>a;a++)t=f[a],r(document,t,h);for(g=[],s=0,c=m.length;c>s;s++)t=m[s],g.push(r(document,t,p));return g},a=function(t){return function(r){var n,i,o,a,d;if(!document.body.className.match(/\bvds-entrytext\b/)){if(window.vds.ignoreClck&&"click"===r.type)return;for(t.lastActionTime=+Date.now(),d=r.target||r.srcElement;d&&1===I[d.tagName]&&d.parentNode;)d=d.parentNode;if(n=u.path(d,!0),n.isIgnore)return;if(a=d.tagName,window.vds.impCtrlDua&&(window.grImpCtrl=Date.now()),"click"===r.type){if(-1!==c.indexOf(e,a))return;if("INPUT"===a&&-1===c.indexOf(S,d.type))return;if(-1===c.indexOf(C,a)&&!u.depthInside(d,4))return}return t.gruser.hasSid()?"click"===r.type&&t.sendPVOnSidChanged():(t.pageLoaded=+Date.now(),t.trackPageView(2)),o={},o.u=t.gruser.vid(),o.s=t.gruser.sid(),o.t=s[r.type],o.tm=+Date.now(),o.ptm=t.pageLoaded,o.d=window.location.host||window.vds.accountId,o.p=t.currentPath,t.currentQuery.length>0&&(o.q=t.currentQuery),t.setPSForActionMessage(o),i=t.compute(r.type,d),i.x=n.xpath,n.obj&&(i.obj=n.obj),n.idx?i.idx=n.idx:(-1!==i.x.indexOf("/dl")||-1!==i.x.indexOf("/tr")||-1!==i.x.indexOf("/li"))&&(i.idx=u.index(d)),o.e=0===n.containerMessage.length?[i]:-1!==c.indexOf(b,n.pnode.tagName)&&u.onlyContainsChildren(n.pnode,w)?n.containerMessage:[i].concat(n.containerMessage),t.send([o])}}}(this);for(o in s)r(document,o,a);return r(document,"scroll",function(t){return window.vds.impCtrlDua?window.grImpCtrl=Date.now():void 0}),window.vds.touch?i():void 0},t.prototype.sendPVOnSidChanged=function(){var t,e,r;return t=this.gruser.currentSessionId(),r=t[0],e=t[1],this.gruser.lastSessionId!==r?(r||(r=this.gruser.guid(),this.gruser.resetUserId()),e=!1,this.gruser.updateSessionId(r,e),this.trackPageView(4)):void 0},t.prototype.visitMessage=function(){var t,e,r;e={ai:window.vds.accountId,av:window.vds.version,b:"Web",u:this.gruser.vid(),s:this.gruser.sid(),t:"vst",tm:+Date.now(),sh:window.screen.height,sw:window.screen.width,d:window.location.host||window.vds.accountId,p:this.currentPath,rf:this.getDocumentReferrer(),l:null!=(r=navigator.language||navigator.browserLanguage)?r.toLowerCase():void 0},this.currentQuery.length>0&&(e.q=this.currentQuery);for(t in window.grcs)e[t]=window.grcs[t];return e},t.prototype.trackPageView=function(t){var e,n;return null==t&&(t=0),e=[],3!==t||null!=r.pg?4===t&&(this.pageLoaded=+Date.now(),this.gruser.isSendNewVisit())?void this.trackPageView(2):(3>t&&this.gruser.isSendNewVisit()&&e.push(this.visitMessage()),null==this.pageLoaded&&(this.pageLoaded=+Date.now()),2===t&&(r=p),n=this.pageMessage(),e.push(n),this.send(e,"pv"),this.lastActionTime=+Date.now()):void 0},t.prototype.pageMessage=function(){var t,e;e={u:this.gruser.vid(),s:this.gruser.sid(),tl:document.title.slice(0,255),t:"page",tm:this.pageLoaded,pt:window.location.protocol.substring(0,window.location.protocol.length-1),d:window.location.host||window.vds.accountId,p:this.currentPath,rf:this.getDocumentReferrer()},this.currentQuery.length>0&&(e.q=this.currentQuery);for(t in window.grcs)e[t]=window.grcs[t];if(r.pg)for(t in r)e[t]=r[t],p[t]=r[t];else p={};return r={},e},t.prototype.track=function(t,e,r){return null==e&&(e={}),this._track(t,"cstm","cstm",e)},t.prototype.clickOn=function(t,e){return null==e&&(e={}),this._track(t,"clck","action",e)},t.prototype.impOn=function(t,e){return null==e&&(e={}),this._track(t,"imp","action",e)},t.prototype._track=function(t,e,r,n){var i,o,a,s,u,d,c,h,l,p,f,g,v;null==n&&(n={}),c=[],h={u:this.gruser.vid(),s:this.gruser.sid(),t:"cstm",tm:+Date.now(),ptm:this.pageLoaded,d:window.location.host||window.vds.accountId,p:this.currentPath,n:t},this.currentQuery&&this.currentQuery.trim().length>0&&(h.q=this.currentQuery),v={},i=[];for(f in n)Array.isArray(n[f])?i.push(f):v[f]=n[f];if(0===i.length)h.e=n,c.push(h);else if(1===i.length&&n[i[0]].length>0)for(g=n[i[0]],a=0,u=g.length;u>a;a++){if(o=g[a],"object"==typeof o){for(f in v)o[f]=v[f];l=Object.assign({},h),l.e=o}else p=Object.assign({},v),p[i[0]]=o,l=Object.assign({},h),l.e=p;c.push(l)}else{for(s=0,d=i.length;d>s;s++)o=i[s],v[o]=n[o].join("##");h.e=v,c.push(h)}return this.send(c,r)},t.prototype.compute=function(t,e){var r,n,i,o,a,s,d,h,l,p,f,g,v,w,y,C,O,N,x,I;if(n={},x=e.tagName,"IMG"===x?(null!=(C=e.src)?C.length:void 0)>0&&-1===e.src.indexOf("data:image")&&(n.h=e.src):c.hasAttr(e,"href")&&(i=e.getAttribute("href"),i&&0!==i.indexOf("javascript")&&(n.h=c.normalizePath(i.slice(0,320)))),c.hasAttr(e,"data-growing-title")&&e.getAttribute("data-growing-title").length>0)n.v=e.getAttribute("data-growing-title");else if(c.hasAttr(e,"title")&&e.getAttribute("title").length>0)n.v=c.processText(e.getAttribute("title"));else if("click"===t)if(u.isLeaf(e))if("IMG"===x)e.alt?n.v=e.alt:n.h&&(s=n.h.split("?")[0],a=s.split("/"),a.length>0&&(n.v=a[a.length-1]));else if("INPUT"===x&&-1!==c.indexOf(S,e.type))n.v=c.processText(e.value);else if("svg"===x)for(O=e.childNodes,o=0,w=O.length;w>o;o++)r=O[o],1===r.nodeType&&"use"===r.tagName&&c.hasAttr(r,"xlink:href")&&(n.v=r.getAttribute("xlink:href"));else I="",null!=e.textContent?I=e.textContent.replace(/[\n \t]+/g," ").trim():null!=e.innerText&&(I=e.innerText.replace(/[\n \t]+/g," ").trim()),I.length>0&&(I.length<50?n.v=c.processText(I):"A"===x&&(n.v=c.processText(I.slice(0,50))));else-1!==c.indexOf(b,x)?n.v=u.containerElemContent(e):u.isParentOfLeaf(e)&&(n.v=c.parentOfLeafText(e));else if("change"===t)"TEXTAREA"!==x&&("INPUT"===x?-1!==c.indexOf(m,e.type)?(n.v=c.processText(e.value),l=e.parentNode,"LABEL"===l.tagName?h=l:"BODY"!==l.tagName&&(l=l.parentNode,"LABEL"===l.tagName?h=l:e.id&&(v=l.getElementsByTagName("label"),function(){var t,r,n;for(n=[],t=0,r=v.length;r>t;t++)g=v[t],n.push(g["for"]===e.id);return n}()&&(h=g))),null!=h&&(p=u.containerElemContent(h),(null!=p?p.length:void 0)>0&&(n.obj=p+" ("+e.checked+")"))):"password"!==e.type&&(c.hasAttr(e,"growing-track")||c.hasAttr(e,"data-growing-track"))&&(n.v=c.processText(e.value)):"SELECT"===x&&(n.v=c.processText(e.value),1===e.selectedOptions.length&&null!=e.selectedOptions[0].label&&(n.obj=e.selectedOptions[0].label)));else if("submit"===t)for(N=e.getElementsByTagName("input"),f=0,y=N.length;y>f;f++)d=N[f],("search"===d.type||"text"===d.type&&("q"===d.id||-1!==d.id.indexOf("search")||-1!==d.className.indexOf("search")||"q"===d.name||-1!==d.name.indexOf("search")))&&(n.x=u.path(d).xpath,n.v=c.processText(d.value.trim()));return n},t.prototype.registerCircleHandler=function(){var t;try{if(!this.messagingObserver)return this.messagingObserver=new i,this.messagingObserver.sendPageLoad(p)}catch(e){t=e}},t.prototype.registerHistoryHandler=function(){var t,e;return t=window.history.pushState,e=window.history.replaceState,null!=t&&(window.history.pushState=function(e){return function(){return e.prevUrl=window.location.toString(),t.apply(window.history,arguments),setTimeout(function(){return e.pageChanged()},0)}}(this)),null!=e&&(window.history.replaceState=function(t){return function(){return t.prevUrl=window.location.toString(),e.apply(window.history,arguments),setTimeout(function(){return t.pageChanged()},0)}}(this)),null!=t&&(this.prevUrl=document.referrer,c.bind(window,"popstate",this.pageChanged,!0)),window.vds.hashtag?c.bind(window,"hashchange",this.pageChanged,!0):void 0},t.prototype.getDocumentReferrer=function(){var t,e;return e=this.prevUrl?this.prevUrl:document.referrer,(null!=(t=window.vds)?t.pathCaseSensitive:void 0)?e:e.toLowerCase()},t.prototype.pageChanged=function(){var t,e,r;return t=c.path(),e=c.query(),this.currentPath!==t||this.currentQuery!==e?(window.vds.hashtag&&(this.prevUrl=window.location.protocol+"//"+window.location.host+this.currentPath,this.currentQuery&&this.currentQuery.trim().length>0&&(this.prevUrl+="?"+this.currentQuery)),this.currentPath=t,this.currentQuery=e,this.pageLoaded=+Date.now(),this.trackPageView(1),null!=(r=this.messagingObserver)?r.sendPageLoad(p):void 0):void 0},t.prototype.domLoadedHandler=function(t){var e;if(!this.domLoadedHandler.done){if(this.domLoadedHandler.done=!0,this.registerEventListener(),null!=a&&window.vds.imp){o.initialize(),window.vds.impCtrlDua&&(window.grImpCtrl=Date.now());try{c.detectIE()&&null!=(null!=(e=window.angular)?e.version:void 0)?(window.angular.version.major>1||1===window.angular.version.major&&window.angular.version.minor>4||1===window.angular.version.major&&4===window.angular.version.minor&&window.angular.version.dot>0)&&setTimeout(function(t){return function(){return t.registerDomObserver()}}(this),1500):setTimeout(function(t){return function(){return t.registerDomObserver()}}(this),1500)}catch(r){t=r,setTimeout(function(t){return function(){return t.registerDomObserver()}}(this),1500)}}return this.sendRegisterCircleOption()}},t.prototype.blind=function(){var t;return t=!1,window.vds.sampling&&(c.functionDeserialization(window.vds.sampling_func).call(this)||(t=!0)),window.grBlind=t,t},t.prototype.bindEvent=function(){return c.bind(window,"message",function(t){return function(e){var r,n,i,o;try{switch(r=e.data,i=r.mode||r.circleMode,"update-global-env"===i&&(window.grCircleEnv=r.add_on_grSource),i){case"gr-register-SDK-circle":return t.registerCircleHandler(),c.spreadToInnerIframes(r);case"gr-register-SDK-option":if(t.canPostRegisterMessage()&&"grcw"===window.grSource.name&&(o=window.grSource.id,l.call(r.tArr,o)<0))return r.tArr.push(window.grSource.id),parent.postMessage(r,"*");break;case"page-load":if(window.self===window.top&&null!=r.add_on_grSource)return t.loadPluginOuter(r)}}catch(a){n=a}}}(this))},t.prototype.loadPluginOuter=function(t){var e,r,n,i,o,a,s,u;for(this.pluginLoaded=!1,s=document.getElementsByTagName("script"),i=0,o=s.length;o>i;i++)if(n=s[i],u=n.getAttribute("src"),null!=u&&-1!==u.indexOf("/outer-circle-plugin.js")){this.pluginLoaded=!0;break}return this.pluginLoaded?void 0:(a=t.add_on_grSource.add_on_origin,window.grCircleEnv=t.add_on_grSource,e=document.createElement("script"),e.type="text/javascript",e.charset="UTF-8",e.src=-1===a.indexOf("http")?"//"+a+"/assets/javascripts/outer-circle-plugin.js":a+"/assets/javascripts/outer-circle-plugin.js",document.head.appendChild(e),r=document.createElement("link"),r.rel="stylesheet",r.href=-1===a.indexOf("http")?"//"+a+"/assets/stylesheets/outer-circle-plugin.css":a+"/assets/stylesheets/outer-circle-plugin.css",document.head.appendChild(r))},t.prototype.sendRegisterCircleOption=function(){var t;if(this.canPostRegisterMessage())return t={circleMode:"gr-register-SDK-option",url:window.location.toString(),ai:window.vds.accountId,sna:window.grSource.name,sid:window.grSource.id,tna:"",fsna:"sdk",tArr:[window.grSource.id]},parent.postMessage(t,"*")},t.prototype.canPostRegisterMessage=function(){return"grcw-outer-iframe"===window.grSource.name?!1:c.isSpreadPostMessage()?!0:parent&&"function"==typeof parent.postMessage&&window.self!==window.top&&window.self!==window.parent},t.prototype.observe=function(t,e){var r,n,i;if(this.bindEvent(),this.send=e,this.currentPath=c.path(),this.currentQuery=c.query(),this.gruser=t,this.blind())return void this.sendRegisterCircleOption();if(window.history.pushState&&this.registerHistoryHandler(),this.trackPageView(),document.addEventListener)"interactive"===document.readyState||"complete"===document.readyState?this.domLoadedHandler():c.bind(document,"DOMContentLoaded",function(t){return function(){return t.domLoadedHandler()}}(this));else if(document.attachEvent){c.bind(document,"onreadystatechange",function(t){return function(){return t.domLoadedHandler()}}(this)),i=!1;try{i=null===window.frameElement}catch(o){n=o}document.documentElement.doScroll&&i&&(r=function(t){return function(){try{document.documentElement.doScroll("left")}catch(e){return n=e,void setTimeout(r,1)}return t.domLoadedHandler()}}(this))()}return c.bind(window,"load",function(t){return function(){return t.domLoadedHandler()}}(this)),c.bind(window,"beforeunload",function(t){return function(e){var r,n;if(t.queueTimeout&&t.sendQueue(),n=+Date.now(),window.grWaitTime)for(r=n+50;r>n;)n=+Date.now()}}(this)),d&&c.bind(window,"pagehide",function(t){return function(e){var r,n;if(t.queueTimeout&&t.sendQueue(),n=+Date.now(),window.grWaitTime)for(r=n+50;r>n;)n=+Date.now()}}(this)),c.bind(window,"unload",function(t){return function(t){var e;if(window.grWaitTime)for(;e=+Date.now()?e.value:null):null},t._setInLocalStorage=function(t,e,r){return window.localStorage.setItem(t,JSON.stringify({expiredAt:+Date.now()+r,value:e}))},t}(),window.GrLocalStore=n,e.exports=n},{cookie:13}],4:[function(t,e,r){var n;n=function(){var t;return t=(new Date).getTime(),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var r,n;return r=(t+16*Math.random())%16|0,t=Math.floor(t/16),n="x"===e?r:3&r|8,n.toString(16)})},e.exports=n},{}],5:[function(t,e,r){var n,i,o,a,s,u,d,c,h,l,p,f;u=t("./guid"),a=t("cookie"),f=t("./utils"),o=/(^| )(clear|clearfix|active|hover|enabled|hidden|display|focus|disabled|ng-|growing-)[^\. ]*/g,s=/\.?([a-zA-Z0-9\-]+\.[a-zA-Z]{2,6})$/,l=["I","SPAN","EM","svg"],d=f.detectIE()||0/0,i=function(){function t(t){var e,r,n;this.node=t,this.name=t.tagName.toLowerCase(),f.hasAttr(t,"id")&&null===t.getAttribute("id").match(/^[0-9]/)&&(this.id=t.getAttribute("id")),this.isIgnore=f.hasAttr(t,"growing-ignore")||f.hasAttr(t,"data-growing-ignore"),f.hasAttr(t,"href")&&(e=t.getAttribute("href"),e&&0!==e.indexOf("javascript")&&(this.href=f.normalizePath(e.slice(0,320)))),f.hasAttr(t,"data-growing-info")&&(this.grObj=t.getAttribute("data-growing-info")),f.hasAttr(t,"data-growing-idx")&&(this.grIdx=parseInt(t.getAttribute("data-growing-idx"))),"input"===this.name&&f.hasAttr(t,"name")&&t.getAttribute("name")?this.klass=[t.getAttribute("name")]:(r=null!=(n=f.getKlassName(t,d))?n.replace(o,"").trim():void 0,(null!=r?r.length:void 0)>0&&(this.klass=r.split(/\s+/).sort()))}return t.prototype.path=function(){var t,e,r,n,i;if(n="/"+this.name,null!=this.id&&(n+="#"+this.id),null!=this.klass)for(i=this.klass,t=0,r=i.length;r>t;t++)e=i[t],n+="."+e;return n},t.prototype.hasObj=function(){return null!=this.grObj},t.prototype.hasIdx=function(){return null!=this.grIdx},t.prototype.isContainer=function(){return f.hasAttr(this.node,"data-growing-container")},t}(),n=function(){function t(){this.userId=null,this.sessionId="",this.lastSessionId="",this.cookieDomain(),this.guid=u}return t.prototype.duration10year=31536e4,t.prototype.duration30min=1800,t.prototype.duration15min=9e5,t.prototype.duration1min=6e4,t.prototype.cookieDomain=function(){var t,e;if(!this.grCookieDomains)try{t=window.location.hostname.split("."),this.grCookieDomains=0<=(e=t[t.length-1])&&255>=e?[window.location.hostname]:["."+t.slice(-2).join("."),"."+t.slice(-3).join(".")]}catch(r){this.grCookieDomains=[window.location.hostname]}return this.grCookieDomains},t.prototype.vid=function(){return this.userId?this.userId:(this.userId=a.getItem("gr_user_id"),this.userId?a.setItem("gr_user_id",this.userId,this.duration10year,"/",this.cookieDomain()):(this.userId=this.guid(),a.setItem("gr_user_id",this.userId,this.duration10year,"/",this.cookieDomain())),this.userId)},t.prototype.hasSid=function(){var t,e,r,n;return e=+Date.now(),this.sessionId&&this.lastUpdated&&e-this.lastUpdatedn;n++)if(i=o[n],i.match(/^gr_session_id_.*_/)&&i.slice(i.lastIndexOf("_")+1)!==e){a.removeItem(i,"/",this.cookieDomain());break}return a.setItem("gr_session_id_"+r+"_"+e,t,this.duration30min,"/",this.cookieDomain())},t.prototype.bindCS1WithSession=function(t){return null==t&&(t=this.sessionId),window.grcs.cs1?a.setItem("gr_cs1_"+t,window.grcs.cs1,this.duration30min,"/",this.cookieDomain()):void 0},t.prototype.handleCSChanged=function(t){var e;return this.isNeedToUpdateSessionByCS(t)?(this.sessionId=this.guid(),this.updateSessionId(this.sessionId,!1,t)):window.grcs.cs1&&(e=this.currentSessionId(t)[0])?a.setItem("gr_cs1_"+e,window.grcs.cs1,this.duration30min,"/",this.cookieDomain()):void 0},t.prototype.isNeedToUpdateSessionByCS=function(t){var e,r,n,i;return r=this.currentSessionId(t),i=r[0],n=r[1],e=this._currentSessionBindedCS1(i),i&&i.trim().length>0&&window.grcs.cs1&&e&&e!==window.grcs.cs1},t.prototype.currentSessionId=function(t){var e,r,n;return null==t&&(t=window.vds.accountId),n=a.getItem("gr_session_id_"+t||""),r="true"===a.getItem("gr_session_id_"+t+"_"+n),n&&n.indexOf("_")>=0&&(e=n.split("_"),n=e[0],r=e[1],r="true"===r,this.updateSessionId(n,r)),n&&"null"===n&&(n="",r=!1),[n,r]},t.prototype._currentSessionBindedCS1=function(t){return a.getItem("gr_cs1_"+t)},t.prototype.isSendNewVisit=function(){var t;return t=!1,this.hasSid()?this.getSidSendSuccess()||(t=!0):t=!0,t},t.prototype.getSidSendSuccess=function(t){var e,r,n;return null==t&&(t=window.vds.accountId),e=this.currentSessionId(t),n=e[0],r=e[1],r===!0},t.prototype.resetUserId=function(){return this.userId?a.setItem("gr_user_id",this.userId,this.duration10year,"/",this.cookieDomain()):void 0},t}(),h=["TR","LI","DL"],p=["A","BUTTON"],c={user:function(){return new n},path:function(t,e){var r,n,o,a,s,u,d,c,h,l,g,v,m,w,b,y,S,C,O;if(null==e&&(e=!1),a="",g=!1,n={},h=!1,c=!1,S=void 0,s=0,y=[],o=[],t===document)return{isIgnore:!0};if(t.tagName){for(r=new i(t);"body"!==r.name&&"html"!==r.name&&(n={x:r.path(),h:r.href,v:this.containerElemContent(r.node)},y.push(n.x),m=r.path(),r.isIgnore&&(g=!0),!h&&r.hasObj()&&(h=!0,d=r.grObj),c||(r.hasIdx()?(c=!0,u=r.grIdx):(O=r.path(),(-1!==O.indexOf("/dl")||-1!==O.indexOf("/tr")||-1!==O.indexOf("/li"))&&(c=!0,u=this.index(r.node)))),b=r.node.parentNode,e&&""!==a&&(-1!==f.indexOf(p,r.node.tagName)||r.isContainer())&&(h?n.obj=d:f.hasAttr(r.node.parentNode,"data-growing-info")&&(n.obj=r.node.parentNode.getAttribute("data-growing-info")),n.x=s,o.push(n)),a=m+a,s++,b&&b.tagName);)r=new i(b), 1===s&&(S=r.node);for(y.reverse(),l=0,v=o.length;v>l;l++)w=o[l],w.x=y.slice(0,s-w.x).join(""),c&&(w.idx=u),h&&(w.obj=d);return C={xpath:a,containerMessage:o,isIgnore:g},h&&(C.obj=d),c&&(C.idx=u),S&&(C.pnode=S),C}},index:function(t){var e,r,n,i,o,a,s;for(o=t;o&&"BODY"!==o.tagName&&-1===f.indexOf(h,o.tagName);)o=o.parentNode;if(o)for(a=o.parentNode,r=1,s=a.childNodes,e=0,n=s.length;n>e;e++)if(i=s[e],i.tagName===o.tagName){if(f.hasAttr(i,"data-growing-idx")&&(r=parseInt(i.getAttribute("data-growing-idx"))),i===o)return r;r+=1}},isLeaf:function(t){var e,r,n,i;if(t.hasChildNodes()&&"svg"!==t.tagName)for(i=t.childNodes,r=0,n=i.length;n>r;r++)if(e=i[r],1===e.nodeType)return!1;return!0},isParentOfLeaf:function(t){var e,r,n,i;if(!t.childNodes)return!1;if("svg"===t.tagName)return!1;for(i=t.childNodes,r=0,n=i.length;n>r;r++)if(e=i[r],!c.isLeaf(e))return!1;return!0},depthInside:function(t,e,r){var n,i,o,a;if(null==r&&(r=1),t.hasChildNodes()){if(r>e)return!1;for(a=t.childNodes,n=0,i=a.length;i>n;n++)if(o=a[n],1===o.nodeType&&!c.depthInside(o,e,r+1))return!1}return e>=r},onlyContainsChildren:function(t,e){var r,n,i,o;if(0===!t.children.length)return!1;for(o=t.children,n=0,i=o.length;i>n;n++)if(r=o[n],-1===f.indexOf(e,r.tagName))return!1;return!0},containerElemContent:function(t){var e;if(f.hasAttr(t,"data-growing-title")&&t.getAttribute("data-growing-title").length>0)return t.getAttribute("data-growing-title");if(f.hasAttr(t,"title")&&t.title.length>0)return f.processText(t.getAttribute("title"));if("BUTTON"===t.tagName){if(t.name.length>0)return t.name;if(c.onlyContainsChildren(t,l)&&null!=t.textContent&&(e=t.textContent.replace(/[\n \t]+/g," ").trim(),e.length>0&&e.length<50))return f.processText(e)}else if("A"===t.tagName){if(c.onlyContainsChildren(t,l)&&null!=t.textContent){if(e=t.textContent.replace(/[\n \t]+/g," ").trim(),e.length>0)return f.processText(e.length<=50?e:e.slice(0,50))}else if(f.hasAttr(t,"href")&&t.getAttribute("href").length>0)return t.getAttribute("href")}else if("LABEL"===t.tagName&&null!=t.textContent&&(e=t.textContent.replace(/[\n \t]+/g," ").trim(),e.length>0&&e.length<50))return f.processText(e)},isDOM:function(t){return"HTMLElement"in window?t&&t instanceof HTMLElement:!(!t||"object"!=typeof t||1!==t.nodeType||!t.nodeName)}},e.exports=c},{"./guid":4,"./utils":12,cookie:13}],6:[function(t,e,r){var n,i,o,a,s,u,d,c,h,l,p,f,g,v,m,w=[].slice;if(t("./shim"),i=t("./tracker"),n=t("./dom_observer"),m=t("./utils"),h=t("./guid"),u=[],c=new n,v=new i(c),window._gr_support_circle_pop_out=!0,a=function(){var t,e,r;r=arguments[0],t=2<=arguments.length?w.call(arguments,1):[];try{if(null!=v[r])return v[r].apply(v,t);if(null!=c[r])return c[r].apply(c,t)}catch(n){return e=n,console&&console.error(e)}},!window.vds||!window.vds.origin){for(null==window._vds&&(window._vds=[["setAccountId","22222-22222-22222-22222"]]),f=window._vds,l=0,p=f.length;p>l;l++)s=f[l],"track"===(g=s[0])?u.push(s):a.apply(null,s);window._vds={push:function(){return arguments.length>1?a.apply(null,arguments):a.apply(null,arguments[0])},track:function(){return c.track.apply(c,arguments)},clickOn:function(){return c.clickOn.apply(c,arguments)},impOn:function(){return c.impOn.apply(c,arguments)},trackPV:function(){return c.trackPageView(4)}},o=function(){var t,e,r;for(r=[],t=0,e=u.length;e>t;t++)s=u[t],r.push(a.apply(null,s));return r},m.identityWindow(),d=function(t){return function(e,r){return c.observe(e,r),t()}},-1===m.indexOf(["","localhost","127.0.0.1"],window.location.hostname)&&v.connect(d(o))}},{"./dom_observer":2,"./guid":4,"./shim":10,"./tracker":11,"./utils":12}],7:[function(t,e,r){var n,i,o,a,s=function(t,e){return function(){return t.apply(e,arguments)}},u=[].indexOf||function(t){for(var e=0,r=this.length;r>e;e++)if(e in this&&this[e]===t)return e;return-1};a=t("./utils"),o=["load-plugin","circle-mode","browse-mode"],i=["load-plugin","register-iframe","circle-mode","browse-mode","page-load","circle-load"],n=function(){function t(){this.registerInnerIframe=s(this.registerInnerIframe,this),this.sendPageLoad=s(this.sendPageLoad,this),this.isSdkEvent=s(this.isSdkEvent,this),this.allowOrigin=window.vds.origin,this.bindEvents()}return t.prototype.bindEvents=function(){return a.bind(window,"message",function(t){return function(e){var r,n,i,s;if(r=e.data,r.ai===window.vds.accountId&&(n=r.mode||r.circleMode,t.isSdkEvent(n)&&(!r.fsna||"sdk"===r.fsna))){if("grcw-inner-iframe"===r.sna&&a.isSpreadPostMessage())return void parent.postMessage(e.data,"*");if(i=r.mode,u.call(o,i)>=0)a.spreadToInnerIframes(r);else if(r.tna!==window.grSource.name&&r.tna&&r.tid&&a.isSpreadPostMessage())return void a.spreadToInnerIframes(r);if(s=r.mode,u.call(o,s)>=0||r.tna===window.grSource.name||e.origin===window.vds.origin||-1!==a.indexOf(["www.growingio.com","growingio.com"],e.origin.split("://")[1]))switch(e.origin!==window.vds.origin&&(window.vds.origin=e.origin),r.mode){case"load-plugin":return t.loadPluginInner();case"circle-mode":return t.startCircle();case"browse-mode":return t.stopCircle()}}}}(this))},t.prototype.isSdkEvent=function(t){return u.call(i,t)>=0},t.prototype.sendPageLoad=function(t){var e,r,n,i,o;null==t&&(t=null),i=(null!=(n=window.vds)?n.pathCaseSensitive:void 0)?window.location.toString():window.location.toString().toLowerCase();for(e in vds)o=vds[e],"function"==typeof o&&(vds[e]=a.functionSerialization(o));return r={circleMode:"page-load",url:i,ai:window.vds.accountId,ht:window.vds.hashtag,sna:window.grSource.name,sid:window.grSource.id,tna:"",fsna:"sdk",add_on_grSource:{grSource:window.grSource,vds:window.vds,add_on_origin:this.allowOrigin}},(null!=t?t.pg:void 0)&&(r.pa=t),parent.postMessage(r,"*")},t.prototype.registerInnerIframe=function(t){var e;return null==t&&(t=null),"grcw"!==window.grSource.name?(e={circleMode:"register-iframe",url:window.location.toString(),ai:window.vds.accountId,ht:window.vds.hashtag,sna:window.grSource.name,sid:window.grSource.id,tna:"",fsna:"sdk"},(null!=t?t.pg:void 0)&&(e.pa=t),parent.postMessage(e,"*")):void 0},t.prototype.loadPluginInner=function(){var t,e,r,n,i,o,s,u;for(this.pluginLoaded=!1,t=a.getCirclePluginFileName(window._gr_support_circle_pop_out),s=document.getElementsByTagName("script"),i=0,o=s.length;o>i;i++)if(n=s[i],u=n.getAttribute("src"),null!=u&&-1!==u.indexOf("/"+t+".js")){this.pluginLoaded=!0;break}return this.pluginLoaded||(e=document.createElement("script"),e.type="text/javascript",e.charset="UTF-8",e.src=-1===this.allowOrigin.indexOf("http")?"//"+this.allowOrigin+"/assets/javascripts/"+t+".js":this.allowOrigin+"/assets/javascripts/"+t+".js",document.head.appendChild(e),window._gr_support_circle_pop_out===!0)?void 0:(r=document.createElement("link"),r.rel="stylesheet",r.href=-1===this.allowOrigin.indexOf("http")?"//"+this.allowOrigin+"/assets/stylesheets/circle-plugin.css":this.allowOrigin+"/assets/stylesheets/circle-plugin.css",document.head.appendChild(r))},t.prototype.startCircle=function(){var t,e,r,n,i,o;if(t=a.getCirclePluginFileName(window._gr_support_circle_pop_out),!this.pluginLoaded)for(i=document.getElementsByTagName("script"),r=0,n=i.length;n>r;r++)if(e=i[r],o=e.getAttribute("src"),null!=o&&-1!==o.indexOf("/"+t+".js")){this.pluginLoaded=!0;break}return this.pluginLoaded?this.publishCircle():void 0},t.prototype.stopCircle=function(){return"undefined"!=typeof CircleEvents&&null!==CircleEvents?CircleEvents.publish("circle:stop"):void 0},t.prototype.publishCircle=function(){return"undefined"!=typeof CircleEvents&&null!==CircleEvents?(this.registerInnerIframe(),CircleEvents.publish("circle:start")):setTimeout(function(t){return function(){return t.publishCircle()}}(this),2e3)},t}(),e.exports=n},{"./utils":12}],8:[function(t,e,r){var n,i,o,a,s,u,d,c,h,l=function(t,e){return function(){return t.apply(e,arguments)}};u=t("lzstring"),h=t("./utils"),a=h.detectIE()||0/0,d=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./),o=d?parseInt(d[2],10):!1,s=!1,o&&22>o?n=!1:(n=!0,c=navigator.userAgent,"ArrayBufferView"in window||(-1!==c.indexOf("Android")?n=!1:-1!==c.indexOf("CPU OS ")?-1!==c.indexOf("CPU OS 6_")?n=!1:-1!==c.indexOf("CPU OS 5_")?n=!1:-1!==c.indexOf("CPU OS 4_")?n=!1:-1!==c.indexOf("CPU OS 3_")&&(n=!1):-1!==c.indexOf("CPU iPhone OS ")?-1!==c.indexOf("iPhone OS 6_")?n=!1:-1!==c.indexOf("iPhone OS 5_")?n=!1:-1!==c.indexOf("iPhone OS 4_")&&(n=!1):-1!==c.indexOf("Intel Mac OS X")&&(-1!==c.indexOf("Mac OS X 10_6")?n=!1:-1!==c.indexOf("Mac OS X 10_7")&&(n=!1)))),i=function(){function t(t,e,r,n){this.user=t,this.urlMap=e,this.callback=r,this.dispathMessage2Listener=n,this.dispatchEvents=l(this.dispatchEvents,this),this.imgSendClear=l(this.imgSendClear,this),this.send=l(this.send,this)}var e,r,i;return e=[],i=[],r=[],t.prototype.connect=function(t){return s=t.isBot,"function"==typeof this.callback?this.callback(this.user,this.send):void 0},t.prototype.send=function(t,e){var r,n,i;null==e&&(e="action");try{if(window.grBlind)return;return i="pv"===e&&2===t.length?t[0].s:"",r="undefined"==typeof Uint8Array||null===Uint8Array||s?window.XMLHttpRequest&&7!==a&&!s?u.compressToUTF16(JSON.stringify(t)):u.compressToEncodedURIComponent(JSON.stringify(t)):u.compressToUint8Array(JSON.stringify(t)),this.sendRemote(r,e,i),setTimeout(function(e){return function(){return e.dispatchEvents(t)}}(this),10)}catch(o){n=o}},t.prototype.sendRemote=function(t,e,o){var u,d,c;return c=this.urlMap[e],window.grWaitTime=+Date.now()+300,window.XMLHttpRequest&&7!==a&&!s?(u=new XMLHttpRequest,"withCredentials"in u?(u.open("POST",c+"?stm="+ +Date.now(),!0),u.withCredentials=!0,u.onreadystatechange=function(t){return function(){return 4===u.readyState&&(t.removeAjax(u),window.grWaitTime=+Date.now()+10,o&&""!==o&&200===u.status)?t.user.updateSessionIdSendStatus(!0,o):void 0}}(this),u.send("undefined"!=typeof ArrayBuffer&&null!==ArrayBuffer?n?t:t.buffer:t),r.push(u)):"undefined"!=typeof XDomainRequest&&(u=new XDomainRequest,"http:"===document.location.protocol&&(c=c.replace("https://","http://")),u.open("POST",c+"?stm="+ +Date.now()),u.onload=function(t){return function(){return t.removeXDR(u),o&&""!==o?t.user.updateSessionIdSendStatus(!0,o):void 0}}(this),u.onerror=function(t){return function(e){return t.removeXDR(u)}}(this),u.onprogress=function(){return{}},u.ontimeout=function(){return{}},u.send(t),i.push(u))):("http:"===document.location.protocol&&(c=c.replace("https://","http://")),d=c+"?data="+t+"&stm="+ +Date.now(),d.length<=2036&&this.imgSend(d,o)),window.trackHostUrl=c},t.prototype.removeAjax=function(t){var e;return e=r.indexOf(t),-1!==e?r.splice(e,1):void 0},t.prototype.removeXDR=function(t){var e;return e=h.indexOf(i,t),-1!==e&&i.splice(e,1),window.grWaitTime=+Date.now()+10},t.prototype.imgSend=function(t,e){var r;return r=document.createElement("img"),r.width=1,r.height=1,r.onload=function(t){return function(){return t.imgSendClear(r),e&&""!==e?t.user.updateSessionIdSendStatus(!0,e):void 0}}(this),r.onerror=r.onabort=function(t){return function(){return t.imgSendClear(r)}}(this),r.src=t,i.push(r)},t.prototype.imgSendClear=function(t){return t.onload=null,t.onerror=null,t.onabort=null,this.removeXDR(t)},t.prototype.dispatchEvents=function(t){var e,r;for(e=0,r=[];ee?t.className:t.getAttribute("class")},normalizePath:function(t){var e;return e=t.length,e>1&&"/"===t.charAt(e-1)?t.slice(0,e-1):t},query:function(){var t,e;return t=window.location.search,t=t.length>1&&"?"===t.charAt(0)?t.slice(1):window.vds.hashtag&&-1!==window.location.hash.indexOf("?")?window.location.hash.split("?")[1]:t,(null!=(e=window.vds)?e.pathCaseSensitive:void 0)?t:t.toLowerCase()},functionSerialization:function(t){return"function"==typeof t&&(t=t.toString()),t},functionDeserialization:function(t){var e,r,n;return"string"==typeof t&&(n=/function[^\(]*\(([^\)]*)\)[^\{]*{([^\}]*)\}/,r=t.match(n))?(e=r[1].split(",").map(arg(function(){return arg.replace(/\s+/,"")})),new Function(e,r[2])):t},parentOfLeafText:function(t){var e,r,n,i,a,s;if(n="",!t.childNodes)return"";for(s=t.childNodes,i=0,a=s.length;a>i;i++)e=s[i],3===e.nodeType&&(null!=e.textContent?r=e.textContent.trim():null!=e.data&&(r=e.data.trim()),r.length>0&&(n+=r+" "));return n=n.replace(/[\n \t]+/g," ").trim(),n.length>0&&n.length<50?o.processText(n):void 0},indexOf:function(t,e){var r,n,i;if(null!=Array.prototype.indexOf)return t.indexOf(e);for(n=t.length,r=-1;++r0)?parseInt(i.substring(e+5,i.indexOf(".",e)),10):(n=i.indexOf("Trident/"),n>0?(r=i.indexOf("rv:"),parseInt(i.substring(r+3,i.indexOf(".",r)),10)):(t=i.indexOf("Edge/"),t>0?parseInt(i.substring(t+5,i.indexOf(".",t)),10):!1))},detectIOS:function(){return!!window.navigator.userAgent.match(/(iPad|iPhone|iPod)/g)},hashCode:function(t){var e,r,n;if(null==t&&(t=""),r=0,null==t||"boolean"==typeof t||0===t.length)return r;for(n=0;nn;n++)e=r[n],o.push(this.spread(t,e));return o},spread:function(t,e){var r;return r=null!=e?e.contentWindow:void 0,r?r.postMessage(t,"*"):void 0},processText:function(t){return null==window.vds.textEncryptFunc?t:null!=t?o.functionDeserialization(window.vds.textEncryptFunc).call(this,t):void 0},isSpreadPostMessage:function(){var t,e;if(e=null,parent!==window)try{e=parent.location.href}catch(r){t=r,e=document.referrer}else parent===self&&(e=location.href);return/.*growingio.*\/projects\/.*\/circle\/.*/.test(e)}},e.exports=o},{"./guid":4}],13:[function(t,e,r){var n=/^(\.co\.|\.com\.|\.org\.|\.edu\.|\.net\.)/,i={getItem:function(t){return t?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(t,e,r,n,i,o){if(!t||/^(?:expires|max\-age|path|domain|secure)$/i.test(t))return!1;var a="";if(r)switch(r.constructor){case Number:a=r===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; expires="+new Date((new Date).getTime()+1e3*r).toUTCString();break;case String:a="; expires="+r;break;case Date:a="; expires="+r.toUTCString()}return document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+a+(i?"; domain="+i:"")+(n?"; path="+n:"")+(o?"; secure":""),!0},removeItem:function(t,e,r){return this.hasItem(t)?(document.cookie=encodeURIComponent(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(r?"; domain="+r:"")+(e?"; path="+e:""),!0):!1},hasItem:function(t){return t?new RegExp("(?:^|;\\s*)"+encodeURIComponent(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie):!1},keys:function(){for(var t=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),e=t.length,r=0;e>r;r++)t[r]=decodeURIComponent(t[r]);return t}},o={getItem:i.getItem,hasItem:i.hasItem,keys:i.keys,setItem:function(t,e,r,o,a,s){for(var u=0;ut?"0"+t:t}function this_value(){return this.valueOf()}function quote(t){return rx_escapable.lastIndex=0,rx_escapable.test(t)?'"'+t.replace(rx_escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var r,n,i,o,a,s=gap,u=e[t];switch(u&&"object"==typeof u&&"function"==typeof u.toJSON&&(u=u.toJSON(t)),"function"==typeof rep&&(u=rep.call(e,t,u)),typeof u){case"string":return quote(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(u)){for(o=u.length,r=0;o>r;r+=1)a[r]=str(r,u)||"null";return i=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,i}if(rep&&"object"==typeof rep)for(o=rep.length,r=0;o>r;r+=1)"string"==typeof rep[r]&&(n=rep[r],i=str(n,u),i&&a.push(quote(n)+(gap?": ":":")+i));else for(n in u)Object.prototype.hasOwnProperty.call(u,n)&&(i=str(n,u),i&&a.push(quote(n)+(gap?": ":":")+i));return i=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,i}}var rx_one=/^[\],:{}\s]*$/,rx_two=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,rx_three=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,rx_four=/(?:^|:|,)(?:\s*\[)+/g,rx_escapable=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,rx_dangerous=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},Boolean.prototype.toJSON=this_value,Number.prototype.toJSON=this_value,String.prototype.toJSON=this_value);var gap,indent,meta,rep;"function"!=typeof JSON.stringify&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(t,e,r){var n;if(gap="",indent="","number"==typeof r)for(n=0;r>n;n+=1)indent+=" ";else"string"==typeof r&&(indent=r);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(t,e){var r,n,i=t[e];if(i&&"object"==typeof i)for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n=walk(i,r),void 0!==n?i[r]=n:delete i[r]);return reviver.call(t,e,i)}var j;if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),rx_one.test(text.replace(rx_two,"@").replace(rx_three,"]").replace(rx_four,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})}()},{}],15:[function(t,e,r){var n=function(){var t=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",r={compressToUTF16:function(e){return null==e?"":r._compress(e,15,function(e){return t(e+32)})+" "},compressToUint8Array:function(t){for(var e=r.compress(t),n=new Uint8Array(2*e.length),i=0,o=e.length;o>i;i++){var a=e.charCodeAt(i);n[2*i]=a>>>8,n[2*i+1]=a%256}return n},compressToEncodedURIComponent:function(t){return null==t?"":r._compress(t,6,function(t){return e.charAt(t)})},compress:function(e){return r._compress(e,16,function(e){return t(e)})},_compress:function(t,e,r){if(null==t)return"";var n,i,o,a={},s={},u="",d="",c="",h=2,l=3,p=2,f=[],g=0,v=0;for(o=0;on;n++)g<<=1,v==e-1?(v=0,f.push(r(g)),g=0):v++;for(i=c.charCodeAt(0),n=0;8>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1}else{for(i=1,n=0;p>n;n++)g=g<<1|i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i=0;for(i=c.charCodeAt(0),n=0;16>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1}h--,0==h&&(h=Math.pow(2,p),p++),delete s[c]}else for(i=a[c],n=0;p>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1;h--,0==h&&(h=Math.pow(2,p),p++),a[d]=l++,c=String(u)}if(""!==c){if(Object.prototype.hasOwnProperty.call(s,c)){if(c.charCodeAt(0)<256){for(n=0;p>n;n++)g<<=1,v==e-1?(v=0,f.push(r(g)),g=0):v++;for(i=c.charCodeAt(0),n=0;8>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1}else{for(i=1,n=0;p>n;n++)g=g<<1|i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i=0;for(i=c.charCodeAt(0),n=0;16>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1}h--,0==h&&(h=Math.pow(2,p),p++),delete s[c]}else for(i=a[c],n=0;p>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1;h--,0==h&&(h=Math.pow(2,p),p++)}for(i=2,n=0;p>n;n++)g=g<<1|1&i,v==e-1?(v=0,f.push(r(g)),g=0):v++,i>>=1;for(;;){if(g<<=1,v==e-1){f.push(r(g));break}v++}return f.join("")}};return r}();e.exports=n},{}],16:[function(t,e,r){function n(t){return'"'+t.replace(/"/,'\\"')+'"'}function i(t){if("string"!=typeof t)throw Error("Invalid request opion. attribute must be a non-zero length string.");if(t=t.trim(),!t)throw Error("Invalid request opion. attribute must be a non-zero length string.");if(!t.match(y))throw Error("Invalid request option. invalid attribute name: "+t);return t}function o(t){if(!t.trim().length)throw Error("Invalid request option: elementAttributes must contain at least one attribute.");for(var e={},r={},n=t.split(/\s+/),o=0;o>>0},t.prototype.nodeId=function(e){var r=e[t.ID_PROP];return r||(r=e[t.ID_PROP]=t.nextId_++),r},t.prototype.set=function(t,e){var r=this.nodeId(t);this.nodes[r]=t,this.values[r]=e},t.prototype.get=function(t){var e=this.nodeId(t);return this.values[e]},t.prototype.has=function(t){return this.nodeId(t)in this.nodes},t.prototype["delete"]=function(t){var e=this.nodeId(t);delete this.nodes[e],this.values[e]=void 0},t.prototype.keys=function(){var t=[];for(var e in this.nodes)this.isIndex(e)&&t.push(this.nodes[e]);return t},t.ID_PROP="__mutation_summary_node_map_id__",t.nextId_=1,t}();!function(t){t[t.STAYED_OUT=0]="STAYED_OUT",t[t.ENTERED=1]="ENTERED",t[t.STAYED_IN=2]="STAYED_IN",t[t.REPARENTED=3]="REPARENTED",t[t.REORDERED=4]="REORDERED",t[t.EXITED=5]="EXITED"}(d||(d={}));var h=function(){function t(t,e,r,n,i,o,a,s){void 0===e&&(e=!1),void 0===r&&(r=!1),void 0===n&&(n=!1),void 0===i&&(i=null),void 0===o&&(o=!1),void 0===a&&(a=null),void 0===s&&(s=null),this.node=t,this.childList=e,this.attributes=r,this.characterData=n,this.oldParentNode=i,this.added=o,this.attributeOldValues=a,this.characterDataOldValue=s,this.isCaseInsensitive=this.node.nodeType===Node.ELEMENT_NODE&&this.node instanceof HTMLElement,this.isCaseInsensitive&&(this.isCaseInsensitive="undefined"!=typeof HTMLDocument?this.node.ownerDocument instanceof HTMLDocument:this.node.ownerDocument instanceof Document)}return t.prototype.getAttributeOldValue=function(t){return this.attributeOldValues?(this.isCaseInsensitive&&(t=t.toLowerCase()),this.attributeOldValues[t]):void 0},t.prototype.getAttributeNamesMutated=function(){var t=[];if(!this.attributeOldValues)return t;for(var e in this.attributeOldValues)t.push(e);return t},t.prototype.attributeMutated=function(t,e){ this.attributes=!0,this.attributeOldValues=this.attributeOldValues||{},t in this.attributeOldValues||(this.attributeOldValues[t]=e)},t.prototype.characterDataMutated=function(t){this.characterData||(this.characterData=!0,this.characterDataOldValue=t)},t.prototype.removedFromParent=function(t){this.childList=!0,this.added||this.oldParentNode?this.added=!1:this.oldParentNode=t},t.prototype.insertedIntoParent=function(){this.childList=!0,this.added=!0},t.prototype.getOldParent=function(){if(this.childList){if(this.oldParentNode)return this.oldParentNode;if(this.added)return null}return this.node.parentNode},t}(),l=function(){function t(){this.added=new c,this.removed=new c,this.maybeMoved=new c,this.oldPrevious=new c,this.moved=void 0}return t}(),p=function(t){function e(e,r){t.call(this),this.rootNode=e,this.reachableCache=void 0,this.wasReachableCache=void 0,this.anyParentsChanged=!1,this.anyAttributesChanged=!1,this.anyCharacterDataChanged=!1;for(var n=0;n1)throw Error("Invalid request option. all has no options.");n.queries.push({all:!0})}else if("attribute"in s){var u={attribute:i(s.attribute)};if(u.elementFilter=b.parseSelectors("*["+u.attribute+"]"),Object.keys(s).length>1)throw Error("Invalid request option. attribute has no options.");n.queries.push(u)}else if("element"in s){var d=0,c=Object.keys(s);c.forEach(function(t){s.hasOwnProperty(t)&&d++});var u={element:s.element,elementFilter:b.parseSelectors(s.element)};if(s.hasOwnProperty("elementAttributes")&&(u.attributeList=o(s.elementAttributes),d--),d>1)throw Error("Invalid request option. element only allows elementAttributes option.");n.queries.push(u)}else{if(!s.characterData)throw Error("Invalid request option. Unknown query request.");if(Object.keys(s).length>1)throw Error("Invalid request option. characterData has no options.");n.queries.push({characterData:!0})}}return n},t.prototype.createSummaries=function(t){if(!t||!t.length)return[];for(var e=new f(this.root,t,this.elementFilter,this.calcReordered,this.options.oldPreviousSibling),r=[],n=0;n0&&null===o.exec(p[f])&&(h+="."+p[f]);e=h+e,c=c.parentElement}}var g={nodeType:t.nodeType};switch(1===g.nodeType&&-1!==u.indexOf(t.tagName)&&(g.dom=t),g.nodeType){case 10:var v=t;g.name=v.name,g.publicId=v.publicId,g.systemId=v.systemId;break;case 8:return null;case 3:if("/"===e||0===t.textContent.trim().length)return null;g.textContent=t.textContent.replace(/[\n \t]+/g," ").trim(),g.textContent.length>0&&(g.leaf=!0,g.text=g.textContent,g.path=e.slice(0,-1));break;case 1:if(t.style){var m=t.style.display;if("block"!==m&&"inline"!==m&&("none"===m||"none"===window.getComputedStyle(t).display)&&"A"!==t.tagName&&null===t.querySelector("a"))return null}var w=t;if(g.tagName=w.tagName,g.attributes={any:w.hasAttributes()},e+=w.tagName.toLowerCase(),w.hasAttribute("id")&&null===w.getAttribute("id").match(/^[0-9]/)&&(e+="#"+w.getAttribute("id")),"INPUT"==w.tagName&&w.hasAttribute("name"))e+="."+w.getAttribute("name");else if(w.hasAttribute("class")){p=w.getAttribute("class").trim().split(/\s+/).sort();for(var f=0;f0&&null===o.exec(p[f])&&(e+="."+p[f])}w.hasAttribute("href")&&(g.attributes.href=w.getAttribute("href"));var b,y=!0;if(e+="/",w.childNodes.length>0){if(g.childNodes=[],w.hasAttribute("growing-ignore")||w.hasAttribute("data-growing-ignore"))return null;w.hasAttribute("data-growing-container")&&(g.isContainer=!0);var S,C,O=0,N=-1!==u.indexOf(w.tagName);if(N)for(var x=w.firstChild;x;x=x.nextSibling)if(1===x.nodeType&&-1===s.indexOf(x.tagName)){N=!1;break}for(var I=w.firstChild;I;I=I.nextSibling){if(S=w.hasAttribute("data-growing-info")?w.getAttribute("data-growing-info"):null,C=w.hasAttribute("data-growing-idx")?parseInt(w.getAttribute("data-growing-idx")):-1,1===I.nodeType){if(1===n[I.tagName]){y=!1;continue}if(I.hasAttribute("growing-ignore")||I.hasAttribute("data-growing-ignore"))continue;if(N&&-1!==s.indexOf(I.tagName)&&(y=!1,!I.children||0===I.children.length))continue;-1!==i.indexOf(I.tagName)&&(O+=1,C=O),I.hasAttribute("data-growing-idx")&&(O=parseInt(I.getAttribute("data-growing-idx")),C=O),I.hasAttribute("data-growing-info")&&(S=I.getAttribute("data-growing-info"))}var E=this.serializeNode(I,e,O>0&&C>0?O:r,S||d);if(null===E)3!=I.nodeType&&(y=!1);else if("undefined"!=typeof E.childNodes){y=!1,b=!0;for(var A=0;A0&&C>0?E.idx=O:r&&(E.idx=r),S?E.obj=S:d&&(E.obj=d),g.childNodes.push(E)}else{if((0===w.offsetWidth||0===w.offsetHeight)&&"A"!==w.tagName&&"BUTTON"!==w.tagName)return null;E.leaf&&(r&&(E.idx=r),d&&(E.obj=d),g.childNodes.push(E))}}}else g.childNodes=[];if(y)if(g.leaf=!0,"IMG"===w.tagName&&(delete g.attributes.href,w.src&&-1===w.src.indexOf("data:image")&&(g.attributes.href=w.src)),w.hasAttribute("data-growing-title")&&w.getAttribute("data-growing-title").length>0)g.text=w.getAttribute("data-growing-title");else if(w.hasAttribute("title")&&w.getAttribute("title").length>0)g.text=w.getAttribute("title");else if("IMG"===w.tagName){if(w.alt)g.text=w.alt;else if(g.attributes.href){var D=g.attributes.href.split("?")[0];if(D){var T=D.split("/");T.length>0&&(g.text=T[T.length-1])}}}else if("INPUT"===w.tagName&&-1!==a.indexOf(w.type))g.text=w.value;else if("svg"===w.tagName){for(var k=w.firstChild;k;k=k.nextSibling)if("use"===k.tagName&&k.getAttribute("xlink:href")){g.text=k.getAttribute("xlink:href");break}}else{var _=w.textContent.trim();if(0===_.length&&"I"!==w.tagName&&"A"!==w.tagName&&"use"!==w.tagName)return null;g.text=_}else{if(w.hasAttribute("data-growing-title")&&w.getAttribute("data-growing-title").length>0)g.text=w.getAttribute("data-growing-title");else if(w.hasAttribute("title")&&w.getAttribute("title").length>0)g.text=w.getAttribute("title");else if("svg"===w.tagName)for(var k=w.firstChild;k;k=k.nextSibling)if("use"===k.tagName&&k.getAttribute("xlink:href")){g.text=k.getAttribute("xlink:href");break}w.hasAttribute("data-growing-idx")&&(g.idx=parseInt(w.getAttribute("data-growing-idx"))),w.hasAttribute("data-growing-info")&&(g.obj=w.getAttribute("data-growing-info"))}g.path=e.slice(0,-1)}return g},t.prototype.serializeAddedAndMoved=function(t,e,r){var o=this,a=t.concat(e).concat(r);if(0===a.length)return[];var s=new MutationSummary.NodeMap,u={};a.forEach(function(t){t&&(u[s.nodeId(t)]=!0)});var d=[];a.forEach(function(t){if(t&&1!==n[t.tagName]){var e=t.parentNode;if(e&&!u[s.nodeId(e)]&&"undefined"!=typeof e.getAttribute){var r=e.getAttribute("id"),i=e.getAttribute("class"),o=t.getAttribute("class");if(!r||-1===r.toLowerCase().indexOf("clock")&&-1===r.toLowerCase().indexOf("countdown")&&-1===r.toLowerCase().indexOf("time"))if(!i||-1===i.toLowerCase().indexOf("clock")&&-1===i.toLowerCase().indexOf("countdown")&&-1===i.toLowerCase().indexOf("time"))if(e.getAttribute("data-countdown"));else if(o&&-1!==o.indexOf("daterangepicker"));else if(t.hasAttribute("growing-ignore")||t.hasAttribute("data-growing-ignore"));else{for(;e&&e!==document&&"#document-fragment"!==e.nodeName&&"BODY"!==e.tagName&&!e.hasAttribute("growing-ignore")&&!e.hasAttribute("data-growing-ignore");)e=e.parentNode;(null===e||"BODY"===e.tagName||"#document-fragment"===e.nodeName)&&d.push(t)}else;else;}}});var c=[];return d.forEach(function(t){for(var e=void 0,r=t;r&&"BODY"!==r.tagName&&-1===i.indexOf(r.tagName);)r=r.parentNode;if(r&&"BODY"!==r.tagName){var n=r.parentNode;if(null==n)return;for(var a=1,s=n.childNodes[a-1];a<=n.childNodes.length;a++)if(s.tagName===r.tagName&&s===r){e=a;break}}var u=o.serializeNode(t,void 0,e);null!==u&&c.push(u)}),delete u,delete d,c},t.prototype.serializeValueChanges=function(t){var e=this,r=[],n=new MutationSummary.NodeMap;return t.forEach(function(t){var r=n.get(t);r||(r=e.serializeNode(t),n.set(t,r))}),n.keys().forEach(function(t){var e=n.get(t);e&&r.push(e)}),r},t.prototype.applyChanged=function(t){var e=this,r=t[0],n=r.added,i=t[1];(!window.vds.impCtrlDua||window.vds.impCtrlDua&&Date.now()-window.grImpCtrl<=window.vds.impCtrlDua)&&setTimeout(function(){var t=e.serializeAddedAndMoved(n,[],[]),r=[].concat(i.attributeChanged["data-growing-title"],i.attributeChanged.src);if(r&&r.length>0){var o=e.serializeValueChanges(r);if(o&&o.length>0)for(var a=0;a0&&(t=t.concat(s))}}e.mirror.applyChanged([],t)},10)},t}();r.Client=d},{"mutation-summary":16}]},{},[6]);