# webappsstore2

originKey: rb.moc.lou.siam.reyalp.:https:443
scope: rb.moc.lou.siam.reyalp.:https:443
key: UOLPlayer-hls
value:
  {"url":"//player.mais.uol.com.br/js/uolplayer.hls.min.js?v=2.1.42","key":"hls","type":"javascript","checksum":"hls","crossOrigin":"anonymous","size":177377,"crc32":-513395979,"createdAt":1544208681920,"data":"!function(t,e){t.Hls=e()}(this,function(){return function(t){function e(i){if(r[i])return r[i].exports;var a=r[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var r={};return e.m=t,e.c=r,e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var r=t&&t.__esModule?function(){return t[\"default\"]}:function(){return t};return e.d(r,\"a\",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"/dist/\",e(e.s=10)}([function(t,e,r){\"use strict\";function i(){}function a(t,e){return e=\"[\"+t+\"] > \"+e}function n(t){var e=f.console[t];return e?function(){for(var r=arguments.length,i=Array(r),n=0;n<r;n++)i[n]=arguments[n];i[0]&&(i[0]=a(t,i[0])),e.apply(f.console,i)}:i}function o(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];r.forEach(function(e){u[e]=t[e]?t[e].bind(t):n(e)})}r.d(e,\"a\",function(){return h}),r.d(e,\"b\",function(){return c});var s=r(4),l=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},d={trace:i,debug:i,log:i,warn:i,info:i,error:i},u=d,f=Object(s.a)(),h=function(t){if(t===!0||\"object\"===(\"undefined\"==typeof t?\"undefined\":l(t))){o(t,\"debug\",\"log\",\"info\",\"warn\",\"error\");try{u.log()}catch(e){u=d}}else u=d},c=u},function(t,e,r){\"use strict\";var i={MEDIA_ATTACHING:\"hlsMediaAttaching\",MEDIA_ATTACHED:\"hlsMediaAttached\",MEDIA_DETACHING:\"hlsMediaDetaching\",MEDIA_DETACHED:\"hlsMediaDetached\",BUFFER_RESET:\"hlsBufferReset\",BUFFER_CODECS:\"hlsBufferCodecs\",BUFFER_CREATED:\"hlsBufferCreated\",BUFFER_APPENDING:\"hlsBufferAppending\",BUFFER_APPENDED:\"hlsBufferAppended\",BUFFER_EOS:\"hlsBufferEos\",BUFFER_FLUSHING:\"hlsBufferFlushing\",BUFFER_FLUSHED:\"hlsBufferFlushed\",MANIFEST_LOADING:\"hlsManifestLoading\",MANIFEST_LOADED:\"hlsManifestLoaded\",MANIFEST_PARSED:\"hlsManifestParsed\",LEVEL_SWITCHING:\"hlsLevelSwitching\",LEVEL_SWITCHED:\"hlsLevelSwitched\",LEVEL_LOADING:\"hlsLevelLoading\",LEVEL_LOADED:\"hlsLevelLoaded\",LEVEL_UPDATED:\"hlsLevelUpdated\",LEVEL_PTS_UPDATED:\"hlsLevelPtsUpdated\",AUDIO_TRACKS_UPDATED:\"hlsAudioTracksUpdated\",AUDIO_TRACK_SWITCHING:\"hlsAudioTrackSwitching\",AUDIO_TRACK_SWITCHED:\"hlsAudioTrackSwitched\",AUDIO_TRACK_LOADING:\"hlsAudioTrackLoading\",AUDIO_TRACK_LOADED:\"hlsAudioTrackLoaded\",SUBTITLE_TRACKS_UPDATED:\"hlsSubtitleTracksUpdated\",SUBTITLE_TRACK_SWITCH:\"hlsSubtitleTrackSwitch\",SUBTITLE_TRACK_LOADING:\"hlsSubtitleTrackLoading\",SUBTITLE_TRACK_LOADED:\"hlsSubtitleTrackLoaded\",SUBTITLE_FRAG_PROCESSED:\"hlsSubtitleFragProcessed\",INIT_PTS_FOUND:\"hlsInitPtsFound\",FRAG_LOADING:\"hlsFragLoading\",FRAG_LOAD_PROGRESS:\"hlsFragLoadProgress\",FRAG_LOAD_EMERGENCY_ABORTED:\"hlsFragLoadEmergencyAborted\",FRAG_LOADED:\"hlsFragLoaded\",FRAG_DECRYPTED:\"hlsFragDecrypted\",FRAG_PARSING_INIT_SEGMENT:\"hlsFragParsingInitSegment\",FRAG_PARSING_USERDATA:\"hlsFragParsingUserdata\",FRAG_PARSING_METADATA:\"hlsFragParsingMetadata\",FRAG_PARSING_DATA:\"hlsFragParsingData\",FRAG_PARSED:\"hlsFragParsed\",FRAG_BUFFERED:\"hlsFragBuffered\",FRAG_CHANGED:\"hlsFragChanged\",FPS_DROP:\"hlsFpsDrop\",FPS_DROP_LEVEL_CAPPING:\"hlsFpsDropLevelCapping\",ERROR:\"hlsError\",DESTROYING:\"hlsDestroying\",KEY_LOADING:\"hlsKeyLoading\",KEY_LOADED:\"hlsKeyLoaded\",STREAM_STATE_TRANSITION:\"hlsStreamStateTransition\"};e.a=i},function(t,e,r){\"use strict\";r.d(e,\"b\",function(){return i}),r.d(e,\"a\",function(){return a});var i={NETWORK_ERROR:\"networkError\",MEDIA_ERROR:\"mediaError\",KEY_SYSTEM_ERROR:\"keySystemError\",MUX_ERROR:\"muxError\",OTHER_ERROR:\"otherError\"},a={KEY_SYSTEM_NO_KEYS:\"keySystemNoKeys\",KEY_SYSTEM_NO_ACCESS:\"keySystemNoAccess\",KEY_SYSTEM_NO_SESSION:\"keySystemNoSession\",KEY_SYSTEM_LICENSE_REQUEST_FAILED:\"keySystemLicenseRequestFailed\",MANIFEST_LOAD_ERROR:\"manifestLoadError\",MANIFEST_LOAD_TIMEOUT:\"manifestLoadTimeOut\",MANIFEST_PARSING_ERROR:\"manifestParsingError\",MANIFEST_INCOMPATIBLE_CODECS_ERROR:\"manifestIncompatibleCodecsError\",LEVEL_LOAD_ERROR:\"levelLoadError\",LEVEL_LOAD_TIMEOUT:\"levelLoadTimeOut\",LEVEL_SWITCH_ERROR:\"levelSwitchError\",AUDIO_TRACK_LOAD_ERROR:\"audioTrackLoadError\",AUDIO_TRACK_LOAD_TIMEOUT:\"audioTrackLoadTimeOut\",FRAG_LOAD_ERROR:\"fragLoadError\",FRAG_LOAD_TIMEOUT:\"fragLoadTimeOut\",FRAG_DECRYPT_ERROR:\"fragDecryptError\",FRAG_PARSING_ERROR:\"fragParsingError\",REMUX_ALLOC_ERROR:\"remuxAllocError\",KEY_LOAD_ERROR:\"keyLoadError\",KEY_LOAD_TIMEOUT:\"keyLoadTimeOut\",BUFFER_ADD_CODEC_ERROR:\"bufferAddCodecError\",BUFFER_APPEND_ERROR:\"bufferAppendError\",BUFFER_APPENDING_ERROR:\"bufferAppendingError\",BUFFER_STALLED_ERROR:\"bufferStalledError\",BUFFER_FULL_ERROR:\"bufferFullError\",BUFFER_SEEK_OVER_HOLE:\"bufferSeekOverHole\",BUFFER_NUDGE_ON_STALL:\"bufferNudgeOnStall\",INTERNAL_EXCEPTION:\"internalException\"}},function(t,e){t.exports=void 0},function(t,e,r){\"use strict\";function i(){return\"undefined\"==typeof window?self:window}e.a=i},function(t,e,r){!function(e){var r=/^((?:[a-zA-Z0-9+\\-.]+:)?)(\\/\\/[^\\/\\;?#]*)?(.*?)??(;.*?)?(\\?.*?)?(#.*?)?$/,i=/^([^\\/;?#]*)(.*)$/,a=/(?:\\/|^)\\.(?=\\/)/g,n=/(?:\\/|^)\\.\\.\\/(?!\\.\\.\\/).*?(?=\\/)/g,o={buildAbsoluteURL:function(t,e,r){if(r=r||{},t=t.trim(),e=e.trim(),!e){if(!r.alwaysNormalize)return t;var a=this.parseURL(t);if(!s)throw new Error(\"Error trying to parse base URL.\");return a.path=o.normalizePath(a.path),o.buildURLFromParts(a)}var n=this.parseURL(e);if(!n)throw new Error(\"Error trying to parse relative URL.\");if(n.scheme)return r.alwaysNormalize?(n.path=o.normalizePath(n.path),o.buildURLFromParts(n)):e;var s=this.parseURL(t);if(!s)throw new Error(\"Error trying to parse base URL.\");if(!s.netLoc&&s.path&&\"/\"!==s.path[0]){var l=i.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path=\"/\");var d={scheme:s.scheme,netLoc:n.netLoc,path:null,params:n.params,query:n.query,fragment:n.fragment};if(!n.netLoc&&(d.netLoc=s.netLoc,\"/\"!==n.path[0]))if(n.path){var u=s.path,f=u.substring(0,u.lastIndexOf(\"/\")+1)+n.path;d.path=o.normalizePath(f)}else d.path=s.path,n.params||(d.params=s.params,n.query||(d.query=s.query));return null===d.path&&(d.path=r.alwaysNormalize?o.normalizePath(n.path):n.path),o.buildURLFromParts(d)},parseURL:function(t){var e=r.exec(t);return e?{scheme:e[1]||\"\",netLoc:e[2]||\"\",path:e[3]||\"\",params:e[4]||\"\",query:e[5]||\"\",fragment:e[6]||\"\"}:null},normalizePath:function(t){for(t=t.split(\"\").reverse().join(\"\").replace(a,\"\");t.length!==(t=t.replace(n,\"\")).length;);return t.split(\"\").reverse().join(\"\")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}};t.exports=o}(this)},function(t,e){function r(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function i(t){return\"function\"==typeof t}function a(t){return\"number\"==typeof t}function n(t){return\"object\"==typeof t&&null!==t}function o(t){return void 0===t}t.exports=r,r.EventEmitter=r,r.prototype._events=void 0,r.prototype._maxListeners=void 0,r.defaultMaxListeners=10,r.prototype.setMaxListeners=function(t){if(!a(t)||t<0||isNaN(t))throw TypeError(\"n must be a positive number\");return this._maxListeners=t,this},r.prototype.emit=function(t){var e,r,a,s,l,d;if(this._events||(this._events={}),\"error\"===t&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var u=new Error('Uncaught, unspecified \"error\" event. ('+e+\")\");throw u.context=e,u}if(r=this._events[t],o(r))return!1;if(i(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),r.apply(this,s)}else if(n(r))for(s=Array.prototype.slice.call(arguments,1),d=r.slice(),a=d.length,l=0;l<a;l++)d[l].apply(this,s);return!0},r.prototype.addListener=function(t,e){var a;if(!i(e))throw TypeError(\"listener must be a function\");return this._events||(this._events={}),this._events.newListener&&this.emit(\"newListener\",t,i(e.listener)?e.listener:e),this._events[t]?n(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,n(this._events[t])&&!this._events[t].warned&&(a=o(this._maxListeners)?r.defaultMaxListeners:this._maxListeners,a&&a>0&&this._events[t].length>a&&(this._events[t].warned=!0,console.error(\"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.\",this._events[t].length),\"function\"==typeof console.trace&&console.trace())),this},r.prototype.on=r.prototype.addListener,r.prototype.once=function(t,e){function r(){this.removeListener(t,r),a||(a=!0,e.apply(this,arguments))}if(!i(e))throw TypeError(\"listener must be a function\");var a=!1;return r.listener=e,this.on(t,r),this},r.prototype.removeListener=function(t,e){var r,a,o,s;if(!i(e))throw TypeError(\"listener must be a function\");if(!this._events||!this._events[t])return this;if(r=this._events[t],o=r.length,a=-1,r===e||i(r.listener)&&r.listener===e)delete this._events[t],this._events.removeListener&&this.emit(\"removeListener\",t,e);else if(n(r)){for(s=o;s-- >0;)if(r[s]===e||r[s].listener&&r[s].listener===e){a=s;break}if(a<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(a,1),this._events.removeListener&&this.emit(\"removeListener\",t,e)}return this},r.prototype.removeAllListeners=function(t){var e,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)\"removeListener\"!==e&&this.removeAllListeners(e);return this.removeAllListeners(\"removeListener\"),this._events={},this}if(r=this._events[t],i(r))this.removeListener(t,r);else if(r)for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},r.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?i(this._events[t])?[this._events[t]]:this._events[t].slice():[]},r.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(i(e))return 1;if(e)return e.length}return 0},r.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,r){\"use strict\";function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var a=function(){function t(){i(this,t)}return t.isHeader=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},t.isFooter=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},t.getID3Data=function(e,r){for(var i=r,a=0;t.isHeader(e,r);){a+=10;var n=t._readSize(e,r+6);a+=n,t.isFooter(e,r+10)&&(a+=10),r+=a}if(a>0)return e.subarray(i,i+a)},t._readSize=function(t,e){var r=0;return r=(127&t[e])<<21,r|=(127&t[e+1])<<14,r|=(127&t[e+2])<<7,r|=127&t[e+3]},t.getTimeStamp=function(e){for(var r=t.getID3Frames(e),i=0;i<r.length;i++){var a=r[i];if(t.isTimeStampFrame(a))return t._readTimeStamp(a)}},t.isTimeStampFrame=function(t){return t&&\"PRIV\"===t.key&&\"com.apple.streaming.transportStreamTimestamp\"===t.info},t._getFrameData=function(e){var r=String.fromCharCode(e[0],e[1],e[2],e[3]),i=t._readSize(e,4),a=10;return{type:r,size:i,data:e.subarray(a,a+i)}},t.getID3Frames=function(e){for(var r=0,i=[];t.isHeader(e,r);){var a=t._readSize(e,r+6);r+=10;for(var n=r+a;r+8<n;){var o=t._getFrameData(e.subarray(r)),s=t._decodeFrame(o);s&&i.push(s),r+=o.size+10}t.isFooter(e,r)&&(r+=10)}return i},t._decodeFrame=function(e){return\"PRIV\"===e.type?t._decodePrivFrame(e):\"T\"===e.type[0]?t._decodeTextFrame(e):\"W\"===e.type[0]?t._decodeURLFrame(e):void 0},t._readTimeStamp=function(t){if(8===t.data.byteLength){var e=new Uint8Array(t.data),r=1&e[3],i=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return i/=45,r&&(i+=47721858.84),Math.round(i)}},t._decodePrivFrame=function(e){if(!(e.size<2)){var r=t._utf8ArrayToStr(e.data,!0),i=new Uint8Array(e.data.subarray(r.length+1));return{key:e.type,info:r,data:i.buffer}}},t._decodeTextFrame=function(e){if(!(e.size<2)){if(\"TXXX\"===e.type){var r=1,i=t._utf8ArrayToStr(e.data.subarray(r));r+=i.length+1;var a=t._utf8ArrayToStr(e.data.subarray(r));return{key:e.type,info:i,data:a}}var n=t._utf8ArrayToStr(e.data.subarray(1));return{key:e.type,data:n}}},t._decodeURLFrame=function(e){if(\"WXXX\"===e.type){if(e.size<2)return;var r=1,i=t._utf8ArrayToStr(e.data.subarray(r));r+=i.length+1;var a=t._utf8ArrayToStr(e.data.subarray(r));return{key:e.type,info:i,data:a}}var n=t._utf8ArrayToStr(e.data);return{key:e.type,data:n}},t._utf8ArrayToStr=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t.length,i=void 0,a=void 0,n=void 0,o=\"\",s=0;s<r;){if(i=t[s++],0===i&&e)return o;if(0!==i&&3!==i)switch(i>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:o+=String.fromCharCode(i);break;case 12:case 13:a=t[s++],o+=String.fromCharCode((31&i)<<6|63&a);break;case 14:a=t[s++],n=t[s++],o+=String.fromCharCode((15&i)<<12|(63&a)<<6|(63&n)<<0)}}return o},t}();a._utf8ArrayToStr;e.a=a},function(t,e,r){\"use strict\";function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var a=r(0),n=r(1),o=Math.pow(2,32)-1,s=function(){function t(e,r){i(this,t),this.observer=e,this.remuxer=r}return t.prototype.resetTimeStamp=function(t){this.initPTS=t},t.prototype.resetInitSegment=function(e,r,i,a){if(e&&e.byteLength){var o=this.initData=t.parseInitSegment(e);null==r&&(r=\"mp4a.40.5\"),null==i&&(i=\"avc1.42e01e\");var s={};o.audio&&o.video?s.audiovideo={container:\"video/mp4\",codec:r+\",\"+i,initSegment:a?e:null}:(o.audio&&(s.audio={container:\"audio/mp4\",codec:r,initSegment:a?e:null}),o.video&&(s.video={container:\"video/mp4\",codec:i,initSegment:a?e:null})),this.observer.trigger(n.a.FRAG_PARSING_INIT_SEGMENT,{tracks:s})}else r&&(this.audioCodec=r),i&&(this.videoCodec=i)},t.probe=function(e){return t.findBox({data:e,start:0,end:Math.min(e.length,16384)},[\"moof\"]).length>0},t.bin2str=function(t){return String.fromCharCode.apply(null,t)},t.readUint16=function(t,e){t.data&&(e+=t.start,t=t.data);var r=t[e]<<8|t[e+1];return r<0?65536+r:r},t.readUint32=function(t,e){t.data&&(e+=t.start,t=t.data);var r=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3];return r<0?4294967296+r:r},t.writeUint32=function(t,e,r){t.data&&(e+=t.start,t=t.data),t[e]=r>>24,t[e+1]=r>>16&255,t[e+2]=r>>8&255,t[e+3]=255&r},t.findBox=function(e,r){var i=[],a=void 0,n=void 0,o=void 0,s=void 0,l=void 0,d=void 0,u=void 0;if(e.data?(d=e.start,s=e.end,e=e.data):(d=0,s=e.byteLength),!r.length)return null;for(a=d;a<s;)n=t.readUint32(e,a),o=t.bin2str(e.subarray(a+4,a+8)),u=n>1?a+n:s,o===r[0]&&(1===r.length?i.push({data:e,start:a+8,end:u}):(l=t.findBox({data:e,start:a+8,end:u},r.slice(1)),l.length&&(i=i.concat(l)))),a=u;return i},t.parseSegmentIndex=function(e){var r=t.findBox(e,[\"moov\"])[0],i=r?r.end:null,a=0,n=t.findBox(e,[\"sidx\"]),o=void 0;if(!n||!n[0])return null;o=[],n=n[0];var s=n.data[0];a=0===s?8:16;var l=t.readUint32(n,a);a+=4;var d=0,u=0;a+=0===s?8:16,a+=2;var f=n.end+u,h=t.readUint16(n,a);a+=2;for(var c=0;c<h;c++){var p=a,v=t.readUint32(n,p);p+=4;var g=2147483647&v,m=(2147483648&v)>>>31;if(1===m)return void console.warn(\"SIDX has hierarchical references (not supported)\");var y=t.readUint32(n,p);p+=4,o.push({referenceSize:g,subsegmentDuration:y,info:{duration:y/l,start:f,end:f+g-1}}),f+=g,p+=4,a=p}return{earliestPresentationTime:d,timescale:l,version:s,referencesCount:h,references:o,moovEndOffset:i}},t.parseInitSegment=function(e){var r=[],i=t.findBox(e,[\"moov\",\"trak\"]);return i.forEach(function(e){var i=t.findBox(e,[\"tkhd\"])[0];if(i){var n=i.data[i.start],o=0===n?12:20,s=t.readUint32(i,o),l=t.findBox(e,[\"mdia\",\"mdhd\"])[0];if(l){n=l.data[l.start],o=0===n?12:20;var d=t.readUint32(l,o),u=t.findBox(e,[\"mdia\",\"hdlr\"])[0];if(u){var f=t.bin2str(u.data.subarray(u.start+8,u.start+12)),h={soun:\"audio\",vide:\"video\"}[f];if(h){var c=t.findBox(e,[\"mdia\",\"minf\",\"stbl\",\"stsd\"]);if(c.length){c=c[0];var p=t.bin2str(c.data.subarray(c.start+12,c.start+16));a.b.log(\"MP4Demuxer:\"+h+\":\"+p+\" found\")}r[s]={timescale:d,type:h},r[h]={timescale:d,id:s}}}}}}),r},t.getStartDTS=function(e,r){var i=void 0,a=void 0,n=void 0;return i=t.findBox(r,[\"moof\",\"traf\"]),a=[].concat.apply([],i.map(function(r){return t.findBox(r,[\"tfhd\"]).map(function(i){var a=void 0,n=void 0,o=void 0;return a=t.readUint32(i,4),n=e[a].timescale||9e4,o=t.findBox(r,[\"tfdt\"]).map(function(e){var r=void 0,i=void 0;return r=e.data[e.start],i=t.readUint32(e,4),1===r&&(i*=Math.pow(2,32),i+=t.readUint32(e,8)),i})[0],o/n})})),n=Math.min.apply(null,a),isFinite(n)?n:0},t.offsetStartDTS=function(e,r,i){t.findBox(r,[\"moof\",\"traf\"]).map(function(r){return t.findBox(r,[\"tfhd\"]).map(function(a){var n=t.readUint32(a,4),s=e[n].timescale||9e4;t.findBox(r,[\"tfdt\"]).map(function(e){var r=e.data[e.start],a=t.readUint32(e,4);if(0===r)t.writeUint32(e,4,a-i*s);else{a*=Math.pow(2,32),a+=t.readUint32(e,8),a-=i*s,a=Math.max(a,0);var n=Math.floor(a/(o+1)),l=Math.floor(a%(o+1));t.writeUint32(e,4,n),t.writeUint32(e,8,l)}})})})},t.prototype.append=function(e,r,i,a){var o=this.initData;o||(this.resetInitSegment(e,this.audioCodec,this.videoCodec,!1),o=this.initData);var s=void 0,l=this.initPTS;if(void 0===l){var d=t.getStartDTS(o,e);this.initPTS=l=d-r,this.observer.trigger(n.a.INIT_PTS_FOUND,{initPTS:l})}t.offsetStartDTS(o,e,l),s=t.getStartDTS(o,e),this.remuxer.remux(o.audio,o.video,null,null,s,i,a,e)},t.prototype.destroy=function(){},t}();e.a=s},function(t,e,r){\"use strict\";function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function a(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function n(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function o(t){var e=t.byteLength,r=e&&new DataView(t).getUint8(e-1);return r?t.slice(0,e-r):t}function s(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function l(t,e,r,i){var a=void 0,n=void 0,o=void 0,s=void 0,l=void 0,d=navigator.userAgent.toLowerCase(),u=i,f=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];return a=((192&e[r+2])>>>6)+1,n=(60&e[r+2])>>>2,n>f.length-1?void t.trigger(D.a.ERROR,{type:I.b.MEDIA_ERROR,details:I.a.FRAG_PARSING_ERROR,fatal:!0,reason:\"invalid ADTS sampling index:\"+n}):(s=(1&e[r+2])<<2,s|=(192&e[r+3])>>>6,M.b.log(\"manifest codec:\"+i+\",ADTS data:type:\"+a+\",sampleingIndex:\"+n+\"[\"+f[n]+\"Hz],channelConfig:\"+s),/firefox/i.test(d)?n>=6?(a=5,l=new Array(4),o=n-3):(a=2,l=new Array(2),o=n):d.indexOf(\"android\")!==-1?(a=2,l=new Array(2),o=n):(a=5,l=new Array(4),i&&(i.indexOf(\"mp4a.40.29\")!==-1||i.indexOf(\"mp4a.40.5\")!==-1)||!i&&n>=6?o=n-3:((i&&i.indexOf(\"mp4a.40.2\")!==-1&&(n>=6&&1===s||/vivaldi/i.test(d))||!i&&1===s)&&(a=2,l=new Array(2)),o=n)),l[0]=a<<3,l[0]|=(14&n)>>1,l[1]|=(1&n)<<7,l[1]|=s<<3,5===a&&(l[1]|=(14&o)>>1,l[2]=(1&o)<<7,l[2]|=8,l[3]=0),{config:l,samplerate:f[n],channelCount:s,codec:\"mp4a.40.\"+a,manifestCodec:u})}function d(t,e){return 255===t[e]&&240===(246&t[e+1])}function u(t,e){return 1&t[e+1]?7:9}function f(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function h(t,e){return!!(e+1<t.length&&d(t,e))}function c(t,e){if(e+1<t.length&&d(t,e)){var r=u(t,e),i=r;e+5<t.length&&(i=f(t,e));var a=e+i;if(a===t.length||a+1<t.length&&d(t,a))return!0}return!1}function p(t,e,r,i,a){if(!t.samplerate){var n=l(e,r,i,a);t.config=n.config,t.samplerate=n.samplerate,t.channelCount=n.channelCount,t.codec=n.codec,t.manifestCodec=n.manifestCodec,M.b.log(\"parsed codec:\"+t.codec+\",rate:\"+n.samplerate+\",nb channel:\"+n.channelCount)}}function v(t){return 9216e4/t}function g(t,e,r,i,a){var n=void 0,o=void 0,s=void 0,l=t.length;if(n=u(t,e),o=f(t,e),o-=n,o>0&&e+n+o<=l)return s=r+i*a,{headerLength:n,frameLength:o,stamp:s}}function m(t,e,r,i,a){var n=v(t.samplerate),o=g(e,r,i,a,n);if(o){var s=o.stamp,l=o.headerLength,d=o.frameLength,u={unit:e.subarray(r+l,r+l+d),pts:s,dts:s};return t.samples.push(u),t.len+=d,{sample:u,length:d+l}}}function y(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function b(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function E(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function T(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function S(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function A(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function _(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function R(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function L(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function w(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}var D=r(1),I=r(2),O=function(){function t(e,r){i(this,t),this.subtle=e,this.aesIV=r}return t.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:\"AES-CBC\",iv:this.aesIV},e,t)},t}(),k=O,x=function(){function t(e,r){a(this,t),this.subtle=e,this.key=r}return t.prototype.expandKey=function(){return this.subtle.importKey(\"raw\",this.key,{name:\"AES-CBC\"},!1,[\"encrypt\",\"decrypt\"])},t}(),P=x,C=function(){function t(){n(this,t),this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}return t.prototype.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),r=new Uint32Array(4),i=0;i<4;i++)r[i]=e.getUint32(4*i);return r},t.prototype.initTable=function(){var t=this.sBox,e=this.invSBox,r=this.subMix,i=r[0],a=r[1],n=r[2],o=r[3],s=this.invSubMix,l=s[0],d=s[1],u=s[2],f=s[3],h=new Uint32Array(256),c=0,p=0,v=0;for(v=0;v<256;v++)v<128?h[v]=v<<1:h[v]=v<<1^283;for(v=0;v<256;v++){var g=p^p<<1^p<<2^p<<3^p<<4;g=g>>>8^255&g^99,t[c]=g,e[g]=c;var m=h[c],y=h[m],b=h[y],E=257*h[g]^16843008*g;i[c]=E<<24|E>>>8,a[c]=E<<16|E>>>16,n[c]=E<<8|E>>>24,o[c]=E,E=16843009*b^65537*y^257*m^16843008*c,l[g]=E<<24|E>>>8,d[g]=E<<16|E>>>16,u[g]=E<<8|E>>>24,f[g]=E,c?(c=m^h[h[h[b^m]]],p^=h[h[p]]):c=p=1}},t.prototype.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),r=!0,i=0;i<e.length&&r;)r=e[i]===this.key[i],i++;if(!r){this.key=e;var a=this.keySize=e.length;if(4!==a&&6!==a&&8!==a)throw new Error(\"Invalid aes key size=\"+a);var n=this.ksRows=4*(a+6+1),o=void 0,s=void 0,l=this.keySchedule=new Uint32Array(n),d=this.invKeySchedule=new Uint32Array(n),u=this.sBox,f=this.rcon,h=this.invSubMix,c=h[0],p=h[1],v=h[2],g=h[3],m=void 0,y=void 0;for(o=0;o<n;o++)o<a?m=l[o]=e[o]:(y=m,o%a===0?(y=y<<8|y>>>24,y=u[y>>>24]<<24|u[y>>>16&255]<<16|u[y>>>8&255]<<8|u[255&y],y^=f[o/a|0]<<24):a>6&&o%a===4&&(y=u[y>>>24]<<24|u[y>>>16&255]<<16|u[y>>>8&255]<<8|u[255&y]),l[o]=m=(l[o-a]^y)>>>0);for(s=0;s<n;s++)o=n-s,y=3&s?l[o]:l[o-4],s<4||o<=4?d[s]=y:d[s]=c[u[y>>>24]]^p[u[y>>>16&255]]^v[u[y>>>8&255]]^g[u[255&y]],d[s]=d[s]>>>0}},t.prototype.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24},t.prototype.decrypt=function(t,e,r,i){for(var a=this.keySize+6,n=this.invKeySchedule,s=this.invSBox,l=this.invSubMix,d=l[0],u=l[1],f=l[2],h=l[3],c=this.uint8ArrayToUint32Array_(r),p=c[0],v=c[1],g=c[2],m=c[3],y=new Int32Array(t),b=new Int32Array(y.length),E=void 0,T=void 0,S=void 0,A=void 0,_=void 0,R=void 0,L=void 0,w=void 0,D=void 0,I=void 0,O=void 0,k=void 0,x=void 0,P=void 0,C=this.networkToHostOrderSwap;e<y.length;){for(D=C(y[e]),I=C(y[e+1]),O=C(y[e+2]),k=C(y[e+3]),_=D^n[0],R=k^n[1],L=O^n[2],w=I^n[3],x=4,P=1;P<a;P++)E=d[_>>>24]^u[R>>16&255]^f[L>>8&255]^h[255&w]^n[x],T=d[R>>>24]^u[L>>16&255]^f[w>>8&255]^h[255&_]^n[x+1],S=d[L>>>24]^u[w>>16&255]^f[_>>8&255]^h[255&R]^n[x+2],A=d[w>>>24]^u[_>>16&255]^f[R>>8&255]^h[255&L]^n[x+3],_=E,R=T,L=S,w=A,x+=4;E=s[_>>>24]<<24^s[R>>16&255]<<16^s[L>>8&255]<<8^s[255&w]^n[x],T=s[R>>>24]<<24^s[L>>16&255]<<16^s[w>>8&255]<<8^s[255&_]^n[x+1],S=s[L>>>24]<<24^s[w>>16&255]<<16^s[_>>8&255]<<8^s[255&R]^n[x+2],A=s[w>>>24]<<24^s[_>>16&255]<<16^s[R>>8&255]<<8^s[255&L]^n[x+3],x+=3,b[e]=C(E^p),b[e+1]=C(A^v),b[e+2]=C(S^g),b[e+3]=C(T^m),p=D,v=I,g=O,m=k,e+=4}return i?o(b.buffer):b.buffer},t.prototype.destroy=function(){this.key=void 0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void 0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.rcon=void 0},t}(),F=C,M=r(0),N=r(4),U=Object(N.a)(),B=function(){function t(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.removePKCS7Padding,n=void 0===a||a;if(s(this,t),this.logEnabled=!0,this.observer=e,this.config=r,this.removePKCS7Padding=n,n)try{var o=U.crypto;o&&(this.subtle=o.subtle||o.webkitSubtle)}catch(l){}this.disableWebCrypto=!this.subtle}return t.prototype.isSync=function(){return this.disableWebCrypto&&this.config.enableSoftwareAES},t.prototype.decrypt=function(t,e,r,i){var a=this;if(this.disableWebCrypto&&this.config.enableSoftwareAES){this.logEnabled&&(M.b.log(\"JS AES decrypt\"),this.logEnabled=!1);var n=this.decryptor;n||(this.decryptor=n=new F),n.expandKey(e),i(n.decrypt(t,0,r,this.removePKCS7Padding))}else{this.logEnabled&&(M.b.log(\"WebCrypto AES decrypt\"),this.logEnabled=!1);var o=this.subtle;this.key!==e&&(this.key=e,this.fastAesKey=new P(o,e)),this.fastAesKey.expandKey().then(function(n){var s=new k(o,r);s.decrypt(t,n)[\"catch\"](function(n){a.onWebCryptoError(n,t,e,r,i)}).then(function(t){i(t)})})[\"catch\"](function(n){a.onWebCryptoError(n,t,e,r,i)})}},t.prototype.onWebCryptoError=function(t,e,r,i,a){this.config.enableSoftwareAES?(M.b.log(\"WebCrypto Error, disable WebCrypto API\"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(e,r,i,a)):(M.b.error(\"decrypting error : \"+t.message),this.observer.trigger(D.a.ERROR,{type:I.b.MEDIA_ERROR,details:I.a.FRAG_DECRYPT_ERROR,fatal:!0,reason:t.message}))},t.prototype.destroy=function(){var t=this.decryptor;t&&(t.destroy(),this.decryptor=void 0)},t}(),G=B,j=r(7),K=function(){function t(e,r,i){y(this,t),this.observer=e,this.config=i,this.remuxer=r}return t.prototype.resetInitSegment=function(t,e,r,i){this._audioTrack={container:\"audio/adts\",type:\"audio\",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:e,duration:i,inputTimeScale:9e4}},t.prototype.resetTimeStamp=function(){},t.probe=function(t){if(!t)return!1;for(var e=j.a.getID3Data(t,0)||[],r=e.length,i=t.length;r<i;r++)if(c(t,r))return M.b.log(\"ADTS sync word found !\"),!0;return!1},t.prototype.append=function(t,e,r,i){for(var a=this._audioTrack,n=j.a.getID3Data(t,0)||[],o=j.a.getTimeStamp(n),s=o?90*o:9e4*e,l=0,d=s,u=t.length,f=n.length,c=[{pts:d,dts:d,data:n}];f<u-1;)if(h(t,f)&&f+5<u){p(a,this.observer,t,f,a.manifestCodec);var v=m(a,t,f,s,l);if(!v){M.b.log(\"Unable to parse AAC frame\");break}f+=v.length,d=v.sample.pts,l++}else j.a.isHeader(t,f)?(n=j.a.getID3Data(t,f),c.push({pts:d,dts:d,data:n}),f+=n.length):f++;this.remuxer.remux(a,{samples:[]},{samples:c,inputTimeScale:9e4},{samples:[]},e,r,i)},t.prototype.destroy=function(){},t}(),H=K,V=r(8),W={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:[0,1,1,4],appendFrame:function(t,e,r,i,a){if(!(r+24>e.length)){var n=this.parseHeader(e,r);if(n&&r+n.frameLength<=e.length){var o=9e4*n.samplesPerFrame/n.sampleRate,s=i+a*o,l={unit:e.subarray(r,r+n.frameLength),pts:s,dts:s};return t.config=[],t.channelCount=n.channelCount,t.samplerate=n.sampleRate,t.samples.push(l),t.len+=n.frameLength,{sample:l,length:n.frameLength}}}},parseHeader:function(t,e){var r=t[e+1]>>3&3,i=t[e+1]>>1&3,a=t[e+2]>>4&15,n=t[e+2]>>2&3,o=t[e+2]>>1&1;if(1!==r&&0!==a&&15!==a&&3!==n){var s=3===r?3-i:3===i?3:4,l=1e3*W.BitratesMap[14*s+a-1],d=3===r?0:2===r?1:2,u=W.SamplingRateMap[3*d+n],f=t[e+3]>>6===3?1:2,h=W.SamplesCoefficients[r][i],c=W.BytesInSlot[i],p=8*h*c,v=parseInt(h*l/u+o,10)*c;return{sampleRate:u,channelCount:f,frameLength:v,samplesPerFrame:p}}},isHeaderPattern:function(t,e){return 255===t[e]&&224===(224&t[e+1])&&0!==(6&t[e+1])},isHeader:function(t,e){return!!(e+1<t.length&&this.isHeaderPattern(t,e))},probe:function(t,e){if(e+1<t.length&&this.isHeaderPattern(t,e)){var r=4,i=this.parseHeader(t,e),a=r;i&&i.frameLength&&(a=i.frameLength);var n=e+a;if(n===t.length||n+1<t.length&&this.isHeaderPattern(t,n))return!0}return!1}},Y=W,z=function(){function t(e){b(this,t),this.data=e,this.bytesAvailable=e.byteLength,this.word=0,this.bitsAvailable=0}return t.prototype.loadWord=function(){var t=this.data,e=this.bytesAvailable,r=t.byteLength-e,i=new Uint8Array(4),a=Math.min(4,e);if(0===a)throw new Error(\"no bytes available\");i.set(t.subarray(r,r+a)),this.word=new DataView(i.buffer).getUint32(0),this.bitsAvailable=8*a,this.bytesAvailable-=a},t.prototype.skipBits=function(t){var e=void 0;this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,e=t>>3,t-=e>>3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},t.prototype.readBits=function(t){var e=Math.min(this.bitsAvailable,t),r=this.word>>>32-e;return t>32&&M.b.error(\"Cannot read more than 32 bits at a time\"),this.bitsAvailable-=e,this.bitsAvailable>0?this.word<<=e:this.bytesAvailable>0&&this.loadWord(),e=t-e,e>0&&this.bitsAvailable?r<<e|this.readBits(e):r},t.prototype.skipLZ=function(){var t=void 0;for(t=0;t<this.bitsAvailable;++t)if(0!==(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},t.prototype.skipUEG=function(){this.skipBits(1+this.skipLZ())},t.prototype.skipEG=function(){this.skipBits(1+this.skipLZ())},t.prototype.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},t.prototype.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},t.prototype.readBoolean=function(){return 1===this.readBits(1)},t.prototype.readUByte=function(){return this.readBits(8)},t.prototype.readUShort=function(){return this.readBits(16)},t.prototype.readUInt=function(){return this.readBits(32)},t.prototype.skipScalingList=function(t){var e=8,r=8,i=void 0,a=void 0;for(i=0;i<t;i++)0!==r&&(a=this.readEG(),r=(e+a+256)%256),e=0===r?e:r},t.prototype.readSPS=function(){var t=0,e=0,r=0,i=0,a=void 0,n=void 0,o=void 0,s=void 0,l=void 0,d=void 0,u=void 0,f=void 0,h=void 0,c=this.readUByte.bind(this),p=this.readBits.bind(this),v=this.readUEG.bind(this),g=this.readBoolean.bind(this),m=this.skipBits.bind(this),y=this.skipEG.bind(this),b=this.skipUEG.bind(this),E=this.skipScalingList.bind(this);if(c(),a=c(),n=p(5),m(3),o=c(),b(),100===a||110===a||122===a||244===a||44===a||83===a||86===a||118===a||128===a){var T=v();if(3===T&&m(1),b(),b(),m(1),g())for(f=3!==T?8:12,h=0;h<f;h++)g()&&E(h<6?16:64)}b();var S=v();if(0===S)v();else if(1===S)for(m(1),y(),y(),s=v(),h=0;h<s;h++)y();b(),m(1),l=v(),d=v(),u=p(1),0===u&&m(1),m(1),g()&&(t=v(),e=v(),r=v(),i=v());var A=[1,1];if(g()&&g()){var _=c();switch(_){case 1:A=[1,1];break;case 2:A=[12,11];break;case 3:A=[10,11];break;case 4:A=[16,11];break;case 5:A=[40,33];break;case 6:A=[24,11];break;case 7:A=[20,11];break;case 8:A=[32,11];break;case 9:A=[80,33];break;case 10:A=[18,11];break;case 11:A=[15,11];break;case 12:A=[64,33];break;case 13:A=[160,99];break;case 14:A=[4,3];break;case 15:A=[3,2];break;case 16:A=[2,1];break;case 255:A=[c()<<8|c(),c()<<8|c()]}}return{width:Math.ceil(16*(l+1)-2*t-2*e),height:(2-u)*(d+1)*16-(u?2:4)*(r+i),pixelRatio:A}},t.prototype.readSliceType=function(){\nreturn this.readUByte(),this.readUEG(),this.readUEG()},t}(),X=z,q=function(){function t(e,r,i,a){E(this,t),this.decryptdata=i,this.discardEPB=a,this.decrypter=new G(e,r,{removePKCS7Padding:!1})}return t.prototype.decryptBuffer=function(t,e){this.decrypter.decrypt(t,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,e)},t.prototype.decryptAacSample=function(t,e,r,i){var a=t[e].unit,n=a.subarray(16,a.length-a.length%16),o=n.buffer.slice(n.byteOffset,n.byteOffset+n.length),s=this;this.decryptBuffer(o,function(n){n=new Uint8Array(n),a.set(n,16),i||s.decryptAacSamples(t,e+1,r)})},t.prototype.decryptAacSamples=function(t,e,r){for(;;e++){if(e>=t.length)return void r();if(!(t[e].unit.length<32)){var i=this.decrypter.isSync();if(this.decryptAacSample(t,e,r,i),!i)return}}},t.prototype.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,r=new Int8Array(e),i=0,a=32;a<=t.length-16;a+=160,i+=16)r.set(t.subarray(a,a+16),i);return r},t.prototype.getAvcDecryptedUnit=function(t,e){e=new Uint8Array(e);for(var r=0,i=32;i<=t.length-16;i+=160,r+=16)t.set(e.subarray(r,r+16),i);return t},t.prototype.decryptAvcSample=function(t,e,r,i,a,n){var o=this.discardEPB(a.data),s=this.getAvcEncryptedData(o),l=this;this.decryptBuffer(s.buffer,function(s){a.data=l.getAvcDecryptedUnit(o,s),n||l.decryptAvcSamples(t,e,r+1,i)})},t.prototype.decryptAvcSamples=function(t,e,r,i){for(;;e++,r=0){if(e>=t.length)return void i();for(var a=t[e].units;!(r>=a.length);r++){var n=a[r];if(!(n.length<=48||1!==n.type&&5!==n.type)){var o=this.decrypter.isSync();if(this.decryptAvcSample(t,e,r,i,n,o),!o)return}}}},t}(),Q=q,Z={video:1,audio:2,id3:3,text:4},J=function(){function t(e,r,i,a){T(this,t),this.observer=e,this.config=i,this.typeSupported=a,this.remuxer=r,this.sampleAes=null}return t.prototype.setDecryptData=function(t){null!=t&&null!=t.key&&\"SAMPLE-AES\"===t.method?this.sampleAes=new Q(this.observer,this.config,t,this.discardEPB):this.sampleAes=null},t.probe=function(e){var r=t._syncOffset(e);return!(r<0)&&(r&&M.b.warn(\"MPEG2-TS detected but first sync word found @ offset \"+r+\", junk ahead ?\"),!0)},t._syncOffset=function(t){for(var e=Math.min(1e3,t.length-564),r=0;r<e;){if(71===t[r]&&71===t[r+188]&&71===t[r+376])return r;r++}return-1},t.createTrack=function(t,e){return{container:\"video\"===t||\"audio\"===t?\"video/mp2t\":void 0,type:t,id:Z[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],len:0,dropped:\"video\"===t?0:void 0,isAAC:\"audio\"===t||void 0,duration:\"audio\"===t?e:void 0}},t.prototype.resetInitSegment=function(e,r,i,a){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=t.createTrack(\"video\",a),this._audioTrack=t.createTrack(\"audio\",a),this._id3Track=t.createTrack(\"id3\",a),this._txtTrack=t.createTrack(\"text\",a),this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=r,this.videoCodec=i,this._duration=a},t.prototype.resetTimeStamp=function(){},t.prototype.append=function(e,r,i,a){var n=void 0,o=e.length,s=void 0,l=void 0,d=void 0,u=void 0,f=void 0,h=!1;this.contiguous=i;var c=this.pmtParsed,p=this._avcTrack,v=this._audioTrack,g=this._id3Track,m=p.pid,y=v.pid,b=g.pid,E=this._pmtId,T=p.pesData,S=v.pesData,A=g.pesData,_=this._parsePAT,R=this._parsePMT,L=this._parsePES,w=this._parseAVCPES.bind(this),O=this._parseAACPES.bind(this),k=this._parseMPEGPES.bind(this),x=this._parseID3PES.bind(this),P=t._syncOffset(e);for(o-=(o+P)%188,n=P;n<o;n+=188)if(71===e[n]){if(s=!!(64&e[n+1]),l=((31&e[n+1])<<8)+e[n+2],d=(48&e[n+3])>>4,d>1){if(u=n+5+e[n+4],u===n+188)continue}else u=n+4;switch(l){case m:s&&(T&&(f=L(T))&&void 0!==f.pts&&w(f,!1),T={data:[],size:0}),T&&(T.data.push(e.subarray(u,n+188)),T.size+=n+188-u);break;case y:s&&(S&&(f=L(S))&&void 0!==f.pts&&(v.isAAC?O(f):k(f)),S={data:[],size:0}),S&&(S.data.push(e.subarray(u,n+188)),S.size+=n+188-u);break;case b:s&&(A&&(f=L(A))&&void 0!==f.pts&&x(f),A={data:[],size:0}),A&&(A.data.push(e.subarray(u,n+188)),A.size+=n+188-u);break;case 0:s&&(u+=e[u]+1),E=this._pmtId=_(e,u);break;case E:s&&(u+=e[u]+1);var C=R(e,u,this.typeSupported.mpeg===!0||this.typeSupported.mp3===!0,null!=this.sampleAes);m=C.avc,m>0&&(p.pid=m),y=C.audio,y>0&&(v.pid=y,v.isAAC=C.isAAC),b=C.id3,b>0&&(g.pid=b),h&&!c&&(M.b.log(\"reparse from beginning\"),h=!1,n=P-188),c=this.pmtParsed=!0;break;case 17:case 8191:break;default:h=!0}}else this.observer.trigger(D.a.ERROR,{type:I.b.MEDIA_ERROR,details:I.a.FRAG_PARSING_ERROR,fatal:!1,reason:\"TS packet did not start with 0x47\"});T&&(f=L(T))&&void 0!==f.pts?(w(f,!0),p.pesData=null):p.pesData=T,S&&(f=L(S))&&void 0!==f.pts?(v.isAAC?O(f):k(f),v.pesData=null):(S&&S.size&&M.b.log(\"last AAC PES packet truncated,might overlap between fragments\"),v.pesData=S),A&&(f=L(A))&&void 0!==f.pts?(x(f),g.pesData=null):g.pesData=A,null==this.sampleAes?this.remuxer.remux(v,p,g,this._txtTrack,r,i,a):this.decryptAndRemux(v,p,g,this._txtTrack,r,i,a)},t.prototype.decryptAndRemux=function(t,e,r,i,a,n,o){if(t.samples&&t.isAAC){var s=this;this.sampleAes.decryptAacSamples(t.samples,0,function(){s.decryptAndRemuxAvc(t,e,r,i,a,n,o)})}else this.decryptAndRemuxAvc(t,e,r,i,a,n,o)},t.prototype.decryptAndRemuxAvc=function(t,e,r,i,a,n,o){if(e.samples){var s=this;this.sampleAes.decryptAvcSamples(e.samples,0,0,function(){s.remuxer.remux(t,e,r,i,a,n,o)})}else this.remuxer.remux(t,e,r,i,a,n,o)},t.prototype.destroy=function(){this._initPTS=this._initDTS=void 0,this._duration=0},t.prototype._parsePAT=function(t,e){return(31&t[e+10])<<8|t[e+11]},t.prototype._parsePMT=function(t,e,r,i){var a=void 0,n=void 0,o=void 0,s=void 0,l={audio:-1,avc:-1,id3:-1,isAAC:!0};for(a=(15&t[e+1])<<8|t[e+2],n=e+3+a-4,o=(15&t[e+10])<<8|t[e+11],e+=12+o;e<n;){switch(s=(31&t[e+1])<<8|t[e+2],t[e]){case 207:if(!i){M.b.log(\"unkown stream type:\"+t[e]);break}case 15:l.audio===-1&&(l.audio=s);break;case 21:l.id3===-1&&(l.id3=s);break;case 219:if(!i){M.b.log(\"unkown stream type:\"+t[e]);break}case 27:l.avc===-1&&(l.avc=s);break;case 3:case 4:r?l.audio===-1&&(l.audio=s,l.isAAC=!1):M.b.log(\"MPEG audio found, not supported in this browser for now\");break;case 36:M.b.warn(\"HEVC stream type found, not supported for now\");break;default:M.b.log(\"unkown stream type:\"+t[e])}e+=((15&t[e+3])<<8|t[e+4])+5}return l},t.prototype._parsePES=function(t){var e=0,r=void 0,i=void 0,a=void 0,n=void 0,o=void 0,s=void 0,l=void 0,d=void 0,u=void 0,f=t.data;if(!t||0===t.size)return null;for(;f[0].length<19&&f.length>1;){var h=new Uint8Array(f[0].length+f[1].length);h.set(f[0]),h.set(f[1],f[0].length),f[0]=h,f.splice(1,1)}if(r=f[0],a=(r[0]<<16)+(r[1]<<8)+r[2],1===a){if(n=(r[4]<<8)+r[5],n&&n>t.size-6)return null;i=r[7],192&i&&(l=536870912*(14&r[9])+4194304*(255&r[10])+16384*(254&r[11])+128*(255&r[12])+(254&r[13])/2,l>4294967295&&(l-=8589934592),64&i?(d=536870912*(14&r[14])+4194304*(255&r[15])+16384*(254&r[16])+128*(255&r[17])+(254&r[18])/2,d>4294967295&&(d-=8589934592),l-d>54e5&&(M.b.warn(Math.round((l-d)/9e4)+\"s delta between PTS and DTS, align them\"),l=d)):d=l),o=r[8],u=o+9,t.size-=u,s=new Uint8Array(t.size);for(var c=0,p=f.length;c<p;c++){r=f[c];var v=r.byteLength;if(u){if(u>v){u-=v;continue}r=r.subarray(u),v-=u,u=0}s.set(r,e),e+=v}return n&&(n-=o+3),{data:s,pts:l,dts:d,len:n}}return null},t.prototype.pushAccesUnit=function(t,e){if(t.units.length&&t.frame){var r=e.samples,i=r.length;!this.config.forceKeyFrameOnDiscontinuity||t.key===!0||e.sps&&(i||this.contiguous)?(t.id=i,r.push(t)):e.dropped++}t.debug.length&&M.b.log(t.pts+\"/\"+t.dts+\":\"+t.debug)},t.prototype._parseAVCPES=function(t,e){var r=this,i=this._avcTrack,a=this._parseAVCNALu(t.data),n=!1,o=void 0,s=this.avcSample,l=void 0,d=!1,u=void 0,f=this.pushAccesUnit.bind(this),h=function(t,e,r,i){return{key:t,pts:e,dts:r,units:[],debug:i}};t.data=null,s&&a.length&&!i.audFound&&(f(s,i),s=this.avcSample=h(!1,t.pts,t.dts,\"\")),a.forEach(function(e){switch(e.type){case 1:l=!0,s||(s=r.avcSample=h(!0,t.pts,t.dts,\"\")),n&&(s.debug+=\"NDR \"),s.frame=!0;var a=e.data;if(d&&a.length>4){var c=new X(a).readSliceType();2!==c&&4!==c&&7!==c&&9!==c||(s.key=!0)}break;case 5:l=!0,s||(s=r.avcSample=h(!0,t.pts,t.dts,\"\")),n&&(s.debug+=\"IDR \"),s.key=!0,s.frame=!0;break;case 6:l=!0,n&&s&&(s.debug+=\"SEI \"),o=new X(r.discardEPB(e.data)),o.readUByte();for(var p=0,v=0,g=!1,m=0;!g&&o.bytesAvailable>1;){p=0;do m=o.readUByte(),p+=m;while(255===m);v=0;do m=o.readUByte(),v+=m;while(255===m);if(4===p&&0!==o.bytesAvailable){g=!0;var y=o.readUByte();if(181===y){var b=o.readUShort();if(49===b){var E=o.readUInt();if(1195456820===E){var T=o.readUByte();if(3===T){var S=o.readUByte(),A=o.readUByte(),_=31&S,R=[S,A];for(u=0;u<_;u++)R.push(o.readUByte()),R.push(o.readUByte()),R.push(o.readUByte());r._insertSampleInOrder(r._txtTrack.samples,{type:3,pts:t.pts,bytes:R})}}}}}else if(v<o.bytesAvailable)for(u=0;u<v;u++)o.readUByte()}break;case 7:if(l=!0,d=!0,n&&s&&(s.debug+=\"SPS \"),!i.sps){o=new X(e.data);var L=o.readSPS();i.width=L.width,i.height=L.height,i.pixelRatio=L.pixelRatio,i.sps=[e.data],i.duration=r._duration;var w=e.data.subarray(1,4),D=\"avc1.\";for(u=0;u<3;u++){var I=w[u].toString(16);I.length<2&&(I=\"0\"+I),D+=I}i.codec=D}break;case 8:l=!0,n&&s&&(s.debug+=\"PPS \"),i.pps||(i.pps=[e.data]);break;case 9:l=!1,i.audFound=!0,s&&f(s,i),s=r.avcSample=h(!1,t.pts,t.dts,n?\"AUD \":\"\");break;case 12:l=!1;break;default:l=!1,s&&(s.debug+=\"unknown NAL \"+e.type+\" \")}if(s&&l){var O=s.units;O.push(e)}}),e&&s&&(f(s,i),this.avcSample=null)},t.prototype._insertSampleInOrder=function(t,e){var r=t.length;if(r>0){if(e.pts>=t[r-1].pts)t.push(e);else for(var i=r-1;i>=0;i--)if(e.pts<t[i].pts){t.splice(i,0,e);break}}else t.push(e)},t.prototype._getLastNalUnit=function(){var t=this.avcSample,e=void 0;if(!t||0===t.units.length){var r=this._avcTrack,i=r.samples;t=i[i.length-1]}if(t){var a=t.units;e=a[a.length-1]}return e},t.prototype._parseAVCNALu=function(t){var e=0,r=t.byteLength,i=void 0,a=void 0,n=this._avcTrack,o=n.naluState||0,s=o,l=[],d=void 0,u=void 0,f=-1,h=void 0;for(o===-1&&(f=0,h=31&t[0],o=0,e=1);e<r;)if(i=t[e++],o)if(1!==o)if(i)if(1===i){if(f>=0)d={data:t.subarray(f,e-o-1),type:h},l.push(d);else{var c=this._getLastNalUnit();if(c&&(s&&e<=4-s&&c.state&&(c.data=c.data.subarray(0,c.data.byteLength-s)),a=e-o-1,a>0)){var p=new Uint8Array(c.data.byteLength+a);p.set(c.data,0),p.set(t.subarray(0,a),c.data.byteLength),c.data=p}}e<r?(u=31&t[e],f=e,h=u,o=0):o=-1}else o=0;else o=3;else o=i?0:2;else o=i?0:1;if(f>=0&&o>=0&&(d={data:t.subarray(f,r),type:h,state:o},l.push(d)),0===l.length){var v=this._getLastNalUnit();if(v){var g=new Uint8Array(v.data.byteLength+t.byteLength);g.set(v.data,0),g.set(t,v.data.byteLength),v.data=g}}return n.naluState=o,l},t.prototype.discardEPB=function(t){for(var e=t.byteLength,r=[],i=1,a=void 0,n=void 0;i<e-2;)0===t[i]&&0===t[i+1]&&3===t[i+2]?(r.push(i+2),i+=2):i++;if(0===r.length)return t;a=e-r.length,n=new Uint8Array(a);var o=0;for(i=0;i<a;o++,i++)o===r[0]&&(o++,r.shift()),n[i]=t[o];return n},t.prototype._parseAACPES=function(t){var e=this._audioTrack,r=t.data,i=t.pts,a=0,n=this.aacOverFlow,o=this.aacLastPTS,s=void 0,l=void 0,d=void 0,u=void 0,f=void 0;if(n){var c=new Uint8Array(n.byteLength+r.byteLength);c.set(n,0),c.set(r,n.byteLength),r=c}for(d=a,f=r.length;d<f-1&&!h(r,d);d++);if(d){var g=void 0,y=void 0;if(d<f-1?(g=\"AAC PES did not start with ADTS header,offset:\"+d,y=!1):(g=\"no ADTS header found in AAC PES\",y=!0),M.b.warn(\"parsing error:\"+g),this.observer.trigger(D.a.ERROR,{type:I.b.MEDIA_ERROR,details:I.a.FRAG_PARSING_ERROR,fatal:y,reason:g}),y)return}if(p(e,this.observer,r,d,this.audioCodec),l=0,s=v(e.samplerate),n&&o){var b=o+s;Math.abs(b-i)>1&&(M.b.log(\"AAC: align PTS for overlapping frames by \"+Math.round((b-i)/90)),i=b)}for(;d<f;)if(h(r,d)&&d+5<f){var E=m(e,r,d,i,l);if(!E)break;d+=E.length,u=E.sample.pts,l++}else d++;n=d<f?r.subarray(d,f):null,this.aacOverFlow=n,this.aacLastPTS=u},t.prototype._parseMPEGPES=function(t){for(var e=t.data,r=e.length,i=0,a=0,n=t.pts;a<r;)if(Y.isHeader(e,a)){var o=Y.appendFrame(this._audioTrack,e,a,n,i);if(!o)break;a+=o.length,i++}else a++},t.prototype._parseID3PES=function(t){this._id3Track.samples.push(t)},t}(),$=J,tt=function(){function t(e,r,i){S(this,t),this.observer=e,this.config=i,this.remuxer=r}return t.prototype.resetInitSegment=function(t,e,r,i){this._audioTrack={container:\"audio/mpeg\",type:\"audio\",id:-1,sequenceNumber:0,isAAC:!1,samples:[],len:0,manifestCodec:e,duration:i,inputTimeScale:9e4}},t.prototype.resetTimeStamp=function(){},t.probe=function(t){var e=void 0,r=void 0,i=j.a.getID3Data(t,0);if(i&&void 0!==j.a.getTimeStamp(i))for(e=i.length,r=Math.min(t.length-1,e+100);e<r;e++)if(Y.probe(t,e))return M.b.log(\"MPEG Audio sync word found !\"),!0;return!1},t.prototype.append=function(t,e,r,i){for(var a=j.a.getID3Data(t,0),n=j.a.getTimeStamp(a),o=n?90*n:9e4*e,s=a.length,l=t.length,d=0,u=0,f=this._audioTrack,h=[{pts:o,dts:o,data:a}];s<l;)if(Y.isHeader(t,s)){var c=Y.appendFrame(f,t,s,o,d);if(!c)break;s+=c.length,u=c.sample.pts,d++}else j.a.isHeader(t,s)?(a=j.a.getID3Data(t,s),h.push({pts:u,dts:u,data:a}),s+=a.length):s++;this.remuxer.remux(f,{samples:[]},{samples:h,inputTimeScale:9e4},{samples:[]},e,r,i)},t.prototype.destroy=function(){},t}(),et=tt,rt=function(){function t(){A(this,t)}return t.getSilentFrame=function(t,e){switch(t){case\"mp4a.40.2\":if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},t}(),it=rt,at=Math.pow(2,32)-1,nt=function(){function t(){_(this,t)}return t.init=function(){t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],\".mp3\":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};var e=void 0;for(e in t.types)t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var r=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),i=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);t.HDLR_TYPES={video:r,audio:i};var a=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),n=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=n,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var o=new Uint8Array([105,115,111,109]),s=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,o,l,o,s),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,a))},t.box=function(t){for(var e=Array.prototype.slice.call(arguments,1),r=8,i=e.length,a=i,n=void 0;i--;)r+=e[i].byteLength;for(n=new Uint8Array(r),n[0]=r>>24&255,n[1]=r>>16&255,n[2]=r>>8&255,n[3]=255&r,n.set(t,4),i=0,r=8;i<a;i++)n.set(e[i],r),r+=e[i].byteLength;return n},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(e){return t.box(t.types.mdat,e)},t.mdhd=function(e,r){r*=e;var i=Math.floor(r/(at+1)),a=Math.floor(r%(at+1));return t.box(t.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return\"audio\"===e.type?t.box(t.types.minf,t.box(t.types.smhd,t.SMHD),t.DINF,t.stbl(e)):t.box(t.types.minf,t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,r,i){return t.box(t.types.moof,t.mfhd(e),t.traf(i,r))},t.moov=function(e){for(var r=e.length,i=[];r--;)i[r]=t.trak(e[r]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(i).concat(t.mvex(e)))},t.mvex=function(e){for(var r=e.length,i=[];r--;)i[r]=t.trex(e[r]);return t.box.apply(null,[t.types.mvex].concat(i))},t.mvhd=function(e,r){r*=e;var i=Math.floor(r/(at+1)),a=Math.floor(r%(at+1)),n=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,i>>24,i>>16&255,i>>8&255,255&i,a>>24,a>>16&255,a>>8&255,255&a,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t.box(t.types.mvhd,n)},t.sdtp=function(e){var r=e.samples||[],i=new Uint8Array(4+r.length),a=void 0,n=void 0;for(n=0;n<r.length;n++)a=r[n].flags,i[n+4]=a.dependsOn<<4|a.isDependedOn<<2|a.hasRedundancy;return t.box(t.types.sdtp,i)},t.stbl=function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(e){var r=[],i=[],a=void 0,n=void 0,o=void 0;for(a=0;a<e.sps.length;a++)n=e.sps[a],o=n.byteLength,r.push(o>>>8&255),r.push(255&o),r=r.concat(Array.prototype.slice.call(n));for(a=0;a<e.pps.length;a++)n=e.pps[a],o=n.byteLength,i.push(o>>>8&255),i.push(255&o),i=i.concat(Array.prototype.slice.call(n));var s=t.box(t.types.avcC,new Uint8Array([1,r[3],r[4],r[5],255,224|e.sps.length].concat(r).concat([e.pps.length]).concat(i))),l=e.width,d=e.height,u=e.pixelRatio[0],f=e.pixelRatio[1];return t.box(t.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,l>>8&255,255&l,d>>8&255,255&d,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),s,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,f>>24,f>>16&255,f>>8&255,255&f])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.mp4a=function(e){var r=e.samplerate;return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){var r=e.samplerate;return t.box(t.types[\".mp3\"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,r>>8&255,255&r,0,0]))},t.stsd=function(e){return\"audio\"===e.type?e.isAAC||\"mp3\"!==e.codec?t.box(t.types.stsd,t.STSD,t.mp4a(e)):t.box(t.types.stsd,t.STSD,t.mp3(e)):t.box(t.types.stsd,t.STSD,t.avc1(e))},t.tkhd=function(e){var r=e.id,i=e.duration*e.timescale,a=e.width,n=e.height,o=Math.floor(i/(at+1)),s=Math.floor(i%(at+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,r>>24&255,r>>16&255,r>>8&255,255&r,0,0,0,0,o>>24,o>>16&255,o>>8&255,255&o,s>>24,s>>16&255,s>>8&255,255&s,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,a>>8&255,255&a,0,0,n>>8&255,255&n,0,0]))},t.traf=function(e,r){var i=t.sdtp(e),a=e.id,n=Math.floor(r/(at+1)),o=Math.floor(r%(at+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,a>>24,a>>16&255,a>>8&255,255&a])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,n>>24,n>>16&255,n>>8&255,255&n,o>>24,o>>16&255,o>>8&255,255&o])),t.trun(e,i.length+16+20+8+16+8+8),i)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var r=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,r){var i=e.samples||[],a=i.length,n=12+16*a,o=new Uint8Array(n),s=void 0,l=void 0,d=void 0,u=void 0,f=void 0,h=void 0;for(r+=8+n,o.set([0,0,15,1,a>>>24&255,a>>>16&255,a>>>8&255,255&a,r>>>24&255,r>>>16&255,r>>>8&255,255&r],0),s=0;s<a;s++)l=i[s],d=l.duration,u=l.size,f=l.flags,h=l.cts,o.set([d>>>24&255,d>>>16&255,d>>>8&255,255&d,u>>>24&255,u>>>16&255,u>>>8&255,255&u,f.isLeading<<2|f.dependsOn,f.isDependedOn<<6|f.hasRedundancy<<4|f.paddingValue<<1|f.isNonSync,61440&f.degradPrio,15&f.degradPrio,h>>>24&255,h>>>16&255,h>>>8&255,255&h],12+16*s);return t.box(t.types.trun,o)},t.initSegment=function(e){t.types||t.init();var r=t.moov(e),i=void 0;return i=new Uint8Array(t.FTYP.byteLength+r.byteLength),i.set(t.FTYP),i.set(r,t.FTYP.byteLength),i},t}(),ot=nt,st=1e4,lt=function(){function t(e,r,i,a){R(this,t),this.observer=e,this.config=r,this.typeSupported=i;var n=navigator.userAgent;this.isSafari=a&&a.indexOf(\"Apple\")>-1&&n&&!n.match(\"CriOS\"),this.ISGenerated=!1}return t.prototype.destroy=function(){},t.prototype.resetTimeStamp=function(t){this._initPTS=this._initDTS=t},t.prototype.resetInitSegment=function(){this.ISGenerated=!1},t.prototype.remux=function(t,e,r,i,a,n,o){if(this.ISGenerated||this.generateIS(t,e,a),this.ISGenerated){var s=t.samples.length,l=e.samples.length,d=a,u=a;if(s&&l){var f=(t.samples[0].dts-e.samples[0].dts)/e.inputTimeScale;d+=Math.max(0,f),u+=Math.max(0,-f)}if(s){t.timescale||(M.b.warn(\"regenerate InitSegment as audio detected\"),this.generateIS(t,e,a));var h=this.remuxAudio(t,d,n,o);if(l){var c=void 0;h&&(c=h.endPTS-h.startPTS),e.timescale||(M.b.warn(\"regenerate InitSegment as video detected\"),this.generateIS(t,e,a)),this.remuxVideo(e,u,n,c,o)}}else if(l){var p=this.remuxVideo(e,u,n,0,o);p&&t.codec&&this.remuxEmptyAudio(t,d,n,p)}}r.samples.length&&this.remuxID3(r,a),i.samples.length&&this.remuxText(i,a),this.observer.trigger(D.a.FRAG_PARSED)},t.prototype.generateIS=function(t,e,r){var i=this.observer,a=t.samples,n=e.samples,o=this.typeSupported,s=\"audio/mp4\",l={},d={tracks:l},u=void 0===this._initPTS,f=void 0,h=void 0;if(u&&(f=h=1/0),t.config&&a.length&&(t.timescale=t.samplerate,M.b.log(\"audio sampling rate : \"+t.samplerate),t.isAAC||(o.mpeg?(s=\"audio/mpeg\",t.codec=\"\"):o.mp3&&(t.codec=\"mp3\")),l.audio={container:s,codec:t.codec,initSegment:!t.isAAC&&o.mpeg?new Uint8Array:ot.initSegment([t]),metadata:{channelCount:t.channelCount}},u&&(f=h=a[0].pts-t.inputTimeScale*r)),e.sps&&e.pps&&n.length){var c=e.inputTimeScale;e.timescale=c,l.video={container:\"video/mp4\",codec:e.codec,initSegment:ot.initSegment([e]),metadata:{width:e.width,height:e.height}},u&&(f=Math.min(f,n[0].pts-c*r),h=Math.min(h,n[0].dts-c*r),this.observer.trigger(D.a.INIT_PTS_FOUND,{initPTS:f}))}Object.keys(l).length?(i.trigger(D.a.FRAG_PARSING_INIT_SEGMENT,d),this.ISGenerated=!0,u&&(this._initPTS=f,this._initDTS=h)):i.trigger(D.a.ERROR,{type:I.b.MEDIA_ERROR,details:I.a.FRAG_PARSING_ERROR,fatal:!1,reason:\"no audio/video samples found\"})},t.prototype.remuxVideo=function(t,e,r,i,a){var n=8,o=t.timescale,s=void 0,l=void 0,d=void 0,u=void 0,f=void 0,h=void 0,c=void 0,p=void 0,v=t.samples,g=[],m=v.length,y=this._PTSNormalize,b=this._initDTS,E=this.nextAvcDts,T=this.isSafari;if(0!==m){T&&(r|=v.length&&E&&(a&&Math.abs(e-E/o)<.1||Math.abs(v[0].pts-E-b)<o/5)),r||(E=e*o),v.forEach(function(t){t.pts=y(t.pts-b,E),t.dts=y(t.dts-b,E)}),v.sort(function(t,e){var r=t.dts-e.dts,i=t.pts-e.pts;return r||i||t.id-e.id});var S=v.reduce(function(t,e){return Math.max(Math.min(t,e.pts-e.dts),-18e3)},0);if(S<0){M.b.warn(\"PTS < DTS detected in video samples, shifting DTS by \"+Math.round(S/90)+\" ms to overcome this issue\");for(var A=0;A<v.length;A++)v[A].dts+=S}var _=v[0];f=Math.max(_.dts,0),u=Math.max(_.pts,0);var R=Math.round((f-E)/90);r&&R&&(R>1?M.b.log(\"AVC:\"+R+\" ms hole between fragments detected,filling it\"):R<-1&&M.b.log(\"AVC:\"+-R+\" ms overlapping between fragments detected\"),f=E,v[0].dts=f,u=Math.max(u-R,E),v[0].pts=u,M.b.log(\"Video/PTS/DTS adjusted: \"+Math.round(u/90)+\"/\"+Math.round(f/90)+\",delta:\"+R+\" ms\")),h=f,_=v[v.length-1],p=Math.max(_.dts,0),c=Math.max(_.pts,0,p),T&&(s=Math.round((p-f)/(v.length-1)));for(var L=0,w=0,O=0;O<m;O++){for(var k=v[O],x=k.units,P=x.length,C=0,F=0;F<P;F++)C+=x[F].data.length;w+=C,L+=P,k.length=C,T?k.dts=f+O*s:k.dts=Math.max(k.dts,f),k.pts=Math.max(k.pts,k.dts)}var N=w+4*L+8;try{l=new Uint8Array(N)}catch(U){return void this.observer.trigger(D.a.ERROR,{type:I.b.MUX_ERROR,details:I.a.REMUX_ALLOC_ERROR,fatal:!1,bytes:N,reason:\"fail allocating video mdat \"+N})}var B=new DataView(l.buffer);B.setUint32(0,N),l.set(ot.types.mdat,4);for(var G=0;G<m;G++){for(var j=v[G],K=j.units,H=0,V=void 0,W=0,Y=K.length;W<Y;W++){var z=K[W],X=z.data,q=z.data.byteLength;B.setUint32(n,q),n+=4,l.set(X,n),n+=q,H+=4+q}if(T)V=Math.max(0,s*Math.round((j.pts-j.dts)/s));else{if(G<m-1)s=v[G+1].dts-j.dts;else{var Q=this.config,Z=j.dts-v[G>0?G-1:G].dts;if(Q.stretchShortVideoTrack){var J=Q.maxBufferHole,$=Math.floor(J*o),tt=(i?u+i*o:this.nextAudioPts)-j.pts;tt>$?(s=tt-Z,s<0&&(s=Z),M.b.log(\"It is approximately \"+tt/90+\" ms to the next segment; using duration \"+s/90+\" ms for the last video frame.\")):s=Z}else s=Z}V=Math.round(j.pts-j.dts)}g.push({size:H,duration:s,cts:V,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:j.key?2:1,isNonSync:j.key?0:1}})}this.nextAvcDts=p+s;var et=t.dropped;if(t.len=0,t.nbNalu=0,t.dropped=0,g.length&&navigator.userAgent.toLowerCase().indexOf(\"chrome\")>-1){var rt=g[0].flags;rt.dependsOn=2,rt.isNonSync=0}t.samples=g,d=ot.moof(t.sequenceNumber++,f,t),t.samples=[];var it={data1:d,data2:l,startPTS:u/o,endPTS:(c+s)/o,startDTS:f/o,endDTS:this.nextAvcDts/o,type:\"video\",hasAudio:!1,hasVideo:!0,nb:g.length,dropped:et};return this.observer.trigger(D.a.FRAG_PARSING_DATA,it),it}},t.prototype.remuxAudio=function(t,e,r,i){var a=t.inputTimeScale,n=t.timescale,o=a/n,s=t.isAAC?1024:1152,l=s*o,d=this._PTSNormalize,u=this._initDTS,f=!t.isAAC&&this.typeSupported.mpeg,h=void 0,c=void 0,p=void 0,v=void 0,g=void 0,m=void 0,y=void 0,b=t.samples,E=[],T=this.nextAudioPts;if(r|=b.length&&T&&(i&&Math.abs(e-T/a)<.1||Math.abs(b[0].pts-T-u)<20*l),b.forEach(function(t){t.pts=t.dts=d(t.pts-u,e*a)}),b=b.filter(function(t){return t.pts>=0}),0!==b.length){if(r||(T=i?e*a:b[0].pts),t.isAAC)for(var S=this.config.maxAudioFramesDrift,A=0,_=T;A<b.length;){var R,L=b[A],w=L.pts;R=w-_;var O=Math.abs(1e3*R/a);if(R<=-S*l)M.b.warn(\"Dropping 1 audio frame @ \"+(_/a).toFixed(3)+\"s due to \"+Math.round(O)+\" ms overlap.\"),b.splice(A,1),t.len-=L.unit.length;else if(R>=S*l&&O<st&&_){var k=Math.round(R/l);M.b.warn(\"Injecting \"+k+\" audio frame @ \"+(_/a).toFixed(3)+\"s due to \"+Math.round(1e3*R/a)+\" ms gap.\");for(var x=0;x<k;x++){var P=Math.max(_,0);p=it.getSilentFrame(t.manifestCodec||t.codec,t.channelCount),p||(M.b.log(\"Unable to get silent frame for given audio codec; duplicating last frame instead.\"),p=L.unit.subarray()),b.splice(A,0,{unit:p,pts:P,dts:P}),t.len+=p.length,_+=l,A++}L.pts=L.dts=_,_+=l,A++}else Math.abs(R)>.1*l,L.pts=L.dts=_,_+=l,A++}for(var C=0,F=b.length;C<F;C++){var N=b[C],U=N.unit,B=N.pts;if(void 0!==y)c.duration=Math.round((B-y)/o);else{var G=Math.round(1e3*(B-T)/a),j=0;if(r&&t.isAAC&&G){if(G>0&&G<st)j=Math.round((B-T)/l),M.b.log(G+\" ms hole between AAC samples detected,filling it\"),j>0&&(p=it.getSilentFrame(t.manifestCodec||t.codec,t.channelCount),p||(p=U.subarray()),t.len+=j*p.length);else if(G<-12){M.b.log(\"drop overlapping AAC sample, expected/parsed/delta:\"+(T/a).toFixed(3)+\"s/\"+(B/a).toFixed(3)+\"s/\"+-G+\"ms\"),t.len-=U.byteLength;continue}B=T}if(m=B,!(t.len>0))return;var K=f?t.len:t.len+8;h=f?0:8;try{v=new Uint8Array(K)}catch(H){return void this.observer.trigger(D.a.ERROR,{type:I.b.MUX_ERROR,details:I.a.REMUX_ALLOC_ERROR,fatal:!1,bytes:K,reason:\"fail allocating audio mdat \"+K})}if(!f){var V=new DataView(v.buffer);V.setUint32(0,K),v.set(ot.types.mdat,4)}for(var W=0;W<j;W++)p=it.getSilentFrame(t.manifestCodec||t.codec,t.channelCount),p||(M.b.log(\"Unable to get silent frame for given audio codec; duplicating this frame instead.\"),p=U.subarray()),v.set(p,h),h+=p.byteLength,c={size:p.byteLength,cts:0,duration:1024,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},E.push(c)}v.set(U,h);var Y=U.byteLength;h+=Y,c={size:Y,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}},E.push(c),y=B}var z=0,X=E.length;if(X>=2&&(z=E[X-2].duration,c.duration=z),X){this.nextAudioPts=T=y+o*z,t.len=0,t.samples=E,g=f?new Uint8Array:ot.moof(t.sequenceNumber++,m/o,t),t.samples=[];var q=m/a,Q=T/a,Z={data1:g,data2:v,startPTS:q,endPTS:Q,startDTS:q,endDTS:Q,type:\"audio\",hasAudio:!0,hasVideo:!1,nb:X};return this.observer.trigger(D.a.FRAG_PARSING_DATA,Z),Z}return null}},t.prototype.remuxEmptyAudio=function(t,e,r,i){var a=t.inputTimeScale,n=t.samplerate?t.samplerate:a,o=a/n,s=this.nextAudioPts,l=(void 0!==s?s:i.startDTS*a)+this._initDTS,d=i.endDTS*a+this._initDTS,u=1024,f=o*u,h=Math.ceil((d-l)/f),c=it.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(M.b.warn(\"remux empty Audio\"),!c)return void M.b.trace(\"Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!\");for(var p=[],v=0;v<h;v++){var g=l+v*f;p.push({unit:c,pts:g,dts:g}),t.len+=c.length}t.samples=p,this.remuxAudio(t,e,r)},t.prototype.remuxID3=function(t,e){var r=t.samples.length,i=void 0,a=t.inputTimeScale,n=this._initPTS,o=this._initDTS;if(r){for(var s=0;s<r;s++)i=t.samples[s],i.pts=(i.pts-n)/a,i.dts=(i.dts-o)/a;this.observer.trigger(D.a.FRAG_PARSING_METADATA,{samples:t.samples})}t.samples=[],e=e},t.prototype.remuxText=function(t,e){t.samples.sort(function(t,e){return t.pts-e.pts});var r=t.samples.length,i=void 0,a=t.inputTimeScale,n=this._initPTS;if(r){for(var o=0;o<r;o++)i=t.samples[o],i.pts=(i.pts-n)/a;this.observer.trigger(D.a.FRAG_PARSING_USERDATA,{samples:t.samples})}t.samples=[],e=e},t.prototype._PTSNormalize=function(t,e){var r=void 0;if(void 0===e)return t;for(r=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=r;return t},t}(),dt=lt,ut=function(){function t(e){L(this,t),this.observer=e}return t.prototype.destroy=function(){},t.prototype.resetTimeStamp=function(){},t.prototype.resetInitSegment=function(){},t.prototype.remux=function(t,e,r,i,a,n,o,s){var l=this.observer,d=\"\";t&&(d+=\"audio\"),e&&(d+=\"video\"),l.trigger(D.a.FRAG_PARSING_DATA,{data1:s,startPTS:a,startDTS:a,type:d,hasAudio:!!t,hasVideo:!!e,nb:1,dropped:0}),l.trigger(D.a.FRAG_PARSED)},t}(),ft=ut,ht=Object(N.a)(),ct=ht,pt=function(){function t(e,r,i,a){w(this,t),this.observer=e,this.typeSupported=r,this.config=i,this.vendor=a}return t.prototype.destroy=function(){var t=this.demuxer;t&&t.destroy()},t.prototype.push=function(t,e,r,i,a,n,o,s,l,d,u,f){if(t.byteLength>0&&null!=e&&null!=e.key&&\"AES-128\"===e.method){var h=this.decrypter;null==h&&(h=this.decrypter=new G(this.observer,this.config));var c=this,p=void 0;try{p=ct.now()}catch(v){p=Date.now()}h.decrypt(t,e.key.buffer,e.iv.buffer,function(t){var h=void 0;try{h=ct.now()}catch(v){h=Date.now()}c.observer.trigger(D.a.FRAG_DECRYPTED,{stats:{tstart:p,tdecrypt:h}}),c.pushDecrypted(new Uint8Array(t),e,new Uint8Array(r),i,a,n,o,s,l,d,u,f)})}else this.pushDecrypted(new Uint8Array(t),e,new Uint8Array(r),i,a,n,o,s,l,d,u,f)},t.prototype.pushDecrypted=function(t,e,r,i,a,n,o,s,l,d,u,f){var h=this.demuxer;if(!h||(o||s)&&!this.probe(t)){for(var c=this.observer,p=this.typeSupported,v=this.config,g=[{demux:$,remux:dt},{demux:V.a,remux:ft},{demux:H,remux:dt\n},{demux:et,remux:dt}],m=0,y=g.length;m<y;m++){var b=g[m],E=b.demux.probe;if(E(t)){var T=this.remuxer=new b.remux(c,v,p,this.vendor);h=new b.demux(c,T,v,p),this.probe=E;break}}if(!h)return void c.trigger(D.a.ERROR,{type:I.b.MEDIA_ERROR,details:I.a.FRAG_PARSING_ERROR,fatal:!0,reason:\"no demux matching with content found\"});this.demuxer=h}var S=this.remuxer;(o||s)&&(h.resetInitSegment(r,i,a,d),S.resetInitSegment()),o&&(h.resetTimeStamp(f),S.resetTimeStamp(f)),\"function\"==typeof h.setDecryptData&&h.setDecryptData(e),h.append(t,n,l,u)},t}();e.a=pt},function(t,e,r){\"use strict\";function i(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function a(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function n(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function o(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function s(t,e){var r=Ft[e];return!!r&&r[t.slice(0,4)]===!0}function l(t,e){return window.MediaSource.isTypeSupported((e||\"video\")+'/mp4;codecs=\"'+t+'\"')}function d(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function u(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function f(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function h(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function c(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function p(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function v(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function g(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function m(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function y(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function b(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function E(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function T(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function S(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function A(){if(\"undefined\"!=typeof window)return window.MediaSource||window.WebKitMediaSource}function _(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function R(t,e,r){switch(e){case\"audio\":t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds.push(r);break;case\"text\":t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds.push(r)}}function L(t,e,r){var i=t[e],a=t[r],n=a.startPTS;isNaN(n)?r>e?a.start=i.start+i.duration:a.start=Math.max(i.start-a.duration,0):r>e?(i.duration=n-i.start,i.duration<0&&bt.b.warn(\"negative duration computed for frag \"+i.sn+\",level \"+i.level+\", there should be some duration drift between playlist and fragment!\")):(a.duration=i.start-n,a.duration<0&&bt.b.warn(\"negative duration computed for frag \"+a.sn+\",level \"+a.level+\", there should be some duration drift between playlist and fragment!\"))}function w(t,e,r,i,a,n){var o=r;if(!isNaN(e.startPTS)){var s=Math.abs(e.startPTS-r);isNaN(e.deltaPTS)?e.deltaPTS=s:e.deltaPTS=Math.max(s,e.deltaPTS),o=Math.max(r,e.startPTS),r=Math.min(r,e.startPTS),i=Math.max(i,e.endPTS),a=Math.min(a,e.startDTS),n=Math.max(n,e.endDTS)}var l=r-e.start;e.start=e.startPTS=r,e.maxStartPTS=o,e.endPTS=i,e.startDTS=a,e.endDTS=n,e.duration=i-r;var d=e.sn;if(!t||d<t.startSN||d>t.endSN)return 0;var u=void 0,f=void 0,h=void 0;for(u=d-t.startSN,f=t.fragments,f[u]=e,h=u;h>0;h--)L(f,h,h-1);for(h=u;h<f.length-1;h++)L(f,h,h+1);return t.PTSKnown=!0,l}function D(t,e){var r=Math.max(t.startSN,e.startSN)-e.startSN,i=Math.min(t.endSN,e.endSN)-e.startSN,a=e.startSN-t.startSN,n=t.fragments,o=e.fragments,s=0,l=void 0;if(e.initSegment&&t.initSegment&&(e.initSegment=t.initSegment),i<r)return void(e.PTSKnown=!1);for(var d=r;d<=i;d++){var u=n[a+d],f=o[d];f&&u&&(s=u.cc-f.cc,isNaN(u.startPTS)||(f.start=f.startPTS=u.startPTS,f.endPTS=u.endPTS,f.duration=u.duration,f.backtracked=u.backtracked,f.dropped=u.dropped,l=f))}if(s)for(bt.b.log(\"discontinuity sliding from playlist, take drift into account\"),d=0;d<o.length;d++)o[d].cc+=s;if(l)w(e,l,l.startPTS,l.endPTS,l.startDTS,l.endDTS);else if(a>=0&&a<n.length){var h=n[a].start;for(d=0;d<o.length;d++)o[d].start+=h}e.PTSKnown=t.PTSKnown}function I(t,e){for(var r=null,i=0;i<t.length;i+=1){var a=t[i];if(a&&a.cc===e){r=a;break}}return r}function O(t,e,r){var i=!1;return e&&e.details&&r&&(r.endCC>r.startCC||t&&t.cc<r.startCC)&&(i=!0),i}function k(t,e){var r=t.fragments,i=e.fragments;if(!i.length||!r.length)return void bt.b.log(\"No fragments to align\");var a=I(r,i[0].cc);return!a||a&&!a.startPTS?void bt.b.log(\"No frag in previous level to align on\"):a}function x(t,e){e.fragments.forEach(function(e){if(e){var r=e.start+t;e.start=e.startPTS=r,e.endPTS=r+e.duration}}),e.PTSKnown=!0}function P(t,e,r){if(O(t,e,r)){var i=k(e.details,r);i&&(bt.b.log(\"Adjusting PTS using last level due to CC increase within current level\"),x(i.start,r))}if(r.PTSKnown===!1&&e&&e.details&&e.details.fragments&&e.details.fragments.length){var a=e.details.programDateTime,n=r.programDateTime,o=(n-a)/1e3+e.details.fragments[0].start;isNaN(o)||(bt.b.log(\"adjusting PTS using programDateTime delta, sliding:\"+o.toFixed(3)),x(o,r))}}function C(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function F(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function M(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function N(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments[2],i=0;if(r.programDateTime){var a=Date.parse(r.programDateTime);isNaN(a)||(i=1e3*e+a-1e3*t)}return i}function U(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Array.isArray(t)||!t.length||null===e)return null;var r=t[0];if(e<r.pdt)return null;var i=t[t.length-1];if(e>=i.endPdt)return null;for(var a=0;a<t.length;++a){var n=t[a];if(e<n.endPdt)return n}return null}function B(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,n=void 0,o=t?e[t.sn-e[0].sn+1]:null;return r<i&&(r>i-a&&(a=0),n=o&&!G(r,a,o)?o:ie.search(e,G.bind(null,r,a))),n}function G(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments[2],i=Math.min(e,r.duration+(r.deltaPTS?r.deltaPTS:0));return r.start+r.duration-i<=t?1:r.start-i>t&&r.start?-1:0}function j(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function K(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function H(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function V(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function W(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function Y(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function z(t,e){var r=null;try{r=new window.Event(\"addtrack\")}catch(i){r=document.createEvent(\"Event\"),r.initEvent(\"addtrack\",!1,!1)}r.track=t,e.dispatchEvent(r)}function X(t){if(t&&t.cues)for(;t.cues.length>0;)t.removeCue(t.cues[0])}function q(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function Q(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function Z(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function J(){var t=A(),e=window.SourceBuffer||window.WebKitSourceBuffer,r=t&&\"function\"==typeof t.isTypeSupported&&t.isTypeSupported('video/mp4; codecs=\"avc1.42E01E,mp4a.40.2\"'),i=!e||e.prototype&&\"function\"==typeof e.prototype.appendBuffer&&\"function\"==typeof e.prototype.remove;return!!r&&!!i}function $(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function tt(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function et(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function rt(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function it(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function at(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function nt(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function ot(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function st(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function lt(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function dt(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function ut(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function ft(t,e){if(!t)throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");return!e||\"object\"!=typeof e&&\"function\"!=typeof e?t:e}function ht(t,e){if(\"function\"!=typeof e&&null!==e)throw new TypeError(\"Super expression must either be null or a function, not \"+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function ct(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}function pt(t,e){if(!(t instanceof e))throw new TypeError(\"Cannot call a class as a function\")}Object.defineProperty(e,\"__esModule\",{value:!0});var vt=r(5),gt=r.n(vt),mt=r(2),yt=r(1),bt=r(0),Et=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},Tt=new Set([\"hlsEventGeneric\",\"hlsHandlerDestroying\",\"hlsHandlerDestroyed\"]),St=function(){function t(e){i(this,t),this.hls=e,this.onEvent=this.onEvent.bind(this);for(var r=arguments.length,a=Array(r>1?r-1:0),n=1;n<r;n++)a[n-1]=arguments[n];this.handledEvents=a,this.useGenericHandler=!0,this.registerListeners()}return t.prototype.destroy=function(){this.onHandlerDestroying(),this.unregisterListeners(),this.onHandlerDestroyed()},t.prototype.onHandlerDestroying=function(){},t.prototype.onHandlerDestroyed=function(){},t.prototype.isEventHandler=function(){return\"object\"===Et(this.handledEvents)&&this.handledEvents.length&&\"function\"==typeof this.onEvent},t.prototype.registerListeners=function(){this.isEventHandler()&&this.handledEvents.forEach(function(t){if(Tt.has(t))throw new Error(\"Forbidden event-name: \"+t);this.hls.on(t,this.onEvent)},this)},t.prototype.unregisterListeners=function(){this.isEventHandler()&&this.handledEvents.forEach(function(t){this.hls.off(t,this.onEvent)},this)},t.prototype.onEvent=function(t,e){this.onEventGeneric(t,e)},t.prototype.onEventGeneric=function(t,e){var r=function(t,e){var r=\"on\"+t.replace(\"hls\",\"\");if(\"function\"!=typeof this[r])throw new Error(\"Event \"+t+\" has no generic handler in this \"+this.constructor.name+\" class (tried \"+r+\")\");return this[r].bind(this,e)};try{r.call(this,t,e).call()}catch(i){bt.b.error(\"An internal error happened while handling event \"+t+'. Error message: \"'+i.message+'\". Here is a stacktrace:',i),this.hls.trigger(yt.a.ERROR,{type:mt.b.OTHER_ERROR,details:mt.a.INTERNAL_EXCEPTION,fatal:!1,event:t,err:i})}},t}(),At=St,_t=r(8),Rt=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Lt=function(){function t(){a(this,t),this.method=null,this.key=null,this.iv=null,this._uri=null}return Rt(t,[{key:\"uri\",get:function(){return!this._uri&&this.reluri&&(this._uri=gt.a.buildAbsoluteURL(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}]),t}(),wt=Lt,Dt=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),It=function(){function t(){var e;n(this,t),this._url=null,this._byteRange=null,this._decryptdata=null,this.tagList=[],this._elementaryStreams=(e={},e[t.ElementaryStreamTypes.AUDIO]=!1,e[t.ElementaryStreamTypes.VIDEO]=!1,e)}return t.prototype.addElementaryStream=function(t){this._elementaryStreams[t]=!0},t.prototype.hasElementaryStream=function(t){return this._elementaryStreams[t]===!0},t.prototype.createInitializationVector=function(t){for(var e=new Uint8Array(16),r=12;r<16;r++)e[r]=t>>8*(15-r)&255;return e},t.prototype.fragmentDecryptdataFromLevelkey=function(t,e){var r=t;return t&&t.method&&t.uri&&!t.iv&&(r=new wt,r.method=t.method,r.baseuri=t.baseuri,r.reluri=t.reluri,r.iv=this.createInitializationVector(e)),r},Dt(t,[{key:\"url\",get:function(){return!this._url&&this.relurl&&(this._url=gt.a.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(t){this._url=t}},{key:\"programDateTime\",get:function(){return!this._programDateTime&&this.rawProgramDateTime&&(this._programDateTime=new Date(Date.parse(this.rawProgramDateTime))),this._programDateTime}},{key:\"byteRange\",get:function(){if(!this._byteRange&&!this.rawByteRange)return[];if(this._byteRange)return this._byteRange;var t=[];if(this.rawByteRange){var e=this.rawByteRange.split(\"@\",2);if(1===e.length){var r=this.lastByteRangeEndOffset;t[0]=r||0}else t[0]=parseInt(e[1]);t[1]=parseInt(e[0])+t[0],this._byteRange=t}return t}},{key:\"byteRangeStartOffset\",get:function(){return this.byteRange[0]}},{key:\"byteRangeEndOffset\",get:function(){return this.byteRange[1]}},{key:\"decryptdata\",get:function(){return this._decryptdata||(this._decryptdata=this.fragmentDecryptdataFromLevelkey(this.levelkey,this.sn)),this._decryptdata}},{key:\"encrypted\",get:function(){return!(!this.decryptdata||null===this.decryptdata.uri||null!==this.decryptdata.key)}}],[{key:\"ElementaryStreamTypes\",get:function(){return{AUDIO:\"audio\",VIDEO:\"video\"}}}]),t}(),Ot=It,kt=/^(\\d+)x(\\d+)$/,xt=/\\s*(.+?)\\s*=((?:\\\".*?\\\")|.*?)(?:,|$)/g,Pt=function(){function t(e){o(this,t),\"string\"==typeof e&&(e=t.parseAttrList(e));for(var r in e)e.hasOwnProperty(r)&&(this[r]=e[r])}return t.prototype.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},t.prototype.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||\"0x\").slice(2);e=(1&e.length?\"0\":\"\")+e;for(var r=new Uint8Array(e.length/2),i=0;i<e.length/2;i++)r[i]=parseInt(e.slice(2*i,2*i+2),16);return r}return null},t.prototype.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},t.prototype.decimalFloatingPoint=function(t){return parseFloat(this[t])},t.prototype.enumeratedString=function(t){return this[t]},t.prototype.decimalResolution=function(t){var e=kt.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e=void 0,r={};for(xt.lastIndex=0;null!==(e=xt.exec(t));){var i=e[2],a='\"';0===i.indexOf(a)&&i.lastIndexOf(a)===i.length-1&&(i=i.slice(1,-1)),r[e[1]]=i}return r},t}(),Ct=Pt,Ft={audio:{a3ds:!0,\"ac-3\":!0,\"ac-4\":!0,alac:!0,alaw:!0,dra1:!0,\"dts+\":!0,\"dts-\":!0,dtsc:!0,dtse:!0,dtsh:!0,\"ec-3\":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,\"raw \":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,\"vc-1\":!0,vp08:!0,vp09:!0}},Mt=/#EXT-X-STREAM-INF:([^\\n\\r]*)[\\r\\n]+([^\\r\\n]+)/g,Nt=/#EXT-X-MEDIA:(.*)/g,Ut=new RegExp([/#EXTINF:\\s*(\\d*(?:\\.\\d+)?)(?:,(.*)\\s+)?/.source,/|(?!#)(\\S+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(\"\"),\"g\"),Bt=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\\d+))|(?:#EXT-X-(TARGETDURATION): *(\\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)(.*):(.*))|(?:(#)(.*))(?:.*)\\r?\\n?/,Gt=/\\.(mp4|m4s|m4v|m4a)$/i,jt=function(){function t(){d(this,t)}return t.findGroup=function(t,e){if(!t)return null;for(var r=null,i=0;i<t.length;i++){var a=t[i];a.id===e&&(r=a)}return r},t.convertAVC1ToAVCOTI=function(t){var e=void 0,r=t.split(\".\");return r.length>2?(e=r.shift()+\".\",e+=parseInt(r.shift()).toString(16),e+=(\"000\"+parseInt(r.shift()).toString(16)).substr(-4)):e=t,e},t.resolve=function(t,e){return gt.a.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},t.parseMasterPlaylist=function(e,r){function i(t,e){[\"video\",\"audio\"].forEach(function(r){var i=t.filter(function(t){return s(t,r)});if(i.length){var a=i.filter(function(t){return 0===t.lastIndexOf(\"avc1\",0)||0===t.lastIndexOf(\"mp4a\",0)});e[r+\"Codec\"]=a.length>0?a[0]:i[0],t=t.filter(function(t){return i.indexOf(t)===-1})}}),e.unknownCodecs=t}var a=[],n=void 0;for(Mt.lastIndex=0;null!=(n=Mt.exec(e));){var o={},l=o.attrs=new Ct(n[1]);o.url=t.resolve(n[2],r);var d=l.decimalResolution(\"RESOLUTION\");d&&(o.width=d.width,o.height=d.height),o.bitrate=l.decimalInteger(\"AVERAGE-BANDWIDTH\")||l.decimalInteger(\"BANDWIDTH\"),o.name=l.NAME,i([].concat((l.CODECS||\"\").split(/[ ,]+/)),o),o.videoCodec&&o.videoCodec.indexOf(\"avc1\")!==-1&&(o.videoCodec=t.convertAVC1ToAVCOTI(o.videoCodec)),a.push(o)}return a},t.parseMasterPlaylistMedia=function(e,r,i){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],n=void 0,o=[],s=0;for(Nt.lastIndex=0;null!==(n=Nt.exec(e));){var l={},d=new Ct(n[1]);if(d.TYPE===i){if(l.groupId=d[\"GROUP-ID\"],l.name=d.NAME,l.type=i,l[\"default\"]=\"YES\"===d.DEFAULT,l.autoselect=\"YES\"===d.AUTOSELECT,l.forced=\"YES\"===d.FORCED,d.URI&&(l.url=t.resolve(d.URI,r)),l.lang=d.LANGUAGE,l.name||(l.name=l.lang),a.length){var u=t.findGroup(a,l.groupId);l.audioCodec=u?u.codec:a[0].codec}l.id=s++,o.push(l)}}return o},t.parseLevelPlaylist=function(t,e,r,i,a){var n=0,o=0,s={type:null,version:null,url:e,fragments:[],live:!0,startSN:0},l=new wt,d=0,u=null,f=new Ot,h=void 0,c=void 0;for(Ut.lastIndex=0;null!==(h=Ut.exec(t));){var p=h[1];if(p){f.duration=parseFloat(p);var v=(\" \"+h[2]).slice(1);f.title=v||null,f.tagList.push(v?[\"INF\",p,v]:[\"INF\",p])}else if(h[3]){if(!isNaN(f.duration)){var g=n++;f.type=i,f.start=o,f.levelkey=l,f.sn=g,f.level=r,f.cc=d,f.urlId=a,f.baseurl=e,f.relurl=(\" \"+h[3]).slice(1),s.programDateTime&&(u?f.rawProgramDateTime?f.pdt=Date.parse(f.rawProgramDateTime):f.pdt=u.pdt+1e3*u.duration:f.pdt=Date.parse(s.programDateTime),f.endPdt=f.pdt+1e3*f.duration),s.fragments.push(f),u=f,o+=f.duration,f=new Ot}}else if(h[4]){if(f.rawByteRange=(\" \"+h[4]).slice(1),u){var m=u.byteRangeEndOffset;m&&(f.lastByteRangeEndOffset=m)}}else if(h[5])f.rawProgramDateTime=(\" \"+h[5]).slice(1),f.tagList.push([\"PROGRAM-DATE-TIME\",f.rawProgramDateTime]),void 0===s.programDateTime&&(s.programDateTime=new Date(new Date(Date.parse(h[5]))-1e3*o));else{for(h=h[0].match(Bt),c=1;c<h.length&&void 0===h[c];c++);var y=(\" \"+h[c+1]).slice(1),b=(\" \"+h[c+2]).slice(1);switch(h[c]){case\"#\":f.tagList.push(b?[y,b]:[y]);break;case\"PLAYLIST-TYPE\":s.type=y.toUpperCase();break;case\"MEDIA-SEQUENCE\":n=s.startSN=parseInt(y);break;case\"TARGETDURATION\":s.targetduration=parseFloat(y);break;case\"VERSION\":s.version=parseInt(y);break;case\"EXTM3U\":break;case\"ENDLIST\":s.live=!1;break;case\"DIS\":d++,f.tagList.push([\"DIS\"]);break;case\"DISCONTINUITY-SEQ\":d=parseInt(y);break;case\"KEY\":var E=y,T=new Ct(E),S=T.enumeratedString(\"METHOD\"),A=T.URI,_=T.hexadecimalInteger(\"IV\");S&&(l=new wt,A&&[\"AES-128\",\"SAMPLE-AES\",\"SAMPLE-AES-CENC\"].indexOf(S)>=0&&(l.method=S,l.baseuri=e,l.reluri=A,l.key=null,l.iv=_));break;case\"START\":var R=y,L=new Ct(R),w=L.decimalFloatingPoint(\"TIME-OFFSET\");isNaN(w)||(s.startTimeOffset=w);break;case\"MAP\":var D=new Ct(y);f.relurl=D.URI,f.rawByteRange=D.BYTERANGE,f.baseurl=e,f.level=r,f.type=i,f.sn=\"initSegment\",s.initSegment=f,f=new Ot;break;default:bt.b.warn(\"line parsed but not handled: \"+h)}}}return f=u,f&&!f.relurl&&(s.fragments.pop(),o-=f.duration),s.totalduration=o,s.averagetargetduration=o/s.fragments.length,s.endSN=n-1,s.startCC=s.fragments[0]?s.fragments[0].cc:0,s.endCC=d,!s.initSegment&&s.fragments.length&&s.fragments.every(function(t){return Gt.test(t.relurl)})&&(bt.b.warn(\"MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX\"),f=new Ot,f.relurl=s.fragments[0].relurl,f.baseurl=e,f.level=r,f.type=i,f.sn=\"initSegment\",s.initSegment=f,s.needSidxRanges=!0),s},t}(),Kt=jt,Ht=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Vt=window,Wt=Vt.performance,Yt={MANIFEST:\"manifest\",LEVEL:\"level\",AUDIO_TRACK:\"audioTrack\",SUBTITLE_TRACK:\"subtitleTrack\"},zt={MAIN:\"main\",AUDIO:\"audio\",SUBTITLE:\"subtitle\"},Xt=function(t){function e(r){u(this,e);var i=f(this,t.call(this,r,yt.a.MANIFEST_LOADING,yt.a.LEVEL_LOADING,yt.a.AUDIO_TRACK_LOADING,yt.a.SUBTITLE_TRACK_LOADING));return i.loaders={},i}return h(e,t),e.canHaveQualityLevels=function(t){return t!==Yt.AUDIO_TRACK&&t!==Yt.SUBTITLE_TRACK},e.mapContextToLevelType=function(t){var e=t.type;switch(e){case Yt.AUDIO_TRACK:return zt.AUDIO;case Yt.SUBTITLE_TRACK:return zt.SUBTITLE;default:return zt.MAIN}},e.getResponseUrl=function(t,e){var r=t.url;return void 0!==r&&0!==r.indexOf(\"data:\")||(r=e.url),r},e.prototype.createInternalLoader=function(t){var e=this.hls.config,r=e.pLoader,i=e.loader,a=r||i,n=new a(e);return t.loader=n,this.loaders[t.type]=n,n},e.prototype.getInternalLoader=function(t){return this.loaders[t.type]},e.prototype.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},e.prototype.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},e.prototype.destroy=function(){this.destroyInternalLoaders(),t.prototype.destroy.call(this)},e.prototype.onManifestLoading=function(t){this.load(t.url,{type:Yt.MANIFEST,level:0,id:null})},e.prototype.onLevelLoading=function(t){this.load(t.url,{type:Yt.LEVEL,level:t.level,id:t.id})},e.prototype.onAudioTrackLoading=function(t){this.load(t.url,{type:Yt.AUDIO_TRACK,level:0,id:t.id})},e.prototype.onSubtitleTrackLoading=function(t){this.load(t.url,{type:Yt.SUBTITLE_TRACK,level:0,id:t.id})},e.prototype.load=function(t,e){var r=this.hls.config;bt.b.debug(\"Loading playlist of type \"+e.type+\", level: \"+e.level+\", id: \"+e.id);var i=this.getInternalLoader(e);if(i){var a=i.context;if(a&&a.url===t)return bt.b.trace(\"playlist request ongoing\"),!1;bt.b.warn(\"aborting previous loader for type: \"+e.type),i.abort()}var n=void 0,o=void 0,s=void 0,l=void 0;switch(e.type){case Yt.MANIFEST:n=r.manifestLoadingMaxRetry,o=r.manifestLoadingTimeOut,s=r.manifestLoadingRetryDelay,l=r.manifestLoadingMaxRetryTimeout;break;case Yt.LEVEL:n=0,o=r.levelLoadingTimeOut;break;default:n=r.levelLoadingMaxRetry,o=r.levelLoadingTimeOut,s=r.levelLoadingRetryDelay,l=r.levelLoadingMaxRetryTimeout}i=this.createInternalLoader(e),e.url=t,e.responseType=e.responseType||\"\";var d={timeout:o,maxRetry:n,retryDelay:s,maxRetryDelay:l},u={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};return bt.b.debug(\"Calling internal loader delegate for URL: \"+t),i.load(e,d,u),!0},e.prototype.loadsuccess=function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(r.isSidxRequest)return this._handleSidxRequest(t,r),void this._handlePlaylistLoaded(t,e,r,i);this.resetInternalLoader(r.type);var a=t.data;return e.tload=Wt.now(),0!==a.indexOf(\"#EXTM3U\")?void this._handleManifestParsingError(t,r,\"no EXTM3U delimiter\",i):void(a.indexOf(\"#EXTINF:\")>0||a.indexOf(\"#EXT-X-TARGETDURATION:\")>0?this._handleTrackOrLevelPlaylist(t,e,r,i):this._handleMasterPlaylist(t,e,r,i))},e.prototype.loaderror=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._handleNetworkError(e,r)},e.prototype.loadtimeout=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._handleNetworkError(e,r,!0)},e.prototype._handleMasterPlaylist=function(t,r,i,a){var n=this.hls,o=t.data,s=e.getResponseUrl(t,i),l=Kt.parseMasterPlaylist(o,s);if(!l.length)return void this._handleManifestParsingError(t,i,\"no level found in manifest\",a);var d=l.map(function(t){return{id:t.attrs.AUDIO,codec:t.audioCodec}}),u=Kt.parseMasterPlaylistMedia(o,s,\"AUDIO\",d),f=Kt.parseMasterPlaylistMedia(o,s,\"SUBTITLES\");if(u.length){var h=!1;u.forEach(function(t){t.url||(h=!0)}),h===!1&&l[0].audioCodec&&!l[0].attrs.AUDIO&&(bt.b.log(\"audio codec signaled in quality level, but no embedded audio track signaled, create one\"),u.unshift({type:\"main\",name:\"main\"}))}n.trigger(yt.a.MANIFEST_LOADED,{levels:l,audioTracks:u,subtitles:f,url:s,stats:r,networkDetails:a})},e.prototype._handleTrackOrLevelPlaylist=function(t,r,i,a){var n=this.hls,o=i.id,s=i.level,l=i.type,d=e.getResponseUrl(t,i),u=isNaN(o)?0:o,f=isNaN(s)?u:s,h=e.mapContextToLevelType(i),c=Kt.parseLevelPlaylist(t.data,d,f,h,u);if(c.tload=r.tload,l===Yt.MANIFEST){var p={url:d,details:c};n.trigger(yt.a.MANIFEST_LOADED,{levels:[p],audioTracks:[],url:d,stats:r,networkDetails:a})}if(r.tparsed=Wt.now(),c.needSidxRanges){var v=c.initSegment.url;return void this.load(v,{isSidxRequest:!0,type:l,level:s,levelDetails:c,id:o,rangeStart:0,rangeEnd:2048,responseType:\"arraybuffer\"})}i.levelDetails=c,this._handlePlaylistLoaded(t,r,i,a)},e.prototype._handleSidxRequest=function(t,e){var r=_t.a.parseSegmentIndex(new Uint8Array(t.data));r.references.forEach(function(t,r){var i=t.info,a=e.levelDetails.fragments[r];0===a.byteRange.length&&(a.rawByteRange=String(1+i.end-i.start)+\"@\"+String(i.start))}),e.levelDetails.initSegment.rawByteRange=String(r.moovEndOffset)+\"@0\"},e.prototype._handleManifestParsingError=function(t,e,r,i){this.hls.trigger(yt.a.ERROR,{type:mt.b.NETWORK_ERROR,details:mt.a.MANIFEST_PARSING_ERROR,fatal:!0,url:t.url,reason:r,networkDetails:i})},e.prototype._handleNetworkError=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];bt.b.info(\"A network error occured while loading a \"+t.type+\"-type playlist\");var i=void 0,a=void 0,n=this.getInternalLoader(t);switch(t.type){case Yt.MANIFEST:i=r?mt.a.MANIFEST_LOAD_TIMEOUT:mt.a.MANIFEST_LOAD_ERROR,a=!0;break;case Yt.LEVEL:i=r?mt.a.LEVEL_LOAD_TIMEOUT:mt.a.LEVEL_LOAD_ERROR,a=!1;break;case Yt.AUDIO_TRACK:i=r?mt.a.AUDIO_TRACK_LOAD_TIMEOUT:mt.a.AUDIO_TRACK_LOAD_ERROR,a=!1;break;default:a=!1}n&&(n.abort(),this.resetInternalLoader(t.type)),this.hls.trigger(yt.a.ERROR,{type:mt.b.NETWORK_ERROR,details:i,fatal:a,url:n.url,loader:n,context:t,networkDetails:e})},e.prototype._handlePlaylistLoaded=function(t,r,i,a){var n=i.type,o=i.level,s=i.id,l=i.levelDetails;if(!l.targetduration)return void this._handleManifestParsingError(t,i,\"invalid target duration\",a);var d=e.canHaveQualityLevels(i.type);if(d)this.hls.trigger(yt.a.LEVEL_LOADED,{details:l,level:o||0,id:s||0,stats:r,networkDetails:a});else switch(n){case Yt.AUDIO_TRACK:this.hls.trigger(yt.a.AUDIO_TRACK_LOADED,{details:l,id:s,stats:r,networkDetails:a});break;case Yt.SUBTITLE_TRACK:this.hls.trigger(yt.a.SUBTITLE_TRACK_LOADED,{details:l,id:s,stats:r,networkDetails:a})}},Ht(e,null,[{key:\"ContextType\",get:function(){return Yt}},{key:\"LevelType\",get:function(){return zt}}]),e}(At),qt=Xt,Qt=function(t){function e(r){c(this,e);var i=p(this,t.call(this,r,yt.a.FRAG_LOADING));return i.loaders={},i}return v(e,t),e.prototype.destroy=function(){var e=this.loaders;for(var r in e){var i=e[r];i&&i.destroy()}this.loaders={},t.prototype.destroy.call(this)},e.prototype.onFragLoading=function(t){var e=t.frag,r=e.type,i=this.loaders,a=this.hls.config,n=a.fLoader,o=a.loader;e.loaded=0;var s=i[r];s&&(bt.b.warn(\"abort previous fragment loader for type: \"+r),s.abort()),s=i[r]=e.loader=a.fLoader?new n(a):new o(a);\nvar l=void 0,d=void 0,u=void 0;l={url:e.url,frag:e,responseType:\"arraybuffer\",progressData:!1};var f=e.byteRangeStartOffset,h=e.byteRangeEndOffset;isNaN(f)||isNaN(h)||(l.rangeStart=f,l.rangeEnd=h),d={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:a.fragLoadingMaxRetryTimeout},u={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},s.load(l,d,u)},e.prototype.loadsuccess=function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=t.data,n=r.frag;n.loader=void 0,this.loaders[n.type]=void 0,this.hls.trigger(yt.a.FRAG_LOADED,{payload:a,frag:n,stats:e,networkDetails:i})},e.prototype.loaderror=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=e.loader;i&&i.abort(),this.loaders[e.type]=void 0,this.hls.trigger(yt.a.ERROR,{type:mt.b.NETWORK_ERROR,details:mt.a.FRAG_LOAD_ERROR,fatal:!1,frag:e.frag,response:t,networkDetails:r})},e.prototype.loadtimeout=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=e.loader;i&&i.abort(),this.loaders[e.type]=void 0,this.hls.trigger(yt.a.ERROR,{type:mt.b.NETWORK_ERROR,details:mt.a.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e.frag,networkDetails:r})},e.prototype.loadprogress=function(t,e,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=e.frag;a.loaded=t.loaded,this.hls.trigger(yt.a.FRAG_LOAD_PROGRESS,{frag:a,stats:t,networkDetails:i})},e}(At),Zt=Qt,Jt=function(t){function e(r){g(this,e);var i=m(this,t.call(this,r,yt.a.KEY_LOADING));return i.loaders={},i.decryptkey=null,i.decrypturl=null,i}return y(e,t),e.prototype.destroy=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy()}this.loaders={},At.prototype.destroy.call(this)},e.prototype.onKeyLoading=function(t){var e=t.frag,r=e.type,i=this.loaders[r],a=e.decryptdata,n=a.uri;if(n!==this.decrypturl||null===this.decryptkey){var o=this.hls.config;i&&(bt.b.warn(\"abort previous key loader for type:\"+r),i.abort()),e.loader=this.loaders[r]=new o.loader(o),this.decrypturl=n,this.decryptkey=null;var s=void 0,l=void 0,d=void 0;s={url:n,frag:e,responseType:\"arraybuffer\"},l={timeout:o.fragLoadingTimeOut,maxRetry:o.fragLoadingMaxRetry,retryDelay:o.fragLoadingRetryDelay,maxRetryDelay:o.fragLoadingMaxRetryTimeout},d={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)},e.loader.load(s,l,d)}else this.decryptkey&&(a.key=this.decryptkey,this.hls.trigger(yt.a.KEY_LOADED,{frag:e}))},e.prototype.loadsuccess=function(t,e,r){var i=r.frag;this.decryptkey=i.decryptdata.key=new Uint8Array(t.data),i.loader=void 0,this.loaders[i.type]=void 0,this.hls.trigger(yt.a.KEY_LOADED,{frag:i})},e.prototype.loaderror=function(t,e){var r=e.frag,i=r.loader;i&&i.abort(),this.loaders[e.type]=void 0,this.hls.trigger(yt.a.ERROR,{type:mt.b.NETWORK_ERROR,details:mt.a.KEY_LOAD_ERROR,fatal:!1,frag:r,response:t})},e.prototype.loadtimeout=function(t,e){var r=e.frag,i=r.loader;i&&i.abort(),this.loaders[e.type]=void 0,this.hls.trigger(yt.a.ERROR,{type:mt.b.NETWORK_ERROR,details:mt.a.KEY_LOAD_TIMEOUT,fatal:!1,frag:r})},e}(At),$t=Jt,te={NOT_LOADED:\"NOT_LOADED\",APPENDING:\"APPENDING\",PARTIAL:\"PARTIAL\",OK:\"OK\"},ee=function(t){function e(r){b(this,e);var i=E(this,t.call(this,r,yt.a.BUFFER_APPENDED,yt.a.FRAG_BUFFERED,yt.a.FRAG_LOADED));return i.bufferPadding=.2,i.fragments=Object.create(null),i.timeRanges=Object.create(null),i.config=r.config,i}return T(e,t),e.prototype.destroy=function(){this.fragments=null,this.timeRanges=null,this.config=null,At.prototype.destroy.call(this),t.prototype.destroy.call(this)},e.prototype.getBufferedFrag=function(t,e){var r=this.fragments,i=Object.keys(r).filter(function(i){var a=r[i];if(a.body.type!==e)return!1;if(!a.buffered)return!1;var n=a.body;return n.startPTS<=t&&t<=n.endPTS});if(0===i.length)return null;var a=i.pop();return r[a].body},e.prototype.detectEvictedFragments=function(t,e){var r=this,i=void 0,a=void 0;Object.keys(this.fragments).forEach(function(n){var o=r.fragments[n];if(o.buffered===!0){var s=o.range[t];if(s){i=s.time;for(var l=0;l<i.length;l++)if(a=i[l],r.isTimeBuffered(a.startPTS,a.endPTS,e)===!1){r.removeFragment(o.body);break}}}})},e.prototype.detectPartialFragments=function(t){var e=this,r=this.getFragmentKey(t),i=this.fragments[r];i&&(i.buffered=!0,Object.keys(this.timeRanges).forEach(function(r){if(t.hasElementaryStream(r)===!0){var a=e.timeRanges[r];i.range[r]=e.getBufferedTimes(t.startPTS,t.endPTS,a)}}))},e.prototype.getBufferedTimes=function(t,e,r){for(var i=[],a=void 0,n=void 0,o=!1,s=0;s<r.length;s++){if(a=r.start(s)-this.bufferPadding,n=r.end(s)+this.bufferPadding,t>=a&&e<=n){i.push({startPTS:Math.max(t,r.start(s)),endPTS:Math.min(e,r.end(s))});break}if(t<n&&e>a)i.push({startPTS:Math.max(t,r.start(s)),endPTS:Math.min(e,r.end(s))}),o=!0;else if(e<=a)break}return{time:i,partial:o}},e.prototype.getFragmentKey=function(t){return t.type+\"_\"+t.level+\"_\"+t.urlId+\"_\"+t.sn},e.prototype.getPartialFragment=function(t){var e=this,r=void 0,i=void 0,a=void 0,n=null,o=0;return Object.keys(this.fragments).forEach(function(s){var l=e.fragments[s];e.isPartial(l)&&(i=l.body.startPTS-e.bufferPadding,a=l.body.endPTS+e.bufferPadding,t>=i&&t<=a&&(r=Math.min(t-i,a-t),o<=r&&(n=l.body,o=r)))}),n},e.prototype.getState=function(t){var e=this.getFragmentKey(t),r=this.fragments[e],i=te.NOT_LOADED;return void 0!==r&&(i=r.buffered?this.isPartial(r)===!0?te.PARTIAL:te.OK:te.APPENDING),i},e.prototype.isPartial=function(t){return t.buffered===!0&&(void 0!==t.range.video&&t.range.video.partial===!0||void 0!==t.range.audio&&t.range.audio.partial===!0)},e.prototype.isTimeBuffered=function(t,e,r){for(var i=void 0,a=void 0,n=0;n<r.length;n++){if(i=r.start(n)-this.bufferPadding,a=r.end(n)+this.bufferPadding,t>=i&&e<=a)return!0;if(e<=i)return!1}return!1},e.prototype.onFragLoaded=function(t){var e=t.frag;if(!isNaN(e.sn)&&!e.bitrateTest){var r=this.getFragmentKey(e),i={body:e,range:Object.create(null),buffered:!1};this.fragments[r]=i}},e.prototype.onBufferAppended=function(t){var e=this;this.timeRanges=t.timeRanges,Object.keys(this.timeRanges).forEach(function(t){var r=e.timeRanges[t];e.detectEvictedFragments(t,r)})},e.prototype.onFragBuffered=function(t){this.detectPartialFragments(t.frag)},e.prototype.hasFragment=function(t){var e=this.getFragmentKey(t);return void 0!==this.fragments[e]},e.prototype.removeFragment=function(t){var e=this.getFragmentKey(t);delete this.fragments[e]},e.prototype.removeAllFragments=function(){this.fragments=Object.create(null)},e}(At),re={search:function(t,e){for(var r=0,i=t.length-1,a=null,n=null;r<=i;){a=(r+i)/2|0,n=t[a];var o=e(n);if(o>0)r=a+1;else{if(!(o<0))return n;i=a-1}}return null}},ie=re,ae=function(){function t(){S(this,t)}return t.isBuffered=function(t,e){try{if(t)for(var r=t.buffered,i=0;i<r.length;i++)if(e>=r.start(i)&&e<=r.end(i))return!0}catch(a){}return!1},t.bufferInfo=function(t,e,r){try{if(t){var i=t.buffered,a=[],n=void 0;for(n=0;n<i.length;n++)a.push({start:i.start(n),end:i.end(n)});return this.bufferedInfo(a,e,r)}}catch(o){}return{len:0,start:e,end:e,nextStart:void 0}},t.bufferedInfo=function(t,e,r){var i=[],a=void 0,n=void 0,o=void 0,s=void 0,l=void 0;for(t.sort(function(t,e){var r=t.start-e.start;return r?r:e.end-t.end}),l=0;l<t.length;l++){var d=i.length;if(d){var u=i[d-1].end;t[l].start-u<r?t[l].end>u&&(i[d-1].end=t[l].end):i.push(t[l])}else i.push(t[l])}for(l=0,a=0,n=o=e;l<i.length;l++){var f=i[l].start,h=i[l].end;if(e+r>=f&&e<h)n=f,o=h,a=o-e;else if(e+r<f){s=f;break}}return{len:a,start:n,end:o,nextStart:s}},t}(),ne=r(6),oe=r.n(ne),se=r(11),le=r.n(se),de=r(9),ue=r(4),fe=Object(ue.a)(),he=A(),ce=function(){function t(e,r){_(this,t),this.hls=e,this.id=r;var i=this.observer=new oe.a,a=e.config;i.trigger=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),a=1;a<e;a++)r[a-1]=arguments[a];i.emit.apply(i,[t,t].concat(r))},i.off=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),a=1;a<e;a++)r[a-1]=arguments[a];i.removeListener.apply(i,[t].concat(r))};var n=function(t,r){r=r||{},r.frag=this.frag,r.id=this.id,e.trigger(t,r)}.bind(this);i.on(yt.a.FRAG_DECRYPTED,n),i.on(yt.a.FRAG_PARSING_INIT_SEGMENT,n),i.on(yt.a.FRAG_PARSING_DATA,n),i.on(yt.a.FRAG_PARSED,n),i.on(yt.a.ERROR,n),i.on(yt.a.FRAG_PARSING_METADATA,n),i.on(yt.a.FRAG_PARSING_USERDATA,n),i.on(yt.a.INIT_PTS_FOUND,n);var o={mp4:he.isTypeSupported(\"video/mp4\"),mpeg:he.isTypeSupported(\"audio/mpeg\"),mp3:he.isTypeSupported('audio/mp4; codecs=\"mp3\"')},s=navigator.vendor;if(a.enableWorker&&\"undefined\"!=typeof Worker){bt.b.log(\"demuxing in webworker\");var l=void 0;try{l=this.w=le()(12),this.onwmsg=this.onWorkerMessage.bind(this),l.addEventListener(\"message\",this.onwmsg),l.onerror=function(t){e.trigger(yt.a.ERROR,{type:mt.b.OTHER_ERROR,details:mt.a.INTERNAL_EXCEPTION,fatal:!0,event:\"demuxerWorker\",err:{message:t.message+\" (\"+t.filename+\":\"+t.lineno+\")\"}})},l.postMessage({cmd:\"init\",typeSupported:o,vendor:s,id:r,config:JSON.stringify(a)})}catch(d){bt.b.error(\"error while initializing DemuxerWorker, fallback on DemuxerInline\"),l&&fe.URL.revokeObjectURL(l.objectURL),this.demuxer=new de.a(i,o,a,s),this.w=void 0}}else this.demuxer=new de.a(i,o,a,s)}return t.prototype.destroy=function(){var t=this.w;if(t)t.removeEventListener(\"message\",this.onwmsg),t.terminate(),this.w=null;else{var e=this.demuxer;e&&(e.destroy(),this.demuxer=null)}var r=this.observer;r&&(r.removeAllListeners(),this.observer=null)},t.prototype.push=function(t,e,r,i,a,n,o,s){var l=this.w,d=isNaN(a.startDTS)?a.start:a.startDTS,u=a.decryptdata,f=this.frag,h=!(f&&a.cc===f.cc),c=!(f&&a.level===f.level),p=f&&a.sn===f.sn+1,v=!c&&p;if(h&&bt.b.log(this.id+\":discontinuity detected\"),c&&bt.b.log(this.id+\":switch detected\"),this.frag=a,l)l.postMessage({cmd:\"demux\",data:t,decryptdata:u,initSegment:e,audioCodec:r,videoCodec:i,timeOffset:d,discontinuity:h,trackSwitch:c,contiguous:v,duration:n,accurateTimeOffset:o,defaultInitPTS:s},t instanceof ArrayBuffer?[t]:[]);else{var g=this.demuxer;g&&g.push(t,u,e,r,i,d,h,c,v,n,o,s)}},t.prototype.onWorkerMessage=function(t){var e=t.data,r=this.hls;switch(e.event){case\"init\":fe.URL.revokeObjectURL(this.w.objectURL);break;case yt.a.FRAG_PARSING_DATA:e.data.data1=new Uint8Array(e.data1),e.data2&&(e.data.data2=new Uint8Array(e.data2));default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,r.trigger(e.event,e.data)}},t}(),pe=ce,ve={toString:function(t){for(var e=\"\",r=t.length,i=0;i<r;i++)e+=\"[\"+t.start(i).toFixed(3)+\",\"+t.end(i).toFixed(3)+\"]\";return e}},ge=ve,me=function(t){function e(r){C(this,e);for(var i=arguments.length,a=Array(i>1?i-1:0),n=1;n<i;n++)a[n-1]=arguments[n];var o=F(this,t.call.apply(t,[this,r].concat(a)));return o._tickInterval=null,o._tickTimer=null,o._tickCallCount=0,o._boundTick=o.tick.bind(o),o}return M(e,t),e.prototype.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},e.prototype.hasInterval=function(){return!!this._tickInterval},e.prototype.hasNextTick=function(){return!!this._tickTimer},e.prototype.setInterval=function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(t){return!this._tickInterval&&(this._tickInterval=setInterval(this._boundTick,t),!0)}),e.prototype.clearInterval=function(t){function e(){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}(function(){return!!this._tickInterval&&(clearInterval(this._tickInterval),this._tickInterval=null,!0)}),e.prototype.clearNextTick=function(){return!!this._tickTimer&&(clearTimeout(this._tickTimer),this._tickTimer=null,!0)},e.prototype.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&(this.clearNextTick(),this._tickTimer=setTimeout(this._boundTick,0)),this._tickCallCount=0)},e.prototype.doTick=function(){},e}(At),ye=me,be=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Ee={STOPPED:\"STOPPED\",IDLE:\"IDLE\",KEY_LOADING:\"KEY_LOADING\",FRAG_LOADING:\"FRAG_LOADING\",FRAG_LOADING_WAITING_RETRY:\"FRAG_LOADING_WAITING_RETRY\",WAITING_LEVEL:\"WAITING_LEVEL\",PARSING:\"PARSING\",PARSED:\"PARSED\",BUFFER_FLUSHING:\"BUFFER_FLUSHING\",ENDED:\"ENDED\",ERROR:\"ERROR\"},Te=function(t){function e(r,i){j(this,e);var a=K(this,t.call(this,r,yt.a.MEDIA_ATTACHED,yt.a.MEDIA_DETACHING,yt.a.MANIFEST_LOADING,yt.a.MANIFEST_PARSED,yt.a.LEVEL_LOADED,yt.a.KEY_LOADED,yt.a.FRAG_LOADED,yt.a.FRAG_LOAD_EMERGENCY_ABORTED,yt.a.FRAG_PARSING_INIT_SEGMENT,yt.a.FRAG_PARSING_DATA,yt.a.FRAG_PARSED,yt.a.ERROR,yt.a.AUDIO_TRACK_SWITCHING,yt.a.AUDIO_TRACK_SWITCHED,yt.a.BUFFER_CREATED,yt.a.BUFFER_APPENDED,yt.a.BUFFER_FLUSHED));return a.fragmentTracker=i,a.config=r.config,a.audioCodecSwap=!1,a._state=Ee.STOPPED,a.stallReported=!1,a}return H(e,t),e.prototype.onHandlerDestroying=function(){this.stopLoad(),t.prototype.onHandlerDestroying.call(this)},e.prototype.onHandlerDestroyed=function(){this.state=Ee.STOPPED,this.fragmentTracker=null,t.prototype.onHandlerDestroyed.call(this)},e.prototype.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,r=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var i=r.startLevel;i===-1&&(i=0,this.bitrateTest=!0),this.level=r.nextLoadLevel=i,this.loadedmetadata=!1}e>0&&t===-1&&(bt.b.log(\"override startPosition with lastCurrentTime @\"+e.toFixed(3)),t=e),this.state=Ee.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this.forceStartLoad=!0,this.state=Ee.STOPPED},e.prototype.stopLoad=function(){var t=this.fragCurrent;t&&(t.loader&&t.loader.abort(),this.fragmentTracker.removeFragment(t),this.fragCurrent=null),this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.clearInterval(),this.state=Ee.STOPPED,this.forceStartLoad=!1},e.prototype.doTick=function(){switch(this.state){case Ee.BUFFER_FLUSHING:this.fragLoadError=0;break;case Ee.IDLE:this._doTickIdle();break;case Ee.WAITING_LEVEL:var t=this.levels[this.level];t&&t.details&&(this.state=Ee.IDLE);break;case Ee.FRAG_LOADING_WAITING_RETRY:var e=window.performance.now(),r=this.retryDate;(!r||e>=r||this.media&&this.media.seeking)&&(bt.b.log(\"mediaController: retryDate reached, switch back to IDLE state\"),this.state=Ee.IDLE);break;case Ee.ERROR:case Ee.STOPPED:case Ee.FRAG_LOADING:case Ee.PARSING:case Ee.PARSED:case Ee.ENDED:}this._checkBuffer(),this._checkFragmentChanged()},e.prototype._doTickIdle=function(){var t=this.hls,e=t.config,r=this.media;if(void 0!==this.levelLastLoaded&&(r||!this.startFragRequested&&e.startFragPrefetch)){var i=void 0;i=this.loadedmetadata?r.currentTime:this.nextLoadPosition;var a=t.nextLoadLevel,n=this.levels[a];if(n){var o=n.bitrate,s=void 0;s=o?Math.max(8*e.maxBufferSize/o,e.maxBufferLength):e.maxBufferLength,s=Math.min(s,e.maxMaxBufferLength);var l=ae.bufferInfo(this.mediaBuffer?this.mediaBuffer:r,i,e.maxBufferHole),d=l.len;if(!(d>=s)){bt.b.trace(\"buffer length of \"+d.toFixed(3)+\" is below max of \"+s.toFixed(3)+\". checking for more payload ...\"),this.level=t.nextLoadLevel=a;var u=n.details;if(!u||u.live&&this.levelLastLoaded!==a)return void(this.state=Ee.WAITING_LEVEL);var f=this.fragPrevious;if(!u.live&&f&&!f.backtracked&&f.sn===u.endSN&&!l.nextStart){var h=Math.min(r.duration,f.start+f.duration);if(h-Math.max(l.end,f.start)<=Math.max(.2,f.duration)){var c={};return this.altAudio&&(c.type=\"video\"),this.hls.trigger(yt.a.BUFFER_EOS,c),void(this.state=Ee.ENDED)}}this._fetchPayloadOrEos(i,l,u)}}}},e.prototype._fetchPayloadOrEos=function(t,e,r){var i=this.fragPrevious,a=this.level,n=r.fragments,o=n.length;if(0!==o){var s=n[0].start,l=n[o-1].start+n[o-1].duration,d=e.end,u=void 0;if(r.initSegment&&!r.initSegment.data)u=r.initSegment;else if(r.live){var f=this.config.initialLiveManifestSize;if(o<f)return void bt.b.warn(\"Can not start playback of a level, reason: not enough fragments \"+o+\" < \"+f);if(u=this._ensureFragmentAtLivePoint(r,d,s,l,i,n,o),null===u)return}else d<s&&(u=n[0]);u||(u=this._findFragment(s,i,o,n,d,l,r)),u&&(u.encrypted?(bt.b.log(\"Loading key for \"+u.sn+\" of [\"+r.startSN+\" ,\"+r.endSN+\"],level \"+a),this._loadKey(u)):(bt.b.log(\"Loading \"+u.sn+\" of [\"+r.startSN+\" ,\"+r.endSN+\"],level \"+a+\", currentTime:\"+t.toFixed(3)+\",bufferEnd:\"+d.toFixed(3)),this._loadFragment(u)))}},e.prototype._ensureFragmentAtLivePoint=function(t,e,r,i,a,n,o){var s=this.hls.config,l=this.media,d=void 0,u=void 0!==s.liveMaxLatencyDuration?s.liveMaxLatencyDuration:s.liveMaxLatencyDurationCount*t.targetduration;if(e<Math.max(r-s.maxFragLookUpTolerance,i-u)){var f=this.liveSyncPosition=this.computeLivePosition(r,t);bt.b.log(\"buffer end: \"+e.toFixed(3)+\" is located too far from the end of live sliding playlist, reset currentTime to : \"+f.toFixed(3)),e=f,l&&l.readyState&&l.duration>f&&(l.currentTime=f),this.nextLoadPosition=f}if(t.PTSKnown&&e>i&&l&&l.readyState)return null;if(this.startFragRequested&&!t.PTSKnown){if(a)if(t.programDateTime)d=U(n,a.endPdt+1);else{var h=a.sn+1;if(h>=t.startSN&&h<=t.endSN){var c=n[h-t.startSN];a.cc===c.cc&&(d=c,bt.b.log(\"live playlist, switching playlist, load frag with next SN: \"+d.sn))}d||(d=ie.search(n,function(t){return a.cc-t.cc}),d&&bt.b.log(\"live playlist, switching playlist, load frag with same CC: \"+d.sn))}d||(d=n[Math.min(o-1,Math.round(o/2))],bt.b.log(\"live playlist, switching playlist, unknown, load middle frag : \"+d.sn))}return d},e.prototype._findFragment=function(t,e,r,i,a,n,o){var s=this.hls.config,l=function(){return B(e,i,a,n,s.maxFragLookUpTolerance)},d=void 0,u=void 0;if(a<n?o.programDateTime?(u=U(i,N(t,a,o)),u&&!G(a,s.maxFragLookUpTolerance,u)||(bt.b.warn(\"Frag found by PDT search did not fit within tolerance; falling back to finding by SN\"),u=l())):u=B(e,i,a,n,s.maxFragLookUpTolerance):u=i[r-1],u){d=u;var f=d.sn-o.startSN,h=e&&d.level===e.level,c=i[f-1],p=i[f+1];if(e&&d.sn===e.sn)if(h&&!d.backtracked)if(d.sn<o.endSN){var v=e.deltaPTS;v&&v>s.maxBufferHole&&e.dropped&&f?(d=c,bt.b.warn(\"SN just loaded, with large PTS gap between audio and video, maybe frag is not starting with a keyframe ? load previous one to try to overcome this\")):(d=p,bt.b.log(\"SN just loaded, load next one: \"+d.sn))}else d=null;else d.backtracked&&(p&&p.backtracked?(bt.b.warn(\"Already backtracked from fragment \"+p.sn+\", will not backtrack to fragment \"+d.sn+\". Loading fragment \"+p.sn),d=p):(bt.b.warn(\"Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe\"),d.dropped=0,c?(d=c,d.backtracked=!0):f&&(d=null)))}return d},e.prototype._loadKey=function(t){this.state=Ee.KEY_LOADING,this.hls.trigger(yt.a.KEY_LOADING,{frag:t})},e.prototype._loadFragment=function(t){var e=this.fragmentTracker.getState(t);this.fragCurrent=t,this.startFragRequested=!0,isNaN(t.sn)||t.bitrateTest||(this.nextLoadPosition=t.start+t.duration),t.backtracked||e===te.NOT_LOADED||e===te.PARTIAL?(t.autoLevel=this.hls.autoLevelEnabled,t.bitrateTest=this.bitrateTest,this.hls.trigger(yt.a.FRAG_LOADING,{frag:t}),this.demuxer||(this.demuxer=new pe(this.hls,\"main\")),this.state=Ee.FRAG_LOADING):e===te.APPENDING&&this._reduceMaxBufferLength(t.duration)&&this.fragmentTracker.removeFragment(t)},e.prototype.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,qt.LevelType.MAIN)},e.prototype.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.endPTS+.5):null},e.prototype._checkFragmentChanged=function(){var t=void 0,e=void 0,r=this.media;if(r&&r.readyState&&r.seeking===!1&&(e=r.currentTime,e>this.lastCurrentTime&&(this.lastCurrentTime=e),ae.isBuffered(r,e)?t=this.getBufferedFrag(e):ae.isBuffered(r,e+.1)&&(t=this.getBufferedFrag(e+.1)),t)){var i=t;if(i!==this.fragPlaying){this.hls.trigger(yt.a.FRAG_CHANGED,{frag:i});var a=i.level;this.fragPlaying&&this.fragPlaying.level===a||this.hls.trigger(yt.a.LEVEL_SWITCHED,{level:a}),this.fragPlaying=i}}},e.prototype.immediateLevelSwitch=function(){if(bt.b.log(\"immediateLevelSwitch\"),!this.immediateSwitch){this.immediateSwitch=!0;var t=this.media,e=void 0;t?(e=t.paused,t.pause()):e=!0,this.previouslyPaused=e}var r=this.fragCurrent;r&&r.loader&&r.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},e.prototype.immediateLevelSwitchEnd=function(){var t=this.media;t&&t.buffered.length&&(this.immediateSwitch=!1,ae.isBuffered(t,t.currentTime)&&(t.currentTime-=1e-4),this.previouslyPaused||t.play())},e.prototype.nextLevelSwitch=function(){var t=this.media;if(t&&t.readyState){var e=void 0,r=void 0,i=void 0;if(r=this.getBufferedFrag(t.currentTime),r&&r.startPTS>1&&this.flushMainBuffer(0,r.startPTS-1),t.paused)e=0;else{var a=this.hls.nextLoadLevel,n=this.levels[a],o=this.fragLastKbps;e=o&&this.fragCurrent?this.fragCurrent.duration*n.bitrate/(1e3*o)+1:0}if(i=this.getBufferedFrag(t.currentTime+e),i&&(i=this.followingBufferedFrag(i))){var s=this.fragCurrent;s&&s.loader&&s.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(i.maxStartPTS,Number.POSITIVE_INFINITY)}}},e.prototype.flushMainBuffer=function(t,e){this.state=Ee.BUFFER_FLUSHING;var r={startOffset:t,endOffset:e};this.altAudio&&(r.type=\"video\"),this.hls.trigger(yt.a.BUFFER_FLUSHING,r)},e.prototype.onMediaAttached=function(t){var e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),e.addEventListener(\"seeking\",this.onvseeking),e.addEventListener(\"seeked\",this.onvseeked),e.addEventListener(\"ended\",this.onvended);var r=this.config;this.levels&&r.autoStartLoad&&this.hls.startLoad(r.startPosition)},e.prototype.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(bt.b.log(\"MSE detaching and video ended, reset startPosition\"),this.startPosition=this.lastCurrentTime=0);var e=this.levels;e&&e.forEach(function(t){t.details&&t.details.fragments.forEach(function(t){t.backtracked=void 0})}),t&&(t.removeEventListener(\"seeking\",this.onvseeking),t.removeEventListener(\"seeked\",this.onvseeked),t.removeEventListener(\"ended\",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()},e.prototype.onMediaSeeking=function(){var t=this.media,e=t?t.currentTime:void 0,r=this.config;isNaN(e)||bt.b.log(\"media seeking to \"+e.toFixed(3));var i=this.mediaBuffer?this.mediaBuffer:t,a=ae.bufferInfo(i,e,this.config.maxBufferHole);if(this.state===Ee.FRAG_LOADING){var n=this.fragCurrent;if(0===a.len&&n){var o=r.maxFragLookUpTolerance,s=n.start-o,l=n.start+n.duration+o;e<s||e>l?(n.loader&&(bt.b.log(\"seeking outside of buffer while fragment load in progress, cancel fragment load\"),n.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=Ee.IDLE):bt.b.log(\"seeking outside of buffer but within currently loaded fragment range\")}}else this.state===Ee.ENDED&&(0===a.len&&(this.fragPrevious=0),this.state=Ee.IDLE);t&&(this.lastCurrentTime=e),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=e),this.tick()},e.prototype.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:void 0;isNaN(e)||bt.b.log(\"media seeked to \"+e.toFixed(3)),this.tick()},e.prototype.onMediaEnded=function(){bt.b.log(\"media ended\"),this.startPosition=this.lastCurrentTime=0},e.prototype.onManifestLoading=function(){bt.b.log(\"trigger BUFFER_RESET\"),this.hls.trigger(yt.a.BUFFER_RESET),this.fragmentTracker.removeAllFragments(),this.stalled=!1,this.startPosition=this.lastCurrentTime=0},e.prototype.onManifestParsed=function(t){var e=!1,r=!1,i=void 0;t.levels.forEach(function(t){i=t.audioCodec,i&&(i.indexOf(\"mp4a.40.2\")!==-1&&(e=!0),i.indexOf(\"mp4a.40.5\")!==-1&&(r=!0))}),this.audioCodecSwitch=e&&r,this.audioCodecSwitch&&bt.b.log(\"both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC\"),this.levels=t.levels,this.startFragRequested=!1;var a=this.config;(a.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(a.startPosition)},e.prototype.onLevelLoaded=function(t){var e=t.details,r=t.level,i=this.levels[this.levelLastLoaded],a=this.levels[r],n=e.totalduration,o=0;if(bt.b.log(\"level \"+r+\" loaded [\"+e.startSN+\",\"+e.endSN+\"],duration:\"+n),e.live){var s=a.details;s&&e.fragments.length>0?(D(s,e),o=e.fragments[0].start,this.liveSyncPosition=this.computeLivePosition(o,s),e.PTSKnown&&!isNaN(o)?bt.b.log(\"live playlist sliding:\"+o.toFixed(3)):(bt.b.log(\"live playlist - outdated PTS, unknown sliding\"),P(this.fragPrevious,i,e))):(bt.b.log(\"live playlist - first load, unknown sliding\"),e.PTSKnown=!1,P(this.fragPrevious,i,e))}else e.PTSKnown=!1;if(a.details=e,this.levelLastLoaded=r,this.hls.trigger(yt.a.LEVEL_UPDATED,{details:e,level:r}),this.startFragRequested===!1){if(this.startPosition===-1||this.lastCurrentTime===-1){var l=e.startTimeOffset;isNaN(l)?e.live?(this.startPosition=this.computeLivePosition(o,e),bt.b.log(\"configure startPosition to \"+this.startPosition)):this.startPosition=0:(l<0&&(bt.b.log(\"negative start time offset \"+l+\", count from end of last fragment\"),l=o+n+l),bt.b.log(\"start time offset found in playlist, adjust startPosition to \"+l),this.startPosition=l),this.lastCurrentTime=this.startPosition}this.nextLoadPosition=this.startPosition}this.state===Ee.WAITING_LEVEL&&(this.state=Ee.IDLE),this.tick()},e.prototype.onKeyLoaded=function(){this.state===Ee.KEY_LOADING&&(this.state=Ee.IDLE,this.tick())},e.prototype.onFragLoaded=function(t){var e=this.fragCurrent,r=t.frag;if(this.state===Ee.FRAG_LOADING&&e&&\"main\"===r.type&&r.level===e.level&&r.sn===e.sn){var i=t.stats,a=this.levels[e.level],n=a.details;if(bt.b.log(\"Loaded  \"+e.sn+\" of [\"+n.startSN+\" ,\"+n.endSN+\"],level \"+e.level),this.bitrateTest=!1,this.stats=i,r.bitrateTest===!0&&this.hls.nextLoadLevel)this.state=Ee.IDLE,this.startFragRequested=!1,i.tparsed=i.tbuffered=window.performance.now(),this.hls.trigger(yt.a.FRAG_BUFFERED,{stats:i,frag:e,id:\"main\"}),this.tick();else if(\"initSegment\"===r.sn)this.state=Ee.IDLE,i.tparsed=i.tbuffered=window.performance.now(),n.initSegment.data=t.payload,this.hls.trigger(yt.a.FRAG_BUFFERED,{stats:i,frag:e,id:\"main\"}),this.tick();else{this.state=Ee.PARSING;var o=n.totalduration,s=e.level,l=e.sn,d=this.config.defaultAudioCodec||a.audioCodec;this.audioCodecSwap&&(bt.b.log(\"swapping playlist audio codec\"),void 0===d&&(d=this.lastAudioCodec),d&&(d=d.indexOf(\"mp4a.40.5\")!==-1?\"mp4a.40.2\":\"mp4a.40.5\")),this.pendingBuffering=!0,this.appended=!1,bt.b.log(\"Parsing \"+l+\" of [\"+n.startSN+\" ,\"+n.endSN+\"],level \"+s+\", cc \"+e.cc);var u=this.demuxer;u||(u=this.demuxer=new pe(this.hls,\"main\"));var f=this.media,h=f&&f.seeking,c=!h&&(n.PTSKnown||!n.live),p=n.initSegment?n.initSegment.data:[];u.push(t.payload,p,d,a.videoCodec,e,o,c,void 0)}}this.fragLoadError=0},e.prototype.onFragParsingInitSegment=function(t){var e=this.fragCurrent,r=t.frag;if(e&&\"main\"===t.id&&r.sn===e.sn&&r.level===e.level&&this.state===Ee.PARSING){var i=t.tracks,a=void 0,n=void 0;if(i.audio&&this.altAudio&&delete i.audio,n=i.audio){var o=this.levels[this.level].audioCodec,s=navigator.userAgent.toLowerCase();o&&this.audioCodecSwap&&(bt.b.log(\"swapping playlist audio codec\"),o=o.indexOf(\"mp4a.40.5\")!==-1?\"mp4a.40.2\":\"mp4a.40.5\"),this.audioCodecSwitch&&1!==n.metadata.channelCount&&s.indexOf(\"firefox\")===-1&&(o=\"mp4a.40.5\"),s.indexOf(\"android\")!==-1&&\"audio/mpeg\"!==n.container&&(o=\"mp4a.40.2\",bt.b.log(\"Android: force audio codec to \"+o)),n.levelCodec=o,n.id=t.id}n=i.video,n&&(n.levelCodec=this.levels[this.level].videoCodec,n.id=t.id),this.hls.trigger(yt.a.BUFFER_CODECS,i);for(a in i){n=i[a],bt.b.log(\"main track:\"+a+\",container:\"+n.container+\",codecs[level/parsed]=[\"+n.levelCodec+\"/\"+n.codec+\"]\");var l=n.initSegment;l&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(yt.a.BUFFER_APPENDING,{type:a,data:l,parent:\"main\",content:\"initSegment\"}))}this.tick()}},e.prototype.onFragParsingData=function(t){var e=this,r=this.fragCurrent,i=t.frag;if(r&&\"main\"===t.id&&i.sn===r.sn&&i.level===r.level&&(\"audio\"!==t.type||!this.altAudio)&&this.state===Ee.PARSING){var a=this.levels[this.level],n=r;if(isNaN(t.endPTS)&&(t.endPTS=t.startPTS+r.duration,t.endDTS=t.startDTS+r.duration),t.hasAudio===!0&&n.addElementaryStream(Ot.ElementaryStreamTypes.AUDIO),t.hasVideo===!0&&n.addElementaryStream(Ot.ElementaryStreamTypes.VIDEO),bt.b.log(\"Parsed \"+t.type+\",PTS:[\"+t.startPTS.toFixed(3)+\",\"+t.endPTS.toFixed(3)+\"],DTS:[\"+t.startDTS.toFixed(3)+\"/\"+t.endDTS.toFixed(3)+\"],nb:\"+t.nb+\",dropped:\"+(t.dropped||0)),\"video\"===t.type)if(n.dropped=t.dropped,n.dropped)if(n.backtracked)bt.b.warn(\"Already backtracked on this fragment, appending with the gap\",n.sn);else{var o=a.details;if(!o||n.sn!==o.startSN)return bt.b.warn(\"missing video frame(s), backtracking fragment\",n.sn),this.fragmentTracker.removeFragment(n),n.backtracked=!0,this.nextLoadPosition=t.startPTS,this.state=Ee.IDLE,this.fragPrevious=n,void this.tick();bt.b.warn(\"missing video frame(s) on first frag, appending with gap\",n.sn)}else n.backtracked=!1;var s=w(a.details,n,t.startPTS,t.endPTS,t.startDTS,t.endDTS),l=this.hls;l.trigger(yt.a.LEVEL_PTS_UPDATED,{details:a.details,level:this.level,drift:s,type:t.type,start:t.startPTS,end:t.endPTS}),[t.data1,t.data2].forEach(function(r){r&&r.length&&e.state===Ee.PARSING&&(e.appended=!0,e.pendingBuffering=!0,l.trigger(yt.a.BUFFER_APPENDING,{type:t.type,data:r,parent:\"main\",content:\"data\"}))}),this.tick()}},e.prototype.onFragParsed=function(t){var e=this.fragCurrent,r=t.frag;e&&\"main\"===t.id&&r.sn===e.sn&&r.level===e.level&&this.state===Ee.PARSING&&(this.stats.tparsed=window.performance.now(),this.state=Ee.PARSED,this._checkAppendedParsed())},e.prototype.onAudioTrackSwitching=function(t){var e=!!t.url,r=t.id;if(!e){if(this.mediaBuffer!==this.media){bt.b.log(\"switching on main audio, use media.buffered to schedule main fragment loading\"),this.mediaBuffer=this.media;var i=this.fragCurrent;i.loader&&(bt.b.log(\"switching to main audio track, cancel main fragment load\"),i.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=Ee.IDLE}var a=this.hls;a.trigger(yt.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:\"audio\"}),a.trigger(yt.a.AUDIO_TRACK_SWITCHED,{id:r}),this.altAudio=!1}},e.prototype.onAudioTrackSwitched=function(t){var e=t.id,r=!!this.hls.audioTracks[e].url;if(r){var i=this.videoBuffer;i&&this.mediaBuffer!==i&&(bt.b.log(\"switching on alternate audio, use video.buffered to schedule main fragment loading\"),this.mediaBuffer=i)}this.altAudio=r,this.tick()},e.prototype.onBufferCreated=function(t){var e=t.tracks,r=void 0,i=void 0,a=!1;for(var n in e){var o=e[n];\"main\"===o.id?(i=n,r=o,\"video\"===n&&(this.videoBuffer=e[n].buffer)):a=!0}a&&r?(bt.b.log(\"alternate track found, use \"+i+\".buffered to schedule main fragment loading\"),this.mediaBuffer=r.buffer):this.mediaBuffer=this.media},e.prototype.onBufferAppended=function(t){if(\"main\"===t.parent){var e=this.state;e!==Ee.PARSING&&e!==Ee.PARSED||(this.pendingBuffering=t.pending>0,this._checkAppendedParsed())}},e.prototype._checkAppendedParsed=function(){if(!(this.state!==Ee.PARSED||this.appended&&this.pendingBuffering)){var t=this.fragCurrent;if(t){var e=this.mediaBuffer?this.mediaBuffer:this.media;bt.b.log(\"main buffered : \"+ge.toString(e.buffered)),this.fragPrevious=t;var r=this.stats;r.tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*r.total/(r.tbuffered-r.tfirst)),this.hls.trigger(yt.a.FRAG_BUFFERED,{stats:r,frag:t,id:\"main\"}),this.state=Ee.IDLE}this.tick()}},e.prototype.onError=function(t){var e=t.frag||this.fragCurrent;if(!e||\"main\"===e.type){var r=!!this.media&&ae.isBuffered(this.media,this.media.currentTime)&&ae.isBuffered(this.media,this.media.currentTime+.5);switch(t.details){case mt.a.FRAG_LOAD_ERROR:case mt.a.FRAG_LOAD_TIMEOUT:case mt.a.KEY_LOAD_ERROR:case mt.a.KEY_LOAD_TIMEOUT:if(!t.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){\nvar i=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout);bt.b.warn(\"mediaController: frag loading failed, retry in \"+i+\" ms\"),this.retryDate=window.performance.now()+i,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=Ee.FRAG_LOADING_WAITING_RETRY}else bt.b.error(\"mediaController: \"+t.details+\" reaches max retry, redispatch as fatal ...\"),t.fatal=!0,this.state=Ee.ERROR;break;case mt.a.LEVEL_LOAD_ERROR:case mt.a.LEVEL_LOAD_TIMEOUT:this.state!==Ee.ERROR&&(t.fatal?(this.state=Ee.ERROR,bt.b.warn(\"streamController: \"+t.details+\",switch to \"+this.state+\" state ...\")):t.levelRetry||this.state!==Ee.WAITING_LEVEL||(this.state=Ee.IDLE));break;case mt.a.BUFFER_FULL_ERROR:\"main\"!==t.parent||this.state!==Ee.PARSING&&this.state!==Ee.PARSED||(r?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=Ee.IDLE):(bt.b.warn(\"buffer full error also media.currentTime is not buffered, flush everything\"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)))}}},e.prototype._reduceMaxBufferLength=function(t){var e=this.config;return e.maxMaxBufferLength>=t&&(e.maxMaxBufferLength/=2,bt.b.warn(\"main:reduce max buffer length to \"+e.maxMaxBufferLength+\"s\"),!0)},e.prototype._checkBuffer=function(){var t=this.config,e=this.media,r=1e3;if(e&&0!==e.readyState){var i=e.currentTime,a=this.mediaBuffer?this.mediaBuffer:e,n=a.buffered;if(!this.loadedmetadata&&n.length)this.loadedmetadata=!0,this._seekToStartPos();else if(this.immediateSwitch)this.immediateLevelSwitchEnd();else{var o=!(e.paused&&e.readyState>1||e.ended||0===e.buffered.length),s=window.performance.now();if(i!==this.lastCurrentTime)this.stallReported&&(bt.b.warn(\"playback not stuck anymore @\"+i+\", after \"+Math.round(s-this.stalled)+\"ms\"),this.stallReported=!1),this.stalled=null,this.nudgeRetry=0;else if(o){var l=s-this.stalled,d=ae.bufferInfo(e,i,t.maxBufferHole);if(!this.stalled)return void(this.stalled=s);l>=r&&this._reportStall(d.len),this._tryFixBufferStall(d,l)}}}},e.prototype.onFragLoadEmergencyAborted=function(){this.state=Ee.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()},e.prototype.onBufferFlushed=function(){var t=this.mediaBuffer?this.mediaBuffer:this.media;t&&this.fragmentTracker.detectEvictedFragments(Ot.ElementaryStreamTypes.VIDEO,t.buffered),this.state=Ee.IDLE,this.fragPrevious=null},e.prototype.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},e.prototype.computeLivePosition=function(t,e){var r=void 0!==this.config.liveSyncDuration?this.config.liveSyncDuration:this.config.liveSyncDurationCount*e.targetduration;return t+Math.max(0,e.totalduration-r)},e.prototype._tryFixBufferStall=function(t,e){var r=this.config,i=this.media,a=i.currentTime,n=.5,o=this.fragmentTracker.getPartialFragment(a);o&&this._trySkipBufferHole(o),t.len>n&&e>1e3*r.highBufferWatchdogPeriod&&(this.stalled=null,this._tryNudgeBuffer())},e.prototype._reportStall=function(t){var e=this.hls,r=this.media,i=this.stallReported;i||(this.stallReported=!0,bt.b.warn(\"Playback stalling at @\"+r.currentTime+\" due to low buffer\"),e.trigger(yt.a.ERROR,{type:mt.b.MEDIA_ERROR,details:mt.a.BUFFER_STALLED_ERROR,fatal:!1,buffer:t}))},e.prototype._trySkipBufferHole=function(t){for(var e=this.hls,r=this.media,i=r.currentTime,a=0,n=0;n<r.buffered.length;n++){var o=r.buffered.start(n);if(i>=a&&i<o)return r.currentTime=Math.max(o,r.currentTime+.1),bt.b.warn(\"skipping hole, adjusting currentTime from \"+i+\" to \"+r.currentTime),this.stalled=null,void e.trigger(yt.a.ERROR,{type:mt.b.MEDIA_ERROR,details:mt.a.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:\"fragment loaded with buffer holes, seeking from \"+i+\" to \"+r.currentTime,frag:t});a=r.buffered.end(n)}},e.prototype._tryNudgeBuffer=function(){var t=this.config,e=this.hls,r=this.media,i=r.currentTime,a=(this.nudgeRetry||0)+1;if(this.nudgeRetry=a,a<t.nudgeMaxRetry){var n=i+a*t.nudgeOffset;bt.b.log(\"adjust currentTime from \"+i+\" to \"+n),r.currentTime=n,e.trigger(yt.a.ERROR,{type:mt.b.MEDIA_ERROR,details:mt.a.BUFFER_NUDGE_ON_STALL,fatal:!1})}else bt.b.error(\"still stuck in high buffer @\"+i+\" after \"+t.nudgeMaxRetry+\", raise fatal error\"),e.trigger(yt.a.ERROR,{type:mt.b.MEDIA_ERROR,details:mt.a.BUFFER_STALLED_ERROR,fatal:!0})},e.prototype._seekToStartPos=function(){var t=this.media,e=t.currentTime,r=t.seeking?e:this.startPosition;e!==r&&(bt.b.log(\"target start position not buffered, seek to buffered.start(0) \"+r+\" from current time \"+e+\" \"),t.currentTime=r)},be(e,[{key:\"state\",set:function(t){if(this.state!==t){var e=this.state;this._state=t,bt.b.log(\"main stream:\"+e+\"->\"+t),this.hls.trigger(yt.a.STREAM_STATE_TRANSITION,{previousState:e,nextState:t})}},get:function(){return this._state}},{key:\"currentLevel\",get:function(){var t=this.media;if(t){var e=this.getBufferedFrag(t.currentTime);if(e)return e.level}return-1}},{key:\"nextBufferedFrag\",get:function(){var t=this.media;return t?this.followingBufferedFrag(this.getBufferedFrag(t.currentTime)):null}},{key:\"nextLevel\",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:\"liveSyncPosition\",get:function(){return this._liveSyncPosition},set:function(t){this._liveSyncPosition=t}}]),e}(ye),Se=Te,Ae=\"function\"==typeof Symbol&&\"symbol\"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&\"function\"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?\"symbol\":typeof t},_e=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Re=window,Le=Re.performance,we=function(t){function e(r){V(this,e);var i=W(this,t.call(this,r,yt.a.MANIFEST_LOADED,yt.a.LEVEL_LOADED,yt.a.AUDIO_TRACK_SWITCHED,yt.a.FRAG_LOADED,yt.a.ERROR));return i.canload=!1,i.currentLevelIndex=null,i.manualLevelIndex=-1,i.timer=null,i}return Y(e,t),e.prototype.onHandlerDestroying=function(){this.clearTimer(),this.manualLevelIndex=-1},e.prototype.clearTimer=function(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)},e.prototype.startLoad=function(){var t=this._levels;this.canload=!0,this.levelRetryCount=0,t&&t.forEach(function(t){t.loadError=0;var e=t.details;e&&e.live&&(t.details=void 0)}),null!==this.timer&&this.loadLevel()},e.prototype.stopLoad=function(){this.canload=!1},e.prototype.onManifestLoaded=function(t){var e=[],r=void 0,i={},a=null,n=!1,o=!1,s=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),d=[];if(t.levels.forEach(function(t){t.loadError=0,t.fragmentError=!1,n=n||!!t.videoCodec,o=o||!!t.audioCodec||!(!t.attrs||!t.attrs.AUDIO),s&&t.audioCodec&&t.audioCodec.indexOf(\"mp4a.40.34\")!==-1&&(t.audioCodec=void 0),a=i[t.bitrate],a?a.url.push(t.url):(t.url=[t.url],t.urlId=0,i[t.bitrate]=t,e.push(t)),t.attrs&&t.attrs.AUDIO&&R(a||t,\"audio\",t.attrs.AUDIO),t.attrs&&t.attrs.SUBTITLES&&R(a||t,\"text\",t.attrs.SUBTITLES)}),n&&o&&(e=e.filter(function(t){var e=t.videoCodec;return!!e})),e=e.filter(function(t){var e=t.audioCodec,r=t.videoCodec;return(!e||l(e))&&(!r||l(r))}),t.audioTracks&&(d=t.audioTracks.filter(function(t){return!t.audioCodec||l(t.audioCodec,\"audio\")})),e.length>0){r=e[0].bitrate,e.sort(function(t,e){return t.bitrate-e.bitrate}),this._levels=e;for(var u=0;u<e.length;u++)if(e[u].bitrate===r){this._firstLevel=u,bt.b.log(\"manifest loaded,\"+e.length+\" level(s) found, first bitrate:\"+r);break}this.hls.trigger(yt.a.MANIFEST_PARSED,{levels:e,audioTracks:d,firstLevel:this._firstLevel,stats:t.stats,audio:o,video:n,altAudio:d.length>0&&n})}else this.hls.trigger(yt.a.ERROR,{type:mt.b.MEDIA_ERROR,details:mt.a.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:this.hls.url,reason:\"no level with compatible codecs found in manifest\"})},e.prototype.setLevelInternal=function(t){var e=this._levels,r=this.hls;if(t>=0&&t<e.length){if(this.clearTimer(),this.currentLevelIndex!==t){bt.b.log(\"switching to level \"+t),this.currentLevelIndex=t;var i=e[t];i.level=t,r.trigger(yt.a.LEVEL_SWITCHING,i)}var a=e[t],n=a.details;if(!n||n.live){var o=a.urlId;r.trigger(yt.a.LEVEL_LOADING,{url:a.url[o],level:t,id:o})}}else r.trigger(yt.a.ERROR,{type:mt.b.OTHER_ERROR,details:mt.a.LEVEL_SWITCH_ERROR,level:t,fatal:!1,reason:\"invalid level idx\"})},e.prototype.onError=function(t){if(t.fatal)return void(t.type===mt.b.NETWORK_ERROR&&this.clearTimer());var e=!1,r=!1,i=void 0;switch(t.details){case mt.a.FRAG_LOAD_ERROR:case mt.a.FRAG_LOAD_TIMEOUT:case mt.a.KEY_LOAD_ERROR:case mt.a.KEY_LOAD_TIMEOUT:i=t.frag.level,r=!0;break;case mt.a.LEVEL_LOAD_ERROR:case mt.a.LEVEL_LOAD_TIMEOUT:i=t.context.level,e=!0;break;case mt.a.REMUX_ALLOC_ERROR:i=t.level,e=!0}void 0!==i&&this.recoverLevel(t,i,e,r)},e.prototype.recoverLevel=function(t,e,r,i){var a=this,n=this.hls.config,o=t.details,s=this._levels[e],l=void 0,d=void 0,u=void 0;if(s.loadError++,s.fragmentError=i,r){if(!(this.levelRetryCount+1<=n.levelLoadingMaxRetry))return bt.b.error(\"level controller, cannot recover from \"+o+\" error\"),this.currentLevelIndex=null,this.clearTimer(),void(t.fatal=!0);d=Math.min(Math.pow(2,this.levelRetryCount)*n.levelLoadingRetryDelay,n.levelLoadingMaxRetryTimeout),this.timer=setTimeout(function(){return a.loadLevel()},d),t.levelRetry=!0,this.levelRetryCount++,bt.b.warn(\"level controller, \"+o+\", retry in \"+d+\" ms, current retry count is \"+this.levelRetryCount)}(r||i)&&(l=s.url.length,l>1&&s.loadError<l?(s.urlId=(s.urlId+1)%l,s.details=void 0,bt.b.warn(\"level controller, \"+o+\" for level \"+e+\": switching to redundant URL-id \"+s.urlId)):this.manualLevelIndex===-1?(u=0===e?this._levels.length-1:e-1,bt.b.warn(\"level controller, \"+o+\": switch to \"+u),this.hls.nextAutoLevel=this.currentLevelIndex=u):i&&(bt.b.warn(\"level controller, \"+o+\": reload a fragment\"),this.currentLevelIndex=null))},e.prototype.onFragLoaded=function(t){var e=t.frag;if(void 0!==e&&\"main\"===e.type){var r=this._levels[e.level];void 0!==r&&(r.fragmentError=!1,r.loadError=0,this.levelRetryCount=0)}},e.prototype.onLevelLoaded=function(t){var e=this,r=t.level;if(r===this.currentLevelIndex){var i=this._levels[r];i.fragmentError||(i.loadError=0,this.levelRetryCount=0);var a=t.details;if(a.live){var n=1e3*(a.averagetargetduration?a.averagetargetduration:a.targetduration),o=n,s=i.details;s&&a.endSN===s.endSN&&(o/=2,bt.b.log(\"same live playlist, reload twice faster\")),o-=Le.now()-t.stats.trequest,o=Math.max(n/2,Math.round(o)),bt.b.log(\"live playlist, reload in \"+Math.round(o)+\" ms\"),this.timer=setTimeout(function(){return e.loadLevel()},o)}else this.clearTimer()}},e.prototype.onAudioTrackSwitched=function(t){var e=this.hls.audioTracks[t.id].groupId,r=this.hls.levels[this.currentLevelIndex];if(r&&r.audioGroupIds){var i=r.audioGroupIds.findIndex(function(t){return t===e});i!==r.urlId&&(r.urlId=i,this.startLoad())}},e.prototype.loadLevel=function(){if(bt.b.debug(\"call to loadLevel\"),null!==this.currentLevelIndex&&this.canload){var t=this._levels[this.currentLevelIndex];if(\"object\"===(\"undefined\"==typeof t?\"undefined\":Ae(t))&&t.url.length>0){var e=this.currentLevelIndex,r=t.urlId,i=t.url[r];bt.b.log(\"Attempt loading level index \"+e+\" with URL-id \"+r),this.hls.trigger(yt.a.LEVEL_LOADING,{url:i,level:e,id:r})}}},_e(e,[{key:\"levels\",get:function(){return this._levels}},{key:\"level\",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;e&&(t=Math.min(t,e.length-1),this.currentLevelIndex===t&&e[t].details||this.setLevelInternal(t))}},{key:\"manualLevel\",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),t!==-1&&(this.level=t)}},{key:\"firstLevel\",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:\"startLevel\",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:\"nextLoadLevel\",get:function(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=t)}}]),e}(At),De=we,Ie=r(7),Oe=function(t){function e(r){q(this,e);var i=Q(this,t.call(this,r,yt.a.MEDIA_ATTACHED,yt.a.MEDIA_DETACHING,yt.a.FRAG_PARSING_METADATA));return i.id3Track=void 0,i.media=void 0,i}return Z(e,t),e.prototype.destroy=function(){At.prototype.destroy.call(this)},e.prototype.onMediaAttached=function(t){this.media=t.media,!this.media},e.prototype.onMediaDetaching=function(){X(this.id3Track),this.id3Track=void 0,this.media=void 0},e.prototype.getID3Track=function(t){for(var e=0;e<t.length;e++){var r=t[e];if(\"metadata\"===r.kind&&\"id3\"===r.label)return z(r,this.media),r}return this.media.addTextTrack(\"metadata\",\"id3\")},e.prototype.onFragParsingMetadata=function(t){var e=t.frag,r=t.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode=\"hidden\");for(var i=window.WebKitDataCue||window.VTTCue||window.TextTrackCue,a=0;a<r.length;a++){var n=Ie.a.getID3Frames(r[a].data);if(n){var o=r[a].pts,s=a<r.length-1?r[a+1].pts:e.endPTS;o===s&&(s+=1e-4);for(var l=0;l<n.length;l++){var d=n[l];if(!Ie.a.isTimeStampFrame(d)){var u=new i(o,s,\"\");u.value=d,this.id3Track.addCue(u)}}}}},e}(At),ke=Oe,xe=function(){function t(e){$(this,t),this.alpha_=e?Math.exp(Math.log(.5)/e):0,this.estimate_=0,this.totalWeight_=0}return t.prototype.sample=function(t,e){var r=Math.pow(this.alpha_,t);this.estimate_=e*(1-r)+r*this.estimate_,this.totalWeight_+=t},t.prototype.getTotalWeight=function(){return this.totalWeight_},t.prototype.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/t}return this.estimate_},t}(),Pe=xe,Ce=function(){function t(e,r,i,a){tt(this,t),this.hls=e,this.defaultEstimate_=a,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Pe(r),this.fast_=new Pe(i)}return t.prototype.sample=function(t,e){t=Math.max(t,this.minDelayMs_);var r=8e3*e/t,i=t/1e3;this.fast_.sample(i,r),this.slow_.sample(i,r)},t.prototype.canEstimate=function(){var t=this.fast_;return t&&t.getTotalWeight()>=this.minWeight_},t.prototype.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},t.prototype.destroy=function(){},t}(),Fe=Ce,Me=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),Ne=window,Ue=Ne.performance,Be=function(t){function e(r){et(this,e);var i=rt(this,t.call(this,r,yt.a.FRAG_LOADING,yt.a.FRAG_LOADED,yt.a.FRAG_BUFFERED,yt.a.ERROR));return i.lastLoadedFragLevel=0,i._nextAutoLevel=-1,i.hls=r,i.timer=null,i._bwEstimator=null,i.onCheck=i._abandonRulesCheck.bind(i),i}return it(e,t),e.prototype.destroy=function(){this.clearTimer(),At.prototype.destroy.call(this)},e.prototype.onFragLoading=function(t){var e=t.frag;if(\"main\"===e.type&&(this.timer||(this.fragCurrent=e,this.timer=setInterval(this.onCheck,100)),!this._bwEstimator)){var r=this.hls,i=r.config,a=e.level,n=r.levels[a].details.live,o=void 0,s=void 0;n?(o=i.abrEwmaFastLive,s=i.abrEwmaSlowLive):(o=i.abrEwmaFastVoD,s=i.abrEwmaSlowVoD),this._bwEstimator=new Fe(r,s,o,i.abrEwmaDefaultEstimate)}},e.prototype._abandonRulesCheck=function(){var t=this.hls,e=t.media,r=this.fragCurrent;if(r){var i=r.loader,a=t.minAutoLevel;if(!i||i.stats&&i.stats.aborted)return bt.b.warn(\"frag loader destroy or aborted, disarm abandonRules\"),this.clearTimer(),void(this._nextAutoLevel=-1);var n=i.stats;if(e&&n&&(!e.paused&&0!==e.playbackRate||!e.readyState)&&r.autoLevel&&r.level){var o=Ue.now()-n.trequest,s=Math.abs(e.playbackRate);if(o>500*r.duration/s){var l=t.levels,d=Math.max(1,n.bw?n.bw/8:1e3*n.loaded/o),u=l[r.level],f=u.realBitrate?Math.max(u.realBitrate,u.bitrate):u.bitrate,h=n.total?n.total:Math.max(n.loaded,Math.round(r.duration*f/8)),c=e.currentTime,p=(h-n.loaded)/d,v=(ae.bufferInfo(e,c,t.config.maxBufferHole).end-c)/s;if(v<2*r.duration/s&&p>v){var g=void 0,m=void 0;for(m=r.level-1;m>a;m--){var y=l[m].realBitrate?Math.max(l[m].realBitrate,l[m].bitrate):l[m].bitrate;if(g=r.duration*y/(6.4*d),g<v)break}g<p&&(bt.b.warn(\"loading too slow, abort fragment loading and switch to level \"+m+\":fragLoadedDelay[\"+m+\"]<fragLoadedDelay[\"+(r.level-1)+\"];bufferStarvationDelay:\"+g.toFixed(1)+\"<\"+p.toFixed(1)+\":\"+v.toFixed(1)),t.nextLoadLevel=m,this._bwEstimator.sample(o,n.loaded),i.abort(),this.clearTimer(),t.trigger(yt.a.FRAG_LOAD_EMERGENCY_ABORTED,{frag:r,stats:n}))}}}}},e.prototype.onFragLoaded=function(t){var e=t.frag;if(\"main\"===e.type&&!isNaN(e.sn)){if(this.clearTimer(),this.lastLoadedFragLevel=e.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var r=this.hls.levels[e.level],i=(r.loaded?r.loaded.bytes:0)+t.stats.loaded,a=(r.loaded?r.loaded.duration:0)+t.frag.duration;r.loaded={bytes:i,duration:a},r.realBitrate=Math.round(8*i/a)}if(t.frag.bitrateTest){var n=t.stats;n.tparsed=n.tbuffered=n.tload,this.onFragBuffered(t)}}},e.prototype.onFragBuffered=function(t){var e=t.stats,r=t.frag;if(!(e.aborted===!0||\"main\"!==r.type||isNaN(r.sn)||r.bitrateTest&&e.tload!==e.tbuffered)){var i=e.tparsed-e.trequest;bt.b.log(\"latency/loading/parsing/append/kbps:\"+Math.round(e.tfirst-e.trequest)+\"/\"+Math.round(e.tload-e.tfirst)+\"/\"+Math.round(e.tparsed-e.tload)+\"/\"+Math.round(e.tbuffered-e.tparsed)+\"/\"+Math.round(8*e.loaded/(e.tbuffered-e.trequest))),this._bwEstimator.sample(i,e.loaded),e.bwEstimate=this._bwEstimator.getEstimate(),r.bitrateTest?this.bitrateTestDelay=i/1e3:this.bitrateTestDelay=0}},e.prototype.onError=function(t){switch(t.details){case mt.a.FRAG_LOAD_ERROR:case mt.a.FRAG_LOAD_TIMEOUT:this.clearTimer()}},e.prototype.clearTimer=function(){clearInterval(this.timer),this.timer=null},e.prototype._findBestLevel=function(t,e,r,i,a,n,o,s,l){for(var d=a;d>=i;d--){var u=l[d],f=u.details,h=f?f.totalduration/f.fragments.length:e,c=!!f&&f.live,p=void 0;p=d<=t?o*r:s*r;var v=l[d].realBitrate?Math.max(l[d].realBitrate,l[d].bitrate):l[d].bitrate,g=v*h/p;if(bt.b.trace(\"level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: \"+d+\"/\"+Math.round(p)+\"/\"+v+\"/\"+h+\"/\"+n+\"/\"+g),p>v&&(!g||c&&!this.bitrateTestDelay||g<n))return d}return-1},Me(e,[{key:\"nextAutoLevel\",get:function(){var t=this._nextAutoLevel,e=this._bwEstimator;if(!(t===-1||e&&e.canEstimate()))return t;var r=this._nextABRAutoLevel;return t!==-1&&(r=Math.min(t,r)),r},set:function(t){this._nextAutoLevel=t}},{key:\"_nextABRAutoLevel\",get:function(){var t=this.hls,e=t.maxAutoLevel,r=t.levels,i=t.config,a=t.minAutoLevel,n=t.media,o=this.lastLoadedFragLevel,s=this.fragCurrent?this.fragCurrent.duration:0,l=n?n.currentTime:0,d=n&&0!==n.playbackRate?Math.abs(n.playbackRate):1,u=this._bwEstimator?this._bwEstimator.getEstimate():i.abrEwmaDefaultEstimate,f=(ae.bufferInfo(n,l,i.maxBufferHole).end-l)/d,h=this._findBestLevel(o,s,u,a,e,f,i.abrBandWidthFactor,i.abrBandWidthUpFactor,r);if(h>=0)return h;bt.b.trace(\"rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering\");var c=s?Math.min(s,i.maxStarvationDelay):i.maxStarvationDelay,p=i.abrBandWidthFactor,v=i.abrBandWidthUpFactor;if(0===f){var g=this.bitrateTestDelay;if(g){var m=s?Math.min(s,i.maxLoadingDelay):i.maxLoadingDelay;c=m-g,bt.b.trace(\"bitrate test took \"+Math.round(1e3*g)+\"ms, set first fragment max fetchDuration to \"+Math.round(1e3*c)+\" ms\"),p=v=1}}return h=this._findBestLevel(o,s,u,a,e,f+c,p,v,r),Math.max(h,0)}}]),e}(At),Ge=Be,je=A(),Ke=function(t){function e(r){at(this,e);var i=nt(this,t.call(this,r,yt.a.MEDIA_ATTACHING,yt.a.MEDIA_DETACHING,yt.a.MANIFEST_PARSED,yt.a.BUFFER_RESET,yt.a.BUFFER_APPENDING,yt.a.BUFFER_CODECS,yt.a.BUFFER_EOS,yt.a.BUFFER_FLUSHING,yt.a.LEVEL_PTS_UPDATED,yt.a.LEVEL_UPDATED));return i._msDuration=null,i._levelDuration=null,i._live=null,i._objectUrl=null,i.onsbue=i.onSBUpdateEnd.bind(i),i.onsbe=i.onSBUpdateError.bind(i),i.pendingTracks={},i.tracks={},i}return ot(e,t),e.prototype.destroy=function(){At.prototype.destroy.call(this)},e.prototype.onLevelPtsUpdated=function(t){var e=t.type,r=this.tracks.audio;if(\"audio\"===e&&r&&\"audio/mpeg\"===r.container){var i=this.sourceBuffer.audio,a=Math.abs(i.timestampOffset-t.start);if(a>.1){var n=i.updating;try{i.abort()}catch(o){n=!0,bt.b.warn(\"can not abort audio buffer: \"+o)}n?this.audioTimestampOffset=t.start:(bt.b.warn(\"change mpeg audio timestamp offset from \"+i.timestampOffset+\" to \"+t.start),i.timestampOffset=t.start)}}},e.prototype.onManifestParsed=function(t){var e=t.audio,r=t.video||t.levels.length&&t.altAudio,i=0;t.altAudio&&(e||r)&&(i=(e?1:0)+(r?1:0),bt.b.log(i+\" sourceBuffer(s) expected\")),this.sourceBufferNb=i},e.prototype.onMediaAttaching=function(t){var e=this.media=t.media;if(e){var r=this.mediaSource=new je;this.onmso=this.onMediaSourceOpen.bind(this),this.onmse=this.onMediaSourceEnded.bind(this),this.onmsc=this.onMediaSourceClose.bind(this),r.addEventListener(\"sourceopen\",this.onmso),r.addEventListener(\"sourceended\",this.onmse),r.addEventListener(\"sourceclose\",this.onmsc),e.src=window.URL.createObjectURL(r),this._objectUrl=e.src}},e.prototype.onMediaDetaching=function(){bt.b.log(\"media source detaching\");var t=this.mediaSource;if(t){if(\"open\"===t.readyState)try{t.endOfStream()}catch(e){bt.b.warn(\"onMediaDetaching:\"+e.message+\" while calling endOfStream\")}t.removeEventListener(\"sourceopen\",this.onmso),t.removeEventListener(\"sourceended\",this.onmse),t.removeEventListener(\"sourceclose\",this.onmsc),this.media&&(window.URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute(\"src\"),this.media.load()):bt.b.warn(\"media.src was changed by a third party - skip cleanup\")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.onmso=this.onmse=this.onmsc=null,this.hls.trigger(yt.a.MEDIA_DETACHED)},e.prototype.onMediaSourceOpen=function(){bt.b.log(\"media source opened\"),this.hls.trigger(yt.a.MEDIA_ATTACHED,{media:this.media});var t=this.mediaSource;t&&t.removeEventListener(\"sourceopen\",this.onmso),this.checkPendingTracks()},e.prototype.checkPendingTracks=function(){var t=this.pendingTracks,e=Object.keys(t).length;e&&(this.sourceBufferNb<=e||0===this.sourceBufferNb)&&(this.createSourceBuffers(t),this.pendingTracks={},this.doAppending())},e.prototype.onMediaSourceClose=function(){bt.b.log(\"media source closed\")},e.prototype.onMediaSourceEnded=function(){bt.b.log(\"media source ended\")},e.prototype.onSBUpdateEnd=function(){if(this.audioTimestampOffset){var t=this.sourceBuffer.audio;bt.b.warn(\"change mpeg audio timestamp offset from \"+t.timestampOffset+\" to \"+this.audioTimestampOffset),t.timestampOffset=this.audioTimestampOffset,delete this.audioTimestampOffset}this._needsFlush&&this.doFlush(),this._needsEos&&this.checkEos(),this.appending=!1;var e=this.parent,r=this.segments.reduce(function(t,r){return r.parent===e?t+1:t},0),i={},a=this.sourceBuffer;for(var n in a)i[n]=a[n].buffered;this.hls.trigger(yt.a.BUFFER_APPENDED,{parent:e,pending:r,timeRanges:i}),this._needsFlush||this.doAppending(),this.updateMediaElementDuration()},e.prototype.onSBUpdateError=function(t){bt.b.error(\"sourceBuffer error:\",t),this.hls.trigger(yt.a.ERROR,{type:mt.b.MEDIA_ERROR,details:mt.a.BUFFER_APPENDING_ERROR,fatal:!1})},e.prototype.onBufferReset=function(){var t=this.sourceBuffer;for(var e in t){var r=t[e];try{this.mediaSource.removeSourceBuffer(r),r.removeEventListener(\"updateend\",this.onsbue),r.removeEventListener(\"error\",this.onsbe)}catch(i){}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},e.prototype.onBufferCodecs=function(t){if(0===Object.keys(this.sourceBuffer).length){for(var e in t)this.pendingTracks[e]=t[e];var r=this.mediaSource;r&&\"open\"===r.readyState&&this.checkPendingTracks()}},e.prototype.createSourceBuffers=function(t){var e=this.sourceBuffer,r=this.mediaSource;for(var i in t)if(!e[i]){var a=t[i],n=a.levelCodec||a.codec,o=a.container+\";codecs=\"+n;bt.b.log(\"creating sourceBuffer(\"+o+\")\");try{var s=e[i]=r.addSourceBuffer(o);s.addEventListener(\"updateend\",this.onsbue),s.addEventListener(\"error\",this.onsbe),this.tracks[i]={codec:n,container:a.container},a.buffer=s}catch(l){bt.b.error(\"error while trying to add sourceBuffer:\"+l.message),this.hls.trigger(yt.a.ERROR,{type:mt.b.MEDIA_ERROR,details:mt.a.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:l,mimeType:o})}}this.hls.trigger(yt.a.BUFFER_CREATED,{tracks:t})},e.prototype.onBufferAppending=function(t){this._needsFlush||(this.segments?this.segments.push(t):this.segments=[t],this.doAppending())},e.prototype.onBufferAppendFail=function(t){bt.b.error(\"sourceBuffer error:\",t.event),this.hls.trigger(yt.a.ERROR,{type:mt.b.MEDIA_ERROR,details:mt.a.BUFFER_APPENDING_ERROR,fatal:!1})},e.prototype.onBufferEos=function(t){var e=this.sourceBuffer,r=t.type;for(var i in e)r&&i!==r||e[i].ended||(e[i].ended=!0,bt.b.log(i+\" sourceBuffer now EOS\"));this.checkEos()},e.prototype.checkEos=function(){var t=this.sourceBuffer,e=this.mediaSource;if(!e||\"open\"!==e.readyState)return void(this._needsEos=!1);for(var r in t){var i=t[r];if(!i.ended)return;if(i.updating)return void(this._needsEos=!0)}bt.b.log(\"all media data available, signal endOfStream() to MediaSource and stop loading fragment\");try{e.endOfStream()}catch(a){bt.b.warn(\"exception while calling mediaSource.endOfStream()\")}this._needsEos=!1},e.prototype.onBufferFlushing=function(t){this.flushRange.push({start:t.startOffset,end:t.endOffset,type:t.type}),this.flushBufferCounter=0,this.doFlush()},e.prototype.onLevelUpdated=function(t){var e=t.details;e.fragments.length>0&&(this._levelDuration=e.totalduration+e.fragments[0].start,this._live=e.live,this.updateMediaElementDuration())},e.prototype.updateMediaElementDuration=function(){var t=this.hls.config,e=void 0;if(null!==this._levelDuration&&this.media&&this.mediaSource&&this.sourceBuffer&&0!==this.media.readyState&&\"open\"===this.mediaSource.readyState){for(var r in this.sourceBuffer)if(this.sourceBuffer[r].updating===!0)return;e=this.media.duration,null===this._msDuration&&(this._msDuration=this.mediaSource.duration),this._live===!0&&t.liveDurationInfinity===!0?(bt.b.log(\"Media Source duration is set to Infinity\"),this._msDuration=this.mediaSource.duration=1/0):(this._levelDuration>this._msDuration&&this._levelDuration>e||e===1/0||isNaN(e))&&(bt.b.log(\"Updating Media Source duration to \"+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}},e.prototype.doFlush=function(){for(;this.flushRange.length;){var t=this.flushRange[0];if(!this.flushBuffer(t.start,t.end,t.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var e=0,r=this.sourceBuffer;try{for(var i in r)e+=r[i].buffered.length}catch(a){bt.b.error(\"error while accessing sourceBuffer.buffered\")}this.appended=e,this.hls.trigger(yt.a.BUFFER_FLUSHED)}},e.prototype.doAppending=function(){var t=this.hls,e=this.sourceBuffer,r=this.segments;if(Object.keys(e).length){if(this.media.error)return this.segments=[],void bt.b.error(\"trying to append although a media error occured, flush segment and abort\");if(this.appending)return;if(r&&r.length){var i=r.shift();try{var a=i.type,n=e[a];n?n.updating?r.unshift(i):(n.ended=!1,this.parent=i.parent,n.appendBuffer(i.data),this.appendError=0,this.appended++,this.appending=!0):this.onSBUpdateEnd()}catch(o){bt.b.error(\"error while trying to append buffer:\"+o.message),r.unshift(i);var s={type:mt.b.MEDIA_ERROR,parent:i.parent};22!==o.code?(this.appendError?this.appendError++:this.appendError=1,s.details=mt.a.BUFFER_APPEND_ERROR,this.appendError>t.config.appendErrorMaxRetry?(bt.b.log(\"fail \"+t.config.appendErrorMaxRetry+\" times to append segment in sourceBuffer\"),r=[],s.fatal=!0,t.trigger(yt.a.ERROR,s)):(s.fatal=!1,t.trigger(yt.a.ERROR,s))):(this.segments=[],s.details=mt.a.BUFFER_FULL_ERROR,s.fatal=!1,t.trigger(yt.a.ERROR,s))}}}},e.prototype.flushBuffer=function(t,e,r){var i=void 0,a=void 0,n=void 0,o=void 0,s=void 0,l=void 0,d=this.sourceBuffer;if(Object.keys(d).length){if(bt.b.log(\"flushBuffer,pos/start/end: \"+this.media.currentTime.toFixed(3)+\"/\"+t+\"/\"+e),this.flushBufferCounter<this.appended){for(var u in d)if(!r||u===r){if(i=d[u],i.ended=!1,i.updating)return bt.b.warn(\"cannot flush, sb updating in progress\"),!1;try{for(a=0;a<i.buffered.length;a++)if(n=i.buffered.start(a),o=i.buffered.end(a),navigator.userAgent.toLowerCase().indexOf(\"firefox\")!==-1&&e===Number.POSITIVE_INFINITY?(s=t,l=e):(s=Math.max(n,t),l=Math.min(o,e)),Math.min(l,o)-s>.5)return this.flushBufferCounter++,bt.b.log(\"flush \"+u+\" [\"+s+\",\"+l+\"], of [\"+n+\",\"+o+\"], pos:\"+this.media.currentTime),i.remove(s,l),!1}catch(f){bt.b.warn(\"exception while accessing sourcebuffer, it might have been removed from MediaSource\")}}}else bt.b.warn(\"abort flushing too many retries\");bt.b.log(\"buffer flushed\")}return!0},e}(At),He=Ke,Ve=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),We=function(t){function e(r){st(this,e);var i=lt(this,t.call(this,r,yt.a.FPS_DROP_LEVEL_CAPPING,yt.a.MEDIA_ATTACHING,yt.a.MANIFEST_PARSED,yt.a.BUFFER_CODECS));return i.autoLevelCapping=Number.POSITIVE_INFINITY,i.firstLevel=null,i.levels=[],i.media=null,i.restrictedLevels=[],i.timer=null,i}return dt(e,t),e.prototype.destroy=function(){this.hls.config.capLevelToPlayerSize&&(this.media=null,this._stopCapping())},e.prototype.onFpsDropLevelCapping=function(t){e.isLevelAllowed(t.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(t.droppedLevel)},e.prototype.onMediaAttaching=function(t){this.media=t.media instanceof window.HTMLVideoElement?t.media:null},e.prototype.onManifestParsed=function(t){var e=this.hls;this.restrictedLevels=[],this.levels=t.levels,this.firstLevel=t.firstLevel,e.config.capLevelToPlayerSize&&(t.video||t.levels.length&&t.altAudio)&&this._startCapping()},e.prototype.onBufferCodecs=function(t){var e=this.hls;e.config.capLevelToPlayerSize&&t.video&&this._startCapping()},e.prototype.onLevelsUpdated=function(t){this.levels=t.levels},e.prototype.detectPlayerSize=function(){if(this.media){var t=this.levels?this.levels.length:0;if(t){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(t-1),e.autoLevelCapping>this.autoLevelCapping&&e.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},e.prototype.getMaxLevel=function(t){var r=this;if(!this.levels)return-1;var i=this.levels.filter(function(i,a){return e.isLevelAllowed(a,r.restrictedLevels)&&a<=t});return e.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},e.prototype._startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},e.prototype._stopCapping=function(){this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)},e.isLevelAllowed=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e.indexOf(t)===-1},e.getMaxLevelByMediaSize=function(t,e,r){if(!t||t&&!t.length)return-1;for(var i=function(t,e){return!e||(t.width!==e.width||t.height!==e.height)},a=t.length-1,n=0;n<t.length;n+=1){var o=t[n];if((o.width>=e||o.height>=r)&&i(o,t[n+1])){a=n;break}}return a},Ve(e,[{key:\"mediaWidth\",get:function(){var t=void 0,r=this.media;return r&&(t=r.width||r.clientWidth||r.offsetWidth,t*=e.contentScaleFactor),t}},{\nkey:\"mediaHeight\",get:function(){var t=void 0,r=this.media;return r&&(t=r.height||r.clientHeight||r.offsetHeight,t*=e.contentScaleFactor),t}}],[{key:\"contentScaleFactor\",get:function(){var t=1;try{t=window.devicePixelRatio}catch(e){}return t}}]),e}(At),Ye=We,ze=window,Xe=ze.performance,qe=function(t){function e(r){return ut(this,e),ft(this,t.call(this,r,yt.a.MEDIA_ATTACHING))}return ht(e,t),e.prototype.destroy=function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1},e.prototype.onMediaAttaching=function(t){var e=this.hls.config;if(e.capLevelOnFPSDrop){var r=this.video=t.media instanceof window.HTMLVideoElement?t.media:null;\"function\"==typeof r.getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod)}},e.prototype.checkFPS=function(t,e,r){var i=Xe.now();if(e){if(this.lastTime){var a=i-this.lastTime,n=r-this.lastDroppedFrames,o=e-this.lastDecodedFrames,s=1e3*n/a,l=this.hls;if(l.trigger(yt.a.FPS_DROP,{currentDropped:n,currentDecoded:o,totalDroppedFrames:r}),s>0&&n>l.config.fpsDroppedMonitoringThreshold*o){var d=l.currentLevel;bt.b.warn(\"drop FPS ratio greater than max allowed value for currentLevel: \"+d),d>0&&(l.autoLevelCapping===-1||l.autoLevelCapping>=d)&&(d-=1,l.trigger(yt.a.FPS_DROP_LEVEL_CAPPING,{level:d,droppedLevel:l.currentLevel}),l.autoLevelCapping=d,l.streamController.nextLevelSwitch())}}this.lastTime=i,this.lastDroppedFrames=r,this.lastDecodedFrames=e}},e.prototype.checkFPSInterval=function(){var t=this.video;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},e}(At),Qe=qe,Ze=window,Je=Ze.performance,$e=Ze.XMLHttpRequest,tr=function(){function t(e){ct(this,t),e&&e.xhrSetup&&(this.xhrSetup=e.xhrSetup)}return t.prototype.destroy=function(){this.abort(),this.loader=null},t.prototype.abort=function(){var t=this.loader;t&&4!==t.readyState&&(this.stats.aborted=!0,t.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null},t.prototype.load=function(t,e,r){this.context=t,this.config=e,this.callbacks=r,this.stats={trequest:Je.now(),retry:0},this.retryDelay=e.retryDelay,this.loadInternal()},t.prototype.loadInternal=function(){var t=void 0,e=this.context;t=this.loader=new $e;var r=this.stats;r.tfirst=0,r.loaded=0;var i=this.xhrSetup;try{if(i)try{i(t,e.url)}catch(a){t.open(\"GET\",e.url,!0),i(t,e.url)}t.readyState||t.open(\"GET\",e.url,!0)}catch(a){return void this.callbacks.onError({code:t.status,text:a.message},e,t)}e.rangeEnd&&t.setRequestHeader(\"Range\",\"bytes=\"+e.rangeStart+\"-\"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),t.send()},t.prototype.readystatechange=function(t){var e=t.currentTarget,r=e.readyState,i=this.stats,a=this.context,n=this.config;if(!i.aborted&&r>=2)if(window.clearTimeout(this.requestTimeout),0===i.tfirst&&(i.tfirst=Math.max(Je.now(),i.trequest)),4===r){var o=e.status;if(o>=200&&o<300){i.tload=Math.max(i.tfirst,Je.now());var s=void 0,l=void 0;\"arraybuffer\"===a.responseType?(s=e.response,l=s.byteLength):(s=e.responseText,l=s.length),i.loaded=i.total=l;var d={url:e.responseURL,data:s};this.callbacks.onSuccess(d,i,a,e)}else i.retry>=n.maxRetry||o>=400&&o<499?(bt.b.error(o+\" while loading \"+a.url),this.callbacks.onError({code:o,text:e.statusText},a,e)):(bt.b.warn(o+\" while loading \"+a.url+\", retrying in \"+this.retryDelay+\"...\"),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,n.maxRetryDelay),i.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),n.timeout)},t.prototype.loadtimeout=function(){bt.b.warn(\"timeout while loading \"+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},t.prototype.loadprogress=function(t){var e=t.currentTarget,r=this.stats;r.loaded=t.loaded,t.lengthComputable&&(r.total=t.total);var i=this.callbacks.onProgress;i&&i(r,this.context,null,e)},t}(),er=tr,rr=r(3),ir=(r.n(rr),function(){return\"undefined\"!=typeof window&&window.navigator&&window.navigator.requestMediaKeySystemAccess?window.navigator.requestMediaKeySystemAccess.bind(window.navigator):null}()),ar={autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,lowBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,liveDurationInfinity:!1,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:er,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,abrController:Ge,bufferController:He,capLevelController:Ye,fpsController:Qe,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,requestMediaKeySystemAccessFunc:ir},nr=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,\"value\"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}();r(13);var or=function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};pt(this,t);var i=t.DefaultConfig;if((r.liveSyncDurationCount||r.liveMaxLatencyDurationCount)&&(r.liveSyncDuration||r.liveMaxLatencyDuration))throw new Error(\"Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration\");for(var a in i)a in r||(r[a]=i[a]);if(void 0!==r.liveMaxLatencyDurationCount&&r.liveMaxLatencyDurationCount<=r.liveSyncDurationCount)throw new Error('Illegal hls.js config: \"liveMaxLatencyDurationCount\" must be gt \"liveSyncDurationCount\"');if(void 0!==r.liveMaxLatencyDuration&&(r.liveMaxLatencyDuration<=r.liveSyncDuration||void 0===r.liveSyncDuration))throw new Error('Illegal hls.js config: \"liveMaxLatencyDuration\" must be gt \"liveSyncDuration\"');Object(bt.a)(r.debug),this.config=r,this._autoLevelCapping=-1;var n=this.observer=new oe.a;n.trigger=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];n.emit.apply(n,[t,t].concat(r))},n.off=function(t){for(var e=arguments.length,r=Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];n.removeListener.apply(n,[t].concat(r))},this.on=n.on.bind(n),this.off=n.off.bind(n),this.once=n.once.bind(n),this.trigger=n.trigger.bind(n);var o=this.abrController=new r.abrController(this),s=new r.bufferController(this),l=new r.capLevelController(this),d=new r.fpsController(this),u=new qt(this),f=new Zt(this),h=new $t(this),c=new ke(this),p=this.levelController=new De(this),v=new ee(this),g=this.streamController=new Se(this,v),m=[p,g],y=r.audioStreamController;y&&m.push(new y(this,v)),this.networkControllers=m;var b=[u,f,h,o,s,l,d,c,v];if(y=r.audioTrackController){var E=new y(this);this.audioTrackController=E,b.push(E)}if(y=r.subtitleTrackController){var T=new y(this);this.subtitleTrackController=T,b.push(T)}if(y=r.emeController){var S=new y(this);this.emeController=S,b.push(S)}[r.subtitleStreamController,r.timelineController].forEach(function(t){t&&b.push(new t(e))}),this.coreComponents=b}return t.isSupported=function(){return J()},nr(t,null,[{key:\"version\",get:function(){return\"0.10.0\"}},{key:\"Events\",get:function(){return yt.a}},{key:\"ErrorTypes\",get:function(){return mt.b}},{key:\"ErrorDetails\",get:function(){return mt.a}},{key:\"DefaultConfig\",get:function(){return t.defaultConfig?t.defaultConfig:ar},set:function(e){t.defaultConfig=e}}]),t.prototype.destroy=function(){bt.b.log(\"destroy\"),this.trigger(yt.a.DESTROYING),this.detachMedia(),this.coreComponents.concat(this.networkControllers).forEach(function(t){t.destroy()}),this.url=null,this.observer.removeAllListeners(),this._autoLevelCapping=-1},t.prototype.attachMedia=function(t){bt.b.log(\"attachMedia\"),this.media=t,this.trigger(yt.a.MEDIA_ATTACHING,{media:t})},t.prototype.detachMedia=function(){bt.b.log(\"detachMedia\"),this.trigger(yt.a.MEDIA_DETACHING),this.media=null},t.prototype.loadSource=function(t){t=gt.a.buildAbsoluteURL(window.location.href,t,{alwaysNormalize:!0}),bt.b.log(\"loadSource:\"+t),this.url=t,this.trigger(yt.a.MANIFEST_LOADING,{url:t})},t.prototype.startLoad=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;bt.b.log(\"startLoad(\"+t+\")\"),this.networkControllers.forEach(function(e){e.startLoad(t)})},t.prototype.stopLoad=function(){bt.b.log(\"stopLoad\"),this.networkControllers.forEach(function(t){t.stopLoad()})},t.prototype.swapAudioCodec=function(){bt.b.log(\"swapAudioCodec\"),this.streamController.swapAudioCodec()},t.prototype.recoverMediaError=function(){bt.b.log(\"recoverMediaError\");var t=this.media;this.detachMedia(),this.attachMedia(t)},nr(t,[{key:\"levels\",get:function(){return this.levelController.levels}},{key:\"currentLevel\",get:function(){return this.streamController.currentLevel},set:function(t){bt.b.log(\"set currentLevel:\"+t),this.loadLevel=t,this.streamController.immediateLevelSwitch()}},{key:\"nextLevel\",get:function(){return this.streamController.nextLevel},set:function(t){bt.b.log(\"set nextLevel:\"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:\"loadLevel\",get:function(){return this.levelController.level},set:function(t){bt.b.log(\"set loadLevel:\"+t),this.levelController.manualLevel=t}},{key:\"nextLoadLevel\",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:\"firstLevel\",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){bt.b.log(\"set firstLevel:\"+t),this.levelController.firstLevel=t}},{key:\"startLevel\",get:function(){return this.levelController.startLevel},set:function(t){bt.b.log(\"set startLevel:\"+t);var e=this;t!==-1&&(t=Math.max(t,e.minAutoLevel)),e.levelController.startLevel=t}},{key:\"autoLevelCapping\",get:function(){return this._autoLevelCapping},set:function(t){bt.b.log(\"set autoLevelCapping:\"+t),this._autoLevelCapping=t}},{key:\"autoLevelEnabled\",get:function(){return this.levelController.manualLevel===-1}},{key:\"manualLevel\",get:function(){return this.levelController.manualLevel}},{key:\"minAutoLevel\",get:function(){for(var t=this,e=t.levels,r=t.config.minAutoBitrate,i=e?e.length:0,a=0;a<i;a++){var n=e[a].realBitrate?Math.max(e[a].realBitrate,e[a].bitrate):e[a].bitrate;if(n>r)return a}return 0}},{key:\"maxAutoLevel\",get:function(){var t=this,e=t.levels,r=t.autoLevelCapping,i=void 0;return i=r===-1&&e&&e.length?e.length-1:r}},{key:\"nextAutoLevel\",get:function(){var t=this;return Math.min(Math.max(t.abrController.nextAutoLevel,t.minAutoLevel),t.maxAutoLevel)},set:function(t){var e=this;e.abrController.nextAutoLevel=Math.max(e.minAutoLevel,t)}},{key:\"audioTracks\",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:\"audioTrack\",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:\"liveSyncPosition\",get:function(){return this.streamController.liveSyncPosition}},{key:\"subtitleTracks\",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:\"subtitleTrack\",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:\"subtitleDisplay\",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}}]),t}();e[\"default\"]=or},function(t,e,r){function i(t){function e(i){if(r[i])return r[i].exports;var a=r[i]={i:i,l:!1,exports:{}};return t[i].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var r={};e.m=t,e.c=r,e.i=function(t){return t},e.d=function(t,r,i){e.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var r=t&&t.__esModule?function(){return t[\"default\"]}:function(){return t};return e.d(r,\"a\",r),r},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p=\"/\",e.oe=function(t){throw console.error(t),t};var i=e(e.s=ENTRY_MODULE);return i[\"default\"]||i}function a(t){return(t+\"\").replace(/[.?*+^$[\\]\\\\(){}|-]/g,\"\\\\$&\")}function n(t,e,i){var n={};n[i]=[];var o=e.toString(),s=o.match(/^function\\s?\\(\\w+,\\s*\\w+,\\s*(\\w+)\\)/);if(!s)return n;for(var u,f=s[1],h=new RegExp(\"(\\\\\\\\n|\\\\W)\"+a(f)+d,\"g\");u=h.exec(o);)\"dll-reference\"!==u[3]&&n[i].push(u[3]);for(h=new RegExp(\"\\\\(\"+a(f)+'\\\\(\"(dll-reference\\\\s('+l+'))\"\\\\)\\\\)'+d,\"g\");u=h.exec(o);)t[u[2]]||(n[i].push(u[1]),t[u[2]]=r(u[1]).m),n[u[2]]=n[u[2]]||[],n[u[2]].push(u[4]);return n}function o(t){var e=Object.keys(t);return e.reduce(function(e,r){return e||t[r].length>0},!1)}function s(t,e){for(var r={main:[e]},i={main:[]},a={main:{}};o(r);)for(var s=Object.keys(r),l=0;l<s.length;l++){var d=s[l],u=r[d],f=u.pop();if(a[d]=a[d]||{},!a[d][f]&&t[d][f]){a[d][f]=!0,i[d]=i[d]||[],i[d].push(f);for(var h=n(t,t[d][f],d),c=Object.keys(h),p=0;p<c.length;p++)r[c[p]]=r[c[p]]||[],r[c[p]]=r[c[p]].concat(h[c[p]])}}return i}var l=\"[\\\\.|\\\\-|\\\\+|\\\\w|/|@]+\",d=\"\\\\((/\\\\*.*?\\\\*/)?s?.*?(\"+l+\").*?\\\\)\";t.exports=function(t,e){e=e||{};var a={main:r.m},n=e.all?{main:Object.keys(a)}:s(a,t),o=\"\";Object.keys(n).filter(function(t){return\"main\"!==t}).forEach(function(t){for(var e=0;n[t][e];)e++;n[t].push(e),a[t][e]=\"(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })\",o=o+\"var \"+t+\" = (\"+i.toString().replace(\"ENTRY_MODULE\",JSON.stringify(e))+\")({\"+n[t].map(function(e){return\"\"+JSON.stringify(e)+\": \"+a[t][e].toString()}).join(\",\")+\"});\\n\"}),o=o+\"(\"+i.toString().replace(\"ENTRY_MODULE\",JSON.stringify(t))+\")({\"+n.main.map(function(t){return\"\"+JSON.stringify(t)+\": \"+a.main[t].toString()}).join(\",\")+\"})(self);\";var l=new window.Blob([o],{type:\"text/javascript\"});if(e.bare)return l;var d=window.URL||window.webkitURL||window.mozURL||window.msURL,u=d.createObjectURL(l),f=new window.Worker(u);return f.objectURL=u,f}},function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var i=r(9),a=r(1),n=r(0),o=r(6),s=r.n(o),l=function(t){var e=new s.a;e.trigger=function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e.emit.apply(e,[t,t].concat(i))},e.off=function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];e.removeListener.apply(e,[t].concat(i))};var r=function(e,r){t.postMessage({event:e,data:r})};t.addEventListener(\"message\",function(a){var o=a.data;switch(o.cmd){case\"init\":var s=JSON.parse(o.config);t.demuxer=new i.a(e,o.typeSupported,s,o.vendor);try{Object(n.a)(s.debug===!0)}catch(l){console.warn(\"demuxerWorker: unable to enable logs\")}r(\"init\",null);break;case\"demux\":t.demuxer.push(o.data,o.decryptdata,o.initSegment,o.audioCodec,o.videoCodec,o.timeOffset,o.discontinuity,o.trackSwitch,o.contiguous,o.duration,o.accurateTimeOffset,o.defaultInitPTS)}}),e.on(a.a.FRAG_DECRYPTED,r),e.on(a.a.FRAG_PARSING_INIT_SEGMENT,r),e.on(a.a.FRAG_PARSED,r),e.on(a.a.ERROR,r),e.on(a.a.FRAG_PARSING_METADATA,r),e.on(a.a.FRAG_PARSING_USERDATA,r),e.on(a.a.INIT_PTS_FOUND,r),e.on(a.a.FRAG_PARSING_DATA,function(e,r){var i=[],a={event:e,data:r};r.data1&&(a.data1=r.data1.buffer,i.push(r.data1.buffer),delete r.data1),r.data2&&(a.data2=r.data2.buffer,i.push(r.data2.buffer),delete r.data2),t.postMessage(a,i)})};e[\"default\"]=l},function(t,e){String.prototype.endsWith||!function(){\"use strict\";var t=function(){try{var t={},e=Object.defineProperty,r=e(t,t,t)&&e}catch(i){}return r}(),e={}.toString,r=function(t){if(null==this)throw TypeError();var r=String(this);if(t&&\"[object RegExp]\"==e.call(t))throw TypeError();var i=r.length,a=String(t),n=a.length,o=i;if(arguments.length>1){var s=arguments[1];void 0!==s&&(o=s?Number(s):0,o!=o&&(o=0))}var l=Math.min(Math.max(o,0),i),d=l-n;if(d<0)return!1;for(var u=-1;++u<n;)if(r.charCodeAt(d+u)!=a.charCodeAt(u))return!1;return!0};t?t(String.prototype,\"endsWith\",{value:r,configurable:!0,writable:!0}):String.prototype.endsWith=r}()}])[\"default\"]});","skip":false,"stamp":1544208681920,"expire":1562208681920,"updatedAt":1544208681939}


originKey: rb.moc.seohsten.www.:https:443
scope: rb.moc.seohsten.www.:https:443
key: chaordic_style_cache_netshoes-br/style.css
value:
  {"data":"@font-face{font-family:\"Trebuchet MS\";src:url(\"../assets/netshoes-br/../../src/fonts/trebuchet-ms.ttf\") format(\"truetype\");font-weight:normal;font-style:normal}@font-face{font-family:\"netshoes_demibold\";src:url(\"../assets/netshoes-br/../../src/fonts/netshoes-demibold.eot\");src:url(\"../assets/netshoes-br/../../src/fonts/netshoes-demibold.eot?#iefix\") format(\"embedded-opentype\"),url(\"../assets/netshoes-br/../../src/fonts/netshoes-demibold.woff\") format(\"woff\"),url(\"../assets/netshoes-br/../../src/fonts/netshoes-demibold.ttf\") format(\"truetype\"),url(\"../assets/netshoes-br/../../src/fonts/netshoes-demibold.svg#netshoesdemibold\") format(\"svg\");font-weight:normal;font-style:normal}@font-face{font-family:\"netshoes_displaybold\";src:url(\"../assets/netshoes-br/../../src/fonts/netshoesdisplay-bold.eot\");src:url(\"../assets/netshoes-br/../../src/fonts/netshoesdisplay-bold.eot?#iefix\") format(\"embedded-opentype\"),url(\"../assets/netshoes-br/../../src/fonts/netshoesdisplay-bold.woff\") format(\"woff\"),url(\"../assets/netshoes-br/../../src/fonts/netshoesdisplay-bold.ttf\") format(\"truetype\"),url(\"../assets/netshoes-br/../../src/fonts/netshoesdisplay-bold.svg#netshoesdemibold\") format(\"svg\");font-weight:normal;font-style:normal}@font-face{font-family:\"netshoes_black\";src:url(\"../assets/netshoes-br/../../src/fonts/netshoes-black.woff2\") format(\"woff2\"),url(\"../assets/netshoes-br/../../src/fonts/netshoes-black.woff\") format(\"woff\");font-weight:normal;font-style:normal}@font-face{font-family:\"icons\";src:url(\"../assets/netshoes-br/../../src/fonts/icons.eot\");src:url(\"../assets/netshoes-br/../../src/fonts/icons.eot?#iefix\") format(\"embedded-opentype\"),url(\"../assets/netshoes-br/../../src/fonts/icons.woff\") format(\"woff\"),url(\"../assets/netshoes-br/../../src/fonts/icons.ttf\") format(\"truetype\"),url(\"../assets/netshoes-br/../../src/fonts/icons.svg#icons\") format(\"svg\");font-weight:normal;font-style:normal}@font-face{font-family:\"opensansbold\";src:url(\"../assets/netshoes-br/../../src/fonts/opensansbold.eot\");src:url(\"../assets/netshoes-br/../../src/fonts/opensansbold.eot?#iefix\") format(\"embedded-opentype\"),url(\"../assets/netshoes-br/../../src/fonts/opensansbold.woff\") format(\"woff\"),url(\"../assets/netshoes-br/../../src/fonts/opensansbold.ttf\") format(\"truetype\"),url(\"../assets/netshoes-br/../../src/fonts/opensansbold.svg#opensansbold\") format(\"svg\");font-weight:normal;font-style:normal}@font-face{font-family:\"ns-icons\";src:url(\"../assets/netshoes-br/../../src/fonts/ns-icons.eot\");src:url(\"../assets/netshoes-br/../../src/fonts/ns-icons.eot?#iefix\") format(\"embedded-opentype\"),url(\"../assets/netshoes-br/../../src/fonts/ns-icons.woff\") format(\"woff\"),url(\"../assets/netshoes-br/../../src/fonts/ns-icons.ttf\") format(\"truetype\");font-weight:normal;font-style:normal}@font-face{font-family:\"Source Sans Pro\";src:url(\"../assets/netshoes-br/../../src/fonts/SourceSansPro-Regular.ttf\") format(\"truetype\");font-weight:normal;font-style:normal}@font-face{font-family:\"Source Sans Pro\";src:url(\"../assets/netshoes-br/../../src/fonts/SourceSansPro-SemiBold.ttf\") format(\"truetype\");font-weight:600;font-style:normal}@font-face{font-family:\"Source Sans Pro\";src:url(\"../assets/netshoes-br/../../src/fonts/SourceSansPro-Bold.ttf\") format(\"truetype\");font-weight:700;font-style:normal}#widget.netshoes-br{margin:20px 0}#widget.netshoes-br .title{font-family:\"Trebuchet MS\",Arial,sans-serif;border:none;padding:0;margin:0 0 35px 0}#widget.netshoes-br .item{max-width:300px}#widget.netshoes-br .item:hover{box-shadow:none}#widget.netshoes-br .item .product-name{display:block;font-family:\"Trebuchet MS\",Arial,sans-serif;color:#4d4d4d;text-transform:capitalize;font-size:14px;margin:5px 0;text-align:left;height:auto;min-height:33px;position:relative}#widget.netshoes-br .item .flags{position:relative;display:block;overflow:hidden}@media screen and (max-width: 600px){#widget.netshoes-br .item .flags{position:relative}}#widget.netshoes-br .item .flags .stamp{font-family:\"Trebuchet MS\",Arial,sans-serif;font-size:12px;font-style:normal;text-transform:uppercase;padding:2px;width:calc(50% - 4px)}#widget.netshoes-br .item .flags .stamp:first-child{margin-right:3px;width:calc(50% - 11px)}#widget.netshoes-br .item .flags .stamp.new{background-color:#f0009b}#widget.netshoes-br .item .flags .stamp.free-shipping{background-color:#5fd6ff}#widget.netshoes-br .item .price-api-content{text-align:left}#widget.netshoes-br .item .pr{min-height:1.125em}#widget.netshoes-br .item .pr del{float:left;display:inline;color:#8c8c8c;line-height:1.125em;text-decoration:line-through;font-size:14px;margin:1px 5px 0 0}#widget.netshoes-br .item .pr span{color:#13abe1;font-weight:700;font-size:14px}#widget.netshoes-br .item .in.card-link{font-size:14px;color:#13abe1;text-align:left;height:auto;min-height:21px;padding:5px 0 0}#widget.netshoes-br .item .freeDelivery-container{margin:15px 0 10px}#widget.netshoes-br .item .freeDelivery-icon span{font-size:13px;color:#207441;font-weight:600;text-transform:uppercase}#widget.netshoes-br .item .freeDelivery-icon .ns-icon-footer-freight:before{content:\"\";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;vertical-align:middle;font-family:\"ns-icons\";font-style:normal;font-variant:normal;font-weight:400;speak:none;text-decoration:none;text-transform:none;line-height:1;text-rendering:optimizeLegibility;font-size:13px;color:#207441;margin-right:5px}#widget.netshoes-br .item .ncard-hint-box{display:none}#widget.netshoes-br .item .badges{width:100%;height:22px;padding-top:2px}#widget.netshoes-br .item .badge-item{font-family:\"Trebuchet MS\",Arial,sans-serif;font-size:12px;text-transform:uppercase;padding:2px;width:calc(50% - 4px);height:18px;line-height:18px;float:left;text-align:center}#widget.netshoes-br .item .badge-item:first-child{margin-right:3px;width:calc(50% - 11px)}#widget.netshoes-br .item .discount{left:5px}#widget.netshoes-br .item .discount .text{right:unset;background-color:#ff691e;line-height:30px;font-size:12px;text-align:center}#widget.netshoes-br .item .discount .text:before{border-top-color:#ff691e}#widget.netshoes-br .item .discount .text.bigger{background-color:#cc0000}#widget.netshoes-br .item .discount .text.bigger:before{border-top-color:#cc0000}#widget.netshoes-br .item .buttons{cursor:pointer;background:transparent;border:solid 1px #ff691e;color:#ff691e;display:block;height:35px;font-size:14px;line-height:24px;font-weight:bold;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:color 0.25s,background-color 0.25s;-moz-transition:color 0.25s,background-color 0.25s;transition:color 0.25s,background-color 0.25s;text-transform:uppercase}#widget.netshoes-br .item .buttons:hover{background:#ff691e;color:#ffffff}#widget.netshoes-br .item .buttons.buy:before{content:\"k\";text-transform:lowercase;color:#ff691e;font-size:16px;margin-right:7px;font-family:\"icons\",Arial,sans-serif;-webkit-transition:color 0.25s,background-color 0.25s;-moz-transition:color 0.25s,background-color 0.25s;transition:color 0.25s,background-color 0.25s}#widget.netshoes-br .item .buttons.buy:hover:before{color:#ffffff}#widget.netshoes-br.shoppingcart .prices .price,#widget.netshoes-br.skin-b.viewpersonalized .prices .price,#widget.netshoes-br.skin-b.historypersonalized .prices .price,#widget.netshoes-br.skin-b.purchasepersonalized .prices .price,#widget.netshoes-br.frequentlyboughttogether .prices .price,#widget.netshoes-br.push.page-cart .prices .price{color:#13abe1;font-weight:700}#widget.netshoes-br.shoppingcart .prices .old-price,#widget.netshoes-br.skin-b.viewpersonalized .prices .old-price,#widget.netshoes-br.skin-b.historypersonalized .prices .old-price,#widget.netshoes-br.skin-b.purchasepersonalized .prices .old-price,#widget.netshoes-br.frequentlyboughttogether .prices .old-price,#widget.netshoes-br.push.page-cart .prices .old-price{color:#8c8c8c}#widget.netshoes-br.shoppingcart .prices a,#widget.netshoes-br.skin-b.viewpersonalized .prices a,#widget.netshoes-br.skin-b.historypersonalized .prices a,#widget.netshoes-br.skin-b.purchasepersonalized .prices a,#widget.netshoes-br.frequentlyboughttogether .prices a,#widget.netshoes-br.push.page-cart .prices a{display:inline;font-size:14px}#widget.netshoes-br.shoppingcart .installments,#widget.netshoes-br.skin-b.viewpersonalized .installments,#widget.netshoes-br.skin-b.historypersonalized .installments,#widget.netshoes-br.skin-b.purchasepersonalized .installments,#widget.netshoes-br.frequentlyboughttogether .installments,#widget.netshoes-br.push.page-cart .installments{font-size:14px;color:#13abe1;text-align:left;height:auto;min-height:21px}#widget.netshoes-br.shoppingcart .discount,#widget.netshoes-br.skin-b.viewpersonalized .discount,#widget.netshoes-br.skin-b.historypersonalized .discount,#widget.netshoes-br.skin-b.purchasepersonalized .discount,#widget.netshoes-br.frequentlyboughttogether .discount,#widget.netshoes-br.push.page-cart .discount{left:10px;background-color:#ff7600}#widget.netshoes-br.shoppingcart .discount:before,#widget.netshoes-br.skin-b.viewpersonalized .discount:before,#widget.netshoes-br.skin-b.historypersonalized .discount:before,#widget.netshoes-br.skin-b.purchasepersonalized .discount:before,#widget.netshoes-br.frequentlyboughttogether .discount:before,#widget.netshoes-br.push.page-cart .discount:before{border-top-color:#ff7600}#widget.netshoes-br.shoppingcart .discount.bigger,#widget.netshoes-br.skin-b.viewpersonalized .discount.bigger,#widget.netshoes-br.skin-b.historypersonalized .discount.bigger,#widget.netshoes-br.skin-b.purchasepersonalized .discount.bigger,#widget.netshoes-br.frequentlyboughttogether .discount.bigger,#widget.netshoes-br.push.page-cart .discount.bigger{background-color:#c00}#widget.netshoes-br.shoppingcart .discount.bigger:before,#widget.netshoes-br.skin-b.viewpersonalized .discount.bigger:before,#widget.netshoes-br.skin-b.historypersonalized .discount.bigger:before,#widget.netshoes-br.skin-b.purchasepersonalized .discount.bigger:before,#widget.netshoes-br.frequentlyboughttogether .discount.bigger:before,#widget.netshoes-br.push.page-cart .discount.bigger:before{border-top-color:#c00}#widget.netshoes-br.skin-d.frequentlyboughttogether .frame{min-height:400px}#widget.netshoes-br .arrow{width:35px;height:66px;top:85px;border:none}#widget.netshoes-br .arrow.prev{background:url(\"../assets/netshoes-br/images/prev.png\");left:0}#widget.netshoes-br .arrow.prev:hover{background:url(\"../assets/netshoes-br/images/prev-hover.png\")}#widget.netshoes-br .arrow.prev.disabled{display:none;cursor:default}#widget.netshoes-br .arrow.prev.disabled:hover{background:url(\"../assets/netshoes-br/images/prev.png\")}#widget.netshoes-br .arrow.next{background:url(\"../assets/netshoes-br/images/next.png\");right:0}#widget.netshoes-br .arrow.next:hover{background:url(\"../assets/netshoes-br/images/next-hover.png\")}#widget.netshoes-br .arrow.next.disabled{display:none;cursor:default}#widget.netshoes-br .arrow.next.disabled:hover{background:url(\"../assets/netshoes-br/images/next.png\")}#widget.netshoes-br .arrow.vertical{-webkit-transform:rotate(135deg);-moz-transform:rotate(135deg);-ms-transform:rotate(135deg);-o-transform:rotate(135deg);transform:rotate(135deg);left:40%;right:auto}#widget.netshoes-br .arrow.vertical.prev{top:0}#widget.netshoes-br .arrow.vertical.next{bottom:0;top:auto}#widget.netshoes-br .arrow:hover{border:none}#widget.netshoes-br .plus,#widget.netshoes-br .equals{color:#592485}#widget.netshoes-br #summary .summary-text{font-size:13px;color:#13abe1}#widget.netshoes-br #summary .price{font-size:22px;font-weight:700;color:#592485}#widget.netshoes-br #summary .buttons.buy-together{line-height:21px;text-transform:uppercase;font-weight:700}#widget.netshoes-br #summary .buttons.buy-together:before{content:\"O\";color:#ffffff;font-size:16px;margin-right:7px;font-family:\"icons\",Arial,sans-serif}#widget.netshoes-br.frequentlyboughttogether .item .discount{right:10px;left:initial}#widget.netshoes-br.frequentlyboughttogether.skin-a .frame,#widget.netshoes-br.frequentlyboughttogether.skin-b .frame,#widget.netshoes-br.frequentlyboughttogether.skin-c .frame,#widget.netshoes-br.frequentlyboughttogether.skin-d .frame,#widget.netshoes-br.frequentlyboughttogether.skin-e .frame{margin-top:40px}#widget.netshoes-br.frequentlyboughttogether.skin-a .title,#widget.netshoes-br.frequentlyboughttogether.skin-b .title,#widget.netshoes-br.frequentlyboughttogether.skin-c .title,#widget.netshoes-br.frequentlyboughttogether.skin-d .title,#widget.netshoes-br.frequentlyboughttogether.skin-e .title{font-weight:bold;text-transform:uppercase}#widget.netshoes-br.frequentlyboughttogether.skin-a .selectWrapper:after,#widget.netshoes-br.frequentlyboughttogether.skin-b .selectWrapper:after,#widget.netshoes-br.frequentlyboughttogether.skin-c .selectWrapper:after,#widget.netshoes-br.frequentlyboughttogether.skin-d .selectWrapper:after,#widget.netshoes-br.frequentlyboughttogether.skin-e .selectWrapper:after{right:33px}#widget.netshoes-br.frequentlyboughttogether.skin-a .prices,#widget.netshoes-br.frequentlyboughttogether.skin-b .prices,#widget.netshoes-br.frequentlyboughttogether.skin-c .prices,#widget.netshoes-br.frequentlyboughttogether.skin-d .prices,#widget.netshoes-br.frequentlyboughttogether.skin-e .prices{text-align:center;border:none}#widget.netshoes-br.frequentlyboughttogether.skin-a .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-b .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-c .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-d .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-e .prices .old-price{color:#8c8c8c;margin-right:10px;font-size:15px;font-style:normal}#widget.netshoes-br.frequentlyboughttogether.skin-a .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-b .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-c .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-d .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-e .prices .price{float:none;font-style:normal;font-size:16px;color:#13abe1}#widget.netshoes-br.frequentlyboughttogether.skin-a .installments,#widget.netshoes-br.frequentlyboughttogether.skin-b .installments,#widget.netshoes-br.frequentlyboughttogether.skin-c .installments,#widget.netshoes-br.frequentlyboughttogether.skin-d .installments,#widget.netshoes-br.frequentlyboughttogether.skin-e .installments{font-weight:bold;font-style:italic}#widget.netshoes-br.frequentlyboughttogether.skin-a .spec,#widget.netshoes-br.frequentlyboughttogether.skin-a .specs,#widget.netshoes-br.frequentlyboughttogether.skin-b .spec,#widget.netshoes-br.frequentlyboughttogether.skin-b .specs,#widget.netshoes-br.frequentlyboughttogether.skin-c .spec,#widget.netshoes-br.frequentlyboughttogether.skin-c .specs,#widget.netshoes-br.frequentlyboughttogether.skin-d .spec,#widget.netshoes-br.frequentlyboughttogether.skin-d .specs,#widget.netshoes-br.frequentlyboughttogether.skin-e .spec,#widget.netshoes-br.frequentlyboughttogether.skin-e .specs{max-width:none}@media screen and (max-width: 931px){#widget.netshoes-br.frequentlyboughttogether.skin-a .spec select,#widget.netshoes-br.frequentlyboughttogether.skin-a .specs select,#widget.netshoes-br.frequentlyboughttogether.skin-b .spec select,#widget.netshoes-br.frequentlyboughttogether.skin-b .specs select,#widget.netshoes-br.frequentlyboughttogether.skin-c .spec select,#widget.netshoes-br.frequentlyboughttogether.skin-c .specs select,#widget.netshoes-br.frequentlyboughttogether.skin-d .spec select,#widget.netshoes-br.frequentlyboughttogether.skin-d .specs select,#widget.netshoes-br.frequentlyboughttogether.skin-e .spec select,#widget.netshoes-br.frequentlyboughttogether.skin-e .specs select{white-space:initial;width:88%}}#widget.netshoes-br.frequentlyboughttogether.skin-a .equals,#widget.netshoes-br.frequentlyboughttogether.skin-a .plus,#widget.netshoes-br.frequentlyboughttogether.skin-b .equals,#widget.netshoes-br.frequentlyboughttogether.skin-b .plus,#widget.netshoes-br.frequentlyboughttogether.skin-c .equals,#widget.netshoes-br.frequentlyboughttogether.skin-c .plus,#widget.netshoes-br.frequentlyboughttogether.skin-d .equals,#widget.netshoes-br.frequentlyboughttogether.skin-d .plus,#widget.netshoes-br.frequentlyboughttogether.skin-e .equals,#widget.netshoes-br.frequentlyboughttogether.skin-e .plus{height:22px;width:22px;margin:10% 1%;text-indent:-999px;overflow:hidden;background:url(images/sprite-fbt-new.gif) no-repeat}#widget.netshoes-br.frequentlyboughttogether.skin-a .plus,#widget.netshoes-br.frequentlyboughttogether.skin-b .plus,#widget.netshoes-br.frequentlyboughttogether.skin-c .plus,#widget.netshoes-br.frequentlyboughttogether.skin-d .plus,#widget.netshoes-br.frequentlyboughttogether.skin-e .plus{background-position:-51px -1px}#widget.netshoes-br.frequentlyboughttogether.skin-a .equals,#widget.netshoes-br.frequentlyboughttogether.skin-b .equals,#widget.netshoes-br.frequentlyboughttogether.skin-c .equals,#widget.netshoes-br.frequentlyboughttogether.skin-d .equals,#widget.netshoes-br.frequentlyboughttogether.skin-e .equals{background-position:-82px -6px;height:13px}#widget.netshoes-br.frequentlyboughttogether.skin-a .item[data-index=\"0\"]:after,#widget.netshoes-br.frequentlyboughttogether.skin-b .item[data-index=\"0\"]:after,#widget.netshoes-br.frequentlyboughttogether.skin-c .item[data-index=\"0\"]:after,#widget.netshoes-br.frequentlyboughttogether.skin-d .item[data-index=\"0\"]:after,#widget.netshoes-br.frequentlyboughttogether.skin-e .item[data-index=\"0\"]:after{content:\"Você está vendo\";display:block;position:absolute;top:-32px;left:0;font-size:14px;color:#333;width:100%;text-align:center}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .flags,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .flags,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .flags,#widget.netshoes-br.frequentlyboughttogether.skin-d .item .flags,#widget.netshoes-br.frequentlyboughttogether.skin-e .item .flags{position:absolute;bottom:-30px}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .flags .stamp,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .flags .stamp,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .flags .stamp,#widget.netshoes-br.frequentlyboughttogether.skin-d .item .flags .stamp,#widget.netshoes-br.frequentlyboughttogether.skin-e .item .flags .stamp{border:1px solid #45a9df}#widget.netshoes-br.frequentlyboughttogether.skin-a .buttons,#widget.netshoes-br.frequentlyboughttogether.skin-b .buttons,#widget.netshoes-br.frequentlyboughttogether.skin-c .buttons,#widget.netshoes-br.frequentlyboughttogether.skin-d .buttons,#widget.netshoes-br.frequentlyboughttogether.skin-e .buttons{padding:10px 24px 10px 52px;font-family:\"opensansbold\", sans-serif}#widget.netshoes-br.frequentlyboughttogether.skin-a .buttons.buy-together,#widget.netshoes-br.frequentlyboughttogether.skin-b .buttons.buy-together,#widget.netshoes-br.frequentlyboughttogether.skin-c .buttons.buy-together,#widget.netshoes-br.frequentlyboughttogether.skin-d .buttons.buy-together,#widget.netshoes-br.frequentlyboughttogether.skin-e .buttons.buy-together{max-width:175px;margin:0 auto}#widget.netshoes-br.frequentlyboughttogether.skin-a .buttons.buy-together:before,#widget.netshoes-br.frequentlyboughttogether.skin-b .buttons.buy-together:before,#widget.netshoes-br.frequentlyboughttogether.skin-c .buttons.buy-together:before,#widget.netshoes-br.frequentlyboughttogether.skin-d .buttons.buy-together:before,#widget.netshoes-br.frequentlyboughttogether.skin-e .buttons.buy-together:before{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-a .buttons .cart-icon,#widget.netshoes-br.frequentlyboughttogether.skin-b .buttons .cart-icon,#widget.netshoes-br.frequentlyboughttogether.skin-c .buttons .cart-icon,#widget.netshoes-br.frequentlyboughttogether.skin-d .buttons .cart-icon,#widget.netshoes-br.frequentlyboughttogether.skin-e .buttons .cart-icon{background:url(images/carrinho-pdp.svg) no-repeat 0 0;display:block;width:21px;height:20px;position:absolute;left:45px;top:9px}#widget.netshoes-br.frequentlyboughttogether.skin-a .buttons .cart-icon:before,#widget.netshoes-br.frequentlyboughttogether.skin-b .buttons .cart-icon:before,#widget.netshoes-br.frequentlyboughttogether.skin-c .buttons .cart-icon:before,#widget.netshoes-br.frequentlyboughttogether.skin-d .buttons .cart-icon:before,#widget.netshoes-br.frequentlyboughttogether.skin-e .buttons .cart-icon:before{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary,#widget.netshoes-br.frequentlyboughttogether.skin-d #summary,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary{text-align:center}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .summary-text,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .summary-text,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .summary-text,#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .summary-text,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .summary-text{font-size:20px;color:#333;margin:15px auto 25px}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices,#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .prices,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .prices{margin-bottom:10px;text-align:center}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .prices .price{float:none}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices .old-price-container,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .old-price-container,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .old-price-container,#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .prices .old-price-container,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .prices .old-price-container{color:#777}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .prices .old-price{color:#777;font-size:14px;font-style:normal;font-weight:normal;margin-bottom:5px;display:inline-block;margin-left:0}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices .old-price:not(:empty):before,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .old-price:not(:empty):before,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .old-price:not(:empty):before,#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .prices .old-price:not(:empty):before,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .prices .old-price:not(:empty):before{content:\"de\";display:inline-block;margin-right:5px}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .prices .price{font-style:normal}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .save,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .save,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .save,#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .save,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .save{color:#13ABE1;margin:25px 0}#widget.netshoes-br.frequentlyboughttogether.skin-a .frame,#widget.netshoes-br.frequentlyboughttogether.skin-b .frame,#widget.netshoes-br.frequentlyboughttogether.skin-c .frame{padding-left:0}#widget.netshoes-br.frequentlyboughttogether.skin-a .controls,#widget.netshoes-br.frequentlyboughttogether.skin-b .controls,#widget.netshoes-br.frequentlyboughttogether.skin-c .controls{top:-32px;width:100%;z-index:9999;text-transform:uppercase;font-size:12px;text-align:right}#widget.netshoes-br.frequentlyboughttogether.skin-a .title,#widget.netshoes-br.frequentlyboughttogether.skin-b .title,#widget.netshoes-br.frequentlyboughttogether.skin-c .title{margin-bottom:65px}#widget.netshoes-br.frequentlyboughttogether.skin-a .item,#widget.netshoes-br.frequentlyboughttogether.skin-b .item,#widget.netshoes-br.frequentlyboughttogether.skin-c .item{width:20%;padding:0}#widget.netshoes-br.frequentlyboughttogether.skin-a .item.disabled .wrapper:before,#widget.netshoes-br.frequentlyboughttogether.skin-b .item.disabled .wrapper:before,#widget.netshoes-br.frequentlyboughttogether.skin-c .item.disabled .wrapper:before{background:rgba(255,255,255,0.7)}#widget.netshoes-br.frequentlyboughttogether.skin-a .item.disabled .control-skip,#widget.netshoes-br.frequentlyboughttogether.skin-b .item.disabled .control-skip,#widget.netshoes-br.frequentlyboughttogether.skin-c .item.disabled .control-skip{visibility:visible;cursor:default;pointer-events:none;opacity:0.5}#widget.netshoes-br.frequentlyboughttogether.skin-a .item.disabled .control-add:after,#widget.netshoes-br.frequentlyboughttogether.skin-b .item.disabled .control-add:after,#widget.netshoes-br.frequentlyboughttogether.skin-c .item.disabled .control-add:after{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-a .item.disabled .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-b .item.disabled .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-c .item.disabled .control-remove{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .product-name,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .product-name,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .product-name{margin:13px 0 7px}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .group-thumbnail,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .group-thumbnail,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .group-thumbnail{border:1px solid #dfdfdf;position:relative;margin-bottom:40px}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .installments,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .installments,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .installments{font-weight:normal;font-style:normal;text-align:center;color:#582585}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-skip,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-skip,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-skip{display:inline-block;cursor:pointer;padding-right:10px;text-transform:none;font-size:14px;margin:0 -3px 0 0;top:-1px;position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-skip:before,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-skip:before,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-skip:before{content:\"\";background:url(images/sprite-fbt-new.gif) no-repeat -4px -3px;width:16px;height:17px;float:left;margin-right:4px;display:block}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-skip:hover,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-skip:hover,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-skip:hover{width:auto}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .toggle-product,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .toggle-product,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .toggle-product{display:inline-block;padding-left:5px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-add,#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-add,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-add,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-remove{text-indent:initial;line-height:normal;width:auto;height:auto;color:#000;padding-left:20px;transform:none;-webkit-transform:none;-moz-transform:none;-ms-transform:none}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-add .label,#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-remove .label,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-add .label,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-remove .label,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-add .label,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-remove .label{position:relative;font-size:14px;color:#000;text-transform:none;padding-left:5px}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-remove{background:transparent;top:2px}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-remove:before,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-remove:before,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-remove:before{content:\"\";background:url(images/sprite-fbt-new.gif) no-repeat -29px -5px;height:14px;width:14px;display:block;float:left;margin:1px 0 0 1px}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-remove:hover,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-remove:hover,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-remove:hover{width:auto}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-remove:after,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-remove:after,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-remove:after{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-add,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-add,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-add{background:transparent}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .control-add:before,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-add:before,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-add:before{content:\"\";background:url(images/sprite-fbt-new.gif) no-repeat -112px -5px;height:15px;width:15px;display:block;float:left;margin-right:4px}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .price.actual-price,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .price.actual-price,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .price.actual-price{font-size:31px;color:#46ace2}#widget.netshoes-br.frequentlyboughttogether.skin-a .item .save,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .save,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .save{color:#5c287f}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary{margin-top:0;padding:0;width:25%}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .summary-text,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .summary-text,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .summary-text{text-transform:none;margin:0 auto 50px}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices .old-price:not(:empty),#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .old-price:not(:empty),#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .old-price:not(:empty){font-size:20px}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices .old-price:before,#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices .old-price:not(:empty):before,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .old-price:before,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .old-price:not(:empty):before,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .old-price:before,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .old-price:not(:empty):before{content:\"\";display:none}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .price{font-size:29px}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .save,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .save,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .save{font-size:17px;margin:15px auto 48px}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .buttons.buy-together,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .buttons.buy-together,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .buttons.buy-together{width:100%;max-width:90%;margin:0 auto;padding:10px 0}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .buttons.buy-together .cart-icon,#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .buttons.buy-together .cart-icon,#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .buttons.buy-together .cart-icon{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .price.actual-price{color:#46ace2;margin:10px 0 0}#widget.netshoes-br.frequentlyboughttogether.skin-a #summary .save{color:#5c287f}#widget.netshoes-br.frequentlyboughttogether.skin-b .controls,#widget.netshoes-br.frequentlyboughttogether.skin-c .controls{position:absolute;bottom:10px;left:3px;top:auto;width:99px;text-align:left}#widget.netshoes-br.frequentlyboughttogether.skin-b .item .toggle-product,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .toggle-product{width:100%}#widget.netshoes-br.frequentlyboughttogether.skin-b .item .toggle-product:after,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .toggle-product:after{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-skip,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-add,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-skip,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-add{background:rgba(255,255,255,0.7);margin-bottom:3px;width:24px;overflow:hidden;transition:width 500ms;position:relative;clear:both;white-space:nowrap;box-sizing:border-box;padding:4px}#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-skip:hover,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-remove:hover,#widget.netshoes-br.frequentlyboughttogether.skin-b .item .control-add:hover,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-skip:hover,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-remove:hover,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .control-add:hover{width:auto}#widget.netshoes-br.frequentlyboughttogether.skin-b .item .toggle-product,#widget.netshoes-br.frequentlyboughttogether.skin-c .item .toggle-product{width:100%;clear:both;padding-left:0}#widget.netshoes-br.frequentlyboughttogether.skin-b .item{width:15.4%}#widget.netshoes-br.frequentlyboughttogether.skin-b .plus,#widget.netshoes-br.frequentlyboughttogether.skin-b .equals{margin:7% 2%}@media screen and (max-width: 931px){#widget.netshoes-br.frequentlyboughttogether.skin-b .plus,#widget.netshoes-br.frequentlyboughttogether.skin-b .equals{margin:7% 1%}}#widget.netshoes-br.frequentlyboughttogether.skin-b #summary{width:15%}#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .save{margin:-2px auto 11px;color:#582585}#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .summary-text{font-size:19px;margin:0 auto 25px}#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices{margin-bottom:33px}#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .price{font-size:23px;color:#13ABE1}#widget.netshoes-br.frequentlyboughttogether.skin-b #summary .prices .old-price:not(:empty){font-size:17px}#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .save{margin:15px auto 11px;padding-left:15px;color:#582585}#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .summary-text{font-size:19px;margin:0 auto 44px;padding-left:15px}#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices{margin-bottom:63px}#widget.netshoes-br.frequentlyboughttogether.skin-c #summary .prices .price{color:#13ABE1}#widget.netshoes-br.frequentlyboughttogether.skin-d .frame,#widget.netshoes-br.frequentlyboughttogether.skin-e .frame{padding-left:0;margin-top:65px}#widget.netshoes-br.frequentlyboughttogether.skin-d .controls,#widget.netshoes-br.frequentlyboughttogether.skin-e .controls{top:40px;left:-50px}#widget.netshoes-br.frequentlyboughttogether.skin-d .toggle-product,#widget.netshoes-br.frequentlyboughttogether.skin-e .toggle-product{border:none;border-radius:4px;width:20px;height:20px;background:url(images/checked-bg.gif) no-repeat -2px -2px;background-size:120%;display:none;border:1px solid #45a9e2;border-radius:3px}#widget.netshoes-br.frequentlyboughttogether.skin-d .toggle-product:after,#widget.netshoes-br.frequentlyboughttogether.skin-e .toggle-product:after{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-d .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-d .control-add,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-add{-webkit-transform:none;-moz-transform:none;-ms-transform:none;transform:none}#widget.netshoes-br.frequentlyboughttogether.skin-d .control-remove:hover,#widget.netshoes-br.frequentlyboughttogether.skin-d .control-add:hover,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-remove:hover,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-add:hover{background-position:0;transition:initial;-webkit-transition:initial;-moz-transition:initial}#widget.netshoes-br.frequentlyboughttogether.skin-d .control-remove,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-remove{width:20px;height:20px;background:url(images/checked-bg.gif) no-repeat -2px -2px;background-size:120%;border:1px solid #45a9e2;border-radius:3px}#widget.netshoes-br.frequentlyboughttogether.skin-d .control-remove span,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-remove span{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-d .control-remove:hover,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-remove:hover{background-position:-2px -2px}#widget.netshoes-br.frequentlyboughttogether.skin-d .control-remove:after,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-remove:after{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-d .control-add,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-add{width:20px;height:20px;background:#fff;border-radius:4px}#widget.netshoes-br.frequentlyboughttogether.skin-d .control-add span,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-add span{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-d .control-add:after,#widget.netshoes-br.frequentlyboughttogether.skin-e .control-add:after{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-d #thumbnails,#widget.netshoes-br.frequentlyboughttogether.skin-e #thumbnails{float:left;width:67%}@media (max-width: 2560px){#widget.netshoes-br.frequentlyboughttogether.skin-d #thumbnails,#widget.netshoes-br.frequentlyboughttogether.skin-e #thumbnails{clear:both}#widget.netshoes-br.frequentlyboughttogether.skin-d #thumbnails:after,#widget.netshoes-br.frequentlyboughttogether.skin-e #thumbnails:after{content:\"\";display:table;clear:both}}#widget.netshoes-br.frequentlyboughttogether.skin-d .plus,#widget.netshoes-br.frequentlyboughttogether.skin-e .plus{margin:17% 0% 25% 9.5%}@media screen and (max-width: 931px){#widget.netshoes-br.frequentlyboughttogether.skin-d .plus,#widget.netshoes-br.frequentlyboughttogether.skin-e .plus{margin:17% 0% 45% 2%}}#widget.netshoes-br.frequentlyboughttogether.skin-d .spec,#widget.netshoes-br.frequentlyboughttogether.skin-d .specs,#widget.netshoes-br.frequentlyboughttogether.skin-e .spec,#widget.netshoes-br.frequentlyboughttogether.skin-e .specs{max-width:225px}#widget.netshoes-br.frequentlyboughttogether.skin-d .item,#widget.netshoes-br.frequentlyboughttogether.skin-e .item{padding:0}#widget.netshoes-br.frequentlyboughttogether.skin-d .item .wrapper:before,#widget.netshoes-br.frequentlyboughttogether.skin-e .item .wrapper:before{background:rgba(255,255,255,0.2)}#widget.netshoes-br.frequentlyboughttogether.skin-d .item[data-index=\"0\"],#widget.netshoes-br.frequentlyboughttogether.skin-e .item[data-index=\"0\"]{width:23%}#widget.netshoes-br.frequentlyboughttogether.skin-d .item[data-index=\"0\"]:after,#widget.netshoes-br.frequentlyboughttogether.skin-e .item[data-index=\"0\"]:after{top:-33px;left:-6px}#widget.netshoes-br.frequentlyboughttogether.skin-d .item[data-index=\"0\"] .thumbnail,#widget.netshoes-br.frequentlyboughttogether.skin-e .item[data-index=\"0\"] .thumbnail{border:1px solid #cecece;height:auto;overflow:hidden;margin-bottom:17px}#widget.netshoes-br.frequentlyboughttogether.skin-d .item[data-index=\"0\"] .thumbnail img,#widget.netshoes-br.frequentlyboughttogether.skin-e .item[data-index=\"0\"] .thumbnail img{height:auto}#widget.netshoes-br.frequentlyboughttogether.skin-d .item[data-index=\"0\"] .product-name,#widget.netshoes-br.frequentlyboughttogether.skin-d .item[data-index=\"0\"] .prices,#widget.netshoes-br.frequentlyboughttogether.skin-d .item[data-index=\"0\"] .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-d .item[data-index=\"0\"] .price,#widget.netshoes-br.frequentlyboughttogether.skin-e .item[data-index=\"0\"] .product-name,#widget.netshoes-br.frequentlyboughttogether.skin-e .item[data-index=\"0\"] .prices,#widget.netshoes-br.frequentlyboughttogether.skin-e .item[data-index=\"0\"] .old-price,#widget.netshoes-br.frequentlyboughttogether.skin-e .item[data-index=\"0\"] .price{text-align:center}#widget.netshoes-br.frequentlyboughttogether.skin-d .item[data-index=\"0\"] .product-name,#widget.netshoes-br.frequentlyboughttogether.skin-e .item[data-index=\"0\"] .product-name{margin:5px 0 12px}#widget.netshoes-br.frequentlyboughttogether.skin-d .item.removable .toggle-product,#widget.netshoes-br.frequentlyboughttogether.skin-e .item.removable .toggle-product{display:block}#widget.netshoes-br.frequentlyboughttogether.skin-d .item .flags,#widget.netshoes-br.frequentlyboughttogether.skin-e .item .flags{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]),#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]){width:calc(70% - 170px);max-width:none;padding:0 0 10px 60px;margin:0 40px 23px 62px}@media screen and (max-width: 931px){#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]),#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]){width:calc(88% - 170px)}}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]) .wrapper,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .wrapper{height:115px;position:relative}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]) .wrapper .alert,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .wrapper .alert{width:52%;text-align:center;right:17px}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]).disabled .thumbnail,#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]).disabled .content,#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]).disabled .buy-container,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]).disabled .thumbnail,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]).disabled .content,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]).disabled .buy-container{opacity:0.2}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]).disabled .toggle-product,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]).disabled .toggle-product{display:block}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]):last-child,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]):last-child{border-bottom:none}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]) .discount,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .discount{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]) .thumbnail,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .thumbnail{float:left;padding-right:18px;height:auto;min-height:100px}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]) .thumbnail img,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .thumbnail img{width:150px;height:auto}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]) .product-name,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .product-name{margin:-1px 0 8px;min-height:100%;height:42px}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]) .content,#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]) .buy-container,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .content,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .buy-container{float:left;width:calc(100% - 185px);clear:none;margin:0}#widget.netshoes-br.frequentlyboughttogether.skin-d .item .product-name,#widget.netshoes-br.frequentlyboughttogether.skin-d .item .prices,#widget.netshoes-br.frequentlyboughttogether.skin-e .item .product-name,#widget.netshoes-br.frequentlyboughttogether.skin-e .item .prices{min-height:auto;text-align:left;margin:0 0 3px 0}#widget.netshoes-br.frequentlyboughttogether.skin-d .item .installments,#widget.netshoes-br.frequentlyboughttogether.skin-e .item .installments{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-d #thumbnails>span:nth-child(4),#widget.netshoes-br.frequentlyboughttogether.skin-d #thumbnails>span:nth-child(6),#widget.netshoes-br.frequentlyboughttogether.skin-e #thumbnails>span:nth-child(4),#widget.netshoes-br.frequentlyboughttogether.skin-e #thumbnails>span:nth-child(6){display:none}#widget.netshoes-br.frequentlyboughttogether.skin-d .equals,#widget.netshoes-br.frequentlyboughttogether.skin-e .equals{margin:11.5% 1.2%}#widget.netshoes-br.frequentlyboughttogether.skin-d #summary,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary{padding:0;margin:60px 0 0 0;width:28%}#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .save,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .save{margin:-2px auto 18px;color:#582585}#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .summary-text,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .summary-text{font-size:19px;margin:0 auto 35px}#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .prices,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .prices{margin-bottom:33px}#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .prices .price,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .prices .price{font-size:23px;color:#13ABE1}#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .prices .old-price:not(:empty),#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .prices .old-price:not(:empty){font-size:17px}#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .buttons.buy-together,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .buttons.buy-together{width:100%;max-width:90%;margin:0 auto;padding:10px 0}#widget.netshoes-br.frequentlyboughttogether.skin-d #summary .buttons.buy-together .cart-icon,#widget.netshoes-br.frequentlyboughttogether.skin-e #summary .buttons.buy-together .cart-icon{display:none}#widget.netshoes-br.frequentlyboughttogether.skin-d .controls{top:64px;left:-48px}@media screen and (max-width: 931px){#widget.netshoes-br.frequentlyboughttogether.skin-d .item #thumbnails{width:69%}}@media screen and (max-width: 931px){#widget.netshoes-br.frequentlyboughttogether.skin-d .item #summary{width:26%}}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]){padding:0 0 0 57px;margin:0 18px 33px 73px}@media screen and (max-width: 931px){#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]){width:calc(95% - 170px);margin:0 0 33px 20px}}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]) .controls{top:40px}#widget.netshoes-br.frequentlyboughttogether.skin-d .item:not([data-index=\"0\"]) #thumbnails>span:nth-child(6){display:none}#widget.netshoes-br.frequentlyboughttogether.skin-e #thumbnails{width:72%}#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]){margin:0 40px 35px 70px}@media screen and (max-width: 931px){#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]){margin:0 0 35px 20px;width:calc(88% - 137px)}}#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .wrapper .alert{width:59%;text-align:center;right:37px;top:88%}#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .thumbnail{height:auto}#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .thumbnail img{width:100px;height:auto}#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .content,#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .buy-container{width:calc(100% - 145px)}#widget.netshoes-br.frequentlyboughttogether.skin-e .item:not([data-index=\"0\"]) .product-name{margin:-1px 0 -2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#widget.netshoes-br.frequentlyboughttogether.skin-e #summary{width:23%}#widget.netshoes-br.shoppingcart.desktop.skin-a .title,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .title,#widget.netshoes-br.skin-b.historypersonalized.skin-a .title,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .title,#widget.netshoes-br.skin-b.mostpopular.skin-a .title{margin-bottom:24px}#widget.netshoes-br.shoppingcart.desktop.skin-a .frame,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .frame,#widget.netshoes-br.skin-b.historypersonalized.skin-a .frame,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .frame,#widget.netshoes-br.skin-b.mostpopular.skin-a .frame{min-height:200px}#widget.netshoes-br.shoppingcart.desktop.skin-a .carousel-padding,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .carousel-padding,#widget.netshoes-br.skin-b.historypersonalized.skin-a .carousel-padding,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .carousel-padding,#widget.netshoes-br.skin-b.mostpopular.skin-a .carousel-padding{padding:0}#widget.netshoes-br.shoppingcart.desktop.skin-a .carousel-item,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .carousel-item,#widget.netshoes-br.skin-b.historypersonalized.skin-a .carousel-item,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .carousel-item,#widget.netshoes-br.skin-b.mostpopular.skin-a .carousel-item{padding:0}#widget.netshoes-br.shoppingcart.desktop.skin-a .carousel,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .carousel,#widget.netshoes-br.skin-b.historypersonalized.skin-a .carousel,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .carousel,#widget.netshoes-br.skin-b.mostpopular.skin-a .carousel{padding:0}#widget.netshoes-br.shoppingcart.desktop.skin-a .item,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item,#widget.netshoes-br.skin-b.historypersonalized.skin-a .item,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item,#widget.netshoes-br.skin-b.mostpopular.skin-a .item{max-width:none;padding:0}@media (max-width: 2560px){#widget.netshoes-br.shoppingcart.desktop.skin-a .item,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item,#widget.netshoes-br.skin-b.historypersonalized.skin-a .item,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item,#widget.netshoes-br.skin-b.mostpopular.skin-a .item{clear:both}#widget.netshoes-br.shoppingcart.desktop.skin-a .item:after,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item:after,#widget.netshoes-br.skin-b.historypersonalized.skin-a .item:after,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item:after,#widget.netshoes-br.skin-b.mostpopular.skin-a .item:after{content:\"\";display:table;clear:both}}@media (max-width: 931px){#widget.netshoes-br.shoppingcart.desktop.skin-a .item,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item,#widget.netshoes-br.skin-b.historypersonalized.skin-a .item,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item,#widget.netshoes-br.skin-b.mostpopular.skin-a .item{min-height:200px}}#widget.netshoes-br.shoppingcart.desktop.skin-a .item .product-name,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item .product-name,#widget.netshoes-br.skin-b.historypersonalized.skin-a .item .product-name,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item .product-name,#widget.netshoes-br.skin-b.mostpopular.skin-a .item .product-name{margin:2px 0 7px}#widget.netshoes-br.shoppingcart.desktop.skin-a .item .prices .price,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item .prices .price,#widget.netshoes-br.skin-b.historypersonalized.skin-a .item .prices .price,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item .prices .price,#widget.netshoes-br.skin-b.mostpopular.skin-a .item .prices .price{font-size:21px}@media (max-width: 931px){#widget.netshoes-br.shoppingcart.desktop.skin-a .item .prices .price,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item .prices .price,#widget.netshoes-br.skin-b.historypersonalized.skin-a .item .prices .price,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item .prices .price,#widget.netshoes-br.skin-b.mostpopular.skin-a .item .prices .price{display:block}}#widget.netshoes-br.shoppingcart.desktop.skin-a .item .prices .old-price:not(:empty),#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item .prices .old-price:not(:empty),#widget.netshoes-br.skin-b.historypersonalized.skin-a .item .prices .old-price:not(:empty),#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item .prices .old-price:not(:empty),#widget.netshoes-br.skin-b.mostpopular.skin-a .item .prices .old-price:not(:empty){display:inline-block;padding-right:4px}#widget.netshoes-br.shoppingcart.desktop.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.historypersonalized.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.mostpopular.skin-a .item .content-bottom{position:absolute;bottom:0;width:38%}@media (max-width: 931px){#widget.netshoes-br.shoppingcart.desktop.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.historypersonalized.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.mostpopular.skin-a .item .content-bottom{bottom:30px}}@media (max-width: 600px){#widget.netshoes-br.shoppingcart.desktop.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.historypersonalized.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .item .content-bottom,#widget.netshoes-br.skin-b.mostpopular.skin-a .item .content-bottom{width:91%}}#widget.netshoes-br.shoppingcart.desktop.skin-a .group-thumbnail,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .group-thumbnail,#widget.netshoes-br.skin-b.historypersonalized.skin-a .group-thumbnail,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .group-thumbnail,#widget.netshoes-br.skin-b.mostpopular.skin-a .group-thumbnail{float:left;width:198px;height:197px;border:1px solid #dfdfdf;margin-right:20px;overflow:hidden}@media screen and (max-width: 931px){#widget.netshoes-br.shoppingcart.desktop.skin-a .group-thumbnail,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .group-thumbnail,#widget.netshoes-br.skin-b.historypersonalized.skin-a .group-thumbnail,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .group-thumbnail,#widget.netshoes-br.skin-b.mostpopular.skin-a .group-thumbnail{width:37%;height:auto}}#widget.netshoes-br.shoppingcart.desktop.skin-a .content,#widget.netshoes-br.shoppingcart.desktop.skin-a .buy-container,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .content,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .buy-container,#widget.netshoes-br.skin-b.historypersonalized.skin-a .content,#widget.netshoes-br.skin-b.historypersonalized.skin-a .buy-container,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .content,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .buy-container,#widget.netshoes-br.skin-b.mostpopular.skin-a .content,#widget.netshoes-br.skin-b.mostpopular.skin-a .buy-container{width:38%;float:left;clear:none}#widget.netshoes-br.shoppingcart.desktop.skin-a .prices,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .prices,#widget.netshoes-br.skin-b.historypersonalized.skin-a .prices,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .prices,#widget.netshoes-br.skin-b.mostpopular.skin-a .prices{border-bottom:none;min-height:auto}#widget.netshoes-br.shoppingcart.desktop.skin-a .flags,#widget.netshoes-br.shoppingcart.desktop.skin-a .installments,#widget.netshoes-br.shoppingcart.desktop.skin-a .free-shipping,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .flags,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .installments,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .free-shipping,#widget.netshoes-br.skin-b.historypersonalized.skin-a .flags,#widget.netshoes-br.skin-b.historypersonalized.skin-a .installments,#widget.netshoes-br.skin-b.historypersonalized.skin-a .free-shipping,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .flags,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .installments,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .free-shipping,#widget.netshoes-br.skin-b.mostpopular.skin-a .flags,#widget.netshoes-br.skin-b.mostpopular.skin-a .installments,#widget.netshoes-br.skin-b.mostpopular.skin-a .free-shipping{display:none}#widget.netshoes-br.shoppingcart.desktop.skin-a .buttons,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .buttons,#widget.netshoes-br.skin-b.historypersonalized.skin-a .buttons,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .buttons,#widget.netshoes-br.skin-b.mostpopular.skin-a .buttons{color:#fff;background:#45abe2;border:none;font-weight:normal;line-height:29px;position:relative}#widget.netshoes-br.shoppingcart.desktop.skin-a .buttons.buy:before,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .buttons.buy:before,#widget.netshoes-br.skin-b.historypersonalized.skin-a .buttons.buy:before,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .buttons.buy:before,#widget.netshoes-br.skin-b.mostpopular.skin-a .buttons.buy:before{display:none}#widget.netshoes-br.shoppingcart.desktop.skin-a .buttons.buy:after,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .buttons.buy:after,#widget.netshoes-br.skin-b.historypersonalized.skin-a .buttons.buy:after,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .buttons.buy:after,#widget.netshoes-br.skin-b.mostpopular.skin-a .buttons.buy:after{content:\"Adicionar ao carrinho\";position:absolute;top:4px;left:12px;background:#45abe2;font-size:12px}@media screen and (max-width: 931px){#widget.netshoes-br.shoppingcart.desktop.skin-a .buttons.buy:after,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .buttons.buy:after,#widget.netshoes-br.skin-b.historypersonalized.skin-a .buttons.buy:after,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .buttons.buy:after,#widget.netshoes-br.skin-b.mostpopular.skin-a .buttons.buy:after{display:none}}@media screen and (max-width: 580px){#widget.netshoes-br.shoppingcart.desktop.skin-a .frame,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .frame,#widget.netshoes-br.skin-b.historypersonalized.skin-a .frame,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .frame,#widget.netshoes-br.skin-b.mostpopular.skin-a .frame{min-height:360px}#widget.netshoes-br.shoppingcart.desktop.skin-a .carousel,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .carousel,#widget.netshoes-br.skin-b.historypersonalized.skin-a .carousel,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .carousel,#widget.netshoes-br.skin-b.mostpopular.skin-a .carousel{padding:0}#widget.netshoes-br.shoppingcart.desktop.skin-a .thumbnail,#widget.netshoes-br.shoppingcart.desktop.skin-a .content,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .thumbnail,#widget.netshoes-br.skin-b.viewpersonalized.skin-a .content,#widget.netshoes-br.skin-b.historypersonalized.skin-a .thumbnail,#widget.netshoes-br.skin-b.historypersonalized.skin-a .content,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .thumbnail,#widget.netshoes-br.skin-b.purchasepersonalized.skin-a .content,#widget.netshoes-br.skin-b.mostpopular.skin-a .thumbnail,#widget.netshoes-br.skin-b.mostpopular.skin-a .content{float:none;width:auto}}#widget.netshoes-br.shoppingcart.desktop.skin-b .frame,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .frame,#widget.netshoes-br.skin-b.historypersonalized.skin-b .frame,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .frame,#widget.netshoes-br.skin-b.mostpopular.skin-b .frame{min-height:270px}#widget.netshoes-br.shoppingcart.desktop.skin-b .title,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .title,#widget.netshoes-br.skin-b.historypersonalized.skin-b .title,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .title,#widget.netshoes-br.skin-b.mostpopular.skin-b .title{margin:0 0 25px 0}#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding{padding:0}#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding .carousel-item,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding .carousel-item,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding .carousel-item,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding .carousel-item,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding .carousel-item{padding:0}#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding .carousel-item .group-thumbnail,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding .carousel-item .group-thumbnail,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding .carousel-item .group-thumbnail,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding .carousel-item .group-thumbnail,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding .carousel-item .group-thumbnail{margin:0 auto;float:none}#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding .carousel-item .content,#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding .carousel-item .buy-container,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding .carousel-item .content,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding .carousel-item .buy-container,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding .carousel-item .content,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding .carousel-item .buy-container,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding .carousel-item .content,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding .carousel-item .buy-container,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding .carousel-item .content,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding .carousel-item .buy-container{left:8%}#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding .carousel-item.first-visible .group-thumbnail,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding .carousel-item.first-visible .group-thumbnail,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding .carousel-item.first-visible .group-thumbnail,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding .carousel-item.first-visible .group-thumbnail,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding .carousel-item.first-visible .group-thumbnail{margin:0}#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding .carousel-item.first-visible .content,#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding .carousel-item.first-visible .buy-container,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding .carousel-item.first-visible .content,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding .carousel-item.first-visible .buy-container,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding .carousel-item.first-visible .content,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding .carousel-item.first-visible .buy-container,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding .carousel-item.first-visible .content,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding .carousel-item.first-visible .buy-container,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding .carousel-item.first-visible .content,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding .carousel-item.first-visible .buy-container{left:0}#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding .carousel-item.last-visible .group-thumbnail,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding .carousel-item.last-visible .group-thumbnail,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding .carousel-item.last-visible .group-thumbnail,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding .carousel-item.last-visible .group-thumbnail,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding .carousel-item.last-visible .group-thumbnail{margin:0 0 0 16%}#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding .carousel-item.last-visible .content,#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel-padding .carousel-item.last-visible .buy-container,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding .carousel-item.last-visible .content,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel-padding .carousel-item.last-visible .buy-container,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding .carousel-item.last-visible .content,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel-padding .carousel-item.last-visible .buy-container,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding .carousel-item.last-visible .content,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel-padding .carousel-item.last-visible .buy-container,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding .carousel-item.last-visible .content,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel-padding .carousel-item.last-visible .buy-container{right:0;left:auto}#widget.netshoes-br.shoppingcart.desktop.skin-b .carousel,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .carousel,#widget.netshoes-br.skin-b.historypersonalized.skin-b .carousel,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .carousel,#widget.netshoes-br.skin-b.mostpopular.skin-b .carousel{padding:0}#widget.netshoes-br.shoppingcart.desktop.skin-b .group-thumbnail,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .group-thumbnail,#widget.netshoes-br.skin-b.historypersonalized.skin-b .group-thumbnail,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .group-thumbnail,#widget.netshoes-br.skin-b.mostpopular.skin-b .group-thumbnail{float:left;width:215px;height:217px;border:1px solid #dfdfdf;overflow:hidden}#widget.netshoes-br.shoppingcart.desktop.skin-b .prices,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .prices,#widget.netshoes-br.skin-b.historypersonalized.skin-b .prices,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .prices,#widget.netshoes-br.skin-b.mostpopular.skin-b .prices{border-bottom:none;min-height:auto}#widget.netshoes-br.shoppingcart.desktop.skin-b .prices .price,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .prices .price,#widget.netshoes-br.skin-b.historypersonalized.skin-b .prices .price,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .prices .price,#widget.netshoes-br.skin-b.mostpopular.skin-b .prices .price{float:left}#widget.netshoes-br.shoppingcart.desktop.skin-b .prices .old-price,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .prices .old-price,#widget.netshoes-br.skin-b.historypersonalized.skin-b .prices .old-price,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .prices .old-price,#widget.netshoes-br.skin-b.mostpopular.skin-b .prices .old-price{color:#000;margin-top:4px;display:inline-block;margin-left:7px;font-size:11px;font-style:italic}#widget.netshoes-br.shoppingcart.desktop.skin-b .alert,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .alert,#widget.netshoes-br.skin-b.historypersonalized.skin-b .alert,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .alert,#widget.netshoes-br.skin-b.mostpopular.skin-b .alert{top:58%;width:94%}#widget.netshoes-br.shoppingcart.desktop.skin-b .loading .api,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .loading .api,#widget.netshoes-br.skin-b.historypersonalized.skin-b .loading .api,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .loading .api,#widget.netshoes-br.skin-b.mostpopular.skin-b .loading .api{visibility:visible}#widget.netshoes-br.shoppingcart.desktop.skin-b .item,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item,#widget.netshoes-br.skin-b.mostpopular.skin-b .item{margin-bottom:0;height:300px;padding:0;max-width:100%}#widget.netshoes-br.shoppingcart.desktop.skin-b .item:hover .content,#widget.netshoes-br.shoppingcart.desktop.skin-b .item:hover .buy-container,#widget.netshoes-br.shoppingcart.desktop.skin-b .item:hover .prices,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item:hover .content,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item:hover .buy-container,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item:hover .prices,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item:hover .content,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item:hover .buy-container,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item:hover .prices,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item:hover .content,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item:hover .buy-container,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item:hover .prices,#widget.netshoes-br.skin-b.mostpopular.skin-b .item:hover .content,#widget.netshoes-br.skin-b.mostpopular.skin-b .item:hover .buy-container,#widget.netshoes-br.skin-b.mostpopular.skin-b .item:hover .prices{display:block}#widget.netshoes-br.shoppingcart.desktop.skin-b .item:hover .content,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item:hover .content,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item:hover .content,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item:hover .content,#widget.netshoes-br.skin-b.mostpopular.skin-b .item:hover .content{top:0;left:0;right:0;width:100%}#widget.netshoes-br.shoppingcart.desktop.skin-b .item:hover .buttons.buy,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item:hover .buttons.buy,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item:hover .buttons.buy,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item:hover .buttons.buy,#widget.netshoes-br.skin-b.mostpopular.skin-b .item:hover .buttons.buy{top:0;opacity:1}#widget.netshoes-br.shoppingcart.desktop.skin-b .item .product-name,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item .product-name,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item .product-name,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item .product-name,#widget.netshoes-br.skin-b.mostpopular.skin-b .item .product-name{text-align:center;margin:11px 0 17px}#widget.netshoes-br.shoppingcart.desktop.skin-b .item .prices,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item .prices,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item .prices,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item .prices,#widget.netshoes-br.skin-b.mostpopular.skin-b .item .prices{text-align:center}#widget.netshoes-br.shoppingcart.desktop.skin-b .item .prices .price,#widget.netshoes-br.shoppingcart.desktop.skin-b .item .prices .old-price,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item .prices .price,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item .prices .old-price,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item .prices .price,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item .prices .old-price,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item .prices .price,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item .prices .old-price,#widget.netshoes-br.skin-b.mostpopular.skin-b .item .prices .price,#widget.netshoes-br.skin-b.mostpopular.skin-b .item .prices .old-price{display:block;clear:both;float:none;display:block;text-align:center}#widget.netshoes-br.shoppingcart.desktop.skin-b .item .prices .old-price,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item .prices .old-price,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item .prices .old-price,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item .prices .old-price,#widget.netshoes-br.skin-b.mostpopular.skin-b .item .prices .old-price{font-size:21px;color:#8c8c8c;font-style:normal}#widget.netshoes-br.shoppingcart.desktop.skin-b .item .prices .price,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .item .prices .price,#widget.netshoes-br.skin-b.historypersonalized.skin-b .item .prices .price,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .item .prices .price,#widget.netshoes-br.skin-b.mostpopular.skin-b .item .prices .price{font-size:26px;margin-top:6px}#widget.netshoes-br.shoppingcart.desktop.skin-b .thumbnail,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .thumbnail,#widget.netshoes-br.skin-b.historypersonalized.skin-b .thumbnail,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .thumbnail,#widget.netshoes-br.skin-b.mostpopular.skin-b .thumbnail{height:auto;cursor:pointer}#widget.netshoes-br.shoppingcart.desktop.skin-b .thumbnail img,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .thumbnail img,#widget.netshoes-br.skin-b.historypersonalized.skin-b .thumbnail img,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .thumbnail img,#widget.netshoes-br.skin-b.mostpopular.skin-b .thumbnail img{max-width:100%}#widget.netshoes-br.shoppingcart.desktop.skin-b .flags,#widget.netshoes-br.shoppingcart.desktop.skin-b .installments,#widget.netshoes-br.shoppingcart.desktop.skin-b .free-shipping,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .flags,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .installments,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .free-shipping,#widget.netshoes-br.skin-b.historypersonalized.skin-b .flags,#widget.netshoes-br.skin-b.historypersonalized.skin-b .installments,#widget.netshoes-br.skin-b.historypersonalized.skin-b .free-shipping,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .flags,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .installments,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .free-shipping,#widget.netshoes-br.skin-b.mostpopular.skin-b .flags,#widget.netshoes-br.skin-b.mostpopular.skin-b .installments,#widget.netshoes-br.skin-b.mostpopular.skin-b .free-shipping{display:none}#widget.netshoes-br.shoppingcart.desktop.skin-b .content,#widget.netshoes-br.shoppingcart.desktop.skin-b .buy-container,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .content,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .buy-container,#widget.netshoes-br.skin-b.historypersonalized.skin-b .content,#widget.netshoes-br.skin-b.historypersonalized.skin-b .buy-container,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .content,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .buy-container,#widget.netshoes-br.skin-b.mostpopular.skin-b .content,#widget.netshoes-br.skin-b.mostpopular.skin-b .buy-container{background:rgba(255,255,255,0.9);padding:5px 8px;border-top:solid 1px rgba(255,255,255,0.9);border-bottom:solid 1px #ebebeb;width:85%;position:absolute;top:0;left:0;margin:0;box-sizing:border-box;z-index:11;display:none}#widget.netshoes-br.shoppingcart.desktop.skin-b .content,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .content,#widget.netshoes-br.skin-b.historypersonalized.skin-b .content,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .content,#widget.netshoes-br.skin-b.mostpopular.skin-b .content{border-bottom:none;height:100%;display:block;top:220px}#widget.netshoes-br.shoppingcart.desktop.skin-b .content .prices,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .content .prices,#widget.netshoes-br.skin-b.historypersonalized.skin-b .content .prices,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .content .prices,#widget.netshoes-br.skin-b.mostpopular.skin-b .content .prices{display:none}#widget.netshoes-br.shoppingcart.desktop.skin-b .buy-container,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .buy-container,#widget.netshoes-br.skin-b.historypersonalized.skin-b .buy-container,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .buy-container,#widget.netshoes-br.skin-b.mostpopular.skin-b .buy-container{height:50%;border-top:none;bottom:-32px;top:auto;background:transparent}#widget.netshoes-br.shoppingcart.desktop.skin-b .specs,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .specs,#widget.netshoes-br.skin-b.historypersonalized.skin-b .specs,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .specs,#widget.netshoes-br.skin-b.mostpopular.skin-b .specs{margin:0 0 10px;height:35px}#widget.netshoes-br.shoppingcart.desktop.skin-b .buttons,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .buttons,#widget.netshoes-br.skin-b.historypersonalized.skin-b .buttons,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .buttons,#widget.netshoes-br.skin-b.mostpopular.skin-b .buttons{color:#fff;background:#45abe2;border:none;font-weight:normal;position:relative;line-height:29px}#widget.netshoes-br.shoppingcart.desktop.skin-b .buttons.buy,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .buttons.buy,#widget.netshoes-br.skin-b.historypersonalized.skin-b .buttons.buy,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .buttons.buy,#widget.netshoes-br.skin-b.mostpopular.skin-b .buttons.buy{top:-5px;opacity:0;transition:all 500ms;transition-delay:1000ms}#widget.netshoes-br.shoppingcart.desktop.skin-b .buttons.buy:before,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .buttons.buy:before,#widget.netshoes-br.skin-b.historypersonalized.skin-b .buttons.buy:before,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .buttons.buy:before,#widget.netshoes-br.skin-b.mostpopular.skin-b .buttons.buy:before{color:#fff;margin-right:5px}#widget.netshoes-br.shoppingcart.desktop.skin-b .buttons.buy:after,#widget.netshoes-br.skin-b.viewpersonalized.skin-b .buttons.buy:after,#widget.netshoes-br.skin-b.historypersonalized.skin-b .buttons.buy:after,#widget.netshoes-br.skin-b.purchasepersonalized.skin-b .buttons.buy:after,#widget.netshoes-br.skin-b.mostpopular.skin-b .buttons.buy:after{content:\"Adicionar ao carrinho\";position:absolute;top:4px;left:16%;background:#45abe2;font-size:12px}#widget.netshoes-br.ultimatebuy .percent{display:none}#widget.netshoes-br.ultimatebuy .percent .flag-ub{display:none}#widget.netshoes-br.ultimatebuy.skin-a .item.most-bought .percent .flag-ub{display:block}#widget.netshoes-br.ultimatebuy.skin-a .percent{display:block;text-align:center;font-size:14px;min-height:37px}#widget.netshoes-br.ultimatebuy.skin-a .percent .flag-ub{margin:5px 0}#widget.netshoes-br.ultimatebuy.skin-a .percent .percent-text{color:#25ACDF}#widget.netshoes-br.featured .featured-image{background-image:url(\"../assets/netshoes-br/images/featured.png\")}#widget.netshoes-br.historypersonalized.page-cart a,#widget.netshoes-br.push.page-cart a{cursor:default}#widget.netshoes-br.historypersonalized.page-cart .item .buttons,#widget.netshoes-br.push.page-cart .item .buttons{cursor:pointer}@media screen and (max-width: 768px){#widget.netshoes-br .title{color:#333}#widget.netshoes-br .item{padding:5px}#widget.netshoes-br .item .badge-item{width:100%;margin-bottom:0}#widget.netshoes-br .item .badge-item:first-child{width:100%;margin-bottom:3px}#widget.netshoes-br .item .price-api-content .pr{min-height:39px}#widget.netshoes-br .item .price-api-content .pr a{width:100%;text-align:left}#widget.netshoes-br.shoppingcart .flags .stamp,#widget.netshoes-br.frequentlyboughttogether .flags .stamp,#widget.netshoes-br.push.page-cart .flags .stamp{width:100%;margin-bottom:5px}#widget.netshoes-br.shoppingcart .flags .stamp:first-child,#widget.netshoes-br.frequentlyboughttogether .flags .stamp:first-child,#widget.netshoes-br.push.page-cart .flags .stamp:first-child{width:100%;margin-bottom:0}#widget.netshoes-br.shoppingcart .prices,#widget.netshoes-br.frequentlyboughttogether .prices,#widget.netshoes-br.push.page-cart .prices{text-align:left;margin:0;min-height:39px}}","version":"v0.0.62"}


originKey: rb.moc.inittaz.www.:https:443
scope: rb.moc.inittaz.www.:https:443
key: chaordic_style_cache_ns-zattini/style.css
value:
  {"data":"#widget.ns-zattini{font-family:\"Source Sans Pro\";display:block;height:auto;overflow:initial;margin-bottom:20px;font-weight:normal}#widget.ns-zattini .title{font-family:\"Trebuchet MS\",Arial,sans-serif;border:none;padding:0;margin:0 0 35px 0;text-align:center}#widget.ns-zattini .title{font-family:\"Trebuchet MS\",Arial,sans-serif;border:none;padding:0;margin:0 0 35px 0;text-align:center;display:table;white-space:nowrap;width:100%}#widget.ns-zattini .title:before,#widget.ns-zattini .title:after{border-top:1px solid #d8d8d8;content:\"\";display:table-cell;position:relative;top:0.6em;width:45%}#widget.ns-zattini .title:before{right:1.5%}#widget.ns-zattini .title:after{left:1.5%}#widget.ns-zattini.desktop{text-align:center}#widget.ns-zattini.desktop .title ~ *{text-align:initial}#widget.ns-zattini .item:hover{box-shadow:none}#widget.ns-zattini .item .product-name{height:initial;font-family:inherit;font-size:1em;line-height:1em;height:2em;min-height:2em;text-transform:none;color:#333;text-align:left}#widget.ns-zattini .item .installments{font-size:16px;text-align:left;color:#333;padding:0}#widget.ns-zattini .item .flags{position:relative;height:25px;padding:5px 0;margin:0 -2px;width:auto}#widget.ns-zattini .item .flags .stamp{font-family:\"Source Sans Pro\";font-size:12px;font-style:normal;text-transform:none;color:#333;background:none !important;border:none !important;height:22px;font-weight:normal;box-sizing:border-box}#widget.ns-zattini .item .flags span{display:block;border:1px solid #c8c8c8;color:#000000;margin:0 2px}#widget.ns-zattini .item .discount{top:5px;right:0;width:42px}#widget.ns-zattini .item .discount:before{content:none}#widget.ns-zattini .item .free-shipping{display:inline-block;color:#00aa5b;font-weight:600;font-style:normal;text-transform:uppercase;font-size:.75rem}#widget.ns-zattini .item .discount-text{background-color:#ffffff;color:#c00}@media screen and (max-width: 1024px){#widget.ns-zattini.frequentlyboughttogether .item .flags .stamp{font-size:9px}}#widget.ns-zattini .content{height:100px}#widget.ns-zattini.vertical .content{height:auto}#widget.ns-zattini .prices{text-align:left;margin:5px 0 0 0}#widget.ns-zattini .prices>*{font-family:\"Source Sans Pro\";font-size:16px;color:#333;font-weight:normal}#widget.ns-zattini .prices .price{font-family:\"Source Sans Pro\";font-weight:600}#widget.ns-zattini .prices .price span{font-family:\"Source Sans Pro\";font-weight:normal}#widget.ns-zattini .prices .old-price{color:#8c8c8c}#widget.ns-zattini .prices .old-price:empty{display:none}#widget.ns-zattini .buttons.check{display:block}#widget.ns-zattini .arrow{width:35px;height:66px;top:50%;transform:translateY(-50%);-webkit-transform:translateY(-50%);-moz-transform:translateY(-50%);-ms-transform:translateY(-50%);border:none;text-indent:-99999%}#widget.ns-zattini .arrow:after{content:\"\";width:18px;height:18px;border-top:2px solid #000000;border-right:2px solid #000000;display:block;transform:rotate(45deg);-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg)}#widget.ns-zattini .arrow.prev{left:0}#widget.ns-zattini .arrow.prev:after{transform:rotate(-135deg);-webkit-transform:rotate(-135deg);-moz-transform:rotate(-135deg);-ms-transform:rotate(-135deg);margin-left:10px}#widget.ns-zattini .arrow.next{right:0}#widget.ns-zattini .arrow.vertical{-webkit-transform:rotate(135deg);-moz-transform:rotate(135deg);-ms-transform:rotate(135deg);-o-transform:rotate(135deg);transform:rotate(135deg);left:40%;right:auto}#widget.ns-zattini .arrow.vertical.prev{top:0}#widget.ns-zattini .arrow.vertical.next{bottom:0;top:auto}#widget.ns-zattini .arrow:hover{border:none}#widget.ns-zattini .controls .control-add,#widget.ns-zattini .controls .control-remove{border-radius:0}#widget.ns-zattini .controls .control-remove,#widget.ns-zattini .controls .control-add{background:#efefef;color:#5a5a5a}#widget.ns-zattini .controls .toggle-product:after{color:#5a5a5a}#widget.ns-zattini.phone .controls .control-add{background:none}#widget.ns-zattini .specs .selectWrapper{border-radius:0}#widget.ns-zattini .specs .selectWrapper select{height:45px;font-size:16px;color:#333}#widget.ns-zattini .buttons{background:#000000;border-radius:0}#widget.ns-zattini .buttons.buy-together{font-family:\"Source Sans Pro\";text-transform:uppercase;font-size:18px;font-weight:700}#widget.ns-zattini .buttons.buy-together:before{content:\"\";background:url(\"../assets/ns-zattini/images/icone-sacola.svg\");display:inline-block;width:25px;height:25px;background-position:center;background-repeat:no-repeat;margin-bottom:-5px}#widget.ns-zattini .ratings-container{display:block;overflow:hidden;padding:6px 0;clear:both}#widget.ns-zattini .ratings-stars{height:15px;width:80px;background:url(\"../assets/ns-zattini/images/0_0.png\");background-size:cover;background-repeat:no-repeat;position:relative;display:inline-block;float:left}#widget.ns-zattini .ratings-stars .ratings-stars-fill{background:url(\"../assets/ns-zattini/images/5_0.png\");position:absolute;height:100%;background-size:cover}#widget.ns-zattini .ratings-count{display:inline-block;color:#333;font-size:0.8em;float:left;padding-left:4px}#widget.ns-zattini .price-api-content{position:relative;margin-top:5px;text-align:left}#widget.ns-zattini .starting-at{margin-right:2px}#widget.ns-zattini .badges-item{position:relative;height:20px;padding:7px 0 3px 0;margin:0 -2px;width:auto}#widget.ns-zattini .badge-item{background:#FFFFFF;border:1px solid #000000;color:#000000;font-family:\"Source Sans Pro\";font-size:12px;line-height:18px;font-style:normal;width:49%;float:left;text-align:center;font-weight:normal}#widget.ns-zattini .freeDelivery-icon span{display:inline-block;color:#00aa5b;font-weight:600;font-style:normal;text-transform:uppercase;font-size:.75rem}#widget.ns-zattini .freeDelivery-container{display:inline-block;margin-left:5px}#widget.ns-zattini .full-mounted-price span{font-family:\"Source Sans Pro\";font-size:16px;color:#333;font-weight:600}#widget.ns-zattini .pr del{color:#8c8c8c;float:left;margin:1px 5px 0 0}#widget.ns-zattini .discount .text{font-size:12px;height:17px;text-align:center;font-family:\"Trebuchet MS\",Arial,sans-serif;padding:6px 0}#widget.ns-zattini .card-link{font-size:16px;text-align:left;color:#333;padding:0;clear:both;float:left}#widget.ns-zattini .ncard-hint-box{display:none}#widget.ns-zattini.push.desktop:before{display:none}#widget.ns-zattini.push.desktop .has-menu .menu-wrapper:before{content:\"\";position:absolute;border-bottom:1px solid #d8d8d8;width:100%;top:0.7em;left:0}#widget.ns-zattini.push.desktop .has-menu .menu-wrapper .menu-item{font-family:\"Trebuchet MS\",Arial,sans-serif;border:none;text-align:center;background:white;text-transform:uppercase;z-index:9;display:inline-block;position:relative;padding:0 10px;font-size:20px;color:#d8d8d8;font-weight:bold}#widget.ns-zattini.push.desktop .has-menu .menu-wrapper .menu-item.selected{color:#000}#widget.ns-zattini.push.desktop .has-menu .menu-wrapper .menu-item:after{content:\"|\";position:relative;right:-10px;color:#d8d8d8}#widget.ns-zattini.push.desktop .has-menu .menu-wrapper .menu-item:last-of-type:after{content:\"\"}#widget.ns-zattini.vertical:before{content:none}#widget.ns-zattini.vertical .carousel{height:calc(150px * 3)}#widget.ns-zattini.vertical .carousel-item{padding:0}#widget.ns-zattini.vertical .item{height:150px}#widget.ns-zattini.vertical .item .content *{width:auto !important}#widget.ns-zattini.vertical .item .prices a{display:block;text-align:left}#widget.ns-zattini.vertical .check{display:inline-block;padding:3px 30px}#widget.ns-zattini.vertical .group-thumbnail{width:130px}#widget.ns-zattini.vertical .product-name{vertical-align:top;height:2em}#widget.ns-zattini.vertical .ratings-container{display:none}#widget.ns-zattini.vertical .see-more{padding:10px;border:1px solid #333;color:#333;text-transform:uppercase;display:block;width:50%;max-width:170px;margin:10px auto;text-align:center;display:none}#widget.ns-zattini.phone .title{color:#333}#widget.ns-zattini.phone .item{padding:5px}#widget.ns-zattini.phone .item .flags .stamp{width:100%;margin-bottom:5px}#widget.ns-zattini.phone .item .prices{min-height:35px}#widget.ns-zattini.phone .item .prices a{width:100%;text-align:left}#widget.ns-zattini.phone .item .free-shipping{position:absolute;left:0;top:0;margin-top:105px}#widget.ns-zattini.phone .item .installments{display:none}#widget.ns-zattini.phone #summary .summary-text.mobile-price{font-family:\"Source Sans Pro\";font-size:22px;font-weight:600}#widget.ns-zattini.phone .item .product-name{height:4em;display:block;min-height:3em}#widget.ns-zattini.phone .content{padding-bottom:30px}#widget.ns-zattini.phone .ratings-container{position:absolute;margin:0;height:15px;margin-top:90px}#widget.ns-zattini.phone .flags .stamp:first-child ~ .stamp{display:none}#widget.ns-zattini.phone.frequentlyboughttogether .item{max-width:none}#widget.ns-zattini.phone.frequentlyboughttogether .item .product-name{min-height:3.5em}#widget.ns-zattini.phone.frequentlyboughttogether .item .wrapper{padding-left:15px}#widget.ns-zattini.phone.frequentlyboughttogether .old-price{font-size:13px}#widget.ns-zattini.phone.frequentlyboughttogether .thumbnail{position:static}#widget.ns-zattini.phone.frequentlyboughttogether .discount{top:35px}#widget.ns-zattini.phone.frequentlyboughttogether .discount .discount-text{line-height:initial}#widget.ns-zattini.phone.frequentlyboughttogether .item[data-index=\"0\"] .content:before{content:\"Este produto:\";font-weight:bold}#widget.ns-zattini.phone.frequentlyboughttogether .item[data-index=\"0\"] .discount{top:65px}#widget.ns-zattini.phone.frequentlyboughttogether .item[data-index=\"0\"] .group-thumbnail{margin-bottom:30px}#widget.ns-zattini.phone.frequentlyboughttogether .content{padding-bottom:25px;height:auto}#widget.ns-zattini.phone.frequentlyboughttogether .ratings-container{left:33%;margin-top:100px}#widget.ns-zattini.phone.frequentlyboughttogether .controls .control-remove,#widget.ns-zattini.phone.frequentlyboughttogether .controls .control-add{background:#000000;color:#ffffff}#widget.ns-zattini.phone.frequentlyboughttogether .controls .toggle-product:after{color:#000000}#widget.ns-zattini.phone.shoppingcart .prices .free-shipping{position:relative;left:0;top:0;margin-top:0}#widget.ns-zattini.phone .badges{height:20px;overflow:hidden}#widget.ns-zattini.phone .badges .badges-item{padding:7px 0 10px}#widget.ns-zattini.phone .badges .badge-item{width:98%}#widget.ns-zattini.phone .badges.discount{height:30px}#widget.ns-zattini.phone .card-link{display:none}#widget.ns-zattini.phone .pr a{display:inline-flex;flex-direction:column}#widget.ns-zattini.phone .pr a .full-mounted-price{order:1}#widget.ns-zattini.phone .pr a del{order:0}#widget.ns-zattini.phone .freeDelivery-container{margin:0;position:absolute;left:0;top:0;margin-top:60px}","version":"v1.1.0"}


originKey: rb.moc.inittaz.www.:https:443
scope: rb.moc.inittaz.www.:https:443
key: chaordic_script_cache_https://static.chaordicsystems.com/static/ns-zattini/current.js
value:
  {"data":"chaordic=chaordic||{},chaordic.modules=chaordic.modules||[],function(){var e=function(e,t,n){var r=this;this.url=e,this.params=n,this.options=t,this.callback=[],this.errback=[];var i=function(e){for(var t=0;t<r.callback.length;t++)r.callback[t].call(r,e)},s=function(e){for(var t=0;t<r.errback.length;t++)r.errback[t].call(r,e)};this.get(e,n,i,s)};e.prototype.get=function(e,t,n,r){chaordic.lib.jQuery.ajax({url:e,data:t,async:!0,traditional:!0,timeout:t.timeout||null}).done(function(e){e&&e.ok?n.call(this,e):r.call(this,e)}).fail(function(e){r.call(this,e)})},e.prototype.success=function(e){return typeof e==\"function\"&&this.callback.push(e),this},e.prototype.error=function(e){return typeof e==\"function\"&&this.errback.push(e),this};var t=function(){};t.prototype.getEventLink=function(e,t){return!t||!t.customBusiness||typeof t.customBusiness.ads!=\"object\"?\"\":e===\"page-view\"?t.customBusiness.ads.pageViewLink:e===\"view\"?t.customBusiness.ads.view:e===\"click\"?t.customBusiness.ads.clickLink:\"\"},t.prototype.sendEvents=function(t,n){var r,i,s=[],o={placement:chaordic.meta.page.name,chaordicShowcaseName:n.feature.toLowerCase(),chaordicShowcaseId:n.widgetId},u=n.adsProducts||[];for(r=0;r<u.length;r++)i=this.getEventLink(t,u[r]),i&&s.push(new e(i.replace(/\\/$/,\"\"),{method:\"get\",plainGet:!0},o));return s},chaordic.AdsManager=t}(),function(){var e={forEach:function(e,t){for(var n=0;n<e.length;n++)t(e[n],n,e)},filter:function(t,n){var r=[];return e.forEach(t,function(e){n(e)&&r.push(e)}),r},map:function(t,n){var r=[];return e.forEach(t,function(e){r.push(n(e))}),r},reduceRight:function(e,t,n){var r=n;for(var i=e.length-1;i>=0;i--)r=t(r,e[i],i,e);return r},reduce:function(e,t,n){var r=n;for(var i=0;i<e.length;i++)r=t(r,e[i],i,e);return r}};chaordic.Arrays=e}(),function(){var e,t,n,r=chaordic.lib,i=function(){return this}(),s=function(){var t=e.readCookie();chaordic.Config.LOG_LEVEL=t.logLevel||\"NONE\"},o=function(e){e()},u=function(){var t,n=function(){var e={\"fugly.js\":'(function(){var e=typeof exports!=\"undefined\",t={startCode:\"<$\",endCode:\"$>\",startExpr:\"<$=\"},n={code:{},text:{},expr:{}},r=function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i=function(e){var r={type:n.text,content:\"\"},i=[],s,o;do o=null,r.type===n.text?(s=e.indexOf(t.startCode),s>-1&&(o=e.indexOf(t.startExpr)===s?n.expr:n.code)):(s=e.indexOf(t.endCode),s>-1&&(o=n.text)),o?(r.content=e.substr(0,s),e=e.substr(s+(o===n.expr?3:2))):(r.content=e,e=\"\"),r.content.length&&i.push(r),r={type:o,content:\"\"};while(e);return i},s=function(e){return\"write(\"+e+\");\"},o=function(e){return s(u(e))},u=function(){var e=/[\\\\\\\\\\\\\"\\\\x00-\\\\x1f\\\\x7f-\\\\x9f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]/g,t={\"\\\\b\":\"\\\\\\\\b\",\"\t\":\"\\\\\\\\t\",\"\\\\n\":\"\\\\\\\\n\",\"\\\\f\":\"\\\\\\\\f\",\"\\\\r\":\"\\\\\\\\r\",\\'\"\\':\\'\\\\\\\\\"\\',\"\\\\\\\\\":\"\\\\\\\\\\\\\\\\\"};return function(n){return e.lastIndex=0,e.test(n)?\\'\"\\'+n.replace(e,function(e){var n=t[e];return typeof n==\"string\"?n:\"\\\\\\\\u\"+(\"0000\"+e.charCodeAt(0).toString(16)).slice(-4)})+\\'\"\\':\\'\"\\'+n+\\'\"\\'}}(),a=function(e){switch(e.type){case n.code:return e.content;case n.expr:return s(e.content);case n.text:return o(e.content)}},f=function(e){var t=i(e),n=[],s;for(var o=0,u=t.length;o<u;o++)n.push(a(t[o]));return s=new Function(\"view\",\"write\",n.join(\"\")),function(){var e={};r(e,this);var t=[];return s.call(null,e,function(e){t.push(e)}),t.join(\"\")}},l=function(t){var n={},i;this.context=function(e,t){arguments.length==1?r(n,e):n[e]=t,typeof n.window==\"undefined\"&&(n.window=window.top)},this.render=function(e){return arguments.length===1?i.call(e):i.call(n)},e&&(this.call=this.render),i=f(t)};e?(exports.Template=l,exports.compile=function(e,t){var n=new l(e);return n.context(t),n}):function(){return this}().fugly={Template:l}})()',\"json2.js\":'var JSON;JSON||(JSON={}),function(){\"use strict\";function f(e){return e<10?\"0\"+e:e}function quote(e){return escapable.lastIndex=0,escapable.test(e)?\\'\"\\'+e.replace(escapable,function(e){var t=meta[e];return typeof t==\"string\"?t:\"\\\\\\\\u\"+(\"0000\"+e.charCodeAt(0).toString(16)).slice(-4)})+\\'\"\\':\\'\"\\'+e+\\'\"\\'}function str(e,t){var n,r,i,s,o=gap,u,a=t[e];a&&typeof a==\"object\"&&typeof a.toJSON==\"function\"&&(a=a.toJSON(e)),typeof rep==\"function\"&&(a=rep.call(t,e,a));switch(typeof a){case\"string\":return quote(a);case\"number\":return isFinite(a)?String(a):\"null\";case\"boolean\":case\"null\":return String(a);case\"object\":if(!a)return\"null\";gap+=indent,u=[];if(Object.prototype.toString.apply(a)===\"[object Array]\"){s=a.length;for(n=0;n<s;n+=1)u[n]=str(n,a)||\"null\";return i=u.length===0?\"[]\":gap?\"[\\\\n\"+gap+u.join(\",\\\\n\"+gap)+\"\\\\n\"+o+\"]\":\"[\"+u.join(\",\")+\"]\",gap=o,i}if(rep&&typeof rep==\"object\"){s=rep.length;for(n=0;n<s;n+=1)r=rep[n],typeof r==\"string\"&&(i=str(r,a),i&&u.push(quote(r)+(gap?\": \":\":\")+i))}else for(r in a)Object.hasOwnProperty.call(a,r)&&(i=str(r,a),i&&u.push(quote(r)+(gap?\": \":\":\")+i));return i=u.length===0?\"{}\":gap?\"{\\\\n\"+gap+u.join(\",\\\\n\"+gap)+\"\\\\n\"+o+\"}\":\"{\"+u.join(\",\")+\"}\",gap=o,i}}typeof Date.prototype.toJSON!=\"function\"&&(Date.prototype.toJSON=function(e){return isFinite(this.valueOf())?this.getUTCFullYear()+\"-\"+f(this.getUTCMonth()+1)+\"-\"+f(this.getUTCDate())+\"T\"+f(this.getUTCHours())+\":\"+f(this.getUTCMinutes())+\":\"+f(this.getUTCSeconds())+\"Z\":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(e){return this.valueOf()});var cx=/[\\\\u0000\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]/g,escapable=/[\\\\\\\\\\\\\"\\\\x00-\\\\x1f\\\\x7f-\\\\x9f\\\\u00ad\\\\u0600-\\\\u0604\\\\u070f\\\\u17b4\\\\u17b5\\\\u200c-\\\\u200f\\\\u2028-\\\\u202f\\\\u2060-\\\\u206f\\\\ufeff\\\\ufff0-\\\\uffff]/g,gap,indent,meta={\"\\\\b\":\"\\\\\\\\b\",\"\t\":\"\\\\\\\\t\",\"\\\\n\":\"\\\\\\\\n\",\"\\\\f\":\"\\\\\\\\f\",\"\\\\r\":\"\\\\\\\\r\",\\'\"\\':\\'\\\\\\\\\"\\',\"\\\\\\\\\":\"\\\\\\\\\\\\\\\\\"},rep;typeof JSON.stringify!=\"function\"&&(JSON.stringify=function(e,t,n){var r;gap=\"\",indent=\"\";if(typeof n==\"number\")for(r=0;r<n;r+=1)indent+=\" \";else typeof n==\"string\"&&(indent=n);rep=t;if(!t||typeof t==\"function\"||typeof t==\"object\"&&typeof t.length==\"number\")return str(\"\",{\"\":e});throw new Error(\"JSON.stringify\")}),typeof JSON.parse!=\"function\"&&(JSON.parse=function(text,reviver){function walk(e,t){var n,r,i=e[t];if(i&&typeof i==\"object\")for(n in i)Object.hasOwnProperty.call(i,n)&&(r=walk(i,n),r!==undefined?i[n]=r:delete i[n]);return reviver.call(e,t,i)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return\"\\\\\\\\u\"+(\"0000\"+e.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\\\\],:{}\\\\s]*$/.test(text.replace(/\\\\\\\\(?:[\"\\\\\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,\"@\").replace(/\"[^\"\\\\\\\\\\\\n\\\\r]*\"|true|false|null|-?\\\\d+(?:\\\\.\\\\d*)?(?:[eE][+\\\\-]?\\\\d+)?/g,\"]\").replace(/(?:^|:|,)(?:\\\\s*\\\\[)+/g,\"\")))return j=eval(\"(\"+text+\")\"),typeof reviver==\"function\"?walk({\"\":j},\"\"):j;throw new SyntaxError(\"JSON.parse\")})}()',\"jquery-1.7.1.js\":'(function(e,t){function u(e){var t=o[e]={},n,r;e=e.split(/\\\\s+/);for(n=0,r=e.length;n<r;n++)t[e[n]]=!0;return t}function c(e,n,r){if(r===t&&e.nodeType===1){var i=\"data-\"+n.replace(l,\"-$1\").toLowerCase();r=e.getAttribute(i);if(typeof r==\"string\"){try{r=r===\"true\"?!0:r===\"false\"?!1:r===\"null\"?null:s.isNumeric(r)?parseFloat(r):f.test(r)?s.parseJSON(r):r}catch(o){}s.data(e,n,r)}else r=t}return r}function h(e){for(var t in e){if(t===\"data\"&&s.isEmptyObject(e[t]))continue;if(t!==\"toJSON\")return!1}return!0}function p(e,t,n){var r=t+\"defer\",i=t+\"queue\",o=t+\"mark\",u=s._data(e,r);u&&(n===\"queue\"||!s._data(e,i))&&(n===\"mark\"||!s._data(e,o))&&setTimeout(function(){!s._data(e,i)&&!s._data(e,o)&&(s.removeData(e,r,!0),u.fire())},0)}function H(){return!1}function B(){return!0}function W(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function X(e,t,n){t=t||0;if(s.isFunction(t))return s.grep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return s.grep(e,function(e,r){return e===t===n});if(typeof t==\"string\"){var r=s.grep(e,function(e){return e.nodeType===1});if(q.test(t))return s.filter(t,r,!n);t=s.filter(t,r)}return s.grep(e,function(e,r){return s.inArray(e,t)>=0===n})}function V(e){var t=$.split(\"|\"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function at(e,t){return s.nodeName(e,\"table\")?e.getElementsByTagName(\"tbody\")[0]||e.appendChild(e.ownerDocument.createElement(\"tbody\")):e}function ft(e,t){if(t.nodeType!==1||!s.hasData(e))return;var n,r,i,o=s._data(e),u=s._data(t,o),a=o.events;if(a){delete u.handle,u.events={};for(n in a)for(r=0,i=a[n].length;r<i;r++)s.event.add(t,n+(a[n][r].namespace?\".\":\"\")+a[n][r].namespace,a[n][r],a[n][r].data)}u.data&&(u.data=s.extend({},u.data))}function lt(e,t){var n;if(t.nodeType!==1)return;t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),n=t.nodeName.toLowerCase();if(n===\"object\")t.outerHTML=e.outerHTML;else if(n!==\"input\"||e.type!==\"checkbox\"&&e.type!==\"radio\"){if(n===\"option\")t.selected=e.defaultSelected;else if(n===\"input\"||n===\"textarea\")t.defaultValue=e.defaultValue}else e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value);t.removeAttribute(s.expando)}function ct(e){return typeof e.getElementsByTagName!=\"undefined\"?e.getElementsByTagName(\"*\"):typeof e.querySelectorAll!=\"undefined\"?e.querySelectorAll(\"*\"):[]}function ht(e){if(e.type===\"checkbox\"||e.type===\"radio\")e.defaultChecked=e.checked}function pt(e){var t=(e.nodeName||\"\").toLowerCase();t===\"input\"?ht(e):t!==\"script\"&&typeof e.getElementsByTagName!=\"undefined\"&&s.grep(e.getElementsByTagName(\"input\"),ht)}function dt(e){var t=n.createElement(\"div\");return ut.appendChild(t),t.innerHTML=e.outerHTML,t.firstChild}function vt(e,t){t.src?s.ajax({url:t.src,async:!1,dataType:\"script\"}):s.globalEval((t.text||t.textContent||t.innerHTML||\"\").replace(st,\"/*$0*/\")),t.parentNode&&t.parentNode.removeChild(t)}function Lt(e,t,n){var r=t===\"width\"?e.offsetWidth:e.offsetHeight,i=t===\"width\"?xt:Tt,o=0,u=i.length;if(r>0){if(n!==\"border\")for(;o<u;o++)n||(r-=parseFloat(s.css(e,\"padding\"+i[o]))||0),n===\"margin\"?r+=parseFloat(s.css(e,n+i[o]))||0:r-=parseFloat(s.css(e,\"border\"+i[o]+\"Width\"))||0;return r+\"px\"}r=Nt(e,t,t);if(r<0||r==null)r=e.style[t]||0;r=parseFloat(r)||0;if(n)for(;o<u;o++)r+=parseFloat(s.css(e,\"padding\"+i[o]))||0,n!==\"padding\"&&(r+=parseFloat(s.css(e,\"border\"+i[o]+\"Width\"))||0),n===\"margin\"&&(r+=parseFloat(s.css(e,n+i[o]))||0);return r+\"px\"}function Gt(e){return function(t,n){typeof t!=\"string\"&&(n=t,t=\"*\");if(s.isFunction(n)){var r=t.toLowerCase().split(Rt),i=0,o=r.length,u,a,f;for(;i<o;i++)u=r[i],f=/^\\\\+/.test(u),f&&(u=u.substr(1)||\"*\"),a=e[u]=e[u]||[],a[f?\"unshift\":\"push\"](n)}}}function Yt(e,n,r,i,s,o){s=s||n.dataTypes[0],o=o||{},o[s]=!0;var u=e[s],a=0,f=u?u.length:0,l=e===Xt,c;for(;a<f&&(l||!c);a++)c=u[a](n,r,i),typeof c==\"string\"&&(!l||o[c]?c=t:(n.dataTypes.unshift(c),c=Yt(e,n,r,i,c,o)));return(l||!c)&&!o[\"*\"]&&(c=Yt(e,n,r,i,\"*\",o)),c}function Zt(e,n){var r,i,o=s.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((o[r]?e:i||(i={}))[r]=n[r]);i&&s.extend(!0,e,i)}function en(e,t,n,r){if(s.isArray(t))s.each(t,function(t,i){n||Ot.test(e)?r(e,i):en(e+\"[\"+(typeof i==\"object\"||s.isArray(i)?t:\"\")+\"]\",i,n,r)});else if(!n&&t!=null&&typeof t==\"object\")for(var i in t)en(e+\"[\"+i+\"]\",t[i],n,r);else r(e,t)}function tn(e,n,r){var i=e.contents,s=e.dataTypes,o=e.responseFields,u,a,f,l;for(a in o)a in r&&(n[o[a]]=r[a]);while(s[0]===\"*\")s.shift(),u===t&&(u=e.mimeType||n.getResponseHeader(\"content-type\"));if(u)for(a in i)if(i[a]&&i[a].test(u)){s.unshift(a);break}if(s[0]in r)f=s[0];else{for(a in r){if(!s[0]||e.converters[a+\" \"+s[0]]){f=a;break}l||(l=a)}f=f||l}if(f)return f!==s[0]&&s.unshift(f),r[f]}function nn(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var r=e.dataTypes,i={},o,u,a=r.length,f,l=r[0],c,h,p,d,v;for(o=1;o<a;o++){if(o===1)for(u in e.converters)typeof u==\"string\"&&(i[u.toLowerCase()]=e.converters[u]);c=l,l=r[o];if(l===\"*\")l=c;else if(c!==\"*\"&&c!==l){h=c+\" \"+l,p=i[h]||i[\"* \"+l];if(!p){v=t;for(d in i){f=d.split(\" \");if(f[0]===c||f[0]===\"*\"){v=i[f[1]+\" \"+l];if(v){d=i[d],d===!0?p=v:v===!0&&(p=d);break}}}}!p&&!v&&s.error(\"No conversion from \"+h.replace(\" \",\" to \")),p!==!0&&(n=p?p(n):v(d(n)))}}return n}function fn(){try{return new e.XMLHttpRequest}catch(t){}}function ln(){try{return new e.ActiveXObject(\"Microsoft.XMLHTTP\")}catch(t){}}function bn(){return setTimeout(wn,0),yn=s.now()}function wn(){yn=t}function En(e,t){var n={};return s.each(gn.concat.apply([],gn.slice(0,t)),function(){n[this]=e}),n}function Sn(e){if(!cn[e]){var t=n.body,r=s(\"<\"+e+\">\").appendTo(t),i=r.css(\"display\");r.remove();if(i===\"none\"||i===\"\"){hn||(hn=n.createElement(\"iframe\"),hn.frameBorder=hn.width=hn.height=0),t.appendChild(hn);if(!pn||!hn.createElement)pn=(hn.contentWindow||hn.contentDocument).document,pn.write((n.compatMode===\"CSS1Compat\"?\"<!doctype html>\":\"\")+\"<html><body>\"),pn.close();r=pn.createElement(e),pn.body.appendChild(r),i=s.css(r,\"display\"),t.removeChild(hn)}cn[e]=i}return cn[e]}function Nn(e){return s.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}var n=e.document,r=e.navigator,i=e.location,s=function(){function H(){if(i.isReady)return;try{n.documentElement.doScroll(\"left\")}catch(e){setTimeout(H,1);return}i.ready()}var i=function(e,t){return new i.fn.init(e,t,u)},s=e.jQuery,o=e.$,u,a=/^(?:[^#<]*(<[\\\\w\\\\W]+>)[^>]*$|#([\\\\w\\\\-]*)$)/,f=/\\\\S/,l=/^\\\\s+/,c=/\\\\s+$/,h=/^<(\\\\w+)\\\\s*\\\\/?>(?:<\\\\/\\\\1>)?$/,p=/^[\\\\],:{}\\\\s]*$/,d=/\\\\\\\\(?:[\"\\\\\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4})/g,v=/\"[^\"\\\\\\\\\\\\n\\\\r]*\"|true|false|null|-?\\\\d+(?:\\\\.\\\\d*)?(?:[eE][+\\\\-]?\\\\d+)?/g,m=/(?:^|:|,)(?:\\\\s*\\\\[)+/g,g=/(webkit)[ \\\\/]([\\\\w.]+)/,y=/(opera)(?:.*version)?[ \\\\/]([\\\\w.]+)/,b=/(msie) ([\\\\w.]+)/,w=/(mozilla)(?:.*? rv:([\\\\w.]+))?/,E=/-([a-z]|[0-9])/ig,S=/^-ms-/,x=function(e,t){return(t+\"\").toUpperCase()},T=r.userAgent,N,C,k,L=Object.prototype.toString,A=Object.prototype.hasOwnProperty,O=Array.prototype.push,M=Array.prototype.slice,_=String.prototype.trim,D=Array.prototype.indexOf,P={};return i.fn=i.prototype={constructor:i,init:function(e,r,s){var o,u,f,l;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(e===\"body\"&&!r&&n.body)return this.context=n,this[0]=n.body,this.selector=e,this.length=1,this;if(typeof e==\"string\"){e.charAt(0)===\"<\"&&e.charAt(e.length-1)===\">\"&&e.length>=3?o=[null,e,null]:o=a.exec(e);if(o&&(o[1]||!r)){if(o[1])return r=r instanceof i?r[0]:r,l=r?r.ownerDocument||r:n,f=h.exec(e),f?i.isPlainObject(r)?(e=[n.createElement(f[1])],i.fn.attr.call(e,r,!0)):e=[l.createElement(f[1])]:(f=i.buildFragment([o[1]],[l]),e=(f.cacheable?i.clone(f.fragment):f.fragment).childNodes),i.merge(this,e);u=n.getElementById(o[2]);if(u&&u.parentNode){if(u.id!==o[2])return s.find(e);this.length=1,this[0]=u}return this.context=n,this.selector=e,this}return!r||r.jquery?(r||s).find(e):this.constructor(r).find(e)}return i.isFunction(e)?s.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),i.makeArray(e,this))},selector:\"\",jquery:\"1.7.1\",length:0,size:function(){return this.length},toArray:function(){return M.call(this,0)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=this.constructor();return i.isArray(e)?O.apply(r,e):i.merge(r,e),r.prevObject=this,r.context=this.context,t===\"find\"?r.selector=this.selector+(this.selector?\" \":\"\")+n:t&&(r.selector=this.selector+\".\"+t+\"(\"+n+\")\"),r},each:function(e,t){return i.each(this,e,t)},ready:function(e){return i.bindReady(),C.add(e),this},eq:function(e){return e=+e,e===-1?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(M.apply(this,arguments),\"slice\",M.call(arguments).join(\",\"))},map:function(e){return this.pushStack(i.map(this,function(t,n){return e.call(t,n,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:O,sort:[].sort,splice:[].splice},i.fn.init.prototype=i.fn,i.extend=i.fn.extend=function(){var e,n,r,s,o,u,a=arguments[0]||{},f=1,l=arguments.length,c=!1;typeof a==\"boolean\"&&(c=a,a=arguments[1]||{},f=2),typeof a!=\"object\"&&!i.isFunction(a)&&(a={}),l===f&&(a=this,--f);for(;f<l;f++)if((e=arguments[f])!=null)for(n in e){r=a[n],s=e[n];if(a===s)continue;c&&s&&(i.isPlainObject(s)||(o=i.isArray(s)))?(o?(o=!1,u=r&&i.isArray(r)?r:[]):u=r&&i.isPlainObject(r)?r:{},a[n]=i.extend(c,u,s)):s!==t&&(a[n]=s)}return a},i.extend({noConflict:function(t){return e.$===i&&(e.$=o),t&&e.jQuery===i&&(e.jQuery=s),i},isReady:!1,readyWait:1,holdReady:function(e){e?i.readyWait++:i.ready(!0)},ready:function(e){if(e===!0&&!--i.readyWait||e!==!0&&!i.isReady){if(!n.body)return setTimeout(i.ready,1);i.isReady=!0;if(e!==!0&&--i.readyWait>0)return;C.fireWith(n,[i]),i.fn.trigger&&i(n).trigger(\"ready\").off(\"ready\")}},bindReady:function(){if(C)return;C=i.Callbacks(\"once memory\");if(n.readyState===\"complete\")return setTimeout(i.ready,1);if(n.addEventListener)n.addEventListener(\"DOMContentLoaded\",k,!1),e.addEventListener(\"load\",i.ready,!1);else if(n.attachEvent){n.attachEvent(\"onreadystatechange\",k),e.attachEvent(\"onload\",i.ready);var t=!1;try{t=e.frameElement==null}catch(r){}n.documentElement.doScroll&&t&&H()}},isFunction:function(e){return i.type(e)===\"function\"},isArray:Array.isArray||function(e){return i.type(e)===\"array\"},isWindow:function(e){return e&&typeof e==\"object\"&&\"setInterval\"in e},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):P[L.call(e)]||\"object\"},isPlainObject:function(e){if(!e||i.type(e)!==\"object\"||e.nodeType||i.isWindow(e))return!1;try{if(e.constructor&&!A.call(e,\"constructor\")&&!A.call(e.constructor.prototype,\"isPrototypeOf\"))return!1}catch(n){return!1}var r;for(r in e);return r===t||A.call(e,r)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw new Error(e)},parseJSON:function(t){if(typeof t!=\"string\"||!t)return null;t=i.trim(t);if(e.JSON&&e.JSON.parse)return e.JSON.parse(t);if(p.test(t.replace(d,\"@\").replace(v,\"]\").replace(m,\"\")))return(new Function(\"return \"+t))();i.error(\"Invalid JSON: \"+t)},parseXML:function(n){var r,s;try{e.DOMParser?(s=new DOMParser,r=s.parseFromString(n,\"text/xml\")):(r=new ActiveXObject(\"Microsoft.XMLDOM\"),r.async=\"false\",r.loadXML(n))}catch(o){r=t}return(!r||!r.documentElement||r.getElementsByTagName(\"parsererror\").length)&&i.error(\"Invalid XML: \"+n),r},noop:function(){},globalEval:function(t){t&&f.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(S,\"ms-\").replace(E,x)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,r){var s,o=0,u=e.length,a=u===t||i.isFunction(e);if(r){if(a){for(s in e)if(n.apply(e[s],r)===!1)break}else for(;o<u;)if(n.apply(e[o++],r)===!1)break}else if(a){for(s in e)if(n.call(e[s],s,e[s])===!1)break}else for(;o<u;)if(n.call(e[o],o,e[o++])===!1)break;return e},trim:_?function(e){return e==null?\"\":_.call(e)}:function(e){return e==null?\"\":e.toString().replace(l,\"\").replace(c,\"\")},makeArray:function(e,t){var n=t||[];if(e!=null){var r=i.type(e);e.length==null||r===\"string\"||r===\"function\"||r===\"regexp\"||i.isWindow(e)?O.call(n,e):i.merge(n,e)}return n},inArray:function(e,t,n){var r;if(t){if(D)return D.call(t,e,n);r=t.length,n=n?n<0?Math.max(0,r+n):n:0;for(;n<r;n++)if(n in t&&t[n]===e)return n}return-1},merge:function(e,n){var r=e.length,i=0;if(typeof n.length==\"number\")for(var s=n.length;i<s;i++)e[r++]=n[i];else while(n[i]!==t)e[r++]=n[i++];return e.length=r,e},grep:function(e,t,n){var r=[],i;n=!!n;for(var s=0,o=e.length;s<o;s++)i=!!t(e[s],s),n!==i&&r.push(e[s]);return r},map:function(e,n,r){var s,o,u=[],a=0,f=e.length,l=e instanceof i||f!==t&&typeof f==\"number\"&&(f>0&&e[0]&&e[f-1]||f===0||i.isArray(e));if(l)for(;a<f;a++)s=n(e[a],a,r),s!=null&&(u[u.length]=s);else for(o in e)s=n(e[o],o,r),s!=null&&(u[u.length]=s);return u.concat.apply([],u)},guid:1,proxy:function(e,n){if(typeof n==\"string\"){var r=e[n];n=e,e=r}if(!i.isFunction(e))return t;var s=M.call(arguments,2),o=function(){return e.apply(n,s.concat(M.call(arguments)))};return o.guid=e.guid=e.guid||o.guid||i.guid++,o},access:function(e,n,r,s,o,u){var a=e.length;if(typeof n==\"object\"){for(var f in n)i.access(e,f,n[f],s,o,r);return e}if(r!==t){s=!u&&s&&i.isFunction(r);for(var l=0;l<a;l++)o(e[l],n,s?r.call(e[l],l,o(e[l],n)):r,u);return e}return a?o(e[0],n):t},now:function(){return(new Date).getTime()},uaMatch:function(e){e=e.toLowerCase();var t=g.exec(e)||y.exec(e)||b.exec(e)||e.indexOf(\"compatible\")<0&&w.exec(e)||[];return{browser:t[1]||\"\",version:t[2]||\"0\"}},sub:function(){function e(t,n){return new e.fn.init(t,n)}i.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(r,s){return s&&s instanceof i&&!(s instanceof e)&&(s=e(s)),i.fn.init.call(this,r,s,t)},e.fn.init.prototype=e.fn;var t=e(n);return e},browser:{}}),i.each(\"Boolean Number String Function Array Date RegExp Object\".split(\" \"),function(e,t){P[\"[object \"+t+\"]\"]=t.toLowerCase()}),N=i.uaMatch(T),N.browser&&(i.browser[N.browser]=!0,i.browser.version=N.version),i.browser.webkit&&(i.browser.safari=!0),f.test(\" \")&&(l=/^[\\\\s\\\\xA0]+/,c=/[\\\\s\\\\xA0]+$/),u=i(n),n.addEventListener?k=function(){n.removeEventListener(\"DOMContentLoaded\",k,!1),i.ready()}:n.attachEvent&&(k=function(){n.readyState===\"complete\"&&(n.detachEvent(\"onreadystatechange\",k),i.ready())}),i}(),o={};s.Callbacks=function(e){e=e?o[e]||u(e):{};var n=[],r=[],i,a,f,l,c,h=function(t){var r,i,o,u,a;for(r=0,i=t.length;r<i;r++)o=t[r],u=s.type(o),u===\"array\"?h(o):u===\"function\"&&(!e.unique||!d.has(o))&&n.push(o)},p=function(t,s){s=s||[],i=!e.memory||[t,s],a=!0,c=f||0,f=0,l=n.length;for(;n&&c<l;c++)if(n[c].apply(t,s)===!1&&e.stopOnFalse){i=!0;break}a=!1,n&&(e.once?i===!0?d.disable():n=[]:r&&r.length&&(i=r.shift(),d.fireWith(i[0],i[1])))},d={add:function(){if(n){var e=n.length;h(arguments),a?l=n.length:i&&i!==!0&&(f=e,p(i[0],i[1]))}return this},remove:function(){if(n){var t=arguments,r=0,i=t.length;for(;r<i;r++)for(var s=0;s<n.length;s++)if(t[r]===n[s]){a&&s<=l&&(l--,s<=c&&c--),n.splice(s--,1);if(e.unique)break}}return this},has:function(e){if(n){var t=0,r=n.length;for(;t<r;t++)if(e===n[t])return!0}return!1},empty:function(){return n=[],this},disable:function(){return n=r=i=t,this},disabled:function(){return!n},lock:function(){return r=t,(!i||i===!0)&&d.disable(),this},locked:function(){return!r},fireWith:function(t,n){return r&&(a?e.once||r.push([t,n]):(!e.once||!i)&&p(t,n)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!i}};return d};var a=[].slice;s.extend({Deferred:function(e){var t=s.Callbacks(\"once memory\"),n=s.Callbacks(\"once memory\"),r=s.Callbacks(\"memory\"),i=\"pending\",o={resolve:t,reject:n,notify:r},u={done:t.add,fail:n.add,progress:r.add,state:function(){return i},isResolved:t.fired,isRejected:n.fired,then:function(e,t,n){return a.done(e).fail(t).progress(n),this},always:function(){return a.done.apply(a,arguments).fail.apply(a,arguments),this},pipe:function(e,t,n){return s.Deferred(function(r){s.each({done:[e,\"resolve\"],fail:[t,\"reject\"],progress:[n,\"notify\"]},function(e,t){var n=t[0],i=t[1],o;s.isFunction(n)?a[e](function(){o=n.apply(this,arguments),o&&s.isFunction(o.promise)?o.promise().then(r.resolve,r.reject,r.notify):r[i+\"With\"](this===a?r:this,[o])}):a[e](r[i])})}).promise()},promise:function(e){if(e==null)e=u;else for(var t in u)e[t]=u[t];return e}},a=u.promise({}),f;for(f in o)a[f]=o[f].fire,a[f+\"With\"]=o[f].fireWith;return a.done(function(){i=\"resolved\"},n.disable,r.lock).fail(function(){i=\"rejected\"},t.disable,r.lock),e&&e.call(a,a),a},when:function(e){function c(e){return function(n){t[e]=arguments.length>1?a.call(arguments,0):n,--o||f.resolveWith(f,t)}}function h(e){return function(t){i[e]=arguments.length>1?a.call(arguments,0):t,f.notifyWith(l,i)}}var t=a.call(arguments,0),n=0,r=t.length,i=new Array(r),o=r,u=r,f=r<=1&&e&&s.isFunction(e.promise)?e:s.Deferred(),l=f.promise();if(r>1){for(;n<r;n++)t[n]&&t[n].promise&&s.isFunction(t[n].promise)?t[n].promise().then(c(n),f.reject,h(n)):--o;o||f.resolveWith(f,t)}else f!==e&&f.resolveWith(f,r?[e]:[]);return l}}),s.support=function(){var t,r,i,o,u,a,f,l,c,h,p,d,v,m=n.createElement(\"div\"),g=n.documentElement;m.setAttribute(\"className\",\"t\"),m.innerHTML=\"   <link/><table></table><a href=\\'/a\\' style=\\'top:1px;float:left;opacity:.55;\\'>a</a><input type=\\'checkbox\\'/>\",r=m.getElementsByTagName(\"*\"),i=m.getElementsByTagName(\"a\")[0];if(!r||!r.length||!i)return{};o=n.createElement(\"select\"),u=o.appendChild(n.createElement(\"option\")),a=m.getElementsByTagName(\"input\")[0],t={leadingWhitespace:m.firstChild.nodeType===3,tbody:!m.getElementsByTagName(\"tbody\").length,htmlSerialize:!!m.getElementsByTagName(\"link\").length,style:/top/.test(i.getAttribute(\"style\")),hrefNormalized:i.getAttribute(\"href\")===\"/a\",opacity:/^0.55/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:a.value===\"on\",optSelected:u.selected,getSetAttribute:m.className!==\"t\",enctype:!!n.createElement(\"form\").enctype,html5Clone:n.createElement(\"nav\").cloneNode(!0).outerHTML!==\"<:nav></:nav>\",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,o.disabled=!0,t.optDisabled=!u.disabled;try{delete m.test}catch(y){t.deleteExpando=!1}!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent(\"onclick\",function(){t.noCloneEvent=!1}),m.cloneNode(!0).fireEvent(\"onclick\")),a=n.createElement(\"input\"),a.value=\"t\",a.setAttribute(\"type\",\"radio\"),t.radioValue=a.value===\"t\",a.setAttribute(\"checked\",\"checked\"),m.appendChild(a),l=n.createDocumentFragment(),l.appendChild(m.lastChild),t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=a.checked,l.removeChild(a),l.appendChild(m),m.innerHTML=\"\",e.getComputedStyle&&(f=n.createElement(\"div\"),f.style.width=\"0\",f.style.marginRight=\"0\",m.style.width=\"2px\",m.appendChild(f),t.reliableMarginRight=(parseInt((e.getComputedStyle(f,null)||{marginRight:0}).marginRight,10)||0)===0);if(m.attachEvent)for(d in{submit:1,change:1,focusin:1})p=\"on\"+d,v=p in m,v||(m.setAttribute(p,\"return;\"),v=typeof m[p]==\"function\"),t[d+\"Bubbles\"]=v;return l.removeChild(m),l=o=u=f=m=a=null,s(function(){var e,r,i,o,u,a,f,l,h,p,d,g=n.getElementsByTagName(\"body\")[0];if(!g)return;f=1,l=\"position:absolute;top:0;left:0;width:1px;height:1px;margin:0;\",h=\"visibility:hidden;border:0;\",p=\"style=\\'\"+l+\"border:5px solid #000;padding:0;\\'\",d=\"<div \"+p+\"><div></div></div>\"+\"<table \"+p+\" cellpadding=\\'0\\' cellspacing=\\'0\\'>\"+\"<tr><td></td></tr></table>\",e=n.createElement(\"div\"),e.style.cssText=h+\"width:0;height:0;position:static;top:0;margin-top:\"+f+\"px\",g.insertBefore(e,g.firstChild),m=n.createElement(\"div\"),e.appendChild(m),m.innerHTML=\"<table><tr><td style=\\'padding:0;border:0;display:none\\'></td><td>t</td></tr></table>\",c=m.getElementsByTagName(\"td\"),v=c[0].offsetHeight===0,c[0].style.display=\"\",c[1].style.display=\"none\",t.reliableHiddenOffsets=v&&c[0].offsetHeight===0,m.innerHTML=\"\",m.style.width=m.style.paddingLeft=\"1px\",s.boxModel=t.boxModel=m.offsetWidth===2,typeof m.style.zoom!=\"undefined\"&&(m.style.display=\"inline\",m.style.zoom=1,t.inlineBlockNeedsLayout=m.offsetWidth===2,m.style.display=\"\",m.innerHTML=\"<div style=\\'width:4px;\\'></div>\",t.shrinkWrapBlocks=m.offsetWidth!==2),m.style.cssText=l+h,m.innerHTML=d,r=m.firstChild,i=r.firstChild,u=r.nextSibling.firstChild.firstChild,a={doesNotAddBorder:i.offsetTop!==5,doesAddBorderForTableAndCells:u.offsetTop===5},i.style.position=\"fixed\",i.style.top=\"20px\",a.fixedPosition=i.offsetTop===20||i.offsetTop===15,i.style.position=i.style.top=\"\",r.style.overflow=\"hidden\",r.style.position=\"relative\",a.subtractsBorderForOverflowNotVisible=i.offsetTop===-5,a.doesNotIncludeMarginInBodyOffset=g.offsetTop!==f,g.removeChild(e),m=e=null,s.extend(t,a)}),t}();var f=/^(?:\\\\{.*\\\\}|\\\\[.*\\\\])$/,l=/([A-Z])/g;s.extend({cache:{},uuid:0,expando:\"jQuery\"+(s.fn.jquery+Math.random()).replace(/\\\\D/g,\"\"),noData:{embed:!0,object:\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\",applet:!0},hasData:function(e){return e=e.nodeType?s.cache[e[s.expando]]:e[s.expando],!!e&&!h(e)},data:function(e,n,r,i){if(!s.acceptData(e))return;var o,u,a,f=s.expando,l=typeof n==\"string\",c=e.nodeType,h=c?s.cache:e,p=c?e[f]:e[f]&&f,d=n===\"events\";if((!p||!h[p]||!d&&!i&&!h[p].data)&&l&&r===t)return;p||(c?e[f]=p=++s.uuid:p=f),h[p]||(h[p]={},c||(h[p].toJSON=s.noop));if(typeof n==\"object\"||typeof n==\"function\")i?h[p]=s.extend(h[p],n):h[p].data=s.extend(h[p].data,n);return o=u=h[p],i||(u.data||(u.data={}),u=u.data),r!==t&&(u[s.camelCase(n)]=r),d&&!u[n]?o.events:(l?(a=u[n],a==null&&(a=u[s.camelCase(n)])):a=u,a)},removeData:function(e,t,n){if(!s.acceptData(e))return;var r,i,o,u=s.expando,a=e.nodeType,f=a?s.cache:e,l=a?e[u]:u;if(!f[l])return;if(t){r=n?f[l]:f[l].data;if(r){s.isArray(t)||(t in r?t=[t]:(t=s.camelCase(t),t in r?t=[t]:t=t.split(\" \")));for(i=0,o=t.length;i<o;i++)delete r[t[i]];if(!(n?h:s.isEmptyObject)(r))return}}if(!n){delete f[l].data;if(!h(f[l]))return}s.support.deleteExpando||!f.setInterval?delete f[l]:f[l]=null,a&&(s.support.deleteExpando?delete e[u]:e.removeAttribute?e.removeAttribute(u):e[u]=null)},_data:function(e,t,n){return s.data(e,t,n,!0)},acceptData:function(e){if(e.nodeName){var t=s.noData[e.nodeName.toLowerCase()];if(t)return t!==!0&&e.getAttribute(\"classid\")===t}return!0}}),s.fn.extend({data:function(e,n){var r,i,o,u=null;if(typeof e==\"undefined\"){if(this.length){u=s.data(this[0]);if(this[0].nodeType===1&&!s._data(this[0],\"parsedAttrs\")){i=this[0].attributes;for(var a=0,f=i.length;a<f;a++)o=i[a].name,o.indexOf(\"data-\")===0&&(o=s.camelCase(o.substring(5)),c(this[0],o,u[o]));s._data(this[0],\"parsedAttrs\",!0)}}return u}return typeof e==\"object\"?this.each(function(){s.data(this,e)}):(r=e.split(\".\"),r[1]=r[1]?\".\"+r[1]:\"\",n===t?(u=this.triggerHandler(\"getData\"+r[1]+\"!\",[r[0]]),u===t&&this.length&&(u=s.data(this[0],e),u=c(this[0],e,u)),u===t&&r[1]?this.data(r[0]):u):this.each(function(){var t=s(this),i=[r[0],n];t.triggerHandler(\"setData\"+r[1]+\"!\",i),s.data(this,e,n),t.triggerHandler(\"changeData\"+r[1]+\"!\",i)}))},removeData:function(e){return this.each(function(){s.removeData(this,e)})}}),s.extend({_mark:function(e,t){e&&(t=(t||\"fx\")+\"mark\",s._data(e,t,(s._data(e,t)||0)+1))},_unmark:function(e,t,n){e!==!0&&(n=t,t=e,e=!1);if(t){n=n||\"fx\";var r=n+\"mark\",i=e?0:(s._data(t,r)||1)-1;i?s._data(t,r,i):(s.removeData(t,r,!0),p(t,n,\"mark\"))}},queue:function(e,t,n){var r;if(e)return t=(t||\"fx\")+\"queue\",r=s._data(e,t),n&&(!r||s.isArray(n)?r=s._data(e,t,s.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||\"fx\";var n=s.queue(e,t),r=n.shift(),i={};r===\"inprogress\"&&(r=n.shift()),r&&(t===\"fx\"&&n.unshift(\"inprogress\"),s._data(e,t+\".run\",i),r.call(e,function(){s.dequeue(e,t)},i)),n.length||(s.removeData(e,t+\"queue \"+t+\".run\",!0),p(e,t,\"queue\"))}}),s.fn.extend({queue:function(e,n){return typeof e!=\"string\"&&(n=e,e=\"fx\"),n===t?s.queue(this[0],e):this.each(function(){var t=s.queue(this,e,n);e===\"fx\"&&t[0]!==\"inprogress\"&&s.dequeue(this,e)})},dequeue:function(e){return this.each(function(){s.dequeue(this,e)})},delay:function(e,t){return e=s.fx?s.fx.speeds[e]||e:e,t=t||\"fx\",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},clearQueue:function(e){return this.queue(e||\"fx\",[])},promise:function(e,n){function h(){--u||r.resolveWith(i,[i])}typeof e!=\"string\"&&(n=e,e=t),e=e||\"fx\";var r=s.Deferred(),i=this,o=i.length,u=1,a=e+\"defer\",f=e+\"queue\",l=e+\"mark\",c;while(o--)if(c=s.data(i[o],a,t,!0)||(s.data(i[o],f,t,!0)||s.data(i[o],l,t,!0))&&s.data(i[o],a,s.Callbacks(\"once memory\"),!0))u++,c.add(h);return h(),r.promise()}});var d=/[\\\\n\\\\t\\\\r]/g,v=/\\\\s+/,m=/\\\\r/g,g=/^(?:button|input)$/i,y=/^(?:button|input|object|select|textarea)$/i,b=/^a(?:rea)?$/i,w=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,E=s.support.getSetAttribute,S,x,T;s.fn.extend({attr:function(e,t){return s.access(this,e,t,!0,s.attr)},removeAttr:function(e){return this.each(function(){s.removeAttr(this,e)})},prop:function(e,t){return s.access(this,e,t,!0,s.prop)},removeProp:function(e){return e=s.propFix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addClass:function(e){var t,n,r,i,o,u,a;if(s.isFunction(e))return this.each(function(t){s(this).addClass(e.call(this,t,this.className))});if(e&&typeof e==\"string\"){t=e.split(v);for(n=0,r=this.length;n<r;n++){i=this[n];if(i.nodeType===1)if(!i.className&&t.length===1)i.className=e;else{o=\" \"+i.className+\" \";for(u=0,a=t.length;u<a;u++)~o.indexOf(\" \"+t[u]+\" \")||(o+=t[u]+\" \");i.className=s.trim(o)}}}return this},removeClass:function(e){var n,r,i,o,u,a,f;if(s.isFunction(e))return this.each(function(t){s(this).removeClass(e.call(this,t,this.className))});if(e&&typeof e==\"string\"||e===t){n=(e||\"\").split(v);for(r=0,i=this.length;r<i;r++){o=this[r];if(o.nodeType===1&&o.className)if(e){u=(\" \"+o.className+\" \").replace(d,\" \");for(a=0,f=n.length;a<f;a++)u=u.replace(\" \"+n[a]+\" \",\" \");o.className=s.trim(u)}else o.className=\"\"}}return this},toggleClass:function(e,t){var n=typeof e,r=typeof t==\"boolean\";return s.isFunction(e)?this.each(function(n){s(this).toggleClass(e.call(this,n,this.className,t),t)}):this.each(function(){if(n===\"string\"){var i,o=0,u=s(this),a=t,f=e.split(v);while(i=f[o++])a=r?a:!u.hasClass(i),u[a?\"addClass\":\"removeClass\"](i)}else if(n===\"undefined\"||n===\"boolean\")this.className&&s._data(this,\"__className__\",this.className),this.className=this.className||e===!1?\"\":s._data(this,\"__className__\")||\"\"})},hasClass:function(e){var t=\" \"+e+\" \",n=0,r=this.length;for(;n<r;n++)if(this[n].nodeType===1&&(\" \"+this[n].className+\" \").replace(d,\" \").indexOf(t)>-1)return!0;return!1},val:function(e){var n,r,i,o=this[0];if(!arguments.length){if(o)return n=s.valHooks[o.nodeName.toLowerCase()]||s.valHooks[o.type],n&&\"get\"in n&&(r=n.get(o,\"value\"))!==t?r:(r=o.value,typeof r==\"string\"?r.replace(m,\"\"):r==null?\"\":r);return}return i=s.isFunction(e),this.each(function(r){var o=s(this),u;if(this.nodeType!==1)return;i?u=e.call(this,r,o.val()):u=e,u==null?u=\"\":typeof u==\"number\"?u+=\"\":s.isArray(u)&&(u=s.map(u,function(e){return e==null?\"\":e+\"\"})),n=s.valHooks[this.nodeName.toLowerCase()]||s.valHooks[this.type];if(!n||!(\"set\"in n)||n.set(this,u,\"value\")===t)this.value=u})}}),s.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,i,o=e.selectedIndex,u=[],a=e.options,f=e.type===\"select-one\";if(o<0)return null;n=f?o:0,r=f?o+1:a.length;for(;n<r;n++){i=a[n];if(i.selected&&(s.support.optDisabled?!i.disabled:i.getAttribute(\"disabled\")===null)&&(!i.parentNode.disabled||!s.nodeName(i.parentNode,\"optgroup\"))){t=s(i).val();if(f)return t;u.push(t)}}return f&&!u.length&&a.length?s(a[o]).val():u},set:function(e,t){var n=s.makeArray(t);return s(e).find(\"option\").each(function(){this.selected=s.inArray(s(this).val(),n)>=0}),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,r,i){var o,u,a,f=e.nodeType;if(!e||f===3||f===8||f===2)return;if(i&&n in s.attrFn)return s(e)[n](r);if(typeof e.getAttribute==\"undefined\")return s.prop(e,n,r);a=f!==1||!s.isXMLDoc(e),a&&(n=n.toLowerCase(),u=s.attrHooks[n]||(w.test(n)?x:S));if(r!==t){if(r===null){s.removeAttr(e,n);return}return u&&\"set\"in u&&a&&(o=u.set(e,r,n))!==t?o:(e.setAttribute(n,\"\"+r),r)}return u&&\"get\"in u&&a&&(o=u.get(e,n))!==null?o:(o=e.getAttribute(n),o===null?t:o)},removeAttr:function(e,t){var n,r,i,o,u=0;if(t&&e.nodeType===1){r=t.toLowerCase().split(v),o=r.length;for(;u<o;u++)i=r[u],i&&(n=s.propFix[i]||i,s.attr(e,i,\"\"),e.removeAttribute(E?i:n),w.test(i)&&n in e&&(e[n]=!1))}},attrHooks:{type:{set:function(e,t){if(g.test(e.nodeName)&&e.parentNode)s.error(\"type property can\\'t be changed\");else if(!s.support.radioValue&&t===\"radio\"&&s.nodeName(e,\"input\")){var n=e.value;return e.setAttribute(\"type\",t),n&&(e.value=n),t}}},value:{get:function(e,t){return S&&s.nodeName(e,\"button\")?S.get(e,t):t in e?e.value:null},set:function(e,t,n){if(S&&s.nodeName(e,\"button\"))return S.set(e,t,n);e.value=t}}},propFix:{tabindex:\"tabIndex\",readonly:\"readOnly\",\"for\":\"htmlFor\",\"class\":\"className\",maxlength:\"maxLength\",cellspacing:\"cellSpacing\",cellpadding:\"cellPadding\",rowspan:\"rowSpan\",colspan:\"colSpan\",usemap:\"useMap\",frameborder:\"frameBorder\",contenteditable:\"contentEditable\"},prop:function(e,n,r){var i,o,u,a=e.nodeType;if(!e||a===3||a===8||a===2)return;return u=a!==1||!s.isXMLDoc(e),u&&(n=s.propFix[n]||n,o=s.propHooks[n]),r!==t?o&&\"set\"in o&&(i=o.set(e,r,n))!==t?i:e[n]=r:o&&\"get\"in o&&(i=o.get(e,n))!==null?i:e[n]},propHooks:{tabIndex:{get:function(e){var n=e.getAttributeNode(\"tabindex\");return n&&n.specified?parseInt(n.value,10):y.test(e.nodeName)||b.test(e.nodeName)&&e.href?0:t}}}}),s.attrHooks.tabindex=s.propHooks.tabIndex,x={get:function(e,n){var r,i=s.prop(e,n);return i===!0||typeof i!=\"boolean\"&&(r=e.getAttributeNode(n))&&r.nodeValue!==!1?n.toLowerCase():t},set:function(e,t,n){var r;return t===!1?s.removeAttr(e,n):(r=s.propFix[n]||n,r in e&&(e[r]=!0),e.setAttribute(n,n.toLowerCase())),n}},E||(T={name:!0,id:!0},S=s.valHooks.button={get:function(e,n){var r;return r=e.getAttributeNode(n),r&&(T[n]?r.nodeValue!==\"\":r.specified)?r.nodeValue:t},set:function(e,t,r){var i=e.getAttributeNode(r);return i||(i=n.createAttribute(r),e.setAttributeNode(i)),i.nodeValue=t+\"\"}},s.attrHooks.tabindex.set=S.set,s.each([\"width\",\"height\"],function(e,t){s.attrHooks[t]=s.extend(s.attrHooks[t],{set:function(e,n){if(n===\"\")return e.setAttribute(t,\"auto\"),n}})}),s.attrHooks.contenteditable={get:S.get,set:function(e,t,n){t===\"\"&&(t=\"false\"),S.set(e,t,n)}}),s.support.hrefNormalized||s.each([\"href\",\"src\",\"width\",\"height\"],function(e,n){s.attrHooks[n]=s.extend(s.attrHooks[n],{get:function(e){var r=e.getAttribute(n,2);return r===null?t:r}})}),s.support.style||(s.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||t},set:function(e,t){return e.style.cssText=\"\"+t}}),s.support.optSelected||(s.propHooks.selected=s.extend(s.propHooks.selected,{get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),s.support.enctype||(s.propFix.enctype=\"encoding\"),s.support.checkOn||s.each([\"radio\",\"checkbox\"],function(){s.valHooks[this]={get:function(e){return e.getAttribute(\"value\")===null?\"on\":e.value}}}),s.each([\"radio\",\"checkbox\"],function(){s.valHooks[this]=s.extend(s.valHooks[this],{set:function(e,t){if(s.isArray(t))return e.checked=s.inArray(s(e).val(),t)>=0}})});var N=/^(?:textarea|input|select)$/i,C=/^([^\\\\.]*)?(?:\\\\.(.+))?$/,k=/\\\\bhover(\\\\.\\\\S+)?\\\\b/,L=/^key/,A=/^(?:mouse|contextmenu)|click/,O=/^(?:focusinfocus|focusoutblur)$/,M=/^(\\\\w*)(?:#([\\\\w\\\\-]+))?(?:\\\\.([\\\\w\\\\-]+))?$/,_=function(e){var t=M.exec(e);return t&&(t[1]=(t[1]||\"\").toLowerCase(),t[3]=t[3]&&new RegExp(\"(?:^|\\\\\\\\s)\"+t[3]+\"(?:\\\\\\\\s|$)\")),t},D=function(e,t){var n=e.attributes||{};return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||(n.id||{}).value===t[2])&&(!t[3]||t[3].test((n[\"class\"]||{}).value))},P=function(e){return s.event.special.hover?e:e.replace(k,\"mouseenter$1 mouseleave$1\")};s.event={add:function(e,n,r,i,o){var u,a,f,l,c,h,p,d,v,m,g,y;if(e.nodeType===3||e.nodeType===8||!n||!r||!(u=s._data(e)))return;r.handler&&(v=r,r=v.handler),r.guid||(r.guid=s.guid++),f=u.events,f||(u.events=f={}),a=u.handle,a||(u.handle=a=function(e){return typeof s==\"undefined\"||!!e&&s.event.triggered===e.type?t:s.event.dispatch.apply(a.elem,arguments)},a.elem=e),n=s.trim(P(n)).split(\" \");for(l=0;l<n.length;l++){c=C.exec(n[l])||[],h=c[1],p=(c[2]||\"\").split(\".\").sort(),y=s.event.special[h]||{},h=(o?y.delegateType:y.bindType)||h,y=s.event.special[h]||{},d=s.extend({type:h,origType:c[1],data:i,handler:r,guid:r.guid,selector:o,quick:_(o),namespace:p.join(\".\")},v),g=f[h];if(!g){g=f[h]=[],g.delegateCount=0;if(!y.setup||y.setup.call(e,i,p,a)===!1)e.addEventListener?e.addEventListener(h,a,!1):e.attachEvent&&e.attachEvent(\"on\"+h,a)}y.add&&(y.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),o?g.splice(g.delegateCount++,0,d):g.push(d),s.event.global[h]=!0}e=null},global:{},remove:function(e,t,n,r,i){var o=s.hasData(e)&&s._data(e),u,a,f,l,c,h,p,d,v,m,g,y;if(!o||!(d=o.events))return;t=s.trim(P(t||\"\")).split(\" \");for(u=0;u<t.length;u++){a=C.exec(t[u])||[],f=l=a[1],c=a[2];if(!f){for(f in d)s.event.remove(e,f+t[u],n,r,!0);continue}v=s.event.special[f]||{},f=(r?v.delegateType:v.bindType)||f,g=d[f]||[],h=g.length,c=c?new RegExp(\"(^|\\\\\\\\.)\"+c.split(\".\").sort().join(\"\\\\\\\\.(?:.*\\\\\\\\.)?\")+\"(\\\\\\\\.|$)\"):null;for(p=0;p<g.length;p++)y=g[p],(i||l===y.origType)&&(!n||n.guid===y.guid)&&(!c||c.test(y.namespace))&&(!r||r===y.selector||r===\"**\"&&y.selector)&&(g.splice(p--,1),y.selector&&g.delegateCount--,v.remove&&v.remove.call(e,y));g.length===0&&h!==g.length&&((!v.teardown||v.teardown.call(e,c)===!1)&&s.removeEvent(e,f,o.handle),delete d[f])}s.isEmptyObject(d)&&(m=o.handle,m&&(m.elem=null),s.removeData(e,[\"events\",\"handle\"],!0))},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(n,r,i,o){if(!i||i.nodeType!==3&&i.nodeType!==8){var u=n.type||n,a=[],f,l,c,h,p,d,v,m,g,y;if(O.test(u+s.event.triggered))return;u.indexOf(\"!\")>=0&&(u=u.slice(0,-1),l=!0),u.indexOf(\".\")>=0&&(a=u.split(\".\"),u=a.shift(),a.sort());if((!i||s.event.customEvent[u])&&!s.event.global[u])return;n=typeof n==\"object\"?n[s.expando]?n:new s.Event(u,n):new s.Event(u),n.type=u,n.isTrigger=!0,n.exclusive=l,n.namespace=a.join(\".\"),n.namespace_re=n.namespace?new RegExp(\"(^|\\\\\\\\.)\"+a.join(\"\\\\\\\\.(?:.*\\\\\\\\.)?\")+\"(\\\\\\\\.|$)\"):null,d=u.indexOf(\":\")<0?\"on\"+u:\"\";if(!i){f=s.cache;for(c in f)f[c].events&&f[c].events[u]&&s.event.trigger(n,r,f[c].handle.elem,!0);return}n.result=t,n.target||(n.target=i),r=r!=null?s.makeArray(r):[],r.unshift(n),v=s.event.special[u]||{};if(v.trigger&&v.trigger.apply(i,r)===!1)return;g=[[i,v.bindType||u]];if(!o&&!v.noBubble&&!s.isWindow(i)){y=v.delegateType||u,h=O.test(y+u)?i:i.parentNode,p=null;for(;h;h=h.parentNode)g.push([h,y]),p=h;p&&p===i.ownerDocument&&g.push([p.defaultView||p.parentWindow||e,y])}for(c=0;c<g.length&&!n.isPropagationStopped();c++)h=g[c][0],n.type=g[c][1],m=(s._data(h,\"events\")||{})[n.type]&&s._data(h,\"handle\"),m&&m.apply(h,r),m=d&&h[d],m&&s.acceptData(h)&&m.apply(h,r)===!1&&n.preventDefault();return n.type=u,!o&&!n.isDefaultPrevented()&&(!v._default||v._default.apply(i.ownerDocument,r)===!1)&&(u!==\"click\"||!s.nodeName(i,\"a\"))&&s.acceptData(i)&&d&&i[u]&&(u!==\"focus\"&&u!==\"blur\"||n.target.offsetWidth!==0)&&!s.isWindow(i)&&(p=i[d],p&&(i[d]=null),s.event.triggered=u,i[u](),s.event.triggered=t,p&&(i[d]=p)),n.result}return},dispatch:function(n){n=s.event.fix(n||e.event);var r=(s._data(this,\"events\")||{})[n.type]||[],i=r.delegateCount,o=[].slice.call(arguments,0),u=!n.exclusive&&!n.namespace,a=[],f,l,c,h,p,d,v,m,g,y,b;o[0]=n,n.delegateTarget=this;if(i&&!n.target.disabled&&(!n.button||n.type!==\"click\")){h=s(this),h.context=this.ownerDocument||this;for(c=n.target;c!=this;c=c.parentNode||this){d={},m=[],h[0]=c;for(f=0;f<i;f++)g=r[f],y=g.selector,d[y]===t&&(d[y]=g.quick?D(c,g.quick):h.is(y)),d[y]&&m.push(g);m.length&&a.push({elem:c,matches:m})}}r.length>i&&a.push({elem:this,matches:r.slice(i)});for(f=0;f<a.length&&!n.isPropagationStopped();f++){v=a[f],n.currentTarget=v.elem;for(l=0;l<v.matches.length&&!n.isImmediatePropagationStopped();l++){g=v.matches[l];if(u||!n.namespace&&!g.namespace||n.namespace_re&&n.namespace_re.test(g.namespace))n.data=g.data,n.handleObj=g,p=((s.event.special[g.origType]||{}).handle||g.handler).apply(v.elem,o),p!==t&&(n.result=p,p===!1&&(n.preventDefault(),n.stopPropagation()))}}return n.result},props:\"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which\".split(\" \"),fixHooks:{},keyHooks:{props:\"char charCode key keyCode\".split(\" \"),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:\"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement\".split(\" \"),filter:function(e,r){var i,s,o,u=r.button,a=r.fromElement;return e.pageX==null&&r.clientX!=null&&(i=e.target.ownerDocument||n,s=i.documentElement,o=i.body,e.pageX=r.clientX+(s&&s.scrollLeft||o&&o.scrollLeft||0)-(s&&s.clientLeft||o&&o.clientLeft||0),e.pageY=r.clientY+(s&&s.scrollTop||o&&o.scrollTop||0)-(s&&s.clientTop||o&&o.clientTop||0)),!e.relatedTarget&&a&&(e.relatedTarget=a===e.target?r.toElement:a),!e.which&&u!==t&&(e.which=u&1?1:u&2?3:u&4?2:0),e}},fix:function(e){if(e[s.expando])return e;var r,i,o=e,u=s.event.fixHooks[e.type]||{},a=u.props?this.props.concat(u.props):this.props;e=s.Event(o);for(r=a.length;r;)i=a[--r],e[i]=o[i];return e.target||(e.target=o.srcElement||n),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey===t&&(e.metaKey=e.ctrlKey),u.filter?u.filter(e,o):e},special:{ready:{setup:s.bindReady},load:{noBubble:!0},focus:{delegateType:\"focusin\"},blur:{delegateType:\"focusout\"},beforeunload:{setup:function(e,t,n){s.isWindow(this)&&(this.onbeforeunload=n)},teardown:function(e,t){this.onbeforeunload===t&&(this.onbeforeunload=null)}}},simulate:function(e,t,n,r){var i=s.extend(new s.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?s.event.trigger(i,null,t):s.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},s.event.handle=s.event.dispatch,s.removeEvent=n.removeEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)}:function(e,t,n){e.detachEvent&&e.detachEvent(\"on\"+t,n)},s.Event=function(e,t){if(!(this instanceof s.Event))return new s.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?B:H):this.type=e,t&&s.extend(this,t),this.timeStamp=e&&e.timeStamp||s.now(),this[s.expando]=!0},s.Event.prototype={preventDefault:function(){this.isDefaultPrevented=B;var e=this.originalEvent;if(!e)return;e.preventDefault?e.preventDefault():e.returnValue=!1},stopPropagation:function(){this.isPropagationStopped=B;var e=this.originalEvent;if(!e)return;e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=B,this.stopPropagation()},isDefaultPrevented:H,isPropagationStopped:H,isImmediatePropagationStopped:H},s.each({mouseenter:\"mouseover\",mouseleave:\"mouseout\"},function(e,t){s.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n=this,r=e.relatedTarget,i=e.handleObj,o=i.selector,u;if(!r||r!==n&&!s.contains(n,r))e.type=i.origType,u=i.handler.apply(this,arguments),e.type=t;return u}}}),s.support.submitBubbles||(s.event.special.submit={setup:function(){if(s.nodeName(this,\"form\"))return!1;s.event.add(this,\"click._submit keypress._submit\",function(e){var n=e.target,r=s.nodeName(n,\"input\")||s.nodeName(n,\"button\")?n.form:t;r&&!r._submit_attached&&(s.event.add(r,\"submit._submit\",function(e){this.parentNode&&!e.isTrigger&&s.event.simulate(\"submit\",this.parentNode,e,!0)}),r._submit_attached=!0)})},teardown:function(){if(s.nodeName(this,\"form\"))return!1;s.event.remove(this,\"._submit\")}}),s.support.changeBubbles||(s.event.special.change={setup:function(){if(N.test(this.nodeName)){if(this.type===\"checkbox\"||this.type===\"radio\")s.event.add(this,\"propertychange._change\",function(e){e.originalEvent.propertyName===\"checked\"&&(this._just_changed=!0)}),s.event.add(this,\"click._change\",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1,s.event.simulate(\"change\",this,e,!0))});return!1}s.event.add(this,\"beforeactivate._change\",function(e){var t=e.target;N.test(t.nodeName)&&!t._change_attached&&(s.event.add(t,\"change._change\",function(e){this.parentNode&&!e.isSimulated&&!e.isTrigger&&s.event.simulate(\"change\",this.parentNode,e,!0)}),t._change_attached=!0)})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!==\"radio\"&&t.type!==\"checkbox\")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return s.event.remove(this,\"._change\"),N.test(this.nodeName)}}),s.support.focusinBubbles||s.each({focus:\"focusin\",blur:\"focusout\"},function(e,t){var r=0,i=function(e){s.event.simulate(t,e.target,s.event.fix(e),!0)};s.event.special[t]={setup:function(){r++===0&&n.addEventListener(e,i,!0)},teardown:function(){--r===0&&n.removeEventListener(e,i,!0)}}}),s.fn.extend({on:function(e,n,r,i,o){var u,a;if(typeof e==\"object\"){typeof n!=\"string\"&&(r=n,n=t);for(a in e)this.on(a,n,r,e[a],o);return this}r==null&&i==null?(i=n,r=n=t):i==null&&(typeof n==\"string\"?(i=r,r=t):(i=r,r=n,n=t));if(i===!1)i=H;else if(!i)return this;return o===1&&(u=i,i=function(e){return s().off(e),u.apply(this,arguments)},i.guid=u.guid||(u.guid=s.guid++)),this.each(function(){s.event.add(this,e,i,r,n)})},one:function(e,t,n,r){return this.on.call(this,e,t,n,r,1)},off:function(e,n,r){if(e&&e.preventDefault&&e.handleObj){var i=e.handleObj;return s(e.delegateTarget).off(i.namespace?i.type+\".\"+i.namespace:i.type,i.selector,i.handler),this}if(typeof e==\"object\"){for(var o in e)this.off(o,n,e[o]);return this}if(n===!1||typeof n==\"function\")r=n,n=t;return r===!1&&(r=H),this.each(function(){s.event.remove(this,e,r,n)})},bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},live:function(e,t,n){return s(this.context).on(e,this.selector,t,n),this},die:function(e,t){return s(this.context).off(e,this.selector||\"**\",t),this},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return arguments.length==1?this.off(e,\"**\"):this.off(t,e,n)},trigger:function(e,t){return this.each(function(){s.event.trigger(e,t,this)})},triggerHandler:function(e,t){if(this[0])return s.event.trigger(e,t,this[0],!0)},toggle:function(e){var t=arguments,n=e.guid||s.guid++,r=0,i=function(n){var i=(s._data(this,\"lastToggle\"+e.guid)||0)%r;return s._data(this,\"lastToggle\"+e.guid,i+1),n.preventDefault(),t[i].apply(this,arguments)||!1};i.guid=n;while(r<t.length)t[r++].guid=n;return this.click(i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),s.each(\"blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu\".split(\" \"),function(e,t){s.fn[t]=function(e,n){return n==null&&(n=e,e=null),arguments.length>0?this.on(t,null,e,n):this.trigger(t)},s.attrFn&&(s.attrFn[t]=!0),L.test(t)&&(s.event.fixHooks[t]=s.event.keyHooks),A.test(t)&&(s.event.fixHooks[t]=s.event.mouseHooks)}),function(){function S(e,t,n,i,s,o){for(var u=0,a=i.length;u<a;u++){var f=i[u];if(f){var l=!1;f=f[e];while(f){if(f[r]===n){l=i[f.sizset];break}f.nodeType===1&&!o&&(f[r]=n,f.sizset=u);if(f.nodeName.toLowerCase()===t){l=f;break}f=f[e]}i[u]=l}}}function x(e,t,n,i,s,o){for(var u=0,a=i.length;u<a;u++){var f=i[u];if(f){var l=!1;f=f[e];while(f){if(f[r]===n){l=i[f.sizset];break}if(f.nodeType===1){o||(f[r]=n,f.sizset=u);if(typeof t!=\"string\"){if(f===t){l=!0;break}}else if(h.filter(t,[f]).length>0){l=f;break}}f=f[e]}i[u]=l}}}var e=/((?:\\\\((?:\\\\([^()]+\\\\)|[^()]+)+\\\\)|\\\\[(?:\\\\[[^\\\\[\\\\]]*\\\\]|[\\'\"][^\\'\"]*[\\'\"]|[^\\\\[\\\\]\\'\"]+)+\\\\]|\\\\\\\\.|[^ >+~,(\\\\[\\\\\\\\]+)+|[>+~])(\\\\s*,\\\\s*)?((?:.|\\\\r|\\\\n)*)/g,r=\"sizcache\"+(Math.random()+\"\").replace(\".\",\"\"),i=0,o=Object.prototype.toString,u=!1,a=!0,f=/\\\\\\\\/g,l=/\\\\r\\\\n/g,c=/\\\\W/;[0,0].sort(function(){return a=!1,0});var h=function(t,r,i,s){i=i||[],r=r||n;var u=r;if(r.nodeType!==1&&r.nodeType!==9)return[];if(!t||typeof t!=\"string\")return i;var a,f,l,c,p,m,g,b,w=!0,E=h.isXML(r),S=[],x=t;do{e.exec(\"\"),a=e.exec(x);if(a){x=a[3],S.push(a[1]);if(a[2]){c=a[3];break}}}while(a);if(S.length>1&&v.exec(t))if(S.length===2&&d.relative[S[0]])f=T(S[0]+S[1],r,s);else{f=d.relative[S[0]]?[r]:h(S.shift(),r);while(S.length)t=S.shift(),d.relative[t]&&(t+=S.shift()),f=T(t,f,s)}else{!s&&S.length>1&&r.nodeType===9&&!E&&d.match.ID.test(S[0])&&!d.match.ID.test(S[S.length-1])&&(p=h.find(S.shift(),r,E),r=p.expr?h.filter(p.expr,p.set)[0]:p.set[0]);if(r){p=s?{expr:S.pop(),set:y(s)}:h.find(S.pop(),S.length!==1||S[0]!==\"~\"&&S[0]!==\"+\"||!r.parentNode?r:r.parentNode,E),f=p.expr?h.filter(p.expr,p.set):p.set,S.length>0?l=y(f):w=!1;while(S.length)m=S.pop(),g=m,d.relative[m]?g=S.pop():m=\"\",g==null&&(g=r),d.relative[m](l,g,E)}else l=S=[]}l||(l=f),l||h.error(m||t);if(o.call(l)===\"[object Array]\")if(!w)i.push.apply(i,l);else if(r&&r.nodeType===1)for(b=0;l[b]!=null;b++)l[b]&&(l[b]===!0||l[b].nodeType===1&&h.contains(r,l[b]))&&i.push(f[b]);else for(b=0;l[b]!=null;b++)l[b]&&l[b].nodeType===1&&i.push(f[b]);else y(l,i);return c&&(h(c,u,i,s),h.uniqueSort(i)),i};h.uniqueSort=function(e){if(w){u=a,e.sort(w);if(u)for(var t=1;t<e.length;t++)e[t]===e[t-1]&&e.splice(t--,1)}return e},h.matches=function(e,t){return h(e,null,null,t)},h.matchesSelector=function(e,t){return h(t,null,null,[e]).length>0},h.find=function(e,t,n){var r,i,s,o,u,a;if(!e)return[];for(i=0,s=d.order.length;i<s;i++){u=d.order[i];if(o=d.leftMatch[u].exec(e)){a=o[1],o.splice(1,1);if(a.substr(a.length-1)!==\"\\\\\\\\\"){o[1]=(o[1]||\"\").replace(f,\"\"),r=d.find[u](o,t,n);if(r!=null){e=e.replace(d.match[u],\"\");break}}}}return r||(r=typeof t.getElementsByTagName!=\"undefined\"?t.getElementsByTagName(\"*\"):[]),{set:r,expr:e}},h.filter=function(e,n,r,i){var s,o,u,a,f,l,c,p,v,m=e,g=[],y=n,b=n&&n[0]&&h.isXML(n[0]);while(e&&n.length){for(u in d.filter)if((s=d.leftMatch[u].exec(e))!=null&&s[2]){l=d.filter[u],c=s[1],o=!1,s.splice(1,1);if(c.substr(c.length-1)===\"\\\\\\\\\")continue;y===g&&(g=[]);if(d.preFilter[u]){s=d.preFilter[u](s,y,r,g,i,b);if(!s)o=a=!0;else if(s===!0)continue}if(s)for(p=0;(f=y[p])!=null;p++)f&&(a=l(f,s,p,y),v=i^a,r&&a!=null?v?o=!0:y[p]=!1:v&&(g.push(f),o=!0));if(a!==t){r||(y=g),e=e.replace(d.match[u],\"\");if(!o)return[];break}}if(e===m){if(o!=null)break;h.error(e)}m=e}return y},h.error=function(e){throw new Error(\"Syntax error, unrecognized expression: \"+e)};var p=h.getText=function(e){var t,n,r=e.nodeType,i=\"\";if(r){if(r===1||r===9){if(typeof e.textContent==\"string\")return e.textContent;if(typeof e.innerText==\"string\")return e.innerText.replace(l,\"\");for(e=e.firstChild;e;e=e.nextSibling)i+=p(e)}else if(r===3||r===4)return e.nodeValue}else for(t=0;n=e[t];t++)n.nodeType!==8&&(i+=p(n));return i},d=h.selectors={order:[\"ID\",\"NAME\",\"TAG\"],match:{ID:/#((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)+)/,CLASS:/\\\\.((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)+)/,NAME:/\\\\[name=[\\'\"]*((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)+)[\\'\"]*\\\\]/,ATTR:/\\\\[\\\\s*((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)+)\\\\s*(?:(\\\\S?=)\\\\s*(?:([\\'\"])(.*?)\\\\3|(#?(?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)*)|)|)\\\\s*\\\\]/,TAG:/^((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\*\\\\-]|\\\\\\\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\\\\(\\\\s*(even|odd|(?:[+\\\\-]?\\\\d+|(?:[+\\\\-]?\\\\d*)?n\\\\s*(?:[+\\\\-]\\\\s*\\\\d+)?))\\\\s*\\\\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\\\\((\\\\d*)\\\\))?(?=[^\\\\-]|$)/,PSEUDO:/:((?:[\\\\w\\\\u00c0-\\\\uFFFF\\\\-]|\\\\\\\\.)+)(?:\\\\(([\\'\"]?)((?:\\\\([^\\\\)]+\\\\)|[^\\\\(\\\\)]*)+)\\\\2\\\\))?/},leftMatch:{},attrMap:{\"class\":\"className\",\"for\":\"htmlFor\"},attrHandle:{href:function(e){return e.getAttribute(\"href\")},type:function(e){return e.getAttribute(\"type\")}},relative:{\"+\":function(e,t){var n=typeof t==\"string\",r=n&&!c.test(t),i=n&&!r;r&&(t=t.toLowerCase());for(var s=0,o=e.length,u;s<o;s++)if(u=e[s]){while((u=u.previousSibling)&&u.nodeType!==1);e[s]=i||u&&u.nodeName.toLowerCase()===t?u||!1:u===t}i&&h.filter(t,e,!0)},\">\":function(e,t){var n,r=typeof t==\"string\",i=0,s=e.length;if(r&&!c.test(t)){t=t.toLowerCase();for(;i<s;i++){n=e[i];if(n){var o=n.parentNode;e[i]=o.nodeName.toLowerCase()===t?o:!1}}}else{for(;i<s;i++)n=e[i],n&&(e[i]=r?n.parentNode:n.parentNode===t);r&&h.filter(t,e,!0)}},\"\":function(e,t,n){var r,s=i++,o=x;typeof t==\"string\"&&!c.test(t)&&(t=t.toLowerCase(),r=t,o=S),o(\"parentNode\",t,s,e,r,n)},\"~\":function(e,t,n){var r,s=i++,o=x;typeof t==\"string\"&&!c.test(t)&&(t=t.toLowerCase(),r=t,o=S),o(\"previousSibling\",t,s,e,r,n)}},find:{ID:function(e,t,n){if(typeof t.getElementById!=\"undefined\"&&!n){var r=t.getElementById(e[1]);return r&&r.parentNode?[r]:[]}},NAME:function(e,t){if(typeof t.getElementsByName!=\"undefined\"){var n=[],r=t.getElementsByName(e[1]);for(var i=0,s=r.length;i<s;i++)r[i].getAttribute(\"name\")===e[1]&&n.push(r[i]);return n.length===0?null:n}},TAG:function(e,t){if(typeof t.getElementsByTagName!=\"undefined\")return t.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,t,n,r,i,s){e=\" \"+e[1].replace(f,\"\")+\" \";if(s)return e;for(var o=0,u;(u=t[o])!=null;o++)u&&(i^(u.className&&(\" \"+u.className+\" \").replace(/[\\\\t\\\\n\\\\r]/g,\" \").indexOf(e)>=0)?n||r.push(u):n&&(t[o]=!1));return!1},ID:function(e){return e[1].replace(f,\"\")},TAG:function(e,t){return e[1].replace(f,\"\").toLowerCase()},CHILD:function(e){if(e[1]===\"nth\"){e[2]||h.error(e[0]),e[2]=e[2].replace(/^\\\\+|\\\\s*/g,\"\");var t=/(-?)(\\\\d*)(?:n([+\\\\-]?\\\\d*))?/.exec(e[2]===\"even\"&&\"2n\"||e[2]===\"odd\"&&\"2n+1\"||!/\\\\D/.test(e[2])&&\"0n+\"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&h.error(e[0]);return e[0]=i++,e},ATTR:function(e,t,n,r,i,s){var o=e[1]=e[1].replace(f,\"\");return!s&&d.attrMap[o]&&(e[1]=d.attrMap[o]),e[4]=(e[4]||e[5]||\"\").replace(f,\"\"),e[2]===\"~=\"&&(e[4]=\" \"+e[4]+\" \"),e},PSEUDO:function(t,n,r,i,s){if(t[1]===\"not\"){if(!((e.exec(t[3])||\"\").length>1||/^\\\\w/.test(t[3]))){var o=h.filter(t[3],n,r,!0^s);return r||i.push.apply(i,o),!1}t[3]=h(t[3],null,null,n)}else if(d.match.POS.test(t[0])||d.match.CHILD.test(t[0]))return!0;return t},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return e.disabled===!1&&e.type!==\"hidden\"},disabled:function(e){return e.disabled===!0},checked:function(e){return e.checked===!0},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!h(n[3],e).length},header:function(e){return/h\\\\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute(\"type\"),n=e.type;return e.nodeName.toLowerCase()===\"input\"&&\"text\"===n&&(t===n||t===null)},radio:function(e){return e.nodeName.toLowerCase()===\"input\"&&\"radio\"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()===\"input\"&&\"checkbox\"===e.type},file:function(e){return e.nodeName.toLowerCase()===\"input\"&&\"file\"===e.type},password:function(e){return e.nodeName.toLowerCase()===\"input\"&&\"password\"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return(t===\"input\"||t===\"button\")&&\"submit\"===e.type},image:function(e){return e.nodeName.toLowerCase()===\"input\"&&\"image\"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return(t===\"input\"||t===\"button\")&&\"reset\"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return t===\"input\"&&\"button\"===e.type||t===\"button\"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return t===0},last:function(e,t,n,r){return t===r.length-1},even:function(e,t){return t%2===0},odd:function(e,t){return t%2===1},lt:function(e,t,n){return t<n[3]-0},gt:function(e,t,n){return t>n[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,r){var i=t[1],s=d.filters[i];if(s)return s(e,n,t,r);if(i===\"contains\")return(e.textContent||e.innerText||p([e])||\"\").indexOf(t[3])>=0;if(i===\"not\"){var o=t[3];for(var u=0,a=o.length;u<a;u++)if(o[u]===e)return!1;return!0}h.error(i)},CHILD:function(e,t){var n,i,s,o,u,a,f,l=t[1],c=e;switch(l){case\"only\":case\"first\":while(c=c.previousSibling)if(c.nodeType===1)return!1;if(l===\"first\")return!0;c=e;case\"last\":while(c=c.nextSibling)if(c.nodeType===1)return!1;return!0;case\"nth\":n=t[2],i=t[3];if(n===1&&i===0)return!0;s=t[0],o=e.parentNode;if(o&&(o[r]!==s||!e.nodeIndex)){a=0;for(c=o.firstChild;c;c=c.nextSibling)c.nodeType===1&&(c.nodeIndex=++a);o[r]=s}return f=e.nodeIndex-i,n===0?f===0:f%n===0&&f/n>=0}},ID:function(e,t){return e.nodeType===1&&e.getAttribute(\"id\")===t},TAG:function(e,t){return t===\"*\"&&e.nodeType===1||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(\" \"+(e.className||e.getAttribute(\"class\"))+\" \").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],r=h.attr?h.attr(e,n):d.attrHandle[n]?d.attrHandle[n](e):e[n]!=null?e[n]:e.getAttribute(n),i=r+\"\",s=t[2],o=t[4];return r==null?s===\"!=\":!s&&h.attr?r!=null:s===\"=\"?i===o:s===\"*=\"?i.indexOf(o)>=0:s===\"~=\"?(\" \"+i+\" \").indexOf(o)>=0:o?s===\"!=\"?i!==o:s===\"^=\"?i.indexOf(o)===0:s===\"$=\"?i.substr(i.length-o.length)===o:s===\"|=\"?i===o||i.substr(0,o.length+1)===o+\"-\":!1:i&&r!==!1},POS:function(e,t,n,r){var i=t[2],s=d.setFilters[i];if(s)return s(e,n,t,r)}}},v=d.match.POS,m=function(e,t){return\"\\\\\\\\\"+(t-0+1)};for(var g in d.match)d.match[g]=new RegExp(d.match[g].source+/(?![^\\\\[]*\\\\])(?![^\\\\(]*\\\\))/.source),d.leftMatch[g]=new RegExp(/(^(?:.|\\\\r|\\\\n)*?)/.source+d.match[g].source.replace(/\\\\\\\\(\\\\d+)/g,m));var y=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(n.documentElement.childNodes,0)[0].nodeType}catch(b){y=function(e,t){var n=0,r=t||[];if(o.call(e)===\"[object Array]\")Array.prototype.push.apply(r,e);else if(typeof e.length==\"number\")for(var i=e.length;n<i;n++)r.push(e[n]);else for(;e[n];n++)r.push(e[n]);return r}}var w,E;n.documentElement.compareDocumentPosition?w=function(e,t){return e===t?(u=!0,0):!e.compareDocumentPosition||!t.compareDocumentPosition?e.compareDocumentPosition?-1:1:e.compareDocumentPosition(t)&4?-1:1}:(w=function(e,t){if(e===t)return u=!0,0;if(e.sourceIndex&&t.sourceIndex)return e.sourceIndex-t.sourceIndex;var n,r,i=[],s=[],o=e.parentNode,a=t.parentNode,f=o;if(o===a)return E(e,t);if(!o)return-1;if(!a)return 1;while(f)i.unshift(f),f=f.parentNode;f=a;while(f)s.unshift(f),f=f.parentNode;n=i.length,r=s.length;for(var l=0;l<n&&l<r;l++)if(i[l]!==s[l])return E(i[l],s[l]);return l===n?E(e,s[l],-1):E(i[l],t,1)},E=function(e,t,n){if(e===t)return n;var r=e.nextSibling;while(r){if(r===t)return-1;r=r.nextSibling}return 1}),function(){var e=n.createElement(\"div\"),r=\"script\"+(new Date).getTime(),i=n.documentElement;e.innerHTML=\"<a name=\\'\"+r+\"\\'/>\",i.insertBefore(e,i.firstChild),n.getElementById(r)&&(d.find.ID=function(e,n,r){if(typeof n.getElementById!=\"undefined\"&&!r){var i=n.getElementById(e[1]);return i?i.id===e[1]||typeof i.getAttributeNode!=\"undefined\"&&i.getAttributeNode(\"id\").nodeValue===e[1]?[i]:t:[]}},d.filter.ID=function(e,t){var n=typeof e.getAttributeNode!=\"undefined\"&&e.getAttributeNode(\"id\");return e.nodeType===1&&n&&n.nodeValue===t}),i.removeChild(e),i=e=null}(),function(){var e=n.createElement(\"div\");e.appendChild(n.createComment(\"\")),e.getElementsByTagName(\"*\").length>0&&(d.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if(e[1]===\"*\"){var r=[];for(var i=0;n[i];i++)n[i].nodeType===1&&r.push(n[i]);n=r}return n}),e.innerHTML=\"<a href=\\'#\\'></a>\",e.firstChild&&typeof e.firstChild.getAttribute!=\"undefined\"&&e.firstChild.getAttribute(\"href\")!==\"#\"&&(d.attrHandle.href=function(e){return e.getAttribute(\"href\",2)}),e=null}(),n.querySelectorAll&&function(){var e=h,t=n.createElement(\"div\"),r=\"__sizzle__\";t.innerHTML=\"<p class=\\'TEST\\'></p>\";if(t.querySelectorAll&&t.querySelectorAll(\".TEST\").length===0)return;h=function(t,i,s,o){i=i||n;if(!o&&!h.isXML(i)){var u=/^(\\\\w+$)|^\\\\.([\\\\w\\\\-]+$)|^#([\\\\w\\\\-]+$)/.exec(t);if(u&&(i.nodeType===1||i.nodeType===9)){if(u[1])return y(i.getElementsByTagName(t),s);if(u[2]&&d.find.CLASS&&i.getElementsByClassName)return y(i.getElementsByClassName(u[2]),s)}if(i.nodeType===9){if(t===\"body\"&&i.body)return y([i.body],s);if(u&&u[3]){var a=i.getElementById(u[3]);if(!a||!a.parentNode)return y([],s);if(a.id===u[3])return y([a],s)}try{return y(i.querySelectorAll(t),s)}catch(f){}}else if(i.nodeType===1&&i.nodeName.toLowerCase()!==\"object\"){var l=i,c=i.getAttribute(\"id\"),p=c||r,v=i.parentNode,m=/^\\\\s*[+~]/.test(t);c?p=p.replace(/\\'/g,\"\\\\\\\\$&\"):i.setAttribute(\"id\",p),m&&v&&(i=i.parentNode);try{if(!m||v)return y(i.querySelectorAll(\"[id=\\'\"+p+\"\\'] \"+t),s)}catch(g){}finally{c||l.removeAttribute(\"id\")}}}return e(t,i,s,o)};for(var i in e)h[i]=e[i];t=null}(),function(){var e=n.documentElement,t=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(t){var r=!t.call(n.createElement(\"div\"),\"div\"),i=!1;try{t.call(n.documentElement,\"[test!=\\'\\']:sizzle\")}catch(s){i=!0}h.matchesSelector=function(e,n){n=n.replace(/\\\\=\\\\s*([^\\'\"\\\\]]*)\\\\s*\\\\]/g,\"=\\'$1\\']\");if(!h.isXML(e))try{if(i||!d.match.PSEUDO.test(n)&&!/!=/.test(n)){var s=t.call(e,n);if(s||!r||e.document&&e.document.nodeType!==11)return s}}catch(o){}return h(n,null,null,[e]).length>0}}}(),function(){var e=n.createElement(\"div\");e.innerHTML=\"<div class=\\'test e\\'></div><div class=\\'test\\'></div>\";if(!e.getElementsByClassName||e.getElementsByClassName(\"e\").length===0)return;e.lastChild.className=\"e\";if(e.getElementsByClassName(\"e\").length===1)return;d.order.splice(1,0,\"CLASS\"),d.find.CLASS=function(e,t,n){if(typeof t.getElementsByClassName!=\"undefined\"&&!n)return t.getElementsByClassName(e[1])},e=null}(),n.documentElement.contains?h.contains=function(e,t){return e!==t&&(e.contains?e.contains(t):!0)}:n.documentElement.compareDocumentPosition?h.contains=function(e,t){return!!(e.compareDocumentPosition(t)&16)}:h.contains=function(){return!1},h.isXML=function(e){var t=(e?e.ownerDocument||e:0).documentElement;return t?t.nodeName!==\"HTML\":!1};var T=function(e,t,n){var r,i=[],s=\"\",o=t.nodeType?[t]:t;while(r=d.match.PSEUDO.exec(e))s+=r[0],e=e.replace(d.match.PSEUDO,\"\");e=d.relative[e]?e+\"*\":e;for(var u=0,a=o.length;u<a;u++)h(e,o[u],i,n);return h.filter(s,i)};h.attr=s.attr,h.selectors.attrMap={},s.find=h,s.expr=h.selectors,s.expr[\":\"]=s.expr.filters,s.unique=h.uniqueSort,s.text=h.getText,s.isXMLDoc=h.isXML,s.contains=h.contains}();var j=/Until$/,F=/^(?:parents|prevUntil|prevAll)/,I=/,/,q=/^.[^:#\\\\[\\\\.,]*$/,R=Array.prototype.slice,U=s.expr.match.POS,z={children:!0,contents:!0,next:!0,prev:!0};s.fn.extend({find:function(e){var t=this,n,r;if(typeof e!=\"string\")return s(e).filter(function(){for(n=0,r=t.length;n<r;n++)if(s.contains(t[n],this))return!0});var i=this.pushStack(\"\",\"find\",e),o,u,a;for(n=0,r=this.length;n<r;n++){o=i.length,s.find(e,this[n],i);if(n>0)for(u=o;u<i.length;u++)for(a=0;a<o;a++)if(i[a]===i[u]){i.splice(u--,1);break}}return i},has:function(e){var t=s(e);return this.filter(function(){for(var e=0,n=t.length;e<n;e++)if(s.contains(this,t[e]))return!0})},not:function(e){return this.pushStack(X(this,e,!1),\"not\",e)},filter:function(e){return this.pushStack(X(this,e,!0),\"filter\",e)},is:function(e){return!!e&&(typeof e==\"string\"?U.test(e)?s(e,this.context).index(this[0])>=0:s.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){var n=[],r,i,o=this[0];if(s.isArray(e)){var u=1;while(o&&o.ownerDocument&&o!==t){for(r=0;r<e.length;r++)s(o).is(e[r])&&n.push({selector:e[r],elem:o,level:u});o=o.parentNode,u++}return n}var a=U.test(e)||typeof e!=\"string\"?s(e,t||this.context):0;for(r=0,i=this.length;r<i;r++){o=this[r];while(o){if(a?a.index(o)>-1:s.find.matchesSelector(o,e)){n.push(o);break}o=o.parentNode;if(!o||!o.ownerDocument||o===t||o.nodeType===11)break}}return n=n.length>1?s.unique(n):n,this.pushStack(n,\"closest\",e)},index:function(e){return e?typeof e==\"string\"?s.inArray(this[0],s(e)):s.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n=typeof e==\"string\"?s(e,t):s.makeArray(e&&e.nodeType?[e]:e),r=s.merge(this.get(),n);return this.pushStack(W(n[0])||W(r[0])?r:s.unique(r))},andSelf:function(){return this.add(this.prevObject)}}),s.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return s.dir(e,\"parentNode\")},parentsUntil:function(e,t,n){return s.dir(e,\"parentNode\",n)},next:function(e){return s.nth(e,2,\"nextSibling\")},prev:function(e){return s.nth(e,2,\"previousSibling\")},nextAll:function(e){return s.dir(e,\"nextSibling\")},prevAll:function(e){return s.dir(e,\"previousSibling\")},nextUntil:function(e,t,n){return s.dir(e,\"nextSibling\",n)},prevUntil:function(e,t,n){return s.dir(e,\"previousSibling\",n)},siblings:function(e){return s.sibling(e.parentNode.firstChild,e)},children:function(e){return s.sibling(e.firstChild)},contents:function(e){return s.nodeName(e,\"iframe\")?e.contentDocument||e.contentWindow.document:s.makeArray(e.childNodes)}},function(e,t){s.fn[e]=function(n,r){var i=s.map(this,t,n);return j.test(e)||(r=n),r&&typeof r==\"string\"&&(i=s.filter(r,i)),i=this.length>1&&!z[e]?s.unique(i):i,(this.length>1||I.test(r))&&F.test(e)&&(i=i.reverse()),this.pushStack(i,e,R.call(arguments).join(\",\"))}}),s.extend({filter:function(e,t,n){return n&&(e=\":not(\"+e+\")\"),t.length===1?s.find.matchesSelector(t[0],e)?[t[0]]:[]:s.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&o.nodeType!==9&&(r===t||o.nodeType!==1||!s(o).is(r)))o.nodeType===1&&i.push(o),o=o[n];return i},nth:function(e,t,n,r){t=t||1;var i=0;for(;e;e=e[n])if(e.nodeType===1&&++i===t)break;return e},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)e.nodeType===1&&e!==t&&n.push(e);return n}});var $=\"abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video\",J=/ jQuery\\\\d+=\"(?:\\\\d+|null)\"/g,K=/^\\\\s+/,Q=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\\\\w:]+)[^>]*)\\\\/>/ig,G=/<([\\\\w:]+)/,Y=/<tbody/i,Z=/<|&#?\\\\w+;/,et=/<(?:script|style)/i,tt=/<(?:script|object|embed|option|style)/i,nt=new RegExp(\"<(?:\"+$+\")\",\"i\"),rt=/checked\\\\s*(?:[^=]|=\\\\s*.checked.)/i,it=/\\\\/(java|ecma)script/i,st=/^\\\\s*<!(?:\\\\[CDATA\\\\[|\\\\-\\\\-)/,ot={option:[1,\"<select multiple=\\'multiple\\'>\",\"</select>\"],legend:[1,\"<fieldset>\",\"</fieldset>\"],thead:[1,\"<table>\",\"</table>\"],tr:[2,\"<table><tbody>\",\"</tbody></table>\"],td:[3,\"<table><tbody><tr>\",\"</tr></tbody></table>\"],col:[2,\"<table><tbody></tbody><colgroup>\",\"</colgroup></table>\"],area:[1,\"<map>\",\"</map>\"],_default:[0,\"\",\"\"]},ut=V(n);ot.optgroup=ot.option,ot.tbody=ot.tfoot=ot.colgroup=ot.caption=ot.thead,ot.th=ot.td,s.support.htmlSerialize||(ot._default=[1,\"div<div>\",\"</div>\"]),s.fn.extend({text:function(e){return s.isFunction(e)?this.each(function(t){var n=s(this);n.text(e.call(this,t,n.text()))}):typeof e!=\"object\"&&e!==t?this.empty().append((this[0]&&this[0].ownerDocument||n).createTextNode(e)):s.text(this)},wrapAll:function(e){if(s.isFunction(e))return this.each(function(t){s(this).wrapAll(e.call(this,t))});if(this[0]){var t=s(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstChild&&e.firstChild.nodeType===1)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){return s.isFunction(e)?this.each(function(t){s(this).wrapInner(e.call(this,t))}):this.each(function(){var t=s(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=s.isFunction(e);return this.each(function(n){s(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){s.nodeName(this,\"body\")||s(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){this.nodeType===1&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){this.nodeType===1&&this.insertBefore(e,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this)});if(arguments.length){var e=s.clean(arguments);return e.push.apply(e,this.toArray()),this.pushStack(e,\"before\",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(e){this.parentNode.insertBefore(e,this.nextSibling)});if(arguments.length){var e=this.pushStack(this,\"after\",arguments);return e.push.apply(e,s.clean(arguments)),e}},remove:function(e,t){for(var n=0,r;(r=this[n])!=null;n++)if(!e||s.filter(e,[r]).length)!t&&r.nodeType===1&&(s.cleanData(r.getElementsByTagName(\"*\")),s.cleanData([r])),r.parentNode&&r.parentNode.removeChild(r);return this},empty:function(){for(var e=0,t;(t=this[e])!=null;e++){t.nodeType===1&&s.cleanData(t.getElementsByTagName(\"*\"));while(t.firstChild)t.removeChild(t.firstChild)}return this},clone:function(e,t){return e=e==null?!1:e,t=t==null?e:t,this.map(function(){return s.clone(this,e,t)})},html:function(e){if(e===t)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(J,\"\"):null;if(typeof e==\"string\"&&!et.test(e)&&(s.support.leadingWhitespace||!K.test(e))&&!ot[(G.exec(e)||[\"\",\"\"])[1].toLowerCase()]){e=e.replace(Q,\"<$1></$2>\");try{for(var n=0,r=this.length;n<r;n++)this[n].nodeType===1&&(s.cleanData(this[n].getElementsByTagName(\"*\")),this[n].innerHTML=e)}catch(i){this.empty().append(e)}}else s.isFunction(e)?this.each(function(t){var n=s(this);n.html(e.call(this,t,n.html()))}):this.empty().append(e);return this},replaceWith:function(e){return this[0]&&this[0].parentNode?s.isFunction(e)?this.each(function(t){var n=s(this),r=n.html();n.replaceWith(e.call(this,t,r))}):(typeof e!=\"string\"&&(e=s(e).detach()),this.each(function(){var t=this.nextSibling,n=this.parentNode;s(this).remove(),t?s(t).before(e):s(n).append(e)})):this.length?this.pushStack(s(s.isFunction(e)?e():e),\"replaceWith\",e):this},detach:function(e){return this.remove(e,!0)},domManip:function(e,n,r){var i,o,u,a,f=e[0],l=[];if(!s.support.checkClone&&arguments.length===3&&typeof f==\"string\"&&rt.test(f))return this.each(function(){s(this).domManip(e,n,r,!0)});if(s.isFunction(f))return this.each(function(i){var o=s(this);e[0]=f.call(this,i,n?o.html():t),o.domManip(e,n,r)});if(this[0]){a=f&&f.parentNode,s.support.parentNode&&a&&a.nodeType===11&&a.childNodes.length===this.length?i={fragment:a}:i=s.buildFragment(e,this,l),u=i.fragment,u.childNodes.length===1?o=u=u.firstChild:o=u.firstChild;if(o){n=n&&s.nodeName(o,\"tr\");for(var c=0,h=this.length,p=h-1;c<h;c++)r.call(n?at(this[c],o):this[c],i.cacheable||h>1&&c<p?s.clone(u,!0,!0):u)}l.length&&s.each(l,vt)}return this}}),s.buildFragment=function(e,t,r){var i,o,u,a,f=e[0];return t&&t[0]&&(a=t[0].ownerDocument||t[0]),a.createDocumentFragment||(a=n),e.length===1&&typeof f==\"string\"&&f.length<512&&a===n&&f.charAt(0)===\"<\"&&!tt.test(f)&&(s.support.checkClone||!rt.test(f))&&(s.support.html5Clone||!nt.test(f))&&(o=!0,u=s.fragments[f],u&&u!==1&&(i=u)),i||(i=a.createDocumentFragment(),s.clean(e,a,i,r)),o&&(s.fragments[f]=u?i:1),{fragment:i,cacheable:o}},s.fragments={},s.each({appendTo:\"append\",prependTo:\"prepend\",insertBefore:\"before\",insertAfter:\"after\",replaceAll:\"replaceWith\"},function(e,t){s.fn[e]=function(n){var r=[],i=s(n),o=this.length===1&&this[0].parentNode;if(o&&o.nodeType===11&&o.childNodes.length===1&&i.length===1)return i[t](this[0]),this;for(var u=0,a=i.length;u<a;u++){var f=(u>0?this.clone(!0):this).get();s(i[u])[t](f),r=r.concat(f)}return this.pushStack(r,e,i.selector)}}),s.extend({clone:function(e,t,n){var r,i,o,u=s.support.html5Clone||!nt.test(\"<\"+e.nodeName)?e.cloneNode(!0):dt(e);if((!s.support.noCloneEvent||!s.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!s.isXMLDoc(e)){lt(e,u),r=ct(e),i=ct(u);for(o=0;r[o];++o)i[o]&&lt(r[o],i[o])}if(t){ft(e,u);if(n){r=ct(e),i=ct(u);for(o=0;r[o];++o)ft(r[o],i[o])}}return r=i=null,u},clean:function(e,t,r,i){var o;t=t||n,typeof t.createElement==\"undefined\"&&(t=t.ownerDocument||t[0]&&t[0].ownerDocument||n);var u=[],a;for(var f=0,l;(l=e[f])!=null;f++){typeof l==\"number\"&&(l+=\"\");if(!l)continue;if(typeof l==\"string\")if(!Z.test(l))l=t.createTextNode(l);else{l=l.replace(Q,\"<$1></$2>\");var c=(G.exec(l)||[\"\",\"\"])[1].toLowerCase(),h=ot[c]||ot._default,p=h[0],d=t.createElement(\"div\");t===n?ut.appendChild(d):V(t).appendChild(d),d.innerHTML=h[1]+l+h[2];while(p--)d=d.lastChild;if(!s.support.tbody){var v=Y.test(l),m=c===\"table\"&&!v?d.firstChild&&d.firstChild.childNodes:h[1]===\"<table>\"&&!v?d.childNodes:[];for(a=m.length-1;a>=0;--a)s.nodeName(m[a],\"tbody\")&&!m[a].childNodes.length&&m[a].parentNode.removeChild(m[a])}!s.support.leadingWhitespace&&K.test(l)&&d.insertBefore(t.createTextNode(K.exec(l)[0]),d.firstChild),l=d.childNodes}var g;if(!s.support.appendChecked)if(l[0]&&typeof (g=l.length)==\"number\")for(a=0;a<g;a++)pt(l[a]);else pt(l);l.nodeType?u.push(l):u=s.merge(u,l)}if(r){o=function(e){return!e.type||it.test(e.type)};for(f=0;u[f];f++)if(i&&s.nodeName(u[f],\"script\")&&(!u[f].type||u[f].type.toLowerCase()===\"text/javascript\"))i.push(u[f].parentNode?u[f].parentNode.removeChild(u[f]):u[f]);else{if(u[f].nodeType===1){var y=s.grep(u[f].getElementsByTagName(\"script\"),o);u.splice.apply(u,[f+1,0].concat(y))}r.appendChild(u[f])}}return u},cleanData:function(e){var t,n,r=s.cache,i=s.event.special,o=s.support.deleteExpando;for(var u=0,a;(a=e[u])!=null;u++){if(a.nodeName&&s.noData[a.nodeName.toLowerCase()])continue;n=a[s.expando];if(n){t=r[n];if(t&&t.events){for(var f in t.events)i[f]?s.event.remove(a,f):s.removeEvent(a,f,t.handle);t.handle&&(t.handle.elem=null)}o?delete a[s.expando]:a.removeAttribute&&a.removeAttribute(s.expando),delete r[n]}}}});var mt=/alpha\\\\([^)]*\\\\)/i,gt=/opacity=([^)]*)/,yt=/([A-Z]|^ms)/g,bt=/^-?\\\\d+(?:px)?$/i,wt=/^-?\\\\d/,Et=/^([\\\\-+])=([\\\\-+.\\\\de]+)/,St={position:\"absolute\",visibility:\"hidden\",display:\"block\"},xt=[\"Left\",\"Right\"],Tt=[\"Top\",\"Bottom\"],Nt,Ct,kt;s.fn.css=function(e,n){return arguments.length===2&&n===t?this:s.access(this,e,n,!0,function(e,n,r){return r!==t?s.style(e,n,r):s.css(e,n)})},s.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Nt(e,\"opacity\",\"opacity\");return n===\"\"?\"1\":n}return e.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{\"float\":s.support.cssFloat?\"cssFloat\":\"styleFloat\"},style:function(e,n,r,i){if(!e||e.nodeType===3||e.nodeType===8||!e.style)return;var o,u,a=s.camelCase(n),f=e.style,l=s.cssHooks[a];n=s.cssProps[a]||a;if(r===t)return l&&\"get\"in l&&(o=l.get(e,!1,i))!==t?o:f[n];u=typeof r,u===\"string\"&&(o=Et.exec(r))&&(r=+(o[1]+1)*+o[2]+parseFloat(s.css(e,n)),u=\"number\");if(r==null||u===\"number\"&&isNaN(r))return;u===\"number\"&&!s.cssNumber[a]&&(r+=\"px\");if(!l||!(\"set\"in l)||(r=l.set(e,r))!==t)try{f[n]=r}catch(c){}},css:function(e,n,r){var i,o;n=s.camelCase(n),o=s.cssHooks[n],n=s.cssProps[n]||n,n===\"cssFloat\"&&(n=\"float\");if(o&&\"get\"in o&&(i=o.get(e,!0,r))!==t)return i;if(Nt)return Nt(e,n)},swap:function(e,t,n){var r={};for(var i in t)r[i]=e.style[i],e.style[i]=t[i];n.call(e);for(i in t)e.style[i]=r[i]}}),s.curCSS=s.css,s.each([\"height\",\"width\"],function(e,t){s.cssHooks[t]={get:function(e,n,r){var i;if(n)return e.offsetWidth!==0?Lt(e,t,r):(s.swap(e,St,function(){i=Lt(e,t,r)}),i)},set:function(e,t){if(!bt.test(t))return t;t=parseFloat(t);if(t>=0)return t+\"px\"}}}),s.support.opacity||(s.cssHooks.opacity={get:function(e,t){return gt.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||\"\")?parseFloat(RegExp.$1)/100+\"\":t?\"1\":\"\"},set:function(e,t){var n=e.style,r=e.currentStyle,i=s.isNumeric(t)?\"alpha(opacity=\"+t*100+\")\":\"\",o=r&&r.filter||n.filter||\"\";n.zoom=1;if(t>=1&&s.trim(o.replace(mt,\"\"))===\"\"){n.removeAttribute(\"filter\");if(r&&!r.filter)return}n.filter=mt.test(o)?o.replace(mt,i):o+\" \"+i}}),s(function(){s.support.reliableMarginRight||(s.cssHooks.marginRight={get:function(e,t){var n;return s.swap(e,{display:\"inline-block\"},function(){t?n=Nt(e,\"margin-right\",\"marginRight\"):n=e.style.marginRight}),n}})}),n.defaultView&&n.defaultView.getComputedStyle&&(Ct=function(e,t){var n,r,i;return t=t.replace(yt,\"-$1\").toLowerCase(),(r=e.ownerDocument.defaultView)&&(i=r.getComputedStyle(e,null))&&(n=i.getPropertyValue(t),n===\"\"&&!s.contains(e.ownerDocument.documentElement,e)&&(n=s.style(e,t))),n}),n.documentElement.currentStyle&&(kt=function(e,t){var n,r,i,s=e.currentStyle&&e.currentStyle[t],o=e.style;return s===null&&o&&(i=o[t])&&(s=i),!bt.test(s)&&wt.test(s)&&(n=o.left,r=e.runtimeStyle&&e.runtimeStyle.left,r&&(e.runtimeStyle.left=e.currentStyle.left),o.left=t===\"fontSize\"?\"1em\":s||0,s=o.pixelLeft+\"px\",o.left=n,r&&(e.runtimeStyle.left=r)),s===\"\"?\"auto\":s}),Nt=Ct||kt,s.expr&&s.expr.filters&&(s.expr.filters.hidden=function(e){var t=e.offsetWidth,n=e.offsetHeight;return t===0&&n===0||!s.support.reliableHiddenOffsets&&(e.style&&e.style.display||s.css(e,\"display\"))===\"none\"},s.expr.filters.visible=function(e){return!s.expr.filters.hidden(e)});var At=/%20/g,Ot=/\\\\[\\\\]$/,Mt=/\\\\r?\\\\n/g,_t=/#.*$/,Dt=/^(.*?):[ \\\\t]*([^\\\\r\\\\n]*)\\\\r?$/mg,Pt=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Ht=/^(?:about|app|app\\\\-storage|.+\\\\-extension|file|res|widget):$/,Bt=/^(?:GET|HEAD)$/,jt=/^\\\\/\\\\//,Ft=/\\\\?/,It=/<script\\\\b[^<]*(?:(?!<\\\\/script>)<[^<]*)*<\\\\/script>/gi,qt=/^(?:select|textarea)/i,Rt=/\\\\s+/,Ut=/([?&])_=[^&]*/,zt=/^([\\\\w\\\\+\\\\.\\\\-]+:)(?:\\\\/\\\\/([^\\\\/?#:]*)(?::(\\\\d+))?)?/,Wt=s.fn.load,Xt={},Vt={},$t,Jt,Kt=[\"*/\"]+[\"*\"];try{$t=i.href}catch(Qt){$t=n.createElement(\"a\"),$t.href=\"\",$t=$t.href}Jt=zt.exec($t.toLowerCase())||[],s.fn.extend({load:function(e,n,r){if(typeof e!=\"string\"&&Wt)return Wt.apply(this,arguments);if(!this.length)return this;var i=e.indexOf(\" \");if(i>=0){var o=e.slice(i,e.length);e=e.slice(0,i)}var u=\"GET\";n&&(s.isFunction(n)?(r=n,n=t):typeof n==\"object\"&&(n=s.param(n,s.ajaxSettings.traditional),u=\"POST\"));var a=this;return s.ajax({url:e,type:u,dataType:\"html\",data:n,complete:function(e,t,n){n=e.responseText,e.isResolved()&&(e.done(function(e){n=e}),a.html(o?s(\"<div>\").append(n.replace(It,\"\")).find(o):n)),r&&a.each(r,[n,t,e])}}),this},serialize:function(){return s.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?s.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||qt.test(this.nodeName)||Pt.test(this.type))}).map(function(e,t){var n=s(this).val();return n==null?null:s.isArray(n)?s.map(n,function(e,n){return{name:t.name,value:e.replace(Mt,\"\\\\r\\\\n\")}}):{name:t.name,value:n.replace(Mt,\"\\\\r\\\\n\")}}).get()}}),s.each(\"ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend\".split(\" \"),function(e,t){s.fn[t]=function(e){return this.on(t,e)}}),s.each([\"get\",\"post\"],function(e,n){s[n]=function(e,r,i,o){return s.isFunction(r)&&(o=o||i,i=r,r=t),s.ajax({type:n,url:e,data:r,success:i,dataType:o})}}),s.extend({getScript:function(e,n){return s.get(e,t,n,\"script\")},getJSON:function(e,t,n){return s.get(e,t,n,\"json\")},ajaxSetup:function(e,t){return t?Zt(e,s.ajaxSettings):(t=e,e=s.ajaxSettings),Zt(e,t),e},ajaxSettings:{url:$t,isLocal:Ht.test(Jt[1]),global:!0,type:\"GET\",contentType:\"application/x-www-form-urlencoded\",processData:!0,async:!0,accepts:{xml:\"application/xml, text/xml\",html:\"text/html\",text:\"text/plain\",json:\"application/json, text/javascript\",\"*\":Kt},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:\"responseXML\",text:\"responseText\"},converters:{\"* text\":e.String,\"text html\":!0,\"text json\":s.parseJSON,\"text xml\":s.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:Gt(Xt),ajaxTransport:Gt(Vt),ajax:function(e,n){function S(e,n,c,h){if(y===2)return;y=2,m&&clearTimeout(m),v=t,p=h||\"\",E.readyState=e>0?4:0;var d,g,w,S=n,x=c?tn(r,E,c):t,T,N;if(e>=200&&e<300||e===304){if(r.ifModified){if(T=E.getResponseHeader(\"Last-Modified\"))s.lastModified[l]=T;if(N=E.getResponseHeader(\"Etag\"))s.etag[l]=N}if(e===304)S=\"notmodified\",d=!0;else try{g=nn(r,x),S=\"success\",d=!0}catch(C){S=\"parsererror\",w=C}}else{w=S;if(!S||e)S=\"error\",e<0&&(e=0)}E.status=e,E.statusText=\"\"+(n||S),d?u.resolveWith(i,[g,S,E]):u.rejectWith(i,[E,S,w]),E.statusCode(f),f=t,b&&o.trigger(\"ajax\"+(d?\"Success\":\"Error\"),[E,r,d?g:w]),a.fireWith(i,[E,S]),b&&(o.trigger(\"ajaxComplete\",[E,r]),--s.active||s.event.trigger(\"ajaxStop\"))}typeof e==\"object\"&&(n=e,e=t),n=n||{};var r=s.ajaxSetup({},n),i=r.context||r,o=i!==r&&(i.nodeType||i instanceof s)?s(i):s.event,u=s.Deferred(),a=s.Callbacks(\"once memory\"),f=r.statusCode||{},l,c={},h={},p,d,v,m,g,y=0,b,w,E={readyState:0,setRequestHeader:function(e,t){if(!y){var n=e.toLowerCase();e=h[n]=h[n]||e,c[e]=t}return this},getAllResponseHeaders:function(){return y===2?p:null},getResponseHeader:function(e){var n;if(y===2){if(!d){d={};while(n=Dt.exec(p))d[n[1].toLowerCase()]=n[2]}n=d[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return y||(r.mimeType=e),this},abort:function(e){return e=e||\"abort\",v&&v.abort(e),S(0,e),this}};u.promise(E),E.success=E.done,E.error=E.fail,E.complete=a.add,E.statusCode=function(e){if(e){var t;if(y<2)for(t in e)f[t]=[f[t],e[t]];else t=e[E.status],E.then(t,t)}return this},r.url=((e||r.url)+\"\").replace(_t,\"\").replace(jt,Jt[1]+\"//\"),r.dataTypes=s.trim(r.dataType||\"*\").toLowerCase().split(Rt),r.crossDomain==null&&(g=zt.exec(r.url.toLowerCase()),r.crossDomain=!(!g||g[1]==Jt[1]&&g[2]==Jt[2]&&(g[3]||(g[1]===\"http:\"?80:443))==(Jt[3]||(Jt[1]===\"http:\"?80:443)))),r.data&&r.processData&&typeof r.data!=\"string\"&&(r.data=s.param(r.data,r.traditional)),Yt(Xt,r,n,E);if(y===2)return!1;b=r.global,r.type=r.type.toUpperCase(),r.hasContent=!Bt.test(r.type),b&&s.active++===0&&s.event.trigger(\"ajaxStart\");if(!r.hasContent){r.data&&(r.url+=(Ft.test(r.url)?\"&\":\"?\")+r.data,delete r.data),l=r.url;if(r.cache===!1){var x=s.now(),T=r.url.replace(Ut,\"$1_=\"+x);r.url=T+(T===r.url?(Ft.test(r.url)?\"&\":\"?\")+\"_=\"+x:\"\")}}(r.data&&r.hasContent&&r.contentType!==!1||n.contentType)&&E.setRequestHeader(\"Content-Type\",r.contentType),r.ifModified&&(l=l||r.url,s.lastModified[l]&&E.setRequestHeader(\"If-Modified-Since\",s.lastModified[l]),s.etag[l]&&E.setRequestHeader(\"If-None-Match\",s.etag[l])),E.setRequestHeader(\"Accept\",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+(r.dataTypes[0]!==\"*\"?\", \"+Kt+\"; q=0.01\":\"\"):r.accepts[\"*\"]);for(w in r.headers)E.setRequestHeader(w,r.headers[w]);if(!r.beforeSend||r.beforeSend.call(i,E,r)!==!1&&y!==2){for(w in{success:1,error:1,complete:1})E[w](r[w]);v=Yt(Vt,r,n,E);if(!v)S(-1,\"No Transport\");else{E.readyState=1,b&&o.trigger(\"ajaxSend\",[E,r]),r.async&&r.timeout>0&&(m=setTimeout(function(){E.abort(\"timeout\")},r.timeout));try{y=1,v.send(c,S)}catch(N){if(!(y<2))throw N;S(-1,N)}}return E}return E.abort(),!1},param:function(e,n){var r=[],i=function(e,t){t=s.isFunction(t)?t():t,r[r.length]=encodeURIComponent(e)+\"=\"+encodeURIComponent(t)};n===t&&(n=s.ajaxSettings.traditional);if(s.isArray(e)||e.jquery&&!s.isPlainObject(e))s.each(e,function(){i(this.name,this.value)});else for(var o in e)en(o,e[o],n,i);return r.join(\"&\").replace(At,\"+\")}}),s.extend({active:0,lastModified:{},etag:{}});var rn=s.now(),sn=/(\\\\=)\\\\?(&|$)|\\\\?\\\\?/i;s.ajaxSetup({jsonp:\"callback\",jsonpCallback:function(){return s.expando+\"_\"+rn++}}),s.ajaxPrefilter(\"json jsonp\",function(t,n,r){var i=t.contentType===\"application/x-www-form-urlencoded\"&&typeof t.data==\"string\";if(t.dataTypes[0]===\"jsonp\"||t.jsonp!==!1&&(sn.test(t.url)||i&&sn.test(t.data))){var o,u=t.jsonpCallback=s.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a=e[u],f=t.url,l=t.data,c=\"$1\"+u+\"$2\";return t.jsonp!==!1&&(f=f.replace(sn,c),t.url===f&&(i&&(l=l.replace(sn,c)),t.data===l&&(f+=(/\\\\?/.test(f)?\"&\":\"?\")+t.jsonp+\"=\"+u))),t.url=f,t.data=l,e[u]=function(e){o=[e]},r.always(function(){e[u]=a,o&&s.isFunction(a)&&e[u](o[0])}),t.converters[\"script json\"]=function(){return o||s.error(u+\" was not called\"),o[0]},t.dataTypes[0]=\"json\",\"script\"}}),s.ajaxSetup({accepts:{script:\"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"},contents:{script:/javascript|ecmascript/},converters:{\"text script\":function(e){return s.globalEval(e),e}}}),s.ajaxPrefilter(\"script\",function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type=\"GET\",e.global=!1)}),s.ajaxTransport(\"script\",function(e){if(e.crossDomain){var r,i=n.head||n.getElementsByTagName(\"head\")[0]||n.documentElement;return{send:function(s,o){r=n.createElement(\"script\"),r.async=\"async\",e.scriptCharset&&(r.charset=e.scriptCharset),r.src=e.url,r.onload=r.onreadystatechange=function(e,n){if(n||!r.readyState||/loaded|complete/.test(r.readyState))r.onload=r.onreadystatechange=null,i&&r.parentNode&&i.removeChild(r),r=t,n||o(200,\"success\")},i.insertBefore(r,i.firstChild)},abort:function(){r&&r.onload(0,1)}}}});var on=e.ActiveXObject?function(){for(var e in an)an[e](0,1)}:!1,un=0,an;s.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&fn()||ln()}:fn,function(e){s.extend(s.support,{ajax:!!e,cors:!!e&&\"withCredentials\"in e})}(s.ajaxSettings.xhr()),s.support.ajax&&s.ajaxTransport(function(n){if(!n.crossDomain||s.support.cors){var r;return{send:function(i,o){var u=n.xhr(),a,f;n.username?u.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async);if(n.xhrFields)for(f in n.xhrFields)u[f]=n.xhrFields[f];n.mimeType&&u.overrideMimeType&&u.overrideMimeType(n.mimeType),!n.crossDomain&&!i[\"X-Requested-With\"]&&(i[\"X-Requested-With\"]=\"XMLHttpRequest\");try{for(f in i)u.setRequestHeader(f,i[f])}catch(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var f,l,c,h,p;try{if(r&&(i||u.readyState===4)){r=t,a&&(u.onreadystatechange=s.noop,on&&delete an[a]);if(i)u.readyState!==4&&u.abort();else{f=u.status,c=u.getAllResponseHeaders(),h={},p=u.responseXML,p&&p.documentElement&&(h.xml=p),h.text=u.responseText;try{l=u.statusText}catch(d){l=\"\"}!f&&n.isLocal&&!n.crossDomain?f=h.text?200:404:f===1223&&(f=204)}}}catch(v){i||o(-1,v)}h&&o(f,l,h,c)},!n.async||u.readyState===4?r():(a=++un,on&&(an||(an={},s(e).unload(on)),an[a]=r),u.onreadystatechange=r)},abort:function(){r&&r(0,1)}}}});var cn={},hn,pn,dn=/^(?:toggle|show|hide)$/,vn=/^([+\\\\-]=)?([\\\\d+.\\\\-]+)([a-z%]*)$/i,mn,gn=[[\"height\",\"marginTop\",\"marginBottom\",\"paddingTop\",\"paddingBottom\"],[\"width\",\"marginLeft\",\"marginRight\",\"paddingLeft\",\"paddingRight\"],[\"opacity\"]],yn;s.fn.extend({show:function(e,t,n){var r,i;if(e||e===0)return this.animate(En(\"show\",3),e,t,n);for(var o=0,u=this.length;o<u;o++)r=this[o],r.style&&(i=r.style.display,!s._data(r,\"olddisplay\")&&i===\"none\"&&(i=r.style.display=\"\"),i===\"\"&&s.css(r,\"display\")===\"none\"&&s._data(r,\"olddisplay\",Sn(r.nodeName)));for(o=0;o<u;o++){r=this[o];if(r.style){i=r.style.display;if(i===\"\"||i===\"none\")r.style.display=s._data(r,\"olddisplay\")||\"\"}}return this},hide:function(e,t,n){if(e||e===0)return this.animate(En(\"hide\",3),e,t,n);var r,i,o=0,u=this.length;for(;o<u;o++)r=this[o],r.style&&(i=s.css(r,\"display\"),i!==\"none\"&&!s._data(r,\"olddisplay\")&&s._data(r,\"olddisplay\",i));for(o=0;o<u;o++)this[o].style&&(this[o].style.display=\"none\");return this},_toggle:s.fn.toggle,toggle:function(e,t,n){var r=typeof e==\"boolean\";return s.isFunction(e)&&s.isFunction(t)?this._toggle.apply(this,arguments):e==null||r?this.each(function(){var t=r?e:s(this).is(\":hidden\");s(this)[t?\"show\":\"hide\"]()}):this.animate(En(\"toggle\",3),e,t,n),this},fadeTo:function(e,t,n,r){return this.filter(\":hidden\").css(\"opacity\",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){function o(){i.queue===!1&&s._mark(this);var t=s.extend({},i),n=this.nodeType===1,r=n&&s(this).is(\":hidden\"),o,u,a,f,l,c,h,p,d;t.animatedProperties={};for(a in e){o=s.camelCase(a),a!==o&&(e[o]=e[a],delete e[a]),u=e[o],s.isArray(u)?(t.animatedProperties[o]=u[1],u=e[o]=u[0]):t.animatedProperties[o]=t.specialEasing&&t.specialEasing[o]||t.easing||\"swing\";if(u===\"hide\"&&r||u===\"show\"&&!r)return t.complete.call(this);n&&(o===\"height\"||o===\"width\")&&(t.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],s.css(this,\"display\")===\"inline\"&&s.css(this,\"float\")===\"none\"&&(!s.support.inlineBlockNeedsLayout||Sn(this.nodeName)===\"inline\"?this.style.display=\"inline-block\":this.style.zoom=1))}t.overflow!=null&&(this.style.overflow=\"hidden\");for(a in e)f=new s.fx(this,t,a),u=e[a],dn.test(u)?(d=s._data(this,\"toggle\"+a)||(u===\"toggle\"?r?\"show\":\"hide\":0),d?(s._data(this,\"toggle\"+a,d===\"show\"?\"hide\":\"show\"),f[d]()):f[u]()):(l=vn.exec(u),c=f.cur(),l?(h=parseFloat(l[2]),p=l[3]||(s.cssNumber[a]?\"\":\"px\"),p!==\"px\"&&(s.style(this,a,(h||1)+p),c=(h||1)/f.cur()*c,s.style(this,a,c+p)),l[1]&&(h=(l[1]===\"-=\"?-1:1)*h+c),f.custom(c,h,p)):f.custom(c,u,\"\"));return!0}var i=s.speed(t,n,r);return s.isEmptyObject(e)?this.each(i.complete,[!1]):(e=s.extend({},e),i.queue===!1?this.each(o):this.queue(i.queue,o))},stop:function(e,n,r){return typeof e!=\"string\"&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||\"fx\",[]),this.each(function(){function u(e,t,n){var i=t[n];s.removeData(e,n,!0),i.stop(r)}var t,n=!1,i=s.timers,o=s._data(this);r||s._unmark(!0,this);if(e==null)for(t in o)o[t]&&o[t].stop&&t.indexOf(\".run\")===t.length-4&&u(this,o,t);else o[t=e+\".run\"]&&o[t].stop&&u(this,o,t);for(t=i.length;t--;)i[t].elem===this&&(e==null||i[t].queue===e)&&(r?i[t](!0):i[t].saveState(),n=!0,i.splice(t,1));(!r||!n)&&s.dequeue(this,e)})}}),s.each({slideDown:En(\"show\",1),slideUp:En(\"hide\",1),slideToggle:En(\"toggle\",1),fadeIn:{opacity:\"show\"},fadeOut:{opacity:\"hide\"},fadeToggle:{opacity:\"toggle\"}},function(e,t){s.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),s.extend({speed:function(e,t,n){var r=e&&typeof e==\"object\"?s.extend({},e):{complete:n||!n&&t||s.isFunction(e)&&e,duration:e,easing:n&&t||t&&!s.isFunction(t)&&t};r.duration=s.fx.off?0:typeof r.duration==\"number\"?r.duration:r.duration in s.fx.speeds?s.fx.speeds[r.duration]:s.fx.speeds._default;if(r.queue==null||r.queue===!0)r.queue=\"fx\";return r.old=r.complete,r.complete=function(e){s.isFunction(r.old)&&r.old.call(this),r.queue?s.dequeue(this,r.queue):e!==!1&&s._unmark(this)},r},easing:{linear:function(e,t,n,r){return n+r*e},swing:function(e,t,n,r){return(-Math.cos(e*Math.PI)/2+.5)*r+n}},timers:[],fx:function(e,t,n){this.options=t,this.elem=e,this.prop=n,t.orig=t.orig||{}}}),s.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(s.fx.step[this.prop]||s.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]==null||!!this.elem.style&&this.elem.style[this.prop]!=null){var e,t=s.css(this.elem,this.prop);return isNaN(e=parseFloat(t))?!t||t===\"auto\"?0:t:e}return this.elem[this.prop]},custom:function(e,n,r){function u(e){return i.step(e)}var i=this,o=s.fx;this.startTime=yn||bn(),this.end=n,this.now=this.start=e,this.pos=this.state=0,this.unit=r||this.unit||(s.cssNumber[this.prop]?\"\":\"px\"),u.queue=this.options.queue,u.elem=this.elem,u.saveState=function(){i.options.hide&&s._data(i.elem,\"fxshow\"+i.prop)===t&&s._data(i.elem,\"fxshow\"+i.prop,i.start)},u()&&s.timers.push(u)&&!mn&&(mn=setInterval(o.tick,o.interval))},show:function(){var e=s._data(this.elem,\"fxshow\"+this.prop);this.options.orig[this.prop]=e||s.style(this.elem,this.prop),this.options.show=!0,e!==t?this.custom(this.cur(),e):this.custom(this.prop===\"width\"||this.prop===\"height\"?1:0,this.cur()),s(this.elem).show()},hide:function(){this.options.orig[this.prop]=s._data(this.elem,\"fxshow\"+this.prop)||s.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(e){var t,n,r,i=yn||bn(),o=!0,u=this.elem,a=this.options;if(e||i>=a.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),a.animatedProperties[this.prop]=!0;for(t in a.animatedProperties)a.animatedProperties[t]!==!0&&(o=!1);if(o){a.overflow!=null&&!s.support.shrinkWrapBlocks&&s.each([\"\",\"X\",\"Y\"],function(e,t){u.style[\"overflow\"+t]=a.overflow[e]}),a.hide&&s(u).hide();if(a.hide||a.show)for(t in a.animatedProperties)s.style(u,t,a.orig[t]),s.removeData(u,\"fxshow\"+t,!0),s.removeData(u,\"toggle\"+t,!0);r=a.complete,r&&(a.complete=!1,r.call(u))}return!1}return a.duration==Infinity?this.now=i:(n=i-this.startTime,this.state=n/a.duration,this.pos=s.easing[a.animatedProperties[this.prop]](this.state,n,0,1,a.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},s.extend(s.fx,{tick:function(){var e,t=s.timers,n=0;for(;n<t.length;n++)e=t[n],!e()&&t[n]===e&&t.splice(n--,1);t.length||s.fx.stop()},interval:13,stop:function(){clearInterval(mn),mn=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){s.style(e.elem,\"opacity\",e.now)},_default:function(e){e.elem.style&&e.elem.style[e.prop]!=null?e.elem.style[e.prop]=e.now+e.unit:e.elem[e.prop]=e.now}}}),s.each([\"width\",\"height\"],function(e,t){s.fx.step[t]=function(e){s.style(e.elem,t,Math.max(0,e.now)+e.unit)}}),s.expr&&s.expr.filters&&(s.expr.filters.animated=function(e){return s.grep(s.timers,function(t){return e===t.elem}).length});var xn=/^t(?:able|d|h)$/i,Tn=/^(?:body|html)$/i;\"getBoundingClientRect\"in n.documentElement?s.fn.offset=function(e){var t=this[0],n;if(e)return this.each(function(t){s.offset.setOffset(this,e,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return s.offset.bodyOffset(t);try{n=t.getBoundingClientRect()}catch(r){}var i=t.ownerDocument,o=i.documentElement;if(!n||!s.contains(o,t))return n?{top:n.top,left:n.left}:{top:0,left:0};var u=i.body,a=Nn(i),f=o.clientTop||u.clientTop||0,l=o.clientLeft||u.clientLeft||0,c=a.pageYOffset||s.support.boxModel&&o.scrollTop||u.scrollTop,h=a.pageXOffset||s.support.boxModel&&o.scrollLeft||u.scrollLeft,p=n.top+c-f,d=n.left+h-l;return{top:p,left:d}}:s.fn.offset=function(e){var t=this[0];if(e)return this.each(function(t){s.offset.setOffset(this,e,t)});if(!t||!t.ownerDocument)return null;if(t===t.ownerDocument.body)return s.offset.bodyOffset(t);var n,r=t.offsetParent,i=t,o=t.ownerDocument,u=o.documentElement,a=o.body,f=o.defaultView,l=f?f.getComputedStyle(t,null):t.currentStyle,c=t.offsetTop,h=t.offsetLeft;while((t=t.parentNode)&&t!==a&&t!==u){if(s.support.fixedPosition&&l.position===\"fixed\")break;n=f?f.getComputedStyle(t,null):t.currentStyle,c-=t.scrollTop,h-=t.scrollLeft,t===r&&(c+=t.offsetTop,h+=t.offsetLeft,s.support.doesNotAddBorder&&(!s.support.doesAddBorderForTableAndCells||!xn.test(t.nodeName))&&(c+=parseFloat(n.borderTopWidth)||0,h+=parseFloat(n.borderLeftWidth)||0),i=r,r=t.offsetParent),s.support.subtractsBorderForOverflowNotVisible&&n.overflow!==\"visible\"&&(c+=parseFloat(n.borderTopWidth)||0,h+=parseFloat(n.borderLeftWidth)||0),l=n}if(l.position===\"relative\"||l.position===\"static\")c+=a.offsetTop,h+=a.offsetLeft;return s.support.fixedPosition&&l.position===\"fixed\"&&(c+=Math.max(u.scrollTop,a.scrollTop),h+=Math.max(u.scrollLeft,a.scrollLeft)),{top:c,left:h}},s.offset={bodyOffset:function(e){var t=e.offsetTop,n=e.offsetLeft;return s.support.doesNotIncludeMarginInBodyOffset&&(t+=parseFloat(s.css(e,\"marginTop\"))||0,n+=parseFloat(s.css(e,\"marginLeft\"))||0),{top:t,left:n}},setOffset:function(e,t,n){var r=s.css(e,\"position\");r===\"static\"&&(e.style.position=\"relative\");var i=s(e),o=i.offset(),u=s.css(e,\"top\"),a=s.css(e,\"left\"),f=(r===\"absolute\"||r===\"fixed\")&&s.inArray(\"auto\",[u,a])>-1,l={},c={},h,p;f?(c=i.position(),h=c.top,p=c.left):(h=parseFloat(u)||0,p=parseFloat(a)||0),s.isFunction(t)&&(t=t.call(e,n,o)),t.top!=null&&(l.top=t.top-o.top+h),t.left!=null&&(l.left=t.left-o.left+p),\"using\"in t?t.using.call(e,l):i.css(l)}},s.fn.extend({position:function(){if(!this[0])return null;var e=this[0],t=this.offsetParent(),n=this.offset(),r=Tn.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(s.css(e,\"marginTop\"))||0,n.left-=parseFloat(s.css(e,\"marginLeft\"))||0,r.top+=parseFloat(s.css(t[0],\"borderTopWidth\"))||0,r.left+=parseFloat(s.css(t[0],\"borderLeftWidth\"))||0,{top:n.top-r.top,left:n.left-r.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||n.body;while(e&&!Tn.test(e.nodeName)&&s.css(e,\"position\")===\"static\")e=e.offsetParent;return e})}}),s.each([\"Left\",\"Top\"],function(e,n){var r=\"scroll\"+n;s.fn[r]=function(n){var i,o;return n===t?(i=this[0],i?(o=Nn(i),o?\"pageXOffset\"in o?o[e?\"pageYOffset\":\"pageXOffset\"]:s.support.boxModel&&o.document.documentElement[r]||o.document.body[r]:i[r]):null):this.each(function(){o=Nn(this),o?o.scrollTo(e?s(o).scrollLeft():n,e?n:s(o).scrollTop()):this[r]=n})}}),s.each([\"Height\",\"Width\"],function(e,n){var r=n.toLowerCase();s.fn[\"inner\"+n]=function(){var e=this[0];return e?e.style?parseFloat(s.css(e,r,\"padding\")):this[r]():null},s.fn[\"outer\"+n]=function(e){var t=this[0];return t?t.style?parseFloat(s.css(t,r,e?\"margin\":\"border\")):this[r]():null},s.fn[r]=function(e){var i=this[0];if(!i)return e==null?null:this;if(s.isFunction(e))return this.each(function(t){var n=s(this);n[r](e.call(this,t,n[r]()))});if(s.isWindow(i)){var o=i.document.documentElement[\"client\"+n],u=i.document.body;return i.document.compatMode===\"CSS1Compat\"&&o||u&&u[\"client\"+n]||o}if(i.nodeType===9)return Math.max(i.documentElement[\"client\"+n],i.body[\"scroll\"+n],i.documentElement[\"scroll\"+n],i.body[\"offset\"+n],i.documentElement[\"offset\"+n]);if(e===t){var a=s.css(i,r),f=parseFloat(a);return s.isNumeric(f)?f:a}return this.css(r,typeof e==\"string\"?e:e+\"px\")}}),e.jQuery=e.$=s,typeof define==\"function\"&&define.amd&&define.amd.jQuery&&define(\"jquery\",[],function(){return s})})(window)'};return function(t){return e[t]}}(),i=function(){var t;return function(n){t?t.push(n):(t=[n],e.createFrame(function(e){var n,r;for(n=0,r=t.length;n<r;n+=1)t[n](e);t={push:function(t){t(e)}}}))}}(),u=function(e){l(\"fugly.js\",\"fugly\",e)},a=function(e){l(\"jquery-1.7.1.js\",\"jQuery\",e)},f=function(e){i(function(t){var n=t.contentWindow,i=function(){var t=n.JSON,r=t.stringify,i=function(e,t){var r,s,o;if(!e)return e;t||(t=[]);for(r=0,s=t.length;r<s;r+=1)if(t[r]===e)throw new TypeError(\"Converting circular structure to JSON\");if(Object.prototype.toString.call(e)===\"[object Array]\"){t.push(e),o=new n.Array;for(r=0,s=e.length;r<s;r+=1)o[r]=i(e[r],t);return o}if(Object.prototype.toString.call(e)===\"[object Object]\"){t.push(e),o=new n.Object;for(var u in e)if(Object.prototype.hasOwnProperty.call(e,u)){var a=t.splice(0);o[u]=i(e[u],a)}return o}return e};t.stringify=function(e){return r.apply(this,[i(e)].concat(Array.prototype.slice.call(arguments,1)))},o(e)};n.JSON?(r.JSON=n.JSON,i()):l(\"json2.js\",\"JSON\",i)})},l=function(e,t,s){i(function(i){var u=i.contentWindow,a=n(e);\"execScript\"in u?u.execScript(a):u.eval(a),r[t]=u[t],o(s)})};return function(n){t?t.push(n):(t=[s,n],e.ensure([u,a,f],function(){var e,n;for(e=0,n=t.length;e<n;e+=1)t[e]();t={push:function(e){e()}}}))}}(),a=function(t){chaordic.LOGGED_REMOTES.push(t),e.log(t.response.ok?\"DEBUG\":\"ERROR\",\"Remote request to: \"+t.url,t)},f={log:function(t,n,r){var i;t=t||\"DEBUG\";if(e.LOG_LEVELS[chaordic.Config.LOG_LEVEL]>chaordic.Base.LOG_LEVELS[t])return;if(typeof console==\"undefined\")return;chaordic.event.Tron.trace(t,r,n);if(typeof console[t.toLowerCase()]!=\"function\"){e.log(\"ERROR\",\"Invalid log level: \"+t,{message:n,data:r});return}i=[\"[CHAORDIC \"+t+\"] \"+n],r&&(i=i.concat([\"\\n\",r])),console[t.toLowerCase()].apply(console,i)}},l=f,c={remote:function(e,t,n,i){if(!arguments.length)throw new TypeError(\"[chaordic.Base#remote] We need an url to do a remote call.\");var s={url:e,params:t,time:{request:new Date}};t||(t={}),t.apiKey=chaordic.Config.API_KEY,n=n||function(){},i=i||function(){},r.jQuery.ajax({url:e,data:{q:chaordic.String.escapeNonAscii(r.JSON.stringify(t))},async:!0,dataType:\"jsonp\",traditional:!0}).done(function(e){if(e&&e.ok)return n.call(this,e)}).fail(function(e){return i.call(this,e)}).always(function(e,t,n){var r=new Date,i=r.getTime()-s.time.request.getTime();s.status=t,s.response=e,s.time.response=r,s.time.elapsed=i+\" ms\",a(s)})}},h=c;e={ensure3rdpartyDependencies:u,CHAORDIC_COOKIE:\"chaordic\",LOG_LEVELS:{DEBUG:0,INFO:1,WARN:2,ERROR:3,NONE:4},setLogger:function(e){l=e},restoreDefaultLogger:function(){l=f},extend:function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.superClass=t.prototype,t.prototype.constructor===Object.prototype.constructor&&(t.prototype.constructor=t)},log:function(e,t,n){try{l.log(e,t,n)}catch(r){if(l!==f)try{f.log(\"ERROR\",r)}catch(i){}}},logMessageProtocol:function(t,n){try{var r,i;t.ok||e.log(\"ERROR\",\"[\"+n+\"] \"+t.data);if(t.messages)for(r=0;r<t.messages.length;r+=1)i=t.messages[r],e.log(i.level,\"[\"+n+\"] \"+i.message)}catch(s){e.log(\"ERROR\",\"[\"+n+\"] \"+s)}},logMessageProtocolCallback:function(t,n){return function(r){e.logMessageProtocol(r,n),typeof t==\"function\"&&t(r)}},error:function(e){return e},remote:function(e,t,n,r){h.remote(e,t,n,r)},setRemoter:function(e){h=e},restoreDefaultRemoter:function(){h=c},onLoad:function(e){var t=chaordic.lib.jQuery,n=!1;(document.attachEvent?document.readyState===\"complete\":document.readyState!==\"loading\")?(e(),n=!0):(t(document).on(\"DOMContentLoaded\",function(){n||(e(),n=!0)}),t(document).on(\"readystatechange\",function(){!n&&(document.readyState===\"loaded\"||document.readyState===\"complete\")&&(e(),n=!0)}))},ensure:function(e,t){var n=[],r=0,i=e.length,s=function(){var e=0;while(e<i){if(!n[e])return;e+=1}o(t,0)},u=function(t){e[t](function(){n[t]=!0,s()})};if(i===0){o(t,0);return}while(r<i)n[r]=!1,u(r),r+=1},readCookie:function(){var t=chaordic.readCookie(e.CHAORDIC_COOKIE);if(t)try{var n=r.JSON.parse(t);if(Object.prototype.toString.call(n)===\"[object Object]\")return n;chaordic.Base.deleteCookie(),chaordic.Base.log(\"WARN\",\"Cookie isn't an object: \"+t)}catch(i){chaordic.Base.deleteCookie(),chaordic.Base.log(\"WARN\",\"Failed to parse chaordic cookie: \"+t+\" (\"+(i.message||i)+\")\")}return{}},deleteCookie:function(){chaordic.deleteCookie(e.CHAORDIC_COOKIE)},writeCookie:function(t){chaordic.writeCookie(e.CHAORDIC_COOKIE,r.JSON.stringify(t))},setLogLevel:function(t){var n=e.readCookie();n.logLevel=chaordic.Config.LOG_LEVEL=t||\"NONE\",e.writeCookie(n)},createMessageFrame:function(){var e=function(t){var n=r.jQuery(\"#chaordic-remote\",document);if(n.length===0){var i=document.getElementsByTagName(\"body\")[0]||document.documentElement,s=chaordic.Config,o=\"/static/postmediator\",u=s.PROTOCOL+s.DYNAMIC_HOST+o,a=document.createElement(\"iframe\");a.src=u,a.id=\"chaordic-remote\",a.scrolling=\"no\",a.frameBorder=\"0\",a.style.display=\"none\",a.allowTransparency=\"true\",i.insertBefore(a,i.firstChild),r.jQuery(a).load(function(){e=function(e){e(a)},t(a)})}else n.load(function(){t(n[0])})};return function(t){e(t)}}(),createFrame:function(e,t){var n=document.createElement(\"iframe\"),r='<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\"><html><head><title>chaordic</title>%IE_DOCUMENT_DOMAIN%</head><body style=\"margin: 0; border: 0; background-color: transparent;\"></body></html>',i=function(){var t=!1;try{t=n.contentWindow.document.getElementsByTagName(\"title\")[0].innerHTML===\"chaordic\"}catch(r){}t?e(n):o(i)};typeof t==\"undefined\"&&(t=document.getElementsByTagName(\"body\")[0]||document.documentElement),n.scrolling=\"no\",n.frameBorder=\"0\",n.style.display=\"none\",n.allowTransparency=\"true\",n.name=\"chaordic-\"+(new Date).getTime();if(!function(e){return e&&e[1]}(navigator.userAgent.match(/MSIE\\s([^;]*)/))||String(document.domain)===String(location.hostname)){t.insertBefore(n,t.firstChild);var s=5,u=function(){if(n.contentWindow&&s>0){s--;var e=n.contentWindow.document;e.write(r.replace(/\\%IE_DOCUMENT_DOMAIN\\%/,\"\")),e.close(),i()}else setTimeout(u,100)};u()}else{var a=r.replace(/\\%IE_DOCUMENT_DOMAIN\\%/,'<script>document.domain = \"'+document.domain+'\";</script>').replace(/\\//g,\"\\\\/\").replace(/\\\"/g,'\\\\\"').replace(/\\\\/g,\"\\\\\\\\\");n.src=\"javascript:'<script>window.onload=function (){document.write(\\\\'\"+a+\"\\\\');document.close();};</script>'\",t.insertBefore(n,t.firstChild),i()}}},chaordic.LOGGED_REMOTES=[],chaordic.Base=e}(),function(){var e={vertical:!1,animate:!0,loopScroll:!1,dynamicSize:!0,dynamicMode:\"box\",minCellSize:250,maxPages:undefined,maxVisibleItems:undefined,itemsPerPage:undefined,freeMode:!1},t=function(t,n,r){var i=chaordic.lib.jQuery,s=this;this.options={},chaordic.Object.merge(this.options,e),this.eventsCallbacks={},n&&(chaordic.Object.merge(this.options,n),this.options.dynamicMode!==\"box\"&&this.options.dynamicMode!==\"margin\"&&(this.options.dynamicMode=\"box\")),typeof this.options.itemsPerPage==\"number\"&&this.options.itemsPerPage>0&&(this.options.dynamicMode=\"box\",this.options.maxVisibleItems=1);var o=this.carouselDiv=i(t);return this.scrollFunction=this.options.vertical===!0?\"scrollTop\":\"scrollLeft\",this.getTouchPos=this.options.vertical===!0?this._getTouchPositionY:this._getTouchPositionX,this.items=[],this.frame=i('<div class=\"carousel-padding\"><div class=\"carousel-list\" style=\"position: relative; width: 100%; height: 100%; overflow: hidden;\"><ul class=\"carousel-products\"></ul></div></div>'),this.list=this.frame.find(\".carousel-products\"),this.scrollList=this.frame.find(\".carousel-list\"),o.append(this.frame),this.frame.css(\"height\",\"100%\"),this.page=1,this.cellSize=0,this.visibleItems=0,this.referenceItemIndex=0,this.previousReferenceItemPage=1,this.configureTouchScroll(),this.chaordicDiv=r,this};t.prototype.configureTouchScroll=function(){var e=this,t=this.frame.find(\".carousel-list\"),n=0,r,i,s;t.on(\"touchstart\",function(n){r=e.getTouchPos(n),s=t[e.scrollFunction]()}),this.on(\"paginationEnd\",function(){n=t[e.scrollFunction]()}),t.on(\"touchmove\",function(n){if(e.options.vertical){if(!(chaordic.lib.jQuery(window).width()>480))return;n.preventDefault()}e.list.find(\"> li\").slice(0,e.getTotalPages()*e.visibleItems).css(\"visibility\",\"visible\");var i=e.options.freeMode?s:e.getScrollOffset(),o=i+(r-e.getTouchPos(n)),u={top:i-e.frame.height(),bottom:i+e.frame.height(),left:i-e.frame.width(),right:i+e.frame.width()};!e.options.vertical&&u.left<=o&&o<=u.right?t.scrollLeft(o):e.options.vertical&&u.top<=o&&o<=u.bottom&&t.scrollTop(o)}),this.on(\"resize\",function(){n=t[e.scrollFunction]()}),t.on(\"touchend\",function(r){var i=e.page,s=e.page,o=t[e.scrollFunction](),u=o-n,a=Math.abs(u)/e.cellSize,f=.24;if(e.options.freeMode){var l=Math.round(o/e.cellSize);o=l*e.cellSize;var c={};c[e.scrollFunction]=o,t.animate(c,300,function(){o+=1,i=Math.ceil(o/(e.visibleItems*e.cellSize)),i<s&&l<=e.visibleItems*i-e.visibleItems?e.gotoPage(i):i>s&&e.gotoPage(i)})}else a>f&&(i=u>0?i+1:i-1,i>e.getTotalPages()&&i--),e.gotoPage(i)})},t.prototype._getTouchPositionX=function(e){return e.originalEvent.changedTouches[0].pageX},t.prototype._getTouchPositionY=function(e){return e.originalEvent.changedTouches[0].pageY},t.prototype.on=function(e,t){this.eventsCallbacks[e]||(this.eventsCallbacks[e]=[]),this.eventsCallbacks[e].push(t)},t.prototype.getVisibleElements=function(){if(this.options.dynamicSize===!1)return this.items.slice();var e=(this.page-1)*this.visibleItems;return e>0&&e+this.visibleItems>this.items.length&&(e=this.items.length-this.visibleItems),this.items.slice(e,e+this.visibleItems)},t.prototype.getScrollOffset=function(){var e=this.page>1?this.visibleItems*(this.page-1)*this.cellSize:0;return this.page===Math.ceil(this.items.length/this.visibleItems)?this.items.length*this.cellSize-this.visibleItems*this.cellSize:e},t.prototype.gotoPage=function(e){var t,n,r,i;t=this;if(e<1||e>Math.ceil(this.items.length/this.visibleItems))return;n=this.page,this.page=e,t.list.find(\"> li\").slice(0,t.getTotalPages()*t.visibleItems).css(\"visibility\",\"visible\");if(this.eventsCallbacks.paginationStart)for(i=0;i<this.eventsCallbacks.paginationStart.length;i++)this.eventsCallbacks.paginationStart[i](e,n);if(this.options.animate===!0)r={},r[this.options.vertical?\"scrollTop\":\"scrollLeft\"]=this.getScrollOffset(),this.scrollList.animate(r,{complete:function(){if(t.eventsCallbacks.paginationEnd)for(i=0;i<t.eventsCallbacks.paginationEnd.length;i++)t.eventsCallbacks.paginationEnd[i](e,n);t.fixClasses()}});else{this.scrollList[this.scrollFunction](this.getScrollOffset());if(this.eventsCallbacks.paginationEnd)for(i=0;i<this.eventsCallbacks.paginationEnd.length;i++)this.eventsCallbacks.paginationEnd[i](e,n)}this.referenceItemIndex=this.page*this.visibleItems-this.visibleItems},t.prototype.getTotalPages=function(){var e=Math.ceil(this.items.length/this.visibleItems);return typeof this.options.maxPages==\"number\"&&e>this.options.maxPages&&(e=this.options.maxPages),e},t.prototype.nextPage=function(){this.options.loopScroll===!0&&this.page===this.getTotalPages()?this.gotoPage(1):this.gotoPage(this.page+1)},t.prototype.previousPage=function(){this.options.loopScroll===!0&&this.page-1===0?this.gotoPage(this.getTotalPages()):this.gotoPage(this.page-1)},t.prototype.getPaginationInfo=function(){return{pageItems:this.visibleItems,pageIndex:this.page-1}};var n=function(e){var t,n,r=chaordic.lib.jQuery;return typeof this.options.itemsPerPage==\"number\"&&this.options.itemsPerPage>0?(n=r('<div class=\"carousel-item\">'+e+\"</div>\"),this.lastPage&&this.lastPageLength<this.options.itemsPerPage?(t=this.lastPage,this.lastPageLength++):(this.lastPageLength=1,t=this.lastPage=r(\"<li></li>\"),this.items.push(t),this.list.append(t)),t.append(n),n):(t=r('<li class=\"carousel-item\"></li>'),t.html(e),this.items.push(t),this.list.append(t),t)};t.prototype.append=function(e){if(this.options.maxPages&&this.items.length>=this.options.maxPages)return;if(chaordic.lib.jQuery.isArray(e)){var t=[];for(var r=0;r<e;r++)t.push(n.call(this,e));return t}return n.call(this,e)},t.prototype.replaceAt=function(e,t){var n=chaordic.lib.jQuery(\"<li></li>\"),r=this.items[e];return n.html(t),r.replaceWith(n),this.items.splice(e,1,n),n.attr(\"style\",r.attr(\"style\")),n},t.prototype.fixClasses=function(){var e=this.getVisibleElements(),t=chaordic.lib.jQuery,n=this.page===1?0:(this.page-1)*this.visibleItems,r=this.page*this.visibleItems-1;r=r>this.items.length-1?this.items.length-1:r,this.page===this.getTotalPages()&&this.page>1&&(n=this.items.length-this.visibleItems);var i=this.list.find(\">li\");i.removeClass(\"last-visible\"),i.removeClass(\"first-visible\"),this.page>1&&i.slice(0,n).css(\"visibility\",\"hidden\"),i.slice(n,r+1).css(\"visibility\",\"visible\"),this.page!==this.getTotalPages()&&i.slice(r+1).css(\"visibility\",\"hidden\"),i.eq(n).addClass(\"first-visible\"),i.eq(r).addClass(\"last-visible\"),chaordic.isMobile&&(i.on(\"touchstart\",function(e){t(\".touch-active\",i).removeClass(\"touch-active\"),t(this).addClass(\"touch-active\")}),i.on(\"touchend\",function(e){t(this).removeClass(\"touch-active\")}))},t.prototype.resize=function(){var e,t,n,r,i,s,o,u,a=chaordic.lib.jQuery;if(this.items.length===0)return;if(this.previousItemLength===this.items.length&&this.options.dynamicSize===!1)return;e=this,t=this.options.vertical===!0,n=t?a(this.items[0]).outerHeight():a(this.items[0]).outerWidth();var f=function(){if(e.eventsCallbacks.resize)for(o=0;o<e.eventsCallbacks.resize.length;o++)e.eventsCallbacks.resize[o]()};if(this.options.dynamicSize===!1){this.list.css(t?\"height\":\"width\",n*this.items.length+\"px\"),f();return}this.frame.css({\"max-width\":chaordic.lib.jQuery(this.chaordicDiv||window).width()-(parseInt(this.frame.css(\"padding-left\"))+parseInt(this.frame.css(\"padding-right\")))}),r=t?this.frame.height():this.frame.width();var l=this.options.maxVisibleItems;this.options.dynamicMode===\"box\"?(this.visibleItems=Math.floor(r/this.options.minCellSize)||1,l&&l<this.visibleItems&&(this.visibleItems=l),n=this.cellSize=Math.floor(r/this.visibleItems),this.list.find(\"> li\").width(this.cellSize+\"px\")):(n>r&&(n=r),this.visibleItems=Math.floor(r/n),l&&l<this.visibleItems&&(this.visibleItems=l),i=Math.floor((r-this.visibleItems*n)/(this.visibleItems*2)),this.cellSize=n+i*2,this.list.find(\"> li\").css(\"margin\",t?i+\"px 0\":\"0 \"+i+\"px\")),s=Math.ceil((this.referenceItemIndex+1)/this.visibleItems),this.previousReferenceItemPage!==s&&(this.page=this.previousReferenceItemPage=s),this.page>this.options.maxPages&&(this.page=this.previousReferenceItemPage=this.options.maxPages,this.referenceItemIndex=(this.page-1)*this.page.visibleItems),this.list.css(t?\"height\":\"width\",this.cellSize*this.items.length+\"px\"),this.scrollList[this.scrollFunction](this.getScrollOffset()),this.fixClasses(),f(),this.options.dynamicSize!==!1&&!this.__firstResize&&(u=this.frame[0].ownerDocument.defaultView||this.frame[0].ownerDocument.parentWindow,chaordic.lib.jQuery(u).resize(function(){e.resize.call(e)}),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){e.resize.call(e)}),this.__firstResize=!0)},chaordic.Carousel=t}(),function(){var e=\"chaordic-remote-collect\",t=window.attachEvent&&!window.addEventListener,n,r;window.addEventListener?(n=function(e){window.addEventListener(\"message\",e,!1)},r=function(e){window.removeEventListener(\"message\",e,!1)}):(n=function(e){window.attachEvent(\"onmessage\",e)},r=function(e){window.detachEvent(\"onmessage\",e)});var i=function(e,t,n){var r=1,i=chaordic.Config,s=i.PROTOCOL+i.EVENT_HOST,o;if(e.origin!==s)return;try{o=JSON.parse(e.data)}catch(u){var a=new Error(\"Failed to send message\");return a.event=e,n(a)}if(o!==undefined&&t===o.messageId&&o.state===r)try{var f=JSON.parse(o.data);return f.ok?n(null,f):n(f)}catch(u){n(null,o.data)}},s=function(){var s=[],o=[];return{baseUrl:function(){return chaordic.Config.PROTOCOL+chaordic.Config.EVENT_HOST},post:function(e,t,u){var a=this;return this.getFrame(function(f){var l=a.formatPostData(e,t,u);f.contentWindow.postMessage(chaordic.lib.JSON.stringify(l),a.baseUrl()),n(function(e){i(e,l.messageId,function(e,t){var n;r(i);if(e){for(n=0;n<o.length;n++)o[n].call(a,e);return}for(n=0;n<s.length;n++)s[n].call(a,t)})})}),{success:function(e){return typeof e==\"function\"&&s.push(e),this},error:function(e){return typeof e==\"function\"&&o.push(e),this}}},formatPostData:function(e,n,r){r=r||{},t&&(r.accept=\"text/plain\"),typeof n!=\"string\"&&(n=chaordic.lib.JSON.stringify(n),r[\"Content-type\"]=\"application/json\");var i={messageId:(new Date).getTime().toString()+\"-\"+Math.random(),url:e,data:n,headers:r,method:\"POST\"};return i},getFrame:function(t){var n=document.getElementById(e);if(n){if(n.loaded===!0)return t(n);n.addEventListener(\"load\",function(){return n.loaded=!0,t(n)});return}n=document.createElement(\"frame\"),n.id=e,n.src=this.baseUrl()+\"/static/postmediator\",n.scrolling=\"no\",n.frameBorder=\"0\",n.style.display=\"none\",n.allowTransparency=\"true\",n.loaded=!1,n.addEventListener(\"load\",function(){return n.loaded=!0,t(n)});var r=document.getElementsByTagName(\"body\")[0]||document.documentElement;r.insertBefore(n,r.firstChild)}}};chaordic.CollectServer=s}(),function(){var e=function(e){e=e||{},this.options={decimalPlaces:typeof e.decimalPlaces==\"number\"?e.decimalPlaces:2,decimalPoint:typeof e.decimalPoint==\"string\"?e.decimalPoint:\",\",thousandsSeparator:typeof e.thousandsSeparator==\"string\"?e.thousandsSeparator:\".\",currencySymbol:typeof e.currencySymbol==\"string\"?e.currencySymbol:\"R$ \"}};e.prototype.format=function(e){e=e.toFixed(this.options.decimalPlaces);var t=e.split(\".\"),n=t[0],r=Number(t[1]||0),i=\"\";r+=Math.pow(10,this.options.decimalPlaces),r=r.toFixed().substr(1);if(this.options.thousandsSeparator.length){for(var s=n.length-1,o=0;s>-1;--s)o++%3===0&&i&&(i=this.options.thousandsSeparator+i),i=n.charAt(s)+i;i.charAt(0)===this.options.thousandsSeparator&&(i=i.substr(1))}else i=n;return i+=this.options.decimalPoint+r,this.options.currencySymbol+i},e.parseBRLNumber=function(e){if(typeof e==\"string\"){var t=e.match(/\\D*([\\d\\.]+,\\d+)/);return t?parseFloat(t[1].replace(\".\",\"\").replace(\",\",\".\")):void 0}return e},e.format=function(e){var t=chaordic.Currency.defaultFormatter;return t?t.format(e):e},chaordic.Currency=e}(),function(){\"use strict\";var e=function(e,t){var n=chaordic.lib.jQuery,r=0;return n.Deferred(function(n){var i=function(){t().done(function(){n.resolve.apply(this,arguments)}).fail(function(){r<e?(r++,i()):n.reject.apply(this,arguments)})};i()})};chaordic.Deferred={retriable:e}}(),function(){var e={isInViewport:function(e,t){t=t||1;var n=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight,i=r-n.top;n.top>r||n.bottom<0?i=0:n.top<0&&(i=n.bottom);var s=i/n.height;return s>=t},isNearViewport:function(e,t){t=t||0;var n=e.getBoundingClientRect(),r=window.innerHeight||document.documentElement.clientHeight;return n.top<0?t>-n.bottom:r+t>n.top}};chaordic.Element=e}(),function(){var e={debounce:function(e,t,n){var r,i,s,o,u;return function(){s=this,i=arguments,o=new Date;var a=function(){var f=new Date-o;f<t?r=setTimeout(a,t-f):(r=null,n||(u=e.apply(s,i)))},f=n&&!r;return r||(r=setTimeout(a,t)),f&&(u=e.apply(s,i)),u}}};chaordic.Function=e}(),function(){\"use strict\";chaordic.Http={APPLICATION_JSON:\"application/json\",CONTENT_TYPE:\"Content-type\"}}(),function(){var e=function(e){try{return decodeURIComponent(e)}catch(t){if(window.unescape)return window.unescape(e)}},t={getParams:function(n){var r={},i=typeof n==\"string\"?t.getSearch(n):n.search;return String.prototype.replace.call(i,/([^=&?]+)=([^&]*)/g,function(t,n,i){if(r.hasOwnProperty(n)){var s=r[n];chaordic.lib.jQuery.isArray(s)?s.push(e(i)):r[n]=[s,e(i)]}else r[n]=e(i)}),r},getSearch:function(e){var t=String(e).split(\"?\");return t.shift(),\"?\"+t.join(\"?\")}};chaordic.Location=t}(),function(){var e,t,n=function(n){var s=chaordic.Object.copy(n);e=chaordic.Object,t=chaordic.lib.jQuery,chaordic.Config.USE_COLLECT_API&&(r(s),i(s)),chaordic.meta=s},r=function(t){typeof t.page==\"string\"&&(t.page={name:t.page}),e.moveFrom(t,\"selectedSpecs\").to(t.page),e.moveFrom(t,\"tags\").to(t.page),e.moveFrom(t,\"categories\").to(t.page),e.moveFrom(t,\"salesChannel\").to(t.page)},i=function(e){var t={cart:s,transaction:o,search:u,product:a},n=t[e.page.name];n&&n(e)},s=function(e){e.cart={},e.items&&(e.cart.items=t.map(e.items,f)),delete e.items},o=function(n){n.transaction={},e.moveFrom(n,\"id\").to(n.transaction),n.items&&(n.transaction.items=t.map(n.items,f)),n.page.name=\"confirmation\",delete n.items},u=function(n){n.search={},e.moveFrom(n,\"query\").to(n.search),n.items&&(n.search.items=t.map(n.items,l)),delete n.items},a=function(t){t.product=t.product||{},e.moveFrom(t,\"pid\").to(t.product,\"id\"),e.moveFrom(t,\"price\").to(t.product),e.moveFrom(t,\"status\").to(t.product),delete t.sku},f=function(t){var n={product:{}};return e.copyFrom(t,\"pid\").to(n.product,\"id\"),e.copyFrom(t,\"sku\").to(n.product),e.copyFrom(t,\"price\").to(n.product),e.copyFrom(t,\"quantity\").to(n),n},l=function(t){var n={};return e.copyFrom(t,\"pid\").to(n,\"id\"),e.copyFrom(t,\"sku\").to(n),e.copyFrom(t,\"price\").to(n),e.copyFrom(t,\"quantity\").to(n),n};chaordic.MetaTranslator={translate:n}}(),function(){var e={},t=chaordic.Arrays,n=function(e){return e.id+chaordic.onsite.flattenSpecs(e.selectedSpecs||{})};chaordic.NoRepeatRecs={isVisible:function(t){return Boolean(e[n(t)])},markVisible:function(t){e[n(t)]=!0},markAllVisible:function(e,t){var n,r=t?Math.min(e.length,t):e.length;for(n=0;n<r;n++)chaordic.NoRepeatRecs.markVisible(e[n])},resetVisibles:function(){e={}}};var r=function(e){var n=e.enabled&&e.result&&e.result.displays;return n&&n.length&&t.reduce(n,function(e,t){return e&&t.recs&&t.recs.length},!0)};chaordic.NoRepeatRecs.SET_UB_VISIBLE_INTERCEPTOR=function(e){e.ok&&e.widgets&&chaordic.Object.forEachOwnProperty(e.widgets,function(e){if((e.feature===\"UltimateBuy\"||e.feature===\"WishList\")&&r(e)){var t=e.probablyVisibleLength||e.minProducts;chaordic.NoRepeatRecs.markAllVisible(e.result.displays[0].recs,t)}})}}(),function(){var e=function(){var e={},t=function(n,r){return e[n]=r,t};return t.build=function(){return e},t},t={merge:function(e,n,r){if(!t.isObject(e)||!t.isObject(n))return;if(r)for(var i,s=r.length-1;s>-1;s-=1)n.hasOwnProperty(i=r[s])&&(e[i]=n[i]);else t.forEachOwnProperty(n,function(n,r){t.isObject(e[r])&&t.isObject(n)?t.merge(e[r],n):e[r]=n})},defaults:function(e,n){t.forEachOwnProperty(n,function(t,n){e[n]===void 0&&(e[n]=t)})},forEachProperty:function(e,t,n){for(var r in e)t.call(n,e[r],r,e)},forEachOwnProperty:function(e,t,n){for(var r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r,e)},copy:function(e){var n,r;if(null===e||typeof e!=\"object\")return e;if(e instanceof Date)return n=new Date,n.setTime(e.getTime()),n;if(t.isArray(e)){n=[];for(var i=0,s=e.length;i<s;i++)n[i]=t.copy(e[i]);return n}if(t.isObject(e)){n={};for(r in e)e.hasOwnProperty(r)&&(n[r]=t.copy(e[r]));return n}throw new Error(\"Unable to copy obj! Its type isn't supported.\")},keys:function(e){\"use strict\";if(Object.keys)return Object.keys(e);var t=Object.prototype.hasOwnProperty,n=!{toString:null}.propertyIsEnumerable(\"toString\"),r=[\"toString\",\"toLocaleString\",\"valueOf\",\"hasOwnProperty\",\"isPrototypeOf\",\"propertyIsEnumerable\",\"constructor\"],i=r.length;if(typeof e==\"function\"||typeof e==\"object\"&&e!==null){var s=[],o,u;for(o in e)t.call(e,o)&&s.push(o);if(n)for(u=0;u<i;u++)t.call(e,r[u])&&s.push(r[u]);return s}throw new TypeError(\"Object.keys called on non-object\")},bind:function(e,t){return function(){t.apply(e,arguments)}},create:function(e){var t=function(){};t.prototype=e;var n=new t;return n.constructor=t,n},omitUndefineds:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&e[n]!==undefined&&(t[n]=e[n]);return t},isObject:function(e){return Object.prototype.toString.apply(e)===\"[object Object]\"},isArray:function(e){return Object.prototype.toString.apply(e)===\"[object Array]\"},copyFrom:function(e,t){return{to:function(n,r){e[t]&&(n[r||t]=e[t])}}},moveFrom:function(e,t){return{to:function(n,r){e[t]&&(n[r||t]=e[t]),delete e[t]}}},isDate:function(e){return Object.prototype.toString.call(e)===\"[object Date]\"}};chaordic.Object=t}(),function(){\"use strict\";function e(e,t){w=!1;var n=E.shift();n&&r(n.profile,n.options)}function t(e,t){E.push({profile:e,options:t})}function n(t,n){n.forEach(function(n){if(!t.hasOwnProperty(n))throw e(),new TypeError('missing \"'+n+'\" param')})}function r(t,r){var i={};w=!0,typeof t==\"object\"?r=t:(c(t),i=x[t]),r=g.extend(!0,{},b,i,r),n(r,[\"url\",\"products\",\"transformResult\",\"mode\"]),l(r.mode);var s=r.mode,u=r.url,h=r.callForEachSku?f(r.products):r.products,p=r.separator||\",\",d=r.idIdentifier||\"id\",v=r.callForEachSku&&(r.skuIdentifier||\"sku\"),m=S[s](u,h,p,r.customizeURL),y=m.map(function(e){return a({requestData:e,retries:r.retries,doRequest:r.doRequest,requestParams:r.requestParams,transformResult:r.transformResult,onComplete:r.onComplete,onFailure:r.onFailure,trackEvent:r.trackEvent,idIdentifier:d,skuIdentifier:v})}),E=r.onFinish||o;g.when.apply(g,y).always(function(){e(),E()})}function i(e,t,n,r){var i=[],s=[];t.forEach(function(e){s.push(e.id),e.sku&&i.push(e.sku)});var o=e.replace(\"%ID\",s.join(n));return o=o.replace(\"%SKU\",i.join(n)),typeof r==\"function\"&&(o=r(o,t)),[{url:o,input:t}]}function s(e,t,n,r){return t.map(function(t){var n=e.replace(\"%ID\",t.id),i=t.sku||\"\";return n=n.replace(\"%SKU\",i),typeof r==\"function\"&&(n=r(n,t)),{url:n,input:t}})}function o(){}function u(e){return e=parseInt(e),isFinite(e)?e:3}function a(e){var t=e.onComplete||p(\"missing onComplete callback\"),n=e.onFailure||p(\"missing onFailure callback\"),r=u(e.retries),i=e.requestParams||{},s=e.doRequest||g.ajax,o=e.requestData.url,a=e.requestData.input,f=g.Deferred(),l=e.trackEvent!==!1,c=e.idIdentifier,h=e.skuIdentifier;return chaordic.Deferred.retriable(r,function(){var e={url:o,timeout:3e3,beforeSend:function(){this.startTime=(new Date).getTime()}};return chaordic.Object.merge(e,i),s(e)}).always(function(){if(l){var e=(new Date).getTime()-this.startTime;chaordic.event.Tron.incrementRta(\"price-api.elapsedTime.count\"),chaordic.event.Tron.incrementRta(\"price-api.elapsedTime.total\",e),chaordic.event.Tron.percentilRta(\"price-api.elapsedTime\",e,[50,90])}}).done(function(r){l&&chaordic.event.Tron.incrementRta(\"price-api.success\"),r=e.transformResult(r,a),Array.isArray(a)&&Array.isArray(r)&&d(a,r,n,c,h),t(r,a),f.resolve()}).fail(function(e){if(l){var t=\"price-api.fail\";e.status&&(t+=\".\"+e.status),chaordic.event.Tron.incrementRta(t)}n(e,a),f.resolve()}),f}function f(e){var t=[];return e.forEach(function(e){Array.isArray(e.skus)&&e.skus.length>0?e.skus.forEach(function(n){t.push({id:e.id,sku:n.sku})}):t.push({id:e.id})}),t}function l(t){if(!y.hasOwnProperty(t))throw e(),new TypeError('invalid \"mode\" param')}function c(t){if(!x.hasOwnProperty(t))throw e(),new TypeError('invalid \"profile\" param')}function h(t){if(typeof t!=\"object\")throw e(),new TypeError(\"options param must be an object\")}function p(e){return function(){chaordic.Base.log(\"WARN\",e)}}function d(e,t,n,r,i){var s=[],o=[];t.forEach(function(e){if(i){if(e[i]&&e[r]){var t=e[r],n=e[i];s[t]||(s[t]=[]),s[t][n]=e}}else e[r]&&(s[e[r]]=e)}),e.forEach(function(e){i?e[r]&&e[i]&&(!s[e[r]]||!s[e[r]][e[i]])&&o.push(e):e[r]&&!s[e[r]]&&o.push(e)}),o.length>0&&n(null,o)}var v=\"one-at-a-time\",m=\"all-at-once\",g,y={};y[v]=!0,y[m]=!0;var b,w=!1,E=[],S={};S[v]=s,S[m]=i;var x,T={init:function(e){h(e),g=chaordic.lib.jQuery,b=e.default||{},x={};for(var t in e)e.hasOwnProperty(t)&&t!==\"default\"&&(x[t]=e[t]);chaordic.event.Tron.setEnabled(!0),this.active=!0},get:function(e,n){w?t(e,n):r(e,n)}};chaordic.PriceApi=T}(),function(){var e=function(e,t){var n=null,r=null,i=1e3,s=60*i,o=60*s,u=24*o,a=7*u,f=chaordic.Config.THEME_LANG.split(\"-\")[0];t=t||{};switch(f){case\"es\":t.minuteAgo=t.minuteAgo||\"Hace %i minuto\",t.minutesAgo=t.minutesAgo||\"Hace %i minutos\",t.hourAgo=t.hoursAgo||\"Hace %i hora\",t.hoursAgo=t.hoursAgo||\"Hace %i hora\",t.dayAgo=t.daysAgo||\"Hace %i día\",t.daysAgo=t.daysAgo||\"Hace %i días\",t.weekAgo=t.weeksAgo||\"Hace %i semana\",t.weeksAgo=t.weeksAgo||\"Hace %i semanas\";break;default:t.minuteAgo=t.minuteAgo||\"%i minuto atrás\",t.minutesAgo=t.minutesAgo||\"%i minutos atrás\",t.hourAgo=t.hoursAgo||\"%i hora atrás\",t.hoursAgo=t.hoursAgo||\"%i horas atrás\",t.dayAgo=t.daysAgo||\"%i dia atrás\",t.daysAgo=t.daysAgo||\"%i dias atrás\",t.weekAgo=t.weeksAgo||\"%i semana atrás\",t.weeksAgo=t.weeksAgo||\"%i semanas atrás\"}return e<=s?(r=1,n=t.minuteAgo):e<o?(r=e/s,n=t.minutesAgo):e<2*o?(r=e/o,n=t.hourAgo):e<u?(r=e/o,n=t.hoursAgo):e<2*u?(r=e/u,n=t.dayAgo):e<a?(r=e/u,n=t.daysAgo):e<2*a?(r=e/a,n=t.weekAgo):(r=e/a,n=t.weeksAgo),n=n.replace(\"%i\",Math.floor(r)),n},t=function(e){e&&(chaordic.Object.merge(this,e),this.update())};t.prototype.parseBRLPrice=function(){var e=chaordic.Currency.parseBRLNumber;this.price=typeof this.price==\"string\"?e(this.price):this.price,this.oldPrice=typeof this.oldPrice==\"string\"?e(this.oldPrice):this.oldPrice,this.installment&&typeof this.installment.price==\"string\"&&(this.installment.price=e(this.installment.price))},t.prototype.updateDiscount=function(){var e,t=this.price,n=this.oldPrice;t&&n?this.discount=Math.round((n-t)*100/n):this.discount=void 0},t.prototype.expandPrices=function(){var e=chaordic.Currency.format;this.oldPrice&&this.price>=this.oldPrice||!this.oldPrice?delete this.oldPrice:this.oldPrice&&(this.oldPriceString=e(this.oldPrice)),this.price&&(this.priceString=e(this.price)),this.installment&&this.installment.price&&(this.installment.priceString=e(this.installment.price))},t.prototype.update=function(){this.age&&(this.ageText=e(this.age)),this.parseBRLPrice(),this.updateDiscount(),this.expandPrices()},t.prototype.expandProductUrl=function(e,t){var n=/%THUMBNAIL_WIDTH%/g,r=/%THUMBNAIL_HEIGHT%/g,i=/%IMAGE_NAME%/g,s=/%PRODUCT_ID%/g,o=/%DETAIL_URL%/g,u=this,a=t.product;s.test(a)&&(a=a.replace(s,u.id)),o.test(a)&&(a=a.replace(o,u.url));var f=u.url;u.url.indexOf(\"http\")!==0&&(u.url=chaordic.window.location.protocol+(a.indexOf(\"//\")===0?\"\":\"//\")+a);var l=chaordic.window.location.protocol===\"https:\"&&t.image.https?t.image.https:t.image.http,c;for(var h in u.images){if(!u.images.hasOwnProperty(h))continue;var p=u.images[h];if(p.indexOf(\"http\")===0)continue;c=l,s.test(c)&&(c=c.replace(s,u.id)),o.test(c)&&(c=c.replace(o,f)),i.test(c)&&(chaordic.window.location.protocol===\"https:\"&&u.imagesSsl&&typeof u.imagesSsl==\"object\"&&(u.imagesSsl[h]||u.imagesSsl[\"default\"])&&(p=u.imagesSsl[h]||u.imagesSsl[\"default\"]),c=c.replace(i,p)),n.test(c)&&(c=c.replace(n,e.thumbnailWidth)),r.test(c)&&(c=c.replace(r,e.thumbnailHeight)),c.indexOf(\"http\")===0?u.images[h]=c:u.images[h]=chaordic.window.location.protocol+(c.indexOf(\"//\")===0?\"\":\"//\")+c}},chaordic.Product=t}(),function(){var e,t;window.addEventListener?(e=function(e){window.addEventListener(\"message\",e,!1)},t=function(e){window.removeEventListener(\"message\",e,!1)}):(e=function(e){window.attachEvent(\"onmessage\",e)},t=function(e){window.detachEvent(\"onmessage\",e)});var n={RECEIVED:0,DONE:1,ERROR:-1},r=function(e,t,n){var r=this;this.url=e,this.params=n,this.options=t,this.callback=[],this.errback=[];var i=function(e){for(var t=0;t<r.callback.length;t++)r.callback[t].call(r,e)},s=function(e){for(var t=0;t<r.errback.length;t++)r.errback[t].call(r,e)};t.method===\"post\"?this.framePost(e,n,i,s):this.jsonp(e,n,i,s)};r.prototype.jsonp=function(e,t,n,r){chaordic.lib.jQuery.ajax({url:e,data:{q:chaordic.String.escapeNonAscii(chaordic.lib.JSON.stringify(t))},async:!0,dataType:\"jsonp\",traditional:!0,timeout:t.timeout||null}).done(function(e){e&&e.ok?n.call(this,e):r.call(this,e)}).fail(function(e){r.call(this,e)})},r.prototype.framePost=function(r,i,s,o){var u=this.options,a=u.headers,f=chaordic.Config,l=chaordic.lib.JSON,c=(new Date).getTime().toString()+\"-\"+Math.random(),h=f.PROTOCOL+f.DYNAMIC_HOST,p=function(e,n){t(d),e(n)},d=function(e){var t;if(e.origin===h){try{t=l.parse(e.data)}catch(r){var i=new Error(\"Failed to send message\");return i.event=e,p(o,i)}if(t!==undefined&&c===t.messageId&&t.state===n.DONE)try{var u=l.parse(t.data);u.ok?p(s,u):p(o,u)}catch(r){p(s,t.data)}}},v=function(e){var t=chaordic.lib.JSON,n=chaordic.Http;return a&&a[n.CONTENT_TYPE]===n.APPLICATION_JSON?t.stringify(e):\"q=\"+encodeURIComponent(t.stringify(e))};chaordic.Base.createMessageFrame(function(t){var n={messageId:c,url:r,data:v(i),headers:a,method:\"POST\"};t.contentWindow.postMessage(chaordic.lib.JSON.stringify(n),f.PROTOCOL+f.DYNAMIC_HOST),e(d)})},r.prototype.success=function(e){return typeof e==\"function\"&&this.callback.push(e),this},r.prototype.error=function(e){return typeof e==\"function\"&&this.errback.push(e),this};var i=function(e,t,n){this.protocol=e,this.dynamicHost=t,this.headers=n};i.prototype.get=function(e,t){var n=chaordic.Config,i=n[this.protocol]+n[this.dynamicHost];return t=chaordic.Object.copy(t),this._fillMissingInformation(t),new r(i.replace(/\\/$/,\"\")+\"/\"+e.replace(/^\\//,\"\"),this._buildRequestOptions(\"get\"),t)},i.prototype.post=function(e,t,n){return t=chaordic.Object.copy(t),this._fillMissingInformation(t),new r(e,this._buildRequestOptions(\"post\",n),t)},i.prototype._buildRequestOptions=function(e,t){var n=this.headers||{};return chaordic.Object.merge(n,t),{method:e,headers:n}},i.prototype._fillMissingInformation=function(e){var t=chaordic.Object.copy(chaordic.meta);e.apiKey||(e.apiKey=chaordic.Config.API_KEY),!e.user&&t.user&&(e.user=t.user),!e.page&&t.page&&(e.page=t.page),e.host||(e.host=String(location.host)),e.identity||(e.identity=chaordic.Identity),e.testGroup||(e.testGroup=chaordic.Test)},chaordic.Server=i}(),function(){var e={endsWith:function(e,t){return e.lastIndexOf(t)===e.length-t.length},startsWith:function(e,t){return e.indexOf(t)===0},contains:function(e,t){return e.indexOf(t)!==-1},truncate:function(e,t,n){return e?(arguments.length<3&&(n=\"...\"),e.length>t?e.substr(0,t)+n:e):\"\"},capitalize:function(e){return e?e.length===1?e.charAt(0).toUpperCase():e.charAt(0).toUpperCase()+e.substr(1):e},camelize:function(t){if(!t)return t;var n=t.split(/[_\\-\\s]+/),r=\"\",i;for(var s=0;s<n.length;s++)i=n[s],r===\"\"?r+=i:r+=e.capitalize(i);return r===\"\"?t:r},escapeNonAscii:function(e){var t=\"\",n=e.length,r;if(!n)return e;for(r=0;r<n;r+=1){var i=e.charCodeAt(r);if(i<128){t+=e.charAt(r);continue}var s=i.toString(16);while(s.length<4)s=\"0\"+s;t+=\"\\\\u\"+s}return t},isEmpty:function(e){return!e||/^\\s*$/.test(e)},trim:function(){var e=String.prototype.trim||function(){return this.replace(/^[\\s\\uFEFF\\xA0]+|[\\s\\uFEFF\\xA0]+$/g,\"\")};return function(t){return typeof t==\"string\"?e.call(t):\"\"}}()};chaordic.String=e}(),function(){var e={},t={},n={addTheme:function(t,n,r){n=n||\"default\",e[t]||(e[t]={}),e[t][n]=r},getTheme:function(t,n){return n=n||\"default\",e[t]?chaordic.Object.copy(e[t][n]):undefined},hasTheme:function(t,n){return n=n||\"default\",e[t]&&typeof e[t][n]!=\"undefined\"},addAsset:function(e,n){t[e]=n},hasAsset:function(e){return t.hasOwnProperty(e)},getAsset:function(e){return t[e]}};chaordic.ThemeManager=n}(),function(){var e=function(e,t){var n=t.className.split(\" \");for(var r=0;r<n.length;r++)if(e[n[r]])return e[n[r]];return null},t=function(t,n){var r=chaordic.lib.jQuery,i={},s=function(){r(\"div.chaordic\",document).each(function(r,s){var o=e(t,s),u=s.getAttribute(\"data-skin\")||null,a=s.getAttribute(\"data-category\"),f=(o||\"\")+(u||\"\")+(a||\"\");if(o===null||i[f])return;i[f]=!0;if(!chaordic.ThemeManager.hasTheme(o,u))return;var l=chaordic.ThemeManager.getTheme(o,u),c=n[o],h=new c;h.setAssets(chaordic.ThemeManager),a&&(l.requestParams=l.requestParams||{},l.requestParams.categories=[{id:a}],l.requestParams.ignoreCategoryParents=!0),h.initialize(l),s.style.display=\"none\",h.render(s)})},o=!1,u=0,a=function(){s();if(o===!1){u++;var e=u<10?100*u:1e3;setTimeout(a,e)}};(document.attachEvent?document.readyState===\"complete\":document.readyState!==\"loading\")?(s(),o=!0):(a(),r(document).on(\"DOMContentLoaded\",function(){o||(s(),o=!0)}),r(document).on(\"readystatechanged\",function(){!o&&document.readyState===\"loaded\"&&document.readyState===\"complete\"&&(s(),o=!0)}))},n=!1,r={intialize:function(e,r){chaordic.modules.push(function(){if(typeof chaordic.initializeWidgets==\"function\"){if(n===!0)return;n=!0,chaordic.initializeWidgets()}else t(e,r)})}};chaordic.WidgetSetup=r}(),function(){chaordic.collect={}}(),function(){\"use strict\";var e=\"/v7/events/views/\",t=\"/v7/events/productInteractions\",n=function(){var n=function(t,n){var i=t||chaordic.Object.copy(chaordic.getRawMeta());chaordic.Config.COLLECT_API_COMPATIBILITY_ENABLED&&(s(i),o(i),u(i),a(i),f(i));var h=i.page,p=e+h,d={};chaordic.Object.defaults(d,r()),chaordic.Object.defaults(d,n||{}),delete i.page,i.info||(i.info={}),i.info.pageViewId=chaordic.event.Listener.pageViewId,chaordic.Object.defaults(i.info,chaordic.event.Listener.collectNeemuInfo()),chaordic.event.Meta.addReferrerToInfoObj(i.info),l(h,i),c(i),chaordic.collect.Server.post(p,i,d)},i=function(e){var n=chaordic.meta,r={page:n.page.name,info:{pageViewId:chaordic.event.Listener.pageViewId}};chaordic.Object.defaults(r.info,n.info),chaordic.Object.defaults(r.info,chaordic.event.Listener.collectNeemuInfo()),chaordic.event.Meta.addReferrerToInfoObj(r.info),chaordic.Object.defaults(r,e),chaordic.collect.Server.post(t,r)},s=function(e){var t=e.page;if(typeof t!=\"object\")return;e.page=t.name,delete t.name,delete t.timestamp,chaordic.Object.defaults(e,t),e.page===\"confirmation\"&&(e.page=\"transaction\")},o=function(e){var t=e.product;if(typeof t!=\"object\")return;e.pid=t.id,delete e.product},u=function(e){var t=e.cart,n=chaordic.lib.jQuery;if(typeof t!=\"object\")return;delete e.cart,e.items=e.items||n.map(t.items,h),chaordic.Object.defaults(e,t)},a=function(e){var t=e.transaction,n=chaordic.lib.jQuery;if(typeof t!=\"object\")return;delete e.transaction,e.items=e.items||n.map(t.items,h),chaordic.Object.defaults(e,t)},f=function(e){var t=e.search,n=chaordic.lib.jQuery;if(typeof t!=\"object\")return;delete e.search,e.items=e.items||n.map(t.items,function(e){return{pid:e.id,sku:e.sku,price:e.price}}),chaordic.Object.defaults(e,t)},l=function(e,t){t.info||(t.info={});switch(e){case\"product\":case\"search\":chaordic.event.SearchInfo.addSearchInfo(t.info)}},c=function(e){e.searchId&&(e.info=e.info||{},e.info.searchId=e.searchId,delete e.searchId)},h=function(e){var t=e.product||{};return{pid:t.id,sku:t.sku,price:t.price,quantity:e.quantity}};return{logView:n,logProductInteraction:i}},r=function(){var e={\"x-ttcu\":chaordic.currentLoadedAt-chaordic.initializedAt,\"x-ttco\":chaordic.ttco,\"x-host\":String(location.host)},t=chaordic.getLocalStorage();return t!==null&&(e[\"x-hot\"]=chaordic.isHot()),e};chaordic.collect.Api=n()}(),function(){\"use strict\";var e=function(){this.collectServer=new chaordic.CollectServer};e.prototype.post=function(e,t,n){this.fillMissingInformation(t),this.collectServer.post(e,t,n)},e.prototype.fillMissingInformation=function(e){var t=chaordic.Object.copy(chaordic.getRawMeta());e.apiKey=chaordic.Config.API_KEY,e.identity=chaordic.Identity,e.source=e.source||chaordic.getPageSource(),e.url=e.url||window.location.href,t&&t.user&&(e.user=t.user),!e.testGroup&&chaordic.Test&&(e.testGroup=chaordic.Test),delete e.host},chaordic.collect.Server=new e}(),function(){chaordic.event=chaordic.event||{},chaordic.event.generateID=function(){var e=(new Date).getTime(),t=\"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx\".replace(/[xy]/g,function(t){var n=(e+Math.random()*16)%16|0;return e=Math.floor(e/16),(t===\"x\"?n:n&3|8).toString(16)});return t},chaordic.modules.push(function(){chaordic.event.Listener.initialize(),chaordic.event.Tron.setEnabled(Math.random()<chaordic.Config.TRON)})}(),function(){function e(){var e=[];return chaordic.Object.forEachOwnProperty(o,function(t){t.isAvailable()&&e.push(t)}),e}function t(e){var t=chaordic.Object.isArray(e)?e:[e];for(var r=0;r<t.length;r++)for(var i=0;i<n.length;i++)n[i].sendClick(t[r])}var n,r=50,i=r,s=function(e){var t=e.info||{},n=t.slotId,r=n?\"_\"+n:\"\";return{category:e.category||\"Vitrine Chaordic\",action:e.feature,label:e.page+r}},o={ga:{sendClick:function(e){var t=s(e);window.ga(function(){var e=window.ga.getAll();for(var n=0;n<e.length;n++)e[n].send(\"event\",t.category,t.action,t.label)})},isAvailable:function(){return window.ga}},gaq:{sendClick:function(e){var t=s(e);window._gaq.push([\"_trackEvent\",t.category,t.action,t.label])},isAvailable:function(){return window._gaq}}};chaordic.event.Analytics={sendClick:function(s){if(!chaordic.Config.SEND_ANALYTICS)return;i===0&&(i=r),n=e(),n.length?(t(s),i=r):(i--,i>0&&setTimeout(chaordic.event.Analytics.sendClick.bind({},s),20))}}}(),function(){var e=new chaordic.Server(\"PROTOCOL\",\"DYNAMIC_HOST\"),t=chaordic.Config,n=function(){var e=chaordic.merchant&&chaordic.merchant.Registry;e&&e.sendClicks()},r=function(){var e=function(e){var n={};chaordic.Object.defaults(n,e),delete n.sku,n.page.info=n.page.info||{},chaordic.event.SearchInfo.addSearchInfo(n.page.info),t.ORGANIC_UPDATES?chaordic.event.Server.post(\"/v5/product/viewAndSave\",n):(n.view={id:n.product.id},n.product.selectedSpecs&&(n.view.specs=n.product.selectedSpecs),delete n.product,chaordic.event.Server.post(\"/v5/product/view\",n))},n=function(e){var t={};chaordic.Object.defaults(t,e),delete t.product,t.sku.pid||(t.sku.pid=e.product.id),chaordic.event.Server.post(\"/v5/sku/view\",t)},r=function(e){var t=e.page&&e.page.info&&e.page.info.searchId;if(t)return;e=chaordic.Object.copy(e),e.page.name=\"search\",chaordic.event.SearchInfo.addSearchInfo(e.page.info),chaordic.event.Server.post(\"/v5/search/view\",e)},i=function(e){chaordic.event.Server.post(\"/v5/transaction\",e)},s=function(e){e.cart||(e.cart={}),chaordic.event.Server.post(\"/v5/cart/view\",e)},o={product:function(t){e(t),t.sku&&n(t)},search:r,emptysearch:r,confirmation:i,cart:s};return function(e){var t=e.page.name;e.page.info||(e.page.info={}),e.page.info.pageViewId=f.pageViewId,o[t]&&o[t](e)}}(),i=function(){var e=chaordic.Object.copy(chaordic.meta),n=e.page.name;e.apiKey=t.API_KEY,e.neemuInfo=a(),e.source=chaordic.getPageSource(),r(e);var i={page:e.page,apiKey:e.apiKey,user:e.user,neemuInfo:e.neemuInfo,eventInfo:e.eventInfo,anonymousUser:e.anonymousUser,ttcu:chaordic.currentLoadedAt-chaordic.initializedAt,ttco:chaordic.ttco,source:chaordic.getPageSource()};i.page.info||(i.page.info={}),i.page.info.pageViewId=f.pageViewId;var s=chaordic.getLocalStorage();s!==null&&(i.hot=chaordic.isHot()),chaordic.event.Server.post(\"/v5/page/view\",i).success(o)},s=[],o=function(e){if(!e.ok)return;chaordic.forEach(e.data.pushMessages||[],function(e){chaordic.forEach(s,function(t){t(e)})})},u=function(){setTimeout(function(){chaordic.loaderRunCount>1&&chaordic.loaderRunCount<6?chaordic.event.Tron.incrementRta(\"loaderRunCount.2-5\"):chaordic.loaderRunCount>5&&chaordic.event.Tron.incrementRta(\"loaderRunCount.6+\")},5e3)},a=function(){var e=chaordic.readCookiesMatching(/^nm_|^neemu_/);return chaordic.Object.forEachOwnProperty(e,function(t,n){(!t||t.length>100)&&delete e[n]}),e},f={pageViewId:chaordic.event.generateID(),collectNeemuInfo:a,logEvents:function(e){e||(e=1);var n=chaordic.event.Registry.readEvents(),r={apiKey:t.API_KEY,page:chaordic.meta.page,browser:{appVersion:navigator.appVersion,userAgent:navigator.userAgent,appName:navigator.appName,platform:navigator.platform},url:String(location.href),events:n};n&&n.length>0&&(chaordic.event.Registry.removeEvents(),t.HOMOLOGATION&&(r.bypass=!0),chaordic.event.Server.post(\"/v5/tracker/events\",r))},onServerMessage:function(e){s.push(e)},logClicks:function(n){var r=chaordic.event.Registry.readClicks();n||(n=1);if(r.length>0){chaordic.event.Registry.removeClicks();var i={apiKey:t.API_KEY,clicks:r,neemuInfo:a(),source:chaordic.getPageSource()};t.HOMOLOGATION&&(i.bypass=!0),e.get(\"/v5/clicks\",i).success(function(e){e.ok||(chaordic.event.Registry.storeClicks(r),n===3?chaordic.Base.log(\"WARN\",\"LogClicks failed too many times, bailing out.\"):(chaordic.Base.log(\"WARN\",\"LogClicks failed, retrying...\"),f.logClicks(n+1)))}),n===1&&chaordic.event.Analytics.sendClick(r)}},logPage:i,captureProductInteractions:function(){var e=chaordic.lib.jQuery;e(\".btn-neemu-addtocart\",document).mousedown(function(){var t=e(this),n=t.attr(\"data-pid\"),r=t.attr(\"data-sku\"),i=t.attr(\"data-sales-channel\");if(!n)return;chaordic.collect.Api.logProductInteraction({interactionType:\"ADD_TO_CART\",products:[chaordic.Object.omitUndefineds({pid:n,sku:r,salesChannel:i})]})})},initialize:function(){if(chaordic.lib.jQuery(\"script[data-listener]\",document).attr(\"data-listener\")===\"false\")return;t.USE_COLLECT_API?chaordic.collect.Api.logView():i(),f.logClicks(),f.logEvents(),f.captureProductInteractions(),n(),u()}};chaordic.event.Listener=f}(),function(){var e=\"cssearch\",t=\"chaordic_mailapi\",n=function(e){var t=e;if(chaordic.Object.isArray(e)){t=[];for(var r=0;r<e.length;r++)t.push(n(e[r]))}else e!==null&&typeof e==\"object\"&&!chaordic.Object.isDate(e)&&(t={},chaordic.Object.forEachOwnProperty(e,function(e,r){t[chaordic.String.camelize(r)]=n(e)}));return t},r=function(e,t){var n=0,r=function(r,i){chaordic.window.location.protocol===\"https:\"&&i.indexOf(\"http:\")===0&&(i=\"https:\"+i.substr(5)),n++,chaordic.lib.jQuery.get(i,function(t){typeof t==\"string\"&&(chaordic.String.isEmpty(t)?t=null:t=chaordic.lib.JSON.parse(t)),e[r]=t}).always(function(i,s){(e[r]===null||e[r]&&s===\"error\")&&delete e[r],n--,n===0&&t()})};for(var i in e)e.hasOwnProperty(i)&&(e[i].hasOwnProperty(\"remoteUrl\")?r(i,e[i].remoteUrl):e[i].hasOwnProperty(\"remote_url\")&&r(i,e[i].remote_url));n===0&&t()},i=function(){var e=[\"categories\",\"tags\"],t=function(e){for(var t=0;t<e.length;t++)typeof e[t]==\"string\"?e[t]={id:e[t],name:e[t]}:!e[t].id&&e[t].name?e[t].id=e[t].name:!e[t].name&&e[t].id&&(e[t].name=e[t].id)},n=function(e){for(var t=0;t<e.length;t++)if(e[t].hasOwnProperty(\"parents\"))return!0},r=function(e){for(var t=1;t<e.length;t++)e[t].parents=[e[t-1].id]},i=function(i){var s,o;for(o=0;o<e.length;o++)s=e[o],typeof i[s]==\"string\"?i[s]=[{id:i[s],name:i[s]}]:typeof i[s]==\"object\"&&t(i[s]);i.categories&&!n(i.categories)&&r(i.categories)};return function(e){e.page&&i(e.page),e.product&&i(e.product)}}(),s=function(e){var t,n,r,i;if(!e.product||!e.product.specs)return;t=e.product.specs;for(n in t)if(t.hasOwnProperty(n))for(r=0;r<t[n].length;r++)i=t[n][r],typeof i==\"string\"&&(t[n][r]={id:i,label:i})},o=function(e,t){var n=chaordic.readCookie(t),r=function(){var r=e.page;if(chaordic.Config.USE_COLLECT_API){e.info=e.info||{},e.info[t]=n;return}if(!r)return;r.info||(r.info={}),r.info[t]=n},i=function(){var r=e.transaction;if(chaordic.Config.USE_COLLECT_API){e.info=e.info||{},e.info[t]=n;return}if(!r)return;r.info||(r.info={}),r.info[t]=n};chaordic.String.isEmpty(n)||(r(),i())},u=function(e){var t=e.page;if(!t||t&&(typeof t==\"string\"||t instanceof String))return;t.info||(t.info={}),a(t.info)},a=function(e){if(!e)return;var t=window.chaordic.window.document.referrer;chaordic.String.isEmpty(t)||(e.referrer=t)},f=function(){var e=[\"utm_mail\",\"utm_email\",\"email\"],t=chaordic.Location.getParams(window.location),n,r;for(r=0;r<e.length;r++){n=e[r];if(t[n])return t[n]}},l=function(){var e=chaordic.Location.getParams(window.location),t=e.cslocalpart,n=e.csdomainpart;if(!chaordic.String.isEmpty(t)&&!chaordic.String.isEmpty(n))return t+\"@\"+n},c=function(e){var t=chaordic.Base.readCookie(),n=f()||l(),r=e.user||e.anonymous_user;if(!t.user&&!n)return;r||(r=e.anonymous_user={}),t.user&&(chaordic.Object.merge(r,t.user),delete t.user,chaordic.Base.writeCookie(t)),n&&!r.email&&(r.email=n)},h=function(e){var t=chaordic.Location.getParams(window.location).utm_user;if(Boolean(t)&&!Boolean(e.user)){var n=e.anonymous_user;Boolean(n)||(n={},e.anonymous_user=n),n.utmUser=t}},p=function(e){var t=chaordic.event.Pushables.allowPersonalization.readCookie();t&&chaordic_meta.user&&(chaordic_meta.user.allowPersonalization=t)},d=function(e){if(!e.product||!e.product.skus)return;var t=e.product.skus;t=t.filter(function(e){return e&&e.sku}),e.product.skus=t},v=function(e){chaordic.Config.USE_COLLECT_API?(e.page=e.page||\"other\",typeof e.page==\"string\"&&(e.page=chaordic.String.trim(e.page.toLowerCase()))):(e.page=e.page||{},chaordic.Object.defaults(e.page,{name:\"other\",timestamp:new Date}),e.page.name=chaordic.String.trim(e.page.name.toLowerCase()),e.page.url=chaordic.window.location.href)},m=function(e){var t=e.page;t.searchId&&(t.info=t.info||{},t.info.searchId=t.searchId,delete t.searchId)},g=function(a){var f=chaordic.getRawMeta()||{};f.host=String(location.host),r(f,function(){c(f),h(f),p(f),f=n(f),v(f),i(f),s(f),m(f),d(f),o(f,e),o(f,t),u(f),chaordic.setRawMeta(f),typeof chaordic.customMetaSetup==\"function\"&&chaordic.customMetaSetup(f),a(f)})};chaordic.event.Meta=g,chaordic.event.Meta.addReferrerToInfoObj=a,chaordic.getRawMeta=function(){return window.$chaordic_meta||window.chaordic_meta},chaordic.setRawMeta=function(e){window.$chaordic_meta?window.$chaordic_meta=e:window.chaordic_meta=e}}(),function(){var e,t=100,n=4e3,r=function(e,t){return function(n){if(chaordic.Config.USE_COLLECT_API){var r={page:e};chaordic.Object.merge(r,n);var i=chaordic.getRawMeta();i.user&&(r.user=chaordic.Object.copy(i.user)),chaordic.collect.Api.logView(r,{\"x-expand-events\":\"false\",\"x-interaction-type\":\"ajax\"})}else t.apply(this,arguments)}},i=function(e){var t=e.page=e.page||{};t.name=t.name||window.chaordic.meta.page&&window.chaordic.meta.page.name,t.info=t.info||{},t.info.interactionType=\"ajax\"},s={trackEvent:function(r){if(chaordic.Config.TRACK_EVENTS&&r){var i=encodeURIComponent(chaordic.lib.JSON.stringify(r)).length;if(i>n)return;clearTimeout(e);var s=encodeURIComponent(chaordic.lib.JSON.stringify(chaordic.Base.readCookie())).length;i+s>n&&chaordic.event.Listener.logEvents(),chaordic.event.Registry.storeEvents([r]),e=setTimeout(chaordic.event.Listener.logEvents,t)}},updateCart:r(\"cart\",function(e){var t=chaordic.Object.copy(window.chaordic.meta);t.cart=e,delete t.page.date,i(t),chaordic.event.Registry.cartView(t)}),transaction:r(\"transaction\",function(e){var t=chaordic.Object.copy(window.chaordic.meta);t.transaction=e,i(t),chaordic.event.Registry.transaction(t)}),viewProduct:r(\"product\",function(e){var t={view:e};i(t),chaordic.event.Registry.productView(t)}),viewSku:r(\"sku\",function(e){!e.pid&&window.chaordic.meta.product&&(e.pid=window.chaordic.meta.product.id);var t={sku:e};i(t),chaordic.event.Registry.skuView(t)}),updateUserEmail:function(e){for(var t in e)if(e.hasOwnProperty(t)&&t!==\"email\"&&t!==\"name\"&&t!==\"extraInfo\"){chaordic.Base.log(\"WARN\",\"Unknown user property: \"+t);return}var n=chaordic.Base.readCookie();n.user=e,chaordic.Base.writeCookie(n)},allowPersonalization:function(){var e={\"true\":1,\"false\":1},t=\"chaordic_allowPersonalization\",n=31536e3,r=n,i=function(e){chaordic.writeCookie(t,e,r)},s=function(t){var n=String(t);n in e?i(n):chaordic.Base.log(\"ERROR\",\"invalid arg: \"+t)};return s.readCookie=function(){var e=chaordic.readCookie(t);return e&&i(e),e},s}()};chaordic.event.Pushables=s}(),function(e){var t=!1,n=new chaordic.Server(\"PROTOCOL\",\"DYNAMIC_HOST\"),r=new chaordic.AdsManager,i={productView:function(e){chaordic.event.Server.post(\"/v5/product/view\",e)},skuView:function(e){chaordic.event.Server.post(\"/v5/sku/view\",e)},productViewAndSave:function(e){chaordic.event.Server.post(\"/v5/product/viewAndSave\",e)},cartView:function(e){chaordic.event.Server.post(\"/v5/cart/view\",e)},transaction:function(e){chaordic.event.Server.post(\"/v5/transaction\",e)},viewRecommendations:function(e,i){var s;return t||(chaordic.meta.page.timestamp instanceof Date?e.view.timeToWidget=(new Date).getTime()-chaordic.meta.page.timestamp.getTime():typeof chaordic.initializedAt==\"number\"&&(e.view.timeToWidget=(new Date).getTime()-chaordic.initializedAt),t=!0),e.page=chaordic.Object.merge({},chaordic.meta.page),chaordic.meta.page.product&&(chaordic.meta.page.product.tags&&(e.tags=chaordic.meta.page.product.tags),chaordic.meta.page.product.categories&&(e.categories=chaordic.meta.page.product.categories)),e.tags=e.tags||chaordic.meta.page.tags||null,e.categories=e.categories||chaordic.meta.page.categories||null,e.apiKey=chaordic.Config.API_KEY,e.view.info=e.view.info||{},e.view.info.vrlId=chaordic.event.generateID(),e.view.info.pageViewId=chaordic.event.Listener.pageViewId,e.source=chaordic.getPageSource(),i?(e.view.viewType=\"VIEWABLE\",s=\"view\"):(e.view.viewType=\"HIDDEN\",s=\"page-view\"),r.sendEvents(s,{feature:e.view.feature,widgetId:e.view.info.widgetId,adsProducts:e.view.adsProducts}),n.post(\"/v5/viewRecommendations\",e),e.view.info.vrlId},click:function(e){var t=chaordic.Base.readCookie(),n=[];e.feature&&(e.feature=e.feature.toString()),e.info=e.info||{},e.info.pageViewId=chaordic.event.Listener.pageViewId,e.page=chaordic.meta.page.name,n.push(e),t.clicks=n,chaordic.Base.writeCookie(t)},readClicks:function(){var e=chaordic.Base.readCookie(),t=e.clicks||[];return chaordic.lib.jQuery.isArray(t)||(i.removeClicks(),t=[],i.storeClicks(t)),t},removeClicks:function(){var e=chaordic.Base.readCookie();e&&(delete e.clicks,chaordic.Base.writeCookie(e))},storeClicks:function(e){var t=chaordic.Base.readCookie();t.clicks=(t.clicks||[]).concat(e),chaordic.Base.writeCookie(t)},readEvents:function(){var e=chaordic.Base.readCookie();return e.events||[]},removeEvents:function(){var e=chaordic.Base.readCookie();e&&(delete e.events,chaordic.Base.writeCookie(e))},storeEvents:function(e){var t=chaordic.Base.readCookie();t.events=(t.events||[]).concat(e),chaordic.Base.writeCookie(t)}};chaordic.event.Registry=i}(),function(){var e=\"searchFilter:\",t={query:1,number_of_results:2,processing_time:3,suggested_query:4,number_of_and_results:5,query_correction:6,cache_use:7,page:8,query_original:9,search_response_type:10},n=chaordic.Object.keys(t).length,r=/(common|range)_filter\\[([^\\]]+)\\]/,i={typeclick:\"searchAcType\",ranking:\"searchAcRank\",p:\"searchAcPrefix\",ac_pos:\"searchAcPos\"},s=/^_set([^ ]+)PageType$/,o=function(e){if(!e)return;var r=c(function(e){return e===\"_setSearchInformation\"}),i=chaordic.window.location?chaordic.Location.getParams(chaordic.window.location):null;r&&r.length>=n?(e.searchPg=r[t.page]||\"1\",e.searchQty=r[t.number_of_results]||\"0\",e.searchQtyAnd=r[t.number_of_and_results]||\"0\",e.searchQOrig=r[t.query_original]||r[t.query],e.searchHasSuggest=r[t.suggested_query]||\"0\",r.length>t.search_response_type&&r[t.search_response_type]&&(e.searchRType=r[t.search_response_type]),u(e,i),f(e,i)):typeof window.neemuQuery==\"string\"&&(e.searchPg=i&&i.page||\"1\",e.searchQty=String(window.neemuNumResultadosTotal||\"0\"),e.searchQtyAnd=String(window.neemuNumResultadosAnd||\"0\"),e.searchQOrig=String(window.neemuQOriginal||window.neemuQuery),e.searchHasSuggest=String(window.neemuSugestaoConsulta||\"0\"),u(e,i),f(e,i)),a(e,i),l(e)},u=function(t,n){if(!n)return;var i,s,o;for(var u in n)i=r.exec(decodeURI(u)),i&&(s=i[2],o=n[u].replace(/\\+/g,\" \"),window.nmFilterInfo&&window.nmFilterInfo[s]&&window.nmFilterInfo[s].name&&window.nmFilterInfo[s].values&&window.nmFilterInfo[s].values[o]&&(o=window.nmFilterInfo[s].values[o],s=window.nmFilterInfo[s].name),t[e+s]=o)},a=function(e,t){if(!t||!t.typeclick)return;var n,r,s;for(var o in t)i[o]&&(n=i[o],s=t[o].replace(/\\+/g,\" \"),e[n]=s)},f=function(e,t){t.sort&&(e.searchSortType=t.sort)},l=function(e){if(window.neemuPgType){e.searchPgType=window.neemuPgType;return}var t=c(function(e){return s.test(e)}),n=t&&s.exec(t[0]);n&&(e.searchPgType=n[1].toLowerCase())},c=function(e){if(!chaordic.Object.isArray(window._neemu))return;var t,n;for(n=0;n<window._neemu.length;n++){t=window._neemu[n];if(chaordic.Object.isArray(t)&&t.length&&e(t[0]))return t}};chaordic.event.SearchInfo={addSearchInfo:o}}(),function(){var e=function(){this.collectServer=new chaordic.CollectServer};e.prototype.post=function(e,t,n){return this.fillMissingInformation(t),t=\"q=\"+encodeURIComponent(chaordic.lib.JSON.stringify(t)),this.collectServer.post(e,t,n)},e.prototype.fillMissingInformation=function(e){var t=chaordic.Object.copy(window.chaordic_meta);e.apiKey=chaordic.Config.API_KEY,!e.user&&t&&t.user&&(e.user=t.user),!e.page&&t&&t.page&&(e.page=t.page),e.host||(e.host=String(location.host)),e.identity||(e.identity=chaordic.Identity),!e.testGroup&&chaordic.Test&&(e.testGroup=chaordic.Test)},chaordic.event.Server=new e}(),function(){var e={fatal:5,error:4,warn:3,info:2,debug:1,trace:0},t=new chaordic.Server(\"PROTOCOL\",\"DYNAMIC_HOST\"),n=500,r=[],i=[],s,o=!1,u=function(e){o&&(r.push(e),f())},a=function(e){o&&(i.push(e),f())},f=function(){s!==undefined&&(clearTimeout(s),s=undefined),s=setTimeout(l,n)},l=function(){s=undefined,t.post(\"/datakeeper/trace\",{rtas:i,traces:r}),i=[],r=[]};chaordic.event.Tron={trace:function(t,n,r){t=t.toLowerCase(),t in e&&u({data:n,level:t,message:r})},incrementRta:function(e,t){a({type:\"incr\",counter:e,value:t})},percentilRta:function(e,t,n){a({type:\"pctl\",counter:e,value:t,percentage:n})},apdexRta:function(e,t,n){a({type:\"apdex\",counter:e,value:t,tolerance:n})},setEnabled:function(e){o=Boolean(e)}}}(),function(){function e(e){var t;e.ok&&e.widgets&&e.layout&&e.slots&&(e.id&&(chaordic.onsite.templateId=e.id),r(e),Object.keys(e.slots).forEach(function(t){chaordic.onsite.widgetsLoaded[t]=e.slots[t].widgets.map(s(e))}),t=new chaordic.PageRender({widgets:e.widgets,layout:e.layout,slots:e.slots}),t.render())}function t(e){var t=chaordic.widgetFallback&&chaordic.widgetFallback.load&&chaordic.widgetFallback.load.callback;t=t||n,t()}function n(){var t=window.chaordic.meta.page,n=chaordic.Config,r=chaordic.getPageSource();if(n.USE_SERVER_FALLBACK&&n.SERVER_FALLBACK_PAGES.indexOf(t.name)!==-1){var i=chaordic.Config.SERVER_FALLBACK_URL+\"/\"+chaordic.Config.API_KEY+\"/\"+r+\"/\"+t.name;if(t.name===\"product\"){var s=window.chaordic.meta.product.id;i+=\"/\"+s+\".json\"}else i+=\"/all.json\";chaordic.lib.jQuery.ajax({url:i}).done(e)}}function r(e){var t,n;Object.keys(e.widgets).forEach(function(r){t=e.widgets[r].slotIdCustom,t&&(e.slots[t]||(e.slots[t]={overflow:!1,widgets:[]},e.layout[0].rows.push({slot:t})),e.slots[t].widgets.push(r),Object.keys(e.slots).forEach(function(i){n=e.slots[i].widgets.indexOf(r),t!==i&&n!==-1&&e.slots[i].widgets.splice(n,1)}))})}chaordic.onsite=chaordic.onsite||{},chaordic.onsite.ThemeManager=chaordic.ThemeManager,chaordic.onsite.flattenSpecs=function(e){var t=[];return e&&(Object.keys(e).forEach(function(n){t.push(n+\"_\"+e[n])}),t=t.sort()),t.join(\"_\")},chaordic.onsite.widgetsLoaded={};var i={mostpopular:\"MostPopular\",new4you:\"New4You\",offers:\"Offers\",similaritems:\"SimilarItems\",ultimatebuy:\"UltimateBuy\",shoppingcart:\"ShoppingCart\",personalized:\"Personalized\",viewpersonalized:\"ViewPersonalized\",historypersonalized:\"HistoryPersonalized\",purchasepersonalized:\"PurchasePersonalized\",cartpersonalized:\"CartPersonalized\",frequentlyboughttogether:\"FrequentlyBoughtTogether\",featured:\"Featured\",push:\"Push\",wishlist:\"WishList\"},s=function(e){return function(t){var n=e.widgets[t];return{widgetId:t,feature:n.feature,dataSkin:n.skin||\"\",title:n.title+(n.subTitle?\" - \"+n.subTitle:\"\")}}};chaordic.WidgetSetup.intialize(i,chaordic.onsite),chaordic.modules.push(function(){var n=chaordic.widgetFallback&&chaordic.widgetFallback.load&&chaordic.widgetFallback.load.timeout||chaordic.Config.SERVER_FALLBACK_TIMEOUT;if(!chaordic.Config.SLOTS)return;chaordic.onsite.PageService.addInterceptor(chaordic.NoRepeatRecs.SET_UB_VISIBLE_INTERCEPTOR),chaordic.onsite.PageService.getPage(n).success(e).error(t)})}(),function(){function e(){}e.prototype.hasAds=function(e){return e&&e.percycleHash&&e.customBusiness&&typeof e.customBusiness.ads==\"object\"?!0:!1},e.prototype.formatProductClickUrl=function(e,t){var n,r=t.page||chaordic.meta.page.name;try{n=e.customBusiness.ads.clickLink+\"?placement=\"+r+\"&chaordicShowcaseName=\"+t.feature.toLowerCase()+\"&chaordicShowcaseId=\"+t.widgetId,e.url=n}catch(i){}return n},chaordic.onsite.AdsUtils=new e}(),function(){function e(){return window.top.location.protocol}function t(){return e()+(_||N().baseUrl)}function n(){return window.top.document}function r(e){return chaordic.lib.jQuery(e,n())}function i(){var e=n();return e.getElementsByTagName(\"head\")[0]||e.documentElement}function s(e,t){var r=n(),i=r.createElement(\"style\");i.type=\"text/css\",e.insertBefore(i,e.firstChild),i.styleSheet?i.styleSheet.cssText=t:i.appendChild(r.createTextNode(t))}function o(){var e=i(),t=M.getAsset(N().css);s(e,t)}function u(){return r(L)}function a(e,t,n){e()?t():n<=N().maxInteraction?setTimeout(a,N().timeToWait,e,t,++n):console.error(\"onsite Discover: it was not possible to render\")}function f(e){var n={url:t(),dataType:\"json\",data:C()};chaordic.lib.jQuery.ajax(n).done(e).fail(function(){p(!1)})}function l(t){var n={url:e()+t};chaordic.lib.jQuery.ajax(n)}function c(e){var t=chaordic.newFuglyTemplate(M.getAsset(N().template));return t.context({product:e}),t.render()}function h(e){var t=e.products,n=\"\",r,i;for(r=0;r<t.length;r++)i=N().beforeProductRender(new chaordic.Product(t[r])),A[t[r].id]=i,n+=c(i);u().append(n),l(e.viewUrl)}function p(e){D=e,e?u().addClass(\"loading\"):u().removeClass(\"loading\")}function d(e){_=e.next,m(2)&&r(window.top).scrollTop(u().height()+u().offset().top-N().marginRerender),h(e),T(),N().afterProductsRender(),p(!1)}function v(){p(!0),f(d)}function m(e){var t=r(window.top).scrollTop(),n=u().height(),i=u().offset().top;return t>=i+n-N().marginRerender/(e||1)}function g(){if(D)return;m()&&v()}function y(){var e=chaordic.Base.readCookie(),t=e.discover||[];return t}function b(e){var t=chaordic.Base.readCookie();t.discover=e,chaordic.Base.writeCookie(t)}function w(t){var n={url:e()+t};chaordic.lib.jQuery.ajax(n)}function E(){var e=y(),t;for(t=0;t<e.length;t++)w(e[t]);b(null)}function S(e){var t=y();t.push(e.clickUrl),b(t)}function x(){var e=r(this).parents(\"[data-pid]\").attr(\"data-pid\"),t=A[e];S(t)}function T(){r(n()).unbind(\"scroll\").scroll(g);var e=Math.random()+(new Date).getTime();u().children(\"[data-pid]:not([data-group])\").attr(\"data-group\",e).find(\"[data-product-link]\").mousedown(x)}function N(){return P.options}function C(){return _?null:{userId:(chaordic.meta.user||{}).id,deviceId:(chaordic.Identity||{}).browserId,size:P.options.size}}function k(){u().append(M.getAsset(N().initialTemplate)),v()}var L='[linx-impulse=\"onsite-discover\"]',A={},O={baseUrl:\"//recs.chaordicsystems.com/v0/discover\",template:\"discover-product.fugly\",css:\"discover.css\",initialTemplate:\"discover-initial-content.fugly\",marginRerender:600,timeToWait:100,maxInteraction:20,beforeProductRender:function(e){return e},afterProductsRender:function(){}},M=chaordic.ThemeManager,_=null,D=!1,P={options:{},initialize:function(e){E(),P.options=Object.assign({},O,e),o(),a(function(){return!!u().length},k,0)}};chaordic.onsite.Discover=P}(),function(){function e(e){var t=this.priceApiOptions.waitToRender.enabled&&this.priceApiOptions.waitToRender.removeProducts.unavailable,n=this.priceApiOptions.waitToRender.enabled&&this.priceApiOptions.waitToRender.removeProducts.failedRequest,r=!0;return t&&(r=r&&(e.status||\"\").toUpperCase()===\"AVAILABLE\"),n&&(r=r&&this.priceApiStatus[e.id]!==2),r}function t(e,t){if(!e)return;t.status&&(e.status=t.status),t.price&&(e.price=t.price),t.oldPrice&&(e.oldPrice=t.oldPrice),t.installment&&(e.installment=t.installment),e.details=e.details||{},chaordic.Object.merge(e.details,t.details)}var n=[\"fallback\",\"filterRecsByPage\",\"filterRefsByPage\",\"filterRecsByBrand\",\"filterRecsByRefs\",\"filterSkuCoverage\",\"minReduction\",\"maxReduction\",\"noveltyPeriod\",\"pageForce\",\"removeBought\",\"removeFree\",\"minPrice\",\"maxPrice\",\"priceMode\",\"useCategoryWeight\",\"visibleProducts\",\"eventType\",\"enabledRec\"],r,i={waitToRender:{enabled:!1,removeProducts:{unavailable:!0,failedRequest:!1}},lazyLoading:{enabled:!1,distanceToRender:0},reRenderProduct:!0},s=chaordic.onsite.AdsUtils,o=function(){r=chaordic.PriceApi};o.prototype._callPriceApi=function(e){var t=\"onsite\";if(!r.active||this.calledPriceApi)return;this.calledPriceApi=!0,this.productMap||this._mapProducts(),this.params.priceApiOptions&&this.params.priceApiOptions.profile&&(t=this.params.priceApiOptions.profile),r.get(t,{products:this._getPriceApiInputProducts(e),onComplete:this._priceApiOnComplete.bind(this),onFailure:this._priceApiOnFailure.bind(this),onFinish:this._priceApiOnFinish.bind(this)})},o.prototype._getPriceApiInputProducts=function(e){e=e||Object.keys(this.renderedProducts);var t=this;return e.map(function(e){var n=t.renderedProducts[e];if(n)return{id:e,skus:[{sku:n.sku}]}})},o.prototype._initPriceApiOptions=function(){var e=chaordic.lib.jQuery;this.priceApiOptions=e.extend(!0,{},i,this.params.priceApiOptions);if(typeof this.priceApiOptions.lazyLoading==\"boolean\"){var t=i.lazyLoading;this.priceApiOptions.lazyLoading={enabled:t,distanceToRender:0}}},o.prototype._mapProducts=function(){var e=this,t=this.params&&this.params.data&&this.params.data.displays&&this.params.data.displays[0],n=chaordic.lib.jQuery;this.priceApiAllGets=n.Deferred(),this.priceApiGet={},this.priceApiStatus={},this.productMap={},this.skuMap={};var r=function(t){e.productMap[t.id]=t,e.priceApiStatus[t.id]=0,e.priceApiGet[t.id]=n.Deferred();if(t.skus){var r={};t.skus.forEach(function(i){r[i.sku]=i,e.priceApiStatus[t.id+i.sku]=0,e.priceApiGet[t.id+i.sku]=n.Deferred()}),e.skuMap[t.id]=r}};t.refs&&t.refs.forEach(r),t.recs&&t.recs.forEach(r),Array.isArray(t.campaigns)&&t.campaigns.forEach(function(e){(e.recs||[]).forEach(r)})},o.prototype._priceApiOnComplete=function(e){var t=Array.isArray(e)?e:[e];t.forEach(this._updateProductPrice.bind(this)),typeof this.priceApiOptions.afterOnComplete==\"function\"&&this.priceApiOptions.afterOnComplete.call(this,e)},o.prototype._priceApiOnFailure=function(e,t){var n=this,r=Array.isArray(t)?t:[t];r.forEach(function(e){var t=e.sku?e.id+e.sku:e.id;n.priceApiGet.hasOwnProperty(t)&&(n.priceApiStatus[t]=2,n.priceApiStatus[e.id]=2,n.priceApiGet[t].resolve())})},o.prototype._priceApiOnFinish=function(){var t=this.params&&this.params.data&&this.params.data.displays&&this.params.data.displays[0];t&&t.refs&&t.recs&&(t.refs=t.refs.filter(e.bind(this)),t.recs=t.recs.filter(e.bind(this))),this.priceApiAllGets.resolve()},o.prototype._updateProductPrice=function(e){e=e||{};var n=this.productMap[e.id],r=this;n&&(t(n,e),this.priceApiStatus[e.id]=1,this.priceApiGet[e.id].resolve());if(Array.isArray(e.skus)){var i=this.skuMap;e.skus.forEach(function(n){var s=i&&i[e.id]&&i[e.id][n.sku];s&&(t(s,n),r.priceApiStatus[e.id+n.sku]=1,r.priceApiGet[e.id+n.sku].resolve())})}},o.prototype.getVisibleProducts=function(){var e=chaordic.lib.jQuery,t=[],n,r=(this.carousel.page-1)*this.carousel.visibleItems,i=this.productViews.length,o=r===0||r+this.carousel.visibleItems<i?this.productViews.slice(r,r+this.carousel.visibleItems):this.productViews.slice(i-this.carousel.visibleItems,i);for(var u=0;u<o.length;u++)n={id:o[u].product.id},s.hasAds(o[u].product)&&(n.customBusiness=o[u].product.customBusiness,n.percycleHash=o[u].product.percycleHash),e.isEmptyObject(o[u].selectedSpecs)?e.isEmptyObject(o[u].product.selectedSpecs)||(n.specs=o[u].product.selectedSpecs):n.specs=o[u].selectedSpecs,o[u].product.primeoffer&&o[u].product.primeoffer.campaignId&&(n.campaign=o[u].product.primeoffer.campaignId),t.push(n);return t},o.prototype.getReferenceProducts=function(){var e=[],t=this.params;if(t.referenceProducts||t.referenceProduct)e=t.referenceProducts||[t.referenceProduct];return e},o.prototype.trigger=function(e){if(this.eventsCallbacks[e])for(var t=0;t<this.eventsCallbacks[e].length;t++)this.eventsCallbacks[e][t]()},o.prototype.on=function(e,t){this.eventsCallbacks=this.eventsCallbacks||{},this.eventsCallbacks[e]||(this.eventsCallbacks[e]=[]),this.eventsCallbacks[e].push(t)},o.prototype.setAssets=function(e){this.assets=e},o.prototype.checkAssets=function(){var e=[],t=this;for(var n in this.params.templates)this.params.templates.hasOwnProperty(n)&&e.push(this.params.templates[n]);e=e.concat(this.params.style);var r=[];Object.keys(this.params.templates).forEach(function(e){t.assets.hasAsset(t.params.templates[e])||r.push(t.params.templates[e])});if(r.length>0)throw chaordic.Base.error(new TypeError(\"Missing Asset: \"+r.join(\", \")))},o.prototype.setupPagination=function(){var e,t,n=this,r=1,i=this.widgetDiv.find(\".pagination\");if(!i.length)return;i.empty(),t=this.carousel.getTotalPages();var s=function(){var e;for(var n=0;n<t;n++)e=chaordic.lib.jQuery('<li data-page=\"'+(n+1)+'\"><span>'+(n+1)+\"</span></li>\"),i.append(e)};s(),e=i.find(\">li:first\").addClass(\"active\"),this.carousel.on(\"paginationEnd\",function(t,n){e&&e.removeClass(\"active\"),e=i.find('li[data-page=\"'+t+'\"]').addClass(\"active\")});var o=function(s){r=s||(r===t?1:r+1),n.carousel.gotoPage(r),e&&e.removeClass(\"active\"),e=i.find('li[data-page=\"'+r+'\"]').addClass(\"active\")},u=function(){n.params.autoPagination===!0&&(n.autoPaginationHandlerId=setInterval(function(){o()},n.params.paginationInterval*1e3||7500)),i.find(\"> li\").click(function(){o(parseInt(this.getAttribute(\"data-page\"))),n.params.autoPagination===!0&&clearInterval(n.autoPaginationHandlerId)})};u(),this.carousel.on(\"resize\",function(){n.carousel.getTotalPages()!==t&&(t=n.carousel.getTotalPages(),i.empty(),s(),e=i.find(\">li\").eq(n.carousel.page-1).addClass(\"active\"),u())})},o.prototype.initialize=function(e){var t=this,n={},r=e.result;r&&delete e.result,this.eventsCallbacks={},this.sentVrl=[],this.initializing=!1,this.calledPriceApi=!1,this.defaultParams&&chaordic.Object.merge(n,this.defaultParams),e&&chaordic.Object.merge(n,e),this.params=n,this.widget=this.params.widget||this.feature,this.checkAssets(),typeof n.beforeInitialize==\"function\"&&n.beforeInitialize.call(t,n);if(chaordic.Config.DUMMY_RECS){var i=new RegExp(this.feature,\"gi\");this.featureUrl=this.featureUrl.replace(i,\"dummy\"),n.recsRepeat=\"yes\"}if(!this.params.data){this.initializing=!0,this.serverParams=this._buildServerParams(this.params);var s=function(e){var r=e&&e.displays&&e.displays[0],i=n.recsRepeat;if(r&&r.recs&&r.recs.length>0&&i!==\"yes\"){t.widget!==\"ultimatebuy\"&&t.widget!==\"wishlist\"&&t._filterRepeatedRecs(r,t.widget,i===\"no\"),r.recs.length<n.minProducts&&(e.message=\"Feature is disabled\");var s=n.probablyVisibleLength||n.minProducts;s&&chaordic.NoRepeatRecs.markAllVisible(r.recs,Math.min(s,r.recs.length))}t.initializing=!1,t.params.data=e,t.trigger(\"load\"),t.loaded=!0},o=function(){chaordic.widgetFallback&&chaordic.widgetFallback[t.feature]&&typeof chaordic.widgetFallback[t.feature].callback==\"function\"&&chaordic.widgetFallback[t.feature].callback(),t.initializing=!1,t.trigger(\"failfetch\")};r?s(r):this._getFeatureData(this.serverParams).success(s).error(o)}chaordic.onsite.Wishlist.injectScript()},o.prototype._addVisibleRecs=function(){chaordic.NoRepeatRecs.markAllVisible(this.recs,this.carousel.visibleItems)},o.prototype._filterRepeatedRecs=function(e,t,n){var r,i,s=[],o=[];if(this.refreshRender)return;for(r=0;r<e.recs.length;r++)i=e.recs[r],chaordic.NoRepeatRecs.isVisible(i)&&(!i.primeoffer||t===\"push\")?s.push(i):o.push(i);n?e.recs=o:e.recs=o.concat(s)},o.prototype._getFeatureData=function(e){return chaordic.onsite.Server.get(this.featureUrl,e)},o.prototype._buildServerParams=function(e){var t,r={index:0,size:this.params.size||12,minProducts:this.params.minProducts||2,apiKey:chaordic.Config.API_KEY,page:window.chaordic.meta.page,user:window.chaordic.meta.user,widgetId:this.params.id,source:chaordic.getPageSource()},i=chaordic.meta;i.product&&i.product.id&&(r.page.product={id:i.product.id}),this.params.templateId&&(r.templateId=this.params.templateId),!e.referenceProducts&&window.chaordic.meta.cart&&window.chaordic.meta.cart.items&&window.chaordic.meta.page.name===\"cart\"&&(e.referenceProducts=window.chaordic.meta.cart.items.map(function(e){return{id:e.product.id}})),e.referenceProduct&&(r.referenceProduct=e.referenceProduct),e.referenceProducts&&(r.referenceProducts=e.referenceProducts),typeof e.algorithm!=\"undefined\"&&(r.algorithm=e.algorithm),typeof e.requestParams!=\"undefined\"&&chaordic.Object.merge(r,e.requestParams),window.chaordic.Config.DUMMY_RECS===!0&&(r.algorithm=\"dummy\",r.feature=e.feature),window.chaordic.Config.HOMOLOGATION===!0&&(r.bypass=!0);for(var s=0;s<n.length;s++)t=n[s],e.hasOwnProperty(t)&&(r[t]=e[t]);return i&&i.page&&i.page.name===\"search\"&&i.search&&i.search.items&&(r.items=chaordic.Arrays.filter(i.search.items,function(e){return e.id}),r.items=chaordic.Arrays.map(r.items,function(e){return{id:e.id}}),r.query=i.search.query),chaordic.widgetFallback&&chaordic.widgetFallback[this.feature]&&typeof chaordic.widgetFallback[this.feature].callback==\"function\"&&(r.timeout=chaordic.widgetFallback[this.feature].timeout||1e4),r},o.prototype._checkVisibility=function(){var e=chaordic.lib.jQuery,t=this;this.viewed=!1;var n=function(){var r=.7,i=chaordic.Element.isInViewport(t.jqDiv[0],r);i&&(t.viewed=!0,t.sentVrl=[],t.sendVRL(),e(window).unbind(\"scroll\",n))};e(window).scroll(n),n()},o.prototype.render=function(e){var t=this,n=this.params,i=n.data;if(this.initializing){this.on(\"load\",function(){t.render(e)});return}if(!i)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(!e)throw new Error(\"No valid div to render on!\");if(i.message===\"Feature is disabled\"||!i.displays||i.displays.length===0||i.displays[0].recs.length<n.minProducts)return;r.active&&!this.calledPriceApi&&(this._initPriceApiOptions(),this._mapProducts());var s=chaordic.lib.jQuery;this.renderedProducts={},this.jqDiv=chaordic.lib.jQuery(e);var o=!0;typeof n.beforeRender==\"function\"&&(o=n.beforeRender.call(t,n,this.jqDiv));if(o===!1)return;this.params.height&&this.jqDiv.css(\"height\",this.params.height),this.params.width&&this.jqDiv.css(\"width\",this.params.width),this.jqDiv.html(\"\"),this.jqDiv.show(),this.createFrame(this.jqDiv[0],function(e,i){var o=!0;for(var u=n.style.length-1;u>=0;u--)t.attachCSS(t.assets.getAsset(n.style[u]));var a=t.widgetDiv=s(\"#widget\",e.contentWindow.document),f=e.contentWindow.document,l=chaordic.newFuglyTemplate(t.assets.getAsset(n.templates.widget));l.context(n),a.html(l.render()),t.notRegisterImpression=r.active&&!t.calledPriceApi&&t.priceApiOptions.waitToRender.enabled;var c=a.find(\".carousel\")[0];c&&(t.carouselDiv=c,t.renderCarousel(c,undefined,i)),r.active&&!t.calledPriceApi&&(t.priceApiOptions.waitToRender.enabled&&(o=!1,t.jqDiv.hide(),t.priceApiAllGets.done(function(){t.render(i)}),t._callPriceApi()),t.priceApiOptions.lazyLoading.enabled||t._callPriceApi()),t.setupPagination(),typeof n.afterDrawWidget==\"function\"&&o&&n.afterDrawWidget.call(t,a),t.setMaxWidth(f,i),n.dynamicHeight===!0?(s(e.contentWindow).resize(function(){t.jqDiv.height(a.outerHeight(!0))}),t.jqDiv.height(a.outerHeight(!0))):a.find(\".carousel-products\").css(\"position\",\"absolute\"),o&&t._checkVisibility()})},o.prototype._getEventRefs=function(){var e=[],t=this.getReferenceProducts(),n,r;for(r=0;r<t.length;r++)n={id:t[r].id},t[r].selectedSpecs&&(n.specs=t[r].selectedSpecs),e.push(n);return e},o.prototype.sendVRL=function(e,t){var n=this,i=chaordic.lib.jQuery,o=this.params||{},u,a=[],f=[],l,c;if(this.notRegisterImpression)return;e=e||this.getVisibleProducts();var h=function(e){if(typeof e==\"string\")return e;var t=e.id;return e.specs&&(t+=\"_\"+chaordic.onsite.flattenSpecs(e.specs)),t};for(l=0;l<e.length;l++)c=Object.assign({},e[l]),u=h(c),i.inArray(u,this.sentVrl)===-1&&(s.hasAds(c)&&f.push({id:u,hash:c.percycleHash,customBusiness:c.customBusiness}),delete c.customBusiness,delete c.percycleHash,a.push(c),this.sentVrl.push(u));if(a.length===0)return;var p={view:{feature:n.widget,recProducts:a,adsProducts:f,paginationInfo:t||n.carousel.getPaginationInfo()}};n.params&&n.params.algorithm&&(p.view.algRef=n.params.algorithm);var d=this.jqDiv.offset(),v=n._getEventRefs(),m={widgetRect:chaordic.lib.JSON.stringify({w:this.jqDiv.width(),h:this.jqDiv.height(),t:d.top,l:d.left}),clientViewport:chaordic.lib.JSON.stringify({w:document.documentElement.clientWidth,h:document.documentElement.clientHeight}),slotId:o.customSlot||o.slotId};chaordic.onsite.templateId&&(m.templateId=chaordic.onsite.templateId),n.serverParams.widgetId&&(m.widgetId=n.serverParams.widgetId),n.params&&n.params.algorithm&&(m.algorithm=n.params.algorithm),p.view.info=m,v.length&&(p.view.refProducts=v);if(r.active&&this.priceApiOptions.lazyLoading.enabled&&this.viewed){var g=p.view.recProducts.map(function(e){return e.id});if(Array.isArray(v))for(l=0;l<v.length;++l)g.push(v[l].id);g=g.filter(function(e){if(n.priceApiStatus[e]!==1)return e}),g.length>0&&(this.calledPriceApi=!1,this._callPriceApi(g))}this.lastVrlID=chaordic.event.Registry.viewRecommendations(p,this.viewed),this.viewed&&typeof this.params.afterViewableRecommendation==\"function\"&&this.params.afterViewableRecommendation.call(this,this.widgetDiv)},o.prototype.registerClickListenersByIndex=function(e,t){t=t||this.productViews,this.registerClickListeners(this.items.eq(e),t[e],{itemIndex:e})},o.prototype.registerClickListeners=function(e,t,n){var r=this,i=chaordic.lib.jQuery,s=i(e),o={id:t.product.id};i.isEmptyObject(t.selectedSpecs)?i.isEmptyObject(t.product.selectedSpecs)||(o.specs=t.product.selectedSpecs):o.specs=t.selectedSpecs,t.product.primeoffer&&t.product.primeoffer.campaignId&&(o.campaign=t.product.primeoffer.campaignId);var u=function(e){if(e.which!==1)return;var u=n||{},a=r.params||{};chaordic.Object.merge(u,r.carousel.getPaginationInfo());var f={paginationInfo:u,interactionType:i(this).hasClass(\"details\")?\"PRODUCT_DETAILS\":\"ADD_TO_CART\",feature:r.widget,info:{vrlId:r.lastVrlID,slotId:a.customSlot||a.slotId},products:[o]};chaordic.onsite.templateId&&(f.info.templateId=chaordic.onsite.templateId),r.serverParams.widgetId&&(f.info.widgetId=r.serverParams.widgetId),r.serverParams.algorithm&&(f.info.algorithm=r.serverParams.algorithm);if(typeof r.params.buy==\"function\"&&f.interactionType===\"ADD_TO_CART\"){var l=r.params.buy.call(r,t.product,t,s,f,e);if(l===!1)return}chaordic.event.Registry.click(f)};s.find(\"a.details, a.buy\").mousedown(u)};var u=function(e,t,n){var r,i,s,o,u=chaordic.lib.jQuery,a=this.params.specs||{},f=a.specOrder||[],l=a.valueOrder||{},c=function(e,t){return isNaN(e)||isNaN(t)?e>t:e-t};for(r in n.specs){u.inArray(r,f)===-1&&u.inArray(r,e)===-1&&e.push(r),t[r]||(t[r]=[]),o=n.specs[r].length;for(i=0;i<o;i++)s=n.specs[r][i],u.inArray(s.id,l[r])===-1&&u.inArray(s.id,t[r])===-1&&t[r].push(s.id);t[r].sort(c),Array.prototype.unshift.apply(t[r],l[r]||[])}e.sort(c),Array.prototype.unshift.apply(e,f)};o.prototype.setupDefaultCurrencyFormatter=function(e){var t;if(!e)return;e.currencySymbol&&(t={currencySymbol:e.currencySymbol}),chaordic.Currency.defaultFormatter=new chaordic.Currency(t)},o.prototype.renderProduct=function(e,t,n,i,o){var a=this,f=chaordic.lib.jQuery,l=this.params,c,h,p,d,v=chaordic.newFuglyTemplate(this.assets.getAsset(t||l.templates.product)),m,g,y,b,w,E={},S=this.params.specs&&this.params.specs.alias||{},x=[],T=chaordic.meta.page.name;n=n||this.productViews,i=i||this.recs,o=o||this.items,chaordic.Currency.defaultFormatter||this.setupDefaultCurrencyFormatter(l.data.client),n[e]||(c=i[e],c.specs&&function(){var e;for(var t in c.specs){if(!c.specs.hasOwnProperty(t))return;for(var n=0;n<c.specs[t].length;n++)e=c.specs[t][n],!e.id&&e.label&&(e.id=e.label)}}(),c.skus&&(p=new chaordic.onsite.SkuList(c)),c=new chaordic.Product(c),this.params.expandProductUrl!==!1&&c.expandProductUrl(this.params,this.params.data.client.urlTemplates),n[e]={params:this.params,product:c,skuList:p,selected:!0,selectedSpecs:c.selectedSpecs||{}}),u.call(this,x,E,i[e]),h=n[e];if(h.skuList){y=h.skuList,!h.selectedSpecs&&h.product.selectedSpecs&&(h.selectedSpecs=h.product.selectedSpecs);for(var N=0;N<x.length;N++){b=x[N],m=h.selectedSpecs[b];if(!m)continue;g=y.filterBySpec(b,{id:m});if(!g.firstAvailable()){delete h.selectedSpecs[b];continue}y=g}c=new chaordic.Product(y.firstAvailable()||y.skus[0]),this.params.expandProductUrl!==!1&&c.expandProductUrl(this.params,this.params.data.client.urlTemplates),h.product=c}s.hasAds(h.product)&&s.formatProductClickUrl(h.product,{page:T,feature:h.params.feature,widgetId:h.params.id}),w=f(\"<div></div>\"),h.skuList&&c.status.toLowerCase()===\"available\"&&function(){var e,t,n,r,i,s,o,u,l,c;h.selected=!0;for(e=0;e<x.length;e++){r=x[e],s=f('<select data-spec=\"'+r+'\"></select>'),l=a.params.specs&&a.params.specs.forceSelection&&f.isArray(a.params.specs.forceSelection)&&f.inArray(r,a.params.specs.forceSelection)!==-1;if(typeof u==\"undefined\"&&e>0&&l&&h.product.specs[r]){s.attr(\"disabled\",\"disabled\"),s.append('<option value=\"#\">'+(S[r]||r)+\"</option>\"),w.append(f('<div class=\"selectWrapper\"></div>').append(s));continue}if(o&&!o[u])continue;o=o?o[u].skus.groupBy(r):h.skuList.groupBy(r);if(!o)continue;l&&s.append('<option value=\"#\">'+(S[r]||r)+\"</option>\"),c=!1;for(t=0;t<E[r].length;t++){n=E[r][t];if(!o[n])continue;if(o[n].status!==\"available\")continue;i=f('<option value=\"'+o[n].id+'\">'+o[n].label+\"</option>\");if(l&&h.selectedSpecs[r]===n||!l&&h.product.specs[r]&&h.product.specs[r].id===n)u=n,i.attr(\"selected\",\"selected\"),!l&&!h.selectedSpecs[r]&&(h.selectedSpecs[r]=n),c=!0;s.append(i)}h.selected=h.selected?c:!1,w.append(f('<div class=\"selectWrapper\"></div>').append(s))}}(),typeof l.productView==\"function\"&&l.productView.call(a,h,e),a.renderedProducts[h.product.id]=h.product;if(r.active){var C=h.product.sku?h.product.id+h.product.sku:h.product.id;h.priceApiStatus=this.priceApiStatus[C]||0,!this.priceApiStatus[C]&&!this.priceApiOptions.waitToRender.enabled&&this.priceApiOptions.reRenderProduct&&this.priceApiGet&&this.priceApiGet[C]&&this.priceApiGet[C].done(function(){n[e]=undefined,a.renderProduct(e,t,n,i,o),a.registerClickListenersByIndex(e,n),d.find(\".specs select\").change(a.changeSpecSelect(e)),d.find(\".spec-selector\").click(a.changeSpec(e))})}v.context(h),d=o.eq(e).html(v.render()),d.attr(\"data-productid\",h.product.id),d.find(\".specs\").append(w),h.product.mostBought||d.find(\".percent-img\").remove(),typeof l.afterDrawProduct==\"function\"&&l.afterDrawProduct.call(a,d,h,a.widgetDiv,e);var k=h.product;chaordic.onsite.Wishlist.addLikeButton(d[0],{id:k.id},l.wishlist),a.handleLazyLoad(d)},o.prototype.changeSpecSelect=function(e){var t=this;return function(){var n=t.items.eq(e);this.value===\"#\"?delete t.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]:t.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]=this.value,t.renderProduct(e),t.registerClickListenersByIndex(e),n.find(\".specs select\").change(t.changeSpecSelect(e)),n.find(\".spec-selector\").click(t.changeSpec(e))}},o.prototype.changeSpec=function(e){var t=this;return function(){var n=t.items.eq(e);this.value===\"#\"?delete t.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]:t.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]=this.getAttribute(\"data-spec-id\"),t.renderProduct(e),t.registerClickListenersByIndex(e),n.find(\".specs select\").change(t.changeSpecSelect(e)),n.find(\".spec-selector\").click(t.changeSpec(e))}},o.prototype.renderCarousel=function(e,t,n){var r=this,i=this.widgetDiv,s=chaordic.lib.jQuery,o=this.params,u=o.data,a=t||{},f=a.productTemplate,l=chaordic.Object.copy(o.carousel),c,h,p;chaordic.Object.merge(l,a.carousel),this.recs=a.productsData||u.displays[0].recs.slice(0),this.productViews=[],h=i.find(l.next||\".next\"),p=i.find(l.prev||\".prev\");var d=[];o.referenceProduct&&d.push(o.referenceProduct),o.referenceProducts&&(d=o.referenceProducts);var v=this.carousel=new chaordic.Carousel(e,l,n);for(c=0;c<this.recs.length;c++)v.append(\"\");this.items=s(e).find(\".carousel-products .carousel-item\");var m=function(){var e=v.getVisibleElements();typeof r.params.carousel.itemsPerPage==\"number\"&&r.params.carousel.itemsPerPage>0&&(e=e[0].find(\".carousel-item\"));var t=[];for(var n=0;n<e.length;n++)t.push(s(e[n]).attr(\"data-productid\"));r.sendVRL()};for(c=0;c<this.recs.length;c++)this.renderProduct(c,f),this.registerClickListenersByIndex(c),r.items.eq(c).find(\".specs select\").change(this.changeSpecSelect(c)),r.items.eq(c).find(\".spec-selector\").click(this.changeSpec(c));r.jqDiv.show(),v.on(\"resize\",function(){var e=v.options.loopScroll,t=v.getTotalPages(),n=v.page;a.doNotRegisterVRL||m(),h.add(p).removeClass(\"disabled\");if(!e||t===1)n===1&&p.addClass(\"disabled\"),n===t&&h.addClass(\"disabled\")}),v.options.loopScroll!==!0&&(p.addClass(\"disabled\"),h.removeClass(\"disabled\"),v.on(\"paginationStart\",function(e,t){var n=e===1,r=e===v.getTotalPages();h.toggleClass(\"disabled\",r),p.toggleClass(\"disabled\",n)}));var g=!1;return v.on(\"paginationStart\",function(e,t){g=!0,h.addClass(\"scrolling\"),p.addClass(\"scrolling\")}),v.on(\"paginationEnd\",function(e,t){a.doNotRegisterVRL||m();var n=e===1,r=e===v.getTotalPages();v.options.loopScroll!==!0&&(h.toggleClass(\"disabled\",r),p.toggleClass(\"disabled\",n)),g=!1,h.removeClass(\"scrolling\"),p.removeClass(\"scrolling\")}),v.resize(),this._addVisibleRecs(this.recs,this.carousel),setTimeout(function(){v.resize()},200),h.off(\"click\").on(\"click\",function(){if(g)return;r.autoPaginationHandlerId&&clearInterval(r.autoPaginationHandlerId),v.nextPage()}),p.off(\"click\").on(\"click\",function(){if(g)return;r.autoPaginationHandlerId&&clearInterval(r.autoPaginationHandlerId),v.previousPage()}),v},o.prototype.attachCSS=function(e){if(!this.frame)throw new TypeError(\"[chaordic.onsite.Feature] Trying to attach css to uncreated frame. Check synchronization.\");var t=this.frame.contentWindow.document,n=t.getElementsByTagName(\"head\")[0]||t.documentElement,r=t.createElement(\"style\");r.type=\"text/css\",r.appendChild(t.createTextNode(e)),n.insertBefore(r,n.firstChild)},o.prototype.setMaxWidth=function(e,t){chaordic.lib.jQuery(e).find(\"body\").css({\"max-width\":chaordic.lib.jQuery(t||window).width()})},o.prototype.createFrame=function(e,t){var n=this;chaordic.Base.createFrame(function(r){var i=r.contentWindow.document,s=window.chaordic.meta.page.name,o=[],u=\"\",a=chaordic.getPageSource(),f=window.top,l=f.screen;o.push(n.params.widgetClass||\"\"),o.push(n.feature),o.push(\"ontouchstart\"in window||navigator.maxTouchPoints?\"touch\":\"no-touch\"),o.push(\"page-\"+s),o.push(a),u=l.width<l.height?l.width:l.height,a===\"mobile\"&&o.push(u<768?\"phone\":\"tablet\"),n.widget!==n.feature&&o.push(n.widget),n.params.widgetClass=o.join(\" \"),chaordic.lib.jQuery(\"body\",i).html('<div id=\"widget\" class=\"'+n.params.widgetClass+'\"></div>'),r.style.display=\"block\",r.width=\"100%\",r.height=\"100%\",n.frame=r,n.setMaxWidth(i,e),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){n.setMaxWidth(i,e)}),chaordic.lib.jQuery(window).resize(function(){n.setMaxWidth(i,e)});var c=i.createElement(\"base\"),h=i.getElementsByTagName(\"head\")[0],p=chaordic.Config.PROTOCOL+[chaordic.Config.STATIC_HOST,chaordic.Config.STATIC_CONTEXT,chaordic.Config.THEME_PATH,chaordic.Config.STATIC_API,chaordic.Config.THEME_URL].join(\"/\").replace(/\\/\\//g,\"/\");c.href=p,h.insertBefore(c,h.firstChild),chaordic.onsite.Wishlist.injectScriptInFrame(r,n.params.wishlist),n.frame=r,t(r,e)},e)},o.prototype.handleLazyLoad=function(e){var t=this,n=chaordic.lib.jQuery,r=e.find(\".lazy-container\"),i=r&&r.find(\"img.lazy\"),s;setTimeout(function(){var e=function(e){var t=new Image,n=e.getAttribute(\"data-src\");t.onload=function(){e.src=n,e.className=e.className.replace(\"lazy\",\"\"),e.removeAttribute(\"data-src\");var t=r.length&&r[0],i=t.className;t&&i.replace(\"lazy-container\",\"\")&&(t.className=i.replace(\"lazy-container\",\"\"))},t.src=n},o=function(){i.length&&i.each(function(t,n){e(n)})},u=function(){return t.priceApiOptions?t.priceApiOptions.lazyLoading.distanceToRender:0},a=function(){return chaordic.Element.isNearViewport(t.jqDiv[0],u())};if(a()){o();return}s=chaordic.Function.debounce(function(){a()&&(o(),n(window).unbind(\"scroll\",s))},300),n(window).bind(\"scroll\",s)})},chaordic.onsite.Feature=o}(),function(){var e=chaordic.Arrays,t=chaordic.Object.bind,n={getSlotDivs:function(){var e=chaordic.lib.jQuery,t=e(\"div[chaordic]\",chaordic.window.document),n={},r;if(!t.length)return;for(r=0;r<t.length;r++)n[t.eq(r).attr(\"chaordic\").trim()]=e(t[r]);return n},createWidgetDiv:function(e,t){var n=chaordic.lib.jQuery('<div class=\"chaordic\"></div>',chaordic.window.document);t.feature&&n.attr(\"data-widget\",t.feature.toLowerCase()),t.skin&&n.attr(\"data-skin\",t.skin);if(t.positonInSlot!==undefined&&t.positonInSlot>=0){var r=chaordic.lib.jQuery,i=r(e).children(\":not(:empty)\").get(t.positonInSlot);i?r(i).before(n):e.append(n)}else e&&e.append(n);return n}},r=function(e){this.params=e};r.prototype.getParams=function(){var e=this.params,t=chaordic.ThemeManager.getTheme(e.feature,e.skin||null),n=(e.feature+\"count\").toLowerCase();return chaordic.widgetLoadedCount||(chaordic.widgetLoadedCount={}),chaordic.widgetLoadedCount[n]?chaordic.widgetLoadedCount[n]++:chaordic.widgetLoadedCount[n]=1,e.title||(e.title=\"\"),t&&(chaordic.Object.merge(t,e),e=t),e},r.prototype.initialize=function(e){var t=chaordic.onsite[this.params.feature],n=new t;this.widget=n,this.div=chaordic.PageDivHandler.createWidgetDiv(e.div,this.params),n.setAssets(chaordic.ThemeManager),n.initialize(this.getParams()),n.params.slotId=e.id},r.prototype.hasController=function(){return Boolean(chaordic.onsite[this.params.feature])},r.prototype.hasTheme=function(){return Boolean(chaordic.ThemeManager.hasTheme(this.params.feature,this.params.skin||null))},r.prototype.isEnable=function(){return Boolean(this.params.enabled===!0||chaordic.Config.HOMOLOGATION)},r.prototype.isAvaliable=function(){return this.hasTheme()&&this.hasController()&&this.isEnable()},r.prototype.render=function(e){var t=this.div,n=this.widget,r=function(){var r=n.params.data;r&&r.ok&&r.displays&&r.displays.length?(n.render(t),e(!0)):e(!1)};n.loaded?r():(n.on(\"load\",r),n.on(\"failfetch\",function(){e(!1)}))};var i=function(e,t,n,r,i){this.id=e,this.div=t,this.pool=n,this.size=r,this.overflow=i};i.prototype.renderFixed=function(t){var n=this,r=[],i=0,s=0,o=Math.min(this.size,this.pool.length),u=function(){r.length&&r.shift()(n,u)},a=function(){--s===0&&r.length&&r.shift()(n,u)};this.pool=this.pool.filter(function(e){return e.params&&e.params.fixed?(i++,r.unshift(e),!1):!0}),e.forEach(this.pool,function(e){s++,e(n,a)}),i===o&&i&&r.shift()(n,u),t()},i.prototype.renderOverflow=function(e){var t,n,r=this,i=this.pool,s=Math.min(this.size,i.length),o=s,u=[],a=0;if(!s){e();return}var f=function(t){t?u.length?u.shift()(r,f):e():i.length>0?i.shift()(r,f):u.length?u.shift()(r,f):e()};n=function(t){t?--o-a===0?a===0?e():u.shift()(r,f):!i.length&&o&&e():i.length>0?i.shift()(r,n):u.length?u.shift()(r,f):e()};var l=null;for(t=i.length-1;t>=0;t--)l=i[t],l.params&&l.params.fixed&&(u.unshift(l),i.splice(t,1),a++);for(t=0;t<s-a;t++)i.length>0&&(l=i.shift(),l(r,n));a===s&&a&&u.shift()(r,f)},i.prototype.render=function(e){return this.div.empty(),this.overflow?this.renderOverflow(e):this.renderFixed(e)};var s=function(t){var n=t.widgets,s=t.slots,o=t.layout,u=function(t){var i=e.map(t,function(e){return new r(n[e])});return i=e.filter(i,function(e){return e.isAvaliable()}),i=e.map(i,function(e){var t=function(t,n){e.initialize(t),e.render(n)};return t.params=e.params,t}),i},a=function(e,t,n,r){return r.length&&(r=r.filter(function(e){return chaordic.findValueIndex(n,\"params.id\",e.params.id)===-1}),e=e.filter(function(e){return chaordic.findValueIndex(r,\"params.id\",e.params.id)===-1})),n=e.filter(function(e){return!e.params.fixed||chaordic.findValueIndex(t,\"params.id\",e.params.id)!==-1}),{pool:e,filteredPool:n}};this.columns=e.map(o,function(t){var n=t.overflow,r=[],o=[],f=[],l,c=e.map(t.rows,function(e){var t=e.slot,n=s[t],c=u(n.widgets);return c.map(function(e,t){e.params.fixed&&(e.params.positonInSlot=t)}),n.overflow&&Array.prototype.push.apply(r,c),function(e){var s=e[t];if(s)return n.overflow&&(l=a(r,c,o,f),r=l.pool,o=l.filteredPool,f=o.slice()),new i(t,s,n.overflow?o:c,c.length,n.overflow)}});return n&&n.length>0&&Array.prototype.push.apply(r,u(n)),c})};s.prototype.render=function(t){var n=this;chaordic.Base.onLoad(function(){var r=chaordic.PageDivHandler.getSlotDivs();if(!r)return;e.reduceRight(n.columns,function(t,n){return e.reduceRight(n,function(e,t){return function(){var n=t(r);n?n.render(e):e()}},t)},t||function(){})()})},chaordic.PageDivHandler=n,chaordic.WidgetRender=r,chaordic.SlotRender=i,chaordic.PageRender=s}(),function(){var e=chaordic.Arrays,t=new chaordic.Server(\"PROTOCOL\",\"DYNAMIC_HOST\"),n=function(e){return e&&e.product&&e.product.id},r=function(e){return{id:e.product.id}};chaordic.onsite.Server=t;var i=[];chaordic.onsite.PageService={getParams:function(t){var i=window.chaordic.meta,s=i.page,o=i.user,u={apiKey:chaordic.Config.API_KEY,page:s,user:o,source:chaordic.getPageSource()};i.product&&(u.referenceProduct={id:window.chaordic.meta.product.id},s&&s.selectedSpecs&&(u.referenceProduct.specs=chaordic.meta.page.selectedSpecs)),s&&s.name===\"cart\"&&i.cart&&i.cart.items&&(u.items=e.filter(i.cart.items,n),u.items=e.map(u.items,r)),s&&s.name===\"search\"&&i.search&&i.search.items&&(u.items=e.filter(i.search.items,function(e){return e.id}),u.items=e.map(u.items,function(e){return{id:e.id}}),u.query=i.search.query),u.page&&(u.page.url=u.page.url||window.location.href);var a=location.search;return a.indexOf(\"templateId=\")!==-1&&(u.templateId=a.split(\"templateId=\")[1].split(\"&\")[0]),chaordic.templateId&&(u.templateId=chaordic.templateId),t&&(u.timeout=t),chaordic.Config.HOMOLOGATION===!0&&(u.bypass=!0),u},getURL:function(){return chaordic.Config.USE_ONE_CALL&&!chaordic.Config.DUMMY_RECS?\"/v5/recommend/all\":\"/v5/recommend\"},addInterceptor:function(e){i.push(e)},clearInterceptors:function(){return i.splice(0,i.length)},getPage:function(t){var n=chaordic.onsite.Server.get(this.getURL(),this.getParams(t));return{success:function(t){return n.success(function(n){t(e.reduce(i,function(e,t){return t(e)||e},n))}),this},error:function(e){return n.error(e),this}}}}}(),function(){var e=function(e){if(chaordic.Object.isArray(e)){this.skus=e;return}this.setSkusFromProduct(e)};e.prototype.firstAvailable=function(){for(var e=0;e<this.skus.length;e++)if(this.skus[e].status.toLowerCase()===\"available\")return this.skus[e];return null},e.prototype.setSkusFromProduct=function(e){var t,n,r,i,s,o,u;this.skus=[],t=chaordic.Object.copy(e),delete t.skus,n={};for(u in t.specs){n[u]={};for(r=0;r<t.specs[u].length;r++)n[u][t.specs[u][r].id]=t.specs[u][r]}delete t.specs;for(r=0;r<e.skus.length;r++){s=chaordic.Object.copy(t),i=chaordic.Object.copy(e.skus[r]),o=i.specs,i.specs={},chaordic.Object.merge(s,i);for(u in o)n[u]&&o[u]&&(i.specs[u]=n[u][o[u]]);this.skus.push(s)}},e.prototype.groupBy=function(t){var n,r,i,s,o,u,a,f;if(chaordic.Object.isArray(t)){n={};for(a=0;a<t.length;a++)n[t[a]]=this.groupBy(t[a]);return n}s={},i={};for(a=0;a<this.skus.length;a++)r=this.skus[a],r.specs[t]&&(o=r.specs[t],i[o.id]||(i[o.id]=[],s[o.id]=o,s[o.id].status=\"unavailable\"),r.status.toLowerCase()===\"available\"&&(s[o.id].status=\"available\"),i[o.id].push(r));n={},f=!0;for(u in i)f=!1,n[u]=chaordic.Object.copy(s[u]),n[u].skus=new e(i[u]);return f?undefined:n},e.prototype.filterBySpec=function(t,n){var r,i,s,o,u=[];for(s=0;s<this.skus.length;s++){r=this.skus[s],o=!0;for(i in n)r.specs[t]&&r.specs[t][i]!==n[i]&&(o=!1);o&&u.push(r)}return new e(u)},e.prototype.getSpecs=function(e){var t,n,r,i;t=[];for(i=0;i<this.skus.length;i++)this.skus[i].specs[e]&&(n=chaordic.Object.copy(this.skus[i].specs[e]),n.status=this.skus[i].status,n.sku=this.skus[i].sku,t.push(n));return t},chaordic.onsite.SkuList=e}(),function(){\"use strict\";function e(){}e.prototype.mergeParams=function(e){var t=chaordic.Object.copy(chaordic.Config.WISHLIST||{});return chaordic.Object.merge(t,e||{}),t},e.prototype.injectScript=function(){var e=chaordic.Config.WISHLIST||{};if(e&&e.active&&!e.wasAdded){e.wasAdded=!0;var t=document.createElement(\"script\");t.src=e.scriptUrl;var n=document.getElementsByTagName(\"head\")[0];n.insertBefore(t,n.firstChild)}},e.prototype.injectScriptInFrame=function(e,t){var n=this.mergeParams(t),r,i,s;n.active&&(r=e.contentWindow.document,i=r.getElementsByTagName(\"head\")[0],s=r.createElement(\"script\"),s.src=n.scriptUrl,i.insertBefore(s,i.firstChild),e.contentWindow._nm={wishlistConfig:{iframe:{parentDocument:document,parentWindow:window}}})},e.prototype.addLikeButton=function(e,t,n){var r=this.mergeParams(n);if(r.active){var i=[{key:\"product-id\",value:t.id}];r.short&&i.push({key:\"short\",value:\"short\"}),r.likeLabel&&i.push({key:\"like-label\",value:r.likeLabel}),r.unlikeLabel&&i.push({key:\"unlike-label\",value:r.unlikeLabel});var s=document.createElement(\"like-button\");for(var o=0;o<i.length;o++)s.setAttribute(i[o].key,i[o].value);e.appendChild(s)}},chaordic.onsite.Wishlist=new e}(),function(){var e=function(){this.feature=\"featured\",this.featureUrl=\"/v5/recommend/featured\",this.defaultParams={title:\"\",vertical:!1,templates:{widget:\"featured.fugly\",product:\"featured-product.fugly\"},autoPagination:!0,style:[\"theme.css\",\"featured.css\"]}};e.prototype=new chaordic.onsite.Feature,chaordic.onsite.Featured=e}(),function(){var e=chaordic.onsite.AdsUtils,t=function(){this.feature=\"frequentlyboughttogether\",this.featureUrl=\"v5/recommend/frequentlyBoughtTogether\",this.defaultParams={title:\"Você está vendo\",subTitle:\"Compre junto\",vertical:!1,templates:{widget:\"frequentlyboughttogether.fugly\",product:\"frequentlyboughttogether-product.fugly\",summary:\"frequentlyboughttogether-summary.fugly\"},priceApiOptions:{waitToRender:{enabled:!0,removeProducts:{unavailable:!0,failedRequest:!0}}},style:[\"frequentlyboughttogether.css\",\"theme.css\"],visibleProducts:3},this.items=chaordic.lib.jQuery(),this.paginationCount=0,this.recs=[],this.productViews=[],this.viewedCampaignProducts={},this.productViewsLastStatus=[],this.recsLastStatus=[],this.isCampaignInserted=!1,this.disabledSkip={}};t.prototype=new chaordic.onsite.Feature,t.prototype._getPriceApiInputProducts=function(){var e=this.productMap;return Object.keys(e).map(function(t){var n=e[t];return{id:n.id,skus:n.skus}})},t.prototype.initialize=function(e){if(!e.referenceProduct){if(!chaordic.meta.product)throw new TypeError(\"Missing mandatory Product (chaordic_meta) parameter for FrequentlyBoughtTogether\");e.referenceProduct={id:chaordic.meta.product.id},chaordic.meta.page.selectedSpecs&&(e.referenceProduct.specs=chaordic.meta.page.selectedSpecs)}chaordic.onsite.Feature.prototype.initialize.call(this,e)},t.prototype.sendVRL=function(t){var n=chaordic.lib.jQuery,r={id:this.reference.id},i=[],s=[],o;for(var u=1;u<this.params.visibleProducts;u++)o=this.recs[u],i.push({id:o.id}),e.hasAds(this.recs[u])&&s.push({id:o.id,percycleHash:o.percycleHash,customBusiness:o.customBusiness});if(i.length===0)return;var a=chaordic.Object.copy(window.chaordic.meta.page),f={view:{feature:this.widget,recProducts:i,adsProducts:s,refProducts:[r],paginationInfo:{pageItems:i.length,pageIndex:t||0,itemIndex:0},info:{}},page:a,apiKey:chaordic.Config.API_KEY};chaordic.onsite.templateId&&(f.view.info.templateId=chaordic.onsite.templateId),this.serverParams.widgetId&&(f.view.info.widgetId=this.serverParams.widgetId),this.serverParams.algorithm&&(f.view.info.algorithm=this.serverParams.algorithm),f.page.tags&&(f.tags=f.page.tags,delete f.page.tags),f.page.categories&&(f.categories=f.page.categories,delete f.page.categories),chaordic.event.Registry.viewRecommendations(f,this.viewed),this.viewed&&typeof this.params.afterViewableRecommendation==\"function\"&&this.params.afterViewableRecommendation.call(this,this.widgetDiv)},t.prototype.sendClickLog=function(e,t){var n={id:this.reference.id},r=[];for(var i=1;i<this.params.visibleProducts;i++)this.productViews[i].fbtDisabled!==!0&&r.push({id:this.recs[i].id});var s={products:e,feature:this.widget,interactionType:t||\"PRODUCT_DETAILS\",paginationInfo:{pageItems:r.length,pageIndex:0,itemIndex:0},info:{}};this.params.slotId&&(s.info.slotId=this.params.slotId),chaordic.onsite.templateId&&(s.info.templateId=chaordic.onsite.templateId),this.serverParams.widgetId&&(s.info.widgetId=this.serverParams.widgetId),this.serverParams.algorithm&&(s.info.algorithm=this.serverParams.algorithm),chaordic.event.Registry.click(s)},t.prototype.render=function(e){var t=this,n=chaordic.lib.jQuery;if(this.initializing){this.on(\"load\",function(){t.render(e)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(!this.params.data.displays||this.params.data.displays.length===0||this.params.data.displays[0].refs.length===0||this.params.data.displays[0].recs.length===0)return;if(this.params.data.message&&this.params.data.message===\"Feature is disabled\")return;chaordic.PriceApi.active&&!this.calledPriceApi&&(this._initPriceApiOptions(),this._mapProducts()),this.jqDiv=chaordic.lib.jQuery(e),this.renderedProducts={};var r=!0;typeof this.params.beforeRender==\"function\"&&(r=this.params.beforeRender.call(t,this.params,this.jqDiv));if(r===!1)return;this.params.height&&this.jqDiv.css(\"height\",this.params.height),this.params.width&&this.jqDiv.css(\"width\",this.params.width),this.jqDiv.html(\"\"),this.jqDiv.show(),this.createFrame(this.jqDiv[0],function(e,r){var i=t.params,s=t.assets,o=t.params.data,u=e.contentWindow.document,a,f,l,c,h=!0;t.reference=o.displays[0].refs[0],t.recs=[t.reference].concat(o.displays[0].recs),t.params.visibleProducts=t.params.visibleProducts<t.recs.length?t.params.visibleProducts:t.recs.length,t.campaignsByPosition={},(o.displays[0].campaigns||[]).forEach(function(e){t.campaignsByPosition[e.position]=e.recs,e.recs.length===1&&(t.disabledSkip[e.position]=!0)}),n.isEmptyObject(t.campaignsByPosition)||Object.keys(t.campaignsByPosition).forEach(function(e){t.viewedCampaignProducts[e]=[t.recs[e]]});for(a=0;a<i.style.length;a+=1)t.attachCSS(s.getAsset(i.style[a]));f=chaordic.lib.jQuery(\"#widget\",e.contentWindow.document),l=chaordic.newFuglyTemplate(s.getAsset(i.templates.widget)),l.context(i),f.html(l.render()),t.jqWidget=f,t.renderProducts(),t.renderSummary(c),t.jqDiv.show(),chaordic.PriceApi.active&&!t.calledPriceApi?(h=!1,t.jqDiv.hide(),t.priceApiAllGets.done(function(){t.render(r)}),t._callPriceApi()):t.sendVRL(),typeof i.afterDrawWidget==\"function\"&&h&&i.afterDrawWidget.call(t,f),t.setMaxWidth(u,r),i.dynamicHeight===!0&&(n(e.contentWindow).resize(function(){t.jqDiv.height(f.outerHeight(!0))}),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){t.jqDiv.height(f.outerHeight(!0))}),t.jqDiv.height(f.outerHeight(!0))),h&&t._checkVisibility()})},t.prototype.renderSummary=function(){var e=chaordic.lib.jQuery(\"#summary\",this.jqWidget),t=this,n=0,r=0,i=!1,s,o=[],u,a;typeof t.params.beforeRenderSummary==\"function\"&&t.params.beforeRenderSummary.call(t);if(!e.length)return;for(var f=0;f<this.params.visibleProducts;f++){s=this.productViews[f].product;if(this.productViews[f].fbtDisabled===!0)continue;this.productViews[f].selected||(i=!0),o.push(s),n+=s.price,r+=s.oldPrice?s.oldPrice:s.price}a=chaordic.newFuglyTemplate(this.assets.getAsset(this.params.templates.summary)),u={price:chaordic.Currency.format(n),selectedProducts:o,disabled:i},r>n&&(u.oldPrice=chaordic.Currency.format(r),u.savings=chaordic.Currency.format(r-n)),typeof t.params.summaryView==\"function\"&&t.params.summaryView.call(t,u),a.context(u),e.html(a.render()),typeof this.params.buyTogether==\"function\"&&this.jqWidget.find(\".buy-together\").click(function(){var e=[],n=[];for(var r=0;r<t.params.visibleProducts;r++){s=t.productViews[r].product;if(t.productViews[r].fbtDisabled===!0)continue;n.push({id:s.id}),e.push(s)}var i=t.params.buyTogether.call(t,e,t.productViews);if(i===!1)return;t.sendClickLog(n,\"ADD_TO_CART\")}),typeof t.params.afterDrawSummary==\"function\"&&t.params.afterDrawSummary.call(t,t.jqWidget)},t.prototype.enabledProductsCount=function(){var e=0;for(var t=0;t<this.params.visibleProducts;t++)(typeof this.productViews[t]==\"undefined\"||this.productViews[t].fbtDisabled!==!0)&&e++;return e},t.prototype.renderProduct=function(e){var t=chaordic.lib.jQuery,n=this.items.eq(e).empty(),r=this,i,s,o,u,a,f=this.params.afterDrawProduct;this.params.afterDrawProduct=undefined,chaordic.onsite.Feature.prototype.renderProduct.call(this,e),this.params.afterDrawProduct=f,this.isCampaignInserted||(this.productViewsLastStatus=this.productViews.slice(),this.recsLastStatus=this.recs.slice()),a=this.productViews[e],i=n.find(\".skip\"),s=n.find(\".disable-product\"),o=n.find(\".enable-product\"),u=n.find(\".toggle-product\"),e>0?(r.disabledSkip.hasOwnProperty(e)?i.remove():i.click(function(){r.skipProduct(e)}),s.click(function(){r.disableProduct(e)}),o.click(function(){r.enableProduct(e)}),u.click(function(){r.toggleProduct(e)}),o.hide()):i.remove(),this.enabledProductsCount()>2&&e>0&&n.addClass(\"removable\"),this.recs.length<=this.params.visibleProducts&&i.hide(),typeof this.params.afterDrawProduct==\"function\"&&this.params.afterDrawProduct.call(this,n,a,this.jqWidget,e),n.find(\"a.details\").click(function(){var e=a.product;return function(){r.sendClickLog([{id:e.id}])}}()),n.find(\".specs select\").change(function(){this.value===\"#\"?delete r.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]:r.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]=this.value,r.renderProduct(e),r.renderSummary()}),n.find(\".spec-selector\").click(function(){this.value===\"#\"?delete r.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]:r.productViews[e].selectedSpecs[this.getAttribute(\"data-spec\")]=this.getAttribute(\"data-spec-id\"),r.renderProduct(e),r.renderSummary()})},t.prototype.skipProduct=function(e){if(this.recs.length<=this.params.visibleProducts)return;var t=chaordic.lib.jQuery,n,r,i,s,o,u;if(!t.isEmptyObject(this.campaignsByPosition)&&this.campaignsByPosition.hasOwnProperty(e)&&this.campaignsByPosition[e].length>0){this.isCampaignInserted=!0,o=this.viewedCampaignProducts[e].length,o<this.campaignsByPosition[e].length?(n=this.recs[e],i=this.campaignsByPosition[e][o],this.viewedCampaignProducts[e].push(i)):(n=this.recs[e],i=this.campaignsByPosition[e][0],this.viewedCampaignProducts[e]=[i],this.productViews=this.productViews.slice(0,this.params.visibleProducts));for(u=this.params.visibleProducts;u<this.params.visibleProducts+1;u++)this.productViews[u]=undefined;r=this.productViews[e],s=this.productViews[this.params.visibleProducts]}else{this.isCampaignInserted=!1,this.productViews=this.productViewsLastStatus.slice(),this.recs=this.recsLastStatus.slice();if(this.productViews.length<this.recs.length)for(u=0;u<this.recs.length;u++)this.productViews[u]||(this.productViews[u]=undefined);n=this.recs[e],r=this.productViews[e],i=this.recs[this.params.visibleProducts],s=this.productViews[this.params.visibleProducts]}this.productViews[e]=s,this.productViews.splice(this.params.visibleProducts,1),this.productViews.push(r),this.recs[e]=i,this.recs.splice(this.params.visibleProducts,1),this.recs.push(n),this.renderProduct(e),this.renderSummary(),this.sendVRL(++this.paginationCount)},t.prototype.toggleProduct=function(e){this.productViews[e].fbtDisabled===!0?this.enableProduct(e):this.disableProduct(e)},t.prototype.disableProduct=function(e){var t=this.items.eq(e),n=this;t.addClass(\"disabled\"),this.productViews[e].fbtDisabled=!0,this.enabledProductsCount()===2&&this.items.removeClass(\"removable\"),this.renderSummary()},t.prototype.enableProduct=function(e){var t=this.items.eq(e);t.removeClass(\"disabled\"),this.productViews[e].fbtDisabled=!1,this.enabledProductsCount()>2&&(this.items.addClass(\"removable\"),this.items.eq(0).removeClass(\"removable\")),this.renderSummary()},t.prototype.renderProducts=function(){var e=0,t=this.jqWidget.find(\"#thumbnails\");this.productViews=[];while(e<this.params.visibleProducts)e>0&&t.append('<span class=\"plus\">+</span>'),t.append('<div data-index=\"'+e+'\" class=\"item\"></div>'),e+=1;this.items=t.find(\"> .item\");for(e=0;e<this.params.visibleProducts;e++)this.renderProduct(e)},chaordic.onsite.FrequentlyBoughtTogether=t}(),function(){var e=function(){this.feature=\"historypersonalized\",this.featureUrl=\"/v5/recommend/historyPersonalized\",this.defaultParams={title:\"Últimos visitados\",subTitle:\"Talvez se interesse por\",vertical:!1,templates:{widget:\"historypersonalized.fugly\",onlyRefs:\"widget.fugly\",product:\"product.fugly\",refProduct:\"historypersonalized-ref-product.fugly\"},style:[\"theme.css\",\"historypersonalized.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype.initialize=function(e){this.assets.hasAsset(this.defaultParams.templates.onlyRefs)||(this.defaultParams.templates.onlyRefs=\"similaritems.fugly\"),chaordic.onsite.Feature.prototype.initialize.call(this,e)},e.prototype.getReferenceProducts=function(){return this.params.data.displays[0].refs},e.prototype.setCarouselOption=function(e){var t=this.params,n,r;t.enabledRec===!1?(n=chaordic.Object.copy(t.carousel),typeof t.carouselOnlyRefs==\"object\"?(r=chaordic.Object.copy(t.carouselOnlyRefs),chaordic.Object.merge(n,r)):n.maxVisibleItems+=1,e.carousel=n):chaordic.isMobile&&typeof t.carouselRefsMobile==\"object\"?(e.carousel={},chaordic.Object.merge(e.carousel,t.carousel),chaordic.Object.merge(e.carousel,t.carouselRefsMobile)):!chaordic.isMobile&&typeof t.carouselRefsDesktop==\"object\"&&chaordic.Object.merge(e.carousel,t.carouselRefsDesktop)},e.prototype.renderRecs=function(e,t){var n=this.params;typeof n.beforeRenderRecs==\"function\"&&n.beforeRenderRecs.call(this,n,this.jqDiv);var r=e.find(\".recs-frame > .carousel\"),i=r[0],s={productsData:t,carousel:{next:\".recs-next\",prev:\".recs-prev\"}};i&&(r.empty(),this.renderCarousel(i,s))},e.prototype.renderList=function(e,t){var n=this.params;typeof n.beforeRenderRecs==\"function\"&&n.beforeRenderRecs.call(this,n,this.jqDiv);var r=e.find(\".carousel\"),i=r[0],s={productsData:t};this.setCarouselOption(s),i&&(r.empty(),this.renderCarousel(i,s))},e.prototype.renderRefs=function(e,t){var n=e.find(\".refs-frame > .carousel\"),r=n[0],i=this.params,s=typeof chaordic.verticalHpRefs!=\"undefined\"?chaordic.verticalHpRefs:!0,o=typeof i.allowRefsClick!=\"undefined\"?i.allowRefsClick:!1;typeof i.beforeRenderRefs==\"function\"&&i.beforeRenderRefs.call(this,i,this.jqDiv);if(r){n.empty();var u=[],a={productsData:t,productTemplate:this.params.templates.refProduct,doNotRegisterVRL:!0,carousel:{vertical:s,dynamicMode:!chaordic.isMobile||s?\"margin\":\"box\",next:\".refs-next\",prev:\".refs-prev\"}};this.setCarouselOption(a),this.renderCarousel(r,a),o||(!chaordic.isMobile||s)&&this.attachClickHandler(e,r)}},e.prototype.attachClickHandler=function(e,t){var n=this,r=chaordic.lib.jQuery,i=r(t).find(\"li\"),s;i.click(function(t){var o=r(t.currentTarget);if(r(t.target).hasClass(\"details\"))return!0;t.preventDefault(),s=o.attr(\"data-productid\");if(n.params.referenceProduct&&n.params.referenceProduct.id===s)return;i.removeClass(\"selected\"),o.addClass(\"selected\"),n.params.referenceProduct={id:s},delete n.params.data,n.params.hideWidgetOnLoad=!1,n._getFeatureData(n._buildServerParams(n.params)).success(function(t){n.params.data=t,n.calledPriceApi=!1,n.renderedProducts={},n._mapProducts(),n.renderRecs(e,t.displays[0].recs),n.setupPagination(),chaordic.PriceApi.active&&n.priceApiOptions.waitToRender.enabled&&n.priceApiAllGets.done(function(){n.renderRecs(e,t.displays[0].recs),n.setupPagination()}),n._callPriceApi()}).error(function(){n.initializing=!1})})},e.prototype.render=function(e){var t=chaordic.lib.jQuery,n=this.params,r=n.data,i=this;if(this.initializing){this.on(\"load\",function(){i.render(e)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(r.message===\"Feature is disabled\"||!r.displays||r.displays.length===0||r.displays[0].recs.length===0||n.enabledRec!==!1&&r.displays[0].refs.length===0)return;chaordic.PriceApi.active&&!this.calledPriceApi&&(this._initPriceApiOptions(),this._mapProducts()),this.jqDiv=chaordic.lib.jQuery(e),this.renderedProducts={};var s=!0;typeof n.beforeRender==\"function\"&&(s=n.beforeRender.call(i,n,this.jqDiv));if(s===!1)return;this.params.height&&this.jqDiv.css(\"height\",this.params.height),this.params.width&&this.jqDiv.css(\"width\",this.params.width),this.jqDiv.html(\"\"),this.jqDiv.show(),this.createFrame(this.jqDiv[0],function(e,r){var s=!0;for(var o=n.style.length-1;o>=0;o--)i.attachCSS(i.assets.getAsset(n.style[o]));var u=i.widgetDiv=t(\"#widget\",e.contentWindow.document),a;n.enabledRec!==!1?a=chaordic.newFuglyTemplate(i.assets.getAsset(n.templates.widget)):a=chaordic.newFuglyTemplate(i.assets.getAsset(n.templates.onlyRefs));var f=e.contentWindow.document;a.context(n),u.html(a.render()),i.notRegisterImpression=chaordic.PriceApi.active&&!i.calledPriceApi&&i.priceApiOptions.waitToRender.enabled,n.enabledRec!==!1?(i.renderRefs(u,i.params.data.displays[0].refs),i.renderRecs(u,i.params.data.displays[0].recs)):i.renderList(u,i.params.data.displays[0].recs),chaordic.PriceApi.active&&!i.calledPriceApi&&(i.priceApiOptions.waitToRender.enabled&&(s=!1,i.jqDiv.hide(),i.priceApiAllGets.done(function(){i.render(r)}),i._callPriceApi()),i.priceApiOptions.lazyLoading.enabled||i._callPriceApi()),i.setupPagination(),typeof n.afterDrawWidget==\"function\"&&s&&n.afterDrawWidget.call(i,u),i.setMaxWidth(f,r),n.dynamicHeight===!0?(t(e.contentWindow).resize(function(){i.jqDiv.height(u.outerHeight(!0))}),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){i.jqDiv.height(u.outerHeight(!0))}),i.jqDiv.height(u.outerHeight(!0))):u.find(\".carousel-products\").css(\"position\",\"absolute\"),s&&i._checkVisibility()})},chaordic.onsite.HistoryPersonalized=e}(),function(){var e=function(){this.feature=\"mostpopular\",this.featureUrl=\"/v5/recommend/mostPopular\",this.defaultParams={title:\"Mais Populares\",vertical:!1,templates:{widget:\"mostpopular.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"mostpopular.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype.initialize=function(e){var t,n,r;t=this,typeof e.productView==\"function\"&&(n=e.productView),this.rankingCount=1,e.productView=function(){arguments[0].ranking||(arguments[0].ranking=t.rankingCount,t.rankingCount++),typeof n==\"function\"&&n.apply(t,arguments)},chaordic.meta.product&&(e.referenceProduct={id:chaordic.meta.product.id},chaordic.meta.page&&chaordic.meta.page.selectedSpecs&&(e.referenceProduct.specs=chaordic.meta.page.selectedSpecs)),chaordic.onsite.Feature.prototype.initialize.call(this,e)},e.prototype.render=function(e){var t=this,n=this.params,r=n.data;this.rankingCount=1;if(this.initializing){this.on(\"load\",function(){t.render(e)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(r.message===\"Feature is disabled\"||r.displays&&r.displays.length===0)return;this.params.data.displays[0].categories&&this.params.data.displays[0].categories.length>0&&(this.params.categories=this.params.data.displays[0].categories),chaordic.onsite.Feature.prototype.render.apply(this,arguments)},chaordic.onsite.MostPopular=e}(),function(){var e=function(){this.feature=\"new4you\",this.featureUrl=\"/v5/recommend/new4You\",this.defaultParams={title:\"Novidades que chegaram pra você\",vertical:!1,templates:{widget:\"new4you.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"new4you.css\"]}};e.prototype=new chaordic.onsite.Feature,chaordic.onsite.New4You=e}(),function(){var e=function(){this.feature=\"offers\",this.featureUrl=\"/v5/recommend/offers\",this.defaultParams={title:\"Produtos que baixaram de preço\",vertical:!1,templates:{widget:\"offers.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"offers.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype.renderProduct=function(e,t,n,r,i){n=n||this.productViews,r=r||this.recs,i=i||this.items;var s=chaordic.Currency.parseBRLNumber,o=r[e],u=typeof o.price==\"string\"?s(o.price):o.price,a=typeof o.oldPrice==\"string\"?s(o.oldPrice):o.oldPrice,f=o.skus,l=n&&n[e],c=l&&l.selectedSpecs,h;if(!c&&f)if(o.recSku){for(h=0;h<f.length;h++)if(f[h].sku===o.recSku){o.selectedSpecs=f[h].specs;break}}else for(h=0;h<f.length;h++)if(f[h].price===u&&f[h].oldPrice===a&&f[h].status===\"available\"){o.selectedSpecs=f[h].specs,o.recSku=f[h];break}chaordic.onsite.Feature.prototype.renderProduct.apply(this,arguments)},chaordic.onsite.Offers=e}(),function(){var e={},t=function(){this.feature=\"personalized\",this.featureUrl=\"/v5/recommend/personalized\",this.defaultParams={title:\"Você visitou...\",subTitle:\"Talvez se interesse por\",vertical:!1,templates:{widget:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"personalized.css\"]}};t.prototype=new chaordic.onsite.Feature,t.prototype.render=function(t){var n=this,r=chaordic.lib.jQuery,i=this.params,s=i.data,o;if(this.initializing){this.on(\"load\",function(){n.render(t)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(s.message===\"Feature is disabled\"||!s.displays||s.displays.length===0||s.displays[0].refs.length===0||s.displays[0].recs.length===0)return;var u=s.displays[0].refs[0],a=u.id;u.selectedSpecs&&(a+=\"_\"+chaordic.onsite.flattenSpecs(u.selectedSpecs));var f=(this.feature+\"count\").toLowerCase();e[a]||(e[a]=0),e[a]++;if(e[a]>1&&e[a]<=chaordic.widgetLoadedCount[f]){delete this.params.data,typeof this.params.requestParams==\"undefined\"&&(this.params.requestParams={}),this.params.requestParams.avoidProducts=[{id:u.id}],this.initialize(this.params),this.render(t);return}if(e[a]&&e[a]>1)return;this.jqDiv=chaordic.lib.jQuery(t),this.renderedProducts={},chaordic.PriceApi.active&&!this.calledPriceApi&&(this._initPriceApiOptions(),this._mapProducts());var l=!0;typeof i.beforeRender==\"function\"&&(l=i.beforeRender.call(n,i,this.jqDiv));if(l===!1)return;this.params.height&&this.jqDiv.css(\"height\",this.params.height),this.params.width&&this.jqDiv.css(\"width\",this.params.width),this.jqDiv.html(\"\"),this.jqDiv.show(),this.createFrame(this.jqDiv[0],function(t,u){var f=!0;for(var l=i.style.length-1;l>=0;l--)n.attachCSS(n.assets.getAsset(i.style[l]));var c=n.widgetDiv=r(\"#widget\",t.contentWindow.document),h=chaordic.newFuglyTemplate(n.assets.getAsset(i.templates.widget)),p=t.contentWindow.document;h.context(i),c.html(h.render()),n.notRegisterImpression=chaordic.PriceApi.active&&!n.calledPriceApi&&n.priceApiOptions.waitToRender.enabled;var d=c.find(\".action\");n.referenceProduct=s.displays[0].refs[0],i.referenceProduct={id:n.referenceProduct.id};if(d.length>0){var v=[];n.renderProduct(0,i.templates.referenceProduct,v,s.displays[0].refs,d);var m=function(){this.value===\"#\"?delete v[0].selectedSpecs[this.getAttribute(\"data-spec\")]:v[0].selectedSpecs[this.getAttribute(\"data-spec\")]=this.value,n.renderProduct(0,i.templates.referenceProduct,v,s.displays[0].refs,d),n.registerClickListeners(d,v[0]),d.find(\".specs select\").change(m),d.find(\".spec-selector\").click(g)},g=function(e){this.value===\"#\"?delete v[0].selectedSpecs[this.getAttribute(\"data-spec\")]:v[0].selectedSpecs[this.getAttribute(\"data-spec\")]=this.getAttribute(\"data-spec-id\"),n.renderProduct(0,i.templates.referenceProduct,v,s.displays[0].refs,d),n.registerClickListeners(d,v[0]),d.find(\".specs select\").change(m),d.find(\".spec-selector\").click(g)};n.registerClickListeners(d,v[0]),d.find(\".specs select\").change(m),d.find(\".spec-selector\").click(g),typeof i.afterDrawProduct==\"function\"&&i.afterDrawProduct.call(n,d,v[0].product,c,0)}var y=c.find(\".carousel\")[0];y&&(n.carousel=o=n.renderCarousel(y,undefined,u)),chaordic.PriceApi.active&&!n.calledPriceApi&&(n.priceApiOptions.waitToRender.enabled&&(f=!1,n.refreshRender||n.jqDiv.hide(),n.priceApiAllGets.done(function(){e[a]=0,n.render(u)}),n._callPriceApi()),n.priceApiOptions.lazyLoading.enabled||n._callPriceApi());var b=c.find(\".refresh\");b.click(function(){e={},b.off(),c.addClass(\"loading\"),typeof n.params.requestParams==\"undefined\"&&(n.params.requestParams={}),n.params.requestParams.avoidProducts=[{id:n.referenceProduct.id}],delete n.params.data,n.params.hideWidgetOnLoad=!1,n.refreshRender=!0,n.initialize(n.params),n.render(n.jqDiv[0])}),n.setupPagination(),typeof i.afterDrawWidget==\"function\"&&f&&i.afterDrawWidget.call(n,c),n.setMaxWidth(p,u),i.dynamicHeight===!0?(r(t.contentWindow).resize(function(){n.jqDiv.height(c.outerHeight(!0))}),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){n.jqDiv.height(c.outerHeight(!0))}),n.jqDiv.height(c.outerHeight(!0))):c.find(\".carousel-products\").css(\"position\",\"absolute\"),f&&n._checkVisibility()})},chaordic.onsite.Personalized=t}(),function(){var e,t=function(){this.feature=\"push\",this.featureUrl=\"/v5/recommend/push\",this.defaultParams={title:\"Promovidos\",vertical:!1,templates:{widget:\"push.fugly\",product:\"product.fugly\"},menuTransitionDuration:800,style:[\"theme.css\",\"push.css\"]},e=chaordic.lib.jQuery};t.prototype=new chaordic.onsite.Feature,t.prototype._loadCampaign=function(e){return this.serverParams.campaignId=e,this._getFeatureData(this.serverParams)},t.prototype._populateRenderedProducts=function(e){var t=[];e&&e.displays&&e.displays[0].recs&&(t=e.displays[0].recs.slice(0));for(var n=0;n<t.length;n++){var r=t[n],i;r.skus&&(i=new chaordic.onsite.SkuList(r)),r=new chaordic.Product(i.firstAvailable()||i.skus[0]),this.renderedProducts[r.id]=r}},t.prototype._registerMenuClickListeners=function(){var t=this;this.menu.items.click(function(n){var r=e(n.currentTarget);t._switchSelectedItem(r),t._loadCampaign(r.data(\"campaignid\")).success(function(n){t.params.data=n,t.calledPriceApi=!1,t.renderedProducts={},t._mapProducts();var i=function(){e(t.carouselDiv).empty(),t.renderCarousel(t.carouselDiv,undefined,t.jqDiv[0]),t.setupPagination(),typeof t.params.afterChangeMenuItem==\"function\"&&t.params.afterChangeMenuItem.call(t,r)};chaordic.PriceApi.active&&t.priceApiOptions.waitToRender.enabled?(t._populateRenderedProducts(n),t.priceApiAllGets.done(i)):i(),t._callPriceApi()})})},t.prototype._renderDeadline=function(){function e(){var e=t._getTimeRemaining(t.params.deadline),n=e.days*24+e.hours;n=n.toString().length===1?\"0\"+n:n,r.innerHTML=n,i.innerHTML=(\"0\"+e.minutes).slice(-2),s.innerHTML=(\"0\"+e.seconds).slice(-2),e.total<=0&&clearInterval(o)}var t=this;if(!this.widgetDiv)return;var n=this.widgetDiv.find(\".deadline-wrapper\");if(!n||!this.params.deadline)return;var r=document.createElement(\"div\");r.setAttribute(\"class\",\"hour\"),n.append(r);var i=document.createElement(\"div\");i.setAttribute(\"class\",\"minute\"),n.append(i);var s=document.createElement(\"div\");s.setAttribute(\"class\",\"second\"),n.append(s),e();var o=setInterval(e,1e3)},t.prototype._renderMenu=function(){if(!this.widgetDiv)return;var t=this.widgetDiv.find(\".menu-wrapper\");if(!t||!this.params.menu)return;var n=document.createElement(\"ul\");n.setAttribute(\"class\",\"menu\"),t.append(n);var r=[],i;this.params.menu.forEach(function(e){var t=document.createElement(\"li\");t.setAttribute(\"class\",\"menu-item\"),t.setAttribute(\"data-campaignid\",e.campaignId),t.innerHTML=e.label,e.selected&&(t.classList.add(\"selected\"),i=t),r.push(t),n.appendChild(t)}),this.menu.items=e(r),this.menu.selectedItem=e(i),typeof this.params.afterRenderMenu==\"function\"&&this.params.afterRenderMenu.call(this,e(n)),this._registerMenuClickListeners()},t.prototype._switchSelectedItem=function(e){this.menu.selectedItem.removeClass(\"selected\"),e.addClass(\"selected\"),this.menu.selectedItem=e,chaordic.isMobile&&this._centralizeSelectedItem(e)},t.prototype._centralizeSelectedItem=function(e){var t=this.widgetDiv.find(\".menu-wrapper\"),n=e.outerWidth(!0),r=e.position().left+n/2-t.width()/2;t.animate({scrollLeft:r+\"px\"},this.params.menuTransitionDuration)},t.prototype.initialize=function(e){e.id&&(typeof e.requestParams==\"undefined\"&&(e.requestParams={}),e.requestParams.algorithm=\"push_\"+e.id),chaordic.meta.product&&(e.referenceProduct={id:chaordic.meta.product.id},chaordic.meta.page&&chaordic.meta.page.selectedSpecs&&(e.referenceProduct.specs=chaordic.meta.page.selectedSpecs)),this.menu={},chaordic.onsite.Feature.prototype.initialize.call(this,e)},t.prototype.render=function(e){var t=this;if(this.initializing){this.on(\"load\",function(){t.render(e)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(!this.params.data.displays||this.params.data.displays.length===0)return;this.params.data.displays[0].categories&&this.params.data.displays[0].categories.length>0&&(this.params.categories=this.params.data.displays[0].categories),Array.isArray(this.params.data.displays[0].menu)&&(this.params.menu=this.params.data.displays[0].menu),this.params.data.displays[0].deadline&&(this.params.deadline=this.params.data.displays[0].deadline),chaordic.onsite.Feature.prototype.render.apply(this,arguments),this._renderMenu(),this._renderDeadline()},t.prototype._getTimeRemaining=function(e){var t=Date.parse(e)-Date.parse(new Date),n=Math.floor(t/1e3%60),r=Math.floor(t/1e3/60%60),i=Math.floor(t/36e5%24),s=Math.floor(t/864e5);return{total:t,days:s>0?s:0,hours:i>0?i:0,minutes:r>0?r:0,seconds:n>0?n:0}},chaordic.onsite.Push=t}(),function(){var e=function(){this.feature=\"shoppingcart\",this.featureUrl=\"/v5/recommend/shoppingCart\",this.defaultParams={title:\"Aproveite e leve também\",vertical:!1,templates:{widget:\"shoppingcart.fugly\",product:\"product.fugly\"},priceApiOptions:{waitToRender:{enabled:!0,removeProducts:{unavailable:!0,failedRequest:!0}}},style:[\"theme.css\",\"shoppingcart.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype._getPriceApiInputProducts=function(){var e=this.productMap;return Object.keys(e).map(function(t){var n=e[t];return{id:n.id,skus:n.skus}})},e.prototype.initialize=function(e){var t;if(!e.referenceProducts&&!chaordic.meta.cart)throw new TypeError(\"Missing mandatory Cart (chaordic_meta) parameter for ShoppingCart.\");chaordic.onsite.Feature.prototype.initialize.call(this,e)},chaordic.onsite.ShoppingCart=e}(),function(){var e=function(){this.feature=\"similaritems\",this.featureUrl=\"/v5/recommend/similarItems\",this.defaultParams={title:\"Produtos visitados por quem procura este item\",vertical:!1,templates:{widget:\"similaritems.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"similaritems.css\"]}};e.prototype=new chaordic.onsite.Feature,e.prototype.initialize=function(e){if(!e.referenceProduct){if(!chaordic.meta.product)throw new TypeError(\"Missing mandatory Product (chaordic_meta) parameter for SimilarItems.\");e.referenceProduct={id:chaordic.meta.product.id},chaordic.meta.page.selectedSpecs&&(e.referenceProduct.specs=chaordic.meta.page.selectedSpecs)}chaordic.onsite.Feature.prototype.initialize.call(this,e)},chaordic.onsite.SimilarItems=e}(),function(){var e=function(){this.feature=\"ultimatebuy\",this.featureUrl=\"/v5/recommend/ultimateBuy\",this.defaultParamsOptions={ubLayout:{title:\"O que os clientes mais compram após ver este item\",vertical:!1,templates:{widget:\"ultimatebuy.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"ultimatebuy.css\"]},vpLayout:{title:\"Você visitou...\",subTitle:\"O que os clientes mais compram após ver este item\",vertical:!1,templates:{widgetPersonalized:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"ultimatebuy.css\",\"personalized.css\"]}}};e.prototype=new chaordic.onsite.Feature,e.prototype.initialize=function(e){if(chaordic.meta.page.name!==\"product\")this.defaultParams=this.defaultParamsOptions.vpLayout;else{this.defaultParams=this.defaultParamsOptions.ubLayout;var t,n;if(!e.referenceProduct){if(!chaordic.meta.product)throw new TypeError(\"Missing mandatory Product (chaordic_meta) parameter for UltimateBuy.\");e.referenceProduct={id:chaordic.meta.product.id},chaordic.meta.page.selectedSpecs&&(e.referenceProduct.specs=chaordic.meta.page.selectedSpecs)}t=this,typeof e.productView==\"function\"&&(n=e.productView),e.productView=function(){arguments[0].isReference=chaordic.meta.product.id===arguments[0].product.id,typeof n==\"function\"&&n.apply(t,arguments)}}e.recsRepeat=\"yes\",chaordic.onsite.Feature.prototype.initialize.call(this,e)},e.prototype.render=function(e){chaordic.meta.page.name!==\"product\"?this.renderAsPersonalized(e):chaordic.onsite.Feature.prototype.render.call(this,e)},e.prototype.renderAsPersonalized=function(e){var t=this,n=chaordic.lib.jQuery,r=this.params,i=r.data,s;if(this.initializing){this.on(\"load\",function(){t.render(e)});return}if(!this.params.data)throw new Error(\"Feature \"+this.feature+\" not intialized before render().\");if(i.message===\"Feature is disabled\"||!i.displays||i.displays.length===0||i.displays[0].refs.length===0||i.displays[0].recs.length===0)return;chaordic.PriceApi.active&&!this.calledPriceApi&&(this._initPriceApiOptions(),this._mapProducts()),this.jqDiv=chaordic.lib.jQuery(e),this.renderedProducts={};var o=!0;typeof r.beforeRender==\"function\"&&(o=r.beforeRender.call(t,r,this.jqDiv));if(o===!1)return;this.params.height&&this.jqDiv.css(\"height\",this.params.height),this.params.width&&this.jqDiv.css(\"width\",this.params.width),this.jqDiv.html(\"\"),this.jqDiv.show(),this.createFrame(this.jqDiv[0],function(e,o){var u=!0;for(var a=r.style.length-1;a>=0;a--)t.attachCSS(t.assets.getAsset(r.style[a]));var f=t.widgetDiv=n(\"#widget\",e.contentWindow.document),l=chaordic.newFuglyTemplate(t.assets.getAsset(r.templates.widgetPersonalized)),c=e.contentWindow.document;l.context(r),f.html(l.render()),t.notRegisterImpression=chaordic.PriceApi.active&&!t.calledPriceApi&&t.priceApiOptions.waitToRender.enabled;var h=f.find(\".action\");t.referenceProduct=i.displays[0].refs[0],r.referenceProduct={id:t.referenceProduct.id};if(h.length>0){var p=[];t.renderProduct(0,r.templates.referenceProduct,p,i.displays[0].refs,h);var d=function(){this.value===\"#\"?delete p[0].selectedSpecs[this.getAttribute(\"data-spec\")]:p[0].selectedSpecs[this.getAttribute(\"data-spec\")]=this.value,t.renderProduct(0,r.templates.referenceProduct,p,i.displays[0].refs,h),t.registerClickListeners(h,p[0]),h.find(\".specs select\").change(d),h.find(\".spec-selector\").click(v)},v=function(e){this.value===\"#\"?delete p[0].selectedSpecs[this.getAttribute(\"data-spec\")]:p[0].selectedSpecs[this.getAttribute(\"data-spec\")]=this.getAttribute(\"data-spec-id\"),t.renderProduct(0,r.templates.referenceProduct,p,i.displays[0].refs,h),t.registerClickListeners(h,p[0]),h.find(\".specs select\").change(d),h.find(\".spec-selector\").click(v)};t.registerClickListeners(h,p[0]),h.find(\".specs select\").change(d),h.find(\".spec-selector\").click(v),typeof r.afterDrawProduct==\"function\"&&r.afterDrawProduct.call(t,h,p[0].product,f,0)}var m=f.find(\".carousel\")[0];m&&(t.carousel=s=t.renderCarousel(m,undefined,o)),chaordic.PriceApi.active&&!t.calledPriceApi&&(t.priceApiOptions.waitToRender.enabled&&(u=!1,t.jqDiv.hide(),t.priceApiAllGets.done(function(){t.render(o)}),t._callPriceApi()),t.priceApiOptions.lazyLoading.enabled||t._callPriceApi());var g=f.find(\".refresh\");g.click(function(){g.off(),f.addClass(\"loading\"),typeof t.params.requestParams==\"undefined\"&&(t.params.requestParams={}),t.params.requestParams.avoidProducts=[{id:t.referenceProduct.id}],delete t.params.data,t.params.hideWidgetOnLoad=!1,t.initialize(t.params),t.render(t.jqDiv[0])}),t.setupPagination(),typeof r.afterDrawWidget==\"function\"&&u&&r.afterDrawWidget.call(t,f),t.setMaxWidth(c,o),r.dynamicHeight===!0?(n(e.contentWindow).resize(function(){t.jqDiv.height(f.outerHeight(!0))}),chaordic.lib.jQuery(window).on(\"orientationchange\",function(){t.jqDiv.height(f.outerHeight(!0))}),t.jqDiv.height(f.outerHeight(!0))):f.find(\".carousel-products\").css(\"position\",\"absolute\"),u&&t._checkVisibility()})},chaordic.onsite.UltimateBuy=e}(),function(){var e=function(){this.feature=\"cartpersonalized\",this.featureUrl=\"/v5/recommend/cartPersonalized\",this.defaultParams={title:\"Você comprou...\",subTitle:\"Talvez se interesse por\",vertical:!1,templates:{widget:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"personalized.css\"]}};e.prototype=new chaordic.onsite.Personalized,chaordic.onsite.CartPersonalized=e}(),function(){var e=function(){this.feature=\"purchasepersonalized\",this.featureUrl=\"/v5/recommend/purchasePersonalized\",this.defaultParams={title:\"Você comprou...\",subTitle:\"Talvez se interesse por\",vertical:!1,templates:{widget:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"personalized.css\"]}};e.prototype=new chaordic.onsite.Personalized,chaordic.onsite.PurchasePersonalized=e}(),function(){var e=function(){this.feature=\"viewpersonalized\",this.featureUrl=\"/v5/recommend/viewPersonalized\",this.defaultParams={title:\"Você visitou...\",subTitle:\"Talvez se interesse por\",vertical:!1,templates:{widget:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"personalized.css\"]}};e.prototype=new chaordic.onsite.Personalized,chaordic.onsite.ViewPersonalized=e}(),function(){var e=function(){this.feature=\"wishlist\",this.featureUrl=\"/v5/recommend/wishList\",this.defaultParams={title:\"Você favoritou...\",subTitle:\"Quem visitou este produto acabou comprando\",vertical:!1,templates:{widget:\"personalized.fugly\",referenceProduct:\"product.fugly\",product:\"product.fugly\"},style:[\"theme.css\",\"personalized.css\",\"ultimatebuy.css\"]}};e.prototype=new chaordic.onsite.Personalized,chaordic.onsite.WishList=e}(),chaordic.initializeTheme=function(){function e(){var e=window.chaordic.Object.copy,t=window.chaordic.Object.merge,n={anyDevice:{anyWidget:{imageSizes:{small:\"120x120\",normal:\"410x410\",big:\"180x230\"},specConfig:{specOrder:[],forceSelection:[\"age\",\"size\",\"tamanho\"],alias:{cor:chaordic.i18n.translate(\"Cor\"),color:chaordic.i18n.translate(\"Cor\"),tamanho:chaordic.i18n.translate(\"Tamanho\"),size:chaordic.i18n.translate(\"Tamanho\"),age:chaordic.i18n.translate(\"Idade\")}},carouselConfig:{dynamicMode:\"box\",minCellSize:200,minVisibleItems:2,maxVisibleItems:4,loopScroll:!0}},shoppingCart:{carouselConfig:{dynamicMode:\"box\",minVisibleItems:2,maxVisibleItems:4}},featured:{carouselConfig:{dynamicMode:\"box\",minCellSize:360,maxVisibleItems:2}}},mobile:{anyWidget:{carouselConfig:{minVisibleItems:2,minCellSize:135}},shoppingCart:{carouselConfig:{dynamicMode:\"box\",maxVisibleItems:2,minCellSize:120}},featured:{}}},r=function(r,i){var s=e(n.anyDevice.anyWidget[r]),o=window.chaordic.isMobile?\"mobile\":\"anyDevice\";return i=i||\"anyWidget\",(i!==\"anyWidget\"||o!==\"anyDevice\")&&t(s,n[o][i][r]),s};return{get:r}}function t(e){return e.charAt(0).toUpperCase()+e.slice(1)}function n(e){e+=\"=\";var t=decodeURIComponent(document.cookie).split(\";\");for(var n=0;n<t.length;n++){var r=t[n];while(r.charAt(0)===\" \")r=r.substring(1);if(r.indexOf(e)===0)return r.substring(e.length,r.length)}return null}var r={\"ns-zattini\":{currencySymbol:\"R$ \"}},i=chaordic.onsite.Feature.prototype.setupDefaultCurrencyFormatter;chaordic.onsite.Feature.prototype.setupDefaultCurrencyFormatter=function(){var e=chaordic.Config.API_KEY_ALIAS||chaordic.Config.API_KEY;i.apply(this,arguments);if(r[e]){var t=chaordic.Currency.defaultFormatter.options;for(var n in r[e])t[n]=r[e][n]}};var s=function(){var e={Destaques:{},Trocar:{},Remover:{},Adicionar:{},\"Trazer de volta\":{},\"Lançamento\":{},\"Leve os {{total}} produtos\":{},\"Comprar junto\":{},\"Por favor, selecione o tamanho para continuar\":{},\"Ver produto\":{},\"Compra realizada em {{date}}\":{},Comprar:{},\"Adicionar ao carrinho\":{},Anterior:{},\"Próximo\":{},\"Frete grátis\":{},\"{{count}}x de {{priceString}}\":{\"ns-zattini\":\"até {{count}}x de {{priceString}}\"},Cor:{},Tamanho:{},\"Único\":{},\"ft.button\":{\"pt-br\":\"Confira\"},Collection:{\"pt-br\":\"Coleção\"},Idade:{}};this.translate=function(t){var n=chaordic.Config.THEME_LANG,r=chaordic.Config.API_KEY;return e[t]&&(e[t][r]||e[t][n])||t}};chaordic.i18n=new s;var o=e(),u=function(){var e={},t={\"ns-zattini\":{MostPopular:{vertical:{beforeInitialize:function(t){t.priceApiOptions=e.priceApiOptions},carousel:{dynamicMode:\"margin\",minVisibleItems:1,maxVisibleItems:6,vertical:!0},templates:{widget:\"widget-zattini-vertical.fugly\",product:\"product.fugly\"},dynamicHeight:!0,widgetClass:\"vertical\",style:[\"theme.css\",\"vertical.css\"],afterDrawWidget:function(){e.afterDrawWidget.apply(this,arguments)},afterDrawProduct:function(){e.afterDrawProduct.apply(this,arguments)},extra:{linkPurchase:\"//www.zattini.com.br\",linkTrending:\"//www.zattini.com.br\",linkView:\"//www.zattini.com.br\"}}},FrequentlyBoughtTogether:{horizontal:{beforeInitialize:function(t){t.priceApiOptions=e.priceApiOptions}}}}};this.getTheme=function(e,n,r){var i=chaordic.Config.API_KEY,s=t[i]&&t[i][e]&&t[i][e][n||\"default\"];return[e,n,s||r]},this.export=function(t){e=t}};chaordic.Themes=new u;var a=chaordic.lib,f=a.jQuery,l=a.JSON,c=chaordic.Config.API_KEY_ALIAS||chaordic.Config.API_KEY,h=chaordic.Config.STATIC_API,p=window.localStorage,d=p&&p.getItem(\"chaordic_style_cache_\"+c+\"/style.css\"),v=d&&l.parse(d)||{},m=[],g=chaordic.readCookie(\"chaordic-debug\")===\"true\",y=function(){if(typeof p==\"object\")try{return p.setItem(\"chaordic_check_storage\",1),p.removeItem(\"chaordic_check_storage\"),!0}catch(e){return!1}return!1}(),b=function(){if(v.version!==h&&y){var e=document.getElementsByTagName(\"head\")[0],t=document.createElement(\"script\");t.src=\"//static.chaordicsystems.com/static/ns-zattini/\"+h+\"/assets/\"+c+\"/style.js\",t.onload=function(){d=p.getItem(\"chaordic_style_cache_\"+c+\"/style.css\")||chaordic.ns_style,v=l.parse(d),m.forEach(function(e){w(v.data,e)}),t.parentElement.removeChild(t)},e.appendChild(t)}},w=function(e,t){var n=t.contentDocument,r=n.getElementsByTagName(\"head\")[0],i=n.createElement(\"style\");i.rel=\"stylesheet\",i.type=\"text/css\",i.innerHTML=e,r.appendChild(i),f(\"#widget\",n).trigger(\"resize\")},E=function(e,t){try{p.setItem(\"chaordic_style_cache_\"+t,l.stringify({data:e,version:h}))}catch(n){chaordic.ns_style=l.stringify({data:e,version:h})}},S=function(){var e=Object.keys(p).filter(function(e){return e.indexOf(\"chaordic_\")!==-1});for(var t=0;t<e.length;t++)p.removeItem(e[t])},x=chaordic.onsite.Feature.prototype.createFrame;chaordic.onsite.Feature.prototype.createFrame=function(e,t){var n=chaordic.Config.API_KEY_ALIAS||chaordic.Config.API_KEY,r=chaordic.Config.THEME_LANG;this.params.i18n=chaordic.i18n,this.params.widgetClass+=\" \"+n+\" \"+r;var i=chaordic.preloadFonts.getFonts(),s=t;t=function(e,t){var r=e.contentDocument,o=r.getElementsByTagName(\"head\")[0],u,a;if(i&&i.length)for(var l=0;l<i.length;l++)u=document.createElement(\"link\"),u.rel=\"preload\",u.href=i[l],u.as=\"font\",o.appendChild(u);g||!y?(a=document.createElement(\"link\"),a.rel=\"stylesheet\",a.type=\"text/css\",a.href=\"../assets/\"+n+\"/style.css\",a.onload=function(e){return function(){f(\"#widget\",e.contentDocument).trigger(\"resize\")}}(e),o.appendChild(a)):v.data?w(v.data,e):m.push(e),s.apply(this,arguments)},x.apply(this,arguments)},b(),chaordic.cacheAsset=E,chaordic.clearLocalStorageCache=S,function(){var e=chaordic.onsite.Feature,t=e.prototype.initialize;e.prototype.initialize=function(e){var n,r,i,s;n=this,typeof e.productView==\"function\"&&(r=e.productView),e.productView=function(){if(arguments[0].product&&arguments[0].product.images){var e=arguments[0].product.images,t=function(n){var r=\"\",i=o.get(\"imageSizes\");if(n)if(i&&i[n])r=t(i[n]);else if(e[n])r=e[n];else{var s=Object.keys(e).reduce(function(e,t){e=e.replace(/x.+/,\"\"),t=t.replace(/x.+/,\"\"),n=n.replace(/x.+/,\"\");var r=Math.abs(t-n)<Math.abs(e-n)?t:e;return r+\"x\"+r});r=e[s]}else i&&e[i.normal]?r=e[i.normal]:r=e[Object.keys(e)[0]];return r};arguments[0].image=t}if(chaordic.Config.DUMMY_RECS){var i=arguments[0],s=arguments[1];if(i&&i.product){n.feature===\"mostpopular\"&&(i.ranking=s+1),n.feature===\"ultimatebuy\"&&(i.product.percentage=Math.round(Math.random()*99),s===0&&(i.product.id=chaordic.meta.product.id)),n.feature===\"new4you\"&&(i.product.ageText=2+Math.round(Math.random()*4)+(Math.round(Math.random())?\" semanas\":\" dias\")+\" atrás\"),n.feature===\"offers\"&&(i.product.oldPrice=i.product.price+Math.random()*100,i.product.oldPriceString=chaordic.Currency.format(i.product.oldPrice),i.product.discount=Math.round(5+Math.random()*45));if(n.feature===\"purchasepersonalized\"&&s===0){i.product.trigger=\"transaction\";var u=new Date;i.product.date=u.getDate()+\"/\"+(u.getMonth()+1)+\"/\"+u.getFullYear()}i.params.data.feature=n.feature}}typeof r==\"function\"&&r.apply(n,arguments)},typeof e.afterDrawProduct==\"function\"&&(i=e.afterDrawProduct),e.afterDrawProduct=function(e){var t=this,n=t.carousel&&t.carousel.carouselDiv||t.jqWidget;e.find(\"img\").each(function(e,t){t.onload=function(){n.trigger(\"resize\")}}),typeof i==\"function\"&&i.apply(t,arguments)},t.call(this,e)}}(),function(){\"use strict\";chaordic.event.Pushables.updateCart=function(e){var t=window.top.chaordic_meta,n=t&&t.page&&t.page.name;n===\"cart\"&&(t.cart=e),chaordic.initialize()}}();var T=chaordic.onsite.Feature.prototype.renderCarousel;chaordic.onsite.Feature.prototype.renderCarousel=function(e,t,n){var r=this,i=T.call(r,e,t,n),s=r.widgetDiv,o=i.options,u=s.find(o.next||\".next\"),a=s.find(o.prev||\".prev\");return i.on(\"paginationEnd\",function(){o.loopScroll&&i.items.length>i.visibleItems&&u.add(a).removeClass(\"disabled\")}),i};var N=chaordic.onsite.Feature.prototype._updateProductPrice;chaordic.onsite.Feature.prototype._updateProductPrice=function(e){var t=this.params.data.displays[0],n=chaordic.Config.API_KEY,r=function(t){if(!t)return;t.details&&t.details.stamps&&delete t.details.stamps;if(e.id===t.id){t.details=t.details||{};var n=e.skus&&e.skus[0]&&e.skus[0].details||{};chaordic.Object.merge(t.details,n)}};for(var i in t)t[i].forEach(r);N.apply(this,arguments)},chaordic.Product.prototype.updateDiscount=function(){var e,t=this.price,n=this.oldPrice;t&&n?this.discount=Math.floor((n-t)*100/n,1):this.discount=void 0};var C=function(){this.getFonts=function(){return}};chaordic.preloadFonts=new C;var a=chaordic.lib,f=a.jQuery,l=a.JSON,k=chaordic.onsite.ThemeManager,L=chaordic.Config.DOMAIN,u=chaordic.Themes,A=chaordic.Config.API_KEY,O={lazyLoading:{enabled:!0},reRenderProduct:!1,afterOnComplete:function(e){chaordic.onsite.Feature.prototype._updateProductPrice.call(this,e);var t=e.id,n=this.widgetDiv||this.jqWidget,r=n.find('[data-productid=\"'+t+'\"]'),i=this.productViews;i=Array.isArray(i)?i:[i],i.forEach(function(n){var i=n.product;if(i.id===t){var s=chaordic.newFuglyTemplate(chaordic.ThemeManager.getAsset(\"product.fugly\")),o=[\".price\",\".old-price\",\".free-shipping\",\".installments\",\".flags\",\".discount-container\"],u=e.skus[0];i.details&&i.details.stamps&&delete i.details.stamps,e.startingAt&&(i.startingAt=e.startingAt,i.startingAtString=chaordic.Currency.format(i.startingAt)),e.freeShipping&&(i.freeShipping=e.freeShipping),u.price?(n.priceApiStatus=1,i.price=u.price,i.priceString=chaordic.Currency.format(u.price),i.oldPrice=u.oldPrice,i.oldPrice>i.price?i.oldPriceString=chaordic.Currency.format(u.oldPrice):delete i.oldPriceString,i.installment={count:u.installment.count,price:u.installment.price,priceString:chaordic.Currency.format(u.installment.price)},i.details=i.details||{},chaordic.Object.merge(i.details,u.details),i.updateDiscount()):(n.priceApiStatus=2,i.discount=0,o=[\".content\",\".discount-container\"]),s.context(n);var a=s.render().replace(/<img src.+/g,\"\"),l=f(a);for(var c=0;c<o.length;c++)r.find(o[c]).html(l.find(o[c]).html());r.find(\".loading\").removeClass(\"loading\")}})}},M={lazyLoading:{enabled:!0},reRenderProduct:!1,afterOnComplete:function(e){var t=this.widgetDiv||this.jqWidget,n=t.find('[data-productid=\"'+e.id+'\"]'),r=e.details&&e.details.API_HTML,i;if(r&&n.length){i=n.find(\".price-api-content\"),i.html(r),n.find(\".group-thumbnail .badges-item\").length===0&&i.find(\".badges-item\").appendTo(n.find(\".group-thumbnail\")),i.find(\".pr .freeDelivery-container\").length===0&&i.find(\".freeDelivery-container\").appendTo(i.find(\".pr\")),n.find(\".details.thumbnail .discount.flag\").length===0&&i.find(\".discount.flag\").appendTo(n.find(\".details.thumbnail\")),n.find(\".ff-ajax-price.pr a\").attr(\"target\",\"_parent\"),n.find(\".ncard-hint-box\").length>0&&n.find(\".ncard-hint-box\").html(i.find(\".ncard-hint-box\").html());if(this.params&&this.params.skin===\"single-product\"){var s=!1;n.find(\".price-api-content .freeDelivery-container\").length>0&&(s=!0),s&&(n.find(\".price-api-content .freeDelivery-container\").remove(),n.find(\".product-name\").before('<div class=\"freeDelivery\">Entrega grátis</div>'));var o=n.find(\".discount.text\").text();i.find(\".full-mounted-price\").prev(\"del\").after('<div class=\"discount-text\">('+o+\")</div>\")}n.find(\".price-api-content .badges-item\").remove(),n.find(\".price-api-content .discount.flag\").remove(),n.find(\".api\").remove(),n.find(\".loading\").removeClass(\"loading\")}},profile:\"html\"};chaordic.PriceApi.init({\"default\":{url:\"/frdmprcs/%ID\",mode:\"one-at-a-time\",transformResult:function(e,t){var n=e.itemParents&&e.itemParents[0],r=n&&n.skus||[],i=0,s=!1,o=[];A===\"ns-zattini\"&&n&&(n.startingAt>0&&(i=n.startingAt/100),n.skuSelected!=null&&r.forEach(function(e){e.sku===n.skuSelected&&(s=e.freeShipping,o=e.allStamps)}));var u={};return r.forEach(function(e){u[e.sku]=e}),{id:t.id,startingAt:i,freeShipping:s,skus:t.skus.map(function(e){var t=u[e.sku]||r[0];if(!t)return{sku:e.sku,status:\"UNAVAILABLE\"};var n=t.installments||{},a=t.finalPriceInCents&&t.finalPriceInCents/100;return{sku:e.sku,status:status,price:a,oldPrice:t.listPriceInCents&&t.listPriceInCents/100,installment:{count:n.numberOfInstallments,price:n.amountInCents&&n.amountInCents/100},details:{sellerId:t.sellerId,stamps:t.allStamps||o,freeShipping:s,startingAt:i,startingAtString:chaordic.Currency.format(i),price:chaordic.Currency.format(a)}}})}}},html:{url:\"/refactoring/tpl/frdmprcs/%ID/lazy\",mode:\"one-at-a-time\",transformResult:function(e,t){if(typeof e==\"string\"){var n=chaordic.Object.copy(t);return chaordic.Object.merge(n,{id:t.id,startingAt:0,freeShipping:!1,skuSelected:t.sku,skus:t.skus,details:{API_HTML:e}}),n}}},onsite:{}});var _=function(e){var n=this.feature,r=this.productViews,i=chaordic_meta.page&&chaordic_meta.page.name,s=this.params&&(this.params.subTitle||this.params.title||n),o=\"CH_\"+s,u=f(\".chaordic\",window.top.document).index(this.jqDiv)+1,a=e.map(function(e){var t=e.extraInfo&&(e.extraInfo.color||e.extraInfo.flavor),i=e.discount+\"%\",s;r.forEach(function(t,n){t.product===e&&(s=n)});var o=e.categories.reduce(function(e,t,n){return n<5&&e.push(t.name),e},[]).join(\"/\"),a=r[s].skuList.skus.reduce(function(e,t){var n=t.specs&&t.specs.size&&t.specs.size.label;return n&&e.push(n),e},[]).join(\",\"),f=\"product:L\"+u+\":\"+n+\"_CH:\"+(s+1),l=e.oldPrice-e.price||0;return{name:e.name,id:e.id.slice(0,8),price:e.price,brand:e.brand,category:o,variant:t,quantity:1,dimension8:e.extraInfo&&e.extraInfo.sellerName,dimension24:e.id,dimension30:a,dimension90:f,dimension25:e.sku,dimension34:i,metric5:l}}),l={ecommerce:{currencyCode:\"BRL\",add:{actionField:{list:o},products:a}},event:\"addToCart\",eventGA:{category:\"Enhanced_AddtoCart\",action:\"AddtoCart_\"+t(i),label:\"\",value:\"1\",nonInteraction:0}};window.top.dataLayer=window.top.dataLayer||[],window.top.dataLayer.push(l)},D=function(e){var t=this.feature,n=this.params&&(this.params.subTitle||this.params.title||t),r=\"CH_\"+n,i=chaordic_meta.page&&chaordic_meta.page.name,s=f(\".chaordic\",window.top.document).index(this.jqDiv)+1,o=e.map(function(e,n){var o=e.product,u=n+1,a=o.extraInfo&&(o.extraInfo.color||o.extraInfo.flavor),f=i+\":L\"+s+\":\"+t+\"_CH:\",l=o.categories.reduce(function(e,t,n){return n<5&&e.push(t.name),e},[]).join(\"/\");return{id:o.id.slice(0,8),list:r,price:o.price,variant:a,position:u,dimension8:o.extraInfo&&o.extraInfo.sellerName,dimension24:o.id,dimension90:f+u}}),u={event:\"productImpression\",ecommerce:{impressions:o}};window.top.dataLayer=window.top.dataLayer||[],window.top.dataLayer.push(u)},P=function(e){var n=this.feature,r=this.params&&(this.params.subTitle||this.params.title||n),i=\"CH_\"+r,s=this.productViews.indexOf(e)+1,o=e.product,u=o.extraInfo&&(o.extraInfo.color||o.extraInfo.flavor),a=chaordic_meta.page&&chaordic_meta.page.name,l=f(\".chaordic\",window.top.document).index(this.jqDiv)+1,c=a+\":L\"+l+\":\"+n+\"_CH:\"+s,h=o.categories.reduce(function(e,t,n){return n<5&&e.push(t.name),e},[]).join(\"/\"),p={id:o.id.slice(0,8),price:o.price,variant:u,position:s,dimension8:o.extraInfo&&o.extraInfo.sellerName,dimension24:o.id,dimension90:c,name:o.name,brand:o.brand,category:h},d={ecommerce:{click:{actionField:{list:i},products:[p]}},event:\"eventGA\",eventGA:{category:\"Enhanced_Recommend_Click\",action:\"Click_\"+t(a),label:p.dimension24,value:0,nonInteraction:0}};window.top.dataLayer=window.top.dataLayer||[],window.top.dataLayer.push(d)},H=function(e,t,n,r){if(e&&t){var i={event:\"eventGA\",eventGA:{category:e,action:t,label:n||\"\",value:r||\"\"}};window.top.dataLayer=window.top.dataLayer||[],window.top.dataLayer.push(i)}},B=function(){return window.chaordic_meta.page&&window.chaordic_meta.page.name},j=function(e,t){var n=this,r=this.jqWidget||this.widgetDiv,i=\"/cart/add/all/\",s=!1,o,u;t=t instanceof Array?t:[t],e=e instanceof Array?e:[e];for(var a=0;a<t.length;a++)if(t[a]&&!t[a].fbtDisabled&&!t[a].selected){o=r.find('[data-productid=\"'+t[a].product.id+'\"]'),u=o.find(\".wrapper\").add(\".content-bottom\",o),s=!0;if(u.find(\".alert\").length===0){var l=f('<div class=\"alert\">'+chaordic.i18n.translate(\"Por favor, selecione o tamanho para continuar\")+\"</div>\");u.append(l),window.setTimeout(function(e){return function(){e.remove()}}(l),5e3)}}if(s)return!1;var c=n.productViews&&n.productViews[0]&&n.productViews[0].params&&n.productViews[0].params.skin;(/(frequentlyboughttogether|shoppingcart)/.test(n.feature)||n.feature===\"historypersonalized\"&&c===\"hp-cart\")&&t.forEach(function(t){var r=e.some(function(e){return this.product&&this.product.id===e.id},t);r&&P.call(n,t)}),_.call(this,e),f.ajax({url:i+e.map(function(e){return e.sku+\",\"+1+\",\"+(e.details&&e.details.sellerId||0)}).join(\";\"),type:\"GET\",success:function(){window.top.location=\"/cart\"}})},F=function(e,t){return j.call(this,e,t)},I=function(e){var t=e.find(\"h1.title\");if(t.length){var n=t.text().replace(/#+.+/,\"\");t.text(n)}},q=function(e){var t=this;t.feature===\"push\"&&t.params&&t.params.skin===\"menu-dinamico\"&&setTimeout(function(){var t=e.querySelectorAll(\"ul.menu li.menu-item\"),n=t.length;if(n>1){var r=Math.floor(Math.random()*n),i=!1;e.addEventListener(\"mouseover\",function(){i=!0}),e.addEventListener(\"mouseout\",function(){i=!1}),t.forEach(function(e,t){e.addEventListener(\"click\",function(){r=t})}),t[r].click(),setInterval(function(){i||(r<n&&(r+=1),r>=n&&(r=0),t[r].click())},5e3)}},10)},R=function(e){I(e),q.apply(this,e),this.widgetRendered=!0,this.priceApiAllGets.done(D.bind(this,this.productViews));if(this.feature===\"push\"&&this.params.enabledMenu&&this.menu){var t=e[0],n=t.querySelector(\".arrow.prev\"),r=t.querySelector(\".arrow.next\"),i=function(e,t){return H(\"RecomSeletores\",\"clique\",e+t+\"_\"+B())},s=function(e){var t=e.menu.selectedItem&&e.menu.selectedItem[0]&&e.menu.selectedItem[0].innerText;return e.params.title+\"+\"+t};n.addEventListener(\"click\",function(){i(\"slider_esquerdo_\",s(this))}.bind(this)),r.addEventListener(\"click\",function(){i(\"slider_direito_\",s(this))}.bind(this))}},U=function(e){var t=e&&e[0]&&e[0].innerText;H(\"RecomSeletores\",\"clique\",\"seletor_\"+t+\"_\"+B())},z=function(e){var t=!0,n=e.skuList.skus.reduce(function(e,t){if(t.status.toUpperCase()===\"AVAILABLE\")for(var n in t.specs)e[n]=e[n]||[],e[n].push(t.specs[n].id);return e},{});for(var r in n)n[r].length===1&&(r!==\"size\"||n[r][0]===chaordic.i18n.translate(\"Único\"))&&(e.selectedSpecs[r]=n[r][0]),t=t&&Boolean(e.selectedSpecs[r]);e.selected=t},W=function(e,t){var n=this;e.find(\".specs select\").each(function(e,t){var n=f(t);n.filter(':not([data-spec=\"size\"]), :has([value=\"'+chaordic.i18n.translate(\"Único\")+'\"])').children(':not([value=\"#\"])').length===1&&n.parent().remove()}),e.find(\".details\").on(\"mousedown\",P.bind(this,t));if(this.feature===\"push\"&&this.params.enabledMenu&&t){var r=t.product;if(r){var i=\"\";r.details&&Array.isArray(r.details.stamps)&&(i=r.details.stamps.join(\"_\"));var s=r.categories&&r.categories[0].id;e.on(\"click\",function(){var e=n.menu&&n.menu.selectedItem&&n.menu.selectedItem[0]&&n.menu.selectedItem[0].innerText,t=n.params.title+\"+\"+e,o=t+\"_\"+B();H(\"RecomSeletores\",\"clique\",\"produto_preço_\"+r.price+\"_\"+o),H(\"RecomSeletores\",\"clique\",\"produto_categoria_\"+s+\"_\"+o),H(\"RecomSeletores\",\"clique\",\"produto_selos_\"+i+\"_\"+o);if(r.price<r.oldPrice){var u=(r.oldPrice-r.price).toFixed(2);H(\"RecomSeletores\",\"clique\",\"produto_economia_\"+u+\"_\"+o)}var a=r.discount?\"sim\":\"nao\";H(\"RecomSeletores\",\"clique\",\"produto_status_\"+a+\"_\"+o)})}}},X=function(e){var t=this.widgetDiv,n=t.find(\"h1.title\").text();if(n.match(\"category\")){var r=e.product&&e.product.categories&&e.product.categories[0]&&e.product.categories[0].name;n=n.replace(\"<$category$>\",r).toUpperCase(),t.find(\"h1.title\").text(n)}z.apply(this,arguments)},V=function(e,t){var n;return e.every(function(e,r,i){return t(e,r,i)?(n=e,!1):!0}),n},$=function(e){var t=this.productViews,n=e.find(\"#summary\"),r=chaordic.lib.jQuery,i=t.reduce(function(e,t){var n={},r=t.product,i=r.details&&r.details.sellerId;return!t.fbtDisabled&&r&&i&&(n.sku=r.sku,n.sellerId=i,n.quantity=1,n.finalPriceInCents=r.price*100,e.items.push(n),e.products.push(r)),e},{items:[],products:[]});if(i.items.length){var s={cart:{items:i.items},storeId:\"L_ZATTINI\"};chaordic.isMobile?n.find(\".summary-text.mobile-price, .summary-text.old-price\").css(\"visibility\",\"hidden\"):n.find(\".prices\").css(\"visibility\",\"hidden\"),r.ajax({url:\"/frdmcpgn\",type:\"POST\",context:this,data:l.stringify(s),contentType:\"application/json\",success:J.bind(this,n,i.products),complete:function(e){chaordic.isMobile?n.find(\".summary-text.mobile-price, .summary-text.old-price\").css(\"visibility\",\"unset\"):n.find(\".prices\").css(\"visibility\",\"unset\")}})}},J=function(e,t,n){var r=n.cart&&n.cart.benefit&&n.cart.benefit.promotions||!1;if(r&&r.length>0){var i=V(r,function(e){return e.type===\"COMBO_DISCOUNT\"});if(i){var s=t.reduce(function(e,t){var n=i.matchedItems.some(function(e){return e.sku===t.sku});return e.totalPrice+=n?0:t.price,e.totalOldPrice+=t.oldPrice||t.price,e},{totalOldPrice:0,totalPrice:i.amount/100}),o=chaordic.Currency.format(s.totalOldPrice),u=chaordic.Currency.format(s.totalPrice);chaordic.isMobile?(e.find(\".summary-text.mobile-price\").html(\"Total: \"+u),e.find(\".summary-text.old-price\").html(o)):(e.find(\".price\").html(u),e.find(\".old-price\").html(o))}}},K=function(e){var t=this,n=0;e.selectedProducts.forEach(function(e,r){e.details.startingAt>0&&t.productViews[r].selectedSpecs.size===undefined?n+=e.details.startingAt:n+=e.price}),e.price=chaordic.Currency.format(n)};u.export({afterDrawProduct:W,afterDrawWidget:R,buy:j,buyTogether:F,priceApiOptions:M,summaryView:K});var Q=function(e,t){var n=chaordic.Object.copy(e);return chaordic.Object.merge(n,t),n};k.addAsset(\"product.fugly\",'<$\\n    var store = view.window.chaordic.Config.API_KEY_ALIAS || view.window.chaordic.Config.API_KEY;\\n    var product = view.product;\\n    var hasInstallments = product.installment && product.installment.count && product.installment.price && product.installment.count > 1;\\n    var productMaxLength = 70;\\n    var freeShipping;\\n    \\n    (product.details.freeShipping) ? freeShipping = \"FRETE GRÁTIS\" : freeShipping = \\'\\';\\n    if (productMaxLength && product.name.length > productMaxLength) product.name = product.name.substring(0, productMaxLength) + \"...\";\\n    product.details = product.details || {};\\n$>\\n\\n\\n<$ if (view.timestamp) { $>\\n    <div class=\"refresh\" title=\"Trocar\"></div>\\n<$ } $>\\n\\n<$ if(view.params.data.feature === \\'frequentlyboughttogether\\') { $>\\n<div class=\"wrapper <$= !view.priceApiStatus ? \\'loading\\' : \\'\\' $>\" data-pid=\"<$= product.id $>\" data-sku=\"<$=product.sku || \\'0\\' $>\">\\n    <div class=\"controls\">\\n        <div class=\"control-skip skip\"><$= view.params.i18n.translate(\\'Trocar\\') $></div>\\n        <div class=\"toggle-product\">\\n            <div class=\"control-remove disable\"><span class=\"label\"><$= view.params.i18n.translate(\\'Remover\\') $></span></div>\\n            <div class=\"control-add enable\"><span class=\"label\"><$= view.params.i18n.translate(\\'Adicionar\\') $></span></div>\\n        </div>\\n    </div>\\n\\n<$ } else { $>\\n\\n<div class=\"item <$= !view.priceApiStatus ? \\'loading\\' : \\'\\' $>\" data-sku=\"<$=product.sku || \\'0\\' $>\">\\n\\n<$ } $>\\n\\n    <div class=\"group-thumbnail\">\\n        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details thumbnail lazy-container\">\\n            <div class=\"discount-container api\">\\n                <$ if(product.discount > 4) { $>\\n                <div class=\"discount<$= (product.discount >= 40) ? \\' bigger\\' : \\'\\' $>\">\\n                    <div class=\"discount-text\">\\n                        -<$= product.discount $>%\\n                    </div>\\n                </div>\\n                <$ } $>\\n            </div>\\n            <img class=\"lazy\" data-src=\"<$= view.image() $>?resize=200:*\">\\n            <div class=\"flags api\">\\n                <$ if(product.details.stamps && (store === \\'ns-zattini\\' || store === \\'netshoes-ar\\' || store === \\'netshoes-mx\\')) { $>\\n                    <$ for(var i=0; i<product.details.stamps.length; i++) { $>\\n                        <$\\n                            var stamp = product.details.stamps[i];\\n                            if(typeof stamp !== \\'object\\') {\\n                                try {\\n                                    stamp = JSON.parse(stamp);\\n                                } catch (e) {\\n                                    continue;\\n                                }\\n                            }\\n                            var visible = stamp.visible;\\n                            if(!visible) {\\n                                continue;\\n                            }\\n                            var label = stamp.name;\\n                            var style = stamp.style || {};\\n                            var className = style.name;\\n                            var css = \\'\\';\\n                            if(typeof style.properties === \\'object\\') {\\n                                css += \\'background:\\' +  style.properties.background + \\' !important\\';\\n                                if(style.properties.borderColor) {\\n                                    css += \\';border: 1px solid \\' +  style.properties.borderColor + \\' !important\\';\\n                                }\\n                                css += \\';color:\\' +  style.properties.color + \\' !important\\';\\n                            }\\n                        $>\\n                        <div class=\"stamp <$= className $>\" style=\"<$= visible ? \\'\\' : \"display: none;\" $><$= (store === \\'netshoes-ar\\' || store === \\'netshoes-mx\\') ? css : \\'\\' $>\">\\n                            <span style=\"margin: 0 !important; <$= store === \\'ns-zattini\\' ? css : \\'\\' $>\">\\n                                <$= label $>\\n                            </span>\\n                        </div>\\n                    <$ } $>\\n                <$ } else { $>\\n                    <$ if(product.details.flg_lancamento === \\'1\\') { $>\\n                    <div class=\"stamp new\">\\n                        <span>\\n                            <$= view.params.i18n.translate(\\'Lançamento\\') $>\\n                        </span>\\n                    </div>\\n                    <$ } $>\\n                    <$ if(product.details.flg_frete_gratis === \\'1\\') { $>\\n                    <div class=\"stamp free-shipping\">\\n                        <span>\\n                            <$= view.params.i18n.translate(\\'Frete grátis\\') $>\\n                        </span>\\n                    </div>\\n                    <$ } $>\\n                    <$ if(product.details.exclusivo === \\'SIM\\') { $>\\n                    <div class=\"stamp collection\">\\n                        <span>\\n                            <$= view.params.i18n.translate(\\'Collection\\') $>\\n                        </span>\\n                    </div>\\n                    <$ } $>\\n                <$ } $>\\n            </div>\\n        </a>\\n    </div>\\n\\n    <div class=\"content\">\\n        <div class=\"ratings-container\">\\n            <$ if(product.details.reviewStars) { $>\\n                <div class=\"ratings-stars\">\\n                    <div class=\"ratings-stars-fill\" style=\"width: <$= product.details.reviewStars * 20 $>%\"></div>\\n                </div>\\n                <div class=\"ratings-count\">\\n                    (<$= product.details.reviewCount $>)\\n                </div>\\n            <$ } $>\\n        </div>\\n        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details product-name\">\\n            <$= product.name $>\\n        </a>\\n\\n        <$ if (product.trigger === \"transaction\") { $>\\n            <div class=\"purchased\">\\n                <$= view.params.i18n.translate(\\'Compra realizada em {{date}}\\').replace(/{{date}}/, product.date) $>\\n            </div>\\n        <$ } else { $>\\n            <$ if (view.priceApiStatus === 2) { $>\\n                <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details buttons check\"><$= view.params.i18n.translate(\\'Confira\\') $></a>\\n            <$ } else { $>\\n                <$ if (product.details.startingAt > 0 && view.params.data.feature !== \\'shoppingcart\\' && view.selectedSpecs.size === undefined) { $>\\n                    <div class=\"prices api\">\\n                        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details price\">\\n                            <span>A partir de </span><$= product && product.details.startingAtString $>\\n                        </a>\\n                        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details free-shipping\">\\n                            <$= freeShipping $>\\n                        </a> \\n                    </div>\\n                <$ } else { $>\\n                    <div class=\"price-api-content\">\\n                        <div class=\"prices api\">\\n                            <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details old-price\"><$= product && product.oldPriceString $></a>\\n                            <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details price\">\\n                                <$= product && product.priceString $>\\n                            </a>\\n                            <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details free-shipping\">\\n                                <$= freeShipping $>\\n                            </a>\\n                        </div>\\n                        <a href=\"<$=product.url$>\" target=\"_parent\" class=\"details installments api\">\\n                            <$ if (hasInstallments) { $>\\n                                <$= view.params.i18n.translate(\\'{{count}}x de {{priceString}}\\').replace(/{{count}}/, product.installment.count).replace(/{{priceString}}/, product.installment.priceString) $>\\n                        <$ } $>\\n                    </a>\\n                    </div>\\n                <$ } $>\\n            <$ } $>\\n        <$ } $>\\n\\n         <$ if (view.params.data.feature === \"featured\") { $>\\n            <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details buttons\"><$= view.params.i18n.translate(\\'ft.button\\') $></a>\\n        <$ } $>\\n\\n    </div>\\n\\n    <div class=\"buy-container\">\\n        <div class=\"content-bottom\">\\n            <$ if(view.params.buyTogether || view.params.buy) { $>\\n                <div class=\"specs\"></div>\\n            <$ } $>\\n\\n            <$ if(view.params.buy) { $>\\n            <a href=\"javascript:void(0);\" id=\"buy-<$= product.id $>\" class=\"buttons buy\" target=\"_parent\" title=\"<$= view.params.i18n.translate(\\'Adicionar ao carrinho\\') $>\">\\n                <$ if(view.window.chaordic.isMobile) { $>\\n                    <$= view.params.i18n.translate(\\'Comprar\\') $>\\n                <$ } else { $>\\n                    <$= view.params.i18n.translate(\\'Adicionar ao carrinho\\') $>\\n                <$ } $>\\n            </a>\\n            <$ } $>\\n        </div>\\n    </div>\\n\\n</div>\\n'),k.addAsset(\"featured.fugly\",'<div class=\"frame\">\\n    <div class=\"featured-mobile\"><$= view.i18n.translate(\\'Destaques\\') $></div>\\n\t<div class=\"featured-image\"></div>\\n\t<div class=\"carousel\"></div>\\n\t<div class=\"pagination-wrapper\">\\n\t\t<ul class=\"pagination\"></ul>\\n\t</div>\\n</div>\\n'),k.addAsset(\"personalized.fugly\",'<$\\nvar trigger = view.data.displays[0].refs[0].trigger;\\n$>\\n<h1 class=\"title\"><$= view.title $></h1>\\n<div class=\"frame\">\\n    <div class=\"carousel-wrapper\">\\n        <div class=\"arrow prev\"></div>\\n        <div class=\"carousel\"></div>\\n        <div class=\"arrow next\"></div>\\n    </div>\\n</div>'),k.addAsset(\"frequentlyboughttogether.fugly\",'<$ window.itemCount = 0; $>\\n<div class=\"title products-<$= view.visibleProducts $>\">\\n\t<$= view.title $>\\n</div>\\n\\n<div class=\"frame products-<$= view.visibleProducts $>\">\\n\t<div id=\"thumbnails\"></div>\\n\t<span class=\"equals\">=</span>\\n\t<div id=\"summary\"></div>\\n</div>\\n'),k.addAsset(\"frequentlyboughttogether-summary.fugly\",'<$\\n  var numProducts = view.selectedProducts.length;\\n  var i18n = view.window.chaordic.i18n;\\n  var isMobile = view.window.innerWidth < 768;\\n$>\\n\\n<div class=\"wrapper\">\\n    <$ if(isMobile) { $>\\n        <div class=\"summary-text old-price\">\\n            <$ if(view.oldPrice){ $>\\n                <$= view.oldPrice $>\\n            <$ } $>\\n        </div>\\n        <div class=\"summary-text mobile-price\">\\n    \t    <$= i18n.translate(\\'Total\\') $>: <$= view.price $>\\n    \t</div>\\n        <a href=\"javascript:void(0);\" class=\"buttons buy-together\">\\n            <$= i18n.translate(\\'Comprar junto\\') $>\\n        </a>\\n    <$ } else { $>\\n        <div class=\"summary-text\">\\n            <$= i18n.translate(\\'Leve os {{total}} produtos\\').replace(/{{total}}/, numProducts) $>\\n    \t</div>\\n\\n    \t<div class=\"prices\">\\n    \t    <div class=\"price\"><$= view.price $></div>\\n\t    \t<div class=\"old-price\">\\n                <$ if(view.oldPrice){ $>\\n                    <$= view.oldPrice $>\\n                <$ } $>\\n            </div>\\n    \t</div>\\n        <a href=\"javascript:void(0);\" class=\"buttons buy-together\">\\n            <$= i18n.translate(\\'Comprar junto\\') $>\\n        </a>\\n    <$ } $>\\n</div>\\n'),k.addAsset(\"widget.fugly\",'<h1 class=\"title\"><$= view.title $></h1>\\n<div class=\"frame<$= view.buy ? \\' has-purchase\\' : \\'\\' $> recs-frame\">\\n\\n    <div class=\"arrow prev recs-prev\"><$= view.i18n.translate(\\'Anterior\\') $></div>\\n    <div class=\"carousel\"></div>\\n    <div class=\"arrow next recs-next\"><$= view.i18n.translate(\\'Próximo\\') $></div>\\n\\n</div>\\n'),k.addAsset(\"widget-zattini-vertical.fugly\",'<$\\n    var buttonUrl = (function() {\\n        if(view.algorithm.indexOf(\\'purchase\\') !== -1) {\\n            return view.extra && view.extra.linkPurchase;\\n        }\\n        if(view.algorithm.indexOf(\\'trending\\') !== -1) {\\n            return view.extra && view.extra.linkTrending;\\n        }\\n        if(view.algorithm.indexOf(\\'view\\') !== -1) {\\n            return view.extra && view.extra.linkView;\\n        }\\n        return false;\\n    }());\\n$>\\n<h1 class=\"title\"><$= view.title $></h1>\\n<div class=\"frame\">\\n    <div class=\"carousel\"></div>\\n    <$ if(buttonUrl) { $>\\n        <a href=\"<$= buttonUrl $>\" class=\"see-more\" target=\"_parent\">Ver todos</a>\\n    <$ } $>\\n</div>\\n'),k.addAsset(\"widget-vertical.fugly\",'<h1 class=\"title\"><$= view.title $></h1>\\n<div class=\"frame\">\\n    \\n    <div class=\"arrow prev vertical\">Anterior</div>\\n    <div class=\"carousel\"></div>\\n    <div class=\"arrow next vertical\">Próximo</div>\\n    \t\\n</div>\\n'),k.addAsset(\"push.fugly\",\"<h1 class=\\\"<$= view.title ? 'title' : '' $>\\\"><$= view.title ? view.title : '' $></h1>\\n\\n<div class=\\\"frame <$= view.enabledMenu ? 'has-menu' : '' $>\\\">\\n    <div class=\\\"menu-wrapper\\\"></div>\\n\\n    <div class=\\\"carousel-wrapper\\\">\\n        <div class=\\\"arrow prev\\\"><$= view.i18n.translate( 'Anterior') $></div>\\n        <div class=\\\"carousel\\\"></div>\\n        <div class=\\\"arrow next\\\"><$= view.i18n.translate( 'Próximo') $></div>\\n    </div>\\n</div>\\n\"),k.addAsset(\"product-single-product.fugly\",'<$\\n    var store = view.window.chaordic.Config.API_KEY_ALIAS || view.window.chaordic.Config.API_KEY;\\n    var product = view.product;\\n    var hasInstallments = product.installment && product.installment.count && product.installment.price && product.installment.count > 1;\\n    var productMaxLength = 70;\\n    var freeShipping;\\n    \\n    (product.details.freeShipping) ? freeShipping = \"FRETE GRÁTIS\" : freeShipping = \\'\\';\\n    if (productMaxLength && product.name.length > productMaxLength) product.name = product.name.substring(0, productMaxLength) + \"...\";\\n    product.details = product.details || {};\\n$>\\n\\n\\n<$ if (view.timestamp) { $>\\n    <div class=\"refresh\" title=\"Trocar\"></div>\\n<$ } $>\\n\\n<$ if(view.params.data.feature === \\'frequentlyboughttogether\\') { $>\\n<div class=\"wrapper <$= !view.priceApiStatus ? \\'loading\\' : \\'\\' $>\" data-pid=\"<$= product.id $>\" data-sku=\"<$=product.sku || \\'0\\' $>\">\\n    <div class=\"controls\">\\n        <div class=\"control-skip skip\"><$= view.params.i18n.translate(\\'Trocar\\') $></div>\\n        <div class=\"toggle-product\">\\n            <div class=\"control-remove disable\"><span class=\"label\"><$= view.params.i18n.translate(\\'Remover\\') $></span></div>\\n            <div class=\"control-add enable\"><span class=\"label\"><$= view.params.i18n.translate(\\'Adicionar\\') $></span></div>\\n        </div>\\n    </div>\\n\\n<$ } else { $>\\n\\n<div class=\"item <$= !view.priceApiStatus ? \\'loading\\' : \\'\\' $>\" data-sku=\"<$=product.sku || \\'0\\' $>\">\\n\\n<$ } $>\\n\\n    <div class=\"group-thumbnail\">\\n        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details thumbnail lazy-container\">\\n            <div class=\"discount-container api\">\\n                <$ if(product.discount > 4) { $>\\n                <div class=\"discount<$= (product.discount >= 40) ? \\' bigger\\' : \\'\\' $>\">\\n                    <div class=\"discount-text\">\\n                        -<$= product.discount $>%\\n                    </div>\\n                </div>\\n                <$ } $>\\n            </div>\\n            <img class=\"lazy\" data-src=\"<$= view.image() $>?resize=400:*\">\\n            <div class=\"flags api\">\\n                <$ if(product.details.stamps && (store === \\'ns-zattini\\' || store === \\'netshoes-ar\\' || store === \\'netshoes-mx\\')) { $>\\n                    <$ for(var i=0; i<product.details.stamps.length; i++) { $>\\n                        <$\\n                            var stamp = product.details.stamps[i];\\n                            if(typeof stamp !== \\'object\\') {\\n                                try {\\n                                    stamp = JSON.parse(stamp);\\n                                } catch (e) {\\n                                    continue;\\n                                }\\n                            }\\n                            var visible = stamp.visible;\\n                            if(!visible) {\\n                                continue;\\n                            }\\n                            var label = stamp.name;\\n                            var style = stamp.style || {};\\n                            var className = style.name;\\n                            var css = \\'\\';\\n                            if(typeof style.properties === \\'object\\') {\\n                                css += \\'background:\\' +  style.properties.background + \\' !important\\';\\n                                if(style.properties.borderColor) {\\n                                    css += \\';border: 1px solid \\' +  style.properties.borderColor + \\' !important\\';\\n                                }\\n                                css += \\';color:\\' +  style.properties.color + \\' !important\\';\\n                            }\\n                        $>\\n                        <div class=\"stamp <$= className $>\" style=\"<$= visible ? \\'\\' : \"display: none;\" $><$= (store === \\'netshoes-ar\\' || store === \\'netshoes-mx\\') ? css : \\'\\' $>\">\\n                            <span style=\"margin: 0 !important; <$= store === \\'ns-zattini\\' ? css : \\'\\' $>\">\\n                                <$= label $>\\n                            </span>\\n                        </div>\\n                    <$ } $>\\n                <$ } else { $>\\n                    <$ if(product.details.flg_lancamento === \\'1\\') { $>\\n                    <div class=\"stamp new\">\\n                        <span>\\n                            <$= view.params.i18n.translate(\\'Lançamento\\') $>\\n                        </span>\\n                    </div>\\n                    <$ } $>\\n                    <$ if(product.details.flg_frete_gratis === \\'1\\') { $>\\n                    <div class=\"stamp free-shipping\">\\n                        <span>\\n                            <$= view.params.i18n.translate(\\'Frete grátis\\') $>\\n                        </span>\\n                    </div>\\n                    <$ } $>\\n                    <$ if(product.details.exclusivo === \\'SIM\\') { $>\\n                    <div class=\"stamp collection\">\\n                        <span>\\n                            <$= view.params.i18n.translate(\\'Collection\\') $>\\n                        </span>\\n                    </div>\\n                    <$ } $>\\n                <$ } $>\\n            </div>\\n        </a>\\n    </div>\\n\\n    <div class=\"content\">\\n        <div class=\"ratings-container\">\\n            <$ if(product.details.reviewStars) { $>\\n                <div class=\"ratings-stars\">\\n                    <div class=\"ratings-stars-fill\" style=\"width: <$= product.details.reviewStars * 20 $>%\"></div>\\n                </div>\\n                <div class=\"ratings-count\">\\n                    (<$= product.details.reviewCount $>)\\n                </div>\\n            <$ } $>\\n        </div>\\n        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details product-name\">\\n            <$= product.name $>\\n        </a>\\n\\n        <$ if (product.trigger === \"transaction\") { $>\\n            <div class=\"purchased\">\\n                <$= view.params.i18n.translate(\\'Compra realizada em {{date}}\\').replace(/{{date}}/, product.date) $>\\n            </div>\\n        <$ } else { $>\\n            <$ if (view.priceApiStatus === 2) { $>\\n                <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details buttons check\"><$= view.params.i18n.translate(\\'Confira\\') $></a>\\n            <$ } else { $>\\n                <$ if (product.details.startingAt > 0 && view.params.data.feature !== \\'shoppingcart\\' && view.selectedSpecs.size === undefined) { $>\\n                    <div class=\"prices api\">\\n                        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details price\">\\n                            <span>A partir de </span><$= product && product.details.startingAtString $>\\n                        </a>\\n                        <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details free-shipping\">\\n                            <$= freeShipping $>\\n                        </a> \\n                    </div>\\n                <$ } else { $>\\n                    <div class=\"price-api-content\">\\n                        <div class=\"prices api\">\\n                            <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details old-price\"><$= product && product.oldPriceString $></a>\\n                            <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details price\">\\n                                <$= product && product.priceString $>\\n                            </a>\\n                            <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details free-shipping\">\\n                                <$= freeShipping $>\\n                            </a>\\n                        </div>\\n                        <a href=\"<$=product.url$>\" target=\"_parent\" class=\"details installments api\">\\n                            <$ if (hasInstallments) { $>\\n                                <$= view.params.i18n.translate(\\'{{count}}x de {{priceString}}\\').replace(/{{count}}/, product.installment.count).replace(/{{priceString}}/, product.installment.priceString) $>\\n                        <$ } $>\\n                    </a>\\n                    </div>\\n                <$ } $>\\n            <$ } $>\\n        <$ } $>\\n\\n         <$ if (view.params.data.feature === \"featured\") { $>\\n            <a href=\"<$= product.url $>\" target=\"_parent\" class=\"details buttons\"><$= view.params.i18n.translate(\\'ft.button\\') $></a>\\n        <$ } $>\\n\\n    </div>\\n\\n    <div class=\"buy-container\">\\n        <div class=\"content-bottom\">\\n            <$ if(view.params.buyTogether || view.params.buy) { $>\\n                <div class=\"specs\"></div>\\n            <$ } $>\\n\\n            <$ if(view.params.buy) { $>\\n            <a href=\"javascript:void(0);\" id=\"buy-<$= product.id $>\" class=\"buttons buy\" target=\"_parent\" title=\"<$= view.params.i18n.translate(\\'Adicionar ao carrinho\\') $>\">\\n                <$ if(view.window.chaordic.isMobile) { $>\\n                    <$= view.params.i18n.translate(\\'Comprar\\') $>\\n                <$ } else { $>\\n                    <$= view.params.i18n.translate(\\'Adicionar ao carrinho\\') $>\\n                <$ } $>\\n            </a>\\n            <$ } $>\\n        </div>\\n    </div>\\n\\n</div>\\n'),k.addAsset(\"theme.css\",'@import url(\"https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,600,700\");@-webkit-keyframes load4{0%,100%{box-shadow:0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em}75%{box-shadow:0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0}87.5%{box-shadow:0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em}}#widget{background:#FFF;font-family:\"Trebuchet MS\",Arial,sans-serif;margin:0 0 40px 0;@-webkit-keyframes load4{0%,100%{box-shadow:0 -3em 0 0.2em, 2em -2em 0 0em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 0}12.5%{box-shadow:0 -3em 0 0, 2em -2em 0 0.2em, 3em 0 0 0, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}25%{box-shadow:0 -3em 0 -0.5em, 2em -2em 0 0, 3em 0 0 0.2em, 2em 2em 0 0, 0 3em 0 -1em, -2em 2em 0 -1em, -3em 0 0 -1em, -2em -2em 0 -1em}37.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 0, 2em 2em 0 0.2em, 0 3em 0 0em, -2em 2em 0 -1em, -3em 0em 0 -1em, -2em -2em 0 -1em}50%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 0em, 0 3em 0 0.2em, -2em 2em 0 0, -3em 0em 0 -1em, -2em -2em 0 -1em}62.5%{box-shadow:0 -3em 0 -1em, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 0, -2em 2em 0 0.2em, -3em 0 0 0, -2em -2em 0 -1em}75%{box-shadow:0em -3em 0 -1em, 2em -2em 0 -1em, 3em 0em 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0.2em, -2em -2em 0 0}87.5%{box-shadow:0em -3em 0 0, 2em -2em 0 -1em, 3em 0 0 -1em, 2em 2em 0 -1em, 0 3em 0 -1em, -2em 2em 0 0, -3em 0em 0 0, -2em -2em 0 0.2em}}}#widget.single-product{max-width:500px}#widget.single-product .frame{height:500px}#widget.single-product.ns-zattini .arrow{top:175px}#widget.single-product.ns-zattini .title{color:#333333;font-family:\\'Source Sans Pro\\', sans-serif;font-size:22px;font-weight:600;line-height:26px;width:100%;text-align:center;margin:15px 0;display:block}#widget.single-product.ns-zattini .title:before,#widget.single-product.ns-zattini .title:after{display:none}#widget.single-product.ns-zattini .item{max-width:300px;margin-bottom:0;min-height:480px}#widget.single-product.ns-zattini .item .thumbnail img{width:auto;max-height:280px}#widget.single-product.ns-zattini .item .badges .badge-item{margin:0}#widget.single-product.ns-zattini .item .badges.discount.flag{display:none}#widget.single-product.ns-zattini .item .ratings-container{display:none !important}#widget.single-product.ns-zattini .item .product-name{color:#4D4D4D;font-family:\\'Source Sans Pro\\', sans-serif;font-size:16px;font-weight:400;line-height:19px;text-align:left;height:40px}#widget.single-product.ns-zattini .item .freeDelivery{position:relative;color:#04D483;font-family:\\'Source Sans Pro\\', sans-serif;font-size:16px;font-weight:700;line-height:16px;text-align:left;text-indent:0;text-transform:uppercase;clear:both;float:none;display:block}#widget.single-product.ns-zattini .item .discount-text{color:#00C278;font-family:\\'Source Sans Pro\\', sans-serif;font-size:14px;font-weight:600;line-height:17px;text-align:left;display:inline}#widget.single-product.ns-zattini .item .pr del{color:#8C8C8C;font-family:\\'Source Sans Pro\\', sans-serif;font-size:14px;font-weight:400;line-height:17px;text-align:left}#widget.single-product.ns-zattini .item .pr span{color:#333333;font-family:\\'Source Sans Pro\\', sans-serif;font-size:20px;font-weight:600;line-height:24px;text-align:left;display:block;clear:both}#widget.single-product.ns-zattini .item .in.card-link{color:#666666;font-family:\\'Source Sans Pro\\', sans-serif;font-size:16px;font-weight:400;line-height:19px;text-align:left;padding:0}#widget.single-product.ns-zattini.phone .item .product-name{min-height:0;overflow:hidden}#widget.desktop.single-product.ns-zattini .item .badges .badge-item{width:calc(50% - 2px)}#widget.ns-zattini,#widget.ns-shoestock{display:none;height:0;overflow:hidden}#widget a{outline:none;text-decoration:none}#widget a img{border:none}#widget ul{list-style:none;padding:0;margin:0}#widget .loading .api{visibility:hidden}#widget .title{color:#333333;font-family:\"netshoes_displaybold\",Arial,sans-serif;border-bottom:1px solid #CCC;font-size:20px;margin:16px 0;padding:0 0 20px 0}@media (max-width: 620px){#widget .title{font-size:18px;text-align:center}}#widget.desktop.page-cart{padding-left:15px}#widget.phone .carousel-padding{padding:0 15px}#widget.hp-cart .group-thumbnail,#widget.hp-cart .content{pointer-events:none}#widget .frame{position:relative}#widget .frame.has-purchase .carousel-list{padding-bottom:30px}#widget .carousel{height:100%;overflow:hidden}#widget .carousel-padding{padding:0 10px}#widget .carousel-products{margin:0;padding:0;list-style:none}#widget .carousel-item{float:left;padding:10px 5px;box-sizing:border-box}#widget .item{position:relative;height:100%;max-width:247px;margin:0 auto;box-sizing:border-box;padding:10px;margin-bottom:35px}#widget .alert{position:absolute;background-color:#CA4545;color:#FFF;font-size:11px;line-height:15px;text-align:left;border-radius:3px;text-transform:uppercase;margin-top:5px;padding:7px 10px 7px 10px;box-sizing:border-box;top:100%;width:100%;text-align:center}#widget .item.disabled .alert{display:none}#widget.no-touch .item:hover{-webkit-box-shadow:0 0 15px rgba(0,0,0,0.3);-moz-box-shadow:0 0 15px rgba(0,0,0,0.3);box-shadow:0 0 15px rgba(0,0,0,0.3)}#widget .thumbnail{display:block;position:relative}#widget .thumbnail img{display:block;margin:auto;max-width:100%;max-height:100%;width:100%}#widget .flags{clear:both;bottom:0;left:0;position:absolute;text-align:center;width:100%;z-index:2}#widget .flags .stamp{font-size:10px;font-family:\"netshoes_displaybold\",Arial,sans-serif;color:#FFF;font-style:italic;width:50%;height:18px;line-height:18px;float:left;font-style:italic;text-transform:uppercase;margin-top:2px;background-color:#006AC3}#widget .flags .stamp:nth-of-type(2) ~ .stamp{display:none}#widget .ratings-container{display:none}#widget .discount,#widget .saving{position:absolute;right:10px;top:0;width:34px;height:28px;z-index:2}#widget .discount.smaller,#widget .saving.smaller{background-color:#FF7600}#widget .discount.smaller:before,#widget .saving.smaller:before{border-color:#FF7600 transparent transparent transparent}#widget .discount.bigger,#widget .saving.bigger{background-color:#c00}#widget .discount.bigger:before,#widget .saving.bigger:before{border-color:#c00 transparent transparent transparent}#widget .discount:before,#widget .saving:before{content:\" \";position:absolute;bottom:-14px;right:0;width:0;height:0;border:solid transparent;-moz-transform:scale(0.99999);border-bottom-width:0;border-top-width:14px;border-left-width:17px;border-right-width:17px}#widget .discount .discount-text,#widget .saving .discount-text{line-height:30px;font-size:12px;font-family:\"Trebuchet MS\",Arial,sans-serif;text-align:center;color:#ffffff}#widget .content{position:relative;margin:0 auto}#widget .rating-stars-wrapper{display:block;margin-left:-1px;margin-bottom:5px}#widget .rating-stars .rating{text-align:left;text-indent:-9999px;overflow:hidden}#widget .rating-stars-wrapper .rating-stars{vertical-align:top}#widget .rating-stars-wrapper .rating-total{vertical-align:-2px;margin-left:13px;font-size:11px}#widget .rating-stars{z-index:1;width:71px;height:14px;overflow:hidden;display:inline-block}#widget .rating-stars,#widget .rating-stars .rating{position:relative}#widget .rating-stars:after,#widget .rating-stars .rating:after{position:absolute;top:0;left:0;content:\"00000\";font-family:\"icons\",Arial,sans-serif;font-size:13px;font-style:normal}#widget .rating-stars:after{color:#bfbfbf}#widget .rating-stars .rating{z-index:10;display:block;height:100%;padding-top:13px;height:0;text-indent:0}#widget .rating-stars .rating:after{color:#ffab1b}#widget .product-name{color:#333333;font-family:\"netshoes_displaybold\",Arial,sans-serif;height:2.4em;max-height:2.4em;font-size:1em;line-height:1.2em;text-align:center;text-transform:uppercase;overflow:hidden;display:block;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box}@media (max-width: 620px){#widget .product-name{font-size:12px;font-style:normal;text-transform:uppercase}}#widget .prices{min-height:1.125em;font-size:1.125em;line-height:1.125em;text-align:center;margin:0 10px}#widget .old-price{text-align:right;color:#676767;font-size:.5625em;display:inline-block;line-height:1.125em;top:-3px;text-decoration:line-through}#widget .price{display:inline-block;color:#002E79}@media (max-width: 620px){#widget .price{font-size:15px}}#widget .price .price-from{color:#333333;font-size:10px}#widget .installments{padding:5px 0 0;color:#565656;font-size:.75em;text-align:center;display:block;width:100%}#widget .free-shipping{margin-bottom:5px;font-size:13px;font-style:italic;height:15px}#widget .buttons{position:relative;text-align:center;cursor:pointer;padding:4px;color:#fff;box-sizing:border-box;margin-top:5px;background:#ff691e;display:block;font-size:14px;line-height:24px;-webkit-border-radius:3px;border-radius:3px;-webkit-transition:color 0.25s,background-color 0.25s;-moz-transition:color 0.25s,background-color 0.25s;transition:color 0.25s,background-color 0.25s}#widget .buttons:hover{background:#ff935d}#widget .buttons.check{display:none}#widget .cart-icon:before{content:\"k\";color:#FFF;font-size:16px;margin-right:7px;font-family:\"icons\",Arial,sans-serif}#widget .specs{position:relative;margin:10px 0}#widget .specs .selectWrapper{position:relative;width:100%;padding:0;border:1px solid #ccc;box-sizing:border-box;border-radius:3px;overflow:hidden;background-color:#fff;background:#fff url(\"images/arrowdown.gif\") no-repeat calc(100% - 9px) 50%}#widget .specs .selectWrapper:after{content:\"\";position:absolute;border-left:1px solid #ccc;height:100%;right:35px;top:0}#widget .specs select{height:20px;background-color:#fff;border:1px solid #d4d4d4;color:#999;font-size:11px;width:100%;padding:2px 0;margin:1px 0;margin:1px 5px;display:block;width:calc(100% - 10px);padding:8px 8px;color:#777;font-size:12px;height:100%;border:none;box-shadow:none;background-color:transparent;background-image:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}#widget .specs select:disabled{color:#d4d4d4}#widget .specs select:focus{outline:none}#widget .specs select:-moz-focusring,#widget .specs select::-moz-focus-inner{color:transparent;text-shadow:0 0 0 #000}#widget .arrow{position:absolute;cursor:pointer;width:0;height:0;z-index:200;top:40%;border-top:15px solid transparent;border-bottom:15px solid transparent;text-indent:-999%}#widget .arrow.prev{border-right:15px solid #FF9C24;left:0}#widget .arrow.prev:hover{border-right:15px solid #f08400}#widget .arrow.next{border-left:15px solid #FF9C24;right:0}#widget .arrow.next:hover{border-left:15px solid #f08400}#widget .arrow.vertical{-webkit-transform:rotate(135deg);-moz-transform:rotate(135deg);-ms-transform:rotate(135deg);-o-transform:rotate(135deg);transform:rotate(135deg);left:40%;right:auto}#widget .arrow.vertical.prev{top:0}#widget .arrow.vertical.next{bottom:0;top:auto}#widget .arrow.disabled{display:none}#widget .pagination-wrapper{display:table;margin:10px auto;background:#003366;border-radius:4px;height:27px;padding:8px 10px 0 10px;box-sizing:border-box}#widget .pagination-wrapper .pagination li{background:#000;opacity:.2;display:block;font-size:0;text-indent:9999px;cursor:pointer;margin:0 auto 6px auto;width:10px;height:10px;border-radius:20px;border:2px solid #FFF;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;transition:all .3s ease-in-out}#widget .pagination-wrapper .pagination li.active{background:#3EB7E6;border:2px solid #3EB7E6;opacity:1}#widget .pagination-wrapper .pagination li:hover{background:#3EB7E6;opacity:1}#widget.mobile .arrow.prev{left:5px}#widget.mobile .arrow.next{right:5px}#widget.mobile .alert{font-size:10px;line-height:1em;padding:5px;max-width:83%;margin-top:-13px}#widget.mobile .item:last-child .alert{margin-top:3px}#widget.shoppingcart a.details{cursor:default}#widget.shoppingcart a.check{cursor:pointer}#widget .lazy-container{height:80px;position:relative}#widget .lazy-container>*{visibility:hidden;transition:visibility 0.01s}#widget .lazy-container:after{content:\\'\\';color:#666666;display:block;font-size:5px;width:1em;height:1em;border-radius:50%;position:absolute;top:50%;left:50%;-webkit-animation:load4 1.3s infinite linear;animation:load4 1.3s infinite linear;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0)}\\n'),k.addAsset(\"vertical.css\",\"#widget .frame{position:relative;top:0;padding:0}#widget .carousel{position:relative;left:1px;right:1px;height:calc(100px * 3)}#widget .carousel-item{width:100%}#widget .item{max-width:none;height:100px;margin:0}#widget .group-thumbnail{float:left;height:100%;width:80px;margin-right:10px}#widget .group-thumbnail .thumbnail{height:100%}#widget .group-thumbnail .flags{display:none}\\n\"),k.addAsset(\"shoppingcart.css\",\"#widget a{cursor:default}#widget a.details{cursor:pointer}#widget .item{padding:10px 10px 15px 10px}#widget .carousel-products{display:table;height:100%}#widget .carousel-item{display:table-cell;height:100%;float:none;vertical-align:top}#widget .carousel-item .item{display:table;width:100%}#widget .carousel-item .item>*{display:table-row}#widget .carousel-item .item .buy-container{height:100%}#widget .carousel-item .item .content-bottom{display:table-cell;vertical-align:bottom;position:relative}#widget .content-group{min-height:95px}#widget .spec-group{height:22px}#widget.touch .content-group{min-height:110px}\\n\"),k.addAsset(\"personalized.css\",\"#widget .carousel-wrapper{position:relative;overflow:hidden}#widget .purchased{letter-spacing:0.06em;margin-bottom:7px;font-size:13px;color:#ACAC9D}#widget .control{position:absolute;top:10px;left:10px;text-align:left;z-index:10}#widget .refresh{position:relative;display:inline-block;padding:3px 0 0 15px;height:35px;line-height:28px;box-sizing:border-box;background:#007dda;color:#ffffff;font-size:14px;border-radius:2px;cursor:pointer;margin-bottom:.4em;text-indent:1.7em;width:35px;overflow:hidden;transition:width .5s ease}@media (max-width: 768px){#widget .refresh{width:95px}}#widget .refresh:before{background-image:url(\\\"svg/reload.svg\\\");left:7px;top:5px;content:'';position:absolute;display:block;width:35px;height:35px;background-size:60%;background-repeat:no-repeat}#widget .refresh:hover{width:100px}\\n\"),k.addAsset(\"featured.css\",'#widget .frame{padding:0}#widget .carousel-padding{padding:0}#widget .carousel-item{padding:0}#widget .featured-image{background-size:contain;background-repeat:no-repeat;background-position:left center;width:350px;height:280px;float:left;display:inline}@media (max-width: 767px){#widget .featured-image{display:none}}#widget .featured-mobile{display:none}@media (max-width: 767px){#widget .featured-mobile{display:block;text-align:center;border-bottom:5px solid #001f65;color:#3EB7E6;font-family:\"netshoes_demibold\",Arial,sans-serif;letter-spacing:0.1em;font-size:18px;padding:5px 0}}#widget .item{text-align:left;padding:0;max-width:100%;margin:0 auto}@media (min-width: 300px){#widget .item{width:100%;display:table}#widget .item .wrapper{width:100%;display:table}#widget .item .content{display:inline-block;vertical-align:middle}#widget .item .content .prices .installments{display:block}}#widget .group-thumbnail{width:269px;display:inline-block;vertical-align:middle;margin-right:30px}@media (max-width: 667px){#widget .group-thumbnail{margin-right:5%;width:45%}}@media (min-width: 668px) and (max-width: 1280px){#widget .group-thumbnail{margin-right:40px}}#widget .flag-collection{margin:0 auto}#widget .flag-new{left:0}#widget .flag-new:before{display:none}@media (max-width: 767px){#widget .flag-new{left:0px}}#widget .content{width:40%;margin:0;padding:0;display:inline-block;vertical-align:middle;text-align:left}@media (min-width: 668px) and (max-width: 768px){#widget .content{width:auto;max-width:50%}}@media (min-width: 769px) and (max-width: 1280px){#widget .content{width:44%}}@media (max-width: 667px){#widget .content{width:45%}}#widget .product-name{font-size:24px;margin-bottom:10px;padding:0;padding:0 25px 0 0}@media (min-width: 668px) and (max-width: 1280px){#widget .product-name{font-size:20px}}@media (max-width: 667px){#widget .product-name{font-size:14px;padding:0;margin:0}}#widget .prices{text-align:left;margin:0}#widget .price{font-size:20px}#widget .old-price{font-size:13px}#widget .installments{text-align:left}@media (max-width: 420px){#widget .installments{text-align:center}}#widget .buttons{display:block;width:140px;line-height:50px;margin-top:25px}@media (max-width: 667px){#widget .buttons{width:110px;margin-top:5px;line-height:30px}}#widget .pagination-wrapper{position:absolute;top:75px;right:10px}#widget .pagination-wrapper .pagination li{background:#000;opacity:.2;display:block;font-size:0;text-indent:9999px;cursor:pointer;margin:0 auto 6px auto;width:12px;height:12px;border-radius:20px;border:2px solid #FFF;-webkit-transition:all .3s ease-in-out;-moz-transition:all .3s ease-in-out;-o-transition:all .3s ease-in-out;-ms-transition:all .3s ease-in-out;transition:all .3s ease-in-out}#widget .pagination-wrapper .pagination li.active{background:#3EB7E6;border:2px solid #3EB7E6;opacity:1}#widget .pagination-wrapper .pagination li:hover{background:#3EB7E6;opacity:1}@media (max-width: 667px){#widget .pagination-wrapper{position:relative;display:table;bottom:auto;right:auto;margin:5px auto;top:0}#widget .pagination-wrapper .pagination li{float:left;margin:0 4px 0 0}}.no-touch .item:hover{-webkit-box-shadow:0 0 0 rgba(0,0,0,0);-moz-box-shadow:0 0 0 rgba(0,0,0,0);box-shadow:0 0 0 rgba(0,0,0,0)}.touch .item{border:solid 1px transparent}.touch .item:hover{box-shadow:0 2px 4px 0 rgba(0,0,0,0);border:solid 1px transparent}\\n'),k.addAsset(\"frequentlyboughttogether.css\",\"#widget .title span{font-weight:600}@media (max-width: 2560px){#widget .frame{clear:both}#widget .frame:after{content:\\\"\\\";display:table;clear:both}}#widget .wrapper{position:relative}#widget .item,#widget #summary{position:relative;float:left;width:20%}@media (max-width: 767px){#widget .item{width:46%;max-width:46%}}#widget .item .control-add,#widget .item .control-remove{display:none}#widget .item.removable .control-remove{display:inline-block}#widget .item.disabled .wrapper:before{content:'';position:absolute;top:0;left:-11px;right:0;bottom:0;z-index:3;background:rgba(255,255,255,0.9)}#widget .item.disabled .control-skip{visibility:hidden}#widget .item.disabled .control-add{display:inline-block}#widget .item.disabled .control-remove{display:none}#widget [data-index=\\\"0\\\"] .controls{display:none}#widget .controls{position:absolute;top:-1px;left:0;text-align:left;z-index:10;overflow:hidden}#widget .control-skip{display:none}#widget.desktop .control-remove,#widget.desktop .control-add,#widget.tablet .control-remove,#widget.tablet .control-add{-webkit-transform:translate(-50%, -50%) rotate(-45deg);-moz-transform:translate(-50%, -50%) rotate(-45deg);-ms-transform:translate(-50%, -50%) rotate(-45deg);transform:translate(-50%, -50%) rotate(-45deg);vertical-align:bottom;color:#ffffff;position:relative;height:58px;width:58px;text-align:center;font-size:10px;overflow:hidden;-webkit-transition:all 0.3s ease;-moz-transition:all 0.3s ease;transition:all 0.3s ease;background:#13abe1}#widget.desktop .control-remove .label,#widget.desktop .control-add .label,#widget.tablet .control-remove .label,#widget.tablet .control-add .label{position:absolute;width:100%;left:0;top:100%}#widget.desktop .toggle-product,#widget.tablet .toggle-product{cursor:pointer}#widget.desktop .toggle-product:after,#widget.tablet .toggle-product:after{content:'–';position:absolute;top:0;left:0;width:22px;line-height:22px;font-size:23px;color:#ffffff;text-align:center;font-weight:bold}#widget.desktop .toggle-product:hover>div,#widget.tablet .toggle-product:hover>div{width:80px;height:80px}#widget.desktop .toggle-product:hover>div .label,#widget.tablet .toggle-product:hover>div .label{top:auto;bottom:0}#widget.desktop .disabled .toggle-product:after,#widget.tablet .disabled .toggle-product:after{content:'+'}#widget .plus,#widget .equals{color:#000000;font-family:\\\"netshoes_displaybold\\\",Arial,sans-serif;float:left;font-size:30px;margin:13% 2%;text-align:center}@media (min-width: 1025px) and (max-width: 1270px){#widget .plus,#widget .equals{margin:10% 1%}}@media (max-width: 767px){#widget .equals{display:none}}@media (max-width: 767px){#widget .plus{margin:18% 0;top:0;left:50%;z-index:9;width:7.3%}}@media (min-width: 620px){#widget .wrapper{margin:0 auto;position:relative}}#widget #summary{padding:40px 0;margin-top:30px}@media (min-width: 1025px) and (max-width: 1270px){#widget #summary{width:23%;margin-top:0}}#widget #summary .prices{text-align:left;margin:0}@media (max-width: 767px){#widget #summary .prices{text-align:center}}#widget #summary .old-price{font-size:16px}#widget #summary .price{font-size:18px}#widget .summary-text{font-size:20px;margin-bottom:20px}#widget .summary-text span{font-weight:bold}@media (max-width: 1270px){#widget .summary-text{font-size:20px;margin-bottom:0}}#widget .buttons{margin:30px 0 0 0;line-height:50px}@media (max-width: 767px){#widget .buttons{margin:15px auto 0 auto}}#widget.no-touch .frame{padding-left:45px}#widget.phone .item,#widget.phone #summary{float:none;width:auto;max-width:initial}#widget.phone .controls{left:10px;width:26px;height:26px;text-indent:-999999px}#widget.phone .controls .control-remove{background:#13abe1;border-radius:4px;width:26px;height:26px;display:block}#widget.phone .controls .control-remove:after{content:none}#widget.phone .controls .control-remove:before{content:'';background-image:url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMS4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQ4OC44NzggNDg4Ljg3OCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDg4Ljg3OCA0ODguODc4OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSIgd2lkdGg9IjMycHgiIGhlaWdodD0iMzJweCI+CjxnPgoJPGc+CgkJPHBvbHlnb24gcG9pbnRzPSIxNDMuMjk0LDM0MC4wNTggNTAuODM3LDI0Ny42MDIgMCwyOTguNDM5IDEyMi4wMDksNDIwLjQ0NyAxMjIuMTQ5LDQyMC4zMDYgICAgIDE0NC40MjMsNDQyLjU4IDQ4OC44NzgsOTguMTIzIDQzNy4wNTUsNDYuMjk4ICAgIiBmaWxsPSIjRkZGRkZGIi8+Cgk8L2c+Cgk8Zz4KCTwvZz4KCTxnPgoJPC9nPgoJPGc+Cgk8L2c+Cgk8Zz4KCTwvZz4KCTxnPgoJPC9nPgoJPGc+Cgk8L2c+Cgk8Zz4KCTwvZz4KCTxnPgoJPC9nPgoJPGc+Cgk8L2c+Cgk8Zz4KCTwvZz4KCTxnPgoJPC9nPgoJPGc+Cgk8L2c+Cgk8Zz4KCTwvZz4KCTxnPgoJPC9nPgoJPGc+Cgk8L2c+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==);background-size:85%;top:5px;left:5px;position:absolute;display:block;width:20px;height:20px;background-repeat:no-repeat}#widget.phone .controls .control-add{width:24px;height:24px;display:block;position:absolute;top:0;z-index:-1;border-radius:4px;border:1px solid #ccc;background:none}#widget.phone .controls .control-add:after{content:none}#widget.phone .disabled .control-remove{display:none}#widget.phone .item .wrapper{padding-left:60px}#widget.phone .item .wrapper:after{content:'';display:block;border-bottom:1px solid #ccc;margin:15px 0}#widget.phone .item:last-child .wrapper:after{content:none}#widget.phone .plus,#widget.phone .equals{display:none}#widget.phone .group-thumbnail{float:left;width:30%;margin-right:10px}#widget.phone .group-thumbnail .flags{display:none}#widget.phone .content .product-name{line-height:1.2em !important;max-height:2.4em !important;padding:0}#widget.phone .content *{display:block;width:auto;text-align:left}#widget.phone .content .installments{display:none}#widget.phone .content:after{content:'';display:table;clear:both}#widget.phone .buttons{padding:15px}#widget.phone #summary{margin-top:10px;text-align:center;padding:10px}#widget.phone #summary .summary-text.mobile-price{font-size:16px;margin-bottom:35px}#widget.phone #thumbnails{padding:10px}\\n\"),k.addAsset(\"historypersonalized.css\",\"#widget .recs-frame{z-index:10}#widget .carousel-padding{max-width:100% !important}@media (max-width: 767px){#widget .refs-frame{display:none}}#widget .refs-frame.vertical{float:left;width:25%;height:310px;z-index:50;padding:0}#widget .refs-frame.vertical .container{height:100%;position:relative}#widget .refs-frame.vertical .carousel{position:absolute;left:1px;right:1px;height:calc(100% - 45px);top:10px}#widget .refs-frame.vertical .carousel-list{z-index:9999}#widget .refs-frame.vertical .carousel-padding{padding:0;box-sizing:border-box}#widget .refs-frame.vertical .item{max-width:100% !important;padding:10px;height:100px;margin:0}#widget .refs-frame.vertical .item:before{content:'';clear:both;display:table}#widget .refs-frame.vertical .item:hover{-webkit-box-shadow:0 0 0 rgba(0,0,0,0) !important;-moz-box-shadow:0 0 0 rgba(0,0,0,0) !important;box-shadow:0 0 0 rgba(0,0,0,0) !important}#widget .refs-frame.vertical li{width:100%;overflow:hidden;position:relative;background:transparent}#widget .refs-frame.vertical li .item{margin-right:20px}#widget .refs-frame.vertical li .item:hover{cursor:pointer}#widget .refs-frame.vertical li .thumbnail{float:left;margin-right:10px}#widget .refs-frame.vertical li .thumbnail img{height:80px;width:auto}#widget .refs-frame.vertical li .content{padding:0 10px;text-align:left;display:block;min-height:0;margin:0}#widget .refs-frame.vertical li .content a{display:inline-block;margin-top:5px;padding:0 3px}#widget .refs-frame.vertical li.selected .item{background-color:#f6f5f5}#widget .refs-frame.vertical li.selected .item:after{content:\\\"\\\";display:block;width:0;height:0;border-top:100px solid transparent;border-bottom:100px solid transparent;border-left:20px solid #f6f5f5;position:absolute;top:50%;left:100%;margin-top:-100px}#widget .refs-frame.vertical .product-name{font-size:12px;height:30px;overflow:hidden;padding:0;margin:0}#widget .refs-frame.vertical .price{font-size:13px;display:block}#widget .refs-frame.vertical .buttons{height:20px;line-height:20px;text-transform:uppercase;font-size:10px;display:block}\\n\"),k.addAsset(\"push.css\",\"@media (min-width: 992px){#widget .frame.left-side-menu{display:-webkit-box;display:-ms-flexbox;display:flex}#widget .frame.left-side-menu.has-menu .carousel-wrapper{width:calc(100% - 185px)}#widget .frame.left-side-menu .menu-wrapper{width:185px}#widget .frame.left-side-menu .menu{margin-bottom:0;text-align:left}#widget .frame.left-side-menu .menu-item{border-bottom:none;display:block}#widget .frame.left-side-menu .menu-item.selected{background:rgba(0,0,0,0.1);border-bottom:none}#widget .frame.left-side-menu .menu-item:hover{background:rgba(0,0,0,0.05)}}#widget .menu{list-style:none;margin-bottom:15px;text-align:center}#widget .menu-item{box-sizing:border-box;cursor:pointer;display:inline-block;float:none;height:auto;list-style:none}#widget .menu-item.selected{border-bottom:3px solid #000}#widget .menu-item:not(.selected):hover{border-bottom:3px solid #ddd}@media (max-width: 991px){#widget .menu-wrapper{overflow:auto}#widget .menu-wrapper::-webkit-scrollbar{display:none}#widget .menu{position:relative;white-space:nowrap}}\\n\");var G={carousel:o.get(\"carouselConfig\"),carouselOnlyRefs:o.get(\"carouselConfig\"),carouselRefsMobile:o.get(\"carouselConfig\"),templates:{widget:\"widget.fugly\",product:\"product.fugly\",refProduct:\"product.fugly\"},dynamicHeight:!0,widgetClass:\"horizontal\",productView:z,afterDrawWidget:R,afterDrawProduct:W,priceApiOptions:M,recsRepeat:\"no\"},Y=Q(G,{carousel:{dynamicMode:\"box\",minCellSize:300,minVisibleItems:1,maxVisibleItems:1,loopScroll:!0},templates:{widget:\"push.fugly\",product:\"product-single-product.fugly\"},afterChangeMenuItem:U,widgetClass:\"horizontal single-product\"}),Z=Q(G,{carousel:{dynamicMode:\"box\",minCellSize:300,minVisibleItems:1,maxVisibleItems:1,loopScroll:!0},templates:{product:\"product-single-product.fugly\"},widgetClass:\"horizontal single-product\"});k.addTheme.apply(this,u.getTheme(\"Offers\",\"single-product\",Z)),k.addTheme.apply(this,u.getTheme(\"MostPopular\",\"single-product\",Z)),k.addTheme.apply(this,u.getTheme(\"Push\",\"single-product\",Y)),k.addTheme.apply(this,u.getTheme(\"MostPopular\",\"vertical\",{carousel:{dynamicMode:\"margin\",minVisibleItems:1,maxVisibleItems:3,vertical:!0},templates:{widget:\"widget-vertical.fugly\",product:\"product.fugly\"},dynamicHeight:!0,widgetClass:\"vertical\",style:[\"theme.css\",\"vertical.css\"],productView:z,afterDrawWidget:R,afterDrawProduct:W,priceApiOptions:M,recsRepeat:\"no\"})),k.addTheme.apply(this,u.getTheme(\"ViewPersonalized\",null,{carousel:o.get(\"carouselConfig\"),carouselOnlyRefs:o.get(\"carouselConfig\"),carouselRefsMobile:o.get(\"carouselConfig\"),templates:{widget:\"widget.fugly\",product:\"product.fugly\",refProduct:\"product.fugly\"},dynamicHeight:!0,widgetClass:\"horizontal\",productView:X,afterDrawProduct:W,afterDrawWidget:R,priceApiOptions:M,recsRepeat:\"no\"})),k.addTheme.apply(this,u.getTheme(\"PurchasePersonalized\",null,G)),k.addTheme.apply(this,u.getTheme(\"CartPersonalized\",null,G)),k.addTheme.apply(this,u.getTheme(\"Offers\",null,G)),k.addTheme.apply(this,u.getTheme(\"Offers\",\"vertical\",{carousel:{dynamicMode:\"margin\",minVisibleItems:1,maxVisibleItems:3,vertical:!0},templates:{widget:\"widget-vertical.fugly\",product:\"product.fugly\"},dynamicHeight:!0,widgetClass:\"vertical\",style:[\"theme.css\",\"vertical.css\"],productView:z,afterDrawWidget:R,afterDrawProduct:W,priceApiOptions:M,recsRepeat:\"no\"})),k.addTheme.apply(this,u.getTheme(\"Featured\",null,{carousel:o.get(\"carouselConfig\",\"featured\"),templates:{widget:\"featured.fugly\",product:\"product.fugly\"},mobile:chaordic.isMobile||window.innerWidth<=768?!0:!1,width:\"100%\",dynamicHeight:!0,productView:z,afterDrawWidget:R,afterDrawProduct:W,priceApiOptions:M,recsRepeat:\"no\"})),k.addTheme.apply(this,u.getTheme(\"New4You\",\"vertical\",{carousel:{dynamicMode:\"margin\",minVisibleItems:1,maxVisibleItems:3,vertical:!0},templates:{widget:\"widget-vertical.fugly\",product:\"product.fugly\"},dynamicHeight:!0,widgetClass:\"vertical\",style:[\"theme.css\",\"vertical.css\"],productView:z,afterDrawWidget:R,afterDrawProduct:W,priceApiOptions:M,recsRepeat:\"no\"}));var et={carousel:o.get(\"carouselConfig\"),carouselOnlyRefs:o.get(\"carouselConfig\"),carouselRefsMobile:o.get(\"carouselConfig\"),templates:{widget:\"widget.fugly\",product:\"product.fugly\",refProduct:\"product.fugly\"},dynamicHeight:!0,widgetClass:\"horizontal\",productView:z,afterDrawWidget:R,afterDrawProduct:W,priceApiOptions:M,recsRepeat:\"yes\"};k.addTheme.apply(this,u.getTheme(\"HistoryPersonalized\",\"hp-cart\",Q(et,{specs:o.get(\"specConfig\"),buy:j,widgetClass:\"horizontal hp-cart\"})));var tt=Q(G,{templates:{widget:\"push.fugly\",product:\"product.fugly\"},afterChangeMenuItem:U});k.addTheme.apply(this,u.getTheme(\"Push\",null,tt)),k.addTheme.apply(this,u.getTheme(\"Push\",\"menu-dinamico\",tt)),k.addTheme.apply(this,u.getTheme(\"Push\",\"vertical\",{carousel:{dynamicMode:\"margin\",minVisibleItems:1,maxVisibleItems:3,vertical:!0},templates:{widget:\"widget-vertical.fugly\",product:\"product.fugly\"},dynamicHeight:!0,widgetClass:\"vertical\",style:[\"theme.css\",\"vertical.css\"],productView:z,afterDrawWidget:R,afterDrawProduct:W,priceApiOptions:O,afterChangeMenuItem:U}));var nt={specs:o.get(\"specConfig\"),carousel:o.get(\"carouselConfig\",\"shoppingCart\"),templates:{widget:\"widget.fugly\",product:\"product.fugly\"},dynamicHeight:!0,widgetClass:\"horizontal\",productView:z,afterDrawProduct:function(e,t){e.find(\".details:not(.check)\").removeClass(\"details\").off(\"click\").click(function(e){e.preventDefault()}),W.apply(this,arguments)},buy:j,afterDrawWidget:R,priceApiOptions:O,recsRepeat:\"no\"},rt={specs:o.get(\"specConfig\"),templates:{widget:\"frequentlyboughttogether.fugly\",product:\"product.fugly\"},dynamicHeight:!0,visibleProducts:3,mobile:chaordic.isMobile||window.innerWidth<=1024?!0:!1,buyTogether:F,productView:z,afterDrawWidget:R,afterDrawProduct:W,afterDrawSummary:$,summaryView:K,priceApiOptions:{defaultPriceApiOptions:{waitToRender:{enabled:!1}}},recsRepeat:\"no\"},it=function(e,t,r,i){window.chaordic_meta.info=window.chaordic_meta.info||{},i=i||{};var s=n(t),o=s&&s.match(/:(.+)/),a=o&&o[1];s&&(window.chaordic_meta.info[t]=s);if(s&&B()===\"product\"){var f=i.hasOwnProperty(a)?i[a]:r;k.addTheme.apply(this,u.getTheme(e,s,f))}else k.addTheme.apply(this,u.getTheme(e,null,r))};n(\"croTitulos\")&&B()===\"product\"?(it(\"FrequentlyBoughtTogether\",\"croTitulos\",rt),it(\"SimilarItems\",\"croTitulos\",G)):(it(\"FrequentlyBoughtTogether\",\"ComplementarPDP\",rt),it(\"SimilarItems\",\"SimilaresPDP\",G)),it(\"MostPopular\",\"croTitulos\",G),it(\"UltimateBuy\",\"croTitulos\",G),it(\"HistoryPersonalized\",\"croTitulos\",et),it(\"New4You\",\"RecomNovidades\",G),it(\"ShoppingCart\",\"ComplementarCart\",nt)},function(){chaordic.customMetaSetup=function(e){e.page&&e.page.name===\"confirmation\"&&(e.transaction.id=\"N\"+e.transaction.id)},function(){var t=document.createElement(\"script\"),n=window.chaordic_meta&&window.chaordic_meta.page&&window.chaordic_meta.page.name;n===\"confirmation\"?t.setAttribute(\"src\",\"https://s3-sa-east-1.amazonaws.com/js-ads/zattini/c.js\"):t.setAttribute(\"src\",\"https://s3-sa-east-1.amazonaws.com/js-ads/zattini/g.js\"),document.head.appendChild(t)}()}(),chaordic.currentLoadedAt=(new Date).getTime(),function(){var e=chaordic.Config,t=chaordic.lib,n=\"chaordic\",r=86400,i=r*365,s=r*7,o=\"chaordic_testGroup\",u=\"chaordic_anonymousUserId\",a=\"chaordic_realUserId\",f=\"anon-\",l=\"chaordic_browserId\",c=\"chaordic_session\",h=1800,p=function(e){return e&&e[1]}(navigator.userAgent.match(/MSIE\\s([^;]*)/)),d=function(e){return Boolean(e.match(/Android/i)||e.match(/webOS/i)||e.match(/iPhone/i)||e.match(/iPad/i)||e.match(/iPod/i)||e.match(/BlackBerry/i)||e.match(/Windows Phone/i))}(navigator.userAgent),v={events:chaordic.event.Pushables},m=function(e){e+=\"=\";var t=document.cookie.split(\";\"),n,r=0,i=t.length;while(r<i){n=t[r];while(n.charAt(0)===\" \")n=n.substring(1,n.length);if(n.indexOf(e)===0)return decodeURIComponent(n.substring(e.length,n.length));r+=1}return null},g=function(e){var t=document.cookie.split(\";\"),n,r=0,i=t.length,s={},o,u,a;while(r<i){n=t[r];while(n.charAt(0)===\" \")n=n.substring(1,n.length);e.test(n)&&(o=n.indexOf(\"=\"),u=n.substring(0,o),a=decodeURIComponent(n.substring(o+1,n.length)),s[u]=a),r+=1}return s},y=function(e,t,n){var r=e+\"=\"+encodeURIComponent(t)+\"; path=/;\";document.domain.indexOf(chaordic.Config.DOMAIN)>-1&&(r+=\"domain=\"+chaordic.Config.DOMAIN),arguments.length>2&&(typeof n==\"number\"?r+=\"; max-age=\"+n:n instanceof Date?r+=\"; expires=\"+n.toUTCString():r+=\"; expires=\"+n),document.cookie=r},b=function(e){var t=e+\"=0; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/;\";document.domain.indexOf(chaordic.Config.DOMAIN)>-1&&(t+=\"domain=\"+chaordic.Config.DOMAIN),document.cookie=t},w=function(){return(new Date).getTime()},E=function(e,t){if(Object.prototype.toString.call(e)===\"[object Array]\")for(var n=0,r=e.length;n<r;n+=1)t(e[n],n);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t(e[i],i)},S=function(e,t){setTimeout(function(){e.apply(null,t)})},x=function(){var n=t.jQuery(\"script[data-apikey=\"+e.API_KEY+\"]\",document);return n.length!==0?n[0]:null},T=function(){E(Array.prototype.slice.call(arguments),function(e){if(chaordic.lib.jQuery.isArray(e)){var t=e.shift(),n=v.events[t],r=e;typeof n==\"function\"?S(n,r):chaordic.Base.log(\"WARN\",\"Unknown method: \"+t)}else if(typeof e==\"function\")try{e()}catch(i){chaordic.event.Tron.trace(\"ERROR\",{callback:e.toString(),erorr:i.toString()},\"Failed to run the callback function\")}else chaordic.Base.log(\"WARN\",\"Unknown argument: \"+e)})},N=function(){return p?function(e,t){var n=function(e){(\"loaded\"===e||\"complete\"===e)&&t()};n(e.readyState),e.onreadystatechange=function(){n(this.readyState)}}:/KHTML/.test(navigator.userAgent)?function(e,t){e.addEventListener(\"load\",t,!1)}:function(e,t){e.onload=t}}(),C=function(e,t){var n=document.getElementsByTagName(\"head\")[0]||document.documentElement,r=document.createElement(\"script\");return t&&N(r,t),r.setAttribute(\"charset\",\"UTF-8\"),r.setAttribute(\"async\",!0),r.src=e,n.insertBefore(r,n.firstChild),r},k=function(e,t,n){var r,i=\"_chaordicJsonp_\"+w()+parseInt(Math.random()*1e4),s=function(){try{delete window[i]}catch(e){window[i]=undefined}};chaordic.widgetFallback&&chaordic.widgetFallback.load&&typeof chaordic.widgetFallback.load.callback==\"function\"&&(r=setTimeout(function(){chaordic.widgetFallback.load.callback(),s()},chaordic.widgetFallback.load.timeout||1e4)),window[i]=function(e){try{n(e),clearTimeout(r)}finally{s()}};var o=[];t.callback=i,E(t,function(e,t){o.push(encodeURIComponent(t)+\"=\"+encodeURIComponent(e))}),o.length!==0&&(e.indexOf(\"?\")===-1&&(e+=\"?\"),e+=o.join(\"&\")),C(e)},L=function(e){var t=[],n=\"0123456789abcdef\";for(var r=0;r<36;r++)t[r]=n.substr(Math.floor(Math.random()*16),1);t[14]=\"4\",t[19]=n.substr(t[19]&3|8,1),t[8]=t[13]=t[18]=t[23]=\"-\";var i=t.join(\"\");i=i.replace(/-/g,\"\"),i+=String(Date.now()),i+=String(Math.floor(Math.random()*7919+1)),e(i)},A=function(t){var n=e.PROTOCOL+e.DYNAMIC_HOST+\"/datakeeper/acquireTestGroup\";k(n,{q:'{\"apiKey\":\"'+e.API_KEY+'\"}'},function(e){t(e.testGroup)})},O=function(){var e=m(c);return e||(e=w()+\"-\"+Math.random()),y(c,e,h),e},M=function(e){D(function(t){y(l,t,i);var n=P(t);chaordic.Identity={browserId:t,anonymousUserId:n,session:O()},e()})},_=function(e){H(function(t){chaordic.Test=t,e()})},D=function(e){var t=function(t){y(l,t,i),e(t)},n=m(l);n&&n!==\"undefined\"?t(n):L(t)},P=function(e){var t=m(u);if(!t||t===\"anon-undefined\")t=f+e;return y(u,t,i),t},H=function(e){var n=function(n){y(o,t.JSON.stringify(n)||\"{}\",s),e(n)},r=m(o);r?n(t.JSON.parse(r)):A(n)},B=function(){var t=String(location);t.indexOf(\"homologation=true\")!==-1?(document.cookie=\"homologation=true; path=/\",e.HOMOLOGATION=!0):t.indexOf(\"homologation=\")!==-1?(document.cookie=\"homologation=; path=/\",e.HOMOLOGATION=!1):e.HOMOLOGATION=m(\"homologation\")===\"true\"},j=function(){var t=String(location);t.indexOf(\"dummy=true\")!==-1?(document.cookie=\"dummy=true; path=/\",e.DUMMY_RECS=!0):t.indexOf(\"dummy=\")!==-1?(document.cookie=\"dummy=; path=/\",e.DUMMY_RECS=!1):e.DUMMY_RECS=m(\"dummy\")===\"true\"},F=function(){if(window.NeemuSearch)return!1;var e=chaordic.meta,n=e&&e.page&&e.page.salesChannel;if(n){var r=t.jQuery.isArray(n)?n:[n];y(\"lx_sales_channel\",t.JSON.stringify(r))}else b(\"lx_sales_channel\")},I=function(){if(e.USE_EMBEDDED_LOADER)return!1;var t=document.getElementsByTagName(\"script\"),n=t.length-1,r;while(n>-1){r=t[n];if(r.getAttribute(\"data-apikey\")&&/loader\\.js/.test(r.src))return r.getAttribute(\"data-initialize\")!==\"false\";n-=1}throw new Error(\"[loader.js] Unable to find loader.js script\")},q=function(){chaordic.event.Listener.onServerMessage(function(e){e.origin===\"datakeeper.businesses.TestExperimentPublisher\"&&chaordic.Test.experiment!==e.data&&(b(o),_(function(){}))}),chaordic.event.Listener.onServerMessage(function(e){e.origin===\"datakeeper.businesses.SessionCookiePublisher\"&&y(c,chaordic.Identity.session,e.data.expiration)})},R=function(){var t=chaordic.lib.jQuery,n=e.NEEMU_SCRIPT_URL;if(!e.NEEMU_APIKEY)return;typeof n==\"string\"?C(n.replace(\"%APIKEY%\",e.NEEMU_APIKEY)):t.isArray(n)&&t.each(n,function(t,n){C(n.replace(\"%APIKEY%\",e.NEEMU_APIKEY))})},U=function(){chaordic.initializeCount+=1,B(),j(),chaordic.NoRepeatRecs.resetVisibles();var t=function(e){chaordic.event.Meta(function(t){chaordic.MetaTranslator.translate(t),chaordic.meta.user?y(a,chaordic.meta.user.id):b(a),e()})},n=function(){chaordic.Base.ensure([t,M,_],function(){e.NEEMU_LOAD_STRATEGY===\"initialize\"&&R(),F(),q(),typeof chaordic.initializeTheme==\"function\"&&chaordic.initializeTheme(),chaordic.push=T,E(chaordic.modules,function(e){e()});if(typeof chaordic.callbacks==\"function\"){var t=chaordic.callbacks();while(t.length>0)chaordic.push(t.shift())}})};chaordic.Base.ensure3rdpartyDependencies(function(){chaordic.preInitialize?chaordic.preInitialize(n):n()})};e.KEEP_SCOPE=!1,chaordic.window=!e.KEEP_SCOPE&&window.top.document?window.top:window,chaordic.newFuglyTemplate=function(e){var t=new chaordic.lib.fugly.Template(e);return t.context(\"window\",chaordic.window),t},chaordic.getLocalStorage=function(){var e=\"test_\"+(new Date).getTime();try{return localStorage.setItem(e,e),localStorage.removeItem(e),localStorage}catch(t){return null}},chaordic.isHot=function(){var e=chaordic.getLocalStorage();if(e!==null){var t=e.getItem(\"chaordic_hot\");return t!==\"1\"?(e.setItem(\"chaordic_hot\",\"1\"),!1):!0}},chaordic.readCookie=m,chaordic.readCookiesMatching=g,chaordic.writeCookie=y,chaordic.deleteCookie=b,chaordic.forEach=E,chaordic.isMobile=d,chaordic.getPageSource=function(){var e=window.chaordic.meta,t=\"desktop\";return e.source&&typeof e.source==\"string\"?t=e.source:chaordic.isMobile&&(t=\"mobile\"),t},chaordic.findValueIndex=function(e,t,n){var r;for(r=0;r<e.length;r++)if(chaordic.getValueByProperty(e[r],t)===n)return r;return-1},chaordic.getValueByProperty=function(e,t){t=t.split(/\\./g);var n,r=null;for(n=0;n<t.length;n++)r=(n===0?e:r)[t[n]];return r},e.DOMAIN=document.domain,e.STATIC_API=\"v1.1.0\",e.ONSITE_API=\"v6.46.2\",e.ORGANIC_UPDATES=!0,e.NEEMU_LOAD_STRATEGY=undefined,e.NEEMU_APIKEY=undefined,e.NEEMU_SCRIPT_URL=\"//laas.neemu.com/%APIKEY%/neemu.js\",e.SLOTS=!0,e.DYNAMIC_HOST=e.DYNAMIC_HOST||\"onsite.chaordicsystems.com\",e.EVENT_HOST=\"events.chaordicsystems.com\",e.SERVER_FALLBACK_URL=\"//onsite-recs-fallback.chaordicsystems.com\",e.USE_SERVER_FALLBACK=!0,e.SERVER_FALLBACK_TIMEOUT=7e3,e.SERVER_FALLBACK_PAGES=[\"home\",\"product\"],e.MARKET_DYNAMIC_HOST=\"svr.chcmkt.com\",e.TRON=1,e.ALTERNATIVES=[],e.NO_REPEAT_RULES=[],e.THEME_URL=\"src/\",e.TRACK_EVENTS=!1,e.THEME_LANG=\"pt-br\",e.SEND_ANALYTICS=!0,e.DUMMY_RECS=!1,e.USE_EMBEDDED_LOADER=!1,e.USE_COLLECT_API=!1,e.COLLECT_API_COMPATIBILITY_ENABLED=!1,e.USE_ONE_CALL=!0,e.NEEMU_LOAD_STRATEGY===\"asap\"&&R(),chaordic.initializeCount=0,function(){if(window.$chaordic_meta){var n=\"USE_COLLECT_API\";e[n]=!1}}(),chaordic.initialize=U,I()?U():typeof chaordic.last_initialize_args!=\"undefined\"&&U.apply(this,chaordic.last_initialize_args)}()","ts":1544882764578}


