/*! For license information please see tealeaf.bundle.js.LICENSE.txt */
var tealeafLibrary;!function(){var e={92201:function(e,t,n){var r={"./index.js":30398,"./pako_deflate.min.js":47371,"./tealeaf.config.js":64014,"./tealeaf.min.js":50138};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=92201},30398:function(e,t,n){var r;(r=n(92201)).keys().forEach(r)},47371:function(e){e.exports=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t,n,r=Array.prototype.slice.call(arguments,1);r.length;){var i=r.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var o in i)t=i,n=o,Object.prototype.hasOwnProperty.call(t,n)&&(e[o]=i[o])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],2:[function(e,t,n){"use strict";var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65534&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,s=t||e.length,c=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)c[r++]=i;else if(4<(o=a[i]))c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&e[n++],o--;1<o?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":1}],3:[function(e,t,n){"use strict";t.exports=function(e,t,n,r){for(var i=65535&e,o=e>>>16&65535,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16}},{}],4:[function(e,t,n){"use strict";var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return~e}},{}],5:[function(e,t,n){"use strict";var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=0,d=-2,f=2,h=8,p=286,g=30,m=19,y=2*p+1,v=15,w=3,b=258,_=b+w+1,T=42,S=113;function x(e,t){return e.msg=l[t],t}function C(e){return(e<<1)-(4<e?9:0)}function E(e){for(var t=e.length;0<=--t;)e[t]=0}function k(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function O(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,k(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function I(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function D(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-_?e.strstart-(e.w_size-_):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+b,h=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===p&&c[n+a-1]===h&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<f);if(r=b-(f-o),o=f-b,a<r){if(e.match_start=t,s<=(a=r))break;h=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function P(e){var t,n,r,o,l,c,u,d,f,h,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-_)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,h=void 0,(f=o)<(h=c.avail_in)&&(h=f),n=0===h?0:(c.avail_in-=h,i.arraySet(u,c.input,c.next_in,h,d),1===c.state.wrap?c.adler=a(c.adler,u,h,d):2===c.state.wrap&&(c.adler=s(c.adler,u,h,d)),c.next_in+=h,c.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=w)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+w-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<w)););}while(e.lookahead<_&&0!==e.strm.avail_in)}function A(e,t){for(var n,r;;){if(e.lookahead<_){if(P(e),e.lookahead<_&&t===c)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-_&&(e.match_length=D(e,n)),e.match_length>=w)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-w),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=w){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(O(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<w-1?e.strstart:w-1,4===t?(O(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?1:2}function M(e,t){for(var n,r,i;;){if(e.lookahead<_){if(P(e),e.lookahead<_&&t===c)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=w-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-_&&(e.match_length=D(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===w&&4096<e.strstart-e.match_start)&&(e.match_length=w-1)),e.prev_length>=w&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-w,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-w),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=w-1,e.strstart++,r&&(O(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&O(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<w-1?e.strstart:w-1,4===t?(O(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?1:2}function z(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function R(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=h,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*y),this.dyn_dtree=new i.Buf16(2*(2*g+1)),this.bl_tree=new i.Buf16(2*(2*m+1)),E(this.dyn_ltree),E(this.dyn_dtree),E(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(v+1),this.heap=new i.Buf16(2*p+1),E(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*p+1),E(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function N(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=f,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:S,e.adler=2===t.wrap?0:1,t.last_flush=c,o._tr_init(t),u):x(e,d)}function j(e){var t,n=N(e);return n===u&&((t=e.state).window_size=2*t.w_size,E(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=w-1,t.match_available=0,t.ins_h=0),n}function V(e,t,n,r,o,a){if(!e)return d;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||9<o||n!==h||r<8||15<r||t<0||9<t||a<0||4<a)return x(e,d);8===r&&(r=9);var l=new R;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+w-1)/w),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,j(e)}r=[new z(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(P(e),0===e.lookahead&&t===c)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,O(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-_&&(O(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(O(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(O(e,!1),e.strm.avail_out),1)})),new z(4,4,8,4,A),new z(4,5,16,8,A),new z(4,6,32,32,A),new z(4,4,16,16,M),new z(8,16,32,32,M),new z(8,16,128,128,M),new z(8,32,128,256,M),new z(32,128,258,1024,M),new z(32,258,258,4096,M)],n.deflateInit=function(e,t){return V(e,t,h,15,8,0)},n.deflateInit2=V,n.deflateReset=j,n.deflateResetKeep=N,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,u):d},n.deflate=function(e,t){var n,i,a,l;if(!e||!e.state||5<t||t<0)return e?x(e,d):d;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return x(e,0===e.avail_out?-5:d);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===T)if(2===i.wrap)e.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),L(i,255&i.gzhead.time),L(i,i.gzhead.time>>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),L(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,255&i.gzhead.extra.length),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),L(i,3),i.status=S);else{var f=h+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=S,I(i,f),0!==i.strstart&&(I(i,e.adler>>>16),I(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),k(e),a=i.pending,i.pending!==i.pending_buf_size));)L(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),k(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}L(i,l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),k(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}L(i,l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&k(e),i.pending+2<=i.pending_buf_size&&(L(i,255&e.adler),L(i,e.adler>>8&255),e.adler=0,i.status=S)):i.status=S),0!==i.pending){if(k(e),0===e.avail_out)return i.last_flush=-1,u}else if(0===e.avail_in&&C(t)<=C(n)&&4!==t)return x(e,-5);if(666===i.status&&0!==e.avail_in)return x(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(P(e),0===e.lookahead)){if(t===c)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(O(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(O(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=b){if(P(e),e.lookahead<=b&&t===c)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=w&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+b;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=b-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=w?(n=o._tr_tally(e,1,e.match_length-w),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(O(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(O(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==p&&4!==p||(i.status=666),1===p||3===p)return 0===e.avail_out&&(i.last_flush=-1),u;if(2===p&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(E(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),k(e),0===e.avail_out))return i.last_flush=-1,u}return 4!==t?u:i.wrap<=0?1:(2===i.wrap?(L(i,255&e.adler),L(i,e.adler>>8&255),L(i,e.adler>>16&255),L(i,e.adler>>24&255),L(i,255&e.total_in),L(i,e.total_in>>8&255),L(i,e.total_in>>16&255),L(i,e.total_in>>24&255)):(I(i,e.adler>>>16),I(i,65535&e.adler)),k(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?u:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==S&&666!==t?x(e,d):(e.state=null,t===S?x(e,-3):u):d},n.deflateSetDictionary=function(e,t){var n,r,o,s,l,c,f,h,p=t.length;if(!e||!e.state)return d;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==T||n.lookahead)return d;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(E(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),l=e.avail_in,c=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,P(n);n.lookahead>=w;){for(r=n.strstart,o=n.lookahead-(w-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+w-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=w-1,P(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=w-1,n.match_available=0,e.next_in=c,e.input=f,e.avail_in=l,n.wrap=s,u},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(e,t,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(e,t,n){"use strict";var r=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=256,a=286,s=30,l=15,c=16,u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],d=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],f=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],p=new Array(576);i(p);var g=new Array(60);i(g);var m=new Array(512);i(m);var y=new Array(256);i(y);var v=new Array(29);i(v);var w,b,_,T=new Array(s);function S(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function C(e){return e<256?m[e]:m[256+(e>>>7)]}function E(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,n){e.bi_valid>c-n?(e.bi_buf|=t<<e.bi_valid&65535,E(e,e.bi_buf),e.bi_buf=t>>c-e.bi_valid,e.bi_valid+=n-c):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function O(e,t,n){k(e,n[2*t],n[2*t+1])}function L(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function I(e,t,n){var r,i,o=new Array(l+1),a=0;for(r=1;r<=l;r++)o[r]=a=a+n[r-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=L(o[s]++,s))}}function D(e){var t;for(t=0;t<a;t++)e.dyn_ltree[2*t]=0;for(t=0;t<s;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function P(e){8<e.bi_valid?E(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function A(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function M(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&A(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!A(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function z(e,t,n){var r,i,a,s,l=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*l]<<8|e.pending_buf[e.d_buf+2*l+1],i=e.pending_buf[e.l_buf+l],l++,0===r?O(e,i,t):(O(e,(a=y[i])+o+1,t),0!==(s=u[a])&&k(e,i-=v[a],s),O(e,a=C(--r),n),0!==(s=d[a])&&k(e,r-=T[a],s)),l<e.last_lit;);O(e,256,t)}function R(e,t){var n,r,i,o=t.dyn_tree,a=t.stat_desc.static_tree,s=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<c;n++)0!==o[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):o[2*n+1]=0;for(;e.heap_len<2;)o[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=a[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)M(e,o,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],M(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,o[2*i]=o[2*n]+o[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,o[2*n+1]=o[2*r+1]=i,e.heap[1]=i++,M(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,o,a,s,c=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(o=0;o<=l;o++)e.bl_count[o]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)g<(o=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(o=g,m++),c[2*r+1]=o,u<r||(e.bl_count[o]++,a=0,p<=r&&(a=h[r-p]),s=c[2*r],e.opt_len+=s*(o+a),f&&(e.static_len+=s*(d[2*r+1]+a)));if(0!==m){do{for(o=g-1;0===e.bl_count[o];)o--;e.bl_count[o]--,e.bl_count[o+1]+=2,e.bl_count[g]--,m-=2}while(0<m);for(o=g;0!==o;o--)for(r=e.bl_count[o];0!==r;)u<(i=e.heap[--n])||(c[2*i+1]!==o&&(e.opt_len+=(o-c[2*i+1])*c[2*i],c[2*i+1]=o),r--)}}(e,t),I(o,u,e.bl_count)}function N(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,(s=0)===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4))}function j(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)for(;O(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(O(e,i,e.bl_tree),s--),O(e,16,e.bl_tree),k(e,s-3,2)):s<=10?(O(e,17,e.bl_tree),k(e,s-3,3)):(O(e,18,e.bl_tree),k(e,s-11,7));o=i,(s=0)===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4)}}i(T);var V=!1;function U(e,t,n,i){var o,a,s;k(e,0+(i?1:0),3),a=t,s=n,P(o=e),E(o,s),E(o,~s),r.arraySet(o.pending_buf,o.window,a,s,o.pending),o.pending+=s}n._tr_init=function(e){V||(function(){var e,t,n,r,i,o=new Array(l+1);for(r=n=0;r<28;r++)for(v[r]=n,e=0;e<1<<u[r];e++)y[n++]=r;for(y[n-1]=r,r=i=0;r<16;r++)for(T[r]=i,e=0;e<1<<d[r];e++)m[i++]=r;for(i>>=7;r<s;r++)for(T[r]=i<<7,e=0;e<1<<d[r]-7;e++)m[256+i++]=r;for(t=0;t<=l;t++)o[t]=0;for(e=0;e<=143;)p[2*e+1]=8,e++,o[8]++;for(;e<=255;)p[2*e+1]=9,e++,o[9]++;for(;e<=279;)p[2*e+1]=7,e++,o[7]++;for(;e<=287;)p[2*e+1]=8,e++,o[8]++;for(I(p,287,o),e=0;e<s;e++)g[2*e+1]=5,g[2*e]=L(e,5);w=new S(p,u,257,a,l),b=new S(g,d,0,s,l),_=new S(new Array(0),f,0,19,7)}(),V=!0),e.l_desc=new x(e.dyn_ltree,w),e.d_desc=new x(e.dyn_dtree,b),e.bl_desc=new x(e.bl_tree,_),e.bi_buf=0,e.bi_valid=0,D(e)},n._tr_stored_block=U,n._tr_flush_block=function(e,t,n,r){var i,a,s=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<o;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),R(e,e.l_desc),R(e,e.d_desc),s=function(e){var t;for(N(e,e.dyn_ltree,e.l_desc.max_code),N(e,e.dyn_dtree,e.d_desc.max_code),R(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*h[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=n+5,n+4<=i&&-1!==t?U(e,t,n,r):4===e.strategy||a===i?(k(e,2+(r?1:0),3),z(e,p,g)):(k(e,4+(r?1:0),3),function(e,t,n,r){var i;for(k(e,t-257,5),k(e,n-1,5),k(e,r-4,4),i=0;i<r;i++)k(e,e.bl_tree[2*h[i]+1],3);j(e,e.dyn_ltree,t-1),j(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,s+1),z(e,e.dyn_ltree,e.dyn_dtree)),D(e),r&&P(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(y[n]+o+1)]++,e.dyn_dtree[2*C(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;k(e,2,3),O(e,256,p),16===(t=e).bi_valid?(E(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":1}],8:[function(e,t,n){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(e,t,n){"use strict";var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,f=8;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=h,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")},64014:function(){window.location.hostname.indexOf("spie.org")>-1?"www.spie.org"==window.location.hostname||"spie.org"==window.location.hostname?appKeyValue="3435395890ed4b548b8f9e825f95816c":appKeyValue="9faca9c7703147e5a6b42e4f9155d269":window.location.hostname.indexOf("spiedigitallibrary.org")>-1?"www.spiedigitallibrary.org"==window.location.hostname?appKeyValue="087e9dc9211e4bd2b01b1bf77b2d503e":appKeyValue="ac3700103a974af4ad1b854bf1bd992e":appKeyValue="373b350821df4c7d8b96d989ffe5aaff";var e=0;if(TLTCheck3=setInterval((function(){if(++e>6&&clearInterval(TLTCheck3),"object"==typeof TLT){var t=TLT.getDefaultConfig();t.core.buildNote="Tealeaf6.4.72-20240611",t.services.message.privacy=[{exclude:!0,targets:[".tlCollect"],maskType:3}],t.services.message.privacyPatterns=[],t.services.domCapture.diffEnabled=!1,t.modules.performance.performanceAlert={enabled:!1,threshold:3e3,maxAlerts:100,blacklist:[]},t.modules.replay.domCapture.enabled=!1,t.modules.replay.mousemove.enabled=!1,t.core.modules.overstat.enabled=!1,t.core.modules.gestures.enabled=!1,t.core.modules.ajaxListener.enabled=!1,TLT.initLibAdv(appKeyValue,"https://lib-us-1.brilliantcollector.com/collector/collectorPost",t,!0,!1,!1,!1,!1),clearInterval(TLTCheck3)}}),200),"function"!=typeof t)var t=function(e,t,n,r,i){};if(!n)var n="-_-";if("function"!=typeof r)var r=function(e){for(var t in e)window[t]=e[t]};if("function"!=typeof i){var i=function(){};cmDisplayShop9s=i}if("function"==typeof cmMakeTag?function(e){function t(e){return e&&"string"!=typeof e&&(e=e.join(n)),e}function r(e,n,r,i,o,a,s,l,c){"undefined"!=typeof cm_currencyCode&&cm_currencyCode||(cm_currencyCode=""),o=o.toString().replace(cmPricePattern,""),n=n.toString().replace(cmSpacePattern,"");var u=t(s),d=t(l);return["pr",n,"pm",r,"qt",i,"bp",o,"cg",a,"cmAttributes",s,"cmExtraFields",l,"ha1",cm_hex_sha1((u?u+"|||":"")+(d?"extra"+d:"")),"cc",cm_currencyCode,"at",e,"tid","4","pc","N","cm_vc",c]}e.cmAddShop=function(e){var n=e.concat();function r(e,t,n,r){var i,o,a,s,l=n[e];void 0!==l?(i=r[l])&&(o=i[5],a=i[7],s=t[5],t[5]=parseInt(o)+parseInt(t[5]),t[7]=(t[7]*s+a*o)/t[5],r[l]=t):(n[e]=r.length,r[r.length]=t)}r(e[1]+"|"+e[9]+"|"+t(e[11])+"|"+t(e[13]),e,__sRefArray,__sArray),r(n[1],n,__sRefSkuArray,__sSkuArray)},e.cmCreateShopAction5Tag=function(e,t,i,o,a,s,l,c){c||cmExtractParameter("cm_vc",document.location.href),cmAddShop(r("5",e,t,i,o,a,s,l,c));var u,d=new Array;if("undefined"!=typeof cm_currencyCode&&cm_currencyCode||(cm_currencyCode=""),null!=s&&""!==s)for(d=s.split(n),u=0;u<d.length;++u)""==d[u]&&(d[u]=null);TLT.isInitialized()&&TLT.logCustomEvent("cartAdd",{description:"cartAdd",currency:cm_currencyCode,itemProductId:e,itemProductName:t,itemQuantity:i,itemBasePrice:o,itemCategory:a,at1:d[0],at2:d[1],at3:d[2],at4:d[3],at5:d[4],at6:d[5],at7:d[6],at8:d[7],at9:d[8],at10:d[9],at11:d[10],at12:d[11],at13:d[12],at14:d[13],at15:d[14],at16:d[15],at17:d[16],at18:d[17],at19:d[18],at20:d[19],at21:d[20],at22:d[21],at23:d[22],at24:d[23],at25:d[24],at26:d[25],at27:d[26],at28:d[27],at29:d[28],at30:d[29],at31:d[30],at32:d[31],at33:d[32],at34:d[33],at35:d[34],at36:d[35],at37:d[36],at38:d[37],at39:d[38],at40:d[39],at41:d[40],at42:d[41],at43:d[42],at44:d[43],at45:d[44],itemDescription:d[45],itemColor:d[46],itemSize:d[47],productImageURL:d[48],productURL:d[49]})},e.cmCreateShopAction9Tag=function(e,t,i,o,a,s,l,c,u,d){l=l.toString().replace(cmPricePattern,""),cmAddShop(r("9",e,t,i,o,c,u,d).concat(["cd",a,"on",s,"tr",l]));var f,h=new Array;if("undefined"!=typeof cm_currencyCode&&cm_currencyCode||(cm_currencyCode=""),null!=u&&""!==u)for(h=u.split(n),f=0;f<h.length;++f)""==h[f]&&(h[f]=null);TLT.isInitialized()&&TLT.logCustomEvent("ibmcartPurchaseItem",{description:"ibmcartPurchaseItem",orderID:s,orderTotal:l,registrationid:a,currency:cm_currencyCode,itemProductId:e,itemProductName:t,itemQuantity:i,itemBasePrice:o,itemCategory:c,at1:h[0],at2:h[1],at3:h[2],at4:h[3],at5:h[4],at6:h[5],at7:h[6],at8:h[7],at9:h[8],at10:h[9],at11:h[10],at12:h[11],at13:h[12],at14:h[13],at15:h[14],at16:h[15],at17:h[16],at18:h[17],at19:h[18],at20:h[19],at21:h[20],at22:h[21],at23:h[22],at24:h[23],at25:h[24],at26:h[25],at27:h[26],at28:h[27],at29:h[28],at30:h[29],at31:h[30],at32:h[31],at33:h[32],at34:h[33],at35:h[34],at36:h[35],at37:h[36],at38:h[37],at39:h[38],at40:h[39],at41:h[40],at42:h[41],at43:h[42],at44:h[43],at45:h[44],itemDescription:h[45],itemColor:h[46],itemSize:h[47],productImageURL:h[48],productURL:h[49]})}}(window):(cmCreateShopAction5Tag=function(e,t,r,i,o,a,s,l){var c,u=new Array;if("undefined"!=typeof cm_currencyCode&&cm_currencyCode||(cm_currencyCode=""),null!=a&&""!==a)for(u=a.split(n),c=0;c<u.length;++c)""==u[c]&&(u[c]=null);TLT.isInitialized()&&TLT.logCustomEvent("cartAdd",{description:"cartAdd",orderID:"",orderTotal:"",currency:cm_currencyCode,itemProductId:e,itemProductName:t,itemQuantity:r,itemBasePrice:i,itemCategory:o,at1:u[0],at2:u[1],at3:u[2],at4:u[3],at5:u[4],at6:u[5],at7:u[6],at8:u[7],at9:u[8],at10:u[9],at11:u[10],at12:u[11],at13:u[12],at14:u[13],at15:u[14],at16:u[15],at17:u[16],at18:u[17],at19:u[18],at20:u[19],at21:u[20],at22:u[21],at23:u[22],at24:u[23],at25:u[24],at26:u[25],at27:u[26],at28:u[27],at29:u[28],at30:u[29],at31:u[30],at32:u[31],at33:u[32],at34:u[33],at35:u[34],at36:u[35],at37:u[36],at38:u[37],at39:u[38],at40:u[39],at41:u[40],at42:u[41],at43:u[42],at44:u[43],at45:u[44],itemDescription:u[45],itemColor:u[46],itemSize:u[47],productImageURL:u[48],productURL:u[49]})},cmCreateShopAction9Tag=function(e,t,r,i,o,a,s,l,c,u){var d,f=new Array;if("undefined"!=typeof cm_currencyCode&&cm_currencyCode||(cm_currencyCode=""),null!=c&&""!==c)for(f=c.split(n),d=0;d<f.length;++d)""==f[d]&&(f[d]=null);TLT.isInitialized()&&TLT.logCustomEvent("ibmcartPurchaseItem",{description:"ibmcartPurchaseItem",orderID:a,orderTotal:s,registrationid:o,currency:cm_currencyCode,itemProductId:e,itemProductName:t,itemQuantity:r,itemBasePrice:i,itemCategory:l,at1:f[0],at2:f[1],at3:f[2],at4:f[3],at5:f[4],at6:f[5],at7:f[6],at8:f[7],at9:f[8],at10:f[9],at11:f[10],at12:f[11],at13:f[12],at14:f[13],at15:f[14],at16:f[15],at17:f[16],at18:f[17],at19:f[18],at20:f[19],at21:f[20],at22:f[21],at23:f[22],at24:f[23],at25:f[24],at26:f[25],at27:f[26],at28:f[27],at29:f[28],at30:f[29],at31:f[30],at32:f[31],at33:f[32],at34:f[33],at35:f[34],at36:f[35],at37:f[36],at38:f[37],at39:f[38],at40:f[39],at41:f[40],at42:f[41],at43:f[42],at44:f[43],at45:f[44],itemDescription:f[45],itemColor:f[46],itemSize:f[47],productImageURL:f[48],productURL:f[49]})}),window.location.hostname.indexOf("spie.org")>-1)if("www.spie.org"==window.location.hostname||"spie.org"==window.location.hostname)var o="SPIE";else o="SPIE";else o=window.location.hostname.indexOf("spiedigitallibrary.org")>-1?(window.location.hostname,"SPDL"):"SPDL";var a=0,s=setInterval((function(){++a>6?clearInterval(s):"object"==typeof TLT&&(function(){if(function(e,t,n,r,i,o){"function"==typeof cmMakeTag&&cmMakeTag(["tid","1","pi",e,"cg",t,"se",void 0,"sr",void 0,"cmAttributes",void 0,"cmExtraFields",void 0]);var a,s=new Array,l=setInterval((function(){++a>6?clearInterval(l):TLT.isInitialized()&&(TLT.logCustomEvent("ibmpageView",{description:"ibmpageView",pageID:e,category:t,PageURL:window.location.href,RefURL:document.referrer,at1:s[0],at2:s[1],at3:s[2],at4:s[3],at5:s[4],at6:s[5],at7:s[6],at8:s[7],at9:s[8],at10:s[9],at11:s[10],at12:s[11],at13:s[12],at14:s[13],at15:s[14],at16:s[15],at17:s[16],at18:s[17],at19:s[18],at20:s[19],at21:s[20],at22:s[21],at23:s[22],at24:s[23],at25:s[24],at26:s[25],at27:s[26],at28:s[27],at29:s[28],at30:s[29],at31:s[30],at32:s[31],at33:s[32],at34:s[33],at35:s[34],at36:s[35],at37:s[36],at38:s[37],at39:s[38],at40:s[39],at41:s[40],at42:s[41],at43:s[42],at44:s[43],at45:s[44],at46:s[45],at47:s[46],at48:s[47],at49:s[48],at50:s[49]}),clearInterval(l))}),200)}(o+":"+function(){if("/"==window.location.pathname)var e="HOMEPAGE";else e=window.location.pathname;var t=e.indexOf("?");-1!=t&&(e=e.substr(0,t));var n=e.indexOf("#");-1!=n&&(e=e.substr(0,n));var r=e.indexOf(";");return-1!=r&&(e=e.substr(0,r)),e}(),o),"object"==typeof acousticRegistrationPayload)var e=acousticRegistrationPayload.RegistrationID,t=acousticRegistrationPayload.Email;var n=sessionStorage.getItem("cmRgSent"),r="";e>""&&t>""&&"true"!=n&&(t>""&&(r=t),function(e,t,n,r,i,o,a){"function"==typeof cmMakeTag&&cmMakeTag(["tid","2","cd",e,"em",t,"ct",n,"sa",r,"zp",i,"cy",o,"cmAttributes",void 0]);var s=new Array;TLT.isInitialized()&&TLT.logCustomEvent("ibmregistration",{description:"ibmregistration",registrationid:e,email_address:t,recipientID:"",registeredCity:n,registeredState:r,registeredZipCode:i,registeredCountry:o,at1:s[0],at2:s[1],at3:s[2],at4:s[3],at5:s[4],at6:s[5],at7:s[6],at8:s[7],at9:s[8],at10:s[9],at11:s[10],at12:s[11],at13:s[12],at14:s[13],at15:s[14],at16:s[15],at17:s[16],at18:s[17],at19:s[18],at20:s[19],at21:s[20],at22:s[21],at23:s[22],at24:s[23],at25:s[24],at26:s[25],at27:s[26],at28:s[27],at29:s[28],at30:s[29],at31:s[30],at32:s[31],at33:s[32],at34:s[33],at35:s[34],at36:s[35],at37:s[36],at38:s[37],at39:s[38],at40:s[39],at41:s[40],at42:s[41],at43:s[42],at44:s[43],at45:s[44],at46:s[45],at47:s[46],at48:s[47],at49:s[48],at50:s[49]})}(e,r),sessionStorage.setItem("cmRgSent","true"));var i=(i=window.location.pathname).toLowerCase(),a="";if(i.indexOf("/confirmation")>-1)try{cmCreateShopAction9Tag("".name,1,document.querySelectorAll(".merchandisePrice .price")[1].textContent.replace("$",""),"confirmation",JSON.parse("".defaultimage).ImageUrl,window.location.href)}catch{}if(i.indexOf("/publications/book/")>-1){try{document.getElementById("addToCart").addEventListener("click",(function(){const e=JSON.parse(document.getElementById("pressDetailData").innerText.trim()),t=document.querySelector(".productSelectBtn.selected .displayPrice"),n=t?t.textContent:null;cmCreateShopAction5Tag("cartAddBook",e.title,1,n.trim().replace("$",""),"book",e.imageUrl,window.location.href)}))}catch{}var s=0,l=setInterval((function(){if(++s>8)clearInterval(l);else if(document.querySelector("#bookDetails")){try{a=pubData.imageUrl}catch(e){}var e=window.location.pathname.split("/")[3],t=document.title.split(" |")[0];TLT.logCustomEvent("ibmproductView",{description:"ibmproductView",Email:r,itemProductId:e,itemProductName:t,itemCategory:"book",productImageURL:a,productURL:window.location.href}),clearInterval(l)}}),500)}if(i.indexOf("/merchandise/")>-1){try{document.getElementById("addToCartButton").addEventListener("click",(function(){const e=document.querySelector("#merchandiseDetail");if(null==e)return;const t=e?.dataset;cmCreateShopAction5Tag("cartAddMerch",t.name,1,document.querySelectorAll(".merchandisePrice .price")[1].textContent.replace("$",""),"merchandise",JSON.parse(t.defaultimage).ImageUrl,window.location.href)}))}catch{}s=0,l=setInterval((function(){if(++s>8)clearInterval(l);else if(document.querySelector("#merchandiseDetail")){var e=document.querySelector("#merchandiseDetail");if(e){try{var t=JSON.parse(e.dataset.defaultimage).ThumbnailUrl}catch(e){}var n=e.dataset.name,i=e.dataset.name;TLT.logCustomEvent("ibmproductView",{description:"ibmproductView",Email:r,itemProductId:n,itemProductName:i,itemCategory:"merchandise",productImageURL:t,productURL:window.location.href})}clearInterval(l)}}),500)}if(i.indexOf("/courses/")>-1){try{document.getElementById("addToCartButton").addEventListener("click",(function(){const e=document.querySelector("#educationCourseDetail");if(null==e)return;const t=e?.dataset;cmCreateShopAction5Tag("cartAddCourse",t.coursecode,t.coursetitle,t.selectedFormat,1,document.querySelectorAll(".coursePrice .price")[2].textContent.replace("$",""),"course",window.location.href)}))}catch{}s=0,l=setInterval((function(){if(++s>8)clearInterval(l);else if(document.querySelector("#educationCourseDetail")){var e=document.querySelector("#educationCourseDetail");if(e){var t=e.dataset.coursecode,n=e.dataset.coursetitle;TLT.logCustomEvent("ibmproductView",{description:"ibmproductView",Email:r,itemProductId:t,itemProductName:n,itemCategory:"courses",productImageURL:a,productURL:window.location.href})}clearInterval(l)}}),500)}if(i.indexOf("/confirmation")>-1)try{var c=document.querySelector("#orderConfirmation .col-lg-6.col-12 span:nth-child(1)").innerText.split(": ")[1],u=document.querySelector(".summaryRowColumnRight").innerText,d=document.querySelector("#orderConfirmation .col-12 span b").innerText,f=document.querySelectorAll(".productDetails.mb10 a");if(f.length>0)for(let e=0;e<f.length;e++){var h=f[e].href,p=h.split("/").pop(),g=f[e].textContent.trim(),m=document.querySelectorAll(".productDetails.mb5")[e].textContent.match(/Qty:\s*(\d+)/)[1],y=document.querySelectorAll(".productDetails.mb5")[e].textContent.match(/@ \$([0-9.]+)/)[1],v=h.split("/")[h.split("/").length-2];a=document.querySelectorAll(".productThumbnail img")[e].src,TLT.logCustomEvent("ibmcartPurchaseItem",{description:"ibmcartPurchaseItem",orderID:c,orderTotal:u,registrationid:d,currency:"USD",itemProductId:p,itemProductName:g,itemQuantity:m,itemBasePrice:y,itemCategory:v,productImageURL:a,productURL:h})}}catch(e){}}(),clearInterval(s))}),200)},50138:function(e,t,n){var r;if(window.TLT)throw new Error("Attempting to recreate TLT. Library may be included more than once on the page.");window.TLT=function(){"use strict";let i,o,a,s,l,c,u,d,f,h,p,g,m,y=!1;const v=6e5;function w(e){window.TLT&&e.persisted&&(TLT.terminationReason="",TLT.init())}function b(e,t,n,r){let i=null,o=null,a=null;const s=g.getOriginAndPath(),l=TLT.getModule("replay"),u=TLT.getModule("TLCookie"),f=TLT.getModule("performance");t&&"string"==typeof t&&(n&&"string"==typeof n||(n=""),o={type:2,screenview:{type:e,name:t,originalUrl:s.path,url:TLT.normalizeUrl("",s.path,2),host:s.origin,referrer:n,title:document.title,queryParams:s.queryParams}},"LOAD"===e?a={type:"screenview_load",name:t}:"UNLOAD"===e&&(a={type:"screenview_unload",name:t}),a&&l&&(i=l.onevent(a)),i&&(o.dcid=i),"LOAD"!==e&&"UNLOAD"!==e||c.post("",o),a&&u&&u.onevent(a),a&&f&&f.onevent(a),a&&d&&d.onevent(a))}const _=(new Date).getTime();let T,S;const x={},C={},E={};let k=!1,O=null;const L=function(){let e,t=[];function n(n){return g.indexOf(t,n)<0&&function(n){const r=f.framesBlacklist;let i,o;if(e=e||[],n=n||null,void 0!==r&&r.length>0){for(o=0;o<r.length;o+=1)i=a.queryAll(r[o],n),i&&i.length>0&&(e=e.concat(i));t=t.concat(a.queryAll("iframe",n))}}(n.ownerDocument),g.indexOf(e,n)>-1}return n.clearCache=function(){e=null},n}();let I=null;const D={config:["getConfig","getDefaultConfig","updateConfig","getCoreConfig","updateCoreConfig","getModuleConfig","updateModuleConfig","getServiceConfig","updateServiceConfig"],queue:["post","setAutoFlush","flushAll","setXHRLog"],browserBase:["getXPathFromNode","processDOMEvent"]},P=function(){const e={};return{normalizeModuleEvents:function(t,n,r,i){const o=e[t];let a=!1,s=!1;r=r||q._getLocalTop(),o||(e[t]={loadFired:!1,pageHideFired:!1},g.forEach(n,(function(e){switch(e.name){case"load":a=!0,n.push(g.mixin(g.mixin({},e),{name:"pageshow"}));break;case"unload":s=!0,n.push(g.mixin(g.mixin({},e),{name:"pagehide"})),n.push(g.mixin(g.mixin({},e),{name:"beforeunload"}));break;case"change":g.isLegacyIE&&n.push(g.mixin(g.mixin({},e),{name:"propertychange"}))}})),a||s?(e[t].silentLoad=!a,e[t].silentUnload=!s,a||n.push({name:"load",target:r}),s||n.push({name:"unload",target:r})):delete e[t])},canPublish:function(t,n){if(!1===Object.prototype.hasOwnProperty.call(e,t))return!0;const r=e[t];switch(n.type){case"load":return r.pageHideFired=!1,r.loadFired=!0,!r.silentLoad;case"pageshow":return r.pageHideFired=!1,n.type="load",!r.loadFired&&!r.silentLoad;case"pagehide":return n.type="unload",r.loadFired=!1,r.pageHideFired=!0,!r.silentUnload;case"unload":case"beforeunload":return n.type="unload",r.loadFired=!1,!r.pageHideFired&&!r.silentUnload}return!0},isUnload:function(e){return"object"==typeof e&&("unload"===e.type||"beforeunload"===e.type||"pagehide"===e.type)}}}();let A={},M={},z={},R=[],N=function(){},j=null,V=!0,U=function(){},B=!1;const H=function(){const e=window.location;let t=e.pathname,n=e.hash,r="";return function(){let i=r;const o=e.pathname,a=e.hash;o!==t?i=TLT.normalizeUrl("",o+a,2):a!==n&&(i=TLT.normalizeUrl("",a,2)),i!==r&&(r&&b("UNLOAD",r),b("LOAD",i),r=i,t=o,n=a)}}();let F=function(e,t){let n,r,i,o,s,l,c=!1;const u=f.blockedElements;if(!u||!u.length)return F=function(){return!1},c;if(!e||!e.nodeType)return c;for(t=t||g.getDocument(e),n=0,i=u.length;n<i&&!c;n+=1)for(s=a.queryAll(u[n],t),r=0,l=s.length;r<l&&!c;r+=1)o=s[r],c=o.contains?o.contains(e):o===e;return c};const q={getTLTSessionCookieInfo:function(){return x},_loadGlobalsForUnitTesting:function(e){g=e.utils,i=e.getService("ajax"),o=e.getService("browserBase"),a=e.getService("browser"),s=e.getService("config"),l=e.getService("domCapture"),c=e.getService("queue"),u=e.getService("serializer"),d=e.getModule("dataLayer"),f=s?s.getCoreConfig():null},getStartTime:function(){return _},getPageId:function(){return T||"#"},getTabId:function(){return S},isMousemovementDetected:function(){return y},setSessionCookieInfo:function(e,t,n){x.tltCookieName=t,x.tltCookieValue=n},getLibraryVersion:function(){return"6.4.72"},getCurrentWebEvent:function(){return A},normalizeUrl:function(e,t,n){let r;const i=this.getCoreConfig();if(i.normalization&&i.normalization.urlFunction){r=i.normalization.urlFunction,"string"==typeof r&&(r=g.access(r));try{t=r(t,n)}catch(e){}}return t},getCurrentOffset:function(){return this.getService("message").getCurrentOffset()},initLib:function(e,t,n){return this.initLibAdv(e,t,{},!0,!0,!0,!0,!0,n)},initLibAdv:function(i,o,a,s,l,c,u,d,f){return"object"==typeof pako&&void 0!==pako&&void 0!==pako.deflate&&void 0!==pako.Deflate?console&&console.info("Pako is already loaded."):!0===s&&(window.pako=function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){if(o)return o(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var c=n[a]={exports:{}};t[a][0].call(c.exports,(function(e){return i(t[a][1][e]||e)}),c,c.exports,e,t,n,r)}return n[a].exports}for(var o=void 0,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(e){for(var t,n,r=Array.prototype.slice.call(arguments,1);r.length;){var i=r.shift();if(i){if("object"!=typeof i)throw new TypeError(i+"must be non-object");for(var o in i)t=i,n=o,Object.prototype.hasOwnProperty.call(t,n)&&(e[o]=i[o])}}return e},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,n,r,i){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+r),i);else for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){var t,n,r,i,o,a;for(t=r=0,n=e.length;t<n;t++)r+=e[t].length;for(a=new Uint8Array(r),t=i=0,n=e.length;t<n;t++)o=e[t],a.set(o,i),i+=o.length;return a}},o={arraySet:function(e,t,n,r,i){for(var o=0;o<r;o++)e[i+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(r)},{}],2:[function(e,t,n){var r=e("./common"),i=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){o=!1}for(var a=new r.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65534&&(e.subarray&&o||!e.subarray&&i))return String.fromCharCode.apply(null,r.shrinkBuf(e,t));for(var n="",a=0;a<t;a++)n+=String.fromCharCode(e[a]);return n}a[254]=a[254]=1,n.string2buf=function(e){var t,n,i,o,a,s=e.length,l=0;for(o=0;o<s;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),l+=n<128?1:n<2048?2:n<65536?3:4;for(t=new r.Buf8(l),o=a=0;a<l;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<s&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[a++]=n:(n<2048?t[a++]=192|n>>>6:(n<65536?t[a++]=224|n>>>12:(t[a++]=240|n>>>18,t[a++]=128|n>>>12&63),t[a++]=128|n>>>6&63),t[a++]=128|63&n);return t},n.buf2binstring=function(e){return l(e,e.length)},n.binstring2buf=function(e){for(var t=new r.Buf8(e.length),n=0,i=t.length;n<i;n++)t[n]=e.charCodeAt(n);return t},n.buf2string=function(e,t){var n,r,i,o,s=t||e.length,c=new Array(2*s);for(n=r=0;n<s;)if((i=e[n++])<128)c[r++]=i;else if(4<(o=a[i]))c[r++]=65533,n+=o-1;else{for(i&=2===o?31:3===o?15:7;1<o&&n<s;)i=i<<6|63&e[n++],o--;1<o?c[r++]=65533:i<65536?c[r++]=i:(i-=65536,c[r++]=55296|i>>10&1023,c[r++]=56320|1023&i)}return l(c,r)},n.utf8border=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;0<=n&&128==(192&e[n]);)n--;return n<0||0===n?t:n+a[e[n]]>t?n:t}},{"./common":1}],3:[function(e,t,n){t.exports=function(e,t,n,r){for(var i=65535&e,o=e>>>16&65535,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;o=o+(i=i+t[r++]|0)|0,--a;);i%=65521,o%=65521}return i|o<<16}},{}],4:[function(e,t,n){var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();t.exports=function(e,t,n,i){var o=r,a=i+n;e^=-1;for(var s=i;s<a;s++)e=e>>>8^o[255&(e^t[s])];return~e}},{}],5:[function(e,t,n){var r,i=e("../utils/common"),o=e("./trees"),a=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,u=0,d=-2,f=2,h=8,p=286,g=30,m=19,y=2*p+1,v=15,w=3,b=258,_=b+w+1,T=42,S=113;function x(e,t){return e.msg=l[t],t}function C(e){return(e<<1)-(4<e?9:0)}function E(e){for(var t=e.length;0<=--t;)e[t]=0}function k(e){var t=e.state,n=t.pending;n>e.avail_out&&(n=e.avail_out),0!==n&&(i.arraySet(e.output,t.pending_buf,t.pending_out,n,e.next_out),e.next_out+=n,t.pending_out+=n,e.total_out+=n,e.avail_out-=n,t.pending-=n,0===t.pending&&(t.pending_out=0))}function O(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,k(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function I(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function D(e,t){var n,r,i=e.max_chain_length,o=e.strstart,a=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-_?e.strstart-(e.w_size-_):0,c=e.window,u=e.w_mask,d=e.prev,f=e.strstart+b,h=c[o+a-1],p=c[o+a];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(n=t)+a]===p&&c[n+a-1]===h&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<f);if(r=b-(f-o),o=f-b,a<r){if(e.match_start=t,s<=(a=r))break;h=c[o+a-1],p=c[o+a]}}}while((t=d[t&u])>l&&0!=--i);return a<=e.lookahead?a:e.lookahead}function P(e){var t,n,r,o,l,c,u,d,f,h,p=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-_)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=n=e.hash_size;r=e.head[--t],e.head[t]=p<=r?r-p:0,--n;);for(t=n=p;r=e.prev[--t],e.prev[t]=p<=r?r-p:0,--n;);o+=p}if(0===e.strm.avail_in)break;if(c=e.strm,u=e.window,d=e.strstart+e.lookahead,h=void 0,(f=o)<(h=c.avail_in)&&(h=f),n=0===h?0:(c.avail_in-=h,i.arraySet(u,c.input,c.next_in,h,d),1===c.state.wrap?c.adler=a(c.adler,u,h,d):2===c.state.wrap&&(c.adler=s(c.adler,u,h,d)),c.next_in+=h,c.total_in+=h,h),e.lookahead+=n,e.lookahead+e.insert>=w)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+w-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<w)););}while(e.lookahead<_&&0!==e.strm.avail_in)}function A(e,t){for(var n,r;;){if(e.lookahead<_){if(P(e),e.lookahead<_&&t===c)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==n&&e.strstart-n<=e.w_size-_&&(e.match_length=D(e,n)),e.match_length>=w)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-w),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=w){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else r=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(r&&(O(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<w-1?e.strstart:w-1,4===t?(O(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?1:2}function M(e,t){for(var n,r,i;;){if(e.lookahead<_){if(P(e),e.lookahead<_&&t===c)return 1;if(0===e.lookahead)break}if(n=0,e.lookahead>=w&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=w-1,0!==n&&e.prev_length<e.max_lazy_match&&e.strstart-n<=e.w_size-_&&(e.match_length=D(e,n),e.match_length<=5&&(1===e.strategy||e.match_length===w&&4096<e.strstart-e.match_start)&&(e.match_length=w-1)),e.prev_length>=w&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-w,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-w),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+w-1])&e.hash_mask,n=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=w-1,e.strstart++,r&&(O(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((r=o._tr_tally(e,0,e.window[e.strstart-1]))&&O(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(r=o._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<w-1?e.strstart:w-1,4===t?(O(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?1:2}function z(e,t,n,r,i){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=i}function R(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=h,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(2*y),this.dyn_dtree=new i.Buf16(2*(2*g+1)),this.bl_tree=new i.Buf16(2*(2*m+1)),E(this.dyn_ltree),E(this.dyn_dtree),E(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(v+1),this.heap=new i.Buf16(2*p+1),E(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*p+1),E(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function N(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=f,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?T:S,e.adler=2===t.wrap?0:1,t.last_flush=c,o._tr_init(t),u):x(e,d)}function j(e){var t,n=N(e);return n===u&&((t=e.state).window_size=2*t.w_size,E(t.head),t.max_lazy_match=r[t.level].max_lazy,t.good_match=r[t.level].good_length,t.nice_match=r[t.level].nice_length,t.max_chain_length=r[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=w-1,t.match_available=0,t.ins_h=0),n}function V(e,t,n,r,o,a){if(!e)return d;var s=1;if(-1===t&&(t=6),r<0?(s=0,r=-r):15<r&&(s=2,r-=16),o<1||9<o||n!==h||r<8||15<r||t<0||9<t||a<0||4<a)return x(e,d);8===r&&(r=9);var l=new R;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=r,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=o+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+w-1)/w),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<o+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=a,l.method=n,j(e)}r=[new z(0,0,0,0,(function(e,t){var n=65535;for(n>e.pending_buf_size-5&&(n=e.pending_buf_size-5);;){if(e.lookahead<=1){if(P(e),0===e.lookahead&&t===c)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+n;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,O(e,!1),0===e.strm.avail_out))return 1;if(e.strstart-e.block_start>=e.w_size-_&&(O(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(O(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(O(e,!1),e.strm.avail_out),1)})),new z(4,4,8,4,A),new z(4,5,16,8,A),new z(4,6,32,32,A),new z(4,4,16,16,M),new z(8,16,32,32,M),new z(8,16,128,128,M),new z(8,32,128,256,M),new z(32,128,258,1024,M),new z(32,258,258,4096,M)],n.deflateInit=function(e,t){return V(e,t,h,15,8,0)},n.deflateInit2=V,n.deflateReset=j,n.deflateResetKeep=N,n.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,u):d},n.deflate=function(e,t){var n,i,a,l;if(!e||!e.state||5<t||t<0)return e?x(e,d):d;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return x(e,0===e.avail_out?-5:d);if(i.strm=e,n=i.last_flush,i.last_flush=t,i.status===T)if(2===i.wrap)e.adler=0,L(i,31),L(i,139),L(i,8),i.gzhead?(L(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),L(i,255&i.gzhead.time),L(i,i.gzhead.time>>8&255),L(i,i.gzhead.time>>16&255),L(i,i.gzhead.time>>24&255),L(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),L(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(L(i,255&i.gzhead.extra.length),L(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(L(i,0),L(i,0),L(i,0),L(i,0),L(i,0),L(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),L(i,3),i.status=S);else{var f=h+(i.w_bits-8<<4)<<8;f|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(f|=32),f+=31-f%31,i.status=S,I(i,f),0!==i.strstart&&(I(i,e.adler>>>16),I(i,65535&e.adler)),e.adler=1}if(69===i.status)if(i.gzhead.extra){for(a=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),k(e),a=i.pending,i.pending!==i.pending_buf_size));)L(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73;if(73===i.status)if(i.gzhead.name){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),k(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}L(i,l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91;if(91===i.status)if(i.gzhead.comment){a=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),k(e),a=i.pending,i.pending===i.pending_buf_size)){l=1;break}L(i,l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0)}while(0!==l);i.gzhead.hcrc&&i.pending>a&&(e.adler=s(e.adler,i.pending_buf,i.pending-a,a)),0===l&&(i.status=103)}else i.status=103;if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&k(e),i.pending+2<=i.pending_buf_size&&(L(i,255&e.adler),L(i,e.adler>>8&255),e.adler=0,i.status=S)):i.status=S),0!==i.pending){if(k(e),0===e.avail_out)return i.last_flush=-1,u}else if(0===e.avail_in&&C(t)<=C(n)&&4!==t)return x(e,-5);if(666===i.status&&0!==e.avail_in)return x(e,-5);if(0!==e.avail_in||0!==i.lookahead||t!==c&&666!==i.status){var p=2===i.strategy?function(e,t){for(var n;;){if(0===e.lookahead&&(P(e),0===e.lookahead)){if(t===c)return 1;break}if(e.match_length=0,n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,n&&(O(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(O(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var n,r,i,a,s=e.window;;){if(e.lookahead<=b){if(P(e),e.lookahead<=b&&t===c)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=w&&0<e.strstart&&(r=s[i=e.strstart-1])===s[++i]&&r===s[++i]&&r===s[++i]){a=e.strstart+b;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<a);e.match_length=b-(a-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=w?(n=o._tr_tally(e,1,e.match_length-w),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(n=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),n&&(O(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(O(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?1:2}(i,t):r[i.level].func(i,t);if(3!==p&&4!==p||(i.status=666),1===p||3===p)return 0===e.avail_out&&(i.last_flush=-1),u;if(2===p&&(1===t?o._tr_align(i):5!==t&&(o._tr_stored_block(i,0,0,!1),3===t&&(E(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),k(e),0===e.avail_out))return i.last_flush=-1,u}return 4!==t?u:i.wrap<=0?1:(2===i.wrap?(L(i,255&e.adler),L(i,e.adler>>8&255),L(i,e.adler>>16&255),L(i,e.adler>>24&255),L(i,255&e.total_in),L(i,e.total_in>>8&255),L(i,e.total_in>>16&255),L(i,e.total_in>>24&255)):(I(i,e.adler>>>16),I(i,65535&e.adler)),k(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?u:1)},n.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==T&&69!==t&&73!==t&&91!==t&&103!==t&&t!==S&&666!==t?x(e,d):(e.state=null,t===S?x(e,-3):u):d},n.deflateSetDictionary=function(e,t){var n,r,o,s,l,c,f,h,p=t.length;if(!e||!e.state)return d;if(2===(s=(n=e.state).wrap)||1===s&&n.status!==T||n.lookahead)return d;for(1===s&&(e.adler=a(e.adler,t,p,0)),n.wrap=0,p>=n.w_size&&(0===s&&(E(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new i.Buf8(n.w_size),i.arraySet(h,t,p-n.w_size,n.w_size,0),t=h,p=n.w_size),l=e.avail_in,c=e.next_in,f=e.input,e.avail_in=p,e.next_in=0,e.input=t,P(n);n.lookahead>=w;){for(r=n.strstart,o=n.lookahead-(w-1);n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+w-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++,--o;);n.strstart=r,n.lookahead=w-1,P(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=w-1,n.match_available=0,e.next_in=c,e.input=f,e.avail_in=l,n.wrap=s,u},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":1,"./adler32":3,"./crc32":4,"./messages":6,"./trees":7}],6:[function(e,t,n){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],7:[function(e,t,n){var r=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var o=15,a=16,s=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],l=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],c=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],u=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],d=new Array(576);i(d);var f=new Array(60);i(f);var h=new Array(512);i(h);var p=new Array(256);i(p);var g=new Array(29);i(g);var m,y,v,w=new Array(30);function b(e,t,n,r,i){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=e&&e.length}function _(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function T(e){return e<256?h[e]:h[256+(e>>>7)]}function S(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function x(e,t,n){e.bi_valid>a-n?(e.bi_buf|=t<<e.bi_valid&65535,S(e,e.bi_buf),e.bi_buf=t>>a-e.bi_valid,e.bi_valid+=n-a):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=n)}function C(e,t,n){x(e,n[2*t],n[2*t+1])}function E(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}function k(e,t,n){var r,i,a=new Array(o+1),s=0;for(r=1;r<=o;r++)a[r]=s=s+n[r-1]<<1;for(i=0;i<=t;i++){var l=e[2*i+1];0!==l&&(e[2*i]=E(a[l]++,l))}}function O(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function L(e){8<e.bi_valid?S(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function I(e,t,n,r){var i=2*t,o=2*n;return e[i]<e[o]||e[i]===e[o]&&r[t]<=r[n]}function D(e,t,n){for(var r=e.heap[n],i=n<<1;i<=e.heap_len&&(i<e.heap_len&&I(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!I(t,r,e.heap[i],e.depth));)e.heap[n]=e.heap[i],n=i,i<<=1;e.heap[n]=r}function P(e,t,n){var r,i,o,a,c=0;if(0!==e.last_lit)for(;r=e.pending_buf[e.d_buf+2*c]<<8|e.pending_buf[e.d_buf+2*c+1],i=e.pending_buf[e.l_buf+c],c++,0===r?C(e,i,t):(C(e,(o=p[i])+256+1,t),0!==(a=s[o])&&x(e,i-=g[o],a),C(e,o=T(--r),n),0!==(a=l[o])&&x(e,r-=w[o],a)),c<e.last_lit;);C(e,256,t)}function A(e,t){var n,r,i,a=t.dyn_tree,s=t.stat_desc.static_tree,l=t.stat_desc.has_stree,c=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,n=0;n<c;n++)0!==a[2*n]?(e.heap[++e.heap_len]=u=n,e.depth[n]=0):a[2*n+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,l&&(e.static_len-=s[2*i+1]);for(t.max_code=u,n=e.heap_len>>1;1<=n;n--)D(e,a,n);for(i=c;n=e.heap[1],e.heap[1]=e.heap[e.heap_len--],D(e,a,1),r=e.heap[1],e.heap[--e.heap_max]=n,e.heap[--e.heap_max]=r,a[2*i]=a[2*n]+a[2*r],e.depth[i]=(e.depth[n]>=e.depth[r]?e.depth[n]:e.depth[r])+1,a[2*n+1]=a[2*r+1]=i,e.heap[1]=i++,D(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var n,r,i,a,s,l,c=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,f=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,p=t.stat_desc.extra_base,g=t.stat_desc.max_length,m=0;for(a=0;a<=o;a++)e.bl_count[a]=0;for(c[2*e.heap[e.heap_max]+1]=0,n=e.heap_max+1;n<573;n++)g<(a=c[2*c[2*(r=e.heap[n])+1]+1]+1)&&(a=g,m++),c[2*r+1]=a,u<r||(e.bl_count[a]++,s=0,p<=r&&(s=h[r-p]),l=c[2*r],e.opt_len+=l*(a+s),f&&(e.static_len+=l*(d[2*r+1]+s)));if(0!==m){do{for(a=g-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[g]--,m-=2}while(0<m);for(a=g;0!==a;a--)for(r=e.bl_count[a];0!==r;)u<(i=e.heap[--n])||(c[2*i+1]!==a&&(e.opt_len+=(a-c[2*i+1])*c[2*i],c[2*i+1]=a),r--)}}(e,t),k(a,u,e.bl_count)}function M(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),t[2*(n+1)+1]=65535,r=0;r<=n;r++)i=a,a=t[2*(r+1)+1],++s<l&&i===a||(s<c?e.bl_tree[2*i]+=s:0!==i?(i!==o&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,o=i,(s=0)===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4))}function z(e,t,n){var r,i,o=-1,a=t[1],s=0,l=7,c=4;for(0===a&&(l=138,c=3),r=0;r<=n;r++)if(i=a,a=t[2*(r+1)+1],!(++s<l&&i===a)){if(s<c)for(;C(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==o&&(C(e,i,e.bl_tree),s--),C(e,16,e.bl_tree),x(e,s-3,2)):s<=10?(C(e,17,e.bl_tree),x(e,s-3,3)):(C(e,18,e.bl_tree),x(e,s-11,7));o=i,(s=0)===a?(l=138,c=3):i===a?(l=6,c=3):(l=7,c=4)}}i(w);var R=!1;function N(e,t,n,i){var o,a,s;x(e,0+(i?1:0),3),a=t,s=n,L(o=e),S(o,s),S(o,~s),r.arraySet(o.pending_buf,o.window,a,s,o.pending),o.pending+=s}n._tr_init=function(e){R||(function(){var e,t,n,r,i,a=new Array(o+1);for(r=n=0;r<28;r++)for(g[r]=n,e=0;e<1<<s[r];e++)p[n++]=r;for(p[n-1]=r,r=i=0;r<16;r++)for(w[r]=i,e=0;e<1<<l[r];e++)h[i++]=r;for(i>>=7;r<30;r++)for(w[r]=i<<7,e=0;e<1<<l[r]-7;e++)h[256+i++]=r;for(t=0;t<=o;t++)a[t]=0;for(e=0;e<=143;)d[2*e+1]=8,e++,a[8]++;for(;e<=255;)d[2*e+1]=9,e++,a[9]++;for(;e<=279;)d[2*e+1]=7,e++,a[7]++;for(;e<=287;)d[2*e+1]=8,e++,a[8]++;for(k(d,287,a),e=0;e<30;e++)f[2*e+1]=5,f[2*e]=E(e,5);m=new b(d,s,257,286,o),y=new b(f,l,0,30,o),v=new b(new Array(0),c,0,19,7)}(),R=!0),e.l_desc=new _(e.dyn_ltree,m),e.d_desc=new _(e.dyn_dtree,y),e.bl_desc=new _(e.bl_tree,v),e.bi_buf=0,e.bi_valid=0,O(e)},n._tr_stored_block=N,n._tr_flush_block=function(e,t,n,r){var i,o,a=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,n=4093624447;for(t=0;t<=31;t++,n>>>=1)if(1&n&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),A(e,e.l_desc),A(e,e.d_desc),a=function(e){var t;for(M(e,e.dyn_ltree,e.l_desc.max_code),M(e,e.dyn_dtree,e.d_desc.max_code),A(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*u[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(o=e.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==t?N(e,t,n,r):4===e.strategy||o===i?(x(e,2+(r?1:0),3),P(e,d,f)):(x(e,4+(r?1:0),3),function(e,t,n,r){var i;for(x(e,t-257,5),x(e,n-1,5),x(e,r-4,4),i=0;i<r;i++)x(e,e.bl_tree[2*u[i]+1],3);z(e,e.dyn_ltree,t-1),z(e,e.dyn_dtree,n-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,a+1),P(e,e.dyn_ltree,e.dyn_dtree)),O(e),r&&L(e)},n._tr_tally=function(e,t,n){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&n,e.last_lit++,0===t?e.dyn_ltree[2*n]++:(e.matches++,t--,e.dyn_ltree[2*(p[n]+256+1)]++,e.dyn_dtree[2*T(t)]++),e.last_lit===e.lit_bufsize-1},n._tr_align=function(e){var t;x(e,2,3),C(e,256,d),16===(t=e).bi_valid?(S(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":1}],8:[function(e,t,n){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(e,t,n){var r=e("./zlib/deflate"),i=e("./utils/common"),o=e("./utils/strings"),a=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,c=0,u=-1,d=0,f=8;function h(e){if(!(this instanceof h))return new h(e);this.options=i.assign({level:u,method:f,chunkSize:16384,windowBits:15,memLevel:8,strategy:d,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=r.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(n!==c)throw new Error(a[n]);if(t.header&&r.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?o.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(n=r.deflateSetDictionary(this.strm,p))!==c)throw new Error(a[n]);this._dict_set=!0}}function p(e,t){var n=new h(t);if(n.push(e,!0),n.err)throw n.msg||a[n.err];return n.result}h.prototype.push=function(e,t){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=o.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=r.deflate(s,a))&&n!==c)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(o.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=r.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===c):2!==a||(this.onEnd(c),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===c&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},n.Deflate=h,n.deflate=p,n.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},n.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":1,"./utils/strings":2,"./zlib/deflate":5,"./zlib/messages":6,"./zlib/zstream":8}]},{},[])("/lib/deflate.js")),"function"==typeof Hammer&&void 0!==Hammer?console&&console.info("Hammer:"+Hammer.VERSION+" is already loaded. But you need 1.1.3."):!0===l&&function(i,o){var a=function e(t,n){return new e.Instance(t,n||{})};a.VERSION="1.1.3",a.defaults={behavior:{userSelect:"none",touchAction:"pan-y",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},a.DOCUMENT=document,a.HAS_POINTEREVENTS=navigator.pointerEnabled||navigator.msPointerEnabled,a.HAS_TOUCHEVENTS="ontouchstart"in i,a.IS_MOBILE=/mobile|tablet|ip(ad|hone|od)|android|silk/i.test(navigator.userAgent),a.NO_MOUSEEVENTS=a.HAS_TOUCHEVENTS&&a.IS_MOBILE||a.HAS_POINTEREVENTS,a.CALCULATE_INTERVAL=25;var s={},l=a.DIRECTION_DOWN="down",c=a.DIRECTION_LEFT="left",u=a.DIRECTION_UP="up",d=a.DIRECTION_RIGHT="right",f=a.POINTER_MOUSE="mouse",h=a.POINTER_TOUCH="touch",p=a.POINTER_PEN="pen",g=a.EVENT_START="start",m=a.EVENT_MOVE="move",y=a.EVENT_END="end",v=a.EVENT_RELEASE="release",w=a.EVENT_TOUCH="touch";a.READY=!1,a.plugins=a.plugins||{},a.gestures=a.gestures||{};var b=a.utils={extend:function(e,t,n){for(var r in t)!t.hasOwnProperty(r)||e[r]!==o&&n||(e[r]=t[r]);return e},on:function(e,t,n){e.addEventListener(t,n,!1)},off:function(e,t,n){e.removeEventListener(t,n,!1)},each:function(e,t,n){var r,i;if("forEach"in e)e.forEach(t,n);else if(e.length!==o){for(r=0,i=e.length;i>r;r++)if(!1===t.call(n,e[r],r,e))return}else for(r in e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))return},inStr:function(e,t){return e.indexOf(t)>-1},inArray:function(e,t){if(e.indexOf){var n=e.indexOf(t);return-1!==n&&n}for(var r=0,i=e.length;i>r;r++)if(e[r]===t)return r;return!1},toArray:function(e){return Array.prototype.slice.call(e,0)},hasParent:function(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1},getCenter:function(e){var t=[],n=[],r=[],i=[],o=Math.min,a=Math.max;return 1===e.length?{pageX:e[0].pageX,pageY:e[0].pageY,clientX:e[0].clientX,clientY:e[0].clientY}:(b.each(e,(function(e){t.push(e.pageX),n.push(e.pageY),r.push(e.clientX),i.push(e.clientY)})),{pageX:(o.apply(Math,t)+a.apply(Math,t))/2,pageY:(o.apply(Math,n)+a.apply(Math,n))/2,clientX:(o.apply(Math,r)+a.apply(Math,r))/2,clientY:(o.apply(Math,i)+a.apply(Math,i))/2})},getVelocity:function(e,t,n){return{x:Math.abs(t/e)||0,y:Math.abs(n/e)||0}},getAngle:function(e,t){var n=t.clientX-e.clientX,r=t.clientY-e.clientY;return 180*Math.atan2(r,n)/Math.PI},getDirection:function(e,t){return Math.abs(e.clientX-t.clientX)>=Math.abs(e.clientY-t.clientY)?e.clientX-t.clientX>0?c:d:e.clientY-t.clientY>0?u:l},getDistance:function(e,t){var n=t.clientX-e.clientX,r=t.clientY-e.clientY;return Math.sqrt(n*n+r*r)},getScale:function(e,t){return e.length>=2&&t.length>=2?this.getDistance(t[0],t[1])/this.getDistance(e[0],e[1]):1},getRotation:function(e,t){return e.length>=2&&t.length>=2?this.getAngle(t[1],t[0])-this.getAngle(e[1],e[0]):0},isVertical:function(e){return e==u||e==l},setPrefixedCss:function(e,t,n,r){var i=["","Webkit","Moz","O","ms"];t=b.toCamelCase(t);for(var o=0;o<i.length;o++){var a=t;if(i[o]&&(a=i[o]+a.slice(0,1).toUpperCase()+a.slice(1)),a in e.style){e.style[a]=(null==r||r)&&n||"";break}}},toggleBehavior:function(e,t,n){if(t&&e&&e.style){b.each(t,(function(t,r){b.setPrefixedCss(e,r,t,n)}));var r=n&&function(){return!1};"none"==t.userSelect&&(e.onselectstart=r),"none"==t.userDrag&&(e.ondragstart=r)}},toCamelCase:function(e){return e.replace(/[_-]([a-z])/g,(function(e){return e[1].toUpperCase()}))}},_=a.event={preventMouseEvents:!1,started:!1,shouldDetect:!1,on:function(e,t,n,r){var i=t.split(" ");b.each(i,(function(t){b.on(e,t,n),r&&r(t)}))},off:function(e,t,n,r){var i=t.split(" ");b.each(i,(function(t){b.off(e,t,n),r&&r(t)}))},onTouch:function(e,t,n){var r=this,i=function(i){var o,s=i.type.toLowerCase(),l=a.HAS_POINTEREVENTS,c=b.inStr(s,"mouse");c&&r.preventMouseEvents||(c&&t==g&&0===i.button?(r.preventMouseEvents=!1,r.shouldDetect=!0):l&&t==g?r.shouldDetect=1===i.buttons||T.matchType(h,i):c||t!=g||(r.preventMouseEvents=!0,r.shouldDetect=!0),l&&t!=y&&T.updatePointer(t,i),r.shouldDetect&&(o=r.doDetect.call(r,i,t,e,n)),o==y&&(r.preventMouseEvents=!1,r.shouldDetect=!1,T.reset()),l&&t==y&&T.updatePointer(t,i))};return this.on(e,s[t],i),i},doDetect:function(e,t,n,r){var i=this.getTouchList(e,t),o=i.length,a=t,s=i.trigger,l=o;t==g?s=w:t==y&&(s=v,l=i.length-(e.changedTouches?e.changedTouches.length:1)),l>0&&this.started&&(a=m),this.started=!0;var c=this.collectEventData(n,a,i,e);return t!=y&&r.call(S,c),s&&(c.changedLength=l,c.eventType=s,r.call(S,c),c.eventType=a,delete c.changedLength),a==y&&(r.call(S,c),this.started=!1),a},determineEventTypes:function(){var e;return e=a.HAS_POINTEREVENTS?i.PointerEvent?["pointerdown","pointermove","pointerup pointercancel lostpointercapture"]:["MSPointerDown","MSPointerMove","MSPointerUp MSPointerCancel MSLostPointerCapture"]:a.NO_MOUSEEVENTS?["touchstart","touchmove","touchend touchcancel"]:["touchstart mousedown","touchmove mousemove","touchend touchcancel mouseup"],s[g]=e[0],s[m]=e[1],s[y]=e[2],s},getTouchList:function(e,t){if(a.HAS_POINTEREVENTS)return T.getTouchList();if(e.touches){if(t==m)return e.touches;var n=[],r=[].concat(b.toArray(e.touches),b.toArray(e.changedTouches)),i=[];return b.each(r,(function(e){!1===b.inArray(n,e.identifier)&&i.push(e),n.push(e.identifier)})),i}return e.identifier=1,[e]},collectEventData:function(e,t,n,r){var i=h;return b.inStr(r.type,"mouse")||T.matchType(f,r)?i=f:T.matchType(p,r)&&(i=p),{center:b.getCenter(n),timeStamp:Date.now(),target:r.target,touches:n,eventType:t,pointerType:i,srcEvent:r,preventDefault:function(){var e=this.srcEvent;e.preventManipulation&&e.preventManipulation(),e.preventDefault&&e.preventDefault()},stopPropagation:function(){this.srcEvent.stopPropagation()},stopDetect:function(){return S.stopDetect()}}}},T=a.PointerEvent={pointers:{},getTouchList:function(){var e=[];return b.each(this.pointers,(function(t){e.push(t)})),e},updatePointer:function(e,t){e==y?delete this.pointers[t.pointerId]:(t.identifier=t.pointerId,this.pointers[t.pointerId]=t)},matchType:function(e,t){if(!t.pointerType)return!1;var n=t.pointerType,r={};return r[f]=n===(t.MSPOINTER_TYPE_MOUSE||f),r[h]=n===(t.MSPOINTER_TYPE_TOUCH||h),r[p]=n===(t.MSPOINTER_TYPE_PEN||p),r[e]},reset:function(){this.pointers={}}},S=a.detection={gestures:[],current:null,previous:null,stopped:!1,startDetect:function(e,t){this.current||(this.stopped=!1,this.current={inst:e,startEvent:b.extend({},t),lastEvent:!1,lastCalcEvent:!1,futureCalcEvent:!1,lastCalcData:{},name:""},this.detect(t))},detect:function(e){if(this.current&&!this.stopped){e=this.extendEventData(e);var t=this.current.inst,n=t.options;return b.each(this.gestures,(function(r){!this.stopped&&t.enabled&&n[r.name]&&r.handler.call(r,e,t)}),this),this.current&&(this.current.lastEvent=e),e.eventType==y&&this.stopDetect(),e}},stopDetect:function(){this.previous=b.extend({},this.current),this.current=null,this.stopped=!0},getCalculatedData:function(e,t,n,r,i){var o=this.current,s=!1,l=o.lastCalcEvent,c=o.lastCalcData;l&&e.timeStamp-l.timeStamp>a.CALCULATE_INTERVAL&&(t=l.center,n=e.timeStamp-l.timeStamp,r=e.center.clientX-l.center.clientX,i=e.center.clientY-l.center.clientY,s=!0),(e.eventType==w||e.eventType==v)&&(o.futureCalcEvent=e),(!o.lastCalcEvent||s)&&(c.velocity=b.getVelocity(n,r,i),c.angle=b.getAngle(t,e.center),c.direction=b.getDirection(t,e.center),o.lastCalcEvent=o.futureCalcEvent||e,o.futureCalcEvent=e),e.velocityX=c.velocity.x,e.velocityY=c.velocity.y,e.interimAngle=c.angle,e.interimDirection=c.direction},extendEventData:function(e){var t=this.current,n=t.startEvent,r=t.lastEvent||n;(e.eventType==w||e.eventType==v)&&(n.touches=[],b.each(e.touches,(function(e){n.touches.push({clientX:e.clientX,clientY:e.clientY})})));var i=e.timeStamp-n.timeStamp,o=e.center.clientX-n.center.clientX,a=e.center.clientY-n.center.clientY;return this.getCalculatedData(e,r.center,i,o,a),b.extend(e,{startEvent:n,deltaTime:i,deltaX:o,deltaY:a,distance:b.getDistance(n.center,e.center),angle:b.getAngle(n.center,e.center),direction:b.getDirection(n.center,e.center),scale:b.getScale(n.touches,e.touches),rotation:b.getRotation(n.touches,e.touches)}),e},register:function(e){var t=e.defaults||{};return t[e.name]===o&&(t[e.name]=!0),b.extend(a.defaults,t,!0),e.index=e.index||1e3,this.gestures.push(e),this.gestures.sort((function(e,t){return e.index<t.index?-1:e.index>t.index?1:0})),this.gestures}};a.Instance=function(e,t){var n=this;a.READY||(_.determineEventTypes(),b.each(a.gestures,(function(e){S.register(e)})),_.onTouch(a.DOCUMENT,m,S.detect),_.onTouch(a.DOCUMENT,y,S.detect),a.READY=!0),this.element=e,this.enabled=!0,b.each(t,(function(e,n){delete t[n],t[b.toCamelCase(n)]=e})),this.options=b.extend(b.extend({},a.defaults),t||{}),this.options.behavior&&b.toggleBehavior(this.element,this.options.behavior,!0),this.eventStartHandler=_.onTouch(e,g,(function(e){n.enabled&&e.eventType==g?S.startDetect(n,e):e.eventType==w&&S.detect(e)})),this.eventHandlers=[]},a.Instance.prototype={on:function(e,t){var n=this;return _.on(n.element,e,t,(function(e){n.eventHandlers.push({gesture:e,handler:t})})),n},off:function(e,t){var n=this;return _.off(n.element,e,t,(function(e){var r=b.inArray({gesture:e,handler:t});!1!==r&&n.eventHandlers.splice(r,1)})),n},trigger:function(e,t){t||(t={});var n=a.DOCUMENT.createEvent("Event");n.initEvent(e,!0,!0),n.gesture=t;var r=this.element;return b.hasParent(t.target,r)&&(r=t.target),r.dispatchEvent(n),this},enable:function(e){return this.enabled=e,this},dispose:function(){var e,t;for(b.toggleBehavior(this.element,this.options.behavior,!1),e=-1;t=this.eventHandlers[++e];)b.off(this.element,t.gesture,t.handler);return this.eventHandlers=[],_.off(this.element,s[g],this.eventStartHandler),null}},function(e){var t=!1;a.gestures.Drag={name:e,index:50,handler:function(n,r){var i=S.current;if(!(r.options.dragMaxTouches>0&&n.touches.length>r.options.dragMaxTouches))switch(n.eventType){case g:t=!1;break;case m:if(n.distance<r.options.dragMinDistance&&i.name!=e)return;var o=i.startEvent.center;if(i.name!=e&&(i.name=e,r.options.dragDistanceCorrection&&n.distance>0)){var a=Math.abs(r.options.dragMinDistance/n.distance);o.pageX+=n.deltaX*a,o.pageY+=n.deltaY*a,o.clientX+=n.deltaX*a,o.clientY+=n.deltaY*a,n=S.extendEventData(n)}(i.lastEvent.dragLockToAxis||r.options.dragLockToAxis&&r.options.dragLockMinDistance<=n.distance)&&(n.dragLockToAxis=!0);var s=i.lastEvent.direction;n.dragLockToAxis&&s!==n.direction&&(n.direction=b.isVertical(s)?n.deltaY<0?u:l:n.deltaX<0?c:d),t||(r.trigger(e+"start",n),t=!0),r.trigger(e,n),r.trigger(e+n.direction,n);var f=b.isVertical(n.direction);(r.options.dragBlockVertical&&f||r.options.dragBlockHorizontal&&!f)&&n.preventDefault();break;case v:t&&n.changedLength<=r.options.dragMaxTouches&&(r.trigger(e+"end",n),t=!1);break;case y:t=!1}},defaults:{dragMinDistance:10,dragDistanceCorrection:!0,dragMaxTouches:1,dragBlockHorizontal:!1,dragBlockVertical:!1,dragLockToAxis:!1,dragLockMinDistance:25}}}("drag"),a.gestures.Gesture={name:"gesture",index:1337,handler:function(e,t){t.trigger(this.name,e)}},function(e){var t;a.gestures.Hold={name:e,index:10,defaults:{holdTimeout:500,holdThreshold:2},handler:function(n,r){var i=r.options,o=S.current;switch(n.eventType){case g:clearTimeout(t),o.name=e,t=setTimeout((function(){o&&o.name==e&&r.trigger(e,n)}),i.holdTimeout);break;case m:n.distance>i.holdThreshold&&clearTimeout(t);break;case v:clearTimeout(t)}}}}("hold"),a.gestures.Release={name:"release",index:1/0,handler:function(e,t){e.eventType==v&&t.trigger(this.name,e)}},a.gestures.Swipe={name:"swipe",index:40,defaults:{swipeMinTouches:1,swipeMaxTouches:1,swipeVelocityX:.6,swipeVelocityY:.6},handler:function(e,t){if(e.eventType==v){var n=e.touches.length,r=t.options;if(n<r.swipeMinTouches||n>r.swipeMaxTouches)return;(e.velocityX>r.swipeVelocityX||e.velocityY>r.swipeVelocityY)&&(t.trigger(this.name,e),t.trigger(this.name+e.direction,e))}}},function(e){var t=!1;a.gestures.Tap={name:e,index:100,handler:function(n,r){var i,o,a=r.options,s=S.current,l=S.previous;switch(n.eventType){case g:t=!1;break;case m:t=t||n.distance>a.tapMaxDistance;break;case y:!b.inStr(n.srcEvent.type,"cancel")&&n.deltaTime<a.tapMaxTime&&!t&&(i=l&&l.lastEvent&&n.timeStamp-l.lastEvent.timeStamp,o=!1,l&&l.name==e&&i&&i<a.doubleTapInterval&&n.distance<a.doubleTapDistance&&(r.trigger("doubletap",n),o=!0),(!o||a.tapAlways)&&(s.name=e,r.trigger(s.name,n)))}},defaults:{tapMaxTime:250,tapMaxDistance:10,tapAlways:!0,doubleTapDistance:20,doubleTapInterval:300}}}("tap"),a.gestures.Touch={name:"touch",index:-1/0,defaults:{preventDefault:!1,preventMouse:!1},handler:function(e,t){return t.options.preventMouse&&e.pointerType==f?void e.stopDetect():(t.options.preventDefault&&e.preventDefault(),void(e.eventType==w&&t.trigger("touch",e)))}},function(e){var t=!1;a.gestures.Transform={name:e,index:45,defaults:{transformMinScale:.01,transformMinRotation:1},handler:function(n,r){switch(n.eventType){case g:t=!1;break;case m:if(n.touches.length<2)return;var i=Math.abs(1-n.scale),o=Math.abs(n.rotation);if(i<r.options.transformMinScale&&o<r.options.transformMinRotation)return;S.current.name=e,t||(r.trigger(e+"start",n),t=!0),r.trigger(e,n),o>r.options.transformMinRotation&&r.trigger("rotate",n),i>r.options.transformMinScale&&(r.trigger("pinch",n),r.trigger("pinch"+(n.scale<1?"in":"out"),n));break;case v:t&&n.changedLength<2&&(r.trigger(e+"end",n),t=!1)}}}}("transform"),void 0===(r=function(){return a}.call(t,n,t,e))||(e.exports=r)}(window),"function"==typeof Hammer&&void 0!==Hammer&&Hammer&&"1.1.3"==Hammer.VERSION?TLT.addModule("gestures",(function(e){const t={"input:radio":"radioButton","input:checkbox":"checkBox","input:text":"textBox","input:password":"textBox","input:file":"fileInput","input:button":"button","input:submit":"submitButton","input:reset":"resetButton","input:image":"image","input:color":"color","input:date":"date","input:datetime":"datetime","input:datetime-local":"datetime-local","input:number":"number","input:email":"email","input:tel":"tel","input:search":"search","input:url":"url","input:time":"time","input:week":"week","input:month":"month","textarea:":"textBox","select:":"selectList","select:select-one":"selectList","button:":"button","a:":"link"},n=e.utils;let r,i=[],o=0,a=!0,s=function(){};const l={swipeAfterPinchInterval:300,doubleTapInterval:300,preventMouse:!0,dragMinDistance:10};let c,u,d,f=[],h=[];function p(t){e.post(t)}function g(e){let t=e.gesture.srcEvent.target,n=0,r=0;for(;t&&"BODY"!==t.tagName;)n+=t.offsetTop,r+=t.offsetLeft,t=t.offsetParent;return{topLeftX:r,topLeftY:n}}function m(e,t){"radioButton"===t&&delete e.control.position.relXY,null!==e.control.name&&void 0!==e.control.name&&""!==e.control.name||delete e.control.name,null!==e.control.subType&&void 0!==e.control.subType&&""!==e.control.subType||delete e.control.subType}function y(r){const o=function(e){let t;return t="drag"===e.type?"swipe":"hold"===e.type?"tapHold":e.type,t="string"==typeof t?t.toLowerCase():"unknown",t}(n.getValue(r,"webEvent")),a=n.getValue(r,"webEvent.gesture.srcEvent.target",document.body),s=n.getTagName(a)||"body",l=n.getValue(a,"type",""),d=t[s.toLowerCase()+":"+l.toLowerCase()]||s,f=n.getValue(r,"webEvent.target.subtype"),h=[];let p,y,v,w,b,_;for("1"===u?(p=r.webEvent.gesture.touches,y="webEvent.gesture.touches.",v="swipe"===o&&!(void 0!==c&&"swipe"===c.event.tlEvent)||"pinch"===o&&!(void 0!==c&&"pinch"===c.event.tlEvent),w="swipe"===o||"pinch"===o):(p=r.webEvent.gesture.pointers,y="webEvent.gesture.pointers.",v="first"===n.getValue(r,"webEvent.gesture.firstOrLastSwipeEvent")||"first"===n.getValue(r,"webEvent.gesture.firstOrLastPinchEvent"),w="last"===n.getValue(r,"webEvent.gesture.firstOrLastSwipeEvent")||"last"===n.getValue(r,"webEvent.gesture.firstOrLastPinchEvent")),_=0;_<p.length;_+=1)b={x:n.getValue(r,y+_+".pageX")-g(r.webEvent).topLeftX,y:n.getValue(r,y+_+".pageY")-g(r.webEvent).topLeftY,width:n.getValue(r,"webEvent.gesture.srcEvent.target.offsetWidth"),height:n.getValue(r,"webEvent.gesture.srcEvent.target.offsetHeight")},h.push([{position:{y:Math.round(n.getValue(r,y+_+".pageY")),x:Math.round(n.getValue(r,y+_+".pageX"))},control:{position:{width:Math.round(n.getValue(r,y+_+".target.offsetWidth")),height:Math.round(n.getValue(r,y+_+".target.offsetHeight")),relXY:n.calculateRelativeXY(b),scrollX:Math.round(document.documentElement.scrollLeft||document.body.scrollLeft),scrollY:Math.round(document.documentElement.scrollTop||document.body.scrollTop)},id:n.getValue(r,y+_+".target.id")||e.getXPathFromNode(n.getValue(r,y+_+".target")),idType:n.getValue(r,"webEvent.gesture.idType"),name:n.getValue(r,y+_+".target.name"),tlType:d,type:s,subType:l}}]),m(h[_][0],d);if(v)for(_=0;_<p.length;_+=1)i.push(h[_][0]);if(w)for(_=0;_<p.length;_+=1)h[_].unshift(i[_]);const T={type:11,event:{tlEvent:o,type:o},touches:h};return"swipe"===o&&(T.velocityX=r.webEvent.gesture.velocityX,T.velocityY=r.webEvent.gesture.velocityY),"swipe"===o&&(T.direction=r.webEvent.gesture.direction,2===T.direction&&(T.direction="left"),4===T.direction&&(T.direction="right"),8===T.direction&&(T.direction="up"),16===T.direction&&(T.direction="down")),"pinch"===o&&(r.webEvent.gesture.scale>1?T.direction="open":r.webEvent.gesture.scale<1&&(T.direction="close")),null!=f&&(T.event.subType=f),T}function v(e,t){"1"===u?"doubletap"===t.type||"hold"===t.type||"tap"===t.type?p(y({webEvent:t,id:e,currState:n.getValue(t,"target.state")})):"release"!==t.type||void 0===c||"swipe"!==c.event.tlEvent&&"pinch"!==c.event.tlEvent?"drag"!==t.type&&"pinch"!==t.type||(c=y({webEvent:t,id:e,currState:n.getValue(t,"target.state")})):(p(c),c=void 0,i=[]):"doubletap"===t.type||"tapHold"===t.type||"tap"===t.type?p(y({webEvent:t,id:e,currState:n.getValue(t,"target.state")})):"last"===t.gesture.firstOrLastSwipeEvent||"last"===t.gesture.firstOrLastPinchEvent?(p(y({webEvent:t,id:e,currState:n.getValue(t,"target.state")})),i=[]):"first"!==t.gesture.firstOrLastSwipeEvent&&"first"!==t.gesture.firstOrLastPinchEvent||y({webEvent:t,id:e,currState:n.getValue(t,"target.state")})}function w(e){let t;return document.createEvent?(t=document.createEvent("HTMLEvents"),t.initEvent(e.type,!0,!0),t.gesture=e):(t=document.createEventObject(),t.eventType=e.type,t.gesture=e),t}function b(e,t){void 0!==t&&(document.createEvent?t.dispatchEvent(e):t.fireEvent("on"+e.eventType,e))}function _(e){const t=e.type,n=e.target;"tap"===t?(b(w(e),n),d=void 0):"press"===t?(e.type="tapHold",b(w(e),n),d=void 0):"panstart"===t?(e.type="swipe",e.firstOrLastSwipeEvent="first",b(w(e),n),d=n):"panend"===t?(e.type="swipe",e.firstOrLastSwipeEvent="last",b(w(e),d),d=void 0):"pinchstart"===t?(e.type="pinch",e.firstOrLastPinchEvent="first",b(w(e),n),d=n):"pinchend"===t&&(e.type="pinch",e.firstOrLastPinchEvent="last",b(w(e),d),d=void 0)}return{init:function(){let t,r,i,o,a,s,c,p,g=[],m="",y=0;const v=TLT.getCoreConfig().modules.gestures.events;if("function"==typeof Hammer){for(u=Hammer.VERSION.split(".")[0],"1"===u&&(Hammer.defaults.behavior.userSelect="auto",Hammer.defaults.behavior.userDrag="auto",Hammer.defaults.behavior.contentZooming="auto",Hammer.defaults.behavior.touchCallout="default",Hammer.defaults.behavior.touchAction="auto"),e.getConfig()&&e.getConfig().options&&n.extend(!0,l,e.getConfig().options),t=0;t<v.length;t+=1)if(p=v[t].name,"tap"===p&&(m+="tap "),"swipe"===p&&(m+="panstart panend "),"tapHold"===p&&(m+="press "),"pinch"===p&&(m+="pinchstart pinchend"),o=v[t].target,o===window||"window"===o)"1"===u&&f.push(new Hammer(window,l));else if(null!=a)for(a=o.split(", "),r=0;r<a.length;r+=1)for(g=TLT.getService("browser").queryAll(a[r],document),i=0;i<g.length;i+=1)s=n.indexOf(h,g[i]),-1===s&&(h.push(g[i]),y+=1);if("1"===u)for(t=0;t<h.length;t+=1)f.push(new Hammer(h[t],l));else if(0!==h.length)for(t=0;t<h.length;t+=1)c=new Hammer.Manager(h[t]),c.add(new Hammer.Tap({event:"tap"})),c.add(new Hammer.Pan({direction:Hammer.DIRECTION_ALL})),c.add(new Hammer.Press),c.add(new Hammer.Pinch({enable:!0})),c.on(m,(function(e){(("panend"===e.type||"pinchend"===e.type)&&h.indexOf(d)>-1||h.indexOf(e.target)>-1)&&_(e)})),f.push(c);else void 0===window.style&&(window.style=[]),c=new Hammer.Manager(window),c.add(new Hammer.Tap({event:"tap"})),c.add(new Hammer.Pan({direction:Hammer.DIRECTION_ALL})),c.add(new Hammer.Press),c.add(new Hammer.Pinch({enable:!0})),c.on(m,(function(e){_(e)})),f.push(c)}},destroy:function(){let e;if(null!=f)for(e=0;e<f.length;e+=1)f[e].off("tap press pinchstart pinchend panstart panend"),f[e].enabled=!1;f=[],h=[]},onevent:function(e){if("object"!=typeof e||!e.type||!e.gesture&&"unload"!==e.type||!e.target)return;if("unload"!==e.type&&"mouse"===e.gesture.pointerType&&l.preventMouse)return;const t=n.getValue(e,"target.id");switch(e.type){case"tap":!function(e,t){const n=l.doubleTapInterval;o+=1,1===o?(s=function(e,t){const n=e,r=t;return function(){v(n,r),o=0}}(e,t),r=setTimeout((function(){s(),s=function(){}}),n)):(clearTimeout(r),t.type="doubletap",v(e,t),s=function(){},o=0)}(t,e);break;case"swipe":case"pinch":case"drag":!function(e,t){const n=l.swipeAfterPinchInterval;!a||"swipe"!==t.type&&"drag"!==t.type||v(e,t),"pinch"===t.type&&(v(e,t),a=!1,r=setTimeout((function(){a=!0}),n))}(t,e);break;case"tapHold":case"hold":case"release":v(t,e);break;case"unload":clearTimeout(r),s()}}}})):console&&console.info("Could not load TL.Gestures."),window.TLT.utils.isiOS&&c&&function(){if("undefined"!=typeof document&&!("adoptedStyleSheets"in document)){var e="ShadyCSS"in window&&!ShadyCSS.nativeShadow,t=document.implementation.createHTMLDocument(""),n=new WeakMap,r="object"==typeof DOMException?Error:DOMException,i=Object.defineProperty,o=Array.prototype.forEach,a=/@import.+?;?$/gm,s=CSSStyleSheet.prototype;s.replace=function(){return Promise.reject(new r("Can't call replace on non-constructed CSSStyleSheets."))},s.replaceSync=function(){throw new r("Failed to execute 'replaceSync' on 'CSSStyleSheet': Can't call replaceSync on non-constructed CSSStyleSheets.")};var l=new WeakMap,c=new WeakMap,u=new WeakMap,d=new WeakMap,f=k.prototype;f.replace=function(e){try{return this.replaceSync(e),Promise.resolve(this)}catch(e){return Promise.reject(e)}},f.replaceSync=function(e){if(E(this),"string"==typeof e){var t=this;l.get(t).textContent=function(e){var t=e.replace(a,"");return t!==e&&console.warn("@import rules are not allowed here. See https://github.com/WICG/construct-stylesheets/issues/119#issuecomment-588352418"),t.trim()}(e),d.set(t,[]),c.get(t).forEach((function(e){e.isConnected()&&C(t,x(t,e))}))}},i(f,"cssRules",{configurable:!0,enumerable:!0,get:function(){return E(this),l.get(this).sheet.cssRules}}),i(f,"media",{configurable:!0,enumerable:!0,get:function(){return E(this),l.get(this).sheet.media}}),["addRule","deleteRule","insertRule","removeRule"].forEach((function(e){f[e]=function(){var t=this;E(t);var n=arguments;d.get(t).push({method:e,args:n}),c.get(t).forEach((function(r){if(r.isConnected()){var i=x(t,r).sheet;i[e].apply(i,n)}}));var r=l.get(t).sheet;return r[e].apply(r,n)}})),i(k,Symbol.hasInstance,{configurable:!0,value:T});var h={childList:!0,subtree:!0},p=new WeakMap,g=new WeakMap,m=new WeakMap,y=new WeakMap;if(A.prototype={isConnected:function(){var e=g.get(this);return e instanceof Document?"loading"!==e.readyState:function(e){return"isConnected"in e?e.isConnected:document.contains(e)}(e.host)},connect:function(){var e=D(this);y.get(this).observe(e,h),m.get(this).length>0&&P(this),I(e,(function(e){O(e).connect()}))},disconnect:function(){y.get(this).disconnect()},update:function(e){var t=this,n=g.get(t)===document?"Document":"ShadowRoot";if(!Array.isArray(e))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Iterator getter is not callable.");if(!e.every(T))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Failed to convert value to 'CSSStyleSheet'");if(e.some(S))throw new TypeError("Failed to set the 'adoptedStyleSheets' property on "+n+": Can't adopt non-constructed stylesheets");t.sheets=e;var r,i,o=m.get(t),a=(r=e).filter((function(e,t){return r.indexOf(e)===t}));(i=a,o.filter((function(e){return-1===i.indexOf(e)}))).forEach((function(e){var n;(n=x(e,t)).parentNode.removeChild(n),function(e,t){u.get(e).delete(t),c.set(e,c.get(e).filter((function(e){return e!==t})))}(e,t)})),m.set(t,a),t.isConnected()&&a.length>0&&P(t)}},window.CSSStyleSheet=k,L(Document),"ShadowRoot"in window){L(ShadowRoot);var v=Element.prototype,w=v.attachShadow;v.attachShadow=function(e){var t=w.call(this,e);return"closed"===e.mode&&n.set(this,t),t}}var b=O(document);b.isConnected()?b.connect():document.addEventListener("DOMContentLoaded",b.connect.bind(b))}function _(e){return e.shadowRoot||n.get(e)}function T(e){return"object"==typeof e&&(f.isPrototypeOf(e)||s.isPrototypeOf(e))}function S(e){return"object"==typeof e&&s.isPrototypeOf(e)}function x(e,t){return u.get(e).get(t)}function C(e,t){requestAnimationFrame((function(){t.textContent=l.get(e).textContent,d.get(e).forEach((function(e){return t.sheet[e.method].apply(t.sheet,e.args)}))}))}function E(e){if(!l.has(e))throw new TypeError("Illegal invocation")}function k(){var e=document.createElement("style");t.body.appendChild(e),l.set(this,e),c.set(this,[]),u.set(this,new WeakMap),d.set(this,[])}function O(e){var t=p.get(e);return t||(t=new A(e),p.set(e,t)),t}function L(e){i(e.prototype,"adoptedStyleSheets",{configurable:!0,enumerable:!0,get:function(){return O(this).sheets},set:function(e){O(this).update(e)}})}function I(e,t){for(var n=document.createNodeIterator(e,NodeFilter.SHOW_ELEMENT,(function(e){return _(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}),null,!1),r=void 0;r=n.nextNode();)t(_(r))}function D(e){var t=g.get(e);return t instanceof Document?t.body:t}function P(e){var t=document.createDocumentFragment(),n=m.get(e),r=y.get(e),i=D(e);r.disconnect(),n.forEach((function(n){t.appendChild(x(n,e)||function(e,t){var n=document.createElement("style");return u.get(e).set(t,n),c.get(e).push(t),n}(n,e))})),i.insertBefore(t,null),r.observe(i,h),n.forEach((function(t){C(t,x(t,e))}))}function A(t){var n=this;n.sheets=[],g.set(n,t),m.set(n,[]),y.set(n,new MutationObserver((function(t,r){document?t.forEach((function(t){e||o.call(t.addedNodes,(function(e){e instanceof Element&&I(e,(function(e){O(e).connect()}))})),o.call(t.removedNodes,(function(t){t instanceof Element&&(function(e,t){return t instanceof HTMLStyleElement&&m.get(e).some((function(t){return x(t,e)}))}(n,t)&&P(n),e||I(t,(function(e){O(e).disconnect()})))}))})):r.disconnect()})))}}(),!0===u&&TLT.addModule("ajaxListener",(function(e){var t,n,r,i,o={},a=!1,s=e.utils;function l(e){var t,n,r=!1,i=o.urlBlocklist;if(!e||!i)return r;for(t=0,n=i.length;!r&&t<n;t+=1)r=i[t].cRegex.test(e);return r}function c(e,t,n){var r,i,a,s={},l=o.filters;if(!l||!l.length)return s;for(r=0,i=l.length,a=!1;!a&&r<i;r+=1)a=!0,(s=l[r]).url&&(a=s.url.cRegex.test(e)),a&&s.method&&(a=s.method.cRegex.test(t)),a&&s.status&&(a=s.status.cRegex.test(n));return a||(s=null),s}function u(t,n){var r,i,o={type:5,customEvent:{name:"ajaxListener",data:{interfaceType:"XHR"}}},a=o.customEvent.data;if(t){if((r=document.createElement("a")).href=t.tListener.url,a.originalURL=r.host+("/"===r.pathname[0]?"":"/")+r.pathname,a.requestURL=e.normalizeUrl?e.normalizeUrl(a.originalURL,3):a.originalURL,a.description="Full Ajax Monitor "+a.requestURL,a.method=t.tListener.method,a.status=t.status,a.statusText=t.statusText||"",a.async=t.tListener.async,a.ajaxResponseTime=t.tListener.end-t.tListener.start,a.locationHref=e.normalizeUrl(document.location.href,3),a.queryParams=h(t.tListener.url),n.requestHeaders&&(a.requestHeaders=t.tListener.reqHeaders),n.requestData&&"string"==typeof t.tListener.reqData&&!t.tListener.isSystemXHR)try{a.request=JSON.parse(t.tListener.reqData)}catch(e){a.request=t.tListener.reqData}if(n.responseHeaders&&(a.responseHeaders=function(e){var t,n,r,i,o,a={};for(t=0,n=(e=e.split(/[\r\n]+/)).length;t<n;t+=1)i=(r=e[t].split(": "))[0],o=s.rtrim(r[1]),i&&i.length&&(a[i]=o);return a}(t.getAllResponseHeaders())),n.responseData){if(void 0===t.responseType?i=t.responseText:""===t.responseType||"text"===t.responseType?i=t.response:"json"===t.responseType?a.response=t.response:a.response=typeof t.response,i)try{a.response=JSON.parse(i)}catch(e){a.response=i}t.responseType&&(a.responseType=t.responseType)}e.post(o)}}function d(e){for(var t,n={},r=e.entries(),i=r.next();!i.done;)n[(t=i.value)[0]]=t[1],i=r.next();return n}function f(e){return d(e)}function h(e){var t=e.indexOf("?");if(t<0)return{};var n=e.substring(t+1),r={},i=new URLSearchParams(n).entries();for(var o in i)r[i[o][0]]=i[o][1];return r}function p(t,n,r){var i,o,a={type:5,customEvent:{name:"ajaxListener",data:{interfaceType:"fetch"}}},s=a.customEvent.data;if((i=document.createElement("a")).href=t.url,s.originalURL=i.host+("/"===i.pathname[0]?"":"/")+i.pathname,s.requestURL=e.normalizeUrl?e.normalizeUrl(s.originalURL,3):s.originalURL,s.description="Full Ajax Monitor "+s.requestURL,s.method=t.initData.method,s.status=n.status,s.statusText=n.statusText||"",s.async=!0,s.ajaxResponseTime=t.end-t.start,s.responseType=n.type,s.locationHref=e.normalizeUrl(document.location.href,3),s.queryParams=h(t.url),r.requestHeaders&&(t.initData.headers&&-1!==t.initData.headers.toString().indexOf("Headers")?s.requestHeaders=f(t.initData.headers):s.requestHeaders=t.initData.headers||""),r.requestData&&void 0!==t.body&&!t.isSystemXHR&&(s.request=function(e){var t=e;if(!e)return t;if("object"==typeof e&&-1!==e.toString().indexOf("FormData"))t=d(e);else if("string"==typeof e)try{t=JSON.parse(e)}catch(n){t=e}return t}(t.body)),r.responseHeaders&&(s.responseHeaders=f(n.headers)),r.responseData){if((o=n.headers.get("content-type"))&&-1!==o.indexOf("application/json"))return void n.clone().json().then((function(t){s.response=t,e.post(a)}));if(o&&(-1!==o.indexOf("text")||-1!==o.indexOf("xml")))return void n.clone().text().then((function(t){s.response=t,e.post(a)}));s.response="Not logging unsupported response content: "+o}e.post(a)}function g(e){var t;e&&e.target&&4===(t=e.target).readyState&&(t.removeEventListener("readystatechange",g),t.tListener.end=Date.now(),function(e){var t,n={requestHeaders:!1,requestData:!1,responseHeaders:!1,responseData:!1};(t=c(e.tListener.url,e.tListener.method,e.status.toString()))&&(t.log&&(n=t.log),u(e,n))}(t))}function m(e){var t,n;for(n=TLT.getServiceConfig("queue").queues||[],t=0;t<n.length;t+=1)if(n[t].endpoint&&-1!==e.indexOf(n[t].endpoint))return!0;return!1}function y(e,n,r){var i=this;return a&&!l(n)&&(i.addEventListener("readystatechange",g),i.tListener={method:e,url:n,async:void 0===r||!!r,reqHeaders:{},isSystemXHR:m(n)},function(e){var t=e.setRequestHeader;e.setRequestHeader=function(e,n){var r=this.tListener;return e&&e.length&&(r.reqHeaders[e]=n),t.apply(this,arguments)}}(i),function(e){var t=e.send;e.send=function(e){var n=this.tListener;return e&&(n.reqData=e),n.start=Date.now(),t.apply(this,arguments)}}(i)),t.apply(i,arguments)}function v(e){e&&e.regex&&(e.cRegex=new RegExp(e.regex,e.flags))}return{init:function(){!function(e){var t,n,o,a=[],l=s.getValue(e,"skipSafetyCheck",!1);for(e&&e.filters&&(a=e.filters),t=0,n=a.length;t<n;t+=1)o=a[t],s.forEach([o.url,o.method,o.status],v);e&&e.urlBlocklist&&s.forEach(e.urlBlocklist,v),!(r=s.getValue(e,"xhrEnabled",!0)&&window.XMLHttpRequest)||l||-1!==XMLHttpRequest.toString().indexOf("[native code]")&&-1!==XMLHttpRequest.toString().indexOf("XMLHttpRequest")||(r=!1),(i=s.getValue(e,"fetchEnabled",!0)&&window.fetch)&&!l&&-1===window.fetch.toString().indexOf("[native code]")&&(i=!1)}(o=e.getConfig())},destroy:function(){a=!1},onevent:function(e){switch(e.type){case"load":r&&XMLHttpRequest&&(t=XMLHttpRequest.prototype.open,XMLHttpRequest.prototype.open=y),i&&(n=window.fetch,window.fetch=function(e,t){var r={};return e instanceof Request?(r.initData=e,r.url=e.url,r.initData.clone().text().then((function(e){e.length>0&&(r.body=e)}))):(r.initData=t||{},r.url=e.toString(),t&&t.body&&(r.body=t.body)),r.isSystemXHR=m(r.url),r.start=Date.now(),n.apply(this,arguments).then((function(e){return r.end=Date.now(),function(e,t){var n,r=e.url,i=e.initData.method,o=t.status.toString(),a={requestHeaders:!1,requestData:!1,responseHeaders:!1,responseData:!1};l(r)||(n=c(r,i,o))&&(n.log&&(a=n.log),p(e,t,a))}(r,e),e}))}),a=!0;break;case"unload":a=!1}},version:"1.3.0"}})),m=a?a&&0===Object.keys(a).length&&Object.getPrototypeOf(a)===Object.prototype?window.TLT.getDefaultConfig():a:window.TLT.getDefaultConfig(),void 0!==m&&void 0!==m.services&&void 0!==m.services.queue&&void 0!==m.services.queue.queues[0]?(m.services.queue.queues[0].endpoint=o,void 0===m.services.queue.queues[0].killswitchURL&&void 0!==f&&(m.services.queue.queues[0].killswitchURL=f)):console&&console.warn("Not able to update defaultConfig.services.queue.queues[0].endpoint"),void 0!==m&&void 0!==m.modules&&void 0!==m.modules.TLCookie?m.modules.TLCookie.tlAppKey=i:console&&console.warn("Not able to update defaultConfig.modules.TLCookie.tlAppKey"),window.TLT.utils.isLegacyIE?(console&&(console.warn("This version of the UIC does not support Internet Explorer 10 or below."),console.info("Applications requiring Internet Explorer 8 (or below) support should use UIC 5.2.0")),void(window.TLT.terminationReason="Unsupported browser")):(window.TLT.init(m,(function(e){console&&(console.info("TLT.initLib has "+e+" with the following settings below:"),console.info("Original configuration:"),console.info(m),console.info("Updated after init:"),window.TLT?console.info(window.TLT.getConfig()):console.info("window.TLT.getConfig() is undefined"))})),!0===d&&function(){const e=window.TLT.destroy;let t;function n(){"visible"===document.visibilityState&&document.hasFocus()&&(t&&window.TLT&&!TLT.isInitialized()&&(console.log("Restarting TLT"),TLT.init(t),t=null),window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n))}window.TLT.destroy=function(r,i){"inactivity"===i&&(t=TLT.getConfig(),window.addEventListener("visibilitychange",n),window.addEventListener("focus",n)),e.call(window.TLT,r,i)}}(),m)},updatePageId:function(){T="P."+g.getRandomString(28)},init:function(e,t){if(g=this.utils,g.isLegacyIE)return;if(j=t,!V)throw new Error("init must only be called once!");if(!e&&!this.config)throw new Error("missing configuration.");e=e||this.config,this.config=e,V=!1,T="P."+g.getRandomString(28),S=function(){let e=null;const t="tltTabId";try{e=sessionStorage.getItem(t),e||(e=g.getRandomString(4),sessionStorage.setItem(t,e))}catch(e){}return e}();const n=function(r){"load"!==(r=r||window.event||{}).type&&"loading"===document.readyState||(document.removeEventListener?(document.removeEventListener("DOMContentLoaded",n,!1),window.removeEventListener("load",n,!1)):(document.detachEvent("onreadystatechange",n),window.detachEvent("onload",n)),N(e,t))};"complete"===document.readyState||"interactive"===document.readyState&&!g.isIE?setTimeout(n):document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):(document.attachEvent("onreadystatechange",n),window.attachEvent("onload",n))},isInitialized:function(){return k},getState:function(){return O},destroy:function(e,t){let n="",r="",i=null,o=null,s=null,l=!1;if(V)return!1;if(this.stopAll(),!e){for(n in M)Object.prototype.hasOwnProperty.call(M,n)&&(r=n.split("|")[0],i=M[n].target,l=M[n].delegateTarget||void 0,a&&a.unsubscribe(r,i,this._publishEvent,l));p&&(a.unsubscribe("mousemove",document,p),p=null)}for(o in E)Object.prototype.hasOwnProperty.call(E,o)&&(s=E[o].instance,s&&"function"==typeof s.destroy&&s.destroy(),E[o].instance=null);L.clearCache(),M={},A={},R=[],k=!1,V=!0,O="destroyed",TLT.terminationReason=t||O;try{sessionStorage.setItem("tl.TR",TLT.terminationReason),sessionStorage.setItem("tl.PU",this.normalizeUrl("",location.href))}catch(e){}if("function"==typeof j)try{j("destroyed")}catch(e){}h||(window.addEventListener("pageshow",w),h=!0)},_updateModules:function(e){let t=null,n=null,r=!0;if(f&&f.modules)try{for(n in f.modules)if(Object.prototype.hasOwnProperty.call(f.modules,n)&&(t=f.modules[n],Object.prototype.hasOwnProperty.call(C,n))){if(!1===t.enabled){this.stop(n);continue}this.start(n),t.events&&this._registerModuleEvents(n,t.events,e)}this._registerModuleEvents.clearCache()}catch(e){q.destroy(!1,"_updateModules: "+e.message),r=!1}else r=!1;return r},rebind:function(e){q._updateModules(e)},getSessionData:function(){if(!q.isInitialized())return;let e,t,n,r=null,i=null;return f&&f.sessionDataEnabled?(i=f.sessionData||{},e=i.sessionQueryName,e?t=g.getQueryStringValue(e,i.sessionQueryDelim):(e=i.sessionCookieName,e?t=g.getCookieValue(e):(n=TLT.getTLTSessionCookieInfo(),e=n.tltCookieName,t=n.tltCookieValue)),e&&t&&(r=r||{},r.tltSCN=e,r.tltSCV=t,r.tltSCVNeedsHashing=!!i.sessionValueNeedsHashing),r):null},logGeolocation:function(e){if(!q.isInitialized())return;if(!e||!e.coords)return;const t={type:13,geolocation:{lat:g.getValue(e,"coords.latitude",0),long:g.getValue(e,"coords.longitude",0),accuracy:Math.ceil(g.getValue(e,"coords.accuracy",0))}};c.post("",t)},logCustomEvent:function(e,t){if(!q.isInitialized())return;let n=null;e&&"string"==typeof e||(e="CUSTOM"),n={type:5,customEvent:{name:e,data:t=t||{}}},c.post("",n)},logExceptionEvent:function(e,t,n){if(!q.isInitialized())return;let r=null;e&&"string"==typeof e&&(t&&(t=q.normalizeUrl("",t,6)),r={type:6,exception:{description:e,url:t=t||"",line:n=n||-1}},c.post("",r))},logFormCompletion:function(e,t){if(!q.isInitialized())return;const n={type:15,formCompletion:{submitted:!!e,valid:"boolean"==typeof t?t:null}};c.post("",n)},logDataLayer:function(e){let t;q.isInitialized()&&d&&(e&&"object"!=typeof e||(t={type:"logDataLayer",data:e},d.onevent(t)))},logScreenviewLoad:function(e,t,n){q.isInitialized()&&b("LOAD",e,t)},logScreenviewUnload:function(e){q.isInitialized()&&b("UNLOAD",e)},logDOMCapture:function(e,t){let n,r,i,o=null;return this.isInitialized()?(g.isLegacyIE||l&&(e=e||window.document,r=this.getServiceConfig("domCapture"),t=g.mixin({},r.options,t),n=l.captureDOM(e,t),n&&(o=t.dcid||"dcid-"+g.getSerialNumber()+"."+(new Date).getTime(),n.dcid=o,n.eventOn=!!t.eventOn,i={type:12,domCapture:n},t.timeoutExpired&&(i.domCapture.timeout=!0),c.post("",i),!1!==t.qffd&&!B&&i.domCapture.fullDOM&&(c.flush(),B=!0))),o):o},performDOMCapture:function(e,t,n){return this.logDOMCapture(t,n)},performFormCompletion:function(e,t,n){return this.logFormCompletion(t,n)},_bridgeCallback:function(e){const t=z[e];return t&&t.enabled?t:null},logScreenCapture:function(){if(!q.isInitialized())return;const e=q._bridgeCallback("screenCapture");null!==e&&e.cbFunction()},enableTealeafFramework:function(){if(!q.isInitialized())return;const e=q._bridgeCallback("enableTealeafFramework");null!==e&&e.cbFunction()},disableTealeafFramework:function(){if(!q.isInitialized())return;const e=q._bridgeCallback("disableTealeafFramework");null!==e&&e.cbFunction()},startNewTLFSession:function(){if(!q.isInitialized())return;const e=q._bridgeCallback("startNewTLFSession");null!==e&&e.cbFunction()},currentSessionId:function(){if(!q.isInitialized())return;let e;const t=q._bridgeCallback("currentSessionId");return null!==t&&(e=t.cbFunction()),e},defaultValueForConfigurableItem:function(e){if(!q.isInitialized())return;let t;const n=q._bridgeCallback("defaultValueForConfigurableItem");return null!==n&&(t=n.cbFunction(e)),t},valueForConfigurableItem:function(e){if(!q.isInitialized())return;let t;const n=q._bridgeCallback("valueForConfigurableItem");return null!==n&&(t=n.cbFunction(e)),t},setConfigurableItem:function(e,t){if(!q.isInitialized())return;let n=!1;const r=q._bridgeCallback("setConfigurableItem");return null!==r&&(n=r.cbFunction(e,t)),n},addAdditionalHttpHeader:function(e,t){if(!q.isInitialized())return;let n=!1;const r=q._bridgeCallback("addAdditionalHttpHeader");return null!==r&&(n=r.cbFunction(e,t)),n},logCustomEventBridge:function(e,t,n){if(!q.isInitialized())return;let r=!1;const i=q._bridgeCallback("logCustomEventBridge");return null!==i&&(r=i.cbFunction(e,t,n)),r},registerBridgeCallbacks:function(e){let t,n,r,i,o,a,s,l=null;const c=TLT.utils;if(!e)return!1;if(0===e.length)return z={},!1;try{for(t=0,r=e.length;t<r;t+=1)if(l=e[t],"object"==typeof l&&l.cbType&&l.cbFunction)if(i={enabled:l.enabled,cbFunction:l.cbFunction,cbOrder:l.order||0},c.isUndefOrNull(z[l.cbType]))i.enabled&&(z[l.cbType]=i);else{for(c.isArray(z[l.cbType])||(z[l.cbType]=[z[l.cbType]]),o=z[l.cbType],n=0,s=!1,a=o.length;n<a;n+=1)if(o[n].cbOrder===i.cbOrder&&o[n].cbFunction===i.cbFunction)s=!0,i.enabled||(o.splice(n,1),o.length||delete z[l.cbType]);else if(o[n].cbOrder>i.cbOrder)break;s||i.enabled&&o.splice(n,0,i)}}catch(e){return!1}return!0},registerMutationCallback:function(e,t){let n;return!(!e||"function"!=typeof e||(t?(n=R.indexOf(e),-1===n&&R.push(e)):(n=R.indexOf(e),-1!==n&&R.splice(n,1)),0))},invokeMutationCallbacks:function(e){let t,n,r,i,o;const a=[],s=[];if(0!==R.length){for(o=Map?new Map:new g.WeakMap,t=0;t<e.length;t++)i=e[t].target,i&&(r=g.getDocument(i),void 0===o.get(r)&&(r.host?s.push(r):a.push(r),o.set(r,!0)));for(o.clear(),t=0;t<R.length;t++)n=R[t],n(e,a,s)}},redirectQueue:function(e){let t,n,r,i,o,a,s;if(!e||!e.length)return e;if(i=z.messageRedirect,!i)return e;for(o=g.isArray(i)?i:[i],n=0,a=o.length;n<a;n+=1)if(i=o[n],i&&i.enabled)for(t=0,r=e.length;t<r;t+=1)s=i.cbFunction(u.serialize(e[t]),e[t]),s&&"object"==typeof s?e[t]=s:(e.splice(t,1),t-=1,r=e.length);return e},_hasSameOrigin:function(e){let t=!1;try{return t=e.document.location.host===document.location.host&&e.document.location.protocol===document.location.protocol,t||(t=e.document.domain===document.domain),t}catch(e){}return!1},provideRequestHeaders:function(){let e=null;const t=z.addRequestHeaders;return t&&t.enabled&&(e=t.cbFunction()),e},_registerModuleEvents:function(){let e,t=0;function n(e){const t=g.getIFrameWindow(e);return null!==t&&q._hasSameOrigin(t)&&null!==t.document&&"complete"===t.document.readyState&&""!==t.document.body.innerHTML}function r(r,i,s){if(s=s||q._getLocalTop().document,e=e||new g.WeakMap,function(t,n,r){let i,s,l;const c=g.getDocument(r),u=q._getLocalTop(),d=g.isIFrameDescendant(r);if(r=r||c,P.normalizeModuleEvents(t,n,u,c),d&&(i=o.ElementData.prototype.examineID(r).id,"string"==typeof i))for(s in i=i.slice(0,i.length-1),M)if(Object.prototype.hasOwnProperty.call(M,s))for(l=0;l<M[s].length;l+=1)if(t===M[s][l]&&-1!==s.indexOf(i)){delete M[s];break}g.forEach(n,(function(n){let i="";const s=function(e,t,n){return"window"===e?t:"document"===e?n:e}(n.target,u,c)||c;!0!==n.recurseFrames&&d||("string"==typeof s?g.forEach(a.queryAll(s,r),(function(r){let s=e.get(r);s||(s=o.ElementData.prototype.examineID(r),e.set(r,s)),i=n.name+"|"+s.id+s.idType,-1===g.indexOf(M[i],t)&&(M[i]=M[i]||[],M[i].push(t),M[i].target=r,a.subscribe(n.name,r,q._publishEvent))})):(i=q._buildToken4bubbleTarget(n.name,s,void 0===n.target),Object.prototype.hasOwnProperty.call(M,i)?-1===g.indexOf(M[i],t)&&M[i].push(t):(M[i]=[t],a.subscribe(n.name,s,q._publishEvent))),""!==i&&"string"!=typeof s&&(M[i].target=s))}))}(r,i,s),"performance"!==r){let e,o,c=null,u=null;const d=a.queryAll("iframe, frame",s);for(e=0,o=d.length;e<o;e+=1)c=d[e],L(c)||(n(c)?(u=g.getIFrameWindow(c),q._registerModuleEvents(r,i,u.document),l.observeWindow(u)):(t+=1,function(e,r,i){let o=null;const a=function(){let n=null;L(i)||(n=g.getIFrameWindow(i),q._hasSameOrigin(n)&&(q._registerModuleEvents(e,r,n.document),l.observeWindow(n))),t-=1,t||q._publishEvent({type:"loadWithFrames",custom:!0})};g.addEventListener(i,"load",(function(){a()})),g.isLegacyIE&&n(i)&&(o=g.getIFrameWindow(i),g.addEventListener(o.document,"readystatechange",(function(){a()})))}(r,i,c)))}}return r.clearCache=function(){e&&(e.clear(),e=null)},r}(),_buildToken4currentTarget:function(e){const t=e.nativeEvent?e.nativeEvent.currentTarget:null,n=t?o.ElementData.prototype.examineID(t):{id:e.target?e.target.id:null,idType:e.target?e.target.idType:-1};return e.type+"|"+n.id+n.idType},_buildToken4delegateTarget:function(e,t,n){return e+"|"+t+"|"+n},_buildToken4bubbleTarget:function(e,t,n,r){let i;const s=q._getLocalTop(),l=g.getDocument(t);let c,u=null,d=e;return l&&(i=l.defaultView||l.parentWindow),t===window||t===window.window?d+="|null-2|window":n&&i&&q._hasSameOrigin(i.parent)&&void 0!==l&&s.document!==l?(u=function(e){let t=null;return q._hasSameOrigin(i.parent)&&g.forEach(a.queryAll("iframe, frame",i.parent.document),(function(n){let r=null;L(n)||(r=g.getIFrameWindow(n),q._hasSameOrigin(r)&&r.document===e&&(t=n))})),t}(l),u&&(c=o.ElementData.prototype.examineID(u),d+="|"+c.xPath+"-2")):d+="|null-2|document",d},_reinitConfig:function(){q._updateModules()},_publishEvent:function(e){let t,n,r,i,o=null,s=null,l=e.delegateTarget&&e.data?e.data:q._buildToken4currentTarget(e),u=null,d=null,h=!1,p=!1;const m=e.delegateTarget||null;if(A=e,e.type.match(/^(click|change|blur|mouse|touch)/)&&(U(v),c.resetFlushTimer()),g.getValue(f,"screenviewAutoDetect",!0)&&H(),"load"!==e.type&&"pageshow"!==e.type||e.nativeEvent.customLoad)if("click"===e.type&&(I=e.target.element),"beforeunload"===e.type&&(h=!1,i="a"===g.getTagName(I)?I:document.activeElement,i&&(function(e){let t=!1;return e&&"a"===g.getTagName(e)&&-1!==["intent:","mailto:","sms:","tel:"].indexOf(e.protocol)&&(t=!0),t}(i)?h=!0:g.forEach(f.ieExcludedLinks,(function(e){let t,n;const r=a.queryAll(e);for(t=0,n=r?r.length:0;t<n;t+=1)if(r[t]&&r[t]===I){h=!0;break}}))),h))A={};else if(P.isUnload(e)&&(O="unloading"),"change"!==e.type||!g.isLegacyIE||"checkbox"!==e.target.element.type&&"radio"!==e.target.element.type){if("propertychange"===e.type){if("checked"!==e.nativeEvent.propertyName||!("checkbox"===e.target.element.type||"radio"===e.target.element.type&&e.target.element.checked))return void(A={});e.type="change",e.target.type="INPUT"}if(e.target&&F(e.target.element))A={};else{if(Object.prototype.hasOwnProperty.call(M,l)||(Object.prototype.hasOwnProperty.call(e,"nativeEvent")&&(r=e.nativeEvent.currentTarget||e.nativeEvent.target),l=q._buildToken4bubbleTarget(e.type,r,!0,m)),Object.prototype.hasOwnProperty.call(M,l))for(u=M[l],t=0,n=u.length;t<n;t+=1)if(o=u[t],s=q.getModule(o),d=g.mixin({},e),s&&q.isStarted(o)&&"function"==typeof s.onevent&&(p=P.canPublish(o,d),p))try{s.onevent(d)}catch(e){}d&&"unload"===d.type&&p&&q.destroy(!1,d.type),A={}}}else A={};else A={}},_getLocalTop:function(){return window.window},addModule:function(e,t){C[e]={creator:t,instance:null,context:null,messages:[]},this.isInitialized()&&this.start(e)},getModule:function(e){return C[e]&&C[e].instance?C[e].instance:null},removeModule:function(e){this.stop(e),delete C[e]},isStarted:function(e){return Object.prototype.hasOwnProperty.call(C,e)&&null!==C[e].instance},start:function(e){let t=null;const n=C[e];n&&null===n.instance&&(n.context=new TLT.ModuleContext(e,this),t=n.instance=n.creator(n.context),"function"==typeof t.init&&t.init())},startAll:function(){let e=null;for(e in C)Object.prototype.hasOwnProperty.call(C,e)&&this.start(e)},stop:function(e){let t=null;const n=C[e];n&&null!==n.instance&&(t=n.instance,"function"==typeof t.destroy&&t.destroy(),n.instance=n.context=null)},stopAll:function(){let e=null;for(e in C)Object.prototype.hasOwnProperty.call(C,e)&&this.stop(e)},addService:function(e,t){E[e]={creator:t,instance:null}},getService:function(e){if(Object.prototype.hasOwnProperty.call(E,e)){if(!E[e].instance){try{E[e].instance=E[e].creator(this),"function"==typeof E[e].instance.init&&E[e].instance.init()}catch(t){throw g.clog("UIC terminated due to error when instanciating the "+e+" service."),new Error(t)}"function"!=typeof E[e].instance.getServiceName&&(E[e].instance.getServiceName=function(){return e})}return E[e].instance}return null},removeService:function(e){delete E[e]},broadcast:function(e){let t,n;if(e&&"object"==typeof e)for(t in C)Object.prototype.hasOwnProperty.call(C,t)&&(n=C[t],g.indexOf(n.messages,e.type)>-1&&"function"==typeof n.instance.onmessage&&n.instance.onmessage(e))},listen:function(e,t){let n=null;this.isStarted(e)&&(n=C[e],-1===g.indexOf(n.messages,t)&&n.messages.push(t))},fail:function(e,t,n){e="UIC FAILED. "+e;try{q.destroy(!!n,e)}catch(t){g.clog(e)}throw new q.UICError(e,t)},UICError:function(){function e(e,t){this.message=e,this.code=t}return e.prototype=new Error,e.prototype.name="UICError",e.prototype.constructor=e,e}(),isCrossOrigin:function(e,t){let n,r=!1;if(t=t||window.location.origin,!e||!t)return r;const i=e.match(/^\/\//);return e.match(/^\//)&&!i||(i||-1!==e.indexOf("://"))&&(i&&(n=t.indexOf("://"),-1!==n&&(t=t.substring(n+1))),r=e.length<t.length||t!==e.substring(0,t.length)||e.length>t.length&&"/"!==e.charAt(t.length)),r}};function X(e,t,n,r){let o=!0;e&&t&&t.match("GetRemoteConfig")?o=!1:e&&e.match("collectorPost")&&(t=e.replace("collectorPost","switch/"+n.tlAppKey)),t&&o?function(e,t){i.sendRequest({type:"GET",url:e,async:!0,timeout:5e3,oncomplete:function(n){!function(e){"0"!==e.responseText&&0!==e.data||(q.setAutoFlush(!1),g.setCookie("TLTSID","DND"),q.destroy(!1,"killswitch"))}(n),t&&"function"==typeof t&&t(n,e)}})}(t,r):t&&!o?function(e,t,n){const r={appKey:t.tlAppKey,osVersion:"N/A",platform:"web",appVersion:"N/A",tealeafSDKVersion:q.getLibraryVersion(),connection:"N/A",signalStrength:"N/A",deviceId:g.getCookieValue("TLTDID"),cellularConnectionType:"N/A"},o={"X-Tealeaf-SaaS-AppKey":t.tlAppKey,"Content-Type":"application/json","Access-Control-Allow-Headers":"*"};i.sendRequest({url:e,async:!0,timeout:5e3,data:JSON.stringify(r),headers:o,oncomplete:function(t){!function(e,t){let n=!0;if(e&&200===e.statusCode&&e.responseText){const t=JSON.parse(e.responseText);if(t&&t.appWebConfig&&t.appWebConfig.UIC){let r=t.appWebConfig.UIC;r=function(e,t){return e&&e.modules&&e.modules.dataLayer&&e.modules.dataLayer.dataObjects&&t&&t.length>0?e.modules.dataLayer.dataObjects.push.apply(e.modules.dataLayer.dataObjects,t):(e?e.modules?e.modules.dataLayer||(e.modules.dataLayer={dataObjects:{}}):e.modules={dataLayer:{dataObjects:{}}}:e={modules:{dataLayer:{dataObjects:{}}}},e.modules.dataLayer.dataObjects=t),e.core?e.core.modules?e.core.modules.dataLayer||(e.core.modules.dataLayer={enabled:!1,events:[{name:"load",target:window},{name:"unload",target:window}]}):e.core.modules={dataLayer:{enabled:!1,events:[{name:"load",target:window},{name:"unload",target:window}]}}:e.core={modules:{dataLayer:{enabled:!1,events:[{name:"load",target:window},{name:"unload",target:window}]}}},e.core.modules.dataLayer.enabled=!0,e}(r,function(e){const t=[];if(!e||0==Object.keys(e).length)return t;const n={};return e.forEach((e=>{n[e.object]||(n[e.object]={permittedProperties:[]}),e.property&&n[e.object].permittedProperties.push(e.property),n[e.object].filter||(n[e.object].filter=[]),e.matchProperty&&e.matchValue&&n[e.object].filter.push({matchProperty:e.matchProperty,matchValue:e.matchValue})})),Object.keys(n).forEach(((e,r)=>{const i={dataObject:e,rules:{includeEverything:!0,permittedProperties:n[e].permittedProperties,propertyBlocklist:[],screenviewBlocklist:[],filter:n[e].filter}};t.push(i)})),t}(t.appWebDataLayer)),e.updatedRemoteConfigWebObj=r,window.TLT.destroy(),N(r,void 0),n=!1}}}(t),n&&"function"==typeof n&&n(t,e)}})}(t,n,r):r&&"function"==typeof r&&r(void 0,t)}return U=function(e){let t=null;const n=g.getValue(f,"inactivityTimeout",e);function r(){q.destroy(!1,"inactivity")}n?(U=function(){t&&(clearTimeout(t),t=null),t=setTimeout(r,n)},U()):U=function(){}},N=function(e,t){let n,r,h,m,w,b=null;if(k)return;if(TLT&&TLT.replay)return;s=q.getService("config"),s.updateConfig(e),f=s.getCoreConfig();const _=function(e,t){let n,r,i,o,a,s=null;if(!e||!t)return s;for(n=0,r=e.length;n<r;n+=1)switch(i=e[n],typeof i){case"object":o=new RegExp(i.regex,i.flags),a=o.exec(t),a&&(s=a[0]);break;case"string":-1!==t.indexOf(i)&&(s=i)}return s}(f.blockedUserAgents,navigator.userAgent);if(_)return void(TLT.terminationReason="blockedUA: "+_);i=q.getService("ajax"),g.browserBaseService=o=q.getService("browserBase"),g.browserService=a=q.getService("browser"),l=q.getService("domCapture"),c=q.getService("queue"),u=q.getService("serializer");const S=s.getModuleConfig("TLCookie")||{};if(n=S.sessionizationCookieName||"TLTSID",r=g.getCookieValue("TLTSID"),"DND"===r)return void("destroyed"!==O&&q.destroy(!1,"killswitch"));if(r=g.getCookieValue(n)||function(e){let t,n,r;if(!localStorage||!e)return;const i=localStorage.getItem(e);return i&&(n=i.split("|"),t=parseInt(n[0],10),Date.now()>t?localStorage.removeItem(e):r=n[1]),r}(n),r||(n=S.wcxCookieName||"WCXSID",r=g.getCookieValue(n)),!q._updateModules())return void("destroyed"!==O&&q.destroy(!1,"modules init"));d=q.getModule("dataLayer"),s.subscribe&&s.subscribe("configupdated",q._reinitConfig),k=!0,O="loaded";try{"function"==typeof TLFExtensionNotify&&TLFExtensionNotify("Initialized")}catch(e){}const x=q.getServiceConfig("queue"),C=x.queues||[];for((g.isLegacyIE||g.isIE11)&&(b=g.getOriginAndPath().origin),h=0;h<C.length;h+=1){if(b&&q.isCrossOrigin(C[h].endpoint,b))return q.setAutoFlush(!1),void q.destroy(!1,"CORS not supported");!r&&S.tlAppKey&&X(C[h].endpoint,C[h].killswitchURL,S),C[h].checkEndpoint&&!x.asyncReqOnUnload&&(x.asyncReqOnUnload=!0,i.sendRequest({oncomplete:function(e){e.success&&(x.asyncReqOnUnload=!1)},timeout:C[h].endpointCheckTimeout||3e3,url:C[h].endpoint,headers:{"X-PageId":T,"X-Tealeaf-SaaS-AppKey":S.tlAppKey,"X-Tealeaf-EndpointCheck":!0},async:!0,error:function(e){e.success||(x.endpointCheckFailed=!0)}}))}const E=function(e){const t={type:"load",target:window.window,srcElement:window.window,currentTarget:window.window,bubbles:!0,cancelBubble:!1,cancelable:!0,timeStamp:+new Date,customLoad:!0},n=new o.WebEvent(t);q._publishEvent(n),e&&a.unsubscribe(m,w,E)};if(f.screenviewLoadEvent?(m=f.screenviewLoadEvent.name,w=f.screenviewLoadEvent.target||window,a.subscribe(m,w,E)):E(),q.isInitialized()&&(O="initialized",U(v),p=function(e){"mousemove"===e.type&&(y=!0),a.unsubscribe("mousemove",document,p),p=null},a.subscribe("mousemove",document,p,{once:!0})),"function"==typeof j)try{"function"==typeof t?t(O):j(O)}catch(e){g.clog("Error in callback.",e)}},function(){let e,t,n=null;for(n in D)if(Object.prototype.hasOwnProperty.call(D,n))for(e=0,t=D[n].length;e<t;e+=1)!function(e,t){q[t]=function(){const n=this.getService(e);if(n)return n[t].apply(n,arguments)}}(n,D[n][e])}(),q}(),function(){"use strict";const e=window.navigator.userAgent.toLowerCase(),t=-1!==e.indexOf("msie")||-1!==e.indexOf("trident"),n=function(){const e=!!window.performance;return t&&(!e||document.documentMode<11)}(),r=t&&11===document.documentMode,i=-1!==e.indexOf("android"),o=/(ipad|iphone|ipod)/.test(e),a=-1!==e.indexOf("opera mini"),s=-1===e.indexOf("chrome")&&-1!==e.indexOf("safari"),l={"a:":"link","button:button":"button","button:submit":"button","input:button":"button","input:checkbox":"checkBox","input:color":"colorPicker","input:date":"datePicker","input:datetime":"datetimePicker","input:datetime-local":"datetime-local","input:email":"emailInput","input:file":"fileInput","input:image":"button","input:month":"month","input:number":"numberPicker","input:password":"textBox","input:radio":"radioButton","input:range":"slider","input:reset":"button","input:search":"searchBox","input:submit":"button","input:tel":"tel","input:text":"textBox","input:time":"timePicker","input:url":"urlBox","input:week":"week","select:":"selectList","select:select-one":"selectList","textarea:":"textBox","textarea:textarea":"textBox"},c={isIE:t,isLegacyIE:n,isIE11:r,isAndroid:i,isLandscapeZeroDegrees:!1,isiOS:o,isOperaMini:a,isSafari:s,isUndefOrNull:function(e){return null==e},isArray:function(e){return!(!e||"[object Array]"!==Object.prototype.toString.call(e))},getSerialNumber:function(){const e=u;return u+=1,e},getRandomString:function(e,t){let n,r,i="";if(!e)return i;for("string"!=typeof t&&(t="ABCDEFGHJKLMNPQRSTUVWXYZ23456789"),n=0,r=t.length;n<e;n+=1)i+=t.charAt(Math.floor(Math.random()*r));return i},getValue:function(e,t,n){let r,i;if(n=void 0===n?null:n,!e||"object"!=typeof e||"string"!=typeof t)return n;const o=t.split(".");for(r=0,i=o.length;r<i;r+=1){if(!e||void 0===e[o[r]])return n;e=e[o[r]]}return e},indexOf:function(e,t){return e&&e.indexOf?e.indexOf(t):-1},forEach:function(e,t,n){let r;if(!(e&&e.length&&t&&t.call))return 0;for(r=0;r<e.length;r+=1)t.call(n,e[r],r,e);return 1},some:function(e,t){let n,r,i=!1;for(n=0,r=e.length;n<r;n+=1)if(i=t(e[n],n,e),i)return i;return i},convertToArray:function(e){let t=0;const n=[];for(;t<e.length;)n.push(e[t]),t+=1;return n},mixin:function(e){let t,n,r,i;for(r=1,i=arguments.length;r<i;r+=1)for(t in n=arguments[r],n)Object.prototype.hasOwnProperty.call(n,t)&&(e[t]=n[t]);return e},extend:function(e,t,n){let r="";for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e&&"[object Object]"===Object.prototype.toString.call(n[r])?(void 0===t[r]&&(t[r]={}),this.extend(e,t[r],n[r])):t[r]=n[r]);return t},clone:function(e){let t,n;if(null===e||"object"!=typeof e)return e;if(e instanceof Object){for(n in t="[object Array]"===Object.prototype.toString.call(e)?[]:{},e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=this.clone(e[n]));return t}},parseVersion:function(e){let t,n,r=[];if(!e||!e.length)return r;for(r=e.split("."),t=0,n=r.length;t<n;t+=1)r[t]=/^\d+$/.test(r[t])?parseInt(r[t],10):r[t];return r},isEqual:function(e,t){let n,r,i,o,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e instanceof Object&&t instanceof Object){if("[object Array]"===Object.prototype.toString.call(e)&&"[object Array]"===Object.prototype.toString.call(t)){if(e.length!==t.length)return!1;for(n=0,a=e.length;n<a;n+=1)if(!this.isEqual(e[n],t[n]))return!1;return!0}if("[object Object]"===Object.prototype.toString.call(e)&&"[object Object]"===Object.prototype.toString.call(t)){for(n=0;n<2;n+=1){for(i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(!Object.prototype.hasOwnProperty.call(t,i))return!1;if(r=this.isEqual(e[i],t[i]),!r)return!1}o=e,e=t,t=o}return!0}}return!1},calculateRelativeXY:function(e){if(c.isUndefOrNull(e)||c.isUndefOrNull(e.x)||c.isUndefOrNull(e.y)||c.isUndefOrNull(e.width)||c.isUndefOrNull(e.height))return"0.5,0.5";let t=Math.abs(e.x/e.width).toFixed(4),n=Math.abs(e.y/e.height).toFixed(4);return t=t>1||t<0?.5:t,n=n>1||n<0?.5:n,t+","+n},createObject:function(){let e=null,t=null;return"function"==typeof Object.create?e=Object.create:(t=function(){},e=function(e){if("object"!=typeof e&&"function"!=typeof e)throw new TypeError("Object prototype need to be an object!");return t.prototype=e,new t}),e}(),access:function(e,t){let n,r=t||window;if("string"!=typeof e||"object"!=typeof r)return;const i=e.split("."),o=i.length;for(n=0;n<o;n+=1)if(0!==n||"window"!==i[n]){if(!Object.prototype.hasOwnProperty.call(r,i[n]))return;if(r=r[i[n]],n<o-1&&!(r instanceof Object))return}return r},isNumeric:function(e){let t=!1;return c.isUndefOrNull(e)||!/\S/.test(e)||(t=!isNaN(2*e)),t},isUpperCase:function(e){return e===e.toUpperCase()&&e!==e.toLowerCase()},isLowerCase:function(e){return e===e.toLowerCase()&&e!==e.toUpperCase()},extractResponseHeaders:function(e){let t,n=null;const r={},i=(e=e&&e.length?e.split("\n"):[]).length;for(t=0;t<i;t+=1)n=e[t].split(": "),2===n.length&&(r[n[0]]=n[1]);return r},getTargetState:function(e){let t=null,n=null,r=null,i="";const o=this.getTagName(e);let a={a:["innerText","href"],input:{range:["maxValue:max","value"],checkbox:["value","checked"],radio:["value","checked"],image:["src"]},select:["value"],button:["value","innerText"],textarea:["value"]}[o]||null;if(null!==a)for(i in"[object Object]"===Object.prototype.toString.call(a)&&(a=a[e.type]||["value"]),n={},a)Object.prototype.hasOwnProperty.call(a,i)&&(-1!==a[i].indexOf(":")?(r=a[i].split(":"),n[r[0]]=e[r[1]]):"innerText"===a[i]?n[a[i]]=this.trim(e.innerText||e.textContent):n[a[i]]=e[a[i]]);return"select"===o&&e.options&&!isNaN(e.selectedIndex)&&(n=n||{},n.index=e.selectedIndex,n.index>=0&&n.index<e.options.length&&(t=e.options[e.selectedIndex],n.value=t.getAttribute("value")||t.getAttribute("label")||t.text||t.innerText,n.text=t.text||t.innerText)),n&&e.disabled&&(n.disabled=!0),n},getDocument:function(e){let t=e;return e&&9!==e.nodeType&&(t=e.getRootNode?e.getRootNode():e.ownerDocument||e.document),t},getWindow:function(e){try{if(e.self!==e){const t=c.getDocument(e);return c.isUndefOrNull(t.defaultView)?t.parentWindow:t.defaultView}}catch(t){e=null}return e},getOriginAndPath:function(e){let t,n,r,i,o,a,s=[];const l={},u={};(e=e||window.location).origin?l.origin=e.origin:l.origin=(e.protocol||"")+"//"+(e.host||""),l.path=(e.pathname||"").split(";",1)[0],(l.origin.indexOf("file://")>-1||c.isiOS&&window.Ionic)&&(t=l.path.match(/(.*)(\/.*app.*)/),null!==t&&(l.path=t[2],l.origin="file://"));const d=e.search||"";try{n=new URLSearchParams(d),n.forEach((function(e,t){u[t]=e}))}catch(e){for(d.length>1&&"?"===d.charAt(0)&&(s=decodeURIComponent(d).substring(1).split("&")),o=0;o<s.length;o+=1)a=s[o].indexOf("="),a>-1&&(r=s[o].substring(0,a),i=s[o].substring(a+1),u[r]=i)}return l.queryParams=u,l},getIFrameWindow:function(e){let t=null;if(!e)return t;try{t=e.contentWindow||(e.contentDocument?e.contentDocument.parentWindow:null)}catch(e){}return t},getTagName:function(e){let t="";return c.isUndefOrNull(e)||(t=e==document||9===e.nodeType?"document":e==window||e==window.window?"window":"string"==typeof e?e.toLowerCase():(e.tagName||e.nodeName||"").toLowerCase()),t},getTlType:function(e){let t,n="";if(c.isUndefOrNull(e)||!e.type)return n;const r=e.type.toLowerCase();return t=r+":",e.subType&&(t+=e.subType.toLowerCase()),n=l[t]||r,n},isIFrameDescendant:function(e){const t=c.getWindow(e);return!!t&&t!=TLT._getLocalTop()},getOrientationMode:function(e){let t="INVALID";if("number"!=typeof e)return t;switch(e){case 0:case 180:case 360:t="PORTRAIT";break;case 90:case-90:case 270:t="LANDSCAPE";break;default:t="UNKNOWN"}return t},getOrientationAngle:function(){if("number"==typeof window.orientation)return window.orientation;let e=(screen.orientation||{}).angle;if("number"!=typeof e)switch(screen.mozOrientation||screen.msOrientation){case"landscape-primary":case"landscape-secondary":e=90;break;default:e=0}return e},clog:(window,function(){}),trim:function(e){return e&&e.toString?e.trim?e.trim():e.toString().replace(/^\s+|\s+$/g,""):e},ltrim:function(e){return e&&e.toString?e.trimStart?e.trimStart():e.toString().replace(/^\s+/,""):e},rtrim:function(e){return e&&e.toString?e.trimEnd?e.trimEnd():e.toString().replace(/\s+$/,""):e},setCookie:function(e,t,n,r,i,o,a){let s,l,c,u="";"None"===a?o=!0:"Lax"!==a&&(a="Strict");const d=";SameSite="+a,f=o?";Secure":"";if(!e)return;e=encodeURIComponent(e),t=encodeURIComponent(t);const h=(i||location.hostname).split("."),p=";Path="+(r||"/");for("number"==typeof n&&(this.isIE?(c=new Date,c.setTime(c.getTime()+1e3*n),u=";Expires="+c.toUTCString()):u=";Max-Age="+n),l=h.length,s=1===l?1:2;s<=l&&(document.cookie=e+"="+t+";Domain="+h.slice(-s).join(".")+p+u+f+d,this.getCookieValue(e)!==t);s+=1)1===l&&(document.cookie=e+"="+t+p+u+f+d)},getCookieValue:function(e,t){let n,r,i,o,a,s=null;try{if(t=t||document.cookie,!e||!e.toString)return null;for(a=(e+="=").length,o=t.split(";"),n=0,r=o.length;n<r;n+=1)if(i=o[n],i=c.ltrim(i),0===i.indexOf(e)){s=i.substring(a,i.length);break}}catch(e){s=null}return s},getQueryStringValue:function(e,t,n){let r,i,o,a,s=null;try{if(o=(n=n||window.location.search).length,!e||!e.toString||!o)return null;n=(t=t||"&")+n.substring(1),e=t+e+"=",r=n.indexOf(e),-1!==r&&(a=r+e.length,i=n.indexOf(t,a),-1===i&&(i=o),s=decodeURIComponent(n.substring(a,i)))}catch(e){}return s},addEventListener:window.addEventListener?function(e,t,n){e.addEventListener(t,n,!1)}:function(e,t,n){e.attachEvent("on"+t,n)},matchTarget:function(e,t){let n,r,i,o,a,s,l,c,u=-1,d=document;if(!e||!t)return u;for(this.browserService&&this.browserBaseService||(this.browserService=TLT.getService("browser"),this.browserBaseService=TLT.getService("browserBase")),-2===t.idType&&(i=this.browserBaseService.getNodeFromID(t.id,t.idType),d=this.getDocument(i)),n=0,l=e.length;n<l&&-1===u;n+=1)if(c=e[n],"string"==typeof c){for(o=this.browserService.queryAll(c,d),r=0,a=o?o.length:0;r<a;r+=1)if(o[r]&&(s=this.browserBaseService.ElementData.prototype.examineID(o[r]),s.idType===t.idType&&s.id===t.id)){u=n;break}}else if(c&&c.id&&c.idType&&t.idType&&t.idType.toString()===c.idType.toString())switch(typeof c.id){case"string":c.id===t.id&&(u=n);break;case"object":c.cRegex||(c.cRegex=new RegExp(c.id.regex,c.id.flags)),c.cRegex.lastIndex=0,c.cRegex.test(t.id)&&(u=n)}return u},applyPrivacyPatterns:function(e,t){let n,r,i;if(!e)return"";if("number"==typeof e)return e;for(n=0,r=(t=t||[]).length;n<r;n+=1)i=t[n],i.cRegex.lastIndex=0,e=e.replace(i.cRegex,i.replacement);return e},WeakMap:function(){function e(e,t){let n,r;for(n=0,r=(e=e||[]).length;n<r;n+=1)if(e[n][0]===t)return n;return-1}return function(){let t=[];this.set=function(n,r){const i=e(t,n);t[i>-1?i:t.length]=[n,r]},this.get=function(n){const r=t[e(t,n)];return r?r[1]:void 0},this.clear=function(){t=[]},this.has=function(n){return e(t,n)>=0},this.remove=function(n){const r=e(t,n);r>=0&&t.splice(r,1)},this.delete=this.remove}}()};let u=1;"undefined"!=typeof TLT&&TLT||(window.TLT={}),TLT.utils=c}(),function(){"use strict";TLT.EventTarget=function(){this._handlers={}},TLT.EventTarget.prototype={constructor:TLT.EventTarget,publish:function(e,t){let n=0,r=0;const i=this._handlers[e],o={type:e,data:t};if(void 0!==i)for(r=i.length;n<r;n+=1)i[n](o)},subscribe:function(e,t){Object.prototype.hasOwnProperty.call(this._handlers,e)||(this._handlers[e]=[]),this._handlers[e].push(t)},unsubscribe:function(e,t){let n=0,r=0;const i=this._handlers[e];if(i)for(r=i.length;n<r;n+=1)if(i[n]===t)return void i.splice(n,1)}}}(),TLT.ModuleContext=function(){"use strict";const e=["broadcast","getConfig:getModuleConfig","listen","post","getXPathFromNode","performDOMCapture","performFormCompletion","isInitialized","getStartTime","normalizeUrl","getCurrentOffset","getTabId","setSessionCookieInfo"];return function(t,n){let r,i,o=null,a=null,s=null;const l={};for(r=0,i=e.length;r<i;r+=1)o=e[r].split(":"),o.length>1?(s=o[0],a=o[1]):(s=o[0],a=o[0]),l[s]=function(e){return function(){const r=n.utils.convertToArray(arguments);return r.unshift(t),n[e].apply(n,r)}}(a);return l.utils=n.utils,l}}(),TLT.addService("config",(function(e){"use strict";function t(t,n){e.utils.extend(!0,t,n),r.publish("configupdated",r.getConfig())}let n={core:{},modules:{},services:{}},r=e.utils.extend(!1,e.utils.createObject(new TLT.EventTarget),{getConfig:function(){return n},getDefaultConfig:function(){function e(e,t){let n;if(t.length>0)return n=e.replace(t,"xxxxxx"),n}const t={core:{buildNote:"Acoustic Tealeaf UIC "+window.TLT.getLibraryVersion(),blockedElements:[],ieExcludedLinks:['a[href*="javascript:void"]',"input[onclick*='javascript:']"],blockedUserAgents:[{regex:"(Google|Bing|Face|DuckDuck|Yandex|Exa)bot|spider|archiver",flags:"i"},"PhantomJS"],inactivityTimeout:174e4,modules:{replay:{events:[{name:"change",attachToShadows:!0,recurseFrames:!0},{name:"click",recurseFrames:!0},{name:"dblclick",recurseFrames:!0},{name:"contextmenu",recurseFrames:!0},{name:"pointerdown",recurseFrames:!0},{name:"pointerup",recurseFrames:!0},{name:"hashchange",target:window},{name:"focus",recurseFrames:!0},{name:"blur",recurseFrames:!0},{name:"load",target:window},{name:"unload",target:window},{name:"resize",target:window},{name:"scroll",target:window},{name:"mousemove",recurseFrames:!0},{name:"orientationchange",target:window},{name:"touchend"},{name:"touchstart"},{name:"error",target:window},{name:"visibilitychange"}]},flushQueue:{events:[]},overstat:{enabled:!0,events:[{name:"click",recurseFrames:!0},{name:"mousemove",recurseFrames:!0},{name:"mouseout",recurseFrames:!0},{name:"submit",recurseFrames:!0}]},performance:{enabled:!0,events:[{name:"load",target:window},{name:"unload",target:window}]},ajaxListener:{enabled:!0,events:[{name:"load",target:window},{name:"unload",target:window}]},gestures:{enabled:!0,events:[{name:"tap",target:window},{name:"hold",target:window},{name:"drag",target:window},{name:"release",target:window},{name:"pinch",target:window}]},dataLayer:{enabled:!1,events:[{name:"load",target:window},{name:"unload",target:window}]},TLCookie:{enabled:!0}},screenviewAutoDetect:!0,framesBlacklist:[]},services:{queue:{asyncReqOnUnload:!0,useBeacon:!0,useFetch:!0,xhrEnabled:!0,queues:[{qid:"DEFAULT",endpoint:"",maxEvents:30,timerInterval:6e4,maxSize:3e5,checkEndpoint:!0,endpointCheckTimeout:4e3,encoder:"gzip"}]},message:{privacy:[{targets:["input[type=password]"],maskType:2},{targets:["input[id*=phone]","input[name*=phone]"],maskType:4,maskFunction:function(e){return e.slice(0,-3).replace(/\d/g,"X")+e.slice(-3)}},{exclude:!0,targets:["input[type=hidden]","input[type=radio]","input[type=checkbox]","input[type=submit]","input[type=button]","input[type=search]"],maskType:4,maskFunction:function(e){return e.replace(/[a-z]/gi,"X").replace(/\d/g,"9")}}],privacyPatterns:[{pattern:{regex:"\\d{3}-\\d{2}-\\d{4}",flags:"g"},replacement:"XXX-XX-XXXX"},{pattern:{regex:"<div[^<]*tlPrivate[^<]*>(.+?)</div>",flags:"g"},replacement:function(e,t){let n;if(t.length>0)return n=e.replace(t,"xxxxxx"),n}},{pattern:{regex:"<span[^<]*tlPrivate[^<]*>(.+?)</span>",flags:"g"},replacement:e},{pattern:{regex:"<p[^<]*tlPrivate[^<]*>(.+?)</p>",flags:"g"},replacement:e}]},encoder:{gzip:{encode:"window.pako.gzip",defaultEncoding:"gzip"}},domCapture:{diffEnabled:!0,options:{maxLength:1e7,captureShadowDOM:!0,captureDynamicStyles:!0,captureFrames:!0}},browser:{normalizeTargetToParentLink:!0}},modules:{overstat:{hoverThreshold:3e3},performance:{calculateRenderTime:!0,renderTimeThreshold:6e5,performanceAlert:{enabled:!0,threshold:3e3,maxAlerts:100,blacklist:[]}},replay:{tab:!1,domCapture:{enabled:!0,screenviewBlacklist:[],triggers:[{event:"change"},{event:"click"},{event:"dblclick"},{event:"contextmenu"},{event:"visibilitychange"},{event:"load",fullDOMCapture:!0,delay:300}]},mousemove:{enabled:!0,sampleRate:200,ignoreRadius:3}},ajaxListener:{urlBlocklist:[{regex:"brilliantcollector\\.com"}],filters:[{log:{requestHeaders:!0,requestData:!1,responseHeaders:!0,responseData:!1}}]},dataLayer:{dataObjects:[{dataObject:"window.dataLayer",rules:{screenviewBlocklist:[],propertyBlocklist:[],permittedProperties:[],includeEverything:!0}}]},TLCookie:{appCookieWhitelist:[{regex:".*"}],tlAppKey:"",disableTLTDID:!1}}};return(window.TLT.utils.isiOS||window.TLT.utils.isAndroid)&&function(){let e;t.services.queue.queues[0].maxEvents=10,t.services.queue.queues[0].maxSize=1e4,t.services.queue.queues[0].timerInterval=1e4,t.services.queue.queues[0].endpointCheckTimeout=1e4,window.TLT.utils.isiOS&&(e=window.navigator.userAgent.match(/OS (\d+)_/),e&&e[1]<13&&(t.services.queue.useBeacon=!1),t.core.modules.flushQueue&&t.core.modules.flushQueue.events?t.core.modules.flushQueue.events.push({name:"visibilitychange"}):console.log("Tealeaf Error: include the flushQueue module!"))}(),t},updateConfig:function(e){t(n,e)},getCoreConfig:function(){return n.core},updateCoreConfig:function(e){t(n.core,e)},getServiceConfig:function(e){return n.services[e]||{}},updateServiceConfig:function(e,r){void 0===n.services[e]&&(n.services[e]={}),t(n.services[e],r)},getModuleConfig:function(e){return n.modules[e]||{}},updateModuleConfig:function(e,r){void 0===n.modules[e]&&(n.modules[e]={}),t(n.modules[e],r)},destroy:function(){n={core:{},modules:{},services:{}}}});return r})),TLT.addService("queue",(function(e){"use strict";const t=e.utils;let n=null,r={},i=6e5;const o=e.getService("ajax"),a=e.getService("browser"),s=e.getService("encoder"),l=e.getService("serializer"),c=e.getService("config"),u=e.getService("message");let d=null,f={},h=!0,p=!0;const g={5:{limit:300,count:0},6:{limit:400,count:0}},m=[];let y=!0,v=!1,w=!0,b=!0;const _=function(){let t={};function n(e){return void 0!==t[e]}function r(e){return n(e)?t[e]:null}function i(e){const t=r(e);null!==t&&(t.data=[])}return{exists:n,add:function(e,r){return n(e)||(t[e]={lastOffset:0,data:[],queueId:e,url:r.url,eventThreshold:r.eventThreshold,sizeThreshold:r.sizeThreshold||0,timerInterval:r.timerInterval,size:-1,serializer:r.serializer,encoder:r.encoder,crossDomainEnabled:!!r.crossDomainEnabled,crossDomainIFrame:r.crossDomainIFrame}),t[e]},remove:function(e){n(e)&&delete t[e]},reset:function(){t={}},get:r,clear:i,flush:function(e){let t=null;return n(e)&&(t=r(e).data,i(e)),t},push:function(t,i){let o=null,a=null;const s=window.tlBridge,c=window.iOSJSONShuttle;try{a=l.serialize(i)}catch(e){a="Serialization failed: "+(e.name?e.name+" - ":"")+e.message,i={error:a}}if(void 0!==s&&"function"==typeof s.addMessage)s.addMessage(a);else if(void 0!==c&&"function"==typeof c)c(a);else if(n(t))return o=r(t),o.data.push(i),o.data=e.redirectQueue(o.data),o.sizeThreshold&&(a=l.serialize(o.data),o.size=a.length),o.data.length;return 0}}}();function T(e){w&&(b=!0),e&&e.id&&t.extend(!0,m[e.id-1],{rspEnd:u.getCurrentOffset(),success:e.success,statusCode:e.statusCode,statusText:e.statusText})}function S(){const n=t.getOriginAndPath(window.location);return e.normalizeUrl("",n.path)}function x(e,t,n,r){const i=_.get(e),o={name:t,value:n};let a=null;"string"==typeof t&&"string"==typeof n&&(i.headers||(i.headers={once:[],always:[]}),a=r?i.headers.always:i.headers.once,a.push(o))}function C(r,a){const c=_.get(r);if(!c)return;let d=c.url?_.flush(r):null;const f=d?d.length:0,h={"Content-Type":"application/json","X-PageId":e.getPageId(),"X-Tealeaf":"device (UIC) Lib/6.4.72","X-TealeafType":"GUI","X-TeaLeaf-Page-Url":S(),"X-Tealeaf-SyncXHR":(!!a).toString()};let p=null;const g=u.getCurrentOffset(),v=c.serializer||"json",w=c.encoder;let C,E;const k=n.tltWorker,O="unloading"===e.getState(),L=t.getOriginAndPath().origin,I=e.isCrossOrigin(c.url,L);let D,P=null;if(!f||!c)return;const A=g-d[f-1].offset;if(!(i&&A>i+6e4)){if(b=!1,c.lastOffset=d[f-1].offset,h["X-Tealeaf-MessageTypes"]=function(e){let t,n,r="";const i=[];if(!e||!e.length)return r;for(t=0,n=e.length;t<n;t+=1)i[e[t].type]=!0;for(t=0,n=i.length;t<n;t+=1)i[t]&&(r&&(r+=","),r+=t);return r}(d),d=u.wrapMessages(d),p=d.serialNumber,m[p-1]={serialNumber:p,reqStart:g},y&&(d.log={requests:m}),n.endpointCheckFailed&&(d.log.endpointCheckFailed=!0),function(){let t,n,r=0;const i=e.provideRequestHeaders();if(i&&i.length)for(t=i.length;r<t;r+=1)n=i[r],x("DEFAULT",n.name,n.value,n.recurring)}(),function(e,t){let n,r;const i=_.get(e).headers;let o=null;function a(e,t){let n,r,i=null;for(n=0,r=e.length;n<r;n+=1)i=e[n],t[i.name]=i.value}if(t=t||{},i)for(o=[i.always,i.once],n=0,r=o.length;n<r;n+=1)a(o[n],t)}(r,h),!k||a||O)if(v&&(d=l.serialize(d,v)),w&&(E=s.encode(d,w),E&&(E.data&&!E.error&&(E.data instanceof window.ArrayBuffer?E.data.byteLength<d.length?(d=E.data,h["Content-Encoding"]=E.encoding):E.error=w+" encoder did not reduce payload ("+E.data.byteLength+") compared to original data ("+d.length+")":E.error="Encoder did not apply "+w+" encoding."),E.error&&e.logExceptionEvent("EncoderError: "+E.error,"UIC",-1))),c.crossDomainEnabled){if(P=t.getIFrameWindow(c.crossDomainIFrame),!P)return;if(C={request:{id:p,url:c.url,async:!a,headers:h,data:d}},"function"==typeof window.postMessage)P.postMessage(C,c.crossDomainIFrame.src);else try{P.sendMessage(C)}catch(e){return}b=!0}else o.sendRequest({id:p,oncomplete:T,url:c.url,async:!a,isUnloading:O,isCrossOrigin:I,headers:h,data:d});else k.onmessage=function(e){T(e.data)},D={id:p,url:c.url,headers:h,data:d,isUnloading:O,isCrossOrigin:I},k.postMessage(D);!function(e){let t=null;if(!_.exists(e))throw new Error("Queue: "+e+" does not exist!");const n=_.get(e);t=n?n.headers:null,t&&(t.once=[])}(r)}}function E(e){let t,r=null;const i=n.queues;for(t=0;t<i.length;t+=1)r=i[t],C(r.qid,e);return!0}function k(t,r){let o,a,s;const l=u.createMessage(r),c=_.get(t);if(a=c.data.length,a&&(s=l.offset-c.data[a-1].offset,i&&s>i))return e.setAutoFlush(!1),void e.destroy(!1,"inactivity(2)");a=_.push(t,l);const d=c.size;w&&!b||(a>=c.eventThreshold||d>=c.sizeThreshold)&&h&&"unloading"!==e.getState()&&(o=e.getCurrentWebEvent(),"click"!==o.type||n.ddfoc?C(t):p&&(p=!1,window.setTimeout((function(){_.exists(t)&&(C(t),p=!0)}),500)))}function O(e,t){f[e]=window.setTimeout((function n(){h&&(!w||w&&b)&&C(e),f[e]=window.setTimeout(n,t)}),t)}function L(e){let t=!1;return e&&f[e]&&(window.clearTimeout(f[e]),delete f[e],t=!0),t}function I(e){}return{init:function(){var o;v||(o=c.getServiceConfig("queue")||{},n=o,r=e.getCoreConfig(),i=t.getValue(r,"inactivityTimeout",6e5),w=t.getValue(n,"serializePost",!0),t.forEach(n.queues,(function(t,n){let r=null;"DEFAULT"===t.qid&&(d=t),t.crossDomainEnabled&&(r=a.query(t.crossDomainFrameSelector),r||e.fail("Cross domain iframe not found")),_.add(t.qid,{url:t.endpoint,eventThreshold:t.maxEvents,sizeThreshold:t.maxSize||0,serializer:t.serializer,encoder:t.encoder,timerInterval:t.timerInterval||0,crossDomainEnabled:t.crossDomainEnabled||!1,crossDomainIFrame:r}),void 0!==t.timerInterval&&t.timerInterval>0&&O(t.qid,t.timerInterval)})),c.subscribe("configupdated",I),v=!0)},destroy:function(){h&&E(!n.asyncReqOnUnload),c.unsubscribe("configupdated",I),function(){let e=0;for(e in f)Object.prototype.hasOwnProperty.call(f,e)&&L(e);f={}}(),_.reset(),n=null,d=null,v=!1},_getQueue:function(e){return _.get(e).data},setAutoFlush:function(e){h=!0===e},flush:function(e){if(e=e||d.qid,!_.exists(e))throw new Error("Queue: "+e+" does not exist!");C(e)},flushAll:function(e){return E(!!e)},post:function(t,r,i){e.isInitialized()&&(i=i||function(e){let t,r,i,o,a=null,s="";const l=n.queues;for(t=0,i=l.length;t<i;t+=1)if(a=l[t],a&&a.modules)for(r=0,o=a.modules.length;r<o;r+=1)if(s=a.modules[r],s===e)return a.qid;return d.qid}(t),_.exists(i)&&(function(e){let t=!1;if(!e||!e.type)return!0;const n=g[e.type];return n&&(n.count+=1,n.count>n.limit&&(t=!0,n.count===n.limit+1&&k("DEFAULT",{type:16,dataLimit:{messageType:e.type,maxCount:n.limit}}))),t}(r)||k(i,r)))},resetFlushTimer:function(e){e=e||d.qid,_.exists(e)&&function(e){let t;e&&L(e)&&(t=_.get(e),t.timerInterval&&O(e,t.timerInterval))}(e)},setXHRLog:function(){y=!y}}})),TLT.addService("browserBase",(function(e){"use strict";let t;const n=e.utils,r={optgroup:!0,option:!0,nobr:!0},i={};let o,a,s,l,c,u,d=null,f=!1;const h=5,p=60;function g(){o=e.getService("config"),d=e.getService("serializer"),a=o?o.getServiceConfig("browser"):{},s=a.blacklist||[],l=a.customid||[],c=n.getValue(a,"normalizeTargetToParentLink",!0),u=n.getValue(a,"logAttributes",[])}function m(e,t){let n,r,i;if(!e)return null;if(i=void 0!==t?t:e.id,!i||"string"!=typeof i)return null;for(n=0,r=s.length;n<r;n+=1)if("string"==typeof s[n]){if(i===s[n])return null}else if("object"==typeof s[n]&&(s[n].cRegex||(s[n].cRegex=new RegExp(s[n].regex,s[n].flags)),s[n].cRegex.lastIndex=0,s[n].cRegex.test(i)))return null;return i}const y=function(){const t={nobr:!0};return function(r,i,o,a){let s,l,c,u,d=null,f=null,h=null,p=!0,g="",y=!1;const v=document.documentElement,w=[],b=e._getLocalTop();if(!r||!r.nodeType)return w;if(11===r.nodeType){if(!(r=r.host))return w;y=!0}for(;p;)if(p=!1,g=n.getTagName(r),"window"!==g)if(g&&!y&&t[g])r=r.parentNode,p=!0;else{for(l=m(r,a);r&&(1===r.nodeType||9===r.nodeType)&&r!=document&&(i||!l);l=m(r))if(h=r.parentNode,h){if(d=h.firstChild,!d){w.push(["XPath Error(1)"]),r=null;break}for(s=0;d;d=d.nextSibling)if(1===d.nodeType&&n.getTagName(d)===g){if(d===r){c=[g,s],y&&(c.push("h"),y=!1),w[w.length]=c;break}s+=1}11===h.nodeType?(r=h.host,y=!0):r=h,g=n.getTagName(r)}else{if(f=n.getWindow(r),!f||o)return c=[g,0],w[w.length]=c,w.reverse();if(f===b)return w.reverse();r=f.frameElement,g=n.getTagName(r),h=r.parentNode}l&&!i&&(c=[l],y&&(c.push("h"),y=!1),w[w.length]=c,n.isIFrameDescendant(r)?(p=!0,r=n.getWindow(r).frameElement):o||v.contains(r)||r.getRootNode&&(u=r.getRootNode(),u&&(r=u.host,y=!0,p=!0))),a=void 0}return w.reverse()}}();function v(e){let t="null";return e&&e.length?(t=d.serialize(e,"json"),t):t}function w(e,t,n,r){let i;const o=y(e,!!t,!!r);return i=n?o:v(o),i}function b(e){return e&&void 0!==e.originalEvent&&void 0!==e.isDefaultPrevented&&!e.isSimulated}function _(e){return e?(e.type&&0===e.type.indexOf("touch")&&(b(e)&&(e=e.originalEvent),"touchstart"===e.type?e=e.touches[e.touches.length-1]:"touchend"===e.type&&(e=e.changedTouches[0])),e):null}function T(e){let t=0,n=0;const r=document.documentElement,i=document.body;return(e=_(e))&&(e.pageX||e.pageY?(t=e.pageX,n=e.pageY):(e.clientX||e.clientY)&&(t=e.clientX,n=e.clientY,r?(t=e.clientX+r.scrollLeft-r.clientLeft,n=e.clientY+r.scrollTop-r.clientTop):i&&(t=e.clientX+i.scrollLeft-i.clientLeft,n=e.clientY+i.scrollTop-i.clientTop))),{x:t,y:n}}function S(e,t){this.x=Math.round(e||0),this.y=Math.round(t||0)}function x(e,t){this.width=Math.round(e||0),this.height=Math.round(t||0)}function C(e,t){t=function(e){let t,i,o,a=null;if(!e||!e.type)return null;if(0===e.type.indexOf("touch"))a=_(e).target;else if("function"==typeof e.composedPath)if(o=e.composedPath(),o&&o.length){if(a=o[0],c)for(t=0,i=o.length;t<i;t+=1)if("a"===n.getTagName(o[t])){a=o[t];break}}else a=e.target||window.window;else a=e.srcElement?e.srcElement:e.target;for(;a&&r[n.getTagName(a)]&&a.parentElement;)a=a.parentElement;return 9===a.nodeType&&a.documentElement&&(a=a.documentElement),a}(e);const i=this.examineID(t),o=function(e){const t={type:null,subType:null};return e?(t.type=n.getTagName(e),t.subType=e.type||null,t):t}(t),a=this.examinePosition(e,t),s=t&&t.getAttribute?t.getAttribute("aria-label"):null;s&&(this.accessibility={id:s}),this.attributes=function(e){let t,n,r,i,o;const a={};if(!e||!e.hasAttribute)return a;for(t=0,n=u.length,o=0;t<n&&o<h;t+=1)r=u[t],e.hasAttribute(r)&&(i=e.getAttribute(r)||"",a[r]=i.slice(0,p),o+=1);return a}(t),t&&t.innerText&&(this.attributes.innerText=n.trim(t.innerText).slice(0,p)),this.element=t,this.id=i.id,this.idType=i.idType,this.type=o.type,this.subType=o.subType,this.state=this.examineState(t),this.position=new S(a.x,a.y),this.position.relXY=a.relXY,this.size=new x(a.width,a.height),this.xPath=i.xPath,this.name=i.name}function E(){let e=n.getOrientationAngle();return n.isLandscapeZeroDegrees&&(180===Math.abs(e)||0===Math.abs(e)?e=90:90!==Math.abs(e)&&270!==Math.abs(e)||(e=0)),e}function k(r){let i;return t=function(t){let n,r,i,o;if(t)return t;const a=(e.getCoreConfig()||{}).modules;for(o in t={},a)if(Object.prototype.hasOwnProperty.call(a,o)&&a[o].events)for(n=0,r=a[o].events.length;n<r;n+=1)i=a[o].events[n],i.state&&(t[i.name]=i.state);return t}(t),t[r.type]&&(i=n.getValue(r,t[r.type],null)),i}function O(e){this.data=e.data||null,this.delegateTarget=e.delegateTarget||null,(e.gesture||e.originalEvent&&e.originalEvent.gesture)&&(this.gesture=e.gesture||e.originalEvent.gesture,this.gesture.idType=new C(this.gesture,this.gesture.target).idType);const t=T(e=function(e){let t,r,i,o=e||window.event,a=!1,s=null;const l=document.documentElement,c=document.body;if(b(o)&&(o=o.originalEvent),void 0!==e&&void 0!==o.target||(o.target=o.srcElement||window.window,o.timeStamp=Number(new Date),null!==o.pageX&&void 0!==o.pageX||(o.pageX=o.clientX+(l&&l.scrollLeft||c&&c.scrollLeft||0)-(l&&l.clientLeft||c&&c.clientLeft||0),o.pageY=o.clientY+(l&&l.scrollTop||c&&c.scrollTop||0)-(l&&l.clientTop||c&&c.clientTop||0)),o.preventDefault=function(){this.returnValue=!1},o.stopPropagation=function(){this.cancelBubble=!0}),"click"===o.type){for(t=o.composedPath?o.composedPath():[],i=0;i<t.length;i+=1)if(r=n.getTagName(t[i]),"button"===r){a=!0,s=t[i];break}if(a)return{originalEvent:o,target:s,srcElement:s,type:o.type,pageX:o.pageX,pageY:o.pageY}}return o}(e));this.custom=!1,this.nativeEvent=!0===this.custom?null:e,this.position=new S(t.x,t.y),this.target=new C(e,e.target),this.orientation=E();const r=k(e);r&&(this.target.state=r),this.timestamp=(new Date).getTime();const i=function(e,t){const n={type:null,subType:null};if(!e)return n;let r=e.type;switch(r){case"focusin":r="focus";break;case"focusout":r="blur"}return n.type=r,n}(e,this.target);this.type=i.type,this.subType=i.subType}function L(e,t,r){let i=[],o=[];if(!(this instanceof L))return null;if(!e||!e.nodeType)return this.fullXpath="",this.xpath="",this.fullXpathList=[],void(this.xpathList=[]);3===e.nodeType&&(e=e.parentElement),o=y(e,!1,t,r);const a=o[0];i=o.length&&(1===a.length||2===a.length&&"h"===a[1])?y(e,!0,t):n.clone(o),this.xpath=v(o),this.xpathList=o,this.fullXpath=v(i),this.fullXpathList=i;const s=i[i.length-1];this.isShadowHost=!!s&&"h"===s[s.length-1],this.applyPrefix=function(e){let t;if(!(e instanceof L&&e.fullXpathList.length))return;const r=e.fullXpathList[e.fullXpathList.length-1];t=this.fullXpathList.shift(),n.isEqual(t[0],r[0])?(this.fullXpathList=e.fullXpathList.concat(this.fullXpathList),this.fullXpath=v(this.fullXpathList),t=this.xpathList.shift(),1!==t.length?(this.xpathList=e.xpathList.concat(this.xpathList),this.xpath=v(this.xpathList)):this.xpathList.unshift(t)):this.fullXpathList.unshift(t)},this.compare=function(e){return e instanceof L?this.fullXpathList.length-e.fullXpathList.length:0},this.isSame=function(e){let t=!1;return e instanceof L?(0===this.compare(e)&&(t=this.fullXpath===e.fullXpath),t):t},this.containedIn=function(e,t){let r,i,o,a;if(!(e instanceof L))return!1;if(e.fullXpathList.length>this.fullXpathList.length)return!1;for(r=0,o=e.fullXpathList.length;r<o;r+=1)if(!n.isEqual(e.fullXpathList[r],this.fullXpathList[r]))return!1;if(!t)for(i=r,o=this.fullXpathList.length;i<o;i+=1)if(a=this.fullXpathList[i],"h"===a[a.length-1])return!1;return!0}}return i.xpath=function(e,t){let r,i,o,a,s,l,c,u=null,f=null,h=!1;if(!e)return null;if(u=d.parse(e),r=t=t||document,!u)return null;for(o=0,l=u.length;o<l&&r;o+=1){if(f=u[o],h=f.length>1&&"h"===f[f.length-1],1===f.length||2===f.length&&h)r=t.getElementById?t.getElementById(f[0]):t.querySelector?t.querySelector("#"+f[0]):null;else{for(a=0,s=-1,c=r.childNodes.length;a<c;a+=1)if(1===r.childNodes[a].nodeType&&n.getTagName(r.childNodes[a])===f[0].toLowerCase()&&(s+=1,s===f[1])){r=r.childNodes[a];break}if(s!==f[1])return null}if(!r)return null;if(h&&o<l-1){if(!r.shadowRoot)return null;r=r.shadowRoot,t=r}i=n.getTagName(r),("frame"===i||"iframe"===i)&&o<l-1&&(r=n.getIFrameWindow(r).document,t=r)}return r!==t&&r?r:null},C.HTML_ID=-1,C.XPATH_ID=-2,C.ATTRIBUTE_ID=-3,C.prototype.examineID=function(e,t){const r={id:"",idType:0,xPath:"",name:""};let i,o,a=l.length;const s=document.documentElement;if(!e)return r;r.xPath=w(e,!1,!1,t),r.name=e.name;try{if(o="function"!=typeof s.contains||s.contains(e),(t||o)&&(!n.getWindow(e)||!n.isIFrameDescendant(e)))if(m(e))r.id=e.id,r.idType=C.HTML_ID;else if(l.length&&e.attributes)for(;a;)a-=1,i=e.attributes[l[a]],void 0!==i&&(r.id=l[a]+"="+(i.value||i),r.idType=C.ATTRIBUTE_ID)}catch(e){}return r.id||(r.id=r.xPath,"null"!==r.id&&(r.idType=C.XPATH_ID)),r},C.prototype.examineState=function(e){return n.getTargetState(e)},C.prototype.examinePosition=function(e,t){const r=T(e),i=function(e){let t,r,i;if(!e||!e.getBoundingClientRect)return{x:0,y:0,width:0,height:0};try{t=e.getBoundingClientRect(),i=function(e){const t={left:-1,top:-1},n=(e=e||document).documentElement||e.body.parentNode||e.body;return t.left=Math.round("number"==typeof window.pageXOffset?window.pageXOffset:n.scrollLeft),t.top=Math.round("number"==typeof window.pageYOffset?window.pageYOffset:n.scrollTop),t}(document)}catch(e){return{x:0,y:0,width:0,height:0}}const o={x:t.left+i.left,y:t.top+i.top,width:t.right-t.left,height:t.bottom-t.top};return n.isIE&&(o.x-=document.documentElement.clientLeft,o.y-=document.documentElement.clientTop,r=function(){let e,t,n,r=1;if(document.body.getBoundingClientRect){try{e=document.body.getBoundingClientRect()}catch(e){return r}t=e.right-e.left,n=document.body.offsetWidth,r=Math.round(t/n*100)/100}return r}(),1!==r&&(o.x=Math.round(o.x/r),o.y=Math.round(o.y/r),o.width=Math.round(o.width/r),o.height=Math.round(o.height/r))),o}(t);return i.x=r.x||r.y?Math.round(Math.abs(r.x-i.x)):i.width/2,i.y=r.x||r.y?Math.round(Math.abs(r.y-i.y)):i.height/2,i.relXY=n.calculateRelativeXY(i),i},L.prototype={},{init:function(){f||(g(),o&&o.subscribe("configupdated",g),f=!0)},destroy:function(){o&&o.unsubscribe("configupdated",g),f=!1},WebEvent:O,ElementData:C,Xpath:L,processDOMEvent:function(t){e.isInitialized()&&e._publishEvent(new O(t))},getNormalizedOrientation:E,getXPathFromNode:function(e,t,n,r,i){return w(t,n,r,i)},getNodeFromID:function(e,t,n){let r,o=null;if(!e||!t)return o;const a=n||window.document;return"-1"==(t=t.toString())?a.getElementById?o=a.getElementById(e):a.querySelector&&(o=a.querySelector("#"+e)):"-3"==t?(r=e.split("="),a.querySelector&&(o=a.querySelector("["+r[0]+'="'+r[1]+'"]'))):"-2"==t&&(o=i.xpath(e,a)),o},queryDom:i}})),TLT.addService("browser",(function(e){"use strict";const t=e.utils,n=e.getService("config"),r=e.getService("browserBase");let i=null,o=null;const a=n?n.getServiceConfig("browser"):{},s=t.getValue(a,"useCapture",!0),l=t.getValue(a,"usePassive",!0);let c=!1;const u={list2Array:function(e){const t=e.length,n=[];if(void 0===e.length)return[e];for(let r=0;r<t;r+=1)n[r]=e[r];return n},find:function(e,t,n){return n=n||"css",this.list2Array(this[n](e,t))},css:function(e,t){return(t=t||document).querySelectorAll(e)}},d=function(){const e=new t.WeakMap;return{add:function(t){const n=e.get(t)||[(i=t,function(e){const t=new r.WebEvent(e);"resize"===e.type||"hashchange"===e.type?setTimeout((function(){i(t)}),5):i(t)}),0];var i;return n[1]+=1,e.set(t,n),n[0]},find:function(t){const n=e.get(t);return n?n[0]:null},remove:function(t){const n=e.get(t);n&&(n[1]-=1,n[1]<=0&&e.remove(t))}}}();function f(e){const n={capture:s,passive:l};return t.isIE?s:t.mixin(n,e)}return{init:function(){c||function(){if(u.xpath=r.queryDom.xpath,document.querySelectorAll||e.fail("querySelectorAll does not exist!","NOQUERYSELECTOR"),"function"==typeof document.addEventListener)i=function(e,t,n,r){r=f(r),e.addEventListener(t,n,r)},o=function(e,t,n,r){r=f(r),e.removeEventListener(t,n,r)};else{if(void 0===document.attachEvent)throw new Error("Unsupported browser");i=function(e,t,n){e.attachEvent("on"+t,n)},o=function(e,t,n){e.detachEvent("on"+t,n)}}c=!0}()},destroy:function(){c=!1},getServiceName:function(){return"W3C"},query:function(e,t,n){try{return u.find(e,t,n)[0]||null}catch(e){return[]}},queryAll:function(e,t,n){try{return u.find(e,t,n)}catch(e){return[]}},matches:function(e,t){let n=!1;try{t&&e&&(t.matches?n=t.matches(e):t.msMatchesSelector&&(n=t.msMatchesSelector(e)))}catch(e){}return n},subscribe:function(e,t,n,r){const o=d.add(n);i(t,e,o,r)},unsubscribe:function(e,t,n,r){const i=d.find(n);if(i){try{o(t,e,i,r)}catch(e){}d.remove(n)}}}})),TLT.addService("ajax",(function(e){"use strict";const t=e.utils;let n,r=!1,i=!1,o=!1;function a(e){let r,i,o=n(),a=[["X-Requested-With","XMLHttpRequest"]],s=0,l="",c=null;const u="boolean"!=typeof e.async||e.async;for(e.headers&&(a=a.concat(function(e){let t="";const n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push([t,e[t]]);return n}(e.headers))),e.contentType&&a.push(["Content-Type",e.contentType]),o.open(e.type.toUpperCase(),e.url,u),r=0,i=a.length;r<i;r+=1)l=a[r],l[0]&&l[1]&&o.setRequestHeader(l[0],l[1]);e.error&&(e.error=function(e){if("function"==typeof e)return function(n){let r=!1;if(!n)return;const i=n.target;if(!i)return e(n);const o=i.status;o>=200&&o<300&&(r=!0),e({headers:t.extractResponseHeaders(i.getAllResponseHeaders()),responseText:i.responseText,statusCode:o,statusText:i.statusText,id:i.id,success:r})}}(e.error),o.addEventListener("error",e.error)),o.onreadystatechange=c=function(){4===o.readyState&&(o.onreadystatechange=c=function(){},e.timeout&&window.clearTimeout(s),e.oncomplete({id:e.id,headers:t.extractResponseHeaders(o.getAllResponseHeaders()),responseText:o.responseText||null,statusCode:o.status,statusText:o.statusText,success:o.status>=200&&o.status<300}),o=null)},o.send(e.data||null),c(),e.timeout&&(s=window.setTimeout((function(){o&&(o.onreadystatechange=function(){},4!==o.readyState&&(o.abort(),"function"==typeof e.error&&e.error({id:e.id,statusCode:o.status,statusText:"timeout",success:!1})),e.oncomplete({id:e.id,headers:t.extractResponseHeaders(o.getAllResponseHeaders()),responseText:o.responseText||null,statusCode:o.status,statusText:"timeout",success:!1}),o=null)}),e.timeout))}return{init:function(){o||function(){const a=e.getServiceConfig("queue");n=void 0!==window.XMLHttpRequest?function(){return new XMLHttpRequest}:function(){return new ActiveXObject("Microsoft.XMLHTTP")},a&&(r=t.getValue(a,"useBeacon",!0)&&"function"==typeof navigator.sendBeacon,i=t.getValue(a,"useFetch",!0)&&"function"==typeof window.fetch),o=!0}()},destroy:function(){o=!1},sendRequest:function(e){let t,n=!0;e.type=e.type||"POST",!e.isUnloading&&e.async||!r||(n=!1,t=function(e){let t,n=!1;const r=function(e){let t="",n="?";for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&(n+=encodeURIComponent(t)+"="+encodeURIComponent(e[t])+"&");return n.slice(0,-1)}(e.headers);return t="string"==typeof e.data?e.data:e.data?new Uint8Array(e.data):"",n=navigator.sendBeacon(e.url+r,t),n}(e),t||(n=!0)),n&&(e.async&&i&&!e.timeout?function(e){const t=e.headers||{},n=e.id||0,r={method:e.type,headers:t,body:e.data,mode:e.isCrossOrigin?"cors":"same-origin",credentials:e.isCrossOrigin?"omit":"same-origin",keepalive:!e.isCrossOrigin&&e.isUnloading,cache:"no-store"},i=e.oncomplete||function(){};t["X-Requested-With"]="fetch",window.fetch(e.url,r).then((function(e){const t={success:e.ok,statusCode:e.status,statusText:e.statusText,id:n};t.success?e.text().then((function(e){try{t.data=JSON.parse(e)}catch(n){t.data=e}i(t)})).catch((function(e){t.statusCode=1,t.statusText=e.message,i(t)})):i(t)})).catch((function(e){const t={success:!1,statusCode:2,statusText:e.message,id:n};i(t)}))}(e):a(e))}}})),TLT.addService("domCapture",(function(e){"use strict";let t=e.getService("config");const n=e.getService("browserBase"),r=e.getService("browser");let i,o=e.getService("message");const a={maxMutations:100,maxLength:1e6,captureShadowDOM:!1,captureDynamicStyles:!1,captureHREFStyles:!1,captureFrames:!1,removeScripts:!0,removeComments:!0,captureStyle:!0},s={childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,subtree:!0};let l,c=void 0!==window.MutationObserver,u=s;const d=[],f=[];let h;const p=[];let g=[],m=[],y=[],v=0,w=100,b=!1,_=!1,T=!1,S=function(){},x=function(){},C=function(){};const E=e._publishEvent;let k=!1;const O=e.utils;let L,I;const D=Object.getOwnPropertyDescriptor(Document.prototype,"styleSheets"),P=Object.getOwnPropertyDescriptor(Document.prototype,"adoptedStyleSheets"),A={},M={},z={};let R;function N(e){let t,n;if(e)for(t=0,n=e.length;t<n;t+=1)delete e[t].oldValue;return e}function j(e,t){let n,r,i=-1;if(!e||!t)return i;for(n=0,r=e.length;n<r;n+=1)if(e[n].name===t){i=n;break}return i}function V(e,t){let n,r,i,o;for(n=0,r=e.length,o=!1;n<r;n+=1)if(i=e[n],i.name===t.name){i.oldValue===t.value?e.splice(n,1):i.value=t.value,o=!0;break}return o||e.push(t),e}function U(e,t){let n,r,i,o,a,s,l,c=0;for(e.removedNodes=t.removedNodes.length,e.addedNodes=O.convertToArray(t.addedNodes),n=0,o=g.length;n<o;n+=1)if(s=g[n],e.isSame(s)){if(e.removedNodes)for(r=0;r<t.removedNodes.length;r+=1)i=s.addedNodes.indexOf(t.removedNodes[r]),-1!==i&&(s.addedNodes.splice(i,1),e.removedNodes-=1);if(s.removedNodes+=e.removedNodes,s.addedNodes.concat(e.addedNodes),!s.removedNodes&&!s.addedNodes.length){for(l=!1,r=0;r<g.length;r+=1)if(s!==g[r]&&g[r].containedIn(s)){l=!0;break}l||(g.splice(n,1),c=-1)}a=!0;break}return a||(g.push(e),c=1),c}function B(e,t){let n,r,i,o,a,s=!1;for(n=0,i=g.length;!s&&n<i;n+=1)if(a=g[n],e.containedIn(a))for(o=a.addedNodes,r=0;r<o.length;r+=1)if(o[r].contains&&o[r].contains(t)){s=!0;break}return s}function H(e,t){let r,i,a,s=null,l=0;const c=t.attributeName;if("checked"===c||"selected"===c){if(s=n.ElementData.prototype.examineID(t.target),o.isPrivacyMatched(s))return l;s=null}"value"===c&&(s=n.ElementData.prototype.examineID(t.target),s.currState=O.getTargetState(t.target)||{},s.currState.value?o.applyPrivacyToTarget(s):s=null),e.attributes=[{name:c,oldValue:t.oldValue,value:s?s.currState.value:t.target.getAttribute(c)}];const u=e.attributes[0];if(u.oldValue===u.value)return l;for(r=0,i=y.length,a=!1;r<i;r+=1)if(s=y[r],e.isSame(s)){s.attributes=V(s.attributes,u),s.attributes.length?B(e,t.target)&&(y.splice(r,1),l=-1):(y.splice(r,1),l=-1),a=!0;break}return a||B(e,t.target)||(y.push(e),l=1),l}function F(){return new window.MutationObserver((function(t){t&&(function(e){let t,r,i,o,a;if(e&&e.length)if(b)v+=e.length;else{for(t=0,r=e.length;t<r&&v<w;t+=1)if(o=e[t],a=new n.Xpath(o.target),a&&(i=a.fullXpathList,i.length&&"html"===i[0][0]))switch(o.type){case"characterData":case"childList":v+=U(a,o);break;case"attributes":v+=H(a,o);break;default:O.clog("Unknown mutation type: "+o.type)}v>=w&&(b=!0,v+=r-t)}}(t),O.clog("Processed ["+t.length+"] mutation records."),e.invokeMutationCallbacks(t))}))}function q(e){const t=h.call(this,e);return l&&t&&l.observe(t,u),t}function X(e,t){return this.updateOwner(),this.insertRuleOriginal(e,t)}function Y(e){this.deleteRuleOriginal(e),this.updateOwner()}function W(e){this.updateOwner(),this.replaceSyncOriginal(e)}function K(e){return this.updateOwner(),this.replaceOriginal(e)}function Q(){if(this.ownersReference){const e=Object.keys(this.ownersReference);for(let t=0;t<e.length;t+=1){const n=e[t];A[n]||(m.push(n),A[n]=!0)}}}function J(e){this.ownersReference||(this.ownersReference={}),this.ownersReference[e]=!0,A[e]=!0}function G(e){this.ownersReference&&delete this.ownersReference[e]}function $(e){e.domId=Math.random().toString(16).slice(2),M[e.domId]=e,A[e.domId]=!0;let t=[].concat.apply([],e.adoptedStyleSheets);if(t=t.concat.apply(t,e.styleSheets),t)for(let n=0;n<t.length;n+=1){const r=t[n];r.ownersReference||(r.ownersReference={}),r.ownersReference[e.domId]=!0}}function Z(e){if(e&&e.alreadyModified)return;e.alreadyModified=!0;const t=Object.getOwnPropertyDescriptor(e.Document.prototype,"adoptedStyleSheets"),n=Object.getOwnPropertyDescriptor(e.Document.prototype,"styleSheets");return Object.defineProperty(e.Document.prototype,"adoptedStyleSheets",{set:function(e){let n,r;this.domId||$(this);const i=this.adoptedStyleSheets;if(i.length>0)for(n=0;n<i.length;n+=1)r=i[n],r.removeOwnership(this.domId);for(n=0;n<e.length;n+=1)r=e[n],r.publishOwnership(this.domId);t.set.call(this,e)}}),Object.defineProperty(e.Document.prototype,"styleSheets",{get:function(){let e,t;const r=n.get.call(this);for(this.domId||$(this),e=0;e<r.length;e+=1)t=r[e],t.publishOwnership(this.domId);return r}}),e.CSSStyleSheet.prototype.insertRuleOriginal=e.CSSStyleSheet.prototype.insertRule,e.CSSStyleSheet.prototype.deleteRuleOriginal=e.CSSStyleSheet.prototype.deleteRule,e.CSSStyleSheet.prototype.insertRule=X,e.CSSStyleSheet.prototype.deleteRule=Y,e.CSSStyleSheet.prototype.replaceSyncOriginal=e.CSSStyleSheet.prototype.replaceSync,e.CSSStyleSheet.prototype.replaceOriginal=e.CSSStyleSheet.prototype.replace,e.CSSStyleSheet.prototype.replaceSync=W,e.CSSStyleSheet.prototype.replace=K,e.CSSStyleSheet.prototype.publishOwnership=J,e.CSSStyleSheet.prototype.removeOwnership=G,void(e.CSSStyleSheet.prototype.updateOwner=Q)}function ee(n){let r,f,g,m,y,v;const b=t.getCoreConfig();if(t.subscribe("configupdated",C),o=e.getService("message"),i=n,i.options=O.mixin({},a,i.options),R=O.getValue(i.options,"removeInnerHTMLRegex"),c=c&&O.getValue(i,"diffEnabled",!0),w=O.getValue(i.options,"maxMutations",100),c&&(u=O.getValue(i,"diffObserverConfig",s),l=F(),d.push(window)),v=i.options.captureShadowDOM&&Element.prototype.attachShadow,v&&window.ShadyDOM&&window.ShadyDOM.inUse&&(i.options.captureShadowDOM=!1,v=!1),v)for(g in b.modules)if(Object.prototype.hasOwnProperty.call(b.modules,g))for(y=b.modules[g].events||[],r=0,f=y.length;r<f;r+=1)y[r].attachToShadows&&(m=y[r].name,-1===O.indexOf(p,m)&&p.push(m));i.options.captureDynamicStyles&&document.adoptedStyleSheets&&(Z(window),v&&(L=Object.getOwnPropertyDescriptor(ShadowRoot.prototype,"adoptedStyleSheets"),I=Object.getOwnPropertyDescriptor(ShadowRoot.prototype,"styleSheets"),Object.defineProperty(ShadowRoot.prototype,"adoptedStyleSheets",{set:function(e){let t,n;this.domId||$(this);const r=this.adoptedStyleSheets;if(r.length>0)for(t=0;t<r.length;t+=1)n=r[t],n.removeOwnership(this.domId);for(t=0;t<e.length;t+=1)n=e[t],n.publishOwnership(this.domId);L.set.call(this,e)}}),Object.defineProperty(ShadowRoot.prototype,"styleSheets",{get:function(){let e,t;const n=I.get.call(this);for(this.domId||$(this),e=0;e<n.length;e+=1)t=n[e],t.publishOwnership(this.domId);return n}})),$(document)),l&&(l.observe(window.document,u),!h&&O.getValue(i,"options.captureShadowDOM",!1)&&(h=Element.prototype.attachShadow,Element.prototype.attachShadow=q),k=!0),T=!0}function te(e,t,n){let r,i,o,a;const s=[];if(!e||!t)return s;n&&2===n.length&&(i=n[0],o=n[1]);const l=e.querySelectorAll(t);if(l&&l.length)for(r=l.length-1;r>=0;r-=1)a=l[r],i?a[i]===o&&s.push(a):s.push(a);return s}function ne(e,t,n){let r,i;const o=te(e,t,n);for(r=o.length-1;r>=0;r-=1)i=o[r],i.parentNode.removeChild(i);return e}function re(e,t){let n,r;for(n=0;e.hasChildNodes()&&n<e.childNodes.length;n+=1)r=e.childNodes[n],r.nodeType===t?(e.removeChild(r),n-=1):r.hasChildNodes()&&re(r,t);return e}function ie(e,t){let n,r,o;i.options.captureShadowDOM&&console.warn("Please disable the captureShadoDOM flag in the configuration file as this website is most likely using a synthetic Shadow DOM polyfill");const a=e&&e.querySelectorAll("*"),s=a&&a.length||0;for(n=0;n<s;n+=1)r=a[n],o=r.shadowRoot,o?o.children.length>0&&ie(o,t):"INPUT"===r.tagName&&(t[t.length]=r)}function oe(e,t){let n,r=null;if(e)switch(n=e.nodeType||-1,n){case 11:r=e.innerHTML;break;case 9:r=e.documentElement?e.documentElement.outerHTML:"";break;case 1:r=t?e.innerHTML:e.outerHTML}return r}function ae(e){let t,n,i;for(e.TLTListeners=e.TLTListeners||{},t=0,n=p.length;t<n;t+=1)i=p[t],e.TLTListeners[i]||(r.subscribe(i,e,E),e.TLTListeners[i]=!0)}function se(e,t,r,i){let o,a,s,d,h,p;const g={shadows:[]};if(!e||!i&&!e.children)return g;for(h=i?[e]:e.children,o=0,a=h.length;o<a;o+=1){if(d=h[o],d.shadowRoot){p=new n.Xpath(d),s=x(d.ownerDocument,d.shadowRoot,"",r);const t={root:s.root,originalSize:s.originalSize,xpath:p.xpath};if(s.frames&&s.frames.length>0&&(t.frames=s.frames),g.shadows.push(t),g.shadows=g.shadows.concat(s.shadows),ae(d.shadowRoot),c)try{l.observe(d.shadowRoot,u),d.shadowRoot.TLTListeners.mutation=!0,-1===O.indexOf(f,d)&&f.push(d)}catch(e){O.clog("Failed to observe shadow root.",e,d)}}s=se(d,0,r),g.shadows=g.shadows.concat(s.shadows)}return g}function le(e){let t,n,r,i=[];if(!e||!e.children)return i;const o=e.children;for(t=0,n=o.length;t<n;t+=1)r=o[t],r.shadowRoot&&(r.shadowRoot.TLTListeners||i.push([r,r.shadowRoot]),i=i.concat(le(r.shadowRoot))),i=i.concat(le(r));return i}function ce(e,t){let n,r,i,o;if(!e||!t)return;if(!t.captureShadowDOM)return;const a=le(e);for(n=0,r=a.length,i=[];n<r;n+=1)o=se(a[n][0],0,t,!0),i=i.concat(o.shadows);return i}function ue(t,n){let r;r=x(t,t,null,n),r||(r={}),r.charset=t.characterSet||t.charset;const i=O.getOriginAndPath(t.location);return r.host=i.origin,r.url=e.normalizeUrl("",i.path,12),r}function de(e){let t,r,i,o,a,s,l,c,u,d,f;const h=new RegExp("^data:image/(.*?);base64"),p={fullDOM:!1,diffs:[],attributeDiffs:{}};!function(e){let t,n,r;if(e&&e.length)for(e=e.sort((function(e,t){return e.compare(t)})),t=0;t<e.length;t+=1)for(r=e[t],n=t+1;n<e.length;n+=0)e[n].containedIn(r)?e.splice(n,1):n+=1}(g),function(){let e,t,n,r;for(e=0,n=g.length;e<n&&y.length;e+=1)for(r=g[e],t=0;t<y.length;t+=1)y[t].containedIn(r)&&(y.splice(t,1),t-=1)}();const v=e.captureShadowDOM;for(e.captureShadowDOM=!1,t=0,r=g.length;t<r;t+=1)if(d=g[t],u=n.getNodeFromID(d.xpath,-2),u&&(!d.isShadowHost||(u=u.shadowRoot,u.TLTListeners))){if(u===window.document.body||u===window.document.documentElement)return e.captureShadowDOM=v,ue(window.document,e);i=x(window.document,u,d,e),delete i.originalSize,i.shadows&&0===i.shadows.length&&delete i.shadows,i.frames&&0===i.frames.length&&delete i.frames,i.xpath=d.xpath,p.diffs.push(i)}for(t=0;t<m.length;t+=1)a=m[t],s=M[a],c=fe(s),l=new n.Xpath(s),l&&"null"!==l.xpath?(l=l.xpath.slice(0,-1),l+=',["'+a+'"]]'):l='[["'+a+'"]]',i={root:c,xpath:l},A[a]=!1,p.diffs.push(i);function w(e,t){e&&e.name&&(p.attributeDiffs[i.xpath][e.name]={value:e.value})}function b(t){let n,r,i;for(n=0,i=t.length;n<i;n+=1)if(r=t[n],"src"===r.name&&h.test(r.value)&&r.value.length>e.discardBase64){r.value="",t.push({name:"removedByUIC",value:!0});break}return t}for(t=0,r=y.length;t<r;t+=1)d=y[t],o=j(d.attributes,"id"),o>-1&&(u=n.getNodeFromID(d.fullXpath,-2),u&&(d.xpath=d.fullXpath)),f=N(d.attributes),Object.prototype.hasOwnProperty.call(e,"discardBase64")&&(u=n.getNodeFromID(d.xpath,-2),u||(u=n.getNodeFromID(d.fullXpath,-2)),u&&"img"===u.tagName.toLowerCase()&&f&&(f=b(f))),i={xpath:d.xpath,attributes:f},p.diffs.push(i),p.attributeDiffs[i.xpath]={},O.forEach(i.attributes,w);e.captureShadowDOM=v;const _=ce(window.document,e);return _&&_.length&&(p.shadows=_),p}function fe(e){let t,n,r,o,a,s,l;const c=i.options.captureHREFStyles;if(!A[e.domId])return z[e.domId];if(o=[].concat.apply([],e.adoptedStyleSheets),o=o.concat.apply(o,e.styleSheets),o&&o.length>0){for(t=[],s=0;s<o.length;s+=1)if(a=o[s],!(!c&&!e.isDocumentFromIframe&&a.href||a.ownerNode&&a.ownerNode.textContent)){try{r=a.cssRules}catch(e){continue}for(l=0;l<r.length;l+=1)t.push(r[l].cssText)}t.length>0&&(n='<style id="'+e.domId+'">'+t.join(" ")+"</style>",z[e.domId]=n)}return A[e.domId]=!1,n}return S=function(e){let t=null;return function(e){let t,n=!1;if(e&&"object"==typeof e)switch(t=e.nodeType||-1,t){case 9:case 1:n=!0}return n}(e)&&(t=e.cloneNode(!0),!t&&e.documentElement&&(t=e.documentElement.cloneNode(!0))),t},x=function(t,n,r,a){let s,l,c,u,d,f,h=!0,p={};const g=i.options.captureDynamicStyles;if(!t||!n)return p;const m=oe(n);if(m&&(p.originalSize=m.length),s=S(n),!s&&n.host)h=!1,u=document.createElement("div"),u.id="srph-"+Date.now(),f=oe(n),R&&(f=f.replace(R,"")),u.innerHTML=f,s=u;else if(!s)return p;s&&(a.removeScripts&&(ne(s,"script"),ne(s,"noscript")),a.keepImports||ne(s,"link",["rel","import"]),a.removeComments&&re(s,8),a.captureStyle?a.useACS&&function(e,t){let n,r,i,o,a,s,l;if(!e||!t||!t.querySelectorAll)return;const c=e.querySelectorAll("style"),u=t.querySelectorAll("style");for(n=0,l=c.length;n<l;n+=1)if(s=c[n],s.sheet){for(i=s.sheet.cssRules,r=0,o=i.length,a=[];r<o;r+=1)a.push(i[r].cssText);a.length&&(u[n].innerHTML=a.join("\n"))}}(n,s):ne(s,"style"),Object.prototype.hasOwnProperty.call(a,"discardBase64")&&function(e,t){let n,r;const i=te(e,"img"),o=new RegExp("^data:image/(.*?);base64");for(n=0;n<i.length;n++)r=i[n],o.test(r.src)&&r.src.length>t&&(r.src="",r.setAttribute("removedByUIC",!0))}(s,a.discardBase64),function(e,t){let n,r,i,o,a;if(!e||!t)return;const s=e.querySelectorAll("select"),l=t.querySelectorAll("select");if(s)for(i=0,a=s.length;i<a;i+=1)for(n=s[i],r=l[i],o=0;o<n.options.length;o+=1)o===n.selectedIndex||n.options[o].selected?r.options[o].setAttribute("selected","selected"):r.options[o].removeAttribute("selected")}(n,s),function(e,t){if(!t)return;const n=e.querySelectorAll("input"),r=t.querySelectorAll("input");r&&function(e,t,n){let r,i,o;const a=t.length;if(e.length===a||(ie(n,e=[]),e.length===a))for(r=0;r<a;r+=1)switch(i=e[r],o=t[r],o.type){case"checkbox":case"radio":i.checked?o.setAttribute("checked","checked"):o.removeAttribute("checked");break;default:o.setAttribute("value",i.value),o.getAttribute("type")||o.setAttribute("type","text")}}(n,r,e)}(n,s),function(e,t){let n,r,i,o;if(!e||!t)return;const a=e.querySelectorAll("textarea"),s=t.querySelectorAll("textarea");if(a&&s)for(n=0,r=a.length;n<r;n+=1)i=a[n],o=s[n],o.setAttribute("value",i.value),o.value=o.textContent=i.value}(n,s),s=o.applyPrivacyToNode(s,r,t),a.captureFrames&&(l=function(t,n,r){let i,o,a,s,l,c,u,d,f,h,p,g,m;const y={frames:[]},v=["iframe","frame"];for(o=0;o<v.length;o+=1)if(s=v[o],p=t.querySelectorAll(s),g=n.querySelectorAll(s),p)for(i=0,a=p.length;i<a;i+=1)try{l=p[i],c=O.getIFrameWindow(l),c&&c.document&&(r.captureAboutBlankFrames||"about:blank"!==c.location.href)&&(u=c.document,u.isDocumentFromIframe||(Z(c),u.isDocumentFromIframe=!0),d=x(u,u,"",r),f="tlt-"+O.getSerialNumber(),g[i].setAttribute("tltid",f),d.tltid=f,g[i].removeAttribute("srcdoc"),m=O.getOriginAndPath(u.location),d.host=m.origin,d.url=e.normalizeUrl("",m.path,12),d.charset=u.characterSet||u.charset,h=g[i].getAttribute("src"),h||(h=c.location.href,g[i].setAttribute("src",h)),d.root||(d.root="<html></html>"),y.frames=y.frames.concat(d.frames),delete d.frames,y.frames.push(d))}catch(e){}return y}(n,s,a))),a.captureShadowDOM&&(c=se(n,0,a)),l&&(p=O.mixin(p,l)),c&&(p=O.mixin(p,c));const y=(function(e){let t,n,r=null;if(!e)return r;switch(e.nodeType){case 1:t=e.ownerDocument,t&&t.documentElement===e&&(n=t.doctype);break;case 9:n=e.doctype}return n&&(r="<!DOCTYPE "+n.name+(n.publicId?' PUBLIC "'+n.publicId+'"':"")+(!n.publicId&&n.systemId?" SYSTEM":"")+(n.systemId?' "'+n.systemId+'"':"")+">"),r}(n)||"")+oe(s||n,!h);return p.root=o.applyPrivacyPatterns(y),g&&document.adoptedStyleSheets&&(n instanceof Document||n instanceof ShadowRoot||n.isDocumentFromIframe||"BODY"===n.nodeName&&n.ownerDocument.isDocumentFromIframe)&&("BODY"===n.nodeName&&(n=n.ownerDocument),n.domId||$(n),d=fe(n),d&&(n instanceof ShadowRoot?p.root+=d:p.root=p.root.replace("</body>",d+"</body>"))),p},C=function(){t=e.getService("config"),ee(t.getServiceConfig("domCapture")||{})},{init:function(){t=e.getService("config"),T||ee(t.getServiceConfig("domCapture")||{})},destroy:function(){t.unsubscribe("configupdated",C),l&&(l.disconnect(),l=null),h&&Element.prototype.attachShadow===q&&(Element.prototype.attachShadow=h,h=null),T=!1,P&&Object.defineProperty(Document.prototype,"adoptedStyleSheets",P),D&&Object.defineProperty(Document.prototype,"styleSheets",D),L&&Object.defineProperty(ShadowRoot.prototype,"adoptedStyleSheets",L),I&&Object.defineProperty(ShadowRoot.prototype,"styleSheets",I),CSSStyleSheet.prototype.insertRuleOriginal&&(CSSStyleSheet.prototype.insertRule=CSSStyleSheet.prototype.insertRuleOriginal),CSSStyleSheet.prototype.deleteRuleOriginal&&(CSSStyleSheet.prototype.deleteRule=CSSStyleSheet.prototype.deleteRuleOriginal),CSSStyleSheet.prototype.replaceSyncOriginal&&(CSSStyleSheet.prototype.replaceSync=CSSStyleSheet.prototype.replaceSyncOriginal),CSSStyleSheet.prototype.replaceOriginal&&(CSSStyleSheet.prototype.replace=CSSStyleSheet.prototype.replaceOriginal),CSSStyleSheet.prototype.publishOwnership&&delete CSSStyleSheet.prototype.publishOwnership,CSSStyleSheet.prototype.removeOwnership&&delete CSSStyleSheet.prototype.removeOwnership,CSSStyleSheet.prototype.updateOwner&&delete CSSStyleSheet.prototype.updateOwner},observeWindow:function(e){e&&(O.getValue(i,"options.captureFrames",!1)||e===window)&&-1===O.indexOf(d,e)&&(d.push(e),l&&k&&l.observe(e.document,u))},captureDOM:function(e,t){let n,r,o,a=null,s=0;if(!T||O.isIE&&document.documentMode<11)return a;if(t=O.mixin({},i.options,t),e=e||window.document,!_||!c||b||t.forceFullDOM){if(l&&l.disconnect(),a=ue(e,t),a.fullDOM=!0,a.forced=!(!b&&!t.forceFullDOM),_=!0,l)for(n=0,r=d.length;n<r;n+=1){o=d[n];try{l.observe(o.document,u)}catch(e){d.splice(n,1),r=d.length,n-=1}}}else a=de(t),a.fullDOM=!a.diffs;return c&&(a.mutationCount=v),g=[],y=[],m=[],v=0,b=!1,t.maxLength&&(s=function(e){let t,n,r,i,o,a,s,l,c=0;if(!e)return c;if(e.root){if(c+=e.root.length,e.frames)for(s=e.frames,t=0,r=s.length;t<r;t+=1)s[t].root&&(c+=s[t].root.length)}else if(e.diffs)for(t=0,r=e.diffs.length;t<r;t+=1)if(a=e.diffs[t],c+=a.xpath.length,a.root)c+=a.root.length;else if(a.attributes)for(n=0,i=a.attributes.length;n<i;n+=1)o=a.attributes[n],c+=o.name.length,o.value&&(c+=o.value.length);if(e.shadows)for(l=e.shadows,t=0,r=l.length;t<r;t+=1)l[t].root&&(c+=l[t].root.length);return c}(a),s>t.maxLength&&(a={errorCode:101,error:"Captured length ("+s+") exceeded limit ("+t.maxLength+")."})),a}}})),TLT.addService("encoder",(function(e){"use strict";let t={},n=null,r=null,i=!1;function o(e){t=e,n.subscribe("configupdated",r),i=!0}return r=function(){n=e.getService("config"),o(n.getServiceConfig("encoder")||{})},{init:function(){n=e.getService("config"),i||o(n.getServiceConfig("encoder")||{})},destroy:function(){n.unsubscribe("configupdated",r),i=!1},encode:function(n,r){let i;const o={data:null,encoding:null,error:null};if("string"!=typeof n&&!n||!r)return o.error="Invalid "+(n?"type":"data")+" parameter.",o;const a=function(n){let r=null;return n?(r=t[n],r&&"string"==typeof r.encode&&(r.encode=e.utils.access(r.encode)),r):r}(r);if(!a)return o.error="Specified encoder ("+r+") not found.",o;if("function"!=typeof a.encode)return o.error="Configured encoder ("+r+") 'encode' method is not a function.",o;try{i=a.encode(n)}catch(e){return o.error="Exception "+(e.name?e.name+" - ":"")+(e.message||e),o}return i&&null!==e.utils.getValue(i,"buffer",null)?(o.data=i.buffer,o.encoding=a.defaultEncoding,o):(o.error="Encoder ("+r+") returned an invalid result.",o)}}})),TLT.addService("message",(function(e){"use strict";const t=e.utils,n=e.getTabId(),r=[];let i=0,o=0;const a=e.getStartTime(),s=window.performance&&performance.timeOrigin&&performance.timeOrigin<a?Math.round(performance.timeOrigin):a,l=Date.now()-s+10,c=(new Date).getTimezoneOffset(),u=e.getService("browserBase"),d=e.getService("browser");let f=e.getService("config"),h=f.getCoreConfig(),p=f.getServiceConfig("message")||{};const g=e.normalizeUrl("",window.location.href),m=window.location.hostname;let y,v,w=Object.prototype.hasOwnProperty.call(p,"privacy")?p.privacy:[],b=Object.prototype.hasOwnProperty.call(p,"privacyPatterns")?p.privacyPatterns:[];const _={},T=parseFloat((window.devicePixelRatio||1).toFixed(2)),S=window.screen||{},x=S.width||0,C=S.height||0,E=u.getNormalizedOrientation();let k=x,O=C;const L=window.screen?window.screen.height-window.screen.availHeight:0,I=window.innerWidth||document.documentElement.clientWidth,D=window.innerHeight||document.documentElement.clientHeight;let P=!1;const A={};let M=!1;function z(){const e=Date.now()-s;let t=window.performance&&performance.now?Math.round(performance.now()):e;return e-t>l&&(t=e),t}function R(e){let t="";if(delete e.timestamp,this.type=e.type,this.offset=z(),2===e.type&&"LOAD"===e.screenview.type?(r.push(z()),this.screenviewOffset=0):r.length?(this.screenviewOffset=z()-r[r.length-1],2===e.type&&"UNLOAD"===e.screenview.type&&r.pop()):this.screenviewOffset=0,this.type)for(t in this.count=o+=1,this.fromWeb=!0,e)Object.prototype.hasOwnProperty.call(e,t)&&(this[t]=e[t])}function N(e,n,r){let i=_.PVC_MASK_BASIC;return"string"!=typeof n?n:(e?e.maskType===_.PVC_MASK_EMPTY.maskType?i=_.PVC_MASK_EMPTY:e.maskType===_.PVC_MASK_BASIC.maskType?i=_.PVC_MASK_BASIC:e.maskType===_.PVC_MASK_TYPE.maskType?i=_.PVC_MASK_TYPE:e.maskType===_.PVC_MASK_CUSTOM.maskType&&(i="string"==typeof e.maskFunction?t.access(e.maskFunction):e.maskFunction,"function"!=typeof i&&(i=_.PVC_MASK_BASIC)):i=_.PVC_MASK_BASIC,i(n,r))}function j(e,t){let n;if(e&&t)for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&("value"===n?t[n]=N(e,t[n]):delete t[n])}function V(e,n){return-1!==t.matchTarget(e,n)}function U(e,t){let n,r=null;if(!(e&&e.maskAttributes&&t&&t.attributes))return r;if("function"==typeof e.maskAttributes)try{r=e.maskAttributes(t.id,t.attributes)}catch(e){}else for(n in r=t.attributes,t.attributes)Object.prototype.hasOwnProperty.call(t.attributes,n)&&(r[n]=N(e,t.attributes[n]));return r}function B(e){let n,r,i,o,a=!1;if(!e||!e.currState&&!e.prevState&&!e.attributes||!e.id)return e;const s=e.prevState,l=e.currState;for(n=0,r=w.length;n<r;n+=1)if(o=w[n],i=t.getValue(o,"exclude",!1),V(o.targets,e)!==i){s&&Object.prototype.hasOwnProperty.call(s,"value")&&j(o,s),l&&Object.prototype.hasOwnProperty.call(l,"value")&&j(o,l),s&&Object.prototype.hasOwnProperty.call(s,"innerText")&&(s.innerText=N(o,s.innerText)),l&&Object.prototype.hasOwnProperty.call(l,"innerText")&&(l.innerText=N(o,l.innerText)),o.maskAttributes&&e.attributes&&(e.attributes=U(o,e)),a=!0;break}return a||(s&&s.value&&(s.value=t.applyPrivacyPatterns(s.value,b)),l&&l.value&&(l.value=t.applyPrivacyPatterns(l.value,b))),e}function H(e){return e&&e.target?(B(e.target),e):e}function F(e,n){let r,i,o,a;if(n&&e)if(e.value?(o=N(n,e.value,e),e.setAttribute("value",o),e.value=o):n.maskType===_.PVC_MASK_CUSTOM.maskType&&N(n,"",e),e.checked&&e.removeAttribute("checked"),"select"===t.getTagName(e))for(e.selectedIndex=-1,r=0,i=e.options.length;r<i;r+=1)a=e.options[r],a.removeAttribute("selected"),a.selected=!1;else"textarea"===t.getTagName(e)&&(e.textContent=e.value)}function q(){let n,r,i,o,a,s,l,c;for(f=e.getService("config"),p=f.getServiceConfig("message")||{},h=f.getCoreConfig(),w=p.privacy||[],b=p.privacyPatterns||[],M=t.getValue(p,"shadowDOMCacheEnabled",!0),n=0,a=w.length;n<a;n+=1)for(o=w[n],l=o.targets,r=0,c=l.length;r<c;r+=1)s=l[r],"object"==typeof s&&("string"==typeof s.idType&&(s.idType=+s.idType),"object"==typeof s.id&&(s.cRegex=new RegExp(s.id.regex,s.id.flags)));for(i=b.length,n=i-1;n>=0;n-=1)o=b[n],"object"==typeof o.pattern?o.cRegex=new RegExp(o.pattern.regex,o.pattern.flags):b.splice(n,1)}return t.isiOS?90===Math.abs(E)&&(k=C,k=x):(k=x,O=C),_.PVC_MASK_EMPTY=function(e){return""},_.PVC_MASK_BASIC=function(e){return"string"!=typeof e?"":e.length?"XXXXX":""},_.PVC_MASK_TYPE=function(e){let n,r,i="";if("string"!=typeof e)return i;const o=e.split("");for(n=0,r=o.length;n<r;n+=1)t.isNumeric(o[n])?i+="9":t.isUpperCase(o[n])?i+="X":t.isLowerCase(o[n])?i+="x":i+="@";return i},_.PVC_MASK_EMPTY.maskType=1,_.PVC_MASK_BASIC.maskType=2,_.PVC_MASK_TYPE.maskType=3,_.PVC_MASK_CUSTOM={maskType:4},{init:function(){if(!P){f.subscribe&&f.subscribe("configupdated",q),q(),P=!0;try{y=sessionStorage.getItem("tl.TR"),v=sessionStorage.getItem("tl.PU"),sessionStorage.removeItem("tl.TR"),sessionStorage.removeItem("tl.PU")}catch(e){y=null}}},destroy:function(){f.unsubscribe("configupdated",q),P=!1},applyPrivacyToNode:function(e,n,r){let i,o,a,s,l,c,f,h,p,g,m,y,v,b=[];const _=[];if(!e||!r)return null;for(i=0,f=w.length;i<f;i+=1)for(h=w[i],l=t.getValue(h,"exclude",!1),l&&(c=h),y=h.targets,o=0,v=y.length;o<v;o+=1)if(m=y[o],"string"==typeof m)if(e.id&&/srph-\d{13}/.test(e.id)||!d.matches(m,e)||(l?b.push(e):F(e,h)),p=d.queryAll(m,e),l)b=b.concat(p);else for(a=0,g=p.length;a<g;a+=1)s=p[a],F(s,h);else if("string"==typeof m.id)switch(m.idType){case-1:case-3:s=u.getNodeFromID(m.id,m.idType,e),l?b.push(s):F(s,h);break;case-2:_.push({ruleIndex:i,targetIndex:o,exclude:l})}else _.push({ruleIndex:i,targetIndex:o,exclude:l});return function(e,n,r,i,o,a){let s,l,c,f,h,p,g,m,y,v,b=[];if(!e.length&&!o.length&&!a)return[];const _=d.queryAll("input, select, textarea",n);if(!_||!_.length)return[];for(s=0,f=o.length;s<f;s+=1)l=_.indexOf(o[s]),-1!==l&&_.splice(l,1);if(e.length)for(s=0,f=_.length,b=[];s<f;s+=1)_[s].value&&(p=u.ElementData.prototype.examineID(_[s],!0),-2===p.idType&&(g=new u.Xpath(_[s],!0),g.applyPrefix(r),p.id=g.xpath),b.push({id:p.id,idType:p.idType,element:_[s]}));for(s=0,f=e.length;s<f;s+=1)if(y=w[e[s].ruleIndex],m=t.getValue(y,"exclude",!1),v=y.targets[e[s].targetIndex],"string"==typeof v.id&&-2===v.idType)for(l=0;l<b.length;l+=1)b[l].idType===v.idType&&b[l].id===v.id&&(m?(c=_.indexOf(h),_.splice(c,1)):(h=b[l].element,F(h,y)));else for(l=0;l<b.length;l+=1)v.cRegex.lastIndex=0,b[l].idType===v.idType&&v.cRegex.test(b[l].id)&&(h=b[l].element,m?(c=_.indexOf(h),_.splice(c,1)):F(h,y));if(a)for(s=0,f=_.length;s<f;s+=1)F(_[s],a)}(_,e,n,0,b,c),e},applyPrivacyToMessage:H,applyPrivacyToTarget:B,applyPrivacyPatterns:function(e){return t.applyPrivacyPatterns(e,b)},isPrivacyMatched:function(e){let t,n,r,i=!1;if(!e)return i;for(t=0,n=w.length;t<n;t+=1)if(r=w[t],V(r.targets,e)){i=!0;break}return i},createMessage:function(e){if(void 0===e.type)throw new TypeError("Invalid queueEvent given!");return 12===e.type&&M&&function(e){const t=e.dcid,n=e.shadows||[],r=e.fullDOM;let i,o,a,s,l;if(0!==n.length&&r){for(a in A)Object.prototype.hasOwnProperty.call(A,a)&&(A[a].age+=1);for(i=0,o=n.length;i<o;i+=1)s=n[i],l=A[s.xpath],l&&l.root===s.root?(l.hitCount+=1,l.age-=1,s.cacheDCID=l.dcid,delete s.root):A[s.xpath]={root:s.root,dcid:t,hitCount:0,age:0};for(a in A)Object.prototype.hasOwnProperty.call(A,a)&&(l=A[a],l.age>l.hitCount+1&&delete A[a])}}(e.domCapture),H(new R(e))},wrapMessages:function(r){i+=1;const o={messageVersion:"13.0.0.0",serialNumber:i,sessions:[{id:e.getPageId(),tabId:n,startTime:s,timezoneOffset:c,messages:r,clientEnvironment:{webEnvironment:{libVersion:"6.4.72",buildNote:h.buildNote||"",domain:m,page:g,referrer:document.referrer,mouseMovement:e.isMousemovementDetected(),screen:{devicePixelRatio:T,deviceWidth:k,deviceHeight:O,deviceToolbarHeight:L,width:I,height:D,orientation:E}}}}]},a=o.sessions[0].clientEnvironment.webEnvironment;return a.screen.orientationMode=t.getOrientationMode(a.screen.orientation),y&&(a.priorPage={page:v,terminationReason:y}),o},getCurrentOffset:z}})),TLT.addService("serializer",(function(e){"use strict";let t=e.getService("config"),n={},r={},i=null,o=!1;const a={json:void 0!==window.JSON?{serialize:window.JSON.stringify,parse:window.JSON.parse}:{}};function s(t,n,r){let i,o,a;for(i=0,o=(t=t||[]).length;i<o;i+=1)if(a=t[i],"string"==typeof a&&(a=e.utils.access(a)),"function"==typeof a){n[r]=a;break}}function l(l){let c;for(c in l)Object.prototype.hasOwnProperty.call(l,c)&&(s(l[c].stringifiers,n,c),s(l[c].parsers,r,c));n.json=n.json||a.json.serialize,r.json=r.json||a.json.parse,"function"==typeof n.json&&"function"==typeof r.json||e.fail("JSON parser and/or serializer not provided in the UIC config. Can't continue."),function(){let e;return"function"!=typeof n.json||"function"!=typeof r.json?e=!0:(e=void 0===r.json('{"foo": "bar"}')||"bar"!==r.json('{"foo": "bar"}').foo,void 0===r.json("[1, 2]")?e=!0:(e=e||1!==r.json("[1, 2]")[0],e=e||2!==r.json("[1,2]")[1]),e=e||'{"foo":"bar"}'!==n.json({foo:"bar"}),e=e||"[1,2]"!==n.json([1,2])),e}()&&e.fail("JSON stringification and parsing are not working as expected"),t&&t.subscribe("configupdated",i),o=!0}return i=function(){t=e.getService("config"),l(t.getServiceConfig("serializer"))},{init:function(){let e;o||(e=t?t.getServiceConfig("serializer"):{},l(e))},destroy:function(){n={},r={},t&&t.unsubscribe("configupdated",i),o=!1},parse:function(e,t){return r[t=t||"json"](e)},serialize:function(e,t){return n[t=t||"json"](e)}}})),TLT.addModule("TLCookie",(function(e){"use strict";let t,n,r,i,o={},a=[],s=0,l=!0,c=!1,u=null,d="CoreID6",f="WCXSID",h="TLTSID";const p="TLTDID",g=e.utils;function m(){const e="123456789";return g.getRandomString(1,e)+g.getRandomString(31,e+"0")}function y(){if(!u&&window.cmRetrieveUserID)try{window.cmRetrieveUserID((function(e){u=e}))}catch(e){u=null}}function v(e){let t,n,r;if(!localStorage||!e)return;const i=localStorage.getItem(e);return i&&(n=i.split("|"),t=parseInt(n[0],10),Date.now()>t?localStorage.removeItem(e):r=n[1]),r}function w(e,t){if(!localStorage||!e)return;t=t||m();const n=Date.now()+s;return localStorage.setItem(e,n+"|"+t),v(e)}function b(){return a}function _(e){let t,n,r,i=!1;const a=o.appCookieWhitelist;if(!a||!a.length)return i;for(t=0,n=a.length;t<n&&!i;t+=1)r=a[t],r.regex?(r.cRegex||(r.cRegex=new RegExp(r.regex,r.flags)),r.cRegex.lastIndex=0,i=r.cRegex.test(e)):i=r===e;return i}return{init:function(){o=e.getConfig()||{},function(u){if(a=[],l=g.getValue(u,"sessionIDUsesCookie",!0),c=g.getValue(u,"sessionIDUsesStorage",!1),u.tlAppKey&&(r=u.tlAppKey,a.push({name:"X-Tealeaf-SaaS-AppKey",value:r})),u.visitorCookieName&&(d=u.visitorCookieName),u.wcxCookieName&&(f=u.wcxCookieName),t=g.getCookieValue(f),t&&a.push({name:"X-WCXSID",value:t}),u.sessionizationCookieName&&(h=u.sessionizationCookieName),c){s=g.getValue(u,"sessionIDStorageTTL",6e5);try{n=v(h)}catch(e){c=!1}}if(!n&&l&&(n=g.getCookieValue(h)),!n)if(t)h=f,n=t;else{if(c)try{n=w(h)}catch(e){c=!1}!n&&l&&(n=function(){const e=m(),t=!!o.secureTLTSID,n=o.samesite;return g.setCookie(h,e,void 0,void 0,void 0,t,n),g.getCookieValue(h)}())}e.setSessionCookieInfo(h,n);const y=void 0!==u?.disableTLTDID&&u.disableTLTDID;!1===y&&(i=g.getCookieValue(p),i&&void 0!==i||(i=m()),g.setCookie(p,i,31536e3,void 0,void 0,!1,"Lax")),n||(n="Check7UIC7Cookie7Configuration77"),a.push({name:"X-Tealeaf-SaaS-TLTSID",value:n}),!1===y&&a.push({name:"X-Tealeaf-TLTDID",value:i}),a.length&&TLT.registerBridgeCallbacks([{enabled:!0,cbType:"addRequestHeaders",cbFunction:b}])}(o),y()},destroy:function(){c&&w(h,n),window.setTimeout((function(){TLT.registerBridgeCallbacks([{enabled:!1,cbType:"addRequestHeaders",cbFunction:b}])}))},onevent:function(t){"screenview_load"===t.type&&g.getValue(o,"appCookieWhitelist.length",0)&&(y(),function(){let t,n,r,i,o=[],a="",s="";const l=document.cookie,c={};if(l){for(o=l.split("; "),t=0,r=o.length;t<r;t+=1){if(i=o[t],n=i.indexOf("="),n>=0)try{a=decodeURIComponent(i.substring(0,n))}catch(e){a=i.substring(0,n)}if(s=i.substring(n+1),_(a))try{c[a]=decodeURIComponent(s)}catch(e){c[a]=s}}u&&!c[d]&&(c[d]=u),e.post({type:14,cookies:c})}}())}}})),TLT&&"function"==typeof TLT.addModule&&TLT.addModule("dataLayer",(function(e){"use strict";let t,n,r=!1,i=!0,o="",a=[],s=0,l=0;const c=e.utils,u=10,d=25,f=300,h=new Set;function p(e,t){let n,r,i,o=-1;if(!e||!t)return o;for(n=0,r=t.length;n<r&&-1===o;n+=1)switch(i=t[n],typeof i){case"string":e===i&&(o=n);break;case"object":i.cRegex||(i.cRegex=new RegExp(i.regex,i.flags)),i.cRegex.lastIndex=0,i.cRegex.test(e)&&(o=n)}return o}function g(e,t,n,r){let o,a;const s={},l=n&&n.propertyBlocklist?n.propertyBlocklist:[],d=n&&n.rootProperties?n.rootProperties:{};if(!e)return null;if(t){if((t+=1)>5&&!r||t>u)return"Serialization error: Exceeds nesting limit (5) or (10) for a permitted property."}else t=1;for(o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&!(p(o,l)>=0)){if(1===t&&(r="",o in d&&(r=o)),!i&&!r||t>5&&r&&o!==d[r][t-1]&&n.rootProperties[r][t-1])continue;switch(a=e[o],typeof a){case"object":if(a instanceof Node)a.nodeName?(s[o]=a.nodeName.toLowerCase(),a.id&&(s[o]+="#"+a.id)):s[o]="DOMNode: unknown";else if(a instanceof Window)s[o]="DOMWindow: "+a.location.href;else try{s[o]=g(a,t,n,r)}catch(e){s[o]="Serialization error: "+e.message}break;case"function":case"undefined":break;default:n&&n.privacyPatterns&&(a=c.applyPrivacyPatterns(a,n.privacyPatterns)),s[o]=a}}return s}function m(e){let t=null;if(!e)return t;switch(typeof e){case"string":t=c.access(e);break;case"object":t=e;break;case"function":try{t=e()}catch(e){}}return t}function y(){let e,t;if(r)for(t=0;t<a.length;t+=1)if(e=a[t].rules?a[t].rules.screenviewBlocklist:[],!(p(o,e)>=0)){let e=m(a[t].dataObject);if(!e)return;const n=a[t].rules;if(n&&(i=void 0===n.includeEverything||n.includeEverything,n.privacyPatterns))for(let e=n.privacyPatterns.length-1;e>=0;e-=1){const t=n.privacyPatterns[e];"object"==typeof t.pattern?t.cRegex=new RegExp(t.pattern.regex,t.pattern.flags):n.privacyPatterns.splice(e,1)}e instanceof Array?(e=e.filter((e=>{if(n&&n.filter)for(const t of n.filter){let n,r;const i=t.matchProperty,o=t.matchValue;let a=!1;return"[object Arguments]"===Object.prototype.toString.call(e)?(n=e[0],r=e[1],a=!0):(n=e[t.matchProperty],r=t.matchValue),v(e,n,r,i,o,a)}return!0})).map((e=>g(e,0,n))),e.forEach((function(e){w(e)}))):w(g(e,0,n)),i=!0}}function v(e,t,n,r,i,o){if(o){if("string"==typeof t&&"string"==typeof r&&"string"==typeof n&&"string"==typeof i&&t===r&&n===i)return!0;if("string"==typeof t&&"string"==typeof r&&"object"==typeof n&&(null===i||""===i||void 0===i)&&t===r)return!0;if("string"==typeof t&&"string"==typeof r&&"string"==typeof n&&"object"==typeof i&&"object"==typeof i)return new RegExp(i).test(n);if("string"==typeof t&&"object"==typeof r&&"string"==typeof t&&(null===i||""===i||void 0===i))return new RegExp(r).test(t)}else{if("string"==typeof t&&"string"==typeof n&&t===n)return!0;if(!("string"!=typeof t||"string"!=typeof r||"object"!=typeof e||null!==n&&""!==n&&void 0!==n||null!==i&&""!==i&&void 0!==i)&&Object.prototype.hasOwnProperty.call(e,r))return!0;if("string"==typeof t&&"string"==typeof r&&"object"==typeof e&&"object"==typeof i)return new RegExp(i).test(e[r]);if("object"==typeof r&&"object"==typeof e&&(null===i||""===i||void 0===i)){const t=Object.keys(e);for(const e of t)if(new RegExp(r).test(e))return!0}}return!1}function w(t){if(!t)return;let n;try{n=JSON.stringify(t)}catch(e){n=Object.keys(t).map((e=>`${e}=${t[e]}`)).join("_")}if(h.has(n))return;n&&h.add(n);const r={type:19,dataLayer:t};e.post(r)}function b(e,t){return setTimeout((function(){l>=t.length-1?y():(l=t.length,b(e,t))}),e)}function _(e){let t;if(e&&e.dataObject&&"string"==typeof e.dataObject){t=e.dataObject.replace(/\window\./,"");const n=window[t];if(n)T(n);else{if(s+=f,s>5e4)return;setTimeout((function(){_(e)}),f)}}else{if(!e||!Array.isArray(e.dataObject)&&"object"!=typeof e.dataObject)return;T(e)}}function T(e,t){e&&(Array.isArray(e)?(e.oldPush=Array.prototype.push,e.push=function(t){e.onPush(t),e.oldPush(t)},e.onPush=function(t){l=e.length-1,n&&clearTimeout(n),n=setTimeout((function(){b(d,e)}),f)}):"object"!=typeof e||Array.isArray(e)||null===e||new Proxy(e,{set:function(e,t,n){return y(),!0}})&&y())}return{init:function(){if(t=e.getConfig(),r=!0,a=[],t.dataObjects){a=t.dataObjects;for(const e of a)if(e.rules&&e.rules.permittedProperties){const t=e.rules.permittedProperties;e.rules.rootProperties={};for(let n=0;n<t.length;n+=1)"string"==typeof t[n]&&(t[n]=t[n].split("."),e.rules.rootProperties[t[n][0]]=t[n])}}},destroy:function(){t=null,r=!1},onevent:function(e){if(e&&"object"==typeof e&&e.type)switch(e.type){case"load":o="";break;case"screenview_load":o=e.name,a&&a.forEach((function(e){_(e)}));break;case"click":case"pointerdown":case"unload":break;case"logDataLayers":e.data&&"object"!=typeof e.data||y()}},onmessage:function(e){}}})),TLT&&"function"==typeof TLT.addModule&&TLT.addModule("overstat",(function(e){"use strict";const t=e.utils,n={},r={updateInterval:250,hoverThreshold:1e3,hoverThresholdMax:12e4,gridCellMaxX:10,gridCellMaxY:10,gridCellMinWidth:20,gridCellMinHeight:20},i=50;function o(t){const n=(e.getConfig()||{})[t];return"number"==typeof n?n:r[t]}function a(e){return e&&!e.nodeType&&e.element&&(e=e.element),e}function s(e){return!(e=a(e))||e===document.body||e===document.html||e===document}function l(e){return(e=a(e))?e.parentNode:null}function c(e){return(e=a(e))?e.offsetParent||e.parentElement||l(e):null}function u(e){const t=function(e){return(e=a(e))&&e.tagName?e.tagName.toUpperCase():""}(e);return 1!==function(e){return(e=a(e))&&e.nodeType||-1}(e)||"TR"===t||"TBODY"===t||"THEAD"===t}function d(r,s,l,c){var u;this.xPath=null!==r&&(u=r)?u.xPath?u.xPath:(u=a(u),e.getXPathFromNode(u)):"",this.domNode=r,this.hoverDuration=0,this.hoverUpdateTime=0,this.gridX=Math.max(s,0),this.gridY=Math.max(l,0),this.parentKey="",this.updateTimer=-1,this.disposed=!1,this.childKeys={},this.webEvent=c,this.getKey=function(){return this.xPath+":"+this.gridX+","+this.gridY},this.update=function(){const e=(new Date).getTime(),t=this.getKey();0!==this.hoverUpdateTime&&(this.hoverDuration+=e-this.hoverUpdateTime),this.hoverUpdateTime=e,clearTimeout(this.updateTimer),this.updateTimer=setTimeout((function(){!function(e,t){const r=n[e];r&&r[t]&&r[t]()}(t,"update")}),o("updateInterval"))},this.dispose=function(e){if(clearTimeout(this.updateTimer),delete n[this.getKey()],this.disposed=!0,e){const e=this.clone();n[e.getKey()]=e,e.update()}},this.process=function(r){if(clearTimeout(this.updateTimer),this.disposed)return!1;let a=!1,s=this,l=0;if(this.hoverDuration>=o("hoverThreshold")){for(this.hoverDuration=Math.min(this.hoverDuration,o("hoverThresholdMax")),a=!0,function(n,r){const i=t.getValue(n,"webEvent.target",{}),o=t.getValue(i,"element.tagName")||"",a="input"===o.toLowerCase()?t.getValue(i,"element.type"):"",s=t.getTlType(i),l={type:9,event:{hoverDuration:n.hoverDuration,hoverToClick:t.getValue(r,"hoverToClick")},target:{id:i.id||"",idType:i.idType||"",name:i.name||"",tlType:s,type:o,subType:a,position:{width:t.getValue(i,"element.offsetWidth",0),height:t.getValue(i,"element.offsetHeight",0),relXY:n.relXY}}};l.target.id&&(i.accessibility&&(l.target.accessibility=i.accessibility),i.attributes&&(l.target.attributes=i.attributes),e.post(l))}(this,{hoverToClick:!!r});void 0!==s&&l++<i;)s.dispose(r),s=n[s.parentKey];l>=i&&t.clog("Overstat process() hit iterations limit")}else this.dispose(r);return a},this.clone=function(){const e=new d(this.domNode,this.gridX,this.gridY);return e.parentKey=this.parentKey,e}}function f(e,n,r){const o=function(e){if(e&&e.position)return{x:e.position.x,y:e.position.y};const n=(e=a(e))&&e.getBoundingClientRect?e.getBoundingClientRect():null;let r=0,o=0,l=r,u=o,d=0,f=0,h=c(e),p=0;for(n?(r=n.left,o=n.top):e&&(r=e.offsetLeft,o=e.offsetHeight);h&&p++<i&&!s(h);)d=h.offsetLeft-(h.scrollLeft||0),f=h.offsetTop-(h.scrollTop||0),d===l&&f===u||(r+=d,o+=f,l=d,u=f),h=c(h);return p>=i&&t.clog("Overstat calculateNodeOffset() hit iterations limit"),isNaN(r)&&(r=0),isNaN(o)&&(o=0),{x:r,y:o}}(e=a(e));let l=n-o.x,u=r-o.y;return isFinite(l)||(l=0),isFinite(u)||(u=0),{x:l,y:u}}function h(e,t,n){const r=(e=a(e)).getBoundingClientRect?e.getBoundingClientRect():null,i=r?r.width:e.offsetWidth,s=r?r.height:e.offsetHeight,l=i&&i>0?Math.max(i/o("gridCellMaxX"),o("gridCellMinWidth")):o("gridCellMinWidth"),c=s&&s>0?Math.max(s/o("gridCellMaxY"),o("gridCellMinHeight")):o("gridCellMinHeight");let u=Math.min(Math.floor(t/l),o("gridCellMaxX")),d=Math.min(Math.floor(n/c),o("gridCellMaxY"));const f=i>0?t/i:0,h=s>0?n/s:0;let p="";var g,m;return isFinite(u)||(u=0),isFinite(d)||(d=0),g=f,m=h,p=(g=Math.floor(1e4*Math.min(Math.max(g,0),1))/1e4)+","+Math.floor(1e4*Math.min(Math.max(m,0),1))/1e4,{x:u,y:d,relXY:p}}function p(e){let r=e,o=null,a=!1,s=0;const l={};for(l[e.getKey()]=!0;void 0!==r&&s++<i&&(l[r.parentKey]=!0,""!==r.parentKey&&r.parentKey!==r.getKey());)s>=i&&t.clog("Overstat cleanupHoverEvents() hit iterations limit"),r=n[r.parentKey];for(o in n)Object.prototype.hasOwnProperty.call(n,o)&&!l[o]&&(r=n[o],r&&(a?r.dispose():a=r.process()))}function g(e,r,i){if(r||(r=e.target),s(r))return null;if(t.isiOS||t.isAndroid)return null;let o,a,l,m,y,v,w;return u(r)?l=g(e,c(r),i):(o=f(r,e.position.x,e.position.y),a=h(r,o.x,o.y),l=new d(r,a.x,a.y,e),l.relXY=a.relXY,m=l.getKey(),n[m]?l=n[m]:n[m]=l,l.update(),i||(w=c(r),w&&(v=g(e,w,!0),null!==v&&(y=v.getKey(),m=l.getKey(),m!==y&&(l.parentKey=y))),p(l))),l}function m(r){if(t.getValue(r,"target.id"))switch(r.type){case"mousemove":g(r);break;case"mouseout":!function(e){(function(e,n){let r=0;if(!n||n===e)return!1;for(n=l(n);!s(n)&&r++<i;){if(n===e)return!0;n=l(n)}return r>=i&&t.clog("Overstat isChildOf() hit iterations limit"),!1})((e=function(e){return e.nativeEvent&&(e=e.nativeEvent),e}(e)).target,e.relatedTarget)||function(e,t){let r=null,i=null,o=!1;for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r=n[i],r&&r.domNode===e&&void 0!==r.getKey()&&(o?r.dispose():o=r.process()))}(e.target)}(r);break;case"click":!function(e){let t=null,r=null,i=!1;for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t=n[r],t&&(i?t.dispose():i=t.process(!0)))}();break;case"submit":e.performFormCompletion(!0)}}return{init:function(){},destroy:function(){let e;for(e in n)Object.prototype.hasOwnProperty.call(n,e)&&(n[e].dispose(),delete n[e])},onevent:function(e){"object"==typeof e&&e.type&&m(e)},onmessage:function(e){},createHoverEvent:function(e,t,n,r){return new d(e,t,n,r)},cleanupHoverEvents:p,eventMap:n}})),TLT&&"function"==typeof TLT.addModule&&TLT.addModule("performance",(function(e){"use strict";const t={loadReceived:!1,unloadReceived:!1,perfEventSent:!1};let n,r=null,i=null,o={},a=0;const s=e.utils,l="https:"===window.location.protocol;let c,u,d=[],f=0;const h={enabled:!1,resourceTypes:[],blacklist:[]};function p(i,o){let l,c,u;const d={type:7,performance:{}};let f,h;if(!i||t.perfEventSent)return;const p=i.performance||{},g=p.timing,m=p.navigation;if(g){if(!g.loadEventStart&&!o)return;d.performance.timing=function(e){let t=0,n="",r=0;const i={};if(!e||"object"!=typeof e||!e.navigationStart)return{};for(n in t=e.navigationStart,e)(Object.prototype.hasOwnProperty.call(e,n)||"number"==typeof e[n])&&(r=e[n],i[n]="number"==typeof r&&r&&"navigationStart"!==n?r-t:r);return i}(g),d.performance.timing.renderTime=function(e){let t,n,r=0;return e&&(t=e.responseEnd>0&&e.responseEnd<e.domLoading?e.responseEnd:e.domLoading,n=e.loadEventStart,s.isNumeric(t)&&s.isNumeric(n)&&n>t&&(r=n-t)),r}(g)}else{if(!n.calculateRenderTime)return;d.performance.timing={renderTime:a,calculated:!0}}const y=d.performance.timing;if(n.renderTimeThreshold&&y.renderTime>n.renderTimeThreshold&&(y.invalidRenderTime=y.renderTime,delete y.renderTime),p.getEntriesByType)for(f=p.getEntriesByType("paint"),l=0,c=f.length;l<c;l+=1)h=f[l],h.startTime>0&&(y[h.name]=Math.round(h.startTime));if(!y["first-paint"]&&y.msFirstPaint&&(y["first-paint"]=y.msFirstPaint,delete y.msFirstPaint),m){switch(m.type){case 0:u="NAVIGATE";break;case 1:u="RELOAD";break;case 2:u="BACKFORWARD";break;default:u="UNKNOWN"}d.performance.navigation={type:u,redirectCount:m.redirectCount}}e.post(d),t.perfEventSent=!0,r&&(clearInterval(r),r=null)}function g(t){let n;const r=u.blacklist;let i,o,a;if(!t||!t.name)return;const s=t.name,c=t.initiatorType;if(l&&0===s.indexOf("http:")&&d.push(s),!(Object.prototype.hasOwnProperty.call(u,"maxAlerts")&&f>=u.maxAlerts||Object.prototype.hasOwnProperty.call(u,"threshold")&&t.duration<u.threshold||t.transferSize&&t.transferSize<t.encodedBodySize||t.responseStart===t.responseEnd||u.resourceTypes.length>0&&-1===u.resourceTypes.indexOf(c))){for(o=!1,n=0;n<r.length;n+=1)switch(i=r[n],typeof i){case"object":i.cRegex||(i.cRegex=new RegExp(i.regex,i.flags)),i.cRegex.lastIndex=0,i.cRegex.test(s)&&(o=!0);break;case"string":-1!==s.indexOf(i)&&(o=!0)}o||(f+=1,a={urlNormalized:e.normalizeUrl(s,17),url:s,initiator:c,duration:Math.round(t.duration),responseEnd:Math.round(t.responseEnd)},void 0!==t.transferSize&&(a.transferSize=t.transferSize,t.duration&&(a.bps=Math.round(t.transferSize/t.duration*1e3))),e.post({type:17,resourceData:a}))}}function m(){o={},i&&(clearTimeout(i),i=null)}function y(){const t={type:20,pageExperience:s.clone(o)};(o.fid||o.lcp||o.cls)&&(t.pageExperience.https="https:"===window.location.protocol,e.post(t),m())}function v(e){if(e&&e.name){switch(e.name){case"FID":o.fid=Math.round(e.value);break;case"LCP":o.lcp=Math.round(e.value);break;case"CLS":o.cls=Number(e.value.toFixed(2))}void 0!==o.fid&&void 0!==o.lcp&&void 0!==o.cls&&y()}}return{init:function(){n=e.getConfig(),u=s.mixin({},h,n.performanceAlert),function(){if(!n||!s.getValue(n,"pageExperience.enabled",!0))return;n.pageExperience=n.pageExperience||{};const e=n.pageExperience;!e.api&&window.webVitals&&(e.api={getCLS:webVitals.getCLS,getLCP:webVitals.getLCP,getFID:webVitals.getFID}),e.api?e.enabled=!0:e.enabled=!1}()},destroy:function(){y(),r&&(clearInterval(r),r=null,p(window,!0)),c&&c.disconnect(),l&&(function(t){const n={type:20,violations:{}},r=n.violations;t&&t.length&&(r.total=t.length,t.splice(10),r.urls=t,e.post(n))}(d),d=[]),n=null},onevent:function(o){if("object"==typeof o&&o.type)switch(o.type){case"load":t.loadReceived=!0,function(t){const n=e.getStartTime();t.timestamp>n&&!a&&(a=t.timestamp-n)}(o),t.perfEventSent||r||(r=setInterval((function(){e.isInitialized()&&p(window)}),s.getValue(n,"delay",2e3))),function(){if(!u.enabled||"function"!=typeof window.PerformanceObserver)return;c=new window.PerformanceObserver((function(e,t){s.forEach(e.getEntries(),g)}));const e=window.performance.getEntriesByType("resource");setTimeout((function(){s.forEach(e,g)})),c.observe({entryTypes:["resource"]})}();break;case"screenview_load":!function(){if(!n||!n.pageExperience||!n.pageExperience.enabled)return;m();const e=n.pageExperience.api;e.getCLS(v),e.getLCP(v),e.getFID(v),i=setTimeout(y,3e5)}(),t.perfEventSent||p(window);break;case"screenview_unload":default:break;case"unload":t.unloadReceived=!0,y(),t.perfEventSent||p(window)}},onmessage:function(e){}}})),TLT.addModule("replay",(function(e){"use strict";const t=e.utils;let n=0,r={},i=null,o=[],a=!0,s=null,l=null,c=0,u=null;const d=(new Date).getTime();let f=null;const h="root";let p,g=null,m=null,y=null,v=null,w={inFocus:!1},b=null,_=e.getConfig()||{};const T=t.getValue(_,"viewPortWidthHeightLimit",1e4);let S=1,x=1;const C={},E=t.getValue(_,"mousemove")||{},k=t.getValue(_,"tab",!1),O=E.sampleRate,L=E.ignoreRadius;let I=null,D={},P=0;const A=1e3;let M=0,z=[],R="visible"===document.visibilityState;const N=[],j=[],V=[];function U(e){let t=!1,n=null;if("object"!=typeof e||!e.type)return t;switch(e.type.toLowerCase()){case"input":n="|"+(e.subType||"")+"|",t=-1!=="|button|image|submit|reset|".indexOf(n.toLowerCase());break;case"select":case"textarea":break;default:t=!0}return t}function B(e){let t=e.type;const n=e.target;if(t="string"==typeof t?t.toLowerCase():"unknown","blur"===t&&(t="focusout"),"change"===t)if("INPUT"===n.type)switch(n.subType){case"text":case"date":case"time":t=n.subType+"Change";break;default:t="valueChange"}else t="TEXTAREA"===n.type?"textChange":"valueChange";return t}function H(e,t,n){let r,i,o;if(document.querySelector(e))return!0;for(r=0;r<t.length;r++)if(o=t[r],o.querySelector(e))return!0;for(r=0;r<n.length;r++)if(i=n[r],i.querySelector(e))return!0;return!1}function F(n,r,i){let o,a,s,l,c,u,d,f,h;for(o=0;o<N.length;o++)d=N[o],a=d.delayUntil.selector,s=t.getValue(d.delayUntil,"exists",!0),l=d.delayUntil.dualSnapshot||!1,c=H(a,r,i),u=d.lastStatus||!1,f=d.config||{},h=d.timerId,(!0===s&&!0===c&&!1===u||!1===s&&!1===c&&!0===u||!0===l&&!0===c&&!1===u||!0===l&&!1===c&&!0===u)&&(e.performDOMCapture(document,f),l&&!1!==c||(N.splice(o--,1),0===N.length&&TLT.registerMutationCallback(F,!1),h&&clearTimeout(h))),d.lastStatus=c}function q(n,r,i){let o,s=null;return n?((r=r||{}).eventOn=a,a=!1,i?(s="dcid-"+t.getSerialNumber()+"."+(new Date).getTime()+"s","object"==typeof i?(r.dcid=s,o={config:r,delayUntil:i,lastStatus:!1},N.push(o),TLT.registerMutationCallback(F,!0),void 0!==i.timeout&&i.timeout>=0&&(o.timerId=window.setTimeout((function(){!function(t){let n,r,i;for(n=0;n<N.length;n+=1)r=N[n],i=r.config||{},i.dcid===t&&(i.timeoutExpired=!0,e.performDOMCapture(document,i),N.splice(n--,1),0===N.length&&TLT.registerMutationCallback(F,!1))}(s)}),i.timeout))):window.setTimeout((function(){r.dcid=s,e.performDOMCapture(n,r)}),i)):(delete r.dcid,s=e.performDOMCapture(n,r)),s):s}function X(n,r,i){let o,a,s=!1;const l={};let c,u,d,f,p,g=!1,m=null,y=0;if(!n||!r&&!i)return m;if(!r&&"load"!==n&&"unload"!==n)return m;if(_=e.getConfig()||{},g=t.getValue(_,"domCapture.enabled",!1),!g||t.isLegacyIE)return m;if(function(t,n){let r,i,o,a;for(r=0,i=t.length;r<i;r+=1)switch(o=t[r],a=n&&0===n.indexOf("#")?location.pathname+n:void 0===n||n===h?location.pathname+location.hash:n,a=e.normalizeUrl(a,2),typeof o){case"object":if(o.cRegex||(o.cRegex=new RegExp(o.regex,o.flags)),o.cRegex.lastIndex=0,o.cRegex.test(a))return!0;break;case"string":if(o===a)return!0}return!1}(t.getValue(_,"domCapture.screenviewBlacklist",[]),i))return m;const v=t.getValue(_,"domCapture.triggers")||[];for(o=0,u=v.length;!s&&o<u;o+=1){if(c=v[o],c.event===n)if("load"===n||"unload"===n)if(c.screenviews)for(f=c.screenviews,a=0,p=f.length;!s&&a<p;a+=1)switch(d=f[a],typeof d){case"object":d.cRegex||(d.cRegex=new RegExp(d.regex,d.flags)),d.cRegex.lastIndex=0,s=d.cRegex.test(i);break;case"string":s=d===i}else s=!0;else s=!c.targets||-1!==t.matchTarget(c.targets,r);"change"===c.event&&c.delayUntil&&(z=z.concat(c.targets))}return s&&(y=c.delay||c.delayUntil||("load"===c.event?7:0),l.forceFullDOM=!!c.fullDOMCapture,m=q(window.document,l,y),m&&function(){let t=!1;if(!E.enabled||Object.prototype.hasOwnProperty.call(window,"ontouchstart"))return;if(0===j.length)return;P>=A&&(t=!0);const n={type:18,mousemove:{elements:V.slice(0),data:j.slice(0),config:{ignoreRadius:E.ignoreRadius,sampleRate:E.sampleRate},limitReached:t,maxInactivity:M}};e.post(n),V.length=0,j.length=0,D={},M=0}()),m}function Y(t){e.post(t)}function W(t){let n,r,i,o,a;const s={mouseout:!0,mouseover:!0},l=[],c=t.length;for(n=0;n<c;n+=1)if(i=t[n],i)if(s[i.event.type])l.push(i);else{for(r=n+1;r<c&&t[r]&&s[t[r].event.type];r+=1);r<c&&(o=t[r],o&&i.target.id===o.target.id&&i.event.type!==o.event.type&&("click"===i.event.type&&(a=i,i=o,o=a),"click"===o.event.type?(i.target.position=o.target.position,n+=1):"blur"===o.event.type&&(i.target.dwell=o.target.dwell,i.target.visitedCount=o.target.visitedCount,i.focusInOffset=o.focusInOffset,i.target.position=o.target.position,n+=1),t[r]=null,t[n]=i)),l.push(t[n])}for(i=l.shift();i;i=l.shift())e.post(i);t.splice(0,t.length)}function K(e,n){o.push(function(e){let n=null;const r=t.getValue(e,"webEvent.target",{}),i=r.type,o=r.subType||"",a=t.getTlType(r),s=function(e){const t=[];for(e=e.parentNode;e;)t.push(e),e=e.parentNode;return t}(t.getValue(r,"element")),l=t.getValue(e,"webEvent.subType",null),c={timestamp:t.getValue(e,"webEvent.timestamp",0),type:4,target:{id:r.id||"",idType:r.idType,name:r.name,tlType:a,type:i,position:{width:t.getValue(r,"size.width"),height:t.getValue(r,"size.height")},currState:e.currState||null},event:{tlEvent:B(t.getValue(e,"webEvent")),type:t.getValue(e,"webEvent.type","UNKNOWN")}};return r.accessibility&&(c.target.accessibility=r.accessibility),r.attributes&&(c.target.attributes=r.attributes),o&&(c.target.subType=o),"number"==typeof e.dwell&&e.dwell>0&&(c.target.dwell=e.dwell),"number"==typeof e.visitedCount&&(c.target.visitedCount=e.visitedCount),void 0!==e.prevState&&(c.prevState=e.prevState),l&&(c.event.subType=l),n=function(e){return t.some(e,(function(e){const n=t.getTagName(e);return"a"===n||"button"===n?e:null}))}(s),c.target.isParentLink=!!n,n&&(n.href&&(c.target.currState=c.target.currState||{},c.target.currState.href=c.target.currState.href||n.href),n.value&&(c.target.currState=c.target.currState||{},c.target.currState.value=c.target.currState.value||n.value),(n.innerText||n.textContent)&&(c.target.currState=c.target.currState||{},c.target.currState.innerText=t.trim(c.target.currState.innerText||n.innerText||n.textContent))),t.isUndefOrNull(c.target.currState)&&delete c.target.currState,t.isUndefOrNull(c.target.name)&&delete c.target.name,c}({webEvent:e,id:n,currState:t.getValue(e,"target.state")}))}function Q(e,n,i){let a,s,l=!1;if(!e)return;if(0===o.length)return;if(!(n=n||(r[e]?r[e].webEvent:{})))return;s="blur"===n.type||"change"===n.type?t.getValue(n,"target.state",{}):n.target&&t.getTargetState(n.target.element)||{},s&&s.disabled&&(i=!0);const c=o[o.length-1];r[e]?(c.focusInOffset=r[e].focusInOffset,c.target.visitedCount=r[e].visitedCount,r[e].focus&&(r[e].dwell=Number(new Date)-r[e].focus,c.target.dwell=r[e].dwell),r[e].processedChange||!r[e].prevState||i||t.isEqual(r[e].prevState,s)||(n.type="change",c.event.type=n.type,c.event.tlEvent=B(n),c.target.prevState=r[e].prevState,c.target.currState=s)):r[e]={},"click"===c.event.type?U(c.target)||(c.target.currState=s,l=!0):"focus"===c.event.type&&(l=!0),l&&!i&&(c.event.type="blur",c.event.tlEvent="focusout"),c.dcid||(a=X(c.event.type,n.target),a&&(c.dcid=a)),i||(w.inFocus=!1),r[e].prevState=s?t.mixin({},s):s,W(o)}function J(e,n){const i=o.length,a=i?o[i-1]:null;w.inFocus&&w.target.id===e?a&&a.target.id===e||(K(n,e),r[e].processedChange=!1,r[e].processedClick=!1):(w.inFocus&&Q(w.target.id,w),w=n,w.inFocus=!0,r[e]||(r[e]={}),r[e].focus=w.dwellStart=Number(new Date),r[e].focusInOffset=g?w.dwellStart-Number(g):-1,"focus"===n.type?r[e].prevState=t.getValue(n,"target.state"):"click"!==n.type||r[e].prevState||(r[e].prevState=t.getValue(n,"target.state"),!r[e].prevState||"checkbox"!==n.target.subType&&"radio"!==n.target.subType||(r[e].prevState.checked=!r[e].prevState.checked)),r[e].visitedCount=r[e].visitedCount+1||1,r[e].webEvent=n,r[e].processedChange=!1,r[e].processedClick=!1,K(n,e))}function G(e,n){if("select"===n.target.type&&b&&b.target.id===e)return void(b=null);J(e,n);const i=o[o.length-1];"focus"===i.event.type&&(i.event.type="click",i.event.tlEvent=B(n));const a=n.nativeEvent;a&&(!window.MouseEvent||!(a instanceof MouseEvent&&0===a.detail)||window.PointerEvent&&a instanceof PointerEvent&&""!==a.pointerType)&&(i.target.position.relXY=t.getValue(n,"target.position.relXY")),r[e].processedChange||(r[e].webEvent=n),r[e].processedClick=!0,U(n.target)&&Q(e,n,!0),b=n}function $(e,n){const r=e;if(t.getValue(n,"target.element.disabled",!1))switch(n.type){case"pointerdown":u=r;break;case"pointerup":r===u&&(n.type="click",G(e,n)),u=null}}function Z(){let e;s&&(e=s.clientState,e.viewPortHeight>0&&e.viewPortHeight<T&&e.viewPortWidth>0&&e.viewPortWidth<T&&Y(s),l=s,s=null,m=v||m,y=null),Z.timeoutId=0}function ee(e){let n=null;if(!t.isOperaMini)return s=function(e){const n=document.documentElement||{},r=document.body||{},i=window.screen,o=i.width,a=i.height,s=t.getValue(e,"orientation",0);let c;const u={type:1,clientState:{pageWidth:Math.max(r.clientWidth||0,n.offsetWidth||0,n.scrollWidth||0),pageHeight:Math.max(r.clientHeight||0,n.offsetHeight||0,n.scrollHeight||0),viewPortWidth:window.innerWidth||n.clientWidth,viewPortHeight:window.innerHeight||n.clientHeight,viewPortX:Math.round(window.pageXOffset||(n||r).scrollLeft||0),viewPortY:Math.round(window.pageYOffset||(n||r).scrollTop||0),deviceOrientation:s,event:t.getValue(e,"type")}},d=u.clientState;c=t.isiOS&&90===Math.abs(s)?a:o,l=l||u,"unload"===d.event&&d.viewPortHeight===d.pageHeight&&d.viewPortWidth===d.pageWidth&&l.clientState.viewPortHeight<d.viewPortHeight&&(d.viewPortHeight=l.clientState.viewPortHeight,d.viewPortWidth=l.clientState.viewPortWidth),d.viewPortY+d.viewPortHeight>d.pageHeight&&(d.viewPortY=d.pageHeight-d.viewPortHeight),d.viewPortY<0&&(d.viewPortY=0);const f=d.viewPortWidth?c/d.viewPortWidth:1;return d.deviceScale=f.toFixed(3),d.viewTime=0,m&&y&&(d.viewTime=y.getTime()-m.getTime()),"scroll"===e.type&&(d.viewPortXStart=l.clientState.viewPortX,d.viewPortYStart=l.clientState.viewPortY),u}(e),"scroll"===e.type||"resize"===e.type?(Z.timeoutId&&window.clearTimeout(Z.timeoutId),Z.timeoutId=window.setTimeout(Z,t.getValue(_,"scrollTimeout",2e3))):"touchstart"===e.type||"load"===e.type?s&&(x=parseFloat(s.clientState.deviceScale)):"touchend"===e.type&&s&&(S=parseFloat(s.clientState.deviceScale),Z()),"load"!==e.type&&"unload"!==e.type||("unload"===e.type&&d&&(n=t.clone(s),n.clientState.event="attention",n.clientState.viewTime=(new Date).getTime()-d),Z(),n&&(s=n,Z())),s}function te(t){let n,r,i=null;for(n in C)Object.prototype.hasOwnProperty.call(C,n)&&(r=C[n].exception,r.repeats>1&&(i={type:6,exception:r},e.post(i)));o&&W(o),y=new Date,ee(t),p!==h&&e.normalizeUrl(location.hash,2)!==p||TLT.logScreenviewUnload(p)}function ne(){p=t.getValue(_,"forceRootScreenview",!1)?h:e.normalizeUrl(location.hash,2)||h}return{init:function(){o=[]},destroy:function(){Q(i),o=[],Z.timeoutId&&(window.clearTimeout(Z.timeoutId),Z.timeoutId=0)},onevent:function(a){let s,l,u=null,d=null;if("object"==typeof a&&a.type){if(!function(e,n){const r=["type","name","target.id"];let i,o,a=null,s=!0,l=0,c=0,u=0;if(!e||!n||"object"!=typeof e||"object"!=typeof n)return!1;for(i=0,o=r.length;s&&i<o;i+=1)if(a=r[i],t.getValue(e,a)!==t.getValue(n,a)){s=!1;break}return s&&(c=t.getValue(e,"timestamp"),u=t.getValue(n,"timestamp"),isNaN(c)&&isNaN(u)||(l=Math.abs(t.getValue(e,"timestamp")-t.getValue(n,"timestamp")),(isNaN(l)||l>10)&&(s=!1))),s}(a,f)){switch(f=a,u=t.getValue(a,"target.id"),r[u]||(r[u]={}),function(e,n){let i=!1;const a=o.length,s=a?o[a-1]:null;if(!s)return i;const l=s.target.id;l!==e&&"selectList"!==s.target.tltype&&("focus"!==n.type&&"click"!==n.type&&"change"!==n.type&&"blur"!==n.type&&"unload"!==n.type||(Q(l),i=!0)),l===e&&("click"===n.type&&r[e].processedClick||"change"===n.type&&r[e].processedChange||"pointerup"===n.type&&r[e].processedClick&&t.getValue(n.target,"state.disabled",!1))&&(Q(l,null,!0),i=!0)}(u,a),a.type){case"hashchange":break;case"focus":J(u,a);break;case"blur":Q(u,a);break;case"pointerdown":case"pointerup":$(u,a);break;case"click":G(u,a);break;case"change":!function(e,n){J(e,n);const i=o[o.length-1];i.event.type="change",i.event.tlEvent=B(n),i.target.currState=n.target.state,r[e].prevState&&(i.target.prevState=r[e].prevState,"boolean"==typeof i.target.currState.checked&&(i.target.prevState.checked=!i.target.currState.checked)),r[e].webEvent=n,r[e].processedChange=!0,-1!==t.matchTarget(z,n.target)&&Q(e,n)}(u,a);break;case"orientationchange":!function(e){const r=e.orientation;Y({type:4,event:{type:"orientationchange"},target:{prevState:{orientation:n,orientationMode:t.getOrientationMode(n)},currState:{orientation:r,orientationMode:t.getOrientationMode(r)}}}),n=r}(a);break;case"touchstart":!function(e){2===t.getValue(e,"nativeEvent.touches.length",0)&&ee(e)}(a);break;case"touchend":!function(e){const n={},r=t.getValue(e,"nativeEvent.rotation",0)||t.getValue(e,"nativeEvent.touches[0].webkitRotationAngle",0);let i=null;const o={type:4,event:{type:"touchend"},target:{id:t.getValue(e,"target.id"),idType:t.getValue(e,"target.idType")}};2===t.getValue(e,"nativeEvent.changedTouches.length",0)+t.getValue(e,"nativeEvent.touches.length",0)&&(ee(e),i={rotation:r?r.toFixed(2):0,scale:S?S.toFixed(2):1},i.pinch=function(){let e;const t=S-x;return e=isNaN(t)?"INVALID":t<0?"CLOSE":t>0?"OPEN":"NONE",e}(),n.scale=x?x.toFixed(2):1,o.target.prevState=n,o.target.currState=i,Y(o))}(a);break;case"loadWithFrames":TLT.logScreenviewLoad("rootWithFrames");break;case"load":n=a.orientation,m=new Date,("number"!=typeof t.getOrientationAngle()||t.isAndroid)&&(l=window.screen.width>window.screen.height?90:0,s=t.getOrientationAngle(),Math.abs(s)===l||180===s&&0===l||270===s&&90===l||(t.isLandscapeZeroDegrees=!0,180===Math.abs(s)||0===Math.abs(s)?n=90:90!==Math.abs(s)&&270!==Math.abs(s)||(n=0))),setTimeout((function(){e.isInitialized()&&ee(a)}),100),ne(),TLT.logScreenviewLoad(p);break;case"screenview_load":g=new Date,function(){let e;for(e in r)Object.prototype.hasOwnProperty.call(r,e)&&(r[e].visitedCount=0)}(),d=X("load",null,a.name);break;case"screenview_unload":d=X("unload",null,a.name);break;case"resize":case"scroll":y||(y=new Date),v=new Date,ee(a);break;case"unload":te(a);break;case"mousemove":!function(n){let r,i,o,a=0,s=0;if(!E.enabled||Object.prototype.hasOwnProperty.call(window,"ontouchstart"))return;if(P>=A)return;const l={element:{id:n.target.id,idType:n.target.idType},x:n.position.x,y:n.position.y,offset:e.getCurrentOffset()};if(null!==I){if(a=l.offset-I.offset,O&&a<O)return;if(i=Math.abs(l.x-I.x),o=Math.abs(l.y-I.y),s=i>o?i:o,L&&s<L)return;a>M&&(M=a)}const c=JSON.stringify(l.element);r=D[c],void 0===r&&(V.push(l.element),r=V.length-1,D[c]=r);const u=t.getValue(n,"target.position.relXY").split(",");j.push([r,u[0],u[1],l.offset]),P+=1,I=l}(a);break;case"error":!function(n){let r;const i=t.getValue(n,"nativeEvent.message");let o=t.getValue(n,"nativeEvent.filename","");const a=t.getValue(n,"nativeEvent.lineno",-1),s=t.getValue(n,"nativeEvent.error");if("string"==typeof i){if(o&&(o=e.normalizeUrl(o,6)),r=s&&s.stack?s.stack.toString():(i+" "+o+" "+a).toString(),C[r])C[r].exception.repeats=C[r].exception.repeats+1;else{const t={type:6,exception:{description:i,url:o,line:a}};e.post(t),C[r]={exception:{description:i,url:o,line:a,repeats:1}}}c+=1}}(a);break;case"visibilitychange":!function(e){const t="visible"===document.visibilityState,n={type:4,event:{type:"visibilitychange"},target:{prevState:{visible:R},currState:{visible:t}}},r=X(e.type,e.target);r&&(n.dcid=r),Y(n),R=t}(a),k&&(!1===R&&TLT?(te(a),TLT.flushAll(),TLT.updatePageId()):(p||ne(),p!==h&&e.normalizeUrl(location.hash,2)!==p||TLT.logScreenviewLoad(p)));break;default:!function(e){const n={type:4,event:{tlEvent:B(e),type:e.type},target:{id:t.getValue(e,"target.id"),idType:t.getValue(e,"target.idType"),currState:t.getValue(e,"target.state")}},r=X(e.type,e.target);r&&(n.dcid=r),Y(n)}(a)}return i=u,d}f=a}},onmessage:function(){}}}))}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,n),o.exports}n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)};var r=n(30398);tealeafLibrary=r}();
