//>>built
define("dojox/analytics/plugins/touchMove","dojo/_base/lang ../_base dojo/_base/config dojo/_base/window dojo/on dojo/touch".split(" "),function(g,k,f,l,m,n){return k.plugins.touchMove=new function(){this.watchTouch=void 0===f.watchTouch||f.watchTouch?!0:!1;this.showTouchesDetails=void 0===f.showTouchesDetails||f.showTouchesDetails?!0:!1;this.touchSampleDelay=f.touchSampleDelay||1E3;this.targetProps=f.targetProps||"id className localName href spellcheck lang textContent value".split(" ");this.textContentMaxChars=
f.textContentMaxChars||50;this.addData=g.hitch(k,"addData","touch.move");this.sampleTouchMove=function(a){this._rateLimited||(this.addData("sample",this.trimTouchEvent(a)),this._rateLimited=!0,setTimeout(g.hitch(this,function(){this._rateLimited&&(this.trimTouchEvent(this._lastTouchEvent),delete this._lastTouchEvent,delete this._rateLimited)}),this.touchSampleDelay));return this._lastTouchEvent=a};m(l.doc,n.move,g.hitch(this,"sampleTouchMove"));this.handleTarget=function(a,d,b){var c=this.targetProps;
a[b]={};for(var e=0;e<c.length;e++)("object"==typeof d||"function"==typeof d)&&c[e]in d&&("text"==c[e]||"textContent"==c[e]?d.localName&&"HTML"!=d.localName&&"BODY"!=d.localName&&(a[b][c[e]]=d[c[e]].substr(0,this.textContentMaxChars)):a[b][c[e]]=d[c[e]])};this.trimTouchEvent=function(a){var d={},b;for(b in a)switch(b){case "target":this.handleTarget(d,a[b],b);break;case "touches":0!==a[b].length&&(d["touches.length"]=a[b].length);if(this.showTouchesDetails)for(var c=0;c<a[b].length;c++)for(var e in a[b][c])switch(e){case "target":this.handleTarget(d,
a[b][c].target,"touches["+c+"][target]");break;case "clientX":case "clientY":case "screenX":case "screenY":if(a[b][c]){var h=a[b][c][e];d["touches["+c+"]["+e+"]"]=h+""}}break;case "clientX":case "clientY":case "screenX":case "screenY":a[b]&&(h=a[b],d[b]=h+"")}return d}}});