@brightcove/components-embed-code-modal 0.2.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +7 -2
- package/index.js.map +1 -1
- package/package.json +2 -3
- package/src/js/components/PlayersDropdown.d.ts.map +1 -1
- package/src/js/components/VideoPlayer.d.ts.map +1 -1
- package/src/js/constants/pluginsRegistry.d.ts +1 -0
- package/src/js/constants/pluginsRegistry.d.ts.map +1 -1
- package/src/js/utils/addPluginsDataToPlayers.d.ts.map +1 -1
package/index.js
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("@brightcove/studio-components"),require("react-dom"),require("@brightcove/react-player-loader"));else if("function"==typeof define&&define.amd)define(["react","@brightcove/studio-components","react-dom","@brightcove/react-player-loader"],t);else{var n="object"==typeof exports?t(require("react"),require("@brightcove/studio-components"),require("react-dom"),require("@brightcove/react-player-loader")):t(e.react,e["@brightcove/studio-components"],e["react-dom"],e["@brightcove/react-player-loader"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r)=>(()=>{var i={757:(e,t,n)=>{e.exports=n(666)},130:function(e){e.exports=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=2)}([function(e,t,n){(function(n){var r;t=e.exports=W,r="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var i=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],s=t.src=[],u=0,c=u++;s[c]="0|[1-9]\\d*";var l=u++;s[l]="[0-9]+";var d=u++;s[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=u++;s[p]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var f=u++;s[f]="("+s[l]+")\\.("+s[l]+")\\.("+s[l]+")";var h=u++;s[h]="(?:"+s[c]+"|"+s[d]+")";var v=u++;s[v]="(?:"+s[l]+"|"+s[d]+")";var g=u++;s[g]="(?:-("+s[h]+"(?:\\."+s[h]+")*))";var m=u++;s[m]="(?:-?("+s[v]+"(?:\\."+s[v]+")*))";var y=u++;s[y]="[0-9A-Za-z-]+";var b=u++;s[b]="(?:\\+("+s[y]+"(?:\\."+s[y]+")*))";var C=u++,A="v?"+s[p]+s[g]+"?"+s[b]+"?";s[C]="^"+A+"$";var w="[v=\\s]*"+s[f]+s[m]+"?"+s[b]+"?",O=u++;s[O]="^"+w+"$";var E=u++;s[E]="((?:<|>)?=?)";var P=u++;s[P]=s[l]+"|x|X|\\*";var x=u++;s[x]=s[c]+"|x|X|\\*";var S=u++;s[S]="[v=\\s]*("+s[x]+")(?:\\.("+s[x]+")(?:\\.("+s[x]+")(?:"+s[g]+")?"+s[b]+"?)?)?";var j=u++;s[j]="[v=\\s]*("+s[P]+")(?:\\.("+s[P]+")(?:\\.("+s[P]+")(?:"+s[m]+")?"+s[b]+"?)?)?";var k=u++;s[k]="^"+s[E]+"\\s*"+s[S]+"$";var I=u++;s[I]="^"+s[E]+"\\s*"+s[j]+"$";var L=u++;s[L]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var R=u++;s[R]="(?:~>?)";var M=u++;s[M]="(\\s*)"+s[R]+"\\s+",a[M]=new RegExp(s[M],"g");var _=u++;s[_]="^"+s[R]+s[S]+"$";var F=u++;s[F]="^"+s[R]+s[j]+"$";var T=u++;s[T]="(?:\\^)";var N=u++;s[N]="(\\s*)"+s[T]+"\\s+",a[N]=new RegExp(s[N],"g");var D=u++;s[D]="^"+s[T]+s[S]+"$";var B=u++;s[B]="^"+s[T]+s[j]+"$";var U=u++;s[U]="^"+s[E]+"\\s*("+w+")$|^$";var q=u++;s[q]="^"+s[E]+"\\s*("+A+")$|^$";var V=u++;s[V]="(\\s*)"+s[E]+"\\s*("+w+"|"+s[S]+")",a[V]=new RegExp(s[V],"g");var Q=u++;s[Q]="^\\s*("+s[S]+")\\s+-\\s+("+s[S]+")\\s*$";var H=u++;s[H]="^\\s*("+s[j]+")\\s+-\\s+("+s[j]+")\\s*$";var z=u++;s[z]="(<|>)?=?\\s*\\*";for(var Z=0;Z<35;Z++)r(Z,s[Z]),a[Z]||(a[Z]=new RegExp(s[Z]));function K(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W)return e;if("string"!=typeof e)return null;if(e.length>i)return null;if(!(t.loose?a[O]:a[C]).test(e))return null;try{return new W(e,t)}catch(e){return null}}function W(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof W){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>i)throw new TypeError("version is longer than "+i+" characters");if(!(this instanceof W))return new W(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?a[O]:a[C]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}t.parse=K,t.valid=function(e,t){var n=K(e,t);return n?n.version:null},t.clean=function(e,t){var n=K(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=W,W.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},W.prototype.toString=function(){return this.version},W.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof W||(e=new W(e,this.options)),this.compareMain(e)||this.comparePre(e)},W.prototype.compareMain=function(e){return e instanceof W||(e=new W(e,this.options)),$(this.major,e.major)||$(this.minor,e.minor)||$(this.patch,e.patch)},W.prototype.comparePre=function(e){if(e instanceof W||(e=new W(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return $(n,i)}while(++t)},W.prototype.compareBuild=function(e){e instanceof W||(e=new W(e,this.options));var t=0;do{var n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return $(n,i)}while(++t)},W.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new W(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(ee(e,t))return null;var n=K(e),r=K(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},t.compareIdentifiers=$;var G=/^[0-9]+$/;function $(e,t){var n=G.test(e),r=G.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function J(e,t,n){return new W(e,n).compare(new W(t,n))}function Y(e,t,n){return J(e,t,n)>0}function X(e,t,n){return J(e,t,n)<0}function ee(e,t,n){return 0===J(e,t,n)}function te(e,t,n){return 0!==J(e,t,n)}function ne(e,t,n){return J(e,t,n)>=0}function re(e,t,n){return J(e,t,n)<=0}function ie(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return ee(e,n,r);case"!=":return te(e,n,r);case">":return Y(e,n,r);case">=":return ne(e,n,r);case"<":return X(e,n,r);case"<=":return re(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return $(t,e)},t.major=function(e,t){return new W(e,t).major},t.minor=function(e,t){return new W(e,t).minor},t.patch=function(e,t){return new W(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.compareBuild=function(e,t,n){var r=new W(e,n),i=new W(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=Y,t.lt=X,t.eq=ee,t.neq=te,t.gte=ne,t.lte=re,t.cmp=ie,t.Comparator=oe;var ae={};function se(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof se)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new se(e.raw,t);if(e instanceof oe)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ue(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function ce(e){return!e||"x"===e.toLowerCase()||"*"===e}function le(e,t,n,r,i,o,a,s,u,c,l,d,p){return((t=ce(n)?"":ce(r)?">="+n+".0.0":ce(i)?">="+n+"."+r+".0":">="+t)+" "+(s=ce(u)?"":ce(c)?"<"+(+u+1)+".0.0":ce(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+s)).trim()}function de(e,t,n){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++)if(r(e[i].semver),e[i].semver!==ae&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function pe(e,t,n){try{t=new se(t,n)}catch(e){return!1}return t.test(e)}function fe(e,t,n,r){var i,o,a,s,u;switch(e=new W(e,r),t=new se(t,r),n){case">":i=Y,o=re,a=X,s=">",u=">=";break;case"<":i=X,o=ne,a=Y,s="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pe(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var l=t.set[c],d=null,p=null;if(l.forEach((function(e){e.semver===ae&&(e=new oe(">=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:a(e.semver,p.semver,r)&&(p=e)})),d.operator===s||d.operator===u)return!1;if((!p.operator||p.operator===s)&&o(e,p.semver))return!1;if(p.operator===u&&a(e,p.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.options.loose?a[U]:a[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new W(n[2],this.options.loose):this.semver=ae},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===ae||e===ae)return!0;if("string"==typeof e)try{e=new W(e,this.options)}catch(e){return!1}return ie(e,this.operator,this.semver,this.options)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new se(e.value,t),pe(this.value,n,t));if(""===e.operator)return""===e.value||(n=new se(this.value,t),pe(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ie(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ie(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||u},t.Range=se,se.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?a[H]:a[Q];e=e.replace(n,le),r("hyphen replace",e),e=e.replace(a[V],"$1$2$3"),r("comparator trim",e,a[V]),e=(e=(e=e.replace(a[M],"$1~")).replace(a[N],"$1^")).split(/\s+/).join(" ");var i=t?a[U]:a[q],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[B]:a[D];return e.replace(n,(function(t,n,i,o,a){var s;return r("caret",e,t,n,i,o,a),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(o)?s="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":a?(r("replaceCaret pr",a),s="0"===n?"0"===i?">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+"-"+a+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===i?">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"),r("caret return",s),s}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[F]:a[_];return e.replace(n,(function(t,n,i,o,a){var s;return r("tilde",e,t,n,i,o,a),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(o)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":a?(r("replaceTilde pr",a),s=">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[I]:a[k];return e.replace(n,(function(t,n,i,o,a,s){r("xRange",e,t,n,i,o,a,s);var u=ce(i),c=u||ce(o),l=c||ce(a);return"="===n&&l&&(n=""),u?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),t=n+i+"."+o+"."+a):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),r("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[z],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(i)}))),o.map((function(e){return new oe(e,this.options)}),this)},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some((function(n){return ue(n,t)&&e.set.some((function(e){return ue(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new se(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},se.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new W(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(de(this.set[t],e,this.options))return!0;return!1},t.satisfies=pe,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new se(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&-1!==i.compare(e)||(i=new W(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new se(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&1!==i.compare(e)||(i=new W(r=e,n)))})),r},t.minVersion=function(e,t){e=new se(e,t);var n=new W("0.0.0");if(e.test(n))return n;if(n=new W("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new W(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!Y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new se(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return fe(e,t,"<",n)},t.gtr=function(e,t,n){return fe(e,t,">",n)},t.outside=fe,t.prerelease=function(e,t){var n=K(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new se(e,n),t=new se(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof W)return e;if("string"!=typeof e)return null;var n=e.match(a[L]);return null==n?null:K(n[1]+"."+(n[2]||"0")+"."+(n[3]||"0"),t)}}).call(this,n(1))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("@brightcove/studio-components"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","@brightcove/studio-components","react-dom"],t);else{var n="object"==typeof exports?t(require("react"),require("@brightcove/studio-components"),require("react-dom")):t(e.react,e["@brightcove/studio-components"],e["react-dom"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n)=>(()=>{var r={757:(e,t,n)=>{e.exports=n(666)},130:function(e){e.exports=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=2)}([function(e,t,n){(function(n){var r;t=e.exports=K,r="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var i=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],s=t.src=[],u=0,c=u++;s[c]="0|[1-9]\\d*";var l=u++;s[l]="[0-9]+";var d=u++;s[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=u++;s[p]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var f=u++;s[f]="("+s[l]+")\\.("+s[l]+")\\.("+s[l]+")";var h=u++;s[h]="(?:"+s[c]+"|"+s[d]+")";var v=u++;s[v]="(?:"+s[l]+"|"+s[d]+")";var g=u++;s[g]="(?:-("+s[h]+"(?:\\."+s[h]+")*))";var m=u++;s[m]="(?:-?("+s[v]+"(?:\\."+s[v]+")*))";var y=u++;s[y]="[0-9A-Za-z-]+";var b=u++;s[b]="(?:\\+("+s[y]+"(?:\\."+s[y]+")*))";var C=u++,A="v?"+s[p]+s[g]+"?"+s[b]+"?";s[C]="^"+A+"$";var w="[v=\\s]*"+s[f]+s[m]+"?"+s[b]+"?",E=u++;s[E]="^"+w+"$";var O=u++;s[O]="((?:<|>)?=?)";var P=u++;s[P]=s[l]+"|x|X|\\*";var x=u++;s[x]=s[c]+"|x|X|\\*";var S=u++;s[S]="[v=\\s]*("+s[x]+")(?:\\.("+s[x]+")(?:\\.("+s[x]+")(?:"+s[g]+")?"+s[b]+"?)?)?";var I=u++;s[I]="[v=\\s]*("+s[P]+")(?:\\.("+s[P]+")(?:\\.("+s[P]+")(?:"+s[m]+")?"+s[b]+"?)?)?";var j=u++;s[j]="^"+s[O]+"\\s*"+s[S]+"$";var k=u++;s[k]="^"+s[O]+"\\s*"+s[I]+"$";var R=u++;s[R]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var _=u++;s[_]="(?:~>?)";var L=u++;s[L]="(\\s*)"+s[_]+"\\s+",a[L]=new RegExp(s[L],"g");var N=u++;s[N]="^"+s[_]+s[S]+"$";var M=u++;s[M]="^"+s[_]+s[I]+"$";var T=u++;s[T]="(?:\\^)";var F=u++;s[F]="(\\s*)"+s[T]+"\\s+",a[F]=new RegExp(s[F],"g");var D=u++;s[D]="^"+s[T]+s[S]+"$";var B=u++;s[B]="^"+s[T]+s[I]+"$";var U=u++;s[U]="^"+s[O]+"\\s*("+w+")$|^$";var q=u++;s[q]="^"+s[O]+"\\s*("+A+")$|^$";var V=u++;s[V]="(\\s*)"+s[O]+"\\s*("+w+"|"+s[S]+")",a[V]=new RegExp(s[V],"g");var Q=u++;s[Q]="^\\s*("+s[S]+")\\s+-\\s+("+s[S]+")\\s*$";var z=u++;s[z]="^\\s*("+s[I]+")\\s+-\\s+("+s[I]+")\\s*$";var H=u++;s[H]="(<|>)?=?\\s*\\*";for(var W=0;W<35;W++)r(W,s[W]),a[W]||(a[W]=new RegExp(s[W]));function Z(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof K)return e;if("string"!=typeof e)return null;if(e.length>i)return null;if(!(t.loose?a[E]:a[C]).test(e))return null;try{return new K(e,t)}catch(e){return null}}function K(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof K){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>i)throw new TypeError("version is longer than "+i+" characters");if(!(this instanceof K))return new K(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?a[E]:a[C]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}t.parse=Z,t.valid=function(e,t){var n=Z(e,t);return n?n.version:null},t.clean=function(e,t){var n=Z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=K,K.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},K.prototype.toString=function(){return this.version},K.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof K||(e=new K(e,this.options)),this.compareMain(e)||this.comparePre(e)},K.prototype.compareMain=function(e){return e instanceof K||(e=new K(e,this.options)),$(this.major,e.major)||$(this.minor,e.minor)||$(this.patch,e.patch)},K.prototype.comparePre=function(e){if(e instanceof K||(e=new K(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return $(n,i)}while(++t)},K.prototype.compareBuild=function(e){e instanceof K||(e=new K(e,this.options));var t=0;do{var n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return $(n,i)}while(++t)},K.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new K(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(ee(e,t))return null;var n=Z(e),r=Z(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},t.compareIdentifiers=$;var G=/^[0-9]+$/;function $(e,t){var n=G.test(e),r=G.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function J(e,t,n){return new K(e,n).compare(new K(t,n))}function Y(e,t,n){return J(e,t,n)>0}function X(e,t,n){return J(e,t,n)<0}function ee(e,t,n){return 0===J(e,t,n)}function te(e,t,n){return 0!==J(e,t,n)}function ne(e,t,n){return J(e,t,n)>=0}function re(e,t,n){return J(e,t,n)<=0}function ie(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return ee(e,n,r);case"!=":return te(e,n,r);case">":return Y(e,n,r);case">=":return ne(e,n,r);case"<":return X(e,n,r);case"<=":return re(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return $(t,e)},t.major=function(e,t){return new K(e,t).major},t.minor=function(e,t){return new K(e,t).minor},t.patch=function(e,t){return new K(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.compareBuild=function(e,t,n){var r=new K(e,n),i=new K(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=Y,t.lt=X,t.eq=ee,t.neq=te,t.gte=ne,t.lte=re,t.cmp=ie,t.Comparator=oe;var ae={};function se(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof se)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new se(e.raw,t);if(e instanceof oe)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ue(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function ce(e){return!e||"x"===e.toLowerCase()||"*"===e}function le(e,t,n,r,i,o,a,s,u,c,l,d,p){return((t=ce(n)?"":ce(r)?">="+n+".0.0":ce(i)?">="+n+"."+r+".0":">="+t)+" "+(s=ce(u)?"":ce(c)?"<"+(+u+1)+".0.0":ce(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+s)).trim()}function de(e,t,n){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++)if(r(e[i].semver),e[i].semver!==ae&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function pe(e,t,n){try{t=new se(t,n)}catch(e){return!1}return t.test(e)}function fe(e,t,n,r){var i,o,a,s,u;switch(e=new K(e,r),t=new se(t,r),n){case">":i=Y,o=re,a=X,s=">",u=">=";break;case"<":i=X,o=ne,a=Y,s="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pe(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var l=t.set[c],d=null,p=null;if(l.forEach((function(e){e.semver===ae&&(e=new oe(">=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:a(e.semver,p.semver,r)&&(p=e)})),d.operator===s||d.operator===u)return!1;if((!p.operator||p.operator===s)&&o(e,p.semver))return!1;if(p.operator===u&&a(e,p.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.options.loose?a[U]:a[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new K(n[2],this.options.loose):this.semver=ae},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===ae||e===ae)return!0;if("string"==typeof e)try{e=new K(e,this.options)}catch(e){return!1}return ie(e,this.operator,this.semver,this.options)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new se(e.value,t),pe(this.value,n,t));if(""===e.operator)return""===e.value||(n=new se(this.value,t),pe(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ie(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ie(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||u},t.Range=se,se.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?a[z]:a[Q];e=e.replace(n,le),r("hyphen replace",e),e=e.replace(a[V],"$1$2$3"),r("comparator trim",e,a[V]),e=(e=(e=e.replace(a[L],"$1~")).replace(a[F],"$1^")).split(/\s+/).join(" ");var i=t?a[U]:a[q],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[B]:a[D];return e.replace(n,(function(t,n,i,o,a){var s;return r("caret",e,t,n,i,o,a),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(o)?s="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":a?(r("replaceCaret pr",a),s="0"===n?"0"===i?">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+"-"+a+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===i?">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"),r("caret return",s),s}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[M]:a[N];return e.replace(n,(function(t,n,i,o,a){var s;return r("tilde",e,t,n,i,o,a),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(o)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":a?(r("replaceTilde pr",a),s=">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[k]:a[j];return e.replace(n,(function(t,n,i,o,a,s){r("xRange",e,t,n,i,o,a,s);var u=ce(i),c=u||ce(o),l=c||ce(a);return"="===n&&l&&(n=""),u?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),t=n+i+"."+o+"."+a):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),r("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[H],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(i)}))),o.map((function(e){return new oe(e,this.options)}),this)},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some((function(n){return ue(n,t)&&e.set.some((function(e){return ue(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new se(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},se.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new K(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(de(this.set[t],e,this.options))return!0;return!1},t.satisfies=pe,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new se(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&-1!==i.compare(e)||(i=new K(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new se(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&1!==i.compare(e)||(i=new K(r=e,n)))})),r},t.minVersion=function(e,t){e=new se(e,t);var n=new K("0.0.0");if(e.test(n))return n;if(n=new K("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new K(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!Y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new se(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return fe(e,t,"<",n)},t.gtr=function(e,t,n){return fe(e,t,">",n)},t.outside=fe,t.prerelease=function(e,t){var n=Z(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new se(e,n),t=new se(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof K)return e;if("string"!=typeof e)return null;var n=e.match(a[R]);return null==n?null:Z(n[1]+"."+(n[2]||"0")+"."+(n[3]||"0"),t)}}).call(this,n(1))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);
|
|
2
2
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
3
|
-
var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=["catalogSearch","catalogSequence"],o=["adConfigId","applicationId","catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId","interactivityProjectId"],a=function(e){return Object.keys(e).filter((function(e){return-1!==o.indexOf(e)})).reduce((function(t,n){var r=function(e,t){if(e&&void 0!==e[t]){if("string"!=typeof e[t]&&-1!==i.indexOf(t))try{return encodeURIComponent(JSON.stringify(e[t]))}catch(e){return}return encodeURIComponent(String(e[t]).trim())||void 0}}(e,n);return void 0!==r&&(t+=t?"&":"?",t+=encodeURIComponent(n)+"="+r),t}),"")},s=function(e){var t=e.accountId,n=e.base,i=void 0===n?"https://players.brightcove.net":n,o=e.playerId,s=void 0===o?"default":o,u=e.embedId,c=void 0===u?"default":u,l=e.iframe,d=void 0!==l&&l,p=e.minified,f=void 0===p||p,h=e.queryParams,v=void 0===h?null:h,g="";d?g+="html":(f&&(g+="min."),g+="js"),"/"===i.charAt(i.length-1)&&(i=i.substring(0,i.length-1));var m="";return d&&v&&"object"===(void 0===v?"undefined":r(v))&&(m=a(v)),i+"/"+(t=encodeURIComponent(t))+"/"+(s=encodeURIComponent(s))+"_"+(c=encodeURIComponent(c))+"/index."+g+m};s.VERSION="1.2.0";var u=s,c={playerId:"default",embedId:"default",iframe:!1,includeScriptElement:!0,minified:!0,returnDomElement:!1,preview:!1,playlistElement:!1,legacyPlaylistElement:!1,playlistIsHorizontal:!0,formatter:function(e){return e},width:960,height:540,units:"px",responsive:!0,applicationId:"",allowFullscreen:!0,allowEncryptedMedia:!0,pictureInPicture:!1,responsiveHeight:"56.25%"};function l(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.responsive&&!t.width&&(n.width=100,n.units="%"),n}var d={createIframeEmbedCode:function(e,t){t=l(c,t);var n,r=e.createElement("div"),i=e.createElement("iframe");if(t.preview)n=(t.urlBase?t.urlBase:"//preview-players.brightcove.net")+"/v2/accounts/"+t.accountId+"/players/"+t.playerId+"/preview/embeds/"+t.embedId+"/master/index.html",t.videoId&&(n+="?videoId="+t.videoId),t.interactivityProjectId&&(n+="?interactivityProjectId="+t.interactivityProjectId);else{var o={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,iframe:!0,minified:t.minified,queryParams:{videoId:t.videoId,playlistId:t.playlistId,interactivityProjectId:t.interactivityProjectId,adConfigId:t.adConfigId,applicationId:t.applicationId,catalogSearch:t.catalogSearch,catalogSequence:t.catalogSequence}};t.urlBase&&(o.base=t.urlBase),n=u(o)}if(t.returnDomElement?i.setAttribute("src",n):i.setAttribute("fzrsbrxzyeajgdaxuxqu",n),t.allowFullscreen&&i.setAttribute("allowfullscreen",""),t.allowEncryptedMedia&&i.setAttribute("allow","encrypted-media"),t.responsive){var a=e.createElement("div"),s=e.createElement("div");a.setAttribute("style","position: relative; display: block; max-width: ".concat(t.width).concat(t.units,";")),s.setAttribute("style","padding-top: ".concat(t.responsiveHeight,";")),i.setAttribute("style","position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%;"),r.appendChild(a),a.appendChild(s),s.appendChild(i)}else"px"!==t.units?i.setAttribute("style","width: ".concat(t.width).concat(t.units,"; height: ").concat(t.height).concat(t.units,";")):(i.setAttribute("width",t.width),i.setAttribute("height",t.height)),r.appendChild(i);return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src")).replace("&","&")}},p=n(0),f=n.n(p);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v={createInpageEmbedCode:function(e,t){if((t=l(c,t)).preview)throw new Error("You cannot preview an in-page embed");var n,r=e.createElement("div"),i=e.createElement("div");if(t.playerVersion&&f.a.gt("6.11.0",t.playerVersion)?(n=e.createElement("video")).classList.add("video-js"):n=e.createElement("video-js"),n.setAttribute("data-account",t.accountId),n.setAttribute("data-player",t.playerId),n.setAttribute("data-embed",t.embedId),n.setAttribute("controls",""),void 0!==t.videoId&&n.setAttribute("data-video-id",t.videoId),void 0!==t.playlistId&&n.setAttribute("data-playlist-id",t.playlistId),void 0!==t.interactivityProjectId&&n.setAttribute("data-interactivity-project-id",t.interactivityProjectId),void 0!==t.adConfigId&&n.setAttribute("data-ad-config-id",t.adConfigId),void 0!==t.applicationId&&n.setAttribute("data-application-id",t.applicationId),void 0!==t.catalogSearch&&("object"===h(t.catalogSearch)?n.setAttribute("data-catalog-search",JSON.stringify(t.catalogSearch)):n.setAttribute("data-catalog-search",String(t.catalogSearch))),void 0!==t.catalogSequence&&n.setAttribute("data-catalog-sequence",JSON.stringify(t.catalogSequence)),void 0!==t.audience&&"object"===h(t.audience)&&(void 0!==t.audience.integration&&n.setAttribute("data-bc-integrationid",t.audience.integration),void 0!==t.audience.leadForm&&n.setAttribute("data-bc-leadformid",t.audience.leadForm)),t.responsive){var o=e.createElement("style");o.innerHTML="video-js.video-js.vjs-fluid:not(.vjs-audio-only-mode) {padding-top: ".concat(t.responsiveHeight,";}");var a="max-width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",a),i.appendChild(o)}else{var s="width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",s),n.setAttribute("width",t.width),n.setAttribute("height",t.height)}if(n.classList.add("vjs-fluid"),i.appendChild(n),r.appendChild(i),t.pictureInPicture){var d=e.createElement("div");d.classList.add("vjs-pip-container"),d.appendChild(r.firstChild),r.appendChild(d)}if(t.playlistElement)if(t.playlistIsHorizontal){var p=e.createElement("div");p.setAttribute("class","vjs-playlist"),i.appendChild(p)}else i.classList.add("vjs-playlist-player-container");if(t.includeScriptElement){var v=e.createElement("script"),g={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,minified:t.minified};t.urlBase&&(g.base=t.urlBase),t.returnDomElement?v.setAttribute("src",u(g)):v.setAttribute("fzrsbrxzyeajgdaxuxqu",u(g)),r.appendChild(v)}if(t.legacyPlaylistElement&&!t.playlistElement){var m=e.createElement("ol");m.setAttribute("class","vjs-playlist"),r.appendChild(m)}return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src"))}};function g(e){if(void 0===e)throw new Error("options object is required");if(void 0===e.accountId)throw new Error("accountId is required");if(!e.document&&"undefined"==typeof window)throw new Error("No document object found. If you are running this project outside of a browser, pass a `document` option using a library such as jsdom.");var t=void 0!==e.document?e.document:window.document;return e.iframe?d.createIframeEmbedCode(t,e):v.createInpageEmbedCode(t,e)}n.d(t,"default",(function(){return g}))}]).default},946:(e,t,n)=>{"use strict";t.Xo=void 0;var r=n(306);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var o=function(e){var t=e.apiConfig;return{origin:(0,r.getPlayersOrigin)(t),accountId:(0,r.getAccountId)(t)}};t.Xo=function(e){var t,n=e.apiConfig,a=(t=i({},o({apiConfig:n}))).origin+"/v1/accounts/"+t.accountId+"/players";return(0,r.buildGetForPath)({path:a})}},306:(e,t)=>{"use strict";t.__esModule=!0,t.buildDeleteForPath=t.buildPostForPath=t.buildFilePutForPath=t.buildPutForPath=t.buildPatchForPath=t.buildGetWithParamsForPath=t.buildGetForPath=t.getAccountId=t.getPlaybackRightsOrigin=t.getPolicyOrigin=t.getSocialAPIOrigin=t.getDeliverySystemOrigin=t.getAudienceOrigin=t.getGalleryOrigin=t.getOAuthVersion=t.getOAuthOrigin=t.getNuCMSOrigin=t.getBeaconOrigin=t.getAccountsOrigin=t.getAuthIntegrationVersion=t.getAuthIntegrationOrigin=t.getSettingsOrigin=t.getIngestOrigin=t.getIngestProfilesOrigin=t.getPlayersOrigin=t.getAnalyticsOrigin=t.getSavedSearchOrigin=t.getliveSsaiOrigin=t.getSSAIOrigin=t.getCMSAPIOrigin=void 0;t.getCMSAPIOrigin=function(e){return e.api.cms.origin};t.getSSAIOrigin=function(e){return e.api.ssai.origin};t.getliveSsaiOrigin=function(e){return e.api.alive.origin};t.getSavedSearchOrigin=function(e){return e.api.savedsearch.origin};t.getAnalyticsOrigin=function(e){return e.api.analytics.origin};t.getPlayersOrigin=function(e){return e.api.players.origin};t.getIngestProfilesOrigin=function(e){return e.api["ingest-profiles"].origin};t.getIngestOrigin=function(e){return e.api.ingest.origin};t.getSettingsOrigin=function(e){return e.api.seti.origin};t.getAuthIntegrationOrigin=function(e){return e.api["auth-integration"].origin};t.getAuthIntegrationVersion=function(e){return e.api["auth-integration"].version};t.getAccountsOrigin=function(e){return e.api.accounts.origin};t.getBeaconOrigin=function(e){return e.api.beacon.origin};t.getNuCMSOrigin=function(e){return e.api.nucms.origin};t.getOAuthOrigin=function(e){return e.api.oauth.origin};t.getOAuthVersion=function(e){return e.api.oauth.version};t.getGalleryOrigin=function(e){return e.api.gallery?e.api.gallery.origin:"https://gallery.api.brightcove.com"};t.getAudienceOrigin=function(e){return e.api.audience.origin};t.getDeliverySystemOrigin=function(e){return e.api.repos.origin};t.getSocialAPIOrigin=function(e){return e.api.social.origin};t.getPolicyOrigin=function(e){return e.api.policy.origin};t.getPlaybackRightsOrigin=function(e){return e.api["playback-rights"].origin};t.getAccountId=function(e){return e.publisherId};var n=function(e){return{path:e.path,method:"GET"}};t.buildGetForPath=n;t.buildGetWithParamsForPath=function(e){var t=e.path,r=e.data,i=n({path:t});if(r){var o=Object.keys(r).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(r[e])}));o.length&&(i.path=i.path+"?"+o.join("&"))}return i};var r=function(e){var t=e.path,n=e.data;return{path:t,method:e.method,data:JSON.stringify(n)}};t.buildPatchForPath=function(e){var t=e.path,n=e.data;return r({method:"PATCH",path:t,data:n})};t.buildPutForPath=function(e){var t=e.path,n=e.data;return r({method:"PUT",path:t,data:n})};t.buildFilePutForPath=function(e){return function(e){var t=e.path,n=e.data,r=e.headers;return{path:t,method:e.method,data:n,headers:r}}({method:"PUT",path:e.path,data:e.data,headers:e.headers})};t.buildPostForPath=function(e){var t=e.path,n=e.data;return r({method:"POST",path:t,data:n})};t.buildDeleteForPath=function(e){return{path:e.path,method:"DELETE"}}},826:(e,t,n)=>{"use strict";t.P=void 0;var r=n(306);t.P=function(e){var t=e.longUrl;return(0,r.buildGetWithParamsForPath)({path:"/shortener/shorten",data:{longUrl:t}})}},17:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(537),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([e.id,".EmbedCode__hint--Fh40S{padding-top:2px}.EmbedCode__input--ZO6KQ{margin:0 !important;padding-bottom:4px !important}.EmbedCode__textArea--KNDhC{color:#aaa !important;background-color:#ddd !important;border:none !important;resize:none}.EmbedCode__copyInput--tkc7M{margin:0 !important;padding-bottom:4px !important}.EmbedCode__copyInput--tkc7M .EmbedCode__textAreaDimensions--N_Vil{height:210px;width:390px}.EmbedCode__helperText--gWEii{color:#999;font-size:14px}a.EmbedCode__copyLink--9tc06{text-decoration:none;cursor:pointer;padding-left:4px}.EmbedCode__hint--Fh40S{padding-top:2px}.EmbedCode__input--ZO6KQ{margin:0 !important;padding-bottom:4px !important}.EmbedCode__textArea--KNDhC{color:#8e9093 !important;background-color:#f2f2f3 !important;border:none !important;resize:none}.EmbedCode__copyInput--tkc7M{margin:0 !important;padding-bottom:4px !important}.EmbedCode__copyInput--tkc7M .EmbedCode__textAreaDimensions--N_Vil{height:210px;width:390px}.EmbedCode__helperText--gWEii{color:#4d5056;font-size:14px}a.EmbedCode__copyLink--9tc06{text-decoration:none;font-weight:700;cursor:pointer;padding-left:4px}","",{version:3,sources:["webpack://./src/styles/EmbedCode.sass"],names:[],mappings:"AAIE,wBACE,eAAA,CACF,yBACE,mBAAA,CACA,6BAAA,CACF,4BACE,qBAAA,CACA,gCAAA,CACA,sBAAA,CACA,WAAA,CACF,6BACE,mBAAA,CACA,6BAAA,CACA,mEACE,YAAA,CACA,WAAA,CACJ,8BACE,UAAA,CACA,cAAA,CACF,6BACE,oBAAA,CAEA,cAAA,CACA,gBAAA,CAvBF,wBACE,eAAA,CACF,yBACE,mBAAA,CACA,6BAAA,CACF,4BACE,wBAAA,CACA,mCAAA,CACA,sBAAA,CACA,WAAA,CACF,6BACE,mBAAA,CACA,6BAAA,CACA,mEACE,YAAA,CACA,WAAA,CACJ,8BACE,aAAA,CACA,cAAA,CACF,6BACE,oBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA",sourcesContent:["@import './base.sass'\n\n@include themed() using ($theme)\n // Override studio-components styles\n .hint\n padding-top: 2px\n .input\n margin: 0 !important\n padding-bottom: 4px !important\n .textArea\n color: theme($theme, gray-35) !important\n background-color: theme($theme, gray-20) !important\n border: none !important\n resize: none\n .copyInput\n margin: 0 !important\n padding-bottom: 4px !important\n .textAreaDimensions\n height: 210px\n width: 390px\n .helperText\n color: theme($theme, gray-40)\n font-size: 14px\n a.copyLink\n text-decoration: none\n font-weight: theme($theme, body-small-weight-bold)\n cursor: pointer\n padding-left: 4px\n"],sourceRoot:""}]),a.locals={hint:"EmbedCode__hint--Fh40S",input:"EmbedCode__input--ZO6KQ",textArea:"EmbedCode__textArea--KNDhC",copyInput:"EmbedCode__copyInput--tkc7M",textAreaDimensions:"EmbedCode__textAreaDimensions--N_Vil",helperText:"EmbedCode__helperText--gWEii",copyLink:"EmbedCode__copyLink--9tc06"};const s=a},94:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(537),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([e.id,'.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__redHelperText--y3MVU{color:#d53c00;font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaTitle--apmXI{color:#444;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#999;font-size:.875rem;font-weight:400}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:Lato,Helvetica,Arial,sans-serif;font-size:.933rem;font-weight:700;line-height:24px;letter-spacing:normal;color:#666;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__redHelperText--y3MVU{color:#d33d00;font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaTitle--apmXI{color:#01050e;font-size:1.333rem;font-weight:800;line-height:28px;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#4d5056;font-size:.875rem;font-weight:normal}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:"Public Sans",sans-serif;font-size:.875rem;font-weight:700;line-height:20px;letter-spacing:auto;color:#01050e;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}',"",{version:3,sources:["webpack://./src/styles/EmbedCodeModal.sass"],names:[],mappings:"AAGE,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,UAAA,CAIA,oBAAA,CACF,yJACE,UAAA,CACA,iBAAA,CACA,eAAA,CACF,wFACE,2CAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA,CAvDJ,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,aAAA,CACA,kBAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACF,yJACE,aAAA,CACA,iBAAA,CACA,kBAAA,CACF,wFACE,oCAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,mBAAA,CACA,aAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA",sourcesContent:["@import './base.sass'\n\n@include themed() using ($theme)\n .videoDetailsContainer\n margin-bottom: 27px\n .leftContent\n width: 540px\n margin-right: 43px\n .rightContent\n flex-grow: 1\n .mediaData\n margin-top: 23px\n padding: 0\n .redHelperText\n color: theme($theme, red)\n font-size: 14px\n .mediaTitle\n color: theme($theme, text-primary-dark)\n font-size: theme($theme, heading-xs-size)\n font-weight: theme($theme, heading-weight)\n line-height: theme($theme, heading-xs-line-height)\n word-break: break-all\n .text\n color: theme($theme, gray-40)\n font-size: theme($theme, body-small-text-size)\n font-weight: theme($theme, body-small-weight-normal)\n .playerSelectLabel\n font-family: theme($theme, label-font)\n font-size: theme($theme, label-font-size)\n font-weight: theme($theme, label-font-weight)\n line-height: theme($theme, label-line-height)\n letter-spacing: theme($theme, label-letter-spacing)\n color: theme($theme, label-color)\n padding: 0 0 .4rem\n .playerSelect\n width: 100%\n .getURLBtnContainer\n display: inline-flex\n .getURLBtnSpinner\n left: -5px\n position: relative\n margin-right: 8px\n .mediaId\n @extend .text\n margin-bottom: 25px\n .tooltip\n margin-left: theme($theme, padding-sm)\n .customPluginNotice\n font-size: 14px\n .playerLoader\n video-js\n width: 539px !important\n height: 303.2px !important\n margin-bottom: theme($theme, padding-sm)\n iframe\n width: 539px !important\n height: 303.2px !important\n .previewButton\n align-self: center\n\n"],sourceRoot:""}]),a.locals={videoDetailsContainer:"EmbedCodeModal__videoDetailsContainer--WP99B",leftContent:"EmbedCodeModal__leftContent--BIBZB",rightContent:"EmbedCodeModal__rightContent--BDlYZ",mediaData:"EmbedCodeModal__mediaData--f0wqn",redHelperText:"EmbedCodeModal__redHelperText--y3MVU",mediaTitle:"EmbedCodeModal__mediaTitle--apmXI",text:"EmbedCodeModal__text--ayO8f",mediaId:"EmbedCodeModal__mediaId--GymNT",playerSelectLabel:"EmbedCodeModal__playerSelectLabel--w3Ig6",playerSelect:"EmbedCodeModal__playerSelect--rvojt",getURLBtnContainer:"EmbedCodeModal__getURLBtnContainer--MIRx8",getURLBtnSpinner:"EmbedCodeModal__getURLBtnSpinner--VxbOG",tooltip:"EmbedCodeModal__tooltip--vxe8W",customPluginNotice:"EmbedCodeModal__customPluginNotice--VQKaP",playerLoader:"EmbedCodeModal__playerLoader--IgdsR",previewButton:"EmbedCodeModal__previewButton--CFh55"};const s=a},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},537:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([o]).join("\n")}return[t].join("\n")}},852:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},747:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.S});var r=n(61),i=n(755);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}})},909:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,j:()=>i});var r=console;function i(){return r}function o(e){r=e}},101:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(288),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},68:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.l))},61:(e,t,n)=>{"use strict";n.d(t,{S:()=>y});var r=n(462),i=n(288),o=n(578),a=n(101),s=n(909),u=n(216),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=(0,i.SE)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var d=(0,i.mc)(this.queryKey),p=(0,i.G9)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(p)return a.abortSignalConsumed=!0,p.signal}});var h,v,g={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(h=this.options.behavior)||h.onFetch(g));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=g.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(v=g.fetchOptions)?void 0:v.meta});return this.retryer=new u.m4({fn:g.fetchFn,abort:null==p||null==(o=p.abort)?void 0:o.bind(p),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,u.DV)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,u.DV)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.j)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,i;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return(0,u.DV)(o)&&o.revert&&this.revertState?(0,r.Z)({},this.revertState):(0,r.Z)({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),l=n(943),d=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:(0,i.Rm)(o,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,i.I6)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,i._x)(n,e)}))},n.findAll=function(e,t){var n=(0,i.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return(0,i._x)(n,e)})):this.queries},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(l.l),p=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(i.ZT).catch(i.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,s.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new u.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();var f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new p({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,i.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,i.X7)(e,t)}))},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(i.ZT)}))}),Promise.resolve())}))},t}(l.l),h=n(852),v=n(68);function g(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function m(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=h.j.subscribe((function(){h.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=v.N.subscribe((function(){h.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,i.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=(0,i._v)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return a.V.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,i.I6)(e,t)[0],r=this.queryCache;a.V.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],c=s[1],l=this.queryCache,d=(0,r.Z)({},u,{active:!0});return a.V.batch((function(){return l.findAll(u).forEach((function(e){e.reset()})),o.refetchQueries(d,c)}))},t.cancelQueries=function(e,t,n){var r=this,o=(0,i.I6)(e,t,n),s=o[0],u=o[1],c=void 0===u?{}:u;void 0===c.revert&&(c.revert=!0);var l=a.V.batch((function(){return r.queryCache.findAll(s).map((function(e){return e.cancel(c)}))}));return Promise.all(l).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,n){var o,s,u,c=this,l=(0,i.I6)(e,t,n),d=l[0],p=l[1],f=(0,r.Z)({},d,{active:null==(o=null!=(s=d.refetchActive)?s:d.active)||o,inactive:null!=(u=d.refetchInactive)&&u});return a.V.batch((function(){return c.queryCache.findAll(d).forEach((function(e){e.invalidate()})),c.refetchQueries(f,p)}))},t.refetchQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],c=s[1],l=a.V.batch((function(){return o.queryCache.findAll(u).map((function(e){return e.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))}))})),d=Promise.all(l).then(i.ZT);return(null==c?void 0:c.throwOnError)||(d=d.catch(i.ZT)),d},t.fetchQuery=function(e,t,n){var r=(0,i._v)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,i._v)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,a,s,c,l=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,p=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),v=(null==(a=e.state.data)?void 0:a.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,i.G9)(),C=null==b?void 0:b.signal,A=y,w=!1,O=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},E=function(e,t,n,r){return A=r?[t].concat(A):[].concat(A,[t]),r?[n].concat(e):[].concat(e,[n])},P=function(t,n,r,i){if(w)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:C,pageParam:r,meta:e.meta},a=O(o),s=Promise.resolve(a).then((function(e){return E(t,r,e,i)}));return(0,u.LE)(a)&&(s.cancel=a.cancel),s};if(v.length)if(f){var x=void 0!==p,S=x?p:g(e.options,v);c=P(v,x,S)}else if(h){var j=void 0!==p,k=j?p:m(e.options,v);c=P(v,j,k,!0)}else!function(){A=[];var t=void 0===e.options.getNextPageParam,n=!l||!v[0]||l(v[0],0,v);c=n?P([],t,y[0]):Promise.resolve(E([],y[0],v[0]));for(var r=function(n){c=c.then((function(r){if(!l||!v[n]||l(v[n],n,v)){var i=t?y[n]:g(e.options,r);return P(r,t,i)}return Promise.resolve(E(r,y[n],v[n]))}))},i=1;i<v.length;i++)r(i)}();else c=P([]);var I=c.then((function(e){return{pages:e,pageParams:A}}));return I.cancel=function(){w=!0,null==b||b.abort(),(0,u.LE)(c)&&c.cancel()},I}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this,t=a.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,i.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,i.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},216:(e,t,n)=>{"use strict";n.d(t,{DV:()=>c,LE:()=>s,m4:()=>l});var r=n(852),i=n(68),o=n(288);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,d=this,p=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){p=!0},this.continueRetry=function(){p=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},h=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!d.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!d.isResolved&&(h(new u(e)),null==d.abort||d.abort(),s(l)))try{l.cancel()}catch(e){}},d.isTransportCancelable=s(l),Promise.resolve(l).then(f).catch((function(t){var s,u;if(!d.isResolved){var l=null!=(s=e.retry)?s:3,f=null!=(u=e.retryDelay)?u:a,v="function"==typeof f?f(d.failureCount,t):f,g=!0===l||"number"==typeof l&&d.failureCount<l||"function"==typeof l&&l(d.failureCount,t);!p&&g?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,o.Gh)(v).then((function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise((function(t){n=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){p?h(t):c()}))):h(t)}}))}}()}},943:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},755:()=>{},288:(e,t,n)=>{"use strict";n.d(t,{A4:()=>E,G9:()=>P,Gh:()=>O,I6:()=>d,Kp:()=>c,PN:()=>s,Q$:()=>y,Rm:()=>h,SE:()=>a,VS:()=>b,X7:()=>f,ZT:()=>o,_v:()=>l,_x:()=>p,mc:()=>u,sk:()=>i,to:()=>g,yF:()=>v});var r=n(462),i="undefined"==typeof window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return w(e)?"function"==typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function d(e,t,n){return w(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function p(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(w(s))if(r){if(t.queryHash!==h(s,t.options))return!1}else if(!g(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function f(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(w(o)){if(!t.options.mutationKey)return!1;if(n){if(v(t.options.mutationKey)!==v(o))return!1}else if(!g(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||v)(e)}function v(e){var t,n=u(e);return t=n,JSON.stringify(t,(function(e,t){return C(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function g(e,t){return m(u(e),u(t))}function m(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!m(e[n],t[n])})))}function y(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||C(e)&&C(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u<o;u++){var c=n?u:i[u];a[c]=y(e[c],t[c]),a[c]===e[c]&&s++}return r===o&&s===r?e:a}return t}function b(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function C(e){if(!A(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!A(n)&&!!n.hasOwnProperty("isPrototypeOf")}function A(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e||Array.isArray(e)}function O(e){return new Promise((function(t){setTimeout(t,e)}))}function E(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function P(){if("function"==typeof AbortController)return new AbortController}},767:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.QueryClient,QueryClientProvider:()=>i.QueryClientProvider,useQuery:()=>i.useQuery});var r=n(747);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}});var i=n(446)},446:(e,t,n)=>{"use strict";n.d(t,{QueryClientProvider:()=>f,useQuery:()=>j});var r=n(101),i=n(111),o=n.n(i)().unstable_batchedUpdates;r.V.setBatchNotifyFunction(o);var a=n(909),s=console;(0,a.E)(s);var u=n(156),c=n.n(u),l=c().createContext(void 0),d=c().createContext(!1);function p(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var f=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;c().useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var o=p(r);return c().createElement(d.Provider,{value:r},c().createElement(o.Provider,{value:t},i))},h=n(462),v=n(578),g=n(288),m=n(852),y=n(943),b=n(216),C=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,v.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),A(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return w(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return w(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&O(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,h.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(g.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!g.sk&&!this.currentResult.isStale&&(0,g.PN)(this.options.staleTime)){var t=(0,g.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!g.sk&&!1!==this.options.enabled&&(0,g.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||m.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},n.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,o=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,c=e!==r,l=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,p=e.state,f=p.dataUpdatedAt,h=p.error,v=p.errorUpdatedAt,m=p.isFetching,y=p.status,b=!1,C=!1;if(t.optimisticResults){var w=this.hasListeners(),P=!w&&A(e,t),x=w&&O(e,r,t,i);(P||x)&&(m=!0,f||(y="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)n=d.data,f=d.dataUpdatedAt,y=d.status,b=!0;else if(t.select&&void 0!==p.data)if(o&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),!1!==t.structuralSharing&&(n=(0,g.Q$)(null==o?void 0:o.data,n)),this.selectResult=n,this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}else n=p.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===y||"idle"===y)){var S;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))S=o.data;else if(S="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==S)try{S=t.select(S),!1!==t.structuralSharing&&(S=(0,g.Q$)(null==o?void 0:o.data,S)),this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}void 0!==S&&(y="success",n=S,C=!0)}return this.selectError&&(h=this.selectError,n=this.selectResult,v=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:n,dataUpdatedAt:f,error:h,errorUpdatedAt:v,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:C,isPreviousData:b,isRefetchError:"error"===y&&0!==p.dataUpdatedAt,isStale:E(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,g.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,h.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,b.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(y.l);function A(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&w(e,t,t.refetchOnMount)}function w(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&E(e,t)}return!1}function O(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&E(e,n)}function E(e,t){return e.isStaleByTime(t.staleTime)}function P(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var x=c().createContext(P());function S(e,t){var n=c().useRef(!1),i=c().useState(0)[1],o=function(){var e=c().useContext(p(c().useContext(d)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e}(),a=c().useContext(x),s=o.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=r.V.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=r.V.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=r.V.batchCalls(s.onSettled)),s.suspense&&("number"!=typeof s.staleTime&&(s.staleTime=1e3),0===s.cacheTime&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(a.isReset()||(s.retryOnMount=!1));var u,l,f,h=c().useState((function(){return new t(o,s)}))[0],v=h.getOptimisticResult(s);if(c().useEffect((function(){n.current=!0,a.clearReset();var e=h.subscribe(r.V.batchCalls((function(){n.current&&i((function(e){return e+1}))})));return h.updateResult(),function(){n.current=!1,e()}}),[a,h]),c().useEffect((function(){h.setOptions(s,{listeners:!1})}),[s,h]),s.suspense&&v.isLoading)throw h.fetchOptimistic(s).then((function(e){var t=e.data;null==s.onSuccess||s.onSuccess(t),null==s.onSettled||s.onSettled(t,null)})).catch((function(e){a.clearReset(),null==s.onError||s.onError(e),null==s.onSettled||s.onSettled(void 0,e)}));if(v.isError&&!a.isReset()&&!v.isFetching&&(u=s.suspense,l=s.useErrorBoundary,f=[v.error,h.getCurrentQuery()],"function"==typeof l?l.apply(void 0,f):"boolean"==typeof l?l:u))throw v.error;return"tracked"===s.notifyOnChangeProps&&(v=h.trackResult(v,s)),v}function j(e,t,n){return S((0,g._v)(e,t,n),C)}},666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new j(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){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===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",v={};function g(){}function m(){}function y(){}var b={};u(b,o,(function(){return this}));var C=Object.getPrototypeOf,A=C&&C(C(k([])));A&&A!==n&&r.call(A,o)&&(b=A);var w=y.prototype=g.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function P(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function k(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return m.prototype=y,u(w,"constructor",y),u(y,"constructor",m),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},O(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new E(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(w),u(w,s,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;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),S(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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var u=e[s],c=r.base?u[0]+r.base:u[0],l=o[c]||0,d="".concat(c," ").concat(l);o[c]=l+1;var p=n(d),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=i(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var u=r(e,i),c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=u}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},609:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},494:e=>{"use strict";e.exports=r},66:e=>{"use strict";e.exports=t},156:t=>{"use strict";t.exports=e},111:e=>{"use strict";e.exports=n},462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var s={};return(()=>{"use strict";function e(e){if(Array.isArray(e))return e}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,i){return e(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,i)||n(t,i)||r()}a.r(s),a.d(s,{EmbedCodeModal:()=>bn,EmbedCodeModalTypes:()=>Ee});var o=a(156),u=a.n(o);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}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}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v,g={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},m=u().createContext();function y(){return g}var b=function(){function e(){c(this,e),this.usedNamespaces={}}return d(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function C(){return v}var A={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g=h(h({},g),e)}(e.options.react),function(e){v=e}(e)}};function w(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=(0,o.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,o.createElement)(m.Provider,{value:i},r)}var O=a(66),E=a(767);function P(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var x={};function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&x[t[0]]||("string"==typeof t[0]&&(x[t[0]]=new Date),P.apply(void 0,t))}function j(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))))}function I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return S("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):k(e,t,n)}function L(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,o.useContext)(m)||{},a=r.i18n,s=r.defaultNS,u=n||a||C();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new b),!u){S("You will need to pass in an i18next instance by using initReactI18next");var c=function(e){return Array.isArray(e)?e[e.length-1]:e},l=[c,{},!1];return l.t=c,l.i18n={},l.ready=!1,l}u.options.react&&void 0!==u.options.react.wait&&S("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=R(R(R({},y()),u.options.react),t),p=d.useSuspense,f=d.keyPrefix,h=e||s||u.options&&u.options.defaultNS;h="string"==typeof h?[h]:h||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(h);var v=(u.isInitialized||u.initializedStoreOnce)&&h.every((function(e){return I(e,u,d)}));function g(){return u.getFixedT(null,"fallback"===d.nsMode?h:h[0],f)}var A=(0,o.useState)(g),w=i(A,2),O=w[0],E=w[1],P=(0,o.useRef)(!0);(0,o.useEffect)((function(){var e=d.bindI18n,t=d.bindI18nStore;function n(){P.current&&E(g)}return P.current=!0,v||p||j(u,h,(function(){P.current&&E(g)})),e&&u&&u.on(e,n),t&&u&&u.store.on(t,n),function(){P.current=!1,e&&u&&e.split(" ").forEach((function(e){return u.off(e,n)})),t&&u&&t.split(" ").forEach((function(e){return u.store.off(e,n)}))}}),[u,h.join()]);var x=(0,o.useRef)(!0);(0,o.useEffect)((function(){P.current&&!x.current&&E(g),x.current=!1}),[u]);var k=[O,u,v];if(k.t=O,k.i18n=u,k.ready=v,v)return k;if(!v&&!p)return k;throw new Promise((function(e){j(u,h,(function(){e()}))}))}var _=a(130),F=a.n(_),T="PUBLISHING";function N(){return"qa"===function(){var e;return(null===(e=window.StudioModule)||void 0===e?void 0:e.config.product.env)||"production"}()}function D(){return N()?"https://bc-players-qa.s3.amazonaws.com/":"https://players.brightcove.net/"}function B(e){return e.sort((function(e,t){return e.label.localeCompare(t.label)}))}var U=function(e){var t=e.accountId,n=e.videoId,r=e.interactivityProjectId,i=e.playerId,o=new URLSearchParams;r&&o.append("interactivityProjectId",r),n&&o.append("videoId",n);var a=o.toString();return"".concat(D()).concat(t,"/").concat(i,"_default/index.html").concat(""!==a?"?".concat(a):"")};var q=function(e,t){return"".concat(N()?"https://preview-players.qa.brightcove.net":"https://preview-players.brightcove.net","/v2/accounts/").concat(e,"/players/").concat(t,"/preview/embeds/default/master/index.html")},V=function(){return window.StudioModule},Q=function(){return window.brightcove};var H=function(){return"".concat((null===(e=V())||void 0===e||null===(t=e.config)||void 0===t||null===(n=t.product)||void 0===n?void 0:n.path)||"/products/videocloud","/players");var e,t,n},z=a(379),Z=a.n(z),K=a(795),W=a.n(K),G=a(569),$=a.n(G),J=a(565),Y=a.n(J),X=a(609),ee=a.n(X),te=a(589),ne=a.n(te),re=a(17),ie={};ie.styleTagTransform=ne(),ie.setAttributes=Y(),ie.insert=$().bind(null,"head"),ie.domAPI=W(),ie.insertStyleElement=ee();Z()(re.Z,ie);const oe=re.Z&&re.Z.locals?re.Z.locals:void 0;function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue={responsive:!1,width:960,height:540,urlBase:D(),playlistIsHorizontal:!0},ce=function(e){var t=M().t,n=i((0,o.useState)(""),2),r=n[0],a=n[1];(0,o.useEffect)((function(){var t=function(e){return Object.assign({},se(se({},ue),e))}(e),n=F()(t);a(n)}),[e]);var s=u().createElement(O.Flex,null,u().createElement(O.FlexItem,{flexGrow:"1",className:oe.helperText},t("tabs.helperText")));return u().createElement(u().Fragment,null,u().createElement(O.CopyField,{className:oe.copyInput,helperNode:s,Component:O.PlainTextArea,componentProps:{disabled:!0,disableResizing:!0,className:oe.textAreaDimensions,onChange:function(){}},onCopy:function(){Q().Toaster.success({title:t("toasterTitle"),message:t("toasterMessage")})},onError:function(){Q().Toaster.error({message:t("toasterErrorMessage")})},value:r,hideButton:!0,testName:"embed-copy-section"}))},le=a(462);function de(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function pe(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){de(o,r,i,a,s,"next",e)}function s(e){de(o,r,i,a,s,"throw",e)}a(void 0)}))}}var fe=a(757),he=a.n(fe),ve=a(946);function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ye=function(){return window.StudioModule.config},be=function(){return ye().user.currentAccount.id},Ce=function(e,t){var n;return function(e){var t=window.StudioModule.api();return new Promise((function(n,r){t.call(e,n,r)}))}(e(me(me({},t),(n=ye(),{apiConfig:{publisherId:be(),api:n.module.api}}))))},Ae=function(){var e=pe(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ce(ve.Xo,{}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),we=function(){var e=pe(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ce(ve.createPlayer,t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const Oe=function(e){return(0,E.useQuery)(["players"],(function(){return Ae()}),{refetchOnWindowFocus:!1,enabled:e})};var Ee,Pe;!function(e){e.PLAYER="player",e.VIDEO="video",e.PROJECT="project"}(Ee||(Ee={})),function(e){e.NO_PLAYER="no-player",e.NO_PERMISSION="no-permission"}(Pe||(Pe={}));var xe=["bcAa","bcAirplay","bcGa","bcGtm","bcPlaylistUi","bcTealium","bcMapPlugin","chromecastReceiver","customEndscreen","eme","ima3","interactivityViewer","kollective","overlay","pip","playlistEndscreen","qualityMenu","social","ssai","thumbnails"],Se="bcMapPlugin";function je(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ke(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ke(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function ke(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ie="default",Le="Interactivity Player",Re="@brightcove/videojs-interactivity-viewer",Me="1.x",_e=a(94),Fe={};Fe.styleTagTransform=ne(),Fe.setAttributes=Y(),Fe.insert=$().bind(null,"head"),Fe.domAPI=W(),Fe.insertStyleElement=ee();Z()(_e.Z,Fe);const Te=_e.Z&&_e.Z.locals?_e.Z.locals:void 0;var Ne=a(494),De=a.n(Ne),Be=function(e){var t=e.video,n=e.embedCodeModalType,r=e.playerListForSelection,a=e.players,s=M().t,c=i((0,o.useState)(),2),l=c[0],d=c[1],p=i((0,o.useState)(""),2),f=p[0],h=p[1],v=(0,o.useMemo)((function(){return n===Ee.PROJECT?t.interactivityProjectId:null}),[t,n]);(0,o.useEffect)((function(){if(null!=l&&l.id){var e={accountId:t.accountId,playerId:l.id,videoId:t.videoId};v&&(e.interactivityProjectId=v),h(U(e))}}),[l,t,v]);var g=(0,o.useCallback)((function(e){v&&e.setAttribute("data-interactivity-project-id",v)}),[v]),m={accountId:t.accountId,playerId:(null==l?void 0:l.id)||Ie,isCampaign:(null==l?void 0:l.hasCampaignPlugin)||!1,videoId:t.videoId},y=v?t.interactivityProjectName:t.videoName,b=v||t.videoId;return v&&(m.interactivityProjectId=v),u().createElement(u().Fragment,null,u().createElement("div",{className:Te.leftContent},u().createElement(Ke,{onChange:d,playerListForSelection:r,players:a}),u().createElement(O.Hideable,{show:!!l},u().createElement(De(),(0,le.Z)({},m,{baseUrl:D(),attrs:{className:Te.playerLoader},refNode:"player-container",onEmbedCreated:g}))),u().createElement(O.Hideable,{show:null==l?void 0:l.hasCustomPlugins},u().createElement("span",{className:Te.customPluginNotice},s("customPluginNotice"))),u().createElement(et,{prevUrl:f})),u().createElement("div",{className:Te.rightContent},u().createElement(ze,{name:y,id:b}),u().createElement(Je,m)))};function Ue(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qe(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ve=function(e){var t=e.id,n=e.configuration,r=e.accountId,i=void 0===r?"":r,a=M().t,s=q(i,t),c=U({accountId:i,playerId:t}),l=(0,o.useMemo)((function(){var e=!1,t=!1,r=[];if(n){var i,o,a=Ue(r=null!==(i=n.plugins)&&void 0!==i?i:r);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.name;e=xe.includes(u),t=t||s.name===Se}}catch(e){a.e(e)}finally{a.f()}}return{hasCustomPlugins:!e&&r.length>0,isCampaignPlayer:t}}),[n]),d=l.hasCustomPlugins,p=l.isCampaignPlayer;return u().createElement(u().Fragment,null,u().createElement("div",{className:Te.leftContent},u().createElement(De(),{accountId:i,baseUrl:D(),attrs:{className:Te.playerLoader},embedType:"iframe",refNode:"player-container",playerUrl:s}),u().createElement(O.Hideable,{show:d},u().createElement("span",{className:Te.customPluginNotice},a("customPluginNotice"))),u().createElement(et,{prevUrl:c})),u().createElement("div",{className:Te.rightContent},u().createElement(Je,{isCampaign:p,playerId:t,accountId:i})))},Qe=function(e){var t=e.modalType,n=M().t,r=function(e){return u().createElement("a",{href:H()},e)};return u().createElement(O.Flex,{flexDirection:"column"},u().createElement("p",null,t===Pe.NO_PLAYER?n("noPlayerModalContent1"):u().createElement(u().Fragment,null,n("activateModalContent1"),r(n("activateModalContent2")),"."),u().createElement("br",null),t===Pe.NO_PLAYER?n("noPlayerModalContent2"):null),u().createElement(u().Fragment,null,t===Pe.NO_PLAYER?u().createElement("p",null,r(n("toPlayerManagerLink"))):null))},He=function(e){var t=e.handleSetComponentKey,n=e.playerPayload,r=e.embedCodeModalType,a=void 0===r?Ee.VIDEO:r,s=M().t,c=i((0,o.useState)(!1),2),l=c[0],d=c[1],p=Oe(!0),f=p.isFetching,h=p.data,v=i((0,o.useState)({}),2),g=v[0],m=v[1],y=i((0,o.useState)([]),2),b=y[0],C=y[1],A=i((0,o.useState)(!1),2),w=A[0],E=A[1],P=i((0,o.useState)(!1),2),x=P[0],S=P[1];(0,o.useEffect)((function(){var e=V().getCurrentUserAccount().roles;e.length&&e.includes(T)&&E(!0)}),[]),(0,o.useEffect)((function(){var e;if(!f&&h&&(null!==(e=null==h?void 0:h.items.length)&&void 0!==e?e:0)>0){var t=function(e){var t=[],n={};return null==e||e.items.forEach((function(e){var r,i,o=null!==(r=e.branches.master.configuration.plugins)&&void 0!==r?r:[],a=!!o&&o.length>0,s=!1,u=!1,c=!1,l=je(o);try{for(l.s();!(i=l.n()).done;){var d=i.value,p=d.name;s=xe.includes(p),u=u||d.name===Se,c=c||"interactivityViewer"===d.name}}catch(e){l.e(e)}finally{l.f()}t.push({label:e.name,value:e.id}),n[e.id]={label:e.name,id:e.id,hasCustomPlugins:!s&&a,hasCampaignPlugin:u,hasInteractivityPlugin:c}})),{players:n,playerListForSelection:B(t)}}(h),n=t.playerListForSelection,r=t.players,i=void 0===r?{}:r,o=n;a===Ee.PROJECT&&(o=n.filter((function(e){return i[e.value].hasInteractivityPlugin}))),m(i),C(o)}}),[f,h,a]);var j=(0,o.useMemo)((function(){return Object.values(g).some((function(e){return e.hasInteractivityPlugin}))}),[g]);(0,o.useEffect)((function(){n&&d(!0)}),[n]);var k=(0,o.useCallback)((function(){d(!1)}),[]),I=null,L=s("modalHeader"),R=!0,_=[u().createElement(O.Button,{key:"close-button",text:s("done"),onClick:k,testName:"close-modal-btn"})];if(!f)switch(a){case Ee.VIDEO:I="videoId"in n?u().createElement(Be,{video:n,embedCodeModalType:a,players:g,playerListForSelection:b}):null;break;case Ee.PLAYER:var F=n.accountId||be();I="id"in n&&F?u().createElement(Ve,(0,le.Z)({},n,{accountId:F})):null;break;case Ee.PROJECT:j||w?j?I="videoId"in n&&"interactivityProjectId"in n?u().createElement(Be,{video:n,embedCodeModalType:a,playerListForSelection:b,players:g}):null:(L=s("noPlayerModalHeader"),R=!1,_=[u().createElement(O.Button,{key:"cancel-button",text:s("cancel"),onClick:k,testName:"cancel-button",look:"tertiary"}),u().createElement(O.Button,{key:"create-player-button",text:s("createPlayerNow"),spinner:x,onClick:function(){var e=Le,n=Re,r=Me;S(!0),we({data:{name:e,configuration:{plugins:[{registry_id:n,version:r}]}}}).then((function(e){e&&e.id&&t()})).catch((function(e){console.error(e),Q().Toaster.error({title:s("createPlayerFailedTitle"),message:s("createPlayerFailedMessage")})})).finally((function(){S(!1)}))},testName:"create-player-button"})],I=u().createElement(Qe,{modalType:Pe.NO_PLAYER})):(L=s("activateModal"),R=!1,_=[u().createElement(O.Button,{key:"close-button",text:s("close"),onClick:k,testName:"close-modal-done-btn"})],I=u().createElement(Qe,{modalType:Pe.NO_PERMISSION}));break;default:console.warn("EmbedModal with ".concat(a," is not supported")),I=null}return I?u().createElement(O.Modal,{testName:"embed-modal",title:L,isOpen:l,large:R,onClose:k,buttons:_},u().createElement(O.Flex,{className:Te.videoDetailsContainer},I)):(console.warn("EmbedModal called with wrong props for type: ".concat(a)),null)},ze=function(e){var t=e.name,n=e.id,r=i((0,o.useState)(!1),2),a=r[0],s=r[1],c=(0,o.useMemo)((function(){return t?(e=t).length>60?"".concat(e.substring(0,60).trim(),"..."):e:"";var e}),[t]);return(0,o.useEffect)((function(){t&&s(c!==t)}),[c,t]),u().createElement(O.Flex,{flexDirection:"column",className:Te.mediaData},u().createElement(O.ToolTip,{placement:"top",portal:!0,block:!0,content:t,active:a,testName:"embed-video-tooltip"},u().createElement("div",{className:Te.mediaTitle},c)),u().createElement("div",{className:Te.mediaId},n))},Ze=function(e){var t=e.tooltipTextNew,n=e.tooltipLink,r=M().t;return u().createElement(u().Fragment,null,u().createElement("div",null,t),u().createElement("a",{href:r("learnmore"),target:"_blank",rel:"noreferrer"},n))},Ke=function(e){var t=e.onChange,n=e.playerListForSelection,r=e.players,a=M().t,s=i((0,o.useState)(),2),c=s[0],l=s[1],d=(0,o.useCallback)((function(e){if(r){var n=r[e];l(n),t&&t(n)}}),[r,t]);return(0,o.useEffect)((function(){!c&&n.length>0&&d(n[0].value)}),[d,n,c]),c?u().createElement(u().Fragment,null,u().createElement(O.Flex,null,u().createElement("div",{className:Te.playerSelectLabel},a("player")),u().createElement(O.ToolTip,{content:u().createElement(Ze,{tooltipLink:a("tooltipLink"),tooltipTextNew:a("tooltipTextNew")}),placement:"top",className:Te.tooltip,reflow:!1,testName:"embed-player-tooltip"})),u().createElement(O.Hideable,{show:n.length>0},u().createElement(O.Select,{value:c.id,options:n,inputClassName:Te.playerSelect,onChange:d,testName:"embed-player-select"}))):null},We=function(e){var t=e.currentTab,n=e.handleTabChange,r=e.iframeLabel,i=e.jsLabel;return u().createElement(O.Flex,{justifyContent:"space-between",alignItems:"baseline"},u().createElement(O.Tabs,{selectedId:t,onSelect:n},u().createElement(O.TabList,null,u().createElement(O.Tab,{tabId:"iframe",testName:"iframe-tab"},r),u().createElement(O.Tab,{tabId:"javascript",testName:"js-tab"},i))))};function Ge(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var $e=["isCampaign"],Je=function(e){var t=e.isCampaign,n=Ge(e,$e),r=M().t,a=i((0,o.useState)("iframe"),2),s=a[0],c=a[1],l="iframe"===s;return u().createElement(u().Fragment,null,u().createElement(We,{currentTab:s,handleTabChange:function(e){return c(e)},jsLabel:r("tabs.labels.javascript"),iframeLabel:r("tabs.labels.iframe")}),u().createElement(O.TabPanel,{testName:"embed-tab-content",render:function(){return t&&l?u().createElement("span",{className:Te.redHelperText},r("tabs.helperTextWarning")):u().createElement(ce,(0,le.Z)({iframe:l},n))}}))},Ye=a(826),Xe=function(){var e=pe(he().mark((function e(t){var n;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.longUrl,e.abrupt("return",Ce(Ye.P,{longUrl:n}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),et=function(e){var t=e.prevUrl,n=M().t,r=i((0,o.useState)(!1),2),a=r[0],s=r[1],c=(0,o.useCallback)(function(){var e=pe(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s(!0),tt(t).then((function(){Q().Toaster.success({title:n("toasterTitle"),message:n("toasterGetURLSuccess")})})).catch((function(){Q().Toaster.error({message:n("toasterGetURLError")})})).finally((function(){return s(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n]);return u().createElement("div",null,u().createElement("div",{className:Te.getURLBtnContainer},u().createElement(O.Button,{look:"tertiary",text:n("getURL"),testName:"get-url-btn",icon:a?"":"link",iconRight:!0,onClick:function(){return c(t)}}),a&&u().createElement(O.Loader,{className:Te.getURLBtnSpinner,size:"inline",color:"navy"})),u().createElement(O.Button,{look:"tertiary",text:n("previewButton"),testName:"preview-player-btn",icon:"external_link",iconRight:!0,onClick:function(){window.open(t,"_blank")}}))},tt=function(){var e=pe(he().mark((function e(t){var n,r;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=encodeURI(t),e.prev=1,e.abrupt("return",navigator.clipboard.write([new ClipboardItem({"text/plain":new Promise(function(){var e=pe(he().mark((function e(t){var r;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xe({longUrl:n});case 2:r=e.sent,t(new Blob([r],{type:"text/plain"}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})]));case 5:return e.prev=5,e.t0=e.catch(1),e.next=9,Xe({longUrl:n});case 9:return r=e.sent,e.abrupt("return",navigator.clipboard.writeText(r));case 11:case"end":return e.stop()}}),e,null,[[1,5]])})));return function(t){return e.apply(this,arguments)}}();function nt(e){return nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nt(e)}function rt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var it=a(611);function ot(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,it.Z)(e,t)}function at(e,t){if(t&&("object"===nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rt(e)}function st(e){return st=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},st(e)}function ut(t){return e(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||n(t)||r()}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var dt={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},pt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.init(t,n)}return d(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||dt,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,lt(lt({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}(),ft=new pt,ht=function(){function e(){c(this,e),this.observers={}}return d(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function vt(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function gt(e){return null==e?"":""+e}function mt(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function yt(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function bt(e,t,n){var r=yt(e,t,Object);r.obj[r.k]=n}function Ct(e,t){var n=yt(e,t),r=n.obj,i=n.k;if(r)return r[i]}function At(e,t,n){var r=Ct(e,n);return void 0!==r?r:Ct(t,n)}function wt(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):wt(e[r],t[r],n):e[r]=t[r]);return e}function Ot(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Et={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function Pt(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Et[e]})):e}var xt="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,St=[" ",",","?","!",";"];function jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jt(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function It(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=st(e);if(t){var i=st(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return at(this,n)}}function Lt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i)return;if("string"==typeof i[r[o]]&&o+1<r.length)return;if(void 0===i[r[o]]){for(var a=2,s=r.slice(o,o+a).join(n),u=i[s];void 0===u&&r.length>o+a;)a++,u=i[s=r.slice(o,o+a).join(n)];if(void 0===u)return;if(t.endsWith(s)){if("string"==typeof u)return u;if(s&&"string"==typeof u[s])return u[s]}var c=r.slice(o+a).join(n);return c?Lt(u,c,n):void 0}i=i[r[o]]}return i}}var Rt=function(e){ot(n,e);var t=It(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return c(this,n),r=t.call(this),xt&&ht.call(rt(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return d(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=Ct(this.data,a);return s||!o||"string"!=typeof n?s:Lt(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),bt(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=Ct(this.data,a)||{};r?wt(s,n,i):s=kt(kt({},s),n),bt(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?kt(kt({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(ht),Mt={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}};function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=st(e);if(t){var i=st(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return at(this,n)}}var Nt={},Dt=function(e){ot(n,e);var t=Tt(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,n),r=t.call(this),xt&&ht.call(rt(r)),mt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,rt(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=ft.create("translator"),r}return d(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=St.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==nt(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),u=s.key,c=s.namespaces,l=c[c.length-1],d=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var f=t.nsSeparator||this.options.nsSeparator;return o?(h.res="".concat(l).concat(f).concat(u),h):"".concat(l).concat(f).concat(u)}return o?(h.res=u,h):u}var h=this.resolve(e,t),v=h&&h.res,g=h&&h.usedKey||u,m=h&&h.exactUsedKey||u,y=Object.prototype.toString.apply(v),b=["[object Number]","[object Function]","[object RegExp]"],C=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v;if(A&&v&&w&&b.indexOf(y)<0&&("string"!=typeof C||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,v,Ft(Ft({},t),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(h.res=O,h):O}if(a){var E="[object Array]"===y,P=E?[]:{},x=E?m:g;for(var S in v)if(Object.prototype.hasOwnProperty.call(v,S)){var j="".concat(x).concat(a).concat(S);P[S]=this.translate(j,Ft(Ft({},t),{joinArrays:!1,ns:c})),P[S]===j&&(P[S]=v[S])}v=P}}else if(A&&"string"==typeof C&&"[object Array]"===y)(v=v.join(C))&&(v=this.extendTranslation(v,e,t,r));else{var k=!1,I=!1,L=void 0!==t.count&&"string"!=typeof t.count,R=n.hasDefaultValue(t),M=L?this.pluralResolver.getSuffix(d,t.count,t):"",_=t["defaultValue".concat(M)]||t.defaultValue;!this.isValidLookup(v)&&R&&(k=!0,v=_),this.isValidLookup(v)||(I=!0,v=u);var F=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,T=F&&I?void 0:v,N=R&&_!==v&&this.options.updateMissing;if(I||k||N){if(this.logger.log(N?"updateKey":"missingKey",d,l,u,N?_:v),a){var D=this.resolve(u,Ft(Ft({},t),{},{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var B=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var q=0;q<U.length;q++)B.push(U[q]);else"all"===this.options.saveMissingTo?B=this.languageUtils.toResolveHierarchy(t.lng||this.language):B.push(t.lng||this.language);var V=function(e,n,r){var o=R&&r!==v?r:T;i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,n,o,N,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,n,o,N,t),i.emit("missingKey",e,l,n,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?B.forEach((function(e){i.pluralResolver.getSuffixes(e,t).forEach((function(n){V([e],u+n,t["defaultValue".concat(n)]||_)}))})):V(B,u,_))}v=this.extendTranslation(v,e,t,h,r),I&&v===u&&this.options.appendNamespaceToMissingKey&&(v="".concat(l,":").concat(u)),(I||k)&&this.options.parseMissingKeyHandler&&(v="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(u,k?v:void 0):this.options.parseMissingKeyHandler(v))}return o?(h.res=v,h):v}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Ft(Ft({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Ft(Ft({},n),{interpolation:Ft(Ft({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=Ft(Ft({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=Mt.handle(p,e,t,this.options&&this.options.postProcessPassResolved?Ft({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!Nt["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(Nt["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,u=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,c,n,e,s);else{var l;d&&(l=a.pluralResolver.getSuffix(n,s.count,s));var h="_zero";if(d&&(u.push(c+l),p&&u.push(c+h)),f){var v="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(v),d&&(u.push(v+l),p&&u.push(v+h))}}for(;o=u.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),n}(ht);function Bt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Ut=function(){function e(t){c(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ft.create("languageUtils")}return d(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Bt(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Bt(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Bt(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),qt=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Vt={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Qt=["v1","v2","v3"],Ht={zero:0,one:1,two:2,few:3,many:4,other:5};function zt(){var e={};return qt.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Vt[t.fc]}}))})),e}var Zt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.languageUtils=t,this.options=n,this.logger=ft.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=zt()}return d(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return Ht[e]-Ht[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Qt.includes(this.options.compatibilityJSON)}}]),e}();function Kt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kt(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Gt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=ft.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return d(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:Pt,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Ot(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Ot(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?Ot(t.nestingPrefix):t.nestingPrefixEscaped||Ot("$t("),this.nestingSuffix=t.nestingSuffix?Ot(t.nestingSuffix):t.nestingSuffixEscaped||Ot(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var i=At(t,u,e);return s.alwaysFormat?s.format(i,void 0,n,Wt(Wt(Wt({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(At(t,u,a),c,n,Wt(Wt(Wt({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=l(n)))if("function"==typeof d){var u=d(e,i,r);o="string"==typeof u?u:""}else if(r&&r.hasOwnProperty(n))o="";else{if(p){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=gt(o));var c=t.safeValue(o);if(e=e.replace(i[0],c),p?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Wt({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,a)).replace(/'/g,'"');try{a=JSON.parse(i),t&&(a=Wt(Wt({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),u=l,c=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=gt(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=u.reduce((function(e,t){return i.format(e,t,o.lng,Wt(Wt({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function $t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$t(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Yt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=ft.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,Jt(Jt({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,Jt({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,Jt({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,Jt({},n)).format(e)}},this.init(t)}return d(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var i=this;return t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=ut(e.split(":")),r=t[0],i=t.slice(1).join(":");n[r.trim()]||(n[r.trim()]=i.trim()),"false"===i.trim()&&(n[r.trim()]=!1),"true"===i.trim()&&(n[r.trim()]=!0),isNaN(i.trim())||(n[r.trim()]=parseInt(i.trim(),10))}}))}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(i.formats[a]){var u=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=c.locale||c.lng||r.locale||r.lng||n;u=i.formats[a](e,l,Jt(Jt(Jt({},s),r),c))}catch(e){i.logger.warn(e)}return u}return i.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function Xt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function en(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xt(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=st(e);if(t){var i=st(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return at(this,n)}}var nn=function(e){ot(n,e);var t=tn(n);function n(e,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c(this,n),o=t.call(this),xt&&ht.call(rt(o)),o.backend=e,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=ft.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return d(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},u={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===u[t]&&(u[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,u,c,l,d;r=n.loaded,s=o,c=yt(r,[i],Object),l=c.obj,d=c.k,l[d]=l[d]||[],u&&(l[d]=l[d].concat(s)),u||l[d].push(s),function(e,t){delete e.pending[t],e.pendingCount--}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=Object.keys(a[e]);t.length&&t.forEach((function(n){void 0!==t[n]&&(a[e][n]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a}):(this.readingCalls++,this.backend[n](e,t,(function(s,u){if(s&&u&&i<5)setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o);else{if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}a(s,u)}}))):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,en(en({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(ht);function rn(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===nt(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===nt(e[2])||"object"===nt(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function on(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function an(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?an(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):an(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function un(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=st(e);if(t){var i=st(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return at(this,n)}}function cn(){}function ln(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var dn=function(e){ot(n,e);var t=un(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(c(this,n),e=t.call(this),xt&&ht.call(rt(e)),e.options=on(r),e.services={},e.logger=ft,e.modules={external:[]},ln(rt(e)),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),at(e,rt(e));setTimeout((function(){e.init(r,i)}),0)}return e}return d(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=rn();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=sn(sn(sn({},r),this.options),on(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=sn(sn({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?ft.init(i(this.modules.logger),this.options):ft.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=Yt);var a=new Ut(this.options);this.store=new Rt(this.options.resources,this.options);var s=this.services;s.logger=ft,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Zt(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new Gt(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new nn(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Dt(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=cn),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=vt(),p=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),d.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cn,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=vt();return e||(e=this.languages),t||(t=this.options.ns),n||(n=cn),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Mt.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=vt();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var a="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);a&&(n.language||i(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var o;if("object"!==nt(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else o=sn({},i);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns;var c=r.options.keySeparator||".",l=n?"".concat(n).concat(c).concat(t):t;return r.t(l,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=vt();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=vt();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:cn,i=sn(sn(sn({},this.options),t),{isClone:!0}),o=new n(i),a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=sn({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Dt(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(ht);p(dn,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new dn(e,t)}));var pn=dn.createInstance();pn.createInstance=dn.createInstance;pn.createInstance,pn.init,pn.loadResources,pn.reloadResources,pn.use,pn.changeLanguage,pn.getFixedT,pn.t,pn.exists,pn.setDefaultNamespace,pn.hasLoadedNamespace,pn.loadNamespaces,pn.loadLanguages;const fn=pn;var hn,vn,gn={en:{translation:JSON.parse('{"modalHeader":"Embed on website","mediaNotice":"Will use your account’s default player","tooltipText":"Currently using the Brightcove Default Player. Player management coming soon.","tooltipTextNew":"Players determine the video playback experience such as styling, special configuration settings, and more.","tooltipLink":"Learn more about players","learnmore":"https://studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Preview","player":"Player","getURL":"Get URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copy the HTML code and paste it on your website.","helperTextWarning":"This player is configured with the Campaign plugin. To ensure proper tracking, the JavaScript embed code should be used."},"done":"Done","close":"Close","toasterTitle":"Success.","toasterMessage":"Code copied to clipboard","toasterGetURLSuccess":"URL copied to the clipboard","toasterErrorMessage":"Error while copying text to clipboard","toasterGetURLError":"URL cannot be generated","customPluginNotice":"Due to custom configurations, you may not be experiencing the full preview.","noPlayerModalHeader":"Create an Interactivity Player","noPlayerModalContent1":"To embed an Interactivity Project you must enable the interactivity feature.","noPlayerModalContent2":"Activate this feature on any existing player or create a new one.","toPlayerManagerLink":"Go to the player manager","cancel":"Cancel","createPlayerNow":"Create Player Now","createPlayerFailedTitle":"Failed to create the Interactivity-enabled Player.","createPlayerFailedMessage":"Please try again.","activateModal":"No Interactivity-enabled players","activateModalContent1":"An Interactivity-enabled player is required to embed a project. Currently, this account has no Interactivity-enabled players. To create one, use the ","activateModalContent2":"Players module"}')},es:{translation:JSON.parse('{"modalHeader":"Incrustar en sitio web","mediaNotice":"Utilizará el reproductor predeterminado de su cuenta","tooltipText":"Actualmente se está utilizando el reproductor predeterminado de Brightcove. La gestión de reproductores estará disponible próximamente.","tooltipTextNew":"Los reproductores determinan la experiencia del usuario a la hora de reproducir vídeos por medio de ajustes como el estilo del reproductor, ajustes de configuración especiales y otros.","tooltipLink":"Más información sobre reproductores","learnmore":"https://es.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Vista previa","player":"Reproductor","getURL":"Obtener URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copie el código HTML y péguelo en su sitio web.","helperTextWarning":"Este reproductor está configurado con el complemento Campaign. Para garantizar un seguimiento adecuado, debe utilizarse el código de incrustación JavaScript."},"toasterTitle":"Operación realizada correctamente.","toasterMessage":"Código copiado al portapapeles","toasterGetURLSuccess":"URL copiada al portapapeles","toasterGetURLError":"No es posible generar la URL","toasterErrorMessage":"Se ha producido un error al copiar el texto al portapapeles.","customPluginNotice":"Puede ocurrir que las configuraciones personalizadas impidan la previsualización completa.","done":"Hecho","close":"Cerrar","noPlayerModalHeader":"Crear un reproductor de interactividad","noPlayerModalContent1":"Para poder incrustar un proyecto de interactividad, primero hay que activar la función de interactividad.","noPlayerModalContent2":"Active esta función en cualquier reproductor existente o cree uno nuevo.","toPlayerManagerLink":"Vaya al gestor de reproductores","cancel":"Cancelar","createPlayerNow":"Crear reproductor ahora","createPlayerFailedTitle":"No ha sido posible crear el reproductor con la interactividad activada.","createPlayerFailedMessage":"Vuelva a intentarlo.","activateModal":"No hay ningún reproductor con la interactividad activada","activateModalContent1":"Para poder incrustar proyectos, se precisa un reproductor con la interactividad activada. En este momento, esta cuenta no tiene reproductores con la interactividad activada. Para crear uno, utilice el ","activateModalContent2":"Módulo Players"}')},fr:{translation:JSON.parse('{"modalHeader":"Intégration à un site Internet","mediaNotice":"Ceci utilisera le lecteur par défaut de votre compte","tooltipText":"Utilise actuellement le lecteur Brightcove par défaut. La fonctionnalité de gestion des lecteurs sera bientôt disponible.","tooltipTextNew":"Les joueurs choisissent l\'expérience de lecture vidéo comme l\'apparence, les paramètres de configuration spéciaux, et plus.","tooltipLink":"En savoir plus sur les lecteurs","learnmore":"https://fr.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Aperçu","player":"Player","getURL":"Obtenir l\'URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copiez le code HTML et collez-le dans votre site Internet.","helperTextWarning":"Ce joueur est configuré avec le plug-in Campaign. Pour garantir un suivi adéquat, le code incorporé JavaScript doit être utilisé."},"toasterTitle":"Réussite.","toasterMessage":"Code copié dans le presse-papiers","toasterGetURLSuccess":"URL copiée dans le presse-papiers","toasterGetURLError":"Impossible de générer l\'URL","toasterErrorMessage":"Erreur lors de la copie du texte dans le presse-papiers","customPluginNotice":"En raison des configurations personnalisées, vous pourriez ne pas pouvoir visualiser l\'aperçu plein écran.","done":"Terminé","close":"Fermer","noPlayerModalHeader":"Créer un lecteur d’interactivité","noPlayerModalContent1":"Pour intégrer un projet d’interactivité vous devez activer la fonction d’interactivité.","noPlayerModalContent2":"Activez cette fonction sur un lecteur existant ou créez-en un nouveau.","toPlayerManagerLink":"Allez au gestionnaire des lecteurs","cancel":"Annuler","createPlayerNow":"Créer un lecteur maintenant","createPlayerFailedTitle":"Impossible de créer le lecteur compatible à l’interactivité.","createPlayerFailedMessage":"Veuillez réessayer.","activateModal":"Aucun lecteur compatible à l’interactivité.","activateModalContent1":"Un lecteur compatible à l’interactivité est obligatoire pour intégrer un projet. Actuellement, ce compte ne contient aucun lecteur compatible à l’interactivité. Pour en créer un, utilisez le ","activateModalContent2":"module Lecteurs"}')},ja:{translation:JSON.parse('{"modalHeader":"Webサイトに埋め込み","mediaNotice":"アカウントのデフォルトのプレーヤーを使用します","tooltipText":"現在、Brightcoveのデフォルトのプレーヤーを使用しています。プレーヤー管理が、間もなく公開されます。","tooltipTextNew":"プレーヤーは、スタイル指定や特別な設定など、動画再生体験を決定します。","tooltipLink":"プレーヤーについての詳細","learnmore":"https://ja.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"プレビュー","player":"プレーヤー","getURL":"URLを取得する","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTMLコードをコピーし、お客様のWebサイトに貼り付けてください。","helperTextWarning":"このプレーヤーは、キャンペーンプラグインを使って構成されています。適切にトラッキングするには、 JavaScript埋め込みコードを使用してください。"},"toasterTitle":"成功。","toasterMessage":"コードをクリップボードにコピーしました","toasterGetURLSuccess":"URLをクリップボードにコピーしました","toasterGetURLError":"URLを生成できません","toasterErrorMessage":"テキストをクリップボードにコピー中にエラーが発生しました","customPluginNotice":"カスタム設定により、プレビューが完全でない場合があります。","done":"完了","close":"閉じる","noPlayerModalHeader":"インタラクティブプレーヤーの作成","noPlayerModalContent1":"インタラクティブプロジェクトを埋め込むには、インタラクティブ機能を有効にする必要があります。","noPlayerModalContent2":"既存のプレーヤーでこの機能をアクティブ化するか、新しいプレーヤーを作成してください。","toPlayerManagerLink":"プレーヤーマネージャーに移動します","cancel":"キャンセル","createPlayerNow":"今すぐプレーヤーを作成","createPlayerFailedTitle":"インタラクティブ機能対応プレーヤーの作成に失敗しました。","createPlayerFailedMessage":"もう一度お試しください。","activateModal":"インタラクティブ機能対応プレーヤーがありません","activateModalContent1":"プロジェクトを埋め込むには、インタラクティブ機能対応プレーヤーが必要です。現在、このアカウントには、インタラクティブ機能対応プレーヤーがありません。作成するには ","activateModalContent2":"Playersモジュールを使用します"}')},ko:{translation:JSON.parse('{"modalHeader":"웹사이트에 임베드","mediaNotice":"계정의 기본 플레이어를 사용합니다","tooltipText":"현재 Brightcove 기본 플레이어 사용 중입니다. 플레이어 관리가 곧 출시됩니다.","tooltipTextNew":"플레이어는 스타일 지정, 특수 구성 설정 등 비디오 재생 경험을 결정합니다.","tooltipLink":"플레이어에 대해 자세히 알아보기","learnmore":"https://ko.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"미리 보기","player":"플레이어","getURL":"URL 받기","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTML 코드를 복사하여 웹사이트에 붙여넣으십시오.","helperTextWarning":"이 플레이어는 캠페인 플러그인과 함께 구성됩니다. 바르게 추적되게 하려면, JavaScript 내장 코드를 사용해야 합니다."},"toasterTitle":"성공.","toasterMessage":"클립보드에 코드가 복사됨","toasterGetURLSuccess":"URL이 클립보드에 복사됨","toasterGetURLError":"URL 생성 불가","toasterErrorMessage":"클립보드에 텍스트를 복사하는 중 오류 발생","customPluginNotice":"사용자 정의 구성으로 인해 전체 미리 보기를 이용하지 못할 수도 있습니다.","done":"완료","close":"닫기","noPlayerModalHeader":"상호작용성 플레이어 생성","noPlayerModalContent1":"상호작용성 프로젝트를 임베딩하려면 상호작용성 기능을 활성화해야 합니다.","noPlayerModalContent2":"기존 플레이어에서 이 기능을 활성화하거나 새 플레이어를 생성하십시오.","toPlayerManagerLink":"플레이어 관리자로 이동","cancel":"취소","createPlayerNow":"지금 플레이어 생성","createPlayerFailedTitle":"상호작용성 지원 플레이어를 생성하지 못했습니다.","createPlayerFailedMessage":"다시 시도해 주십시오.","activateModal":"상호작용성 지원 플레이어가 없음","activateModalContent1":"프로젝트를 임베딩하려면 상호작용성 지원 플레이어가 필요합니다. 현재 이 계정에는 상호작용성 지원 플레이어가 없습니다. 다음을 사용해 새 플레이어 생성 ","activateModalContent2":"플레이어 모듈"}')},zh:{translation:JSON.parse('{"modalHeader":"內嵌到網站","mediaNotice":"會使用您帳戶的預設播放程式","tooltipText":"目前使用 Brightcove 預設播放程式。播放程式管理功能即將推出。","tooltipTextNew":"播放器決定視訊播放體驗,例如樣式風格、特別組態設定等。","tooltipLink":"瞭解關於播放程式的更多資訊","learnmore":"https://zh-tw.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"預覽","player":"播放程式","getURL":"取得 URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"複製 HTML 程式碼並貼到您的網站上。","helperTextWarning":"此播放程式設定有活動外掛程式。為了確保正確追蹤,應使用 JavaScript 內嵌程式碼。"},"toasterTitle":"成功.","toasterMessage":"程式碼已複製到剪貼簿","toasterGetURLSuccess":"URL 已複製到剪貼簿","toasterGetURLError":"無法產生 URL","toasterErrorMessage":"複製文字到剪貼簿時發生錯誤","customPluginNotice":"由於自訂組態,您可能無法體驗完整預覽版。","done":"完成","close":"關閉","noPlayerModalHeader":"建立互動播放程式","noPlayerModalContent1":"若要嵌入互動專案,您必須啟用互動功能。","noPlayerModalContent2":"在任何現有播放程式上啟動此功能或建立新項目。","toPlayerManagerLink":"前往播放程式管理員","cancel":"取消","createPlayerNow":"立即建立播放程式","createPlayerFailedTitle":"無法建立已啟用互動功能的播放程式。","createPlayerFailedMessage":"請再試一次。","activateModal":"沒有已啟用互動功能的播放程式","activateModalContent1":"需要有已啟用互動功能的播放程式才能嵌入專案。目前,此帳戶沒有已啟用互動功能的播放程式。若要建立一個,請使用 ","activateModalContent2":"播放程式模組"}')}};fn.use(A).init({lng:(null===(hn=window.StudioModule)||void 0===hn||null===(vn=hn.config)||void 0===vn?void 0:vn.lang)||"en",fallbackLng:"en",debug:!0,returnObjects:!0,resources:gn,interpolation:{escapeValue:!1}});const mn=fn;(0,O.initialize)({theme:"blueSteel"});var yn=new E.QueryClient;const bn=function(e){var t=e.playerPayload,n=e.language,r=e.embedCodeModalType,a=i((0,o.useState)(0),2),s=a[0],c=a[1];(0,o.useEffect)((function(){mn.changeLanguage(n||window.StudioModule.config.lang)}),[n]);return t?u().createElement(E.QueryClientProvider,{client:yn},u().createElement(w,{i18n:mn},u().createElement(He,{key:s,handleSetComponentKey:function(){c(s+1)},playerPayload:t,language:n,embedCodeModalType:r}))):null}})(),s})()));
|
|
3
|
+
var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=["catalogSearch","catalogSequence"],o=["adConfigId","applicationId","catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId","interactivityProjectId"],a=function(e){return Object.keys(e).filter((function(e){return-1!==o.indexOf(e)})).reduce((function(t,n){var r=function(e,t){if(e&&void 0!==e[t]){if("string"!=typeof e[t]&&-1!==i.indexOf(t))try{return encodeURIComponent(JSON.stringify(e[t]))}catch(e){return}return encodeURIComponent(String(e[t]).trim())||void 0}}(e,n);return void 0!==r&&(t+=t?"&":"?",t+=encodeURIComponent(n)+"="+r),t}),"")},s=function(e){var t=e.accountId,n=e.base,i=void 0===n?"https://players.brightcove.net":n,o=e.playerId,s=void 0===o?"default":o,u=e.embedId,c=void 0===u?"default":u,l=e.iframe,d=void 0!==l&&l,p=e.minified,f=void 0===p||p,h=e.queryParams,v=void 0===h?null:h,g="";d?g+="html":(f&&(g+="min."),g+="js"),"/"===i.charAt(i.length-1)&&(i=i.substring(0,i.length-1));var m="";return d&&v&&"object"===(void 0===v?"undefined":r(v))&&(m=a(v)),i+"/"+(t=encodeURIComponent(t))+"/"+(s=encodeURIComponent(s))+"_"+(c=encodeURIComponent(c))+"/index."+g+m};s.VERSION="1.2.0";var u=s,c={playerId:"default",embedId:"default",iframe:!1,includeScriptElement:!0,minified:!0,returnDomElement:!1,preview:!1,playlistElement:!1,legacyPlaylistElement:!1,playlistIsHorizontal:!0,formatter:function(e){return e},width:960,height:540,units:"px",responsive:!0,applicationId:"",allowFullscreen:!0,allowEncryptedMedia:!0,pictureInPicture:!1,responsiveHeight:"56.25%"};function l(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.responsive&&!t.width&&(n.width=100,n.units="%"),n}var d={createIframeEmbedCode:function(e,t){t=l(c,t);var n,r=e.createElement("div"),i=e.createElement("iframe");if(t.preview)n=(t.urlBase?t.urlBase:"//preview-players.brightcove.net")+"/v2/accounts/"+t.accountId+"/players/"+t.playerId+"/preview/embeds/"+t.embedId+"/master/index.html",t.videoId&&(n+="?videoId="+t.videoId),t.interactivityProjectId&&(n+="?interactivityProjectId="+t.interactivityProjectId);else{var o={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,iframe:!0,minified:t.minified,queryParams:{videoId:t.videoId,playlistId:t.playlistId,interactivityProjectId:t.interactivityProjectId,adConfigId:t.adConfigId,applicationId:t.applicationId,catalogSearch:t.catalogSearch,catalogSequence:t.catalogSequence}};t.urlBase&&(o.base=t.urlBase),n=u(o)}if(t.returnDomElement?i.setAttribute("src",n):i.setAttribute("fzrsbrxzyeajgdaxuxqu",n),t.allowFullscreen&&i.setAttribute("allowfullscreen",""),t.allowEncryptedMedia&&i.setAttribute("allow","encrypted-media"),t.responsive){var a=e.createElement("div"),s=e.createElement("div");a.setAttribute("style","position: relative; display: block; max-width: ".concat(t.width).concat(t.units,";")),s.setAttribute("style","padding-top: ".concat(t.responsiveHeight,";")),i.setAttribute("style","position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%;"),r.appendChild(a),a.appendChild(s),s.appendChild(i)}else"px"!==t.units?i.setAttribute("style","width: ".concat(t.width).concat(t.units,"; height: ").concat(t.height).concat(t.units,";")):(i.setAttribute("width",t.width),i.setAttribute("height",t.height)),r.appendChild(i);return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src")).replace("&","&")}},p=n(0),f=n.n(p);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v={createInpageEmbedCode:function(e,t){if((t=l(c,t)).preview)throw new Error("You cannot preview an in-page embed");var n,r=e.createElement("div"),i=e.createElement("div");if(t.playerVersion&&f.a.gt("6.11.0",t.playerVersion)?(n=e.createElement("video")).classList.add("video-js"):n=e.createElement("video-js"),n.setAttribute("data-account",t.accountId),n.setAttribute("data-player",t.playerId),n.setAttribute("data-embed",t.embedId),n.setAttribute("controls",""),void 0!==t.videoId&&n.setAttribute("data-video-id",t.videoId),void 0!==t.playlistId&&n.setAttribute("data-playlist-id",t.playlistId),void 0!==t.interactivityProjectId&&n.setAttribute("data-interactivity-project-id",t.interactivityProjectId),void 0!==t.adConfigId&&n.setAttribute("data-ad-config-id",t.adConfigId),void 0!==t.applicationId&&n.setAttribute("data-application-id",t.applicationId),void 0!==t.catalogSearch&&("object"===h(t.catalogSearch)?n.setAttribute("data-catalog-search",JSON.stringify(t.catalogSearch)):n.setAttribute("data-catalog-search",String(t.catalogSearch))),void 0!==t.catalogSequence&&n.setAttribute("data-catalog-sequence",JSON.stringify(t.catalogSequence)),void 0!==t.audience&&"object"===h(t.audience)&&(void 0!==t.audience.integration&&n.setAttribute("data-bc-integrationid",t.audience.integration),void 0!==t.audience.leadForm&&n.setAttribute("data-bc-leadformid",t.audience.leadForm)),t.responsive){var o=e.createElement("style");o.innerHTML="video-js.video-js.vjs-fluid:not(.vjs-audio-only-mode) {padding-top: ".concat(t.responsiveHeight,";}");var a="max-width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",a),i.appendChild(o)}else{var s="width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",s),n.setAttribute("width",t.width),n.setAttribute("height",t.height)}if(n.classList.add("vjs-fluid"),i.appendChild(n),r.appendChild(i),t.pictureInPicture){var d=e.createElement("div");d.classList.add("vjs-pip-container"),d.appendChild(r.firstChild),r.appendChild(d)}if(t.playlistElement)if(t.playlistIsHorizontal){var p=e.createElement("div");p.setAttribute("class","vjs-playlist"),i.appendChild(p)}else i.classList.add("vjs-playlist-player-container");if(t.includeScriptElement){var v=e.createElement("script"),g={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,minified:t.minified};t.urlBase&&(g.base=t.urlBase),t.returnDomElement?v.setAttribute("src",u(g)):v.setAttribute("fzrsbrxzyeajgdaxuxqu",u(g)),r.appendChild(v)}if(t.legacyPlaylistElement&&!t.playlistElement){var m=e.createElement("ol");m.setAttribute("class","vjs-playlist"),r.appendChild(m)}return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src"))}};function g(e){if(void 0===e)throw new Error("options object is required");if(void 0===e.accountId)throw new Error("accountId is required");if(!e.document&&"undefined"==typeof window)throw new Error("No document object found. If you are running this project outside of a browser, pass a `document` option using a library such as jsdom.");var t=void 0!==e.document?e.document:window.document;return e.iframe?d.createIframeEmbedCode(t,e):v.createInpageEmbedCode(t,e)}n.d(t,"default",(function(){return g}))}]).default},946:(e,t,n)=>{"use strict";t.Xo=void 0;var r=n(306);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var o=function(e){var t=e.apiConfig;return{origin:(0,r.getPlayersOrigin)(t),accountId:(0,r.getAccountId)(t)}};t.Xo=function(e){var t,n=e.apiConfig,a=(t=i({},o({apiConfig:n}))).origin+"/v1/accounts/"+t.accountId+"/players";return(0,r.buildGetForPath)({path:a})}},306:(e,t)=>{"use strict";t.__esModule=!0,t.buildDeleteForPath=t.buildPostForPath=t.buildFilePutForPath=t.buildPutForPath=t.buildPatchForPath=t.buildGetWithParamsForPath=t.buildGetForPath=t.getAccountId=t.getPlaybackRightsOrigin=t.getPolicyOrigin=t.getSocialAPIOrigin=t.getDeliverySystemOrigin=t.getAudienceOrigin=t.getGalleryOrigin=t.getOAuthVersion=t.getOAuthOrigin=t.getNuCMSOrigin=t.getBeaconOrigin=t.getAccountsOrigin=t.getAuthIntegrationVersion=t.getAuthIntegrationOrigin=t.getSettingsOrigin=t.getIngestOrigin=t.getIngestProfilesOrigin=t.getPlayersOrigin=t.getAnalyticsOrigin=t.getSavedSearchOrigin=t.getliveSsaiOrigin=t.getSSAIOrigin=t.getCMSAPIOrigin=void 0;t.getCMSAPIOrigin=function(e){return e.api.cms.origin};t.getSSAIOrigin=function(e){return e.api.ssai.origin};t.getliveSsaiOrigin=function(e){return e.api.alive.origin};t.getSavedSearchOrigin=function(e){return e.api.savedsearch.origin};t.getAnalyticsOrigin=function(e){return e.api.analytics.origin};t.getPlayersOrigin=function(e){return e.api.players.origin};t.getIngestProfilesOrigin=function(e){return e.api["ingest-profiles"].origin};t.getIngestOrigin=function(e){return e.api.ingest.origin};t.getSettingsOrigin=function(e){return e.api.seti.origin};t.getAuthIntegrationOrigin=function(e){return e.api["auth-integration"].origin};t.getAuthIntegrationVersion=function(e){return e.api["auth-integration"].version};t.getAccountsOrigin=function(e){return e.api.accounts.origin};t.getBeaconOrigin=function(e){return e.api.beacon.origin};t.getNuCMSOrigin=function(e){return e.api.nucms.origin};t.getOAuthOrigin=function(e){return e.api.oauth.origin};t.getOAuthVersion=function(e){return e.api.oauth.version};t.getGalleryOrigin=function(e){return e.api.gallery?e.api.gallery.origin:"https://gallery.api.brightcove.com"};t.getAudienceOrigin=function(e){return e.api.audience.origin};t.getDeliverySystemOrigin=function(e){return e.api.repos.origin};t.getSocialAPIOrigin=function(e){return e.api.social.origin};t.getPolicyOrigin=function(e){return e.api.policy.origin};t.getPlaybackRightsOrigin=function(e){return e.api["playback-rights"].origin};t.getAccountId=function(e){return e.publisherId};var n=function(e){return{path:e.path,method:"GET"}};t.buildGetForPath=n;t.buildGetWithParamsForPath=function(e){var t=e.path,r=e.data,i=n({path:t});if(r){var o=Object.keys(r).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(r[e])}));o.length&&(i.path=i.path+"?"+o.join("&"))}return i};var r=function(e){var t=e.path,n=e.data;return{path:t,method:e.method,data:JSON.stringify(n)}};t.buildPatchForPath=function(e){var t=e.path,n=e.data;return r({method:"PATCH",path:t,data:n})};t.buildPutForPath=function(e){var t=e.path,n=e.data;return r({method:"PUT",path:t,data:n})};t.buildFilePutForPath=function(e){return function(e){var t=e.path,n=e.data,r=e.headers;return{path:t,method:e.method,data:n,headers:r}}({method:"PUT",path:e.path,data:e.data,headers:e.headers})};t.buildPostForPath=function(e){var t=e.path,n=e.data;return r({method:"POST",path:t,data:n})};t.buildDeleteForPath=function(e){return{path:e.path,method:"DELETE"}}},826:(e,t,n)=>{"use strict";t.P=void 0;var r=n(306);t.P=function(e){var t=e.longUrl;return(0,r.buildGetWithParamsForPath)({path:"/shortener/shorten",data:{longUrl:t}})}},17:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(537),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([e.id,".EmbedCode__hint--Fh40S{padding-top:2px}.EmbedCode__input--ZO6KQ{margin:0 !important;padding-bottom:4px !important}.EmbedCode__textArea--KNDhC{color:#aaa !important;background-color:#ddd !important;border:none !important;resize:none}.EmbedCode__copyInput--tkc7M{margin:0 !important;padding-bottom:4px !important}.EmbedCode__copyInput--tkc7M .EmbedCode__textAreaDimensions--N_Vil{height:210px;width:390px}.EmbedCode__helperText--gWEii{color:#999;font-size:14px}a.EmbedCode__copyLink--9tc06{text-decoration:none;cursor:pointer;padding-left:4px}.EmbedCode__hint--Fh40S{padding-top:2px}.EmbedCode__input--ZO6KQ{margin:0 !important;padding-bottom:4px !important}.EmbedCode__textArea--KNDhC{color:#8e9093 !important;background-color:#f2f2f3 !important;border:none !important;resize:none}.EmbedCode__copyInput--tkc7M{margin:0 !important;padding-bottom:4px !important}.EmbedCode__copyInput--tkc7M .EmbedCode__textAreaDimensions--N_Vil{height:210px;width:390px}.EmbedCode__helperText--gWEii{color:#4d5056;font-size:14px}a.EmbedCode__copyLink--9tc06{text-decoration:none;font-weight:700;cursor:pointer;padding-left:4px}","",{version:3,sources:["webpack://./src/styles/EmbedCode.sass"],names:[],mappings:"AAIE,wBACE,eAAA,CACF,yBACE,mBAAA,CACA,6BAAA,CACF,4BACE,qBAAA,CACA,gCAAA,CACA,sBAAA,CACA,WAAA,CACF,6BACE,mBAAA,CACA,6BAAA,CACA,mEACE,YAAA,CACA,WAAA,CACJ,8BACE,UAAA,CACA,cAAA,CACF,6BACE,oBAAA,CAEA,cAAA,CACA,gBAAA,CAvBF,wBACE,eAAA,CACF,yBACE,mBAAA,CACA,6BAAA,CACF,4BACE,wBAAA,CACA,mCAAA,CACA,sBAAA,CACA,WAAA,CACF,6BACE,mBAAA,CACA,6BAAA,CACA,mEACE,YAAA,CACA,WAAA,CACJ,8BACE,aAAA,CACA,cAAA,CACF,6BACE,oBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA",sourcesContent:["@import './base.sass'\n\n@include themed() using ($theme)\n // Override studio-components styles\n .hint\n padding-top: 2px\n .input\n margin: 0 !important\n padding-bottom: 4px !important\n .textArea\n color: theme($theme, gray-35) !important\n background-color: theme($theme, gray-20) !important\n border: none !important\n resize: none\n .copyInput\n margin: 0 !important\n padding-bottom: 4px !important\n .textAreaDimensions\n height: 210px\n width: 390px\n .helperText\n color: theme($theme, gray-40)\n font-size: 14px\n a.copyLink\n text-decoration: none\n font-weight: theme($theme, body-small-weight-bold)\n cursor: pointer\n padding-left: 4px\n"],sourceRoot:""}]),a.locals={hint:"EmbedCode__hint--Fh40S",input:"EmbedCode__input--ZO6KQ",textArea:"EmbedCode__textArea--KNDhC",copyInput:"EmbedCode__copyInput--tkc7M",textAreaDimensions:"EmbedCode__textAreaDimensions--N_Vil",helperText:"EmbedCode__helperText--gWEii",copyLink:"EmbedCode__copyLink--9tc06"};const s=a},94:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(537),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([e.id,'.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__redHelperText--y3MVU{color:#d53c00;font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaTitle--apmXI{color:#444;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#999;font-size:.875rem;font-weight:400}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:Lato,Helvetica,Arial,sans-serif;font-size:.933rem;font-weight:700;line-height:24px;letter-spacing:normal;color:#666;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__redHelperText--y3MVU{color:#d33d00;font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaTitle--apmXI{color:#01050e;font-size:1.333rem;font-weight:800;line-height:28px;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#4d5056;font-size:.875rem;font-weight:normal}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:"Public Sans",sans-serif;font-size:.875rem;font-weight:700;line-height:20px;letter-spacing:auto;color:#01050e;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}',"",{version:3,sources:["webpack://./src/styles/EmbedCodeModal.sass"],names:[],mappings:"AAGE,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,UAAA,CAIA,oBAAA,CACF,yJACE,UAAA,CACA,iBAAA,CACA,eAAA,CACF,wFACE,2CAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA,CAvDJ,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,aAAA,CACA,kBAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACF,yJACE,aAAA,CACA,iBAAA,CACA,kBAAA,CACF,wFACE,oCAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,mBAAA,CACA,aAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA",sourcesContent:["@import './base.sass'\n\n@include themed() using ($theme)\n .videoDetailsContainer\n margin-bottom: 27px\n .leftContent\n width: 540px\n margin-right: 43px\n .rightContent\n flex-grow: 1\n .mediaData\n margin-top: 23px\n padding: 0\n .redHelperText\n color: theme($theme, red)\n font-size: 14px\n .mediaTitle\n color: theme($theme, text-primary-dark)\n font-size: theme($theme, heading-xs-size)\n font-weight: theme($theme, heading-weight)\n line-height: theme($theme, heading-xs-line-height)\n word-break: break-all\n .text\n color: theme($theme, gray-40)\n font-size: theme($theme, body-small-text-size)\n font-weight: theme($theme, body-small-weight-normal)\n .playerSelectLabel\n font-family: theme($theme, label-font)\n font-size: theme($theme, label-font-size)\n font-weight: theme($theme, label-font-weight)\n line-height: theme($theme, label-line-height)\n letter-spacing: theme($theme, label-letter-spacing)\n color: theme($theme, label-color)\n padding: 0 0 .4rem\n .playerSelect\n width: 100%\n .getURLBtnContainer\n display: inline-flex\n .getURLBtnSpinner\n left: -5px\n position: relative\n margin-right: 8px\n .mediaId\n @extend .text\n margin-bottom: 25px\n .tooltip\n margin-left: theme($theme, padding-sm)\n .customPluginNotice\n font-size: 14px\n .playerLoader\n video-js\n width: 539px !important\n height: 303.2px !important\n margin-bottom: theme($theme, padding-sm)\n iframe\n width: 539px !important\n height: 303.2px !important\n .previewButton\n align-self: center\n\n"],sourceRoot:""}]),a.locals={videoDetailsContainer:"EmbedCodeModal__videoDetailsContainer--WP99B",leftContent:"EmbedCodeModal__leftContent--BIBZB",rightContent:"EmbedCodeModal__rightContent--BDlYZ",mediaData:"EmbedCodeModal__mediaData--f0wqn",redHelperText:"EmbedCodeModal__redHelperText--y3MVU",mediaTitle:"EmbedCodeModal__mediaTitle--apmXI",text:"EmbedCodeModal__text--ayO8f",mediaId:"EmbedCodeModal__mediaId--GymNT",playerSelectLabel:"EmbedCodeModal__playerSelectLabel--w3Ig6",playerSelect:"EmbedCodeModal__playerSelect--rvojt",getURLBtnContainer:"EmbedCodeModal__getURLBtnContainer--MIRx8",getURLBtnSpinner:"EmbedCodeModal__getURLBtnSpinner--VxbOG",tooltip:"EmbedCodeModal__tooltip--vxe8W",customPluginNotice:"EmbedCodeModal__customPluginNotice--VQKaP",playerLoader:"EmbedCodeModal__playerLoader--IgdsR",previewButton:"EmbedCodeModal__previewButton--CFh55"};const s=a},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},537:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([o]).join("\n")}return[t].join("\n")}},144:(e,t,n)=>{var r,i=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},o=n(893);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=r},908:(e,t,n)=>{var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=r},852:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},747:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.S});var r=n(61),i=n(755);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}})},909:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,j:()=>i});var r=console;function i(){return r}function o(e){r=e}},101:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(288),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},68:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.l))},61:(e,t,n)=>{"use strict";n.d(t,{S:()=>y});var r=n(462),i=n(288),o=n(578),a=n(101),s=n(909),u=n(216),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=(0,i.SE)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var d=(0,i.mc)(this.queryKey),p=(0,i.G9)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(p)return a.abortSignalConsumed=!0,p.signal}});var h,v,g={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(h=this.options.behavior)||h.onFetch(g));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=g.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(v=g.fetchOptions)?void 0:v.meta});return this.retryer=new u.m4({fn:g.fetchFn,abort:null==p||null==(o=p.abort)?void 0:o.bind(p),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,u.DV)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,u.DV)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.j)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,i;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return(0,u.DV)(o)&&o.revert&&this.revertState?(0,r.Z)({},this.revertState):(0,r.Z)({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),l=n(943),d=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:(0,i.Rm)(o,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,i.I6)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,i._x)(n,e)}))},n.findAll=function(e,t){var n=(0,i.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return(0,i._x)(n,e)})):this.queries},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(l.l),p=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(i.ZT).catch(i.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,s.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new u.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();var f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new p({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,i.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,i.X7)(e,t)}))},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(i.ZT)}))}),Promise.resolve())}))},t}(l.l),h=n(852),v=n(68);function g(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function m(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=h.j.subscribe((function(){h.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=v.N.subscribe((function(){h.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,i.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=(0,i._v)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return a.V.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,i.I6)(e,t)[0],r=this.queryCache;a.V.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],c=s[1],l=this.queryCache,d=(0,r.Z)({},u,{active:!0});return a.V.batch((function(){return l.findAll(u).forEach((function(e){e.reset()})),o.refetchQueries(d,c)}))},t.cancelQueries=function(e,t,n){var r=this,o=(0,i.I6)(e,t,n),s=o[0],u=o[1],c=void 0===u?{}:u;void 0===c.revert&&(c.revert=!0);var l=a.V.batch((function(){return r.queryCache.findAll(s).map((function(e){return e.cancel(c)}))}));return Promise.all(l).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,n){var o,s,u,c=this,l=(0,i.I6)(e,t,n),d=l[0],p=l[1],f=(0,r.Z)({},d,{active:null==(o=null!=(s=d.refetchActive)?s:d.active)||o,inactive:null!=(u=d.refetchInactive)&&u});return a.V.batch((function(){return c.queryCache.findAll(d).forEach((function(e){e.invalidate()})),c.refetchQueries(f,p)}))},t.refetchQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],c=s[1],l=a.V.batch((function(){return o.queryCache.findAll(u).map((function(e){return e.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))}))})),d=Promise.all(l).then(i.ZT);return(null==c?void 0:c.throwOnError)||(d=d.catch(i.ZT)),d},t.fetchQuery=function(e,t,n){var r=(0,i._v)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,i._v)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,a,s,c,l=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,p=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),v=(null==(a=e.state.data)?void 0:a.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,i.G9)(),C=null==b?void 0:b.signal,A=y,w=!1,E=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},O=function(e,t,n,r){return A=r?[t].concat(A):[].concat(A,[t]),r?[n].concat(e):[].concat(e,[n])},P=function(t,n,r,i){if(w)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:C,pageParam:r,meta:e.meta},a=E(o),s=Promise.resolve(a).then((function(e){return O(t,r,e,i)}));return(0,u.LE)(a)&&(s.cancel=a.cancel),s};if(v.length)if(f){var x=void 0!==p,S=x?p:g(e.options,v);c=P(v,x,S)}else if(h){var I=void 0!==p,j=I?p:m(e.options,v);c=P(v,I,j,!0)}else!function(){A=[];var t=void 0===e.options.getNextPageParam,n=!l||!v[0]||l(v[0],0,v);c=n?P([],t,y[0]):Promise.resolve(O([],y[0],v[0]));for(var r=function(n){c=c.then((function(r){if(!l||!v[n]||l(v[n],n,v)){var i=t?y[n]:g(e.options,r);return P(r,t,i)}return Promise.resolve(O(r,y[n],v[n]))}))},i=1;i<v.length;i++)r(i)}();else c=P([]);var k=c.then((function(e){return{pages:e,pageParams:A}}));return k.cancel=function(){w=!0,null==b||b.abort(),(0,u.LE)(c)&&c.cancel()},k}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this,t=a.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,i.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,i.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},216:(e,t,n)=>{"use strict";n.d(t,{DV:()=>c,LE:()=>s,m4:()=>l});var r=n(852),i=n(68),o=n(288);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,d=this,p=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){p=!0},this.continueRetry=function(){p=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},h=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!d.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!d.isResolved&&(h(new u(e)),null==d.abort||d.abort(),s(l)))try{l.cancel()}catch(e){}},d.isTransportCancelable=s(l),Promise.resolve(l).then(f).catch((function(t){var s,u;if(!d.isResolved){var l=null!=(s=e.retry)?s:3,f=null!=(u=e.retryDelay)?u:a,v="function"==typeof f?f(d.failureCount,t):f,g=!0===l||"number"==typeof l&&d.failureCount<l||"function"==typeof l&&l(d.failureCount,t);!p&&g?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,o.Gh)(v).then((function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise((function(t){n=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){p?h(t):c()}))):h(t)}}))}}()}},943:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},755:()=>{},288:(e,t,n)=>{"use strict";n.d(t,{A4:()=>O,G9:()=>P,Gh:()=>E,I6:()=>d,Kp:()=>c,PN:()=>s,Q$:()=>y,Rm:()=>h,SE:()=>a,VS:()=>b,X7:()=>f,ZT:()=>o,_v:()=>l,_x:()=>p,mc:()=>u,sk:()=>i,to:()=>g,yF:()=>v});var r=n(462),i="undefined"==typeof window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return w(e)?"function"==typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function d(e,t,n){return w(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function p(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(w(s))if(r){if(t.queryHash!==h(s,t.options))return!1}else if(!g(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function f(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(w(o)){if(!t.options.mutationKey)return!1;if(n){if(v(t.options.mutationKey)!==v(o))return!1}else if(!g(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||v)(e)}function v(e){var t,n=u(e);return t=n,JSON.stringify(t,(function(e,t){return C(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function g(e,t){return m(u(e),u(t))}function m(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!m(e[n],t[n])})))}function y(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||C(e)&&C(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u<o;u++){var c=n?u:i[u];a[c]=y(e[c],t[c]),a[c]===e[c]&&s++}return r===o&&s===r?e:a}return t}function b(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function C(e){if(!A(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!A(n)&&!!n.hasOwnProperty("isPrototypeOf")}function A(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e||Array.isArray(e)}function E(e){return new Promise((function(t){setTimeout(t,e)}))}function O(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function P(){if("function"==typeof AbortController)return new AbortController}},767:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.QueryClient,QueryClientProvider:()=>i.QueryClientProvider,useQuery:()=>i.useQuery});var r=n(747);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}});var i=n(446)},446:(e,t,n)=>{"use strict";n.d(t,{QueryClientProvider:()=>f,useQuery:()=>I});var r=n(101),i=n(111),o=n.n(i)().unstable_batchedUpdates;r.V.setBatchNotifyFunction(o);var a=n(909),s=console;(0,a.E)(s);var u=n(156),c=n.n(u),l=c().createContext(void 0),d=c().createContext(!1);function p(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var f=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;c().useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var o=p(r);return c().createElement(d.Provider,{value:r},c().createElement(o.Provider,{value:t},i))},h=n(462),v=n(578),g=n(288),m=n(852),y=n(943),b=n(216),C=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,v.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),A(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return w(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return w(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&E(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,h.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(g.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!g.sk&&!this.currentResult.isStale&&(0,g.PN)(this.options.staleTime)){var t=(0,g.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!g.sk&&!1!==this.options.enabled&&(0,g.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||m.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},n.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,o=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,c=e!==r,l=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,p=e.state,f=p.dataUpdatedAt,h=p.error,v=p.errorUpdatedAt,m=p.isFetching,y=p.status,b=!1,C=!1;if(t.optimisticResults){var w=this.hasListeners(),P=!w&&A(e,t),x=w&&E(e,r,t,i);(P||x)&&(m=!0,f||(y="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)n=d.data,f=d.dataUpdatedAt,y=d.status,b=!0;else if(t.select&&void 0!==p.data)if(o&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),!1!==t.structuralSharing&&(n=(0,g.Q$)(null==o?void 0:o.data,n)),this.selectResult=n,this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}else n=p.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===y||"idle"===y)){var S;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))S=o.data;else if(S="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==S)try{S=t.select(S),!1!==t.structuralSharing&&(S=(0,g.Q$)(null==o?void 0:o.data,S)),this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}void 0!==S&&(y="success",n=S,C=!0)}return this.selectError&&(h=this.selectError,n=this.selectResult,v=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:n,dataUpdatedAt:f,error:h,errorUpdatedAt:v,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:C,isPreviousData:b,isRefetchError:"error"===y&&0!==p.dataUpdatedAt,isStale:O(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,g.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,h.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,b.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(y.l);function A(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&w(e,t,t.refetchOnMount)}function w(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&O(e,t)}return!1}function E(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&O(e,n)}function O(e,t){return e.isStaleByTime(t.staleTime)}function P(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var x=c().createContext(P());function S(e,t){var n=c().useRef(!1),i=c().useState(0)[1],o=function(){var e=c().useContext(p(c().useContext(d)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e}(),a=c().useContext(x),s=o.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=r.V.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=r.V.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=r.V.batchCalls(s.onSettled)),s.suspense&&("number"!=typeof s.staleTime&&(s.staleTime=1e3),0===s.cacheTime&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(a.isReset()||(s.retryOnMount=!1));var u,l,f,h=c().useState((function(){return new t(o,s)}))[0],v=h.getOptimisticResult(s);if(c().useEffect((function(){n.current=!0,a.clearReset();var e=h.subscribe(r.V.batchCalls((function(){n.current&&i((function(e){return e+1}))})));return h.updateResult(),function(){n.current=!1,e()}}),[a,h]),c().useEffect((function(){h.setOptions(s,{listeners:!1})}),[s,h]),s.suspense&&v.isLoading)throw h.fetchOptimistic(s).then((function(e){var t=e.data;null==s.onSuccess||s.onSuccess(t),null==s.onSettled||s.onSettled(t,null)})).catch((function(e){a.clearReset(),null==s.onError||s.onError(e),null==s.onSettled||s.onSettled(void 0,e)}));if(v.isError&&!a.isReset()&&!v.isFetching&&(u=s.suspense,l=s.useErrorBoundary,f=[v.error,h.getCurrentQuery()],"function"==typeof l?l.apply(void 0,f):"boolean"==typeof l?l:u))throw v.error;return"tracked"===s.notifyOnChangeProps&&(v=h.trackResult(v,s)),v}function I(e,t,n){return S((0,g._v)(e,t,n),C)}},666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){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===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",v={};function g(){}function m(){}function y(){}var b={};u(b,o,(function(){return this}));var C=Object.getPrototypeOf,A=C&&C(C(j([])));A&&A!==n&&r.call(A,o)&&(b=A);var w=y.prototype=g.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function P(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(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 S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:t,done:!0}}return m.prototype=y,u(w,"constructor",y),u(y,"constructor",m),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new O(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),u(w,s,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=j,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;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),S(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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var u=e[s],c=r.base?u[0]+r.base:u[0],l=o[c]||0,d="".concat(c," ").concat(l);o[c]=l+1;var p=n(d),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=i(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var u=r(e,i),c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=u}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},609:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},66:e=>{"use strict";e.exports=t},156:t=>{"use strict";t.exports=e},111:e=>{"use strict";e.exports=n},893:()=>{},462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a={};return(()=>{"use strict";function e(e){if(Array.isArray(e))return e}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,i){return e(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,i)||n(t,i)||r()}o.r(a),o.d(a,{EmbedCodeModal:()=>pr,EmbedCodeModalTypes:()=>Oe});var s=o(156),u=o.n(s);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}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}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v,g={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},m=u().createContext();function y(){return g}var b=function(){function e(){c(this,e),this.usedNamespaces={}}return d(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function C(){return v}var A={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g=h(h({},g),e)}(e.options.react),function(e){v=e}(e)}};function w(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=(0,s.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,s.createElement)(m.Provider,{value:i},r)}var E=o(66),O=o(767);function P(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var x={};function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&x[t[0]]||("string"==typeof t[0]&&(x[t[0]]=new Date),P.apply(void 0,t))}function I(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))))}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return S("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):j(e,t,n)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,s.useContext)(m)||{},o=r.i18n,a=r.defaultNS,u=n||o||C();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new b),!u){S("You will need to pass in an i18next instance by using initReactI18next");var c=function(e){return Array.isArray(e)?e[e.length-1]:e},l=[c,{},!1];return l.t=c,l.i18n={},l.ready=!1,l}u.options.react&&void 0!==u.options.react.wait&&S("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=_(_(_({},y()),u.options.react),t),p=d.useSuspense,f=d.keyPrefix,h=e||a||u.options&&u.options.defaultNS;h="string"==typeof h?[h]:h||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(h);var v=(u.isInitialized||u.initializedStoreOnce)&&h.every((function(e){return k(e,u,d)}));function g(){return u.getFixedT(null,"fallback"===d.nsMode?h:h[0],f)}var A=(0,s.useState)(g),w=i(A,2),E=w[0],O=w[1],P=(0,s.useRef)(!0);(0,s.useEffect)((function(){var e=d.bindI18n,t=d.bindI18nStore;function n(){P.current&&O(g)}return P.current=!0,v||p||I(u,h,(function(){P.current&&O(g)})),e&&u&&u.on(e,n),t&&u&&u.store.on(t,n),function(){P.current=!1,e&&u&&e.split(" ").forEach((function(e){return u.off(e,n)})),t&&u&&t.split(" ").forEach((function(e){return u.store.off(e,n)}))}}),[u,h.join()]);var x=(0,s.useRef)(!0);(0,s.useEffect)((function(){P.current&&!x.current&&O(g),x.current=!1}),[u]);var j=[E,u,v];if(j.t=E,j.i18n=u,j.ready=v,v)return j;if(!v&&!p)return j;throw new Promise((function(e){I(u,h,(function(){e()}))}))}var N=o(130),M=o.n(N),T="PUBLISHING";function F(){return"qa"===function(){var e;return(null===(e=window.StudioModule)||void 0===e?void 0:e.config.product.env)||"production"}()}function D(){return F()?"https://bc-players-qa.s3.amazonaws.com/":"https://players.brightcove.net/"}function B(e){return e.sort((function(e,t){return e.label.localeCompare(t.label)}))}var U=function(e){var t=e.accountId,n=e.videoId,r=e.interactivityProjectId,i=e.playerId,o=new URLSearchParams;r&&o.append("interactivityProjectId",r),n&&o.append("videoId",n);var a=o.toString();return"".concat(D()).concat(t,"/").concat(i,"_default/index.html").concat(""!==a?"?".concat(a):"")};var q=function(e,t){return"".concat(F()?"https://preview-players.qa.brightcove.net":"https://preview-players.brightcove.net","/v2/accounts/").concat(e,"/players/").concat(t,"/preview/embeds/default/master/index.html")},V=function(){return window.StudioModule},Q=function(){return window.brightcove};var z=function(){return"".concat((null===(e=V())||void 0===e||null===(t=e.config)||void 0===t||null===(n=t.product)||void 0===n?void 0:n.path)||"/products/videocloud","/players");var e,t,n},H=o(379),W=o.n(H),Z=o(795),K=o.n(Z),G=o(569),$=o.n(G),J=o(565),Y=o.n(J),X=o(609),ee=o.n(X),te=o(589),ne=o.n(te),re=o(17),ie={};ie.styleTagTransform=ne(),ie.setAttributes=Y(),ie.insert=$().bind(null,"head"),ie.domAPI=K(),ie.insertStyleElement=ee();W()(re.Z,ie);const oe=re.Z&&re.Z.locals?re.Z.locals:void 0;function ae(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function se(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ae(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ae(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ue={responsive:!1,width:960,height:540,urlBase:D(),playlistIsHorizontal:!0},ce=function(e){var t=L().t,n=i((0,s.useState)(""),2),r=n[0],o=n[1];(0,s.useEffect)((function(){var t=function(e){return Object.assign({},se(se({},ue),e))}(e),n=M()(t);o(n)}),[e]);var a=u().createElement(E.Flex,null,u().createElement(E.FlexItem,{flexGrow:"1",className:oe.helperText},t("tabs.helperText")));return u().createElement(u().Fragment,null,u().createElement(E.CopyField,{className:oe.copyInput,helperNode:a,Component:E.PlainTextArea,componentProps:{disabled:!0,disableResizing:!0,className:oe.textAreaDimensions,onChange:function(){}},onCopy:function(){Q().Toaster.success({title:t("toasterTitle"),message:t("toasterMessage")})},onError:function(){Q().Toaster.error({message:t("toasterErrorMessage")})},value:r,hideButton:!0,testName:"embed-copy-section"}))},le=o(462);function de(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function pe(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){de(o,r,i,a,s,"next",e)}function s(e){de(o,r,i,a,s,"throw",e)}a(void 0)}))}}var fe=o(757),he=o.n(fe),ve=o(946);function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ye=function(){return window.StudioModule.config},be=function(){return ye().user.currentAccount.id},Ce=function(e,t){var n;return function(e){var t=window.StudioModule.api();return new Promise((function(n,r){t.call(e,n,r)}))}(e(me(me({},t),(n=ye(),{apiConfig:{publisherId:be(),api:n.module.api}}))))},Ae=function(){var e=pe(he().mark((function e(){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ce(ve.Xo,{}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),we=function(){var e=pe(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ce(ve.createPlayer,t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const Ee=function(e){return(0,O.useQuery)(["players"],(function(){return Ae()}),{refetchOnWindowFocus:!1,enabled:e})};var Oe,Pe;!function(e){e.PLAYER="player",e.VIDEO="video",e.PROJECT="project"}(Oe||(Oe={})),function(e){e.NO_PLAYER="no-player",e.NO_PERMISSION="no-permission"}(Pe||(Pe={}));var xe=["bcAa","bcAirplay","bcGa","bcGtm","bcPlaylistUi","bcTealium","bcMapPlugin","chromecastReceiver","customEndscreen","eme","ima3","interactivityViewer","kollective","overlay","pip","playlistEndscreen","qualityMenu","social","ssai","thumbnails"],Se="bcMapPlugin";function Ie(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return je(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return je(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function je(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ke="default",Re="Interactivity Player",_e="@brightcove/videojs-interactivity-viewer",Le="1.x",Ne=o(94),Me={};Me.styleTagTransform=ne(),Me.setAttributes=Y(),Me.insert=$().bind(null,"head"),Me.domAPI=K(),Me.insertStyleElement=ee();W()(Ne.Z,Me);const Te=Ne.Z&&Ne.Z.locals?Ne.Z.locals:void 0;var Fe=o(144),De=o.n(Fe),Be=o(908),Ue=o.n(Be);
|
|
4
|
+
/*! @name @brightcove/react-player-loader @version 1.4.2 @license Apache-2.0 */
|
|
5
|
+
function qe(){return qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qe.apply(this,arguments)}
|
|
6
|
+
/*! @name @brightcove/player-loader @version 1.8.0 @license Apache-2.0 */
|
|
7
|
+
function Ve(){return Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ve.apply(this,arguments)}var Qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze=["catalogSearch","catalogSequence"],He=["adConfigId","applicationId","catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId"],We=function(e){return Object.keys(e).filter((function(e){return-1!==He.indexOf(e)})).reduce((function(t,n){var r=function(e,t){if(e&&void 0!==e[t]){if("string"!=typeof e[t]&&-1!==ze.indexOf(t))try{return encodeURIComponent(JSON.stringify(e[t]))}catch(e){return}return encodeURIComponent(String(e[t]).trim())||void 0}}(e,n);return void 0!==r&&(t+=t?"&":"?",t+=encodeURIComponent(n)+"="+r),t}),"")},Ze=function(e){var t=e.accountId,n=e.base,r=void 0===n?"https://players.brightcove.net":n,i=e.playerId,o=void 0===i?"default":i,a=e.embedId,s=void 0===a?"default":a,u=e.iframe,c=void 0!==u&&u,l=e.minified,d=void 0===l||l,p=e.queryParams,f=void 0===p?null:p,h="";c?h+="html":(d&&(h+="min."),h+="js"),"/"===r.charAt(r.length-1)&&(r=r.substring(0,r.length-1));var v="";return c&&f&&"object"===(void 0===f?"undefined":Qe(f))&&(v=We(f)),r+"/"+(t=encodeURIComponent(t))+"/"+(o=encodeURIComponent(o))+"_"+(s=encodeURIComponent(s))+"/index."+h+v};
|
|
8
|
+
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */Ze.VERSION="1.2.0";var Ke={embedId:"default",embedType:"in-page",playerId:"default",Promise:Ue().Promise,refNodeInsert:"append"},Ge="video",$e="video-js",Je="in-page",Ye="iframe",Xe="append",et="prepend",tt="before",nt="after",rt="replace",it=["catalogSearch","catalogSequence"],ot="https://players.brightcove.net/",at=function(e){if(e.playerUrl)return e.playerUrl;var t=e.accountId,n=e.playerId,r=e.embedId,i=e.embedOptions,o=e.embedType===Ye;return Ze({accountId:t,playerId:n,embedId:r,iframe:o,base:ot,minified:!i||!i.unminified,queryParams:e})},st=function(){return ot},ut=function(e){ot=e},ct=function(e){return Boolean(e&&1===e.nodeType)},lt=function(e){return Boolean(ct(e)&&e.parentNode)},dt=function(e,t,n){return t?function(e,t){if(!e.pip)return t;var n=De().createElement("div");return n.classList.add("vjs-pip-container"),n.appendChild(t),n}(t,function(e,t,n){if(!t.responsive)return n;n.style.position="absolute",n.style.top="0px",n.style.right="0px",n.style.bottom="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%";var r=Ve({aspectRatio:"16:9",iframeHorizontalPlaylist:!1,maxWidth:"100%"},t.responsive),i=r.aspectRatio.split(":").map(Number),o=De().createElement("div"),a=i[1]/i[0]*100;e===Ye&&r.iframeHorizontalPlaylist&&(a*=1.25),o.style.paddingTop=a+"%",o.appendChild(n);var s=De().createElement("div");return s.style.position="relative",s.style.display="block",s.style.maxWidth=r.maxWidth,s.appendChild(o),s}(e,t,n)):n},pt=function(e){var t=e.embedType===Ye?function(e){var t=De().createElement("iframe");return t.setAttribute("allow","autoplay;encrypted-media;fullscreen"),t.setAttribute("allowfullscreen","allowfullscreen"),t.src=at(e),t}(e):function(e){var t=e.embedOptions,n={adConfigId:"data-ad-config-id",applicationId:"data-application-id",catalogSearch:"data-catalog-search",catalogSequence:"data-catalog-sequence",deliveryConfigId:"data-delivery-config-id",playlistId:"data-playlist-id",playlistVideoId:"data-playlist-video-id",poster:"poster",videoId:"data-video-id"},r=t&&t.tagName||$e,i=De().createElement(r);return Object.keys(n).filter((function(t){return e[t]})).forEach((function(t){var r;if("string"!=typeof e[t]&&-1!==it.indexOf(t))try{r=JSON.stringify(e[t])}catch(e){return}else r=String(e[t]).trim();i.setAttribute(n[t],r)})),i.setAttribute("controls","controls"),i.classList.add("video-js"),i}(e);return function(e,t){var n=e.refNode,r=e.refNodeInsert,i=n.parentNode,o=dt(e.embedType,e.embedOptions,t);if(r===tt?i.insertBefore(o,n):r===nt?i.insertBefore(o,n.nextElementSibling||null):r===rt?i.replaceChild(o,n):r===et?n.insertBefore(o,n.firstChild||null):n.appendChild(o),e.embedOptions&&e.embedOptions.playlist){var a=e.embedOptions.playlist.legacy?"ul":"div",s=De().createElement(a);s.classList.add("vjs-playlist"),t.parentNode.insertBefore(s,t.nextElementSibling||null)}return e.refNode=null,t}(e,function(e,t){if("function"!=typeof e.onEmbedCreated)return t;var n=e.onEmbedCreated(t);return ct(n)?n:t}(e,t))},ft=new(Ue().Map),ht=function(e){return(e.accountId||"*")+"_"+e.playerId+"_"+e.embedId},vt=function(){ft.clear()},gt=function(e){ft.forEach(e)},mt=function(e){return ft.has(ht(e))},yt=function(e){ft.set(ht(e),e.accountId?at(e):"")},bt=/^([A-Za-z0-9]+)_([A-Za-z0-9]+)$/,Ct=function(){return Ue().bc?Object.keys(Ue().bc).filter((function(e){return bt.test(e)})):[]},At=function(e){e&&Object.keys(e.players).forEach((function(t){var n=e.players[t];n&&n.dispose()}))},wt=function(){gt((function(e,t){e&&Array.prototype.slice.call(De().querySelectorAll('script[src="'+e+'"]')).forEach((function(e){return e.parentNode.removeChild(e)}))})),vt(),At(Ue().videojs),Ct().forEach((function(e){return At(Ue().bc[e].videojs)})),Object.keys(Ue()).filter((function(e){return/^videojs/i.test(e)||/^(bc)$/.test(e)})).forEach((function(e){delete Ue()[e]}))};(function(){Ct().forEach((function(e){var t=e.match(bt),n={playerId:t[1],embedId:t[2]};mt(n)||yt(n)}))})();var Et=function(e){return"function"==typeof e},Ot=function(e){var t,n=e.accountId,r=e.embedOptions,i=e.embedType,o=e.options,a=e.refNode,s=e.refNodeInsert;if(!n)throw new Error("accountId is required");if(!lt(a))throw new Error("refNode must resolve to a node attached to the DOM");if(!function(e){return e===Je||e===Ye}(i))throw new Error("embedType is missing or invalid");if(i===Ye&&o)throw new Error("cannot use options with an iframe embed");if(r&&void 0!==r.tagName&&((t=r.tagName)!==$e&&t!==Ge))throw new Error('embedOptions.tagName is invalid (value: "'+r.tagName+'")');if(r&&r.responsive&&r.responsive.aspectRatio&&!/^\d+\:\d+$/.test(r.responsive.aspectRatio))throw new Error('embedOptions.responsive.aspectRatio must be in the "n:n" format (value: "'+r.responsive.aspectRatio+'")');if(!function(e){return e===Xe||e===et||e===tt||e===nt||e===rt}(s))throw new Error("refNodeInsert is missing or invalid")},Pt=function(e,t,n,r){var i,o=e.embedId,a=e.playerId,s=Ue().bc[a+"_"+o]||Ue().bc;if(!s)return r(new Error("missing bc function for "+a));yt(e);try{(i=s(t,e.options)).bcinfo&&(i.bcinfo.PLAYER_LOADER=!0)}catch(t){var u="Could not initialize the Brightcove Player.";return e.embedOptions.tagName===$e&&(u+=' You are attempting to embed using a "video-js" element. Please ensure that your Player is v6.11.0 or newer in order to support this embed type. Alternatively, pass `"video"` for `embedOptions.tagName`.'),r(new Error(u))}n({type:Je,ref:i})},xt=function(e,t,n){e.refNode=function(e){return lt(e)?e:"string"==typeof e?De().querySelector(e):null}(e.refNode),Ot(e);var r=e.refNode,i=e.refNodeInsert,o=r.parentNode,a=pt(e);if(e.embedType!==Ye){if(mt(e))return Pt(e,a,t,n);var s=De().createElement("script");s.onload=function(){return Pt(e,a,t,n)},s.onerror=function(){n(new Error("player script could not be downloaded"))},s.async=!0,s.charset="utf-8",s.src=at(e),i===rt?o.appendChild(s):r.appendChild(s)}else t({type:Ye,ref:a})},St=function(e){var t=Ve({},Ke,e),n=t.Promise,r=t.onSuccess,i=t.onFailure;return!Et(n)||Et(r)||Et(i)?xt(t,Et(r)?r:function(){},Et(i)?i:function(e){throw e}):new n((function(e,n){return xt(t,e,n)}))},It=function(e,t){Object.defineProperty(St,e,{configurable:!1,enumerable:!0,value:t,writable:!1})};It("getBaseUrl",(function(){return st()})),It("setBaseUrl",(function(e){ut(e)})),It("getUrl",(function(e){return at(e)})),It("reset",(function(){return wt()})),[["EMBED_TAG_NAME_VIDEO",Ge],["EMBED_TAG_NAME_VIDEOJS",$e],["EMBED_TYPE_IN_PAGE",Je],["EMBED_TYPE_IFRAME",Ye],["REF_NODE_INSERT_APPEND",Xe],["REF_NODE_INSERT_PREPEND",et],["REF_NODE_INSERT_BEFORE",tt],["REF_NODE_INSERT_AFTER",nt],["REF_NODE_INSERT_REPLACE",rt],["VERSION","1.8.0"]].forEach((function(e){It(e[0],e[1])}));var jt=["catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId"],kt=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).refNode=null,n.setRefNode=function(e){n.refNode=e},n.loadPlayer=n.loadPlayer.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.loadPlayer=function(){var e=this;this.disposePlayer();var t=this.props.onSuccess,n=this.props.onFailure,r=qe({},this.props,{refNode:this.refNode,refNodeInsert:"append",onSuccess:function(n){var r=n.ref,i=n.type;e.isMounted_?(e.player=r,"in-page"===i&&r.one("dispose",(function(){e.player=null})),r.bcinfo&&(r.bcinfo.REACT_PLAYER_LOADER=!0),"function"==typeof t&&t({ref:r,type:i})):e.disposePlayer(r)},onFailure:function(t){if(e.isMounted_){if("function"!=typeof n)throw new Error(t);n(t)}}});delete r.attrs,delete r.baseUrl,delete r.manualReloadFromPropChanges;var i=St.getBaseUrl();this.props.baseUrl&&St.setBaseUrl(this.props.baseUrl),St(r),St.setBaseUrl(i)},i.disposePlayer=function(){this.player&&(this.player.dispose?this.player.dispose():this.player.parentNode&&this.player.parentNode.removeChild(this.player),this.player=null)},i.findPlaylistVideoIdIndex_=function(e){var t=this.props.playlistVideoId;if(Array.isArray(e)&&t)for(var n=0;n<e.length;n++){var r=e[n],i=r.id,o=r.referenceId;if(i===t||"ref:"+o===t)return n}return-1},i.createPlaybackAPICallback_=function(e,t){var n=this;return function(r,i){if(r)!function(e){e&&console&&console.error&&console.error(e)}(r);else{if("playlist"===e&&t.playlistVideoId){var o=n.findPlaylistVideoIdIndex_(i);o>-1&&(i.startingIndex=o)}n.player.catalog.load(i)}}},i.updatePlayer=function(e){if(this.player&&this.player.el&&this.player.el()){var t;if(this.player.usingPlugin("catalog")){if(e.catalogSequence&&this.props.catalogSequence){var n=this.createPlaybackAPICallback_("sequence",e);return void this.player.catalog.getLazySequence(this.props.catalogSequence,n,this.props.adConfigId)}e.videoId&&this.props.videoId?t={type:"video",id:this.props.videoId}:e.playlistId&&this.props.playlistId?t={type:"playlist",id:this.props.playlistId}:e.catalogSearch&&this.props.catalogSearch&&(t={type:"search",q:this.props.catalogSearch})}if(t){this.props.adConfigId&&(t.adConfigId=this.props.adConfigId),this.props.deliveryConfigId&&(t.deliveryConfigId=this.props.deliveryConfigId);var r=this.createPlaybackAPICallback_(t.type,e);this.player.catalog.get(t,r)}else if(e.playlistVideoId&&this.props.playlistVideoId&&this.player.usingPlugin("playlist")){var i=this.findPlaylistVideoIdIndex_(this.player.playlist());i>-1&&this.player.playlist.currentItem(i)}}},i.componentDidMount=function(){this.isMounted_=!0,this.loadPlayer()},i.componentDidUpdate=function(e){var t=this,n=Object.keys(e).reduce((function(n,r){var i=e[r],o=t.props[r];return"function"==typeof o?n:"object"==typeof o&&null!==o?(JSON.stringify(o)!==JSON.stringify(i)&&(n[r]=!0),n):(o!==i&&(n[r]=!0),n)}),{});this.props.manualReloadFromPropChanges||!Object.keys(n).some((function(e){return-1===jt.indexOf(e)}))?this.updatePlayer(n):this.loadPlayer()},i.componentWillUnmount=function(){this.isMounted_=!1,this.disposePlayer()},i.render=function(){var e=qe({className:"brightcove-react-player-loader"},this.props.attrs,{ref:this.setRefNode});return u().createElement("div",e)},r}(u().Component);const Rt=kt;var _t=function(e){var t=e.video,n=e.embedCodeModalType,r=e.playerListForSelection,o=e.players,a=L().t,c=i((0,s.useState)(),2),l=c[0],d=c[1],p=i((0,s.useState)(""),2),f=p[0],h=p[1],v=(0,s.useMemo)((function(){return n===Oe.PROJECT?t.interactivityProjectId:null}),[t,n]);(0,s.useEffect)((function(){if(null!=l&&l.id){var e={accountId:t.accountId,playerId:l.id,videoId:t.videoId};v&&(e.interactivityProjectId=v),h(U(e))}}),[l,t,v]);var g=(0,s.useCallback)((function(e){v&&e.setAttribute("data-interactivity-project-id",v)}),[v]),m={accountId:t.accountId,playerId:(null==l?void 0:l.id)||(r.length>0?r[0].value:ke),isCampaign:(null==l?void 0:l.hasCampaignPlugin)||!1,videoId:t.videoId},y=v?t.interactivityProjectName:t.videoName,b=v||t.videoId;return v&&(m.interactivityProjectId=v),u().createElement(u().Fragment,null,u().createElement("div",{className:Te.leftContent},u().createElement(Ut,{onChange:d,playerListForSelection:r,players:o}),u().createElement(Rt,(0,le.Z)({},m,{baseUrl:D(),attrs:{className:Te.playerLoader},refNode:"player-container",onEmbedCreated:g})),u().createElement(E.Hideable,{show:null==l?void 0:l.hasCustomPlugins},u().createElement("span",{className:Te.customPluginNotice},a("customPluginNotice"))),u().createElement(Zt,{prevUrl:f})),u().createElement("div",{className:Te.rightContent},u().createElement(Dt,{name:y,id:b}),u().createElement(zt,m)))};function Lt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Nt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Nt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Mt=function(e){var t=e.id,n=e.configuration,r=e.accountId,i=void 0===r?"":r,o=L().t,a=q(i,t),c=U({accountId:i,playerId:t}),l=(0,s.useMemo)((function(){var e=!1,t=!1,r=[];if(n){var i,o,a=Lt(r=null!==(i=n.plugins)&&void 0!==i?i:r);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.name;e=xe.includes(u),t=t||s.name===Se}}catch(e){a.e(e)}finally{a.f()}}return{hasCustomPlugins:!e&&r.length>0,isCampaignPlayer:t}}),[n]),d=l.hasCustomPlugins,p=l.isCampaignPlayer;return u().createElement(u().Fragment,null,u().createElement("div",{className:Te.leftContent},u().createElement(Rt,{accountId:i,baseUrl:D(),attrs:{className:Te.playerLoader},embedType:"iframe",refNode:"player-container",playerUrl:a}),u().createElement(E.Hideable,{show:d},u().createElement("span",{className:Te.customPluginNotice},o("customPluginNotice"))),u().createElement(Zt,{prevUrl:c})),u().createElement("div",{className:Te.rightContent},u().createElement(zt,{isCampaign:p,playerId:t,accountId:i})))},Tt=function(e){var t=e.modalType,n=L().t,r=function(e){return u().createElement("a",{href:z()},e)};return u().createElement(E.Flex,{flexDirection:"column"},u().createElement("p",null,t===Pe.NO_PLAYER?n("noPlayerModalContent1"):u().createElement(u().Fragment,null,n("activateModalContent1"),r(n("activateModalContent2")),"."),u().createElement("br",null),t===Pe.NO_PLAYER?n("noPlayerModalContent2"):null),u().createElement(u().Fragment,null,t===Pe.NO_PLAYER?u().createElement("p",null,r(n("toPlayerManagerLink"))):null))},Ft=function(e){var t=e.handleSetComponentKey,n=e.playerPayload,r=e.embedCodeModalType,o=void 0===r?Oe.VIDEO:r,a=L().t,c=i((0,s.useState)(!1),2),l=c[0],d=c[1],p=Ee(!0),f=p.isFetching,h=p.data,v=i((0,s.useState)({}),2),g=v[0],m=v[1],y=i((0,s.useState)([]),2),b=y[0],C=y[1],A=i((0,s.useState)(!1),2),w=A[0],O=A[1],P=i((0,s.useState)(!1),2),x=P[0],S=P[1];(0,s.useEffect)((function(){var e=V().getCurrentUserAccount().roles;e.length&&e.includes(T)&&O(!0)}),[]),(0,s.useEffect)((function(){var e;if(!f&&h&&(null!==(e=null==h?void 0:h.items.length)&&void 0!==e?e:0)>0){var t=function(e){var t=[],n={};return null==e||e.items.forEach((function(e){var r,i,o=null!==(r=e.branches.master.configuration.plugins)&&void 0!==r?r:[],a=!!o&&o.length>0,s=!1,u=!1,c=!1,l=Ie(o);try{for(l.s();!(i=l.n()).done;){var d=i.value,p=d.name;s=xe.includes(p),u=u||d.name===Se,c=c||"@brightcove/videojs-interactivity-viewer"===d.registry_id}}catch(e){l.e(e)}finally{l.f()}t.push({label:e.name,value:e.id}),n[e.id]={label:e.name,id:e.id,hasCustomPlugins:!s&&a,hasCampaignPlugin:u,hasInteractivityPlugin:c}})),{players:n,playerListForSelection:B(t)}}(h),n=t.playerListForSelection,r=t.players,i=void 0===r?{}:r,a=n;o===Oe.PROJECT&&(a=n.filter((function(e){return i[e.value].hasInteractivityPlugin}))),m(i),C(a)}}),[f,h,o]);var I=(0,s.useMemo)((function(){return Object.values(g).some((function(e){return e.hasInteractivityPlugin}))}),[g]);(0,s.useEffect)((function(){n&&d(!0)}),[n]);var j=(0,s.useCallback)((function(){d(!1)}),[]),k=null,R=a("modalHeader"),_=!0,N=[u().createElement(E.Button,{key:"close-button",text:a("done"),onClick:j,testName:"close-modal-btn"})];if(!f)switch(o){case Oe.VIDEO:k="videoId"in n?u().createElement(_t,{video:n,embedCodeModalType:o,players:g,playerListForSelection:b}):null;break;case Oe.PLAYER:var M=n.accountId||be();k="id"in n&&M?u().createElement(Mt,(0,le.Z)({},n,{accountId:M})):null;break;case Oe.PROJECT:I||w?I?k="videoId"in n&&"interactivityProjectId"in n?u().createElement(_t,{video:n,embedCodeModalType:o,playerListForSelection:b,players:g}):null:(R=a("noPlayerModalHeader"),_=!1,N=[u().createElement(E.Button,{key:"cancel-button",text:a("cancel"),onClick:j,testName:"cancel-button",look:"tertiary"}),u().createElement(E.Button,{key:"create-player-button",text:a("createPlayerNow"),spinner:x,onClick:function(){var e=Re,n=_e,r=Le;S(!0),we({data:{name:e,configuration:{plugins:[{registry_id:n,version:r}]}}}).then((function(e){e&&e.id&&t()})).catch((function(e){console.error(e),Q().Toaster.error({title:a("createPlayerFailedTitle"),message:a("createPlayerFailedMessage")})})).finally((function(){S(!1)}))},testName:"create-player-button"})],k=u().createElement(Tt,{modalType:Pe.NO_PLAYER})):(R=a("activateModal"),_=!1,N=[u().createElement(E.Button,{key:"close-button",text:a("close"),onClick:j,testName:"close-modal-done-btn"})],k=u().createElement(Tt,{modalType:Pe.NO_PERMISSION}));break;default:console.warn("EmbedModal with ".concat(o," is not supported")),k=null}return k?u().createElement(E.Modal,{testName:"embed-modal",title:R,isOpen:l,large:_,onClose:j,buttons:N},u().createElement(E.Flex,{className:Te.videoDetailsContainer},k)):(console.warn("EmbedModal called with wrong props for type: ".concat(o)),null)},Dt=function(e){var t=e.name,n=e.id,r=i((0,s.useState)(!1),2),o=r[0],a=r[1],c=(0,s.useMemo)((function(){return t?(e=t).length>60?"".concat(e.substring(0,60).trim(),"..."):e:"";var e}),[t]);return(0,s.useEffect)((function(){t&&a(c!==t)}),[c,t]),u().createElement(E.Flex,{flexDirection:"column",className:Te.mediaData},u().createElement(E.ToolTip,{placement:"top",portal:!0,block:!0,content:t,active:o,testName:"embed-video-tooltip"},u().createElement("div",{className:Te.mediaTitle},c)),u().createElement("div",{className:Te.mediaId},n))},Bt=function(e){var t=e.tooltipTextNew,n=e.tooltipLink,r=L().t;return u().createElement(u().Fragment,null,u().createElement("div",null,t),u().createElement("a",{href:r("learnmore"),target:"_blank",rel:"noreferrer"},n))},Ut=function(e){var t=e.onChange,n=e.playerListForSelection,r=e.players,o=L().t,a=i((0,s.useState)(),2),c=a[0],l=a[1],d=(0,s.useCallback)((function(e){if(r){var n=r[e];l(n),t&&t(n)}}),[r,t]);return(0,s.useEffect)((function(){c||d(n.length>0?n[0].value:ke)}),[d,n,c]),c?u().createElement(u().Fragment,null,u().createElement(E.Flex,null,u().createElement("div",{className:Te.playerSelectLabel},o("player")),u().createElement(E.ToolTip,{content:u().createElement(Bt,{tooltipLink:o("tooltipLink"),tooltipTextNew:o("tooltipTextNew")}),placement:"top",className:Te.tooltip,reflow:!1,testName:"embed-player-tooltip"})),u().createElement(E.Hideable,{show:n.length>0},u().createElement(E.Select,{value:c.id,options:n,inputClassName:Te.playerSelect,onChange:d,testName:"embed-player-select"}))):null},qt=function(e){var t=e.currentTab,n=e.handleTabChange,r=e.iframeLabel,i=e.jsLabel;return u().createElement(E.Flex,{justifyContent:"space-between",alignItems:"baseline"},u().createElement(E.Tabs,{selectedId:t,onSelect:n},u().createElement(E.TabList,null,u().createElement(E.Tab,{tabId:"iframe",testName:"iframe-tab"},r),u().createElement(E.Tab,{tabId:"javascript",testName:"js-tab"},i))))};function Vt(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Qt=["isCampaign"],zt=function(e){var t=e.isCampaign,n=Vt(e,Qt),r=L().t,o=i((0,s.useState)("iframe"),2),a=o[0],c=o[1],l="iframe"===a;return u().createElement(u().Fragment,null,u().createElement(qt,{currentTab:a,handleTabChange:function(e){return c(e)},jsLabel:r("tabs.labels.javascript"),iframeLabel:r("tabs.labels.iframe")}),u().createElement(E.TabPanel,{testName:"embed-tab-content",render:function(){return t&&l?u().createElement("span",{className:Te.redHelperText},r("tabs.helperTextWarning")):u().createElement(ce,(0,le.Z)({iframe:l},n))}}))},Ht=o(826),Wt=function(){var e=pe(he().mark((function e(t){var n;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.longUrl,e.abrupt("return",Ce(Ht.P,{longUrl:n}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Zt=function(e){var t=e.prevUrl,n=L().t,r=i((0,s.useState)(!1),2),o=r[0],a=r[1],c=(0,s.useCallback)(function(){var e=pe(he().mark((function e(t){return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a(!0),Kt(t).then((function(){Q().Toaster.success({title:n("toasterTitle"),message:n("toasterGetURLSuccess")})})).catch((function(){Q().Toaster.error({message:n("toasterGetURLError")})})).finally((function(){return a(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n]);return u().createElement("div",null,u().createElement("div",{className:Te.getURLBtnContainer},u().createElement(E.Button,{look:"tertiary",text:n("getURL"),testName:"get-url-btn",icon:o?"":"link",iconRight:!0,onClick:function(){return c(t)}}),o&&u().createElement(E.Loader,{className:Te.getURLBtnSpinner,size:"inline",color:"navy"})),u().createElement(E.Button,{look:"tertiary",text:n("previewButton"),testName:"preview-player-btn",icon:"external_link",iconRight:!0,onClick:function(){window.open(t,"_blank")}}))},Kt=function(){var e=pe(he().mark((function e(t){var n,r;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=encodeURI(t),e.prev=1,e.abrupt("return",navigator.clipboard.write([new ClipboardItem({"text/plain":new Promise(function(){var e=pe(he().mark((function e(t){var r;return he().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Wt({longUrl:n});case 2:r=e.sent,t(new Blob([r],{type:"text/plain"}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})]));case 5:return e.prev=5,e.t0=e.catch(1),e.next=9,Wt({longUrl:n});case 9:return r=e.sent,e.abrupt("return",navigator.clipboard.writeText(r));case 11:case"end":return e.stop()}}),e,null,[[1,5]])})));return function(t){return e.apply(this,arguments)}}();function Gt(e){return Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Gt(e)}function $t(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Jt=o(611);function Yt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,Jt.Z)(e,t)}function Xt(e,t){if(t&&("object"===Gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $t(e)}function en(e){return en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},en(e)}function tn(t){return e(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||n(t)||r()}function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var on={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},an=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.init(t,n)}return d(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||on,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,rn(rn({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}(),sn=new an,un=function(){function e(){c(this,e),this.observers={}}return d(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function cn(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function ln(e){return null==e?"":""+e}function dn(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function pn(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function fn(e,t,n){var r=pn(e,t,Object);r.obj[r.k]=n}function hn(e,t){var n=pn(e,t),r=n.obj,i=n.k;if(r)return r[i]}function vn(e,t,n){var r=hn(e,n);return void 0!==r?r:hn(t,n)}function gn(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):gn(e[r],t[r],n):e[r]=t[r]);return e}function mn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var yn={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function bn(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return yn[e]})):e}var Cn="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,An=[" ",",","?","!",";"];function wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function En(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function On(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var i=en(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Xt(this,n)}}function Pn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i)return;if("string"==typeof i[r[o]]&&o+1<r.length)return;if(void 0===i[r[o]]){for(var a=2,s=r.slice(o,o+a).join(n),u=i[s];void 0===u&&r.length>o+a;)a++,u=i[s=r.slice(o,o+a).join(n)];if(void 0===u)return;if(t.endsWith(s)){if("string"==typeof u)return u;if(s&&"string"==typeof u[s])return u[s]}var c=r.slice(o+a).join(n);return c?Pn(u,c,n):void 0}i=i[r[o]]}return i}}var xn=function(e){Yt(n,e);var t=On(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return c(this,n),r=t.call(this),Cn&&un.call($t(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return d(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=hn(this.data,a);return s||!o||"string"!=typeof n?s:Pn(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),fn(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=hn(this.data,a)||{};r?gn(s,n,i):s=En(En({},s),n),fn(this.data,a,s),o.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?En(En({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(un),Sn={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}};function In(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var i=en(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Xt(this,n)}}var Rn={},_n=function(e){Yt(n,e);var t=kn(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,n),r=t.call(this),Cn&&un.call($t(r)),dn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,$t(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=sn.create("translator"),r}return d(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=An.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==Gt(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),u=s.key,c=s.namespaces,l=c[c.length-1],d=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var f=t.nsSeparator||this.options.nsSeparator;return o?(h.res="".concat(l).concat(f).concat(u),h):"".concat(l).concat(f).concat(u)}return o?(h.res=u,h):u}var h=this.resolve(e,t),v=h&&h.res,g=h&&h.usedKey||u,m=h&&h.exactUsedKey||u,y=Object.prototype.toString.apply(v),b=["[object Number]","[object Function]","[object RegExp]"],C=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v;if(A&&v&&w&&b.indexOf(y)<0&&("string"!=typeof C||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,v,jn(jn({},t),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(h.res=E,h):E}if(a){var O="[object Array]"===y,P=O?[]:{},x=O?m:g;for(var S in v)if(Object.prototype.hasOwnProperty.call(v,S)){var I="".concat(x).concat(a).concat(S);P[S]=this.translate(I,jn(jn({},t),{joinArrays:!1,ns:c})),P[S]===I&&(P[S]=v[S])}v=P}}else if(A&&"string"==typeof C&&"[object Array]"===y)(v=v.join(C))&&(v=this.extendTranslation(v,e,t,r));else{var j=!1,k=!1,R=void 0!==t.count&&"string"!=typeof t.count,_=n.hasDefaultValue(t),L=R?this.pluralResolver.getSuffix(d,t.count,t):"",N=t["defaultValue".concat(L)]||t.defaultValue;!this.isValidLookup(v)&&_&&(j=!0,v=N),this.isValidLookup(v)||(k=!0,v=u);var M=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,T=M&&k?void 0:v,F=_&&N!==v&&this.options.updateMissing;if(k||j||F){if(this.logger.log(F?"updateKey":"missingKey",d,l,u,F?N:v),a){var D=this.resolve(u,jn(jn({},t),{},{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var B=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var q=0;q<U.length;q++)B.push(U[q]);else"all"===this.options.saveMissingTo?B=this.languageUtils.toResolveHierarchy(t.lng||this.language):B.push(t.lng||this.language);var V=function(e,n,r){var o=_&&r!==v?r:T;i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,n,o,F,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,n,o,F,t),i.emit("missingKey",e,l,n,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?B.forEach((function(e){i.pluralResolver.getSuffixes(e,t).forEach((function(n){V([e],u+n,t["defaultValue".concat(n)]||N)}))})):V(B,u,N))}v=this.extendTranslation(v,e,t,h,r),k&&v===u&&this.options.appendNamespaceToMissingKey&&(v="".concat(l,":").concat(u)),(k||j)&&this.options.parseMissingKeyHandler&&(v="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(u,j?v:void 0):this.options.parseMissingKeyHandler(v))}return o?(h.res=v,h):v}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,jn(jn({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(jn(jn({},n),{interpolation:jn(jn({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=jn(jn({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=Sn.handle(p,e,t,this.options&&this.options.postProcessPassResolved?jn({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var d=void 0!==s.count&&"string"!=typeof s.count,p=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!Rn["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(Rn["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,u=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,c,n,e,s);else{var l;d&&(l=a.pluralResolver.getSuffix(n,s.count,s));var h="_zero";if(d&&(u.push(c+l),p&&u.push(c+h)),f){var v="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(v),d&&(u.push(v+l),p&&u.push(v+h))}}for(;o=u.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),n}(un);function Ln(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Nn=function(){function e(t){c(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=sn.create("languageUtils")}return d(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ln(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=Ln(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Ln(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),Mn=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],Tn={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},Fn=["v1","v2","v3"],Dn={zero:0,one:1,two:2,few:3,many:4,other:5};function Bn(){var e={};return Mn.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Tn[t.fc]}}))})),e}var Un=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.languageUtils=t,this.options=n,this.logger=sn.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Bn()}return d(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return Dn[e]-Dn[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Fn.includes(this.options.compatibilityJSON)}}]),e}();function qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qn(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Qn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=sn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return d(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:bn,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?mn(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?mn(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?mn(t.nestingPrefix):t.nestingPrefixEscaped||mn("$t("),this.nestingSuffix=t.nestingSuffix?mn(t.nestingSuffix):t.nestingSuffixEscaped||mn(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,o,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var i=vn(t,u,e);return s.alwaysFormat?s.format(i,void 0,n,Vn(Vn(Vn({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(vn(t,u,a),c,n,Vn(Vn(Vn({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=l(n)))if("function"==typeof d){var u=d(e,i,r);o="string"==typeof u?u:""}else if(r&&r.hasOwnProperty(n))o="";else{if(p){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=ln(o));var c=t.safeValue(o);if(e=e.replace(i[0],c),p?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Vn({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,a)).replace(/'/g,'"');try{a=JSON.parse(i),t&&(a=Vn(Vn({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),u=l,c=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=ln(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=u.reduce((function(e,t){return i.format(e,t,o.lng,Vn(Vn({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Wn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=sn.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,Hn(Hn({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,Hn({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,Hn({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,Hn({},n)).format(e)}},this.init(t)}return d(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var i=this,o=t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=tn(e.split(":")),r=t[0],i=t.slice(1).join(":");n[r.trim()]||(n[r.trim()]=i.trim()),"false"===i.trim()&&(n[r.trim()]=!1),"true"===i.trim()&&(n[r.trim()]=!0),isNaN(i.trim())||(n[r.trim()]=parseInt(i.trim(),10))}}))}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(i.formats[a]){var u=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=c.locale||c.lng||r.locale||r.lng||n;u=i.formats[a](e,l,Hn(Hn(Hn({},s),r),c))}catch(e){i.logger.warn(e)}return u}return i.logger.warn("there was no format function for ".concat(a)),e}),e);return o}}]),e}();function Zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zn(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var i=en(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Xt(this,n)}}var $n=function(e){Yt(n,e);var t=Gn(n);function n(e,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c(this,n),o=t.call(this),Cn&&un.call($t(o)),o.backend=e,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=sn.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return d(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},u={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===u[t]&&(u[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,u,c,l,d;r=n.loaded,s=o,c=pn(r,[i],Object),l=c.obj,d=c.k,l[d]=l[d]||[],u&&(l[d]=l[d].concat(s)),u||l[d].push(s),function(e,t){delete e.pending[t],e.pendingCount--}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=Object.keys(a[e]);t.length&&t.forEach((function(n){void 0!==t[n]&&(a[e][n]=!0)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a}):(this.readingCalls++,this.backend[n](e,t,(function(s,u){if(s&&u&&i<5)setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o);else{if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}a(s,u)}}))):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,Kn(Kn({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(un);function Jn(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Gt(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Gt(e[2])||"object"===Gt(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Yn(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Xn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function er(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xn(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var i=en(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Xt(this,n)}}function nr(){}function rr(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var ir=function(e){Yt(n,e);var t=tr(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(c(this,n),e=t.call(this),Cn&&un.call($t(e)),e.options=Yn(r),e.services={},e.logger=sn,e.modules={external:[]},rr($t(e)),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),Xt(e,$t(e));setTimeout((function(){e.init(r,i)}),0)}return e}return d(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=Jn();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=er(er(er({},r),this.options),Yn(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=er(er({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?sn.init(i(this.modules.logger),this.options):sn.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=Wn);var a=new Nn(this.options);this.store=new xn(this.options.resources,this.options);var s=this.services;s.logger=sn,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Un(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new Qn(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new $n(i(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new _n(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=nr),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=cn(),p=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),d.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nr,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=cn();return e||(e=this.languages),t||(t=this.options.ns),n||(n=nr),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&Sn.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=cn();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var a="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);a&&(n.language||i(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,o){o?(i(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,a)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t,n){var r=this,i=function e(t,i){var o;if("object"!==Gt(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else o=er({},i);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns;var c=r.options.keySeparator||".",l=n?"".concat(n).concat(c).concat(t):t;return r.t(l,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!(this.services.backendConnector.backend&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=cn();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=cn();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nr,i=er(er(er({},this.options),t),{isClone:!0}),o=new n(i),a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=er({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new _n(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(un);p(ir,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ir(e,t)}));var or=ir.createInstance();or.createInstance=ir.createInstance;or.createInstance,or.init,or.loadResources,or.reloadResources,or.use,or.changeLanguage,or.getFixedT,or.t,or.exists,or.setDefaultNamespace,or.hasLoadedNamespace,or.loadNamespaces,or.loadLanguages;const ar=or;var sr,ur,cr={en:{translation:JSON.parse('{"modalHeader":"Embed on website","mediaNotice":"Will use your account’s default player","tooltipText":"Currently using the Brightcove Default Player. Player management coming soon.","tooltipTextNew":"Players determine the video playback experience such as styling, special configuration settings, and more.","tooltipLink":"Learn more about players","learnmore":"https://studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Preview","player":"Player","getURL":"Get URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copy the HTML code and paste it on your website.","helperTextWarning":"This player is configured with the Campaign plugin. To ensure proper tracking, the JavaScript embed code should be used."},"done":"Done","close":"Close","toasterTitle":"Success.","toasterMessage":"Code copied to clipboard","toasterGetURLSuccess":"URL copied to the clipboard","toasterErrorMessage":"Error while copying text to clipboard","toasterGetURLError":"URL cannot be generated","customPluginNotice":"Due to custom configurations, you may not be experiencing the full preview.","noPlayerModalHeader":"Create an Interactivity Player","noPlayerModalContent1":"To embed an Interactivity Project you must enable the interactivity feature.","noPlayerModalContent2":"Activate this feature on any existing player or create a new one.","toPlayerManagerLink":"Go to the player manager","cancel":"Cancel","createPlayerNow":"Create Player Now","createPlayerFailedTitle":"Failed to create the Interactivity-enabled Player.","createPlayerFailedMessage":"Please try again.","activateModal":"No Interactivity-enabled players","activateModalContent1":"An Interactivity-enabled player is required to embed a project. Currently, this account has no Interactivity-enabled players. To create one, use the ","activateModalContent2":"Players module"}')},es:{translation:JSON.parse('{"modalHeader":"Incrustar en sitio web","mediaNotice":"Utilizará el reproductor predeterminado de su cuenta","tooltipText":"Actualmente se está utilizando el reproductor predeterminado de Brightcove. La gestión de reproductores estará disponible próximamente.","tooltipTextNew":"Los reproductores determinan la experiencia del usuario a la hora de reproducir vídeos por medio de ajustes como el estilo del reproductor, ajustes de configuración especiales y otros.","tooltipLink":"Más información sobre reproductores","learnmore":"https://es.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Vista previa","player":"Reproductor","getURL":"Obtener URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copie el código HTML y péguelo en su sitio web.","helperTextWarning":"Este reproductor está configurado con el complemento Campaign. Para garantizar un seguimiento adecuado, debe utilizarse el código de incrustación JavaScript."},"toasterTitle":"Operación realizada correctamente.","toasterMessage":"Código copiado al portapapeles","toasterGetURLSuccess":"URL copiada al portapapeles","toasterGetURLError":"No es posible generar la URL","toasterErrorMessage":"Se ha producido un error al copiar el texto al portapapeles.","customPluginNotice":"Puede ocurrir que las configuraciones personalizadas impidan la previsualización completa.","done":"Hecho","close":"Cerrar","noPlayerModalHeader":"Crear un reproductor de interactividad","noPlayerModalContent1":"Para poder incrustar un proyecto de interactividad, primero hay que activar la función de interactividad.","noPlayerModalContent2":"Active esta función en cualquier reproductor existente o cree uno nuevo.","toPlayerManagerLink":"Vaya al gestor de reproductores","cancel":"Cancelar","createPlayerNow":"Crear reproductor ahora","createPlayerFailedTitle":"No ha sido posible crear el reproductor con la interactividad activada.","createPlayerFailedMessage":"Vuelva a intentarlo.","activateModal":"No hay ningún reproductor con la interactividad activada","activateModalContent1":"Para poder incrustar proyectos, se precisa un reproductor con la interactividad activada. En este momento, esta cuenta no tiene reproductores con la interactividad activada. Para crear uno, utilice el ","activateModalContent2":"Módulo Players"}')},fr:{translation:JSON.parse('{"modalHeader":"Intégration à un site Internet","mediaNotice":"Ceci utilisera le lecteur par défaut de votre compte","tooltipText":"Utilise actuellement le lecteur Brightcove par défaut. La fonctionnalité de gestion des lecteurs sera bientôt disponible.","tooltipTextNew":"Les joueurs choisissent l\'expérience de lecture vidéo comme l\'apparence, les paramètres de configuration spéciaux, et plus.","tooltipLink":"En savoir plus sur les lecteurs","learnmore":"https://fr.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Aperçu","player":"Player","getURL":"Obtenir l\'URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copiez le code HTML et collez-le dans votre site Internet.","helperTextWarning":"Ce joueur est configuré avec le plug-in Campaign. Pour garantir un suivi adéquat, le code incorporé JavaScript doit être utilisé."},"toasterTitle":"Réussite.","toasterMessage":"Code copié dans le presse-papiers","toasterGetURLSuccess":"URL copiée dans le presse-papiers","toasterGetURLError":"Impossible de générer l\'URL","toasterErrorMessage":"Erreur lors de la copie du texte dans le presse-papiers","customPluginNotice":"En raison des configurations personnalisées, vous pourriez ne pas pouvoir visualiser l\'aperçu plein écran.","done":"Terminé","close":"Fermer","noPlayerModalHeader":"Créer un lecteur d’interactivité","noPlayerModalContent1":"Pour intégrer un projet d’interactivité vous devez activer la fonction d’interactivité.","noPlayerModalContent2":"Activez cette fonction sur un lecteur existant ou créez-en un nouveau.","toPlayerManagerLink":"Allez au gestionnaire des lecteurs","cancel":"Annuler","createPlayerNow":"Créer un lecteur maintenant","createPlayerFailedTitle":"Impossible de créer le lecteur compatible à l’interactivité.","createPlayerFailedMessage":"Veuillez réessayer.","activateModal":"Aucun lecteur compatible à l’interactivité.","activateModalContent1":"Un lecteur compatible à l’interactivité est obligatoire pour intégrer un projet. Actuellement, ce compte ne contient aucun lecteur compatible à l’interactivité. Pour en créer un, utilisez le ","activateModalContent2":"module Lecteurs"}')},ja:{translation:JSON.parse('{"modalHeader":"Webサイトに埋め込み","mediaNotice":"アカウントのデフォルトのプレーヤーを使用します","tooltipText":"現在、Brightcoveのデフォルトのプレーヤーを使用しています。プレーヤー管理が、間もなく公開されます。","tooltipTextNew":"プレーヤーは、スタイル指定や特別な設定など、動画再生体験を決定します。","tooltipLink":"プレーヤーについての詳細","learnmore":"https://ja.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"プレビュー","player":"プレーヤー","getURL":"URLを取得する","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTMLコードをコピーし、お客様のWebサイトに貼り付けてください。","helperTextWarning":"このプレーヤーは、キャンペーンプラグインを使って構成されています。適切にトラッキングするには、 JavaScript埋め込みコードを使用してください。"},"toasterTitle":"成功。","toasterMessage":"コードをクリップボードにコピーしました","toasterGetURLSuccess":"URLをクリップボードにコピーしました","toasterGetURLError":"URLを生成できません","toasterErrorMessage":"テキストをクリップボードにコピー中にエラーが発生しました","customPluginNotice":"カスタム設定により、プレビューが完全でない場合があります。","done":"完了","close":"閉じる","noPlayerModalHeader":"インタラクティブプレーヤーの作成","noPlayerModalContent1":"インタラクティブプロジェクトを埋め込むには、インタラクティブ機能を有効にする必要があります。","noPlayerModalContent2":"既存のプレーヤーでこの機能をアクティブ化するか、新しいプレーヤーを作成してください。","toPlayerManagerLink":"プレーヤーマネージャーに移動します","cancel":"キャンセル","createPlayerNow":"今すぐプレーヤーを作成","createPlayerFailedTitle":"インタラクティブ機能対応プレーヤーの作成に失敗しました。","createPlayerFailedMessage":"もう一度お試しください。","activateModal":"インタラクティブ機能対応プレーヤーがありません","activateModalContent1":"プロジェクトを埋め込むには、インタラクティブ機能対応プレーヤーが必要です。現在、このアカウントには、インタラクティブ機能対応プレーヤーがありません。作成するには ","activateModalContent2":"Playersモジュールを使用します"}')},ko:{translation:JSON.parse('{"modalHeader":"웹사이트에 임베드","mediaNotice":"계정의 기본 플레이어를 사용합니다","tooltipText":"현재 Brightcove 기본 플레이어 사용 중입니다. 플레이어 관리가 곧 출시됩니다.","tooltipTextNew":"플레이어는 스타일 지정, 특수 구성 설정 등 비디오 재생 경험을 결정합니다.","tooltipLink":"플레이어에 대해 자세히 알아보기","learnmore":"https://ko.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"미리 보기","player":"플레이어","getURL":"URL 받기","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTML 코드를 복사하여 웹사이트에 붙여넣으십시오.","helperTextWarning":"이 플레이어는 캠페인 플러그인과 함께 구성됩니다. 바르게 추적되게 하려면, JavaScript 내장 코드를 사용해야 합니다."},"toasterTitle":"성공.","toasterMessage":"클립보드에 코드가 복사됨","toasterGetURLSuccess":"URL이 클립보드에 복사됨","toasterGetURLError":"URL 생성 불가","toasterErrorMessage":"클립보드에 텍스트를 복사하는 중 오류 발생","customPluginNotice":"사용자 정의 구성으로 인해 전체 미리 보기를 이용하지 못할 수도 있습니다.","done":"완료","close":"닫기","noPlayerModalHeader":"상호작용성 플레이어 생성","noPlayerModalContent1":"상호작용성 프로젝트를 임베딩하려면 상호작용성 기능을 활성화해야 합니다.","noPlayerModalContent2":"기존 플레이어에서 이 기능을 활성화하거나 새 플레이어를 생성하십시오.","toPlayerManagerLink":"플레이어 관리자로 이동","cancel":"취소","createPlayerNow":"지금 플레이어 생성","createPlayerFailedTitle":"상호작용성 지원 플레이어를 생성하지 못했습니다.","createPlayerFailedMessage":"다시 시도해 주십시오.","activateModal":"상호작용성 지원 플레이어가 없음","activateModalContent1":"프로젝트를 임베딩하려면 상호작용성 지원 플레이어가 필요합니다. 현재 이 계정에는 상호작용성 지원 플레이어가 없습니다. 다음을 사용해 새 플레이어 생성 ","activateModalContent2":"플레이어 모듈"}')},zh:{translation:JSON.parse('{"modalHeader":"內嵌到網站","mediaNotice":"會使用您帳戶的預設播放程式","tooltipText":"目前使用 Brightcove 預設播放程式。播放程式管理功能即將推出。","tooltipTextNew":"播放器決定視訊播放體驗,例如樣式風格、特別組態設定等。","tooltipLink":"瞭解關於播放程式的更多資訊","learnmore":"https://zh-tw.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"預覽","player":"播放程式","getURL":"取得 URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"複製 HTML 程式碼並貼到您的網站上。","helperTextWarning":"此播放程式設定有活動外掛程式。為了確保正確追蹤,應使用 JavaScript 內嵌程式碼。"},"toasterTitle":"成功.","toasterMessage":"程式碼已複製到剪貼簿","toasterGetURLSuccess":"URL 已複製到剪貼簿","toasterGetURLError":"無法產生 URL","toasterErrorMessage":"複製文字到剪貼簿時發生錯誤","customPluginNotice":"由於自訂組態,您可能無法體驗完整預覽版。","done":"完成","close":"關閉","noPlayerModalHeader":"建立互動播放程式","noPlayerModalContent1":"若要嵌入互動專案,您必須啟用互動功能。","noPlayerModalContent2":"在任何現有播放程式上啟動此功能或建立新項目。","toPlayerManagerLink":"前往播放程式管理員","cancel":"取消","createPlayerNow":"立即建立播放程式","createPlayerFailedTitle":"無法建立已啟用互動功能的播放程式。","createPlayerFailedMessage":"請再試一次。","activateModal":"沒有已啟用互動功能的播放程式","activateModalContent1":"需要有已啟用互動功能的播放程式才能嵌入專案。目前,此帳戶沒有已啟用互動功能的播放程式。若要建立一個,請使用 ","activateModalContent2":"播放程式模組"}')}};ar.use(A).init({lng:(null===(sr=window.StudioModule)||void 0===sr||null===(ur=sr.config)||void 0===ur?void 0:ur.lang)||"en",fallbackLng:"en",debug:!0,returnObjects:!0,resources:cr,interpolation:{escapeValue:!1}});const lr=ar;(0,E.initialize)({theme:"blueSteel"});var dr=new O.QueryClient;const pr=function(e){var t=e.playerPayload,n=e.language,r=e.embedCodeModalType,o=i((0,s.useState)(0),2),a=o[0],c=o[1];(0,s.useEffect)((function(){lr.changeLanguage(n||window.StudioModule.config.lang)}),[n]);return t?u().createElement(O.QueryClientProvider,{client:dr},u().createElement(w,{i18n:lr},u().createElement(Ft,{key:a,handleSetComponentKey:function(){c(a+1)},playerPayload:t,language:n,embedCodeModalType:r}))):null}})(),a})()));
|