Advertisement
Guest User

Untitled

a guest
Jan 2nd, 2019
1,062
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 64.31 KB | None | 0 0
  1. {
  2.   "log": {
  3.     "version": "1.1",
  4.     "creator": {
  5.       "name": "Firefox",
  6.       "version": "64.0"
  7.     },
  8.     "browser": {
  9.       "name": "Firefox",
  10.       "version": "64.0"
  11.     },
  12.     "pages": [
  13.       {
  14.         "startedDateTime": "2019-01-02T13:35:04.649+03:00",
  15.         "id": "page_1",
  16.         "title": "IT insights and commons things – Here I'll try to write some thing about IT in technical sense and on career there",
  17.         "pageTimings": {
  18.           "onContentLoad": 1488,
  19.           "onLoad": 3464
  20.         }
  21.       }
  22.     ],
  23.     "entries": [
  24.       {
  25.         "pageref": "page_1",
  26.         "startedDateTime": "2019-01-02T13:35:04.649+03:00",
  27.         "request": {
  28.           "bodySize": 0,
  29.           "method": "GET",
  30.           "url": "https://cdnjs.cloudflare.com/ajax/libs/wavesurfer.js/1.4.0/wavesurfer.min.js?v=1.19.15",
  31.           "httpVersion": "HTTP/2.0",
  32.           "headers": [
  33.             {
  34.               "name": "Host",
  35.               "value": "cdnjs.cloudflare.com"
  36.             },
  37.             {
  38.               "name": "User-Agent",
  39.               "value": "Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0"
  40.             },
  41.             {
  42.               "name": "Accept",
  43.               "value": "*/*"
  44.             },
  45.             {
  46.               "name": "Accept-Language",
  47.               "value": "ru,en-US;q=0.7,en;q=0.3"
  48.             },
  49.             {
  50.               "name": "Accept-Encoding",
  51.               "value": "gzip, deflate, br"
  52.             },
  53.             {
  54.               "name": "Referer",
  55.               "value": "https://it.asm0dey.ru/podcast/%d1%8d%d0%bf%d0%b8%d0%b7%d0%be%d0%b4-20-%d0%bd%d0%be%d0%b2%d0%be%d0%b3%d0%be%d0%b4%d0%bd%d0%b8%d0%b9/"
  56.             },
  57.             {
  58.               "name": "Connection",
  59.               "value": "keep-alive"
  60.             },
  61.             {
  62.               "name": "Cookie",
  63.               "value": "__cfduid=db847c27d3fd667a7ebc3c64482110a841543040335"
  64.             },
  65.             {
  66.               "name": "Pragma",
  67.               "value": "no-cache"
  68.             },
  69.             {
  70.               "name": "Cache-Control",
  71.               "value": "no-cache"
  72.             }
  73.           ],
  74.           "cookies": [
  75.             {
  76.               "name": "__cfduid",
  77.               "value": "db847c27d3fd667a7ebc3c64482110a841543040335"
  78.             }
  79.           ],
  80.           "queryString": [
  81.             {
  82.               "name": "v",
  83.               "value": "1.19.15"
  84.             }
  85.           ],
  86.           "headersSize": 547
  87.         },
  88.         "response": {
  89.           "status": 425,
  90.           "statusText": "No Reason Phrase",
  91.           "httpVersion": "HTTP/2.0",
  92.           "headers": [
  93.             {
  94.               "name": "date",
  95.               "value": "Wed, 02 Jan 2019 10:35:04 GMT"
  96.             },
  97.             {
  98.               "name": "content-type",
  99.               "value": "application/javascript"
  100.             },
  101.             {
  102.               "name": "last-modified",
  103.               "value": "Thu, 17 May 2018 09:26:46 GMT"
  104.             },
  105.             {
  106.               "name": "etag",
  107.               "value": "W/\"5afd4ad6-92f7\""
  108.             },
  109.             {
  110.               "name": "expires",
  111.               "value": "Mon, 23 Dec 2019 10:35:04 GMT"
  112.             },
  113.             {
  114.               "name": "cache-control",
  115.               "value": "public, max-age=30672000"
  116.             },
  117.             {
  118.               "name": "access-control-allow-origin",
  119.               "value": "*"
  120.             },
  121.             {
  122.               "name": "served-in-seconds",
  123.               "value": "0.001"
  124.             },
  125.             {
  126.               "name": "cf-cache-status",
  127.               "value": "HIT"
  128.             },
  129.             {
  130.               "name": "strict-transport-security",
  131.               "value": "max-age=15780000; includeSubDomains"
  132.             },
  133.             {
  134.               "name": "expect-ct",
  135.               "value": "max-age=604800, report-uri=\"https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct\""
  136.             },
  137.             {
  138.               "name": "vary",
  139.               "value": "Accept-Encoding"
  140.             },
  141.             {
  142.               "name": "server",
  143.               "value": "cloudflare"
  144.             },
  145.             {
  146.               "name": "cf-ray",
  147.               "value": "492c93aa99ec7672-ARN"
  148.             },
  149.             {
  150.               "name": "content-encoding",
  151.               "value": "br"
  152.             },
  153.             {
  154.               "name": "X-Firefox-Spdy",
  155.               "value": "h2"
  156.             }
  157.           ],
  158.           "cookies": [],
  159.           "content": {
  160.             "mimeType": "application/javascript",
  161.             "size": 37623,
  162.             "text": "/*! wavesurfer.js 1.4.0 (Mon, 10 Apr 2017 08:55:35 GMT)\n* https://github.com/katspaugh/wavesurfer.js\n* @license BSD-3-Clause */\n!function(a,b){\"function\"==typeof define&&define.amd?define(\"wavesurfer\",[],function(){return a.WaveSurfer=b()}):\"object\"==typeof exports?module.exports=b():a.WaveSurfer=b()}(this,function(){\"use strict\";var a={defaultParams:{audioContext:null,audioRate:1,autoCenter:!0,backend:\"WebAudio\",barHeight:1,closeAudioContext:!1,container:null,cursorColor:\"#333\",cursorWidth:1,dragSelection:!0,fillParent:!0,forceDecode:!1,height:128,hideScrollbar:!1,interact:!0,loopSelection:!0,mediaContainer:null,mediaControls:!1,mediaType:\"audio\",minPxPerSec:20,partialRender:!1,pixelRatio:window.devicePixelRatio||screen.deviceXDPI/screen.logicalXDPI,progressColor:\"#555\",normalize:!1,renderer:\"MultiCanvas\",scrollParent:!1,skipLength:2,splitChannels:!1,waveColor:\"#999\"},init:function(b){if(this.params=a.util.extend({},this.defaultParams,b),this.container=\"string\"==typeof b.container?document.querySelector(this.params.container):this.params.container,!this.container)throw new Error(\"Container element not found\");if(null==this.params.mediaContainer?this.mediaContainer=this.container:\"string\"==typeof this.params.mediaContainer?this.mediaContainer=document.querySelector(this.params.mediaContainer):this.mediaContainer=this.params.mediaContainer,!this.mediaContainer)throw new Error(\"Media Container element not found\");this.savedVolume=0,this.isMuted=!1,this.tmpEvents=[],this.currentAjax=null,this.createDrawer(),this.createBackend(),this.createPeakCache(),this.isDestroyed=!1},createDrawer:function(){var b=this;this.drawer=Object.create(a.Drawer[this.params.renderer]),this.drawer.init(this.container,this.params),this.drawer.on(\"redraw\",function(){b.drawBuffer(),b.drawer.progress(b.backend.getPlayedPercents())}),this.drawer.on(\"click\",function(a,c){setTimeout(function(){b.seekTo(c)},0)}),this.drawer.on(\"scroll\",function(a){b.params.partialRender&&b.drawBuffer(),b.fireEvent(\"scroll\",a)})},createBackend:function(){var b=this;this.backend&&this.backend.destroy(),\"AudioElement\"==this.params.backend&&(this.params.backend=\"MediaElement\"),\"WebAudio\"!=this.params.backend||a.WebAudio.supportsWebAudio()||(this.params.backend=\"MediaElement\"),this.backend=Object.create(a[this.params.backend]),this.backend.init(this.params),this.backend.on(\"finish\",function(){b.fireEvent(\"finish\")}),this.backend.on(\"play\",function(){b.fireEvent(\"play\")}),this.backend.on(\"pause\",function(){b.fireEvent(\"pause\")}),this.backend.on(\"audioprocess\",function(a){b.drawer.progress(b.backend.getPlayedPercents()),b.fireEvent(\"audioprocess\",a)})},createPeakCache:function(){this.params.partialRender&&(this.peakCache=Object.create(a.PeakCache),this.peakCache.init())},getDuration:function(){return this.backend.getDuration()},getCurrentTime:function(){return this.backend.getCurrentTime()},play:function(a,b){this.fireEvent(\"interaction\",this.play.bind(this,a,b)),this.backend.play(a,b)},pause:function(){this.backend.isPaused()||this.backend.pause()},playPause:function(){this.backend.isPaused()?this.play():this.pause()},isPlaying:function(){return!this.backend.isPaused()},skipBackward:function(a){this.skip(-a||-this.params.skipLength)},skipForward:function(a){this.skip(a||this.params.skipLength)},skip:function(a){var b=this.getCurrentTime()||0,c=this.getDuration()||1;b=Math.max(0,Math.min(c,b+(a||0))),this.seekAndCenter(b/c)},seekAndCenter:function(a){this.seekTo(a),this.drawer.recenter(a)},seekTo:function(a){this.fireEvent(\"interaction\",this.seekTo.bind(this,a));var b=this.backend.isPaused();b||this.backend.pause();var c=this.params.scrollParent;this.params.scrollParent=!1,this.backend.seekTo(a*this.getDuration()),this.drawer.progress(this.backend.getPlayedPercents()),b||this.backend.play(),this.params.scrollParent=c,this.fireEvent(\"seek\",a)},stop:function(){this.pause(),this.seekTo(0),this.drawer.progress(0)},setVolume:function(a){this.backend.setVolume(a)},getVolume:function(){return this.backend.getVolume()},setPlaybackRate:function(a){this.backend.setPlaybackRate(a)},getPlaybackRate:function(){return this.backend.getPlaybackRate()},toggleMute:function(){this.setMute(!this.isMuted)},setMute:function(a){a!==this.isMuted&&(a?(this.savedVolume=this.backend.getVolume(),this.backend.setVolume(0),this.isMuted=!0):(this.backend.setVolume(this.savedVolume),this.isMuted=!1))},getMute:function(){return this.isMuted},getFilters:function(){return this.backend.filters||[]},toggleScroll:function(){this.params.scrollParent=!this.params.scrollParent,this.drawBuffer()},toggleInteraction:function(){this.params.interact=!this.params.interact},drawBuffer:function(){var a=Math.round(this.getDuration()*this.params.minPxPerSec*this.params.pixelRatio),b=this.drawer.getWidth(),c=a,d=this.drawer.getScrollX(),e=Math.min(d+b,c);if(this.params.fillParent&&(!this.params.scrollParent||a<b)&&(c=b,d=0,e=c),this.params.partialRender)for(var f=this.peakCache.addRangeToPeakCache(c,d,e),g=0;g<f.length;g++){var h=this.backend.getPeaks(c,f[g][0],f[g][1]);this.drawer.drawPeaks(h,c,f[g][0],f[g][1])}else{d=0,e=c;var h=this.backend.getPeaks(c,d,e);this.drawer.drawPeaks(h,c,d,e)}this.fireEvent(\"redraw\",h,c)},zoom:function(a){this.params.minPxPerSec=a,this.params.scrollParent=!0,this.drawBuffer(),this.drawer.progress(this.backend.getPlayedPercents()),this.drawer.recenter(this.getCurrentTime()/this.getDuration()),this.fireEvent(\"zoom\",a)},loadArrayBuffer:function(a){this.decodeArrayBuffer(a,function(a){this.isDestroyed||this.loadDecodedBuffer(a)}.bind(this))},loadDecodedBuffer:function(a){this.backend.load(a),this.drawBuffer(),this.fireEvent(\"ready\")},loadBlob:function(a){var b=this,c=new FileReader;c.addEventListener(\"progress\",function(a){b.onProgress(a)}),c.addEventListener(\"load\",function(a){b.loadArrayBuffer(a.target.result)}),c.addEventListener(\"error\",function(){b.fireEvent(\"error\",\"Error reading file\")}),c.readAsArrayBuffer(a),this.empty()},load:function(a,b,c){switch(this.empty(),this.isMuted=!1,this.params.backend){case\"WebAudio\":return this.loadBuffer(a,b);case\"MediaElement\":return this.loadMediaElement(a,b,c)}},loadBuffer:function(a,b){var c=function(b){return b&&this.tmpEvents.push(this.once(\"ready\",b)),this.getArrayBuffer(a,this.loadArrayBuffer.bind(this))}.bind(this);return b?(this.backend.setPeaks(b),this.drawBuffer(),this.tmpEvents.push(this.once(\"interaction\",c)),void 0):c()},loadMediaElement:function(a,b,c){var d=a;if(\"string\"==typeof a)this.backend.load(d,this.mediaContainer,b,c);else{var e=a;this.backend.loadElt(e,b),d=e.src}this.tmpEvents.push(this.backend.once(\"canplay\",function(){this.drawBuffer(),this.fireEvent(\"ready\")}.bind(this)),this.backend.once(\"error\",function(a){this.fireEvent(\"error\",a)}.bind(this))),b&&this.backend.setPeaks(b),b&&!this.params.forceDecode||!this.backend.supportsWebAudio()||this.getArrayBuffer(d,function(a){this.decodeArrayBuffer(a,function(a){this.backend.buffer=a,this.backend.setPeaks(null),this.drawBuffer(),this.fireEvent(\"waveform-ready\")}.bind(this))}.bind(this))},decodeArrayBuffer:function(a,b){this.arraybuffer=a,this.backend.decodeArrayBuffer(a,function(c){this.isDestroyed||this.arraybuffer!=a||(b(c),this.arraybuffer=null)}.bind(this),this.fireEvent.bind(this,\"error\",\"Error decoding audiobuffer\"))},getArrayBuffer:function(b,c){var d=this,e=a.util.ajax({url:b,responseType:\"arraybuffer\"});return this.currentAjax=e,this.tmpEvents.push(e.on(\"progress\",function(a){d.onProgress(a)}),e.on(\"success\",function(a,b){c(a),d.currentAjax=null}),e.on(\"error\",function(a){d.fireEvent(\"error\",\"XHR error: \"+a.target.statusText),d.currentAjax=null})),e},onProgress:function(a){if(a.lengthComputable)var b=a.loaded/a.total;else b=a.loaded/(a.loaded+1e6);this.fireEvent(\"loading\",Math.round(100*b),a.target)},exportPCM:function(a,b,c){a=a||1024,b=b||1e4,c=c||!1;var d=this.backend.getPeaks(a,b),e=[].map.call(d,function(a){return Math.round(a*b)/b}),f=JSON.stringify(e);return c||window.open(\"data:application/json;charset=utf-8,\"+encodeURIComponent(f)),f},exportImage:function(a,b){return a||(a=\"image/png\"),b||(b=1),this.drawer.getImage(a,b)},cancelAjax:function(){this.currentAjax&&(this.currentAjax.xhr.abort(),this.currentAjax=null)},clearTmpEvents:function(){this.tmpEvents.forEach(function(a){a.un()})},empty:function(){this.backend.isPaused()||(this.stop(),this.backend.disconnectSource()),this.cancelAjax(),this.clearTmpEvents(),this.drawer.progress(0),this.drawer.setWidth(0),this.drawer.drawPeaks({length:this.drawer.getWidth()},0)},destroy:function(){this.fireEvent(\"destroy\"),this.cancelAjax(),this.clearTmpEvents(),this.unAll(),this.backend.destroy(),this.drawer.destroy(),this.isDestroyed=!0}};return a.create=function(b){var c=Object.create(a);return c.init(b),c},a.util={extend:function(a){var b=Array.prototype.slice.call(arguments,1);return b.forEach(function(b){Object.keys(b).forEach(function(c){a[c]=b[c]})}),a},debounce:function(a,b,c){var d,e,f,g=function(){f=null,c||a.apply(e,d)};return function(){e=this,d=arguments;var h=c&&!f;clearTimeout(f),f=setTimeout(g,b),f||(f=setTimeout(g,b)),h&&a.apply(e,d)}},min:function(a){var b=+(1/0);for(var c in a)a[c]<b&&(b=a[c]);return b},max:function(a){var b=-(1/0);for(var c in a)a[c]>b&&(b=a[c]);return b},getId:function(){return\"wavesurfer_\"+Math.random().toString(32).substring(2)},ajax:function(b){var c=Object.create(a.Observer),d=new XMLHttpRequest,e=!1;return d.open(b.method||\"GET\",b.url,!0),d.responseType=b.responseType||\"json\",d.addEventListener(\"progress\",function(a){c.fireEvent(\"progress\",a),a.lengthComputable&&a.loaded==a.total&&(e=!0)}),d.addEventListener(\"load\",function(a){e||c.fireEvent(\"progress\",a),c.fireEvent(\"load\",a),200==d.status||206==d.status?c.fireEvent(\"success\",d.response,a):c.fireEvent(\"error\",a)}),d.addEventListener(\"error\",function(a){c.fireEvent(\"error\",a)}),d.send(),c.xhr=d,c}},a.Observer={on:function(a,b){this.handlers||(this.handlers={});var c=this.handlers[a];return c||(c=this.handlers[a]=[]),c.push(b),{name:a,callback:b,un:this.un.bind(this,a,b)}},un:function(a,b){if(this.handlers){var c=this.handlers[a];if(c)if(b)for(var d=c.length-1;d>=0;d--)c[d]==b&&c.splice(d,1);else c.length=0}},unAll:function(){this.handlers=null},once:function(a,b){var c=this,d=function(){b.apply(this,arguments),setTimeout(function(){c.un(a,d)},0)};return this.on(a,d)},fireEvent:function(a){if(this.handlers){var b=this.handlers[a],c=Array.prototype.slice.call(arguments,1);b&&b.forEach(function(a){a.apply(null,c)})}}},a.util.extend(a,a.Observer),a.WebAudio={scriptBufferSize:256,PLAYING_STATE:0,PAUSED_STATE:1,FINISHED_STATE:2,supportsWebAudio:function(){return!(!window.AudioContext&&!window.webkitAudioContext)},getAudioContext:function(){return a.WebAudio.audioContext||(a.WebAudio.audioContext=new(window.AudioContext||window.webkitAudioContext)),a.WebAudio.audioContext},getOfflineAudioContext:function(b){return a.WebAudio.offlineAudioContext||(a.WebAudio.offlineAudioContext=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,2,b)),a.WebAudio.offlineAudioContext},init:function(b){this.params=b,this.ac=b.audioContext||this.getAudioContext(),this.lastPlay=this.ac.currentTime,this.startPosition=0,this.scheduledPause=null,this.states=[Object.create(a.WebAudio.state.playing),Object.create(a.WebAudio.state.paused),Object.create(a.WebAudio.state.finished)],this.createVolumeNode(),this.createScriptNode(),this.createAnalyserNode(),this.setState(this.PAUSED_STATE),this.setPlaybackRate(this.params.audioRate),this.setLength(0)},disconnectFilters:function(){this.filters&&(this.filters.forEach(function(a){a&&a.disconnect()}),this.filters=null,this.analyser.connect(this.gainNode))},setState:function(a){this.state!==this.states[a]&&(this.state=this.states[a],this.state.init.call(this))},setFilter:function(){this.setFilters([].slice.call(arguments))},setFilters:function(a){this.disconnectFilters(),a&&a.length&&(this.filters=a,this.analyser.disconnect(),a.reduce(function(a,b){return a.connect(b),b},this.analyser).connect(this.gainNode))},createScriptNode:function(){this.ac.createScriptProcessor?this.scriptNode=this.ac.createScriptProcessor(this.scriptBufferSize):this.scriptNode=this.ac.createJavaScriptNode(this.scriptBufferSize),this.scriptNode.connect(this.ac.destination)},addOnAudioProcess:function(){var a=this;this.scriptNode.onaudioprocess=function(){var b=a.getCurrentTime();b>=a.getDuration()?(a.setState(a.FINISHED_STATE),a.fireEvent(\"pause\")):b>=a.scheduledPause?a.pause():a.state===a.states[a.PLAYING_STATE]&&a.fireEvent(\"audioprocess\",b)}},removeOnAudioProcess:function(){this.scriptNode.onaudioprocess=null},createAnalyserNode:function(){this.analyser=this.ac.createAnalyser(),this.analyser.connect(this.gainNode)},createVolumeNode:function(){this.ac.createGain?this.gainNode=this.ac.createGain():this.gainNode=this.ac.createGainNode(),this.gainNode.connect(this.ac.destination)},setVolume:function(a){this.gainNode.gain.value=a},getVolume:function(){return this.gainNode.gain.value},decodeArrayBuffer:function(a,b,c){this.offlineAc||(this.offlineAc=this.getOfflineAudioContext(this.ac?this.ac.sampleRate:44100)),this.offlineAc.decodeAudioData(a,function(a){b(a)}.bind(this),c)},setPeaks:function(a){this.peaks=a},setLength:function(a){if(!this.mergedPeaks||a!=2*this.mergedPeaks.length-1+2){this.splitPeaks=[],this.mergedPeaks=[];for(var b=this.buffer?this.buffer.numberOfChannels:1,c=0;c<b;c++)this.splitPeaks[c]=[],this.splitPeaks[c][2*(a-1)]=0,this.splitPeaks[c][2*(a-1)+1]=0;this.mergedPeaks[2*(a-1)]=0,this.mergedPeaks[2*(a-1)+1]=0}},getPeaks:function(a,b,c){if(this.peaks)return this.peaks;this.setLength(a);for(var d=this.buffer.length/a,e=~~(d/10)||1,f=this.buffer.numberOfChannels,g=0;g<f;g++)for(var h=this.splitPeaks[g],i=this.buffer.getChannelData(g),j=b;j<=c;j++){for(var k=~~(j*d),l=~~(k+d),m=0,n=0,o=k;o<l;o+=e){var p=i[o];p>n&&(n=p),p<m&&(m=p)}h[2*j]=n,h[2*j+1]=m,(0==g||n>this.mergedPeaks[2*j])&&(this.mergedPeaks[2*j]=n),(0==g||m<this.mergedPeaks[2*j+1])&&(this.mergedPeaks[2*j+1]=m)}return this.params.splitChannels?this.splitPeaks:this.mergedPeaks},getPlayedPercents:function(){return this.state.getPlayedPercents.call(this)},disconnectSource:function(){this.source&&this.source.disconnect()},destroy:function(){this.isPaused()||this.pause(),this.unAll(),this.buffer=null,this.disconnectFilters(),this.disconnectSource(),this.gainNode.disconnect(),this.scriptNode.disconnect(),this.analyser.disconnect(),this.params.closeAudioContext&&(\"function\"==typeof this.ac.close&&\"closed\"!=this.ac.state&&this.ac.close(),this.ac=null,this.params.audioContext?this.params.audioContext=null:a.WebAudio.audioContext=null,a.WebAudio.offlineAudioContext=null)},load:function(a){this.startPosition=0,this.lastPlay=this.ac.currentTime,this.buffer=a,this.createSource()},createSource:function(){this.disconnectSource(),this.source=this.ac.createBufferSource(),this.source.start=this.source.start||this.source.noteGrainOn,this.source.stop=this.source.stop||this.source.noteOff,this.source.playbackRate.value=this.playbackRate,this.source.buffer=this.buffer,this.source.connect(this.analyser)},isPaused:function(){return this.state!==this.states[this.PLAYING_STATE]},getDuration:function(){return this.buffer?this.buffer.duration:0},seekTo:function(a,b){if(this.buffer)return this.scheduledPause=null,null==a&&(a=this.getCurrentTime(),a>=this.getDuration()&&(a=0)),null==b&&(b=this.getDuration()),this.startPosition=a,this.lastPlay=this.ac.currentTime,this.state===this.states[this.FINISHED_STATE]&&this.setState(this.PAUSED_STATE),{start:a,end:b}},getPlayedTime:function(){return(this.ac.currentTime-this.lastPlay)*this.playbackRate},play:function(a,b){if(this.buffer){this.createSource();var c=this.seekTo(a,b);a=c.start,b=c.end,this.scheduledPause=b,this.source.start(0,a,b-a),\"suspended\"==this.ac.state&&this.ac.resume&&this.ac.resume(),this.setState(this.PLAYING_STATE),this.fireEvent(\"play\")}},pause:function(){this.scheduledPause=null,this.startPosition+=this.getPlayedTime(),this.source&&this.source.stop(0),this.setState(this.PAUSED_STATE),this.fireEvent(\"pause\")},getCurrentTime:function(){return this.state.getCurrentTime.call(this)},getPlaybackRate:function(){return this.playbackRate},setPlaybackRate:function(a){a=a||1,this.isPaused()?this.playbackRate=a:(this.pause(),this.playbackRate=a,this.play())}},a.WebAudio.state={},a.WebAudio.state.playing={init:function(){this.addOnAudioProcess()},getPlayedPercents:function(){var a=this.getDuration();return this.getCurrentTime()/a||0},getCurrentTime:function(){return this.startPosition+this.getPlayedTime()}},a.WebAudio.state.paused={init:function(){this.removeOnAudioProcess()},getPlayedPercents:function(){var a=this.getDuration();return this.getCurrentTime()/a||0},getCurrentTime:function(){return this.startPosition}},a.WebAudio.state.finished={init:function(){this.removeOnAudioProcess(),this.fireEvent(\"finish\")},getPlayedPercents:function(){return 1},getCurrentTime:function(){return this.getDuration()}},a.util.extend(a.WebAudio,a.Observer),a.MediaElement=Object.create(a.WebAudio),a.util.extend(a.MediaElement,{init:function(a){this.params=a,this.media={currentTime:0,duration:0,paused:!0,playbackRate:1,play:function(){},pause:function(){}},this.mediaType=a.mediaType.toLowerCase(),this.elementPosition=a.elementPosition,this.setPlaybackRate(this.params.audioRate),this.createTimer()},createTimer:function(){var a=this,b=function(){if(!a.isPaused()){a.fireEvent(\"audioprocess\",a.getCurrentTime());var c=window.requestAnimationFrame||window.webkitRequestAnimationFrame;c(b)}};this.on(\"play\",b)},load:function(a,b,c,d){var e=document.createElement(this.mediaType);e.controls=this.params.mediaControls,e.autoplay=this.params.autoplay||!1,e.preload=null==d?\"auto\":d,e.src=a,e.style.width=\"100%\";var f=b.querySelector(this.mediaType);f&&b.removeChild(f),b.appendChild(e),this._load(e,c)},loadElt:function(a,b){var c=a;c.controls=this.params.mediaControls,c.autoplay=this.params.autoplay||!1,this._load(c,b)},_load:function(a,b){var c=this;\"function\"==typeof a.load&&a.load(),a.addEventListener(\"error\",function(){c.fireEvent(\"error\",\"Error loading media element\")}),a.addEventListener(\"canplay\",function(){c.fireEvent(\"canplay\")}),a.addEventListener(\"ended\",function(){c.fireEvent(\"finish\")}),this.media=a,this.peaks=b,this.onPlayEnd=null,this.buffer=null,this.setPlaybackRate(this.playbackRate)},isPaused:function(){return!this.media||this.media.paused},getDuration:function(){var a=(this.buffer||this.media).duration;return a>=1/0&&(a=this.media.seekable.end(0)),a},getCurrentTime:function(){return this.media&&this.media.currentTime},getPlayedPercents:function(){return this.getCurrentTime()/this.getDuration()||0},getPlaybackRate:function(){return this.playbackRate||this.media.playbackRate},setPlaybackRate:function(a){this.playbackRate=a||1,this.media.playbackRate=this.playbackRate},seekTo:function(a){null!=a&&(this.media.currentTime=a),this.clearPlayEnd()},play:function(a,b){this.seekTo(a),this.media.play(),b&&this.setPlayEnd(b),this.fireEvent(\"play\")},pause:function(){this.media&&this.media.pause(),this.clearPlayEnd(),this.fireEvent(\"pause\")},setPlayEnd:function(a){var b=this;this.onPlayEnd=function(c){c>=a&&(b.pause(),b.seekTo(a))},this.on(\"audioprocess\",this.onPlayEnd)},clearPlayEnd:function(){this.onPlayEnd&&(this.un(\"audioprocess\",this.onPlayEnd),this.onPlayEnd=null)},getPeaks:function(b,c,d){return this.buffer?a.WebAudio.getPeaks.call(this,b,c,d):this.peaks||[]},getVolume:function(){return this.media.volume},setVolume:function(a){this.media.volume=a},destroy:function(){this.pause(),this.unAll(),this.media&&this.media.parentNode&&this.media.parentNode.removeChild(this.media),this.media=null}}),a.AudioElement=a.MediaElement,a.Drawer={init:function(a,b){this.container=a,this.params=b,this.width=0,this.height=b.height*this.params.pixelRatio,this.lastPos=0,this.initDrawer(b),this.createWrapper(),this.createElements()},createWrapper:function(){this.wrapper=this.container.appendChild(document.createElement(\"wave\")),this.style(this.wrapper,{display:\"block\",position:\"relative\",userSelect:\"none\",webkitUserSelect:\"none\",height:this.params.height+\"px\"}),(this.params.fillParent||this.params.scrollParent)&&this.style(this.wrapper,{width:\"100%\",overflowX:this.params.hideScrollbar?\"hidden\":\"auto\",overflowY:\"hidden\"}),this.setupWrapperEvents()},handleEvent:function(a,b){!b&&a.preventDefault();var c,d=a.targetTouches?a.targetTouches[0].clientX:a.clientX,e=this.wrapper.getBoundingClientRect(),f=this.width,g=this.getWidth();return!this.params.fillParent&&f<g?(c=(d-e.left)*this.params.pixelRatio/f||0,c>1&&(c=1)):c=(d-e.left+this.wrapper.scrollLeft)/this.wrapper.scrollWidth||0,c},setupWrapperEvents:function(){var a=this;this.wrapper.addEventListener(\"click\",function(b){var c=a.wrapper.offsetHeight-a.wrapper.clientHeight;if(0!=c){var d=a.wrapper.getBoundingClientRect();if(b.clientY>=d.bottom-c)return}a.params.interact&&a.fireEvent(\"click\",b,a.handleEvent(b))}),this.wrapper.addEventListener(\"scroll\",function(b){a.fireEvent(\"scroll\",b)})},drawPeaks:function(a,b,c,d){this.setWidth(b),this.params.barWidth?this.drawBars(a,0,c,d):this.drawWave(a,0,c,d)},style:function(a,b){return Object.keys(b).forEach(function(c){a.style[c]!==b[c]&&(a.style[c]=b[c])}),a},resetScroll:function(){null!==this.wrapper&&(this.wrapper.scrollLeft=0)},recenter:function(a){var b=this.wrapper.scrollWidth*a;this.recenterOnPosition(b,!0)},recenterOnPosition:function(a,b){var c=this.wrapper.scrollLeft,d=~~(this.wrapper.clientWidth/2),e=a-d,f=e-c,g=this.wrapper.scrollWidth-this.wrapper.clientWidth;if(0!=g){if(!b&&-d<=f&&f<d){var h=5;f=Math.max(-h,Math.min(h,f)),e=c+f}e=Math.max(0,Math.min(g,e)),e!=c&&(this.wrapper.scrollLeft=e)}},getScrollX:function(){return Math.round(this.wrapper.scrollLeft*this.params.pixelRatio)},getWidth:function(){return Math.round(this.container.clientWidth*this.params.pixelRatio)},setWidth:function(a){this.width!=a&&(this.width=a,this.params.fillParent||this.params.scrollParent?this.style(this.wrapper,{width:\"\"}):this.style(this.wrapper,{width:~~(this.width/this.params.pixelRatio)+\"px\"}),this.updateSize())},setHeight:function(a){a!=this.height&&(this.height=a,this.style(this.wrapper,{height:~~(this.height/this.params.pixelRatio)+\"px\"}),this.updateSize())},progress:function(a){var b=1/this.params.pixelRatio,c=Math.round(a*this.width)*b;if(c<this.lastPos||c-this.lastPos>=b){if(this.lastPos=c,this.params.scrollParent&&this.params.autoCenter){var d=~~(this.wrapper.scrollWidth*a);this.recenterOnPosition(d)}this.updateProgress(c)}},destroy:function(){this.unAll(),this.wrapper&&(this.container.removeChild(this.wrapper),this.wrapper=null)},initDrawer:function(){},createElements:function(){},updateSize:function(){},drawWave:function(a,b){},clearWave:function(){},updateProgress:function(a){}},a.util.extend(a.Drawer,a.Observer),a.Drawer.Canvas=Object.create(a.Drawer),a.util.extend(a.Drawer.Canvas,{createElements:function(){var a=this.wrapper.appendChild(this.style(document.createElement(\"canvas\"),{position:\"absolute\",zIndex:1,left:0,top:0,bottom:0}));if(this.waveCc=a.getContext(\"2d\"),this.progressWave=this.wrapper.appendChild(this.style(document.createElement(\"wave\"),{position:\"absolute\",zIndex:2,left:0,top:0,bottom:0,overflow:\"hidden\",width:\"0\",display:\"none\",boxSizing:\"border-box\",borderRightStyle:\"solid\",borderRightWidth:this.params.cursorWidth+\"px\",borderRightColor:this.params.cursorColor})),this.params.waveColor!=this.params.progressColor){var b=this.progressWave.appendChild(document.createElement(\"canvas\"));this.progressCc=b.getContext(\"2d\")}},updateSize:function(){var a=Math.round(this.width/this.params.pixelRatio);this.waveCc.canvas.width=this.width,this.waveCc.canvas.height=this.height,this.style(this.waveCc.canvas,{width:a+\"px\"}),this.style(this.progressWave,{display:\"block\"}),this.progressCc&&(this.progressCc.canvas.width=this.width,this.progressCc.canvas.height=this.height,this.style(this.progressCc.canvas,{width:a+\"px\"})),this.clearWave()},clearWave:function(){this.waveCc.clearRect(0,0,this.width,this.height),this.progressCc&&this.progressCc.clearRect(0,0,this.width,this.height)},drawBars:function(b,c,d,e){var f=this;if(b[0]instanceof Array){var g=b;if(this.params.splitChannels)return this.setHeight(g.length*this.params.height*this.params.pixelRatio),void g.forEach(function(a,b){f.drawBars(a,b,d,e)});b=g[0]}var h=[].some.call(b,function(a){return a<0}),i=1;h&&(i=2);var j=.5/this.params.pixelRatio,k=this.width,l=this.params.height*this.params.pixelRatio,m=l*c||0,n=l/2,o=b.length/i,p=this.params.barWidth*this.params.pixelRatio,q=Math.max(this.params.pixelRatio,~~(p/2)),r=p+q,s=1/this.params.barHeight;if(this.params.normalize){var t=a.util.max(b),u=a.util.min(b);s=-u>t?-u:t}var v=o/k;this.waveCc.fillStyle=this.params.waveColor,this.progressCc&&(this.progressCc.fillStyle=this.params.progressColor),[this.waveCc,this.progressCc].forEach(function(a){if(a)for(var c=d/v;c<e/v;c+=r){var f=b[Math.floor(c*v*i)]||0,g=Math.round(f/s*n);a.fillRect(c+j,n-g+m,p+j,2*g)}},this)},drawWave:function(b,c,d,e){var f=this;if(b[0]instanceof Array){var g=b;if(this.params.splitChannels)return this.setHeight(g.length*this.params.height*this.params.pixelRatio),void g.forEach(function(a,b){f.drawWave(a,b,d,e)});b=g[0]}var h=[].some.call(b,function(a){return a<0});if(!h){for(var i=[],j=0,k=b.length;j<k;j++)i[2*j]=b[j],i[2*j+1]=-b[j];b=i}var l=.5/this.params.pixelRatio,m=this.params.height*this.params.pixelRatio,n=m*c||0,o=m/2,p=~~(b.length/2),q=1;this.params.fillParent&&this.width!=p&&(q=this.width/p);var r=1/this.params.barHeight;if(this.params.normalize){var s=a.util.max(b),t=a.util.min(b);r=-t>s?-t:s}this.waveCc.fillStyle=this.params.waveColor,this.progressCc&&(this.progressCc.fillStyle=this.params.progressColor),[this.waveCc,this.progressCc].forEach(function(a){if(a){a.beginPath(),a.moveTo(d*q+l,o+n);for(var c=d;c<e;c++){var f=Math.round(b[2*c]/r*o);a.lineTo(c*q+l,o-f+n)}for(var c=e-1;c>=d;c--){var f=Math.round(b[2*c+1]/r*o);a.lineTo(c*q+l,o-f+n)}a.closePath(),a.fill(),a.fillRect(0,o+n-l,this.width,l)}},this)},updateProgress:function(a){this.style(this.progressWave,{width:a+\"px\"})},getImage:function(a,b){return this.waveCc.canvas.toDataURL(a,b)}}),a.Drawer.MultiCanvas=Object.create(a.Drawer),a.util.extend(a.Drawer.MultiCanvas,{initDrawer:function(a){if(this.maxCanvasWidth=null!=a.maxCanvasWidth?a.maxCanvasWidth:4e3,this.maxCanvasElementWidth=Math.round(this.maxCanvasWidth/this.params.pixelRatio),this.maxCanvasWidth<=1)throw\"maxCanvasWidth must be greater than 1.\";if(this.maxCanvasWidth%2==1)throw\"maxCanvasWidth must be an even number.\";this.hasProgressCanvas=this.params.waveColor!=this.params.progressColor,this.halfPixel=.5/this.params.pixelRatio,this.canvases=[]},createElements:function(){this.progressWave=this.wrapper.appendChild(this.style(document.createElement(\"wave\"),{position:\"absolute\",zIndex:2,left:0,top:0,bottom:0,overflow:\"hidden\",width:\"0\",display:\"none\",boxSizing:\"border-box\",borderRightStyle:\"solid\",borderRightWidth:this.params.cursorWidth+\"px\",borderRightColor:this.params.cursorColor})),this.addCanvas()},updateSize:function(){for(var a=Math.round(this.width/this.params.pixelRatio),b=Math.ceil(a/this.maxCanvasElementWidth);this.canvases.length<b;)this.addCanvas();for(;this.canvases.length>b;)this.removeCanvas();for(var c in this.canvases){var d=this.maxCanvasWidth+2*Math.ceil(this.params.pixelRatio/2);c==this.canvases.length-1&&(d=this.width-this.maxCanvasWidth*(this.canvases.length-1)),this.updateDimensions(this.canvases[c],d,this.height),this.clearWaveForEntry(this.canvases[c])}},addCanvas:function(){var a={},b=this.maxCanvasElementWidth*this.canvases.length;a.wave=this.wrapper.appendChild(this.style(document.createElement(\"canvas\"),{position:\"absolute\",zIndex:1,left:b+\"px\",top:0,bottom:0,height:\"100%\"})),a.waveCtx=a.wave.getContext(\"2d\"),this.hasProgressCanvas&&(a.progress=this.progressWave.appendChild(this.style(document.createElement(\"canvas\"),{position:\"absolute\",left:b+\"px\",top:0,bottom:0,height:\"100%\"})),a.progressCtx=a.progress.getContext(\"2d\")),this.canvases.push(a)},removeCanvas:function(){var a=this.canvases.pop();a.wave.parentElement.removeChild(a.wave),this.hasProgressCanvas&&a.progress.parentElement.removeChild(a.progress)},updateDimensions:function(a,b,c){var d=Math.round(b/this.params.pixelRatio),e=Math.round(this.width/this.params.pixelRatio);a.start=a.waveCtx.canvas.offsetLeft/e||0,a.end=a.start+d/e,a.waveCtx.canvas.width=b,a.waveCtx.canvas.height=c,this.style(a.waveCtx.canvas,{width:d+\"px\"}),this.style(this.progressWave,{display:\"block\"}),this.hasProgressCanvas&&(a.progressCtx.canvas.width=b,a.progressCtx.canvas.height=c,this.style(a.progressCtx.canvas,{width:d+\"px\"}))},clearWave:function(){for(var a in this.canvases)this.clearWaveForEntry(this.canvases[a])},clearWaveForEntry:function(a){a.waveCtx.clearRect(0,0,a.waveCtx.canvas.width,a.waveCtx.canvas.height),this.hasProgressCanvas&&a.progressCtx.clearRect(0,0,a.progressCtx.canvas.width,a.progressCtx.canvas.height)},drawBars:function(b,c,d,e){var f=this;if(b[0]instanceof Array){var g=b;if(this.params.splitChannels)return this.setHeight(g.length*this.params.height*this.params.pixelRatio),void g.forEach(function(a,b){f.drawBars(a,b,d,e)});b=g[0]}var h=[].some.call(b,function(a){return a<0}),i=1;h&&(i=2);var j=this.width,k=this.params.height*this.params.pixelRatio,l=k*c||0,m=k/2,n=b.length/i,o=this.params.barWidth*this.params.pixelRatio,p=Math.max(this.params.pixelRatio,~~(o/2)),q=o+p,r=1/this.params.barHeight;if(this.params.normalize){var s=a.util.max(b),t=a.util.min(b);r=-t>s?-t:s}for(var u=n/j,v=d/u;v<e/u;v+=q){var w=b[Math.floor(v*u*i)]||0,x=Math.round(w/r*m);this.fillRect(v+this.halfPixel,m-x+l,o+this.halfPixel,2*x)}},drawWave:function(b,c,d,e){var f=this;if(b[0]instanceof Array){var g=b;if(this.params.splitChannels)return this.setHeight(g.length*this.params.height*this.params.pixelRatio),void g.forEach(function(a,b){f.drawWave(a,b,d,e)});b=g[0]}var h=[].some.call(b,function(a){return a<0});if(!h){for(var i=[],j=0,k=b.length;j<k;j++)i[2*j]=b[j],i[2*j+1]=-b[j];b=i}var l=this.params.height*this.params.pixelRatio,m=l*c||0,n=l/2,o=1/this.params.barHeight;if(this.params.normalize){var p=a.util.max(b),q=a.util.min(b);o=-q>p?-q:p}this.drawLine(b,o,n,m,d,e),this.fillRect(0,n+m-this.halfPixel,this.width,this.halfPixel)},drawLine:function(a,b,c,d,e,f){for(var g in this.canvases){var h=this.canvases[g];this.setFillStyles(h),this.drawLineToContext(h,h.waveCtx,a,b,c,d,e,f),this.drawLineToContext(h,h.progressCtx,a,b,c,d,e,f)}},drawLineToContext:function(a,b,c,d,e,f,g,h){if(b){var i=c.length/2,j=1;this.params.fillParent&&this.width!=i&&(j=this.width/i);var k=Math.round(i*a.start),l=Math.round(i*a.end);if(!(k>h||l<g)){var m=Math.max(k,g),n=Math.min(l,h);b.beginPath(),b.moveTo((m-k)*j+this.halfPixel,e+f);for(var o=m;o<n;o++){var p=c[2*o]||0,q=Math.round(p/d*e);b.lineTo((o-k)*j+this.halfPixel,e-q+f)}for(var o=n-1;o>=m;o--){var p=c[2*o+1]||0,q=Math.round(p/d*e);b.lineTo((o-k)*j+this.halfPixel,e-q+f)}b.closePath(),b.fill()}}},fillRect:function(a,b,c,d){for(var e=Math.floor(a/this.maxCanvasWidth),f=Math.min(Math.ceil((a+c)/this.maxCanvasWidth)+1,this.canvases.length),g=e;g<f;g++){var h=this.canvases[g],i=g*this.maxCanvasWidth,j={x1:Math.max(a,g*this.maxCanvasWidth),y1:b,x2:Math.min(a+c,g*this.maxCanvasWidth+h.waveCtx.canvas.width),y2:b+d};j.x1<j.x2&&(this.setFillStyles(h),this.fillRectToContext(h.waveCtx,j.x1-i,j.y1,j.x2-j.x1,j.y2-j.y1),this.fillRectToContext(h.progressCtx,j.x1-i,j.y1,j.x2-j.x1,j.y2-j.y1))}},fillRectToContext:function(a,b,c,d,e){a&&a.fillRect(b,c,d,e)},setFillStyles:function(a){a.waveCtx.fillStyle=this.params.waveColor,this.hasProgressCanvas&&(a.progressCtx.fillStyle=this.params.progressColor)},updateProgress:function(a){this.style(this.progressWave,{width:a+\"px\"})},getImage:function(a,b){var c=[];return this.canvases.forEach(function(d){c.push(d.wave.toDataURL(a,b))}),c.length>1?c:c[0]}}),a.Drawer.SplitWavePointPlot=Object.create(a.Drawer.Canvas),a.util.extend(a.Drawer.SplitWavePointPlot,{defaultPlotParams:{plotNormalizeTo:\"whole\",plotTimeStart:0,plotMin:0,\nplotMax:1,plotColor:\"#f63\",plotProgressColor:\"#F00\",plotPointHeight:2,plotPointWidth:2,plotSeparator:!0,plotSeparatorColor:\"black\",plotRangeDisplay:!1,plotRangeUnits:\"\",plotRangePrecision:4,plotRangeIgnoreOutliers:!1,plotRangeFontSize:12,plotRangeFontType:\"Ariel\",waveDrawMedianLine:!0,plotFileDelimiter:\"\\t\"},plotTimeStart:0,plotTimeEnd:-1,plotArrayLoaded:!1,plotArray:[],plotPoints:[],plotMin:0,plotMax:1,initDrawer:function(a){var b=this;for(var c in this.defaultPlotParams)void 0===this.params[c]&&(this.params[c]=this.defaultPlotParams[c]);if(this.plotTimeStart=this.params.plotTimeStart,void 0!==this.params.plotTimeEnd&&(this.plotTimeEnd=this.params.plotTimeEnd),Array.isArray(a.plotArray))this.plotArray=a.plotArray,this.plotArrayLoaded=!0;else{var d=function(a){b.plotArray=a,b.plotArrayLoaded=!0,b.fireEvent(\"plot_array_loaded\")};this.loadPlotArrayFromFile(a.plotFileUrl,d,this.params.plotFileDelimiter)}},drawPeaks:function(a,b,c,d){if(1==this.plotArrayLoaded)this.setWidth(b),this.splitChannels=!0,this.params.height=this.params.height/2,a[0]instanceof Array&&(a=a[0]),this.params.barWidth?this.drawBars(a,1,c,d):this.drawWave(a,1,c,d),this.params.height=2*this.params.height,this.calculatePlots(),this.drawPlots();else{var e=this;e.on(\"plot-array-loaded\",function(){e.drawPeaks(a,b,c,d)})}},drawPlots:function(){var a=this.params.height*this.params.pixelRatio/2,b=.5/this.params.pixelRatio;this.waveCc.fillStyle=this.params.plotColor,this.progressCc&&(this.progressCc.fillStyle=this.params.plotProgressColor);for(var c in this.plotPoints){var d=parseInt(c),e=a-this.params.plotPointHeight-this.plotPoints[c]*(a-this.params.plotPointHeight),f=this.params.plotPointHeight;this.waveCc.fillRect(d,e,this.params.plotPointWidth,f),this.progressCc&&this.progressCc.fillRect(d,e,this.params.plotPointWidth,f)}this.params.plotSeparator&&(this.waveCc.fillStyle=this.params.plotSeparatorColor,this.waveCc.fillRect(0,a,this.width,b)),this.params.plotRangeDisplay&&this.displayPlotRange()},displayPlotRange:function(){var a=this.params.plotRangeFontSize*this.params.pixelRatio,b=this.plotMax.toPrecision(this.params.plotRangePrecision)+\" \"+this.params.plotRangeUnits,c=this.plotMin.toPrecision(this.params.plotRangePrecision)+\" \"+this.params.plotRangeUnits;this.waveCc.font=a.toString()+\"px \"+this.params.plotRangeFontType,this.waveCc.fillText(b,3,a),this.waveCc.fillText(c,3,this.height/2)},calculatePlots:function(){this.plotPoints={},this.calculatePlotTimeEnd();for(var a=[],b=-1,c=0,d=99999999999999,e=0,f=99999999999999,g=this.plotTimeEnd-this.plotTimeStart,h=0;h<this.plotArray.length;h++){var i=this.plotArray[h];if(i.value>c&&(c=i.value),i.value<d&&(d=i.value),i.time>=this.plotTimeStart&&i.time<=this.plotTimeEnd){var j=Math.round(this.width*(i.time-this.plotTimeStart)/g);if(a.push(i.value),j!==b&&a.length>0){var k=this.avg(a);k>e&&(e=k),k<f&&(f=k),this.plotPoints[b]=k,a=[]}b=j}}\"whole\"==this.params.plotNormalizeTo?(this.plotMin=d,this.plotMax=c):\"values\"==this.params.plotNormalizeTo?(this.plotMin=this.params.plotMin,this.plotMax=this.params.plotMax):(this.plotMin=f,this.plotMax=e),this.normalizeValues()},normalizeValues:function(){var a={};if(\"none\"!==this.params.plotNormalizeTo){for(var b in this.plotPoints){var c=(this.plotPoints[b]-this.plotMin)/(this.plotMax-this.plotMin);c>1?this.params.plotRangeIgnoreOutliers||(a[b]=1):c<0?this.params.plotRangeIgnoreOutliers||(a[b]=0):a[b]=c}this.plotPoints=a}},loadPlotArrayFromFile:function(b,c,d){void 0===d&&(d=\"\\t\");var e=[],f={url:b,responseType:\"text\"},g=a.util.ajax(f);g.on(\"load\",function(a){if(200==a.currentTarget.status){for(var b=a.currentTarget.responseText.split(\"\\n\"),f=0;f<b.length;f++){var g=b[f].split(d);2==g.length&&e.push({time:parseFloat(g[0]),value:parseFloat(g[1])})}c(e)}})},calculatePlotTimeEnd:function(){void 0!==this.params.plotTimeEnd?this.plotTimeEnd=this.params.plotTimeEnd:this.plotTimeEnd=this.plotArray[this.plotArray.length-1].time},avg:function(a){var b=a.reduce(function(a,b){return a+b});return b/a.length}}),a.util.extend(a.Drawer.SplitWavePointPlot,a.Observer),a.PeakCache={init:function(){this.clearPeakCache()},clearPeakCache:function(){this.peakCacheRanges=[],this.peakCacheLength=-1},addRangeToPeakCache:function(a,b,c){a!=this.peakCacheLength&&(this.clearPeakCache(),this.peakCacheLength=a);for(var d=[],e=0;e<this.peakCacheRanges.length&&this.peakCacheRanges[e]<b;)e++;for(e%2==0&&d.push(b);e<this.peakCacheRanges.length&&this.peakCacheRanges[e]<=c;)d.push(this.peakCacheRanges[e]),e++;e%2==0&&d.push(c),d=d.filter(function(a,b,c){return 0==b?a!=c[b+1]:b==c.length-1?a!=c[b-1]:a!=c[b-1]&&a!=c[b+1]}),this.peakCacheRanges=this.peakCacheRanges.concat(d),this.peakCacheRanges=this.peakCacheRanges.sort(function(a,b){return a-b}).filter(function(a,b,c){return 0==b?a!=c[b+1]:b==c.length-1?a!=c[b-1]:a!=c[b-1]&&a!=c[b+1]});var f=[];for(e=0;e<d.length;e+=2)f.push([d[e],d[e+1]]);return f},getCacheRanges:function(){for(var a=[],b=0;b<this.peakCacheRanges.length;b+=2)a.push([this.peakCacheRanges[b],this.peakCacheRanges[b+1]]);return a}},function(){var b=function(){var b=document.querySelectorAll(\"wavesurfer\");Array.prototype.forEach.call(b,function(b){var c=a.util.extend({container:b,backend:\"MediaElement\",mediaControls:!0},b.dataset);b.style.display=\"block\";var d=a.create(c);if(b.dataset.peaks)var e=JSON.parse(b.dataset.peaks);d.load(b.dataset.url,e)})};\"complete\"===document.readyState?b():window.addEventListener(\"load\",b)}(),a});\n//# sourceMappingURL=wavesurfer.min.js.map"
  163.           },
  164.           "redirectURL": "",
  165.           "headersSize": 159,
  166.           "bodySize": 9758
  167.         },
  168.         "cache": {},
  169.         "timings": {
  170.           "blocked": 1,
  171.           "dns": 7,
  172.           "connect": 45,
  173.           "ssl": 55,
  174.           "send": 0,
  175.           "wait": 56,
  176.           "receive": 0
  177.         },
  178.         "time": 164,
  179.         "_securityState": "secure",
  180.         "serverIPAddress": "2606:4700::6813:c397",
  181.         "connection": "443"
  182.       },
  183.       {
  184.         "pageref": "page_1",
  185.         "startedDateTime": "2019-01-02T13:35:06.544+03:00",
  186.         "request": {
  187.           "bodySize": 0,
  188.           "method": "GET",
  189.           "url": "https://s2.wp.com/_static/??-eJyVjEEOwjAMBD9E6paqwAXxFBQSA25it9gJfJ+cOCEkbqvVzMBrdWGRglKAq1tzvZEYZEpo8KhY8e4lZtRutg18h31kEnfxCuytoLbllieqUmyRz/dnoagPyX5JiYyxuLHr4UwS4LooN/7Ex2Ha9tOwO+zH+Q2nMFK6",
  190.           "httpVersion": "HTTP/2.0",
  191.           "headers": [
  192.             {
  193.               "name": "Host",
  194.               "value": "s2.wp.com"
  195.             },
  196.             {
  197.               "name": "User-Agent",
  198.               "value": "Mozilla/5.0 (X11; Linux x86_64; rv:64.0) Gecko/20100101 Firefox/64.0"
  199.             },
  200.             {
  201.               "name": "Accept",
  202.               "value": "*/*"
  203.             },
  204.             {
  205.               "name": "Accept-Language",
  206.               "value": "ru,en-US;q=0.7,en;q=0.3"
  207.             },
  208.             {
  209.               "name": "Accept-Encoding",
  210.               "value": "gzip, deflate, br"
  211.             },
  212.             {
  213.               "name": "Referer",
  214.               "value": "https://jetpack.wordpress.com/jetpack-comment/?blogid=117884401&postid=383&comment_registration=0&require_name_email=1&stc_enabled=1&stb_enabled=1&show_avatars=1&avatar_default=mystery&greeting=Leave+a+Reply&greeting_reply=Leave+a+Reply+to+%25s&color_scheme=light&lang=en_US&jetpack_version=6.8.1&hc_post_as=jetpack&hc_userid=1&hc_username=asm0dey&hc_userurl=&hc_useremail=cd2c84b77b3b8d07e85f5c7b9e3cdcaa&_wp_unfiltered_html_comment=6f9f4d406a&sig=8f49db7435761cedbfce06553568f4172215f967"
  215.             },
  216.             {
  217.               "name": "Connection",
  218.               "value": "keep-alive"
  219.             },
  220.             {
  221.               "name": "Pragma",
  222.               "value": "no-cache"
  223.             },
  224.             {
  225.               "name": "Cache-Control",
  226.               "value": "no-cache"
  227.             },
  228.             {
  229.               "name": "TE",
  230.               "value": "Trailers"
  231.             }
  232.           ],
  233.           "cookies": [],
  234.           "queryString": [
  235.             {
  236.               "name": "-eJyVjEEOwjAMBD9E6paqwAXxFBQSA25it9gJfJ+cOCEkbqvVzMBrdWGRglKAq1tzvZEYZEpo8KhY8e4lZtRutg18h31kEnfxCuytoLbllieqUmyRz/dnoagPyX5JiYyxuLHr4UwS4LooN/7Ex2Ha9tOwO+zH+Q2nMFK6",
  237.               "value": ""
  238.             }
  239.           ],
  240.           "headersSize": 950
  241.         },
  242.         "response": {
  243.           "status": 200,
  244.           "statusText": "OK",
  245.           "httpVersion": "HTTP/2.0",
  246.           "headers": [
  247.             {
  248.               "name": "server",
  249.               "value": "nginx"
  250.             },
  251.             {
  252.               "name": "date",
  253.               "value": "Wed, 02 Jan 2019 10:35:06 GMT"
  254.             },
  255.             {
  256.               "name": "content-type",
  257.               "value": "application/x-javascript"
  258.             },
  259.             {
  260.               "name": "vary",
  261.               "value": "Accept-Encoding"
  262.             },
  263.             {
  264.               "name": "last-modified",
  265.               "value": "Thu, 08 Mar 2018 13:48:05 GMT"
  266.             },
  267.             {
  268.               "name": "etag",
  269.               "value": "W/\"5aa13f15-40ac\""
  270.             },
  271.             {
  272.               "name": "content-encoding",
  273.               "value": "gzip"
  274.             },
  275.             {
  276.               "name": "expires",
  277.               "value": "Fri, 22 Nov 2019 08:30:31 GMT"
  278.             },
  279.             {
  280.               "name": "cache-control",
  281.               "value": "max-age=31536000"
  282.             },
  283.             {
  284.               "name": "x-ac",
  285.               "value": "4.fra _dfw"
  286.             },
  287.             {
  288.               "name": "x-nc",
  289.               "value": "HIT fra 32"
  290.             },
  291.             {
  292.               "name": "X-Firefox-Spdy",
  293.               "value": "h2"
  294.             }
  295.           ],
  296.           "cookies": [],
  297.           "content": {
  298.             "mimeType": "application/x-javascript",
  299.             "size": 16556,
  300.             "text": "/* global pm, wpcom_reblog */\n\nvar jetpackLikesWidgetQueue = [];\nvar jetpackLikesWidgetBatch = [];\nvar jetpackLikesMasterReady = false;\n\nfunction JetpackLikespostMessage( message, target ) {\n\tif ( 'string' === typeof message ){\n\t\ttry {\n\t\t\tmessage = JSON.parse( message );\n\t\t} catch(e) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\tpm( {\n\t\ttarget: target,\n\t\ttype: 'likesMessage',\n\t\tdata: message,\n\t\torigin: '*'\n\t} );\n}\n\nfunction JetpackLikesBatchHandler() {\n\tvar requests = [];\n\tjQuery( 'div.jetpack-likes-widget-unloaded' ).each( function() {\n\t\tif ( jetpackLikesWidgetBatch.indexOf( this.id ) > -1 ) {\n\t\t\treturn;\n\t\t}\n\t\tjetpackLikesWidgetBatch.push( this.id );\n\t\tvar regex = /like-(post|comment)-wrapper-(\\d+)-(\\d+)-(\\w+)/,\n\t\t\tmatch = regex.exec( this.id ),\n\t\t\tinfo;\n\n\t\tif ( ! match || match.length !== 5 ) {\n\t\t\treturn;\n\t\t}\n\n\t\tinfo = {\n\t\t\tblog_id: match[2],\n\t\t\twidth:   this.width\n\t\t};\n\n\t\tif ( 'post' === match[1] ) {\n\t\t\tinfo.post_id = match[3];\n\t\t} else if ( 'comment' === match[1] ) {\n\t\t\tinfo.comment_id = match[3];\n\t\t}\n\n\t\tinfo.obj_id = match[4];\n\n\t\trequests.push( info );\n\t});\n\n\tif ( requests.length > 0 ) {\n\t\tJetpackLikespostMessage( { event: 'initialBatch', requests: requests }, window.frames['likes-master'] );\n\t}\n}\n\nfunction JetpackLikesMessageListener( event, message ) {\n\tvar allowedOrigin, $container, $list, offset, rowLength, height, scrollbarWidth;\n\n\tif ( 'undefined' === typeof event.event ) {\n\t\treturn;\n\t}\n\n\t// We only allow messages from one origin\n\tallowedOrigin = window.location.protocol + '//widgets.wp.com';\n\tif ( allowedOrigin !== message.origin ) {\n\t\treturn;\n\t}\n\n\tif ( 'masterReady' === event.event ) {\n\t\tjQuery( document ).ready( function() {\n\t\t\tjetpackLikesMasterReady = true;\n\n\t\t\tvar stylesData = {\n\t\t\t\t\tevent: 'injectStyles'\n\t\t\t\t},\n\t\t\t\t$sdTextColor = jQuery( '.sd-text-color' ),\n\t\t\t\t$sdLinkColor = jQuery( '.sd-link-color' );\n\n\t\t\tif ( jQuery( 'iframe.admin-bar-likes-widget' ).length > 0 ) {\n\t\t\t\tJetpackLikespostMessage( { event: 'adminBarEnabled' }, window.frames[ 'likes-master' ] );\n\n\t\t\t\tstylesData.adminBarStyles = {\n\t\t\t\t\tbackground: jQuery( '#wpadminbar .quicklinks li#wp-admin-bar-wpl-like > a' ).css( 'background' ),\n\t\t\t\t\tisRtl: ( 'rtl' === jQuery( '#wpadminbar' ).css( 'direction' ) )\n\t\t\t\t};\n\t\t\t}\n\n\t\t\t// enable reblogs if we're on a single post page\n\t\t\tif ( jQuery( 'body' ).hasClass( 'single' ) ) {\n\t\t\t\tJetpackLikespostMessage( { event: 'reblogsEnabled' }, window.frames[ 'likes-master' ] );\n\t\t\t}\n\n\t\t\tif ( ! window.addEventListener ) {\n\t\t\t\tjQuery( '#wp-admin-bar-admin-bar-likes-widget' ).hide();\n\t\t\t}\n\n\t\t\tstylesData.textStyles = {\n\t\t\t\tcolor:          $sdTextColor.css( 'color' ),\n\t\t\t\tfontFamily:     $sdTextColor.css( 'font-family' ),\n\t\t\t\tfontSize:       $sdTextColor.css( 'font-size' ),\n\t\t\t\tdirection:      $sdTextColor.css( 'direction' ),\n\t\t\t\tfontWeight:     $sdTextColor.css( 'font-weight' ),\n\t\t\t\tfontStyle:      $sdTextColor.css( 'font-style' ),\n\t\t\t\ttextDecoration: $sdTextColor.css('text-decoration')\n\t\t\t};\n\n\t\t\tstylesData.linkStyles = {\n\t\t\t\tcolor:          $sdLinkColor.css('color'),\n\t\t\t\tfontFamily:     $sdLinkColor.css('font-family'),\n\t\t\t\tfontSize:       $sdLinkColor.css('font-size'),\n\t\t\t\ttextDecoration: $sdLinkColor.css('text-decoration'),\n\t\t\t\tfontWeight:     $sdLinkColor.css( 'font-weight' ),\n\t\t\t\tfontStyle:      $sdLinkColor.css( 'font-style' )\n\t\t\t};\n\n\t\t\tJetpackLikespostMessage( stylesData, window.frames[ 'likes-master' ] );\n\n\t\t\tJetpackLikesBatchHandler();\n\n\t\t\tjQuery( document ).on( 'inview', 'div.jetpack-likes-widget-unloaded', function() {\n\t\t\t\tjetpackLikesWidgetQueue.push( this.id );\n\t\t\t});\n\t\t});\n\t}\n\n\tif ( 'showLikeWidget' === event.event ) {\n\t\tjQuery( '#' + event.id + ' .post-likes-widget-placeholder'  ).fadeOut( 'fast', function() {\n\t\t\tjQuery( '#' + event.id + ' .post-likes-widget' ).fadeIn( 'fast', function() {\n\t\t\t\tJetpackLikespostMessage( { event: 'likeWidgetDisplayed', blog_id: event.blog_id, post_id: event.post_id, obj_id: event.obj_id }, window.frames['likes-master'] );\n\t\t\t});\n\t\t});\n\t}\n\n\tif ( 'clickReblogFlair' === event.event ) {\n\t\twpcom_reblog.toggle_reblog_box_flair( event.obj_id );\n\t}\n\n\tif ( 'showOtherGravatars' === event.event ) {\n\t\t$container = jQuery( '#likes-other-gravatars' );\n\t\t$list = $container.find( 'ul' );\n\n\t\t$container.hide();\n\t\t$list.html( '' );\n\n\t\t$container.find( '.likes-text span' ).text( event.total );\n\n\t\tjQuery.each( event.likers, function( i, liker ) {\n\t\t\tvar element = jQuery( '<li><a><img /></a></li>' );\n\t\t\telement.addClass( liker.css_class );\n\n\t\t\telement.find( 'a' ).\n\t\t\t\tattr({\n\t\t\t\t\thref: liker.profile_URL,\n\t\t\t\t\trel: 'nofollow',\n\t\t\t\t\ttarget: '_parent'\n\t\t\t\t}).\n\t\t\t\taddClass( 'wpl-liker' );\n\n\t\t\telement.find( 'img' ).\n\t\t\t\tattr({\n\t\t\t\t\tsrc: liker.avatar_URL,\n\t\t\t\t\talt: liker.name\n\t\t\t\t}).\n\t\t\t\tcss({\n\t\t\t\t\twidth: '30px',\n\t\t\t\t\theight: '30px',\n\t\t\t\t\tpaddingRight: '3px'\n\t\t\t\t});\n\n\t\t\t$list.append( element );\n\t\t} );\n\n\t\toffset = jQuery( '[name=\\'' + event.parent + '\\']' ).offset();\n\n\t\t$container.css( 'left', offset.left + event.position.left - 10 + 'px' );\n\t\t$container.css( 'top', offset.top + event.position.top - 33 + 'px' );\n\n\t\trowLength = Math.floor( event.width / 37 );\n\t\theight = ( Math.ceil( event.likers.length / rowLength ) * 37 ) + 13;\n\t\tif ( height > 204 ) {\n\t\t\theight = 204;\n\t\t}\n\n\t\t$container.css( 'height', height + 'px' );\n\t\t$container.css( 'width', rowLength * 37 - 7 + 'px' );\n\n\t\t$list.css( 'width', rowLength * 37 + 'px' );\n\n\t\t$container.fadeIn( 'slow' );\n\n\t\tscrollbarWidth = $list[0].offsetWidth - $list[0].clientWidth;\n\t\tif ( scrollbarWidth > 0 ) {\n\t\t\t$container.width( $container.width() + scrollbarWidth );\n\t\t\t$list.width( $list.width() + scrollbarWidth );\n\t\t}\n\t}\n}\n\npm.bind( 'likesMessage', JetpackLikesMessageListener );\n\njQuery( document ).click( function( e ) {\n\tvar $container = jQuery( '#likes-other-gravatars' );\n\n\tif ( $container.has( e.target ).length === 0 ) {\n\t\t$container.fadeOut( 'slow' );\n\t}\n});\n\nfunction JetpackLikesWidgetQueueHandler() {\n\tvar $wrapper, wrapperID, found;\n\tif ( ! jetpackLikesMasterReady ) {\n\t\tsetTimeout( JetpackLikesWidgetQueueHandler, 500 );\n\t\treturn;\n\t}\n\n\tif ( jetpackLikesWidgetQueue.length > 0 ) {\n\t\t// We may have a widget that needs creating now\n\t\tfound = false;\n\t\twhile( jetpackLikesWidgetQueue.length > 0 ) {\n\t\t\t// Grab the first member of the queue that isn't already loading.\n\t\t\twrapperID = jetpackLikesWidgetQueue.splice( 0, 1 )[0];\n\t\t\tif ( jQuery( '#' + wrapperID ).hasClass( 'jetpack-likes-widget-unloaded' ) ) {\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif ( ! found ) {\n\t\t\tsetTimeout( JetpackLikesWidgetQueueHandler, 500 );\n\t\t\treturn;\n\t\t}\n\t} else if ( jQuery( 'div.jetpack-likes-widget-unloaded' ).length > 0 ) {\n\t\t// Grab any unloaded widgets for a batch request\n\t\tJetpackLikesBatchHandler();\n\n\t\t// Get the next unloaded widget\n\t\twrapperID = jQuery( 'div.jetpack-likes-widget-unloaded' ).first()[0].id;\n\t\tif ( ! wrapperID ) {\n\t\t\t// Everything is currently loaded\n\t\t\tsetTimeout( JetpackLikesWidgetQueueHandler, 500 );\n\t\t\treturn;\n\t\t}\n\t}\n\n\tif ( 'undefined' === typeof wrapperID ) {\n\t\tsetTimeout( JetpackLikesWidgetQueueHandler, 500 );\n\t\treturn;\n\t}\n\n\t$wrapper = jQuery( '#' + wrapperID );\n\t$wrapper.find( 'iframe' ).remove();\n\n\tif ( $wrapper.hasClass( 'slim-likes-widget' ) ) {\n\t\t$wrapper.find( '.post-likes-widget-placeholder' ).after( '<iframe class=\"post-likes-widget jetpack-likes-widget\" name=\"' + $wrapper.data( 'name' ) + '\" height=\"22px\" width=\"68px\" frameBorder=\"0\" scrolling=\"no\" src=\"' + $wrapper.data( 'src' ) + '\"></iframe>' );\n\t} else {\n\t\t$wrapper.find( '.post-likes-widget-placeholder' ).after( '<iframe class=\"post-likes-widget jetpack-likes-widget\" name=\"' + $wrapper.data( 'name' ) + '\" height=\"55px\" width=\"100%\" frameBorder=\"0\" src=\"' + $wrapper.data( 'src' ) + '\"></iframe>' );\n\t}\n\n\t$wrapper.removeClass( 'jetpack-likes-widget-unloaded' ).addClass( 'jetpack-likes-widget-loading' );\n\n\t$wrapper.find( 'iframe' ).load( function( e ) {\n\t\tvar $iframe = jQuery( e.target );\n\t\t$wrapper.removeClass( 'jetpack-likes-widget-loading' ).addClass( 'jetpack-likes-widget-loaded' );\n\n\t\tJetpackLikespostMessage( { event: 'loadLikeWidget', name: $iframe.attr( 'name' ), width: $iframe.width() }, window.frames[ 'likes-master' ] );\n\n\t\tif ( $wrapper.hasClass( 'slim-likes-widget' ) ) {\n\t\t\t$wrapper.find( 'iframe' ).Jetpack( 'resizeable' );\n\t\t}\n\t});\n\tsetTimeout( JetpackLikesWidgetQueueHandler, 250 );\n}\nJetpackLikesWidgetQueueHandler();\n;\n/***\n * Warning: This file is remotely enqueued in Jetpack's Masterbar module.\n * Changing it will also affect Jetpack sites.\n */\njQuery( document ).ready( function( $, wpcom ) {\n\tvar masterbar,\n\t\tmenupops = $( 'li#wp-admin-bar-blog.menupop, li#wp-admin-bar-newdash.menupop, li#wp-admin-bar-my-account.menupop' ),\n\t\tnewmenu = $( '#wp-admin-bar-new-post-types' );\n\n\t// Unbind hoverIntent, we want clickable menus.\n\tmenupops\n\t\t.unbind( 'mouseenter mouseleave' )\n\t\t.removeProp( 'hoverIntent_t' )\n\t\t.removeProp( 'hoverIntent_s' )\n\t\t.on( 'mouseover', function(e) {\n\t\t\tvar li = $(e.target).closest( 'li.menupop' );\n\t\t\tmenupops.not(li).removeClass( 'ab-hover' );\n\t\t\tli.toggleClass( 'ab-hover' );\n\t\t} )\n\t\t.on( 'click touchstart', function(e) {\n\t\t\tvar $target = $( e.target );\n\n\t\t\tif ( masterbar.focusSubMenus( $target ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\te.preventDefault();\n\t\t\tmasterbar.toggleMenu( $target );\n\t\t} );\n\n\tmasterbar = {\n\t\tfocusSubMenus: function( $target ) {\n\t\t\t// Handle selection of menu items\n\t\t\tif ( ! $target.closest( 'ul' ).hasClass( 'ab-top-menu' ) ) {\n\t\t\t\t$target\n\t\t\t\t\t.closest( 'li' );\n\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\treturn false;\n\t\t},\n\n\t\ttoggleMenu: function( $target ) {\n\t\t\tvar $li = $target.closest( 'li.menupop' ),\n\t\t\t\t$html = $( 'html' );\n\n\t\t\t$( 'body' ).off( 'click.ab-menu' );\n\t\t\t$( '#wpadminbar li.menupop' ).not($li).removeClass( 'ab-active wpnt-stayopen wpnt-show' );\n\n\t\t\tif ( $li.hasClass( 'ab-active' ) ) {\n\t\t\t\t$li.removeClass( 'ab-active' );\n\t\t\t\t$html.removeClass( 'ab-menu-open' );\n\t\t\t} else {\n\t\t\t\t$li.addClass( 'ab-active' );\n\t\t\t\t$html.addClass( 'ab-menu-open' );\n\n\t\t\t\t$( 'body' ).on( 'click.ab-menu', function( e ) {\n\t\t\t\t\tif ( ! $( e.target ).parents( '#wpadminbar' ).length ) {\n\t\t\t\t\t\te.preventDefault();\n\t\t\t\t\t\tmasterbar.toggleMenu( $li );\n\t\t\t\t\t\t$( 'body' ).off( 'click.ab-menu' );\n\t\t\t\t\t}\n\t\t\t\t} );\n\t\t\t}\n\t\t}\n\t};\n} );;\n/*globals JSON */\n( function( $ ) {\n\tvar eventName = 'wpcom_masterbar_click';\n\n\tvar linksTracksEvents = {\n\t\t//top level items\n\t\t'wp-admin-bar-blog'                        : 'my_sites',\n\t\t'wp-admin-bar-newdash'                     : 'reader',\n\t\t'wp-admin-bar-ab-new-post'                 : 'write_button',\n\t\t'wp-admin-bar-my-account'                  : 'my_account',\n\t\t'wp-admin-bar-notes'                       : 'notifications',\n\t\t//my sites - top items\n\t\t'wp-admin-bar-switch-site'                 : 'my_sites_switch_site',\n\t\t'wp-admin-bar-blog-info'                   : 'my_sites_site_info',\n\t\t'wp-admin-bar-site-view'                   : 'my_sites_view_site',\n\t\t'wp-admin-bar-blog-stats'                  : 'my_sites_site_stats',\n\t\t'wp-admin-bar-plan'                        : 'my_sites_plan',\n\t\t'wp-admin-bar-plan-badge'                  : 'my_sites_plan_badge',\n\t\t//my sites - manage\n\t\t'wp-admin-bar-edit-page'                   : 'my_sites_manage_site_pages',\n\t\t'wp-admin-bar-new-page-badge'              : 'my_sites_manage_add_page',\n\t\t'wp-admin-bar-edit-post'                   : 'my_sites_manage_blog_posts',\n\t\t'wp-admin-bar-new-post-badge'              : 'my_sites_manage_add_post',\n\t\t'wp-admin-bar-edit-attachment'             : 'my_sites_manage_media',\n\t\t'wp-admin-bar-new-attachment-badge'        : 'my_sites_manage_add_media',\n\t\t'wp-admin-bar-comments'                    : 'my_sites_manage_comments',\n\t\t'wp-admin-bar-edit-jetpack-testimonial'    : 'my_sites_manage_testimonials',\n\t\t'wp-admin-bar-new-jetpack-testimonial'     : 'my_sites_manage_add_testimonial',\n\t\t'wp-admin-bar-edit-jetpack-portfolio'      : 'my_sites_manage_portfolio',\n\t\t'wp-admin-bar-new-jetpack-portfolio'       : 'my_sites_manage_add_portfolio',\n\t\t//my sites - personalize\n\t\t'wp-admin-bar-themes'                      : 'my_sites_personalize_themes',\n\t\t'wp-admin-bar-cmz'                         : 'my_sites_personalize_themes_customize',\n\t\t//my sites - configure\n\t\t'wp-admin-bar-sharing'                     : 'my_sites_configure_sharing',\n\t\t'wp-admin-bar-people'                      : 'my_sites_configure_people',\n\t\t'wp-admin-bar-people-add'                  : 'my_sites_configure_people_add_button',\n\t\t'wp-admin-bar-plugins'                     : 'my_sites_configure_plugins',\n\t\t'wp-admin-bar-domains'                     : 'my_sites_configure_domains',\n\t\t'wp-admin-bar-domains-add'                 : 'my_sites_configure_add_domain',\n\t\t'wp-admin-bar-blog-settings'               : 'my_sites_configure_settings',\n\t\t'wp-admin-bar-legacy-dashboard'            : 'my_sites_configure_wp_admin',\n\t\t//reader\n\t\t'wp-admin-bar-followed-sites'              : 'reader_followed_sites',\n\t\t'wp-admin-bar-reader-followed-sites-manage': 'reader_manage_followed_sites',\n\t\t'wp-admin-bar-discover-discover'           : 'reader_discover',\n\t\t'wp-admin-bar-discover-search'             : 'reader_search',\n\t\t'wp-admin-bar-my-activity-my-likes'        : 'reader_my_likes',\n\t\t//account\n\t\t'wp-admin-bar-user-info'                   : 'my_account_user_name',\n\t\t// account - profile\n\t\t'wp-admin-bar-my-profile'                  : 'my_account_profile_my_profile',\n\t\t'wp-admin-bar-account-settings'            : 'my_account_profile_account_settings',\n\t\t'wp-admin-bar-billing'                     : 'my_account_profile_manage_purchases',\n\t\t'wp-admin-bar-security'                    : 'my_account_profile_security',\n\t\t'wp-admin-bar-notifications'               : 'my_account_profile_notifications',\n\t\t//account - special\n\t\t'wp-admin-bar-get-apps'                    : 'my_account_special_get_apps',\n\t\t'wp-admin-bar-next-steps'                  : 'my_account_special_next_steps',\n\t\t'wp-admin-bar-help'                        : 'my_account_special_help',\n\t};\n\n\tvar notesTracksEvents = {\n\t\topenSite: function( data ) {\n\t\t\treturn {\n\t\t\t\tclicked: 'masterbar_notifications_panel_site',\n\t\t\t\tsite_id: data.siteId\n\t\t\t};\n\t\t},\n\t\topenPost: function( data ) {\n\t\t\treturn {\n\t\t\t\tclicked: 'masterbar_notifications_panel_post',\n\t\t\t\tsite_id: data.siteId,\n\t\t\t\tpost_id: data.postId\n\t\t\t};\n\t\t},\n\t\topenComment: function( data ) {\n\t\t\treturn {\n\t\t\t\tclicked: 'masterbar_notifications_panel_comment',\n\t\t\t\tsite_id: data.siteId,\n\t\t\t\tpost_id: data.postId,\n\t\t\t\tcomment_id: data.commentId\n\t\t\t};\n\t\t}\n\t};\n\n\tfunction recordTracksEvent( eventProps ) {\n\t\teventProps = eventProps || {};\n\t\twindow._tkq = window._tkq || [];\n\t\twindow._tkq.push( [ 'recordEvent', eventName, eventProps ] );\n\t}\n\n\tfunction parseJson( s, defaultValue ) {\n\t\ttry {\n\t\t\treturn JSON.parse( s );\n\t\t} catch ( e ) {\n\t\t\treturn defaultValue;\n\t\t}\n\t}\n\n\t$( document ).ready( function() {\n\t\tvar trackableLinks = '.mb-trackable .ab-item:not(div),' +\n\t\t\t'#wp-admin-bar-notes .ab-item,' +\n\t\t\t'#wp-admin-bar-user-info .ab-item,' +\n\t\t\t'.mb-trackable .ab-secondary';\n\n\t\t$( trackableLinks ).on( 'click touchstart', function( e ) {\n\t\t\tvar $target = $( e.target ),\n\t\t\t\t$parent = $target.closest( 'li' );\n\n\t\t\tif ( ! $parent ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar trackingId = $target.attr( 'ID' ) || $parent.attr( 'ID' );\n\n\t\t\tif ( ! linksTracksEvents.hasOwnProperty( trackingId ) ) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tvar eventProps = { 'clicked': linksTracksEvents[ trackingId ] };\n\n\t\t\trecordTracksEvent( eventProps );\n\t\t} );\n\t} );\n\n\t// listen for postMessage events from the notifications iframe\n\t$( window ).on( 'message', function( e ) {\n\t\tvar event = ! e.data && e.originalEvent.data ? e.originalEvent : e;\n\t\tif ( event.origin !== 'https://widgets.wp.com' ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar data = ( 'string' === typeof event.data ) ? parseJson( event.data, {} ) : event.data;\n\t\tif ( 'notesIframeMessage' !== data.type ) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar eventData = notesTracksEvents[ data.action ];\n\t\tif ( ! eventData ) {\n\t\t\treturn;\n\t\t}\n\n\t\trecordTracksEvent( eventData( data ) );\n\t} );\n\n} )( jQuery );\n;\nvar ak_js = document.getElementById( \"ak_js\" );\n\nif ( ! ak_js ) {\n\tak_js = document.createElement( 'input' );\n\tak_js.setAttribute( 'id', 'ak_js' );\n\tak_js.setAttribute( 'name', 'ak_js' );\n\tak_js.setAttribute( 'type', 'hidden' );\n}\nelse {\n\tak_js.parentNode.removeChild( ak_js );\n}\n\nak_js.setAttribute( 'value', ( new Date() ).getTime() );\n\nvar commentForm = document.getElementById( 'commentform' );\n\nif ( commentForm ) {\n\tcommentForm.appendChild( ak_js );\n}\nelse {\n\tvar replyRowContainer = document.getElementById( 'replyrow' );\n\n\tif ( replyRowContainer ) {\n\t\tvar children = replyRowContainer.getElementsByTagName( 'td' );\n\n\t\tif ( children.length > 0 ) {\n\t\t\tchildren[0].appendChild( ak_js );\n\t\t}\n\t}\n};\n"
  301.           },
  302.           "redirectURL": "",
  303.           "headersSize": 358,
  304.           "bodySize": 4977
  305.         },
  306.         "cache": {},
  307.         "timings": {
  308.           "blocked": 0,
  309.           "dns": 0,
  310.           "connect": 0,
  311.           "ssl": 0,
  312.           "send": 0,
  313.           "wait": 69,
  314.           "receive": 0
  315.         },
  316.         "time": 69,
  317.         "_securityState": "secure",
  318.         "serverIPAddress": "192.0.77.32",
  319.         "connection": "443"
  320.       }
  321.     ]
  322.   }
  323. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement