@brightcove/components-embed-code-modal 0.1.25 → 0.1.26
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/README.md +13 -7
- package/__tests__/InteractivityProject.test.d.ts +2 -0
- package/__tests__/InteractivityProject.test.d.ts.map +1 -0
- package/index.js +2 -2
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.d.ts +3 -2
- package/src/index.d.ts.map +1 -1
- package/src/js/EmbedCodeModal.d.ts +2 -2
- package/src/js/EmbedCodeModal.d.ts.map +1 -1
- package/src/js/components/EmbedCopySection.d.ts.map +1 -1
- package/src/js/components/ModalContainer.d.ts +1 -1
- package/src/js/components/ModalContainer.d.ts.map +1 -1
- package/src/js/components/PlayersDropdown.d.ts +3 -1
- package/src/js/components/PlayersDropdown.d.ts.map +1 -1
- package/src/js/components/TabsSection.d.ts +1 -0
- package/src/js/components/TabsSection.d.ts.map +1 -1
- package/src/js/components/TitleWithTooltip.d.ts +3 -3
- package/src/js/components/TitleWithTooltip.d.ts.map +1 -1
- package/src/js/components/VideoPlayer.d.ts +5 -2
- package/src/js/components/VideoPlayer.d.ts.map +1 -1
- package/src/js/constants/pluginsRegistry.d.ts +1 -0
- package/src/js/constants/pluginsRegistry.d.ts.map +1 -1
- package/src/js/types/EmbedCodeModalProps.d.ts +9 -2
- package/src/js/types/EmbedCodeModalProps.d.ts.map +1 -1
- package/src/js/types/studioModule.d.ts +1 -9
- package/src/js/types/studioModule.d.ts.map +1 -1
- package/src/js/utils/addPluginsDataToPlayers.d.ts +2 -1
- package/src/js/utils/addPluginsDataToPlayers.d.ts.map +1 -1
- package/src/js/utils/call.d.ts +5 -1
- package/src/js/utils/call.d.ts.map +1 -1
- package/src/js/utils/util.d.ts +8 -1
- package/src/js/utils/util.d.ts.map +1 -1
- package/src/module.d.ts +2 -0
- package/src/module.d.ts.map +1 -0
- package/src/types/studio.d.ts +170 -0
- package/src/types/studio.d.ts.map +1 -0
- package/__tests__/EmbedCodeModalComponent.spec.d.ts +0 -2
- package/__tests__/EmbedCodeModalComponent.spec.d.ts.map +0 -1
- package/src/js/EmbedCode.d.ts +0 -4
- package/src/js/EmbedCode.d.ts.map +0 -1
- package/src/js/EmbedCodeModalComponent.d.ts +0 -4
- package/src/js/EmbedCodeModalComponent.d.ts.map +0 -1
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("@brightcove/studio-components"),require("react-dom"),require("@brightcove/react-player-loader"));else if("function"==typeof define&&define.amd)define(["react","@brightcove/studio-components","react-dom","@brightcove/react-player-loader"],t);else{var n="object"==typeof exports?t(require("react"),require("@brightcove/studio-components"),require("react-dom"),require("@brightcove/react-player-loader")):t(e.react,e["@brightcove/studio-components"],e["react-dom"],e["@brightcove/react-player-loader"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r)=>(()=>{var i={757:(e,t,n)=>{e.exports=n(666)},130:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){(function(n){var r;t=e.exports=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 f=u++;s[f]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=u++;s[p]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var d=u++;s[d]="("+s[l]+")\\.("+s[l]+")\\.("+s[l]+")";var h=u++;s[h]="(?:"+s[c]+"|"+s[f]+")";var g=u++;s[g]="(?:"+s[l]+"|"+s[f]+")";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[p]+s[v]+"?"+s[b]+"?";s[C]="^"+A+"$";var w="[v=\\s]*"+s[d]+s[m]+"?"+s[b]+"?",O=u++;s[O]="^"+w+"$";var E=u++;s[E]="((?:<|>)?=?)";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 j=u++;s[j]="[v=\\s]*("+s[x]+")(?:\\.("+s[x]+")(?:\\.("+s[x]+")(?:"+s[m]+")?"+s[b]+"?)?)?";var k=u++;s[k]="^"+s[E]+"\\s*"+s[P]+"$";var R=u++;s[R]="^"+s[E]+"\\s*"+s[j]+"$";var L=u++;s[L]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var I=u++;s[I]="(?:~>?)";var _=u++;s[_]="(\\s*)"+s[I]+"\\s+",a[_]=new RegExp(s[_],"g");var F=u++;s[F]="^"+s[I]+s[P]+"$";var T=u++;s[T]="^"+s[I]+s[j]+"$";var N=u++;s[N]="(?:\\^)";var M=u++;s[M]="(\\s*)"+s[N]+"\\s+",a[M]=new RegExp(s[M],"g");var D=u++;s[D]="^"+s[N]+s[P]+"$";var B=u++;s[B]="^"+s[N]+s[j]+"$";var U=u++;s[U]="^"+s[E]+"\\s*("+w+")$|^$";var q=u++;s[q]="^"+s[E]+"\\s*("+A+")$|^$";var Q=u++;s[Q]="(\\s*)"+s[E]+"\\s*("+w+"|"+s[P]+")",a[Q]=new RegExp(s[Q],"g");var V=u++;s[V]="^\\s*("+s[P]+")\\s+-\\s+("+s[P]+")\\s*$";var Z=u++;s[Z]="^\\s*("+s[j]+")\\s+-\\s+("+s[j]+")\\s*$";var W=u++;s[W]="(<|>)?=?\\s*\\*";for(var K=0;K<35;K++)r(K,s[K]),a[K]||(a[K]=new RegExp(s[K]));function z(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[O]: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[O]:a[C]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}t.parse=z,t.valid=function(e,t){var n=z(e,t);return n?n.version:null},t.clean=function(e,t){var n=z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=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=z(e),r=z(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},t.compareIdentifiers=$;var G=/^[0-9]+$/;function $(e,t){var n=G.test(e),r=G.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function J(e,t,n){return new 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,f,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":f?"<="+u+"."+c+"."+l+"-"+f:"<="+s)).trim()}function fe(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 de(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(pe(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var l=t.set[c],f=null,p=null;if(l.forEach((function(e){e.semver===ae&&(e=new oe(">=0.0.0")),f=f||e,p=p||e,i(e.semver,f.semver,r)?f=e:a(e.semver,p.semver,r)&&(p=e)})),f.operator===s||f.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 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),pe(this.value,n,t));if(""===e.operator)return""===e.value||(n=new se(this.value,t),pe(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ie(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ie(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||u},t.Range=se,se.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?a[Z]:a[V];e=e.replace(n,le),r("hyphen replace",e),e=e.replace(a[Q],"$1$2$3"),r("comparator trim",e,a[Q]),e=(e=(e=e.replace(a[_],"$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[F];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[R]:a[k];return e.replace(n,(function(t,n,i,o,a,s){r("xRange",e,t,n,i,o,a,s);var u=ce(i),c=u||ce(o),l=c||ce(a);return"="===n&&l&&(n=""),u?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),t=n+i+"."+o+"."+a):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),r("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[W],"")}(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(fe(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 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 de(e,t,"<",n)},t.gtr=function(e,t,n){return de(e,t,">",n)},t.outside=de,t.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new se(e,n),t=new se(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof H)return e;if("string"!=typeof e)return null;var n=e.match(a[L]);return null==n?null:z(n[1]+"."+(n[2]||"0")+"."+(n[3]||"0"),t)}}).call(this,n(1))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-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(d)},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);
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("@brightcove/studio-components"),require("react-dom"),require("@brightcove/react-player-loader"));else if("function"==typeof define&&define.amd)define(["react","@brightcove/studio-components","react-dom","@brightcove/react-player-loader"],t);else{var n="object"==typeof exports?t(require("react"),require("@brightcove/studio-components"),require("react-dom"),require("@brightcove/react-player-loader")):t(e.react,e["@brightcove/studio-components"],e["react-dom"],e["@brightcove/react-player-loader"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r)=>(()=>{var i={757:(e,t,n)=>{e.exports=n(666)},130:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){(function(n){var r;t=e.exports=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 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 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[p]+s[v]+"?"+s[b]+"?";s[C]="^"+A+"$";var w="[v=\\s]*"+s[f]+s[m]+"?"+s[b]+"?",O=u++;s[O]="^"+w+"$";var E=u++;s[E]="((?:<|>)?=?)";var x=u++;s[x]=s[l]+"|x|X|\\*";var P=u++;s[P]=s[c]+"|x|X|\\*";var S=u++;s[S]="[v=\\s]*("+s[P]+")(?:\\.("+s[P]+")(?:\\.("+s[P]+")(?:"+s[v]+")?"+s[b]+"?)?)?";var j=u++;s[j]="[v=\\s]*("+s[x]+")(?:\\.("+s[x]+")(?:\\.("+s[x]+")(?:"+s[m]+")?"+s[b]+"?)?)?";var k=u++;s[k]="^"+s[E]+"\\s*"+s[S]+"$";var I=u++;s[I]="^"+s[E]+"\\s*"+s[j]+"$";var R=u++;s[R]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var L=u++;s[L]="(?:~>?)";var _=u++;s[_]="(\\s*)"+s[L]+"\\s+",a[_]=new RegExp(s[_],"g");var T=u++;s[T]="^"+s[L]+s[S]+"$";var F=u++;s[F]="^"+s[L]+s[j]+"$";var N=u++;s[N]="(?:\\^)";var M=u++;s[M]="(\\s*)"+s[N]+"\\s+",a[M]=new RegExp(s[M],"g");var D=u++;s[D]="^"+s[N]+s[S]+"$";var B=u++;s[B]="^"+s[N]+s[j]+"$";var U=u++;s[U]="^"+s[E]+"\\s*("+w+")$|^$";var q=u++;s[q]="^"+s[E]+"\\s*("+A+")$|^$";var Q=u++;s[Q]="(\\s*)"+s[E]+"\\s*("+w+"|"+s[S]+")",a[Q]=new RegExp(s[Q],"g");var V=u++;s[V]="^\\s*("+s[S]+")\\s+-\\s+("+s[S]+")\\s*$";var Z=u++;s[Z]="^\\s*("+s[j]+")\\s+-\\s+("+s[j]+")\\s*$";var W=u++;s[W]="(<|>)?=?\\s*\\*";for(var K=0;K<35;K++)r(K,s[K]),a[K]||(a[K]=new RegExp(s[K]));function z(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[O]: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[O]:a[C]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}t.parse=z,t.valid=function(e,t){var n=z(e,t);return n?n.version:null},t.clean=function(e,t){var n=z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=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=z(e),r=z(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},t.compareIdentifiers=$;var G=/^[0-9]+$/;function $(e,t){var n=G.test(e),r=G.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function J(e,t,n){return new 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,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 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(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 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),pe(this.value,n,t));if(""===e.operator)return""===e.value||(n=new se(this.value,t),pe(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ie(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ie(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||u},t.Range=se,se.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?a[Z]:a[V];e=e.replace(n,le),r("hyphen replace",e),e=e.replace(a[Q],"$1$2$3"),r("comparator trim",e,a[Q]),e=(e=(e=e.replace(a[_],"$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[T];return e.replace(n,(function(t,n,i,o,a){var s;return r("tilde",e,t,n,i,o,a),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(o)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":a?(r("replaceTilde pr",a),s=">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[I]:a[k];return e.replace(n,(function(t,n,i,o,a,s){r("xRange",e,t,n,i,o,a,s);var u=ce(i),c=u||ce(o),l=c||ce(a);return"="===n&&l&&(n=""),u?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),t=n+i+"."+o+"."+a):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),r("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[W],"")}(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=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 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 fe(e,t,"<",n)},t.gtr=function(e,t,n){return fe(e,t,">",n)},t.outside=fe,t.prerelease=function(e,t){var n=z(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new se(e,n),t=new se(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof H)return e;if("string"!=typeof e)return null;var n=e.match(a[R]);return null==n?null:z(n[1]+"."+(n[2]||"0")+"."+(n[3]||"0"),t)}}).call(this,n(1))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function 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(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=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,f=void 0!==l&&l,p=e.minified,d=void 0===p||p,h=e.queryParams,g=void 0===h?null:h,v="";f?v+="html":(d&&(v+="min."),v+="js"),"/"===i.charAt(i.length-1)&&(i=i.substring(0,i.length-1));var m="";return f&&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,playlistIsHorizontal:!0,formatter:function(e){return e},width:960,height:540,units:"px",responsive:!0,applicationId:"",allowFullscreen:!0,allowEncryptedMedia:!0,pictureInPicture:!1,responsiveHeight:"56.25%"};function l(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.responsive&&!t.width&&(n.width=100,n.units="%"),n}var f={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,";")),s.setAttribute("style","padding-top: ".concat(t.responsiveHeight,";")),i.setAttribute("style","position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%;"),r.appendChild(a),a.appendChild(s),s.appendChild(i)}else"px"!==t.units?i.setAttribute("style","width: ".concat(t.width).concat(t.units,"; height: ").concat(t.height).concat(t.units,";")):(i.setAttribute("width",t.width),i.setAttribute("height",t.height)),r.appendChild(i);return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src")).replace("&","&")}},p=n(0),d=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 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"),i=e.createElement("div");if(t.playerVersion&&d.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 o=e.createElement("style");o.innerHTML="video-js.video-js.vjs-fluid:not(.vjs-audio-only-mode) {padding-top: ".concat(t.responsiveHeight,";}");var a="max-width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",a),i.appendChild(o)}else{var s="width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",s),n.setAttribute("width",t.width),n.setAttribute("height",t.height)}if(n.classList.add("vjs-fluid"),i.appendChild(n),r.appendChild(i),t.pictureInPicture){var f=e.createElement("div");f.classList.add("vjs-pip-container"),f.appendChild(r.firstChild),r.appendChild(f)}if(t.playlistElement)if(t.playlistIsHorizontal){var p=e.createElement("div");p.setAttribute("class","vjs-playlist"),i.appendChild(p)}else i.classList.add("vjs-playlist-player-container");if(t.includeScriptElement){var g=e.createElement("script"),v={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,minified:t.minified};t.urlBase&&(v.base=t.urlBase),t.returnDomElement?g.setAttribute("src",u(v)):g.setAttribute("fzrsbrxzyeajgdaxuxqu",u(v)),r.appendChild(g)}if(t.legacyPlaylistElement&&!t.playlistElement){var m=e.createElement("ol");m.setAttribute("class","vjs-playlist"),r.appendChild(m)}return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src"))}};function 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?f.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;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#999;font-size:.875rem;font-weight:400}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:Lato,Helvetica,Arial,sans-serif;font-size:.933rem;font-weight:700;line-height:24px;letter-spacing:normal;color:#666;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__redHelperText--y3MVU{color:#d33d00;font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaTitle--apmXI{color:#01050e;font-size:1.333rem;font-weight:800;line-height:28px;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#4d5056;font-size:.875rem;font-weight:normal}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:"Public Sans",sans-serif;font-size:.875rem;font-weight:700;line-height:20px;letter-spacing:auto;color:#01050e;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}',"",{version:3,sources:["webpack://./src/styles/EmbedCodeModal.sass"],names:[],mappings:"AAGE,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,UAAA,CAIA,oBAAA,CACF,yJACE,UAAA,CACA,iBAAA,CACA,eAAA,CACF,wFACE,2CAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA,CAvDJ,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,aAAA,CACA,kBAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACF,yJACE,aAAA,CACA,iBAAA,CACA,kBAAA,CACF,wFACE,oCAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,mBAAA,CACA,aAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA",sourcesContent:["@import './base.sass'\n\n@include themed() using ($theme)\n .videoDetailsContainer\n margin-bottom: 27px\n .leftContent\n width: 540px\n margin-right: 43px\n .rightContent\n flex-grow: 1\n .mediaData\n margin-top: 23px\n padding: 0\n .redHelperText\n color: theme($theme, red)\n font-size: 14px\n .mediaTitle\n color: theme($theme, text-primary-dark)\n font-size: theme($theme, heading-xs-size)\n font-weight: theme($theme, heading-weight)\n line-height: theme($theme, heading-xs-line-height)\n word-break: break-all\n .text\n color: theme($theme, gray-40)\n font-size: theme($theme, body-small-text-size)\n font-weight: theme($theme, body-small-weight-normal)\n .playerSelectLabel\n font-family: theme($theme, label-font)\n font-size: theme($theme, label-font-size)\n font-weight: theme($theme, label-font-weight)\n line-height: theme($theme, label-line-height)\n letter-spacing: theme($theme, label-letter-spacing)\n color: theme($theme, label-color)\n padding: 0 0 .4rem\n .playerSelect\n width: 100%\n .getURLBtnContainer\n display: inline-flex\n .getURLBtnSpinner\n left: -5px\n position: relative\n margin-right: 8px\n .mediaId\n @extend .text\n margin-bottom: 25px\n .tooltip\n margin-left: theme($theme, padding-sm)\n .customPluginNotice\n font-size: 14px\n .playerLoader\n video-js\n width: 539px !important\n height: 303.2px !important\n margin-bottom: theme($theme, padding-sm)\n iframe\n width: 539px !important\n height: 303.2px !important\n .previewButton\n align-self: center\n\n"],sourceRoot:""}]),a.locals={videoDetailsContainer:"EmbedCodeModal__videoDetailsContainer--WP99B",leftContent:"EmbedCodeModal__leftContent--BIBZB",rightContent:"EmbedCodeModal__rightContent--BDlYZ",mediaData:"EmbedCodeModal__mediaData--f0wqn",redHelperText:"EmbedCodeModal__redHelperText--y3MVU",mediaTitle:"EmbedCodeModal__mediaTitle--apmXI",text:"EmbedCodeModal__text--ayO8f",mediaId:"EmbedCodeModal__mediaId--GymNT",playerSelectLabel:"EmbedCodeModal__playerSelectLabel--w3Ig6",playerSelect:"EmbedCodeModal__playerSelect--rvojt",getURLBtnContainer:"EmbedCodeModal__getURLBtnContainer--MIRx8",getURLBtnSpinner:"EmbedCodeModal__getURLBtnSpinner--VxbOG",tooltip:"EmbedCodeModal__tooltip--vxe8W",customPluginNotice:"EmbedCodeModal__customPluginNotice--VQKaP",playerLoader:"EmbedCodeModal__playerLoader--IgdsR",previewButton:"EmbedCodeModal__previewButton--CFh55"};const s=a},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},537:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([o]).join("\n")}return[t].join("\n")}},852:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},747:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.S});var r=n(61),i=n(755);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}})},909:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,j:()=>i});var r=console;function i(){return r}function o(e){r=e}},101:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(288),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},68:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.l))},61:(e,t,n)=>{"use strict";n.d(t,{S:()=>y});var r=n(462),i=n(288),o=n(578),a=n(101),s=n(909),u=n(216),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=(0,i.SE)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var f=(0,i.mc)(this.queryKey),p=(0,i.G9)(),d={queryKey:f,pageParam:void 0,meta:this.meta};Object.defineProperty(d,"signal",{enumerable:!0,get:function(){if(p)return a.abortSignalConsumed=!0,p.signal}});var h,g,v={fetchOptions:t,options:this.options,queryKey:f,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(d)):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==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),f=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 d=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),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 f,this.mutationCache=e.mutationCache||new d,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,f=(0,r.Z)({},u,{active:!0});return a.V.batch((function(){return l.findAll(u).forEach((function(e){e.reset()})),o.refetchQueries(f,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),f=l[0],p=l[1],d=(0,r.Z)({},f,{active:null==(o=null!=(s=f.refetchActive)?s:f.active)||o,inactive:null!=(u=f.refetchInactive)&&u});return a.V.batch((function(){return c.queryCache.findAll(f).forEach((function(e){e.invalidate()})),c.refetchQueries(d,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}}))}))})),f=Promise.all(l).then(i.ZT);return(null==c?void 0:c.throwOnError)||(f=f.catch(i.ZT)),f},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,f=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,p=null==f?void 0:f.pageParam,d="forward"===(null==f?void 0:f.direction),h="backward"===(null==f?void 0:f.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,O=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},E=function(e,t,n,r){return A=r?[t].concat(A):[].concat(A,[t]),r?[n].concat(e):[].concat(e,[n])},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=O(o),s=Promise.resolve(a).then((function(e){return E(t,r,e,i)}));return(0,u.LE)(a)&&(s.cancel=a.cancel),s};if(g.length)if(d){var S=void 0!==p,P=S?p:v(e.options,g);c=x(g,S,P)}else if(h){var j=void 0!==p,k=j?p:m(e.options,g);c=x(g,j,k,!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(E([],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(E(r,y[n],g[n]))}))},i=1;i<g.length;i++)r(i)}();else c=x([]);var R=c.then((function(e){return{pages:e,pageParams:A}}));return R.cancel=function(){w=!0,null==b||b.abort(),(0,u.LE)(c)&&c.cancel()},R}}},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,f=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 d=function(t){f.isResolved||(f.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},h=function(t){f.isResolved||(f.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!f.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!f.isResolved&&(h(new u(e)),null==f.abort||f.abort(),s(l)))try{l.cancel()}catch(e){}},f.isTransportCancelable=s(l),Promise.resolve(l).then(d).catch((function(t){var s,u;if(!f.isResolved){var l=null!=(s=e.retry)?s:3,d=null!=(u=e.retryDelay)?u:a,g="function"==typeof d?d(f.failureCount,t):d,v=!0===l||"number"==typeof l&&f.failureCount<l||"function"==typeof l&&l(f.failureCount,t);!p&&v?(f.failureCount++,null==e.onFail||e.onFail(f.failureCount,t),(0,o.Gh)(g).then((function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise((function(t){n=t,f.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,f.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){p?h(t):c()}))):h(t)}}))}}()}},943:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},755:()=>{},288:(e,t,n)=>{"use strict";n.d(t,{A4:()=>E,G9:()=>x,Gh:()=>O,I6:()=>f,Kp:()=>c,PN:()=>s,Q$:()=>y,Rm:()=>h,SE:()=>a,VS:()=>b,X7:()=>d,ZT:()=>o,_v:()=>l,_x:()=>p,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 f(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 d(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 O(e){return new Promise((function(t){setTimeout(t,e)}))}function E(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function 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:()=>d,useQuery:()=>j});var r=n(101),i=n(111),o=n.n(i)().unstable_batchedUpdates;r.V.setBatchNotifyFunction(o);var a=n(909),s=console;(0,a.E)(s);var u=n(156),c=n.n(u),l=c().createContext(void 0),f=c().createContext(!1);function p(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var d=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(f.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&&O(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,h.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(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,f=c?this.currentResult:this.previousQueryResult,p=e.state,d=p.dataUpdatedAt,h=p.error,g=p.errorUpdatedAt,m=p.isFetching,y=p.status,b=!1,C=!1;if(t.optimisticResults){var w=this.hasListeners(),x=!w&&A(e,t),S=w&&O(e,r,t,i);(x||S)&&(m=!0,d||(y="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==f?void 0:f.isSuccess)&&"error"!==y)n=f.data,d=f.dataUpdatedAt,y=f.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,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:d,error:h,errorUpdatedAt:g,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:C,isPreviousData:b,isRefetchError:"error"===y&&0!==p.dataUpdatedAt,isStale:E(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,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&&E(e,t)}return!1}function O(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&E(e,n)}function E(e,t){return e.isStaleByTime(t.staleTime)}function 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(f)));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,d,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,d=[g.error,h.getCurrentQuery()],"function"==typeof l?l.apply(void 0,d):"boolean"==typeof l?l:u))throw g.error;return"tracked"===s.notifyOnChangeProps&&(g=h.trackResult(g,s)),g}function j(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 j(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return R()}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===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:p,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 f="suspendedStart",p="suspendedYield",d="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(k([])));A&&A!==n&&r.call(A,o)&&(b=A);var w=y.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).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 j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function k(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:R}}function R(){return{value:t,done:!0}}return m.prototype=y,u(w,"constructor",y),u(y,"constructor",m),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},O(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new E(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(w),u(w,s,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(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:k(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,f="".concat(c," ").concat(l);o[c]=l+1;var p=n(f),d={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(d);else{var h=i(d,r);r.byIndex=s,t.splice(s,0,{identifier:f,updater:h,references:1})}a.push(f)}return a}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var u=r(e,i),c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=u}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},609:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},494:e=>{"use strict";e.exports=r},66:e=>{"use strict";e.exports=t},156:t=>{"use strict";t.exports=e},111:e=>{"use strict";e.exports=n},462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var s={};return(()=>{"use strict";a.r(s),a.d(s,{EmbedCodeModal:()=>fn,EmbedCodeModalTypes:()=>oe,PlayerPayload:()=>e.PlayerPayload,VideoPayload:()=>e.VideoPayload});var e={};a.r(e),a.d(e,{C:()=>oe});var t=a(156),n=a.n(t);function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(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 o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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?c(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var f,p={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},d=n().createContext();function h(){return p}var g=function(){function e(){r(this,e),this.usedNamespaces={}}return o(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 v(){return f}var m={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};p=l(l({},p),e)}(e.options.react),function(e){f=e}(e)}};function y(e){var n=e.i18n,r=e.defaultNS,i=e.children,o=(0,t.useMemo)((function(){return{i18n:n,defaultNS:r}}),[n,r]);return(0,t.createElement)(d.Provider,{value:o},i)}var b=a(66),C=a(767);function A(e){if(Array.isArray(e))return e}function w(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 O(e,t){if(e){if("string"==typeof e)return w(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)?w(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 x(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)||O(e,t)||E()}function S(){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 P={};function j(){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),S.apply(void 0,t))}function k(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 R(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 L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return j("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}}):R(e,t,n)}function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?I(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function F(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.i18n,i=(0,t.useContext)(d)||{},o=i.i18n,a=i.defaultNS,s=r||o||v();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new g),!s){j("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&&j("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=_(_(_({},h()),s.options.react),n),f=l.useSuspense,p=l.keyPrefix,m=e||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 L(e,s,l)}));function b(){return s.getFixedT(null,"fallback"===l.nsMode?m:m[0],p)}var C=(0,t.useState)(b),A=x(C,2),w=A[0],O=A[1],E=(0,t.useRef)(!0);(0,t.useEffect)((function(){var e=l.bindI18n,t=l.bindI18nStore;function n(){E.current&&O(b)}return E.current=!0,y||f||k(s,m,(function(){E.current&&O(b)})),e&&s&&s.on(e,n),t&&s&&s.store.on(t,n),function(){E.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,t.useRef)(!0);(0,t.useEffect)((function(){E.current&&!S.current&&O(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&&!f)return P;throw new Promise((function(e){k(s,m,(function(){e()}))}))}var T=a(130),N=a.n(T);function M(){return"qa"===function(){var e;return(null===(e=window.StudioModule)||void 0===e?void 0:e.config.product.env)||"production"}()}function D(){return M()?"https://bc-players-qa.s3.amazonaws.com/":"https://players.brightcove.net/"}function B(e){return e.sort((function(e,t){return e.label.localeCompare(t.label)}))}var U=function(e,t,n){return"".concat(D()).concat(e,"/").concat(n,"_default/index.html").concat(t?"?videoId=".concat(t):"")};var q=function(e,t){return"".concat(M()?"https://preview-players.qa.brightcove.net":"https://preview-players.brightcove.net","/v2/accounts/").concat(e,"/players/").concat(t,"/preview/embeds/default/master/index.html")},Q=a(379),V=a.n(Q),Z=a(795),W=a.n(Z),K=a(569),z=a.n(K),H=a(565),G=a.n(H),$=a(609),J=a.n($),Y=a(589),X=a.n(Y),ee=a(17),te={};te.styleTagTransform=X(),te.setAttributes=G(),te.insert=z().bind(null,"head"),te.domAPI=W(),te.insertStyleElement=J();V()(ee.Z,te);const ne=ee.Z&&ee.Z.locals?ee.Z.locals:void 0;function re(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 ie(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var oe,ae={responsive:!1,width:960,height:540,urlBase:D(),playlistIsHorizontal:!0},se=function(e){var r=F().t,i=x((0,t.useState)(""),2),o=i[0],a=i[1];(0,t.useEffect)((function(){var t=function(e){return Object.assign({},ie(ie({},ae),e))}(e),n=N()(t);a(n)}),[e]);var s=n().createElement(b.Flex,null,n().createElement(b.FlexItem,{flexGrow:"1",className:ne.helperText},r("tabs.helperText")));return n().createElement(n().Fragment,null,n().createElement(b.CopyField,{className:ne.copyInput,helperNode:s,Component:b.PlainTextArea,componentProps:{disabled:!0,disableResizing:!0,className:ne.textAreaDimensions,onChange:function(){}},onCopy:function(){b.Toaster.success({title:r("toasterTitle"),message:r("toasterMessage")})},onError:function(){b.Toaster.error({message:r("toasterErrorMessage")})},value:o,hideButton:!0,testName:"embed-copy-section"}))},ue=a(462);!function(e){e.PLAYER="player",e.VIDEO="video"}(oe||(oe={}));var ce=a(94),le={};le.styleTagTransform=X(),le.setAttributes=G(),le.insert=z().bind(null,"head"),le.domAPI=W(),le.insertStyleElement=J();V()(ce.Z,le);const fe=ce.Z&&ce.Z.locals?ce.Z.locals:void 0;var pe=a(494),de=a.n(pe),he="default",ge={id:he,hasCustomPlugins:!1,label:"",isCampaignPlayer:!1},ve=function(e){var r=F().t,i=x((0,t.useState)(ge),2),o=i[0],a=o.id,s=o.hasCustomPlugins,u=o.isCampaignPlayer,c=i[1],l=x((0,t.useState)(""),2),f=l[0],p=l[1];return(0,t.useEffect)((function(){a&&p(U(e.accountId,e.videoId,a))}),[a,e]),n().createElement(n().Fragment,null,n().createElement("div",{className:fe.leftContent},n().createElement(Be,{onChange:c}),n().createElement(de(),{accountId:e.accountId,playerId:a,videoId:e.videoId,baseUrl:D(),attrs:{className:fe.playerLoader},embedType:"iframe",refNode:"player-container"}),n().createElement(b.Hideable,{show:s},n().createElement("span",{className:fe.customPluginNotice},r("customPluginNotice"))),n().createElement(Ke,{prevUrl:f})),n().createElement("div",{className:fe.rightContent},n().createElement(Me,{video:e}),n().createElement(Ve,{isCampaign:u,playerId:a,videoId:e.videoId,accountId:e.accountId})))},me=["bcAa","bcAirplay","bcGa","bcGtm","bcPlaylistUi","bcTealium","bcMapPlugin","chromecastReceiver","customEndscreen","eme","ima3","kollective","overlay","pip","playlistEndscreen","qualityMenu","social","ssai","thumbnails"],ye="bcMapPlugin";function be(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 Ce(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 Ce(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 Ce(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 Ae=function(e){var r=e.id,i=e.configuration,o=e.accountId,a=void 0===o?"":o,s=F().t,u=q(a,r),c=U(a,"",r),l=(0,t.useMemo)((function(){var e=!1,t=!1,n=[];if(i){var r,o,a=be(n=null!==(r=i.plugins)&&void 0!==r?r:n);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.name;e=me.includes(u),t=t||s.name===ye}}catch(e){a.e(e)}finally{a.f()}}return{hasCustomPlugins:!e&&n.length>0,isCampaignPlayer:t}}),[i]),f=l.hasCustomPlugins,p=l.isCampaignPlayer;return n().createElement(n().Fragment,null,n().createElement("div",{className:fe.leftContent},n().createElement(de(),{accountId:a,baseUrl:D(),attrs:{className:fe.playerLoader},embedType:"iframe",refNode:"player-container",playerUrl:u}),n().createElement(b.Hideable,{show:f},n().createElement("span",{className:fe.customPluginNotice},s("customPluginNotice"))),n().createElement(Ke,{prevUrl:c})),n().createElement("div",{className:fe.rightContent},n().createElement(Ve,{isCampaign:p,playerId:r,accountId:a})))};function we(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ee=function(){return window.StudioModule.config},xe=function(){return Ee().user.currentAccount.id},Se=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(Oe(Oe({},t),(n=Ee(),{apiConfig:{publisherId:xe(),api:n.module.api}}))))},Pe=function(e){var r=e.data,i=e.type,o=void 0===i?oe.VIDEO:i,a=F().t,s=x((0,t.useState)(!1),2),u=s[0],c=s[1];(0,t.useEffect)((function(){r&&c(!0)}),[r]);var l=(0,t.useCallback)((function(){c(!1)}),[]),f=function(e,t){switch(t){case oe.VIDEO:return"videoId"in e?n().createElement(ve,e):null;case oe.PLAYER:var r=e.accountId||xe();return"id"in e&&r?n().createElement(Ae,(0,ue.Z)({},e,{accountId:r})):null;default:return console.warn("EmbedModal with ".concat(t," is not supported")),null}}(r,o);return f?n().createElement(b.Modal,{testName:"embed-modal",title:a("modalHeader"),isOpen:u,large:!0,onClose:l,buttons:n().createElement(b.Button,{text:a("closeModal"),onClick:l,testName:"close-modal-btn"})},n().createElement(b.Flex,{className:fe.videoDetailsContainer},f)):(console.warn("EmbedModal called with wrong props for type: ".concat(o)),null)};function je(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 ke(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){je(o,r,i,a,s,"next",e)}function s(e){je(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Re=a(757),Le=a.n(Re),Ie=a(946),_e=function(){var e=ke(Le().mark((function e(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Se(Ie.Xo,{}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const Fe=function(e){return(0,C.useQuery)(["players"],(function(){return _e()}),{refetchOnWindowFocus:!1,refetchOnMount:!1,enabled:e})};function Te(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 Ne(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 Ne(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 Ne(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 Me=function(e){var r=e.video,i=x((0,t.useState)(!1),2),o=i[0],a=i[1],s=(0,t.useMemo)((function(){return r?(e=r.videoName).length>60?"".concat(e.substring(0,60).trim(),"..."):e:"";var e}),[r]);return(0,t.useEffect)((function(){r&&a(s!==r.videoName)}),[r,s]),n().createElement(b.Flex,{flexDirection:"column",className:fe.mediaData},n().createElement(b.ToolTip,{placement:"top",portal:!0,block:!0,content:r.videoName,active:o,testName:"embed-video-tooltip"},n().createElement("div",{className:fe.mediaTitle},s)),n().createElement("div",{className:fe.mediaId},r.videoId))},De=function(e){var t=e.tooltipTextNew,r=e.tooltipLink,i=F().t;return n().createElement(n().Fragment,null,n().createElement("div",null,t),n().createElement("a",{href:i("learnmore"),target:"_blank",rel:"noreferrer"},r))},Be=function(e){var r=e.onChange,i=F().t,o=x((0,t.useState)(),2),a=o[0],s=o[1],u=x((0,t.useState)([]),2),c=u[0],l=u[1],f=x((0,t.useState)(),2),p=f[0],d=f[1],h=Fe(!0),g=h.isLoading,v=h.data;(0,t.useEffect)((function(){var e;if(!g&&v&&(null!==(e=null==v?void 0:v.items.length)&&void 0!==e?e:0)>0){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ye,n=[],r={};return null==e||e.items.forEach((function(e){var i,o,a=null!==(i=e.branches.master.configuration.plugins)&&void 0!==i?i:[],s=!!a&&a.length>0,u=!1,c=!1,l=Te(a);try{for(l.s();!(o=l.n()).done;){var f=o.value,p=f.name;u=me.includes(p),c=c||f.name===t}}catch(e){l.e(e)}finally{l.f()}n.push({label:e.name,value:e.id}),r[e.id]={label:e.name,id:e.id,hasCustomPlugins:!u&&s,isCampaignPlayer:c}})),{players:r,playerListForSelection:B(n)}}(v),n=t.playerListForSelection,r=t.players;l(n),d(r)}}),[g,v]);var m=(0,t.useCallback)((function(e){if(p){var t=p[e];s(t),r&&r(t)}}),[p,r]);return n().createElement(n().Fragment,null,n().createElement(b.Flex,null,n().createElement("div",{className:fe.playerSelectLabel},i("player")),n().createElement(b.ToolTip,{content:n().createElement(De,{tooltipLink:i("tooltipLink"),tooltipTextNew:i("tooltipTextNew")}),placement:"top",className:fe.tooltip,reflow:!1,testName:"embed-player-tooltip"})),n().createElement(b.Hideable,{show:c.length>0},n().createElement(b.Select,{value:(null==a?void 0:a.id)||he,options:c,inputClassName:fe.playerSelect,onChange:m,testName:"embed-player-select"})))},Ue=function(e){var t=e.currentTab,r=e.handleTabChange,i=e.iframeLabel,o=e.jsLabel;return n().createElement(b.Flex,{justifyContent:"space-between",alignItems:"baseline"},n().createElement(b.Tabs,{selectedId:t,onSelect:r},n().createElement(b.TabList,null,n().createElement(b.Tab,{tabId:"iframe",testName:"iframe-tab"},i),n().createElement(b.Tab,{tabId:"javascript",testName:"js-tab"},o))))};function qe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Qe=["isCampaign"],Ve=function(e){var r=e.isCampaign,i=qe(e,Qe),o=F().t,a=x((0,t.useState)("iframe"),2),s=a[0],u=a[1],c="iframe"===s;return n().createElement(n().Fragment,null,n().createElement(Ue,{currentTab:s,handleTabChange:function(e){return u(e)},jsLabel:o("tabs.labels.javascript"),iframeLabel:o("tabs.labels.iframe")}),n().createElement(b.TabPanel,{testName:"embed-tab-content",render:function(){return r&&c?n().createElement("span",{className:fe.redHelperText},o("tabs.helperTextWarning")):n().createElement(se,(0,ue.Z)({iframe:c},i))}}))},Ze=a(826),We=function(){var e=ke(Le().mark((function e(t){var n;return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.longUrl,e.abrupt("return",Se(Ze.P,{longUrl:n}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ke=function(e){var r=e.prevUrl,i=F().t,o=x((0,t.useState)(!1),2),a=o[0],s=o[1],u=(0,t.useCallback)(function(){var e=ke(Le().mark((function e(t){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s(!0),ze(t).then((function(){b.Toaster.success({title:i("toasterTitle"),message:i("toasterGetURLSuccess")})})).catch((function(){b.Toaster.error({message:i("toasterGetURLError")})})).finally((function(){return s(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[i]);return n().createElement("div",null,n().createElement("div",{className:fe.getURLBtnContainer},n().createElement(b.Button,{look:"tertiary",text:i("getURL"),testName:"get-url-btn",icon:a?"":"link",iconRight:!0,onClick:function(){return u(r)}}),a&&n().createElement(b.Loader,{className:fe.getURLBtnSpinner,size:"inline",color:"navy"})),n().createElement(b.Button,{look:"tertiary",text:i("previewButton"),testName:"preview-player-btn",icon:"external_link",iconRight:!0,onClick:function(){window.open(r,"_blank")}}))},ze=function(){var e=ke(Le().mark((function e(t){var n,r;return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=encodeURI(t),e.prev=1,e.abrupt("return",navigator.clipboard.write([new ClipboardItem({"text/plain":new Promise(function(){var e=ke(Le().mark((function e(t){var r;return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,We({longUrl:n});case 2:r=e.sent,t(new Blob([r],{type:"text/plain"}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})]));case 5:return e.prev=5,e.t0=e.catch(1),e.next=9,We({longUrl:n});case 9:return r=e.sent,e.abrupt("return",navigator.clipboard.writeText(r));case 11:case"end":return e.stop()}}),e,null,[[1,5]])})));return function(t){return e.apply(this,arguments)}}();function He(e){return He="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},He(e)}function Ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var $e=a(611);function Je(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,$e.Z)(e,t)}function Ye(e,t){if(t&&("object"===He(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ge(e)}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function et(e){return A(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||O(e)||E()}function tt(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 nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rt={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)}},it=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.init(t,n)}return o(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||rt,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,nt(nt({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}(),ot=new it,at=function(){function e(){r(this,e),this.observers={}}return o(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 st(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function ut(e){return null==e?"":""+e}function ct(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function lt(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 ft(e,t,n){var r=lt(e,t,Object);r.obj[r.k]=n}function pt(e,t){var n=lt(e,t),r=n.obj,i=n.k;if(r)return r[i]}function dt(e,t,n){var r=pt(e,n);return void 0!==r?r:pt(t,n)}function ht(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]):ht(e[r],t[r],n):e[r]=t[r]);return e}function gt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var vt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function mt(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return vt[e]})):e}var yt="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,bt=[" ",",","?","!",";"];function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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=Xe(e);if(t){var i=Xe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ot(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?Ot(u,c,n):void 0}i=i[r[o]]}return i}}var Et=function(e){Je(n,e);var t=wt(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return r(this,n),i=t.call(this),yt&&at.call(Ge(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 o(n,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=pt(this.data,a);return s||!o||"string"!=typeof n?s:Ot(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),ft(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=pt(this.data,a)||{};r?ht(s,n,i):s=At(At({},s),n),ft(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?At(At({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(at),xt={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 St(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 Pt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?St(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):St(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(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=Xe(e);if(t){var i=Xe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ye(this,n)}}var kt={},Rt=function(e){Je(n,e);var t=jt(n);function n(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return r(this,n),i=t.call(this),yt&&at.call(Ge(i)),ct(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Ge(i)),i.options=o,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=ot.create("translator"),i}return o(n,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};if(null==e)return!1;var n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=bt.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==He(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],f=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(f&&"cimode"===f.toLowerCase()){if(p){var d=t.nsSeparator||this.options.nsSeparator;return o?(h.res="".concat(l).concat(d).concat(u),h):"".concat(l).concat(d).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 O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,Pt(Pt({},t),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(h.res=O,h):O}if(a){var E="[object Array]"===y,x=E?[]:{},S=E?m:v;for(var P in g)if(Object.prototype.hasOwnProperty.call(g,P)){var j="".concat(S).concat(a).concat(P);x[P]=this.translate(j,Pt(Pt({},t),{joinArrays:!1,ns:c})),x[P]===j&&(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,r));else{var k=!1,R=!1,L=void 0!==t.count&&"string"!=typeof t.count,I=n.hasDefaultValue(t),_=L?this.pluralResolver.getSuffix(f,t.count,t):"",F=t["defaultValue".concat(_)]||t.defaultValue;!this.isValidLookup(g)&&I&&(k=!0,g=F),this.isValidLookup(g)||(R=!0,g=u);var T=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,N=T&&R?void 0:g,M=I&&F!==g&&this.options.updateMissing;if(R||k||M){if(this.logger.log(M?"updateKey":"missingKey",f,l,u,M?F:g),a){var D=this.resolve(u,Pt(Pt({},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 Q=function(e,n,r){var o=I&&r!==g?r:N;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&&L?B.forEach((function(e){i.pluralResolver.getSuffixes(e,t).forEach((function(n){Q([e],u+n,t["defaultValue".concat(n)]||F)}))})):Q(B,u,F))}g=this.extendTranslation(g,e,t,h,r),R&&g===u&&this.options.appendNamespaceToMissingKey&&(g="".concat(l,":").concat(u)),(R||k)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(u,k?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,Pt(Pt({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Pt(Pt({},n),{interpolation:Pt(Pt({},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=Pt(Pt({},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 f=n.postProcess||this.options.postProcess,p="string"==typeof f?[f]:f;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=xt.handle(p,e,t,this.options&&this.options.postProcessPassResolved?Pt({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 f=void 0!==s.count&&"string"!=typeof s.count,p=f&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),d=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,!kt["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(kt["".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;f&&(l=a.pluralResolver.getSuffix(n,s.count,s));var h="_zero";if(f&&(u.push(c+l),p&&u.push(c+h)),d){var g="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(g),f&&(u.push(g+l),p&&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}}]),n}(at);function Lt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var It=function(){function e(t){r(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ot.create("languageUtils")}return o(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]=Lt(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]=Lt(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Lt(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}(),_t=[{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}],Ft={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)}},Tt=["v1","v2","v3"],Nt={zero:0,one:1,two:2,few:3,many:4,other:5};function Mt(){var e={};return _t.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Ft[t.fc]}}))})),e}var Dt=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.languageUtils=t,this.options=n,this.logger=ot.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=Mt()}return o(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 Nt[e]-Nt[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!Tt.includes(this.options.compatibilityJSON)}}]),e}();function Bt(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 Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.logger=ot.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return o(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:mt,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?gt(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?gt(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?gt(t.nestingPrefix):t.nestingPrefixEscaped||gt("$t("),this.nestingSuffix=t.nestingSuffix?gt(t.nestingSuffix):t.nestingSuffixEscaped||gt(")"),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=dt(t,u,e);return s.alwaysFormat?s.format(i,void 0,n,Ut(Ut(Ut({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(dt(t,u,a),c,n,Ut(Ut(Ut({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var f=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 f){var u=f(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=ut(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=Ut({},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=Ut(Ut({},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=ut(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,Ut(Ut({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Qt(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 Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r(this,e),this.logger=ot.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,Vt(Vt({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,Vt({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,Vt({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,Vt({},n)).format(e)}},this.init(t)}return o(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var i=this;return t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=et(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,Vt(Vt(Vt({},s),r),c))}catch(e){i.logger.warn(e)}return u}return i.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(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=Xe(e);if(t){var i=Xe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ye(this,n)}}var Ht=function(e){Je(n,e);var t=zt(n);function n(e,i,o){var a,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return r(this,n),a=t.call(this),yt&&at.call(Ge(a)),a.backend=e,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=ot.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 o(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},u={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===u[t]&&(u[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,u,c,l,f;r=n.loaded,s=o,c=lt(r,[i],Object),l=c.obj,f=c.k,l[f]=l[f]||[],u&&(l[f]=l[f].concat(s)),u||l[f].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,Kt(Kt({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(at);function Gt(){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"===He(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===He(e[2])||"object"===He(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 $t(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 Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xt(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=Xe(e);if(t){var i=Xe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ye(this,n)}}function en(){}function tn(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var nn=function(e){Je(n,e);var t=Xt(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(r(this,n),e=t.call(this),yt&&at.call(Ge(e)),e.options=$t(i),e.services={},e.logger=ot,e.modules={external:[]},tn(Ge(e)),o&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,o),Ye(e,Ge(e));setTimeout((function(){e.init(i,o)}),0)}return e}return o(n,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;"function"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=Gt();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=Yt(Yt(Yt({},r),this.options),$t(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Yt(Yt({},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?ot.init(i(this.modules.logger),this.options):ot.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=Zt);var a=new It(this.options);this.store=new Et(this.options.resources,this.options);var s=this.services;s.logger=ot,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Dt(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 qt(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Ht(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 Rt(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 f=st(),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),f.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),f}},{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=st();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&&xt.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=st();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"!==He(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=Yt({},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=st();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=st();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:en,i=Yt(Yt(Yt({},this.options),t),{isClone:!0}),o=new n(i),a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=Yt({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Rt(o.services,o.options),o.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(at);u(nn,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new nn(e,t)}));var rn=nn.createInstance();rn.createInstance=nn.createInstance;rn.createInstance,rn.init,rn.loadResources,rn.reloadResources,rn.use,rn.changeLanguage,rn.getFixedT,rn.t,rn.exists,rn.setDefaultNamespace,rn.hasLoadedNamespace,rn.loadNamespaces,rn.loadLanguages;const on=rn;var an,sn,un={en:{translation:JSON.parse('{"modalHeader":"Embed on website","mediaNotice":"Will use your account’s default player","tooltipText":"Currently using the Brightcove Default Player. Player management coming soon.","tooltipTextNew":"Players determine the video playback experience such as styling, special configuration settings, and more.","tooltipLink":"Learn more about players","learnmore":"https://studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Preview","player":"Player","getURL":"Get URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copy the HTML code and paste it on your website.","helperTextWarning":"This player is configured with the Campaign plugin. To ensure proper tracking, the JavaScript embed code should be used."},"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","learnmore":"https://es.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Vista previa","player":"Reproductor","getURL":"Obtener URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copie el código HTML y péguelo en su sitio web.","helperTextWarning":"Este reproductor está configurado con el complemento Campaign. Para garantizar un seguimiento adecuado, debe utilizarse el código de incrustación JavaScript."},"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","learnmore":"https://fr.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Aperçu","player":"Player","getURL":"Obtenir l\'URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copiez le code HTML et collez-le dans votre site Internet.","helperTextWarning":"Ce joueur est configuré avec le plug-in Campaign. Pour garantir un suivi adéquat, le code incorporé JavaScript doit être utilisé."},"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":"プレーヤーについての詳細","learnmore":"https://ja.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"プレビュー","player":"プレーヤー","getURL":"URLを取得する","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTMLコードをコピーし、お客様のWebサイトに貼り付けてください。","helperTextWarning":"このプレーヤーは、キャンペーンプラグインを使って構成されています。適切にトラッキングするには、 JavaScript埋め込みコードを使用してください。"},"closeModal":"完了","toasterTitle":"成功。","toasterMessage":"コードをクリップボードにコピーしました","toasterGetURLSuccess":"URLをクリップボードにコピーしました","toasterGetURLError":"URLを生成できません","toasterErrorMessage":"テキストをクリップボードにコピー中にエラーが発生しました","customPluginNotice":"カスタム設定により、プレビューが完全でない場合があります。"}')},ko:{translation:JSON.parse('{"modalHeader":"웹사이트에 임베드","mediaNotice":"계정의 기본 플레이어를 사용합니다","tooltipText":"현재 Brightcove 기본 플레이어 사용 중입니다. 플레이어 관리가 곧 출시됩니다.","tooltipTextNew":"플레이어는 스타일 지정, 특수 구성 설정 등 비디오 재생 경험을 결정합니다.","tooltipLink":"플레이어에 대해 자세히 알아보기","learnmore":"https://ko.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"미리 보기","player":"플레이어","getURL":"URL 받기","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTML 코드를 복사하여 웹사이트에 붙여넣으십시오.","helperTextWarning":"이 플레이어는 캠페인 플러그인과 함께 구성됩니다. 바르게 추적되게 하려면, JavaScript 내장 코드를 사용해야 합니다."},"closeModal":"완료","toasterTitle":"성공.","toasterMessage":"클립보드에 코드가 복사됨","toasterGetURLSuccess":"URL이 클립보드에 복사됨","toasterGetURLError":"URL 생성 불가","toasterErrorMessage":"클립보드에 텍스트를 복사하는 중 오류 발생","customPluginNotice":"사용자 정의 구성으로 인해 전체 미리 보기를 이용하지 못할 수도 있습니다."}')},zh:{translation:JSON.parse('{"modalHeader":"內嵌到網站","mediaNotice":"會使用您帳戶的預設播放程式","tooltipText":"目前使用 Brightcove 預設播放程式。播放程式管理功能即將推出。","tooltipTextNew":"播放器決定視訊播放體驗,例如樣式風格、特別組態設定等。","tooltipLink":"瞭解關於播放程式的更多資訊","learnmore":"https://zh-tw.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"預覽","player":"播放程式","getURL":"取得 URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"複製 HTML 程式碼並貼到您的網站上。","helperTextWarning":"此播放程式設定有活動外掛程式。為了確保正確追蹤,應使用 JavaScript 內嵌程式碼。"},"closeModal":"完成","toasterTitle":"成功.","toasterMessage":"程式碼已複製到剪貼簿","toasterGetURLSuccess":"URL 已複製到剪貼簿","toasterGetURLError":"無法產生 URL","toasterErrorMessage":"複製文字到剪貼簿時發生錯誤","customPluginNotice":"由於自訂組態,您可能無法體驗完整預覽版。"}')}};on.use(m).init({lng:(null===(an=window.StudioModule)||void 0===an||null===(sn=an.config)||void 0===sn?void 0:sn.lang)||"en",fallbackLng:"en",debug:!0,returnObjects:!0,resources:un,interpolation:{escapeValue:!1}});const cn=on;(0,b.initialize)({theme:"blueSteel"});var ln=new C.QueryClient;const fn=function(e){var r=e.data,i=e.language,o=e.type;return(0,t.useEffect)((function(){cn.changeLanguage(i||window.StudioModule.config.lang)}),[i]),r?n().createElement(C.QueryClientProvider,{client:ln},n().createElement(y,{i18n:cn},n().createElement(Pe,{data:r,language:i,type:o}))):null}})(),s})()));
|
|
3
|
+
var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=["catalogSearch","catalogSequence"],o=["adConfigId","applicationId","catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId","interactivityProjectId"],a=function(e){return Object.keys(e).filter((function(e){return-1!==o.indexOf(e)})).reduce((function(t,n){var r=function(e,t){if(e&&void 0!==e[t]){if("string"!=typeof e[t]&&-1!==i.indexOf(t))try{return encodeURIComponent(JSON.stringify(e[t]))}catch(e){return}return encodeURIComponent(String(e[t]).trim())||void 0}}(e,n);return void 0!==r&&(t+=t?"&":"?",t+=encodeURIComponent(n)+"="+r),t}),"")},s=function(e){var t=e.accountId,n=e.base,i=void 0===n?"https://players.brightcove.net":n,o=e.playerId,s=void 0===o?"default":o,u=e.embedId,c=void 0===u?"default":u,l=e.iframe,d=void 0!==l&&l,p=e.minified,f=void 0===p||p,h=e.queryParams,g=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 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,playlistIsHorizontal:!0,formatter:function(e){return e},width:960,height:540,units:"px",responsive:!0,applicationId:"",allowFullscreen:!0,allowEncryptedMedia:!0,pictureInPicture:!1,responsiveHeight:"56.25%"};function l(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.responsive&&!t.width&&(n.width=100,n.units="%"),n}var d={createIframeEmbedCode:function(e,t){t=l(c,t);var n,r=e.createElement("div"),i=e.createElement("iframe");if(t.preview)n=(t.urlBase?t.urlBase:"//preview-players.brightcove.net")+"/v2/accounts/"+t.accountId+"/players/"+t.playerId+"/preview/embeds/"+t.embedId+"/master/index.html",t.videoId&&(n+="?videoId="+t.videoId),t.interactivityProjectId&&(n+="?interactivityProjectId="+t.interactivityProjectId);else{var o={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,iframe:!0,minified:t.minified,queryParams:{videoId:t.videoId,playlistId:t.playlistId,interactivityProjectId:t.interactivityProjectId,adConfigId:t.adConfigId,applicationId:t.applicationId,catalogSearch:t.catalogSearch,catalogSequence:t.catalogSequence}};t.urlBase&&(o.base=t.urlBase),n=u(o)}if(t.returnDomElement?i.setAttribute("src",n):i.setAttribute("fzrsbrxzyeajgdaxuxqu",n),t.allowFullscreen&&i.setAttribute("allowfullscreen",""),t.allowEncryptedMedia&&i.setAttribute("allow","encrypted-media"),t.responsive){var a=e.createElement("div"),s=e.createElement("div");a.setAttribute("style","position: relative; display: block; max-width: ".concat(t.width).concat(t.units,";")),s.setAttribute("style","padding-top: ".concat(t.responsiveHeight,";")),i.setAttribute("style","position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%;"),r.appendChild(a),a.appendChild(s),s.appendChild(i)}else"px"!==t.units?i.setAttribute("style","width: ".concat(t.width).concat(t.units,"; height: ").concat(t.height).concat(t.units,";")):(i.setAttribute("width",t.width),i.setAttribute("height",t.height)),r.appendChild(i);return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src")).replace("&","&")}},p=n(0),f=n.n(p);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var 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"),i=e.createElement("div");if(t.playerVersion&&f.a.gt("6.11.0",t.playerVersion)?(n=e.createElement("video")).classList.add("video-js"):n=e.createElement("video-js"),n.setAttribute("data-account",t.accountId),n.setAttribute("data-player",t.playerId),n.setAttribute("data-embed",t.embedId),n.setAttribute("controls",""),void 0!==t.videoId&&n.setAttribute("data-video-id",t.videoId),void 0!==t.playlistId&&n.setAttribute("data-playlist-id",t.playlistId),void 0!==t.interactivityProjectId&&n.setAttribute("data-interactivity-project-id",t.interactivityProjectId),void 0!==t.adConfigId&&n.setAttribute("data-ad-config-id",t.adConfigId),void 0!==t.applicationId&&n.setAttribute("data-application-id",t.applicationId),void 0!==t.catalogSearch&&("object"===h(t.catalogSearch)?n.setAttribute("data-catalog-search",JSON.stringify(t.catalogSearch)):n.setAttribute("data-catalog-search",String(t.catalogSearch))),void 0!==t.catalogSequence&&n.setAttribute("data-catalog-sequence",JSON.stringify(t.catalogSequence)),void 0!==t.audience&&"object"===h(t.audience)&&(void 0!==t.audience.integration&&n.setAttribute("data-bc-integrationid",t.audience.integration),void 0!==t.audience.leadForm&&n.setAttribute("data-bc-leadformid",t.audience.leadForm)),t.responsive){var o=e.createElement("style");o.innerHTML="video-js.video-js.vjs-fluid:not(.vjs-audio-only-mode) {padding-top: ".concat(t.responsiveHeight,";}");var a="max-width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",a),i.appendChild(o)}else{var s="width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",s),n.setAttribute("width",t.width),n.setAttribute("height",t.height)}if(n.classList.add("vjs-fluid"),i.appendChild(n),r.appendChild(i),t.pictureInPicture){var d=e.createElement("div");d.classList.add("vjs-pip-container"),d.appendChild(r.firstChild),r.appendChild(d)}if(t.playlistElement)if(t.playlistIsHorizontal){var p=e.createElement("div");p.setAttribute("class","vjs-playlist"),i.appendChild(p)}else i.classList.add("vjs-playlist-player-container");if(t.includeScriptElement){var g=e.createElement("script"),v={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,minified:t.minified};t.urlBase&&(v.base=t.urlBase),t.returnDomElement?g.setAttribute("src",u(v)):g.setAttribute("fzrsbrxzyeajgdaxuxqu",u(v)),r.appendChild(g)}if(t.legacyPlaylistElement&&!t.playlistElement){var m=e.createElement("ol");m.setAttribute("class","vjs-playlist"),r.appendChild(m)}return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src"))}};function 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;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#999;font-size:.875rem;font-weight:400}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:Lato,Helvetica,Arial,sans-serif;font-size:.933rem;font-weight:700;line-height:24px;letter-spacing:normal;color:#666;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__redHelperText--y3MVU{color:#d33d00;font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaTitle--apmXI{color:#01050e;font-size:1.333rem;font-weight:800;line-height:28px;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#4d5056;font-size:.875rem;font-weight:normal}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:"Public Sans",sans-serif;font-size:.875rem;font-weight:700;line-height:20px;letter-spacing:auto;color:#01050e;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}',"",{version:3,sources:["webpack://./src/styles/EmbedCodeModal.sass"],names:[],mappings:"AAGE,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,UAAA,CAIA,oBAAA,CACF,yJACE,UAAA,CACA,iBAAA,CACA,eAAA,CACF,wFACE,2CAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA,CAvDJ,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,aAAA,CACA,kBAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACF,yJACE,aAAA,CACA,iBAAA,CACA,kBAAA,CACF,wFACE,oCAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,mBAAA,CACA,aAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA",sourcesContent:["@import './base.sass'\n\n@include themed() using ($theme)\n .videoDetailsContainer\n margin-bottom: 27px\n .leftContent\n width: 540px\n margin-right: 43px\n .rightContent\n flex-grow: 1\n .mediaData\n margin-top: 23px\n padding: 0\n .redHelperText\n color: theme($theme, red)\n font-size: 14px\n .mediaTitle\n color: theme($theme, text-primary-dark)\n font-size: theme($theme, heading-xs-size)\n font-weight: theme($theme, heading-weight)\n line-height: theme($theme, heading-xs-line-height)\n word-break: break-all\n .text\n color: theme($theme, gray-40)\n font-size: theme($theme, body-small-text-size)\n font-weight: theme($theme, body-small-weight-normal)\n .playerSelectLabel\n font-family: theme($theme, label-font)\n font-size: theme($theme, label-font-size)\n font-weight: theme($theme, label-font-weight)\n line-height: theme($theme, label-line-height)\n letter-spacing: theme($theme, label-letter-spacing)\n color: theme($theme, label-color)\n padding: 0 0 .4rem\n .playerSelect\n width: 100%\n .getURLBtnContainer\n display: inline-flex\n .getURLBtnSpinner\n left: -5px\n position: relative\n margin-right: 8px\n .mediaId\n @extend .text\n margin-bottom: 25px\n .tooltip\n margin-left: theme($theme, padding-sm)\n .customPluginNotice\n font-size: 14px\n .playerLoader\n video-js\n width: 539px !important\n height: 303.2px !important\n margin-bottom: theme($theme, padding-sm)\n iframe\n width: 539px !important\n height: 303.2px !important\n .previewButton\n align-self: center\n\n"],sourceRoot:""}]),a.locals={videoDetailsContainer:"EmbedCodeModal__videoDetailsContainer--WP99B",leftContent:"EmbedCodeModal__leftContent--BIBZB",rightContent:"EmbedCodeModal__rightContent--BDlYZ",mediaData:"EmbedCodeModal__mediaData--f0wqn",redHelperText:"EmbedCodeModal__redHelperText--y3MVU",mediaTitle:"EmbedCodeModal__mediaTitle--apmXI",text:"EmbedCodeModal__text--ayO8f",mediaId:"EmbedCodeModal__mediaId--GymNT",playerSelectLabel:"EmbedCodeModal__playerSelectLabel--w3Ig6",playerSelect:"EmbedCodeModal__playerSelect--rvojt",getURLBtnContainer:"EmbedCodeModal__getURLBtnContainer--MIRx8",getURLBtnSpinner:"EmbedCodeModal__getURLBtnSpinner--VxbOG",tooltip:"EmbedCodeModal__tooltip--vxe8W",customPluginNotice:"EmbedCodeModal__customPluginNotice--VQKaP",playerLoader:"EmbedCodeModal__playerLoader--IgdsR",previewButton:"EmbedCodeModal__previewButton--CFh55"};const s=a},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},537:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([o]).join("\n")}return[t].join("\n")}},852:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},747:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.S});var r=n(61),i=n(755);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}})},909:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,j:()=>i});var r=console;function i(){return r}function o(e){r=e}},101:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(288),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},68:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.l))},61:(e,t,n)=>{"use strict";n.d(t,{S:()=>y});var r=n(462),i=n(288),o=n(578),a=n(101),s=n(909),u=n(216),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=(0,i.SE)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var d=(0,i.mc)(this.queryKey),p=(0,i.G9)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(p)return a.abortSignalConsumed=!0,p.signal}});var h,g,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==(g=v.fetchOptions)?void 0:g.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),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 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()&&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],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),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,O=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},E=function(e,t,n,r){return A=r?[t].concat(A):[].concat(A,[t]),r?[n].concat(e):[].concat(e,[n])},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=O(o),s=Promise.resolve(a).then((function(e){return E(t,r,e,i)}));return(0,u.LE)(a)&&(s.cancel=a.cancel),s};if(g.length)if(f){var P=void 0!==p,S=P?p:v(e.options,g);c=x(g,P,S)}else if(h){var j=void 0!==p,k=j?p:m(e.options,g);c=x(g,j,k,!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(E([],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(E(r,y[n],g[n]))}))},i=1;i<g.length;i++)r(i)}();else c=x([]);var I=c.then((function(e){return{pages:e,pageParams:A}}));return I.cancel=function(){w=!0,null==b||b.abort(),(0,u.LE)(c)&&c.cancel()},I}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this,t=a.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,i.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,i.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},216:(e,t,n)=>{"use strict";n.d(t,{DV:()=>c,LE:()=>s,m4:()=>l});var r=n(852),i=n(68),o=n(288);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,d=this,p=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){p=!0},this.continueRetry=function(){p=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},h=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!d.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!d.isResolved&&(h(new u(e)),null==d.abort||d.abort(),s(l)))try{l.cancel()}catch(e){}},d.isTransportCancelable=s(l),Promise.resolve(l).then(f).catch((function(t){var s,u;if(!d.isResolved){var l=null!=(s=e.retry)?s:3,f=null!=(u=e.retryDelay)?u:a,g="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)(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(){p?h(t):c()}))):h(t)}}))}}()}},943:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},755:()=>{},288:(e,t,n)=>{"use strict";n.d(t,{A4:()=>E,G9:()=>x,Gh:()=>O,I6:()=>d,Kp:()=>c,PN:()=>s,Q$:()=>y,Rm:()=>h,SE:()=>a,VS:()=>b,X7:()=>f,ZT:()=>o,_v:()=>l,_x:()=>p,mc:()=>u,sk:()=>i,to:()=>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 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(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 O(e){return new Promise((function(t){setTimeout(t,e)}))}function E(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function 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:()=>j});var r=n(101),i=n(111),o=n.n(i)().unstable_batchedUpdates;r.V.setBatchNotifyFunction(o);var a=n(909),s=console;(0,a.E)(s);var u=n(156),c=n.n(u),l=c().createContext(void 0),d=c().createContext(!1);function p(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var f=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;c().useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var o=p(r);return c().createElement(d.Provider,{value:r},c().createElement(o.Provider,{value:t},i))},h=n(462),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&&O(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,h.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(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,p=e.state,f=p.dataUpdatedAt,h=p.error,g=p.errorUpdatedAt,m=p.isFetching,y=p.status,b=!1,C=!1;if(t.optimisticResults){var w=this.hasListeners(),x=!w&&A(e,t),P=w&&O(e,r,t,i);(x||P)&&(m=!0,f||(y="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)n=d.data,f=d.dataUpdatedAt,y=d.status,b=!0;else if(t.select&&void 0!==p.data)if(o&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),!1!==t.structuralSharing&&(n=(0,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 S;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))S=o.data;else if(S="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==S)try{S=t.select(S),!1!==t.structuralSharing&&(S=(0,v.Q$)(null==o?void 0:o.data,S)),this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}void 0!==S&&(y="success",n=S,C=!0)}return this.selectError&&(h=this.selectError,n=this.selectResult,g=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:g,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:C,isPreviousData:b,isRefetchError:"error"===y&&0!==p.dataUpdatedAt,isStale:E(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,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&&E(e,t)}return!1}function O(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&E(e,n)}function E(e,t){return e.isStaleByTime(t.staleTime)}function x(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var P=c().createContext(x());function S(e,t){var n=c().useRef(!1),i=c().useState(0)[1],o=function(){var e=c().useContext(p(c().useContext(d)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e}(),a=c().useContext(P),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],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,f=[g.error,h.getCurrentQuery()],"function"==typeof l?l.apply(void 0,f):"boolean"==typeof l?l:u))throw g.error;return"tracked"===s.notifyOnChangeProps&&(g=h.trackResult(g,s)),g}function j(e,t,n){return S((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 j(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=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=f;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:p,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",p="suspendedYield",f="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(k([])));A&&A!==n&&r.call(A,o)&&(b=A);var w=y.prototype=v.prototype=Object.create(b);function O(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function 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 P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function k(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:I}}function I(){return{value:t,done:!0}}return m.prototype=y,u(w,"constructor",y),u(y,"constructor",m),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},O(E.prototype),u(E.prototype,a,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new E(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},O(w),u(w,s,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=k,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,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),S(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;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:k(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),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 p=n(d),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=i(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var u=r(e,i),c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=u}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},609:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},494:e=>{"use strict";e.exports=r},66:e=>{"use strict";e.exports=t},156:t=>{"use strict";t.exports=e},111:e=>{"use strict";e.exports=n},462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={id:e,exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nc=void 0;var s={};return(()=>{"use strict";a.r(s),a.d(s,{EmbedCodeModal:()=>dn,EmbedCodeModalTypes:()=>ie});var e=a(156),t=a.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 o(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){o(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 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)(p.Provider,{value:o},i)}var y=a(66),b=a(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 O(){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 E(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)||O()}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 P={};function S(){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 I(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return S("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):k(e,t,n)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(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||g();if(s&&!s.reportNamespaces&&(s.reportNamespaces=new h),!s){S("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&&S("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var l=L(L(L({},f()),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 I(e,s,l)}));function b(){return s.getFixedT(null,"fallback"===l.nsMode?m:m[0],v)}var C=(0,e.useState)(b),A=E(C,2),w=A[0],O=A[1],x=(0,e.useRef)(!0);(0,e.useEffect)((function(){var e=l.bindI18n,t=l.bindI18nStore;function n(){x.current&&O(b)}return x.current=!0,y||d||j(s,m,(function(){x.current&&O(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 P=(0,e.useRef)(!0);(0,e.useEffect)((function(){x.current&&!P.current&&O(b),P.current=!1}),[s]);var k=[w,s,y];if(k.t=w,k.i18n=s,k.ready=y,y)return k;if(!y&&!d)return k;throw new Promise((function(e){j(s,m,(function(){e()}))}))}var T=a(130),F=a.n(T);function N(){return"qa"===function(){var e;return(null===(e=window.StudioModule)||void 0===e?void 0:e.config.product.env)||"production"}()}function M(){return N()?"https://bc-players-qa.s3.amazonaws.com/":"https://players.brightcove.net/"}function D(e){return e.sort((function(e,t){return e.label.localeCompare(t.label)}))}var B=function(e){var t=e.accountId,n=e.videoId,r=e.interactivityProjectId,i=e.playerId;return"".concat(M()).concat(t,"/").concat(i,"_default/index.html").concat(r?"?interactivityProjectId=".concat(r):n?"?videoId=".concat(n):"")};var U=function(e,t){return"".concat(N()?"https://preview-players.qa.brightcove.net":"https://preview-players.brightcove.net","/v2/accounts/").concat(e,"/players/").concat(t,"/preview/embeds/default/master/index.html")},q=a(379),Q=a.n(q),V=a(795),Z=a.n(V),W=a(569),K=a.n(W),z=a(565),H=a.n(z),G=a(609),$=a.n(G),J=a(589),Y=a.n(J),X=a(17),ee={};ee.styleTagTransform=Y(),ee.setAttributes=H(),ee.insert=K().bind(null,"head"),ee.domAPI=Z(),ee.insertStyleElement=$();Q()(X.Z,ee);const te=X.Z&&X.Z.locals?X.Z.locals:void 0;function ne(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 re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ne(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ne(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ie,oe={responsive:!1,width:960,height:540,urlBase:M(),playlistIsHorizontal:!0},ae=function(n){var r=_().t,i=E((0,e.useState)(""),2),o=i[0],a=i[1];(0,e.useEffect)((function(){var e=function(e){return Object.assign({},re(re({},oe),e))}(n),t=F()(e);a(t)}),[n]);var s=t().createElement(y.Flex,null,t().createElement(y.FlexItem,{flexGrow:"1",className:te.helperText},r("tabs.helperText")));return t().createElement(t().Fragment,null,t().createElement(y.CopyField,{className:te.copyInput,helperNode:s,Component:y.PlainTextArea,componentProps:{disabled:!0,disableResizing:!0,className:te.textAreaDimensions,onChange:function(){}},onCopy:function(){y.Toaster.success({title:r("toasterTitle"),message:r("toasterMessage")})},onError:function(){y.Toaster.error({message:r("toasterErrorMessage")})},value:o,hideButton:!0,testName:"embed-copy-section"}))},se=a(462);!function(e){e.PLAYER="player",e.VIDEO="video",e.PROJECT="project"}(ie||(ie={}));var ue=a(94),ce={};ce.styleTagTransform=Y(),ce.setAttributes=H(),ce.insert=K().bind(null,"head"),ce.domAPI=Z(),ce.insertStyleElement=$();Q()(ue.Z,ce);const le=ue.Z&&ue.Z.locals?ue.Z.locals:void 0;var de=a(494),pe=a.n(de),fe="default",he={id:fe,hasCustomPlugins:!1,label:"",isCampaignPlayer:!1},ge=function(n){var r=n.video,i=n.embedCodeModalType,o=_().t,a=E((0,e.useState)(he),2),s=a[0],u=s.id,c=s.hasCustomPlugins,l=s.isCampaignPlayer,d=a[1],p=E((0,e.useState)(""),2),f=p[0],h=p[1],g=(0,e.useMemo)((function(){return i===ie.PROJECT?r.interactivityProjectId:null}),[r,i]);(0,e.useEffect)((function(){if(u){var e={accountId:r.accountId,playerId:u};g?e.interactivityProjectId=g:e.videoId=r.videoId,h(B(e))}}),[u,r,g]);var v={accountId:r.accountId,playerId:u,isCampaign:l},m=g?r.interactivityProjectName:r.videoName,b=g||r.videoId;return g?v.interactivityProjectId=g:v.videoId=r.videoId,t().createElement(t().Fragment,null,t().createElement("div",{className:le.leftContent},t().createElement(Be,{onChange:d,embedCodeModalType:i}),t().createElement(pe(),(0,se.Z)({},v,{baseUrl:M(),attrs:{className:le.playerLoader},embedType:"iframe",refNode:"player-container"})),t().createElement(y.Hideable,{show:c},t().createElement("span",{className:le.customPluginNotice},o("customPluginNotice"))),t().createElement(Ke,{prevUrl:f})),t().createElement("div",{className:le.rightContent},t().createElement(Me,{name:m,id:b}),t().createElement(Ve,v)))},ve=["bcAa","bcAirplay","bcGa","bcGtm","bcPlaylistUi","bcTealium","bcMapPlugin","chromecastReceiver","customEndscreen","eme","ima3","interactivity","kollective","overlay","pip","playlistEndscreen","qualityMenu","social","ssai","thumbnails"],me="bcMapPlugin",ye="interactivity";function be(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 Ce(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 Ce(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 Ce(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 Ae=function(n){var r=n.id,i=n.configuration,o=n.accountId,a=void 0===o?"":o,s=_().t,u=U(a,r),c=B({accountId:a,playerId:r}),l=(0,e.useMemo)((function(){var e=!1,t=!1,n=[];if(i){var r,o,a=be(n=null!==(r=i.plugins)&&void 0!==r?r:n);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.name;e=ve.includes(u),t=t||s.name===me}}catch(e){a.e(e)}finally{a.f()}}return{hasCustomPlugins:!e&&n.length>0,isCampaignPlayer:t}}),[i]),d=l.hasCustomPlugins,p=l.isCampaignPlayer;return t().createElement(t().Fragment,null,t().createElement("div",{className:le.leftContent},t().createElement(pe(),{accountId:a,baseUrl:M(),attrs:{className:le.playerLoader},embedType:"iframe",refNode:"player-container",playerUrl:u}),t().createElement(y.Hideable,{show:d},t().createElement("span",{className:le.customPluginNotice},s("customPluginNotice"))),t().createElement(Ke,{prevUrl:c})),t().createElement("div",{className:le.rightContent},t().createElement(Ve,{isCampaign:p,playerId:r,accountId:a})))};function we(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 Oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?we(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ee=function(){return window.StudioModule.config},xe=function(){return Ee().user.currentAccount.id},Pe=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(Oe(Oe({},t),(n=Ee(),{apiConfig:{publisherId:xe(),api:n.module.api}}))))},Se=function(n){var r=n.data,i=n.embedCodeModalType,o=void 0===i?ie.VIDEO:i,a=_().t,s=E((0,e.useState)(!1),2),u=s[0],c=s[1];(0,e.useEffect)((function(){r&&c(!0)}),[r]);var l=(0,e.useCallback)((function(){c(!1)}),[]),d=function(e,n){switch(n){case ie.VIDEO:return"videoId"in e?t().createElement(ge,{video:e,embedCodeModalType:n}):null;case ie.PLAYER:var r=e.accountId||xe();return"id"in e&&r?t().createElement(Ae,(0,se.Z)({},e,{accountId:r})):null;case ie.PROJECT:return"videoId"in e&&"interactivityProjectId"in e?t().createElement(ge,{video:e,embedCodeModalType:n}):null;default:return console.warn("EmbedModal with ".concat(n," is not supported")),null}}(r,o);return d?t().createElement(y.Modal,{testName:"embed-modal",title:a("modalHeader"),isOpen:u,large:!0,onClose:l,buttons:t().createElement(y.Button,{text:a("closeModal"),onClick:l,testName:"close-modal-btn"})},t().createElement(y.Flex,{className:le.videoDetailsContainer},d)):(console.warn("EmbedModal called with wrong props for type: ".concat(o)),null)};function je(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 ke(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){je(o,r,i,a,s,"next",e)}function s(e){je(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Ie=a(757),Re=a.n(Ie),Le=a(946),_e=function(){var e=ke(Re().mark((function e(){return Re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Pe(Le.Xo,{}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();const Te=function(e){return(0,b.useQuery)(["players"],(function(){return _e()}),{refetchOnWindowFocus:!1,refetchOnMount:!1,enabled:e})};function Fe(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 Ne(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 Ne(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 Ne(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 Me=function(n){var r=n.name,i=n.id,o=E((0,e.useState)(!1),2),a=o[0],s=o[1],u=(0,e.useMemo)((function(){return r?(e=r).length>60?"".concat(e.substring(0,60).trim(),"..."):e:"";var e}),[r]);return(0,e.useEffect)((function(){r&&s(u!==r)}),[u,r]),t().createElement(y.Flex,{flexDirection:"column",className:le.mediaData},t().createElement(y.ToolTip,{placement:"top",portal:!0,block:!0,content:r,active:a,testName:"embed-video-tooltip"},t().createElement("div",{className:le.mediaTitle},u)),t().createElement("div",{className:le.mediaId},i))},De=function(e){var n=e.tooltipTextNew,r=e.tooltipLink,i=_().t;return t().createElement(t().Fragment,null,t().createElement("div",null,n),t().createElement("a",{href:i("learnmore"),target:"_blank",rel:"noreferrer"},r))},Be=function(n){var r=n.onChange,i=n.embedCodeModalType,o=_().t,a=E((0,e.useState)(),2),s=a[0],u=a[1],c=E((0,e.useState)([]),2),l=c[0],d=c[1],p=E((0,e.useState)(),2),f=p[0],h=p[1],g=Te(!0),v=g.isLoading,m=g.data;(0,e.useEffect)((function(){var e;if(!v&&m&&(null!==(e=null==m?void 0:m.items.length)&&void 0!==e?e:0)>0){var t=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:me,n=arguments.length>2?arguments[2]:void 0,r=[],i={};return null==e||e.items.forEach((function(e){var o,a,s=null!==(o=e.branches.master.configuration.plugins)&&void 0!==o?o:[],u=!!s&&s.length>0,c=!1,l=!1,d=!1,p=Fe(s);try{for(p.s();!(a=p.n()).done;){var f=a.value,h=f.name;c=ve.includes(h),l=l||f.name===t,d=d||f.name===ye}}catch(e){p.e(e)}finally{p.f()}(n!==ie.PROJECT||d)&&(r.push({label:e.name,value:e.id}),i[e.id]={label:e.name,id:e.id,hasCustomPlugins:!c&&u,isCampaignPlayer:l})})),{players:i,playerListForSelection:D(r)}}(m,me,i),n=t.playerListForSelection,r=t.players;d(n),h(r)}}),[v,m,i]);var b=(0,e.useCallback)((function(e){if(f){var t=f[e];u(t),r&&r(t)}}),[f,r]);return t().createElement(t().Fragment,null,t().createElement(y.Flex,null,t().createElement("div",{className:le.playerSelectLabel},o("player")),t().createElement(y.ToolTip,{content:t().createElement(De,{tooltipLink:o("tooltipLink"),tooltipTextNew:o("tooltipTextNew")}),placement:"top",className:le.tooltip,reflow:!1,testName:"embed-player-tooltip"})),t().createElement(y.Hideable,{show:l.length>0},t().createElement(y.Select,{value:(null==s?void 0:s.id)||fe,options:l,inputClassName:le.playerSelect,onChange:b,testName:"embed-player-select"})))},Ue=function(e){var n=e.currentTab,r=e.handleTabChange,i=e.iframeLabel,o=e.jsLabel;return t().createElement(y.Flex,{justifyContent:"space-between",alignItems:"baseline"},t().createElement(y.Tabs,{selectedId:n,onSelect:r},t().createElement(y.TabList,null,t().createElement(y.Tab,{tabId:"iframe",testName:"iframe-tab"},i),t().createElement(y.Tab,{tabId:"javascript",testName:"js-tab"},o))))};function qe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Qe=["isCampaign"],Ve=function(n){var r=n.isCampaign,i=qe(n,Qe),o=_().t,a=E((0,e.useState)("iframe"),2),s=a[0],u=a[1],c="iframe"===s;return t().createElement(t().Fragment,null,t().createElement(Ue,{currentTab:s,handleTabChange:function(e){return u(e)},jsLabel:o("tabs.labels.javascript"),iframeLabel:o("tabs.labels.iframe")}),t().createElement(y.TabPanel,{testName:"embed-tab-content",render:function(){return r&&c?t().createElement("span",{className:le.redHelperText},o("tabs.helperTextWarning")):t().createElement(ae,(0,se.Z)({iframe:c},i))}}))},Ze=a(826),We=function(){var e=ke(Re().mark((function e(t){var n;return Re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.longUrl,e.abrupt("return",Pe(Ze.P,{longUrl:n}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ke=function(n){var r=n.prevUrl,i=_().t,o=E((0,e.useState)(!1),2),a=o[0],s=o[1],u=(0,e.useCallback)(function(){var e=ke(Re().mark((function e(t){return Re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s(!0),ze(t).then((function(){y.Toaster.success({title:i("toasterTitle"),message:i("toasterGetURLSuccess")})})).catch((function(){y.Toaster.error({message:i("toasterGetURLError")})})).finally((function(){return s(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[i]);return t().createElement("div",null,t().createElement("div",{className:le.getURLBtnContainer},t().createElement(y.Button,{look:"tertiary",text:i("getURL"),testName:"get-url-btn",icon:a?"":"link",iconRight:!0,onClick:function(){return u(r)}}),a&&t().createElement(y.Loader,{className:le.getURLBtnSpinner,size:"inline",color:"navy"})),t().createElement(y.Button,{look:"tertiary",text:i("previewButton"),testName:"preview-player-btn",icon:"external_link",iconRight:!0,onClick:function(){window.open(r,"_blank")}}))},ze=function(){var e=ke(Re().mark((function e(t){var n,r;return Re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=encodeURI(t),e.prev=1,e.abrupt("return",navigator.clipboard.write([new ClipboardItem({"text/plain":new Promise(function(){var e=ke(Re().mark((function e(t){var r;return Re().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,We({longUrl:n});case 2:r=e.sent,t(new Blob([r],{type:"text/plain"}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})]));case 5:return e.prev=5,e.t0=e.catch(1),e.next=9,We({longUrl:n});case 9:return r=e.sent,e.abrupt("return",navigator.clipboard.writeText(r));case 11:case"end":return e.stop()}}),e,null,[[1,5]])})));return function(t){return e.apply(this,arguments)}}();function He(e){return He="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},He(e)}function Ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var $e=a(611);function Je(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,$e.Z)(e,t)}function Ye(e,t){if(t&&("object"===He(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ge(e)}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function et(e){return C(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||O()}function tt(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 nt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var rt={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)}},it=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||rt,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,nt(nt({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}(),ot=new it,at=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 st(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function ut(e){return null==e?"":""+e}function ct(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function lt(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 dt(e,t,n){var r=lt(e,t,Object);r.obj[r.k]=n}function pt(e,t){var n=lt(e,t),r=n.obj,i=n.k;if(r)return r[i]}function ft(e,t,n){var r=pt(e,n);return void 0!==r?r:pt(t,n)}function ht(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]):ht(e[r],t[r],n):e[r]=t[r]);return e}function gt(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var vt={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function mt(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return vt[e]})):e}var yt="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,bt=[" ",",","?","!",";"];function Ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ct(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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=Xe(e);if(t){var i=Xe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ot(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?Ot(u,c,n):void 0}i=i[r[o]]}return i}}var Et=function(e){Je(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),yt&&at.call(Ge(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=pt(this.data,a);return s||!o||"string"!=typeof n?s:Ot(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),dt(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=pt(this.data,a)||{};r?ht(s,n,i):s=At(At({},s),n),dt(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?At(At({},{}),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}(at),xt={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 Pt(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 St(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jt(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=Xe(e);if(t){var i=Xe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ye(this,n)}}var kt={},It=function(e){Je(r,e);var t=jt(r);function r(e){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return n(this,r),i=t.call(this),yt&&at.call(Ge(i)),ct(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Ge(i)),i.options=o,void 0===i.options.keySeparator&&(i.options.keySeparator="."),i.logger=ot.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=bt.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"!==He(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),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 O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,g,St(St({},t),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(h.res=O,h):O}if(a){var E="[object Array]"===y,x=E?[]:{},P=E?m:v;for(var S in g)if(Object.prototype.hasOwnProperty.call(g,S)){var j="".concat(P).concat(a).concat(S);x[S]=this.translate(j,St(St({},t),{joinArrays:!1,ns:c})),x[S]===j&&(x[S]=g[S])}g=x}}else if(A&&"string"==typeof C&&"[object Array]"===y)(g=g.join(C))&&(g=this.extendTranslation(g,e,t,n));else{var k=!1,I=!1,R=void 0!==t.count&&"string"!=typeof t.count,L=r.hasDefaultValue(t),_=R?this.pluralResolver.getSuffix(d,t.count,t):"",T=t["defaultValue".concat(_)]||t.defaultValue;!this.isValidLookup(g)&&L&&(k=!0,g=T),this.isValidLookup(g)||(I=!0,g=u);var F=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,N=F&&I?void 0:g,M=L&&T!==g&&this.options.updateMissing;if(I||k||M){if(this.logger.log(M?"updateKey":"missingKey",d,l,u,M?T:g),a){var D=this.resolve(u,St(St({},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 Q=function(e,n,r){var o=L&&r!==g?r:N;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){Q([e],u+n,t["defaultValue".concat(n)]||T)}))})):Q(B,u,T))}g=this.extendTranslation(g,e,t,h,n),I&&g===u&&this.options.appendNamespaceToMissingKey&&(g="".concat(l,":").concat(u)),(I||k)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(u,k?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,St(St({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(St(St({},n),{interpolation:St(St({},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=St(St({},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=xt.handle(p,e,t,this.options&&this.options.postProcessPassResolved?St({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,!kt["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(kt["".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 g="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(g),d&&(u.push(g+l),p&&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}(at);function Rt(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Lt=function(){function e(t){n(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ot.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]=Rt(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]=Rt(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Rt(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}(),_t=[{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}],Tt={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)}},Ft=["v1","v2","v3"],Nt={zero:0,one:1,two:2,few:3,many:4,other:5};function Mt(){var e={};return _t.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Tt[t.fc]}}))})),e}var Dt=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=ot.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=Mt()}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 Nt[e]-Nt[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!Ft.includes(this.options.compatibilityJSON)}}]),e}();function Bt(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 Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Bt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var qt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.logger=ot.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:mt,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?gt(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?gt(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?gt(t.nestingPrefix):t.nestingPrefixEscaped||gt("$t("),this.nestingSuffix=t.nestingSuffix?gt(t.nestingSuffix):t.nestingSuffixEscaped||gt(")"),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,Ut(Ut(Ut({},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,Ut(Ut(Ut({},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=ut(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=Ut({},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=Ut(Ut({},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=ut(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,Ut(Ut({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Qt(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 Vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Zt=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n(this,e),this.logger=ot.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,Vt(Vt({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,Vt({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,Vt({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,Vt({},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;return t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=et(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,Vt(Vt(Vt({},s),r),c))}catch(e){i.logger.warn(e)}return u}return i.logger.warn("there was no format function for ".concat(a)),e}),e)}}]),e}();function Wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function zt(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=Xe(e);if(t){var i=Xe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ye(this,n)}}var Ht=function(e){Je(r,e);var t=zt(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),yt&&at.call(Ge(a)),a.backend=e,a.store=i,a.services=o,a.languageUtils=o.languageUtils,a.options=s,a.logger=ot.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=lt(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,Kt(Kt({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),r}(at);function Gt(){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"===He(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===He(e[2])||"object"===He(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 $t(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 Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xt(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=Xe(e);if(t){var i=Xe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ye(this,n)}}function en(){}function tn(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var nn=function(e){Je(r,e);var t=Xt(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),yt&&at.call(Ge(e)),e.options=$t(i),e.services={},e.logger=ot,e.modules={external:[]},tn(Ge(e)),o&&!e.isInitialized&&!i.isClone){if(!e.options.initImmediate)return e.init(i,o),Ye(e,Ge(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=Gt();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=Yt(Yt(Yt({},r),this.options),$t(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=Yt(Yt({},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?ot.init(i(this.modules.logger),this.options):ot.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=Zt);var a=new Lt(this.options);this.store=new Et(this.options.resources,this.options);var s=this.services;s.logger=ot,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Dt(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 qt(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Ht(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 It(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=st(),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]: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=st();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&&xt.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=st();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"!==He(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=Yt({},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=st();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=st();"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=Yt(Yt(Yt({},this.options),t),{isClone:!0}),o=new r(i),a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=Yt({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new It(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}(at);o(nn,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new nn(e,t)}));var rn=nn.createInstance();rn.createInstance=nn.createInstance;rn.createInstance,rn.init,rn.loadResources,rn.reloadResources,rn.use,rn.changeLanguage,rn.getFixedT,rn.t,rn.exists,rn.setDefaultNamespace,rn.hasLoadedNamespace,rn.loadNamespaces,rn.loadLanguages;const on=rn;var an,sn,un={en:{translation:JSON.parse('{"modalHeader":"Embed on website","mediaNotice":"Will use your account’s default player","tooltipText":"Currently using the Brightcove Default Player. Player management coming soon.","tooltipTextNew":"Players determine the video playback experience such as styling, special configuration settings, and more.","tooltipLink":"Learn more about players","learnmore":"https://studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Preview","player":"Player","getURL":"Get URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copy the HTML code and paste it on your website.","helperTextWarning":"This player is configured with the Campaign plugin. To ensure proper tracking, the JavaScript embed code should be used."},"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","learnmore":"https://es.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Vista previa","player":"Reproductor","getURL":"Obtener URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copie el código HTML y péguelo en su sitio web.","helperTextWarning":"Este reproductor está configurado con el complemento Campaign. Para garantizar un seguimiento adecuado, debe utilizarse el código de incrustación JavaScript."},"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","learnmore":"https://fr.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Aperçu","player":"Player","getURL":"Obtenir l\'URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copiez le code HTML et collez-le dans votre site Internet.","helperTextWarning":"Ce joueur est configuré avec le plug-in Campaign. Pour garantir un suivi adéquat, le code incorporé JavaScript doit être utilisé."},"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":"プレーヤーについての詳細","learnmore":"https://ja.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"プレビュー","player":"プレーヤー","getURL":"URLを取得する","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTMLコードをコピーし、お客様のWebサイトに貼り付けてください。","helperTextWarning":"このプレーヤーは、キャンペーンプラグインを使って構成されています。適切にトラッキングするには、 JavaScript埋め込みコードを使用してください。"},"closeModal":"完了","toasterTitle":"成功。","toasterMessage":"コードをクリップボードにコピーしました","toasterGetURLSuccess":"URLをクリップボードにコピーしました","toasterGetURLError":"URLを生成できません","toasterErrorMessage":"テキストをクリップボードにコピー中にエラーが発生しました","customPluginNotice":"カスタム設定により、プレビューが完全でない場合があります。"}')},ko:{translation:JSON.parse('{"modalHeader":"웹사이트에 임베드","mediaNotice":"계정의 기본 플레이어를 사용합니다","tooltipText":"현재 Brightcove 기본 플레이어 사용 중입니다. 플레이어 관리가 곧 출시됩니다.","tooltipTextNew":"플레이어는 스타일 지정, 특수 구성 설정 등 비디오 재생 경험을 결정합니다.","tooltipLink":"플레이어에 대해 자세히 알아보기","learnmore":"https://ko.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"미리 보기","player":"플레이어","getURL":"URL 받기","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTML 코드를 복사하여 웹사이트에 붙여넣으십시오.","helperTextWarning":"이 플레이어는 캠페인 플러그인과 함께 구성됩니다. 바르게 추적되게 하려면, JavaScript 내장 코드를 사용해야 합니다."},"closeModal":"완료","toasterTitle":"성공.","toasterMessage":"클립보드에 코드가 복사됨","toasterGetURLSuccess":"URL이 클립보드에 복사됨","toasterGetURLError":"URL 생성 불가","toasterErrorMessage":"클립보드에 텍스트를 복사하는 중 오류 발생","customPluginNotice":"사용자 정의 구성으로 인해 전체 미리 보기를 이용하지 못할 수도 있습니다."}')},zh:{translation:JSON.parse('{"modalHeader":"內嵌到網站","mediaNotice":"會使用您帳戶的預設播放程式","tooltipText":"目前使用 Brightcove 預設播放程式。播放程式管理功能即將推出。","tooltipTextNew":"播放器決定視訊播放體驗,例如樣式風格、特別組態設定等。","tooltipLink":"瞭解關於播放程式的更多資訊","learnmore":"https://zh-tw.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"預覽","player":"播放程式","getURL":"取得 URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"複製 HTML 程式碼並貼到您的網站上。","helperTextWarning":"此播放程式設定有活動外掛程式。為了確保正確追蹤,應使用 JavaScript 內嵌程式碼。"},"closeModal":"完成","toasterTitle":"成功.","toasterMessage":"程式碼已複製到剪貼簿","toasterGetURLSuccess":"URL 已複製到剪貼簿","toasterGetURLError":"無法產生 URL","toasterErrorMessage":"複製文字到剪貼簿時發生錯誤","customPluginNotice":"由於自訂組態,您可能無法體驗完整預覽版。"}')}};on.use(v).init({lng:(null===(an=window.StudioModule)||void 0===an||null===(sn=an.config)||void 0===sn?void 0:sn.lang)||"en",fallbackLng:"en",debug:!0,returnObjects:!0,resources:un,interpolation:{escapeValue:!1}});const cn=on;(0,y.initialize)({theme:"blueSteel"});var ln=new b.QueryClient;const dn=function(n){var r=n.data,i=n.language,o=n.embedCodeModalType;return(0,e.useEffect)((function(){cn.changeLanguage(i||window.StudioModule.config.lang)}),[i]),r?t().createElement(b.QueryClientProvider,{client:ln},t().createElement(m,{i18n:cn},t().createElement(Se,{data:r,language:i,embedCodeModalType:o}))):null}})(),s})()));
|