@afp/data-driven-video-ui
Advanced tools
Comparing version 1.1.11 to 1.2.0
@@ -1,2 +0,2 @@ | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["dataDrivenVideoUi"]=t(require("vue")):e["dataDrivenVideoUi"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",m=function(){return this};e.exports=function(e,t,n,g,y,b,w){c(n,t,g);var _,x,$,S=function(e){if(!d&&e in C)return C[e];switch(e){case h:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",j=y==v,L=!1,C=e.prototype,k=C[f]||C[p]||y&&C[y],M=k||S(y),P=y?j?S("entries"):M:void 0,A="Array"==t&&C.entries||k;if(A&&($=l(A.call(new e)),$!==Object.prototype&&$.next&&(u($,O,!0),r||"function"==typeof $[f]||a($,f,m))),j&&k&&k.name!==v&&(L=!0,M=function(){return k.call(this)}),r&&!w||!d&&!L&&C[f]||a(C,f,M),s[t]=M,s[O]=m,y)if(_={values:j?M:S(v),keys:b?M:S(h),entries:P},w)for(x in _)x in C||o(C,x,_[x]);else i(i.P+i.F*(d||L),t,_);return _}},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var v,m,g=o(t),y=i(g),b=r(s,h,3),w=a(y.length),_=0,x=n?p(t,w):c?p(t,0):void 0;w>_;_++)if((d||_ in y)&&(v=y[_],m=b(v,_,g),e))if(n)x[_]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:x.push(v)}else if(l)return!1;return f?-1:u||l?l:x}}},"0bed":function(e,t,n){},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"1d9f":function(e,t,n){"use strict";var r=n("97ab"),i=n.n(r);i.a},"1eb2":function(e,t,n){var r;"undefined"!==typeof window&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]))},"214f":function(e,t,n){"use strict";var r=n("32e9"),i=n("2aba"),o=n("79e5"),a=n("be13"),s=n("2b4c");e.exports=function(e,t,n){var c=s(e),u=n(a,c,""[e]),l=u[0],f=u[1];o(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),r(RegExp.prototype,c,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s="toString",c=Function[s],u=(""+c).split(s);n("8378").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"416b":function(e,t,n){"use strict";var r=n("9b8f"),i=n.n(r);i.a},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(e){return i(r(e))}})},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"497a":function(e,t,n){"use strict";var r=n("4caa"),i=n.n(r);i.a},"49d1":function(e,t,n){"use strict";var r=n("53bf"),i=n.n(r);i.a},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4caa":function(e,t,n){},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53bf":function(e,t,n){},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"5a0c":function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",o="week",a="month",s="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,u=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},d={padStart:f,padZoneStr:function(e){var t=Math.abs(e),n=Math.floor(t/60),r=t%60;return(e<=0?"+":"-")+f(n,2,"0")+":"+f(r,2,"0")},monthDiff:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months"),i=t-r<0,o=e.clone().add(n+(i?-1:1),"months");return Number(-(n+(t-r)/(i?r-o:o-r)))},absFloor:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},prettyUnit:function(c){return{M:a,y:s,w:o,d:i,h:r,m:n,s:t,ms:e}[c]||String(c||"").toLowerCase().replace(/s$/,"")},isUndefined:function(e){return void 0===e}},p="en",h={};h[p]=l;var v=function(e){return e instanceof w},m=function(e,t,n){var r;if(!e)return null;if("string"==typeof e)h[e]&&(r=e),t&&(h[e]=t,r=e);else{var i=e.name;h[i]=e,r=i}return n||(p=r),r},g=function(e,t){if(v(e))return e.clone();var n=t||{};return n.date=e,new w(n)},y=function(e,t){return g(e,{locale:t.$L})},b=d;b.parseLocale=m,b.isDayjs=v,b.wrapper=y;var w=function(){function l(e){this.parse(e)}var f=l.prototype;return f.parse=function(e){var t,n;this.$d=null===(t=e.date)?new Date(NaN):b.isUndefined(t)?new Date:t instanceof Date?t:"string"==typeof t&&/.*[^Z]$/i.test(t)&&(n=t.match(c))?new Date(n[1],n[2]-1,n[3]||1,n[5]||0,n[6]||0,n[7]||0,n[8]||0):new Date(t),this.init(e)},f.init=function(e){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||m(e.locale,null,!0)||p},f.$utils=function(){return b},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.$compare=function(e){return this.valueOf()-g(e).valueOf()},f.isSame=function(e){return 0===this.$compare(e)},f.isBefore=function(e){return this.$compare(e)<0},f.isAfter=function(e){return this.$compare(e)>0},f.year=function(){return this.$y},f.month=function(){return this.$M},f.day=function(){return this.$W},f.date=function(){return this.$D},f.hour=function(){return this.$H},f.minute=function(){return this.$m},f.second=function(){return this.$s},f.millisecond=function(){return this.$ms},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,c){var u=this,l=!!b.isUndefined(c)||c,f=function(e,t){var n=y(new Date(u.$y,t,e),u);return l?n:n.endOf(i)},d=function(e,t){return y(u.toDate()[e].apply(u.toDate(),l?[0,0,0,0].slice(t):[23,59,59,999].slice(t)),u)};switch(b.prettyUnit(e)){case s:return l?f(1,0):f(31,11);case a:return l?f(1,this.$M):f(0,this.$M+1);case o:return f(l?this.$D-this.$W:this.$D+(6-this.$W),this.$M);case i:case"date":return d("setHours",0);case r:return d("setMinutes",1);case n:return d("setSeconds",2);case t:return d("setMilliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(o,c){switch(b.prettyUnit(o)){case i:this.$d.setDate(this.$D+(c-this.$W));break;case"date":this.$d.setDate(c);break;case a:this.$d.setMonth(c);break;case s:this.$d.setFullYear(c);break;case r:this.$d.setHours(c);break;case n:this.$d.setMinutes(c);break;case t:this.$d.setSeconds(c);break;case e:this.$d.setMilliseconds(c)}return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.add=function(e,c){var u=this;e=Number(e);var l,f=b.prettyUnit(c),d=function(t,n){var r=u.set("date",1).set(t,n+e);return r.set("date",Math.min(u.$D,r.daysInMonth()))};if(f===a)return d(a,this.$M);if(f===s)return d(s,this.$y);switch(f){case n:l=6e4;break;case r:l=36e5;break;case i:l=864e5;break;case o:l=6048e5;break;case t:l=1e3;break;default:l=1}var p=this.valueOf()+e*l;return y(p,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,n=e||"YYYY-MM-DDTHH:mm:ssZ",r=b.padZoneStr(this.$d.getTimezoneOffset()),i=this.$locale(),o=i.weekdays,a=i.months,s=function(e,t,n,r){return e&&e[t]||n[t].substr(0,r)};return n.replace(u,function(e){if(e.indexOf("[")>-1)return e.replace(/\[|\]/g,"");switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return String(t.$y);case"M":return String(t.$M+1);case"MM":return b.padStart(t.$M+1,2,"0");case"MMM":return s(i.monthsShort,t.$M,a,3);case"MMMM":return a[t.$M];case"D":return String(t.$D);case"DD":return b.padStart(t.$D,2,"0");case"d":return String(t.$W);case"dd":return s(i.weekdaysMin,t.$W,o,2);case"ddd":return s(i.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(t.$H);case"HH":return b.padStart(t.$H,2,"0");case"h":case"hh":return 0===t.$H?12:b.padStart(t.$H<13?t.$H:t.$H-12,"hh"===e?2:1,"0");case"a":return t.$H<12?"am":"pm";case"A":return t.$H<12?"AM":"PM";case"m":return String(t.$m);case"mm":return b.padStart(t.$m,2,"0");case"s":return String(t.$s);case"ss":return b.padStart(t.$s,2,"0");case"SSS":return b.padStart(t.$ms,3,"0");case"Z":return r;default:return r.replace(":","")}})},f.diff=function(e,c,u){var l=b.prettyUnit(c),f=g(e),d=this-f,p=b.monthDiff(this,f);switch(l){case s:p/=12;break;case a:break;case"quarter":p/=3;break;case o:p=d/6048e5;break;case i:p=d/864e5;break;case r:p=d/36e5;break;case n:p=d/6e4;break;case t:p=d/1e3;break;default:p=d}return u?p:b.absFloor(p)},f.daysInMonth=function(){return this.endOf(a).$D},f.$locale=function(){return h[this.$L]},f.locale=function(e,t){var n=this.clone();return n.$L=m(e,t,!0),n},f.clone=function(){return y(this.toDate(),this)},f.toDate=function(){return new Date(this.$d)},f.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},f.toJSON=function(){return this.toISOString()},f.toISOString=function(){return this.toDate().toISOString()},f.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},f.toString=function(){return this.$d.toUTCString()},l}();return g.extend=function(e,t){return e(t,w,g),g},g.locale=m,g.isDayjs=v,g.en=h[p],g})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",u=function(e,t,n){var l,f,d,p,h=e&u.F,v=e&u.G,m=e&u.S,g=e&u.P,y=e&u.B,b=v?r:m?r[t]||(r[t]={}):(r[t]||{})[c],w=v?i:i[t]||(i[t]={}),_=w[c]||(w[c]={});for(l in v&&(n=t),n)f=!h&&b&&void 0!==b[l],d=(f?b:n)[l],p=y&&f?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,e&u.U),w[l]!=d&&o(w,l,p),g&&_[l]!=d&&(_[l]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6e9d":function(e,t,n){},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),c=Object.assign;e.exports=!c||n("79e5")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){var n=a(e),c=arguments.length,u=1,l=i.f,f=o.f;while(c>u){var d,p=s(arguments[u++]),h=l?r(p).concat(l(p)):r(p),v=h.length,m=0;while(v>m)f.call(p,d=h[m++])&&(n[d]=p[d])}return n}:c},"73ee":function(e,t,n){},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},8378:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"84ed":function(e,t,n){"use strict";var r=n("0bed"),i=n.n(r);i.a},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8bbf":function(t,n){t.exports=e},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{l=t.regeneratorRuntime=u?e.exports:{},l.wrap=w;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(A([])));y&&y!==r&&i.call(y,a)&&(m=y);var b=S.prototype=x.prototype=Object.create(m);$.prototype=b.constructor=S,S.constructor=$,S[c]=$.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===$||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},O(j.prototype),j.prototype[s]=function(){return this},l.AsyncIterator=j,l.async=function(e,t,n,r){var i=new j(w(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(M),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},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){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,o=Object.create(i.prototype),a=new P(r||[]);return o._invoke=L(e,n,a),o}function _(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function x(){}function $(){}function S(){}function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function j(e){function t(n,r,o,a){var s=_(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(u).then(function(e){c.value=e,o(c)},a)}a(s.arg)}var n;function r(e,r){function i(){return new Promise(function(n,i){t(e,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=r}function L(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return E()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=_(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}function C(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,C(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=_(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function k(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},"97ab":function(e,t,n){},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9b8f":function(e,t,n){},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e28":function(e,t,n){},a481:function(e,t,n){n("214f")("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",c=" ",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o(function(){return!!a[e]()||c[e]()!=c}),u=i[e]=s?t(d):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),d=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),v=0;v<h.length;v++){var m,g=h[v],y=p[g],b=a[g],w=b&&b.prototype;if(w&&(w[l]||s(w,l,d),w[f]||s(w,f,g),c[g]=d,y))for(m in r)w[m]||o(w,m,r[m],!0)}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,p="Number",h=r[p],v=h,m=h.prototype,g=o(n("2aeb")(m))==p,y="trim"in String.prototype,b=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():d(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,c=t.slice(2),u=0,l=c.length;u<l;u++)if(a=c.charCodeAt(u),a<48||a>i)return NaN;return parseInt(c,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(g?c(function(){m.valueOf.call(n)}):o(n)!=p)?a(new v(b(t)),n,h):b(t)};for(var w,_=n("9e1e")?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)i(v,w=_[x])&&!i(h,w)&&f(h,w,l(v,w));h.prototype=m,m.constructor=h,n("2aba")(r,p,h)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},dee8:function(e,t,n){"use strict";var r=n("9e28"),i=n.n(r);i.a},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},e977:function(e,t,n){"use strict";var r=n("73ee"),i=n.n(r);i.a},ebf2:function(e,t,n){"use strict";var r=n("6e9d"),i=n.n(r);i.a},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fae3:function(e,t,n){"use strict";n.r(t);n("1eb2");var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template"},[e.loading?n("p",[e._v("Loading •••")]):n("section",{staticClass:"wrapper"},[n("preview",{attrs:{"template-url":e.templateUrl}}),n("settingsForm",{attrs:{"specific-origin-model":e.specificOriginModel,"specific-translations-model":e.specificTranslationsModel,"locales-allowed":e.localesAllowed,"template-url":e.templateUrl},on:{validate:e.validate}}),n("results",{directives:[{name:"show",rawName:"v-show",value:e.jobs.length>0,expression:"jobs.length > 0"}],attrs:{jobs:e.jobs}})],1)])},i=[];n("7514"),n("96cf");function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e,t){try{var n=o[e](t),a=n.value}catch(e){return void i(e)}n.done?r(a):Promise.resolve(a).then(s,c)}function s(e){a("next",e)}function c(e){a("throw",e)}s()})}}var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settingsForm"},[0!==e.specificOriginModel.length?n("div",{class:["block-setting",{"on-preview":e.isOnPreview()}]},[e._m(0),e._l(e.specificOriginModel,function(t){return n("setting-form-item",{key:"settingOrigin_"+t.name,attrs:{type:t.type,name:t.type+"_"+t.name,label:t.label,"is-required":t.required}},[n("setting-input",{attrs:{name:t.type+"_"+t.name,type:t.type,"default-value":t.value,focus:t.focus,placeholder:t.placeholder,validation:t.validation,required:t.required},model:{value:e.specific.origin[t.name],callback:function(n){e.$set(e.specific.origin,t.name,n)},expression:"specific.origin[setting.name]"}})],1)}),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(t){e.sendPreview()}}},[n("div",{staticClass:"progress"}),n("span",{staticClass:"UI-icon UI-play"}),e._v("\n Prévisualiser\n ")])],2):e._e(),n("div",{staticClass:"block-setting"},[e._m(1),n("select",{directives:[{name:"model",rawName:"v-model",value:e.lastLocaleAdded,expression:"lastLocaleAdded"}],staticClass:"add-locale",attrs:{disabled:Object.keys(e.specific.translations).length===e.localesAllowed.length},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.lastLocaleAdded=t.target.multiple?n:n[0]}}},[n("option",{attrs:{disabled:"",value:""}},[e._v("Ajouter une traduction")]),e._l(e.localesAllowed,function(t){return n("option",{key:"locale_"+t,attrs:{disabled:Object.keys(e.specific.translations).includes(t)},domProps:{value:t}},[e._v(e._s(t))])})],2)]),0!==Object.keys(e.specific.translations).length?n("div",e._l(Object.keys(e.specific.translations),function(t){return n("div",{key:"tr_"+t,class:["translation","block-setting",{"on-preview":e.isOnPreview(t)}]},[n("header",{staticClass:"no-border"},[n("h3",[e._v("Version "+e._s(t.toUpperCase()))])]),e._l(e.specificTranslationsModel,function(r){return n("setting-form-item",{key:"trs_"+t+"_"+r.name,attrs:{type:r.type,name:t+"_"+r.type+"_"+r.name,label:r.label}},[n("setting-input",{attrs:{name:t+"_"+r.name,type:r.type,"default-value":r.value,required:r.required},model:{value:e.specific.translations[t][r.name],callback:function(n){e.$set(e.specific.translations[t],r.name,n)},expression:"specific.translations[locale][setting.name]"}})],1)}),n("div",{staticClass:"wrapper-button"},[n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t)}}},[n("span",{staticClass:"UI-icon UI-close"})]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(n){e.sendPreview(t)}}},[n("div",{staticClass:"progress"}),n("span",{staticClass:"UI-icon UI-play"})])])],2)})):e._e(),0!==e.general.length?n("div",{staticClass:"general-setting block-setting"},[e._m(2),e._l(e.generalModel,function(t){return n("setting-form-item",{key:"setting_"+t.name,attrs:{name:t.type+"_"+t.name,type:t.type,label:t.label}},[n("setting-input",{attrs:{name:t.type+"_"+t.name,type:t.type,"default-value":t.value,required:t.required},model:{value:e.general[t.name],callback:function(n){e.$set(e.general,t.name,n)},expression:"general[setting.name]"}})],1)})],2):e._e(),0!==e.configs.length?n("div",{staticClass:"configs"},[e._m(3),e._l(e.configs,function(t){return n("div",{key:"details_"+(t.specific.locale||"VO"),staticClass:"configs-details"},[n("span",[e._v(e._s(t.general.filename))]),t.specific.locale?n("button",{staticClass:"delete-setting rounded",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t.specific.locale)}}},[n("span",{staticClass:"UI-icon UI-close"})]):e._e()])}),n("div",{staticClass:"validate"},[n("button",{staticClass:"validate-config",attrs:{type:"button"},on:{click:function(t){e.validate()}}},[n("span",{staticClass:"UI-icon UI-checked"}),e._v("\n Générer "+e._s(e.configs.length)+" "+e._s(e.$tc("videos",e.configs.length))+"\n ")])])],2):e._e()])},s=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Template Tweet")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Langues")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Configuration générale")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Rendus")])])}];n("a481");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("f751");function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function l(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(e){return u(e)||l(e)||f()}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){c(e,t,n[t])})}return e}n("ac6a"),n("cadf"),n("456d"),n("7f7f");var h="videoTitle",v="videoWidth",m="videoHeight",g="fps",y="fileFormat",b="codec",w="text",_="number",x="select",$="textarea",S=[{type:w,name:h,label:"Titre",value:""},{type:_,name:v,label:"Largeur",value:1920},{type:_,name:m,label:"Hauteur",value:1080},{type:_,name:g,label:"Images par seconde",value:25},{type:x,name:y,label:"Format de fichier",value:["mov","mp4"]},{type:x,name:b,label:"Codec vidéo",value:["prores","h264"]}],O=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["setting-form-item","for-"+e.type,{"is-required":e.isRequired}]},[n("label",{ref:"label",attrs:{for:e.name}},[e._v(e._s(e.label))]),e._t("default")],2)},j=[],L={name:"SettingFormItem",props:{label:{type:String,required:!0},type:{type:String,required:!0},name:{type:String,required:!0},isRequired:{type:Boolean,default:!1}},data:function(){return{paddingLeft:0}},mounted:function(){this.paddingLeft=this.$refs.label.clientWidth}},C=L;n("1d9f");function k(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}var M=k(C,O,j,!1,null,null,null);M.options.__file="SettingFormItem.vue";var P=M.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSelect?n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",attrs:{id:e.name},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.value=t.target.multiple?n:n[0]}}},e._l(e.defaultValue,function(t){return n("option",{key:t},[e._v("\n "+e._s(t)+"\n ")])})):e.isTextArea?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],class:["setting-input",{"is-placeholder":e.isPlaceholder}],attrs:{id:e.name,focus:e.focus},domProps:{value:e.value},on:{focus:function(t){e.removePlaceholder()},focusout:function(t){e.resetPlaceholder()},input:function(t){t.target.composing||(e.value=t.target.value)}}}):"checkbox"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(t){var n=e.value,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.value=n.concat([o])):a>-1&&(e.value=n.slice(0,a).concat(n.slice(a+1)))}else e.value=i}}}):"radio"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:"radio"},domProps:{checked:e._q(e.value,null)},on:{change:function(t){e.value=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:e.type.toLowerCase()},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},E=[],D=(n("c5f6"),{name:"SettingInput",props:{name:{type:String,required:!0},type:{type:String,required:!0},defaultValue:{type:[String,Number,Array,Boolean],required:!0},placeholder:{type:String,default:null},paddingLeft:{type:Number,default:0},focus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},validation:{type:Function,default:null}},data:function(){return{value:""}},computed:{formattedValue:function(){return this.type===_?parseFloat(this.value):this.value},isSelect:function(){return this.type===x},isTextArea:function(){return this.type===$},isPlaceholder:function(){return this.value===this.defaultValue}},watch:{value:function(e){e=this.type===_?parseFloat(e):e,e=this.type===String?e.toLowerCase():e,e=null!==this.validation?this.validation(e):e,this.$emit("input",e)},defaultValue:function(e){this.setDefaultValue()}},created:function(){this.setDefaultValue()},methods:{setDefaultValue:function(){this.value=this.isSelect?this.defaultValue[0]:this.defaultValue,this.$emit("input",this.value)},removePlaceholder:function(){this.isTextArea&&this.isPlaceholder&&(this.value="")},resetPlaceholder:function(){this.isTextArea&&""===this.value&&(this.value=this.defaultValue)}}}),T=D,I=(n("84ed"),k(T,A,E,!1,null,null,null));I.options.__file="SettingInput.vue";var F=I.exports,N=n("8bbf"),q=n.n(N),U=new q.a,R=U,V={name:"SettingsForm",components:{SettingFormItem:P,SettingInput:F},props:{specificOriginModel:{type:Array,required:!0},specificTranslationsModel:{type:Array,required:!0},localesAllowed:{type:Array,default:function(e){return[]}},templateUrl:{type:String,required:!0}},data:function(){return{specific:{origin:{},translations:{}},general:{timestamp:(new Date).getTime()},lastLocaleAdded:"",defaultFilename:"",localeOnPreview:void 0}},computed:{generalModel:function(){var e=S,t=e.find(function(e){return e.name===h});return void 0!==t&&(t.value=this.defaultFilename),e},configs:function(){var e=this,t=[];return t.push(this.generateconfigsEntry()),Object.keys(this.specific.translations).map(function(n){t.push(e.generateconfigsEntry(n))}),t}},watch:{lastLocaleAdded:function(e){0!==e.length&&(this.addLocale(e),this.lastLocaleAdded="")}},created:function(){this.dynamicDataBinding(this.generalModel,this.general),this.dynamicDataBinding(this.specificOriginModel,this.specific.origin)},mounted:function(){this.setupListener()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){R.$on("default-filename",this.updateDefaultFilename),R.$on("preview-progress",this.updateProgressPreviewButton)},removeListener:function(){R.$off("default-filename",this.updateDefaultFilename),R.$off("preview-progress",this.updateProgressPreviewButton)},updateDefaultFilename:function(e){this.defaultFilename=e},updateProgressPreviewButton:function(e){document.querySelector(".on-preview .send-preview .progress").style.width="".concat(100*e,"%")},dynamicDataBinding:function(e,t){var n=this;e.map(function(e){n.$set(t,e.name,e.value)})},addLocale:function(e){this.$set(this.specific.translations,e,{}),this.dynamicDataBinding(this.specificTranslationsModel,this.specific.translations[e])},removeLocale:function(e){this.$delete(this.specific.translations,e)},generateconfigsEntry:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{general:p({},this.general,{filename:this.generateFilename(t),host:this.templateUrl}),specific:p({locale:t},this.specific.origin,Object.assign.apply(Object,d(this.specificTranslationsModel.map(function(n){return c({},n.name,null!==t?e.specific.translations[t][n.name]:null)}))))}},generateFilename:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.general[v]+"_"+this.general[m]+"_"+this.general[g]+g+"_"+this.general[b]+"_";return this.general[h]&&(t+=this.general[h].replace(/[àáâãäå]/g,"a").replace(/[èéêë]/g,"e").replace(/[ïîì]/g,"i").replace(/[öôòõ]/g,"o").replace(/[üûùú]/g,"u").replace(/[ÿ]/g,"y").replace(/[œ]/g,"oe").replace(/[/\\:]/g,"-").replace(/\s/g,"_").replace(/[^a-z0-9-_]/gi,"")+"_"),t+=(e||"VO")+"."+this.general[y],t.toLowerCase()},sendPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=document.querySelector(".on-preview .send-preview .progress");null!==t&&(t.style.width=0),this.checkRequired()||(this.general.timestamp=(new Date).getTime(),this.localeOnPreview=e,R.$emit("previsualize",this.configs.find(function(t){return t.specific.locale===e})))},isOnPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.localeOnPreview===e},checkRequired:function(){var e=document.querySelectorAll(".settingsForm *[required=required]"),t=0,n=!1;while(t<e.length&&!n)n=""===e[t].value||null===e[t].value,t++;return n},validate:function(){if(!this.checkRequired()){var e=this.configs.map(function(e){return{data:e}});this.$emit("validate",e)}}}},H=V,W=(n("416b"),k(H,a,s,!1,null,null,null));W.options.__file="SettingsForm.vue";var G=W.exports,Y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"preview"},[n("section",{ref:"playerContainer",staticClass:"player-container"},[n("div",{staticClass:"player",style:{width:e.previewWidth+"px",height:e.previewHeight+"px"}},[n("iframe",{style:e.iframeDimension,attrs:{src:e.templateUrl}})]),n("progress-bar",{attrs:{duration:e.duration,progress:e.progress,color:"#14c6ab"}}),n("p",{staticClass:"timecode"},[e._v(e._s(e.$n(e.progress))+"/"+e._s(e.$n(e.duration))+"s")])],1)])},B=[],J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"progress-bar"},[n("div",{class:e.progressClass,style:{width:e.progressWidth,background:e.color}})])},z=[],Z={name:"ProgresseBar",props:{progress:{type:Number,required:!0},duration:{type:Number,required:!0},color:{type:String,default:null}},data:function(){return{reset:!1}},computed:{progressClass:function(){return{"progress-value":!0,reset:this.reset}},progressWidth:function(){return 0!==this.duration?"".concat(this.progress/this.duration*100,"%"):"0%"}},watch:{progress:function(e,t){this.reset=t>e}}},X=Z,K=(n("dee8"),k(X,J,z,!1,null,null,null));K.options.__file="ProgressBar.vue";var Q=K.exports,ee={name:"Preview",components:{ProgressBar:Q},props:{templateUrl:{type:String,required:!0}},data:function(){return{configWidth:1920,configRatio:16/9,previewWidth:0,progress:0,duration:0}},computed:{previewHeight:function(){return this.previewWidth/this.configRatio},previewRatio:function(){return this.previewWidth/this.configWidth},iframeDimension:function(){return{zoom:this.previewRatio,transform:"scale(".concat(this.previewRatio,")"),transformOrigin:"0 0",width:"".concat(1/this.previewRatio*100,"%"),height:"".concat(1/this.previewRatio*100,"%")}}},mounted:function(){this.setupListener(),this.getWidth()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){var e=this;R.$on("previsualize",this.sendConfig),window.onmessage=function(t){"animation-update"===t.data.type&&(e.progress=t.data.value,R.$emit("preview-progress",t.data.value/e.duration)),"duration-update"===t.data.type&&(e.duration=t.data.value),"default-filename"===t.data.type&&R.$emit("default-filename",t.data.value)},window.addEventListener("resize",this.getWidth)},removeListener:function(){this.$off("previsualize",this.sendConfig),window.removeEventListener("resize",this.getWidth)},sendConfig:function(e){console.log("sendConfig",e),this.configWidth=e.general.videoWidth,this.configRatio=e.general.videoWidth/e.general.videoHeight,window.frames[0].postMessage({type:"init-template-data",templateData:e.specific},"*")},getWidth:function(){this.previewWidth=parseInt(window.getComputedStyle(this.$refs.playerContainer).getPropertyValue("width").replace("px",""))}}},te=ee,ne=(n("497a"),k(te,Y,B,!1,null,null,null));ne.options.__file="Preview.vue";var re=ne.exports,ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"results"},[n("h2",[e._v("Rendus")]),n("div",{staticClass:"results-wrapper"},[n("section",{staticClass:"job-details"},e._l(e.jobs,function(e){return n("progress-job",{key:e.id,attrs:{job:e}})})),n("section",{staticClass:"job-summary"},[n("div",{staticClass:"fixed"},[n("h2",[n("span",[e._v(e._s(e.completedJobs.length)+"/"+e._s(e.jobs.length))]),n("span",[e._v("vidéos terminées")])]),n("a",{attrs:{disabled:!e.allCompleted,href:"#"},on:{click:function(t){return t.preventDefault(),e.downloadLinks(t)}}},[e._v("Télécharger tous les liens\n ")]),n("a",{attrs:{disabled:!e.allCompleted,href:"#"},on:{click:function(t){return t.preventDefault(),e.downloadAll(t)}}},[e._v("Télécharger toutes les vidéos\n ")])])])])])},oe=[],ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["progress-job",e.statusClass]},[n("div",{staticClass:"id"},[n("span",[e._v("job "+e._s(e.job.id))])]),n("div",{class:["progress-wrapper",{complete:e.statusCode>=2}]},[n("div",{staticClass:"textual"},[n("span",{staticClass:"filename"},[e._v(e._s(e.job.data.general.filename))]),n("div",{staticClass:"status"},[n("span",[e._v(e._s(e.status))])]),n("span",{staticClass:"percent"},[e._v(e._s((100*e.job.progress).toFixed(2))+"%")])]),n("div",{staticClass:"bar"},[n("progress-bar",{attrs:{duration:1,progress:e.job.progress,color:"black"}})],1)]),n("button",{class:["download",{active:e.statusCode>=2}],attrs:{disabled:e.statusCode<2},on:{click:function(t){e.download()}}},[n("span",{staticClass:"UI-icon UI-download"})])])},se=[],ce={name:"ProgressJob",components:{ProgressBar:Q},props:{job:{type:Object,required:!0}},computed:{statusCode:function(){var e=0;return null===this.job.returnvalue&&1===this.job.progress?e=1:null!==this.job.returnvalue?e=2:null===this.job.returnvalue&&null!==this.job.finishedOn&&(e=3),e},status:function(){var e="capturing animation...";return 1===this.statusCode?e="converting into video format...":2===this.statusCode?e="ready to download":3===this.statusCode&&(e="an error occured"),e},statusClass:function(){var e="capturing";return 2===this.statusCode?e="finished":3===this.statusCode&&(e="failed"),e}},methods:{download:function(){window.open(this.job.returnvalue.url)}}},ue=ce,le=(n("e977"),k(ue,ae,se,!1,null,null,null));le.options.__file="ProgressJob.vue";var fe=le.exports,de=n("5a0c"),pe=n.n(de),he={name:"Results",components:{ProgressJob:fe},props:{jobs:{type:Array,required:!0}},computed:{completedJobs:function(){return this.jobs.filter(function(e){return null!==e.returnvalue})},allCompleted:function(){return this.completedJobs.length===this.jobs.length}},methods:{downloadAll:function(){this.allCompleted&&this.completedJobs.map(function(e){window.open(e.returnvalue.url)})},downloadLinks:function(){if(this.allCompleted){var e=["data:text/csv;charset=utf-8,lang,file,url,expiration"];this.completedJobs.map(function(t,n){e.push("".concat(t.data.specific.locale?t.data.specific.locale:"vo",",").concat(t.data.general.filename,",").concat(t.returnvalue.url,",").concat(pe()().add(15,"days").format("YYYY-MM-DD HH:mm:ss")))}),e=e.join("\n");var t=encodeURI(e),n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download","links_".concat(this.jobs[0].data.general.filename,".csv")),document.body.appendChild(n),n.click(),document.body.removeChild(n)}}}},ve=he,me=(n("ebf2"),k(ve,ie,oe,!1,null,null,null));me.options.__file="Results.vue";var ge=me.exports,ye={name:"TemplateDdv",components:{SettingsForm:G,Preview:re,Results:ge},props:{templateName:{type:String,required:!0},templateUrl:{type:String,required:!0},service:{type:Object,required:!0}},data:function(){return{loading:!0,specificOriginModel:[],specificTranslationsModel:[],localesAllowed:[],rendering:!1,jobs:[]}},created:function(){this.getTemplate(),this.getJobs(),this.setupListener()},beforeDestroy:function(){this.removeListener()},methods:{getTemplate:function(){var e=o(regeneratorRuntime.mark(function e(){var t,n,r,i,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.fetch("".concat(this.templateUrl,"/config.json"),{method:"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":"text/plain"}});case 2:return t=e.sent,e.next=5,t.json();case 5:n=e.sent,r=n.specificOriginModel,i=n.specificTranslationsModel,o=n.localesAllowed,this.specificOriginModel=r,this.specificTranslationsModel=i,this.localesAllowed=o,this.loading=!1;case 13:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),getJobs:function(){var e=o(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.service.get();case 2:t=e.sent,this.jobs=t.filter(function(e){return void 0!==e.data.general});case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),setupListener:function(){this.service.on("progress",this.progressUpdate),this.service.on("completed",this.completedUpdate)},removeListener:function(){this.service.off("progress",this.progressUpdate),this.service.off("completed",this.completedUpdate)},progressUpdate:function(e){var t=e.jobId,n=e.progress,r=this.jobs.find(function(e){return e.id===t});void 0!==r?r.progress=parseFloat(n):console.error("No job found.")},completedUpdate:function(e){var t=e.jobId,n=e.result,r=this.jobs.find(function(e){return e.id===t});r.returnvalue=n},validate:function(){var e=o(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return console.log("validate send",t),e.next=3,this.service.create(t);case 3:n=e.sent,console.log("validate response",n),console.log(n.length),n.length>0&&(this.rendering=!0,this.jobs=n);case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}},be=ye,we=(n("49d1"),k(be,r,i,!1,null,null,null));we.options.__file="TemplateDdv.vue";var _e=we.exports;n.d(t,"DataDrivenVideoUi",function(){return _e})},fdef:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})}); | ||
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["dataDrivenVideoUi"]=t(require("vue")):e["dataDrivenVideoUi"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",h="keys",v="values",g=function(){return this};e.exports=function(e,t,n,m,y,b,w){c(n,t,m);var _,x,j,O=function(e){if(!p&&e in P)return P[e];switch(e){case h:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",S=y==v,L=!1,P=e.prototype,E=P[f]||P[d]||y&&P[y],k=E||O(y),T=y?S?O("entries"):k:void 0,A="Array"==t&&P.entries||E;if(A&&(j=l(A.call(new e)),j!==Object.prototype&&j.next&&(u(j,C,!0),r||"function"==typeof j[f]||a(j,f,g))),S&&E&&E.name!==v&&(L=!0,k=function(){return E.call(this)}),r&&!w||!p&&!L&&P[f]||a(P,f,k),s[t]=k,s[C]=g,y)if(_={values:S?k:O(v),keys:b?k:O(h),entries:T},w)for(x in _)x in P||o(P,x,_[x]);else i(i.P+i.F*(p||L),t,_);return _}},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,p=5==e||f,d=t||s;return function(t,s,h){for(var v,g,m=o(t),y=i(m),b=r(s,h,3),w=a(y.length),_=0,x=n?d(t,w):c?d(t,0):void 0;w>_;_++)if((p||_ in y)&&(v=y[_],g=b(v,_,m),e))if(n)x[_]=g;else if(g)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:x.push(v)}else if(l)return!1;return f?-1:u||l?l:x}}},"0bed":function(e,t,n){},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"1d9f":function(e,t,n){"use strict";var r=n("97ab"),i=n.n(r);i.a},"1eb2":function(e,t,n){var r;"undefined"!==typeof window&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]))},"214f":function(e,t,n){"use strict";var r=n("32e9"),i=n("2aba"),o=n("79e5"),a=n("be13"),s=n("2b4c");e.exports=function(e,t,n){var c=s(e),u=n(a,c,""[e]),l=u[0],f=u[1];o(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),r(RegExp.prototype,c,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s="toString",c=Function[s],u=(""+c).split(s);n("8378").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"2f21":function(e,t,n){"use strict";var r=n("79e5");e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"416b":function(e,t,n){"use strict";var r=n("9b8f"),i=n.n(r);i.a},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(e){return i(r(e))}})},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"497a":function(e,t,n){"use strict";var r=n("4caa"),i=n.n(r);i.a},"49d1":function(e,t,n){"use strict";var r=n("53bf"),i=n.n(r);i.a},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4caa":function(e,t,n){},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53bf":function(e,t,n){},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"55dd":function(e,t,n){"use strict";var r=n("5ca1"),i=n("d8e8"),o=n("4bf8"),a=n("79e5"),s=[].sort,c=[1,2,3];r(r.P+r.F*(a(function(){c.sort(void 0)})||!a(function(){c.sort(null)})||!n("2f21")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",u=function(e,t,n){var l,f,p,d,h=e&u.F,v=e&u.G,g=e&u.S,m=e&u.P,y=e&u.B,b=v?r:g?r[t]||(r[t]={}):(r[t]||{})[c],w=v?i:i[t]||(i[t]={}),_=w[c]||(w[c]={});for(l in v&&(n=t),n)f=!h&&b&&void 0!==b[l],p=(f?b:n)[l],d=y&&f?s(p,r):m&&"function"==typeof p?s(Function.call,p):p,b&&a(b,l,p,e&u.U),w[l]!=p&&o(w,l,d),m&&_[l]!=p&&(_[l]=p)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6e9d":function(e,t,n){},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),c=Object.assign;e.exports=!c||n("79e5")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){var n=a(e),c=arguments.length,u=1,l=i.f,f=o.f;while(c>u){var p,d=s(arguments[u++]),h=l?r(d).concat(l(d)):r(d),v=h.length,g=0;while(v>g)f.call(d,p=h[g++])&&(n[p]=d[p])}return n}:c},"73ee":function(e,t,n){},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},8378:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"84ed":function(e,t,n){"use strict";var r=n("0bed"),i=n.n(r);i.a},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8bbf":function(t,n){t.exports=e},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{l=t.regeneratorRuntime=u?e.exports:{},l.wrap=w;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",v={},g={};g[a]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(A([])));y&&y!==r&&i.call(y,a)&&(g=y);var b=O.prototype=x.prototype=Object.create(g);j.prototype=b.constructor=O,O.constructor=j,O[c]=j.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===j||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},C(S.prototype),S.prototype[s]=function(){return this},l.AsyncIterator=S,l.async=function(e,t,n,r){var i=new S(w(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},C(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=A,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(k),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},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){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},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),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),k(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=L(e,n,a),o}function _(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function x(){}function j(){}function O(){}function C(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function S(e){function t(n,r,o,a){var s=_(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(u).then(function(e){c.value=e,o(c)},a)}a(s.arg)}var n;function r(e,r){function i(){return new Promise(function(n,i){t(e,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=r}function L(e,t,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return I()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=_(e,t,n);if("normal"===c.type){if(r=n.done?h:p,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}function P(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,P(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=_(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function E(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 k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:I}}function I(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},"97ab":function(e,t,n){},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9b8f":function(e,t,n){},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e28":function(e,t,n){},a481:function(e,t,n){n("214f")("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",c=" ",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o(function(){return!!a[e]()||c[e]()!=c}),u=i[e]=s?t(p):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},p=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},ab52:function(e,t,n){},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),p=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(d),v=0;v<h.length;v++){var g,m=h[v],y=d[m],b=a[m],w=b&&b.prototype;if(w&&(w[l]||s(w,l,p),w[f]||s(w,f,m),c[m]=p,y))for(g in r)w[g]||o(w,g,r[g],!0)}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,f=n("86cc").f,p=n("aa77").trim,d="Number",h=r[d],v=h,g=h.prototype,m=o(n("2aeb")(g))==d,y="trim"in String.prototype,b=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():p(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,c=t.slice(2),u=0,l=c.length;u<l;u++)if(a=c.charCodeAt(u),a<48||a>i)return NaN;return parseInt(c,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(m?c(function(){g.valueOf.call(n)}):o(n)!=d)?a(new v(b(t)),n,h):b(t)};for(var w,_=n("9e1e")?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)i(v,w=_[x])&&!i(h,w)&&f(h,w,l(v,w));h.prototype=g,g.constructor=h,n("2aba")(r,d,h)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},db15:function(e,t,n){"use strict";var r=n("ab52"),i=n.n(r);i.a},dee8:function(e,t,n){"use strict";var r=n("9e28"),i=n.n(r);i.a},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},e977:function(e,t,n){"use strict";var r=n("73ee"),i=n.n(r);i.a},ebf2:function(e,t,n){"use strict";var r=n("6e9d"),i=n.n(r);i.a},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fae3:function(e,t,n){"use strict";n.r(t);n("1eb2");var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template"},[e.loading?n("p",[e._v("Loading •••")]):n("section",{staticClass:"wrapper"},[n("preview",{attrs:{"template-url":e.templateUrl}}),n("div",{staticClass:"side-bar"},[n("settingsForm",{attrs:{"specific-origin-model":e.specificOriginModel,"specific-translations-model":e.specificTranslationsModel,"locales-allowed":e.localesAllowed,"template-url":e.templateUrl},on:{validate:e.validate}}),n("results",{directives:[{name:"show",rawName:"v-show",value:e.jobs.length>0,expression:"jobs.length > 0"}],attrs:{jobs:e.jobs}})],1)],1)])},i=[];function o(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function a(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function c(e){return o(e)||a(e)||s()}n("7514"),n("96cf");function u(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e,t){try{var n=o[e](t),a=n.value}catch(e){return void i(e)}n.done?r(a):Promise.resolve(a).then(s,c)}function s(e){a("next",e)}function c(e){a("throw",e)}s()})}}var l=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settingsForm"},[0!==e.specificOriginModel.length?n("div",{class:["block-setting",{"on-preview":e.isOnPreview()}]},[e._m(0),e._l(e.specificOriginModel,function(t){return n("setting-form-item",{key:"settingOrigin_"+t.name,attrs:{type:t.type,name:t.type+"_"+t.name,label:t.label,"is-required":t.required}},[n("setting-input",{attrs:{name:t.type+"_"+t.name,type:t.type,"default-value":t.value,focus:t.focus,placeholder:t.placeholder,validation:t.validation,required:t.required},model:{value:e.specific.origin[t.name],callback:function(n){e.$set(e.specific.origin,t.name,n)},expression:"specific.origin[setting.name]"}})],1)}),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(t){e.sendPreview()}}},[n("div",{staticClass:"progress"}),n("span",{staticClass:"UI-icon UI-play"}),e._v("\n Prévisualiser\n ")])],2):e._e(),n("div",{staticClass:"block-setting"},[e._m(1),n("select",{directives:[{name:"model",rawName:"v-model",value:e.lastLocaleAdded,expression:"lastLocaleAdded"}],staticClass:"add-locale",attrs:{disabled:Object.keys(e.specific.translations).length===e.localesAllowed.length},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.lastLocaleAdded=t.target.multiple?n:n[0]}}},[n("option",{attrs:{disabled:"",value:""}},[e._v("Ajouter une traduction")]),e._l(e.localesAllowed,function(t){return n("option",{key:"locale_"+t,attrs:{disabled:Object.keys(e.specific.translations).includes(t)},domProps:{value:t}},[e._v(e._s(t))])})],2)]),0!==Object.keys(e.specific.translations).length?n("div",e._l(Object.keys(e.specific.translations),function(t){return n("div",{key:"tr_"+t,class:["translation","block-setting",{"on-preview":e.isOnPreview(t)}]},[n("header",{staticClass:"no-border"},[n("h3",[e._v("Version "+e._s(t.toUpperCase()))])]),e._l(e.specificTranslationsModel,function(r){return n("setting-form-item",{key:"trs_"+t+"_"+r.name,attrs:{type:r.type,name:t+"_"+r.type+"_"+r.name,label:r.label}},[n("setting-input",{attrs:{name:t+"_"+r.name,type:r.type,"default-value":r.value,required:r.required},model:{value:e.specific.translations[t][r.name],callback:function(n){e.$set(e.specific.translations[t],r.name,n)},expression:"specific.translations[locale][setting.name]"}})],1)}),n("div",{staticClass:"wrapper-button"},[n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t)}}},[n("span",{staticClass:"UI-icon UI-close"})]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(n){e.sendPreview(t)}}},[n("div",{staticClass:"progress"}),n("span",{staticClass:"UI-icon UI-play"})])])],2)})):e._e(),0!==e.general.length?n("div",{staticClass:"general-setting block-setting"},[e._m(2),e._l(e.generalModel,function(t){return n("setting-form-item",{key:"setting_"+t.name,attrs:{name:t.type+"_"+t.name,type:t.type,label:t.label}},[n("setting-input",{attrs:{name:t.type+"_"+t.name,type:t.type,"default-value":t.value,required:t.required},model:{value:e.general[t.name],callback:function(n){e.$set(e.general,t.name,n)},expression:"general[setting.name]"}})],1)})],2):e._e(),0!==e.configs.length?n("div",{staticClass:"configs"},[n("div",{staticClass:"validate"},[n("button",{staticClass:"validate-config",attrs:{type:"button"},on:{click:function(t){e.validate()}}},[n("span",{staticClass:"UI-icon UI-checked"}),e._v("\n Générer "+e._s(e.configs.length)+" "+e._s(e.$tc("videos",e.configs.length))+"\n ")])])]):e._e()])},f=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Template Tweet")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Langues")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Configuration générale")])])}];n("a481");function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("f751");function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){p(e,t,n[t])})}return e}n("ac6a"),n("cadf"),n("456d"),n("7f7f");var h="videoTitle",v="videoWidth",g="videoHeight",m="fps",y="fileFormat",b="codec",w="text",_="number",x="select",j="textarea",O=[{type:w,name:h,label:"Titre",value:""},{type:_,name:v,label:"Largeur",value:1920},{type:_,name:g,label:"Hauteur",value:1080},{type:_,name:m,label:"Images par seconde",value:25},{type:x,name:y,label:"Format de fichier",value:["mov","mp4"]},{type:x,name:b,label:"Codec vidéo",value:["prores","h264"]}],C=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["setting-form-item","for-"+e.type,{"is-required":e.isRequired}]},[n("label",{ref:"label",attrs:{for:e.name}},[e._v(e._s(e.label))]),e._t("default")],2)},S=[],L={name:"SettingFormItem",props:{label:{type:String,required:!0},type:{type:String,required:!0},name:{type:String,required:!0},isRequired:{type:Boolean,default:!1}},data:function(){return{paddingLeft:0}},mounted:function(){this.paddingLeft=this.$refs.label.clientWidth}},P=L;n("1d9f");function E(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}var k=E(P,C,S,!1,null,null,null);k.options.__file="SettingFormItem.vue";var T=k.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSelect?n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",attrs:{id:e.name},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.value=t.target.multiple?n:n[0]}}},e._l(e.defaultValue,function(t){return n("option",{key:t},[e._v("\n "+e._s(t)+"\n ")])})):e.isTextArea?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],class:["setting-input",{"is-placeholder":e.isPlaceholder}],attrs:{id:e.name,focus:e.focus},domProps:{value:e.value},on:{focus:function(t){e.removePlaceholder()},focusout:function(t){e.resetPlaceholder()},input:function(t){t.target.composing||(e.value=t.target.value)}}}):"checkbox"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(t){var n=e.value,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.value=n.concat([o])):a>-1&&(e.value=n.slice(0,a).concat(n.slice(a+1)))}else e.value=i}}}):"radio"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:"radio"},domProps:{checked:e._q(e.value,null)},on:{change:function(t){e.value=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:e.type.toLowerCase()},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},I=[],F=(n("c5f6"),{name:"SettingInput",props:{name:{type:String,required:!0},type:{type:String,required:!0},defaultValue:{type:[String,Number,Array,Boolean],required:!0},placeholder:{type:String,default:null},paddingLeft:{type:Number,default:0},focus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},validation:{type:Function,default:null}},data:function(){return{value:""}},computed:{formattedValue:function(){return this.type===_?parseFloat(this.value):this.value},isSelect:function(){return this.type===x},isTextArea:function(){return this.type===j},isPlaceholder:function(){return this.value===this.defaultValue}},watch:{value:function(e){e=this.type===_?parseFloat(e):e,e=this.type===String?e.toLowerCase():e,e=null!==this.validation?this.validation(e):e,this.$emit("input",e)},defaultValue:function(e){this.setDefaultValue()}},created:function(){this.setDefaultValue()},methods:{setDefaultValue:function(){this.value=this.isSelect?this.defaultValue[0]:this.defaultValue,this.$emit("input",this.value)},removePlaceholder:function(){this.isTextArea&&this.isPlaceholder&&(this.value="")},resetPlaceholder:function(){this.isTextArea&&""===this.value&&(this.value=this.defaultValue)}}}),R=F,N=(n("84ed"),E(R,A,I,!1,null,null,null));N.options.__file="SettingInput.vue";var q=N.exports,M=n("8bbf"),$=n.n(M),U=new $.a,D=U,V={name:"SettingsForm",components:{SettingFormItem:T,SettingInput:q},props:{specificOriginModel:{type:Array,required:!0},specificTranslationsModel:{type:Array,required:!0},localesAllowed:{type:Array,default:function(e){return[]}},templateUrl:{type:String,required:!0}},data:function(){return{specific:{origin:{},translations:{}},general:{timestamp:(new Date).getTime()},lastLocaleAdded:"",defaultFilename:"",localeOnPreview:void 0}},computed:{generalModel:function(){var e=O,t=e.find(function(e){return e.name===h});return void 0!==t&&(t.value=this.defaultFilename),e},configs:function(){var e=this,t=[];return t.push(this.generateconfigsEntry()),Object.keys(this.specific.translations).map(function(n){t.push(e.generateconfigsEntry(n))}),t}},watch:{lastLocaleAdded:function(e){0!==e.length&&(this.addLocale(e),this.lastLocaleAdded="")}},created:function(){this.dynamicDataBinding(this.generalModel,this.general),this.dynamicDataBinding(this.specificOriginModel,this.specific.origin)},mounted:function(){this.setupListener()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){D.$on("default-filename",this.updateDefaultFilename),D.$on("preview-progress",this.updateProgressPreviewButton)},removeListener:function(){D.$off("default-filename",this.updateDefaultFilename),D.$off("preview-progress",this.updateProgressPreviewButton)},updateDefaultFilename:function(e){this.defaultFilename=e},updateProgressPreviewButton:function(e){document.querySelector(".on-preview .send-preview .progress").style.width="".concat(100*e,"%")},dynamicDataBinding:function(e,t){var n=this;e.map(function(e){n.$set(t,e.name,e.value)})},addLocale:function(e){this.$set(this.specific.translations,e,{}),this.dynamicDataBinding(this.specificTranslationsModel,this.specific.translations[e])},removeLocale:function(e){this.$delete(this.specific.translations,e)},generateconfigsEntry:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{general:d({},this.general,{filename:this.generateFilename(t),host:this.templateUrl}),specific:d({locale:t},this.specific.origin,Object.assign.apply(Object,c(this.specificTranslationsModel.map(function(n){return p({},n.name,null!==t?e.specific.translations[t][n.name]:null)}))))}},generateFilename:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.general[v]+"_"+this.general[g]+"_"+this.general[m]+m+"_"+this.general[b]+"_";return this.general[h]&&(t+=this.general[h].replace(/[àáâãäå]/g,"a").replace(/[èéêë]/g,"e").replace(/[ïîì]/g,"i").replace(/[öôòõ]/g,"o").replace(/[üûùú]/g,"u").replace(/[ÿ]/g,"y").replace(/[œ]/g,"oe").replace(/[/\\:]/g,"-").replace(/\s/g,"_").replace(/[^a-z0-9-_]/gi,"")+"_"),t+=(e||"VO")+"."+this.general[y],t.toLowerCase()},sendPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=document.querySelector(".on-preview .send-preview .progress");null!==t&&(t.style.width=0),this.checkRequired()||(this.general.timestamp=(new Date).getTime(),this.localeOnPreview=e,D.$emit("previsualize",this.configs.find(function(t){return t.specific.locale===e})))},isOnPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.localeOnPreview===e},checkRequired:function(){var e=document.querySelectorAll(".settingsForm *[required=required]"),t=0,n=!1;while(t<e.length&&!n)n=""===e[t].value||null===e[t].value,t++;return n},validate:function(){if(!this.checkRequired()){var e=this.configs.map(function(e){return{data:e}});this.$emit("validate",e)}}}},G=V,W=(n("416b"),E(G,l,f,!1,null,null,null));W.options.__file="SettingsForm.vue";var B=W.exports,J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"preview",staticClass:"preview"},[n("section",{ref:"playerContainer",class:["player-container",{fixed:e.fixed}]},[n("div",{staticClass:"player",style:{width:e.previewWidth+"px",height:e.previewHeight+"px"}},[n("iframe",{style:e.iframeDimension,attrs:{src:e.templateUrl}})]),n("progress-bar",{attrs:{duration:e.duration,progress:e.progress,color:"#14c6ab"}}),n("p",{staticClass:"timecode"},[e._v(e._s(e.$n(e.progress))+"/"+e._s(e.$n(e.duration))+"s")])],1)])},z=[],H=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"progress-bar"},[n("div",{class:e.progressClass,style:{width:e.progressWidth,background:e.color}})])},X=[],Y={name:"ProgresseBar",props:{progress:{type:Number,required:!0},duration:{type:Number,required:!0},color:{type:String,default:null}},data:function(){return{reset:!1}},computed:{progressClass:function(){return{"progress-value":!0,reset:this.reset}},progressWidth:function(){return 0!==this.duration?"".concat(this.progress/this.duration*100,"%"):"0%"}},watch:{progress:function(e,t){this.reset=t>e}}},K=Y,Q=(n("dee8"),E(K,H,X,!1,null,null,null));Q.options.__file="ProgressBar.vue";var Z=Q.exports,ee={name:"Preview",components:{ProgressBar:Z},props:{templateUrl:{type:String,required:!0}},data:function(){return{configWidth:1920,configRatio:16/9,previewWidth:0,progress:0,duration:0,staticLimit:null,fixed:!1}},computed:{previewHeight:function(){return this.previewWidth/this.configRatio},previewRatio:function(){return this.previewWidth/this.configWidth},iframeDimension:function(){return{zoom:this.previewRatio,transform:"scale(".concat(this.previewRatio,")"),transformOrigin:"0 0",width:"".concat(1/this.previewRatio*100,"%"),height:"".concat(1/this.previewRatio*100,"%")}}},mounted:function(){var e=this;this.setupListener(),this.getWidth(),this.$nextTick(function(t){var n=document.documentElement.scrollTop||document.body.scrollTop,r=e.$refs.preview.getBoundingClientRect();e.staticLimit=r.top+n,e.fixed=e.staticLimit-n<=0,window.addEventListener("scroll",e.stickyScroller)})},beforeDestroyed:function(){this.removeListener()},methods:{stickyScroller:function(e){var t=document.documentElement.scrollTop||document.body.scrollTop;this.fixed=this.staticLimit-t<=0},setupListener:function(){var e=this;D.$on("previsualize",this.sendConfig),window.onmessage=function(t){"animation-update"===t.data.type&&(e.progress=t.data.value,D.$emit("preview-progress",t.data.value/e.duration)),"duration-update"===t.data.type&&(e.duration=t.data.value),"default-filename"===t.data.type&&D.$emit("default-filename",t.data.value)},window.addEventListener("resize",this.getWidth)},removeListener:function(){this.$off("previsualize",this.sendConfig),window.removeEventListener("resize",this.getWidth)},sendConfig:function(e){console.log("sendConfig",e),this.configWidth=e.general.videoWidth,this.configRatio=e.general.videoWidth/e.general.videoHeight,window.frames[0].postMessage({type:"init-template-data",templateData:e.specific},"*")},getWidth:function(){this.previewWidth=parseInt(window.getComputedStyle(this.$refs.playerContainer).getPropertyValue("width").replace("px",""))}}},te=ee,ne=(n("497a"),E(te,J,z,!1,null,null,null));ne.options.__file="Preview.vue";var re=ne.exports,ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"results"},[n("header",[n("h2",[e._v(e._s(e.jobs.length)+" Rendus")])]),n("div",{staticClass:"results-wrapper"},e._l(e.statusOrder,function(t){return n("section",{directives:[{name:"show",rawName:"v-show",value:e.filteredJobs[t].length>0,expression:"filteredJobs[status].length > 0"}],key:"st_"+t,class:["job-details",t]},[n("header",{staticClass:"no-border"},[n("h3",[e._v(e._s(e.filteredJobs[t].length)+" "+e._s(e.$tc(t,e.filteredJobs[t].length)))]),"completed"===t?n("copy-clipboard",{attrs:{"to-copy":e.completedUrls}}):e._e()],1),e._l(e.jobs.filter(function(e){return e.data.status===t}),function(e){return n("progress-job",{key:e.id,attrs:{job:e}})})],2)}))])},oe=[],ae=(n("55dd"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["progress-job",e.job.data.status]},[n("div",{staticClass:"progress-wrapper"},[n("div",{staticClass:"wrapper-left"},[n("span",{staticClass:"filename"},[e._v("\n "+e._s(e.job.data.general.filename)),"failed"===e.job.data.status?n("span",{staticClass:"UI-icon UI-triangle"}):e._e()]),e.isCompleted?n("copy-clipboard",{attrs:{"to-copy":e.job.returnvalue.url}}):e._e()],1),"active"===e.job.data.status?n("svg",{staticClass:"radial-progress",attrs:{width:e.radialProgressRadius+2,height:e.radialProgressRadius+2}},[n("circle",{attrs:{cx:e.radialProgressRadius/2+1,cy:e.radialProgressRadius/2+1,r:e.radialProgressRadius/2,"stroke-width":2}}),n("circle",{staticClass:"path",style:{strokeDashoffset:e.radialProgress},attrs:{cx:e.radialProgressRadius/2+1,cy:e.radialProgressRadius/2+1,r:e.radialProgressRadius/2,"stroke-width":2}})]):e._e(),e.isCompleted?n("button",{staticClass:"download",on:{click:function(t){e.download()}}},[n("span",{staticClass:"UI-icon UI-download"})]):e._e()])])}),se=[],ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a",{staticClass:"copy",on:{click:function(t){t.preventDefault(),e.copyToClipboard()}}},[n("span",[e._v(e._s(e.$tc("copy",Array.isArray(e.toCopy)?e.toCopy.length:1)))]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.copied,expression:"copied"}],staticClass:"UI-icon UI-checked"})])},ue=[],le={name:"CopyClipboard",props:{toCopy:{type:[String,Array],default:""}},data:function(){return{copied:!1}},computed:{textToCopy:function(){return Array.isArray(this.toCopy)?this.toCopy.join("\n"):this.toCopy}},methods:{copyToClipboard:function(){var e=this,t=document.createElement("textarea");t.style.position="fixed",t.style.top=0,t.style.left=0,t.style.width="2em",t.style.height="2em",t.style.padding=0,t.style.border="none",t.style.outline="none",t.style.boxShadow="none",t.style.background="transparent",t.value=this.textToCopy,document.body.appendChild(t),t.focus(),t.select();try{document.execCommand("copy");this.copied=!0,setTimeout(function(t){e.copied=!1},700)}catch(e){console.log("Oops, unable to copy")}document.body.removeChild(t)}}},fe=le,pe=(n("db15"),E(fe,ce,ue,!1,null,null,null));pe.options.__file="CopyClipboard.vue";var de=pe.exports,he={name:"ProgressJob",components:{CopyClipboard:de},props:{job:{type:Object,required:!0}},data:function(){return{radialProgressRadius:36}},computed:{radialProgress:function(){return this.job.progress/1*-114},isCompleted:function(){return"completed"===this.job.data.status}},methods:{download:function(){window.open(this.job.returnvalue.url)}}},ve=he,ge=(n("e977"),E(ve,ae,se,!1,null,null,null));ge.options.__file="ProgressJob.vue";var me=ge.exports,ye={name:"Results",components:{ProgressJob:me,CopyClipboard:de},props:{jobs:{type:Array,required:!0}},data:function(){return{statusOrder:["active","waiting","completed","failed"]}},computed:{filteredJobs:function(){var e=this.jobs.slice().sort(function(e,t){return t.timestamp-e.timestamp});return{active:e.filter(function(e){return"active"===e.data.status}),waiting:e.filter(function(e){return"waiting"===e.data.status}),completed:e.filter(function(e){return"completed"===e.data.status}),failed:e.filter(function(e){return"failed"===e.data.status})}},completedUrls:function(){return this.filteredJobs.completed.map(function(e){return e.returnvalue.url})}},methods:{downloadLinks:function(){}}},be=ye,we=(n("ebf2"),E(be,ie,oe,!1,null,null,null));we.options.__file="Results.vue";var _e=we.exports,xe={name:"TemplateDdv",components:{SettingsForm:B,Preview:re,Results:_e},props:{templateName:{type:String,required:!0},templateUrl:{type:String,required:!0},service:{type:Object,required:!0}},data:function(){return{loading:!0,specificOriginModel:[],specificTranslationsModel:[],localesAllowed:[],rendering:!1,jobs:[]}},created:function(){this.getTemplate(),this.getJobs(),this.setupListener()},beforeDestroy:function(){this.removeListener()},methods:{getTemplate:function(){var e=u(regeneratorRuntime.mark(function e(){var t,n,r,i,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.fetch("".concat(this.templateUrl,"config.json"),{method:"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":"text/plain"}});case 2:return t=e.sent,e.next=5,t.json();case 5:n=e.sent,r=n.specificOriginModel,i=n.specificTranslationsModel,o=n.localesAllowed,this.specificOriginModel=r,this.specificTranslationsModel=i,this.localesAllowed=o,this.loading=!1;case 13:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),getJobs:function(){var e=u(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.service.get();case 2:t=e.sent,this.jobs=t.filter(function(e){return void 0!==e.data.general});case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),setupListener:function(){this.service.on("progress",this.progressUpdate),this.service.on("completed",this.completedUpdate)},removeListener:function(){this.service.off("progress",this.progressUpdate),this.service.off("completed",this.completedUpdate)},progressUpdate:function(e){var t=e.jobId,n=e.progress,r=this.jobs.find(function(e){return e.id===t});void 0!==r?r.progress=parseFloat(n):console.error("No job found.")},completedUpdate:function(e){var t=e.jobId,n=e.result,r=this.jobs.find(function(e){return e.id===t});r.data.status="completed",r.returnvalue=n},validate:function(){var e=u(regeneratorRuntime.mark(function e(t){var n,r;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return console.log("validate send",t),e.next=3,this.service.create(t);case 3:n=e.sent,console.log("validate response",n),console.log(n.length),n.length>0&&(this.rendering=!0,(r=this.jobs).push.apply(r,c(n)));case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}},je=xe,Oe=(n("49d1"),E(je,r,i,!1,null,null,null));Oe.options.__file="TemplateDdv.vue";var Ce=Oe.exports;n.d(t,"DataDrivenVideoUi",function(){return Ce})},fdef:function(e,t){e.exports="\t\n\v\f\r \u2028\u2029\ufeff"}})}); | ||
//# sourceMappingURL=dataDrivenVideoUi.umd.min.js.map |
{ | ||
"name": "@afp/data-driven-video-ui", | ||
"version": "1.1.11", | ||
"version": "1.2.0", | ||
"description": "Main interface to generate data driven videos", | ||
@@ -5,0 +5,0 @@ "main": "dist/dataDrivenVideoUi.umd.min.js", |
{ | ||
"search-placeholder": "Search in templates", | ||
"videos": "vidéo | vidéo | vidéos" | ||
"videos": "vidéo | vidéo | vidéos", | ||
"active": "actif | actif | actifs", | ||
"waiting": "en attente | en attente | en attente", | ||
"completed": "téléchargement | téléchargement | téléchargements", | ||
"failed": "erreur | erreur | erreurs", | ||
"copy": "Copier le lien | Copier le lien | Copier tous les liens" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 3 instances in 1 package
2942916
129
7591