1(self.rspackChunkcircle=self.rspackChunkcircle||[]).push([[12090],{486059(t){"u">typeof self&&self,t.exports=function(){var t=[function(t,e,i){"use strict";e.__esModule=!0;var o=function(t,e,i,o,a,r,n,d){for(var s,h,l,c,f,u,g,p,v=1;v<=a;v+=1){var m=v,b=Math.ceil(a/m);(p=(g=Math.floor(o/b))/(u=Math.floor(i/m)))>e?g=u*(p=e):p<t&&(u=g/(p=t));var w=(u=Math.min(r,u))*(g=Math.min(n,g))*a;if(void 0===s||w>=s){if(d&&w===s&&m*b%a>l*h%a)continue;s=w,c=g,f=u,h=m,l=b}}return{maxArea:s,targetCols:h,targetRows:l,targetHeight:c,targetWidth:f,ratio:c/f}},a=function(t,e){var i,a,r=t.maxRatio,n=t.minRatio,d=t.fixedRatio,s=t.containerWidth,h=t.containerHeight,l=t.offsetLeft,c=void 0===l?0:l,f=t.offsetTop,u=void 0===f?0:f,g=t.alignItems,p=void 0===g?"center":g,v=t.maxWidth,m=void 0===v?1/0:v,b=t.maxHeight,w=void 0===b?1/0:b,x=t.scaleLastRow,y=t.evenRows,R=void 0===y||y,M=e.map(function(t){return t.height/t.width}),S=M.length;if(d){var H=M.length>0?M[0]:null;i=o(H,H,s,h,S,m,w,R)}else i=o(n,r,s,h,S,m,w,R);for(var k=0,W=0,O=[],L=[],C=0;C<M.length;C+=1){C%i.targetCols==0&&(a={ratios:[],elements:[],width:0,height:0},O.push(a));var H=M[C],E=e[C];a.elements.push(E),a.ratios.push(H);var _=i.targetWidth,j=i.targetHeight;(d||E.fixedRatio)&&(_=j/H),a.width+=_,a.height=j}for(var T=0,I=0,C=0;C<O.length;C+=1)(a=O[C]).width>s?(a.height=Math.floor(a.height*(s/a.width)),a.width=s):a.width<s&&a.height<w&&(I+=1),T+=a.height;if((void 0===x||x)&&T<h&&I>0){var P=h-T;T=0;for(var C=0;C<O.length;C+=1){if((a=O[C]).width<s){var A=P/I;A/a.height>(s-a.width)/a.width&&(A=Math.floor((s-a.width)/a.width*a.height)),a.width+=Math.floor(A/a.height*a.width),a.height+=A,P-=A,I-=1}T+=a.height}}switch(p){case"start":W=0;break;case"end":W=h-T;break;default:W=(h-T)/2}for(var C=0;C<O.length;C+=1){a=O[C];var N=void 0;switch(p){case"start":N=0;break;case"end":N=s-a.width;break;default:N=(s-a.width)/2}k=N;for(var j=void 0,q=0;q<a.ratios.length;q+=1){var H=a.ratios[q],E=a.elements[q],_=i.targetWidth;j=a.height,d||E.fixedRatio?_=Math.floor(j/H):j/_!=i.targetHeight/i.targetWidth&&(_=Math.floor(i.targetWidth/i.targetHeight*j)),L.push({left:k+c,top:W+u,width:_,height:j}),k+=_}W+=j}return L};e.default=function(t,e){var i=t.maxRatio,r=void 0===i?1.5:i,n=t.minRatio,d=void 0===n?9/16:n,s=t.fixedRatio,h=void 0!==s&&s,l=t.bigPercentage,c=void 0===l?.8:l,f=t.minBigPercentage,u=void 0===f?0:f,g=t.bigFixedRatio,p=void 0!==g&&g,v=t.bigMaxRatio,m=void 0===v?1.5:v,b=t.bigMinRatio,w=void 0===b?9/16:b,x=t.bigFirst,y=void 0===x||x,R=t.containerWidth,M=void 0===R?640:R,S=t.containerHeight,H=void 0===S?480:S,k=t.alignItems,W=t.bigAlignItems,O=t.smallAlignItems,L=void 0===O?"center":O,C=t.maxWidth,E=t.maxHeight,_=t.smallMaxWidth,j=void 0===_?1/0:_,T=t.smallMaxHeight,I=void 0===T?1/0:T,P=t.bigMaxWidth,A=void 0===P?1/0:P,N=t.bigMaxHeight,q=void 0===N?1/0:N,F=t.scaleLastRow,V=void 0===F||F,z=t.bigScaleLastRow,B=t.evenRows,K=void 0===B||B,Q=H/M,U=0,X=0,Y=0,D=0,G=[],J=e.filter(function(t,e){return!!t.big&&(G.push(e),!0)}),Z=e.filter(function(t){return!t.big}),tt=[],te=[],ti={};if(J.length>0&&Z.length>0){var to,ta=void 0,tr=void 0,tn=!0===y;if(Q>(to=J[0]).height/to.width){if(ta=M,tr=Math.floor(H*c),u>0){var td=void 0;if(p){var ts=J[0].height/J[0].width;td=o(ts,ts,ta,tr,J.length,A,q,K)}else td=o(w,m,ta,tr,J.length,A,q,K);tr=Math.max(H*u,Math.min(tr,td.targetHeight*td.targetRows));var th=a({containerWidth:M,containerHeight:H-tr,offsetLeft:0,offsetTop:0,fixedRatio:h,minRatio:d,maxRatio:r,alignItems:L,maxWidth:j,maxHeight:I,scaleLastRow:V,evenRows:K},Z),tl=0,tc=void 0;th.forEach(function(t){tc!==t.top&&(tc=t.top,tl+=t.height)}),tr=Math.max(tr,H-tl)}Y=H-(X=tr),"column"===y?tn=!1:"row"===y&&(tn=!0)}else{if(tr=H,ta=Math.floor(M*c),u>0){var td=void 0;if(p){var ts=J[0].height/J[0].width;td=o(ts,ts,ta,tr,J.length,A,q,K)}else td=o(w,m,ta,tr,J.length,A,q,K);ta=Math.max(M*u,Math.min(ta,td.targetWidth*td.targetCols));var tf=a({containerWidth:M-ta,containerHeight:H,offsetLeft:0,offsetTop:0,fixedRatio:h,minRatio:d,maxRatio:r,alignItems:L,maxWidth:j,maxHeight:I,scaleLastRow:V,evenRows:K},Z),tu=0,tg=0,tp=0;tf.forEach(function(t){t.top!==tp&&(tg=0,tp=t.top),tg+=t.width,tu=Math.max(tu,tg)}),ta=Math.max(ta,M-tu)}D=M-(U=ta),"column"===y?tn=!0:"row"===y&&(tn=!1)}tn?(ti.big={top:0,left:0,width:ta,height:tr},ti.small={top:X,left:U,width:M-U,height:H-X}):(ti.big={left:D,top:Y,width:ta,height:tr},ti.small={top:0,left:0,width:M-U,height:H-X})}else J.length>0&&0===Z.length?ti.big={top:0,left:0,width:M,height:H}:ti.small={top:X,left:U,width:M-U,height:H-X};ti.big&&(tt=a({containerWidth:ti.big.width,containerHeight:ti.big.height,offsetLeft:ti.big.left,offsetTop:ti.big.top,fixedRatio:p,minRatio:w,maxRatio:m,alignItems:void 0===W?"center":W,maxWidth:A,maxHeight:q,scaleLastRow:void 0===z||z,evenRows:K},J)),ti.small&&(te=a({containerWidth:ti.small.width,containerHeight:ti.small.height,offsetLeft:ti.small.left,offsetTop:ti.small.top,fixedRatio:h,minRatio:d,maxRatio:r,alignItems:ti.big?L:void 0===k?"center":k,maxWidth:ti.big?j:void 0===C?1/0:C,maxHeight:ti.big?I:void 0===E?1/0:E,scaleLastRow:V,evenRows:K},Z));var tv=[],tm=0,tb=0;return e.forEach(function(t,e){G.indexOf(e)>-1?(tv[e]=tt[tm],tm+=1):(tv[e]=te[tb],tb+=1)}),{boxes:tv,areas:ti}}}
1,function(t,e,i){"use strict";e.__esModule=!0;var o=i(0),a=i(2);t.exports=function(t,e){var i=e&&e.window||("u"<typeof window?void 0:window);return t="string"==typeof t?i.document.querySelector(t):t,void 0===(i&&i.HTMLElement)||t instanceof i.HTMLElement||e?e||(e={}):e=t,{layout:a.default.bind(this,t,e),getLayout:o.default.bind(this,e)}}},function(t,e,i){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,o=arguments.length;i<o;i++)for(var a in e=arguments[i])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t}).apply(this,arguments)};e.__esModule=!0;var a=i(0);e.default=function(t,e){function i(t,o,a){if("string"==typeof o&&a)return t.style[o]=a,NaN;if("object"==typeof o)return Object.keys(o).forEach(function(e){i(t,e,o[e])}),NaN;var r=(e&&e.window||window).getComputedStyle(t).getPropertyValue(o);return""===r&&(r=t.style[o]),r}var r=function(t,e,o,a,r,n,d){var s=this,h={left:"".concat(e,"px"),top:"".concat(o,"px"),width:"".concat(a,"px"),height:"".concat(r,"px")},l=function(){var e=t.querySelector(".OT_root");if(e){var i=e.style.width;e.style.width="".concat(a,"px"),e.style.width=i||""}};if(n&&"u">typeof $){$(t).stop();var c="boolean"==typeof n?{duration:200,easing:"swing"}:n;$(t).animate(h,c.duration,c.easing,function(){l(),c.complete&&c.complete.call(s),d&&d(t,{left:e,top:o,width:a,height:r})})}else i(t,h),t.classList.contains("ot-layout")||t.classList.add("ot-layout"),d&&d(t,{left:e,top:o,width:a,height:r});l()},n=function(t){if(t){if(t.videoHeight&&t.videoWidth)return{height:t.videoHeight,width:t.videoWidth};var e=t.querySelector("video");if(e&&e.videoHeight&&e.videoWidth)return{height:e.videoHeight,width:e.videoWidth}}return{height:480,width:640}},d=function(t,e){var o=i(t,e);return o?parseInt(o,10):0},s=e.animate,h=void 0!==s&&s,l=e.bigClass,c=void 0===l?"OT_big":l,f=e.ignoreClass,u=e.fixedRatioClass,g=void 0===u?"OT_fixedRatio":u;if("none"!==i(t,"display")){var p,v,m=t.getAttribute("id");m||(m="OT_".concat((1e8*Math.random()).toFixed(0)),t.setAttribute("id",m)),e.containerHeight=((p=t.offsetHeight>0?"".concat(t.offsetHeight,"px"):i(t,"height"))?parseInt(p,10):0)-d(t,"border-top")-d(t,"border-bottom"),e.containerWidth=((v=t.offsetWidth>0?"".concat(t.offsetWidth,"px"):i(t,"width"))?parseInt(v,10):0)-d(t,"border-left")-d(t,"border-right");var b=Array.prototype.filter.call(t.querySelectorAll("#".concat(m,">*:not(.").concat(void 0===f?"OT_ignore":f,")")),function(t){return"none"!==i(t,"display")}),w=b.map(function(t){return o(o({},n(t)),{big:t.classList.contains(c),fixedRatio:t.classList.contains(g)})});(0,a.default)(e,w).boxes.forEach(function(t,o){var a=b[o];i(a,"position","absolute");var n=t.width-d(a,"margin-left")-d(a,"margin-right")-("border-box"!==i(a,"box-sizing")?d(a,"padding-left")+d(a,"padding-right")+d(a,"border-left")+d(a,"border-right"):0),s=t.height-d(a,"margin-top")-d(a,"margin-bottom")-("border-box"!==i(a,"box-sizing")?d(a,"padding-top")+d(a,"padding-bottom")+d(a,"border-top")+d(a,"border-bottom"):0);r(a,t.left,t.top,n,s,h,e.onLayout)})}}}],e={};function i(o){if(e[o])return e[o].exports;var a=e[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=t,i.c=e,i.d=function(t,e,o){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},i.r=function(t){"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e||4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(i.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var a in t)i.d(o,a,(function(e){return t[e]}).bind(null,a));return o},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=1)}()},846055(t,e,i){"use strict";var o,a=i(933578),r=i(997200),n=i(40712),d=i(705288),s=i(555e3);!function(){if(!o){o=1;var t=parseInt,e="object"==typeof s.ah&&s.ah&&s.ah.Object===Object&&s.ah,i="object"==typeof self&&self&&self.Object===Object&&self,a=e||i||Function("return this")(),r=Object.prototype.toString}}();let h=a.forwardRef(function({trackRef:t,onSubscriptionStatusChanged:e,volume:i,...o},r){let h=(0,s.i)(t),l=a.useRef(null);a.useImperativeHandle(r,()=>l.current);let{elementProps:c,isSubscribed:f,track:u,publication:g}=function(t,e={}
1){let[i,o]=a.useState((0,s.X)(t)),[r,d]=a.useState(i?.isMuted),[h,l]=a.useState(i?.isSubscribed),[c,f]=a.useState(i?.track),[u,g]=a.useState("landscape"),p=a.useRef(),{className:v,trackObserver:m}=a.useMemo(()=>(0,s.Y)(t),[t.participant.sid??t.participant.identity,t.source,(0,s.a1)(t)&&t.publication.trackSid]);return a.useEffect(()=>{let t=m.subscribe(t=>{s.l.debug("update track",t),o(t),d(t?.isMuted),l(t?.isSubscribed),f(t?.track)});return()=>t?.unsubscribe()},[m]),a.useEffect(()=>(c&&(p.current&&c.detach(p.current),e.element?.current&&!(t.participant.isLocal&&c?.kind==="audio")&&c.attach(e.element.current)),p.current=e.element?.current,()=>{p.current&&c?.detach(p.current)}),[c,e.element]),a.useEffect(()=>{"number"==typeof i?.dimensions?.width&&"number"==typeof i?.dimensions?.height&&g(i.dimensions.width>i.dimensions.height?"landscape":"portrait")},[i]),{publication:i,isMuted:r,isSubscribed:h,track:c,elementProps:(0,n.a)(e.props,{className:v,"data-lk-local-participant":t.participant.isLocal,"data-lk-source":i?.source,...i?.kind==="video"&&{"data-lk-orientation":u}})}}(h,{element:l,props:o});return a.useEffect(()=>{e?.(!!f)},[f,e]),a.useEffect(()=>{void 0===u||void 0===i||(u instanceof d.EQ?u.setVolume(i):s.l.warn("Volume can only be set on remote audio tracks."))},[i,u]),a.useEffect(()=>{void 0===g||void 0===o.muted||(g instanceof d.u6?g.setEnabled(!o.muted):s.l.warn("Can only call setEnabled on remote track publications."))},[o.muted,g,u]),a.createElement("audio",{ref:l,...c})});function l({room:t,volume:e,muted:i}){let o=(0,r.t)([d.CC.Source.Microphone,d.CC.Source.ScreenShareAudio,d.CC.Source.Unknown],{updateOnlyOn:[],onlySubscribed:!0,room:t}).filter(t=>!t.participant.isLocal&&t.publication.kind===d.CC.Kind.Audio);return a.createElement("div",{style:{display:"none"}},o.map(t=>a.createElement(h,{key:(0,s.p)(t),trackRef:t,volume:e,muted:i})))}i.d(e,{R:()=>l})}}]); 2//# sourceMappingURL=/packs/js/12090-1884760580dc5efe.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.