UNPKG

@gobistories/gobi-web-integration

Version:

This library will let you put your Gobi stories on your site.

12 lines 689 kB
/*! @gobistories/gobi-web-integration@6.19.8 */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.gobi=t():e.gobi=t()}(window,function(){return n={},i.m=r=[function(e,t,r){"use strict";e.exports=r(106)},function(e,We,$e){"use strict";$e.r(We),function(e){$e.d(We,"ServerStyleSheet",function(){return ze}),$e.d(We,"StyleSheetConsumer",function(){return oe}),$e.d(We,"StyleSheetContext",function(){return ae}),$e.d(We,"StyleSheetManager",function(){return fe}),$e.d(We,"ThemeConsumer",function(){return Le}),$e.d(We,"ThemeContext",function(){return k}),$e.d(We,"ThemeProvider",function(){return De}),$e.d(We,"__PRIVATE__",function(){return Ge}),$e.d(We,"createGlobalStyle",function(){return Ue}),$e.d(We,"css",function(){return Se}),$e.d(We,"isStyledComponent",function(){return P}),$e.d(We,"keyframes",function(){return Be}),$e.d(We,"useTheme",function(){return He}),$e.d(We,"version",function(){return r}),$e.d(We,"withTheme",function(){return Ve});var a=$e(31),E=$e(0),f=$e.n(E),t=$e(98),o=$e.n(t),g=$e(99),l=$e(100),T=$e(45),t=$e(44),m=$e.n(t);function S(){return(S=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=function(e,t){for(var r=[e[0]],n=0,i=t.length;n<i;n+=1)r.push(t[n],e[n+1]);return r},u=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!Object(a.typeOf)(e)},y=Object.freeze([]),_=Object.freeze({});function O(e){return"function"==typeof e}function x(e){return e.displayName||e.name||"Component"}function P(e){return e&&"string"==typeof e.styledComponentId}var v=void 0!==e&&(e.env.REACT_APP_SC_ATTR||e.env.SC_ATTR)||"data-styled",r="5.3.3",b="undefined"!=typeof window&&"HTMLElement"in window,t=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==e.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==e.env.REACT_APP_SC_DISABLE_SPEEDY&&e.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==e&&void 0!==e.env.SC_DISABLE_SPEEDY&&""!==e.env.SC_DISABLE_SPEEDY&&("false"!==e.env.SC_DISABLE_SPEEDY&&e.env.SC_DISABLE_SPEEDY)),c={};function p(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(0<r.length?" Args: "+r.join(", "):""))}function n(e){if(C.has(e))return C.get(e);for(;A.has(R);)R++;var t=R++;return C.set(e,t),A.set(t,e),t}function s(e){var t=document.head,n=e||t,e=document.createElement("style"),t=void 0!==(t=function(){for(var e=n.childNodes,t=e.length;0<=t;t--){var r=e[t];if(r&&1===r.nodeType&&r.hasAttribute(v))return r}}())?t.nextSibling:null,r=(e.setAttribute(v,"active"),e.setAttribute("data-styled-version","5.3.3"),F());return r&&e.setAttribute("nonce",r),n.insertBefore(e,t),e}function d(e){return String.fromCharCode(e+(25<e?39:97))}(e=q.prototype).indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,i=n;i<=e;)(i<<=1)<0&&p(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var a=n;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},e.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),n=r+t;this.groupSizes[e]=0;for(var i=r;i<n;i++)this.tag.deleteRule(r)}},e.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],e=this.indexOfGroup(e),n=e+r,i=e;i<n;i++)t+=this.tag.getRule(i)+"/*!sc*/\n";return t};var w=q,C=new Map,A=new Map,R=1,L=function(e,t){R<=t&&(R=t+1),C.set(e,t),A.set(t,e)},D="style["+v+'][data-styled-version="5.3.3"]',I=new RegExp("^"+v+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),M=function(e,t,r){for(var n,i=r.split(","),a=0,o=i.length;a<o;a++)(n=i[a])&&e.registerName(t,n)},F=function(){return"undefined"!=typeof window&&void 0!==window.__webpack_nonce__?window.__webpack_nonce__:null},j=((e=$.prototype).insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.getRule=function(e){e=this.sheet.cssRules[e];return void 0!==e&&"string"==typeof e.cssText?e.cssText:""},$),N=((e=W.prototype).insertRule=function(e,t){return e<=this.length&&0<=e&&(t=document.createTextNode(t),e=this.nodes[e],this.element.insertBefore(t,e||null),this.length++,!0)},e.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},W),U=((e=K.prototype).insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.getRule=function(e){return e<this.length?this.rules[e]:""},K),B=b,z={isServer:!b,useCSSOMInjection:!t},V=(G.registerId=n,(e=G.prototype).reconstructWithOptions=function(e,t){return void 0===t&&(t=!0),new G(S({},this.options,{},e),this.gs,t&&this.names||void 0)},e.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.getTag=function(){return this.tag||(this.tag=(e=(r=this.options).isServer,t=r.useCSSOMInjection,r=r.target,e=new(e?U:t?j:N)(r),new w(e)));var e,t,r},e.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.registerName=function(e,t){var r;n(e),this.names.has(e)?this.names.get(e).add(t):((r=new Set).add(t),this.names.set(e,r))},e.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(n(e),r)},e.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.clearRules=function(e){this.getTag().clearGroup(n(e)),this.clearNames(e)},e.clearTag=function(){this.tag=void 0},e.toString=function(){for(var e=this,t=e.getTag(),r=t.length,n="",i=0;i<r;i++){l=i;var a,o,s,l=A.get(l);void 0!==l&&(a=e.names.get(l),o=t.getGroup(i),a&&o&&a.size&&(l=v+".g"+i+'[id="'+l+'"]',s="",void 0!==a&&a.forEach(function(e){0<e.length&&(s+=e+",")}),n+=o+l+'{content:"'+s+'"}/*!sc*/\n'))}return n},G),H=/(a)(d)/gi;function G(e,t,c){if(void 0===e&&(e=_),void 0===t&&(t={}),this.options=S({},z,{},e),this.gs=t,this.names=new Map(c),this.server=!!e.isServer,!this.server&&b&&B){B=!1;for(var d=this,f=document.querySelectorAll(D),r=0,p=f.length;r<p;r++){var n=f[r];if(n&&"active"!==n.getAttribute(v)){{m=void 0;i=void 0;a=void 0;y=void 0;u=void 0;o=void 0;s=void 0;l=void 0;var h=d;var g=n;for(var m=(g.textContent||"").split("/*!sc*/\n"),i=[],a=0,y=m.length;a<y;a++){var o,s,l,u=m[a].trim();u&&((o=u.match(I))?(s=0|parseInt(o[1],10),l=o[2],0!=s&&(L(l,s),M(h,l,o[3]),h.getTag().insertRules(s,i)),i.length=0):i.push(u))}}n.parentNode&&n.parentNode.removeChild(n)}}}else;}function K(e){this.rules=[],this.length=0}function W(e){e=this.element=s(e);this.nodes=e.childNodes,this.length=0}function $(e){e=this.element=s(e);e.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r<n;r++){var i=t[r];if(i.ownerNode===e)return i}p(17)}(e),this.length=0}function q(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}function Y(e){for(var t="",r=Math.abs(e);52<r;r=r/52|0)t=d(r%52)+t;return(d(r%52)+t).replace(H,"$1-$2")}function X(e){return Q(5381,e)}var Q=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e};function Z(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(O(r)&&!P(r))return!1}return!0}var J=X("5.3.3"),ee=(ne.prototype.generateAndInjectStyles=function(e,t,r){var n=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,r)),this.isStatic&&!r.hash)this.staticRulesId&&t.hasNameForId(n,this.staticRulesId)?i.push(this.staticRulesId):(a=h(this.rules,e,t,r).join(""),o=Y(Q(this.baseHash,a)>>>0),t.hasNameForId(n,o)||(a=r(a,"."+o,void 0,n),t.insertRules(n,o,a)),i.push(o),this.staticRulesId=o);else{for(var a,o,c=this.rules.length,d=Q(this.baseHash,r.hash),s="",l=0;l<c;l++){var u=this.rules[l];"string"==typeof u?s+=u:u&&(u=h(u,e,t,r),u=Array.isArray(u)?u.join(""):u,d=Q(d,u+l),s+=u)}s&&(a=Y(d>>>0),t.hasNameForId(n,a)||(o=r(s,"."+a,void 0,n),t.insertRules(n,a,o)),i.push(a))}return i.join(" ")},ne),te=/^\s*\/\/.*$/gm,re=[":","[",".","#"];function ne(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===r||r.isStatic)&&Z(e),this.componentId=t,this.baseHash=Q(J,t),this.baseStyle=r,V.registerId(t)}function ie(e){var i,a,o,s,e=void 0===e?_:e,t=e.options,t=void 0===t?_:t,e=e.plugins,e=void 0===e?y:e,l=new g.a(t),r=[];c=function(e){r.push(e)};function u(e,t,r){return 0===t&&-1!==re.indexOf(r[a.length])||r.match(s)?e:"."+i}var c;function d(e){if(e)try{c(e+"}")}catch(e){}}function n(e,t,r,n){void 0===n&&(n="&");e=e.replace(te,""),e=t&&r?r+" "+t+" { "+e+" }":e;return i=n,a=t,o=new RegExp("\\"+a+"\\b","g"),s=new RegExp("(\\"+a+"\\b){2,}"),l(r||!t?"":t,e)}return l.use([].concat(e,[function(e,t,r){2===e&&r.length&&0<r[0].lastIndexOf(a)&&(r[0]=r[0].replace(o,u))},function(e,t,r,n,i,a,u,o,s,l){switch(e){case 1:if(0===s&&64===t.charCodeAt(0))return c(t+";"),"";break;case 2:if(0===o)return t+"/*|*/";break;case 3:switch(o){case 102:case 112:return c(r[0]+t),"";default:return t+(0===l?"/*|*/":"")}case-2:t.split("/*|*/}").forEach(d)}},function(e){if(-2===e)return e=r,r=[],e}])),n.hash=e.length?e.reduce(function(e,t){return t.name||p(15),Q(e,t.name)},5381).toString():"",n}var ae=f.a.createContext(),oe=ae.Consumer,se=f.a.createContext(),le=(se.Consumer,new V),ue=ie();function ce(){return Object(E.useContext)(ae)||le}function de(){return Object(E.useContext)(se)||ue}function fe(t){var e=Object(E.useState)(t.stylisPlugins),r=e[0],n=e[1],i=ce(),e=Object(E.useMemo)(function(){var e=i;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),e=t.disableCSSOMInjection?e.reconstructWithOptions({useCSSOMInjection:!1}):e},[t.disableCSSOMInjection,t.sheet,t.target]),a=Object(E.useMemo)(function(){return ie({options:{prefix:!t.disableVendorPrefixes},plugins:r})},[t.disableVendorPrefixes,r]);return Object(E.useEffect)(function(){o()(r,t.stylisPlugins)||n(t.stylisPlugins)},[t.stylisPlugins]),f.a.createElement(ae.Provider,{value:e},f.a.createElement(se.Provider,{value:a},t.children))}ve.prototype.getName=function(e){return void 0===e&&(e=ue),this.name+e.hash};var pe=ve,he=/([A-Z])/,ge=/([A-Z])/g,me=/^ms-/,ye=function(e){return"-"+e.toLowerCase()};function ve(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ue);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return p(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}function be(e){return he.test(e)?e.replace(ge,ye).replace(me,"-ms-"):e}var we=function(e){return null==e||!1===e||""===e};function h(e,t,r,n){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o<s;o+=1)""!==(i=h(e[o],t,r,n))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}return we(e)?"":P(e)?"."+e.styledComponentId:O(e)?"function"!=typeof e||e.prototype&&e.prototype.isReactComponent||!t?e:h(e(t),t,r,n):e instanceof pe?r?(e.inject(r,n),e.getName(n)):e:u(e)?function e(t,r){var n,i,a,o=[];for(a in t)t.hasOwnProperty(a)&&!we(t[a])&&(Array.isArray(t[a])&&t[a].isCss||O(t[a])?o.push(be(a)+":",t[a],";"):u(t[a])?o.push.apply(o,e(t[a],a)):o.push(be(a)+": "+(n=a,null==(i=t[a])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||n in l.a?String(i).trim():i+"px")+";"));return r?[r+" {"].concat(o,["}"]):o}(e):e.toString()}var Ee=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function Se(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return O(e)||u(e)?Ee(h(i(y,[e].concat(r)))):0===r.length&&1===e.length&&"string"==typeof e[0]?e:Ee(h(i(e,r)))}new Set;var _e=function(e,t,r){return void 0===r&&(r=_),e.theme!==r.theme&&e.theme||t||r.theme},ke=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Te=/(^-|-$)/g;function Oe(e){return e.replace(ke,"-").replace(Te,"")}var xe=function(e){return Y(X(e)>>>0)};function Pe(e){return"string"==typeof e&&!0}var Ce=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ae=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Re(e){for(var t=arguments.length,u=new Array(1<t?t-1:0),r=1;r<t;r++)u[r-1]=arguments[r];for(var n,i,a,o=0,c=u;o<c.length;o++){var s=c[o];if(Ce(s))for(var l in s)Ae(l)&&(n=e,i=s[l],l=l,a=void 0,a=n[l],Ce(i)&&Ce(a)?Re(a,i):n[l]=i)}return e}var k=f.a.createContext(),Le=k.Consumer;function De(r){var n=Object(E.useContext)(k),e=Object(E.useMemo)(function(){return e=r.theme,t=n,e?O(e)?e(t):Array.isArray(e)||"object"!=typeof e?p(8):t?S({},t,{},e):e:p(14);var e,t},[r.theme,n]);return r.children?f.a.createElement(k.Provider,{value:e},r.children):null}var Ie={};function Me(n,i,a){var t=P(n),u=!Pe(n),e=i.attrs,e=void 0===e?y:e,r=i.componentId,r=void 0===r?function(e,t){e="string"!=typeof e?"sc":Oe(e),Ie[e]=(Ie[e]||0)+1,e=e+"-"+xe("5.3.3"+e+Ie[e]);return t?t+"-"+e:e}(i.displayName,i.parentComponentId):r,o=i.displayName,o=void 0===o?Pe(n)?"styled."+n:"Styled("+x(n)+")":o,r=i.displayName&&i.componentId?Oe(i.displayName)+"-"+i.componentId:i.componentId||r,s=t&&n.attrs?Array.prototype.concat(n.attrs,e).filter(Boolean):e,l=i.shouldForwardProp;t&&n.shouldForwardProp&&(l=i.shouldForwardProp?function(e,t,r){return n.shouldForwardProp(e,t,r)&&i.shouldForwardProp(e,t,r)}:n.shouldForwardProp);function c(e,c){var d,f,a,o,t,r=w,n=(l=b).attrs,i=l.componentStyle,s=l.defaultProps,p=l.foldedComponentIds,h=l.shouldForwardProp,g=l.styledComponentId,l=l.target,n=(s=_e(e,Object(E.useContext)(k),s)||_,n=n,a=S({},e,{theme:s=void 0===s?_:s}),o={},n.forEach(function(e){var t,r,n,i=e;for(t in i=O(i)?i(a):i)a[t]=o[t]="className"===t?(r=o[t],n=i[t],r&&n?r+" "+n:r||n):i[t]}),(s=[a,o])[1]),r=(i=i,r=r,s=s[0],d=ce(),f=de(),r?i.generateAndInjectStyles(_,d,f):i.generateAndInjectStyles(s,d,f)),i=c,m=n.$as||e.$as||n.as||e.as||l,y=Pe(m),v=n!==e?S({},e,{},n):e,u={};for(t in v)"$"!==t[0]&&"as"!==t&&("forwardedAs"===t?u.as=v[t]:(h?h(t,T.a,m):!y||Object(T.a)(t))&&(u[t]=v[t]));return e.style&&n.style!==e.style&&(u.style=S({},e.style,{},n.style)),u.className=Array.prototype.concat(p,g,r!==g?r:null,e.className,n.className).filter(Boolean).join(" "),u.ref=i,Object(E.createElement)(m,u)}var b,d=new ee(a,r,t?n.componentStyle:void 0),w=d.isStatic&&0===e.length;return c.displayName=o,(b=f.a.forwardRef(c)).attrs=s,b.componentStyle=d,b.displayName=o,b.shouldForwardProp=l,b.foldedComponentIds=t?Array.prototype.concat(n.foldedComponentIds,n.styledComponentId):y,b.styledComponentId=r,b.target=t?n.target:n,b.withComponent=function(e){var t=i.componentId,r=function(e,t){if(null==e)return{};for(var r,n={},i=Object.keys(e),a=0;a<i.length;a++)r=i[a],0<=t.indexOf(r)||(n[r]=e[r]);return n}(i,["componentId"]),t=t&&t+"-"+(Pe(e)?e:Oe(x(e)));return Me(e,S({},r,{attrs:s,componentId:t}),a)},Object.defineProperty(b,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=t?Re({},n.defaultProps,e):e}}),b.toString=function(){return"."+b.styledComponentId},u&&m()(b,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),b}function Fe(e){return function t(r,n,i){if(void 0===i&&(i=_),!Object(a.isValidElementType)(n))return p(1,String(n));function e(){return r(n,i,Se.apply(void 0,arguments))}return e.withConfig=function(e){return t(r,n,S({},i,{},e))},e.attrs=function(e){return t(r,n,S({},i,{attrs:Array.prototype.concat(i.attrs,e).filter(Boolean)}))},e}(Me,e)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach(function(e){Fe[e]=Fe(e)}),(t=Ne.prototype).createStyles=function(e,t,r,n){t=n(h(this.rules,t,r,n).join(""),""),n=this.componentId+e;r.insertRules(n,n,t)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){2<e&&V.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)};var je=Ne;function Ne(e,t){this.rules=e,this.componentId=t,this.isStatic=Z(e),V.registerId(this.componentId+1)}function Ue(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var e=Se.apply(void 0,[e].concat(r)),a="sc-global-"+xe(JSON.stringify(e)),o=new je(e,a);function s(e){var t=ce(),r=de(),n=Object(E.useContext)(k),i=Object(E.useRef)(t.allocateGSInstance(a)).current;return t.server&&l(i,e,t,n,r),Object(E.useLayoutEffect)(function(){if(!t.server)return l(i,e,t,n,r),function(){return o.removeStyles(i,t)}},[i,e,t,n,r]),null}function l(e,t,r,n,i){o.isStatic?o.renderStyles(e,c,r,i):(t=S({},t,{theme:_e(t,n,s.defaultProps)}),o.renderStyles(e,t,r,i))}return f.a.memo(s)}function Be(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var e=Se.apply(void 0,[e].concat(r)).join(""),i=xe(e);return new pe(i,e)}(e=Ke.prototype).collectStyles=function(e){return this.sealed?p(2):f.a.createElement(fe,{sheet:this.instance},e)},e.interleaveWithNodeStream=function(e){return p(3)};var ze=Ke,Ve=function(i){var e=f.a.forwardRef(function(e,t){var r=Object(E.useContext)(k),n=i.defaultProps,r=_e(e,r,n);return f.a.createElement(i,S({},e,{theme:r,ref:t}))});return m()(e,i),e.displayName="WithTheme("+x(i)+")",e},He=function(){return Object(E.useContext)(k)},Ge={StyleSheet:V,masterSheet:le};function Ke(){var r=this;this._emitSheetCSS=function(){var e=r.instance.toString();if(!e)return"";var t=F();return"<style "+[t&&'nonce="'+t+'"',v+'="true"','data-styled-version="5.3.3"'].filter(Boolean).join(" ")+">"+e+"</style>"},this.getStyleTags=function(){return r.sealed?p(2):r._emitSheetCSS()},this.getStyleElement=function(){if(r.sealed)return p(2);(e={})[v]="",e["data-styled-version"]="5.3.3",e.dangerouslySetInnerHTML={__html:r.instance.toString()};var e,t=F();return t&&(e.nonce=t),[f.a.createElement("style",S({},e,{key:"sc-0-0"}))]},this.seal=function(){r.sealed=!0},this.instance=new V({isServer:!0}),this.sealed=!1}We.default=Fe}.call(this,$e(118))},function(e,a,t){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.optionsContext=a.useOptions=a.CardDefaults=a.BubbleDefaults=a.OptionDefaults=a.PlayerOptionDefaults=a.DEFUALT_MEDIA_PROXY_HOST=a.DEFAULT_API_BASE_URL=void 0;const r=t(0),o=t(4);a.DEFAULT_API_BASE_URL="https://api.gobistories.com",a.DEFUALT_MEDIA_PROXY_HOST="media-proxy.gobistories.com",a.PlayerOptionDefaults={container:void 0,storyId:void 0,autoStart:!1,autoStartWithSound:!1,loop:!1,roundedCorners:!0,shadow:!0,width:void 0,height:void 0,checkViewPort:!0,playButton:!0,transcriptButton:!1,savePosition:!1,on:{},apiBaseUrl:void 0,useMediaProxy:void 0,mediaProxyHost:void 0},a.OptionDefaults={container:"#gobi-here",color:"#15d6ea",bubbleSize:"96px",animatedBubble:!1,wrap:!1,scroll:!0,isFullHeightMobile:!0,showPlayIcon:!1,align:"center",autoSegue:!1,stories:void 0,showEmptyStories:!1,openInPlayerPage:!1,fullScreenPlayer:!1,fullScreenMode:!1,closeModalOnStoryEnd:!1,noShade:!1,zIndex:2e6,disableShadowDom:!0,disableAnalytics:!1,inheritTextStyles:!1,inheritTextFontFamily:!1,on:{loaded:()=>{},close:()=>{}},apiBaseUrl:void 0,useMediaProxy:void 0,mediaProxyHost:void 0,previewMode:!1,playerOptions:a.PlayerOptionDefaults,size:300,playColor:"#ffffff1a",gap:"20px",animatedCovers:!1,playInline:!1},a.BubbleDefaults=Object.assign({},a.OptionDefaults),a.CardDefaults=Object.assign(Object.assign({},a.OptionDefaults),{playerOptions:{autoStartWithSound:!0}}),a.useOptions=(e,t)=>{var r=null!==(r=e.playerOptions)&&void 0!==r?r:{};const n=Object.assign(Object.assign(Object.assign(Object.assign({},a.OptionDefaults),t),e),{fullScreenMode:e.fullScreenMode&&(document.fullscreenEnabled||o.isIos),apiBaseUrl:e.apiBaseUrl||r.apiBaseUrl||a.DEFAULT_API_BASE_URL,mediaProxyHost:e.mediaProxyHost||r.mediaProxyHost||a.DEFUALT_MEDIA_PROXY_HOST,useMediaProxy:e.useMediaProxy||r.useMediaProxy||!1,on:Object.assign(Object.assign({},a.OptionDefaults.on),e.on),playerOptions:Object.assign(Object.assign(Object.assign({},a.PlayerOptionDefaults),t.playerOptions),r)}),i=(n.playInline&&(n.autoSegue=!1),null!==(t=n.stories)&&void 0!==t?t:[]);return e.playerOptions&&e.playerOptions.storyId&&i.push({id:e.playerOptions.storyId}),n.stories=i,n},a.optionsContext=r.createContext(a.OptionDefaults)},function(e,t,r){"use strict";var n=r(141),r=r(171);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},function(e,t,r){"use strict";function n(){const e=window.navigator.userAgent;return!!(0<e.indexOf("MSIE ")||navigator.userAgent.match(/Trident.*rv:11\./))}Object.defineProperty(t,"__esModule",{value:!0}),t.getViewPortSize=t.getScreenSize=t.shadowDomSupported=t.isTouchDevice=t.hasReducedWebmSupport=t.isSafari=t.isIos=t.isMobile=t.isIE=void 0,t.isIE=n,t.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t.isIos=/iPad|iPhone|iPod/.test(navigator.userAgent),t.isSafari=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),t.hasReducedWebmSupport=!!window.navigator.userAgent.match(/Version\/18.*?Safari\//)||!!window.navigator.userAgent.match(/iPhone OS 18_.*?Safari\//),t.isTouchDevice=!!("undefined"!=typeof window&&"ontouchstart"in window),t.shadowDomSupported=function(){return!n()&&(!window.navigator.userAgent.match(/Version\/15\.0.*?Safari\//)&&!!document.head.attachShadow)},t.getScreenSize=function(){return{width:window.screen.width,height:window.screen.height,aspectRatio:window.screen.width/window.screen.height}},t.getViewPortSize=function(){var e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),t=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return{width:e,height:t,aspectRatio:e/t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalContext=t.useGlobal=t.GLOBAL_DEFAULT_VALUE=void 0;const R=r(0),L=r(2),D=r(46),I=r(17);function M(t,e){var r;if(null===(r=null==t?void 0:t.chapters)||void 0===r||!r.length)return!1;if(e)for(let e=0;e<t.chapters.length;e++)if(!t.chapters[e].mediaType||!t.chapters[e].mediaUrl)return!1;return!0}t.GLOBAL_DEFAULT_VALUE={stories:[],emptyStories:[],loaded:!1,currentStoryIndex:0,selectStory:()=>{},setStoryIndex:()=>{},popupClosing:!1,popupOpen:!1,setPopupOpen:()=>{},openPopup:()=>null,closePopup:()=>{},userExited:!1,setUserExited:()=>{},loadVideoPlayer:!1,setLoadVideoPlayer:()=>{},setMutedByUser:()=>{},mutedByUser:!1,enableChapterAnnouncements:!0,toggleChapterAnnouncements:()=>{}},t.useGlobal=()=>{const{on:r,playerOptions:c,stories:e,renders:t,previewMode:n,apiBaseUrl:i,useMediaProxy:a,mediaProxyHost:o}=R.useContext(L.optionsContext),s=R.useContext(I.fontsContext)["setFonts"],[l,d]=R.useState(null),[f,p]=R.useState(null),[h,g]=R.useState(!1),[m,y]=R.useState(0),[v,u]=R.useState(!1),[b,w]=R.useState(!1),[E,S]=R.useState(!1);var[_,k]=R.useState(!1),[T,O]=R.useState(!1);const[x,P]=R.useState(!0);const C=R.useCallback(e=>{var t=e.filter(e=>!M(e,n)).map(e=>Object.assign(Object.assign({},e),{viewKey:(null==e?void 0:e.viewKey)||"Invalid Story ID"})),t=(p(t),e.filter(e=>M(e,n)));d(t),g(!0),s(I.resolveFonts(t))},[s,n]),A=(R.useEffect(()=>{(t?D.prepareRenders(t,!n):D.loadRenders(e,a,o,i,!n)).then(C)},[n,C,t,i,a,o,e,s]),t=>{var e;r.open&&!1===r.open(t)||-1!==(e=l.findIndex(e=>e.viewKey===t))&&y(e)});return{stories:l,emptyStories:f,loaded:h,currentStoryIndex:m,setStoryIndex:y,selectStory:A,setMutedByUser:O,mutedByUser:T,popupOpen:v,setPopupOpen:u,openPopup:e=>{A(e),c.container||u(!0)},closePopup:e=>{S(e),w(!0)},handlePopupClosed:()=>{u(!1),w(!1)},popupClosing:b,userExited:E,setUserExited:S,loadVideoPlayer:_,setLoadVideoPlayer:k,enableChapterAnnouncements:x,toggleChapterAnnouncements:()=>{P(!x)}}},t.globalContext=R.createContext(t.GLOBAL_DEFAULT_VALUE)},function(r,e,t){"use strict";!function(e){function t(e){return e&&e.Math===Math&&e}r.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||function(){return this}()||this||Function("return this")()}.call(this,t(26))},function(e,t,r){"use strict";var r=r(59),n=Function.prototype,i=n.call,n=r&&n.bind.bind(i,i);e.exports=r?n:function(e){return function(){return i.apply(e,arguments)}}},function(e,t,r){"use strict";var r=r(66),n=r.all;e.exports=r.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},function(e,t,r){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}})(),e.exports=r(107)},function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.videoContext=e.useVideo=e.VIDEO_DEFAULT_VALUE=void 0;const re=t(0),ne=t(97),ie=t(2),ae=t(5),oe=t(132),se=t(36),le=t(37),ce=t(135),ue=t(24);e.VIDEO_DEFAULT_VALUE={playerRef:null,story:null,play:!1,muted:!1,ready:!1,preloader:!0,hasStartedAtLeastOnce:!1,loading:!1,focused:!1,videoProgress:null,currentChapter:null,currentChapterIndex:0,setPlay:()=>{},setMuted:()=>{},setFocused:()=>{},setPreloader:()=>{},goToPreviousChapter:()=>{},goToNextChapter:()=>{},onKeyDown:()=>{}},e.useVideo=(n,o,c=!1)=>{const{autoSegue:d,playerOptions:e,disableAnalytics:f,apiBaseUrl:p,previewMode:h}=re.useContext(ie.optionsContext),g=!e.container&&!c,{stories:m,currentStoryIndex:y,setStoryIndex:v,closePopup:b,loadVideoPlayer:w,mutedByUser:E,setMutedByUser:S,popupClosing:_,userExited:k,toggleChapterAnnouncements:T}=re.useContext(ae.globalContext),i=o["chapters"],[O,a]=re.useState(e.autoStart||e.autoStartWithSound||w);var[c]=ne.useDebounce(O,30);const[x,P]=re.useState(!1),[C,A]=re.useState(!1),[R,L]=re.useState(!0),[D,I]=re.useState(!1),[M,F]=re.useState(!1),[s,j]=re.useState(i[0]),[r,N]=re.useState(0),[U,B]=re.useState(!1),[z,V]=re.useState(!1),t=re.useRef(!1),l=re.useMemo(()=>new oe.VideoProgress,[]),H=re.useMemo(()=>{const t=se.getMetricsSender(p,o);let r=0,n=!1,i=!1,a=!1;return e=>{C&&(t(e),e instanceof le.ChapterViewEvent&&(r+=e.duration,n||(n=!0,t(new le.StoryViewEvent)),!i&&10<=r&&(i=!0,t(new le.EngagedViewerEvent)),!a&&20<=r&&(a=!0,t(new le.InformedViewerEvent))))}},[p,o,C]),G=re.useMemo(()=>ce.getCallbackHandler(e.on,n.current),[e.on,n]),u=re.useCallback((e,...t)=>{f||H(e),e.callback&&G(e.callback,r,t)},[H,G,r,f]),K=re.useCallback(()=>0===r,[r]),W=re.useCallback(()=>r+1===i.length,[r,i]),$=re.useCallback(e=>{var e=e<0?i.length-1:e%i.length,t=null!==(t=o.frameRate)&&void 0!==t?t:30;let r=ue.VideoTime.alignFrame(i[e].begin,t,!1);return l.drift?r+=ue.VideoTime.ceil(l.drift,t,!1):r+=1/t,n.current.seekTo(ue.VideoTime.fixed(r),"seconds"),null},[i,n,l.drift,o.frameRate]),q=re.useCallback(e=>{e=e?-1:1;return!(!d||!m[y+e])&&(v(y+e),!0)},[d,y,v,m]);const Y=re.useCallback(()=>{e.loop?(u(new le.LoopEvent),$(0)):a(!1),q()||(!g||e.loop&&!d?(V(!0),$(0),A(!1),a(e.loop),u(new le.LoadedEvent)):b(!1))},[q,$,d,g,e,a,u,b]);var X=re.useCallback(()=>{t.current||(u(new le.ChapterViewEvent(s.id,s.duration)),u(new le.ChapterCompletedEvent(s.id)),u(new le.StoryCompletedEvent)),t.current=!1,Y()},[Y,u,s,t]);const Q=re.useCallback(()=>{t.current=!0,u(new le.ChapterViewEvent(s.id,l.seconds-s.begin)),u(new le.SkipPreviousEvent(s.id)),K()?q(!0)||(u(new le.LoopEvent),$(0)):$(r-1)},[q,$,K,r,u,s,t,l]),Z=re.useCallback(()=>{t.current=!0,u(new le.ChapterViewEvent(s.id,l.seconds-s.begin)),u(new le.SkipNextEvent(s.id)),W()?(u(new le.CloseEvent(s.id)),n.current.end()):($(r+1),a(!0))},[$,W,r,a,u,s,n,t,l]),J=re.useCallback(()=>{u(new le.ChapterViewEvent(s.id,l.seconds-s.begin))},[s,l,u]),ee=re.useCallback(()=>{u(new le.CloseEvent(s.id))},[u,s]);re.useEffect(()=>{_&&k&&(J(),ee())},[_]),re.useEffect(()=>(window.addEventListener("beforeunload",J),()=>{window.removeEventListener("beforeunload",J)}));var te=re.useCallback(t=>{if(g||U)switch(t.code||t.key){case"Q":case"q":case"KeyQ":case"Escape":case"Esc":if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)break;g&&(b(!0),t.preventDefault());break;case"L":case"l":case"KeyL":case"ArrowRight":case"Right":if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)break;Z(),t.preventDefault();break;case"J":case"j":case"KeyJ":case"ArrowLeft":case"Left":if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)break;Q(),t.preventDefault();break;case"K":case"k":case"KeyK":case" ":case"Space":case"Spacebar":if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)break;a(!O),t.preventDefault();break;case"M":case"m":case"KeyM":if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)break;P(!x),S(!x),t.preventDefault();break;case"Comma":{if(!t.ctrlKey)break;a(!1);var r=null!==(r=(h?s:o).frameRate)&&void 0!==r?r:30;let e=-1;l.drift&&(e+=ue.VideoTime.frameNumber(l.drift,r));var r=ue.VideoTime.nudgeFrame(l.internal,e,r,!0);n.current.seekTo(r,"seconds");break}case"Period":if(!t.ctrlKey)break;a(!1);var r=null!==(r=(h?s:o).frameRate)&&void 0!==r?r:30,e=l.drift?ue.VideoTime.frameNumber(ue.VideoTime.ceil(l.drift,r,!1),30):1,e=ue.VideoTime.nudgeFrame(l.internal,e,r,!0);n.current.seekTo(e,"seconds");break;case"c":case"C":case"KeyC":if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;T(),t.preventDefault();break;case"Enter":if(t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)return;(()=>{let e=document.activeElement;for(;e.shadowRoot;)e=e.shadowRoot.activeElement;return!!e&&(e.click(),!0)})()&&t.preventDefault()}},[g,U,O,x,P,S,Z,Q,b,n,l,s.frameRate,o.frameRate,h,T]);return{playerRef:n,story:o,play:c,muted:x,ready:D,hasStartedAtLeastOnce:C,loading:M,currentChapter:s,currentChapterIndex:r,preloader:R,focused:U,videoProgress:l,setPlay:a,setMuted:P,setPreloader:L,handleError:(...e)=>{u(new le.ErrorEvent,...e)},handleLinkClicked:e=>{u(new le.LinkClickedEvent(s.id,e)),window.open(e)},handleDrift:e=>{l.setDrift(e)},handleProgress:e=>{l.update(e);e=(e=>{let t=0;for(var r=i.length;t<r;t+=1)if(e<i[t].end)return t;return r-1})(ue.VideoTime.fixed(l.seconds));F(!1),L(!1),e!==r&&(t.current||z||(u(new le.ChapterViewEvent(s.id,s.duration)),u(new le.ChapterCompletedEvent(s.id))),t.current=!1,V(!1),j(i[e]),N(e))},handlePlay:()=>{u(new le.PlayEvent),a(!0),A(!0),e.autoStartWithSound&&D&&P(E)},handlePause:()=>{u(new le.PauseEvent)},handleStart:()=>{B(!0),A(!0)},handleEnded:X,handleReady:()=>{D||(u(new le.LoadedEvent),n.current.seekTo(i[0].begin,"seconds"),(e.autoStart&&!e.autoStartWithSound||E)&&P(!0),I(!0))},handleBuffer:()=>{F(!0)},handleBufferEnd:()=>{F(!1)},goToPreviousChapter:Q,goToNextChapter:Z,setFocused:B,onKeyDown:te}},e.videoContext=re.createContext(e.VIDEO_DEFAULT_VALUE)},function(e,t,r){"use strict";r=r(9);e.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIRTUAL_HEIGHT=t.VIRTUAL_WIDTH=t.STORY_ASPECT=t.STORY_HEIGHT=t.STORY_WIDTH=void 0,t.STORY_WIDTH=1080,t.STORY_HEIGHT=1920,t.STORY_ASPECT=t.STORY_WIDTH/t.STORY_HEIGHT,t.VIRTUAL_WIDTH=612,t.VIRTUAL_HEIGHT=1088},function(e,t,r){"use strict";var n=r(7),i=r(72),a=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(i(e),t)}},function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){e[n=void 0===n?r:n]=t[r]}),i=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||n(t,e,r)},a=(Object.defineProperty(t,"__esModule",{value:!0}),r(33)),o=(Object.defineProperty(t,"en",{enumerable:!0,get:function(){return a.en}}),r(49)),s=(Object.defineProperty(t,"no",{enumerable:!0,get:function(){return o.no}}),r(50)),l=(Object.defineProperty(t,"nn",{enumerable:!0,get:function(){return s.nn}}),i(r(51),t),r(116));Object.defineProperty(t,"localeContext",{enumerable:!0,get:function(){return l.localeContext}}),Object.defineProperty(t,"useLocale",{enumerable:!0,get:function(){return l.useLocale}})},function(c,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.parseStartTime=function(e){return o(e,f)},e.parseEndTime=function(e){return o(e,p)},e.randomString=function(){return Math.random().toString(36).substr(2,5)},e.queryString=function(t){return Object.keys(t).map(function(e){return"".concat(e,"=").concat(t[e])}).join("&")},e.getSDK=function(i,a){var o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,e=3<arguments.length&&void 0!==arguments[3]?arguments[3]:function(){return!0},s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:r.default,t=l(a);if(t&&e(t))return Promise.resolve(t);return new Promise(function(e,t){var r,n;u[i]?u[i].push({resolve:e,reject:t}):(u[i]=[{resolve:e,reject:t}],r=function(t){u[i].forEach(function(e){return e.resolve(t)})},o&&(n=window[o],window[o]=function(){n&&n(),r(l(a))}),s(i,function(t){t?(u[i].forEach(function(e){return e.reject(t)}),u[i]=null):o||r(l(a))}))})},e.getConfig=function(e,t){return(0,n.default)(t.config,e.config)},e.omit=function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var u=(a=[]).concat.apply(a,r),i={},a=Object.keys(e),o=0,s=a;o<s.length;o++){var l=s[o];-1===u.indexOf(l)&&(i[l]=e[l])}return i},e.callPlayer=function(e){{var t;if(!this.player||!this.player[e])return t="ReactPlayer: ".concat(this.constructor.displayName," player could not call %c").concat(e,"%c – "),this.player?this.player[e]||(t+="The method was not available"):t+="The player was not available",console.warn(t,"font-weight: bold",""),null}for(var r=arguments.length,n=new Array(1<r?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return(t=this.player)[e].apply(t,n)},e.isMediaStream=function(e){return"undefined"!=typeof window&&void 0!==window.MediaStream&&e instanceof window.MediaStream},e.isBlobUrl=function(e){return/^blob:/.test(e)},e.supportsWebKitPresentationMode=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:document.createElement("video"),t=!1===/iPhone|iPod/.test(navigator.userAgent);return e.webkitSupportsPresentationMode&&"function"==typeof e.webkitSetPresentationMode&&t};var r=i(t(198)),n=i(t(85));function i(e){return e&&e.__esModule?e:{default:e}}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(e,t):void 0}}(e,t)||function(){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 a(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var f=/[?&#](?:start|t)=([0-9hms]+)/,p=/[?&#]end=([0-9hms]+)/,s=/(\d+)(h|m|s)/g,h=/^\d+$/;function o(e,t){if(!(e instanceof Array)){e=e.match(t);if(e){t=e[1];if(t.match(s)){for(var r=t,n=0,i=s.exec(r);null!==i;){var a=d(i,3),o=a[1],a=a[2];"h"===a&&(n+=60*parseInt(o,10)*60),"m"===a&&(n+=60*parseInt(o,10)),"s"===a&&(n+=parseInt(o,10)),i=s.exec(r)}return n}if(h.test(t))return parseInt(t)}}}function l(e){return window[e]||(window.exports&&window.exports[e]?window.exports[e]:window.module&&window.module.exports&&window.module.exports[e]?window.module.exports[e]:null)}var u={}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(112),i=(Object.defineProperty(t,"FontLoader",{enumerable:!0,get:function(){return n.FontLoader}}),r(47)),a=(Object.defineProperty(t,"fontsContext",{enumerable:!0,get:function(){return i.fontsContext}}),Object.defineProperty(t,"useFonts",{enumerable:!0,get:function(){return i.useFonts}}),r(48)),o=(Object.defineProperty(t,"googleFontFamilies",{enumerable:!0,get:function(){return a.googleFontFamilies}}),Object.defineProperty(t,"googleFontWeights",{enumerable:!0,get:function(){return a.googleFontWeights}}),Object.defineProperty(t,"systemFontFamilies",{enumerable:!0,get:function(){return a.systemFontFamilies}}),Object.defineProperty(t,"CUSTOM_FONT_FAMILY_SUFFIX",{enumerable:!0,get:function(){return a.CUSTOM_FONT_FAMILY_SUFFIX}}),r(115));Object.defineProperty(t,"resolveFonts",{enumerable:!0,get:function(){return o.resolveFonts}})},function(e,S,_){"use strict";!function(t){Object.defineProperty(S,"__esModule",{value:!0});var h=_(0),s=_(120),n=_(1),l=_(10),e=_(34);function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var g=r(h),i=r(e),u="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};function a(e,t){return e(t={exports:{}},t.exports),t.exports}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d=a(function(e){function s(e,t,r){if(t!==Object(t)||"[object Date]"==l.call(t)||"[object RegExp]"==l.call(t)||"[object Boolean]"==l.call(t)||"function"==typeof t)return t;var n,i,a=0;if("[object Array]"==l.call(t))for(n=[],i=t.length;a<i;a++)n.push(s(e,t[a],r));else for(var o in n={},t)Object.prototype.hasOwnProperty.call(t,o)&&(n[e(o,r)]=s(e,t[o],r));return n}function r(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,function(e,t){return t?t.toUpperCase():""})).substr(0,1).toLowerCase()+e.substr(1);var t}function n(e){return(e=r(e)).substr(0,1).toUpperCase()+e.substr(1)}function i(e,t){return r=(t=t||{}).separator||"_",t=t.split||/(?=[A-Z])/,e.split(t).join(r).toLowerCase();var r}function a(r,e){var n=e&&"process"in e?e.process:e;return"function"!=typeof n?r:function(e,t){return n(e,r,t)}}var t,l,o;t=u,l=Object.prototype.toString,o={camelize:r,decamelize:i,pascalize:n,depascalize:i,camelizeKeys:function(e,t){return s(a(r,t),e)},decamelizeKeys:function(e,t){return s(a(i,t),e,t)},pascalizeKeys:function(e,t){return s(a(n,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}},e.exports?e.exports=o:t.humps=o}).decamelize,y=a(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.apply(this,arguments)}e.exports=t}),v=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(n=(o=s.next()).done)&&(r.push(o.value),!t||r.length!==t);n=!0);}catch(e){i=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw a}}return r}}(e,t)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},b=function(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};for(var r,n={},i=Object.keys(e),a=0;a<i.length;a++)r=i[a],0<=t.indexOf(r)||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),a=0;a<i.length;a++)r=i[a],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n},w=h.createContext(null);function m(e){var t=e.root,e=e.children;return l.createPortal(e,t)}function f(p){var e=h.forwardRef(function(e,i){var t,r,a=e.mode,c=e.delegatesFocus,o=e.styleSheets,s=e.ssr,d=e.children,e=b(e,["mode","delegatesFocus","styleSheets","ssr","children"]),l=(t=i,r=h.useRef(t&&t.current),h.useEffect(function(){t&&(t.current=r.current)},[t]),r),n=h.useState(null),n=v(n,2),u=n[0],f=n[1],n="node_".concat(a).concat(c);return h.useEffect(function(){if(l.current)try{var e;if("function"==typeof i&&i(l.current),s)return e=l.current.shadowRoot,void f(e);var t=l.current.attachShadow({mode:a,delegatesFocus:c});0<o.length&&(t.adoptedStyleSheets=o),f(t)}catch(e){var r=(t={error:e,styleSheets:o,root:u}).error,n=t.styleSheets,t=t.root;if("NotSupportedError"!==r.name)throw r;0<n.length&&(t.adoptedStyleSheets=n)}},[i,l,o]),g.default.createElement(g.default.Fragment,null,g.default.createElement(p.tag,y({key:n,ref:l},e),(u||s)&&g.default.createElement(w.Provider,{value:u},s?g.default.createElement("template",{shadowroot:"open"},p.render({root:u,ssr:s,children:d})):g.default.createElement(m,{root:u},p.render({root:u,ssr:s,children:d})))))});return e.propTypes={mode:i.default.oneOf(["open","closed"]),delegatesFocus:i.default.bool,styleSheets:i.default.arrayOf(i.default.instanceOf(t.CSSStyleSheet)),ssr:i.default.bool,children:i.default.node},e.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},e}m.propTypes={root:i.default.object.isRequired,children:i.default.node},m.defaultProps={children:null};var o=new Map;function p(e,t,r){var e=0<arguments.length&&void 0!==e?e:{},n=1<arguments.length&&void 0!==t?t:"core",i=2<arguments.length&&void 0!==r?r:function(e){return e.children};return new Proxy(e,{get:function(e,t){var t=d(t,{separator:"-"}),r="".concat(n,"-").concat(t);return o.has(r)||o.set(r,f({tag:t,render:i})),o.get(r)}})}function E(e){var t=new n.ServerStyleSheet;return s.renderToString(g.default.createElement(n.StyleSheetManager,{sheet:t.instance},g.default.createElement(g.default.Fragment,null,e))),t.getStyleElement()}p();e=p({},"styled-components",function(e){var t=e.root,r=e.ssr,e=e.children;return r?g.default.createElement(g.default.Fragment,null,E(e),e):g.default.createElement(n.StyleSheetManager,{target:t},g.default.createElement(g.default.Fragment,null,e))});S.default=e,S.getStyleSheets=E}.call(this,_(26))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sizeContext=void 0;const n=r(0);t.sizeContext=n.createContext({height:0,width:0})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rootStyle=void 0,t.rootStyle=` .gobi-screen-reader { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }`},function(e,t,r){"use strict";var n=r(8),r=r(66),i=r.all;e.exports=r.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},function(s,e,t){"use strict";t.r(e),t.d(e,"InView",function(){return r}),t.d(e,"default",function(){return r}),t.d(e,"defaultFallbackInView",function(){return l}),t.d(e,"observe",function(){return h}),t.d(e,"useInView",function(){return d});var p=t(0);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f=new Map,n=new WeakMap,o=0,g=void 0;function l(e){g=e}function m(r){return Object.keys(r).sort().filter(function(e){return void 0!==r[e]}).map(function(e){return e+"_"+("root"===e?(t=r.root)?(n.has(t)||(o+=1,n.set(t,o.toString())),n.get(t)):"0":r[e]);var t}).toString()}function h(e,t,r,n){if(void 0===r&&(r={}),void 0===n&&(n=g),void 0===window.IntersectionObserver&&void 0!==n)return o=e.getBoundingClientRect(),t(n,{isIntersecting:n,target:e,intersectionRatio:"number"==typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),function(){};n=m(i=r),(o=f.get(n))||(a=new Map,c=(r=new IntersectionObserver(function(e){e.forEach(function(t){var e,r=t.isIntersecting&&c.some(function(e){return t.intersectionRatio>=e});i.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),null!=(e=a.get(t.target))&&e.forEach(function(e){e(r,t)})})},i)).thresholds||(Array.isArray(i.threshold)?i.threshold:[i.threshold||0]),f.set(n,o={id:n,observer:r,elements:a}));var i,a,c,o,n=o,d=n.id,s=n.observer,l=n.elements,u=l.get(e)||[];return l.has(e)||l.set(e,u),u.push(t),s.observe(e),function(){u.splice(u.indexOf(t),1),0===u.length&&(l.delete(e),s.unobserve(e)),0===l.size&&(s.disconnect(),f.delete(d))}}var u=["children","as","tag","triggerOnce","threshold","root","rootMargin","onChange","skip","trackVisibility","delay","initialInView","fallbackInView"];function c(e){return"function"!=typeof e.children}var r=function(t){var e;function r(e){var r=t.call(this,e)||this;return r.node=null,r._unobserveCb=null,r.handleNode=function(e){r.node&&(r.unobserve(),e||r.props.triggerOnce||r.props.skip||r.setState({inView:!!r.props.initialInView,entry:void 0})),r.node=e||null,r.observeNode()},r.handleChange=function(e,t){e&&r.props.triggerOnce&&r.unobserve(),c(r.props)||r.setState({inView:e,entry:t}),r.props.onChange&&r.props.onChange(e,t)},r.state={inView:!!e.initialInView,entry:void 0},r}e=t,(n=r).prototype=Object.create(e.prototype),a(n.prototype.constructor=n,e);var n=r.prototype;return n.componentDidUpdate=function(e){e.rootMargin===this.props.rootMargin&&e.root===this.props.root&&e.threshold===this.props.threshold&&e.skip===this.props.skip&&e.trackVisibility===this.props.trackVisibility&&e.delay===this.props.delay||(this.unobserve(),this.observeNode())},n.componentWillUnmount=function(){this.unobserve(),this.node=null},n.observeNode=function(){var e,t,r,n,i,a;this.node&&!this.props.skip&&(e=(a=this.props).threshold,t=a.root,r=a.rootMargin,n=a.trackVisibility,i=a.delay,a=a.fallbackInView,this._unobserveCb=h(this.node,this.handleChange,{threshold:e,root:t,rootMargin:r,trackVisibility:n,delay:i},a))},n.unobserve=function(){this._unobserveCb&&(this._unobserveCb(),this._unobserveCb=null)},n.render=function(){if(!c(this.props))return e=(t=this.state).inView,t=t.entry,this.props.children({inView:e,entry:t,ref:this.handleNode});var e=this.props,t=e.children,r=e.as,n=e.tag,e=function(e,t){if(null==e)return{};for(var r,n={},i=Object.keys(e),a=0;a<i.length;a++)r=i[a],0<=t.indexOf(r)||(n[r]=e[r]);return n}(e,u);return p.createElement(r||n||"div",i({ref:this.handleNode},e),t)},r}(p.Component);function d(e){var e=void 0===e?{}:e,t=e.threshold,r=e.delay,n=e.trackVisibility,i=e.rootMargin,a=e.root,o=e.triggerOnce,s=e.skip,c=e.initialInView,d=e.fallbackInView,l=p.useRef(),e=p.useState({inView:!!c}),u=e[0],f=e[1],e=p.useCallback(function(e){void 0!==l.current&&(l.current(),l.current=void 0),s||e&&(l.current=h(e,function(e,t){f({inView:e,entry:t}),t.isIntersecting&&o&&l.current&&(l.current(),l.current=void 0)},{root:a,rootMargin:i,threshold:t,trackVisibility:n,delay:r},d))},[Array.isArray(t)?t.toString():t,a,i,o,s,n,d,r]),e=(Object(p.useEffect)(function(){l.current||!u.entry||o||s||f({inView:!!c})}),[e,u.inView,u.entry]);return e.ref=e[0],e.inView=e[1],e.entry=e[2],e}r.displayName="InView",r.defaultProps={threshold:0,triggerOnce:!1,initialInView:!1}},function(u,e,t){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.App=void 0;const n=r(t(0)),i=t(2),a=t(5),o=t(17),s=t(15);function l({children:e}){var t,r=a.useGlobal();return(null===(t=r.stories)||void 0===t?void 0:t.length)||(null===(t=r.emptyStories)||void 0===t?void 0:t.length)?n.default.createElement(a.globalContext.Provider,{value:r},e):null}e.App=function({children:e,options:t}){return n.default.createElement(i.optionsContext.Provider,{value:t},n.default.createElement(o.fontsContext.Provider,{value:o.useFonts()},n.default.createElement(s.localeContext.Provider,{value:s.useLocale(document.documentElement.lang||navigator.language)},n.default.createElement(o.FontLoader,null,n.default.createElement(l,null,e)))))}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoTime=void 0;const n=5,i=10**n;function a(e,t){return e/t}function o(e){return Number.isInteger(e)||e.toString().split(".")[1].length<n?e:Math.ceil((e+Number.EPSILON)*i)/i}function s(e,t){return Math.floor(o(e*t))}t.VideoTime={alignFrame:function(e,t,r){return e=s(e,t)/t,r?o(e):e},nudgeFrame:function(e,t,r,n=!1){return e=(s(e,r)+t)/r,n?o(e):e},frameNumber:s,frameTime:a,fixed:o,ceil:function(e,t,r){return e=Math.ceil(o(e*t))/t,r?o(e):e}},window.videoTime=t.VideoTime},function(e,t,r){"use strict";Object.defineProperty(t,"