1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},i=Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="8e161360-f827-452e-8dc8-c76cefe9470a",t._sentryDebugIdIdentifier="sentry-dbid-8e161360-f827-452e-8dc8-c76cefe9470a")}catch(t){}}(),(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4988],{43424:function(t,i,r){var o;o=function(){"use strict";let t;var i,o,s,n,a,l,d,c,h,p,u,g,f,y,m,v,b,w,C,k,x,I,_,S,E,M,P,A,L,T,O,D,N,B,z,R,j,F,U,V,W,$,H,q,K,Z,G,J,Q,Y,X,ee,et,ei,er,eo,es,en,ea,el,ed,ec,eh,ep,eu,eg,ef,ey,em,ev,eb,ew,eC,ek,ex,eI,e_,eS=0;function eE(t){return"__private_"+eS+++"_"+t}function eM(t,i){if(!Object.prototype.hasOwnProperty.call(t,i))throw TypeError("attempted to use private field on non-instance");return t}let eP="clevertap-prod.com";var eA=eE("accountId"),eL=eE("region"),eT=eE("targetDomain"),eO=eE("dcSdkversion"),eD=eE("token");class eN{constructor(){let{id:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:eP,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";Object.defineProperty(this,eA,{writable:!0,value:void 0}),Object.defineProperty(this,eL,{writable:!0,value:""}),Object.defineProperty(this,eT,{writable:!0,value:eP}),Object.defineProperty(this,eO,{writable:!0,value:""}),Object.defineProperty(this,eD,{writable:!0,value:""}),this.id=t,i&&(this.region=i),r&&(this.targetDomain=r),o&&(this.token=o)}get id(){return eM(this,eA)[eA]}set id(t){eM(this,eA)[eA]=t}get region(){return eM(this,eL)[eL]}set region(t){eM(this,eL)[eL]=t}get dcSDKVersion(){return eM(this,eO)[eO]}set dcSDKVersion(t){eM(this,eO)[eO]=t}get targetDomain(){return eM(this,eT)[eT]}set targetDomain(t){eM(this,eT)[eT]=t}get token(){return eM(this,eD)[eD]}set token(t){eM(this,eD)[eD]=t}get finalTargetDomain(){return this.region?`${this.region}.${this.targetDomain}`:this.targetDomain===eP?`eu1.${this.targetDomain}`:this.targetDomain}get dataPostPEURL(){return`https://${this.finalTargetDomain}/defineVars`}get dataPostURL(){return`https://${this.finalTargetDomain}/a?t=96`}get recorderURL(){return`https://${this.finalTargetDomain}/r?r=1`}get emailURL(){return`https://${this.finalTargetDomain}/e?r=1`}}let eB=RegExp("^\\s+|\\.|:|\\$|'|\"|\\\\|\\s+$","g"),ez=RegExp("^\\s+|'|\"|\\\\|\\s+$","g"),eR=RegExp("'","g"),ej="clear",eF="Charged ID",eU="WZRK_CHARGED_ID",eV="WZRK_G",eW="WZRK_K",e$="WZRK_CAMP",eH="WZRK_CAMP_G",eq="WZRK_EV",eK="WZRK_META",eZ="WZRK_PR",eG="WZRK_ACCOUNT_ID",eJ="WZRK_ARP",eQ="WZRK_L",eY="optOut",eX="useIP",e1="WZRK_X",e0="push",e2="wzrk_",e4="wzrk_id",e3="Notification Viewed",e6="Notification Clicked",e5="WZRK_FPU",e7="WZRK_PSD",e8="$incr",e9="$add",te="$remove",tt="$delete",ti="WZRK_INBOX_CONFIG",tr="WZRK_INBOX",to="WZRK_PE",ts="wzrk_fetch",tn="WZRK_PUSH_CONFIG",ta="WZRK_APPLICATION_SERVER_KEY_RECIEVED",tl="WZRK_WEB_PUSH_CONFIG_RECEIVED",td="WZRK_NOTIFICATION_PUSH_DEFERRED",tc="vapid_migration_prompt_shown",th="notif_last_time",tp="pnWrapper",tu="WZRK_POPUP_LOADING",tg="WZRK_QC",tf="WZRK_BLOCK",ty="WZRK_TV_CONTROLS",tm="WZRK_ISOLATE_SD",tv="WZRK_MUTE_EXPIRY",tb="CT_EIT_FALLBACK",tw="WZRK_GEO",tC="WZRK2014WZRK",tk={KV_PAIR:1,BANNER:2,CAROUSEL:3,VISUAL_BUILDER:4,CUSTOM_HTML:5,JSON:6},tx={HTML:"html",FORM:"form",JSON:"json"},tI="wizPIPDiv",t_
vendor: 14,206 bytes, line 1
1={desktop:{size:48,viewBox:"0 0 48 48",close:'<rect width="48" height="48" rx="24" fill="black" fill-opacity="0.4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M30.3651 16.2225C30.7555 15.8321 31.3886 15.8323 31.7792 16.2225C32.1697 16.613 32.1697 17.246 31.7792 17.6366L25.4139 24.0018L31.7772 30.3651C32.1674 30.7556 32.1676 31.3887 31.7772 31.7791C31.3868 32.1696 30.7537 32.1693 30.3632 31.7791L23.9999 25.4159L17.6376 31.7791C17.2471 32.1696 16.6141 32.1695 16.2235 31.7791C15.833 31.3886 15.833 30.7556 16.2235 30.3651L22.5858 24.0018L16.2206 17.6366C15.8302 17.246 15.8301 16.613 16.2206 16.2225C16.6111 15.8321 17.2441 15.8321 17.6346 16.2225L23.9999 22.5877L30.3651 16.2225Z" fill="white"></path>',play:'<rect width="48" height="48" rx="24" fill="black" fill-opacity="0.4"></rect><path d="M16.7148 32.3258V15.6742C16.7148 14.9175 17.5227 14.435 18.1889 14.7937L33.6511 23.1195C34.3523 23.4971 34.3523 24.5029 33.6511 24.8805L18.1889 33.2063C17.5227 33.565 16.7148 33.0825 16.7148 32.3258Z" fill="white"></path>',pause:'<rect width="48" height="48" rx="24" fill="black" fill-opacity="0.4"></rect><path d="M21 14C21.5523 14 22 14.4477 22 15V33C22 33.5523 21.5523 34 21 34H19C18.4477 34 18 33.5523 18 33V15C18 14.4477 18.4477 14 19 14H21ZM29 14C29.5523 14 30 14.4477 30 15V33C30 33.5523 29.5523 34 29 34H27C26.4477 34 26 33.5523 26 33V15C26 14.4477 26.4477 14 27 14H29Z" fill="white"></path>',mute:'<rect width="48" height="48" rx="24" fill="black" fill-opacity="0.4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M24.3442 14.1514C24.8735 13.7718 25.6107 14.1496 25.6108 14.8008V33.1973C25.6108 33.8487 24.8736 34.2273 24.3442 33.8477L16.3999 28.1504C16.2641 28.0531 16.1012 28.0011 15.9341 28.001H13.6704C13.2288 28.0009 12.8709 27.6427 12.8706 27.2012V20.8008C12.8706 20.359 13.2287 20.0011 13.6704 20.001H15.9302C16.0973 20.0009 16.2602 19.948 16.396 19.8506L24.3442 14.1514ZM27.7661 20.2969C28.1566 19.9067 28.7897 19.9066 29.1802 20.2969L31.3022 22.419L33.4224 20.2979C33.8128 19.9075 34.4459 19.9077 34.8364 20.2979C35.2269 20.6884 35.2269 21.3214 34.8364 21.7119L32.7163 23.833L34.8364 25.9531C35.2269 26.3436 35.2268 26.9776 34.8364 27.3682C34.4459 27.7583 33.8128 27.7585 33.4224 27.3682L31.3022 25.2471L29.1802 27.3692C28.7897 27.7594 28.1566 27.7594 27.7661 27.3692C27.3757 26.9787 27.3758 26.3456 27.7661 25.9551L29.8882 23.833L27.7661 21.711C27.3758 21.3204 27.3756 20.6874 27.7661 20.2969Z" fill="white"></path>',unmute:'<rect width="48" height="48" rx="24" fill="black" fill-opacity="0.4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M24.7349 14.1514C25.2641 13.7718 26.0013 14.1496 26.0015 14.8008V33.1973C26.0015 33.8487 25.2642 34.2273 24.7349 33.8477L16.7905 28.1504C16.6547 28.0531 16.4918 28.0011 16.3247 28.001H14.061C13.6194 28.0009 13.2615 27.6427 13.2612 27.2012V20.8008C13.2612 20.359 13.6193 20.0011 14.061 20.001H16.3208C16.4879 20.0009 16.6508 19.948 16.7866 19.8506L24.7349 14.1514ZM28.8325 16.5371C29.0285 16.066 29.5723 15.839 30.021 16.082C31.3075 16.7788 32.4094 17.7808 33.2261 19.0059C34.2142 20.4882 34.7407 22.2303 34.7388 24.0117C34.7369 25.7932 34.2067 27.5345 33.2153 29.0147C32.3961 30.2378 31.2922 31.2377 30.0044 31.9317C29.5552 32.1737 29.0119 31.9451 28.8169 31.4736C28.6221 31.002 28.8498 30.4659 29.2925 30.2119C30.2453 29.6655 31.0634 28.9048 31.6792 27.9854C32.467 26.809 32.8886 25.4256 32.8901 24.0098C32.8917 22.5939 32.4734 21.2094 31.688 20.0313C31.0742 19.1105 30.2577 18.3483 29.3062 17.7998C28.864 17.545 28.6367 17.0084 28.8325 16.5371ZM27.7212 19.377C27.9319 18.8703 28.5198 18.6238 28.9849 18.9151C29.7019 19.364 30.319 19.9618 30.7925 20.6719C31.4507 21.6593 31.8016 22.8202 31.8003 24.0068C31.799 25.1934 31.4459 26.3529 30.7856 27.3389C30.3106 28.0482 29.6914 28.6452 28.9731 29.0928C28.5075 29.3826 27.921 29.1348 27.7114 28.6279C27.5019 28.1206 27.7543 27.5482 28.1948 27.2207C28.5601 26.9491 28.8783 26.6156 29.1343 26.2334C29.5758 25.5741 29.8121 24.7984 29.813 24.0049C29.8138 23.2113 29.5793 22.4347 29.1392 21.7744C28.8841 21.3919 28.5662 21.0585 28.2017 20.7861C27.7619 20.4577 27.5106 19.8838 27.7212 19.377Z" fill="white"></path>',openNewTab:'<rect width="48" height="48" rx="24" fill="black" fill-opacity="0.4"></rect><path d="M22.9946 14C23.5469 14 23.9946 14.4477 23.9946 15C23.9946 15.5523 23.5469 16 22.9946 16H16.9946C16.4423 16 15.9946 16.4477 15.9946 17V31C15.9946 31.5523 16.4423 32 16.9946 32H30.9946C31.5469 32 31.9946 31.5523 31.9946 31V25C31.9946 24.4477 32.4423 24 32.9946 24C33.5469 24 33.9946 24.4477 33.9946 25V32C33.9946 33.1046 33.0992 34 31.9946 34H15.9946C14.8901 34 13.9946 33.1046 13.9946 32V16C13.9946 14.8954 14.8901 14 15.9946 14H22.9946ZM33.0054 14C33.5572 14.0005 34.0054 14.448 34.0054 15V21C34.0054 21.552 33.5572 21.9995 33.0054 22C32.4531 22 32.0054 21.5523 32.0054 21V17.3779L24.7026 24.6807C24.3123 25.0711 23.6791 25.0708 23.2886 24.6807C22.8981 24.2901 22.8981 23.6571 23.2886 23.2666L30.5542 16H27.0054C26.4531 16 26.0054 15.5523 26.0054 15C26.0054 14.4477 26.4531 14 27.0054 14H33.0054Z" fill="white"></path>',expand:'<rect width="48" height="48" rx="24" fill="black" fill-opacity="0.4"></rect><path d="M25.8232 27.2354C25.433 26.8449 25.433 26.2118 25.8232 25.8213C26.2137 25.4312 26.8469 25.4311 27.2373 25.8213L32.4707 31.0547L32.4707 27.4736C32.471 26.9216 32.9186 26.4736 33.4707 26.4736C34.0228 26.4736 34.4704 26.9216 34.4707 27.4736L34.4707 32.4727C34.4704 33.5769 33.575 34.4727 32.4707 34.4727L27.4717 34.4727C26.9196 34.4727 26.4719 34.0247 26.4717 33.4727C26.472 32.9207 26.9196 32.4727 27.4717 32.4727L31.0605 32.4727L25.8232 27.2354ZM13.5293 15.5293C13.5295 14.425 14.4249 13.5293 15.5293 13.5293L20.5283 13.5293C21.0805 13.5293 21.5281 13.9772 21.5283 14.5293C21.5282 15.0815 21.0805 15.5293 20.5283 15.5293L16.9395 15.5293L22.1768 20.7666C22.5672 21.1571 22.5671 21.7901 22.1768 22.1807C21.7862 22.571 21.1532 22.5711 20.7627 22.1807L15.5293 16.9473L15.5293 20.5283C15.5292 21.0805 15.0815 21.5283 14.5293 21.5283C13.9771 21.5283 13.5294 21.0805 13.5293 20.5283L13.5293 15.5293Z" fill="white"></path>',collapse:'<rect width="48" height="48" rx="24" fill="black" fill-opacity="0.4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M25.5273 27.5285C25.5274 26.4241 26.4229 25.5285 27.5273 25.5285L32.5263 25.5285C33.0786 25.5285 33.5263 25.9763 33.5263 26.5285C33.5262 27.0807 33.0785 27.5285 32.5263 27.5285L28.9375 27.5285L34.1748 32.7658C34.5652 33.1563 34.5652 33.7894 34.1748 34.1799C33.7843 34.5702 33.1512 34.5703 32.7607 34.1799L27.5273 28.9465L27.5273 32.5275C27.5272 33.0797 27.0796 33.5275 26.5273 33.5275C25.9751 33.5275 25.5274 33.0797 25.5273 32.5275L25.5273 27.5285ZM13.8252 15.2346C13.4349 14.8441 13.4349 14.211 13.8252 13.8205C14.2157 13.4302 14.8488 13.4302 15.2392 13.8205L20.4726 19.0539L20.4726 15.4728C20.4728 14.9207 20.9204 14.4729 21.4726 14.4728C22.0248 14.4728 22.4725 14.9207 22.4726 15.4728L22.4726 20.4719C22.4724 21.5761 21.577 22.4719 20.4726 22.4719L15.4736 22.4719C14.9215 22.4718 14.4739 22.0239 14.4736 21.4719C14.4738 20.9198 14.9215 20.4719 15.4736 20.4719L19.0625 20.4719L13.8252 15.2346Z" fill="white"></path>'},mobile:{size:24,viewBox:"0 0 24 24",close:'<rect width="24" height="24" rx="12" fill="black" fill-opacity="0.4"></rect><path d="M15.8891 8.11174C16.0843 8.30701 16.0843 8.62359 15.8891 8.81885L12.7071 12.0008L15.8891 15.1828C16.0843 15.3781 16.0843 15.6947 15.8891 15.8899C15.6938 16.0852 15.3772 16.0852 15.182 15.8899L12 12.7079L8.81802 15.8899C8.62276 16.0852 8.30617 16.0852 8.11091 15.8899C7.91565 15.6947 7.91565 15.3781 8.11091 15.1828L11.2929 12.0008L8.11091 8.81885C7.91565 8.62359 7.91565 8.30701 8.11091 8.11174C8.30618 7.91648 8.62276 7.91648 8.81802 8.11174L12 11.2937L15.182 8.11174C15.3772 7.91648 15.6938 7.91648 15.8891 8.11174Z" fill="white"></path>',play:'<rect width="24" height="24" rx="12" fill="black" fill-opacity="0.4"></rect><path d="M8.35547 16.1629V7.83711C8.35547 7.45877 8.7594 7.2175 9.09252 7.39687L16.8236 11.5598C17.1742 11.7485 17.1742 12.2515 16.8236 12.4402L9.09252 16.6031C8.7594 16.7825 8.35547 16.5412 8.35547 16.1629Z" fill="white"></path>',pause:'<rect width="24" height="24" rx="12" fill="black" fill-opacity="0.4"></rect><path d="M10.5 7C10.7761 7 11 7.22386 11 7.5V16.5C11 16.7761 10.7761 17 10.5 17H9.5C9.22386 17 9 16.7761 9 16.5V7.5C9 7.22386 9.22386 7 9.5 7H10.5ZM14.5 7C14.7761 7 15 7.22386 15 7.5V16.5C15 16.7761 14.7761 17 14.5 17H13.5C13.2239 17 13 16.7761 13 16.5V7.5C13 7.22386 13.2239 7 13.5 7H14.5Z" fill="white"></path>',mute:'<rect width="24" height="24" rx="12" fill="black" fill-opacity="0.4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M12.1724 7.07533C12.4369 6.88607 12.8049 7.07519 12.8052 7.40052V16.5988C12.8051 16.9243 12.437 17.1134 12.1724 16.924L8.19873 14.0744C8.13081 14.0257 8.04888 14.0001 7.96533 14.0001H6.83545C6.61454 14.0001 6.43506 13.8207 6.43506 13.5997V10.3995C6.43517 10.1787 6.6146 10.0001 6.83545 10.0001H7.96533C8.04892 10.0001 8.13079 9.97364 8.19873 9.92494L12.1724 7.07533ZM16.7114 10.1476C16.9067 9.95259 17.2233 9.95242 17.4185 10.1476C17.6136 10.3428 17.6135 10.6593 17.4185 10.8546L16.3579 11.9152L17.4185 12.9767C17.6134 13.172 17.6136 13.4886 17.4185 13.6837C17.2233 13.8788 16.9067 13.8786 16.7114 13.6837L15.6509 12.6222L14.5894 13.6837C14.3941 13.8786 14.0774 13.8788 13.8823 13.6837C13.6872 13.4886 13.6875 13.172 13.8823 12.9767L14.9429 11.9152L13.8823 10.8546C13.6874 10.6594 13.6873 10.3428 13.8823 10.1476C14.0775 9.95244 14.3941 9.95266 14.5894 10.1476L15.6509 11.2081L16.7114 10.1476Z" fill="white"></path>',unmute:'<rect width="24" height="24" rx="12" fill="black" fill-opacity="0.4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M12.3672 7.07573C12.6317 6.88599 13.0006 7.07453 13.001 7.39995V16.5992C13.0008 16.9248 12.6318 17.1141 12.3672 16.9244L8.39551 14.0748C8.3276 14.0261 8.24567 14.0006 8.16211 14.0005H7.03027C6.8094 14.0005 6.63086 13.821 6.63086 13.6001V10.4C6.63098 10.1792 6.80948 10.0006 7.03027 10.0005H8.16113C8.2447 10.0005 8.32662 9.97405 8.39453 9.92534L12.3672 7.07573ZM14.416 8.26812C14.5139 8.03262 14.7855 7.91932 15.0098 8.04058C15.653 8.38894 16.204 8.89002 16.6123 9.50249C17.1064 10.2436 17.3701 11.1147 17.3691 12.0054C17.3682 12.8961 17.103 13.7664 16.6074 14.5064C16.1978 15.118 15.6459 15.6184 15.002 15.9654C14.7773 16.0864 14.5056 15.9718 14.4082 15.7359C14.3109 15.5001 14.4252 15.2329 14.6465 15.106C15.1228 14.8328 15.532 14.4524 15.8398 13.9927C16.2338 13.4045 16.4445 12.7124 16.4453 12.0044C16.4461 11.2965 16.2364 10.6042 15.8438 10.0152C15.5369 9.55487 15.129 9.17321 14.6533 8.89898C14.4322 8.77154 14.3181 8.50378 14.416 8.26812ZM13.8604 9.68902C13.9656 9.43558 14.2596 9.31193 14.4922 9.45757C14.8508 9.68212 15.1597 9.98131 15.3965 10.3365C15.7255 10.8301 15.901 11.4103 15.9004 12.0035C15.8998 12.5967 15.7227 13.1765 15.3926 13.6695C15.155 14.0242 14.8454 14.3227 14.4863 14.5464C14.2535 14.6914 13.9602 14.5676 13.8555 14.314C13.7507 14.0604 13.8764 13.7737 14.0967 13.6099C14.2793 13.4741 14.4384 13.3078 14.5664 13.1167C14.7872 12.7871 14.9058 12.3993 14.9062 12.0025C14.9067 11.6057 14.7894 11.2174 14.5693 10.8873C14.4418 10.696 14.2828 10.5293 14.1006 10.3931C13.8807 10.2289 13.7551 9.94243 13.8604 9.68902Z" fill="white"></path>',openNewTab:'<rect width="24" height="24" rx="12" fill="black" fill-opacity="0.4"></rect><path d="M11.4976 7C11.7737 7 11.9976 7.22386 11.9976 7.5C11.9976 7.77614 11.7737 8 11.4976 8H8.49756C8.22142 8 7.99756 8.22386 7.99756 8.5V15.5C7.99756 15.7761 8.22142 16 8.49756 16H15.4976C15.7737 16 15.9976 15.7761 15.9976 15.5V12.5C15.9976 12.2239 16.2214 12 16.4976 12C16.7737 12 16.9976 12.2239 16.9976 12.5V16C16.9976 16.5523 16.5498 17 15.9976 17H7.99756C7.44527 17 6.99756 16.5523 6.99756 16V8C6.99756 7.44772 7.44527 7 7.99756 7H11.4976ZM16.5024 7C16.7785 7.00009 17.0024 7.22398 17.0024 7.5V10.5C17.0024 10.7761 16.7785 10.9999 16.5024 11C16.2264 10.9999 16.0024 10.7761 16.0024 10.5V8.68848L12.3511 12.3408C12.1559 12.5358 11.8393 12.5358 11.644 12.3408C11.449 12.1456 11.449 11.829 11.644 11.6338L15.2769 8H13.5024C13.2264 7.99987 13.0024 7.77606 13.0024 7.5C13.0025 7.22401 13.2265 7.00013 13.5024 7H16.5024Z" fill="white"></path>',expand:'<rect width="24" height="24" rx="12" fill="black" fill-opacity="0.4"></rect><path d="M12.9116 13.6172C12.7167 13.422 12.7168 13.1054 12.9116 12.9102C13.1068 12.715 13.4234 12.7151 13.6187 12.9102L16.2358 15.5273L16.2358 13.7363C16.2358 13.4602 16.4597 13.2363 16.7358 13.2363C17.012 13.2363 17.2358 13.4602 17.2358 13.7363L17.2358 16.2363C17.2354 16.7882 16.7878 17.2363 16.2358 17.2363L13.7358 17.2363C13.4602 17.2361 13.2363 17.0119 13.2358 16.7363C13.2358 16.4603 13.4599 16.2366 13.7358 16.2363L15.5308 16.2363L12.9116 13.6172ZM6.76416 7.7627C6.76468 7.21099 7.21237 6.76286 7.76416 6.7627L10.2642 6.7627C10.5398 6.76292 10.7636 6.98717 10.7642 7.2627C10.7642 7.5387 10.5401 7.76247 10.2642 7.7627L8.46924 7.7627L11.0884 10.3818C11.2833 10.577 11.2833 10.8937 11.0884 11.0889C10.8932 11.2841 10.5766 11.2839 10.3813 11.0889L7.76416 8.47168L7.76416 10.2627C7.76416 10.5388 7.5403 10.7627 7.26416 10.7627C6.98815 10.7625 6.76416 10.5387 6.76416 10.2627L6.76416 7.7627Z" fill="white"></path>',collapse:'<rect width="24" height="24" rx="12" fill="black" fill-opacity="0.4"></rect><path fill-rule="evenodd" clip-rule="evenodd" d="M12.764 13.7638C12.7643 13.2118 13.2119 12.7638 13.764 12.7638L16.264 12.7638C16.5397 12.7641 16.7636 12.9881 16.764 13.2638C16.764 13.5398 16.5399 13.7636 16.264 13.7638L14.4691 13.7638L17.0882 16.383C17.2831 16.5782 17.2831 16.8948 17.0882 17.09C16.893 17.2852 16.5765 17.285 16.3812 17.09L13.764 14.4728L13.764 16.2638C13.764 16.54 13.5401 16.7638 13.264 16.7638C12.9878 16.7638 12.764 16.54 12.764 16.2638L12.764 13.7638ZM6.91144 7.61735C6.71679 7.42212 6.7166 7.10542 6.91144 6.91031C7.10654 6.7153 7.4232 6.7156 7.61848 6.91031L10.2357 9.5275L10.2357 7.73649C10.2359 7.4606 10.4598 7.23662 10.7357 7.23649C11.0117 7.23649 11.2355 7.46052 11.2357 7.73649L11.2357 10.2365C11.2354 10.7885 10.7877 11.2365 10.2357 11.2365L7.73566 11.2365C7.46004 11.2361 7.23601 11.0121 7.23566 10.7365C7.23587 10.4607 7.45995 10.2368 7.73566 10.2365L9.53058 10.2365L6.91144 7.61735Z" fill="white"></path>'}},
1tS=["Stayed","UTM Visited","App Launched","Notification Sent",e3,e6],tE=[eW,e1,eZ],tM="open-web-url",tP="soft-prompt",tA={DEPTH_LIMIT_EXCEEDED:{code:541,message:"Event data exceeded maximum nesting depth. Depth: %s, Limit: %s"},ARRAY_KEY_COUNT_LIMIT_EXCEEDED:{code:542,message:"Event data exceeded maximum array key count. Count: %s, Limit: %s"},OBJECT_KEY_COUNT_LIMIT_EXCEEDED:{code:543,message:"Event data exceeded maximum object key count. Count: %s, Limit: %s"},ARRAY_LENGTH_LIMIT_EXCEEDED:{code:543,message:"Event data exceeded maximum array length. Length: %s, Limit: %s"},KV_PAIR_COUNT_LIMIT_EXCEEDED:{code:544,message:"Event data exceeded maximum key-value pair count. Count: %s, Limit: %s"},NULL_VALUE_REMOVED:{code:545,message:"Null value for key '%s' was removed"},EMPTY_VALUE_REMOVED:{code:545,message:"Empty value for key '%s' was removed"},RESTRICTED_PROFILE_PROPERTY:{code:513,message:"'%s' is a restricted profile property and cannot have nested values (objects or arrays). This property was skipped."}},tL=["Name","Email","Education","Married","DOB","Gender","Phone","Age","FBID","GPID","Birthday","Identity"],tT=t=>"string"==typeof t||t instanceof String,tO=t=>"[object Object]"===Object.prototype.toString.call(t),tD=t=>"object"==typeof t&&t instanceof Date,tN=t=>{for(let i in t)if(t.hasOwnProperty(i))return!1;return!0},tB=t=>!isNaN(parseFloat(t))&&isFinite(t),tz=t=>/^-?[\d.]+(?:e-?\d+)?$/.test(t)&&"number"==typeof t,tR=t=>null!=t&&"undefined"!==t,tj=(t,i)=>{if("object"!=typeof t){let r;return tT(t)?(r=tF(t,ez)).length>1024&&(r=r.substring(0,1024),i.reportError(521,r+"... length exceeded 1024 chars. Trimmed.")):r=t,r}for(let r in t)if(t.hasOwnProperty(r)){let o;let s=tj(t[r],i);(o=tF(r,eB)).length>1024&&(o=o.substring(0,1024),i.reportError(520,o+"... length exceeded 1024 chars. Trimmed.")),delete t[r],t[o]=s}return t},tF=(t,i)=>t.replace(i,""),tU=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!t||"string"!=typeof t||""===t.trim())return i;let r=t.trim();for(let t of[/%27/i,/%22/i,/%3C/i,/%3E/i,/%60/i,/</,/>/,/`/])if(t.test(r))return i;try{return JSON.parse(r)}catch(t){return i}},tV=()=>{let t=new Date;return t.getFullYear()+""+t.getMonth()+t.getDay()},tW=()=>Math.floor((new Date).getTime()/1e3),t$=t=>"$D_"+Math.round(t.getTime()/1e3),tH=t=>{if(tq(t))return"$D_"+t},tq=t=>{let i=/^(\d{4})(\d{2})(\d{2})$/.exec(t);if(null==i)return!1;let r=i[3],o=i[2]-1,s=i[1],n=new Date(s,o,r);return n.getDate()==r&&n.getMonth()==o&&n.getFullYear()==s};var tK,tZ="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{},tG={exports:{}},tJ={exports:{}};function tQ(){var t;return tK||(tK=1,tJ.exports=t||function(t,i){if("undefined"!=typeof window&&window.crypto&&(o=window.crypto),"undefined"!=typeof self&&self.crypto&&(o=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(o=globalThis.crypto),!o&&"undefined"!=typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&void 0!==tZ&&tZ.crypto&&(o=tZ.crypto),!o)try{o=r(42474)}catch(t){}var o,s=function(){if(o){if("function"==typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(t){}}throw Error("Native crypto module could not be used to get secure random number.")},n=Object.create||function(){function t(){}return function(i){var r;return t.prototype=i,r=new t,t.prototype=null,r}}(),a={},l=a.lib={},d=l.Base={extend:function(t){var i=n(this);return t&&i.mixIn(t),i.hasOwnProperty("init")&&this.init!==i.init||(i.init=function(){i.$super.init.a
vendor: 4,384 bytes, line 1
1pply(this,arguments)}),i.init.prototype=i,i.$super=this,i},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var i in t)t.hasOwnProperty(i)&&(this[i]=t[i]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=l.WordArray=d.extend({init:function(t,r){t=this.words=t||[],this.sigBytes=r!=i?r:4*t.length},toString:function(t){return(t||p).stringify(this)},concat:function(t){var i=this.words,r=t.words,o=this.sigBytes,s=t.sigBytes;if(this.clamp(),o%4)for(var n=0;n<s;n++){var a=r[n>>>2]>>>24-n%4*8&255;i[o+n>>>2]|=a<<24-(o+n)%4*8}else for(var l=0;l<s;l+=4)i[o+l>>>2]=r[l>>>2];return this.sigBytes+=s,this},clamp:function(){var i=this.words,r=this.sigBytes;i[r>>>2]&=4294967295<<32-r%4*8,i.length=t.ceil(r/4)},clone:function(){var t=d.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var i=[],r=0;r<t;r+=4)i.push(s());return new c.init(i,t)}}),h=a.enc={},p=h.Hex={stringify:function(t){for(var i=t.words,r=t.sigBytes,o=[],s=0;s<r;s++){var n=i[s>>>2]>>>24-s%4*8&255;o.push((n>>>4).toString(16)),o.push((15&n).toString(16))}return o.join("")},parse:function(t){for(var i=t.length,r=[],o=0;o<i;o+=2)r[o>>>3]|=parseInt(t.substr(o,2),16)<<24-o%8*4;return new c.init(r,i/2)}},u=h.Latin1={stringify:function(t){for(var i=t.words,r=t.sigBytes,o=[],s=0;s<r;s++){var n=i[s>>>2]>>>24-s%4*8&255;o.push(String.fromCharCode(n))}return o.join("")},parse:function(t){for(var i=t.length,r=[],o=0;o<i;o++)r[o>>>2]|=(255&t.charCodeAt(o))<<24-o%4*8;return new c.init(r,i)}},g=h.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},f=l.BufferedBlockAlgorithm=d.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=g.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(i){var r,o=this._data,s=o.words,n=o.sigBytes,a=this.blockSize,l=n/(4*a),d=(l=i?t.ceil(l):t.max((0|l)-this._minBufferSize,0))*a,h=t.min(4*d,n);if(d){for(var p=0;p<d;p+=a)this._doProcessBlock(s,p);r=s.splice(0,d),o.sigBytes-=h}return new c.init(r,h)},clone:function(){var t=d.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});l.Hasher=f.extend({cfg:d.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(i,r){return new t.init(r).finalize(i)}},_createHmacHelper:function(t){return function(i,r){return new y.HMAC.init(t,r).finalize(i)}}});var y=a.algo={};return a}(Math)),tJ.exports}var tY,tX={exports:{}};function t1(){var t,i,r,o,s,n;return tY||(tY=1,tX.exports=(r=(i=(n=tQ()).lib).Base,o=i.WordArray,(s=n.x64={}).Word=r.extend({init:function(t,i){this.high=t,this.low=i}}),s.WordArray=r.extend({init:function(i,r){i=this.words=i||[],this.sigBytes=r!=t?r:8*i.length},toX32:function(){for(var t=this.words,i=t.length,r=[],s=0;s<i;s++){var n=t[s];r.push(n.high),r.push(n.low)}return o.create(r,this.sigBytes)},clone:function(){for(var t=r.clone.call(this),i=t.words=this.words.slice(0),o=i.length,s=0;s<o;s++)i[s]=i[s].clone();return t}}),n)),tX.exports}var t0,t2,t4,t3={exports:{}},t6={exports:{}},t5={exports:{}};function t7(){var t,i;return t4||(t4=1,t5.exports=(i=(t=tQ()).lib.WordArray,t.enc.Base64={stringify:function(t){var i=t.words,r=t.sigBytes,o=this._map;t.clamp();for(var s=[],n=0;n<r;n+=3)for(var a=(i[n>>>2]>>>24-n%4*8&255)<<16|(i[n+1>>>2]>>>24-(n+1)%4*8&255)<<8|i[n+2>>>2]>>>24-(n+2)%4*8&255,l=0;l<4&&n+.75*l<r;l++)s.push(o.charAt(a>>>6*(3-l)&63));var d=o.charAt(64);if(d)for(;s.length%4;)s.push(d);return s.join("")},parse:function(t){var r=t.length,o=this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var n=0;n<o.length;n++)s[o.charCodeAt(n)]=n}var a=o.charAt(64);if(a){var l=t.indexOf(a);-1!==l&&(r=l)}return function(t,r,o){for(var s=[],n=0,a=0;a<r;a++)if(a%4){var l=o[t.charCodeAt(a-1)]<<a%4*2|o[t.charCodeAt(a)]>>>6-a%4*2;s[n>>>2]|=l<<24-n%4*8,n++}return i.create(s,n)}(t,r,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/="},t.enc.Base64)),t5.exports}var t8,t9,ie={exports:{}},it={exports:{}};function ii(){var t;return t9||(t9=1,it.exports=(t=tQ(),function(i){var r=t.lib,o=r.WordArray,s=r.Hasher,n=t.algo,a=[];!function(){for(var t=0;t<64;t++)a[t]=4294967296*i.abs(i.sin(t+1))|0}();var l=n.MD5=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,i){for(var r=0;r<16;r++){var o=i+r,s=t[o];t[o]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}var n=this._hash.words,l=t[i+0],u=t[i+1],g=t[i+2],f=t[i+3],y=t[i+4],m=t[i+5],v=t[i+6],b=t[i+7],w=t[i+8],C=t[i+9],k=t[i+10],x=t[i+11],I=t[i+12],_=t[i+13],S=t[i+14],E=t[i+15],M=n[0],P=n[1],A=n[2],L=n[3];M=d(M,P,A,L,l,7,a[0]),L=d(L,M,P,A,u,12,a[1]),A=d(A,L,M,P,g,17,a[2]),P=d(P,A,L,M,f,22,a[3]),M=d(M,P,A,L,y,7,a[4]),L=d(L,M,P,A,m,12,a[5]),A=d(A,L,M,P,v,17,a[6]),P=d(P,A,L,M,b,22,a[7]),M=d(M,P,A,L,w,7,a[8]),L=d(L,M,P,A,C,12,a[9]),A=d(A,L,M,P,k,17,a[10]),P=d(P,A,L,M,x,22,a[11]),M=d(M,P,A,L,I,7,a[12]),L=d(L,M,P,A,_,12,a[13]),A=d(A,L,M,P,S,17,a[14]),M=c(M,P=d(P,A,L,M,E,22,a[15]),A,L,u,5,a[16]),L=c(L,M,P,A,v,9,a[17]),A=c(A,L,M,P,x,14,a[18]),P=c(P,A,L,M,l,20,a[19]),M=c(M,P,A,L,m,5,a[20]),L=c(L,M,P,A,k,9,a[21]),A=c(A,L,M,P,E,14,a[22]),P=c(P,A,L,M,y,20,a[23]),M=c(M,P,A,L,C,5,a[24]),L=c(L,M,P,A,S,9,a[25]),A=c(A,L,M,P,f,14,a[26]),P=c(P,A,L,M,w,20,a[27]),M=c(M,P,A,L,_,5,a[28]),L=c(L,M,P,A,g,9,a[29]),A=c(A,L,M,P,b,14,a[30]),M=h(M,P=c(P,A,L,M,I,20,a[31]),A,L,m,4,a[32]),L=h(L,M,P,A,w,11,a[33]),A=h(A,L,M,P,x,16,a[34]),P=h(P,A,L,M,S,23,a[35]),M=h(M,P,A,L,u,4,a[36]),L=h(L,M,P,A,y,11,a[37]),A=h(A,L,M,P,b,16,a[38]),P=h(P,A,L,M,k,23,a[39]),M=h(M,P,A,L,_,4,a[40]),L=h(L,M,P,A,l,11,a[41]),A=h(A,L,M,P,f,16,a[42]),P=h(P,A,L,M,v,23,a[43]),M=h(M,P,A,L,C,4,a[44]),L=h(L,M,P,A,I,11,a[45]),A=h(A,L,M,P,E,16,a[46]),M=p(M,P=h(P,A,L,M,g,23,a[47]),A,L,l,6,a[48]),L=p(L,M,P,A,b,10,a[49]),A=p(A,L,M,P,S,15,a[50]),P=p(P,A,L,M,m,21,a[51]),M=p(M,P,A,L,I,6,a[52]),L=p(L,M,P,A,f,10,a[53]),A=p(A,L,M,P,k,15,a[54]),P=p(P,A,L,M,u,21,a[55]),M=p(M,P,A,L,w,6,a[56]),L=p(L,M,P,A,E,10,a[57]),A=p(A,L,M,P,v,15,a[58]),P=p(P,A,L,M,_,21,a[59]),M=p(M,P,A,L,y,6,a[60]),L=p(L,M,P,A,x,10,a[61]),A=p(A,L,M,P,g,15,a[62]),P=p(P,A,L,M,C,21,a[63]),n[0]=n[0]+M|0,n[1]=n[1]+P|0,n[2]=n[2]+A|0,n[3]=n[3]+L|0},_doFinalize:function(){var t=this._data,r=t.words,o=8*this._nDataBytes,s=8*t.sigBytes;r[s>>>5]|=128<<24-s%32;var n=i.floor(o/4294967296);r[15+(s+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),r[14+(s+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(r.length+1),this._process();for(var a=this._hash,l=a.words,d=0;d<4;d++){var c=l[d];l[d]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return a},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}});function d(t,i,r,o,s,n,a){var l=t+(i&r|~i&o)+s+a;return(l<<n|l>>>32-n)+i}function c(t,i,r,o,s,n,a){var l=t+(i&o|r&~o)+s+a;return(l<<n|l>>>32-n)+i}function h(t,i,r,o,s,n,a){var l=t+(i^r^o)+s+a;return(l<<n|l>>>32-n)+i}function p(t,i,r,o,s,n,a){var l=t+(r^(i|~o))+s+a;return(l<<n|l>>>32-n)+i}t.MD5=s._createHelper(l),t.HmacMD5=s._createHmacHelper(l)}(Math),t.MD5)),it.exports}var ir,io={exports:{}};function is(){var t,i,r,o,s,n,a;return ir||(ir=1,io.exports=(i=(t=(a=tQ()).lib).WordArray,r=t.Hasher,o=a.algo,s=[],n=o.SHA1=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,i){for(var r=this._hash.words,o=r[0],n=r[1],a=r[2],l=r[3],d=r[4],c=0;c<80;c++){if(c<16)s[c]=0|t[i+c];else{var h=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=h<<1|h>>>31}var p=(o<<5|o>>>27)+d+s[c];p+=c<20?1518500249+(n&a|~n&l):c<40?1859775393+(n^a^l):c<60?(n&a|n&l|a&l)-1894007588:(n^a^l)-899497514,d=l,l=a,a=n<<30|n>>>2,n=o,o=p}r[0]=r[0]+o|0,r[1]=r[1]+n|0,r[2]=r[2]+a|0,r[3]=r[3]+l|0,r[4]=r[4]+d|0},_doFinalize:function(){var t=this._data,i=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return i[o>>>5]|=128<<24-o%32,i[14+(o+64>>>9<<4)]=Math.floor(r/4294967296),i[15+(o+64>>>9<<4)]=r,t.sigBytes=4*i.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}}),a.SHA1=r._createHelper(n),a.HmacSHA1=r._createHmacHelper(n),a.SHA1)),io.exports}var ia,il={exports:{}};function id(){var t,i,r,o,s,n,a,l,d,c;return ia||(ia=1,il.exports=(t=tQ(),i=Math,o=(r=t.lib).WordArray,s=r.Hasher,n=t.algo,a=[],l=[],function(){function t(t){return 4294967296*(t-(0|t))|0}for(var r=2,o=0;o<64;)(function(t){for(var r=i.sqrt(t),o=2;o<=r;
1o++)if(!(t%o))return!1;return!0})(r)&&(o<8&&(a[o]=t(i.pow(r,.5))),l[o]=t(i.pow(r,1/3)),o++),r++}(),d=[],c=n.SHA256=s.extend({_doReset:function(){this._hash=new o.init(a.slice(0))},_doProcessBlock:function(t,i){for(var r=this._hash.words,o=r[0],s=r[1],n=r[2],a=r[3],c=r[4],h=r[5],p=r[6],u=r[7],g=0;g<64;g++){if(g<16)d[g]=0|t[i+g];else{var f=d[g-15],y=(f<<25|f>>>7)^(f<<14|f>>>18)^f>>>3,m=d[g-2],v=(m<<15|m>>>17)^(m<<13|m>>>19)^m>>>10;d[g]=y+d[g-7]+v+d[g-16]}var b=o&s^o&n^s&n,w=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),C=u+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&h^~c&p)+l[g]+d[g];u=p,p=h,h=c,c=a+C|0,a=n,n=s,s=o,o=C+(w+b)|0}r[0]=r[0]+o|0,r[1]=r[1]+s|0,r[2]=r[2]+n|0,r[3]=r[3]+a|0,r[4]=r[4]+c|0,r[5]=r[5]+h|0,r[6]=r[6]+p|0,r[7]=r[7]+u|0},_doFinalize:function(){var t=this._data,r=t.words,o=8*this._nDataBytes,s=8*t.sigBytes;return r[s>>>5]|=128<<24-s%32,r[14+(s+64>>>9<<4)]=i.floor(o/4294967296),r[15+(s+64>>>9<<4)]=o,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=s.clone.call(this);return t._hash=this._hash.clone(),t}}),t.SHA256=s._createHelper(c),t.HmacSHA256=s._createHmacHelper(c),t.SHA256)),il.exports}var ic,ih,ip={exports:{}};function iu(){var t;return ih||(ih=1,ip.exports=(t=tQ(),t1(),function(){var i=t.lib.Hasher,r=t.x64,o=r.Word,s=r.WordArray,n=t.algo;function a(){return o.create.apply(o,arguments)}var l=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(198
vendor: 5,790 bytes, line 1
16661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],d=[];!function(){for(var t=0;t<80;t++)d[t]=a()}();var c=n.SHA512=i.extend({_doReset:function(){this._hash=new s.init([new o.init(1779033703,4089235720),new o.init(3144134277,2227873595),new o.init(1013904242,4271175723),new o.init(2773480762,1595750129),new o.init(1359893119,2917565137),new o.init(2600822924,725511199),new o.init(528734635,4215389547),new o.init(1541459225,327033209)])},_doProcessBlock:function(t,i){for(var r=this._hash.words,o=r[0],s=r[1],n=r[2],a=r[3],c=r[4],h=r[5],p=r[6],u=r[7],g=o.high,f=o.low,y=s.high,m=s.low,v=n.high,b=n.low,w=a.high,C=a.low,k=c.high,x=c.low,I=h.high,_=h.low,S=p.high,E=p.low,M=u.high,P=u.low,A=g,L=f,T=y,O=m,D=v,N=b,B=w,z=C,R=k,j=x,F=I,U=_,V=S,W=E,$=M,H=P,q=0;q<80;q++){var K,Z,G=d[q];if(q<16)Z=G.high=0|t[i+2*q],K=G.low=0|t[i+2*q+1];else{var J=d[q-15],Q=J.high,Y=J.low,X=(Q>>>1|Y<<31)^(Q>>>8|Y<<24)^Q>>>7,ee=(Y>>>1|Q<<31)^(Y>>>8|Q<<24)^(Y>>>7|Q<<25),et=d[q-2],ei=et.high,er=et.low,eo=(ei>>>19|er<<13)^(ei<<3|er>>>29)^ei>>>6,es=(er>>>19|ei<<13)^(er<<3|ei>>>29)^(er>>>6|ei<<26),en=d[q-7],ea=en.high,el=en.low,ed=d[q-16],ec=ed.high,eh=ed.low;Z=(Z=(Z=X+ea+((K=ee+el)>>>0<ee>>>0?1:0))+eo+((K+=es)>>>0<es>>>0?1:0))+ec+((K+=eh)>>>0<eh>>>0?1:0),G.high=Z,G.low=K}var ep,eu=R&F^~R&V,eg=j&U^~j&W,ef=A&T^A&D^T&D,ey=L&O^L&N^O&N,em=(A>>>28|L<<4)^(A<<30|L>>>2)^(A<<25|L>>>7),ev=(L>>>28|A<<4)^(L<<30|A>>>2)^(L<<25|A>>>7),eb=(R>>>14|j<<18)^(R>>>18|j<<14)^(R<<23|j>>>9),ew=(j>>>14|R<<18)^(j>>>18|R<<14)^(j<<23|R>>>9),eC=l[q],ek=eC.high,ex=eC.low,eI=$+eb+((ep=H+ew)>>>0<H>>>0?1:0),e_=ev+ey;$=V,H=W,V=F,W=U,F=R,U=j,R=B+(eI=(eI=(eI=eI+eu+((ep+=eg)>>>0<eg>>>0?1:0))+ek+((ep+=ex)>>>0<ex>>>0?1:0))+Z+((ep+=K)>>>0<K>>>0?1:0))+((j=z+ep|0)>>>0<z>>>0?1:0)|0,B=D,z=N,D=T,N=O,T=A,O=L,A=eI+(em+ef+(e_>>>0<ev>>>0?1:0))+((L=ep+e_|0)>>>0<ep>>>0?1:0)|0}f=o.low=f+L,o.high=g+A+(f>>>0<L>>>0?1:0),m=s.low=m+O,s.high=y+T+(m>>>0<O>>>0?1:0),b=n.low=b+N,n.high=v+D+(b>>>0<N>>>0?1:0),C=a.low=C+z,a.high=w+B+(C>>>0<z>>>0?1:0),x=c.low=x+j,c.high=k+R+(x>>>0<j>>>0?1:0),_=h.low=_+U,h.high=I+F+(_>>>0<U>>>0?1:0),E=p.low=E+W,p.high=S+V+(E>>>0<W>>>0?1:0),P=u.low=P+H,u.high=M+$+(P>>>0<H>>>0?1:0)},_doFinalize:function(){var t=this._data,i=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;return i[o>>>5]|=128<<24-o%32,i[30+(o+128>>>10<<5)]=Math.floor(r/4294967296),i[31+(o+128>>>10<<5)]=r,t.sigBytes=4*i.length,this._process(),this._hash.toX32()},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=i._createHelper(c),t.HmacSHA512=i._createHmacHelper(c)}(),t.SHA512)),ip.exports}var ig,iy,im,iv,ib={exports:{}},iw={exports:{}};function iC(){var t,i,r;return iv||(iv=1,iw.exports=(i=(t=tQ()).lib.Base,r=t.enc.Utf8,void(t.algo.HMAC=i.extend({init:function(t,i){t=this._hasher=new t.init,"string"==typeof i&&(i=r.parse(i));var o=t.blockSize,s=4*o;i.sigBytes>s&&(i=t.finalize(i)),i.clamp();for(var n=this._oKey=i.clone(),a=this._iKey=i.clone(),l=n.words,d=a.words,c=0;c<o;c++)l[c]^=1549556828,d[c]^=909522486;n.sigBytes=a.sigBytes=s,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var i=this._hasher,r=i.finalize(t);return i.reset(),i.finalize(this._oKey.clone().concat(r))}})))),iw.exports}var ik,ix,iI={exports:{}};function i_(){var t,i,r,o,s,n,a;return ix||(ix=1,iI.exports=(a=tQ(),is(),iC(),i=(t=a.lib).Base,r=t.WordArray,s=(o=a.algo).MD5,n=o.EvpKDF=i.extend({cfg:i.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,i){for(var o,s=this.cfg,n=s.hasher.create(),a=r.create(),l=a.words,d=s.keySize,c=s.iterations;l.length<d;){o&&n.update(o),o=n.update(t).finalize(i),n.reset();for(var h=1;h<c;h++)o=n.finalize(o),n.reset();a.concat(o)}return a.sigBytes=4*d,a}}),a.EvpKDF=function(t,i,r){return n.create(r).compute(t,i)},a.EvpKDF)),iI.exports}var iS,iE={exports:{}};function iM(){var t,i,r,o,s,n,a,l,d,c,h,p,u,g,f,y,m,v;return iS||(iS=1,iE.exports=(t=tQ(),i_(),void(t.lib.Cipher||(r=(i=t.lib).Base,o=i.WordArray,s=i.BufferedBlockAlgorithm,(n=t.enc).Utf8,a=n.Base64,l=t.algo.EvpKDF,d=i.Cipher=s.extend({cfg:r.extend(),createEncryptor:function(t,i){return this.create(this._ENC_XFORM_MODE,t,i)},createDecryptor:function(t,i){return this.create(this._DEC_XFORM_MODE,t,i)},init:function(t,i,r){this.cfg=this.cfg.extend(r),this._xformMode=t,this._key=i,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?v:y}return function(i){return{encrypt:function(r,o,s){return t(o).encrypt
vendor: 3,111 bytes, line 1
1(i,r,o,s)},decrypt:function(r,o,s){return t(o).decrypt(i,r,o,s)}}}}()}),i.StreamCipher=d.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),c=t.mode={},h=i.BlockCipherMode=r.extend({createEncryptor:function(t,i){return this.Encryptor.create(t,i)},createDecryptor:function(t,i){return this.Decryptor.create(t,i)},init:function(t,i){this._cipher=t,this._iv=i}}),p=c.CBC=function(){var t=h.extend();function i(t,i,r){var o,s=this._iv;s?(o=s,this._iv=void 0):o=this._prevBlock;for(var n=0;n<r;n++)t[i+n]^=o[n]}return t.Encryptor=t.extend({processBlock:function(t,r){var o=this._cipher,s=o.blockSize;i.call(this,t,r,s),o.encryptBlock(t,r),this._prevBlock=t.slice(r,r+s)}}),t.Decryptor=t.extend({processBlock:function(t,r){var o=this._cipher,s=o.blockSize,n=t.slice(r,r+s);o.decryptBlock(t,r),i.call(this,t,r,s),this._prevBlock=n}}),t}(),u=(t.pad={}).Pkcs7={pad:function(t,i){for(var r=4*i,s=r-t.sigBytes%r,n=s<<24|s<<16|s<<8|s,a=[],l=0;l<s;l+=4)a.push(n);var d=o.create(a,s);t.concat(d)},unpad:function(t){var i=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=i}},i.BlockCipher=d.extend({cfg:d.cfg.extend({mode:p,padding:u}),reset:function(){d.reset.call(this);var t,i=this.cfg,r=i.iv,o=i.mode;this._xformMode==this._ENC_XFORM_MODE?t=o.createEncryptor:(t=o.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,r&&r.words):(this._mode=t.call(o,this,r&&r.words),this._mode.__creator=t)},_doProcessBlock:function(t,i){this._mode.processBlock(t,i)},_doFinalize:function(){var t,i=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(i.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),i.unpad(t)),t},blockSize:4}),g=i.CipherParams=r.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}}),f=(t.format={}).OpenSSL={stringify:function(t){var i=t.ciphertext,r=t.salt;return(r?o.create([1398893684,1701076831]).concat(r).concat(i):i).toString(a)},parse:function(t){var i,r=a.parse(t),s=r.words;return 1398893684==s[0]&&1701076831==s[1]&&(i=o.create(s.slice(2,4)),s.splice(0,4),r.sigBytes-=16),g.create({ciphertext:r,salt:i})}},y=i.SerializableCipher=r.extend({cfg:r.extend({format:f}),encrypt:function(t,i,r,o){o=this.cfg.extend(o);var s=t.createEncryptor(r,o),n=s.finalize(i),a=s.cfg;return g.create({ciphertext:n,key:r,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:o.format})},decrypt:function(t,i,r,o){return o=this.cfg.extend(o),i=this._parse(i,o.format),t.createDecryptor(r,o).finalize(i.ciphertext)},_parse:function(t,i){return"string"==typeof t?i.parse(t,this):t}}),m=(t.kdf={}).OpenSSL={execute:function(t,i,r,s,n){if(s||(s=o.random(8)),n)a=l.create({keySize:i+r,hasher:n}).compute(t,s);else var a=l.create({keySize:i+r}).compute(t,s);var d=o.create(a.words.slice(i),4*r);return a.sigBytes=4*i,g.create({key:a,iv:d,salt:s})}},v=i.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:m}),encrypt:function(t,i,r,o){var s=(o=this.cfg.extend(o)).kdf.execute(r,t.keySize,t.ivSize,o.salt,o.hasher);o.iv=s.iv;var n=y.encrypt.call(this,t,i,s.key,o);
1return n.mixIn(s),n},decrypt:function(t,i,r,o){o=this.cfg.extend(o),i=this._parse(i,o.format);var s=o.kdf.execute(r,t.keySize,t.ivSize,i.salt,o.hasher);return o.iv=s.iv,y.decrypt.call(this,t,i,s.key,o)}}))))),iE.exports}var iP,iA,iL,iT,iO,iD,iN,iB,iz,iR,ij,iF,iU,iV,iW,i$,iH,iq={exports:{}},iK={exports:{}},iZ={exports:{}},iG={exports:{}},iJ={exports:{}},iQ={exports:{}},iY=(e_||(e_=1,tG.exports=(S=tQ(),t1(),t0||(t0=1,t3.exports=(E=tQ(),function(){if("function"==typeof ArrayBuffer){var t=E.lib.WordArray,i=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var r=t.byteLength,o=[],s=0;s<r;s++)o[s>>>2]|=t[s]<<24-s%4*8;i.call(this,o,r)}else i.apply(this,arguments)}).prototype=t}}(),E.lib.WordArray)),t3.exports,t2||(t2=1,t6.exports=(M=tQ(),function(){var t=M.lib.WordArray,i=M.enc;function r(t){return t<<8&4278255360|t>>>8&16711935}i.Utf16=i.Utf16BE={stringify:function(t){for(var i=t.words,r=t.sigBytes,o=[],s=0;s<r;s+=2){var n=i[s>>>2]>>>16-s%4*8&65535;o.push(String.fromCharCode(n))}return o.join("")},parse:function(i){for(var r=i.length,o=[],s=0;s<r;s++)o[s>>>1]|=i.charCodeAt(s)<<16-s%2*16;return t.create(o,2*r)}},i.Utf16LE={stringify:function(t){for(var i=t.words,o=t.sigBytes,s=[],n=0;n<o;n+=2){var a=r(i[n>>>2]>>>16-n%4*8&65535);s.push(String.fromCharCode(a))}return s.join("")},parse:function(i){for(var o=i.length,s=[],n=0;n<o;n++)s[n>>>1]|=r(i.charCodeAt(n)<<16-n%2*16);return t.create(s,2*o)}}}(),M.enc.Utf16)),t6.exports,t7(),t8||(t8=1,ie.exports=(A=(P=tQ()).lib.WordArray,P.enc.Base64url={stringify:function(t,i){void 0===i&&(i=!0);var r=t.words,o=t.sigBytes,s=i?this._safe_map:this._map;t.clamp();for(var n=[],a=0;a<o;a+=3)for(var l=(r[a>>>2]>>>24-a%4*8&255)<<16|(r[a+1>>>2]>>>24-(a+1)%4*8&255)<<8|r[a+2>>>2]>>>24-(a+2)%4*8&255,d=0;d<4&&a+.75*d<o;d++)n.push(s.charAt(l>>>6*(3-d)&63));var c=s.charAt(64);if(c)for(;n.length%4;)n.push(c);return n.join("")},parse:function(t,i){void 0===i&&(i=!0);var r=t.length,o=i?this._safe_map:this._map,s=this._reverseMap;if(!s){s=this._reverseMap=[];for(var n=0;n<o.length;n++)s[o.charCodeAt(n)]=n}var a=o.charAt(64);if(a){var l=t.indexOf(a);-1!==l&&(r=l)}return function(t,i,r){for(var o=[],s=0,n=0;n<i;n++)if(n%4){var a=r[t.charCodeAt(n-1)]<<n%4*2|r[t.charCodeAt(n)]>>>6-n%4*2;o[s>>>2]|=a<<24-s%4*8,s++}return A.create(o,s)}(t,r,s)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"},P.enc.Base64url)),ie.exports,ii(),is(),id(),ic||(ic=1,a=tQ(),id(),i=a.lib.WordArray,s=(o=a.algo).SHA256,n=o.SHA224=s.extend({_doReset:function(){this._hash=new i.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=4,t}}),a.SHA224=s._createHelper(n),a.HmacSHA224=s._createHmacHelper(n),a.SHA224),iu(),ig||(ig=1,g=tQ(),t1(),iu(),d=(l=g.x64).Word,c=l.WordArray,p=(h=g.algo).SHA512,u=h.SHA384=p.extend({_doReset:function(){this._hash=new c.init([new d.init(3418070365,3238371032),new d.init(1654270250,914150663),new d.init(2438529370,812702999),new d.init(355462360,4144912697),new d.init(1731405415,4290775857),new d.init(2394180231,1750603025),new d.init(3675008525,1694076839),new d.init(1203062813,3204075428)])},_doFinalize:function(){var t=p._doFinalize.call(this);return t.sigBytes-=16,t}}),g.SHA384=p._createHelper(u),g.HmacSHA384=p._createHmacHelper(u),g.SHA384),iy||(iy=1,ib.exports=(L=tQ(),t1(),T=Math,D=(O=L.lib).WordArray,N=O.Hasher,B=L.x64.Word,z=L.algo,R=[],j=[],F=[],function(){for(var t=1,i=0,r=0;r<24;r++){R[t+5*i]=(r+1)*(r+2)/2%64;var o=(2*t+3*i)%5;t=i%5,i=o}for(t=0;t<5;t++)for(i=0;i<5;i++)j[t+5*i]=i+(2*t+3*i)%5*5;for(var s=1,n=0;n<24;n++){for(var a=0,l=0,d=0;d<7;d++){if(1&s){var c=(1<<d)-1;c<32?l^=1<<c:a^=1<<c-32}128&s?s=s<<1^113:s<<=1}F[n]=B.create(a,l)}}(),U=[],function(){for(var t=0;t<25;t++)U[t]=B.create()}(),V=z.SHA3=N.extend({cfg:N.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],i=0;i<25;i++)t[i]=new B.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,i){for(var r=this._state,o=this.blockSize/2,s=0;s<o;s++){var n=t[i+2*s],a=t[i+2*s+1];n=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(_=r[s]).high^=a,_.low^=n}for(var l=0;l<24;l++){for(var d=0;d<5;d++){for(var c=0,h=0,p=0;p<5;p++)c^=(_=r[d+5*p]).high,h^=_.low;var u=U[d];u.high=c,u.low=h}for(d=0;d<5;d++){var g=U[(d+4)%5],f=U[(d+1)%5],y=f.high,m=f.low;for(c=g.high^(y<<1|m>>>31),h=g.low^(m<<1|y>>>31),p=0;p<5;p++)(_=r[d+5*p]).high^=c,_.low^=h}for(var v=1;v<25;v++){var b=(_=r[v]).high,w=_.low,C=R[v];C<32?(c=b<<C|w>>>32-C,h=w<<C|b>>>32-C):(c=w<<C-32|b>>>64-C,h=b<<C-32|w>>>64-C);var k=U[j[v]];k.high=c,k.low=h}var x=U[0],I=r[0];for(x.high=I.high,x.low=I.low,d=0;d<5;d++)for(p=0;p<5;p++){var _=r[v=d+5*p],S=U[v],E=U[(d+1)%5+5*p],M=U[(d+2)%5+5*p];_.high=S.high^~E.high&M.high,_.low=S.low^~E.low&M.low}_=r[0];var P=F[l];_.high^=P.high,_.low^=P.low}},_doFinalize:function(){var t=this._data,i=t.words;this._nDataBytes;var r=8*t.sigBytes,o=32*this.blockSize;i[r>>>5]|=1<<24-r%32,i[(T.ceil((r+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*i.length,this._process();for(var s=this._state,n=this.cfg.outputLength/8,a=n/8,l=[],d=0;d<a;d++){var c=s[d],h=c.high,p=c.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),l.push(p),l.push(h)}return new D.init(l,n)},clone:function(){for(var t=N.clone.call(this),i=t._state=this._state.slice(0),r=0;r<25;r++)i[r]=i[r].clone();return t}}),L.SHA3=N._createHelper(V),L.HmacSHA3=N._createHmacHelper(V),L.SHA3)),ib.exports,im||(im=1,W=tQ(),/** @preserve 2 (c) 2012 by Cédric Mesnil. All rights reserved. 3 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 4 - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 5 - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 6 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (
6INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 7 */function(){var t=W.lib,i=t.WordArray,r=t.Hasher,o=W.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),n=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),a=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),c=i.create([1352829926,1548603684,1836072691,2053994217,0]),h=o.RIPEMD160=r.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,i){for(var r,o,h,u,g,f,y,m,v=0;v<16;v++){var b=i+v,w=t[b];t[b]=16711935&(w<<8|w>>>24)|4278255360&(w<<24|w>>>8)}var C,k,x,I,_,S,E,M,P,A,L,T=this._hash.words,O=d.words,D=c.words,N=s.words,B=n.words,z=a.words,R=l.words;for(S=C=T[0],E=k=T[1],M=x=T[2],P=I=T[3],A=_=T[4],v=0;v<80;v+=1)L=(L=p(L=(C+t[i+N[v]]|0)+(v<16?(k^x^I)+O[0]:v<32?((r=k)&x|~r&I)+O[1]:v<48?((k|~x)^I)+O[2]:v<64?(o=k,h=x,(o&(u=I)|h&~u)+O[3]):(k^(x|~I))+O[4])|0,z[v]))+_|0,C=_,_=I,I=p(x,10),x=k,k=L,L=(L=p(L=(S+t[i+B[v]]|0)+(v<16?(E^(M|~P))+D[0]:v<32?(g=E,f=M,(g&(y=P)|f&~y)+D[1]):v<48?((E|~M)^P)+D[2]:v<64?((m=E)&M|~m&P)+D[3]:(E^M^P)+D[4])|0,R[v]))+A|0,S=A,A=P,P=p(M,10),M=E,E=L;L=T[1]+x+P|0,T[1]=T[2]+I+A|0,T[2]=T[3]+_+S|0,T[3]=T[4]+C+E|0,T[4]=T[0]+k+M|0,T[0]=L},_doFinalize:function(){var t=this._data,i=t.words,r=8*this._nDataBytes,o=8*t.sigBytes;i[o>>>5]|=128<<24-o%32,i[14+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),t.sigBytes=4*(i.length+1),this._process();for(var s=this._hash,n=s.words,a=0;a<5;a++){var l=n[a];n[a]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,i){return t<<i|t>>>32-i}W.RIPEMD160=r._createHelper(h),W.HmacRIPEMD160=r._createHmacHelper(h)}(),W.RIPEMD160),iC(),ik||(ik=1,k=tQ(),id(),iC(),y=(f=k.lib).Base,m=f.WordArray,b=(v=k.algo).SHA256,w=v.HMAC,C=v.PBKDF2=y.extend({cfg:y.extend({keySize:4,hasher:b,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,i){for(var r=this.cfg,o=w.create(r.hasher,t),s=m.create(),n=m.create([1]),a=s.words,l=n.words,d=r.keySize,c=r.iterations;a.length<d;){var h=o.update(i).finalize(n);o.reset();for(var p=h.words,u=p.length,g=h,f=1;f<c;f++){g=o.finalize(g),o.reset();for(var y=g.words,v=0;v<u;v++)p[v]^=y[v]}s.concat(h),l[0]++}return s.sigBytes=4*d,s}}),k.PBKDF2=function(t,i,r){return C.create(r).compute(t,i)},k.PBKDF2),i_(),iM(),iP||(iP=1,iq.exports=($=tQ(),iM(),$.mode.CFB=function(){var t=$.lib.BlockCipherMode.extend();function i(t,i,r,o){var s,n=this._iv;n?(s=n.slice(0),this._iv=void 0):s=this._prevBlock,o.encryptBlock(s,0);for(var a=0;a<r;a++)t[i+a]^=s[a]}return t.Encryptor=t.extend({processBlock:function(t,r){var o=this._cipher,s=o.blockSize;i.call(this,t,r,s,o),this._prevBlock=t.slice(r,r+s)}}),t.Decryptor=t.extend({processBlock:function(t,r){var o=this._cipher,s=o.blockSize,n=t.slice(r,r+s);i.call(this,t,r,s,o),this._prevBlock=n}}),t}(),$.mode.CFB)),iq.exports,iA||(iA=1,iK.exports=(K=tQ(),iM(),K.mode.CTR=(q=(H=K.lib.BlockCipherMode.extend()).Encryptor=H.extend({processBlock:function(t,i){var r=this._cipher,o=r.blockSize,s=this._iv,n=this._counter;s&&(n=this._counter=s.slice(0),this._iv=void 0);var a=n.slice(0);r.encryptBlock(a,0),n[o-1]=n[o-1]+1|0;for(var l=0;l<o;l++)t[i+l]^=a[l]}}),H.Decryptor=q,H),K.mode.CTR)),iK.exports,iL||(iL=1,iZ.exports=(Z=tQ(),iM(),/** @preserve 8 * Counter block mode compatible with Dr Brian Gladman fileenc.c 9 * derived from CryptoJS.mode.CTR 10 * Jan Hruby [email protected] 11 */Z.mode.CTRGladman=function(){var t=Z.lib.BlockCipherMode.extend();function i(t){if(255==(t>>24&255)){var i=t>>16&255,r=t>>8&255,o=255&t;255===i?(i=0,255===r?(r=0,255===o?o=0:++o):++r):++i,t=0+(i<<16)+(r
11<<8)+o}else t+=16777216;return t}var r=t.Encryptor=t.extend({processBlock:function(t,r){var o,s=this._cipher,n=s.blockSize,a=this._iv,l=this._counter;a&&(l=this._counter=a.slice(0),this._iv=void 0),0===((o=l)[0]=i(o[0]))&&(o[1]=i(o[1]));var d=l.slice(0);s.encryptBlock(d,0);for(var c=0;c<n;c++)t[r+c]^=d[c]}});return t.Decryptor=r,t}(),Z.mode.CTRGladman)),iZ.exports,iT||(iT=1,iG.exports=(Q=tQ(),iM(),Q.mode.OFB=(J=(G=Q.lib.BlockCipherMode.extend()).Encryptor=G.extend({processBlock:function(t,i){var r=this._cipher,o=r.blockSize,s=this._iv,n=this._keystream;s&&(n=this._keystream=s.slice(0),this._iv=void 0),r.encryptBlock(n,0);for(var a=0;a<o;a++)t[i+a]^=n[a]}}),G.Decryptor=J,G),Q.mode.OFB)),iG.exports,iO||(iO=1,X=tQ(),iM(),X.mode.ECB=((Y=X.lib.BlockCipherMode.extend()).Encryptor=Y.extend({processBlock:function(t,i){this._cipher.encryptBlock(t,i)}}),Y.Decryptor=Y.extend({processBlock:function(t,i){this._cipher.decryptBlock(t,i)}}),Y),X.mode.ECB),iD||(iD=1,ee=tQ(),iM(),ee.pad.AnsiX923={pad:function(t,i){var r=t.sigBytes,o=4*i,s=o-r%o,n=r+s-1;t.clamp(),t.words[n>>>2]|=s<<24-n%4*8,t.sigBytes+=s},unpad:function(t){var i=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=i}},ee.pad.Ansix923),iN||(iN=1,et=tQ(),iM(),et.pad.Iso10126={pad:function(t,i){var r=4*i,o=r-t.sigBytes%r;t.concat(et.lib.WordArray.random(o-1)).concat(et.lib.WordArray.create([o<<24],1))},unpad:function(t){var i=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=i}},et.pad.Iso10126),iB||(iB=1,ei=tQ(),iM(),ei.pad.Iso97971={pad:function(t,i){t.concat(ei.lib.WordArray.create([2147483648],1)),ei.pad.ZeroPadding.pad(t,i)},unpad:function(t){ei.pad.ZeroPadding.unpad(t),t.sigBytes--}},ei.pad.Iso97971),iz||(iz=1,er=tQ(),iM(),er.pad.ZeroPadding={pad:function(t,i){var r=4*i;t.clamp(),t.sigBytes+=r-(t.sigBytes%r||r)},unpad:function(t){var i=t.words,r=t.sigBytes-1;for(r=t.sigBytes-1;r>=0;r--)if(i[r>>>2]>>>24-r%4*8&255){t.sigBytes=r+1;break}}},er.pad.ZeroPadding),iR||(iR=1,eo=tQ(),iM(),eo.pad.NoPadding={pad:function(){},unpad:function(){}},eo.pad.NoPadding),ij||(ij=1,_=tQ(),iM(),x=_.lib.CipherParams,I=_.enc.Hex,_.format.Hex={stringify:function(t){return t.ciphertext.toString(I)},parse:function(t){var i=I.parse(t);return x.create({ciphertext:i})}},_.format.Hex),iF||(iF=1,es=tQ(),t7(),ii(),i_(),iM(),en=es.lib.BlockCipher,ea=es.algo,el=[],ed=[],ec=[],eh=[],ep=[],eu=[],eg=[],ef=[],ey=[],em=[],function(){for(var t=[],i=0;i<256;i++)t[i]=i<128?i<<1:i<<1^283;var r=0,o=0;for(i=0;i<256;i++){var s=o^o<<1^o<<2^o<<3^o<<4;s=s>>>8^255&s^99,el[r]=s,ed[s]=r;var n=t[r],a=t[n],l=t[a],d=257*t[s]^16843008*s;ec[r]=d<<24|d>>>8,eh[r]=d<<16|d>>>16,ep[r]=d<<8|d>>>24,eu[r]=d,d=16843009*l^65537*a^257*n^16843008*r,eg[s]=d<<24|d>>>8,ef[s]=d<<16|d>>>16,ey[s]=d<<8|d>>>24,em[s]=d,r?(r=n^t[t[t[l^n]]],o^=t[t[o]]):r=o=1}}(),ev=[0,1,2,4,8,16,32,64,128,27,54],eb=ea.AES=en.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,i=t.words,r=t.sigBytes/4,o=4*((this._nRounds=r+6)+1),s=this._keySchedule=[],n=0;n<o;n++)n<r?s[n]=i[n]:(d=s[n-1],n%r?r>6&&n%r==4&&(d=el[d>>>24]<<24|el[d>>>16&255]<<16|el[d>>>8&255]<<8|el[255&d]):d=(el[(d=d<<8|d>>>24)>>>24]<<24|el[d>>>16&255]<<16|el[d>>>8&255]<<8|el[255&d])^ev[n/r|0]<<24,s[n]=s[n-r]^d);for(var a=this._invKeySchedule=[],l=0;l<o;l++){if(n=o-l,l%4)var d=s[n];else d=s[n-4];a[l]=l<4||n<=4?d:eg[el[d>>>24]]^ef[el[d>>>16&255]]^ey[el[d>>>8&255]]^em[el[255&d]]}}},encryptBlock:function(t,i){this._doCryptBlock(t,i,this._keySchedule,ec,eh,ep,eu,el)},decryptBlock:function(t,i){var r=t[i+1];t[i+1]=t[i+3],t[i+3]=r,this._doCryptBlock(t,i,this._invKeySchedule,eg,ef,ey,em,ed),r=t[i+1],t[i+1]=t[i+3],t[i+3]=r},_doCryptBlock:function(t,i,r,o,s,n,a,l){for(var d=this._nRounds,c=t[i]^r[0],h=t[i+1]^r[1],p=t[i+2]^r[2],u=t[i+3]^r[3],g=4,f=1;f<d;f++){var y=o[c>>>24]^s[h>>>16&255]^n[p>>>8&255]^a[255&u]^r[g++],m=o[h>>>24]^s[p>>>16&255]^n[u>>>8&255]^a[255&c]^r[g++],v=o[p>>>24]^s[u>>>16&255]^n[c>>>8&255]^a[255&h]^r[g++],b=o[u>>>24]^s[c>>>16&255]^n[h>>>8&255]^a[255&p]^r[g++];c=y,h=m,p=v,u=b}y=(l[c>>>24]<<24|l[h>>>16&255]<<16|l[p>>>8&255]<<8|l[255&u])^r[g++],m=(l[h>>>24]<<24|l[p>>>16&255]<<16|l[u>>>8&255]<<8|l[255&c])^r[g++],v=(l[p>>>24]<<24|l[u>>>16&255]<<16|l[c>>>8&255]<<8|l[255&h])^r[g++],b=(l[u>>>24]<<24|l[c>>>16&255]<<16|l[h>>>8&255]<<8|l[255&p])^r[g++],t[i]=y,t[i+1]=m,t[i+2]=v,t[i+3]=b},keySize:8}),es.AES=en._createHelper(eb),es.AES),iU||(iU=1,iJ.exports=(ew=tQ(),t7(),ii(),i_(),iM(),function(){var t=ew.lib,i=t.WordArray,r=t.BlockCipher,o=ew.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],n=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],l
vendor: 7,629 bytes, line 11
11=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],
vendor: 7,565 bytes, line 11
11d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],c=o.DES=r.extend({_doReset:function(){for(var t=this._key.words,i=[],r=0;r<56;r++){var o=s[r]-1;i[r]=t[o>>>5]>>>31-o%32&1}for(var l=this._subKeys=[],d=0;d<16;d++){var c=l[d]=[],h=a[d];for(r=0;r<24;r++)c[r/6|0]|=i[(n[r]-1+h)%28]<<31-r%6,c[4+(r/6|0)]|=i[28+(n[r+24]-1+h)%28]<<31-r%6;for(c[0]=c[0]<<1|c[0]>>>31,r=1;r<7;r++)c[r]=c[r]>>>4*(r-1)+3;c[7]=c[7]<<5|c[7]>>>27}var p=this._invSubKeys=[];for(r=0;r<16;r++)p[r]=l[15-r]},encryptBlock:function(t,i){this._doCryptBlock(t,i,this._subKeys)},decryptBlock:function(t,i){this._doCryptBlock(t,i,this._invSubKeys)},_doCryptBlock:function(t,i,r){this._lBlock=t[i],this._rBlock=t[i+1],h.call(this,4,252645135),h.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),h.call(this,1,1431655765);for(var o=0;o<16;o++){for(var s=r[o],n=this._lBlock,a=this._rBlock,c=0,u=0;u<8;u++)c|=l[u][((a^s[u])&d[u])>>>0];this._lBlock=a,this._rBlock=n^c}var g=this._lBlock;this._lBlock=this._rBlock,this._rBlock=g,h.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[i]=this._lBlock,t[i+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,i){var r=(this._lBlock>>>t^this._rBlock)&i;this._rBlock^=r,this._lBlock^=r<<t}function p(t,i){var r=(this._rBlock>>>t^this._lBlock)&i;this._lBlock^=r,this._rBlock^=r<<t}ew.DES=r._createHelper(c);var u=o.TripleDES=r.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=t.slice(0,2),o=t.length<4?t.slice(0,2):t.slice(2,4),s=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=c.createEncryptor(i.create(r)),this._des2=c.createEncryptor(i.create(o)),this._des3=c.createEncryptor(i.create(s))},encryptBlock:function(t,i){this._des1.encryptBlock(t,i),this._des2.decryptBlock(t,i),this._des3.encryptBlock(t,i)},decryptBlock:function(t,i){this._des3.decryptBlock(t,i),this._des2.encryptBlock(t,i),this._des1.decryptBlock(t,i)},keySize:6,ivSize:2,blockSize:2});ew.TripleDES=r._createHelper(u)}(),ew.TripleDES)),iJ.exports,iV||(iV=1,eC=tQ(),t7(),ii(),i_(),iM(),function(){var t=eC.lib.StreamCipher,i=eC.algo,r=i.RC4=t.extend({_doReset:function(){for(var t=this._key,i=t.words,r=t.sigBytes,o=this._S=[],s=0;s<256;s++)o[s]=s;s=0;for(var n=0;s<256;s++){var a=s%r,l=i[a>>>2]>>>24-a%4*8&255;n=(n+o[s]+l)%256;var d=o[s];o[s]=o[n],o[n]=d}this._i=this._j=0},_doProcessBlock:function(t,i){t[i]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,i=this._i,r=this._j,o=0,s=0;s<4;s++){r=(r+t[i=(i+1)%256])%256;var n=t[i];t[i]=t[r],t[r]=n,o|=t[(t[i]+t[r])%256]<<24-8*s}return this._i=i,this._j=r,o}eC.RC4=t._createHelper(r);var s=i.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});eC.RC4Drop=t._createHelper(s)}(),eC.RC4),iW||(iW=1,ek=tQ(),t7(),ii(),i_(),iM(),function(){var t=ek.lib.StreamCipher,i=ek.algo,r=[],o=[],s=[],n=i.Rabbit=t.extend({_doReset:function(){for(var t=this._key.words,i=this.cfg.iv,r=0;r<4;r++)t[r]=16711935&(t[r]<<8|t[r]>>>24)|4278255360&(t[r]<<24|t[r]>>>8);var o=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],s=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,r=0;r<4;r++)a.call(this);for(r=0;r<8;r++)s[r]^=o[r+4&7];if(i){var n=i.words,l=n[0],d=n[1],c=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),h=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p=c>>>16|4294901760&h,u=h<<16|65535&c;for(s[0]^=c,s[1]^=p,s[2]^=h,s[3]^=u,s[4]^=c,s[5]^=p,s[6]^=h,s[7]^=u,r=0;r<4;r++)a.call(this)}},_doProcessBlock:function(t,i){var o=this._X;a.call(this),r[0]=o[0]^o[5]>>>16^o[3]<<16,r[1]=o[2]^o[7]>>>16^o[5]<<16,r[2]=o[4]^o[1]>>>16^o[7]<<16,r[3]=o[6]^o[3]>>>16^o[1]<<16;for(var s=0;s<4;s++)r[s]=16711935&(r[s]<<8|r[s]>>>24)|4278255360&(r[s]<<24|r[s]>>>8),t[i+s]^=r[s]},blockSize:4,ivSize:2});function a(){for(var t=this._X,i=this._C,r=0;r<8;r++)o[r]=i[r];for(i[0]=i[0]+1295307597+this._b|0,i[1]=i[1]+3545052371+(i[0]>>>0<o[0]>>>0?1:0)|0,i[2]=i[2]+886263092+(i[1]>>>0<o[1]>>>0?1:0)|0,i[3]=i[3]+1295307597+(i[2]>>>0<o[2]>>>0?1:0)|0,i[4]=i[4]+3545052371+(i[3]>>>0<o[3]>>>0?1:0)|0,i[5]=i[5]+886263092+(i[4]>>>0<o[4]>>>0?1:0)|0,i[6]=i[6]+1295307597+(i[5]>>>0<o[5]>>>0?1:0)|0,i[7]=i[7]+3545052371+(i[6]>>>0<o[6]>>>0?1:0)|0,this._b=i[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+i[r],a=65535&n,l=n>>>16,d=((a*a>>>17)+a*l>>>15)+l*l,c=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=d^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}ek.Rabbit=t._createHelper(n)}(),ek.Rabbit),i$||(i$=1,ex=tQ(),t7(),ii(),i_(),iM(),function(){var t=ex.lib.StreamCipher,i=ex.algo,r=[],o=[],s=[],n=i.RabbitLegacy=t.extend({_doReset:function(){var t=this._key.words,i=this.cfg.iv,r=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var s=0;s<4;s++)a.call(this);for(s=0;s<8;s++)o[s]^=r[s+4&7];if(i){var n=i.words,l=n[0],d=n[1],c=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8),h=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p=c>>>16|4294901760&h,u=h<<16|65535&c;for(o[0]^=c,o[1]^=p,o[2]^=h,o[3]^=u,o[4]^=c,o[5]^=p,o[6]^=h,o[7]^=u,s=0;s<4;s++)a.call(this)}},_doProcessBlock:function(t,i){var o=this._X;a.call(this),r[0]=o[0]^o[5]>>>16^o[3]<<16,r[1]=o[2]^o[7]>>>16^o[5]<<16,r[2]=o[4]^o[1]>>>16^o[7]<<16,r[3]=o[6]^o[3]>>>16^o[1]<<16;for(var s=0;s<4;s++)r[s]=16711935&(r[s]<<8|r[s]>>>24)|4278255360&(r[s]<<24|r[s]>>>8),t[i+s]^=r[s]},blockSize:4,ivSize:2});function a(){for(var t=this._X,i=this._C,r=0;r<8;r++)o[r]=i[r];for(i[0]=i[0]+1295307597+this._b|0,i[1]=i[1]+3545052371+(i[0]>>>0<o[0]>>>0?1:0)|0,i[2]=i[2]+886263092+(i[1]>>>0<o[1]>>>0?1:0)|0,i[3]=i[3]+1295307597+(i[2]>>>0<o[2]>>>0?1:0)|0,i[4]=i[4]+3545052371+(i[3]>>>0<o[3]>>>0?1:0)|0,i[5]=i[5]+886263092+(i[4]>>>0<o[4]>>>0?1:0)|0,i[6]=i[6]+1295307597+(i[5]>>>0<o[5]>>>0?1:0)|0,i[7]=i[7]+3545052371+(i[6]>>>0<o[6]>>>0?1:0)|0,this._b=i[7]>>>0<o[7]>>>0?1:0,r=0;r<8;r++){var n=t[r]+i[r],a=65535&n,l=n>>>16,d=((a*a>>>17)+a*l>>>15)+l*l,c=((4294901760&n)*n|0)+((65535&n)*n|0);s[r]=d^c}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}ex.RabbitLegacy=t._createHelper(n)}(),ex.RabbitLegacy),iH||(iH=1,iQ.exports=(eI=tQ(),t7(),ii(),i_(),iM(),function(){var t=eI.lib.BlockCipher,i=eI.algo;let r=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],o
vendor: 11,033 bytes, line 11
11=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]]
11;var s={pbox:[],sbox:[]};function n(t,i){let r=t.sbox[0][i>>24&255]+t.sbox[1][i>>16&255];return r^=t.sbox[2][i>>8&255],r+=t.sbox[3][255&i]}function a(t,i,r){let o,s=i,a=r;for(let i=0;i<16;++i)s^=t.pbox[i],a=n(t,s)^a,o=s,s=a,a=o;return o=s,s=a,a=o^t.pbox[16],{left:s^=t.pbox[17],right:a}}var l=i.Blowfish=t.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key;(function(t,i,s){for(let i=0;i<4;i++){t.sbox[i]=[];for(let r=0;r<256;r++)t.sbox[i][r]=o[i][r]}let n=0;for(let o=0;o<18;o++)t.pbox[o]=r[o]^i[n],++n>=s&&(n=0);let l=0,d=0,c=0;for(let i=0;i<18;i+=2)l=(c=a(t,l,d)).left,d=c.right,t.pbox[i]=l,t.pbox[i+1]=d;for(let i=0;i<4;i++)for(let r=0;r<256;r+=2)l=(c=a(t,l,d)).left,d=c.right,t.sbox[i][r]=l,t.sbox[i][r+1]=d})(s,t.words,t.sigBytes/4)}},encryptBlock:function(t,i){var r=a(s,t[i],t[i+1]);t[i]=r.left,t[i+1]=r.right},decryptBlock:function(t,i){var r=function(t,i,r){let o,s=i,a=r;for(let i=17;i>1;--i)s^=t.pbox[i],a=n(t,s)^a,o=s,s=a,a=o;return o=s,s=a,a=o^t.pbox[1],{left:s^=t.pbox[0],right:a}}(s,t[i],t[i+1]);t[i]=r.left,t[i+1]=r.right},blockSize:2,keySize:4,ivSize:2});eI.Blowfish=t._createHelper(l)}(),eI.Blowfish)),iQ.exports,S)),tG.exports),iX=eE("key"),i1=eE("logger"),i0=eE("encryptLocalStorage");class i2{constructor(){Object.defineProperty(this,iX,{writable:!0,value:void 0}),Object.defineProperty(this,i1,{writable:!0,value:void 0}),Object.defineProperty(this,i0,{writable:!0,value:!1})}set logger(t){eM(this,i1)[i1]=t}get logger(){return eM(this,i1)[i1]}set key(t){eM(this,iX)[iX]=t}get key(){return eM(this,iX)[iX]}set enableLocalStorageEncryption(t){eM(this,i0)[i0]=t}get enableLocalStorageEncryption(){return eM(this,i0)[i0]}shouldEncrypt(t){return eM(this,i0)[i0]&&tE.includes(t)}shouldDecrypt(t){return tE.includes(t)}encrypt(t){return iY.AES.encrypt(t,this.key).toString()}decrypt(t){let i=iY.AES.decrypt(t,this.key).toString(iY.enc.Utf8);return""===i?t:i}}let i4=new i2;class i3{static save(t,i){return!(!t||!i)&&(this._isLocalStorageSupported()?(i4.shouldEncrypt(t)?localStorage.setItem(t,i4.encrypt(i)):localStorage.setItem(t,"string"==typeof i?i:JSON.stringify(i)),!0):void 0)}static read(t){if(!t)return!1;let i=null;if(this._isLocalStorageSupported()&&(i=localStorage.getItem(t)),null!=i)try{i4.shouldDecrypt(t)&&(i=i4.decrypt(i)),i=JSON.parse(i)}catch(t){}return i}static remove(t){return!!t&&(this._isLocalStorageSupported()?(localStorage.removeItem(t),!0):void 0)}static removeCookie(t,i){let r=t+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;";i&&(r=r+" domain="+i+"; path=/"),document.cookie=r}static createCookie(t,i,r,o){let s="",n="";if(r){let t=new Date;t.setTime(t.getTime()+1e3*r),s="; expires="+t.toGMTString()}o&&(n="; domain="+o),i=encodeURIComponent(i),document.cookie=t+"="+i+s+n+"; path=/"}static readCookie(t){let i=t+"=",r=document.cookie.split(";");for(let t=0;t<r.length;t++){let o=r[t];for(;" "===o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(i))try{return decodeURIComponent(o.substring(i.length,o.length))}catch(t){break}}return null}static _isLocalStorageSupported(){return"localStorage"in window&&null!==window.localStorage&&"function"==typeof window.localStorage.setItem}static saveToLSorCookie(t,i){if(null!=i)try{this._isLocalStorageSupported()?this.save(t,encodeURIComponent(JSON.stringify(i))):t===eV?this.createCookie(t,encodeURIComponent(i),0,window.location.hostname):this.createCookie(t,encodeURIComponent(JSON.stringify(i)),0,window.location.hostname),i6.globalCache[t]=i}catch(t){}}static readFromLSorCookie(t){let i;if(i6.globalCache.hasOwnProperty(t))return i6.globalCache[t];if(null!=(i=this._isLocalStorageSupported()?this.read(t):this.readCookie(t))&&("function"!=typeof i.trim||""!==i.trim())){let r;try{r=JSON.parse(decodeURIComponent(i))}catch(t){r=decodeURIComponent(i)}return i6.globalCache[t]=r,r}}static createBroadCookie(t,i,r,o){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(s){let o=window.location.hostname.split("."),n="";n=s<=o.length?"."+o.slice(-s).join("."):"."+window.location.hostname;let a=i;return t===eV&&this.readCookie(t)&&(a=this.readCookie(t),this.removeCookie(t,i6.broadDomain),this.removeCookie(t,n),this.removeCookie(t,".bank.in")),void this.createCookie(t,a,r,n)}if(this.readFromLSorCookie(tm))return i6.broadDomain&&this.removeCookie(t,i6.broadDomain),void this.createCookie(t,i,r,o);if(o){let s=i6.broadDomain;if(null==s){let a=o.split("."),l="";for(let o=a.length-1;o>=0;o--){if(l=0===o?a[o]+l:"."+a[o]+l,this.readCookie(t)){var n="test_"+t+o;if(this.createCookie(n,i,10,l),!this.readCookie(n))continue;this.removeCookie(n,l)}if(this.createCookie(t,i,r,l),this.readCookie(t)==i){s=l,i6.broadDomain=s;break}}}else this.createCookie(t,i,r,s)}else this.createCookie(t,i,r,o)}static getMetaProp(t){let i=this.readFromLSorCookie(eK);if(null!=i)return i[t]}static setMetaProp(t,i){if(this._isLocalStorageSupported()){let r=this.readFromLSorCookie(eK);null==r&&(r={}),void 0===i?delete r[t]:r[t]=i,this.saveToLSorCookie(eK,r)}}static getAndClearMetaProp(t){let i=this.getMetaProp(t);return this.setMetaProp(t,void 0),i}static setInstantDeleteFlagInK(){let t=this.readFromLSorCookie(eW);
11null==t&&(t={}),t.flag=!0,this.saveToLSorCookie(eW,t)}static backupEvent(t,i,r){let o=this.readFromLSorCookie(eQ);void 0===o&&(o={}),o[i]={q:t},this.saveToLSorCookie(eQ,o),r.debug(`stored in WZRK_L reqNo : ${i} -> ${t}`)}static markBackupAsOUL(t){let i=this.getMetaProp("OUL_REQUESTS")||[];i.includes(t)||(i.push(t),this.setMetaProp("OUL_REQUESTS",i))}static isBackupOUL(t){return(this.getMetaProp("OUL_REQUESTS")||[]).includes(t)}static removeBackup(t,i){let r=this.readFromLSorCookie(eQ);null!=r&&void 0!==r[t]&&(i.debug(`del event: ${t} data-> ${r[t].q}`),delete r[t],this.saveToLSorCookie(eQ,r))}}let i6={globalCache:{gcookie:null,REQ_N:0,RESP_N:0},LRU_CACHE:null,globalProfileMap:void 0,globalEventsMap:void 0,discardedEventsList:null,get blockRequest(){return!0===i3.readFromLSorCookie(tf)},set blockRequest(e){i3.saveToLSorCookie(tf,e)},isOptInRequest:!1,broadDomain:null,webPushEnabled:null,campaignDivMap:{},currentSessionId:null,wiz_counter:0,notifApi:{notifEnabledFromApi:!1},unsubGroups:[],updatedCategoryLong:null,inbox:null,isPrivacyArrPushed:!1,privacyArray:[],offline:!1,location:null,dismissSpamControl:!0,globalUnsubscribe:!0,flutterVersion:null,variableStore:{},pushConfig:null,delayEvents:!1,intervalArray:[],enableTVNavigation:!1};var i5=eE("keyOrder"),i7=eE("mergeCookieCache"),i8=eE("saveCacheToBroadCookie"),i9=eE("deleteFromObject");class re{constructor(t){Object.defineProperty(this,i9,{value:rr}),Object.defineProperty(this,i8,{value:ri}),Object.defineProperty(this,i7,{value:rt}),Object.defineProperty(this,i5,{writable:!0,value:void 0}),this.max=t;let i=i3.readFromLSorCookie(e1);if(i){let t={};for(let r in eM(this,i5)[i5]=[],i=i.cache)i.hasOwnProperty(r)&&(t[i[r][0]]=i[r][1],eM(this,i5)[i5].push(i[r][0]));this.cache=t}else this.cache={},eM(this,i5)[i5]=[];eM(this,i7)[i7]()}get(t){let i=this.cache[t];return i&&(this.cache=eM(this,i9)[i9](t,this.cache),this.cache[t]=i,eM(this,i5)[i5].push(t)),this.saveC
11acheToLS(this.cache),i}set(t,i){let r=this.cache[t],o=eM(this,i5)[i5];null!=r?this.cache=eM(this,i9)[i9](t,this.cache):o.length===this.max&&(this.cache=eM(this,i9)[i9](o[0],this.cache)),this.cache[t]=i,eM(this,i5)[i5][eM(this,i5)[i5]-1]!==t&&eM(this,i5)[i5].push(t),this.saveCacheToLS(this.cache)}saveCacheToLS(t){let i=[],r=eM(this,i5)[i5];for(let o in r)if(r.hasOwnProperty(o)){let s=[];s.push(r[o]),s.push(t[r[o]]),i.push(s)}i3.saveToLSorCookie(e1,{cache:i}),eM(this,i8)[i8](i)}getKey(t){if(null===t)return null;let i=eM(this,i5)[i5];for(let r in i)if(i.hasOwnProperty(r)&&this.cache[i[r]]===t)return i[r];return null}getSecondLastKey(){let t=eM(this,i5)[i5];return null!=t&&t.length>1?t[t.length-2]:-1}getLastKey(){let t=eM(this,i5)[i5].length;if(t)return eM(this,i5)[i5][t-1]}}function rt(){try{let t=i3.readCookie(e1);if(t){let i=JSON.parse(t);if(i&&i.cache){let t=!1;for(let r of i.cache){let i=r[0],o=r[1];i&&o&&!this.cache[i]&&(this.cache[i]=o,eM(this,i5)[i5].push(i),t=!0)}t&&this.saveCacheToLS(this.cache)}}}catch(t){}}function ri(t){try{let i=JSON.stringify({cache:t});i3.createBroadCookie(e1,i,31536e3,window.location.hostname)}catch(t){}}function rr(t,i){let r;let o=JSON.parse(JSON.stringify(eM(this,i5)[i5])),s={};for(let n in o)o.hasOwnProperty(n)&&(o[n]!==t?s[o[n]]=i[o[n]]:r=n);return o.splice(r,1),eM(this,i5)[i5]=JSON.parse(JSON.stringify(o)),s}var ro=eE("logger"),rs=eE("request"),rn=eE("device"),ra=eE("session"),rl=eE("domainSpecification"),rd=eE("instanceManager");class rc{constructor(t){let{logger:i,request:r,device:o,session:s,domainSpecification:n,instanceManager:a}=t;Object.defineProperty(this,ro,{writable:!0,value:void 0}),Object.defineProperty(this,rs,{writable:!0,value:void 0}),Object.defineProperty(this,rn,{writable:!0,value:void 0}),Object.defineProperty(this,ra,{writable:!0,value:void 0}),Object.defineProperty(this,rl,{writable:!0,value:void 0}),Object.defineProperty(this,rd,{writable:!0,value:void 0}),this.domainSpecification=n,eM(this,ro)[ro]=i,eM(this,rs)[rs]=r,eM(this,rn)[rn]=o,eM(this,ra)[ra]=s,eM(this,rd)[rd]=a}get domainSpecification(){return eM(this,rl)[rl]}set domainSpecification(t){eM(this,rl)[rl]=t}s(t,i,r,o,s){let n=!1,a=!1;if(eM(this,rd)[rd].isOULInProgress&&(r||"undefined"!==o&&o===eM(this,rd)[rd].oulReqN)&&(eM(this,rd)[rd].isOULInProgress=!1,n=!0),void 0===o&&(o=0),eM(this,rd)[rd].storage.removeBackup(o,eM(this,ro)[ro]),o>eM(this,rd)[rd].state.globalCache.REQ_N)return;if(tR(eM(this,rn)[rn].gcookie)||t&&(a=!0),!tR(eM(this,rn)[rn].gcookie)||r||"boolean"==typeof s){let o=eM(this,ra)[ra].getSessionCookieObject();if(eM(this,rd)[rd].isOULInProgress||o.s&&i<o.s)return;if(eM(this,ro)[ro].debug(`Cookie was ${eM(this,rn)[rn].gcookie} set to ${t}`),eM(this,rn)[rn].gcookie=t,tR(eM(this,rn)[rn].gcookie)||eM(this,rd)[rd].storage.getAndClearMetaProp(eX),t&&eM(this,rd)[rd].storage._isLocalStorageSupported()){let i;null==eM(this,rd)[rd].state.LRU_CACHE&&(eM(this,rd)[rd].state.LRU_CACHE=new re(100));let o=eM(this,rd)[rd].storage.readFromLSorCookie(eW);null!=o&&o.id&&(i=eM(this,rd)[rd].state.LRU_CACHE.cache[o.id],r&&(i||(eM(this,rd)[rd].storage.saveToLSorCookie(e5,!0),eM(this,rd)[rd].state.LRU_CACHE.set(o.id,t)))),eM(this,rd)[rd].storage.saveToLSorCookie(eV,t);let s=eM(this,rd)[rd].state.LRU_CACHE.getSecondLastKey();if(eM(this,rd)[rd].storage.readFromLSorCookie(e5)&&-1!==s){let t=eM(this,rd)[rd].state.LRU_CACHE.cache[s];eM(this,rs)[rs].unregisterTokenForGuid(t)}}eM(this,rd)[rd].storage.createBroadCookie(eV,t,31536e3,window.location.hostname,this.domainSpecification),eM(this,rd)[rd].storage.saveToLSorCookie(eV,t)}eM(this,rd)[rd].storage._isLocalStorageSupported()&&eM(this,ra)[ra].manageSession(i);let l=eM(this,ra)[ra].getSessionCookieObject();(void 0===l.s||l.s<=i)&&(l.s=i,l.t=tW(),eM(this,ra)[ra].setSessionCookieObject(l)),tR(eM(this,rn)[rn].gcookie)&&(eM(this,rd)[rd].state.blockRequest=!1),(n||a)&&!eM(this,rs)[rs].processingBackup&&eM(this,rs)[rs].processBackupEvents(),eM(this,rd)[rd].state.globalCache.RESP_N=o}}var rh=eE("logger"),rp=eE("domainSpecification"),ru=eE("storageManager");class rg{constructor(t){let{logger:i,customId:r,domainSpecification:o,storageManager:s}=t;Object.defineProperty(this,rh,{writable:!0,value:void 0}),this.gcookie=void 0,Object.defineProperty(this,rp,{writable:!0,value:void 0}),Object.defineProperty(this,ru,{writable:!0,value:void 0}),eM(this,rh)[rh]=i,eM(this,ru)[ru]=s,this.domainSpecification=o,this.gcookie=this.getGuid()||r}get domainSpecification(){return eM(this,rp)[rp]}set domainSpecification(t){eM(this,rp)[rp]=t}getGuid(){let t=null;if(tR(this.gcookie))return this.gcookie;if(eM(this,ru)[ru]._isLocalStorageSupported()){let i=eM(this,ru)[ru].read(eV);if(tR(i)){try{t=tU(decodeURIComponent(i),null)}catch(r){eM(this,rh)[rh].debug("Cannot parse Gcookie from localstorage - must be encoded "+i),32===i.length?(t=i,eM(this,ru)[ru].saveToLSorCookie(eV,i)):eM(this,rh)[rh].error("Illegal guid "+i)}tR(t)&&eM(this,ru)[ru].createBroadCookie(eV,t,31536e3,window.location.hostname,this.domainSpecification)}}return tR(t)||(tR(t=eM(this,ru)[ru].readCookie(eV))&&(0===t.indexOf("%")||0===t.indexOf("'")||0===t.indexOf('"'))&&(t=null),tR(t)&&eM(this,ru)[ru].saveToLSorCookie(eV,t)),t}}let rf="This property has been ignored.",ry=`CleverTap error: Event structure not valid. ${rf}`,rm=`CleverTap error: Gender value should one of the following: m,f,o,u,male,female,unknown,others (case insensitive). ${rf}`,rv=`CleverTap error: Employed value should be either Y or N. ${rf}`,rb=`CleverTap error: Married value should be either Y or N. ${rf}`,rw=`CleverTap error: Education value should be either School, College or Graduate. ${rf}`,rC=`CleverTap error: Age value should be a number. ${rf}`,{DEPTH_LIMIT_EXCEEDED:rk,ARRAY_KEY_COUNT_LIMIT_EXCEEDED:rx,OBJECT_KEY_COUNT_LIMIT_EXCEEDED:rI,ARRAY_LENGTH_LIMIT_EXCEEDED:r_,KV_PAIR_COUNT_LIMIT_EXCEEDED:rS,NULL_VALUE_REMOVED:rE,EMPTY_VALUE_REMOVED:rM}=tA,rP=t=>{if(tO(t)){for(var i in t)if(t.hasOwnProperty(i)){if(tO(t[i])||Array.isArray(t[i]))return!1;tD(t[i])&&(t[i]=t$(t[i]))}return!0}return!1},rA=(i,r)=>{if(tO(i)){for(var o in i)if(i.hasOwnProperty(o)){if("Items"===o){if(!Array.isArray(i[o]))return!1;for(var s in i[o].length>50&&r.reportError(522,"Charged Items exceed 50 limit. Actual count: "+i[o].length),i[o])if(i[o].hasOwnProperty(s)&&(!tO(i[o][s])||!rP(i[o][s])))return!1}
11else{if(tO(i[o])||Array.isArray(i[o]))return!1;tD(i[o])&&(i[o]=t$(i[o]))}}if(tT(i[eF])||tz(i[eF])){let o=i[eF]+"";if(void 0===t&&(t=i3.readFromLSorCookie(eU)),void 0!==t&&t.trim()===o.trim())return r.error("Duplicate charged Id - Dropped"+i),!1;t=o,i3.saveToLSorCookie(eU,o)}return!0}return!1},rL=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{isValid:t,errorMessage:i,processedObj:r}},rT=t=>null==t||"string"==typeof t&&""===t.trim()||(Array.isArray(t)?0===t.length:!!tO(t)&&0===Object.keys(t).length),rO=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"";if(r>o)return t;if(Array.isArray(t)){let n=[];return t.forEach((t,a)=>{if(rT(t)){if(i){let r=s?`${s}[${a}]`:`[${a}]`;null==t?i.reportInfo(rE.code,rE.message.replace("%s",r)):i.reportInfo(rM.code,rM.message.replace("%s",r))}return}let l=t;if((tO(t)||Array.isArray(t))&&(l=rO(t,i,r+1,o,s?`${s}[${a}]`:`[${a}]`)),rT(l)){if(i){let t=s?`${s}[${a}]`:`[${a}]`;i.reportInfo(rM.code,rM.message.replace("%s",t))}}else n.push(l)}),n.length>0?n:void 0}if(tO(t)){let n={};for(let a in t)if(t.hasOwnProperty(a)){let l=t[a],d=s?`${s}.${a}`:a;tD(l)?l=t$(l):(tO(l)||Array.isArray(l))&&(l=rO(l,i,r+1,o,d)),rT(l)?i&&(null==l?i.reportInfo(rE.code,rE.message.replace("%s",d)):i.reportInfo(rM.code,rM.message.replace("%s",d))):n[a]=l}return Object.keys(n).length>0?n:void 0}return t},rD=function(t,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;if(!tO(t))return rL(!1,"Event data must be an object");let o=rO(t,i,0,r);if(rT(o))return rL(!1,"Event object is empty after cleaning null/empty values");let s=0,n=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(i>r)return s=i,!1;if(tO(t)){for(let r in t)if(t.hasOwnProperty(r)){if(Array.isArray(t[r])){for(let o of t[r])if(tO(o)&&!n(o,i+1))return!1}else if(tO(t[r])&&!n(t[r],i+1))return!1}}return!0};if(!n(o)){let t=rk.message.replace("%s",s).replace("%s",r);return i.reportError(rk.code,t),rL(!1,`Maximum nesting depth of ${r} levels exceeded`,o)}let a=t=>{if(!tO(t))return 0;let i=0;for(let r in t)t.hasOwnProperty(r)&&(tO(t[r])||Array.isArray(t[r]))&&i++;return i},l=a(o);if(l>5){let t=rI.message.replace("%s",l).replace("%s",5);return i.reportError(rI.code,t),rL(!1,`Maximum 5 object/array keys allowed at root level. Found: ${l}`,o)}let d=function(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!tO(t)||o>r)return!0;for(let r in t)if(t.hasOwnProperty(r)){if(Array.isArray(t[r])){if(t[r].length>100){let o=r_.message.replace("%s",t[r].length).replace("%s",100);return i.reportError(r_.code,o),!1}for(let s of t[r])if(tO(s)){let t=a(s);if(t>5){let r=rx.message.replace("%s",t).replace("%s",5);return i.reportError(rx.code,r),!1}if(!d(s,o+1))return!1}}else if(tO(t[r])){let s=a(t[r]);if(s>5){let t=rI.message.replace("%s",s).replace("%s",5);return i.reportError(rI.code,t),!1}if(!d(t[r],o+1))return!1}}return!0},c=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3;if(!tO(t)||i>r)return 0;let o=0;for(let s in t)if(t.hasOwnProperty(s)){if(o++,Array.isArray(t[s]))for(let n of t[s])tO(n)&&(o+=c(n,i+1,r));else tO(t[s])&&(o+=c(t[s],i+1,r))}return o};if(!d(o))return rL(!1,"Nested object/array count validation failed",o);let h=c(o);if(h>100){let t=rS.message.replace("%s",h).replace("%s",100);return i.reportError(rS.code,t),rL(!1,`Maximum 100 attribute keys allowed. Found: ${h}`,o)}return rL(!0,null,o)},rN=(t,i)=>(i&&"function"==typeof i.debug&&i.debug("dobj:"+t),rz(t)),rB=(()=>{let t="",i=0;for(i=0;i<=25;i++)t+=String.fromCharCode(i+65);for(i=0;i<=25;i++)t+=String.fromCharCode(i+97);for(i=0;i<10;i++)t+=i;return t+"+/="})(),rz=t=>{if(null==t)return"";var i,r,o,s,n,a,l,d="",c=0;for(t=(t=>{if(null==t)return"";let i,r,o,s={},n={},a="",l="",d="",c=2,h=3,p=2,u="",g=0,f=0,y=String.fromCharCode;for(o=0;o<t.length;o+=1)if(a=t.charAt(o),Object.prototype.hasOwnProperty.call(s,a)||(s[a]=h++,n[a]=!0),l=d+a,Object.prototype.hasOwnProperty.call(s,l))d=l;
11else{if(Object.prototype.hasOwnProperty.call(n,d)){if(256>d.charCodeAt(0)){for(i=0;i<p;i++)g<<=1,15==f?(f=0,u+=y(g),g=0):f++;for(r=d.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,15==f?(f=0,u+=y(g),g=0):f++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,15==f?(f=0,u+=y(g),g=0):f++,r=0;for(r=d.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,15==f?(f=0,u+=y(g),g=0):f++,r>>=1}0==--c&&(c=Math.pow(2,p),p++),delete n[d]}else for(r=s[d],i=0;i<p;i++)g=g<<1|1&r,15==f?(f=0,u+=y(g),g=0):f++,r>>=1;0==--c&&(c=Math.pow(2,p),p++),s[l]=h++,d=String(a)}if(""!==d){if(Object.prototype.hasOwnProperty.call(n,d)){if(256>d.charCodeAt(0)){for(i=0;i<p;i++)g<<=1,15==f?(f=0,u+=y(g),g=0):f++;for(r=d.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,15==f?(f=0,u+=y(g),g=0):f++,r>>=1}else{for(r=1,i=0;i<p;i++)g=g<<1|r,15==f?(f=0,u+=y(g),g=0):f++,r=0;for(r=d.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,15==f?(f=0,u+=y(g),g=0):f++,r>>=1}0==--c&&(c=Math.pow(2,p),p++),delete n[d]}else for(r=s[d],i=0;i<p;i++)g=g<<1|1&r,15==f?(f=0,u+=y(g),g=0):f++,r>>=1;0==--c&&(c=Math.pow(2,p),p++)}for(r=2,i=0;i<p;i++)g=g<<1|1&r,15==f?(f=0,u+=y(g),g=0):f++,r>>=1;for(;;){if(g<<=1,15==f){u+=y(g);break}f++}return u})(t);c<2*t.length;)c%2==0?(i=t.charCodeAt(c/2)>>8,r=255&t.charCodeAt(c/2),o=c/2+1<t.length?t.charCodeAt(c/2+1)>>8:NaN):(i=255&t.charCodeAt((c-1)/2),(c+1)/2<t.length?(r=t.charCodeAt((c+1)/2)>>8,o=255&t.charCodeAt((c+1)/2)):r=o=NaN),c+=3,s=i>>2,n=(3&i)<<4|r>>4,a=(15&r)<<2|o>>6,l=63&o,isNaN(r)?a=l=64:isNaN(o)&&(l=64),d=d+rB.charAt(s)+rB.charAt(n)+rB.charAt(a)+rB.charAt(l);return d},rR={_device:null,_session:null,_request:null,_logger:null,_msg:null,_region:null,_instanceManager:null,_instance:null,update(t,i,r,o,s,n,a,l){this._device=t,this._session=i,this._request=r,this._logger=o,this._msg=s,this._region=n,this._instanceManager=a,this._instance=l},get device(){return this._device},get session(){return this._session},get request(){return this._request},get logger(){return this._logger},get msg(){return this._msg},get region(){return this._region},get instanceManager(){return this._instanceManager},get instance(){return this._instance}},rj=(t,i)=>{let r=window.parent[t];"function"==typeof r&&(null!=i.display.kv?r(i.display.kv):r())},rF=(t,i)=>{let r=`<script> 12 const ct__camapignId = '${t.wzrk_id}'; 13 const ct__formatVal = (v) => { 14 return v && v.trim().substring(0, 20); 15 } 16 const ct__parentOrigin = window.parent.origin; 17 document.body.addEventListener('click', (event) => { 18 const elem = event.target.closest?.('a[wzrk_c2a], button[wzrk_c2a]'); 19 if (elem) { 20 const {innerText, id, name, value, href} = elem; 21 const clickAttr = elem.getAttribute('onclick') || elem.getAttribute('click'); 22 const onclickURL = clickAttr?.match(/(window.open)[(]("|')(.*)("|',)/)?.[3] || clickAttr?.match(/(location.href *= *)("|')(.*)("|')/)?.[3]; 23 const props = {innerText, id, name, value}; 24 let msgCTkv = Object.keys(props).reduce((acc, c) => { 25 const formattedVal = ct__formatVal(props[c]); 26 formattedVal && (acc['wzrk_click_' + c] = formattedVal); 27 return acc; 28 }, {}); 29 if(onclickURL) { msgCTkv['wzrk_click_' + 'url'] = onclickURL; } 30 if(href) { msgCTkv['wzrk_click_' + 'c2a'] = href; } 31 const notifData = { msgId: ct__camapignId, msgCTkv, pivotId: '${t.wzrk_pivot}' }; 32 window.parent.clevertap.renderNotificationClicked(notifData); 33 } 34 }); 35 </script> 36 `;return i.replace(/(<\s*\/\s*body)/,`${r} 37$1`)},rU=(t,i)=>i+`<script> 38 const ct__campaignId = '${t.wzrk_id}'; 39 const ct__formatVal_tv = (v) => v && v.trim().substring(0, 20); 40 41 let focusableElements = []; 42 let currentFocusIndex = 0; 43 44 function init() { 45 focusableElements = Array.from(document.querySelectorAll( 46 'button, a[href], a[wzrk_c2a], button[wzrk_c2a], input:not([type="hidden"]), ' + 47 '.wzrkClose, .CT_InterstitialClose, .CT_InterstitialCTA, .jsCT_CTA' 48 )).filter(el => window.getComputedStyle(el).display !== 'none'); 49 50 // Ensure iframe has focus 51 window.focus(); 52 if (focusableElements.length > 0) { focusElement(0); } 53 } 54 55 function focusElement(index) {
56 focusableElements.forEach(el => el.classList.remove('ct-tv-focused')); 57 currentFocusIndex = index; 58 if (focusableElements[currentFocusIndex]) { focusableElements[currentFocusIndex].classList.add('ct-tv-focused'); focusableElements[currentFocusIndex].focus(); } 59 } 60 61 function navigate(direction) { 62 if (focusableElements.length === 0) return; 63 let newIndex = direction === 'next' ? Math.min(focusableElements.length - 1, currentFocusIndex + 1) : Math.max(0, currentFocusIndex - 1); 64 if (newIndex !== currentFocusIndex) focusElement(newIndex); 65 } 66 67 function activate() { 68 const element = focusableElements[currentFocusIndex]; 69 if (element) { 70 if (element.hasAttribute('wzrk_c2a')) { 71 const {innerText, id, name, value, href} = element; 72 let msgCTkv = Object.keys({innerText, id, name, value}).reduce((acc, c) => { const formattedVal = ct__formatVal_tv(element[c]); formattedVal && (acc['wzrk_click_' + c] = formattedVal); return acc; }, {}); 73 if(href) msgCTkv['wzrk_click_c2a'] = href; 74 window.parent.clevertap.renderNotificationClicked({ msgId: ct__campaignId, msgCTkv, pivotId: '${t.wzrk_pivot}' }); 75 } 76 element.click(); 77 } 78 } 79 80 document.addEventListener('keydown', function(event) { 81 event.preventDefault(); 82 switch (event.keyCode) { 83 case 37: case 38: 84 navigate('prev'); 85 break; 86 case 39: case 40: 87 navigate('next'); 88 break; 89 case 13: 90 activate(); 91 break; 92 case 10009: case 10182: 93 case 461: case 27: 94 const closeBtn = document.querySelector('.wzrkClose, .CT_InterstitialClose'); 95 if (closeBtn) closeBtn.click(); 96 break; 97 } 98 }, { passive: false }); 99 100 const style = document.createElement('style'); 101 style.textContent = '.ct-tv-focused { outline: 3px solid #00ff00 !important; color: white !important; transform: scale(1.05) !important; }'; 102 document.head.appendChild(style); 103 104 document.readyState === 'loading' ? document.addEventListener('DOMContentLoaded', init) : init(); 105 </script>`,rV=(t,i)=>{let r=oy(),o=r[i].global;if(null!=o&&i){for(let r in t)if(t.hasOwnProperty(r)&&(delete o[t[r]],rR.instanceManager.storage.read(eH))){let o=JSON.parse(decodeURIComponent(rR.instanceManager.storage.read(eH))),s=tU(decodeURIComponent(rR.instanceManager.storage.read(eV)),null);o[s]&&o[s][i]&&o[s][i][t[r]]&&(delete o[s][i][t[r]],rR.instanceManager.storage.save(eH,encodeURIComponent(JSON.stringify(o))))}}om(r)},rW=(t,i)=>{let r={type:"event"};r.evtName=e3,r.evtData={[e4]:t.wzrk_id},t.wzrk_pivot&&(r.evtData={...r.evtData,wzrk_pivot:t.wzrk_pivot}),i.processEvent(r)},r$=(t,i)=>{let r=t.getGuid(),o=i.getSessionCookieObject();return"&t=wc&d="+encodeURIComponent(rz(r+"|"+o.p+"|"+o.s))},rH={doesCampaignPushCustomEvent:t=>[tk.KV_PAIR,tk.JSON].includes(t?.msgContent?.type)||t?.msgContent?.type===tk.VISUAL_BUILDER&&t?.display?.details?.[0]?.selectorData?.map(t=>t?.values?.editor)?.includes(tx.JSON),doesCampaignMutateDOMNode:t=>[tk.BANNER,tk.CAROUSEL,tk.CUSTOM_HTML].includes(t?.msgContent?.type)||tk.VISUAL_BUILDER===t?.msgContent?.type&&t?.display?.details?.[0]?.selectorData?.some(t=>[tx.HTML,tx.FORM].includes(t?.values?.editor)),sortCampaignsByPriority:t=>t.sort((t,i)=>i.priority-t.priority),getCampaignNodes:t=>{let{msgContent:i,display:r}=t,{type:o}=i;switch(o){case tk.BANNER:case tk.CAROUSEL:return[r?.divSelector];case tk.CUSTOM_HTML:return[r?.divId];case tk.VISUAL_BUILDER:return r?.details?.[0]?.selectorData?.filter(t=>t?.values?.editor===tx.HTML)?.map(t=>t?.selector)||[];default:return[]}},shouldCurrentCustomEventCampaignBeSkipped(t,i){let r=i.customEvents.filter(i=>i.customEventType===t?.msgContent?.type),o=!1;if(r?.length)switch(t?.msgContent?.type){case tk.KV_PAIR:r.map(t=>t?.eventTopic)?.includes(t?.display?.kv?.topic)&&(o=!0);break;case tk.VISUAL_BUILDER:case tk.JSON:o=!0}return o}},rq={updateFrequencyCounter(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t&&0!==t.length&&t.forEach(t=>{i[t]=(i[t]||0)+1}),i},updateTimestampTracker(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!t||0===t.length)return i;let r=Math.floor(Date.now()/1e3);return t.forEach(t=>{i[t]||(i[t]=[]),i[t].push(r)}),i},portTLC(t){let i=oy(),r=[];if(!i?.wp||0===Object.keys(i?.wp).length)return;let o=i?.wp?.global||{},s=i?.wp?.[t.sessionId]||{};for(let t of Object.keys(o))if("tc"!==t){let i=o[t],n=s[t];"dnd"===n&&r.push(t),om(rq.portCampaignDetails(t,n,i))}let n=oy();om({...n,dnd:[...new Set([...n.dnd||[],...r])],wp:{}})},portCampaignDetails(t,i,r){let o=oy();o.wfc=o.wfc||{};let s=Array.isArray(o.wfc[t])?o.wfc[t]:[],n=[];try{n=rq.generateTimestamps(r,"dnd"===i?r:i)}catch(t){console.error("Failed to generate timestamps:",t)}
105return o.wfc={...o.wfc,[t]:[...s,...n]},o.wsc=(o?.wsc??0)+r,o},generateTimestamps(t,i){try{let r=Math.floor(Date.now()/1e3),o=Array.from({length:t-i},(t,i)=>r-86400+(i+1));return[...Array.from({length:i},(t,i)=>r+i+1),...o]}catch{return[]}},isPopupCampaignAlreadyShown:t=>oy()?.wfc?.[t]?.length>0,isCampaignAddedToDND:t=>oy()?.dnd?.includes(t),updateOccurenceForPopupAndNativeDisplay(t,i,r){let o=JSON.parse(decodeURIComponent(rR.instanceManager.storage.read(eH)))?.[i?.gcookie]||oy(),s=rq.updateFrequencyCounter(t.wtq,o.woc),n=rq.updateFrequencyCounter(t.wndtq,o.wndoc),a=oy()?.wi??{},l=oy()?.wp??{},d=oy()?.wsc??0,c=oy()?.wndsc??0;om(o={...o,woc:s,wndoc:n,wi:a,wp:l,wsc:d,wndsc:c})},getDailyCount(t,i){let r;let o="ct_daily_date_tracker",s=(new Date).toISOString().split("T")[0],n=null;n=localStorage.getItem(o);let a="number"==typeof t[i]?t[i]:0;return n!==s?(r=1,localStorage.setItem(o,s)):r=a+1,r},clearStaleCampaigns(t,i){try{let r=oy();if(!r)return void i.debug("No campaign object found");let o=!1;if(t.inbox_stale&&Array.isArray(t.inbox_stale))for(let s of(i.debug(`Processing ${t.inbox_stale.length} inbox stale campaigns`),t.inbox_stale))r.wfc&&r.wfc[s]&&(delete r.wfc[s],i.debug(`Cleared wfc entry for campaign ${s}`),o=!0),r.woc&&r.woc[s]&&(delete r.woc[s],i.debug(`Cleared woc entry for campaign ${s}`),o=!0);if(t.native_display_stale&&Array.isArray(t.native_display_stale))for(let s of(i.debug(`Processing ${t.native_display_stale.length} native display stale campaigns`),t.native_display_stale))r.wndfc&&r.wndfc[s]&&(delete r.wndfc[s],i.debug(`Cleared wndfc entry for campaign ${s}`),o=!0),r.wndoc&&r.wndoc[s]&&(delete r.wndoc[s],i.debug(`Cleared wndoc entry for campaign ${s}`),o=!0);o?(om(r),i.debug("Campaign object updated with stale campaign removals")):i.debug("No stale campaigns found to clear")}catch(t){throw i.error("Error clearing stale campaigns:",t),t}}};function rK(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",r=document.querySelector(i);if(!r)return;let o=document.createElement("script");o.textContent=t.textContent,t.src&&(o.src=t.src),o.async=t.async,Array.from(t.attributes).forEach(t=>{"src"!==t.name&&"async"!==t.name&&o.setAttribute(t.name,t.value)}),r.appendChild(o),t.remove()}function rZ(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"eu1",r=arguments.length>2?arguments[2]:void 0;if(!0===t?.display?.preview)return;let o=t.wzrk_id.split("_")[0],s=`https://${i}.dashboard.clevertap.com/${r}/campaigns/campaign/${o}/report/stats`,n={...t,url:s},a=rR.instanceManager.storage,l=a.readFromLSorCookie(tg),d=[];try{d=l?JSON.parse(decodeURIComponent(l)):[]}catch(t){d=[]}if(!d.some(i=>i.wzrk_id===t.wzrk_id)){let t=[...d,n];a.saveToLSorCookie(tg,encodeURIComponent(JSON.stringify(t)))}}let rG=function(t){let i=t.replace(/\+/g," ");try{i=decodeURIComponent(i)}catch(t){}return i},rJ=t=>{let i={},r=t.indexOf("?");if(r>1){let o;let s=t.substring(r+1),n=/([^&=]+)=?([^&]*)/g;for(o=n.exec(s);o;)i[rG(o[1])]=rG(o[2]),o=n.exec(s)}return i},rQ=(t,i)=>{if(""===t||""===i)return"";let r=t.includes(`?${i}=`)?`?${i}=`:`&${i}=`;return t.includes(r)?rG(t.split(r)[1].split("&")[0]):""},rY=(t,i,r)=>t+"&"+i+"="+encodeURIComponent(r),rX=()=>window.location.hostname;var r1=eE("logLevel"),r0=eE("log"),r2=eE("isLegacyDebug");class r4{constructor(t){Object.defineProperty(this,r2,{get:r6,set:void 0}),Object.defineProperty(this,r0,{value:r3}),Object.defineProperty(this,r1,{writable:!0,value:void 0}),this.wzrkError={},eM(this,r1)[r1]=null==t?2:t,this.wzrkError={}}static getInstance(t){return r4._fallbackInstance||(r4._fallbackInstance=new r4(t)),r4._fallbackInstance}get logLevel(){return eM(this,r1)[r1]}set logLevel(t){eM(this,r1)[r1]=t}error(t){eM(this,r1)[r1]>=1&&eM(this,r0)[r0]("error",t)}info(t){eM(this,r1)[r1]>=2&&eM(this,r0)[r0]("log",t)}debug(t){(eM(this,r1)[r1]>=3||eM(this,r2)[r2])&&eM(this,r0)[r0]("debug",t)}debugPE(t){eM(this,r1)[r1]>=4&&eM(this,r0)[r0]("debug_pe",t)}reportError(t,i){this.wzrkError.c=t,this.wzrkError.d=i,this.error(`CleverTap error: ${t}: ${i}`)}reportInfo(t,i){this.wzrkError.c=t,this.wzrkError.d=i,this.info(`CleverTap info: ${t}: ${i}`)}}function r3(t,i){if(window.console)try{let r=(new Date).getTime();console[t](`CleverTap [${r}]: ${i}`)}catch(t){}}function r6(){return"undefined"!=typeof sessionStorage&&""===sessionStorage.WZRK_D}let r5=new class{constructor(){this.encryptionKey=null,this.utf8=new TextEncoder,this.logger=r4.getInstance()}toB64(t){return btoa(String.fromCharCode(...t))}fromB64(t){return Uint8Array.from(atob(t),t=>t.charCodeAt(0))}rnd(t){return crypto.getRandomValues(new Uint8Array(t))}generateSymmetricKey(){return this.encryptionKey=this.rnd(32),this.encryptionKey}encryptForBackend(t){let{id:i="ZWW-WWW-WWRZ"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.encryptionKey||this.generateSymmetricKey();let r=this.rnd(12),o={name:"AES-GCM",iv:r,tagLength:128},s=this.utf8.encode("string"==typeof t?t:JSON.stringify(t));return crypto.subtle.importKey("raw",this.encryptionKey,{name:"AES-GCM"},!1,["encrypt"]).then(t=>crypto.subtle.encrypt(o,t,s)).then(t=>{let o=new Uint8Array(t);return rN(JSON.stringify({itp:this.toB64(o),itk:this.toB64(this.encryptionKey),itv:this.toB64(r),id:i,encrypted:!0}))}).catch(t=>{throw Error(`Encryption failed: ${t.message}`)})}async decryptFromBackend(t){try{let{itp:i,itv:r}=JSON.parse(t);if(!i||!r)return Promise.reject(Error("Decryption failed: Invalid envelope format"));if(!this.encryptionKey)return Promise.reject(Error("Decryption failed: No encryption key available"));
105let o=this.fromB64(i),s=this.fromB64(r);this.logger.debug(`EIT decryption - ciphertext length: ${o.length}, iv length: ${s.length}`);let n={name:"AES-GCM",iv:s,tagLength:128};return crypto.subtle.importKey("raw",this.encryptionKey,{name:"AES-GCM"},!1,["decrypt"]).then(t=>(this.logger.debug("EIT decryption - crypto key imported successfully"),crypto.subtle.decrypt(n,t,o))).then(t=>(this.logger.debug(`EIT decryption - decrypted payload size: ${t.byteLength} bytes`),(new TextDecoder).decode(t))).catch(t=>{throw this.logger.error(`EIT decryption error: ${t.message}`),Error(`Decryption failed: ${t.message}`)})}catch(t){return Promise.reject(Error(`Decryption failed: ${t.message}`))}}};window.encryptionInTransitInstance=r5;var r7=eE("retryViaJSONP"),r8=eE("scheduleRetry"),r9=eE("scheduleRetryViaFetch"),oe=eE("scheduleRetryViaJSONP"),ot=eE("prepareEncryptedRequest"),oi=eE("fireRequest"),or=eE("dropRequestDueToOptOut"),oo=eE("addUseIPToRequest"),os=eE("addARPToRequest");class on{constructor(t){let{logger:i,device:r,account:o,instanceManager:s}=t;Object.defineProperty(this,os,{value:of}),Object.defineProperty(this,oo,{value:og}),Object.defineProperty(this,or,{value:ou}),Object.defineProperty(this,oi,{value:op}),Object.defineProperty(this,ot,{value:oh}),Object.defineProperty(this,oe,{value:oc}),Object.defineProperty(this,r9,{value:od}),Object.defineProperty(this,r8,{value:ol}),Object.defineProperty(this,r7,{value:oa}),this.logger=i,this.device=r,this.account=o,this.instanceManager=s,this.networkRetryCount=0,this.minDelayFrequency=0,this.api=null}get enableFetchApi(){return this.instanceManager.enableFetchApi}set enableFetchApi(t){this.instanceManager.enableFetchApi=t}get enableEncryptionInTransit(){return this.instanceManager.enableEncryptionInTransit}set enableEncryptionInTransit(t){this.instanceManager.enableEncryptionInTransit=t}isEITFallbackActive(){return!!this.instanceManager.storage._isLocalStorageSupported()&&!0===this.instanceManager.storage.read(tb)}setEITFallback(){this.instanceManager.storage._isLocalStorageSupported()&&(this.instanceManager.storage.save(tb,!0),this.logger.debug("EIT fallback flag set - subsequent requests will use JSONP"))}clearEITFallback(){this.instanceManager.storage._isLocalStorageSupported()&&this.instanceManager.storage.remove(tb)}fireRequest(t,i,r,o){eM(this,oi)[oi](t,1,i,r,o)}handleFetchResponse(t,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return fetch(t,{method:"GET",headers:{Accept:"application/json","X-CleverTap-Encryption-Enabled":"true"}}).then(o=>{let s=o.headers.get("X-WZRK-MUTE-DURATION");if(s){let t=parseInt(s,10);!isNaN(t)&&t>0&&(this.instanceManager.storage.saveToLSorCookie(tv,t),this.logger.info(`SDK muted until: ${new Date(t).toISOString()}`))}if(!o.ok){if(402===o.status||419===o.status){if(this.logger.error("Encryption in Transit is disabled on server side"),this.setEITFallback(),i&&i!==t)return this.logger.debug("Retrying request via JSONP without encryption"),eM(this,r7)[r7](i),null;throw Error(`Encryption not enabled for account: ${o.statusText}`)}if(420===o.status){if(r<3)return this.logger.debug(`Retrying request due to 420 error, attempt ${r+1} of 3`),this.handleFetchResponse(t,i,r+1);throw this.logger.error("Failed to decrypt payload after 3 retries"),Error("Failed to decrypt payload")}if(o.status>=500&&o.status<600)throw Error(`Network response was not ok: ${o.statusText}`)}return o.text()}).then(t=>null===t||t instanceof Promise?t:t&&t.length>0&&this.enableEncryptionInTransit?r5.decryptFromBackend(t).then(t=>(this.logger.debug("Successfully decrypted response"),t)).catch(i=>(this.logger.debug("Response decryption failed, assuming unencrypted:",i.message),t)):Promise.resolve(t)).then(i=>{let r;if(i instanceof Promise)return i;try{r=JSON.parse(i)}catch(t){throw this.logger.error("Failed to parse response as JSON:",t),Error("Invalid JSON response")}let{tr:o,meta:s,wpe:n}=r;if(o&&this.api.tr(o),s){let{g:t,sid:i,rf:r,rn:o,optOut:n}=s;if(t&&void 0!==i&&void 0!==r&&void 0!==o){let s=parseInt(o);void 0!==n?this.api.s(t,i,r,s,n):this.api.s(t,i,r,s)}}n&&this.api.enableWebPush(n.enabled,n.key),this.logger.debug("req snt -> url: "+t)}).catch(o=>{if(o.message){if(o.message.includes("EIT decryption failed"))return void this.logger.error("EIT decryption failed",o);if(o.message.includes("Network response was not ok"))return this.logger.error("Network response was not ok",o),void eM(this,r9)[r9](t,i,r)}this.logger.error("Fetch error:",o)})}getDelayFrequency(){if(this.logger.debug("Network retry #"+this.networkRetryCount),this.networkRetryCount<10)return this.logger.debug(this.account.id,"Failure c
105ount is "+this.networkRetryCount+". Setting delay frequency to 1s"),this.minDelayFrequency=1e3,this.minDelayFrequency;if(null==this.account.region)return this.logger.debug(this.account.id,"Setting delay frequency to 1s"),1e3;{let t=1e3*(Math.floor(10*Math.random())+1);return this.minDelayFrequency+=t,this.minDelayFrequency<6e5||(this.minDelayFrequency=1e3),this.logger.debug(this.account.id,"Setting delay frequency to "+this.minDelayFrequency),this.minDelayFrequency}}}function oa(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;for(var r=document.getElementsByClassName("ct-jp-cb");r[0]&&r[0].parentNode;)r[0].parentNode.removeChild(r[0]);let o=document.createElement("script");o.setAttribute("type","text/javascript"),o.setAttribute("src",t),o.setAttribute("class","ct-jp-cb"),o.setAttribute("rel","nofollow"),o.async=!0,o.onerror=()=>{eM(this,oe)[oe](t,i)},document.getElementsByTagName("head")[0].appendChild(o),this.logger.debug("EIT fallback: req snt via JSONP -> url: "+t)}function ol(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,o=Math.min(1e3*Math.pow(2,i),18e5),s=Math.floor(o*(.5+.5*Math.random())),n=18e5===o?0:i+1;this.logger.debug(`Retrying request in ${s}ms: ${t}`),setTimeout(()=>r(n),s)}function od(t,i){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;eM(this,r8)[r8](t,r,r=>this.handleFetchResponse(t,i,r))}function oc(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;eM(this,r8)[r8](t,i,i=>eM(this,r7)[r7](t,i))}function oh(t){if(!this.enableEncryptionInTransit||this.isEITFallbackActive())return this.isEITFallbackActive()&&this.enableEncryptionInTransit&&this.logger.debug("EIT fallback active - bypassing encryption for this session"),Promise.resolve({url:t,method:"GET",useFallback:this.isEITFallbackActive()});this.enableFetchApi=!0;try{let i=new URL(t),r=new URLSearchParams(i.search),o=r.get("d");return o?r5.encryptForBackend(o,{id:this.account.id}).then(o=>(r.set("d",o),{url:`${i.protocol}//${i.host}${i.pathname}?${r.toString()}`,originalUrl:t,method:"GET"})).catch(i=>(this.logger.error("Encryption failed, falling back to unencrypted request:",i),{url:t,method:"GET"})):Promise.resolve({url:t,method:"GET"})}catch(i){return this.logger.error("URL parsing failed, falling back to unencrypted request:",i),Promise.resolve({url:t,method:"GET"})}}function op(t,i,r,o,s){let n=this.instanceManager.storage.readFromLSorCookie(tv);if(n&&n>0&&Date.now()<n){let i=parseInt(rQ(t,"rn"));return this.instanceManager.storage.removeBackup(i,this.logger),void this.logger.debug("Request dropped - SDK is muted until "+new Date(n).toISOString())}if(eM(this,or)[or]()){let i=parseInt(rQ(t,"rn"));return this.instanceManager.storage.removeBackup(i,this.logger),void this.logger.debug("req dropped due to optout cookie: "+this.device.gcookie)}if(tR(this.device.gcookie)||(this.instanceManager.state.blockRequest=!0),s&&s===ts){if(!tR(this.device.gcookie)&&this.instanceManager.state.globalCache.RESP_N<this.instanceManager.state.globalCache.REQ_N-1)return void setTimeout(()=>{this.logger.debug(`retrying fire request for url: ${t}, tries: ${this.networkRetryCount}`),eM(this,oi)[oi](t,void 0,r,o)},this.getDelayFrequency())}else if(!o&&!tR(this.device.gcookie)&&this.instanceManager.state.globalCache.RESP_N<this.instanceManager.state.globalCache.REQ_N-1&&i<200)return void setTimeout(()=>{this.logger.debug(`retrying fire request for url: ${t}, tries: ${i}`),eM(this,oi)[oi](t,i+1,r,o)},50);if(o?this.instanceManager.isOULInProgress=!0:(tR(this.device.gcookie)&&(t=rY(t,"gc",this.device.gcookie)),t=eM(this,os)[os](t,r)),t=rY(t,"tries",i),t=rY(t,"origin",window?.location?.origin??window?.location?.href),t=rY(t=eM(this,oo)[oo](t),"r",(new Date).getTime()),window.clevertap?.hasOwnProperty("plugin")||window.wizrocket?.hasOwnProperty("plugin")){let i=window.clevertap.plugin||window.wizrocket.plugin;t=rY(t,"ct_pl",i)}-1!==t.indexOf("chrome-extension:")&&(t=t.replace("chrome-extension:","https:")),eM(this,ot)[ot](t).then(t=>{for(var i=document.getElementsByClassName("ct-jp-cb");i[0]&&i[0].parentNode;)i[0].parentNode.removeChild(i[0]);if((this.enableFetchApi||this.enableEncryptionInTransit)&&!t.useFallback)this.handleFetchResponse(t.url,t.originalUrl);else{let i=document.createElement("script");i.setAttribute("type","text/javascript"),i.setAttribute("src",t.url),i.setAttribute("class","ct-jp-cb"),i.setAttribute("rel","nofollow"),i.async=!0,i.onerror=()=>{eM(this,oe)[oe](t.url)},document.getElementsByTagName("head")[0].appendChild(i),this.logger.debug("req snt -> url: "+t.url)}}).catch(t=>{this.logger.error("Request preparation failed:",t)})}function ou(){return!this.instanceManager.state.isOptInRequest&&tR(this.device.gcookie)&&tT(this.device.gcookie)?":OO"===this.device.gcookie.slice(-3):(this.instanceManager.state.isOptInRequest=!1,!1)}function og(t){var i=this.instanceManager.storage.getMetaProp(eX);return"boolean"!=typeof i&&(i=!1),rY(t,eX,i?"true":"false")}function of(t,i){if(!0===i)return rY(t,"arp",rN(JSON.stringify({skipResARP:!0}),this.logger));if(this.instanceManager.storage._isLocalStorageSupported()&&void 0!==localStorage.getItem(eJ)&&null!==localStorage.getItem(eJ)){let i=this.instanceManager.storage.readFromLSorCookie(eJ);return i&&delete i.d_e,rY(t,"arp",rN(JSON.stringify(i),this.logger))}return t}let oy=()=>{let t={};if(i3._isLocalStorageSupported()){let i=i3.read(e$);if(null!=i)try{t=i=JSON.parse(decodeURIComponent(i).replace(eR,'"'))}catch(i){t={}}else t={}}return t},om=t=>{if(i3._isLocalStorageSupported()){let i=JSON.stringify({...oy(),...t});i3.save(e$,encodeURIComponent(i)),ov()}},ov=()=>{if(i3._isLocalStorageSupported()){let r=i3.read(eV);
105if(tR(r))try{r=tU(decodeURIComponent(i3.read(eV)),null);let o=i3.read(eH)?JSON.parse(decodeURIComponent(i3.read(eH))):{};if(r&&i3._isLocalStorageSupported()){var t={},i=oy();Object.keys(i).forEach(s=>{let n=r in o&&Object.keys(o[r]).length&&o[r][s]?o[r][s]:{},a=i[s].global,l=tV(),d=i[s][l];if(void 0!==a){let t=Object.keys(a);for(let i in t){let r=[];if(t.hasOwnProperty(i)){let o=0,s=0,l=t[i];if("tc"===l)continue;void 0!==d&&void 0!==d[l]&&(o=d[l]),void 0!==a&&void 0!==a[l]&&(s=a[l]),r=[l,o,s],n[l]=r}}}t={...t,[s]:n}}),t={...t,wsc:i.wsc,wfc:i.wfc,woc:i.woc,wmp:i.wmp,dnd:i.dnd,wndsc:i.wndsc,wndfc:i.wndfc,wndoc:i.wndoc,wndmp:i.wndmp},o[r]=t,i3.save(eH,encodeURIComponent(JSON.stringify(o)))}}catch(t){console.error("Invalid clevertap Id "+t)}}},ob=()=>{if(i3._isLocalStorageSupported())try{let t=tU(decodeURIComponent(i3.read(eV)),null);if(!t)return;let i=i3.read(eH);if(!i)return;let r=JSON.parse(decodeURIComponent(i))[t];if(r&&Object.keys(r).length>0){let t={...oy(),...r};i3.save(e$,encodeURIComponent(JSON.stringify(t)))}}catch(t){console.error("Failed to restore campaign object for guid: "+t)}},ow=()=>{let t=tU(decodeURIComponent(i3.read(eV)),null),i={};if(i3._isLocalStorageSupported()){i=oy();let r=i3.read(eH),o=null,s=null;try{s=(o=r?decodeURIComponent(r):null)?JSON.parse(o):null}catch(t){o=null,s=null}let n=t&&null!=r&&s&&s[t]&&s[t].wi?Object.values(s[t].wi):[],a={wsc:i?.wsc??0,wfc:i?.wfc??{},woc:i?.woc??{}},l={wndsc:i?.wndsc??0,wndfc:i?.wndfc??{},wndoc:i?.wndoc??{}},d=tV(),c=0;return i.wi&&i.wi[d]&&"undefined"!==i.wi[d].tc&&(c=i.wi[d].tc),{wimp:c,witlc:n,...a,...l}}},oC=(t,i)=>{let{logger:r}=i,o=!1;if(tO(t)){for(let i in t)if(t.hasOwnProperty(i)){o=!0;let s=t[i];if(null==s){delete t[i];continue}"Gender"!==i||s.match(/\b(?:[mM](?:ale)?|[fF](?:emale)?|[oO](?:thers)?|[uU](?:nknown)?)\b/)||(o=!1,r.error(rm)),"Employed"!==i||s.match(/^Y$|^N$/)||(o=!1,r.error(rv)),"Married"!==i||s.match(/^Y$|^N$/)||(o=!1,r.error(rb)),"Education"!==i||s.match(/^School$|^College$|^Graduate$/)||(o=!1,r.error(rw)),"Age"===i&&null!=s&&(tB(s)?t.Age=+s:(o=!1,r.error(rC))),"DOB"===i&&(/^\$D_/.test(s)&&11===(s+"").length||tD(s)||(o=!1,r.error("CleverTap error: DOB value should be a Date Object"))),tD(s)&&(t[i]=t$(s)),"Phone"!==i||tN(s)||(s.length>8&&"+"===s.charAt(0)&&tB(s=s.substring(1,s.length))?t.Phone=+s:(o=!1,r.error("CleverTap error: Phone number should be formatted as +[country code][number]. Removed."))),o||delete t[i]}}return o},ok=t=>{let i={};i.Name=t.name,null!=t.id&&(i.FBID=t.id+""),"male"===t.gender?i.Gender="M":"female"===t.gender?i.Gender="F":i.Gender="O",null!=t.relationship_status&&(i.Married="N","Married"===t.relationship_status&&(i.Married="Y"));let r=function(t){if(null!=t){let i="",r="";for(let o=0;o<t.length;o++){let s=t[o];if(null!=s.type){let t=s.type;if("Graduate School"===t)return"Graduate";"College"===t?i="1":"High School"===t&&(r="1")}}if("1"===i)return"College";if("1"===r)return"School"}}(t.education);null!=r&&(i.Education=r);let o=null!=t.work?t.work.length:0;if(i.Employed=o>0?"Y":"N",null!=t.email&&(i.Email=t.email),null!=t.birthday){let r=t.birthday.split("/");i.DOB=tH(r[2]+r[0]+r[1])}return i},ox=(t,i)=>{let{logger:r}=i,o={};if(null!=t.displayName&&(o.Name=t.displayName),null!=t.id&&(o.GPID=t.id+""),null!=t.gender&&("male"===t.gender?o.Gender="M":"female"===t.gender?o.Gender="F":"other"===t.gender&&(o.Gender="O")),null!=t.image&&!1===t.image.isDefault&&(o.Photo=t.image.url.split("?sz")[0]),null!=t.emails)for(let i=0;i<t.emails.length;i++){let r=t.emails[i];"account"===r.type&&(o.Email=r.value)}if(null!=t.organizations){o.Employed="N";for(let i=0;i<t.organizations.length;i++)"work"===t.organizations[i].type&&(o.Employed="Y")}if(null!=t.birthday){let i=t.birthday.split("-");o.DOB=tH(i[0]+i[1]+i[2])}return null!=t.relationshipStatus&&(o.Married="N","married"===t.relationshipStatus&&(o.Married="Y")),r.debug("gplus usr profile "+JSON.stringify(o)),o},oI=(t,i)=>{if(i3._isLocalStorageSupported()){if(null==i6.globalProfileMap&&(i6.globalProfileMap=i3.readFromLSorCookie(eZ),null==i6.globalProfileMap&&(i6.globalProfileMap={})),null!=t._custom){let i=t._custom;for(let r in i)i.hasOwnProperty(r)&&(t[r]=i[r]);delete t._custom}for(let r in t)if(t.hasOwnProperty(r)){if(i6.globalProfileMap.hasOwnProperty(r)&&!i)continue;i6.globalProfileMap[r]=t[r]}null!=i6.globalProfileMap._custom&&delete i6.globalProfileMap._custom,i3.saveToLSorCookie(eZ,i6.globalProfileMap)}},o_=t=>{let i=[],r="",o=0;for(;o<t.length;)if("["===t[o]){r&&(i.push({type:"key",value:r}),r=""),o++;let s="";for(;o<t.length&&"]"!==t[o];)s+=t[o],o++;
105o<t.length&&"]"===t[o]&&(i.push({type:"array",index:parseInt(s,10)}),o++)}else"."===t[o]?r&&(i.push({type:"key",value:r}),r=""):r+=t[o],o++;return r&&i.push({type:"key",value:r}),i},oS=(t,i)=>{let r=t;for(let t of i){if(null==r)return;if("key"===t.type)r=r[t.value];else if("array"===t.type){if(!Array.isArray(r))return;r=r[t.index]}}return r},oE=[["wizParDiv0","intentOpacityDiv0"],["wizParDiv2","intentOpacityDiv2"],["wzrkImageOnlyDiv",null]],oM=()=>{oE.forEach(t=>{let[i,r]=t;!function(t,i){let r=document.getElementById(t);if(null!=r&&(r.remove(),null!=i)){let t=document.getElementById(i);null!=t&&t.remove()}}(i,r)})},oP=[],oA=(t,i,r,o)=>{if(null!=t&&"-1"!==t&&i3._isLocalStorageSupported()){let i=oy();i.dnd=[...new Set([...i.dnd??[],t])],om(i)}let s=null;if(null!=o&&null!=o[t])s=o;else if(null!=i6.campaignDivMap&&null!=i6.campaignDivMap[t])s=i6.campaignDivMap;else for(let i of oP)if(null!=i&&null!=i[t]){s=i;break}if(null!=s){let i=s[t];if(null!=i){let r=document.getElementById(i);if(null==r)return void delete s[t];r.remove(),"intentPreview"===i?null!=document.getElementById("intentOpacityDiv")&&document.getElementById("intentOpacityDiv").remove():"wizParDiv0"===i?null!=document.getElementById("intentOpacityDiv0")&&document.getElementById("intentOpacityDiv0").remove():"wizParDiv2"===i&&null!=document.getElementById("intentOpacityDiv2")&&document.getElementById("intentOpacityDiv2").remove(),delete s[t]}}},oL=t=>!(null==i6.discardedEventsList||!t)&&i6.discardedEventsList.has(t.toLowerCase()),oT=new TextDecoder("utf-8"),oO=t=>{if(t.hasOwnProperty("d_e"))try{let i=t.d_e;Array.isArray(i)&&(i6.discardedEventsList=new Set(i.map(t=>(t=>{let i=window.atob(t),r=tC.length,o=new Uint8Array(i.length);for(let t=0;t<i.length;t++)o[t]=i.charCodeAt(t)^tC.charCodeAt(t%r);return oT.decode(o)})(t).toLowerCase())))}catch(t){console.error("Error parsing discarded events list: "+t)}};var oD=eE("logger"),oN=eE("oldValues"),oB=eE("request"),oz=eE("isPersonalisationActive"),oR=eE("instanceManager"),oj=eE("processEventArray");class oF extends Array{constructor(t,i){let{logger:r,request:o,isPersonalisationActive:s,instanceManager:n}=t;super(),Object.defineProperty(this,oj,{value:oU}),Object.defineProperty(this,oD,{writable:!0,value:void 0}),Object.defineProperty(this,oN,{writable:!0,value:void 0}),Object.defineProperty(this,oB,{writable:!0,value:void 0}),Object.defineProperty(this,oz,{writable:!0,value:void 0}),Object.defineProperty(this,oR,{writable:!0,value:void 0}),eM(this,oD)[oD]=r,eM(this,oN)[oN]=i,eM(this,oB)[oB]=o,eM(this,oz)[oz]=s,eM(this,oR)[oR]=n}push(){if(eM(this,oR)[oR].storage.readFromLSorCookie(eG)){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return eM(this,oj)[oj](i),0}eM(this,oD)[oD].error("Account ID is not set")}_processOldValues(){eM(this,oN)[oN]&&eM(this,oj)[oj](eM(this,oN)[oN]),eM(this,oN)[oN]=null}getDetails(t){if(!eM(this,oz)[oz]()||(void 0===eM(this,oR)[oR].state.globalEventsMap&&(eM(this,oR)[oR].state.globalEventsMap=eM(this,oR)[oR].storage.readFromLSorCookie(eq)),void 0===eM(this,oR)[oR].state.globalEventsMap))return;let i=eM(this,oR)[oR].state.globalEventsMap[t],r={};return void 0!==i?(r.firstTime=new Date(1e3*i[1]),r.lastTime=new Date(1e3*i[2]),r.count=i[0],r):void 0}}function oU(t){if(Array.isArray(t))for(;t.length>0;){var i=t.shift();if(!tT(i)){eM(this,oD)[oD].error(ry);continue}if(i.length>1024&&(i=i.substring(0,1024),eM(this,oD)[oD].reportError(510,i+"... length exceeded 1024 chars. Trimmed.")),tS.includes(i)){eM(this,oD)[oD].reportError(513,i+" is a restricted system event. It cannot be used as an event name.");continue}if(oL(i)){eM(this,oD)[oD].reportError(513,i+" is a discarded event name. Event aborted.");continue}let r={type:"event"};if(r.evtName=tF(i,eB),0!==t.length){let o=t.shift();
105if(tO(o)){if("Charged"===i){if(!rA(o,eM(this,oD)[oD])){eM(this,oD)[oD].reportError(511,"Charged event structure invalid. Not sent.");continue}r.evtData=o}else{let t=rD(o,eM(this,oD)[oD],3);t.processedObj?r.evtData=t.processedObj:r.evtData=o}}else t.unshift(o)}eM(this,oB)[oB].processEvent(r)}}var oV=eE("logger"),oW=eE("request"),o$=eE("account"),oH=eE("oldValues"),oq=eE("isPersonalisationActive"),oK=eE("instanceManager"),oZ=eE("processProfileArray"),oG=eE("filterRestrictedKeys"),oJ=eE("validateAndSendProfile");class oQ extends Array{constructor(t,i){let{logger:r,request:o,account:s,isPersonalisationActive:n,instanceManager:a}=t;super(),Object.defineProperty(this,oJ,{value:o1}),Object.defineProperty(this,oG,{value:oX}),Object.defineProperty(this,oZ,{value:oY}),Object.defineProperty(this,oV,{writable:!0,value:void 0}),Object.defineProperty(this,oW,{writable:!0,value:void 0}),Object.defineProperty(this,o$,{writable:!0,value:void 0}),Object.defineProperty(this,oH,{writable:!0,value:void 0}),Object.defineProperty(this,oq,{writable:!0,value:void 0}),Object.defineProperty(this,oK,{writable:!0,value:void 0}),eM(this,oV)[oV]=r,eM(this,oW)[oW]=o,eM(this,o$)[o$]=s,eM(this,oH)[oH]=i,eM(this,oq)[oq]=n,eM(this,oK)[oK]=a}push(){if(eM(this,oK)[oK].storage.readFromLSorCookie(eG)){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return eM(this,oZ)[oZ](i),0}eM(this,oV)[oV].error("Account ID is not set")}_processOldValues(){eM(this,oH)[oH]&&eM(this,oZ)[oZ](eM(this,oH)[oH]),eM(this,oH)[oH]=null}getAttribute(t){if(eM(this,oq)[oq]())return null==eM(this,oK)[oK].state.globalProfileMap&&(eM(this,oK)[oK].state.globalProfileMap=eM(this,oK)[oK].storage.readFromLSorCookie(eZ)),null!=eM(this,oK)[oK].state.globalProfileMap?eM(this,oK)[oK].state.globalProfileMap[t]:void 0}_handleIncrementDecrementValue(t,i,r){if(null==eM(this,oK)[oK].state.globalProfileMap&&(eM(this,oK)[oK].state.globalProfileMap=eM(this,oK)[oK].storage.readFromLSorCookie(eZ)),null==eM(this,oK)[oK].state.globalProfileMap)return void eM(this,oV)[oV].error("Profile map is not initialized. Please create a profile first.");if(!i||"number"!=typeof i||i<=0)return void eM(this,oV)[oV].error("Value should be a number greater than 0");let o={};if(t.includes(".")||t.includes("[")){let s=o_(t);if(0===s.length)return void eM(this,oV)[oV].error("Invalid nested path format.");let n=oS(eM(this,oK)[oK].state.globalProfileMap,s);if(void 0===n)return void eM(this,oV)[oV].error(`Path '${t}' does not exist in profile. Please create the profile structure first.`);if("number"!=typeof n)return void eM(this,oV)[oV].error(`Value at path '${t}' is not a number. Cannot increment/decrement.`);let a=r===e8?n+i:n-i;if(!((t,i,r)=>{let o=t,s=i.length-1;for(let t=0;t<s;t++){let r=i[t],s=i[t+1];if("key"===r.type)null==o[r.value]&&(o[r.value]="array"===s?.type?[]:{}),o=o[r.value];else if("array"===r.type){if(!Array.isArray(o))return!1;null==o[r.index]&&(o[r.index]="array"===s?.type?[]:{}),o=o[r.index]}}let n=i[s];if("key"===n.type)o[n.value]=r;else if("array"===n.type){if(!Array.isArray(o))return!1;o[n.index]=r}return!0})(eM(this,oK)[oK].state.globalProfileMap,s,a))return void eM(this,oV)[oV].error(`Failed to update value at path '${t}'.`);eM(this,oK)[oK].storage.saveToLSorCookie(eZ,eM(this,oK)[oK].state.globalProfileMap),o[t]={[r]:i}}else{if(!eM(this,oK)[oK].state.globalProfileMap.hasOwnProperty(t))return void eM(this,oV)[oV].error("Kindly create profile with required property to increment/decrement.");let s=eM(this,oK)[oK].state.globalProfileMap[t]||0;eM(this,oK)[oK].state.globalProfileMap[t]=r===e8?s+i:s-i,eM(this,oK)[oK].storage.saveToLSorCookie(eZ,eM(this,oK)[oK].state.globalProfileMap),o[t]={[r]:i}}eM(this,oJ)[oJ](o)}_handleMultiValueSet(t,i,r){null==eM(this,oK)[oK].state.globalProfileMap&&(eM(this,oK)[oK].state.globalProfileMap=eM(this,oK)[oK].storage.readFromLSorCookie(eZ)??{});let o=[];for(let t=0;t<i.length;t++)"number"!=typeof i[t]||o.includes(i[t])?"string"!=typeof i[t]||o.includes(i[t].toLowerCase())?"number"!=typeof i[t]&&"string"!=typeof i[t]&&eM(this,oV)[oV].error("Array supports only string or number type values"):o.push(i[t].toLowerCase()):o.push(i[t]);if(t.includes(".")||t.includes("[")){let s;let n=o_(t);if(0===n.length)return void eM(this,oV)[oV].error("Invalid nested path format.");let a=n[n.length-1];if("key"!==a.type)return void eM(this,oV)[oV].error("The last segment of the path must be a property key, not an array index.");let l=n.slice(0,-1);if(0===l.length)s=eM(this,oK)[oK].state.globalProfileMap;else{if(null==(s=oS(eM(this,oK)[oK].state.globalProfileMap,l)))return void eM(this,oV)[oV].error("Parent path does not exist in profile. Please create the profile structure first.");if("object"!=typeof s||Array.isArray(s))return void eM(this,oV)[oV].error("Parent path does not point to an object.")}s[a.value]=o,eM(this,oK)[oK].storage.saveToLSorCookie(eZ,eM(this,oK)[oK].state.globalProfileMap),this.sendMultiValueData(t,i,r,!0)}else eM(this,oK)[oK].state.globalProfileMap[t]=o,eM(this,oK)[oK].storage.saveToLSorCookie(eZ,eM(this,oK)[oK].state.globalProfileMap),this.sendMultiValueData(t,i,r,!1)}_handleMultiValueAdd(t,i,r){null==eM(this,oK)[oK].state.globalProfileMap&&(eM(this,oK)[oK].state.globalProfileMap=eM(this,oK)[oK].storage.readFromLSorCookie(eZ)||{});let o=t.includes(".")||t.includes("["),s=(t,i)=>{let r="number"==typeof i?i:i.toLowerCase();t.includes(r)||t.push(r)},n=t=>{if(Array.isArray(i))i.forEach(i=>
105{"string"==typeof i||"number"==typeof i?s(t,i):eM(this,oV)[oV].error("Array supports only string or number type values")});else{if("string"!=typeof i&&"number"!=typeof i)return eM(this,oV)[oV].error("Unsupported value type"),!1;s(t,i)}return!0};if(o){let o;let s=o_(t);if(0===s.length)return void eM(this,oV)[oV].error("Invalid nested path format.");let a=s[s.length-1];if("key"!==a.type)return void eM(this,oV)[oV].error("The last segment of the path must be a property key, not an array index.");let l=s.slice(0,-1);if(0===l.length)o=eM(this,oK)[oK].state.globalProfileMap;else{if(null==(o=oS(eM(this,oK)[oK].state.globalProfileMap,l)))return void eM(this,oV)[oV].error("Parent path does not exist in profile. Please create the profile structure first.");if("object"!=typeof o||Array.isArray(o))return void eM(this,oV)[oV].error("Parent path does not point to an object.")}let d=a.value,c=o[d],h=Array.isArray(c)?c:null!=c?[c]:[];if(!n(h))return;o[d]=h,eM(this,oK)[oK].storage.saveToLSorCookie(eZ,eM(this,oK)[oK].state.globalProfileMap),this.sendMultiValueData(t,i,r,!0)}else{let o=eM(this,oK)[oK].state.globalProfileMap[t],s=Array.isArray(o)?o:null!=o?[o]:[];if(!n(s))return;eM(this,oK)[oK].state.globalProfileMap[t]=s,eM(this,oK)[oK].storage.saveToLSorCookie(eZ,eM(this,oK)[oK].state.globalProfileMap),this.sendMultiValueData(t,i,r,!1)}}_handleMultiValueRemove(t,i,r){if(null==eM(this,oK)[oK].state.globalProfileMap&&(eM(this,oK)[oK].state.globalProfileMap=eM(this,oK)[oK].storage.readFromLSorCookie(eZ)||{}),t.includes(".")||t.includes("[")){let o;let s=o_(t);if(0===s.length)return void eM(this,oV)[oV].error("Invalid nested path format.");let n=s[s.length-1];if("key"!==n.type)return void eM(this,oV)[oV].error("The last segment of the path must be a property key, not an array index.");let a=s.slice(0,-1);if(0===a.length)o=eM(this,oK)[oK].state.globalProfileMap;else{if(null==(o=oS(eM(this,oK)[oK].state.globalProfileMap,a)))return void eM(this,oV)[oV].error("Parent path does not exist in profile.");if("object"!=typeof o||Array.isArray(o))return void eM(this,oV)[oV].error("Parent path does not point to an object.")}let l=n.value;if(!o.hasOwnProperty(l))return void eM(this,oV)[oV].error(`The property ${t} does not exist.`);let d=o[l];if(!Array.isArray(d))return void eM(this,oV)[oV].error(`The property ${t} is not an array.`);let c=t=>{let i=d.indexOf(t);-1!==i&&d.splice(i,1)};if(Array.isArray(i))i.forEach(c);else{if("string"!=typeof i&&"number"!=typeof i)return void eM(this,oV)[oV].error("Unsupported propVal type");c(i)}0===d.length&&delete o[l],eM(this,oK)[oK].storage.saveToLSorCookie(eZ,eM(this,oK)[oK].state.globalProfileMap),this.sendMultiValueData(t,i,r,!0)}else{if(!eM(this,oK)[oK].state.globalProfileMap.hasOwnProperty(t))return void eM(this,oV)[oV].error(`The property ${t} does not exist.`);let o=i=>{let r=eM(this,oK)[oK].state.globalProfileMap[t].indexOf(i);-1!==r&&eM(this,oK)[oK].state.globalProfileMap[t].splice(r,1)};if(Array.isArray(i))i.forEach(o);else{if("string"!=typeof i&&"number"!=typeof i)return void eM(this,oV)[oV].error("Unsupported propVal type");o(i)}0===eM(this,oK)[oK].state.globalProfileMap[t].length&&delete eM(this,oK)[oK].state.globalProfileMap[t],eM(this,oK)[oK].storage.saveToLSorCookie(eZ,eM(this,oK)[oK].state.globalProfileMap),this.sendMultiValueData(t,i,r,!1)}}_handleMultiValueDelete(t,i){if(null==eM(this,oK)[oK].state.globalProfileMap&&(eM(this,oK)[oK].state.globalProfileMap=eM(this,oK)[oK].storage.readFromLSorCookie(eZ)),null==eM(this,oK)[oK].state.globalProfileMap&&(eM(this,oK)[oK].state.globalProfileMap={}),t.includes(".")||t.includes("[")){let r=o_(t);if(0===r.length)return void eM(this,oV)[oV].error("Invalid nested path format.");let o=oS(eM(this,oK)[oK].state.globalProfileMap,r);if(void 0===o)return void eM(this,oV)[oV].error(`Path '${t}' does not exist in profile.`);if(!(null==o||"string"==typeof o||"number"==typeof o||"boolean"==typeof o))return void eM(this,oV)[oV].error(`Cannot delete '${t}': Value is an ${Array.isArray(o)?"array":"object"}. Only primitive values (string, number, boolean) can be deleted.`);if(!((t,i)=>{if(0===i.length)return!1;let r=t,o=i.length-1;for(let t=0;t<o;t++){let o=i[t];if("key"===o.type){if(null==r[o.value])return!1;r=r[o.value]}else if("array"===o.type){if(!Array.isArray(r)||null==r[o.index])return!1;r=r[o.index]}}let s=i[o];if("key"===s.type){if(r.hasOwnProperty(s.value))return delete r[s.value],!0}else if("array"===s.type){if(!Array.isArray(r))return!1;if(null!=r[s.index])return r.splice(s.index,1),!0}return!1})(eM(this,oK)[oK].state.globalProfileMap,r))return void eM(this,oV)[oV].error(`Failed to remove value at path '${t}'.`);eM(this,oK)[oK].storage.saveToLSorCookie(eZ,eM(this,oK)[oK].state.globalProfileMap),this.sendMultiValueData(t,null,i,!0)}else{if(!eM(this,oK)[oK].state.globalProfileMap.hasOwnProperty(t))return void eM(this,oV)[oV].error(`The property ${t} does not exist.`);let r=eM(this,oK)[oK].state.globalProfileMap[t];if(!(null==r||"string"==typeof r||"number"==typeof r||"boolean"==typeof r))return void eM(this,oV)[oV].error(`Cannot delete '${t}': Value is an ${Array.isArray(r)?"array":"object"}. Only primitive values (string, number, boolean) can be deleted.`);delete eM(this,oK)[oK].state.globalProfileMap[t],eM(this,oK)[oK].storage.saveToLSorCookie(eZ,eM(this,oK)[oK].state.globalProfileMap),this.sendMultiValueData(t,null,i,!1)}}sendMultiValueData(t,i,r){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s={},n={};s.type="profile",n[t]=o?r===tt?{[r]:!0}:{[r]:i}:{[r]:r===tt||i},null==n.tz&&(n.tz=(new Date).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]);let a=rD(n,eM(this,oV)[oV],3);
105if(a.processedObj){let t=a.processedObj,i=eM(this,oG)[oG](t);if(tN(i))return;s.profile=i}else s.profile=n;s=eM(this,oW)[oW].addSystemDataToObject(s,!0),eM(this,oW)[oW].addFlags(s);let l=rN(JSON.stringify(s),eM(this,oV)[oV]),d=eM(this,o$)[o$].dataPostURL;d=rY(d,"type",e0),d=rY(d,"d",l),eM(this,oW)[oW].saveAndFireRequest(d,eM(this,oK)[oK].state.blockRequest)}}function oY(t){if(Array.isArray(t)&&t.length>0){for(let i in t)if(t.hasOwnProperty(i)){let r=t[i],o,s={};if(null!=r.Site){if(tN(o=r.Site))return void eM(this,oV)[oV].error("Empty profile object provided. No data to send.");let t={};for(let i of tL)o[i]instanceof Date&&(t[i]=o[i]);let i=rD(o,eM(this,oV)[oV],3);for(let r in i.processedObj&&(o=i.processedObj),t)o[r]=t[r];if(!oC(o=eM(this,oG)[oG](o),{logger:eM(this,oV)[oV]}))return}else if(null!=r.Facebook){let t=r.Facebook;tN(t)||t.error||(o=ok(t))}else if(null!=r["Google Plus"]){let t=r["Google Plus"];tN(t)||t.error||(o=ox(t,{logger:eM(this,oV)[oV]}))}if(null!=o&&!tN(o)){s.type="profile",null==o.tz&&(o.tz=(new Date).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]),s.profile=o,oI(o,!0),s=eM(this,oW)[oW].addSystemDataToObject(s,void 0),eM(this,oW)[oW].addFlags(s);let t=rN(JSON.stringify(s),eM(this,oV)[oV]),i=eM(this,o$)[o$].dataPostURL;i=rY(i,"type",e0),i=rY(i,"d",t),eM(this,oW)[oW].saveAndFireRequest(i,eM(this,oK)[oK].state.blockRequest)}}}}function oX(t){let i={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r];tL.includes(r)?null===o||"object"!=typeof o||o instanceof Date?i[r]=o:eM(this,oV)[oV].reportError(tA.RESTRICTED_PROFILE_PROPERTY.code,tA.RESTRICTED_PROFILE_PROPERTY.message.replace("%s",r)):i[r]=o}return i}function o1(t){null==t.tz&&(t.tz=(new Date).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]);let i=rD(t,eM(this,oV)[oV],3);if(i.processedObj){let t=i.processedObj,r=eM(this,oG)[oG](t);if(tN(r))return;let o={type:"profile"};o.profile=r,o=eM(this,oW)[oW].addSystemDataToObject(o,!0),eM(this,oW)[oW].addFlags(o);let s=rN(JSON.stringify(o),eM(this,oV)[oV]),n=eM(this,o$)[o$].dataPostURL;n=rY(n,"type",e0),n=rY(n,"d",s),eM(this,oW)[oW].saveAndFireRequest(n,eM(this,oK)[oK].state.blockRequest)}}let o0=()=>{let t=navigator.userAgent;return t.includes("Chrome")||t.includes("CriOS")},o2=()=>{let t=navigator.userAgent;return t.includes("Firefox")||t.includes("FxiOS")},o4=()=>{let t=navigator.userAgent;return t.includes("Safari")&&!t.includes("CriOS")&&!t.includes("FxiOS")&&!t.includes("Chrome")&&!t.includes("Firefox")},o3=t=>!(!t||"object"!=typeof t)&&(!!Array.isArray(t)||Object.values(t).some(t=>"function"==typeof t||o3(t))),o6=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r={};for(let o in t)if(Object.hasOwnProperty.call(t,o)){let s=t[o],n=i?`${i}.${o}`:o;"object"!=typeof s||null===s||Array.isArray(s)?Array.isArray(s)||(r[n]={defaultValue:s,type:typeof s}):Object.assign(r,o6(s,n))}return r},o5=t=>{let i={};for(let r in t)if(Object.hasOwnProperty.call(t,r)){let o=t[r],s=r.split("."),n=i;s.forEach((t,i)=>{i===s.length-1?n[t]=o:n=n[t]=n[t]||{}})}return i};function o7(t){if("string"!=typeof t)return{isValid:!1,error:"ID must be a string."};let i=t.toLowerCase(),r=i.length;return r<1||r>64?{isValid:!1,error:"ID must be between 1 and 64 characters."}:/^[a-z0-9()!:@$_-]+$/.test(i)?{isValid:!0,sanitizedId:function(t){if("string"!=typeof t)throw Error("ID must be a string");return`_w_${t.toLowerCase()}`}(i)}:{isValid:!1,error:"ID contains invalid characters. Only A-Z, a-z, 0-9, (, ), !, :, @, $, _, - are allowed."}}var o8=eE("request"),o9=eE("logger"),se=eE("account"),st=eE("session"),si=eE("oldValues"),sr=eE("device"),so=eE("instanceManager"),ss=eE("processOUL"),sn=eE("handleCookieFromCache"),sa=eE("deleteUser"),sl=eE("processLoginArray");class sd extends Array{constructor(t,i){let{request:r,account:o,session:s,logger:n,device:a,instanceManager:l}=t;super(),Object.defineProperty(this,sl,{value:su}),Object.defineProperty(this,sa,{value:sp}),Object.defineProperty(this,sn,{value:sh}),Object.defineProperty(this,ss,{value:sc}),Object.defineProperty(this,o8,{writable:!0,value:void 0}),Object.defineProperty(this,o9,{writable:!0,value:void 0}),Object.defineProperty(this,se,{writable:!0,value:void 0}),Object.defineProperty(this,st,{writable:!0,value:void 0}),Object.defineProperty(this,si,{writable:!0,value:void 0}),Object.defineProperty(this,sr,{writable:!0,value:void 0}),Object.defineProperty(this,so,{writable:!0,value:void 0}),eM(this,o8)[o8]=r,eM(this,se)[se]=o,eM(this,st)[st]=s,eM(this,o9)[o9]=n,eM(this,si)[si]=i,eM(this,sr)[sr]=a,eM(this,so)[so]=l}clear(){eM(this,o9)[o9].debug("clear called. Reset flag has been set."),eM(this,sa)[sa](),eM(this,so)[so].storage.setMetaProp(ej,!0)}push(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return eM(this,sl)[sl](i),0}_processOldValues(){eM(this,si)[si]&&eM(this,sl)[sl](eM(this,si)[si]),eM(this,si)[si]=null}}function sc(t){var i=this;let r=!0;if(eM(this,so)[so].storage.saveToLSorCookie(e5,r),Array.isArray(t)&&t.length>0){for(let o in t)if(t.hasOwnProperty(o)){let s=t[o],n,a={};if(null!=s.Site){if(tN(n=s.Site)||!oC(n,{logger:eM(this,o9)[o9]}))return}else if(null!=s.Facebook){let t=s.Facebook;tN(t)||t.error||(n=ok(t))}else if(null!=s["Google Plus"]){let t=s["Google Plus"];tN(t)&&!t.error&&(n=ox(t,{logger:eM(this,o9)[o9]}))}if(null!=n&&!tN(n)){let t=!1;if(a.type="profile",null==n.tz&&(n.tz=(new Date).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]),n.customId){let i=o7(n.customId);i.isValid?(t=!0,eM(this,sr)[sr].gcookie=i.sanitizedId,eM(this,so)[so].storage.saveToLSorCookie(eV,i.sanitizedId),eM(this,o9)[o9].debug("customId set for OUL flow:: "+i.sanitizedId)):eM(this,o9)[o9].error("Invalid customId: "+i.error),delete n.customId}else"customId"in n&&delete n.customId;a.profile=n;let o=[];eM(this,so)[so].storage._isLocalStorageSupported()&&(n.Identity&&o.push(n.Identity),n.Email&&o.push(n.Email),n.GPID&&o.push("GP:"+n.GPID),n.FBID&&o.push("FB:"+n.FBID),o.length>0&&function(t){let o,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=eM(i,so)[so].storage.readFromLSorCookie(eW),a=eM(i,so)[so].storage.readFromLSorCookie(eV);if(null==n)n={},o=t;else{o=n.id;let l=!1,d=!1;if(null==o&&(o=t[0],l=!0),null==eM(i,so)[so].state.LRU_CACHE&&eM(i,so)[so].storage._isLocalStorageSupported()&&(eM(i,so)[so].state.LRU_CACHE=new re(100)),l)null!=a&&(eM(i,so)[so].state.LRU_CACHE.set(o,a),eM(i,so)[so].state.blockRequest=!1);else for(let r in t)if(t.hasOwnProperty(r)){let s=t[r];
105if(eM(i,so)[so].state.LRU_CACHE.cache[s]){o=s,d=!0;break}}if(d){o!==eM(i,so)[so].state.LRU_CACHE.getLastKey()?eM(i,sn)[sn]():(r=!1,eM(i,so)[so].storage.saveToLSorCookie(e5,r));let t=eM(i,so)[so].state.LRU_CACHE.get(o);eM(i,so)[so].state.LRU_CACHE.set(o,t),eM(i,so)[so].storage.saveToLSorCookie(eV,t),s||(eM(i,sr)[sr].gcookie=t),ob();let n=eM(i,so)[so].state.LRU_CACHE.getSecondLastKey();if(eM(i,so)[so].storage.readFromLSorCookie(e5)&&-1!==n){let t=eM(i,so)[so].state.LRU_CACHE.cache[n];eM(i,o8)[o8].unregisterTokenForGuid(t)}}else l||s?null==a||s||(eM(i,sr)[sr].gcookie=a,eM(i,so)[so].storage.saveToLSorCookie(eV,a),r=!1):i.clear(),eM(i,so)[so].storage.saveToLSorCookie(e5,!1),o=t[0]}n.id=o,eM(i,so)[so].storage.saveToLSorCookie(eW,n)}(o,t)),oI(n,!0),a=eM(this,o8)[o8].addSystemDataToObject(a,void 0),eM(this,o8)[o8].addFlags(a),r&&(a.isOUL=!0);let s=rN(JSON.stringify(a),eM(this,o9)[o9]),l=eM(this,se)[se].dataPostURL;l=rY(l,"type",e0),l=rY(l,"d",s),eM(this,o8)[o8].saveAndFireRequest(l,eM(this,so)[so].state.blockRequest,r)}}}}function sh(){eM(this,so)[so].state.blockRequest=!1,console.debug("Block request is false"),eM(this,so)[so].storage._isLocalStorageSupported()&&(eM(this,so)[so].storage.remove(eZ),eM(this,so)[so].storage.remove(eq),eM(this,so)[so].storage.remove(eK),eM(this,so)[so].storage.remove(eJ),eM(this,so)[so].storage.remove(e$),eM(this,so)[so].storage.remove(eU)),eM(this,so)[so].storage.removeCookie(e$,rX()),eM(this,so)[so].storage.removeCookie(eM(this,st)[st].cookieName,eM(this,so)[so].state.broadDomain),eM(this,so)[so].storage.removeCookie(eJ,eM(this,so)[so].state.broadDomain),eM(this,st)[st].setSessionCookieObject("")}function sp(){eM(this,so)[so].state.blockRequest=!0,eM(this,o9)[o9].debug("Block request is true"),eM(this,so)[so].state.globalCache.gcookie=null,eM(this,so)[so].storage._isLocalStorageSupported()&&(eM(this,so)[so].storage.remove(eV),eM(this,so)[so].storage.remove(eW),eM(this,so)[so].storage.remove(eZ),eM(this,so)[so].storage.remove(eq),eM(this,so)[so].storage.remove(eK),eM(this,so)[so].storage.remove(eJ),eM(this,so)[so].storage.remove(e$),eM(this,so)[so].storage.remove(eU)),eM(this,so)[so].storage.removeCookie(eV,eM(this,so)[so].state.broadDomain),eM(this,so)[so].storage.removeCookie(e$,rX()),eM(this,so)[so].storage.removeCookie(eW,rX()),eM(this,so)[so].storage.removeCookie(eM(this,st)[st].cookieName,eM(this,so)[so].state.broadDomain),eM(this,so)[so].storage.removeCookie(eJ,eM(this,so)[so].state.broadDomain),eM(this,sr)[sr].gcookie=null,eM(this,st)[st].setSessionCookieObject("")}function su(t){if(Array.isArray(t)&&t.length>0){let i=t.pop();if(null!=i&&tO(i)&&(null!=i.Site&&Object.keys(i.Site).length>0||null!=i.Facebook&&Object.keys(i.Facebook).length>0||null!=i["Google Plus"]&&Object.keys(i["Google Plus"]).length>0)){eM(this,so)[so].storage.setInstantDeleteFlagInK();try{eM(this,ss)[ss]([i])}catch(t){eM(this,o9)[o9].debug(t)}}else eM(this,o9)[o9].error("Profile object is in incorrect format")}}let sg=t=>{let i=328-(t.card.borderEnabled?2*t.card.border.borderWidth:0);return` 106 #pnWrapper { 107 width: 360px; 108 font-family: proxima-nova, Arial, sans-serif; 109 } 110 111 #pnWrapper * { 112 margin: 0px; 113 padding: 0px; 114 text-align: left; 115 } 116 ${t.overlay.enabled?`#pnOverlay { 117 background-color: ${t.overlay.color||"rgba(0, 0, 0, .15)"}; 118 position: fixed; 119 left: 0; 120 right: 0; 121 top: 0; 122 bottom: 0; 123 z-index: 10000 124 } 125`:""} 126 #pnCard { 127 background-color: ${t.card.color}; 128 border-radius: ${t.card.borderRadius}px; 129 padding: 16px; 130 width: ${i}px; 131 position: fixed; 132 z-index: 999999; 133 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); 134 ${t.card.borderEnabled?` 135 border-width: ${t.card.border.borderWidth}px; 136 border-color: ${t.card.border.borderColor}; 137 border-style: solid; 138 `:""} 139 height: fit-content; 140 } 141 142 #iconTitleDescWrapper { 143 display: flex; 144 align-items: center; 145 margin-bottom: 16px; 146 gap: 12px; 147 } 148 149 #iconContainer { 150 min-width: 64px; 151 max-width: 64px; 152 aspect-ratio: 1; 153 object-fit: cover; 154 } 155 156 #titleDescWrapper { 157 flex-grow: 1; 158 overflow: hidden; 159 overflow-wrap: break-word; 160 } 161 162 #title { 163 font-size: 16px; 164 font-weight: 700;
165 color: ${t.text.titleColor}; 166 margin-bottom: 4px; 167 line-height: 24px; 168 } 169 170 #description { 171 font-size: 14px; 172 font-weight: 500; 173 color: ${t.text.descriptionColor}; 174 line-height: 20px; 175 } 176 177 #buttonsContainer { 178 display: flex; 179 justify-content: space-between; 180 min-height: 32px; 181 gap: 8px; 182 align-items: center; 183 } 184 185 #primaryButton, #secondaryButton { 186 padding: 6px 24px; 187 flex: 1; 188 cursor: pointer; 189 font-weight: bold; 190 display: flex; 191 align-items: center; 192 justify-content: center; 193 height: max-content; 194 font-size: 14px; 195 font-weight: 500; 196 line-height: 20px; 197 text-align: center; 198 } 199 200 #primaryButton { 201 background-color: ${t.buttons.primaryButton.buttonColor}; 202 color: ${t.buttons.primaryButton.textColor}; 203 border-radius: ${t.buttons.primaryButton.borderRadius}px; 204 ${t.buttons.primaryButton.borderEnabled?` 205 border-width: ${t.buttons.primaryButton.border.borderWidth}px; 206 border-color: ${t.buttons.primaryButton.border.borderColor}; 207 border-style: solid; 208 `:"border: none;"} 209 } 210 211 #secondaryButton { 212 background-color: ${t.buttons.secondaryButton.buttonColor}; 213 color: ${t.buttons.secondaryButton.textColor}; 214 border-radius: ${t.buttons.secondaryButton.borderRadius}px; 215 ${t.buttons.secondaryButton.borderEnabled?` 216 border-width: ${t.buttons.secondaryButton.border.borderWidth}px; 217 border-color: ${t.buttons.secondaryButton.border.borderColor}; 218 border-style: solid; 219 `:"border: none;"} 220 } 221 222 #primaryButton:hover, #secondaryButton:hover { 223 opacity: 0.9; 224 } 225 `},sf=t=>` 226 #bell_wrapper { 227 position: fixed; 228 cursor: pointer; 229 background-color: ${t.card.backgroundColor}; 230 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); 231 width: 48px; 232 height: 48px; 233 border-radius: 50%; 234 display: flex; 235 flex-direction: column; 236 gap: 8px; 237 z-index: 999999; 238 } 239 240 #bell_icon { 241 display: block; 242 width: 48px; 243 height: 48px; 244 } 245 246 #bell_wrapper:hover { 247 transform: scale(1.05); 248 transition: transform 0.2s ease-in-out; 249 } 250 251 #bell_tooltip { 252 display: none; 253 background-color: #2b2e3e; 254 color: #fff; 255 border-radius: 4px; 256 padding: 4px; 257 white-space: nowrap; 258 pointer-events: none; 259 font-size: 14px; 260 line-height: 1.4; 261 } 262 263 #gif_modal { 264 display: none; 265 background-color: #ffffff; 266 padding: 4px; 267 width: 400px; 268 height: 256px; 269 border-radius: 4px; 270 position: relative; 271 box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); 272 cursor: default; 273 } 274 275 #gif_image { 276 object-fit: contain; 277 width: 100%; 278 height: 100%; 279 } 280 281 #close_modal { 282 position: absolute; 283 width: 24px; 284 height: 24px; 285 top: 8px; 286 right: 8px; 287 background: rgba(238, 238, 238, 0.8); 288 text-align: center; 289 line-height: 20px; 290 border-radius: 4px; 291 color: #000000; 292 font-size: 22px; 293 cursor: pointer; 294 } 295 `;var sy=eE("oldValues"),sm=eE("logger"),sv=eE("request"),sb=eE("account"),sw=eE("wizAlertJSPath"),sC=eE("fcmPublicKey"),sk=eE("instanceManager"),sx=eE("setUpWebPush"),sI=eE("isNativeWebPushSupported"),s_=eE("setUpSafariNotifications"),sS=eE("setUpChromeFirefoxNotifications"),sE=eE("addWizAlertJS"),sM=eE("removeWizAlertJS"),sP=eE("handleNotificationRegistration");class sA extends Array{constructor(t,i){let{logger:r,session:o,request:s,account:n,instanceManager:a}=t;super(),Object.defineProperty(this,sP,{value:sz}),Object.defineProperty(this,sM,{value:sB}),Object.defineProperty(this,sE,{value:sN}),Object.defineProperty(this,sS,{value:sD}),Object.defineProperty(this,s_,{value:sO}),Object.defineProperty(this,sI,{value:sT}),Object.defineProperty(this,sx,{value:sL}),Object.defineProperty(this,sy,{writable:!0,value:void 0}),Object.defineProperty(this,sm,{writable:!0,value:void 0}),Object.defineProperty(this,sv,{writable:!0,value:void 0}),Object.defineProperty(this,sb,{writable:!0,value:void 0}),Object.defineProperty(this,sw,{writable:!0,value:void 0}),Object.defineProperty(this,sC,{writable:!0,value:void 0}),Object.defineProperty(this,sk,{writable:!0,value:void 0}),eM(this,sw)[sw]="https://static.clevertap.com/js/wzrk_dialog.min.js",eM(this,sC)[sC]=null,eM(this,sy)[sy]=i,eM(this,sm)[sm]=r,eM(this,sv)[sv]=s,eM(this,sb)[sb]=n,eM(this,sk)[sk]=a}setupWebPush(t){eM(this,sx)[sx](t)}push(){if(eM(this,sk)[sk].storage.readFromLSorCookie(eG)){let o=eM(this,sk)[sk].storage.readFromLSorCookie(tl),s=eM(this,sk)[sk].storage.readFromLSorCookie(ta);for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];sG({logger:eM(this,sm)[sm],account:eM(this,sb)[sb],request:eM(this,sv)[sv],displayArgs:i,fcmPublicKey:eM(this,sC)[sC],instanceManager:eM(this,sk)[sk]}),o&&s?sJ():eM(this,sk)[sk].storage.saveToLSorCookie(td,!0)}else eM(this,sm)[sm].error("Account ID is not set")}_processOldValues(){eM(this,sy)[sy]&&(Array.isArray(eM(this,sy)[sy])&&eM(this,sy)[sy].length>0&&(sG({logger:eM(this,sm)[sm],account:eM(this,sb)[sb],request:eM(this,sv)[sv],displayArgs:eM(this,sy)[sy].slice(),fcmPublicKey:eM(this,sC)[sC],instanceManager:eM(this,sk)[sk]}),eM(this,sk)[sk].storage.saveToLSorCookie(td,!0)),eM(this,sx)[sx](eM(this,sy)[sy])),eM(this,sy)[sy]=null}setUpWebPushNotifications(t,i,r,o){o0()||o2()?eM(this,sS)[sS](t,i):o4()&&eM(this,s_)[s_](t,r,o,i)}setApplicationServerKey(t){eM(this,sC)[sC]=t}_enableWebPush(t,i){eM(this,sk)[sk].state.webPushEnabled=t,null!=i&&this.setApplicationServerKey(i),eM(this,sk)[sk].storage.readFromLSorCookie(td)||(eM(this,sk)[sk].state.webPushEnabled&&eM(this,sk)[sk].state.notifApi.notifEnabledFromApi?eM(this,sP)[sP](eM(this,sk)[sk].state.notifApi.displayArgs):eM(this,sk)[sk].state.webPushEnabled||eM(this,sk)[sk].state.notifApi.notifEnabledFromApi)}}function sL(t){eM(this,sk)[sk].state.webPushEnabled&&t.length>0?eM(this,sP)[sP](t):null==eM(this,sk)[sk].state.webPushEnabled&&t.length>0?(eM(this,sk)[sk].state.notifApi.notifEnabledFromApi=!0,eM(this,sk)[sk].state.notifApi.displayArgs=t.slice()):!1===eM(this,sk)[sk].state.webPushEnabled&&t.length>0&&eM(this,sm)[sm].error("Make sure push notifications are fully enabled and integrated")}function sT(){return"PushManager"in window}function sO(t,i,r,o){let s=document.getElementById("pnWrapper"),n=document.getElementById("wzrk_wrapper");eM(this,sI)[sI]()&&null!=eM(this,sC)[sC]?(eM(this,sk)[sk].storage.setMetaProp(tc,!0),navigator.serviceWorker.register(o).then(i=>{window.Notification.requestPermission().then(r=>{if("granted"===r){let r={applicationServerKey:eM(this,sC)[sC],userVisibleOnly:!0};eM(this,sm)[sm].info("Sub Obj"+JSON.stringify(r));let o=()=>{i.pushManager.subscribe(r).then(i=>{eM(this,sm)[sm].info("Service Worker registered. Endpoint: "+i.endpoint),eM(this,sm)[sm].info("Service Data Sent: "+JSON.stringify({applicationServerKey:eM(this,sC)[sC],userVisibleOnly:!0})),eM(this,sm)[sm].info("Subscription Data Received: "+JSON.stringify(i));let r=JSON.parse(JSON.stringify(i));r.endpoint=r.endpoint.split("/").pop(),eM(this,sk)[sk].storage.saveToLSorCookie(e7,r),eM(this,sv)[sv].registerToken(r),void 0!==t&&"function"==typeof t&&t();let o=document.getElementById("bell_wrapper");o&&o.parentNode.removeChild(o),s&&s.parentNode.removeChild(s),n&&n.parentNode.removeChild(n)})},a=i.installing||i.waiting||i.active;a&&"activated"===a.state?o():a&&a.addEventListener("statechange",t=>{"activated"===t.target.state&&(eM(this,sm)[sm].info("Service Worker activated. Proceeding with subscription."),o())})}else"denied"===r&&(eM(this,sm)[sm].info("Error subscribing to Safari web push"),s&&s.parentNode.removeChild(s),n&&n.parentNode.removeChild(n))})})):(void 0===i&&eM(this,sm)[sm].error("Ensure that APNS Web Push ID is supplied"),void 0===r&&eM(this,sm)[sm].error("Ensure that APNS Web Push service path is supplied"),"s
295afari"in window&&"pushNotification"in window.safari&&window.safari.pushNotification.requestPermission(r,i,{},t=>{if("granted"===t.permission){let o=JSON.parse(JSON.stringify(t));o.endpoint=t.deviceToken,o.browser="Safari",eM(this,sm)[sm].info("Service Data Sent: "+JSON.stringify({apnsServiceUrl:r,apnsWebPushId:i})),eM(this,sm)[sm].info("Subscription Data Received: "+JSON.stringify(t));let a=document.getElementById("bell_wrapper");a&&a.parentNode.removeChild(a),s&&s.parentNode.removeChild(s),n&&n.parentNode.removeChild(n),eM(this,sk)[sk].storage.saveToLSorCookie(e7,o),eM(this,sv)[sv].registerToken(o),eM(this,sm)[sm].info("Safari Web Push registered. Device Token: "+t.deviceToken)}else"denied"===t.permission&&(eM(this,sm)[sm].info("Error subscribing to Safari web push"),s&&s.parentNode.removeChild(s),n&&n.parentNode.removeChild(n))}))}function sD(t,i){let r="";"serviceWorker"in navigator&&navigator.serviceWorker.register(i).then(t=>"undefined"!=typeof __wzrk_account_id?new Promise(i=>setTimeout(()=>i(t),5e3)):(r=t.scope,/^(\.?)(\/?)([^/]*).js$/.test(i)?navigator.serviceWorker.ready:o0()?new Promise(i=>setTimeout(()=>i(t),5e3)):navigator.serviceWorker.getRegistrations())).then(i=>{o2()&&Array.isArray(i)&&(i=i.filter(t=>t.scope===r)[0]);let o={userVisibleOnly:!0};null!=eM(this,sC)[sC]&&(o.applicationServerKey=(t=>{let i=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),r=window.atob(i),o=[];for(let t=0;t<r.length;t++)o.push(r.charCodeAt(t));return new Uint8Array(o)})(eM(this,sC)[sC]));let s=document.getElementById("pnWrapper"),n=document.getElementById("wzrk_wrapper");i.pushManager.subscribe(o).then(i=>{eM(this,sm)[sm].info("Service Worker registered. Endpoint: "+i.endpoint),eM(this,sm)[sm].debug("Service Data Sent: "+JSON.stringify(o)),eM(this,sm)[sm].debug("Subscription Data Received: "+JSON.stringify(i));let r=JSON.parse(JSON.stringify(i));o0()?(r.endpoint=r.endpoint.split("/").pop(),r.browser="Chrome"):o2()&&(r.endpoint=r.endpoint.split("/").pop(),r.browser="Firefox"),eM(this,sk)[sk].storage.saveToLSorCookie(e7,r),eM(this,sv)[sv].registerToken(r),void 0!==t&&"function"==typeof t&&t();let a=document.getElementById("bell_wrapper");a&&a.parentNode.removeChild(a),s&&s.parentNode.removeChild(s),n&&n.parentNode.removeChild(n)}).catch(t=>{i.pushManager.getSubscription().then(t=>{null!==t&&t.unsubscribe().then(t=>{eM(this,sm)[sm].info("Unsubscription successful"),this.push({skipDialog:!0})}).catch(t=>{eM(this,sm)[sm].error("Error unsubscribing: "+t)})}),eM(this,sm)[sm].error("Error subscribing: "+t),s&&s.parentNode.removeChild(s),n&&n.parentNode.removeChild(n)})}).catch(t=>{eM(this,sm)[sm].error("error registering service worker: "+t)})}function sN(){let t=document.createElement("script");return t.setAttribute("type","text/javascript"),t.setAttribute("id","wzrk-alert-js"),t.setAttribute("src",eM(this,sw)[sw]),document.getElementsByTagName("body")[0].appendChild(t),t}function sB(){let t=document.getElementById("wzrk-alert-js");t.parentNode.removeChild(t)}function sz(t){let i,r,o,s,n,a,l,d,c,h,p,u,g,f,y,m,v;let b=o4()&&"PushManager"in window&&eM(this,sk)[sk].storage.getMetaProp(tc)&&null!==eM(this,sC)[sC];if(1===t.length){if(tO(t[0])){let b=t[0];i=b.titleText,r=b.bodyText,o=b.okButtonText,s=b.rejectButtonText,m=b.okButtonAriaLabel,v=b.rejectButtonAriaLabel,n=b.okButtonColor,a=b.skipDialog,l=b.askAgainTimeInSeconds,d=b.okCallback,c=b.rejectCallback,h=b.subscriptionCallback,p=b.serviceWorkerPath,u=b.httpsPopupPath,g=b.httpsIframePath,f=b.apnsWebPushId,y=b.apnsWebPushServiceUrl}}else i=t[0],r=t[1],o=t[2],s=t[3],n=t[4],a=t[5],l=t[6];if(null==a&&(a=!1),null==p&&(p="/clevertap_sw.js"),void 0===navigator.serviceWorker)return;let w=null!=u&&null!=g;if("https:"!==window.location.protocol&&"localhost"!==document.location.hostname&&!w)return void eM(this,sm)[sm].error("Make sure you are https or localhost to register for notifications");if((o0()||o2())&&!eM(this,sI)[sI]())return void eM(this,sm)[sm].error("Web Push Notification is not supported on this browser");if(!w){if(!("Notification"in window)||null==Notification)return void eM(this,sm)[sm].error("Notification not supported on this Device or Browser");if("granted"===Notification.permission&&(b||o0()||o2()))return void this.setUpWebPushNotifications(h,p,f,y);if("denied"===Notification.permission)return;if(a)return void this.setUpWebPushNotifications(h,p,f,y)}if(!(i&&r&&o&&s))return void eM(this,sm)[sm].error("Missing input parameters; please specify title, body, ok button and cancel button text");null!=n&&n.match(/^#[a-f\d]{6}$/i)||(n="#f28046");let C=(new Date).getTime()/1e3;if(null==eM(this,sk)[sk].storage.getMetaProp(th))eM(this,sk)[sk].storage.setMetaProp(th,C);else if(null==l&&(l=604800),C-eM(this,sk)[sk].storage.getMetaProp(th)<l){if(!o4()||b||null===eM(this,sC)[sC])return}else eM(this,sk)[sk].storage.setMetaProp(th,C);o4()&&eM(this,sI)[sI]()&&null!==eM(this,sC)[sC]&&eM(this,sk)[sk].storage.setMetaProp(tc,!0),eM(this,sk)[sk].storage.readFromLSorCookie(tu)||document.getElementById("wzrk_wrapper")?eM(this,sm)[sm].debug("Soft prompt wrapper is already loading or loaded"):(eM(this,sk)[sk].storage.saveToLSorCookie(tu,!0),eM(this,sE)[sE]().onload=()=>{eM(this,sk)[sk].storage.saveToLSorCookie(tu,!1),window.wzrkPermissionPopup.wizAlert({title:i,body:r,confirmButtonText:o,confirmButtonColor:n,rejectButtonText:s,confirmButtonAriaLabel:m,rejectButtonAriaLabel:v},t=>{t?("function"==typeof d&&d(),this.setUpWebPushNotifications(h,p,f,y)):"function"==typeof c&&c(),eM(this,sM)[sM]()})})}
295let sR=null,sj="/clevertap_sw.js",sF=null,sU=null,sV=null,sW=null,s$=null,sH=null,sq=null,sK=()=>sq?sq.storage:i3,sZ=()=>sq?sq.state:i6,sG=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};sU=t.logger,sV=t.account,sW=t.request,s$=t.displayArgs,sH=t.fcmPublicKey,sq=t.instanceManager||null},sJ=()=>{let t=sK().readFromLSorCookie(tn)||{};if(sF=new sA({logger:sU,session:{},request:sW,account:sV,instanceManager:sq}),t&&!(Object.keys(t).length>0))return sF.setApplicationServerKey(sR),void sF.setupWebPush(s$);let{showBox:i,showBellIcon:r,boxType:o}=t,{serviceWorkerPath:s,skipDialog:n,okCallback:a,subscriptionCallback:l,rejectCallback:d,apnsWebPushId:c,apnsWebPushServiceUrl:h}=sQ(s$);(r||i&&"new"===o)&&sY({serviceWorkerPath:s,skipDialog:n,okCallback:a,subscriptionCallback:l,rejectCallback:d,logger:sU,request:sW,account:sV,fcmPublicKey:sH,apnsWebPushId:c,apnsWebPushServiceUrl:h}),i&&"old"===o&&(sF.setApplicationServerKey(sR),sF.setupWebPush(s$)),sK().saveToLSorCookie(td,!1)},sQ=t=>{if(t&&1===t.length&&tO(t[0])){let{serviceWorkerPath:i,skipDialog:r,okCallback:o,subscriptionCallback:s,rejectCallback:n,apnsWebPushServiceUrl:a,apnsWebPushId:l}=t[0];return{serviceWorkerPath:i,skipDialog:r,okCallback:o,subscriptionCallback:s,rejectCallback:n,apnsWebPushServiceUrl:a,apnsWebPushId:l}}return{serviceWorkerPath:void 0,skipDialog:t[5],okCallback:void 0,subscriptionCallback:void 0,rejectCallback:void 0,apnsWebPushServiceUrl:void 0,apnsWebPushId:void 0}},sY=t=>{let{serviceWorkerPath:i,okCallback:r,subscriptionCallback:o,rejectCallback:s,logger:n,fcmPublicKey:a,apnsWebPushId:l,apnsWebPushServiceUrl:d}=t,{skipDialog:c}=t,h=sK().readFromLSorCookie(tn)||{};if(sZ().pushConfig=h,!sZ().pushConfig)return void n.error("Web Push config data not present");if(i&&(sj=i),null===c&&(c=!1),c)return sF.setApplicationServerKey(sR),void sF.setUpWebPushNotifications(o,sj,l,d);let{showBox:p,boxType:u,showBellIcon:g,isPreview:f}=sZ().pushConfig;f?(sZ().pushConfig.boxConfig&&s1(sZ().pushConfig,a),sZ().pushConfig.bellIconConfig&&s0(sZ().pushConfig)):(p&&"new"===u&&s1(sZ().pushConfig,a,r,o,s,l,d),g&&s0(sZ().pushConfig,o,l,d))},sX=function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=document.createElement(t);return Object.entries(i).forEach(t=>{let[i,o]=t;r[i]=o}),r},s1=(t,i,r,o,s,n,a)=>{if(document.getElementById(tp))return;let{boxConfig:{content:l,style:d}}=t,c=sX("div",{id:tp}),h=d.overlay.enabled?sX("div",{id:"pnOverlay"}):"",p=sX("div",{id:"pnCard"}),u=sX("div",{id:"iconTitleDescWrapper"}),g=sX("img",{id:"iconContainer",src:"default"===l.icon.type?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQiIGhlaWdodD0iNjQiIHZpZXdCb3g9IjAgMCA2NCA2NCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0IiByeD0iMzIiIGZpbGw9IiMwMEFFQjkiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zMS45OTg2IDIwQzMwLjkxOTggMjAgMzAuMDQyOCAyMC44NzQ2IDMwLjA0MjggMjEuOTUzNEwzMC4wNDI5IDIxLjk3MzRDMjYuNTQzNCAyMi41NTM1IDIzLjg3NSAyNS41OTQzIDIzLjg3NSAyOS4yNTgyVjM4LjA5OTVIMjMuODczNUMyMy4wNTg5IDM4LjA5OTUgMjIuMzk4NCAzOC43NiAyMi4zOTg0IDM5LjU3NDZDMjIuMzk4NCA0MC4zODkzIDIzLjA1ODkgNDEuMDQ5NyAyMy44NzM1IDQxLjA0OTdIMjkuNzgxMlY0MS43ODQyQzI5Ljc4MTIgNDMuMDA3NyAzMC43NzMxIDQzLjk5OTYgMzEuOTk2NiA0My45OTk2QzMzLjIyMDIgNDMuOTk5NiAzNC4yMTIgNDMuMDA3NyAzNC4yMTIgNDEuNzg0MlY0MS4wNDk3SDQwLjEyMzNDNDAuOTM4IDQxLjA0OTcgNDEuNTk4NCA0MC4zODkzIDQxLjU5ODQgMzkuNTc0NkM0MS41OTg0IDM4Ljc2IDQwLjkzOCAzOC4wOTk1IDQwLjEyMzMgMzguMDk5NUg0MC4xMjEyVjI5LjI1ODJDNDAuMTIxMiAyNS41OTQ2IDM3LjQ1MzMgMjIuNTU0MiAzMy45NTQzIDIxLjk3MzZMMzMuOTU0NCAyMS45NTM0QzMzLjk1NDQgMjAuODc0NiAzMy4wNzc1IDIwIDMxLjk5ODYgMjBaIiBmaWxsPSJ3aGl0ZSIvPgo8cmVjdCBvcGFjaXR5PSIwLjUiIHg9IjcuNSIgeT0iNy41IiB3aWR0aD0iNDkiIGhlaWdodD0iNDkiIHJ4PSIyNC41IiBzdHJva2U9IndoaXRlIi8+CjxyZWN0IG9wYWNpdHk9IjAuMyIgeD0iNC41IiB5PSI0LjUiIHdpZHRoPSI1NSIgaGVpZ2h0PSI1NSIgcng9IjI3LjUiIHN0cm9rZT0id2hpdGUiLz4KPHJlY3Qgb3BhY2l0eT0iMC44IiB4PSIxMC41IiB5PSIxMC41IiB3aWR0aD0iNDMiIGhlaWdodD0iNDMiIHJ4PSIyMS41IiBzdHJva2U9IndoaXRlIi8+Cjwvc3ZnPgo=":l.icon.url,alt:l.icon?.altText||""});u.appendChild(g);let f=sX("div",{id:"titleDescWrapper"});f.appendChild(sX("div",{id:"title",textContent:l.title})),f.appendChild(sX("div",{id:"description",textContent:l.description})),u.appendChild(f);let y=sX("div",{id:"buttonsContainer"}),m=sX("button",{id:"primaryButton",textContent:l.buttons.primaryButtonText,ariaLabel:l.buttons.primaryButtonAriaLabel||l.buttons.primaryButtonText}),v=sX("button",{id:"secondaryButton",textContent:l.buttons.secondaryButtonText,ariaLabel:l.buttons.secondaryButtonAriaLabel||l.buttons.secondaryButtonText});y.appendChild(v),y.appendChild(m),p.appendChild(u),p.appendChild(y);let b=sX("style",{textContent:sg(d)});c.appendChild(b),c.appendChild(p),h&&c.appendChild(h),s3(p,d.card.position);let w=o4()&&"PushManager"in window&&sK().getMetaProp(tc)&&null!==i;if(!t.isPreview&&"Notification"in window&&null!==Notification){if("granted"===Notification.permission&&(w||o0()||o2()))return sF.setApplicationServerKey(sR),void sF.setUpWebPushNotifications(o,sj,n,a);if("denied"===Notification.permission)return}let C=(new Date).getTime()/1e3,k=sK().getMetaProp("webpush_last_notif_time"),x=l.popupFrequency||7;
295if(!k||C-k>=24*x*3600)document.body.insertBefore(c,document.body.firstChild),t.isPreview||(sK().setMetaProp("webpush_last_notif_time",C),s2(c,r,o,s,n,a),o4()&&"PushManager"in window&&null!=i&&sK().setMetaProp(tc,!0));else if(o4()){if(w||null===i||!("PushManager"in window))return;t.isPreview||(document.body.appendChild(c),s2(c,r,o,s,n,a),sK().setMetaProp("webpush_last_notif_time",C),sK().setMetaProp(tc,!0))}},s0=(t,i,r,o)=>{if(document.getElementById("bell_wrapper")||"granted"===Notification.permission)return;let{bellIconConfig:{content:s,style:n}}=t,a=sX("div",{id:"bell_wrapper"}),l=sX("img",{id:"bell_icon",src:"default"===s.icon.type?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMi40OTYyIDUuMjQzOTVDMTIuODM5MSA1LjAzMzE3IDEzLjI4NDcgNS4xNDY4OSAxMy40OTczIDUuNDg4NjdDMTMuNzIyMyA1Ljg1MDE4IDEzLjYwMDIgNi4zMjUxOCAxMy4yMzggNi41NDkwMkM3LjM5Mzk5IDEwLjE2MDYgMy41IDE2LjYyNTcgMy41IDI0LjAwMDNDMy41IDM1LjMyMjEgMTIuNjc4MiA0NC41MDAzIDI0IDQ0LjUwMDNDMjguMDA1NSA0NC41MDAzIDMxLjc0MjYgNDMuMzUxNSAzNC45IDQxLjM2NTVDMzUuMjYwOCA0MS4xMzg1IDM1Ljc0MTYgNDEuMjM4NiAzNS45NjY4IDQxLjYwMDZDMzYuMTc5MiA0MS45NDE5IDM2LjA4NSA0Mi4zOTExIDM1Ljc0NTIgNDIuNjA2QzMyLjM0NjggNDQuNzU1OSAyOC4zMTg3IDQ2LjAwMDMgMjQgNDYuMDAwM0MxMS44NDk3IDQ2LjAwMDMgMiAzNi4xNTA1IDIgMjQuMDAwM0MyIDE2LjA2NjkgNi4xOTkyMSA5LjExNDMyIDEyLjQ5NjIgNS4yNDM5NVpNMzguOCAzOS45MDAzQzM4LjggNDAuMzk3MyAzOC4zOTcxIDQwLjgwMDMgMzcuOSA0MC44MDAzQzM3LjQwMjkgNDAuODAwMyAzNyA0MC4zOTczIDM3IDM5LjkwMDNDMzcgMzkuNDAzMiAzNy40MDI5IDM5LjAwMDMgMzcuOSAzOS4wMDAzQzM4LjM5NzEgMzkuMDAwMyAzOC44IDM5LjQwMzIgMzguOCAzOS45MDAzWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0yNCAxMkMyMi44OTU0IDEyIDIyIDEyLjg5NTQgMjIgMTRWMTQuMjUyQzE4LjU0OTUgMTUuMTQwMSAxNiAxOC4yNzIzIDE2IDIyVjI5LjVIMTUuNDc2OUMxNC42NjEyIDI5LjUgMTQgMzAuMTYxMiAxNCAzMC45NzY5VjMxLjAyMzFDMTQgMzEuODM4OCAxNC42NjEyIDMyLjUgMTUuNDc2OSAzMi41SDMyLjUyMzFDMzMuMzM4OCAzMi41IDM0IDMxLjgzODggMzQgMzEuMDIzMVYzMC45NzY5QzM0IDMwLjE2MTIgMzMuMzM4OCAyOS41IDMyLjUyMzEgMjkuNUgzMlYyMkMzMiAxOC4yNzIzIDI5LjQ1MDUgMTUuMTQwMSAyNiAxNC4yNTJWMTRDMjYgMTIuODk1NCAyNS4xMDQ2IDEyIDI0IDEyWk0yNiAzNFYzMy41SDIyVjM0QzIyIDM1LjEwNDYgMjIuODk1NCAzNiAyNCAzNkMyNS4xMDQ2IDM2IDI2IDM1LjEwNDYgMjYgMzRaIiBmaWxsPSJ3aGl0ZSIvPgo8L3N2Zz4K":s.icon.url}),d=sX("div",{id:"gif_modal",style:"display: none;"}),c=sX("img",{id:"gif_image",src:"https://d2r1yp2w7bby2u.cloudfront.net/js/permission_grant.gif"}),h=sX("div",{id:"close_modal",innerHTML:"×"});if(d.appendChild(c),d.appendChild(h),a.appendChild(l),a.appendChild(d),s.hoverText.enabled){let t=sX("div",{id:"bell_tooltip",textContent:s.hoverText.text});a.appendChild(t)}s3(a,n.card.position);let p=sX("style",{textContent:sf(n)});return document.head.appendChild(p),document.body.appendChild(a),t.isPreview||s4(a,i,r,o),a},s2=(t,i,r,o,s,n)=>{let a=t.querySelector("#primaryButton"),l=t.querySelector("#secondaryButton"),d=()=>t.parentNode?.removeChild(t);a.addEventListener("click",()=>{d(),sF.setApplicationServerKey(sR),sF.setUpWebPushNotifications(r,sj,s,n),"function"==typeof i&&i()}),l.addEventListener("click",()=>{d(),"function"==typeof o&&o()})},s4=(t,i,r,o)=>{let s=t.querySelector("#bell_icon");s.addEventListener("click",()=>{"denied"===Notification.permission?s7(t):(sF.setApplicationServerKey(sR),sF.setUpWebPushNotifications(i,sj,r,o),"granted"===Notification.permission&&t.remove())}),s.addEventListener("mouseenter",()=>s6(t)),s.addEventListener("mouseleave",()=>s5(t)),t.querySelector("#close_modal").addEventListener("click",()=>s7(t))},s3=(t,i)=>{Object.assign(t.style,{inset:"auto",transform:"none"});let r={"Top Right":{inset:"16px 16px auto auto"},"Top Left":{inset:"16px auto auto 16px"},"Bottom Right":{inset:"auto 16px 16px auto"},"Bottom Left":{inset:"auto auto 16px 16px"},Center:{inset:"50%",transform:"translate(-50%, -50%)"}
295,Top:{inset:"16px auto auto 50%",transform:"translateX(-50%)"},Bottom:{inset:"auto auto 16px 50%",transform:"translateX(-50%)"}};Object.assign(t.style,r[i]||r["top-right"])},s6=t=>{if("flex"===t.querySelector("#gif_modal").style.display)return;let i=t.querySelector("#bell_tooltip");i&&(i.style.display="flex");let r=t.querySelector("#bell_icon").getBoundingClientRect();var o=window.innerWidth/2,s=window.innerHeight/2;t.style["flex-direction"]=r.y>s?"column-reverse":"column",t.style["align-items"]=r.x>o?"flex-end":"flex-start"},s5=t=>{let i=t.querySelector("#bell_tooltip");i&&(i.style.display="none")},s7=t=>{s5(t);let i=t.querySelector("#gif_modal");i.style.display="none"===i.style.display?"flex":"none"},s8="wve-anti-flicker-hide",s9="dashboard.clevertap.com",ne="\n z-index: 2147483647;\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n width: 100vw !important;\n height: 100vh !important;\n margin: 0;\n padding: 0;\n background: transparent;\n",nt=` 296 ${ne} 297 border: 0 !important; 298 color-scheme: none; 299`,ni=function(t,i,r){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s="wizAdvBuilder",n=t.wzrk_id.split("_")[0];if(no(s))return;rR.instanceManager.state.campaignDivMap[n]=s;let a=ns(s),l=nn(t,r);l?(na(l,t,s,i,r,o),a.appendChild(l),document.body.appendChild(a),rR.instance.renderNotificationViewed({msgId:t.wzrk_id,pivotId:t.wzrk_pivot})):r.error("Failed to create iframe for Advanced Builder")},nr=(t,i,r,o,s,n)=>{let a=i.wzrk_id.split("_")[0],{detail:l}=t;if(!l?.type)return s.debug("Empty or missing event type");s.debug("Received event type:",l);let d={msgId:i.wzrk_id,pivotId:i.wzrk_pivot,kv:{wzrk_c2a:t.detail?.elementDetails?.name}};switch(l.type){case"close":n||rR.instance.renderNotificationClicked(d),oA(a,r,o?.sessionId,rR.instanceManager?.state?.campaignDivMap);break;case tM:n||rR.instance.renderNotificationClicked(d),l.openInNewTab?(window.open(l.url.value.replacements,"_blank","noopener"),l.closeOnClick&&oA(a,r,o?.sessionId,rR.instanceManager?.state?.campaignDivMap)):window.location.href=l.url.value.replacements;break;case tP:n||rR.instance.renderNotificationClicked(d),rR.instance.notifications.push({skipDialog:!0});break;case"js":n||rR.instance.renderNotificationClicked(d),rj(t.detail.js.name,i);break;default:s.debug("Empty event type received")}},no=t=>{let i=document.getElementById(t);return!!i&&(!rR.instanceManager.state.dismissSpamControl||(i.remove(),!1))},ns=t=>{let i=document.createElement("div");return i.id=t,i.setAttribute("style",ne),i},nn=(t,i)=>{try{let i=t.msgContent.html,r=window.matchMedia("(min-width: 480px)").matches?t.display.desktopConfig:t.display.mobileConfig,o=i.replace('"##Vars##"',JSON.stringify(r)),s=document.createElement("iframe");return s.id="wiz-iframe",s.srcdoc=o,s.setAttribute("style",nt),s}catch(t){return i.error("Error creating iframe:",t),null}},na=(t,i,r,o,s,n)=>{t.onload=()=>{try{t.contentDocument.addEventListener("CT_custom_event",t=>{s.debug("Event received ",t),nr(t,i,r,o,s,n)})}catch(t){s.error("Iframe document inaccessible, using postMessage:",t),nl(i,r,o,s)}}},nl=(t,i,r,o)=>{let s=s=>{s.origin.endsWith(s9)&&"CT_custom_event"===s.data?.type&&(o.debug("Event received ",s),nr({detail:s.data.detail},t,i,r,o))};window.removeEventListener("message",s),window.addEventListener("message",s)},nd=()=>{let t=r4.getInstance(),i=new URLSearchParams(window.location.search).get("ctActionMode");if(i){let r=window.opener,o=new URL(document.referrer);"ctWebPopupPreview"===i?r&&(r.postMessage("ready",o.origin),window.addEventListener("message",t=>(function(t){if(!t.origin.endsWith(s9)&&!t.origin.endsWith(window.location.origin))return;let i=r4.getInstance();try{let i=JSON.parse(t.data),r=i.inapp_notifs,o=r[0].msgContent;i&&o&&"advanced-web-popup-builder"===o.templateType&&ni(r[0],null,r4.getInstance(),!0)}catch(t){i.error("Error parsing event data:",t)}})(t),!1)):t.debug(`unknown query param ${i}`)}};class nc extends HTMLElement{constructor(){super(),this._target=null,this._session=null,this.shadow=null,this.popup=null,this.container=null,this.resizeObserver=null,this.shadow=this.attachShadow({mode:"open"})}getShadowRoot(){return this.shadow}get target(){return this._target||""}set target(t){null===this._target&&(this._target=t,this.renderImageOnlyPopup())}get session(){return this._session||""}set session(t){this._session=t}get msgId(){return this.target.wzrk_id}get pivotId(){return this.target.wzrk_pivot}get onClickUrl(){return this.target.display.onClickUrl}get onClickAction(){return this.target.display.onClickAction}get desktopAltText(){return this.target.display.desktopAlt}get mobileAltText(){return this.target.display.mobileAlt}renderImageOnlyPopup(){this.shadow.innerHTML=this.getImageOnlyPopupContent(),this.popup=this.shadowRoot.getElementById("imageOnlyPopup"),this.container=this.shadowRoot.getElementById("container"),this.closeIcon=this.shadowRoot.getElementById("close"),this.container.setAttribute("role","dialog"),this.container.setAttribute("aria-modal","true"),this.popup.addEventListener("load",this.updateImageAndContainerWidth()),this.resizeObserver=new ResizeObserver(()=>this.handleResize(this.popup,this.container)),this.resizeObserver.observe(this.popup);let t=()=>{let t=this.target.wzrk_id.split("_")[0];this.resizeObserver.unobserve(this.popup);let i=document.getElementById("wzrkImageOnlyDiv");if(null!=i&&i.remove(),this.remove(),null!=t&&"-1"!==t&&i3._isLocalStorageSupported()){let i=oy();i.dnd=[...new Set([...i.dnd??[],t])],om(i)}};this.closeIcon&&this.closeIcon.addEventListener("click",t),this.target.display.preview||window.clevertap.renderNotificationViewed({msgId:this.msgId,pivotId:this.pivotId}),"none"===this.onClickAction?this.popup.addEventListener("click",t):this.onClickUrl&&this.popup.addEventListener("click",()=>{(this.target.display.preview||window.clevertap.renderNotificationClicked({msgId:this.msgId,pivotId:this.pivotId}),"urlCloseNotification"===this.onClickAction)?(this.target.display.window?window.open(this.onClickUrl,"_blank"):window.parent.location.href=this.onClickUrl,this.closeIcon?this.closeIcon.click():t()):this.target.display.window?window.open(this.onClickUrl,"_blank"):window.parent.location.href=this.onClickUrl})}handleResize(t,i){let r=this.getRenderedImageWidth(t);i.style.setProperty("width",`${r}px`),window.innerWidth>480?this.popup.setAttribute("alt",this.desktopAltText):this.popup.setAttribute("alt",this.mobileAltText)}getImageOnlyPopupContent(){return` 300 ${this.target.msgContent.css} 301 ${this.target.msgContent.html} 302 `}updateImageAndContainerWidth(){return()=>{let t=this.getRenderedImageWidth(this.popup);this.popup.style.setProperty("width",`${t}px`),this.container.style.setProperty("width",`${t}px`),this.container.style.setProperty("height","auto"),this.container.style.setProperty("position","fixed"),this.popup.style.setProperty("visibility","visible"),this.closeIcon&&this.closeIcon.style.setProperty("visibility","visible");let i=document.getElementById("wzrkImageOnlyDiv");null!=i&&(i.style.visibility="visible")}}
302getRenderedImageWidth(t){let i=t.naturalWidth/t.naturalHeight;return t.height*i}}let nh={center:{alignItems:"center",justifyContent:"center"},"top-right":{alignItems:"flex-start",justifyContent:"flex-end"},"top-left":{alignItems:"flex-start",justifyContent:"flex-start"},"bottom-right":{alignItems:"flex-end",justifyContent:"flex-end"},"bottom-left":{alignItems:"flex-end",justifyContent:"flex-start"},top:{alignItems:"flex-start",justifyContent:"center"},bottom:{alignItems:"flex-end",justifyContent:"center"},left:{alignItems:"center",justifyContent:"flex-start"},right:{alignItems:"center",justifyContent:"flex-end"}};function np(t){let i=t?.onClick;return i&&"object"==typeof i?i:{}}function nu(t,i){let r=np(t);return r.webUrl||r.url||t?.onClickUrl||i?.onClickUrl||""}function ng(t){window.open(t,"_blank","noopener")}class nf extends HTMLElement{constructor(){super(),this._target=null,this._session=null,this.shadow=null,this.popup=null,this.container=null,this.mediaDesktop=null,this.mediaMobile=null,this.resizeObserver=null,this._revealFallbackTimer=void 0,this._pipDragAbort=null,this._pipEntranceAnimAbort=null,this.pipOverlay=null,this._pipDragPointerId=null,this.playControlBtn=null,this.expandControlBtn=null,this.muteControlBtn=null,this.openNewTabBtn=null,this._pipExpanded=!1,this.shadow=this.attachShadow({mode:"open"})}getShadowRoot(){return this.shadow}get target(){return this._target||""}set target(t){null===this._target&&(this._target=t,this.renderPIPPopup())}get session(){return this._session||""}set session(t){this._session=t}get msgId(){return this.target.wzrk_id}get pivotId(){return this.target.wzrk_pivot}get desktopAltText(){return this.target.display.desktopAlt||this.target.display?.media?.alt_text}get mobileAltText(){return this.target.display.mobileAlt||this.target.display?.mobile?.media?.alt_text||this.target.display?.media?.alt_text}isWideViewport(){return window.innerWidth>480}getActiveMedia(){return this.isWideViewport()?this.mediaDesktop:this.mediaMobile}getPipDisplayConfig(){let t=this.target.display;return this.isWideViewport()?t.pip||{}:t.mobile?.pip||t.pip||{}}forEachVideo(t){this.mediaDesktop&&t(this.mediaDesktop),this.mediaMobile&&t(this.mediaMobile)}forEachVideoElement(t){this.forEachVideo(i=>{i instanceof HTMLVideoElement&&t(i)})}bindPipMediaRevealListeners(t,i){this.forEachVideo(r=>{if(r)return r instanceof HTMLImageElement?("function"==typeof r.decode&&r.decode().then(t,i),r.addEventListener("load",t,{once:!0}),void r.addEventListener("error",i,{once:!0})):void(r instanceof HTMLVideoElement&&(r.addEventListener("loadeddata",t,{once:!0}),r.addEventListener("loadedmetadata",t,{once:!0}),r.addEventListener("progress",t,{once:!0}),r.addEventListener("error",i,{once:!0}),"function"==typeof r.requestVideoFrameCallback&&r.requestVideoFrameCallback(()=>t())))})}isActiveMediaPaintReady(t){return!!t&&(t instanceof HTMLImageElement?t.complete&&t.naturalWidth>0:t instanceof HTMLVideoElement&&t.readyState>=HTMLMediaElement.HAVE_CURRENT_DATA)}applyPopupTitle(t){if(!t)return;let i=this.isWideViewport()?this.desktopAltText||"":this.mobileAltText||"";t.setAttribute("title",i)}refreshPipChrome(t){t&&(this.applyPopupTitle(t),this.syncPipPlayButtonIcon(),this.syncPipMuteButtonIcon())}getPipFallbackWidthPx(){let t=this.getPipDisplayConfig(),i="number"==typeof t.width?t.width:40;return window.innerWidth*i/100}isPipDragEnabled(){return!0===this.getPipDisplayConfig().controls?.drag}isPipPlayPauseEnabled(){return!1!==this.getPipDisplayConfig().controls?.playPause}isPipExpandCollapseEnabled(){return!1!==this.getPipDisplayConfig().controls?.expandCollapse}isPipMuteEnabled(){return!1!==this.getPipDisplayConfig().controls?.mute}getPipHostEl(){return document.getElementById(tI)}closePipTemplate(){if(!this.container)return;let t=this.target.wzrk_id.split("_")[0];this.resizeObserver&&this.resizeObserver.unobserve(this.container),void 0!==this._revealFallbackTimer&&(clearTimeout(this._revealFallbackTimer),this._revealFallbackTimer=void 0),this._pipDragAbort&&(this._pipDragAbort.abort(),this._pipDragAbort=null),this._pipEntranceAnimAbort&&(this._pipEntranceAnimAbort.abort(),this._pipEntranceAnimAbort=null),this._pipDragPointerId=null;let i=this.getPipHostEl();if(i&&i.remove(),!this.target.display?.preview&&null!=t&&"-1"!==t&&i3._isLocalStorageSupported()){let i=oy();i.dnd=[...new Set([...i.dnd??[],t])],om(i)}}runPipClickAction(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(t){let{pipConfig:i,display:r,targetingMsgJson:o,preview:s,closeTemplate:n,forceNewTab:a=!1}=t,l=function(t){let i=np(t).type;if(null!=i){let t=String(i).trim();if(""!==t)return t}let r=t?.onClickAction;return null!=r&&""!==r?r:""}(i);if(!l)return;let d=()=>{s||window.clevertap.renderNotificationClicked(function(t,i,r){let o=np(r).kv,s={msgId:t,pivotId:i};return o&&"object"==typeof o&&Object.keys(o).length>0&&(s.kv=o),s}(o.wzrk_id,o.wzrk_pivot,i))};switch(l){case"url":{let t=nu(i,r);if(!t)return;d(),a||("boolean"==typeof i?.window?i.window:!!r?.window)?ng(t):window.location.href=t;break}case tM:{let t=nu(i,r);if(!t)return;d();let o=np(i);!function(t,i,r){let o=!0===i.openInNewTab,s=!0===i.closeOnClick;o?(ng(t),s&&r()):(s&&r(),window.location.href=t)}(t,a?{...o,openInNewTab:!0}:o,n);break}
302case tP:d(),window.clevertap.notifications.push({skipDialog:!0});break;case"js":{let t=function(t){let i=np(t);return"string"==typeof i.js&&i.js?i.js:"string"==typeof i.jsName&&i.jsName?i.jsName:i.js&&"object"==typeof i.js&&i.js?.name?i.js.name:t?.onClickJs||""}(i);if(!t)return;d(),rj(t,o)}}}({pipConfig:this.getPipDisplayConfig(),display:this.target.display,targetingMsgJson:this.target,preview:this.target.display.preview,closeTemplate:()=>this.closePipTemplate(),...t})}getPipIcons(){return this.isWideViewport()?t_.desktop:t_.mobile}setPipSvgMarkup(t,i){if(!t)return;for(;t.lastChild;)t.removeChild(t.lastChild);let r=(new DOMParser).parseFromString(`<svg xmlns="http://www.w3.org/2000/svg">${i}</svg>`,"image/svg+xml").documentElement;if(r.querySelector("parsererror"))t.innerHTML=i;else for(;r.firstChild;)t.appendChild(r.firstChild)}createPipIconSvg(t){let i=this.getPipIcons(),r=document.createElementNS("http://www.w3.org/2000/svg","svg");return r.setAttribute("width",String(i.size)),r.setAttribute("height",String(i.size)),r.setAttribute("viewBox",i.viewBox),r.setAttribute("fill","none"),this.setPipSvgMarkup(r,t),r}refreshPipControlIconsAfterLayout(){this.injectPipControlIcons(),this.updatePipExpandButtonIcon(),this.isPipPlayPauseEnabled()&&this.syncPipPlayButtonIcon(),this.isPipMuteEnabled()&&this.syncPipMuteButtonIcon()}bindPipEntranceAnimationReinject(){let t=this.pipOverlay||this.container;if(!t)return;this._pipEntranceAnimAbort&&this._pipEntranceAnimAbort.abort(),this._pipEntranceAnimAbort=new AbortController;let{signal:i}=this._pipEntranceAnimAbort;t.addEventListener("animationend",t=>{"ct-pip-enter"===(t.animationName||"")&&this.refreshPipControlIconsAfterLayout()},{signal:i})}injectPipControlIcons(){let t=this.getPipIcons(),i=(t,i)=>{t&&(t.innerHTML="",t.appendChild(this.createPipIconSvg(i)))};i(this.closeIcon,t.close),i(this.playControlBtn,t.play),i(this.muteControlBtn,t.mute),i(this.expandControlBtn,t.expand),i(this.openNewTabBtn,t.openNewTab)}setupPipOpenNewTab(){this.openNewTabBtn&&this.openNewTabBtn.addEventListener("click",t=>{t.stopPropagation(),this.runPipClickAction()})}disablePipMediaClickTargeting(){this.forEachVideo(t=>{t&&t.style.setProperty("pointer-events","none","important")})}updatePipExpandButtonIcon(){if(!this.expandControlBtn)return;let t=this.expandControlBtn.querySelector("svg");if(!t)return;let i=this.getPipIcons();this.setPipSvgMarkup(t,this._pipExpanded?i.collapse:i.expand),this.expandControlBtn.setAttribute("aria-label",this._pipExpanded?"Collapse":"Expand"),this.expandControlBtn.setAttribute("aria-expanded",this._pipExpanded?"true":"false")}setPipExpanded(t){let i=this.pipOverlay||this.shadowRoot?.querySelector(".ct-pip-overlay");i&&this.container&&(this._pipExpanded=t,t?(i.classList.add("ct-pip--expanded"),this.container.style.width="",this.container.style.height="",this.forEachVideo(t=>{t.style.width="",t.style.height="",t.style.setProperty("object-fit","contain")})):(i.classList.remove("ct-pip--expanded"),this.forEachVideo(t=>{t.style.removeProperty("object-fit"),t.style.width="",t.style.height=""}),this.handleResize(this.getActiveMedia(),this.container)),this.updatePipExpandButtonIcon())}syncPipPlayButtonIcon(){if(!this.isPipPlayPauseEnabled())return;let t=this.getActiveMedia();t&&this.playControlBtn&&this.updatePipPlayButtonIcon(t)}updatePipPlayButtonIcon(t){if(!(this.playControlBtn&&t instanceof HTMLVideoElement))return;let i=this.playControlBtn.querySelector("svg");if(!i)return;let r=this.getPipIcons(),o=t.paused;this.setPipSvgMarkup(i,o?r.play:r.pause),this.playControlBtn.setAttribute("aria-label",o?"Play":"Pause")}setupPipPlayPauseToggle(){if(!this.isPipPlayPauseEnabled()||!this.playControlBtn)return;let t=()=>this.syncPipPlayButtonIcon();this.forEachVideoElement(i=>{i.addEventListener("play",t),i.addEventListener("pause",t)}),this.playControlBtn.addEventListener("click",t=>{t.stopPropagation();let i=this.getActiveMedia();i instanceof HTMLVideoElement&&(i.paused?i.play().catch(()=>{}):i.pause())}),this.syncPipPlayButtonIcon()}syncPipMuteButtonIcon(){if(!this.isPipMuteEnabled())return;let t=this.getActiveMedia();t&&this.muteControlBtn&&this.updatePipMuteButtonIcon(t)}updatePipMuteButtonIcon(t){if(!(this.muteControlBtn&&t instanceof HTMLVideoElement))return;let i=this.muteControlBtn.querySelector("svg");if(!i)return;let r=this.getPipIcons();this.setPipSvgMarkup(i,t.muted?r.mute:r.unmute),this.muteControlBtn.setAttribute("aria-label",t.muted?"Unmute":"Mute"),this.muteControlBtn.setAttribute("aria-pressed",t.muted?"true":"false")}applyPipMutedToAllVideos(t){this.forEachVideoElement(i=>{i.muted=t})}setupPipMuteToggle(){if(!this.isPipMuteEnabled()||!this.muteControlBtn)return;let t=()=>this.syncPipMuteButtonIcon();this.forEachVideoElement(i=>{i.addEventListener("volumechange",t)}),this.muteControlBtn.addEventListener("click",t=>{t.stopPropagation();let i=this.getActiveMedia();i instanceof HTMLVideoElement&&(this.applyPipMutedToAllVideos(!i.muted),this.syncPipMuteButtonIcon())}),this.syncPipMuteButtonIcon()}setupPipExpandCollapse(){this.isPipExpandCollapseEnabled()&&this.expandControlBtn&&this.pipOverlay&&(this.expandControlBtn.addEventListener("click",t=>{t.stopPropagation(),this.setPipExpanded(!this._pipExpanded)}),this.updatePipExpandButtonIcon())}snapPipContainerToAnchor(){if(this._pipExpanded)return;let t=this.pipOverlay||this.shadowRoot?.querySelector(".ct-pip-overlay");if(!t||!this.container)return;let i=this.container.getBoundingClientRect(),r=i.left+i.width/2,o=i.top+i.height/2,s=window.innerWidth,n=window.innerHeight,a=this.getPipDisplayConfig(),l=n*(a.margins?.vertical??5)/100,d=s*(a.margins?.horizontal??5)/100,c=i.width,h=i.height,p=nh[[{key:"center",x:s/2,y:n/2},{key:"top-right",x:s-d-c/2,y:l+h/2},{key:"top-left",x:d+c/2,y:l+h/2},{key:"bottom-right",x:s-d-c/2,y:n-l-h/2},{key:"bottom-left",x:d+c/2,y:n-l-h/2},{key:"top",x:s/2,y:l+h/2},{key:"bottom",x:s/2,y:n-l-h/2},{key:"left",x:d+c/2,y:n/2},{key:"right",x:s-d-c/2,y:n/2}].reduce((t,i)=>{let s=r-i.x,n=o-i.y,a=s*s+n*n;return a<t.dist?{key:i.key,dist:a}:t},{key:"center",dist:1/0}).key]||nh.center;t.style.setProperty("align-items",p.alignItems),t.style.setProperty("justify-content",p.justifyContent),this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.right="",this.container.style.bottom="",this.container.style.margin=""}setupPipDrag(){if(!this.isPipDragEnabled()||!this.container||(this.pipOverlay=this.shadowRoot.querySelector(".ct-pip-overlay"),!this.pipOverlay))return;this.container.style.touchAction="none",this._pipDragAbort&&this._pipDragAbort.abort(),this._pipDragAbort=new AbortController;let{signal:t}=this._pipDragAbort,i=0,r=0,o=t=>{if(null!=this._pipDragPointerId&&t.pointerId===this._pipDragPointerId){try{this.container.releasePointerCapture(t.pointerId)}catch(t){}this._pipDragPointerId=null,this.snapPipContainerToAnchor()}};this.container.addEventListener("pointerdown",t=>{if(this._pipExpanded||"mouse"===t.pointerType&&0!==t.button||t.target.closest("#ct-pip-close, #ct-pip-expand, #ct-pip-play, #ct-pip-mute, #ct-pip-open-new"))return;this._pipDragPointerId=t.pointerId;let o=this.container.getBoundingClientRect();i=t.clientX-o.left,r=t.clientY-o.top;try{this.container.setPointerCapture(t.pointerId)}catch(t){return void(this._pipDragPointerId=null)}this.container.style.position="fixed",this.container.style.left=`${o.left}px`,this.container.style.top=`${o.top}px`,this.container.style.right="auto",this.container.style.bottom="auto",this.container.style.margin="0"},{signal:t}),this.container.addEventListener("pointermove",t=>{if(null==this._pipDragPointerId||t.pointerId!==this._pipDragPointerId)return;let o=t.clientX-i,s=t.clientY-r,n=this.container.offsetWidth,a=this.container.offsetHeight;o=Math.max(0,Math.min(o,window.innerWidth-n)),s=Math.max(0,Math.min(s,window.innerHeight-a)),this.container.style.left=`${o}px`,this.container.style.top=`${s}px`},{signal:t}),this.container.addEventListener("pointerup",o,{signal:t}),this.container.addEventListener("pointercancel",o,{signal:t})}renderPIPPopup(){this._pipExpanded=!1,this._pipEntranceAnimAbort&&(this._pipEntranceAnimAbort.abort(),this._pipEntranceAnimAbort=null),this.shadow.innerHTML=this.getPIPPopupContent();let t=document.createElement("style");if(t.textContent="\n.ct-pip-overlay.ct-pip--expanded {\n align-items: center !important;\n justify-content: center !important;\n padding: 0 !important;\n pointer-events: auto !important;\n background: rgba(0, 0, 0, 0.88);\n}\n.ct-pip-overlay.ct-pip--expanded .ct-pip-container {\n position: relative !important;\n max-width: none !important;\n width: 100vw !important;\n height: 100vh !important;\n display: flex !important;\n align-items: center !important;\n justify-content: center !important;\n border-radius: 0 !important;\n}\n.ct-pip-overlay.ct-pip--expanded .ct-pip-media {\n width: auto !important;\n height: auto !important;\n max-width: 100vw !important;\n max-height: 100vh !important;\n object-fit: contain !important;\n}\n",this.shadow.appendChild(t),this.mediaDesktop=this.shadowRoot.querySelector(".ct-pip-media--desktop")||this.shadowRoot.querySelector(".ct-pip-media"),this.mediaMobile=this.shadowRoot.querySelector(".ct-pip-media--mobile")||this.shadowRoot.querySelector(".ct-pip-media"),this.popup=this.getActiveMedia(),this.container=this.shadowRoot.getElementById("ct-pip-container"),this.closeIcon=this.shadowRoot.getElementById("ct-pip-close"),this.playControlBtn=this.shadowRoot.getElementById("ct-pip-play"),this.expandControlBtn=this.shadowRoot.getElementById("ct-pip-expand"),this.muteControlBtn=this.shadowRoot.getElementById("ct-pip-mute"),this.openNewTabBtn=this.shadowRoot.getElementById("ct-pip-open-new"),this.pipOverlay=this.shadowRoot.querySelector(".ct-pip-overlay"),!this.container)return;this.container.setAttribute("role","dialog"),this.container.setAttribute("aria-modal","true"),this.container.style.setProperty("visibility","hidden"),this.injectPipControlIcons(),this.disablePipMediaClickTargeting(),this.bindPipEntranceAnimationReinject();let i=()=>this.revealPIPContent(!1),r=()=>this.revealPIPContent(!0);this.bindPipMediaRevealListeners(i,r),i(),this._revealFallbackTimer=window.setTimeout(r,2500),this.resizeObserver=new ResizeObserver(()=>this.handleResize(this.getActiveMedia(),this.container)),this.resizeObserver.observe(this.container),this.closeIcon&&this.closeIcon.addEventListener("click",()=>this.closePipTemplate()),this.target.display.preview||window.clevertap.renderNotificationViewed({msgId:this.msgId,pivotId:this.pivotId}),this.setupPipPlayPauseToggle(),this.setupPipMuteToggle(),this.setupPipExpandCollapse(),this.setupPipOpenNewTab(),this.setupPipDrag()}handleResize(t,i){if(this.popup=t,this._pipExpanded){if(!t)return;return void this.refreshPipChrome(t)}let r=this.getRenderedMediaWidth(t);t&&i&&r<=0&&(r=this.getPipFallbackWidthPx()),t&&i&&r>0&&i.style.setProperty("width",`${r}px`),t&&this.refreshPipChrome(t)}getPIPPopupContent(){let t=this.target.msgContent;return this.isWideViewport()?`${t.css||""}${t.html||""}`:`${t.css_mobile||t.css||""}${t.html_mobile||t.html||""}`}revealPIPContent(t){if(!this.container)return;this.popup=this.getActiveMedia();let i=!(!this.mediaDesktop&&!this.mediaMobile);if(!i&&!t||!t&&this.popup&&!this.isActiveMediaPaintReady(this.popup))return;let r=()=>{if(!this.container)return;if(this.popup=this.getActiveMedia(),this.popup&&i){let t=this.getRenderedMediaWidth(this.popup);t<=0&&(t=this.getPipFallbackWidthPx()),t>0&&(this.popup.style.setProperty("width",`${t}px`),this.container.style.setProperty("width",`${t}px`)),this.applyPipAspectRatioPlaceholder(this.popup,t)}this.container.style.setProperty("height","auto"),this.container.style.removeProperty("visibility");let t=this.getPipHostEl();t&&(t.style.visibility="visible"),requestAnimationFrame(()=>{requestAnimationFrame(()=>{this.refreshPipControlIconsAfterLayout()})})};!t&&this.popup instanceof HTMLImageElement?requestAnimationFrame(()=>requestAnimationFrame(r)):r()}hasIntrinsicMediaSize(t){return!!t&&(t instanceof HTMLImageElement?t.naturalWi
302dth>0&&t.naturalHeight>0:t instanceof HTMLVideoElement&&t.videoWidth>0&&t.videoHeight>0)}applyPipAspectRatioPlaceholder(t,i){if(!t||i<=0)return;if(this.hasIntrinsicMediaSize(t))return void t.style.removeProperty("aspect-ratio");let r=this.getPipDisplayConfig().aspectRatio;if(!r)return;let o=Number(r.numerator),s=Number(r.denominator);o&&s&&(t.style.aspectRatio=`${o} / ${s}`)}getRenderedMediaWidth(t){let i,r;if(!t)return 0;if(t instanceof HTMLImageElement)i=t.naturalWidth,r=t.naturalHeight;else{if(!(t instanceof HTMLVideoElement))return 0;i=t.videoWidth,r=t.videoHeight}if(!i||!r)return 0;let o=t.clientHeight||t.offsetHeight;return!o||o<1?this.getPipFallbackWidthPx():i/r*o}}class ny extends HTMLElement{constructor(t,i){super(),this.wrapper=null,this.snackBar=null,this.shadow=this.attachShadow({mode:"open"}),this.config=t,this.message=i,i&&this.renderMessage(i)}get pivotId(){return this.message.wzrk_pivot}get campaignId(){return this.message.wzrk_id}createEl(t,i,r){let o=document.createElement(t);return o.setAttribute("id",i),o.setAttribute("part",r||i),o}renderMessage(t){switch(this.wrapper=this.createEl("div","messageWrapper"),t.templateType){case"text-only":case"text-with-icon":case"text-with-icon-and-image":{let i=this.prepareBasicMessage(t.msg[0]);this.wrapper.appendChild(i)}}let i=this.createEl("div","timeStamp");if(i.innerHTML=`<span>${n_(t.id.split("_")[1])}<span>`,!t.viewed){let t=this.createEl("span","unreadMarker");i.appendChild(t)}this.wrapper.appendChild(i),this.shadow.appendChild(this.wrapper)}prepareBasicMessage(t){let i=this.createEl("div","message");if(t.imageUrl){let r=this.addImage(t.imageUrl,"mainImg");i.appendChild(r)}let r=this.createEl("div","iconTitleDescWrapper");if(t.iconUrl){let i=this.addImage(t.iconUrl,"iconImg");r.appendChild(i)}let o=this.createEl("div","titleDescWrapper");if(t.title){let i=this.createEl("div","title");i.innerText=t.title,o.appendChild(i)}if(t.description){let i=this.createEl("div","description");i.innerText=t.description,o.appendChild(i)}if((t.title||t.description)&&r.appendChild(o),(t.iconUrl||t.title||t.description)&&i.appendChild(r),t.buttons&&t.buttons.length){let r=this.addButtons(t.buttons);i.appendChild(r)}return i}addButtons(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=this.createEl("div","buttonsContainer"),r=!1;return t.forEach((t,o)=>{let s=this.createEl("button",`button-${o}`,"button");s.innerText=t.text,o>0&&(s.style.cssText+="margin-left: 2px;"),"copy"===t.action&&(r=!0),i.appendChild(s)}),r&&this.addSnackbar(i),i}addSnackbar(t){this.snackBar=this.createEl("div",`snackbar-${this.campaignId}`,"snackbar"),this.snackBar.innerHTML=nM;let i=this.createEl("span",`snackbar-msg-${this.campaignId}`,"snackbar-msg");i.innerText="Copied to clipboard",this.snackBar.appendChild(i),t.appendChild(this.snackBar)}addImage(t,i){let r=this.createEl("div",`${i}Container`),o=this.createEl("img",i);return o.setAttribute("src",t),o.setAttribute("loading","lazy"),r.appendChild(o),r}raiseClickedEvent(t,i){switch(this.message.templateType){case"text-only":case"text-with-icon":case"text-with-icon-and-image":this.raiseClickedForBasicTemplates(t,i)}}raiseClickedForBasicTemplates(t,i){let r=this.message.msg[0],o={msgId:this.campaignId,pivotId:this.pivotId};if("BUTTON"===t.tagName){let i=t.id.split("-")[1],s=r.buttons[i];o.kv={wzrk_c2a:s.text},"url"===s.action?s.openUrlInNewTab?window.open(s.url,"_blank"):window.location=s.url:"copy"===s.action&&(window.focus(),navigator.clipboard.writeText(s.clipboardText),this.snackBar.style.setProperty("display","flex","important"),setTimeout(()=>{this.snackBar.style.setProperty("display","none","important")},2e3))}else"CT-INBOX-MESSAGE"===t.tagName&&r.onClickUrl&&(r.openUrlInNewTab?window.open(r.onClickUrl,"_blank"):window.location=r.onClickUrl);i?console.log("Notifiction clicked event will be raised at run time with payload ::",o):window.clevertap.renderNotificationClicked(o)}}class nm extends HTMLElement{constructor(t){super(),this.isInboxOpen=!1,this.isInboxFromFlutter=!1,this.selectedCategory=null,this.unviewedMessages={},this.unviewedCounter=0,this.isPreview=!1,this.inboxConfigForPreview={},this.inboxSelector=null,this.inbox=null,this.emptyInboxMsg=null,this.inboxCard=null,this.unviewedBadge=null,this.observer=null,this.selectedCategoryRef=null,this.addClickListenerOnDocument=t=>{if(t.composedPath().includes(this.inbox)){let i=t.path||t.composedPath&&t.composedPath();if(i.length){let t=i[0].id;if("closeInbox"===t)this.toggleInbox();else if(t.startsWith("category-"))this.prevCategoryRef=this.selectedCategoryRef,this.selectedCategoryRef=i[0],this.updateActiveCategory(i[0].innerText);else{let t=i.filter(t=>t.id?.startsWith("button-")||"CT-INBOX-MESSAGE"===t.tagName);t.length&&t[t.length-1].raiseClickedEvent(t[0],this.isPreview)}}}
302else(this.checkForWebInbox(t)||this.isInboxOpen)&&(this.isInboxFromFlutter?this.isInboxFromFlutter=!1:this.toggleInbox(t))},this.setBadgeStyle=t=>{if(null!==this.unviewedBadge){this.unviewedBadge.innerText=t>9?"9+":t;let i=t>0&&document.getElementById(this.config.inboxSelector);this.unviewedBadge.style.display=i?"flex":"none"}},this.logger=t,this.shadow=this.attachShadow({mode:"open"})}get incomingMessages(){return[]}set incomingMessages(t){void 0===t&&(t=[]),t.length>0&&this.updateInboxMessages(t)}get incomingMessagesForPreview(){return[]}set incomingMessagesForPreview(t){void 0===t&&(t=[]);let i={};t.length>0&&this.inbox&&(this.isPreview=!0,this.unviewedCounter=0,t.forEach(t=>{let r=`${t.wzrk_id.split("_")[0]}_${Date.now()}`;t.id=r,i[r]=t,this.unviewedMessages[r]=t,this.unviewedCounter++}),this.buildUIForMessages(i),this.updateUnviewedBadgeCounter())}connectedCallback(){this.init()}init(){let t=this.instanceManager?this.instanceManager.storage:i3;this.config=this.isPreview?this.inboxConfigForPreview:t.readFromLSorCookie(ti)||{},0!==Object.keys(this.config).length&&(this.inboxSelector=document.getElementById(this.config.inboxSelector),null!==this.inboxSelector&&(this.config.styles.notificationsBadge?this.addUnviewedBadge():this.unviewedBadge&&this.unviewedBadge.remove(),this.createinbox(),document.removeEventListener("click",this.addClickListenerOnDocument),document.addEventListener("click",this.addClickListenerOnDocument),this.config.categories.length&&this.updateActiveCategory(this.selectedCategoryRef.innerText),this.shadow.innerHTML=this.getInboxStyles(),this.shadow.appendChild(this.inbox)))}addMsgsToInboxFromLS(){let t=this.deleteExpiredAndGetUnexpiredMsgs(!1),i=t?Object.keys(t):[];0!==i.length&&(i.forEach(i=>{t[i].viewed||(this.unviewedMessages[i]=t[i],this.unviewedCounter++)}),this.buildUIForMessages(t),this.updateUnviewedBadgeCounter())}deleteExpiredAndGetUnexpiredMsgs(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],i=nw(this.instanceManager),r=Math.floor(Date.now()/1e3);for(let o in i)if(i[o].wzrk_ttl&&i[o].wzrk_ttl>0&&i[o].wzrk_ttl<r){if(t&&this.inbox){let t=this.shadowRoot.getElementById(i[o].id);t&&t.remove(),i[o].viewed||(this.unviewedCounter--,this.updateUnviewedBadgeCounter())}delete i[o]}return i&&i.length>0&&(i=Object.values(i).sort((t,i)=>i.date-t.date).reduce((t,i)=>(t[i.id]=i,t),{})),nC(i,this.instanceManager),i}updateInboxMessages(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],i=this.deleteExpiredAndGetUnexpiredMsgs(),r=Date.now(),o={};t.forEach((t,s)=>{let n=`${t.wzrk_id.split("_")[0]}_${Date.now()}`;t.id=n,t.date=r-s,t.viewed=0,i[n]=t,o[n]=t,this.unviewedMessages[n]=t,this.unviewedCounter++}),nC(i,this.instanceManager),this.inbox&&(this.buildUIForMessages(o),this.updateUnviewedBadgeCounter())}createEl(t,i,r){let o=document.createElement(t);return o.setAttribute("id",i),o.setAttribute("part",r||i),o}addUnviewedBadge(){this.unviewedBadge||(this.unviewedBadge=this.createEl("div","unviewedBadge"),this.unviewedBadge.style.cssText=`display: none; position: absolute; height: 16px; width: 26px; border-radius: 8px; background-color: ${this.config.styles.notificationsBadge.backgroundColor}; font-size: 12px; color: ${this.config.styles.notificationsBadge.textColor}; font-weight: bold; align-items: center; justify-content: center;`,document.body.appendChild(this.unviewedBadge)),this.updateUnviewedBadgePosition(),window.addEventListener("resize",()=>{this.updateUnviewedBadgePosition()})}updateUnviewedBadgePosition(){try{let{top:t,right:i}=(document.getElementById(this.config.inboxSelector)||this.inboxSelector).getBoundingClientRect();this.unviewedBadge.style.top=t-8+"px",this.unviewedBadge.style.left=i-8+"px"}catch(t){this.logger.debug("Error updating unviewed badge position:",t)}}createinbox(){this.inbox=this.createEl("div","inbox");let t=this.createEl("div","header"),i=this.createEl("div","headerTitle");i.innerText=this.config.title;let r=this.createEl("div","closeInbox");if(r.innerHTML="×",t.appendChild(i),t.appendChild(r),this.inbox.appendChild(t),this.config.categories.length){let t=this.createCategories();this.inbox.appendChild(t)}this.inboxCard=this.createEl("div","inboxCard"),this.inbox.appendChild(this.inboxCard),this.emptyInboxMsg=this.createEl("div","emptyInboxMsg"),this.emptyInboxMsg.innerText="All messages will be displayed here.",this.inboxCard.appendChild(this.emptyInboxMsg);let o={root:this.inboxCard,rootMargin:"0px",threshold:.5};this.observer=new IntersectionObserver((t,i)=>{this.handleMessageViewed(t)},o),this.addMsgsToInboxFromLS()}createCategories(){let t=this.createEl("div","categoriesContainer"),i=this.createEl("div","leftArrow");i.innerHTML=nE,i.children[0].style="transform: rotate(180deg)",i.addEventListener("click",()=>{this.shadowRoot.getElementById("categoriesWrapper").scrollBy(-70,0)}),t.appendChild(i);let r=this.createEl("div","categoriesWrapper");
302["All",...this.config.categories].forEach((t,i)=>{let o=this.createEl("div",`category-${i}`,"category");o.innerText=t,0===i&&(this.selectedCategoryRef=o),r.appendChild(o)}),t.appendChild(r);let o=this.createEl("div","rightArrow");o.innerHTML=nE,o.addEventListener("click",()=>{this.shadowRoot.getElementById("categoriesWrapper").scrollBy(70,0)}),t.appendChild(o);let s={root:t,threshold:.9},n=r.children[0],a=r.children[this.config.categories.length];return new IntersectionObserver(t=>{this.categoryObserverCb(i,t[0].intersectionRatio>=.9)},s).observe(n),new IntersectionObserver(t=>{this.categoryObserverCb(o,t[0].intersectionRatio>=.9)},s).observe(a),t}categoryObserverCb(t,i){t&&(t.style.display=i?"none":"flex")}updateActiveCategory(t){this.selectedCategory=t,this.inboxCard.scrollTop=0;let i=0;this.prevCategoryRef&&this.prevCategoryRef.setAttribute("selected","false"),this.selectedCategoryRef.setAttribute("selected","true"),this.inboxCard.childNodes.forEach(t=>{"emptyInboxMsg"!==t.getAttribute("id")&&(t.style.display="All"===this.selectedCategory||t.getAttribute("category")===this.selectedCategory?"block":"none","block"===t.style.display&&i++)}),0===i?(this.emptyInboxMsg.innerText=`${t} messages will be displayed here.`,this.emptyInboxMsg.style.display="block"):this.emptyInboxMsg.style.display="none"}buildUIForMessages(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.isPreview||this.updateTSForRenderedMsgs(),this.inboxCard.scrollTop=0;let i=this.config.maxMsgsInInbox??15,r=this.inboxCard.firstChild;for(let i of Object.values(t).sort((t,i)=>i.date-t.date).map(t=>t.id)){let o=new ny(this.config,t[i]);o.setAttribute("id",t[i].id),o.setAttribute("pivot",t[i].wzrk_pivot),o.setAttribute("part","ct-inbox-message"),this.config.categories.length>0?(o.setAttribute("category",t[i].tags[0]||""),o.style.display="All"===this.selectedCategory||t[i].category===this.selectedCategory?"block":"none"):o.style.display="block",this.inboxCard.insertBefore(o,r),this.observer.observe(o)}let o=this.inboxCard.querySelectorAll("ct-inbox-message").length;for(;o>i;){let t=this.inboxCard.querySelectorAll("ct-inbox-message");t.length>0&&t[t.length-1].remove(),o--}let s=this.inboxCard.querySelectorAll('ct-inbox-message[style*="display: block"]').length;this.emptyInboxMsg.style.display=s?"none":"block"}checkForWebInbox(t){let i=(this.instanceManager?this.instanceManager.storage:i3).readFromLSorCookie(ti)||{},r=document.getElementById(i.inboxSelector);return this.inboxSelector?.contains(t.target)||r?.contains(t.target)}handleMessageViewed(t){let i=!this.isPreview;this.isInboxOpen&&t.forEach(t=>{t.isIntersecting&&this.unviewedMessages.hasOwnProperty(t.target.id)&&0===t.target.message.viewed&&((t.target.message.viewed=1,i)?((rR.instance||window.clevertap).renderNotificationViewed({msgId:t.target.campaignId,pivotId:t.target.pivotId}),this.updateMessageInLS(t.target.id,{...t.target.message,viewed:1}),setTimeout(()=>{t.target.shadowRoot.getElementById("unreadMarker").style.display="none"},1e3)):console.log("Notifiction viewed event will be raised at run time with payload ::",{msgId:t.target.campaignId,pivotId:t.target.pivotId}),this.unviewedCounter--,this.updateUnviewedBadgeCounter(),delete this.unviewedMessages[t.target.id])})}updateMessageInLS(t,i){if(!this.isPreview){let r=nw(this.instanceManager);r[t]=i,nC(r,this.instanceManager)}}toggleInbox(t){this.isInboxOpen=!this.isInboxOpen,this.isInboxFromFlutter=!!t?.rect,this.isInboxOpen?(this.inboxCard.scrollTop=0,this.isPreview||this.deleteExpiredAndGetUnexpiredMsgs(),this.inbox.style.display="block",this.inbox.style.zIndex="2147483647",this.config.categories.length&&(this.selectedCategoryRef.setAttribute("selected","false"),this.selectedCategoryRef=this.shadowRoot.getElementById("category-0"),this.updateActiveCategory(this.selectedCategoryRef.innerText),this.shadowRoot.getElementById("categoriesWrapper").scrollLeft-=this.shadowRoot.getElementById("categoriesWrapper").scrollWidth),this.setInboxPosition(t)):this.inbox.style.display="none"}setInboxPosition(t){let i=window.outerWidth,r=getComputedStyle(this.instanceManager?this.instanceManager.state.inbox:i6.inbox),o=r.getPropertyValue("--inbox-top"),s=r.getPropertyValue("--inbox-bottom"),n=r.getPropertyValue("--inbox-left"),a=r.getPropertyValue("--inbox-right");if(i>481&&!(o||s||n||a)){let i=nI(t,this.inbox.clientHeight,this.inbox.clientWidth),r=i.xPos,o=i.yPos;this.inbox.style.top=o+"px",this.inbox.style.left=r+"px"}}
302updateUnviewedBadgeCounter(){if(this.isPreview)return void this.setBadgeStyle(this.unviewedCounter);let t=0;this.inboxCard.querySelectorAll("ct-inbox-message").forEach(i=>{let r=nw(this.instanceManager);r[i.id]&&0===r[i.id].viewed&&t++}),this.setBadgeStyle(t)}updateTSForRenderedMsgs(){this.inboxCard.querySelectorAll("ct-inbox-message").forEach(t=>{let i=t.id.split("_")[1];t.shadow.getElementById("timeStamp").firstChild.innerText=n_(i)})}getInboxStyles(){let t=this.config.categories.length?64:16,i={panelBackgroundColor:this.config.styles.panelBackgroundColor,panelBorderColor:this.config.styles.panelBorderColor,headerBackgroundColor:this.config.styles.header.backgroundColor,headerTitleColor:this.config.styles.header.titleColor,closeIconColor:this.config.styles.closeIconColor,categoriesTabColor:this.config.styles.categories.tabColor,categoriesTitleColor:this.config.styles.categories.titleColor,selectedCategoryTabColor:this.config.styles.categories.selectedTab.tabColor,selectedCategoryTitleColor:this.config.styles.categories.selectedTab.titleColor,headerCategoryHeight:36+t};this.config.styles.categories.borderColor&&(i.categoriesBorderColor=this.config.styles.categories.borderColor),this.config.styles.categories.selectedTab.borderColor&&(i.selectedCategoryBorderColor=this.config.styles.categories.selectedTab.borderColor);let r=(t=>{let{panelBackgroundColor:i,panelBorderColor:r,headerBackgroundColor:o,headerTitleColor:s,closeIconColor:n,categoriesTabColor:a,categoriesTitleColor:l,categoriesBorderColor:d,selectedCategoryTabColor:c,selectedCategoryTitleColor:h,selectedCategoryBorderColor:p,headerCategoryHeight:u}=t;return` 303 <style id="webInboxStyles"> 304 #inbox { 305 width: 100%; 306 position: fixed; 307 background-color: #fff; 308 display: none; 309 box-shadow: 0px 2px 10px 0px #d7d7d791; 310 background-color: ${i}; 311 border: 1px solid ${r}; 312 top: 0; 313 left: 0; 314 height: 100%; 315 overflow: auto; 316 z-index: 1; 317 box-sizing: content-box; 318 border-radius: 4px; 319 } 320 321 #emptyInboxMsg { 322 display: block; 323 padding: 10px; 324 text-align: center; 325 color: black; 326 } 327 328 #header { 329 height: 36px; 330 width: 100%; 331 display: flex; 332 justify-content: center; 333 align-items: center; 334 background-color: ${o}; 335 background-color: var(--card-bg, ${o}); 336 color: ${s}; 337 position: sticky; 338 top: 0; 339 } 340 341 #closeInbox { 342 font-size: 20px; 343 margin-right: 6px; 344 color: ${n}; 345 cursor: pointer; 346 height: 24px; 347 width: 24px; 348 text-align: center; 349 line-height: 24px; 350 border-radius: 50%; 351 } 352 353 #headerTitle { 354 font-size: 14px; 355 line-height: 20px; 356 flex-grow: 1; 357 font-weight: 700; 358 text-align: center; 359 flex-grow: 1; 360 text-align: center; 361 } 362 363 #categoriesContainer { 364 padding: 16px 16px 0 16px; 365 height: 32px; 366 display: flex; 367 scroll-behavior: smooth; 368 position: relative; 369 z-index: -1; 370 } 371 372 #categoriesWrapper { 373 height: 32px; 374 overflow-x: scroll; 375 display: flex; 376 white-space: nowrap; 377 scrollbar-width: none; 378 } 379 380 #categoriesWrapper::-webkit-scrollbar {
381 display: none; 382 } 383 384 #leftArrow, #rightArrow { 385 height: 32px; 386 align-items: center; 387 font-weight: 700; 388 position: absolute; 389 z-index: 2; 390 pointer-events: auto; 391 cursor: pointer; 392 display: none; 393 } 394 395 #leftArrow { 396 left: 0; 397 padding-left: 4px; 398 padding-right: 16px; 399 background: linear-gradient(90deg, ${i} 0%, ${i}99 80%, ${i}0d 100%); 400 } 401 402 #rightArrow { 403 right: 0; 404 padding-right: 4px; 405 padding-left: 16px; 406 background: linear-gradient(-90deg, ${i} 0%, ${i}99 80%, ${i}0d 100%); 407 } 408 409 [id^="category-"] { 410 display: flex; 411 flex: 1 1 0; 412 justify-content: center; 413 align-items: center; 414 font-size: 14px; 415 line-height: 20px; 416 background-color: ${a}; 417 color: ${l}; 418 cursor: pointer; 419 padding: 6px 24px; 420 margin: 0 3px; 421 border-radius: 16px; 422 border: ${d?"1px solid "+d:"none"}; 423 } 424 425 [id^="category-"][selected="true"] { 426 background-color: ${c}; 427 color: ${h}; 428 border: ${p?"1px solid "+p:"none"} 429 } 430 431 #inboxCard { 432 padding: 0 16px 0 16px; 433 overflow-y: auto; 434 box-sizing: border-box; 435 margin-top: 16px; 436 height: 100%; 437 overflow: scroll; 438 } 439 440 @media only screen and (min-width: 480px) { 441 #inbox { 442 width: var(--inbox-width, 392px); 443 height: var(--inbox-height, 546px); 444 position: var(--inbox-position, fixed); 445 right: var(--inbox-right, unset); 446 bottom: var(--inbox-bottom, unset); 447 top: var(--inbox-top, unset); 448 left: var(--inbox-left, unset); 449 } 450 451 #inboxCard { 452 height: calc(var(--inbox-height, 546px) - ${u}px); 453 } 454 455 } 456 </style> 457 `})(i),o=this.config.styles.cards;return r+(t=>{let{backgroundColor:i,borderColor:r,titleColor:o,descriptionColor:s,buttonColor:n,buttonTextColor:a,unreadMarkerColor:l}=t;return` 458 <style id="messageStyles"> 459 ct-inbox-message::part(messageWrapper) { 460 margin-bottom: 16px; 461 } 462 ct-inbox-message::part(message) { 463 background-color: ${i}; 464 border: 1px solid ${r}; 465 border-radius: 4px; 466 overflow: hidden; 467 min-height: 40px; 468 } 469 ct-inbox-message::part(message):hover { 470 box-shadow: 0px 4px 8px rgb(0 0 0 / 10%); 471 cursor: pointer; 472 } 473 ct-inbox-message::part(iconTitleDescWrapper) { 474 display: flex; 475 padding: 16px; 476 } 477 ct-inbox-message::part(titleDescWrapper) { 478 display: flex; 479 flex-direction: column; 480 } 481 ct-inbox-message::part(iconImgContainer) { 482 display: flex; 483 margin-right: 16px; 484 } 485 ct-inbox-message::part(mainImgContainer) { 486 line-height: 0; 487 } 488 ct-inbox-message::part(mainImg) { 489 width: 100%; 490 background: #b2b1ae; 491 } 492 ct-inbox-message::part(iconImg) { 493 height: 40px; 494 width: 40px; 495 } 496 ct-inbox-message::part(title) { 497 font-size: 14px !important; 498 line-height: 20px; 499 font-weight: 600; 500 color: ${o} 501 } 502 ct-inbox-message::part(description) { 503 font-size: 14px !important; 504 line-height: 20px; 505 font-weight: 400; 506 color: ${s} 507 } 508 ct-inbox-message::part(button) { 509 background-color: ${n}; 510 color: ${a}; 511 padding: 8px 16px; 512 font-size: 12px; 513 line-height: 16px; 514 font-weight: 600; 515 flex: 1; 516 border-radius: 0px; 517 text-transform: capitalize; 518 cursor: pointer; 519 border: none; 520 } 521 ct-inbox-message::part(buttonsContainer) { 522 display: flex; 523 position: relative; 524 } 525 ct-inbox-message::part(snackbar) { 526 position: absolute; 527 top: calc(-100% - 12px); 528 left: 50%; 529 transform: translate(-50%, 0px); 530 font-size: 14px; 531 font-weight: 400; 532 background: #FFFFFF; 533 border: 1px solid #ECEDF2; 534 box-shadow: 0px 4px 8px rgb(0 0 0 / 6%), 0px 0px 2px rgb(0 0 0 / 4%); 535 border-radius: 4px; 536 z-index: 2; 537 display: none; 538 width: max-content; 539 align-items: center; 540 padding: 8px 16px; 541 justify-content: center; 542 } 543 544 ct-inbox-message::part(snackbar-msg) { 545 color: black; 546 margin-left: 8px; 547 } 548 549 ct-inbox-message::part(timeStamp) { 550 display: flex; 551 justify-content: end; 552 align-items: center; 553 margin-top: 4px; 554 font-size: 12px !important; 555 line-height: 16px; 556 color: black; 557 } 558 ct-inbox-message::part(unreadMarker) { 559 height: 8px; 560 width: 8px; 561 border-radius: 50%; 562 background-color: ${l}; 563 margin-left: 8px; 564 } 565 @media only screen and (min-width: 420px) { 566 ct-inbox-message::part(mainImg) { 567 height: 180px; 568 } 569 } 570 </style> 571 `})({backgroundColor:o.backgroundColor,borderColor:o.borderColor,titleColor:o.titleColor,descriptionColor:o.descriptionColor,buttonColor:o.buttonColor,buttonTextColor:o.buttonTextColor,unreadMarkerColor:o.unreadMarkerColor})}}let nv=t=>{let i=rR.instanceManager?rR.instanceManager.state.inbox:i6.inbox;t.inbox_preview?i.incomingMessagesForPreview=t.inbox_notifs:i.incomingMessages=t},nb=(t,i)=>{let r=i||i3,o=r.readFromLSorCookie(tr)||{};if(Object.keys(o).length>0&&Object.keys(o)[0].includes("_")){let i={};return i[t]=o,r.saveToLSorCookie(tr,i),i}return o},nw=t=>
571{try{let i=t?t.storage:i3,r=tU(decodeURIComponent(i.read(eV)),null);if(!tR(r))return{};let o=nb(r,i);return o.hasOwnProperty(r)?o[r]:{}}catch(t){return{}}},nC=(t,i)=>{try{let r=i?i.storage:i3,o=tU(decodeURIComponent(r.read(eV)),null);if(!tR(o))return;let s={...nb(o,r),[o]:t};r.saveToLSorCookie(tr,s)}catch(t){(i&&i.logger||r4.getInstance()).error("Error saving inbox messages:",t.message)}},nk=(t,i)=>new Promise((r,o)=>{let s=i?i.storage:i3,n=i?i.state:i6,a=()=>{null===n.inbox&&((t,i)=>{nx();let r=i?i.state:i6,o=new nm({logger:t});o.instanceManager=i||null,r.inbox=o,document.body.appendChild(o)})(t,i)},l=()=>{let t=s.readFromLSorCookie(ti)||{};return document.getElementById(t.inboxSelector)&&null===n.inbox},d=()=>{t.debug("Failed to add inbox")},c=!1,h=()=>{if(!(s.readFromLSorCookie(ti)||{}).inboxSelector)return t.debug("Web Inbox Retry Skipped, Inbox selector is not configured"),!1;c||(c=!0,(function(i){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:20;return new Promise((s,a)=>{let l=0,d=setInterval(()=>{t.debug(`Retry attempt: ${l+1}`),i()||null!==n.inbox?(clearInterval(d),s()):l>=o&&(clearInterval(d),a(Error("Condition not met within max retries"))),l++},r)})})(l,500,20).then(()=>{a(),r()}).catch(d))};"complete"===document.readyState?h():(window.addEventListener("load",h),document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&h()}))}),nx=()=>{void 0===customElements.get("ct-web-inbox")&&(customElements.define("ct-web-inbox",nm),customElements.define("ct-inbox-message",ny))},nI=(t,i,r)=>{let o=document.scrollingElement.scrollLeft,s=document.scrollingElement.scrollTop,n=window.innerWidth+o,a=window.innerHeight+s,l=t.rect||t.target.getBoundingClientRect(),d=l.x+o,c=l.y+s,h=l.left+o,p=l.right+o,u=l.top+s,g=l.bottom,f=l.height,y=l.width,m,v,b=!1;if(g+i<=a){let t=a-(g+i);v=t>=16?g+16:g+t}else if(u-i>=s){let t=u-i;v=t>=16?u-i-16:u-i-t}else b=!0,(v=c+f/2-i/2)<s?v=s:v+i>a&&(v=a-i);if(b){let t=p+r;if(t<=n)m=p+(t+16<=n?16:n-t);else{let t=h-r;m=t-(t-16>=o?16:t-o)}}else(m=d+y/2-r/2)<o?m=h+r<=n?h:o:m+r>n&&(m=p-r>=o?p-r:n-r);return{xPos:m,yPos:v}},n_=t=>{let i=Math.floor((Date.now()-t)/6e4);return i<5?"Just now":i<60?`${i} minute${i>1?"s":""} ago`:(i=Math.floor(i/60))<24?`${i} hour${i>1?"s":""} ago`:(i=Math.floor(i/24),`${i} day${i>1?"s":""} ago`)},nS=t=>Object.keys((t?t.storage:i3).readFromLSorCookie(ti)||{}).length>0,nE='<svg width="6" height="10" viewBox="0 0 6 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M0.258435 9.74751C-0.0478584 9.44825 -0.081891 8.98373 0.156337 8.64775L0.258435 8.52836L3.87106 5L0.258435 1.47164C-0.0478588 1.17239 -0.0818914 0.707867 0.156337 0.371887L0.258435 0.252494C0.564728 -0.0467585 1.04018 -0.0800085 1.38407 0.152743L1.50627 0.252494L5.74156 4.39042C6.04786 4.68968 6.08189 5.1542 5.84366 5.49018L5.74156 5.60957L1.50627 9.74751C1.16169 10.0842 0.603015 10.0842 0.258435 9.74751Z" fill="#63698F"/>\n</svg>\n',nM='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M16 8C16 3.58172 12.4183 0 8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8ZM9.6839 5.93602C9.97083 5.55698 10.503 5.48833 10.8725 5.78269C11.2135 6.0544 11.2968 6.54044 11.0819 6.91173L11.0219 7.00198L8.09831 10.864C7.80581 11.2504 7.26654 11.3086 6.90323 11.0122L6.82822 10.9433L5.04597 9.10191C4.71635 8.76136 4.71826 8.21117 5.05023 7.87303C5.35666 7.5609 5.83722 7.53855 6.16859 7.80482L6.24814 7.87739L7.35133 9.01717L9.6839 5.93602Z" fill="#03A387"/>\n</svg>\n',nP=null,nA=t=>{t.data&&function(t){try{return new URL(t),!0}catch(t){return!1}}(t.data.originUrl)&&(t.origin.endsWith(s9)||t.origin.endsWith(window.location.origin))&&("Dashboard"===t.data.message?(window.evtMaster=t.data.personalisation.evtMaster,nL(t.data.url,t.data.variant??null,t.data.details??{},t.data.personalisation)):"Overlay"===t.data.message&&nB(t.data,!0))},nL=(t,i,r,o)=>{"complete"===document.readyState?nN(t,i,r,o):document.addEventListener("readystatechange",()=>{"complete"===document.readyState&&nN(t,i,r,o)})},nT,nO=!1,nD=!1;function nN(t,i,r,o){var s,n;nO||(window.Shopify&&(nD=!0),document.body.innerHTML="",document.head.innerHTML="",document.documentElement.innerHTML="",(nT=document.createElement("div")).id="overlayDiv",nT.style.position="relative",nT.style.display="flex",document.body.appendChild(nT),(n="https://web-native-display-campaign.clevertap.com/production/lib-overlay/overlay.js",new Promise((s,a)=>{var l=document.createElement("script");l.type="module",l.src=n,l.onload=function(){"function"==typeof window.Overlay?(window.Overlay({id:"#overlayDiv",url:t,variant:i,details:r,isShopify:nD,personalisation:o}),s()):a(Error("ContentLayout not found in overlay.js"))},l.onerror=function(t){a(t)},document.head.appendChild(l)})).then(()=>{nP.debug("Overlay script loaded successfully."),nO=!0}
571).catch(t=>{nP.debug("Error loading overlay script:",t)}),(s=document.createElement("link")).rel="stylesheet",s.type="text/css",s.href="https://web-native-display-campaign.clevertap.com/production/lib-overlay/style.css",document.head.appendChild(s))}let nB=(t,i,r)=>{r&&(nP=r),i&&sessionStorage.setItem("visualEditorData",JSON.stringify(t));let o=[],s=[],n=i?t.details:t.display.details,a=!1,l=0,d={msgId:t.wzrk_id,pivotId:t.wzrk_pivot},c=()=>{i||a||(a=!0,(rR.instance||window.clevertap).renderNotificationViewed(d))},h=(r,o)=>{if(l--,o?.reorderingOptions?.positionsChanged&&s.push({element:r,selector:o}),o.elementCSS&&(t=>{if(void 0!==t.elementCSS){let i=document.createElement("style");i.innerHTML=t.elementCSS,document.head.appendChild(i)}})(o),o.isTrackingClicks?.name&&r.addEventListener("click",()=>{var i;i={msgId:t.wzrk_id,pivotId:t.wzrk_pivot,msgCTkv:{wzrk_selector:o.isTrackingClicks.name}},(rR.instance||window.clevertap).renderNotificationClicked(i)}),o.values)switch(o.values.editor){case"html":r.outerHTML=i?o.values.html.text:o.values.html,function(t){try{let i;if(!(i=t.includes("-afterend-")||t.includes("-beforebegin-")?document.querySelector(`[ct-selector="${t}"]`):document.querySelector(t)))return;i.querySelectorAll("script").forEach(t=>{rK(t)})}catch(t){nP.debug("Error loading script",t)}}(o.selector);break;case"json":!function(t,i){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o={};o.msgId=t.wzrk_id,t.wzrk_pivot&&(o.pivotId=t.wzrk_pivot),null!=i.json&&(o.json=r?i.json.text:i.json);let s=new CustomEvent("CT_web_native_display_buider",{detail:o});document.dispatchEvent(s)}(t,o.values,i);break;case"form":d.msgCTkv={wzrk_selector:o.selector},function(t,i,r){let o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(void 0!==i){if(void 0!==i.style&&Object.keys(i.style).forEach(r=>{let o=r.replace(/([A-Z])/g,"-$1").toLowerCase(),s=i.style[r];"display"===o||"visibility"===o?t.style.setProperty(o,s,"important"):t.style.setProperty(o,s)}),void 0!==i.underline){let r=t.style.textDecoration;i.underline?t.style.textDecoration=`${r} underline`.trim():t.style.textDecoration=r.replace("underline","").trim()}if(void 0!==i.text&&(t.innerText=o?i.text.text:i.text),void 0!==i.clickDetail
571s){let s=i.clickDetails.clickUrl;t.onclick=i.clickDetails.newTab?()=>{o||window.clevertap.raiseNotificationClicked(r),window.open(s,"_blank").focus()}:()=>{o||window.clevertap.raiseNotificationClicked(r),window.location.href=s}}let s=t.tagName.toLowerCase();if("img"===s||"picture"===s){let r="picture"===s?t.querySelector("img"):t;r&&(void 0!==i.imgURL&&(r.src=i.imgURL),void 0!==i.imgSrcset&&(i.imgSrcset?r.setAttribute("srcset",i.imgSrcset):r.removeAttribute("srcset")),void 0!==i.imgSizes&&(i.imgSizes?r.setAttribute("sizes",i.imgSizes):r.removeAttribute("sizes")))}}}(r,o.values.form,d,i)}};n.forEach(t=>{l=t.selectorData.length,t.selectorData.forEach(t=>{if((t.selector.includes("-afterend-")||t.selector.includes("-beforebegin-"))&&t.values.initialHtml)o.push(t);else{let i;try{i=document.querySelector(t.selector)}catch(t){}i?(c(),h(i,t)):(t=>{let i=0,r=setInterval(()=>{let o;try{o=document.querySelector(t.selector)}catch(t){}o?(c(),h(o,t),clearInterval(r),p()):++i>=20&&(nP.debug(`No element present on DOM with selector '${t}'.`),clearInterval(r))},500)(rR.instanceManager?rR.instanceManager.state.intervalArray:i6.intervalArray).push(r)})(t)}})}),o.length>0&&o.sort((t,i)=>parseInt(t.selector.split("-")[0],10)-parseInt(i.selector.split("-")[0],10)).forEach(t=>{let{pos:i,sibling:r}=function(t){let i=t.match(/^(\d+)-(afterend|beforebegin)-(.+)$/);return i?{pos:i[2],sibling:i[3]}:{pos:"beforebegin",sibling:""}}(t.selector),o=0(rR.instanceManager?rR.instanceManager.state.intervalArray:i6.intervalArray).forEac
571h(t=>{"string"==typeof t&&t.startsWith("addNewEl-")&&clearInterval(parseInt(t.split("-")[1],10))}),s=setInterval(()=>{let n=null;try{let t=document.querySelector(r);n=document.querySelector(`[ct-selector="${r}"]`)||t}catch(t){n=document.querySelector(`[ct-selector="${r}"]`)}if(n){clearInterval(s);let o=document.createElement("div");o.innerHTML=t.values.initialHtml;let a=o.firstElementChild;n.insertAdjacentElement(i,a),n.getAttribute("ct-selector")||n.setAttribute("ct-selector",r),c(),h(a,t),p()}else++o>=20&&(nP.debug(`No element present on DOM with selector '${r}'.`),clearInterval(s))},500)(rR.instanceManager?rR.instanceManager.state.intervalArray:i6.intervalArray).push(`addNewEl-${s}`)});let p=()=>{0===l&&s.length>0&&u(s)},u=t=>{t.forEach(t=>{let{element:i,selector:r}=t,o=[];r.reorderingOptions.newOrder.forEach(t=>{(t.includes("-afterend-")||t.includes("-beforebegin-"))&&(t=`[ct-selector="${t}"]`);let r=document.querySelector(t);r&&i.contains(r)&&o.push(r)}),o.forEach((t,r)=>{if(Array.from(i.children).indexOf(t)!==r){let o=i.children[r];o?i.insertBefore(t,o):i.appendChild(t)}})})};p()};class nz extends HTMLElement{constructor(){super(),this._details=null,this.shadow=null,this.shadow=this.attachShadow({mode:"open"})}get details(){return this._details||""}set details(t){null===this._details&&(this._details=t,this.renderBanner())}renderBanner(){this.shadow.innerHTML=this.getBannerContent(),!1!==this.trackClick&&this.addEventListener("click",()=>{let t=this.details.onClick;t&&(this.details.window?window.open(t,"_blank"):window.parent.location.href=t),window.clevertap.renderNotificationClicked({msgId:this.msgId,pivotId:this.pivotId})}),window.clevertap.renderNotificationViewed({msgId:this.msgId,pivotId:this.pivotId})}getBannerContent(){return` 572 <style type="text/css"> 573 .banner { 574 position: relative; 575 cursor: ${this.details.onClick?"pointer":""} 576 } 577 img { 578 height: ${this.divHeight?this.divHeight:"auto"}; 579 width: 100%; 580 } 581 .wrapper:is(.left, .right, .center) { 582 display: flex; 583 justify-content: center; 584 flex-direction: column; 585 align-items: center; 586 position: absolute; 587 width: 100%; 588 height: 100%; 589 overflow: auto; 590 top: 0; 591 } 592 ${this.details.css?this.details.css:""} 593 </style> 594 <div class="banner"> 595 <picture> 596 <source media="(min-width:480px)" srcset="${this.details.desktopImageURL}"> 597 <source srcset="${this.details.mobileImageURL}"> 598 <img src="${this.details.desktopImageURL}" alt="Please upload a picture" style="width:100%;" part="banner__img"> 599 </picture> 600 ${this.details.html?this.details.html:""} 601 </div> 602 `}}class nR extends HTMLElement{constructor(){super(),this._target=null,this._carousel=null,this.shadow=null,this.slides=0,this.previouslySelectedItem=-1,this.selectedItem=1,this.autoSlide=null,this.stopAutoSlideTimeout=null,this.shadow=this.attachShadow({mode:"open"}),void 0===customElements.get("ct-web-personalisation-banner")&&customElements.define("ct-web-personalisation-banner",nz)}get target(){return this._target||""}set target(t){null===this._target&&(this._target=t,this.renderCarousel())}get details(){return this.target.display.details}get display(){return this.target.display}renderCarousel(){this.slides=this.details.length,this.shadow.innerHTML=this.getStyles();let t=this.getCarouselContent();this.display.showNavBtns&&t.insertAdjacentHTML("beforeend",this.display.navBtnsHtml),this.display.showNavArrows&&(t.insertAdjacentHTML("beforeend",this.display.leftNavArrowHtml),t.insertAdjacentHTML("beforeend",this.display.rightNavArrowHtml)),this._carousel=t,this.shadow.appendChild(t),this.setupClick(),this.updateSelectedItem(),this.startAutoSlide(),this.setupOnHover(),window.clevertap.renderNotificationViewed({msgId:this.target.wzrk_id,pivotId:this.target.wzrk_pivot})}setupClick(){this._carousel.addEventListener("click",t=>{let i=t.target.id;if(i.startsWith("carousel__button")){let t=+i.split("-")[1];t!==this.selectedItem&&(this.previouslySelectedItem=this.selectedItem,this.selectedItem=t,this.updateSelectedItem(),this.startAutoSlide())}else if(i.startsWith("carousel__arrow"))i.endsWith("right")?this.goToNext():this.goToPrev(),this.startAutoSlide();else if(i.indexOf("-")>-1){let t=+i.split("-")[1],r=t-1;window.parent.clevertap&&window.clevertap.renderNotificationClicked({msgId:this.target.wzrk_id,pivotId:this.target.wzrk_pivot,wzrk_slideNo:t});let o=this.details[r].onClick;""!==o&&(this.details[r].window?window.open(o,"_blank"):window.location.href=o)}})}setupOnHover(){this._carousel.addEventListener("mouseenter",t=>{this.stopAutoSlideTimeout=setTimeout(()=>{this.autoSlide=clearInterval(this.autoSlide)},500)}),this._carousel.addEventListener("mouseleave",t=>{clearTimeout(this.stopAutoSlideTimeout),void 0===this.autoSlide&&this.startAutoSlide()})}getCarouselContent(){let t=document.createElement("div");
602return t.setAttribute("class","carousel"),this.details.forEach((i,r)=>{let o=document.createElement("ct-web-personalisation-banner");o.classList.add("carousel__item"),o.trackClick=!1,o.setAttribute("id",`carousel__item-${r+1}`),o.details=i,t.appendChild(o)}),t}getStyles(){return` 603 <style> 604 .carousel { 605 position: relative; 606 } 607 608 .carousel__item { 609 display: none; 610 background-repeat: no-repeat; 611 background-size: cover; 612 } 613 614 ct-web-personalisation-banner::part(banner__img) { 615 height: ${this?.target?.display?.divHeight?this.target.display.divHeight:"auto"}; 616 width: 100%; 617 transition: 2s; 618 } 619 620 .carousel__item--selected { 621 display: block; 622 } 623 ${this.display.navBtnsCss} 624 ${this.display.navArrowsCss} 625 </style> 626 `}updateSelectedItem(){if(-1!==this.previouslySelectedItem){let t=this.shadow.getElementById(`carousel__item-${this.previouslySelectedItem}`),i=this.shadow.getElementById(`carousel__button-${this.previouslySelectedItem}`);t.classList.remove("carousel__item--selected"),i&&i.classList.remove("carousel__button--selected")}let t=this.shadow.getElementById(`carousel__item-${this.selectedItem}`),i=this.shadow.getElementById(`carousel__button-${this.selectedItem}`);t.classList.add("carousel__item--selected"),i&&i.classList.add("carousel__button--selected")}startAutoSlide(){clearInterval(this.autoSlide),this.autoSlide=setInterval(()=>{this.goToNext()},this.display.sliderTime?1e3*this.display.sliderTime:3e3)}goToNext(){this.goTo(this.selectedItem,(this.selectedItem+1)%this.slides)}goToPrev(){this.goTo(this.selectedItem,this.selectedItem-1)}goTo(t,i){this.previouslySelectedItem=t,this.selectedItem=i,0===i&&(this.selectedItem=this.slides),this.updateSelectedItem()}}let nj=t=>{void 0===customElements.get("ct-web-personalisation-banner")&&customElements.define("ct-web-personalisation-banner",nz);let i=t.display.divId??t.display.divSelector,r=document.createElement("ct-web-personalisation-banner");r.msgId=t.wzrk_id,r.pivotId=t.wzrk_pivot,r.divHeight=t.display.divHeight,r.details=t.display.details[0];let o=t.display.divId?document.getElementById(i):document.querySelector(i);o.innerHTML="",o.appendChild(r),nq.doCampHouseKeeping(t,rR.logger)},nF=t=>{void 0===customElements.get("ct-web-personalisation-carousel")&&customElements.define("ct-web-personalisation-carousel",nR);let i=t.display.divId??t.display.divSelector,r=document.createElement("ct-web-personalisation-carousel");r.target=t;let o=t.display.divId?document.getElementById(i):document.querySelector(i);o.innerHTML="",o.appendChild(r),nq.doCampHouseKeeping(t,rR.logger)},nU=t=>{let i={};i.msgId=t.wzrk_id,t.wzrk_pivot&&(i.pivotId=t.wzrk_pivot),null!=t.msgContent.kv&&(i.kv=t.msgContent.kv);let r=new CustomEvent("CT_web_native_display",{detail:i});document.dispatchEvent(r),nq.doCampHouseKeeping(t,rR.logger)},nV=(t,i)=>{let{display:r,wzrk_id:o,wzrk_pivot:s}=t||{},{divId:n}=r||{},a=r.details[0].html;if(!n||!a)return void i.error("No div Id or no html found");r["custom-html-click-track"]&&(a=rF(t,a));let l=!1,d={msgId:o,pivotId:s};(r=>{let o=0,s=setInterval(()=>{let n=document.querySelector(r);if(n){l||(l=!0,(rR.instance||window.clevertap).renderNotificationViewed(d)),n.innerHTML=a;let r=document.createElement("div");r.innerHTML=a,r.querySelectorAll("script").forEach(t=>{rK(t)}),nq.doCampHouseKeeping(t,rR.logger||i),clearInterval(s)}else++o>=20&&(i.error(`No element present on DOM with divId '${r}'.`),clearInterval(s))},500)})(n)},nW=t=>{let i={};i.msgId=t.wzrk_id;let r=t.display.details[0].json;t.wzrk_pivot&&(i.pivotId=t.wzrk_pivot),null!=t.display.json&&(i.json=r);let o=new CustomEvent("CT_web_native_display_json",{detail:i});document.dispatchEvent(o),nq.doCampHouseKeeping(t,rR.logger)},n$=t=>{let i=new URLSearchParams(window.location.search).get("ctActionMode");if(i){let r=window.opener;"ctCustomHtmlPreview"===i?r&&(r.postMessage("ready","*"),window.addEventListener("message",i=>(function(t,i){if(!t.origin.endsWith(s9))return;
626let r=JSON.parse(t.data),o=r.inapp_notifs,s=o[0].msgContent;r&&s&&"custom-html"===s.templateType&&5===s.type&&nV(o[0],i)})(i,t),!1)):t.debug(`unknown query param ${i}`)}},nH=(t,i,r)=>{let o=0,s=setInterval(()=>{null!==(t.display.divId?document.getElementById(t.display.divId):document.querySelector(t.display.divSelector))?(t.msgContent.type===tk.BANNER?nj(t):nF(t),clearInterval(s)):++o>=20&&(i.debug(`No element present on DOM with selector '${t.display.divId||t.display.divSelector}'.`),r[t.wzrk_id.split("_")[0]]=t,clearInterval(s))},500)},nq={incrCount(t,i,r){let o=0,s=0;null!=t[i]&&(o=t[i]),o++,null!=t.tc&&(s=t.tc),r<0&&s++,t.tc=s,t[i]=o},createExitIntentMouseLeaveHandler(t,i){let r=o=>{this.showExitIntent(o,t,null,i)&&window.document.removeEventListener("mouseleave",r)};return r},checkSessionCapping(t,i,r,o){let s=rR.session.sessionId,n=t[s];if(n){let t=n[i],s=n.tc;if(3===r.display.wtarget_type){if(o.totalInboxSessionLimit>0&&s>=o.totalInboxSessionLimit&&o.excludeFromFreqCaps<0)return!1}else if(o.totalSessionLimit>0&&s>=o.totalSessionLimit&&o.excludeFromFreqCaps<0)return!1;if(o.campaignSessionLimit>0&&t>=o.campaignSessionLimit)return!1}else n={},t[s]=n;return n},checkDailyCapping(t,i,r,o){let s=t[r];if(null!=s){let t=s[i],r=s.tc;if(o.totalDailyLimit>0&&r>=o.totalDailyLimit&&o.excludeFromFreqCaps<0||o.campaignDailyLimit>0&&t>=o.campaignDailyLimit)return!1}else s={},t[r]=s;return s},checkGlobalCapping(t,i,r){let o=t.global;
626if(null!=o){let t=o[i];if(r>0&&t>=r)return!1}else o={},t.global=o;return o},extractFrequencyCappingSettings(t){var i=-1;let r=-1,o=-1,s=-1,n=-1,a=-1,l=-1;return null!=t.display.efc&&(i=parseInt(t.display.efc,10)),null!=t.display.mdc&&(r=parseInt(t.display.mdc,10)),null!=t.display.tdc&&(o=parseInt(t.display.tdc,10)),null!=t.display.tlc&&(s=parseInt(t.display.tlc,10)),null!=t.display.wmp&&(n=parseInt(t.display.wmp,10)),null!=t.display.wmc&&(a=parseInt(t.display.wmc,10)),null!=t.display.wimc&&(l=parseInt(t.display.wimc,10)),{excludeFromFreqCaps:i,campaignSessionLimit:r,campaignDailyLimit:o,campaignTotalLimit:s,totalDailyLimit:n,totalSessionLimit:a,totalInboxSessionLimit:l}},doCampHouseKeeping(t,i){let r=t.wzrk_id.split("_")[0],o=tV();if(rq.isCampaignAddedToDND(r)&&!rR.instanceManager.state.dismissSpamControl)return!1;if(rR.instanceManager.storage._isLocalStorageSupported()){let n;delete sessionStorage.WZRK_CAMP;var s={};let a=oy();3===t.display.wtarget_type&&a.hasOwnProperty("wi")?s=a.wi:(0===t.display.wtarget_type||1===t.display.wtarget_type)&&a.hasOwnProperty("wp")||(s={}),a.hasOwnProperty("global"),null==t.display.wmc&&(t.display.wmc=1),null==t.display.wimc&&(t.display.wimc=1);let l=this.extractFrequencyCappingSettings(t),d=this.checkSessionCapping(s,r,t,l);if(!1===d)return!1;let c=this.checkDailyCapping(s,r,o,l);if(!1===c)return!1;let h=this.checkGlobalCapping(s,r,l.campaignTotalLimit);if(!1===h)return!1;let p=t.display;if(null!=p.delay&&p.delay>0){let t=p.delay;return p.delay=0,setTimeout(nK,1e3*t,rR.msg,{device:rR.device,session:rR.session,request:rR.request,logger:i,instanceManager:rR.instanceManager,instance:rR.instance}),!1}if(this.incrCount(d,r,l.excludeFromFreqCaps),this.incrCount(c,r,l.excludeFromFreqCaps),this.incrCount(h,r,l.excludeFromFreqCaps),3===t.display.wtarget_type&&(n="wi"),"wi"===n){let t={};t[rR.session.sessionId]=d,t[o]=c,t.global=h,om({[n]:t})}else((t,i)=>{try{if(!t||!t.wzrk_id)throw Error("Invalid campaign details provided");let i=oy()||{},r=t.wzrk_id.split("_")[0],o=t?.display?.efc;if(!r)throw Error("Failed to parse campaign ID");let s=t?.display?.wtarget_type,n={0:{showCountKey:"wsc",frequencyControlKey:"wfc",dailyCountKey:"wmp"},2:{showCountKey:"wndsc",frequencyControlKey:"wndfc",dailyCountKey:"wndmp"}}[s];if(!n)throw Error(`Unsupported campaign type: ${s}`);if(!o){let t=n.showCountKey,r=n.dailyCountKey,o="number"==typeof i[t]?i[t]:0;i[t]=o+1,i[r]=rq.getDailyCount(i,r)}if(t?.display?.adp){let t=n.frequencyControlKey;i[t]=rq.updateTimestampTracker([r],i[t]||{})}om(i)}catch(t){i.error(`Campaign delivery preference update failed: ${t.message}`)}})(t,i)}},setupClickUrl(t,i,r,o,s){rW(i,rR.request),((t,i,r,o,s,n,a)=>{if(""!==t&&null!=t){let l,d;s?l=r:null!==r&&null!=(d=r.getElementsByClassName("jsCT_CTA"))&&1===d.length&&(l=d[0]);let c=i.display.jsFunc,h=i.display.preview;null==h&&(t+=r$(n,a)),null!=l&&(l.onclick=()=>{if(null!=c)null==h&&rR.request.dispatcher.fireRequest(t),rj(c,i),oA("-1",o,a.sessionId,rR.instanceManager?.state?.campaignDivMap);else{let r=i.display.preview?i.display.onClick:new URL(i.display.onClick).searchParams.get("r"),s=i.wzrk_id.split("_")[0];"pushPrompt"===r?(i.display.preview||(rR.instance||window.parent.clevertap).renderNotificationClicked({msgId:i.wzrk_id,pivotId:i.wzrk_pivot}),(rR.instance||window.clevertap).notifications.push({skipDialog:!0}),oA(s,o,a.sessionId,rR.instanceManager?.state?.campaignDivMap)):"none"===r?oA(s,o,a.sessionId,rR.instanceManager?.state?.campaignDivMap):1===i.display.window?(window.open(t,"_blank"),i.display["close-popup"]&&oA(s,o,a.sessionId,rR.instanceManager?.state?.campaignDivMap),i.display.preview||(rR.instance||window.parent.clevertap).renderNotificationClicked({msgId:i.wzrk_id,pivotId:i.wzrk_pivot})):window.location=t}})}})(t,i,r,o,s,rR.device,rR.session)},handleImageOnlyPopup(t){let i="wzrkImageOnlyDiv";if(!1===this.doCampHouseKeeping(t,rR.logger)||(rR.instanceManager.state.dismissSpamControl&&null!=document.getElementById(i)&&document.getElementById(i).remove(),null!=document.getElementById(i)||null!=document.getElementById("intentPreview")))return;let r=document.createElement("div");return r.id=i,document.body.appendChild(r),void 0===customElements.get("ct-web-popup-imageonly")&&customElements.define("ct-web-popup-imageonly",nc),((t,i)=>{let r=document.createElement("ct-web-popup-imageonly");r.session=i,r.target=t;let o=document.getElementById("wzrkImageOnlyDiv");o.innerHTML="",o.style.visibility="hidden",o.appendChild(r)})(t,rR.session)},handlePIP(t){if(!1===this.doCampHouseKeeping(t,rR.logger)||(rR.instanceManager.state.dismissSpamControl&&null!=document.getElementById(tI)&&document.getElementById(tI).remove(),null!=document.getElementById(tI)||null!=document.getElementById("intentPreview")))return;let i=document.createElement("div");return i.id=tI,document.body.appendChild(i),void 0===customElements.get("ct-web-popup-pip")&&customElements.define("ct-web-popup-pip",nf),((t,i)=>{let r=document.createElement("ct-web-popup-pip");r.session=i,r.target=t;let o=document.getElementById("wizPIPDiv");o.innerHTML="",o.style.visibility="hidden",o.appendChild(r)})(t,rR.session)},isExistingCampaign(t){let i=document.getElementById("wiz-iframe-intent")||document.getElementById("wiz-iframe");return!!i&&(i.contentDocument||i.contentWindow.document).documentElement.innerHTML.includes(t)},createTemplate(t,i,r){let o=t.wzrk_id.split("_")[0],s=t.display;
626if(1===s.layout)return this.showExitIntent(void 0,t,r);if(3===s.layout)return void this.handleImageOnlyPopup(t);if(5===s.layout)return void this.handlePIP(t);if(!1===this.doCampHouseKeeping(t,rR.logger))return;if(4===s.layout)return void ni(t,rR.session,rR.logger);let n="wizParDiv"+s.layout,a="intentOpacityDiv"+s.layout;if(rR.instanceManager.state.dismissSpamControl&&null!=document.getElementById(n)){let t=document.getElementById(n),i=document.getElementById(a);t&&t.remove(),i&&i.remove()}if(this.isExistingCampaign(o)||null!=document.getElementById(n))return;rR.instanceManager.state.campaignDivMap[o]=n;let l=2===s.layout;if(i){let i=document.createElement("div");i.id=a;let r=`rgba(0,0,0,${t.display.opacity||.7})`;i.setAttribute("style",`position: fixed;top: 0;bottom: 0;left: 0;width: 100%;height: 100%;z-index: 2147483646;background: ${r};`),document.body.appendChild(i)}let d=document.createElement("div");d.id=n;let c=window.innerHeight,h=window.innerWidth,p=!1;if(l)d.setAttribute("style",s.iFrameStyle);else{var u=10;let t=5*h/100,i=10+5*c/100,r=30*h/100+20,o="width:30%;";(/mobile/i.test(navigator.userAgent)||/mini/i.test(navigator.userAgent))&&!1===/iPad/i.test(navigator.userAgent)?(r=85*h/100+20,t=5*h/100,i=5*c/100,o="width:80%;"):("ontouchstart"in window||/tablet/i.test(navigator.userAgent))&&(r=50*h/100+20,t=5*h/100,i=5*c/100,o="width:50%;"),null==s.proto?(p=!0,d.setAttribute("style","display:block;overflow:hidden; bottom:"+i+"px !important;width:"+r+"px !important;right:"+t+"px !important;position:fixed;z-index:2147483647;")):d.setAttribute("style",o+s.iFrameStyle)}document.body.appendChild(d);let g=document.createElement("iframe"),f=!1===s.br?"0":"8";g.frameborder="0px",g.marginheight="0px",g.marginwidth="0px",g.scrolling="no",g.id="wiz-iframe";let y=t.display.onClick,m,v="";if(""!==y&&null!=y&&(v="cursor:pointer;"),s.preview&&(g.sandbox="allow-scripts allow-popups allow-popups-to-escape-sandbox allow-same-origin"),1===t.msgContent.type)m=(m=(m=t.msgContent.html).replace(/##campaignId##/g,o)).replace(/##campaignId_batchId##/g,t.wzrk_id);else{let i,r,s,a,l;let d='<style type="text/css">body{margin:0;padding:0;}#contentDiv.wzrk{overflow:hidden;padding:0;text-align:center;'+v+"}#contentDiv.wzrk td{padding:15px 10px;}.wzrkPPtitle{font-weight: bold;font-size: 16px;font-family:arial;padding-bottom:10px;word-break: break-word;}.wzrkPPdscr{font-size: 14px;font-family:arial;line-height:16px;word-break: break-word;display:inline-block;}.PL15{padding-left:15px;}.wzrkPPwarp{margin:20px 20px 0 5px;padding:0px;border-radius: "+f+"px;box-shadow: 1px 1px 5px #888888;}a.wzrkClose{cursor:pointer;position: absolute;top: 11px;right: 11px;z-index: 2147483647;font-size:19px;font-family:arial;font-weight:bold;text-decoration: none;width: 25px;/*height: 25px;*/text-align: center; -webkit-appearance: none; line-height: 25px;background: #353535;border: #fff 2px solid;border-radius: 100%;box-shadow: #777 2px 2px 2px;color:#fff;}a:hover.wzrkClose{background-color:#d1914a !important;color:#fff !important; -webkit-appearance: none;}td{vertical-align:top;}td.imgTd{border-top-left-radius:8px;border-bottom-left-radius:8px;}</style>";"dark"===t.display.theme?(i="#2d2d2e",r="#eaeaea",s="#353535",a="#353535"):(i="#ffffff",r="#000000",a="#f4f4f4",s="#a5a6a6"),l="#ffffff";let c=t.msgContent.title,h=t.msgContent.description,p="";null!=t.msgContent.imageUrl&&""!==t.msgContent.imageUrl&&(p="<td class='imgTd' style='background-color:"+a+"'><img src='"+t.msgContent.imageUrl+"' height='60' width='60'></td>"),m=d+("<div class='wzrkPPwarp' style='color:"+r+";background-color:"+i+";'><a href='javascript:void(0);' onclick="+("parent.$WZRK_WR.closeIframe("+o)+",'"+n+"'); class='wzrkClose' style='background-color:"+s+";color:"+l+"'>×</a><div id='contentDiv' class='wzrk'><table cellpadding='0' cellspacing='0' border='0'><tr>"+p+"<td style='vertical-align:top;'><div class='wzrkPPtitle' style='color:"+r)+"'>"+c+"</div>"+("<div class='wzrkPPdscr' style='color:"+r)+"'>"+h+"<div></td></tr></table></div>"}g.setAttribute("style","color-scheme: none; z-index: 2147483647; display:block; width: 100% !important; border:0px !important; border-color:none !important;"),d.appendChild(g);let b=new Event("CT_campaign_rendered");document.dispatchEvent(b),s["custom-editor"]&&(m=rF(t,m)),rR.instanceManager.storage.readFromLSorCookie(ty)&&(m=rU(t,m)),g.srcdoc=m;let w=()=>{let t=document.getElementById("wiz-iframe")??g;if(!t?.contentDocument)return;let i=t.contentDocument.getElementById("contentDiv");if(!i)return;u=i.scrollHeight,!0===s["custom-editor"]||l||(u+=25);let r=t.contentDocument.body;null!=r&&(r.style.margin="0px"),t.style.height=u+"px"},C=navigator.userAgent.toLowerCase();if(-1!==C.indexOf("safari")){if(C.indexOf("chrome")>-1)g.onload=()=>{w();let i=(document.getElementById("wiz-iframe")??g)?.contentDocument?.getElementById("contentDiv")??null;null!=i&&this.setupClickUrl(y,t,i,n,p)};else{let i=g.contentDocument||g.contentWindow;i.document&&(i=i.document);let r=setInterval(()=>{if("complete"===i.readyState){clearInterval(r),w();let i=(document.getElementById("wiz-iframe")??g)?.contentDocument?.getElementById("contentDiv")??null;null!=i&&this.setupClickUrl(y,t,i,n,p)}},300)}}else g.onload=()=>{w();let i=(document.getElementById("wiz-iframe")??g)?.contentDocument?.getElementById("contentDiv")??null;null!=i&&this.setupClickUrl(y,t,i,n,p)}},renderFooterNotification(t,i){this.createTemplate(t,!1)},showFooterNotification(t,i,r){let o=t.display.onClick,s=t.display;
626if(rR.instance.hasOwnProperty("notificationCallback")&&void 0!==rR.instance.notificationCallback&&"function"==typeof rR.instance.notificationCallback){let r=rR.instance.notificationCallback;if(!i){let s={};s.msgContent=t.msgContent,s.msgId=t.wzrk_id,t.wzrk_pivot&&(s.pivotId=t.wzrk_pivot),null!=t.display.kv&&(s.kv=t.display.kv),t.display.deliveryTrigger&&(s.deliveryTrigger=t.display.deliveryTrigger),rR.instance.raiseNotificationClicked=()=>{if(""!==o&&null!=o){let i=t.display.jsFunc;if(o+=r$(rR.device,rR.session),null!=i)return rR.request.dispatcher.fireRequest(o),void rj(i,t);1===t.display.window?window.open(o,"_blank"):window.location=o}},rR.instance.raiseNotificationViewed=()=>{rW(t)},r(s),i=!0}}else{if(rR.instance.popupCurrentWzrkId=t.wzrk_id,s.deliveryTrigger){let i=[],o=null,n=!1,a=()=>{i.forEach(t=>{"function"==typeof t&&t()}),o&&(clearTimeout(o),o=null)},l=()=>{n||(n=!0,a(),this.renderFooterNotification(t,r))};if(s.deliveryTrigger.inactive&&i.push(this.triggerByInactivity(t,l)),s.deliveryTrigger.scroll&&i.push(this.triggerByScroll(t,l)),s.deliveryTrigger.isExitIntent){r=t;let o=i=>{!n&&this.showExitIntent(i,t,null,r)&&(n=!0,a())};window.document.addEventListener("mouseleave",o),i.push(()=>window.document.removeEventListener("mouseleave",o))}let d=s.delay||s.deliveryTrigger.deliveryDelayed;null!=d&&d>0&&(o=setTimeout(l,1e3*d))}else this.renderFooterNotification(t,r);if(rR.instance.hasOwnProperty("popupCallbacks")&&void 0!==rR.instance.popupCallbacks&&"function"==typeof rR.instance.popupCallbacks[t.wzrk_id]){let i=rR.instance.popupCallbacks[t.wzrk_id],r={};r.msgContent=t.msgContent,r.msgId=t.wzrk_id,t.wzrk_pivot&&(r.pivotId=t.wzrk_pivot);var n=[];for(var a in t)if(a.startsWith(e2)&&a!==e4){let i={[a]:t[a]};n.push(i)}n.length>0&&(r.msgCTkv=n),null!=t.display.kv&&(r.kv=t.display.kv),rR.instance.raisePopupNotificationClicked=i=>{if(!i||!i.msgId)return;let r={type:"event"};if(r.evtName=e6,r.evtData={[e4]:i.msgId},t.wzrk_pivot&&(r.evtData={...r.evtData,wzrk_pivot:i.pivotId}),i.msgCTkv)for(var o of i.msgCTkv)r.evtData={...r.evtData,...o};rR.request.processEvent(r)},i(r)}}},triggerByInactivity(t,i){let r;let o=1e3*t.display.deliveryTrigger.inactive,s=["mousemove","keypress","scroll","mousedown","touchmove","click"],n=()=>{clearTimeout(r),r=setTimeout(()=>{l(),i?i():this.renderFooterNotification(t)},o)},a=()=>{n()},l=()=>{clearTimeout(r),s.forEach(t=>window.removeEventListener(t,a))};return s.forEach(t=>window.addEventListener(t,a,{passive:!0})),n(),l},triggerByScroll(t,i){var r;let o;let s=(r=()=>{(()=>{let{scrollHeight:t,clientHeight:i,scrollTop:r}=document.documentElement;return r/(t-i)*100})()>=t.display.deliveryTrigger.scroll&&(window.removeEventListener("scroll",s),i?i():this.renderFooterNotification(t))},o=!1,function(){if(!o){for(var t=arguments.length,i=Array(t),s=0;s<t;s++)i[s]=arguments[s];r.apply(this,i),o=!0,setTimeout(()=>{o=!1},200)}});return window.addEventListener("scroll",s,{passive:!0}),()=>window.removeEventListener("scroll",s)},showExitIntent(t,i,r,o){if(t?.clientY>0)return;let s=i||o,n=s.wzrk_id.split("_")[0],a=s.display.layout;if(this.isExistingCampaign(n))return;if(0===s.display.wtarget_type&&(0===a||2===a||3===a||4===a))return this.createTemplate(s,!0),!0;if(!1===this.doCampHouseKeeping(s,rR.logger))return;if(rR.instanceManager.state.dismissSpamControl&&0===s.display.wtarget_type){let t=document.getElementById("intentPreview"),i=document.getElementById("intentOpacityDiv");t&&i&&(t.remove(),i.remove())}if(null!=document.getElementById("intentPreview")||null!=document.getElementById("wzrkImageOnlyDiv")||null==s.display.layout&&(/mobile/i.test(navigator.userAgent)||/mini/i.test(navigator.userAgent)||/iPad/i.test(navigator.userAgent)||"ontouchstart"in window||/tablet/i.test(navigator.userAgent)))return;rR.instanceManager.state.campaignDivMap[n]="intentPreview";let l=!1,d=document.createElement("div");d.id="intentOpacityDiv";let c=`rgba(0,0,0,${s.display.opacity||.7})`;d.setAttribute("style",`position: fixed;top: 0;bottom: 0;left: 0;width: 100%;height: 100%;z-index: 2147483646;background: ${c};`),document.body.appendChild(d);let h=document.createElement("div");h.id="intentPreview",null==s.display.proto?(l=!0,h.setAttribute("style","display:block;overflow:hidden;top:55% !important;left:50% !important;position:fixed;z-index:2147483647;width:600px !important;height:600px !important;margin:-300px 0 0 -300px !important;")):h.setAttribute("style",s.display.iFrameStyle),document.body.appendChild(h);let p=document.createElement("iframe"),u=!1===s.display.br?"0":"8";p.frameborder="0px",p.marginheight="0px",p.marginwidth="0px",p.scrolling="no",p.id="wiz-iframe-intent";let g=s.display.onClick,f,y="";if(""!==g&&null!=g&&(y="cursor:pointer;"),s.display.preview&&s.display["custom-editor"]&&(p.sandbox="allow-scripts allow-popups allow-popups-to-escape-sandbox"),1===s.msgContent.type)f=(f=(f=s.msgContent.html).replace(/##campaignId##/g,n)).replace(/##campaignId_batchId##/g,s.wzrk_id);else{let t,i,r,o;let a='<style type="text/css">body{margin:0;padding:0;}#contentDiv.wzrk{overflow:hidden;padding:0 0 20px 0;text-align:center;'+y+"}#contentDiv.wzrk td{padding:15px 10px;}.wzrkPPtitle{font-weight: bold;font-size: 24px;font-family:arial;word-break: break-word;padding-top:20px;}.wzrkPPdscr{font-size: 14px;font-family:arial;line-height:16px;word-break: break-word;display:inline-block;padding:20px 20px 0 20px;line-height:20px;}.PL15{padding-left:15px;}.wzrkPPwarp{margin:20px 20px 0 5px;padding:0px;border-radius: "+u+"px;box-shadow: 1px 1px 5px #888888;}a.wzrkClose{cursor:pointer;position: absolute;top: 11px;right: 11px;z-index: 2147483647;font-size:19px;font-family:arial;font-weight:bold;text-decoration: none;width: 25px;/*height: 25px;*/text-align: center; -webkit-appearance: none; line-height: 25px;background: #353535;
626border: #fff 2px solid;border-radius: 100%;box-shadow: #777 2px 2px 2px;color:#fff;}a:hover.wzrkClose{background-color:#d1914a !important;color:#fff !important; -webkit-appearance: none;}#contentDiv .button{padding-top:20px;}#contentDiv .button a{font-size: 14px;font-weight:bold;font-family:arial;text-align:center;display:inline-block;text-decoration:none;padding:0 30px;height:40px;line-height:40px;background:#ea693b;color:#fff;border-radius:4px;-webkit-border-radius:4px;-moz-border-radius:4px;}</style>";"dark"===s.display.theme?(t="#2d2d2e",i="#eaeaea",r="#353535"):(t="#ffffff",i="#000000",r="#a5a6a6"),o="#ffffff";let l=s.msgContent.title,d=s.msgContent.description,c="";null!=s.msgContent.ctaText&&""!==s.msgContent.ctaText&&(c="<div class='button'><a href='#'>"+s.msgContent.ctaText+"</a></div>");let h="";null!=s.msgContent.imageUrl&&""!==s.msgContent.imageUrl&&(h="<div style='padding-top:20px;'><img src='"+s.msgContent.imageUrl+"' width='500' alt="+l+" /></div>"),f=a+("<div class='wzrkPPwarp' style='color:"+i+";background-color:"+t+";'><a href='javascript:void(0);' onclick=parent.$WZRK_WR.closeIframe("+n+",'intentPreview'); class='wzrkClose' style='background-color:"+r+";color:"+o+"'>×</a><div id='contentDiv' class='wzrk'><div class='wzrkPPtitle' style='color:"+i)+"'>"+l+"</div>"+("<div class='wzrkPPdscr' style='color:"+i+"'>"+d+"</div>")+h+c+"</div></div>"}p.setAttribute("style","color-scheme: none; z-index: 2147483647; display:block; height: 100% !important; width: 100% !important;min-height:80px !important;border:0px !important; border-color:none !important;"),h.appendChild(p);let m=new Event("CT_campaign_rendered");return document.dispatchEvent(m),s.display["custom-editor"]&&(f=rF(s,f)),rR.instanceManager.storage.readFromLSorCookie(ty)&&(f=rU(s,f)),p.srcdoc=f,p.onload=()=>{let t=document.getElementById("wiz-iframe-intent").contentDocument.getElementById("contentDiv");this.setupClickUrl(g,s,t,"intentPreview",l)},!0},processNativeDisplayArr(t){Object.keys(t).map(i=>{var r,o;t[i].display.divId?(r=t[i].display.divId,o=document.getElementById(r)):(r=t[i].display.divSelector,o=document.querySelector(r)),null!==o&&(2===t[i].msgContent.type?nj(t[i]):nF(t[i]),delete t[i])})},addLoadListener(t){window.addEventListener("load",()=>{let i=0;{let r=setInterval(()=>{this.processNativeDisplayArr(t),0!==Object.keys(t).length&&20!==i||(clearInterval(r),t={}),i++},500)}})},handleInboxNotifications(t){if(t.inbox_preview)nv(t);else if(t.inbox_notifs){let i=[];for(let r=0;r<t.inbox_notifs.length;r++)rZ(t.inbox_notifs[r],rR.region,rR.msg?.arp?.id),!1!==this.doCampHouseKeeping(t.inbox_notifs[r],rR.logger)&&i.push(t.inbox_notifs[r]);nv(i)}},processCampaigns(t,i,r,o){let s={},n=rH.sortCampaignsByPriority(t.inapp_notifs),a={nodes:[],customEvents:[]};for(let t=0;t<n.length;t++){rZ(n[t],rR.region,rR.msg?.arp?.id);let l=n[t];if(0===l.display.wtarget_type||null===l.display.wtarget_type)this.showFooterNotification(l,i,r);else if(1===l.display.wtarget_type){r=l;let t=this.createExitIntentMouseLeaveHandler(l,r);window.document.addEventListener("mouseleave",t)}else if(2===l.display.wtarget_type){if(rH.doesCampaignPushCustomEvent(l)&&a.customEvents.length>0&&rH.shouldCurrentCustomEventCampaignBeSkipped(l,a)){o.debug("Custom Event Campaign Skipped with id :: "+l?.wzrk_id);continue}if(rH.doesCampaignMutateDOMNode(l)&&a.nodes.some(t=>rH.getCampaignNodes(l)?.includes(t))){o.debug("DOM Campaign Skipped with id :: "+l?.wzrk_id);continue}if(rH.doesCampaignPushCustomEvent(l)){let t=l.msgContent.type===tk.KV_PAIR?l.display.kv.topic:null;a.customEvents.push({customEventType:l.msgContent.type,eventTopic:t})}else if(rH.doesCampaignMutateDOMNode(l)){let t=rH.getCampaignNodes(l);a.nodes.push(...t)}l.msgContent.type===tk.KV_PAIR?nU(l):l.msgContent.type===tk.BANNER||l.msgContent.type===tk.CAROUSEL?nH(l,o,s):l.msgContent.type===tk.VISUAL_BUILDER?nB(l,!1):l.msgContent.type===tk.CUSTOM_HTML?nV(l,o):l.msgContent.type===tk.JSON?nW(l):this.showFooterNotification(l,i,r)}}Object.keys(s).length&&("complete"===document.readyState?this.processNativeDisplayArr(s):this.addLoadListener(s))},handleWebInbox(t,i){nS(rR.instanceManager)&&nx(),null===rR.instanceManager.state.inbox?(t.webInboxSetting&&function(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=rR.instanceManager?rR.instanceManager.storage:i3,o=rR.instanceManager?rR.instanceManager.state.inbox:i6.inbox,s=r.readFromLSorCookie(ti)||{};i?o&&(o.inboxConfigForPreview=t,o.isPreview=!0,o.init()):JSON.stringify(s)!==JSON.stringify(t)&&(r.saveToLSorCookie(ti,t),o&&o.init())}(t.webInboxSetting),nk(i,rR.instanceManager).then(()=>{this.handleInboxNotifications(t)}).catch(t=>{})):this.handleInboxNotifications(t)},persistsEventsAndProfileData(t,i){if(rR.instanceManager.storage._isLocalStorageSupported())try{if
626(null!=t.evpr){let i=t.evpr.events,r=t.evpr.profile,o=t.evpr.expires_in,s=tW();rR.instanceManager.storage.setMetaProp("lsTime",s),rR.instanceManager.storage.setMetaProp("exTs",o),(t=>{if(null!=rR.instanceManager.state.globalEventsMap||(rR.instanceManager.state.globalEventsMap=rR.instanceManager.storage.readFromLSorCookie(eq),null!=rR.instanceManager.state.globalEventsMap)){for(let i in t)if(t.hasOwnProperty(i)){let r=rR.instanceManager.state.globalEventsMap[i],o=t[i];null!=rR.instanceManager.state.globalEventsMap[i]?null!=o[0]&&o[0]>r[0]&&(rR.instanceManager.state.globalEventsMap[i]=o):rR.instanceManager.state.globalEventsMap[i]=o}}else rR.instanceManager.state.globalEventsMap=t})(i),rR.instanceManager.storage.saveToLSorCookie(eq,rR.instanceManager.state.globalEventsMap),null==rR.instanceManager.state.globalProfileMap?oI(r,!0):oI(r,!1)}null!=t.arp&&(t=>{if(null!=t.skipResARP&&t.skipResARP)return console.debug("Update ARP Request rejected",t),0;oO(t);let i=!0===t.isOUL;if(i3._isLocalStorageSupported())try{let r=i3.readFromLSorCookie(eJ);if(null==r||i){for(let i in r={},t)t.hasOwnProperty(i)&&(-1===t[i]?delete r[i]:r[i]=t[i]);i3.saveToLSorCookie(eJ,r)}}catch(t){console.error("Unable to parse ARP JSON: "+t)}})(t.arp),null!=t.inapp_stale&&t.inapp_stale.length>0&&rV(t.inapp_stale,"wp"),null!=t.inbox_stale&&t.inbox_stale.length>0&&rV(t.inbox_stale,"wi")}catch(t){i.error("Unable to persist evrp/arp: "+t)}},handleVariables(t){t.vars&&rR.instanceManager.state.variableStore.mergeVariables(t.vars,t.abVariantInfo)}},nK=(t,i)=>{let{device:r,session:o,request:s,logger:n,region:a,instanceManager:l,instance:d}=i,c=0;rR.update(r,o,s,n,t,a,l,d),rq.clearStaleCampaigns(t,n),rq.updateOccurenceForPopupAndNativeDisplay(t,r,n),rq.portTLC(o,n),document.body?(null!=t.inapp_notifs&&nq.processCampaigns(t,!1,void 0,n),(t.webInboxSetting||null!=t.inbox_notifs)&&nq.handleWebInbox(t,n),t.webPushConfig&&((t,i,r,o)=>{let s=o?o.storage:i3,n=o?o.state:i6;o&&(sq=o),s.saveToLSorCookie(tl,!0),n.pushConfig=t,s.saveToLSorCookie(tn,t),t.isPreview&&sY({logger:i,request:r});try{if(s.readFromLSorCookie(td))try{sJ()}catch(t){i.error("processs soft prompt"+t)}}catch(t){i.error("Failed to process web push config:",t),sJ()}})(t.webPushConfig,n,s,l),nq.handleVariables(t),nq.persistsEventsAndProfileData(t,n)):c<6&&(c++,setTimeout(nK,1e3,t,{device:r,session:o,request:s,logger:n,instanceManager:l,instance:d}))};var nZ=eE("isPersonalisationActive");class nG{constructor(t){let{isPersonalisationActive:i}=t;Object.defineProperty(this,nZ,{writable:!0,value:void 0}),eM(this,nZ)[nZ]=i}getTotalVisits(){if(!eM(this,nZ)[nZ]())return;let t=i3.getMetaProp("sc");return null==t&&(t=1),t}getLastVisit(){if(!eM(this,nZ)[nZ]())return;let t=i3.getMetaProp("ps");return null!=t?new Date(1e3*t):void 0}}var nJ=eE("logger"),nQ=eE("sessionId"),nY=eE("isPersonalisationActive"),nX=eE("domainSpecification"),n1=eE("storageManager"),n0=eE("instanceManager"),n2=eE("resetSessionCampaignCounters");class n4{constructor(t){let{logger:i,isPersonalisationActive:r,domainSpecification:o,storageManager:s,instanceManager:n}=t;Object.defineProperty(this,n2,{value:n3}),Object.defineProperty(this,nJ,{writable:!0,value:void 0}),Object.defineProperty(this,nQ,{writable:!0,value:void 0}),Object.defineProperty(this,nY,{writable:!0,value:void 0}),this.cookieName=void 0,this.scookieObj=void 0,Object.defineProperty(this,nX,{writable:!0,value:void 0}),Object.defineProperty(this,n1,{writable:!0,value:void 0}),Object.defineProperty(this,n0,{writable:!0,value:void 0}),this.domainSpecification=o,eM(this,n1)[n1]=s,eM(this,n0)[n0]=n,this.sessionId=eM(this,n1)[n1].getMetaProp("cs"),eM(this,nJ)[nJ]=i,eM(this,nY)[nY]=r}get sessionId(){return eM(this,nQ)[nQ]}set sessionId(t){eM(this,nQ)[nQ]=t}get domainSpecification(){return eM(this,nX)[nX]}set domainSpecification(t){eM(this,nX)[nX]=t}getSessionCookieObject(){let t=eM(this,n1)[n1].readCookie(this.cookieName),i={};if(null!=t)try{if(t=t.replace(eR,'"'),i=tU(t,{}),tO(i)){if(void 0!==i.t){let t=i.t;tW()-t>1260&&(i={})}}else i={}}catch(t){i={}}return this.scookieObj=i,i}setSessionCookieObject(t){let i=JSON.stringify(t);eM(this,n1)[n1].createBroadCookie(this.cookieName,i,1200,rX(),this.domainSpecification)}manageSession(t){if(void 0===this.sessionId||this.sessionId!==t){let i=eM(this,n1)[n1].getMetaProp("cs");if(void 0===i)eM(this,n1)[n1].setMetaProp("ps",t),eM(this,n1)[n1].setMetaProp("cs",t),eM(this,n1)[n1].setMetaProp("sc",1);else if(i!==t){eM(this,n1)[n1].setMetaProp("ps",i),eM(this,n1)[n1].setMetaProp("cs",t);let r=eM(this,n1)[n1].getMetaProp("sc");void 0===r&&(r=0),eM(this,n1)[n1].setMetaProp("sc",r+1),eM(this,n0)[n0]?eM(this,n0)[n0].state.discardedEventsList=null:i6.discardedEventsList=null,eM(this,n2)[n2]()}this.sessionId=t}}getTimeElapsed(){if(!eM(this,nY)[nY]())return;null!=this.scookieObj&&(this.scookieObj=this.getSessionCookieObject());let t=this.scookieObj.s;if(null!=t)return Math.floor(tW()-t)}getPageCount(){if(eM(this,nY)[nY]())return null!=this.scookieObj&&(this.scookieObj=this.getSessionCookieObject()),this.scookieObj.p}}
626function n3(){try{let t=oy();t&&(void 0!==t.wsc&&(t.wsc=0,eM(this,nJ)[nJ].debug("Reset wsc (Web Popup Show Count) to 0 for new session")),void 0!==t.wndsc&&(t.wndsc=0,eM(this,nJ)[nJ].debug("Reset wndsc (Web Native Display Show Count) to 0 for new session")),om(t))}catch(t){eM(this,nJ)[nJ].error("Failed to reset session campaign counters: "+t.message)}}let n6=0;var n5=eE("logger"),n7=eE("account"),n8=eE("device"),n9=eE("session"),ae=eE("isPersonalisationActive"),at=eE("instanceManager"),ai=eE("clearCookie"),ar=eE("seqNo"),ao=eE("requestTime"),as=eE("getNextAvailableReqN"),an=eE("addToLocalEventMap");class aa{constructor(t){let{logger:i,account:r,device:o,session:s,isPersonalisationActive:n,instanceManager:a}=t;Object.defineProperty(this,an,{value:ad}),Object.defineProperty(this,as,{value:al}),Object.defineProperty(this,n5,{writable:!0,value:void 0}),Object.defineProperty(this,n7,{writable:!0,value:void 0}),Object.defineProperty(this,n8,{writable:!0,value:void 0}),Object.defineProperty(this,n9,{writable:!0,value:void 0}),Object.defineProperty(this,ae,{writable:!0,value:void 0}),Object.defineProperty(this,at,{writable:!0,value:void 0}),Object.defineProperty(this,ai,{writable:!0,value:!1}),Object.defineProperty(this,ar,{writable:!0,value:0}),Object.defineProperty(this,ao,{writable:!0,value:0}),this.processingBackup=!1,this.processedBackup=!1,eM(this,n5)[n5]=i,eM(this,n7)[n7]=r,eM(this,n8)[n8]=o,eM(this,n9)[n9]=s,eM(this,ae)[ae]=n,eM(this,at)[at]=a,this.dispatcher=new on({logger:i,device:o,account:r,instanceManager:a})}processBackupEvents(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=eM(this,at)[at].storage.readFromLSorCookie(eQ);if(null!=i){if(this.processingBackup||this.processedBackup)eM(this,n5)[n5].debug("Backup processing already in progress or completed..");else{for(let r in this.processingBackup=!0,i)if(i.hasOwnProperty(r)){let o=i[r];if(void 0!==o.fired)continue;let s=eM(this,at)[at].storage.isBackupOUL(parseInt(r));if(!t||s){if(eM(this,n5)[n5].debug(`Processing ${s?"OUL":"regular"} backup event : ${o.q}`),void 0!==o.q){let t=tU(eM(this,at)[at].storage.readCookie("WZRK_S_"+eM(this,n7)[n7].id),null);t?.s&&(o.q=o.q+"&s="+t.s),window.$WZRK_WR&&window.$WZRK_WR._apiMap&&this.dispatcher&&this.dispatcher.api&&(window.$WZRK_WR._apiMap[parseInt(r)]=this.dispatcher.api),this.dispatcher.fireRequest(o.q)}
626else eM(this,n5)[n5].error("Backup event is malformed.. removing from backup",o),eM(this,at)[at].storage.removeBackup(r,eM(this,n5)[n5])}}eM(this,at)[at].storage.saveToLSorCookie(eQ,i),this.processingBackup=!1,this.processedBackup=!0}}}addSystemDataToObject(t,i){void 0===i&&(t=tj(t,eM(this,n5)[n5])),tN(eM(this,n5)[n5].wzrkError)||(t.wzrk_error=eM(this,n5)[n5].wzrkError,eM(this,n5)[n5].wzrkError={}),t.id=eM(this,n7)[n7].id,tR(eM(this,n8)[n8].gcookie)&&(t.g=eM(this,n8)[n8].gcookie);let r=eM(this,n9)[n9].getSessionCookieObject();t.s=r.s,t.pg=void 0===r.p?1:r.p;let o=document.location.protocol;o=o.replace(":","");let s=eM(this,at)[at].state.locale;t.af={...t.af,lib:"web-sdk-v3.0.0",protocol:o,...eM(this,at)[at].state.flutterVersion,...s&&{locale:s}};try{(sessionStorage.hasOwnProperty("WZRK_D")||sessionStorage.getItem("WZRK_D"))&&(t.debug=!0)}catch(t){eM(this,n5)[n5].debug("Error in reading WZRK_D from session storage")}return t}addFlags(t){if(eM(this,ai)[ai]=eM(this,at)[at].storage.getAndClearMetaProp(ej),void 0!==eM(this,ai)[ai]&&eM(this,ai)[ai]&&(t.rc=!0,eM(this,n5)[n5].debug("reset cookie sent in request and cleared from meta for future requests.")),eM(this,ae)[ae]()){let i=eM(this,at)[at].storage.getMetaProp("lsTime"),r=eM(this,at)[at].storage.getMetaProp("exTs");if(void 0===i||void 0===r)return void(t.dsync=!0);i+r<tW()&&(t.dsync=!0)}}saveAndFireRequest(t,i,r,o){let s=eM(this,at)[at].storage.readFromLSorCookie(tv);if(s&&s>0&&Date.now()<s)return void eM(this,n5)[n5].debug("Request dropped - SDK is muted");let n=tW(),a=eM(this,as)[as]();0===eM(this,at)[at].state.globalCache.REQ_N&&(eM(this,at)[at].state.globalCache.RESP_N=a-1),eM(this,at)[at].state.globalCache.REQ_N=a,window.$WZRK_WR&&window.$WZRK_WR._apiMap&&this.dispatcher&&this.dispatcher.api&&(window.$WZRK_WR._apiMap[a]=this.dispatcher.api);let l=(t=rY(t,"rn",a))+"&i="+n+"&sn="+eM(this,ar)[ar];eM(this,at)[at].storage.backupEvent(l,a,eM(this,n5)[n5]),r&&eM(this,at)[at].storage.markBackupAsOUL(a),eM(this,at)[at].state.offline||eM(this,at)[at].state.delayEvents||(i&&(void 0===eM(this,ai)[ai]||!eM(this,ai)[ai])||eM(this,at)[at].isOULInProgress?eM(this,n5)[n5].debug(`Not fired due to override - ${eM(this,at)[at].state.blockRequest} or clearCookie - ${eM(this,ai)[ai]} or OUL request in progress - ${eM(this,at)[at].isOULInProgress}`):(n===eM(this,ao)[ao]?eM(this,ar)[ar]++:(eM(this,ao)[ao]=n,eM(this,ar)[ar]=0),r&&(eM(this,at)[at].oulReqN=a),this.dispatcher.fireRequest(l,!1,r,o)))}unregisterTokenForGuid(t){let i=eM(this,at)[at].storage.readFromLSorCookie(e7);if(i){let i={type:"data"};tR(t)&&(i.g=t),i.action="unregister",i.id=eM(this,n7)[n7].id;let r=eM(this,n9)[n9].getSessionCookieObject();i.s=r.s;let o=rN(JSON.stringify(i),eM(this,n5)[n5]),s=eM(this,n7)[n7].dataPostURL;s=rY(s,"type","data"),s=rY(s,"d",o),this.dispatcher.fireRequest(s,!0),eM(this,at)[at].storage.saveToLSorCookie(e5,!1)}this.registerToken(i)}registerToken(t){if(!t)return;t=JSON.stringify(t=this.addSystemDataToObject(t,!0));let i=eM(this,n7)[n7].dataPostURL;i=rY(i,"type","data"),i=rY(i,"d",rN(t,eM(this,n5)[n5])),this.dispatcher.fireRequest(i),eM(this,at)[at].storage.save("WZRK_WPR","ok")}processEvent(t){eM(this,an)[an](t.evtName),t=this.addSystemDataToObject(t,void 0),this.addFlags(t),t.WZRK_CAMP=ow();let i=rN(JSON.stringify(t),eM(this,n5)[n5]),r=eM(this,n7)[n7].dataPostURL;r=rY(r,"type",e0),r=rY(r,"d",i),this.saveAndFireRequest(r,eM(this,at)[at].state.blockRequest,!1,t.evtName)}post(t,i){return fetch(t,{method:"post",headers:{"Content-Type":"application/json"},body:i}).then(t=>{if(t.ok)return t.json();throw t}).then(t=>(eM(this,n5)[n5].debug("Sync data successful",t),t)).catch(t=>{throw eM(this,n5)[n5].debug("Error in syncing variables",t),t})}}function al(){let t=eM(this,at)[at].storage.readFromLSorCookie(eQ),i=++n6;
626if(i<=eM(this,at)[at].state.globalCache.REQ_N&&(n6=i=eM(this,at)[at].state.globalCache.REQ_N+1),!t||"object"!=typeof t)return i;for(;t.hasOwnProperty(i.toString());)n6=++i,eM(this,n5)[n5].debug(`Request number ${i-1} already exists in backup, trying ${i}`);return eM(this,n5)[n5].debug(`Using request number: ${i}`),i}function ad(t){if(eM(this,at)[at].storage._isLocalStorageSupported()){void 0===eM(this,at)[at].state.globalEventsMap&&(eM(this,at)[at].state.globalEventsMap=eM(this,at)[at].storage.readFromLSorCookie(eq),void 0===eM(this,at)[at].state.globalEventsMap&&(eM(this,at)[at].state.globalEventsMap={}));let i=tW(),r=eM(this,at)[at].state.globalEventsMap[t];void 0!==r?(r[2]=i,r[0]++):((r=[]).push(1),r.push(i),r.push(i)),eM(this,at)[at].state.globalEventsMap[t]=r,eM(this,at)[at].storage.saveToLSorCookie(eq,eM(this,at)[at].state.globalEventsMap)}}var ac=eE("request"),ah=eE("account"),ap=eE("oldValues"),au=eE("logger"),ag=eE("instanceManager"),af=eE("processPrivacyArray");class ay extends Array{constructor(t,i){let{request:r,account:o,logger:s,instanceManager:n}=t;super(),Object.defineProperty(this,af,{value:am}),Object.defineProperty(this,ac,{writable:!0,value:void 0}),Object.defineProperty(this,ah,{writable:!0,value:void 0}),Object.defineProperty(this,ap,{writable:!0,value:void 0}),Object.defineProperty(this,au,{writable:!0,value:void 0}),Object.defineProperty(this,ag,{writable:!0,value:void 0}),eM(this,au)[au]=s,eM(this,ac)[ac]=r,eM(this,ah)[ah]=o,eM(this,ap)[ap]=i,eM(this,ag)[ag]=n}push(){for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return eM(this,ag)[ag].state.isPrivacyArrPushed?eM(this,af)[af](eM(this,ag)[ag].state.privacyArray.length>0?eM(this,ag)[ag].state.privacyArray:i):eM(this,ag)[ag].state.privacyArray.push(...i),0}_processOldValues(){eM(this,ap)[ap]&&eM(this,af)[af](eM(this,ap)[ap]),eM(this,ap)[ap]=null}}function am(t){if(Array.isArray(t)&&t.length>0){let r=t.reduce((t,i)=>({...t,...i}),{}),o={},s={};var i=!1;if(r.hasOwnProperty(eY)&&"boolean"==typeof(i=r.optOut)&&(s.ct_optout=i,eM(this,ag)[ag].state.isOptInRequest=!i),r.hasOwnProperty(eX)){let t=r.useIP;eM(this,ag)[ag].storage.setMetaProp(eX,"boolean"==typeof t&&t)}if(!tN(s)){o.type="profile",o.profile=s;let r=rN(JSON.stringify(o=eM(this,ac)[ac].addSystemDataToObject(o,void 0)),eM(this,au)[au]),n=eM(this,ah)[ah].dataPostURL;n=rY(n,"type",e0),n=rY(n,"d",r),n=rY(n,eY,i?"true":"false"),eM(this,ac)[ac].saveAndFireRequest(n,eM(this,ag)[ag].state.blockRequest),t.splice(0,t.length)}}}var av=eE("variableStore");class ab{constructor(t){let{variableStore:i}=t;Object.defineProperty(this,av,{writable:!0,value:void 0}),this.name=null,this.defaultValue=null,this.value=null,this.type=null,this.hadStarted=!1,this.valueChangedCallbacks=[],eM(this,av)[av]=i}getValue(){return this.value}getdefaultValue(){return this.defaultValue}static define(t,i,r,o){if(!t||"string"!=typeof t)return o.error("Empty or invalid name parameter provided."),null;if(t.startsWith(".")||t.endsWith("."))return o.error("Variable name starts or ends with a `.` which is not allowed: "+t),null;let s=typeof i;if("string"!==s&&"number"!==s&&"boolean"!==s&&"object"!==s)return o.error("Only (string, number, boolean, objects) are accepted as value"),null;if("object"===s&&o3(i))return o.error("Nested arrays/functions are not supported in JSON variables"),null;let n=r.getVariable(t);if(n)return n;let a=new ab({variableStore:r});try{a.name=t,a.defaultValue=i,a.value=i,a.type=s,r.registerVariable(a),a.update(i)}catch(t){o.error(t)}return a}static defineFileVar(t,i,r){if(!t||"string"!=typeof t||t.startsWith(".")||t.endsWith("."))return r.error("Empty or invalid name parameter provided."),null;let o=new ab({variableStore:i});try{o.name=t,o.defaultValue="",o.type="file",i.registerVariable(o),o.update(o.defaultValue)}catch(t){r.error(t)}return o}update(t){let i=this.value;this.value=t,null===t&&null===i||null!==t&&t===i&&this.hadStarted||eM(this,av)[av].hasVarsRequestCompleted()&&(this.hadStarted=!0,this.triggerValueChanged())}triggerValueChanged(){this.valueChangedCallbacks.forEach(t=>{t(this)})}addValueChangedCallback(t,i){t?(this.valueChangedCallbacks.push(t),eM(this,av)[av].hasVarsRequestCompleted()&&t(this)):i.log("Invalid callback parameter provided.")}removeValueChangedCallback(t){let i=this.valueChangedCallbacks.indexOf(t);-1!==i&&this.valueChangedCallbacks.splice(i,1)}clearStartFlag(){this.hadStarted=!1}}var aw=eE("logger"),aC=eE("account"),ak=eE("request"),ax=eE("event"),aI=eE("storage"),a_=eE("variables"),aS=eE("remoteVariables"),aE=eE("fetchCallback"),aM=eE("variablesChangedCallbacks"),aP=eE("oneTimeVariablesChangedCallbacks"),aA=eE("hasVarsRequestCompleted"),aL=eE("abVariantInfo"),aT=eE("runVariablesChangedCallback");class aO{constructor(t){let{logger:i,request:r,account:o,event:s,instanceManager:n}=t;Object.defineProperty(this,aT,{value:aD}),Object.defineProperty(this,aw,{writable:!0,value:void 0}),Object.defineProperty(this,aC,{writable:!0,value:void 0}),Object.defineProperty(this,ak,{writable:!0,value:void 0}),Object.defineProperty(this,ax,{writable:!0,value:void 0}),Object.defineProperty(this,aI,{writable:!0,value:void 0}),Object.defineProperty(this,a_,{writable:!0,value:void 0}),Object.defineProperty(this,aS,{writable:!0,value:void 0}),Object.defineProperty(this,aE,{writable:!0,value:void 0}),Object.defineProperty(this,aM,{writable:!0,value:void 0}),Object.defineProperty(this,aP,{writable:!0,value:void 0}),Object.defineProperty(this,aA,{writable:!0,value:!1}),Object.defineProperty(this,aL,{writable:!0,value:[]}),eM(this,aw)[aw]=i,eM(this,aC)[aC]=o,eM(this,ak)[ak]=r,eM(this,ax)[ax]=s,eM(this,aI)[aI]=n?n.storage:i3,eM(this,a_)[a_]={},eM(this,aS)[aS]={},eM(this,aM)[aM]=[],eM(this,aP)[aP]=[]}registerVariable(t){let{name:i}=t;eM(this,a_)[a_][i]=t,eM(this,aw)[aw].debug("registerVariable",eM(this,a_)[a_])}getVariable(t){return eM(this,a_)[a_][t]}hasVarsRequestCompleted(){return eM(this,aA)[aA]}getVariants(){return eM(this,aL)[aL]}syncVariables(t,i){if(!eM(this,aC)[aC].token){let t="Account token is missing.";return eM(this,aw)[aw].error(t),Promise.reject(Error(t))}let r={type:"varsPayload",vars:{}};for(let t in eM(this,a_)[a_])if("object"==typeof eM(this,a_)[a_][t].defaultValue){let i=o6({[eM(this,a_)[a_][t]?.name]:eM(this,a_)[a_][t].defaultValue});for(let t in i)r.vars[t]={defaultValue:i[t].defaultValue,type:i[t].type}}else"file"===eM(this,a_)[a_][t].type?r.vars[t]={type:eM(this,a_)[a_][t].type}:r.vars[t]={defaultValue:eM(this,a_)[a_][t].defaultValue,type:eM(this,a_)[a_][t].type};if(0===Object.keys(r.vars).length){let t="No variables are defined.";return eM(this,aw)[aw].error(t),Promise.reject(Error(t))}let o={};(o=eM(this,ak)[ak].addSystemDataToObject(o,void 0)).tk=eM(this,aC)[aC].token,o.type="meta";let s=JSON.stringify([o,r]),n=eM(this,aC)[aC].dataPostPEURL;return eM(this,ak)[ak].post(n,s).then(i=>(t&&"function"==typeof t&&t(i),i)).catch(t=>{throw i&&"function"==typeof i&&i(t),400===t.status?eM(this,aw)[aw].error("Invalid sync payload or clear the existing draft"):401===t.status?eM(this,aw)[aw].error("This is not a test profile"):eM(this,aw)[aw].error("Sync variable failed"),t})}fetchVariables(t){eM(this,ax)[ax].push(ts,{t:4}),t&&"function"==typeof t&&(eM(this,aE)[aE]=t)}mergeVariables(t,i){for(let r in eM(this,aw)[aw].debug("msg vars is ",t),eM(this,aA)[aA]=!0,eM(this,aI)[aI].saveToLSorCookie(to,t),eM(this,aS)[aS]=t,Array.isArray(i)&&(eM(this,aL)[aL]=i),eM(this,a_)[a_])t.hasOwnProperty(r)&&eM(this,a_)[a_][r].update(t[r]);eM(this,aE)[aE]&&eM(this,aE)[aE](),eM(this,aT)[aT]()}addVariablesChangedCallback(t){t&&"function"==typeof t?(eM(this,aM)[aM].push(t),this.hasVarsRequestCompleted()&&t()):eM(this,aw)[aw].error("callback is not a function")}addOneTimeVariablesChangedCallback(t){t&&"function"==typeof t&&(this.hasVarsRequestCompleted()?t():eM(this,aP)[aP].push(t))}removeVariablesChangedCallback(t){let i=eM(this,aM)[aM].indexOf(t);-1!==i&&eM(this,aM)[aM].splice(i,1)}removeOneTimeVariablesChangedCallback(t){let i=eM(this,aP)[aP].indexOf(t);-1!==i&&eM(this,aP)[aP].splice(i,1)}}function aD(){for(var t of eM(this,aM)[aM])t();for(var i of eM(this,aP)[aP])i();eM(this,aP)[aP].length=0}class aN{constructor(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.id=t,this.isDefault=i,this.state={globalCache:{gcookie:null,REQ_N:0,RESP_N:0},LRU_CACHE:null,globalProfileMap:void 0,globalEventsMap:void 0,blockRequest:!1,isOptInRequest:!1,broadDomain:null,webPushEnabled:null,campaignDivMap:{},currentSessionId:null,wiz_counter:0,notifApi:{notifEnabledFromApi:!1},unsubGroups:[],updatedCategoryLong:null,inbox:null,isPrivacyArrPushed:!1,privacyArray:[],offline:!1,location:null,dismissSpamControl:!0,globalUnsubscribe:!0,flutterVersion:null,variableStore:{},pushConfig:null,delayEvents:!1,intervalArray:[],enableTVNavigation:!1,locale:null},this.isOULInProgress=!1,this.oulReqN=0,this.enableFetchApi=!1,this.enableEncryptionInTransit=!1,this.storage=null,this.logger=null}}class aB{constructor(t,i,r){this.accountId=t,this.isDefault=i,this.encryption=r,this.globalCache={gcookie:null,REQ_N:0,RESP_N:0}}_prefixKey(t){return this.isDefault?t:this.accountId+":"+t}save(t,i){if(!t||!i)return!1;let r=this._prefixKey(t);return this._isLocalStorageSupported()?(this.encryption.shouldEncrypt(t)?localStorage.setItem(r,this.encryption.encrypt
626(i)):localStorage.setItem(r,"string"==typeof i?i:JSON.stringify(i)),!0):void 0}read(t){if(!t)return!1;let i=this._prefixKey(t),r=null;if(this._isLocalStorageSupported()&&(r=localStorage.getItem(i)),null!=r)try{this.encryption.shouldDecrypt(t)&&(r=this.encryption.decrypt(r)),r=JSON.parse(r)}catch(t){}return r}remove(t){if(!t)return!1;let i=this._prefixKey(t);return delete this.globalCache[t],this._isLocalStorageSupported()?(localStorage.removeItem(i),!0):void 0}removeCookie(t,i){let r=this._prefixKey(t)+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT;";i&&(r=r+" domain="+i+"; path=/"),document.cookie=r}createCookie(t,i,r,o){let s=this._prefixKey(t),n="",a="";if(r){let t=new Date;t.setTime(t.getTime()+1e3*r),n="; expires="+t.toGMTString()}o&&(a="; domain="+o),i=encodeURIComponent(i),document.cookie=s+"="+i+n+a+"; path=/"}readCookie(t){let i=this._prefixKey(t)+"=",r=document.cookie.split(";");for(let t=0;t<r.length;t++){let o=r[t];for(;" "===o.charAt(0);)o=o.substring(1,o.length);if(0==o.indexOf(i))try{return decodeURIComponent(o.substring(i.length,o.length))}catch(t){break}}return null}saveToLSorCookie(t,i){if(null!=i)try{this._isLocalStorageSupported()?this.save(t,encodeURIComponent(JSON.stringify(i))):t===eV?this.createCookie(t,encodeURIComponent(i),0,window.location.hostname):this.createCookie(t,encodeURIComponent(JSON.stringify(i)),0,window.location.hostname),this.globalCache[t]=i}catch(t){}}readFromLSorCookie(t){let i;if(this.globalCache.hasOwnProperty(t))return this.globalCache[t];if(null!=(i=this._isLocalStorageSupported()?this.read(t):this.readCookie(t))&&("function"!=typeof i.trim||""!==i.trim())){let r;try{r=JSON.parse(decodeURIComponent(i))}catch(t){r=decodeURIComponent(i)}return this.globalCache[t]=r,r}}createBroadCookie(t,i,r,o){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,n=this._broadDomain||null;if(s){let o=window.location.hostname.split("."),a="";a=s<=o.length?"."+o.slice(-s).join("."):"."+window.location.hostname;let l=i;return t===eV&&this.readCookie(t)&&(l=this.readCookie(t),this.removeCookie(t,n),this.removeCookie(t,a),this.removeCookie(t,".bank.in")),this.createCookie(t,l,r,a),n}if(this.readFromLSorCookie(tm))return n&&this.removeCookie(t,n),this.createCookie(t,i,r,o),n;if(o){if(null==n){let s=o.split("."),l="";for(let o=s.length-1;o>=0;o--){if(l=0===o?s[o]+l:"."+s[o]+l,this.readCookie(t)){var a="test_"+t+o;if(this.createCookie(a,i,10,l),!this.readCookie(a))continue;this.removeCookie(a,l)}if(this.createCookie(t,i,r,l),this.readCookie(t)==i){n=l,this._broadDomain=n;break}}}else this.createCookie(t,i,r,n)}else this.createCookie(t,i,r,o);return n}getMetaProp(t){let i=this.readFromLSorCookie(eK);if(null!=i)return i[t]}setMetaProp(t,i){if(this._isLocalStorageSupported()){let r=this.readFromLSorCookie(eK);null==r&&(r={}),void 0===i?delete r[t]:r[t]=i,this.saveToLSorCookie(eK,r)}}getAndClearMetaProp(t){let i=this.getMetaProp(t);return this.setMetaProp(t,void 0),i}setInstantDeleteFlagInK(){let t=this.readFromLSorCookie(eW);null==t&&(t={}),t.flag=!0,this.saveToLSorCookie(eW,t)}backupEvent(t,i,r){let o=this.readFromLSorCookie(eQ);void 0===o&&(o={}),o[i]={q:t},this.saveToLSorCookie(eQ,o),r.debug(`stored in WZRK_L reqNo : ${i} -> ${t}`)}markBackupAsOUL(t){let i=this.getMetaProp("OUL_REQUESTS")||[];i.includes(t)||(i.push(t),this.setMetaProp("OUL_REQUESTS",i))}isBackupOUL(t){return(this.getMetaProp("OUL_REQUESTS")||[]).includes(t)}removeBackup(t,i){let r=this.readFromLSorCookie(eQ);null!=r&&void 0!==r[t]&&(i.debug(`del event: ${t} data-> ${r[t].q}`),delete r[t],this.saveToLSorCookie(eQ,r))}_isLocalStorageSupported(){return"localStorage"in window&&null!==window.localStorage&&"function"==typeof window.localStorage.setItem}}class az{constructor(t){if(az.instance)return az.instance;this.logger=t,this.isEnabled=!1,this.currentMenu=null,this.focusableElements=[],this.currentFocusIndex=0,this.shadowNavigation=null,this.inboxNav=null,this.keyMappings={up:38,down:40,left:37,right:39,enter:13,back:10009,exit:10182,webosBack:461,webosExit:27},this.platform=this.detectTVPlatform(),this.logger.debug("TV Platform detected:",this.platform),az.instance=this}static getInstance(t){return az.instance||(az.instance=new az(t)),az.instance}setLogger(t){this.logger=t}detectTVPlatform(){return void 0!==window.tizen?"tizen":void 0!==window.webOS?"webos":void 0!==window.Samsung?"samsung":void 0!==window.androidTV?"androidtv":navigator.userAgent.includes("SMART-TV")||navigator.userAgent.includes("SmartTV")?"smarttv":"browser"}init(){if(this.isEnabled)return;this.isEnabled=!0,this.setupPlatformSpecificKeys(),this.setupKeyHandler(),this.addFocusStyles();let t=()=>{this.findFocusableElements(),this.focusableElements.length>0&&this.focusElement(0),this.logger.debug(`TV Navigation initialized: ${this.focusableElements.length} elements`)};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",t):setTimeout(t,100)}
vendor: 5,523 bytes, line 626
626setupPlatformSpecificKeys(){try{switch(this.platform){case"tizen":window.tizen&&window.tizen.tvinputdevice&&(window.tizen.tvinputdevice.registerKey("ColorF0Red"),window.tizen.tvinputdevice.registerKey("ColorF1Green"),window.tizen.tvinputdevice.registerKey("ColorF2Yellow"),window.tizen.tvinputdevice.registerKey("ColorF3Blue"),this.logger.debug("Tizen TV keys registered"));break;case"webos":this.logger.debug("webOS TV keys ready");break;case"samsung":this.logger.debug("Samsung TV keys ready");break;default:this.logger.debug("Generic TV key setup")}}catch(t){this.logger.debug("Could not register platform-specific keys:",t.message)}}findFocusableElements(){this.focusableElements=Array.from(document.querySelectorAll('button, [role="button"], input[type="button"], input[type="submit"], a[href], select, textarea, input:not([type="hidden"]):not([disabled]), [tabindex]:not([tabindex="-1"]), [data-list-item]')).filter(t=>{let i=window.getComputedStyle(t);return"none"!==i.display&&"hidden"!==i.visibility&&null!==t.offsetParent})}setupKeyHandler(){this.keyHandler&&document.removeEventListener("keydown",this.keyHandler,{capture:!0}),this.keyHandler=t=>{this.isEnabled&&this.handleKeyPress(t)},document.addEventListener("keydown",this.keyHandler,{capture:!0,passive:!1})}handleKeyPress(t){try{if(i6&&i6.inbox&&i6.inbox.isInboxOpen)return void this.handleInboxNavigation(t)}catch(t){}let i=document.querySelector('iframe[id^="wiz-iframe"]')||document.querySelector('iframe[id="wiz-iframe-intent"]');if(i)return void this.forwardToIframe(t,i);let r=document.querySelector("ct-web-popup-imageonly")||document.querySelector("#wzrkImageOnlyDiv ct-web-popup-imageonly")||document.querySelector('#wzrkImageOnlyDiv[style*="visible"]');if(r){let i=document.getElementById("wzrkImageOnlyDiv");if(i&&(!i.style.display||"none"!==i.style.display))return void this.handleShadowDOMNavigation(t,r)}this.handleMainPageNavigation(t)}forwardToIframe(t,i){this.focusableElements[this.currentFocusIndex]&&this.focusableElements[this.currentFocusIndex].classList.remove("ct-tv-focused"),this.logger.debug("Forwarding key event to popup iframe:",t.keyCode);try{let r=i.contentWindow,o=new KeyboardEvent("keydown",{keyCode:t.keyCode,which:t.keyCode,bubbles:!0,cancelable:!0});r.document.dispatchEvent(o)}catch(t){this.logger.error("Could not forward event to iframe:",t)}t.preventDefault(),t.stopPropagation()}handleShadowDOMNavigation(t,i){switch(this.focusableElements[this.currentFocusIndex]&&this.focusableElements[this.currentFocusIndex].classList.remove("ct-tv-focused"),this.shadowNavigation||this.initShadowNavigation(i),t.preventDefault(),t.stopPropagation(),t.keyCode){case this.keyMappings.up:case this.keyMappings.left:this.navigateShadow("prev");break;case this.keyMappings.down:case this.keyMappings.right:this.navigateShadow("next");break;case this.keyMappings.enter:this.activateShadow();break;case this.keyMappings.back:case this.keyMappings.exit:case this.keyMappings.webosBack:case this.keyMappings.webosExit:this.closeShadowPopup()}}initShadowNavigation(t){try{let i=null;if(t.getShadowRoot?(this.logger.debug("Using getShadowRoot method"),i=t.getShadowRoot()):t.shadowRoot?(this.logger.debug("Using shadowRoot property"),i=t.shadowRoot):t.shadow&&(this.logger.debug("Using shadow property"),i=t.shadow),!i){let t=document.querySelector("ct-web-popup-imageonly");this.logger.debug("Alternative ct-element:",t),t&&t.shadowRoot&&(i=t.shadowRoot,this.logger.debug("Found shadow root via alternative method"))}if(!i)return void this.logger.debug("Still no shadow root found");this.shadowNavigation={focusableElements:[],currentFocusIndex:0,shadowRoot:i},this.shadowNavigation.focusableElements=Array.from(i.querySelectorAll('button, [role="button"], .close, img[src], [tabindex]:not([tabindex="-1"])')).filter(t=>{let i=window.getComputedStyle(t);return"none"!==i.display&&"hidden"!==i.visibility}),this.injectFocusStyle(i,"ct-tv-shadow-styles"),this.shadowNavigation.focusableElements.length>0&&this.focusShadowElement(0)}catch(t){this.logger.error("Could not initialize shadow DOM navigation:",t)}}navigateShadow(t){if(!this.shadowNavigation||0===this.shadowNavigation.focusableElements.length)return;let i=this.shadowNavigation.currentFocusIndex;"prev"===t?i=Math.max(0,this.shadowNavigation.currentFocusIndex-1):"next"===t&&(i=Math.min(this.shadowNavigation.focusableElements.length-1,this.shadowNavigation.currentFocusIndex+1)),i!==this.shadowNavigation.currentFocusIndex&&this.focusShadowElement(i)}focusShadowElement(t){if(!this.shadowNavigation)return;this.shadowNavigation.focusableElements[this.shadowNavigation.currentFocusIndex]&&this.shadowNavigation.focusableElements[this.shadowNavigation.currentFocusIndex].classList.remove("ct-tv-focused"),this.shadowNavigation.currentFocusIndex=t;let i=this.shadowNavigation.focusableElements[this.shadowNavigation.currentFocusIndex];i&&(i.classList.add("ct-tv-focused"),this.logger.debug("Shadow DOM focused:",i.tagName,i.className))}activateShadow(){if(!this.shadowNavigation)return;let t=this.shadowNavigation.focusableElements[this.shadowNavigation.currentFocusIndex];t&&t.click()}closeShadowPopup(){if(!this.shadowNavigation)return;let t=this.shadowNavigation.shadowRoot.querySelector(".close");t&&t.click(),this.shadowNavigation=null}handleInboxNavigation(t){this.focusableElements[this.currentFocusIndex]&&this.focusableElements[this.currentFocusIndex].classList.remove("ct-tv-focused"),this.inboxNav||this.initInboxNavigation(),t.preventDefault(),t.stopPropagation();
626let{up:i,down:r,left:o,right:s,enter:n,back:a,exit:l,webosBack:d,webosExit:c}=this.keyMappings;switch(t.keyCode){case i:this.navigateInbox(-1,"vertical");break;case r:this.navigateInbox(1,"vertical");break;case o:this.navigateInbox(-1,"horizontal");break;case s:this.navigateInbox(1,"horizontal");break;case n:this.activateInboxElement();break;case a:case l:case d:case c:this.closeInbox()}}initInboxNavigation(){let t=i6.inbox;t?.shadowRoot?(this.inboxNav={shadowRoot:t.shadowRoot,elements:[],index:0,ctaFocused:!1,ctaIndex:0},this.refreshInboxElements(),this.injectInboxStyles(),this.inboxNav.elements.length>0&&this.focusInboxElement(0),this.logger.debug(`Web Inbox navigation initialized: ${this.inboxNav.elements.length} elements`)):this.logger.debug("Web Inbox shadow root not found")}refreshInboxElements(){if(!this.inboxNav)return;let t=this.inboxNav.shadowRoot,i=[],r=t.getElementById("closeInbox");r&&i.push({el:r,type:"close"});let o=t.getElementById("categoriesWrapper");o&&o.querySelectorAll('[id^="category-"]').forEach(t=>{this.isVisible(t)&&i.push({el:t,type:"category"})});let s=t.getElementById("inboxCard");s&&s.querySelectorAll("ct-inbox-message").forEach(t=>{this.isVisible(t)&&(i.push({el:t,type:"message"}),this.injectMessageStyles(t))}),this.inboxNav.elements=i}navigateInbox(t,i){if(!this.inboxNav)return;this.refreshInboxElements();let{elements:r,index:o,ctaFocused:s,ctaIndex:n}=this.inboxNav;if(0===r.length)return;let a=r[o],l=o;if("message"===a?.type){let d=this.getMessageCTAs(a.el),c=d.length>1;if(s&&d.length>0){if("horizontal"===i){if(t>0&&c&&n<d.length-1)return this.unfocusCTA(d[n]),this.inboxNav.ctaIndex=n+1,this.focusCTA(d[this.inboxNav.ctaIndex]),void this.logger.debug(`CTA focus moved to button ${this.inboxNav.ctaIndex+1}`);if(t<0&&n>0)return this.unfocusCTA(d[n]),this.inboxNav.ctaIndex=n-1,this.focusCTA(d[this.inboxNav.ctaIndex]),void this.logger.debug(`CTA focus moved to button ${this.inboxNav.ctaIndex+1}`);if(t<0&&0===n)return void this.focusInboxElement(o,!1)}else if("vertical"===i){if(t<0)return void this.focusInboxElement(o,!1);if(t>0)return this.unfocusAllCTAs(a.el),this.inboxNav.ctaFocused=!1,this.inboxNav.ctaIndex=0,void((l=Math.min(r.length-1,o+1))!==o&&this.focusInboxElement(l,!1))}}else if(!s&&d.length>0&&("vertical"===i&&t>0||"horizontal"===i&&t>0))return this.inboxNav.ctaIndex=0,void this.focusInboxElement(o,!0)}if(s&&"message"===a?.type&&(this.unfocusAllCTAs(a.el),this.inboxNav.ctaFocused=!1,this.inboxNav.ctaIndex=0),"vertical"===i)l=Math.max(0,Math.min(r.length-1,o+t));else if("category"===a?.type){for(let i=o+t;i>=0&&i<r.length;i+=t)if("category"===r[i].type){l=i;break}}l!==o&&this.focusInboxElement(l,!1)}getMessageCTAs(t){if(!t?.shadowRoot)return[];let i=t.shadowRoot.querySelectorAll(".ct-inbox-cta button")||t.shadowRoot.querySelectorAll('button[class*="cta"]')||t.shadowRoot.querySelectorAll(".jsCTAButton");return i&&0!==i.length?Array.from(i).filter(t=>null!==t.offsetParent):Array.from(t.shadowRoot.querySelectorAll("button")).filter(t=>!t.classList.contains("close")&&null!==t.offsetParent)}getMessageCTA(t){let i=this.getMessageCTAs(t);return i.length>0?i[0]:null}focusCTA(t){t&&(t.classList.add("ct-tv-focused"),t.scrollIntoView({behavior:"smooth",block:"nearest"}),this.logger.debug("Inbox CTA focused"))}unfocusCTA(t){t&&t.classList.remove("ct-tv-focused")}unfocusAllCTAs(t){this.getMessageCTAs(t).forEach(t=>this.unfocusCTA(t))}focusInboxElement(t){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!this.inboxNav)return;let{elements:r}=this.inboxNav;if(t<0||t>=r.length)return;let o=r[this.inboxNav.index];o&&o.el&&(o.el.classList.remove("ct-tv-focused"),"message"===o.type&&this.unfocusAllCTAs(o.el)),this.inboxNav.index=t,this.inboxNav.ctaFocused=!1;let s=r[t];if(s?.el){if(i&&"message"===s.type){let t=this.getMessageCTAs(s.el),i=this.inboxNav.ctaIndex||0;if(t.length>0&&t[i])return this.focusCTA(t[i]),this.inboxNav.ctaFocused=!0,void this.logger.debug(`Inbox focus: CTA button ${i+1} of ${t.length}`)}this.inboxNav.ctaIndex=0,s.el.classList.add("ct-tv-focused"),s.el.scrollIntoView({behavior:"smooth",block:"nearest"}),this.logger.debug(`Inbox focus: ${s.type}`,s.el.id||"")}}activateInboxElement(){if(!this.inboxNav)return;let t=this.inboxNav.elements[this.inboxNav.index];if(!t?.el)return;this.logger.debug("Inbox activate:",t.type,"CTA focused:",this.inboxNav.ctaFocused);let i=i6.inbox;
626switch(t.type){case"close":this.closeInbox();break;case"category":i&&(i.prevCategoryRef=i.selectedCategoryRef,i.selectedCategoryRef=t.el,i.updateActiveCategory(t.el.innerText),setTimeout(()=>{this.refreshInboxElements(),this.injectInboxStyles();let i=this.inboxNav.elements.findIndex(i=>i.el===t.el);this.focusInboxElement(i>=0?i:0)},100));break;case"message":if(this.inboxNav.ctaFocused){let i=this.getMessageCTAs(t.el),r=this.inboxNav.ctaIndex||0;if(i.length>0&&i[r])return this.logger.debug(`Clicking CTA button ${r+1}`),void i[r].click()}t.el.raiseClickedEvent&&t.el.raiseClickedEvent(t.el,!1)}}closeInbox(){if(this.logger.debug("Closing Web Inbox"),i6&&i6.inbox&&i6.inbox.isInboxOpen&&i6.inbox.toggleInbox(),this.inboxNav){let t=this.inboxNav.elements[this.inboxNav.index];t&&t.el&&(t.el.classList.remove("ct-tv-focused"),"message"===t.type&&this.unfocusAllCTAs(t.el)),this.inboxNav=null}this.focusableElements.length>0&&this.focusElement(this.currentFocusIndex)}injectInboxStyles(){this.inboxNav?.shadowRoot&&this.injectFocusStyle(this.inboxNav.shadowRoot,"ct-tv-inbox-styles")}injectMessageStyles(t){t?.shadowRoot&&this.injectFocusStyle(t.shadowRoot,"ct-tv-msg-styles")}isVisible(t){let i=window.getComputedStyle(t);return"none"!==i.display&&"hidden"!==i.visibility}handleMainPageNavigation(t){if(0===this.focusableElements.length)return void this.findFocusableElements();let i=[this.keyMappings.up,this.keyMappings.down,this.keyMappings.left,this.keyMappings.right,this.keyMappings.enter],r=[this.keyMappings.back,this.keyMappings.exit,this.keyMappings.webosBack,this.keyMappings.webosExit];switch((i.includes(t.keyCode)||r.includes(t.keyCode))&&(t.preventDefault(),t.stopPropagation()),t.keyCode){case this.keyMappings.up:case this.keyMappings.left:this.navigate("prev");break;case this.keyMappings.down:case this.keyMappings.right:this.navigate("next");break;case this.keyMappings.enter:this.activate();break;case this.keyMappings.back:case this.keyMappings.exit:case this.keyMappings.webosBack:case this.keyMappings.webosExit:this.handleExit();break;default:this.logger.debug("Unhandled key code:",t.keyCode)}}navigate(t){if(0===this.focusableElements.length)return;let i=this.currentFocusIndex;"prev"===t?i=Math.max(0,this.currentFocusIndex-1):"next"===t&&(i=Math.min(this.focusableElements.length-1,this.currentFocusIndex+1)),i!==this.currentFocusIndex&&this.focusElement(i)}focusElement(t){if(t<0||t>=this.focusableElements.length)return;this.focusableElements[this.currentFocusIndex]&&(this.focusableElements[this.currentFocusIndex].classList.remove("ct-tv-focused"),this.focusableElements[this.currentFocusIndex].blur()),this.currentFocusIndex=t;let i=this.focusableElements[this.currentFocusIndex];i&&(i.classList.add("ct-tv-focused"),i.focus(),i.scrollIntoView({behavior:"smooth",block:"center"}),this.logger.debug("TV Navigation focused:",i.tagName,i.textContent||i.id))}activate(){let t=this.focusableElements[this.currentFocusIndex];t&&("BUTTON"===t.tagName||"A"===t.tagName?t.click():"INPUT"===t.tagName&&("button"===t.type||"submit"===t.type?t.click():(t.focus(),this.logger.debug("TV Navigation: Text input focused, virtual keyboard should appear"))))}handleExit(){this.logger.debug("TV Navigation: Exit requested");try{if(void 0!==window.tizen&&window.tizen.application)return void window.tizen.application.getCurrentApplication().exit();if(void 0!==window.webOS&&window.webOS.platformBack)return void window.webOS.platformBack();if(void 0!==window.Samsung&&window.Samsung.Application)return void window.Samsung.Application.exit();if(void 0!==window.androidTV&&window.androidTV.exit)return void window.androidTV.exit();this.logger.debug("No TV platform API available - using browser fallback"),"function"==typeof window.close?window.close():this.logger.debug("Cannot exit - no exit method available")}catch(t){this.logger.error("Exit error:",t)}}addFocusStyles(){this.injectFocusStyle(document.head,"ct-tv-styles")}injectFocusStyle(t,i){if(!t||t.getElementById?.(i)||t.querySelector?.(`#${i}`))return;let r=document.createElement("style");r.id=i,r.textContent=".ct-tv-focused { outline: 3px solid #00ff00 !important; outline-offset: -2px !important; }",t.appendChild(r)}refresh(){this.findFocusableElements(),this.currentFocusIndex>
vendor: 7,962 bytes, line 626
626=this.focusableElements.length&&(this.currentFocusIndex=Math.max(0,this.focusableElements.length-1)),this.focusableElements.length>0&&this.focusElement(this.currentFocusIndex)}enable(){this.isEnabled=!0,this.logger.debug("TV Navigation enabled")}disable(){this.isEnabled=!1,this.focusableElements[this.currentFocusIndex]&&this.focusableElements[this.currentFocusIndex].classList.remove("ct-tv-focused"),this.logger.debug("TV Navigation disabled")}destroy(){this.keyHandler&&(document.removeEventListener("keydown",this.keyHandler,{capture:!0}),this.keyHandler=null),this.isEnabled=!1,this.shadowNavigation=null,this.inboxNav=null,az.instance=null}getState(){return{isEnabled:this.isEnabled,currentFocusIndex:this.currentFocusIndex,totalElements:this.focusableElements.length,platform:this.platform,shadowNavigation:this.shadowNavigation?{currentFocusIndex:this.shadowNavigation.currentFocusIndex,totalElements:this.shadowNavigation.focusableElements.length}:null,inboxNavigation:this.inboxNav?{currentIndex:this.inboxNav.index,totalElements:this.inboxNav.elements.length,ctaFocused:this.inboxNav.ctaFocused,ctaIndex:this.inboxNav.ctaIndex}:null}}}az.instance=null;var aR=eE("logger"),aj=eE("api"),aF=eE("onloadcalled"),aU=eE("device"),aV=eE("session"),aW=eE("account"),a$=eE("request"),aH=eE("variableStore"),aq=eE("isSpa"),aK=eE("previousUrl"),aZ=eE("boundCheckPageChanged"),aG=eE("dismissSpamControl"),aJ=eE("pageChangeTimeoutId"),aQ=eE("tvNavigation"),aY=eE("enableFetchApi"),aX=eE("enableEncryptionInTransit"),a1=eE("domainSpecification"),a0=eE("instanceManager"),a2=eE("processOldValues"),a4=eE("debounce"),a3=eE("checkPageChanged"),a6=eE("updateUnviewedBadgePosition"),a5=eE("pingRequest"),a7=eE("isPingContinuous"),a8=eE("overrideDSyncFlag"),a9=eE("sendLocationData");class le{static getDefaultInstance(){return le.defaultInstance}static createInstance(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{accountId:i,region:r,targetDomain:o,token:s}=t;if(!i)throw Error("CleverTap.createInstance: accountId is required");if(le._instances[i])return le._instances[i];if(Object.keys(le._instances).length>=le.MAX_INSTANCES)return r4.getInstance().error("CleverTap: Maximum of "+le.MAX_INSTANCES+" instances allowed. Cannot create instance for "+i),null;if(le.defaultInstance&&!le.defaultInstance.getAccountID()){let t=le.defaultInstance;return t.init(i,r,o,s),le._instances[i]=t,t}let n=new le({account:[{id:i}],region:r,targetDomain:o,token:s}),a=i.replace(/[^a-zA-Z0-9_]/g,"_");return window[`clevertap_${a}`]=n,n}get spa(){return eM(this,aq)[aq]}set spa(t){let i=!0===t;eM(this,aq)[aq]!==i&&1===eM(this,aF)[aF]&&(i?document.addEventListener("click",eM(this,aZ)[aZ]):document.removeEventListener("click",eM(this,aZ)[aZ])),eM(this,aq)[aq]=i}get dismissSpamControl(){return eM(this,aG)[aG]}set dismissSpamControl(t){let i=!0===t;eM(this,aG)[aG]=i,eM(this,a0)[a0].state.dismissSpamControl=i}get enableFetchApi(){return eM(this,aY)[aY]}set enableFetchApi(t){eM(this,aY)[aY]=t,eM(this,a0)[a0].enableFetchApi=t}get enableEncryptionInTransit(){return eM(this,aX)[aX]}set enableEncryptionInTransit(t){eM(this,aX)[aX]=t,eM(this,a0)[a0].enableEncryptionInTransit=t}get domainSpecification(){return eM(this,a1)[a1]}set domainSpecification(t){t&&isFinite(t)?eM(this,a1)[a1]=Number(t):eM(this,a1)[a1]=0}constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.defineProperty(this,a9,{value:ll}),Object.defineProperty(this,a8,{value:la}),Object.defineProperty(this,a7,{value:ln}),Object.defineProperty(this,a5,{value:ls}),Object.defineProperty(this,a6,{value:lo}),Object.defineProperty(this,a3,{value:lr}),Object.defineProperty(this,a4,{value:li}),Object.defineProperty(this,a2,{value:lt}),Object.defineProperty(this,aR,{writable:!0,value:void 0}),Object.defineProperty(this,aj,{writable:!0,value:void 0}),Object.defineProperty(this,aF,{writable:!0,value:void 0}),Object.defineProperty(this,aU,{writable:!0,value:void 0}),Object.defineProperty(this,aV,{writable:!0,value:void 0}),Object.defineProperty(this,aW,{writable:!0,value:void 0}),Object.defineProperty(this,a$,{writable:!0,value:void 0}),Object.defineProperty(this,aH,{writable:!0,value:void 0}),Object.defineProperty(this,aq,{writable:!0,value:void 0}),Object.defineProperty(this,aK,{writable:!0,value:void 0}),Object.defineProperty(this,aZ,{writable:!0,value:eM(this,a3)[a3].bind(this)}),Object.defineProperty(this,aG,{writable:!0,value:void 0}),this.enablePersonalization=void 0,Object.defineProperty(this,aJ,{writable:!0,value:void 0}),Object.defineProperty(this,aQ,{writable:!0,value:void 0}),Object.defineProperty(this,aY,{writable:!0,value:void 0}),Object.defineProperty(this,aX,{writable:!0,value:void 0}),Object.defineProperty(this,a1,{writable:!0,value:void 0}),Object.defineProperty(this,a0,{writable:!0,value:void 0}),this.popupCallbacks={},this.popupCurrentWzrkId="",eM(this,aF)[aF]=0,this._isPersonalisationActive=this._isPersonalisationActive.bind(this),this.domainSpecification=t.domainSpecification||null,this.raiseNotificationClicked=()=>{},eM(this,aR)[aR]=new r4(2),eM(this,aW)[aW]=new eN(t.account?.[0],t.region||t.account?.[1],t.targetDomain||t.account?.[2],t.token||t.account?.[3]);let i=null===le.defaultInstance,r=t.account?.[0]?.id||null,o=i?i4:new i2;o.key=r,eM(this,a0)[a0]=new aN(r,i),eM(this,a0)[a0].storage=new aB(r,i,o),eM(this,a0)[a0].logger=eM(this,aR)[aR],i&&(eM(this,a0)[a0].state=i6),oP.push(eM(this,a0)[a0].state.campaignDivMap),r&&(le._instances[r]=this),i&&(le.defaultInstance=this);let s=o7(t?.config?.customId);!s.isValid&&t?.config?.customId&&eM(this,aR)[aR].error(s.error),eM(this,aU)[aU]=new rg({logger:eM(this,aR)[aR],customId:s?.isValid?s?.sanitizedId:null,domainSpecification:this.domainSpecification,storageManager:eM(this,a0)[a0].storage}),eM(this,aG)[aG]=t.dismissSpamControl??!0,this.shpfyProxyPath=t.shpfyProxyPath||"",eM(this,aY)[aY]=t.enableFetchApi||!1,eM(this,a0)[a0].enableFetchApi=eM(this,aY)[aY],eM(this,aX)[aX]=t.enableEncryptionInTransit||!1,eM(this,a0)[a0].enableEncryptionInTransit=eM(this,aX)[aX],eM(this,aV)[aV]=new n4({logger:eM(this,aR)[aR],isPersonalisationActive:this._isPersonalisationActive,domainSpecification:this.domainSpecification,storageManager:eM(this,a0)[a0].storage,instanceManager:eM(this,a0)[a0]}),eM(this,a$)[a$]=new aa({logger:eM(this,aR)[aR],account:eM(this,aW)[aW],device:eM(this,aU)[aU],session:eM(this,aV)[aV],isPersonalisationActive:this._isPersonalisationActive,instanceManager:eM(this,a0)[a0]}),eM(this,aQ)[aQ]=new az(eM(this,aR)[aR]),this.enablePersonalization=t.enablePersonalization||!1,this.event=new oF({logger:eM(this,aR)[aR],request:eM(this,a$)[a$],isPersonalisationActive:this._isPersonalisationActive,instanceManager:eM(this,a0)[a0]},t.event),this.profile=new oQ({logger:eM(this,aR)[aR],request:eM(this,a$)[a$],account:eM(this,aW)[aW],isPersonalisationActive:this._isPersonalisationActive,instanceManager:eM(this,a0)[a0]},t.profile),this.onUserLogin=new sd({request:eM(this,a$)[a$],account:eM(this,aW)[aW],session:eM(this,aV)[aV],logger:eM(this,aR)[aR],device:eM(this,aU)[aU],instanceManager:eM(this,a0)[a0]},t.onUserLogin),this.privacy=new ay({request:eM(this,a$)[a$],account:eM(this,aW)[aW],logger:eM(this,aR)[aR],instanceManager:eM(this,a0)[a0]},t.privacy),this.notifications=new sA({logger:eM(this,aR)[aR],request:eM(this,a$)[a$],account:eM(this,aW)[aW],instanceManager:eM(this,a0)[a0]},t.notifications),eM(this,aH)[aH]=new aO({logger:eM(this,aR)[aR],request:eM(this,a$)[a$],account:eM(this,aW)[aW],event:this.event,instanceManager:eM(this,a0)[a0]}),eM(this,a0)[a0].state.variableStore=eM(this,aH)[aH],eM(this,aj)[aj]=new rc({logger:eM(this,aR)[aR],request:eM(this,a$)[a$],device:eM(this,aU)[aU],session:eM(this,aV)[aV],domainSpecification:this.domainSpecification,instanceManager:eM(this,a0)[a0]}),eM(this,a$)[a$].dispatcher&&(eM(this,a$)[a$].dispatcher.api=eM(this,aj)[aj]),this.spa=t.spa,this.dismissSpamControl=t.dismissSpamControl??!0,t.config?.enableTVControl
626s?eM(this,a0)[a0].storage.saveToLSorCookie(ty,!0):eM(this,a0)[a0].storage.saveToLSorCookie(ty,!1),this.user=new nG({isPersonalisationActive:this._isPersonalisationActive}),o.logger=eM(this,aR)[aR],this.session={getTimeElapsed:()=>eM(this,aV)[aV].getTimeElapsed(),getPageCount:()=>eM(this,aV)[aV].getPageCount()},this.logout=()=>{eM(this,aR)[aR].debug("logout called"),eM(this,a0)[a0].storage.setInstantDeleteFlagInK()},this.clear=()=>{this.onUserLogin.clear()},this.getCleverTapID=()=>eM(this,aU)[aU].getGuid(),this.getAccountID=()=>eM(this,aW)[aW].id,this.getSCDomain=()=>eM(this,aW)[aW].finalTargetDomain,this.setLibrary=(t,i)=>{eM(this,a0)[a0].state.flutterVersion={[t]:i}},this.setSCSDKVersion=t=>{eM(this,aW)[aW].scSDKVersion=t;let i={};i.af={scv:"sc-sdk-v"+eM(this,aW)[aW].scSDKVersion};let r=eM(this,aW)[aW].dataPostURL;r=rY(r,"type","page"),r=rY(r,"d",rN(JSON.stringify(i),eM(this,aR)[aR])),eM(this,a$)[a$].saveAndFireRequest(r,eM(this,a0)[a0].state.blockRequest)},nS(eM(this,a0)[a0])&&(nx(),nk(eM(this,aR)[aR],eM(this,a0)[a0])),this.getInboxMessageCount=()=>Object.keys(nw(eM(this,a0)[a0])).length,this.getInboxMessageUnreadCount=()=>{try{let t=this.getUnreadInboxMessages();return Object.keys(t).length}catch(t){eM(this,aR)[aR].error("Error in getInboxMessageUnreadCount"+t)}},this.getAllInboxMessages=()=>nw(eM(this,a0)[a0]),this.getUnreadInboxMessages=()=>{try{let t=nw(eM(this,a0)[a0]),i={};if(Object.keys(t).length>0)for(let r in t)0===t[r].viewed&&(i[r]=t[r]);return i}catch(t){eM(this,aR)[aR].error("Error in getUnreadInboxMessages"+t)}},this.getInboxMessageForId=t=>{let i=nw(eM(this,a0)[a0]);if((null!==t||""!==t)&&i.hasOwnProperty(t))return i[t];eM(this,aR)[aR].error("No message available for message Id "+t)},this.deleteInboxMessage=t=>{let i=nw(eM(this,a0)[a0]);if((null!==t||""!==t)&&i.hasOwnProperty(t)){if(0===i[t].viewed&&eM(this,a0)[a0].state.inbox){eM(this,a0)[a0].state.inbox.unviewedCounter--,delete eM(this,a0)[a0].state.inbox.unviewedMessages[t];let i=document.getElementById("unviewedBadge");i&&(i.innerText=eM(this,a0)[a0].state.inbox.unviewedCounter,i.style.display=eM(this,a0)[a0].state.inbox.unviewedCounter>0?"flex":"none")}let r=document.querySelector("ct-web-inbox");if(r){let i=r.shadowRoot.getElementById(t);i&&i.remove()}delete i[t],nC(i,eM(this,a0)[a0])}else eM(this,aR)[aR].error("No message available for message Id "+t)},this.markReadInboxMessage=t=>{let i=nw(eM(this,a0)[a0]);if((null!==t||""!==t)&&i.hasOwnProperty(t)){if(1===i[t].viewed)return eM(this,aR)[aR].error("Message already viewed"+t);let o=document.querySelector("ct-web-inbox");if(o){let i=o.shadowRoot.getElementById(t);null!==i&&(i.shadowRoot.getElementById("unreadMarker").style.display="none")}i[t].viewed=1;let s=document.getElementById("unviewedBadge");if(s){var r=parseInt(s.innerText)-1;s.innerText=r,s.style.display=r>0?"flex":"none"}this.renderNotificationViewed({msgId:i[t].wzrk_id,pivotId:i[t].pivotId}),eM(this,a0)[a0].state.inbox&&(eM(this,a0)[a0].state.inbox.unviewedCounter--,delete eM(this,a0)[a0].state.inbox.unviewedMessages[t]),nC(i,eM(this,a0)[a0])}else eM(this,aR)[aR].error("No message available for message Id "+t)},this.markReadInboxMessagesForIds=t=>{if(Array.isArray(t))for(var i=0;i<t.length;i++)this.markReadInboxMessage(t[i])},this.markReadAllInboxMessage=()=>{let t=nw(eM(this,a0)[a0]),i=this.getUnreadInboxMessages();if(Object.keys(i).length>
6260){Object.keys(i).forEach(i=>{let r=document.querySelector("ct-web-inbox");if(r){let t=r.shadowRoot.getElementById(i);null!==t&&(t.shadowRoot.getElementById("unreadMarker").style.display="none")}t[i].viewed=1,this.renderNotificationViewed({msgId:t[i].wzrk_id,pivotId:t[i].wzrk_pivot})});let r=document.getElementById("unviewedBadge");r&&(r.innerText=0,r.style.display="none"),nC(t,eM(this,a0)[a0]),eM(this,a0)[a0].state.inbox&&(eM(this,a0)[a0].state.inbox.unviewedCounter=0,eM(this,a0)[a0].state.inbox.unviewedMessages={})}else eM(this,aR)[aR].debug("All messages are already read")},this.toggleInbox=t=>eM(this,a0)[a0].state.inbox?.toggleInbox(t),this.renderNotificationViewed=t=>{n(e3,t)},this.renderNotificationClicked=t=>{n(e6,t)};let n=(t,i)=>{if(!i||!i.msgId)return;let r={type:"event"};if(r.evtName=t,r.evtData={[e4]:i.msgId},i.pivotId&&(r.evtData={...r.evtData,wzrk_pivot:i.pivotId}),i.wzrk_slideNo&&(r.evtData={...r.evtData,wzrk_slideNo:i.wzrk_slideNo}),i.kv&&null!==i.kv&&void 0!==i.kv)for(let t in i.kv)t.startsWith(e2)&&(r.evtData={...r.evtData,[t]:i.kv[t]});if(i.msgCTkv&&null!==i.msgCTkv&&void 0!==i.msgCTkv)for(let t in i.msgCTkv)t.startsWith(e2)&&(r.evtData={...r.evtData,[t]:i.msgCTkv[t]});eM(this,a$)[a$].processEvent(r)};this.setLogLevel=t=>{eM(this,aR)[aR].logLevel=Number(t),3===t?sessionStorage.WZRK_D="":delete sessionStorage.WZRK_D},this.handleIncrementValue=(t,i)=>{this.profile._handleIncrementDecrementValue(t,i,e8)},this.handleDecrementValue=(t,i)=>{this.profile._handleIncrementDecrementValue(t,i,"$decr")},this.setMultiValuesForKey=(t,i)=>{Array.isArray(i)?this.profile._handleMultiValueSet(t,i,"$set"):eM(this,aR)[aR].error("setMultiValuesForKey should be called with a value of type array")},this.addMultiValueForKey=(t,i)=>{"string"==typeof i||"number"==typeof i?this.profile._handleMultiValueAdd(t,i,e9):eM(this,aR)[aR].error("addMultiValueForKey should be called with a value of type string or number.")},this.addMultiValuesForKey=(t,i)=>{Array.isArray(i)?this.profile._handleMultiValueAdd(t,i,e9):eM(this,aR)[aR].error("addMultiValuesForKey should be called with a value of type array.")},this.removeMultiValueForKey=(t,i)=>{"string"==typeof i||"number"==typeof i?this.profile._handleMultiValueRemove(t,i,te):eM(this,aR)[aR].error("removeMultiValueForKey should be called with a value of type string or number.")},this.removeMultiValuesForKey=(t,i)=>{Array.isArray(i)?this.profile._handleMultiValueRemove(t,i,te):eM(this,aR)[aR].error("removeMultiValuesForKey should be called with a value of type array.")},this.removeValueForKey=t=>{this.profile._handleMultiValueDelete(t,tt)},this.enableLocalStorageEncryption=t=>{o.enableLocalStorageEncryption=t},this.isLocalStorageEncryptionEnabled=()=>o.enableLocalStorageEncryption;let a=(t,i,r)=>{((t,i,r,o,s)=>{let n=rJ(location.href),a=n.e,l=n.p,d=n.page_type;if(void 0!==a){let n={};n.id=o.id,n.unsubGroups=i6.unsubGroups,i6.updatedCategoryLong&&(n.cUsY=i6.updatedCategoryLong);let c=o.emailURL;r&&(c=rY(c,"fetchGroups",r)),i&&(c=rY(c,"encoded",i)),c=rY(c,"e",a),c=rY(c,"d",rN(JSON.stringify(n),s)),l&&(c=rY(c,"p",l)),"-1"!==t&&(c=rY(c,"sub",t)),d&&(i6.globalUnsubscribe="global"===d,c=rY(c,"page_type",d)),on.fireRequest(c)}})(t,i,r,eM(this,aW)[aW],eM(this,aR)[aR])};function l(t){var i=t.coords.latitude,r=t.coords.longitude;try{localStorage.setItem(tw,"true")}catch(t){}eM(this,a0)[a0].state.location={Latitude:i,Longitude:r},eM(this,a9)[a9]({Latitude:i,Longitude:r})}function d(t){switch(t.code){case t.PERMISSION_DENIED:console.log("User denied the request for Geolocation.");try{localStorage.setItem(tw,"false")}catch(t){}break;case t.POSITION_UNAVAILABLE:console.log("Location information is unavailable.");break;case t.TIMEOUT:console.log("The request to get user location timed out.");break;case t.UNKNOWN_ERROR:console.log("An unknown error occurred.")}}this.getLocation=function(t,i){if(t&&"number"!=typeof t||i&&"number"!=typeof i)console.log("Latitude and Longitude must be of number type");else if(t&&i){if(t<=-90||t>90)return void console.log("A vaid latitude must range between -90 and 90");if(i<=-180||i>180)return void console.log("A valid longitude must range between -180 and 180");eM(this,a0)[a0].state.location={Latitude:t,Longitude:i},eM(this,a9)[a9]({Latitude:t,Longitude:i})}else if(navigator.geolocation){if(/^((?!chrome|android).)*safari/i.test(navigator.userAgent))try{if(null!==localStorage.getItem(tw))return}catch(t){}navigator.geolocation.getCurrentPosition(l.bind(this),d)}else console.log("Geolocation is not supported by this browser.")};let c=eM(this,aj)[aj];if(c.logout=this.logout,c.clear=this.clear,c.closeIframe=(t,i)=>
626{oA(t,i,eM(this,aV)[aV].sessionId,eM(this,a0)[a0].state.campaignDivMap)},c.enableWebPush=(t,i)=>{sR=i,sH=i,this.notifications._enableWebPush(t,i);try{eM(this,a0)[a0].storage.saveToLSorCookie(ta,!0)}catch(t){eM(this,aR)[aR].error("Could not read value from local storage",t)}},c.tr=t=>{nK(t,{device:eM(this,aU)[aU],session:eM(this,aV)[aV],request:eM(this,a$)[a$],logger:eM(this,aR)[aR],region:eM(this,aW)[aW].region,instanceManager:eM(this,a0)[a0],instance:this})},c.setEnum=t=>{var i;i=eM(this,aR)[aR],tT(t)||tz(t)||i.error("CleverTap error: setEnum(value). value should be a string or a number")},c.is_onloadcalled=()=>1===eM(this,aF)[aF],c.subEmail=t=>{a("1",t)},c.getEmail=(t,i)=>{a("-1",t,i)},c.unSubEmail=t=>{a("0",t)},c.unsubEmailGroups=t=>{eM(this,a0)[a0].state.unsubGroups=[];let i=document.getElementsByClassName("ct-unsub-group-input-item");for(let t=0;t<i.length;t++){let r=i[t];if(r.name){let t={name:r.name,isUnsubscribed:r.checked};eM(this,a0)[a0].state.unsubGroups.push(t)}}a("2",t)},c.setSubscriptionGroups=t=>{eM(this,a0)[a0].state.unsubGroups=t},c.getSubscriptionGroups=()=>eM(this,a0)[a0].state.unsubGroups,c.changeSubscriptionGroups=(t,i)=>{c.setSubscriptionGroups(i),a("2",t)},c.isGlobalUnsubscribe=()=>eM(this,a0)[a0].state.globalUnsubscribe,c.setIsGlobalUnsubscribe=t=>{eM(this,a0)[a0].state.globalUnsubscribe=t},c.setUpdatedCategoryLong=t=>{t.cUsY&&(eM(this,a0)[a0].state.updatedCategoryLong=t.cUsY)},c.getMuteExpiry=()=>(()=>{let t=i3.readFromLSorCookie(tv);return!t||t<=0?null:Date.now()<t?t:null})(),c.isMuted=()=>(()=>{let t=i3.readFromLSorCookie(tv);return!(!t||t<=0)&&Date.now()<t})(),!window.$WZRK_WR){window.$WZRK_WR={_apiMap:{},_defaultApi:c,_lastHandler:null,s:function(){let t=arguments.length<=3?void 0:arguments[3],i=this._apiMap[t]||this._defaultApi;this._lastHandler=i,i&&i.s&&i.s(...arguments),delete this._apiMap[t]},tr:function(){let t=this._lastHandler||this._defaultApi;t&&t.tr&&t.tr(...arguments)},enableWebPush:function(){let t=this._lastHandler||this._defaultApi;t&&t.enableWebPush&&t.enableWebPush(...arguments)}};let t=window.$WZRK_WR;Object.keys(c).forEach(i=>{t.hasOwnProperty(i)||(t[i]="function"==typeof c[i]?c[i].bind(c):c[i])}),window.$CLTP_WR=window.$WZRK_WR}eM(this,aj)[aj]._wzrkDispatcher=window.$WZRK_WR,eM(this,aj)[aj]._selfApi=c,t.account?.[0].id&&(eM(this,a0)[a0].storage.saveToLSorCookie(eG,t.account?.[0].id),this.init())}createCustomIdIfValid(t){let i=o7(t);i.isValid||eM(this,aR)[aR].error(i.error),eM(this,aU)[aU].gcookie||(i.isValid?(eM(this,aU)[aU].gcookie=i?.sanitizedId,eM(this,a0)[a0].storage.saveToLSorCookie(eV,i?.sanitizedId),eM(this,aR)[aR].debug("CT Initialized with customId:: "+i?.sanitizedId)):eM(this,aR)[aR].error("Invalid customId"))}init(t,i,r,o){let s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{antiFlicker:{},customId:null,isolateSubdomain:!1,enableTVControls:!1,domainSpecification:null};if(s?.domainSpecification&&(this.domainSpecification=s.domainSpecification,eM(this,aV)[aV].domainSpecification=s.domainSpecification,eM(this,aU)[aU].domainSpecification=s.domainSpecification,eM(this,aj)[aj].domainSpecification=s.domainSpecification),s?.antiFlicker&&Object.keys(s?.antiFlicker).length>0&&function(t){let{personalizedSelectors:i=[],delayTime:r=2e3}=t,o={},s,n=0;function a(t){function i(t){let i=[];t.forEach(t=>{let r=document.querySelectorAll(t);r.length?(r.forEach(t=>{(function(t){let i=t.getBoundingClientRect(),{innerHeight:r,innerWidth:o}=window;return i.bottom>0&&i.right>0&&i.top<r&&i.left<o})(t)&&i.push(t)}),delete o[t]):o[t]=!1}),i.forEach(t=>t.classList.add(s8)),setTimeout(()=>{i.forEach(t=>{t.classList.remove(s8),t.classList.add("wve-anti-flicker-show")})},r)}i(t),Object.keys(o).length&&(s=setInterval(function(){i(Object.keys(o)),n++,(0===Object.keys(o).length||n>20)&&(n=0,clearInterval(s))},100))}(function(){let t="wve-flicker-style";if(!document.getElementById(t)){let i=document.createElement("style");i.id=t,i.textContent="\n .wve-anti-flicker-hide {\n opacity: 0 !important;\n }\n .wve-anti-flicker-show {\n transition: opacity 0.5s, filter 0.5s !important;\n }\n ",document.head.appendChild(i)}})(),window.addEventListener("DOMContentLoaded",()=>{let t;t=document.location.href,new MutationObserver(()=>{t!==document.location.href&&(t=document.location.href,a(i))}).observe(document.body,{childList:!0,subtree:!0})}),a(i)}(s.antiFlicker),s?.isolateSubdomain&&eM(this,a0)[a0].storage.saveToLSorCookie(tm,!0),1===eM(this,aF)[aF])return;eM(this,a$)[a$].dispatcher&&eM(this,a$)[a$].dispatcher.clearEITFallback(),t&&(eM(this,a0)[a0].storage.encryption.key=t);let n=eM(this,a0)[a0].storage.readFromLSorCookie(ty)??!1;
626if((s?.enableTVControls||n)&&(eM(this,a0)[a0].storage.saveToLSorCookie(ty,!0),eM(this,aR)[aR].debug("CleverTap TV Navigation Mode: CleverTap will handle all navigation"),eM(this,aQ)[aQ].init()),eM(this,a0)[a0].storage.removeCookie("WZRK_P",window.location.hostname),!eM(this,aW)[aW].id){if(!t)return void eM(this,aR)[aR].error("CleverTap error: Incorrect embed script.");eM(this,aW)[aW].id=t,eM(this,a0)[a0].storage.saveToLSorCookie(eG,t),eM(this,aR)[aR].debug("CT Initialized with Account ID: "+eM(this,aW)[aW].id)}((t,i)=>{let r=new URLSearchParams(window.location.search).get("ctActionMode");if(nP=t,r){let t=window.opener;switch(r){case"ctBuilder":nP.debug("open in visual builder mode"),window.addEventListener("message",nA,!1),t&&t.postMessage({message:"builder",originUrl:window.location.href},"*");break;case"ctBuilderPreview":nP.debug("preview of visual editor"),window.addEventListener("message",nA,!1),t&&t.postMessage({message:"preview",originUrl:window.location.href},"*");break;case"ctBuilderSDKCheck":t&&(nP.debug("SDK version check"),t.postMessage({message:"SDKVersion",accountId:i,originUrl:window.location.href,sdkVersion:"3.0.0"},"*"));break;default:nP.debug(`unknown query param ${r}`)}}})(eM(this,aR)[aR],eM(this,aW)[aW].id),n$(eM(this,aR)[aR]),nd(),eM(this,aV)[aV].cookieName="WZRK_S_"+eM(this,aW)[aW].id,i&&(eM(this,aW)[aW].region=i),r&&(eM(this,aW)[aW].targetDomain=r),o&&(eM(this,aW)[aW].token=o),s?.customId&&this.createCustomIdIfValid(s.customId),s.enableFetchApi&&(eM(this,aY)[aY]=s.enableFetchApi,eM(this,a0)[a0].enableFetchApi=s.enableFetchApi),s.enableEncryptionInTransit&&(eM(this,aX)[aX]=s.enableEncryptionInTransit,eM(this,a0)[a0].enableEncryptionInTransit=s.enableEncryptionInTransit),!0===eM(this,a0)[a0].storage.readFromLSorCookie(tf)&&(eM(this,aR)[aR].debug("Processing OUL backup events first to establish user identity"),eM(this,a$)[a$].processBackupEvents(!0));let a=rJ(location.href.toLowerCase());if(void 0!==a.e&&"0"==a.wzrk_ex)return;if(!eM(this,a0)[a0].state.locale)try{let t=navigator.language||navigator.userLanguage;t&&(eM(this,a0)[a0].state.locale=t.replace("-","_"))}catch(t){}eM(this,a0)[a0].state.isPrivacyArrPushed=!0,eM(this,a0)[a0].state.privacyArray.length>0&&this.privacy.push(eM(this,a0)[a0].state.privacyArray),(()=>{try{let t=i3.readFromLSorCookie(eJ);null!=t&&oO(t)}catch(t){console.error("Error initializing discarded events from storage: "+t)}})(),eM(this,a2)[a2](),this.pageChanged();let l=setInterval(()=>{eM(this,aU)[aU].gcookie&&(clearInterval(l),eM(this,a$)[a$].processBackupEvents())},3e3);eM(this,aq)[aq]?(document.addEventListener("click",eM(this,aZ)[aZ]),window.addEventListener("popstate",eM(this,aZ)[aZ])):document.removeEventListener("click",eM(this,aZ)[aZ]),eM(this,aF)[aF]=1}pageChanged(){let t=window.location.href;eM(this,aq)[aq]&&void 0!==eM(this,aK)[aK]&&eM(this,aK)[aK]!==t&&oM();let i=rJ(t.toLowerCase()),r=eM(this,aV)[aV].getSessionCookieObject(),o=void 0===r.p?0:r.p;r.p=++o,eM(this,aV)[aV].setSessionCookieObject(r);let s={},n=(t=>{if(""===t)return"";var i=document.createElement("a");return i.href=t,i.hostname})(document.referrer);if(window.location.hostname!==n){""!==n&&(n=n.length>120?n.substring(0,120):n,s.referrer=n);let t=i.utm_source||i.wzrk_source;void 0!==t&&(t=t.length>120?t.substring(0,120):t,s.us=t);let r=i.utm_medium||i.wzrk_medium;void 0!==r&&(r=r.length>120?r.substring(0,120):r,s.um=r);let o=i.utm_campaign||i.wzrk_campaign;if(void 0!==o&&(o=o.length>120?o.substring(0,120):o,s.uc=o),void 0!==i.wzrk_medium){let t=i.wzrk_medium;t.match(/^email$|^social$|^search$/)&&(s.wm=t)}}(s=eM(this,a$)[a$].addSystemDataToObject(s,void 0)).cpg=t,s.WZRK_CAMP=ow();let a=eM(this,aW)[aW].dataPostURL;eM(this,a$)[a$].addFlags(s),1===parseInt(s.pg)&&eM(this,a8)[a8](s),a=rY(a,"type","page"),a=rY(a,"d",rN(JSON.stringify(s),eM(this,aR)[aR])),eM(this,a$)[a$].saveAndFireRequest(a,eM(this,a0)[a0].state.blockRequest),1===parseInt(s.pg)&&this.event.push(ts,{t:4}),eM(this,aK)[aK]=t,setTimeout(()=>{o<=3&&eM(this,a5)[a5](),eM(this,a7)[a7]()&&setInterval(()=>{eM(this,a5)[a5]()},3e5)},12e4),eM(this,a6)[a6](),this._handleVisualEditorPreview()}_handleVisualEditorPreview(){eM(this,a0)[a0].state.intervalArray.length&&eM(this,a0)[a0].state.intervalArray.forEach(t=>{"string"==typeof t&&t.startsWith("addNewEl-")?clearInterval(parseInt(t.split("-")[1],10)):clearInterval(t)}),eM(this,a0)[a0].state.intervalArray=[];let t=sessionStorage.getItem("visualEditorData"),i=t?JSON.parse(t):null;i&&nB(i,!0,eM(this,aR)[aR])}_isPersonalisationActive(){return i3._isLocalStorageSupported()&&this.enablePersonalization}set popupCallback(t){this.popupCallbacks[this.popupCurrentWzrkId]=t}setOffline(t){"boolean"==typeof t?(eM(this,a0)[a0].state.offline===t||t||eM(this,a$)[a$].processBackupEvents(),eM(this,a0)[a0].state.offline=t):console.error("setOffline should be called with a value of type boolean")}delayEvents(t){"boolean"==typeof t?eM(this,a0)[a0].state.delayEvents=t:console.error("delayEvents should be called with a value of type boolean")}setLocale(t){"string"==typeof t&&0!==t.trim().length?eM(this,a0)[a0].state.locale=t:eM(this,aR)[aR].error("setLocale should be called with a non-empty string value")}getLocale(){return eM(this,a0)[a0].state.locale||null}getSDKVersion(){return"web-sdk-v3.0.0"}
626defineVariable(t,i){return ab.define(t,i,eM(this,aH)[aH],eM(this,aR)[aR])}defineFileVariable(t){return ab.defineFileVar(t,eM(this,aH)[aH],eM(this,aR)[aR])}syncVariables(t,i){if(4===eM(this,aR)[aR].logLevel)return eM(this,aH)[aH].syncVariables(t,i);{let t="App log level is not set to 4";return eM(this,aR)[aR].error(t),Promise.reject(Error(t))}}fetchVariables(t){eM(this,aH)[aH].fetchVariables(t)}getVariables(){return o5(eM(this,a0)[a0].storage.readFromLSorCookie(to))}getVariableValue(t){let i=eM(this,a0)[a0].storage.readFromLSorCookie(to),r=o5(i);return i.hasOwnProperty(t)?i[t]:r.hasOwnProperty(t)?r[t]:void 0}addVariablesChangedCallback(t){eM(this,aH)[aH].addVariablesChangedCallback(t)}addOneTimeVariablesChangedCallback(t){eM(this,aH)[aH].addOneTimeVariablesChangedCallback(t)}getVariants(){return eM(this,aH)[aH].getVariants()}getAllQualifiedCampaignDetails(){try{return eM(this,a0)[a0].storage.readFromLSorCookie(tg)&&JSON.parse(decodeURIComponent(eM(this,a0)[a0].storage.readFromLSorCookie(tg)))}catch(t){return null}}}function lt(){this.onUserLogin._processOldValues(),this.privacy._processOldValues(),this.event._processOldValues(),this.profile._processOldValues(),this.notifications._processOldValues()}function li(t){let i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){clearTimeout(i),i=setTimeout(t,r)}}function lr(){eM(this,a4)[a4](()=>{eM(this,aK)[aK]!==location.href&&this.pageChanged()})()}function lo(){try{eM(this,aJ)[aJ]&&clearTimeout(eM(this,aJ)[aJ]);let t=document.getElementById("unviewedBadge");if(!t)return void eM(this,aR)[aR].debug("unViewedBadge not found");t.style.display="none",eM(this,aJ)[aJ]=setTimeout(()=>{let t=eM(this,a0)[a0].storage.readFromLSorCookie(ti)||{},i=document.getElementById(t?.inboxSelector),r=document.getElementById("unviewedBadge");if(r){if(i){let{top:t,right:o}=i.getBoundingClientRect();(Number(r.innerText)>0||"9+"===r.innerText)&&(r.style.display="flex"),r.style.top=t-8+"px",r.style.left=o-8+"px"}}else eM(this,aR)[aR].debug("unViewedBadge not found")},300)}catch(t){eM(this,aR)[aR].debug("Error updating unviewed badge position:",t)}}function ls(){let t=eM(this,aW)[aW].dataPostURL,i={};i=eM(this,a$)[a$].addSystemDataToObject(i,void 0),t=rY(t,"type","ping"),t=rY(t,"d",rN(JSON.stringify(i),eM(this,aR)[aR])),eM(this,a$)[a$].saveAndFireRequest(t,eM(this,a0)[a0].state.blockRequest)}function ln(){return void 0!==window.wzrk_d&&"continuous"===window.wzrk_d.ping}function la(t){this._isPersonalisationActive()&&(t.dsync=!0)}function ll(t){let i={af:{}},r={};i.type="profile",null==r.tz&&(r.tz=(new Date).toString().match(/([A-Z]+[\+-][0-9]+)/)[1]),i.profile=r,t&&Object.keys(t).forEach(r=>{i.af[r]=t[r]}),eM(this,a0)[a0].state.location&&(i.af={...i.af,...eM(this,a0)[a0].state.location}),i=eM(this,a$)[a$].addSystemDataToObject(i,!0),eM(this,a$)[a$].addFlags(i);let o=rN(JSON.stringify(i),eM(this,aR)[aR]),s=eM(this,aW)[aW].dataPostURL;s=rY(s,"type",e0),s=rY(s,"d",o),eM(this,a$)[a$].saveAndFireRequest(s,eM(this,a0)[a0].state.blockRequest)}le._instances={},le.defaultInstance=null,le.MAX_INSTANCES=5;let ld=window.clevertap,lc=ld?.account?.[0]?.id,lh=Array.isArray(ld?.instances)?ld.instances:[],lp=ld;if(!lc&&lh.length>0){let t=lh[0];lp={...ld,account:[{id:t.accountId},t.region,t.targetDomain,t.token],privacy:t.privacy||ld?.privacy||[]}}let lu=new le(lp);lu.createInstance=le.createInstance.bind(le),lu.getDefaultInstance=le.getDefaultInstance.bind(le),lu.CleverTap=le,window.clevertap=window.wizrocket=lu;for(let t=!lc&&lh.length>0?1:0;t<lh.length;t++){let i=lh[t];if(i&&i.accountId){let t=le.createInstance({accountId:i.accountId,region:i.region,targetDomain:i.targetDomain,token:i.token});t&&Array.isArray(i.privacy)&&i.privacy.forEach(i=>t.privacy.push(i))}}return lu},t.exports=o()}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.