try{/*!For license information please see ezVideoPlayer.js.LICENSE.txt*/var ezVideoPlayer;!function(){var e={61:function(e,t,n){var i=n(698).default;function r(){"use strict";e.exports=r=function(){return n},e.exports.__esModule=!0,e.exports.default=e.exports;var t,n={},o=Object.prototype,a=o.hasOwnProperty,l=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},d=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function p(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,n){return e[t]=n}}function f(e,t,n,i){var r=t&&t.prototype instanceof w?t:w,o=Object.create(r.prototype),a=new T(i||[]);return l(o,"_invoke",{value:z(e,n,a)}),o}function h(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}n.wrap=f;var m="suspendedStart",y="suspendedYield",v="executing",g="completed",b={};function w(){}function x(){}function I(){}var P={};p(P,d,(function(){return this}));var E=Object.getPrototypeOf,k=E&&E(E(j([])));k&&k!==o&&a.call(k,d)&&(P=k);var A=I.prototype=w.prototype=Object.create(P);function S(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function L(e,t){function n(r,o,l,s){var d=h(e[r],e,o);if("throw"!==d.type){var c=d.arg,u=c.value;return u&&"object"==i(u)&&a.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,l,s)}),(function(e){n("throw",e,l,s)})):t.resolve(u).then((function(e){c.value=e,l(c)}),(function(e){return n("throw",e,l,s)}))}s(d.arg)}var r;l(this,"_invoke",{value:function(e,i){function o(){return new t((function(t,r){n(e,i,t,r)}))}return r=r?r.then(o,o):o()}})}function z(e,n,i){var r=m;return function(o,a){if(r===v)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw a;return{value:t,done:!0}}for(i.method=o,i.arg=a;;){var l=i.delegate;if(l){var s=V(l,i);if(s){if(s===b)continue;return s}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===m)throw r=g,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=v;var d=h(e,n,i);if("normal"===d.type){if(r=i.done?g:y,d.arg===b)continue;return{value:d.arg,done:i.done}}"throw"===d.type&&(r=g,i.method="throw",i.arg=d.arg)}}}function V(e,n){var i=n.method,r=e.iterator[i];if(r===t)return n.delegate=null,"throw"===i&&e.iterator.return&&(n.method="return",n.arg=t,V(e,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),b;var o=h(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,b;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,b):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function j(e){if(e||""===e){var n=e[d];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function n(){for(;++r=0;--r){var o=this.tryEntries[r],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),d=a.call(o,"finallyLoc");if(s&&d){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&a.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;_(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,i){return this.delegate={iterator:j(e),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=t),b}},n}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:function(e,t,n){var i=n(61)();e.exports=i;try{regeneratorRuntime=i}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var o=t[i]={exports:{}};return e[i](o,o.exports,n),o.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};!function(){"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function r(e,n){for(var i=0;ie.length)&&(t=e.length);for(var n=0,i=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:null;a.remove(),a.srcObject=null,clearTimeout(d),e({result:t,error:n})},void 0!==s?s.then((function(){return c(!0)})).catch((function(e){return c(!1,e)})):c(!0)}))}var P={audio:function(e){return I(e=x(e),(function(){return{element:document.createElement("audio"),source:URL.createObjectURL(b)}}))},video:function(e){return I(e=x(e),(function(){return{element:document.createElement("video"),source:URL.createObjectURL(w)}}))}};function E(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?k(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n450)return!1;if("none"!==t.backgroundImage)return!0;e=e.parentElement}return!1},c=function(){if(window.EzoicMagicPlayerInclusionSelectors)for(var e=0;e= "+p+"px and fold position >= "+i+"px");var g,w=E(e);try{for(w.s();!(g=w.n()).done;){var x=g.value,I=x.getBoundingClientRect();x.hasAttribute("data-ezhumixplayerlocation")&&(I.width=p),!(I.top>=i&&I.width>=p&&I.top.33*t&&o.top<500&&!b(e)&&!v(e)){n.push(e);for(var l=0;le&&(e=c.width,d=r[o])}return Y("magic: content width is",e,d),e},r=function(e){return"URLSearchParams"in window&&new URLSearchParams(window.location.search).get(e)||null},i=function(){d(),c();var e=null,t=9999999999,n=R;h()&&(n=q);var i=document.querySelectorAll(".ez-video-placeholder-marker, [data-ezhumixplayerlocation]"),o=window.EzoicPreferredLocation||1;Y("magic: preferredViewports",o=r("ez_magic_viewports")||o);var a=window.innerHeight*o,s=Math.max(document.documentElement.scrollHeight,document.documentElement.offsetHeight,document.body.scrollHeight);a>s&&(Y("magic: the document is too short for the preferred height, placing at the end of the document"),a=s-200),Y("magic: preferredHeight",a,"window.innerHeight",window.innerHeight,"pageHeight",s,"preferredViewports",o);var u=a-.5*n,p=a+n*(1+o),f=g(l(i,e,t,u),2);if(e=f[0],t=f[1],!e||t>p){var m=g(l(document.querySelectorAll("body *"),e,t,u),2);e=m[0],t=m[1]}else Y("magic: Found publisher placeholder that is good enough");return Y("magic: found location. Will be placed at: element",e,"which has top position of:",t,"and needs to be below:",u),e},(n=document.createElement("span")).className="humix-universal-js-insert",n.style="display: block;padding:30px 0px;text-align:center;margin:0 auto;max-width:768px",P=!1,P=I()){e.next=27;break}return e.next=25,we(300);case 25:Y("magic: trying to place below fold again"),P=I();case 27:return e.abrupt("return",P);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function $(e){return J.apply(this,arguments)}function J(){return(J=c(p().mark((function e(t){var n,i,r,o,a,l,s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=document.querySelectorAll('[id^="humix-vid-"]'),i=0;case 2:if(!(ia&&h()&&(s=a),Array.prototype.slice.call(document.querySelectorAll(".humix-universal-js-insert > .ez-video-wrap > .ez-video-center")).forEach((function(e){e.classList.contains("ez-playlist-vertical")||(e.style.maxWidth=s+"px")})),e.abrupt("return",!0);case 32:case"end":return e.stop()}var d}),e)})))).apply(this,arguments)}function X(e){if(!(e instanceof Element))throw new Error("Invalid input: not a DOM element");for(var t=e;t.parentElement;){var n=t.parentElement;if(n.clientHeight=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){l=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(l)throw o}}}}function Z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=200&&i.status<300?t(i.responseText):n(i.statusText)},i.onerror=function(){n(i.statusText)},i.send(null)}))}function re(){try{google.ima}catch(e){return ee("google.ima not found, ads will not load"),!1}return!!__ez.vhb||(ee("ez.vhb not found, ads will not load"),!1)}function oe(e,t,n,i){var r=!1,o=!1;n&&(r=n.autoplay_allowed,o=n.autoplay_allowed_muted),e.video_position_id=t.VideoPlaceholderId,e.is_autoplay=t.IsAutoPlay&&(r||o),e.is_floating=t.IsFloating,e.player_id=t.PlayerId,e.ads_enabled=t.AdsEnabled,e.play_outstream=t.playOutstream,void 0===i?(e.ezVideoId=t.VideoContentId,e.title=ce(t.VideoTitle),e.video_length=t.VideoDurationMs):(e.ezVideoId=i.VideoContentId,e.title=ce(i.Title),e.video_length=i.VideoDurationMs)}function ae(e){var t=null,n=e.VideoChapters;if(n&&n.Chapters&&n.EndTimes&&n.StartTimes&&n.Chapters.length>0&&n.Chapters.length==n.StartTimes.length&&n.StartTimes.length==n.EndTimes.length){var i=Pe(n);if(!i)return t;t={durations:i.durations,texts:i.texts}}return t}function le(e,t){var n=[],i={};i.error_description=t,e&&void 0!==e.ezVideoImpressionId?i.video_impression_id=e.ezVideoImpressionId:i.video_impression_id="00000000-eeee-0000-eeee-000000000000",e&&(e.ezErrorState=!0),i.pageview_id="undefined"!=typeof _ezaq&&_ezaq.page_view_id,n.push(i),(new Image).src=(window._ez_send_requests_through_ezoic||window.hasOwnProperty("ezIntType")&&"wp"===window.ezIntType||window._ez_sa?"https://g.ezoic.net":window.location.protocol+"//"+document.location.hostname)+"/detroitchicago/ved.gif?e="+encodeURIComponent(JSON.stringify(n))}function se(e,t,n){if(ee("Setting up captions plugin for VideoPositionId =",t.VideoPlaceholderId),t.isPlaylist)var i=t.VideoPlaylist,r={isPlaylist:t.isPlaylist,srcs:i.Videos.map((function(e){for(var t in e.Captions)e.Captions[t].startsWith("/")&&(e.Captions[t]="https://video-streaming.ezoic.com"+e.Captions[t]);return e.Captions}))},o={isPlaylist:t.isPlaylist,srcs:i.Videos.map((function(e){return e.VideoLinksSrc}))};else(r={isPlaylist:t.isPlaylist,srcs:[t.Captions]}).srcs.forEach((function(e){for(var t in e)e[t].startsWith("/")&&(e[t]="https://video-streaming.ezoic.com"+e[t])})),o={isPlaylist:t.isPlaylist,srcs:[t.VideoLinksSrc]};var a=o.srcs.map((function(e){return e?ie(e).catch((function(e){return""})):Promise.resolve("")})),l=r.srcs.map((function(e){var t=[];for(var n in e)t.push({lang:n,url:e[n]});return Promise.all(t.map((function(e){var t=e.lang,n=e.url;return n?ie(n).then((function(e){return{lang:t,data:e}})).catch((function(e){return{}})):Promise.resolve({})})))}));Promise.all([Promise.all(a),Promise.all(l)]).then((function(e){var t,n=g(e,2),i=n[0],r=n[1],o=function(e){return e?"data:text/vtt;base64,"+btoa(unescape(encodeURIComponent(e))):""},a=i.map(o),l=[],s=K(r);try{for(s.s();!(t=s.n()).done;){var d,c=t.value,u={},p=K(c);try{for(p.s();!(d=p.n()).done;){var f=d.value,h=f.lang,m=f.data;h&&m&&(u[h]=o(m))}}catch(e){p.e(e)}finally{p.f()}l.push(u)}}catch(e){s.e(e)}finally{s.f()}return[a,l]})).then((function(i){var r=g(i,2),a=r[0],l=r[1],s=a;o.isPlaylist||(s=a[0]);var d=l;o.isPlaylist||(d=l[0]);var c="ez-video-links-"+t.PlayerId;e.vttLinks({src:s,el:document.getElementById(c),onclick:function(e,t){n&&n.handleClickLink&&n.handleClickLink(e,t)},caption:d})}))}function de(e,t,n){var i,r,o,a,l;ee("Setting up sharing plugin for VideoPositionId =",t.VideoPlaceholderId);var s=new URL(window.location.href);window.location.href.includes("/video/ezoic/view")?(i=t.VideoContentId,r=ce(t.VideoTitle)):(s.hash="ezoic-pub-video-placeholder-"+t.VideoPlaceholderId,void 0===n?(i=t.VideoContentId,r=ce(t.VideoTitle),o=ce(t.VideoDescription),a=t.PreviewURL,s.searchParams.set("ez_vid",i)):(i=(l=e.videos[n]).VideoContentId,r=ce(l.Title),o=ce(l.Description),a=l.PreviewImage,s.searchParams.set("ez_vid",i),s.searchParams.set("ez_vpid",t.VideoPlaceholderId),s.searchParams.set("ez_vpi",n)));var d={socials:["fbButton","tw","reddit","email","telegram","whatsapp","pinterest"],url:"https://www.humix.com/video/"+i,title:"Video Title Not Set"!==r?r:"",description:o,image:a,embedCode:"