@devix-technologies/react-gjirafa-vp-player 1.0.31-beta.14 → 1.0.31-beta.15
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(V,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],O):(V=typeof globalThis<"u"?globalThis:V||self,O(V.ReactGjirafaVPPlayer={},V.React))})(this,(function(V,O){"use strict";function
|
|
1
|
+
(function(V,O){typeof exports=="object"&&typeof module<"u"?O(exports,require("react")):typeof define=="function"&&define.amd?define(["exports","react"],O):(V=typeof globalThis<"u"?globalThis:V||self,O(V.ReactGjirafaVPPlayer={},V.React))})(this,(function(V,O){"use strict";function kr(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 oe=kr(O);var ke={exports:{}},me={};/**
|
|
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
|
|
9
|
+
*/var De;function Sr(){if(De)return me;De=1;var e=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function t(n,a,s){var f=null;if(s!==void 0&&(f=""+s),a.key!==void 0&&(f=""+a.key),"key"in a){s={};for(var d in a)d!=="key"&&(s[d]=a[d])}else s=a;return a=s.ref,{$$typeof:e,type:n,key:f,ref:a!==void 0?a:null,props:s}}return me.Fragment=r,me.jsx=t,me.jsxs=t,me}var ge={};/**
|
|
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
|
|
17
|
+
*/var We;function Er(){return We||(We=1,process.env.NODE_ENV!=="production"&&(function(){function e(o){if(o==null)return null;if(typeof o=="function")return o.$$typeof===Z?null:o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case w:return"Fragment";case A:return"Profiler";case S:return"StrictMode";case M:return"Suspense";case E:return"SuspenseList";case Y: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 P:return"Portal";case z:return o.displayName||"Context";case F:return(o._context.displayName||"Context")+".Consumer";case D:var g=o.render;return o=o.displayName,o||(o=g.displayName||g.name||"",o=o!==""?"ForwardRef("+o+")":"ForwardRef"),o;case X:return g=o.displayName||null,g!==null?g:e(o.type)||"Memo";case te: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 i=g.error,c=typeof Symbol=="function"&&Symbol.toStringTag&&o[Symbol.toStringTag]||o.constructor.name||"Object";return i.call(g,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",c),r(o)}}function n(o){if(o===w)return"<>";if(typeof o=="object"&&o!==null&&o.$$typeof===te)return"<...>";try{var g=e(o);return g?"<"+g+">":"<...>"}catch{return"<...>"}}function a(){var o=q.A;return o===null?null:o.getOwner()}function s(){return Error("react-stack-top-frame")}function f(o){if(p.call(o,"key")){var g=Object.getOwnPropertyDescriptor(o,"key").get;if(g&&g.isReactWarning)return!1}return o.key!==void 0}function d(o,g){function i(){ne||(ne=!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))}i.isReactWarning=!0,Object.defineProperty(o,"key",{get:i,configurable:!0})}function x(){var o=e(this.type);return G[o]||(G[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 v(o,g,i,c,L,_){var h=i.ref;return o={$$typeof:j,type:o,key:g,props:i,_owner:c},(h!==void 0?h:null)!==null?Object.defineProperty(o,"ref",{enumerable:!1,get:x}):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:L}),Object.defineProperty(o,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.freeze&&(Object.freeze(o.props),Object.freeze(o)),o}function m(o,g,i,c,L,_){var h=g.children;if(h!==void 0)if(c)if(se(h)){for(c=0;c<h.length;c++)b(h[c]);Object.freeze&&Object.freeze(h)}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 b(h);if(p.call(g,"key")){h=e(o);var u=Object.keys(g).filter(function(y){return y!=="key"});c=0<u.length?"{key: someKey, "+u.join(": ..., ")+": ...}":"{key: someKey}",le[h+c]||(u=0<u.length?"{"+u.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} />`,c,g,S,g),le[g+c]=!0)}if(g=null,i!==void 0&&(t(i),g=""+i),u(h)&&(t(h.key),g=""+h.key),"key"in h){i={};for(var f in h)f!=="key"&&(i[f]=h[f])}else i=h;return g&&d(i,typeof o=="function"?o.displayName||o.name||"Unknown":o),y(o,g,i,a(),$,ge)}function v(o){M(o)?o._store&&(o._store.validated=1):typeof o=="object"&&o!==null&&o.$$typeof===ne&&(o._payload.status==="fulfilled"?M(o._payload.value)&&o._payload.value._store&&(o._payload.value._store.validated=1):o._store&&(o._store.validated=1))}function M(o){return typeof o=="object"&&o!==null&&o.$$typeof===j}var C=O,j=Symbol.for("react.transitional.element"),b=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),x=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),D=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),ne=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),G=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,p=Object.prototype.hasOwnProperty,J=Array.isArray,ae=console.createTask?console.createTask:function(){return null};C={react_stack_bottom_frame:function(o){return o()}};var ie,oe={},I=C.react_stack_bottom_frame.bind(C,s)(),ce=ae(n(s)),le={};ve.Fragment=P,ve.jsx=function(o,h,i){var c=1e4>G.recentlyCreatedOwnerStacks++;return m(o,h,i,!1,c?Error("react-stack-top-frame"):I,c?ae(n(o)):ce)},ve.jsxs=function(o,h,i){var c=1e4>G.recentlyCreatedOwnerStacks++;return m(o,h,i,!0,c?Error("react-stack-top-frame"):I,c?ae(n(o)):ce)}})()),ve}var qe;function Rr(){return qe||(qe=1,process.env.NODE_ENV==="production"?Se.exports=_r():Se.exports=Tr()),Se.exports}var U=Rr();function Fe(){return Fe=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},Fe.apply(null,arguments)}function Ar(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 Or(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 Cr=(function(){function e(t){var n=this;this._insertTag=function(a){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,s),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(Or(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ar(a);try{s.insertRule(n,s.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})(),Y="-ms-",Ee="-moz-",_="-webkit-",Ge="comm",Ne="rule",Le="decl",jr="@import",He="@keyframes",$r="@layer",Mr=Math.abs,_e=String.fromCharCode,Fr=Object.assign;function Nr(e,r){return z(e,0)^45?(((r<<2^z(e,0))<<2^z(e,1))<<2^z(e,2))<<2^z(e,3):0}function Be(e){return e.trim()}function Lr(e,r){return(e=r.exec(e))?e[0]:e}function T(e,r,t){return e.replace(r,t)}function Ve(e,r){return e.indexOf(r)}function z(e,r){return e.charCodeAt(r)|0}function be(e,r,t){return e.slice(r,t)}function ee(e){return e.length}function Ie(e){return e.length}function Te(e,r){return r.push(e),e}function Vr(e,r){return e.map(r).join("")}var Re=1,de=1,Xe=0,H=0,L=0,pe="";function Ae(e,r,t,n,a,s,u){return{value:e,root:r,parent:t,type:n,props:a,children:s,line:Re,column:de,length:u,return:""}}function Pe(e,r){return Fr(Ae("",null,null,"",null,null,0),e,{length:-e.length},r)}function Ir(){return L}function Ur(){return L=H>0?z(pe,--H):0,de--,L===10&&(de=1,Re--),L}function B(){return L=H<Xe?z(pe,H++):0,de++,L===10&&(de=1,Re++),L}function re(){return z(pe,H)}function Oe(){return H}function we(e,r){return be(pe,e,r)}function xe(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 Je(e){return Re=de=1,Xe=ee(pe=e),H=0,[]}function Ze(e){return pe="",e}function Ce(e){return Be(we(H-1,Ue(e===91?e+2:e===40?e+1:e)))}function zr(e){for(;(L=re())&&L<33;)B();return xe(e)>2||xe(L)>3?"":" "}function Dr(e,r){for(;--r&&B()&&!(L<48||L>102||L>57&&L<65||L>70&&L<97););return we(e,Oe()+(r<6&&re()==32&&B()==32))}function Ue(e){for(;B();)switch(L){case e:return H;case 34:case 39:e!==34&&e!==39&&Ue(L);break;case 40:e===41&&Ue(e);break;case 92:B();break}return H}function Wr(e,r){for(;B()&&e+L!==57;)if(e+L===84&&re()===47)break;return"/*"+we(r,H-1)+"*"+_e(e===47?e:B())}function Yr(e){for(;!xe(re());)B();return we(e,H)}function qr(e){return Ze(je("",null,null,null,[""],e=Je(e),0,[0],e))}function je(e,r,t,n,a,s,u,d,w){for(var y=0,m=0,v=u,M=0,C=0,j=0,b=1,P=1,x=1,A=0,N="",D=a,W=s,F=n,k=N;P;)switch(j=A,A=B()){case 40:if(j!=108&&z(k,v-1)==58){Ve(k+=T(Ce(A),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:k+=Ce(A);break;case 9:case 10:case 13:case 32:k+=zr(j);break;case 92:k+=Dr(Oe()-1,7);continue;case 47:switch(re()){case 42:case 47:Te(Gr(Wr(B(),Oe()),r,t),w);break;default:k+="/"}break;case 123*b:d[y++]=ee(k)*x;case 125*b:case 59:case 0:switch(A){case 0:case 125:P=0;case 59+m:x==-1&&(k=T(k,/\f/g,"")),C>0&&ee(k)-v&&Te(C>32?Qe(k+";",n,t,v-1):Qe(T(k," ","")+";",n,t,v-2),w);break;case 59:k+=";";default:if(Te(F=Ke(k,r,t,y,m,a,d,N,D=[],W=[],v),s),A===123)if(m===0)je(k,r,F,F,D,s,v,d,W);else switch(M===99&&z(k,3)===110?100:M){case 100:case 108:case 109:case 115:je(e,F,F,n&&Te(Ke(e,F,F,0,0,a,d,N,a,D=[],v),W),a,W,v,d,n?D:W);break;default:je(k,F,F,F,[""],W,0,d,W)}}y=m=C=0,b=x=1,N=k="",v=u;break;case 58:v=1+ee(k),C=j;default:if(b<1){if(A==123)--b;else if(A==125&&b++==0&&Ur()==125)continue}switch(k+=_e(A),A*b){case 38:x=m>0?1:(k+="\f",-1);break;case 44:d[y++]=(ee(k)-1)*x,x=1;break;case 64:re()===45&&(k+=Ce(B())),M=re(),m=v=ee(N=k+=Yr(Oe())),A++;break;case 45:j===45&&ee(k)==2&&(b=0)}}return s}function Ke(e,r,t,n,a,s,u,d,w,y,m){for(var v=a-1,M=a===0?s:[""],C=Ie(M),j=0,b=0,P=0;j<n;++j)for(var x=0,A=be(e,v+1,v=Mr(b=u[j])),N=e;x<C;++x)(N=Be(b>0?M[x]+" "+A:T(A,/&\f/g,M[x])))&&(w[P++]=N);return Ae(e,r,t,a===0?Ne:d,w,y,m)}function Gr(e,r,t){return Ae(e,r,t,Ge,_e(Ir()),be(e,2,-2),0)}function Qe(e,r,t,n){return Ae(e,r,t,Le,be(e,0,n),be(e,n+1,-1),n)}function he(e,r){for(var t="",n=Ie(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function Hr(e,r,t,n){switch(e.type){case $r:if(e.children.length)break;case jr:case Le:return e.return=e.return||e.value;case Ge:return"";case He:return e.return=e.value+"{"+he(e.children,n)+"}";case Ne:e.value=e.props.join(",")}return ee(t=he(e.children,n))?e.return=e.value+"{"+t+"}":""}function Br(e){var r=Ie(e);return function(t,n,a,s){for(var u="",d=0;d<r;d++)u+=e[d](t,n,a,s)||"";return u}}function Xr(e){return function(r){r.root||(r=r.return)&&e(r)}}function er(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Jr=function(r,t,n){for(var a=0,s=0;a=s,s=re(),a===38&&s===12&&(t[n]=1),!xe(s);)B();return we(r,H)},Zr=function(r,t){var n=-1,a=44;do switch(xe(a)){case 0:a===38&&re()===12&&(t[n]=1),r[n]+=Jr(H-1,t,n);break;case 2:r[n]+=Ce(a);break;case 4:if(a===44){r[++n]=re()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=_e(a)}while(a=B());return r},Kr=function(r,t){return Ze(Zr(Je(r),t))},rr=new WeakMap,Qr=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&&!rr.get(n))&&!a){rr.set(r,!0);for(var s=[],u=Kr(t,s),d=n.props,w=0,y=0;w<u.length;w++)for(var m=0;m<d.length;m++,y++)r.props[y]=s[w]?u[w].replace(/&\f/g,d[m]):d[m]+" "+u[w]}}},et=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function tr(e,r){switch(Nr(e,r)){case 5103:return _+"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 _+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return _+e+Ee+e+Y+e+e;case 6828:case 4268:return _+e+Y+e+e;case 6165:return _+e+Y+"flex-"+e+e;case 5187:return _+e+T(e,/(\w+).+(:[^]+)/,_+"box-$1$2"+Y+"flex-$1$2")+e;case 5443:return _+e+Y+"flex-item-"+T(e,/flex-|-self/,"")+e;case 4675:return _+e+Y+"flex-line-pack"+T(e,/align-content|flex-|-self/,"")+e;case 5548:return _+e+Y+T(e,"shrink","negative")+e;case 5292:return _+e+Y+T(e,"basis","preferred-size")+e;case 6060:return _+"box-"+T(e,"-grow","")+_+e+Y+T(e,"grow","positive")+e;case 4554:return _+T(e,/([^-])(transform)/g,"$1"+_+"$2")+e;case 6187:return T(T(T(e,/(zoom-|grab)/,_+"$1"),/(image-set)/,_+"$1"),e,"")+e;case 5495:case 3959:return T(e,/(image-set\([^]*)/,_+"$1$`$1");case 4968:return T(T(e,/(.+:)(flex-)?(.*)/,_+"box-pack:$3"+Y+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+_+e+e;case 4095:case 3583:case 4068:case 2532:return T(e,/(.+)-inline(.+)/,_+"$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(ee(e)-1-r>6)switch(z(e,r+1)){case 109:if(z(e,r+4)!==45)break;case 102:return T(e,/(.+:)(.+)-([^]+)/,"$1"+_+"$2-$3$1"+Ee+(z(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Ve(e,"stretch")?tr(T(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(z(e,r+1)!==115)break;case 6444:switch(z(e,ee(e)-3-(~Ve(e,"!important")&&10))){case 107:return T(e,":",":"+_)+e;case 101:return T(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+_+(z(e,14)===45?"inline-":"")+"box$3$1"+_+"$2$3$1"+Y+"$2box$3")+e}break;case 5936:switch(z(e,r+11)){case 114:return _+e+Y+T(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return _+e+Y+T(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return _+e+Y+T(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return _+e+Y+e+e}return e}var rt=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case Le:r.return=tr(r.value,r.length);break;case He:return he([Pe(r,{value:T(r.value,"@","@"+_)})],a);case Ne:if(r.length)return Vr(r.props,function(s){switch(Lr(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return he([Pe(r,{props:[T(s,/:(read-\w+)/,":"+Ee+"$1")]})],a);case"::placeholder":return he([Pe(r,{props:[T(s,/:(plac\w+)/,":"+_+"input-$1")]}),Pe(r,{props:[T(s,/:(plac\w+)/,":"+Ee+"$1")]}),Pe(r,{props:[T(s,/:(plac\w+)/,Y+"input-$1")]})],a)}return""})}},tt=[rt],nt=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(b){var P=b.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var a=r.stylisPlugins||tt,s={},u,d=[];u=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(b){for(var P=b.getAttribute("data-emotion").split(" "),x=1;x<P.length;x++)s[P[x]]=!0;d.push(b)});var w,y=[Qr,et];{var m,v=[Hr,Xr(function(b){m.insert(b)})],M=Br(y.concat(a,v)),C=function(P){return he(qr(P),M)};w=function(P,x,A,N){m=A,C(P?P+"{"+x.styles+"}":x.styles),N&&(j.inserted[x.name]=!0)}}var j={key:t,sheet:new Cr({key:t,container:u,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:w};return j.sheet.hydrate(d),j},at=!0;function it(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var nr=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||at===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},ot=function(r,t,n){nr(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var s=t;do r.insert(t===s?"."+a:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function st(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 ct={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},lt=/[A-Z]|^ms/g,ut=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ar=function(r){return r.charCodeAt(1)===45},ir=function(r){return r!=null&&typeof r!="boolean"},ze=er(function(e){return ar(e)?e:e.replace(lt,"-$&").toLowerCase()}),or=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(ut,function(n,a,s){return te={name:a,styles:s,next:te},a})}return ct[r]!==1&&!ar(r)&&typeof t=="number"&&t!==0?t+"px":t};function ke(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 te={name:a.name,styles:a.styles,next:te},a.name;var s=t;if(s.styles!==void 0){var u=s.next;if(u!==void 0)for(;u!==void 0;)te={name:u.name,styles:u.styles,next:te},u=u.next;var d=s.styles+";";return d}return ft(e,r,t)}case"function":{if(e!==void 0){var w=te,y=t(e);return te=w,ke(e,r,y)}break}}var m=t;if(r==null)return m;var v=r[m];return v!==void 0?v:m}function ft(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=ke(e,r,t[a])+";";else for(var s in t){var u=t[s];if(typeof u!="object"){var d=u;r!=null&&r[d]!==void 0?n+=s+"{"+r[d]+"}":ir(d)&&(n+=ze(s)+":"+or(s,d)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(r==null||r[u[0]]===void 0))for(var w=0;w<u.length;w++)ir(u[w])&&(n+=ze(s)+":"+or(s,u[w])+";");else{var y=ke(e,r,u);switch(s){case"animation":case"animationName":{n+=ze(s)+":"+y+";";break}default:n+=s+"{"+y+"}"}}}return n}var sr=/label:\s*([^\s;{]+)\s*(;|$)/g,te;function dt(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="";te=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,a+=ke(t,r,s);else{var u=s;a+=u[0]}for(var d=1;d<e.length;d++)if(a+=ke(t,r,e[d]),n){var w=s;a+=w[d]}sr.lastIndex=0;for(var y="",m;(m=sr.exec(a))!==null;)y+="-"+m[1];var v=st(a)+y;return{name:v,styles:a,next:te}}var pt=function(r){return r()},ht=se.useInsertionEffect?se.useInsertionEffect:!1,mt=ht||pt,cr=se.createContext(typeof HTMLElement<"u"?nt({key:"css"}):null);cr.Provider;var gt=function(r){return O.forwardRef(function(t,n){var a=O.useContext(cr);return r(t,a,n)})},yt=se.createContext({}),vt=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,bt=er(function(e){return vt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Pt=bt,wt=function(r){return r!=="theme"},lr=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Pt:wt},ur=function(r,t,n){var a;if(t){var s=t.shouldForwardProp;a=r.__emotion_forwardProp&&s?function(u){return r.__emotion_forwardProp(u)&&s(u)}:s}return typeof a!="function"&&n&&(a=r.__emotion_forwardProp),a},xt=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return nr(t,n,a),mt(function(){return ot(t,n,a)}),null},kt=function e(r,t){var n=r.__emotion_real===r,a=n&&r.__emotion_base||r,s,u;t!==void 0&&(s=t.label,u=t.target);var d=ur(r,t,n),w=d||lr(a),y=!w("as");return function(){var m=arguments,v=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&v.push("label:"+s+";"),m[0]==null||m[0].raw===void 0)v.push.apply(v,m);else{var M=m[0];v.push(M[0]);for(var C=m.length,j=1;j<C;j++)v.push(m[j],M[j])}var b=gt(function(P,x,A){var N=y&&P.as||a,D="",W=[],F=P;if(P.theme==null){F={};for(var k in P)F[k]=P[k];F.theme=se.useContext(yt)}typeof P.className=="string"?D=it(x.registered,W,P.className):P.className!=null&&(D=P.className+" ");var X=dt(v.concat(W),x.registered,F);D+=x.key+"-"+X.name,u!==void 0&&(D+=" "+u);var ne=y&&d===void 0?lr(N):w,q={};for(var Z in P)y&&Z==="as"||ne(Z)&&(q[Z]=P[Z]);return q.className=D,A&&(q.ref=A),se.createElement(se.Fragment,null,se.createElement(xt,{cache:x,serialized:X,isStringTag:typeof N=="string"}),se.createElement(N,q))});return b.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",b.defaultProps=r.defaultProps,b.__emotion_real=b,b.__emotion_base=a,b.__emotion_styles=v,b.__emotion_forwardProp=d,Object.defineProperty(b,"toString",{value:function(){return"."+u}}),b.withComponent=function(P,x){var A=e(P,Fe({},t,x,{shouldForwardProp:ur(b,x,!0)}));return A.apply(void 0,v)},b}},St=["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"],me=kt.bind(null);St.forEach(function(e){me[e]=me(e)});const Et=me.div`
|
|
22
|
+
<%s key={someKey} {...props} />`,c,h,u,h),le[h+c]=!0)}if(h=null,i!==void 0&&(t(i),h=""+i),f(g)&&(t(g.key),h=""+g.key),"key"in g){i={};for(var l in g)l!=="key"&&(i[l]=g[l])}else i=g;return h&&d(i,typeof o=="function"?o.displayName||o.name||"Unknown":o),v(o,h,i,a(),L,_)}function b(o){$(o)?o._store&&(o._store.validated=1):typeof o=="object"&&o!==null&&o.$$typeof===te&&(o._payload.status==="fulfilled"?$(o._payload.value)&&o._payload.value._store&&(o._payload.value._store.validated=1):o._store&&(o._store.validated=1))}function $(o){return typeof o=="object"&&o!==null&&o.$$typeof===j}var C=O,j=Symbol.for("react.transitional.element"),P=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),z=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),te=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),Z=Symbol.for("react.client.reference"),q=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,p=Object.prototype.hasOwnProperty,se=Array.isArray,J=console.createTask?console.createTask:function(){return null};C={react_stack_bottom_frame:function(o){return o()}};var ne,G={},ae=C.react_stack_bottom_frame.bind(C,s)(),ie=J(n(s)),le={};ge.Fragment=w,ge.jsx=function(o,g,i){var c=1e4>q.recentlyCreatedOwnerStacks++;return m(o,g,i,!1,c?Error("react-stack-top-frame"):ae,c?J(n(o)):ie)},ge.jsxs=function(o,g,i){var c=1e4>q.recentlyCreatedOwnerStacks++;return m(o,g,i,!0,c?Error("react-stack-top-frame"):ae,c?J(n(o)):ie)}})()),ge}var Ye;function _r(){return Ye||(Ye=1,process.env.NODE_ENV==="production"?ke.exports=Sr():ke.exports=Er()),ke.exports}var I=_r();function Me(){return Me=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},Me.apply(null,arguments)}function Tr(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 Rr(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 Ar=(function(){function e(t){var n=this;this._insertTag=function(a){var s;n.tags.length===0?n.insertionPoint?s=n.insertionPoint.nextSibling:n.prepend?s=n.container.firstChild:s=n.before:s=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(a,s),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(Rr(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Tr(a);try{s.insertRule(n,s.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})(),W="-ms-",Se="-moz-",T="-webkit-",qe="comm",Fe="rule",Ne="decl",Or="@import",Ge="@keyframes",Cr="@layer",jr=Math.abs,Ee=String.fromCharCode,$r=Object.assign;function Mr(e,r){return U(e,0)^45?(((r<<2^U(e,0))<<2^U(e,1))<<2^U(e,2))<<2^U(e,3):0}function He(e){return e.trim()}function Fr(e,r){return(e=r.exec(e))?e[0]:e}function R(e,r,t){return e.replace(r,t)}function Ve(e,r){return e.indexOf(r)}function U(e,r){return e.charCodeAt(r)|0}function ye(e,r,t){return e.slice(r,t)}function Q(e){return e.length}function Le(e){return e.length}function _e(e,r){return r.push(e),e}function Nr(e,r){return e.map(r).join("")}var Te=1,fe=1,Be=0,H=0,N=0,de="";function Re(e,r,t,n,a,s,f){return{value:e,root:r,parent:t,type:n,props:a,children:s,line:Te,column:fe,length:f,return:""}}function ve(e,r){return $r(Re("",null,null,"",null,null,0),e,{length:-e.length},r)}function Vr(){return N}function Lr(){return N=H>0?U(de,--H):0,fe--,N===10&&(fe=1,Te--),N}function B(){return N=H<Be?U(de,H++):0,fe++,N===10&&(fe=1,Te++),N}function ee(){return U(de,H)}function Ae(){return H}function be(e,r){return ye(de,e,r)}function Pe(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 Xe(e){return Te=fe=1,Be=Q(de=e),H=0,[]}function Je(e){return de="",e}function Oe(e){return He(be(H-1,Ie(e===91?e+2:e===40?e+1:e)))}function Ir(e){for(;(N=ee())&&N<33;)B();return Pe(e)>2||Pe(N)>3?"":" "}function Ur(e,r){for(;--r&&B()&&!(N<48||N>102||N>57&&N<65||N>70&&N<97););return be(e,Ae()+(r<6&&ee()==32&&B()==32))}function Ie(e){for(;B();)switch(N){case e:return H;case 34:case 39:e!==34&&e!==39&&Ie(N);break;case 40:e===41&&Ie(e);break;case 92:B();break}return H}function zr(e,r){for(;B()&&e+N!==57;)if(e+N===84&&ee()===47)break;return"/*"+be(r,H-1)+"*"+Ee(e===47?e:B())}function Dr(e){for(;!Pe(ee());)B();return be(e,H)}function Wr(e){return Je(Ce("",null,null,null,[""],e=Xe(e),0,[0],e))}function Ce(e,r,t,n,a,s,f,d,x){for(var v=0,m=0,b=f,$=0,C=0,j=0,P=1,w=1,S=1,A=0,F="",z=a,D=s,M=n,E=F;w;)switch(j=A,A=B()){case 40:if(j!=108&&U(E,b-1)==58){Ve(E+=R(Oe(A),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:E+=Oe(A);break;case 9:case 10:case 13:case 32:E+=Ir(j);break;case 92:E+=Ur(Ae()-1,7);continue;case 47:switch(ee()){case 42:case 47:_e(Yr(zr(B(),Ae()),r,t),x);break;default:E+="/"}break;case 123*P:d[v++]=Q(E)*S;case 125*P:case 59:case 0:switch(A){case 0:case 125:w=0;case 59+m:S==-1&&(E=R(E,/\f/g,"")),C>0&&Q(E)-b&&_e(C>32?Ke(E+";",n,t,b-1):Ke(R(E," ","")+";",n,t,b-2),x);break;case 59:E+=";";default:if(_e(M=Ze(E,r,t,v,m,a,d,F,z=[],D=[],b),s),A===123)if(m===0)Ce(E,r,M,M,z,s,b,d,D);else switch($===99&&U(E,3)===110?100:$){case 100:case 108:case 109:case 115:Ce(e,M,M,n&&_e(Ze(e,M,M,0,0,a,d,F,a,z=[],b),D),a,D,b,d,n?z:D);break;default:Ce(E,M,M,M,[""],D,0,d,D)}}v=m=C=0,P=S=1,F=E="",b=f;break;case 58:b=1+Q(E),C=j;default:if(P<1){if(A==123)--P;else if(A==125&&P++==0&&Lr()==125)continue}switch(E+=Ee(A),A*P){case 38:S=m>0?1:(E+="\f",-1);break;case 44:d[v++]=(Q(E)-1)*S,S=1;break;case 64:ee()===45&&(E+=Oe(B())),$=ee(),m=b=Q(F=E+=Dr(Ae())),A++;break;case 45:j===45&&Q(E)==2&&(P=0)}}return s}function Ze(e,r,t,n,a,s,f,d,x,v,m){for(var b=a-1,$=a===0?s:[""],C=Le($),j=0,P=0,w=0;j<n;++j)for(var S=0,A=ye(e,b+1,b=jr(P=f[j])),F=e;S<C;++S)(F=He(P>0?$[S]+" "+A:R(A,/&\f/g,$[S])))&&(x[w++]=F);return Re(e,r,t,a===0?Fe:d,x,v,m)}function Yr(e,r,t){return Re(e,r,t,qe,Ee(Vr()),ye(e,2,-2),0)}function Ke(e,r,t,n){return Re(e,r,t,Ne,ye(e,0,n),ye(e,n+1,-1),n)}function pe(e,r){for(var t="",n=Le(e),a=0;a<n;a++)t+=r(e[a],a,e,r)||"";return t}function qr(e,r,t,n){switch(e.type){case Cr:if(e.children.length)break;case Or:case Ne:return e.return=e.return||e.value;case qe:return"";case Ge:return e.return=e.value+"{"+pe(e.children,n)+"}";case Fe:e.value=e.props.join(",")}return Q(t=pe(e.children,n))?e.return=e.value+"{"+t+"}":""}function Gr(e){var r=Le(e);return function(t,n,a,s){for(var f="",d=0;d<r;d++)f+=e[d](t,n,a,s)||"";return f}}function Hr(e){return function(r){r.root||(r=r.return)&&e(r)}}function Qe(e){var r=Object.create(null);return function(t){return r[t]===void 0&&(r[t]=e(t)),r[t]}}var Br=function(r,t,n){for(var a=0,s=0;a=s,s=ee(),a===38&&s===12&&(t[n]=1),!Pe(s);)B();return be(r,H)},Xr=function(r,t){var n=-1,a=44;do switch(Pe(a)){case 0:a===38&&ee()===12&&(t[n]=1),r[n]+=Br(H-1,t,n);break;case 2:r[n]+=Oe(a);break;case 4:if(a===44){r[++n]=ee()===58?"&\f":"",t[n]=r[n].length;break}default:r[n]+=Ee(a)}while(a=B());return r},Jr=function(r,t){return Je(Xr(Xe(r),t))},er=new WeakMap,Zr=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&&!er.get(n))&&!a){er.set(r,!0);for(var s=[],f=Jr(t,s),d=n.props,x=0,v=0;x<f.length;x++)for(var m=0;m<d.length;m++,v++)r.props[v]=s[x]?f[x].replace(/&\f/g,d[m]):d[m]+" "+f[x]}}},Kr=function(r){if(r.type==="decl"){var t=r.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(r.return="",r.value="")}};function rr(e,r){switch(Mr(e,r)){case 5103:return T+"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 T+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return T+e+Se+e+W+e+e;case 6828:case 4268:return T+e+W+e+e;case 6165:return T+e+W+"flex-"+e+e;case 5187:return T+e+R(e,/(\w+).+(:[^]+)/,T+"box-$1$2"+W+"flex-$1$2")+e;case 5443:return T+e+W+"flex-item-"+R(e,/flex-|-self/,"")+e;case 4675:return T+e+W+"flex-line-pack"+R(e,/align-content|flex-|-self/,"")+e;case 5548:return T+e+W+R(e,"shrink","negative")+e;case 5292:return T+e+W+R(e,"basis","preferred-size")+e;case 6060:return T+"box-"+R(e,"-grow","")+T+e+W+R(e,"grow","positive")+e;case 4554:return T+R(e,/([^-])(transform)/g,"$1"+T+"$2")+e;case 6187:return R(R(R(e,/(zoom-|grab)/,T+"$1"),/(image-set)/,T+"$1"),e,"")+e;case 5495:case 3959:return R(e,/(image-set\([^]*)/,T+"$1$`$1");case 4968:return R(R(e,/(.+:)(flex-)?(.*)/,T+"box-pack:$3"+W+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+T+e+e;case 4095:case 3583:case 4068:case 2532:return R(e,/(.+)-inline(.+)/,T+"$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(Q(e)-1-r>6)switch(U(e,r+1)){case 109:if(U(e,r+4)!==45)break;case 102:return R(e,/(.+:)(.+)-([^]+)/,"$1"+T+"$2-$3$1"+Se+(U(e,r+3)==108?"$3":"$2-$3"))+e;case 115:return~Ve(e,"stretch")?rr(R(e,"stretch","fill-available"),r)+e:e}break;case 4949:if(U(e,r+1)!==115)break;case 6444:switch(U(e,Q(e)-3-(~Ve(e,"!important")&&10))){case 107:return R(e,":",":"+T)+e;case 101:return R(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+T+(U(e,14)===45?"inline-":"")+"box$3$1"+T+"$2$3$1"+W+"$2box$3")+e}break;case 5936:switch(U(e,r+11)){case 114:return T+e+W+R(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return T+e+W+R(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return T+e+W+R(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return T+e+W+e+e}return e}var Qr=function(r,t,n,a){if(r.length>-1&&!r.return)switch(r.type){case Ne:r.return=rr(r.value,r.length);break;case Ge:return pe([ve(r,{value:R(r.value,"@","@"+T)})],a);case Fe:if(r.length)return Nr(r.props,function(s){switch(Fr(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pe([ve(r,{props:[R(s,/:(read-\w+)/,":"+Se+"$1")]})],a);case"::placeholder":return pe([ve(r,{props:[R(s,/:(plac\w+)/,":"+T+"input-$1")]}),ve(r,{props:[R(s,/:(plac\w+)/,":"+Se+"$1")]}),ve(r,{props:[R(s,/:(plac\w+)/,W+"input-$1")]})],a)}return""})}},et=[Qr],rt=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 w=P.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(P),P.setAttribute("data-s",""))})}var a=r.stylisPlugins||et,s={},f,d=[];f=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(P){for(var w=P.getAttribute("data-emotion").split(" "),S=1;S<w.length;S++)s[w[S]]=!0;d.push(P)});var x,v=[Zr,Kr];{var m,b=[qr,Hr(function(P){m.insert(P)})],$=Gr(v.concat(a,b)),C=function(w){return pe(Wr(w),$)};x=function(w,S,A,F){m=A,C(w?w+"{"+S.styles+"}":S.styles),F&&(j.inserted[S.name]=!0)}}var j={key:t,sheet:new Ar({key:t,container:f,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:s,registered:{},insert:x};return j.sheet.hydrate(d),j},tt=!0;function nt(e,r,t){var n="";return t.split(" ").forEach(function(a){e[a]!==void 0?r.push(e[a]+";"):a&&(n+=a+" ")}),n}var tr=function(r,t,n){var a=r.key+"-"+t.name;(n===!1||tt===!1)&&r.registered[a]===void 0&&(r.registered[a]=t.styles)},at=function(r,t,n){tr(r,t,n);var a=r.key+"-"+t.name;if(r.inserted[t.name]===void 0){var s=t;do r.insert(t===s?"."+a:"",s,r.sheet,!0),s=s.next;while(s!==void 0)}};function it(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 ot={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},st=/[A-Z]|^ms/g,ct=/_EMO_([^_]+?)_([^]*?)_EMO_/g,nr=function(r){return r.charCodeAt(1)===45},ar=function(r){return r!=null&&typeof r!="boolean"},Ue=Qe(function(e){return nr(e)?e:e.replace(st,"-$&").toLowerCase()}),ir=function(r,t){switch(r){case"animation":case"animationName":if(typeof t=="string")return t.replace(ct,function(n,a,s){return re={name:a,styles:s,next:re},a})}return ot[r]!==1&&!nr(r)&&typeof t=="number"&&t!==0?t+"px":t};function we(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 re={name:a.name,styles:a.styles,next:re},a.name;var s=t;if(s.styles!==void 0){var f=s.next;if(f!==void 0)for(;f!==void 0;)re={name:f.name,styles:f.styles,next:re},f=f.next;var d=s.styles+";";return d}return lt(e,r,t)}case"function":{if(e!==void 0){var x=re,v=t(e);return re=x,we(e,r,v)}break}}var m=t;if(r==null)return m;var b=r[m];return b!==void 0?b:m}function lt(e,r,t){var n="";if(Array.isArray(t))for(var a=0;a<t.length;a++)n+=we(e,r,t[a])+";";else for(var s in t){var f=t[s];if(typeof f!="object"){var d=f;r!=null&&r[d]!==void 0?n+=s+"{"+r[d]+"}":ar(d)&&(n+=Ue(s)+":"+ir(s,d)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(r==null||r[f[0]]===void 0))for(var x=0;x<f.length;x++)ar(f[x])&&(n+=Ue(s)+":"+ir(s,f[x])+";");else{var v=we(e,r,f);switch(s){case"animation":case"animationName":{n+=Ue(s)+":"+v+";";break}default:n+=s+"{"+v+"}"}}}return n}var or=/label:\s*([^\s;{]+)\s*(;|$)/g,re;function ut(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="";re=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,a+=we(t,r,s);else{var f=s;a+=f[0]}for(var d=1;d<e.length;d++)if(a+=we(t,r,e[d]),n){var x=s;a+=x[d]}or.lastIndex=0;for(var v="",m;(m=or.exec(a))!==null;)v+="-"+m[1];var b=it(a)+v;return{name:b,styles:a,next:re}}var ft=function(r){return r()},dt=oe.useInsertionEffect?oe.useInsertionEffect:!1,pt=dt||ft,sr=oe.createContext(typeof HTMLElement<"u"?rt({key:"css"}):null);sr.Provider;var ht=function(r){return O.forwardRef(function(t,n){var a=O.useContext(sr);return r(t,a,n)})},mt=oe.createContext({}),gt=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,yt=Qe(function(e){return gt.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),vt=yt,bt=function(r){return r!=="theme"},cr=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?vt:bt},lr=function(r,t,n){var a;if(t){var s=t.shouldForwardProp;a=r.__emotion_forwardProp&&s?function(f){return r.__emotion_forwardProp(f)&&s(f)}:s}return typeof a!="function"&&n&&(a=r.__emotion_forwardProp),a},Pt=function(r){var t=r.cache,n=r.serialized,a=r.isStringTag;return tr(t,n,a),pt(function(){return at(t,n,a)}),null},wt=function e(r,t){var n=r.__emotion_real===r,a=n&&r.__emotion_base||r,s,f;t!==void 0&&(s=t.label,f=t.target);var d=lr(r,t,n),x=d||cr(a),v=!x("as");return function(){var m=arguments,b=n&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(s!==void 0&&b.push("label:"+s+";"),m[0]==null||m[0].raw===void 0)b.push.apply(b,m);else{var $=m[0];b.push($[0]);for(var C=m.length,j=1;j<C;j++)b.push(m[j],$[j])}var P=ht(function(w,S,A){var F=v&&w.as||a,z="",D=[],M=w;if(w.theme==null){M={};for(var E in w)M[E]=w[E];M.theme=oe.useContext(mt)}typeof w.className=="string"?z=nt(S.registered,D,w.className):w.className!=null&&(z=w.className+" ");var X=ut(b.concat(D),S.registered,M);z+=S.key+"-"+X.name,f!==void 0&&(z+=" "+f);var te=v&&d===void 0?cr(F):x,Y={};for(var Z in w)v&&Z==="as"||te(Z)&&(Y[Z]=w[Z]);return Y.className=z,A&&(Y.ref=A),oe.createElement(oe.Fragment,null,oe.createElement(Pt,{cache:S,serialized:X,isStringTag:typeof F=="string"}),oe.createElement(F,Y))});return P.displayName=s!==void 0?s:"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=b,P.__emotion_forwardProp=d,Object.defineProperty(P,"toString",{value:function(){return"."+f}}),P.withComponent=function(w,S){var A=e(w,Me({},t,S,{shouldForwardProp:lr(P,S,!0)}));return A.apply(void 0,b)},P}},xt=["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"],he=wt.bind(null);xt.forEach(function(e){he[e]=he(e)});const kt=he.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
|
-
`,
|
|
50
|
+
`,ur=({type:e,children:r,className:t,icon:n,action:a})=>I.jsxs(kt,{type:e,className:t,children:[n&&I.jsx("span",{children:n}),I.jsx("span",{children:r}),a&&I.jsx("span",{children:a})]}),ze=he.div`
|
|
51
51
|
width: ${({width:e})=>e||"100%"};
|
|
52
52
|
height: ${({height:e})=>e||"100%"};
|
|
53
53
|
border-radius: 0px !important;
|
|
@@ -63,7 +63,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
${({$hiddenClasses:e})=>(e==null?void 0:e.length)&&e.map(r=>`.${r} { display: none !important; }`).join("")}
|
|
66
|
-
`,
|
|
66
|
+
`,fr=he.div`
|
|
67
67
|
position: fixed;
|
|
68
68
|
top: 0;
|
|
69
69
|
left: 0;
|
|
@@ -75,7 +75,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
75
75
|
align-items: center;
|
|
76
76
|
z-index: 1000;
|
|
77
77
|
pointer-events: auto;
|
|
78
|
-
`,
|
|
78
|
+
`,dr=he.div`
|
|
79
79
|
position: relative;
|
|
80
80
|
height: 80vh;
|
|
81
81
|
width: auto;
|
|
@@ -83,4 +83,4 @@ React keys must be passed directly to JSX without using spread:
|
|
|
83
83
|
max-width: 90vw;
|
|
84
84
|
max-height: 90vh;
|
|
85
85
|
z-index: 1001;
|
|
86
|
-
`,ue="https://host.vpplayer.tech",hr=e=>`${ue}/player/${e}/vpplayer.js`,_t=e=>`${ue}/player/${e}.js`,mr=(e,r)=>`${ue}/player/${e}/${r}.js`,gr=e=>`${ue}/vertical-player/${e}.js`,Tt=(e,r)=>`${ue}/vertical-player/${e}/${r}.js`,Rt=(e,r)=>`${ue}/player/${e}/${r}.json`,At=(e,r)=>`${ue}/vertical-player/${e}/${r}.json`,yr=(e,r)=>e?`vp-player-${e}`:r?`vp-player-default-${r}`:"vp-player-default",vr=(e,r)=>{const t=new URL(e);return t.searchParams.set("divId",r),t.toString()},$e=new Map,br=(e,r)=>{const[t,n]=O.useState(!1),[a,s]=O.useState(null);return O.useEffect(()=>{let u;try{u=r||hr(e||"latest")}catch(y){const m=y instanceof Error?y.message:String(y);s(`Failed to resolve script URL: ${m}`);return}if(!$e.has(u))if(document.querySelector(`script[src="${u}"]`))$e.set(u,Promise.resolve());else{const m=new Promise((v,M)=>{const C=document.createElement("script");C.src=u,C.async=!0,C.onload=()=>v(),C.onerror=()=>M(new Error(`Failed to load script: ${u}`)),document.body.appendChild(C)});$e.set(u,m)}let d=!0;const w=$e.get(u);return w&&w.then(()=>{d&&(n(!0),s(null))}).catch(y=>{d&&(n(!1),s(y instanceof Error?y.message:String(y)))}),()=>{d=!1}},[e,r]),{isLoaded:t,error:a}};function Me(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function Pr(e,r){if(!Me(e)||!Me(r))return r;const t={...e};for(const n of Object.keys(r)){const a=r[n],s=t[n];Me(a)&&Me(s)?t[n]=Pr(s,a):a!==void 0&&(t[n]=a)}return t}async function Ot(e,r,t){if(!e)return console.warn("VP Player: No scriptId provided, cannot fetch config. Using user config directly."),null;r||console.warn("VP Player: No videoId provided, attempting to fetch config with scriptId only...");const n=t?At(e,r||""):Rt(e,r||"");try{const a=await fetch(n);return a.ok?await a.json():null}catch{return null}}const wr=({scriptId:e,videoId:r,scriptUrl:t,projectId:n,config:a,playerId:s,isVertical:u=!1,isReels:d=!1,onReady:w,onPlay:y,onPause:m,onResume:v,onComplete:M,onError:C,onVideoStarted:j,onTimeUpdate:b,onQuartile25:P,onQuartile50:x,onQuartile75:A,onNext:N,onPrevious:D,onProgress10s:W,onProgress20s:F})=>{const k=O.useRef(null),X=O.useRef(null),[ne,q]=O.useState(null),Z=O.useId().replace(/:/g,""),G=O.useMemo(()=>yr(s||`auto-${Z}`,r),[s,Z,r]),p=O.useRef({onReady:w,onPlay:y,onPause:m,onResume:v,onComplete:M,onError:C,onVideoStarted:j,onTimeUpdate:b,onQuartile25:P,onQuartile50:x,onQuartile75:A,onNext:N,onPrevious:D,onProgress10s:W,onProgress20s:F});O.useEffect(()=>{p.current={onReady:w,onPlay:y,onPause:m,onResume:v,onComplete:M,onError:C,onVideoStarted:j,onTimeUpdate:b,onQuartile25:P,onQuartile50:x,onQuartile75:A,onNext:N,onPrevious:D,onProgress10s:W,onProgress20s:F}});const J=O.useRef(!1),ae=O.useRef(!1),ie=O.useRef(!1),oe=!!a,I=O.useMemo(()=>u||d?!0:t?t.includes("vertical-player")||t.includes("vpverticalplayer"):!1,[u,d,t]),ce=O.useMemo(()=>{let h;if(t)h=t;else if(e&&r&&!oe)h=I?Tt(e,r):mr(e,r);else if(e)h=I?gr(e):`https://host.vpplayer.tech/player/${e}.js`;else return null;return vr(h,G)},[t,e,r,I,G,oe]),{isLoaded:le,error:o}=br(null,ce||void 0);return O.useEffect(()=>{if(!ce){q("VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player.");return}if(o){q(o);return}if(!le)return;let h=!0;return(async()=>{var c;try{const $=I?window.vpVerticalPlayer:window.vpPlayer;if(!$){q(`VP Player: Script loaded but global function not found. Expected ${I?"vpVerticalPlayer":"vpPlayer"}.`);return}if(await new Promise(S=>setTimeout(S,0)),!document.getElementById(G)){console.error(`VP Player: Container element with ID '${G}' not found in DOM.`);return}const g=$(G);if(!g){q("VP Player: Failed to get player instance.");return}if(h){if(X.current=g,q(null),J.current=!1,oe&&a){let S;const f=await Ot(e,r,I);f?S=Pr(f,a):S=a,n&&!S.projectId&&(S.projectId=n);try{g.setup(S)}catch(l){const E=l instanceof Error?l.message:String(l);if(E.includes("already initialized")){console.warn("VP Player: Player already initialized, attempting to destroy and retry.");try{if((c=g.destroy)==null||c.call(g),await new Promise(R=>setTimeout(R,50)),h&&document.getElementById(G)){const R=$(G);R&&(R.setup(S),X.current=R)}}catch(R){console.error("VP Player: Failed to recover from initialization error",R)}}else{console.error("VP Player: Setup error",l),q(`Player setup failed: ${E}`);return}}}if(g.on){const S=g.on.bind(g);S("vp-event",f=>{var R,K,Q,fe,kr,Sr;const l=f,E=l==null?void 0:l.eventName;if(I&&E==="vp-user-interaction"&&(ie.current=!0),I&&E==="vp-state-playing"){const Ct=g.videoObject;ae.current?(ae.current=!1,(K=(R=p.current).onResume)==null||K.call(R)):(fe=(Q=p.current).onPlay)==null||fe.call(Q,Ct),ie.current=!1}I&&E==="vp-state-paused"&&(ie.current&&(ae.current=!0,(Sr=(kr=p.current).onPause)==null||Sr.call(kr)),ie.current=!1)}),S("analytics-25%-completed",()=>{var f,l;(l=(f=p.current).onQuartile25)==null||l.call(f)}),S("analytics-50%-completed",()=>{var f,l;(l=(f=p.current).onQuartile50)==null||l.call(f)}),S("analytics-75%-completed",()=>{var f,l;(l=(f=p.current).onQuartile75)==null||l.call(f)}),I||S("pause",()=>{var f,l;(l=(f=p.current).onPause)==null||l.call(f)}),S("error",f=>{var E,R;const l=typeof f=="string"?f:(f==null?void 0:f.message)||"Unknown error";(R=(E=p.current).onError)==null||R.call(E,l)}),I?(S("vp-first-frame",()=>{var E,R;const l=g.videoObject;(R=(E=p.current).onReady)==null||R.call(E,l)}),S("vp-video-started",f=>{var l,E;(E=(l=p.current).onVideoStarted)==null||E.call(l,f)}),S("vp-video-state",()=>{var l,E,R;const f=((l=g.getPosition)==null?void 0:l.call(g))??0;(R=(E=p.current).onProgress10s)==null||R.call(E,Math.floor(f))}),S("vp-time",f=>{var E,R,K,Q,fe;let l=0;typeof f=="number"?l=f:f&&typeof f=="object"&&"position"in f?l=f.position:l=((E=g.getPosition)==null?void 0:E.call(g))??0,(K=(R=p.current).onTimeUpdate)==null||K.call(R,l),!J.current&&l>=20&&(J.current=!0,(fe=(Q=p.current).onProgress20s)==null||fe.call(Q,Math.floor(l)))}),S("vp-video-switch",()=>{queueMicrotask(()=>{var E,R,K,Q;const l=g._switchDirection;l==="next"?(R=(E=p.current).onNext)==null||R.call(E):l==="previous"&&((Q=(K=p.current).onPrevious)==null||Q.call(K)),J.current=!1})})):(S("ready",()=>{var f,l;(l=(f=p.current).onReady)==null||l.call(f)}),S("play",()=>{var f,l;(l=(f=p.current).onPlay)==null||l.call(f)}),S("complete",()=>{var f,l;(l=(f=p.current).onComplete)==null||l.call(f),J.current=!1}),S("video-started",f=>{var l,E;(E=(l=p.current).onVideoStarted)==null||E.call(l,f)}),S("video-state",()=>{var l,E,R;const f=((l=g.getPosition)==null?void 0:l.call(g))??0;(R=(E=p.current).onProgress10s)==null||R.call(E,Math.floor(f))}),S("time",f=>{var E,R,K,Q,fe;let l=0;typeof f=="number"?l=f:f&&typeof f=="object"&&"position"in f?l=f.position:l=((E=g.getPosition)==null?void 0:E.call(g))??0,(K=(R=p.current).onTimeUpdate)==null||K.call(R,l),!J.current&&l>=20&&(J.current=!0,(fe=(Q=p.current).onProgress20s)==null||fe.call(Q,Math.floor(l)))}),S("playlistItem",()=>{var f,l;(l=(f=p.current).onNext)==null||l.call(f),J.current=!1}))}}}catch($){if(h){const ge=$ instanceof Error?$.message:String($);q(ge),console.error("VP Player initialization error:",$)}}})(),()=>{var c;if(h=!1,(c=X.current)!=null&&c.destroy){try{X.current.destroy()}catch{}X.current=null}}},[le,G,o,ce,I,oe,a,e,r,n]),{playerRef:k,playerInstanceRef:X,isScriptLoaded:le,isLoading:!le&&!ne,error:ne,generatedPlayerId:G}},xr=O.forwardRef(({scriptId:e,videoId:r,scriptUrl:t,projectId:n,config:a,playerId:s,isVertical:u=!1,isReels:d=!1,thumbnailUrl:w,onClose:y,className:m,hiddenClasses:v=[],onReady:M,onPlay:C,onPause:j,onResume:b,onComplete:P,onError:x,onVideoStarted:A,onTimeUpdate:N,onQuartile25:D,onQuartile50:W,onQuartile75:F,onNext:k,onPrevious:X,onProgress10s:ne,onProgress20s:q},Z)=>{const{playerRef:G,playerInstanceRef:p,isScriptLoaded:J,isLoading:ae,error:ie,generatedPlayerId:oe}=wr({scriptId:e,videoId:r,scriptUrl:t,projectId:n,config:a,playerId:s,isVertical:u,isReels:d,onReady:M,onPlay:C,onPause:j,onResume:b,onComplete:P,onError:x,onVideoStarted:A,onTimeUpdate:N,onQuartile25:D,onQuartile50:W,onQuartile75:F,onNext:k,onPrevious:X,onProgress10s:ne,onProgress20s:q});O.useImperativeHandle(Z,()=>({play:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.play)==null?void 0:c.call(i)},pause:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.pause)==null?void 0:c.call(i)},seek:i=>{var c,$;return($=(c=p.current)==null?void 0:c.seek)==null?void 0:$.call(c,i)},forward:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.forward)==null?void 0:c.call(i)},rewind:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.rewind)==null?void 0:c.call(i)},replay:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.replay)==null?void 0:c.call(i)},mute:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.mute)==null?void 0:c.call(i)},unmute:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.unmute)==null?void 0:c.call(i)},togglePlay:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.togglePlay)==null?void 0:c.call(i)},toggleMute:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.toggleMute)==null?void 0:c.call(i)},enterFullScreen:()=>{var i,c,$;return($=((i=p.current)==null?void 0:i.enterFullScreen)??((c=p.current)==null?void 0:c.enterFullscreen))==null?void 0:$()},exitFullScreen:()=>{var i,c,$;return($=((i=p.current)==null?void 0:i.exitFullScreen)??((c=p.current)==null?void 0:c.exitFullscreen))==null?void 0:$()},getPosition:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.getPosition)==null?void 0:c.call(i))??null},getDuration:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.getDuration)==null?void 0:c.call(i))??null},getVolume:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.getVolume)==null?void 0:c.call(i))??null},setVolume:i=>{var c,$;return($=(c=p.current)==null?void 0:c.setVolume)==null?void 0:$.call(c,i)},isMuted:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.isMuted)==null?void 0:c.call(i))??!1},isPlaying:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.isPlaying)==null?void 0:c.call(i))??!1},isPaused:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.isPaused)==null?void 0:c.call(i))??!1},isFullscreen:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.isFullscreen)==null?void 0:c.call(i))??!1}}),[]);const[I,ce]=O.useState(!0),le=()=>d&&ce(!0),o=()=>{var i,c;!d||!I||(ce(!1),(c=(i=p.current)==null?void 0:i.pause)==null||c.call(i),y==null||y())};if(ie)return U.jsxs(fr,{type:"error",children:["An error occurred: ",ie]});const h=()=>U.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.8)",zIndex:10},children:U.jsx(fr,{type:"loading",children:"Loading..."})});return d?U.jsxs(U.Fragment,{children:[!I&&U.jsx("div",{onClick:le,style:{cursor:"pointer",width:"100%",height:"100%",backgroundImage:w?`url(${w})`:void 0,backgroundSize:"cover",backgroundPosition:"center"}}),I&&U.jsx(dr,{onClick:o,className:m,children:U.jsx(pr,{className:m,onClick:i=>i.stopPropagation(),children:U.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[U.jsx(De,{id:oe,ref:G,width:"100%",height:"100%",$hiddenClasses:v,className:m}),(ae||!J)&&U.jsx(h,{})]})})})]}):U.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[U.jsx(De,{id:oe,ref:G,width:"100%",height:"100%",$hiddenClasses:v,className:m}),(ae||!J)&&U.jsx(h,{})]})});xr.displayName="VPPlayer",V.Overlay=dr,V.PlayerContainer=De,V.PlayerWrapper=pr,V.VPPlayer=xr,V.VP_PLAYER_BASE_URL=ue,V.appendDivIdToUrl=vr,V.generatePlayerId=yr,V.getFullyManagedPlayerScriptUrl=mr,V.getManagedPlayerScriptUrl=_t,V.getPlayerScriptUrl=hr,V.getVerticalPlayerScriptUrl=gr,V.useVPPlayerLogic=wr,V.useVPPlayerScript=br,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})}));
|
|
86
|
+
`,ce="https://host.vpplayer.tech",pr=e=>`${ce}/player/${e}/vpplayer.js`,St=e=>`${ce}/player/${e}.js`,hr=(e,r)=>`${ce}/player/${e}/${r}.js`,mr=e=>`${ce}/vertical-player/${e}.js`,Et=(e,r)=>`${ce}/vertical-player/${e}/${r}.js`,_t=(e,r)=>`${ce}/player/${e}/${r}.json`,Tt=(e,r)=>`${ce}/vertical-player/${e}/${r}.json`,gr=(e,r)=>e?`vp-player-${e}`:r?`vp-player-default-${r}`:"vp-player-default",yr=(e,r)=>{const t=new URL(e);return t.searchParams.set("divId",r),t.toString()},je=new Map,vr=(e,r)=>{const[t,n]=O.useState(!1),[a,s]=O.useState(null);return O.useEffect(()=>{let f;try{f=r||pr(e||"latest")}catch(v){const m=v instanceof Error?v.message:String(v);s(`Failed to resolve script URL: ${m}`);return}if(!je.has(f))if(document.querySelector(`script[src="${f}"]`))je.set(f,Promise.resolve());else{const m=new Promise((b,$)=>{const C=document.createElement("script");C.src=f,C.async=!0,C.onload=()=>b(),C.onerror=()=>$(new Error(`Failed to load script: ${f}`)),document.body.appendChild(C)});je.set(f,m)}let d=!0;const x=je.get(f);return x&&x.then(()=>{d&&(n(!0),s(null))}).catch(v=>{d&&(n(!1),s(v instanceof Error?v.message:String(v)))}),()=>{d=!1}},[e,r]),{isLoaded:t,error:a}};function $e(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function br(e,r){if(!$e(e)||!$e(r))return r;const t={...e};for(const n of Object.keys(r)){const a=r[n],s=t[n];$e(a)&&$e(s)?t[n]=br(s,a):a!==void 0&&(t[n]=a)}return t}async function Rt(e,r,t){if(!e)return console.warn("VP Player: No scriptId provided, cannot fetch config. Using user config directly."),null;r||console.warn("VP Player: No videoId provided, attempting to fetch config with scriptId only...");const n=t?Tt(e,r||""):_t(e,r||"");try{const a=await fetch(n);return a.ok?await a.json():null}catch{return null}}const Pr=({scriptId:e,videoId:r,scriptUrl:t,projectId:n,config:a,playerId:s,isVertical:f=!1,isReels:d=!1,onReady:x,onPlay:v,onPause:m,onResume:b,onComplete:$,onError:C,onVideoStarted:j,onTimeUpdate:P,onQuartile25:w,onQuartile50:S,onQuartile75:A,onNext:F,onPrevious:z,onProgress10s:D,onProgress20s:M})=>{const E=O.useRef(null),X=O.useRef(null),[te,Y]=O.useState(null),Z=O.useId().replace(/:/g,""),q=O.useMemo(()=>gr(s||`auto-${Z}`,r),[s,Z,r]),p=O.useRef({onReady:x,onPlay:v,onPause:m,onResume:b,onComplete:$,onError:C,onVideoStarted:j,onTimeUpdate:P,onQuartile25:w,onQuartile50:S,onQuartile75:A,onNext:F,onPrevious:z,onProgress10s:D,onProgress20s:M});O.useEffect(()=>{p.current={onReady:x,onPlay:v,onPause:m,onResume:b,onComplete:$,onError:C,onVideoStarted:j,onTimeUpdate:P,onQuartile25:w,onQuartile50:S,onQuartile75:A,onNext:F,onPrevious:z,onProgress10s:D,onProgress20s:M}});const se=O.useRef(!1),J=O.useRef(!1),ne=!!a,G=O.useMemo(()=>f||d?!0:t?t.includes("vertical-player")||t.includes("vpverticalplayer"):!1,[f,d,t]),ae=O.useMemo(()=>{let o;if(t)o=t;else if(e&&r&&!ne)o=G?Et(e,r):hr(e,r);else if(e)o=G?mr(e):`https://host.vpplayer.tech/player/${e}.js`;else return null;return yr(o,q)},[t,e,r,G,q,ne]),{isLoaded:ie,error:le}=vr(null,ae||void 0);return O.useEffect(()=>{if(!ae){Y("VPPlayer: Provide scriptUrl OR (scriptId + videoId) OR (scriptId + config) to initialize the player.");return}if(le){Y(le);return}if(!ie)return;let o=!0;return(async()=>{var i;try{const c=G?window.vpVerticalPlayer:window.vpPlayer;if(!c){Y(`VP Player: Script loaded but global function not found. Expected ${G?"vpVerticalPlayer":"vpPlayer"}.`);return}if(await new Promise(h=>setTimeout(h,0)),!document.getElementById(q)){console.error(`VP Player: Container element with ID '${q}' not found in DOM.`);return}const _=c(q);if(!_){Y("VP Player: Failed to get player instance.");return}if(o){if(X.current=_,Y(null),ne&&a){let h;const u=await Rt(e,r,G);u?h=br(u,a):h=a,n&&!h.projectId&&(h.projectId=n);try{_.setup(h)}catch(l){const y=l instanceof Error?l.message:String(l);if(y.includes("already initialized")){console.warn("VP Player: Player already initialized, attempting to destroy and retry.");try{if((i=_.destroy)==null||i.call(_),await new Promise(k=>setTimeout(k,50)),o&&document.getElementById(q)){const k=c(q);k&&(k.setup(h),X.current=k)}}catch(k){console.error("VP Player: Failed to recover from initialization error",k)}}else{console.error("VP Player: Setup error",l),Y(`Player setup failed: ${y}`);return}}}if(_.on){const h=_.on.bind(_);h("vp-event",u=>{var k,K,ue,xe,xr;const l=u,y=l==null?void 0:l.eventName;G&&(y==="vp-state-paused"&&((((k=_.isEnded)==null?void 0:k.call(_))??!1)||(J.current=!0,(ue=(K=p.current).onPause)==null||ue.call(K))),y==="vp-state-playing"&&(J.current&&((xr=(xe=p.current).onResume)==null||xr.call(xe)),J.current=!1),y==="vp-video-switch"&&(J.current=!1),y==="vp-video-completed"&&(J.current=!1))}),h("analytics-25%-completed",()=>{var u,l;(l=(u=p.current).onQuartile25)==null||l.call(u)}),h("analytics-50%-completed",()=>{var u,l;(l=(u=p.current).onQuartile50)==null||l.call(u)}),h("analytics-75%-completed",()=>{var u,l;(l=(u=p.current).onQuartile75)==null||l.call(u)}),G||h("pause",()=>{var u,l;(l=(u=p.current).onPause)==null||l.call(u)}),h("error",u=>{var y,k;const l=typeof u=="string"?u:(u==null?void 0:u.message)||"Unknown error";(k=(y=p.current).onError)==null||k.call(y,l)}),G?(h("play",()=>{var y,k;const l=_.videoObject;(k=(y=p.current).onPlay)==null||k.call(y,l)}),h("vp-first-frame",()=>{var y,k;const l=_.videoObject;(k=(y=p.current).onReady)==null||k.call(y,l)}),h("vp-video-started",u=>{var l,y;(y=(l=p.current).onVideoStarted)==null||y.call(l,u)}),h("vp-twenty-view",()=>{var l,y,k;const u=((l=_.getPosition)==null?void 0:l.call(_))??20;(k=(y=p.current).onProgress20s)==null||k.call(y,Math.floor(u))}),h("vp-video-state",()=>{var l,y,k;const u=((l=_.getPosition)==null?void 0:l.call(_))??0;(k=(y=p.current).onProgress10s)==null||k.call(y,Math.floor(u))}),h("vp-time",u=>{var y,k,K;let l=0;typeof u=="number"?l=u:u&&typeof u=="object"&&"position"in u?l=u.position:l=((y=_.getPosition)==null?void 0:y.call(_))??0,(K=(k=p.current).onTimeUpdate)==null||K.call(k,l)}),h("vp-video-switch",()=>{queueMicrotask(()=>{var y,k,K,ue;const l=_._switchDirection;l==="next"?(k=(y=p.current).onNext)==null||k.call(y):l==="previous"&&((ue=(K=p.current).onPrevious)==null||ue.call(K))})}),h("vp-video-completed",()=>{var u,l;(l=(u=p.current).onComplete)==null||l.call(u)})):(h("ready",()=>{var u,l;(l=(u=p.current).onReady)==null||l.call(u)}),h("play",()=>{var u,l;(l=(u=p.current).onPlay)==null||l.call(u)}),h("complete",()=>{var u,l;(l=(u=p.current).onComplete)==null||l.call(u),se.current=!1}),h("video-started",u=>{var l,y;(y=(l=p.current).onVideoStarted)==null||y.call(l,u)}),h("video-state",()=>{var l,y,k;const u=((l=_.getPosition)==null?void 0:l.call(_))??0;(k=(y=p.current).onProgress10s)==null||k.call(y,Math.floor(u))}),h("time",u=>{var y,k,K,ue,xe;let l=0;typeof u=="number"?l=u:u&&typeof u=="object"&&"position"in u?l=u.position:l=((y=_.getPosition)==null?void 0:y.call(_))??0,(K=(k=p.current).onTimeUpdate)==null||K.call(k,l),!se.current&&l>=20&&(se.current=!0,(xe=(ue=p.current).onProgress20s)==null||xe.call(ue,Math.floor(l)))}),h("playlistItem",()=>{var u,l;(l=(u=p.current).onNext)==null||l.call(u),se.current=!1}))}}}catch(c){if(o){const L=c instanceof Error?c.message:String(c);Y(L),console.error("VP Player initialization error:",c)}}})(),()=>{var i;if(o=!1,(i=X.current)!=null&&i.destroy){try{X.current.destroy()}catch{}X.current=null}}},[ie,q,le,ae,G,ne,a,e,r,n]),{playerRef:E,playerInstanceRef:X,isScriptLoaded:ie,isLoading:!ie&&!te,error:te,generatedPlayerId:q}},wr=O.forwardRef(({scriptId:e,videoId:r,scriptUrl:t,projectId:n,config:a,playerId:s,isVertical:f=!1,isReels:d=!1,thumbnailUrl:x,onClose:v,className:m,hiddenClasses:b=[],onReady:$,onPlay:C,onPause:j,onResume:P,onComplete:w,onError:S,onVideoStarted:A,onTimeUpdate:F,onQuartile25:z,onQuartile50:D,onQuartile75:M,onNext:E,onPrevious:X,onProgress10s:te,onProgress20s:Y},Z)=>{const{playerRef:q,playerInstanceRef:p,isScriptLoaded:se,isLoading:J,error:ne,generatedPlayerId:G}=Pr({scriptId:e,videoId:r,scriptUrl:t,projectId:n,config:a,playerId:s,isVertical:f,isReels:d,onReady:$,onPlay:C,onPause:j,onResume:P,onComplete:w,onError:S,onVideoStarted:A,onTimeUpdate:F,onQuartile25:z,onQuartile50:D,onQuartile75:M,onNext:E,onPrevious:X,onProgress10s:te,onProgress20s:Y});O.useImperativeHandle(Z,()=>({play:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.play)==null?void 0:c.call(i)},pause:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.pause)==null?void 0:c.call(i)},seek:i=>{var c,L;return(L=(c=p.current)==null?void 0:c.seek)==null?void 0:L.call(c,i)},forward:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.forward)==null?void 0:c.call(i)},rewind:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.rewind)==null?void 0:c.call(i)},replay:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.replay)==null?void 0:c.call(i)},mute:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.mute)==null?void 0:c.call(i)},unmute:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.unmute)==null?void 0:c.call(i)},togglePlay:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.togglePlay)==null?void 0:c.call(i)},toggleMute:()=>{var i,c;return(c=(i=p.current)==null?void 0:i.toggleMute)==null?void 0:c.call(i)},enterFullScreen:()=>{var i,c,L;return(L=((i=p.current)==null?void 0:i.enterFullScreen)??((c=p.current)==null?void 0:c.enterFullscreen))==null?void 0:L()},exitFullScreen:()=>{var i,c,L;return(L=((i=p.current)==null?void 0:i.exitFullScreen)??((c=p.current)==null?void 0:c.exitFullscreen))==null?void 0:L()},getPosition:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.getPosition)==null?void 0:c.call(i))??null},getDuration:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.getDuration)==null?void 0:c.call(i))??null},getVolume:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.getVolume)==null?void 0:c.call(i))??null},setVolume:i=>{var c,L;return(L=(c=p.current)==null?void 0:c.setVolume)==null?void 0:L.call(c,i)},isMuted:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.isMuted)==null?void 0:c.call(i))??!1},isPlaying:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.isPlaying)==null?void 0:c.call(i))??!1},isPaused:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.isPaused)==null?void 0:c.call(i))??!1},isFullscreen:()=>{var i,c;return((c=(i=p.current)==null?void 0:i.isFullscreen)==null?void 0:c.call(i))??!1}}),[]);const[ae,ie]=O.useState(!0),le=()=>d&&ie(!0),o=()=>{var i,c;!d||!ae||(ie(!1),(c=(i=p.current)==null?void 0:i.pause)==null||c.call(i),v==null||v())};if(ne)return I.jsxs(ur,{type:"error",children:["An error occurred: ",ne]});const g=()=>I.jsx("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(0,0,0,0.8)",zIndex:10},children:I.jsx(ur,{type:"loading",children:"Loading..."})});return d?I.jsxs(I.Fragment,{children:[!ae&&I.jsx("div",{onClick:le,style:{cursor:"pointer",width:"100%",height:"100%",backgroundImage:x?`url(${x})`:void 0,backgroundSize:"cover",backgroundPosition:"center"}}),ae&&I.jsx(fr,{onClick:o,className:m,children:I.jsx(dr,{className:m,onClick:i=>i.stopPropagation(),children:I.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[I.jsx(ze,{id:G,ref:q,width:"100%",height:"100%",$hiddenClasses:b,className:m}),(J||!se)&&I.jsx(g,{})]})})})]}):I.jsxs("div",{style:{position:"relative",width:"100%",height:"100%"},children:[I.jsx(ze,{id:G,ref:q,width:"100%",height:"100%",$hiddenClasses:b,className:m}),(J||!se)&&I.jsx(g,{})]})});wr.displayName="VPPlayer",V.Overlay=fr,V.PlayerContainer=ze,V.PlayerWrapper=dr,V.VPPlayer=wr,V.VP_PLAYER_BASE_URL=ce,V.appendDivIdToUrl=yr,V.generatePlayerId=gr,V.getFullyManagedPlayerScriptUrl=hr,V.getManagedPlayerScriptUrl=St,V.getPlayerScriptUrl=pr,V.getVerticalPlayerScriptUrl=mr,V.useVPPlayerLogic=Pr,V.useVPPlayerScript=vr,Object.defineProperty(V,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED