PageSourceSearch

https://jennaandco.com/wp-content/plugins/ezm/XXDF/Web_Widget/DDF/lib/XXDF_DDF.min.js?ver=0.0.15

js jennaandco.com collected 2026-10-04 00:53:21 UTC 82,458 bytes, 149 lines download raw bytes

1var n=function(){function d(){}d.prototype.c=function(a,c,b){for(var e=0;e<c.length;e++){if("undefined"==typeof a[c[e]])return b;a=a[c[e]]}return a};d.prototype.A=function(a,c,b){return this.U(a,c,b)};d.prototype.Fb=function(a,c){return this.U(a,c,val,{del:!0})};d.prototype.ib=function(a,c){return this.U(a,c,val,{del:!0,reindex:!0})};d.prototype.U=function(a,c,b,e){for(var g=0;g<c.length-1;g++)if("object"==typeof a)a.hasOwnProperty(c[g])||(a[c[g]]="number"==typeof c[g]?[]:{}),a=a[c[g]];else return!1;
2"undefined"!=typeof e&&"undefined"!=typeof e.del&&!0===e.del?Array.isArray(a)&&"undefined"!=typeof e.reindex&&!0===e.reindex?a.splice(c[c.length-1],1):delete a[c[c.length-1]]:a[c[c.length-1]]=b;return!0};d.prototype.dc=function(a,c){"undefined"==typeof c&&(c=document.documentElement);for(var b=[],e,g;a!==c;){e=0;for(g=a;g;)1===g.nodeType&&g.nodeName===a.nodeName&&(e+=1),g=g.previousSibling;b.unshift(a.nodeName+"["+e+"]");a=a.parentNode}b.unshift(c.nodeName);return b};d.prototype.ia=function(a){"undefined"==
3typeof a&&(a=location.search);var c={};"?"==a.charAt(0)&&(a=a.substring(1));a=a.split("&");for(var b=0;b<a.length;b++){var e=a[b].split("="),g=e[0],e=e[1],g=decodeURIComponent(g);"undefined"!=typeof e&&(e=e.replace(/\+/g,"%20"),e=decodeURIComponent(e));"[]"==g.substr(-2)?(void 0==c[g]&&(c[g]=[]),c[g].push(e)):c[g]=e}return c};d.prototype.Za=function(a){a=this.$a(a,void 0);""!=a&&(a="?"+a);return a};d.prototype.$a=function c(b,e){"undefined"==typeof b&&(b={});"undefined"==typeof e&&(e="");var g=[],
4f;for(f in b)if(b.hasOwnProperty(f)){var d=""==e?f:e+"["+f+"]",d="object"==typeof b[f]?c(b[f],d):d+"="+b[f];g.push(d)}return g.join("&")};d.prototype.ra=function(c,b){var e;return function(){var g=arguments;clearTimeout(e);e=setTimeout(function(){c.apply(null,g)},b)}};d.prototype.X=function(c,b){var e=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d*)?(Z|(\+|-)([\d|:]*))?$/;return"string"==typeof b&&e.test(b)?new Date(b):b};d.prototype.vc=function(c,b){for(var e="";;)if(b&1&&(e+=c),b>>=1)c+=c;else break;
5return e};d.prototype.yc=function(){return window.crypto&&window.crypto.getRandomValues?"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(c){return(c^crypto.getRandomValues(new Uint8Array(1))[0]&15>>c/4).toString(16)}):"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(c){var b=16*Math.random()|0;return("x"==c?b:b&3|8).toString(16)})};d.prototype.round=function(c,b){function e(b,e,c){c&&(e=-e);b=(""+b).split("e");return+(b[0]+"e"+(b[1]?+b[1]+e:e))}return e(Math.round(e(c,
6b,!1)),b,!0)};d.prototype.Ra=function(c){if("undefined"!=typeof c.form&&null!==c.form)return c.form;for(;"FORM"!=c.nodeName&&c.parentNode;)c=c.parentNode;return"FORM"==c.nodeName?c:void 0};d.prototype.pa=function(c){c=c+"=";for(var b=document.cookie.split(";"),e=0;e<b.length;e++){var g=b[e].trim();if(0==g.indexOf(c))return g.substring(c.length)}return null};d.prototype.Bb=function(c){return JSON.parse(decodeURIComponent(this.pa(c)))};d.prototype.qa=function(c,b,e,g,f,d){c=c+"="+b;e&&(c+="; expires="+
7e.toUTCString());g&&(c+="; path="+g);d&&(c+="; secure");document.cookie=c};d.prototype.Cb=function(c,b,e,g,f,d){this.qa(c,encodeURIComponent(JSON.stringify(b)),e,g,0,d)};d.prototype.mb=function(c){var b=RegExp("^[^:A-Z_a-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]*","g");c=c.replace(b,"");b=RegExp("[^-.0-9\u00b7\u0300-\u036f\u203f-\u2040:A-Z_a-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02ff\u0370-\u037d\u037f-\u1fff\u200c-\u200d\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]",
8"g");return c=c.substring(0,1)+c.substring(1).replace(b,"")};return d}(),r=new n;window.XXDF_Utils=r;window.XXDF_Utils_Widget=n;n.prototype.get_by_path=n.prototype.c;n.prototype.set_by_path=n.prototype.A;n.prototype.del_by_path=n.prototype.Fb;n.prototype.splice_by_path=n.prototype.ib;n.prototype.edit_by_path=n.prototype.U;n.prototype.node_path=n.prototype.dc;n.prototype.query_string_to_obj=n.prototype.ia;n.prototype.debounce=n.prototype.ra;n.prototype.json_reviver_date_iso8601=n.prototype.X;
9n.prototype.query_string_to_obj=n.prototype.ia;n.prototype.obj_to_query_mark_stringstring=n.prototype.Dc;n.prototype.obj_to_query_string=n.prototype.$a;n.prototype.str_repeat=n.prototype.vc;n.prototype.uuidv4=n.prototype.yc;n.prototype.round=n.prototype.round;n.prototype.containing_form=n.prototype.Ra;n.prototype.cookie_get=n.prototype.pa;n.prototype.cookie_get_json=n.prototype.Bb;n.prototype.cookie_set=n.prototype.qa;n.prototype.cookie_set_json=n.prototype.Cb;var t=function(){function d(){}d.prototype.Da=function(a,c,b){b.H=a;a.next=b;a.H=c;c.next=a};d.prototype.ta=function(a,c){this.Da(a,c,c.next)};d.prototype.Xa=function(a,c){this.Da(a,c.H,c)};d.prototype.pb=function(a,c){c.H=a;a.next=c};d.prototype.ca=function(a){this.pb(a.H,a.next)};d.prototype.va=function(a,c){this.ca(a);this.ta(a,c)};d.prototype.Xb=function(a,c){this.ca(a);this.Xa(a,c)};d.prototype.Wb=function(a,c){return a.next===c};d.prototype.Vb=function(a){return a.next===a};return d}(),u=new t;
10window.XXDF_DLList=u;window.XXDF_DLList_Widget=t;t.prototype.list_add=t.prototype.ta;t.prototype.list_add_tail=t.prototype.Xa;t.prototype.list_del=t.prototype.ca;t.prototype.list_move=t.prototype.va;t.prototype.list_move_tail=t.prototype.Xb;t.prototype.list_is_last=t.prototype.Wb;t.prototype.list_empty=t.prototype.Vb;var w=function(){function d(){this.u={ea:Number.MAX_VALUE};this.cc=-1;this.hash=this.v=null;this.C={entries:0,mem_bytes:0,hits:0,misses:0,bytes_in:0,bytes_out:0,keys_evicted:0};this.Qb()}d.prototype.Qb=function(){this.v={};this.v.next=this.v.H=this.v;this.hash={}};d.prototype.Ab=function(a){var c=this.u;switch(a){case "maxmemory":return c.ea;default:console.warn("Unrecognized configuration parameter.",{parameter:a})}};d.prototype.Qa=function(a,c){var b=this.u;switch(a){case "maxmemory":b.ea=c;break;
11default:console.warn("Unrecognized configuration parameter.",{parameter:a})}};d.prototype.info=function(){return this.C};
11d.prototype.ga=function(a){if("undefined"!=typeof a&&"string"!=typeof a)console.warn("Namespace must be a string",{namespace:a});else return"undefined"==typeof a&&(a=++this.cc),new v(this,a)};d.prototype.hc=function(){if(!(this.C.mem_bytes<=this.u.ea))for(var a=this.v.H;a!==this.v&&!(a=a.H,a.next.ga.Hb(a.next.key),this.C.mem_bytes<=this.u.ea););};return d}(),y=new w,v=function(){function d(c,
12b,e){this.ga=c;this.key=b;this.S=e;this.next=this.H=null;this.oa=0}function a(c,b){this.cache=c;"undefined"==typeof c.hash[b]&&(c.hash[b]={});this.Ma=this.Z(new d);this.v=c.v;this.hash=c.hash[b];this.C={entries:0,mem_bytes:0,hits:0,misses:0,bytes_in:0,bytes_out:0,keys_evicted:0}}a.prototype.m=function(c,b){this.C[c]+=b;this.cache.C[c]+=b};a.prototype.get=function(c){if(this.l(c))return u.va(this.hash[c],this.v),this.m("hits",1),this.m("bytes_out",this.hash[c].oa),this.hash[c].S;this.m("misses",1)};
13a.prototype.set=function(c,b){if(this.l(c)){var e=this.hash[c];e.S=b;this.m("mem_bytes",-e.oa);u.va(e,this.v)}else e=new d(this,c,b),this.hash[c]=e,u.ta(e,this.v),this.m("entries",1);var a=this.Z(e.S);e.oa=a;this.m("mem_bytes",this.Ma+this.Z(e.key)+a);this.m("bytes_in",a);this.cache.hc()};a.prototype.Rb=function(c){if(this.l(c)){var b=++this.hash[c].S;this.set(c,b);return b}this.m("misses",1)};a.prototype.Eb=function(c){if(this.l(c)){var b=--this.hash[c].S;this.set(c,b);return b}this.m("misses",1)};
14a.prototype.l=function(c){return"undefined"!=typeof this.hash[c]};a.prototype.D=function(c){if(!this.l(c))return 0;var b=this.hash[c];this.m("entries",-1);var e=this.Z(b.S);this.m("mem_bytes",-(this.Ma+this.Z(b.key)+e));u.ca(this.hash[c]);delete this.hash[c];return 1};a.prototype.sa=function(){for(var c in this.hash)this.D(c)};a.prototype.Hb=function(c){this.m("keys_evicted",1);this.D(c)};a.prototype.Z=function(c){c=[c];for(var b=0,e=0;e<c.length;e++)switch(typeof c[e]){case "boolean":b+=4;break;
15case "number":b+=8;break;case "string":b+=2*c[e].length;break;case "object":if("[object Array]"!=Object.prototype.toString.call(c[e]))for(var a in c[e])b+=2*a.length;for(a in c[e]){for(var f=!1,d=0;d<c.length;d++)if(c[d]===c[e][a]){f=!0;break}f||c.push(c[e][a])}}return b};return a}();window.XXDF_Cache=y;window.XXDF_Cache_Widget=w;w.prototype.config_get=w.prototype.Ab;w.prototype.config_set=w.prototype.Qa;w.prototype.info=w.prototype.info;w.prototype.ns_cache=w.prototype.ga;v.prototype.get=v.prototype.get;
16v.prototype.set=v.prototype.set;v.prototype.incr=v.prototype.Rb;v.prototype.decr=v.prototype.Eb;v.prototype.exists=v.prototype.l;v.prototype.del=v.prototype.D;v.prototype.flushall=v.prototype.sa;var z=function(){function d(a){this.s={};"undefined"!=typeof a&&this.s(a)}d.prototype.g=function(a){if("undefined"==typeof a)return this.s;this.s=a};d.prototype.get=function(a){return"undefined"==typeof a?(console.warn("Missing argument.",{argument:"name"}),!1):"undefined"==typeof this.s[a]?(console.warn("Function does not exist.",{name:a}),!1):this.s[a]};d.prototype.set=function(a,c){if("undefined"==typeof a)return console.warn("Missing argument.",{argument:"name"}),!1;if("undefined"==typeof c)return console.warn("Missing argument.",
17{argument:"fn"}),!1;if("undefined"!=typeof this.s[a])return console.warn("Function name previously registered.",{name:a}),!1;this.s[a]=c;return!0};d.prototype.D=function(a){if("undefined"==typeof a)return console.warn("Missing argument.",{argument:"name"}),!1;if("undefined"!=typeof this.s[a])return console.warn("Function name does not exist.",{name:a}),!1;delete this.s[a];return!0};d.prototype.l=function(a){return"undefined"==typeof a?(console.warn("Missing argument.",{argument:"name"}),!1):"undefined"!=
18typeof this.s[a]};d.prototype.sa=function(){for(var a in this.s)this.D(a)};return d}();window.XXDF_Function_Registry_Widget=z;z.prototype.fn=z.prototype.g;z.prototype.get=z.prototype.get;z.prototype.set=z.prototype.set;z.prototype.del=z.prototype.D;z.prototype.exists=z.prototype.l;var A=function(){function d(a){this.Ka=void 0;this.G=[];this.la=[];this.O={};this.set(a)}d.prototype.get=function(){return this.Ka};d.prototype.set=function(a){this.Ka=a};d.prototype.uc=function(){Array.prototype.push.apply(this.la,arguments)};d.prototype.tc=function(){return stack.pop()};d.prototype.jb=function(){return this.la};d.prototype.sc=function(){this.la=[]};d.prototype.$b=function(){return this.G.shift()};d.prototype.ac=function(){Array.prototype.unshift.apply(this.G,arguments)};d.prototype.Yb=
19function(){return this.G.pop()};d.prototype.Ya=function(){Array.prototype.push.apply(this.G,arguments)};d.prototype.da=function(a){return"undefined"==typeof a?this.G:this.G[a]};d.prototype.Zb=function(a,c){this.G[a]=c};d.prototype.ua=function(){this.G=[]};d.prototype.Va=function(a){"undefined"==typeof a&&(a=[]);var c;0==a.length?c=this.O:c=r.c(this.O,a);return c};d.prototype.Pb=function(a,c){"undefined"==typeof c&&(c=[]);0==c.length?this.O=a:r.A(this.O,c,a)};d.prototype.Ob=function(a){"undefined"==
20typeof a&&(a=[]);0==a.length?this.O={}:r.ib(this.O,a)};return d}();window.XXDF_Node_Memory_Widget=A;A.prototype.get=A.prototype.get;A.prototype.set=A.prototype.set;A.prototype.stack_push=A.prototype.uc;A.prototype.stack_pop=A.prototype.tc;A.prototype.stack_get=A.prototype.jb;A.prototype.stack_free=A.prototype.sc;A.prototype.list_shift=A.prototype.$b;A.prototype.list_unshift=A.prototype.ac;A.prototype.list_pop=A.prototype.Yb;A.prototype.list_push=A.prototype.Ya;A.prototype.list_get=A.prototype.da;
21A.prototype.list_set=A.prototype.Zb;A.prototype.list_free=A.prototype.ua;A.prototype.heap_get=A.prototype.Va;A.prototype.heap_set=A.prototype.Pb;A.prototype.heap_free=A.prototype.Ob;var C=function(){function d(){this.b={};this.GC_TRIGGER=Object.freeze({GC_PST_STORE:1,GC_PST_DISTRIB:2,GC_INTVERAL:4});this.GC_PST_STORE=1;this.GC_PST_DISTRIB=2;this.GC_INTVERAL=4}d.prototype.Ba=function(a){this.b[a]={data:[],subscribers:{},msg_id:-1,token:-1,gc_timeoutID:null,opt:{gc_interval:null,gc_trigger:null,max_size:null,max_time:null,compaction:null,sync_pubsub:!1}}};d.prototype.l=function(a){return"undefined"!=typeof this.b[a]};
21d.prototype.D=function(a){if("undefined"==typeof this.b[a])return!1;
22clearTimeout(this.b[a].gc_timeoutID);delete this.b[a];return!0};d.prototype.P=function(a,c){"undefined"==typeof this.b[a]&&this.Ba(a);topic_obj=this.b[a];if("undefined"==typeof c)return topic_obj.opt;for(var b in c)switch(b){case "gc_trigger":if(null===c[b])clearTimeout(topic_obj.gc_timeoutID),topic_obj.gc_timeoutID=null,topic_obj.opt[b]=c[b];else if(isNaN(parseInt(c[b]))||0>c[b]||7<c[b])console.warn("Invalid option value.",{option:b,value:c[b]});else if(topic_obj.opt[b]=c[b],null===topic_obj.opt)console.warn("Cannot set option without gc_interval already set.",
23{option:b,value:c[b]});else if(c[b]&this.Ic){var e=function(b){console.log("gc interval "+b);this.Aa(b);this.b[b].gc_timeoutID=setTimeout(e,this.b[b].opt.gc_interval,b)}.bind(this);clearTimeout(topic_obj.gc_timeoutID);topic_obj.gc_timeoutID=setTimeout(e,topic_obj.opt.gc_interval,a)}break;case "gc_interval":case "max_size":case "max_time":case "compaction":if(null===c[b]){topic_obj.opt[b]=c[b];break}if(isNaN(parseInt(c[b]))||0>c[b]){console.warn("Invalid option value.",{option:b,value:c[b]});break}topic_obj.opt[b]=
24c[b];break;case "sync_pubsub":if(null===c[b]){topic_obj.opt[b]=c[b];break}if("boolean"!=typeof c[b]){console.warn("Invalid option value.",{option:b,value:c[b]});break}topic_obj.opt[b]=c[b];break;default:console.warn("Invalid option.",{option:b})}};d.prototype.subscribe=function(a,c,b){if("undefined"==typeof c)console.warn("Missing argument.",{argument:"fn"});else{"undefined"==typeof b&&(b={});"undefined"==typeof b.offset&&(b.offset=0);var e=b.offset,g=b.count;b=b.sync;"undefined"==typeof this.b[a]&&
25this.Ba(a);var f=g;if("undefined"!=typeof e){var d=this.b[a].data.length;0>e&&(e=d+e);var e=Math.max(0,Math.min(d,e)),k=d;if("undefined"!=typeof g){if(isNaN(parseInt(g))||-1>g)return console.warn("Invalid argument value.",{count:g}),!1;-1!=g&&(k=Math.min(d,e+g))}for(var m=e;m<k;m++){var l=this.clone(this.b[a].data[m]);c(a,l)}if(k<d||"undefined"!=typeof g&&-1==g)return null;f-=k-e}var p=++this.b[a].token,q;"undefined"==typeof g?q=c:q=function(b,e){0!=f&&(f--,c(b,e),0==f&&this.unsubscribe(b,p))}.bind(this);
26this.b[a].subscribers[p]={fn:q,sync:b};return p}};d.prototype.unsubscribe=function(a,c){"undefined"==typeof this.b[a]?console.warn("Topic does not exist.",{topic:a}):delete this.b[a].subscribers[c]};d.prototype.N=function(a,c,b){"undefined"==typeof b&&(b={});var e=b.sync;"undefined"==typeof this.b[a]&&this.Ba(a);c={id:++this.b[a].msg_id,ts:new Date,key:"undefined"==typeof b.key?null:b.key,msg:c};this.Bc(a,c);this.b[a].opt.gc_trigger&this.Cc&&this.Aa(a);this.Gb(a,c,e);this.b[a].opt.gc_trigger&this.Jc&&
27this.Aa(a)};d.prototype.Bc=function(a,c){this.b[a].data.push(c)};d.prototype.Gb=function(a,c,b){"undefined"==typeof b&&(b=this.b[a].opt.sync_pubsub);for(var e in this.b[a].subscribers){c=this.clone(c);var g=this.b[a].subscribers[e].fn,f=this.b[a].subscribers[e].sync;"undefined"==typeof f&&(f=b);f?g(a,c):setTimeout(g,0,a,c)}};d.prototype.Aa=function(a){var c=this.b[a],b=c.opt.max_size;null!==b&&this.Jb(a,b);b=c.opt.max_time;null!==b&&(c=new Date,c.setSeconds(c.getSeconds()-b),this.Mb(a,c))};d.prototype.Jb=
28function(a,c){if(isNaN(parseInt(c))||0>c)console.warn("Argument must be a non-negative integer.",{arg:"max",value:c});else{var b=this.b[a],e=0;b.data.length>c&&(e=b.data.length-c);0<e&&b.data.splice(0,e)}};d.prototype.Mb=function(a,c){if(c instanceof Date){for(var b=this.b[a],e=0,g=0;g<b.data.length;g++)if(b.data[g].t<c)e++;else break;0<e&&b.data.splice(0,e)}else console.warn("Argument must be a Date object.",{arg:"min",value:c})};d.prototype.clone=function(a){return JSON.parse(JSON.stringify(a),
29r.X)};return d}(),E=new C;window.XXDF_Msg_Broker=E;window.XXDF_Msg_Broker_Widget=C;C.prototype.exists=C.prototype.l;C.prototype.del=C.prototype.D;C.prototype.opt=C.prototype.Ec;C.prototype.subscribe=C.prototype.subscribe;C.prototype.unsubscribe=C.prototype.unsubscribe;C.prototype.publish=C.prototype.N;var G=function(){function d(){this.a=E;this.actions=new z;this.ic()}d.prototype.na=function(a,c,b){this.Pa(document,a,c,b)};d.prototype.Pa=function(a,c,b,e){"undefined"==typeof b&&(b="data-"+r.mb(c));a=a.querySelectorAll(c);for(c=0;c<a.length;c++)this.i(a[c],b,e)};d.prototype.i=function(a,c,b){"undefined"==typeof b&&(b=this.a);var e=a.getAttribute(c);if(null==e)return console.warn("Node has is missing an attribute.",{node:a,attribute:c}),!1;e=JSON.parse(e);if(!Array.isArray(e))return console.warn("Attribute must be an array.",
30{node:a,attribute:c}),!1;for(var g=new A,f=0;f<e.length;f++){var d=e[f],k="undefined"==typeof d.events?null:d.events,m="undefined"==typeof d.mutations?null:d.mutations,d="undefined"==typeof d.topics?null:d.topics;if(null===k&&null===d&&null===m)return console.warn("Attribute needs at least of one a set of properties.",{node:a,attribute:c,properties:["events","mutations","topics"]}),!1;var l={"this":this,actions:this.actions,node:a,attr_name:c,broker:b,mem_node:g,attr_index:f,mem_worker:new A,trigger:null,
31mem_job:null,fn_name:null};if(null!==k){if(!Array.isArray(k))return console.warn("Property must be an array.",{node:a,attribute:c,property:"events"}),!1;for(var p=0;p<k.length;p++){var q=k[p];if(!Array.isArray(q))return console.warn("Element must be an array.",{element:q,events:k,node:a,attribute:c,property:"events"}),!1;if(1!=q.length&&2!=q.length)return console.warn("Element must be an array of length 1 or 2.",{element:q,events:k,node:a,attribute:c,property:"events"}),!1;var B=q[0];(function(b,
32e){"function"===typeof Event?a.addEventListener(B,function(a){e.trigger={event:a};
32b.T(e)}):"__init__"==B?(e.trigger={type:"event",event:{target:a}},this.T(e)):a.addEventListener(B,function(a){e.trigger={type:"event",event:a};b.T(e)})})(this,l);"__init__"==B&&"function"===typeof Event&&(q=new Event("__init__"),a.dispatchEvent(q))}}if(null!==m){if(!Array.isArray(m))return console.warn("Property must be an array.",{node:a,attribute:c,property:"mutations"}),!1;for(p=0;p<m.length;p++){var x=m[p];(function(b,
33e){(new MutationObserver(function(a,c){e.trigger={type:"mutation",record:a,observer:c};b.T(e)})).observe(a,x)})(this,l)}}if(null!==d){if(!Array.isArray(d))return console.warn("Property must be an array.",{node:a,attribute:c,property:"topics",value:d}),!1;for(p=0;p<d.length;p++){q=d[p];if(!Array.isArray(q))return console.warn("Element must be an array.",{element:q,events:k,node:a,attribute:c,property:"events"}),!1;if(1!=q.length&&2!=q.length)return console.warn("Element must be an array of length 1 or 2.",
34{element:q,events:k,node:a,attribute:c,property:"events"}),!1;var D=q[0],x=q[1];(function(e,a){return b.subscribe(D,function(b,c){a.trigger={type:"topic",topic:b,packet:c};e.T(a)},x)})(this,l)}}}};d.prototype.T=function(a){var c=a.node,b=a.attr_name,e=a.attr_index,g=a.trigger,f=c.getAttribute(b);if(null==f)console.warn("Node has is missing an attribute.",{node:c,attribute:b});else if(f=JSON.parse(f),Array.isArray(f))if(e=f[e],e="undefined"==typeof e.actions?null:e.actions,null===e)console.warn("Attribute is missing a property.",
35{node:c,attribute:b,property:"actions"});else if(Array.isArray(e))for(null===a.mem_job&&(a.mem_job=new A),"topic"==g.type&&a.mem_job.set(g.packet),g=0;g<e.length;g++){f=e[g];if(!Array.isArray(f)){console.warn("Property must be an array.",{node:c,attribute:b,property:"actions["+g+"]"});break}if(0==f.length){console.warn("Property must be an array with entries.",{node:c,attribute:b,property:"actions["+g+"]"});break}var d=f.shift();a.fn_name=d;if(!this.actions.l(d)){console.warn("Action does not exist.",
36{node:c,attribute:b,action:d});break}f.unshift(a.mem_job.get());f.unshift(a);try{var k=this.actions.get(d).apply(null,f)}catch(m){if(m instanceof F)break;else throw m;}"undefined"!=typeof k&&a.mem_job.set(k)}else console.warn("Property must be an array.",{node:c,attribute:b,property:"actions"});else console.warn("Attribute must be an array.",{node:c,attribute:b})};d.prototype.ic=function(){var a={console:function(){var b=Array.prototype.slice.call(arguments),e=b[0],a;switch("undefined"==typeof b[1]?
37"log":b[1]){case "error":a=console.error;break;case "warn":a=console.warn;break;case "info":a=console.info;break;case "log":a=console.log;break;case "trace":a=console.trace;break;default:a=console.log}b.shift();b.shift();0!=b.length&&a("console args",b);a("console mem_job","input = ",e.mem_job.get(),"list =",e.mem_job.da(),"stack =",e.mem_job.jb(),"heap =",e.mem_job.Va())},activate_children:function(b,e){"undefined"==typeof e&&(e=b.attr_name,"data-"==e.substring(0,5)&&(e=e.substring(5),e="."+e));
38b["this"].Pa(b.node,e)},call_args:function(){var b=Array.prototype.slice.call(arguments),e=b[0];if("undefined"==typeof b[2])throw new F("Action is missing an argument.",{argument:"fn_name",ctx:e});e.fn_name=b[2];b.shift();b.shift();b.shift();b.unshift(e);return e.actions.get(e.fn_name).apply(null,b)},call_list:function(b,e,a){if("undefined"==typeof a)throw new F("Action is missing an argument.",{argument:"fn_name",ctx:b});b.fn_name=a;e=b.mem_job.da();b.mem_job.ua();e.unshift(b);return b.actions.get(b.fn_name).apply(null,
39e)},call_input_list:function(b,e,a){if("undefined"==typeof a)throw new F("Action is missing an argument.",{argument:"fn_name",ctx:b});b.fn_name=a;a=b.mem_job.da();b.mem_job.ua();a.unshift(e);a.unshift(b);return b.actions.get(b.fn_name).apply(null,a)},call_global_fn:function(){var b=Array.prototype.slice.call(arguments),e=b[0],a=(new Function("return this"))();b.splice(0,3,e,a,b[2],b[1]);e.actions.get("call_relative_fn").apply(null,b)},call_global_new_fn:function(){var b=Array.prototype.slice.call(arguments),
40e=b[0],a=(new Function("return this"))();b.splice(0,3,e,a,b[2],b[1]);e.actions.get("call_relative_new_fn").apply(null,b)},call_global_get:function(){var b=Array.prototype.slice.call(arguments),a=b[0],c=(new Function("return this"))();b.splice(0,3,a,c,b[2],b[1]);return a.actions.get("call_relative_get").apply(null,b)},call_global_new_get:function(){var b=Array.prototype.slice.call(arguments),a=b[0],c=(new Function("return this"))();b.splice(0,3,a,c,b[2],b[1]);return a.actions.get("call_relative_new_get").apply(null,
41b)},call_relative_fn:function(){var b=Array.prototype.slice.call(arguments);b[0].actions.get("call_relative_get").apply(null,b)},call_relative_new_fn:function(){var b=Array.prototype.slice.call(arguments);b[0].actions.get("call_relative_new_get").apply(null,b)},call_relative_get:function(){var b=Array.prototype.slice.call(arguments),a=b[0];b.splice(3,0,!1);return a.actions.get("call_relative_internal_get").apply(null,b)},call_relative_new_get:function(){var b=Array.prototype.slice.call(arguments),
42a=b[0];b.splice(3,0,!0);return a.actions.get("call_relative_internal_get").apply(null,b)},call_relative_internal_get:function(){var b=Array.prototype.slice.call(arguments);if("undefined"==typeof b[1])throw new F("Action is missing an argument.",{fn:a.fn_n
42ame,missing:"base",ctx:a});if("undefined"==typeof b[2])throw new F("Action is missing an argument.",{fn:a.fn_name,missing:"fn_rel_path",ctx:a});if("undefined"==typeof b[3])throw new F("Action is missing an argument.",{fn:a.fn_name,missing:"construct",
43ctx:a});var a=b[0],c=b[1],f=b[2],d=b[3];"string"==typeof f&&(f=f.split("."));a.fn_name=f;if(!Array.isArray(f))throw new F("Action argument must be an array.",{fn:a.fn_name,fn_rel_path:f,ctx:a});var k=r.c(c,f);if("undefined"==typeof k)throw new F("Function does not exist",{fn:a.fn_name,fn_rel_path:f,ctx:a});if("function"!=typeof k)throw new F("Path does not define a function.",{fn:a.fn_name,fn_rel_path:f,type:typeof k,ctx:a});b.shift();b.shift();b.shift();b.shift();d?(b.unshift(null),b=new (Function.prototype.bind.apply(k,
44b))):b=k.apply(r.c(c,Array.prototype.slice.call(f,0,-1)),b);return b},call_mem_fn:function(){var b=Array.prototype.slice.call(arguments);b[0].actions.get("call_mem_get").apply(null,b)},call_mem_get:function(){var b=Array.prototype.slice.call(arguments),a=b[0];if("undefined"==typeof b[2])throw new F("Action is missing an argument.",{argument:"mem_type",ctx:a});var c=b[2];if("undefined"==typeof b[3])throw new F("Action is missing an argument.",{argument:"fn_name",ctx:a});a.fn_name=b[3];switch(c){case "node":break;
45case "worker":break;case "job":break;default:throw new F("Invalid argument.",{mem_type:c,ctx:a});}b.splice(2,2);b.shift();return a.mem_job[a.fn_name].apply(a.mem_job,b)},var_global:function(b,a){var c=(new Function("return this"))();return b.actions.get("var_relative")(b,c,a)},var_relative:function(b,a,c){if("undefined"==typeof a)throw new F("Action is missing an argument.",{argument:"base",ctx:b});"undefined"==typeof c&&(c=[]);if(!Array.isArray(c))throw new F("Action argument must be an array.",
46{fn:b.fn_name,path:c,ctx:b});return r.c(a,c)},input_get:function(b,a,c){"undefined"==typeof c&&(c=[]);if(!Array.isArray(c))throw new F("Action argument must be an array.",{fn:b.fn_name,path:c,ctx:b});return r.c(a,c)},insert_arg:function(b,a,c,f){"undefined"==typeof f&&(f=[]);if(!Array.isArray(f))throw new F("Action argument must be an array.",{fn:b.fn_name,path:f,ctx:b});0==f.length?a=c:("undefined"==typeof a&&(a={}),r.A(a,f,c));return a},insert_input:function(b,a,c,f){return b.actions.get("insert_arg")(b,
47c,a,f)},insert_value:function(b,a,c,f,d){a=b.node.value;""!==a&&"undefined"!=typeof d&&(a=b.actions.get("call_global_get")(b,a,d));return b.actions.get("insert_arg")(b,c,a,f)},array_to_list:function(b,a){if(!Array.isArray(a))throw new F("Input must be an array.",{fn_name:b.fn_name,data:a,ctx:b});for(var c=0;c<a.length;c++)b.mem_job.Ya(a[c])},list_push:function(){var b=Array.prototype.slice.call(arguments),a=b[0];b.splice(2,0,"job","list_push");a.actions.get("call_mem_fn").apply(null,b)},list_unshift:function(){var b=
48Array.prototype.slice.call(arguments),a=b[0];b.splice(2,0,"job","list_unshift");return a.actions.get("call_mem_fn").apply(null,b)},heap_get:function(b,a){var c=Array.prototype.slice.call(arguments);b=c[0];"undefined"==typeof a&&c.push(a);c.splice(2,0,"job","heap_get");return b.actions.get("call_mem_get").apply(null,c)},heap_set:function(b,a,c){var f=Array.prototype.slice.call(arguments);b=f[0];f.splice(2,0,"job","heap_set");b.actions.get("call_mem_fn").apply(null,f)},node_obj:function(b){return b.node},
49node_property_get:function(b,a,c){"undefined"==typeof a&&(a=[]);if(!Array.isArray(a))throw new F("Action argument must be an array.",{fn_name:b.fn_name,path:a,ctx:b});return r.c(b.node,a,c)},node_property_set:function(b,a,c){"undefined"==typeof c&&(c=[]);if(!Array.isArray(c))throw new F("Action argument must be an array.",{fn_name:b.fn_name,path:c,ctx:b});r.A(b.node,c,a)},node_attr_get:function(b,a,c){if("undefined"==typeof a)throw new F("Action is missing an argument.",{fn_n
49ame:b.fn_name,missing:"name",
50ctx:b});b=b.node.getAttribute(a);null===b&&(b=c);return b},node_attr_set:function(b,a,c){if("undefined"==typeof c)throw new F("Action is missing an argument.",{fn_name:b.fn_name,missing:"name",ctx:b});b.node.setAttribute(c,a)},node_option_attr_get:function(b){var a=b.node;option=a[a.selectedIndex];b=b.attr_name;var c=option.getAttribute(b);if(null==c)throw new F("Node has is missing an attribute.",{node:a,attribute:b});return c},publish:function(b,a,c,f){if("undefined"==typeof a)throw new F("Action is missing an argument.",
51{fn_name:b.fn_name,missing:"topic",ctx:b});if("string"!==typeof a&&"number"!==typeof a)throw new F("Action argument has invalid type.",{fn_name:b.fn_name,topic:a,type:typeof a,ctx:b});b.broker.N(a,c,f)},publish_arg:function(b,a,c,f,d){b.actions.get("publish")(b,c,f,d)},publish_input:function(b,a,c,f){b.actions.get("publish")(b,c,a,f)},topic_opt:function(b,a,c){if("undefined"==typeof a)throw new F("Action is missing an argument.",{fn_name:b.fn_name,missing:"topic",ctx:b});if("string"!==typeof a&&"number"!==
52typeof a)throw new F("Action argument has invalid type.",{fn_name:b.fn_name,topic:a,type:typeof a,ctx:b});if("undefined"!=typeof c&&"undefined"!=typeof c.gc_trigger)for(var f=c.gc_trigger.trim().split(/s*[|]s*/),d=c.gc_trigger=0;d<f.length;d++)c.gc_trigger|=b.broker.GC_TRIGGER[f[d]];b.broker.P(a,c)},dispatch_event_name:function(b,a,c){if("undefined"==typeof a)throw new F("Action is missing an argument.",{fn_n
52ame:b.fn_name,missing:"name",ctx:b});if("function"===typeof Event)var f=new Event(a);else f=
53document.createEvent("Event"),f.initEvent(a,!0,!0);b.node.dispatchEvent(f,c)},computed_style_get:function(b,a,c){if("undefined"==typeof a)throw new F("Action is missing an argument.",{fn:b.fn_name,missing:"properties",ctx:b});b=b.actions.get("computed_styles_get")(b,[a],c);return b=b[a]},computed_styles_get:function(b,a,c){if("undefined"==typeof a)throw new F("Action is missing an argument.",{fn:b.fn_name,missing:"properties",ctx:b});if(!Array.isArray(a))throw new F("Action argument must be an array.",
54{fn:b.fn_name,properties:a,ctx:b});if("undefined"==typeof c)var f=b.node;else if(f=document.getElementById(c),null===f)throw new F("No element exists matching id.",{fn:b.fn_name,node_id:c,ctx:b});b=window.getComputedStyle(f);c={};for(f=0;f<a.length;f++)c[a[f]]=b.getPropertyValue(a[f]);return c},do_job:function(b,a,c){if(!Array.isArray(c))throw new F("Argument must be an array.",{fn:b.fn_name,job:c,ctx:b});var f;b.mem_job.set(f);for(var d=0;d<c.length;d++){f=c[d];if(!Array.isArray(f))throw new F("Argument must be an array.",
55{fn:b.fn_name,task:c[d],ctx:b});if(0==f.length)throw new F("Argument must be an array with entries.",{fn:b.fn_name,task:c[d],ctx:b});var k=f.shift();b.fn_name=k;if(!b.actions.l(k))throw new F("Action does not exist.",{fn:b.fn_name,action:k,ctx:b});f.unshift(b.mem_job.get());f.unshift(b);f=b.actions.get(k).apply(null,f);"undefined"!=typeof f&&b.mem_job.set(f)}b.mem_job.set(a);return f},"if":function(){var b=Array.prototype.slice.call(arguments),a=b[0],c=b[1];if(0!=b.length%2)throw new F("Must be an even number of job arguments.",
56{fn:a.fn_name,arguments:b,ctx:a});for(var f=2;f<b.length;f+=2)if(a.actions.get("do_job")(a,c,b[f]))return a.actions.get("do_job")(a,c,b[f+1])},"true":function(){return!0},"false":function(){return!1},undefined:function(){},stop:function(){throw new F(null,null,{output:!1});},checked:function(b){return!0===b.node.checked},not:function(b,a){return!a},node_value_is_empty:function(b){return""===b.node.value}},c;for(c in a)this.actions.set(c,a[c])};return d}();
57function F(d,a,c){"undefined"==typeof c&&(c={});!1!==c.output&&(this.msg=d,this.data=a,this.error=Error(),console.error(d,a))}var H=new G;window.addEventListener("DOMContentLoaded",function(){H.na(".xxdf_dom_listener_js")});window.XXDF_DOM_Listener=H;window.XXDF_DOM_Listener_Widget=G;window.XXDF_DOM_Listener_Exception=F;G.prototype.activate_selectors=G.prototype.na;G.prototype.activate_node=G.prototype.i;var I=function(){function d(){this.ja={};(function(a){"undefined"!=typeof H&&H.actions.set("xxdf_template_msg_render_node",function(c,b,e){a.wa(c.node,b.msg,e)})})(this)}d.lc=function(){var a;"undefined"==typeof a&&(a="data-"+r.mb(".xxdf_template_js"));for(var c=document.querySelectorAll(".xxdf_template_js"),b=0;b<c.length;b++)(new d).kc(c[b],a)};d.prototype.kc=function(a,c){"undefined"==typeof c&&(c="data-xxdf_template_js");var b=a.getAttribute(c);null===b?console.warn("Missing attribute.",{node:a,
58attribute:c}):(b=JSON.parse(b),this.wa(a,void 0,b))};d.prototype.wa=function(a,c,b){"undefined"==typeof c&&(c={});if("undefined"==typeof b.template_id)return console.warn("Missing option.",{node:a,option:"template_id",opt:b}),!1;var e=b.template_id,g=this.Ja(e);if(!1===g)return console.error("Node referenced by id does not exist.",{id:e}),!1;var f=g.textContent,g=g.getAttribute("type");if(null===g)return console.error("Node is missing an attribute.",{attribute:"type",node_id:e}),!1;if("undefined"!=
59typeof b.data_id){c=this.Ja(b.data_id);if(!1===c)return console.error("Property has an invalid value.",{node:a,attribute:attr_name,property:"data_id"}),!1;c=JSON.parse(c.textContent)}"undefined"==typeof b.property&&(b.property="innerHTML");this.cb(e,g,f,c,function(c){a[b.property]=c})};d.prototype.cb=function(a,c,b,e,g){switch(c){case "x-tmpl-mustache":g(Mustache.render(b,e));break;case "text/x-handlebars-template":c=a?!1:this.Na(a);c||(c=Handlebars.compile(b),a&&this.Oa(a,c));g(c(e));break;case "text/dust":c=
60a?!1:this.Na(a);c||(b=dust.compile(b),c=dust.loadSource(b),a&&this.Oa(a,c));dust.render(c,e,function(b,a){g(a)});break;default:console.error("Unrecognized template type.",{template_type:c})}};d.prototype.Ja=function(a){return(a=document.getElementById(a))?a:!1};d.prototype.Na=function(a){return"undefined"!=typeof this.ja[a]?this.ja[a]:!1};d.prototype.Oa=function(a,c){this.ja[a]=c};return d}(),J=new I;window.addEventListener("DOMContentLoaded",function(){try{DustIntl.registerWith(dust)}catch(d){}I.lc()});
61window.XXDF_Template=J;window.XXDF_Template_Widget=I;I.prototype.render_templates=I.prototype.Gc;I.prototype.render_node=I.prototype.wa;I.prototype.render_txt=I.prototype.Hc;var K=function(){function d(){}var a;d.prototype.V=function(){if("undefined"!=typeof Handlebars){a=this;for(var c in this.helpers)Handlebars.registerHelper(c,this.helpers[c])}};d.prototype.helpers={};d.prototype.helpers.toarray=function(){return Array.prototype.slice.call(arguments,0,-1)};d.prototype.helpers["true"]=function(c){return a.value(!0,this,c)};d.prototype.helpers["false"]=function(c){return a.value(!1,this,c)};d.prototype.helpers.undefined=function(c){return a.value(void 0,this,c)};d.prototype.helpers.id=
62function(c,b,e){return a.value(c===b,this,e)};d.prototype.helpers.nid=function(c,b,e){return a.value(c!==b,this,e)};d.prototype.helpers.eq=function(c,b,e){return a.value(c==b,this,e)};d.prototype.helpers.neq=function(c,b,e){return a.value(c!=b,this,e)};d.prototype.helpers.gt=function(c,b,e){return a.value(c>b,this,e)};d.prototype.helpers.gte=function(c,b,e){return a.value(c>=b,this,e)};d.prototype.helpers.lt=function(c,b,e){return a.value(c<b,this,e)};d.prototype.helpers.lte=function(c,b,e){return a.value(c<=
63b,this,e)};d.prototype.helpers.and=function(){for(var c=arguments.length-1,b=arguments[c],e=!0,g=0;g<c;g++)if(!arguments[g]){e=!1;break}return a.value(e,this,b)};d.prototype.helpers.or=function(){for(var c=arguments.length-1,b=arguments[c],e=!1,g=0;g<c;g++)if(arguments[g]){e=!0;break}return a.value(e,this,b)};d.prototype.helpers.xor=function(){for(var c=arguments.length-1,b=arguments[c],e=!1,g=0;g<c;g++)e=(e||arguments[g])&&!(e&&arguments[g]);return a.value(e,this,b)};d.prototype.helpers.andb=function(){for(var a=
64arguments.length-1,b=arguments[0],e=1;e<a;e++)b&=arguments[e];return b};d.prototype.helpers.orb=function(){for(var a=arguments.length-1,b=arguments[0],e=1;e<a;e++)b|=arguments[e];return b};d.prototype.helpers.xorb=function(){for(var a=arguments.length-1,b=arguments[0],e=1;e<a;e++)b^=arguments[e];return b};d.prototype.helpers.not=function(c,b){return a.value(!c,this,b)};d.prototype.helpers.notb=function(c,b){return a.value(~c,this,b)};d.prototype.helpers.shl=function(c,b,e){return a.value(c<<b,this,
65e)};d.prototype.helpers.shr=function(c,b,e){return a.value(c>>>b,this,e)};d.prototype.helpers.sar=function(c,b,e){return a.value(c>>b,this,e)};d.prototype.helpers.add=function(){for(var a=arguments.length-1,b=0,e=0;e<a;e++)b+=arguments[e];return b};d.prototype.helpers.mul=function(){for(var a=arguments.length-1,b=1,e=0;e<a;e++)b*=arguments[e];return b};d.prototype.helpers.exp=function(){for(var a=arguments.length-1,b=arguments[0],e=1;e<a;e++)b=Math.pow(b,arguments[e]);return b};d.prototype.helpers.mod=
66function(){for(var a=arguments.length-1,b=arguments[0],e=1;e<a;e++)b%=arguments[e];return b};d.prototype.helpers.concat=function(){for(var a=arguments.length-1,b="",e=arguments[0],g=1;g<a;g++)b+=arguments[g]+e;return b.slice(0,-e.length)};d.prototype.helpers.date=function(){for(var a=arguments.length-1,b=[Date],e=0;e<a;e++)b.push(arguments[e]);return new (Date.bind.apply(Date,b))};d.prototype.helpers.date_add=function(){for(var a=arguments.length-1,b=arguments[0],e=1;e<a;e+=2)switch(unit=arguments[e+
670],val=arguments[e+1],unit){case "y":b.setFullYear(b.getFullYear()+val);break;case "M":b.setMonth(b.getMonth()+val);break;case "w":b.setDate(b.getDate()+7*val);break;case "d":b.setDate(b.getDate()+val);break;case "h":b.setHours(b.getHours()+val);break;case "m":b.setMinutes(b.getMinutes()+val);break;case "s":b.setSeconds(b.getSeconds()+val);break;case "ms":b.setMilliseconds(b.getMilliseconds()+val);break;default:console.warn("Invalid unit.",{unit:unit})}return b};d.prototype.helpers.date_part=function(a,
68b){switch(b){case "y":ret=a.getFullYear();break;case "M":ret=a.getMonth();break;case "d":ret=a.getDate();break;case "h":ret=a.getHours();break;case "m":ret=a.getMinutes();break;case "s":ret=a.getSeconds();break;case "ms":ret=a.getMilliseconds();break;default:console.warn("Invalid unit.",{unit:b})}return ret};d.prototype.helpers.intl_date_format=function(){var a=arguments.length-1,b=arguments[a],e=1<=a?arguments[0]:void 0,a=2<=a?arguments[1]:void 0;if(e instanceof Date)return b="undefined"!=typeof b.hash?
69b.hash:{},(new Intl.DateTimeFormat(a,b)).format(e)};d.prototype.helpers.intl_number_format=function(){var a=arguments.length-1,b=arguments[a],e=1<=a?arguments[0]:void 0,a=2<=a?arguments[1]:void 0;if("number"==typeof e)return b="undefined"!=typeof b.hash?b.hash:{},(new Intl.NumberFormat(a,b)).format(e)};d.prototype.helpers.call_global_get=function(){var c=Array.prototype.slice.call(arguments),b=(new Function("return this"))();c.unshift(b);return a.helpers.call_relative_get.apply(null,c)};d.prototype.helpers.call_global_new_get=
70function(){var c=Array.prototype.slice.call(arguments),b=(new Function("return this"))();c.unshift(b);return a.helpers.call_relative_new_get.apply(null,c)};d.prototype.helpers.call_relative_get=function(){var c=Array.prototype.slice.call(arguments);c.splice(2,0,!1);return a.helpers.call_relative_internal_get.apply(null,c)};d.prototype.helpers.call_relative_new_get=function(){var c=Array.prototype.slice.call(arguments);c.splice(2,0,!0);return a.helpers.call_relative_internal_get.apply(null,c)};d.prototype.helpers.call_relative_internal_get=
71function(){var a=Array.prototype.slice.call(arguments);if("undefined"==typeof a[0])console.warn("Missing argument.",{fn:"call_relative_fn",arguments:a,missing:"base"});else if("undefined"==typeof a[1])console.warn("Missing argument.",{fn:"call_relative_fn",arguments:a,missing:"fn_rel_path"});else if("undefined"==typeof a[2])console.warn("Missing argument.",{fn:"call_relative_fn",arguments:a,missing:"construct"});else{var b=a[0],e=a[1],g=a[2];"string"==typeof e&&(e=e.split("."));if(Array.isArray(e)){var f=
72r.c(b,e);if("undefined"==typeof f)console.warn("Function does not exist",{fn:"call_relative_fn",arguments:a,fn_rel_path:e});else if("function"!=typeof f)console.warn("Path does not define a function.",{fn:"call_relative_fn",arguments:a,fn_rel_path:e,type:typeof f});else return a.shift(),a.shift(),a.shift(),g?(a.unshift(null),a=new (Function.prototype.bind.apply(f,a))):a=f.apply(r.c(b,Array.prototype.slice.call(e,0,-1)),a),a}else console.warn("Argument must be an array.",{fn:"call_relative_fn",arguments:a,
73fn_rel_path:e})}};d.prototype.value=function(a,b,e){return"undefined"==typeof e.fn?a:a?e.fn(b):e.inverse(b)};return d}();window.addEventListener("DOMContentLoaded",function(){(new K).V()});window.XXDF_Handlebars_Helpers_Widget=K;K.prototype.init=K.prototype.V;var M=function(){function d(){}d.prototype.run=function(a){a=this.yb(a);this.fb(a)};d.prototype.yb=function(a){for(var c={},b,e=0;e<a.length;e++){var g=a[e];if("__query_string__"==g)b=r.ia(location.search);else for(var g=document.getElementsByClassName(g),f=0;f<g.length;f++)switch(g[f].type){case "application/x-www-form-urlencoded":b=r.ia(g[f].textContent);break;default:b={},console.warn("Unrecognized form type.",{type:g[f].type,node:g[f]})}for(var d in b)c[d]=b[d]}return c};d.prototype.fb=function(a){for(var c in a){var b=
74document.getElementsByName(c),e=Array.isArray(a[c]),g=b.length;e&&(g=Math.min(g,a[c].length));for(var d=0;d<g;d++){for(var h=b[d],k=e?a[c][d]:a[c],m=0;m<b.length;m++)b[m].value===k&&"radio"==b[m].type&&(b[m].checked=!0);switch(h.type){case "checkbox":h.checked=!0;break;case "radio":break;default:h.value=k}"SELECT"==h.nodeName&&-1==h.selectedIndex&&console.warn("Select tag does not contain an option matching the value.",{name:c,value:k,node:h})}}};return d}(),N=new M;
75window.addEventListener("DOMContentLoaded",function(){N.run(["xxdf_query_form_fill_js"])});window.XXDF_Query_Form_Fill=N;window.XXDF_Query_Form_Fill_Widget=M;M.prototype.run=M.prototype.run;M.prototype.set_node_values=M.prototype.fb;var R=function(){function d(){this.f=this.node=null;this.a=E;this.map=this.F=null;this.Fa=!1;this.Ac={};this.node=null;this.pins=[];this.Ha=[];this.xa=null;this.cmd_fn=new z;this.marker_color="#306EAC";this.dflt_fitbounds=void 0;this.topics={ddf_sub:null,cmd_sub:null,event_pub:null};this.pin_query={topic_prefix:null,template_id:null,limit:null,sort:null,fields:null};this.B={id:null,active_class:null}}d.j=function(a,c,b){"undefined"==typeof c&&(c="data-"+a);var e=[];a=document.getElementsByClassName(a);
76for(var g=0;g<a.length;g++){var f=new d;f.i(a[g],c,b);e.push(f)}return e};d.prototype.i=function(a,c,b){this.node=a;this.f=c;"undefined"==typeof b&&(b=this.a);var e=a.getAttribute(c);if(null===e)console.warn("Missing attribute.",{attribute:c,node:a});else if(e=JSON.parse(e),"undefined"==typeof e.topics)console.warn("Missing property.",{attribute:c,property:"topics",node:a});else{var g=e.topics,d;for(d in this.topics)if("undefined"!=typeof g[d]){if(!Array.isArray(g[d])){console.warn("Each property value must be an array.",
77{attribute:c,property:"topics",node:a});return}this.topics[d]=g[d]}this.M(this.node);d=this.ha(this.map);(function(a){for(var c=0;c<g.ddf_sub.length;c++)b.subscribe(g.ddf_sub[c],function(b,c){a.zb(c)})})(this);(function(a){for(var c=0;c<g.cmd_sub.length;c++)b.subscribe(g.cmd_sub[c],function(b,c){a.wb(b,c)})})(this);if("undefined"!=typeof e.pin_query){var h=e.pin_query;if("undefined"==typeof h.topic_prefix){console.warn("Missing property.",{attribute:c,property:"pin_query.topic_prefix",node:a});return}this.pin_query.topic_prefix=
78h.topic_prefix;"undefined"!=typeof h.limit&&(this.pin_query.limit=h.limit);"undefined"!=typeof h.sort&&(this.pin_query.sort=h.sort);"undefined"!=typeof h.fields&&(this.pin_query.fields=h.fields);if("undefined"==typeof h.template_id){console.warn("Missing property.",{attribute:c,property:"pin_query.template_id",node:a});return}this.pin_query.template_id=h.template_id}h="undefined"!=typeof e.spinner?e.spinner:null;
78if(null!==h){if("undefined"==typeof h.id){console.warn("Missing property.",{attribute:c,
79property:"spinner.id",node:a});return}if("undefined"==typeof h.active_class){console.warn("Missing property.",{attribute:c,property:"spinner.active_class",node:a});return}this.B.id=h.id;this.B.active_class=h.active_class}var k=this.map,m=this.topics.event_pub;a=this.ha(this.map);"undefined"!=typeof e.dflt_fitbounds&&d[0]==a[0]&&d[1]==a[1]&&d[2]==a[2]&&d[3]==a[3]&&(e=e.dflt_fitbounds,this.map.fitBounds([[e[1],e[0]],[e[3],e[2]]],{animate:!1}));this.La(k,m,{sync:!0});e=function(b){return r.ra(function(){b.La(k,
80m)},600)}(this);k.on("move",e);k.on("moveend",e);(function(b){k.on("zoomstart",function(){b.map.closePopup()})})(this);this.Fa=!0}};d.prototype.zb=function(a){var c=a.msg;-1!=c.request.request_type.indexOf("req_pins")&&(this.xa=a,this.wc(c.reply.pins))};d.prototype.wb=function(a,c){var b={topic:a,packet:c,map:this.map,map_ready:this.Fa,layers:this.Ac,cmd:null},e=c.msg;if(Array.isArray(e))for(var d=0;d<e.length;d++){var f=e[d];if(!Array.isArray(f)){console.warn("Command must be an array.",{command:f,
81index:d,message:e});break}if(0==f.length){console.warn("Command must be an array of length at least 1.",{command:f,index:d,message:e});break}var h=f.shift();if(!this.cmd_fn.l(h)){console.warn("Unknown map command.",{cmd:h,index:d,message:e});break}b.cmd=h;f.unshift(b);this.cmd_fn.get(h).apply(null,f)}else console.warn("Message must be an array.",{message:e})};d.prototype.M=function(a){var c=a.getAttribute(this.f);if(null===c)console.warn("Missing attribute.",{attribute:this.f,node:a});else{var c=
82JSON.parse(c),b="undefined"!=typeof c.leaflet_options?c.leaflet_options:{};"undefined"==typeof b.center&&(b.center=[0,0]);"undefined"==typeof b.zoom&&(b.zoom=0);c="undefined"!=typeof c.map_features?c.map_features:{};this.F=new O;this.F.u(c).M(a,b);this.map=this.F.map;this.Sb()}};d.prototype.Sb=function(){var a={fitbounds:function(b,a,c){Array.isArray(a)&&4==a.length?(b.map_ready||(c={animate:!1}),b.map.fitBounds([[a[1],a[0]],[a[3],a[2]]],c)):console.warn("Argument must be an array of length 4.",{cmd:b.cmd,
83argument:a,ctx:b})},layer_add_geojson:function(b,a,c){a=L.geoJSON(a);if("undefined"!=typeof c){if("undefined"!=typeof b.layers[c]){console.warn("Layer id already exists.",{cmd:b.cmd,id:c,ctx:b});return}b.layers[c]=a}b.map.addLayer(a)},layer_del_geojson:function(b,a){if("undefined"==typeof a)for(a in b.layers)b.map.removeLayer(b.layers[a]),delete b.layers[a];else"undefined"==typeof b.layers[a]?console.warn("Layer id does not exist.",{cmd:b.cmd,id:a,ctx:b}):(b.map.removeLayer(b.layers[a]),delete b.layers[a])},
84layer_fitbounds:function(b,a){"undefined"==typeof a?console.warn("Missing argument.",{cmd:b.cmd,argument:"id",ctx:b}):"undefined"==typeof b.layers[a]?console.warn("Layer id does not exist.",{cmd:b.cmd,id:a,ctx:b}):b.map.fitBounds(b.layers[a].getBounds())}},c;for(c in a)this.cmd_fn.set(c,a[c])};d.prototype.wc=function(a){for(var c=this.map,b=0;b<this.pins.length;b++)this.pins[b].marker.removeFrom(this.map);this.pins=[];for(var b=this.map.getSize().x,e=this.map.getSize().y,e={maxWidth:Math.min(.9*b,
85b-66),maxHeight:Math.min(.9*e,e-78),autoPanPadding:[20,20]},b=0;b<a.length;b++){var d=a[b],f=L.marker([d.point[1],d.point[0]],{opacity:.8}),h=d.count;if(1<h){var k=Math.min(30,12+2*h/10),m=2*k,l="",l=l+('<svg height="'+m+'" width="'+m+'" xmlns="http://www.w3.org/2000/svg">'),l=l+('<circle cx="'+k+'" cy="'+k+'" r="'+k+'" fill="'+this.marker_color+'" />'),l=l+('<text x="50%" y="50%" dy="0.4em" text-anchor="middle" font-size="'+Math.min(16,3*k/4)+'" font-family="sans-serif" font-weight="bold" fill="#ffffff">'+
86h+"</text>"),l=l+"</svg>",h=L.icon({iconUrl:"data:image/svg+xml;charset=UTF-8;base64,"+btoa(l)});f.setIcon(h)}d={Fc:b,fa:d,marker:f,J:null,data:[]};f.bindPopup(L.responsivePopup(e));f.off("click");(function(b,a){f.on("click",function(){b.Tb(a)})})(this,b);this.pins.push(d);f.addTo(c)}};d.prototype.Tb=function(a){var c=this.pins[a];if(5<c.fa.count)this.map.flyTo(this.pins[a].marker.getLatLng(),this.map.getZoom()+1);else if(null===c.J){c.J=0;var b=this.clone(this.xa.msg.request),e=this.vb(c.fa.bbox,
87this.ha(this.map));null!==e&&(r.A(b,["property_meta","limit"],this.Ga(c)),null!==this.pin_query.sort&&r.A(b,["property_meta","sort"],this.pin_query.sort),null!==this.pin_query.fields&&r.A(b,["property_meta","fields"],this.pin_query.fields),r.A(b,["property_meta","offset"],c.J),r.A(b,["property_filter","Address.GeoJSONPoint","bbox"],e),this.W(a,[["set",[],b]]))}else this.W(a,[["run"]])};d.prototype.Ga=function(a){var c=null!==this.pin_query.limit?this.pin_query.limit:this.xa.msg.request.property_meta.limit;
88return c=Math.min(a.J+c,a.fa.count)-a.J};d.prototype.W=function(a,c){var b=4<=String(a).length?a:Array(4-String(a).length+1).join(0)+a,e=[this.pin_query.topic_prefix+"_sub_"+b],d=[this.pin_query.topic_prefix+"_pub_"+b];if("undefined"==typeof this.Ha[a]){b={max_size:1,gc_trigger:this.a.GC_PST_STORE};this.a.P(e,b);this.a.P(d,b);b={requests:["req_properties"],topics_sub:[e],topics_pub:[d],query_auto:!0,spinner:{id:this.B.id,active_class:this.B.active_class}};null===this.B.id&&delete b.spinner;var f=
89this.Ha[a]=new Q;f.u(b);this.a.N(e,c);f.Wa();(function(b){b.a.subscribe(d,function(c,e){b.ec(a,e)})})(this)}else this.a.N(e,c)};d.prototype.ec=function(a,c){var b=this.pin_query.template_id,e=document.getElementById(b);if(null===e)console.warn("No element exists with that id.",{attribute:this.f,id:b,node:this.node});else{var d=e.getAttribute("type"),f=e.textContent;this.pins[a].J=c.msg.request.property_meta.offset;c=r.c(c,["msg","reply","properties"]);(function(e){J.cb(b,d,f,c,function(b){e.fc(a,
90b)})})(this)}};d.prototype.fc=function(a,c){var b=document.createElement("div");b.innerHTML=c;var e=this.pins[a].marker;e.getPopup().setContent(b).update();e.getPopup().isOpen()||e.openPopup();var d=b.getElementsByClassName("xxdf_ddf_map_pin_detail_page_first");(function(b){for(var c=0;c<d.length;c++)d[c].addEventListener("click",function(){b.W(a,[["set",["property_meta","offset"],0]])})})(this);d=b.getElementsByClassName("xxdf_ddf_map_pin_detail_page_prev");(function(b){for(var c=0;c<d.length;c++)d[c].addEventListener("click",
91function(){b.W(a,[["page_add",-1]])})})(this);d=b.getElementsByClassName("xxdf_ddf_map_pin_detail_page_next");(function(b){for(var c=0;c<d.length;c++)d[c].addEventListener("click",function(){b.pins[a].J+b.Ga(b.pins[a])>b.pins[a].fa.count-1||b.W(a,[["page_add",1]])})})(this)};d.prototype.La=function(a,c,b){a=this.ha(a);var e=window.getComputedStyle(this.node),d=e.getPropertyValue("height").replace("px",""),e=e.getPropertyValue("width").replace("px","");this.a.N(c,[{type:"viewport",bbox:a,pxh:d,pxw:e}],
92b)};d.prototype.ha=function(a){a=a.getBounds();return bbox=[a.getWest(),a.getSouth(),a.getEast(),a.getNorth()]};d.prototype.vb=function(a,c){var b=[],e=a[0],d=a[1],f=a[2],h=a[3],k=c[0],m=c[1],l=c[2],p=c[3];e>f&&(f+=180);k>l&&(l+=180);if(f<k||l<e||h<m||p<d)return null;b[0]=Math.max(e,k);b[1]=Math.max(d,m);b[2]=Math.min(f,l);b[3]=Math.min(h,p);180<b[2]&&(b[2]-=180);return b};d.prototype.clone=function(a){return JSON.parse(JSON.stringify(a),r.X)};return d}();
93window.addEventListener("DOMContentLoaded",function(){R.j("xxdf_ddf_map_js")});window.XXDF_DDF_Map_Widget=R;R.activate_class=R.j;R.prototype.activate_node=R.prototype.i;var S=function(){function d(){this.f=this.node=null;this.a=E;this.map=this.F=null}d.j=function(a,c,b){"undefined"==typeof c&&(c="data-"+a);var e=[];a=document.getElementsByClassName(a);for(var g=0;g<a.length;g++){var f=new d;f.i(a[g],c,b);e.push(f)}return e};d.prototype.i=function(a,c,b){this.node=a;this.f=c;"undefined"==typeof b?b=this.a:this.a=b;b=a.getAttribute(c);if(null===b)console.warn("Missing attribute.",{attribute:c,node:a});else if(b=JSON.parse(b),"undefined"==typeof b.topic)console.warn("Missing property.",
94{attribute:c,property:"topic",node:a});else{var e=b.topic;(function(b){b.a.subscribe(e,function(a,c){b.M(b.node,r.c(c,["msg","Address","GeoJSONPoint"],[0,0]))},{count:1})})(this)}};d.prototype.M=function(a,c){var b=a.getAttribute(this.f);if(null===b)console.warn("Missing attribute.",{attribute:this.f,node:a});else{var b=JSON.parse(b),e="undefined"!=typeof b.leaflet_options?b.leaflet_options:{};e.center=[c[1],c[0]];"undefined"==typeof e.zoom&&(e.zoom=15);b="undefined"!=typeof b.map_features?b.map_features:
95{};this.F=new O;this.F.u(b).M(a,e);this.map=this.F.map;L.marker([c[1],c[0]],{opacity:.8}).addTo(this.F.map)}};return d}();XXDF_DDF_Details_Map=new S;window.addEventListener("DOMContentLoaded",function(){S.j("xxdf_ddf_details_map_js")});window.XXDF_DDF_Details_Map=XXDF_DDF_Details_Map;window.XXDF_DDF_Details_Map_Widget=S;S.prototype.activate=S.prototype.ma;var T=function(){function d(){this.url="https://analytics.crea.ca/LogEvents.svc/LogEvents";this.Ia={ListingID:null,DestinationID:null,EventType:null,UUID:null,IP:null,LanguageId:null,A
95ctiveOpenHouse:null};(function(a){"undefined"!=typeof H&&H.actions.set("ddf_result_to_ddf_analytics",function(c,b,e){a.Ta(0,b,e)})})(this)}d.prototype.Ta=function(a,c,b){b.ListingID=c.msg.ID;this.Sa(b)};d.prototype.Sa=function(a){a=this.Nb(a);this.run(a)};d.prototype.Nb=function(a){var c={},b;for(b in this.Ia)"undefined"!=
96typeof a[b]&&(c[b]=a[b]);for(b in a)"undefined"==typeof this.Ia[b]&&console.warn("Invalid query parameter.",{parameter:b,value:a[b]});return c};d.prototype.run=function(a){var c=new XMLHttpRequest;(function(b){c.onreadystatechange=function(){b.Ca(c)}})(this);c.open("GET",this.ba(a),!0);c.send();console.log(this.ba(a))};d.prototype.ba=function(a){return this.url+r.Za(a)};d.prototype.Ca=function(a){4==a.readyState&&200!=a.status&&console.warn("Failed XMLHTTP request.",a)};return d}(),U;
97window.addEventListener("DOMContentLoaded",function(){U=new T});window.XXDF_DDF_Analytics=U;window.XXDF_DDF_Analytics_Widget=T;T.prototype.ddf_result_to_ddf_analytics=T.prototype.Ta;T.prototype.ddf_analytics=T.prototype.Sa;var Q=function(){function d(){this.a=E;this.aa=[];this.ya=this.R=null;this.bb=!1;this.B={id:null,active_class:null};this.url="https://api.ezddf.com/v2/index.php";this.jc={svc:"DDF_Data","content-type":"application/json"};this.gc=JSON.stringify;this.Ib=function(a){try{var c=JSON.parse(a,r.X)}catch(b){console.warn("Invalid JSON",a)}return c};this.f=this.node=null;this.K=this.ab=this.$=-1;this.o={};this.I={};this.total=null;this.cache=y.ga();this.fetch_ms_delay=100;this.Ua=function(a){return r.ra(function(c,
98b){a.Kb(c,b)},a.fetch_ms_delay)}(this)}d.j=function(a,c,b){"undefined"==typeof c&&(c="data-"+a);this.f=c;var e=[];a=document.getElementsByClassName(a);for(var g=0;g<a.length;g++){var f=new d;f.i(a[g],c,b);e.push(f)}return e};d.prototype.i=function(a,c,b){this.node=a;this.f=c;"undefined"==typeof b||(this.a=b);this.o=a.textContent;this.o=JSON.parse(this.o);b=a.getAttribute(c);null===b?console.warn("Missing attribute.",{attribute:c,node:a}):(b=JSON.parse(b),"undefined"==typeof b.topics_sub?console.warn("Missing property.",
99{attribute:c,property:"topics_sub",node:a}):"undefined"==typeof b.topics_pub?console.warn("Missing property.",{attribute:c,property:"topics_pub",node:a}):"undefined"==typeof b.requests?console.warn("Missing property.",{attribute:c,property:"requests",node:a}):(this.u(b),this.Wa()))};d.prototype.u=function(a){if("undefined"==typeof a)return console.warn("Missing argument.",{value:"config"}),!1;if("undefined"!=typeof a.requests&&!this.oc(a.requests))return console.warn("Invalid value.",{requests:a.requests}),
100!1;if("undefined"!=typeof a.topics_sub&&!this.rc(a.topics_sub))return console.warn("Invalid value.",{requests:a.topics_sub}),!1;if("undefined"!=typeof a.topics_pub&&!this.qc(a.topics_pub))return console.warn("Invalid value.",{requests:a.topics_pub}),!1;if("undefined"!=typeof a.query_auto&&!this.gb(a.query_auto))return console.warn("Invalid value.",{requests:a.query_auto}),!1;if("undefined"!=typeof a.spinner&&!this.pc(a.spinner))return console.warn("Invalid value.",{requests:a.spinner}),!1};d.prototype.oc=
101function(a){if("undefined"==typeof a)return console.warn("Missing value.",{value:"requests"}),!1;if(!Array.isArray(a))return console.warn("Value must be an array.",{requests:a}),!1;for(var c=0;c<a.length;c++)if(-1==["req_properties","req_pins"].indexOf(a[c]))return console.warn("Invalid value.",{value:"requests",index:c,value:a[c],obj:a}),!1;this.aa=a;return!0};d.prototype.rc=function(a){if("undefined"==typeof a)return console.warn("Missing value.",{value:"topics"}),!1;if(!Array.isArray(a))return console.warn("Value must be an array.",
102{topics_sub:a}),!1;this.R=a;return!0};d.prototype.qc=function(a){if("undefined"==typeof a)return console.warn("Missing value.",{value:"topics"}),!1;if(!Array.isArray(a))return console.warn("Value must be an array.",{topics_pub:a}),!1;this.ya=a;return!0};d.prototype.gb=function(a){if("undefined"==typeof a)return console.warn("Missing value.",{value:"query_auto"}),!1;if("boolean"!=typeof a)return console.warn("Value must be a boolean.",{val:val}),!1;this.bb=a;return!0};
102d.prototype.pc=function(a){if("undefined"==
103typeof a)return console.warn("Missing value.",{value:"spinner"}),!1;if("undefined"==typeof a.id)return console.warn("Missing property.",{property:"spinner.id"}),!1;if("undefined"==typeof a.active_class)return console.warn("Missing property.",{property:"spinner.active_class"}),!1;this.B.id=a.id;this.B.active_class=a.active_class;return!0};d.prototype.Wa=function(){(function(a){for(var c=0;c<a.R.length;c++)a.a.subscribe(a.R[c],function(b,c){a.lb(a.o,c)},{count:-1}),a.a.P(a.R[c],{max_size:1,gc_trigger:a.a.GC_PST_STORE})})(this);
104this.K=0;this.o.request_type=[];-1!=this.aa.indexOf("req_properties")&&this.o.request_type.push("req_properties");-1!=this.aa.indexOf("req_pins")&&this.o.request_type.push("req_pins");this.Ua(this.o,this.ya);(function(a){for(var c=0;c<a.R.length;c++)a.a.subscribe(a.R[c],function(b,c){a.lb(a.o,c)&&a.Ua(a.o,a.ya)})})(this)};d.prototype.lb=function(a,c){var b=c.msg;if(Array.isArray(b)){for(var e=!1,d=!1,f=!1,h=!1,k=[],m=0;m<b.length;m++){var l=b[m],p,q,B={};if(Array.isArray(l))if(0==l.length)console.warn("Message must be an array with entries.",
105{message:l});else{var x=l[0];switch(x){case "add":if("undefined"==typeof l[1]){console.warn("Message is missing an argument.",{message:l,argument:"path"});continue}p=l.path;if("undefined"==typeof l[2]){console.warn("Message is missing an argument.",{message:l,argument:"val"});continue}q=l[2];if(isNaN(parseFloat(q))){console.warn("Invalid argument value.",{message:l,val:q});continue}l=r.c(a,p,null);if(isNaN(parseFloat(l))){console.warn("Invalid existing value.",{query:a,argument:p});continue}q=l+q;
106break;case "del":if("undefined"==typeof l[1]){console.warn("Message is missing an argument.",{message:l,argument:"path"});continue}p=l[1];B={del:!0,reindex:!0};break;case "page_set":case "page_add":if("undefined"==typeof l[1]){console.warn("Message is missing an argument.",{message:l,argument:"val"});continue}q=l[1];if(q!==parseInt(q)||"page_set"==x&&0>q){console.warn("Invalid argument value.",{message:l,val:q});continue}var D=r.c(a,["property_meta","limit"],null);if(null===D||D!==parseInt(D)){console.warn("Invalid query paramter.",
107{"property_meta.limit":D});continue}var P=r.c(a,["property_meta","offset"],null);if(null===P||P!==parseInt(P)||0>P){console.warn("Invalid query paramter.",{"property_meta.limit":D});continue}
107switch(x){case "page_set":q=(q-1)*D;break;case "page_add":q=Math.max(0,P+q*D)}if(0<l[1]&&"undefined"!=typeof this.I.properties&&0==this.I.properties.length)continue;if(null!==this.total&&q>=this.total)continue;p=["property_meta","offset"];break;case "query_auto":if(!this.gb(l[1])){console.warn("Invalid argument value.",
108{message:l,val:q});continue}continue;case "run":e=!0;continue;case "set":if("undefined"==typeof l[1]){console.warn("Message is missing an argument.",{message:l,argument:"path"});continue}p=l[1];if("undefined"==typeof l[2]){console.warn("Message is missing an argument.",{message:l,argument:"val"});continue}q=l[2];break;default:console.warn("Invalid action.",{message:l,action:x});continue}l=r.c(a,p,void 0);if(!("del"==x&&"undefined"==typeof l||"del"!=x&&q==l)){e=!0;if(0==p.length||"destination_id"==
109p[0]||"property_filter"==p[0])d=f=h=!0;if(0==p.length||"property_meta"==p[0]||"page_set"==x||"page_add"==x)f=!0;if(0==p.length||"property_meta"==p[0]&&("sort"==p[1]||"fields"==p[1]))h=!0;0==p.length?a=this.o=q:r.U(a,p,q,B);h&&(this.I={},this.total=null)}}else console.warn("Message must be an array.",{message:l})}(f&&-1!=this.aa.indexOf("req_properties")||"run"==x&&-1!=a.request_type.indexOf("req_properties"))&&k.push("req_properties");d&&(this.K++,"undefined"!=typeof a.property_meta&&(a.property_meta.offset=
1100),(-1!=this.aa.indexOf("req_pins")||"run"==x&&-1!=a.request_type.indexOf("req_pins"))&&k.push("req_pins"));e&&"undefined"!=typeof p&&1<p.length&&"sort"==p[1]&&(a.property_meta.offset=0);h&&this.cache.sa();a.request_type=k;return e}console.warn("Message must be an array.",{message:b})};d.prototype.Kb=function(a,c){if(this.bb){a=this.clone(a);var b=r.c(a,["property_meta","offset"],null),e=r.c(a,["property_meta","limit"],null);null!==this.total&&(e=Math.min(this.total,b+e)-b);var d=[],f=!0;if(null!==
111b&&null!==e)for(var h=0;h<e;h++){var k=this.cache.get(h+b);if("undefined"==typeof k){f=!1;break}d[h]=k}if(!f){if(null!==this.node){var m=this.node.getAttribute(this.f);if(null===m){console.warn("Missing attribute.",{node:this.node,attribute:this.f});return}m=JSON.parse(m);m="undefined"!=typeof m.spinner?m.spinner:null}else m=this.B;if(null!==m&&null!==m.id){if("undefined"==typeof m.id){console.warn("Missing property.",{attribute:this.f,property:"spinner.id",node:this.node});return}if("undefined"==
112typeof m.active_class){console.warn("Missing property.",{attribute:this.f,property:"spinner.active_class",node:this.node});return}var l=document.getElementById(m.id);if(null===l){console.warn("No node exists with the ID specified.",{attribute:this.f,property:"spinner.id",id:m.id,node:this.node});return}l.classList.add(m.active_class)}}var b=++this.$,p={request:a,$:b,K:this.K,kb:c,hb:l||null,xb:m&&m.active_class||null};f?(this.I.properties=d,delete this.I.pins,this.eb(this.I,p)):function(b){"undefined"!=
113typeof a.property_filter&&(a=b.clone(a),a.property_filter=b.Lb(a.property_filter));b.run(a,function(a){b.mc(a,p)})}(this)}};d.prototype.run=function(a,c){var b=new XMLHttpRequest;(function(a){b.onreadystatechange=function(){a.Ca(b,c)}})(this);b.open("POST",this.ba(),!0);b.send(this.gc(a))};d.prototype.Ca=function(a,c){if(4==a.readyState)if(200!=a.status)console.warn("Failed XMLHTTP request.",a);else{var b=this.Ib(a.responseText);c(b)}};d.prototype.mc=function(a,c){if("undefined"!=typeof a.status_code&&
1140!=a.status_code)console.warn("DDF request failed.",a);else if(c.$>this.ab&&(this.I=a,this.ab=c.$,this.eb(a,c)),c.K==this.K&&"undefined"!=typeof a.properties){for(var b=a.properties,e=0;e<b.length;e++)this.cache.set(e+c.request.property_meta.offset,b[e]);var e=c.request.property_meta.offset,d=c.request.property_meta.limit;0<b.length&&b.length<d&&(this.total=e+b.length)}null!==c.hb&&c.hb.classList.remove(c.xb)};d.prototype.eb=function(a,c){this.a.P(c.kb,{max_size:1,gc_trigger:this.a.GC_PST_STORE});
115this.a.N(c.kb,{query_id:c.$,group_id:c.K,request:c.request,reply:a})};d.prototype.Lb=function(a){if("undefined"!=typeof a){var c=[],b;for(b in a){var e=a[b],d;for(d in e)c.push([d,b,e[d]])}return c}};d.prototype.ba=function(){return this.url+r.Za(this.jc)};d.prototype.clone=function(a){return JSON.parse(JSON.stringify(a),r.X)};return d}();window.addEventListener("DOMContentLoaded",function(){Q.j("xxdf_ddf_query_js")});window.XXDF_DDF_Query=void 0;window.XXDF_DDF_Query_Widget=Q;
116Q.prototype.activate_class=Q.prototype.j;Q.prototype.activate_node=Q.prototype.i;Q.prototype.config=Q.prototype.u;Q.prototype.run=Q.prototype.run;var V=function(){function d(){}d.prototype.V=function(){y.Qa("maxmemory",26214400);N.run(["__query_string__","xxdf_query_form_fill_ddf_js"]);this.ob();H.na(".xxdf_dom_listener_ddf_js");"undefined"!=typeof R&&R.j("xxdf_ddf_map_delay_init_js");"undefined"!=typeof Q&&Q.j("xxdf_ddf_query_delay_init_js")};d.prototype.ob=function(){var a={property_meta_to_page_num:function(b,a){return 1+Math.ceil(a.offset/a.limit)},ddf_simple_filter_from_node_value:function(b,a,c,d,h){a=b.node.value;return b.actions.get("ddf_simple_filter_from_value")(b,
117a,c,d,h)},ddf_simple_filter_from_arg:function(b,a,c,d,h,k){a=b.node;"checkbox"==a.type&&!1===a.checked&&(d="");return b.actions.get("ddf_simple_filter_from_value")(b,d,c,h,k)},ddf_simple_filter_from_value:function(b,a,c,d,h){if("undefined"!=typeof a){var k=b.node;if("undefined"!=typeof h&&"new "==h[h.length-1].substring(0,4)){var m="call_global_new_get";h[h.length-1]=h[h.length-1].slice(4)}else m="call_global_get";""!==a&&"undefined"!=typeof h&&(a=b.actions.get(m)(b,a,h));a=""===a||"checkbox"==k.type&&
118!1===k.checked?[["del",c]]:[["set",c,a]];return b.actions.get("publish_input")(b,a,d)}},select_option_attr_json_to_msg:function(b,a,c){var d=b.node;a=d[d.selectedIndex];if("undefined"==typeof a)throw new F("Node has no value selected.",{node:d,selectedIndex:d.selectedIndex});var h=b.attr_name;a=a.getAttribute(h);if(null==a)throw new F("Node has is missing an attribute.",{node:d,attribute:h});a=JSON.parse(a);return b.actions.get("publish_input")(b,a,c)},ddf_map_cmd_from_node_value:function(b,a,c,d,
119h){a=b.node.value;""===a&&b.actions.get("stop")();"undefined"!=typeof h&&(a=b.actions.get("call_global_get")(b,a,h));a=[[c,a]];return b.actions.get("publish_input")(b,a,d)},ddf_result_to_properties:function(b,a){-1==a.msg.request.request_type.indexOf("req_properties")&&b.actions.get("stop")();return r.c(a,["msg","reply","properties"])},ddf_result_to_walkscore_map:function(b,a){"undefined"==typeof a.msg.Address&&b.actions.get("stop")();var c=a.msg.Address,d={},h=[];void 0!==c.StreetAddress&&h.push(c.StreetAddress);
120void 0!==c.City&&h.push(c.City);void 0!==c.Province&&h.push(c.Province);void 0!==c.PostalCode&&h.push(c.PostalCode);d.ws_address=h.join(" ");return d},ddf_result_to_walkscore_map_old:function(b,a){"undefined"==typeof a.msg.Address&&b.actions.get("stop")();var c=a.msg.Address,d={},h=[];void 0!==c["Street Address"]&&h.push(c["Street Address"]);void 0!==c.City&&h.push(c.City);void 0!==c.Province&&h.push(c.Province);void 0!==c["Postal Code"]&&h.push(c["Postal Code"]);d.ws_address=h.join(" ");return d},
121ddf_result_to_geojsonpoint_old:function(b,a){"undefined"==typeof a.msg.lat&&b.actions.get("stop")();"undefined"==typeof a.msg.lng&&b.actions.get("stop")();return{Address:{GeoJSONPoint:[a.msg.lng,a.msg.lat]}}},map_event_msg_to_bbox:function(b,a){for(var c=a.msg,d,h=0;h<c.length;h++)"viewport"==c[h].type&&(d=c[h].bbox);if("undefined"!=typeof d)return d},map_viewport_msg_to_ddf_query:function(b,a,c){a=a.msg;for(var d=[],h=0;h<a.length;h++){var k=a[h];if("viewport"==k.type){var m=k.bbox,l=k.pxh,k=k.pxw,
122l=b.actions.get("deg_per_pin")(b,m,l,k,75);d.push(["set",c,m]);d.push(["set",["pin_meta","deg_per_pin"],l])}}0==d.length&&b.actions.get("stop")();return d},feature_to_intersect_ddf_query:function(b,a,c,d,h){b.actions.get("feature_save_node_and_intersect")(b,a,d,h);return[["set",c,bbox]]},map_viewport_msg_to_intersect_ddf_query:function(a,c,d,f,h){c=c.msg;for(var k=[],m=0;m<c.length;m++){var l=c[m];if("viewport"==l.type){var p=l.bbox,q=l.pxh,l=l.pxw,q=a.actions.get("deg_per_pin")(a,p,q,l,75),p=a.actions.get("feature_save_node_and_intersect")(a,
123p,f,h);k.push(["set",d,p]);k.push(["set",["pin_meta","deg_per_pin"],q])}}0==k.length&&a.actions.get("stop")();return k},deg_per_pin:function(a,c,d,f,h){a=c[0];var k=c[2];a=k-a+(k<a?360:0);c=r.round((c[3]-c[1])/Math.max(1,Math.floor(d/h)),4);f=r.round(a/Math.max(1,Math.floor(f/h)),4);return Math.max(c,f)},geosjon_point_to_bbox:function(a,c,d){if(!Array.isArray(c))throw new F("Argument must be an array.",{point:c,ctx:a});if(2!=c.length)throw new F("Invalid argument.  Must be a GeoJSON point.",{point:c,
124ctx:a});a=c[1];var f=c[0],h=r.c(d,["lat_size_deg"]),k=r.c(d,["lng_size_deg"]);c=r.c(d,["decimals"]);if("undefined"==typeof h)throw new F("Missing argument property.",{opt:d,property:"lat_size_deg"});if("undefined"==typeof k)throw new F("Missing argument property.",{opt:d,property:"lng_size_deg"});if("undefined"!=typeof c&&!Number.isInteger(c))throw new F("Invalid argument property.",{opt:d,property:"decimals"});d=f-k/2;-180>d&&(d+=180);f+=k/2;180<f&&(f-=180);k=a-h/2;-90>k&&(k=-k-180);a+=h/2;90<a&&
125(a=-a+180);c&&(d=r.round(d,c),f=r.round(f,c),k=r.round(k,c),a=r.round(a,c));return[d,k,f,a]},navigator_geolocation_getcurrentposition_publish:function(a,c,d){navigator.geolocation.getCurrentPosition(function(d){d={coords:{latitude:d.coords.latitude||void 0,longitude:d.coords.longitude||void 0,altitude:d.coords.altitude||void 0,accuracy:d.coords.accuracy||void 0,altitudeAccuracy:d.coords.altitudeAccuracy||void 0,heading:d.coords.heading||void 0,speed:d.coords.speed||void 0},timestamp:d.timestamp||
126void 0};return a.actions.get("publish_input")(a,d,c)},function(a){console.warn("Action failed.",{action:"navigator.geolocation.getCurrentPosition()",error:a})},d)},navigator_geolocation_msg_to_bbox:function(a,c,d){c=c.msg;c=[c.coords.longitude,c.coords.latitude];return a.actions.get("geosjon_point_to_bbox")(a,c,d)},navigator_geolocation_msg_to_ddf_query_addr_bbox:function(a,c,d){return[["set",["property_filter","Address.GeoJSONPoint","bbox"],a.actions.get("navigator_geolocation_msg_to_bbox")(a,c,
127d)]]},navigator_geolocation_msg_to_map_fitbounds:function(a,c,d){return[["fitbounds",a.actions.get("navigator_geolocation_msg_to_bbox")(a,c,d)]]},google_places_msg_to_bbox:function(a,c,d){var f=r.c(d,["decimals"]);if("undefined"!=typeof f&&!Number.isInteger(f))throw new F("Invalid argument property.",{opt:d,property:"decimals"});c=c.msg;var h=c.geometry.viewport;null!==h?("undefined"!=typeof f&&(h.west=r.round(h.west,f),h.south=r.round(h.south,f),h.east=r.round(h.east,f),h.north=r.round(h.north,f)),
128a=[h.west,h.south,h.east,h.north]):(f=c.geometry.location,f=[f.lng(),f.lat()],a=a.actions.get("geosjon_point_to_bbox")(a,f,d));return a},google_places_msg_to_ddf_query_addr_bbox:function(a,c,d){return[["set",["property_filter","Address.GeoJSONPoint","bbox"],a.actions.get("google_places_msg_to_bbox")(a,c,d)]]},google_places_msg_to_map_fitbounds:function(a,c,d){return[["fitbounds",a.actions.get("google_places_msg_to_bbox")(a,c,d)]]},cbox_attr_to_map_add_layer:function(a,c,d){var f=a.node;if("undefined"==
129typeof c)throw new F("Missing argument.",{fn:a.fn_name,argument:"attr_name",ctx:a});if("undefined"==typeof d)throw new F("Missing argument.",{fn:a.fn_name,argument:"layer_id",ctx:a});!0===f.checked?(a=f.getAttribute(c),a=JSON.parse(a),d=[["geojson_add_layer",a,d]]):d=[["geojson_del_layer",d]];return d},form_submit:function(a){a=r.Ra(a.node);"undefined"!=typeof a&&a.submit()},scrollintoview_if_not_visible:function(a,c,d,f){function h(a,b,c,d){var e;switch(a){case "start":e=b;break;case "center":e=
130(b+c)/2;break;case "end":e=c;break;case "nearest":0<=b&&c<=d?e=(b+c)/2:0<=b&&c>d?e=b:0>b&&c<=d?e=c:0>b&&c>d&&(e=b+d/2);break;default:e=b}return e}if("undefined"==typeof c||null===c)c=a.node;a="undefined"==typeof d?{}:d;"undefined"==typeof f&&(f={});"undefined"==typeof f.offsetx&&(f.offsetx=0);"undefined"==typeof f.offsety&&(f.offsety=0);var k=c.getBoundingClientRect(),m=!1,l=Math.min(document.documentElement.clientHeight,document.body.clientHeight),p=a.block||null,q=k.top,B=k.bottom,p=h(p,q,B,l)+
131f.offsety;0>p||p>l?m=!0:"undefined"!=typeof a.block&&delete a.block;l=Math.min(document.documentElement.clientWidth,document.body.clientWidth);p=a.inline||null;q=k.left;B=k.right;p=h(p,q,B,l)+f.offsetx;0>p||p>l?m=!0:"undefined"!=typeof a.inline&&delete a.inline;m&&("undefined"==typeof d?c.scrollIntoView():c.scrollIntoView(d),0==f.offsetx&&0==f.offsety||window.scrollBy(f.offsetx,f.offsety))}},c;for(c in a)H.actions.set(c,a[c])};return d}();
132Number.isInteger=Number.isInteger||function(d){return"number"===typeof d&&isFinite(d)&&Math.floor(d)===d};var W=new V;window.addEventListener("DOMContentLoaded",function(){W.V()});window.XXDF_DDF_Search=W;window.XXDF_DDF_Search_Widget=V;V.prototype.init=V.prototype.V;var X=function(){function d(){this.a=E}d.prototype.j=function(a,c,b,d){"undefined"==typeof c&&(c="data-"+a);a=document.getElementsByClassName(a);for(var g=0;g<a.length;g++)this.i(a[g],c,b,d)};d.prototype.i=function(a,c,b,d){"undefined"==typeof b?b=this.a:this.a=b;var g=new google.maps.places.Autocomplete(a),f=a.getAttribute("data-setOptions");null!==f&&(f=JSON.parse(f),g.setOptions(f));"undefined"==typeof d&&(d=this.nb);google.maps.event.addListener(g,"place_changed",function(){d(g,a,c,b)})};d.prototype.nb=
133function(a,c,b,d){var g=c.getAttribute(b);if(null===g)console.warn("Missing attribute.",{node:c,attribute:b});else if(g=JSON.parse(g),"undefined"==typeof g.topics)console.warn("Missing property.",{node:c,attribute:b,property:"topics"});else if(g=g.topics,Array.isArray(g))for(c={gc_trigger:d.GC_PST_STORE,max_size:1},b=0;b<g.length;b++){var f=g[b];d.P(g[b],c);d.N(f,a.getPlace())}else console.warn("Property must be an array.",{node:c,attribute:b,property:"topics"})};return d}(),aa=new X;
134window.addEventListener("DOMContentLoaded",function(){aa.j("xxdf_msg_google_places_js")});window.XXDF_Msg_Google_Places=aa;window.XXDF_Msg_Google_Places_Widget=X;X.prototype.activate_class=X.prototype.j;X.prototype.activate_node=X.prototype.i;var O=function(){function d(){this.map=this.node=null;this.w={fullscreen_btn:!1,minimap:!1,layer_default:null,layers:[]};this.Y=this.Db()}d.prototype.u=function(a){if("undefined"==typeof a)return this.w;for(var c in a)a.hasOwnProperty(c)&&(this.w[c]=a[c]);this.ub();return this};d.prototype.ub=function(){for(var a=0;a<this.w.layers.length;a++){var c=this.w.layers[a];if("undefined"==typeof c.type)console.warn("Missing property.",{property:"layers["+a+"].type"});else{var b=c.type;if("undefined"==typeof this.Y[b])console.warn("Unrecognized layer type.",
135{type:b});else if(b=this.Y[c.type],"undefined"!=typeof c.options)for(opt in c.options){var d;switch(b.g){case L.tileLayer:d=1;break;case L.tileLayer.bing:d=0;break;case L.gridLayer.googleMutant:d=0;break;default:consol.warn("Unrecognized layer function.",{fn:b.g})}b.h[d][opt]=c.options[opt]}}}};d.prototype.M=function(a,c){this.node=a;this.map=L.map(this.node,c);this.rb()};d.prototype.rb=function(){for(var a=this.w.minimap,c={},b={},d=0;d<this.w.layers.length;d++){var g=this.w.layers[d];if("undefined"==
136typeof g.type)console.warn("Missing property.",{property:"layers["+d+"].type"});else{var f=g.type;"undefined"==typeof this.Y[f]?console.warn("Unrecognized layer type.",{type:f}):(g=this.Y[g.type],"undefined"==typeof g.g?console.warn("Missing function for layer type.  Is the library loaded?",{type:f}):(c[g.label]=g.g.apply(null,g.h),a&&(b[g.label]=g.g.apply(null,g.h))))}}c["Google Traffic"].addGoogleLayer("TrafficLayer");c["Google Transit"].addGoogleLayer("TransitLayer");a&&b["Google Traffic"].addGoogleLayer("TrafficLayer");
137a&&b["Google Transit"].addGoogleLayer("TransitLayer");d=this.Y[this.w.layer_default].label;c[d].addTo(this.map);if(a)var h=(new L.Control.MiniMap(b[d],{toggleDisplay:!0})).addTo(this.map);L.control.layers(c).addTo(this.map);if(a)this.map.on("baselayerchange",function(a){h.changeLayer(b[a.name])});this.w.fullscreen_btn&&this.map.addControl(new L.Control.Fullscreen)};d.prototype.Db=function(){return{esri_street:{label:"Esri Street",g:L.tileLayer,h:["https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",
138{attribution:"Tiles &copy; Esri &mdash; Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012",maxZoom:19}]},mapbox:{label:"MapBox",g:L.tileLayer,h:["https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token={accessToken}",{attribution:'Map data &copy; <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery \u00a9 <a href="http://mapbox.com">Mapbox</a>',
139maxZoom:18,id:"mapbox.streets",accessToken:"sk.eyJ1IjoiZXptZWRpYWNhIiwiYSI6ImNqa2w2ZDBtejA0cHEza29sbm81Mmw0NHcifQ.AyiLNJHNnt59S2WMHgWegw"}]},bing_road:{label:"Bing Road",g:L.tileLayer.bing,h:[{bingMapsKey:"",imagerySet:"Road"}]},bing_aerial:{label:"Bing Aerial",g:L.tileLayer.bing,h:[{bingMapsKey:"",imagerySet:"Aerial"}]},bing_aerialwithlabels:{label:"Bing Aerial with Labels",g:L.tileLayer.bing,h:[{bingMapsKey:"",imagerySet:"AerialWithLabels"}]},here_base:{label:"HERE Base",g:L.tileLayer,h:["https://{s}.{base}.maps.cit.api.here.com/maptile/2.1/{type}/{mapID}/normal.day/{z}/{x}/{y}/{size}/{format}?app_id={app_id}&app_code={app_code}&lg={language}",
140{attribution:'Map &copy; 1987-2014 <a href="http://developer.here.com">HERE</a>',subdomains:"1234",mapID:"newest",app_id:"",app_code:"",base:"base",maxZoom:20,type:"maptile",language:"eng",format:"png8",size:"256"}]},here_aerial:{label:"HERE Aerial",g:L.tileLayer,h:["https://{s}.{base}.maps.cit.api.here.com/maptile/2.1/{type}/{mapID}/hybrid.day/{z}/{x}/{y}/{size}/{format}?app_id={app_id}&app_code={app_code}&lg={language}",{attribution:'Map &copy; 1987-2014 <a href="http://developer.here.com">HERE</a>',
141subdomains:"1234",mapID:"newest",app_id:"",app_code:"",base:"aerial",maxZoom:20,type:"maptile",language:"eng",format:"png8",size:"256"}]},google_road:{label:"Google Road",g:L.gridLayer.googleMutant,h:[{maxZoom:24,type:"roadmap"}]},google_satelite:{label:"Google Satelite",g:L.gridLayer.googleMutant,h:[{maxZoom:24,type:"satellite"}]},google_hybrid:{label:"Google Hybrid",g:L.gridLayer.googleMutant,h:[{maxZoom:24,type:"hybrid"}]},google_terrain:{label:"Google Terrain",g:L.gridLayer.googleMutant,h:[{maxZoom:24,
142type:"terrain"}
142]},google_traffic:{label:"Google Traffic",g:L.gridLayer.googleMutant,h:[{maxZoom:24,type:"roadmap"}]},google_transit:{label:"Google Transit",g:L.gridLayer.googleMutant,h:[{maxZoom:24,type:"roadmap"}]},openmapsurfer_roads:{label:"OpenMapSurfer Roads",g:L.tileLayer,h:["https://korona.geog.uni-heidelberg.de/tiles/roads/x={x}&y={y}&z={z}",{attribution:'Imagery from <a href="http://giscience.uni-hd.de/">GIScience Research Group @ University of Heidelberg</a> &mdash; Map data &copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',
143maxZoom:20}]},openstreetmap:{label:"OpenStreetMap",g:L.tileLayer,h:["https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>',maxZoom:19}]}}};return d}();window.XXDF_Leaflet_Map_Widget=O;O.prototype.init_map=O.prototype.M;var Y=function(){function d(){this.f=this.Ea=null;this.a=E;this.za={ws_wsid:"248c3649267e4ee08341a0c0ffd8ef47",ws_address:null,ws_width:"100%",ws_height:"482",ws_layout:"none",ws_commute:"true",ws_transit_score:"true",ws_map_modules:"all"}}d.prototype.ma=function(a,c,b){"undefined"==typeof c&&(c="data-"+a);"undefined"==typeof b&&(b=this.a);this.Ea=a;this.f=c;this.a=b;this.tb();a=document.getElementsByClassName(this.Ea);if(0!=a.length)if(a=a[0],a.innerHTML=" \t\t\t<div id='ws-walkscore-tile'> \t\t\t\t<div id='ws-footer' style='position:absolute;top:464px;left:8px;width:688px'> \t\t\t\t\t<form id='ws-form'> \t\t\t\t\t\t<span id='ws-foottext' style='float: left;'>Score <a id='ws-a' href='https://www.redfin.com/how-walk-score-works' target='_blank'>Your Home</a>: </span> \t\t\t\t\t\t<input type='text' id='ws-street' style='position:absolute;top:0px;left:170px;width:486px' /> \t\t\t\t\t\t<input type='image' id='ws-go' src='//cdn2.walk.sc/2/images/tile/go-btn.gif' height='15' width='26' border='0' alt='get my Walk Score' style='position:absolute;top:0px;right:0px' /> \t\t\t\t\t</form> \t\t\t\t</div> \t\t\t</div> \t\t",
144b=a.getAttribute(this.f),null===b)console.warn("Missing attribute.",{node:a,attribute:c});else if(b=JSON.parse(b),"undefined"==typeof b.topic)console.warn("Missing property.",{node:a,attribute:c,property:"topic"});else{var d=b.topic,g="undefined"==typeof b.opts?{}:b.opts;(function(a){a.a.subscribe(d,function(b,c){var d=c.msg,e;for(e in d)g[e]=d[e];a.nc(g);a.sb()},{count:1})})(this)}};d.prototype.tb=function(){var a=document.createElement("style");a.textContent=" \t\t\t#ws-walkscore-tile{ \t\t\t\tposition:relative; \t\t\t\ttext-align:left \t\t\t} \t\t\t#ws-walkscore-tile *{ \t\t\t\tfloat:none; \t\t\t} \t\t\t#ws-foottext, #ws-footer a,#ws-footer a:link{ \t\t\t\tfont:11px/14px Verdana,Arial,Helvetica,sans-serif; \t\t\t\tmargin-right:6px; \t\t\t\twhite-space:nowrap; \t\t\t\tpadding:0; \t\t\t\tcolor:#000; \t\t\t\tfont-weight:bold; \t\t\t\ttext-decoration:none \t\t\t} \t\t\t#ws-footer a:hover{ \t\t\t\tcolor:#000; \t\t\t\ttext-decoration:none \t\t\t} \t\t\t#ws-footer a:active{ \t\t\t\tcolor:#b14900 \t\t\t} \t\t";
145document.head.appendChild(a)};d.prototype.nc=function(a){for(var c in a)"undefined"==typeof this.za[c]&&console.warn("Invalid Walkscore option.",{option:c});var b=(new Function("return this"))();for(c in this.za)b[c]="undefined"!=typeof a[c]?a[c]:this.za[c]};d.prototype.sb=function(){var a=document.createElement("script");a.setAttribute("src","https://www.walkscore.com/tile/show-walkscore-tile.php");document.head.appendChild(a)};return d}();XXDF_Walkscore_Map=new Y;
146window.addEventListener("DOMContentLoaded",function(){XXDF_Walkscore_Map.ma("xxdf_walkscore_map_js")});window.XXDF_Walkscore_Map=XXDF_Walkscore_Map;window.XXDF_Walkscore_Map_Widget=Y;Y.prototype.activate=Y.prototype.ma;var Z=function(){function d(){this.f=this.node=null;this.a=E;this.ka=!1}d.j=function(a,c,b){"undefined"==typeof c&&(c="data-"+a);var e=[];a=document.getElementsByClassName(a);for(var g=0;g<a.length;g++){var f=new d;f.i(a[g],c,b);e.push(f)}return e};d.prototype.i=function(a,c,b){this.node=a;this.f=c;"undefined"==typeof b?b=this.a:this.a=b;this.qb();document.body.appendChild(this.node);var d=a.getAttribute(c);if(null===d)console.warn("Missing attribute.",{node:a,attribute:c});else if(d=JSON.parse(d),
147"undefined"==typeof d.topics)console.warn("Missing property.",{node:a,attribute:c,property:"topics"});else{var g=d.topics;Array.isArray(g)?function(a){for(var c=0;c<g.length;c++)b.subscribe(g[c],function(b,c){a.Ub(c)})}(this):console.warn("Property must be an array.",{node:a,attribute:c,property:"topics"})}};d.prototype.qb=function(){for(var a=this,c=a.node.getElementsByClassName("xxdf_ddf_user_agree_accept_js"),b=0;b<c.length;b++)c[b].addEventListener("click",function(){a.xc()});c=a.node.getElementsByClassName("xxdf_ddf_user_agree_decline_js");
148for(b=0;b<c.length;b++)c[b].addEventListener("click",function(){a.zc()})};d.prototype.Ub=function(a){a=a.msg;var c=r.c(a,["reply","destination","DestinationType"],null),b;b=0|r.c(a,["request","property_filter","AgentDetails.ID"],!1);b|=r.c(a,["request","property_filter","AgentDetails.Office.ID"],!1);this.bc(c,b)&&(document.body.scrollIntoView(!0),this.node.style.display="block")};d.prototype.bc=function(a,c){return this.ka||"/"==window.location.pathname||"Member Website Feed - My Listings"==a||"Member Website Feed - One or More Offices"==
149a||c?!1:null!==r.pa("xxdf_ddf_accept_terms")?(this.ka=!0,!1):!0};d.prototype.xc=function(){this.ka=!0;var a=new Date;a.setFullYear(a.getFullYear()+1);r.qa("xxdf_ddf_accept_terms","",a,"/");document.body.scrollIntoView(!0);this.node.style.display="none"};d.prototype.zc=function(){window.location="/"};return d}();window.addEventListener("DOMContentLoaded",function(){Z.j("xxdf_ddf_user_agree_js")});window.XXDF_DDF_User_Agree_Widget=Z;Z.activate_class=Z.j;Z.prototype.activate_node=Z.prototype.i;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.