@brightcove/components-embed-code-modal 0.1.15 → 0.1.16

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 CHANGED
@@ -1,8 +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"));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=Z,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 m=u++;s[m]="(?:"+s[l]+"|"+s[d]+")";var v=u++;s[v]="(?:-("+s[h]+"(?:\\."+s[h]+")*))";var g=u++;s[g]="(?:-?("+s[m]+"(?:\\."+s[m]+")*))";var y=u++;s[y]="[0-9A-Za-z-]+";var b=u++;s[b]="(?:\\+("+s[y]+"(?:\\."+s[y]+")*))";var A=u++,C="v?"+s[p]+s[v]+"?"+s[b]+"?";s[A]="^"+C+"$";var w="[v=\\s]*"+s[f]+s[g]+"?"+s[b]+"?",E=u++;s[E]="^"+w+"$";var O=u++;s[O]="((?:<|>)?=?)";var x=u++;s[x]=s[l]+"|x|X|\\*";var S=u++;s[S]=s[c]+"|x|X|\\*";var P=u++;s[P]="[v=\\s]*("+s[S]+")(?:\\.("+s[S]+")(?:\\.("+s[S]+")(?:"+s[v]+")?"+s[b]+"?)?)?";var I=u++;s[I]="[v=\\s]*("+s[x]+")(?:\\.("+s[x]+")(?:\\.("+s[x]+")(?:"+s[g]+")?"+s[b]+"?)?)?";var j=u++;s[j]="^"+s[O]+"\\s*"+s[P]+"$";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 N=u++;s[N]="(\\s*)"+s[_]+"\\s+",a[N]=new RegExp(s[N],"g");var L=u++;s[L]="^"+s[_]+s[P]+"$";var T=u++;s[T]="^"+s[_]+s[I]+"$";var F=u++;s[F]="(?:\\^)";var M=u++;s[M]="(\\s*)"+s[F]+"\\s+",a[M]=new RegExp(s[M],"g");var D=u++;s[D]="^"+s[F]+s[P]+"$";var B=u++;s[B]="^"+s[F]+s[I]+"$";var U=u++;s[U]="^"+s[O]+"\\s*("+w+")$|^$";var q=u++;s[q]="^"+s[O]+"\\s*("+C+")$|^$";var V=u++;s[V]="(\\s*)"+s[O]+"\\s*("+w+"|"+s[P]+")",a[V]=new RegExp(s[V],"g");var Q=u++;s[Q]="^\\s*("+s[P]+")\\s+-\\s+("+s[P]+")\\s*$";var W=u++;s[W]="^\\s*("+s[I]+")\\s+-\\s+("+s[I]+")\\s*$";var z=u++;s[z]="(<|>)?=?\\s*\\*";for(var H=0;H<35;H++)r(H,s[H]),a[H]||(a[H]=new RegExp(s[H]));function K(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Z)return e;if("string"!=typeof e)return null;if(e.length>i)return null;if(!(t.loose?a[E]:a[A]).test(e))return null;try{return new Z(e,t)}catch(e){return null}}function Z(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof Z){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 Z))return new Z(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?a[E]:a[A]);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=Z,Z.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},Z.prototype.toString=function(){return this.version},Z.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof Z||(e=new Z(e,this.options)),this.compareMain(e)||this.comparePre(e)},Z.prototype.compareMain=function(e){return e instanceof Z||(e=new Z(e,this.options)),$(this.major,e.major)||$(this.minor,e.minor)||$(this.patch,e.patch)},Z.prototype.comparePre=function(e){if(e instanceof Z||(e=new Z(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)},Z.prototype.compareBuild=function(e){e instanceof Z||(e=new Z(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)},Z.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 Z(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 Z(e,n).compare(new Z(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 Z(e,t).major},t.minor=function(e,t){return new Z(e,t).minor},t.patch=function(e,t){return new Z(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 Z(e,n),i=new Z(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 Z(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 Z(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 Z(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[W]: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[N],"$1~")).replace(a[M],"$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[T]:a[L];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[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 Z(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 Z(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 Z(r=e,n)))})),r},t.minVersion=function(e,t){e=new se(e,t);var n=new Z("0.0.0");if(e.test(n))return n;if(n=new Z("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 Z(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 Z)return e;if("string"!=typeof e)return null;var n=e.match(a[R]);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 m(){}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=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,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=H,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 f=u++;s[f]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var p=u++;s[p]="("+s[l]+")\\.("+s[l]+")\\.("+s[l]+")";var h=u++;s[h]="(?:"+s[c]+"|"+s[d]+")";var g=u++;s[g]="(?:"+s[l]+"|"+s[d]+")";var v=u++;s[v]="(?:-("+s[h]+"(?:\\."+s[h]+")*))";var m=u++;s[m]="(?:-?("+s[g]+"(?:\\."+s[g]+")*))";var y=u++;s[y]="[0-9A-Za-z-]+";var b=u++;s[b]="(?:\\+("+s[y]+"(?:\\."+s[y]+")*))";var C=u++,A="v?"+s[f]+s[v]+"?"+s[b]+"?";s[C]="^"+A+"$";var w="[v=\\s]*"+s[p]+s[m]+"?"+s[b]+"?",E=u++;s[E]="^"+w+"$";var O=u++;s[O]="((?:<|>)?=?)";var x=u++;s[x]=s[l]+"|x|X|\\*";var S=u++;s[S]=s[c]+"|x|X|\\*";var P=u++;s[P]="[v=\\s]*("+s[S]+")(?:\\.("+s[S]+")(?:\\.("+s[S]+")(?:"+s[v]+")?"+s[b]+"?)?)?";var I=u++;s[I]="[v=\\s]*("+s[x]+")(?:\\.("+s[x]+")(?:\\.("+s[x]+")(?:"+s[m]+")?"+s[b]+"?)?)?";var j=u++;s[j]="^"+s[O]+"\\s*"+s[P]+"$";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[P]+"$";var F=u++;s[F]="^"+s[_]+s[I]+"$";var T=u++;s[T]="(?:\\^)";var M=u++;s[M]="(\\s*)"+s[T]+"\\s+",a[M]=new RegExp(s[M],"g");var D=u++;s[D]="^"+s[T]+s[P]+"$";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[P]+")",a[V]=new RegExp(s[V],"g");var Q=u++;s[Q]="^\\s*("+s[P]+")\\s+-\\s+("+s[P]+")\\s*$";var W=u++;s[W]="^\\s*("+s[I]+")\\s+-\\s+("+s[I]+")\\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 H)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 H(e,t)}catch(e){return null}}function H(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof H){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 H))return new H(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=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=H,H.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},H.prototype.toString=function(){return this.version},H.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof H||(e=new H(e,this.options)),this.compareMain(e)||this.comparePre(e)},H.prototype.compareMain=function(e){return e instanceof H||(e=new H(e,this.options)),$(this.major,e.major)||$(this.minor,e.minor)||$(this.patch,e.patch)},H.prototype.comparePre=function(e){if(e instanceof H||(e=new H(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)},H.prototype.compareBuild=function(e){e instanceof H||(e=new H(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)},H.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 H(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 H(e,n).compare(new H(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 H(e,t).major},t.minor=function(e,t){return new H(e,t).minor},t.patch=function(e,t){return new H(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 H(e,n),i=new H(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,f){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 fe(e,t,n){try{t=new se(t,n)}catch(e){return!1}return t.test(e)}function pe(e,t,n,r){var i,o,a,s,u;switch(e=new H(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(fe(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var l=t.set[c],d=null,f=null;if(l.forEach((function(e){e.semver===ae&&(e=new oe(">=0.0.0")),d=d||e,f=f||e,i(e.semver,d.semver,r)?d=e:a(e.semver,f.semver,r)&&(f=e)})),d.operator===s||d.operator===u)return!1;if((!f.operator||f.operator===s)&&o(e,f.semver))return!1;if(f.operator===u&&a(e,f.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 H(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 H(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),fe(this.value,n,t));if(""===e.operator)return""===e.value||(n=new se(this.value,t),fe(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[W]: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[M],"$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[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[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 H(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=fe,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 H(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 H(r=e,n)))})),r},t.minVersion=function(e,t){e=new se(e,t);var n=new H("0.0.0");if(e.test(n))return n;if(n=new H("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 H(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 pe(e,t,"<",n)},t.gtr=function(e,t,n){return pe(e,t,">",n)},t.outside=pe,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 H)return e;if("string"!=typeof e)return null;var n=e.match(a[R]);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 f(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&p())}function p(){if(!l){var e=s(f);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 g(){}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(p)},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=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,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"],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,m=void 0===h?null:h,v="";d?v+="html":(f&&(v+="min."),v+="js"),"/"===i.charAt(i.length-1)&&(i=i.substring(0,i.length-1));var g="";return d&&m&&"object"===(void 0===m?"undefined":r(m))&&(g=a(m)),i+"/"+(t=encodeURIComponent(t))+"/"+(s=encodeURIComponent(s))+"_"+(c=encodeURIComponent(c))+"/index."+v+g};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,formatter:function(e){return e},width:960,height:540,units:"px",responsive:!0,applicationId:"",allowFullscreen:!0,allowEncryptedMedia:!0,pictureInPicture:!1};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);else{var o={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,iframe:!0,minified:t.minified,queryParams:{videoId:t.videoId,playlistId:t.playlistId,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,";"));var d=56.25;t.responsiveHeight&&(d=t.responsiveHeight),s.setAttribute("style","padding-top: ".concat(d,"%;")),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"))}},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 m={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");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.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 i=e.createElement("div");i.setAttribute("style","max-width: ".concat(t.width).concat(t.units,";")),n.classList.add("vjs-fluid"),t.responsiveHeight&&n.setAttribute("style","padding-top: ".concat(t.responsiveHeight,"%;")),r.appendChild(i),i.appendChild(n)}else"px"!==t.units?n.setAttribute("style","width: ".concat(t.width).concat(t.units,"; height: ").concat(t.height).concat(t.units,";")):(n.setAttribute("width",t.width),n.setAttribute("height",t.height)),r.appendChild(n);if(t.pictureInPicture){var o=e.createElement("div");o.classList.add("vjs-pip-container"),o.appendChild(r.firstChild),r.appendChild(o)}if(t.includeScriptElement){var a=e.createElement("script"),s={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,minified:t.minified};t.urlBase&&(s.base=t.urlBase),t.returnDomElement?a.setAttribute("src",u(s)):a.setAttribute("fzrsbrxzyeajgdaxuxqu",u(s)),r.appendChild(a)}if(t.playlistElement){var d=e.createElement("div");d.setAttribute("class","vjs-playlist"),r.appendChild(d)}if(t.legacyPlaylistElement&&!t.playlistElement){var p=e.createElement("ol");p.setAttribute("class","vjs-playlist"),r.appendChild(p)}return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src"))}};function v(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):m.createInpageEmbedCode(t,e)}n.d(t,"default",(function(){return v}))}]).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__mediaData--f0wqn{padding:10px 24px}.EmbedCodeModal__mediaTitle--apmXI{color:#444}.EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__mediaId--GymNT,.EmbedCodeModal__mediaId--GymNT{color:#999;font-size:.875rem;font-weight:400}.EmbedCodeModal__mediaId--GymNT{margin-bottom:10px}.EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__thumbnail--s0ksv{width:154px !important;height:87px !important}.EmbedCodeModal__previewButton--CFh55{align-self:center}div[data-test-name=copy-toaster]{top:52% !important}.EmbedCodeModal__videoDetailsContainerNew--WpRV3{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__redHelperText--y3MVU{color:#d53c00;font-size:14px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__mediaTitle--apmXI{color:#444}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__mediaId--GymNT{color:#999;font-size:.875rem;font-weight:400}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .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__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__previewButton--CFh55{align-self:center}div[data-test-name=copy-toaster-new]{top:53% !important;left:53% !important}@media only screen and (min-width: 1200px){div[data-test-name=copy-toaster-new]{left:45% !important}}@media only screen and (min-width: 1400px){div[data-test-name=copy-toaster-new]{left:38% !important}}@media only screen and (min-width: 1600px){div[data-test-name=copy-toaster-new]{left:33% !important}}@media only screen and (min-width: 1850px){div[data-test-name=copy-toaster-new]{left:30% !important}}@media only screen and (min-width: 2000px){div[data-test-name=copy-toaster-new]{left:28% !important}}@media only screen and (min-width: 2150px){div[data-test-name=copy-toaster-new]{left:26% !important}}@media only screen and (min-width: 2300px){div[data-test-name=copy-toaster-new]{left:24% !important}}.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__mediaData--f0wqn{padding:10px 24px}.EmbedCodeModal__mediaTitle--apmXI{color:#01050e;font-size:1rem;font-weight:700;line-height:24px}.EmbedCodeModal__text--ayO8f,.EmbedCodeModal__mediaId--GymNT,.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__mediaId--GymNT{color:#4d5056;font-size:.875rem;font-weight:normal}.EmbedCodeModal__mediaId--GymNT{margin-bottom:10px}.EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__thumbnail--s0ksv{width:154px !important;height:87px !important}.EmbedCodeModal__previewButton--CFh55{align-self:center}div[data-test-name=copy-toaster]{top:52% !important}.EmbedCodeModal__videoDetailsContainerNew--WpRV3{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__redHelperText--y3MVU{color:#d33d00;font-size:14px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__mediaTitle--apmXI{color:#01050e;font-size:1.333rem;font-weight:800;line-height:28px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__mediaId--GymNT{color:#4d5056;font-size:.875rem;font-weight:normal}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .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__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainerNew--WpRV3 .EmbedCodeModal__previewButton--CFh55{align-self:center}div[data-test-name=copy-toaster-new]{top:53% !important;left:53% !important}@media only screen and (min-width: 1200px){div[data-test-name=copy-toaster-new]{left:45% !important}}@media only screen and (min-width: 1400px){div[data-test-name=copy-toaster-new]{left:38% !important}}@media only screen and (min-width: 1600px){div[data-test-name=copy-toaster-new]{left:33% !important}}@media only screen and (min-width: 1850px){div[data-test-name=copy-toaster-new]{left:30% !important}}@media only screen and (min-width: 2000px){div[data-test-name=copy-toaster-new]{left:28% !important}}@media only screen and (min-width: 2150px){div[data-test-name=copy-toaster-new]{left:26% !important}}@media only screen and (min-width: 2300px){div[data-test-name=copy-toaster-new]{left:24% !important}}',"",{version:3,sources:["webpack://./src/styles/EmbedCodeModal.sass"],names:[],mappings:"AAGE,8CACE,kBAAA,CACF,kCACE,iBAAA,CACF,mCACE,UAAA,CAIF,8IACE,UAAA,CACA,iBAAA,CACA,eAAA,CACF,gCAEE,kBAAA,CACF,gCACE,eAAA,CACF,kCACE,sBAAA,CACA,sBAAA,CACF,sCACE,iBAAA,CACF,iCACE,kBAAA,CAIF,iDACE,kBAAA,CACA,qFACE,WAAA,CACA,iBAAA,CACF,sFACE,WAAA,CACF,mFACE,eAAA,CACA,SAAA,CACF,uFACE,aAAA,CACA,cAAA,CACF,oFACE,UAAA,CAIF,+JACE,UAAA,CACA,iBAAA,CACA,eAAA,CACF,2FACE,2CAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,iBAAA,CACF,sFACE,UAAA,CACF,4FACE,mBAAA,CACF,0FACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,iFAEE,kBAAA,CACF,iFACE,eAAA,CACF,4FACE,cAAA,CACF,sFAII,iBAAA,CAHA,+FACE,sBAAA,CACA,yBAAA,CAEN,uFACE,iBAAA,CACJ,qCACE,kBAAA,CACA,mBAAA,CACF,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CAvGJ,8CACE,kBAAA,CACF,kCACE,iBAAA,CACF,mCACE,aAAA,CACA,cAAA,CACA,eAAA,CACA,gBAAA,CACF,8IACE,aAAA,CACA,iBAAA,CACA,kBAAA,CACF,gCAEE,kBAAA,CACF,gCACE,eAAA,CACF,kCACE,sBAAA,CACA,sBAAA,CACF,sCACE,iBAAA,CACF,iCACE,kBAAA,CAIF,iDACE,kBAAA,CACA,qFACE,WAAA,CACA,iBAAA,CACF,sFACE,WAAA,CACF,mFACE,eAAA,CACA,SAAA,CACF,uFACE,aAAA,CACA,cAAA,CACF,oFACE,aAAA,CACA,kBAAA,CACA,eAAA,CACA,gBAAA,CACF,+JACE,aAAA,CACA,iBAAA,CACA,kBAAA,CACF,2FACE,oCAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,mBAAA,CACA,aAAA,CACA,iBAAA,CACF,sFACE,UAAA,CACF,4FACE,mBAAA,CACF,0FACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,iFAEE,kBAAA,CACF,iFACE,eAAA,CACF,4FACE,cAAA,CACF,sFAII,iBAAA,CAHA,+FACE,sBAAA,CACA,yBAAA,CAEN,uFACE,iBAAA,CACJ,qCACE,kBAAA,CACA,mBAAA,CACF,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA,CACJ,2CACE,qCACE,mBAAA,CAAA",sourcesContent:['@import \'./base.sass\'\n\n@include themed() using ($theme)\n .videoDetailsContainer\n margin-bottom: 27px\n .mediaData\n padding: 10px theme($theme, gutter-width)\n .mediaTitle\n color: theme($theme, text-primary-dark)\n font-size: theme($theme, heading-xxs-size)\n font-weight: theme($theme, heading-xxs-weight)\n line-height: theme($theme, heading-xxs-line-height)\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 .mediaId\n @extend .text\n margin-bottom: 10px\n .tooltip\n margin-left: theme($theme, padding-sm)\n .thumbnail\n width: 154px !important\n height: 87px !important\n .previewButton\n align-self: center\n div[data-test-name="copy-toaster"]\n top: 52% !important\n\n // Styling for new design.\n // TODO: Delete previous styles and remove \'new\' from naming when old design gets removed\n .videoDetailsContainerNew\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 .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 .previewButton\n align-self: center\n div[data-test-name="copy-toaster-new"]\n top: 53% !important\n left: 53% !important\n @media only screen and (min-width: 1200px)\n div[data-test-name="copy-toaster-new"]\n left: 45% !important\n @media only screen and (min-width: 1400px)\n div[data-test-name="copy-toaster-new"]\n left: 38% !important\n @media only screen and (min-width: 1600px)\n div[data-test-name="copy-toaster-new"]\n left: 33% !important\n @media only screen and (min-width: 1850px)\n div[data-test-name="copy-toaster-new"]\n left: 30% !important\n @media only screen and (min-width: 2000px)\n div[data-test-name="copy-toaster-new"]\n left: 28% !important\n @media only screen and (min-width: 2150px)\n div[data-test-name="copy-toaster-new"]\n left: 26% !important\n @media only screen and (min-width: 2300px)\n div[data-test-name="copy-toaster-new"]\n left: 24% !important\n'],sourceRoot:""}]),a.locals={videoDetailsContainer:"EmbedCodeModal__videoDetailsContainer--WP99B",mediaData:"EmbedCodeModal__mediaData--f0wqn",mediaTitle:"EmbedCodeModal__mediaTitle--apmXI",text:"EmbedCodeModal__text--ayO8f",videoDetailsContainerNew:"EmbedCodeModal__videoDetailsContainerNew--WpRV3",mediaId:"EmbedCodeModal__mediaId--GymNT",tooltip:"EmbedCodeModal__tooltip--vxe8W",thumbnail:"EmbedCodeModal__thumbnail--s0ksv",previewButton:"EmbedCodeModal__previewButton--CFh55",leftContent:"EmbedCodeModal__leftContent--BIBZB",rightContent:"EmbedCodeModal__rightContent--BDlYZ",redHelperText:"EmbedCodeModal__redHelperText--y3MVU",playerSelectLabel:"EmbedCodeModal__playerSelectLabel--w3Ig6",playerSelect:"EmbedCodeModal__playerSelect--rvojt",getURLBtnContainer:"EmbedCodeModal__getURLBtnContainer--MIRx8",getURLBtnSpinner:"EmbedCodeModal__getURLBtnSpinner--VxbOG",customPluginNotice:"EmbedCodeModal__customPluginNotice--VQKaP",playerLoader:"EmbedCodeModal__playerLoader--IgdsR"};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,m,v={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(v));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=v.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(m=v.fetchOptions)?void 0:m.meta});return this.retryer=new u.m4({fn:v.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:v.options.retry,retryDelay:v.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),m=n(68);function v(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function g(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()&&m.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=m.N.subscribe((function(){h.j.isFocused()&&m.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),m=(null==(a=e.state.data)?void 0:a.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,i.G9)(),A=null==b?void 0:b.signal,C=y,w=!1,E=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},O=function(e,t,n,r){return C=r?[t].concat(C):[].concat(C,[t]),r?[n].concat(e):[].concat(e,[n])},x=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:A,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(m.length)if(f){var S=void 0!==p,P=S?p:v(e.options,m);c=x(m,S,P)}else if(h){var I=void 0!==p,j=I?p:g(e.options,m);c=x(m,I,j,!0)}else!function(){C=[];var t=void 0===e.options.getNextPageParam,n=!l||!m[0]||l(m[0],0,m);c=n?x([],t,y[0]):Promise.resolve(O([],y[0],m[0]));for(var r=function(n){c=c.then((function(r){if(!l||!m[n]||l(m[n],n,m)){var i=t?y[n]:v(e.options,r);return x(r,t,i)}return Promise.resolve(O(r,y[n],m[n]))}))},i=1;i<m.length;i++)r(i)}();else c=x([]);var k=c.then((function(e){return{pages:e,pageParams:C}}));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,m="function"==typeof f?f(d.failureCount,t):f,v=!0===l||"number"==typeof l&&d.failureCount<l||"function"==typeof l&&l(d.failureCount,t);!p&&v?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,o.Gh)(m).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:()=>x,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:()=>v,yF:()=>m});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(!v(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(m(t.options.mutationKey)!==m(o))return!1}else if(!v(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)||m)(e)}function m(e){var t,n=u(e);return t=n,JSON.stringify(t,(function(e,t){return A(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function v(e,t){return g(u(e),u(t))}function g(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!g(e[n],t[n])})))}function y(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||A(e)&&A(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 A(e){if(!C(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!C(n)&&!!n.hasOwnProperty("isPrototypeOf")}function C(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 x(){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),m=n(578),v=n(288),g=n(852),y=n(943),b=n(216),A=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,m.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),C(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(v.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!v.sk&&!this.currentResult.isStale&&(0,v.PN)(this.options.staleTime)){var t=(0,v.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,!v.sk&&!1!==this.options.enabled&&(0,v.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||g.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,m=p.errorUpdatedAt,g=p.isFetching,y=p.status,b=!1,A=!1;if(t.optimisticResults){var w=this.hasListeners(),x=!w&&C(e,t),S=w&&E(e,r,t,i);(x||S)&&(g=!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,v.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 P;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))P=o.data;else if(P="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==P)try{P=t.select(P),!1!==t.structuralSharing&&(P=(0,v.Q$)(null==o?void 0:o.data,P)),this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}void 0!==P&&(y="success",n=P,A=!0)}return this.selectError&&(h=this.selectError,n=this.selectResult,m=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:m,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:A,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,v.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 C(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 x(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var S=c().createContext(x());function P(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(S),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],m=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&&m.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(m.isError&&!a.isReset()&&!m.isFetching&&(u=s.suspense,l=s.useErrorBoundary,f=[m.error,h.getCurrentQuery()],"function"==typeof l?l.apply(void 0,f):"boolean"==typeof l?l:u))throw m.error;return"tracked"===s.notifyOnChangeProps&&(m=h.trackResult(m,s)),m}function I(e,t,n){return P((0,v._v)(e,t,n),A)}},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 v?t:v,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=x(a,n);if(s){if(s===m)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===m)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",m={};function v(){}function g(){}function y(){}var b={};u(b,o,(function(){return this}));var A=Object.getPrototypeOf,C=A&&A(A(j([])));C&&C!==n&&r.call(C,o)&&(b=C);var w=y.prototype=v.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 x(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,x(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;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,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function S(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,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 g.prototype=y,u(w,"constructor",y),u(y,"constructor",g),g.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"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(P),!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,m):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),m},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),P(n),m}},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;P(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),m}},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))}}},739:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},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";o.r(a),o.d(a,{EmbedCodeModal:()=>or,EmbedCodeModalTypes:()=>S});var e=o(156),t=o.n(e);function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l,d={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},p=t().createContext();function f(){return d}var h=function(){function e(){n(this,e),this.usedNamespaces={}}return i(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 m(){return l}var v={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d=c(c({},d),e)}(e.options.react),function(e){l=e}(e)}};function g(t){var n=t.i18n,r=t.defaultNS,i=t.children,o=(0,e.useMemo)((function(){return{i18n:n,defaultNS:r}}),[n,r]);return(0,e.createElement)(p.Provider,{value:o},i)}var y=o(66),b=o(767);function A(e){if(Array.isArray(e))return e}function C(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 w(e,t){if(e){if("string"==typeof e)return C(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(e,t):void 0}}function E(){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 O(e,t){return A(e)||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}}(e,t)||w(e,t)||E()}function x(){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 S,P={};function I(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&P[t[0]]||("string"==typeof t[0]&&(P[t[0]]=new Date),x.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 R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return I("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 _(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 N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.i18n,i=(0,e.useContext)(p)||{},o=i.i18n,a=i.defaultNS,s=r||o||m();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new h),!s){I("You will need to pass in an i18next instance by using initReactI18next");var u=function(e){return Array.isArray(e)?e[e.length-1]:e},c=[u,{},!1];return c.t=u,c.i18n={},c.ready=!1,c}s.options.react&&void 0!==s.options.react.wait&&I("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=N(N(N({},f()),s.options.react),n),d=l.useSuspense,v=l.keyPrefix,g=t||a||s.options&&s.options.defaultNS;g="string"==typeof g?[g]:g||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(g);var y=(s.isInitialized||s.initializedStoreOnce)&&g.every((function(e){return R(e,s,l)}));function b(){return s.getFixedT(null,"fallback"===l.nsMode?g:g[0],v)}var A=(0,e.useState)(b),C=O(A,2),w=C[0],E=C[1],x=(0,e.useRef)(!0);(0,e.useEffect)((function(){var e=l.bindI18n,t=l.bindI18nStore;function n(){x.current&&E(b)}return x.current=!0,y||d||j(s,g,(function(){x.current&&E(b)})),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){x.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,g.join()]);var S=(0,e.useRef)(!0);(0,e.useEffect)((function(){x.current&&!S.current&&E(b),S.current=!1}),[s]);var P=[w,s,y];if(P.t=w,P.i18n=s,P.ready=y,y)return P;if(!y&&!d)return P;throw new Promise((function(e){j(s,g,(function(){e()}))}))}!function(e){e.PLAYER="player",e.VIDEO="video"}(S||(S={}));var T=o(144),F=o.n(T),M=o(908),D=o.n(M);
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"],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,f=e.minified,p=void 0===f||f,h=e.queryParams,g=void 0===h?null:h,v="";d?v+="html":(p&&(v+="min."),v+="js"),"/"===i.charAt(i.length-1)&&(i=i.substring(0,i.length-1));var m="";return d&&g&&"object"===(void 0===g?"undefined":r(g))&&(m=a(g)),i+"/"+(t=encodeURIComponent(t))+"/"+(s=encodeURIComponent(s))+"_"+(c=encodeURIComponent(c))+"/index."+v+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,formatter:function(e){return e},width:960,height:540,units:"px",responsive:!0,applicationId:"",allowFullscreen:!0,allowEncryptedMedia:!0,pictureInPicture:!1};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);else{var o={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,iframe:!0,minified:t.minified,queryParams:{videoId:t.videoId,playlistId:t.playlistId,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,";"));var d=56.25;t.responsiveHeight&&(d=t.responsiveHeight),s.setAttribute("style","padding-top: ".concat(d,"%;")),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"))}},f=n(0),p=n.n(f);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 g={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");if(t.playerVersion&&p.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.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 i=e.createElement("div");i.setAttribute("style","max-width: ".concat(t.width).concat(t.units,";")),n.classList.add("vjs-fluid"),t.responsiveHeight&&n.setAttribute("style","padding-top: ".concat(t.responsiveHeight,"%;")),r.appendChild(i),i.appendChild(n)}else"px"!==t.units?n.setAttribute("style","width: ".concat(t.width).concat(t.units,"; height: ").concat(t.height).concat(t.units,";")):(n.setAttribute("width",t.width),n.setAttribute("height",t.height)),r.appendChild(n);if(t.pictureInPicture){var o=e.createElement("div");o.classList.add("vjs-pip-container"),o.appendChild(r.firstChild),r.appendChild(o)}if(t.includeScriptElement){var a=e.createElement("script"),s={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,minified:t.minified};t.urlBase&&(s.base=t.urlBase),t.returnDomElement?a.setAttribute("src",u(s)):a.setAttribute("fzrsbrxzyeajgdaxuxqu",u(s)),r.appendChild(a)}if(t.playlistElement){var d=e.createElement("div");d.setAttribute("class","vjs-playlist"),r.appendChild(d)}if(t.legacyPlaylistElement&&!t.playlistElement){var f=e.createElement("ol");f.setAttribute("class","vjs-playlist"),r.appendChild(f)}return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src"))}};function v(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):g.createInpageEmbedCode(t,e)}n.d(t,"default",(function(){return v}))}]).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}.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}.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,CAIF,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,CAtDJ,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,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 .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),f=(0,i.G9)(),p={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(p,"signal",{enumerable:!0,get:function(){if(f)return a.abortSignalConsumed=!0,f.signal}});var h,g,v={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(p)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(h=this.options.behavior)||h.onFetch(v));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=v.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(g=v.fetchOptions)?void 0:g.meta});return this.retryer=new u.m4({fn:v.fetchFn,abort:null==f||null==(o=f.abort)?void 0:o.bind(f),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:v.options.retry,retryDelay:v.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),f=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 p=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 f({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),g=n(68);function v(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 p,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()&&g.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=g.N.subscribe((function(){h.j.isFocused()&&g.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],f=l[1],p=(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(p,f)}))},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,f=null==d?void 0:d.pageParam,p="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),g=(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])},x=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(g.length)if(p){var S=void 0!==f,P=S?f:v(e.options,g);c=x(g,S,P)}else if(h){var I=void 0!==f,j=I?f:m(e.options,g);c=x(g,I,j,!0)}else!function(){A=[];var t=void 0===e.options.getNextPageParam,n=!l||!g[0]||l(g[0],0,g);c=n?x([],t,y[0]):Promise.resolve(O([],y[0],g[0]));for(var r=function(n){c=c.then((function(r){if(!l||!g[n]||l(g[n],n,g)){var i=t?y[n]:v(e.options,r);return x(r,t,i)}return Promise.resolve(O(r,y[n],g[n]))}))},i=1;i<g.length;i++)r(i)}();else c=x([]);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,f=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){f=!0},this.continueRetry=function(){f=!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 p=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(p).catch((function(t){var s,u;if(!d.isResolved){var l=null!=(s=e.retry)?s:3,p=null!=(u=e.retryDelay)?u:a,g="function"==typeof p?p(d.failureCount,t):p,v=!0===l||"number"==typeof l&&d.failureCount<l||"function"==typeof l&&l(d.failureCount,t);!f&&v?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,o.Gh)(g).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(){f?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:()=>x,Gh:()=>E,I6:()=>d,Kp:()=>c,PN:()=>s,Q$:()=>y,Rm:()=>h,SE:()=>a,VS:()=>b,X7:()=>p,ZT:()=>o,_v:()=>l,_x:()=>f,mc:()=>u,sk:()=>i,to:()=>v,yF:()=>g});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 f(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(!v(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 p(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(g(t.options.mutationKey)!==g(o))return!1}else if(!v(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)||g)(e)}function g(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 v(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 x(){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:()=>p,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 f(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var p=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=f(r);return c().createElement(d.Provider,{value:r},c().createElement(o.Provider,{value:t},i))},h=n(462),g=n(578),v=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,g.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(v.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!v.sk&&!this.currentResult.isStale&&(0,v.PN)(this.options.staleTime)){var t=(0,v.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,!v.sk&&!1!==this.options.enabled&&(0,v.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,f=e.state,p=f.dataUpdatedAt,h=f.error,g=f.errorUpdatedAt,m=f.isFetching,y=f.status,b=!1,C=!1;if(t.optimisticResults){var w=this.hasListeners(),x=!w&&A(e,t),S=w&&E(e,r,t,i);(x||S)&&(m=!0,p||(y="loading"))}if(t.keepPreviousData&&!f.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)n=d.data,p=d.dataUpdatedAt,y=d.status,b=!0;else if(t.select&&void 0!==f.data)if(o&&f.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(f.data),!1!==t.structuralSharing&&(n=(0,v.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=f.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===y||"idle"===y)){var P;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))P=o.data;else if(P="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==P)try{P=t.select(P),!1!==t.structuralSharing&&(P=(0,v.Q$)(null==o?void 0:o.data,P)),this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}void 0!==P&&(y="success",n=P,C=!0)}return this.selectError&&(h=this.selectError,n=this.selectResult,g=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:n,dataUpdatedAt:p,error:h,errorUpdatedAt:g,failureCount:f.fetchFailureCount,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>l.dataUpdateCount||f.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==y,isLoadingError:"error"===y&&0===f.dataUpdatedAt,isPlaceholderData:C,isPreviousData:b,isRefetchError:"error"===y&&0!==f.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,v.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 x(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var S=c().createContext(x());function P(e,t){var n=c().useRef(!1),i=c().useState(0)[1],o=function(){var e=c().useContext(f(c().useContext(d)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e}(),a=c().useContext(S),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,p,h=c().useState((function(){return new t(o,s)}))[0],g=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&&g.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(g.isError&&!a.isReset()&&!g.isFetching&&(u=s.suspense,l=s.useErrorBoundary,p=[g.error,h.getCurrentQuery()],"function"==typeof l?l.apply(void 0,p):"boolean"==typeof l?l:u))throw g.error;return"tracked"===s.notifyOnChangeProps&&(g=h.trackResult(g,s)),g}function I(e,t,n){return P((0,v._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 v?t:v,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===p)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=x(a,n);if(s){if(s===g)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=p;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:f,u.arg===g)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",f="suspendedYield",p="executing",h="completed",g={};function v(){}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=v.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 x(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,x(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;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,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function S(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 P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,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(P),!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,g):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),g},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),P(n),g}},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;P(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),g}},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 f=n(d),p={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==f)t[f].references++,t[f].updater(p);else{var h=i(p,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";o.r(a),o.d(a,{EmbedCodeModal:()=>Ln,EmbedCodeModalTypes:()=>S});var e=o(156),t=o.n(e);function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(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 i(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(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 c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var l,d={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},f=t().createContext();function p(){return d}var h=function(){function e(){n(this,e),this.usedNamespaces={}}return i(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 g(){return l}var v={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};d=c(c({},d),e)}(e.options.react),function(e){l=e}(e)}};function m(t){var n=t.i18n,r=t.defaultNS,i=t.children,o=(0,e.useMemo)((function(){return{i18n:n,defaultNS:r}}),[n,r]);return(0,e.createElement)(f.Provider,{value:o},i)}var y=o(66),b=o(767);function C(e){if(Array.isArray(e))return e}function A(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 w(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function E(){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 O(e,t){return C(e)||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}}(e,t)||w(e,t)||E()}function x(){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 S,P={};function I(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&P[t[0]]||("string"==typeof t[0]&&(P[t[0]]=new Date),x.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 R(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return I("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 _(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 L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function N(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.i18n,i=(0,e.useContext)(f)||{},o=i.i18n,a=i.defaultNS,s=r||o||g();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new h),!s){I("You will need to pass in an i18next instance by using initReactI18next");var u=function(e){return Array.isArray(e)?e[e.length-1]:e},c=[u,{},!1];return c.t=u,c.i18n={},c.ready=!1,c}s.options.react&&void 0!==s.options.react.wait&&I("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=L(L(L({},p()),s.options.react),n),d=l.useSuspense,v=l.keyPrefix,m=t||a||s.options&&s.options.defaultNS;m="string"==typeof m?[m]:m||["translation"],s.reportNamespaces.addUsedNamespaces&&s.reportNamespaces.addUsedNamespaces(m);var y=(s.isInitialized||s.initializedStoreOnce)&&m.every((function(e){return R(e,s,l)}));function b(){return s.getFixedT(null,"fallback"===l.nsMode?m:m[0],v)}var C=(0,e.useState)(b),A=O(C,2),w=A[0],E=A[1],x=(0,e.useRef)(!0);(0,e.useEffect)((function(){var e=l.bindI18n,t=l.bindI18nStore;function n(){x.current&&E(b)}return x.current=!0,y||d||j(s,m,(function(){x.current&&E(b)})),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){x.current=!1,e&&s&&e.split(" ").forEach((function(e){return s.off(e,n)})),t&&s&&t.split(" ").forEach((function(e){return s.store.off(e,n)}))}}),[s,m.join()]);var S=(0,e.useRef)(!0);(0,e.useEffect)((function(){x.current&&!S.current&&E(b),S.current=!1}),[s]);var P=[w,s,y];if(P.t=w,P.i18n=s,P.ready=y,y)return P;if(!y&&!d)return P;throw new Promise((function(e){j(s,m,(function(){e()}))}))}!function(e){e.PLAYER="player",e.VIDEO="video"}(S||(S={}));var F=o(144),T=o.n(F),M=o(908),D=o.n(M);
4
4
  /*! @name @brightcove/react-player-loader @version 1.4.1 @license Apache-2.0 */
5
5
  function B(){return B=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},B.apply(this,arguments)}
6
6
  /*! @name @brightcove/player-loader @version 1.8.0 @license Apache-2.0 */
7
- function U(){return U=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},U.apply(this,arguments)}var q="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},V=["catalogSearch","catalogSequence"],Q=["adConfigId","applicationId","catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId"],W=function(e){return Object.keys(e).filter((function(e){return-1!==Q.indexOf(e)})).reduce((function(t,n){var r=function(e,t){if(e&&void 0!==e[t]){if("string"!=typeof e[t]&&-1!==V.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}),"")},z=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 m="";return c&&f&&"object"===(void 0===f?"undefined":q(f))&&(m=W(f)),r+"/"+(t=encodeURIComponent(t))+"/"+(o=encodeURIComponent(o))+"_"+(s=encodeURIComponent(s))+"/index."+h+m};
8
- /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */z.VERSION="1.2.0";var H={embedId:"default",embedType:"in-page",playerId:"default",Promise:D().Promise,refNodeInsert:"append"},K="video",Z="video-js",G="in-page",$="iframe",J="append",Y="prepend",X="before",ee="after",te="replace",ne=["catalogSearch","catalogSequence"],re="https://players.brightcove.net/",ie=function(e){if(e.playerUrl)return e.playerUrl;var t=e.accountId,n=e.playerId,r=e.embedId,i=e.embedOptions,o=e.embedType===$;return z({accountId:t,playerId:n,embedId:r,iframe:o,base:re,minified:!i||!i.unminified,queryParams:e})},oe=function(){return re},ae=function(e){re=e},se=function(e){return Boolean(e&&1===e.nodeType)},ue=function(e){return Boolean(se(e)&&e.parentNode)},ce=function(e,t,n){return t?function(e,t){if(!e.pip)return t;var n=F().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=U({aspectRatio:"16:9",iframeHorizontalPlaylist:!1,maxWidth:"100%"},t.responsive),i=r.aspectRatio.split(":").map(Number),o=F().createElement("div"),a=i[1]/i[0]*100;e===$&&r.iframeHorizontalPlaylist&&(a*=1.25),o.style.paddingTop=a+"%",o.appendChild(n);var s=F().createElement("div");return s.style.position="relative",s.style.display="block",s.style.maxWidth=r.maxWidth,s.appendChild(o),s}(e,t,n)):n},le=function(e){var t=e.embedType===$?function(e){var t=F().createElement("iframe");return t.setAttribute("allow","autoplay;encrypted-media;fullscreen"),t.setAttribute("allowfullscreen","allowfullscreen"),t.src=ie(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||Z,i=F().createElement(r);return Object.keys(n).filter((function(t){return e[t]})).forEach((function(t){var r;if("string"!=typeof e[t]&&-1!==ne.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=ce(e.embedType,e.embedOptions,t);if(r===X?i.insertBefore(o,n):r===ee?i.insertBefore(o,n.nextElementSibling||null):r===te?i.replaceChild(o,n):r===Y?n.insertBefore(o,n.firstChild||null):n.appendChild(o),e.embedOptions&&e.embedOptions.playlist){var a=e.embedOptions.playlist.legacy?"ul":"div",s=F().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 se(n)?n:t}(e,t))},de=new(D().Map),pe=function(e){return(e.accountId||"*")+"_"+e.playerId+"_"+e.embedId},fe=function(){de.clear()},he=function(e){de.forEach(e)},me=function(e){return de.has(pe(e))},ve=function(e){de.set(pe(e),e.accountId?ie(e):"")},ge=/^([A-Za-z0-9]+)_([A-Za-z0-9]+)$/,ye=function(){return D().bc?Object.keys(D().bc).filter((function(e){return ge.test(e)})):[]},be=function(e){e&&Object.keys(e.players).forEach((function(t){var n=e.players[t];n&&n.dispose()}))},Ae=function(){he((function(e,t){e&&Array.prototype.slice.call(F().querySelectorAll('script[src="'+e+'"]')).forEach((function(e){return e.parentNode.removeChild(e)}))})),fe(),be(D().videojs),ye().forEach((function(e){return be(D().bc[e].videojs)})),Object.keys(D()).filter((function(e){return/^videojs/i.test(e)||/^(bc)$/.test(e)})).forEach((function(e){delete D()[e]}))};(function(){ye().forEach((function(e){var t=e.match(ge),n={playerId:t[1],embedId:t[2]};me(n)||ve(n)}))})();var Ce=function(e){return"function"==typeof e},we=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(!ue(a))throw new Error("refNode must resolve to a node attached to the DOM");if(!function(e){return e===G||e===$}(i))throw new Error("embedType is missing or invalid");if(i===$&&o)throw new Error("cannot use options with an iframe embed");if(r&&void 0!==r.tagName&&((t=r.tagName)!==Z&&t!==K))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===J||e===Y||e===X||e===ee||e===te}(s))throw new Error("refNodeInsert is missing or invalid")},Ee=function(e,t,n,r){var i,o=e.embedId,a=e.playerId,s=D().bc[a+"_"+o]||D().bc;if(!s)return r(new Error("missing bc function for "+a));ve(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===Z&&(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:G,ref:i})},Oe=function(e,t,n){e.refNode=function(e){return ue(e)?e:"string"==typeof e?F().querySelector(e):null}(e.refNode),we(e);var r=e.refNode,i=e.refNodeInsert,o=r.parentNode,a=le(e);if(e.embedType!==$){if(me(e))return Ee(e,a,t,n);var s=F().createElement("script");s.onload=function(){return Ee(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=ie(e),i===te?o.appendChild(s):r.appendChild(s)}else t({type:$,ref:a})},xe=function(e){var t=U({},H,e),n=t.Promise,r=t.onSuccess,i=t.onFailure;return!Ce(n)||Ce(r)||Ce(i)?Oe(t,Ce(r)?r:function(){},Ce(i)?i:function(e){throw e}):new n((function(e,n){return Oe(t,e,n)}))},Se=function(e,t){Object.defineProperty(xe,e,{configurable:!1,enumerable:!0,value:t,writable:!1})};Se("getBaseUrl",(function(){return oe()})),Se("setBaseUrl",(function(e){ae(e)})),Se("getUrl",(function(e){return ie(e)})),Se("reset",(function(){return Ae()})),[["EMBED_TAG_NAME_VIDEO",K],["EMBED_TAG_NAME_VIDEOJS",Z],["EMBED_TYPE_IN_PAGE",G],["EMBED_TYPE_IFRAME",$],["REF_NODE_INSERT_APPEND",J],["REF_NODE_INSERT_PREPEND",Y],["REF_NODE_INSERT_BEFORE",X],["REF_NODE_INSERT_AFTER",ee],["REF_NODE_INSERT_REPLACE",te],["VERSION","1.8.0"]].forEach((function(e){Se(e[0],e[1])}));var Pe=["catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId"],Ie=function(e){var n,r;function i(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}r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var o=i.prototype;return o.loadPlayer=function(){var e=this;this.disposePlayer();var t=this.props.onSuccess,n=this.props.onFailure,r=B({},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=xe.getBaseUrl();this.props.baseUrl&&xe.setBaseUrl(this.props.baseUrl),xe(r),xe.setBaseUrl(i)},o.disposePlayer=function(){this.player&&(this.player.dispose?this.player.dispose():this.player.parentNode&&this.player.parentNode.removeChild(this.player),this.player=null)},o.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},o.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)}}},o.updatePlayer=function(e){if(this.player&&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)}}},o.componentDidMount=function(){this.isMounted_=!0,this.loadPlayer()},o.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===Pe.indexOf(e)}))?this.updatePlayer(n):this.loadPlayer()},o.componentWillUnmount=function(){this.isMounted_=!1,this.disposePlayer()},o.render=function(){var e=B({className:"brightcove-react-player-loader"},this.props.attrs,{ref:this.setRefNode});return t().createElement("div",e)},i}(t().Component);const je=Ie;function ke(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}function Re(e){return Re="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},Re(e)}var _e=o(739),Ne=o.n(_e),Le=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function Te(e){var t={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},n=e.match(/<\/?([^\s]+?)[/\s>]/);if(n&&(t.name=n[1],(Ne()[n[1]]||"/"===e.charAt(e.length-2))&&(t.voidElement=!0),t.name.startsWith("!--"))){var r=e.indexOf("--\x3e");return{type:"comment",comment:-1!==r?e.slice(4,r):""}}for(var i=new RegExp(Le),o=null;null!==(o=i.exec(e));)if(o[0].trim())if(o[1]){var a=o[1].trim(),s=[a,""];a.indexOf("=")>-1&&(s=a.split("=")),t.attrs[s[0]]=s[1],i.lastIndex--}else o[2]&&(t.attrs[o[2]]=o[3].trim().substring(1,o[3].length-1));return t}var Fe=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,Me=/^\s*$/,De=Object.create(null);function Be(e,t){switch(t.type){case"text":return e+t.content;case"tag":return e+="<"+t.name+(t.attrs?function(e){var t=[];for(var n in e)t.push(n+'="'+e[n]+'"');return t.length?" "+t.join(" "):""}(t.attrs):"")+(t.voidElement?"/>":">"),t.voidElement?e:e+t.children.reduce(Be,"")+"</"+t.name+">";case"comment":return e+"\x3c!--"+t.comment+"--\x3e"}}var Ue={parse:function(e,t){t||(t={}),t.components||(t.components=De);var n,r=[],i=[],o=-1,a=!1;if(0!==e.indexOf("<")){var s=e.indexOf("<");r.push({type:"text",content:-1===s?e:e.substring(0,s)})}return e.replace(Fe,(function(s,u){if(a){if(s!=="</"+n.name+">")return;a=!1}var c,l="/"!==s.charAt(1),d=s.startsWith("\x3c!--"),p=u+s.length,f=e.charAt(p);if(d){var h=Te(s);return o<0?(r.push(h),r):((c=i[o]).children.push(h),r)}if(l&&(o++,"tag"===(n=Te(s)).type&&t.components[n.name]&&(n.type="component",a=!0),n.voidElement||a||!f||"<"===f||n.children.push({type:"text",content:e.slice(p,e.indexOf("<",p))}),0===o&&r.push(n),(c=i[o-1])&&c.children.push(n),i[o]=n),(!l||n.voidElement)&&(o>-1&&(n.voidElement||n.name===s.slice(2,-1))&&(o--,n=-1===o?r:i[o]),!a&&"<"!==f&&f)){c=-1===o?r:i[o].children;var m=e.indexOf("<",p),v=e.slice(p,-1===m?void 0:m);Me.test(v)&&(v=" "),(m>-1&&o+c.length>=0||" "!==v)&&c.push({type:"text",content:v})}})),r},stringify:function(e){return e.reduce((function(e,t){return e+Be("",t)}),"")}};const qe=Ue;var Ve="".replace,Qe=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34);/g,We={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"'};function ze(e){return We[e]}var He=["format"],Ke=["children","count","parent","i18nKey","context","tOptions","values","defaults","components","ns","i18n","t","shouldUnescape"];function Ze(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 Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ze(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $e(e,t){if(!e)return!1;var n=e.props?e.props.children:e.children;return t?n.length>0:!!n}function Je(e){return e?e&&e.children?e.children:e.props&&e.props.children:[]}function Ye(e){return Array.isArray(e)?e:[e]}function Xe(e,n){if(!e)return"";var r="",i=Ye(e),o=n.transSupportBasicHtmlNodes&&n.transKeepBasicHtmlNodesFor?n.transKeepBasicHtmlNodesFor:[];return i.forEach((function(e,i){if("string"==typeof e)r+="".concat(e);else if(t().isValidElement(e)){var a=Object.keys(e.props).length,s=o.indexOf(e.type)>-1,u=e.props.children;if(!u&&s&&0===a)r+="<".concat(e.type,"/>");else if(u||s&&0===a)if(e.props.i18nIsDynamicList)r+="<".concat(i,"></").concat(i,">");else if(s&&1===a&&"string"==typeof u)r+="<".concat(e.type,">").concat(u,"</").concat(e.type,">");else{var c=Xe(u,n);r+="<".concat(i,">").concat(c,"</").concat(i,">")}else r+="<".concat(i,"></").concat(i,">")}else if(null===e)x("Trans: the passed in value is invalid - seems you passed in a null child.");else if("object"===Re(e)){var l=e.format,d=ke(e,He),p=Object.keys(d);if(1===p.length){var f=l?"".concat(p[0],", ").concat(l):p[0];r+="{{".concat(f,"}}")}else x("react-i18next: the passed in object contained more than one variable - the object should look like {{ value, format }} where format is optional.",e)}else x("Trans: the passed in value is invalid - seems you passed in a variable like {number} - please pass in variables for interpolation as full objects like {{number}}.",e)})),r}function et(e,n,r,i,o,a){if(""===n)return[];var s=i.transKeepBasicHtmlNodesFor||[],u=n&&new RegExp(s.join("|")).test(n);if(!e&&!u)return[n];var c={};!function e(n){Ye(n).forEach((function(n){"string"!=typeof n&&($e(n)?e(Je(n)):"object"!==Re(n)||t().isValidElement(n)||Object.assign(c,n))}))}(e);var l=qe.parse("<0>".concat(n,"</0>")),d=Ge(Ge({},c),o);function p(e,n,r){var i=Je(e),o=h(i,n.children,r);return function(e){return"[object Array]"===Object.prototype.toString.call(e)&&e.every((function(e){return t().isValidElement(e)}))}(i)&&0===o.length?i:o}function f(e,n,r,i,o){e.dummy&&(e.children=n),r.push(t().cloneElement(e,Ge(Ge({},e.props),{},{key:i}),o?void 0:n))}function h(n,o,c){var l=Ye(n);return Ye(o).reduce((function(n,o,m){var v,g,y,b,A=o.children&&o.children[0]&&o.children[0].content&&r.services.interpolator.interpolate(o.children[0].content,d,r.language);if("tag"===o.type){var C=l[parseInt(o.name,10)];!C&&1===c.length&&c[0][o.name]&&(C=c[0][o.name]),C||(C={});var w=0!==Object.keys(o.attrs).length?(g={props:o.attrs},(b=Ge({},y=C)).props=Object.assign(g.props,y.props),b):C,E=t().isValidElement(w),O=E&&$e(o,!0)&&!o.voidElement,x=u&&"object"===Re(w)&&w.dummy&&!E,S="object"===Re(e)&&null!==e&&Object.hasOwnProperty.call(e,o.name);if("string"==typeof w){var P=r.services.interpolator.interpolate(w,d,r.language);n.push(P)}else if($e(w)||O){f(w,p(w,o,c),n,m)}else if(x){var I=h(l,o.children,c);n.push(t().cloneElement(w,Ge(Ge({},w.props),{},{key:m}),I))}else if(Number.isNaN(parseFloat(o.name))){if(S)f(w,p(w,o,c),n,m,o.voidElement);else if(i.transSupportBasicHtmlNodes&&s.indexOf(o.name)>-1)if(o.voidElement)n.push(t().createElement(o.name,{key:"".concat(o.name,"-").concat(m)}));else{var j=h(l,o.children,c);n.push(t().createElement(o.name,{key:"".concat(o.name,"-").concat(m)},j))}else if(o.voidElement)n.push("<".concat(o.name," />"));else{var k=h(l,o.children,c);n.push("<".concat(o.name,">").concat(k,"</").concat(o.name,">"))}}else if("object"!==Re(w)||E)1===o.children.length&&A?n.push(t().cloneElement(w,Ge(Ge({},w.props),{},{key:m}),A)):n.push(t().cloneElement(w,Ge(Ge({},w.props),{},{key:m})));else{var R=o.children[0]?A:null;R&&n.push(R)}}else if("text"===o.type){var _=i.transWrapTextNodes,N=a?(v=r.services.interpolator.interpolate(o.content,d,r.language),Ve.call(v,Qe,ze)):r.services.interpolator.interpolate(o.content,d,r.language);_?n.push(t().createElement(_,{key:"".concat(o.name,"-").concat(m)},N)):n.push(N)}return n}),[])}return Je(h([{dummy:!0,children:e||[]}],l,Ye(e||[]))[0])}function tt(n){var r=n.children,i=n.count,o=n.parent,a=n.i18nKey,s=n.context,u=n.tOptions,c=void 0===u?{}:u,l=n.values,d=n.defaults,h=n.components,v=n.ns,g=n.i18n,y=n.t,b=n.shouldUnescape,A=ke(n,Ke),C=(0,e.useContext)(p)||{},w=C.i18n,E=C.defaultNS,O=g||w||m();if(!O)return I("You will need to pass in an i18next instance by using i18nextReactModule"),r;var x=y||O.t.bind(O)||function(e){return e};s&&(c.context=s);var S=Ge(Ge({},f()),O.options&&O.options.react),P=v||x.ns||E||O.options&&O.options.defaultNS;P="string"==typeof P?[P]:P||["translation"];var j=d||Xe(r,S)||S.transEmptyNodeValue||a,k=S.hashTransKey,R=a||(k?k(j):j),_=l?c.interpolation:{interpolation:Ge(Ge({},c.interpolation),{},{prefix:"#$?",suffix:"?$#"})},N=Ge(Ge(Ge(Ge({},c),{},{count:i},l),_),{},{defaultValue:j,ns:P}),L=et(h||r,R?x(R,N):j,O,S,N,b),T=void 0!==o?o:S.defaultTransParent;return T?t().createElement(T,A,L):L}var nt=o(130),rt=o.n(nt);function it(){var e,t,n;return null===(e=window.StudioModule)||void 0===e||null===(t=e.config)||void 0===t||null===(n=t.user)||void 0===n?void 0:n.featureSwitches.embed_modal_types_enabled}function ot(){return"qa"===(window.StudioModule.config.product.env||"production")}function at(){return ot()?"https://bc-players-qa.s3.amazonaws.com/":"https://players.brightcove.net/"}var st=o(379),ut=o.n(st),ct=o(795),lt=o.n(ct),dt=o(569),pt=o.n(dt),ft=o(565),ht=o.n(ft),mt=o(609),vt=o.n(mt),gt=o(589),yt=o.n(gt),bt=o(17),At={};At.styleTagTransform=yt(),At.setAttributes=ht(),At.insert=pt().bind(null,"head"),At.domAPI=lt(),At.insertStyleElement=vt();ut()(bt.Z,At);const Ct=bt.Z&&bt.Z.locals?bt.Z.locals:void 0;var wt=function(n){var r=n.isIFrame,i=n.accountId,o=n.videoId,a=n.playerId,s=L().t,u=O((0,e.useState)(""),2),c=u[0],l=u[1],d=it(),p=(0,e.useCallback)((function(){return{accountId:i,responsive:!1,iframe:r,width:960,height:540,urlBase:at(),playerId:a,videoId:o}}),[i,o,r,a]);(0,e.useEffect)((function(){var e=p(),t=rt()(e);l(t)}),[p]);var f=t().createElement(tt,{i18nKey:"tabs.helperText"},"Copy the HTML code and paste it on your website",t().createElement("a",{onClick:function(){navigator.clipboard.writeText(c),y.Toaster.success({title:s("toasterTitle"),message:s("toasterMessage")})},className:Ct.copyLink},"Copy")),h=t().createElement(y.Flex,null,t().createElement(y.FlexItem,{flexGrow:"1",className:Ct.helperText},s("tabs.helperTextNew")));return t().createElement(t().Fragment,null,d?t().createElement(t().Fragment,null,t().createElement(y.CopyField,{className:Ct.copyInput,helperNode:h,Component:y.PlainTextArea,componentProps:{disabled:!0,isResizable:!1,className:Ct.textAreaDimensions},onCopy:function(){y.Toaster.success({title:s("toasterTitle"),message:s("toasterMessage")})},onError:function(){y.Toaster.error({message:s("toasterErrorMessage")})},value:c,hideButton:!0})):t().createElement(t().Fragment,null,t().createElement(y.TextArea,{value:c,readOnly:!0,disabled:!0,className:Ct.input,inputClassName:Ct.textArea,testName:"embed-code-text",helperText:f,rows:4})))},Et=o(94),Ot={};Ot.styleTagTransform=yt(),Ot.setAttributes=ht(),Ot.insert=pt().bind(null,"head"),Ot.domAPI=lt(),Ot.insertStyleElement=vt();ut()(Et.Z,Ot);const xt=Et.Z&&Et.Z.locals?Et.Z.locals:void 0;function St(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 Pt(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){St(o,r,i,a,s,"next",e)}function s(e){St(o,r,i,a,s,"throw",e)}a(void 0)}))}}var It=o(757),jt=o.n(It),kt=o(946);function Rt(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 _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Rt(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nt=function(){return window.StudioModule.config},Lt=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(_t(_t({},t),(n=Nt(),{apiConfig:{publisherId:Nt().user.currentAccount.id,api:n.module.api}}))))},Tt=function(){var e=Pt(jt().mark((function e(){return jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Lt(kt.Xo,{}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const Ft=function(e,t,n){var r=n&&e===S.VIDEO&&t;return(0,b.useQuery)(["players"],(function(){return Tt()}),{refetchOnWindowFocus:!1,refetchOnMount:!1,enabled:r})};var Mt=o(826),Dt=function(){var e=Pt(jt().mark((function e(t){var n;return jt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.longUrl,e.abrupt("return",Lt(Mt.P,{longUrl:n}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Bt=["bcAa","bcAirplay","bcGa","bcGtm","bcPlaylistUi","bcTealium","bcMapPlugin","chromecastReceiver","customEndscreen","eme","ima3","kollective","overlay","pip","playlistEndscreen","qualityMenu","social","ssai","thumbnails"];function Ut(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 qt(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 qt(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 qt(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 Vt=function(n){var r=n.video,i=n.type,o=L().t,a=O((0,e.useState)("iframe"),2),s=a[0],u=a[1],c=O((0,e.useState)(!1),2),l=c[0],d=c[1],p=O((0,e.useState)(!1),2),f=p[0],h=p[1],m=O((0,e.useState)(!1),2),v=m[0],g=m[1],b=O((0,e.useState)("default"),2),A=b[0],C=b[1],w=it(),E=O((0,e.useState)({}),2),x=E[0],P=E[1],I=O((0,e.useState)([]),2),j=I[0],k=I[1],R=Ft(null!=i?i:S.VIDEO,w,v),_=R.isLoading,N=R.data,T=(0,e.useCallback)((function(e,t){var n;if(!e&&(null!==(n=null==t?void 0:t.items.length)&&void 0!==n?n:0)>0){var r=[],i={};null==t||t.items.map((function(e){var t,n,o=null!==(t=e.branches.master.configuration.plugins)&&void 0!==t?t:[],a=!!o&&o.length>0,s=!1,u=Ut(o);try{for(u.s();!(n=u.n()).done;){var c=n.value.name;s=Bt.includes(c)}}catch(e){u.e(e)}finally{u.f()}var l=!1;if(a){var d=o.find((function(e){return"bcMapPlugin"===e.name}));d&&(l=!0)}r.push({label:e.name,value:e.id}),i[e.id]={label:e.name,id:e.id,hasCustomPlugins:!s&&a,isCampaignPlayer:l}})),P(i),k(function(e){return e.sort((function(e,t){return e.label.localeCompare(t.label)}))}(r))}}),[]);(0,e.useEffect)((function(){T(_,N)}),[T,_,N]),(0,e.useEffect)((function(){r&&(d(!0),v||g(!0))}),[r]);var F,M=function(){return"iframe"===s&&Q()?t().createElement("span",{className:xt.redHelperText},o("tabs.helperTextWarning")):t().createElement(wt,{isIFrame:"iframe"===s,videoId:r.videoId,accountId:r.accountId,playerId:A})},D=t().createElement(t().Fragment,null,t().createElement("div",null,o(w?"tooltipTextNew":"tooltipText")),t().createElement("a",{href:"https://studio.support.brightcove.com/players/getting-started-players-module.html",target:"_blank",rel:"noreferrer"},o("tooltipLink"))),B=function(e){return u(e)},U=function(){return"".concat(at()).concat(r.accountId,"/").concat(A,"_default/index.html?videoId=").concat(r.videoId)},q=function(){var e=U();window.open(e,"_blank")},V=function(){h(!0);var e=encodeURI(U());Dt({longUrl:e}).then((function(e){navigator.clipboard.writeText(e),y.Toaster.success({title:o("toasterTitle"),message:o("toasterGetURLSuccess")}),h(!1)})).catch((function(){y.Toaster.error({message:o("toasterGetURLError")}),h(!1)}))},Q=function(){var e;return null===(e=x[A])||void 0===e?void 0:e.isCampaignPlayer};return r?t().createElement(y.Modal,{testName:"embed-modal",title:o("modalHeader"),isOpen:l,large:w,onClose:function(){return d(!1)},buttons:t().createElement(y.Button,{text:o("closeModal"),onClick:function(){d(!1)},testName:"close-modal-btn"})},w?t().createElement(y.Flex,{className:xt.videoDetailsContainerNew},t().createElement("div",{className:xt.leftContent},t().createElement(y.Flex,null,t().createElement("div",{className:xt.playerSelectLabel},o("player")),t().createElement(y.ToolTip,{content:D,placement:"top",className:xt.tooltip,reflow:!1})),j.length>0&&t().createElement(y.Select,{value:A,options:j,inputClassName:xt.playerSelect,onChange:function(e){C(e)}}),t().createElement(je,{accountId:r.accountId,playerId:A,videoId:r.videoId,baseUrl:at(),attrs:{className:xt.playerLoader},options:{autoplay:!1}}),(null===(F=x[A])||void 0===F?void 0:F.hasCustomPlugins)&&t().createElement("span",{className:xt.customPluginNotice},o("customPluginNotice")),t().createElement("div",null,t().createElement("div",{className:xt.getURLBtnContainer},t().createElement(y.Button,{look:"tertiary",text:o("getURL"),testName:"get-url-btn",icon:f?"":"link",iconRight:!0,onClick:V}),f&&t().createElement(y.Loader,{className:xt.getURLBtnSpinner,size:"inline",color:"navy"})),t().createElement(y.Button,{look:"tertiary",text:o("previewButton"),testName:"preview-player-btn",icon:"external_link",iconRight:!0,onClick:q}))),t().createElement("div",{className:xt.rightContent},t().createElement(y.Flex,{flexDirection:"column",className:xt.mediaData},t().createElement("div",{className:xt.mediaTitle},r.videoName),t().createElement("div",{className:xt.mediaId},r.videoId)),t().createElement(y.Flex,{justifyContent:"space-between",alignItems:"baseline"},t().createElement(y.Tabs,{selectedId:s,onSelect:B},t().createElement(y.TabList,null,t().createElement(y.SmallTab,{tabId:"iframe",testName:"iframe-tab"},o("tabs.labels.iframe")),t().createElement(y.SmallTab,{tabId:"javascript",testName:"js-tab"},o("tabs.labels.javascript"))))),t().createElement(y.TabPanel,{render:M}))):t().createElement(t().Fragment,null,t().createElement(y.Flex,{className:xt.videoDetailsContainer},t().createElement(y.Thumbnail,{className:xt.thumbnail,duration:r.duration,size:"responsive",src:r.posterUrl,testName:"video-thumbnail"}),t().createElement(y.Flex,{flexDirection:"column",className:xt.mediaData},t().createElement("div",{className:xt.mediaTitle},r.videoName),t().createElement("div",{className:xt.mediaId},r.videoId),t().createElement(y.FlexItem,{className:xt.text},o("mediaNotice"),t().createElement(y.ToolTip,{content:D,placement:"top",className:xt.tooltip,reflow:!1})))),t().createElement(y.Flex,{justifyContent:"space-between",alignItems:"baseline"},t().createElement(y.Tabs,{selectedId:s,onSelect:B},t().createElement(y.TabList,null,t().createElement(y.SmallTab,{tabId:"iframe",testName:"iframe-tab"},o("tabs.labels.iframe")),t().createElement(y.SmallTab,{tabId:"javascript",testName:"js-tab"},o("tabs.labels.javascript")))),t().createElement(y.Button,{onClick:function(){q()},testName:"preview-player-btn",icon:"external_link",text:o("previewButton"),look:"tertiary",iconRight:!0,className:xt.previewButton})),t().createElement(y.TabPanel,{render:M}))):null};function Qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Wt=o(611);function zt(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,Wt.Z)(e,t)}function Ht(e,t){if(t&&("object"===Re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qt(e)}function Kt(e){return Kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Kt(e)}function Zt(e){return A(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||E()}function Gt(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 $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gt(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jt={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)}},Yt=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.init(t,r)}return i(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||Jt,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,$t($t({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}(),Xt=new Yt,en=function(){function e(){n(this,e),this.observers={}}return i(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 tn(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function nn(e){return null==e?"":""+e}function rn(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function on(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 an(e,t,n){var r=on(e,t,Object);r.obj[r.k]=n}function sn(e,t){var n=on(e,t),r=n.obj,i=n.k;if(r)return r[i]}function un(e,t,n){var r=sn(e,n);return void 0!==r?r:sn(t,n)}function cn(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]):cn(e[r],t[r],n):e[r]=t[r]);return e}function ln(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var dn={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function pn(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return dn[e]})):e}var fn="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,hn=[" ",",","?","!",";"];function mn(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?mn(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(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=Kt(e);if(t){var i=Kt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ht(this,n)}}function yn(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?yn(u,c,n):void 0}i=i[r[o]]}return i}}var bn=function(e){zt(r,e);var t=gn(r);function r(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return n(this,r),i=t.call(this),fn&&en.call(Qt(i)),i.data=e||{},i.options=o,void 0===i.options.keySeparator&&(i.options.keySeparator="."),void 0===i.options.ignoreJSONStructure&&(i.options.ignoreJSONStructure=!0),i}return i(r,[{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=sn(this.data,a);return s||!o||"string"!=typeof n?s:yn(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),an(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=sn(this.data,a)||{};r?cn(s,n,i):s=vn(vn({},s),n),an(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?vn(vn({},{}),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}}]),r}(en),An={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 Cn(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 wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function En(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=Kt(e);if(t){var i=Kt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ht(this,n)}}var On={},xn=function(e){zt(r,e);var t=En(r);function r(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),i=t.call(this),fn&&en.call(Qt(i)),rn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Qt(i)),i.options=o,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=Xt.create("translator"),i}return i(r,[{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=hn.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,n){var i=this;if("object"!==Re(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),m=h&&h.res,v=h&&h.usedKey||u,g=h&&h.exactUsedKey||u,y=Object.prototype.toString.apply(m),b=["[object Number]","[object Function]","[object RegExp]"],A=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,C=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(C&&m&&w&&b.indexOf(y)<0&&("string"!=typeof A||"[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(v,m,wn(wn({},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,x=O?[]:{},S=O?g:v;for(var P in m)if(Object.prototype.hasOwnProperty.call(m,P)){var I="".concat(S).concat(a).concat(P);x[P]=this.translate(I,wn(wn({},t),{joinArrays:!1,ns:c})),x[P]===I&&(x[P]=m[P])}m=x}}else if(C&&"string"==typeof A&&"[object Array]"===y)(m=m.join(A))&&(m=this.extendTranslation(m,e,t,n));else{var j=!1,k=!1,R=void 0!==t.count&&"string"!=typeof t.count,_=r.hasDefaultValue(t),N=R?this.pluralResolver.getSuffix(d,t.count,t):"",L=t["defaultValue".concat(N)]||t.defaultValue;!this.isValidLookup(m)&&_&&(j=!0,m=L),this.isValidLookup(m)||(k=!0,m=u);var T=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,F=T&&k?void 0:m,M=_&&L!==m&&this.options.updateMissing;if(k||j||M){if(this.logger.log(M?"updateKey":"missingKey",d,l,u,M?L:m),a){var D=this.resolve(u,wn(wn({},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!==m?r:F;i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,n,o,M,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,n,o,M,t),i.emit("missingKey",e,l,n,m)};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)]||L)}))})):V(B,u,L))}m=this.extendTranslation(m,e,t,h,n),k&&m===u&&this.options.appendNamespaceToMissingKey&&(m="".concat(l,":").concat(u)),(k||j)&&this.options.parseMissingKeyHandler&&(m="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(u,j?m:void 0):this.options.parseMissingKeyHandler(m))}return o?(h.res=m,h):m}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,wn(wn({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(wn(wn({},n),{interpolation:wn(wn({},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=wn(wn({},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=An.handle(p,e,t,this.options&&this.options.postProcessPassResolved?wn({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,!On["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(On["".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 m="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(m),d&&(u.push(m+l),p&&u.push(m+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}}]),r}(en);function Sn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Pn=function(){function e(t){n(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Xt.create("languageUtils")}return i(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]=Sn(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]=Sn(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Sn(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}(),In=[{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}],jn={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)}},kn=["v1","v2","v3"],Rn={zero:0,one:1,two:2,few:3,many:4,other:5};function _n(){var e={};return In.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:jn[t.fc]}}))})),e}var Nn=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.languageUtils=t,this.options=r,this.logger=Xt.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=_n()}return i(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 Rn[e]-Rn[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!kn.includes(this.options.compatibilityJSON)}}]),e}();function Ln(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 Tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ln(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.logger=Xt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return i(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:pn,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?ln(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?ln(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?ln(t.nestingPrefix):t.nestingPrefixEscaped||ln("$t("),this.nestingSuffix=t.nestingSuffix?ln(t.nestingSuffix):t.nestingSuffixEscaped||ln(")"),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=un(t,u,e);return s.alwaysFormat?s.format(i,void 0,n,Tn(Tn(Tn({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(un(t,u,a),c,n,Tn(Tn(Tn({},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=nn(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=Tn({},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=Tn(Tn({},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=nn(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,Tn(Tn({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Mn(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 Dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Bn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.logger=Xt.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,Dn(Dn({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,Dn({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,Dn({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,Dn({},n)).format(e)}},this.init(t)}return i(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=Zt(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,Dn(Dn(Dn({},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 Un(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 qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Vn(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=Kt(e);if(t){var i=Kt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ht(this,n)}}var Qn=function(e){zt(r,e);var t=Vn(r);function r(e,i,o){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n(this,r),a=t.call(this),fn&&en.call(Qt(a)),a.backend=e,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=Xt.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return i(r,[{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=on(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,qn(qn({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),r}(en);function Wn(){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"===Re(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Re(e[2])||"object"===Re(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 zn(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 Hn(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?Hn(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zn(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=Kt(e);if(t){var i=Kt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ht(this,n)}}function Gn(){}function $n(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var Jn=function(e){zt(r,e);var t=Zn(r);function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(n(this,r),e=t.call(this),fn&&en.call(Qt(e)),e.options=zn(i),e.services={},e.logger=Xt,e.modules={external:[]},$n(Qt(e)),o&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,o),Ht(e,Qt(e));setTimeout((function(){e.init(i,o)}),0)}return e}return i(r,[{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=Wn();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=Kn(Kn(Kn({},r),this.options),zn(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Kn(Kn({},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?Xt.init(i(this.modules.logger),this.options):Xt.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=Bn);var a=new Pn(this.options);this.store=new bn(this.options.resources,this.options);var s=this.services;s.logger=Xt,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Nn(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 Fn(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Qn(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 xn(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=Gn),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=tn(),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]:Gn,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=tn();return e||(e=this.languages),t||(t=this.options.ns),n||(n=Gn),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&&An.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=tn();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"!==Re(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=Kn({},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=tn();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=tn();"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]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Gn,i=Kn(Kn(Kn({},this.options),t),{isClone:!0}),o=new r(i),a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=Kn({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new xn(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,n),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}}}]),r}(en);s(Jn,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new Jn(e,t)}));var Yn=Jn.createInstance();Yn.createInstance=Jn.createInstance;Yn.createInstance,Yn.init,Yn.loadResources,Yn.reloadResources,Yn.use,Yn.changeLanguage,Yn.getFixedT,Yn.t,Yn.exists,Yn.setDefaultNamespace,Yn.hasLoadedNamespace,Yn.loadNamespaces,Yn.loadLanguages;const Xn=Yn;var er,tr,nr={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","previewButton":"Preview","player":"Player","getURL":"Get URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copy the HTML code and paste it on your website. <1>Copy</1>","helperTextNew":"Copy the HTML code and paste it on your website.","helperTextWarning":"The selected player restricts iFrame use to ensure the proper tracking as configured."},"closeModal":"Done","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."}')},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","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.<1>Copiar</1>","helperTextNew":"Copie el código HTML y péguelo en su sitio web.","helperTextWarning":"El reproductor seleccionado restringe el uso de iFrame para garantizar el seguimiento adecuado según lo configurado."},"closeModal":"Hecho","toasterTitle":"Operación realizada correctamente.","toasterMessage":"Código copiado al portapapeles","toasterGetURLSuccess":"Código copiado 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."}')},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","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.<1>Copier</1>","helperTextNew":"Copiez le code HTML et collez-le dans votre site Internet.","helperTextWarning":"Le joueur sélectionné limite l\'utilisation d\'iFrame afin de veiller à ce que le suivi approprié soit configuré."},"closeModal":"Terminé","toasterTitle":"Réussite.","toasterMessage":"Code copié dans le presse-papiers","toasterGetURLSuccess":"Code copié 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."}')},ja:{translation:JSON.parse('{"modalHeader":"Webサイトに埋め込み","mediaNotice":"アカウントのデフォルトのプレーヤーを使用します","tooltipText":"現在、Brightcoveのデフォルトのプレーヤーを使用しています。プレーヤー管理が、間もなく公開されます。","tooltipTextNew":"プレーヤーは、スタイル指定や特別な設定など、動画再生体験を決定します。","tooltipLink":"プレーヤーについての詳細","previewButton":"プレビュー","player":"プレーヤー","getURL":"URLを取得する","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTMLコードをコピーし、お客様のWebサイトに貼り付けてください。<1>コピー</1>","helperTextNew":"HTMLコードをコピーし、お客様のWebサイトに貼り付けてください。","helperTextWarning":"選択されたプレーヤーは、設定された適切なトラッキングを実現するため、iFrameの使用を制限しています。"},"closeModal":"完了","toasterTitle":"成功。","toasterMessage":"コードをクリップボードにコピーしました","toasterGetURLSuccess":"コードをクリップボードにコピーしました","toasterGetURLError":"URLを生成できません","toasterErrorMessage":"テキストをクリップボードにコピー中にエラーが発生しました","customPluginNotice":"カスタム設定により、プレビューが完全でない場合があります。"}')},ko:{translation:JSON.parse('{"modalHeader":"웹사이트에 임베드","mediaNotice":"계정의 기본 플레이어를 사용합니다","tooltipText":"현재 Brightcove 기본 플레이어 사용 중입니다. 플레이어 관리가 곧 출시됩니다.","tooltipTextNew":"플레이어는 스타일 지정, 특수 구성 설정 등 비디오 재생 경험을 결정합니다.","tooltipLink":"플레이어에 대해 자세히 알아보기","previewButton":"미리 보기","player":"플레이어","getURL":"URL 받기","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTML 코드를 복사하여 웹사이트에 붙여넣으십시오.<1>복사</1>","helperTextNew":"HTML 코드를 복사하여 웹사이트에 붙여넣으십시오.","helperTextWarning":"선택된 플레이어는 구성된 대로 적절하게 추적할 수 있도록 iFrame 사용을 제한합니다."},"closeModal":"완료","toasterTitle":"성공.","toasterMessage":"클립보드에 코드가 복사됨","toasterGetURLSuccess":"클립보드에 코드가 복사됨","toasterGetURLError":"URL 생성 불가","toasterErrorMessage":"클립보드에 텍스트를 복사하는 중 오류 발생","customPluginNotice":"사용자 정의 구성으로 인해 전체 미리 보기를 이용하지 못할 수도 있습니다."}')},zh:{translation:JSON.parse('{"modalHeader":"內嵌到網站","mediaNotice":"會使用您帳戶的預設播放程式","tooltipText":"目前使用 Brightcove 預設播放程式。播放程式管理功能即將推出。","tooltipTextNew":"播放器決定視訊播放體驗,例如樣式風格、特別組態設定等。","tooltipLink":"瞭解關於播放程式的更多資訊","previewButton":"預覽","player":"播放程式","getURL":"取得 URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"複製 HTML 程式碼並貼到您的網站上。<1>複製</1>","helperTextNew":"複製 HTML 程式碼並貼到您的網站上。","helperTextWarning":"所選播放程式會限制 iFrame 的使用,以確保依設定正確追蹤。"},"closeModal":"完成","toasterTitle":"成功.","toasterMessage":"程式碼已複製到剪貼簿","toasterGetURLSuccess":"程式碼已複製到剪貼簿","toasterGetURLError":"無法產生 URL","toasterErrorMessage":"複製文字到剪貼簿時發生錯誤","customPluginNotice":"由於自訂組態,您可能無法體驗完整預覽版。"}')}};Xn.use(v).init({lng:(null===(er=window.StudioModule)||void 0===er||null===(tr=er.config)||void 0===tr?void 0:tr.lang)||"en",fallbackLng:"en",debug:!0,returnObjects:!0,resources:nr,interpolation:{escapeValue:!1}});const rr=Xn;(0,y.initialize)({theme:"blueSteel"});var ir=new b.QueryClient;const or=function(n){return(0,e.useEffect)((function(){rr.changeLanguage(n.language||window.StudioModule.config.lang)}),[n.language]),t().createElement(b.QueryClientProvider,{client:ir},t().createElement(g,{i18n:rr},t().createElement(Vt,n)))}})(),a})()));
7
+ function U(){return U=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},U.apply(this,arguments)}var q="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},V=["catalogSearch","catalogSequence"],Q=["adConfigId","applicationId","catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId"],W=function(e){return Object.keys(e).filter((function(e){return-1!==Q.indexOf(e)})).reduce((function(t,n){var r=function(e,t){if(e&&void 0!==e[t]){if("string"!=typeof e[t]&&-1!==V.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}),"")},Z=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,f=e.queryParams,p=void 0===f?null:f,h="";c?h+="html":(d&&(h+="min."),h+="js"),"/"===r.charAt(r.length-1)&&(r=r.substring(0,r.length-1));var g="";return c&&p&&"object"===(void 0===p?"undefined":q(p))&&(g=W(p)),r+"/"+(t=encodeURIComponent(t))+"/"+(o=encodeURIComponent(o))+"_"+(s=encodeURIComponent(s))+"/index."+h+g};
8
+ /*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */Z.VERSION="1.2.0";var z={embedId:"default",embedType:"in-page",playerId:"default",Promise:D().Promise,refNodeInsert:"append"},K="video",H="video-js",G="in-page",$="iframe",J="append",Y="prepend",X="before",ee="after",te="replace",ne=["catalogSearch","catalogSequence"],re="https://players.brightcove.net/",ie=function(e){if(e.playerUrl)return e.playerUrl;var t=e.accountId,n=e.playerId,r=e.embedId,i=e.embedOptions,o=e.embedType===$;return Z({accountId:t,playerId:n,embedId:r,iframe:o,base:re,minified:!i||!i.unminified,queryParams:e})},oe=function(){return re},ae=function(e){re=e},se=function(e){return Boolean(e&&1===e.nodeType)},ue=function(e){return Boolean(se(e)&&e.parentNode)},ce=function(e,t,n){return t?function(e,t){if(!e.pip)return t;var n=T().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=U({aspectRatio:"16:9",iframeHorizontalPlaylist:!1,maxWidth:"100%"},t.responsive),i=r.aspectRatio.split(":").map(Number),o=T().createElement("div"),a=i[1]/i[0]*100;e===$&&r.iframeHorizontalPlaylist&&(a*=1.25),o.style.paddingTop=a+"%",o.appendChild(n);var s=T().createElement("div");return s.style.position="relative",s.style.display="block",s.style.maxWidth=r.maxWidth,s.appendChild(o),s}(e,t,n)):n},le=function(e){var t=e.embedType===$?function(e){var t=T().createElement("iframe");return t.setAttribute("allow","autoplay;encrypted-media;fullscreen"),t.setAttribute("allowfullscreen","allowfullscreen"),t.src=ie(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||H,i=T().createElement(r);return Object.keys(n).filter((function(t){return e[t]})).forEach((function(t){var r;if("string"!=typeof e[t]&&-1!==ne.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=ce(e.embedType,e.embedOptions,t);if(r===X?i.insertBefore(o,n):r===ee?i.insertBefore(o,n.nextElementSibling||null):r===te?i.replaceChild(o,n):r===Y?n.insertBefore(o,n.firstChild||null):n.appendChild(o),e.embedOptions&&e.embedOptions.playlist){var a=e.embedOptions.playlist.legacy?"ul":"div",s=T().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 se(n)?n:t}(e,t))},de=new(D().Map),fe=function(e){return(e.accountId||"*")+"_"+e.playerId+"_"+e.embedId},pe=function(){de.clear()},he=function(e){de.forEach(e)},ge=function(e){return de.has(fe(e))},ve=function(e){de.set(fe(e),e.accountId?ie(e):"")},me=/^([A-Za-z0-9]+)_([A-Za-z0-9]+)$/,ye=function(){return D().bc?Object.keys(D().bc).filter((function(e){return me.test(e)})):[]},be=function(e){e&&Object.keys(e.players).forEach((function(t){var n=e.players[t];n&&n.dispose()}))},Ce=function(){he((function(e,t){e&&Array.prototype.slice.call(T().querySelectorAll('script[src="'+e+'"]')).forEach((function(e){return e.parentNode.removeChild(e)}))})),pe(),be(D().videojs),ye().forEach((function(e){return be(D().bc[e].videojs)})),Object.keys(D()).filter((function(e){return/^videojs/i.test(e)||/^(bc)$/.test(e)})).forEach((function(e){delete D()[e]}))};(function(){ye().forEach((function(e){var t=e.match(me),n={playerId:t[1],embedId:t[2]};ge(n)||ve(n)}))})();var Ae=function(e){return"function"==typeof e},we=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(!ue(a))throw new Error("refNode must resolve to a node attached to the DOM");if(!function(e){return e===G||e===$}(i))throw new Error("embedType is missing or invalid");if(i===$&&o)throw new Error("cannot use options with an iframe embed");if(r&&void 0!==r.tagName&&((t=r.tagName)!==H&&t!==K))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===J||e===Y||e===X||e===ee||e===te}(s))throw new Error("refNodeInsert is missing or invalid")},Ee=function(e,t,n,r){var i,o=e.embedId,a=e.playerId,s=D().bc[a+"_"+o]||D().bc;if(!s)return r(new Error("missing bc function for "+a));ve(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===H&&(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:G,ref:i})},Oe=function(e,t,n){e.refNode=function(e){return ue(e)?e:"string"==typeof e?T().querySelector(e):null}(e.refNode),we(e);var r=e.refNode,i=e.refNodeInsert,o=r.parentNode,a=le(e);if(e.embedType!==$){if(ge(e))return Ee(e,a,t,n);var s=T().createElement("script");s.onload=function(){return Ee(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=ie(e),i===te?o.appendChild(s):r.appendChild(s)}else t({type:$,ref:a})},xe=function(e){var t=U({},z,e),n=t.Promise,r=t.onSuccess,i=t.onFailure;return!Ae(n)||Ae(r)||Ae(i)?Oe(t,Ae(r)?r:function(){},Ae(i)?i:function(e){throw e}):new n((function(e,n){return Oe(t,e,n)}))},Se=function(e,t){Object.defineProperty(xe,e,{configurable:!1,enumerable:!0,value:t,writable:!1})};Se("getBaseUrl",(function(){return oe()})),Se("setBaseUrl",(function(e){ae(e)})),Se("getUrl",(function(e){return ie(e)})),Se("reset",(function(){return Ce()})),[["EMBED_TAG_NAME_VIDEO",K],["EMBED_TAG_NAME_VIDEOJS",H],["EMBED_TYPE_IN_PAGE",G],["EMBED_TYPE_IFRAME",$],["REF_NODE_INSERT_APPEND",J],["REF_NODE_INSERT_PREPEND",Y],["REF_NODE_INSERT_BEFORE",X],["REF_NODE_INSERT_AFTER",ee],["REF_NODE_INSERT_REPLACE",te],["VERSION","1.8.0"]].forEach((function(e){Se(e[0],e[1])}));var Pe=["catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId"],Ie=function(e){var n,r;function i(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}r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r;var o=i.prototype;return o.loadPlayer=function(){var e=this;this.disposePlayer();var t=this.props.onSuccess,n=this.props.onFailure,r=B({},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=xe.getBaseUrl();this.props.baseUrl&&xe.setBaseUrl(this.props.baseUrl),xe(r),xe.setBaseUrl(i)},o.disposePlayer=function(){this.player&&(this.player.dispose?this.player.dispose():this.player.parentNode&&this.player.parentNode.removeChild(this.player),this.player=null)},o.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},o.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)}}},o.updatePlayer=function(e){if(this.player&&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)}}},o.componentDidMount=function(){this.isMounted_=!0,this.loadPlayer()},o.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===Pe.indexOf(e)}))?this.updatePlayer(n):this.loadPlayer()},o.componentWillUnmount=function(){this.isMounted_=!1,this.disposePlayer()},o.render=function(){var e=B({className:"brightcove-react-player-loader"},this.props.attrs,{ref:this.setRefNode});return t().createElement("div",e)},i}(t().Component);const je=Ie;var ke=o(130),Re=o.n(ke);function _e(){return"qa"===(window.StudioModule.config.product.env||"production")}function Le(){return _e()?"https://bc-players-qa.s3.amazonaws.com/":"https://players.brightcove.net/"}var Ne=o(379),Fe=o.n(Ne),Te=o(795),Me=o.n(Te),De=o(569),Be=o.n(De),Ue=o(565),qe=o.n(Ue),Ve=o(609),Qe=o.n(Ve),We=o(589),Ze=o.n(We),ze=o(17),Ke={};Ke.styleTagTransform=Ze(),Ke.setAttributes=qe(),Ke.insert=Be().bind(null,"head"),Ke.domAPI=Me(),Ke.insertStyleElement=Qe();Fe()(ze.Z,Ke);const He=ze.Z&&ze.Z.locals?ze.Z.locals:void 0;var Ge=function(n){var r=n.isIFrame,i=n.accountId,o=n.videoId,a=n.playerId,s=N().t,u=O((0,e.useState)(""),2),c=u[0],l=u[1],d=(0,e.useCallback)((function(){return{accountId:i,responsive:!1,iframe:r,width:960,height:540,urlBase:Le(),playerId:a,videoId:o}}),[i,o,r,a]);(0,e.useEffect)((function(){var e=d(),t=Re()(e);l(t)}),[d]);var f=t().createElement(y.Flex,null,t().createElement(y.FlexItem,{flexGrow:"1",className:He.helperText},s("tabs.helperText")));return t().createElement(t().Fragment,null,t().createElement(y.CopyField,{className:He.copyInput,helperNode:f,Component:y.PlainTextArea,componentProps:{disabled:!0,isResizable:!1,className:He.textAreaDimensions},onCopy:function(){y.Toaster.success({title:s("toasterTitle"),message:s("toasterMessage")})},onError:function(){y.Toaster.error({message:s("toasterErrorMessage")})},value:c,hideButton:!0}))},$e=o(94),Je={};Je.styleTagTransform=Ze(),Je.setAttributes=qe(),Je.insert=Be().bind(null,"head"),Je.domAPI=Me(),Je.insertStyleElement=Qe();Fe()($e.Z,Je);const Ye=$e.Z&&$e.Z.locals?$e.Z.locals:void 0;function Xe(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 et(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Xe(o,r,i,a,s,"next",e)}function s(e){Xe(o,r,i,a,s,"throw",e)}a(void 0)}))}}var tt=o(757),nt=o.n(tt),rt=o(946);function it(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 ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var at=function(){return window.StudioModule.config},st=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(ot(ot({},t),(n=at(),{apiConfig:{publisherId:at().user.currentAccount.id,api:n.module.api}}))))},ut=function(){var e=et(nt().mark((function e(){return nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",st(rt.Xo,{}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const ct=function(e,t){var n=t&&e===S.VIDEO;return(0,b.useQuery)(["players"],(function(){return ut()}),{refetchOnWindowFocus:!1,refetchOnMount:!1,enabled:n})};var lt=o(826),dt=function(){var e=et(nt().mark((function e(t){var n;return nt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.longUrl,e.abrupt("return",st(lt.P,{longUrl:n}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ft=["bcAa","bcAirplay","bcGa","bcGtm","bcPlaylistUi","bcTealium","bcMapPlugin","chromecastReceiver","customEndscreen","eme","ima3","kollective","overlay","pip","playlistEndscreen","qualityMenu","social","ssai","thumbnails"];function pt(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 ht(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 ht(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 ht(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 gt=function(n){var r=n.video,i=n.type,o=N().t,a=O((0,e.useState)("iframe"),2),s=a[0],u=a[1],c=O((0,e.useState)(!1),2),l=c[0],d=c[1],f=O((0,e.useState)(!1),2),p=f[0],h=f[1],g=O((0,e.useState)(!1),2),v=g[0],m=g[1],b=O((0,e.useState)("default"),2),C=b[0],A=b[1],w=O((0,e.useState)({}),2),E=w[0],x=w[1],P=O((0,e.useState)([]),2),I=P[0],j=P[1],k=ct(null!=i?i:S.VIDEO,v),R=k.isLoading,_=k.data,L=(0,e.useCallback)((function(e,t){var n;if(!e&&(null!==(n=null==t?void 0:t.items.length)&&void 0!==n?n:0)>0){var r=[],i={};null==t||t.items.map((function(e){var t,n,o=null!==(t=e.branches.master.configuration.plugins)&&void 0!==t?t:[],a=!!o&&o.length>0,s=!1,u=pt(o);try{for(u.s();!(n=u.n()).done;){var c=n.value.name;s=ft.includes(c)}}catch(e){u.e(e)}finally{u.f()}var l=!1;if(a){var d=o.find((function(e){return"bcMapPlugin"===e.name}));d&&(l=!0)}r.push({label:e.name,value:e.id}),i[e.id]={label:e.name,id:e.id,hasCustomPlugins:!s&&a,isCampaignPlayer:l}})),x(i),j(function(e){return e.sort((function(e,t){return e.label.localeCompare(t.label)}))}(r))}}),[]);(0,e.useEffect)((function(){L(R,_)}),[L,R,_]),(0,e.useEffect)((function(){r&&(d(!0),v||m(!0))}),[r]);var F,T=t().createElement(t().Fragment,null,t().createElement("div",null,o("tooltipTextNew")),t().createElement("a",{href:"https://studio.support.brightcove.com/players/getting-started-players-module.html",target:"_blank",rel:"noreferrer"},o("tooltipLink"))),M=function(){return"".concat(Le()).concat(r.accountId,"/").concat(C,"_default/index.html?videoId=").concat(r.videoId)},D=function(){var e;return null===(e=E[C])||void 0===e?void 0:e.isCampaignPlayer};return r?t().createElement(y.Modal,{testName:"embed-modal",title:o("modalHeader"),isOpen:l,large:!0,onClose:function(){return d(!1)},buttons:t().createElement(y.Button,{text:o("closeModal"),onClick:function(){d(!1)},testName:"close-modal-btn"})},t().createElement(y.Flex,{className:Ye.videoDetailsContainer},t().createElement("div",{className:Ye.leftContent},t().createElement(y.Flex,null,t().createElement("div",{className:Ye.playerSelectLabel},o("player")),t().createElement(y.ToolTip,{content:T,placement:"top",className:Ye.tooltip,reflow:!1})),I.length>0&&t().createElement(y.Select,{value:C,options:I,inputClassName:Ye.playerSelect,onChange:function(e){A(e)}}),t().createElement(je,{accountId:r.accountId,playerId:C,videoId:r.videoId,baseUrl:Le(),attrs:{className:Ye.playerLoader},embedType:"iframe",refNode:"player-container"}),(null===(F=E[C])||void 0===F?void 0:F.hasCustomPlugins)&&t().createElement("span",{className:Ye.customPluginNotice},o("customPluginNotice")),t().createElement("div",null,t().createElement("div",{className:Ye.getURLBtnContainer},t().createElement(y.Button,{look:"tertiary",text:o("getURL"),testName:"get-url-btn",icon:p?"":"link",iconRight:!0,onClick:function(){h(!0);var e=encodeURI(M());dt({longUrl:e}).then((function(e){navigator.clipboard.writeText(e),y.Toaster.success({title:o("toasterTitle"),message:o("toasterGetURLSuccess")}),h(!1)})).catch((function(){y.Toaster.error({message:o("toasterGetURLError")}),h(!1)}))}}),p&&t().createElement(y.Loader,{className:Ye.getURLBtnSpinner,size:"inline",color:"navy"})),t().createElement(y.Button,{look:"tertiary",text:o("previewButton"),testName:"preview-player-btn",icon:"external_link",iconRight:!0,onClick:function(){var e=M();window.open(e,"_blank")}}))),t().createElement("div",{className:Ye.rightContent},t().createElement(y.Flex,{flexDirection:"column",className:Ye.mediaData},t().createElement("div",{className:Ye.mediaTitle},r.videoName),t().createElement("div",{className:Ye.mediaId},r.videoId)),t().createElement(y.Flex,{justifyContent:"space-between",alignItems:"baseline"},t().createElement(y.Tabs,{selectedId:s,onSelect:function(e){return u(e)}},t().createElement(y.TabList,null,t().createElement(y.SmallTab,{tabId:"iframe",testName:"iframe-tab"},o("tabs.labels.iframe")),t().createElement(y.SmallTab,{tabId:"javascript",testName:"js-tab"},o("tabs.labels.javascript"))))),t().createElement(y.TabPanel,{render:function(){return"iframe"===s&&D()?t().createElement("span",{className:Ye.redHelperText},o("tabs.helperTextWarning")):t().createElement(Ge,{isIFrame:"iframe"===s,videoId:r.videoId,accountId:r.accountId,playerId:C})}})))):null};function vt(e){return vt="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},vt(e)}function mt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var yt=o(611);function bt(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,yt.Z)(e,t)}function Ct(e,t){if(t&&("object"===vt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mt(e)}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}function wt(e){return C(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||E()}function Et(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 Ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Et(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Et(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xt={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)}},St=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.init(t,r)}return i(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||xt,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,Ot(Ot({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}(),Pt=new St,It=function(){function e(){n(this,e),this.observers={}}return i(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 jt(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function kt(e){return null==e?"":""+e}function Rt(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function _t(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 Lt(e,t,n){var r=_t(e,t,Object);r.obj[r.k]=n}function Nt(e,t){var n=_t(e,t),r=n.obj,i=n.k;if(r)return r[i]}function Ft(e,t,n){var r=Nt(e,n);return void 0!==r?r:Nt(t,n)}function Tt(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]):Tt(e[r],t[r],n):e[r]=t[r]);return e}function Mt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Dt={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function Bt(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Dt[e]})):e}var Ut="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,qt=[" ",",","?","!",";"];function Vt(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 Qt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Vt(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wt(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=At(e);if(t){var i=At(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ct(this,n)}}function Zt(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?Zt(u,c,n):void 0}i=i[r[o]]}return i}}var zt=function(e){bt(r,e);var t=Wt(r);function r(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return n(this,r),i=t.call(this),Ut&&It.call(mt(i)),i.data=e||{},i.options=o,void 0===i.options.keySeparator&&(i.options.keySeparator="."),void 0===i.options.ignoreJSONStructure&&(i.options.ignoreJSONStructure=!0),i}return i(r,[{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=Nt(this.data,a);return s||!o||"string"!=typeof n?s:Zt(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),Lt(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=Nt(this.data,a)||{};r?Tt(s,n,i):s=Qt(Qt({},s),n),Lt(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?Qt(Qt({},{}),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}}]),r}(It),Kt={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 Ht(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 Gt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $t(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=At(e);if(t){var i=At(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ct(this,n)}}var Jt={},Yt=function(e){bt(r,e);var t=$t(r);function r(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),i=t.call(this),Ut&&It.call(mt(i)),Rt(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,mt(i)),i.options=o,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=Pt.create("translator"),i}return i(r,[{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=qt.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,n){var i=this;if("object"!==vt(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,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(f){var p=t.nsSeparator||this.options.nsSeparator;return o?(h.res="".concat(l).concat(p).concat(u),h):"".concat(l).concat(p).concat(u)}return o?(h.res=u,h):u}var h=this.resolve(e,t),g=h&&h.res,v=h&&h.usedKey||u,m=h&&h.exactUsedKey||u,y=Object.prototype.toString.apply(g),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 g&&"boolean"!=typeof g&&"number"!=typeof g;if(A&&g&&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(v,g,Gt(Gt({},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,x=O?[]:{},S=O?m:v;for(var P in g)if(Object.prototype.hasOwnProperty.call(g,P)){var I="".concat(S).concat(a).concat(P);x[P]=this.translate(I,Gt(Gt({},t),{joinArrays:!1,ns:c})),x[P]===I&&(x[P]=g[P])}g=x}}else if(A&&"string"==typeof C&&"[object Array]"===y)(g=g.join(C))&&(g=this.extendTranslation(g,e,t,n));else{var j=!1,k=!1,R=void 0!==t.count&&"string"!=typeof t.count,_=r.hasDefaultValue(t),L=R?this.pluralResolver.getSuffix(d,t.count,t):"",N=t["defaultValue".concat(L)]||t.defaultValue;!this.isValidLookup(g)&&_&&(j=!0,g=N),this.isValidLookup(g)||(k=!0,g=u);var F=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,T=F&&k?void 0:g,M=_&&N!==g&&this.options.updateMissing;if(k||j||M){if(this.logger.log(M?"updateKey":"missingKey",d,l,u,M?N:g),a){var D=this.resolve(u,Gt(Gt({},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!==g?r:T;i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,n,o,M,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,n,o,M,t),i.emit("missingKey",e,l,n,g)};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))}g=this.extendTranslation(g,e,t,h,n),k&&g===u&&this.options.appendNamespaceToMissingKey&&(g="".concat(l,":").concat(u)),(k||j)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(u,j?g:void 0):this.options.parseMissingKeyHandler(g))}return o?(h.res=g,h):g}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Gt(Gt({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Gt(Gt({},n),{interpolation:Gt(Gt({},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=Gt(Gt({},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,f="string"==typeof d?[d]:d;return null!=e&&f&&f.length&&!1!==n.applyPostProcessor&&(e=Kt.handle(f,e,t,this.options&&this.options.postProcessPassResolved?Gt({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,f=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),p=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,!Jt["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(Jt["".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),f&&u.push(c+h)),p){var g="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(g),d&&(u.push(g+l),f&&u.push(g+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}}]),r}(It);function Xt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var en=function(){function e(t){n(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Pt.create("languageUtils")}return i(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]=Xt(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]=Xt(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Xt(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}(),tn=[{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}],nn={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)}},rn=["v1","v2","v3"],on={zero:0,one:1,two:2,few:3,many:4,other:5};function an(){var e={};return tn.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:nn[t.fc]}}))})),e}var sn=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,e),this.languageUtils=t,this.options=r,this.logger=Pt.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=an()}return i(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 on[e]-on[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!rn.includes(this.options.compatibilityJSON)}}]),e}();function un(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 cn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?un(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ln=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.logger=Pt.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return i(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:Bt,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?Mt(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?Mt(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?Mt(t.nestingPrefix):t.nestingPrefixEscaped||Mt("$t("),this.nestingSuffix=t.nestingSuffix?Mt(t.nestingSuffix):t.nestingSuffixEscaped||Mt(")"),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=Ft(t,u,e);return s.alwaysFormat?s.format(i,void 0,n,cn(cn(cn({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(Ft(t,u,a),c,n,cn(cn(cn({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,f=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(f){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=kt(o));var c=t.safeValue(o);if(e=e.replace(i[0],c),f?(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=cn({},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=cn(cn({},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=kt(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,cn(cn({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function dn(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 fn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.logger=Pt.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,fn(fn({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,fn({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,fn({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,fn({},n)).format(e)}},this.init(t)}return i(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=wt(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,fn(fn(fn({},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 hn(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 gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hn(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vn(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=At(e);if(t){var i=At(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ct(this,n)}}var mn=function(e){bt(r,e);var t=vn(r);function r(e,i,o){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return n(this,r),a=t.call(this),Ut&&It.call(mt(a)),a.backend=e,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=Pt.create("backendConnector"),a.waitingReads=[],a.maxParallelReads=s.maxParallelReads||10,a.readingCalls=0,a.state={},a.queue=[],a.backend&&a.backend.init&&a.backend.init(o,s.backend,s),a}return i(r,[{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=_t(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,gn(gn({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),r}(It);function yn(){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"===vt(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===vt(e[2])||"object"===vt(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 bn(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 Cn(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 An(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cn(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wn(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=At(e);if(t){var i=At(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ct(this,n)}}function En(){}function On(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var xn=function(e){bt(r,e);var t=wn(r);function r(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(n(this,r),e=t.call(this),Ut&&It.call(mt(e)),e.options=bn(i),e.services={},e.logger=Pt,e.modules={external:[]},On(mt(e)),o&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,o),Ct(e,mt(e));setTimeout((function(){e.init(i,o)}),0)}return e}return i(r,[{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=yn();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=An(An(An({},r),this.options),bn(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=An(An({},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?Pt.init(i(this.modules.logger),this.options):Pt.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=pn);var a=new en(this.options);this.store=new zt(this.options.resources,this.options);var s=this.services;s.logger=Pt,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new sn(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 ln(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new mn(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 Yt(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=En),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=jt(),f=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?f():setTimeout(f,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:En,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=jt();return e||(e=this.languages),t||(t=this.options.ns),n||(n=En),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&&Kt.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=jt();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"!==vt(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=An({},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=jt();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=jt();"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]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:En,i=An(An(An({},this.options),t),{isClone:!0}),o=new r(i),a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=An({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Yt(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,n),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}}}]),r}(It);s(xn,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new xn(e,t)}));var Sn=xn.createInstance();Sn.createInstance=xn.createInstance;Sn.createInstance,Sn.init,Sn.loadResources,Sn.reloadResources,Sn.use,Sn.changeLanguage,Sn.getFixedT,Sn.t,Sn.exists,Sn.setDefaultNamespace,Sn.hasLoadedNamespace,Sn.loadNamespaces,Sn.loadLanguages;const Pn=Sn;var In,jn,kn={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","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."},"closeModal":"Done","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."}')},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","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."},"closeModal":"Hecho","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."}')},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","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é."},"closeModal":"Terminé","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."}')},ja:{translation:JSON.parse('{"modalHeader":"Webサイトに埋め込み","mediaNotice":"アカウントのデフォルトのプレーヤーを使用します","tooltipText":"現在、Brightcoveのデフォルトのプレーヤーを使用しています。プレーヤー管理が、間もなく公開されます。","tooltipTextNew":"プレーヤーは、スタイル指定や特別な設定など、動画再生体験を決定します。","tooltipLink":"プレーヤーについての詳細","previewButton":"プレビュー","player":"プレーヤー","getURL":"URLを取得する","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTMLコードをコピーし、お客様のWebサイトに貼り付けてください。","helperTextWarning":"このプレーヤーは、キャンペーンプラグインを使って構成されています。適切にトラッキングするには、 JavaScript埋め込みコードを使用してください。"},"closeModal":"完了","toasterTitle":"成功。","toasterMessage":"コードをクリップボードにコピーしました","toasterGetURLSuccess":"URLをクリップボードにコピーしました","toasterGetURLError":"URLを生成できません","toasterErrorMessage":"テキストをクリップボードにコピー中にエラーが発生しました","customPluginNotice":"カスタム設定により、プレビューが完全でない場合があります。"}')},ko:{translation:JSON.parse('{"modalHeader":"웹사이트에 임베드","mediaNotice":"계정의 기본 플레이어를 사용합니다","tooltipText":"현재 Brightcove 기본 플레이어 사용 중입니다. 플레이어 관리가 곧 출시됩니다.","tooltipTextNew":"플레이어는 스타일 지정, 특수 구성 설정 등 비디오 재생 경험을 결정합니다.","tooltipLink":"플레이어에 대해 자세히 알아보기","previewButton":"미리 보기","player":"플레이어","getURL":"URL 받기","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTML 코드를 복사하여 웹사이트에 붙여넣으십시오.","helperTextWarning":"이 플레이어는 캠페인 플러그인과 함께 구성됩니다. 바르게 추적되게 하려면, JavaScript 내장 코드를 사용해야 합니다."},"closeModal":"완료","toasterTitle":"성공.","toasterMessage":"클립보드에 코드가 복사됨","toasterGetURLSuccess":"URL이 클립보드에 복사됨","toasterGetURLError":"URL 생성 불가","toasterErrorMessage":"클립보드에 텍스트를 복사하는 중 오류 발생","customPluginNotice":"사용자 정의 구성으로 인해 전체 미리 보기를 이용하지 못할 수도 있습니다."}')},zh:{translation:JSON.parse('{"modalHeader":"內嵌到網站","mediaNotice":"會使用您帳戶的預設播放程式","tooltipText":"目前使用 Brightcove 預設播放程式。播放程式管理功能即將推出。","tooltipTextNew":"播放器決定視訊播放體驗,例如樣式風格、特別組態設定等。","tooltipLink":"瞭解關於播放程式的更多資訊","previewButton":"預覽","player":"播放程式","getURL":"取得 URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"複製 HTML 程式碼並貼到您的網站上。","helperTextWarning":"此播放程式設定有活動外掛程式。為了確保正確追蹤,應使用 JavaScript 內嵌程式碼。"},"closeModal":"完成","toasterTitle":"成功.","toasterMessage":"程式碼已複製到剪貼簿","toasterGetURLSuccess":"URL 已複製到剪貼簿","toasterGetURLError":"無法產生 URL","toasterErrorMessage":"複製文字到剪貼簿時發生錯誤","customPluginNotice":"由於自訂組態,您可能無法體驗完整預覽版。"}')}};Pn.use(v).init({lng:(null===(In=window.StudioModule)||void 0===In||null===(jn=In.config)||void 0===jn?void 0:jn.lang)||"en",fallbackLng:"en",debug:!0,returnObjects:!0,resources:kn,interpolation:{escapeValue:!1}});const Rn=Pn;(0,y.initialize)({theme:"blueSteel"});var _n=new b.QueryClient;const Ln=function(n){return(0,e.useEffect)((function(){Rn.changeLanguage(n.language||window.StudioModule.config.lang)}),[n.language]),t().createElement(b.QueryClientProvider,{client:_n},t().createElement(m,{i18n:Rn},t().createElement(gt,n)))}})(),a})()));