@car-cutter/vue-webplayer 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7804,12 +7804,13 @@ const nc = ({ className: i }) => /* @__PURE__ */ u.jsx(Ue, { className: i, custo
7804
7804
  return;
7805
7805
  le("grab"), ie("mandatory");
7806
7806
  const C = (R) => {
7807
- R.button === 0 && (R.preventDefault(), R.stopPropagation(), X.current = !0, Y.current = R.pageX - Q.offsetLeft, I.current = Q.scrollLeft, W(), le("grabbing"), ie("none"));
7807
+ R.button === 0 && (R.preventDefault(), R.stopPropagation(), W(), X.current = !0, Y.current = R.pageX - Q.offsetLeft, I.current = Q.scrollLeft, le("grabbing"));
7808
7808
  }, F = (R) => {
7809
7809
  if (!X.current)
7810
7810
  return;
7811
7811
  if (Y.current === null)
7812
7812
  throw new Error("[onMouseMove] startX is null");
7813
+ ie("none");
7813
7814
  const z = R.pageX - Q.offsetLeft - Y.current;
7814
7815
  requestAnimationFrame(() => {
7815
7816
  if (I.current === null)
@@ -37,7 +37,7 @@ Error generating stack: `+l.message+`
37
37
  *
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
- */var ji;function ad(){if(ji)return ir;ji=1;var i=Kr,m=Symbol.for("react.element"),c=Symbol.for("react.fragment"),b=Object.prototype.hasOwnProperty,S=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L={key:!0,ref:!0,__self:!0,__source:!0};function _(k,E,Z){var O,P={},V=null,re=null;Z!==void 0&&(V=""+Z),E.key!==void 0&&(V=""+E.key),E.ref!==void 0&&(re=E.ref);for(O in E)b.call(E,O)&&!L.hasOwnProperty(O)&&(P[O]=E[O]);if(k&&k.defaultProps)for(O in E=k.defaultProps,E)P[O]===void 0&&(P[O]=E[O]);return{$$typeof:m,type:k,key:V,ref:re,props:P,_owner:S.current}}return ir.Fragment=c,ir.jsx=_,ir.jsxs=_,ir}Ni.exports=ad();var u=Ni.exports;async function ld(i){const m=await fetch(i);if(!m.ok)throw new Error(`Failed to fetch composition: ${m.statusText}`);return await m.json()}const pl=new Map,od=i=>{const[m,c]=v.useState({status:"pending",isSuccess:!1});return v.useEffect(()=>{const b=L=>c({status:"success",data:L,isSuccess:!0}),S=pl.get(i);if(S&&!(S instanceof Promise)){b(S);return}c({status:"fetching",isSuccess:!1}),async function(){try{let L;if(S)L=await S;else{const _=ld(i);pl.set(i,_),L=await _,pl.set(i,L)}b(L)}catch(L){c({status:"error",isSuccess:!1,error:L})}}()},[i]),m},Li=v.createContext(null),$t=()=>{const i=v.useContext(Li);if(!i)throw new Error("useCompositionContext must be used within a CompositionContextProvider");return i},id=({composition:i,children:m})=>{const{aspectRatio:c,categories:b}=i,S=v.useMemo(()=>b.flatMap(({items:_})=>_),[b]),L={aspectRatio:c.replace(":"," / ")};return u.jsx(Li.Provider,{value:{...i,items:S,aspectRatioStyle:L},children:m})},Ti=500,ml=.75,Gr=1+ml*2;function mn(i,m,c){return Math.min(Math.max(i,m),c)}const Jr=(i,m,c)=>i+(m-i)*c,Pi=(i,m)=>(i%m+m)%m,zi=v.createContext(null),It=()=>{const i=v.useContext(zi);if(!i)throw new Error("useGlobalContext must be used within a GlobalContextProvider");return i},sd=({children:i,...m})=>u.jsx(zi.Provider,{value:m,children:i}),Mi=v.createContext(null),st=()=>{const i=v.useContext(Mi);if(!i)throw new Error("useControlsContext must be used within a ControlsContextProvider");return i},ud=({children:i})=>{const{infiniteCarrousel:m,preventFullScreen:c,emitEvent:b,isFullScreen:S,requestFullscreen:L,exitFullscreen:_}=It(),{categories:k,items:E}=$t(),[Z,O]=v.useState(E.map(()=>null)),P=v.useCallback((ve,ct)=>{O(vt=>vt.map((Zt,yt)=>yt===ve?ct:Zt))},[]),[V,re]=v.useState(0),[U,M]=v.useState(null),$=U??V,B=E[$],X=Z[$],[Y,I]=v.useState(null),H=!!Y,W=v.useCallback(()=>I(null),[]),J=v.useCallback(()=>{if(H||U!==null)return;const ve=V-1;ve>=0?M(ve):m&&(I("first_to_last"),M(E.length-1))},[H,U,V,m,E.length]),le=v.useCallback(()=>{if(H||U!==null)return;const ve=V+1;ve<E.length?M(ve):m&&(I("last_to_first"),M(0))},[H,U,V,E.length,m]),ie=v.useCallback(ve=>{const ct=Math.min(V,ve),vt=Math.max(V,ve);Z.slice(ct,vt+1).filter(Zt=>Zt===null).length>2&&I("instant"),M(ve)},[V,Z]),A=v.useMemo(()=>{for(const ve of k)if(ve.items.includes(B))return ve.id;throw new Error("Current item not found in any category")},[k,B]),ae=v.useCallback(ve=>{var ct;const vt=(ct=k.find(({id:yt})=>yt===ve))==null?void 0:ct.items[0];if(vt===void 0)throw new Error("Failed to find target category");const Zt=E.findIndex(yt=>yt===vt);ie(Zt)},[k,E,ie]),te=v.useMemo(()=>{var ve;switch(B.type){case"image":return!!((ve=B.hotspots)!=null&&ve.length);case"360":return X==="running";case"video":return!1}},[B,X]),[oe,he]=v.useState(!0),Q=v.useCallback(()=>{const ve=!oe;he(ve),b(ve?di:fi)},[b,oe]),C=v.useMemo(()=>{switch(B.type){case"image":case"360":return!0;case"video":return X!=="running"}},[B,X]),[F,w]=v.useState(!1),R=v.useCallback(()=>{const ve=!F;w(ve),b(ve?pi:mi)},[b,F]),[z,p]=v.useState(null),x=v.useCallback(()=>p(null),[]),se=!!z,ue=v.useMemo(()=>{switch(B.type){case"image":return!0;case"360":return X==="running";case"video":return!1}},[B.type,X]),[fe,me]=v.useState(1),ke=fe!==1,be=fe<Gr,Ce=fe>1,Ie=v.useCallback(ve=>{me(ct=>mn(ct+ve,1,Gr))},[]),Nt=v.useCallback(()=>me(1),[]),Mn=v.useCallback(()=>Ie(ml),[Ie]),In=v.useCallback(()=>Ie(-ml),[Ie]),gn=v.useCallback(()=>{Nt(),x()},[Nt,x]),[Rt,aa]=v.useState(!1),[vn,dr]=v.useState(),[yn,Yt]=v.useState(!1),rt=v.useCallback(async ve=>{gn(),aa(ve),b(ve?ui:ci)},[b,gn]),jt=v.useCallback(()=>{clearTimeout(vn);const ve=setTimeout(()=>{dr(void 0)},Ti);dr(ve)},[vn]),Rn=v.useCallback(async()=>{if(jt(),!c){const ve=await L();if(Yt(!ve),ve)return}rt(!0)},[c,rt,L,jt]),Dn=v.useCallback(async()=>{jt(),!(!c&&(Yt(!1),await _()))&&rt(!1)},[c,rt,_,jt]),la=v.useCallback(()=>{Rt?Dn():Rn()},[Dn,Rn,Rt]);return v.useEffect(()=>{c||yn&&Rt||S!==Rt&&(jt(),rt(S))},[c,rt,Rt,yn,S,jt]),u.jsx(Mi.Provider,{value:{setItemInteraction:P,slidable:E.length>1,carrouselItemIndex:V,setCarrouselItemIndex:re,itemIndexCommand:U,setItemIndexCommand:M,masterItemIndex:$,specialCommand:Y,isRunningSpecialCommand:H,finishSpecialCommand:W,prevItem:J,nextItem:le,scrollToItemIndex:ie,displayedCategoryId:A,changeCategory:ae,enableHotspotsControl:te,showHotspots:oe,toggleHotspots:Q,showGalleryControls:C,showGallery:F,toggleGallery:R,shownDetails:z,isShowingDetails:se,setShownDetails:p,resetShownDetails:x,showZoomControls:ue,zoom:fe,isZooming:ke,setZoom:me,resetZoom:Nt,canZoomIn:be,zoomIn:Mn,canZoomOut:Ce,zoomOut:In,resetView:gn,extendMode:Rt,enableExtendMode:Rn,disableExtendMode:Dn,toggleExtendMode:la,extendTransition:!!vn,fakeFullScreen:yn},children:i})},Ii=["left","center","right","fullW"],Ri=["top","middle","bottom","fullH"],cd=[...Ii,...Ri,"top-left","top-center","top-right","top-fullW","middle-left","middle-center","middle-right","middle-fullW","bottom-left","bottom-center","bottom-right","bottom-fullW","fullH-left","fullH-center","fullH-right","fullW-fullW"];function dd(i){return Ii.includes(i)}function fd(i){return Ri.includes(i)}function pd(i){return cd.includes(i)}function md(i){if(!pd(i))throw new Error(`Invalid position: ${i}`);return fd(i)?[i,void 0]:dd(i)?[void 0,i]:i.split("-")}function ye(...i){return i.filter(m=>!!m).map(m=>m.trim()).join(" ")}function hd(i){switch(i){case"left":return"left-1 small:left-2";case"right":return"right-1 small:right-2";case"center":return"left-1/2 -translate-x-1/2";case"fullW":return"inset-x-1 small:inset-x-2"}}function Di(i){switch(i){case"top":return"top-1 small:top-2";case"bottom":return"bottom-1 small:bottom-2";case"middle":return"top-1/2 -translate-y-1/2";case"fullH":return"inset-y-1 small:inset-y-2"}}function gd({positionX:i,positionY:m}){const c=new Array;return i&&c.push(hd(i)),m&&c.push(Di(m)),c.join(" ")}function zn(i){const[m,c]=md(i);return gd({positionX:c,positionY:m})}const Fi=v.createContext(null),Vi=()=>v.useContext(Fi),hl=()=>{const i=Vi();if(!i)throw new Error("useCustomizationContext must be used within a CustomizationContextProvider");return i},vd=({children:i})=>{const[m,c]=v.useState(new Map),b=v.useCallback(_=>{const k=m.get(_);if(k)return k;const E=document.querySelector(`${qr}[name="${_}"]`);if(!E)return;const Z=E.getAttribute("color")??void 0,O=E.innerHTML,P=O?u.jsx("div",{className:"size-full",dangerouslySetInnerHTML:{__html:O}}):void 0;if(!(!Z&&!P))return{Icon:P,color:Z}},[m]),S=v.useCallback((_,k)=>{c(E=>new Map(E.set(_,k)))},[]),L=v.useCallback(_=>{c(k=>(k.delete(_),new Map(k)))},[]);return u.jsx(Fi.Provider,{value:{getIconConfig:b,setIconConfig:S,resetIconConfig:L},children:i})},Oe=({customizationKey:i,className:m="",children:c})=>{const{getIconConfig:b}=hl(),S=b(i);return S?u.jsx("div",{className:m,style:{color:S==null?void 0:S.color},children:(S==null?void 0:S.Icon)??c}):c},yd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_CLOSE",children:u.jsx("svg",{className:i,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})})}),bd={fill:{primary:"bg-primary text-primary-foreground hover:opacity-80",neutral:"bg-background text-neutral-foreground hover:opacity-80"},ghost:{primary:"bg-transparent text-foreground hover:bg-primary/25",neutral:"bg-transparent text-background hover:bg-foreground/25"}},wd={button:"h-8 px-2",icon:"size-8 p-2"},ut=({variant:i="fill",shape:m="button",color:c="primary",className:b="",children:S,...L})=>{const _=bd[i][c],k=wd[m];return u.jsx("button",{className:`${_} ${k} flex items-center justify-center rounded-ui text-sm transition disabled:opacity-60 ${b}`,...L,children:S})},Oi=({className:i="",...m})=>u.jsx(ut,{color:"neutral",shape:"icon",className:i,...m,children:u.jsx(yd,{className:"size-full"})}),Hi=({title:i,error:m,children:c})=>(v.useEffect(()=>{console.error(i,m)},[m,i]),u.jsxs("div",{className:"space-y-2",children:[u.jsx("div",{className:"text-xl",children:i}),c]})),xd={primary:"border-primary",neutral:"border-background"},kd={sm:"size-4 border",md:"size-8 border-2",lg:"size-12 border-4"},Ui=({color:i="neutral",size:m="md"})=>{const c=xd[i],b=kd[m];return u.jsx("div",{className:`inline-block ${b} animate-rotation rounded-full ${c} border-b-transparent`})},sr=({src:i,className:m,onLoad:c,imgInPlayerWidthRatio:b=1,onlyThumbnail:S,fadeIn:L,..._})=>{const{minImageWidth:k,maxImageWidth:E,imageLoadStrategy:Z,playerInViewportWidthRatio:O}=It(),{imageHdWidth:P,imageSubWidths:V}=$t(),[re,U]=v.useMemo(()=>{const B=V.concat(P).sort((I,H)=>I-H).filter(I=>!(k&&I<k||E&&I>E));if(B.length===0)throw new Error("No image widths available for the given constraints");const X=B.map(I=>`${I!==P?Kc(i,I):i} ${I}w`);let Y;if(S)Y=[`${B.shift()}px`];else{const I=1/(b*O);if(Z==="quality"){const H=B.pop();Y=B.map(W=>`(max-width: ${I*W}px) ${W}px`),Y.push(`${H}px`)}else{const H=B.shift();Y=B.reverse().map(W=>`(min-width: ${I*W}px) ${W}px`),Y.push(`${H}px`)}}return[X.join(", "),Y.join(", ")]},[P,Z,V,b,E,k,S,O,i]),[M,$]=v.useState();return v.useEffect(()=>{if(M===!0)return;const B=setTimeout(()=>{$(!1)},30);return()=>clearTimeout(B)},[M]),u.jsx("img",{src:i,srcSet:re,sizes:U,className:ye(m,L&&ye(M!==void 0&&"transition-opacity duration-200",M===!1&&"opacity-0",M===!0&&"opacity-100")),onLoad:B=>{$(!0),c==null||c(B)},..._})},gl=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_PLAY",children:u.jsx("svg",{className:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("polygon",{points:"6 3 20 12 6 21 6 3"})})}),Wi=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_360",children:u.jsxs("svg",{className:i,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip0_134_843)",children:[u.jsx("path",{d:"M35.2497 43.93C34.4358 43.93 33.7296 43.325 33.6241 42.4966C33.51 41.5977 34.1457 40.7765 35.0442 40.662C40.2284 40.0015 44.8709 38.5967 48.1162 36.7057C51.0843 34.9767 52.7185 32.9438 52.7185 30.9819C52.7185 28.8196 50.8062 27.0504 49.2014 25.9464C48.455 25.4329 48.2662 24.4117 48.7798 23.6649C49.2933 22.9185 50.3148 22.7297 51.0612 23.2432C54.2921 25.4657 55.9998 28.1416 55.9998 30.9823C55.9998 34.2063 53.8452 37.1659 49.7684 39.5409C46.0988 41.6789 41.1509 43.1922 35.4591 43.9172C35.3886 43.9257 35.3185 43.93 35.2497 43.93Z",fill:"currentColor"}),u.jsx("path",{d:"M27.6 41.5797L23.225 37.2047C22.5842 36.5638 21.5455 36.5638 20.9047 37.2047C20.2642 37.8451 20.2642 38.8842 20.9047 39.5246L22.183 40.8029C17.2816 40.2966 12.8289 39.1555 9.38102 37.4973C5.50463 35.6333 3.28124 33.2582 3.28124 30.9818C3.28124 29.0511 4.87316 27.0443 7.76347 25.3311C8.5432 24.8692 8.8004 23.8626 8.33854 23.0833C7.87627 22.3036 6.86968 22.0464 6.09038 22.5083C1.05658 25.4922 0 28.7631 0 30.9818C0 34.622 2.82665 37.9861 7.95915 40.4547C11.9428 42.3701 17.0958 43.6531 22.7098 44.1495L20.9047 45.9546C20.2642 46.5951 20.2642 47.6341 20.9047 48.275C21.2251 48.595 21.6451 48.7552 22.0651 48.7552C22.4846 48.7552 22.9046 48.595 23.225 48.275L27.6 43.9C28.2405 43.2592 28.2405 42.2201 27.6 41.5797Z",fill:"currentColor"}),u.jsx("path",{d:"M17.1827 27.6963V27.3016C17.1827 25.9092 16.3303 25.6391 15.1874 25.6391C14.4808 25.6391 14.2522 25.0158 14.2522 24.3924C14.2522 23.7687 14.4808 23.1453 15.1874 23.1453C15.977 23.1453 16.8084 23.0415 16.8084 21.3581C16.8084 20.1529 16.1227 19.8619 15.2703 19.8619C14.2522 19.8619 13.7327 20.1114 13.7327 20.9219C13.7327 21.6282 13.4208 22.1063 12.2155 22.1063C10.7193 22.1063 10.5326 21.7944 10.5326 20.7967C10.5326 19.1762 11.696 17.0771 15.2703 17.0771C17.9098 17.0771 19.9046 18.0329 19.9046 20.8386C19.9046 22.3553 19.3437 23.7687 18.3046 24.2468C19.5308 24.7039 20.4242 25.6182 20.4242 27.3016V27.6963C20.4242 31.1045 18.076 32.393 15.1665 32.393C11.5922 32.393 10.2207 30.2111 10.2207 28.4654C10.2207 27.5301 10.6155 27.2806 11.7584 27.2806C13.0884 27.2806 13.4208 27.5716 13.4208 28.3616C13.4208 29.3382 14.3355 29.5668 15.2703 29.5668C16.6836 29.5668 17.1827 29.0473 17.1827 27.6963Z",fill:"white"}),u.jsx("path",{d:"M33.0384 27.3016V27.4887C33.0384 31.063 30.8146 32.393 27.9469 32.393C25.0792 32.393 22.8345 31.063 22.8345 27.4887V21.9815C22.8345 18.4072 25.1412 17.0771 28.134 17.0771C31.646 17.0771 33.0384 19.2591 33.0384 20.9839C33.0384 21.9815 32.5603 22.293 31.5212 22.293C30.6279 22.293 29.8379 22.0644 29.8379 21.1086C29.8379 20.3191 29.0069 19.9034 28.0302 19.9034C26.804 19.9034 26.0764 20.5477 26.0764 21.9815V23.8515C26.7416 23.1244 27.6769 22.9372 28.6745 22.9372C31.0431 22.9372 33.0384 23.9763 33.0384 27.3016ZM26.0764 27.7173C26.0764 29.1511 26.7831 29.7745 27.9469 29.7745C29.1107 29.7745 29.7964 29.1511 29.7964 27.7173V27.5301C29.7964 26.013 29.1107 25.4311 27.926 25.4311C26.804 25.4311 26.0764 25.9715 26.0764 27.343V27.7173Z",fill:"white"}),u.jsx("path",{d:"M35.5527 27.4887V21.9815C35.5527 18.4072 37.7761 17.0771 40.6442 17.0771C43.5119 17.0771 45.7562 18.4072 45.7562 21.9815V27.4887C45.7562 31.063 43.5119 32.393 40.6442 32.393C37.7761 32.393 35.5527 31.063 35.5527 27.4887ZM42.5143 21.9815C42.5143 20.5477 41.808 19.9034 40.6442 19.9034C39.4804 19.9034 38.7947 20.5477 38.7947 21.9815V27.4887C38.7947 28.9225 39.4804 29.5668 40.6442 29.5668C41.808 29.5668 42.5143 28.9225 42.5143 27.4887V21.9815Z",fill:"white"}),u.jsx("path",{d:"M49.6948 17.0625C46.9805 17.0625 44.7729 14.8545 44.7729 12.1406C44.7729 9.42675 46.9805 7.21875 49.6948 7.21875C52.4087 7.21875 54.6167 9.42675 54.6167 12.1406C54.6167 14.8545 52.4087 17.0625 49.6948 17.0625ZM49.6948 10.5C48.7899 10.5 48.0542 11.2361 48.0542 12.1406C48.0542 13.0455 48.7899 13.7812 49.6948 13.7812C50.5993 13.7812 51.3354 13.0455 51.3354 12.1406C51.3354 11.2361 50.5993 10.5 49.6948 10.5Z",fill:"white"})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip0_134_843",children:u.jsx("rect",{width:"56",height:"56",fill:"white"})})})]})}),Ai=({children:i})=>{const{extendMode:m}=st();return u.jsx("div",{className:ye("flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",m&&"large:h-3/5 large:p-2"),children:i})},Cd=({item:i})=>{const{permanentGallery:m}=It(),{aspectRatioStyle:c}=$t(),{type:b}=i;let S;switch(b){case"360":S=i.images[0].src;break;case"image":S=i.src;break;case"video":S=i.poster;break}const L=u.jsx(sr,{className:"size-full object-cover",src:S,onlyThumbnail:!0,fadeIn:!m});let _;switch(b){case"360":_=u.jsx(Ai,{children:u.jsx(Wi,{className:"size-full text-primary"})});break;case"video":_=u.jsx(Ai,{children:u.jsx(gl,{className:"size-full p-0.5 text-background"})});break}return u.jsxs("div",{className:"relative overflow-hidden rounded-gallery bg-foreground/30",style:c,children:[L,_&&u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:_})]})},Ed={primary:"bg-primary/50",neutral:"bg-neutral/50",background:"bg-background/50",foreground:"bg-foreground/50"},$i=({color:i="neutral",orientation:m="horizontal"})=>{const c=Ed[i],b=m==="horizontal"?"h-px w-full":"w-px h-full";return u.jsx("div",{className:ye(c,b)})},Bi=({className:i="",containerClassName:m=""})=>{const{flatten:c,infiniteCarrousel:b,permanentGallery:S,isFullScreen:L}=It(),{categories:_,items:k,aspectRatioStyle:E}=$t(),{extendMode:Z,extendTransition:O,masterItemIndex:P,prevItem:V,nextItem:re,scrollToItemIndex:U,resetView:M}=st(),$=v.useMemo(()=>{if(c)return[];const A=new Array;let ae=0;for(let te=0;te<_.length-1;te++){const oe=_[te].items.length;A.push(ae+oe),ae+=oe}return A},[_,c]),B=v.useRef(null),X=v.useCallback(()=>{if(!B.current)throw new Error("slider.current is null");return B.current},[]),Y=v.useRef(!1),I=v.useRef(null),[H,W]=v.useState(!1),J=v.useCallback((A,ae)=>{const te=X(),oe=te.clientWidth,he=te.scrollWidth/k.length,Q=(A+1/2)*he-oe/2,C=te.scrollWidth-te.clientWidth;te.scrollTo({left:mn(Q,0,C),behavior:ae})},[k.length,X]);v.useEffect(()=>{const A=B.current;if(!A)return;const ae=he=>{he.preventDefault(),Y.current=!0,I.current={x:he.pageX-A.offsetLeft,scrollLeft:A.scrollLeft}},te=he=>{if(!Y.current)return;if(I.current===null)throw new Error("[onMouseMove] scrollStart is null");const Q=he.pageX-A.offsetLeft-I.current.x;if(!H&&Math.abs(Q)<5)return;const C=I.current.scrollLeft-Q;W(!0),requestAnimationFrame(()=>{A.scrollLeft=C})},oe=()=>{Y.current&&(Y.current=!1,requestAnimationFrame(()=>{W(!1)}))};return A.addEventListener("mousedown",ae),document.addEventListener("mousemove",te),document.addEventListener("mouseleave",oe),document.addEventListener("mouseup",oe),document.addEventListener("contextmenu",oe),()=>{A.removeEventListener("mousedown",ae),document.removeEventListener("mousemove",te),document.removeEventListener("mouseleave",oe),document.removeEventListener("mouseup",oe),document.removeEventListener("contextmenu",oe)}},[H]);const le=v.useRef(P);v.useEffect(()=>{B.current&&(J(P,"smooth"),le.current=P)},[P,J]),v.useEffect(()=>{B.current&&J(le.current,"instant")},[J,L,Z,O]);const ie=(A,ae)=>{H||(b&&ae===k.length-1&&P===0?V():b&&ae===0&&P===k.length-1?re():U(ae),M())};return u.jsx("div",{ref:B,className:ye("relative w-full overflow-x-auto no-scrollbar",H?"cursor-grab":"cursor-grabbing",i),children:u.jsx("div",{className:ye("flex h-10 w-fit gap-1 small:h-12 small:gap-2",Z&&"large:h-20 large:gap-4",m),children:k.map((A,ae)=>u.jsxs(v.Fragment,{children:[$.includes(ae)&&u.jsx("div",{className:"my-2",children:u.jsx($i,{color:S&&!L?"neutral":"background",orientation:"vertical"})}),u.jsx("div",{className:ye("relative h-full rounded-gallery ",!H&&"cursor-pointer","after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-opacity",ae===P?"after:opacity-100":"after:opacity-0 hover:after:opacity-70"),style:E,onClick:()=>ie(A,ae),children:u.jsx(Cd,{item:A})})]},ae))})})},Yi=i=>1-Math.pow(1-i,2),Sd=({currentIndex:i,maxIndex:m})=>u.jsxs("div",{className:"space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 small:space-x-1 small:px-2 small:py-1 small:text-sm",children:[u.jsx("span",{children:i+1}),u.jsx("span",{children:"/"}),u.jsx("span",{children:m+1})]}),Zi=(i,m)=>Math.sqrt((i.clientX-m.clientX)**2+(i.clientY-m.clientY)**2),_d=({onlyPreload:i,...m})=>{const{zoom:c,isZooming:b,setZoom:S}=st(),L=v.useRef(null),_=v.useRef(null),k=v.useCallback(X=>{if(!_.current)throw new Error(`[${X??"getTransformElementOrThrow"}] transformElementRef.current is null`);return _.current},[]),E=v.useRef(!1),Z=v.useRef(null),O=v.useRef(new Map),P=v.useRef({x:0,y:0,scale:1}),V=v.useRef(null),re=v.useCallback(X=>{const Y=k("setTransformStyle"),{x:I,y:H,scale:W}={...P.current,...X},J=mn(W,1,Gr),le=Y.clientWidth,ie=Y.clientHeight,A=le*J,ae=ie*J,te=mn(I,-(A-le),0),oe=mn(H,-(ae-ie),0);P.current={x:te,y:oe,scale:J},Y.style.transform=`translate(${te}px, ${oe}px) scale(${J})`},[k]),U=v.useCallback((X,Y)=>{const{x:I,y:H,scale:W}=P.current,{x:J,y:le,scale:ie}={...P.current,...X};V.current&&(cancelAnimationFrame(V.current),V.current=null);const A=()=>{re({x:J,y:le,scale:ie}),S(ie)},ae=Math.abs(J-I)<1&&Math.abs(le-H)<1&&Math.abs(ie-W)<.005;if(!Y||ae){A();return}const te=new Date().getTime(),oe=()=>{const he=()=>{const Q=new Date().getTime()-te;if(Q>=Y){A(),V.current=null;return}const C=Math.min(Q/Y,1),F=Yi(C),w=Jr(I,J,F),R=Jr(H,le,F),z=Jr(W,ie,F);re({x:w,y:R,scale:z}),oe()};V.current=requestAnimationFrame(he)};oe()},[re,S]),M=v.useCallback((X,Y)=>{let{x:I,y:H}=P.current;X.x&&(I+=X.x),X.y&&(H+=X.y),U({x:I,y:H},Y)},[U]),$=v.useCallback((X,Y,I)=>{const H=P.current.scale,W=mn(X,1,Gr),J=W/H,{x:le,y:ie}=P.current,{x:A,y:ae}=Y,te=-le+A,oe=-ie+ae,he=te*J,Q=oe*J,C=he-A,F=Q-ae,w=-C,R=-F;U({x:w,y:R,scale:W},I)},[U]),B=v.useCallback(X=>{const Y=k("shiftZoomFromButton"),I=Y.clientWidth,H=Y.clientHeight;$(X,{x:I/2,y:H/2},200)},[k,$]);return v.useEffect(()=>{_.current&&B(c)},[B,c]),v.useEffect(()=>{if(!b)return;const X=_.current;if(!X)return;const Y=W=>{W.preventDefault(),W.stopPropagation(),E.current=!0,Z.current={x:W.clientX,y:W.clientY}},I=W=>{if(!E.current)return;if(!Z.current)throw new Error("mouseStartXY.current is null");W.stopPropagation();const J=W.clientX-Z.current.x,le=W.clientY-Z.current.y;M({x:J,y:le}),Z.current={x:W.clientX,y:W.clientY}},H=()=>{E.current=!1};return X.addEventListener("mousedown",Y),document.addEventListener("mousemove",I),document.addEventListener("mouseleave",H),document.addEventListener("mouseup",H),document.addEventListener("contextmenu",H),()=>{X.removeEventListener("mousedown",Y),document.removeEventListener("mousemove",I),document.removeEventListener("mouseleave",H),document.removeEventListener("mouseup",H),document.removeEventListener("contextmenu",H)}},[b,M]),v.useEffect(()=>{const X=L.current;if(!X)return;const Y=I=>{const{ctrlKey:H,clientX:W,clientY:J,deltaX:le,deltaY:ie}=I;if(H){if(!b&&ie>=0)return;const{left:A,top:ae}=X.getBoundingClientRect(),te=W-A,oe=J-ae;$(c-.01*ie,{x:te,y:oe})}else{if(!b)return;M({x:-2*le,y:-2*ie})}I.preventDefault()};return X.addEventListener("wheel",Y),()=>{X.removeEventListener("wheel",Y)}},[b,M,$,c]),v.useEffect(()=>{const X=L.current,Y=_.current;if(!X||!Y)return;const I=O.current,H=le=>{for(let ie=0;ie<le.changedTouches.length;ie++){const A=le.changedTouches[ie];I.set(A.identifier,A)}},W=le=>{for(let ie=0;ie<le.changedTouches.length;ie++){const A=le.changedTouches[ie];I.delete(A.identifier)}},J=le=>{const ie=le.touches.length;if(ie===1){if(!b)return;le.preventDefault();const A=le.touches[0],ae=I.get(A.identifier);if(!ae)throw new Error("touchStart is null");const te=A.clientX-ae.clientX,oe=A.clientY-ae.clientY;M({x:te,y:oe}),I.set(A.identifier,A)}else if(ie===2){le.preventDefault();const[A,ae]=le.touches,te=I.get(A.identifier),oe=I.get(ae.identifier);if(!te||!oe)throw new Error("intialTouch1 or intialTouch2 is null");const he=Zi(te,oe),Q=Zi(A,ae)/he,{left:C,top:F}=X.getBoundingClientRect();$(Q*c,{x:(A.clientX+ae.clientX)/2-C,y:(A.clientY+ae.clientY)/2-F}),I.set(A.identifier,A),I.set(ae.identifier,ae)}};return Y.addEventListener("touchstart",H),Y.addEventListener("touchmove",J),Y.addEventListener("touchend",W),Y.addEventListener("touchcancel",W),()=>{Y.removeEventListener("touchstart",H),Y.removeEventListener("touchmove",J),Y.removeEventListener("touchend",W),Y.removeEventListener("touchcancel",W)}},[b,M,$,c]),u.jsx("div",{ref:L,className:`relative size-full overflow-hidden ${b?"z-zoomed-image cursor-move":""}`,children:u.jsx("div",{ref:_,className:"origin-top-left",children:u.jsx(sr,{...m,imgInPlayerWidthRatio:i?1:c})})})},Nd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_IMAGE",children:u.jsx("svg",{className:i,viewBox:"0 0 12 12",fill:"none",children:u.jsx("path",{d:"M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",fill:"currentColor"})})}),jd=({hotspot:i})=>{const{title:m,icon:c,description:b,position:S,detail:L}=i,{getIconConfig:_}=hl(),k=c?_(c):void 0,{extendMode:E,setShownDetails:Z}=st(),O=!!L,P=(L==null?void 0:L.type)==="image",V=!!m||!!b,re=P?u.jsx(Nd,{className:"size-4"}):u.jsx("div",{className:"size-1"}),U=()=>{P&&Z({src:L.src,title:m,text:b})};return u.jsxs("div",{className:ye("group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",O?"cursor-pointer":"cursor-help"),style:{top:`${100*i.position.y}%`,left:`${100*i.position.x}%`},onClick:U,children:[u.jsxs("div",{className:"relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",style:{backgroundColor:k==null?void 0:k.color},children:[u.jsx("div",{className:"pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"}),k!=null&&k.Icon?u.jsx("div",{className:"size-5",children:k.Icon}):u.jsx("div",{className:"p-1",children:re})]}),!P&&V&&u.jsx("div",{className:ye("absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",E&&"large:max-w-56",S.y<.55?"-top-1":"-bottom-1",S.x<.55?"-left-1 pl-6 small:pl-8":"-right-1 pr-4 small:pr-6","pointer-events-none opacity-0 transition-opacity duration-300 group-hover:pointer-events-auto group-hover:opacity-100"),children:u.jsxs("div",{className:"space-y-1",children:[m&&u.jsx("div",{className:"text-sm",children:m}),b&&u.jsx("div",{className:"text-xs",children:b})]})})]})},Ld=({hotspot:i})=>{const{icon:m,detail:c}=i;let b;switch(m){case"WINDOW STICKER":b=u.jsx("img",{className:"h-10",src:"https://cdn.car-cutter.com/libs/web-player/v2/assets/images/customers/autonation/window_sticker.png",alt:"Window sticker"});break;case"CARFAX":b=u.jsx("img",{className:"h-10",src:"https://cdn.car-cutter.com/libs/web-player/v2/assets/images/customers/autonation/carfax.png",alt:"Carfax"});break;default:b=u.jsx(jd,{hotspot:i});break}switch(c==null?void 0:c.type){case"link":case"pdf":return u.jsx("a",{href:c.src,target:"_blank",rel:"noreferrer",children:b});default:return b}},Qi=({hotspots:i,itemIndex:m,className:c,onLoad:b,...S})=>{const{isShowingDetails:L,showHotspots:_,setItemInteraction:k}=st();return u.jsx("div",{className:ye("relative size-full overflow-hidden",c),children:u.jsxs("div",{className:ye("size-full duration-details",L?"scale-105":"scale-100"),children:[u.jsx(_d,{className:"size-full",onLoad:E=>{m!==void 0&&k(m,"ready"),b==null||b(E)},...S}),_&&(i==null?void 0:i.map((E,Z)=>u.jsx(Ld,{hotspot:E},Z)))]})})},ur=10,Td=15,Pd=({images:i,onlyPreload:m})=>{const{reverse360:c}=It(),{isShowingDetails:b,isZooming:S}=st(),L=S||b,_=v.useRef(null),k=v.useRef(null),[E,Z]=v.useState(0),O=i.length,P=v.useCallback(()=>{Z(re=>(re-1+O)%O)},[O]),V=v.useCallback(()=>{Z(re=>(re+1)%O)},[O]);return v.useEffect(()=>{if(L)return;const re=_.current,U=k.current;if(!re||!U)return;let M=null,$=[],B=null;const X=C=>{$.push(C),$.length>20&&$.shift()},Y=()=>{const C=Date.now(),F=(()=>{const p=Date.now(),x=$.filter(fe=>p-fe.timestamp<50);if(x.length<2)return 0;const se=x[0],ue=x[x.length-1];return(ue.value-se.value)/(.001*Math.max(ue.timestamp-se.timestamp,1))})();let w=0,R=C;const z=()=>{B=requestAnimationFrame(()=>{const p=Date.now(),x=(p-C)/1e3,se=Math.pow(.05,x),ue=F*se,fe=(p-R)/1e3;if(w+=ue*fe,Math.abs(ue)<5*ur&&Math.abs(w)<ur){B=null;return}Math.abs(w)>=ur&&(w>0!==c?V():P(),w=0),R=p,z()})};z()},I=()=>{B&&(cancelAnimationFrame(B),B=null)},H=C=>{if(C.button!==0)return;C.preventDefault(),C.stopPropagation(),I();const F=C.clientX;M=F,$=[{timestamp:Date.now(),value:F}]},W=C=>{if(M===null)return;C.stopPropagation();const{clientX:F}=C;X({timestamp:Date.now(),value:F});const w=F-M;Math.abs(w)<ur||(w>0!==c?V():P(),M=F)},J=()=>{M!==null&&(M=null,Y())};re.addEventListener("mousedown",H),document.addEventListener("mousemove",W),document.addEventListener("mouseleave",J),document.addEventListener("mouseup",J),document.addEventListener("contextmenu",J);const le=()=>U.getBoundingClientRect().width,ie=()=>U.scrollWidth/2-le()/2,A=()=>{const C=ie();U.scrollLeft=C};A();const ae=()=>{const C=U.scrollLeft-ie();Math.abs(C)<Td||(C<0!==c?V():P(),A())};U.addEventListener("scroll",ae);let te=null;const oe=C=>{if(te!==null||C.changedTouches.length!==1)return;I();const{identifier:F,clientX:w}=C.changedTouches[0];te=F,M=w,$=[{timestamp:Date.now(),value:w}]},he=C=>{if(!M)return;const F=Array.from(C.changedTouches).find(({identifier:z})=>z===te);if(!F)return;C.preventDefault();const{clientX:w}=F;X({timestamp:Date.now(),value:w});const R=w-M;Math.abs(R)<ur||(R>0!==c?V():P(),M=w)},Q=C=>{!M||!Array.from(C.changedTouches).some(({identifier:F})=>F===te)||(te=null,M=null,Y())};return U.addEventListener("touchstart",oe),U.addEventListener("touchmove",he),U.addEventListener("touchend",Q),U.addEventListener("touchcancel",Q),()=>{re.removeEventListener("mousedown",H),document.removeEventListener("mousemove",W),document.removeEventListener("mouseleave",J),document.removeEventListener("mouseup",J),document.removeEventListener("contextmenu",J),U.removeEventListener("scroll",ae),U.removeEventListener("touchstart",oe),U.removeEventListener("touchmove",he),U.removeEventListener("touchend",Q),U.removeEventListener("touchcancel",Q)}},[V,P,L,c]),u.jsx("div",{ref:_,className:"cursor-ew-resize",children:u.jsxs("div",{ref:k,className:"overflow-x-scroll no-scrollbar",children:[u.jsx("div",{className:"sticky left-0 top-0",children:i.map((re,U)=>u.jsx(Qi,{...re,className:ye(U!==E&&"pointer-events-none !absolute left-0 top-0 -z-10"),onlyPreload:U!==E||m},re.src))}),u.jsx("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},zd=({images:i,onPlaceholderImageLoaded:m,onSpinImagesLoaded:c,onError:b})=>{const S=v.useMemo(()=>i.map(({src:O})=>O),[i]),[L,_]=v.useState(null),k=L?[...L.values()].filter(O=>O).length/i.length*100:null,E=v.useCallback(()=>{k===null&&_(new Map(S.map(O=>[O,!1])))},[S,k]),Z=v.useCallback(O=>{_(P=>{const V=new Map(P);return V.set(O,!0),V})},[]);return v.useEffect(()=>{k===100&&c()},[k,c]),u.jsxs("div",{className:"relative size-full",children:[k!==null&&k!==100&&u.jsx("div",{className:"hidden",children:S.map(O=>u.jsx(sr,{src:O,onLoad:()=>Z(O),onError:b},O))}),u.jsx(sr,{className:"size-full",src:S[0],onLoad:m}),u.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[u.jsx(Wi,{className:"size-20 text-primary"}),u.jsx(ut,{color:"neutral",shape:"icon",onClick:E,children:u.jsx(gl,{className:"size-full"})}),u.jsx("div",{className:ye("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",k===null&&"invisible"),children:u.jsx("div",{className:"h-full bg-primary transition-[width]",style:{width:`${k??0}%`}})})]})]})},Md=i=>{const{itemIndex:m}=i,{setItemInteraction:c}=st(),[b,S]=v.useState();return v.useEffect(()=>{b===null||b==="error"||c(m,b==="spin"?"running":"ready")},[m,c,b]),b==="error"?u.jsx(Hi,{title:"Failed to fetch 360"}):b!=="spin"?u.jsx(zd,{...i,onPlaceholderImageLoaded:()=>S("placeholder"),onSpinImagesLoaded:()=>S("spin"),onError:()=>S("error")}):u.jsx(Pd,{...i})},Id=({className:i="",...m})=>u.jsx(ut,{color:"neutral",shape:"icon",className:i,...m,children:u.jsx(gl,{className:"size-full"})}),Rd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_PAUSE",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 12.6667H6.66667V3.33333H4V12.6667ZM9.33333 3.33333V12.6667H12V3.33333H9.33333Z",fill:"currentColor"})})}),Dd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_VOLUME",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2 6V10H4.66667L8 13.3333V2.66667L4.66667 6H2ZM11 8C11 6.82 10.32 5.80667 9.33333 5.31334V10.68C10.32 10.1933 11 9.18 11 8ZM9.33333 2.15334V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8C12.6667 10.1133 11.26 11.9 9.33333 12.4733V13.8467C12.0067 13.24 14 10.8533 14 8C14 5.14667 12.0067 2.76 9.33333 2.15334Z",fill:"currentColor"})})}),Fd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_VOLUME_OFF",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 8C11 6.82 10.32 5.80667 9.33333 5.31333V6.78667L10.9667 8.42C10.9867 8.28667 11 8.14667 11 8ZM12.6667 8C12.6667 8.62667 12.5333 9.21333 12.3067 9.76L13.3133 10.7667C13.7533 9.94 14 9 14 8C14 5.14667 12.0067 2.76 9.33333 2.15333V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8ZM2.84667 2L2 2.84667L5.15333 6H2V10H4.66667L8 13.3333V8.84667L10.8333 11.68C10.3867 12.0267 9.88667 12.3 9.33333 12.4667V13.84C10.2533 13.6333 11.0867 13.2067 11.7933 12.6333L13.1533 14L14 13.1533L2.84667 2ZM8 2.66667L6.60667 4.06L8 5.45333V2.66667Z",fill:"currentColor"})})}),Xi=({progress:i})=>u.jsx("div",{className:"h-1 w-full overflow-hidden rounded-ui-sm bg-background/25",children:u.jsx("div",{className:"size-full rounded-ui-sm bg-background transition-transform",style:{transform:`translateX(-${100*(1-i)}%)`}})}),Vd=3e3,Od=({src:i,poster:m,itemIndex:c})=>{const{carrouselItemIndex:b,setItemInteraction:S}=st(),L=v.useRef(null),_=v.useRef(null),k=v.useCallback(()=>{if(!_.current)throw new Error("videoRef.current is null");return _.current},[]);v.useEffect(()=>{S(c,"ready")},[c,S]);const E=v.useCallback(()=>{k().play()},[k]),Z=v.useCallback(()=>{k().pause()},[k]);v.useEffect(()=>{b===c||Z()},[b,c,Z]);const[O,P]=v.useState(!1),[V,re]=v.useState(!0),U=()=>{P(!0),S(c,"running")},M=()=>{P(!1),S(c,"ready")},$=()=>{re(!1)},B=()=>{re(!0)},[X,Y]=v.useState(null),I=C=>{const F=k(),w=C.currentTarget.getBoundingClientRect(),R=(C.clientX-w.left)/w.width,z=Math.min(1,Math.max(0,R));F.volume=z,F.muted=!1},H=C=>{const F=k();F.muted=C};v.useEffect(()=>{const C=_.current;if(!C)return;const F=()=>{Y({volume:C.volume,isMuted:C.muted})};return F(),C.addEventListener("volumechange",F),()=>{C.removeEventListener("volumechange",F)}},[]);const[W,J]=v.useState(null),le=W?W.currentTime/W.duration:0;v.useEffect(()=>{const C=_.current;if(!C)return;const F=()=>{const w=C.currentTime,R=C.duration;isNaN(w)||isNaN(R)||J({currentTime:w,duration:R})};return F(),C.addEventListener("timeupdate",F),()=>{C.removeEventListener("timeupdate",F)}},[]);const ie=C=>{const F=k(),w=C.currentTarget.getBoundingClientRect(),R=(C.clientX-w.left)/w.width,z=F.duration*R;F.currentTime=z},A=C=>{const F=Math.floor(C%3600/60),w=Math.floor(C%60);return`${F}:${w.toString().padStart(2,"0")}`},[ae,te]=v.useState(!1),oe=v.useRef(void 0),he=v.useCallback(()=>clearTimeout(oe.current),[]),Q=v.useCallback(()=>{he(),oe.current=setTimeout(()=>{te(!1)},Vd)},[he]);return v.useEffect(()=>{const C=L.current,F=_.current;if(!C||!F)return;const w=()=>{Q(),te(!0)},R=()=>{he(),te(!1)};let z=!1;const p=()=>{z=!0},x=()=>{z&&(z=!1,Z())},se=()=>{z=!1,w()},ue=fe=>{fe.preventDefault(),fe.touches.length===1&&(Q(),te(me=>!me))};return C.addEventListener("mousedown",p),C.addEventListener("mouseup",x),C.addEventListener("mouseenter",w),C.addEventListener("mousemove",se),C.addEventListener("mouseleave",R),F.addEventListener("touchstart",ue),()=>{C.removeEventListener("mousedown",p),C.removeEventListener("mouseup",x),C.removeEventListener("mouseenter",w),C.removeEventListener("mousemove",w),C.removeEventListener("mouseleave",R),F.removeEventListener("touchstart",ue)}},[he,Z,Q]),u.jsxs("div",{ref:L,className:"relative size-full",children:[u.jsx("video",{ref:_,className:"size-full",src:i,poster:m,disablePictureInPicture:!0,playsInline:!0,onPlay:U,onPause:M,onEnded:M,onCanPlay:$,onWaiting:B}),O?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:ye("absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",ae?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onMouseDownCapture:C=>C.stopPropagation(),children:[u.jsxs("div",{className:"flex items-center justify-between text-background",children:[u.jsxs("div",{className:"flex items-center gap-x-4",children:[u.jsx(ut,{shape:"icon",variant:"ghost",color:"neutral",onClick:Z,children:u.jsx(Rd,{className:"size-full"})}),W&&u.jsxs("span",{className:"text-sm",children:[A(W.currentTime)," /"," ",A(W.duration)]})]}),X&&u.jsxs("div",{className:"group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",children:[u.jsx("div",{className:`w-12 cursor-pointer py-1 opacity-0 transition-opacity ${X.isMuted?"group-hover/volume:opacity-50":"group-hover/volume:opacity-100"}`,onClick:I,children:u.jsx(Xi,{progress:X.volume})}),u.jsx("div",{className:"size-5 cursor-pointer",onClick:()=>H(!X.isMuted),children:X.isMuted?u.jsx(Fd,{className:"size-full"}):u.jsx(Dd,{className:"size-full"})})]})]}),u.jsx("div",{className:"cursor-pointer py-1",onClick:ie,children:u.jsx(Xi,{progress:le})})]}),V&&u.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",children:u.jsx(Ui,{size:"lg"})})]}):u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:u.jsx(Id,{onClick:E})})]})},Hd=({index:i,item:m,isShown:c,lazy:b})=>{const{type:S}=m;let L;if(b)L=null;else switch(S){case"image":L=u.jsx(Qi,{itemIndex:i,onlyPreload:!c,...m});break;case"video":L=u.jsx(Od,{itemIndex:i,...m});break;case"360":L=u.jsx(Md,{itemIndex:i,onlyPreload:!c,...m});break}return L},Ud=i=>{v.useEffect(()=>{const m=c=>{c.key==="Escape"&&i()};return addEventListener("keydown",m),()=>{removeEventListener("keydown",m)}},[i])};function Wd(i){return i.target===i.currentTarget}const qi=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_ARROW_RIGHT",children:u.jsx("svg",{className:i,viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",fill:"currentColor"})})}),Ad=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_EXTEND",children:u.jsx("svg",{className:i,viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",fill:"currentColor"})})}),$d=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_GALLERY",children:u.jsx("svg",{className:i,viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",fill:"currentColor"})})}),Bd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_HOTSPOTS",children:u.jsxs("svg",{className:i,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("g",{clipPath:"url(#clip0_418_982)",children:u.jsx("path",{d:"M6 4C4.895 4 4 4.895 4 6C4 7.105 4.895 8 6 8C7.105 8 8 7.105 8 6C8 4.895 7.105 4 6 4ZM10.47 5.5C10.24 3.415 8.585 1.76 6.5 1.53V0.5H5.5V1.53C3.415 1.76 1.76 3.415 1.53 5.5H0.5V6.5H1.53C1.76 8.585 3.415 10.24 5.5 10.47V11.5H6.5V10.47C8.585 10.24 10.24 8.585 10.47 6.5H11.5V5.5H10.47ZM6 9.5C4.065 9.5 2.5 7.935 2.5 6C2.5 4.065 4.065 2.5 6 2.5C7.935 2.5 9.5 4.065 9.5 6C9.5 7.935 7.935 9.5 6 9.5Z",fill:"currentColor"})}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip0_418_982",children:u.jsx("rect",{width:"12",height:"12",fill:"white"})})})]})}),Yd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_MINUS",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M12.6666 8.66634H3.33325V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Zd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_PLUS",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M12.6666 8.66634H8.66659V12.6663H7.33325V8.66634H3.33325V7.33301H7.33325V3.33301H8.66659V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Qd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_REDUCE",children:u.jsx("svg",{className:i,viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",fill:"currentColor"})})}),Xd=({enabled:i,onToggle:m,label:c,className:b,children:S})=>u.jsxs("label",{className:ye("flex cursor-pointer items-center justify-center gap-x-2",b),children:[u.jsx("input",{type:"checkbox",className:"sr-only",checked:i,onChange:m}),c&&u.jsx("div",{className:"text-xs text-background",children:c}),u.jsx("div",{className:ye("flex h-5 w-8 items-center justify-center rounded-full transition-colors",i?"bg-primary":"bg-background/60"),children:u.jsx("div",{className:ye("flex size-4 items-center justify-center rounded-full p-0.5 transition",i?"translate-x-1.5 bg-primary-foreground text-primary":"-translate-x-1.5 bg-background text-foreground"),children:S})})]}),qd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_BURGER",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2 12H14V10.6667H2V12ZM2 8.66667H14V7.33333H2V8.66667ZM2 4V5.33333H14V4H2Z",fill:"currentColor"})})}),Kd=({sharedClassName:i})=>{const{categories:m}=$t(),{displayedCategoryId:c,changeCategory:b}=st(),[S,L]=v.useState(!1),_=()=>{L(!S)},k=()=>{L(!1)};return u.jsxs(u.Fragment,{children:[S&&u.jsx("div",{className:ye(i,"inset-0 small:hidden"),onClick:k}),u.jsxs("div",{className:ye(i,zn("top-left"),"flex gap-x-2 small:hidden"),children:[u.jsx(ut,{shape:"icon",color:S?"primary":"neutral",onClick:_,children:u.jsx(qd,{})}),S&&u.jsx("div",{className:"rounded-ui-md bg-background",children:u.jsx("ul",{className:"space-y-0.5 p-1",children:m.map(({id:E,title:Z})=>u.jsx("li",{className:ye("cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-colors hover:bg-primary/30",E===c&&"bg-primary/50"),onClick:()=>{b(E),L(!1)},children:Z},E))})})]}),u.jsx("div",{className:ye(i,Di("top"),"w-full overflow-x-auto max-small:hidden"),children:u.jsx("div",{className:"mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow",children:m.map(({id:E,title:Z})=>u.jsx(ut,{variant:E===c?"fill":"ghost",onClick:()=>b(E),children:Z},E))})})]})},Gd=()=>{const{flatten:i,infiniteCarrousel:m,permanentGallery:c}=It(),{items:{length:b},aspectRatioStyle:S}=$t(),{slidable:L,masterItemIndex:_,prevItem:k,nextItem:E,showGalleryControls:Z,enableHotspotsControl:O,showHotspots:P,toggleHotspots:V,showGallery:re,toggleGallery:U,extendMode:M,toggleExtendMode:$,shownDetails:B,isShowingDetails:X,resetShownDetails:Y,showZoomControls:I,isZooming:H,canZoomIn:W,zoomIn:J,canZoomOut:le,zoomOut:ie,resetView:A}=st(),ae=v.useCallback(he=>{Wd(he)&&Y()},[Y]);Ud(Y);const te="absolute z-overlay",oe=`transition-opacity ${Z?"opacity-100":"opacity-0 !pointer-events-none"}`;return u.jsxs(u.Fragment,{children:[!i&&!H&&u.jsx(Kd,{sharedClassName:te}),L&&!H&&u.jsxs(u.Fragment,{children:[u.jsx(ut,{shape:"icon",color:"neutral",className:ye(te,zn("middle-left")),onClick:k,disabled:!m&&_<=0,children:u.jsx(Oe,{customizationKey:"CONTROLS_ARROW_LEFT",children:u.jsx(qi,{className:"size-full rotate-180"})})}),u.jsx(ut,{shape:"icon",color:"neutral",className:ye(te,zn("middle-right")),onClick:E,disabled:!m&&_>=b-1,children:u.jsx(Oe,{customizationKey:"CONTROLS_ARROW_RIGHT",children:u.jsx(qi,{className:"size-full"})})})]}),u.jsxs("div",{className:ye(te,zn("bottom-fullW"),"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"),children:[!c&&b>1&&!H&&u.jsxs(u.Fragment,{children:[u.jsx(ut,{className:oe,variant:"fill",color:re?"primary":"neutral",shape:"icon",onClick:U,children:u.jsx(Oe,{customizationKey:"CONTROLS_GALLERY",children:u.jsx($d,{className:"size-full"})})}),re&&u.jsx(Bi,{className:ye(oe,"[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"),containerClassName:"mx-1"})]}),u.jsxs("div",{className:"col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2",children:[O&&!H&&u.jsx(Xd,{enabled:P,onToggle:V,children:u.jsx(Bd,{className:"size-full"})}),I&&u.jsxs("div",{className:"max-small:hidden",children:[u.jsx(ut,{className:"rounded-b-none",color:"neutral",shape:"icon",disabled:!W,onClick:J,children:u.jsx(Zd,{className:"size-full"})}),u.jsx($i,{color:"background"}),u.jsx(ut,{className:"rounded-t-none",color:"neutral",shape:"icon",disabled:!le,onClick:ie,children:u.jsx(Yd,{className:"size-full"})})]}),u.jsx(ut,{variant:"fill",color:M?"primary":"neutral",shape:"icon",onClick:$,children:M?u.jsx(Qd,{className:"size-full"}):u.jsx(Ad,{className:"size-full"})})]})]}),u.jsx("div",{className:ye(te,"inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",X?"opacity-100":"pointer-events-none opacity-0"),onClick:ae,children:u.jsx("div",{className:ye("h-full w-3/5 bg-background transition-transform duration-details",X?"translate-x-0":"translate-x-full"),children:!!B&&u.jsxs(u.Fragment,{children:[u.jsx(sr,{className:"w-full bg-foreground/65",style:S,src:B.src,imgInPlayerWidthRatio:.6}),u.jsxs("div",{className:ye("space-y-1 p-1.5 small:p-2",M&&"large:p-3"),children:[B.title&&u.jsx("span",{className:ye("text-sm small:text-base",M&&"large:text-lg"),children:B.title}),B.text&&u.jsx("p",{className:ye("text-xs small:text-sm",M&&"large:text-base"),children:B.text})]})]})})}),(H||X)&&u.jsx(Oi,{className:ye(te,zn("top-right")),onClick:A})]})},Jd=({className:i=""})=>{const{infiniteCarrousel:m,isFullScreen:c}=It(),{items:b,aspectRatioStyle:S}=$t(),{slidable:L,carrouselItemIndex:_,setCarrouselItemIndex:k,itemIndexCommand:E,setItemIndexCommand:Z,specialCommand:O,isRunningSpecialCommand:P,finishSpecialCommand:V,extendMode:re,extendTransition:U,isZooming:M}=st(),$=v.useRef(null),B=v.useCallback(Q=>{if(!$.current)throw new Error(`[${Q??"sliderOrThrow"}] slider.current is null`);return $.current},[]),X=v.useRef(!1),Y=v.useRef(null),I=v.useRef(null),H=v.useRef(null),W=v.useCallback(()=>{H.current&&cancelAnimationFrame(H.current)},[]),J=v.useCallback(()=>{const Q=B("computeClosestSnapIndex"),C=Array.from(Q.children),F=Q.scrollLeft,w=C.reduce((R,z,p)=>{const x=z.offsetLeft;return Math.abs(x-F)<Math.abs(C[R].offsetLeft-F)?p:R},0);return O==="first_to_last"?Pi(w,b.length):O==="last_to_first"?Pi(w-1,b.length):w},[O,B,b.length]),le=v.useCallback(Q=>{const C=B("setStyleCursor");C.style.cursor=Q},[B]),ie=v.useCallback(Q=>{const C=B("setStyleSnapState");Q==="mandatory"?C.style.scrollSnapType="x mandatory":C.style.scrollSnapType="none"},[B]),A=v.useCallback((Q,C,F)=>{W();const w=B("scrollToIndex"),R=Array.from(w.children),z=w.scrollLeft,p=R[Q].offsetLeft,x=be=>{w.scrollTo({left:be,behavior:"instant"})},se=()=>{x(p),ie("mandatory"),F==null||F()},ue=Math.abs(z-p);if(ue<1||C==="instant"){se();return}const fe=mn(ue/2.5,300,1e3),me=new Date().getTime();ie("none");const ke=()=>{const be=()=>{const Ce=new Date().getTime()-me;if(Ce>=fe){se();return}const Ie=Math.min(Ce/fe,1),Nt=Yi(Ie),Mn=Jr(z,p,Nt);x(Mn),ke()};H.current=requestAnimationFrame(be)};ke()},[W,B,ie]),[ae,te]=v.useState(),oe=!!ae;v.useEffect(()=>{const Q=()=>{clearTimeout(ae);const C=setTimeout(()=>{te(void 0)},Ti);te(C)};return addEventListener("resize",Q),document.addEventListener("fullscreenchange",Q),()=>{removeEventListener("resize",Q),document.removeEventListener("fullscreenchange",Q)}},[ae]),v.useEffect(()=>{const Q=J();Number.isNaN(Q)||Q!==_&&A(_,"instant")},[_,A,J,b,ae,c,re,U]),v.useEffect(()=>{if(!L||P){le("auto");return}const Q=$.current;if(!Q)return;le("grab"),ie("mandatory");const C=R=>{R.button===0&&(R.preventDefault(),R.stopPropagation(),X.current=!0,Y.current=R.pageX-Q.offsetLeft,I.current=Q.scrollLeft,W(),le("grabbing"),ie("none"))},F=R=>{if(!X.current)return;if(Y.current===null)throw new Error("[onMouseMove] startX is null");const z=R.pageX-Q.offsetLeft-Y.current;requestAnimationFrame(()=>{if(I.current===null)throw new Error("[onMouseMove] scrollLeft is null");Q.scrollLeft=I.current-z})},w=()=>{if(!X.current)return;X.current=!1,le("grab");const R=J();A(R,"smooth")};return Q.addEventListener("mousedown",C),document.addEventListener("mousemove",F),document.addEventListener("mouseleave",w),document.addEventListener("mouseup",w),document.addEventListener("contextmenu",w),()=>{Q.removeEventListener("mousedown",C),document.removeEventListener("mousemove",F),document.removeEventListener("mouseleave",w),document.removeEventListener("mouseup",w),document.removeEventListener("contextmenu",w)}},[W,J,P,A,le,ie,L]),v.useEffect(()=>{if(U||oe)return;const Q=$.current;if(!Q)return;const C=()=>{const F=J();Number.isNaN(F)||(k(F),F===E&&Z(null))};return Q.addEventListener("scroll",C),()=>{Q.removeEventListener("scroll",C)}},[J,U,P,oe,E,b.length,k,Z]),v.useEffect(()=>{if(E===null)return;const Q=()=>V();switch(O){case"first_to_last":A(b.length,"instant"),A(b.length-1,"smooth",Q);break;case"last_to_first":A(0,"instant"),A(1,"smooth",Q);break;case"instant":A(E,"instant",Q);break;default:A(E,"smooth");break}},[O,V,E,b.length,A]);const he=()=>u.jsx("div",{className:"h-full",style:S});return u.jsxs("div",{className:ye("relative overflow-hidden rounded-carrousel",i),style:S,children:[u.jsxs("div",{ref:$,className:`flex size-full ${L?"overflow-x-auto no-scrollbar *:snap-start *:snap-always":"justify-center"}`,children:[O==="last_to_first"&&u.jsx(he,{}),b.map((Q,C)=>{const F=Q.type==="360"?Q.images[0]:Q.src,w=C===_,R=C===0,z=_===b.length-1,p=C===b.length-1,x=_===0,se=Math.abs(C-_)>1&&!(m&&R&&z)&&!(m&&p&&x),ue=(()=>{if(O==="first_to_last"&&R)return{transform:`translateX(${100*b.length}%)`};if(O==="last_to_first"&&p)return{transform:`translateX(-${100*b.length}%)`}})();return u.jsx("div",{className:"relative h-full bg-foreground/50",style:{...S,...ue},children:u.jsx(Hd,{index:C,item:Q,isShown:w,lazy:se})},`${C}_${F}`)}),O==="first_to_last"&&u.jsx(he,{})]}),L&&!M&&u.jsx("div",{className:`absolute ${zn("top-right")}`,children:u.jsx(Sd,{currentIndex:_,maxIndex:b.length-1})}),u.jsx(Gd,{})]})},ef=()=>{const{permanentGallery:i}=It(),{aspectRatioStyle:m}=$t(),{prevItem:c,nextItem:b,isShowingDetails:S,resetShownDetails:L,extendMode:_,disableExtendMode:k,isZooming:E,resetZoom:Z,fakeFullScreen:O}=st(),P=v.useRef(null),V=v.useRef(null),re=v.useRef(null);return v.useEffect(()=>{if(!_)return;const U=P.current,M=V.current,$=re.current;if(!U||!M||!$)return;let B=!1;const X=H=>[U,M,$].includes(H.target),Y=H=>{B=X(H)},I=H=>{B&&(X(H)&&k(),B=!1)};return U.addEventListener("mousedown",Y),U.addEventListener("mouseup",I),()=>{U.removeEventListener("mousedown",Y),U.removeEventListener("mouseup",I)}},[k,_]),v.useEffect(()=>{const U=M=>{M.key==="Escape"&&(E?Z():S?L():k())};return addEventListener("keydown",U),()=>{removeEventListener("keydown",U)}},[k,S,E,b,c,L,Z]),u.jsxs("div",{ref:P,className:ye("relative",_&&"flex size-full items-center justify-center bg-foreground/75",O&&"fixed inset-0 z-overlay"),children:[u.jsxs("div",{ref:V,className:_?"flex size-full flex-col justify-center gap-y-2 small:gap-y-4":"space-y-2",children:[u.jsx("div",{ref:re,className:ye(_&&"mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"),style:m,children:u.jsx(Jd,{className:ye(_&&"h-full min-w-0")})}),i&&u.jsx(Bi,{className:ye(_&&"my-2 shrink-0 small:my-4")})]}),_&&u.jsx(Oi,{className:"absolute right-2 top-2 small:right-4 small:top-4",onClick:k})]})},tf=({compositionUrl:i})=>{const{emitEvent:m}=It(),{data:c,status:b,isSuccess:S,error:L}=od(i);return v.useEffect(()=>{L?m(si,L):S?m(ii):b==="fetching"&&m(oi)},[m,L,S,b]),L?u.jsx(Hi,{title:"Failed to fetch composition",error:L}):S?u.jsx(id,{composition:c,children:u.jsx(ud,{children:u.jsx(ef,{})})}):u.jsxs("div",{className:"flex aspect-video size-full flex-col items-center justify-center gap-y-4",children:[u.jsx("div",{className:"text-xl",children:"Loading WebPlayer..."}),u.jsx(Ui,{color:"primary"})]})},nf=({compositionUrl:i,flatten:m=!1,infiniteCarrousel:c=!1,permanentGallery:b=!1,imageLoadStrategy:S=qc,preventFullScreen:L=!1,eventPrefix:_=hi,reverse360:k=!1,children:E,...Z})=>{const O=v.useRef(null),[P,V]=v.useState(),[re,U]=v.useState(.5),[M,$]=v.useState(!1),B=v.useCallback((I,H)=>{const W=_+I,J=new CustomEvent(W,{detail:H});document.dispatchEvent(J)},[_]);v.useEffect(()=>{if(M){U(1);return}if(!O.current)return;const I=O.current,H=()=>{const W=window.innerWidth,J=getComputedStyle(I),le=I.getBoundingClientRect().width+parseFloat(J.marginLeft)+parseFloat(J.marginRight);V(le),U(le/W)};return H(),addEventListener("resize",H),()=>{removeEventListener("resize",H)}},[M]),v.useEffect(()=>{if(L)return;const I=O.current;if(!I)throw new Error("Wrapper not found");const H=()=>{const{fullscreenElement:W}=document;$(W===I||(W==null?void 0:W.localName)===Xr)};return document.addEventListener("fullscreenchange",H),()=>{document.removeEventListener("fullscreenchange",H)}},[L]);const X=v.useCallback(async()=>{const I=O.current;if(!I)throw new Error("Wrapper not found");try{return await I.requestFullscreen(),!0}catch{return!1}},[]),Y=v.useCallback(async()=>{try{return await document.exitFullscreen(),!0}catch{return!1}},[]);return u.jsx(sd,{...Z,reverse360:k,imageLoadStrategy:S,flatten:m,infiniteCarrousel:c,preventFullScreen:L,permanentGallery:b,emitEvent:B,playerInViewportWidthRatio:re,isFullScreen:M,requestFullscreen:X,exitFullscreen:Y,children:u.jsxs(vd,{children:[u.jsx("div",{id:"cc-webplayer-wrapper",ref:O,className:"select-none text-foreground",style:{marginInline:"auto",maxWidth:P&&Math.floor(P)},children:u.jsx(tf,{compositionUrl:i})}),E]})})},rf=({name:i,color:m,children:c})=>{const{setIconConfig:b,resetIconConfig:S}=hl();return v.useEffect(()=>{if(!(!c&&!m))return b(i,{Icon:c,color:m}),()=>{S(i)}},[c,m,i,S,b]),null},af=i=>Vi()?u.jsx(rf,{...i}):u.jsx("slot",{}),lf='*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}#cc-webplayer-wrapper{--background: var(--cc-webplayer-background, 0 0% 100%);--foreground: var(--cc-webplayer-foreground, 240 10% 3.9%);--primary: var(--cc-webplayer-primary, 216 100% 52%);--primary-foreground: var( --cc-webplayer-primary-foreground, var(--background) );--neutral: var(--cc-webplayer-neutral, 0 0% 39%);--neutral-foreground: var( --cc-webplayer-neutral-foreground, var(--foreground) );--radius-ui: var(--cc-webplayer-radius-ui, 1rem);--radius-carrousel: var(--cc-webplayer-radius-carrousel, 0);--radius-gallery: var(--cc-webplayer-radius-gallery, 0)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-2{padding:.5rem}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:pr-6{padding-right:1.5rem}.small\\:text-base{font-size:1rem;line-height:1.5rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:14rem}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}.large\\:p-3{padding:.75rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';var Ki={exports:{}},cr={};/**
40
+ */var ji;function ad(){if(ji)return ir;ji=1;var i=Kr,m=Symbol.for("react.element"),c=Symbol.for("react.fragment"),b=Object.prototype.hasOwnProperty,S=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,L={key:!0,ref:!0,__self:!0,__source:!0};function _(k,E,Z){var O,P={},V=null,re=null;Z!==void 0&&(V=""+Z),E.key!==void 0&&(V=""+E.key),E.ref!==void 0&&(re=E.ref);for(O in E)b.call(E,O)&&!L.hasOwnProperty(O)&&(P[O]=E[O]);if(k&&k.defaultProps)for(O in E=k.defaultProps,E)P[O]===void 0&&(P[O]=E[O]);return{$$typeof:m,type:k,key:V,ref:re,props:P,_owner:S.current}}return ir.Fragment=c,ir.jsx=_,ir.jsxs=_,ir}Ni.exports=ad();var u=Ni.exports;async function ld(i){const m=await fetch(i);if(!m.ok)throw new Error(`Failed to fetch composition: ${m.statusText}`);return await m.json()}const pl=new Map,od=i=>{const[m,c]=v.useState({status:"pending",isSuccess:!1});return v.useEffect(()=>{const b=L=>c({status:"success",data:L,isSuccess:!0}),S=pl.get(i);if(S&&!(S instanceof Promise)){b(S);return}c({status:"fetching",isSuccess:!1}),async function(){try{let L;if(S)L=await S;else{const _=ld(i);pl.set(i,_),L=await _,pl.set(i,L)}b(L)}catch(L){c({status:"error",isSuccess:!1,error:L})}}()},[i]),m},Li=v.createContext(null),$t=()=>{const i=v.useContext(Li);if(!i)throw new Error("useCompositionContext must be used within a CompositionContextProvider");return i},id=({composition:i,children:m})=>{const{aspectRatio:c,categories:b}=i,S=v.useMemo(()=>b.flatMap(({items:_})=>_),[b]),L={aspectRatio:c.replace(":"," / ")};return u.jsx(Li.Provider,{value:{...i,items:S,aspectRatioStyle:L},children:m})},Ti=500,ml=.75,Gr=1+ml*2;function mn(i,m,c){return Math.min(Math.max(i,m),c)}const Jr=(i,m,c)=>i+(m-i)*c,Pi=(i,m)=>(i%m+m)%m,zi=v.createContext(null),It=()=>{const i=v.useContext(zi);if(!i)throw new Error("useGlobalContext must be used within a GlobalContextProvider");return i},sd=({children:i,...m})=>u.jsx(zi.Provider,{value:m,children:i}),Mi=v.createContext(null),st=()=>{const i=v.useContext(Mi);if(!i)throw new Error("useControlsContext must be used within a ControlsContextProvider");return i},ud=({children:i})=>{const{infiniteCarrousel:m,preventFullScreen:c,emitEvent:b,isFullScreen:S,requestFullscreen:L,exitFullscreen:_}=It(),{categories:k,items:E}=$t(),[Z,O]=v.useState(E.map(()=>null)),P=v.useCallback((ve,ct)=>{O(vt=>vt.map((Zt,yt)=>yt===ve?ct:Zt))},[]),[V,re]=v.useState(0),[U,M]=v.useState(null),$=U??V,B=E[$],X=Z[$],[Y,I]=v.useState(null),H=!!Y,W=v.useCallback(()=>I(null),[]),J=v.useCallback(()=>{if(H||U!==null)return;const ve=V-1;ve>=0?M(ve):m&&(I("first_to_last"),M(E.length-1))},[H,U,V,m,E.length]),le=v.useCallback(()=>{if(H||U!==null)return;const ve=V+1;ve<E.length?M(ve):m&&(I("last_to_first"),M(0))},[H,U,V,E.length,m]),ie=v.useCallback(ve=>{const ct=Math.min(V,ve),vt=Math.max(V,ve);Z.slice(ct,vt+1).filter(Zt=>Zt===null).length>2&&I("instant"),M(ve)},[V,Z]),A=v.useMemo(()=>{for(const ve of k)if(ve.items.includes(B))return ve.id;throw new Error("Current item not found in any category")},[k,B]),ae=v.useCallback(ve=>{var ct;const vt=(ct=k.find(({id:yt})=>yt===ve))==null?void 0:ct.items[0];if(vt===void 0)throw new Error("Failed to find target category");const Zt=E.findIndex(yt=>yt===vt);ie(Zt)},[k,E,ie]),te=v.useMemo(()=>{var ve;switch(B.type){case"image":return!!((ve=B.hotspots)!=null&&ve.length);case"360":return X==="running";case"video":return!1}},[B,X]),[oe,he]=v.useState(!0),Q=v.useCallback(()=>{const ve=!oe;he(ve),b(ve?di:fi)},[b,oe]),C=v.useMemo(()=>{switch(B.type){case"image":case"360":return!0;case"video":return X!=="running"}},[B,X]),[F,w]=v.useState(!1),R=v.useCallback(()=>{const ve=!F;w(ve),b(ve?pi:mi)},[b,F]),[z,p]=v.useState(null),x=v.useCallback(()=>p(null),[]),se=!!z,ue=v.useMemo(()=>{switch(B.type){case"image":return!0;case"360":return X==="running";case"video":return!1}},[B.type,X]),[fe,me]=v.useState(1),ke=fe!==1,be=fe<Gr,Ce=fe>1,Ie=v.useCallback(ve=>{me(ct=>mn(ct+ve,1,Gr))},[]),Nt=v.useCallback(()=>me(1),[]),Mn=v.useCallback(()=>Ie(ml),[Ie]),In=v.useCallback(()=>Ie(-ml),[Ie]),gn=v.useCallback(()=>{Nt(),x()},[Nt,x]),[Rt,aa]=v.useState(!1),[vn,dr]=v.useState(),[yn,Yt]=v.useState(!1),rt=v.useCallback(async ve=>{gn(),aa(ve),b(ve?ui:ci)},[b,gn]),jt=v.useCallback(()=>{clearTimeout(vn);const ve=setTimeout(()=>{dr(void 0)},Ti);dr(ve)},[vn]),Rn=v.useCallback(async()=>{if(jt(),!c){const ve=await L();if(Yt(!ve),ve)return}rt(!0)},[c,rt,L,jt]),Dn=v.useCallback(async()=>{jt(),!(!c&&(Yt(!1),await _()))&&rt(!1)},[c,rt,_,jt]),la=v.useCallback(()=>{Rt?Dn():Rn()},[Dn,Rn,Rt]);return v.useEffect(()=>{c||yn&&Rt||S!==Rt&&(jt(),rt(S))},[c,rt,Rt,yn,S,jt]),u.jsx(Mi.Provider,{value:{setItemInteraction:P,slidable:E.length>1,carrouselItemIndex:V,setCarrouselItemIndex:re,itemIndexCommand:U,setItemIndexCommand:M,masterItemIndex:$,specialCommand:Y,isRunningSpecialCommand:H,finishSpecialCommand:W,prevItem:J,nextItem:le,scrollToItemIndex:ie,displayedCategoryId:A,changeCategory:ae,enableHotspotsControl:te,showHotspots:oe,toggleHotspots:Q,showGalleryControls:C,showGallery:F,toggleGallery:R,shownDetails:z,isShowingDetails:se,setShownDetails:p,resetShownDetails:x,showZoomControls:ue,zoom:fe,isZooming:ke,setZoom:me,resetZoom:Nt,canZoomIn:be,zoomIn:Mn,canZoomOut:Ce,zoomOut:In,resetView:gn,extendMode:Rt,enableExtendMode:Rn,disableExtendMode:Dn,toggleExtendMode:la,extendTransition:!!vn,fakeFullScreen:yn},children:i})},Ii=["left","center","right","fullW"],Ri=["top","middle","bottom","fullH"],cd=[...Ii,...Ri,"top-left","top-center","top-right","top-fullW","middle-left","middle-center","middle-right","middle-fullW","bottom-left","bottom-center","bottom-right","bottom-fullW","fullH-left","fullH-center","fullH-right","fullW-fullW"];function dd(i){return Ii.includes(i)}function fd(i){return Ri.includes(i)}function pd(i){return cd.includes(i)}function md(i){if(!pd(i))throw new Error(`Invalid position: ${i}`);return fd(i)?[i,void 0]:dd(i)?[void 0,i]:i.split("-")}function ye(...i){return i.filter(m=>!!m).map(m=>m.trim()).join(" ")}function hd(i){switch(i){case"left":return"left-1 small:left-2";case"right":return"right-1 small:right-2";case"center":return"left-1/2 -translate-x-1/2";case"fullW":return"inset-x-1 small:inset-x-2"}}function Di(i){switch(i){case"top":return"top-1 small:top-2";case"bottom":return"bottom-1 small:bottom-2";case"middle":return"top-1/2 -translate-y-1/2";case"fullH":return"inset-y-1 small:inset-y-2"}}function gd({positionX:i,positionY:m}){const c=new Array;return i&&c.push(hd(i)),m&&c.push(Di(m)),c.join(" ")}function zn(i){const[m,c]=md(i);return gd({positionX:c,positionY:m})}const Fi=v.createContext(null),Vi=()=>v.useContext(Fi),hl=()=>{const i=Vi();if(!i)throw new Error("useCustomizationContext must be used within a CustomizationContextProvider");return i},vd=({children:i})=>{const[m,c]=v.useState(new Map),b=v.useCallback(_=>{const k=m.get(_);if(k)return k;const E=document.querySelector(`${qr}[name="${_}"]`);if(!E)return;const Z=E.getAttribute("color")??void 0,O=E.innerHTML,P=O?u.jsx("div",{className:"size-full",dangerouslySetInnerHTML:{__html:O}}):void 0;if(!(!Z&&!P))return{Icon:P,color:Z}},[m]),S=v.useCallback((_,k)=>{c(E=>new Map(E.set(_,k)))},[]),L=v.useCallback(_=>{c(k=>(k.delete(_),new Map(k)))},[]);return u.jsx(Fi.Provider,{value:{getIconConfig:b,setIconConfig:S,resetIconConfig:L},children:i})},Oe=({customizationKey:i,className:m="",children:c})=>{const{getIconConfig:b}=hl(),S=b(i);return S?u.jsx("div",{className:m,style:{color:S==null?void 0:S.color},children:(S==null?void 0:S.Icon)??c}):c},yd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_CLOSE",children:u.jsx("svg",{className:i,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})})}),bd={fill:{primary:"bg-primary text-primary-foreground hover:opacity-80",neutral:"bg-background text-neutral-foreground hover:opacity-80"},ghost:{primary:"bg-transparent text-foreground hover:bg-primary/25",neutral:"bg-transparent text-background hover:bg-foreground/25"}},wd={button:"h-8 px-2",icon:"size-8 p-2"},ut=({variant:i="fill",shape:m="button",color:c="primary",className:b="",children:S,...L})=>{const _=bd[i][c],k=wd[m];return u.jsx("button",{className:`${_} ${k} flex items-center justify-center rounded-ui text-sm transition disabled:opacity-60 ${b}`,...L,children:S})},Oi=({className:i="",...m})=>u.jsx(ut,{color:"neutral",shape:"icon",className:i,...m,children:u.jsx(yd,{className:"size-full"})}),Hi=({title:i,error:m,children:c})=>(v.useEffect(()=>{console.error(i,m)},[m,i]),u.jsxs("div",{className:"space-y-2",children:[u.jsx("div",{className:"text-xl",children:i}),c]})),xd={primary:"border-primary",neutral:"border-background"},kd={sm:"size-4 border",md:"size-8 border-2",lg:"size-12 border-4"},Ui=({color:i="neutral",size:m="md"})=>{const c=xd[i],b=kd[m];return u.jsx("div",{className:`inline-block ${b} animate-rotation rounded-full ${c} border-b-transparent`})},sr=({src:i,className:m,onLoad:c,imgInPlayerWidthRatio:b=1,onlyThumbnail:S,fadeIn:L,..._})=>{const{minImageWidth:k,maxImageWidth:E,imageLoadStrategy:Z,playerInViewportWidthRatio:O}=It(),{imageHdWidth:P,imageSubWidths:V}=$t(),[re,U]=v.useMemo(()=>{const B=V.concat(P).sort((I,H)=>I-H).filter(I=>!(k&&I<k||E&&I>E));if(B.length===0)throw new Error("No image widths available for the given constraints");const X=B.map(I=>`${I!==P?Kc(i,I):i} ${I}w`);let Y;if(S)Y=[`${B.shift()}px`];else{const I=1/(b*O);if(Z==="quality"){const H=B.pop();Y=B.map(W=>`(max-width: ${I*W}px) ${W}px`),Y.push(`${H}px`)}else{const H=B.shift();Y=B.reverse().map(W=>`(min-width: ${I*W}px) ${W}px`),Y.push(`${H}px`)}}return[X.join(", "),Y.join(", ")]},[P,Z,V,b,E,k,S,O,i]),[M,$]=v.useState();return v.useEffect(()=>{if(M===!0)return;const B=setTimeout(()=>{$(!1)},30);return()=>clearTimeout(B)},[M]),u.jsx("img",{src:i,srcSet:re,sizes:U,className:ye(m,L&&ye(M!==void 0&&"transition-opacity duration-200",M===!1&&"opacity-0",M===!0&&"opacity-100")),onLoad:B=>{$(!0),c==null||c(B)},..._})},gl=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_PLAY",children:u.jsx("svg",{className:i,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round",children:u.jsx("polygon",{points:"6 3 20 12 6 21 6 3"})})}),Wi=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_360",children:u.jsxs("svg",{className:i,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsxs("g",{clipPath:"url(#clip0_134_843)",children:[u.jsx("path",{d:"M35.2497 43.93C34.4358 43.93 33.7296 43.325 33.6241 42.4966C33.51 41.5977 34.1457 40.7765 35.0442 40.662C40.2284 40.0015 44.8709 38.5967 48.1162 36.7057C51.0843 34.9767 52.7185 32.9438 52.7185 30.9819C52.7185 28.8196 50.8062 27.0504 49.2014 25.9464C48.455 25.4329 48.2662 24.4117 48.7798 23.6649C49.2933 22.9185 50.3148 22.7297 51.0612 23.2432C54.2921 25.4657 55.9998 28.1416 55.9998 30.9823C55.9998 34.2063 53.8452 37.1659 49.7684 39.5409C46.0988 41.6789 41.1509 43.1922 35.4591 43.9172C35.3886 43.9257 35.3185 43.93 35.2497 43.93Z",fill:"currentColor"}),u.jsx("path",{d:"M27.6 41.5797L23.225 37.2047C22.5842 36.5638 21.5455 36.5638 20.9047 37.2047C20.2642 37.8451 20.2642 38.8842 20.9047 39.5246L22.183 40.8029C17.2816 40.2966 12.8289 39.1555 9.38102 37.4973C5.50463 35.6333 3.28124 33.2582 3.28124 30.9818C3.28124 29.0511 4.87316 27.0443 7.76347 25.3311C8.5432 24.8692 8.8004 23.8626 8.33854 23.0833C7.87627 22.3036 6.86968 22.0464 6.09038 22.5083C1.05658 25.4922 0 28.7631 0 30.9818C0 34.622 2.82665 37.9861 7.95915 40.4547C11.9428 42.3701 17.0958 43.6531 22.7098 44.1495L20.9047 45.9546C20.2642 46.5951 20.2642 47.6341 20.9047 48.275C21.2251 48.595 21.6451 48.7552 22.0651 48.7552C22.4846 48.7552 22.9046 48.595 23.225 48.275L27.6 43.9C28.2405 43.2592 28.2405 42.2201 27.6 41.5797Z",fill:"currentColor"}),u.jsx("path",{d:"M17.1827 27.6963V27.3016C17.1827 25.9092 16.3303 25.6391 15.1874 25.6391C14.4808 25.6391 14.2522 25.0158 14.2522 24.3924C14.2522 23.7687 14.4808 23.1453 15.1874 23.1453C15.977 23.1453 16.8084 23.0415 16.8084 21.3581C16.8084 20.1529 16.1227 19.8619 15.2703 19.8619C14.2522 19.8619 13.7327 20.1114 13.7327 20.9219C13.7327 21.6282 13.4208 22.1063 12.2155 22.1063C10.7193 22.1063 10.5326 21.7944 10.5326 20.7967C10.5326 19.1762 11.696 17.0771 15.2703 17.0771C17.9098 17.0771 19.9046 18.0329 19.9046 20.8386C19.9046 22.3553 19.3437 23.7687 18.3046 24.2468C19.5308 24.7039 20.4242 25.6182 20.4242 27.3016V27.6963C20.4242 31.1045 18.076 32.393 15.1665 32.393C11.5922 32.393 10.2207 30.2111 10.2207 28.4654C10.2207 27.5301 10.6155 27.2806 11.7584 27.2806C13.0884 27.2806 13.4208 27.5716 13.4208 28.3616C13.4208 29.3382 14.3355 29.5668 15.2703 29.5668C16.6836 29.5668 17.1827 29.0473 17.1827 27.6963Z",fill:"white"}),u.jsx("path",{d:"M33.0384 27.3016V27.4887C33.0384 31.063 30.8146 32.393 27.9469 32.393C25.0792 32.393 22.8345 31.063 22.8345 27.4887V21.9815C22.8345 18.4072 25.1412 17.0771 28.134 17.0771C31.646 17.0771 33.0384 19.2591 33.0384 20.9839C33.0384 21.9815 32.5603 22.293 31.5212 22.293C30.6279 22.293 29.8379 22.0644 29.8379 21.1086C29.8379 20.3191 29.0069 19.9034 28.0302 19.9034C26.804 19.9034 26.0764 20.5477 26.0764 21.9815V23.8515C26.7416 23.1244 27.6769 22.9372 28.6745 22.9372C31.0431 22.9372 33.0384 23.9763 33.0384 27.3016ZM26.0764 27.7173C26.0764 29.1511 26.7831 29.7745 27.9469 29.7745C29.1107 29.7745 29.7964 29.1511 29.7964 27.7173V27.5301C29.7964 26.013 29.1107 25.4311 27.926 25.4311C26.804 25.4311 26.0764 25.9715 26.0764 27.343V27.7173Z",fill:"white"}),u.jsx("path",{d:"M35.5527 27.4887V21.9815C35.5527 18.4072 37.7761 17.0771 40.6442 17.0771C43.5119 17.0771 45.7562 18.4072 45.7562 21.9815V27.4887C45.7562 31.063 43.5119 32.393 40.6442 32.393C37.7761 32.393 35.5527 31.063 35.5527 27.4887ZM42.5143 21.9815C42.5143 20.5477 41.808 19.9034 40.6442 19.9034C39.4804 19.9034 38.7947 20.5477 38.7947 21.9815V27.4887C38.7947 28.9225 39.4804 29.5668 40.6442 29.5668C41.808 29.5668 42.5143 28.9225 42.5143 27.4887V21.9815Z",fill:"white"}),u.jsx("path",{d:"M49.6948 17.0625C46.9805 17.0625 44.7729 14.8545 44.7729 12.1406C44.7729 9.42675 46.9805 7.21875 49.6948 7.21875C52.4087 7.21875 54.6167 9.42675 54.6167 12.1406C54.6167 14.8545 52.4087 17.0625 49.6948 17.0625ZM49.6948 10.5C48.7899 10.5 48.0542 11.2361 48.0542 12.1406C48.0542 13.0455 48.7899 13.7812 49.6948 13.7812C50.5993 13.7812 51.3354 13.0455 51.3354 12.1406C51.3354 11.2361 50.5993 10.5 49.6948 10.5Z",fill:"white"})]}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip0_134_843",children:u.jsx("rect",{width:"56",height:"56",fill:"white"})})})]})}),Ai=({children:i})=>{const{extendMode:m}=st();return u.jsx("div",{className:ye("flex aspect-square h-3/4 items-center justify-center rounded-full bg-foreground/50 p-1",m&&"large:h-3/5 large:p-2"),children:i})},Cd=({item:i})=>{const{permanentGallery:m}=It(),{aspectRatioStyle:c}=$t(),{type:b}=i;let S;switch(b){case"360":S=i.images[0].src;break;case"image":S=i.src;break;case"video":S=i.poster;break}const L=u.jsx(sr,{className:"size-full object-cover",src:S,onlyThumbnail:!0,fadeIn:!m});let _;switch(b){case"360":_=u.jsx(Ai,{children:u.jsx(Wi,{className:"size-full text-primary"})});break;case"video":_=u.jsx(Ai,{children:u.jsx(gl,{className:"size-full p-0.5 text-background"})});break}return u.jsxs("div",{className:"relative overflow-hidden rounded-gallery bg-foreground/30",style:c,children:[L,_&&u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:_})]})},Ed={primary:"bg-primary/50",neutral:"bg-neutral/50",background:"bg-background/50",foreground:"bg-foreground/50"},$i=({color:i="neutral",orientation:m="horizontal"})=>{const c=Ed[i],b=m==="horizontal"?"h-px w-full":"w-px h-full";return u.jsx("div",{className:ye(c,b)})},Bi=({className:i="",containerClassName:m=""})=>{const{flatten:c,infiniteCarrousel:b,permanentGallery:S,isFullScreen:L}=It(),{categories:_,items:k,aspectRatioStyle:E}=$t(),{extendMode:Z,extendTransition:O,masterItemIndex:P,prevItem:V,nextItem:re,scrollToItemIndex:U,resetView:M}=st(),$=v.useMemo(()=>{if(c)return[];const A=new Array;let ae=0;for(let te=0;te<_.length-1;te++){const oe=_[te].items.length;A.push(ae+oe),ae+=oe}return A},[_,c]),B=v.useRef(null),X=v.useCallback(()=>{if(!B.current)throw new Error("slider.current is null");return B.current},[]),Y=v.useRef(!1),I=v.useRef(null),[H,W]=v.useState(!1),J=v.useCallback((A,ae)=>{const te=X(),oe=te.clientWidth,he=te.scrollWidth/k.length,Q=(A+1/2)*he-oe/2,C=te.scrollWidth-te.clientWidth;te.scrollTo({left:mn(Q,0,C),behavior:ae})},[k.length,X]);v.useEffect(()=>{const A=B.current;if(!A)return;const ae=he=>{he.preventDefault(),Y.current=!0,I.current={x:he.pageX-A.offsetLeft,scrollLeft:A.scrollLeft}},te=he=>{if(!Y.current)return;if(I.current===null)throw new Error("[onMouseMove] scrollStart is null");const Q=he.pageX-A.offsetLeft-I.current.x;if(!H&&Math.abs(Q)<5)return;const C=I.current.scrollLeft-Q;W(!0),requestAnimationFrame(()=>{A.scrollLeft=C})},oe=()=>{Y.current&&(Y.current=!1,requestAnimationFrame(()=>{W(!1)}))};return A.addEventListener("mousedown",ae),document.addEventListener("mousemove",te),document.addEventListener("mouseleave",oe),document.addEventListener("mouseup",oe),document.addEventListener("contextmenu",oe),()=>{A.removeEventListener("mousedown",ae),document.removeEventListener("mousemove",te),document.removeEventListener("mouseleave",oe),document.removeEventListener("mouseup",oe),document.removeEventListener("contextmenu",oe)}},[H]);const le=v.useRef(P);v.useEffect(()=>{B.current&&(J(P,"smooth"),le.current=P)},[P,J]),v.useEffect(()=>{B.current&&J(le.current,"instant")},[J,L,Z,O]);const ie=(A,ae)=>{H||(b&&ae===k.length-1&&P===0?V():b&&ae===0&&P===k.length-1?re():U(ae),M())};return u.jsx("div",{ref:B,className:ye("relative w-full overflow-x-auto no-scrollbar",H?"cursor-grab":"cursor-grabbing",i),children:u.jsx("div",{className:ye("flex h-10 w-fit gap-1 small:h-12 small:gap-2",Z&&"large:h-20 large:gap-4",m),children:k.map((A,ae)=>u.jsxs(v.Fragment,{children:[$.includes(ae)&&u.jsx("div",{className:"my-2",children:u.jsx($i,{color:S&&!L?"neutral":"background",orientation:"vertical"})}),u.jsx("div",{className:ye("relative h-full rounded-gallery ",!H&&"cursor-pointer","after:absolute after:inset-0 after:rounded-gallery after:border-2 after:border-primary after:transition-opacity",ae===P?"after:opacity-100":"after:opacity-0 hover:after:opacity-70"),style:E,onClick:()=>ie(A,ae),children:u.jsx(Cd,{item:A})})]},ae))})})},Yi=i=>1-Math.pow(1-i,2),Sd=({currentIndex:i,maxIndex:m})=>u.jsxs("div",{className:"space-x-0.5 rounded-ui bg-foreground/40 px-1.5 py-0.5 text-xs text-background/75 small:space-x-1 small:px-2 small:py-1 small:text-sm",children:[u.jsx("span",{children:i+1}),u.jsx("span",{children:"/"}),u.jsx("span",{children:m+1})]}),Zi=(i,m)=>Math.sqrt((i.clientX-m.clientX)**2+(i.clientY-m.clientY)**2),_d=({onlyPreload:i,...m})=>{const{zoom:c,isZooming:b,setZoom:S}=st(),L=v.useRef(null),_=v.useRef(null),k=v.useCallback(X=>{if(!_.current)throw new Error(`[${X??"getTransformElementOrThrow"}] transformElementRef.current is null`);return _.current},[]),E=v.useRef(!1),Z=v.useRef(null),O=v.useRef(new Map),P=v.useRef({x:0,y:0,scale:1}),V=v.useRef(null),re=v.useCallback(X=>{const Y=k("setTransformStyle"),{x:I,y:H,scale:W}={...P.current,...X},J=mn(W,1,Gr),le=Y.clientWidth,ie=Y.clientHeight,A=le*J,ae=ie*J,te=mn(I,-(A-le),0),oe=mn(H,-(ae-ie),0);P.current={x:te,y:oe,scale:J},Y.style.transform=`translate(${te}px, ${oe}px) scale(${J})`},[k]),U=v.useCallback((X,Y)=>{const{x:I,y:H,scale:W}=P.current,{x:J,y:le,scale:ie}={...P.current,...X};V.current&&(cancelAnimationFrame(V.current),V.current=null);const A=()=>{re({x:J,y:le,scale:ie}),S(ie)},ae=Math.abs(J-I)<1&&Math.abs(le-H)<1&&Math.abs(ie-W)<.005;if(!Y||ae){A();return}const te=new Date().getTime(),oe=()=>{const he=()=>{const Q=new Date().getTime()-te;if(Q>=Y){A(),V.current=null;return}const C=Math.min(Q/Y,1),F=Yi(C),w=Jr(I,J,F),R=Jr(H,le,F),z=Jr(W,ie,F);re({x:w,y:R,scale:z}),oe()};V.current=requestAnimationFrame(he)};oe()},[re,S]),M=v.useCallback((X,Y)=>{let{x:I,y:H}=P.current;X.x&&(I+=X.x),X.y&&(H+=X.y),U({x:I,y:H},Y)},[U]),$=v.useCallback((X,Y,I)=>{const H=P.current.scale,W=mn(X,1,Gr),J=W/H,{x:le,y:ie}=P.current,{x:A,y:ae}=Y,te=-le+A,oe=-ie+ae,he=te*J,Q=oe*J,C=he-A,F=Q-ae,w=-C,R=-F;U({x:w,y:R,scale:W},I)},[U]),B=v.useCallback(X=>{const Y=k("shiftZoomFromButton"),I=Y.clientWidth,H=Y.clientHeight;$(X,{x:I/2,y:H/2},200)},[k,$]);return v.useEffect(()=>{_.current&&B(c)},[B,c]),v.useEffect(()=>{if(!b)return;const X=_.current;if(!X)return;const Y=W=>{W.preventDefault(),W.stopPropagation(),E.current=!0,Z.current={x:W.clientX,y:W.clientY}},I=W=>{if(!E.current)return;if(!Z.current)throw new Error("mouseStartXY.current is null");W.stopPropagation();const J=W.clientX-Z.current.x,le=W.clientY-Z.current.y;M({x:J,y:le}),Z.current={x:W.clientX,y:W.clientY}},H=()=>{E.current=!1};return X.addEventListener("mousedown",Y),document.addEventListener("mousemove",I),document.addEventListener("mouseleave",H),document.addEventListener("mouseup",H),document.addEventListener("contextmenu",H),()=>{X.removeEventListener("mousedown",Y),document.removeEventListener("mousemove",I),document.removeEventListener("mouseleave",H),document.removeEventListener("mouseup",H),document.removeEventListener("contextmenu",H)}},[b,M]),v.useEffect(()=>{const X=L.current;if(!X)return;const Y=I=>{const{ctrlKey:H,clientX:W,clientY:J,deltaX:le,deltaY:ie}=I;if(H){if(!b&&ie>=0)return;const{left:A,top:ae}=X.getBoundingClientRect(),te=W-A,oe=J-ae;$(c-.01*ie,{x:te,y:oe})}else{if(!b)return;M({x:-2*le,y:-2*ie})}I.preventDefault()};return X.addEventListener("wheel",Y),()=>{X.removeEventListener("wheel",Y)}},[b,M,$,c]),v.useEffect(()=>{const X=L.current,Y=_.current;if(!X||!Y)return;const I=O.current,H=le=>{for(let ie=0;ie<le.changedTouches.length;ie++){const A=le.changedTouches[ie];I.set(A.identifier,A)}},W=le=>{for(let ie=0;ie<le.changedTouches.length;ie++){const A=le.changedTouches[ie];I.delete(A.identifier)}},J=le=>{const ie=le.touches.length;if(ie===1){if(!b)return;le.preventDefault();const A=le.touches[0],ae=I.get(A.identifier);if(!ae)throw new Error("touchStart is null");const te=A.clientX-ae.clientX,oe=A.clientY-ae.clientY;M({x:te,y:oe}),I.set(A.identifier,A)}else if(ie===2){le.preventDefault();const[A,ae]=le.touches,te=I.get(A.identifier),oe=I.get(ae.identifier);if(!te||!oe)throw new Error("intialTouch1 or intialTouch2 is null");const he=Zi(te,oe),Q=Zi(A,ae)/he,{left:C,top:F}=X.getBoundingClientRect();$(Q*c,{x:(A.clientX+ae.clientX)/2-C,y:(A.clientY+ae.clientY)/2-F}),I.set(A.identifier,A),I.set(ae.identifier,ae)}};return Y.addEventListener("touchstart",H),Y.addEventListener("touchmove",J),Y.addEventListener("touchend",W),Y.addEventListener("touchcancel",W),()=>{Y.removeEventListener("touchstart",H),Y.removeEventListener("touchmove",J),Y.removeEventListener("touchend",W),Y.removeEventListener("touchcancel",W)}},[b,M,$,c]),u.jsx("div",{ref:L,className:`relative size-full overflow-hidden ${b?"z-zoomed-image cursor-move":""}`,children:u.jsx("div",{ref:_,className:"origin-top-left",children:u.jsx(sr,{...m,imgInPlayerWidthRatio:i?1:c})})})},Nd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_IMAGE",children:u.jsx("svg",{className:i,viewBox:"0 0 12 12",fill:"none",children:u.jsx("path",{d:"M9.5 2.5V9.5H2.5V2.5H9.5ZM9.5 1.5H2.5C1.95 1.5 1.5 1.95 1.5 2.5V9.5C1.5 10.05 1.95 10.5 2.5 10.5H9.5C10.05 10.5 10.5 10.05 10.5 9.5V2.5C10.5 1.95 10.05 1.5 9.5 1.5ZM7.07 5.93L5.57 7.865L4.5 6.57L3 8.5H9L7.07 5.93Z",fill:"currentColor"})})}),jd=({hotspot:i})=>{const{title:m,icon:c,description:b,position:S,detail:L}=i,{getIconConfig:_}=hl(),k=c?_(c):void 0,{extendMode:E,setShownDetails:Z}=st(),O=!!L,P=(L==null?void 0:L.type)==="image",V=!!m||!!b,re=P?u.jsx(Nd,{className:"size-4"}):u.jsx("div",{className:"size-1"}),U=()=>{P&&Z({src:L.src,title:m,text:b})};return u.jsxs("div",{className:ye("group absolute z-hotspot -translate-x-1/2 -translate-y-1/2 hover:z-hotspot-hover",O?"cursor-pointer":"cursor-help"),style:{top:`${100*i.position.y}%`,left:`${100*i.position.x}%`},onClick:U,children:[u.jsxs("div",{className:"relative flex items-center justify-center rounded-full border-2 border-background bg-primary text-primary-foreground",style:{backgroundColor:k==null?void 0:k.color},children:[u.jsx("div",{className:"pointer-events-none absolute -z-20 size-8 animate-hotspot-ping rounded-full border-2 border-background"}),k!=null&&k.Icon?u.jsx("div",{className:"size-5",children:k.Icon}):u.jsx("div",{className:"p-1",children:re})]}),!P&&V&&u.jsx("div",{className:ye("absolute -z-10 w-max max-w-40 text-pretty rounded-ui bg-background p-2 small:max-w-48",E&&"large:max-w-56",S.y<.55?"-top-1":"-bottom-1",S.x<.55?"-left-1 pl-6 small:pl-8":"-right-1 pr-4 small:pr-6","pointer-events-none opacity-0 transition-opacity duration-300 group-hover:pointer-events-auto group-hover:opacity-100"),children:u.jsxs("div",{className:"space-y-1",children:[m&&u.jsx("div",{className:"text-sm",children:m}),b&&u.jsx("div",{className:"text-xs",children:b})]})})]})},Ld=({hotspot:i})=>{const{icon:m,detail:c}=i;let b;switch(m){case"WINDOW STICKER":b=u.jsx("img",{className:"h-10",src:"https://cdn.car-cutter.com/libs/web-player/v2/assets/images/customers/autonation/window_sticker.png",alt:"Window sticker"});break;case"CARFAX":b=u.jsx("img",{className:"h-10",src:"https://cdn.car-cutter.com/libs/web-player/v2/assets/images/customers/autonation/carfax.png",alt:"Carfax"});break;default:b=u.jsx(jd,{hotspot:i});break}switch(c==null?void 0:c.type){case"link":case"pdf":return u.jsx("a",{href:c.src,target:"_blank",rel:"noreferrer",children:b});default:return b}},Qi=({hotspots:i,itemIndex:m,className:c,onLoad:b,...S})=>{const{isShowingDetails:L,showHotspots:_,setItemInteraction:k}=st();return u.jsx("div",{className:ye("relative size-full overflow-hidden",c),children:u.jsxs("div",{className:ye("size-full duration-details",L?"scale-105":"scale-100"),children:[u.jsx(_d,{className:"size-full",onLoad:E=>{m!==void 0&&k(m,"ready"),b==null||b(E)},...S}),_&&(i==null?void 0:i.map((E,Z)=>u.jsx(Ld,{hotspot:E},Z)))]})})},ur=10,Td=15,Pd=({images:i,onlyPreload:m})=>{const{reverse360:c}=It(),{isShowingDetails:b,isZooming:S}=st(),L=S||b,_=v.useRef(null),k=v.useRef(null),[E,Z]=v.useState(0),O=i.length,P=v.useCallback(()=>{Z(re=>(re-1+O)%O)},[O]),V=v.useCallback(()=>{Z(re=>(re+1)%O)},[O]);return v.useEffect(()=>{if(L)return;const re=_.current,U=k.current;if(!re||!U)return;let M=null,$=[],B=null;const X=C=>{$.push(C),$.length>20&&$.shift()},Y=()=>{const C=Date.now(),F=(()=>{const p=Date.now(),x=$.filter(fe=>p-fe.timestamp<50);if(x.length<2)return 0;const se=x[0],ue=x[x.length-1];return(ue.value-se.value)/(.001*Math.max(ue.timestamp-se.timestamp,1))})();let w=0,R=C;const z=()=>{B=requestAnimationFrame(()=>{const p=Date.now(),x=(p-C)/1e3,se=Math.pow(.05,x),ue=F*se,fe=(p-R)/1e3;if(w+=ue*fe,Math.abs(ue)<5*ur&&Math.abs(w)<ur){B=null;return}Math.abs(w)>=ur&&(w>0!==c?V():P(),w=0),R=p,z()})};z()},I=()=>{B&&(cancelAnimationFrame(B),B=null)},H=C=>{if(C.button!==0)return;C.preventDefault(),C.stopPropagation(),I();const F=C.clientX;M=F,$=[{timestamp:Date.now(),value:F}]},W=C=>{if(M===null)return;C.stopPropagation();const{clientX:F}=C;X({timestamp:Date.now(),value:F});const w=F-M;Math.abs(w)<ur||(w>0!==c?V():P(),M=F)},J=()=>{M!==null&&(M=null,Y())};re.addEventListener("mousedown",H),document.addEventListener("mousemove",W),document.addEventListener("mouseleave",J),document.addEventListener("mouseup",J),document.addEventListener("contextmenu",J);const le=()=>U.getBoundingClientRect().width,ie=()=>U.scrollWidth/2-le()/2,A=()=>{const C=ie();U.scrollLeft=C};A();const ae=()=>{const C=U.scrollLeft-ie();Math.abs(C)<Td||(C<0!==c?V():P(),A())};U.addEventListener("scroll",ae);let te=null;const oe=C=>{if(te!==null||C.changedTouches.length!==1)return;I();const{identifier:F,clientX:w}=C.changedTouches[0];te=F,M=w,$=[{timestamp:Date.now(),value:w}]},he=C=>{if(!M)return;const F=Array.from(C.changedTouches).find(({identifier:z})=>z===te);if(!F)return;C.preventDefault();const{clientX:w}=F;X({timestamp:Date.now(),value:w});const R=w-M;Math.abs(R)<ur||(R>0!==c?V():P(),M=w)},Q=C=>{!M||!Array.from(C.changedTouches).some(({identifier:F})=>F===te)||(te=null,M=null,Y())};return U.addEventListener("touchstart",oe),U.addEventListener("touchmove",he),U.addEventListener("touchend",Q),U.addEventListener("touchcancel",Q),()=>{re.removeEventListener("mousedown",H),document.removeEventListener("mousemove",W),document.removeEventListener("mouseleave",J),document.removeEventListener("mouseup",J),document.removeEventListener("contextmenu",J),U.removeEventListener("scroll",ae),U.removeEventListener("touchstart",oe),U.removeEventListener("touchmove",he),U.removeEventListener("touchend",Q),U.removeEventListener("touchcancel",Q)}},[V,P,L,c]),u.jsx("div",{ref:_,className:"cursor-ew-resize",children:u.jsxs("div",{ref:k,className:"overflow-x-scroll no-scrollbar",children:[u.jsx("div",{className:"sticky left-0 top-0",children:i.map((re,U)=>u.jsx(Qi,{...re,className:ye(U!==E&&"pointer-events-none !absolute left-0 top-0 -z-10"),onlyPreload:U!==E||m},re.src))}),u.jsx("div",{className:"pointer-events-none -mt-px h-px w-[calc(100%+1024px)]"})]})})},zd=({images:i,onPlaceholderImageLoaded:m,onSpinImagesLoaded:c,onError:b})=>{const S=v.useMemo(()=>i.map(({src:O})=>O),[i]),[L,_]=v.useState(null),k=L?[...L.values()].filter(O=>O).length/i.length*100:null,E=v.useCallback(()=>{k===null&&_(new Map(S.map(O=>[O,!1])))},[S,k]),Z=v.useCallback(O=>{_(P=>{const V=new Map(P);return V.set(O,!0),V})},[]);return v.useEffect(()=>{k===100&&c()},[k,c]),u.jsxs("div",{className:"relative size-full",children:[k!==null&&k!==100&&u.jsx("div",{className:"hidden",children:S.map(O=>u.jsx(sr,{src:O,onLoad:()=>Z(O),onError:b},O))}),u.jsx(sr,{className:"size-full",src:S[0],onLoad:m}),u.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center gap-y-4 bg-foreground/35",children:[u.jsx(Wi,{className:"size-20 text-primary"}),u.jsx(ut,{color:"neutral",shape:"icon",onClick:E,children:u.jsx(gl,{className:"size-full"})}),u.jsx("div",{className:ye("relative h-1 w-3/5 overflow-hidden rounded-full bg-background",k===null&&"invisible"),children:u.jsx("div",{className:"h-full bg-primary transition-[width]",style:{width:`${k??0}%`}})})]})]})},Md=i=>{const{itemIndex:m}=i,{setItemInteraction:c}=st(),[b,S]=v.useState();return v.useEffect(()=>{b===null||b==="error"||c(m,b==="spin"?"running":"ready")},[m,c,b]),b==="error"?u.jsx(Hi,{title:"Failed to fetch 360"}):b!=="spin"?u.jsx(zd,{...i,onPlaceholderImageLoaded:()=>S("placeholder"),onSpinImagesLoaded:()=>S("spin"),onError:()=>S("error")}):u.jsx(Pd,{...i})},Id=({className:i="",...m})=>u.jsx(ut,{color:"neutral",shape:"icon",className:i,...m,children:u.jsx(gl,{className:"size-full"})}),Rd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_PAUSE",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M4 12.6667H6.66667V3.33333H4V12.6667ZM9.33333 3.33333V12.6667H12V3.33333H9.33333Z",fill:"currentColor"})})}),Dd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_VOLUME",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2 6V10H4.66667L8 13.3333V2.66667L4.66667 6H2ZM11 8C11 6.82 10.32 5.80667 9.33333 5.31334V10.68C10.32 10.1933 11 9.18 11 8ZM9.33333 2.15334V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8C12.6667 10.1133 11.26 11.9 9.33333 12.4733V13.8467C12.0067 13.24 14 10.8533 14 8C14 5.14667 12.0067 2.76 9.33333 2.15334Z",fill:"currentColor"})})}),Fd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_VOLUME_OFF",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M11 8C11 6.82 10.32 5.80667 9.33333 5.31333V6.78667L10.9667 8.42C10.9867 8.28667 11 8.14667 11 8ZM12.6667 8C12.6667 8.62667 12.5333 9.21333 12.3067 9.76L13.3133 10.7667C13.7533 9.94 14 9 14 8C14 5.14667 12.0067 2.76 9.33333 2.15333V3.52667C11.26 4.1 12.6667 5.88667 12.6667 8ZM2.84667 2L2 2.84667L5.15333 6H2V10H4.66667L8 13.3333V8.84667L10.8333 11.68C10.3867 12.0267 9.88667 12.3 9.33333 12.4667V13.84C10.2533 13.6333 11.0867 13.2067 11.7933 12.6333L13.1533 14L14 13.1533L2.84667 2ZM8 2.66667L6.60667 4.06L8 5.45333V2.66667Z",fill:"currentColor"})})}),Xi=({progress:i})=>u.jsx("div",{className:"h-1 w-full overflow-hidden rounded-ui-sm bg-background/25",children:u.jsx("div",{className:"size-full rounded-ui-sm bg-background transition-transform",style:{transform:`translateX(-${100*(1-i)}%)`}})}),Vd=3e3,Od=({src:i,poster:m,itemIndex:c})=>{const{carrouselItemIndex:b,setItemInteraction:S}=st(),L=v.useRef(null),_=v.useRef(null),k=v.useCallback(()=>{if(!_.current)throw new Error("videoRef.current is null");return _.current},[]);v.useEffect(()=>{S(c,"ready")},[c,S]);const E=v.useCallback(()=>{k().play()},[k]),Z=v.useCallback(()=>{k().pause()},[k]);v.useEffect(()=>{b===c||Z()},[b,c,Z]);const[O,P]=v.useState(!1),[V,re]=v.useState(!0),U=()=>{P(!0),S(c,"running")},M=()=>{P(!1),S(c,"ready")},$=()=>{re(!1)},B=()=>{re(!0)},[X,Y]=v.useState(null),I=C=>{const F=k(),w=C.currentTarget.getBoundingClientRect(),R=(C.clientX-w.left)/w.width,z=Math.min(1,Math.max(0,R));F.volume=z,F.muted=!1},H=C=>{const F=k();F.muted=C};v.useEffect(()=>{const C=_.current;if(!C)return;const F=()=>{Y({volume:C.volume,isMuted:C.muted})};return F(),C.addEventListener("volumechange",F),()=>{C.removeEventListener("volumechange",F)}},[]);const[W,J]=v.useState(null),le=W?W.currentTime/W.duration:0;v.useEffect(()=>{const C=_.current;if(!C)return;const F=()=>{const w=C.currentTime,R=C.duration;isNaN(w)||isNaN(R)||J({currentTime:w,duration:R})};return F(),C.addEventListener("timeupdate",F),()=>{C.removeEventListener("timeupdate",F)}},[]);const ie=C=>{const F=k(),w=C.currentTarget.getBoundingClientRect(),R=(C.clientX-w.left)/w.width,z=F.duration*R;F.currentTime=z},A=C=>{const F=Math.floor(C%3600/60),w=Math.floor(C%60);return`${F}:${w.toString().padStart(2,"0")}`},[ae,te]=v.useState(!1),oe=v.useRef(void 0),he=v.useCallback(()=>clearTimeout(oe.current),[]),Q=v.useCallback(()=>{he(),oe.current=setTimeout(()=>{te(!1)},Vd)},[he]);return v.useEffect(()=>{const C=L.current,F=_.current;if(!C||!F)return;const w=()=>{Q(),te(!0)},R=()=>{he(),te(!1)};let z=!1;const p=()=>{z=!0},x=()=>{z&&(z=!1,Z())},se=()=>{z=!1,w()},ue=fe=>{fe.preventDefault(),fe.touches.length===1&&(Q(),te(me=>!me))};return C.addEventListener("mousedown",p),C.addEventListener("mouseup",x),C.addEventListener("mouseenter",w),C.addEventListener("mousemove",se),C.addEventListener("mouseleave",R),F.addEventListener("touchstart",ue),()=>{C.removeEventListener("mousedown",p),C.removeEventListener("mouseup",x),C.removeEventListener("mouseenter",w),C.removeEventListener("mousemove",w),C.removeEventListener("mouseleave",R),F.removeEventListener("touchstart",ue)}},[he,Z,Q]),u.jsxs("div",{ref:L,className:"relative size-full",children:[u.jsx("video",{ref:_,className:"size-full",src:i,poster:m,disablePictureInPicture:!0,playsInline:!0,onPlay:U,onPause:M,onEnded:M,onCanPlay:$,onWaiting:B}),O?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:ye("absolute inset-x-0 bottom-0 cursor-auto space-y-2 bg-gradient-to-t from-foreground to-transparent p-4 pr-12 pt-8 transition-opacity duration-300",ae?"pointer-events-auto opacity-100":"pointer-events-none opacity-0"),onMouseDownCapture:C=>C.stopPropagation(),children:[u.jsxs("div",{className:"flex items-center justify-between text-background",children:[u.jsxs("div",{className:"flex items-center gap-x-4",children:[u.jsx(ut,{shape:"icon",variant:"ghost",color:"neutral",onClick:Z,children:u.jsx(Rd,{className:"size-full"})}),W&&u.jsxs("span",{className:"text-sm",children:[A(W.currentTime)," /"," ",A(W.duration)]})]}),X&&u.jsxs("div",{className:"group/volume flex items-center gap-x-4 rounded-ui-md p-2 transition-colors hover:bg-foreground/25",children:[u.jsx("div",{className:`w-12 cursor-pointer py-1 opacity-0 transition-opacity ${X.isMuted?"group-hover/volume:opacity-50":"group-hover/volume:opacity-100"}`,onClick:I,children:u.jsx(Xi,{progress:X.volume})}),u.jsx("div",{className:"size-5 cursor-pointer",onClick:()=>H(!X.isMuted),children:X.isMuted?u.jsx(Fd,{className:"size-full"}):u.jsx(Dd,{className:"size-full"})})]})]}),u.jsx("div",{className:"cursor-pointer py-1",onClick:ie,children:u.jsx(Xi,{progress:le})})]}),V&&u.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center bg-foreground/25",children:u.jsx(Ui,{size:"lg"})})]}):u.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-foreground/25",children:u.jsx(Id,{onClick:E})})]})},Hd=({index:i,item:m,isShown:c,lazy:b})=>{const{type:S}=m;let L;if(b)L=null;else switch(S){case"image":L=u.jsx(Qi,{itemIndex:i,onlyPreload:!c,...m});break;case"video":L=u.jsx(Od,{itemIndex:i,...m});break;case"360":L=u.jsx(Md,{itemIndex:i,onlyPreload:!c,...m});break}return L},Ud=i=>{v.useEffect(()=>{const m=c=>{c.key==="Escape"&&i()};return addEventListener("keydown",m),()=>{removeEventListener("keydown",m)}},[i])};function Wd(i){return i.target===i.currentTarget}const qi=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_ARROW_RIGHT",children:u.jsx("svg",{className:i,viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M4.07666 13.4868L5.25666 14.6668L11.9233 8.00016L5.25666 1.3335L4.07666 2.5135L9.56333 8.00016L4.07666 13.4868Z",fill:"currentColor"})})}),Ad=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_EXTEND",children:u.jsx("svg",{className:i,viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M4.66683 9.3335H3.3335V12.6668H6.66683V11.3335H4.66683V9.3335ZM3.3335 6.66683H4.66683V4.66683H6.66683V3.3335H3.3335V6.66683ZM11.3335 11.3335H9.3335V12.6668H12.6668V9.3335H11.3335V11.3335ZM9.3335 3.3335V4.66683H11.3335V6.66683H12.6668V3.3335H9.3335Z",fill:"currentColor"})})}),$d=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_GALLERY",children:u.jsx("svg",{className:i,viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M13.3334 2.66683V10.6668H5.33337V2.66683H13.3334ZM13.3334 1.3335H5.33337C4.60004 1.3335 4.00004 1.9335 4.00004 2.66683V10.6668C4.00004 11.4002 4.60004 12.0002 5.33337 12.0002H13.3334C14.0667 12.0002 14.6667 11.4002 14.6667 10.6668V2.66683C14.6667 1.9335 14.0667 1.3335 13.3334 1.3335ZM7.66671 7.78016L8.79337 9.28683L10.4467 7.22016L12.6667 10.0002H6.00004L7.66671 7.78016ZM1.33337 4.00016V13.3335C1.33337 14.0668 1.93337 14.6668 2.66671 14.6668H12V13.3335H2.66671V4.00016H1.33337Z",fill:"currentColor"})})}),Bd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_HOTSPOTS",children:u.jsxs("svg",{className:i,width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[u.jsx("g",{clipPath:"url(#clip0_418_982)",children:u.jsx("path",{d:"M6 4C4.895 4 4 4.895 4 6C4 7.105 4.895 8 6 8C7.105 8 8 7.105 8 6C8 4.895 7.105 4 6 4ZM10.47 5.5C10.24 3.415 8.585 1.76 6.5 1.53V0.5H5.5V1.53C3.415 1.76 1.76 3.415 1.53 5.5H0.5V6.5H1.53C1.76 8.585 3.415 10.24 5.5 10.47V11.5H6.5V10.47C8.585 10.24 10.24 8.585 10.47 6.5H11.5V5.5H10.47ZM6 9.5C4.065 9.5 2.5 7.935 2.5 6C2.5 4.065 4.065 2.5 6 2.5C7.935 2.5 9.5 4.065 9.5 6C9.5 7.935 7.935 9.5 6 9.5Z",fill:"currentColor"})}),u.jsx("defs",{children:u.jsx("clipPath",{id:"clip0_418_982",children:u.jsx("rect",{width:"12",height:"12",fill:"white"})})})]})}),Yd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_MINUS",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M12.6666 8.66634H3.33325V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Zd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_PLUS",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M12.6666 8.66634H8.66659V12.6663H7.33325V8.66634H3.33325V7.33301H7.33325V3.33301H8.66659V7.33301H12.6666V8.66634Z",fill:"currentColor"})})}),Qd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_REDUCE",children:u.jsx("svg",{className:i,viewBox:"0 0 16 16",fill:"none",children:u.jsx("path",{d:"M3.33325 10.6668H5.33325V12.6668H6.66659V9.3335H3.33325V10.6668ZM5.33325 5.3335H3.33325V6.66683H6.66659V3.3335H5.33325V5.3335ZM9.33325 12.6668H10.6666V10.6668H12.6666V9.3335H9.33325V12.6668ZM10.6666 5.3335V3.3335H9.33325V6.66683H12.6666V5.3335H10.6666Z",fill:"currentColor"})})}),Xd=({enabled:i,onToggle:m,label:c,className:b,children:S})=>u.jsxs("label",{className:ye("flex cursor-pointer items-center justify-center gap-x-2",b),children:[u.jsx("input",{type:"checkbox",className:"sr-only",checked:i,onChange:m}),c&&u.jsx("div",{className:"text-xs text-background",children:c}),u.jsx("div",{className:ye("flex h-5 w-8 items-center justify-center rounded-full transition-colors",i?"bg-primary":"bg-background/60"),children:u.jsx("div",{className:ye("flex size-4 items-center justify-center rounded-full p-0.5 transition",i?"translate-x-1.5 bg-primary-foreground text-primary":"-translate-x-1.5 bg-background text-foreground"),children:S})})]}),qd=({className:i})=>u.jsx(Oe,{className:i,customizationKey:"UI_BURGER",children:u.jsx("svg",{className:i,width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:u.jsx("path",{d:"M2 12H14V10.6667H2V12ZM2 8.66667H14V7.33333H2V8.66667ZM2 4V5.33333H14V4H2Z",fill:"currentColor"})})}),Kd=({sharedClassName:i})=>{const{categories:m}=$t(),{displayedCategoryId:c,changeCategory:b}=st(),[S,L]=v.useState(!1),_=()=>{L(!S)},k=()=>{L(!1)};return u.jsxs(u.Fragment,{children:[S&&u.jsx("div",{className:ye(i,"inset-0 small:hidden"),onClick:k}),u.jsxs("div",{className:ye(i,zn("top-left"),"flex gap-x-2 small:hidden"),children:[u.jsx(ut,{shape:"icon",color:S?"primary":"neutral",onClick:_,children:u.jsx(qd,{})}),S&&u.jsx("div",{className:"rounded-ui-md bg-background",children:u.jsx("ul",{className:"space-y-0.5 p-1",children:m.map(({id:E,title:Z})=>u.jsx("li",{className:ye("cursor-pointer rounded-ui px-2 py-1 text-sm font-bold transition-colors hover:bg-primary/30",E===c&&"bg-primary/50"),onClick:()=>{b(E),L(!1)},children:Z},E))})})]}),u.jsx("div",{className:ye(i,Di("top"),"w-full overflow-x-auto max-small:hidden"),children:u.jsx("div",{className:"mx-auto flex w-fit gap-x-1 rounded-ui-md bg-background p-1 shadow",children:m.map(({id:E,title:Z})=>u.jsx(ut,{variant:E===c?"fill":"ghost",onClick:()=>b(E),children:Z},E))})})]})},Gd=()=>{const{flatten:i,infiniteCarrousel:m,permanentGallery:c}=It(),{items:{length:b},aspectRatioStyle:S}=$t(),{slidable:L,masterItemIndex:_,prevItem:k,nextItem:E,showGalleryControls:Z,enableHotspotsControl:O,showHotspots:P,toggleHotspots:V,showGallery:re,toggleGallery:U,extendMode:M,toggleExtendMode:$,shownDetails:B,isShowingDetails:X,resetShownDetails:Y,showZoomControls:I,isZooming:H,canZoomIn:W,zoomIn:J,canZoomOut:le,zoomOut:ie,resetView:A}=st(),ae=v.useCallback(he=>{Wd(he)&&Y()},[Y]);Ud(Y);const te="absolute z-overlay",oe=`transition-opacity ${Z?"opacity-100":"opacity-0 !pointer-events-none"}`;return u.jsxs(u.Fragment,{children:[!i&&!H&&u.jsx(Kd,{sharedClassName:te}),L&&!H&&u.jsxs(u.Fragment,{children:[u.jsx(ut,{shape:"icon",color:"neutral",className:ye(te,zn("middle-left")),onClick:k,disabled:!m&&_<=0,children:u.jsx(Oe,{customizationKey:"CONTROLS_ARROW_LEFT",children:u.jsx(qi,{className:"size-full rotate-180"})})}),u.jsx(ut,{shape:"icon",color:"neutral",className:ye(te,zn("middle-right")),onClick:E,disabled:!m&&_>=b-1,children:u.jsx(Oe,{customizationKey:"CONTROLS_ARROW_RIGHT",children:u.jsx(qi,{className:"size-full"})})})]}),u.jsxs("div",{className:ye(te,zn("bottom-fullW"),"pointer-events-none grid grid-cols-[auto,1fr,auto] items-end *:pointer-events-auto small:gap-x-2"),children:[!c&&b>1&&!H&&u.jsxs(u.Fragment,{children:[u.jsx(ut,{className:oe,variant:"fill",color:re?"primary":"neutral",shape:"icon",onClick:U,children:u.jsx(Oe,{customizationKey:"CONTROLS_GALLERY",children:u.jsx($d,{className:"size-full"})})}),re&&u.jsx(Bi,{className:ye(oe,"[mask-image:linear-gradient(to_left,transparent_0px,black_4px,black_calc(100%-4px),transparent_100%)]"),containerClassName:"mx-1"})]}),u.jsxs("div",{className:"col-start-3 flex flex-col items-end gap-y-1 small:gap-y-2",children:[O&&!H&&u.jsx(Xd,{enabled:P,onToggle:V,children:u.jsx(Bd,{className:"size-full"})}),I&&u.jsxs("div",{className:"max-small:hidden",children:[u.jsx(ut,{className:"rounded-b-none",color:"neutral",shape:"icon",disabled:!W,onClick:J,children:u.jsx(Zd,{className:"size-full"})}),u.jsx($i,{color:"background"}),u.jsx(ut,{className:"rounded-t-none",color:"neutral",shape:"icon",disabled:!le,onClick:ie,children:u.jsx(Yd,{className:"size-full"})})]}),u.jsx(ut,{variant:"fill",color:M?"primary":"neutral",shape:"icon",onClick:$,children:M?u.jsx(Qd,{className:"size-full"}):u.jsx(Ad,{className:"size-full"})})]})]}),u.jsx("div",{className:ye(te,"inset-0 flex justify-end overflow-hidden bg-foreground/60 transition-opacity duration-details",X?"opacity-100":"pointer-events-none opacity-0"),onClick:ae,children:u.jsx("div",{className:ye("h-full w-3/5 bg-background transition-transform duration-details",X?"translate-x-0":"translate-x-full"),children:!!B&&u.jsxs(u.Fragment,{children:[u.jsx(sr,{className:"w-full bg-foreground/65",style:S,src:B.src,imgInPlayerWidthRatio:.6}),u.jsxs("div",{className:ye("space-y-1 p-1.5 small:p-2",M&&"large:p-3"),children:[B.title&&u.jsx("span",{className:ye("text-sm small:text-base",M&&"large:text-lg"),children:B.title}),B.text&&u.jsx("p",{className:ye("text-xs small:text-sm",M&&"large:text-base"),children:B.text})]})]})})}),(H||X)&&u.jsx(Oi,{className:ye(te,zn("top-right")),onClick:A})]})},Jd=({className:i=""})=>{const{infiniteCarrousel:m,isFullScreen:c}=It(),{items:b,aspectRatioStyle:S}=$t(),{slidable:L,carrouselItemIndex:_,setCarrouselItemIndex:k,itemIndexCommand:E,setItemIndexCommand:Z,specialCommand:O,isRunningSpecialCommand:P,finishSpecialCommand:V,extendMode:re,extendTransition:U,isZooming:M}=st(),$=v.useRef(null),B=v.useCallback(Q=>{if(!$.current)throw new Error(`[${Q??"sliderOrThrow"}] slider.current is null`);return $.current},[]),X=v.useRef(!1),Y=v.useRef(null),I=v.useRef(null),H=v.useRef(null),W=v.useCallback(()=>{H.current&&cancelAnimationFrame(H.current)},[]),J=v.useCallback(()=>{const Q=B("computeClosestSnapIndex"),C=Array.from(Q.children),F=Q.scrollLeft,w=C.reduce((R,z,p)=>{const x=z.offsetLeft;return Math.abs(x-F)<Math.abs(C[R].offsetLeft-F)?p:R},0);return O==="first_to_last"?Pi(w,b.length):O==="last_to_first"?Pi(w-1,b.length):w},[O,B,b.length]),le=v.useCallback(Q=>{const C=B("setStyleCursor");C.style.cursor=Q},[B]),ie=v.useCallback(Q=>{const C=B("setStyleSnapState");Q==="mandatory"?C.style.scrollSnapType="x mandatory":C.style.scrollSnapType="none"},[B]),A=v.useCallback((Q,C,F)=>{W();const w=B("scrollToIndex"),R=Array.from(w.children),z=w.scrollLeft,p=R[Q].offsetLeft,x=be=>{w.scrollTo({left:be,behavior:"instant"})},se=()=>{x(p),ie("mandatory"),F==null||F()},ue=Math.abs(z-p);if(ue<1||C==="instant"){se();return}const fe=mn(ue/2.5,300,1e3),me=new Date().getTime();ie("none");const ke=()=>{const be=()=>{const Ce=new Date().getTime()-me;if(Ce>=fe){se();return}const Ie=Math.min(Ce/fe,1),Nt=Yi(Ie),Mn=Jr(z,p,Nt);x(Mn),ke()};H.current=requestAnimationFrame(be)};ke()},[W,B,ie]),[ae,te]=v.useState(),oe=!!ae;v.useEffect(()=>{const Q=()=>{clearTimeout(ae);const C=setTimeout(()=>{te(void 0)},Ti);te(C)};return addEventListener("resize",Q),document.addEventListener("fullscreenchange",Q),()=>{removeEventListener("resize",Q),document.removeEventListener("fullscreenchange",Q)}},[ae]),v.useEffect(()=>{const Q=J();Number.isNaN(Q)||Q!==_&&A(_,"instant")},[_,A,J,b,ae,c,re,U]),v.useEffect(()=>{if(!L||P){le("auto");return}const Q=$.current;if(!Q)return;le("grab"),ie("mandatory");const C=R=>{R.button===0&&(R.preventDefault(),R.stopPropagation(),W(),X.current=!0,Y.current=R.pageX-Q.offsetLeft,I.current=Q.scrollLeft,le("grabbing"))},F=R=>{if(!X.current)return;if(Y.current===null)throw new Error("[onMouseMove] startX is null");ie("none");const z=R.pageX-Q.offsetLeft-Y.current;requestAnimationFrame(()=>{if(I.current===null)throw new Error("[onMouseMove] scrollLeft is null");Q.scrollLeft=I.current-z})},w=()=>{if(!X.current)return;X.current=!1,le("grab");const R=J();A(R,"smooth")};return Q.addEventListener("mousedown",C),document.addEventListener("mousemove",F),document.addEventListener("mouseleave",w),document.addEventListener("mouseup",w),document.addEventListener("contextmenu",w),()=>{Q.removeEventListener("mousedown",C),document.removeEventListener("mousemove",F),document.removeEventListener("mouseleave",w),document.removeEventListener("mouseup",w),document.removeEventListener("contextmenu",w)}},[W,J,P,A,le,ie,L]),v.useEffect(()=>{if(U||oe)return;const Q=$.current;if(!Q)return;const C=()=>{const F=J();Number.isNaN(F)||(k(F),F===E&&Z(null))};return Q.addEventListener("scroll",C),()=>{Q.removeEventListener("scroll",C)}},[J,U,P,oe,E,b.length,k,Z]),v.useEffect(()=>{if(E===null)return;const Q=()=>V();switch(O){case"first_to_last":A(b.length,"instant"),A(b.length-1,"smooth",Q);break;case"last_to_first":A(0,"instant"),A(1,"smooth",Q);break;case"instant":A(E,"instant",Q);break;default:A(E,"smooth");break}},[O,V,E,b.length,A]);const he=()=>u.jsx("div",{className:"h-full",style:S});return u.jsxs("div",{className:ye("relative overflow-hidden rounded-carrousel",i),style:S,children:[u.jsxs("div",{ref:$,className:`flex size-full ${L?"overflow-x-auto no-scrollbar *:snap-start *:snap-always":"justify-center"}`,children:[O==="last_to_first"&&u.jsx(he,{}),b.map((Q,C)=>{const F=Q.type==="360"?Q.images[0]:Q.src,w=C===_,R=C===0,z=_===b.length-1,p=C===b.length-1,x=_===0,se=Math.abs(C-_)>1&&!(m&&R&&z)&&!(m&&p&&x),ue=(()=>{if(O==="first_to_last"&&R)return{transform:`translateX(${100*b.length}%)`};if(O==="last_to_first"&&p)return{transform:`translateX(-${100*b.length}%)`}})();return u.jsx("div",{className:"relative h-full bg-foreground/50",style:{...S,...ue},children:u.jsx(Hd,{index:C,item:Q,isShown:w,lazy:se})},`${C}_${F}`)}),O==="first_to_last"&&u.jsx(he,{})]}),L&&!M&&u.jsx("div",{className:`absolute ${zn("top-right")}`,children:u.jsx(Sd,{currentIndex:_,maxIndex:b.length-1})}),u.jsx(Gd,{})]})},ef=()=>{const{permanentGallery:i}=It(),{aspectRatioStyle:m}=$t(),{prevItem:c,nextItem:b,isShowingDetails:S,resetShownDetails:L,extendMode:_,disableExtendMode:k,isZooming:E,resetZoom:Z,fakeFullScreen:O}=st(),P=v.useRef(null),V=v.useRef(null),re=v.useRef(null);return v.useEffect(()=>{if(!_)return;const U=P.current,M=V.current,$=re.current;if(!U||!M||!$)return;let B=!1;const X=H=>[U,M,$].includes(H.target),Y=H=>{B=X(H)},I=H=>{B&&(X(H)&&k(),B=!1)};return U.addEventListener("mousedown",Y),U.addEventListener("mouseup",I),()=>{U.removeEventListener("mousedown",Y),U.removeEventListener("mouseup",I)}},[k,_]),v.useEffect(()=>{const U=M=>{M.key==="Escape"&&(E?Z():S?L():k())};return addEventListener("keydown",U),()=>{removeEventListener("keydown",U)}},[k,S,E,b,c,L,Z]),u.jsxs("div",{ref:P,className:ye("relative",_&&"flex size-full items-center justify-center bg-foreground/75",O&&"fixed inset-0 z-overlay"),children:[u.jsxs("div",{ref:V,className:_?"flex size-full flex-col justify-center gap-y-2 small:gap-y-4":"space-y-2",children:[u.jsx("div",{ref:re,className:ye(_&&"mx-auto flex min-h-0 w-full max-w-[1600px] justify-center"),style:m,children:u.jsx(Jd,{className:ye(_&&"h-full min-w-0")})}),i&&u.jsx(Bi,{className:ye(_&&"my-2 shrink-0 small:my-4")})]}),_&&u.jsx(Oi,{className:"absolute right-2 top-2 small:right-4 small:top-4",onClick:k})]})},tf=({compositionUrl:i})=>{const{emitEvent:m}=It(),{data:c,status:b,isSuccess:S,error:L}=od(i);return v.useEffect(()=>{L?m(si,L):S?m(ii):b==="fetching"&&m(oi)},[m,L,S,b]),L?u.jsx(Hi,{title:"Failed to fetch composition",error:L}):S?u.jsx(id,{composition:c,children:u.jsx(ud,{children:u.jsx(ef,{})})}):u.jsxs("div",{className:"flex aspect-video size-full flex-col items-center justify-center gap-y-4",children:[u.jsx("div",{className:"text-xl",children:"Loading WebPlayer..."}),u.jsx(Ui,{color:"primary"})]})},nf=({compositionUrl:i,flatten:m=!1,infiniteCarrousel:c=!1,permanentGallery:b=!1,imageLoadStrategy:S=qc,preventFullScreen:L=!1,eventPrefix:_=hi,reverse360:k=!1,children:E,...Z})=>{const O=v.useRef(null),[P,V]=v.useState(),[re,U]=v.useState(.5),[M,$]=v.useState(!1),B=v.useCallback((I,H)=>{const W=_+I,J=new CustomEvent(W,{detail:H});document.dispatchEvent(J)},[_]);v.useEffect(()=>{if(M){U(1);return}if(!O.current)return;const I=O.current,H=()=>{const W=window.innerWidth,J=getComputedStyle(I),le=I.getBoundingClientRect().width+parseFloat(J.marginLeft)+parseFloat(J.marginRight);V(le),U(le/W)};return H(),addEventListener("resize",H),()=>{removeEventListener("resize",H)}},[M]),v.useEffect(()=>{if(L)return;const I=O.current;if(!I)throw new Error("Wrapper not found");const H=()=>{const{fullscreenElement:W}=document;$(W===I||(W==null?void 0:W.localName)===Xr)};return document.addEventListener("fullscreenchange",H),()=>{document.removeEventListener("fullscreenchange",H)}},[L]);const X=v.useCallback(async()=>{const I=O.current;if(!I)throw new Error("Wrapper not found");try{return await I.requestFullscreen(),!0}catch{return!1}},[]),Y=v.useCallback(async()=>{try{return await document.exitFullscreen(),!0}catch{return!1}},[]);return u.jsx(sd,{...Z,reverse360:k,imageLoadStrategy:S,flatten:m,infiniteCarrousel:c,preventFullScreen:L,permanentGallery:b,emitEvent:B,playerInViewportWidthRatio:re,isFullScreen:M,requestFullscreen:X,exitFullscreen:Y,children:u.jsxs(vd,{children:[u.jsx("div",{id:"cc-webplayer-wrapper",ref:O,className:"select-none text-foreground",style:{marginInline:"auto",maxWidth:P&&Math.floor(P)},children:u.jsx(tf,{compositionUrl:i})}),E]})})},rf=({name:i,color:m,children:c})=>{const{setIconConfig:b,resetIconConfig:S}=hl();return v.useEffect(()=>{if(!(!c&&!m))return b(i,{Icon:c,color:m}),()=>{S(i)}},[c,m,i,S,b]),null},af=i=>Vi()?u.jsx(rf,{...i}):u.jsx("slot",{}),lf='*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}#cc-webplayer-wrapper{--background: var(--cc-webplayer-background, 0 0% 100%);--foreground: var(--cc-webplayer-foreground, 240 10% 3.9%);--primary: var(--cc-webplayer-primary, 216 100% 52%);--primary-foreground: var( --cc-webplayer-primary-foreground, var(--background) );--neutral: var(--cc-webplayer-neutral, 0 0% 39%);--neutral-foreground: var( --cc-webplayer-neutral-foreground, var(--foreground) );--radius-ui: var(--cc-webplayer-radius-ui, 1rem);--radius-carrousel: var(--cc-webplayer-radius-carrousel, 0);--radius-gallery: var(--cc-webplayer-radius-gallery, 0)}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.\\!container{width:100%!important}.container{width:100%}@media (min-width: 1280px){.\\!container{max-width:1280px!important}.container{max-width:1280px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.\\!pointer-events-none{pointer-events:none!important}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.invisible{visibility:hidden}.fixed{position:fixed}.\\!absolute{position:absolute!important}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-x-1{left:.25rem;right:.25rem}.inset-y-1{top:.25rem;bottom:.25rem}.-bottom-1{bottom:-.25rem}.-left-1{left:-.25rem}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.left-0{left:0}.left-1{left:.25rem}.left-1\\/2{left:50%}.right-1{right:.25rem}.right-2{right:.5rem}.top-0{top:0}.top-1{top:.25rem}.top-1\\/2{top:50%}.top-2{top:.5rem}.-z-10{z-index:-10}.-z-20{z-index:-20}.z-hotspot{z-index:10}.z-overlay{z-index:30}.z-zoomed-image{z-index:20}.col-start-3{grid-column-start:3}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:.5rem;margin-bottom:.5rem}.-mt-px{margin-top:-1px}.inline-block{display:inline-block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-1{width:.25rem;height:.25rem}.size-12{width:3rem;height:3rem}.size-20{width:5rem;height:5rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.size-8{width:2rem;height:2rem}.size-full{width:100%;height:100%}.h-1{height:.25rem}.h-10{height:2.5rem}.h-3\\/4{height:75%}.h-5{height:1.25rem}.h-8{height:2rem}.h-full{height:100%}.h-px{height:1px}.min-h-0{min-height:0px}.w-12{width:3rem}.w-3\\/5{width:60%}.w-8{width:2rem}.w-\\[calc\\(100\\%\\+1024px\\)\\]{width:calc(100% + 1024px)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.max-w-40{max-width:10rem}.max-w-\\[1600px\\]{max-width:1600px}.shrink-0{flex-shrink:0}.origin-top-left{transform-origin:top left}.-translate-x-1\\.5{--tw-translate-x: -.375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-1\\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-1\\.5{--tw-translate-x: .375rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.scale-105{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes hotspot-ping{0%{transform:scale(0)}25%{opacity:1}75%,to{transform:scale(1.5);opacity:0}}.animate-hotspot-ping{animation:hotspot-ping 3s cubic-bezier(0,0,.2,1) infinite}@keyframes rotation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.animate-rotation{animation:rotation 1s linear infinite}.cursor-auto{cursor:auto}.cursor-ew-resize{cursor:ew-resize}.cursor-grab{cursor:grab}.cursor-grabbing{cursor:grabbing}.cursor-help{cursor:help}.cursor-move{cursor:move}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-\\[auto\\,1fr\\,auto\\]{grid-template-columns:auto 1fr auto}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.space-x-0\\.5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.125rem * var(--tw-space-x-reverse));margin-left:calc(.125rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-x-scroll{overflow-x:scroll}.text-pretty{text-wrap:pretty}.rounded-carrousel{border-radius:var(--radius-carrousel)}.rounded-full{border-radius:9999px}.rounded-gallery{border-radius:var(--radius-gallery)}.rounded-ui{border-radius:var(--radius-ui)}.rounded-ui-md{border-radius:calc(var(--radius-ui) + .125rem)}.rounded-ui-sm{border-radius:calc(var(--radius-ui) - .125rem)}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.border{border-width:1px}.border-2{border-width:2px}.border-4{border-width:4px}.border-background{border-color:hsl(var(--background))}.border-primary{border-color:hsl(var(--primary))}.border-b-transparent{border-bottom-color:transparent}.bg-background{background-color:hsl(var(--background))}.bg-background\\/25{background-color:hsl(var(--background) / .25)}.bg-background\\/50{background-color:hsl(var(--background) / .5)}.bg-background\\/60{background-color:hsl(var(--background) / .6)}.bg-foreground\\/25{background-color:hsl(var(--foreground) / .25)}.bg-foreground\\/30{background-color:hsl(var(--foreground) / .3)}.bg-foreground\\/35{background-color:hsl(var(--foreground) / .35)}.bg-foreground\\/40{background-color:hsl(var(--foreground) / .4)}.bg-foreground\\/50{background-color:hsl(var(--foreground) / .5)}.bg-foreground\\/60{background-color:hsl(var(--foreground) / .6)}.bg-foreground\\/65{background-color:hsl(var(--foreground) / .65)}.bg-foreground\\/75{background-color:hsl(var(--foreground) / .75)}.bg-neutral\\/50{background-color:hsl(var(--neutral) / .5)}.bg-primary{background-color:hsl(var(--primary))}.bg-primary-foreground{background-color:hsl(var(--primary-foreground))}.bg-primary\\/50{background-color:hsl(var(--primary) / .5)}.bg-transparent{background-color:transparent}.bg-gradient-to-t{background-image:linear-gradient(to top,var(--tw-gradient-stops))}.from-foreground{--tw-gradient-from: hsl(var(--foreground)) var(--tw-gradient-from-position);--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\\.5{padding:.125rem}.p-1{padding:.25rem}.p-1\\.5{padding:.375rem}.p-2{padding:.5rem}.p-4{padding:1rem}.px-1\\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.pl-6{padding-left:1.5rem}.pr-12{padding-right:3rem}.pr-4{padding-right:1rem}.pt-8{padding-top:2rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-background{color:hsl(var(--background))}.text-background\\/75{color:hsl(var(--background) / .75)}.text-foreground{color:hsl(var(--foreground))}.text-neutral-foreground{color:hsl(var(--neutral-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.opacity-0{opacity:0}.opacity-100{opacity:1}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-details{transition-duration:.35s}.no-scrollbar{scrollbar-width:none;-ms-overflow-style:none}.no-scrollbar::-webkit-scrollbar{display:none}.\\[mask-image\\:linear-gradient\\(to_left\\,transparent_0px\\,black_4px\\,black_calc\\(100\\%-4px\\)\\,transparent_100\\%\\)\\]{-webkit-mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%);mask-image:linear-gradient(to left,transparent 0px,black 4px,black calc(100% - 4px),transparent 100%)}.\\*\\:pointer-events-auto>*{pointer-events:auto}.\\*\\:snap-start>*{scroll-snap-align:start}.\\*\\:snap-always>*{scroll-snap-stop:always}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);top:0;right:0;bottom:0;left:0}.after\\:rounded-gallery:after{content:var(--tw-content);border-radius:var(--radius-gallery)}.after\\:border-2:after{content:var(--tw-content);border-width:2px}.after\\:border-primary:after{content:var(--tw-content);border-color:hsl(var(--primary))}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:opacity-100:after{content:var(--tw-content);opacity:1}.after\\:transition-opacity:after{content:var(--tw-content);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.hover\\:z-hotspot-hover:hover{z-index:11}.hover\\:bg-foreground\\/25:hover{background-color:hsl(var(--foreground) / .25)}.hover\\:bg-primary\\/25:hover{background-color:hsl(var(--primary) / .25)}.hover\\:bg-primary\\/30:hover{background-color:hsl(var(--primary) / .3)}.hover\\:opacity-80:hover{opacity:.8}.hover\\:after\\:opacity-70:hover:after{content:var(--tw-content);opacity:.7}.disabled\\:opacity-60:disabled{opacity:.6}.group:hover .group-hover\\:pointer-events-auto{pointer-events:auto}.group\\/volume:hover .group-hover\\/volume\\:opacity-100{opacity:1}.group\\/volume:hover .group-hover\\/volume\\:opacity-50{opacity:.5}.group:hover .group-hover\\:opacity-100{opacity:1}@media ((orientation: portrait) and (max-width: 767px)) or ((orientation: landscape) and (max-width: 1023px)){.max-small\\:hidden{display:none}}@media ((orientation: portrait) and (min-width: 768px)) or ((orientation: landscape) and (min-width: 1024px)){.small\\:inset-x-2{left:.5rem;right:.5rem}.small\\:inset-y-2{top:.5rem;bottom:.5rem}.small\\:bottom-2{bottom:.5rem}.small\\:left-2{left:.5rem}.small\\:right-2{right:.5rem}.small\\:right-4{right:1rem}.small\\:top-2{top:.5rem}.small\\:top-4{top:1rem}.small\\:my-4{margin-top:1rem;margin-bottom:1rem}.small\\:hidden{display:none}.small\\:h-12{height:3rem}.small\\:max-w-48{max-width:12rem}.small\\:gap-2{gap:.5rem}.small\\:gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.small\\:gap-y-2{row-gap:.5rem}.small\\:gap-y-4{row-gap:1rem}.small\\:space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.small\\:p-2{padding:.5rem}.small\\:px-2{padding-left:.5rem;padding-right:.5rem}.small\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.small\\:pl-8{padding-left:2rem}.small\\:pr-6{padding-right:1.5rem}.small\\:text-base{font-size:1rem;line-height:1.5rem}.small\\:text-sm{font-size:.875rem;line-height:1.25rem}}@media (min-width: 1280px){.large\\:h-20{height:5rem}.large\\:h-3\\/5{height:60%}.large\\:max-w-56{max-width:14rem}.large\\:gap-4{gap:1rem}.large\\:p-2{padding:.5rem}.large\\:p-3{padding:.75rem}.large\\:text-base{font-size:1rem;line-height:1.5rem}.large\\:text-lg{font-size:1.125rem;line-height:1.75rem}}';var Ki={exports:{}},cr={};/**
41
41
  * @license React
42
42
  * react-jsx-runtime.production.min.js
43
43
  *
package/package.json CHANGED
@@ -1,7 +1,17 @@
1
1
  {
2
2
  "name": "@car-cutter/vue-webplayer",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "license": "UNLICENSED",
5
+ "author": {
6
+ "name": "CarCutter",
7
+ "url": "https://www.car-cutter.com/"
8
+ },
9
+ "description": "Use CarCutter WebPlayer in your Vue app",
10
+ "keywords": [
11
+ "car-cutter",
12
+ "webplayer",
13
+ "vue"
14
+ ],
5
15
  "type": "module",
6
16
  "main": "dist/index.umd.cjs",
7
17
  "module": "dist/index.js",
@@ -22,7 +32,7 @@
22
32
  "devDependencies": {
23
33
  "@car-cutter/eslint-config": "*",
24
34
  "@car-cutter/typescript-config": "*",
25
- "@car-cutter/wc-webplayer": "0.4.1",
35
+ "@car-cutter/wc-webplayer": "0.4.2",
26
36
  "@vitejs/plugin-vue": "^5.1.2",
27
37
  "eslint": "^8.57.0",
28
38
  "typescript": "^5.5.3",