@devix-technologies/react-gjirafa-vp-player 1.0.1 → 1.0.3

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.
@@ -1,4 +1,4 @@
1
- (function(X,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],w):(X=typeof globalThis<"u"?globalThis:X||self,w(X.ReactGjirafaVPPlayer={},X.React))})(this,function(X,w){"use strict";function ur(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const H=ur(w);var de={exports:{}},ae={};/**
1
+ (function(_,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],w):(_=typeof globalThis<"u"?globalThis:_||self,w(_.ReactGjirafaVPPlayer={},_.React))})(this,function(_,w){"use strict";function bt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const H=bt(w);var fe={exports:{}},ae={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var Ne;function fr(){if(Ne)return ae;Ne=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(n,a,i){var c=null;if(i!==void 0&&(c=""+i),a.key!==void 0&&(c=""+a.key),"key"in a){i={};for(var s in a)s!=="key"&&(i[s]=a[s])}else i=a;return a=i.ref,{$$typeof:e,type:n,key:c,ref:a!==void 0?a:null,props:i}}return ae.Fragment=r,ae.jsx=t,ae.jsxs=t,ae}var ie={};/**
9
+ */var Ve;function xt(){if(Ve)return ae;Ve=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function r(n,a,i){var c=null;if(i!==void 0&&(c=""+i),a.key!==void 0&&(c=""+a.key),"key"in a){i={};for(var s in a)s!=="key"&&(i[s]=a[s])}else i=a;return a=i.ref,{$$typeof:e,type:n,key:c,ref:a!==void 0?a:null,props:i}}return ae.Fragment=t,ae.jsx=r,ae.jsxs=r,ae}var ie={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,12 +14,12 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Me;function dr(){return Me||(Me=1,process.env.NODE_ENV!=="production"&&function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===$?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case p:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case S:return"Suspense";case C:return"SuspenseList";case z:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case x:return"Portal";case T:return(o.displayName||"Context")+".Provider";case v:return(o._context.displayName||"Context")+".Consumer";case R:var g=o.render;return o=o.displayName,o||(o=g.displayName||g.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case d:return g=o.displayName||null,g!==null?g:e(o.type)||"Memo";case I:g=o._payload,o=o._init;try{return e(o(g))}catch{}}return null}function r(o){return""+o}function t(o){try{r(o);var g=!1}catch{g=!0}if(g){g=console;var _=g.error,N=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return _.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",N),r(o)}}function n(o){if(o===p)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===I)return"<...>";try{var g=e(o);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function a(){var o=L.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function c(o){if(G.call(o,"key")){var g=Object.getOwnPropertyDescriptor(o,"key").get;if(g&&g.isReactWarning)return!1}return o.key!==void 0}function s(o,g){function _(){fe||(fe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}_.isReactWarning=!0,Object.defineProperty(o,"key",{get:_,configurable:!0})}function f(){var o=e(this.type);return J[o]||(J[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function h(o,g,_,N,Z,q,je,$e){return _=q.ref,o={$$typeof:E,type:o,key:g,props:q,_owner:Z},(_!==void 0?_:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:f}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:je}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function l(o,g,_,N,Z,q,je,$e){var M=g.children;if(M!==void 0)if(N)if(B(M)){for(N=0;N<M.length;N++)u(M[N]);Object.freeze&&Object.freeze(M)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(M);if(G.call(g,"key")){M=e(o);var ne=Object.keys(g).filter(function(Tt){return Tt!=="key"});N=0<ne.length?"{key: someKey, "+ne.join(": ..., ")+": ...}":"{key: someKey}",lr[M+N]||(ne=0<ne.length?"{"+ne.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
17
+ */var Be;function wt(){return Be||(Be=1,process.env.NODE_ENV!=="production"&&function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===$?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case p:return"Fragment";case v:return"Profiler";case y:return"StrictMode";case S:return"Suspense";case T:return"SuspenseList";case D:return"Activity"}if(typeof o=="object")switch(typeof o.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),o.$$typeof){case x:return"Portal";case A:return(o.displayName||"Context")+".Provider";case b:return(o._context.displayName||"Context")+".Consumer";case O:var g=o.render;return o=o.displayName,o||(o=g.displayName||g.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case f:return g=o.displayName||null,g!==null?g:e(o.type)||"Memo";case j:g=o._payload,o=o._init;try{return e(o(g))}catch{}}return null}function t(o){return""+o}function r(o){try{t(o);var g=!1}catch{g=!0}if(g){g=console;var C=g.error,F=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return C.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",F),t(o)}}function n(o){if(o===p)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===j)return"<...>";try{var g=e(o);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function a(){var o=B.A;return o===null?null:o.getOwner()}function i(){return Error("react-stack-top-frame")}function c(o){if(X.call(o,"key")){var g=Object.getOwnPropertyDescriptor(o,"key").get;if(g&&g.isReactWarning)return!1}return o.key!==void 0}function s(o,g){function C(){de||(de=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",g))}C.isReactWarning=!0,Object.defineProperty(o,"key",{get:C,configurable:!0})}function d(){var o=e(this.type);return J[o]||(J[o]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),o=this.props.ref,o!==void 0?o:null}function h(o,g,C,F,Z,G,$e,Ne){return C=G.ref,o={$$typeof:k,type:o,key:g,props:G,_owner:Z},(C!==void 0?C:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:d}):Object.defineProperty(o,"ref",{enumerable:!1,value:null}),o._store={},Object.defineProperty(o._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(o,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(o,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function l(o,g,C,F,Z,G,$e,Ne){var V=g.children;if(V!==void 0)if(F)if(z(V)){for(F=0;F<V.length;F++)u(V[F]);Object.freeze&&Object.freeze(V)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else u(V);if(X.call(g,"key")){V=e(o);var ne=Object.keys(g).filter(function(Fr){return Fr!=="key"});F=0<ne.length?"{key: someKey, "+ne.join(": ..., ")+": ...}":"{key: someKey}",vt[V+F]||(ne=0<ne.length?"{"+ne.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
18
  let props = %s;
19
19
  <%s {...props} />
20
20
  React keys must be passed directly to JSX without using spread:
21
21
  let props = %s;
22
- <%s key={someKey} {...props} />`,N,M,ne,M),lr[M+N]=!0)}if(M=null,_!==void 0&&(t(_),M=""+_),c(g)&&(t(g.key),M=""+g.key),"key"in g){_={};for(var Fe in g)Fe!=="key"&&(_[Fe]=g[Fe])}else _=g;return M&&s(_,typeof o=="function"?o.displayName||o.name||"Unknown":o),h(o,M,q,Z,a(),_,je,$e)}function u(o){typeof o=="object"&&o!==null&&o.$$typeof===E&&o._store&&(o._store.validated=1)}var m=w,E=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),v=Symbol.for("react.consumer"),T=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),z=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),L=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=Object.prototype.hasOwnProperty,B=Array.isArray,K=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(o){return o()}};var fe,J={},sr=m["react-stack-bottom-frame"].bind(m,i)(),cr=K(n(i)),lr={};ie.Fragment=p,ie.jsx=function(o,g,_,N,Z){var q=1e4>L.recentlyCreatedOwnerStacks++;return l(o,g,_,!1,N,Z,q?Error("react-stack-top-frame"):sr,q?K(n(o)):cr)},ie.jsxs=function(o,g,_,N,Z){var q=1e4>L.recentlyCreatedOwnerStacks++;return l(o,g,_,!0,N,Z,q?Error("react-stack-top-frame"):sr,q?K(n(o)):cr)}}()),ie}var Le;function pr(){return Le||(Le=1,process.env.NODE_ENV==="production"?de.exports=fr():de.exports=dr()),de.exports}var O=pr();function Pe(){return Pe=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},Pe.apply(null,arguments)}function hr(e){if(e.sheet)return e.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===e)return document.styleSheets[r]}function mr(e){var r=document.createElement("style");return r.setAttribute("data-emotion",e.key),e.nonce!==void 0&&r.setAttribute("nonce",e.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var yr=function(){function e(t){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=t.speedy===void 0?!0:t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var r=e.prototype;return r.hydrate=function(n){n.forEach(this._insertTag)},r.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(mr(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=hr(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},r.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),F="-ms-",pe="-moz-",P="-webkit-",Ve="comm",ke="rule",Ee="decl",gr="@import",ze="@keyframes",br="@layer",vr=Math.abs,he=String.fromCharCode,xr=Object.assign;function wr(e,r){return j(e,0)^45?(((r<<2^j(e,0))<<2^j(e,1))<<2^j(e,2))<<2^j(e,3):0}function De(e){return e.trim()}function Pr(e,r){return(e=r.exec(e))?e[0]:e}function k(e,r,t){return e.replace(r,t)}function Se(e,r){return e.indexOf(r)}function j(e,r){return e.charCodeAt(r)|0}function oe(e,r,t){return e.slice(r,t)}function U(e){return e.length}function Te(e){return e.length}function me(e,r){return r.push(e),e}function kr(e,r){return e.map(r).join("")}var ye=1,Q=1,Be=0,V=0,A=0,ee="";function ge(e,r,t,n,a,i,c){return{value:e,root:r,parent:t,type:n,props:a,children:i,line:ye,column:Q,length:c,return:""}}function se(e,r){return xr(ge("",null,null,"",null,null,0),e,{length:-e.length},r)}function Er(){return A}function Sr(){return A=V>0?j(ee,--V):0,Q--,A===10&&(Q=1,ye--),A}function D(){return A=V<Be?j(ee,V++):0,Q++,A===10&&(Q=1,ye++),A}function W(){return j(ee,V)}function be(){return V}function ce(e,r){return oe(ee,e,r)}function le(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ue(e){return ye=Q=1,Be=U(ee=e),V=0,[]}function We(e){return ee="",e}function ve(e){return De(ce(V-1,Ce(e===91?e+2:e===40?e+1:e)))}function Tr(e){for(;(A=W())&&A<33;)D();return le(e)>2||le(A)>3?"":" "}function Cr(e,r){for(;--r&&D()&&!(A<48||A>102||A>57&&A<65||A>70&&A<97););return ce(e,be()+(r<6&&W()==32&&D()==32))}function Ce(e){for(;D();)switch(A){case e:return V;case 34:case 39:e!==34&&e!==39&&Ce(A);break;case 40:e===41&&Ce(e);break;case 92:D();break}return V}function _r(e,r){for(;D()&&e+A!==57;)if(e+A===84&&W()===47)break;return"/*"+ce(r,V-1)+"*"+he(e===47?e:D())}function Ar(e){for(;!le(W());)D();return ce(e,V)}function Rr(e){return We(xe("",null,null,null,[""],e=Ue(e),0,[0],e))}function xe(e,r,t,n,a,i,c,s,f){for(var h=0,l=0,u=c,m=0,E=0,x=0,p=1,y=1,b=1,v=0,T="",R=a,S=i,C=n,d=T;y;)switch(x=v,v=D()){case 40:if(x!=108&&j(d,u-1)==58){Se(d+=k(ve(v),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:d+=ve(v);break;case 9:case 10:case 13:case 32:d+=Tr(x);break;case 92:d+=Cr(be()-1,7);continue;case 47:switch(W()){case 42:case 47:me(Or(_r(D(),be()),r,t),f);break;default:d+="/"}break;case 123*p:s[h++]=U(d)*b;case 125*p:case 59:case 0:switch(v){case 0:case 125:y=0;case 59+l:b==-1&&(d=k(d,/\f/g,"")),E>0&&U(d)-u&&me(E>32?qe(d+";",n,t,u-1):qe(k(d," ","")+";",n,t,u-2),f);break;case 59:d+=";";default:if(me(C=Ye(d,r,t,h,l,a,s,T,R=[],S=[],u),i),v===123)if(l===0)xe(d,r,C,C,R,i,u,s,S);else switch(m===99&&j(d,3)===110?100:m){case 100:case 108:case 109:case 115:xe(e,C,C,n&&me(Ye(e,C,C,0,0,a,s,T,a,R=[],u),S),a,S,u,s,n?R:S);break;default:xe(d,C,C,C,[""],S,0,s,S)}}h=l=E=0,p=b=1,T=d="",u=c;break;case 58:u=1+U(d),E=x;default:if(p<1){if(v==123)--p;else if(v==125&&p++==0&&Sr()==125)continue}switch(d+=he(v),v*p){case 38:b=l>0?1:(d+="\f",-1);break;case 44:s[h++]=(U(d)-1)*b,b=1;break;case 64:W()===45&&(d+=ve(D())),m=W(),l=u=U(T=d+=Ar(be())),v++;break;case 45:x===45&&U(d)==2&&(p=0)}}return i}function Ye(e,r,t,n,a,i,c,s,f,h,l){for(var u=a-1,m=a===0?i:[""],E=Te(m),x=0,p=0,y=0;x<n;++x)for(var b=0,v=oe(e,u+1,u=vr(p=c[x])),T=e;b<E;++b)(T=De(p>0?m[b]+" "+v:k(v,/&\f/g,m[b])))&&(f[y++]=T);return ge(e,r,t,a===0?ke:s,f,h,l)}function Or(e,r,t){return ge(e,r,t,Ve,he(Er()),oe(e,2,-2),0)}function qe(e,r,t,n){return ge(e,r,t,Ee,oe(e,0,n),oe(e,n+1,-1),n)}function re(e,r){for(var t="",n=Te(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function Ir(e,r,t,n){switch(e.type){case br:if(e.children.length)break;case gr:case Ee:return e.return=e.return||e.value;case Ve:return"";case ze:return e.return=e.value+"{"+re(e.children,n)+"}";case ke:e.value=e.props.join(",")}return U(t=re(e.children,n))?e.return=e.value+"{"+t+"}":""}function jr(e){var r=Te(e);return function(t,n,a,i){for(var c="",s=0;s<r;s++)c+=e[s](t,n,a,i)||"";return c}}function $r(e){return function(r){r.root||(r=r.return)&&e(r)}}function He(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Fr=function(r,t,n){for(var a=0,i=0;a=i,i=W(),a===38&&i===12&&(t[n]=1),!le(i);)D();return ce(r,V)},Nr=function(r,t){var n=-1,a=44;do switch(le(a)){case 0:a===38&&W()===12&&(t[n]=1),r[n]+=Fr(V-1,t,n);break;case 2:r[n]+=ve(a);break;case 4:if(a===44){r[++n]=W()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=he(a)}while(a=D());return r},Mr=function(r,t){return We(Nr(Ue(r),t))},Ge=new WeakMap,Lr=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var t=r.value,n=r.parent,a=r.column===n.column&&r.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(r.props.length===1&&t.charCodeAt(0)!==58&&!Ge.get(n))&&!a){Ge.set(r,!0);for(var i=[],c=Mr(t,i),s=n.props,f=0,h=0;f<c.length;f++)for(var l=0;l<s.length;l++,h++)r.props[h]=i[f]?c[f].replace(/&\f/g,s[l]):s[l]+" "+c[f]}}},Vr=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function Xe(e,r){switch(wr(e,r)){case 5103:return P+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return P+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return P+e+pe+e+F+e+e;case 6828:case 4268:return P+e+F+e+e;case 6165:return P+e+F+"flex-"+e+e;case 5187:return P+e+k(e,/(\w+).+(:[^]+)/,P+"box-$1$2"+F+"flex-$1$2")+e;case 5443:return P+e+F+"flex-item-"+k(e,/flex-|-self/,"")+e;case 4675:return P+e+F+"flex-line-pack"+k(e,/align-content|flex-|-self/,"")+e;case 5548:return P+e+F+k(e,"shrink","negative")+e;case 5292:return P+e+F+k(e,"basis","preferred-size")+e;case 6060:return P+"box-"+k(e,"-grow","")+P+e+F+k(e,"grow","positive")+e;case 4554:return P+k(e,/([^-])(transform)/g,"$1"+P+"$2")+e;case 6187:return k(k(k(e,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),e,"")+e;case 5495:case 3959:return k(e,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return k(k(e,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+F+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+e+e;case 4095:case 3583:case 4068:case 2532:return k(e,/(.+)-inline(.+)/,P+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(U(e)-1-r>6)switch(j(e,r+1)){case 109:if(j(e,r+4)!==45)break;case 102:return k(e,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+pe+(j(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Se(e,"stretch")?Xe(k(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(j(e,r+1)!==115)break;case 6444:switch(j(e,U(e)-3-(~Se(e,"!important")&&10))){case 107:return k(e,":",":"+P)+e;case 101:return k(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(j(e,14)===45?"inline-":"")+"box$3$1"+P+"$2$3$1"+F+"$2box$3")+e}break;case 5936:switch(j(e,r+11)){case 114:return P+e+F+k(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return P+e+F+k(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return P+e+F+k(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return P+e+F+e+e}return e}var zr=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case Ee:r.return=Xe(r.value,r.length);break;case ze:return re([se(r,{value:k(r.value,"@","@"+P)})],a);case ke:if(r.length)return kr(r.props,function(i){switch(Pr(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return re([se(r,{props:[k(i,/:(read-\w+)/,":"+pe+"$1")]})],a);case"::placeholder":return re([se(r,{props:[k(i,/:(plac\w+)/,":"+P+"input-$1")]}),se(r,{props:[k(i,/:(plac\w+)/,":"+pe+"$1")]}),se(r,{props:[k(i,/:(plac\w+)/,F+"input-$1")]})],a)}return""})}},Dr=[zr],Br=function(r){var t=r.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var a=r.stylisPlugins||Dr,i={},c,s=[];c=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)i[y[b]]=!0;s.push(p)});var f,h=[Lr,Vr];{var l,u=[Ir,$r(function(p){l.insert(p)})],m=jr(h.concat(a,u)),E=function(y){return re(Rr(y),m)};f=function(y,b,v,T){l=v,E(y?y+"{"+b.styles+"}":b.styles),T&&(x.inserted[b.name]=!0)}}var x={key:t,sheet:new yr({key:t,container:c,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:i,registered:{},insert:f};return x.sheet.hydrate(s),x},Ur=!0;function Wr(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var Ke=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||Ur===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},Yr=function(r,t,n){Ke(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var i=t;do r.insert(t===i?"."+a:"",i,r.sheet,!0),i=i.next;while(i!==void 0)}};function qr(e){for(var r=0,t,n=0,a=e.length;a>=4;++n,a-=4)t=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,r=(t&65535)*1540483477+((t>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(e.charCodeAt(n+2)&255)<<16;case 2:r^=(e.charCodeAt(n+1)&255)<<8;case 1:r^=e.charCodeAt(n)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var Hr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Gr=/[A-Z]|^ms/g,Xr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Je=function(r){return r.charCodeAt(1)===45},Ze=function(r){return r!=null&&typeof r!="boolean"},_e=He(function(e){return Je(e)?e:e.replace(Gr,"-$&").toLowerCase()}),Qe=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(Xr,function(n,a,i){return Y={name:a,styles:i,next:Y},a})}return Hr[r]!==1&&!Je(r)&&typeof t=="number"&&t!==0?t+"px":t};function ue(e,r,t){if(t==null)return"";var n=t;if(n.__emotion_styles!==void 0)return n;switch(typeof t){case"boolean":return"";case"object":{var a=t;if(a.anim===1)return Y={name:a.name,styles:a.styles,next:Y},a.name;var i=t;if(i.styles!==void 0){var c=i.next;if(c!==void 0)for(;c!==void 0;)Y={name:c.name,styles:c.styles,next:Y},c=c.next;var s=i.styles+";";return s}return Kr(e,r,t)}case"function":{if(e!==void 0){var f=Y,h=t(e);return Y=f,ue(e,r,h)}break}}var l=t;if(r==null)return l;var u=r[l];return u!==void 0?u:l}function Kr(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=ue(e,r,t[a])+";";else for(var i in t){var c=t[i];if(typeof c!="object"){var s=c;r!=null&&r[s]!==void 0?n+=i+"{"+r[s]+"}":Ze(s)&&(n+=_e(i)+":"+Qe(i,s)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(r==null||r[c[0]]===void 0))for(var f=0;f<c.length;f++)Ze(c[f])&&(n+=_e(i)+":"+Qe(i,c[f])+";");else{var h=ue(e,r,c);switch(i){case"animation":case"animationName":{n+=_e(i)+":"+h+";";break}default:n+=i+"{"+h+"}"}}}return n}var er=/label:\s*([^\s;{]+)\s*(;|$)/g,Y;function Jr(e,r,t){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";Y=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=ue(t,r,i);else{var c=i;a+=c[0]}for(var s=1;s<e.length;s++)if(a+=ue(t,r,e[s]),n){var f=i;a+=f[s]}er.lastIndex=0;for(var h="",l;(l=er.exec(a))!==null;)h+="-"+l[1];var u=qr(a)+h;return{name:u,styles:a,next:Y}}var Zr=function(r){return r()},Qr=H.useInsertionEffect?H.useInsertionEffect:!1,et=Qr||Zr,rr=H.createContext(typeof HTMLElement<"u"?Br({key:"css"}):null);rr.Provider;var rt=function(r){return w.forwardRef(function(t,n){var a=w.useContext(rr);return r(t,a,n)})},tt=H.createContext({}),nt=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,at=He(function(e){return nt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),it=at,ot=function(r){return r!=="theme"},tr=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?it:ot},nr=function(r,t,n){var a;if(t){var i=t.shouldForwardProp;a=r.__emotion_forwardProp&&i?function(c){return r.__emotion_forwardProp(c)&&i(c)}:i}return typeof a!="function"&&n&&(a=r.__emotion_forwardProp),a},st=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return Ke(t,n,a),et(function(){return Yr(t,n,a)}),null},ct=function e(r,t){var n=r.__emotion_real===r,a=n&&r.__emotion_base||r,i,c;t!==void 0&&(i=t.label,c=t.target);var s=nr(r,t,n),f=s||tr(a),h=!f("as");return function(){var l=arguments,u=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)u.push.apply(u,l);else{var m=l[0];u.push(m[0]);for(var E=l.length,x=1;x<E;x++)u.push(l[x],m[x])}var p=rt(function(y,b,v){var T=h&&y.as||a,R="",S=[],C=y;if(y.theme==null){C={};for(var d in y)C[d]=y[d];C.theme=H.useContext(tt)}typeof y.className=="string"?R=Wr(b.registered,S,y.className):y.className!=null&&(R=y.className+" ");var I=Jr(u.concat(S),b.registered,C);R+=b.key+"-"+I.name,c!==void 0&&(R+=" "+c);var z=h&&s===void 0?tr(T):f,$={};for(var L in y)h&&L==="as"||z(L)&&($[L]=y[L]);return $.className=R,v&&($.ref=v),H.createElement(H.Fragment,null,H.createElement(st,{cache:b,serialized:I,isStringTag:typeof T=="string"}),H.createElement(T,$))});return p.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",p.defaultProps=r.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=u,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+c}}),p.withComponent=function(y,b){var v=e(y,Pe({},t,b,{shouldForwardProp:nr(p,b,!0)}));return v.apply(void 0,u)},p}},lt=["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],te=ct.bind(null);lt.forEach(function(e){te[e]=te(e)});const ut=te.div`
22
+ <%s key={someKey} {...props} />`,F,V,ne,V),vt[V+F]=!0)}if(V=null,C!==void 0&&(r(C),V=""+C),c(g)&&(r(g.key),V=""+g.key),"key"in g){C={};for(var Fe in g)Fe!=="key"&&(C[Fe]=g[Fe])}else C=g;return V&&s(C,typeof o=="function"?o.displayName||o.name||"Unknown":o),h(o,V,G,Z,a(),C,$e,Ne)}function u(o){typeof o=="object"&&o!==null&&o.$$typeof===k&&o._store&&(o._store.validated=1)}var m=w,k=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),v=Symbol.for("react.profiler"),b=Symbol.for("react.consumer"),A=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),B=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,z=Array.isArray,K=console.createTask?console.createTask:function(){return null};m={"react-stack-bottom-frame":function(o){return o()}};var de,J={},yt=m["react-stack-bottom-frame"].bind(m,i)(),gt=K(n(i)),vt={};ie.Fragment=p,ie.jsx=function(o,g,C,F,Z){var G=1e4>B.recentlyCreatedOwnerStacks++;return l(o,g,C,!1,F,Z,G?Error("react-stack-top-frame"):yt,G?K(n(o)):gt)},ie.jsxs=function(o,g,C,F,Z){var G=1e4>B.recentlyCreatedOwnerStacks++;return l(o,g,C,!0,F,Z,G?Error("react-stack-top-frame"):yt,G?K(n(o)):gt)}}()),ie}var Me;function Pt(){return Me||(Me=1,process.env.NODE_ENV==="production"?fe.exports=xt():fe.exports=wt()),fe.exports}var I=Pt();function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ee.apply(null,arguments)}function Et(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function kt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var _t=function(){function e(r){var n=this;this._insertTag=function(a){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,i),n.tags.push(a)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(kt(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Et(a);try{i.insertRule(n,i.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var a;return(a=n.parentNode)==null?void 0:a.removeChild(n)}),this.tags=[],this.ctr=0},e}(),N="-ms-",pe="-moz-",P="-webkit-",De="comm",ke="rule",_e="decl",St="@import",Ue="@keyframes",At="@layer",Tt=Math.abs,he=String.fromCharCode,Ct=Object.assign;function Rt(e,t){return L(e,0)^45?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}function ze(e){return e.trim()}function Ot(e,t){return(e=t.exec(e))?e[0]:e}function E(e,t,r){return e.replace(t,r)}function Se(e,t){return e.indexOf(t)}function L(e,t){return e.charCodeAt(t)|0}function oe(e,t,r){return e.slice(t,r)}function W(e){return e.length}function Ae(e){return e.length}function me(e,t){return t.push(e),e}function It(e,t){return e.map(t).join("")}var ye=1,Q=1,We=0,M=0,R=0,ee="";function ge(e,t,r,n,a,i,c){return{value:e,root:t,parent:r,type:n,props:a,children:i,line:ye,column:Q,length:c,return:""}}function se(e,t){return Ct(ge("",null,null,"",null,null,0),e,{length:-e.length},t)}function jt(){return R}function Lt(){return R=M>0?L(ee,--M):0,Q--,R===10&&(Q=1,ye--),R}function U(){return R=M<We?L(ee,M++):0,Q++,R===10&&(Q=1,ye++),R}function Y(){return L(ee,M)}function ve(){return M}function ce(e,t){return oe(ee,e,t)}function le(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ye(e){return ye=Q=1,We=W(ee=e),M=0,[]}function qe(e){return ee="",e}function be(e){return ze(ce(M-1,Te(e===91?e+2:e===40?e+1:e)))}function $t(e){for(;(R=Y())&&R<33;)U();return le(e)>2||le(R)>3?"":" "}function Nt(e,t){for(;--t&&U()&&!(R<48||R>102||R>57&&R<65||R>70&&R<97););return ce(e,ve()+(t<6&&Y()==32&&U()==32))}function Te(e){for(;U();)switch(R){case e:return M;case 34:case 39:e!==34&&e!==39&&Te(R);break;case 40:e===41&&Te(e);break;case 92:U();break}return M}function Ft(e,t){for(;U()&&e+R!==57;)if(e+R===84&&Y()===47)break;return"/*"+ce(t,M-1)+"*"+he(e===47?e:U())}function Vt(e){for(;!le(Y());)U();return ce(e,M)}function Bt(e){return qe(xe("",null,null,null,[""],e=Ye(e),0,[0],e))}function xe(e,t,r,n,a,i,c,s,d){for(var h=0,l=0,u=c,m=0,k=0,x=0,p=1,y=1,v=1,b=0,A="",O=a,S=i,T=n,f=A;y;)switch(x=b,b=U()){case 40:if(x!=108&&L(f,u-1)==58){Se(f+=E(be(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:f+=be(b);break;case 9:case 10:case 13:case 32:f+=$t(x);break;case 92:f+=Nt(ve()-1,7);continue;case 47:switch(Y()){case 42:case 47:me(Mt(Ft(U(),ve()),t,r),d);break;default:f+="/"}break;case 123*p:s[h++]=W(f)*v;case 125*p:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+l:v==-1&&(f=E(f,/\f/g,"")),k>0&&W(f)-u&&me(k>32?He(f+";",n,r,u-1):He(E(f," ","")+";",n,r,u-2),d);break;case 59:f+=";";default:if(me(T=Ge(f,t,r,h,l,a,s,A,O=[],S=[],u),i),b===123)if(l===0)xe(f,t,T,T,O,i,u,s,S);else switch(m===99&&L(f,3)===110?100:m){case 100:case 108:case 109:case 115:xe(e,T,T,n&&me(Ge(e,T,T,0,0,a,s,A,a,O=[],u),S),a,S,u,s,n?O:S);break;default:xe(f,T,T,T,[""],S,0,s,S)}}h=l=k=0,p=v=1,A=f="",u=c;break;case 58:u=1+W(f),k=x;default:if(p<1){if(b==123)--p;else if(b==125&&p++==0&&Lt()==125)continue}switch(f+=he(b),b*p){case 38:v=l>0?1:(f+="\f",-1);break;case 44:s[h++]=(W(f)-1)*v,v=1;break;case 64:Y()===45&&(f+=be(U())),m=Y(),l=u=W(A=f+=Vt(ve())),b++;break;case 45:x===45&&W(f)==2&&(p=0)}}return i}function Ge(e,t,r,n,a,i,c,s,d,h,l){for(var u=a-1,m=a===0?i:[""],k=Ae(m),x=0,p=0,y=0;x<n;++x)for(var v=0,b=oe(e,u+1,u=Tt(p=c[x])),A=e;v<k;++v)(A=ze(p>0?m[v]+" "+b:E(b,/&\f/g,m[v])))&&(d[y++]=A);return ge(e,t,r,a===0?ke:s,d,h,l)}function Mt(e,t,r){return ge(e,t,r,De,he(jt()),oe(e,2,-2),0)}function He(e,t,r,n){return ge(e,t,r,_e,oe(e,0,n),oe(e,n+1,-1),n)}function te(e,t){for(var r="",n=Ae(e),a=0;a<n;a++)r+=t(e[a],a,e,t)||"";return r}function Dt(e,t,r,n){switch(e.type){case At:if(e.children.length)break;case St:case _e:return e.return=e.return||e.value;case De:return"";case Ue:return e.return=e.value+"{"+te(e.children,n)+"}";case ke:e.value=e.props.join(",")}return W(r=te(e.children,n))?e.return=e.value+"{"+r+"}":""}function Ut(e){var t=Ae(e);return function(r,n,a,i){for(var c="",s=0;s<t;s++)c+=e[s](r,n,a,i)||"";return c}}function zt(e){return function(t){t.root||(t=t.return)&&e(t)}}function Xe(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var Wt=function(t,r,n){for(var a=0,i=0;a=i,i=Y(),a===38&&i===12&&(r[n]=1),!le(i);)U();return ce(t,M)},Yt=function(t,r){var n=-1,a=44;do switch(le(a)){case 0:a===38&&Y()===12&&(r[n]=1),t[n]+=Wt(M-1,r,n);break;case 2:t[n]+=be(a);break;case 4:if(a===44){t[++n]=Y()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=he(a)}while(a=U());return t},qt=function(t,r){return qe(Yt(Ye(t),r))},Ke=new WeakMap,Gt=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,a=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Ke.get(n))&&!a){Ke.set(t,!0);for(var i=[],c=qt(r,i),s=n.props,d=0,h=0;d<c.length;d++)for(var l=0;l<s.length;l++,h++)t.props[h]=i[d]?c[d].replace(/&\f/g,s[l]):s[l]+" "+c[d]}}},Ht=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function Je(e,t){switch(Rt(e,t)){case 5103:return P+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return P+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return P+e+pe+e+N+e+e;case 6828:case 4268:return P+e+N+e+e;case 6165:return P+e+N+"flex-"+e+e;case 5187:return P+e+E(e,/(\w+).+(:[^]+)/,P+"box-$1$2"+N+"flex-$1$2")+e;case 5443:return P+e+N+"flex-item-"+E(e,/flex-|-self/,"")+e;case 4675:return P+e+N+"flex-line-pack"+E(e,/align-content|flex-|-self/,"")+e;case 5548:return P+e+N+E(e,"shrink","negative")+e;case 5292:return P+e+N+E(e,"basis","preferred-size")+e;case 6060:return P+"box-"+E(e,"-grow","")+P+e+N+E(e,"grow","positive")+e;case 4554:return P+E(e,/([^-])(transform)/g,"$1"+P+"$2")+e;case 6187:return E(E(E(e,/(zoom-|grab)/,P+"$1"),/(image-set)/,P+"$1"),e,"")+e;case 5495:case 3959:return E(e,/(image-set\([^]*)/,P+"$1$`$1");case 4968:return E(E(e,/(.+:)(flex-)?(.*)/,P+"box-pack:$3"+N+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+P+e+e;case 4095:case 3583:case 4068:case 2532:return E(e,/(.+)-inline(.+)/,P+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(W(e)-1-t>6)switch(L(e,t+1)){case 109:if(L(e,t+4)!==45)break;case 102:return E(e,/(.+:)(.+)-([^]+)/,"$1"+P+"$2-$3$1"+pe+(L(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Se(e,"stretch")?Je(E(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(L(e,t+1)!==115)break;case 6444:switch(L(e,W(e)-3-(~Se(e,"!important")&&10))){case 107:return E(e,":",":"+P)+e;case 101:return E(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+P+(L(e,14)===45?"inline-":"")+"box$3$1"+P+"$2$3$1"+N+"$2box$3")+e}break;case 5936:switch(L(e,t+11)){case 114:return P+e+N+E(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return P+e+N+E(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return P+e+N+E(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return P+e+N+e+e}return e}var Xt=function(t,r,n,a){if(t.length>-1&&!t.return)switch(t.type){case _e:t.return=Je(t.value,t.length);break;case Ue:return te([se(t,{value:E(t.value,"@","@"+P)})],a);case ke:if(t.length)return It(t.props,function(i){switch(Ot(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return te([se(t,{props:[E(i,/:(read-\w+)/,":"+pe+"$1")]})],a);case"::placeholder":return te([se(t,{props:[E(i,/:(plac\w+)/,":"+P+"input-$1")]}),se(t,{props:[E(i,/:(plac\w+)/,":"+pe+"$1")]}),se(t,{props:[E(i,/:(plac\w+)/,N+"input-$1")]})],a)}return""})}},Kt=[Xt],Jt=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(p){var y=p.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var a=t.stylisPlugins||Kt,i={},c,s=[];c=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(p){for(var y=p.getAttribute("data-emotion").split(" "),v=1;v<y.length;v++)i[y[v]]=!0;s.push(p)});var d,h=[Gt,Ht];{var l,u=[Dt,zt(function(p){l.insert(p)})],m=Ut(h.concat(a,u)),k=function(y){return te(Bt(y),m)};d=function(y,v,b,A){l=b,k(y?y+"{"+v.styles+"}":v.styles),A&&(x.inserted[v.name]=!0)}}var x={key:r,sheet:new _t({key:r,container:c,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:d};return x.sheet.hydrate(s),x},Zt=!0;function Qt(e,t,r){var n="";return r.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(n+=a+" ")}),n}var Ze=function(t,r,n){var a=t.key+"-"+r.name;(n===!1||Zt===!1)&&t.registered[a]===void 0&&(t.registered[a]=r.styles)},er=function(t,r,n){Ze(t,r,n);var a=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var i=r;do t.insert(r===i?"."+a:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function tr(e){for(var t=0,r,n=0,a=e.length;a>=4;++n,a-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var rr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},nr=/[A-Z]|^ms/g,ar=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qe=function(t){return t.charCodeAt(1)===45},et=function(t){return t!=null&&typeof t!="boolean"},Ce=Xe(function(e){return Qe(e)?e:e.replace(nr,"-$&").toLowerCase()}),tt=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(ar,function(n,a,i){return q={name:a,styles:i,next:q},a})}return rr[t]!==1&&!Qe(t)&&typeof r=="number"&&r!==0?r+"px":r};function ue(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return q={name:a.name,styles:a.styles,next:q},a.name;var i=r;if(i.styles!==void 0){var c=i.next;if(c!==void 0)for(;c!==void 0;)q={name:c.name,styles:c.styles,next:q},c=c.next;var s=i.styles+";";return s}return ir(e,t,r)}case"function":{if(e!==void 0){var d=q,h=r(e);return q=d,ue(e,t,h)}break}}var l=r;if(t==null)return l;var u=t[l];return u!==void 0?u:l}function ir(e,t,r){var n="";if(Array.isArray(r))for(var a=0;a<r.length;a++)n+=ue(e,t,r[a])+";";else for(var i in r){var c=r[i];if(typeof c!="object"){var s=c;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":et(s)&&(n+=Ce(i)+":"+tt(i,s)+";")}else if(Array.isArray(c)&&typeof c[0]=="string"&&(t==null||t[c[0]]===void 0))for(var d=0;d<c.length;d++)et(c[d])&&(n+=Ce(i)+":"+tt(i,c[d])+";");else{var h=ue(e,t,c);switch(i){case"animation":case"animationName":{n+=Ce(i)+":"+h+";";break}default:n+=i+"{"+h+"}"}}}return n}var rt=/label:\s*([^\s;{]+)\s*(;|$)/g,q;function or(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,a="";q=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,a+=ue(r,t,i);else{var c=i;a+=c[0]}for(var s=1;s<e.length;s++)if(a+=ue(r,t,e[s]),n){var d=i;a+=d[s]}rt.lastIndex=0;for(var h="",l;(l=rt.exec(a))!==null;)h+="-"+l[1];var u=tr(a)+h;return{name:u,styles:a,next:q}}var sr=function(t){return t()},cr=H.useInsertionEffect?H.useInsertionEffect:!1,lr=cr||sr,nt=H.createContext(typeof HTMLElement<"u"?Jt({key:"css"}):null);nt.Provider;var ur=function(t){return w.forwardRef(function(r,n){var a=w.useContext(nt);return t(r,a,n)})},dr=H.createContext({}),fr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,pr=Xe(function(e){return fr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),hr=pr,mr=function(t){return t!=="theme"},at=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?hr:mr},it=function(t,r,n){var a;if(r){var i=r.shouldForwardProp;a=t.__emotion_forwardProp&&i?function(c){return t.__emotion_forwardProp(c)&&i(c)}:i}return typeof a!="function"&&n&&(a=t.__emotion_forwardProp),a},yr=function(t){var r=t.cache,n=t.serialized,a=t.isStringTag;return Ze(r,n,a),lr(function(){return er(r,n,a)}),null},gr=function e(t,r){var n=t.__emotion_real===t,a=n&&t.__emotion_base||t,i,c;r!==void 0&&(i=r.label,c=r.target);var s=it(t,r,n),d=s||at(a),h=!d("as");return function(){var l=arguments,u=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&u.push("label:"+i+";"),l[0]==null||l[0].raw===void 0)u.push.apply(u,l);else{var m=l[0];u.push(m[0]);for(var k=l.length,x=1;x<k;x++)u.push(l[x],m[x])}var p=ur(function(y,v,b){var A=h&&y.as||a,O="",S=[],T=y;if(y.theme==null){T={};for(var f in y)T[f]=y[f];T.theme=H.useContext(dr)}typeof y.className=="string"?O=Qt(v.registered,S,y.className):y.className!=null&&(O=y.className+" ");var j=or(u.concat(S),v.registered,T);O+=v.key+"-"+j.name,c!==void 0&&(O+=" "+c);var D=h&&s===void 0?at(A):d,$={};for(var B in y)h&&B==="as"||D(B)&&($[B]=y[B]);return $.className=O,b&&($.ref=b),H.createElement(H.Fragment,null,H.createElement(yr,{cache:v,serialized:j,isStringTag:typeof A=="string"}),H.createElement(A,$))});return p.displayName=i!==void 0?i:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=a,p.__emotion_styles=u,p.__emotion_forwardProp=s,Object.defineProperty(p,"toString",{value:function(){return"."+c}}),p.withComponent=function(y,v){var b=e(y,Ee({},r,v,{shouldForwardProp:it(p,v,!0)}));return b.apply(void 0,u)},p}},vr=["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","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],re=gr.bind(null);vr.forEach(function(e){re[e]=re(e)});const br=re.div`
23
23
  display: flex;
24
24
  align-items: center;
25
25
  justify-content: center;
@@ -47,7 +47,7 @@ React keys must be passed directly to JSX without using spread:
47
47
  background-color: rgba(255, 165, 0, 0.1);
48
48
  border: 1px solid orange;
49
49
  `;default:return""}}}
50
- `,Ae=({type:e,children:r,className:t,icon:n,action:a})=>O.jsxs(ut,{type:e,className:t,children:[n&&O.jsx("span",{children:n}),O.jsx("span",{children:r}),a&&O.jsx("span",{children:a})]}),ar=te.div`
50
+ `,Re=({type:e,children:t,className:r,icon:n,action:a})=>I.jsxs(br,{type:e,className:r,children:[n&&I.jsx("span",{children:n}),I.jsx("span",{children:t}),a&&I.jsx("span",{children:a})]}),Oe=re.div`
51
51
  width: ${({width:e})=>e||"100%"};
52
52
  height: ${({height:e})=>e||"100%"};
53
53
  border-radius: 8px;
@@ -56,8 +56,8 @@ React keys must be passed directly to JSX without using spread:
56
56
  z-index: 1002;
57
57
 
58
58
  /* Hide specific elements inside the player */
59
- ${({$hiddenClasses:e})=>(e==null?void 0:e.length)&&e.map(r=>`.${r} { display: none !important; }`).join("")}
60
- `,ft=te.div`
59
+ ${({$hiddenClasses:e})=>(e==null?void 0:e.length)&&e.map(t=>`.${t} { display: none !important; }`).join("")}
60
+ `,ot=re.div`
61
61
  position: fixed;
62
62
  top: 0;
63
63
  left: 0;
@@ -69,7 +69,7 @@ React keys must be passed directly to JSX without using spread:
69
69
  align-items: center;
70
70
  z-index: 1000;
71
71
  pointer-events: auto;
72
- `,dt=te.div`
72
+ `,st=re.div`
73
73
  position: relative;
74
74
  width: 100%; /* Default for mobile */
75
75
  max-width: 100%;
@@ -81,4 +81,4 @@ React keys must be passed directly to JSX without using spread:
81
81
  @media (min-width: 768px) {
82
82
  width: min(70vw, 960px); /* Responsive width for desktop, capped at 960px */
83
83
  }
84
- `,pt=(e,r)=>`https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${r}`,ht=(e,r)=>`https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${r}/videos`,mt=e=>`https://host.vpplayer.tech/player/${e}/vpplayer.js`,Re=(e,r)=>`vp-player-${e||"default"}-${r||""}`,Oe=new Map,yt=(e,r)=>{const[t,n]=w.useState(!1),[a,i]=w.useState(null);return w.useEffect(()=>{let c=null,s,f=0;const h=3;let l;try{l=r||mt(e||"latest")}catch(E){const x=E instanceof Error?E.message:String(E);i(`Failed to resolve script URL: ${x}`),n(!1);return}if(Oe.get(l)){n(!0),i(null);return}if(document.querySelector(`script[src="${l}"]`)){Oe.set(l,!0),n(!0),i(null);return}const m=()=>{c=document.createElement("script"),c.src=l,c.async=!0,s=window.setTimeout(()=>{n(!1),i(`Loading script timed out: ${l}`)},1e4),c.onload=()=>{clearTimeout(s),Oe.set(l,!0),n(!0),i(null)},c.onerror=()=>{clearTimeout(s),f++,f<h?setTimeout(m,1e3*f):(n(!1),i(`Failed to load VP Player script after ${h} attempts: ${l}`))},document.body.appendChild(c)};return m(),()=>{clearTimeout(s),c&&document.body.contains(c)&&document.body.removeChild(c)}},[e,r]),{isLoaded:t,error:a}},ir={},we=new Map,gt=7e3,Ie=3,bt=({projectId:e,videoId:r,playlistId:t,videoUrl:n,apiKey:a})=>{const[i,c]=w.useState(null),[s,f]=w.useState(null),[h,l]=w.useState(!1),[u,m]=w.useState(null),E=a||(typeof ir<"u"?ir.VITE_VP_API_KEY:void 0);return w.useEffect(()=>{const x=r?`video:${r}`:t?`playlist:${t}`:null;if(!e||n||!r&&!t){c(n||null),f(null),l(!1),m(null);return}if(!E){l(!1),m("No API key provided");return}if(x&&we.has(x)){const v=we.get(x);c(v.url),f(v.playlist),l(!1),m(null);return}const p=new AbortController,y=p.signal;return(async()=>{var T,R;l(!0),m(null);let v=0;for(;v<Ie;)try{const S=r&&!t?pt(e,r):ht(e,t),C=setTimeout(()=>p.abort(),gt),d=await fetch(S,{method:"GET",headers:{"api-key":E,Accept:"application/json"},signal:y});if(clearTimeout(C),!d.ok)throw new Error(`Fetch failed with status ${d.status}`);const I=await d.json();if(r&&!t){const z=(R=(T=I.result)==null?void 0:T.items)==null?void 0:R.find($=>$.mediaId===r);if(!(z!=null&&z.playbackUrl))throw new Error("Invalid video data");c(z.playbackUrl),f(null),x&&we.set(x,{url:z.playbackUrl,playlist:null})}else{if(!Array.isArray(I.result))throw new Error("Invalid playlist format");f(I.result),c(null),x&&we.set(x,{url:null,playlist:I.result})}break}catch(S){if(y.aborted){m("Request timed out");break}if(v++,v>=Ie){const C=S instanceof Error?S.message:String(S);m(`Failed after ${Ie} attempts: ${C}`)}}l(!1)})(),()=>{p.abort()}},[E,e,r,t,n]),{fetchedPlaybackUrl:i,fetchedPlaylist:s,isLoading:h,error:u}},vt={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,muted:!0,loop:!1,size:{width:"100%",height:"30vh"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!0,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},xt=({videoUrl:e,fetchedPlaybackUrl:r,fetchedPlaylist:t,projectId:n,config:a={}})=>{var h,l,u;const i={...vt,...a},c={...i.config,...a.config};if(e)return{...i,video:{...i.video,file:e,playlist:void 0},config:c};if(r)return{...i,video:{...i.video,file:r,playlist:void 0},config:c};if(t&&t.length>0)return{...i,projectId:n||"vp-player-projectId",video:{...i.video,file:((h=t[0])==null?void 0:h.hlsUrl)||"",playlist:{state:!0,playlistVideoIndex:0,videos:t.map((m,E)=>({videoId:String(E),title:m.title,file:m.hlsUrl,thumbnailUrl:m.thumbnailUrl,duration:m.duration}))}},config:c};const s=((l=a==null?void 0:a.video)==null?void 0:l.playlist)||i.video.playlist,f=(u=a==null?void 0:a.video)==null?void 0:u.file;if(f)return{...i,video:{...i.video,file:f,playlist:void 0},config:c};if(s!=null&&s.videos&&s.videos.length>0){const m=s.videos[s.playlistVideoIndex||0];return{...i,video:{...i.video,file:(m==null?void 0:m.file)||"",playlist:{...s,state:s.state??!0,playlistVideoIndex:s.playlistVideoIndex??0,videos:s.videos}},config:{...i.config,...a==null?void 0:a.config}}}throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.")},wt=e=>{if(!e)return;const r=/https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/,t=e.match(r);return t?t[2]:void 0},Pt=({playerId:e,videoId:r,version:t,videoUrl:n,projectId:a,playlistId:i,scriptUrl:c,config:s={},apiKey:f,isReels:h=!1})=>{const l=w.useRef(null),u=w.useRef(null),{isLoaded:m,error:E}=yt(t,c),x=r||wt(c),[p,y]=w.useState(null),{fetchedPlaybackUrl:b,fetchedPlaylist:v,isLoading:T,error:R}=bt({projectId:a,videoId:x,playlistId:i,videoUrl:n,apiKey:f}),S=Re(e,x),C=w.useMemo(()=>{var d;return{...s,config:{...s.config,autostartOnLoad:{state:h,onMobile:!0,onData:!0},muted:!1,size:h?{sizeType:"RESPONSIVE",aspectRatio:"9:16"}:((d=s.config)==null?void 0:d.size)||{sizeType:"FIXED",width:"100%"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!0,fullscreenButton:!0,airplayButton:!0,bigPlayButton:!0,autopausePlayButton:!0,pictureInPictureButton:!0,relatedButton:!1,volumeButton:!0,shareButton:!0},socialMedia:["FACEBOOK","LINKEDIN","REDDIT","TWITTER","PINTEREST"],skin:{controlBar:{background:"rgba(0, 0, 0, 0.3)",text:"#FFFFFF",icons:{default:"#FFFFFF",hover:"#CC0000"},timeslider:{progress:"#CC0000",rail:"#808080",buffer:"#E2E2E2",dragger:"#CC0000"}}},settings:{quality:"Quality",subtitles:"Subtitles",autoplay:"Autoplay",playbackRate:"Speed",auto:"Auto",off:"Off",normal:"Normal",share:"Share Video"}}}},[s,h]);return w.useEffect(()=>{if(E){y(E);return}},[E]),w.useEffect(()=>{if(!m||!l.current||T&&!n)return;let d=!0;const z=setTimeout(async()=>{try{if(window.vpPlayer&&document.querySelectorAll('[id*="player"]').forEach(K=>{const fe=K.id;try{const J=window.vpPlayer(fe);J&&J.destroy&&J.destroy()}catch(J){console.warn(`Failed to destroy existing player ${fe}:`,J)}}),await new Promise(B=>setTimeout(B,100)),!d||!l.current)return;if(!document.getElementById(S)){y("DOM element not found after cleanup.");return}if(!window.vpPlayer){y("VP Player script not loaded.");return}const L=xt({videoUrl:n,fetchedPlaybackUrl:b,fetchedPlaylist:v,projectId:a,config:C}),G=window.vpPlayer(S);if(!G){y("Failed to create VP Player instance.");return}d&&l.current&&(G.setup(L),u.current=G,y(null))}catch($){if(d){const L=$ instanceof Error?$.message:String($);y(L),console.error("VP Player initialization error:",$)}}},150);return()=>{d=!1,clearTimeout(z)}},[m,T,n,b,v,a,C,S]),w.useEffect(()=>()=>{if(u.current){try{u.current.destroy&&u.current.destroy()}catch(I){console.warn(`Failed to destroy player ${S}:`,I)}u.current=null}const d=document.getElementById(S);d&&(d.innerHTML="")},[S]),{playerRef:l,playerInstanceRef:u,isScriptLoaded:m,isLoading:T,error:R||p||E}},kt=({playerId:e,videoId:r,version:t,videoUrl:n,projectId:a,playlistId:i,scriptUrl:c,config:s={},apiKey:f,isReels:h=!1,hiddenClasses:l=[],onClose:u,className:m})=>{var z,$,L,G;const{playerRef:E,playerInstanceRef:x,isScriptLoaded:p,isLoading:y,error:b}=Pt({playerId:e,videoId:r,version:t,videoUrl:n,projectId:a,playlistId:i,scriptUrl:c,config:s,apiKey:f,isReels:h}),[v,T]=w.useState(!0),R=()=>h&&T(!0),S=()=>{var B,K;T(!1),(K=(B=x.current)==null?void 0:B.play)==null||K.call(B),u==null||u()},C=($=(z=s==null?void 0:s.config)==null?void 0:z.size)!=null&&$.width?typeof s.config.size.width=="number"?`${s.config.size.width}px`:s.config.size.width:void 0,d=(G=(L=s==null?void 0:s.config)==null?void 0:L.size)!=null&&G.height?typeof s.config.size.height=="number"?`${s.config.size.height}px`:s.config.size.height:void 0,I=Re(e,r);return b?O.jsxs(Ae,{type:"error",children:["An error occurred: ",b]}):y||!p?O.jsx(Ae,{type:"loading",children:"Loading..."}):O.jsxs(O.Fragment,{children:[h&&!v?O.jsx("div",{onClick:R}):null,!h&&O.jsx("div",{children:O.jsx(ar,{id:I,ref:E,width:C||"100%",height:d||"auto",$hiddenClasses:l,className:m})},I),h&&v&&O.jsx(ft,{onClick:S,className:m,children:O.jsx(dt,{className:m,onClick:B=>B.stopPropagation(),children:O.jsx("div",{children:O.jsx(ar,{id:I,ref:E,width:"100%",height:"auto",$hiddenClasses:l,className:m})},I)})})]})},or=w.createContext(void 0),Et=({children:e})=>{const[r,t]=w.useState(!1),[n,a]=w.useState(null),[i,c]=w.useState(null),s=w.useCallback(l=>{try{const u=Re(l.playerId,l.videoId);a({...l,playerId:u}),t(!0),c(null)}catch{c("Failed to show player.")}},[]),f=w.useCallback(()=>{t(!1),a(null),c(null)},[]),h=w.useMemo(()=>({showPlayer:s,hidePlayer:f,isPlayerVisible:r,playerParams:n}),[s,f,r,n]);return O.jsxs(or.Provider,{value:h,children:[e,i&&O.jsx(Ae,{type:"error",children:i}),r&&(n==null?void 0:n.playerId)&&O.jsx(kt,{playerId:n.playerId,videoId:n.videoId,projectId:n.projectId,videoUrl:n.videoUrl,version:n.version,playlistId:n.playlistId,scriptUrl:n.scriptUrl,config:n.config,isReels:n.isReels,thumbnailUrl:n.thumbnailUrl,onClose:f,hiddenClasses:n.hiddenClasses||[],apiKey:n.apiKey,className:n.className})]})},St=()=>{const e=w.useContext(or);if(!e)throw new Error("useVPPlayer must be used within a VPPlayerProvider");return e};X.VPPlayerProvider=Et,X.useVPPlayer=St,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})});
84
+ `,xr=(e,t)=>`https://vp-api.gjirafa.tech/api/v2/projects/${e}/videos?search=${t}`,wr=(e,t)=>`https://vp-api.gjirafa.tech/api/projects/${e}/playlists/${t}/videos`,Pr=e=>`https://host.vpplayer.tech/player/${e}/vpplayer.js`,Ie=(e,t)=>`vp-player-${e||"default"}-${t||""}`,je=new Map,ct=(e,t)=>{const[r,n]=w.useState(!1),[a,i]=w.useState(null);return w.useEffect(()=>{let c=null,s,d=0;const h=3;let l;try{l=t||Pr(e||"latest")}catch(k){const x=k instanceof Error?k.message:String(k);i(`Failed to resolve script URL: ${x}`),n(!1);return}if(je.get(l)){n(!0),i(null);return}if(document.querySelector(`script[src="${l}"]`)){je.set(l,!0),n(!0),i(null);return}const m=()=>{c=document.createElement("script"),c.src=l,c.async=!0,s=window.setTimeout(()=>{n(!1),i(`Loading script timed out: ${l}`)},1e4),c.onload=()=>{clearTimeout(s),je.set(l,!0),n(!0),i(null)},c.onerror=()=>{clearTimeout(s),d++,d<h?setTimeout(m,1e3*d):(n(!1),i(`Failed to load VP Player script after ${h} attempts: ${l}`))},document.body.appendChild(c)};return m(),()=>{clearTimeout(s),c&&document.body.contains(c)&&document.body.removeChild(c)}},[e,t]),{isLoaded:r,error:a}},lt={},we=new Map,Er=7e3,Le=3,ut=({projectId:e,videoId:t,playlistId:r,videoUrl:n,apiKey:a})=>{const[i,c]=w.useState(null),[s,d]=w.useState(null),[h,l]=w.useState(!1),[u,m]=w.useState(null),k=a||(typeof lt<"u"?lt.VITE_VP_API_KEY:void 0);return w.useEffect(()=>{const x=t?`video:${t}`:r?`playlist:${r}`:null;if(!e||n||!t&&!r){c(n||null),d(null),l(!1),m(null);return}if(!k){l(!1),m("No API key provided");return}if(x&&we.has(x)){const b=we.get(x);c(b.url),d(b.playlist),l(!1),m(null);return}const p=new AbortController,y=p.signal;return(async()=>{var A,O;l(!0),m(null);let b=0;for(;b<Le;)try{const S=t&&!r?xr(e,t):wr(e,r),T=setTimeout(()=>p.abort(),Er),f=await fetch(S,{method:"GET",headers:{"api-key":k,Accept:"application/json"},signal:y});if(clearTimeout(T),!f.ok)throw new Error(`Fetch failed with status ${f.status}`);const j=await f.json();if(t&&!r){const D=(O=(A=j.result)==null?void 0:A.items)==null?void 0:O.find($=>$.mediaId===t);if(!(D!=null&&D.playbackUrl))throw new Error("Invalid video data");c(D.playbackUrl),d(null),x&&we.set(x,{url:D.playbackUrl,playlist:null})}else{if(!Array.isArray(j.result))throw new Error("Invalid playlist format");d(j.result),c(null),x&&we.set(x,{url:null,playlist:j.result})}break}catch(S){if(y.aborted){m("Request timed out");break}if(b++,b>=Le){const T=S instanceof Error?S.message:String(S);m(`Failed after ${Le} attempts: ${T}`)}}l(!1)})(),()=>{p.abort()}},[k,e,t,r,n]),{fetchedPlaybackUrl:i,fetchedPlaylist:s,isLoading:h,error:u}},kr={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,muted:!0,loop:!1,size:{width:"100%",height:"30vh"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!0,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},dt=({videoUrl:e,fetchedPlaybackUrl:t,fetchedPlaylist:r,projectId:n,config:a={}})=>{var h,l,u;const i={...kr,...a},c={...i.config,...a.config};if(e)return{...i,video:{...i.video,file:e,playlist:void 0},config:c};if(t)return{...i,video:{...i.video,file:t,playlist:void 0},config:c};if(r&&r.length>0)return{...i,projectId:n||"vp-player-projectId",video:{...i.video,file:((h=r[0])==null?void 0:h.hlsUrl)||"",playlist:{state:!0,playlistVideoIndex:0,videos:r.map((m,k)=>({videoId:String(k),title:m.title,file:m.hlsUrl,thumbnailUrl:m.thumbnailUrl,duration:m.duration}))}},config:c};const s=((l=a==null?void 0:a.video)==null?void 0:l.playlist)||i.video.playlist,d=(u=a==null?void 0:a.video)==null?void 0:u.file;if(d)return{...i,video:{...i.video,file:d,playlist:void 0},config:c};if(s!=null&&s.videos&&s.videos.length>0){const m=s.videos[s.playlistVideoIndex||0];return{...i,video:{...i.video,file:(m==null?void 0:m.file)||"",playlist:{...s,state:s.state??!0,playlistVideoIndex:s.playlistVideoIndex??0,videos:s.videos}},config:{...i.config,...a==null?void 0:a.config}}}throw new Error("No valid video source found. Provide videoUrl, videoId, playlistId, or config with video.file or playlist.")},ft=e=>{if(!e)return;const t=/https:\/\/host\.vpplayer\.tech\/player\/([^/]+)\/([^/]+)(?:\/[^/]+)?\.js/,r=e.match(t);return r?r[2]:void 0},pt=({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:c,config:s={},apiKey:d,isReels:h=!1})=>{const l=w.useRef(null),u=w.useRef(null),{isLoaded:m,error:k}=ct(r,c),x=t||ft(c),[p,y]=w.useState(null),{fetchedPlaybackUrl:v,fetchedPlaylist:b,isLoading:A,error:O}=ut({projectId:a,videoId:x,playlistId:i,videoUrl:n,apiKey:d}),S=Ie(e,x),T=w.useMemo(()=>{var f;return{...s,config:{...s.config,autostartOnLoad:{state:h,onMobile:!0,onData:!0},muted:!1,size:h?{sizeType:"RESPONSIVE",aspectRatio:"9:16"}:((f=s.config)==null?void 0:f.size)||{sizeType:"FIXED",width:"100%"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!0,fullscreenButton:!0,airplayButton:!0,bigPlayButton:!0,autopausePlayButton:!0,pictureInPictureButton:!0,relatedButton:!1,volumeButton:!0,shareButton:!0},socialMedia:["FACEBOOK","LINKEDIN","REDDIT","TWITTER","PINTEREST"],skin:{controlBar:{background:"rgba(0, 0, 0, 0.3)",text:"#FFFFFF",icons:{default:"#FFFFFF",hover:"#CC0000"},timeslider:{progress:"#CC0000",rail:"#808080",buffer:"#E2E2E2",dragger:"#CC0000"}}},settings:{quality:"Quality",subtitles:"Subtitles",autoplay:"Autoplay",playbackRate:"Speed",auto:"Auto",off:"Off",normal:"Normal",share:"Share Video"}}}},[s,h]);return w.useEffect(()=>{if(k){y(k);return}},[k]),w.useEffect(()=>{if(!m||!l.current||A&&!n)return;let f=!0;const D=setTimeout(async()=>{try{if(window.vpPlayer&&document.querySelectorAll('[id*="player"]').forEach(K=>{const de=K.id;try{const J=window.vpPlayer(de);J&&J.destroy&&J.destroy()}catch(J){console.warn(`Failed to destroy existing player ${de}:`,J)}}),await new Promise(z=>setTimeout(z,100)),!f||!l.current)return;if(!document.getElementById(S)){y("DOM element not found after cleanup.");return}if(!window.vpPlayer){y("VP Player script not loaded.");return}const B=dt({videoUrl:n,fetchedPlaybackUrl:v,fetchedPlaylist:b,projectId:a,config:T}),X=window.vpPlayer(S);if(!X){y("Failed to create VP Player instance.");return}f&&l.current&&(X.setup(B),u.current=X,y(null))}catch($){if(f){const B=$ instanceof Error?$.message:String($);y(B),console.error("VP Player initialization error:",$)}}},150);return()=>{f=!1,clearTimeout(D)}},[m,A,n,v,b,a,T,S]),w.useEffect(()=>()=>{if(u.current){try{u.current.destroy&&u.current.destroy()}catch(j){console.warn(`Failed to destroy player ${S}:`,j)}u.current=null}const f=document.getElementById(S);f&&(f.innerHTML="")},[S]),{playerRef:l,playerInstanceRef:u,isScriptLoaded:m,isLoading:A,error:O||p||k}},ht=({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:c,config:s={},apiKey:d,isReels:h=!1,hiddenClasses:l=[],onClose:u,className:m})=>{var D,$,B,X;const{playerRef:k,playerInstanceRef:x,isScriptLoaded:p,isLoading:y,error:v}=pt({playerId:e,videoId:t,version:r,videoUrl:n,projectId:a,playlistId:i,scriptUrl:c,config:s,apiKey:d,isReels:h}),[b,A]=w.useState(!0),O=()=>h&&A(!0),S=()=>{var z,K;A(!1),(K=(z=x.current)==null?void 0:z.play)==null||K.call(z),u==null||u()},T=($=(D=s==null?void 0:s.config)==null?void 0:D.size)!=null&&$.width?typeof s.config.size.width=="number"?`${s.config.size.width}px`:s.config.size.width:void 0,f=(X=(B=s==null?void 0:s.config)==null?void 0:B.size)!=null&&X.height?typeof s.config.size.height=="number"?`${s.config.size.height}px`:s.config.size.height:void 0,j=Ie(e,t);return v?I.jsxs(Re,{type:"error",children:["An error occurred: ",v]}):y||!p?I.jsx(Re,{type:"loading",children:"Loading..."}):I.jsxs(I.Fragment,{children:[h&&!b?I.jsx("div",{onClick:O}):null,!h&&I.jsx("div",{children:I.jsx(Oe,{id:j,ref:k,width:T||"100%",height:f||"auto",$hiddenClasses:l,className:m})},j),h&&b&&I.jsx(ot,{onClick:S,className:m,children:I.jsx(st,{className:m,onClick:z=>z.stopPropagation(),children:I.jsx("div",{children:I.jsx(Oe,{id:j,ref:k,width:"100%",height:"auto",$hiddenClasses:l,className:m})},j)})})]})},mt=w.createContext(void 0),_r=({children:e})=>{const[t,r]=w.useState(!1),[n,a]=w.useState(null),[i,c]=w.useState(null),s=w.useCallback(l=>{try{const u=Ie(l.playerId,l.videoId);a({...l,playerId:u}),r(!0),c(null)}catch{c("Failed to show player.")}},[]),d=w.useCallback(()=>{r(!1),a(null),c(null)},[]),h=w.useMemo(()=>({showPlayer:s,hidePlayer:d,isPlayerVisible:t,playerParams:n}),[s,d,t,n]);return I.jsxs(mt.Provider,{value:h,children:[e,i&&I.jsx(Re,{type:"error",children:i}),t&&(n==null?void 0:n.playerId)&&I.jsx(ht,{playerId:n.playerId,videoId:n.videoId,projectId:n.projectId,videoUrl:n.videoUrl,version:n.version,playlistId:n.playlistId,scriptUrl:n.scriptUrl,config:n.config,isReels:n.isReels,thumbnailUrl:n.thumbnailUrl,onClose:d,hiddenClasses:n.hiddenClasses||[],apiKey:n.apiKey,className:n.className})]})},Sr=()=>{const e=w.useContext(mt);if(!e)throw new Error("useVPPlayer must be used within a VPPlayerProvider");return e},Ar={projectId:"vp-player-projectId",video:{file:"",playlist:{state:!0,playlistVideoIndex:0,videos:[]}},config:{autoplay:!0,pauseOtherVideos:!0,focusOnAutostart:!1,muted:!0,loop:!1,size:{width:"100%"},controls:{settingsButton:!0,chromecastButton:!1,nextButton:!1,fullscreenButton:!0,airplayButton:!1,bigPlayButton:!1,autopausePlayButton:!0,pictureInPictureButton:!1,relatedButton:!1,volumeButton:!0,shareButton:!0}}},Tr={config:{autostartOnLoad:{state:!0,onMobile:!0,onData:!0},muted:!0}},Cr={config:{autoplay:!0,muted:!0}},Pe={video:{advertising:!0,ads:{skipAd:{state:!0,skipFrom:5}}},config:{adAnnouncement:{state:!0,timeBeforeAd:5},adsRequireInteraction:!1}},Rr=(e,t,r="time",n=0)=>{var a;return{...Pe,video:{...Pe.video,ads:{...(a=Pe.video)==null?void 0:a.ads,adBreaks:[{adTagUrl:t,breakType:e,breakTimingType:r,breakTimingValue:n}]}}}},Or="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4",Ir="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4",jr="https://videos.pexels.com/video-files/4678261/4678261-hd_1080_1920_25fps.mp4",Lr="https://images.pexels.com/videos/4678261/pexels-photo-4678261.jpeg?auto=compress&cs=tinysrgb&w=600",$r="https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator=",Nr="https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=";_.AD_TAG_LINEAR_URL=$r,_.AD_TAG_SKIPPABLE_LINEAR_URL=Nr,_.BIG_BUCK_BUNNY_URL=Or,_.ELEPHANTS_DREAM_URL=Ir,_.Overlay=ot,_.PEXELS_THUMBNAIL_URL=Lr,_.PEXELS_VERTICAL_VIDEO_URL=jr,_.PlayerContainer=Oe,_.PlayerWrapper=st,_.VPPlayer=ht,_.VPPlayerProvider=_r,_.baseConfig=Tr,_.baseConfigWithAds=Pe,_.baseConfigWithAutoplay=Cr,_.buildVPPlayerConfig=dt,_.defaultVPPlayerConfig=Ar,_.extractVideoId=ft,_.getAdConfig=Rr,_.useVPPlayer=Sr,_.useVPPlayerLogic=pt,_.useVPPlayerScript=ct,_.useVideoData=ut,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devix-technologies/react-gjirafa-vp-player",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "main": "./dist/react-gjirafa-vp-player.umd.js",
6
6
  "module": "./dist/react-gjirafa-vp-player.es.js",