(function(e,t){'object'==typeof exports&&'object'==typeof module?module.exports=t():'function'==typeof define&&define.amd?define([],t):'object'==typeof exports?exports.vff=t():e.vff=t()})('undefined'==typeof self?this:self,function(){var e=Math.min,t=Math.floor;return function(e){function t(r){if(o[r])return o[r].exports;var a=o[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var o={};return t.m=e,t.c=o,t.d=function(e,o,r){t.o(e,o)||Object.defineProperty(e,o,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var o=e&&e.__esModule?function(){return e['default']}:function(){return e};return t.d(o,'a',o),o},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p='',t(t.s=64)}([function(e){var t=e.exports='undefined'!=typeof window&&window.Math==Math?window:'undefined'!=typeof self&&self.Math==Math?self:Function('return this')();'number'==typeof __g&&(__g=t)},function(e,t,o){var r=o(34)('wks'),a=o(22),n=o(0).Symbol,s='function'==typeof n,l=e.exports=function(e){return r[e]||(r[e]=s&&n[e]||(s?n:a)('Symbol.'+e))};l.store=r},function(e,o,r){'use strict';function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){for(var o=Object.keys(e),r=0;r<o.length;r++)if(o[r].toLowerCase()===t.toLowerCase())return o[r]}function s(e,t){return void 0===t&&(t='\\s'),e.replace(new RegExp('^['+t+']+'),'').replace(new RegExp('['+t+']+$'),'')}function l(e){return e===Object(e)&&!Array.isArray(e)&&!(e instanceof HTMLElement)}function i(e,t){for(var o in t)t[o]&&l(t[o])?(e[o]=e[o]&&l(e[o])?e[o]:{},i(e[o],t[o])):e[o]=t[o];return e}function d(e){return e&&e.toLowerCase?e.toLowerCase():e}function p(e,t,o){o=Object.assign({},v,o||{});var r=[];return e.forEach(function(e){var a=!0;for(var s in t)o.insensitive&&d(t[s])!==d(e[n(e,s)])?a=!1:o.insensitive||t[s]===e[s]||(a=!1);a&&r.push(e)}),r}function c(e){var t=e.shadowRoot,o=Array.from(e.children||[]);return t&&(o=o.concat(Array.from(t.children||[]))),o}function u(e,t,o,r){if(t.hasAttribute&&t.hasAttribute(o)&&(void 0===r||t.getAttribute(o).replace(/\[/g,'.').replace(/\]/g,'.').replace(/\.\./g,'.').replace(/\.$/,'')===r)&&e.push(t),!t.shadowRoot&&(!t.children||!t.children.length))return e;for(var a=c(t),n=0;n<a.length;n++)u(e,a[n],o,r);return e}function f(e){return e.replace(/[.*+?^$(){}|[\]\\]/g,'\\$&')}function y(){}var m=r(66),h=a(m),g=r(78),_=a(g),v={insensitive:!1};e.exports={findKey:n,trim:s,getByPath:function(e,t){t=t?s(t,'.').split('.'):[''];for(var o=e,r=0;r<t.length;r++)if(o=o[t[r]],void 0===o)return o;return o},setByPath:function(e,t,o){if(3!==arguments.length)throw new Error('Missing Arguments!');t=t?s(t,'.').split('.'):[''];for(var r=e,a=0;a<t.length;a++)if(a===t.length-1)r[t[a]]=o;else if(void 0!==r[t[a]])r=r[t[a]];else return},camelize:function(e){return e.replace(/\s(.)/g,function(e){return e.toUpperCase()}).replace(/\s/g,'').replace(/^(.)/,function(e){return e.toLowerCase()})},decamelize:function(e){return e.replace(/([A-Z])/g,' $1').trim()},uuid:function(){function e(){return t(65536*(1+Math.random())).toString(16).substring(1)}return e()+e()+e()+e()+e()+e()+e()+e()},extend:function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=t[o]);return e},deepExtend:i,deepCompare:function(){function e(t,o){if(isNaN(t)&&isNaN(o)&&'number'==typeof t&&'number'==typeof o)return!0;if(t===o)return!0;if('function'==typeof t&&'function'==typeof o||t instanceof Date&&o instanceof Date||t instanceof RegExp&&o instanceof RegExp||t instanceof String&&o instanceof String||t instanceof Number&&o instanceof Number)return t.toString()===o.toString();if(!(t instanceof Object&&o instanceof Object))return!1;if(t.isPrototypeOf(o)||o.isPrototypeOf(t))return!1;if(t.constructor!==o.constructor)return!1;if(t.prototype!==o.prototype)return!1;if(t instanceof Array&&o instanceof Array&&t.length!==o.length)return!1;if(-1<r.indexOf(t)||-1<a.indexOf(o))return!1;for(var n in t)if(!n.startsWith('_')){if(o.hasOwnProperty(n)!==t.hasOwnProperty(n))return!1;if((0,_.default)(o[n])!==(0,_.default)(t[n]))return!1;switch((0,_.default)(t[n])){case'object':case'function':if(r.push(t),a.push(o),!e(t[n],o[n]))return!1;r.pop(),a.pop();break;default:if(t[n]!==o[n])return!1;}}return!0}var t,o,r,a;if(1>arguments.length)return!0;for(t=1,o=arguments.length;t<o;t++)if(r=[],a=[],!e(arguments[0],arguments[t]))return!1;return!0},isMobile:function(){var e=!1;return function(t){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|Tablet|iPad|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||window.opera),e}(),isController:function(){try{return window.frameElement.ownerDocument.defaultView.frameElement.hasAttribute('controller')}catch(e){return!1}}(),docRef:function(e){return'https://www.videoflow.io/documentation/api/vff?id='+e},broadcast:function(e,t){document.dispatchEvent(new CustomEvent(e,{detail:t}))},on:function(e,t){document.addEventListener(e,function(o){t(o.detail)})},off:function(e,t){document.removeEventListener(e,t)},defer:function(){var e=y,t=y,o=new Promise(function(o,r){e=o,t=r});return{promise:o,resolve:e,reject:t}},noop:y,query:p,queryOne:function(e,t,o){var r=p(e,t,o);return r.length?r[0]:void 0},filter:function(e,t){var o=[];return e.forEach(function(e){t(e)&&o.push(e)}),o},getQueryParams:function(e){var t=e||location.href.split('?')[1]||location.search.substring(1);try{return JSON.parse('{"'+t.replace(/&/g,'","').replace(/=/g,'":"')+'"}',function(e,t){return''===e?t:decodeURIComponent(t)})}catch(e){return{}}},parseRJSON:function(e){return JSON.parse(e.replace(/:\s*"([^"]*)"/g,function(e,t){return': "'+t.replace(/:/g,'@colon@')+'"'}).replace(/'/g,'"').replace(/:\s*'([^']*)'/g,function(e,t){return': "'+t.replace(/:/g,'@colon@')+'"'}).replace(/(['"])?([a-z0-9A-Z_]+)(['"])?\s*:/g,'"$2": ').replace(/@colon@/g,':'))},isFunction:function(e){return!!e&&'[object Function]'==={}.toString.call(e)},isObject:l,overlaod:function(e,t,o){var r=e[t];e[t]=r?function(){return o.length==arguments.length?o.apply(this,arguments):'function'==typeof r?r.apply(this,arguments):void 0}:o},searchAttribute:function(e,t,o){return Array.isArray(e)?[].concat((0,h.default)(new Set(e.map(function(e){return u([],o||document,e,t)}).flat()))):u([],o||document,e,t)},debounce:function(e,t,o){var r;return function(){var a=this,n=arguments,s=o&&!r;clearTimeout(r),r=setTimeout(function(){r=null,o||e.apply(a,n)},t),s&&e.apply(a,n)}},flatten:function(e,t){function o(e,a){if(Object(e)!==e)r[a]=e;else if(Array.isArray(e)){var n=e.length;t&&(r[a]=e);for(var s=0;s<n;s++)o(e[s],a+'.'+s);0===n&&(r[a]=[])}else{var l=!0;for(var i in e)l=!1,t&&(r[a?a+'.'+i:i]=e[i]),o(e[i],a?a+'.'+i:i);l&&a&&(r[a]={})}}var r={};return o(e,''),r},unflatten:function(e){if(Object(e)!==e||Array.isArray(e))return e;var t,o,r,a,n,s={};for(var l in e){t=s,o='',a=0;do r=l.indexOf('.',a),n=l.substring(a,-1===r?void 0:r),t=t[o]||(t[o]=isNaN(parseInt(n))?{}:[]),o=n,a=r+1;while(0<=r);t[o]=e[l]}return s['']},format:function(e){for(var t=arguments.length,o=Array(1<t?t-1:0),r=1;r<t;r++)o[r-1]=arguments[r];return e.replace(/{(\d+)}/g,function(e,t){return'undefined'==typeof o[t]?e:o[t]})},unformat:function(e,t){var o=new RegExp(f(t).replace(/\\{(\d+)\\}/g,'(.*)')),r=e.match(o);if(r&&1<r.length)return r[1]},loadScript:function(e){var t=document.createElement('script');t.src=e,document.head.appendChild(t)},loadStyle:function(e){var t=document.createElement('link');t.rel='stylesheet',t.href=e,document.head.appendChild(t)}}},function(e){var t=e.exports={version:'2.6.11'};'number'==typeof __e&&(__e=t)},function(e){'use strict';e.exports={READY:'taco-ready',GO:'taco-go',CROP:'vff-crop',TRANSFORM:'vff-transform',UPLOAD:'vff-upload-asset',UPLOAD_ASSET:'vff-upload',AUDIO_TRACK:'vff-audio-track',NEXT:'taco-next',PREV:'taco-previous',ADD:'taco-addtemplate',UPDATE:'taco-update',PAGES:'taco-pages',USER_UPDATE:'taco-user-update',QUERY_PARAMS:'taco-query-params',OUTGOING_EVENT:'taco-event-sent',VFF_EVENT:'taco-event-received',ACK:'taco-ack',TRACK_EVENT:'vff-track-event',RELOAD:'vff-reload',VF_DATA:'vff-vf-data',VF_SETUP:'vff-vf-setup',VF_APPS:'vff-vf-apps',DATA_READY:'vff-data-ready',CUSTOM_READY:'vff-custom-ready',PLAYER_STATUS:'vff-player-status',VIDEO_PLAYING:'vff-video-playing',VIDEO_STARTED:'vff-video-started',VIDEO_PAUSED:'vff-video-paused',VIDEO_TIME_UPDATE:'vff-time-update',DEVICE_CHANGE:'vff-device-change',MODE_CHANGE:'vff-mode-change',INTERACTION:'vff-interaction',TOUCH:'taco-touch-element',MOUSE_MOVE:'taco-mouse-move',BUBBLE_UP:'taco-bubble-up',PAGES_UPDATE:'vff-pages-update'}},function(e,t,o){var r=o(6),a=o(43),n=o(30),s=Object.defineProperty;t.f=o(7)?Object.defineProperty:function(e,t,o){if(r(e),t=n(t,!0),r(o),a)try{return s(e,t,o)}catch(t){}if('get'in o||'set'in o)throw TypeError('Accessors not supported!');return'value'in o&&(e[t]=o.value),e}},function(e,t,o){var r=o(11);e.exports=function(e){if(!r(e))throw TypeError(e+' is not an object!');return e}},function(e,t,o){e.exports=!o(21)(function(){return 7!=Object.defineProperty({},'a',{get:function(){return 7}}).a})},function(e,t,o){'use strict';(function(t){function r(e){var o=n||t.window;o&&o.parent&&o.parent.postMessage(JSON.stringify(e),'*')}var a=o(2),n=n||t.window;e.exports={send:function(e,t){r({type:e,payload:t})},request:function(e,t,o){var s=(0,a.uuid)();t._rid=s;var l,i=function(e){e=JSON.parse(e.data),e.payload&&e.payload._rid===s&&(d(),o(e))},d=function(){clearTimeout(l),n.removeEventListener('message',i,!1)};n.addEventListener('message',i,!1),l=setTimeout(function(){d()},2e4),r({type:e,payload:t})}}}).call(t,o(65))},function(e,t,o){var r=o(0),a=o(3),n=o(15),s=o(10),l=o(12),i='prototype',d=function(e,t,o){var p,c,u,f=e&d.F,y=e&d.G,m=e&d.S,h=e&d.P,g=e&d.B,_=e&d.W,v=y?a:a[t]||(a[t]={}),E=v[i],P=y?r:m?r[t]:(r[t]||{})[i];for(p in y&&(o=t),o)c=!f&&P&&void 0!==P[p],c&&l(v,p)||(u=c?P[p]:o[p],v[p]=y&&'function'!=typeof P[p]?o[p]:g&&c?n(u,r):_&&P[p]==u?function(e){var t=function(t,o,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,o);}return new e(t,o,r)}return e.apply(this,arguments)};return t[i]=e[i],t}(u):h&&'function'==typeof u?n(Function.call,u):u,h&&((v.virtual||(v.virtual={}))[p]=u,e&d.R&&E&&!E[p]&&s(E,p,u)))};d.F=1,d.G=2,d.S=4,d.P=8,d.B=16,d.W=32,d.U=64,d.R=128,e.exports=d},function(e,t,o){var r=o(5),a=o(16);e.exports=o(7)?function(e,t,o){return r.f(e,t,a(1,o))}:function(e,t,o){return e[t]=o,e}},function(e){e.exports=function(e){return'object'==typeof e?null!==e:'function'==typeof e}},function(e){var t={}.hasOwnProperty;e.exports=function(e,o){return t.call(e,o)}},function(e,t,o){var r=o(72),a=o(28);e.exports=function(e){return r(a(e))}},function(e){e.exports=!0},function(e,t,o){var r=o(20);e.exports=function(e,t,o){return(r(e),void 0===t)?e:1===o?function(o){return e.call(t,o)}:2===o?function(o,r){return e.call(t,o,r)}:3===o?function(o,r,a){return e.call(t,o,r,a)}:function(){return e.apply(t,arguments)}}},function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e){e.exports={}},function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},function(e,t){'use strict';t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError('Cannot call a class as a function')}},function(e){e.exports=function(e){if('function'!=typeof e)throw TypeError(e+' is not a function!');return e}},function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},function(e){var t=0,o=Math.random();e.exports=function(e){return'Symbol('.concat(e===void 0?'':e,')_',(++t+o).toString(36))}},function(e,t,o){var r=o(5).f,a=o(12),n=o(1)('toStringTag');e.exports=function(e,t,o){e&&!a(e=o?e:e.prototype,n)&&r(e,n,{configurable:!0,value:t})}},function(e,t,o){'use strict';t.__esModule=!0;var r=o(58),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(){function e(e,t){for(var o,r=0;r<t.length;r++)o=t[r],o.enumerable=o.enumerable||!1,o.configurable=!0,'value'in o&&(o.writable=!0),(0,a.default)(e,o.key,o)}return function(t,o,r){return o&&e(t.prototype,o),r&&e(t,r),t}}()},function(e,t,o){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,'__esModule',{value:!0}),t.metadata=void 0;var a=o(19),n=r(a),s=o(24),l=r(s),i=o(2),d=Symbol(),p=Symbol(),c=Symbol(),u=Symbol(),f=function(){function e(t){var o=this;(0,n.default)(this,e),this[d]=t||{},this[p]=(0,i.defer)(),this[c]=(0,i.defer)(),setTimeout(function(){o[p].reject({error:'timeout'}),o[c].reject({error:'timeout'})},3e4)}return(0,l.default)(e,[{key:'whenReady',value:function(){return this[p].promise}},{key:'appsReady',value:function(){return this[c].promise}},{key:'get',value:function(){return this[d]}},{key:'set',value:function(e){this[d]=e,this[p].resolve(e)}},{key:'setApps',value:function(e){this[u]=e,this[c].resolve(e)}},{key:'getApps',value:function(){return this[u]}}]),e}(),y=t.metadata=new f},function(e,t,o){'use strict';var r=o(69)(!0);o(42)(String,'String',function(e){this._t=e+'',this._i=0},function(){var e,t=this._t,o=this._i;return o>=t.length?{value:void 0,done:!0}:(e=r(t,o),this._i+=e.length,{value:e,done:!1})})},function(e){var o=Math.ceil;e.exports=function(e){return isNaN(e=+e)?0:(0<e?t:o)(e)}},function(e){e.exports=function(e){if(e==void 0)throw TypeError('Can\'t call method on  '+e);return e}},function(e,t,o){var r=o(11),a=o(0).document,n=r(a)&&r(a.createElement);e.exports=function(e){return n?a.createElement(e):{}}},function(e,t,o){var r=o(11);e.exports=function(e,t){if(!r(e))return e;var o,a;if(t&&'function'==typeof(o=e.toString)&&!r(a=o.call(e)))return a;if('function'==typeof(o=e.valueOf)&&!r(a=o.call(e)))return a;if(!t&&'function'==typeof(o=e.toString)&&!r(a=o.call(e)))return a;throw TypeError('Can\'t convert object to primitive value')}},function(e,t,o){var r=o(46),a=o(35);e.exports=Object.keys||function(e){return r(e,a)}},function(t,o,r){var a=r(27);t.exports=function(t){return 0<t?e(a(t),9007199254740991):0}},function(e,t,o){var r=o(34)('keys'),a=o(22);e.exports=function(e){return r[e]||(r[e]=a(e))}},function(e,t,o){var r=o(3),a=o(0),n='__core-js_shared__',s=a[n]||(a[n]={});(e.exports=function(e,t){return s[e]||(s[e]=t===void 0?{}:t)})('versions',[]).push({version:r.version,mode:o(14)?'pure':'global',copyright:'\xA9 2019 Denis Pushkarev (zloirock.ru)'})},function(e){e.exports=['constructor','hasOwnProperty','isPrototypeOf','propertyIsEnumerable','toLocaleString','toString','valueOf']},function(e,t,o){var r=o(28);e.exports=function(e){return Object(r(e))}},function(e,t,o){t.f=o(1)},function(e,t,o){var r=o(0),a=o(3),n=o(14),s=o(37),l=o(5).f;e.exports=function(e){var t=a.Symbol||(a.Symbol=n?{}:r.Symbol||{});'_'==e.charAt(0)||e in t||l(t,e,{value:s.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,o){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,'__esModule',{value:!0}),t.queryParams=void 0;var a=o(19),n=r(a),s=o(24),l=r(s),i=Symbol(),d=function(){function e(t){(0,n.default)(this,e),this[i]=t||{}}return(0,l.default)(e,[{key:'get',value:function(){return this[i]}},{key:'set',value:function(e){this[i]=e}}]),e}(),p=t.queryParams=new d},function(e,t,o){'use strict';function r(e){var t,o;this.promise=new e(function(e,r){if(t!==void 0||o!==void 0)throw TypeError('Bad Promise constructor');t=e,o=r}),this.resolve=a(t),this.reject=a(o)}var a=o(20);e.exports.f=function(e){return new r(e)}},function(e,t,o){'use strict';var r=o(14),a=o(9),n=o(44),s=o(10),l=o(17),i=o(70),d=o(23),p=o(75),c=o(1)('iterator'),u=!([].keys&&'next'in[].keys()),f='keys',y='values',m=function(){return this};e.exports=function(e,t,o,h,g,_,v){i(o,t,h);var E,P,x,T=function(e){return!u&&e in A?A[e]:e===f?function(){return new o(this,e)}:e===y?function(){return new o(this,e)}:function(){return new o(this,e)}},S=t+' Iterator',O=g==y,b=!1,A=e.prototype,k=A[c]||A['@@iterator']||g&&A[g],R=k||T(g),L=g?O?T('entries'):R:void 0,w='Array'==t?A.entries||k:k;if(w&&(x=p(w.call(new e)),x!==Object.prototype&&x.next&&(d(x,S,!0),!r&&'function'!=typeof x[c]&&s(x,c,m))),O&&k&&k.name!==y&&(b=!0,R=function(){return k.call(this)}),(!r||v)&&(u||b||!A[c])&&s(A,c,R),l[t]=R,l[S]=m,g)if(E={values:O?R:T(y),keys:_?R:T(f),entries:L},v)for(P in E)P in A||n(A,P,E[P]);else a(a.P+a.F*(u||b),t,E);return E}},function(e,t,o){e.exports=!o(7)&&!o(21)(function(){return 7!=Object.defineProperty(o(29)('div'),'a',{get:function(){return 7}}).a})},function(e,t,o){e.exports=o(10)},function(e,t,o){var r=o(6),a=o(71),n=o(35),s=o(33)('IE_PROTO'),l=function(){},d='prototype',p=function(){var e,t=o(29)('iframe'),r=n.length,a='<',s='>';for(t.style.display='none',o(47).appendChild(t),t.src='javascript:',e=t.contentWindow.document,e.open(),e.write(a+'script'+s+'document.F=Object'+a+'/script'+s),e.close(),p=e.F;r--;)delete p[d][n[r]];return p()};e.exports=Object.create||function(e,t){var o;return null===e?o=p():(l[d]=r(e),o=new l,l[d]=null,o[s]=e),void 0===t?o:a(o,t)}},function(e,t,o){var r=o(12),a=o(13),n=o(73)(!1),s=o(33)('IE_PROTO');e.exports=function(e,t){var o,l=a(e),d=0,i=[];for(o in l)o!=s&&r(l,o)&&i.push(o);for(;t.length>d;)r(l,o=t[d++])&&(~n(i,o)||i.push(o));return i}},function(e,t,o){var r=o(0).document;e.exports=r&&r.documentElement},function(e,t,o){var r=o(6);e.exports=function(t,e,o,a){try{return a?e(r(o)[0],o[1]):e(o)}catch(o){var n=t['return'];throw void 0!==n&&r(n.call(t)),o}}},function(e,t,o){var r=o(17),a=o(1)('iterator'),n=Array.prototype;e.exports=function(e){return e!==void 0&&(r.Array===e||n[a]===e)}},function(e,t,o){var r=o(51),a=o(1)('iterator'),n=o(17);e.exports=o(3).getIteratorMethod=function(e){if(e!=void 0)return e[a]||e['@@iterator']||n[r(e)]}},function(e,t,o){var r=o(18),a=o(1)('toStringTag'),n='Arguments'==r(function(){return arguments}()),s=function(e,t){try{return e[t]}catch(t){}};e.exports=function(e){var t,o,l;return e===void 0?'Undefined':null===e?'Null':'string'==typeof(o=s(t=Object(e),a))?o:n?r(t):'Object'==(l=r(t))&&'function'==typeof t.callee?'Arguments':l}},function(e,t,o){var r=o(1)('iterator'),a=!1;try{var n=[7][r]();n['return']=function(){a=!0},Array.from(n,function(){throw 2})}catch(t){}e.exports=function(e,t){if(!t&&!a)return!1;var o=!1;try{var n=[7],s=n[r]();s.next=function(){return{done:o=!0}},n[r]=function(){return s},e(n)}catch(t){}return o}},function(e,t,o){o(81);for(var r=o(0),a=o(10),n=o(17),s=o(1)('toStringTag'),l='CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList'.split(','),d=0;d<l.length;d++){var i=l[d],p=r[i],c=p&&p.prototype;c&&!c[s]&&a(c,s,i),n[i]=n.Array}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,o){var r=o(46),a=o(35).concat('length','prototype');t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},function(){},function(e,t,o){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,'__esModule',{value:!0}),t.vffState=void 0;var a=o(95),n=r(a),s=o(19),l=r(s),i=o(24),d=r(i),p=o(2),c=o(8),u=o(4),f=o(98),y=r(f),m={get:function(e,t){return e[t]},set:function(e,t,o){var r='--'+t.replace(/([A-Z])/g,function(e){return'-'+e[0].toLowerCase()});return document.documentElement.style.setProperty(r,o),e[t]=o,!0}},h=['__style'],g=function(){function e(){(0,l.default)(this,e);this.data={},this.data.__style=new Proxy({},m)}return(0,d.default)(e,[{key:'style',value:function(){return this.data.__style}},{key:'copy',value:function(){JSON.parse(JSON.stringify(this.data))}},{key:'_update',value:function(e){var t=this,o=Object.keys(e).filter(function(e){return 0>h.indexOf(e)}).reduce(function(t,o){return Object.assign(t,(0,n.default)({},o,e[o]))},{});Object.assign(this.data,o),h.forEach(function(o){Object.assign(t.data[o],e[o])})}},{key:'add',value:function(e,t){this.data[e]=t}},{key:'remove',value:function(e){delete this.data[e]}},{key:'get',value:function(e){return this.data[e]}},{key:'extend',value:function(e){for(var t in e)this.add(t,e[t])}},{key:'has',value:function(e){return this.data.hasOwnProperty(e)}},{key:'reset',value:function(){for(var e in this.data)this.data.hasOwnProperty(e)&&delete this.data[e];this.data={}}},{key:'sync',value:function(){console.log('SYNC')}},{key:'take',value:function(e){console.log('TAKE'),(0,c.send)('vff-state',{data:this.data,path:e})}},{key:'upload',value:function(e,t){(0,c.request)(u.UPLOAD_ASSET,{asset:{name:e.name,type:e.type}},function(e){t(e.payload)})}},{key:'on',value:function(t,o,r){(0,p.isFunction)(t)&&(r=o,o=t,t=''),(0,p.on)(u.VFF_EVENT+t.toLowerCase(),function(a){var n=new y.default({timecode:a.timecode,changed:a.dataChanged,data:a.data,oldVal:a.oldVal,options:r,namespace:t});o(n)})}}]),e}(),_=t.vffState=new g},function(e,t,o){e.exports={default:o(96),__esModule:!0}},function(e,t,o){var r=o(6),a=o(20),n=o(1)('species');e.exports=function(e,t){var o,s=r(e).constructor;return s===void 0||(o=r(s)[n])==void 0?t:a(o)}},function(e,t,o){var r,a,n,s=o(15),l=o(111),i=o(47),d=o(29),p=o(0),c=p.process,u=p.setImmediate,f=p.clearImmediate,y=p.MessageChannel,m=p.Dispatch,h=0,g={},_='onreadystatechange',v=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},E=function(e){v.call(e.data)};u&&f||(u=function(e){for(var t=[],o=1;arguments.length>o;)t.push(arguments[o++]);return g[++h]=function(){l('function'==typeof e?e:Function(e),t)},r(h),h},f=function(e){delete g[e]},'process'==o(18)(c)?r=function(e){c.nextTick(s(v,e,1))}:m&&m.now?r=function(e){m.now(s(v,e,1))}:y?(a=new y,n=a.port2,a.port1.onmessage=E,r=s(n.postMessage,n,1)):p.addEventListener&&'function'==typeof postMessage&&!p.importScripts?(r=function(e){p.postMessage(e+'','*')},p.addEventListener('message',E,!1)):_ in d('script')?r=function(e){i.appendChild(d('script'))[_]=function(){i.removeChild(this),v.call(e)}}:r=function(e){setTimeout(s(v,e,1),0)}),e.exports={set:u,clear:f}},function(e){e.exports=function(e){try{return{e:!1,v:e()}}catch(t){return{e:!0,v:t}}}},function(e,t,o){var r=o(6),a=o(11),n=o(41);e.exports=function(e,t){if(r(e),a(t)&&t.constructor===e)return t;var o=n.f(e),s=o.resolve;return s(t),o.promise}},function(e){'use strict';function t(e){r=document.createElement('style'),r.textContent=e,r.id=a}function o(){r&&!document.getElementById(a)&&document.head.append(r)}var r=void 0,a='vf-custom-style';e.exports={createStyle:t,showStyle:o,hideStyle:function(){try{document.getElementById(a).remove()}catch(t){}}}},function(e,t,o){'use strict';function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}var a=o(8),n=o(94),s=o(4),l=o(57),i=o(40),d=o(99),p=o(125),c=o(126),u=o(2),f=o(128),y=r(f),m=o(129),h=r(m),g=o(130),_=o(131),v=r(_),E=o(132),P=o(133),x=r(P),T=o(134),S=o(25);(0,d.start)(),window.addEventListener('load',function(){(0,p.init)(),(0,c.bindSyncEvents)(window),u.isMobile?window.document.body.classList.add('vff-mobile'):window.document.body.classList.remove('vff-mobile'),(0,a.send)(s.READY)});var O=[],b={};b.ready=function(e){O.push(e)},b.onReady=function(){O.forEach(function(e){e()})},b.customReady=function(){(0,a.send)(s.CUSTOM_READY)},b.getQueryParams=function(){return i.queryParams.get()},b.getApps=function(){return S.metadata.appsReady().then(function(){return S.metadata.getApps()})},b.request=function(e,t,o){(0,a.request)(e,t,o)},b.setup=function(e){return(0,n.setup)(e)},b.isMobile=u.isMobile,b.isController=function(){return b.mode===E.MODE.PREVIEW||b.mode===E.MODE.PROGRAM},b.mode=E.MODE.NORMAL,b.MODE=E.MODE,b.defer=u.defer,b.extend=function(e,t){b[e]=t},b.uuid=(0,u.uuid)(),b.enableOverscroll=function(){x.disable()},b.disableOverscroll=function(){x.enable()},(0,u.extend)(b,h),(0,u.extend)(b,y),b._playerStatus={},b.onModeChange=function(e){(0,u.on)(s.MODE_CHANGE,e)},b.onDeviceChange=function(e){(0,u.on)(s.DEVICE_CHANGE,e)},b.colorpicker=function(e,t){(0,T.colorPicker)(e,t)},b.state=l.vffState.data,b.send=function(e){return l.vffState.take(e)},b.style=l.vffState.style(),b.onStateChange=function(e,t,o){return l.vffState.on(e,t,o)},b.upload=function(e,t){return l.vffState.upload(e,t)},b.extend('video',g.api),b.extend('http',v),e.exports=b},function(e){var t=function(){return this}();try{t=t||Function('return this')()||(1,eval)('this')}catch(o){'object'==typeof window&&(t=window)}e.exports=t},function(e,t,o){'use strict';t.__esModule=!0;var r=o(67),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){if(Array.isArray(e)){for(var t=0,o=Array(e.length);t<e.length;t++)o[t]=e[t];return o}return(0,a.default)(e)}},function(e,t,o){e.exports={default:o(68),__esModule:!0}},function(e,t,o){o(26),o(76),e.exports=o(3).Array.from},function(e,t,o){var r=o(27),n=o(28);e.exports=function(e){return function(t,o){var d,a,p=n(t)+'',s=r(o),i=p.length;return 0>s||s>=i?e?'':void 0:(d=p.charCodeAt(s),55296>d||56319<d||s+1===i||56320>(a=p.charCodeAt(s+1))||57343<a?e?p.charAt(s):d:e?p.slice(s,s+2):(d-55296<<10)+(a-56320)+65536)}}},function(e,t,o){'use strict';var r=o(45),a=o(16),n=o(23),s={};o(10)(s,o(1)('iterator'),function(){return this}),e.exports=function(e,t,o){e.prototype=r(s,{next:a(1,o)}),n(e,t+' Iterator')}},function(e,t,o){var r=o(5),a=o(6),n=o(31);e.exports=o(7)?Object.defineProperties:function(e,t){a(e);for(var o,s=n(t),l=s.length,d=0;l>d;)r.f(e,o=s[d++],t[o]);return e}},function(e,t,o){var r=o(18);e.exports=Object('z').propertyIsEnumerable(0)?Object:function(e){return'String'==r(e)?e.split(''):Object(e)}},function(e,t,o){var r=o(13),a=o(32),n=o(74);e.exports=function(e){return function(t,o,s){var l,i=r(t),d=a(i.length),p=n(s,d);if(e&&o!=o){for(;d>p;)if(l=i[p++],l!=l)return!0;}else for(;d>p;p++)if((e||p in i)&&i[p]===o)return e||p||0;return!e&&-1}}},function(t,o,r){var a=r(27),n=Math.max;t.exports=function(t,o){return t=a(t),0>t?n(t+o,0):e(t,o)}},function(e,t,o){var r=o(12),a=o(36),n=o(33)('IE_PROTO'),s=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=a(e),r(e,n)?e[n]:'function'==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?s:null}},function(e,t,o){'use strict';var r=o(15),a=o(9),n=o(36),s=o(48),l=o(49),i=o(32),d=o(77),p=o(50);a(a.S+a.F*!o(52)(function(e){Array.from(e)}),'Array',{from:function(e){var t,o,a,c,u=n(e),f='function'==typeof this?this:Array,y=arguments.length,m=1<y?arguments[1]:void 0,h=void 0!==m,g=0,_=p(u);if(h&&(m=r(m,2<y?arguments[2]:void 0,2)),void 0!=_&&!(f==Array&&l(_)))for(c=_.call(u),o=new f;!(a=c.next()).done;g++)d(o,g,h?s(c,m,[a.value,g],!0):a.value);else for(t=i(u.length),o=new f(t);t>g;g++)d(o,g,h?m(u[g],g):u[g]);return o.length=g,o}})},function(e,t,o){'use strict';var r=o(5),a=o(16);e.exports=function(e,t,o){t in e?r.f(e,t,a(0,o)):e[t]=o}},function(e,t,o){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var a=o(79),n=r(a),s=o(84),l=r(s),i='function'==typeof l.default&&'symbol'==typeof n.default?function(e){return typeof e}:function(e){return e&&'function'==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?'symbol':typeof e};t.default='function'==typeof l.default&&'symbol'===i(n.default)?function(e){return'undefined'==typeof e?'undefined':i(e)}:function(e){return e&&'function'==typeof l.default&&e.constructor===l.default&&e!==l.default.prototype?'symbol':'undefined'==typeof e?'undefined':i(e)}},function(e,t,o){e.exports={default:o(80),__esModule:!0}},function(e,t,o){o(26),o(53),e.exports=o(37).f('iterator')},function(e,t,o){'use strict';var r=o(82),a=o(83),n=o(17),s=o(13);e.exports=o(42)(Array,'Array',function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,o=this._i++;return!e||o>=e.length?(this._t=void 0,a(1)):'keys'==t?a(0,o):'values'==t?a(0,e[o]):a(0,[o,e[o]])},'values'),n.Arguments=n.Array,r('keys'),r('values'),r('entries')},function(e){e.exports=function(){}},function(e){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,o){e.exports={default:o(85),__esModule:!0}},function(e,t,o){o(86),o(56),o(92),o(93),e.exports=o(3).Symbol},function(e,t,o){'use strict';var r=o(0),a=o(12),n=o(7),s=o(9),l=o(44),d=o(87).KEY,i=o(21),p=o(34),c=o(23),u=o(22),f=o(1),y=o(37),m=o(38),h=o(88),g=o(89),_=o(6),v=o(11),E=o(36),x=o(13),P=o(30),T=o(16),S=o(45),O=o(90),b=o(91),A=o(54),R=o(5),L=o(31),w=b.f,M=R.f,D=O.f,C=r.Symbol,I=r.JSON,N=I&&I.stringify,Y='prototype',F=f('_hidden'),V=f('toPrimitive'),G={}.propertyIsEnumerable,U=p('symbol-registry'),B=p('symbols'),H=p('op-symbols'),X=Object[Y],K='function'==typeof C&&!!A.f,q=r.QObject,W=!q||!q[Y]||!q[Y].findChild,z=n&&i(function(){return 7!=S(M({},'a',{get:function(){return M(this,'a',{value:7}).a}})).a})?function(e,t,o){var r=w(X,t);r&&delete X[t],M(e,t,o),r&&e!==X&&M(X,t,r)}:M,J=function(e){var t=B[e]=S(C[Y]);return t._k=e,t},Q=K&&'symbol'==typeof C.iterator?function(e){return'symbol'==typeof e}:function(e){return e instanceof C},$=function(e,t,o){return e===X&&$(H,t,o),_(e),t=P(t,!0),_(o),a(B,t)?(o.enumerable?(a(e,F)&&e[F][t]&&(e[F][t]=!1),o=S(o,{enumerable:T(0,!1)})):(!a(e,F)&&M(e,F,T(1,{})),e[F][t]=!0),z(e,t,o)):M(e,t,o)},Z=function(e,t){_(e);for(var o,r=h(t=x(t)),a=0,n=r.length;n>a;)$(e,o=r[a++],t[o]);return e},ee=function(e){var t=G.call(this,e=P(e,!0));return(this!==X||!a(B,e)||a(H,e))&&(!(t||!a(this,e)||!a(B,e)||a(this,F)&&this[F][e])||t)},te=function(e,t){if(e=x(e),t=P(t,!0),e!==X||!a(B,t)||a(H,t)){var o=w(e,t);return o&&a(B,t)&&!(a(e,F)&&e[F][t])&&(o.enumerable=!0),o}},oe=function(e){for(var t,o=D(x(e)),r=[],n=0;o.length>n;)a(B,t=o[n++])||t==F||t==d||r.push(t);return r},re=function(e){for(var t,o=e===X,r=D(o?H:x(e)),n=[],s=0;r.length>s;)a(B,t=r[s++])&&(!o||a(X,t))&&n.push(B[t]);return n};K||(C=function(){if(this instanceof C)throw TypeError('Symbol is not a constructor!');var e=u(0<arguments.length?arguments[0]:void 0),t=function(o){this===X&&t.call(H,o),a(this,F)&&a(this[F],e)&&(this[F][e]=!1),z(this,e,T(1,o))};return n&&W&&z(X,e,{configurable:!0,set:t}),J(e)},l(C[Y],'toString',function(){return this._k}),b.f=te,R.f=$,o(55).f=O.f=oe,o(39).f=ee,A.f=re,n&&!o(14)&&l(X,'propertyIsEnumerable',ee,!0),y.f=function(e){return J(f(e))}),s(s.G+s.W+s.F*!K,{Symbol:C});for(var ae=['hasInstance','isConcatSpreadable','iterator','match','replace','search','species','split','toPrimitive','toStringTag','unscopables'],ne=0;ae.length>ne;)f(ae[ne++]);for(var j=L(f.store),se=0;j.length>se;)m(j[se++]);s(s.S+s.F*!K,'Symbol',{for:function(e){return a(U,e+='')?U[e]:U[e]=C(e)},keyFor:function(e){if(!Q(e))throw TypeError(e+' is not a symbol!');for(var t in U)if(U[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!K,'Object',{create:function(e,t){return t===void 0?S(e):Z(S(e),t)},defineProperty:$,defineProperties:Z,getOwnPropertyDescriptor:te,getOwnPropertyNames:oe,getOwnPropertySymbols:re});var k=i(function(){A.f(1)});s(s.S+s.F*k,'Object',{getOwnPropertySymbols:function(e){return A.f(E(e))}}),I&&s(s.S+s.F*(!K||i(function(){var e=C();return'[null]'!=N([e])||'{}'!=N({a:e})||'{}'!=N(Object(e))})),'JSON',{stringify:function(e){for(var t,o,r=[e],a=1;arguments.length>a;)r.push(arguments[a++]);if(o=t=r[1],(v(t)||void 0!==e)&&!Q(e))return g(t)||(t=function(e,t){if('function'==typeof o&&(t=o.call(this,e,t)),!Q(t))return t}),r[1]=t,N.apply(I,r)}}),C[Y][V]||o(10)(C[Y],V,C[Y].valueOf),c(C,'Symbol'),c(Math,'Math',!0),c(r.JSON,'JSON',!0)},function(e,t,o){var r=o(22)('meta'),a=o(11),n=o(12),s=o(5).f,l=0,i=Object.isExtensible||function(){return!0},d=!o(21)(function(){return i(Object.preventExtensions({}))}),p=function(e){s(e,r,{value:{i:'O'+ ++l,w:{}}})},c=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!a(e))return'symbol'==typeof e?e:('string'==typeof e?'S':'P')+e;if(!n(e,r)){if(!i(e))return'F';if(!t)return'E';p(e)}return e[r].i},getWeak:function(e,t){if(!n(e,r)){if(!i(e))return!0;if(!t)return!1;p(e)}return e[r].w},onFreeze:function(e){return d&&c.NEED&&i(e)&&!n(e,r)&&p(e),e}}},function(e,t,o){var r=o(31),a=o(54),n=o(39);e.exports=function(e){var t=r(e),o=a.f;if(o)for(var s,l=o(e),d=n.f,p=0;l.length>p;)d.call(e,s=l[p++])&&t.push(s);return t}},function(e,t,o){var r=o(18);e.exports=Array.isArray||function(e){return'Array'==r(e)}},function(e,t,o){var r=o(13),a=o(55).f,n={}.toString,s='object'==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],l=function(e){try{return a(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&'[object Window]'==n.call(e)?l(e):a(r(e))}},function(e,t,o){var r=o(39),a=o(16),n=o(13),s=o(30),l=o(12),i=o(43),d=Object.getOwnPropertyDescriptor;t.f=o(7)?d:function(e,t){if(e=n(e),t=s(t,!0),i)try{return d(e,t)}catch(t){}return l(e,t)?a(!r.f.call(e,t),e[t]):void 0}},function(e,t,o){o(38)('asyncIterator')},function(e,t,o){o(38)('observable')},function(e,t,o){'use strict';var r=o(8),a=o(4);e.exports={setup:function(e){e&&(0,r.send)(a.VF_SETUP,e)}}},function(e,t,o){'use strict';t.__esModule=!0;var r=o(58),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t,o){return t in e?(0,a.default)(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}},function(e,t,o){o(97);var r=o(3).Object;e.exports=function(e,t,o){return r.defineProperty(e,t,o)}},function(e,t,o){var r=o(9);r(r.S+r.F*!o(7),'Object',{defineProperty:o(5).f})},function(e,t,o){'use strict';Object.defineProperty(t,'__esModule',{value:!0});var r=o(19),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function e(t){(0,a.default)(this,e),Object.assign(this,t)}},function(e,t,o){'use strict';function r(e){try{var t=JSON.parse(e.data),o=t.type,r=n[o];if(t.cid&&e.source&&e.source.postMessage){var a={type:s.ACK,cid:t.cid};e.source.postMessage(JSON.stringify(a),'*')}r&&r(t.payload)}catch(e){}}var a=o(100),n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t.default=e,t}(a),s=o(4);e.exports={start:function(){window&&window.addEventListener&&window.addEventListener('message',r,!1)}}},function(e,t,o){'use strict';var r=o(101),a=o(118),n=o(120),s=o(121),l=o(122),i=o(123),d=o(124),p=o(4),c={};c['vff-update']=function(t){(0,r.update)(t.event.data)},c[p.VF_APPS]=s.apps,c[p.PAGES]=a.pages,c[p.QUERY_PARAMS]=n.queryParams,c[p.RELOAD]=l.reload,c[p.VF_DATA]=i.handleVFData,c[p.DEVICE_CHANGE]=d.deviceChange,c[p.PLAYER_STATUS]=d.playerStatus,c[p.MODE_CHANGE]=d.modeChange,e.exports=c},function(e,t,o){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}var a=o(102),n=r(a),s=o(105),l=r(s),i=function(){var e=(0,l.default)(n.default.mark(function e(t){var o,r,a,s;return n.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:for(a in o=JSON.parse(JSON.stringify(p.vffState.data||{})),p.vffState._update(t),r=(0,d.flatten)(p.vffState.data,!0),r)s=(0,d.deepCompare)(r[a],(0,d.getByPath)(o,a)),(0,d.broadcast)(c.VFF_EVENT+a.toLowerCase(),{dataChanged:!s,data:r[a]});(0,d.broadcast)(c.VFF_EVENT,{dataChanged:!0,data:p.vffState.data,oldVal:o});case 5:case'end':return e.stop();}},e,this)}));return function(){return e.apply(this,arguments)}}(),d=o(2),p=o(57),c=o(4);e.exports={update:i}},function(e,t,o){e.exports=o(103)},function(e,t,o){var r=function(){return this}()||Function('return this')(),a=r.regeneratorRuntime&&0<=Object.getOwnPropertyNames(r).indexOf('regeneratorRuntime'),n=a&&r.regeneratorRuntime;if(r.regeneratorRuntime=void 0,e.exports=o(104),a)r.regeneratorRuntime=n;else try{delete r.regeneratorRuntime}catch(t){r.regeneratorRuntime=void 0}},function(e){!function(t){'use strict';function o(e,t,o,r){var n=t&&t.prototype instanceof a?t:a,s=Object.create(n.prototype),l=new f(r||[]);return s._invoke=d(e,o,l),s}function r(e,t,o){try{return{type:'normal',arg:e.call(t,o)}}catch(e){return{type:'throw',arg:e}}}function a(){}function n(){}function s(){}function l(e){['next','throw','return'].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function i(e){function t(o,a,n,s){var l=r(e[o],e,a);if('throw'===l.type)s(l.arg);else{var i=l.arg,d=i.value;return d&&'object'==typeof d&&g.call(d,'__await')?Promise.resolve(d.__await).then(function(e){t('next',e,n,s)},function(e){t('throw',e,n,s)}):Promise.resolve(d).then(function(e){i.value=e,n(i)},s)}}function o(e,o){function r(){return new Promise(function(r,a){t(e,o,r,a)})}return a=a?a.then(r,r):r()}var a;this._invoke=o}function d(e,t,o){var a=S;return function(n,s){if(a===b)throw new Error('Generator is already running');if(a===A){if('throw'===n)throw s;return m()}for(o.method=n,o.arg=s;;){var l=o.delegate;if(l){var i=p(l,o);if(i){if(i===k)continue;return i}}if('next'===o.method)o.sent=o._sent=o.arg;else if('throw'===o.method){if(a===S)throw a=A,o.arg;o.dispatchException(o.arg)}else'return'===o.method&&o.abrupt('return',o.arg);a=b;var d=r(e,t,o);if('normal'===d.type){if(a=o.done?A:O,d.arg===k)continue;return{value:d.arg,done:o.done}}'throw'===d.type&&(a=A,o.method='throw',o.arg=d.arg)}}}function p(e,t){var o=e.iterator[t.method];if(void 0===o){if(t.delegate=null,'throw'===t.method){if(e.iterator.return&&(t.method='return',t.arg=void 0,p(e,t),'throw'===t.method))return k;t.method='throw',t.arg=new TypeError('The iterator does not provide a \'throw\' method')}return k}var a=r(o,e.iterator,t.arg);if('throw'===a.type)return t.method='throw',t.arg=a.arg,t.delegate=null,k;var n=a.arg;if(!n)return t.method='throw',t.arg=new TypeError('iterator result is not an object'),t.delegate=null,k;if(n.done)t[e.resultName]=n.value,t.next=e.nextLoc,'return'!==t.method&&(t.method='next',t.arg=void 0);else return n;return t.delegate=null,k}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 u(e){var t=e.completion||{};t.type='normal',delete t.arg,e.completion=t}function f(e){this.tryEntries=[{tryLoc:'root'}],e.forEach(c,this),this.reset(!0)}function y(e){if(e){var t=e[v];if(t)return t.call(e);if('function'==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(g.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:m}}function m(){return{value:void 0,done:!0}}var h=Object.prototype,g=h.hasOwnProperty,_='function'==typeof Symbol?Symbol:{},v=_.iterator||'@@iterator',E=_.asyncIterator||'@@asyncIterator',P=_.toStringTag||'@@toStringTag',x='object'==typeof e,T=t.regeneratorRuntime;if(T)return void(x&&(e.exports=T));T=t.regeneratorRuntime=x?e.exports:{},T.wrap=o;var S='suspendedStart',O='suspendedYield',b='executing',A='completed',k={},R={};R[v]=function(){return this};var L=Object.getPrototypeOf,w=L&&L(L(y([])));w&&w!==h&&g.call(w,v)&&(R=w);var M=s.prototype=a.prototype=Object.create(R);n.prototype=M.constructor=s,s.constructor=n,s[P]=n.displayName='GeneratorFunction',T.isGeneratorFunction=function(e){var t='function'==typeof e&&e.constructor;return!!t&&(t===n||'GeneratorFunction'===(t.displayName||t.name))},T.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,!(P in e)&&(e[P]='GeneratorFunction')),e.prototype=Object.create(M),e},T.awrap=function(e){return{__await:e}},l(i.prototype),i.prototype[E]=function(){return this},T.AsyncIterator=i,T.async=function(e,t,r,a){var n=new i(o(e,t,r,a));return T.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},l(M),M[P]='Generator',M[v]=function(){return this},M.toString=function(){return'[object Generator]'},T.keys=function(e){var t=[];for(var o in e)t.push(o);return t.reverse(),function o(){for(;t.length;){var r=t.pop();if(r in e)return o.value=r,o.done=!1,o}return o.done=!0,o}},T.values=y,f.prototype={constructor:f,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method='next',this.arg=void 0,this.tryEntries.forEach(u),!e)for(var t in this)'t'===t.charAt(0)&&g.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if('throw'===t.type)throw t.arg;return this.rval},dispatchException:function(e){function t(t,r){return n.type='throw',n.arg=e,o.next=t,r&&(o.method='next',o.arg=void 0),!!r}if(this.done)throw e;for(var o=this,r=this.tryEntries.length-1;0<=r;--r){var a=this.tryEntries[r],n=a.completion;if('root'===a.tryLoc)return t('end');if(a.tryLoc<=this.prev){var s=g.call(a,'catchLoc'),l=g.call(a,'finallyLoc');if(s&&l){if(this.prev<a.catchLoc)return t(a.catchLoc,!0);if(this.prev<a.finallyLoc)return t(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return t(a.catchLoc,!0);}else if(!l)throw new Error('try statement without catch or finally');else if(this.prev<a.finallyLoc)return t(a.finallyLoc)}}},abrupt:function(e,t){for(var o,r=this.tryEntries.length-1;0<=r;--r)if(o=this.tryEntries[r],o.tryLoc<=this.prev&&g.call(o,'finallyLoc')&&this.prev<o.finallyLoc){var a=o;break}a&&('break'===e||'continue'===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var n=a?a.completion:{};return n.type=e,n.arg=t,a?(this.method='next',this.next=a.finallyLoc,k):this.complete(n)},complete:function(e,t){if('throw'===e.type)throw e.arg;return'break'===e.type||'continue'===e.type?this.next=e.arg:'return'===e.type?(this.rval=this.arg=e.arg,this.method='return',this.next='end'):'normal'===e.type&&t&&(this.next=t),k},finish:function(e){for(var t,o=this.tryEntries.length-1;0<=o;--o)if(t=this.tryEntries[o],t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),u(t),k},catch:function(e){for(var t,o=this.tryEntries.length-1;0<=o;--o)if(t=this.tryEntries[o],t.tryLoc===e){var r=t.completion;if('throw'===r.type){var a=r.arg;u(t)}return a}throw new Error('illegal catch attempt')},delegateYield:function(e,t,o){return this.delegate={iterator:y(e),resultName:t,nextLoc:o},'next'===this.method&&(this.arg=void 0),k}}}(function(){return this}()||Function('return this')())},function(e,t,o){'use strict';t.__esModule=!0;var r=o(106),a=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e){return function(){var t=e.apply(this,arguments);return new a.default(function(e,o){function r(n,s){try{var l=t[n](s),i=l.value}catch(e){return void o(e)}return l.done?void e(i):a.default.resolve(i).then(function(e){r('next',e)},function(e){r('throw',e)})}return r('next')})}}},function(e,t,o){e.exports={default:o(107),__esModule:!0}},function(e,t,o){o(56),o(26),o(53),o(108),o(116),o(117),e.exports=o(3).Promise},function(e,t,o){'use strict';var r,a,n,s,l=o(14),i=o(0),d=o(15),p=o(51),c=o(9),u=o(11),f=o(20),y=o(109),m=o(110),h=o(59),g=o(60).set,_=o(112)(),v=o(41),E=o(61),P=o(113),T=o(62),x='Promise',S=i.TypeError,O=i.process,b=O&&O.versions,A=b&&b.v8||'',k=i[x],R='process'==p(O),L=function(){},w=a=v.f,M=!!function(){try{var e=k.resolve(1),t=(e.constructor={})[o(1)('species')]=function(e){e(L,L)};return(R||'function'==typeof PromiseRejectionEvent)&&e.then(L)instanceof t&&0!==A.indexOf('6.6')&&-1===P.indexOf('Chrome/66')}catch(t){}}(),D=function(e){var t;return!!(u(e)&&'function'==typeof(t=e.then))&&t},C=function(e,t){if(!e._n){e._n=!0;var o=e._c;_(function(){for(var r=e._v,a=1==e._s,n=0,s=function(t){var o,n,s,l=a?t.ok:t.fail,i=t.resolve,d=t.reject,p=t.domain;try{l?(!a&&(2==e._h&&Y(e),e._h=1),!0===l?o=r:(p&&p.enter(),o=l(r),p&&(p.exit(),s=!0)),o===t.promise?d(S('Promise-chain cycle')):(n=D(o))?n.call(o,i,d):i(o)):d(r)}catch(t){p&&!s&&p.exit(),d(t)}};o.length>n;)s(o[n++]);e._c=[],e._n=!1,t&&!e._h&&I(e)})}},I=function(e){g.call(i,function(){var t,o,r,a=e._v,n=N(e);if(n&&(t=E(function(){R?O.emit('unhandledRejection',a,e):(o=i.onunhandledrejection)?o({promise:e,reason:a}):(r=i.console)&&r.error&&r.error('Unhandled promise rejection',a)}),e._h=R||N(e)?2:1),e._a=void 0,n&&t.e)throw t.v})},N=function(e){return 1!==e._h&&0===(e._a||e._c).length},Y=function(e){g.call(i,function(){var t;R?O.emit('rejectionHandled',e):(t=i.onrejectionhandled)&&t({promise:e,reason:e._v})})},F=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,!t._a&&(t._a=t._c.slice()),C(t,!0))},j=function(e){var t,o=this;if(!o._d){o._d=!0,o=o._w||o;try{if(o===e)throw S('Promise can\'t be resolved itself');(t=D(e))?_(function(){var r={_w:o,_d:!1};try{t.call(e,d(j,r,1),d(F,r,1))}catch(t){F.call(r,t)}}):(o._v=e,o._s=1,C(o,!1))}catch(t){F.call({_w:o,_d:!1},t)}}};M||(k=function(e){y(this,k,x,'_h'),f(e),r.call(this);try{e(d(j,this,1),d(F,this,1))}catch(e){F.call(this,e)}},r=function(){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=o(114)(k.prototype,{then:function(e,t){var o=w(h(this,k));return o.ok='function'!=typeof e||e,o.fail='function'==typeof t&&t,o.domain=R?O.domain:void 0,this._c.push(o),this._a&&this._a.push(o),this._s&&C(this,!1),o.promise},catch:function(e){return this.then(void 0,e)}}),n=function(){var e=new r;this.promise=e,this.resolve=d(j,e,1),this.reject=d(F,e,1)},v.f=w=function(e){return e===k||e===s?new n(e):a(e)}),c(c.G+c.W+c.F*!M,{Promise:k}),o(23)(k,x),o(115)(x),s=o(3)[x],c(c.S+c.F*!M,x,{reject:function(e){var t=w(this),o=t.reject;return o(e),t.promise}}),c(c.S+c.F*(l||!M),x,{resolve:function(e){return T(l&&this===s?k:this,e)}}),c(c.S+c.F*!(M&&o(52)(function(e){k.all(e)['catch'](L)})),x,{all:function(e){var t=this,o=w(t),r=o.resolve,a=o.reject,n=E(function(){var o=[],n=0,s=1;m(e,!1,function(e){var l=n++,i=!1;o.push(void 0),s++,t.resolve(e).then(function(e){i||(i=!0,o[l]=e,--s||r(o))},a)}),--s||r(o)});return n.e&&a(n.v),o.promise},race:function(e){var t=this,o=w(t),r=o.reject,a=E(function(){m(e,!1,function(e){t.resolve(e).then(o.resolve,r)})});return a.e&&r(a.v),o.promise}})},function(e){e.exports=function(e,t,o,r){if(!(e instanceof t)||r!==void 0&&r in e)throw TypeError(o+': incorrect invocation!');return e}},function(e,t,o){var r=o(15),a=o(48),n=o(49),s=o(6),l=o(32),i=o(50),d={},p={},t=e.exports=function(e,t,o,c,u){var y,m,h,g,_=u?function(){return e}:i(e),v=r(o,c,t?2:1),f=0;if('function'!=typeof _)throw TypeError(e+' is not iterable!');if(n(_)){for(y=l(e.length);y>f;f++)if(g=t?v(s(m=e[f])[0],m[1]):v(e[f]),g===d||g===p)return g;}else for(h=_.call(e);!(m=h.next()).done;)if(g=a(h,v,m.value,t),g===d||g===p)return g};t.BREAK=d,t.RETURN=p},function(e){e.exports=function(e,t,o){var r=o===void 0;switch(t.length){case 0:return r?e():e.call(o);case 1:return r?e(t[0]):e.call(o,t[0]);case 2:return r?e(t[0],t[1]):e.call(o,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(o,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(o,t[0],t[1],t[2],t[3]);}return e.apply(o,t)}},function(e,t,o){var r=o(0),a=o(60).set,n=r.MutationObserver||r.WebKitMutationObserver,s=r.process,l=r.Promise,i='process'==o(18)(s);e.exports=function(){var t,o,d,e=function(){var e,r;for(i&&(e=s.domain)&&e.exit();t;){r=t.fn,t=t.next;try{r()}catch(r){throw t?d():o=void 0,r}}o=void 0,e&&e.enter()};if(i)d=function(){s.nextTick(e)};else if(n&&!(r.navigator&&r.navigator.standalone)){var p=!0,c=document.createTextNode('');new n(e).observe(c,{characterData:!0}),d=function(){c.data=p=!p}}else if(l&&l.resolve){var u=l.resolve(void 0);d=function(){u.then(e)}}else d=function(){a.call(r,e)};return function(e){var r={fn:e,next:void 0};o&&(o.next=r),t||(t=r,d()),o=r}}},function(e,t,o){var r=o(0),a=r.navigator;e.exports=a&&a.userAgent||''},function(e,t,o){var r=o(10);e.exports=function(e,t,o){for(var a in t)o&&e[a]?e[a]=t[a]:r(e,a,t[a]);return e}},function(e,t,o){'use strict';var r=o(0),a=o(3),n=o(5),s=o(7),l=o(1)('species');e.exports=function(e){var t='function'==typeof a[e]?a[e]:r[e];s&&t&&!t[l]&&n.f(t,l,{configurable:!0,get:function(){return this}})}},function(e,t,o){'use strict';var r=o(9),a=o(3),n=o(0),s=o(59),l=o(62);r(r.P+r.R,'Promise',{finally:function(t){var o=s(this,a.Promise||n.Promise),e='function'==typeof t;return this.then(e?function(e){return l(o,t()).then(function(){return e})}:t,e?function(r){return l(o,t()).then(function(){throw r})}:t)}})},function(e,t,o){'use strict';var r=o(9),a=o(41),n=o(61);r(r.S,'Promise',{try:function(e){var t=a.f(this),o=n(e);return(o.e?t.reject:t.resolve)(o.v),t.promise}})},function(e,t,o){'use strict';var r=o(119);e.exports={pages:function(e){r.pages.set(e)}}},function(e,t,o){'use strict';function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,'__esModule',{value:!0}),t.pages=void 0;var a=o(19),n=r(a),s=o(24),l=r(s),i=Symbol(),d=function(){function e(t){(0,n.default)(this,e),this[i]=t||[]}return(0,l.default)(e,[{key:'get',value:function(){return this[i]}},{key:'set',value:function(e){this[i]=e}}]),e}(),p=t.pages=new d},function(e,t,o){'use strict';var r=o(40);e.exports={queryParams:function(e){r.queryParams.set(e)}}},function(e,t,o){'use strict';var r=o(25);e.exports={apps:function(e){r.metadata.setApps(e.apps)}}},function(e){'use strict';e.exports={reload:function(e){(e||window).location.reload()}}},function(e,t,o){'use strict';var r=o(25),a=o(63);e.exports={handleVFData:function(e){r.metadata.set(e.input),e.mode&&(window.vff.mode=e.mode),e.customCss&&((0,a.createStyle)(e.customCss),!window.vff.isController()&&(0,a.showStyle)()),window.vff.onReady()}}},function(e,t,o){'use strict';var r=o(2),a=o(4),n=o(63);e.exports={deviceChange:function(e){window.vff.isMobile='mobile'===e.device,window.vff.isMobile?window.document.body.classList.add('vff-mobile'):window.document.body.classList.remove('vff-mobile'),(0,r.broadcast)(a.DEVICE_CHANGE)},playerStatus:function(e){window.vff._playerStatus&&e.timecode===window.vff._playerStatus.timecode||(0,r.broadcast)(a.VIDEO_TIME_UPDATE,e.timecode),window.vff._playerStatus=e},modeChange:function(e){window.vff.mode=e.mode,(0,r.broadcast)(a.MODE_CHANGE,e.mode),window.vff.isController()?(0,n.hideStyle)():(0,n.showStyle)()}}},function(e,t,o){'use strict';function r(){var e=window.innerWidth>window.innerHeight?'landscape':'portrait',t=window.screen.orientation&&0<=window.screen.orientation.type.indexOf('portrait')||'portrait'===e?'Portrait':'Landscape';return t}function a(){var e='',t='';try{e=window.vff._playerStatus['overlaySizing'+(n.isMobile?r():'')],t=window.vff._playerStatus['contentSizing'+(n.isMobile?r():'')]}catch(t){}Object.values(s).forEach(function(e){window.document.body.classList.remove(e)}),window.document.body.classList.add(s['overlay-'+e]),window.document.body.classList.add(s['video-'+t])}var n=o(2),s={"overlay-fill":'vff-overlay-fill',"overlay-fit":'vff-overlay-fit',"video-fit":'vff-video-fit',"video-fill":'vff-video-fill',"video-fitTop":'vff-video-fit-top',"video-fitBottom":'vff-video-fit-bottom'};e.exports={init:function(){window.addEventListener('resize',function(){a()}),a()}}},function(e,t,o){'use strict';function r(e){if(!e)return e;for(var t=[],o=0;o<e.length;o++){var r=e[o],a={clientX:r.clientX,clientY:r.clientY,pageX:r.pageX,pageY:r.pageY};t.push(a)}return t}function a(t){if(!(t.ctrlKey&&t.metaKey&&t.altKey&&t.shiftKey)){var e={};e['__'+t.type+'__']={pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,deltaX:t.deltaX,deltaY:t.deltaY,deltaZ:t.deltaZ,deltaMode:t.deltaMode,target:(0,l.createXPathFromElement)(t.target),touches:r(t.touches),targetTouches:r(t.targetTouches),changedTouches:r(t.changedTouches)},(0,i.send)(d.INTERACTION,e)}}function n(e,t){return e.changedTouches=s(e.changedTouches,t),e.targetTouches=s(e.targetTouches,t),e.touches=s(e.touches,t),e}function s(e,t){return e.map(function(e){return e.identifier=Date.now(),e.target=t,new Touch(e)})}var l=o(127),i=o(8),d=o(4),p=['__mouseup__','__mousedown__','__mousemove__','__mouseover__','__mouseout__','__mouseenter__','__mouseleave__','__click__','__dblclick__','__touchstart__','__touchend__','__touchmove__','__drag__','__dragstart__','__dragend__','__dragover__','__dragenter__','__dragleave__','__dragexit__','__drop__','__wheel__'];e.exports={sync:a,events:p,bindSyncEvents:function(e){p.forEach(function(t){t=t.replace(/__/g,''),e.addEventListener(t,a,!0)})},isInteractionEvent:function(e){return-1<p.indexOf(e)},dispatchEvent:function(e,t){var o;o=-1<['__click__'].indexOf(e)?document.elementFromPoint(t.pageX,t.pageY):(0,l.lookupElementByXPath)(t.target),t.bubbles=!0,t.cancelable=!0,t.ctrlKey=t.metaKey=t.altKey=t.shiftKey=!0,t.view=window,o?-1<['__touchstart__','__touchend__','__touchmove__'].indexOf(e)?o.dispatchEvent(new TouchEvent(e.slice(2,-2),n(t,o))):'__wheel__'===e?o.dispatchEvent(new WheelEvent(e.slice(2,-2),t)):o.dispatchEvent(new MouseEvent(e.slice(2,-2),t)):window.console.log('cannot find target:',t.target)}}},function(e){'use strict';function t(e){for(;e;){if('svg'===e.tagName)return!0;e=e.parentNode}}e.exports={createXPathFromElement:function(e){var o=document.getElementsByTagName('*'),r=void 0,a=void 0,s=void 0,l=void 0;for(r=[];e&&1==e.nodeType;e=e.parentNode)if(l=t(e),e.hasAttribute('id')&!l){for(var i=0,d=0;d<o.length&&(o[d].hasAttribute('id')&&o[d].id==e.id&&i++,!(1<i));d++);if(1==i)return r.unshift('id("'+e.getAttribute('id')+'")'),r.join('/');r.unshift(e.localName.toLowerCase()+'[@id="'+e.getAttribute('id')+'"]')}else if(e.hasAttribute('class')&&!l)r.unshift(e.localName.toLowerCase()+'[@class="'+e.getAttribute('class')+'"]');else{for(s=1,a=e.previousSibling;a;a=a.previousSibling)a.localName==e.localName&&s++;l?r.unshift('*[name()=\''+e.localName.toLowerCase()+'\']['+s+']'):r.unshift(e.localName.toLowerCase()+'['+s+']')}return r.length?'/'+r.join('/'):null},lookupElementByXPath:function(e){if(e){var t=new XPathEvaluator,o=t.evaluate(e,document.documentElement,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null);return o.singleNodeValue}},getElementByXpath:function(e){return document.evaluate(e,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}}},function(e,t,o){'use strict';var r=o(4),a=o(8),n=o(40);e.exports={track:function(e,t){var o={};o.name=e,o.data=t,o.query=n.queryParams.get(),(0,a.send)(r.TRACK_EVENT,o)}}},function(e,t,o){'use strict';function r(e,t,o,r){if(e===void 0)throw new Error('vff.crop incorrect usage, please pass width, height, top and left values');else void 0===r&&(r=o),(0,n.send)(s.CROP,void 0===t?{crop:e}:{top:e,left:t,width:o,height:r})}function a(e,t,o,r,a,l,i,d,p){var c=!0,u=!1,f=void 0;try{for(var y,m,h=arguments[Symbol.iterator]();!(c=(y=h.next()).done);c=!0)if(m=y.value,void 0===m)throw new Error('vff.transform incorrect usage, please pass fromTopLeftX, fromTopLeftY, fromBottomRightX, fromBottomRightY, toTopLeftX, toTopLeftY, toBottomRightX and toBottomRightY values')}catch(e){u=!0,f=e}finally{try{!c&&h.return&&h.return()}finally{if(u)throw f}}(0,n.send)(s.TRANSFORM,{fromTopLeftX:e,fromTopLeftY:t,fromBottomRightX:o,fromBottomRightY:r,toTopLeftX:a,toTopLeftY:l,toBottomRightX:i,toBottomRightY:d,options:p})}var n=o(8),s=o(4),l=o(2),i={};(0,l.overlaod)(i,'transform',function(){a()}),(0,l.overlaod)(i,'transform',function(e,t,o,r){a(e,t,o,r,0,0,1,1,{})}),(0,l.overlaod)(i,'transform',function(e,t,o,r,n){a(e,t,o,r,0,0,1,1,n)}),(0,l.overlaod)(i,'transform',function(e,t,o,r,n,s,l,i){a(e,t,o,r,n,s,l,i,{})}),(0,l.overlaod)(i,'transform',function(e,t,o,r,n,s,l,i,d){a(e,t,o,r,n,s,l,i,d)}),e.exports={go:function(e,t){(0,n.send)(s.GO,{target:e,time:t})},crop:r,transform:i.transform,audioTrack:function(e){(0,n.send)(s.AUDIO_TRACK,e)},videoTransform:r,next:l.noop,previous:l.noop,home:l.noop}},function(e,t,o){'use strict';var r=o(8),a=o(2),n=o(4),s=o(25),l={};Object.defineProperty(l,'currentTime',{get:function(){return window.vff._playerStatus.timecode}}),Object.defineProperty(l,'src',{get:function(){return window.vff._playerStatus.src}}),Object.defineProperty(l,'duration',{get:function(){return window.vff._playerStatus.duration}}),Object.defineProperty(l,'paused',{get:function(){return window.vff._playerStatus.paused}}),Object.defineProperty(l,'muted',{get:function(){return window.vff._playerStatus.muted}}),l.play=function(){(0,r.send)('vff-play')},l.pause=function(){(0,r.send)('vff-pause')},l.goTo=function(e){(0,r.send)('vff-video-go',{time:e})},l.onTimeUpdate=function(e){(0,a.on)(n.VIDEO_TIME_UPDATE,e)},l.getInfo=function(){return s.metadata.whenReady().then(function(){return s.metadata.get()})},e.exports={api:l}},function(e,t,o){'use strict';var r=o(2);e.exports={get:function(e,t){var o=(0,r.defer)(),a=new XMLHttpRequest;return a.onreadystatechange=function(){4==a.readyState&&(200==a.status?(t&&t(a.responseText),o.resolve(a.responseText)):o.reject(a.status))},a.open('GET',e,!0),a.send(null),o.promise}}},function(e){'use strict';e.exports={EXPOSE_DELIMITER:' ',NAMESPACE_DELIMITER:'.',DEFAULT_GROUP_NAME:'untitled template',TIMECODE:'__timecode__',UI:{MULTISELECT:'multiselect',DROPDOWN:'dropdown',RADIO:'radio',RANGE:'range'},ATTRIBUTE:{CONTROL:'vff-control',BIND:'vff-bind',OPTIONS:'vff-options',EXPOSE:'vff-expose',CONTROLLER:'vff-controller',DATA:'vff-data',STYLE:'vff-style',SELECTION:'vff-select-from',SUFFIX:'vff-suffix',FORMAT:'vff-format'},MODE:{NORMAL:'normal',PREVIEW:'controller-preview',PROGRAM:'controller-program'}}},function(e){'use strict';(function(){var t=0,o=!1,r=!1;try{var a=Object.defineProperty({},'passive',{get:function(){r=!0}});window.addEventListener('test',null,a)}catch(t){}var n=function(e){var o=e.target,r=window.innerWidth/window.document.documentElement.clientWidth;if(!(1<e.touches.length||1!=r)){for(;o!==document.body&&o!==document;){var a=window.getComputedStyle(o);if(!a)break;if('INPUT'===o.nodeName&&'range'===o.getAttribute('type'))return;var n=a.getPropertyValue('overflow-y'),s=parseInt(a.getPropertyValue('height'),10),l=o.scrollHeight>o.offsetHeight;if(('auto'===n||'scroll'===n)&&l){var i=e.touches?e.touches[0].screenY:e.screenY,d=t<=i&&0===o.scrollTop,p=t>=i&&o.scrollHeight-o.scrollTop===s;return void((d||p)&&e.preventDefault())}o=o.parentNode}e.preventDefault()}},s=function(e){t=e.touches?e.touches[0].screenY:e.screenY},l=function(){p&&(window.addEventListener('touchstart',s,!!r&&{passive:!1}),window.addEventListener('touchmove',n,!!r&&{passive:!1}),o=!0)},i=function(){return o},d=document.createElement('div');document.documentElement.appendChild(d),d.style.WebkitOverflowScrolling='touch';var p='getComputedStyle'in window&&'touch'===window.getComputedStyle(d)['-webkit-overflow-scrolling'];document.documentElement.removeChild(d);'undefined'!=typeof e&&e.exports&&(e.exports={enable:l,disable:function(){window.removeEventListener('touchstart',s,!1),window.removeEventListener('touchmove',n,!1),o=!1},isEnabled:i})})()},function(e,t,o){'use strict';var r=o(2);(0,r.loadStyle)('https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/themes/nano.min.css'),(0,r.loadScript)('https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.min.js'),(0,r.loadScript)('https://cdn.jsdelivr.net/npm/@simonwep/pickr/dist/pickr.es5.min.js'),e.exports={colorPicker:function(e,t){window.Pickr.create({el:e,theme:'nano',default:t.default||'#00ff00',comparison:!1,components:{preview:!0,opacity:!0,hue:!0,interaction:{input:!0}}}).on('init',function(e){t.onInit&&t.onInit(e)}).on('change',function(e,o){t.onChange&&t.onChange(e,o)})}}}])});