@fraku/video 0.1.37 → 0.1.39

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.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const se=require("react"),Op=require("react-dom");function VF(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=VF(se);function BF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mg={exports:{}},Uf={};/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ae=require("react"),Op=require("react-dom");function VF(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const S=VF(ae);function BF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Mg={exports:{}},Uf={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var UR;function HF(){if(UR)return Uf;UR=1;var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var d,p={},m=null,y=null;c!==void 0&&(m=""+c),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(y=l.ref);for(d in l)n.call(l,d)&&!i.hasOwnProperty(d)&&(p[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)p[d]===void 0&&(p[d]=l[d]);return{$$typeof:t,type:s,key:m,ref:y,props:p,_owner:o.current}}return Uf.Fragment=r,Uf.jsx=a,Uf.jsxs=a,Uf}var $f={};/**
9
+ */var UR;function HF(){if(UR)return Uf;UR=1;var e=ae,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var d,p={},m=null,y=null;c!==void 0&&(m=""+c),l.key!==void 0&&(m=""+l.key),l.ref!==void 0&&(y=l.ref);for(d in l)n.call(l,d)&&!i.hasOwnProperty(d)&&(p[d]=l[d]);if(s&&s.defaultProps)for(d in l=s.defaultProps,l)p[d]===void 0&&(p[d]=l[d]);return{$$typeof:t,type:s,key:m,ref:y,props:p,_owner:o.current}}return Uf.Fragment=r,Uf.jsx=a,Uf.jsxs=a,Uf}var $f={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var $R;function UF(){return $R||($R=1,process.env.NODE_ENV!=="production"&&(function(){var e=se,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b=Symbol.iterator,v="@@iterator";function C(Re){if(Re===null||typeof Re!="object")return null;var Xe=b&&Re[b]||Re[v];return typeof Xe=="function"?Xe:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(Re){{for(var Xe=arguments.length,Ce=new Array(Xe>1?Xe-1:0),Te=1;Te<Xe;Te++)Ce[Te-1]=arguments[Te];x("error",Re,Ce)}}function x(Re,Xe,Ce){{var Te=A.ReactDebugCurrentFrame,et=Te.getStackAddendum();et!==""&&(Xe+="%s",Ce=Ce.concat([et]));var ht=Ce.map(function(Ft){return String(Ft)});ht.unshift("Warning: "+Xe),Function.prototype.apply.call(console[Re],console,ht)}}var k=!1,D=!1,F=!1,$=!1,U=!1,G;G=Symbol.for("react.module.reference");function Y(Re){return!!(typeof Re=="string"||typeof Re=="function"||Re===n||Re===i||U||Re===o||Re===c||Re===d||$||Re===y||k||D||F||typeof Re=="object"&&Re!==null&&(Re.$$typeof===m||Re.$$typeof===p||Re.$$typeof===a||Re.$$typeof===s||Re.$$typeof===l||Re.$$typeof===G||Re.getModuleId!==void 0))}function Q(Re,Xe,Ce){var Te=Re.displayName;if(Te)return Te;var et=Xe.displayName||Xe.name||"";return et!==""?Ce+"("+et+")":Ce}function me(Re){return Re.displayName||"Context"}function ne(Re){if(Re==null)return null;if(typeof Re.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Re=="function")return Re.displayName||Re.name||null;if(typeof Re=="string")return Re;switch(Re){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof Re=="object")switch(Re.$$typeof){case s:var Xe=Re;return me(Xe)+".Consumer";case a:var Ce=Re;return me(Ce._context)+".Provider";case l:return Q(Re,Re.render,"ForwardRef");case p:var Te=Re.displayName||null;return Te!==null?Te:ne(Re.type)||"Memo";case m:{var et=Re,ht=et._payload,Ft=et._init;try{return ne(Ft(ht))}catch{return null}}}return null}var Ee=Object.assign,ce=0,_e,Ne,oe,Se,re,we,Ae;function Pe(){}Pe.__reactDisabledLog=!0;function Oe(){{if(ce===0){_e=console.log,Ne=console.info,oe=console.warn,Se=console.error,re=console.group,we=console.groupCollapsed,Ae=console.groupEnd;var Re={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:Re,log:Re,warn:Re,error:Re,group:Re,groupCollapsed:Re,groupEnd:Re})}ce++}}function Ke(){{if(ce--,ce===0){var Re={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ee({},Re,{value:_e}),info:Ee({},Re,{value:Ne}),warn:Ee({},Re,{value:oe}),error:Ee({},Re,{value:Se}),group:Ee({},Re,{value:re}),groupCollapsed:Ee({},Re,{value:we}),groupEnd:Ee({},Re,{value:Ae})})}ce<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var St=A.ReactCurrentDispatcher,st;function yt(Re,Xe,Ce){{if(st===void 0)try{throw Error()}catch(et){var Te=et.stack.trim().match(/\n( *(at )?)/);st=Te&&Te[1]||""}return`
17
+ */var $R;function UF(){return $R||($R=1,process.env.NODE_ENV!=="production"&&(function(){var e=ae,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen"),b=Symbol.iterator,v="@@iterator";function C(Re){if(Re===null||typeof Re!="object")return null;var Xe=b&&Re[b]||Re[v];return typeof Xe=="function"?Xe:null}var A=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(Re){{for(var Xe=arguments.length,Ce=new Array(Xe>1?Xe-1:0),Te=1;Te<Xe;Te++)Ce[Te-1]=arguments[Te];x("error",Re,Ce)}}function x(Re,Xe,Ce){{var Te=A.ReactDebugCurrentFrame,et=Te.getStackAddendum();et!==""&&(Xe+="%s",Ce=Ce.concat([et]));var ht=Ce.map(function(Ft){return String(Ft)});ht.unshift("Warning: "+Xe),Function.prototype.apply.call(console[Re],console,ht)}}var k=!1,D=!1,F=!1,$=!1,U=!1,G;G=Symbol.for("react.module.reference");function Y(Re){return!!(typeof Re=="string"||typeof Re=="function"||Re===n||Re===i||U||Re===o||Re===c||Re===d||$||Re===y||k||D||F||typeof Re=="object"&&Re!==null&&(Re.$$typeof===m||Re.$$typeof===p||Re.$$typeof===a||Re.$$typeof===s||Re.$$typeof===l||Re.$$typeof===G||Re.getModuleId!==void 0))}function Q(Re,Xe,Ce){var Te=Re.displayName;if(Te)return Te;var et=Xe.displayName||Xe.name||"";return et!==""?Ce+"("+et+")":Ce}function me(Re){return Re.displayName||"Context"}function ne(Re){if(Re==null)return null;if(typeof Re.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof Re=="function")return Re.displayName||Re.name||null;if(typeof Re=="string")return Re;switch(Re){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case d:return"SuspenseList"}if(typeof Re=="object")switch(Re.$$typeof){case s:var Xe=Re;return me(Xe)+".Consumer";case a:var Ce=Re;return me(Ce._context)+".Provider";case l:return Q(Re,Re.render,"ForwardRef");case p:var Te=Re.displayName||null;return Te!==null?Te:ne(Re.type)||"Memo";case m:{var et=Re,ht=et._payload,Ft=et._init;try{return ne(Ft(ht))}catch{return null}}}return null}var Ee=Object.assign,ce=0,_e,Ne,oe,Se,re,we,Ae;function Pe(){}Pe.__reactDisabledLog=!0;function Oe(){{if(ce===0){_e=console.log,Ne=console.info,oe=console.warn,Se=console.error,re=console.group,we=console.groupCollapsed,Ae=console.groupEnd;var Re={configurable:!0,enumerable:!0,value:Pe,writable:!0};Object.defineProperties(console,{info:Re,log:Re,warn:Re,error:Re,group:Re,groupCollapsed:Re,groupEnd:Re})}ce++}}function Ke(){{if(ce--,ce===0){var Re={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ee({},Re,{value:_e}),info:Ee({},Re,{value:Ne}),warn:Ee({},Re,{value:oe}),error:Ee({},Re,{value:Se}),group:Ee({},Re,{value:re}),groupCollapsed:Ee({},Re,{value:we}),groupEnd:Ee({},Re,{value:Ae})})}ce<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var St=A.ReactCurrentDispatcher,st;function yt(Re,Xe,Ce){{if(st===void 0)try{throw Error()}catch(et){var Te=et.stack.trim().match(/\n( *(at )?)/);st=Te&&Te[1]||""}return`
18
18
  `+st+Re}}var $e=!1,ot;{var it=typeof WeakMap=="function"?WeakMap:Map;ot=new it}function Ie(Re,Xe){if(!Re||$e)return"";{var Ce=ot.get(Re);if(Ce!==void 0)return Ce}var Te;$e=!0;var et=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ht;ht=St.current,St.current=null,Oe();try{if(Xe){var Ft=function(){throw Error()};if(Object.defineProperty(Ft.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ft,[])}catch(sr){Te=sr}Reflect.construct(Re,[],Ft)}else{try{Ft.call()}catch(sr){Te=sr}Re.call(Ft.prototype)}}else{try{throw Error()}catch(sr){Te=sr}Re()}}catch(sr){if(sr&&Te&&typeof sr.stack=="string"){for(var tr=sr.stack.split(`
19
19
  `),Lt=Te.stack.split(`
20
20
  `),Je=tr.length-1,vt=Lt.length-1;Je>=1&&vt>=0&&tr[Je]!==Lt[vt];)vt--;for(;Je>=1&&vt>=0;Je--,vt--)if(tr[Je]!==Lt[vt]){if(Je!==1||vt!==1)do if(Je--,vt--,vt<0||tr[Je]!==Lt[vt]){var jt=`
@@ -27,7 +27,7 @@ Check the top-level render call using <`+Ce+">.")}return Xe}}function zt(Re,Xe){
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,br,Kt,Zr,Kt),ur[Kt+br]=!0}}return Re===n?Ht(vt):Et(vt),vt}}function pn(Re,Xe,Ce){return Dr(Re,Xe,Ce,!0)}function Ln(Re,Xe,Ce){return Dr(Re,Xe,Ce,!1)}var Qn=Ln,gn=pn;$f.Fragment=n,$f.jsx=Qn,$f.jsxs=gn})()),$f}var WR;function $F(){return WR||(WR=1,process.env.NODE_ENV==="production"?Mg.exports=HF():Mg.exports=UF()),Mg.exports}var ae=$F();function WF(e){if(Array.isArray(e))return e}function zF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function uE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function V3(e,t){if(e){if(typeof e=="string")return uE(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uE(e,t):void 0}}function KF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
30
+ <%s key={someKey} {...props} />`,br,Kt,Zr,Kt),ur[Kt+br]=!0}}return Re===n?Ht(vt):Et(vt),vt}}function pn(Re,Xe,Ce){return Dr(Re,Xe,Ce,!0)}function Ln(Re,Xe,Ce){return Dr(Re,Xe,Ce,!1)}var Qn=Ln,gn=pn;$f.Fragment=n,$f.jsx=Qn,$f.jsxs=gn})()),$f}var WR;function $F(){return WR||(WR=1,process.env.NODE_ENV==="production"?Mg.exports=HF():Mg.exports=UF()),Mg.exports}var se=$F();function WF(e){if(Array.isArray(e))return e}function zF(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function uE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function V3(e,t){if(e){if(typeof e=="string")return uE(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?uE(e,t):void 0}}function KF(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
31
31
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yv(e,t){return WF(e)||zF(e,t)||V3(e,t)||KF()}function So(e){"@babel/helpers - typeof";return So=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},So(e)}function dt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(t){for(var n=[],o=0;o<t.length;o++){var i=t[o];if(i){var a=So(i);if(a==="string"||a==="number")n.push(i);else if(a==="object"){var s=Array.isArray(i)?i:Object.entries(i).map(function(l){var c=Yv(l,2),d=c[0],p=c[1];return p?d:null});n=s.length?n.concat(s.filter(function(l){return!!l})):n}}}return n.join(" ").trim()}}function GF(e){if(Array.isArray(e))return uE(e)}function qF(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JF(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
32
32
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wy(e){return GF(e)||qF(e)||V3(e)||JF()}function VI(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YF(e,t){if(So(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(So(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function B3(e){var t=YF(e,"string");return So(t)=="symbol"?t:t+""}function QF(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,B3(n.key),n)}}function BI(e,t,r){return r&&QF(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function h0(e,t,r){return(t=B3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fS(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=XF(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
33
33
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||r.return==null||r.return()}finally{if(s)throw i}}}}function XF(e,t){if(e){if(typeof e=="string")return zR(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?zR(e,t):void 0}}function zR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var le=(function(){function e(){VI(this,e)}return BI(e,null,[{key:"innerWidth",value:function(r){if(r){var n=r.offsetWidth,o=getComputedStyle(r);return n=n+(parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)),n}return 0}},{key:"width",value:function(r){if(r){var n=r.offsetWidth,o=getComputedStyle(r);return n=n-(parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)),n}return 0}},{key:"getBrowserLanguage",value:function(){return navigator.userLanguage||navigator.languages&&navigator.languages.length&&navigator.languages[0]||navigator.language||navigator.browserLanguage||navigator.systemLanguage||"en"}},{key:"getWindowScrollTop",value:function(){var r=document.documentElement;return(window.pageYOffset||r.scrollTop)-(r.clientTop||0)}},{key:"getWindowScrollLeft",value:function(){var r=document.documentElement;return(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0)}},{key:"getOuterWidth",value:function(r,n){if(r){var o=r.getBoundingClientRect().width||r.offsetWidth;if(n){var i=getComputedStyle(r);o=o+(parseFloat(i.marginLeft)+parseFloat(i.marginRight))}return o}return 0}},{key:"getOuterHeight",value:function(r,n){if(r){var o=r.getBoundingClientRect().height||r.offsetHeight;if(n){var i=getComputedStyle(r);o=o+(parseFloat(i.marginTop)+parseFloat(i.marginBottom))}return o}return 0}},{key:"getClientHeight",value:function(r,n){if(r){var o=r.clientHeight;if(n){var i=getComputedStyle(r);o=o+(parseFloat(i.marginTop)+parseFloat(i.marginBottom))}return o}return 0}},{key:"getClientWidth",value:function(r,n){if(r){var o=r.clientWidth;if(n){var i=getComputedStyle(r);o=o+(parseFloat(i.marginLeft)+parseFloat(i.marginRight))}return o}return 0}},{key:"getViewport",value:function(){var r=window,n=document,o=n.documentElement,i=n.getElementsByTagName("body")[0],a=r.innerWidth||o.clientWidth||i.clientWidth,s=r.innerHeight||o.clientHeight||i.clientHeight;return{width:a,height:s}}},{key:"getOffset",value:function(r){if(r){var n=r.getBoundingClientRect();return{top:n.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:n.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}return{top:"auto",left:"auto"}}},{key:"index",value:function(r){if(r)for(var n=r.parentNode.childNodes,o=0,i=0;i<n.length;i++){if(n[i]===r)return o;n[i].nodeType===1&&o++}return-1}},{key:"addMultipleClasses",value:function(r,n){if(r&&n)if(r.classList)for(var o=n.split(" "),i=0;i<o.length;i++)r.classList.add(o[i]);else for(var a=n.split(" "),s=0;s<a.length;s++)r.className=r.className+(" "+a[s])}},{key:"removeMultipleClasses",value:function(r,n){if(r&&n)if(r.classList)for(var o=n.split(" "),i=0;i<o.length;i++)r.classList.remove(o[i]);else for(var a=n.split(" "),s=0;s<a.length;s++)r.className=r.className.replace(new RegExp("(^|\\b)"+a[s].split(" ").join("|")+"(\\b|$)","gi")," ")}},{key:"addClass",value:function(r,n){r&&n&&(r.classList?r.classList.add(n):r.className=r.className+(" "+n))}},{key:"removeClass",value:function(r,n){r&&n&&(r.classList?r.classList.remove(n):r.className=r.className.replace(new RegExp("(^|\\b)"+n.split(" ").join("|")+"(\\b|$)","gi")," "))}},{key:"hasClass",value:function(r,n){return r?r.classList?r.classList.contains(n):new RegExp("(^| )"+n+"( |$)","gi").test(r.className):!1}},{key:"addStyles",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r&&Object.entries(n).forEach(function(o){var i=Yv(o,2),a=i[0],s=i[1];return r.style[a]=s})}},{key:"find",value:function(r,n){return r?Array.from(r.querySelectorAll(n)):[]}},{key:"findSingle",value:function(r,n){return r?r.querySelector(n):null}},{key:"setAttributes",value:function(r){var n=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(r){var i=function(s,l){var c,d,p=r!=null&&(c=r.$attrs)!==null&&c!==void 0&&c[s]?[r==null||(d=r.$attrs)===null||d===void 0?void 0:d[s]]:[];return[l].flat().reduce(function(m,y){if(y!=null){var b=So(y);if(b==="string"||b==="number")m.push(y);else if(b==="object"){var v=Array.isArray(y)?i(s,y):Object.entries(y).map(function(C){var A=Yv(C,2),R=A[0],x=A[1];return s==="style"&&(x||x===0)?"".concat(R.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),":").concat(x):x?R:void 0});m=v.length?m.concat(v.filter(function(C){return!!C})):m}}return m},p)};Object.entries(o).forEach(function(a){var s=Yv(a,2),l=s[0],c=s[1];if(c!=null){var d=l.match(/^on(.+)/);d?r.addEventListener(d[1].toLowerCase(),c):l==="p-bind"?n.setAttributes(r,c):(c=l==="class"?Wy(new Set(i("class",c))).join(" ").trim():l==="style"?i("style",c).join(";").trim():c,(r.$attrs=r.$attrs||{})&&(r.$attrs[l]=c),r.setAttribute(l,c))}})}}},{key:"getAttribute",value:function(r,n){if(r){var o=r.getAttribute(n);return isNaN(o)?o==="true"||o==="false"?o==="true":o:+o}}},{key:"isAttributeEquals",value:function(r,n,o){return r?this.getAttribute(r,n)===o:!1}},{key:"isAttributeNotEquals",value:function(r,n,o){return!this.isAttributeEquals(r,n,o)}},{key:"getHeight",value:function(r){if(r){var n=r.offsetHeight,o=getComputedStyle(r);return n=n-(parseFloat(o.paddingTop)+parseFloat(o.paddingBottom)+parseFloat(o.borderTopWidth)+parseFloat(o.borderBottomWidth)),n}return 0}},{key:"getWidth",value:function(r){if(r){var n=r.offsetWidth,o=getComputedStyle(r);return n=n-(parseFloat(o.paddingLeft)+parseFloat(o.paddingRight)+parseFloat(o.borderLeftWidth)+parseFloat(o.borderRightWidth)),n}return 0}},{key:"alignOverlay",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;r&&n&&(o==="self"?this.relativePosition(r,n):(i&&(r.style.minWidth=e.getOuterWidth(n)+"px"),this.absolutePosition(r,n)))}},{key:"absolutePosition",value:function(r,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left";if(r&&n){var i=r.offsetParent?{width:r.offsetWidth,height:r.offsetHeight}:this.getHiddenElementDimensions(r),a=i.height,s=i.width,l=n.offsetHeight,c=n.offsetWidth,d=n.getBoundingClientRect(),p=this.getWindowScrollTop(),m=this.getWindowScrollLeft(),y=this.getViewport(),b,v;d.top+l+a>y.height?(b=d.top+p-a,b<0&&(b=p),r.style.transformOrigin="bottom"):(b=l+d.top+p,r.style.transformOrigin="top");var C=d.left;o==="left"?C+s>y.width?v=Math.max(0,C+m+c-s):v=C+m:C+c-s<0?v=m:v=C+c-s+m,r.style.top=b+"px",r.style.left=v+"px"}}},{key:"relativePosition",value:function(r,n){if(r&&n){var o=r.offsetParent?{width:r.offsetWidth,height:r.offsetHeight}:this.getHiddenElementDimensions(r),i=n.offsetHeight,a=n.getBoundingClientRect(),s=this.getViewport(),l,c;a.top+i+o.height>s.height?(l=-1*o.height,a.top+l<0&&(l=-1*a.top),r.style.transformOrigin="bottom"):(l=i,r.style.transformOrigin="top"),o.width>s.width?c=a.left*-1:a.left+o.width>s.width?c=(a.left+o.width-s.width)*-1:c=0,r.style.top=l+"px",r.style.left=c+"px"}}},{key:"flipfitCollision",value:function(r,n){var o=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"left top",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"left bottom",s=arguments.length>4?arguments[4]:void 0;if(r&&n){var l=n.getBoundingClientRect(),c=this.getViewport(),d=i.split(" "),p=a.split(" "),m=function(A,R){return R?+A.substring(A.search(/(\+|-)/g))||0:A.substring(0,A.search(/(\+|-)/g))||A},y={my:{x:m(d[0]),y:m(d[1]||d[0]),offsetX:m(d[0],!0),offsetY:m(d[1]||d[0],!0)},at:{x:m(p[0]),y:m(p[1]||p[0]),offsetX:m(p[0],!0),offsetY:m(p[1]||p[0],!0)}},b={left:function(){var A=y.my.offsetX+y.at.offsetX;return A+l.left+(y.my.x==="left"?0:-1*(y.my.x==="center"?o.getOuterWidth(r)/2:o.getOuterWidth(r)))},top:function(){var A=y.my.offsetY+y.at.offsetY;return A+l.top+(y.my.y==="top"?0:-1*(y.my.y==="center"?o.getOuterHeight(r)/2:o.getOuterHeight(r)))}},v={count:{x:0,y:0},left:function(){var A=b.left(),R=e.getWindowScrollLeft();r.style.left=A+R+"px",this.count.x===2?(r.style.left=R+"px",this.count.x=0):A<0&&(this.count.x++,y.my.x="left",y.at.x="right",y.my.offsetX*=-1,y.at.offsetX*=-1,this.right())},right:function(){var A=b.left()+e.getOuterWidth(n),R=e.getWindowScrollLeft();r.style.left=A+R+"px",this.count.x===2?(r.style.left=c.width-e.getOuterWidth(r)+R+"px",this.count.x=0):A+e.getOuterWidth(r)>c.width&&(this.count.x++,y.my.x="right",y.at.x="left",y.my.offsetX*=-1,y.at.offsetX*=-1,this.left())},top:function(){var A=b.top(),R=e.getWindowScrollTop();r.style.top=A+R+"px",this.count.y===2?(r.style.left=R+"px",this.count.y=0):A<0&&(this.count.y++,y.my.y="top",y.at.y="bottom",y.my.offsetY*=-1,y.at.offsetY*=-1,this.bottom())},bottom:function(){var A=b.top()+e.getOuterHeight(n),R=e.getWindowScrollTop();r.style.top=A+R+"px",this.count.y===2?(r.style.left=c.height-e.getOuterHeight(r)+R+"px",this.count.y=0):A+e.getOuterHeight(n)>c.height&&(this.count.y++,y.my.y="bottom",y.at.y="top",y.my.offsetY*=-1,y.at.offsetY*=-1,this.top())},center:function(A){if(A==="y"){var R=b.top()+e.getOuterHeight(n)/2;r.style.top=R+e.getWindowScrollTop()+"px",R<0?this.bottom():R+e.getOuterHeight(n)>c.height&&this.top()}else{var x=b.left()+e.getOuterWidth(n)/2;r.style.left=x+e.getWindowScrollLeft()+"px",x<0?this.left():x+e.getOuterWidth(r)>c.width&&this.right()}}};v[y.at.x]("x"),v[y.at.y]("y"),this.isFunction(s)&&s(y)}}},{key:"findCollisionPosition",value:function(r){if(r){var n=r==="top"||r==="bottom",o=r==="left"?"right":"left",i=r==="top"?"bottom":"top";return n?{axis:"y",my:"center ".concat(i),at:"center ".concat(r)}:{axis:"x",my:"".concat(o," center"),at:"".concat(r," center")}}}},{key:"getParents",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return r.parentNode===null?n:this.getParents(r.parentNode,n.concat([r.parentNode]))}},{key:"getScrollableParents",value:function(r){var n=this,o=[];if(r){var i=this.getParents(r),a=/(auto|scroll)/,s=function(k){var D=k?getComputedStyle(k):null;return D&&(a.test(D.getPropertyValue("overflow"))||a.test(D.getPropertyValue("overflow-x"))||a.test(D.getPropertyValue("overflow-y")))},l=function(k){o.push(k.nodeName==="BODY"||k.nodeName==="HTML"||n.isDocument(k)?window:k)},c=fS(i),d;try{for(c.s();!(d=c.n()).done;){var p,m=d.value,y=m.nodeType===1&&((p=m.dataset)===null||p===void 0?void 0:p.scrollselectors);if(y){var b=y.split(","),v=fS(b),C;try{for(v.s();!(C=v.n()).done;){var A=C.value,R=this.findSingle(m,A);R&&s(R)&&l(R)}}catch(x){v.e(x)}finally{v.f()}}m.nodeType===1&&s(m)&&l(m)}}catch(x){c.e(x)}finally{c.f()}}return o}},{key:"getHiddenElementOuterHeight",value:function(r){if(r){r.style.visibility="hidden",r.style.display="block";var n=r.offsetHeight;return r.style.display="none",r.style.visibility="visible",n}return 0}},{key:"getHiddenElementOuterWidth",value:function(r){if(r){r.style.visibility="hidden",r.style.display="block";var n=r.offsetWidth;return r.style.display="none",r.style.visibility="visible",n}return 0}},{key:"getHiddenElementDimensions",value:function(r){var n={};return r&&(r.style.visibility="hidden",r.style.display="block",n.width=r.offsetWidth,n.height=r.offsetHeight,r.style.display="none",r.style.visibility="visible"),n}},{key:"fadeIn",value:function(r,n){if(r){r.style.opacity=0;var o=+new Date,i=0,a=function(){i=+r.style.opacity+(new Date().getTime()-o)/n,r.style.opacity=i,o=+new Date,+i<1&&(window.requestAnimationFrame&&requestAnimationFrame(a)||setTimeout(a,16))};a()}}},{key:"fadeOut",value:function(r,n){if(r)var o=1,i=50,a=i/n,s=setInterval(function(){o=o-a,o<=0&&(o=0,clearInterval(s)),r.style.opacity=o},i)}},{key:"getUserAgent",value:function(){return navigator.userAgent}},{key:"isIOS",value:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}},{key:"isAndroid",value:function(){return/(android)/i.test(navigator.userAgent)}},{key:"isChrome",value:function(){return/(chrome)/i.test(navigator.userAgent)}},{key:"isClient",value:function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}},{key:"isTouchDevice",value:function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0}},{key:"isFunction",value:function(r){return!!(r&&r.constructor&&r.call&&r.apply)}},{key:"appendChild",value:function(r,n){if(this.isElement(n))n.appendChild(r);else if(n.el&&n.el.nativeElement)n.el.nativeElement.appendChild(r);else throw new Error("Cannot append "+n+" to "+r)}},{key:"removeChild",value:function(r,n){if(this.isElement(n))n.removeChild(r);else if(n.el&&n.el.nativeElement)n.el.nativeElement.removeChild(r);else throw new Error("Cannot remove "+r+" from "+n)}},{key:"isElement",value:function(r){return(typeof HTMLElement>"u"?"undefined":So(HTMLElement))==="object"?r instanceof HTMLElement:r&&So(r)==="object"&&r!==null&&r.nodeType===1&&typeof r.nodeName=="string"}},{key:"isDocument",value:function(r){return(typeof Document>"u"?"undefined":So(Document))==="object"?r instanceof Document:r&&So(r)==="object"&&r!==null&&r.nodeType===9}},{key:"scrollInView",value:function(r,n){var o=getComputedStyle(r).getPropertyValue("border-top-width"),i=o?parseFloat(o):0,a=getComputedStyle(r).getPropertyValue("padding-top"),s=a?parseFloat(a):0,l=r.getBoundingClientRect(),c=n.getBoundingClientRect(),d=c.top+document.body.scrollTop-(l.top+document.body.scrollTop)-i-s,p=r.scrollTop,m=r.clientHeight,y=this.getOuterHeight(n);d<0?r.scrollTop=p+d:d+y>m&&(r.scrollTop=p+d-m+y)}},{key:"clearSelection",value:function(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}},{key:"calculateScrollbarWidth",value:function(r){if(r){var n=getComputedStyle(r);return r.offsetWidth-r.clientWidth-parseFloat(n.borderLeftWidth)-parseFloat(n.borderRightWidth)}if(this.calculatedScrollbarWidth!=null)return this.calculatedScrollbarWidth;var o=document.createElement("div");o.className="p-scrollbar-measure",document.body.appendChild(o);var i=o.offsetWidth-o.clientWidth;return document.body.removeChild(o),this.calculatedScrollbarWidth=i,i}},{key:"calculateBodyScrollbarWidth",value:function(){return window.innerWidth-document.documentElement.offsetWidth}},{key:"getBrowser",value:function(){if(!this.browser){var r=this.resolveUserAgent();this.browser={},r.browser&&(this.browser[r.browser]=!0,this.browser.version=r.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}},{key:"resolveUserAgent",value:function(){var r=navigator.userAgent.toLowerCase(),n=/(chrome)[ ]([\w.]+)/.exec(r)||/(webkit)[ ]([\w.]+)/.exec(r)||/(opera)(?:.*version|)[ ]([\w.]+)/.exec(r)||/(msie) ([\w.]+)/.exec(r)||r.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(r)||[];return{browser:n[1]||"",version:n[2]||"0"}}},{key:"blockBodyScroll",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden",n=!!document.body.style.getPropertyValue("--scrollbar-width");!n&&document.body.style.setProperty("--scrollbar-width",this.calculateBodyScrollbarWidth()+"px"),this.addClass(document.body,r)}},{key:"unblockBodyScroll",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"p-overflow-hidden";document.body.style.removeProperty("--scrollbar-width"),this.removeClass(document.body,r)}},{key:"isVisible",value:function(r){return r&&(r.clientHeight!==0||r.getClientRects().length!==0||getComputedStyle(r).display!=="none")}},{key:"isExist",value:function(r){return!!(r!==null&&typeof r<"u"&&r.nodeName&&r.parentNode)}},{key:"getFocusableElements",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=e.find(r,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])'.concat(n,`,
@@ -39,7 +39,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
39
39
  [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden])`).concat(n)),i=[],a=fS(o),s;try{for(a.s();!(s=a.n()).done;){var l=s.value;getComputedStyle(l).display!=="none"&&getComputedStyle(l).visibility!=="hidden"&&i.push(l)}}catch(c){a.e(c)}finally{a.f()}return i}},{key:"getFirstFocusableElement",value:function(r,n){var o=e.getFocusableElements(r,n);return o.length>0?o[0]:null}},{key:"getLastFocusableElement",value:function(r,n){var o=e.getFocusableElements(r,n);return o.length>0?o[o.length-1]:null}},{key:"focus",value:function(r,n){var o=n===void 0?!0:!n;r&&document.activeElement!==r&&r.focus({preventScroll:o})}},{key:"focusFirstElement",value:function(r,n){if(r){var o=e.getFirstFocusableElement(r);return o&&e.focus(o,n),o}}},{key:"getCursorOffset",value:function(r,n,o,i){if(r){var a=getComputedStyle(r),s=document.createElement("div");s.style.position="absolute",s.style.top="0px",s.style.left="0px",s.style.visibility="hidden",s.style.pointerEvents="none",s.style.overflow=a.overflow,s.style.width=a.width,s.style.height=a.height,s.style.padding=a.padding,s.style.border=a.border,s.style.overflowWrap=a.overflowWrap,s.style.whiteSpace=a.whiteSpace,s.style.lineHeight=a.lineHeight,s.innerHTML=n.replace(/\r\n|\r|\n/g,"<br />");var l=document.createElement("span");l.textContent=i,s.appendChild(l);var c=document.createTextNode(o);s.appendChild(c),document.body.appendChild(s);var d=l.offsetLeft,p=l.offsetTop,m=l.clientHeight;return document.body.removeChild(s),{left:Math.abs(d-r.scrollLeft),top:Math.abs(p-r.scrollTop)+m}}return{top:"auto",left:"auto"}}},{key:"invokeElementMethod",value:function(r,n,o){r[n].apply(r,o)}},{key:"isClickable",value:function(r){var n=r.nodeName,o=r.parentElement&&r.parentElement.nodeName;return n==="INPUT"||n==="TEXTAREA"||n==="BUTTON"||n==="A"||o==="INPUT"||o==="TEXTAREA"||o==="BUTTON"||o==="A"||this.hasClass(r,"p-button")||this.hasClass(r.parentElement,"p-button")||this.hasClass(r.parentElement,"p-checkbox")||this.hasClass(r.parentElement,"p-radiobutton")}},{key:"applyStyle",value:function(r,n){if(typeof n=="string")r.style.cssText=n;else for(var o in n)r.style[o]=n[o]}},{key:"exportCSV",value:function(r,n){var o=new Blob([r],{type:"application/csv;charset=utf-8;"});if(window.navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(o,n+".csv");else{var i=e.saveAs({name:n+".csv",src:URL.createObjectURL(o)});i||(r="data:text/csv;charset=utf-8,"+r,window.open(encodeURI(r)))}}},{key:"saveAs",value:function(r){if(r){var n=document.createElement("a");if(n.download!==void 0){var o=r.name,i=r.src;return n.setAttribute("href",i),n.setAttribute("download",o),n.style.display="none",document.body.appendChild(n),n.click(),document.body.removeChild(n),!0}}return!1}},{key:"createInlineStyle",value:function(r,n){var o=document.createElement("style");return e.addNonce(o,r),n||(n=document.head),n.appendChild(o),o}},{key:"removeInlineStyle",value:function(r){if(this.isExist(r)){try{r.parentNode.removeChild(r)}catch{}r=null}return r}},{key:"addNonce",value:function(r,n){try{n||(n=process.env.REACT_APP_CSS_NONCE)}catch{}n&&r.setAttribute("nonce",n)}},{key:"getTargetElement",value:function(r){if(!r)return null;if(r==="document")return document;if(r==="window")return window;if(So(r)==="object"&&r.hasOwnProperty("current"))return this.isExist(r.current)?r.current:null;var n=function(a){return!!(a&&a.constructor&&a.call&&a.apply)},o=n(r)?r():r;return this.isDocument(o)||this.isExist(o)?o:null}},{key:"getAttributeNames",value:function(r){var n,o,i;for(o=[],i=r.attributes,n=0;n<i.length;++n)o.push(i[n].nodeName);return o.sort(),o}},{key:"isEqualElement",value:function(r,n){var o,i,a,s,l;if(o=e.getAttributeNames(r),i=e.getAttributeNames(n),o.join(",")!==i.join(","))return!1;for(var c=0;c<o.length;++c)if(a=o[c],a==="style")for(var d=r.style,p=n.style,m=/^\d+$/,y=0,b=Object.keys(d);y<b.length;y++){var v=b[y];if(!m.test(v)&&d[v]!==p[v])return!1}else if(r.getAttribute(a)!==n.getAttribute(a))return!1;for(s=r.firstChild,l=n.firstChild;s&&l;s=s.nextSibling,l=l.nextSibling){if(s.nodeType!==l.nodeType)return!1;if(s.nodeType===1){if(!e.isEqualElement(s,l))return!1}else if(s.nodeValue!==l.nodeValue)return!1}return!(s||l)}},{key:"hasCSSAnimation",value:function(r){if(r){var n=getComputedStyle(r),o=parseFloat(n.getPropertyValue("animation-duration")||"0");return o>0}return!1}},{key:"hasCSSTransition",value:function(r){if(r){var n=getComputedStyle(r),o=parseFloat(n.getPropertyValue("transition-duration")||"0");return o>0}return!1}}])})();h0(le,"DATA_PROPS",["data-"]);h0(le,"ARIA_PROPS",["aria","focus-target"]);function ZF(){var e=new Map;return{on:function(r,n){var o=e.get(r);o?o.push(n):o=[n],e.set(r,o)},off:function(r,n){var o=e.get(r);o&&o.splice(o.indexOf(n)>>>0,1)},emit:function(r,n){var o=e.get(r);o&&o.slice().forEach(function(i){return i(n)})}}}function cE(){return cE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},cE.apply(null,arguments)}function KR(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=ej(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
40
40
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||r.return==null||r.return()}finally{if(s)throw i}}}}function ej(e,t){if(e){if(typeof e=="string")return GR(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?GR(e,t):void 0}}function GR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var pe=(function(){function e(){VI(this,e)}return BI(e,null,[{key:"equals",value:function(r,n,o){return o&&r&&So(r)==="object"&&n&&So(n)==="object"?this.deepEquals(this.resolveFieldData(r,o),this.resolveFieldData(n,o)):this.deepEquals(r,n)}},{key:"deepEquals",value:function(r,n){if(r===n)return!0;if(r&&n&&So(r)==="object"&&So(n)==="object"){var o=Array.isArray(r),i=Array.isArray(n),a,s,l;if(o&&i){if(s=r.length,s!==n.length)return!1;for(a=s;a--!==0;)if(!this.deepEquals(r[a],n[a]))return!1;return!0}if(o!==i)return!1;var c=r instanceof Date,d=n instanceof Date;if(c!==d)return!1;if(c&&d)return r.getTime()===n.getTime();var p=r instanceof RegExp,m=n instanceof RegExp;if(p!==m)return!1;if(p&&m)return r.toString()===n.toString();var y=Object.keys(r);if(s=y.length,s!==Object.keys(n).length)return!1;for(a=s;a--!==0;)if(!Object.prototype.hasOwnProperty.call(n,y[a]))return!1;for(a=s;a--!==0;)if(l=y[a],!this.deepEquals(r[l],n[l]))return!1;return!0}return r!==r&&n!==n}},{key:"resolveFieldData",value:function(r,n){if(!r||!n)return null;try{var o=r[n];if(this.isNotEmpty(o))return o}catch{}if(Object.keys(r).length){if(this.isFunction(n))return n(r);if(this.isNotEmpty(r[n]))return r[n];if(n.indexOf(".")===-1)return r[n];for(var i=n.split("."),a=r,s=0,l=i.length;s<l;++s){if(a==null)return null;a=a[i[s]]}return a}return null}},{key:"findDiffKeys",value:function(r,n){return!r||!n?{}:Object.keys(r).filter(function(o){return!n.hasOwnProperty(o)}).reduce(function(o,i){return o[i]=r[i],o},{})}},{key:"reduceKeys",value:function(r,n){var o={};return!r||!n||n.length===0||Object.keys(r).filter(function(i){return n.some(function(a){return i.startsWith(a)})}).forEach(function(i){o[i]=r[i],delete r[i]}),o}},{key:"reorderArray",value:function(r,n,o){r&&n!==o&&(o>=r.length&&(o=o%r.length,n=n%r.length),r.splice(o,0,r.splice(n,1)[0]))}},{key:"findIndexInList",value:function(r,n,o){var i=this;return n?o?n.findIndex(function(a){return i.equals(a,r,o)}):n.findIndex(function(a){return a===r}):-1}},{key:"getJSXElement",value:function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return this.isFunction(r)?r.apply(void 0,o):r}},{key:"getItemValue",value:function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return this.isFunction(r)?r.apply(void 0,o):r}},{key:"getProp",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r?r[n]:void 0;return i===void 0?o[n]:i}},{key:"getPropCaseInsensitive",value:function(r,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=this.toFlatCase(n);for(var a in r)if(r.hasOwnProperty(a)&&this.toFlatCase(a)===i)return r[a];for(var s in o)if(o.hasOwnProperty(s)&&this.toFlatCase(s)===i)return o[s]}},{key:"getMergedProps",value:function(r,n){return Object.assign({},n,r)}},{key:"getDiffProps",value:function(r,n){return this.findDiffKeys(r,n)}},{key:"getPropValue",value:function(r){if(!this.isFunction(r))return r;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];if(o.length===1){var a=o[0];return r(Array.isArray(a)?a[0]:a)}return r.apply(void 0,o)}},{key:"getComponentProp",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.isNotEmpty(r)?this.getProp(r.props,n,o):void 0}},{key:"getComponentProps",value:function(r,n){return this.isNotEmpty(r)?this.getMergedProps(r.props,n):void 0}},{key:"getComponentDiffProps",value:function(r,n){return this.isNotEmpty(r)?this.getDiffProps(r.props,n):void 0}},{key:"isValidChild",value:function(r,n,o){if(r){var i,a=this.getComponentProp(r,"__TYPE")||(r.type?r.type.displayName:void 0);!a&&r!==null&&r!==void 0&&(i=r.type)!==null&&i!==void 0&&(i=i._payload)!==null&&i!==void 0&&i.value&&(a=r.type._payload.value.find(function(c){return c===n}));var s=a===n;try{var l}catch{}return s}return!1}},{key:"getRefElement",value:function(r){return r?So(r)==="object"&&r.hasOwnProperty("current")?r.current:r:null}},{key:"combinedRefs",value:function(r,n){r&&n&&(typeof n=="function"?n(r.current):n.current=r.current)}},{key:"removeAccents",value:function(r){return r&&r.search(/[\xC0-\xFF]/g)>-1&&(r=r.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),r}},{key:"toFlatCase",value:function(r){return this.isNotEmpty(r)&&this.isString(r)?r.replace(/(-|_)/g,"").toLowerCase():r}},{key:"toCapitalCase",value:function(r){return this.isNotEmpty(r)&&this.isString(r)?r[0].toUpperCase()+r.slice(1):r}},{key:"trim",value:function(r){return this.isNotEmpty(r)&&this.isString(r)?r.trim():r}},{key:"isEmpty",value:function(r){return r==null||r===""||Array.isArray(r)&&r.length===0||!(r instanceof Date)&&So(r)==="object"&&Object.keys(r).length===0}},{key:"isNotEmpty",value:function(r){return!this.isEmpty(r)}},{key:"isFunction",value:function(r){return!!(r&&r.constructor&&r.call&&r.apply)}},{key:"isObject",value:function(r){return r!==null&&r instanceof Object&&r.constructor===Object}},{key:"isDate",value:function(r){return r!==null&&r instanceof Date&&r.constructor===Date}},{key:"isArray",value:function(r){return r!==null&&Array.isArray(r)}},{key:"isString",value:function(r){return r!==null&&typeof r=="string"}},{key:"isPrintableCharacter",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return this.isNotEmpty(r)&&r.length===1&&r.match(/\S| /)}},{key:"isLetter",value:function(r){return/^[a-zA-Z\u00C0-\u017F]$/.test(r)}},{key:"isScalar",value:function(r){return r!=null&&(typeof r=="string"||typeof r=="number"||typeof r=="bigint"||typeof r=="boolean")}},{key:"findLast",value:function(r,n){var o;if(this.isNotEmpty(r))try{o=r.findLast(n)}catch{o=Wy(r).reverse().find(n)}return o}},{key:"findLastIndex",value:function(r,n){var o=-1;if(this.isNotEmpty(r))try{o=r.findLastIndex(n)}catch{o=r.lastIndexOf(Wy(r).reverse().find(n))}return o}},{key:"sort",value:function(r,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:1,s=this.compare(r,n,i,o),l=o;return(this.isEmpty(r)||this.isEmpty(n))&&(l=a===1?o:a),l*s}},{key:"compare",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,a=-1,s=this.isEmpty(r),l=this.isEmpty(n);return s&&l?a=0:s?a=i:l?a=-i:typeof r=="string"&&typeof n=="string"?a=o(r,n):a=r<n?-1:r>n?1:0,a}},{key:"localeComparator",value:function(r){return new Intl.Collator(r,{numeric:!0}).compare}},{key:"findChildrenByKey",value:function(r,n){var o=KR(r),i;try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a.key===n)return a.children||[];if(a.children){var s=this.findChildrenByKey(a.children,n);if(s.length>0)return s}}}catch(l){o.e(l)}finally{o.f()}return[]}},{key:"mutateFieldData",value:function(r,n,o){if(!(So(r)!=="object"||typeof n!="string"))for(var i=n.split("."),a=r,s=0,l=i.length;s<l;++s){if(s+1-l===0){a[i[s]]=o;break}a[i[s]]||(a[i[s]]={}),a=a[i[s]]}}},{key:"getNestedValue",value:function(r,n){return n.split(".").reduce(function(o,i){return o&&o[i]!==void 0?o[i]:void 0},r)}},{key:"absoluteCompare",value:function(r,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;if(!r||!n||i>o)return!0;if(So(r)!==So(n))return!1;var a=Object.keys(r),s=Object.keys(n);if(a.length!==s.length)return!1;for(var l=0,c=a;l<c.length;l++){var d=c[l],p=r[d],m=n[d],y=e.isObject(p)&&e.isObject(m),b=e.isFunction(p)&&e.isFunction(m);if((y||b)&&!this.absoluteCompare(p,m,o,i+1)||!y&&p!==m)return!1}return!0}},{key:"selectiveCompare",value:function(r,n,o){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(r===n)return!0;if(!r||!n||So(r)!=="object"||So(n)!=="object")return!1;if(!o)return this.absoluteCompare(r,n,1);var a=KR(o),s;try{for(a.s();!(s=a.n()).done;){var l=s.value,c=this.getNestedValue(r,l),d=this.getNestedValue(n,l),p=So(c)==="object"&&c!==null&&So(d)==="object"&&d!==null;if(p&&!this.absoluteCompare(c,d,i)||!p&&c!==d)return!1}}catch(m){a.e(m)}finally{a.f()}return!0}}])})(),qR=0;function ms(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"pr_id_";return qR++,"".concat(e).concat(qR)}function JR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function tj(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?JR(Object(r),!0).forEach(function(n){h0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var nn=(function(){function e(){VI(this,e)}return BI(e,null,[{key:"getJSXIcon",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=null;if(r!==null){var a=So(r),s=dt(n.className,a==="string"&&r);if(i=S.createElement("span",cE({},n,{className:s,key:ms("icon")})),a!=="string"){var l=tj({iconProps:n,element:i},o);return pe.getJSXElement(r,l)}}return i}}])})();function YR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function QR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?YR(Object(r),!0).forEach(function(n){h0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zy(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(e){var r=function(a){return typeof a=="function"},n=t.classNameMergeFunction,o=r(n);return e.reduce(function(i,a){if(!a)return i;var s=function(){var d=a[l];if(l==="style")i.style=QR(QR({},i.style),a.style);else if(l==="className"){var p="";o?p=n(i.className,a.className):p=[i.className,a.className].join(" ").trim(),i.className=p||void 0}else if(r(d)){var m=i[l];i[l]=m?function(){m.apply(void 0,arguments),d.apply(void 0,arguments)}:d}else i[l]=d};for(var l in a)s();return i},{})}}function rj(){var e=[],t=function(s,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:999,d=o(s,l,c),p=d.value+(d.key===s?0:c)+1;return e.push({key:s,value:p}),p},r=function(s){e=e.filter(function(l){return l.value!==s})},n=function(s,l){return o(s,l).value},o=function(s,l){var c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return Wy(e).reverse().find(function(d){return l?!0:d.key===s})||{key:s,value:c}},i=function(s){return s&&parseInt(s.style.zIndex,10)||0};return{get:i,set:function(s,l,c,d){l&&(l.style.zIndex=String(t(s,c,d)))},clear:function(s){s&&(r(xo.get(s)),s.style.zIndex="")},getCurrent:function(s,l){return n(s,l)}}}var xo=rj(),En=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",NOT_IN:"notIn",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"}),Th=Object.freeze({AND:"and",OR:"or"});function XR(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=nj(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
41
41
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||r.return==null||r.return()}finally{if(s)throw i}}}}function nj(e,t){if(e){if(typeof e=="string")return ZR(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ZR(e,t):void 0}}function ZR(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Oh={filter:function(t,r,n,o,i){var a=[];if(!t)return a;var s=XR(t),l;try{for(s.s();!(l=s.n()).done;){var c=l.value;if(typeof c=="string"){if(this.filters[o](c,n,i)){a.push(c);continue}}else{var d=XR(r),p;try{for(d.s();!(p=d.n()).done;){var m=p.value,y=pe.resolveFieldData(c,m);if(this.filters[o](y,n,i)){a.push(c);break}}}catch(b){d.e(b)}finally{d.f()}}}}catch(b){s.e(b)}finally{s.f()}return a},filters:{startsWith:function(t,r,n){if(r==null||r.trim()==="")return!0;if(t==null)return!1;var o=pe.removeAccents(r.toString()).toLocaleLowerCase(n),i=pe.removeAccents(t.toString()).toLocaleLowerCase(n);return i.slice(0,o.length)===o},contains:function(t,r,n){if(r==null||typeof r=="string"&&r.trim()==="")return!0;if(t==null)return!1;var o=pe.removeAccents(r.toString()).toLocaleLowerCase(n),i=pe.removeAccents(t.toString()).toLocaleLowerCase(n);return i.indexOf(o)!==-1},notContains:function(t,r,n){if(r==null||typeof r=="string"&&r.trim()==="")return!0;if(t==null)return!1;var o=pe.removeAccents(r.toString()).toLocaleLowerCase(n),i=pe.removeAccents(t.toString()).toLocaleLowerCase(n);return i.indexOf(o)===-1},endsWith:function(t,r,n){if(r==null||r.trim()==="")return!0;if(t==null)return!1;var o=pe.removeAccents(r.toString()).toLocaleLowerCase(n),i=pe.removeAccents(t.toString()).toLocaleLowerCase(n);return i.indexOf(o,i.length-o.length)!==-1},equals:function(t,r,n){return r==null||typeof r=="string"&&r.trim()===""?!0:t==null?!1:t.getTime&&r.getTime?t.getTime()===r.getTime():pe.removeAccents(t.toString()).toLocaleLowerCase(n)===pe.removeAccents(r.toString()).toLocaleLowerCase(n)},notEquals:function(t,r,n){return r==null||typeof r=="string"&&r.trim()===""||t==null?!0:t.getTime&&r.getTime?t.getTime()!==r.getTime():pe.removeAccents(t.toString()).toLocaleLowerCase(n)!==pe.removeAccents(r.toString()).toLocaleLowerCase(n)},in:function(t,r){if(r==null||r.length===0)return!0;for(var n=0;n<r.length;n++)if(pe.equals(t,r[n]))return!0;return!1},notIn:function(t,r){if(r==null||r.length===0)return!0;for(var n=0;n<r.length;n++)if(pe.equals(t,r[n]))return!1;return!0},between:function(t,r){return r==null||r[0]==null||r[1]==null?!0:t==null?!1:t.getTime?r[0].getTime()<=t.getTime()&&t.getTime()<=r[1].getTime():r[0]<=t&&t<=r[1]},lt:function(t,r){return r==null?!0:t==null?!1:t.getTime&&r.getTime?t.getTime()<r.getTime():t<r},lte:function(t,r){return r==null?!0:t==null?!1:t.getTime&&r.getTime?t.getTime()<=r.getTime():t<=r},gt:function(t,r){return r==null?!0:t==null?!1:t.getTime&&r.getTime?t.getTime()>r.getTime():t>r},gte:function(t,r){return r==null?!0:t==null?!1:t.getTime&&r.getTime?t.getTime()>=r.getTime():t>=r},dateIs:function(t,r){return r==null?!0:t==null?!1:t.toDateString()===r.toDateString()},dateIsNot:function(t,r){return r==null?!0:t==null?!1:t.toDateString()!==r.toDateString()},dateBefore:function(t,r){return r==null?!0:t==null?!1:t.getTime()<r.getTime()},dateAfter:function(t,r){return r==null?!0:t==null?!1:t.getTime()>r.getTime()}},register:function(t,r){this.filters[t]=r}};function Qh(e){"@babel/helpers - typeof";return Qh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qh(e)}function oj(e,t){if(Qh(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qh(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ij(e){var t=oj(e,"string");return Qh(t)=="symbol"?t:t+""}function vs(e,t,r){return(t=ij(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aj(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function sj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var bi=aj(function e(){sj(this,e)});vs(bi,"ripple",!1);vs(bi,"inputStyle","outlined");vs(bi,"locale","en");vs(bi,"appendTo",null);vs(bi,"cssTransition",!0);vs(bi,"autoZIndex",!0);vs(bi,"hideOverlaysOnDocumentScrolling",!1);vs(bi,"nonce",null);vs(bi,"nullSortOrder",1);vs(bi,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200});vs(bi,"pt",void 0);vs(bi,"filterMatchModeOptions",{text:[En.STARTS_WITH,En.CONTAINS,En.NOT_CONTAINS,En.ENDS_WITH,En.EQUALS,En.NOT_EQUALS],numeric:[En.EQUALS,En.NOT_EQUALS,En.LESS_THAN,En.LESS_THAN_OR_EQUAL_TO,En.GREATER_THAN,En.GREATER_THAN_OR_EQUAL_TO],date:[En.DATE_IS,En.DATE_IS_NOT,En.DATE_BEFORE,En.DATE_AFTER]});vs(bi,"changeTheme",function(e,t,r,n){var o,i=document.getElementById(r);if(!i)throw Error("Element with id ".concat(r," not found."));var a=i.getAttribute("href").replace(e,t),s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("id",r),s.setAttribute("href",a),s.addEventListener("load",function(){n&&n()}),(o=i.parentNode)===null||o===void 0||o.replaceChild(s,i)});var lj={en:{accept:"Yes",addRule:"Add Rule",am:"AM",apply:"Apply",cancel:"Cancel",choose:"Choose",chooseDate:"Choose Date",chooseMonth:"Choose Month",chooseYear:"Choose Year",clear:"Clear",completed:"Completed",contains:"Contains",custom:"Custom",dateAfter:"Date is after",dateBefore:"Date is before",dateFormat:"mm/dd/yy",dateIs:"Date is",dateIsNot:"Date is not",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],emptyFilterMessage:"No results found",emptyMessage:"No available options",emptySearchMessage:"No results found",emptySelectionMessage:"No selected item",endsWith:"Ends with",equals:"Equals",fileChosenMessage:"{0} files",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],filter:"Filter",firstDayOfWeek:0,gt:"Greater than",gte:"Greater than or equal to",lt:"Less than",lte:"Less than or equal to",matchAll:"Match All",matchAny:"Match Any",medium:"Medium",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],nextDecade:"Next Decade",nextHour:"Next Hour",nextMinute:"Next Minute",nextMonth:"Next Month",nextSecond:"Next Second",nextYear:"Next Year",noFileChosenMessage:"No file chosen",noFilter:"No Filter",notContains:"Not contains",notEquals:"Not equals",now:"Now",passwordPrompt:"Enter a password",pending:"Pending",pm:"PM",prevDecade:"Previous Decade",prevHour:"Previous Hour",prevMinute:"Previous Minute",prevMonth:"Previous Month",prevSecond:"Previous Second",prevYear:"Previous Year",reject:"No",removeRule:"Remove Rule",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",showMonthAfterYear:!1,startsWith:"Starts with",strong:"Strong",today:"Today",upload:"Upload",weak:"Weak",weekHeader:"Wk",aria:{cancelEdit:"Cancel Edit",close:"Close",collapseLabel:"Collapse",collapseRow:"Row Collapsed",editRow:"Edit Row",expandLabel:"Expand",expandRow:"Row Expanded",falseLabel:"False",filterConstraint:"Filter Constraint",filterOperator:"Filter Operator",firstPageLabel:"First Page",gridView:"Grid View",hideFilterMenu:"Hide Filter Menu",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",lastPageLabel:"Last Page",listLabel:"Option List",listView:"List View",moveAllToSource:"Move All to Source",moveAllToTarget:"Move All to Target",moveBottom:"Move Bottom",moveDown:"Move Down",moveToSource:"Move to Source",moveToTarget:"Move to Target",moveTop:"Move Top",moveUp:"Move Up",navigation:"Navigation",next:"Next",nextPageLabel:"Next Page",nullLabel:"Not Selected",otpLabel:"Please enter one time password character {0}",pageLabel:"Page {page}",passwordHide:"Hide Password",passwordShow:"Show Password",previous:"Previous",prevPageLabel:"Previous Page",removeLabel:"Remove",rotateLeft:"Rotate Left",rotateRight:"Rotate Right",rowsPerPageLabel:"Rows per page",saveEdit:"Save Edit",scrollTop:"Scroll Top",selectAll:"All items selected",selectLabel:"Select",selectRow:"Row Selected",showFilterMenu:"Show Filter Menu",slide:"Slide",slideNumber:"{slideNumber}",star:"1 star",stars:"{star} stars",trueLabel:"True",unselectAll:"All items unselected",unselectLabel:"Unselect",unselectRow:"Row Unselected",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out"}}};function va(e,t){if(e.includes("__proto__")||e.includes("prototype"))throw new Error("Unsafe key detected");var r=bi.locale;try{return H3(r)[e]}catch{throw new Error("The ".concat(e," option is not found in the current locale('").concat(r,"')."))}}function Bo(e,t){if(e.includes("__proto__")||e.includes("prototype"))throw new Error("Unsafe ariaKey detected");var r=bi.locale;try{var n=H3(r).aria[e];if(n)for(var o in t)t.hasOwnProperty(o)&&(n=n.replace("{".concat(o,"}"),t[o]));return n}catch{throw new Error("The ".concat(e," option is not found in the current locale('").concat(r,"')."))}}function H3(e){var t=e||bi.locale;if(t.includes("__proto__")||t.includes("prototype"))throw new Error("Unsafe locale detected");return lj[t]}function uj(e){if(Array.isArray(e))return e}function cj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function eT(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dj(e,t){if(e){if(typeof e=="string")return eT(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eT(e,t):void 0}}function pj(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
42
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oa(e,t){return uj(e)||cj(e,t)||dj(e,t)||pj()}var qr=se.createContext(),fj=function(t){var r,n,o,i,a,s,l,c,d,p,m,y,b,v,C,A,R=(r=t.value)!==null&&r!==void 0?r:{},x=se.useState((n=R.ripple)!==null&&n!==void 0?n:!1),k=Oa(x,2),D=k[0],F=k[1],$=se.useState((o=R.inputStyle)!==null&&o!==void 0?o:"outlined"),U=Oa($,2),G=U[0],Y=U[1],Q=se.useState((i=R.locale)!==null&&i!==void 0?i:"en"),me=Oa(Q,2),ne=me[0],Ee=me[1],ce=se.useState((a=R.appendTo)!==null&&a!==void 0?a:null),_e=Oa(ce,2),Ne=_e[0],oe=_e[1],Se=se.useState((s=R.styleContainer)!==null&&s!==void 0?s:null),re=Oa(Se,2),we=re[0],Ae=re[1],Pe=se.useState((l=R.cssTransition)!==null&&l!==void 0?l:!0),Oe=Oa(Pe,2),Ke=Oe[0],St=Oe[1],st=se.useState((c=R.autoZIndex)!==null&&c!==void 0?c:!0),yt=Oa(st,2),$e=yt[0],ot=yt[1],it=se.useState((d=R.hideOverlaysOnDocumentScrolling)!==null&&d!==void 0?d:!1),Ie=Oa(it,2),tt=Ie[0],mt=Ie[1],Wt=se.useState((p=R.nonce)!==null&&p!==void 0?p:null),cr=Oa(Wt,2),At=cr[0],Ve=cr[1],Jt=se.useState((m=R.nullSortOrder)!==null&&m!==void 0?m:1),ar=Oa(Jt,2),pr=ar[0],gr=ar[1],en=se.useState((y=R.zIndex)!==null&&y!==void 0?y:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200}),Wr=Oa(en,2),Xr=Wr[0],Pr=Wr[1],Br=se.useState((b=R.ptOptions)!==null&&b!==void 0?b:{mergeSections:!0,mergeProps:!0}),Hr=Oa(Br,2),jr=Hr[0],zr=Hr[1],Jr=se.useState((v=R.pt)!==null&&v!==void 0?v:void 0),In=Oa(Jr,2),tn=In[0],vr=In[1],at=se.useState((C=R.unstyled)!==null&&C!==void 0?C:!1),Pt=Oa(at,2),pt=Pt[0],Rt=Pt[1],rt=se.useState((A=R.filterMatchModeOptions)!==null&&A!==void 0?A:{text:[En.STARTS_WITH,En.CONTAINS,En.NOT_CONTAINS,En.ENDS_WITH,En.EQUALS,En.NOT_EQUALS],numeric:[En.EQUALS,En.NOT_EQUALS,En.LESS_THAN,En.LESS_THAN_OR_EQUAL_TO,En.GREATER_THAN,En.GREATER_THAN_OR_EQUAL_TO],date:[En.DATE_IS,En.DATE_IS_NOT,En.DATE_BEFORE,En.DATE_AFTER]}),ge=Oa(rt,2),be=ge[0],We=ge[1],Gt=function(Cr,zt,Qe,Et){var Ht,ur=document.getElementById(Qe);if(!ur)throw Error("Element with id ".concat(Qe," not found."));var Dr=ur.getAttribute("href").replace(Cr,zt),pn=document.createElement("link");pn.setAttribute("rel","stylesheet"),pn.setAttribute("id",Qe),pn.setAttribute("href",Dr),pn.addEventListener("load",function(){Et&&Et()}),(Ht=ur.parentNode)===null||Ht===void 0||Ht.replaceChild(pn,ur)};se.useEffect(function(){bi.ripple=D},[D]),se.useEffect(function(){bi.inputStyle=G},[G]),se.useEffect(function(){bi.locale=ne},[ne]);var Qt={changeTheme:Gt,ripple:D,setRipple:F,inputStyle:G,setInputStyle:Y,locale:ne,setLocale:Ee,appendTo:Ne,setAppendTo:oe,styleContainer:we,setStyleContainer:Ae,cssTransition:Ke,setCssTransition:St,autoZIndex:$e,setAutoZIndex:ot,hideOverlaysOnDocumentScrolling:tt,setHideOverlaysOnDocumentScrolling:mt,nonce:At,setNonce:Ve,nullSortOrder:pr,setNullSortOrder:gr,zIndex:Xr,setZIndex:Pr,ptOptions:jr,setPtOptions:zr,pt:tn,setPt:vr,filterMatchModeOptions:be,setFilterMatchModeOptions:We,unstyled:pt,setUnstyled:Rt};return se.createElement(qr.Provider,{value:Qt},t.children)},Ur=bi,eu=(e=>(e.NOT_STARTED="NOT_STARTED",e.ONLY_PANELIST="ONLY_PANELIST",e.IN_PROGRESS="IN_PROGRESS",e.CLOSED="CLOSED",e))(eu||{});const U3=se.createContext({credentials:{sessionName:"test",signature:"",userName:"",sessionPasscode:""},changeUserRole:()=>Promise.resolve(),breakpoint:0,changePluginBreakpoint:()=>{},sessionStatus:"NOT_STARTED",initVotingPreSession:()=>Promise.resolve(),initVotingSession:()=>Promise.resolve(),closeVotingSession:()=>Promise.resolve()}),Tf=()=>se.useContext(U3),no=Symbol("store"),Ot=Symbol("getState"),$n=Symbol("dispatch"),Ky=Symbol("additionFeatures"),Ge=Symbol("mediaContext");function $3(e,t,r){e.readyState?e.onreadystatechange=()=>{e.readyState!=="loaded"&&e.readyState!=="complete"||(e.onreadystatechange=null,t())}:(e.onload=()=>{t()},e.onerror=()=>{r()}),window.crossOriginIsolated&&(e.crossOrigin="anonymous");const n=document.getElementsByTagName("head")[0];typeof n.append=="function"?n.append(e):n.appendChild(e)}function Ym(e,t,r,n){const o=document.createElement("script");o.type=n?"module":"text/javascript",o.src=e,$3(o,t,r)}function hj(e,t,r){const n=document.createElement("link");n.href=e,n.type="text/css",n.rel="stylesheet",n.media="screen,print",$3(n,t,r)}function W3(e,t){let r=e;/^https?:\/\//.test(r)||(r=`https://${e}`);try{const n=new URL(r);if(!t)return n.href;if(t.hostname)return n.hostname;if(t.path)return n.pathname}catch{return""}return""}function Xh(e){if(e){var t;const r=document.getElementById(e);r==null||(t=r.parentNode)===null||t===void 0||t.removeChild(r)}}function Qm(e,t){if(!e||typeof e=="string")return!1;if(e.ownerDocument===window.document)return e instanceof t;{var r;const n=(r=e.ownerDocument)===null||r===void 0?void 0:r.defaultView;let o;return!!n&&(t.name==="HTMLVideoElement"?o=n.HTMLVideoElement:t.name==="HTMLCanvasElement"?o=n.HTMLCanvasElement:t.name==="HTMLIFrameElement"?o=n.HTMLIFrameElement:t.name==="HTMLElement"&&(o=n.HTMLElement),!!o&&e instanceof o||e instanceof t)}}function iu(e){return Qm(e,HTMLVideoElement)}function Of(e){return Qm(e,HTMLCanvasElement)}function tT(e,t){return Array.from(document.getElementsByTagName(t)).some((r=>r.contains(e)))}function rT(e,t,r){const n=e.parentElement;if(!n)return null;const o=document.createElement("canvas");o.id=t,n==null||n.appendChild(o);let i=null;function a(){r&&r()}return typeof ResizeObserver<"u"?(i=new ResizeObserver(a),i.observe(e),n&&i.observe(n)):window.addEventListener("resize",a),a(),o._overlayCleanup=function(){i?(i.unobserve(e),n&&i.unobserve(n),i.disconnect(),i=null):window.removeEventListener("resize",a),typeof o.remove=="function"?o.remove():n&&n.removeChild(o)},o}function nT(e){var t;const r=e.getBoundingClientRect(),n=(t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect(),o=getComputedStyle(e),i=parseFloat(o.borderTopWidth)||0,a=parseFloat(o.borderLeftWidth)||0,s=a+(parseFloat(o.borderRightWidth)||0),l=i+(parseFloat(o.borderBottomWidth)||0),c=Math.max(e.width/(r.width-s),e.height/(r.height-l)),d={width:e.width/c,height:e.height/c},p=r.top-((n==null?void 0:n.top)||0),m=r.left-((n==null?void 0:n.left)||0);return{size:d,position:{top:`${p+((r.height-l-d.height)/2+i)}px`,left:`${m+((r.width-s-d.width)/2+a)}px`}}}let m0="";m0="zoom.us";const g0="5.0.0",Qv=`https://dmogdx0jrul3u.cloudfront.net/${g0}/lib/av`,Xc=`https://source.zoom.us/${g0}/lib/av`,Xv=`https://jssdk.zoomus.cn/${g0}/lib/av`,gc=()=>m0;function Oo(e,t){const r=t.match(e);return r&&r.length>0&&r[1]||""}function z3(e,t){const r=t.match(e);return r&&r.length>1&&r[2]||""}const Au=/version\/(\d+(\.?_?\d+)+)/i,mj=[{test:[/opera/i],describe:e=>["Opera(Legacy)",Oo(Au,e)||Oo(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e)]},{test:[/opr\/|opios/i],describe:e=>["Opera",Oo(/(?:opr|opios)[\s/](\S+)/i,e)||Oo(Au,e)]},{test:[/SamsungBrowser/i],describe:e=>["Samsung Internet for Android",Oo(Au,e)||Oo(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e)]},{test:[/micromessenger/i],describe:e=>["WeChat",Oo(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Oo(Au,e)]},{test:[/qqbrowser/i],describe:e=>[/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser",Oo(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Oo(Au,e)]},{test:[/msie|trident/i],describe:e=>["Internet Explorer",Oo(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e)]},{test:[/\sedg\//i],describe:e=>["Microsoft Edge",Oo(/\sedg\/(\d+(\.?_?\d+)+)/i,e)]},{test:[/edg([ea]|ios)/i],describe:e=>["Microsoft Edge(Legacy)",z3(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e)]},{test:[/firefox|iceweasel|fxios/i],describe:e=>["Firefox",Oo(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e)]},{test:[/electron/i],describe:e=>["Electron",Oo(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e)]},{test:[/chromium/i],describe:e=>["Chromium",Oo(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Oo(Au,e)]},{test:[/chrome|crios|crmo/i],describe:e=>["Chrome",Oo(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e)]},{test:e=>!/like android/i.test(e)&&/android/i.test(e),describe:e=>["Android Browser",Oo(Au,e)]},{test:[/safari|applewebkit/i],describe:e=>["Safari",Oo(Au,e)]}],gj=[{test:e=>{const t=e.match(/OpenHarmony (\d+\.?\d*)/);return(t==null?void 0:t.length)&&Number(t[1])>=5},describe:e=>["HarmonyOS",Oo(/OpenHarmony (\d+\.?\d*)/i,e)]},{test:[/windows /i],describe:e=>["Windows",Oo(/Windows ((NT|XP)( \d\d?.\d)?)/i,e)]},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:e=>["iOS",z3(/(Version\/)(\d[\d.]+)/,e)]},{test:[/macintosh/i],describe:e=>["macOS",Oo(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,".")]},{test:[/(ipod|iphone|ipad)/i],describe:e=>["iOS",Oo(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".")]},{test:e=>!/like android/i.test(e)&&/android/i.test(e),describe:e=>["Android",Oo(/android[\s/-](\d+(\.\d+)*)/i,e)]},{test:[/linux/i],describe:()=>["Linux"]},{test:[/CrOS/],describe:()=>["Chrome OS"]}],Yt=new class{constructor(){this._browser=void 0,this._os=void 0,this._browserVersion=void 0,this._osVersion=void 0,this._clientHintsData=void 0,this._mediaFeatureOptions=void 0,"userAgentData"in navigator&&navigator.userAgentData.getHighEntropyValues(["architecture","bitness","formFactor","model","platformVersion","wow64"]).then((e=>{this._clientHintsData=e,this._os&&this._osVersion&&this._clientHintsData.platform&&this._clientHintsData.platformVersion&&(this._os=this._clientHintsData.platform,this._osVersion=this._clientHintsData.platformVersion)})).catch((e=>{console.warn(e)}))}_getBrowserVersion(){var e;if((e=this._clientHintsData)!==null&&e!==void 0&&(e=e.brands)!==null&&e!==void 0&&e.length){const t=this._clientHintsData.brands.filter((n=>!/(Chromium|Not.*Brand)/i.test(n.brand)))[0];t&&(this._browser=t.brand);const r=this._clientHintsData.brands.find((n=>{var o;return((o=n.brand)===null||o===void 0?void 0:o.toLowerCase())==="chromium"}));r?(this._browserVersion=r.version,this._browser||(this._browser=r.brand)):this._browserVersion=t.version}else{const t=navigator.userAgent,r=mj.find((n=>typeof n.test=="function"?n.test(t):n.test.some((o=>o.test(t)))));if(r){const n=r.describe(t);this._browser=n[0],this._browserVersion=n[1],this.isIOSMobile&&(this._browser="ios-safari")}else this._browser="unknown",this._browserVersion="0"}}_getOSVersion(){var e,t;if((e=this._clientHintsData)!==null&&e!==void 0&&e.platform&&(t=this._clientHintsData)!==null&&t!==void 0&&t.platformVersion)this._os=this._clientHintsData.platform,this._osVersion=this._clientHintsData.platformVersion;else{const r=navigator.userAgent,n=gj.find((o=>typeof o.test=="function"?o.test(r):o.test.some((i=>i.test(r)))));if(n){const o=n.describe(r);this._os=o[0],this._osVersion=o[1]}else this._os="unknown",this._osVersion="0"}}get browser(){return this._browser||this._getBrowserVersion(),this._browser}get browserVersion(){return this._browserVersion||this._getBrowserVersion(),this._browserVersion}get os(){return this._os||this._getOSVersion(),this._os}get osVersion(){return this._osVersion||this._getOSVersion(),this._osVersion}get isIE(){return this.browser==="Internet Explorer"}get isLegacyEdge(){return this.browser==="Microsoft Edge(Legacy)"}get isLegacyOpera(){return this.browser==="Opera(Legacy)"}get isFirefox(){return this.browser==="Firefox"}get isSafari(){return this.browser==="Safari"}get isChrome(){var e,t;if((e=this._clientHintsData)!==null&&e!==void 0&&(e=e.brands)!==null&&e!==void 0&&e.length)return(t=this._clientHintsData)===null||t===void 0?void 0:t.brands.some((n=>{var o;return((o=n.brand)===null||o===void 0?void 0:o.toLocaleLowerCase())==="chromium"}));const{userAgent:r}=navigator;return!this.isLegacyOpera&&!this.isLegacyEdge&&/chrome/i.test(r)&&/webkit/i.test(r)}get isLegacyChrome(){var e;return this.isChrome&&typeof((e=navigator.mediaDevices)===null||e===void 0?void 0:e.getDisplayMedia)!="function"}get isMacOS(){return this.os==="macOS"}get isIPad(){var e;return/iPad/i.test(navigator.userAgent)||this.isMacOS&&((e=navigator)===null||e===void 0?void 0:e.maxTouchPoints)>2}get isHarmonyOS(){return this.os==="HarmonyOS"}get isIOSMobile(){return this.os==="iOS"||this.isIPad}get architecture(){var e,t;return(e=(t=this._clientHintsData)===null||t===void 0?void 0:t.architecture)!==null&&e!==void 0?e:""}get isArm(){return this.architecture?this.architecture==="arm":/arm/i.test(navigator.userAgent)}get isChromeOS(){return this.os==="Chrome OS"}get isAndroidBrowser(){var e;return((e=this.os)===null||e===void 0?void 0:e.toLowerCase())==="android"}get isArmChromeOS(){return this.isArm&&this.isChromeOS}get isAndroidOrIOSBrowser(){return this.isAndroidBrowser||this.isIOSMobile}get isSupportEssentialAudioAndVideoAbility(){return typeof WebAssembly=="object"&&typeof Worker=="function"}get isSupportAudioWorklet(){return typeof AudioWorklet=="function"}get isSupportImageCapture(){return"ImageCapture"in window}get isSupportMediaStreamTrackProcessor(){var e;return this._mediaFeatureOptions?!((e=window.JsMediaSDK_Instance)===null||e===void 0||(e=e.util)===null||e===void 0||!e.isSupportMediaStreamTrackProcessor(this._mediaFeatureOptions)):"MediaStreamTrackProcessor"in window}get isSupportOffscreenCanvas(){var e;return(e=window.JsMediaSDK_Instance)===null||e===void 0||(e=e.util)===null||e===void 0?void 0:e.isSupportOffscreenCanvas()}get gpu(){var e;return this.isSupportOffscreenCanvas?(e=window.JsMediaSDK_Instance)===null||e===void 0||(e=e.util)===null||e===void 0||(e=e.getGpuInfo())===null||e===void 0?void 0:e.renderInfo:""}get bitness(){var e,t;return(e=(t=this._clientHintsData)===null||t===void 0?void 0:t.bitness)!==null&&e!==void 0?e:""}get model(){var e,t;return(e=(t=this._clientHintsData)===null||t===void 0?void 0:t.model)!==null&&e!==void 0?e:""}get wow64(){var e;if(this.os.toLowerCase()==="windows")return(e=this._clientHintsData)===null||e===void 0?void 0:e.wow64}get isSupportSendScreenSharing(){return"getDisplayMedia"in navigator.mediaDevices&&typeof navigator.mediaDevices.getDisplayMedia=="function"}get isSupportSharedArrayBuffer(){return typeof SharedArrayBuffer=="function"}get is32bitChrome(){var e;return!((e=window.JsMediaSDK_Instance)===null||e===void 0||(e=e.util)===null||e===void 0||!e.is32bitBrowser())}get isSwiftShader(){var e;return!((e=window.JsMediaSDK_Instance)===null||e===void 0||(e=e.util)===null||e===void 0||!e.isUsingSwiftShader())}set mediaFeatureOptions(e){this._mediaFeatureOptions=e}get isWeakRefSupported(){return typeof WeakRef<"u"}get isSupportESModule(){return"noModule"in document.createElement("script")}};function kg(){var e;const{isAndroidBrowser:t,isIOSMobile:r,osVersion:n,browserVersion:o,isChrome:i,isFirefox:a,isSafari:s}=Yt;var l,c;if(r)return Number((l=n.match(/^\d+/))===null||l===void 0?void 0:l[0])>=15;if(t)return Number((c=n.match(/^\d+/))===null||c===void 0?void 0:c[0])>=10;const d=Number((e=o.match(/^\d+/))===null||e===void 0?void 0:e[0]);return!!(i&&d>=69)||!!(s&&d>14)||!!(a&&d>=76)}function K3(){const{isSupportAudioWorklet:e,isSupportEssentialAudioAndVideoAbility:t,isAndroidOrIOSBrowser:r,isSupportSendScreenSharing:n}=Yt,o=navigator.mediaDevices!==void 0&&(t&&e||r),i=t&&navigator.mediaDevices!==void 0&&navigator.mediaCapabilities!==void 0,a=typeof"".replaceAll=="function";return{audio:a&&o,video:a&&i,screen:a&&t&&n}}class vj{constructor(t){this.instant=void 0,this.context=void 0,this.script=void 0,this.mic=void 0,this.instant=0,this.context=t,this.mic=null,this.script=t.createScriptProcessor(2048,1,1),this.script.onaudioprocess=r=>{const n=r.inputBuffer.getChannelData(0);let o,i=0;for(o=0;o<n.length;++o)i+=n[o]*n[o];this.instant=Math.sqrt(i/n.length)}}connectToSource(t){console.log("InputMicDetector is listening");try{var r;this.mic=this.context.createMediaStreamSource(t),this.mic.connect(this.script),(r=this.script)===null||r===void 0||r.connect(this.context.destination)}catch(n){console.error(n)}}stop(){var t,r;console.log("Audio Previewer stopped"),(t=this.mic)===null||t===void 0||t.disconnect(),this.mic=null,(r=this.script)===null||r===void 0||r.disconnect(),this.script=null}getMicVolume(){return this.instant}}const yj="https://st1.zoom.us/web_client/4qu8baa/audio/ring.mp3";class bj{constructor(){this.sampleAudio=void 0,this.audioCtx=void 0,this.destinationNode=void 0,this.audioPlayer=void 0,this.analyzserInterval=void 0,this.analyserNode=void 0,this.analyserNodeBufferDataArray=void 0,this.analyserCallback=void 0,this.sourceNode=void 0,this.mAudioStream=void 0,this.mSourceNode=void 0,this.mediaRecorder=void 0,this.isRecording=void 0,this.recorderChunks=[],this.recorderObjUrl=void 0,this.recorderPlayer=void 0,this.maximumRecordingTimer=void 0,this.shouldPlayAfterRecording=!0,this.isRunning=!1}testSpeaker(t){var r;if(typeof AudioContext!="function"||typeof MediaStreamAudioDestinationNode!="function"||!AudioContext.prototype.decodeAudioData)return void console.warn("Cannot test the speaker due to the browser capability");const{speakerId:n,sampleAudioUrl:o=yj,onAnalyseFrequency:i}=t||{};if(this.isRunning)return void console.warn("A tester is running,please stop it first");this.isRunning=!0,this.initAudioContext(),(((r=this.sampleAudio)===null||r===void 0?void 0:r.url)===o&&this.sampleAudio.data?Promise.resolve(this.sampleAudio.data):window.fetch(o).then((s=>s.arrayBuffer())).then((s=>this.audioCtx.decodeAudioData(s))).then((s=>(this.sampleAudio={url:o,data:s},s)))).then((s=>{var l,c,d;this.sourceNode=this.audioCtx.createBufferSource(),this.sourceNode.buffer=s,this.sourceNode.loop=!0,n&&(l=this.audioPlayer)!==null&&l!==void 0&&l.setSinkId&&this.audioPlayer.setSinkId(n),i?typeof AudioContext.prototype.createAnalyser=="function"?(this.analyzserInterval&&window.clearInterval(this.analyzserInterval),this.analyserCallback=i,this.initAnalyserNode(),this.analyserNode&&this.sourceNode.connect(this.analyserNode)):(this.sourceNode.connect(this.destinationNode),console.warn("Cannot analyze the stream due to the browser capability")):(this.analyserCallback=void 0,this.sourceNode.connect(this.destinationNode)),this.sourceNode.start(0),((c=this.audioCtx)===null||c===void 0?void 0:c.state)!=="running"&&((d=this.audioCtx)===null||d===void 0||d.resume()),this.audioPlayer&&(this.audioPlayer.muted=!1,this.audioPlayer.currentTime=0,this.audioPlayer.play())}));const a=()=>{this.isRunning=!1,this.audioPlayer&&(this.audioPlayer.currentTime=0,this.audioPlayer.pause()),this.analyserNode&&this.analyzserInterval&&(window.clearInterval(this.analyzserInterval),this.analyzserInterval=void 0,this.analyserNodeBufferDataArray=void 0),this.sourceNode&&(this.sourceNode.stop(0),this.sourceNode.disconnect(),this.sourceNode.buffer=null,this.sourceNode=void 0)};return{stop:a,destroy:()=>{var s;a(),this.analyserNode&&this.destinationNode&&(this.analyserNode.disconnect(this.destinationNode),this.analyserNode=void 0),(s=this.audioCtx)===null||s===void 0||s.close(),this.audioCtx=void 0}}}testMicrophone(t){var r;if(typeof AudioContext!="function"||typeof MediaStreamAudioDestinationNode!="function"||typeof AudioContext.prototype.createMediaStreamSource!="function"||typeof((r=navigator.mediaDevices)===null||r===void 0?void 0:r.getUserMedia)!="function")return void console.warn("Cannot test the microphone due to the browser capability");const{microphoneId:n,speakerId:o,recordAndPlay:i,maxRecordDuration:a,onAnalyseFrequency:s,onStartRecording:l,onStopRecording:c,onStartPlayRecording:d,onStopPlayRecording:p}=t||{};if(this.isRunning)return void console.warn("A tester is running,please stop it first");this.isRunning=!0,this.initAudioContext();const m=()=>{i&&this.mediaRecorder&&this.isRecording&&(this.shouldPlayAfterRecording=!0,this.mediaRecorder.state!=="inactive"&&this.mediaRecorder.stop())};window.navigator.mediaDevices.getUserMedia({audio:!n||{deviceId:{exact:n}}}).then((b=>{var v,C,A,R;this.mAudioStream=b,this.mSourceNode=(v=this.audioCtx)===null||v===void 0?void 0:v.createMediaStreamSource(b),this.audioPlayer.muted=!0,s?(this.analyzserInterval&&window.clearInterval(this.analyzserInterval),this.analyserCallback=s,this.initAnalyserNode(),this.analyserNode&&((A=this.mSourceNode)===null||A===void 0||A.connect(this.analyserNode))):this.analyserCallback=void 0,i&&(typeof MediaRecorder=="function"?(this.recorderObjUrl&&window.URL.revokeObjectURL(this.recorderObjUrl),this.mediaRecorder=new MediaRecorder(this.mAudioStream),this.mediaRecorder.ondataavailable=x=>{x.data&&this.recorderChunks.push(x.data)},this.mediaRecorder.onstop=()=>{if(this.isRecording=!1,this.maximumRecordingTimer&&(window.clearTimeout(this.maximumRecordingTimer),this.maximumRecordingTimer=void 0),c==null||c(),this.recorderChunks.length>0){var x;const k=new Blob(this.recorderChunks,{type:((x=this.recorderChunks[0])===null||x===void 0?void 0:x.type)||"audio/ogg; codecs=opus"});this.recorderObjUrl=window.URL.createObjectURL(k),this.shouldPlayAfterRecording&&this.playRecording(this.recorderObjUrl,o,d,p).catch((D=>{this.analyzserInterval&&(window.clearInterval(this.analyzserInterval),this.analyzserInterval=void 0,this.analyserNodeBufferDataArray=void 0),console.warn(D)})),this.recorderChunks=[],this.mediaRecorder&&(this.mediaRecorder.ondataavailable=null,this.mediaRecorder.onstop=null,this.mediaRecorder=void 0)}},this.mediaRecorder.start(),this.isRecording=!0,l==null||l(),this.maximumRecordingTimer=window.setTimeout((()=>{m()}),a||1e4)):console.warn("Cannot record the sound due to the browser capability")),((C=this.audioCtx)===null||C===void 0?void 0:C.state)!=="running"&&((R=this.audioCtx)===null||R===void 0||R.resume()),this.audioPlayer&&(this.audioPlayer.currentTime=0,this.audioPlayer.play())}));const y=()=>{this.isRunning=!1,this.maximumRecordingTimer&&(window.clearTimeout(this.maximumRecordingTimer),this.maximumRecordingTimer=void 0),this.audioPlayer&&(this.audioPlayer.currentTime=0,this.audioPlayer.pause()),this.analyserNode&&this.analyzserInterval&&(window.clearInterval(this.analyzserInterval),this.analyzserInterval=void 0,this.analyserNodeBufferDataArray=void 0),this.mSourceNode&&(s&&this.analyserNode&&this.mSourceNode.disconnect(this.analyserNode),this.mSourceNode=void 0),this.mAudioStream&&(this.mAudioStream.getAudioTracks().forEach((b=>{b.stop()})),this.mAudioStream=void 0),this.mediaRecorder&&(this.shouldPlayAfterRecording=!1,this.mediaRecorder.ondataavailable=null,this.mediaRecorder.onstop=null,this.mediaRecorder.state!=="inactive"&&this.mediaRecorder.stop(),this.isRecording=!1,this.mediaRecorder=void 0,this.recorderChunks=[]),this.recorderPlayer&&(this.recorderPlayer.currentTime=0,this.recorderPlayer.pause())};return{stop:y,stopRecording:m,destroy:()=>{var b;y(),this.analyserNode&&this.destinationNode&&(this.analyserNode.disconnect(this.destinationNode),this.analyserNode=void 0),(b=this.audioCtx)===null||b===void 0||b.close(),this.audioCtx=void 0}}}initAudioContext(){this.audioCtx&&this.audioPlayer||(this.audioCtx=new AudioContext,this.destinationNode=new MediaStreamAudioDestinationNode(this.audioCtx),this.audioPlayer=new Audio,this.audioPlayer.loop=!0,this.audioPlayer.srcObject=this.destinationNode.stream)}initAnalyserNode(){if(!this.audioCtx)return;this.analyserNode||(this.analyserNode=this.audioCtx.createAnalyser(),this.analyserNode.connect(this.destinationNode),this.analyserNode.fftSize=1024);const t=this.analyserNode.frequencyBinCount;this.analyserNodeBufferDataArray=new Uint8Array(t),this.analyzserInterval=window.setInterval(this.audioAnalyserCallback.bind(this),20)}audioAnalyserCallback(){if(this.analyserNodeBufferDataArray&&this.analyserNode&&this.analyserCallback){this.analyserNode.getByteFrequencyData(this.analyserNodeBufferDataArray);let t=0;for(const n of this.analyserNodeBufferDataArray)t+=n;const r=t/this.analyserNodeBufferDataArray.length;this.analyserCallback(r)}}playRecording(t,r,n,o){this.recorderPlayer=new Audio,this.recorderPlayer.src=t,this.recorderPlayer.currentTime=0,this.recorderPlayer.setSinkId&&r&&this.recorderPlayer.setSinkId(r);const i=()=>{o==null||o(),this.recorderPlayer&&(this.recorderPlayer.onpause=null,this.recorderPlayer.onended=null,this.recorderPlayer=void 0,this.isRunning=!1)};return new Promise(((a,s)=>{this.recorderPlayer&&(this.recorderPlayer.onpause=()=>{a(!0)},this.recorderPlayer.onended=()=>{a(!0)},this.recorderPlayer.onerror=s,n==null||n(),this.recorderPlayer.play().catch(s))})).finally((()=>{window.URL.revokeObjectURL(t),i()}))}}const hS="AudioNotStartedError";class Sj{constructor(t=""){this.audioContext=void 0,this.inputMicDetector=void 0,this.isMicUnmuted=void 0,this.isAudioStarted=void 0,this.audioStream=void 0,this.deviceId=void 0,this.tester=void 0,this.audioContext=null,this.inputMicDetector=null,this.isMicUnmuted=!1,this.isAudioStarted=!1,this.audioStream=null,this.deviceId=t,this.tester=new bj}async start(){if(this.audioStream||this.isAudioStarted)throw new Error("AudioAlreadyStartedError");try{const t=await navigator.mediaDevices.getUserMedia(this.getAudioConstraints());this.audioStream=t,this.isAudioStarted=!0}catch(t){throw t}}async unmute(){if(!this.audioStream||!this.isAudioStarted)throw new Error(hS);if(this.isMicUnmuted)throw new Error("AudioAlreadyUnmutedError");return this.toggleMicIsMuted(!0)}async mute(){if(!this.audioStream||!this.isAudioStarted)throw new Error(hS);if(!this.isMicUnmuted)throw new Error("AudioAlreadyMutedError");return this.toggleMicIsMuted(!1)}getCurrentVolume(){return this.inputMicDetector?this.inputMicDetector.getMicVolume():0}async stop(){if(!this.audioStream||!this.isAudioStarted)throw new Error(hS);this.audioStream.getAudioTracks().forEach((t=>t.stop())),this.audioStream=null,this.isAudioStarted=!1}async toggleMicIsMuted(t){if(t){if(!this.audioContext){const r=window.AudioContext||window.webkitAudioContext;this.audioContext=new r}this.inputMicDetector=new vj(this.audioContext),this.inputMicDetector.connectToSource(this.audioStream)}else this.inputMicDetector&&this.inputMicDetector.stop(),this.inputMicDetector=null;this.isMicUnmuted=t}getAudioConstraints(){return{audio:this.deviceId===""||{deviceId:{exact:this.deviceId}},video:!1}}testSpeaker(t){return this.tester.testSpeaker(t)}testMicrophone(t){return this.tester.testMicrophone(t)}}let ut=(function(e){return e[e.InitSuccess=1]="InitSuccess",e[e.InitSuccessVideo=1.1]="InitSuccessVideo",e[e.InitSuccessAudio=1.2]="InitSuccessAudio",e[e.InitSuccessSharing=1.3]="InitSuccessSharing",e[e.UserGrantCaptureAudio=2]="UserGrantCaptureAudio",e[e.CurrentVideoResolution=3]="CurrentVideoResolution",e[e.JpegDecThreadOk=4]="JpegDecThreadOk",e[e.JpegData=5]="JpegData",e[e.SharingPara=6]="SharingPara",e[e.VideoDecodeMaxSize=7]="VideoDecodeMaxSize",e[e.CurrentCaptureVideoWidthHeight=8]="CurrentCaptureVideoWidthHeight",e[e.StartVideoCaptureSuccess=9]="StartVideoCaptureSuccess",e[e.StopVideoCaptureSuccess=10]="StopVideoCaptureSuccess",e[e.StartRemoteControlSuccess=11]="StartRemoteControlSuccess",e[e.CancelRemoteControlSuccess=12]="CancelRemoteControlSuccess",e[e.RemoteControlCopiedTextNotify=13]="RemoteControlCopiedTextNotify",e[e.MonitorLog=14]="MonitorLog",e[e.CurrentDesktopSharingWidthHeight=15]="CurrentDesktopSharingWidthHeight",e[e.DesktopSharingCaptureSuccess=16]="DesktopSharingCaptureSuccess",e[e.CheckChromeSharingExtensionResponse=17]="CheckChromeSharingExtensionResponse",e[e.SharingDecodeMaxSize=18]="SharingDecodeMaxSize",e[e.DataChannelOffer=19]="DataChannelOffer",e[e.AesGcmIvResponse=21]="AesGcmIvResponse",e[e.SharingDesktopStreamHaveAudio=23]="SharingDesktopStreamHaveAudio",e[e.JoinComputerAudioComplete=24]="JoinComputerAudioComplete",e[e.JoinSharingAudioComplete=25]="JoinSharingAudioComplete",e[e.LeaveComputerAudioComplete=26]="LeaveComputerAudioComplete",e[e.LeaveSharingAudioComplete=27]="LeaveSharingAudioComplete",e[e.HidStatusMute=28]="HidStatusMute",e[e.WhiteboardSuccess=30]="WhiteboardSuccess",e[e.AudioStreamFailed=31]="AudioStreamFailed",e[e.VideoStreamFailed=32]="VideoStreamFailed",e[e.AudioSpeakerSetSuccess=33]="AudioSpeakerSetSuccess",e[e.AudiobridgeSetCcLangSuccess=36]="AudiobridgeSetCcLangSuccess",e[e.AudioLevelIndicator=38]="AudioLevelIndicator",e[e.SyncRendererTypeResponse=39]="SyncRendererTypeResponse",e[e.SendRemoteControlQrCode=55]="SendRemoteControlQrCode",e[e.StartVideoStreamInMaskSettingSuccess=66]="StartVideoStreamInMaskSettingSuccess",e[e.CurrentDecodeVideoQuality=66.5]="CurrentDecodeVideoQuality",e[e.CurrentDecodeVideoFps=66.6]="CurrentDecodeVideoFps",e[e.SharingFirstDecodeFrameReceivedSsrc=70]="SharingFirstDecodeFrameReceivedSsrc",e[e.StartVideoStreamInVbSettingSuccess=94]="StartVideoStreamInVbSettingSuccess",e[e.VbModelPreloading_3S=96]="VbModelPreloading_3S",e[e.VbModelPreloading_10S=97]="VbModelPreloading_10S",e[e.VbModelPreloadingOk=98]="VbModelPreloadingOk",e[e.NewActiveSpeakerFirstFrameCallback=111]="NewActiveSpeakerFirstFrameCallback",e[e.AudioBridgeFirstRecvData=114]="AudioBridgeFirstRecvData",e[e.AudioBridgeCanSendData=115]="AudioBridgeCanSendData",e[e.SpeakingWhenMute=121]="SpeakingWhenMute",e[e.StartAnnotationSuccess=158]="StartAnnotationSuccess",e[e.DeviceChangeEvent=159]="DeviceChangeEvent",e[e.RecaptureAudio=160]="RecaptureAudio",e[e.MediaStatsLog=209]="MediaStatsLog",e[e.InitFailed=-1]="InitFailed",e[e.InitFailedVideo=-1.1]="InitFailedVideo",e[e.InitFailedAudio=-1.2]="InitFailedAudio",e[e.InitFailedSharing=-1.3]="InitFailedSharing",e[e.AudioCaptureFailed=-2]="AudioCaptureFailed",e[e.AudioWebsocketBroken=-3]="AudioWebsocketBroken",e[e.VideoWebsocketBroken=-4]="VideoWebsocketBroken",e[e.SharingDecThreadFailed=-5]="SharingDecThreadFailed",e[e.AudioZeroData=-6]="AudioZeroData",e[e.AudioCtxSamplerate=-7]="AudioCtxSamplerate",e[e.UserForbiddedCaptureVideo=-8]="UserForbiddedCaptureVideo",e[e.UserCameraIsTakenByOtherPrograms=-9]="UserCameraIsTakenByOtherPrograms",e[e.StopVideoCaptureFailed=-10]="StopVideoCaptureFailed",e[e.StartRemoteControlFailed=-11]="StartRemoteControlFailed",e[e.CancelRemoteControlFailed=-12]="CancelRemoteControlFailed",e[e.RemoteControlPasteTextLengthOverflow=-14]="RemoteControlPasteTextLengthOverflow",e[e.UserStopDesktopSharing=-15]="UserStopDesktopSharing",e[e.UserCancelPermissionRequest=-16]="UserCancelPermissionRequest",e[e.DesktopSharingChromeExtensionUninstalled=-17]="DesktopSharingChromeExtensionUninstalled",e[e.DesktopSharingPermissionDenied=-18]="DesktopSharingPermissionDenied",e[e.DesktopSharingTimeOut=-19]="DesktopSharingTimeOut",e[e.DesktopSharingError=-20]="DesktopSharingError",e[e.AudioSpeakerSetError=-21]="AudioSpeakerSetError",e[e.DesktopSharingSystemError=-22]="DesktopSharingSystemError",e[e.SharingDesktopStreamHaveNoAudio=-27]="SharingDesktopStreamHaveNoAudio",e[e.AudioBridgeSocketConnectionError=-28]="AudioBridgeSocketConnectionError",e[e.AudioBridgeReconnectStart=-29]="AudioBridgeReconnectStart",e[e.AudioBridgeReconnectEnd=-31]="AudioBridgeReconnectEnd",e[e.WebglLostInMultiView=-32]="WebglLostInMultiView",e[e.MaskSettingParaError=-33]="MaskSettingParaError",e[e.VbSettingParaError=-34]="VbSettingParaError",e[e.NotifyUIFailover=-35]="NotifyUIFailover",e[e.AudiobridgeSetCcLangFailure=-39]="AudiobridgeSetCcLangFailure",e[e.NotifyUIWMSCFailover=-42]="NotifyUIWMSCFailover",e[e.NotifyUIWMSCWSSDisconnected=-43]="NotifyUIWMSCWSSDisconnected",e[e.RecoverWebrtcAudio=-44]="RecoverWebrtcAudio",e[e.WebglContextInvalid=-51]="WebglContextInvalid",e[e.WasmMemoryFail=-52]="WasmMemoryFail",e[e.WorkletProcessExceptions=-53]="WorkletProcessExceptions",e[e.NotSupportExternalCanvasInVTagRenderer=-55]="NotSupportExternalCanvasInVTagRenderer",e[e.HealthCheckFailed=-129]="HealthCheckFailed",e[e.StartAnnotationFailed=-130]="StartAnnotationFailed",e.AudioQosData="AUDIO_QOS_DATA",e.VideoQosData="VIDEO_QOS_DATA",e.ShareQosData="VIDEOSHARE_QOS_DATA",e.CommonQosData="COMMON_QOS_DATA",e.NetworkQualityChange="NETWORK_QUALITY_CHANGE",e.NetworkQualityChangeAudio="NETWORK_QUALITY_CHANGE_AUDIO",e.NetworkQualityChangeSharing="NETWORK_QUALITY_CHANGE_SHARING",e.AudioStreamMuted="AUDIO_STREAM_MUTED",e.AudioStreamUnmuted="AUDIO_STREAM_UNMUTED",e.AnnotationRedoStatus="ANNO_REDO_STATUS",e.AnnotationUndoStatus="ANNO_UNDO_STATUS",e.AnnoViewerRequestDraw="ANNO_VIEWER_REQUEST_DRAW",e.VideoStreamMuted="VIDEO_STREAM_MUTED",e.VideoStreamUnmuted="VIDEO_STREAM_UNMUTED",e})({}),ma=(function(e){return e[e.EncodeSuccess=1]="EncodeSuccess",e[e.DecodeSuccess=2]="DecodeSuccess",e[e.EncodeFailed=-1]="EncodeFailed",e[e.DecodeFailed=-2]="DecodeFailed",e})({}),mS=(function(e){return e.Spotlight="Spotlight",e.Unmute="Unmute",e.AllowToTalk="Allow to talk",e})({}),Os=(function(e){return e.Inherited="inherited",e.Active="active",e.PassiveByMuteOne="passive(mute one)",e.PassiveByMuteAll="passive(mute all)",e.SharingAudio="sharing audio",e})({}),Up=(function(e){return e.Inherited="inherited",e.Active="active",e.Passive="passive",e.SharingAudio="sharing audio",e})({}),vd=(function(e){return e.Active="active",e.Failover="failover",e.EndedBySystem="audio stream is ended by system",e.Pstn="pstn",e.MicrophoneError="microphone error",e})({}),Wf=(function(e){return e.Join="join",e.Leave="leave",e.Muted="muted",e.Unmuted="unmuted",e})({}),Da=(function(e){return e[e.Calling=1]="Calling",e[e.Ringing=2]="Ringing",e[e.Accepted=3]="Accepted",e[e.Busy=4]="Busy",e[e.NotAvailable=5]="NotAvailable",e[e.HangUp=6]="HangUp",e[e.Fail=7]="Fail",e[e.Success=8]="Success",e[e.Timeout=9]="Timeout",e[e.Canceling=10]="Canceling",e[e.Canceled=11]="Canceled",e[e.CancelFailed=12]="CancelFailed",e[e.NoAnswer=13]="NoAnswer",e[e.BlockNoHost=14]="BlockNoHost",e[e.BlockHighRate=15]="BlockHighRate",e[e.BlockTooFrequent=16]="BlockTooFrequent",e})({});const Ej=(()=>{const e=new ArrayBuffer(684),t=new Uint32Array(e);return t.set([1179011410,676,1163280727,544501094,16,65539,16e3,64e3,2097156,1635017060,640],0),new Blob([t],{type:"audio/wav"})})(),Cj=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]),wj=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]);let hs=(function(e){return e[e.HostGrab=0]="HostGrab",e[e.OnlyHost=1]="OnlyHost",e[e.AnyoneGrab=2]="AnyoneGrab",e[e.MultipleShare=3]="MultipleShare",e})({}),Mr=(function(e){return e.Sharing="sharing",e.Paused="paused",e.End="ended",e})({}),Gy=(function(e){return e[e.Video_90P=0]="Video_90P",e[e.Video_180P=1]="Video_180P",e[e.Video_360P=2]="Video_360P",e[e.Video_720P=3]="Video_720P",e[e.Video_1080P=4]="Video_1080P",e})({}),oT=(function(e){return e.Active="Active",e.Inactive="Inactive",e})({}),Lg=(function(e){return e.Muted="Muted",e.Unmuted="Unmuted",e})({}),gS=(function(e){return e.Started="Started",e.Stopped="Stopped",e.Failed="Failed",e})({}),iT=(function(e){return e.Approved="Approved",e.Rejected="Rejected",e})({}),Fg=(function(e){return e.PrivilegeChange="PrivilegeChange",e.StopScreenCapture="StopScreenCapture",e.ShareFromMainSession="ShareFromMainSession",e.StopCameraCapture="StopCameraCapture",e})({}),G3=(function(e){return e[e.ImageNotMatch=2]="ImageNotMatch",e[e.CanvasNotMatch=3]="CanvasNotMatch",e[e.VBModelNotMatch=4]="VBModelNotMatch",e})({});const uf="blur";let qi=(function(e){return e.User="user",e.Environment="environment",e.Left="left",e.Right="right",e})({});const Xm=Object.values(qi),us=1e3,aT="__ZOOM_SDK_SHARING_VIDEO__",sT="__ZOOM_SDK_ANNOTATION_CANVAS_@__",Uu="__ZOOM_SDK_VIDEO_ZONE__",vS="__ZOOM_SDK_MEDIA_PLAYBACK_SOURCE_VIDEO__",$p="__ZOOM_SDK_DYMMY_VIDEO_PLAYER_CANVAS_ID__",yS="__ZOOM_SDK_DUMMY_HIDDEN_SELF_VIEW_VIDEO_ID__",qy={data:{sample_rate:0,rtt:0,jitter:0,avg_loss:0,max_loss:0,rate:0,bandwidth:0}},ac={data:{sample_rate:0,rtt:0,jitter:0,avg_loss:0,max_loss:0,width:0,height:0,fps:0,rate:0,bandwidth:0}};let ya=(function(e){return e[e.Request=11]="Request",e[e.Decline=12]="Decline",e[e.Approve=13]="Approve",e[e.GiveUp=14]="GiveUp",e[e.StartControl=15]="StartControl",e[e.ContinueControl=16]="ContinueControl",e[e.StopControl=17]="StopControl",e[e.SwitchCamera=20]="SwitchCamera",e})({}),$u=(function(e){return e[e.Bk=0]="Bk",e[e.Center=1]="Center",e[e.ZoomIn=2]="ZoomIn",e[e.ZoomOut=3]="ZoomOut",e[e.Left=4]="Left",e[e.Right=5]="Right",e[e.Up=6]="Up",e[e.Down=7]="Down",e[e.SwitchCamera=8]="SwitchCamera",e})({}),Qd=(function(e){return e[e.Pan=192]="Pan",e[e.Tilt=48]="Tilt",e[e.Zoom=12]="Zoom",e[e.Focus=3]="Focus",e})({});(function(e){return e[e.ZoomIn=2]="ZoomIn",e[e.ZoomOut=3]="ZoomOut",e[e.Left=4]="Left",e[e.Right=5]="Right",e[e.Up=6]="Up",e[e.Down=7]="Down",e[e.SwitchCamera=8]="SwitchCamera",e})({});(function(e){return e[e.None=0]="None",e[e.ApproveAnother=3]="ApproveAnother",e[e.Stop=5]="Stop",e})({});let _p=(function(e){return e[e.Null=0]="Null",e[e.Normal=1]="Normal",e[e.VideoMode=2]="VideoMode",e[e.CameraMode=3]="CameraMode",e})({}),ai=(function(e){return e[e.Null=0]="Null",e[e.VirtualBackground=1]="VirtualBackground",e[e.Mask=2]="Mask",e[e.VideoProcessor=3]="VideoProcessor",e})({}),an=(function(e){return e.Computer="computer",e.Phone="phone",e})({}),Jy=(function(e){return e[e.Decline=0]="Decline",e[e.Approve=1]="Approve",e[e.CacheClean=2]="CacheClean",e})({}),zi=(function(e){return e.Unknown="unknown",e.Uninstalled="uninstalled",e.Installed="installed",e})({}),Yy=(function(e){return e.Unlaunched="unlaunched",e.Launched="launched",e})({}),bS=(function(e){return e.Started="started",e.Ended="ended",e})({}),SS=(function(e){return e[e.Max=30]="Max",e[e.Min=10]="Min",e[e.Default=24]="Default",e})({}),hh=(function(e){return e[e.Loading=1]="Loading",e[e.Done=2]="Done",e})({}),lT=(function(e){return e.Browser="Browser",e.Zoom="Zoom",e})({}),uT=(function(e){return e.Denoise="backgroundNoiseSuppression",e.OriginalSound="originalSound",e})({}),dE=(function(e){return e[e.Undefined=0]="Undefined",e[e.WebGL=1]="WebGL",e[e.WebGPU=2]="WebGPU",e[e.WebGL2=3]="WebGL2",e})({});(function(e){return e[e.H323=1]="H323",e[e.SIP=2]="SIP",e})({});let Zv=(function(e){return e[e.Success=0]="Success",e[e.Ringing=1]="Ringing",e[e.Timeout=2]="Timeout",e[e.Busy=101]="Busy",e[e.Fail=104]="Fail",e})({}),mh=(function(e){return e[e.Exception=-1]="Exception",e[e.PermissionReset=-2]="PermissionReset",e[e.LostAccess=-3]="LostAccess",e})({}),_a=(function(e){return e[e.AudioConnectionFailed=101]="AudioConnectionFailed",e[e.AudioStreamEnded=102]="AudioStreamEnded",e[e.MicrophonePermissionReset=103]="MicrophonePermissionReset",e[e.AudioStreamFailed=104]="AudioStreamFailed",e[e.MicrophoneMuted=105]="MicrophoneMuted",e[e.AudioStreamMuted=106]="AudioStreamMuted",e[e.AudioPlaybackInterrupted=107]="AudioPlaybackInterrupted",e[e.VideoConnectionFailed=201]="VideoConnectionFailed",e[e.VideoStreamEnded=202]="VideoStreamEnded",e[e.CameraPermissionReset=203]="CameraPermissionReset",e[e.WebGlContextInvalid=204]="WebGlContextInvalid",e[e.WasmOutOfMemory=205]="WasmOutOfMemory",e[e.VideoStreamFailed=206]="VideoStreamFailed",e[e.VideoStreamMuted=207]="VideoStreamMuted",e[e.SharingStreamFailed=301]="SharingStreamFailed",e})({}),cT=(function(e){return e[e.NoFallback=0]="NoFallback",e[e.FallbackToWasm=1]="FallbackToWasm",e})({}),ey=(function(e){return e[e.WebRTCAudio=1]="WebRTCAudio",e[e.WebRTCVideo=2]="WebRTCVideo",e[e.WebRTCAudio2=4]="WebRTCAudio2",e})({}),q3=(function(e){return e[e.WebRTCAudio=1]="WebRTCAudio",e[e.WebRTCAudio2=2]="WebRTCAudio2",e})({}),Xd=(function(e){return e[e.BROWSER_NOT_SUPPORTED=-3]="BROWSER_NOT_SUPPORTED",e[e.DEVICE_UNSUPPORTED=-4]="DEVICE_UNSUPPORTED",e[e.OTHER_ERROR=-7]="OTHER_ERROR",e[e.DEVICE_UNVERIFIED=-8]="DEVICE_UNVERIFIED",e[e.FEATURE_DISABLED=-9]="FEATURE_DISABLED",e[e.FORCE_SAME_AV_STRATEGY=-10]="FORCE_SAME_AV_STRATEGY",e})({});const Ij={[Xd.BROWSER_NOT_SUPPORTED]:"Your browser does not support WebRTC Video.",[Xd.DEVICE_UNSUPPORTED]:"WebRTC video cannot currently run on this environment. We are evaluating support for it in the future.",[Xd.OTHER_ERROR]:"An error occurred with WebRTC video.",[Xd.DEVICE_UNVERIFIED]:"WebRTC video has not been verified in this environment. We are evaluating it for future support.",[Xd.FEATURE_DISABLED]:"We disabled WebRTC video for this environment.",[Xd.FORCE_SAME_AV_STRATEGY]:"The same AV strategy is forced."};let Wi=(function(e){return e[e.SELECT_MOUSE=0]="SELECT_MOUSE",e[e.SELECT_TOOL=1]="SELECT_TOOL",e[e.SELECT_ERASER=2]="SELECT_ERASER",e[e.UNDO=3]="UNDO",e[e.REDO=4]="REDO",e[e.CLEAR=5]="CLEAR",e[e.CLOSE_TOOL_BAR=6]="CLOSE_TOOL_BAR",e[e.UPDATE_PARAMS=7]="UPDATE_PARAMS",e[e.PAUSE_ANNOTATION=8]="PAUSE_ANNOTATION",e[e.SHOW_ANNOTATOR_NAME=9]="SHOW_ANNOTATOR_NAME",e[e.ANNOTATOR_ID_TO_NAME=10]="ANNOTATOR_ID_TO_NAME",e[e.ANNO_CANVAS_SIZE_UPDATE=11]="ANNO_CANVAS_SIZE_UPDATE",e[e.STAMP=12]="STAMP",e[e.SPOTLIGHT=13]="SPOTLIGHT",e[e.TEXTBOX=14]="TEXTBOX",e[e.SELECT_OBJ=15]="SELECT_OBJ",e[e.UPDATE_REMOTE_POSITION_INFO=16]="UPDATE_REMOTE_POSITION_INFO",e[e.UPDATE_VANISHING_TOOL_TIME=17]="UPDATE_VANISHING_TOOL_TIME",e})({}),ES=(function(e){return e[e.Mine=0]="Mine",e[e.Viewer=1]="Viewer",e[e.All=2]="All",e})({}),yl=(function(e){return e[e.None=0]="None",e[e.Pen=1]="Pen",e[e.Highlighter=2]="Highlighter",e[e.Spotlight=3]="Spotlight",e[e.Arrow=4]="Arrow",e[e.Eraser=7]="Eraser",e[e.Line=11]="Line",e[e.Arrow1=12]="Arrow1",e[e.Rectangle=14]="Rectangle",e[e.RectangleSemiFill=15]="RectangleSemiFill",e[e.Ellipse=18]="Ellipse",e[e.EllipseSemiFill=19]="EllipseSemiFill",e[e.DoubleArrow=20]="DoubleArrow",e[e.RectangleFill=21]="RectangleFill",e[e.EllipseFill=23]="EllipseFill",e[e.Diamond=24]="Diamond",e[e.StampArrow=25]="StampArrow",e[e.StampCheck=26]="StampCheck",e[e.StampX=27]="StampX",e[e.StampStar=31]="StampStar",e[e.StampHeart=32]="StampHeart",e[e.StampQuestionMark=33]="StampQuestionMark",e[e.VanishingPen=36]="VanishingPen",e[e.DiamondSemiFill=37]="DiamondSemiFill",e[e.DiamondFill=38]="DiamondFill",e[e.VanishingArrow=43]="VanishingArrow",e[e.VanishingDoubleArrow=44]="VanishingDoubleArrow",e[e.VanishingDiamond=45]="VanishingDiamond",e[e.VanishingEllipse=46]="VanishingEllipse",e[e.VanishingRectangle=47]="VanishingRectangle",e})({}),dT=(function(e){return e[e.White=4294967295]="White",e[e.Red=4294908185]="Red",e[e.Yellow=4294958642]="Yellow",e[e.Green=4286760838]="Green",e[e.Blue=4281240831]="Blue",e[e.LightPurple=4290017791]="LightPurple",e[e.Pink=4294916295]="Pink",e[e.Orange=4294937088]="Orange",e[e.LimeTreeGreen=4283029022]="LimeTreeGreen",e[e.IceBlue=4283554027]="IceBlue",e[e.DarkGrey=4278190080]="DarkGrey",e[e.DarkRed=4286513152]="DarkRed",e[e.Brown=4286006280]="Brown",e[e.DarkGreen=4278940200]="DarkGreen",e[e.DarkBlue=4279521219]="DarkBlue",e})({});(function(e){return e[e.Nominal=0]="Nominal",e[e.Fair=1]="Fair",e[e.Serious=2]="Serious",e[e.Critical=3]="Critical",e})({});let pE=(function(e){return e.FrontCamera="frontCam",e.RearCamera="rearCam",e})({}),pT=(function(e){return e[e.Success=0]="Success",e[e.Failed=1]="Failed",e})({});const zf=152,Aj=[{name:"audio_simd.min.js",category:"audio",type:"worker",tag:"simd",alias:"audioSIMDWorkletPath"},{name:"audio.simd.wasm",category:"audio",type:"wasm",tag:"simd",alias:"audioSIMDWasm"},{name:"js_audio_process.min.js",category:"audio",type:"worker",tag:"",alias:"audioWorkerPath"},{name:"audio.encode.wasm",category:"audio",type:"wasm",tag:"",alias:"audioWasm"},{name:"js_audio_worklet.min.js",category:"audio",type:"worklet",tag:"",alias:"audioWorkletPath"},{name:"js_audio_worklet_simd.min.js",category:"audio",type:"worklet",tag:"simd",alias:"audioWorkletSIMDPath"},{name:"js_audio_worklet_process.min.js",category:"audio",type:"worklet",tag:"",alias:"audioWorkletProcessPath"},{name:"js_sharing_audio_worklet.min.js",category:"audio",type:"worklet",tag:"",alias:"sharingAudioWorkletPath"},{name:"js_audio_level_worklet_process.min.js",category:"audio",type:"worklet",tag:"",alias:"audioLevelWorkletPath"},{name:"video_mtsimd.min.js",category:"video",type:"worker",tag:"simd,thread",alias:"videoMSIMDWorkerPath"},{name:"video.mtsimd.wasm",category:"video",type:"wasm",tag:"simd,thread,videoShare",alias:"videoMSIMDWasm"},{name:"video_m.min.js",category:"video",type:"worker",tag:"thread",alias:"videoMtWorkerPath"},{name:"video.mt.wasm",category:"video",type:"wasm",tag:"thread",alias:"videoMtWasm"},{name:"video_simd.min.js",category:"video",type:"worker",tag:"simd",alias:"videoSIMDWorkerPath"},{name:"video.simd.wasm",category:"video",type:"wasm",tag:"simd",alias:"videoSIMDWasm"},{name:"video_s.min.js",category:"video",type:"worker",tag:"",alias:"videoWorkerPath"},{name:"video.decode.wasm",category:"video",type:"wasm",tag:"",alias:"videoWasm"},{name:"video_share_mtsimd.min.js",category:"video",type:"worker",tag:"videoShare",alias:"vsmiworkerpath"},{name:"sharing_mtsimd.min.js",category:"sharing",type:"worker",tag:"simd,thread",alias:"sharingMSIMDWorkerPath"},{name:"sharing_m.min.js",category:"sharing",type:"worker",tag:"thread",alias:"sharingMtWorkerPath"},{name:"sharing_simd.min.js",category:"sharing",type:"worker",tag:"simd",alias:"sharingSIMDWorkerPath"},{name:"sharing_s.min.js",category:"sharing",type:"worker",tag:"",alias:"sharingWorkerPath"},{name:"net_thread.min.js",category:"common",type:"worker",tag:"thread",alias:"netThreadPath"}];class Ka{constructor(){this.assetsPath=void 0,this.instance=void 0,this.callbackList=void 0,this.mediaWorkersPath=void 0,this.mediaOptions=void 0,this.inProgress=void 0,this.callbackList=[]}static getInstance(){return this.agentInstance===void 0&&(this.agentInstance=new Ka),this.agentInstance}static getMaxCountRender(t,r,n){var o;const i=n?{disableRenderLimits:!0}:r;return(o=window.JsMediaSDK_Instance)===null||o===void 0?void 0:o.util.getMaxCountRender(t,i)}static initVideoPlayer(t){var r;return(r=window.JsMediaSDK_Instance)===null||r===void 0?void 0:r.initVideoPlayer(t)}init(t,r,n){var o,i,a,s;!this.instance&&window.JsMediaSDK_Instance&&(this.instance=new window.JsMediaSDK_Instance({...r??{},mediaSDKConfig:{mediaSDKCDNPath:t}})),this.onMediaSDKCallback=this.onMediaSDKCallback.bind(this),this.mediaOptions=r,(o=this.instance)===null||o===void 0||o.setProps({callback:this.onMediaSDKCallback,isPreviewMode:!0,meetingParams:{cid:"",userId:0,rwgHost:"",nginxHost:"",abToken:"",confId:"",e2eEncrypt:!0,enableWebtransport:!1,webtransportPort:0,rwgToMediaSDKConfig:{},webrtcMode:0},mediaParams:{videoDecodeThreadNum:(i=Ka.getMaxCountRender(!1,(a=this.mediaOptions)===null||a===void 0?void 0:a.enableMultiDecodeVideoWithoutSAB,n))!==null&&i!==void 0?i:1,rendererType:1,isEnableHD:!0,isEnableDecodingHW:!0,isEnableEncodingHW:!0}}),(s=this.instance)===null||s===void 0||s.initVideoEncode(),this.inProgress=!0}onMediaSDKCallback(t,r){this.callbackList.length>0&&this.callbackList.forEach((n=>n(t,r)))}registerCallback(t){this.callbackList.push(t)}unregisterCallback(t){this.callbackList=this.callbackList.filter((r=>r!==t))}async destroy(){var t;this.callbackList=[],await((t=this.instance)===null||t===void 0?void 0:t.destroy()),this.instance=null,this.inProgress=!1}disconnect(){var t,r;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(17,{}),(r=this.instance)===null||r===void 0||r.JsMediaSDK_UnInit()}startVirtualBackgroundSetting(t){var r;const{imageId:n,cameraDeviceId:o,ssid:i,...a}=t;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(91,{bgdom:n,VideoSelectValue:o==="default"?null:o,ssid:0,usingFacingMode:["user","environment"].includes(o),...a})}updateVirtualBackgroundImage(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(92,{bgdom:t})}stopVirtualBackgroundSetting(t=!1){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(93,{isSwitch:t})}startMaskSetting(t,r,n,o,i,a,s,l,c){var d;(d=this.instance)===null||d===void 0||d.Notify_MeidaSDK(62,{canvas:t,maskdom:null,bgdom:null,dx:0,dy:0,dWidth:170,dHeight:170,width:1280,height:720,ssid:0,originWidth:379,originHeight:213,VideoSelectValue:i==="default"?null:i,usingFacingMode:["user","environment"].includes(i)})}stopMaskSetting(t=!1){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(65,{isSwitch:t})}}Ka.agentInstance=void 0;const xe="INVALID_OPERATION",Vo="INTERNAL_ERROR",v0="OPERATION_TIMEOUT",Zo="INSUFFICIENT_PRIVILEGES",ty="IMPROPER_MEETING_STATE",mr="INVALID_PARAMETERS",fT="OPERATION_CANCELLED";var fE=function(e,t){return fE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},fE(e,t)};function Za(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}fE(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _h=function(){return _h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_h.apply(this,arguments)};function J3(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return(function(d){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&d[0]?n.return:d[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,d[1])).done)return o;switch(n=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,n=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(d[0]===6&&a.label<o[1]){a.label=o[1],o=d;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(d);break}o[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(p){d=[6,p],n=0}finally{r=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}})([l,c])}}}function Zh(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ls(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function al(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Pp(e){return this instanceof Pp?(this.v=e,this):new Pp(e)}function Un(e){return typeof e=="function"}function Zm(e){var t=e((function(r){Error.call(r),r.stack=new Error().stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var CS=Zm((function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
42
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Oa(e,t){return uj(e)||cj(e,t)||dj(e,t)||pj()}var qr=ae.createContext(),fj=function(t){var r,n,o,i,a,s,l,c,d,p,m,y,b,v,C,A,R=(r=t.value)!==null&&r!==void 0?r:{},x=ae.useState((n=R.ripple)!==null&&n!==void 0?n:!1),k=Oa(x,2),D=k[0],F=k[1],$=ae.useState((o=R.inputStyle)!==null&&o!==void 0?o:"outlined"),U=Oa($,2),G=U[0],Y=U[1],Q=ae.useState((i=R.locale)!==null&&i!==void 0?i:"en"),me=Oa(Q,2),ne=me[0],Ee=me[1],ce=ae.useState((a=R.appendTo)!==null&&a!==void 0?a:null),_e=Oa(ce,2),Ne=_e[0],oe=_e[1],Se=ae.useState((s=R.styleContainer)!==null&&s!==void 0?s:null),re=Oa(Se,2),we=re[0],Ae=re[1],Pe=ae.useState((l=R.cssTransition)!==null&&l!==void 0?l:!0),Oe=Oa(Pe,2),Ke=Oe[0],St=Oe[1],st=ae.useState((c=R.autoZIndex)!==null&&c!==void 0?c:!0),yt=Oa(st,2),$e=yt[0],ot=yt[1],it=ae.useState((d=R.hideOverlaysOnDocumentScrolling)!==null&&d!==void 0?d:!1),Ie=Oa(it,2),tt=Ie[0],mt=Ie[1],Wt=ae.useState((p=R.nonce)!==null&&p!==void 0?p:null),cr=Oa(Wt,2),At=cr[0],Ve=cr[1],Jt=ae.useState((m=R.nullSortOrder)!==null&&m!==void 0?m:1),ar=Oa(Jt,2),pr=ar[0],gr=ar[1],en=ae.useState((y=R.zIndex)!==null&&y!==void 0?y:{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200}),Wr=Oa(en,2),Xr=Wr[0],Pr=Wr[1],Br=ae.useState((b=R.ptOptions)!==null&&b!==void 0?b:{mergeSections:!0,mergeProps:!0}),Hr=Oa(Br,2),jr=Hr[0],zr=Hr[1],Jr=ae.useState((v=R.pt)!==null&&v!==void 0?v:void 0),In=Oa(Jr,2),tn=In[0],vr=In[1],at=ae.useState((C=R.unstyled)!==null&&C!==void 0?C:!1),Pt=Oa(at,2),pt=Pt[0],Rt=Pt[1],rt=ae.useState((A=R.filterMatchModeOptions)!==null&&A!==void 0?A:{text:[En.STARTS_WITH,En.CONTAINS,En.NOT_CONTAINS,En.ENDS_WITH,En.EQUALS,En.NOT_EQUALS],numeric:[En.EQUALS,En.NOT_EQUALS,En.LESS_THAN,En.LESS_THAN_OR_EQUAL_TO,En.GREATER_THAN,En.GREATER_THAN_OR_EQUAL_TO],date:[En.DATE_IS,En.DATE_IS_NOT,En.DATE_BEFORE,En.DATE_AFTER]}),ge=Oa(rt,2),be=ge[0],We=ge[1],Gt=function(Cr,zt,Qe,Et){var Ht,ur=document.getElementById(Qe);if(!ur)throw Error("Element with id ".concat(Qe," not found."));var Dr=ur.getAttribute("href").replace(Cr,zt),pn=document.createElement("link");pn.setAttribute("rel","stylesheet"),pn.setAttribute("id",Qe),pn.setAttribute("href",Dr),pn.addEventListener("load",function(){Et&&Et()}),(Ht=ur.parentNode)===null||Ht===void 0||Ht.replaceChild(pn,ur)};ae.useEffect(function(){bi.ripple=D},[D]),ae.useEffect(function(){bi.inputStyle=G},[G]),ae.useEffect(function(){bi.locale=ne},[ne]);var Qt={changeTheme:Gt,ripple:D,setRipple:F,inputStyle:G,setInputStyle:Y,locale:ne,setLocale:Ee,appendTo:Ne,setAppendTo:oe,styleContainer:we,setStyleContainer:Ae,cssTransition:Ke,setCssTransition:St,autoZIndex:$e,setAutoZIndex:ot,hideOverlaysOnDocumentScrolling:tt,setHideOverlaysOnDocumentScrolling:mt,nonce:At,setNonce:Ve,nullSortOrder:pr,setNullSortOrder:gr,zIndex:Xr,setZIndex:Pr,ptOptions:jr,setPtOptions:zr,pt:tn,setPt:vr,filterMatchModeOptions:be,setFilterMatchModeOptions:We,unstyled:pt,setUnstyled:Rt};return ae.createElement(qr.Provider,{value:Qt},t.children)},Ur=bi,eu=(e=>(e.NOT_STARTED="NOT_STARTED",e.ONLY_PANELIST="ONLY_PANELIST",e.IN_PROGRESS="IN_PROGRESS",e.CLOSED="CLOSED",e))(eu||{});const U3=ae.createContext({credentials:{sessionName:"test",signature:"",userName:"",sessionPasscode:""},changeUserRole:()=>Promise.resolve(),breakpoint:0,changePluginBreakpoint:()=>{},sessionStatus:"NOT_STARTED",initVotingPreSession:()=>Promise.resolve(),initVotingSession:()=>Promise.resolve(),closeVotingSession:()=>Promise.resolve()}),Tf=()=>ae.useContext(U3),no=Symbol("store"),Ot=Symbol("getState"),$n=Symbol("dispatch"),Ky=Symbol("additionFeatures"),Ge=Symbol("mediaContext");function $3(e,t,r){e.readyState?e.onreadystatechange=()=>{e.readyState!=="loaded"&&e.readyState!=="complete"||(e.onreadystatechange=null,t())}:(e.onload=()=>{t()},e.onerror=()=>{r()}),window.crossOriginIsolated&&(e.crossOrigin="anonymous");const n=document.getElementsByTagName("head")[0];typeof n.append=="function"?n.append(e):n.appendChild(e)}function Ym(e,t,r,n){const o=document.createElement("script");o.type=n?"module":"text/javascript",o.src=e,$3(o,t,r)}function hj(e,t,r){const n=document.createElement("link");n.href=e,n.type="text/css",n.rel="stylesheet",n.media="screen,print",$3(n,t,r)}function W3(e,t){let r=e;/^https?:\/\//.test(r)||(r=`https://${e}`);try{const n=new URL(r);if(!t)return n.href;if(t.hostname)return n.hostname;if(t.path)return n.pathname}catch{return""}return""}function Xh(e){if(e){var t;const r=document.getElementById(e);r==null||(t=r.parentNode)===null||t===void 0||t.removeChild(r)}}function Qm(e,t){if(!e||typeof e=="string")return!1;if(e.ownerDocument===window.document)return e instanceof t;{var r;const n=(r=e.ownerDocument)===null||r===void 0?void 0:r.defaultView;let o;return!!n&&(t.name==="HTMLVideoElement"?o=n.HTMLVideoElement:t.name==="HTMLCanvasElement"?o=n.HTMLCanvasElement:t.name==="HTMLIFrameElement"?o=n.HTMLIFrameElement:t.name==="HTMLElement"&&(o=n.HTMLElement),!!o&&e instanceof o||e instanceof t)}}function iu(e){return Qm(e,HTMLVideoElement)}function Of(e){return Qm(e,HTMLCanvasElement)}function tT(e,t){return Array.from(document.getElementsByTagName(t)).some((r=>r.contains(e)))}function rT(e,t,r){const n=e.parentElement;if(!n)return null;const o=document.createElement("canvas");o.id=t,n==null||n.appendChild(o);let i=null;function a(){r&&r()}return typeof ResizeObserver<"u"?(i=new ResizeObserver(a),i.observe(e),n&&i.observe(n)):window.addEventListener("resize",a),a(),o._overlayCleanup=function(){i?(i.unobserve(e),n&&i.unobserve(n),i.disconnect(),i=null):window.removeEventListener("resize",a),typeof o.remove=="function"?o.remove():n&&n.removeChild(o)},o}function nT(e){var t;const r=e.getBoundingClientRect(),n=(t=e.parentElement)===null||t===void 0?void 0:t.getBoundingClientRect(),o=getComputedStyle(e),i=parseFloat(o.borderTopWidth)||0,a=parseFloat(o.borderLeftWidth)||0,s=a+(parseFloat(o.borderRightWidth)||0),l=i+(parseFloat(o.borderBottomWidth)||0),c=Math.max(e.width/(r.width-s),e.height/(r.height-l)),d={width:e.width/c,height:e.height/c},p=r.top-((n==null?void 0:n.top)||0),m=r.left-((n==null?void 0:n.left)||0);return{size:d,position:{top:`${p+((r.height-l-d.height)/2+i)}px`,left:`${m+((r.width-s-d.width)/2+a)}px`}}}let m0="";m0="zoom.us";const g0="5.0.0",Qv=`https://dmogdx0jrul3u.cloudfront.net/${g0}/lib/av`,Xc=`https://source.zoom.us/${g0}/lib/av`,Xv=`https://jssdk.zoomus.cn/${g0}/lib/av`,gc=()=>m0;function Oo(e,t){const r=t.match(e);return r&&r.length>0&&r[1]||""}function z3(e,t){const r=t.match(e);return r&&r.length>1&&r[2]||""}const Au=/version\/(\d+(\.?_?\d+)+)/i,mj=[{test:[/opera/i],describe:e=>["Opera(Legacy)",Oo(Au,e)||Oo(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e)]},{test:[/opr\/|opios/i],describe:e=>["Opera",Oo(/(?:opr|opios)[\s/](\S+)/i,e)||Oo(Au,e)]},{test:[/SamsungBrowser/i],describe:e=>["Samsung Internet for Android",Oo(Au,e)||Oo(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e)]},{test:[/micromessenger/i],describe:e=>["WeChat",Oo(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Oo(Au,e)]},{test:[/qqbrowser/i],describe:e=>[/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser",Oo(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Oo(Au,e)]},{test:[/msie|trident/i],describe:e=>["Internet Explorer",Oo(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e)]},{test:[/\sedg\//i],describe:e=>["Microsoft Edge",Oo(/\sedg\/(\d+(\.?_?\d+)+)/i,e)]},{test:[/edg([ea]|ios)/i],describe:e=>["Microsoft Edge(Legacy)",z3(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e)]},{test:[/firefox|iceweasel|fxios/i],describe:e=>["Firefox",Oo(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e)]},{test:[/electron/i],describe:e=>["Electron",Oo(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e)]},{test:[/chromium/i],describe:e=>["Chromium",Oo(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Oo(Au,e)]},{test:[/chrome|crios|crmo/i],describe:e=>["Chrome",Oo(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e)]},{test:e=>!/like android/i.test(e)&&/android/i.test(e),describe:e=>["Android Browser",Oo(Au,e)]},{test:[/safari|applewebkit/i],describe:e=>["Safari",Oo(Au,e)]}],gj=[{test:e=>{const t=e.match(/OpenHarmony (\d+\.?\d*)/);return(t==null?void 0:t.length)&&Number(t[1])>=5},describe:e=>["HarmonyOS",Oo(/OpenHarmony (\d+\.?\d*)/i,e)]},{test:[/windows /i],describe:e=>["Windows",Oo(/Windows ((NT|XP)( \d\d?.\d)?)/i,e)]},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:e=>["iOS",z3(/(Version\/)(\d[\d.]+)/,e)]},{test:[/macintosh/i],describe:e=>["macOS",Oo(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,".")]},{test:[/(ipod|iphone|ipad)/i],describe:e=>["iOS",Oo(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".")]},{test:e=>!/like android/i.test(e)&&/android/i.test(e),describe:e=>["Android",Oo(/android[\s/-](\d+(\.\d+)*)/i,e)]},{test:[/linux/i],describe:()=>["Linux"]},{test:[/CrOS/],describe:()=>["Chrome OS"]}],Yt=new class{constructor(){this._browser=void 0,this._os=void 0,this._browserVersion=void 0,this._osVersion=void 0,this._clientHintsData=void 0,this._mediaFeatureOptions=void 0,"userAgentData"in navigator&&navigator.userAgentData.getHighEntropyValues(["architecture","bitness","formFactor","model","platformVersion","wow64"]).then((e=>{this._clientHintsData=e,this._os&&this._osVersion&&this._clientHintsData.platform&&this._clientHintsData.platformVersion&&(this._os=this._clientHintsData.platform,this._osVersion=this._clientHintsData.platformVersion)})).catch((e=>{console.warn(e)}))}_getBrowserVersion(){var e;if((e=this._clientHintsData)!==null&&e!==void 0&&(e=e.brands)!==null&&e!==void 0&&e.length){const t=this._clientHintsData.brands.filter((n=>!/(Chromium|Not.*Brand)/i.test(n.brand)))[0];t&&(this._browser=t.brand);const r=this._clientHintsData.brands.find((n=>{var o;return((o=n.brand)===null||o===void 0?void 0:o.toLowerCase())==="chromium"}));r?(this._browserVersion=r.version,this._browser||(this._browser=r.brand)):this._browserVersion=t.version}else{const t=navigator.userAgent,r=mj.find((n=>typeof n.test=="function"?n.test(t):n.test.some((o=>o.test(t)))));if(r){const n=r.describe(t);this._browser=n[0],this._browserVersion=n[1],this.isIOSMobile&&(this._browser="ios-safari")}else this._browser="unknown",this._browserVersion="0"}}_getOSVersion(){var e,t;if((e=this._clientHintsData)!==null&&e!==void 0&&e.platform&&(t=this._clientHintsData)!==null&&t!==void 0&&t.platformVersion)this._os=this._clientHintsData.platform,this._osVersion=this._clientHintsData.platformVersion;else{const r=navigator.userAgent,n=gj.find((o=>typeof o.test=="function"?o.test(r):o.test.some((i=>i.test(r)))));if(n){const o=n.describe(r);this._os=o[0],this._osVersion=o[1]}else this._os="unknown",this._osVersion="0"}}get browser(){return this._browser||this._getBrowserVersion(),this._browser}get browserVersion(){return this._browserVersion||this._getBrowserVersion(),this._browserVersion}get os(){return this._os||this._getOSVersion(),this._os}get osVersion(){return this._osVersion||this._getOSVersion(),this._osVersion}get isIE(){return this.browser==="Internet Explorer"}get isLegacyEdge(){return this.browser==="Microsoft Edge(Legacy)"}get isLegacyOpera(){return this.browser==="Opera(Legacy)"}get isFirefox(){return this.browser==="Firefox"}get isSafari(){return this.browser==="Safari"}get isChrome(){var e,t;if((e=this._clientHintsData)!==null&&e!==void 0&&(e=e.brands)!==null&&e!==void 0&&e.length)return(t=this._clientHintsData)===null||t===void 0?void 0:t.brands.some((n=>{var o;return((o=n.brand)===null||o===void 0?void 0:o.toLocaleLowerCase())==="chromium"}));const{userAgent:r}=navigator;return!this.isLegacyOpera&&!this.isLegacyEdge&&/chrome/i.test(r)&&/webkit/i.test(r)}get isLegacyChrome(){var e;return this.isChrome&&typeof((e=navigator.mediaDevices)===null||e===void 0?void 0:e.getDisplayMedia)!="function"}get isMacOS(){return this.os==="macOS"}get isIPad(){var e;return/iPad/i.test(navigator.userAgent)||this.isMacOS&&((e=navigator)===null||e===void 0?void 0:e.maxTouchPoints)>2}get isHarmonyOS(){return this.os==="HarmonyOS"}get isIOSMobile(){return this.os==="iOS"||this.isIPad}get architecture(){var e,t;return(e=(t=this._clientHintsData)===null||t===void 0?void 0:t.architecture)!==null&&e!==void 0?e:""}get isArm(){return this.architecture?this.architecture==="arm":/arm/i.test(navigator.userAgent)}get isChromeOS(){return this.os==="Chrome OS"}get isAndroidBrowser(){var e;return((e=this.os)===null||e===void 0?void 0:e.toLowerCase())==="android"}get isArmChromeOS(){return this.isArm&&this.isChromeOS}get isAndroidOrIOSBrowser(){return this.isAndroidBrowser||this.isIOSMobile}get isSupportEssentialAudioAndVideoAbility(){return typeof WebAssembly=="object"&&typeof Worker=="function"}get isSupportAudioWorklet(){return typeof AudioWorklet=="function"}get isSupportImageCapture(){return"ImageCapture"in window}get isSupportMediaStreamTrackProcessor(){var e;return this._mediaFeatureOptions?!((e=window.JsMediaSDK_Instance)===null||e===void 0||(e=e.util)===null||e===void 0||!e.isSupportMediaStreamTrackProcessor(this._mediaFeatureOptions)):"MediaStreamTrackProcessor"in window}get isSupportOffscreenCanvas(){var e;return(e=window.JsMediaSDK_Instance)===null||e===void 0||(e=e.util)===null||e===void 0?void 0:e.isSupportOffscreenCanvas()}get gpu(){var e;return this.isSupportOffscreenCanvas?(e=window.JsMediaSDK_Instance)===null||e===void 0||(e=e.util)===null||e===void 0||(e=e.getGpuInfo())===null||e===void 0?void 0:e.renderInfo:""}get bitness(){var e,t;return(e=(t=this._clientHintsData)===null||t===void 0?void 0:t.bitness)!==null&&e!==void 0?e:""}get model(){var e,t;return(e=(t=this._clientHintsData)===null||t===void 0?void 0:t.model)!==null&&e!==void 0?e:""}get wow64(){var e;if(this.os.toLowerCase()==="windows")return(e=this._clientHintsData)===null||e===void 0?void 0:e.wow64}get isSupportSendScreenSharing(){return"getDisplayMedia"in navigator.mediaDevices&&typeof navigator.mediaDevices.getDisplayMedia=="function"}get isSupportSharedArrayBuffer(){return typeof SharedArrayBuffer=="function"}get is32bitChrome(){var e;return!((e=window.JsMediaSDK_Instance)===null||e===void 0||(e=e.util)===null||e===void 0||!e.is32bitBrowser())}get isSwiftShader(){var e;return!((e=window.JsMediaSDK_Instance)===null||e===void 0||(e=e.util)===null||e===void 0||!e.isUsingSwiftShader())}set mediaFeatureOptions(e){this._mediaFeatureOptions=e}get isWeakRefSupported(){return typeof WeakRef<"u"}get isSupportESModule(){return"noModule"in document.createElement("script")}};function kg(){var e;const{isAndroidBrowser:t,isIOSMobile:r,osVersion:n,browserVersion:o,isChrome:i,isFirefox:a,isSafari:s}=Yt;var l,c;if(r)return Number((l=n.match(/^\d+/))===null||l===void 0?void 0:l[0])>=15;if(t)return Number((c=n.match(/^\d+/))===null||c===void 0?void 0:c[0])>=10;const d=Number((e=o.match(/^\d+/))===null||e===void 0?void 0:e[0]);return!!(i&&d>=69)||!!(s&&d>14)||!!(a&&d>=76)}function K3(){const{isSupportAudioWorklet:e,isSupportEssentialAudioAndVideoAbility:t,isAndroidOrIOSBrowser:r,isSupportSendScreenSharing:n}=Yt,o=navigator.mediaDevices!==void 0&&(t&&e||r),i=t&&navigator.mediaDevices!==void 0&&navigator.mediaCapabilities!==void 0,a=typeof"".replaceAll=="function";return{audio:a&&o,video:a&&i,screen:a&&t&&n}}class vj{constructor(t){this.instant=void 0,this.context=void 0,this.script=void 0,this.mic=void 0,this.instant=0,this.context=t,this.mic=null,this.script=t.createScriptProcessor(2048,1,1),this.script.onaudioprocess=r=>{const n=r.inputBuffer.getChannelData(0);let o,i=0;for(o=0;o<n.length;++o)i+=n[o]*n[o];this.instant=Math.sqrt(i/n.length)}}connectToSource(t){console.log("InputMicDetector is listening");try{var r;this.mic=this.context.createMediaStreamSource(t),this.mic.connect(this.script),(r=this.script)===null||r===void 0||r.connect(this.context.destination)}catch(n){console.error(n)}}stop(){var t,r;console.log("Audio Previewer stopped"),(t=this.mic)===null||t===void 0||t.disconnect(),this.mic=null,(r=this.script)===null||r===void 0||r.disconnect(),this.script=null}getMicVolume(){return this.instant}}const yj="https://st1.zoom.us/web_client/4qu8baa/audio/ring.mp3";class bj{constructor(){this.sampleAudio=void 0,this.audioCtx=void 0,this.destinationNode=void 0,this.audioPlayer=void 0,this.analyzserInterval=void 0,this.analyserNode=void 0,this.analyserNodeBufferDataArray=void 0,this.analyserCallback=void 0,this.sourceNode=void 0,this.mAudioStream=void 0,this.mSourceNode=void 0,this.mediaRecorder=void 0,this.isRecording=void 0,this.recorderChunks=[],this.recorderObjUrl=void 0,this.recorderPlayer=void 0,this.maximumRecordingTimer=void 0,this.shouldPlayAfterRecording=!0,this.isRunning=!1}testSpeaker(t){var r;if(typeof AudioContext!="function"||typeof MediaStreamAudioDestinationNode!="function"||!AudioContext.prototype.decodeAudioData)return void console.warn("Cannot test the speaker due to the browser capability");const{speakerId:n,sampleAudioUrl:o=yj,onAnalyseFrequency:i}=t||{};if(this.isRunning)return void console.warn("A tester is running,please stop it first");this.isRunning=!0,this.initAudioContext(),(((r=this.sampleAudio)===null||r===void 0?void 0:r.url)===o&&this.sampleAudio.data?Promise.resolve(this.sampleAudio.data):window.fetch(o).then((s=>s.arrayBuffer())).then((s=>this.audioCtx.decodeAudioData(s))).then((s=>(this.sampleAudio={url:o,data:s},s)))).then((s=>{var l,c,d;this.sourceNode=this.audioCtx.createBufferSource(),this.sourceNode.buffer=s,this.sourceNode.loop=!0,n&&(l=this.audioPlayer)!==null&&l!==void 0&&l.setSinkId&&this.audioPlayer.setSinkId(n),i?typeof AudioContext.prototype.createAnalyser=="function"?(this.analyzserInterval&&window.clearInterval(this.analyzserInterval),this.analyserCallback=i,this.initAnalyserNode(),this.analyserNode&&this.sourceNode.connect(this.analyserNode)):(this.sourceNode.connect(this.destinationNode),console.warn("Cannot analyze the stream due to the browser capability")):(this.analyserCallback=void 0,this.sourceNode.connect(this.destinationNode)),this.sourceNode.start(0),((c=this.audioCtx)===null||c===void 0?void 0:c.state)!=="running"&&((d=this.audioCtx)===null||d===void 0||d.resume()),this.audioPlayer&&(this.audioPlayer.muted=!1,this.audioPlayer.currentTime=0,this.audioPlayer.play())}));const a=()=>{this.isRunning=!1,this.audioPlayer&&(this.audioPlayer.currentTime=0,this.audioPlayer.pause()),this.analyserNode&&this.analyzserInterval&&(window.clearInterval(this.analyzserInterval),this.analyzserInterval=void 0,this.analyserNodeBufferDataArray=void 0),this.sourceNode&&(this.sourceNode.stop(0),this.sourceNode.disconnect(),this.sourceNode.buffer=null,this.sourceNode=void 0)};return{stop:a,destroy:()=>{var s;a(),this.analyserNode&&this.destinationNode&&(this.analyserNode.disconnect(this.destinationNode),this.analyserNode=void 0),(s=this.audioCtx)===null||s===void 0||s.close(),this.audioCtx=void 0}}}testMicrophone(t){var r;if(typeof AudioContext!="function"||typeof MediaStreamAudioDestinationNode!="function"||typeof AudioContext.prototype.createMediaStreamSource!="function"||typeof((r=navigator.mediaDevices)===null||r===void 0?void 0:r.getUserMedia)!="function")return void console.warn("Cannot test the microphone due to the browser capability");const{microphoneId:n,speakerId:o,recordAndPlay:i,maxRecordDuration:a,onAnalyseFrequency:s,onStartRecording:l,onStopRecording:c,onStartPlayRecording:d,onStopPlayRecording:p}=t||{};if(this.isRunning)return void console.warn("A tester is running,please stop it first");this.isRunning=!0,this.initAudioContext();const m=()=>{i&&this.mediaRecorder&&this.isRecording&&(this.shouldPlayAfterRecording=!0,this.mediaRecorder.state!=="inactive"&&this.mediaRecorder.stop())};window.navigator.mediaDevices.getUserMedia({audio:!n||{deviceId:{exact:n}}}).then((b=>{var v,C,A,R;this.mAudioStream=b,this.mSourceNode=(v=this.audioCtx)===null||v===void 0?void 0:v.createMediaStreamSource(b),this.audioPlayer.muted=!0,s?(this.analyzserInterval&&window.clearInterval(this.analyzserInterval),this.analyserCallback=s,this.initAnalyserNode(),this.analyserNode&&((A=this.mSourceNode)===null||A===void 0||A.connect(this.analyserNode))):this.analyserCallback=void 0,i&&(typeof MediaRecorder=="function"?(this.recorderObjUrl&&window.URL.revokeObjectURL(this.recorderObjUrl),this.mediaRecorder=new MediaRecorder(this.mAudioStream),this.mediaRecorder.ondataavailable=x=>{x.data&&this.recorderChunks.push(x.data)},this.mediaRecorder.onstop=()=>{if(this.isRecording=!1,this.maximumRecordingTimer&&(window.clearTimeout(this.maximumRecordingTimer),this.maximumRecordingTimer=void 0),c==null||c(),this.recorderChunks.length>0){var x;const k=new Blob(this.recorderChunks,{type:((x=this.recorderChunks[0])===null||x===void 0?void 0:x.type)||"audio/ogg; codecs=opus"});this.recorderObjUrl=window.URL.createObjectURL(k),this.shouldPlayAfterRecording&&this.playRecording(this.recorderObjUrl,o,d,p).catch((D=>{this.analyzserInterval&&(window.clearInterval(this.analyzserInterval),this.analyzserInterval=void 0,this.analyserNodeBufferDataArray=void 0),console.warn(D)})),this.recorderChunks=[],this.mediaRecorder&&(this.mediaRecorder.ondataavailable=null,this.mediaRecorder.onstop=null,this.mediaRecorder=void 0)}},this.mediaRecorder.start(),this.isRecording=!0,l==null||l(),this.maximumRecordingTimer=window.setTimeout((()=>{m()}),a||1e4)):console.warn("Cannot record the sound due to the browser capability")),((C=this.audioCtx)===null||C===void 0?void 0:C.state)!=="running"&&((R=this.audioCtx)===null||R===void 0||R.resume()),this.audioPlayer&&(this.audioPlayer.currentTime=0,this.audioPlayer.play())}));const y=()=>{this.isRunning=!1,this.maximumRecordingTimer&&(window.clearTimeout(this.maximumRecordingTimer),this.maximumRecordingTimer=void 0),this.audioPlayer&&(this.audioPlayer.currentTime=0,this.audioPlayer.pause()),this.analyserNode&&this.analyzserInterval&&(window.clearInterval(this.analyzserInterval),this.analyzserInterval=void 0,this.analyserNodeBufferDataArray=void 0),this.mSourceNode&&(s&&this.analyserNode&&this.mSourceNode.disconnect(this.analyserNode),this.mSourceNode=void 0),this.mAudioStream&&(this.mAudioStream.getAudioTracks().forEach((b=>{b.stop()})),this.mAudioStream=void 0),this.mediaRecorder&&(this.shouldPlayAfterRecording=!1,this.mediaRecorder.ondataavailable=null,this.mediaRecorder.onstop=null,this.mediaRecorder.state!=="inactive"&&this.mediaRecorder.stop(),this.isRecording=!1,this.mediaRecorder=void 0,this.recorderChunks=[]),this.recorderPlayer&&(this.recorderPlayer.currentTime=0,this.recorderPlayer.pause())};return{stop:y,stopRecording:m,destroy:()=>{var b;y(),this.analyserNode&&this.destinationNode&&(this.analyserNode.disconnect(this.destinationNode),this.analyserNode=void 0),(b=this.audioCtx)===null||b===void 0||b.close(),this.audioCtx=void 0}}}initAudioContext(){this.audioCtx&&this.audioPlayer||(this.audioCtx=new AudioContext,this.destinationNode=new MediaStreamAudioDestinationNode(this.audioCtx),this.audioPlayer=new Audio,this.audioPlayer.loop=!0,this.audioPlayer.srcObject=this.destinationNode.stream)}initAnalyserNode(){if(!this.audioCtx)return;this.analyserNode||(this.analyserNode=this.audioCtx.createAnalyser(),this.analyserNode.connect(this.destinationNode),this.analyserNode.fftSize=1024);const t=this.analyserNode.frequencyBinCount;this.analyserNodeBufferDataArray=new Uint8Array(t),this.analyzserInterval=window.setInterval(this.audioAnalyserCallback.bind(this),20)}audioAnalyserCallback(){if(this.analyserNodeBufferDataArray&&this.analyserNode&&this.analyserCallback){this.analyserNode.getByteFrequencyData(this.analyserNodeBufferDataArray);let t=0;for(const n of this.analyserNodeBufferDataArray)t+=n;const r=t/this.analyserNodeBufferDataArray.length;this.analyserCallback(r)}}playRecording(t,r,n,o){this.recorderPlayer=new Audio,this.recorderPlayer.src=t,this.recorderPlayer.currentTime=0,this.recorderPlayer.setSinkId&&r&&this.recorderPlayer.setSinkId(r);const i=()=>{o==null||o(),this.recorderPlayer&&(this.recorderPlayer.onpause=null,this.recorderPlayer.onended=null,this.recorderPlayer=void 0,this.isRunning=!1)};return new Promise(((a,s)=>{this.recorderPlayer&&(this.recorderPlayer.onpause=()=>{a(!0)},this.recorderPlayer.onended=()=>{a(!0)},this.recorderPlayer.onerror=s,n==null||n(),this.recorderPlayer.play().catch(s))})).finally((()=>{window.URL.revokeObjectURL(t),i()}))}}const hS="AudioNotStartedError";class Sj{constructor(t=""){this.audioContext=void 0,this.inputMicDetector=void 0,this.isMicUnmuted=void 0,this.isAudioStarted=void 0,this.audioStream=void 0,this.deviceId=void 0,this.tester=void 0,this.audioContext=null,this.inputMicDetector=null,this.isMicUnmuted=!1,this.isAudioStarted=!1,this.audioStream=null,this.deviceId=t,this.tester=new bj}async start(){if(this.audioStream||this.isAudioStarted)throw new Error("AudioAlreadyStartedError");try{const t=await navigator.mediaDevices.getUserMedia(this.getAudioConstraints());this.audioStream=t,this.isAudioStarted=!0}catch(t){throw t}}async unmute(){if(!this.audioStream||!this.isAudioStarted)throw new Error(hS);if(this.isMicUnmuted)throw new Error("AudioAlreadyUnmutedError");return this.toggleMicIsMuted(!0)}async mute(){if(!this.audioStream||!this.isAudioStarted)throw new Error(hS);if(!this.isMicUnmuted)throw new Error("AudioAlreadyMutedError");return this.toggleMicIsMuted(!1)}getCurrentVolume(){return this.inputMicDetector?this.inputMicDetector.getMicVolume():0}async stop(){if(!this.audioStream||!this.isAudioStarted)throw new Error(hS);this.audioStream.getAudioTracks().forEach((t=>t.stop())),this.audioStream=null,this.isAudioStarted=!1}async toggleMicIsMuted(t){if(t){if(!this.audioContext){const r=window.AudioContext||window.webkitAudioContext;this.audioContext=new r}this.inputMicDetector=new vj(this.audioContext),this.inputMicDetector.connectToSource(this.audioStream)}else this.inputMicDetector&&this.inputMicDetector.stop(),this.inputMicDetector=null;this.isMicUnmuted=t}getAudioConstraints(){return{audio:this.deviceId===""||{deviceId:{exact:this.deviceId}},video:!1}}testSpeaker(t){return this.tester.testSpeaker(t)}testMicrophone(t){return this.tester.testMicrophone(t)}}let ut=(function(e){return e[e.InitSuccess=1]="InitSuccess",e[e.InitSuccessVideo=1.1]="InitSuccessVideo",e[e.InitSuccessAudio=1.2]="InitSuccessAudio",e[e.InitSuccessSharing=1.3]="InitSuccessSharing",e[e.UserGrantCaptureAudio=2]="UserGrantCaptureAudio",e[e.CurrentVideoResolution=3]="CurrentVideoResolution",e[e.JpegDecThreadOk=4]="JpegDecThreadOk",e[e.JpegData=5]="JpegData",e[e.SharingPara=6]="SharingPara",e[e.VideoDecodeMaxSize=7]="VideoDecodeMaxSize",e[e.CurrentCaptureVideoWidthHeight=8]="CurrentCaptureVideoWidthHeight",e[e.StartVideoCaptureSuccess=9]="StartVideoCaptureSuccess",e[e.StopVideoCaptureSuccess=10]="StopVideoCaptureSuccess",e[e.StartRemoteControlSuccess=11]="StartRemoteControlSuccess",e[e.CancelRemoteControlSuccess=12]="CancelRemoteControlSuccess",e[e.RemoteControlCopiedTextNotify=13]="RemoteControlCopiedTextNotify",e[e.MonitorLog=14]="MonitorLog",e[e.CurrentDesktopSharingWidthHeight=15]="CurrentDesktopSharingWidthHeight",e[e.DesktopSharingCaptureSuccess=16]="DesktopSharingCaptureSuccess",e[e.CheckChromeSharingExtensionResponse=17]="CheckChromeSharingExtensionResponse",e[e.SharingDecodeMaxSize=18]="SharingDecodeMaxSize",e[e.DataChannelOffer=19]="DataChannelOffer",e[e.AesGcmIvResponse=21]="AesGcmIvResponse",e[e.SharingDesktopStreamHaveAudio=23]="SharingDesktopStreamHaveAudio",e[e.JoinComputerAudioComplete=24]="JoinComputerAudioComplete",e[e.JoinSharingAudioComplete=25]="JoinSharingAudioComplete",e[e.LeaveComputerAudioComplete=26]="LeaveComputerAudioComplete",e[e.LeaveSharingAudioComplete=27]="LeaveSharingAudioComplete",e[e.HidStatusMute=28]="HidStatusMute",e[e.WhiteboardSuccess=30]="WhiteboardSuccess",e[e.AudioStreamFailed=31]="AudioStreamFailed",e[e.VideoStreamFailed=32]="VideoStreamFailed",e[e.AudioSpeakerSetSuccess=33]="AudioSpeakerSetSuccess",e[e.AudiobridgeSetCcLangSuccess=36]="AudiobridgeSetCcLangSuccess",e[e.AudioLevelIndicator=38]="AudioLevelIndicator",e[e.SyncRendererTypeResponse=39]="SyncRendererTypeResponse",e[e.SendRemoteControlQrCode=55]="SendRemoteControlQrCode",e[e.StartVideoStreamInMaskSettingSuccess=66]="StartVideoStreamInMaskSettingSuccess",e[e.CurrentDecodeVideoQuality=66.5]="CurrentDecodeVideoQuality",e[e.CurrentDecodeVideoFps=66.6]="CurrentDecodeVideoFps",e[e.SharingFirstDecodeFrameReceivedSsrc=70]="SharingFirstDecodeFrameReceivedSsrc",e[e.StartVideoStreamInVbSettingSuccess=94]="StartVideoStreamInVbSettingSuccess",e[e.VbModelPreloading_3S=96]="VbModelPreloading_3S",e[e.VbModelPreloading_10S=97]="VbModelPreloading_10S",e[e.VbModelPreloadingOk=98]="VbModelPreloadingOk",e[e.NewActiveSpeakerFirstFrameCallback=111]="NewActiveSpeakerFirstFrameCallback",e[e.AudioBridgeFirstRecvData=114]="AudioBridgeFirstRecvData",e[e.AudioBridgeCanSendData=115]="AudioBridgeCanSendData",e[e.SpeakingWhenMute=121]="SpeakingWhenMute",e[e.StartAnnotationSuccess=158]="StartAnnotationSuccess",e[e.DeviceChangeEvent=159]="DeviceChangeEvent",e[e.RecaptureAudio=160]="RecaptureAudio",e[e.MediaStatsLog=209]="MediaStatsLog",e[e.InitFailed=-1]="InitFailed",e[e.InitFailedVideo=-1.1]="InitFailedVideo",e[e.InitFailedAudio=-1.2]="InitFailedAudio",e[e.InitFailedSharing=-1.3]="InitFailedSharing",e[e.AudioCaptureFailed=-2]="AudioCaptureFailed",e[e.AudioWebsocketBroken=-3]="AudioWebsocketBroken",e[e.VideoWebsocketBroken=-4]="VideoWebsocketBroken",e[e.SharingDecThreadFailed=-5]="SharingDecThreadFailed",e[e.AudioZeroData=-6]="AudioZeroData",e[e.AudioCtxSamplerate=-7]="AudioCtxSamplerate",e[e.UserForbiddedCaptureVideo=-8]="UserForbiddedCaptureVideo",e[e.UserCameraIsTakenByOtherPrograms=-9]="UserCameraIsTakenByOtherPrograms",e[e.StopVideoCaptureFailed=-10]="StopVideoCaptureFailed",e[e.StartRemoteControlFailed=-11]="StartRemoteControlFailed",e[e.CancelRemoteControlFailed=-12]="CancelRemoteControlFailed",e[e.RemoteControlPasteTextLengthOverflow=-14]="RemoteControlPasteTextLengthOverflow",e[e.UserStopDesktopSharing=-15]="UserStopDesktopSharing",e[e.UserCancelPermissionRequest=-16]="UserCancelPermissionRequest",e[e.DesktopSharingChromeExtensionUninstalled=-17]="DesktopSharingChromeExtensionUninstalled",e[e.DesktopSharingPermissionDenied=-18]="DesktopSharingPermissionDenied",e[e.DesktopSharingTimeOut=-19]="DesktopSharingTimeOut",e[e.DesktopSharingError=-20]="DesktopSharingError",e[e.AudioSpeakerSetError=-21]="AudioSpeakerSetError",e[e.DesktopSharingSystemError=-22]="DesktopSharingSystemError",e[e.SharingDesktopStreamHaveNoAudio=-27]="SharingDesktopStreamHaveNoAudio",e[e.AudioBridgeSocketConnectionError=-28]="AudioBridgeSocketConnectionError",e[e.AudioBridgeReconnectStart=-29]="AudioBridgeReconnectStart",e[e.AudioBridgeReconnectEnd=-31]="AudioBridgeReconnectEnd",e[e.WebglLostInMultiView=-32]="WebglLostInMultiView",e[e.MaskSettingParaError=-33]="MaskSettingParaError",e[e.VbSettingParaError=-34]="VbSettingParaError",e[e.NotifyUIFailover=-35]="NotifyUIFailover",e[e.AudiobridgeSetCcLangFailure=-39]="AudiobridgeSetCcLangFailure",e[e.NotifyUIWMSCFailover=-42]="NotifyUIWMSCFailover",e[e.NotifyUIWMSCWSSDisconnected=-43]="NotifyUIWMSCWSSDisconnected",e[e.RecoverWebrtcAudio=-44]="RecoverWebrtcAudio",e[e.WebglContextInvalid=-51]="WebglContextInvalid",e[e.WasmMemoryFail=-52]="WasmMemoryFail",e[e.WorkletProcessExceptions=-53]="WorkletProcessExceptions",e[e.NotSupportExternalCanvasInVTagRenderer=-55]="NotSupportExternalCanvasInVTagRenderer",e[e.HealthCheckFailed=-129]="HealthCheckFailed",e[e.StartAnnotationFailed=-130]="StartAnnotationFailed",e.AudioQosData="AUDIO_QOS_DATA",e.VideoQosData="VIDEO_QOS_DATA",e.ShareQosData="VIDEOSHARE_QOS_DATA",e.CommonQosData="COMMON_QOS_DATA",e.NetworkQualityChange="NETWORK_QUALITY_CHANGE",e.NetworkQualityChangeAudio="NETWORK_QUALITY_CHANGE_AUDIO",e.NetworkQualityChangeSharing="NETWORK_QUALITY_CHANGE_SHARING",e.AudioStreamMuted="AUDIO_STREAM_MUTED",e.AudioStreamUnmuted="AUDIO_STREAM_UNMUTED",e.AnnotationRedoStatus="ANNO_REDO_STATUS",e.AnnotationUndoStatus="ANNO_UNDO_STATUS",e.AnnoViewerRequestDraw="ANNO_VIEWER_REQUEST_DRAW",e.VideoStreamMuted="VIDEO_STREAM_MUTED",e.VideoStreamUnmuted="VIDEO_STREAM_UNMUTED",e})({}),ma=(function(e){return e[e.EncodeSuccess=1]="EncodeSuccess",e[e.DecodeSuccess=2]="DecodeSuccess",e[e.EncodeFailed=-1]="EncodeFailed",e[e.DecodeFailed=-2]="DecodeFailed",e})({}),mS=(function(e){return e.Spotlight="Spotlight",e.Unmute="Unmute",e.AllowToTalk="Allow to talk",e})({}),Os=(function(e){return e.Inherited="inherited",e.Active="active",e.PassiveByMuteOne="passive(mute one)",e.PassiveByMuteAll="passive(mute all)",e.SharingAudio="sharing audio",e})({}),Up=(function(e){return e.Inherited="inherited",e.Active="active",e.Passive="passive",e.SharingAudio="sharing audio",e})({}),vd=(function(e){return e.Active="active",e.Failover="failover",e.EndedBySystem="audio stream is ended by system",e.Pstn="pstn",e.MicrophoneError="microphone error",e})({}),Wf=(function(e){return e.Join="join",e.Leave="leave",e.Muted="muted",e.Unmuted="unmuted",e})({}),Da=(function(e){return e[e.Calling=1]="Calling",e[e.Ringing=2]="Ringing",e[e.Accepted=3]="Accepted",e[e.Busy=4]="Busy",e[e.NotAvailable=5]="NotAvailable",e[e.HangUp=6]="HangUp",e[e.Fail=7]="Fail",e[e.Success=8]="Success",e[e.Timeout=9]="Timeout",e[e.Canceling=10]="Canceling",e[e.Canceled=11]="Canceled",e[e.CancelFailed=12]="CancelFailed",e[e.NoAnswer=13]="NoAnswer",e[e.BlockNoHost=14]="BlockNoHost",e[e.BlockHighRate=15]="BlockHighRate",e[e.BlockTooFrequent=16]="BlockTooFrequent",e})({});const Ej=(()=>{const e=new ArrayBuffer(684),t=new Uint32Array(e);return t.set([1179011410,676,1163280727,544501094,16,65539,16e3,64e3,2097156,1635017060,640],0),new Blob([t],{type:"audio/wav"})})(),Cj=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,5,4,1,3,1,1,10,11,1,9,0,65,0,254,16,2,0,26,11]),wj=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,2,1,0,10,9,1,7,0,65,0,253,15,26,11]);let hs=(function(e){return e[e.HostGrab=0]="HostGrab",e[e.OnlyHost=1]="OnlyHost",e[e.AnyoneGrab=2]="AnyoneGrab",e[e.MultipleShare=3]="MultipleShare",e})({}),Mr=(function(e){return e.Sharing="sharing",e.Paused="paused",e.End="ended",e})({}),Gy=(function(e){return e[e.Video_90P=0]="Video_90P",e[e.Video_180P=1]="Video_180P",e[e.Video_360P=2]="Video_360P",e[e.Video_720P=3]="Video_720P",e[e.Video_1080P=4]="Video_1080P",e})({}),oT=(function(e){return e.Active="Active",e.Inactive="Inactive",e})({}),Lg=(function(e){return e.Muted="Muted",e.Unmuted="Unmuted",e})({}),gS=(function(e){return e.Started="Started",e.Stopped="Stopped",e.Failed="Failed",e})({}),iT=(function(e){return e.Approved="Approved",e.Rejected="Rejected",e})({}),Fg=(function(e){return e.PrivilegeChange="PrivilegeChange",e.StopScreenCapture="StopScreenCapture",e.ShareFromMainSession="ShareFromMainSession",e.StopCameraCapture="StopCameraCapture",e})({}),G3=(function(e){return e[e.ImageNotMatch=2]="ImageNotMatch",e[e.CanvasNotMatch=3]="CanvasNotMatch",e[e.VBModelNotMatch=4]="VBModelNotMatch",e})({});const uf="blur";let qi=(function(e){return e.User="user",e.Environment="environment",e.Left="left",e.Right="right",e})({});const Xm=Object.values(qi),us=1e3,aT="__ZOOM_SDK_SHARING_VIDEO__",sT="__ZOOM_SDK_ANNOTATION_CANVAS_@__",Uu="__ZOOM_SDK_VIDEO_ZONE__",vS="__ZOOM_SDK_MEDIA_PLAYBACK_SOURCE_VIDEO__",$p="__ZOOM_SDK_DYMMY_VIDEO_PLAYER_CANVAS_ID__",yS="__ZOOM_SDK_DUMMY_HIDDEN_SELF_VIEW_VIDEO_ID__",qy={data:{sample_rate:0,rtt:0,jitter:0,avg_loss:0,max_loss:0,rate:0,bandwidth:0}},ac={data:{sample_rate:0,rtt:0,jitter:0,avg_loss:0,max_loss:0,width:0,height:0,fps:0,rate:0,bandwidth:0}};let ya=(function(e){return e[e.Request=11]="Request",e[e.Decline=12]="Decline",e[e.Approve=13]="Approve",e[e.GiveUp=14]="GiveUp",e[e.StartControl=15]="StartControl",e[e.ContinueControl=16]="ContinueControl",e[e.StopControl=17]="StopControl",e[e.SwitchCamera=20]="SwitchCamera",e})({}),$u=(function(e){return e[e.Bk=0]="Bk",e[e.Center=1]="Center",e[e.ZoomIn=2]="ZoomIn",e[e.ZoomOut=3]="ZoomOut",e[e.Left=4]="Left",e[e.Right=5]="Right",e[e.Up=6]="Up",e[e.Down=7]="Down",e[e.SwitchCamera=8]="SwitchCamera",e})({}),Qd=(function(e){return e[e.Pan=192]="Pan",e[e.Tilt=48]="Tilt",e[e.Zoom=12]="Zoom",e[e.Focus=3]="Focus",e})({});(function(e){return e[e.ZoomIn=2]="ZoomIn",e[e.ZoomOut=3]="ZoomOut",e[e.Left=4]="Left",e[e.Right=5]="Right",e[e.Up=6]="Up",e[e.Down=7]="Down",e[e.SwitchCamera=8]="SwitchCamera",e})({});(function(e){return e[e.None=0]="None",e[e.ApproveAnother=3]="ApproveAnother",e[e.Stop=5]="Stop",e})({});let _p=(function(e){return e[e.Null=0]="Null",e[e.Normal=1]="Normal",e[e.VideoMode=2]="VideoMode",e[e.CameraMode=3]="CameraMode",e})({}),ai=(function(e){return e[e.Null=0]="Null",e[e.VirtualBackground=1]="VirtualBackground",e[e.Mask=2]="Mask",e[e.VideoProcessor=3]="VideoProcessor",e})({}),an=(function(e){return e.Computer="computer",e.Phone="phone",e})({}),Jy=(function(e){return e[e.Decline=0]="Decline",e[e.Approve=1]="Approve",e[e.CacheClean=2]="CacheClean",e})({}),zi=(function(e){return e.Unknown="unknown",e.Uninstalled="uninstalled",e.Installed="installed",e})({}),Yy=(function(e){return e.Unlaunched="unlaunched",e.Launched="launched",e})({}),bS=(function(e){return e.Started="started",e.Ended="ended",e})({}),SS=(function(e){return e[e.Max=30]="Max",e[e.Min=10]="Min",e[e.Default=24]="Default",e})({}),hh=(function(e){return e[e.Loading=1]="Loading",e[e.Done=2]="Done",e})({}),lT=(function(e){return e.Browser="Browser",e.Zoom="Zoom",e})({}),uT=(function(e){return e.Denoise="backgroundNoiseSuppression",e.OriginalSound="originalSound",e})({}),dE=(function(e){return e[e.Undefined=0]="Undefined",e[e.WebGL=1]="WebGL",e[e.WebGPU=2]="WebGPU",e[e.WebGL2=3]="WebGL2",e})({});(function(e){return e[e.H323=1]="H323",e[e.SIP=2]="SIP",e})({});let Zv=(function(e){return e[e.Success=0]="Success",e[e.Ringing=1]="Ringing",e[e.Timeout=2]="Timeout",e[e.Busy=101]="Busy",e[e.Fail=104]="Fail",e})({}),mh=(function(e){return e[e.Exception=-1]="Exception",e[e.PermissionReset=-2]="PermissionReset",e[e.LostAccess=-3]="LostAccess",e})({}),_a=(function(e){return e[e.AudioConnectionFailed=101]="AudioConnectionFailed",e[e.AudioStreamEnded=102]="AudioStreamEnded",e[e.MicrophonePermissionReset=103]="MicrophonePermissionReset",e[e.AudioStreamFailed=104]="AudioStreamFailed",e[e.MicrophoneMuted=105]="MicrophoneMuted",e[e.AudioStreamMuted=106]="AudioStreamMuted",e[e.AudioPlaybackInterrupted=107]="AudioPlaybackInterrupted",e[e.VideoConnectionFailed=201]="VideoConnectionFailed",e[e.VideoStreamEnded=202]="VideoStreamEnded",e[e.CameraPermissionReset=203]="CameraPermissionReset",e[e.WebGlContextInvalid=204]="WebGlContextInvalid",e[e.WasmOutOfMemory=205]="WasmOutOfMemory",e[e.VideoStreamFailed=206]="VideoStreamFailed",e[e.VideoStreamMuted=207]="VideoStreamMuted",e[e.SharingStreamFailed=301]="SharingStreamFailed",e})({}),cT=(function(e){return e[e.NoFallback=0]="NoFallback",e[e.FallbackToWasm=1]="FallbackToWasm",e})({}),ey=(function(e){return e[e.WebRTCAudio=1]="WebRTCAudio",e[e.WebRTCVideo=2]="WebRTCVideo",e[e.WebRTCAudio2=4]="WebRTCAudio2",e})({}),q3=(function(e){return e[e.WebRTCAudio=1]="WebRTCAudio",e[e.WebRTCAudio2=2]="WebRTCAudio2",e})({}),Xd=(function(e){return e[e.BROWSER_NOT_SUPPORTED=-3]="BROWSER_NOT_SUPPORTED",e[e.DEVICE_UNSUPPORTED=-4]="DEVICE_UNSUPPORTED",e[e.OTHER_ERROR=-7]="OTHER_ERROR",e[e.DEVICE_UNVERIFIED=-8]="DEVICE_UNVERIFIED",e[e.FEATURE_DISABLED=-9]="FEATURE_DISABLED",e[e.FORCE_SAME_AV_STRATEGY=-10]="FORCE_SAME_AV_STRATEGY",e})({});const Ij={[Xd.BROWSER_NOT_SUPPORTED]:"Your browser does not support WebRTC Video.",[Xd.DEVICE_UNSUPPORTED]:"WebRTC video cannot currently run on this environment. We are evaluating support for it in the future.",[Xd.OTHER_ERROR]:"An error occurred with WebRTC video.",[Xd.DEVICE_UNVERIFIED]:"WebRTC video has not been verified in this environment. We are evaluating it for future support.",[Xd.FEATURE_DISABLED]:"We disabled WebRTC video for this environment.",[Xd.FORCE_SAME_AV_STRATEGY]:"The same AV strategy is forced."};let Wi=(function(e){return e[e.SELECT_MOUSE=0]="SELECT_MOUSE",e[e.SELECT_TOOL=1]="SELECT_TOOL",e[e.SELECT_ERASER=2]="SELECT_ERASER",e[e.UNDO=3]="UNDO",e[e.REDO=4]="REDO",e[e.CLEAR=5]="CLEAR",e[e.CLOSE_TOOL_BAR=6]="CLOSE_TOOL_BAR",e[e.UPDATE_PARAMS=7]="UPDATE_PARAMS",e[e.PAUSE_ANNOTATION=8]="PAUSE_ANNOTATION",e[e.SHOW_ANNOTATOR_NAME=9]="SHOW_ANNOTATOR_NAME",e[e.ANNOTATOR_ID_TO_NAME=10]="ANNOTATOR_ID_TO_NAME",e[e.ANNO_CANVAS_SIZE_UPDATE=11]="ANNO_CANVAS_SIZE_UPDATE",e[e.STAMP=12]="STAMP",e[e.SPOTLIGHT=13]="SPOTLIGHT",e[e.TEXTBOX=14]="TEXTBOX",e[e.SELECT_OBJ=15]="SELECT_OBJ",e[e.UPDATE_REMOTE_POSITION_INFO=16]="UPDATE_REMOTE_POSITION_INFO",e[e.UPDATE_VANISHING_TOOL_TIME=17]="UPDATE_VANISHING_TOOL_TIME",e})({}),ES=(function(e){return e[e.Mine=0]="Mine",e[e.Viewer=1]="Viewer",e[e.All=2]="All",e})({}),yl=(function(e){return e[e.None=0]="None",e[e.Pen=1]="Pen",e[e.Highlighter=2]="Highlighter",e[e.Spotlight=3]="Spotlight",e[e.Arrow=4]="Arrow",e[e.Eraser=7]="Eraser",e[e.Line=11]="Line",e[e.Arrow1=12]="Arrow1",e[e.Rectangle=14]="Rectangle",e[e.RectangleSemiFill=15]="RectangleSemiFill",e[e.Ellipse=18]="Ellipse",e[e.EllipseSemiFill=19]="EllipseSemiFill",e[e.DoubleArrow=20]="DoubleArrow",e[e.RectangleFill=21]="RectangleFill",e[e.EllipseFill=23]="EllipseFill",e[e.Diamond=24]="Diamond",e[e.StampArrow=25]="StampArrow",e[e.StampCheck=26]="StampCheck",e[e.StampX=27]="StampX",e[e.StampStar=31]="StampStar",e[e.StampHeart=32]="StampHeart",e[e.StampQuestionMark=33]="StampQuestionMark",e[e.VanishingPen=36]="VanishingPen",e[e.DiamondSemiFill=37]="DiamondSemiFill",e[e.DiamondFill=38]="DiamondFill",e[e.VanishingArrow=43]="VanishingArrow",e[e.VanishingDoubleArrow=44]="VanishingDoubleArrow",e[e.VanishingDiamond=45]="VanishingDiamond",e[e.VanishingEllipse=46]="VanishingEllipse",e[e.VanishingRectangle=47]="VanishingRectangle",e})({}),dT=(function(e){return e[e.White=4294967295]="White",e[e.Red=4294908185]="Red",e[e.Yellow=4294958642]="Yellow",e[e.Green=4286760838]="Green",e[e.Blue=4281240831]="Blue",e[e.LightPurple=4290017791]="LightPurple",e[e.Pink=4294916295]="Pink",e[e.Orange=4294937088]="Orange",e[e.LimeTreeGreen=4283029022]="LimeTreeGreen",e[e.IceBlue=4283554027]="IceBlue",e[e.DarkGrey=4278190080]="DarkGrey",e[e.DarkRed=4286513152]="DarkRed",e[e.Brown=4286006280]="Brown",e[e.DarkGreen=4278940200]="DarkGreen",e[e.DarkBlue=4279521219]="DarkBlue",e})({});(function(e){return e[e.Nominal=0]="Nominal",e[e.Fair=1]="Fair",e[e.Serious=2]="Serious",e[e.Critical=3]="Critical",e})({});let pE=(function(e){return e.FrontCamera="frontCam",e.RearCamera="rearCam",e})({}),pT=(function(e){return e[e.Success=0]="Success",e[e.Failed=1]="Failed",e})({});const zf=152,Aj=[{name:"audio_simd.min.js",category:"audio",type:"worker",tag:"simd",alias:"audioSIMDWorkletPath"},{name:"audio.simd.wasm",category:"audio",type:"wasm",tag:"simd",alias:"audioSIMDWasm"},{name:"js_audio_process.min.js",category:"audio",type:"worker",tag:"",alias:"audioWorkerPath"},{name:"audio.encode.wasm",category:"audio",type:"wasm",tag:"",alias:"audioWasm"},{name:"js_audio_worklet.min.js",category:"audio",type:"worklet",tag:"",alias:"audioWorkletPath"},{name:"js_audio_worklet_simd.min.js",category:"audio",type:"worklet",tag:"simd",alias:"audioWorkletSIMDPath"},{name:"js_audio_worklet_process.min.js",category:"audio",type:"worklet",tag:"",alias:"audioWorkletProcessPath"},{name:"js_sharing_audio_worklet.min.js",category:"audio",type:"worklet",tag:"",alias:"sharingAudioWorkletPath"},{name:"js_audio_level_worklet_process.min.js",category:"audio",type:"worklet",tag:"",alias:"audioLevelWorkletPath"},{name:"video_mtsimd.min.js",category:"video",type:"worker",tag:"simd,thread",alias:"videoMSIMDWorkerPath"},{name:"video.mtsimd.wasm",category:"video",type:"wasm",tag:"simd,thread,videoShare",alias:"videoMSIMDWasm"},{name:"video_m.min.js",category:"video",type:"worker",tag:"thread",alias:"videoMtWorkerPath"},{name:"video.mt.wasm",category:"video",type:"wasm",tag:"thread",alias:"videoMtWasm"},{name:"video_simd.min.js",category:"video",type:"worker",tag:"simd",alias:"videoSIMDWorkerPath"},{name:"video.simd.wasm",category:"video",type:"wasm",tag:"simd",alias:"videoSIMDWasm"},{name:"video_s.min.js",category:"video",type:"worker",tag:"",alias:"videoWorkerPath"},{name:"video.decode.wasm",category:"video",type:"wasm",tag:"",alias:"videoWasm"},{name:"video_share_mtsimd.min.js",category:"video",type:"worker",tag:"videoShare",alias:"vsmiworkerpath"},{name:"sharing_mtsimd.min.js",category:"sharing",type:"worker",tag:"simd,thread",alias:"sharingMSIMDWorkerPath"},{name:"sharing_m.min.js",category:"sharing",type:"worker",tag:"thread",alias:"sharingMtWorkerPath"},{name:"sharing_simd.min.js",category:"sharing",type:"worker",tag:"simd",alias:"sharingSIMDWorkerPath"},{name:"sharing_s.min.js",category:"sharing",type:"worker",tag:"",alias:"sharingWorkerPath"},{name:"net_thread.min.js",category:"common",type:"worker",tag:"thread",alias:"netThreadPath"}];class Ka{constructor(){this.assetsPath=void 0,this.instance=void 0,this.callbackList=void 0,this.mediaWorkersPath=void 0,this.mediaOptions=void 0,this.inProgress=void 0,this.callbackList=[]}static getInstance(){return this.agentInstance===void 0&&(this.agentInstance=new Ka),this.agentInstance}static getMaxCountRender(t,r,n){var o;const i=n?{disableRenderLimits:!0}:r;return(o=window.JsMediaSDK_Instance)===null||o===void 0?void 0:o.util.getMaxCountRender(t,i)}static initVideoPlayer(t){var r;return(r=window.JsMediaSDK_Instance)===null||r===void 0?void 0:r.initVideoPlayer(t)}init(t,r,n){var o,i,a,s;!this.instance&&window.JsMediaSDK_Instance&&(this.instance=new window.JsMediaSDK_Instance({...r??{},mediaSDKConfig:{mediaSDKCDNPath:t}})),this.onMediaSDKCallback=this.onMediaSDKCallback.bind(this),this.mediaOptions=r,(o=this.instance)===null||o===void 0||o.setProps({callback:this.onMediaSDKCallback,isPreviewMode:!0,meetingParams:{cid:"",userId:0,rwgHost:"",nginxHost:"",abToken:"",confId:"",e2eEncrypt:!0,enableWebtransport:!1,webtransportPort:0,rwgToMediaSDKConfig:{},webrtcMode:0},mediaParams:{videoDecodeThreadNum:(i=Ka.getMaxCountRender(!1,(a=this.mediaOptions)===null||a===void 0?void 0:a.enableMultiDecodeVideoWithoutSAB,n))!==null&&i!==void 0?i:1,rendererType:1,isEnableHD:!0,isEnableDecodingHW:!0,isEnableEncodingHW:!0}}),(s=this.instance)===null||s===void 0||s.initVideoEncode(),this.inProgress=!0}onMediaSDKCallback(t,r){this.callbackList.length>0&&this.callbackList.forEach((n=>n(t,r)))}registerCallback(t){this.callbackList.push(t)}unregisterCallback(t){this.callbackList=this.callbackList.filter((r=>r!==t))}async destroy(){var t;this.callbackList=[],await((t=this.instance)===null||t===void 0?void 0:t.destroy()),this.instance=null,this.inProgress=!1}disconnect(){var t,r;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(17,{}),(r=this.instance)===null||r===void 0||r.JsMediaSDK_UnInit()}startVirtualBackgroundSetting(t){var r;const{imageId:n,cameraDeviceId:o,ssid:i,...a}=t;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(91,{bgdom:n,VideoSelectValue:o==="default"?null:o,ssid:0,usingFacingMode:["user","environment"].includes(o),...a})}updateVirtualBackgroundImage(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(92,{bgdom:t})}stopVirtualBackgroundSetting(t=!1){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(93,{isSwitch:t})}startMaskSetting(t,r,n,o,i,a,s,l,c){var d;(d=this.instance)===null||d===void 0||d.Notify_MeidaSDK(62,{canvas:t,maskdom:null,bgdom:null,dx:0,dy:0,dWidth:170,dHeight:170,width:1280,height:720,ssid:0,originWidth:379,originHeight:213,VideoSelectValue:i==="default"?null:i,usingFacingMode:["user","environment"].includes(i)})}stopMaskSetting(t=!1){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(65,{isSwitch:t})}}Ka.agentInstance=void 0;const xe="INVALID_OPERATION",Vo="INTERNAL_ERROR",v0="OPERATION_TIMEOUT",Zo="INSUFFICIENT_PRIVILEGES",ty="IMPROPER_MEETING_STATE",mr="INVALID_PARAMETERS",fT="OPERATION_CANCELLED";var fE=function(e,t){return fE=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},fE(e,t)};function Za(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}fE(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var _h=function(){return _h=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},_h.apply(this,arguments)};function J3(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(i[Symbol.iterator]=function(){return this}),i;function s(l){return function(c){return(function(d){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&d[0]?n.return:d[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,d[1])).done)return o;switch(n=0,o&&(d=[2&d[0],o.value]),d[0]){case 0:case 1:o=d;break;case 4:return a.label++,{value:d[1],done:!1};case 5:a.label++,n=d[1],d=[0];continue;case 7:d=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||d[0]!==6&&d[0]!==2)){a=0;continue}if(d[0]===3&&(!o||d[1]>o[0]&&d[1]<o[3])){a.label=d[1];break}if(d[0]===6&&a.label<o[1]){a.label=o[1],o=d;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(d);break}o[2]&&a.ops.pop(),a.trys.pop();continue}d=t.call(e,a)}catch(p){d=[6,p],n=0}finally{r=o=0}if(5&d[0])throw d[1];return{value:d[0]?d[1]:void 0,done:!0}})([l,c])}}}function Zh(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ls(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(t===void 0||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function al(e,t){for(var r=0,n=t.length,o=e.length;r<n;r++,o++)e[o]=t[r];return e}function Pp(e){return this instanceof Pp?(this.v=e,this):new Pp(e)}function Un(e){return typeof e=="function"}function Zm(e){var t=e((function(r){Error.call(r),r.stack=new Error().stack}));return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var CS=Zm((function(e){return function(t){e(this),this.message=t?t.length+` errors occurred during unsubscription:
43
43
  `+t.map((function(r,n){return n+1+") "+r.toString()})).join(`
44
44
  `):"",this.name="UnsubscriptionError",this.errors=t}}));function Qy(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var eg=(function(){function e(r){this.initialTeardown=r,this.closed=!1,this._parentage=null,this._finalizers=null}var t;return e.prototype.unsubscribe=function(){var r,n,o,i,a;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var l=Zh(s),c=l.next();!c.done;c=l.next())c.value.remove(this)}catch(v){r={error:v}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}else s.remove(this);var d=this.initialTeardown;if(Un(d))try{d()}catch(v){a=v instanceof CS?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var m=Zh(p),y=m.next();!y.done;y=m.next()){var b=y.value;try{hT(b)}catch(v){a=a??[],v instanceof CS?a=al(al([],Ls(a)),Ls(v.errors)):a.push(v)}}}catch(v){o={error:v}}finally{try{y&&!y.done&&(i=m.return)&&i.call(m)}finally{if(o)throw o.error}}}if(a)throw new CS(a)}},e.prototype.add=function(r){var n;if(r&&r!==this)if(this.closed)hT(r);else{if(r instanceof e){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(r)}},e.prototype._hasParent=function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)},e.prototype._addParent=function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r},e.prototype._removeParent=function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&Qy(n,r)},e.prototype.remove=function(r){var n=this._finalizers;n&&Qy(n,r),r instanceof e&&r._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e})(),Y3=eg.EMPTY;function Q3(e){return e instanceof eg||e&&"closed"in e&&Un(e.remove)&&Un(e.add)&&Un(e.unsubscribe)}function hT(e){Un(e)?e():e.unsubscribe()}var Rj=void 0;function X3(e){(function(t,r){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];setTimeout.apply(void 0,al([t,r],Ls(n)))})((function(){throw e}))}function cf(){}function ry(e){e()}var HI=(function(e){function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Q3(r)&&r.add(n)):n.destination=Oj,n}return Za(t,e),t.create=function(r,n,o){return new Xy(r,n,o)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(eg),Tj=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){jg(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){jg(n)}else jg(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){jg(r)}},e})(),Xy=(function(e){function t(r,n,o){var i,a=e.call(this)||this;return i=Un(r)||!r?{next:r??void 0,error:n??void 0,complete:o??void 0}:r,a.destination=new Tj(i),a}return Za(t,e),t})(HI);function jg(e){X3(e)}var Oj={closed:!0,next:cf,error:function(e){throw e},complete:cf},UI=typeof Symbol=="function"&&Symbol.observable||"@@observable";function y0(e){return e}function vc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Z3(e)}function Z3(e){return e.length===0?y0:e.length===1?e[0]:function(t){return e.reduce((function(r,n){return n(r)}),t)}}var Ro=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var o,i=this,a=(o=t)&&o instanceof HI||(function(s){return s&&Un(s.next)&&Un(s.error)&&Un(s.complete)})(o)&&Q3(o)?t:new Xy(t,r,n);return ry((function(){var s=i,l=s.operator,c=s.source;a.add(l?l.call(a,c):c?i._subscribe(a):i._trySubscribe(a))})),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return new(r=mT(r))((function(o,i){var a=new Xy({next:function(s){try{t(s)}catch(l){i(l),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)}))},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[UI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Z3(t)(this)},e.prototype.toPromise=function(t){var r=this;return new(t=mT(t))((function(n,o){var i;r.subscribe((function(a){return i=a}),(function(a){return o(a)}),(function(){return n(i)}))}))},e.create=function(t){return new e(t)},e})();function mT(e){var t;return(t=e??Rj)!==null&&t!==void 0?t:Promise}function ei(e){return function(t){if((function(r){return Un(r==null?void 0:r.lift)})(t))return t.lift((function(r){try{return e(r,this)}catch(n){this.error(n)}}));throw new TypeError("Unable to lift unknown Observable type")}}function Ko(e,t,r,n,o){return new _j(e,t,r,n,o)}var wS,_j=(function(e){function t(r,n,o,i,a,s){var l=e.call(this,r)||this;return l.onFinalize=a,l.shouldUnsubscribe=s,l._next=n?function(c){try{n(c)}catch(d){r.error(d)}}:e.prototype._next,l._error=i?function(c){try{i(c)}catch(d){r.error(d)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=o?function(){try{o()}catch(c){r.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return Za(t,e),t.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;e.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},t})(HI),Pj=Zm((function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),xs=(function(e){function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return Za(t,e),t.prototype.lift=function(r){var n=new gT(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Pj},t.prototype.next=function(r){var n=this;ry((function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Zh(n.currentObservers),s=a.next();!s.done;s=a.next())s.value.next(r)}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}}))},t.prototype.error=function(r){var n=this;ry((function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}}))},t.prototype.complete=function(){var r=this;ry((function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}}))},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Y3:(this.currentObservers=null,s.push(r),new eg((function(){n.currentObservers=null,Qy(s,r)})))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},t.prototype.asObservable=function(){var r=new Ro;return r.source=this,r},t.create=function(r,n){return new gT(r,n)},t})(Ro),gT=(function(e){function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return Za(t,e),t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Y3},t})(xs),xj=(function(e){function t(r){var n=e.call(this)||this;return n._value=r,n}return Za(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},t.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},t.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},t})(xs),Dj=function(){return Date.now()},Nj=(function(e){function t(r,n){return e.call(this)||this}return Za(t,e),t.prototype.schedule=function(r,n){return this},t})(eg),$I=(function(e){function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return Za(t,e),t.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;var i=this.id,a=this.scheduler;return i!=null&&(this.id=this.recycleAsyncId(a,i,n)),this.pending=!0,this.delay=n,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(a,this.id,n),this},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),(function(i,a){for(var s=[],l=2;l<arguments.length;l++)s[l-2]=arguments[l];return setInterval.apply(void 0,al([i,a],Ls(s)))})(r.flush.bind(r,this),o)},t.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&(function(i){clearInterval(i)})(n)},t.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(r,n){var o,i=!1;try{this.work(r)}catch(a){i=!0,o=a||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var r=this.id,n=this.scheduler,o=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Qy(o,this),r!=null&&(this.id=this.recycleAsyncId(n,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t})(Nj),Mj=1,hE={};function e4(e){return e in hE&&(delete hE[e],!0)}var kj=function(e){var t=Mj++;return hE[t]=!0,wS||(wS=Promise.resolve()),wS.then((function(){return e4(t)&&e()})),t},Lj=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return kj.apply(void 0,al([],Ls(e)))},Fj=function(e){return(function(t){e4(t)})(e)},jj=(function(e){function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return Za(t,e),t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!==null&&o>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.actions.push(this),r._scheduled||(r._scheduled=Lj(r.flush.bind(r,void 0))))},t.prototype.recycleAsyncId=function(r,n,o){var i;if(o===void 0&&(o=0),o!=null?o>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,o);var a=r.actions;n!=null&&((i=a[a.length-1])===null||i===void 0?void 0:i.id)!==n&&(Fj(n),r._scheduled===n&&(r._scheduled=void 0))},t})($I),vT=(function(){function e(t,r){r===void 0&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(t,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,t).schedule(n,r)},e.now=Dj,e})(),WI=(function(e){function t(r,n){n===void 0&&(n=vT.now);var o=e.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return Za(t,e),t.prototype.flush=function(r){var n=this.actions;if(this._active)n.push(r);else{var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}}},t})(vT),Ds=new((function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return Za(t,e),t.prototype.flush=function(r){this._active=!0;var n=this._scheduled;this._scheduled=void 0;var o,i=this.actions;r=r||i.shift();do if(o=r.execute(r.state,r.delay))break;while((r=i[0])&&r.id===n&&i.shift());if(this._active=!1,o){for(;(r=i[0])&&r.id===n&&i.shift();)r.unsubscribe();throw o}},t})(WI))(jj),la=new WI($I),Vj=la,Bj=(function(e){function t(r,n){var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o}return Za(t,e),t.prototype.schedule=function(r,n){return n===void 0&&(n=0),n>0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},t.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},t.prototype.requestAsyncId=function(r,n,o){return o===void 0&&(o=0),o!=null&&o>0||o==null&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,o):(r.flush(this),0)},t})($I),yT=new((function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return Za(t,e),t})(WI))(Bj),qt=new Ro((function(e){return e.complete()}));function t4(e){return e&&Un(e.schedule)}function zI(e){return e[e.length-1]}function r4(e){return Un(zI(e))?e.pop():void 0}function tg(e){return t4(zI(e))?e.pop():void 0}var KI=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function n4(e){return Un(e==null?void 0:e.then)}function o4(e){return Un(e[UI])}function i4(e){return Symbol.asyncIterator&&Un(e==null?void 0:e[Symbol.asyncIterator])}function a4(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var bT,s4=typeof Symbol=="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";function l4(e){return Un(e==null?void 0:e[s4])}function u4(e){return(function(t,r,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,i=n.apply(t,r||[]),a=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(m){i[m]&&(o[m]=function(y){return new Promise((function(b,v){a.push([m,y,b,v])>1||l(m,y)}))})}function l(m,y){try{(function(b){b.value instanceof Pp?Promise.resolve(b.value.v).then(c,d):p(a[0][2],b)})(i[m](y))}catch(b){p(a[0][3],b)}}function c(m){l("next",m)}function d(m){l("throw",m)}function p(m,y){m(y),a.shift(),a.length&&l(a[0][0],a[0][1])}})(this,arguments,(function(){var t,r,n;return J3(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Pp(t.read())];case 3:return r=o.sent(),n=r.value,r.done?[4,Pp(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Pp(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))}function c4(e){return Un(e==null?void 0:e.getReader)}function aa(e){if(e instanceof Ro)return e;if(e!=null){if(o4(e))return o=e,new Ro((function(i){var a=o[UI]();if(Un(a.subscribe))return a.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")}));if(KI(e))return n=e,new Ro((function(i){for(var a=0;a<n.length&&!i.closed;a++)i.next(n[a]);i.complete()}));if(n4(e))return r=e,new Ro((function(i){r.then((function(a){i.closed||(i.next(a),i.complete())}),(function(a){return i.error(a)})).then(null,X3)}));if(i4(e))return ST(e);if(l4(e))return t=e,new Ro((function(i){var a,s;try{for(var l=Zh(t),c=l.next();!c.done;c=l.next()){var d=c.value;if(i.next(d),i.closed)return}}catch(p){a={error:p}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(a)throw a.error}}i.complete()}));if(c4(e))return ST(u4(e))}var t,r,n,o;throw a4(e)}function ST(e){return new Ro((function(t){(function(r,n){var o,i,a,s;return(function(l,c,d,p){return new(d||(d=Promise))((function(m,y){function b(A){try{C(p.next(A))}catch(R){y(R)}}function v(A){try{C(p.throw(A))}catch(R){y(R)}}function C(A){var R;A.done?m(A.value):(R=A.value,R instanceof d?R:new d((function(x){x(R)}))).then(b,v)}C((p=p.apply(l,[])).next())}))})(this,0,void 0,(function(){var l,c;return J3(this,(function(d){switch(d.label){case 0:d.trys.push([0,5,6,11]),o=(function(p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var m,y=p[Symbol.asyncIterator];return y?y.call(p):(p=Zh(p),m={},b("next"),b("throw"),b("return"),m[Symbol.asyncIterator]=function(){return this},m);function b(v){m[v]=p[v]&&function(C){return new Promise((function(A,R){(function(x,k,D,F){Promise.resolve(F).then((function($){x({value:$,done:D})}),k)})(A,R,(C=p[v](C)).done,C.value)}))}}})(r),d.label=1;case 1:return[4,o.next()];case 2:if((i=d.sent()).done)return[3,4];if(l=i.value,n.next(l),n.closed)return[2];d.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return c=d.sent(),a={error:c},[3,11];case 6:return d.trys.push([6,,9,10]),i&&!i.done&&(s=o.return)?[4,s.call(o)]:[3,8];case 7:d.sent(),d.label=8;case 8:return[3,10];case 9:if(a)throw a.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}}))}))})(e,t).catch((function(r){return t.error(r)}))}))}function fc(e,t,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=t.schedule((function(){r(),o?e.add(this.schedule(null,n)):this.unsubscribe()}),n);if(e.add(i),!o)return i}function go(e,t){return t===void 0&&(t=0),ei((function(r,n){r.subscribe(Ko(n,(function(o){return fc(n,e,(function(){return n.next(o)}),t)}),(function(){return fc(n,e,(function(){return n.complete()}),t)}),(function(o){return fc(n,e,(function(){return n.error(o)}),t)})))}))}function mE(e,t){return t===void 0&&(t=0),ei((function(r,n){n.add(e.schedule((function(){return r.subscribe(n)}),t))}))}function ET(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ro((function(r){fc(r,t,(function(){var n=e[Symbol.asyncIterator]();fc(r,t,(function(){n.next().then((function(o){o.done?r.complete():r.next(o.value)}))}),0,!0)}))}))}function ft(e,t){return t?(function(r,n){if(r!=null){if(o4(r))return(function(o,i){return aa(o).pipe(mE(i),go(i))})(r,n);if(KI(r))return(function(o,i){return new Ro((function(a){var s=0;return i.schedule((function(){s===o.length?a.complete():(a.next(o[s++]),a.closed||this.schedule())}))}))})(r,n);if(n4(r))return(function(o,i){return aa(o).pipe(mE(i),go(i))})(r,n);if(i4(r))return ET(r,n);if(l4(r))return(function(o,i){return new Ro((function(a){var s;return fc(a,i,(function(){s=o[s4](),fc(a,i,(function(){var l,c,d;try{c=(l=s.next()).value,d=l.done}catch(p){return void a.error(p)}d?a.complete():a.next(c)}),0,!0)})),function(){return Un(s==null?void 0:s.return)&&s.return()}}))})(r,n);if(c4(r))return(function(o,i){return ET(u4(o),i)})(r,n)}throw a4(r)})(e,t):aa(e)}function Mn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return ft(e,tg(e))}function yc(e,t){var r=Un(e)?e:function(){return e};return new Ro((function(n){return n.error(r())}))}(function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"})(bT||(bT={}));var IS=(function(){function e(t,r,n){this.kind=t,this.value=r,this.error=n,this.hasValue=t==="N"}return e.prototype.observe=function(t){return d4(this,t)},e.prototype.do=function(t,r,n){var o=this,i=o.kind,a=o.value,s=o.error;return i==="N"?t==null?void 0:t(a):i==="E"?r==null?void 0:r(s):n==null?void 0:n()},e.prototype.accept=function(t,r,n){var o;return Un((o=t)===null||o===void 0?void 0:o.next)?this.observe(t):this.do(t,r,n)},e.prototype.toObservable=function(){var t=this,r=t.kind,n=t.value,o=t.error,i=r==="N"?Mn(n):r==="E"?yc((function(){return o})):r==="C"?qt:0;if(!i)throw new TypeError("Unexpected notification kind "+r);return i},e.createNext=function(t){return new e("N",t)},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e})();function d4(e,t){var r,n,o,i=e,a=i.kind,s=i.value,l=i.error;if(typeof a!="string")throw new TypeError('Invalid notification, missing "kind"');a==="N"?(r=t.next)===null||r===void 0||r.call(t,s):a==="E"?(n=t.error)===null||n===void 0||n.call(t,l):(o=t.complete)===null||o===void 0||o.call(t)}var p4=Zm((function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}}));function Ph(e,t){return new Promise((function(r,n){var o,i=!1;e.subscribe({next:function(a){o=a,i=!0},error:n,complete:function(){i?r(o):n(new p4)}})}))}function jn(e,t){return new Promise((function(r,n){var o=new Xy({next:function(i){r(i),o.unsubscribe()},error:n,complete:function(){n(new p4)}});e.subscribe(o)}))}function f4(e){return e instanceof Date&&!isNaN(e)}var Hj=Zm((function(e){return function(t){t===void 0&&(t=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}}));function GI(e,t){var r=f4(e)?{first:e}:typeof e=="number"?{each:e}:e,n=r.first,o=r.each,i=r.with,a=i===void 0?Uj:i,s=r.scheduler,l=s===void 0?la:s,c=r.meta,d=c===void 0?null:c;if(n==null&&o==null)throw new TypeError("No timeout provided.");return ei((function(p,m){var y,b,v=null,C=0,A=function(R){b=fc(m,l,(function(){try{y.unsubscribe(),aa(a({meta:d,lastValue:v,seen:C})).subscribe(m)}catch(x){m.error(x)}}),R)};y=p.subscribe(Ko(m,(function(R){b==null||b.unsubscribe(),C++,m.next(v=R),o>0&&A(o)}),void 0,void 0,(function(){b!=null&&b.closed||b==null||b.unsubscribe(),v=null}))),!C&&A(n!=null?typeof n=="number"?n:+n-l.now():o)}))}function Uj(e){throw new Hj(e)}function wt(e,t){return ei((function(r,n){var o=0;r.subscribe(Ko(n,(function(i){n.next(e.call(t,i,o++))})))}))}var $j=Array.isArray;function qI(e){return wt((function(t){return(function(r,n){return $j(n)?r.apply(void 0,al([],Ls(n))):r(n)})(e,t)}))}var Wj=Array.isArray,zj=Object.getPrototypeOf,Kj=Object.prototype,Gj=Object.keys;function h4(e,t,r,n,o,i,a,s){var l=[],c=0,d=0,p=!1,m=function(){!p||l.length||c||t.complete()},y=function(v){return c<n?b(v):l.push(v)},b=function(v){i&&t.next(v),c++;var C=!1;aa(r(v,d++)).subscribe(Ko(t,(function(A){i?y(A):t.next(A)}),(function(){C=!0}),void 0,(function(){if(C)try{c--;for(var A=function(){var R=l.shift();a||b(R)};l.length&&c<n;)A();m()}catch(R){t.error(R)}})))};return e.subscribe(Ko(t,y,(function(){p=!0,m()}))),function(){}}function Fe(e,t,r){return r===void 0&&(r=1/0),Un(t)?Fe((function(n,o){return wt((function(i,a){return t(n,i,o,a)}))(aa(e(n,o)))}),r):(typeof t=="number"&&(r=t),ei((function(n,o){return h4(n,o,e,r)})))}function m4(e){return e===void 0&&(e=1/0),Fe(y0,e)}function g4(){return m4(1)}function _d(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return g4()(ft(e,tg(e)))}function CT(e){return new Ro((function(t){aa(e()).subscribe(t)}))}function b0(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=r4(e),n=(function(s){if(s.length===1){var l=s[0];if(Wj(l))return{args:l,keys:null};if((d=l)&&typeof d=="object"&&zj(d)===Kj){var c=Gj(l);return{args:c.map((function(p){return l[p]})),keys:c}}}var d;return{args:s,keys:null}})(e),o=n.args,i=n.keys,a=new Ro((function(s){var l=o.length;if(l)for(var c=new Array(l),d=l,p=l,m=function(b){var v=!1;aa(o[b]).subscribe(Ko(s,(function(C){v||(v=!0,p--),c[b]=C}),(function(){return d--}),void 0,(function(){d&&v||(p||s.next(i?(function(C,A){return C.reduce((function(R,x,k){return R[x]=A[k],R}),{})})(i,c):c),s.complete())})))},y=0;y<l;y++)m(y);else s.complete()}));return r?a.pipe(qI(r)):a}var qj=["addListener","removeListener"],Jj=["addEventListener","removeEventListener"],Yj=["on","off"];function Uo(e,t,r,n){if(Un(r)&&(n=r,r=void 0),n)return Uo(e,t,r).pipe(qI(n));var o=Ls((function(s){return Un(s.addEventListener)&&Un(s.removeEventListener)})(e)?Jj.map((function(s){return function(l){return e[s](t,l,r)}})):(function(s){return Un(s.addListener)&&Un(s.removeListener)})(e)?qj.map(wT(e,t)):(function(s){return Un(s.on)&&Un(s.off)})(e)?Yj.map(wT(e,t)):[],2),i=o[0],a=o[1];if(!i&&KI(e))return Fe((function(s){return Uo(s,t,r)}))(aa(e));if(!i)throw new TypeError("Invalid event target");return new Ro((function(s){var l=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return s.next(1<c.length?c:c[0])};return i(l),function(){return a(l)}}))}function wT(e,t){return function(r){return function(n){return e[r](t,n)}}}function xl(e,t,r){return r?xl(e,t).pipe(qI(r)):new Ro((function(n){var o=function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return n.next(a.length===1?a[0]:a)},i=e(o);return Un(t)?function(){return t(o,i)}:void 0}))}function ao(e,t,r){e===void 0&&(e=0),r===void 0&&(r=Vj);var n=-1;return t!=null&&(t4(t)?r=t:n=t),new Ro((function(o){var i=f4(e)?+e-r.now():e;i<0&&(i=0);var a=0;return r.schedule((function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())}),i)}))}function em(e,t){return e===void 0&&(e=0),t===void 0&&(t=la),e<0&&(e=0),ao(e,e,t)}function $o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tg(e),n=(function(i){return typeof zI(i)=="number"?i.pop():1/0})(e),o=e;return o.length?o.length===1?aa(o[0]):m4(n)(ft(o,r)):qt}var IT=new Ro(cf),Qj=Array.isArray;function Be(e,t){return ei((function(r,n){var o=0;r.subscribe(Ko(n,(function(i){return e.call(t,i,o++)&&n.next(i)})))}))}function Ji(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(t=(e=t).length===1&&Qj(e[0])?e[0]:e).length===1?aa(t[0]):new Ro((function(n){return function(o){for(var i=[],a=function(l){i.push(aa(n[l]).subscribe(Ko(o,(function(c){if(i){for(var d=0;d<i.length;d++)d!==l&&i[d].unsubscribe();i=null}o.next(c)}))))},s=0;i&&!o.closed&&s<n.length;s++)a(s)}})(t))}function oa(e){return ei((function(t,r){var n,o=null,i=!1;o=t.subscribe(Ko(r,void 0,void 0,(function(a){n=aa(e(a,oa(e)(t))),o?(o.unsubscribe(),o=null,n.subscribe(r)):i=!0}))),i&&(o.unsubscribe(),o=null,n.subscribe(r))}))}function Xj(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tg(e);return ei((function(n,o){g4()(ft(al([n],Ls(e)),r)).subscribe(o)}))}function Zj(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Xj.apply(void 0,al([],Ls(e)))}function Fr(e){return e<=0?function(){return qt}:ei((function(t,r){var n=0;t.subscribe(Ko(r,(function(o){++n<=e&&(r.next(o),e<=n&&r.complete())})))}))}function sn(){return ei((function(e,t){e.subscribe(Ko(t,cf))}))}function Pd(e){return wt((function(){return e}))}function v4(e,t){return Fe((function(r,n){return aa(e(r,n)).pipe(Fr(1),Pd(r))}))}function Zy(e,t){t===void 0&&(t=la);var r=ao(e,t);return v4((function(){return r}))}function Ho(e,t,r){return r===void 0&&(r=1/0),Un(t)?Fe((function(){return e}),t,r):Fe((function(){return e}),r)}function eV(e,t){return ei((function(r,n,o){return function(i,a){var s=o,l=n,c=0;i.subscribe(Ko(a,(function(d){var p=c++;l=s?r(l,d,p):(s=!0,d),a.next(l)}),void 0))}})(e,t,arguments.length>=2))}function y4(e){return ei((function(t,r){var n=!1,o=0;t.subscribe(Ko(r,(function(i){return(n||(n=!e(i,o++)))&&r.next(i)})))}))}function Fs(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=tg(e);return ei((function(n,o){(r?_d(e,n,r):_d(e,n)).subscribe(o)}))}function Gr(e,t){return ei((function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(Ko(n,(function(l){o==null||o.unsubscribe();var c=0,d=i++;aa(e(l,d)).subscribe(o=Ko(n,(function(p){return n.next(t?t(l,p,d,c++):p)}),(function(){o=null,s()})))}),(function(){a=!0,s()})))}))}function Wo(e){return ei((function(t,r){aa(e).subscribe(Ko(r,(function(){return r.complete()}),cf)),!r.closed&&t.subscribe(r)}))}function sd(e,t){return t===void 0&&(t=!1),ei((function(r,n){var o=0;r.subscribe(Ko(n,(function(i){var a=e(i,o++);(a||t)&&n.next(i),!a&&n.complete()})))}))}function _t(e,t,r){var n=Un(e)||t||r?{next:e,error:t,complete:r}:e;return n?ei((function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(Ko(i,(function(l){var c;(c=n.next)===null||c===void 0||c.call(n,l),i.next(l)}),(function(){var l;s=!1,(l=n.complete)===null||l===void 0||l.call(n),i.complete()}),(function(l){var c;s=!1,(c=n.error)===null||c===void 0||c.call(n,l),i.error(l)}),(function(){var l,c;s&&((l=n.unsubscribe)===null||l===void 0||l.call(n)),(c=n.finalize)===null||c===void 0||c.call(n)})))})):y0}function Xt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=r4(e);return ei((function(n,o){for(var i=e.length,a=new Array(i),s=e.map((function(){return!1})),l=!1,c=function(p){aa(e[p]).subscribe(Ko(o,(function(m){a[p]=m,l||s[p]||(s[p]=!0,(l=s.every(y0))&&(s=null))}),cf))},d=0;d<i;d++)c(d);n.subscribe(Ko(o,(function(p){if(l){var m=al([p],Ls(a));o.next(r?r.apply(void 0,al([],Ls(m))):m)}})))}))}const rg="ADD_CURRENT_USER_PARTICIPANT_ATTRIBUTE",Ki="UPDATE_CURRENT_USER_PARTICIPANT_ATTRIBUTE",S0="ADD_USER_PARTICIPANT_ATTRIBUTE",Ns="UPDATE_USER_PARTICIPANT_ATTRIBUTE",JI="REMOVE_USER_PARTICIPANT_ATTRIBUTE",qu="UPDATE_WEBINAR_PARTICIPANT_ATTRIBUTE",b4="REMOVE_WEBINAR_ATTENDEE_ATTRIBUTE";let ia=(function(e){return e.Failover="failover",e.OnHold="on hold",e.Promote="promote",e.Depromote="depromote",e.JoinBreakoutRoom="join breakout room",e.MoveToBreakoutRoom="move to breakout room",e.BackToMainSession="back to main session",e})({});const Zc="js_media.min.js";let AS=(function(e){return e.CDN="CDN",e.Global="Global",e.CN="CN",e})({}),au=(function(e){return e.Connected="Connected",e.Reconnecting="Reconnecting",e.Closed="Closed",e.Fail="Fail",e})({}),di=(function(e){return e.Initial="initial",e.Joined="joined",e.Closed="closed",e})({}),Ju=(function(e){return e.AudioDecodeInWorklet="M:6;V:3",e.VideoWebRTCEnable="M:10;V:6",e.VideoHalfWebRTCEnable="M:11;V:7",e.WebGL2Render="M:20;V:8",e.WebGPURender="M:21;V:9",e.ZMKFromRWG="M:19;V:10",e})({}),yi=(function(e){return e[e.NormalCase=-1]="NormalCase",e[e.NoHeartbeat=0]="NoHeartbeat",e[e.NoHeartbeatMChannel=1]="NoHeartbeatMChannel",e[e.NetworkChange=2]="NetworkChange",e[e.NotifyUiFailover=3]="NotifyUiFailover",e[e.InvalidParameters=4]="InvalidParameters",e[e.OnError=5]="OnError",e[e.OnErrorMChannel=6]="OnErrorMChannel",e[e.Disconnect=7]="Disconnect",e[e.DisconnectMChannel=8]="DisconnectMChannel",e[e.DisconnectXmpp=9]="DisconnectXmpp",e[e.RefreshPage=10]="RefreshPage",e[e.NotifyUIWMSCFailover=11]="NotifyUIWMSCFailover",e[e.NotifyUIWMSCWSSDisconnected=12]="NotifyUIWMSCWSSDisconnected",e[e.OnErrorXmppChannel=15]="OnErrorXmppChannel",e})({});const S4="JOIN_MEETING_SUCCESS",_o="JOIN_MEETING_FAILED",ka="RECONNECTING_MEETING",Yu="LEAVING_MEETING",E4="MEETING_IN_WAITING_ROOM",YI="UPDATE_MEETING_ATTRIBUTE",ny="MEETING_RLB_TP_READY_STATUS_CHANGE";var Ts=(function(e){return e.ConnectionChange="connection-change",e.OnHoldChange="on-hold-change",e.UserAdd="user-added",e.UserUpdate="user-updated",e.UserRemove="user-removed",e.AttendeeUpdate="attendee-updated",e.MeetingAttributeUpdate="meeting-attribute-updated",e.PromoteAttendeeConsent="promote-attendee-consent",e.ActiveAppsUpdate="active-apps-updated",e.SharePronounTypeUpdate="share-pronoun-type-update",e.BotRelationUpdate="bot-relation-update",e})(Ts||{});const tV={JoinMeeting:{success:rg,fail:[_o]}},rV={[Ts.ConnectionChange]:[{event:S4,payload:()=>({state:au.Connected})},{event:_o,payload:e=>({state:au.Fail,...e})},{event:ka,payload:e=>({state:au.Reconnecting,...e})},{event:Yu,payload:e=>({state:au.Closed,...e})}],[Ts.OnHoldChange]:[{event:E4,payload:e=>({isOnHold:e})}],[Ts.UserAdd]:[{event:rg,payload:e=>[e]},{event:S0,payload:e=>e}],[Ts.UserUpdate]:[{event:Ki,payload:e=>[e]},{event:Ns,payload:e=>e}],[Ts.UserRemove]:[{event:JI,payload:e=>e}],[Ts.AttendeeUpdate]:[{event:qu,payload:e=>e},{event:b4,payload:e=>e}],[Ts.MeetingAttributeUpdate]:[{event:YI,payload:e=>"bNoHostTimeOut"in e?{isHostLost:e.bNoHostTimeOut}:null}],[Ts.PromoteAttendeeConsent]:[{event:"MEETING_WEBINAR_PROMOTE_CONSENT_REQ",payload:({req_id:e,sender_id:t})=>({reqId:e,senderId:t})}],[Ts.ActiveAppsUpdate]:[{event:"ACTIVE_APPS_UPDATE",payload:()=>{}}],[Ts.SharePronounTypeUpdate]:[{event:"SHARE_PRONOUN_TYPE_UPDATE",payload:e=>e}],[Ts.BotRelationUpdate]:[{event:"BOT_RELATION_UPDATE",payload:e=>e}]},xh="LIVE_TRANSCRIPTION_RECEIVE_MESSAGE",ds="LIVE_TRANSCRIPTION_CAPTION_STATUS_CHANGE_RESPONSE",C4="LIVE_TRANSCRIPTION_STATUS_CHANGE",QI="LIVE_TRANSCRIPTION_HOST_DISABLE_CHANGE",XI="LIVE_TRANSCRIPTION_LANGUAGE_LOCK_CHANGE",nV={"caption-message":[{event:xh,payload:e=>e}],"caption-status":[{event:ds,payload:e=>e}],"caption-enable":[{event:C4,payload:e=>e}],"caption-host-disable":[{event:QI,payload:e=>e}],"caption-language-lock":[{event:XI,payload:e=>e}]},yd="CHAT_RECEIVE_MESSAGE_EVENTS",Wp="CHAT_PRIVILEGE_CHANGE",w4="CHAT_MESSAGE_RESPONSE",eb="CHAT_DELETE_MESSAGE_REPONSE",xd="CHAT_FILE_CHAT_UPLOAD_PROGRESS",oy="CHAT_FILE_CHAT_DOWNLOAD_PROGRESS";let Kf=(function(e){return e.ChatOnMessage="chat-on-message",e.ChatPrivilegeChange="chat-privilege-change",e.ChatDeleteMessage="chat-delete-message",e.ChatFileUploadProgress="chat-file-upload-progress",e.ChatFileDownloadProgress="chat-file-download-progress",e})({});const oV={[Kf.ChatOnMessage]:[{event:yd,payload:e=>e}],[Kf.ChatPrivilegeChange]:[{event:Wp,payload:e=>e}],[Kf.ChatDeleteMessage]:[{event:eb,payload:e=>e}],[Kf.ChatFileUploadProgress]:[{event:xd,payload:e=>e}],[Kf.ChatFileDownloadProgress]:[{event:oy,payload:e=>e}]},gE="COMMAND_RECEIVE_MESSAGE_EVENTS",ZI="COMMAND_STATUS_EVENTS";let AT=(function(e){return e.CommandChannelStatus="command-channel-status",e.CommandChannelMessage="command-channel-message",e})({});const iV={[AT.CommandChannelStatus]:[{event:ZI,payload:e=>e}],[AT.CommandChannelMessage]:[{event:gE,payload:e=>e}]};let tl=(function(e){return e.Recording="Recording",e.Paused="Paused",e.Stopped="Stopped",e.Ask="Ask",e.Accept="Accept",e.Decline="Decline",e})({}),jo=(function(e){return e[e.None=0]="None",e[e.Init=1]="Init",e[e.Start=2]="Start",e[e.Pause=3]="Pause",e[e.Stop=4]="Stop",e})({}),tm=(function(e){return e[e.Stop=0]="Stop",e[e.Start=1]="Start",e[e.Pause=2]="Pause",e})({}),Na=(function(e){return e[e.None=0]="None",e[e.Deny=1]="Deny",e[e.Allow=2]="Allow",e})({}),aV=(function(e){return e[e.None=0]="None",e[e.DenyAllRequest=1]="DenyAllRequest",e[e.AllowAllRequest=2]="AllowAllRequest",e})({});const Dh="CLOUD_RECORDING_STATUS_CHANGE",tb="CLOUD_RECORDING_ISO_STATUS_CHANGE",rb="LOCAL_RECORDING_CHANGE",bl="LOCAL_RECORDING_PERMISSION_CHANGE",I4="RECORDING_FOR_IQ_STATUS_CHANGE",A4="RECORDING_FOR_IQ_OPERATION_CHANGE";let _c=(function(e){return e.RecordingChange="recording-change",e.IndividualRecordingChange="individual-recording-change",e.LocalRecordingChange="local-recording-change",e.LocalRecordingPermissionChange="local-recording-permission-change",e.MediaCaptureStatusChange="media-capture-status-change",e.MediaCapturePermissionChange="media-capture-permission-change",e.RecordingIqChange="recording-iq-change",e})({});const sV={[_c.RecordingChange]:[{event:Dh,payload:e=>{const{cmrServerStatus:t}=e;return t===jo.Start?tl.Recording:t===jo.Pause?tl.Paused:tl.Stopped}}],[_c.IndividualRecordingChange]:[{event:tb,payload:e=>e}],[_c.LocalRecordingChange]:[{event:rb,payload:e=>e}],[_c.LocalRecordingPermissionChange]:[{event:bl,payload:e=>e}],[_c.MediaCaptureStatusChange]:[{event:rb,payload:e=>e}],[_c.MediaCapturePermissionChange]:[{event:bl,payload:e=>e}],[_c.RecordingIqChange]:[{event:I4,payload:e=>e}]},R4="RECEIVE_VIDEO_ACTIVE_INDICATION",T4="RECEIVE_VIDEO_MUTE_INDICATION",O4="ASK_FOR_START_VIDEO_CONSENT",_4="RECEIVE_VIDEO_DIMENSION_CHANGE",P4="CAPTURED_VIDEO_DIMENSION_CHANGE",nb="CAN_NOT_DETECT_CAMERA",ob="CAN_NOT_FIND_CAMERA",ib="VIDEO_USER_FORBIDDEN_CAPTURE",ab="VIDEO_CAMERA_IS_TAKEN",eA="VIDEO_BACKGROUND_FAILED",tA="VIDEO_ESTABLISH_STREAM_ERROR",rA="VIDEO_CAPTURE_START_SUCCESS",zp="VIDEO_CAPTURE_STOP_RESULT",Kp="VIDEO_SPOTLIGHT_CHANGE",x4="VIDEO_FOLLOW_HOST_ORDER_CHANGE",D4="VIDEO_HOST_DRAG_LAYOUT_CHANGE",N4="VIDEO_NEW_USER_START",iy="VIDEO_OLD_USER_STOP",sb="VIDEO_VIRTUAL_BACKGROUND_PRELOAD_READY",vE="VIDEO_VIRTUAL_BACKGROUND_SETTING_SUCCESS",yE="VIDEO_STATISTIC_DATA",bE="VIDEO_CELL_DETAILED_DATA",SE="VIDEO_NETWORK_QUALITY_CHANGE",M4="VIDEO_FAR_END_CAMERA_CONTROL_REQUEST",EE="VIDEO_FAR_END_CAMERA_CONTROL_RESPONSE",lb="VIDEO_FAR_END_CAMERA_IN_CONTROL_CHANGE",k4="VIDEO_FAR_END_CAMERA_CAPABILITY_CHANGE",CE="VIDEO_MASK_SETTING_SUCCESS",L4="VIDEO_CAPTURE_SDK_SUCCESS",F4="VIDEO_PREFETCH_VIDEO_FRAME_CALLBACK",j4="VIDEO_CURRENT_USER_SSRC",V4="VIDEO_RENDER_ASPECT_RATIO_CHANGE",ub="VIDEO_LEADERSHIP_USER_CHANGE",B4="VIDEO_SCREENSHOT_TAKEN_NOTIFICATION",H4="WEB_RTC_STATISTIC_DATA",U4="SYSTEM_RESOURCE_USAGE_CHANGE",RT={startCaptureVideo:{success:rA,fail:[nb,ob,ib,tA,ab,eA]},switchCameraVideo:{success:L4,fail:[nb,ob,ib,ab]}};let ri=(function(e){return e.VideoActiveChange="video-active-change",e.PeerVideoStateChange="peer-video-state-change",e.VideoSpotlightChange="video-spotlight-change",e.VideoMutedChange="video-muted-change",e.VideoCapturingChange="video-capturing-change",e.AskForStartVideoConsent="ask-for-start-video-consent",e.VideoDimensionChange="video-dimension-change",e.VideoFollowHostOrder="video-follow-host-order-change",e.VideoHostLayoutChange="video-host-layout-change",e.VideoVBPreloadChange="video-virtual-background-preload-change",e.VideoStatisticDataChange="video-statistic-data-change",e.VideoDetailedDataChange="video-detailed-data-change",e.VideoAspectRatioChange="video-aspect-ratio-change",e.NetworkQualityChange="network-quality-change",e.FarEndCameraRequestControl="far-end-camera-request-control",e.FarEndCameraResponseControl="far-end-camera-response-control",e.FarEndCameraInControlChange="far-end-camera-in-control-change",e.FarEndCameraCapabilityChange="far-end-camera-capability-change",e.VideoScreenshotTaken="video-screenshot-taken",e.WebrtcStatsReportDataChange="webrtc-stats-report-data-change",e.SystemResourceUsageChange="system-resource-usage-change",e})({});const lV={[ri.VideoActiveChange]:[{event:R4,payload:e=>({state:e.bVideoOn?oT.Active:oT.Inactive,userId:e.userId})}],[ri.VideoCapturingChange]:[{event:rA,payload:()=>({state:gS.Started})},{event:zp,payload:e=>({state:e!=null&&e.failed?gS.Failed:gS.Stopped})}],[ri.VideoMutedChange]:[{event:T4,payload:e=>({state:e.isVideoMuted?Lg.Muted:Lg.Unmuted,userId:e.id})}],[ri.AskForStartVideoConsent]:[{event:O4,payload:e=>({state:e.isVideoMuted?Lg.Muted:Lg.Unmuted,userId:e.id})}],[ri.VideoSpotlightChange]:[{event:Kp,payload:e=>({spotlightList:e.spotlightList&&e.spotlightList.map((t=>({userId:t})))})},{event:ub,payload:e=>{var t;return{spotlightList:(t=e.spotlightList)===null||t===void 0?void 0:t.map((r=>({userId:r})))}}}],[ri.VideoDimensionChange]:[{event:_4,payload:e=>({type:"received",width:e.width,height:e.height})},{event:P4,payload:e=>({type:"captured",width:e.width,height:e.height})}],[ri.VideoFollowHostOrder]:[{event:x4,payload:e=>({isFollowHostOrder:e.bOn})}],[ri.VideoHostLayoutChange]:[{event:D4,payload:e=>Array.isArray(e.layout)?e.layout.map((t=>({userId:t}))):[]}],[ri.PeerVideoStateChange]:[{event:N4,payload:e=>({action:"Start",...e})},{event:iy,payload:e=>({action:"Stop",...e})}],[ri.VideoVBPreloadChange]:[{event:sb,payload:e=>({isReady:e})}],[ri.VideoStatisticDataChange]:[{event:yE,payload:e=>{const{data:{rate:t,...r},...n}=e??{data:{}};return{data:{bitrate:t,...r},...n}}}],[ri.VideoDetailedDataChange]:[{event:bE,payload:e=>e}],[ri.VideoAspectRatioChange]:[{event:V4,payload:e=>e}],[ri.NetworkQualityChange]:[{event:SE,payload:e=>e}],[ri.FarEndCameraRequestControl]:[{event:M4,payload:e=>e}],[ri.FarEndCameraResponseControl]:[{event:EE,payload:e=>e}],[ri.FarEndCameraInControlChange]:[{event:lb,payload:e=>e}],[ri.FarEndCameraCapabilityChange]:[{event:k4,payload:e=>e}],[ri.VideoScreenshotTaken]:[{event:B4,payload:e=>e}],[ri.WebrtcStatsReportDataChange]:[{event:H4,payload:e=>e}],[ri.SystemResourceUsageChange]:[{event:U4,payload:e=>e}]},$4="AUDIO_ACTIVE_SPEAKER",ay="AUDIO_UNMUTE_CONSENT",xp="AUDIO_CURRENT_USER_JOIN_BY_VOIP",wE="AUDIO_CURRENT_USER_JOIN_BY_PHONE",E0="AUDIO_CURRENT_USER_LEAVE_AUDIO",nA="AUDIO_CURRENT_USER_MUTED",oA="AUDIO_CURRENT_USER_UNMUTED",W4="AUDIO_PARTICIPANT_AUDIO_UPDATE",z4="AUDIO_DIALOUT_RESULT_CODE",K4="AUDIO_DIALOUT_RESULT_SUCCESS",G4="AUDIO_DIALOUT_RESULT_FAIL",q4="AUDIO_DIALOUT_CANCEL_SUCCESS",J4="DIALOUT_CANCEL_FAIL",Y4="AUDIO_MERGE_AUDIO_INDICATION",Q4="AUDIO_CAPTURE_FAILED",X4="ESTABLISH_AUDIO_STREAM_ERROR",Z4="AUDIO_AUTO_PLAY_FAILED",TT="INVALID_DEVICE_ID",eM="AUDIO_ALLOW_TALK_CHANGE",df="SHARE_AUDIO_STATE_CHANGE",IE="AUDIO_STATISTIC_DATA",tM="AUDIO_CURRENT_USER_SSRC",AE="AUDIO_SET_SPEAKER_RESULT",rM="AUDIO_SHARE_SECONDARY_AUDIO_SUCCESS",nM="AUDIO_CRC_CALL_OUT_RESULT_CODE",oM="AUDIO_CRC_CALL_OUT_RESULT_SUCCESS",iM="AUDIO_CRC_CALL_OUT_RESULT_FAIL",aM="AUDIO_CURRENT_AUDIO_LEVEL_CHANGE",sM="AUDIO_SPEAKING_WHILE_MUTED";let ws=(function(e){return e.ActiveSpeaker="active-speaker",e.UnmuteAudioConsent="unmute-audio-consent",e.CurrentAudioChange="current-audio-change",e.CurrentAudioLevelChange="current-audio-level-change",e.DialoutStateChange="dialout-state-change",e.MergeAudio="merged-audio",e.AutoPlayFailed="auto-play-audio-failed",e.AllowTalkChange="allow-talk-change",e.ShareAudioChange="share-audio-change",e.AudioStatisticDataChange="audio-statistic-data-change",e.CrcCallOutStateChange="crc-call-out-state-change",e.SpeakingWhileMuted="speaking-while-muted",e})({});const Dp={JoinComputerAudio:{success:xp,fail:[Q4,X4]},JoinAudioByCallMe:{success:K4,fail:[G4]},cancelDialOut:{success:q4,fail:[J4]},hangup:{success:E0},crcCallOut:{success:oM,fail:[iM]}},uV={[ws.ActiveSpeaker]:[{event:$4,payload:e=>e}],[ws.UnmuteAudioConsent]:[{event:ay,payload:e=>({reason:e})}],[ws.CurrentAudioChange]:[{event:wE,payload:()=>({action:Wf.Join,type:an.Phone})},{event:xp,payload:()=>({action:Wf.Join,type:an.Computer})},{event:E0,payload:({source:e})=>({action:Wf.Leave,source:e})},{event:nA,payload:({source:e})=>({action:Wf.Muted,source:e})},{event:oA,payload:({source:e})=>({action:Wf.Unmuted,source:e})}],[ws.DialoutStateChange]:[{event:z4,payload:e=>e}],[ws.MergeAudio]:[{event:Y4,payload:e=>e}],[ws.AutoPlayFailed]:[{event:Z4,payload:()=>{}}],[ws.AllowTalkChange]:[{event:eM,payload:e=>({enabled:e})}],[ws.ShareAudioChange]:[{event:df,payload:e=>e}],[ws.AudioStatisticDataChange]:[{event:IE,payload:e=>{const{data:{rate:t,...r},...n}=e??{data:{}};return{data:{bitrate:t,...r},...n}}}],[ws.CrcCallOutStateChange]:[{event:nM,payload:e=>e}],[ws.CurrentAudioLevelChange]:[{event:aM,payload:e=>e}],[ws.SpeakingWhileMuted]:[{event:sM,payload:e=>e}]},ld="SHARE_ACTIVE_INDICATION",lM="SHARE_START_DESKTOP_SHARE_FAILED",iA="SHARE_DIMENSION_CHANGE",cb="SHARE_RECEIVED_DIMENSION_CHANGE",uM="SHARE_VIDEO_STREAMS_END",cM="SHARE_PASSIVE_STOP_SHARE",dM="SHARE_PASSIVE_BO_STOP",pM="SHARE_CAMERA_PASSIVE_STOP",aA="SHARE_NEW_USER_ADD",sA="SHARE_USER_REMOVE",fM="SHARE_USER_PAUSED",hM="SHARE_USER_RESUMED",db="SHARE_AUTO_CHANGE_SOURCE",pb="SHARE_REMOTE_CONTROL_APPROVE",bd="SHARE_GRAB_REMOTE_CONTROL_CHANGE",RE="SHARE_REMOTE_CONTROL_CLIPBOARD_CHANGE",mM="SHARE_REMOTE_CONTROL_SUCCESS",gM="SHARE_REMOTE_CONTROL_FAILED",vM="SHARE_PRIVILEGE_CHANGE",yM="SHARE_READ_RECEIPT",TE="SHARE_STATISTIC_DATA",bM="SHARE_REMOTE_CONTROL_REQUEST",Wc="SHARE_REMOTE_CONTROL_APP_STATUS",sy="SHARE_REMOTE_CONTROL_SESSION_STATUS",SM="SHARE_REMOTE_CONTROL_APP_SCHEME",EM="SHARE_SCREENSHOT_TAKEN_NOTIFICATION",OE="ANNOTATION_START_RESULT",lA="ANNOTATION_PRIVILEGE_CHANGE",CM="ANNOTATION_UNDO_STATUS",wM="ANNOTATION_REDO_STATUS",IM="ANNOTATION_DRAW_REQUEST",AM="SHARE_REMOTE_CAMERA_REQUEST",RM="SHARE_REMOTE_CAMERA_RESPONSE",TM="SHARE_REMOTE_CAMERA_STATUS";let Jo=(function(e){return e.ShareActiveChange="active-share-change",e.ShareDimensionChange="share-content-dimension-change",e.SharePassiveStop="passively-stop-share",e.SharePeerStateChange="peer-share-state-change",e.ShareContentChange="share-content-change",e.SharePrivilegeChange="share-privilege-change",e.ShareReadReceipt="share-can-see-screen",e.ShareStatisticDataChange="share-statistic-data-change",e.RemoteControlApprovedChange="remote-control-approved-change",e.RemoteControlInControlChange="remote-control-in-control-change",e.RemoteControlClipboardChange="remote-control-clipboard-change",e.RemoteControlRequestChange="remote-control-request-change",e.RemoteControlAppStatusChange="remote-control-app-status-change",e.RemoteControlControlledStatusChange="remote-control-controlled-status-change",e.ShareScreenshotTaken="share-content-screenshot-taken",e.AnnotationPrivilegeChange="annotation-privilege-change",e.AnnotationRedoStatus="annotation-redo-status",e.AnnotationUndoStatus="annotation-undo-status",e.AnnotationDrawRequest="annotation-viewer-draw-request",e.ShareRemoteCameraRequest="share-camera-request",e.ShareRemoteCameraApproveChange="share-camera-approve-change",e.ShareRemoteCameraStatus="share-camera-status",e})({});const cV={[Jo.ShareActiveChange]:[{event:ld,payload:e=>{const{isActive:t,activeUserId:r,...n}=e;return{state:t?"Active":"Inactive",userId:r,...n}}}],[Jo.ShareDimensionChange]:[{event:iA,payload:e=>({type:"sended",width:e.width,height:e.height,userId:e.userId})},{event:cb,payload:e=>({type:"received",width:e.width,height:e.height,userId:e.nodeid})}],[Jo.SharePassiveStop]:[{event:uM,payload:()=>({reason:Fg.StopScreenCapture})},{event:cM,payload:()=>({reason:Fg.PrivilegeChange})},{event:dM,payload:()=>({reason:Fg.ShareFromMainSession})},{event:pM,payload:()=>({reason:Fg.StopCameraCapture})}],[Jo.SharePeerStateChange]:[{event:aA,payload:e=>{var t;return{userId:e.id,action:"Start",isFromMainSession:(t=e==null?void 0:e.isFromMainSession)!==null&&t!==void 0&&t}}},{event:sA,payload:e=>{var t;return{userId:e.id,action:"Stop",isFromMainSession:(t=e==null?void 0:e.isFromMainSession)!==null&&t!==void 0&&t}}},{event:fM,payload:e=>({userId:e.id,action:"Pause"})},{event:hM,payload:e=>({userId:e.id,action:"Resume"})}],[Jo.ShareContentChange]:[{event:db,payload:e=>e}],[Jo.SharePrivilegeChange]:[{event:vM,payload:e=>({privilege:e})}],[Jo.ShareReadReceipt]:[{event:yM,payload:()=>{}}],[Jo.ShareStatisticDataChange]:[{event:TE,payload:e=>{const{data:{rate:t,...r},...n}=e??{data:{}};return{data:{bitrate:t,...r},...n}}}],[Jo.RemoteControlApprovedChange]:[{event:pb,payload:e=>({state:e?iT.Approved:iT.Rejected})}],[Jo.RemoteControlInControlChange]:[{event:bd,payload:e=>({isControlling:e})}],[Jo.RemoteControlClipboardChange]:[{event:RE,payload:e=>e}],[Jo.RemoteControlRequestChange]:[{event:bM,payload:e=>e}],[Jo.RemoteControlAppStatusChange]:[{event:Wc,payload:e=>e}],[Jo.RemoteControlControlledStatusChange]:[{event:sy,payload:e=>e}],[Jo.ShareScreenshotTaken]:[{event:EM,payload:e=>e}],[Jo.AnnotationPrivilegeChange]:[{event:lA,payload:e=>e}],[Jo.AnnotationRedoStatus]:[{event:wM,payload:e=>e}],[Jo.AnnotationUndoStatus]:[{event:CM,payload:e=>e}],[Jo.AnnotationDrawRequest]:[{event:IM,payload:e=>e}],[Jo.ShareRemoteCameraRequest]:[{event:AM,payload:e=>e}],[Jo.ShareRemoteCameraApproveChange]:[{event:RM,payload:e=>e}],[Jo.ShareRemoteCameraStatus]:[{event:TM,payload:e=>e}]};let Fl=(function(e){return e.Question="question",e.UpdateQuestion="updateQuestion",e.Answer="answer",e.DeleteComment="deleteComment",e.DeleteQuestion="deleteQuestion",e.Dismiss="dismiss",e.Reopen="reopen",e.Upvote="upvote",e.AnswerLive="answerLive",e})({}),OT=(function(e){return e.QaSettingChange="qa-setting-change",e.QaActionChange="qa-action-change",e})({});const dV={[OT.QaSettingChange]:[{event:"QA_SETTING_OPTION_CHANGE",payload:e=>e}],[OT.QaActionChange]:[{event:"QA_NEW_ASK_QUESTION",payload:e=>({action:Fl.Question,data:e})},{event:"QA_UPDATE_ANONYMOUS_QUESTION",payload:e=>({action:Fl.UpdateQuestion,data:e})},{event:"QA_ANSWER_QUESTION",payload:e=>({action:Fl.Answer,data:e})},{event:"QA_ANSWER_REMOVE_COMMENT",payload:e=>({action:Fl.DeleteComment,data:e})},{event:"QA_ANSWER_REMOVE_QUESTION",payload:e=>({action:Fl.DeleteQuestion,data:e})},{event:"QA_ANSWER_DISMISS_QUESTION",payload:e=>({action:Fl.Dismiss,data:e})},{event:"QA_ANSWER_REOPEN_QUESTION",payload:e=>({action:Fl.Reopen,data:e})},{event:"QA_ANSWER_VOTE_QUESTION",payload:e=>({action:Fl.Upvote,data:e})},{event:"QA_ANSWER_QUESTION_LIVE",payload:e=>({action:Fl.AnswerLive,data:e})}]},OM="AUDIO_ENCODE_SUCCESS",_M="AUDIO_DECODE_SUCCESS",PM="VIDEO_ENCODE_SUCCESS",xM="VIDEO_DECODE_SUCCESS",DM="SHARING_ENCODE_SUCCESS",_E="SHARING_DECODE_SUCCESS",NM="AUDIO_ENCODE_FAIL",MM="AUDIO_DECODE_FAIL",kM="VIDEO_ENCODE_FAIL",LM="VIDEO_DECODE_FAIL",FM="SHARING_ENCODE_FAIL",jM="SHARING_DECODE_FAIL",VM="MEDIA_DEVICE_CHANGE",ly="MEDIS_SDK_PATHCH_LOADED",PE="DEVICE_PERMISSION_CHANGE",BM="MEDIA_HEALTH_CHECK_FAILED";let Vg=(function(e){return e.DeviceChange="device-change",e.MediaSDKChange="media-sdk-change",e.DevicePermissionChange="device-permission-change",e.MediaInternalError="media-internal-error",e})({});const pV={[Vg.DeviceChange]:[{event:VM,payload:()=>({})}],[Vg.MediaSDKChange]:[{event:OM,payload:()=>({type:"audio",action:"encode",result:"success"})},{event:NM,payload:()=>({type:"audio",action:"encode",result:"fail"})},{event:_M,payload:()=>({type:"audio",action:"decode",result:"success"})},{event:MM,payload:()=>({type:"audio",action:"decode",result:"fail"})},{event:PM,payload:()=>({type:"video",action:"encode",result:"success"})},{event:kM,payload:()=>({type:"video",action:"encode",result:"fail"})},{event:xM,payload:()=>({type:"video",action:"decode",result:"success"})},{event:LM,payload:()=>({type:"video",action:"decode",result:"fail"})},{event:DM,payload:()=>({type:"share",action:"encode",result:"success"})},{event:FM,payload:()=>({type:"share",action:"encode",result:"fail"})},{event:_E,payload:()=>({type:"share",action:"decode",result:"success"})},{event:jM,payload:()=>({type:"share",action:"decode",result:"fail"})}],[Vg.DevicePermissionChange]:[{event:PE,payload:e=>e}],[Vg.MediaInternalError]:[{event:BM,payload:e=>e}]},HM="BREAKOUT_ROOM_ADD_TOKEN",uy="BREAKOUT_ROOM_INVITE_TO_JOIN_NOTIFICATION",xE="BREAKOUT_ROOM_ROOM_CLOSING_COUNTDOWN",DE="BREAKOUT_ROOM_ROOM_COUNTDOWN",UM="BREAKOUT_ROOM_BROADCAST_MESSAGE",$M="BREAKOUT_ROOM_ASK_HELP_REQUEST",uA="BREAKOUT_ROOM_ASK_HELP_RESPONSE",ed="BREAKOUT_ROOM_ATTRIBUTE_INDICATION",cy="BREAKOUT_ROOM_JOIN_BO_RESPONSE",WM="BREAKOUT_ROOM_ROOM_COUNTDOWN_TIME_UP",NE="BREAKOUT_ROOM_CURRENT_USER_PARTICIPANT_ROLE",zM="BREAKOUT_ROOM_LOAD_PRE_ASSIGNED_ROOMS",KM="BREAKOUT_ROOM_MAIN_SESSION_USER_UPDATE",GM="BREAKOUT_ROOM_INVITE_TO_BACK_NOTIFICATION",qM="BREAKOUT_ROOM_IN_ROOM_USER_STATUS_UPDATE",JM="BREAKOUT_ROOM_BROADCAST_VOICE";let Is=(function(e){return e.InviteToJoin="invite-to-join",e.RoomCountdown="room-countdown",e.RoomTimeUp="room-time-up",e.ClosingRoomCountdown="closing-room-countdown",e.BroadcastMessage="broadcast-message",e.AskForHelp="ask-for-help",e.AskForHelpResponse="ask-for-help-response",e.RoomStateChange="room-state-change",e.MainSessionUserUpdate="main-session-user-updated",e.InviteToBack="invite-back-to-main-session",e.RoomUserUpdate="room-user-update",e.BroadcastVoice="broadcast-voice",e})({});const fV={[Is.InviteToJoin]:[{event:uy,payload:e=>e}],[Is.RoomCountdown]:[{event:DE,payload:e=>e}],[Is.RoomTimeUp]:[{event:WM,payload:e=>e}],[Is.ClosingRoomCountdown]:[{event:xE,payload:e=>e}],[Is.BroadcastMessage]:[{event:UM,payload:e=>e}],[Is.AskForHelp]:[{event:$M,payload:e=>e}],[Is.AskForHelpResponse]:[{event:uA,payload:e=>e}],[Is.RoomStateChange]:[{event:ed,payload:e=>({status:e.controlStatus})}],[Is.MainSessionUserUpdate]:[{event:KM,payload:()=>({})}],[Is.InviteToBack]:[{event:GM,payload:e=>e}],[Is.RoomUserUpdate]:[{event:qM,payload:e=>e}],[Is.BroadcastVoice]:[{event:JM,payload:e=>e}]};var ME=(function(e){return e.StatusUpdate="archiving-status-update",e.OptionsUpdate="archiving-options-update",e})(ME||{});const hV={[ME.StatusUpdate]:[{event:"ARCHIVING_STATUS_UPDATE",payload:e=>e}],[ME.OptionsUpdate]:[{event:"ARCHIVING_OPTIONS_UPDATE",payload:e=>e}]};let RS=(function(e){return e.PollDataChange="poll-data-change",e.PollSizeUpdate="poll-size-update",e.PollStatusUpdate="poll-status-update",e})({});const mV={[RS.PollDataChange]:[{event:"POLL_DATA_CHANGE",payload:e=>e}],[RS.PollSizeUpdate]:[{event:"POLL_SIZE_UPDATE",payload:e=>e}],[RS.PollStatusUpdate]:[{event:"POLL_STATUS_UPDATE",payload:e=>e}]};let _T=(function(e){return e.ReactionReceived="reaction-received",e.ReactionRemoved="reaction-removed",e})({});const gV={[_T.ReactionReceived]:[{event:"REACTION_RECEIVED",payload:e=>e}],[_T.ReactionRemoved]:[{event:"REACTION_REMOVED",payload:e=>e}]},Qu="SMART_SUMMARY_STATUS_CHANGE",Xu="MEETING_QUERY_STATUS_CHANGE";let PT=(function(e){return e.SummaryChange="summary-status-change",e.MeetingQueryChang="meeting-query-status-change",e})({});const vV={[PT.SummaryChange]:[{event:Qu,payload:e=>e}],[PT.MeetingQueryChang]:[{event:Xu,payload:e=>e}]},Nh="LIVE_STREAM_STATUS_CHANGE",yV={"live-stream-status":[{event:Nh,payload:e=>e}]},kE="BROADCAST_STREAM_UTK_UPDATE",LE="BROADCAST_STREAM_STATUS_CHANGE",bV={"broadcast-streaming-status":[{event:LE,payload:e=>e}]};let Z=(function(e){return e[e.OPERATION_TIMEOUT=1]="OPERATION_TIMEOUT",e[e.INTERNAL_ERROR=2]="INTERNAL_ERROR",e[e.OPERATION_CANCELLED=3]="OPERATION_CANCELLED",e[e.SESSION_FETCH_INFO_ERROR=200]="SESSION_FETCH_INFO_ERROR",e[e.SESSION_IN_ANOTHER_SESSION=3e3]="SESSION_IN_ANOTHER_SESSION",e[e.SESSION_INCORRECT_PASSCODE=3004]="SESSION_INCORRECT_PASSCODE",e[e.SESSION_NOT_STARTED=3008]="SESSION_NOT_STARTED",e[e.SESSION_USER_REMOVED=3009]="SESSION_USER_REMOVED",e[e.SESSION_ROLE_TYPE_ERROR=3010]="SESSION_ROLE_TYPE_ERROR",e[e.SESSION_WEBINAR_USER_REMOVED=3620]="SESSION_WEBINAR_USER_REMOVED",e[e.SESSION_INVALID_PARAMETER=4003]="SESSION_INVALID_PARAMETER",e[e.SESSION_ENDED=4004]="SESSION_ENDED",e[e.SESSION_LOCKED=4006]="SESSION_LOCKED",e[e.SESSION_IB_BLOCKED=4007]="SESSION_IB_BLOCKED",e[e.SESSION_PARTICIPANT_EXIST=4008]="SESSION_PARTICIPANT_EXIST",e[e.CLIENT_PLATFORM_UNSUPPORTED=5e3]="CLIENT_PLATFORM_UNSUPPORTED",e[e.CLIENT_DEPENDENT_ASSETS_INACCESSIBLE=5001]="CLIENT_DEPENDENT_ASSETS_INACCESSIBLE",e[e.CLIENT_SESSION_STATE_CLOSED=5002]="CLIENT_SESSION_STATE_CLOSED",e[e.CLIENT_SESSION_STATE_RECONNECTING=5003]="CLIENT_SESSION_STATE_RECONNECTING",e[e.CLIENT_SESSION_STATE_ON_HOLD=5004]="CLIENT_SESSION_STATE_ON_HOLD",e[e.CLIENT_SESSION_NOT_WEBINAR=5005]="CLIENT_SESSION_NOT_WEBINAR",e[e.CLIENT_HOST_OR_MANAGER_PERMISSION_REQUIRED=5006]="CLIENT_HOST_OR_MANAGER_PERMISSION_REQUIRED",e[e.CLIENT_HOST_PERMISSION_REQUIRED=5007]="CLIENT_HOST_PERMISSION_REQUIRED",e[e.CLIENT_ORIGIN_HOST_PERMISSION_REQUIRED=5008]="CLIENT_ORIGIN_HOST_PERMISSION_REQUIRED",e[e.CLIENT_ATTENDEE_APPLICABLE_ONLY=5009]="CLIENT_ATTENDEE_APPLICABLE_ONLY",e[e.CLIENT_PARTICIPANT_APPLICABLE_ONLY=5010]="CLIENT_PARTICIPANT_APPLICABLE_ONLY",e[e.CLIENT_MISMATCH_USER=5011]="CLIENT_MISMATCH_USER",e[e.CLIENT_DUPLICATED_JOIN=5012]="CLIENT_DUPLICATED_JOIN",e[e.CLIENT_INVALID_JOIN_PARAMETER=5013]="CLIENT_INVALID_JOIN_PARAMETER",e[e.CLIENT_HOST_DISALLOW_RENAME=5014]="CLIENT_HOST_DISALLOW_RENAME",e[e.STREAM_MISMATCH_DEVICE=6e3]="STREAM_MISMATCH_DEVICE",e[e.STREAM_MISMATCH_USER=6001]="STREAM_MISMATCH_USER",e[e.STREAM_SESSION_JOIN_REQUIRED=6002]="STREAM_SESSION_JOIN_REQUIRED",e[e.STREAM_MISMATCH_RENDER_ELEMENT=6003]="STREAM_MISMATCH_RENDER_ELEMENT",e[e.AUDIO_CAPTURE_FAILED=6010]="AUDIO_CAPTURE_FAILED",e[e.AUDIO_CAPTURE_LOADING=6011]="AUDIO_CAPTURE_LOADING",e[e.AUDIO_IN_PSTN=6012]="AUDIO_IN_PSTN",e[e.AUDIO_ENCODING_REQUIRED=6013]="AUDIO_ENCODING_REQUIRED",e[e.AUDIO_SHARE_AUDIO_CONFLICT=6014]="AUDIO_SHARE_AUDIO_CONFLICT",e[e.AUDIO_NOT_STARTED=6015]="AUDIO_NOT_STARTED",e[e.AUDIO_ATTENDEE_NOT_ALLOWED=6016]="AUDIO_ATTENDEE_NOT_ALLOWED",e[e.SECONDARY_AUDIO_UNSUPPORTED=6017]="SECONDARY_AUDIO_UNSUPPORTED",e[e.SECONDARY_AUDIO_DEVICE_CONFLICT=6018]="SECONDARY_AUDIO_DEVICE_CONFLICT",e[e.SECONDARY_AUDIO_SCREEN_SHARING_CONFLICT=6019]="SECONDARY_AUDIO_SCREEN_SHARING_CONFLICT",e[e.SECONDARY_AUDIO_NOT_STARTED=6020]="SECONDARY_AUDIO_NOT_STARTED",e[e.PSTN_MISMATCH_COUNTRY_CODE=6021]="PSTN_MISMATCH_COUNTRY_CODE",e[e.PSTN_NOT_CONNECTED=6022]="PSTN_NOT_CONNECTED",e[e.CRC_NOT_CONNECTED=6023]="CRC_NOT_CONNECTED",e[e.AUDIO_ALLOW_TALK_UNSUPPORTED=6024]="AUDIO_ALLOW_TALK_UNSUPPORTED",e[e.AUDIO_ALLOW_TALK_MISMATCH_USER=6025]="AUDIO_ALLOW_TALK_MISMATCH_USER",e[e.AUDIO_PROCESSOR_UNSUPPORTED=6026]="AUDIO_PROCESSOR_UNSUPPORTED",e[e.AUDIO_PROCESSOR_DUPLICATE_CREATE=6027]="AUDIO_PROCESSOR_DUPLICATE_CREATE",e[e.AUDIO_PROCESSOR_MISMATCH_PROCESSOR=6028]="AUDIO_PROCESSOR_MISMATCH_PROCESSOR",e[e.AUDIO_PROCESSOR_LIMIT_EXCEED=6029]="AUDIO_PROCESSOR_LIMIT_EXCEED",e[e.VIDEO_CAMERA_PERMISSION_DENIED=6100]="VIDEO_CAMERA_PERMISSION_DENIED",e[e.VIDEO_NO_CAMERA=6101]="VIDEO_NO_CAMERA",e[e.VIDEO_MISMATCH_CAMERA=6102]="VIDEO_MISMATCH_CAMERA",e[e.VIDEO_CAMERA_TAKEN=6103]="VIDEO_CAMERA_TAKEN",e[e.VIDEO_VB_INITIALIZE_ERROR=6104]="VIDEO_VB_INITIALIZE_ERROR",e[e.VIDEO_CAPTURE_LOADING=6105]="VIDEO_CAPTURE_LOADING",e[e.VIDEO_MUTED_BY_HOST=6106]="VIDEO_MUTED_BY_HOST",e[e.VIDEO_VB_UNSUPPORTED=6107]="VIDEO_VB_UNSUPPORTED",e[e.VIDEO_VB_PROCESSOR_CONFLICT=6108]="VIDEO_VB_PROCESSOR_CONFLICT",e[e.VIDEO_MISMATCH_STATE=6109]="VIDEO_MISMATCH_STATE",e[e.VIDEO_ESTABLISH_STREAM_ERROR=6110]="VIDEO_ESTABLISH_STREAM_ERROR",e[e.VIDEO_RENDER_LIMIT_EXCEED=6111]="VIDEO_RENDER_LIMIT_EXCEED",e[e.VIDEO_METHOD_DEPRECATED=6112]="VIDEO_METHOD_DEPRECATED",e[e.VIDEO_VB_IMAGE_INACCESSIBLE=6113]="VIDEO_VB_IMAGE_INACCESSIBLE",e[e.VIDEO_VB_MISMATCH_STATE=6114]="VIDEO_VB_MISMATCH_STATE",e[e.VIDEO_MASK_IMAGE_INACCESSIBLE=6115]="VIDEO_MASK_IMAGE_INACCESSIBLE",e[e.VIDEO_MASK_PROCESSOR_CONFLICT=6116]="VIDEO_MASK_PROCESSOR_CONFLICT",e[e.VIDEO_SPOTLIGHT_MISMATCH_STATE=6117]="VIDEO_SPOTLIGHT_MISMATCH_STATE",e[e.VIDEO_SPOTLIGHT_MULTI_CONFLICT=6118]="VIDEO_SPOTLIGHT_MULTI_CONFLICT",e[e.VIDEO_PROCESSOR_UNSUPPORTED=6119]="VIDEO_PROCESSOR_UNSUPPORTED",e[e.VIDEO_PROCESSOR_LIMIT_EXCEED=6120]="VIDEO_PROCESSOR_LIMIT_EXCEED",e[e.VIDEO_PROCESSOR_DUPLICATE_CREATE=6121]="VIDEO_PROCESSOR_DUPLICATE_CREATE",e[e.VIDEO_PROCESSOR_MISMATCH_PROCESSOR=6122]="VIDEO_PROCESSOR_MISMATCH_PROCESSOR",e[e.FAR_END_CAMERA_CONTROL_DEVICE_UNSUPPORTED=6150]="FAR_END_CAMERA_CONTROL_DEVICE_UNSUPPORTED",e[e.FAR_END_CAMERA_CONTROL_MISMATCH_STATE=6151]="FAR_END_CAMERA_CONTROL_MISMATCH_STATE",e[e.FAR_END_CAMERA_PERMISSION_REQUIRED=6152]="FAR_END_CAMERA_PERMISSION_REQUIRED",e[e.FAR_END_CAMERA_INVALID_RANGE=6153]="FAR_END_CAMERA_INVALID_RANGE",e[e.FAR_END_CAMERA_RATE_LIMIT=6154]="FAR_END_CAMERA_RATE_LIMIT",e[e.SCREEN_SHARE_USER_DENIED=6200]="SCREEN_SHARE_USER_DENIED",e[e.SCREEN_SHARE_SYSTEM_DENIED=6201]="SCREEN_SHARE_SYSTEM_DENIED",e[e.SCREEN_SHARE_UNSUPPORTED=6202]="SCREEN_SHARE_UNSUPPORTED",e[e.SCREEN_SHARE_SUBSESSION_CONFLICT=6203]="SCREEN_SHARE_SUBSESSION_CONFLICT",e[e.SCREEN_SHARE_HOST_PRIVILEGE_REQUIRED=6204]="SCREEN_SHARE_HOST_PRIVILEGE_REQUIRED",e[e.SCREEN_SHARE_MISMATCH_STATE=6205]="SCREEN_SHARE_MISMATCH_STATE",e[e.SCREEN_SHARE_OPTIMIZE_VIDEO_UNSUPPORTED=6206]="SCREEN_SHARE_OPTIMIZE_VIDEO_UNSUPPORTED",e[e.SCREEN_SHARE_OPTIMIZE_VIDEO_CONFLICT=6207]="SCREEN_SHARE_OPTIMIZE_VIDEO_CONFLICT",e[e.SCREEN_SHARE_INVALID_PRIVILEGE=6208]="SCREEN_SHARE_INVALID_PRIVILEGE",e[e.SCREEN_SHARE_IB_DENIED=6209]="SCREEN_SHARE_IB_DENIED",e[e.SCREEN_SHARE_LIMIT_EXCEED=6218]="SCREEN_SHARE_LIMIT_EXCEED",e[e.SCREEN_SHARE_WHITEBOARD_CONFLICT=6220]="SCREEN_SHARE_WHITEBOARD_CONFLICT",e[e.SCREEN_SHARE_ANNOTATION_ACCOUNT_DISABLE=6210]="SCREEN_SHARE_ANNOTATION_ACCOUNT_DISABLE",e[e.SCREEN_SHARE_ANNOTATION_NO_ACTIVE_SHARE=6211]="SCREEN_SHARE_ANNOTATION_NO_ACTIVE_SHARE",e[e.SCREEN_SHARE_ANNOTATION_PRESENTER_DISABLED=6212]="SCREEN_SHARE_ANNOTATION_PRESENTER_DISABLED",e[e.SCREEN_SHARE_ANNOTATION_DUPLICATE_START=6213]="SCREEN_SHARE_ANNOTATION_DUPLICATE_START",e[e.SCREEN_SHARE_ANNOTATION_START_ERROR=6214]="SCREEN_SHARE_ANNOTATION_START_ERROR",e[e.SCREEN_SHARE_ANNOTATION_INCORRECT_PARAMETER=6215]="SCREEN_SHARE_ANNOTATION_INCORRECT_PARAMETER",e[e.SCREEN_SHARE_ANNOTATION_NOT_SUPPORT=6216]="SCREEN_SHARE_ANNOTATION_NOT_SUPPORT",e[e.SCREEN_SHARE_ANNOTATION_NOT_START=6217]="SCREEN_SHARE_ANNOTATION_NOT_START",e[e.SHARE_CAMERA_MESSAGE_ERROR=6219]="SHARE_CAMERA_MESSAGE_ERROR",e[e.SHARED_PROCESSOR_UNSUPPORTED=6223]="SHARED_PROCESSOR_UNSUPPORTED",e[e.SHARED_PROCESSOR_DUPLICATE_CREATE=6224]="SHARED_PROCESSOR_DUPLICATE_CREATE",e[e.SHARED_PROCESSOR_MISMATCH_PROCESSOR=6225]="SHARED_PROCESSOR_MISMATCH_PROCESSOR",e[e.SHARED_PROCESSOR_LIMIT_EXCEED=6226]="SHARED_PROCESSOR_LIMIT_EXCEED",e[e.REMOTE_CONTROL_ACCOUNT_DISABLE=6300]="REMOTE_CONTROL_ACCOUNT_DISABLE",e[e.REMOTE_CONTROL_MISMATCH_STATE=6301]="REMOTE_CONTROL_MISMATCH_STATE",e[e.REMOTE_CONTROL_PERMISSION_REQUIRED=6302]="REMOTE_CONTROL_PERMISSION_REQUIRED",e[e.REMOTE_CONTROL_MISMATCH_DISPLAY_SURFACE=6303]="REMOTE_CONTROL_MISMATCH_DISPLAY_SURFACE",e[e.REMOTE_CONTROL_INVALID_LAUNCH_SCHEME=6304]="REMOTE_CONTROL_INVALID_LAUNCH_SCHEME",e[e.CHAT_EMPTY_MESSAGE=7e3]="CHAT_EMPTY_MESSAGE",e[e.CHAT_MISMATCH_USER=7001]="CHAT_MISMATCH_USER",e[e.CHAT_INSUFFICIENT_PRIVILEGE=7002]="CHAT_INSUFFICIENT_PRIVILEGE",e[e.CHAT_INVALID_PRIVILEGE=7003]="CHAT_INVALID_PRIVILEGE",e[e.CHAT_SUBSESSION_CONFLICT=7004]="CHAT_SUBSESSION_CONFLICT",e[e.CHAT_EMPTY_FILE=7005]="CHAT_EMPTY_FILE",e[e.CHAT_INVALID_RETRY_TOKEN=7006]="CHAT_INVALID_RETRY_TOKEN",e[e.CHAT_MISMATCH_FILE_TYPE=7007]="CHAT_MISMATCH_FILE_TYPE",e[e.CHAT_EXCEED_FILE_SIZE=7008]="CHAT_EXCEED_FILE_SIZE",e[e.CHAT_INVALID_MSG_ID_OR_URL=7009]="CHAT_INVALID_MSG_ID_OR_URL",e[e.CHAT_FILE_ACCOUNT_DISABLE=7010]="CHAT_FILE_ACCOUNT_DISABLE",e[e.CHAT_DELETE_ACCOUNT_DISABLE=7011]="CHAT_DELETE_ACCOUNT_DISABLE",e[e.CMD_EMPTY_MESSAGE=7100]="CMD_EMPTY_MESSAGE",e[e.CMD_MISMATCH_USER=7101]="CMD_MISMATCH_USER",e[e.CMD_INVALID_MESSAGE_TYPE=7102]="CMD_INVALID_MESSAGE_TYPE",e[e.CMD_EXCEED_MESSAGE_LENGTH=7103]="CMD_EXCEED_MESSAGE_LENGTH",e[e.CMD_CHANNEL_NOT_READY=7104]="CMD_CHANNEL_NOT_READY",e[e.RECORDING_ACCOUNT_DISABLE=7200]="RECORDING_ACCOUNT_DISABLE",e[e.RECORDING_STOP_FORBIDDEN=7201]="RECORDING_STOP_FORBIDDEN",e[e.RECORDING_MISMATCH_STATE=7202]="RECORDING_MISMATCH_STATE",e[e.RECORDING_ISO_DISABLE=7203]="RECORDING_ISO_DISABLE",e[e.RECORDING_IQ_DISABLE=7204]="RECORDING_IQ_DISABLE",e[e.RECORDING_IQ_PERMISSION_REQUIRED=7205]="RECORDING_IQ_PERMISSION_REQUIRED",e[e.RECORDING_IQ_MISMATCH_STATE=7206]="RECORDING_IQ_MISMATCH_STATE",e[e.LOCAL_RECORDING_ACCOUNT_DISABLE=7207]="LOCAL_RECORDING_ACCOUNT_DISABLE",e[e.LOCAL_RECORDING_INVALID_VALUE=7208]="LOCAL_RECORDING_INVALID_VALUE",e[e.LOCAL_RECORDING_MISMATCH_STATE=7209]="LOCAL_RECORDING_MISMATCH_STATE",e[e.TRANSCRIPTION_ACCOUNT_DISABLE=7300]="TRANSCRIPTION_ACCOUNT_DISABLE",e[e.TRANSCRIPTION_FEATURE_DISABLE=7301]="TRANSCRIPTION_FEATURE_DISABLE",e[e.TRANSCRIPTION_LANGUAGE_UNSUPPORTED=7302]="TRANSCRIPTION_LANGUAGE_UNSUPPORTED",e[e.TRANSCRIPTION_MISMATCH_STATE=7303]="TRANSCRIPTION_MISMATCH_STATE",e[e.TRANSLATION_ACCOUNT_DISABLE=7304]="TRANSLATION_ACCOUNT_DISABLE",e[e.TRANSLATION_LANGUAGE_UNSUPPORTED=7305]="TRANSLATION_LANGUAGE_UNSUPPORTED",e[e.MANUAL_CAPTION_ACCOUNT_DISABLE=7306]="MANUAL_CAPTION_ACCOUNT_DISABLE",e[e.MANUAL_CAPTION_FEATURE_DISABLE=7307]="MANUAL_CAPTION_FEATURE_DISABLE",e[e.MANUAL_CAPTION_MISMATCH_USER=7308]="MANUAL_CAPTION_MISMATCH_USER",e[e.MANUAL_CAPTION_INSUFFICIENT_PRIVILEGE=7309]="MANUAL_CAPTION_INSUFFICIENT_PRIVILEGE",e[e.TRANSCRIPTION_LANGUAGE_LOCKED=7310]="TRANSCRIPTION_LANGUAGE_LOCKED",e[e.LIVE_STREAM_ACCOUNT_DISABLE=7400]="LIVE_STREAM_ACCOUNT_DISABLE",e[e.LIVE_STREAM_INVALID_PARAMETER=7401]="LIVE_STREAM_INVALID_PARAMETER",e[e.LIVE_STREAM_MISMATCH_STATE=7402]="LIVE_STREAM_MISMATCH_STATE",e[e.SUBSESSION_ACCOUNT_DISABLE=7500]="SUBSESSION_ACCOUNT_DISABLE",e[e.SUBSESSION_EXCEED_CAPACITY=7501]="SUBSESSION_EXCEED_CAPACITY",e[e.SUBSESSION_MISMATCH_ID=7502]="SUBSESSION_MISMATCH_ID",e[e.SUBSESSION_MISMATCH_USER=7503]="SUBSESSION_MISMATCH_USER",e[e.SUBSESSION_MISMATCH_STATE=7504]="SUBSESSION_MISMATCH_STATE",e[e.SUBSESSION_EXIT_RESTRICTED=7505]="SUBSESSION_EXIT_RESTRICTED",e[e.SUBSESSION_BROADCAST_DISABLE=7506]="SUBSESSION_BROADCAST_DISABLE",e[e.SUBSESSION_BROADCAST_INVALID_CONTENT=7507]="SUBSESSION_BROADCAST_INVALID_CONTENT",e[e.SUBSESSION_BROADCAST_VOICE_DISABLE=7508]="SUBSESSION_BROADCAST_VOICE_DISABLE",e[e.SUBSESSION_BROADCAST_VOICE_RESTRICTED=7509]="SUBSESSION_BROADCAST_VOICE_RESTRICTED",e[e.SUBSESSION_BROADCAST_VOICE_MISMATCH_STATE=7510]="SUBSESSION_BROADCAST_VOICE_MISMATCH_STATE",e[e.REACTION_ACCOUNT_DISABLE=7600]="REACTION_ACCOUNT_DISABLE",e[e.REACTION_INVALID_PARAMETER=7601]="REACTION_INVALID_PARAMETER",e[e.SUMMARY_ACCOUNT_DISABLE=7700]="SUMMARY_ACCOUNT_DISABLE",e[e.QA_INVALID_PARAMETER=7800]="QA_INVALID_PARAMETER",e[e.QA_INSUFFICIENT_PRIVILEGE=7801]="QA_INSUFFICIENT_PRIVILEGE",e[e.BROADCAST_STREAMING_ACCOUNT_DISABLE=7900]="BROADCAST_STREAMING_ACCOUNT_DISABLE",e[e.BROADCAST_STREAMING_MISMATCH_STATE=7901]="BROADCAST_STREAMING_MISMATCH_STATE",e[e.BROADCAST_STREAMING_INVALID_CHANNEL_ID=7902]="BROADCAST_STREAMING_INVALID_CHANNEL_ID",e[e.WHITEBOARD_ACCOUNT_DISABLE=8e3]="WHITEBOARD_ACCOUNT_DISABLE",e[e.WHITEBOARD_UNSUPPORTED=8001]="WHITEBOARD_UNSUPPORTED",e[e.WHITEBOARD_SCREEN_SHARE_CONFLICT=8002]="WHITEBOARD_SCREEN_SHARE_CONFLICT",e[e.WHITEBOARD_MISMATCH_STATE=8003]="WHITEBOARD_MISMATCH_STATE",e[e.WHITEBOARD_HOST_PRIVILEGE_REQUIRED=8004]="WHITEBOARD_HOST_PRIVILEGE_REQUIRED",e[e.WHITEBOARD_INVALID_PARAMETER=8005]="WHITEBOARD_INVALID_PARAMETER",e[e.WHITEBOARD_EXPORT_DISABLE=8006]="WHITEBOARD_EXPORT_DISABLE",e[e.REAL_TIME_MEDIA_STREAMS_NOT_ENABLED=8100]="REAL_TIME_MEDIA_STREAMS_NOT_ENABLED",e[e.REAL_TIME_MEDIA_STREAMS_INVALID_STATE=8101]="REAL_TIME_MEDIA_STREAMS_INVALID_STATE",e[e.REAL_TIME_MEDIA_STREAMS_NOT_SUPPORTED_IN_BREAKOUT_ROOM=8102]="REAL_TIME_MEDIA_STREAMS_NOT_SUPPORTED_IN_BREAKOUT_ROOM",e})({});const Mh="WHITEBOARD_PEER_SESSION_UPDATE",YM="WHITEBOARD_NEW_TOKEN_UPDATED",dy="WHITEBOARD_DASHBOARD_STATUS_UPDATE",FE="WHITEBOARD_DASHBOARD_ACTION_UPDATE",Xs="WHITEBOARD_STATUS_UPDATE",jE="WHITEBOARD_SCREEN_PASSIVE_STOP_UPDATE",QM="WHITEBOARD_PRESENTER_SESSION_UPDATE",cA="WHITEBOARD_PERMISSION_CODE_UPDATE";let Zd=(function(e){return e.WhiteboardPeerStateChange="peer-whiteboard-state-change",e.WhiteboardDashboardStatus="whiteboard-dashboard-status",e.WhiteboardDashboardAction="whiteboard-dashboard-action",e.whiteboardStatusChange="whiteboard-status-change",e.WhiteboardPassiveStop="passively-stop-whiteboard",e.WhiteboardPermissionChange="whiteboard-permission-change",e})({});const SV={[Zd.WhiteboardPeerStateChange]:[{event:Mh,payload:e=>e}],[Zd.WhiteboardDashboardStatus]:[{event:dy,payload:e=>e}],[Zd.WhiteboardDashboardAction]:[{event:FE,payload:e=>e}],[Zd.whiteboardStatusChange]:[{event:Xs,payload:e=>e}],[Zd.WhiteboardPassiveStop]:[{event:jE,payload:e=>e}],[Zd.WhiteboardPermissionChange]:[{event:cA,payload:e=>e}]},sc="RTMS_STATUS_CHANGE",EV={"real-time-media-streams-status-change":[{event:sc,payload:e=>e}]},xT={...rV,...nV,...oV,...iV,...sV,...uV,...lV,...dV,...cV,...pV,...fV,...hV,"closed-caption-message":[{event:"CC_RECEIVE_MESSAGE",payload:e=>e}],"closed-caption-lt-status":[{event:"LT_STATUS_CHANGE",payload:e=>e}],"closed-caption-lt-message":[{event:"LT_RECEIVE_MESSAGE",payload:e=>e}],"closed-caption-status":[{event:"CC_ASSIGN_CC_EDITOR_SUCCESS",payload:e=>e},{event:"CC_STATUS_CHANGE",payload:e=>e}],...mV,...gV,...vV,...yV,...bV,...SV,...EV},kh=(function(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map((function(o){o(r)})),(n=e.get("*"))&&n.slice().map((function(o){o(t,r)}))}}})(),zc=new Map,VE=new Array,rm=[Yu,_o,ka];let ud,BE;function DT(){return e=>e.pipe(ei((function(t,r){t.subscribe(Ko(r,(function(n){r.next(IS.createNext(n))}),(function(){r.next(IS.createComplete()),r.complete()}),(function(n){r.next(IS.createError(n)),r.complete()})))})),Fe((t=>t.kind==="C"?Mn(t).pipe(go(la)):Mn(t))),ei((function(t,r){t.subscribe(Ko(r,(function(n){return d4(n,r)})))})))}const ee=(e,t=void 0)=>{kh.emit(e,t)};function lc(e){return rm.includes(e)?Uo(kh,e):(ud&&BE||(ud=new xs,BE=$o(...rm.map((t=>Uo(kh,t)))).subscribe(ud)),Uo(kh,e).pipe(Wo(ud)))}const Vu=e=>new Promise(((t,r)=>{if(e.fail&&e.fail.length>0){var n;const o=rm.filter((a=>{var s;return!((s=e.fail)!==null&&s!==void 0&&s.includes(a))})),i=o.length>0?$o(...o.map((a=>lc(a).pipe(Fr(1),wt((()=>({type:fT,reason:a,errorCode:Z.OPERATION_CANCELLED}))))))):IT;Ji(lc(e.success).pipe(Fr(1),DT(),Zj((n=e.fail)!==null&&n!==void 0&&n.some((a=>rm.includes(a)))?IT:qt)),$o(...e.fail.map((a=>lc(a).pipe(Fr(1),DT(),Fe((s=>yc({type:a,payload:s}))))))),i).subscribe({next:a=>a&&a.type===fT?r(a):t(a),error(a){if(typeof a.payload=="object"){const s={...a.payload};a.payload instanceof Error&&Object.assign(s,{name:a.payload.name,message:a.payload.message}),r({type:a.type,...s})}else a.payload===void 0?r({type:a.type}):r(a)}})}else lc(e.success).pipe(Fr(1)).subscribe((o=>t(o)))})),Sr=(e,t,r=1e4)=>new Promise(((n,o)=>{let i=qt;typeof e=="string"?i=lc(e).pipe(Fr(1)):(i=lc(e.event),e.operations&&(i=e.operations.reduce(((a,s)=>a.pipe(s)),i))),Ji(i,ao(r).pipe(Fe((()=>yc("timeout"))))).subscribe({next(a){if(t){const s=t(a);typeof s=="boolean"?s?n(""):o({type:Vo,errorCode:Z.INTERNAL_ERROR}):s.ret===0?n(s.body):o({type:Vo,errorCode:Z.INTERNAL_ERROR,reason:s.body})}else n(a)},error(){o({type:v0,errorCode:Z.OPERATION_TIMEOUT})}})})),cn=(e,t)=>t!==void 0?lc(e).pipe(Fr(t)):lc(e);function sl(e){const t=rm.map((r=>cn(r,1)));return e&&t.push(e),Ji(...t)}const dA=()=>{var e;VE.forEach((t=>{t.unsubscribe()})),VE.length=0,zc.clear(),ud&&(ud.complete(),(e=BE)===null||e===void 0||e.unsubscribe(),ud=void 0)};var Bg="NOT_FOUND",CV=function(e,t){return e===t};function XM(e,t){var r,n,o=typeof t=="object"?t:{equalityCheck:t},i=o.equalityCheck,a=i===void 0?CV:i,s=o.maxSize,l=s===void 0?1:s,c=o.resultEqualityCheck,d=(function(y){return function(b,v){if(b===null||v===null||b.length!==v.length)return!1;for(var C=b.length,A=0;A<C;A++)if(!y(b[A],v[A]))return!1;return!0}})(a),p=l===1?(r=d,{get:function(y){return n&&r(n.key,y)?n.value:Bg},put:function(y,b){n={key:y,value:b}},getEntries:function(){return n?[n]:[]},clear:function(){n=void 0}}):(function(y,b){var v=[];function C(A){var R=v.findIndex((function(k){return b(A,k.key)}));if(R>-1){var x=v[R];return R>0&&(v.splice(R,1),v.unshift(x)),x.value}return Bg}return{get:C,put:function(A,R){C(A)===Bg&&(v.unshift({key:A,value:R}),v.length>y&&v.pop())},getEntries:function(){return v},clear:function(){v=[]}}})(l,d);function m(){var y=p.get(arguments);if(y===Bg){if(y=e.apply(null,arguments),c){var b=p.getEntries().find((function(v){return c(v.value,y)}));b&&(y=b.value)}p.put(arguments,y)}return y}return m.clearCache=function(){return p.clear()},m}function ZM(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s,l=0,c={memoizeOptions:void 0},d=i.pop();if(typeof d=="object"&&(c=d,d=i.pop()),typeof d!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof d+"]");var p=c.memoizeOptions,m=p===void 0?r:p,y=Array.isArray(m)?m:[m],b=(function(A){var R=Array.isArray(A[0])?A[0]:A;if(!R.every((function(k){return typeof k=="function"}))){var x=R.map((function(k){return typeof k=="function"?"function "+(k.name||"unnamed")+"()":typeof k})).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+x+"]")}return R})(i),v=e.apply(void 0,[function(){return l++,d.apply(null,arguments)}].concat(y)),C=e((function(){for(var A=[],R=b.length,x=0;x<R;x++)A.push(b[x].apply(null,arguments));return s=v.apply(null,A)}));return Object.assign(C,{resultFunc:d,memoizedResultFunc:v,dependencies:b,lastResult:function(){return s},recomputations:function(){return l},resetRecomputations:function(){return l=0}}),C}}var _n=ZM(XM);const mu=({participants:{attendeesList:e}})=>e,e6=({meeting:{userId:e}})=>e,HE=({participants:{xmppAttendeeList:e}})=>e;let Dd=(function(e){return e[e.Attendee=0]="Attendee",e[e.Host=1]="Host",e[e.Owner=4]="Owner",e[e.ViewOnly=8]="ViewOnly",e[e.HostOwner=5]="HostOwner",e[e.ViewOnlyCanTalk=24]="ViewOnlyCanTalk",e})({}),wV=(function(e){return e[e.Host=10]="Host",e[e.Panelist=20]="Panelist",e[e.Attendee=30]="Attendee",e})({}),UE=(function(e){return e[e.Client=9]="Client",e[e.Phone=5]="Phone",e[e.H323=15]="H323",e[e.Assitant=51]="Assitant",e})({});const Nd=e=>(e&Dd.Host)===Dd.Host,Md=e=>(e&UE.Phone)===UE.Phone,fb=e=>e===Dd.ViewOnlyCanTalk,ci=e=>(e&Dd.ViewOnly)===Dd.ViewOnly;let cd=(function(e){return e[e.Automatically=1]="Automatically",e[e.Manually=2]="Manually",e[e.SelfSelect=3]="SelfSelect",e})({}),Kr=(function(e){return e[e.NotStarted=1]="NotStarted",e[e.InProgress=2]="InProgress",e[e.Closing=3]="Closing",e[e.Closed=4]="Closed",e})({}),t6=(function(e){return e[e.NoToken=1]="NoToken",e[e.GotToken=2]="GotToken",e[e.Started=3]="Started",e[e.Closing=4]="Closing",e[e.Closed=5]="Closed",e})({}),wr=(function(e){return e.Initial="initial",e.Invited="invited",e.Joining="joining",e.InRoom="in room",e.Leaving="leaving",e.TimeUp="time up",e.MainSession="main session",e})({}),Pc=(function(e){return e.Join="joinRequest",e.Switch="switchRequest",e.Leave="leaveRequest",e.Broadcast="messageText",e.HelpReq="helpRequest",e.HelpRes="helpResponse",e.CoHostWantJoinThisBo="wantJoinThisBO",e.BOActivity="BOActivity",e})({});const NT="Subsession";let Zu=(function(e){return e[e.Received=0]="Received",e[e.Busy=1]="Busy",e[e.Ignore=2]="Ignore",e[e.AlreadyInRoom=3]="AlreadyInRoom",e})({}),MT=(function(e){return e[e.AskToLeave=0]="AskToLeave",e[e.ClosingRoom=1]="ClosingRoom",e})({}),IV=(function(e){return e[e.Active=0]="Active",e[e.Ask=1]="Ask",e})({}),TS=(function(e){return e[e.Connect=1]="Connect",e[e.Muted=2]="Muted",e[e.Voip=4]="Voip",e})({}),kT=(function(e){return e[e.Connect=8]="Connect",e[e.On=16]="On",e})({}),LT=(function(e){return e[e.Share=32]="Share",e[e.ShareAudio=64]="ShareAudio",e})({});const r6=({breakoutRoom:e})=>e&&e.controlStatus,n6=({breakoutRoom:e})=>e&&e.currentRoom.status,ir=_n([e6,mu],((e,t)=>t.find((r=>r.userId===e)))),_i=_n([ir],(e=>(e==null?void 0:e.isHost)||(e==null?void 0:e.bCoHost))),pA=_n([ir],(e=>e==null?void 0:e.isHost)),FT=_n((e=>e.breakoutRoom),(e=>(e==null?void 0:e.currentRoom.status)===wr.InRoom)),ng=_n([HE],(e=>e.filter((t=>t.userRole===wV.Attendee)))),AV=_n([mu],(e=>e.filter((t=>t.bHold&&!t.bid)))),dn=_n([mu,r6,n6],((e,t,r)=>t!==Kr.InProgress&&t!==Kr.Closing||r!==wr.InRoom?e.filter((n=>!n.bHold&&!n.bid)):e.filter((n=>!n.bHold)))),RV=_n([({participants:{assistantList:e}})=>e],(e=>e)),$E=_n([dn],(e=>e.find((t=>t.isHost)))),jT=_n([dn],(e=>e.filter((t=>t.bCoHost)))),fA=_n([ir,dn],((e,t)=>t.filter((r=>r.userId!==(e==null?void 0:e.userId)))));_n([HE],(e=>e.reduce(((t,r)=>{const{jid:n}=r;return Object.assign(t,{[n]:r}),t}),{}))),_n([HE,({meeting:{jid:e}})=>e],((e,t)=>{var r;return(r=e.find((n=>n.jid===t)))===null||r===void 0?void 0:r.userId}));const TV=_n([mu],((e=[])=>e.some((t=>(t==null?void 0:t.bLocalRecord)===tm.Start)))),OV=_n([r6,({meeting:e})=>e&&e.meetingOptions,mu,pA],((e,t,r,n)=>{const o=r.filter((s=>s.bCoHost)),{moveToWRIfHostLeave:i}=t,a=e===Kr.InProgress;return n&&!!i&&o.length<=0&&!a&&r.length>1}));_n([mu,n6,({breakoutRoom:e})=>e&&e.mainSessionAttendeeList],((e,t,r)=>(t===wr.InRoom?r:e).filter((n=>{return!(n.bHold||n.isHost||n.audio===an.Phone||Md(n==null?void 0:n.userType)||(o=n==null?void 0:n.caps,i=n==null?void 0:n.bMultiStreamVideoUser,((a,s)=>(l=>!!(128&l))(a)&&s!==void 0)(o,i)&&i));var o,i}))));class o6{constructor(t){this._cancelError=new Error("request for lock canceled"),this._locked=void 0,this._queue=[],this._waiters=[],this._currentReleaser=void 0,t&&(this._cancelError=t),this._locked=!1}acquire(){const t=this.isLocked(),r=new Promise(((n,o)=>this._queue.push({resolve:n,reject:o})));return t||this._dispatch(),r}async runExclusive(t){const r=await this.acquire();try{return await t()}finally{r()}}async waitForUnlock(){return this.isLocked()?new Promise((t=>this._waiters.push({resolve:t}))):Promise.resolve()}isLocked(){return this._locked}release(){if(this._currentReleaser){const t=this._currentReleaser;this._currentReleaser=void 0,t()}}cancel(){this._queue.forEach((t=>t.reject(this._cancelError))),this._queue=[]}_dispatch(){const t=this._queue.shift();if(!t)return;let r=!1;this._currentReleaser=()=>{r||(r=!0,this._locked=!1,this._resolveWaiters(),this._dispatch())},this._locked=!0,t.resolve(this._currentReleaser)}_resolveWaiters(){this._waiters.forEach((t=>t.resolve())),this._waiters=[]}}let ii=(function(e){return e.VideoEncode="0",e.VideoDecode="1",e.AudioEncode="2",e.AudioDecode="3",e.SharingEncode="4",e.SharingDecode="5",e.Common="7",e})({});class dr{static getInstance(){return this.agentInstance===void 0&&(this.agentInstance=new dr),this.agentInstance}constructor(){this.assetsPath=void 0,this.instance=void 0,this.callbackList=void 0,this.constraints=void 0,this.svcUrl=void 0,this.meetingNumber=void 0,this.confId=void 0,this.currentUserId=void 0,this.receivedSharingCanvas=void 0,this.sharingCanvas=void 0,this.annotationCanvas=void 0,this.annotationPresenterCanvas=void 0,this.mediaOptions=void 0,this.inProgress=void 0,this.callbackList=[]}init(t){!this.instance&&window.JsMediaSDK_Instance&&(this.instance=new window.JsMediaSDK_Instance(t))}setAssetsAndConstraint(t,r){this.assetsPath=t,this.constraints=r,this.onMediaSDKCallback=this.onMediaSDKCallback.bind(this)}onMediaSDKCallback(t,r){this.callbackList.length>0&&this.callbackList.forEach((n=>n(t,r)))}registerCallback(t){this.callbackList.push(t)}unregisterCallback(t){this.callbackList=this.callbackList.filter((r=>r!==t))}static isSupportVideoEncodeHardwareAcceleration(){return window.JsMediaSDK_Instance.util.IsSupportVideoEncodeHardwareAcceleration()}static isSupportVideoDecodeHardwareAcceleration(){return window.JsMediaSDK_Instance.util.IsSupportVideoDecodeHardwareAcceleration()}static isCompatibleHardwareForEncode(){var t;return Yt.isSupportOffscreenCanvas&&((t=window.JsMediaSDK_Instance)===null||t===void 0?void 0:t.util.AdapterWhiteListCheckForEncoder())==0}static getPTZCapability(){var t,r,n,o,i,a;return{pan:!((t=window.JsMediaSDK_Instance)===null||t===void 0||(t=t.util)===null||t===void 0||(r=t.isSupportCameraPan)===null||r===void 0||!r.call(t)),tilt:!((n=window.JsMediaSDK_Instance)===null||n===void 0||(n=n.util)===null||n===void 0||(o=n.isSupportCameraTilt)===null||o===void 0||!o.call(n)),zoom:!((i=window.JsMediaSDK_Instance)===null||i===void 0||(i=i.util)===null||i===void 0||(a=i.isSupportCameraZoom)===null||a===void 0||!a.call(i))}}static isSupportVideoShare(){var t,r;return!((t=window.JsMediaSDK_Instance)===null||t===void 0||(t=t.util)===null||t===void 0||(r=t.isSupportVideoShareReceive)===null||r===void 0||!r.call(t))}static getVideoProcessorCapability(t){var r;return!((r=window.JsMediaSDK_Instance)===null||r===void 0||(r=r.util)===null||r===void 0||!r.isSupportVideoProcessor(t))}static getAudioProcessorCapability(t){var r;return!((r=window.JsMediaSDK_Instance)===null||r===void 0||(r=r.util)===null||r===void 0||!r.isSupportAudioProcessor(t))}static getShareProcessorCapability(t){var r;return!((r=window.JsMediaSDK_Instance)===null||r===void 0||(r=r.util)===null||r===void 0||!r.isSupportShareProcessor(t))}static isSupportVideoShareSend(){var t,r;return!((t=window.JsMediaSDK_Instance)===null||t===void 0||(t=t.util)===null||t===void 0||(r=t.isSupportVideoShareSend)===null||r===void 0||!r.call(t))}static isSupportSending720P(){var t;return!((t=window.JsMediaSDK_Instance)===null||t===void 0||(t=t.util)===null||t===void 0||!t.get720pcapacity())}static isSupportSubscribing1080P(){var t;return!((t=window.JsMediaSDK_Instance)===null||t===void 0||(t=t.util)===null||t===void 0||!t.getsub1080pcapacity())}static isSupportOpenMicWhenShareAudio(t){var r;return!((r=window.JsMediaSDK_Instance)===null||r===void 0||!r.util.isSupportOpenMicWhenShareAudio(t))}static isSupportMediaPlaybackAsVideoInput(){var t;return!((t=window.JsMediaSDK_Instance)===null||t===void 0||(t=t.util.videoToMediaStreamManager)===null||t===void 0||!t.isSupported())}static isSupportMediaPlaybackAsAudioInput(){var t;return!((t=window.JsMediaSDK_Instance)===null||t===void 0||(t=t.util.audioToMediaStreamMananger)===null||t===void 0||!t.isSupported())}static isSupportAudioDenoise(t,r){var n;return!((n=window.JsMediaSDK_Instance)===null||n===void 0||!n.util.isSupportAudioDenoise(t,r))}static isSupportAudioBridgeAVSync(){var t;return!((t=window.JsMediaSDK_Instance)===null||t===void 0||!t.util.isSupportAudioBridgeAvsync())}static getAudioFeatureFlag(t){var r;return(r=window.JsMediaSDK_Instance)===null||r===void 0?void 0:r.util.getAudioFeatureFlags(t)}static isSupportShareMultiStream(){var t;return(t=window.JsMediaSDK_Instance)===null||t===void 0?void 0:t.util.isSupportShareMultiStream()}static isSupportVideoLTR(){var t;return(t=window.JsMediaSDK_Instance)===null||t===void 0?void 0:t.util.isSupportVideoLTR()}static isSupportStereoAudio(){var t;return!((t=window.JsMediaSDK_Instance)===null||t===void 0||!t.util.isBrowserSupportStereo())}static isSupportFullHDVideo(t){var r;return!((r=window.JsMediaSDK_Instance)===null||r===void 0||!r.util.isSupportSendVideoFullHD(t))}static isSupportFullHDVideoShare(t){var r;return!((r=window.JsMediaSDK_Instance)===null||r===void 0||!r.util.isSupportSendVideoShareFullHD(t))}static isRenderSelfViewWithVideoElement(){var t;return!((t=window.JsMediaSDK_Instance)===null||t===void 0||!t.util.isSelfPreviewRenderWithVideo())}static getWebRTCCapability(t,r,n){var o;return(o=window.JsMediaSDK_Instance)===null||o===void 0?void 0:o.util.evaluateWebRTCStrategy(t,r,n)}static getMaxCountRender(t,r,n){var o;const i=n?{disableRenderLimits:!0}:r;return(o=window.JsMediaSDK_Instance)===null||o===void 0?void 0:o.util.getMaxCountRender(t,i)}static isSupportVirtualBackground(){var t;return(t=window.JsMediaSDK_Instance)===null||t===void 0?void 0:t.util.isSupportVirtualBackground()}static isSupportHighLevelQos(){var t;return(t=window.JsMediaSDK_Instance)===null||t===void 0||(t=t.util)===null||t===void 0?void 0:t.isSupportHighLevelQos()}static isSupportShare2ndAudioDevice(t){var r;return!((r=window.JsMediaSDK_Instance)===null||r===void 0||!r.util.isSupportShare2ndAudioDevice(t))}static getWebRtcAudioMode(t,r,n,o){var i;return(i=window.JsMediaSDK_Instance)===null||i===void 0?void 0:i.util.evaluateAudioStrategy(t,r,n,o)}static getAnnotationCapability(t){var r;return(r=window.JsMediaSDK_Instance)===null||r===void 0?void 0:r.util.getAnnotationCapability(t)}static initVideoPlayer(t){var r;return(r=window.JsMediaSDK_Instance)===null||r===void 0?void 0:r.initVideoPlayer(t)}static isSupportAdaptiveAudioDenoiseModel(){var t;return(t=window.JsMediaSDK_Instance)===null||t===void 0?void 0:t.util.isAdaptiveAudioDenoiseEligible()}connect({svcUrl:t,meetingNumber:r,conId:n,confId:o,e2eEncrypt:i,isViewOnly:a,currentUserId:s,isWebinar:l,enableWebtransport:c=!1,webtransportPort:d,isWebRtcVideoCapable:p,rendererType:m,isWebRtcAudioCapable:y,mediasdkConfig:b,enforceMultipleVideos:v,disableRenderLimits:C,reportDomain:A,abToken:R,webrtcMode:x}){var k,D,F,$;const{isSupportEssentialAudioAndVideoAbility:U,isSupportAudioWorklet:G,isSupportSendScreenSharing:Y}=Yt;this.svcUrl=t,this.meetingNumber=r,this.confId=n,this.currentUserId=s;const Q=dr.getMaxCountRender(p,v,C);if((k=this.instance)===null||k===void 0||k.setProps({callback:this.onMediaSDKCallback,isPreviewMode:!1,meetingParams:{cid:n,confId:o,userId:s,rwgHost:t,nginxHost:A,abToken:R,e2eEncrypt:i,enableWebtransport:c,webtransportPort:d,rwgToMediaSDKConfig:b,webrtcMode:x},mediaParams:{videoDecodeThreadNum:Q,rendererType:m,isEnableHD:!0,isEnableDecodingHW:!0,isEnableEncodingHW:!0}}),((D=this.constraints)===null||D===void 0?void 0:D.audio)===!0&&U){const oe=G||y;var me,ne;(l||oe)&&((me=this.instance)===null||me===void 0||me.initAudioDecode()),!oe||l&&a||(ne=this.instance)===null||ne===void 0||ne.initAudioEncode()}var Ee,ce,_e,Ne;((F=this.constraints)===null||F===void 0?void 0:F.video)===!0&&U&&((Ee=this.instance)===null||Ee===void 0||Ee.initVideoDecode(),l&&a||(ce=this.instance)===null||ce===void 0||ce.initVideoEncode()),(($=this.constraints)===null||$===void 0?void 0:$.screen)===!0&&U&&((_e=this.instance)===null||_e===void 0||_e.initSharingDecode(),!Y||l&&a||(Ne=this.instance)===null||Ne===void 0||Ne.initSharingEncode()),this.inProgress=!0}async addProcessor(t){var r;return await((r=this.instance)===null||r===void 0?void 0:r.addProcessor(t))}async startProcessor(t){var r;await((r=this.instance)===null||r===void 0?void 0:r.startProcessor(t))}async stopProcessor(t){var r;await((r=this.instance)===null||r===void 0?void 0:r.stopProcessor(t))}async destroy(){var t;this.callbackList=[],[ii.AudioDecode,ii.AudioEncode,ii.VideoDecode,ii.VideoEncode].forEach((n=>{var o;(o=this.instance)===null||o===void 0||o.updateQosSubscription(!1,n)}));const r=(t=this.instance)===null||t===void 0?void 0:t.destroy.bind(this.instance);this.instance=null,this.inProgress=!1,await(r==null?void 0:r())}disconnect(){var t,r;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(17,{}),(r=this.instance)===null||r===void 0||r.JsMediaSDK_UnInit()}muteAudio(){var t;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(8,{ssrc:0})}unmuteAudio(){var t;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(7,{ssrc:0,AudioSelectValue:0})}joinComputerAudio(t,r,n,o,i,a,s){var l;const c=s?{...s,enableHID:!0}:{enableHID:!1};return(l=this.instance)===null||l===void 0?void 0:l.Notify_MeidaSDK(22,{CaptureAudio:o,CaptureAudioInfo:{ssrc:t,AudioSelectValue:r==="default"?null:r,...c,audioProfile:i},speakerInfo:{defaultDeviceId:n},audioBridge:!!a})}leaveComputerAudio(){var t;return(t=this.instance)===null||t===void 0?void 0:t.Notify_MeidaSDK(21,null)}joinSharingAudio({ssrc:t,microphoneDeviceId:r,speakerDeviceId:n,isCaptureAudio:o,audioBridge:i}){var a;return(a=this.instance)===null||a===void 0?void 0:a.Notify_MeidaSDK(72,{CaptureAudio:o,CaptureAudioInfo:{ssrc:t,AudioSelectValue:r==="default"?null:r},speakerInfo:{defaultDeviceId:n},checkAutoplay:!1,audioBridge:!!i})}leaveSharingAudio(t){var r;return(r=this.instance)===null||r===void 0?void 0:r.Notify_MeidaSDK(73,{isPause:t?1:0})}changeSpeaker(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(11,{ssrc:0,AudioSelectValue:t})}changeMicrophone(t,r,n){var o;(o=this.instance)===null||o===void 0||o.Notify_MeidaSDK(18,{ssrc:0,AudioSelectValue:t==="default"?null:t,microphoneLabel:r??"default",defaultMuted:n})}restoreWebRTC(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(19,{ssrc:0,AudioSelectValue:t==="default"?null:t})}renderVideo(t,r,n,o,i,a,s,l,c,d,p){var m;const y={userId:r,width:o,height:i,x:a,y:s,quality:l,isMyself:c,canvas:t,enableWaterMark:p,waterMarkText:d,zone:n};iu(t)&&Object.assign(y,{videodom:t}),(m=this.instance)===null||m===void 0||m.Notify_MeidaSDK(1,y)}stopRenderVideo(t,r,n,o,i=!1){var a;(a=this.instance)===null||a===void 0||a.Notify_MeidaSDK(2,{canvas:t,userId:r,RGBA:o,doNotClean:i,zone:n})}subscribeVideo(t,r,n){var o;(o=this.instance)===null||o===void 0||o.Notify_MeidaSDK(132,[{id:t,size:r,bOn:n}])}unsubscribeVideo(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(133,[{id:t}])}startCaptureVideo(t){var r;const{ptz:n,cameraDeviceId:o,...i}=t,a=n?dr.getPTZCapability():void 0;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(3,{VideoSelectValue:o==="default"?null:o,...i,...a})}stopCaptureVideo(){var t;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(4,{ssrc:0})}changeCamera(t){var r;const{isSameDevice:n,cameraDeviceId:o,...i}=t,a=n?{}:{customConstraints:void 0};(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(12,{VideoSelectValue:o==="default"?null:o,...a,...i})}switchCanvasForVideoCapture(t){var r;let n=t;typeof t=="string"&&(n=[t]),(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(25,n)}renderSharing(t,r,n=!1,o="",i=!1){var a;this.receivedSharingCanvas=r,(a=this.instance)===null||a===void 0||a.Notify_MeidaSDK(23,{width:0,height:0,ssrc:t,canvas:r,enableWaterMark:n,waterMarkText:o,isFromMainSession:i})}stopRenderSharing(){var t;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(24,{})}startShareWhiteboard(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(30.1,{mode:1,ssid:t,canvas:"canvas"})}stopShareWhiteboard(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(31.1,{mode:1,ssid:t,canvas:"canvas"})}messageWhiteboard(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(120,t)}switchSharingSource(t,r=!1){var n;this.receivedSharingCanvas&&(this.stopRenderSharing(),this.renderSharing(t,this.receivedSharingCanvas,!1,"",r)),(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(36,{ssrc:t,isFromMainSession:Number(r)})}ajustmentReceivedSharingCanvas(t,r){if(this.receivedSharingCanvas&&t&&r)try{if(Yt.isAndroidOrIOSBrowser){const[n,o]=[1280,720],i=Math.max(t/n,r/o,1);this.receivedSharingCanvas.width=Math.floor(t/i),this.receivedSharingCanvas.height=Math.floor(r/i)}else this.receivedSharingCanvas.width=t,this.receivedSharingCanvas.height=r}catch{}}startRemoteControl(t,r,n){var o;(o=this.instance)===null||o===void 0||o.Notify_MeidaSDK(26,{socketURL:`wss://${this.svcUrl}`,meetingID:this.meetingNumber,condID:this.confId,os:r,dom:t,...n})}stopRemoteControl(){var t;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(28)}resendRemoteControlPositionPDU(){var t;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(41)}updateRemoteControlProperties(t){var r;const{dimension:n,...o}=t;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(27,{...n,...o})}enableShareEncode(){var t;(t=this.instance)===null||t===void 0||t.initSharingEncode()}startDesktopSharing(t,r,n,o,i=!0,a,s,l,c=!1){var d;this.sharingCanvas=r;const p={};o&&Object.assign(p,{share2ndCamera:!0,share2ndCameraParams:{VideoSelectValue:o.cameraId==="default"?null:o.cameraId,width:o.width,height:o.height}}),a!==void 0&&Object.assign(p,{videoParams:{displaySurface:a}}),l!==void 0&&Object.assign(p,{otherParams:{...l}}),r instanceof HTMLVideoElement&&r.setAttribute("playsinline",""),(d=this.instance)===null||d===void 0||d.Notify_MeidaSDK(30,{ssid:t,canvas:r,video:n,...p,showShareAudioOption:i,sourceId:s,noPreview:!0,isCamFeedShare:c})}stopDesktopSharing(){var t;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(31,{})}pauseDesktopSharing(){var t;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(32,{})}updateSharingInfo(t,r){var n;(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(153,{shareSessionId:t,userName:r})}resumeDesktopSharing(){var t;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(33,{})}selectLanguageChannelForNewLTT(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(57,{lang:t})}changeSharingSecondCamera(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(49,{VideoSelectValue:t})}ajustmentSharingCanvas(t,r){if(this.sharingCanvas)try{this.sharingCanvas.width=t,this.sharingCanvas.height=r}catch{}}startPresenterAnnotation(t,r,n){const o={shareSessionId:t,presenterId:r,userName:n};var i;this.sharingCanvas&&(this.annotationPresenterCanvas||(this.annotationPresenterCanvas=rT(this.sharingCanvas,sT+"PRESENTER",(()=>{this.updatePresenterAnnotationCanvas()}))),this.annotationPresenterCanvas&&(Object.assign(o,{localShareCanvas:this.sharingCanvas,annoPresenterCanvas:this.annotationPresenterCanvas,isPresenter:!0}),(i=this.instance)===null||i===void 0||i.Notify_MeidaSDK(150,o),this.updatePresenterAnnotationCanvas()))}startViewerAnnotation(t,r,n){const o={shareSessionId:t,presenterId:r,userName:n};var i,a;this.receivedSharingCanvas?(this.annotationCanvas?(this.annotationCanvas.parentNode&&(this.annotationCanvas.parentNode.style.display="block"),this.annotationCanvas.style.display="block"):this.annotationCanvas=rT(this.receivedSharingCanvas,sT+"VIEWER",(()=>{this.updateViewerAnnotationCanvas()})),this.annotationCanvas&&(Object.assign(o,{canvas:this.receivedSharingCanvas,annoCanvas:this.annotationCanvas,isPresenter:!1}),(i=this.instance)===null||i===void 0||i.Notify_MeidaSDK(150,o),this.updateViewerAnnotationCanvas())):(a=this.instance)===null||a===void 0||a.Notify_MeidaSDK(150,{...o,isPresenter:!1})}stopPresenterAnnotation(t){var r;this.annotationPresenterCanvas&&typeof this.annotationPresenterCanvas._overlayCleanup=="function"&&(this.annotationPresenterCanvas._overlayCleanup(),this.annotationPresenterCanvas=null),(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(156,{presenterId:t})}hideViewerAnnotationCanvas(){this.annotationCanvas&&(this.annotationCanvas.style.display="none",this.annotationCanvas.parentNode)&&(this.annotationCanvas.parentNode.style.display="none")}removeViewerAnnotationCanvas(){this.annotationCanvas&&typeof this.annotationCanvas._overlayCleanup=="function"&&(this.annotationCanvas._overlayCleanup(),this.annotationCanvas=null)}stopViewerAnnotation(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(156,{presenterId:t})}annotateAction(t,r={}){var n;(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(zf,{actionType:t,...r})}updatePresenterAnnotationCanvas(){if(this.sharingCanvas){var t,r;const{size:n,position:o}=nT(this.sharingCanvas);(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(zf,{actionType:Wi.ANNO_CANVAS_SIZE_UPDATE,...n}),(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(zf,{actionType:Wi.UPDATE_REMOTE_POSITION_INFO,...o})}}updateViewerAnnotationCanvas(){if(this.receivedSharingCanvas){var t,r;const{size:n,position:o}=nT(this.receivedSharingCanvas);(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(zf,{actionType:Wi.ANNO_CANVAS_SIZE_UPDATE,...n}),(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(zf,{actionType:Wi.UPDATE_REMOTE_POSITION_INFO,...o})}}enableAudioEncode(){var t;(t=this.instance)===null||t===void 0||t.initAudioEncode()}sendUserNodeList(t,r){var n;(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(43,{userList:t,encryptKey:r})}updateRenderedSharingDimension(t,r){var n;(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(44,{width:t,height:r})}pauseOrResumeAudio(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(45,{bPause:t})}updateRenderedVideoCanvasDimension(t,r,n){var o;(o=this.instance)===null||o===void 0||o.Notify_MeidaSDK(46,{canvas:t,width:r,height:n})}clearVideoCanvas(t,r){var n;(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(47,{id:t,RGBA:r})}adjustRenderedVideoPosition(t,r,n,o,i,a,s,l){var c;(c=this.instance)===null||c===void 0||c.Notify_MeidaSDK(48,{userId:r,x:o,y:i,width:a,height:s,canvas:t,zone:n,RGBA:l})}mirrorVideo(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(75,{isMirrorMyVideo:t})}updateUserMediaSN(t){var r,n,o;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(80,{isFromMainSession:Number(t.isFromMainSession),mediaActionType:t.iVType,body:{add:(n=t.added)!==null&&n!==void 0?n:[],remove:(o=t.removed)!==null&&o!==void 0?o:[]}})}updateMediaParams(t){var r;const{iVType:n,isFromMainSession:o,updateParams:i}=t;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(81,{mediaActionType:n,isFromMainSession:Number(o),updateParams:i})}createMainSessionChannel(t,r){var n,o;t==="sharing"?(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(84,r):(o=this.instance)===null||o===void 0||o.Notify_MeidaSDK(85,r)}addReceivedSharingChannelType(t){var r;const{isFromMainSession:n,...o}=t;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(82,{isFromMainSession:Number(n),...o})}removeReceivedSharingChannelType(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(83,{isFromMainSession:Number(t.isFromMainSession),ssrc:t.ssrc})}beforeReportToGlobalTracing(){var t,r;(t=this.instance)===null||t===void 0||(r=t.beforeReportToGlobalTracing)===null||r===void 0||r.call(t)}enableHardwareAccelerationForVideoDecode(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(70,{enable:t})}enableHardwareAccelerationForVideoEncode(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(71,{enable:t})}setSharingAudioVolume(t,r,n,o=!1){var i;(i=this.instance)===null||i===void 0||i.Notify_MeidaSDK(74,{userid:t>>10,shareVolume:r?0:100,isFromMainSession:n,isSecondAudio:o})}subscribeToQos(t,r){t.forEach((n=>{var o;(o=this.instance)===null||o===void 0||o.updateQosSubscription(!0,n,r)}))}subscribeWebRTCStatistics(t,r){var n;(n=this.instance)===null||n===void 0||n.updateStatisticsSubscription(t,r)}unsubscribeFromQos(t){t.forEach((r=>{var n;(n=this.instance)===null||n===void 0||n.updateQosSubscription(!1,r)}))}passThroughRWGMessage(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(40,t)}startVirtualBackgroundSetting(t){var r;const{imageId:n,cameraDeviceId:o,...i}=t;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(91,{bgdom:n,VideoSelectValue:o==="default"?null:o,...i})}updateVirtualBackgroundImage(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(92,{bgdom:t})}stopVirtualBackgroundSetting(t=!1){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(93,{isSwitch:t})}startMaskSetting(t,r,n,o,i,a,s,l,c){var d;(d=this.instance)===null||d===void 0||d.Notify_MeidaSDK(62,{canvas:t,maskdom:n,bgdom:r,dx:0,dy:0,dWidth:a,dHeight:s,width:l,height:c,ssid:o,VideoSelectValue:i==="default"?null:i})}updateMaskBackgroundImage(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(63,{bgdom:t})}updateMaskClip(t,r,n){var o;(o=this.instance)===null||o===void 0||o.Notify_MeidaSDK(64,{maskdom:t,dx:0,dy:0,dWidth:r,dHeight:n})}stopMaskSetting(t=!1){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(65,{isSwitch:t})}enableVideoObserver(t,r=!1){var n;(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(99,{enable:t,fpsdisbale:r})}enableShareAudioToBreakoutRoom(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(86,{enable:t})}sendUserAudioStatus(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(51,t)}muteOrUnmuteOtherAudio(t,r){var n;(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(50,{userId:t,volume:r?0:100})}adjustOtherAudioVolume(t,r){var n;(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(50,{userId:t,volume:r})}notifyWBMessage(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(120,t)}notifySDKMeetingReady(){var t;(t=this.instance)===null||t===void 0||t.Notify_MeidaSDK(113)}movePTZCamera(t){var r;return(r=window.JsMediaSDK_Instance)===null||r===void 0||(r=r.util)===null||r===void 0?void 0:r.queryPTZPermisson().then((n=>{var o;return n?((o=this.instance)===null||o===void 0||o.Notify_MeidaSDK(53,t),Promise.resolve("")):Promise.reject("Cannot move camera without permission granted")}))}switchSharingMode(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(101,{mode:t})}updateVideoHDValue(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK("update_videohd_value",{videohd:t})}updateVideoFullhdValue(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK("update_videofullhd_value",{videofullhd:t})}changeAudioProfile(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(126,t)}enableSyncButtonsOnHeadset(t,r,n){var o;(o=this.instance)===null||o===void 0||o.Notify_MeidaSDK(100,{enable:t,microphoneLabel:r,defaultMuted:n})}stopAllIncomingAudio(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(123,t)}isSharingEntireScreen(){var t,r;const n=(t=this.instance)===null||t===void 0||(r=t.getShareStreamInfo)===null||r===void 0?void 0:r.call(t);if(n){const{displaySurface:o}=n;return!o||o==="monitor"}return!1}getShareStreamInfo(t=!1){var r,n;const o=(r=this.instance)===null||r===void 0||(n=r.getShareStreamInfo)===null||n===void 0?void 0:n.call(r);if(o){const{deviceId:i,width:a,height:s}=o,l={deviceId:i,width:a,height:s};return t&&Object.assign(l,{displaySurface:o.displaySurface}),l}return{}}prefetchVideoSsrc(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(110,{ssrc:t})}cancelPrefetchVideoSsrc(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(112,{ssrc:t,haddata:!1})}setMobileRotateMode(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(124,{isLandScape:t})}changeActiveVideoSsrc(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(13,{ssrc:t})}setAudioCodecMode(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(122,{mode:t})}startRemoteControlQRCheck(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(54,{enable:t})}broadcastVoiceToBreakoutRoom(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(87,{enable:t})}share2ndAudio(t,r){var n;const o={audioOnly:!0,deviceId:t==="default"?null:t};r&&Object.assign(o,r),(n=this.instance)===null||n===void 0||n.Notify_MeidaSDK(129,o)}enablePlayAudioFileLocally(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(138,t)}bypassMediaMessage(t){var r;(r=this.instance)===null||r===void 0||r.Notify_MeidaSDK(128,t)}screenshot(t,r){var n;return(n=this.instance)===null||n===void 0?void 0:n.ScreenShot(t,r)}}dr.agentInstance=void 0;const _f=typeof Buffer=="function",VT=typeof TextDecoder=="function"?new TextDecoder:void 0,BT=typeof TextEncoder=="function"?new TextEncoder:void 0,gh=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Hg=(()=>{let e={};return gh.forEach(((t,r)=>e[t]=r)),e})(),_V=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,na=String.fromCharCode.bind(String),HT=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),i6=e=>e.replace(/=/g,"").replace(/[+\/]/g,(t=>t=="+"?"-":"_")),a6=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),s6=typeof btoa=="function"?e=>btoa(e):_f?e=>Buffer.from(e,"binary").toString("base64"):e=>{let t,r,n,o,i="";const a=e.length%3;for(let s=0;s<e.length;){if((r=e.charCodeAt(s++))>255||(n=e.charCodeAt(s++))>255||(o=e.charCodeAt(s++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,i+=gh[t>>18&63]+gh[t>>12&63]+gh[t>>6&63]+gh[63&t]}return a?i.slice(0,a-3)+"===".substring(a):i},WE=_f?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(na.apply(null,e.subarray(r,r+4096)));return s6(t.join(""))},PV=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?na(192|t>>>6)+na(128|63&t):na(224|t>>>12&15)+na(128|t>>>6&63)+na(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return na(240|t>>>18&7)+na(128|t>>>12&63)+na(128|t>>>6&63)+na(128|63&t)},xV=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,UT=_f?e=>Buffer.from(e,"utf8").toString("base64"):BT?e=>WE(BT.encode(e)):e=>s6((t=>t.replace(xV,PV))(e)),DV=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,NV=e=>{switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return na((t>>>10)+55296)+na(56320+(1023&t));case 3:return na((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return na((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},l6=typeof atob=="function"?e=>atob(a6(e)):_f?e=>Buffer.from(e,"base64").toString("binary"):e=>{if(e=e.replace(/\s+/g,""),!_V.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,o="";for(let i=0;i<e.length;)t=Hg[e.charAt(i++)]<<18|Hg[e.charAt(i++)]<<12|(r=Hg[e.charAt(i++)])<<6|(n=Hg[e.charAt(i++)]),o+=r===64?na(t>>16&255):n===64?na(t>>16&255,t>>8&255):na(t>>16&255,t>>8&255,255&t);return o},MV=_f?e=>HT(Buffer.from(e,"base64")):e=>HT(l6(e).split("").map((t=>t.charCodeAt(0)))),kV=_f?e=>Buffer.from(e,"base64").toString("utf8"):VT?e=>VT.decode(MV(e)):e=>(t=>t.replace(DV,NV))(l6(e)),u6=(e,t=!1)=>t?i6(UT(e)):UT(e),LV=e=>kV((t=>a6(t.replace(/[-_]/g,(r=>r=="-"?"+":"/"))))(e)),FV=(e,t=!1)=>t?i6(WE(e)):WE(e);function Po(e){return u6(e,!0)}function gs(e){return LV(e)}function c6(e){return u6(e,!1)}const jV={"-":"+",_:"/",".":"="};function sa(e){const t=e.replace(/[-_.]/g,(r=>jV[r]));return Uint8Array.from(window.atob(t),(r=>r.charCodeAt(0)))}const d6=e=>{const t=e.charCodeAt(0);return t<=parseInt("0x7F",16)?1:t<=parseInt("0x7FF",16)?2:t<=parseInt("0xFFFF",16)?3:t<=parseInt("0x1FFFFF",16)?4:t<=parseInt("0x3FFFFFF",16)?5:6},zE=(e,t)=>{const r=e.split(".").map((i=>Number(i))).slice(0,3),n=t.split(".").map((i=>Number(i))).slice(0,3);let o=0;for(let i=0;i<3;i++){const a=i<r.length?r[i]:0,s=i<n.length?n[i]:0;if(a<s){o=-1;break}if(a>s){o=1;break}}return o},nm=e=>{var t;let r=new Date().getTime(),n=1e3*((t=performance)===null||t===void 0?void 0:t.now())||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(i=>{let a=16*Math.random();return r>0?(a=(r+a)%16|0,r=Math.floor(r/16)):(a=(n+a)%16|0,n=Math.floor(n/16)),(i==="x"?a:3&a|8).toString(16)}))+""};function og(e,t){if(e===t)return!0;if(!e||!t)return!1;const r=Object.keys(e),n=Object.keys(t),o=r.length;if(n.length!==o)return!1;for(let i=0;i<o;i++){const a=r[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}const Ti=(e,t)=>e>>10==t>>10,ig=(e,t)=>new Promise((r=>{setTimeout((()=>{r(e())}),t)})),Rl=e=>{const t=`${Math.floor(1e4*Math.random())}`;return e.indexOf("@")>-1?e.replace("@",t):`${e}${t}`},La=e=>{try{const t=new URL(e);return!(t.protocol==="data:"&&t.origin==="null")&&t.origin!==location.origin}catch{return!0}},Ms=e=>{const t=e.split(".")[1];if(typeof t=="string"){let r=t.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{const n=decodeURIComponent(window.atob(r).replace(/(.)/g,(function(o,i){let a=i.charCodeAt(0).toString(16).toUpperCase();return a.length<2&&(a="0"+a),"%"+a})));return JSON.parse(n)}catch{console.error("Invalid token specified: invalid base64")}}};function C0(e){return e&&e.endsWith("/")?e.slice(0,e.length-1):e}function p6(e){return[...new Uint8Array(e)].map((t=>t.toString(16).padStart(2,"0"))).join("")}function $T(e){return`${e.tagName}${e.id?`#${e.id}`:""}${e.className?`${e.className.split(" ").map((t=>`.${t}`)).join("")}`:""}`}function f6(e){const t=(function(r){const n=r&&r.getRootNode();if(n&&n.nodeName!=="#document"&&n.host)return $T(n.host)})(e);return`${t?`${t}>`:""}${$T(e)}`}function hb(e){return typeof e=="object"&&e!==null?Qm(e,HTMLElement)?f6(e):ArrayBuffer.isView(e)?p6(e.buffer):Array.isArray(e)?e.map((t=>hb(t))):Object.keys(e).reduce(((t,r)=>({...t,[`${r}`]:hb(e[r])})),{}):e}const VV=[Qv,Xv,Xc].map((e=>W3(e,{hostname:!0})));function h6(e){return VV.some((t=>new RegExp(`^https://${t}`).test(e??"")))}const BV={"7z":"application/x-7z-compressed",avi:"video/x-msvideo",bin:"application/octet-stream",bmp:"image/bmp",css:"text/css",csv:"text/csv",doc:"application/msword",docx:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",gif:"image/gif",gz:"application/gzip",html:"text/html",ics:"text/calendar",jar:"application/java-archive",jpeg:"image/jpeg",jpg:"image/jpeg",js:"text/javascript",json:"application/json",mid:"audio/midi",mov:"video/*",mp3:"audio/mpeg",mp4:"video/mp4",mpeg:"video/*",mpg:"video/*",pdf:"application/pdf",png:"image/png",ppt:"application/vnd.ms-powerpoint",pptx:"application/vnd.openxmlformats-officedocument.presentationml.presentation",rar:"application/vnd.rar",rtf:"application/rtf",tar:"application/x-tar",tif:"image/tiff",tiff:"image/tiff",txt:"text/plain",wav:"audio/wav",webp:"image/webp",wma:"audio/*",wmv:"video/*",xls:"application/vnd.ms-excel",xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",xml:"application/xml",zip:"application/zip"};function m6(e){var t;const[r]=e.split(".").reverse();return(t=BV[r])!==null&&t!==void 0?t:""}function g6(e,t){const r=typeof e=="string"?new Blob([sa(e)],{type:m6(t)}):e,n=document.createElement("a"),o=window.URL.createObjectURL(r);n.href=o,n.download=t,n.click(),window.URL.revokeObjectURL(o)}const si=(e,t,r)=>b0([t,r].map(((n,o)=>{if(n!=="initial")return ft([n==="success"]);{const i=o===0?"ENCODE":"DECODE";return Ji(cn(`${e.toUpperCase()}_${i}_SUCCESS`,1).pipe(wt((()=>!0))),cn(`${e.toUpperCase()}_${i}_FAIL`,1).pipe(wt((()=>!1))))}}))),kd=e=>{const t=ir(e.value);return t?Mn(t):cn(rg,1).pipe(go(Ds),Xt(e),wt((([,r])=>ir(r))))};function KE(e,t){var r,n,o;const i=e==="audio"?(r=t.audio)===null||r===void 0?void 0:r.audioSsrc:(n=t.video)===null||n===void 0?void 0:n.videoSsrc,a=e==="audio"?tM:j4;return e==="audio"&&(o=t.audio)!==null&&o!==void 0&&o.isWebRtcAudioCapable||i?Promise.resolve():Sr(a)}const Ld=()=>ft(navigator.mediaDevices.enumerateDevices()).pipe(wt((e=>{const t=[],r=[],n=[];return e.forEach((o=>{const{kind:i,deviceId:a,label:s}=o,l=s.replace(/\([\w,\d]+:[\w,\d]+\)/i,"").trim();switch(i){case"audioinput":a==="communications"||/ZoomAudioDevice/i.test(l)||/Zoom-\S*/.test(l)||/CubebAggregateDevice\S*/.test(l)||/Microsoft Teams Audio/i.test(l)||t.push({deviceId:a,label:l});break;case"audiooutput":a==="communications"||/ZoomAudioDevice/i.test(l)||/Microsoft Teams Audio/i.test(l)||r.push({deviceId:a,label:l});break;case"videoinput":n.push({deviceId:a,label:l})}})),{microphones:t,speakers:r,cameras:n}})));function mb(e){const{x:t,y:r,width:n,height:o}=e.getBoundingClientRect();return{scaleWidth:n,scaleHeight:o,srcOffsetX:t,srcOffsetY:r}}function gb(e){if(e){let r=e;try{const n=e.width;e.width=n}catch{var t;r=e.cloneNode(!0),(t=e.parentNode)===null||t===void 0||t.replaceChild(r,e)}return r}return e}function WT(){try{return typeof MessageChannel<"u"&&new MessageChannel().port1.postMessage(new SharedArrayBuffer(1)),WebAssembly.validate(Cj)}catch{return!1}}function Ug(){var e;return(e=WebAssembly)===null||e===void 0?void 0:e.validate(wj)}const v6=(()=>{const e=new o6;return{withAudioAction:t=>(...r)=>new Promise((async(n,o)=>{let i=!1;const a=setTimeout((()=>{i=!0,e.release()}),3e4);try{await e.acquire(),i||clearTimeout(a),n(t(...r))}catch(s){i||(clearTimeout(a),o(s))}})),processAudioAction:t=>e.acquire().then((()=>t())),completeAudioAction:()=>{e.release()},cancelAllAudioAction:()=>{e.cancel()}}})();function w0(e){const t=["joinComputerAudio","joinSharingAudio","leaveComputerAudio","leaveSharingAudio"];return new Proxy(e,{get:(r,n)=>typeof n=="string"&&t.includes(n)?function(...o){return v6.withAudioAction(r[n].bind(r))(...o)}:Reflect.get(r,n)})}const OS=(e,t)=>{const r=document.createElement("link");return r.rel="preload",r.href=e,r.as=t,r.crossOrigin="anonymous",r},Ru=(e,t,r)=>{const n=[],o=[],i=Array.isArray(e)?e:[e];return Aj.filter((a=>{var s;return i.includes(a.category)&&(a.tag===t||((s=a.tag)===null||s===void 0?void 0:s.split(",").includes(t)))})).forEach((a=>{a.type==="worker"?n.push(`${r}${a.name}`):a.type==="wasm"&&o.push(`${r}${a.name}`)})),{workers:n,wasms:o}};function y6(e,t,r){const n={},{isSupportSharedArrayBuffer:o,isSupportOffscreenCanvas:i,isSupportMediaStreamTrackProcessor:a,isAndroidOrIOSBrowser:s,isHarmonyOS:l}=Yt;return!o&&i&&a&&Object.assign(n,{enableVirtualBackgroundWithoutSAB:!!t}),Object.assign(n,{enableMultiDecodeVideoWithoutSAB:!!e,platformMode:{isDesktopMode:!(s||l)},enforceAudioDenoiseAdaptive:r}),n}function _S(e,t,r){if(e.deviceId===t)return!0;if(t==="default"){const n=r.find((o=>o.deviceId===t));if(n)return n.label.indexOf(e.label)>-1}return!1}function Gf(e){return e.find((t=>t.deviceId==="default"))}const GE=(()=>{let e,t=!1;return{watch:function(r){t=!0,e=Promise.race([r,ig((()=>!0),1e4)]).then((()=>{e=void 0,t=!1})).finally((()=>{e=void 0,t=!1}))},acquire:function(){return t&&e?e:Promise.resolve()}}})(),vh=(e,t)=>Sr({event:YI,operations:[Be((r=>r[`${e}`]!==void 0)),Fr(1)]},(r=>r[`${e}`]===t));function zT(e,t,r,n){const o={play:()=>e.play(),pause:()=>e.pause(),get paused(){return e.paused},get muted(){return e.muted},set muted(i){e.muted=i},get currentTime(){return e.currentTime},set currentTime(i){e.currentTime=i},get loop(){return e.loop},set loop(i){e.loop=i}};if(t==="audio"){const{audio:{mediaPlaybackFile:i}}=r;Object.defineProperty(o,"playback",{get(){const a=e.dataset.playback;return a!==void 0?a==="1":!(i==null||!i.playback)},set(a){n.enablePlayAudioFileLocally(a),e.dataset.playback=a?"1":"0"}})}return o}function qE(){return Ji(Uo(document,"click").pipe(Fr(1)),Uo(document,"touchend").pipe(Fr(1))).pipe(Wo(sl()))}function b6(e,t){const{audio:{activeMicrophone:r,microphoneDevicesList:n}}=t,o=n.find((a=>a.deviceId===r)),i=ir(t);e.changeMicrophone(r,o==null?void 0:o.label,!(i==null||!i.muted))}function S6(e,t,r,n){var o;const{audio:i,share:{isReceiveSharingFromMainSession:a}}=r;if((i==null||(o=i.localShareAudioUserMutedList)===null||o===void 0?void 0:o.length)>0){const{localShareAudioUserMutedList:s}=i,l=s.filter((c=>c.userId!==e));if(l.length){const c=dn(r);l.forEach((d=>{const p=c.find((m=>m.userId===d.userId));p&&!p.audioShare&&n.setSharingAudioVolume(d.userId,!0,d.isFromMainSession)}))}}n.setSharingAudioVolume(e,t,!!a)}function HV(e,t,r){let n=0;return e&&(n|=ey.WebRTCAudio),t&&(n|=ey.WebRTCVideo),r&&(n|=ey.WebRTCAudio2),n}function E6(){var e,t;return"orientation"in window.screen?(e=screen.orientation.type)===null||e===void 0?void 0:e.startsWith("landscape"):"orientation"in window?Math.abs(window.orientation)===90:"matchMedia"in window?!((t=window.matchMedia("(orientation: landscape)"))===null||t===void 0||!t.matches):screen.availWidth>screen.availHeight}function C6(){return"orientation"in window.screen?Uo(screen.orientation,"change").pipe(Wo(sl()),wt((()=>{var e;return(e=screen.orientation.type)===null||e===void 0?void 0:e.startsWith("landscape")}))):Uo(window,"orientationchange").pipe(Wo(sl()),wt((e=>{var t;const r=(t=e.target)===null||t===void 0||(t=t.screen)===null||t===void 0||(t=t.orientation)===null||t===void 0?void 0:t.angle;return Math.abs(r)===90})))}function $g(e,t){var r;let n;if(typeof e=="string"){if(n=document.querySelector(e),!n)return[!1,{type:mr,reason:"Cannot find the element",errorCode:Z.STREAM_MISMATCH_RENDER_ELEMENT}]}else n=e;return((r=n)===null||r===void 0||(r=r.tagName)===null||r===void 0?void 0:r.toUpperCase())!==t.toUpperCase()?[!1,{type:mr,reason:"Invalid element type",errorCode:Z.STREAM_MISMATCH_RENDER_ELEMENT}]:[!0,n]}function KT(e){const{share:{isRemoteSharingActive:t,isSimultaneousShareView:r}}=e;return t||r?Mn(!0):cn(ld).pipe(Be((n=>{const{isActive:o}=n;return o})),Fr(1),wt((()=>!0)))}function w6(e){var t;const r=((t=e.dataset)===null||t===void 0?void 0:t.videoPlayerId)||`vp-${nm()}`;return e.dataset&&!e.dataset.videoPlayerId&&(e.dataset.videoPlayerId=r),e.isDummy!==!0&&Yt.isWeakRefSupported?{weakRef:new WeakRef(e),playerId:r}:{element:e,playerId:r}}function ag(e){return e.weakRef?e.weakRef.deref()||null:e.element||null}function Np(e){return e.map((t=>ag(t))).filter((t=>t!==null))}function I6(e){return e.filter((t=>ag(t)!==null))}function uc(e,t){var r;return ag(e)===t||e.playerId===((r=t.dataset)===null||r===void 0?void 0:r.videoPlayerId)}var GT,qT,dd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function I0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UV=(qT||(qT=1,GT=function(e,t,r,n,o,i,a,s){if(!e){var l;if(t===void 0)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[r,n,o,i,a,s],d=0;(l=new Error(t.replace(/%s/g,(function(){return c[d++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}),GT),Gp=I0(UV),Sd=function(e){return typeof e=="function"},JT=function(e){return e.toString()},PS=function(e){return typeof e=="string"},py="||",Ed=function(e){return e},YT=function(e){return e===null};function Bn(e,t,r){t===void 0&&(t=Ed),Gp(Sd(t)||YT(t),"Expected payloadCreator to be a function, undefined or null");var n=YT(t)||t===Ed?Ed:function(s){for(var l=arguments.length,c=new Array(l>1?l-1:0),d=1;d<l;d++)c[d-1]=arguments[d];return s instanceof Error?s:t.apply(void 0,[s].concat(c))},o=Sd(r),i=e.toString(),a=function(){var s=n.apply(void 0,arguments),l={type:e};return s instanceof Error&&(l.error=!0),s!==void 0&&(l.payload=s),o&&(l.meta=r.apply(void 0,arguments)),l};return a.toString=function(){return i},a}var xS,QT,XT,ZT,eO,tO,pf=function(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},rO=function(e){return Array.isArray(e)},A6=function(e){return e==null},nO=I0((function(){if(tO)return eO;tO=1;var e=(function(){if(ZT)return XT;ZT=1;var t=(function(){if(QT)return xS;QT=1,xS=function(s){return r.test(s)?s.toLowerCase():n.test(s)?((function(l){return l.replace(i,(function(c,d){return d?" "+d:""}))})(s)||s).toLowerCase():o.test(s)?(function(l){return l.replace(a,(function(c,d,p){return d+" "+p.toLowerCase().split("").join(" ")}))})(s).toLowerCase():s.toLowerCase()};var r=/\s/,n=/(_|-|\.|:)/,o=/([a-z][A-Z]|[A-Z][a-z])/,i=/[\W_]+(.|$)/g,a=/(.)([A-Z]+)/g;return xS})();return XT=function(r){return t(r).replace(/[\W_]+(.|$)/g,(function(n,o){return o?" "+o:""})).trim()}})();return eO=function(t){return e(t).replace(/\s(\w)/g,(function(r,n){return n.toUpperCase()}))}})()),R6=function(e){return e.indexOf("/")===-1?nO(e):e.split("/").map(nO).join("/")},JE=function(e,t){return e.reduce((function(r,n){return t(r,n)}),{})},A0=function(e){return typeof Map<"u"&&e instanceof Map};function hA(e){if(A0(e))return Array.from(e.keys());if(typeof Reflect<"u"&&typeof Reflect.ownKeys=="function")return Reflect.ownKeys(e);var t=Object.getOwnPropertyNames(e);return typeof Object.getOwnPropertySymbols=="function"&&(t=t.concat(Object.getOwnPropertySymbols(e))),t}function T6(e,t){return A0(t)?t.get(e):t[e]}var O6=function(e){return function t(r,n,o,i){var a=n===void 0?{}:n,s=a.namespace,l=s===void 0?"/":s,c=a.prefix;return o===void 0&&(o={}),i===void 0&&(i=""),hA(r).forEach((function(d){var p=(function(y){return i||!c||c&&new RegExp("^"+c+l).test(y)?y:""+c+l+y})((function(y){var b;if(!i)return y;var v=y.toString().split(py),C=i.split(py);return(b=[]).concat.apply(b,C.map((function(A){return v.map((function(R){return""+A+l+R}))}))).join(py)})(d)),m=T6(d,r);e(m)?t(m,{namespace:l,prefix:c},o,p):o[p]=m})),o}},$V=O6(pf);function vb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})))),n.forEach((function(o){WV(e,o,r[o])}))}return e}function WV(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Do(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o,i=pf((o=r)[o.length-1])?r.pop():{};return Gp(r.every(PS)&&(PS(e)||pf(e)),"Expected optional object followed by string action types"),PS(e)?oO([e].concat(r),i):vb({},(function(a,s){return(function(l,c){var d=c===void 0?{}:c,p=d.namespace,m=p===void 0?"/":p,y=d.prefix;function b(C,A,R){var x=R6(R.shift());R.length===0?A[x]=l[C]:(A[x]||(A[x]={}),b(C,A[x],R))}var v={};return Object.getOwnPropertyNames(l).forEach((function(C){var A=y?C.replace(""+y+m,""):C;return b(C,v,A.split(m))})),v})(_6($V(a,s)),s)})(e,i),oO(r,i))}function _6(e,t){var r=t===void 0?{}:t,n=r.prefix,o=r.namespace,i=o===void 0?"/":o;return JE(Object.keys(e),(function(a,s){var l,c=e[s];Gp((function(m){if(Sd(m)||A6(m))return!0;if(rO(m)){var y=m[0],b=y===void 0?Ed:y,v=m[1];return Sd(b)&&Sd(v)}return!1})(c),"Expected function, undefined, null, or array with payload and meta functions for "+s);var d=n?""+n+i+s:s,p=rO(c)?Bn.apply(void 0,[d].concat(c)):Bn(d,c);return vb({},a,((l={})[s]=p,l))}))}function oO(e,t){var r=_6(JE(e,(function(n,o){var i;return vb({},n,((i={})[o]=Ed,i))})),t);return JE(Object.keys(r),(function(n,o){var i;return vb({},n,((i={})[R6(o)]=r[o],i))}))}var zV=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=typeof t[t.length-1]!="function"&&t.pop(),o=t;if(n===void 0)throw new TypeError("The initial state may not be undefined. If you do not want to set a value for this reducer, you can use null instead of undefined.");return function(i,a){for(var s=arguments.length,l=Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];var d=i===void 0,p=a===void 0;return d&&p&&n?n:o.reduce((function(m,y){return y.apply(void 0,[m,a].concat(l))}),d&&!p&&n?n:i)}},KV=O6((function(e){return(pf(e)||A0(e))&&!(function(t){var r=hA(t),n=r.every((function(o){return o==="next"||o==="throw"}));return r.length&&r.length<=2&&n})(e)}));function Mi(e,t,r){r===void 0&&(r={}),Gp(pf(e)||A0(e),"Expected handlers to be a plain object.");var n=KV(e,r),o=hA(n).map((function(a){return(function(s,l,c){l===void 0&&(l=Ed);var d=JT(s).split(py);Gp(c!==void 0,"defaultState for reducer handling "+d.join(", ")+" should be defined"),Gp(Sd(l)||pf(l),"Expected reducer to be a function or object with next and throw reducers");var p=Sd(l)?[l,l]:[l.next,l.throw].map((function(b){return A6(b)?Ed:b})),m=p[0],y=p[1];return function(b,v){b===void 0&&(b=c);var C=v.type;return C&&d.indexOf(JT(C))!==-1?(v.error===!0?y:m)(b,v):b}})(a,T6(a,n),t)})),i=zV.apply(void 0,o.concat([t]));return function(a,s){return a===void 0&&(a=t),i(a,s)}}const YE=Bn("SCREENSHOT_VIDEO_NOTIFICATION"),{setVideoSsrc:P6,setActiveVideoId:x6,setCameraList:mA,setActiveCamera:ff,setIsCurrentUserStartedVideo:D6,setSpotlightVideo:QE,setIsCaptureForbidden:yb,setVideoMaxQuality:N6,setIsVideoMuted:M6,setIsCaptureCameraLoading:Mp,setIsCameraTaken:bb,resetVideo:k6,setReceivedVideoDimension:L6,addSubscribedVideoId:fy,removeSubscribedVideoId:hy,setIsFollowHostVideoLayout:F6,setHostDragLayout:j6,addRenderedVideoId:Cd,removeRenderedVideoId:Sb,setIsSupportHdVideo:V6,setIsCanUnmuteVideo:B6,setIsVbPreloadReady:XE,setIsVbConfiged:Eb,setVbImageSrc:my,setVideoDataEncoding:Cb,setVideoDataDecoding:wb,setHardwareAccelerationState:Cp,setVideoCaptureCustomizedOption:H6,setNetworkQuality:ZE,setVideoCameraPtzCapabilities:U6,setIsCurrentUserRequestCameraControlled:Ib,setIsCurrentUserCameraInControl:Ab,addVideoFarEndCameraControlUser:$6,removeVideoFarEndCameraControlUser:Rb,setVideoPtzCameraMoving:eC,setVideoPtzCameraValue:gA,setIsControllingFarEndCamera:tC,setNetworkQualityBroadcastTime:W6,setIsMaskConfiged:Tb,setVideoBackgroundMode:rC,setVideoMask:gy,setVideoCapturedDimension:z6,addVideoRenderedEnsuredCanvas:K6,setVideoMediaPlaybackFile:nC,setPrefetchedVideoUser:qp,setVideoQosSubscriptionStatus:yh,setMiniRwgOptionValue:G6,addVideoPlayerAttachment:vA,removeVideoPlayerAttachment:vy,setIsWebGl2RendererType:q6,setIsWebGpuRendererType:J6,setVideoRendererType:Y6,setIsVideoMirrored:Q6,addSelfPreviewVideoTag:X6,removeSelfPreviewVideoTag:oC,setVideoLeadershipUserId:Z6,setIsWebrtcVideoCapable:yA,removeCustomVideoConstraints:e5,setWebrtcStatisticSubscription:iC,setWebrtcStatisticData:t5}=Do("SET_VIDEO_SSRC","SET_ACTIVE_VIDEO_ID","SET_CAMERA_LIST","SET_ACTIVE_CAMERA","SET_IS_CURRENT_USER_STARTED_VIDEO","SET_SPOTLIGHT_VIDEO","SET_IS_CAPTURE_FORBIDDEN","SET_VIDEO_MAX_QUALITY","SET_IS_VIDEO_MUTED","SET_IS_CAPTURE_CAMERA_LOADING","SET_IS_CAMERA_TAKEN","RESET_VIDEO","SET_RECEIVED_VIDEO_DIMENSION","ADD_SUBSCRIBED_VIDEO_ID","REMOVE_SUBSCRIBED_VIDEO_ID","SET_IS_FOLLOW_HOST_VIDEO_LAYOUT","SET_HOST_DRAG_LAYOUT","ADD_RENDERED_VIDEO_ID","REMOVE_RENDERED_VIDEO_ID","SET_IS_SUPPORT_HD_VIDEO","SET_IS_CAN_UNMUTE_VIDEO","SET_IS_VB_PRELOAD_READY","SET_IS_VB_CONFIGED","SET_VB_IMAGE_SRC","SET_VIDEO_DATA_ENCODING","SET_VIDEO_DATA_DECODING","SET_HARDWARE_ACCELERATION_STATE","SET_VIDEO_CAPTURE_CUSTOMIZED_OPTION","SET_NETWORK_QUALITY","SET_VIDEO_CAMERA_PTZ_CAPABILITIES","SET_IS_CURRENT_USER_REQUEST_CAMERA_CONTROLLED","SET_IS_CURRENT_USER_CAMERA_IN_CONTROL","ADD_VIDEO_FAR_END_CAMERA_CONTROL_USER","REMOVE_VIDEO_FAR_END_CAMERA_CONTROL_USER","SET_VIDEO_PTZ_CAMERA_MOVING","SET_VIDEO_PTZ_CAMERA_VALUE","SET_IS_CONTROLLING_FAR_END_CAMERA","SET_NETWORK_QUALITY_BROADCAST_TIME","SET_IS_MASK_CONFIGED","SET_VIDEO_BACKGROUND_MODE","SET_VIDEO_MASK","SET_VIDEO_CAPTURED_DIMENSION","ADD_VIDEO_RENDERED_ENSURED_CANVAS","SET_VIDEO_MEDIA_PLAYBACK_FILE","SET_PREFETCHED_VIDEO_USER","SET_VIDEO_QOS_SUBSCRIPTION_STATUS","SET_MINI_RWG_OPTION_VALUE","ADD_VIDEO_PLAYER_ATTACHMENT","REMOVE_VIDEO_PLAYER_ATTACHMENT","SET_IS_WEB_GL2_RENDERER_TYPE","SET_IS_WEB_GPU_RENDERER_TYPE","SET_VIDEO_RENDERER_TYPE","SET_IS_VIDEO_MIRRORED","ADD_SELF_PREVIEW_VIDEO_TAG","REMOVE_SELF_PREVIEW_VIDEO_TAG","SET_VIDEO_LEADERSHIP_USER_ID","SET_IS_WEBRTC_VIDEO_CAPABLE","REMOVE_CUSTOM_VIDEO_CONSTRAINTS","SET_WEBRTC_STATISTIC_SUBSCRIPTION","SET_WEBRTC_STATISTIC_DATA");let Sl,Jp;async function r5(e,t,r){const n=Rl(e),o=document.createElement("img");return o.src=t,o.id=n,o.style.display="none",La(t)&&o.setAttribute("crossorigin",""),await new Promise(((i,a)=>{o.onload=()=>{r&&URL.revokeObjectURL(t),i("")},o.onerror=()=>{r&&URL.revokeObjectURL(t),a("Cannot load image.")}})),{imageId:n,imgElement:o}}async function sg(e,t,r){if(e===uf)return uf;{let n=e;if(t){const o=await(function(i){return new Promise(((a,s)=>{try{Sl&&Jp||(Sl=document.createElement("canvas"),Jp=Sl.getContext("2d"));const l=Sl,c=Jp;if(c){c.clearRect(0,0,Sl.width,Sl.height);const d=new Image;d.src=i,La(i)&&(d.crossOrigin="");const p=16/9,m=1280,y=Math.floor(m/p);l.width=m,l.height=y,d.onload=()=>{const{width:b,height:v}=d,C=v*p;if(C>b){const A=b,R=Math.floor(b/p),x=0,k=(v-R)/2;c==null||c.drawImage(d,x,k,A,R,0,0,m,y)}else{const A=C,R=v,x=(b-A)/2;c.drawImage(d,x,0,A,R,0,0,m,y)}try{l.toBlob((A=>{a(A)}))}catch(A){A instanceof DOMException&&A.code===DOMException.SECURITY_ERR&&console.error("Image is not from the same origin, add CORS header to solve this issue"),s(A)}},d.onerror=b=>{s("Cannot load image.")}}}catch(l){s(l)}}))})(e);n=URL.createObjectURL(o)}if(n){const{imageId:o,imgElement:i}=await r5("__ZOOM_SDK_VIRTUAL_BACKGROUND_IMAGE_@__",n,!!t);return(r??document.body).appendChild(i),o}}return null}async function n5(e,t,r){var n;const o=(n=r&&r.parentNode)!==null&&n!==void 0?n:document.body,{imageUrl:i,cropped:a,rootWidth:s,rootHeight:l}=e;let c=e;!t.video.customizedVideoOption||e.captureWidth&&e.captureHeight||(c=t.video.customizedVideoOption);const{captureWidth:d,captureHeight:p}=c,m=document.createElement("div");let y;m.style.display="none",y=i?await sg(i,a,m):null;let b,v=Rl("__ZOOM_SDK_VIRTUAL_BACKGROUND_CANVAS_@__");if(r)if(Of(r)){const C=gb(r);C.id?v=C.id:C.id=v,b=C;try{s&&r.width!==s&&(r.width=s),l&&r.height!==l&&(r.height=l)}catch{console.warn("Cannot set the canvas width/height, and pay attention the canvas dimension is different from the setting")}}else r.setAttribute("node-id",v),r.setAttribute("media-type","preview"),b=r;else{const C=document.createElement("canvas");C.width=s??380,C.height=l??214,C.id=v,b=C,m.appendChild(C)}return o==null||o.appendChild(m),{captureWidth:d,captureHeight:p,imageId:y,element:b,divElement:m,id:v}}async function iO(e,t,r,n){const o=Array.isArray(e)?e:e&&[e];if((o==null?void 0:o.length)>0){Sl&&Jp||(Sl=document.createElement("canvas"),Jp=Sl.getContext("2d"));const i=Sl,a=Jp;if(i.width=t,i.height=r,a)try{a.fillStyle="#fff",a.clearRect(0,0,t,r);for(let l=0;l<o.length;l++){const c=o[l],{type:d,x:p,y:m}=c;if(d==="rectangle"){const{width:y,height:b}=c;a.fillRect(p,m,y,b)}else if(d==="square"){const{length:y}=c;a.fillRect(p,m,y,y)}else if(d==="circle"){const{radius:y}=c;a.beginPath(),a.arc(p,m,y,0,2*Math.PI),a.fill()}else if(d==="svg"){const{svg:y,width:b,height:v}=c,C=new Image;C.src=y,La(y)&&(C.crossOrigin=""),await new Promise(((x,k)=>{C.onload=()=>{x("")},C.onerror=()=>{k()}}));const{width:A,height:R}=C;a.drawImage(C,0,0,A,R,p,m,b,v)}}const s=await new Promise((l=>{i==null||i.toBlob((c=>{l(c)}))}));if(s){const l=URL.createObjectURL(s),{imageId:c,imgElement:d}=await r5("__ZOOM_SDK_MASK_CLIP_@__",l,!0);return(n??document.body).appendChild(d),c}}catch(s){s instanceof DOMException&&s.code===DOMException.SECURITY_ERR&&console.error("Image is not from the same origin, add CORS header to solve this issue")}}return null}function aO(e,t){if(e===t||e==null&&t==null)return!0;const r=Array.isArray(e)?[...e]:[e],n=Array.isArray(t)?[...t]:[t];if(r.length!==n.length)return!1;const o=(i,a)=>i.type<a.type?-1:i.type===a.type?0:1;r.sort(o),n.sort(o);for(let i=0;i<r.length;i++)if(!og(r[i],n[i]))return!1;return!0}function yy(e,t,r,n){const{video:{isCurrentUserStartedVideo:o,virtualBackground:{isVBPreloadReady:i,isVBConfigured:a,imageSrc:s},backgroundMode:l},meeting:{isCurrentUserStartVideoBeforeReset:c,isUseWBVideo:d}}=r;return jn((function(p){return p!==void 0?ft([p]):cn(sb,1).pipe(wt((m=>m)))})(i)).then((p=>{if(p){if(n||!a&&e.imageUrl!==uf&&e.imageUrl){if(Of(n)){if(d)return Promise.reject({reason:"When you are in a WebRTC Video meeting, please use VideoPlayer to preview the virtual background.",errorCode:Z.STREAM_MISMATCH_RENDER_ELEMENT});console.warn("The canvas element will be deprecated. Please use the Videoplayer element to preview the virtual background.")}return(async function(m,y,b,v){const{element:C,imageId:A,captureHeight:R,captureWidth:x,divElement:k,id:D}=await n5(m,b,v),{cameraId:F}=m,{video:{videoSsrc:$,activeCamera:U}}=b;return y.startVirtualBackgroundSetting({canvas:C,imageId:A,ssid:$,cameraDeviceId:F??U,width:x,height:R,id:D,hd:m.hd,originalRatio:!0}),k})(e,t,r,n).then((m=>o?Eb(!0):jn(cn(vE,1)).then((y=>{var b;return n||t.stopVirtualBackgroundSetting(),y?(m==null||(b=m.parentNode)===null||b===void 0||b.removeChild(m),!0):Promise.reject({reason:"Cannot access the virtual background image.",errorCode:Z.VIDEO_VB_IMAGE_INACCESSIBLE})}))))}return s===e.imageUrl&&l===ai.VirtualBackground&&!c||(async function(m,y,b){const{imageUrl:v,cropped:C}=m;if(v){const A=await sg(v,C);A&&(b.video.backgroundMode===ai.Mask&&(y.stopMaskSetting(!0),await ig((()=>{y.stopVirtualBackgroundSetting()}),0)),y.updateVirtualBackgroundImage(A),A!==uf&&setTimeout((()=>{Xh(A)}),0))}else y.updateVirtualBackgroundImage(null)})(e,t,r)}return Promise.reject({reason:"Cannot load virtual background model.",errorCode:Z.VIDEO_VB_MISMATCH_STATE})}))}function by(e,t,r,n){const{video:{mask:{isMaskConfigured:o,imageSrc:i,clip:a},backgroundMode:s,isCurrentUserStartedVideo:l},meeting:{isCurrentUserStartVideoBeforeReset:c}}=r;return n||!o&&e.imageUrl?(async function(d,p,m,y){const{element:b,imageId:v,captureHeight:C,captureWidth:A,divElement:R}=await n5(d,m,y),{cameraId:x,clip:k,rootWidth:D=1280,rootHeight:F=720}=d,$=k?await iO(k,D,F,R):null,{video:{videoSsrc:U,activeCamera:G}}=m;return $?(p.startMaskSetting(b,v,$,U,x??G,D,F,A,C),R):Promise.reject({reason:"Clip is empty",errorCode:Z.VIDEO_MASK_IMAGE_INACCESSIBLE})})(e,t,r,n).then((d=>l?Tb(!0):jn(cn(CE,1)).then((p=>{var m;return n||t.stopMaskSetting(),p?(d==null||(m=d.parentNode)===null||m===void 0||m.removeChild(d),!0):Promise.reject({reason:"Cannot set video mask",errorCode:Z.VIDEO_MISMATCH_STATE})})))):s===ai.Mask&&e.imageUrl===i&&aO(e.clip,a)&&!c?Promise.resolve(!0):(async function(d,p,m){const{imageUrl:y,cropped:b,clip:v,rootWidth:C,rootHeight:A}=d,{video:{mask:{imageSrc:R,cropped:x,clip:k},backgroundMode:D}}=m;if(y){if(D===ai.VirtualBackground&&(p.stopVirtualBackgroundSetting(!0),await ig((()=>{p.stopMaskSetting()}),0)),y!==R||b!==x){const F=await sg(y,b);F&&(p.updateMaskBackgroundImage(F),setTimeout((()=>{Xh(F)}),0))}if((!aO(v,k)||!R)&&v&&C&&A){const F=await iO(v,C,A);F&&(p.updateMaskClip(F,C,A),setTimeout((()=>{Xh(F)}),0))}}else p.updateMaskBackgroundImage(null),p.updateMaskClip(null,C,A)})(e,t,r)}const sO="PREVIEW_VIDEO_ENCODE_SUCCESS",DS="PREVIEW_VIDEO_VB_MODEL_READY",lO="PREVIEW_VIDEO_VB_SETTING_ERROR",NS="PREVIEW_VIDEO_VIDEO_CAPTURE_FAILED",uO="PREVIEW_VIDEO_USER_FORBIDDEN_CAPTURE",cO="PREVIEW_VIDEO_CAMERA_IS_TAKEN",dO="PREVIEW_VB_SETTING_SUCCESS";async function pO(e,t,r){const{imageUrl:n,cropped:o,deviceId:i}=r;let a=Rl("__ZOOM_SDK_PREVIEW_VIRTUAL_BACKGROUND_CANVAS_@__"),s=null;Of(t)?t.id?a=t.id:t.id=a:(t.setAttribute("node-id",a),t.setAttribute("media-type","preview"));let[l,c]=[640,360];dr.isSupportSending720P()&&(l=1280,c=720),n&&dr.isSupportVirtualBackground()&&(s=await sg(n,o)),e.startVirtualBackgroundSetting({canvas:t,imageId:s,ssid:0,cameraDeviceId:i??"default",width:l,height:c,originalRatio:!0,id:a,hd:dr.isSupportSending720P()}),s&&s!==uf&&setTimeout((()=>{Xh(s)}),0)}class gi{constructor(){this.previewMediaAgent=Ka.getInstance(),this.state=void 0,this.eventHandler=(t,r)=>{switch(t){case ut.InitSuccessVideo:r===ma.EncodeSuccess&&(gi.isVideoEncoded=!0,ee(sO,!0));break;case ut.VbModelPreloadingOk:case ut.VbModelPreloading_3S:case ut.VbModelPreloading_10S:gi.isVBModelReady=!0,ee(DS,!0);break;case ut.VbSettingParaError:r===G3.VBModelNotMatch&&(gi.isVBModelReady=!1,ee(DS,!1)),ee(lO);break;case ut.UserForbiddedCaptureVideo:ee(uO,r);break;case ut.UserCameraIsTakenByOtherPrograms:ee(cO,{reason:"User camera is taken by other programs.",...r??{}});break;case ut.StartVideoStreamInVbSettingSuccess:ee(dO,!0);break;case ut.WasmMemoryFail:ee(NS,{reason:"Insufficient memory"});break;case ut.WebglContextInvalid:ee(NS,{reason:"WebGL context unavailable"})}}}static setMediaOption(t){gi.mediaOption=t}setup(){if(gi.mediaOption){if(dr.getInstance().inProgress)return Promise.resolve("");if(!Ka.getInstance().inProgress){var t,r;let n;gi.isVideoEncoded=void 0,gi.isVBModelReady=void 0,this.previewMediaAgent.unregisterCallback(this.eventHandler),(t=gi.mediaOption)!==null&&t!==void 0&&t.enforceMultipleVideos&&typeof((r=gi.mediaOption)===null||r===void 0?void 0:r.enforceMultipleVideos)=="object"&&(n=!!gi.mediaOption.enforceMultipleVideos.disableRenderLimits);const{assetsPath:o,enforceMultipleVideos:i,enforceVirtualBackground:a,alternativeNameForVideoPlayer:s}=gi.mediaOption,l={...y6(!!i,a)};this.previewMediaAgent.init(o,l,n),this.previewMediaAgent.registerCallback(this.eventHandler),Ka.initVideoPlayer({mediaSDK:()=>this.previewMediaAgent.instance,tagName:s,failover:"1"})}return Promise.resolve("")}return Promise.reject({type:xe,reason:"Cannot preview video with virtual background before `client.init` method."})}async startPreview(t,r){if(dr.getInstance().inProgress)pO(dr.getInstance(),t,r);else{if(!await(r.imageUrl?jn(gi.isVBModelReady!==void 0?ft([gi.isVBModelReady]):cn(DS,1).pipe(wt((o=>o)))):Promise.resolve(!0)))return Promise.reject({type:xe,reason:"Cannot start video with virtual background"});await jn(gi.isVideoEncoded?ft([!0]):cn(sO,1))&&(await pO(Ka.getInstance(),t,r),await jn(Ji(cn(dO,1).pipe(wt((()=>!0))),$o(...[uO,cO,lO,NS].map((o=>cn(o,1).pipe(Fe((i=>(Ka.getInstance().stopVirtualBackgroundSetting(),yc({type:o.replace("PREVIEW_",""),reason:i})))))))))),this.state={element:t,vb:r})}}async stopPreview(){dr.getInstance().inProgress?dr.getInstance().stopVirtualBackgroundSetting():Ka.getInstance().stopVirtualBackgroundSetting()}async updatePreview(t,r){const n=dr.getInstance().inProgress?dr.getInstance():Ka.getInstance();if(t){const o=await sg(t,r);o&&(n.updateVirtualBackgroundImage(o),o!==uf&&setTimeout((()=>{Xh(o)}),0))}else n.updateVirtualBackgroundImage(null)}}gi.mediaOption=void 0,gi.isVideoEncoded=void 0,gi.isVBModelReady=void 0;const GV={width:{min:1024,ideal:1280,max:1920},height:{min:576,ideal:720,max:1080},aspectRatio:{ideal:1.777777778}};class qV{constructor(t=""){this.isVideoStarted=void 0,this.videoStream=void 0,this.deviceId=void 0,this.localPreview=void 0,this.vbPreviewInProgress=void 0,this.videoParams=void 0,this.isVideoStarted=!1,this.videoStream=null,this.vbPreviewInProgress=!1,this.deviceId=t,this.localPreview=new gi}async start(t,r){if(!t)throw new Error("VideoPlayer DOM element is falsy");if(this.isVideoStarted||this.videoStream)throw new Error("VideoAlreadyStartedError");this.videoParams={element:t,virtualBackground:r};const n=async o=>{if(!o||o.name!=="OverconstrainedError"&&o.name!=="ConstraintNotSatisfiedError")throw o;console.log(`Warning: detected ${o.name} -- trying to fall back to lower aspect ratio`);try{const i=await navigator.mediaDevices.getUserMedia(this.getVideoConstraints(!0));return this.tryPlayVideo(t,i)}catch(i){throw i}};if(iu(t)){if(r!==void 0)throw new Error("Cannot start video with virtual background");try{const o=await navigator.mediaDevices.getUserMedia(this.getVideoConstraints());return this.tryPlayVideo(t,o)}catch(o){return n(o)}}else Of(t)&&r!==void 0&&console.warn("The canvas element will be deprecated. Please use the Videoplayer element to preview the virtual background."),await this.localPreview.setup().then((()=>this.localPreview.startPreview(t,{...r,deviceId:this.deviceId}))).then((()=>{this.vbPreviewInProgress=!0,this.isVideoStarted=!0}))}async stop(){if(this.vbPreviewInProgress)await this.localPreview.stopPreview(),this.vbPreviewInProgress=!1,this.isVideoStarted=!1;else{if(!this.videoStream||!this.isVideoStarted)throw new Error("VideoNotStartedError");this.videoStream.getVideoTracks().forEach((t=>t.stop())),this.videoStream=null,this.isVideoStarted=!1}}async switchCamera(t){t!==this.deviceId&&(this.deviceId=t,(this.videoStream||this.isVideoStarted)&&(await this.stop(),this.videoParams&&await this.start(this.videoParams.element,this.videoParams.virtualBackground)))}async updateVirtualBackground(t,r){this.vbPreviewInProgress&&(await this.localPreview.updatePreview(t,r),this.videoParams.virtualBackground={imageUrl:t,cropped:r})}getVideoConstraints(t=!1){let r=GV;return Xm.includes(this.deviceId)?{audio:!1,video:{facingMode:this.deviceId}}:(t?r=this.deviceId===""||{deviceId:{exact:this.deviceId}}:this.deviceId!==""&&(r.deviceId={exact:this.deviceId}),{audio:!1,video:r})}async tryPlayVideo(t,r){if(!t)throw new Error("Video DOM element is falsy");try{this.videoStream=r,t.muted=!0,t.playsInline=!0,t.srcObject=this.videoStream,await t.play(),this.isVideoStarted=!0}catch(n){throw n}}}const JV="SET_MEETING_INFO",YV="SET_MEETING_JOIN_INFO",QV="SET_WINDOWN_OPEN",XV="SET_APPID_SIGNATURE",ZV="SET_ZTK",eB="SET_ZSK",tB="SET_OBF_TOKEN",rB="SET_OBF_RELATION",nB="SET_TK_MTKGUID",oB="SET_PING_RWC_TIMESTAMP",iB="SET_IN_MEETING_INFO",aB="SET_MEETING_ATTRIBUTE",sB="RESET_MEETING",lB="SET_IS_HOST",uB="SET_IS_COHOST",cB="SET_MEETING_IS_ON_HOLD",dB="SET_IS_MEETING_RESET",pB="SET_AUDIO_VIDEO_BEFORE_ON_HOLD",fB="SET_CURRENT_USER_AUDIO_BEFORE_RESET",hB="SET_IS_CURRENT_USER_MUTED_BEFORE_RESET",mB="SET_IS_CURRENT_USER_START_VIDEO_BEFORE_RESET",gB="SET_MEETING_STATUS",vB="SET_MEETING_REGION",yB="SET_JOIN_MEETING_TIME_STAMP",bB="SET_ACTIVE_APP_INFO",SB="SET_MEETING_IDLE_START_TIME",EB="SET_SESSION_IDLE_TIMEOUT_MINUTES",CB="ADD_DISCARDED_RWC_HOST",wB="SET_SHARE_PRONOUN_TYPE",IB="SET_IS_STAY_AWAKE_DURING_THE_SESSION",AB="SET_MEETING_JOIN_SUCCESS_TIMESTAMP",RB="RESET_FAILOVER_RECORD",TB="SET_FAILOVER_REASON",OB="SET_IS_QUICKLY_LEAVE_MEETING_AFTER_REFRESH",_B="SET_MEETING_INFO_TIMESTAMP",PB="SET_IS_ENABLE_ZMK_FROM_RWG",xB="SET_IS_RLB_TP",DB="SET_IS_RLB_TP_READY",NB=["bLock","bHoldUponEntry","viewOnly","listenOnlyPhone","bAllowRaiseHand","bAllowAttendeeRename","bBroadcast","bAllowPlayChimeForEnterOrExit","bIbDisableShare","bIbDisableChat","encryptKey","bNoHostTimeOut","bAllowShowCount","bHasAST","bHasRMC","gatewayKey","encryptKey","zmk","customerKey","collectionToggleEnable","uid","accountId"],fO={bChime:"bAllowPlayChimeForEnterOrExit",bHasAST:"hasAst",bHasRMC:"hasRmc",topic:e=>({meetingTopic:gs(e)}),gatewayKey:e=>{const[,t,r]=e.split(".");return t&&r?{gatewayUser:{userId:Number(t),sn:r}}:{}},encryptKey:e=>({gcmSessinKey:sa(e)})},Ob=Bn("GET_MEETING_INFO"),hf=Bn("GET_INSTANT_MEETING_INFO");Bn("LOGON_ZOOM_DOMAIN"),Bn("VERIFY_ZOOM_RECAPTCHA"),Bn("LOGON_THIRD_PARTY_DOMAIN");const bA=Bn("PING_RWC_SERVER"),Ia=Bn("MEETING_FAILOVER"),Fd=Bn("LEAVE_MEETING"),MB=Bn("LEAVE_WAITING_ROOM"),mf=Bn("END_MEETING");Bn("REGISTER_WEBINAR");const hO=Bn("TRIGGER_IDLE_CHECK"),o5=Bn("END_OF_ZE_WORLD"),i5=Bn("SET_IS_UITOOLKIT"),{setMeetingInfo:Yi,setMeetingJoinInfo:kB,setWindownOpen:LB,setAppidSignature:a5,setZtk:FB,setZsk:jB,setObfToken:VB,setObfRelation:BB,setTkMtkguid:HB,setPingRwcTimestamp:s5,setInMeetingInfo:js,setMeetingAttribute:Lh,resetMeeting:aC,setIsHost:l5,setIsCohost:u5,setMeetingIsOnHold:bh,setIsMeetingReset:c5,setAudioVideoBeforeOnHold:UB,setCurrentUserAudioBeforeReset:sC,setIsCurrentUserMutedBeforeReset:lC,setMeetingStatus:SA,setMeetingRegion:d5,setIsCurrentUserStartVideoBeforeReset:p5,setJoinMeetingTimeStamp:f5,setActiveAppInfo:$B,setMeetingIdleStartTime:Sh,setSessionIdleTimeoutMinutes:h5,addDiscardedRwcHost:WB,setSharePronounType:zB,setIsStayAwakeDuringTheSession:m5,setMeetingJoinSuccessTimestamp:g5,resetFailoverRecord:v5,setFailoverReason:_b,setIsQuicklyLeaveMeetingAfterRefresh:y5,setMeetingInfoTimestamp:b5,setIsEnableZmkFromRwg:S5,setIsRlbTp:Sy,setIsRlbTpReady:E5}=Do({[JV]:e=>e,[YV]:e=>e,[QV]:e=>e,[XV]:e=>e,[ZV]:e=>e,[eB]:e=>e,[tB]:e=>e,[rB]:e=>e,[nB]:e=>e,[oB]:e=>e,[iB]:e=>e,[aB]:e=>{if(NB.some((t=>e&&e[t]!==void 0))){let t=e;return Object.keys(fO).some((r=>e[r]!==void 0))&&(t=Object.keys(e).reduce(((r,n)=>{const o=fO[n];return typeof o=="function"?Object.assign(r,o(e[n])):typeof o=="string"&&(r[o]=e[n]),r}),{})),t}return{}},[lB]:e=>e&&e.bHost,[uB]:e=>e&&e.bCoHost,[sB]:e=>e,[cB]:e=>e,[dB]:e=>e,[pB]:e=>e,[fB]:e=>e,[hB]:e=>e,[gB]:e=>e,[vB]:e=>e,[mB]:e=>e,[yB]:e=>e,[bB]:e=>e,[SB]:e=>e,[EB]:e=>e,[CB]:e=>e,[wB]:e=>e,[IB]:e=>e,[AB]:e=>e,[RB]:e=>e,[TB]:e=>e,[OB]:e=>e,[_B]:e=>e,[PB]:e=>e,[xB]:e=>e,[DB]:e=>e});class uC{static destroyClient(){if(this.meetingClient){const t=this.meetingClient[$n],r=this.meetingClient.leave().then((()=>jn(ao(500)).then((()=>{t==null||t(o5()),dA()}))));return this.meetingClient=null,r}return Promise.resolve(void 0)}static checkFeatureRequirements(){return(function(){const t=[],r=[],{isAndroidOrIOSBrowser:n,browser:o,browserVersion:i,os:a,osVersion:s,isChrome:l,isFirefox:c,isSafari:d}=Yt;!n&&(l||c||d)&&kg()?t.push("Virtual Background"):r.push("Virtual Background"),(n||l)&&kg()?t.push("Share Chrome Tab Audio"):r.push("Share Chrome Tab Audio"),!n&&kg()?(t.push("Screen Share (send)"),t.push("720p Video (receive)"),t.push("Share 2nd Camera")):(r.push("Screen Share (send)"),r.push("720p Video (receive)"),r.push("Share 2nd Camera")),kg()?(t.push("Audio"),t.push("Video"),t.push("Screen Share (receive)"),t.push("Chat"),t.push("Closed Captioning"),t.push("Live Transcription"),t.push("Live Translation"),t.push("Cloud Recording"),t.push("Call Out (PSTN)"),t.push("Command Channel"),t.push("RTMP Live Streaming"),t.push("Encryption"),t.push("720p Video (send)"),t.push("Render Multiple Videos")):(r.push("Audio"),r.push("Video"),r.push("Screen Share (receive)"),r.push("Chat"),r.push("Closed Captioning"),r.push("Live Transcription"),r.push("Live Translation"),r.push("Cloud Recording"),r.push("Call Out (PSTN)"),r.push("Command Channel"),r.push("RTMP Live Streaming"),r.push("Encryption"),t.push("720p Video (send)"),t.push("Render Multiple Videos"));const p=n?`${a}${s}`:`${o}${i}`;return r.length>0&&console.log("Some features are not supported on your platform, please refer to https://developers.zoom.us/docs/video-sdk/web/browser-support/"),{platform:p,supportFeatures:t,unSupportFeatures:r}})()}static checkSystemRequirements(){return K3()}static getDevices(t){return t?navigator.mediaDevices.enumerateDevices():navigator.mediaDevices.getUserMedia({audio:!0,video:!0}).then((r=>(r.getTracks().forEach((n=>n.stop())),navigator.mediaDevices.enumerateDevices()))).catch((r=>(console.warn(r),navigator.mediaDevices.enumerateDevices())))}static createLocalAudioTrack(t=""){return new Sj(t)}static createLocalVideoTrack(t=""){return new qV(t)}static preloadDependentAssets(t){(async r=>{const n=r||Xc,o=`${n}/${Zc}`,i=[],a=[],s=`${n}/`;if(Ug()){const{workers:p,wasms:m}=Ru("audio","simd",s);i.push(...p),a.push(...m)}else{const{workers:p,wasms:m}=Ru("audio","",s);i.push(...p),a.push(...m)}if(Ug()&&(function(){const{browser:p,browserVersion:m,isAndroidBrowser:y,isSupportSharedArrayBuffer:b}=Yt;return!y&&p.toLowerCase()==="chrome"&&zE(m,"100")>0&&b})()){const{workers:p,wasms:m}=Ru(["video","sharing"],"videoShare",s);i.push(...p),a.push(...m)}else if(Ug()&&WT()){const{workers:p,wasms:m}=Ru(["video","sharing"],"simd,thread",s);i.push(...p),a.push(...m)}else if(WT()){const{workers:p,wasms:m}=Ru(["video","sharing"],"thread",s);i.push(...p),a.push(...m)}else if(Ug()){const{workers:p,wasms:m}=Ru(["video","sharing"],"simd",s);i.push(...p),a.push(...m)}else{const{workers:p,wasms:m}=Ru(["video","sharing"],"",s);i.push(...p),a.push(...m)}const{workers:l,wasms:c}=Ru("common","thread",s);i.push(...l),a.push(...c);const d=[OS(o,"script")];i.forEach((p=>{d.push(OS(p,"fetch"))})),a.forEach((p=>{d.push(OS(p,"fetch"))}));try{document.head.append(...d)}catch{}})(t)}}function qe(e,t,r,n,o){var i={};return Object.keys(n).forEach((function(a){i[a]=n[a]})),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=r.slice().reverse().reduce((function(a,s){return s(e,t,a)||a}),i),o&&i.initializer!==void 0&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),i.initializer===void 0?(Object.defineProperty(e,t,i),null):i}function Ze(e,t,r){const n=r.value;r.value=function(...o){const i=this[no];if(i){const{meeting:{isOnHold:a,isMeetingReset:s,meetingStatus:l}}=i.getState();if(l!==di.Joined)return Promise.reject({type:ty,reason:"closed",errorCode:Z.CLIENT_SESSION_STATE_CLOSED});if(s)return Promise.reject({type:ty,reason:"reconnecting",errorCode:Z.CLIENT_SESSION_STATE_RECONNECTING});if(a)return Promise.reject({type:ty,reason:"on hold",errorCode:Z.CLIENT_SESSION_STATE_ON_HOLD})}return n.apply(this,o)}}function ho(e,t,r){const n=r.value;r.value=function(...o){const i=this[no];if(i){const a=i.getState();if(!_i(a))return Promise.reject({type:Zo,reason:"only host or co-host can do the operation",errorCode:Z.CLIENT_HOST_OR_MANAGER_PERMISSION_REQUIRED})}return n.apply(this,o)}}function mo(e,t,r){const n=r.value;r.value=function(...o){const i=this[no];if(i){const a=i.getState();if(!pA(a))return Promise.reject({type:Zo,reason:"only host can do the operation",errorCode:Z.CLIENT_HOST_PERMISSION_REQUIRED})}return n.apply(this,o)}}function Nt(e){return function(t,r,n){const o=n.value;n.value=function(...i){const a=this[no];return a&&a.getState()[e]===void 0?Promise.reject({type:xe,reason:`Module:${e} is not enabled`}):o.apply(this,i)}}}uC.meetingClient=void 0,uC.VERSION=g0;var KB=(function(e){function t(r,n){var o=e.call(this,(function(i){var a=o.__notifier.subscribe(i);return a&&!a.closed&&i.next(o.value),a}))||this;return o.__notifier=new xs,o.value=n,r.subscribe((function(i){i!==o.value&&(o.value=i,o.__notifier.next(i))})),o}return Za(t,e),t})(Ro),mO=function(e,t){return e===t||typeof t=="function"&&e===t.toString()};function Mt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e.length;return Be(r===1?function(n){return mO(n.type,e[0])}:function(n){for(var o=0;o<r;o++)if(mO(n.type,e[o]))return!0;return!1})}const cC=Bn("CONNECT_ZOOM_SOCKET"),Wg=Bn("CONNECT_XMPP_SOCKET"),Xa=Bn("CLOSE_ZOOM_SOCKET"),dC=Bn("CLOSE_XMPP_SOCKET"),Bd=Bn("RECEIVE_MESSAGE_FROM_ZOOM_SOCKET"),GB=Bn("RECEIVE_SHARING_PAYLOAD_FROM_ZOOM_SOCKET"),C5=Bn("RECEIVE_MESSAGE_FROM_XMPP_SOCKET"),pC=Bn("CONNECT_MAIN_SESSION_SOCKET"),w5=Bn("CLOSE_MAIN_SESSION_SOCKET"),du=Bn("RECEIVE_MESSAGE_FROM_MAIN_SESSION_SOCKET"),{setZoomSocketStatus:Fh,setRwgServersList:I5,setRwgRetryCount:EA,setXmppSocketStatus:Ey,setMainSessionSocketStatus:Cy,setXmppSocketRetryCount:Pb,resetSocket:A5}=Do("SET_ZOOM_SOCKET_STATUS","SET_RWG_SERVERS_LIST","SET_RWG_RETRY_COUNT","SET_XMPP_SOCKET_STATUS","SET_MAIN_SESSION_SOCKET_STATUS","SET_XMPP_SOCKET_RETRY_COUNT","RESET_SOCKET"),fC=Bn("CONNECT_TO_MEDIA_STREAM"),R5=Bn("RECEIVE_PAYLOAD_FROM_MEDIA_SDK"),{setAudioEncodeStatus:hC,setAudioDecodeStatus:mC,setVideoEncodeStatus:gC,setVideoDecodeStatus:vC,setSharingEncodeStatus:yC,setSharingDecodeStatus:wy,setMediaConstraints:CA,setMediaEncryptKey:T5,setIsEnableDecoderInWorklet:O5,setPatchedMediaSdkStatus:Iy,setMediaAssetsPath:_5,setIsMediaAgentInitialized:bC,setIsEnforceAudioDenoiseAdaptive:P5,resetMedia:x5}=Do("SET_AUDIO_ENCODE_STATUS","SET_AUDIO_DECODE_STATUS","SET_VIDEO_ENCODE_STATUS","SET_VIDEO_DECODE_STATUS","SET_SHARING_ENCODE_STATUS","SET_SHARING_DECODE_STATUS","SET_MEDIA_CONSTRAINTS","SET_MEDIA_ENCRYPT_KEY","SET_IS_ENABLE_DECODER_IN_WORKLET","SET_PATCHED_MEDIA_SDK_STATUS","SET_MEDIA_ASSETS_PATH","SET_IS_MEDIA_AGENT_INITIALIZED","SET_IS_ENFORCE_AUDIO_DENOISE_ADAPTIVE","RESET_MEDIA");function qB(e,t,...r){return e(Mn(...r||[]),t,null)}function D5(...e){const t=(...r)=>$o(...e.map((n=>{const o=n(...r);if(!o)throw new TypeError(`combineEpics: one of the provided Epics "${n.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return o.pipe(oa(((i,a)=>(setTimeout((()=>{throw i}),0),a))))})));try{Object.defineProperty(t,"name",{value:`combineEpics(${e.map((r=>r.name||"<anonymous>")).join(", ")})`})}catch{}return t}function Qi(...e){return D5(...e.flatMap((t=>Object.values(t))))}function Ct(e,t){return e.pipe(Mt(`${Bd}`),Be((r=>r.payload.evt===t)))}function ec(e,t){return e.pipe(Mt(`${du}`),Be((r=>r.payload.evt===t)))}function Yp(e,t){return e.pipe(Mt(`${C5}`),Be((r=>r.payload.evt===t)))}function il(e,t){return e.pipe(Mt(`${Bd}`,`${du}`),Be((r=>r.payload.evt===t)))}function Er(e,t){return e.pipe(Mt(`${R5}`),Be((r=>Array.isArray(t)?t.indexOf(r.payload.type)>-1:r.payload.type===t)))}const SC=20225,wA=20234,Vn=7937,Ja=7938,IA=7940,EC=12039,gO=16138,R0=4098,ep=4305,zg=4343,CC=16428,JB="SET_ATTENDEES_LIST",YB="SET_ASSISTANT_LIST",QB="RESET_PARTICIPANTS",XB="SET_IS_ADMIT_ALL_SILENT_USERS",ZB="SET_CLEAR_RAISE_HAND",eH="SET_CLEAR_ATTENDEE_FEEDBACK",tH="ADD_FAILOVER_ATTENDEES",rH="REMOVE_FAILOVER_ATTENDEES",nH="UPDATE_ATTENDEE_DISPLAY_NAME",oH="REMOVE_XMPP_ATTENDEE_USER",iH="UPDATE_XMPP_ATTENDEE_LIST",aH="SET_ATTENDEE_EXTRA_KEY",{setAttendeesList:gf,setAssistantList:yee,setIsAdmitAllSilentUsers:N5,resetParticipants:M5,addFailoverAttendees:wC,removeFailoverAttendees:k5,setClearRaiseHand:L5,setClearAttendeeFeedback:F5,updateAttendeeDisplayName:j5,removeXmppAttendeeUser:V5,updateXmppAttendeeList:B5,setAttendeeExtraKey:om}=Do({[JB]:e=>e,[YB]:e=>e,[iH]:e=>e,[QB]:()=>({}),[XB]:e=>e,[rH]:e=>e,[tH]:e=>e,[ZB]:()=>({}),[eH]:()=>({}),[nH]:e=>e,[oH]:e=>e,[aH]:e=>e}),sH={id:"userId",type:e=>Md(e)?{userType:e,avatarBackgroundType:Math.floor(8*Math.random())+1}:{userType:e},role:e=>({userRole:e,isHost:Nd(e)}),dn2:e=>({displayName:gs(e)}),bShareOn:"sharerOn",bSharePause:"sharerPause",bLocalRecordStatus:e=>({bLocalRecord:e}),bGuest:"isGuest",bCapsRequestLT:"isRequestLT",customerKey:"userIdentity"},Tl=e=>{const t={};return["add","remove","update"].forEach((r=>{const n=r,o=e[n];o!=null&&(t[n]=o.reduce(((i,a)=>{const s=Object.keys(a).reduce(((c,d)=>{const p=sH[d];return typeof p=="function"?Object.assign(c,p(a[d])):typeof p=="string"?Object.assign(c,{[`${p}`]:a[d]}):Object.assign(c,{[`${d}`]:a[d]}),c}),{}),l=i.find((c=>c.userId===s.userId));return l!==void 0?Object.assign(l,s):i.push(s),i}),[]))})),t},lH={name:"displayName",node:e=>({userId:Number(e)}),role:e=>({userRole:Number(e)})},MS=e=>Object.keys(e).reduce(((t,r)=>{const n=lH[r];return typeof n=="function"?Object.assign(t,n(e[r])):typeof n=="string"?Object.assign(t,{[`${n}`]:e[r]}):Object.assign(t,{[`${r}`]:e[r]}),t}),{});let El=(function(e){return e.Add="add",e.List="list",e.Remove="memberremove",e.rename="rename",e.update="UPDATE",e})({});function _s(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(o){return"'"+o+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function wd(e){return!!e&&!!e[Ya]}function Id(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===fH})(e)||Array.isArray(e)||!!e[IO]||!!(!((t=e.constructor)===null||t===void 0)&&t[IO])||AA(e)||RA(e))}function Qp(e){return wd(e)||_s(23,e),e[Ya].t}function im(e,t,r){r===void 0&&(r=!1),vf(e)===0?(r?Object.keys:xA)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function vf(e){var t=e[Ya];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:AA(e)?2:RA(e)?3:0}function IC(e,t){return vf(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function H5(e,t,r){var n=vf(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function AA(e){return dH&&e instanceof Map}function RA(e){return pH&&e instanceof Set}function Kc(e){return e.o||e.t}function TA(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=hH(e);delete t[Ya];for(var r=xA(t),n=0;n<r.length;n++){var o=r[n],i=t[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(t[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function OA(e,t){return t===void 0&&(t=!1),_A(e)||wd(e)||!Id(e)||(vf(e)>1&&(e.set=e.add=e.clear=e.delete=uH),Object.freeze(e),t&&im(e,(function(r,n){return OA(n,!0)}),!0)),e}function uH(){_s(2)}function _A(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Ol(e){var t=mH[e];return t||_s(18,e),t}function vO(){return am}function kS(e,t){t&&(Ol("Patches"),e.u=[],e.s=[],e.v=t)}function xb(e){AC(e),e.p.forEach(cH),e.p=null}function AC(e){e===am&&(am=e.l)}function yO(e){return am={p:[],l:am,h:e,m:!0,_:0}}function cH(e){var t=e[Ya];t.i===0||t.i===1?t.j():t.g=!0}function LS(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||Ol("ES5").S(t,e,n),n?(r[Ya].P&&(xb(t),_s(4)),Id(e)&&(e=Db(t,e),t.l||Nb(t,e)),t.u&&Ol("Patches").M(r[Ya].t,e,t.u,t.s)):e=Db(t,r,[]),xb(t),t.u&&t.v(t.u,t.s),e!==U5?e:void 0}function Db(e,t,r){if(_A(t))return t;var n=t[Ya];if(!n)return im(t,(function(s,l){return bO(e,n,t,s,l,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Nb(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=TA(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),im(i,(function(s,l){return bO(e,n,o,s,l,r,a)})),Nb(e,o,!1),r&&e.u&&Ol("Patches").N(n,r,e.u,e.s)}return n.o}function bO(e,t,r,n,o,i,a){if(wd(o)){var s=Db(e,o,i&&t&&t.i!==3&&!IC(t.R,n)?i.concat(n):void 0);if(H5(r,n,s),!wd(s))return;e.m=!1}else a&&r.add(o);if(Id(o)&&!_A(o)){if(!e.h.D&&e._<1)return;Db(e,o),t&&t.A.l||Nb(e,o)}}function Nb(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&OA(t,r)}function FS(e,t){var r=e[Ya];return(r?Kc(r):e)[t]}function SO(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function RC(e){e.P||(e.P=!0,e.l&&RC(e.l))}function jS(e){e.o||(e.o=TA(e.t))}function TC(e,t,r){var n=AA(t)?Ol("MapSet").F(t,r):RA(t)?Ol("MapSet").T(t,r):e.O?(function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:vO(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},l=s,c=OC;a&&(l=[s],c=Eh);var d=Proxy.revocable(l,c),p=d.revoke,m=d.proxy;return s.k=m,s.j=p,m})(t,r):Ol("ES5").J(t,r);return(r?r.A:vO()).p.push(n),n}function EO(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return TA(e)}var CO,am,PA=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",dH=typeof Map<"u",pH=typeof Set<"u",wO=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",U5=PA?Symbol.for("immer-nothing"):((CO={})["immer-nothing"]=!0,CO),IO=PA?Symbol.for("immer-draftable"):"__$immer_draftable",Ya=PA?Symbol.for("immer-state"):"__$immer_state",fH=""+Object.prototype.constructor,xA=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,hH=Object.getOwnPropertyDescriptors||function(e){var t={};return xA(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},mH={},OC={get:function(e,t){if(t===Ya)return e;var r=Kc(e);if(!IC(r,t))return(function(o,i,a){var s,l=SO(i,a);return l?"value"in l?l.value:(s=l.get)===null||s===void 0?void 0:s.call(o.k):void 0})(e,r,t);var n=r[t];return e.I||!Id(n)?n:n===FS(e.t,t)?(jS(e),e.o[t]=TC(e.A.h,n,e)):n},has:function(e,t){return t in Kc(e)},ownKeys:function(e){return Reflect.ownKeys(Kc(e))},set:function(e,t,r){var n=SO(Kc(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=FS(Kc(e),t),i=o==null?void 0:o[Ya];if(i&&i.t===r)return e.o[t]=r,e.R[t]=!1,!0;if((function(a,s){return a===s?a!==0||1/a==1/s:a!=a&&s!=s})(r,o)&&(r!==void 0||IC(e.t,t)))return!0;jS(e),RC(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return FS(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,jS(e),RC(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Kc(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){_s(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){_s(12)}},Eh={};im(OC,(function(e,t){Eh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Eh.deleteProperty=function(e,t){return Eh.set.call(this,e,t,void 0)},Eh.set=function(e,t,r){return OC.set.call(this,e[0],t,r,e[0])};var gH=(function(){function e(r){var n=this;this.O=wO,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var l=n;return function(v){var C=this;v===void 0&&(v=s);for(var A=arguments.length,R=Array(A>1?A-1:0),x=1;x<A;x++)R[x-1]=arguments[x];return l.produce(v,(function(k){var D;return(D=i).call.apply(D,[C,k].concat(R))}))}}var c;if(typeof i!="function"&&_s(6),a!==void 0&&typeof a!="function"&&_s(7),Id(o)){var d=yO(n),p=TC(n,o,void 0),m=!0;try{c=i(p),m=!1}finally{m?xb(d):AC(d)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(v){return kS(d,a),LS(v,d)}),(function(v){throw xb(d),v})):(kS(d,a),LS(c,d))}if(!o||typeof o!="object"){if((c=i(o))===void 0&&(c=o),c===U5&&(c=void 0),n.D&&OA(c,!0),a){var y=[],b=[];Ol("Patches").M(o,c,y,b),a(y,b)}return c}_s(21,o)},this.produceWithPatches=function(o,i){if(typeof o=="function")return function(c){for(var d=arguments.length,p=Array(d>1?d-1:0),m=1;m<d;m++)p[m-1]=arguments[m];return n.produceWithPatches(c,(function(y){return o.apply(void 0,[y].concat(p))}))};var a,s,l=n.produce(o,i,(function(c,d){a=c,s=d}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,a,s]})):[l,a,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Id(r)||_s(8),wd(r)&&(r=(function(i){return wd(i)||_s(22,i),(function a(s){if(!Id(s))return s;var l,c=s[Ya],d=vf(s);if(c){if(!c.P&&(c.i<4||!Ol("ES5").K(c)))return c.t;c.I=!0,l=EO(s,d),c.I=!1}else l=EO(s,d);return im(l,(function(p,m){c&&(function(y,b){return vf(y)===2?y.get(b):y[b]})(c.t,p)===m||H5(l,p,a(m))})),d===3?new Set(l):l})(i)})(r));var n=yO(this),o=TC(this,r,void 0);return o[Ya].C=!0,AC(n),o},t.finishDraft=function(r,n){var o=(r&&r[Ya]).A;return kS(o,n),LS(void 0,o)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!wO&&_s(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=Ol("Patches").$;return wd(r)?a(r,n):this.produce(r,(function(s){return a(s,n)}))},e})(),ls=new gH,ie=ls.produce;ls.produceWithPatches.bind(ls),ls.setAutoFreeze.bind(ls),ls.setUseProxies.bind(ls),ls.applyPatches.bind(ls),ls.createDraft.bind(ls),ls.finishDraft.bind(ls);const AO={attendeesList:[],assistantList:[],xmppAttendeeList:[],allowTalkAttendeesList:[],failoverAttendeesList:[],isAdmitAllSilentUsers:!1},vH=Mi({[`${gf}`]:ie(((e,{payload:t})=>{t.add!==void 0&&t.add.length>0&&t.add.forEach((r=>{if(r.userType===UE.Assitant){const n=e.assistantList.find((o=>o.userId===r.userId));n!==void 0?Object.assign(n,r):e.assistantList.push(r)}else if(fb(r.userRole)){const n=e.allowTalkAttendeesList.find((o=>o.userId===r.userId));n!==void 0?Object.assign(n,r):e.allowTalkAttendeesList.push(r)}else{const n=e.attendeesList.find((o=>o.userId===r.userId));n!==void 0?Object.assign(n,r):e.attendeesList.push(r)}})),t.update!==void 0&&t.update.length>0&&t.update.forEach((r=>{const n=e.attendeesList.find((o=>o.userId===r.userId));if(n!==void 0)Object.assign(n,r);else{const o=e.allowTalkAttendeesList.find((i=>i.userId===r.userId));if(o!==void 0)Object.assign(o,r);else{const i=e.assistantList.find((a=>a.userId===r.userId));i!==void 0&&Object.assign(i,r)}}})),t.remove!==void 0&&t.remove.length>0&&t.remove.forEach((r=>{const n=e.attendeesList.findIndex((o=>o.userId===r.userId));if(n!==-1)e.attendeesList.splice(n,1);else{const o=e.allowTalkAttendeesList.findIndex((i=>i.userId===r.userId));if(o!==-1)e.allowTalkAttendeesList.splice(o,1);else{const i=e.assistantList.findIndex((a=>a.userId===r.userId));i!==-1&&e.assistantList.splice(i,1)}}}))})),[`${B5}`]:ie(((e,{payload:t})=>{const{xmppAttendeeList:r}=e,n=r.map((o=>o.jid));t.forEach((o=>{const{jid:i}=o,a=n.indexOf(i);a!==-1?Object.assign(r[a],o):r.push(o)}))})),[`${N5}`]:ie(((e,{payload:t})=>{e.isAdmitAllSilentUsers=t})),[`${L5}`]:ie((e=>{e.attendeesList.forEach((t=>{t.bRaiseHand&&(t.bRaiseHand=!1)}))})),[`${F5}`]:ie((e=>{e.attendeesList.forEach((t=>{t.feedback>0&&(t.feedback=0)}))})),[`${wC}`]:ie(((e,{payload:t})=>{e.failoverAttendeesList.push(t)})),[`${k5}`]:ie(((e,{payload:t})=>{t.forEach((r=>{const n=e.failoverAttendeesList.findIndex((o=>o.zoomID===r.zoomID));n!==-1&&e.failoverAttendeesList.splice(n,1)}))})),[`${j5}`]:ie(((e,{payload:t})=>{const{jid:r,name:n}=t,o=e.xmppAttendeeList.find((i=>i.jid===r));o&&(o.displayName=n)})),[`${V5}`]:ie(((e,{payload:t})=>{const{jid:r}=t,n=e.xmppAttendeeList.findIndex((o=>o.jid===r));r!==-1&&e.xmppAttendeeList.splice(n,1)})),[`${om}`]:ie(((e,{payload:t})=>{const{userId:r,key:n,value:o}=t,i=e.attendeesList.find((a=>a.userId===r));i&&(i[`${n}`]=o)})),[`${M5}`]:()=>AO},AO),yH={epics0:(e,t)=>Ct(e,Vn).pipe(wt((r=>Tl(r.payload.body))),Xt(t),Fe((([r,n])=>{let o=[gf(r)];const{meeting:{userId:i,isWebinar:a,isOnHold:s},participants:{attendeesList:l,failoverAttendeesList:c,allowTalkAttendeesList:d}}=n,p=d.map((y=>y.userId));if(r.add&&r.add.length>0){const y=r.add.filter((v=>v.userId===i));y.length>0&&y.forEach((v=>{v.bHold!==void 0&&o.push(bh(v.bHold)),l.some((C=>C.userId===v.userId))?ee(Ki,v):ee(rg,v)}));const b=r.add.filter((v=>v.userId!==i));if(b.length>0){const v=b.filter((A=>!fb(A.userRole))).map((A=>{const R={...A};if(Md(A.userType)){var x;const D=(x=n.audio)===null||x===void 0?void 0:x.dialout.find((F=>F.phoneNodeId===A.userId));D&&Object.assign(R,{phoneNumber:D.phoneNumber})}const k=c.find((D=>D.zoomID===A.zoomID));return k&&Object.assign(R,{source:k.isOnHold?"on hold":"failover"}),R})),C=v.filter((A=>!!A.source)).map((A=>({zoomID:A.zoomID})));if(o.push(k5(C)),ee(S0,v),a){const A=b.filter((R=>fb(R.userRole)));A.length>0&&ee(qu,A.map((R=>({userId:R.userId,isAllowToTalk:!0}))))}}}if(r.update&&r.update.length>0){const y=r.update.filter((v=>v.userId===i));y.length>0&&y.forEach((v=>{ee(Ki,v),v.bHold!==void 0&&o.push(bh(v.bHold))}));const b=r.update.filter((v=>!(v.userId===i||p.includes(v.userId))));if(b.length>0&&ee(Ns,b),a){const v=r.update.filter((C=>C.userId!==i&&p.includes(C.userId)));v.length>0&&ee(qu,v)}}if(r.remove&&r.remove.length>0){const y=r.remove.map((b=>{const v=l.find((C=>C.userId===b.userId));return v?b.action===2&&b.nUserStatus===1?v.bHold?(o.push(wC({zoomID:v.zoomID,isOnHold:!0})),{...b,...v,reason:"on hold"}):(o.push(wC({zoomID:v.zoomID,isOnHold:!1})),{...b,...v,reason:"failover"}):{...b,...v}:null})).filter((b=>!!b));if(ee(JI,y),a){const b=r.remove.filter((v=>p.includes(v.userId)));b.length>0&&ee(qu,b.map((v=>({userId:v.userId,isAllowToTalk:!1}))))}}const m=o.filter((y=>y.type===`${bh}`));if(m.length>0){const y=m[m.length-1];o=o.filter((b=>b.type!==`${bh}`)),y.payload!==s&&(o.push(y),ee(E4,!s))}return ft(o)}))),epics1:(e,t)=>Yp(e,24595).pipe(Fe((r=>{const{payload:{body:{action:n,data:o}}}=r,{meeting:{jid:i},participants:{xmppAttendeeList:a}}=t.value,s=[];if(n===El.rename){o.forEach((c=>{s.push(j5(c))}));const l=o.map((c=>MS(c)));ee(qu,l)}if(n===El.Remove){o.forEach((c=>{s.push(V5(c))}));const l=o.map((c=>({...MS(c),removed:!0})));ee(b4,l)}if([El.Add,El.List,El.update].includes(n)){const l=o.map((c=>{const d=MS(c);return Object.keys(d).reduce(((p,m)=>(d[m]!==""&&Object.assign(p,{[m]:d[m]}),p)),{})}));if(ee(qu,l),s.push(B5(l)),n===El.update){const c=o.find((d=>d.jid===i));if(c&&c.bRaiseHand!==void 0){const d=a.find((p=>p.jid===i));(d==null?void 0:d.bRaiseHand)!==c.bRaiseHand&&ee("MEETING_WEBINAR_ATTENDEE_RAISE_HAND",{bRaiseHand:c.bRaiseHand})}}}return ft(s)}))),epics2:e=>Ct(e,7951).pipe(_t((t=>{t.payload.body.bStarted===!1&&ee("ADMIT_ALL_SILENT_USERS_END",t.payload.body.bStarted)})),wt((t=>N5(t.payload.body.bStarted)))),epics3:e=>Ct(e,7946).pipe(Be((t=>{var r;return["bRaiseHand","feedback"].includes((r=t.payload.body)===null||r===void 0?void 0:r.key)&&t.payload.body.value===0})),wt((t=>(ee(Ns,{}),t.payload.body.key==="bRaiseHand"?L5():F5()))))},bH=Qi(yH);function RO(e){return function(t,r,n){const o=n.value;n.value=function(...i){const a=this[no];if(a){const{meeting:{meetingOptions:s}}=a.getState();if(s[e]===!0)return Promise.reject({type:"OPERATION_LOCKED",reason:`${e} is locked`})}return o.apply(this,i)}}}let tc=(function(e){return e.Self="Self",e.Other="Other",e.Client="Client",e.Phone="Phone",e.Attendee="Attendee",e})({});function VS(e){return function(t,r,n){const o=n.value;n.value=function(i,...a){const s=this[no];if(s){const c=s.getState(),d=Array.isArray(e)?e:[e];let p=dn(c).find((m=>m.userId===i));if(d.findIndex((m=>m===tc.Attendee))>-1&&(p=ng(c).find((m=>m.userId===i))),!p)return Promise.reject({type:mr,reason:"no matching user"});{const{meeting:{userId:m}}=s.getState();for(let y=0;y<d.length;y++){const b=d[y];if(b===tc.Other&&i===m)return Promise.reject({type:xe,reason:"operation is not applicable to self"});if(b===tc.Self&&i!==m)return Promise.reject({type:xe,reason:"operation is only applicable to self "});if(b===tc.Client&&Md(p.userType)||b===tc.Phone&&!Md(p.userType))return Promise.reject({types:xe,reason:"improper target client"})}}}const l=[i,...a];return o.apply(this,l)}}}var BS,SH=new Uint8Array(16);function EH(){if(!BS&&!(BS=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return BS(SH)}for(var CH=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,ta=[],HS=0;HS<256;++HS)ta.push((HS+256).toString(16).substr(1));function sm(e,t,r){var n=(e=e||{}).random||(e.rng||EH)();return n[6]=15&n[6]|64,n[8]=63&n[8]|128,(function(o){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=(ta[o[i+0]]+ta[o[i+1]]+ta[o[i+2]]+ta[o[i+3]]+"-"+ta[o[i+4]]+ta[o[i+5]]+"-"+ta[o[i+6]]+ta[o[i+7]]+"-"+ta[o[i+8]]+ta[o[i+9]]+"-"+ta[o[i+10]]+ta[o[i+11]]+ta[o[i+12]]+ta[o[i+13]]+ta[o[i+14]]+ta[o[i+15]]).toLowerCase();if(!(function(s){return typeof s=="string"&&CH.test(s)})(a))throw TypeError("Stringified UUID is invalid");return a})(n)}let fn=(function(e){return e.LocalStorage="LocalStorage",e.SessionStorage="SessionStorage",e.Memory="Memory",e})({});const TO=Po("{}");class $r{constructor(t){this.sessionStorageKey=void 0,this.localStorageKey=void 0,this.sessionCache=void 0,this.localCache=void 0,this.memoryCache=void 0,this.sessionStorageKey=Po(`zoom-storage-${t}`),this.localStorageKey=Po("zoom-local-storage"),this.memoryCache={};try{this.sessionCache=JSON.parse(gs(sessionStorage.getItem(this.sessionStorageKey)||TO)),this.localCache=JSON.parse(gs(localStorage.getItem(this.localStorageKey)||TO))}catch(r){console.error(r),this.sessionCache={},this.localCache={}}}static init(t){this.instance=new $r(t)}static get(t){if(this.instance===void 0)throw new Error("read before initial");return this.instance.getValue(t).value}static set(t,r,n){if(this.instance===void 0)throw new Error("set before initial");return this.instance.setValue(t,r,n)}static remove(t){if(this.instance===void 0)throw new Error("remove before initial");return this.instance.removeValue(t)}static clearSession(){if(this.instance!==void 0)return this.instance.memoryCache={},this.instance.sessionCache={},this.instance.localCache={},sessionStorage.removeItem(this.instance.sessionStorageKey);console.warn("clear before initial")}getValue(t){return this.sessionCache.hasOwnProperty(t)?{value:this.sessionCache[t],type:fn.SessionStorage}:this.localCache.hasOwnProperty(t)?{value:this.localCache[t],type:fn.LocalStorage}:{value:this.memoryCache[t],type:fn.Memory}}setValue(t,r,n){if(!t)throw new Error("key is null");switch(n){case fn.SessionStorage:{const o=this.sessionCache[t];let i=r;return typeof r=="function"&&(i=r(o)),o!==i&&(this.sessionCache[t]=i,this.flushValue(fn.SessionStorage)),i}case fn.LocalStorage:{const o=this.localCache[t];let i=r;return typeof r=="function"&&(i=r(o)),o!==i&&(this.localCache[t]=i,this.flushValue(fn.LocalStorage)),i}case fn.Memory:{const o=this.memoryCache[t];let i=r;return typeof r=="function"&&(i=r(o)),this.memoryCache[t]=i,i}default:return null}}removeValue(t){const{type:r}=this.getValue(t);switch(r){case fn.SessionStorage:delete this.sessionCache[t],this.flushValue(fn.SessionStorage);break;case fn.LocalStorage:delete this.localCache[t],this.flushValue(fn.LocalStorage);break;case fn.Memory:delete this.memoryCache[t]}}flushValue(t){t===fn.SessionStorage?sessionStorage.setItem(this.sessionStorageKey,Po(JSON.stringify(this.sessionCache))):t===fn.LocalStorage&&localStorage.setItem(this.localStorageKey,Po(JSON.stringify(this.localCache)))}}$r.instance=void 0;let Cn=(function(e){return e.WebclientOpt="WEB_CLIENT_OPT",e.WebclientWebinarToken="WEB_CLIENT_WEBINAR_TOKEN",e.WebclientMeetingToken="WEB_CLIENT_MEETING_TOKEN",e.WebclientZtk="WEB_CLIENT_ZTK",e.WebclientZsk="WEB_CLIENT_ZSK",e.WebclientTk="WEB_CLIENT_TK",e.WebclientIVState="WEB_CLIENT_IV_STATE",e.WebclientIsOnHold="WEB_CLIENT_IS_ON_HOLD",e.WebclientParticipantId="WEB_CLIENT_PARTICIPANT_ID",e.WebclientZoomId="WEB_CLIENT_ZOOM_ID",e.WebclientUserName="WEB_CLIENT_USER_NAME",e.WebclientUserEmail="WEB_CLIENT_USER_EMAIL",e.WebclientBreakoutRoomAttendeeStatus="WEB_CLIENT_BO_ATTENDEE_STATUS",e.WebclientBreakoutRoomCommand="WEB_CLIENT_BO_COMMAND",e.WebclientAudioEncryptKey="WEB_CLIENT_AUDIO_ENCRYPT_KEY",e.WebclientVideoEncryptKey="WEB_CLIENT_VIDEO_ENCRYPT_KEY",e.WebclientSharingEncryptKey="WEB_CLIENT_SHARING_ENCRYPT_KEY",e.WebclientFailoverCount="WEB_CLIENT_FAILOVER_COUNT",e.WebclientRecordingToken="WEB_CLIENT_RECORDING_TOKEN",e.VideoSDKWebRTCAudioFallbackWasm="VIDEO_SDK_WEB_RTC_AUDIO_FALLBACK_WASM",e.VideoSDKWebRTCVideoFallbackWasm="VIDEO_SDK_WEB_RTC_VIDEO_FALLBACK_WASM",e.VIDEO_SDK_BROADCAST_STREAMING_CHANNEL_ID="VIDEO_SDK_BROADCAST_STREAMING_CHANNEL_ID",e.WebclientObfToken="WEB_CLIENT_OBF_TOKEN",e})({}),_C=(function(e){return e.WebclientDeviceId="WEBCLIENT_DEVICE_ID",e.VSDKLogTrackingId="ZM_VSDK_LOG_TRACKING_IDS",e})({}),$5=(function(e){return e.DisableAutoReportLogs="DISABLE_AUTO_REPORT_LOGS",e})({});var rl,Wu;(function(e){e[e.info=0]="info",e[e.debug=1]="debug",e[e.log=2]="log",e[e.warn=3]="warn",e[e.error=4]="error"})(rl||(rl={})),(function(e){e.afterInit="afterInit",e.beforeLog="beforeLog",e.afterLog="afterLog",e.beforeReport="beforeReport",e.afterReport="afterReport"})(Wu||(Wu={}));class DA{constructor(){}}var OO,_O,PO={exports:{}},xO={exports:{}},wH=(function(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){var o=!1;try{o=this instanceof n}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach((function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})})),r})(Object.freeze({__proto__:null,default:{}}));function W5(){return OO||(OO=1,xO.exports=(e=e||(function(t){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&dd!==void 0&&dd.crypto&&(r=dd.crypto),!r)try{r=wH}catch{}var n=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||(function(){function v(){}return function(C){var A;return v.prototype=C,A=new v,v.prototype=null,A}})(),i={},a=i.lib={},s=a.Base={extend:function(v){var C=o(this);return v&&C.mixIn(v),C.hasOwnProperty("init")&&this.init!==C.init||(C.init=function(){C.$super.init.apply(this,arguments)}),C.init.prototype=C,C.$super=this,C},create:function(){var v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var C in v)v.hasOwnProperty(C)&&(this[C]=v[C]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}},l=a.WordArray=s.extend({init:function(v,C){v=this.words=v||[],this.sigBytes=C??4*v.length},toString:function(v){return(v||d).stringify(this)},concat:function(v){var C=this.words,A=v.words,R=this.sigBytes,x=v.sigBytes;if(this.clamp(),R%4)for(var k=0;k<x;k++){var D=A[k>>>2]>>>24-k%4*8&255;C[R+k>>>2]|=D<<24-(R+k)%4*8}else for(var F=0;F<x;F+=4)C[R+F>>>2]=A[F>>>2];return this.sigBytes+=x,this},clamp:function(){var v=this.words,C=this.sigBytes;v[C>>>2]&=4294967295<<32-C%4*8,v.length=t.ceil(C/4)},clone:function(){var v=s.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var C=[],A=0;A<v;A+=4)C.push(n());return new l.init(C,v)}}),c=i.enc={},d=c.Hex={stringify:function(v){for(var C=v.words,A=v.sigBytes,R=[],x=0;x<A;x++){var k=C[x>>>2]>>>24-x%4*8&255;R.push((k>>>4).toString(16)),R.push((15&k).toString(16))}return R.join("")},parse:function(v){for(var C=v.length,A=[],R=0;R<C;R+=2)A[R>>>3]|=parseInt(v.substr(R,2),16)<<24-R%8*4;return new l.init(A,C/2)}},p=c.Latin1={stringify:function(v){for(var C=v.words,A=v.sigBytes,R=[],x=0;x<A;x++){var k=C[x>>>2]>>>24-x%4*8&255;R.push(String.fromCharCode(k))}return R.join("")},parse:function(v){for(var C=v.length,A=[],R=0;R<C;R++)A[R>>>2]|=(255&v.charCodeAt(R))<<24-R%4*8;return new l.init(A,C)}},m=c.Utf8={stringify:function(v){try{return decodeURIComponent(escape(p.stringify(v)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(v){return p.parse(unescape(encodeURIComponent(v)))}},y=a.BufferedBlockAlgorithm=s.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=m.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var C,A=this._data,R=A.words,x=A.sigBytes,k=this.blockSize,D=x/(4*k),F=(D=v?t.ceil(D):t.max((0|D)-this._minBufferSize,0))*k,$=t.min(4*F,x);if(F){for(var U=0;U<F;U+=k)this._doProcessBlock(R,U);C=R.splice(0,F),A.sigBytes-=$}return new l.init(C,$)},clone:function(){var v=s.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0});a.Hasher=y.extend({cfg:s.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){return v&&this._append(v),this._doFinalize()},blockSize:16,_createHelper:function(v){return function(C,A){return new v.init(A).finalize(C)}},_createHmacHelper:function(v){return function(C,A){return new b.HMAC.init(v,A).finalize(C)}}});var b=i.algo={};return i})(Math),e)),xO.exports;var e}var DO,US,IH=_O?PO.exports:(_O=1,PO.exports=W5().enc.Utf8),NO={exports:{}},AH=(DO||(DO=1,NO.exports=(US=W5(),(function(){var e=US,t=e.lib.WordArray;function r(n,o,i){for(var a=[],s=0,l=0;l<o;l++)if(l%4){var c=i[n.charCodeAt(l-1)]<<l%4*2|i[n.charCodeAt(l)]>>>6-l%4*2;a[s>>>2]|=c<<24-s%4*8,s++}return t.create(a,s)}e.enc.Base64={stringify:function(n){var o=n.words,i=n.sigBytes,a=this._map;n.clamp();for(var s=[],l=0;l<i;l+=3)for(var c=(o[l>>>2]>>>24-l%4*8&255)<<16|(o[l+1>>>2]>>>24-(l+1)%4*8&255)<<8|o[l+2>>>2]>>>24-(l+2)%4*8&255,d=0;d<4&&l+.75*d<i;d++)s.push(a.charAt(c>>>6*(3-d)&63));var p=a.charAt(64);if(p)for(;s.length%4;)s.push(p);return s.join("")},parse:function(n){var o=n.length,i=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var s=0;s<i.length;s++)a[i.charCodeAt(s)]=s}var l=i.charAt(64);if(l){var c=n.indexOf(l);c!==-1&&(o=c)}return r(n,o,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}})(),US.enc.Base64)),NO.exports);const NA=e=>{try{return JSON.stringify(e)}catch{return"json stringify failed"}},tp=(e,t=2)=>{let r=`${e}`;for(;r.length<t;)r=`0${r}`;return r},z5=e=>{const t=new Date(e);return`${t.getUTCFullYear()}-${tp(t.getUTCMonth()+1)}-${tp(t.getUTCDate())} ${tp(t.getUTCHours())}:${tp(t.getUTCMinutes())}:${tp(t.getUTCSeconds())}.${tp(t.getUTCMilliseconds(),3)}`},K5={version:"000001",flag:"0"},MO=(e,t)=>e.reduce(((r,n)=>{const o=((s,l)=>{const{message:c,logLevel:d,tags:p,timestamp:m,id:y}=s,b=(function(C,A){var R={};for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&A.indexOf(x)<0&&(R[x]=C[x]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function"){var k=0;for(x=Object.getOwnPropertySymbols(C);k<x.length;k++)A.indexOf(x[k])<0&&Object.prototype.propertyIsEnumerable.call(C,x[k])&&(R[x[k]]=C[x[k]])}return R})(s,["message","logLevel","tags","timestamp","id"]),v=Object.assign(Object.assign({time:z5(m),logLevel:rl[d],message:c,tags:p},l??{}),b);return NA(v)})(n,t),i=(s=>{let l=s.length;for(let c=s.length-1;c>=0;c--){const d=s.charCodeAt(c);d>127&&d<=2047?l++:d>2047&&d<=65535&&(l+=2),d>=56320&&d<=57343&&c--}return l})(o),a=r[r.length-1];return a.currentSize+i>30720?r.push({messages:[o],ids:[n.id],currentSize:i}):(a.messages.push(o),a.ids.push(n.id),a.currentSize+=i),r}),[{messages:[],ids:[],currentSize:0}]).filter((r=>r.currentSize>0)).map((r=>({messages:r.messages.join(`
45
45
  `),ids:r.ids,meta:K5})));function Ad(e){return new Promise(((t,r)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>r(e.error)}))}function G5(e,t){let r;return(n,o)=>(()=>{if(r)return r;const i=indexedDB.open(e);return i.onupgradeneeded=()=>i.result.createObjectStore(t),r=Ad(i),r.then((a=>{a.onclose=()=>r=void 0}),(()=>{})),r})().then((i=>o(i.transaction(t,n).objectStore(t))))}let $S;function Mb(){return $S||($S=G5("keyval-store","keyval")),$S}function kO(e,t=Mb()){return t("readwrite",(r=>(e.forEach((n=>r.delete(n))),Ad(r.transaction))))}function RH(e=Mb()){return e("readonly",(t=>{if(t.getAll&&t.getAllKeys)return Promise.all([Ad(t.getAllKeys()),Ad(t.getAll())]).then((([n,o])=>n.map(((i,a)=>[i,o[a]]))));const r=[];return e("readonly",(n=>(function(o){return o.openCursor().onsuccess=function(){this.result&&((i=>{r.push([i.key,i.value])})(this.result),this.result.continue())},Ad(o.transaction)})(n).then((()=>r))))}))}var LO=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(c){try{l(n.next(c))}catch(d){i(d)}}function s(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){var d;c.done?o(c.value):(d=c.value,d instanceof r?d:new r((function(p){p(d)}))).then(a,s)}l((n=n.apply(e,[])).next())}))};const wp=new class{constructor(){this.queue=[],this.processing=!1}enqueue(e){return new Promise(((t,r)=>{this.queue.push((()=>LO(this,void 0,void 0,(function*(){try{const n=yield e();t(n)}catch(n){r(n)}})))),this.processing||this.processNext()}))}processNext(){return LO(this,void 0,void 0,(function*(){if(this.queue.length===0)return void(this.processing=!1);this.processing=!0;const e=this.queue.shift();try{yield e()}catch(t){console.error("Task error:",t)}this.processNext()}))}};var Tu=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(c){try{l(n.next(c))}catch(d){i(d)}}function s(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){var d;c.done?o(c.value):(d=c.value,d instanceof r?d:new r((function(p){p(d)}))).then(a,s)}l((n=n.apply(e,[])).next())}))};class TH{constructor(t){this.set=(r,n)=>{try{return!this.disableDB&&wp.enqueue((()=>Tu(this,void 0,void 0,(function*(){return(function(o,i,a=Mb()){return a("readwrite",(s=>(s.put(i,o),Ad(s.transaction))))})(r,n,this.store)}))))}catch{this.disableDB=!0}},this.makeNextId=()=>(this.nextId+=1,this.nextId),this.addLog=r=>{this.addToMemory(r);const{id:n}=r;return this.set(`${n}`,r)},this.addToMemory=(r,n)=>{this.memoryStoreData=n?[].concat(r):this.memoryStoreData.concat(r)},this.syncFromIDB=()=>Tu(this,void 0,void 0,(function*(){var r;const n=yield wp.enqueue((()=>Tu(this,void 0,void 0,(function*(){return RH(this.store)})))),o=n.filter((([a,s])=>!(s!=null&&s.id)&&(s==null?void 0:s.id)!==0||!Number.isInteger(Number(a)))).map((a=>a[0])),i=n.filter((([a])=>!o.includes(a))).sort(((a,s)=>{var l,c;return((l=a[1])===null||l===void 0?void 0:l.id)-((c=s[1])===null||c===void 0?void 0:c.id)})).map((([,a])=>a));return this.addToMemory(i,!0),o.length>0&&(yield this.deleteLogs(o)),this.nextId=this.memoryStoreData.length===0?0:(r=this.memoryStoreData[this.memoryStoreData.length-1])===null||r===void 0?void 0:r.id,this.memoryStoreData})),this.getStore=()=>this.memoryStoreData,this.filterStore=r=>{let n=[];const o=[r].flatMap((i=>i));return n=!r||o.length===0||o.some((i=>!i))?this.memoryStoreData:this.memoryStoreData.filter((i=>o.some((a=>typeof a=="string"?i.tags.some((s=>a===s)):typeof a=="function"&&a(i))))),n},this.deleteLogs=r=>Tu(this,void 0,void 0,(function*(){return this.deleteMemoryLogs(r),wp.enqueue((()=>Tu(this,void 0,void 0,(function*(){return kO(r.map((n=>`${n}`)),this.store)}))))})),this.deleteLogsAfterReport=r=>Tu(this,void 0,void 0,(function*(){return this.deleteMemoryLogs(r),kO(r.map((n=>`${n}`)),this.store)})),this.deleteMemoryLogs=r=>{this.memoryStoreData=this.memoryStoreData.filter((n=>{var o;return!(!((o=r.includes)===null||o===void 0)&&o.call(r,n.id))}))},this.reset=()=>{this.memoryStoreData=[],wp.enqueue((()=>Tu(this,void 0,void 0,(function*(){return(function(r=Mb()){return r("readwrite",(n=>(n.clear(),Ad(n.transaction))))})(this.store)}))))},this.nextId=0,this.memoryStoreData=[],this.disableDB=!1,wp.enqueue((()=>Tu(this,void 0,void 0,(function*(){return G5(t,t+"-store")})))).then((r=>{this.store=r}))}}function rp(e,t,r){const n=e.plugins;return Array.isArray(n)?n.map((o=>o[t])).reduce(((o,i)=>{const a=i==null?void 0:i(e,o);return a??o}),r):r}const OH=e=>new Promise((t=>{if(e.isSendByBeacon)navigator.sendBeacon?(navigator.sendBeacon(e.url,e.data),t({report:e.reportItem})):t({error:"sendBeacon is not supported",report:e.reportItem});else{const r=new XMLHttpRequest;r.open(e.type||"GET",e.url,!0),r.withCredentials=e.withCredentials,r.onerror=n=>{t({error:n,report:e.reportItem})},r.onreadystatechange=function(){if(r.readyState===4){const n=r.status;t(n>=200&&n<300?{report:e.reportItem}:{error:`Request failed, status: ${n}, responseText: ${r.responseText}`,report:e.reportItem})}},Object.entries(e.headers).forEach((([n,o])=>{o&&n&&r.setRequestHeader(n,o)})),r.send(e.data)}}));var FO,jO,_H=(function(){if(jO)return FO;jO=1;var e="Expected a function",t=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,n=/^0b[01]+$/i,o=/^0o[0-7]+$/i,i=parseInt,a=typeof dd=="object"&&dd&&dd.Object===Object&&dd,s=typeof self=="object"&&self&&self.Object===Object&&self,l=a||s||Function("return this")(),c=Object.prototype.toString,d=Math.max,p=Math.min,m=function(){return l.Date.now()};function y(v){var C=typeof v;return!!v&&(C=="object"||C=="function")}function b(v){if(typeof v=="number")return v;if((function(R){return typeof R=="symbol"||(function(x){return!!x&&typeof x=="object"})(R)&&c.call(R)=="[object Symbol]"})(v))return NaN;if(y(v)){var C=typeof v.valueOf=="function"?v.valueOf():v;v=y(C)?C+"":C}if(typeof v!="string")return v===0?v:+v;v=v.replace(t,"");var A=n.test(v);return A||o.test(v)?i(v.slice(2),A?2:8):r.test(v)?NaN:+v}return FO=function(v,C,A){var R=!0,x=!0;if(typeof v!="function")throw new TypeError(e);return y(A)&&(R="leading"in A?!!A.leading:R,x="trailing"in A?!!A.trailing:x),(function(k,D,F){var $,U,G,Y,Q,me,ne=0,Ee=!1,ce=!1,_e=!0;if(typeof k!="function")throw new TypeError(e);function Ne(Ae){var Pe=$,Oe=U;return $=U=void 0,ne=Ae,Y=k.apply(Oe,Pe)}function oe(Ae){var Pe=Ae-me;return me===void 0||Pe>=D||Pe<0||ce&&Ae-ne>=G}function Se(){var Ae=m();if(oe(Ae))return re(Ae);Q=setTimeout(Se,(function(Pe){var Oe=D-(Pe-me);return ce?p(Oe,G-(Pe-ne)):Oe})(Ae))}function re(Ae){return Q=void 0,_e&&$?Ne(Ae):($=U=void 0,Y)}function we(){var Ae=m(),Pe=oe(Ae);if($=arguments,U=this,me=Ae,Pe){if(Q===void 0)return(function(Oe){return ne=Oe,Q=setTimeout(Se,D),Ee?Ne(Oe):Y})(me);if(ce)return Q=setTimeout(Se,D),Ne(me)}return Q===void 0&&(Q=setTimeout(Se,D)),Y}return D=b(D)||0,y(F)&&(Ee=!!F.leading,G=(ce="maxWait"in F)?d(b(F.maxWait)||0,D):G,_e="trailing"in F?!!F.trailing:_e),we.cancel=function(){Q!==void 0&&clearTimeout(Q),ne=0,$=me=U=Q=void 0},we.flush=function(){return Q===void 0?Y:re(m())},we})(v,C,{leading:R,maxWait:C,trailing:x})}})(),q5=I0(_H);function J5(){let e=new Date().getTime(),t=performance&&performance.now&&1e3*performance.now()||0;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(r=>{let n=16*Math.random();return e>0?(n=(e+n)%16|0,e=Math.floor(e/16)):(n=(t+n)%16|0,t=Math.floor(t/16)),(r==="x"?n:3&n|8).toString(16)}))}const VO=()=>{try{const e=(r=>{try{const n=IH.parse(r);return AH.stringify(n)}catch{return r}})("laplace-device-id");let t=localStorage.getItem(e);return t||(t=J5(),localStorage.setItem(e,t)),t}catch{return null}};var Gc=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(c){try{l(n.next(c))}catch(d){i(d)}}function s(c){try{l(n.throw(c))}catch(d){i(d)}}function l(c){var d;c.done?o(c.value):(d=c.value,d instanceof r?d:new r((function(p){p(d)}))).then(a,s)}l((n=n.apply(e,[])).next())}))};const qf="NOT SET",PH={databaseName:"laplace-default-db"};class PC{constructor(t){this.cacheFilter=[],this.cacheAdditionalContext=qf,this.laplaceSessionId=J5(),this.log=(l,c,d=rl.log,p={})=>Gc(this,void 0,void 0,(function*(){const m=[c,this.publicTags].flatMap((v=>v)),y=((v,C,A,R)=>{const x=Date.now();return Object.assign({message:v,logLevel:A,tags:C,timestamp:x},R)})(l,m,d,Object.assign(Object.assign({laplaceSessionId:this.laplaceSessionId,deviceId:VO()},this.publicAttributes),p)),b=rp(this,Wu.beforeLog,y);return b.id=this.idbManager.makeNextId(),this.idbManager.addLog(b),rp(this,Wu.afterLog,b),b.id})),this.deleteLog=(l,c)=>{if(Array.isArray(c)&&(this.idbManager.deleteLogs(c),!l))return;const d=this.idbManager.filterStore(l).map((p=>p.id));this.idbManager.deleteLogs(d)},this.deleteAll=()=>{this.idbManager.reset()},this.getLogs=l=>this.idbManager.filterStore(l),this.setReportUrl=l=>{this.reportUrl=l},this.setupUnloadListeners=()=>{document.addEventListener("visibilitychange",(()=>{document.visibilityState==="hidden"&&this.flushThrottledData()})),window.addEventListener("beforeunload",this.flushThrottledData)},this.flushThrottledData=()=>{if(this.cacheFilter.length>0){const l=this.cacheAdditionalContext!==qf?typeof this.cacheAdditionalContext=="string"?void 0:this.cacheAdditionalContext:void 0;this.reportByFilterImmediately(this.cacheFilter,{additionalContext:l}),this.cacheFilter=[],this.cacheAdditionalContext=qf}},this.throttleReport=q5(((l,c)=>{this.reportByHttps(l,c),this.cacheFilter=[],this.cacheAdditionalContext=qf}),5e3,{leading:!0,trailing:!0}),this.reportByFilter=(l,c)=>{if(c!=null&&c.isSendByBeacon)return this.reportByFilterImmediately(l,c);const d=c==null?void 0:c.additionalContext;if(this.cacheAdditionalContext===qf&&(this.cacheAdditionalContext=d),d!==void 0&&this.cacheAdditionalContext&&JSON.stringify(this.cacheAdditionalContext)!==JSON.stringify(d))return this.reportByHttps(l,c);this.cacheFilter=this.cacheFilter.concat(l),this.throttleReport(this.cacheFilter,c)},this.reportByFilterImmediately=(l,c)=>Gc(this,void 0,void 0,(function*(){const d=this.idbManager.filterStore(l);if(!d||d.length===0)return;const p=d.map((b=>Object.assign(Object.assign({},b),{tags:[...Array.isArray(b.tags)?b.tags:[],"isSendByBeacon"]}))),m=rp(this,Wu.beforeReport,p),y=MO(m,c==null?void 0:c.additionalContext);return this.commonReport(y,{isSendByBeacon:!0})})),this.reportByHttps=(l,c)=>Gc(this,void 0,void 0,(function*(){wp.enqueue((()=>Gc(this,void 0,void 0,(function*(){const d=this.idbManager.filterStore(l);if(!d||d.length===0)return;const p=rp(this,Wu.beforeReport,d),m=MO(p,c==null?void 0:c.additionalContext);return this.commonReport(m)}))))})),this.directReport=(l,c)=>Gc(this,void 0,void 0,(function*(){var d,p,m,y;const b=(d=c.sampleRate)!==null&&d!==void 0?d:1;if(Math.random()>b)return;let v;return v=c.useRawData?l:Object.assign(Object.assign({message:l,time:z5(Date.now()),tags:[...(p=c==null?void 0:c.tags)!==null&&p!==void 0?p:[],...this.publicTags],logLevel:(m=c==null?void 0:c.logLevel)!==null&&m!==void 0?m:rl.log,laplaceSessionId:this.laplaceSessionId,deviceId:VO(),isDirectReport:!0},(y=c==null?void 0:c.additionalContext)!==null&&y!==void 0?y:{}),this.publicAttributes),this.commonReport([{messages:v,meta:K5}],{isSendByBeacon:c==null?void 0:c.isSendByBeacon,deleteLogAfterReport:!1})})),this.commonReport=(l,c)=>Gc(this,void 0,void 0,(function*(){if(this.reportUrl)return Promise.all(l.map((d=>({url:this.reportUrl,type:"POST",withCredentials:!1,headers:{},data:NA({messages:d.messages,meta:d.meta}),reportItem:d,isSendByBeacon:!!(c!=null&&c.isSendByBeacon)}))).map(OH)).then((d=>{var p;const m=d.filter((y=>!y.error)).flatMap((y=>y.report.ids));if(rp(this,Wu.afterReport,{removeIds:m}),(p=c==null?void 0:c.deleteLogAfterReport)===null||p===void 0||p)return this.idbManager.deleteLogsAfterReport(m)}))}));const{databaseName:r,reportUrl:n="",plugins:o=[],idbManager:i,publicTags:a=[],publicAttributes:s={}}=t;this.databaseName=r,this.reportUrl=n,this.plugins=o,this.idbManager=i,this.publicTags=a,this.publicAttributes=s,this.setupUnloadListeners(),rp(this,Wu.afterInit)}}PC.init=e=>Gc(void 0,void 0,void 0,(function*(){const{databaseName:t="laplace-default-db"}=e,r=new TH(t);return yield r.syncFromIDB(),new PC(Object.assign(Object.assign(Object.assign({},PH),e),{idbManager:r}))}));class xH extends DA{constructor(t){super(),this.config={verbose:!1},this.beforeLog=(r,n)=>{const{verbose:o}=this.config;switch(o&&console.log("beforeLog, ","state: ",n,"meta: ",r),n.logLevel){case rl.error:console.error(n);break;case rl.warn:console.warn(n);break;case rl.log:console.log(n);break;case rl.debug:console.debug(n);break;case rl.info:console.info(n)}},this.afterLog=(r,n)=>{const{verbose:o}=this.config;o&&console.log("afterLog, ","state: ",n,"meta: ",n)},this.beforeReport=(r,n)=>{const{verbose:o}=this.config;o&&console.log("beforeReport, ","pluginParams: ",n,"meta: ",r)},this.afterReport=(r,n)=>{const{verbose:o}=this.config;o&&console.log("afterReport, ","pluginParams: ",n,"laplace: ",r)},t&&(this.config=t)}}class DH extends DA{constructor(t){super(),this.config={debug:!1},this.debugLog=r=>{const{debug:n}=this.config;n&&console.log(`[AutoCleanLogPlugin]: ${r}`)},this.afterInit=r=>{const{expireBefore:n}=this.config;if(!n)return void this.debugLog("early return on beforeInit because expireBefore is falsy");const o=r.idbManager.getStore(),i=(typeof n=="function"?o.filter(n):o.filter((a=>a.timestamp<n))).map((a=>a.id));r.deleteLog(void 0,i),this.debugLog(`afterInit, clean log id: ${i}`)},t&&(this.config=t)}}const NH=["RESOURCE_ERROR","JS_ERROR","UNHANDLED_PROMISE_REJECTION"];class MH extends DA{constructor(t){super(),this.config={debug:!1,publicTags:[]},this.errorCount=0,this.hashErrors={},this.addPublicTags=r=>{var n;return(n=this.config.publicTags)===null||n===void 0?void 0:n.concat(r).filter((o=>o))},this.debugLog=r=>{const{debug:n}=this.config;n&&console.log("[AutoLogErrorPlugin]:",r)},this.ignore=r=>{var n,o,i,a,s;return((n=this.config)===null||n===void 0?void 0:n.maxErrorCount)!==void 0&&this.errorCount>=((o=this.config)===null||o===void 0?void 0:o.maxErrorCount)||!!(!((i=this.config)===null||i===void 0)&&i.ignoredErrorMsgKeywords)&&r&&((s=(a=this.config)===null||a===void 0?void 0:a.ignoredErrorMsgKeywords)===null||s===void 0?void 0:s.some((l=>r==null?void 0:r.includes(l))))},this.report=q5((r=>{}),600,{trailing:!0,leading:!1}),this.afterInit=r=>{if(!self.addEventListener)return;const n=(o,i,a,s)=>{this.debugLog(a),this.errorCount+=1;try{return(function(l){const c=new TextEncoder().encode(l);return crypto.subtle.digest("SHA-1",c).then((d=>Array.from(new Uint8Array(d)).map((p=>p.toString(16).padStart(2,"0"))).join("")))})(o).then((l=>this.hashErrors[l]?"dismissed":(this.hashErrors[l]=!0,r.log(o,this.addPublicTags([].concat(i)),s??rl.error,{extraProperties:{messageHash:l}}).then((()=>r.reportByFilter(NH)))))).catch(console.error)}catch(l){return console.error(l),Promise.resolve(l)}};try{self.addEventListener("error",(o=>{var i,a,s,l,c,d,p;if(!this.ignore(o==null?void 0:o.message)){if(typeof this.config.onError=="function"){const{message:m,tags:y,logLevel:b}=this.config.onError(o);return n(m,["JS_ERROR",...y],o,b)}if(o!=null&&o.target&&(!((i=o==null?void 0:o.target)===null||i===void 0)&&i.src||!((a=o==null?void 0:o.target)===null||a===void 0)&&a.href)){const m=`Load Resource Error in ${(s=o==null?void 0:o.target)===null||s===void 0?void 0:s.tagName} element: ${((l=o==null?void 0:o.target)===null||l===void 0?void 0:l.src)||((c=o==null?void 0:o.target)===null||c===void 0?void 0:c.href)}`;return n(m,"RESOURCE_ERROR",o)}{const m=`Javascript Runtime Error in ${o==null?void 0:o.filename} (${o==null?void 0:o.lineno}:${o==null?void 0:o.colno}): ${o==null?void 0:o.message}
@@ -74,7 +74,7 @@ TrackingId:${sp.trackingId}`}))===null||t===void 0?void 0:t.then((()=>{sp.report
74
74
  `).concat(y,`
75
75
  `)}))):i.log+="".concat(e(),"ping failed. Errors(unknown): ").concat(m.message,`
76
76
  `),l(i.log)})).finally((function(){clearTimeout(d),i.cancelPing()}))}))},n.prototype.filter=function(){var o,i=this;this.serverList=this.serverList.filter((function(a){var s;return a.domain!==i.lastServer.domain&&a.dc!==o||(o||(o=(s=i.excludedServer.find((function(l){return l.dc===i.lastServer.dc})))===null||s===void 0?void 0:s.dc),i.excludedServer.push(i.lastServer),!1)})),this.log+="".concat(e(),"excludedServer ").concat(JSON.stringify(this.excludedServer.map((function(a){return a.domain}))),`
77
- `)},n.prototype.getLog=function(){return this.log},n})();return new r})()),hD.exports),Td=I0(Sz);const Rw=Ei.getInstance();Td.setRetryTimes(0);const p9=e=>vc(Wo(sl().pipe(_t((()=>{Td.cancelPing(),Rw.report(`ping rwc canceled. ping rwc log:${Td.getLog()}`,["Join Meeting Flow","Ping RWC Error"],"warn")})))),Fe((t=>{const{response:r,request:n}=t;let o={};return o=r?{...r,rwc:n.domain,fromNginx:!1}:{rwc:n.domain,rwg:n.domain,rwcToken:n.rwcToken,fromNginx:!0},ft([I5(o),cC()])})),oa((()=>{const t=Td.getLog(),{meeting:{meetingId:r,meetingNumber:n,userName:o}}=e.value;return Rw.report(`ping rwc error,${JSON.stringify({meetingId:r,meetingNumber:Oi(n),userName:Oi(o)})}, ping rwc log: ${t}`,["Join Meeting Flow","Ping RWC Error"],"error"),ee(_o,{reason:"connection error",errorCode:vl.CommonError}),ft([...hd(e.value)])}))),mD=(e,t)=>e.pipe(Mt(`${bA}`),Xt(t),Be((([,r])=>r.meeting.encryptedRWC!==void 0||r.meeting.encryptedGEORWC!==void 0&&r.meeting.encryptedGEORWC.length>0)),Gr((([,r])=>ft(Td.ping((n=>{const{meeting:{encryptedRWC:o,encryptedGEORWC:i,meetingOptions:a,meetingNumber:s,ts:l,auth:c,enableHybridRWG:d,accountId:p},breakoutRoom:m,video:y,audio:b}=n,v=a==null?void 0:a.isEnableGeoFenceRWC,C=y!=null&&y.isWebrtcVideoCapable||b!=null&&b.isWebRtcAudioCapable&&(b==null?void 0:b.webRtcAudioMode)&q3.WebRTCAudio2?y==null?void 0:y.miniRwgOptionValue:0;let A;return d&&(A=p),v&&i&&(i==null?void 0:i.length)>0?i.map((R=>{const{dc:x,dl:k,rwc:D,rwcToken:F}=R;return{url:U2(D,s,F,l,c,m==null?void 0:m.currentRoom.boConfId,C,A),domain:D,rwcToken:F,dl:k,dc:x}})):o?Object.keys(o).map((R=>{const x=o[R];return{url:U2(R,s,x,l,c,m==null?void 0:m.currentRoom.boConfId,C,A),domain:R,rwcToken:x,dl:0,dc:"AP"}})):[]})(r))).pipe(p9(t),Fs(s5(performance.now()))))));let gD=0;const Ez=Ei.getInstance(),P1={meetingStatus:di.Initial,isWindowOpen:!1,apiKey:"",signature:"",signatureType:"",lang:"en-US",tk:"",customerKey:"",mtkGuid:"",pingRWCTimestamp:0,meetingInfoTimestamp:0,passWord:"",meetingNumber:0,userName:"",userEmail:"",sdkUrl:"",sdkOrigin:"",proxy:1,cv:"",meetingId:"",tid:"",ts:"",auth:"",sign:"",isSupportCallOut:!1,tollNumbers:void 0,recordingEnable:!1,callOutCountry:void 0,inviteEmail:"",xmppConfig:null,isSupportH323:!1,h323GatewayInfo:"",h323Password:"",trackAuth:"",isOriginHost:!1,isWebinar:!1,encryptedRWC:void 0,meetingOptions:{},meetingTopic:"",bLock:!1,bHoldUponEntry:!1,viewOnly:0,listenOnlyPhone:0,bAllowRaiseHand:!1,bAllowAttendeeRename:!1,bBroadcast:void 0,bAllowPlayChimeForEnterOrExit:!1,bIbDisableShare:!1,bIbDisableChat:!1,bAllowShowCount:!1,encryptKey:"",bNoHostTimeOut:!1,confId:"",conId:"",e2eEncrypt:!1,zoomId:"",jid:"",xtoken:"",groups:void 0,svcUrl:"",encType:NaN,userGUID:"",userId:NaN,isHost:!1,isCoHost:!1,participantID:0,isOnHold:!1,isMeetingReset:!1,bRecord:!1,audioVideoBeforeOnHold:void 0,region:void 0,network:void 0,joinMeetingTimeStamp:0,activeAppInfo:void 0,recordingDisclaimerForRecorder:{},recordingDisclaimer:{},ccUrl:"",sessionIdleTimeoutMins:40,reportDomain:"",discardedRwcList:[],sharePronounType:void 0,stayAwake:!1,wrInfo:{},meetingInfo:{},isNewJoinFlow:!1,gatewayUserList:[],logConfig:"",failover:{count:0,isCurrentFailoverRecorded:!1,reason:-1,interval:0,joinMeetingSuccessTimestamp:0,sequence:""},isUseWBVideo:!1,isUseWBAudio:!1,enableLongPollingCheckStart:!1,rsPwd:"",chatModerationPolicy:{},uid:"",isAlternativeHost:!1,isAssistant:!1,isRlbTP:!1,isRlbTPReady:!1,isUIToolkit:!1,liveStreamInfo:{},enableHybridRWG:!1,isSupportRtmsApp:!1,obfRelation:[]},Cz=Mi({[`${Yi}`]:ie(((e,{payload:t})=>{t.customerKey=e.customerKey||t.customerKey||"",Object.assign(e,t),e.meetingStatus=di.Initial})),[`${kB}`]:ie(((e,{payload:t})=>{t.customerKey=e.customerKey||t.customerKey||"",Object.assign(e,t)})),[`${LB}`]:ie(((e,{payload:t})=>{e.isWindowOpen=t})),[`${a5}`]:ie(((e,{payload:t})=>{t.useSDK?e.signatureType="sdk":e.signatureType="api",e.apiKey=t.apiKey,e.signature=t.signature,e.lang=t.language})),[`${FB}`]:ie(((e,{payload:t})=>{e.ztk=t})),[`${jB}`]:ie(((e,{payload:t})=>{e.zsk=t})),[`${VB}`]:ie(((e,{payload:t})=>{e.obfToken=t})),[`${BB}`]:ie(((e,{payload:t})=>{e.obfRelation=t})),[`${HB}`]:ie(((e,{payload:t})=>{e.tk=t.tk,e.mtkGuid=t.mtkGuid})),[`${s5}`]:ie(((e,{payload:t})=>{e.pingRWCTimestamp=t})),[`${b5}`]:ie(((e,{payload:t})=>{e.meetingInfoTimestamp=t})),[`${js}`]:ie(((e,{payload:t})=>{e.confId=t.confID,e.conId=t.conID,e.e2eEncrypt=t.e2eEncrypt,e.meetingNumber=parseInt(t.mn,10),e.zoomId=t.zoomID,e.meetingStatus=di.Joined,e.jid=t.jid,e.xtoken=t.xtoken,e.groups=t.groups,e.svcUrl=t.svcUrl,e.encType=t.encType,e.userGUID=t.userGUID,e.userId=t.userID,e.role=t.role,e.participantID=t.participantID,e.reportDomain=t.reportDomain,e.abToken=t.ABtoken,e.supportLocalAB=!!t.supportLocalAB,e.isUseWBVideo=!!t.useWBVideo,e.mediasdkConfig=t.mediasdkConfig,e.isUseWBAudio=!!t.useWBAudio,t.enableWebTransport&&(e.enableWebtransport=t.enableWebTransport,e.webtransportPort=t.WebTransportPort)})),[`${Lh}`]:ie(((e,{payload:t})=>{if(t.gatewayUser){var r;const{userId:o,sn:i}=t.gatewayUser,a=(r=e.gatewayUserList)===null||r===void 0?void 0:r.find((s=>s.userId===o));var n;a?a.sn=i:(n=e.gatewayUserList)===null||n===void 0||n.push(t.gatewayUser)}else Object.assign(e,t)})),[`${l5}`]:ie(((e,{payload:t})=>{e.isHost=t})),[`${u5}`]:ie(((e,{payload:t})=>{e.isCoHost=t})),[`${bh}`]:ie(((e,{payload:t})=>{e.isOnHold=t})),[`${c5}`]:ie(((e,{payload:t})=>{e.isMeetingReset=t})),[`${UB}`]:ie(((e,{payload:t})=>{e.audioVideoBeforeOnHold=t})),[`${sC}`]:ie(((e,{payload:t})=>{e.currentUserAudioBeforeReset=t})),[`${lC}`]:ie(((e,{payload:t})=>{e.isCurrentUserMutedBeforeReset=t})),[`${SA}`]:ie(((e,{payload:t})=>{e.meetingStatus=t})),[`${d5}`]:ie(((e,{payload:t})=>{e.region=t.region,e.network=t.network})),[`${p5}`]:ie(((e,{payload:t})=>{e.isCurrentUserStartVideoBeforeReset=t})),[`${f5}`]:ie(((e,{payload:t})=>{e.joinMeetingTimeStamp=t})),[`${$B}`]:ie(((e,{payload:t})=>{e.activeAppInfo=t})),[`${Sh}`]:ie(((e,{payload:t})=>{e.idleStartTime=t})),[`${h5}`]:ie(((e,{payload:t})=>{e.sessionIdleTimeoutMins=t})),[`${WB}`]:ie(((e,{payload:t})=>{var r;const n=(r=e.encryptedGEORWC)===null||r===void 0||(r=r.find((i=>i.rwc===t)))===null||r===void 0?void 0:r.dc;if(n){var o;const i=(o=e.encryptedGEORWC)===null||o===void 0?void 0:o.filter((a=>a.dc===n));i&&e.discardedRwcList.some((a=>(i==null?void 0:i.findIndex((s=>s.rwc===a)))>=0))&&e.discardedRwcList.push(...i.map((a=>a.rwc))),e.discardedRwcList.push(t)}})),[`${zB}`]:ie(((e,{payload:t})=>{e.sharePronounType=t})),[`${m5}`]:ie(((e,{payload:t})=>{e.stayAwake=t})),[`${g5}`]:ie(((e,{payload:t})=>{e.failover.joinMeetingSuccessTimestamp=t})),[`${v5}`]:ie((e=>{Object.assign(e.failover,{...P1.failover,count:e.failover.count,joinMeetingSuccessTimestamp:e.failover.joinMeetingSuccessTimestamp})})),[`${_b}`]:ie(((e,{payload:t})=>{const{count:r,reason:n,interval:o,sequence:i}=t;e.failover.count=r,e.failover.reason=n,e.failover.interval=o,e.failover.isCurrentFailoverRecorded=!0,e.failover.sequence=i})),[`${y5}`]:ie(((e,{payload:t})=>{e.quicklyLeave=t})),[`${S5}`]:ie(((e,{payload:t})=>{e.isEnableZmkFromRWG=t})),[`${Sy}`]:ie(((e,{payload:t})=>{e.isRlbTP=t})),[`${E5}`]:ie(((e,{payload:t})=>{e.isRlbTPReady=t})),[`${i5}`]:ie(((e,{payload:t})=>{e.isUIToolkit=t})),[`${aC}`]:(e,{payload:t})=>{const{isFailover:r}=t,n={isMeetingReset:!0,apiKey:e.apiKey,signatureType:e.signatureType,signature:e.signature,lang:e.lang,proxy:1,stayAwake:e.stayAwake};var o;return r&&Object.assign(n,{currentUserAudioBeforeReset:e.audioVideoBeforeOnHold?e.audioVideoBeforeOnHold.audio:t.audio,isCurrentUserMutedBeforeReset:e.audioVideoBeforeOnHold?e.audioVideoBeforeOnHold.muted:(o=e.isCurrentUserMutedBeforeReset)!==null&&o!==void 0?o:t.muted,isCurrentUserStartVideoBeforeReset:e.audioVideoBeforeOnHold?e.audioVideoBeforeOnHold.video:t.video,meetingNumber:e.meetingNumber,userName:e.userName,passWord:e.passWord,userEmail:e.userEmail,sdkUrl:e.sdkUrl,sdkOrigin:e.sdkOrigin,cv:e.cv,zsk:e.zsk,ztk:e.ztk,obfToken:e.obfToken,idleStartTime:e.idleStartTime,sessionIdleTimeoutMins:e.sessionIdleTimeoutMins,customerKey:e.customerKey,failover:e.failover,stayAwake:e.stayAwake,quicklyLeave:e.quicklyLeave}),{...P1,...n}}},P1),wz={meetingFailoverReportEpic0:(e,t)=>e.pipe(Mt(`${Yi}`),Gr((()=>{const r=t.value.meeting.failover.joinMeetingSuccessTimestamp===0&&!!$r.get(Cn.WebclientZoomId);return e.pipe(Mt(`${js}`),Fr(1),Fe((()=>{const n=[],{count:o,sequence:i}=$r.get(Cn.WebclientFailoverCount)||{};let{meeting:{failover:{count:a,reason:s,interval:l}}}=t.value;const{meeting:{pingRWCTimestamp:c}}=t.value;if(r){a=(o??0)+1,s=yi.RefreshPage,l=0;const m=i?`${i}-${s}`:`${s}`;$r.set(Cn.WebclientFailoverCount,{count:a,sequence:m},fn.SessionStorage),n.push(_b({count:a,reason:s,interval:l,sequence:m}))}const d=performance.now();let p=`WCL_M, JMCT(${d-c})`;return a>0&&s!==yi.NormalCase&&(p=`${p},FAILOVER(${a},${s},${(l/1e3).toFixed(1)})`),bz.sendRWGConnectionPerformance(p),n.push(v5(),g5(d)),ft(n)})))}))),meetingFailoverReportEpic1:(e,t)=>e.pipe(Mt(`${Ia}`),Fe((r=>{const{payload:n}=r,{meeting:{failover:{joinMeetingSuccessTimestamp:o,isCurrentFailoverRecorded:i},userGUID:a,userId:s,meetingId:l}}=t.value,c=[];if(!i){let{count:d,sequence:p}=$r.get(Cn.WebclientFailoverCount)||{};p=p?`${p}-${n}`:`${n}`,n!==yi.NormalCase&&(d+=1,$r.set(Cn.WebclientFailoverCount,{count:d,sequence:p},fn.SessionStorage));const m=performance.now()-o;c.push(_b({reason:n,count:d,interval:m,sequence:p,userGUID:a,userId:s,meetingId:l}))}return ft(c)})))},Iz={sessionIdleEpic0:(e,t)=>e.pipe(Mt(`${js}`),Xt(t),Be((([,r])=>r.meeting.zlkJwtToken!==void 0)),Gr((()=>(Bc&&Bc.complete(),Bc=new xs,pD=em(6e4).pipe(wt((()=>performance.now()))).subscribe(Bc),Bc.pipe(wt((r=>hO(r)))))))),sessionIdleEpic1:e=>e.pipe(Mt(`${Xa}`)).pipe(_t((()=>{Bc&&(Bc.complete(),pD.unsubscribe())})),Ho(qt)),sessionIdleEpic2:(e,t)=>e.pipe(Mt(`${hO}`),Xt(t),Fe((([r,n])=>{var o;const{meeting:{idleStartTime:i,sessionIdleTimeoutMins:a,isOriginHost:s,isWebinar:l},participants:{attendeesList:c,xmppAttendeeList:d},recording:p,breakoutRoom:m}=n,y=r.payload,b=[];if(c.length!==1||l&&d.length!==0||(m==null||(o=m.currentRoom)===null||o===void 0?void 0:o.status)===wr.InRoom||(p==null?void 0:p.cmrStatus)===jo.Start)b.push(Sh(void 0));else if(i){const v=s&&Nd(c[0].userRole)?a:40;y-i>60*v*1e3&&(console.warn(`No active for ${v} minutes, will end the session.`),yz.report(`Session idle timeout(${v} minutes), end the session automatically!`,["Join Meeting Flow","Session idle"],"warn"),b.push(mf()),ao(500).subscribe((()=>{dA()})))}else b.push(Sh(y));return ft(b)}))),sessionIdleEpic3:(e,t)=>e.pipe(Mt(`${Bd}`),Be((r=>[Vn,Ja].includes(r.payload.evt)&&t.value.meeting.idleStartTime!==void 0)),go(la),Fe((()=>{var r;const{participants:{attendeesList:n,xmppAttendeeList:o},recording:i,breakoutRoom:a}=t.value,s=[];return(n.length>1||o.length>0||(i==null?void 0:i.cmrStatus)===jo.Start||(a==null||(r=a.currentRoom)===null||r===void 0?void 0:r.status)===wr.InRoom)&&s.push(Sh(void 0)),ft(s)}))),sessionIdleEpic4:e=>e.pipe(Mt(`${Fd}`,`${mf}`),Pd(Sh(void 0)))},Az={meetingMainEpics0:(e,t)=>Ct(e,0).pipe(_t((r=>{var n;if(((n=r.payload.body)===null||n===void 0?void 0:n.status)==="READY"){const{meeting:{zlkJwtToken:o,signatureType:i,sign:a,passWord:s,isHost:l,isOriginHost:c,ztk:d,zsk:p,tk:m,userEmail:y},breakoutRoom:b}=t.value,v=o?{zlkJwtToken:o}:{signType:i,sign:a};if(s&&s!==""&&(o?Object.assign(v,{mpwd:Po(s)}):l&&c||Object.assign(v,{mpwd:s})),(b==null?void 0:b.currentRoom.status)===wr.Joining){const{currentRoom:{boId:A,boConfId:R,boToken:x}}=b;A&&R&&x&&Object.assign(v,{botk:x})}if(!o){const{meeting:{obfToken:A}}=t.value,R=sessionStorage.getItem(Cn.WebclientObfToken),x=A||R,k=sessionStorage.getItem(Cn.WebclientZsk)||p;x?Object.assign(v,{obfToken:x}):(d&&Object.assign(v,{zak:d}),k&&Object.assign(v,{zak:k})),m&&Object.assign(v,{tk:m});const D=$r.get(Cn.WebclientWebinarToken);D!==void 0&&Object.assign(v,{tk:D});const F=sessionStorage.getItem(Cn.WebclientRecordingToken);F&&Object.assign(v,{localRecordToken:F}),y&&Object.assign(v,{email:y})}Vc.sendLaunchParams(v);const C=$r.get(Cn.WebclientMeetingToken);C&&Vc.joinMeeting(C)}})),sn()),meetingMainEpics1:(e,t)=>{return Ct(e,R0).pipe(Xt(t),Be((([,n])=>n.socket.zoomSocketStatus===wn.Connected)),(r=([n,o])=>{const{payload:{body:{res:i,userID:a,zoomID:s,mn:l,participantID:c,meetingtoken:d,role:p}}}=n,{meeting:{userEmail:m,userName:y,isMeetingReset:b,apiKey:v,zsk:C,signatureType:A}}=o;if(za.Success===i){const{WebclientParticipantId:x,WebclientZoomId:k,WebclientUserEmail:D,WebclientUserName:F,WebclientMeetingToken:$}=Cn;$r.set(k,s,fn.SessionStorage),$r.set(x,c,fn.SessionStorage),m&&$r.set(D,m,fn.SessionStorage),$r.set(F,y,fn.SessionStorage),d&&$r.set($,d,fn.SessionStorage),C&&Vc.sendSdkKeyToMonitor(A,v,a);const U=[js(n.payload.body),f5(performance.now())];return b&&U.push(c5(!1)),(p&Dd.Owner)===Dd.Owner&&(ee(_o,{reason:"dont support assisnt join through widget",errorCode:-1}),Vc.leaveMeeting()),ee(S4,{meetingNumber:l}),ft(U)}if(za.MeetingLocked===i)ee(_o,ml(i));else if(za.UserFull===i)ee(_o,Object.assign({},ml(i),{lmUrl:n.payload.body.lmURL}));else if(za.MeetingIsOver===i)ee(_o,ml(i));else if(za.MMRIBReject===i)ee(_o,ml(i));else if(za.MMRConfParticipantExists===i)ee(_o,ml(i));else if([za.UserHasBeenRemoved,za.WebinarBlockedEmail].includes(i))ee(_o,ml(i));else if(za.MeetingNotStarted===i){var R;const x=ml(i),{meeting:{meetingNumber:k,passWord:D,userName:F,userEmail:$,inviteEmail:U,meetingTopic:G,region:Y,network:Q,userId:me,lang:ne,meetingId:Ee,participantID:ce,wrInfo:_e,meetingInfo:Ne,isNewJoinFlow:oe,enableLongPollingCheckStart:Se,tid:re,signature:we,rsPwd:Ae}}=o;Object.assign(x,{meetingInfo:{meetingNumber:k,password:D,userName:F,userEmail:$,inviteEmail:U,meetingTopic:G,region:Y,network:Q,userId:me,lang:ne,webEndpoint:gc(),meetingId:Ee,participantId:ce,wrInfo:Object.assign({},_e,{isNew:oe}),scheduleInfo:Ne,enableLongPollingCheckStart:Se,rid:d$(re),role:Number((R=Ms(we))===null||R===void 0?void 0:R.role),rsPwd:Ae}}),ee(_o,x)}else ee(_o,ml(i));return ft(hd(o,!1))},vc(Gr(((n,o)=>r(n)||qt)))));var r},meetingMainEpics2:(e,t)=>Ct(e,Ja).pipe(Xt(t),wt((([r,n])=>{const{payload:{body:o}}=r,{meeting:{zoomId:i,encType:a,gcmSessinKey:s}}=n;if((o==null?void 0:o.encryptKey)!==void 0&&xi.init(i,o.encryptKey,a),(o==null?void 0:o.gatewayKey)!==void 0){const l=dr.getInstance(),[,c,d]=o.gatewayKey.split(".");l.sendUserNodeList([{userid:Number(c),sn:d&&sa(d)}],s)}return ee(YI,o),Lh(o)}))),meetingMainEpics3:(e,t)=>Ct(e,7939).pipe(Xt(t),Fe((([r,n])=>{const{payload:{body:o}}=r;if(o.reason!==void 0){if(Hl.Reconnect===o.reason)return L$.WaitingRoomFailover===o.subReason?ee(ka,{reason:ia.OnHold}):ee(ka,{reason:ia.Failover}),Mn(Ia(yi.NormalCase));Hl.KickedByHost===o.reason?ee(Yu,{reason:"kicked by host"}):[Hl.EndByHost,Hl.EndByNone,Hl.EndByAdmin,Hl.EndByHostStartAnotherMeeting].includes(o.reason)?ee(Yu,{reason:"ended by host"}):Hl.FreeMeetingTimeout===o.reason?ee(Yu,{reason:"free meeting ended"}):[Hl.DuplicateSession,Hl.MeetingTransfer].includes(o.reason)&&ee(Yu,{reason:"duplicated session"})}return n.meeting.isMeetingReset?qt:ft(hd(n,!1))}))),meetingMainEpics4:(e,t)=>e.pipe(Mt(`${Ia}`),Xt(t),Fe((([,r])=>{const n=hd(r,!0);let o;if(r.meeting.zlkJwtToken){const i=(function(s){if(s){const{meeting:{topic:l,passWord:c,userName:d,zlkJwtToken:p,lang:m,cv:y,customerKey:b}}=s;return{topic:l,passWord:c,userName:d,zlkJwtToken:p,lang:m,cv:y,customerKey:b}}return null})(r),a={topic:i==null?void 0:i.topic,password:i==null?void 0:i.passWord,userName:i==null?void 0:i.userName,zlk:i==null?void 0:i.zlkJwtToken,lang:i==null?void 0:i.lang,cv:i==null?void 0:i.cv,customerKey:i==null?void 0:i.customerKey};o=Mn(hf(a)).pipe(Zy(1e3))}else{const i=(function(a){var s;const{meeting:{apiKey:l,signature:c,signatureType:d,meetingNumber:p,userName:m,lang:y,passWord:b,userEmail:v,sdkUrl:C,sdkOrigin:A,proxy:R,cv:x,ztk:k,zsk:D,tk:F,obfToken:$}}=a,U=sessionStorage.getItem(Cn.WebclientObfToken),G=$||U;let Y=k||sessionStorage.getItem(Cn.WebclientZtk),Q=D||sessionStorage.getItem(Cn.WebclientZsk);const me=Number((s=Ms(c))===null||s===void 0?void 0:s.role)===1;return G?(Y="",Q=""):me||(Y=Q,Q=""),{apiKey:l,signature:c,signatureType:d,meetingNumber:p,userName:m,lang:y,passWord:b?encodeURIComponent(b):"",userEmail:v,sdkUrl:C,sdkOrigin:A,proxy:R,cv:x,ztk:Y,zsk:Q,tk:F||sessionStorage.getItem(Cn.WebclientTk),ulsm:me&&Q?1:0}})(r);o=Mn(Ob(i)).pipe(Zy(1e3))}return _d(ft(n),o)}))),meetingMainEpics5:e=>il(e,IA).pipe(_t((t=>{ee("MEETING_HOST_CHANGE_INDICATION",t.payload.body.bHost)})),wt((t=>l5(t.payload.body)))),meetingMainEpics6:e=>il(e,7941).pipe(_t((t=>{ee("MEETING_COHOST_CHANGE_INDICATION",t.payload.body.bCoHost)})),wt((t=>u5(t.payload.body)))),meetingMainEpics7:e=>il(e,7945).pipe(_t((t=>{const{payload:{body:{opt:r}}}=t;$r.set(Cn.WebclientOpt,r,fn.SessionStorage)})),sn()),meetingMainEpics8:e=>Ct(e,7954).pipe(wt((t=>d5(t.payload.body)))),meetingMainEpics9:e=>Ct(e,4216).pipe(_t((t=>{ee("MEETING_CLAIM_HOST_KEY_RESPONSE",t.payload.body.bresult)})),sn()),meetingMainEpics10:(e,t)=>e.pipe(Mt(`${Fd}`,`${mf}`),Xt(t),Fe((([r,n])=>{const o=OV(n),{socket:{zoomSocketStatus:i},meeting:{meetingId:a}}=n;return i===wn.Connected&&(r.type===`${Fd}`?Vc.leaveMeeting(o):r.type===`${mf}`&&Vc.endMeeting()),a&&ee(Yu,{}),ft(hd(n,!1))}))),meetingMainEpics11:e=>Ct(e,2).pipe(_t((()=>{console.warn("Upgrade to latest version to optimize meeting experience")})),sn()),meetingMainEpics12:e=>Ct(e,1).pipe(_t((t=>{const{payload:{body:{upgradeVersion:r}}}=t,n=ml(1e4);if(n&&n.reason){const o=n.reason.replace(/{(\d+)}/g,(()=>r));n.reason=o}ee(_o,n)})),sn()),meetingMainEpics13:e=>Ct(e,4128).pipe(_t((t=>{const{payload:{body:{meetingtoken:r}}}=t,{WebclientMeetingToken:n}=Cn;r&&$r.set(n,r,fn.SessionStorage)})),sn()),meetingMainEpics14:(e,t)=>e.pipe(Mt(`${js}`),Be((()=>!!t.value.meeting.quicklyLeave)),Gr((()=>Uo(window,"beforeunload").pipe(_t((()=>{Vc.leaveMeeting()})),sn())))),meetingMainEpics15:(e,t)=>Ct(e,8025).pipe(Be((r=>!!r.payload.body.Zmk&&!!t.value.meeting.isEnableZmkFromRWG)),wt((r=>{const{payload:{body:{Zmk:n}}}=r;return Lh({zmk:n})}))),meetingMainEpics16:(e,t)=>e.pipe(Mt(`${Yi}`),Fe((r=>{const{payload:{mediaFeatureOptions:n,mediaSDKPath:o}}=r,{media:{skipJsMedia:i,patchJsMedia:a,assetsPath:s}}=t.value;if((function(l){return(function(c){try{if(47>c.length)return 0;const d=c.slice(c.length-47-1+1,c.length-47+1);if(d)return parseInt(d,16)}catch{}return 0})(l)===1})(n)){const l=`${!i&&a&&h6(s)&&o?C0(o):s}/tp.min.js`;return ft(window.ZoomTPModule===void 0||typeof window.ZoomTPModule.ZoomTPWebSocket!="function"?new Promise(((c,d)=>Ym(l,(()=>c("")),(()=>d())))):Promise.resolve("")).pipe(Fe((()=>{const{meeting:{mediaFeatureOptions:c},logger:d}=t.value,p=d?Ei.getInstance().makeLogger(["TP MODULE"]):void 0;return ft(window.ZoomTPModule.initTPModule({options:c,logInstance:p}).then((()=>(ee(ny,!0),E5(!0)))).catch((()=>(ee(ny,!1),Sy(!1)))))})),oa((()=>(setTimeout((()=>{Ei.getInstance().report(`Unable to load tp.min.js,url:${l}`,["TP MODULE"],"error")}),5e3),ee(ny,!1),ft([Sy(!1)])))),Fs(Sy(!0)))}return qt}))),meetingMainEpics17:(e,t)=>e.pipe(Mt(`${Yi}`),Be((()=>{const{meeting:{zlkJwtToken:r}}=t.value;return!!r})),Fe((()=>{const{meeting:{zlkJwtToken:r}}=t.value,n=[];try{const o=Ms(r),{user_key:i}=o||{};i&&n.push(Lh({customerKey:i}))}catch{}return ft(n)})))},Rz=Qi(Az,{wakeLockEpic0:(e,t)=>e.pipe(Mt(`${js}`),Xt(t),Be((([,r])=>!!r.meeting.stayAwake)),_t((async()=>{try{const{isSafari:r,isIOSMobile:n}=Yt;xa&&xa.release().then((()=>{xa=null})),"wakeLock"in navigator&&((r||n)&&await jn(Ji(Uo(document,"click").pipe(Fr(1)),Uo(document,"touchend").pipe(Fr(1)))),xa=await navigator.wakeLock.request("screen"),xa.addEventListener("release",(()=>{})))}catch{}})),Gr((()=>Uo(document,"visibilitychange").pipe(Fe((async()=>{if(document.visibilityState==="visible"){const{isSafari:r,isIOSMobile:n}=Yt;xa&&xa.release().then((()=>{xa=null})),"wakeLock"in navigator&&((r||n)&&await jn(Ji(Uo(document,"click").pipe(Fr(1)),Uo(document,"touchend").pipe(Fr(1)))),xa=await navigator.wakeLock.request("screen"))}else xa&&xa.release().then((()=>{xa=null}))})),Ho(qt))))),wakeLockEpic1:e=>e.pipe(Mt(`${Xa}`)).pipe(_t((()=>{xa&&xa.release().then((()=>{xa=null}))})),Ho(qt))},wz,Iz,{meetingInfoEpic:(e,t)=>e.pipe(Mt(`${hf}`),Gr((r=>{const n=Object.assign({},r.payload,{password:Po(r.payload.password),topic:Po(r.payload.topic)}),{videoSDKUrl:o}={videoSDKUrl:`https://${m0}/wc/lsdk`};return((i,a,s="zoomsdkjsonpcallback")=>new Ro((l=>{gD++;const c=`${s}${gD}`,d=document.createElement("script");Object.keys(a).forEach((p=>(a[p]===void 0||a[p]===null)&&delete a[p])),d.src=`${i}?${new URLSearchParams(Object.assign(a,{callback:c})).toString()}`,d.async=!0,d.onerror=p=>l.error(p),document.getElementsByTagName("head")[0].appendChild(d),window[c]=p=>{d.parentNode&&d.parentNode.removeChild(d),delete window[c],l.next(p),l.complete()}})))(o,n).pipe(Wo(e.pipe(Mt(`${Fd}`),_t((()=>{ee(Yu,{})})),Fr(1))),oa((i=>Mn({status:!1,result:i.toString(),errorCode:-3e3}))),Fe((i=>{if(!i.status||i.result===void 0){Ez.report(`get meeting info error, ${JSON.stringify(i)}`,["Join Meeting Flow","Get Meeting Info Error"],"error"),i.errorCode===3e3&&i.errorMessage==="Meeting password is incorrect"?ee(_o,{errorCode:vl.WrongPasscode,reason:"Incorrect passcode."}):i.errorCode===3e3&&i.errorMessage==="The role type error"?ee(_o,{errorCode:vl.RoleTypeMissing,reason:"Role type error"}):i.errorCode===-3e3?ee(_o,{errorCode:vl.CommonError,reason:"connection error"}):i.errorCode===3e3?ee(_o,{reason:i.errorMessage,errorCode:vl.CommonError}):i.errorCode===300?ee(_o,{reason:"This account does not exist or does not belong to you",errorCode:vl.CommonError}):i.errorCode===124&&i.errorMessage==="Parse lite sdk topic and pwd fail"?ee(_o,{reason:"Topic is invalid",errorCode:vl.CommonError}):i.errorCode===124&&i.errorMessage==="The java web token is expired or more than 2 days or ineffective."?ee(_o,{reason:"The token has expired, is over 2 days old, or is ineffective.",errorCode:vl.CommonError}):i.errorCode===124&&ee(_o,{reason:"Verify JWT failed",errorCode:vl.CommonError});const{meeting:{isMeetingReset:s}}=t.value;return s?ft(hd(t.value,!1)):qt}if(i.status===!0){const{result:{mid:s,websdkClientFeatureOptions:l,showRecommendVersion:c}}=i;$r.init(s);const d=((y,b)=>{if(y.result){const{result:{mn:v,ts:C,auth:A,track_auth:R,mid:x,tid:k,webMediaBlockConfig:D,encryptedRWC:F,encryptedGEORWC:$,user_identity:U,meetingOptions:G,can_recording:Y,wcXMPPConfig:Q,call_out_country_json:me,isOriginalHost:ne,support_call_out:Ee,liveTranscription:ce,logConfig:_e,toll_numbers_json:Ne,h323Password:oe,liveStreamInfo:Se,rc_auto_delete:re,jwt_rc:we,op_rc:Ae,mediaSDKVersion:Pe,mediaSDKPathPrefix:Oe,zmk:Ke,fileTransfer:St,fileServerDomain:st,accountId:yt,whiteboardCdnPath:$e,mediaFeatureOptions:ot,websdkClientFeatureOptions:it,sipDomain:Ie,enableVsdkInteractiveLiveStream:tt,enableHybridRWG:mt,supportRtmsApp:Wt}}=y,{lang:cr,password:At,topic:Ve,zlk:Jt,cv:ar,userName:pr}=b;return{isSupportRtmsApp:Wt,meetingNumber:v,meetingId:x,tid:k,ts:C,auth:A,passWord:At,trackAuth:R,customerKey:U,encryptedRWC:JSON.parse(F||"{}"),encryptedGEORWC:JSON.parse($||"{}"),meetingOptions:JSON.parse(G||"{}"),recordingEnable:Y==="1",topic:Ve,userName:$r.get(Cn.WebclientUserName)||pr,cv:ar,zlkJwtToken:Jt,webMediaBlockConfig:D,xmppConfig:JSON.parse(Q||"{}"),callOutCountry:JSON.parse(me||"{}"),lang:cr,isOriginHost:ne,isSupportCallOut:Ee==="1",liveTranscription:JSON.parse(ce||"{}"),logConfig:_e,tollNumbers:Ne===void 0?void 0:JSON.parse(Ne),h323Password:oe,liveStreamInfo:JSON.parse(Se||"{}"),rcAutoDelete:re,jwtRc:we,opRc:Ae,mediaSDKPath:Pe&&Oe?`${C0(Oe)}/${Pe}`:void 0,zmk:Ke,fileTransfer:JSON.parse(St||"{}"),fileServerDomain:st,accountId:yt,mediaFeatureOptions:ot,websdkClientFeatureOptions:it,sipDomain:Ie,enableVsdkInteractiveLiveStream:tt,whiteboardCdnPath:$e,enableHybridRWG:mt}}return y})(i,r.payload);var a;c&&(r==null||(a=r.payload)===null||a===void 0||a.lang,console.log("Update VideoSDK-Web to the latest version to optimize meeting experience","https://developers.zoom.us/docs/video-sdk/web/"));const p=[Mn(Yi(d)),qB(mD,t,bA())],m=(y=>{const b=[];if(y){const v=y.split("").reverse();Object.keys(Ju).filter((C=>/M:\d+(,\d+)*;V:\d+(,\d+)*/.test(Ju[C]))).forEach((C=>{const A=Ju[C];let[R,x]=A.split(";");R.startsWith("V:")&&([R,x]=[x,R]);const k=x.slice(2).split(",").map(($=>v[Number($)-1])).reverse().join(""),D=parseInt(k,16),F=c$[A];F&&(Array.isArray(F)?F:[F]).forEach(($=>{const U=$.mask?(D&$.mask)>0:D;b.push(Mn($.action(U)))}))}))}return b})(l);return m.length>0&&p.unshift(...m),_d(...p)}return qt})),Fs(b5(performance.now())))}))),pingRWCEpic:mD,retryPingRWCEpic:(e,t)=>e.pipe(Mt(`${EA}`),go(la),Be((()=>t.value.meeting.meetingStatus===di.Initial&&t.value.socket.zoomSocketStatus===wn.Closed)),Gr((()=>{const{meeting:{meetingId:r,meetingNumber:n,userName:o},socket:{retryCount:i,rwgServerList:a}}=t.value,s=a==null?void 0:a[i-1];return Rw.makeLogger(["Join Meeting Flow"]).info(`ping rwc retry. Last failed rwc:${s==null?void 0:s.rwc}, last failed rwg:${s==null?void 0:s.rwg}, retry count:${i}, meeting detail:${JSON.stringify({meetingId:r,meetingNumber:Oi(n),userName:Oi(o)})}, rwc log:${Td.getLog()}`,["Ping RWC Retry"]),ft(Td.retry()).pipe(p9(t))})))});function lv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var Tz=(function e(t,r){function n(o,i,a){if(typeof document<"u"){typeof(a=lv({},r,a)).expires=="number"&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=o+"="+t.write(i,o)+s}}return Object.create({set:n,get:function(o){if(typeof document<"u"&&(!arguments.length||o)){for(var i=document.cookie?document.cookie.split("; "):[],a={},s=0;s<i.length;s++){var l=i[s].split("="),c=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(a[d]=t.read(c,d),o===d)break}catch{}}return o?a[o]:a}},remove:function(o,i){n(o,"",lv({},i,{expires:-1}))},withAttributes:function(o){return e(this.converter,lv({},this.attributes,o))},withConverter:function(o){return e(lv({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})})({read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const{WebclientIsOnHold:Oz,WebclientOpt:_z,WebclientParticipantId:Pz,WebclientZoomId:xz,WebclientMeetingToken:Dz}=Cn,{WebclientDeviceId:vD}=_C;function yD({retryCount:e,rwgServerList:t,userName:r,auth:n,trackAuth:o,meetingId:i,customerKey:a,tid:s,lang:l,ts:c,bid:d,botk:p,confID:m,zlkJwtToken:y,isWebRtcAudioCapable:b,isMeetingReset:v,cameraDevicesList:C,isWhiteboardEnabled:A,isWebrtcVideoCapable:R,webRtcAudioMode:x,mediaFeatureOptions:k}){const D=Tz.get("_zm_mtk_guid");let F=$r.get(vD);if(F||(F=sm(),$r.set(vD,F,fn.LocalStorage)),t.length>e){var $;const U=t[e],G={dn2:Po(r),auth:n,browser:`${Yt.browser}${Yt.browserVersion} ${($=window)!==null&&$!==void 0&&$.crossOriginIsolated?"SAB":""}`,trackAuth:o,mid:i,tid:s,lang:l,ts:c,"ZM-CID":F,_ZM_MTG_TRACK_ID:D||"",customer_key:Po(a),cfs:0,islch:1};if(y)try{const{vendor:ne}=Ms(y);ne&&Object.assign(G,{vendor:ne})}catch(ne){console.log(ne)}U.rwcAuth?Object.assign(G,{rwcAuth:U.rwcAuth}):U.rwcToken&&Object.assign(G,{rwcToken:U.rwcToken});const Y=Yt.isIE?1:Yt.isIE||Yt.isSupportEssentialAudioAndVideoAbility?2:0;Object.assign(G,{as_type:Y}),[{key:_z,queryKey:"opt"},{key:Pz,queryKey:"participantID"},{key:xz,queryKey:"zoomid"}].forEach((ne=>{const Ee=$r.get(ne.key);Ee!==void 0&&(G[ne.queryKey]=Ee)}));const Q=d&&p&&m;Q&&Object.assign(G,{bid:Po(d),confID:m}),$r.get(Dz)&&Object.assign(G,{isdj:1}),Object.assign(G,{from:Yt.isAndroidBrowser?"android":Yt.isIOSMobile?"ios":"other"}),b&&Object.assign(G,{useABAudio:x}),Object.assign(G,{clientCaps:Nz({isAudioBridgeEnabled:b,isBO:Q,mediaFeatureOptions:k,isWhiteboardEnabled:A})}),Object.assign(G,{clientCapsEx:Mz({isWhiteboardEnabled:A})}),Object.assign(G,{useWBVideo:R?1:0});const me=v?C.length>0?1:0:1;return Object.assign(G,{isCamera:me}),Object.assign(G,{clientOS:Yt.isAndroidOrIOSBrowser||Yt.isHarmonyOS?Yt.isIOSMobile?"ios":"android":Yt.isMacOS?"mac":"win"}),Object.assign(G,{audioFeature:dr.getAudioFeatureFlag(b)}),{queryObject:{...G},rwgServer:U}}return null}function Nz(e){const{isAudioBridgeEnabled:t,isBO:r,mediaFeatureOptions:n,isWhiteboardEnabled:o}=e;let i=Pa.WebCameraIndication|Pa.SendMeetingTokenSeparately|Pa.SmartSummary|Pa.LocalRecording|Pa.LocalRecordingGrantPermission|Pa.UnifyErrorType;const a=dr.getPTZCapability();return(a.pan||a.tilt||a.zoom)&&(i|=Pa.SupportFarEndCameraControl),o&&(i|=Pa.SupportWhiteboard),dr.isSupportVideoShare()&&(i|=Pa.SupportVideoShare),t&&dr.isSupportAudioBridgeAVSync()&&(i|=Pa.WebrtcAudioRtcpTime),dr.isSupportShareMultiStream()&&(i|=Pa.ShareMultiStream),dr.isSupportVideoLTR()&&(i|=Pa.VideoLTR),r||(i|=Pa.RequestRemoteControl),dr.isSupportFullHDVideo(n||"")&&(i|=Pa.SupportSend1080PVideo),dr.isSupportFullHDVideoShare(n||"")&&(i|=Pa.SupportSend1080PVideoShare),i}function Mz({isWhiteboardEnabled:e}){let t=jl.SupportPresenterAnnotation;return e&&(t|=jl.SupportWhiteboard),t|=jl.SupportMMRCommandChannel,t|=jl.SupportShareCameraFeed,t|=jl.SupportAudioShareNetworkQuality,t|=jl.SupportRTMS,t|=jl.SupportVideoSDKInternalCommandChannel,t|=jl.SupportCheckHighLevelQos,dr.isSupportHighLevelQos()&&(t|=jl.SupportHighLevelQos),t}function Od(e,t){const{meeting:{conId:r}}=e.value,n=()=>{const{socket:{zoomSocketStatus:o},meeting:{meetingStatus:i,isMeetingReset:a,conId:s}}=e.value;return!(o===wn.Closed||i!==di.Joined||a||(t??0)>0&&(!r||r!==s))};return t?vc(Zy(t),Be(n)):vc(Be(n))}const dp=on.createAgent();let uv;const Hc=Hd.getInstance();let cv;const pp=O0.getInstance();let dv;const bD={zoomSocketStatus:wn.Closed,xmppSocketStatus:wn.Closed,mainSessionSocketStatus:wn.Closed,retryCount:0,rwgServerList:[],xmppRetryCount:0},kz=Mi({[`${Fh}`]:ie(((e,{payload:t})=>{e.zoomSocketStatus=t.status})),[`${I5}`]:ie(((e,{payload:t})=>{const{rwgServerList:r}=e;r.find((n=>n.rwg===t.rwg))||r.push(t)})),[`${EA}`]:ie(((e,{payload:t})=>{e.retryCount=t})),[`${Ey}`]:ie(((e,{payload:t})=>{e.xmppSocketStatus=t})),[`${Cy}`]:ie(((e,{payload:t})=>{e.mainSessionSocketStatus=t})),[`${Pb}`]:ie(((e,{payload:t})=>{e.xmppRetryCount=t})),[`${A5}`]:()=>bD},bD),Lz={mainSessionEpics0:(e,t)=>e.pipe(Mt(`${pC}`),Xt(t),Be((([,r])=>r.socket.mainSessionSocketStatus==="closed")),Gr((([,r])=>{const{meeting:{svcUrl:n,meetingNumber:o,conId:i,isRlbTP:a}}=r,s=(function(l,c,d){return`wss://${l}/wc/media/${c}?type=m&cid=${d}&mode=2`})(n,o,i);return((l,c)=>(pp.connect(l,c),dv=new xs,xl((d=>pp.on(Sa.Message,d)),(d=>pp.off(Sa.Message,d))).pipe(wt((d=>d.data))).subscribe(dv),dv))(s,a).pipe(wt((l=>{try{return JSON.parse(l)}catch(c){return console.error(c),{evt:0}}})),Be((l=>l.evt!==0)),a8(),wt((l=>du(l))),Fs(Cy(wn.Connecting)))}))),mainSessionEpics1:(e,t)=>e.pipe(Mt(`${pC}`),Gr((()=>{const[r,n,o]=[Sa.Open,Sa.Close,Sa.Error].map((i=>xl((a=>pp.on(i,a)),(a=>pp.off(i,a)))));return $o(r.pipe(Pd(Cy(wn.Connected))),n.pipe(Od(t,500),wt((()=>(ee(ka,{reason:ia.Failover}),Ia(yi.DisconnectMChannel))))),o.pipe(Od(t,500),wt((()=>(ee(ka,{reason:ia.Failover}),Ia(yi.OnErrorMChannel))))))}))),mainSessionEpics2:e=>e.pipe(Mt(`${w5}`),Pd(Cy(wn.Closed)),_t((()=>{var t;pp.close(),(t=dv)===null||t===void 0||t.complete()})))},Fz={epics0:(e,t)=>e.pipe(Mt(`${cC}`),Xt(t),Be((([,r])=>r.socket.zoomSocketStatus===wn.Closed&&!!r.meeting.meetingId)),Gr((([,r])=>(function(n){const{media:{patchedMediaSDKStatus:o},meeting:{isRlbTP:i,isRlbTPReady:a}}=n;return b0([o===hh.Loading?cn(ly,1).pipe(go(Ds)):ft([0]),i?a?ft([0]):cn(ny,1).pipe(go(Ds)):ft([0])])})(r).pipe(Gr((()=>{const{socket:{retryCount:n,rwgServerList:o},meeting:i,breakoutRoom:a,audio:s,video:l,whiteboard:c}=t.value;let d;const p={...i,retryCount:n,rwgServerList:o};if(s){const{isWebRtcAudioCapable:b,webRtcAudioMode:v}=s;Object.assign(p,{isWebRtcAudioCapable:b,webRtcAudioMode:v})}if(l){const{cameraDevicesList:b,isWebrtcVideoCapable:v}=l;Object.assign(p,{cameraDevicesList:b,isWebrtcVideoCapable:v})}if(c&&!(i.zlkJwtToken&&a&&a.currentRoom.status===wr.Joining)){const{isWhiteboardEnabled:b}=c;Object.assign(p,{isWhiteboardEnabled:b})}if(a&&a.currentRoom.status===wr.Joining){const{currentRoom:{boId:b,boConfId:v,boToken:C}}=a;Object.assign(p,{bid:b,botk:C,confID:v})}if(d=i.zlkJwtToken?(function(b){const v=yD(b);if(v){const{queryObject:C,rwgServer:A}=v,{topic:R,cv:x,meetingNumber:k,isUIToolkit:D}=b;return Object.assign(C,{topic:Po(R),iccv:x}),D&&Object.assign(C,{browser:C.browser+" UIToolkit"}),`wss://${A.rwg}/instantsdk/${k}?${new URLSearchParams(C).toString()}`}return null})(p):(function(b){const v=yD(b);if(v){const{queryObject:C,rwgServer:A}=v,{cv:R,meetingNumber:x}=b;return Object.assign(C,{jscv:R,browser:C.browser+" ComponentView"}),[{key:Oz,queryKey:"cfs"}].forEach((k=>{const D=$r.get(k.key);D!==void 0&&(C[k.queryKey]=D)})),`wss://${A.rwg}/wc/api/${x}?${new URLSearchParams(C).toString()}`}return null})(p),d){const b=(m=d,y=i.isRlbTP,dp.connect(m,y),uv=new xs,xl((v=>dp.on(Sa.Message,v)),(v=>dp.off(Sa.Message,v)),(v=>v.data)).subscribe(uv),uv);return $o(b.pipe(Be((v=>typeof v=="string")),wt((v=>{try{return JSON.parse(v)}catch(C){return console.error(C),{evt:0}}})),a8(),lg((v=>{if(v.evt!==0||!v.body||v.body.test!=="invalid parameters!")return Bd(v);ee(_o,{errorCode:vl.InvalidParameter,reason:"Invalid parameter"})})),Fs(Fh({status:wn.Connecting,rwgUrl:d}))),b.pipe(Be((v=>v instanceof ArrayBuffer)),wt((v=>GB(v)))))}var m,y;return qt})))))),epics1:(e,t)=>e.pipe(Mt(`${cC}`),Xt(t),Be((([,r])=>r.socket.zoomSocketStatus===wn.Closed&&!!r.meeting.meetingId)),Gr((()=>{const[r,n,o,i]=[Sa.Open,Sa.Close,Sa.Error,Sa.Inactive].map((a=>xl((s=>dp.on(a,s)),(s=>dp.off(a,s)))));return $o(r.pipe(Fe((()=>$o(Mn(Fh({status:wn.Connected})),ao(6e4).pipe(Xt(t),Be((([,a])=>a.meeting.meetingStatus===di.Initial&&!a.meeting.isMeetingReset)),wt((()=>(ee(ka,{reason:ia.Failover}),Ia(yi.NoHeartbeat))))))))),n.pipe(Od(t),wt((()=>(ee(ka,{reason:ia.Failover}),Ia(yi.Disconnect))))),i.pipe(Od(t),wt((()=>(ee(ka,{reason:ia.Failover}),Ia(yi.NoHeartbeat))))),o.pipe(Xt(t),Fe((([,a])=>{const{meeting:{meetingStatus:s,isMeetingReset:l},socket:{rwgServerList:c,retryCount:d}}=a,p=[];return s===di.Initial&&c!=null&&c.length?p.push(EA(d+1),Xa({retry:!0})):l||s!==di.Joined||(ee(ka,{reason:ia.Failover}),p.push(Ia(yi.OnError))),ft(p)}))))}))),epics2:(e,t)=>e.pipe(Mt(`${Xa}`),Gr((r=>{const n=[Fh({status:wn.Closed})];return r.payload&&r.payload.retry?ft(n):_d(ft(n),ao(0,Ds).pipe(_t((()=>{var o;t.value.socket.zoomSocketStatus===wn.Closed&&(dp.close(),(o=uv)===null||o===void 0||o.complete())})),sn()))})))},jz=Qi(Fz,{xmppEpics0:(e,t)=>e.pipe(Mt(`${js}`),Fe((()=>{const{meeting:{meetingOptions:r,zlkJwtToken:n,isWebinar:o}}=t.value,i=[];return(r.isPollingEnabled||n||o)&&i.push(Wg()),ft(i)}))),xmppEpics1:(e,t)=>e.pipe(Mt(`${Wg}`),Xt(t),Be((([,r])=>r.socket.xmppSocketStatus===wn.Closed)),Gr((([,r])=>{const{meeting:{svcUrl:n,meetingNumber:o,conId:i,isRlbTP:a}}=r,s=(function(l,c,d){return`wss://${l}/wc/media/${c}?type=x&cid=${d}`})(n,o,i);return((l,c)=>(Hc.connect(l,c),cv=new xs,xl((d=>Hc.on(ru.Message,d)),(d=>Hc.off(ru.Message,d))).subscribe(cv),cv))(s,a).pipe(Be((l=>(l==null?void 0:l.evt)!==void 0)),wt((l=>C5(l))),Fs(Ey(wn.Connecting)))}))),xmppEpics2:(e,t)=>e.pipe(Mt(`${Wg}`),Gr((()=>{const[r,n,o]=[ru.Open,ru.Close,ru.Error].map((a=>xl((s=>Hc.on(a,s)),(s=>Hc.off(a,s))))),i=a=>Fe((()=>{const{socket:{xmppSocketStatus:s,xmppRetryCount:l}}=t.value,c=[];return s===wn.Connecting&&l<3?(c.push(Pb(l+1)),c.push(dC({retry:!0}))):(s===wn.Connected||l>=3)&&(ee(ka,{reason:ia.Failover}),c.push(Ia(a))),ft(c)}));return $o(r.pipe(_t((()=>{const a=(function(){const{isSupportEssentialAudioAndVideoAbility:s,isSupportAudioWorklet:l}=Yt;return s&&l?11:10})();Hc.join(a)})),wt((()=>Ey(wn.Connected)))),n.pipe(Od(t,500),i(yi.DisconnectXmpp)),o.pipe(Od(t,500),i(yi.OnErrorXmppChannel)))}))),xmppEpics3:(e,t)=>e.pipe(Mt(`${dC}`),Gr((r=>{var n;const o=[Ey(wn.Closed)];return(n=r.payload)!==null&&n!==void 0&&n.retry?ft(o):_d(ft(o),ao(0,Ds).pipe(_t((()=>{var i;t.value.socket.xmppSocketStatus===wn.Closed&&(Hc.close(),(i=cv)===null||i===void 0||i.complete())})),sn()))}))),xmppEpics4:(e,t)=>e.pipe(Mt(`${Pb}`),Be((r=>r.payload<=3)),Fe((r=>ft([r]).pipe(Zy(1e3*Math.pow(2,r.payload-1))))),Od(t),wt((()=>Wg())))},Lz),SD={audioEncodeStatus:"initial",audioDecodeStatus:"initial",videoEncodeStatus:"initial",videoDecodeStatus:"initial",sharingEncodeStatus:"initial",sharingDecodeStatus:"initial",assetsPath:"",mediaConstraints:void 0,enforceMultipleVideos:!1,enforceVirtualBackground:!1,isMediaAgentInitialized:!1,disableRenderLimits:!1,enforceAudioDenoiseAdaptive:!1},Vz=Mi({[`${mC}`]:ie(((e,{payload:t})=>{e.audioDecodeStatus=t})),[`${hC}`]:ie(((e,{payload:t})=>{e.audioEncodeStatus=t})),[`${wy}`]:ie(((e,{payload:t})=>{e.sharingDecodeStatus=t})),[`${yC}`]:ie(((e,{payload:t})=>{e.sharingEncodeStatus=t})),[`${vC}`]:ie(((e,{payload:t})=>{e.videoDecodeStatus=t})),[`${gC}`]:ie(((e,{payload:t})=>{e.videoEncodeStatus=t})),[`${CA}`]:ie(((e,{payload:t})=>{e.mediaConstraints=t.mediaConstraints,e.assetsPath=t.assetsPath,e.enforceMultipleVideos=!!t.enforceMultipleVideos,e.enforceVirtualBackground=t.enforceVirtualBackground,e.skipJsMedia=t.skipJsMedia,e.patchJsMedia=t.patchJsMedia,e.alternativeNameForVideoPlayer=t.alternativeNameForVideoPlayer,t.enforceMultipleVideos&&typeof t.enforceMultipleVideos=="object"&&(e.disableRenderLimits=!!t.enforceMultipleVideos.disableRenderLimits)})),[`${T5}`]:ie(((e,{payload:t})=>{const{type:r,encryptKey:n,additionalType:o}=t,i={encryptKey:n,additionalType:o};r==="audio"?e.audioEncrypt=i:r==="video"?e.videoEncrypt=i:r==="sharing"&&(e.sharingEncrypt=i)})),[`${O5}`]:ie(((e,{payload:t})=>{e.isEnableDecoderInWorklet=t})),[`${Iy}`]:ie(((e,{payload:t})=>{e.patchedMediaSDKStatus=t})),[`${_5}`]:ie(((e,{payload:t})=>{e.assetsPath=t})),[`${bC}`]:ie(((e,{payload:t})=>{e.isMediaAgentInitialized=t})),[`${P5}`]:ie(((e,{payload:t})=>{e.enforceAudioDenoiseAdaptive=t})),[`${x5}`]:e=>({...SD,mediaConstraints:e.mediaConstraints,assetsPath:e.assetsPath,enforceMultipleVideos:e.enforceMultipleVideos,disableRenderLimits:e.disableRenderLimits,enforceVirtualBackground:e.enforceVirtualBackground,alternativeNameForVideoPlayer:e.alternativeNameForVideoPlayer})},SD),{InitSuccessVideo:x1,InitSuccessAudio:D1,InitSuccessSharing:N1,InitFailedVideo:M1,InitFailedAudio:k1,InitFailedSharing:L1,HealthCheckFailed:ED,AudioWebsocketBroken:CD,VideoWebsocketBroken:wD,AudioStreamFailed:ID,VideoStreamFailed:AD,WebglContextInvalid:RD,WasmMemoryFail:TD,AudioStreamMuted:OD,RecoverWebrtcAudio:_D,AudioBridgeSocketConnectionError:PD,VideoStreamMuted:xD}=ut,ni=Xi(dr.getInstance()),f9=Ei.getInstance(),DD=f9.makeLogger(["Media Agent"]),pv=[],Bz={epics0:(e,t)=>e.pipe(Mt(`${Yi}`),Gr((r=>{var n;const{meeting:{isMeetingReset:o}}=t.value;return Yt.mediaFeatureOptions=(n=r.payload)===null||n===void 0?void 0:n.mediaFeatureOptions,e.pipe(Wo(e.pipe(Mt(`${Xa}`),Be((i=>{var a;return!((a=i.payload)!==null&&a!==void 0&&a.retry)})),Fr(1))),Mt(`${js}`),Fr(1),_l((()=>{var i;const{logger:a,media:{mediaConstraints:s,assetsPath:l,enforceMultipleVideos:c,enforceVirtualBackground:d,enforceAudioDenoiseAdaptive:p},meeting:{meetingId:m,meetingNumber:y,mediaFeatureOptions:b,webMediaBlockConfig:v}}=t.value,C=a!=null&&(i=a.options)!==null&&i!==void 0&&i.enable?Ei.getInstance().makeLogger(["MEDIA SDK"]):void 0;return(function(A){const{media:{patchedMediaSDKStatus:R}}=A;return R===hh.Loading?jn(cn(ly,1)):Promise.resolve()})(t.value).then((()=>{const A=[];return ni.init({...y6(c,d,p),globalTracingLogger:jH(C),mid:m,meetingNumber:y,mediaSDKConfig:{mediaFeatureOptions:b,webMediaBlockConfig:v,mediaSDKCDNPath:l},rwgAgent:on.createAgent()}),A.push(bC(!0)),o&&s!==void 0&&l!==void 0&&A.push(fC()),A})).catch((()=>[]))})))}))),epics1:(e,t)=>e.pipe(Mt(`${Yi}`),Be((r=>{const{payload:{mediaSDKPath:n}}=r,{media:{skipJsMedia:o,patchJsMedia:i,assetsPath:a},meeting:{isMeetingReset:s}}=t.value;return!o&&h6(a)&&!!i&&!!n&&!s})),Gr((r=>{const{payload:{mediaSDKPath:n}}=r,o=C0(n);return ft(new Promise(((i,a)=>{const s=`${o}/${Zc}`;"JsMediaSDK_Instance"in window&&(window.JsMediaSDK_Instance_backup=window.JsMediaSDK_Instance,delete window.JsMediaSDK_Instance),Ym(s,(()=>{"JsMediaSDK_Instance_backup"in window&&delete window.JsMediaSDK_Instance_backup,DD.info(`patched media sdk url:${s}`),i("")}),(()=>{"JsMediaSDK_Instance_backup"in window&&(window.JsMediaSDK_Instance=window.JsMediaSDK_Instance_backup,delete window.JsMediaSDK_Instance_backup),DD.error(`cannot load patched media sdk :${s}`),a()}))}))).pipe(Fe((()=>(ee(ly),ft([Iy(hh.Done),_5(o)])))),oa((()=>(ee(ly),ft([Iy(hh.Done)])))),Fs(Iy(hh.Loading)))}))),epics2:(e,t)=>(function(r,n){return r.pipe(Mt(`${fC}`),Be((()=>{const{media:{assetsPath:o,mediaConstraints:i}}=n.value;return o!==void 0&&i!==void 0})),Gr((()=>{const{media:{isMediaAgentInitialized:o}}=n.value;return o?ft([0]):r.pipe(Mt(`${bC}`),Be((i=>!!i.payload)),Fr(1))})))})(e,t).pipe(_t((()=>{const{media:{assetsPath:r,mediaConstraints:n}}=t.value;ni.notifySDKMeetingReady(),r&&n&&ni.setAssetsAndConstraint(r,n),kd(t).pipe(Gr((o=>ft(GE.acquire().then((()=>o)))))).subscribe((o=>{const{meeting:{svcUrl:i,meetingNumber:a,conId:s,e2eEncrypt:l,userId:c,isWebinar:d,enableWebtransport:p,webtransportPort:m,isUseWBVideo:y,mediasdkConfig:b,reportDomain:v,abToken:C,confId:A},media:{alternativeNameForVideoPlayer:R,enforceMultipleVideos:x,disableRenderLimits:k},audio:D,video:F}=t.value;var $;o&&(ni.connect({svcUrl:i,meetingNumber:a,conId:s,confId:A,e2eEncrypt:l,isViewOnly:ci(o.userRole),currentUserId:c,isWebinar:d,reportDomain:v,abToken:C??"",enableWebtransport:!!p,webtransportPort:m??0,isWebRtcVideoCapable:y,isWebRtcAudioCapable:!(D==null||!D.isWebRtcAudioCapable),rendererType:($=F==null?void 0:F.rendererType)!==null&&$!==void 0?$:0,webrtcMode:HV(!(D==null||!D.isWebRtcAudioCapable),y,!!((D==null?void 0:D.webRtcAudioMode)&q3.WebRTCAudio2)),mediasdkConfig:b??{},enforceMultipleVideos:x,disableRenderLimits:k}),dr.initVideoPlayer({mediaSDK:()=>ni.instance,tagName:R,failover:"1"}))}))})),Gr((()=>xl((r=>ni.registerCallback(r)),(r=>ni.unregisterCallback(r)),((r,n)=>({type:r,data:n}))).pipe(wt((r=>R5(r))))))),epics3:e=>{return Er(e,[x1,D1,N1,M1,k1,L1]).pipe((t=r=>{const{payload:{type:n,data:o}}=r;if(n===D1||n===k1){if(o===ma.EncodeSuccess)return ee(OM),Mn(hC("success"));if(o===ma.DecodeSuccess)return ee(_M),Mn(mC("success"));if(o===ma.EncodeFailed)return ee(NM),Mn(hC("failed"));if(o===ma.DecodeFailed)return ee(MM),Mn(mC("failed"))}else if(n===x1||n===M1){if(o===ma.EncodeSuccess)return ee(PM),Mn(gC("success"));if(o===ma.DecodeSuccess)return ee(xM),Mn(vC("success"));if(o===ma.EncodeFailed)return ee(kM),Mn(gC("failed"));if(o===ma.DecodeFailed)return ee(LM),Mn(vC("failed"))}else if(n===N1||n===L1){if(o===ma.EncodeSuccess)return ee(DM),Mn(yC("success"));if(o===ma.DecodeSuccess)return ee(_E),Mn(wy("success"));if(o===ma.EncodeFailed)return ee(FM),Mn(yC("failed"));if(o===ma.DecodeFailed)return ee(jM),Mn(wy("failed"));if(n===N1&&o===void 0)return ee(_E),Mn(wy("success"))}},vc(Fe(((r,n)=>t(r)||qt)))));var t},epics4:(e,t)=>Er(e,[x1,D1]).pipe(Gr((()=>typeof navigator.mediaDevices=="object"?$o(Ld(),$o(Er(e,ut.StartVideoCaptureSuccess),Er(e,ut.DeviceChangeEvent),Er(e,ut.UserGrantCaptureAudio).pipe(Be((()=>!t.value.audio.isUserGrantCaptureAudio))),Er(e,ut.JoinComputerAudioComplete).pipe(Be((r=>{var n;return!((n=r.payload.data)===null||n===void 0||!n.isPassive)}))),cn(PE).pipe(Be((r=>r.state==="granted")))).pipe(Fe((()=>Ld().pipe(_t((()=>{setTimeout((()=>{ee(VM)}),50)}))))))).pipe(Xt(t),Fe((([r,n])=>{const o=[h8(r.microphones),m8(r.speakers),mA(r.cameras)];if(n.audio){const{audio:{activeMicrophone:s,activeSpeaker:l,microphoneDevicesList:c,speakerDevicesList:d,isUsingMediaPlayback:p},video:{cameraDevicesList:m,activeCamera:y,isUsingMediaPlayback:b}}=n,v=ir(n),{microphones:C,speakers:A,cameras:R}=r,x=c.filter((F=>C.findIndex(($=>$.deviceId===F.deviceId))===-1)),k=d.filter((F=>A.findIndex(($=>$.deviceId===F.deviceId))===-1)),D=m.filter((F=>R.findIndex(($=>$.deviceId===F.deviceId))===-1));if(x.length>0){if(x.some((F=>_S(F,s,c)))){const F=Gf(C);p||ni.changeMicrophone("default",F==null?void 0:F.label,!(v==null||!v.muted)),o.push(lm("default"))}}else if(s==="default"){const F=Gf(c),$=Gf(C);!p&&c.length>0&&(F==null?void 0:F.label)!==($==null?void 0:$.label)&&ni.changeMicrophone("default",$==null?void 0:$.label,!(v==null||!v.muted))}var i,a;k.length>0?k.some((F=>_S(F,l,d)))&&(ni.changeSpeaker("default"),o.push(_0("default"))):l==="default"&&d.length>0&&((i=Gf(d))===null||i===void 0?void 0:i.label)!==((a=Gf(A))===null||a===void 0?void 0:a.label)&&ni.changeSpeaker("default"),D.length>0&&D.some((F=>_S(F,y,m)))&&(b||ni.stopCaptureVideo(),o.push(ff(Yt.isAndroidOrIOSBrowser?qi.User:"default")))}return ft(o)}))):qt))),epics5:(e,t)=>il(e,Vn).pipe(_t((r=>{const{type:n,payload:{body:o}}=r,i=n===`${du}`;if(o.add){const a=o.add.map((s=>({userid:s.id,sn:s.zoomID&&sa(s.zoomID)})));if(!i){const{meeting:{gcmSessinKey:s}}=t.value;ni.sendUserNodeList(a,s)}ni.updateUserMediaSN({added:a,isFromMainSession:i,iVType:ol.SHARING_DECODE}),i&&ni.updateUserMediaSN({added:a,isFromMainSession:i,iVType:ol.AUDIO_DECODE})}if(o.remove&&o.remove.length>0){if(!i){const{meeting:{gcmSessinKey:a}}=t.value;ni.sendUserNodeList(o.remove.map((s=>({userid:s.id,bremove:!0}))),a)}ni.updateUserMediaSN({removed:o.remove.map((a=>a.id)),isFromMainSession:i,iVType:ol.SHARING_DECODE}),i&&ni.updateUserMediaSN({removed:o.remove.map((a=>a.id)),isFromMainSession:i,iVType:ol.AUDIO_DECODE})}})),sn()),epics6:e=>Er(e,ut.AesGcmIvResponse).pipe(_t((t=>{const{payload:{data:{workerType:r,iv:n}}}=t,o=$r.get(Cn.WebclientIVState);if(o){const i={...o,[r]:n};$r.set(Cn.WebclientIVState,i,fn.SessionStorage)}})),sn()),epics7:e=>e.pipe(Mt(`${Bd}`),Be((t=>[EC,gO,wA].includes(t.payload.evt))),wt((t=>{const{payload:{evt:r,body:{encryptKey:n,additionalType:o}}}=t;return T5({type:r===EC?"audio":r===gO?"video":"sharing",encryptKey:n,additionalType:o})}))),epics8:e=>e.pipe(Mt(`${CA}`),_t((t=>{const{payload:r}=t;gi.setMediaOption({assetsPath:r.assetsPath,enforceMultipleVideos:r.enforceMultipleVideos,enforceVirtualBackground:r.enforceVirtualBackground,alternativeNameForVideoPlayer:r.alternativeNameForVideoPlayer})})),sn()),epics9:e=>e.pipe(Mt(`${hf}`,`${Ob}`,`${js}`),_t((()=>{Ka.getInstance().inProgress&&(Ka.getInstance().disconnect(),GE.watch(Ka.getInstance().destroy()))})),sn()),epics10:e=>e.pipe(Mt(`${hf}`,`${Ob}`),Gr((()=>"permissions"in navigator?["microphone","camera"].map((t=>{navigator.permissions.query({name:t}).then((r=>{const n=()=>{ee(PE,{name:t,state:r.state})};n(),r.addEventListener("change",n),pv.push((()=>{r.removeEventListener("change",n)}))})).catch((()=>{}))})):qt)),sn()),epics11:e=>e.pipe(Mt(`${SA}`),Be((t=>t.payload===di.Closed)),_t((()=>{pv.length>0&&(pv.forEach((t=>t())),pv.length=0)})),sn()),epics12:(e,t)=>Er(e,[ED,M1,k1,L1,CD,wD,ID,AD,RD,TD,OD,_D,PD,xD]).pipe(Fe((r=>{const{payload:{type:n,data:o}}=r;let i,a;if(n===CD||n===PD)i={message:"Audio connection failed. Please refresh your browser to reconnect.",type:"audio",code:_a.AudioConnectionFailed};else if(n===wD)i={message:"Connection to remote video has failed. Please refresh your browser to try again.",type:"video",code:_a.VideoConnectionFailed};else if(n===ID)o===mh.Exception?i={message:"Can't access your microphone. Please refresh your browser to try again.",type:"audio",code:_a.AudioStreamEnded}:o===mh.PermissionReset&&(i={message:"Your browser is preventing access to your microphone.Please grant the permission.",type:"audio",code:_a.MicrophonePermissionReset});else if(n===AD)o===mh.Exception?i={message:"Can't access your camera. Please refresh your browser to try again.",type:"video",code:_a.VideoStreamEnded}:o===mh.PermissionReset&&(i={message:"Your browser is preventing access to your camera.Please grant the permission.",type:"video",code:_a.CameraPermissionReset});else if(n===RD)i={message:"Oops! Something went wrong. Please close all browsers and rejoin the meeting.",type:"video",code:_a.WebGlContextInvalid};else if(n===TD)i={message:"Uh-oh! You’re running low on memory. Please close all browsers and rejoin the meeting.",type:"video",code:_a.WasmOutOfMemory};else if(n===ED){let[l,c]=["",0];o===-129?(l="sharing",c=_a.SharingStreamFailed):[-130,-135].includes(o)?(l="video",c=_a.VideoStreamFailed):[-131,-136].includes(o)&&(l="audio",c=_a.AudioStreamFailed),i={message:"Oops! Something went wrong. Please close all browsers and rejoin the meeting.",type:l,code:c}}else if(n===OD){const l="audio";let[c,d]=[0,""];o?(c=_a.MicrophoneMuted,d="Your mic is muted in system or browser settings. Please open your settings to unmute and adjust the level."):(c=_a.AudioStreamMuted,d="Audio was interrupted by the system. Please click anywhere to resume playback.",a=qE().pipe(Wo(Er(e,ut.AudioStreamUnmuted).pipe(Fr(1))),_t((()=>{b6(ni,t.value)})))),i={message:d,type:l,code:c}}else if(n===_D)o===!1&&(i={message:"Audio playback was interrupted. Please click anywhere to resume playback.",type:"audio",code:_a.AudioPlaybackInterrupted});else if(n===xD&&t.value.video.isCurrentUserStartedVideo){const l="video",c=_a.VideoStreamMuted;a=qE().pipe(Wo(Er(e,ut.VideoStreamUnmuted).pipe(Fr(1))),_t((()=>{(function(p,m){const{video:{isCurrentUserStartedVideo:y,activeCamera:b,isUsingMediaPlayback:v,customizedVideoOption:C}}=m;if(y&&!v){const{captureHeight:A,captureWidth:R,originalRatio:x,hd:k,fullHd:D}=C??{};p.changeCamera({cameraDeviceId:b,usingFacingMode:Xm.includes(b),width:R,height:A,originalRatio:!!x,hd:!!k||!!D,isSameDevice:!0})}})(ni,t.value)}))),i={message:"Video was interrupted by the system. Please click anywhere to resume.",type:l,code:c}}var s;return i&&(f9.report(`active media failed. reason:${n}; message:${i.message}`,`${(s=i.type)===null||s===void 0?void 0:s.replace(/^./,(l=>l.toUpperCase()))} exception flow`),ee(BM,i)),a??ft([])})),sn()),epics13:e=>Ct(e,4366).pipe(_t((t=>{const{payload:r}=t;ni.bypassMediaMessage(r)})),sn()),epics14:(e,t)=>Er(e,ut.NotifyUIFailover).pipe(Be((()=>!t.value.meeting.isMeetingReset&&t.value.meeting.meetingStatus===di.Joined)),wt((r=>{const{payload:{data:n}}=r;ee(ka,{reason:ia.Failover});let o=yi.NotifyUiFailover;return(n==null?void 0:n.audio)!==void 0&&(Yt.isAndroidOrIOSBrowser||Yt.isHarmonyOS||n.audio!==cT.FallbackToWasm||$r.set(Cn.VideoSDKWebRTCAudioFallbackWasm,1,fn.SessionStorage)),(n==null?void 0:n.video)!==void 0&&(o=yi.NotifyUIWMSCFailover,n.video===cT.FallbackToWasm&&$r.set(Cn.VideoSDKWebRTCVideoFallbackWasm,1,fn.SessionStorage)),Ia(o)})))},Hz=Qi(Bz),ND={processorCreatedList:[],processorInstanceList:[]},Uz={meeting:Cz,socket:kz,participants:vH,media:Vz,processor:Mi({[`${xk}`]:ie(((e,{payload:t})=>{e.processorCreatedList.push(t)})),[`${Dk}`]:ie(((e,{payload:t})=>{e.processorInstanceList.push(t)})),[`${Nk}`]:ie(((e,{payload:t})=>{const r=e.processorInstanceList.findIndex((n=>n.name===t.name&&n.type===t.type));r>=0&&e.processorInstanceList.splice(r,1)})),[`${Mk}`]:()=>({...ND})},ND)},$z=d9;function MD(e){return(function(t){for(var r=Object.keys(t),n={},o=0;o<r.length;o++){var i=r[o];typeof t[i]=="function"&&(n[i]=t[i])}var a,s=Object.keys(n);try{(function(l){Object.keys(l).forEach((function(c){var d=l[c];if(d(void 0,{type:i0.INIT})===void 0)throw new Error(ga(12));if(d(void 0,{type:i0.PROBE_UNKNOWN_ACTION()})===void 0)throw new Error(ga(13))}))})(n)}catch(l){a=l}return function(l,c){if(l===void 0&&(l={}),a)throw a;for(var d=!1,p={},m=0;m<s.length;m++){var y=s[m],b=n[y],v=l[y],C=b(v,c);if(C===void 0)throw c&&c.type,new Error(ga(14));p[y]=C,d=d||C!==v}return(d=d||s.length!==Object.keys(l).length)?p:l}})({...Uz,...e})}class Jl extends uC{static createClient(){if(!this.meetingClient){const t=(function(){const r=(function(s){s===void 0&&(s={});var l,c=new yT.constructor(yT.schedulerActionCtor),d=new xs,p=function(m){l=m;var y=new xs,b=new xs,v=y.asObservable().pipe(go(c)),C=new KB(b.pipe(go(c)),l.getState());return d.pipe(wt((function(A){var R=A(v,C,s.dependencies);if(!R)throw new TypeError('Your root Epic "'+(A.name||"<anonymous>")+`" does not return a stream. Double check you're not missing a return statement!`);return R})),Fe((function(A){return ft(A).pipe(mE(c),go(c))}))).subscribe(l.dispatch),function(A){return function(R){var x=A(R);return b.next(l.getState()),y.next(R),x}}};return p.run=function(m){d.next(m)},p})(),{epicSubject:n,rootEpic:o}=(function(){const s=new xj(D5(Rz,jz,bH,Hz));return{epicSubject:s,rootEpic:(l,c,d)=>s.pipe(Wo(l.pipe(Mt(`${o5}`))),Fe((p=>p(l,c,d))))}})(),i=[r],a=c9(MD(),$z((function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return function(d){return function(){var p=d.apply(void 0,arguments),m=function(){throw new Error(ga(15))},y={getState:p.getState,dispatch:function(){return m.apply(void 0,arguments)}},b=l.map((function(v){return v(y)}));return m=d9.apply(void 0,b)(p.dispatch),cD(cD({},p),{},{dispatch:m})}}})(...i)));return a.asyncReducers={},a.injectReducer=(s,l)=>{a.asyncReducers[s]===void 0&&(a.asyncReducers[s]=l,a.replaceReducer(MD(a.asyncReducers)))},a.injectEpic=s=>{n.next(s)},r.run(o),a})();this.meetingClient=new gz(t)}return this.meetingClient}}function Wz(e,t,r){return(t=(function(n){var o=(function(i,a){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,a);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)})(n,"string");return typeof o=="symbol"?o:o+""})(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function qa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kD(Object(r),!0).forEach((function(n){Wz(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kD(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Em(e,t){if(e==null)return{};var r,n,o=(function(a,s){if(a==null)return{};var l={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(s.indexOf(c)!==-1)continue;l[c]=a[c]}return l})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const dg="2.3.12",F1="INVALID_PARAMETERS",zz="https://dmogdx0jrul3u.cloudfront.net/videosdk/".concat(dg,"/lib"),Kz="https://source.zoom.us/videosdk/".concat(dg,"/lib"),Gz="https://jssdk.zoomus.cn/videosdk/".concat(dg,"/lib"),j1=e=>typeof e=="string"&&e.length>0,h9=e=>{let t="";switch(e){case"Global":t=Kz;break;case"CN":t=Gz;break;case"CDN":t=zz;break;default:t=e}return t},m9=["userId","avatar","displayName","isHost","audio","muted","bVideoOn","sharerOn","sharerPause","userIdentity","isSpeakerOnly","bVideoShare","bShareAudioOn","userGuid","isPhoneUser","isInFailover","userKey",{from:"isCoHost",to:"isManager"},{from:"bAllowISORecord",to:"isAllowIndividualRecording"},{from:"bVideoConnect",to:"isVideoConnect"},{from:"bShareToBORooms",to:"bShareToSubsession"},{from:"bid",to:"subsessionId"},{from:"phoneNumber",to:e=>e===void 0?{}:{phoneNumber:e}}],g9=[...m9,{from:"userGUID",to:"userGuid"},{from:"bCoHost",to:e=>({isManager:!!e})},{from:"userType",to:e=>({isPhoneUser:!(5&~e)})},{from:"bid",to:e=>e?{subsessionId:e}:{}},{from:"bInFailover",to:"isInFailover"},{from:"userIdentity",to:"userKey"}],qz=g9.map((e=>typeof e=="string"?e:e.from));function v9(e,t){return typeof e=="string"?{["".concat(e)]:t}:typeof e.to=="string"?{["".concat(e.to)]:t}:e.to(t)}function md(e){if(e)return m9.reduce(((t,r)=>{const n=typeof r=="string"?r:r.from,o=v9(r,e[n]);return qa(qa({},t),o)}),{})}function V1(e){if(e)return Object.keys(e).reduce(((t,r)=>{const n=qz.indexOf(r);if(n>-1){const o=g9[n],i=typeof o=="string"?o:o.from,a=v9(o,e[i]);return qa(qa({},t),a)}return t}),{})}const Ye=Symbol("stream");class Jz{constructor(t){this[Ye]=void 0,this[Ye]=t}startAudio(t){return this[Ye].startAudio(t)}stopAudio(){return this[Ye].stopAudio()}muteAudio(t){return this[Ye].muteAudio(t)}unmuteAudio(t){return this[Ye].unmuteAudio(t)}inviteByPhone(t,r,n,o){return this[Ye].dialOut(t,r,n,o)}cancelInviteByPhone(t,r,n){return this[Ye].cancelDialOut(t,r,n)}hangup(){return this[Ye].hangup()}getCurrentSessionCallinInfo(){return this[Ye].getDialInInfo()}muteShareAudio(t){return this[Ye].muteShareAudio(t)}unmuteShareAudio(t){return this[Ye].unmuteShareAudio(t)}subscribeAudioStatisticData(t){return this[Ye].subscribeAudioStatisticData(t)}unsubscribeAudioStatisticData(t){return this[Ye].unsubscribeAudioStatisticData(t)}muteUserAudioLocally(t){return this[Ye].muteUserAudioLocally(t)}unmuteUserAudioLocally(t){return this[Ye].unmuteUserAudioLocally(t)}adjustUserAudioVolumeLocally(t,r){return this[Ye].adjustUserAudioVolumeLocally(t,r)}enableBackgroundNoiseSuppression(t){return this[Ye].enableBackgroundNoiseSuppression(t)}enableSyncButtonsOnHeadset(t){return this[Ye].enableSyncButtonsOnHeadset(t)}muteAllUserAudioLocally(){return this[Ye].muteAllUserAudioLocally()}unmuteAllUserAudioLocally(){return this[Ye].unmuteAllUserAudioLocally()}enableOriginalSound(t){return this[Ye].enableOriginalSound(t)}callCRCDevice(t,r){return this[Ye].callCRCDevice(t,r)}cancelCallCRCDevice(t,r){return this[Ye].cancelCallCRCDevice(t,r)}startSecondaryAudio(t,r){return this[Ye].startSecondaryAudio(t,r)}stopSecondaryAudio(){return this[Ye].stopSecondaryAudio()}muteAllAudio(){return this[Ye].muteAllAudio()}unmuteAllAudio(){return this[Ye].unmuteAllAudio()}muteAudioUponStartAudio(t){return this[Ye].muteAudioUponEntry(t)}allowAudioUnmutedBySelf(t){return this[Ye].allowUnmuteAudioThemselves(t)}isAudioMuted(t){return this[Ye].isAudioMuted(t)}getMicList(){return this[Ye].getMicList()}getSpeakerList(){return this[Ye].getSpeakerList()}getActiveMicrophone(){return this[Ye].getActiveMicrophone()}getActiveSpeaker(){return this[Ye].getActiveSpeaker()}switchMicrophone(t){return this[Ye].switchMicrophone(t)}switchSpeaker(t){return this[Ye].switchSpeaker(t)}isSupportPhoneFeature(){return this[Ye].isSupportCallOut()}getSupportCountryInfo(){return this[Ye].getDialOutCountries()}getInviteByPhoneStatus(){return this[Ye].getDialOutStatus()}getShareAudioStatus(){return this[Ye].getShareAudioStatus()}isOthersShareAudioMutedLocally(t){return this[Ye].isOthersShareAudioMutedLocally(t)}getAudioStatisticData(){return this[Ye].getAudioStatisticData()}isUserAudioMutedLocally(t){return this[Ye].isUserAudioMutedLocally(t)}getUserVolumeLocally(t){return this[Ye].getUserVolumeLocally(t)}isSupportMicrophoneAndShareAudioSimultaneously(){return this[Ye].isSupportMicrophoneAndShareAudioSimultaneously()}getAudioMediaPlaybackController(){return this[Ye].getAudioMediaPlaybackController()}isAllowAudioUnmutedBySelf(){return this[Ye].isAllowToUnmute()}getSessionSIPAddress(){return this[Ye].getSessionSIPAddress()}isSupportBackgroundNoiseSuppression(){return this[Ye].isSupportBackgroundNoiseSuppression()}startVideo(t){return this[Ye].startVideo(t)}stopVideo(){return this[Ye].stopVideo()}createProcessor(t){return this[Ye].createProcessor(t)}addProcessor(t){return this[Ye].addProcessor(t)}removeProcessor(t){return this[Ye].removeProcessor(t)}renderVideo(t,r,n,o,i,a,s,l){return this[Ye].renderVideo(t,r,n,o,i,a,s,l)}stopRenderVideo(t,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return this[Ye].stopRenderVideo(t,r,n,o,i,a)}updateVideoCanvasDimension(t,r,n){return this[Ye].updateVideoCanvasDimension(t,r,n)}adjustRenderedVideoPosition(t,r,n,o,i,a,s){return this[Ye].adjustRenderedVideoPosition(t,r,n,o,i,a,s)}clearVideoCanvas(t,r){return this[Ye].clearVideoCanvas(t,r)}mirrorVideo(t){return this[Ye].mirrorVideo(t)}enableHardwareAcceleration(t){return this[Ye].enableHardwareAcceleration(t)}previewVirtualBackground(t,r,n,o){return this[Ye].previewVirtualBackground(t,r,n,o)}updateVirtualBackgroundImage(t,r){return this[Ye].updateVirtualBackgroundImage(t,r)}stopPreviewVirtualBackground(){return this[Ye].stopPreviewVirtualBackground()}previewVideoMask(t,r){return this[Ye].previewVideoMask(t,r)}updateVideoMask(t){return this[Ye].updateVideoMask(t)}stopPreviewVideoMask(){return this[Ye].stopPreviewVideoMask()}switchCamera(t){return this[Ye].switchCamera(t)}subscribeVideoStatisticData(t){return this[Ye].subscribeVideoStatisticData(t)}unsubscribeVideoStatisticData(t){return this[Ye].unsubscribeVideoStatisticData(t)}attachVideo(t,r,n){return this[Ye].attachVideo(t,r,n)}detachVideo(t,r){return this[Ye].detachVideo(t,r)}spotlightVideo(t,r){return this[Ye].spotlight(t,r!=null&&r)}removeSpotlightedVideo(t){return this[Ye].removeSpotlight(t)}removeAllSpotlightedVideos(){return this[Ye].removeAllSpotlights()}screenshotVideo(t){return this[Ye].screenshotVideo(t)}subscribeSystemResourceUsage(){return this[Ye].subscribeSystemResourceUsage()}unsubscribeSystemResourceUsage(){return this[Ye].unsubscribeSystemResourceUsage()}subscribeWebRTCStatsReportData(){return this[Ye].subscribeWebRTCStatsReportData()}unsubscribeWebRTCStatsReportData(){return this[Ye].unsubscribeWebRTCStatsReportData()}isCapturingVideo(){return this[Ye].isCapturingVideo()}isCameraTaken(){return this[Ye].isCameraTaken()}getActiveVideoId(){return this[Ye].getActiveVideoId()}getActiveCamera(){return this[Ye].getActiveCamera()}getCameraList(){return this[Ye].getCameraList()}isCaptureForbidden(){return this[Ye].isCaptureForbidden()}getVideoMaxQuality(){return this[Ye].getVideoMaxQuality()}getReceivedVideoDimension(){return this[Ye].getReceivedVideoDimension()}isSupportMultipleVideos(){return this[Ye].isSupportMultipleVideos()}getMaxRenderableVideos(){return this[Ye].getMaxRenderableVideos()}isSupportHDVideo(){return this[Ye].isSupportHDVideo()}isSupportVirtualBackground(){return this[Ye].isSupportVirtualBackground()}isSupportVideoProcessor(){return this[Ye].isSupportVideoProcessor()}isSupportAudioProcessor(){return this[Ye].isSupportAudioProcessor()}isSupportShareProcessor(){return this[Ye].isSupportShareProcessor()}getVirtualbackgroundStatus(){return this[Ye].getVirtualbackgroundStatus()}getVideoStatisticData(){return this[Ye].getVideoStatisticData()}isRenderSelfViewWithVideoElement(){return this[Ye].isRenderSelfViewWithVideoElement()}getCapturedVideoResolution(){return this[Ye].getCapturedVideoResolution()}getVideoMaskStatus(){return this[Ye].getVideoMaskStatus()}isVideoMirrored(){return this[Ye].isVideoMirrored()}getSpotlightedUserList(){return this[Ye].getSpotlightedUserList().map((t=>md(t)))}getVideoMediaPlaybackController(){return this[Ye].getVideoMediaPlaybackController()}getWebRTCStatsReportData(){return this[Ye].getWebRTCStatsReportData()}startShareView(t,r){return this[Ye].startShareView(t,r)}stopShareView(){return this[Ye].stopShareView()}attachShareView(t,r){return this[Ye].attachShareView(t,r)}detachShareView(t,r){return this[Ye].detachShareView(t,r)}switchShareView(t){return this[Ye].switchShareView(t)}startShareScreen(t,r){return(r==null?void 0:r.broadcastToSubsession)!==void 0&&Object.assign(r||{},{broadcastToBreakoutRoom:r==null?void 0:r.broadcastToSubsession}),this[Ye].startShareScreen(t,r)}startShareCamera(t,r,n){return this[Ye].startShareCamera(t,r,n)}pauseShareScreen(){return this[Ye].pauseShareScreen()}resumeShareScreen(){return this[Ye].resumeShareScreen()}stopShareScreen(){return this[Ye].stopShareScreen()}lockShare(t){return this[Ye].lockShare(t)}updateSharingCanvasDimension(t,r){return this[Ye].updateSharingCanvasDimension(t,r)}switchSharingSecondaryCamera(t){return this[Ye].switchSharingSecondaryCamera(t)}setSharePrivilege(t){return this[Ye].setSharePrivilege(t)}shareToSubsession(){return this[Ye].shareToBreakoutRoom()}stopShareToSubsession(){return this[Ye].stopShareToBreakoutRoom()}enableOptimizeForSharedVideo(t){return this[Ye].enableOptimizeForSharedVideo(t)}updateSharedVideoQuality(t){return this[Ye].updateSharedVideoQuality(t)}subscribeShareStatisticData(t){return this[Ye].subscribeShareStatisticData(t)}unsubscribeShareStatisticData(t){return this[Ye].unsubscribeShareStatisticData(t)}screenshotShareView(t){return this[Ye].screenshotSharedContent(t)}isShareLocked(){return this[Ye].isShareLocked()}getSharePrivilege(){return this[Ye].getSharePrivilege()}getActiveShareUserId(){return this[Ye].getActiveShareUserId()}getShareStatus(){return this[Ye].getShareStatus()}getShareUserList(){return this[Ye].getShareUserList().map((t=>md(t)))}isStartShareScreenWithVideoElement(){return this[Ye].isStartShareScreenWithVideoElement()}isOptimizeForSharedVideoEnabled(){return this[Ye].isOptimizeForSharedVideoEnabled()}isSupportOptimizedForSharedVideo(){return this[Ye].isSupportOptimizedForSharedVideo()}getShareStatisticData(){return this[Ye].getShareStatisticData()}getShareStreamSettings(){return this[Ye].getShareStreamSettings()}getMaxRenderableShareViews(){return this[Ye].getMaxRenderableShareViews()}requestFarEndCameraControl(t){return this[Ye].requestFarEndCameraControl(t)}approveFarEndCameraControl(t){return this[Ye].approveFarEndCameraControl(t)}declineFarEndCameraControl(t){return this[Ye].declineFarEndCameraControl(t)}giveUpFarEndCameraControl(t){return this[Ye].giveUpFarEndCameraControl(t)}controlCamera(t){return this[Ye].controlCamera(t)}controlFarEndCamera(t){return this[Ye].controlFarEndCamera(t)}getFarEndCameraPTZCapability(t){return this[Ye].getFarEndCameraPTZCapability(t)}getCameraPTZCapability(t){return this[Ye].getCameraPTZCapability(t)}isBrowserSupportPTZ(){return this[Ye].isBrowserSupportPTZ()}getNetworkQuality(t){return this[Ye].getNetworkQuality(t)}requestRemoteControl(){return this[Ye].requestRemoteControl()}giveUpRemoteControl(){return this[Ye].giveUpRemoteControl()}startRemoteControl(t){return this[Ye].startRemoteControl(t)}grabRemoteControl(){return this[Ye].grabRemoteControl()}approveRemoteControl(t,r){return this[Ye].approveRemoteControl(t,r)}declineRemoteControl(t){return this[Ye].declineRemoteControl(t)}stopRemoteControl(){return this[Ye].stopRemoteControl()}launchRemoteControlApp(t){return this[Ye].launchRemoteControlApp(t)}isRemotelyControlApproved(){return this[Ye].isRemotelyControlApproved()}isControllingUserRemotely(){return this[Ye].isControllingUserRemotely()}isTargetShareSupportRemoteControl(t){return this[Ye].isTargetShareSupportRemoteControl(t)}getRemoteControlAppDownloadUrl(){return this[Ye].getRemoteControlAppDownloadUrl()}getRemotelyControllingUser(){return this[Ye].getRemotelyControllingUser()}isRemoteControlEnabled(){return this[Ye].isRemoteControlEnabled()}startAnnotation(){return this[Ye].startAnnotation()}stopAnnotation(){return this[Ye].stopAnnotation()}changeAnnotationPrivilege(t){return this[Ye].changeAnnotationPrivilege(t)}showAnnotatorName(t){return this[Ye].showAnnotatorName(t)}canDoAnnotation(){return this[Ye].canDoAnnotation()}getAnnotationController(){return this[Ye].getAnnotationController()}requestShareCamera(t,r,n){return this[Ye].requestShareCamera(t,r,n)}approveShareCamera(t,r){return this[Ye].approveShareCamera(t,r)}declineShareCamera(t,r){return this[Ye].declineShareCamera(t,r)}informShareCameraStatus(t,r,n){return this[Ye].informShareCameraStatus(t,r,n)}}const Yz=["isCoHost"],Rs=Symbol("chat");class Qz{constructor(t){this[Rs]=void 0,this[Rs]=t}send(t,r){return this[Rs].send(t,r)}sendToAll(t){return this[Rs].send(t,Jn.All)}sendFile(t,r){return this[Rs].sendFile(t,r)}downloadFile(t,r,n){return this[Rs].downloadFile(t,r,n)}setPrivilege(t){return this[Rs].setPrivilege(t)}getPrivilege(){return this[Rs].getPrivilege()}getReceivers(){return this[Rs].getReceivers().map((t=>{const{isCoHost:r}=t;return qa({isManager:r},Em(t,Yz))}))}getHistory(){return this[Rs].getHistory()}isFileTransferEnabled(){return this[Rs].isFileTransferEnabled()}getFileTransferSetting(){return this[Rs].getFileTransferSetting()}}const fl=Symbol("recording");class Xz{constructor(t){this[fl]=void 0,this[fl]=t}canStartRecording(){return this[fl].isRecordingEnabled()}startCloudRecording(){return this[fl].startRecording()}pauseCloudRecording(){return this[fl].pauseRecording()}resumeCloudRecording(){return this[fl].startRecording()}stopCloudRecording(){return this[fl].stopRecording()}getCloudRecordingStatus(){return this[fl].getRecordingStatus()}acceptIndividualRecording(){return this[fl].accept()}declineIndividualRecording(){return this[fl].decline()}}const B1=Symbol("command");class Zz{constructor(t){this[B1]=void 0,this[B1]=t}send(t,r){return this[B1].send(t,r)}}const eK=["isInRoom"],tK=["isAutoJoinRoom","isRoomSelectionEnabled"],Qo=Symbol("breakout-room");class rK{constructor(t){this[Qo]=void 0,this[Qo]=t}createSubsessions(t,r){return this[Qo].createRooms(t,r).then((n=>n.map((o=>({subsessionId:o.roomId,subsessionName:o.name,userList:o.attendeeList})))))}openSubsessions(t,r){const n=r?qa(qa({},r),{},{isAutoJoinRoom:r.isAutoJoinSubsession,isRoomSelectionEnabled:r.isSubsessionSelectionEnabled}):void 0,o=t.map((i=>({roomId:i.subsessionId,name:i.subsessionName,attendeeList:i.userList})));return this[Qo].openRooms(o,n)}joinSubsession(t){return this[Qo].joinRoom(t)}leaveSubsession(){return this[Qo].leaveRoom()}askForHelp(){return this[Qo].askForHelp()}postponeHelping(t){return this[Qo].postponeHelping(t)}broadcast(t){return this[Qo].broadcast(t)}assignUserToSubsession(t,r){return this[Qo].assignUserToRoom(t,r)}moveUserToSubsession(t,r){return this[Qo].moveUserToRoom(t,r)}moveBackToMainSession(t){return this[Qo].moveBackToMainSession(t)}closeAllSubsessions(){return this[Qo].closeRoom()}startBroadcastVoice(){return this[Qo].startBroadcastVoice()}stopBroadcastVoice(){return this[Qo].stopBroadcastVoice()}getUnassignedUserList(){return this[Qo].getUnassignedAttendeeList().map((t=>md(t)))}getSubsessionList(){return this[Qo].getRoomList().map((t=>{const{roomId:r,name:n,attendeeList:o}=t;return{subsessionId:r,subsessionName:n,userList:o.map((i=>{const a=i,{isInRoom:s}=a;return qa({isInSubsession:s},Em(a,eK))}))}}))}getUserStatus(){return this[Qo].getAttendeeStatus()}getSubsessionStatus(){return this[Qo].getRoomStatus()}getCurrentSubsession(){const{attendeeStatus:t,name:r,roomId:n}=this[Qo].getCurrentRoom();return{userStatus:t,subsessionName:r,subsessionId:n}}getSubsessionOptions(){const t=this[Qo].getRoomOptions(),{isAutoJoinRoom:r,isRoomSelectionEnabled:n}=t;return qa({isAutoJoinSubsession:r,isSubsessionSelectionEnabled:n},Em(t,tK))}isSubsessionEnabled(){return this[Qo].isBreakoutRoomEnabled()}}const as=Symbol("liveTranscription");class nK{constructor(t){this[as]=void 0,this[as]=t}startLiveTranscription(){return this[as].startLiveTranscription()}setSpeakingLanguage(t,r){return this[as].setSpeakingLanguage(t,r)}setTranslationLanguage(t){return this[as].setTranslationLanguage(t)}disableCaptions(t){return this[as].disableCaptions(t)}lockTranscriptionLanguage(t){return this[as].lockTranscriptionLanguage(t)}getLiveTranscriptionStatus(){return this[as].getLiveTranscriptionStatus()}getCurrentTranscriptionLanguage(){return this[as].getCurrentTranscriptionLanguage()}getCurrentTranslationLanguage(){return this[as].getCurrentTranslationLanguage()}getLatestTranscription(){return this[as].getLatestTranscription()}getLatestTranslation(){return this[as].getLatestTranslation()}getFullTranscriptionHistory(){return this[as].getFullTranscriptionHistory()}}const fp=Symbol("liveStream");class oK{constructor(t){this[fp]=void 0,this[fp]=t}startLiveStream(t,r,n){return this[fp].startLiveStream(t,r,n)}stopLiveStream(){return this[fp].stopLiveStream()}isLiveStreamEnabled(){return this[fp].isLiveStreamEnabled()}getLiveStreamStatus(){return this[fp].getLiveStreamStatus().status}}const uh=Symbol("logger");class iK{constructor(t,r){if(this[uh]=void 0,this[uh]=t,r){const{debugMode:n,trackingId:o}=r;this[uh].setLogOptions({debugMode:n,trackingId:o})}}reportToGlobalTracing(t){return this[uh].reportToGlobalTracing(t)}reportRating(t,r){return this[uh].reportRating(t,r)}}const hp=Symbol("broadcastStreaming");class aK{constructor(t){this[hp]=void 0,this[hp]=t}startBroadcast(){return this[hp].startBroadcast()}stopBroadcast(t){return this[hp].stopBroadcast(t)}isBroadcastStreamingEnable(){return this[hp].isBroadcastStreamingEnable()}getBroadcastStreamingStatus(){return this[hp].getBroadcastStreamingStatus()}}const sK=["roomName"],lK=["roomId","roomName"],LD=[{event:"connection-change",originalEvent:"connection-change",payloadTransform:e=>{const{roomName:t}=e,r=Em(e,sK);return t?qa(qa({},r),{},{subsessionName:t}):e}},{event:"user-added",originalEvent:"user-added",payloadTransform:e=>e.map((t=>V1(t)))},{event:"user-updated",originalEvent:"user-updated",payloadTransform:e=>e.map((t=>V1(t)))},{event:"user-removed",originalEvent:"user-removed",payloadTransform:e=>e.map((t=>V1(t)))},{event:"subsession-invite-to-join",originalEvent:"invite-to-join",payloadTransform:e=>({subsessionId:e.roomId,subsessionName:e.name})},{event:"subsession-countdown",originalEvent:"room-countdown"},{event:"subsession-time-up",originalEvent:"room-time-up"},{event:"closing-subsession-countdown",originalEvent:"closing-room-countdown"},{event:"subsession-broadcast-message",originalEvent:"broadcast-message"},{event:"subsession-broadcast-voice",originalEvent:"broadcast-voice"},{event:"subsession-ask-for-help",originalEvent:"ask-for-help",payloadTransform:e=>({userId:e.userId,userGuid:e.userGuid,displayName:e.displayName,subsessionId:e.roomId,subsessionName:e.roomName})},{event:"subsession-ask-for-help-response",originalEvent:"ask-for-help-response"},{event:"subsession-invite-back-to-main-session",originalEvent:"invite-back-to-main-session"},{event:"subsession-state-change",originalEvent:"room-state-change"},{event:"host-ask-unmute-audio",originalEvent:"unmute-audio-consent"},{event:"subsession-user-update",originalEvent:"room-user-update",payloadTransform:e=>{const{roomId:t,roomName:r}=e;return qa({subsessionId:t,subsessionName:r},Em(e,lK))}},{event:"active-media-failed",originalEvent:"media-internal-error"}],hl=Symbol("summary");class uK{constructor(t){this[hl]=void 0,this[hl]=t}startSummary(){return this[hl].startSummary()}stopSummary(){return this[hl].stopSummary()}isSummaryEnabled(){return this[hl].isSummaryEnabled()}getSummaryStatus(){return this[hl].getSummaryStatus()}startMeetingQuery(){return this[hl].startMeetingQuery()}stopMeetingQuery(){return this[hl].stopMeetingQuery()}isMeetingQueryEnabled(){return this[hl].isMeetingQueryEnabled()}getMeetingQueryStatus(){return this[hl].getMeetingQueryStatus()}}const Gs=Symbol("whiteboard");class cK{constructor(t){this[Gs]=void 0,this[Gs]=t}startWhiteboardScreen(t,r){return this[Gs].startWhiteboardScreen(t,r)}stopWhiteboardScreen(){return this[Gs].stopWhiteboardScreen()}startWhiteboardView(t,r,n){return this[Gs].startWhiteboardView(t,r,n)}stopWhiteboardView(){return this[Gs].stopWhiteboardView()}exportWhiteboard(t,r,n){return this[Gs].exportWhiteboard(t,r,n)}isWhiteboardEnabled(){return this[Gs].isWhiteboardEnabled()}getWhiteboardStatus(){return this[Gs].getWhiteboardStatus()}getWhiteboardPresenter(){return this[Gs].getWhiteboardPresenter()}canStartWhiteboard(){return this[Gs].canStartWhiteboard()}}const Kl=Symbol("realTimeMediaStreams");class dK{constructor(t){this[Kl]=void 0,this[Kl]=t}isSupportRealTimeMediaStreams(){return this[Kl].isSupportRealTimeMediaStreams()}startRealTimeMediaStreams(){return this[Kl].startRealTimeMediaStreams()}pauseRealTimeMediaStreams(){return this[Kl].pauseRealTimeMediaStreams()}resumeRealTimeMediaStreams(){return this[Kl].resumeRealTimeMediaStreams()}stopRealTimeMediaStreams(){return this[Kl].stopRealTimeMediaStreams()}getRealTimeMediaStreamsStatus(){return this[Kl].getRealTimeMediaStreamsStatus()}canStartRealTimeMediaStreams(){return this[Kl].canStartRealTimeMediaStreams()}}const vn=Symbol("Client"),fv=new WeakMap;class pK{constructor(){this[vn]=void 0,this.stream=void 0,this.chat=void 0,this.command=void 0,this.recording=void 0,this.subsession=void 0,this.liveTranscription=void 0,this.logger=void 0,this.liveStream=void 0,this.aiClient=void 0,this.broadcastStreaming=void 0,this.whiteboard=void 0,this.realTimeMediaStreams=void 0,this[vn]=Jl.createClient(),fv.set(this,new Map)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"en-US",r=arguments.length>2?arguments[2]:void 0;const n=h9(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Global");return window.isSecureContext===!1&&console.warn("The page is not in a secure context, to use audio, video, screen, a secure context must be enabled."),(function(){const o="__ZOOM_VIDEO_SDK_DOM_STORAGE_TEST__";try{return localStorage.setItem(o,o),localStorage.removeItem(o),sessionStorage.setItem(o,o),sessionStorage.removeItem(o),!0}catch{return!1}})()||console.warn("localstorage or sessionstorage is not enabled, please enable to use the video sdk,"),this[vn].init("","",{language:t,dependentAssets:n,constraints:qa(qa({},Jl.checkSystemRequirements()),{},{screen:typeof WebAssembly=="object"&&typeof Worker=="function"}),additionalFeatures:["chat","cmd","recording","breakoutRoom","liveTranscription","logger","liveStream","summary","broadcastStreaming","whiteboard","realTimeMediaStreams"],webEndpoint:(r==null?void 0:r.webEndpoint)||"zoom.us",skipJsMedia:r==null?void 0:r.skipJsMedia,enforceMultipleVideos:r==null?void 0:r.enforceMultipleVideos,stayAwake:r==null?void 0:r.stayAwake,enforceVirtualBackground:r==null?void 0:r.enforceVirtualBackground,quicklyLeaveMeeting:r==null?void 0:r.leaveOnPageUnload,patchJsMedia:r==null?void 0:r.patchJsMedia,alternativeNameForVideoPlayer:r==null?void 0:r.alternativeNameForVideoPlayer,isUIToolkit:r==null?void 0:r.isUIToolkit,isLogDetailed:r==null?void 0:r.isLogDetailed})}join(t,r,n,o,i){if(!j1(t)||!j1(r)||!j1(n))return Promise.reject({type:F1,reason:"Topic, token and userName must be string and required",errorCode:Z.CLIENT_INVALID_JOIN_PARAMETER});if(t.length>200)return Promise.reject({type:F1,reason:"The maximum length of topic is 200",errorCode:Z.CLIENT_INVALID_JOIN_PARAMETER});const a=n.length>200?n.slice(0,200):n;return o&&(typeof o!="string"||o.length>10)?Promise.reject({type:F1,reason:"The maximum length of password is 10",errorCode:Z.CLIENT_INVALID_JOIN_PARAMETER}):this[vn].joinInstant(t,r,a,dg,o,i)}leave(){var t;return arguments.length>0&&arguments[0]!==void 0&&arguments[0]?((t=fv.get(this))===null||t===void 0||t.clear(),this[vn].end()):this[vn].leave()}on(t,r){const n=LD.find((o=>o.event===t));if(n){const{originalEvent:o,payloadTransform:i}=n;if(i){const a=l=>{const c=i(l);r(c)};this[vn].on(o,a);const s=fv.get(this);if(s){s.has(t)||s.set(t,[]);const l=s.get(t);l==null||l.push({originalCb:r,newCb:a})}}else this[vn].on(o,r)}else this[vn].on(t,r)}off(t,r){const n=LD.find((o=>o.event===t));if(n){const{originalEvent:o,payloadTransform:i}=n;if(i){const a=fv.get(this);if(a){const s=a.get(t),l=s==null?void 0:s.find((c=>c.originalCb===r));if(l&&s){this[vn].off(o,l.newCb);const c=s==null?void 0:s.filter((d=>d.originalCb!==r));a.set(t,c)}}}else this[vn].off(o,r)}else this[vn].off(t,r)}getMediaStream(){return this.stream||(this.stream=new Jz(this[vn].getMediaStream())),this.stream}getChatClient(){return this.chat||(this.chat=new Qz(this[vn].getFeatureModule("chat"))),this.chat}getRecordingClient(){return this.recording||(this.recording=new Xz(this[vn].getFeatureModule("recording"))),this.recording}getCommandClient(){return this.command||(this.command=new Zz(this[vn].getFeatureModule("cmd"))),this.command}getSubsessionClient(){return this.subsession||(this.subsession=new rK(this[vn].getFeatureModule("breakoutRoom"))),this.subsession}getLiveTranscriptionClient(){return this.liveTranscription||(this.liveTranscription=new nK(this[vn].getFeatureModule("liveTranscription"))),this.liveTranscription}getLoggerClient(t){return this.logger||(this.logger=new iK(this[vn].getFeatureModule("logger"),t)),this.logger}getLiveStreamClient(){return this.liveStream||(this.liveStream=new oK(this[vn].getFeatureModule("liveStream"))),this.liveStream}getBroadcastStreamingClient(){return this.broadcastStreaming||(this.broadcastStreaming=new aK(this[vn].getFeatureModule("broadcastStreaming"))),this.broadcastStreaming}getRealTimeMediaStreamsClient(){return this.realTimeMediaStreams||(this.realTimeMediaStreams=new dK(this[vn].getFeatureModule("realTimeMediaStreams"))),this.realTimeMediaStreams}getAIClient(){return this.aiClient||(this.aiClient=new uK(this[vn].getFeatureModule("summary"))),this.aiClient}getWhiteboardClient(){return this.whiteboard||(this.whiteboard=new cK(this[vn].getFeatureModule("whiteboard"))),this.whiteboard}getSessionInfo(){const t=this[vn].getMeetingInfo();return{isInMeeting:t.isInMeeting||!1,password:t.password||"",topic:t.topic,userName:t.userName,userId:t.userId,sessionId:t.meetingId}}getCurrentUserInfo(){return md(this[vn].getCurrentUserInfo())}getUser(t){return md(this[vn].getParticipantsList().find((r=>r.userId===t)))}getAllUser(){return this[vn].getParticipantsList().map((t=>md(t)))}changeName(t,r){return this[vn].changeName(t,r)}makeHost(t){return this[vn].makeHost(t)}removeUser(t){return this[vn].removeUser(t)}makeManager(t){return this[vn].makeCoHost(t)}revokeManager(t){return this[vn].revokeCoHost(t)}reclaimHost(){return this[vn].reclaimHost()}isHost(){return this[vn].isHost()}isOriginalHost(){return this[vn].isOriginHost()}getSessionHost(){return md(this[vn].getMeetingHost())}isManager(){return this[vn].isCoHost()}}class Ec{static createClient(){return this.videoClient||(this.videoClient=new pK),this.videoClient}static destroyClient(){return this.videoClient?this.videoClient.leave().then((()=>(this.videoClient=null,Jl.destroyClient()))):Promise.resolve(void 0)}static checkSystemRequirements(){return Jl.checkSystemRequirements()}static checkFeatureRequirements(){return Jl.checkFeatureRequirements()}static getDevices(t){return Jl.getDevices(t)}static createLocalAudioTrack(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Jl.createLocalAudioTrack(t)}static createLocalVideoTrack(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Jl.createLocalVideoTrack(t)}static preloadDependentAssets(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Global";Jl.preloadDependentAssets(h9(t))}}Ec.videoClient=void 0,Ec.VERSION=dg;(function(e){return e[e.All=1]="All",e[e.NoOne=4]="NoOne",e[e.EveryonePublicly=5]="EveryonePublicly",e})({});(function(e){return e[e.All=0]="All",e})({});(function(e){return e[e.Automatically=cd.Automatically]="Automatically",e[e.Manually=cd.Manually]="Manually",e})({});(function(e){return e[e.Initial=wr.Initial]="Initial",e[e.Invited=wr.Invited]="Invited",e[e.Joining=wr.Joining]="Joining",e[e.InSubsession=wr.InRoom]="InSubsession",e[e.Leaving=wr.Leaving]="Leaving",e[e.MainSession=wr.MainSession]="MainSession",e})({});(function(e){return e[e.NotStarted=Kr.NotStarted]="NotStarted",e[e.InProgress=Kr.InProgress]="InProgress",e[e.Closing=Kr.Closing]="Closing",e[e.Closed=Kr.Closed]="Closed",e})({});(function(e){return e[e.Failover=ia.Failover]="Failover",e[e.JoinSubsession=ia.JoinBreakoutRoom]="JoinSubsession",e[e.MoveToSubsession=ia.MoveToBreakoutRoom]="MoveToSubsession",e[e.BackToMainSession=ia.BackToMainSession]="BackToMainSession",e})({});(function(e){return e[e.Unlocked=hs.HostGrab]="Unlocked",e[e.Locked=hs.OnlyHost]="Locked",e[e.MultipleShare=hs.MultipleShare]="MultipleShare",e})({});(function(e){return e[e.Unknown=zi.Unknown]="Unknown",e[e.Uninstalled=zi.Uninstalled]="Uninstalled",e[e.Installed=zi.Installed]="Installed",e[e.Unlaunched=Yy.Unlaunched]="Unlaunched",e[e.Launched=Yy.Launched]="Launched",e})({});const y9=se.createContext({zmClient:Ec.createClient(),sessionStarted:!1,signature:"",isSessionStarted:()=>!1,joinSession:()=>Promise.resolve(),leaveSession:()=>Promise.resolve()}),ll=()=>se.useContext(y9);function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cm.apply(null,arguments)}function uR(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Tw(e,t){return Tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Tw(e,t)}function cR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tw(e,t)}var hv={exports:{}},mv={exports:{}},Gn={};/** @license React v16.13.1
77
+ `)},n.prototype.getLog=function(){return this.log},n})();return new r})()),hD.exports),Td=I0(Sz);const Rw=Ei.getInstance();Td.setRetryTimes(0);const p9=e=>vc(Wo(sl().pipe(_t((()=>{Td.cancelPing(),Rw.report(`ping rwc canceled. ping rwc log:${Td.getLog()}`,["Join Meeting Flow","Ping RWC Error"],"warn")})))),Fe((t=>{const{response:r,request:n}=t;let o={};return o=r?{...r,rwc:n.domain,fromNginx:!1}:{rwc:n.domain,rwg:n.domain,rwcToken:n.rwcToken,fromNginx:!0},ft([I5(o),cC()])})),oa((()=>{const t=Td.getLog(),{meeting:{meetingId:r,meetingNumber:n,userName:o}}=e.value;return Rw.report(`ping rwc error,${JSON.stringify({meetingId:r,meetingNumber:Oi(n),userName:Oi(o)})}, ping rwc log: ${t}`,["Join Meeting Flow","Ping RWC Error"],"error"),ee(_o,{reason:"connection error",errorCode:vl.CommonError}),ft([...hd(e.value)])}))),mD=(e,t)=>e.pipe(Mt(`${bA}`),Xt(t),Be((([,r])=>r.meeting.encryptedRWC!==void 0||r.meeting.encryptedGEORWC!==void 0&&r.meeting.encryptedGEORWC.length>0)),Gr((([,r])=>ft(Td.ping((n=>{const{meeting:{encryptedRWC:o,encryptedGEORWC:i,meetingOptions:a,meetingNumber:s,ts:l,auth:c,enableHybridRWG:d,accountId:p},breakoutRoom:m,video:y,audio:b}=n,v=a==null?void 0:a.isEnableGeoFenceRWC,C=y!=null&&y.isWebrtcVideoCapable||b!=null&&b.isWebRtcAudioCapable&&(b==null?void 0:b.webRtcAudioMode)&q3.WebRTCAudio2?y==null?void 0:y.miniRwgOptionValue:0;let A;return d&&(A=p),v&&i&&(i==null?void 0:i.length)>0?i.map((R=>{const{dc:x,dl:k,rwc:D,rwcToken:F}=R;return{url:U2(D,s,F,l,c,m==null?void 0:m.currentRoom.boConfId,C,A),domain:D,rwcToken:F,dl:k,dc:x}})):o?Object.keys(o).map((R=>{const x=o[R];return{url:U2(R,s,x,l,c,m==null?void 0:m.currentRoom.boConfId,C,A),domain:R,rwcToken:x,dl:0,dc:"AP"}})):[]})(r))).pipe(p9(t),Fs(s5(performance.now()))))));let gD=0;const Ez=Ei.getInstance(),P1={meetingStatus:di.Initial,isWindowOpen:!1,apiKey:"",signature:"",signatureType:"",lang:"en-US",tk:"",customerKey:"",mtkGuid:"",pingRWCTimestamp:0,meetingInfoTimestamp:0,passWord:"",meetingNumber:0,userName:"",userEmail:"",sdkUrl:"",sdkOrigin:"",proxy:1,cv:"",meetingId:"",tid:"",ts:"",auth:"",sign:"",isSupportCallOut:!1,tollNumbers:void 0,recordingEnable:!1,callOutCountry:void 0,inviteEmail:"",xmppConfig:null,isSupportH323:!1,h323GatewayInfo:"",h323Password:"",trackAuth:"",isOriginHost:!1,isWebinar:!1,encryptedRWC:void 0,meetingOptions:{},meetingTopic:"",bLock:!1,bHoldUponEntry:!1,viewOnly:0,listenOnlyPhone:0,bAllowRaiseHand:!1,bAllowAttendeeRename:!1,bBroadcast:void 0,bAllowPlayChimeForEnterOrExit:!1,bIbDisableShare:!1,bIbDisableChat:!1,bAllowShowCount:!1,encryptKey:"",bNoHostTimeOut:!1,confId:"",conId:"",e2eEncrypt:!1,zoomId:"",jid:"",xtoken:"",groups:void 0,svcUrl:"",encType:NaN,userGUID:"",userId:NaN,isHost:!1,isCoHost:!1,participantID:0,isOnHold:!1,isMeetingReset:!1,bRecord:!1,audioVideoBeforeOnHold:void 0,region:void 0,network:void 0,joinMeetingTimeStamp:0,activeAppInfo:void 0,recordingDisclaimerForRecorder:{},recordingDisclaimer:{},ccUrl:"",sessionIdleTimeoutMins:40,reportDomain:"",discardedRwcList:[],sharePronounType:void 0,stayAwake:!1,wrInfo:{},meetingInfo:{},isNewJoinFlow:!1,gatewayUserList:[],logConfig:"",failover:{count:0,isCurrentFailoverRecorded:!1,reason:-1,interval:0,joinMeetingSuccessTimestamp:0,sequence:""},isUseWBVideo:!1,isUseWBAudio:!1,enableLongPollingCheckStart:!1,rsPwd:"",chatModerationPolicy:{},uid:"",isAlternativeHost:!1,isAssistant:!1,isRlbTP:!1,isRlbTPReady:!1,isUIToolkit:!1,liveStreamInfo:{},enableHybridRWG:!1,isSupportRtmsApp:!1,obfRelation:[]},Cz=Mi({[`${Yi}`]:ie(((e,{payload:t})=>{t.customerKey=e.customerKey||t.customerKey||"",Object.assign(e,t),e.meetingStatus=di.Initial})),[`${kB}`]:ie(((e,{payload:t})=>{t.customerKey=e.customerKey||t.customerKey||"",Object.assign(e,t)})),[`${LB}`]:ie(((e,{payload:t})=>{e.isWindowOpen=t})),[`${a5}`]:ie(((e,{payload:t})=>{t.useSDK?e.signatureType="sdk":e.signatureType="api",e.apiKey=t.apiKey,e.signature=t.signature,e.lang=t.language})),[`${FB}`]:ie(((e,{payload:t})=>{e.ztk=t})),[`${jB}`]:ie(((e,{payload:t})=>{e.zsk=t})),[`${VB}`]:ie(((e,{payload:t})=>{e.obfToken=t})),[`${BB}`]:ie(((e,{payload:t})=>{e.obfRelation=t})),[`${HB}`]:ie(((e,{payload:t})=>{e.tk=t.tk,e.mtkGuid=t.mtkGuid})),[`${s5}`]:ie(((e,{payload:t})=>{e.pingRWCTimestamp=t})),[`${b5}`]:ie(((e,{payload:t})=>{e.meetingInfoTimestamp=t})),[`${js}`]:ie(((e,{payload:t})=>{e.confId=t.confID,e.conId=t.conID,e.e2eEncrypt=t.e2eEncrypt,e.meetingNumber=parseInt(t.mn,10),e.zoomId=t.zoomID,e.meetingStatus=di.Joined,e.jid=t.jid,e.xtoken=t.xtoken,e.groups=t.groups,e.svcUrl=t.svcUrl,e.encType=t.encType,e.userGUID=t.userGUID,e.userId=t.userID,e.role=t.role,e.participantID=t.participantID,e.reportDomain=t.reportDomain,e.abToken=t.ABtoken,e.supportLocalAB=!!t.supportLocalAB,e.isUseWBVideo=!!t.useWBVideo,e.mediasdkConfig=t.mediasdkConfig,e.isUseWBAudio=!!t.useWBAudio,t.enableWebTransport&&(e.enableWebtransport=t.enableWebTransport,e.webtransportPort=t.WebTransportPort)})),[`${Lh}`]:ie(((e,{payload:t})=>{if(t.gatewayUser){var r;const{userId:o,sn:i}=t.gatewayUser,a=(r=e.gatewayUserList)===null||r===void 0?void 0:r.find((s=>s.userId===o));var n;a?a.sn=i:(n=e.gatewayUserList)===null||n===void 0||n.push(t.gatewayUser)}else Object.assign(e,t)})),[`${l5}`]:ie(((e,{payload:t})=>{e.isHost=t})),[`${u5}`]:ie(((e,{payload:t})=>{e.isCoHost=t})),[`${bh}`]:ie(((e,{payload:t})=>{e.isOnHold=t})),[`${c5}`]:ie(((e,{payload:t})=>{e.isMeetingReset=t})),[`${UB}`]:ie(((e,{payload:t})=>{e.audioVideoBeforeOnHold=t})),[`${sC}`]:ie(((e,{payload:t})=>{e.currentUserAudioBeforeReset=t})),[`${lC}`]:ie(((e,{payload:t})=>{e.isCurrentUserMutedBeforeReset=t})),[`${SA}`]:ie(((e,{payload:t})=>{e.meetingStatus=t})),[`${d5}`]:ie(((e,{payload:t})=>{e.region=t.region,e.network=t.network})),[`${p5}`]:ie(((e,{payload:t})=>{e.isCurrentUserStartVideoBeforeReset=t})),[`${f5}`]:ie(((e,{payload:t})=>{e.joinMeetingTimeStamp=t})),[`${$B}`]:ie(((e,{payload:t})=>{e.activeAppInfo=t})),[`${Sh}`]:ie(((e,{payload:t})=>{e.idleStartTime=t})),[`${h5}`]:ie(((e,{payload:t})=>{e.sessionIdleTimeoutMins=t})),[`${WB}`]:ie(((e,{payload:t})=>{var r;const n=(r=e.encryptedGEORWC)===null||r===void 0||(r=r.find((i=>i.rwc===t)))===null||r===void 0?void 0:r.dc;if(n){var o;const i=(o=e.encryptedGEORWC)===null||o===void 0?void 0:o.filter((a=>a.dc===n));i&&e.discardedRwcList.some((a=>(i==null?void 0:i.findIndex((s=>s.rwc===a)))>=0))&&e.discardedRwcList.push(...i.map((a=>a.rwc))),e.discardedRwcList.push(t)}})),[`${zB}`]:ie(((e,{payload:t})=>{e.sharePronounType=t})),[`${m5}`]:ie(((e,{payload:t})=>{e.stayAwake=t})),[`${g5}`]:ie(((e,{payload:t})=>{e.failover.joinMeetingSuccessTimestamp=t})),[`${v5}`]:ie((e=>{Object.assign(e.failover,{...P1.failover,count:e.failover.count,joinMeetingSuccessTimestamp:e.failover.joinMeetingSuccessTimestamp})})),[`${_b}`]:ie(((e,{payload:t})=>{const{count:r,reason:n,interval:o,sequence:i}=t;e.failover.count=r,e.failover.reason=n,e.failover.interval=o,e.failover.isCurrentFailoverRecorded=!0,e.failover.sequence=i})),[`${y5}`]:ie(((e,{payload:t})=>{e.quicklyLeave=t})),[`${S5}`]:ie(((e,{payload:t})=>{e.isEnableZmkFromRWG=t})),[`${Sy}`]:ie(((e,{payload:t})=>{e.isRlbTP=t})),[`${E5}`]:ie(((e,{payload:t})=>{e.isRlbTPReady=t})),[`${i5}`]:ie(((e,{payload:t})=>{e.isUIToolkit=t})),[`${aC}`]:(e,{payload:t})=>{const{isFailover:r}=t,n={isMeetingReset:!0,apiKey:e.apiKey,signatureType:e.signatureType,signature:e.signature,lang:e.lang,proxy:1,stayAwake:e.stayAwake};var o;return r&&Object.assign(n,{currentUserAudioBeforeReset:e.audioVideoBeforeOnHold?e.audioVideoBeforeOnHold.audio:t.audio,isCurrentUserMutedBeforeReset:e.audioVideoBeforeOnHold?e.audioVideoBeforeOnHold.muted:(o=e.isCurrentUserMutedBeforeReset)!==null&&o!==void 0?o:t.muted,isCurrentUserStartVideoBeforeReset:e.audioVideoBeforeOnHold?e.audioVideoBeforeOnHold.video:t.video,meetingNumber:e.meetingNumber,userName:e.userName,passWord:e.passWord,userEmail:e.userEmail,sdkUrl:e.sdkUrl,sdkOrigin:e.sdkOrigin,cv:e.cv,zsk:e.zsk,ztk:e.ztk,obfToken:e.obfToken,idleStartTime:e.idleStartTime,sessionIdleTimeoutMins:e.sessionIdleTimeoutMins,customerKey:e.customerKey,failover:e.failover,stayAwake:e.stayAwake,quicklyLeave:e.quicklyLeave}),{...P1,...n}}},P1),wz={meetingFailoverReportEpic0:(e,t)=>e.pipe(Mt(`${Yi}`),Gr((()=>{const r=t.value.meeting.failover.joinMeetingSuccessTimestamp===0&&!!$r.get(Cn.WebclientZoomId);return e.pipe(Mt(`${js}`),Fr(1),Fe((()=>{const n=[],{count:o,sequence:i}=$r.get(Cn.WebclientFailoverCount)||{};let{meeting:{failover:{count:a,reason:s,interval:l}}}=t.value;const{meeting:{pingRWCTimestamp:c}}=t.value;if(r){a=(o??0)+1,s=yi.RefreshPage,l=0;const m=i?`${i}-${s}`:`${s}`;$r.set(Cn.WebclientFailoverCount,{count:a,sequence:m},fn.SessionStorage),n.push(_b({count:a,reason:s,interval:l,sequence:m}))}const d=performance.now();let p=`WCL_M, JMCT(${d-c})`;return a>0&&s!==yi.NormalCase&&(p=`${p},FAILOVER(${a},${s},${(l/1e3).toFixed(1)})`),bz.sendRWGConnectionPerformance(p),n.push(v5(),g5(d)),ft(n)})))}))),meetingFailoverReportEpic1:(e,t)=>e.pipe(Mt(`${Ia}`),Fe((r=>{const{payload:n}=r,{meeting:{failover:{joinMeetingSuccessTimestamp:o,isCurrentFailoverRecorded:i},userGUID:a,userId:s,meetingId:l}}=t.value,c=[];if(!i){let{count:d,sequence:p}=$r.get(Cn.WebclientFailoverCount)||{};p=p?`${p}-${n}`:`${n}`,n!==yi.NormalCase&&(d+=1,$r.set(Cn.WebclientFailoverCount,{count:d,sequence:p},fn.SessionStorage));const m=performance.now()-o;c.push(_b({reason:n,count:d,interval:m,sequence:p,userGUID:a,userId:s,meetingId:l}))}return ft(c)})))},Iz={sessionIdleEpic0:(e,t)=>e.pipe(Mt(`${js}`),Xt(t),Be((([,r])=>r.meeting.zlkJwtToken!==void 0)),Gr((()=>(Bc&&Bc.complete(),Bc=new xs,pD=em(6e4).pipe(wt((()=>performance.now()))).subscribe(Bc),Bc.pipe(wt((r=>hO(r)))))))),sessionIdleEpic1:e=>e.pipe(Mt(`${Xa}`)).pipe(_t((()=>{Bc&&(Bc.complete(),pD.unsubscribe())})),Ho(qt)),sessionIdleEpic2:(e,t)=>e.pipe(Mt(`${hO}`),Xt(t),Fe((([r,n])=>{var o;const{meeting:{idleStartTime:i,sessionIdleTimeoutMins:a,isOriginHost:s,isWebinar:l},participants:{attendeesList:c,xmppAttendeeList:d},recording:p,breakoutRoom:m}=n,y=r.payload,b=[];if(c.length!==1||l&&d.length!==0||(m==null||(o=m.currentRoom)===null||o===void 0?void 0:o.status)===wr.InRoom||(p==null?void 0:p.cmrStatus)===jo.Start)b.push(Sh(void 0));else if(i){const v=s&&Nd(c[0].userRole)?a:40;y-i>60*v*1e3&&(console.warn(`No active for ${v} minutes, will end the session.`),yz.report(`Session idle timeout(${v} minutes), end the session automatically!`,["Join Meeting Flow","Session idle"],"warn"),b.push(mf()),ao(500).subscribe((()=>{dA()})))}else b.push(Sh(y));return ft(b)}))),sessionIdleEpic3:(e,t)=>e.pipe(Mt(`${Bd}`),Be((r=>[Vn,Ja].includes(r.payload.evt)&&t.value.meeting.idleStartTime!==void 0)),go(la),Fe((()=>{var r;const{participants:{attendeesList:n,xmppAttendeeList:o},recording:i,breakoutRoom:a}=t.value,s=[];return(n.length>1||o.length>0||(i==null?void 0:i.cmrStatus)===jo.Start||(a==null||(r=a.currentRoom)===null||r===void 0?void 0:r.status)===wr.InRoom)&&s.push(Sh(void 0)),ft(s)}))),sessionIdleEpic4:e=>e.pipe(Mt(`${Fd}`,`${mf}`),Pd(Sh(void 0)))},Az={meetingMainEpics0:(e,t)=>Ct(e,0).pipe(_t((r=>{var n;if(((n=r.payload.body)===null||n===void 0?void 0:n.status)==="READY"){const{meeting:{zlkJwtToken:o,signatureType:i,sign:a,passWord:s,isHost:l,isOriginHost:c,ztk:d,zsk:p,tk:m,userEmail:y},breakoutRoom:b}=t.value,v=o?{zlkJwtToken:o}:{signType:i,sign:a};if(s&&s!==""&&(o?Object.assign(v,{mpwd:Po(s)}):l&&c||Object.assign(v,{mpwd:s})),(b==null?void 0:b.currentRoom.status)===wr.Joining){const{currentRoom:{boId:A,boConfId:R,boToken:x}}=b;A&&R&&x&&Object.assign(v,{botk:x})}if(!o){const{meeting:{obfToken:A}}=t.value,R=sessionStorage.getItem(Cn.WebclientObfToken),x=A||R,k=sessionStorage.getItem(Cn.WebclientZsk)||p;x?Object.assign(v,{obfToken:x}):(d&&Object.assign(v,{zak:d}),k&&Object.assign(v,{zak:k})),m&&Object.assign(v,{tk:m});const D=$r.get(Cn.WebclientWebinarToken);D!==void 0&&Object.assign(v,{tk:D});const F=sessionStorage.getItem(Cn.WebclientRecordingToken);F&&Object.assign(v,{localRecordToken:F}),y&&Object.assign(v,{email:y})}Vc.sendLaunchParams(v);const C=$r.get(Cn.WebclientMeetingToken);C&&Vc.joinMeeting(C)}})),sn()),meetingMainEpics1:(e,t)=>{return Ct(e,R0).pipe(Xt(t),Be((([,n])=>n.socket.zoomSocketStatus===wn.Connected)),(r=([n,o])=>{const{payload:{body:{res:i,userID:a,zoomID:s,mn:l,participantID:c,meetingtoken:d,role:p}}}=n,{meeting:{userEmail:m,userName:y,isMeetingReset:b,apiKey:v,zsk:C,signatureType:A}}=o;if(za.Success===i){const{WebclientParticipantId:x,WebclientZoomId:k,WebclientUserEmail:D,WebclientUserName:F,WebclientMeetingToken:$}=Cn;$r.set(k,s,fn.SessionStorage),$r.set(x,c,fn.SessionStorage),m&&$r.set(D,m,fn.SessionStorage),$r.set(F,y,fn.SessionStorage),d&&$r.set($,d,fn.SessionStorage),C&&Vc.sendSdkKeyToMonitor(A,v,a);const U=[js(n.payload.body),f5(performance.now())];return b&&U.push(c5(!1)),(p&Dd.Owner)===Dd.Owner&&(ee(_o,{reason:"dont support assisnt join through widget",errorCode:-1}),Vc.leaveMeeting()),ee(S4,{meetingNumber:l}),ft(U)}if(za.MeetingLocked===i)ee(_o,ml(i));else if(za.UserFull===i)ee(_o,Object.assign({},ml(i),{lmUrl:n.payload.body.lmURL}));else if(za.MeetingIsOver===i)ee(_o,ml(i));else if(za.MMRIBReject===i)ee(_o,ml(i));else if(za.MMRConfParticipantExists===i)ee(_o,ml(i));else if([za.UserHasBeenRemoved,za.WebinarBlockedEmail].includes(i))ee(_o,ml(i));else if(za.MeetingNotStarted===i){var R;const x=ml(i),{meeting:{meetingNumber:k,passWord:D,userName:F,userEmail:$,inviteEmail:U,meetingTopic:G,region:Y,network:Q,userId:me,lang:ne,meetingId:Ee,participantID:ce,wrInfo:_e,meetingInfo:Ne,isNewJoinFlow:oe,enableLongPollingCheckStart:Se,tid:re,signature:we,rsPwd:Ae}}=o;Object.assign(x,{meetingInfo:{meetingNumber:k,password:D,userName:F,userEmail:$,inviteEmail:U,meetingTopic:G,region:Y,network:Q,userId:me,lang:ne,webEndpoint:gc(),meetingId:Ee,participantId:ce,wrInfo:Object.assign({},_e,{isNew:oe}),scheduleInfo:Ne,enableLongPollingCheckStart:Se,rid:d$(re),role:Number((R=Ms(we))===null||R===void 0?void 0:R.role),rsPwd:Ae}}),ee(_o,x)}else ee(_o,ml(i));return ft(hd(o,!1))},vc(Gr(((n,o)=>r(n)||qt)))));var r},meetingMainEpics2:(e,t)=>Ct(e,Ja).pipe(Xt(t),wt((([r,n])=>{const{payload:{body:o}}=r,{meeting:{zoomId:i,encType:a,gcmSessinKey:s}}=n;if((o==null?void 0:o.encryptKey)!==void 0&&xi.init(i,o.encryptKey,a),(o==null?void 0:o.gatewayKey)!==void 0){const l=dr.getInstance(),[,c,d]=o.gatewayKey.split(".");l.sendUserNodeList([{userid:Number(c),sn:d&&sa(d)}],s)}return ee(YI,o),Lh(o)}))),meetingMainEpics3:(e,t)=>Ct(e,7939).pipe(Xt(t),Fe((([r,n])=>{const{payload:{body:o}}=r;if(o.reason!==void 0){if(Hl.Reconnect===o.reason)return L$.WaitingRoomFailover===o.subReason?ee(ka,{reason:ia.OnHold}):ee(ka,{reason:ia.Failover}),Mn(Ia(yi.NormalCase));Hl.KickedByHost===o.reason?ee(Yu,{reason:"kicked by host"}):[Hl.EndByHost,Hl.EndByNone,Hl.EndByAdmin,Hl.EndByHostStartAnotherMeeting].includes(o.reason)?ee(Yu,{reason:"ended by host"}):Hl.FreeMeetingTimeout===o.reason?ee(Yu,{reason:"free meeting ended"}):[Hl.DuplicateSession,Hl.MeetingTransfer].includes(o.reason)&&ee(Yu,{reason:"duplicated session"})}return n.meeting.isMeetingReset?qt:ft(hd(n,!1))}))),meetingMainEpics4:(e,t)=>e.pipe(Mt(`${Ia}`),Xt(t),Fe((([,r])=>{const n=hd(r,!0);let o;if(r.meeting.zlkJwtToken){const i=(function(s){if(s){const{meeting:{topic:l,passWord:c,userName:d,zlkJwtToken:p,lang:m,cv:y,customerKey:b}}=s;return{topic:l,passWord:c,userName:d,zlkJwtToken:p,lang:m,cv:y,customerKey:b}}return null})(r),a={topic:i==null?void 0:i.topic,password:i==null?void 0:i.passWord,userName:i==null?void 0:i.userName,zlk:i==null?void 0:i.zlkJwtToken,lang:i==null?void 0:i.lang,cv:i==null?void 0:i.cv,customerKey:i==null?void 0:i.customerKey};o=Mn(hf(a)).pipe(Zy(1e3))}else{const i=(function(a){var s;const{meeting:{apiKey:l,signature:c,signatureType:d,meetingNumber:p,userName:m,lang:y,passWord:b,userEmail:v,sdkUrl:C,sdkOrigin:A,proxy:R,cv:x,ztk:k,zsk:D,tk:F,obfToken:$}}=a,U=sessionStorage.getItem(Cn.WebclientObfToken),G=$||U;let Y=k||sessionStorage.getItem(Cn.WebclientZtk),Q=D||sessionStorage.getItem(Cn.WebclientZsk);const me=Number((s=Ms(c))===null||s===void 0?void 0:s.role)===1;return G?(Y="",Q=""):me||(Y=Q,Q=""),{apiKey:l,signature:c,signatureType:d,meetingNumber:p,userName:m,lang:y,passWord:b?encodeURIComponent(b):"",userEmail:v,sdkUrl:C,sdkOrigin:A,proxy:R,cv:x,ztk:Y,zsk:Q,tk:F||sessionStorage.getItem(Cn.WebclientTk),ulsm:me&&Q?1:0}})(r);o=Mn(Ob(i)).pipe(Zy(1e3))}return _d(ft(n),o)}))),meetingMainEpics5:e=>il(e,IA).pipe(_t((t=>{ee("MEETING_HOST_CHANGE_INDICATION",t.payload.body.bHost)})),wt((t=>l5(t.payload.body)))),meetingMainEpics6:e=>il(e,7941).pipe(_t((t=>{ee("MEETING_COHOST_CHANGE_INDICATION",t.payload.body.bCoHost)})),wt((t=>u5(t.payload.body)))),meetingMainEpics7:e=>il(e,7945).pipe(_t((t=>{const{payload:{body:{opt:r}}}=t;$r.set(Cn.WebclientOpt,r,fn.SessionStorage)})),sn()),meetingMainEpics8:e=>Ct(e,7954).pipe(wt((t=>d5(t.payload.body)))),meetingMainEpics9:e=>Ct(e,4216).pipe(_t((t=>{ee("MEETING_CLAIM_HOST_KEY_RESPONSE",t.payload.body.bresult)})),sn()),meetingMainEpics10:(e,t)=>e.pipe(Mt(`${Fd}`,`${mf}`),Xt(t),Fe((([r,n])=>{const o=OV(n),{socket:{zoomSocketStatus:i},meeting:{meetingId:a}}=n;return i===wn.Connected&&(r.type===`${Fd}`?Vc.leaveMeeting(o):r.type===`${mf}`&&Vc.endMeeting()),a&&ee(Yu,{}),ft(hd(n,!1))}))),meetingMainEpics11:e=>Ct(e,2).pipe(_t((()=>{console.warn("Upgrade to latest version to optimize meeting experience")})),sn()),meetingMainEpics12:e=>Ct(e,1).pipe(_t((t=>{const{payload:{body:{upgradeVersion:r}}}=t,n=ml(1e4);if(n&&n.reason){const o=n.reason.replace(/{(\d+)}/g,(()=>r));n.reason=o}ee(_o,n)})),sn()),meetingMainEpics13:e=>Ct(e,4128).pipe(_t((t=>{const{payload:{body:{meetingtoken:r}}}=t,{WebclientMeetingToken:n}=Cn;r&&$r.set(n,r,fn.SessionStorage)})),sn()),meetingMainEpics14:(e,t)=>e.pipe(Mt(`${js}`),Be((()=>!!t.value.meeting.quicklyLeave)),Gr((()=>Uo(window,"beforeunload").pipe(_t((()=>{Vc.leaveMeeting()})),sn())))),meetingMainEpics15:(e,t)=>Ct(e,8025).pipe(Be((r=>!!r.payload.body.Zmk&&!!t.value.meeting.isEnableZmkFromRWG)),wt((r=>{const{payload:{body:{Zmk:n}}}=r;return Lh({zmk:n})}))),meetingMainEpics16:(e,t)=>e.pipe(Mt(`${Yi}`),Fe((r=>{const{payload:{mediaFeatureOptions:n,mediaSDKPath:o}}=r,{media:{skipJsMedia:i,patchJsMedia:a,assetsPath:s}}=t.value;if((function(l){return(function(c){try{if(47>c.length)return 0;const d=c.slice(c.length-47-1+1,c.length-47+1);if(d)return parseInt(d,16)}catch{}return 0})(l)===1})(n)){const l=`${!i&&a&&h6(s)&&o?C0(o):s}/tp.min.js`;return ft(window.ZoomTPModule===void 0||typeof window.ZoomTPModule.ZoomTPWebSocket!="function"?new Promise(((c,d)=>Ym(l,(()=>c("")),(()=>d())))):Promise.resolve("")).pipe(Fe((()=>{const{meeting:{mediaFeatureOptions:c},logger:d}=t.value,p=d?Ei.getInstance().makeLogger(["TP MODULE"]):void 0;return ft(window.ZoomTPModule.initTPModule({options:c,logInstance:p}).then((()=>(ee(ny,!0),E5(!0)))).catch((()=>(ee(ny,!1),Sy(!1)))))})),oa((()=>(setTimeout((()=>{Ei.getInstance().report(`Unable to load tp.min.js,url:${l}`,["TP MODULE"],"error")}),5e3),ee(ny,!1),ft([Sy(!1)])))),Fs(Sy(!0)))}return qt}))),meetingMainEpics17:(e,t)=>e.pipe(Mt(`${Yi}`),Be((()=>{const{meeting:{zlkJwtToken:r}}=t.value;return!!r})),Fe((()=>{const{meeting:{zlkJwtToken:r}}=t.value,n=[];try{const o=Ms(r),{user_key:i}=o||{};i&&n.push(Lh({customerKey:i}))}catch{}return ft(n)})))},Rz=Qi(Az,{wakeLockEpic0:(e,t)=>e.pipe(Mt(`${js}`),Xt(t),Be((([,r])=>!!r.meeting.stayAwake)),_t((async()=>{try{const{isSafari:r,isIOSMobile:n}=Yt;xa&&xa.release().then((()=>{xa=null})),"wakeLock"in navigator&&((r||n)&&await jn(Ji(Uo(document,"click").pipe(Fr(1)),Uo(document,"touchend").pipe(Fr(1)))),xa=await navigator.wakeLock.request("screen"),xa.addEventListener("release",(()=>{})))}catch{}})),Gr((()=>Uo(document,"visibilitychange").pipe(Fe((async()=>{if(document.visibilityState==="visible"){const{isSafari:r,isIOSMobile:n}=Yt;xa&&xa.release().then((()=>{xa=null})),"wakeLock"in navigator&&((r||n)&&await jn(Ji(Uo(document,"click").pipe(Fr(1)),Uo(document,"touchend").pipe(Fr(1)))),xa=await navigator.wakeLock.request("screen"))}else xa&&xa.release().then((()=>{xa=null}))})),Ho(qt))))),wakeLockEpic1:e=>e.pipe(Mt(`${Xa}`)).pipe(_t((()=>{xa&&xa.release().then((()=>{xa=null}))})),Ho(qt))},wz,Iz,{meetingInfoEpic:(e,t)=>e.pipe(Mt(`${hf}`),Gr((r=>{const n=Object.assign({},r.payload,{password:Po(r.payload.password),topic:Po(r.payload.topic)}),{videoSDKUrl:o}={videoSDKUrl:`https://${m0}/wc/lsdk`};return((i,a,s="zoomsdkjsonpcallback")=>new Ro((l=>{gD++;const c=`${s}${gD}`,d=document.createElement("script");Object.keys(a).forEach((p=>(a[p]===void 0||a[p]===null)&&delete a[p])),d.src=`${i}?${new URLSearchParams(Object.assign(a,{callback:c})).toString()}`,d.async=!0,d.onerror=p=>l.error(p),document.getElementsByTagName("head")[0].appendChild(d),window[c]=p=>{d.parentNode&&d.parentNode.removeChild(d),delete window[c],l.next(p),l.complete()}})))(o,n).pipe(Wo(e.pipe(Mt(`${Fd}`),_t((()=>{ee(Yu,{})})),Fr(1))),oa((i=>Mn({status:!1,result:i.toString(),errorCode:-3e3}))),Fe((i=>{if(!i.status||i.result===void 0){Ez.report(`get meeting info error, ${JSON.stringify(i)}`,["Join Meeting Flow","Get Meeting Info Error"],"error"),i.errorCode===3e3&&i.errorMessage==="Meeting password is incorrect"?ee(_o,{errorCode:vl.WrongPasscode,reason:"Incorrect passcode."}):i.errorCode===3e3&&i.errorMessage==="The role type error"?ee(_o,{errorCode:vl.RoleTypeMissing,reason:"Role type error"}):i.errorCode===-3e3?ee(_o,{errorCode:vl.CommonError,reason:"connection error"}):i.errorCode===3e3?ee(_o,{reason:i.errorMessage,errorCode:vl.CommonError}):i.errorCode===300?ee(_o,{reason:"This account does not exist or does not belong to you",errorCode:vl.CommonError}):i.errorCode===124&&i.errorMessage==="Parse lite sdk topic and pwd fail"?ee(_o,{reason:"Topic is invalid",errorCode:vl.CommonError}):i.errorCode===124&&i.errorMessage==="The java web token is expired or more than 2 days or ineffective."?ee(_o,{reason:"The token has expired, is over 2 days old, or is ineffective.",errorCode:vl.CommonError}):i.errorCode===124&&ee(_o,{reason:"Verify JWT failed",errorCode:vl.CommonError});const{meeting:{isMeetingReset:s}}=t.value;return s?ft(hd(t.value,!1)):qt}if(i.status===!0){const{result:{mid:s,websdkClientFeatureOptions:l,showRecommendVersion:c}}=i;$r.init(s);const d=((y,b)=>{if(y.result){const{result:{mn:v,ts:C,auth:A,track_auth:R,mid:x,tid:k,webMediaBlockConfig:D,encryptedRWC:F,encryptedGEORWC:$,user_identity:U,meetingOptions:G,can_recording:Y,wcXMPPConfig:Q,call_out_country_json:me,isOriginalHost:ne,support_call_out:Ee,liveTranscription:ce,logConfig:_e,toll_numbers_json:Ne,h323Password:oe,liveStreamInfo:Se,rc_auto_delete:re,jwt_rc:we,op_rc:Ae,mediaSDKVersion:Pe,mediaSDKPathPrefix:Oe,zmk:Ke,fileTransfer:St,fileServerDomain:st,accountId:yt,whiteboardCdnPath:$e,mediaFeatureOptions:ot,websdkClientFeatureOptions:it,sipDomain:Ie,enableVsdkInteractiveLiveStream:tt,enableHybridRWG:mt,supportRtmsApp:Wt}}=y,{lang:cr,password:At,topic:Ve,zlk:Jt,cv:ar,userName:pr}=b;return{isSupportRtmsApp:Wt,meetingNumber:v,meetingId:x,tid:k,ts:C,auth:A,passWord:At,trackAuth:R,customerKey:U,encryptedRWC:JSON.parse(F||"{}"),encryptedGEORWC:JSON.parse($||"{}"),meetingOptions:JSON.parse(G||"{}"),recordingEnable:Y==="1",topic:Ve,userName:$r.get(Cn.WebclientUserName)||pr,cv:ar,zlkJwtToken:Jt,webMediaBlockConfig:D,xmppConfig:JSON.parse(Q||"{}"),callOutCountry:JSON.parse(me||"{}"),lang:cr,isOriginHost:ne,isSupportCallOut:Ee==="1",liveTranscription:JSON.parse(ce||"{}"),logConfig:_e,tollNumbers:Ne===void 0?void 0:JSON.parse(Ne),h323Password:oe,liveStreamInfo:JSON.parse(Se||"{}"),rcAutoDelete:re,jwtRc:we,opRc:Ae,mediaSDKPath:Pe&&Oe?`${C0(Oe)}/${Pe}`:void 0,zmk:Ke,fileTransfer:JSON.parse(St||"{}"),fileServerDomain:st,accountId:yt,mediaFeatureOptions:ot,websdkClientFeatureOptions:it,sipDomain:Ie,enableVsdkInteractiveLiveStream:tt,whiteboardCdnPath:$e,enableHybridRWG:mt}}return y})(i,r.payload);var a;c&&(r==null||(a=r.payload)===null||a===void 0||a.lang,console.log("Update VideoSDK-Web to the latest version to optimize meeting experience","https://developers.zoom.us/docs/video-sdk/web/"));const p=[Mn(Yi(d)),qB(mD,t,bA())],m=(y=>{const b=[];if(y){const v=y.split("").reverse();Object.keys(Ju).filter((C=>/M:\d+(,\d+)*;V:\d+(,\d+)*/.test(Ju[C]))).forEach((C=>{const A=Ju[C];let[R,x]=A.split(";");R.startsWith("V:")&&([R,x]=[x,R]);const k=x.slice(2).split(",").map(($=>v[Number($)-1])).reverse().join(""),D=parseInt(k,16),F=c$[A];F&&(Array.isArray(F)?F:[F]).forEach(($=>{const U=$.mask?(D&$.mask)>0:D;b.push(Mn($.action(U)))}))}))}return b})(l);return m.length>0&&p.unshift(...m),_d(...p)}return qt})),Fs(b5(performance.now())))}))),pingRWCEpic:mD,retryPingRWCEpic:(e,t)=>e.pipe(Mt(`${EA}`),go(la),Be((()=>t.value.meeting.meetingStatus===di.Initial&&t.value.socket.zoomSocketStatus===wn.Closed)),Gr((()=>{const{meeting:{meetingId:r,meetingNumber:n,userName:o},socket:{retryCount:i,rwgServerList:a}}=t.value,s=a==null?void 0:a[i-1];return Rw.makeLogger(["Join Meeting Flow"]).info(`ping rwc retry. Last failed rwc:${s==null?void 0:s.rwc}, last failed rwg:${s==null?void 0:s.rwg}, retry count:${i}, meeting detail:${JSON.stringify({meetingId:r,meetingNumber:Oi(n),userName:Oi(o)})}, rwc log:${Td.getLog()}`,["Ping RWC Retry"]),ft(Td.retry()).pipe(p9(t))})))});function lv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)e[n]=r[n]}return e}var Tz=(function e(t,r){function n(o,i,a){if(typeof document<"u"){typeof(a=lv({},r,a)).expires=="number"&&(a.expires=new Date(Date.now()+864e5*a.expires)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=o+"="+t.write(i,o)+s}}return Object.create({set:n,get:function(o){if(typeof document<"u"&&(!arguments.length||o)){for(var i=document.cookie?document.cookie.split("; "):[],a={},s=0;s<i.length;s++){var l=i[s].split("="),c=l.slice(1).join("=");try{var d=decodeURIComponent(l[0]);if(a[d]=t.read(c,d),o===d)break}catch{}}return o?a[o]:a}},remove:function(o,i){n(o,"",lv({},i,{expires:-1}))},withAttributes:function(o){return e(this.converter,lv({},this.attributes,o))},withConverter:function(o){return e(lv({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})})({read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const{WebclientIsOnHold:Oz,WebclientOpt:_z,WebclientParticipantId:Pz,WebclientZoomId:xz,WebclientMeetingToken:Dz}=Cn,{WebclientDeviceId:vD}=_C;function yD({retryCount:e,rwgServerList:t,userName:r,auth:n,trackAuth:o,meetingId:i,customerKey:a,tid:s,lang:l,ts:c,bid:d,botk:p,confID:m,zlkJwtToken:y,isWebRtcAudioCapable:b,isMeetingReset:v,cameraDevicesList:C,isWhiteboardEnabled:A,isWebrtcVideoCapable:R,webRtcAudioMode:x,mediaFeatureOptions:k}){const D=Tz.get("_zm_mtk_guid");let F=$r.get(vD);if(F||(F=sm(),$r.set(vD,F,fn.LocalStorage)),t.length>e){var $;const U=t[e],G={dn2:Po(r),auth:n,browser:`${Yt.browser}${Yt.browserVersion} ${($=window)!==null&&$!==void 0&&$.crossOriginIsolated?"SAB":""}`,trackAuth:o,mid:i,tid:s,lang:l,ts:c,"ZM-CID":F,_ZM_MTG_TRACK_ID:D||"",customer_key:Po(a),cfs:0,islch:1};if(y)try{const{vendor:ne}=Ms(y);ne&&Object.assign(G,{vendor:ne})}catch(ne){console.log(ne)}U.rwcAuth?Object.assign(G,{rwcAuth:U.rwcAuth}):U.rwcToken&&Object.assign(G,{rwcToken:U.rwcToken});const Y=Yt.isIE?1:Yt.isIE||Yt.isSupportEssentialAudioAndVideoAbility?2:0;Object.assign(G,{as_type:Y}),[{key:_z,queryKey:"opt"},{key:Pz,queryKey:"participantID"},{key:xz,queryKey:"zoomid"}].forEach((ne=>{const Ee=$r.get(ne.key);Ee!==void 0&&(G[ne.queryKey]=Ee)}));const Q=d&&p&&m;Q&&Object.assign(G,{bid:Po(d),confID:m}),$r.get(Dz)&&Object.assign(G,{isdj:1}),Object.assign(G,{from:Yt.isAndroidBrowser?"android":Yt.isIOSMobile?"ios":"other"}),b&&Object.assign(G,{useABAudio:x}),Object.assign(G,{clientCaps:Nz({isAudioBridgeEnabled:b,isBO:Q,mediaFeatureOptions:k,isWhiteboardEnabled:A})}),Object.assign(G,{clientCapsEx:Mz({isWhiteboardEnabled:A})}),Object.assign(G,{useWBVideo:R?1:0});const me=v?C.length>0?1:0:1;return Object.assign(G,{isCamera:me}),Object.assign(G,{clientOS:Yt.isAndroidOrIOSBrowser||Yt.isHarmonyOS?Yt.isIOSMobile?"ios":"android":Yt.isMacOS?"mac":"win"}),Object.assign(G,{audioFeature:dr.getAudioFeatureFlag(b)}),{queryObject:{...G},rwgServer:U}}return null}function Nz(e){const{isAudioBridgeEnabled:t,isBO:r,mediaFeatureOptions:n,isWhiteboardEnabled:o}=e;let i=Pa.WebCameraIndication|Pa.SendMeetingTokenSeparately|Pa.SmartSummary|Pa.LocalRecording|Pa.LocalRecordingGrantPermission|Pa.UnifyErrorType;const a=dr.getPTZCapability();return(a.pan||a.tilt||a.zoom)&&(i|=Pa.SupportFarEndCameraControl),o&&(i|=Pa.SupportWhiteboard),dr.isSupportVideoShare()&&(i|=Pa.SupportVideoShare),t&&dr.isSupportAudioBridgeAVSync()&&(i|=Pa.WebrtcAudioRtcpTime),dr.isSupportShareMultiStream()&&(i|=Pa.ShareMultiStream),dr.isSupportVideoLTR()&&(i|=Pa.VideoLTR),r||(i|=Pa.RequestRemoteControl),dr.isSupportFullHDVideo(n||"")&&(i|=Pa.SupportSend1080PVideo),dr.isSupportFullHDVideoShare(n||"")&&(i|=Pa.SupportSend1080PVideoShare),i}function Mz({isWhiteboardEnabled:e}){let t=jl.SupportPresenterAnnotation;return e&&(t|=jl.SupportWhiteboard),t|=jl.SupportMMRCommandChannel,t|=jl.SupportShareCameraFeed,t|=jl.SupportAudioShareNetworkQuality,t|=jl.SupportRTMS,t|=jl.SupportVideoSDKInternalCommandChannel,t|=jl.SupportCheckHighLevelQos,dr.isSupportHighLevelQos()&&(t|=jl.SupportHighLevelQos),t}function Od(e,t){const{meeting:{conId:r}}=e.value,n=()=>{const{socket:{zoomSocketStatus:o},meeting:{meetingStatus:i,isMeetingReset:a,conId:s}}=e.value;return!(o===wn.Closed||i!==di.Joined||a||(t??0)>0&&(!r||r!==s))};return t?vc(Zy(t),Be(n)):vc(Be(n))}const dp=on.createAgent();let uv;const Hc=Hd.getInstance();let cv;const pp=O0.getInstance();let dv;const bD={zoomSocketStatus:wn.Closed,xmppSocketStatus:wn.Closed,mainSessionSocketStatus:wn.Closed,retryCount:0,rwgServerList:[],xmppRetryCount:0},kz=Mi({[`${Fh}`]:ie(((e,{payload:t})=>{e.zoomSocketStatus=t.status})),[`${I5}`]:ie(((e,{payload:t})=>{const{rwgServerList:r}=e;r.find((n=>n.rwg===t.rwg))||r.push(t)})),[`${EA}`]:ie(((e,{payload:t})=>{e.retryCount=t})),[`${Ey}`]:ie(((e,{payload:t})=>{e.xmppSocketStatus=t})),[`${Cy}`]:ie(((e,{payload:t})=>{e.mainSessionSocketStatus=t})),[`${Pb}`]:ie(((e,{payload:t})=>{e.xmppRetryCount=t})),[`${A5}`]:()=>bD},bD),Lz={mainSessionEpics0:(e,t)=>e.pipe(Mt(`${pC}`),Xt(t),Be((([,r])=>r.socket.mainSessionSocketStatus==="closed")),Gr((([,r])=>{const{meeting:{svcUrl:n,meetingNumber:o,conId:i,isRlbTP:a}}=r,s=(function(l,c,d){return`wss://${l}/wc/media/${c}?type=m&cid=${d}&mode=2`})(n,o,i);return((l,c)=>(pp.connect(l,c),dv=new xs,xl((d=>pp.on(Sa.Message,d)),(d=>pp.off(Sa.Message,d))).pipe(wt((d=>d.data))).subscribe(dv),dv))(s,a).pipe(wt((l=>{try{return JSON.parse(l)}catch(c){return console.error(c),{evt:0}}})),Be((l=>l.evt!==0)),a8(),wt((l=>du(l))),Fs(Cy(wn.Connecting)))}))),mainSessionEpics1:(e,t)=>e.pipe(Mt(`${pC}`),Gr((()=>{const[r,n,o]=[Sa.Open,Sa.Close,Sa.Error].map((i=>xl((a=>pp.on(i,a)),(a=>pp.off(i,a)))));return $o(r.pipe(Pd(Cy(wn.Connected))),n.pipe(Od(t,500),wt((()=>(ee(ka,{reason:ia.Failover}),Ia(yi.DisconnectMChannel))))),o.pipe(Od(t,500),wt((()=>(ee(ka,{reason:ia.Failover}),Ia(yi.OnErrorMChannel))))))}))),mainSessionEpics2:e=>e.pipe(Mt(`${w5}`),Pd(Cy(wn.Closed)),_t((()=>{var t;pp.close(),(t=dv)===null||t===void 0||t.complete()})))},Fz={epics0:(e,t)=>e.pipe(Mt(`${cC}`),Xt(t),Be((([,r])=>r.socket.zoomSocketStatus===wn.Closed&&!!r.meeting.meetingId)),Gr((([,r])=>(function(n){const{media:{patchedMediaSDKStatus:o},meeting:{isRlbTP:i,isRlbTPReady:a}}=n;return b0([o===hh.Loading?cn(ly,1).pipe(go(Ds)):ft([0]),i?a?ft([0]):cn(ny,1).pipe(go(Ds)):ft([0])])})(r).pipe(Gr((()=>{const{socket:{retryCount:n,rwgServerList:o},meeting:i,breakoutRoom:a,audio:s,video:l,whiteboard:c}=t.value;let d;const p={...i,retryCount:n,rwgServerList:o};if(s){const{isWebRtcAudioCapable:b,webRtcAudioMode:v}=s;Object.assign(p,{isWebRtcAudioCapable:b,webRtcAudioMode:v})}if(l){const{cameraDevicesList:b,isWebrtcVideoCapable:v}=l;Object.assign(p,{cameraDevicesList:b,isWebrtcVideoCapable:v})}if(c&&!(i.zlkJwtToken&&a&&a.currentRoom.status===wr.Joining)){const{isWhiteboardEnabled:b}=c;Object.assign(p,{isWhiteboardEnabled:b})}if(a&&a.currentRoom.status===wr.Joining){const{currentRoom:{boId:b,boConfId:v,boToken:C}}=a;Object.assign(p,{bid:b,botk:C,confID:v})}if(d=i.zlkJwtToken?(function(b){const v=yD(b);if(v){const{queryObject:C,rwgServer:A}=v,{topic:R,cv:x,meetingNumber:k,isUIToolkit:D}=b;return Object.assign(C,{topic:Po(R),iccv:x}),D&&Object.assign(C,{browser:C.browser+" UIToolkit"}),`wss://${A.rwg}/instantsdk/${k}?${new URLSearchParams(C).toString()}`}return null})(p):(function(b){const v=yD(b);if(v){const{queryObject:C,rwgServer:A}=v,{cv:R,meetingNumber:x}=b;return Object.assign(C,{jscv:R,browser:C.browser+" ComponentView"}),[{key:Oz,queryKey:"cfs"}].forEach((k=>{const D=$r.get(k.key);D!==void 0&&(C[k.queryKey]=D)})),`wss://${A.rwg}/wc/api/${x}?${new URLSearchParams(C).toString()}`}return null})(p),d){const b=(m=d,y=i.isRlbTP,dp.connect(m,y),uv=new xs,xl((v=>dp.on(Sa.Message,v)),(v=>dp.off(Sa.Message,v)),(v=>v.data)).subscribe(uv),uv);return $o(b.pipe(Be((v=>typeof v=="string")),wt((v=>{try{return JSON.parse(v)}catch(C){return console.error(C),{evt:0}}})),a8(),lg((v=>{if(v.evt!==0||!v.body||v.body.test!=="invalid parameters!")return Bd(v);ee(_o,{errorCode:vl.InvalidParameter,reason:"Invalid parameter"})})),Fs(Fh({status:wn.Connecting,rwgUrl:d}))),b.pipe(Be((v=>v instanceof ArrayBuffer)),wt((v=>GB(v)))))}var m,y;return qt})))))),epics1:(e,t)=>e.pipe(Mt(`${cC}`),Xt(t),Be((([,r])=>r.socket.zoomSocketStatus===wn.Closed&&!!r.meeting.meetingId)),Gr((()=>{const[r,n,o,i]=[Sa.Open,Sa.Close,Sa.Error,Sa.Inactive].map((a=>xl((s=>dp.on(a,s)),(s=>dp.off(a,s)))));return $o(r.pipe(Fe((()=>$o(Mn(Fh({status:wn.Connected})),ao(6e4).pipe(Xt(t),Be((([,a])=>a.meeting.meetingStatus===di.Initial&&!a.meeting.isMeetingReset)),wt((()=>(ee(ka,{reason:ia.Failover}),Ia(yi.NoHeartbeat))))))))),n.pipe(Od(t),wt((()=>(ee(ka,{reason:ia.Failover}),Ia(yi.Disconnect))))),i.pipe(Od(t),wt((()=>(ee(ka,{reason:ia.Failover}),Ia(yi.NoHeartbeat))))),o.pipe(Xt(t),Fe((([,a])=>{const{meeting:{meetingStatus:s,isMeetingReset:l},socket:{rwgServerList:c,retryCount:d}}=a,p=[];return s===di.Initial&&c!=null&&c.length?p.push(EA(d+1),Xa({retry:!0})):l||s!==di.Joined||(ee(ka,{reason:ia.Failover}),p.push(Ia(yi.OnError))),ft(p)}))))}))),epics2:(e,t)=>e.pipe(Mt(`${Xa}`),Gr((r=>{const n=[Fh({status:wn.Closed})];return r.payload&&r.payload.retry?ft(n):_d(ft(n),ao(0,Ds).pipe(_t((()=>{var o;t.value.socket.zoomSocketStatus===wn.Closed&&(dp.close(),(o=uv)===null||o===void 0||o.complete())})),sn()))})))},jz=Qi(Fz,{xmppEpics0:(e,t)=>e.pipe(Mt(`${js}`),Fe((()=>{const{meeting:{meetingOptions:r,zlkJwtToken:n,isWebinar:o}}=t.value,i=[];return(r.isPollingEnabled||n||o)&&i.push(Wg()),ft(i)}))),xmppEpics1:(e,t)=>e.pipe(Mt(`${Wg}`),Xt(t),Be((([,r])=>r.socket.xmppSocketStatus===wn.Closed)),Gr((([,r])=>{const{meeting:{svcUrl:n,meetingNumber:o,conId:i,isRlbTP:a}}=r,s=(function(l,c,d){return`wss://${l}/wc/media/${c}?type=x&cid=${d}`})(n,o,i);return((l,c)=>(Hc.connect(l,c),cv=new xs,xl((d=>Hc.on(ru.Message,d)),(d=>Hc.off(ru.Message,d))).subscribe(cv),cv))(s,a).pipe(Be((l=>(l==null?void 0:l.evt)!==void 0)),wt((l=>C5(l))),Fs(Ey(wn.Connecting)))}))),xmppEpics2:(e,t)=>e.pipe(Mt(`${Wg}`),Gr((()=>{const[r,n,o]=[ru.Open,ru.Close,ru.Error].map((a=>xl((s=>Hc.on(a,s)),(s=>Hc.off(a,s))))),i=a=>Fe((()=>{const{socket:{xmppSocketStatus:s,xmppRetryCount:l}}=t.value,c=[];return s===wn.Connecting&&l<3?(c.push(Pb(l+1)),c.push(dC({retry:!0}))):(s===wn.Connected||l>=3)&&(ee(ka,{reason:ia.Failover}),c.push(Ia(a))),ft(c)}));return $o(r.pipe(_t((()=>{const a=(function(){const{isSupportEssentialAudioAndVideoAbility:s,isSupportAudioWorklet:l}=Yt;return s&&l?11:10})();Hc.join(a)})),wt((()=>Ey(wn.Connected)))),n.pipe(Od(t,500),i(yi.DisconnectXmpp)),o.pipe(Od(t,500),i(yi.OnErrorXmppChannel)))}))),xmppEpics3:(e,t)=>e.pipe(Mt(`${dC}`),Gr((r=>{var n;const o=[Ey(wn.Closed)];return(n=r.payload)!==null&&n!==void 0&&n.retry?ft(o):_d(ft(o),ao(0,Ds).pipe(_t((()=>{var i;t.value.socket.xmppSocketStatus===wn.Closed&&(Hc.close(),(i=cv)===null||i===void 0||i.complete())})),sn()))}))),xmppEpics4:(e,t)=>e.pipe(Mt(`${Pb}`),Be((r=>r.payload<=3)),Fe((r=>ft([r]).pipe(Zy(1e3*Math.pow(2,r.payload-1))))),Od(t),wt((()=>Wg())))},Lz),SD={audioEncodeStatus:"initial",audioDecodeStatus:"initial",videoEncodeStatus:"initial",videoDecodeStatus:"initial",sharingEncodeStatus:"initial",sharingDecodeStatus:"initial",assetsPath:"",mediaConstraints:void 0,enforceMultipleVideos:!1,enforceVirtualBackground:!1,isMediaAgentInitialized:!1,disableRenderLimits:!1,enforceAudioDenoiseAdaptive:!1},Vz=Mi({[`${mC}`]:ie(((e,{payload:t})=>{e.audioDecodeStatus=t})),[`${hC}`]:ie(((e,{payload:t})=>{e.audioEncodeStatus=t})),[`${wy}`]:ie(((e,{payload:t})=>{e.sharingDecodeStatus=t})),[`${yC}`]:ie(((e,{payload:t})=>{e.sharingEncodeStatus=t})),[`${vC}`]:ie(((e,{payload:t})=>{e.videoDecodeStatus=t})),[`${gC}`]:ie(((e,{payload:t})=>{e.videoEncodeStatus=t})),[`${CA}`]:ie(((e,{payload:t})=>{e.mediaConstraints=t.mediaConstraints,e.assetsPath=t.assetsPath,e.enforceMultipleVideos=!!t.enforceMultipleVideos,e.enforceVirtualBackground=t.enforceVirtualBackground,e.skipJsMedia=t.skipJsMedia,e.patchJsMedia=t.patchJsMedia,e.alternativeNameForVideoPlayer=t.alternativeNameForVideoPlayer,t.enforceMultipleVideos&&typeof t.enforceMultipleVideos=="object"&&(e.disableRenderLimits=!!t.enforceMultipleVideos.disableRenderLimits)})),[`${T5}`]:ie(((e,{payload:t})=>{const{type:r,encryptKey:n,additionalType:o}=t,i={encryptKey:n,additionalType:o};r==="audio"?e.audioEncrypt=i:r==="video"?e.videoEncrypt=i:r==="sharing"&&(e.sharingEncrypt=i)})),[`${O5}`]:ie(((e,{payload:t})=>{e.isEnableDecoderInWorklet=t})),[`${Iy}`]:ie(((e,{payload:t})=>{e.patchedMediaSDKStatus=t})),[`${_5}`]:ie(((e,{payload:t})=>{e.assetsPath=t})),[`${bC}`]:ie(((e,{payload:t})=>{e.isMediaAgentInitialized=t})),[`${P5}`]:ie(((e,{payload:t})=>{e.enforceAudioDenoiseAdaptive=t})),[`${x5}`]:e=>({...SD,mediaConstraints:e.mediaConstraints,assetsPath:e.assetsPath,enforceMultipleVideos:e.enforceMultipleVideos,disableRenderLimits:e.disableRenderLimits,enforceVirtualBackground:e.enforceVirtualBackground,alternativeNameForVideoPlayer:e.alternativeNameForVideoPlayer})},SD),{InitSuccessVideo:x1,InitSuccessAudio:D1,InitSuccessSharing:N1,InitFailedVideo:M1,InitFailedAudio:k1,InitFailedSharing:L1,HealthCheckFailed:ED,AudioWebsocketBroken:CD,VideoWebsocketBroken:wD,AudioStreamFailed:ID,VideoStreamFailed:AD,WebglContextInvalid:RD,WasmMemoryFail:TD,AudioStreamMuted:OD,RecoverWebrtcAudio:_D,AudioBridgeSocketConnectionError:PD,VideoStreamMuted:xD}=ut,ni=Xi(dr.getInstance()),f9=Ei.getInstance(),DD=f9.makeLogger(["Media Agent"]),pv=[],Bz={epics0:(e,t)=>e.pipe(Mt(`${Yi}`),Gr((r=>{var n;const{meeting:{isMeetingReset:o}}=t.value;return Yt.mediaFeatureOptions=(n=r.payload)===null||n===void 0?void 0:n.mediaFeatureOptions,e.pipe(Wo(e.pipe(Mt(`${Xa}`),Be((i=>{var a;return!((a=i.payload)!==null&&a!==void 0&&a.retry)})),Fr(1))),Mt(`${js}`),Fr(1),_l((()=>{var i;const{logger:a,media:{mediaConstraints:s,assetsPath:l,enforceMultipleVideos:c,enforceVirtualBackground:d,enforceAudioDenoiseAdaptive:p},meeting:{meetingId:m,meetingNumber:y,mediaFeatureOptions:b,webMediaBlockConfig:v}}=t.value,C=a!=null&&(i=a.options)!==null&&i!==void 0&&i.enable?Ei.getInstance().makeLogger(["MEDIA SDK"]):void 0;return(function(A){const{media:{patchedMediaSDKStatus:R}}=A;return R===hh.Loading?jn(cn(ly,1)):Promise.resolve()})(t.value).then((()=>{const A=[];return ni.init({...y6(c,d,p),globalTracingLogger:jH(C),mid:m,meetingNumber:y,mediaSDKConfig:{mediaFeatureOptions:b,webMediaBlockConfig:v,mediaSDKCDNPath:l},rwgAgent:on.createAgent()}),A.push(bC(!0)),o&&s!==void 0&&l!==void 0&&A.push(fC()),A})).catch((()=>[]))})))}))),epics1:(e,t)=>e.pipe(Mt(`${Yi}`),Be((r=>{const{payload:{mediaSDKPath:n}}=r,{media:{skipJsMedia:o,patchJsMedia:i,assetsPath:a},meeting:{isMeetingReset:s}}=t.value;return!o&&h6(a)&&!!i&&!!n&&!s})),Gr((r=>{const{payload:{mediaSDKPath:n}}=r,o=C0(n);return ft(new Promise(((i,a)=>{const s=`${o}/${Zc}`;"JsMediaSDK_Instance"in window&&(window.JsMediaSDK_Instance_backup=window.JsMediaSDK_Instance,delete window.JsMediaSDK_Instance),Ym(s,(()=>{"JsMediaSDK_Instance_backup"in window&&delete window.JsMediaSDK_Instance_backup,DD.info(`patched media sdk url:${s}`),i("")}),(()=>{"JsMediaSDK_Instance_backup"in window&&(window.JsMediaSDK_Instance=window.JsMediaSDK_Instance_backup,delete window.JsMediaSDK_Instance_backup),DD.error(`cannot load patched media sdk :${s}`),a()}))}))).pipe(Fe((()=>(ee(ly),ft([Iy(hh.Done),_5(o)])))),oa((()=>(ee(ly),ft([Iy(hh.Done)])))),Fs(Iy(hh.Loading)))}))),epics2:(e,t)=>(function(r,n){return r.pipe(Mt(`${fC}`),Be((()=>{const{media:{assetsPath:o,mediaConstraints:i}}=n.value;return o!==void 0&&i!==void 0})),Gr((()=>{const{media:{isMediaAgentInitialized:o}}=n.value;return o?ft([0]):r.pipe(Mt(`${bC}`),Be((i=>!!i.payload)),Fr(1))})))})(e,t).pipe(_t((()=>{const{media:{assetsPath:r,mediaConstraints:n}}=t.value;ni.notifySDKMeetingReady(),r&&n&&ni.setAssetsAndConstraint(r,n),kd(t).pipe(Gr((o=>ft(GE.acquire().then((()=>o)))))).subscribe((o=>{const{meeting:{svcUrl:i,meetingNumber:a,conId:s,e2eEncrypt:l,userId:c,isWebinar:d,enableWebtransport:p,webtransportPort:m,isUseWBVideo:y,mediasdkConfig:b,reportDomain:v,abToken:C,confId:A},media:{alternativeNameForVideoPlayer:R,enforceMultipleVideos:x,disableRenderLimits:k},audio:D,video:F}=t.value;var $;o&&(ni.connect({svcUrl:i,meetingNumber:a,conId:s,confId:A,e2eEncrypt:l,isViewOnly:ci(o.userRole),currentUserId:c,isWebinar:d,reportDomain:v,abToken:C??"",enableWebtransport:!!p,webtransportPort:m??0,isWebRtcVideoCapable:y,isWebRtcAudioCapable:!(D==null||!D.isWebRtcAudioCapable),rendererType:($=F==null?void 0:F.rendererType)!==null&&$!==void 0?$:0,webrtcMode:HV(!(D==null||!D.isWebRtcAudioCapable),y,!!((D==null?void 0:D.webRtcAudioMode)&q3.WebRTCAudio2)),mediasdkConfig:b??{},enforceMultipleVideos:x,disableRenderLimits:k}),dr.initVideoPlayer({mediaSDK:()=>ni.instance,tagName:R,failover:"1"}))}))})),Gr((()=>xl((r=>ni.registerCallback(r)),(r=>ni.unregisterCallback(r)),((r,n)=>({type:r,data:n}))).pipe(wt((r=>R5(r))))))),epics3:e=>{return Er(e,[x1,D1,N1,M1,k1,L1]).pipe((t=r=>{const{payload:{type:n,data:o}}=r;if(n===D1||n===k1){if(o===ma.EncodeSuccess)return ee(OM),Mn(hC("success"));if(o===ma.DecodeSuccess)return ee(_M),Mn(mC("success"));if(o===ma.EncodeFailed)return ee(NM),Mn(hC("failed"));if(o===ma.DecodeFailed)return ee(MM),Mn(mC("failed"))}else if(n===x1||n===M1){if(o===ma.EncodeSuccess)return ee(PM),Mn(gC("success"));if(o===ma.DecodeSuccess)return ee(xM),Mn(vC("success"));if(o===ma.EncodeFailed)return ee(kM),Mn(gC("failed"));if(o===ma.DecodeFailed)return ee(LM),Mn(vC("failed"))}else if(n===N1||n===L1){if(o===ma.EncodeSuccess)return ee(DM),Mn(yC("success"));if(o===ma.DecodeSuccess)return ee(_E),Mn(wy("success"));if(o===ma.EncodeFailed)return ee(FM),Mn(yC("failed"));if(o===ma.DecodeFailed)return ee(jM),Mn(wy("failed"));if(n===N1&&o===void 0)return ee(_E),Mn(wy("success"))}},vc(Fe(((r,n)=>t(r)||qt)))));var t},epics4:(e,t)=>Er(e,[x1,D1]).pipe(Gr((()=>typeof navigator.mediaDevices=="object"?$o(Ld(),$o(Er(e,ut.StartVideoCaptureSuccess),Er(e,ut.DeviceChangeEvent),Er(e,ut.UserGrantCaptureAudio).pipe(Be((()=>!t.value.audio.isUserGrantCaptureAudio))),Er(e,ut.JoinComputerAudioComplete).pipe(Be((r=>{var n;return!((n=r.payload.data)===null||n===void 0||!n.isPassive)}))),cn(PE).pipe(Be((r=>r.state==="granted")))).pipe(Fe((()=>Ld().pipe(_t((()=>{setTimeout((()=>{ee(VM)}),50)}))))))).pipe(Xt(t),Fe((([r,n])=>{const o=[h8(r.microphones),m8(r.speakers),mA(r.cameras)];if(n.audio){const{audio:{activeMicrophone:s,activeSpeaker:l,microphoneDevicesList:c,speakerDevicesList:d,isUsingMediaPlayback:p},video:{cameraDevicesList:m,activeCamera:y,isUsingMediaPlayback:b}}=n,v=ir(n),{microphones:C,speakers:A,cameras:R}=r,x=c.filter((F=>C.findIndex(($=>$.deviceId===F.deviceId))===-1)),k=d.filter((F=>A.findIndex(($=>$.deviceId===F.deviceId))===-1)),D=m.filter((F=>R.findIndex(($=>$.deviceId===F.deviceId))===-1));if(x.length>0){if(x.some((F=>_S(F,s,c)))){const F=Gf(C);p||ni.changeMicrophone("default",F==null?void 0:F.label,!(v==null||!v.muted)),o.push(lm("default"))}}else if(s==="default"){const F=Gf(c),$=Gf(C);!p&&c.length>0&&(F==null?void 0:F.label)!==($==null?void 0:$.label)&&ni.changeMicrophone("default",$==null?void 0:$.label,!(v==null||!v.muted))}var i,a;k.length>0?k.some((F=>_S(F,l,d)))&&(ni.changeSpeaker("default"),o.push(_0("default"))):l==="default"&&d.length>0&&((i=Gf(d))===null||i===void 0?void 0:i.label)!==((a=Gf(A))===null||a===void 0?void 0:a.label)&&ni.changeSpeaker("default"),D.length>0&&D.some((F=>_S(F,y,m)))&&(b||ni.stopCaptureVideo(),o.push(ff(Yt.isAndroidOrIOSBrowser?qi.User:"default")))}return ft(o)}))):qt))),epics5:(e,t)=>il(e,Vn).pipe(_t((r=>{const{type:n,payload:{body:o}}=r,i=n===`${du}`;if(o.add){const a=o.add.map((s=>({userid:s.id,sn:s.zoomID&&sa(s.zoomID)})));if(!i){const{meeting:{gcmSessinKey:s}}=t.value;ni.sendUserNodeList(a,s)}ni.updateUserMediaSN({added:a,isFromMainSession:i,iVType:ol.SHARING_DECODE}),i&&ni.updateUserMediaSN({added:a,isFromMainSession:i,iVType:ol.AUDIO_DECODE})}if(o.remove&&o.remove.length>0){if(!i){const{meeting:{gcmSessinKey:a}}=t.value;ni.sendUserNodeList(o.remove.map((s=>({userid:s.id,bremove:!0}))),a)}ni.updateUserMediaSN({removed:o.remove.map((a=>a.id)),isFromMainSession:i,iVType:ol.SHARING_DECODE}),i&&ni.updateUserMediaSN({removed:o.remove.map((a=>a.id)),isFromMainSession:i,iVType:ol.AUDIO_DECODE})}})),sn()),epics6:e=>Er(e,ut.AesGcmIvResponse).pipe(_t((t=>{const{payload:{data:{workerType:r,iv:n}}}=t,o=$r.get(Cn.WebclientIVState);if(o){const i={...o,[r]:n};$r.set(Cn.WebclientIVState,i,fn.SessionStorage)}})),sn()),epics7:e=>e.pipe(Mt(`${Bd}`),Be((t=>[EC,gO,wA].includes(t.payload.evt))),wt((t=>{const{payload:{evt:r,body:{encryptKey:n,additionalType:o}}}=t;return T5({type:r===EC?"audio":r===gO?"video":"sharing",encryptKey:n,additionalType:o})}))),epics8:e=>e.pipe(Mt(`${CA}`),_t((t=>{const{payload:r}=t;gi.setMediaOption({assetsPath:r.assetsPath,enforceMultipleVideos:r.enforceMultipleVideos,enforceVirtualBackground:r.enforceVirtualBackground,alternativeNameForVideoPlayer:r.alternativeNameForVideoPlayer})})),sn()),epics9:e=>e.pipe(Mt(`${hf}`,`${Ob}`,`${js}`),_t((()=>{Ka.getInstance().inProgress&&(Ka.getInstance().disconnect(),GE.watch(Ka.getInstance().destroy()))})),sn()),epics10:e=>e.pipe(Mt(`${hf}`,`${Ob}`),Gr((()=>"permissions"in navigator?["microphone","camera"].map((t=>{navigator.permissions.query({name:t}).then((r=>{const n=()=>{ee(PE,{name:t,state:r.state})};n(),r.addEventListener("change",n),pv.push((()=>{r.removeEventListener("change",n)}))})).catch((()=>{}))})):qt)),sn()),epics11:e=>e.pipe(Mt(`${SA}`),Be((t=>t.payload===di.Closed)),_t((()=>{pv.length>0&&(pv.forEach((t=>t())),pv.length=0)})),sn()),epics12:(e,t)=>Er(e,[ED,M1,k1,L1,CD,wD,ID,AD,RD,TD,OD,_D,PD,xD]).pipe(Fe((r=>{const{payload:{type:n,data:o}}=r;let i,a;if(n===CD||n===PD)i={message:"Audio connection failed. Please refresh your browser to reconnect.",type:"audio",code:_a.AudioConnectionFailed};else if(n===wD)i={message:"Connection to remote video has failed. Please refresh your browser to try again.",type:"video",code:_a.VideoConnectionFailed};else if(n===ID)o===mh.Exception?i={message:"Can't access your microphone. Please refresh your browser to try again.",type:"audio",code:_a.AudioStreamEnded}:o===mh.PermissionReset&&(i={message:"Your browser is preventing access to your microphone.Please grant the permission.",type:"audio",code:_a.MicrophonePermissionReset});else if(n===AD)o===mh.Exception?i={message:"Can't access your camera. Please refresh your browser to try again.",type:"video",code:_a.VideoStreamEnded}:o===mh.PermissionReset&&(i={message:"Your browser is preventing access to your camera.Please grant the permission.",type:"video",code:_a.CameraPermissionReset});else if(n===RD)i={message:"Oops! Something went wrong. Please close all browsers and rejoin the meeting.",type:"video",code:_a.WebGlContextInvalid};else if(n===TD)i={message:"Uh-oh! You’re running low on memory. Please close all browsers and rejoin the meeting.",type:"video",code:_a.WasmOutOfMemory};else if(n===ED){let[l,c]=["",0];o===-129?(l="sharing",c=_a.SharingStreamFailed):[-130,-135].includes(o)?(l="video",c=_a.VideoStreamFailed):[-131,-136].includes(o)&&(l="audio",c=_a.AudioStreamFailed),i={message:"Oops! Something went wrong. Please close all browsers and rejoin the meeting.",type:l,code:c}}else if(n===OD){const l="audio";let[c,d]=[0,""];o?(c=_a.MicrophoneMuted,d="Your mic is muted in system or browser settings. Please open your settings to unmute and adjust the level."):(c=_a.AudioStreamMuted,d="Audio was interrupted by the system. Please click anywhere to resume playback.",a=qE().pipe(Wo(Er(e,ut.AudioStreamUnmuted).pipe(Fr(1))),_t((()=>{b6(ni,t.value)})))),i={message:d,type:l,code:c}}else if(n===_D)o===!1&&(i={message:"Audio playback was interrupted. Please click anywhere to resume playback.",type:"audio",code:_a.AudioPlaybackInterrupted});else if(n===xD&&t.value.video.isCurrentUserStartedVideo){const l="video",c=_a.VideoStreamMuted;a=qE().pipe(Wo(Er(e,ut.VideoStreamUnmuted).pipe(Fr(1))),_t((()=>{(function(p,m){const{video:{isCurrentUserStartedVideo:y,activeCamera:b,isUsingMediaPlayback:v,customizedVideoOption:C}}=m;if(y&&!v){const{captureHeight:A,captureWidth:R,originalRatio:x,hd:k,fullHd:D}=C??{};p.changeCamera({cameraDeviceId:b,usingFacingMode:Xm.includes(b),width:R,height:A,originalRatio:!!x,hd:!!k||!!D,isSameDevice:!0})}})(ni,t.value)}))),i={message:"Video was interrupted by the system. Please click anywhere to resume.",type:l,code:c}}var s;return i&&(f9.report(`active media failed. reason:${n}; message:${i.message}`,`${(s=i.type)===null||s===void 0?void 0:s.replace(/^./,(l=>l.toUpperCase()))} exception flow`),ee(BM,i)),a??ft([])})),sn()),epics13:e=>Ct(e,4366).pipe(_t((t=>{const{payload:r}=t;ni.bypassMediaMessage(r)})),sn()),epics14:(e,t)=>Er(e,ut.NotifyUIFailover).pipe(Be((()=>!t.value.meeting.isMeetingReset&&t.value.meeting.meetingStatus===di.Joined)),wt((r=>{const{payload:{data:n}}=r;ee(ka,{reason:ia.Failover});let o=yi.NotifyUiFailover;return(n==null?void 0:n.audio)!==void 0&&(Yt.isAndroidOrIOSBrowser||Yt.isHarmonyOS||n.audio!==cT.FallbackToWasm||$r.set(Cn.VideoSDKWebRTCAudioFallbackWasm,1,fn.SessionStorage)),(n==null?void 0:n.video)!==void 0&&(o=yi.NotifyUIWMSCFailover,n.video===cT.FallbackToWasm&&$r.set(Cn.VideoSDKWebRTCVideoFallbackWasm,1,fn.SessionStorage)),Ia(o)})))},Hz=Qi(Bz),ND={processorCreatedList:[],processorInstanceList:[]},Uz={meeting:Cz,socket:kz,participants:vH,media:Vz,processor:Mi({[`${xk}`]:ie(((e,{payload:t})=>{e.processorCreatedList.push(t)})),[`${Dk}`]:ie(((e,{payload:t})=>{e.processorInstanceList.push(t)})),[`${Nk}`]:ie(((e,{payload:t})=>{const r=e.processorInstanceList.findIndex((n=>n.name===t.name&&n.type===t.type));r>=0&&e.processorInstanceList.splice(r,1)})),[`${Mk}`]:()=>({...ND})},ND)},$z=d9;function MD(e){return(function(t){for(var r=Object.keys(t),n={},o=0;o<r.length;o++){var i=r[o];typeof t[i]=="function"&&(n[i]=t[i])}var a,s=Object.keys(n);try{(function(l){Object.keys(l).forEach((function(c){var d=l[c];if(d(void 0,{type:i0.INIT})===void 0)throw new Error(ga(12));if(d(void 0,{type:i0.PROBE_UNKNOWN_ACTION()})===void 0)throw new Error(ga(13))}))})(n)}catch(l){a=l}return function(l,c){if(l===void 0&&(l={}),a)throw a;for(var d=!1,p={},m=0;m<s.length;m++){var y=s[m],b=n[y],v=l[y],C=b(v,c);if(C===void 0)throw c&&c.type,new Error(ga(14));p[y]=C,d=d||C!==v}return(d=d||s.length!==Object.keys(l).length)?p:l}})({...Uz,...e})}class Jl extends uC{static createClient(){if(!this.meetingClient){const t=(function(){const r=(function(s){s===void 0&&(s={});var l,c=new yT.constructor(yT.schedulerActionCtor),d=new xs,p=function(m){l=m;var y=new xs,b=new xs,v=y.asObservable().pipe(go(c)),C=new KB(b.pipe(go(c)),l.getState());return d.pipe(wt((function(A){var R=A(v,C,s.dependencies);if(!R)throw new TypeError('Your root Epic "'+(A.name||"<anonymous>")+`" does not return a stream. Double check you're not missing a return statement!`);return R})),Fe((function(A){return ft(A).pipe(mE(c),go(c))}))).subscribe(l.dispatch),function(A){return function(R){var x=A(R);return b.next(l.getState()),y.next(R),x}}};return p.run=function(m){d.next(m)},p})(),{epicSubject:n,rootEpic:o}=(function(){const s=new xj(D5(Rz,jz,bH,Hz));return{epicSubject:s,rootEpic:(l,c,d)=>s.pipe(Wo(l.pipe(Mt(`${o5}`))),Fe((p=>p(l,c,d))))}})(),i=[r],a=c9(MD(),$z((function(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];return function(d){return function(){var p=d.apply(void 0,arguments),m=function(){throw new Error(ga(15))},y={getState:p.getState,dispatch:function(){return m.apply(void 0,arguments)}},b=l.map((function(v){return v(y)}));return m=d9.apply(void 0,b)(p.dispatch),cD(cD({},p),{},{dispatch:m})}}})(...i)));return a.asyncReducers={},a.injectReducer=(s,l)=>{a.asyncReducers[s]===void 0&&(a.asyncReducers[s]=l,a.replaceReducer(MD(a.asyncReducers)))},a.injectEpic=s=>{n.next(s)},r.run(o),a})();this.meetingClient=new gz(t)}return this.meetingClient}}function Wz(e,t,r){return(t=(function(n){var o=(function(i,a){if(typeof i!="object"||!i)return i;var s=i[Symbol.toPrimitive];if(s!==void 0){var l=s.call(i,a);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(i)})(n,"string");return typeof o=="symbol"?o:o+""})(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable}))),r.push.apply(r,n)}return r}function qa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kD(Object(r),!0).forEach((function(n){Wz(e,n,r[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kD(Object(r)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))}))}return e}function Em(e,t){if(e==null)return{};var r,n,o=(function(a,s){if(a==null)return{};var l={};for(var c in a)if({}.hasOwnProperty.call(a,c)){if(s.indexOf(c)!==-1)continue;l[c]=a[c]}return l})(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}const dg="2.3.12",F1="INVALID_PARAMETERS",zz="https://dmogdx0jrul3u.cloudfront.net/videosdk/".concat(dg,"/lib"),Kz="https://source.zoom.us/videosdk/".concat(dg,"/lib"),Gz="https://jssdk.zoomus.cn/videosdk/".concat(dg,"/lib"),j1=e=>typeof e=="string"&&e.length>0,h9=e=>{let t="";switch(e){case"Global":t=Kz;break;case"CN":t=Gz;break;case"CDN":t=zz;break;default:t=e}return t},m9=["userId","avatar","displayName","isHost","audio","muted","bVideoOn","sharerOn","sharerPause","userIdentity","isSpeakerOnly","bVideoShare","bShareAudioOn","userGuid","isPhoneUser","isInFailover","userKey",{from:"isCoHost",to:"isManager"},{from:"bAllowISORecord",to:"isAllowIndividualRecording"},{from:"bVideoConnect",to:"isVideoConnect"},{from:"bShareToBORooms",to:"bShareToSubsession"},{from:"bid",to:"subsessionId"},{from:"phoneNumber",to:e=>e===void 0?{}:{phoneNumber:e}}],g9=[...m9,{from:"userGUID",to:"userGuid"},{from:"bCoHost",to:e=>({isManager:!!e})},{from:"userType",to:e=>({isPhoneUser:!(5&~e)})},{from:"bid",to:e=>e?{subsessionId:e}:{}},{from:"bInFailover",to:"isInFailover"},{from:"userIdentity",to:"userKey"}],qz=g9.map((e=>typeof e=="string"?e:e.from));function v9(e,t){return typeof e=="string"?{["".concat(e)]:t}:typeof e.to=="string"?{["".concat(e.to)]:t}:e.to(t)}function md(e){if(e)return m9.reduce(((t,r)=>{const n=typeof r=="string"?r:r.from,o=v9(r,e[n]);return qa(qa({},t),o)}),{})}function V1(e){if(e)return Object.keys(e).reduce(((t,r)=>{const n=qz.indexOf(r);if(n>-1){const o=g9[n],i=typeof o=="string"?o:o.from,a=v9(o,e[i]);return qa(qa({},t),a)}return t}),{})}const Ye=Symbol("stream");class Jz{constructor(t){this[Ye]=void 0,this[Ye]=t}startAudio(t){return this[Ye].startAudio(t)}stopAudio(){return this[Ye].stopAudio()}muteAudio(t){return this[Ye].muteAudio(t)}unmuteAudio(t){return this[Ye].unmuteAudio(t)}inviteByPhone(t,r,n,o){return this[Ye].dialOut(t,r,n,o)}cancelInviteByPhone(t,r,n){return this[Ye].cancelDialOut(t,r,n)}hangup(){return this[Ye].hangup()}getCurrentSessionCallinInfo(){return this[Ye].getDialInInfo()}muteShareAudio(t){return this[Ye].muteShareAudio(t)}unmuteShareAudio(t){return this[Ye].unmuteShareAudio(t)}subscribeAudioStatisticData(t){return this[Ye].subscribeAudioStatisticData(t)}unsubscribeAudioStatisticData(t){return this[Ye].unsubscribeAudioStatisticData(t)}muteUserAudioLocally(t){return this[Ye].muteUserAudioLocally(t)}unmuteUserAudioLocally(t){return this[Ye].unmuteUserAudioLocally(t)}adjustUserAudioVolumeLocally(t,r){return this[Ye].adjustUserAudioVolumeLocally(t,r)}enableBackgroundNoiseSuppression(t){return this[Ye].enableBackgroundNoiseSuppression(t)}enableSyncButtonsOnHeadset(t){return this[Ye].enableSyncButtonsOnHeadset(t)}muteAllUserAudioLocally(){return this[Ye].muteAllUserAudioLocally()}unmuteAllUserAudioLocally(){return this[Ye].unmuteAllUserAudioLocally()}enableOriginalSound(t){return this[Ye].enableOriginalSound(t)}callCRCDevice(t,r){return this[Ye].callCRCDevice(t,r)}cancelCallCRCDevice(t,r){return this[Ye].cancelCallCRCDevice(t,r)}startSecondaryAudio(t,r){return this[Ye].startSecondaryAudio(t,r)}stopSecondaryAudio(){return this[Ye].stopSecondaryAudio()}muteAllAudio(){return this[Ye].muteAllAudio()}unmuteAllAudio(){return this[Ye].unmuteAllAudio()}muteAudioUponStartAudio(t){return this[Ye].muteAudioUponEntry(t)}allowAudioUnmutedBySelf(t){return this[Ye].allowUnmuteAudioThemselves(t)}isAudioMuted(t){return this[Ye].isAudioMuted(t)}getMicList(){return this[Ye].getMicList()}getSpeakerList(){return this[Ye].getSpeakerList()}getActiveMicrophone(){return this[Ye].getActiveMicrophone()}getActiveSpeaker(){return this[Ye].getActiveSpeaker()}switchMicrophone(t){return this[Ye].switchMicrophone(t)}switchSpeaker(t){return this[Ye].switchSpeaker(t)}isSupportPhoneFeature(){return this[Ye].isSupportCallOut()}getSupportCountryInfo(){return this[Ye].getDialOutCountries()}getInviteByPhoneStatus(){return this[Ye].getDialOutStatus()}getShareAudioStatus(){return this[Ye].getShareAudioStatus()}isOthersShareAudioMutedLocally(t){return this[Ye].isOthersShareAudioMutedLocally(t)}getAudioStatisticData(){return this[Ye].getAudioStatisticData()}isUserAudioMutedLocally(t){return this[Ye].isUserAudioMutedLocally(t)}getUserVolumeLocally(t){return this[Ye].getUserVolumeLocally(t)}isSupportMicrophoneAndShareAudioSimultaneously(){return this[Ye].isSupportMicrophoneAndShareAudioSimultaneously()}getAudioMediaPlaybackController(){return this[Ye].getAudioMediaPlaybackController()}isAllowAudioUnmutedBySelf(){return this[Ye].isAllowToUnmute()}getSessionSIPAddress(){return this[Ye].getSessionSIPAddress()}isSupportBackgroundNoiseSuppression(){return this[Ye].isSupportBackgroundNoiseSuppression()}startVideo(t){return this[Ye].startVideo(t)}stopVideo(){return this[Ye].stopVideo()}createProcessor(t){return this[Ye].createProcessor(t)}addProcessor(t){return this[Ye].addProcessor(t)}removeProcessor(t){return this[Ye].removeProcessor(t)}renderVideo(t,r,n,o,i,a,s,l){return this[Ye].renderVideo(t,r,n,o,i,a,s,l)}stopRenderVideo(t,r,n,o){let i=arguments.length>4&&arguments[4]!==void 0&&arguments[4],a=arguments.length>5?arguments[5]:void 0;return this[Ye].stopRenderVideo(t,r,n,o,i,a)}updateVideoCanvasDimension(t,r,n){return this[Ye].updateVideoCanvasDimension(t,r,n)}adjustRenderedVideoPosition(t,r,n,o,i,a,s){return this[Ye].adjustRenderedVideoPosition(t,r,n,o,i,a,s)}clearVideoCanvas(t,r){return this[Ye].clearVideoCanvas(t,r)}mirrorVideo(t){return this[Ye].mirrorVideo(t)}enableHardwareAcceleration(t){return this[Ye].enableHardwareAcceleration(t)}previewVirtualBackground(t,r,n,o){return this[Ye].previewVirtualBackground(t,r,n,o)}updateVirtualBackgroundImage(t,r){return this[Ye].updateVirtualBackgroundImage(t,r)}stopPreviewVirtualBackground(){return this[Ye].stopPreviewVirtualBackground()}previewVideoMask(t,r){return this[Ye].previewVideoMask(t,r)}updateVideoMask(t){return this[Ye].updateVideoMask(t)}stopPreviewVideoMask(){return this[Ye].stopPreviewVideoMask()}switchCamera(t){return this[Ye].switchCamera(t)}subscribeVideoStatisticData(t){return this[Ye].subscribeVideoStatisticData(t)}unsubscribeVideoStatisticData(t){return this[Ye].unsubscribeVideoStatisticData(t)}attachVideo(t,r,n){return this[Ye].attachVideo(t,r,n)}detachVideo(t,r){return this[Ye].detachVideo(t,r)}spotlightVideo(t,r){return this[Ye].spotlight(t,r!=null&&r)}removeSpotlightedVideo(t){return this[Ye].removeSpotlight(t)}removeAllSpotlightedVideos(){return this[Ye].removeAllSpotlights()}screenshotVideo(t){return this[Ye].screenshotVideo(t)}subscribeSystemResourceUsage(){return this[Ye].subscribeSystemResourceUsage()}unsubscribeSystemResourceUsage(){return this[Ye].unsubscribeSystemResourceUsage()}subscribeWebRTCStatsReportData(){return this[Ye].subscribeWebRTCStatsReportData()}unsubscribeWebRTCStatsReportData(){return this[Ye].unsubscribeWebRTCStatsReportData()}isCapturingVideo(){return this[Ye].isCapturingVideo()}isCameraTaken(){return this[Ye].isCameraTaken()}getActiveVideoId(){return this[Ye].getActiveVideoId()}getActiveCamera(){return this[Ye].getActiveCamera()}getCameraList(){return this[Ye].getCameraList()}isCaptureForbidden(){return this[Ye].isCaptureForbidden()}getVideoMaxQuality(){return this[Ye].getVideoMaxQuality()}getReceivedVideoDimension(){return this[Ye].getReceivedVideoDimension()}isSupportMultipleVideos(){return this[Ye].isSupportMultipleVideos()}getMaxRenderableVideos(){return this[Ye].getMaxRenderableVideos()}isSupportHDVideo(){return this[Ye].isSupportHDVideo()}isSupportVirtualBackground(){return this[Ye].isSupportVirtualBackground()}isSupportVideoProcessor(){return this[Ye].isSupportVideoProcessor()}isSupportAudioProcessor(){return this[Ye].isSupportAudioProcessor()}isSupportShareProcessor(){return this[Ye].isSupportShareProcessor()}getVirtualbackgroundStatus(){return this[Ye].getVirtualbackgroundStatus()}getVideoStatisticData(){return this[Ye].getVideoStatisticData()}isRenderSelfViewWithVideoElement(){return this[Ye].isRenderSelfViewWithVideoElement()}getCapturedVideoResolution(){return this[Ye].getCapturedVideoResolution()}getVideoMaskStatus(){return this[Ye].getVideoMaskStatus()}isVideoMirrored(){return this[Ye].isVideoMirrored()}getSpotlightedUserList(){return this[Ye].getSpotlightedUserList().map((t=>md(t)))}getVideoMediaPlaybackController(){return this[Ye].getVideoMediaPlaybackController()}getWebRTCStatsReportData(){return this[Ye].getWebRTCStatsReportData()}startShareView(t,r){return this[Ye].startShareView(t,r)}stopShareView(){return this[Ye].stopShareView()}attachShareView(t,r){return this[Ye].attachShareView(t,r)}detachShareView(t,r){return this[Ye].detachShareView(t,r)}switchShareView(t){return this[Ye].switchShareView(t)}startShareScreen(t,r){return(r==null?void 0:r.broadcastToSubsession)!==void 0&&Object.assign(r||{},{broadcastToBreakoutRoom:r==null?void 0:r.broadcastToSubsession}),this[Ye].startShareScreen(t,r)}startShareCamera(t,r,n){return this[Ye].startShareCamera(t,r,n)}pauseShareScreen(){return this[Ye].pauseShareScreen()}resumeShareScreen(){return this[Ye].resumeShareScreen()}stopShareScreen(){return this[Ye].stopShareScreen()}lockShare(t){return this[Ye].lockShare(t)}updateSharingCanvasDimension(t,r){return this[Ye].updateSharingCanvasDimension(t,r)}switchSharingSecondaryCamera(t){return this[Ye].switchSharingSecondaryCamera(t)}setSharePrivilege(t){return this[Ye].setSharePrivilege(t)}shareToSubsession(){return this[Ye].shareToBreakoutRoom()}stopShareToSubsession(){return this[Ye].stopShareToBreakoutRoom()}enableOptimizeForSharedVideo(t){return this[Ye].enableOptimizeForSharedVideo(t)}updateSharedVideoQuality(t){return this[Ye].updateSharedVideoQuality(t)}subscribeShareStatisticData(t){return this[Ye].subscribeShareStatisticData(t)}unsubscribeShareStatisticData(t){return this[Ye].unsubscribeShareStatisticData(t)}screenshotShareView(t){return this[Ye].screenshotSharedContent(t)}isShareLocked(){return this[Ye].isShareLocked()}getSharePrivilege(){return this[Ye].getSharePrivilege()}getActiveShareUserId(){return this[Ye].getActiveShareUserId()}getShareStatus(){return this[Ye].getShareStatus()}getShareUserList(){return this[Ye].getShareUserList().map((t=>md(t)))}isStartShareScreenWithVideoElement(){return this[Ye].isStartShareScreenWithVideoElement()}isOptimizeForSharedVideoEnabled(){return this[Ye].isOptimizeForSharedVideoEnabled()}isSupportOptimizedForSharedVideo(){return this[Ye].isSupportOptimizedForSharedVideo()}getShareStatisticData(){return this[Ye].getShareStatisticData()}getShareStreamSettings(){return this[Ye].getShareStreamSettings()}getMaxRenderableShareViews(){return this[Ye].getMaxRenderableShareViews()}requestFarEndCameraControl(t){return this[Ye].requestFarEndCameraControl(t)}approveFarEndCameraControl(t){return this[Ye].approveFarEndCameraControl(t)}declineFarEndCameraControl(t){return this[Ye].declineFarEndCameraControl(t)}giveUpFarEndCameraControl(t){return this[Ye].giveUpFarEndCameraControl(t)}controlCamera(t){return this[Ye].controlCamera(t)}controlFarEndCamera(t){return this[Ye].controlFarEndCamera(t)}getFarEndCameraPTZCapability(t){return this[Ye].getFarEndCameraPTZCapability(t)}getCameraPTZCapability(t){return this[Ye].getCameraPTZCapability(t)}isBrowserSupportPTZ(){return this[Ye].isBrowserSupportPTZ()}getNetworkQuality(t){return this[Ye].getNetworkQuality(t)}requestRemoteControl(){return this[Ye].requestRemoteControl()}giveUpRemoteControl(){return this[Ye].giveUpRemoteControl()}startRemoteControl(t){return this[Ye].startRemoteControl(t)}grabRemoteControl(){return this[Ye].grabRemoteControl()}approveRemoteControl(t,r){return this[Ye].approveRemoteControl(t,r)}declineRemoteControl(t){return this[Ye].declineRemoteControl(t)}stopRemoteControl(){return this[Ye].stopRemoteControl()}launchRemoteControlApp(t){return this[Ye].launchRemoteControlApp(t)}isRemotelyControlApproved(){return this[Ye].isRemotelyControlApproved()}isControllingUserRemotely(){return this[Ye].isControllingUserRemotely()}isTargetShareSupportRemoteControl(t){return this[Ye].isTargetShareSupportRemoteControl(t)}getRemoteControlAppDownloadUrl(){return this[Ye].getRemoteControlAppDownloadUrl()}getRemotelyControllingUser(){return this[Ye].getRemotelyControllingUser()}isRemoteControlEnabled(){return this[Ye].isRemoteControlEnabled()}startAnnotation(){return this[Ye].startAnnotation()}stopAnnotation(){return this[Ye].stopAnnotation()}changeAnnotationPrivilege(t){return this[Ye].changeAnnotationPrivilege(t)}showAnnotatorName(t){return this[Ye].showAnnotatorName(t)}canDoAnnotation(){return this[Ye].canDoAnnotation()}getAnnotationController(){return this[Ye].getAnnotationController()}requestShareCamera(t,r,n){return this[Ye].requestShareCamera(t,r,n)}approveShareCamera(t,r){return this[Ye].approveShareCamera(t,r)}declineShareCamera(t,r){return this[Ye].declineShareCamera(t,r)}informShareCameraStatus(t,r,n){return this[Ye].informShareCameraStatus(t,r,n)}}const Yz=["isCoHost"],Rs=Symbol("chat");class Qz{constructor(t){this[Rs]=void 0,this[Rs]=t}send(t,r){return this[Rs].send(t,r)}sendToAll(t){return this[Rs].send(t,Jn.All)}sendFile(t,r){return this[Rs].sendFile(t,r)}downloadFile(t,r,n){return this[Rs].downloadFile(t,r,n)}setPrivilege(t){return this[Rs].setPrivilege(t)}getPrivilege(){return this[Rs].getPrivilege()}getReceivers(){return this[Rs].getReceivers().map((t=>{const{isCoHost:r}=t;return qa({isManager:r},Em(t,Yz))}))}getHistory(){return this[Rs].getHistory()}isFileTransferEnabled(){return this[Rs].isFileTransferEnabled()}getFileTransferSetting(){return this[Rs].getFileTransferSetting()}}const fl=Symbol("recording");class Xz{constructor(t){this[fl]=void 0,this[fl]=t}canStartRecording(){return this[fl].isRecordingEnabled()}startCloudRecording(){return this[fl].startRecording()}pauseCloudRecording(){return this[fl].pauseRecording()}resumeCloudRecording(){return this[fl].startRecording()}stopCloudRecording(){return this[fl].stopRecording()}getCloudRecordingStatus(){return this[fl].getRecordingStatus()}acceptIndividualRecording(){return this[fl].accept()}declineIndividualRecording(){return this[fl].decline()}}const B1=Symbol("command");class Zz{constructor(t){this[B1]=void 0,this[B1]=t}send(t,r){return this[B1].send(t,r)}}const eK=["isInRoom"],tK=["isAutoJoinRoom","isRoomSelectionEnabled"],Qo=Symbol("breakout-room");class rK{constructor(t){this[Qo]=void 0,this[Qo]=t}createSubsessions(t,r){return this[Qo].createRooms(t,r).then((n=>n.map((o=>({subsessionId:o.roomId,subsessionName:o.name,userList:o.attendeeList})))))}openSubsessions(t,r){const n=r?qa(qa({},r),{},{isAutoJoinRoom:r.isAutoJoinSubsession,isRoomSelectionEnabled:r.isSubsessionSelectionEnabled}):void 0,o=t.map((i=>({roomId:i.subsessionId,name:i.subsessionName,attendeeList:i.userList})));return this[Qo].openRooms(o,n)}joinSubsession(t){return this[Qo].joinRoom(t)}leaveSubsession(){return this[Qo].leaveRoom()}askForHelp(){return this[Qo].askForHelp()}postponeHelping(t){return this[Qo].postponeHelping(t)}broadcast(t){return this[Qo].broadcast(t)}assignUserToSubsession(t,r){return this[Qo].assignUserToRoom(t,r)}moveUserToSubsession(t,r){return this[Qo].moveUserToRoom(t,r)}moveBackToMainSession(t){return this[Qo].moveBackToMainSession(t)}closeAllSubsessions(){return this[Qo].closeRoom()}startBroadcastVoice(){return this[Qo].startBroadcastVoice()}stopBroadcastVoice(){return this[Qo].stopBroadcastVoice()}getUnassignedUserList(){return this[Qo].getUnassignedAttendeeList().map((t=>md(t)))}getSubsessionList(){return this[Qo].getRoomList().map((t=>{const{roomId:r,name:n,attendeeList:o}=t;return{subsessionId:r,subsessionName:n,userList:o.map((i=>{const a=i,{isInRoom:s}=a;return qa({isInSubsession:s},Em(a,eK))}))}}))}getUserStatus(){return this[Qo].getAttendeeStatus()}getSubsessionStatus(){return this[Qo].getRoomStatus()}getCurrentSubsession(){const{attendeeStatus:t,name:r,roomId:n}=this[Qo].getCurrentRoom();return{userStatus:t,subsessionName:r,subsessionId:n}}getSubsessionOptions(){const t=this[Qo].getRoomOptions(),{isAutoJoinRoom:r,isRoomSelectionEnabled:n}=t;return qa({isAutoJoinSubsession:r,isSubsessionSelectionEnabled:n},Em(t,tK))}isSubsessionEnabled(){return this[Qo].isBreakoutRoomEnabled()}}const as=Symbol("liveTranscription");class nK{constructor(t){this[as]=void 0,this[as]=t}startLiveTranscription(){return this[as].startLiveTranscription()}setSpeakingLanguage(t,r){return this[as].setSpeakingLanguage(t,r)}setTranslationLanguage(t){return this[as].setTranslationLanguage(t)}disableCaptions(t){return this[as].disableCaptions(t)}lockTranscriptionLanguage(t){return this[as].lockTranscriptionLanguage(t)}getLiveTranscriptionStatus(){return this[as].getLiveTranscriptionStatus()}getCurrentTranscriptionLanguage(){return this[as].getCurrentTranscriptionLanguage()}getCurrentTranslationLanguage(){return this[as].getCurrentTranslationLanguage()}getLatestTranscription(){return this[as].getLatestTranscription()}getLatestTranslation(){return this[as].getLatestTranslation()}getFullTranscriptionHistory(){return this[as].getFullTranscriptionHistory()}}const fp=Symbol("liveStream");class oK{constructor(t){this[fp]=void 0,this[fp]=t}startLiveStream(t,r,n){return this[fp].startLiveStream(t,r,n)}stopLiveStream(){return this[fp].stopLiveStream()}isLiveStreamEnabled(){return this[fp].isLiveStreamEnabled()}getLiveStreamStatus(){return this[fp].getLiveStreamStatus().status}}const uh=Symbol("logger");class iK{constructor(t,r){if(this[uh]=void 0,this[uh]=t,r){const{debugMode:n,trackingId:o}=r;this[uh].setLogOptions({debugMode:n,trackingId:o})}}reportToGlobalTracing(t){return this[uh].reportToGlobalTracing(t)}reportRating(t,r){return this[uh].reportRating(t,r)}}const hp=Symbol("broadcastStreaming");class aK{constructor(t){this[hp]=void 0,this[hp]=t}startBroadcast(){return this[hp].startBroadcast()}stopBroadcast(t){return this[hp].stopBroadcast(t)}isBroadcastStreamingEnable(){return this[hp].isBroadcastStreamingEnable()}getBroadcastStreamingStatus(){return this[hp].getBroadcastStreamingStatus()}}const sK=["roomName"],lK=["roomId","roomName"],LD=[{event:"connection-change",originalEvent:"connection-change",payloadTransform:e=>{const{roomName:t}=e,r=Em(e,sK);return t?qa(qa({},r),{},{subsessionName:t}):e}},{event:"user-added",originalEvent:"user-added",payloadTransform:e=>e.map((t=>V1(t)))},{event:"user-updated",originalEvent:"user-updated",payloadTransform:e=>e.map((t=>V1(t)))},{event:"user-removed",originalEvent:"user-removed",payloadTransform:e=>e.map((t=>V1(t)))},{event:"subsession-invite-to-join",originalEvent:"invite-to-join",payloadTransform:e=>({subsessionId:e.roomId,subsessionName:e.name})},{event:"subsession-countdown",originalEvent:"room-countdown"},{event:"subsession-time-up",originalEvent:"room-time-up"},{event:"closing-subsession-countdown",originalEvent:"closing-room-countdown"},{event:"subsession-broadcast-message",originalEvent:"broadcast-message"},{event:"subsession-broadcast-voice",originalEvent:"broadcast-voice"},{event:"subsession-ask-for-help",originalEvent:"ask-for-help",payloadTransform:e=>({userId:e.userId,userGuid:e.userGuid,displayName:e.displayName,subsessionId:e.roomId,subsessionName:e.roomName})},{event:"subsession-ask-for-help-response",originalEvent:"ask-for-help-response"},{event:"subsession-invite-back-to-main-session",originalEvent:"invite-back-to-main-session"},{event:"subsession-state-change",originalEvent:"room-state-change"},{event:"host-ask-unmute-audio",originalEvent:"unmute-audio-consent"},{event:"subsession-user-update",originalEvent:"room-user-update",payloadTransform:e=>{const{roomId:t,roomName:r}=e;return qa({subsessionId:t,subsessionName:r},Em(e,lK))}},{event:"active-media-failed",originalEvent:"media-internal-error"}],hl=Symbol("summary");class uK{constructor(t){this[hl]=void 0,this[hl]=t}startSummary(){return this[hl].startSummary()}stopSummary(){return this[hl].stopSummary()}isSummaryEnabled(){return this[hl].isSummaryEnabled()}getSummaryStatus(){return this[hl].getSummaryStatus()}startMeetingQuery(){return this[hl].startMeetingQuery()}stopMeetingQuery(){return this[hl].stopMeetingQuery()}isMeetingQueryEnabled(){return this[hl].isMeetingQueryEnabled()}getMeetingQueryStatus(){return this[hl].getMeetingQueryStatus()}}const Gs=Symbol("whiteboard");class cK{constructor(t){this[Gs]=void 0,this[Gs]=t}startWhiteboardScreen(t,r){return this[Gs].startWhiteboardScreen(t,r)}stopWhiteboardScreen(){return this[Gs].stopWhiteboardScreen()}startWhiteboardView(t,r,n){return this[Gs].startWhiteboardView(t,r,n)}stopWhiteboardView(){return this[Gs].stopWhiteboardView()}exportWhiteboard(t,r,n){return this[Gs].exportWhiteboard(t,r,n)}isWhiteboardEnabled(){return this[Gs].isWhiteboardEnabled()}getWhiteboardStatus(){return this[Gs].getWhiteboardStatus()}getWhiteboardPresenter(){return this[Gs].getWhiteboardPresenter()}canStartWhiteboard(){return this[Gs].canStartWhiteboard()}}const Kl=Symbol("realTimeMediaStreams");class dK{constructor(t){this[Kl]=void 0,this[Kl]=t}isSupportRealTimeMediaStreams(){return this[Kl].isSupportRealTimeMediaStreams()}startRealTimeMediaStreams(){return this[Kl].startRealTimeMediaStreams()}pauseRealTimeMediaStreams(){return this[Kl].pauseRealTimeMediaStreams()}resumeRealTimeMediaStreams(){return this[Kl].resumeRealTimeMediaStreams()}stopRealTimeMediaStreams(){return this[Kl].stopRealTimeMediaStreams()}getRealTimeMediaStreamsStatus(){return this[Kl].getRealTimeMediaStreamsStatus()}canStartRealTimeMediaStreams(){return this[Kl].canStartRealTimeMediaStreams()}}const vn=Symbol("Client"),fv=new WeakMap;class pK{constructor(){this[vn]=void 0,this.stream=void 0,this.chat=void 0,this.command=void 0,this.recording=void 0,this.subsession=void 0,this.liveTranscription=void 0,this.logger=void 0,this.liveStream=void 0,this.aiClient=void 0,this.broadcastStreaming=void 0,this.whiteboard=void 0,this.realTimeMediaStreams=void 0,this[vn]=Jl.createClient(),fv.set(this,new Map)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"en-US",r=arguments.length>2?arguments[2]:void 0;const n=h9(arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Global");return window.isSecureContext===!1&&console.warn("The page is not in a secure context, to use audio, video, screen, a secure context must be enabled."),(function(){const o="__ZOOM_VIDEO_SDK_DOM_STORAGE_TEST__";try{return localStorage.setItem(o,o),localStorage.removeItem(o),sessionStorage.setItem(o,o),sessionStorage.removeItem(o),!0}catch{return!1}})()||console.warn("localstorage or sessionstorage is not enabled, please enable to use the video sdk,"),this[vn].init("","",{language:t,dependentAssets:n,constraints:qa(qa({},Jl.checkSystemRequirements()),{},{screen:typeof WebAssembly=="object"&&typeof Worker=="function"}),additionalFeatures:["chat","cmd","recording","breakoutRoom","liveTranscription","logger","liveStream","summary","broadcastStreaming","whiteboard","realTimeMediaStreams"],webEndpoint:(r==null?void 0:r.webEndpoint)||"zoom.us",skipJsMedia:r==null?void 0:r.skipJsMedia,enforceMultipleVideos:r==null?void 0:r.enforceMultipleVideos,stayAwake:r==null?void 0:r.stayAwake,enforceVirtualBackground:r==null?void 0:r.enforceVirtualBackground,quicklyLeaveMeeting:r==null?void 0:r.leaveOnPageUnload,patchJsMedia:r==null?void 0:r.patchJsMedia,alternativeNameForVideoPlayer:r==null?void 0:r.alternativeNameForVideoPlayer,isUIToolkit:r==null?void 0:r.isUIToolkit,isLogDetailed:r==null?void 0:r.isLogDetailed})}join(t,r,n,o,i){if(!j1(t)||!j1(r)||!j1(n))return Promise.reject({type:F1,reason:"Topic, token and userName must be string and required",errorCode:Z.CLIENT_INVALID_JOIN_PARAMETER});if(t.length>200)return Promise.reject({type:F1,reason:"The maximum length of topic is 200",errorCode:Z.CLIENT_INVALID_JOIN_PARAMETER});const a=n.length>200?n.slice(0,200):n;return o&&(typeof o!="string"||o.length>10)?Promise.reject({type:F1,reason:"The maximum length of password is 10",errorCode:Z.CLIENT_INVALID_JOIN_PARAMETER}):this[vn].joinInstant(t,r,a,dg,o,i)}leave(){var t;return arguments.length>0&&arguments[0]!==void 0&&arguments[0]?((t=fv.get(this))===null||t===void 0||t.clear(),this[vn].end()):this[vn].leave()}on(t,r){const n=LD.find((o=>o.event===t));if(n){const{originalEvent:o,payloadTransform:i}=n;if(i){const a=l=>{const c=i(l);r(c)};this[vn].on(o,a);const s=fv.get(this);if(s){s.has(t)||s.set(t,[]);const l=s.get(t);l==null||l.push({originalCb:r,newCb:a})}}else this[vn].on(o,r)}else this[vn].on(t,r)}off(t,r){const n=LD.find((o=>o.event===t));if(n){const{originalEvent:o,payloadTransform:i}=n;if(i){const a=fv.get(this);if(a){const s=a.get(t),l=s==null?void 0:s.find((c=>c.originalCb===r));if(l&&s){this[vn].off(o,l.newCb);const c=s==null?void 0:s.filter((d=>d.originalCb!==r));a.set(t,c)}}}else this[vn].off(o,r)}else this[vn].off(t,r)}getMediaStream(){return this.stream||(this.stream=new Jz(this[vn].getMediaStream())),this.stream}getChatClient(){return this.chat||(this.chat=new Qz(this[vn].getFeatureModule("chat"))),this.chat}getRecordingClient(){return this.recording||(this.recording=new Xz(this[vn].getFeatureModule("recording"))),this.recording}getCommandClient(){return this.command||(this.command=new Zz(this[vn].getFeatureModule("cmd"))),this.command}getSubsessionClient(){return this.subsession||(this.subsession=new rK(this[vn].getFeatureModule("breakoutRoom"))),this.subsession}getLiveTranscriptionClient(){return this.liveTranscription||(this.liveTranscription=new nK(this[vn].getFeatureModule("liveTranscription"))),this.liveTranscription}getLoggerClient(t){return this.logger||(this.logger=new iK(this[vn].getFeatureModule("logger"),t)),this.logger}getLiveStreamClient(){return this.liveStream||(this.liveStream=new oK(this[vn].getFeatureModule("liveStream"))),this.liveStream}getBroadcastStreamingClient(){return this.broadcastStreaming||(this.broadcastStreaming=new aK(this[vn].getFeatureModule("broadcastStreaming"))),this.broadcastStreaming}getRealTimeMediaStreamsClient(){return this.realTimeMediaStreams||(this.realTimeMediaStreams=new dK(this[vn].getFeatureModule("realTimeMediaStreams"))),this.realTimeMediaStreams}getAIClient(){return this.aiClient||(this.aiClient=new uK(this[vn].getFeatureModule("summary"))),this.aiClient}getWhiteboardClient(){return this.whiteboard||(this.whiteboard=new cK(this[vn].getFeatureModule("whiteboard"))),this.whiteboard}getSessionInfo(){const t=this[vn].getMeetingInfo();return{isInMeeting:t.isInMeeting||!1,password:t.password||"",topic:t.topic,userName:t.userName,userId:t.userId,sessionId:t.meetingId}}getCurrentUserInfo(){return md(this[vn].getCurrentUserInfo())}getUser(t){return md(this[vn].getParticipantsList().find((r=>r.userId===t)))}getAllUser(){return this[vn].getParticipantsList().map((t=>md(t)))}changeName(t,r){return this[vn].changeName(t,r)}makeHost(t){return this[vn].makeHost(t)}removeUser(t){return this[vn].removeUser(t)}makeManager(t){return this[vn].makeCoHost(t)}revokeManager(t){return this[vn].revokeCoHost(t)}reclaimHost(){return this[vn].reclaimHost()}isHost(){return this[vn].isHost()}isOriginalHost(){return this[vn].isOriginHost()}getSessionHost(){return md(this[vn].getMeetingHost())}isManager(){return this[vn].isCoHost()}}class Ec{static createClient(){return this.videoClient||(this.videoClient=new pK),this.videoClient}static destroyClient(){return this.videoClient?this.videoClient.leave().then((()=>(this.videoClient=null,Jl.destroyClient()))):Promise.resolve(void 0)}static checkSystemRequirements(){return Jl.checkSystemRequirements()}static checkFeatureRequirements(){return Jl.checkFeatureRequirements()}static getDevices(t){return Jl.getDevices(t)}static createLocalAudioTrack(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Jl.createLocalAudioTrack(t)}static createLocalVideoTrack(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Jl.createLocalVideoTrack(t)}static preloadDependentAssets(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"Global";Jl.preloadDependentAssets(h9(t))}}Ec.videoClient=void 0,Ec.VERSION=dg;(function(e){return e[e.All=1]="All",e[e.NoOne=4]="NoOne",e[e.EveryonePublicly=5]="EveryonePublicly",e})({});(function(e){return e[e.All=0]="All",e})({});(function(e){return e[e.Automatically=cd.Automatically]="Automatically",e[e.Manually=cd.Manually]="Manually",e})({});(function(e){return e[e.Initial=wr.Initial]="Initial",e[e.Invited=wr.Invited]="Invited",e[e.Joining=wr.Joining]="Joining",e[e.InSubsession=wr.InRoom]="InSubsession",e[e.Leaving=wr.Leaving]="Leaving",e[e.MainSession=wr.MainSession]="MainSession",e})({});(function(e){return e[e.NotStarted=Kr.NotStarted]="NotStarted",e[e.InProgress=Kr.InProgress]="InProgress",e[e.Closing=Kr.Closing]="Closing",e[e.Closed=Kr.Closed]="Closed",e})({});(function(e){return e[e.Failover=ia.Failover]="Failover",e[e.JoinSubsession=ia.JoinBreakoutRoom]="JoinSubsession",e[e.MoveToSubsession=ia.MoveToBreakoutRoom]="MoveToSubsession",e[e.BackToMainSession=ia.BackToMainSession]="BackToMainSession",e})({});(function(e){return e[e.Unlocked=hs.HostGrab]="Unlocked",e[e.Locked=hs.OnlyHost]="Locked",e[e.MultipleShare=hs.MultipleShare]="MultipleShare",e})({});(function(e){return e[e.Unknown=zi.Unknown]="Unknown",e[e.Uninstalled=zi.Uninstalled]="Uninstalled",e[e.Installed=zi.Installed]="Installed",e[e.Unlaunched=Yy.Unlaunched]="Unlaunched",e[e.Launched=Yy.Launched]="Launched",e})({});const y9=ae.createContext({zmClient:Ec.createClient(),sessionStarted:!1,signature:"",isSessionStarted:()=>!1,joinSession:()=>Promise.resolve(),leaveSession:()=>Promise.resolve()}),ll=()=>ae.useContext(y9);function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Cm.apply(null,arguments)}function uR(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Tw(e,t){return Tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Tw(e,t)}function cR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Tw(e,t)}var hv={exports:{}},mv={exports:{}},Gn={};/** @license React v16.13.1
78
78
  * react-is.production.min.js
79
79
  *
80
80
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -93,9 +93,9 @@ object-assign
93
93
  (c) Sindre Sorhus
94
94
  @license MIT
95
95
  */var H1,BD;function mK(){if(BD)return H1;BD=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var l=Object.getOwnPropertyNames(a).map(function(d){return a[d]});if(l.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(d){c[d]=d}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return H1=o()?Object.assign:function(i,a){for(var s,l=n(i),c,d=1;d<arguments.length;d++){s=Object(arguments[d]);for(var p in s)t.call(s,p)&&(l[p]=s[p]);if(e){c=e(s);for(var m=0;m<c.length;m++)r.call(s,c[m])&&(l[c[m]]=s[c[m]])}}return l},H1}var U1,HD;function dR(){if(HD)return U1;HD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return U1=e,U1}var $1,UD;function S9(){return UD||(UD=1,$1=Function.call.bind(Object.prototype.hasOwnProperty)),$1}var W1,$D;function gK(){if($D)return W1;$D=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=dR(),r={},n=S9();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,s,l,c){if(process.env.NODE_ENV!=="production"){for(var d in i)if(n(i,d)){var p;try{if(typeof i[d]!="function"){var m=Error((l||"React class")+": "+s+" type `"+d+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[d]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw m.name="Invariant Violation",m}p=i[d](a,d,l,s,null,t)}catch(b){p=b}if(p&&!(p instanceof Error)&&e((l||"React class")+": type specification of "+s+" `"+d+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var y=c?c():"";e("Failed "+s+" type: "+p.message+(y??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},W1=o,W1}var z1,WD;function vK(){if(WD)return z1;WD=1;var e=b9(),t=mK(),r=dR(),n=S9(),o=gK(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}});function a(){return null}return z1=function(s,l){var c=typeof Symbol=="function"&&Symbol.iterator,d="@@iterator";function p(re){var we=re&&(c&&re[c]||re[d]);if(typeof we=="function")return we}var m="<<anonymous>>",y={array:A("array"),bigint:A("bigint"),bool:A("boolean"),func:A("function"),number:A("number"),object:A("object"),string:A("string"),symbol:A("symbol"),any:R(),arrayOf:x,element:k(),elementType:D(),instanceOf:F,node:Y(),objectOf:U,oneOf:$,oneOfType:G,shape:me,exact:ne};function b(re,we){return re===we?re!==0||1/re===1/we:re!==re&&we!==we}function v(re,we){this.message=re,this.data=we&&typeof we=="object"?we:{},this.stack=""}v.prototype=Error.prototype;function C(re){if(process.env.NODE_ENV!=="production")var we={},Ae=0;function Pe(Ke,St,st,yt,$e,ot,it){if(yt=yt||m,ot=ot||st,it!==r){if(l){var Ie=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Ie.name="Invariant Violation",Ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var tt=yt+":"+st;!we[tt]&&Ae<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ot+"` prop on `"+yt+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),we[tt]=!0,Ae++)}}return St[st]==null?Ke?St[st]===null?new v("The "+$e+" `"+ot+"` is marked as required "+("in `"+yt+"`, but its value is `null`.")):new v("The "+$e+" `"+ot+"` is marked as required in "+("`"+yt+"`, but its value is `undefined`.")):null:re(St,st,yt,$e,ot)}var Oe=Pe.bind(null,!1);return Oe.isRequired=Pe.bind(null,!0),Oe}function A(re){function we(Ae,Pe,Oe,Ke,St,st){var yt=Ae[Pe],$e=_e(yt);if($e!==re){var ot=Ne(yt);return new v("Invalid "+Ke+" `"+St+"` of type "+("`"+ot+"` supplied to `"+Oe+"`, expected ")+("`"+re+"`."),{expectedType:re})}return null}return C(we)}function R(){return C(a)}function x(re){function we(Ae,Pe,Oe,Ke,St){if(typeof re!="function")return new v("Property `"+St+"` of component `"+Oe+"` has invalid PropType notation inside arrayOf.");var st=Ae[Pe];if(!Array.isArray(st)){var yt=_e(st);return new v("Invalid "+Ke+" `"+St+"` of type "+("`"+yt+"` supplied to `"+Oe+"`, expected an array."))}for(var $e=0;$e<st.length;$e++){var ot=re(st,$e,Oe,Ke,St+"["+$e+"]",r);if(ot instanceof Error)return ot}return null}return C(we)}function k(){function re(we,Ae,Pe,Oe,Ke){var St=we[Ae];if(!s(St)){var st=_e(St);return new v("Invalid "+Oe+" `"+Ke+"` of type "+("`"+st+"` supplied to `"+Pe+"`, expected a single ReactElement."))}return null}return C(re)}function D(){function re(we,Ae,Pe,Oe,Ke){var St=we[Ae];if(!e.isValidElementType(St)){var st=_e(St);return new v("Invalid "+Oe+" `"+Ke+"` of type "+("`"+st+"` supplied to `"+Pe+"`, expected a single ReactElement type."))}return null}return C(re)}function F(re){function we(Ae,Pe,Oe,Ke,St){if(!(Ae[Pe]instanceof re)){var st=re.name||m,yt=Se(Ae[Pe]);return new v("Invalid "+Ke+" `"+St+"` of type "+("`"+yt+"` supplied to `"+Oe+"`, expected ")+("instance of `"+st+"`."))}return null}return C(we)}function $(re){if(!Array.isArray(re))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function we(Ae,Pe,Oe,Ke,St){for(var st=Ae[Pe],yt=0;yt<re.length;yt++)if(b(st,re[yt]))return null;var $e=JSON.stringify(re,function(it,Ie){var tt=Ne(Ie);return tt==="symbol"?String(Ie):Ie});return new v("Invalid "+Ke+" `"+St+"` of value `"+String(st)+"` "+("supplied to `"+Oe+"`, expected one of "+$e+"."))}return C(we)}function U(re){function we(Ae,Pe,Oe,Ke,St){if(typeof re!="function")return new v("Property `"+St+"` of component `"+Oe+"` has invalid PropType notation inside objectOf.");var st=Ae[Pe],yt=_e(st);if(yt!=="object")return new v("Invalid "+Ke+" `"+St+"` of type "+("`"+yt+"` supplied to `"+Oe+"`, expected an object."));for(var $e in st)if(n(st,$e)){var ot=re(st,$e,Oe,Ke,St+"."+$e,r);if(ot instanceof Error)return ot}return null}return C(we)}function G(re){if(!Array.isArray(re))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var we=0;we<re.length;we++){var Ae=re[we];if(typeof Ae!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+oe(Ae)+" at index "+we+"."),a}function Pe(Oe,Ke,St,st,yt){for(var $e=[],ot=0;ot<re.length;ot++){var it=re[ot],Ie=it(Oe,Ke,St,st,yt,r);if(Ie==null)return null;Ie.data&&n(Ie.data,"expectedType")&&$e.push(Ie.data.expectedType)}var tt=$e.length>0?", expected one of type ["+$e.join(", ")+"]":"";return new v("Invalid "+st+" `"+yt+"` supplied to "+("`"+St+"`"+tt+"."))}return C(Pe)}function Y(){function re(we,Ae,Pe,Oe,Ke){return Ee(we[Ae])?null:new v("Invalid "+Oe+" `"+Ke+"` supplied to "+("`"+Pe+"`, expected a ReactNode."))}return C(re)}function Q(re,we,Ae,Pe,Oe){return new v((re||"React class")+": "+we+" type `"+Ae+"."+Pe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+Oe+"`.")}function me(re){function we(Ae,Pe,Oe,Ke,St){var st=Ae[Pe],yt=_e(st);if(yt!=="object")return new v("Invalid "+Ke+" `"+St+"` of type `"+yt+"` "+("supplied to `"+Oe+"`, expected `object`."));for(var $e in re){var ot=re[$e];if(typeof ot!="function")return Q(Oe,Ke,St,$e,Ne(ot));var it=ot(st,$e,Oe,Ke,St+"."+$e,r);if(it)return it}return null}return C(we)}function ne(re){function we(Ae,Pe,Oe,Ke,St){var st=Ae[Pe],yt=_e(st);if(yt!=="object")return new v("Invalid "+Ke+" `"+St+"` of type `"+yt+"` "+("supplied to `"+Oe+"`, expected `object`."));var $e=t({},Ae[Pe],re);for(var ot in $e){var it=re[ot];if(n(re,ot)&&typeof it!="function")return Q(Oe,Ke,St,ot,Ne(it));if(!it)return new v("Invalid "+Ke+" `"+St+"` key `"+ot+"` supplied to `"+Oe+"`.\nBad object: "+JSON.stringify(Ae[Pe],null," ")+`
96
- Valid keys: `+JSON.stringify(Object.keys(re),null," "));var Ie=it(st,ot,Oe,Ke,St+"."+ot,r);if(Ie)return Ie}return null}return C(we)}function Ee(re){switch(typeof re){case"number":case"string":case"undefined":return!0;case"boolean":return!re;case"object":if(Array.isArray(re))return re.every(Ee);if(re===null||s(re))return!0;var we=p(re);if(we){var Ae=we.call(re),Pe;if(we!==re.entries){for(;!(Pe=Ae.next()).done;)if(!Ee(Pe.value))return!1}else for(;!(Pe=Ae.next()).done;){var Oe=Pe.value;if(Oe&&!Ee(Oe[1]))return!1}}else return!1;return!0;default:return!1}}function ce(re,we){return re==="symbol"?!0:we?we["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&we instanceof Symbol:!1}function _e(re){var we=typeof re;return Array.isArray(re)?"array":re instanceof RegExp?"object":ce(we,re)?"symbol":we}function Ne(re){if(typeof re>"u"||re===null)return""+re;var we=_e(re);if(we==="object"){if(re instanceof Date)return"date";if(re instanceof RegExp)return"regexp"}return we}function oe(re){var we=Ne(re);switch(we){case"array":case"object":return"an "+we;case"boolean":case"date":case"regexp":return"a "+we;default:return we}}function Se(re){return!re.constructor||!re.constructor.name?m:re.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},z1}var K1,zD;function yK(){if(zD)return K1;zD=1;var e=dR();function t(){}function r(){}return r.resetWarningCache=t,K1=function(){function n(a,s,l,c,d,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},K1}var KD;function bK(){if(KD)return hv.exports;if(KD=1,process.env.NODE_ENV!=="production"){var e=b9(),t=!0;hv.exports=vK()(e.isElement,t)}else hv.exports=yK()();return hv.exports}var SK=bK();const Qr=BF(SK);function EK(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function CK(e,t){e.classList?e.classList.add(t):EK(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function GD(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function wK(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=GD(e.className,t):e.setAttribute("class",GD(e.className&&e.className.baseVal||"",t))}const qD={disabled:!1};var IK=process.env.NODE_ENV!=="production"?Qr.oneOfType([Qr.number,Qr.shape({enter:Qr.number,exit:Qr.number,appear:Qr.number}).isRequired]):null,AK=process.env.NODE_ENV!=="production"?Qr.oneOfType([Qr.string,Qr.shape({enter:Qr.string,exit:Qr.string,active:Qr.string}),Qr.shape({enter:Qr.string,enterDone:Qr.string,enterActive:Qr.string,exit:Qr.string,exitDone:Qr.string,exitActive:Qr.string})]):null;const a0=se.createContext(null);var E9=function(t){return t.scrollTop},Ah="unmounted",Yc="exited",Qc="entering",Rp="entered",Ow="exiting",Nl=(function(e){cR(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?s?(l=Yc,i.appearStatus=Qc):l=Rp:n.unmountOnExit||n.mountOnEnter?l=Ah:l=Yc,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ah?{status:Yc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Qc&&a!==Rp&&(i=Qc):(a===Qc||a===Rp)&&(i=Ow)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Qc){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Op.findDOMNode(this);a&&E9(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yc&&this.setState({status:Ah})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Op.findDOMNode(this),s],c=l[0],d=l[1],p=this.getTimeouts(),m=s?p.appear:p.enter;if(!o&&!a||qD.disabled){this.safeSetState({status:Rp},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Qc},function(){i.props.onEntering(c,d),i.onTransitionEnd(m,function(){i.safeSetState({status:Rp},function(){i.props.onEntered(c,d)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Op.findDOMNode(this);if(!i||qD.disabled){this.safeSetState({status:Yc},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ow},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Yc},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Op.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Ah)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=uR(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return se.createElement(a0.Provider,{value:null},typeof a=="function"?a(o,s):se.cloneElement(se.Children.only(a),s))},t})(se.Component);Nl.contextType=a0;Nl.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Qr.shape({current:typeof Element>"u"?Qr.any:function(e,t,r,n,o,i){var a=e[t];return Qr.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:Qr.oneOfType([Qr.func.isRequired,Qr.element.isRequired]).isRequired,in:Qr.bool,mountOnEnter:Qr.bool,unmountOnExit:Qr.bool,appear:Qr.bool,enter:Qr.bool,exit:Qr.bool,timeout:function(t){var r=IK;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:Qr.func,onEnter:Qr.func,onEntering:Qr.func,onEntered:Qr.func,onExit:Qr.func,onExiting:Qr.func,onExited:Qr.func}:{};function mp(){}Nl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mp,onEntering:mp,onEntered:mp,onExit:mp,onExiting:mp,onExited:mp};Nl.UNMOUNTED=Ah;Nl.EXITED=Yc;Nl.ENTERING=Qc;Nl.ENTERED=Rp;Nl.EXITING=Ow;var RK=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return CK(t,n)})},G1=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return wK(t,n)})},pR=(function(e){cR(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=e.call.apply(e,[this].concat(i))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,l){var c=n.resolveArguments(s,l),d=c[0],p=c[1];n.removeClasses(d,"exit"),n.addClass(d,p?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,l)},n.onEntering=function(s,l){var c=n.resolveArguments(s,l),d=c[0],p=c[1],m=p?"appear":"enter";n.addClass(d,m,"active"),n.props.onEntering&&n.props.onEntering(s,l)},n.onEntered=function(s,l){var c=n.resolveArguments(s,l),d=c[0],p=c[1],m=p?"appear":"enter";n.removeClasses(d,m),n.addClass(d,m,"done"),n.props.onEntered&&n.props.onEntered(s,l)},n.onExit=function(s){var l=n.resolveArguments(s),c=l[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var l=n.resolveArguments(s),c=l[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var l=n.resolveArguments(s),c=l[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,l){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,l]},n.getClassNames=function(s){var l=n.props.classNames,c=typeof l=="string",d=c&&l?l+"-":"",p=c?""+d+s:l[s],m=c?p+"-active":l[s+"Active"],y=c?p+"-done":l[s+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(o,i,a){var s=this.getClassNames(i)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&a==="done"&&c&&(s+=" "+c),a==="active"&&o&&E9(o),s&&(this.appliedClasses[i][a]=s,RK(o,s))},r.removeClasses=function(o,i){var a=this.appliedClasses[i],s=a.base,l=a.active,c=a.done;this.appliedClasses[i]={},s&&G1(o,s),l&&G1(o,l),c&&G1(o,c)},r.render=function(){var o=this.props;o.classNames;var i=uR(o,["classNames"]);return se.createElement(Nl,Cm({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(se.Component);pR.defaultProps={classNames:""};pR.propTypes=process.env.NODE_ENV!=="production"?Cm({},Nl.propTypes,{classNames:AK,onEnter:Qr.func,onEntering:Qr.func,onEntered:Qr.func,onExit:Qr.func,onExiting:Qr.func,onExited:Qr.func}):{};function TK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fR(e,t){var r=function(i){return t&&se.isValidElement(i)?t(i):i},n=Object.create(null);return e&&se.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function OK(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(n[l])for(a=0;a<n[l].length;a++){var c=n[l][a];s[n[l][a]]=r(c)}s[l]=r(l)}for(a=0;a<o.length;a++)s[o[a]]=r(o[a]);return s}function gd(e,t,r){return r[t]!=null?r[t]:e.props[t]}function _K(e,t){return fR(e.children,function(r){return se.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:gd(r,"appear",e),enter:gd(r,"enter",e),exit:gd(r,"exit",e)})})}function PK(e,t,r){var n=fR(e.children),o=OK(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(se.isValidElement(a)){var s=i in t,l=i in n,c=t[i],d=se.isValidElement(c)&&!c.props.in;l&&(!s||d)?o[i]=se.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:gd(a,"exit",e),enter:gd(a,"enter",e)}):!l&&s&&!d?o[i]=se.cloneElement(a,{in:!1}):l&&s&&se.isValidElement(c)&&(o[i]=se.cloneElement(a,{onExited:r.bind(null,a),in:c.props.in,exit:gd(a,"exit",e),enter:gd(a,"enter",e)}))}}),o}var xK=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},DK={component:"div",childFactory:function(t){return t}},hR=(function(e){cR(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(TK(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,l=i.firstRender;return{children:l?_K(o,s):PK(o,a,s),firstRender:!1}},r.handleExited=function(o,i){var a=fR(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var l=Cm({},s.children);return delete l[o.key],{children:l}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=uR(o,["component","childFactory"]),l=this.state.contextValue,c=xK(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?se.createElement(a0.Provider,{value:l},c):se.createElement(a0.Provider,{value:l},se.createElement(i,s,c))},t})(se.Component);hR.propTypes=process.env.NODE_ENV!=="production"?{component:Qr.any,children:Qr.node,appear:Qr.bool,enter:Qr.bool,exit:Qr.bool,childFactory:Qr.func}:{};hR.defaultProps=DK;function NK(e){if(Array.isArray(e))return e}function MK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function _w(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function C9(e,t){if(e){if(typeof e=="string")return _w(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_w(e,t):void 0}}function kK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
96
+ Valid keys: `+JSON.stringify(Object.keys(re),null," "));var Ie=it(st,ot,Oe,Ke,St+"."+ot,r);if(Ie)return Ie}return null}return C(we)}function Ee(re){switch(typeof re){case"number":case"string":case"undefined":return!0;case"boolean":return!re;case"object":if(Array.isArray(re))return re.every(Ee);if(re===null||s(re))return!0;var we=p(re);if(we){var Ae=we.call(re),Pe;if(we!==re.entries){for(;!(Pe=Ae.next()).done;)if(!Ee(Pe.value))return!1}else for(;!(Pe=Ae.next()).done;){var Oe=Pe.value;if(Oe&&!Ee(Oe[1]))return!1}}else return!1;return!0;default:return!1}}function ce(re,we){return re==="symbol"?!0:we?we["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&we instanceof Symbol:!1}function _e(re){var we=typeof re;return Array.isArray(re)?"array":re instanceof RegExp?"object":ce(we,re)?"symbol":we}function Ne(re){if(typeof re>"u"||re===null)return""+re;var we=_e(re);if(we==="object"){if(re instanceof Date)return"date";if(re instanceof RegExp)return"regexp"}return we}function oe(re){var we=Ne(re);switch(we){case"array":case"object":return"an "+we;case"boolean":case"date":case"regexp":return"a "+we;default:return we}}function Se(re){return!re.constructor||!re.constructor.name?m:re.constructor.name}return y.checkPropTypes=o,y.resetWarningCache=o.resetWarningCache,y.PropTypes=y,y},z1}var K1,zD;function yK(){if(zD)return K1;zD=1;var e=dR();function t(){}function r(){}return r.resetWarningCache=t,K1=function(){function n(a,s,l,c,d,p){if(p!==e){var m=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}n.isRequired=n;function o(){return n}var i={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return i.PropTypes=i,i},K1}var KD;function bK(){if(KD)return hv.exports;if(KD=1,process.env.NODE_ENV!=="production"){var e=b9(),t=!0;hv.exports=vK()(e.isElement,t)}else hv.exports=yK()();return hv.exports}var SK=bK();const Qr=BF(SK);function EK(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function CK(e,t){e.classList?e.classList.add(t):EK(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function GD(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function wK(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=GD(e.className,t):e.setAttribute("class",GD(e.className&&e.className.baseVal||"",t))}const qD={disabled:!1};var IK=process.env.NODE_ENV!=="production"?Qr.oneOfType([Qr.number,Qr.shape({enter:Qr.number,exit:Qr.number,appear:Qr.number}).isRequired]):null,AK=process.env.NODE_ENV!=="production"?Qr.oneOfType([Qr.string,Qr.shape({enter:Qr.string,exit:Qr.string,active:Qr.string}),Qr.shape({enter:Qr.string,enterDone:Qr.string,enterActive:Qr.string,exit:Qr.string,exitDone:Qr.string,exitActive:Qr.string})]):null;const a0=ae.createContext(null);var E9=function(t){return t.scrollTop},Ah="unmounted",Yc="exited",Qc="entering",Rp="entered",Ow="exiting",Nl=(function(e){cR(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=o,s=a&&!a.isMounting?n.enter:n.appear,l;return i.appearStatus=null,n.in?s?(l=Yc,i.appearStatus=Qc):l=Rp:n.unmountOnExit||n.mountOnEnter?l=Ah:l=Yc,i.state={status:l},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Ah?{status:Yc}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Qc&&a!==Rp&&(i=Qc):(a===Qc||a===Rp)&&(i=Ow)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,a,s;return i=a=s=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,s=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:s}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Qc){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Op.findDOMNode(this);a&&E9(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Yc&&this.setState({status:Ah})},r.performEnter=function(o){var i=this,a=this.props.enter,s=this.context?this.context.isMounting:o,l=this.props.nodeRef?[s]:[Op.findDOMNode(this),s],c=l[0],d=l[1],p=this.getTimeouts(),m=s?p.appear:p.enter;if(!o&&!a||qD.disabled){this.safeSetState({status:Rp},function(){i.props.onEntered(c)});return}this.props.onEnter(c,d),this.safeSetState({status:Qc},function(){i.props.onEntering(c,d),i.onTransitionEnd(m,function(){i.safeSetState({status:Rp},function(){i.props.onEntered(c,d)})})})},r.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Op.findDOMNode(this);if(!i||qD.disabled){this.safeSetState({status:Yc},function(){o.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:Ow},function(){o.props.onExiting(s),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Yc},function(){o.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,i.nextCallback=null,o(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:Op.findDOMNode(this),s=o==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],d=l[1];this.props.addEndListener(c,d)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===Ah)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var s=uR(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ae.createElement(a0.Provider,{value:null},typeof a=="function"?a(o,s):ae.cloneElement(ae.Children.only(a),s))},t})(ae.Component);Nl.contextType=a0;Nl.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:Qr.shape({current:typeof Element>"u"?Qr.any:function(e,t,r,n,o,i){var a=e[t];return Qr.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,i)}}),children:Qr.oneOfType([Qr.func.isRequired,Qr.element.isRequired]).isRequired,in:Qr.bool,mountOnEnter:Qr.bool,unmountOnExit:Qr.bool,appear:Qr.bool,enter:Qr.bool,exit:Qr.bool,timeout:function(t){var r=IK;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.apply(void 0,[t].concat(o))},addEndListener:Qr.func,onEnter:Qr.func,onEntering:Qr.func,onEntered:Qr.func,onExit:Qr.func,onExiting:Qr.func,onExited:Qr.func}:{};function mp(){}Nl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:mp,onEntering:mp,onEntered:mp,onExit:mp,onExiting:mp,onExited:mp};Nl.UNMOUNTED=Ah;Nl.EXITED=Yc;Nl.ENTERING=Qc;Nl.ENTERED=Rp;Nl.EXITING=Ow;var RK=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return CK(t,n)})},G1=function(t,r){return t&&r&&r.split(" ").forEach(function(n){return wK(t,n)})},pR=(function(e){cR(t,e);function t(){for(var n,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=e.call.apply(e,[this].concat(i))||this,n.appliedClasses={appear:{},enter:{},exit:{}},n.onEnter=function(s,l){var c=n.resolveArguments(s,l),d=c[0],p=c[1];n.removeClasses(d,"exit"),n.addClass(d,p?"appear":"enter","base"),n.props.onEnter&&n.props.onEnter(s,l)},n.onEntering=function(s,l){var c=n.resolveArguments(s,l),d=c[0],p=c[1],m=p?"appear":"enter";n.addClass(d,m,"active"),n.props.onEntering&&n.props.onEntering(s,l)},n.onEntered=function(s,l){var c=n.resolveArguments(s,l),d=c[0],p=c[1],m=p?"appear":"enter";n.removeClasses(d,m),n.addClass(d,m,"done"),n.props.onEntered&&n.props.onEntered(s,l)},n.onExit=function(s){var l=n.resolveArguments(s),c=l[0];n.removeClasses(c,"appear"),n.removeClasses(c,"enter"),n.addClass(c,"exit","base"),n.props.onExit&&n.props.onExit(s)},n.onExiting=function(s){var l=n.resolveArguments(s),c=l[0];n.addClass(c,"exit","active"),n.props.onExiting&&n.props.onExiting(s)},n.onExited=function(s){var l=n.resolveArguments(s),c=l[0];n.removeClasses(c,"exit"),n.addClass(c,"exit","done"),n.props.onExited&&n.props.onExited(s)},n.resolveArguments=function(s,l){return n.props.nodeRef?[n.props.nodeRef.current,s]:[s,l]},n.getClassNames=function(s){var l=n.props.classNames,c=typeof l=="string",d=c&&l?l+"-":"",p=c?""+d+s:l[s],m=c?p+"-active":l[s+"Active"],y=c?p+"-done":l[s+"Done"];return{baseClassName:p,activeClassName:m,doneClassName:y}},n}var r=t.prototype;return r.addClass=function(o,i,a){var s=this.getClassNames(i)[a+"ClassName"],l=this.getClassNames("enter"),c=l.doneClassName;i==="appear"&&a==="done"&&c&&(s+=" "+c),a==="active"&&o&&E9(o),s&&(this.appliedClasses[i][a]=s,RK(o,s))},r.removeClasses=function(o,i){var a=this.appliedClasses[i],s=a.base,l=a.active,c=a.done;this.appliedClasses[i]={},s&&G1(o,s),l&&G1(o,l),c&&G1(o,c)},r.render=function(){var o=this.props;o.classNames;var i=uR(o,["classNames"]);return ae.createElement(Nl,Cm({},i,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(ae.Component);pR.defaultProps={classNames:""};pR.propTypes=process.env.NODE_ENV!=="production"?Cm({},Nl.propTypes,{classNames:AK,onEnter:Qr.func,onEntering:Qr.func,onEntered:Qr.func,onExit:Qr.func,onExiting:Qr.func,onExited:Qr.func}):{};function TK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fR(e,t){var r=function(i){return t&&ae.isValidElement(i)?t(i):i},n=Object.create(null);return e&&ae.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function OK(e,t){e=e||{},t=t||{};function r(d){return d in t?t[d]:e[d]}var n=Object.create(null),o=[];for(var i in e)i in t?o.length&&(n[i]=o,o=[]):o.push(i);var a,s={};for(var l in t){if(n[l])for(a=0;a<n[l].length;a++){var c=n[l][a];s[n[l][a]]=r(c)}s[l]=r(l)}for(a=0;a<o.length;a++)s[o[a]]=r(o[a]);return s}function gd(e,t,r){return r[t]!=null?r[t]:e.props[t]}function _K(e,t){return fR(e.children,function(r){return ae.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:gd(r,"appear",e),enter:gd(r,"enter",e),exit:gd(r,"exit",e)})})}function PK(e,t,r){var n=fR(e.children),o=OK(t,n);return Object.keys(o).forEach(function(i){var a=o[i];if(ae.isValidElement(a)){var s=i in t,l=i in n,c=t[i],d=ae.isValidElement(c)&&!c.props.in;l&&(!s||d)?o[i]=ae.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:gd(a,"exit",e),enter:gd(a,"enter",e)}):!l&&s&&!d?o[i]=ae.cloneElement(a,{in:!1}):l&&s&&ae.isValidElement(c)&&(o[i]=ae.cloneElement(a,{onExited:r.bind(null,a),in:c.props.in,exit:gd(a,"exit",e),enter:gd(a,"enter",e)}))}}),o}var xK=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},DK={component:"div",childFactory:function(t){return t}},hR=(function(e){cR(t,e);function t(n,o){var i;i=e.call(this,n,o)||this;var a=i.handleExited.bind(TK(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,s=i.handleExited,l=i.firstRender;return{children:l?_K(o,s):PK(o,a,s),firstRender:!1}},r.handleExited=function(o,i){var a=fR(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(s){var l=Cm({},s.children);return delete l[o.key],{children:l}}))},r.render=function(){var o=this.props,i=o.component,a=o.childFactory,s=uR(o,["component","childFactory"]),l=this.state.contextValue,c=xK(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,i===null?ae.createElement(a0.Provider,{value:l},c):ae.createElement(a0.Provider,{value:l},ae.createElement(i,s,c))},t})(ae.Component);hR.propTypes=process.env.NODE_ENV!=="production"?{component:Qr.any,children:Qr.node,appear:Qr.bool,enter:Qr.bool,exit:Qr.bool,childFactory:Qr.func}:{};hR.defaultProps=DK;function NK(e){if(Array.isArray(e))return e}function MK(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function _w(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function C9(e,t){if(e){if(typeof e=="string")return _w(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_w(e,t):void 0}}function kK(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
97
97
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Il(e,t){return NK(e)||MK(e,t)||C9(e,t)||kK()}var If=function(t){var r=S.useRef(null);return S.useEffect(function(){return r.current=t,function(){r.current=null}},[t]),r.current},Ci=function(t){return S.useEffect(function(){return t},[])},Aa=function(t){var r=t.target,n=r===void 0?"document":r,o=t.type,i=t.listener,a=t.options,s=t.when,l=s===void 0?!0:s,c=S.useRef(null),d=S.useRef(null),p=If(i),m=If(a),y=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},x=R.target;pe.isNotEmpty(x)&&(b(),(R.when||l)&&(c.current=le.getTargetElement(x))),!d.current&&c.current&&(d.current=function(k){return i&&i(k)},c.current.addEventListener(o,d.current,a))},b=function(){d.current&&(c.current.removeEventListener(o,d.current,a),d.current=null)},v=function(){b(),p=null,m=null},C=S.useCallback(function(){l?c.current=le.getTargetElement(n):(b(),c.current=null)},[n,l]);return S.useEffect(function(){C()},[C]),S.useEffect(function(){var A="".concat(p)!=="".concat(i),R=m!==a,x=d.current;x&&(A||R)?(b(),l&&y()):x||v()},[i,a,l]),Ci(function(){v()}),[y,b]},LK=function(t,r){var n=S.useState(t),o=Il(n,2),i=o[0],a=o[1],s=S.useState(t),l=Il(s,2),c=l[0],d=l[1],p=S.useRef(!1),m=S.useRef(null),y=function(){return window.clearTimeout(m.current)};return Go(function(){p.current=!0}),Ci(function(){y()}),S.useEffect(function(){p.current&&(y(),m.current=window.setTimeout(function(){d(i)},r))},[i,r]),[i,c,a]},Uc={},k0=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=S.useState(function(){return ms()}),o=Il(n,1),i=o[0],a=S.useState(0),s=Il(a,2),l=s[0],c=s[1];return S.useEffect(function(){if(r){Uc[t]||(Uc[t]=[]);var d=Uc[t].push(i);return c(d),function(){delete Uc[t][d-1];var p=Uc[t].length-1,m=pe.findLastIndex(Uc[t],function(y){return y!==void 0});m!==p&&Uc[t].splice(m+1),c(void 0)}}},[t,i,r]),l};function FK(e){if(Array.isArray(e))return _w(e)}function jK(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function VK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JD(e){return FK(e)||jK(e)||C9(e)||VK()}var L0={SIDEBAR:100,DIALOG:300,MENU:500,TOOLTIP:1200},w9={escKeyListeners:new Map,onGlobalKeyDown:function(t){if(t.code==="Escape"){var r=w9.escKeyListeners,n=Math.max.apply(Math,JD(r.keys())),o=r.get(n),i=Math.max.apply(Math,JD(o.keys())),a=o.get(i);a(t)}},refreshGlobalKeyDownListener:function(){var t=le.getTargetElement("document");this.escKeyListeners.size>0?t.addEventListener("keydown",this.onGlobalKeyDown):t.removeEventListener("keydown",this.onGlobalKeyDown)},addListener:function(t,r){var n=this,o=Il(r,2),i=o[0],a=o[1],s=this.escKeyListeners;s.has(i)||s.set(i,new Map);var l=s.get(i);if(l.has(a))throw new Error("Unexpected: global esc key listener with priority [".concat(i,", ").concat(a,"] already exists."));return l.set(a,t),this.refreshGlobalKeyDownListener(),function(){l.delete(a),l.size===0&&s.delete(i),n.refreshGlobalKeyDownListener()}}},F0=function(t){var r=t.callback,n=t.when,o=t.priority;se.useEffect(function(){if(n)return w9.addListener(r,o)},[r,n,o])},Vr=function(){var t=se.useContext(qr);return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return zy(n,t==null?void 0:t.ptOptions)}},Go=function(t){var r=S.useRef(!1);return S.useEffect(function(){if(!r.current)return r.current=!0,t&&t()},[])},I9=function(t){var r=t.target,n=t.listener,o=t.options,i=t.when,a=i===void 0?!0:i,s=S.useContext(qr),l=S.useRef(null),c=S.useRef(null),d=S.useRef([]),p=If(n),m=If(o),y=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(pe.isNotEmpty(R.target)&&(b(),(R.when||a)&&(l.current=le.getTargetElement(R.target))),!c.current&&l.current){var x=s?s.hideOverlaysOnDocumentScrolling:Ur.hideOverlaysOnDocumentScrolling,k=d.current=le.getScrollableParents(l.current);k.some(function(D){return D===document.body||D===window})||k.push(x?window:document.body),c.current=function(D){return n&&n(D)},k.forEach(function(D){return D.addEventListener("scroll",c.current,o)})}},b=function(){if(c.current){var R=d.current;R.forEach(function(x){return x.removeEventListener("scroll",c.current,o)}),c.current=null}},v=function(){b(),d.current=null,p=null,m=null},C=S.useCallback(function(){a?l.current=le.getTargetElement(r):(b(),l.current=null)},[r,a]);return S.useEffect(function(){C()},[C]),S.useEffect(function(){var A="".concat(p)!=="".concat(n),R=m!==o,x=c.current;x&&(A||R)?(b(),a&&y()):x||v()},[n,o,a]),Ci(function(){v()}),[y,b]},mR=function(t){var r=t.listener,n=t.when,o=n===void 0?!0:n;return Aa({target:"window",type:"resize",listener:r,when:o})},gR=function(t){var r=t.target,n=t.overlay,o=t.listener,i=t.when,a=i===void 0?!0:i,s=t.type,l=s===void 0?"click":s,c=S.useRef(null),d=S.useRef(null),p=Aa({target:"window",type:l,listener:function(ce){o&&o(ce,{type:"outside",valid:ce.which!==3&&Q(ce)})},when:a}),m=Il(p,2),y=m[0],b=m[1],v=mR({listener:function(ce){o&&o(ce,{type:"resize",valid:!le.isTouchDevice()})},when:a}),C=Il(v,2),A=C[0],R=C[1],x=Aa({target:"window",type:"orientationchange",listener:function(ce){o&&o(ce,{type:"orientationchange",valid:!0})},when:a}),k=Il(x,2),D=k[0],F=k[1],$=I9({target:r,listener:function(ce){o&&o(ce,{type:"scroll",valid:!0})},when:a}),U=Il($,2),G=U[0],Y=U[1],Q=function(ce){return c.current&&!(c.current.isSameNode(ce.target)||c.current.contains(ce.target)||d.current&&d.current.contains(ce.target))},me=function(){y(),A(),D(),G()},ne=function(){b(),R(),F(),Y()};return S.useEffect(function(){a?(c.current=le.getTargetElement(r),d.current=le.getTargetElement(n)):(ne(),c.current=d.current=null)},[r,n,a]),Ci(function(){ne()}),[me,ne]},BK=0,pc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=se.useState(!1),o=Il(n,2),i=o[0],a=o[1],s=se.useRef(null),l=se.useContext(qr),c=le.isClient()?window.document:void 0,d=r.document,p=d===void 0?c:d,m=r.manual,y=m===void 0?!1:m,b=r.name,v=b===void 0?"style_".concat(++BK):b,C=r.id,A=C===void 0?void 0:C,R=r.media,x=R===void 0?void 0:R,k=function(G){var Y=G.querySelector('style[data-primereact-style-id="'.concat(v,'"]'));if(Y)return Y;if(A!==void 0){var Q=p.getElementById(A);if(Q)return Q}return p.createElement("style")},D=function(G){i&&t!==G&&(s.current.textContent=G)},F=function(){if(!(!p||i)){var G=(l==null?void 0:l.styleContainer)||p.head;s.current=k(G),s.current.isConnected||(s.current.type="text/css",A&&(s.current.id=A),x&&(s.current.media=x),le.addNonce(s.current,l&&l.nonce||Ur.nonce),G.appendChild(s.current),v&&s.current.setAttribute("data-primereact-style-id",v)),s.current.textContent=t,a(!0)}},$=function(){!p||!s.current||(le.removeInlineStyle(s.current),a(!1))};return se.useEffect(function(){y||F()},[y]),{id:A,name:v,update:D,unload:$,load:F,isLoaded:i}},HK=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=S.useRef(null),i=S.useRef(null),a=S.useCallback(function(){return clearTimeout(o.current)},[o.current]);return S.useEffect(function(){i.current=t}),S.useEffect(function(){function s(){i.current()}if(n)return o.current=setTimeout(s,r),a;a()},[r,n]),Ci(function(){a()}),[a]},hn=function(t,r){var n=S.useRef(!1);return S.useEffect(function(){if(!n.current){n.current=!0;return}return t&&t()},r)};function Pw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function UK(e){if(Array.isArray(e))return Pw(e)}function $K(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WK(e,t){if(e){if(typeof e=="string")return Pw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pw(e,t):void 0}}function zK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JD(e){return FK(e)||jK(e)||C9(e)||VK()}var L0={SIDEBAR:100,DIALOG:300,MENU:500,TOOLTIP:1200},w9={escKeyListeners:new Map,onGlobalKeyDown:function(t){if(t.code==="Escape"){var r=w9.escKeyListeners,n=Math.max.apply(Math,JD(r.keys())),o=r.get(n),i=Math.max.apply(Math,JD(o.keys())),a=o.get(i);a(t)}},refreshGlobalKeyDownListener:function(){var t=le.getTargetElement("document");this.escKeyListeners.size>0?t.addEventListener("keydown",this.onGlobalKeyDown):t.removeEventListener("keydown",this.onGlobalKeyDown)},addListener:function(t,r){var n=this,o=Il(r,2),i=o[0],a=o[1],s=this.escKeyListeners;s.has(i)||s.set(i,new Map);var l=s.get(i);if(l.has(a))throw new Error("Unexpected: global esc key listener with priority [".concat(i,", ").concat(a,"] already exists."));return l.set(a,t),this.refreshGlobalKeyDownListener(),function(){l.delete(a),l.size===0&&s.delete(i),n.refreshGlobalKeyDownListener()}}},F0=function(t){var r=t.callback,n=t.when,o=t.priority;ae.useEffect(function(){if(n)return w9.addListener(r,o)},[r,n,o])},Vr=function(){var t=ae.useContext(qr);return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return zy(n,t==null?void 0:t.ptOptions)}},Go=function(t){var r=S.useRef(!1);return S.useEffect(function(){if(!r.current)return r.current=!0,t&&t()},[])},I9=function(t){var r=t.target,n=t.listener,o=t.options,i=t.when,a=i===void 0?!0:i,s=S.useContext(qr),l=S.useRef(null),c=S.useRef(null),d=S.useRef([]),p=If(n),m=If(o),y=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(pe.isNotEmpty(R.target)&&(b(),(R.when||a)&&(l.current=le.getTargetElement(R.target))),!c.current&&l.current){var x=s?s.hideOverlaysOnDocumentScrolling:Ur.hideOverlaysOnDocumentScrolling,k=d.current=le.getScrollableParents(l.current);k.some(function(D){return D===document.body||D===window})||k.push(x?window:document.body),c.current=function(D){return n&&n(D)},k.forEach(function(D){return D.addEventListener("scroll",c.current,o)})}},b=function(){if(c.current){var R=d.current;R.forEach(function(x){return x.removeEventListener("scroll",c.current,o)}),c.current=null}},v=function(){b(),d.current=null,p=null,m=null},C=S.useCallback(function(){a?l.current=le.getTargetElement(r):(b(),l.current=null)},[r,a]);return S.useEffect(function(){C()},[C]),S.useEffect(function(){var A="".concat(p)!=="".concat(n),R=m!==o,x=c.current;x&&(A||R)?(b(),a&&y()):x||v()},[n,o,a]),Ci(function(){v()}),[y,b]},mR=function(t){var r=t.listener,n=t.when,o=n===void 0?!0:n;return Aa({target:"window",type:"resize",listener:r,when:o})},gR=function(t){var r=t.target,n=t.overlay,o=t.listener,i=t.when,a=i===void 0?!0:i,s=t.type,l=s===void 0?"click":s,c=S.useRef(null),d=S.useRef(null),p=Aa({target:"window",type:l,listener:function(ce){o&&o(ce,{type:"outside",valid:ce.which!==3&&Q(ce)})},when:a}),m=Il(p,2),y=m[0],b=m[1],v=mR({listener:function(ce){o&&o(ce,{type:"resize",valid:!le.isTouchDevice()})},when:a}),C=Il(v,2),A=C[0],R=C[1],x=Aa({target:"window",type:"orientationchange",listener:function(ce){o&&o(ce,{type:"orientationchange",valid:!0})},when:a}),k=Il(x,2),D=k[0],F=k[1],$=I9({target:r,listener:function(ce){o&&o(ce,{type:"scroll",valid:!0})},when:a}),U=Il($,2),G=U[0],Y=U[1],Q=function(ce){return c.current&&!(c.current.isSameNode(ce.target)||c.current.contains(ce.target)||d.current&&d.current.contains(ce.target))},me=function(){y(),A(),D(),G()},ne=function(){b(),R(),F(),Y()};return S.useEffect(function(){a?(c.current=le.getTargetElement(r),d.current=le.getTargetElement(n)):(ne(),c.current=d.current=null)},[r,n,a]),Ci(function(){ne()}),[me,ne]},BK=0,pc=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=ae.useState(!1),o=Il(n,2),i=o[0],a=o[1],s=ae.useRef(null),l=ae.useContext(qr),c=le.isClient()?window.document:void 0,d=r.document,p=d===void 0?c:d,m=r.manual,y=m===void 0?!1:m,b=r.name,v=b===void 0?"style_".concat(++BK):b,C=r.id,A=C===void 0?void 0:C,R=r.media,x=R===void 0?void 0:R,k=function(G){var Y=G.querySelector('style[data-primereact-style-id="'.concat(v,'"]'));if(Y)return Y;if(A!==void 0){var Q=p.getElementById(A);if(Q)return Q}return p.createElement("style")},D=function(G){i&&t!==G&&(s.current.textContent=G)},F=function(){if(!(!p||i)){var G=(l==null?void 0:l.styleContainer)||p.head;s.current=k(G),s.current.isConnected||(s.current.type="text/css",A&&(s.current.id=A),x&&(s.current.media=x),le.addNonce(s.current,l&&l.nonce||Ur.nonce),G.appendChild(s.current),v&&s.current.setAttribute("data-primereact-style-id",v)),s.current.textContent=t,a(!0)}},$=function(){!p||!s.current||(le.removeInlineStyle(s.current),a(!1))};return ae.useEffect(function(){y||F()},[y]),{id:A,name:v,update:D,unload:$,load:F,isLoaded:i}},HK=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=S.useRef(null),i=S.useRef(null),a=S.useCallback(function(){return clearTimeout(o.current)},[o.current]);return S.useEffect(function(){i.current=t}),S.useEffect(function(){function s(){i.current()}if(n)return o.current=setTimeout(s,r),a;a()},[r,n]),Ci(function(){a()}),[a]},hn=function(t,r){var n=S.useRef(!1);return S.useEffect(function(){if(!n.current){n.current=!0;return}return t&&t()},r)};function Pw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function UK(e){if(Array.isArray(e))return Pw(e)}function $K(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function WK(e,t){if(e){if(typeof e=="string")return Pw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Pw(e,t):void 0}}function zK(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
99
99
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function YD(e){return UK(e)||$K(e)||WK(e)||zK()}function wm(e){"@babel/helpers - typeof";return wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wm(e)}function KK(e,t){if(wm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GK(e){var t=KK(e,"string");return wm(t)=="symbol"?t:t+""}function xw(e,t,r){return(t=GK(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function QD(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ui(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?QD(Object(r),!0).forEach(function(n){xw(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):QD(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var qK=`
100
100
  .p-hidden-accessible {
101
101
  border: 0;
@@ -725,7 +725,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
725
725
  }
726
726
  `,yv=Ar.extend({defaultProps:{__TYPE:"Badge",__parentMetadata:null,value:null,severity:null,size:null,style:null,className:null,children:void 0},css:{classes:KG,styles:GG}});function iN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function qG(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iN(Object(r),!0).forEach(function(n){ou(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var N9=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=yv.getProps(e,n),i=yv.setMetaData(qG({props:o},o.__parentMetadata)),a=i.ptm,s=i.cx,l=i.isUnstyled;vo(yv.css.styles,l,{name:"badge"});var c=S.useRef(null);S.useImperativeHandle(t,function(){return{props:o,getElement:function(){return c.current}}});var d=r({ref:c,style:o.style,className:dt(o.className,s("root"))},yv.getOtherProps(o),a("root"));return S.createElement("span",d,o.value)}));N9.displayName="Badge";var JG={icon:function(t){var r=t.props;return dt("p-button-icon p-c",ou({},"p-button-icon-".concat(r.iconPos),r.label))},loadingIcon:function(t){var r=t.props,n=t.className;return dt(n,{"p-button-loading-icon":r.loading})},label:"p-button-label p-c",root:function(t){var r=t.props,n=t.size,o=t.disabled;return dt("p-button p-component",ou(ou(ou(ou({"p-button-icon-only":(r.icon||r.loading)&&!r.label&&!r.children,"p-button-vertical":(r.iconPos==="top"||r.iconPos==="bottom")&&r.label,"p-disabled":o,"p-button-loading":r.loading,"p-button-outlined":r.outlined,"p-button-raised":r.raised,"p-button-link":r.link,"p-button-text":r.text,"p-button-rounded":r.rounded,"p-button-loading-label-only":r.loading&&!r.icon&&r.label},"p-button-loading-".concat(r.iconPos),r.loading&&r.label),"p-button-".concat(n),n),"p-button-".concat(r.severity),r.severity),"p-button-plain",r.plain))}},bv=Ar.extend({defaultProps:{__TYPE:"Button",__parentMetadata:null,badge:null,badgeClassName:null,className:null,children:void 0,disabled:!1,icon:null,iconPos:"left",label:null,link:!1,loading:!1,loadingIcon:null,outlined:!1,plain:!1,raised:!1,rounded:!1,severity:null,size:null,text:!1,tooltip:null,tooltipOptions:null,visible:!0},css:{classes:JG}});function aN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Y1(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?aN(Object(r),!0).forEach(function(n){ou(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var Pi=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=bv.getProps(e,n),i=o.disabled||o.loading,a=Y1(Y1({props:o},o.__parentMetadata),{},{context:{disabled:i}}),s=bv.setMetaData(a),l=s.ptm,c=s.cx,d=s.isUnstyled;vo(bv.css.styles,d,{name:"button",styled:!0});var p=S.useRef(t);if(S.useEffect(function(){pe.combinedRefs(p,t)},[p,t]),o.visible===!1)return null;var m=function(){var G=dt("p-button-icon p-c",ou({},"p-button-icon-".concat(o.iconPos),o.label)),Y=r({className:c("icon")},l("icon"));G=dt(G,{"p-button-loading-icon":o.loading});var Q=r({className:c("loadingIcon",{className:G})},l("loadingIcon")),me=o.loading?o.loadingIcon||S.createElement(pg,zh({},Q,{spin:!0})):o.icon;return nn.getJSXIcon(me,Y1({},Y),{props:o})},y=function(){var G=r({className:c("label")},l("label"));return o.label?S.createElement("span",G,o.label):!o.children&&!o.label&&S.createElement("span",zh({},G,{dangerouslySetInnerHTML:{__html:"&nbsp;"}}))},b=function(){if(o.badge){var G=r({className:dt(o.badgeClassName),value:o.badge,unstyled:o.unstyled,__parentMetadata:{parent:a}},l("badge"));return S.createElement(N9,G,o.badge)}return null},v=!i||o.tooltipOptions&&o.tooltipOptions.showOnDisabled,C=pe.isNotEmpty(o.tooltip)&&v,A={large:"lg",small:"sm"},R=A[o.size],x=m(),k=y(),D=b(),F=o.label?o.label+(o.badge?" "+o.badge:""):o["aria-label"],$=r({ref:p,"aria-label":F,"data-pc-autofocus":o.autoFocus,className:dt(o.className,c("root",{size:R,disabled:i})),disabled:i},bv.getOtherProps(o),l("root"));return S.createElement(S.Fragment,null,S.createElement("button",$,x,k,o.children,D,S.createElement(Co,null)),C&&S.createElement(Ml,zh({target:p,content:o.tooltip,pt:l("tooltip")},o.tooltipOptions)))}));Pi.displayName="Button";function zw(){return zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zw.apply(null,arguments)}var M9=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",zw({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z",fill:"currentColor"}))}));M9.displayName="WindowMaximizeIcon";function Kw(){return Kw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kw.apply(null,arguments)}var k9=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",Kw({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z",fill:"currentColor"}))}));k9.displayName="WindowMinimizeIcon";function Gw(){return Gw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gw.apply(null,arguments)}function _m(e){"@babel/helpers - typeof";return _m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_m(e)}function qw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function YG(e){if(Array.isArray(e))return qw(e)}function QG(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function L9(e,t){if(e){if(typeof e=="string")return qw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qw(e,t):void 0}}function XG(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
727
727
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZG(e){return YG(e)||QG(e)||L9(e)||XG()}function eq(e,t){if(_m(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(_m(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tq(e){var t=eq(e,"string");return _m(t)=="symbol"?t:t+""}function bR(e,t,r){return(t=tq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rq(e){if(Array.isArray(e))return e}function nq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function oq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
728
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fu(e,t){return rq(e)||nq(e,t)||L9(e,t)||oq()}var iq="",Kh=Ar.extend({defaultProps:{__TYPE:"FocusTrap",children:void 0},css:{styles:iq},getProps:function(t){return pe.getMergedProps(t,Kh.defaultProps)},getOtherProps:function(t){return pe.getDiffProps(t,Kh.defaultProps)}});function sN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function aq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sN(Object(r),!0).forEach(function(n){bR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var sq=se.memo(se.forwardRef(function(e,t){var r=se.useRef(null),n=se.useRef(null),o=se.useRef(null),i=se.useContext(qr),a=Kh.getProps(e,i),s={props:a};pc(Kh.css.styles,{name:"focustrap"});var l=Kh.setMetaData(aq({},s));l.ptm,se.useImperativeHandle(t,function(){return{props:a,getInk:function(){return n.current},getTarget:function(){return r.current}}}),Go(function(){a.disabled||(r.current=c(),d(r.current))});var c=function(){return n.current&&n.current.parentElement},d=function(C){var A=a||{},R=A.autoFocusSelector,x=R===void 0?"":R,k=A.firstFocusableSelector,D=k===void 0?"":k,F=A.autoFocus,$=F===void 0?!1:F,U="".concat(p(x)),G="[autofocus]".concat(U,", [data-pc-autofocus='true']").concat(U),Y=le.getFirstFocusableElement(C,G);$&&!Y&&(Y=le.getFirstFocusableElement(C,p(D))),le.focus(Y)},p=function(C){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(C??"")},m=function(C){var A,R=C.currentTarget,x=C.relatedTarget,k=x===R.$_pfocustrap_lasthiddenfocusableelement||!((A=r.current)!==null&&A!==void 0&&A.contains(x))?le.getFirstFocusableElement(R.parentElement,p(R.$_pfocustrap_focusableselector)):R.$_pfocustrap_lasthiddenfocusableelement;le.focus(k)},y=function(C){var A,R=C.currentTarget,x=C.relatedTarget,k=x===R.$_pfocustrap_firsthiddenfocusableelement||!((A=r.current)!==null&&A!==void 0&&A.contains(x))?le.getLastFocusableElement(R.parentElement,p(R.$_pfocustrap_focusableselector)):R.$_pfocustrap_firsthiddenfocusableelement;le.focus(k)},b=function(){var C=a||{},A=C.tabIndex,R=A===void 0?0:A,x=function($,U,G){return se.createElement("span",{ref:$,className:"p-hidden-accessible p-hidden-focusable",tabIndex:R,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:U,"data-pc-section":G})},k=x(n,m,"firstfocusableelement"),D=x(o,y,"lastfocusableelement");return n.current&&o.current&&(n.current.$_pfocustrap_lasthiddenfocusableelement=o.current,o.current.$_pfocustrap_firsthiddenfocusableelement=n.current),se.createElement(se.Fragment,null,k,a.children,D)};return b()})),lq=sq;function lN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function uq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lN(Object(r),!0).forEach(function(n){bR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var cq={closeButtonIcon:"p-dialog-header-close-icon",closeButton:"p-dialog-header-icon p-dialog-header-close p-link",maximizableIcon:"p-dialog-header-maximize-icon",maximizableButton:"p-dialog-header-icon p-dialog-header-maximize p-link",header:function(t){var r=t.props;return dt("p-dialog-header",r.headerClassName)},headerTitle:"p-dialog-title",headerIcons:"p-dialog-header-icons",content:function(t){var r=t.props;return dt("p-dialog-content",r.contentClassName)},footer:function(t){var r=t.props;return dt("p-dialog-footer",r.footerClassName)},mask:function(t){var r=t.props,n=t.maskVisibleState,o=["center","left","right","top","top-left","top-right","bottom","bottom-left","bottom-right"],i=o.find(function(a){return a===r.position||a.replace("-","")===r.position});return dt("p-dialog-mask",i?"p-dialog-".concat(i):"",{"p-component-overlay p-component-overlay-enter":r.modal,"p-dialog-visible":n,"p-dialog-draggable":r.draggable,"p-dialog-resizable":r.resizable},r.maskClassName)},root:function(t){var r=t.props,n=t.maximized,o=t.context;return dt("p-dialog p-component",{"p-dialog-rtl":r.rtl,"p-dialog-maximized":n,"p-dialog-default":!n,"p-input-filled":o&&o.inputStyle==="filled"||Ur.inputStyle==="filled","p-ripple-disabled":o&&o.ripple===!1||Ur.ripple===!1})},transition:"p-dialog"},dq=`
728
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fu(e,t){return rq(e)||nq(e,t)||L9(e,t)||oq()}var iq="",Kh=Ar.extend({defaultProps:{__TYPE:"FocusTrap",children:void 0},css:{styles:iq},getProps:function(t){return pe.getMergedProps(t,Kh.defaultProps)},getOtherProps:function(t){return pe.getDiffProps(t,Kh.defaultProps)}});function sN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function aq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sN(Object(r),!0).forEach(function(n){bR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var sq=ae.memo(ae.forwardRef(function(e,t){var r=ae.useRef(null),n=ae.useRef(null),o=ae.useRef(null),i=ae.useContext(qr),a=Kh.getProps(e,i),s={props:a};pc(Kh.css.styles,{name:"focustrap"});var l=Kh.setMetaData(aq({},s));l.ptm,ae.useImperativeHandle(t,function(){return{props:a,getInk:function(){return n.current},getTarget:function(){return r.current}}}),Go(function(){a.disabled||(r.current=c(),d(r.current))});var c=function(){return n.current&&n.current.parentElement},d=function(C){var A=a||{},R=A.autoFocusSelector,x=R===void 0?"":R,k=A.firstFocusableSelector,D=k===void 0?"":k,F=A.autoFocus,$=F===void 0?!1:F,U="".concat(p(x)),G="[autofocus]".concat(U,", [data-pc-autofocus='true']").concat(U),Y=le.getFirstFocusableElement(C,G);$&&!Y&&(Y=le.getFirstFocusableElement(C,p(D))),le.focus(Y)},p=function(C){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(C??"")},m=function(C){var A,R=C.currentTarget,x=C.relatedTarget,k=x===R.$_pfocustrap_lasthiddenfocusableelement||!((A=r.current)!==null&&A!==void 0&&A.contains(x))?le.getFirstFocusableElement(R.parentElement,p(R.$_pfocustrap_focusableselector)):R.$_pfocustrap_lasthiddenfocusableelement;le.focus(k)},y=function(C){var A,R=C.currentTarget,x=C.relatedTarget,k=x===R.$_pfocustrap_firsthiddenfocusableelement||!((A=r.current)!==null&&A!==void 0&&A.contains(x))?le.getLastFocusableElement(R.parentElement,p(R.$_pfocustrap_focusableselector)):R.$_pfocustrap_firsthiddenfocusableelement;le.focus(k)},b=function(){var C=a||{},A=C.tabIndex,R=A===void 0?0:A,x=function($,U,G){return ae.createElement("span",{ref:$,className:"p-hidden-accessible p-hidden-focusable",tabIndex:R,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:U,"data-pc-section":G})},k=x(n,m,"firstfocusableelement"),D=x(o,y,"lastfocusableelement");return n.current&&o.current&&(n.current.$_pfocustrap_lasthiddenfocusableelement=o.current,o.current.$_pfocustrap_firsthiddenfocusableelement=n.current),ae.createElement(ae.Fragment,null,k,a.children,D)};return b()})),lq=sq;function lN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function uq(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?lN(Object(r),!0).forEach(function(n){bR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):lN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var cq={closeButtonIcon:"p-dialog-header-close-icon",closeButton:"p-dialog-header-icon p-dialog-header-close p-link",maximizableIcon:"p-dialog-header-maximize-icon",maximizableButton:"p-dialog-header-icon p-dialog-header-maximize p-link",header:function(t){var r=t.props;return dt("p-dialog-header",r.headerClassName)},headerTitle:"p-dialog-title",headerIcons:"p-dialog-header-icons",content:function(t){var r=t.props;return dt("p-dialog-content",r.contentClassName)},footer:function(t){var r=t.props;return dt("p-dialog-footer",r.footerClassName)},mask:function(t){var r=t.props,n=t.maskVisibleState,o=["center","left","right","top","top-left","top-right","bottom","bottom-left","bottom-right"],i=o.find(function(a){return a===r.position||a.replace("-","")===r.position});return dt("p-dialog-mask",i?"p-dialog-".concat(i):"",{"p-component-overlay p-component-overlay-enter":r.modal,"p-dialog-visible":n,"p-dialog-draggable":r.draggable,"p-dialog-resizable":r.resizable},r.maskClassName)},root:function(t){var r=t.props,n=t.maximized,o=t.context;return dt("p-dialog p-component",{"p-dialog-rtl":r.rtl,"p-dialog-maximized":n,"p-dialog-default":!n,"p-input-filled":o&&o.inputStyle==="filled"||Ur.inputStyle==="filled","p-ripple-disabled":o&&o.ripple===!1||Ur.ripple===!1})},transition:"p-dialog"},dq=`
729
729
  @layer primereact {
730
730
  .p-dialog-mask {
731
731
  background-color: transparent;
@@ -918,7 +918,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
918
918
  }
919
919
  }
920
920
  `);_e.current.innerHTML=Ce},Qe=function(){_e.current=le.removeInlineStyle(_e.current)};Go(function(){Qt(!0),o.visible&&m(!0)}),S.useEffect(function(){return o.breakpoints&&zt(),function(){Qe()}},[o.breakpoints]),hn(function(){o.visible&&!p&&m(!0),o.visible!==v&&p&&C(o.visible),o.visible&&(oe.current=document.activeElement)},[o.visible,p]),hn(function(){p&&(xo.set("modal",F.current,n&&n.autoZIndex||Ur.autoZIndex,o.baseZIndex||n&&n.zIndex.modal||Ur.zIndex.modal),C(!0))},[p]),hn(function(){Qt(!0)},[re,v]),Ci(function(){We(),Qt(!1),le.removeInlineStyle(_e.current),xo.clear(F.current)}),S.useImperativeHandle(t,function(){return{props:o,resetPosition:Pt,getElement:function(){return D.current},getMask:function(){return F.current},getContent:function(){return U.current},getHeader:function(){return G.current},getFooter:function(){return Y.current},getCloseButton:function(){return Q.current}}});var Et=function(){if(o.closable&&o.showCloseIcon){var Ce=o.ariaCloseIconLabel||Bo("close"),Te=r({className:Ke("closeButtonIcon"),"aria-hidden":!0},Oe("closeButtonIcon")),et=o.closeIcon||S.createElement(wc,Te),ht=nn.getJSXIcon(et,Q1({},Te),{props:o}),Ft=r({ref:Q,type:"button",className:Ke("closeButton"),"aria-label":Ce,onClick:Wr,onKeyDown:function(Lt){Lt.key!=="Escape"&&Lt.stopPropagation()}},Oe("closeButton"));return S.createElement("button",Ft,ht,S.createElement(Co,null))}return null},Ht=function(){var Ce,Te=r({className:Ke("maximizableIcon")},Oe("maximizableIcon"));Se?Ce=o.minimizeIcon||S.createElement(k9,Te):Ce=o.maximizeIcon||S.createElement(M9,Te);var et=nn.getJSXIcon(Ce,Te,{props:o});if(o.maximizable){var ht=r({type:"button",className:Ke("maximizableButton"),onClick:Hr},Oe("maximizableButton"));return S.createElement("button",ht,et,S.createElement(Co,null))}return null},ur=function(){if(o.showHeader){var Ce=Et(),Te=Ht(),et=pe.getJSXElement(o.icons,o),ht=pe.getJSXElement(o.header,o),Ft=l+"_header",tr=r({ref:G,style:o.headerStyle,className:Ke("header"),onMouseDown:jr},Oe("header")),Lt=r({id:Ft,className:Ke("headerTitle")},Oe("headerTitle")),Je=r({className:Ke("headerIcons")},Oe("headerIcons"));return S.createElement("div",tr,S.createElement("div",Lt,ht),S.createElement("div",Je,et,Te,Ce))}return null},Dr=function(){var Ce=l+"_content",Te=r({id:Ce,ref:U,style:o.contentStyle,className:Ke("content")},Oe("content"));return S.createElement("div",Te,o.children)},pn=function(){var Ce=pe.getJSXElement(o.footer,o),Te=r({ref:Y,className:Ke("footer")},Oe("footer"));return Ce&&S.createElement("div",Te,Ce)},Ln=function(){return o.resizable?S.createElement("span",{className:"p-resizable-handle",style:{zIndex:90},onMouseDown:In}):null},Qn=function(){var Ce,Te={header:o.header,content:o.message,message:o==null||(Ce=o.children)===null||Ce===void 0||(Ce=Ce[1])===null||Ce===void 0||(Ce=Ce.props)===null||Ce===void 0?void 0:Ce.children},et={headerRef:G,contentRef:U,footerRef:Y,closeRef:Q,hide:Wr,message:Te};return pe.getJSXElement(e.content,et)},gn=function(){var Ce=ur(),Te=Dr(),et=pn(),ht=Ln();return S.createElement(S.Fragment,null,Ce,Te,et,ht)},Re=function(){var Ce=l+"_header",Te=l+"_content",et={enter:o.position==="center"?150:300,exit:o.position==="center"?150:300},ht=r({ref:F,style:St("mask"),className:Ke("mask"),onPointerUp:Br},Oe("mask")),Ft=r({ref:D,id:l,className:dt(o.className,Ke("root",{props:o,maximized:Se,context:n})),style:o.style,onClick:o.onClick,role:"dialog","aria-labelledby":Ce,"aria-describedby":Te,"aria-modal":o.modal,onPointerDown:Pr},Sv.getOtherProps(o),Oe("root")),tr=r({classNames:Ke("transition"),timeout:et,in:v,options:o.transitionOptions,unmountOnExit:!0,onEnter:pt,onEntered:Rt,onExiting:rt,onExited:ge},Oe("transition")),Lt=null;e!=null&&e.content?Lt=Qn():Lt=gn();var Je=S.createElement("div",ht,S.createElement(Dl,Gw({nodeRef:D},tr),S.createElement("div",Ft,S.createElement(lq,{autoFocus:o.focusOnShow},Lt))));return S.createElement(vu,{element:Je,appendTo:o.appendTo,visible:!0})};return p&&Re()});H0.displayName="Dialog";var Ps=ZF();function Jw(){return Jw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jw.apply(null,arguments)}function fq(e){if(Array.isArray(e))return e}function hq(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function cN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function mq(e,t){if(e){if(typeof e=="string")return cN(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cN(e,t):void 0}}function gq(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
921
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dN(e,t){return fq(e)||hq(e,t)||mq(e,t)||gq()}function Pm(e){"@babel/helpers - typeof";return Pm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pm(e)}function vq(e,t){if(Pm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yq(e){var t=vq(e,"string");return Pm(t)=="symbol"?t:t+""}function bq(e,t,r){return(t=yq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Sq={root:"p-confirm-dialog",message:"p-confirm-dialog-message",icon:"p-confirm-dialog-icon",acceptButton:"p-confirm-dialog-accept",rejectButton:function(t){var r=t.getPropValue;return dt("p-confirm-dialog-reject",{"p-button-text":!r("rejectClassName")})}},Ev=Ar.extend({defaultProps:{__TYPE:"ConfirmDialog",accept:null,acceptClassName:null,acceptIcon:null,acceptLabel:null,appendTo:null,breakpoints:null,children:void 0,className:null,content:null,defaultFocus:"accept",footer:null,icon:null,message:null,onHide:null,reject:null,rejectClassName:null,rejectIcon:null,rejectLabel:null,tagKey:void 0,visible:void 0},css:{classes:Sq}});function pN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Tp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pN(Object(r),!0).forEach(function(n){bq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var SR=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t=Tp(Tp({},t),{visible:t.visible===void 0?!0:t.visible}),t.visible&&Ps.emit("confirm-dialog",t);var r=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ps.emit("confirm-dialog",Tp(Tp(Tp({},t),i),{visible:!0}))},n=function(){Ps.emit("confirm-dialog",{visible:!1})};return{show:r,hide:n}},F9=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Ev.getProps(e,n),i=S.useState(o.visible),a=dN(i,2),s=a[0],l=a[1],c=S.useState(!1),d=dN(c,2),p=d[0],m=d[1],y=S.useRef(null),b=S.useRef(!1),v=S.useRef(null),C=function(){var Se=o.group;return y.current&&(Se=y.current.group),Object.assign({},o,y.current,{group:Se})},A=function(Se){return C()[Se]},R=function(Se){for(var re=arguments.length,we=new Array(re>1?re-1:0),Ae=1;Ae<re;Ae++)we[Ae-1]=arguments[Ae];return pe.getPropValue(A(Se),we)},x=A("acceptLabel")||va("accept"),k=A("rejectLabel")||va("reject"),D={props:o,state:{visible:s}},F=Ev.setMetaData(D),$=F.ptm,U=F.cx,G=F.isUnstyled;vo(Ev.css.styles,G,{name:"confirmdialog"});var Y=function(){b.current||(b.current=!0,R("accept"),ne("accept"))},Q=function(){b.current||(b.current=!0,R("reject"),ne("reject"))},me=function(){var Se=C();Se.group===o.group&&(l(!0),b.current=!1,v.current=document.activeElement)},ne=function(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"cancel";s&&(typeof Se!="string"&&(Se="cancel"),l(!1),R("onHide",Se),le.focus(v.current),v.current=null)},Ee=function(Se){if(Se.tagKey===o.tagKey){var re=s!==Se.visible,we=A("target")!==Se.target;we&&!o.target?(ne(),y.current=Se,m(!0)):re&&(y.current=Se,Se.visible?me():ne())}};S.useEffect(function(){o.visible?me():ne()},[o.visible]),S.useEffect(function(){return!o.target&&!o.message&&Ps.on("confirm-dialog",Ee),function(){Ps.off("confirm-dialog",Ee)}},[o.target]),hn(function(){p&&me()},[p]),Ci(function(){Ps.off("confirm-dialog",Ee)}),S.useImperativeHandle(t,function(){return{props:o,confirm:Ee}});var ce=function(){var Se=A("defaultFocus"),re=dt("p-confirm-dialog-accept",A("acceptClassName")),we=dt("p-confirm-dialog-reject",{"p-button-text":!A("rejectClassName")},A("rejectClassName")),Ae=r({label:k,autoFocus:Se==="reject",icon:A("rejectIcon"),className:dt(A("rejectClassName"),U("rejectButton",{getPropValue:A})),onClick:Q,pt:$("rejectButton"),unstyled:o.unstyled,__parentMetadata:{parent:D}},$("rejectButton")),Pe=r({label:x,autoFocus:Se===void 0||Se==="accept",icon:A("acceptIcon"),className:dt(A("acceptClassName"),U("acceptButton")),onClick:Y,pt:$("acceptButton"),unstyled:o.unstyled,__parentMetadata:{parent:D}},$("acceptButton")),Oe=S.createElement(S.Fragment,null,S.createElement(Pi,Ae),S.createElement(Pi,Pe));if(A("footer")){var Ke={accept:Y,reject:Q,acceptClassName:re,rejectClassName:we,acceptLabel:x,rejectLabel:k,element:Oe,props:C()};return pe.getJSXElement(A("footer"),Ke)}return Oe},_e=function(){var Se=C(),re=pe.getJSXElement(A("message"),Se),we=r({className:U("icon")},$("icon")),Ae=nn.getJSXIcon(A("icon"),Tp({},we),{props:Se}),Pe=ce(),Oe=r({className:U("message")},$("message")),Ke=r({visible:s,className:dt(A("className"),U("root")),footer:Pe,onHide:ne,breakpoints:A("breakpoints"),pt:Se.pt,unstyled:o.unstyled,appendTo:A("appendTo"),__parentMetadata:{parent:D}},Ev.getOtherProps(Se));return S.createElement(H0,Jw({},Ke,{content:e==null?void 0:e.content}),Ae,S.createElement("span",Oe,re))},Ne=_e();return S.createElement(vu,{element:Ne,appendTo:A("appendTo")})}));F9.displayName="ConfirmDialog";var Qa=(e=>(e.Audio="Audio",e.Video="Video",e.Background="Background",e))(Qa||{});const j9=se.createContext({selectedSettingsTab:"Audio",setSelectedSettingsTab:()=>{}}),V9=()=>se.useContext(j9),B9=se.createContext({configDialogVisible:{visible:!1,tab:Qa.Audio},toggleConfigDialog:()=>{},acceptParticipationDialogVisible:!1,toggleAcceptParticipationDialog:()=>{},notify:()=>{},alert:()=>{},confirm:()=>{}}),bs=()=>{const e=se.useContext(B9);if(!e)throw new Error("useDialogContext must be used within DialogsContext");return e},Eq=({children:e})=>{const[t,r]=se.useState({visible:!1,tab:Qa.Audio}),[n,o]=se.useState(!1),i=se.useRef(null),[a,s]=se.useState({header:"",message:"",visible:!1}),l=se.useCallback(({tab:v})=>{const C=v??Qa.Audio;r(A=>({visible:!A.visible,tab:C}))},[]),c=se.useCallback(()=>{o(v=>!v)},[]),d=se.useCallback(({header:v,message:C,severity:A,clear:R})=>{var x,k;R&&((x=i.current)==null||x.clear()),(k=i.current)==null||k.show({summary:v,detail:C,severity:A})},[]),p=se.useCallback(({header:v="Alerta",message:C})=>{s({header:v,message:C,visible:!0})},[]),m=se.useCallback(({header:v="Por favor, confirme",message:C,onAccept:A})=>{SR({header:v,message:C,accept:A,acceptLabel:v,rejectLabel:"Cerrar"})},[]),y=()=>{s(v=>({...v,visible:!1}))},b=se.useMemo(()=>({acceptParticipationDialogVisible:n,toggleAcceptParticipationDialog:c,configDialogVisible:t,toggleConfigDialog:l,notify:d,alert:p,confirm:m}),[n,c,t,l,d,p,m]);return ae.jsxs(B9.Provider,{value:b,children:[e,ae.jsx(H0,{header:a.header,visible:a.visible,onHide:y,footer:ae.jsx(Pi,{label:"Aceptar",onClick:y}),children:a.message}),Op.createPortal(ae.jsx(P9,{ref:i}),document.body)]})},H9=se.forwardRef(({children:e},t)=>{const[r]=se.useState(()=>Ec.createClient()),{credentials:n}=Tf(),{notify:o}=bs(),[i,a]=se.useState(!1),s=se.useCallback(async()=>{var b;(b=r.getSessionInfo())!=null&&b.isInMeeting||await r.init("en-US","Global",{webEndpoint:(window==null?void 0:window.webEndpoint)??"zoom.us",stayAwake:!0,patchJsMedia:!0,leaveOnPageUnload:!0,enforceMultipleVideos:!0,enforceVirtualBackground:!0});const{sessionName:d,signature:p,userName:m,sessionPasscode:y}=n;await r.join(d,p,m,y),a(!0)},[n,r]),l=se.useCallback(async({finishForAll:d})=>{await r.leave(d),a(!1)},[r]);se.useEffect(()=>{const d=async()=>{var p,m,y;await((p=r.getMediaStream())==null?void 0:p.stopVideo().catch(console.error)),await((m=r.getMediaStream())==null?void 0:m.stopAudio().catch(console.error)),(y=r.getSessionInfo())!=null&&y.isInMeeting&&await r.leave().catch(console.error),await Ec.destroyClient().catch(console.error)};return()=>{d()}},[r]),se.useImperativeHandle(t,se.useCallback(()=>({sessionStarted:i,joinSession:s,leaveSession:l}),[i,s,l])),se.useEffect(()=>{const d=p=>{if(p.state==="Closed"){a(!1);const m={"ended by host":"The session has been ended by the host.","kicked by host":"You have been kicked out of the session by the host.","expeled by host":"You have been expelled from the session by the host."},y=p.reason?m[p.reason]:void 0;y&&o({header:"Session Ended",message:y,severity:"info"})}else console.log("connection-change: ",p)};return r.on("connection-change",d),()=>{r.off("connection-change",d)}},[r,o]);const c=se.useMemo(()=>({zmClient:r,signature:n.signature,sessionStarted:i,isSessionStarted:()=>{var d;return!!((d=r.getSessionInfo())!=null&&d.isInMeeting)},joinSession:s,leaveSession:l}),[r,n.signature,i,s,l]);return ae.jsx(y9.Provider,{value:c,children:e})});H9.displayName="SessionProvider";var Cq=function(){},U9=typeof window<"u",wq=U9?se.useLayoutEffect:se.useEffect,ER=function(e){se.useEffect(e,[])},$9=function(e){ER(function(){e()})},Iq=function(e){var t=se.useRef(e);t.current=e,ER(function(){return function(){return t.current()}})},W9={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function Aq(){var e=se.useState(null),t=e[0],r=e[1],n=se.useState(W9),o=n[0],i=n[1],a=se.useMemo(function(){return new window.ResizeObserver(function(s){if(s[0]){var l=s[0].contentRect,c=l.x,d=l.y,p=l.width,m=l.height,y=l.top,b=l.left,v=l.bottom,C=l.right;i({x:c,y:d,width:p,height:m,top:y,left:b,bottom:v,right:C})}})},[]);return wq(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[r,o]}const Rq=U9&&typeof window.ResizeObserver<"u"?Aq:(function(){return[Cq,W9]});function z9(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=z9(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Tq(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=z9(e))&&(n&&(n+=" "),n+=t);return n}const Oq=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},_q=(e,t)=>({classGroupId:e,validator:t}),K9=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),l0="-",fN=[],Pq="arbitrary..",xq=e=>{const t=Nq(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Dq(a);const s=a.split(l0),l=s[0]===""&&s.length>1?1:0;return G9(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=n[a],c=r[a];return l?c?Oq(c,l):l:c||fN}return r[a]||fN}}},G9=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=G9(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const s=t===0?e.join(l0):e.slice(t).join(l0),l=a.length;for(let c=0;c<l;c++){const d=a[c];if(d.validator(s))return d.classGroupId}},Dq=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Pq+n:void 0})(),Nq=e=>{const{theme:t,classGroups:r}=e;return Mq(r,t)},Mq=(e,t)=>{const r=K9();for(const n in e){const o=e[n];CR(o,r,n,t)}return r},CR=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];kq(a,t,r,n)}},kq=(e,t,r,n)=>{if(typeof e=="string"){Lq(e,t,r);return}if(typeof e=="function"){Fq(e,t,r,n);return}jq(e,t,r,n)},Lq=(e,t,r)=>{const n=e===""?t:q9(t,e);n.classGroupId=r},Fq=(e,t,r,n)=>{if(Vq(e)){CR(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(_q(r,e))},jq=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];CR(l,q9(t,s),r,n)}},q9=(e,t)=>{let r=e;const n=t.split(l0),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=K9(),r.nextPart.set(a,s)),r=s}return r},Vq=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Bq=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},Yw="!",hN=":",Hq=[],mN=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Uq=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,s=0,l=0,c;const d=o.length;for(let v=0;v<d;v++){const C=o[v];if(a===0&&s===0){if(C===hN){i.push(o.slice(l,v)),l=v+1;continue}if(C==="/"){c=v;continue}}C==="["?a++:C==="]"?a--:C==="("?s++:C===")"&&s--}const p=i.length===0?o:o.slice(l);let m=p,y=!1;p.endsWith(Yw)?(m=p.slice(0,-1),y=!0):p.startsWith(Yw)&&(m=p.slice(1),y=!0);const b=c&&c>l?c-l:void 0;return mN(i,y,m,b)};if(t){const o=t+hN,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):mN(Hq,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},$q=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const a=r[i],s=a[0]==="[",l=t.has(a);s||l?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},Wq=e=>({cache:Bq(e.cacheSize),parseClassName:Uq(e),sortModifiers:$q(e),...xq(e)}),zq=/\s+/,Kq=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(zq);let l="";for(let c=s.length-1;c>=0;c-=1){const d=s[c],{isExternal:p,modifiers:m,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:v}=r(d);if(p){l=d+(l.length>0?" "+l:l);continue}let C=!!v,A=n(C?b.substring(0,v):b);if(!A){if(!C){l=d+(l.length>0?" "+l:l);continue}if(A=n(b),!A){l=d+(l.length>0?" "+l:l);continue}C=!1}const R=m.length===0?"":m.length===1?m[0]:i(m).join(":"),x=y?R+Yw:R,k=x+A;if(a.indexOf(k)>-1)continue;a.push(k);const D=o(A,C);for(let F=0;F<D.length;++F){const $=D[F];a.push(x+$)}l=d+(l.length>0?" "+l:l)}return l},Gq=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=J9(r))&&(o&&(o+=" "),o+=n);return o},J9=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=J9(e[n]))&&(r&&(r+=" "),r+=t);return r},qq=(e,...t)=>{let r,n,o,i;const a=l=>{const c=t.reduce((d,p)=>p(d),e());return r=Wq(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{const c=n(l);if(c)return c;const d=Kq(l,r);return o(l,d),d};return i=a,(...l)=>i(Gq(...l))},Jq=[],Ai=e=>{const t=r=>r[e]||Jq;return t.isThemeGetter=!0,t},Y9=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Q9=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Yq=/^\d+\/\d+$/,Qq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xq=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eJ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tJ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vp=e=>Yq.test(e),mn=e=>!!e&&!Number.isNaN(Number(e)),ju=e=>!!e&&Number.isInteger(Number(e)),X1=e=>e.endsWith("%")&&mn(e.slice(0,-1)),Gl=e=>Qq.test(e),rJ=()=>!0,nJ=e=>Xq.test(e)&&!Zq.test(e),X9=()=>!1,oJ=e=>eJ.test(e),iJ=e=>tJ.test(e),aJ=e=>!Tr(e)&&!Or(e),sJ=e=>Df(e,tL,X9),Tr=e=>Y9.test(e),$c=e=>Df(e,rL,nJ),Z1=e=>Df(e,pJ,mn),gN=e=>Df(e,Z9,X9),lJ=e=>Df(e,eL,iJ),Cv=e=>Df(e,nL,oJ),Or=e=>Q9.test(e),ch=e=>Nf(e,rL),uJ=e=>Nf(e,fJ),vN=e=>Nf(e,Z9),cJ=e=>Nf(e,tL),dJ=e=>Nf(e,eL),wv=e=>Nf(e,nL,!0),Df=(e,t,r)=>{const n=Y9.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Nf=(e,t,r=!1)=>{const n=Q9.exec(e);return n?n[1]?t(n[1]):r:!1},Z9=e=>e==="position"||e==="percentage",eL=e=>e==="image"||e==="url",tL=e=>e==="length"||e==="size"||e==="bg-size",rL=e=>e==="length",pJ=e=>e==="number",fJ=e=>e==="family-name",nL=e=>e==="shadow",hJ=()=>{const e=Ai("color"),t=Ai("font"),r=Ai("text"),n=Ai("font-weight"),o=Ai("tracking"),i=Ai("leading"),a=Ai("breakpoint"),s=Ai("container"),l=Ai("spacing"),c=Ai("radius"),d=Ai("shadow"),p=Ai("inset-shadow"),m=Ai("text-shadow"),y=Ai("drop-shadow"),b=Ai("blur"),v=Ai("perspective"),C=Ai("aspect"),A=Ai("ease"),R=Ai("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...k(),Or,Tr],F=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],U=()=>[Or,Tr,l],G=()=>[vp,"full","auto",...U()],Y=()=>[ju,"none","subgrid",Or,Tr],Q=()=>["auto",{span:["full",ju,Or,Tr]},ju,Or,Tr],me=()=>[ju,"auto",Or,Tr],ne=()=>["auto","min","max","fr",Or,Tr],Ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],_e=()=>["auto",...U()],Ne=()=>[vp,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],oe=()=>[e,Or,Tr],Se=()=>[...k(),vN,gN,{position:[Or,Tr]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],we=()=>["auto","cover","contain",cJ,sJ,{size:[Or,Tr]}],Ae=()=>[X1,ch,$c],Pe=()=>["","none","full",c,Or,Tr],Oe=()=>["",mn,ch,$c],Ke=()=>["solid","dashed","dotted","double"],St=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],st=()=>[mn,X1,vN,gN],yt=()=>["","none",b,Or,Tr],$e=()=>["none",mn,Or,Tr],ot=()=>["none",mn,Or,Tr],it=()=>[mn,Or,Tr],Ie=()=>[vp,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gl],breakpoint:[Gl],color:[rJ],container:[Gl],"drop-shadow":[Gl],ease:["in","out","in-out"],font:[aJ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gl],shadow:[Gl],spacing:["px",mn],text:[Gl],"text-shadow":[Gl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vp,Tr,Or,C]}],container:["container"],columns:[{columns:[mn,Tr,Or,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[ju,"auto",Or,Tr]}],basis:[{basis:[vp,"full","auto",s,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[mn,vp,"auto","initial","none",Tr]}],grow:[{grow:["",mn,Or,Tr]}],shrink:[{shrink:["",mn,Or,Tr]}],order:[{order:[ju,"first","last","none",Or,Tr]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...Ee(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...Ee()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ee()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:_e()}],mx:[{mx:_e()}],my:[{my:_e()}],ms:[{ms:_e()}],me:[{me:_e()}],mt:[{mt:_e()}],mr:[{mr:_e()}],mb:[{mb:_e()}],ml:[{ml:_e()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:Ne()}],w:[{w:[s,"screen",...Ne()]}],"min-w":[{"min-w":[s,"screen","none",...Ne()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...Ne()]}],h:[{h:["screen","lh",...Ne()]}],"min-h":[{"min-h":["screen","lh","none",...Ne()]}],"max-h":[{"max-h":["screen","lh",...Ne()]}],"font-size":[{text:["base",r,ch,$c]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Or,Z1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",X1,Tr]}],"font-family":[{font:[uJ,Tr,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Or,Tr]}],"line-clamp":[{"line-clamp":[mn,"none",Or,Z1]}],leading:[{leading:[i,...U()]}],"list-image":[{"list-image":["none",Or,Tr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Or,Tr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:oe()}],"text-color":[{text:oe()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[mn,"from-font","auto",Or,$c]}],"text-decoration-color":[{decoration:oe()}],"underline-offset":[{"underline-offset":[mn,"auto",Or,Tr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Or,Tr]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Or,Tr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:we()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ju,Or,Tr],radial:["",Or,Tr],conic:[ju,Or,Tr]},dJ,lJ]}],"bg-color":[{bg:oe()}],"gradient-from-pos":[{from:Ae()}],"gradient-via-pos":[{via:Ae()}],"gradient-to-pos":[{to:Ae()}],"gradient-from":[{from:oe()}],"gradient-via":[{via:oe()}],"gradient-to":[{to:oe()}],rounded:[{rounded:Pe()}],"rounded-s":[{"rounded-s":Pe()}],"rounded-e":[{"rounded-e":Pe()}],"rounded-t":[{"rounded-t":Pe()}],"rounded-r":[{"rounded-r":Pe()}],"rounded-b":[{"rounded-b":Pe()}],"rounded-l":[{"rounded-l":Pe()}],"rounded-ss":[{"rounded-ss":Pe()}],"rounded-se":[{"rounded-se":Pe()}],"rounded-ee":[{"rounded-ee":Pe()}],"rounded-es":[{"rounded-es":Pe()}],"rounded-tl":[{"rounded-tl":Pe()}],"rounded-tr":[{"rounded-tr":Pe()}],"rounded-br":[{"rounded-br":Pe()}],"rounded-bl":[{"rounded-bl":Pe()}],"border-w":[{border:Oe()}],"border-w-x":[{"border-x":Oe()}],"border-w-y":[{"border-y":Oe()}],"border-w-s":[{"border-s":Oe()}],"border-w-e":[{"border-e":Oe()}],"border-w-t":[{"border-t":Oe()}],"border-w-r":[{"border-r":Oe()}],"border-w-b":[{"border-b":Oe()}],"border-w-l":[{"border-l":Oe()}],"divide-x":[{"divide-x":Oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ke(),"hidden","none"]}],"divide-style":[{divide:[...Ke(),"hidden","none"]}],"border-color":[{border:oe()}],"border-color-x":[{"border-x":oe()}],"border-color-y":[{"border-y":oe()}],"border-color-s":[{"border-s":oe()}],"border-color-e":[{"border-e":oe()}],"border-color-t":[{"border-t":oe()}],"border-color-r":[{"border-r":oe()}],"border-color-b":[{"border-b":oe()}],"border-color-l":[{"border-l":oe()}],"divide-color":[{divide:oe()}],"outline-style":[{outline:[...Ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[mn,Or,Tr]}],"outline-w":[{outline:["",mn,ch,$c]}],"outline-color":[{outline:oe()}],shadow:[{shadow:["","none",d,wv,Cv]}],"shadow-color":[{shadow:oe()}],"inset-shadow":[{"inset-shadow":["none",p,wv,Cv]}],"inset-shadow-color":[{"inset-shadow":oe()}],"ring-w":[{ring:Oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:oe()}],"ring-offset-w":[{"ring-offset":[mn,$c]}],"ring-offset-color":[{"ring-offset":oe()}],"inset-ring-w":[{"inset-ring":Oe()}],"inset-ring-color":[{"inset-ring":oe()}],"text-shadow":[{"text-shadow":["none",m,wv,Cv]}],"text-shadow-color":[{"text-shadow":oe()}],opacity:[{opacity:[mn,Or,Tr]}],"mix-blend":[{"mix-blend":[...St(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":St()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[mn]}],"mask-image-linear-from-pos":[{"mask-linear-from":st()}],"mask-image-linear-to-pos":[{"mask-linear-to":st()}],"mask-image-linear-from-color":[{"mask-linear-from":oe()}],"mask-image-linear-to-color":[{"mask-linear-to":oe()}],"mask-image-t-from-pos":[{"mask-t-from":st()}],"mask-image-t-to-pos":[{"mask-t-to":st()}],"mask-image-t-from-color":[{"mask-t-from":oe()}],"mask-image-t-to-color":[{"mask-t-to":oe()}],"mask-image-r-from-pos":[{"mask-r-from":st()}],"mask-image-r-to-pos":[{"mask-r-to":st()}],"mask-image-r-from-color":[{"mask-r-from":oe()}],"mask-image-r-to-color":[{"mask-r-to":oe()}],"mask-image-b-from-pos":[{"mask-b-from":st()}],"mask-image-b-to-pos":[{"mask-b-to":st()}],"mask-image-b-from-color":[{"mask-b-from":oe()}],"mask-image-b-to-color":[{"mask-b-to":oe()}],"mask-image-l-from-pos":[{"mask-l-from":st()}],"mask-image-l-to-pos":[{"mask-l-to":st()}],"mask-image-l-from-color":[{"mask-l-from":oe()}],"mask-image-l-to-color":[{"mask-l-to":oe()}],"mask-image-x-from-pos":[{"mask-x-from":st()}],"mask-image-x-to-pos":[{"mask-x-to":st()}],"mask-image-x-from-color":[{"mask-x-from":oe()}],"mask-image-x-to-color":[{"mask-x-to":oe()}],"mask-image-y-from-pos":[{"mask-y-from":st()}],"mask-image-y-to-pos":[{"mask-y-to":st()}],"mask-image-y-from-color":[{"mask-y-from":oe()}],"mask-image-y-to-color":[{"mask-y-to":oe()}],"mask-image-radial":[{"mask-radial":[Or,Tr]}],"mask-image-radial-from-pos":[{"mask-radial-from":st()}],"mask-image-radial-to-pos":[{"mask-radial-to":st()}],"mask-image-radial-from-color":[{"mask-radial-from":oe()}],"mask-image-radial-to-color":[{"mask-radial-to":oe()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[mn]}],"mask-image-conic-from-pos":[{"mask-conic-from":st()}],"mask-image-conic-to-pos":[{"mask-conic-to":st()}],"mask-image-conic-from-color":[{"mask-conic-from":oe()}],"mask-image-conic-to-color":[{"mask-conic-to":oe()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:we()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Or,Tr]}],filter:[{filter:["","none",Or,Tr]}],blur:[{blur:yt()}],brightness:[{brightness:[mn,Or,Tr]}],contrast:[{contrast:[mn,Or,Tr]}],"drop-shadow":[{"drop-shadow":["","none",y,wv,Cv]}],"drop-shadow-color":[{"drop-shadow":oe()}],grayscale:[{grayscale:["",mn,Or,Tr]}],"hue-rotate":[{"hue-rotate":[mn,Or,Tr]}],invert:[{invert:["",mn,Or,Tr]}],saturate:[{saturate:[mn,Or,Tr]}],sepia:[{sepia:["",mn,Or,Tr]}],"backdrop-filter":[{"backdrop-filter":["","none",Or,Tr]}],"backdrop-blur":[{"backdrop-blur":yt()}],"backdrop-brightness":[{"backdrop-brightness":[mn,Or,Tr]}],"backdrop-contrast":[{"backdrop-contrast":[mn,Or,Tr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",mn,Or,Tr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[mn,Or,Tr]}],"backdrop-invert":[{"backdrop-invert":["",mn,Or,Tr]}],"backdrop-opacity":[{"backdrop-opacity":[mn,Or,Tr]}],"backdrop-saturate":[{"backdrop-saturate":[mn,Or,Tr]}],"backdrop-sepia":[{"backdrop-sepia":["",mn,Or,Tr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Or,Tr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[mn,"initial",Or,Tr]}],ease:[{ease:["linear","initial",A,Or,Tr]}],delay:[{delay:[mn,Or,Tr]}],animate:[{animate:["none",R,Or,Tr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Or,Tr]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:$e()}],"rotate-x":[{"rotate-x":$e()}],"rotate-y":[{"rotate-y":$e()}],"rotate-z":[{"rotate-z":$e()}],scale:[{scale:ot()}],"scale-x":[{"scale-x":ot()}],"scale-y":[{"scale-y":ot()}],"scale-z":[{"scale-z":ot()}],"scale-3d":["scale-3d"],skew:[{skew:it()}],"skew-x":[{"skew-x":it()}],"skew-y":[{"skew-y":it()}],transform:[{transform:[Or,Tr,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],accent:[{accent:oe()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:oe()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Or,Tr]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Or,Tr]}],fill:[{fill:["none",...oe()]}],"stroke-w":[{stroke:[mn,ch,$c,Z1]}],stroke:[{stroke:["none",...oe()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mJ=qq(hJ);var lr={},yN;function gJ(){if(yN)return lr;yN=1;var e={};e.userAgent=!1;var t={},r="11.1.0",n="jsrsasign(all) 11.1.0 (2024-02-01) (c) 2010-2023 Kenji Urushima | kjur.github.io/jsrsasign/license";/*! CryptoJS v3.1.2 core-fix.js
921
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dN(e,t){return fq(e)||hq(e,t)||mq(e,t)||gq()}function Pm(e){"@babel/helpers - typeof";return Pm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pm(e)}function vq(e,t){if(Pm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yq(e){var t=vq(e,"string");return Pm(t)=="symbol"?t:t+""}function bq(e,t,r){return(t=yq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Sq={root:"p-confirm-dialog",message:"p-confirm-dialog-message",icon:"p-confirm-dialog-icon",acceptButton:"p-confirm-dialog-accept",rejectButton:function(t){var r=t.getPropValue;return dt("p-confirm-dialog-reject",{"p-button-text":!r("rejectClassName")})}},Ev=Ar.extend({defaultProps:{__TYPE:"ConfirmDialog",accept:null,acceptClassName:null,acceptIcon:null,acceptLabel:null,appendTo:null,breakpoints:null,children:void 0,className:null,content:null,defaultFocus:"accept",footer:null,icon:null,message:null,onHide:null,reject:null,rejectClassName:null,rejectIcon:null,rejectLabel:null,tagKey:void 0,visible:void 0},css:{classes:Sq}});function pN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Tp(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pN(Object(r),!0).forEach(function(n){bq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var SR=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t=Tp(Tp({},t),{visible:t.visible===void 0?!0:t.visible}),t.visible&&Ps.emit("confirm-dialog",t);var r=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ps.emit("confirm-dialog",Tp(Tp(Tp({},t),i),{visible:!0}))},n=function(){Ps.emit("confirm-dialog",{visible:!1})};return{show:r,hide:n}},F9=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Ev.getProps(e,n),i=S.useState(o.visible),a=dN(i,2),s=a[0],l=a[1],c=S.useState(!1),d=dN(c,2),p=d[0],m=d[1],y=S.useRef(null),b=S.useRef(!1),v=S.useRef(null),C=function(){var Se=o.group;return y.current&&(Se=y.current.group),Object.assign({},o,y.current,{group:Se})},A=function(Se){return C()[Se]},R=function(Se){for(var re=arguments.length,we=new Array(re>1?re-1:0),Ae=1;Ae<re;Ae++)we[Ae-1]=arguments[Ae];return pe.getPropValue(A(Se),we)},x=A("acceptLabel")||va("accept"),k=A("rejectLabel")||va("reject"),D={props:o,state:{visible:s}},F=Ev.setMetaData(D),$=F.ptm,U=F.cx,G=F.isUnstyled;vo(Ev.css.styles,G,{name:"confirmdialog"});var Y=function(){b.current||(b.current=!0,R("accept"),ne("accept"))},Q=function(){b.current||(b.current=!0,R("reject"),ne("reject"))},me=function(){var Se=C();Se.group===o.group&&(l(!0),b.current=!1,v.current=document.activeElement)},ne=function(){var Se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"cancel";s&&(typeof Se!="string"&&(Se="cancel"),l(!1),R("onHide",Se),le.focus(v.current),v.current=null)},Ee=function(Se){if(Se.tagKey===o.tagKey){var re=s!==Se.visible,we=A("target")!==Se.target;we&&!o.target?(ne(),y.current=Se,m(!0)):re&&(y.current=Se,Se.visible?me():ne())}};S.useEffect(function(){o.visible?me():ne()},[o.visible]),S.useEffect(function(){return!o.target&&!o.message&&Ps.on("confirm-dialog",Ee),function(){Ps.off("confirm-dialog",Ee)}},[o.target]),hn(function(){p&&me()},[p]),Ci(function(){Ps.off("confirm-dialog",Ee)}),S.useImperativeHandle(t,function(){return{props:o,confirm:Ee}});var ce=function(){var Se=A("defaultFocus"),re=dt("p-confirm-dialog-accept",A("acceptClassName")),we=dt("p-confirm-dialog-reject",{"p-button-text":!A("rejectClassName")},A("rejectClassName")),Ae=r({label:k,autoFocus:Se==="reject",icon:A("rejectIcon"),className:dt(A("rejectClassName"),U("rejectButton",{getPropValue:A})),onClick:Q,pt:$("rejectButton"),unstyled:o.unstyled,__parentMetadata:{parent:D}},$("rejectButton")),Pe=r({label:x,autoFocus:Se===void 0||Se==="accept",icon:A("acceptIcon"),className:dt(A("acceptClassName"),U("acceptButton")),onClick:Y,pt:$("acceptButton"),unstyled:o.unstyled,__parentMetadata:{parent:D}},$("acceptButton")),Oe=S.createElement(S.Fragment,null,S.createElement(Pi,Ae),S.createElement(Pi,Pe));if(A("footer")){var Ke={accept:Y,reject:Q,acceptClassName:re,rejectClassName:we,acceptLabel:x,rejectLabel:k,element:Oe,props:C()};return pe.getJSXElement(A("footer"),Ke)}return Oe},_e=function(){var Se=C(),re=pe.getJSXElement(A("message"),Se),we=r({className:U("icon")},$("icon")),Ae=nn.getJSXIcon(A("icon"),Tp({},we),{props:Se}),Pe=ce(),Oe=r({className:U("message")},$("message")),Ke=r({visible:s,className:dt(A("className"),U("root")),footer:Pe,onHide:ne,breakpoints:A("breakpoints"),pt:Se.pt,unstyled:o.unstyled,appendTo:A("appendTo"),__parentMetadata:{parent:D}},Ev.getOtherProps(Se));return S.createElement(H0,Jw({},Ke,{content:e==null?void 0:e.content}),Ae,S.createElement("span",Oe,re))},Ne=_e();return S.createElement(vu,{element:Ne,appendTo:A("appendTo")})}));F9.displayName="ConfirmDialog";var Qa=(e=>(e.Audio="Audio",e.Video="Video",e.Background="Background",e))(Qa||{});const j9=ae.createContext({selectedSettingsTab:"Audio",setSelectedSettingsTab:()=>{}}),V9=()=>ae.useContext(j9),B9=ae.createContext({configDialogVisible:{visible:!1,tab:Qa.Audio},toggleConfigDialog:()=>{},acceptParticipationDialogVisible:!1,toggleAcceptParticipationDialog:()=>{},notify:()=>{},alert:()=>{},confirm:()=>{}}),bs=()=>{const e=ae.useContext(B9);if(!e)throw new Error("useDialogContext must be used within DialogsContext");return e},Eq=({children:e})=>{const[t,r]=ae.useState({visible:!1,tab:Qa.Audio}),[n,o]=ae.useState(!1),i=ae.useRef(null),[a,s]=ae.useState({header:"",message:"",visible:!1}),l=ae.useCallback(({tab:v})=>{const C=v??Qa.Audio;r(A=>({visible:!A.visible,tab:C}))},[]),c=ae.useCallback(()=>{o(v=>!v)},[]),d=ae.useCallback(({header:v,message:C,severity:A,clear:R})=>{var x,k;R&&((x=i.current)==null||x.clear()),(k=i.current)==null||k.show({summary:v,detail:C,severity:A})},[]),p=ae.useCallback(({header:v="Alerta",message:C})=>{s({header:v,message:C,visible:!0})},[]),m=ae.useCallback(({header:v="Por favor, confirme",message:C,onAccept:A})=>{SR({header:v,message:C,accept:A,acceptLabel:v,rejectLabel:"Cerrar"})},[]),y=()=>{s(v=>({...v,visible:!1}))},b=ae.useMemo(()=>({acceptParticipationDialogVisible:n,toggleAcceptParticipationDialog:c,configDialogVisible:t,toggleConfigDialog:l,notify:d,alert:p,confirm:m}),[n,c,t,l,d,p,m]);return se.jsxs(B9.Provider,{value:b,children:[e,se.jsx(H0,{header:a.header,visible:a.visible,onHide:y,footer:se.jsx(Pi,{label:"Aceptar",onClick:y}),children:a.message}),Op.createPortal(se.jsx(P9,{ref:i}),document.body)]})},H9=ae.forwardRef(({children:e},t)=>{const[r]=ae.useState(()=>Ec.createClient()),{credentials:n}=Tf(),{notify:o}=bs(),[i,a]=ae.useState(!1),s=ae.useCallback(async()=>{var v;(v=r.getSessionInfo())!=null&&v.isInMeeting||await r.init("en-US","Global",{webEndpoint:(window==null?void 0:window.webEndpoint)??"zoom.us",stayAwake:!0,patchJsMedia:!0,leaveOnPageUnload:!0,enforceMultipleVideos:!0,enforceVirtualBackground:!0});const{sessionName:p,signature:m,userName:y,sessionPasscode:b}=n;await r.join(p,m,y,b),a(!0)},[n,r]),l=ae.useCallback(async({finishForAll:p})=>{await r.leave(p),a(!1)},[r]),c=ae.useCallback(async()=>{var m,y;const p=r.getMediaStream();(m=r.getSessionInfo())!=null&&m.isInMeeting&&r.getSessionInfo().isInMeeting&&(r.getCurrentUserInfo()&&r.getCurrentUserInfo().audio!==""&&(p==null||p.stopAudio()),(y=r.getCurrentUserInfo())!=null&&y.bVideoOn&&(p==null||p.stopVideo()),p==null||p.stopShareScreen()),await Ec.destroyClient().catch(console.error),console.log("SessionProvider cleanup completed")},[r]);ae.useEffect(()=>()=>{c()},[c,r]),ae.useImperativeHandle(t,ae.useCallback(()=>({cleanup:c,sessionStarted:i,joinSession:s,leaveSession:l}),[i,s,l,c])),ae.useEffect(()=>{const p=m=>{if(m.state==="Closed"){a(!1);const y={"ended by host":"The session has been ended by the host.","kicked by host":"You have been kicked out of the session by the host.","expeled by host":"You have been expelled from the session by the host."},b=m.reason?y[m.reason]:void 0;b&&o({header:"Session Ended",message:b,severity:"info"})}else console.log("connection-change: ",m)};return r.on("connection-change",p),()=>{r.off("connection-change",p)}},[r,o]);const d=ae.useMemo(()=>({zmClient:r,signature:n.signature,sessionStarted:i,isSessionStarted:()=>{var p;return!!((p=r.getSessionInfo())!=null&&p.isInMeeting)},joinSession:s,leaveSession:l}),[r,n.signature,i,s,l]);return se.jsx(y9.Provider,{value:d,children:e})});H9.displayName="SessionProvider";var Cq=function(){},U9=typeof window<"u",wq=U9?ae.useLayoutEffect:ae.useEffect,ER=function(e){ae.useEffect(e,[])},$9=function(e){ER(function(){e()})},Iq=function(e){var t=ae.useRef(e);t.current=e,ER(function(){return function(){return t.current()}})},W9={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function Aq(){var e=ae.useState(null),t=e[0],r=e[1],n=ae.useState(W9),o=n[0],i=n[1],a=ae.useMemo(function(){return new window.ResizeObserver(function(s){if(s[0]){var l=s[0].contentRect,c=l.x,d=l.y,p=l.width,m=l.height,y=l.top,b=l.left,v=l.bottom,C=l.right;i({x:c,y:d,width:p,height:m,top:y,left:b,bottom:v,right:C})}})},[]);return wq(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[r,o]}const Rq=U9&&typeof window.ResizeObserver<"u"?Aq:(function(){return[Cq,W9]});function z9(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=z9(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Tq(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=z9(e))&&(n&&(n+=" "),n+=t);return n}const Oq=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},_q=(e,t)=>({classGroupId:e,validator:t}),K9=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),l0="-",fN=[],Pq="arbitrary..",xq=e=>{const t=Nq(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:a=>{if(a.startsWith("[")&&a.endsWith("]"))return Dq(a);const s=a.split(l0),l=s[0]===""&&s.length>1?1:0;return G9(s,l,t)},getConflictingClassGroupIds:(a,s)=>{if(s){const l=n[a],c=r[a];return l?c?Oq(c,l):l:c||fN}return r[a]||fN}}},G9=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const o=e[t],i=r.nextPart.get(o);if(i){const c=G9(e,t+1,i);if(c)return c}const a=r.validators;if(a===null)return;const s=t===0?e.join(l0):e.slice(t).join(l0),l=a.length;for(let c=0;c<l;c++){const d=a[c];if(d.validator(s))return d.classGroupId}},Dq=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Pq+n:void 0})(),Nq=e=>{const{theme:t,classGroups:r}=e;return Mq(r,t)},Mq=(e,t)=>{const r=K9();for(const n in e){const o=e[n];CR(o,r,n,t)}return r},CR=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const a=e[i];kq(a,t,r,n)}},kq=(e,t,r,n)=>{if(typeof e=="string"){Lq(e,t,r);return}if(typeof e=="function"){Fq(e,t,r,n);return}jq(e,t,r,n)},Lq=(e,t,r)=>{const n=e===""?t:q9(t,e);n.classGroupId=r},Fq=(e,t,r,n)=>{if(Vq(e)){CR(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(_q(r,e))},jq=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let a=0;a<i;a++){const[s,l]=o[a];CR(l,q9(t,s),r,n)}},q9=(e,t)=>{let r=e;const n=t.split(l0),o=n.length;for(let i=0;i<o;i++){const a=n[i];let s=r.nextPart.get(a);s||(s=K9(),r.nextPart.set(a,s)),r=s}return r},Vq=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,Bq=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(i,a)=>{r[i]=a,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(i){let a=r[i];if(a!==void 0)return a;if((a=n[i])!==void 0)return o(i,a),a},set(i,a){i in r?r[i]=a:o(i,a)}}},Yw="!",hN=":",Hq=[],mN=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),Uq=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const i=[];let a=0,s=0,l=0,c;const d=o.length;for(let v=0;v<d;v++){const C=o[v];if(a===0&&s===0){if(C===hN){i.push(o.slice(l,v)),l=v+1;continue}if(C==="/"){c=v;continue}}C==="["?a++:C==="]"?a--:C==="("?s++:C===")"&&s--}const p=i.length===0?o:o.slice(l);let m=p,y=!1;p.endsWith(Yw)?(m=p.slice(0,-1),y=!0):p.startsWith(Yw)&&(m=p.slice(1),y=!0);const b=c&&c>l?c-l:void 0;return mN(i,y,m,b)};if(t){const o=t+hN,i=n;n=a=>a.startsWith(o)?i(a.slice(o.length)):mN(Hq,!1,a,void 0,!0)}if(r){const o=n;n=i=>r({className:i,parseClassName:o})}return n},$q=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let i=0;i<r.length;i++){const a=r[i],s=a[0]==="[",l=t.has(a);s||l?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(a)):o.push(a)}return o.length>0&&(o.sort(),n.push(...o)),n}},Wq=e=>({cache:Bq(e.cacheSize),parseClassName:Uq(e),sortModifiers:$q(e),...xq(e)}),zq=/\s+/,Kq=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(zq);let l="";for(let c=s.length-1;c>=0;c-=1){const d=s[c],{isExternal:p,modifiers:m,hasImportantModifier:y,baseClassName:b,maybePostfixModifierPosition:v}=r(d);if(p){l=d+(l.length>0?" "+l:l);continue}let C=!!v,A=n(C?b.substring(0,v):b);if(!A){if(!C){l=d+(l.length>0?" "+l:l);continue}if(A=n(b),!A){l=d+(l.length>0?" "+l:l);continue}C=!1}const R=m.length===0?"":m.length===1?m[0]:i(m).join(":"),x=y?R+Yw:R,k=x+A;if(a.indexOf(k)>-1)continue;a.push(k);const D=o(A,C);for(let F=0;F<D.length;++F){const $=D[F];a.push(x+$)}l=d+(l.length>0?" "+l:l)}return l},Gq=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=J9(r))&&(o&&(o+=" "),o+=n);return o},J9=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=J9(e[n]))&&(r&&(r+=" "),r+=t);return r},qq=(e,...t)=>{let r,n,o,i;const a=l=>{const c=t.reduce((d,p)=>p(d),e());return r=Wq(c),n=r.cache.get,o=r.cache.set,i=s,s(l)},s=l=>{const c=n(l);if(c)return c;const d=Kq(l,r);return o(l,d),d};return i=a,(...l)=>i(Gq(...l))},Jq=[],Ai=e=>{const t=r=>r[e]||Jq;return t.isThemeGetter=!0,t},Y9=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Q9=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Yq=/^\d+\/\d+$/,Qq=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xq=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Zq=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,eJ=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tJ=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vp=e=>Yq.test(e),mn=e=>!!e&&!Number.isNaN(Number(e)),ju=e=>!!e&&Number.isInteger(Number(e)),X1=e=>e.endsWith("%")&&mn(e.slice(0,-1)),Gl=e=>Qq.test(e),rJ=()=>!0,nJ=e=>Xq.test(e)&&!Zq.test(e),X9=()=>!1,oJ=e=>eJ.test(e),iJ=e=>tJ.test(e),aJ=e=>!Tr(e)&&!Or(e),sJ=e=>Df(e,tL,X9),Tr=e=>Y9.test(e),$c=e=>Df(e,rL,nJ),Z1=e=>Df(e,pJ,mn),gN=e=>Df(e,Z9,X9),lJ=e=>Df(e,eL,iJ),Cv=e=>Df(e,nL,oJ),Or=e=>Q9.test(e),ch=e=>Nf(e,rL),uJ=e=>Nf(e,fJ),vN=e=>Nf(e,Z9),cJ=e=>Nf(e,tL),dJ=e=>Nf(e,eL),wv=e=>Nf(e,nL,!0),Df=(e,t,r)=>{const n=Y9.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Nf=(e,t,r=!1)=>{const n=Q9.exec(e);return n?n[1]?t(n[1]):r:!1},Z9=e=>e==="position"||e==="percentage",eL=e=>e==="image"||e==="url",tL=e=>e==="length"||e==="size"||e==="bg-size",rL=e=>e==="length",pJ=e=>e==="number",fJ=e=>e==="family-name",nL=e=>e==="shadow",hJ=()=>{const e=Ai("color"),t=Ai("font"),r=Ai("text"),n=Ai("font-weight"),o=Ai("tracking"),i=Ai("leading"),a=Ai("breakpoint"),s=Ai("container"),l=Ai("spacing"),c=Ai("radius"),d=Ai("shadow"),p=Ai("inset-shadow"),m=Ai("text-shadow"),y=Ai("drop-shadow"),b=Ai("blur"),v=Ai("perspective"),C=Ai("aspect"),A=Ai("ease"),R=Ai("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],D=()=>[...k(),Or,Tr],F=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto","contain","none"],U=()=>[Or,Tr,l],G=()=>[vp,"full","auto",...U()],Y=()=>[ju,"none","subgrid",Or,Tr],Q=()=>["auto",{span:["full",ju,Or,Tr]},ju,Or,Tr],me=()=>[ju,"auto",Or,Tr],ne=()=>["auto","min","max","fr",Or,Tr],Ee=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],_e=()=>["auto",...U()],Ne=()=>[vp,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...U()],oe=()=>[e,Or,Tr],Se=()=>[...k(),vN,gN,{position:[Or,Tr]}],re=()=>["no-repeat",{repeat:["","x","y","space","round"]}],we=()=>["auto","cover","contain",cJ,sJ,{size:[Or,Tr]}],Ae=()=>[X1,ch,$c],Pe=()=>["","none","full",c,Or,Tr],Oe=()=>["",mn,ch,$c],Ke=()=>["solid","dashed","dotted","double"],St=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],st=()=>[mn,X1,vN,gN],yt=()=>["","none",b,Or,Tr],$e=()=>["none",mn,Or,Tr],ot=()=>["none",mn,Or,Tr],it=()=>[mn,Or,Tr],Ie=()=>[vp,"full",...U()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Gl],breakpoint:[Gl],color:[rJ],container:[Gl],"drop-shadow":[Gl],ease:["in","out","in-out"],font:[aJ],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Gl],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Gl],shadow:[Gl],spacing:["px",mn],text:[Gl],"text-shadow":[Gl],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vp,Tr,Or,C]}],container:["container"],columns:[{columns:[mn,Tr,Or,s]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:$()}],"overscroll-x":[{"overscroll-x":$()}],"overscroll-y":[{"overscroll-y":$()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:G()}],"inset-x":[{"inset-x":G()}],"inset-y":[{"inset-y":G()}],start:[{start:G()}],end:[{end:G()}],top:[{top:G()}],right:[{right:G()}],bottom:[{bottom:G()}],left:[{left:G()}],visibility:["visible","invisible","collapse"],z:[{z:[ju,"auto",Or,Tr]}],basis:[{basis:[vp,"full","auto",s,...U()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[mn,vp,"auto","initial","none",Tr]}],grow:[{grow:["",mn,Or,Tr]}],shrink:[{shrink:["",mn,Or,Tr]}],order:[{order:[ju,"first","last","none",Or,Tr]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:Q()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:Q()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:U()}],"gap-x":[{"gap-x":U()}],"gap-y":[{"gap-y":U()}],"justify-content":[{justify:[...Ee(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...Ee()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":Ee()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],p:[{p:U()}],px:[{px:U()}],py:[{py:U()}],ps:[{ps:U()}],pe:[{pe:U()}],pt:[{pt:U()}],pr:[{pr:U()}],pb:[{pb:U()}],pl:[{pl:U()}],m:[{m:_e()}],mx:[{mx:_e()}],my:[{my:_e()}],ms:[{ms:_e()}],me:[{me:_e()}],mt:[{mt:_e()}],mr:[{mr:_e()}],mb:[{mb:_e()}],ml:[{ml:_e()}],"space-x":[{"space-x":U()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":U()}],"space-y-reverse":["space-y-reverse"],size:[{size:Ne()}],w:[{w:[s,"screen",...Ne()]}],"min-w":[{"min-w":[s,"screen","none",...Ne()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...Ne()]}],h:[{h:["screen","lh",...Ne()]}],"min-h":[{"min-h":["screen","lh","none",...Ne()]}],"max-h":[{"max-h":["screen","lh",...Ne()]}],"font-size":[{text:["base",r,ch,$c]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Or,Z1]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",X1,Tr]}],"font-family":[{font:[uJ,Tr,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Or,Tr]}],"line-clamp":[{"line-clamp":[mn,"none",Or,Z1]}],leading:[{leading:[i,...U()]}],"list-image":[{"list-image":["none",Or,Tr]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Or,Tr]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:oe()}],"text-color":[{text:oe()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...Ke(),"wavy"]}],"text-decoration-thickness":[{decoration:[mn,"from-font","auto",Or,$c]}],"text-decoration-color":[{decoration:oe()}],"underline-offset":[{"underline-offset":[mn,"auto",Or,Tr]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:U()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Or,Tr]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Or,Tr]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:re()}],"bg-size":[{bg:we()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ju,Or,Tr],radial:["",Or,Tr],conic:[ju,Or,Tr]},dJ,lJ]}],"bg-color":[{bg:oe()}],"gradient-from-pos":[{from:Ae()}],"gradient-via-pos":[{via:Ae()}],"gradient-to-pos":[{to:Ae()}],"gradient-from":[{from:oe()}],"gradient-via":[{via:oe()}],"gradient-to":[{to:oe()}],rounded:[{rounded:Pe()}],"rounded-s":[{"rounded-s":Pe()}],"rounded-e":[{"rounded-e":Pe()}],"rounded-t":[{"rounded-t":Pe()}],"rounded-r":[{"rounded-r":Pe()}],"rounded-b":[{"rounded-b":Pe()}],"rounded-l":[{"rounded-l":Pe()}],"rounded-ss":[{"rounded-ss":Pe()}],"rounded-se":[{"rounded-se":Pe()}],"rounded-ee":[{"rounded-ee":Pe()}],"rounded-es":[{"rounded-es":Pe()}],"rounded-tl":[{"rounded-tl":Pe()}],"rounded-tr":[{"rounded-tr":Pe()}],"rounded-br":[{"rounded-br":Pe()}],"rounded-bl":[{"rounded-bl":Pe()}],"border-w":[{border:Oe()}],"border-w-x":[{"border-x":Oe()}],"border-w-y":[{"border-y":Oe()}],"border-w-s":[{"border-s":Oe()}],"border-w-e":[{"border-e":Oe()}],"border-w-t":[{"border-t":Oe()}],"border-w-r":[{"border-r":Oe()}],"border-w-b":[{"border-b":Oe()}],"border-w-l":[{"border-l":Oe()}],"divide-x":[{"divide-x":Oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":Oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...Ke(),"hidden","none"]}],"divide-style":[{divide:[...Ke(),"hidden","none"]}],"border-color":[{border:oe()}],"border-color-x":[{"border-x":oe()}],"border-color-y":[{"border-y":oe()}],"border-color-s":[{"border-s":oe()}],"border-color-e":[{"border-e":oe()}],"border-color-t":[{"border-t":oe()}],"border-color-r":[{"border-r":oe()}],"border-color-b":[{"border-b":oe()}],"border-color-l":[{"border-l":oe()}],"divide-color":[{divide:oe()}],"outline-style":[{outline:[...Ke(),"none","hidden"]}],"outline-offset":[{"outline-offset":[mn,Or,Tr]}],"outline-w":[{outline:["",mn,ch,$c]}],"outline-color":[{outline:oe()}],shadow:[{shadow:["","none",d,wv,Cv]}],"shadow-color":[{shadow:oe()}],"inset-shadow":[{"inset-shadow":["none",p,wv,Cv]}],"inset-shadow-color":[{"inset-shadow":oe()}],"ring-w":[{ring:Oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:oe()}],"ring-offset-w":[{"ring-offset":[mn,$c]}],"ring-offset-color":[{"ring-offset":oe()}],"inset-ring-w":[{"inset-ring":Oe()}],"inset-ring-color":[{"inset-ring":oe()}],"text-shadow":[{"text-shadow":["none",m,wv,Cv]}],"text-shadow-color":[{"text-shadow":oe()}],opacity:[{opacity:[mn,Or,Tr]}],"mix-blend":[{"mix-blend":[...St(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":St()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[mn]}],"mask-image-linear-from-pos":[{"mask-linear-from":st()}],"mask-image-linear-to-pos":[{"mask-linear-to":st()}],"mask-image-linear-from-color":[{"mask-linear-from":oe()}],"mask-image-linear-to-color":[{"mask-linear-to":oe()}],"mask-image-t-from-pos":[{"mask-t-from":st()}],"mask-image-t-to-pos":[{"mask-t-to":st()}],"mask-image-t-from-color":[{"mask-t-from":oe()}],"mask-image-t-to-color":[{"mask-t-to":oe()}],"mask-image-r-from-pos":[{"mask-r-from":st()}],"mask-image-r-to-pos":[{"mask-r-to":st()}],"mask-image-r-from-color":[{"mask-r-from":oe()}],"mask-image-r-to-color":[{"mask-r-to":oe()}],"mask-image-b-from-pos":[{"mask-b-from":st()}],"mask-image-b-to-pos":[{"mask-b-to":st()}],"mask-image-b-from-color":[{"mask-b-from":oe()}],"mask-image-b-to-color":[{"mask-b-to":oe()}],"mask-image-l-from-pos":[{"mask-l-from":st()}],"mask-image-l-to-pos":[{"mask-l-to":st()}],"mask-image-l-from-color":[{"mask-l-from":oe()}],"mask-image-l-to-color":[{"mask-l-to":oe()}],"mask-image-x-from-pos":[{"mask-x-from":st()}],"mask-image-x-to-pos":[{"mask-x-to":st()}],"mask-image-x-from-color":[{"mask-x-from":oe()}],"mask-image-x-to-color":[{"mask-x-to":oe()}],"mask-image-y-from-pos":[{"mask-y-from":st()}],"mask-image-y-to-pos":[{"mask-y-to":st()}],"mask-image-y-from-color":[{"mask-y-from":oe()}],"mask-image-y-to-color":[{"mask-y-to":oe()}],"mask-image-radial":[{"mask-radial":[Or,Tr]}],"mask-image-radial-from-pos":[{"mask-radial-from":st()}],"mask-image-radial-to-pos":[{"mask-radial-to":st()}],"mask-image-radial-from-color":[{"mask-radial-from":oe()}],"mask-image-radial-to-color":[{"mask-radial-to":oe()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[mn]}],"mask-image-conic-from-pos":[{"mask-conic-from":st()}],"mask-image-conic-to-pos":[{"mask-conic-to":st()}],"mask-image-conic-from-color":[{"mask-conic-from":oe()}],"mask-image-conic-to-color":[{"mask-conic-to":oe()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:re()}],"mask-size":[{mask:we()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Or,Tr]}],filter:[{filter:["","none",Or,Tr]}],blur:[{blur:yt()}],brightness:[{brightness:[mn,Or,Tr]}],contrast:[{contrast:[mn,Or,Tr]}],"drop-shadow":[{"drop-shadow":["","none",y,wv,Cv]}],"drop-shadow-color":[{"drop-shadow":oe()}],grayscale:[{grayscale:["",mn,Or,Tr]}],"hue-rotate":[{"hue-rotate":[mn,Or,Tr]}],invert:[{invert:["",mn,Or,Tr]}],saturate:[{saturate:[mn,Or,Tr]}],sepia:[{sepia:["",mn,Or,Tr]}],"backdrop-filter":[{"backdrop-filter":["","none",Or,Tr]}],"backdrop-blur":[{"backdrop-blur":yt()}],"backdrop-brightness":[{"backdrop-brightness":[mn,Or,Tr]}],"backdrop-contrast":[{"backdrop-contrast":[mn,Or,Tr]}],"backdrop-grayscale":[{"backdrop-grayscale":["",mn,Or,Tr]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[mn,Or,Tr]}],"backdrop-invert":[{"backdrop-invert":["",mn,Or,Tr]}],"backdrop-opacity":[{"backdrop-opacity":[mn,Or,Tr]}],"backdrop-saturate":[{"backdrop-saturate":[mn,Or,Tr]}],"backdrop-sepia":[{"backdrop-sepia":["",mn,Or,Tr]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":U()}],"border-spacing-x":[{"border-spacing-x":U()}],"border-spacing-y":[{"border-spacing-y":U()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Or,Tr]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[mn,"initial",Or,Tr]}],ease:[{ease:["linear","initial",A,Or,Tr]}],delay:[{delay:[mn,Or,Tr]}],animate:[{animate:["none",R,Or,Tr]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,Or,Tr]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:$e()}],"rotate-x":[{"rotate-x":$e()}],"rotate-y":[{"rotate-y":$e()}],"rotate-z":[{"rotate-z":$e()}],scale:[{scale:ot()}],"scale-x":[{"scale-x":ot()}],"scale-y":[{"scale-y":ot()}],"scale-z":[{"scale-z":ot()}],"scale-3d":["scale-3d"],skew:[{skew:it()}],"skew-x":[{"skew-x":it()}],"skew-y":[{"skew-y":it()}],transform:[{transform:[Or,Tr,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Ie()}],"translate-x":[{"translate-x":Ie()}],"translate-y":[{"translate-y":Ie()}],"translate-z":[{"translate-z":Ie()}],"translate-none":["translate-none"],accent:[{accent:oe()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:oe()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Or,Tr]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":U()}],"scroll-mx":[{"scroll-mx":U()}],"scroll-my":[{"scroll-my":U()}],"scroll-ms":[{"scroll-ms":U()}],"scroll-me":[{"scroll-me":U()}],"scroll-mt":[{"scroll-mt":U()}],"scroll-mr":[{"scroll-mr":U()}],"scroll-mb":[{"scroll-mb":U()}],"scroll-ml":[{"scroll-ml":U()}],"scroll-p":[{"scroll-p":U()}],"scroll-px":[{"scroll-px":U()}],"scroll-py":[{"scroll-py":U()}],"scroll-ps":[{"scroll-ps":U()}],"scroll-pe":[{"scroll-pe":U()}],"scroll-pt":[{"scroll-pt":U()}],"scroll-pr":[{"scroll-pr":U()}],"scroll-pb":[{"scroll-pb":U()}],"scroll-pl":[{"scroll-pl":U()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Or,Tr]}],fill:[{fill:["none",...oe()]}],"stroke-w":[{stroke:[mn,ch,$c,Z1]}],stroke:[{stroke:["none",...oe()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},mJ=qq(hJ);var lr={},yN;function gJ(){if(yN)return lr;yN=1;var e={};e.userAgent=!1;var t={},r="11.1.0",n="jsrsasign(all) 11.1.0 (2024-02-01) (c) 2010-2023 Kenji Urushima | kjur.github.io/jsrsasign/license";/*! CryptoJS v3.1.2 core-fix.js
922
922
  * code.google.com/p/crypto-js
923
923
  * (c) 2009-2013 by Jeff Mott. All rights reserved.
924
924
  * code.google.com/p/crypto-js/wiki/License
@@ -1018,7 +1018,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1018
1018
  `}else if(nt=="subjectAltName"){var Zi=z(this.getExtSubjectAltName());ue+=Zi+`
1019
1019
  `}else if(nt=="cRLDistributionPoints"){var Vi=this.getExtCRLDistributionPoints();ue+=te(Vi)}else if(nt=="authorityInfoAccess"){var Bf=this.getExtAuthorityInfoAccess();ue+=K(Bf)}else nt=="certificatePolicies"&&(ue+=J(this.getExtCertificatePolicies()))}}return ue+="signature algorithm: "+this.getSignatureAlgorithmName()+`
1020
1020
  `,ue+="signature: "+this.getSignatureValueHex().substr(0,16)+`...
1021
- `,ue},typeof u=="string"&&(u.indexOf("-----BEGIN")!=-1?this.readCertPEM(u):I.lang.String.isHex(u)&&this.readCertHex(u))}Yr.EXT_PARSER={},Yr.registExtParser=function(u,f){Yr.EXT_PARSER[u]=f},Yr.hex2dn=function(u,f){f===void 0&&(f=0);var h=new Yr;er.getTLV(u,f);var g=h.getX500Name(u);return g.str},Yr.hex2rdn=function(u,f){if(f===void 0&&(f=0),u.substr(f,2)!=="31")throw new Error("malformed RDN");for(var h=new Array,g=er.getChildIdx(u,f),w=0;w<g.length;w++)h.push(Yr.hex2attrTypeValue(u,g[w]));return h=h.map(function(E){return E.replace("+","\\+")}),h.join("+")},Yr.hex2attrTypeValue=function(u,f){var h=er,g=h.getV;if(f===void 0&&(f=0),u.substr(f,2)!=="30")throw new Error("malformed attribute type and value");var w=h.getChildIdx(u,f);w.length!==2||u.substr(w[0],2);var E=g(u,w[0]),_=I.asn1.ASN1Util.oidHexToInt(E),O=I.asn1.x509.OID.oid2atype(_),j=g(u,w[1]),N=ca(j);return O+"="+N},Yr.getPublicKeyFromCertHex=function(u){var f=new Yr;return f.readCertHex(u),f.getPublicKey()},Yr.getPublicKeyFromCertPEM=function(u){var f=new Yr;return f.readCertPEM(u),f.getPublicKey()},Yr.getPublicKeyInfoPropOfCertPEM=function(u){var f=er,h=f.getVbyList,g={},w,E;return g.algparam=null,w=new Yr,w.readCertPEM(u),E=w.getPublicKeyHex(),g.keyhex=h(E,0,[1],"03").substr(2),g.algoid=h(E,0,[0,0],"06"),g.algoid==="2a8648ce3d0201"&&(g.algparam=h(E,0,[0,1],"06")),g},Yr.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"];var LF=function(u){var f=I,h=f.lang.String.isHex,g=er,w=g.getV,E=g.getTLV,_=g.getVbyList,O=g.getTLVbyList,j=g.getTLVbyListEx,N=g.getIdxbyList,H=g.getIdxbyListEx,V=g.getChildIdx,T=new Yr;this.hex=null,this.posSigAlg=null,this.posRevCert=null,this.parsed=null,this._setPos=function(){var M=N(this.hex,0,[0,0]),P=this.hex.substr(M,2);if(P=="02")this.posSigAlg=1;else if(P=="30")this.posSigAlg=0;else throw new Error("malformed 1st item of TBSCertList: "+P);var L=N(this.hex,0,[0,this.posSigAlg+3]),B=this.hex.substr(L,2);if(B=="17"||B=="18"){var W,de;W=N(this.hex,0,[0,this.posSigAlg+4]),this.posRevCert=null,W!=-1&&(de=this.hex.substr(W,2),de=="30"&&(this.posRevCert=this.posSigAlg+4))}else if(B=="30")this.posRevCert=this.posSigAlg+3;else if(B=="a0")this.posRevCert=null;else throw new Error("malformed nextUpdate or revCert tag: "+B)},this.getVersion=function(){return this.posSigAlg==0?null:parseInt(_(this.hex,0,[0,0],"02"),16)+1},this.getSignatureAlgorithmField=function(){var M=O(this.hex,0,[0,this.posSigAlg],"30");return T.getAlgorithmIdentifierName(M)},this.getIssuer=function(){return T.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return O(this.hex,0,[0,this.posSigAlg+1],"30")},this.getThisUpdate=function(){var M=_(this.hex,0,[0,this.posSigAlg+2]);return result=ca(M)},this.getNextUpdate=function(){var M=N(this.hex,0,[0,this.posSigAlg+3]),P=this.hex.substr(M,2);return P!="17"&&P!="18"?null:ca(w(this.hex,M))},this.getRevCertArray=function(){if(this.posRevCert==null)return null;for(var M=[],P=N(this.hex,0,[0,this.posRevCert]),L=V(this.hex,P),B=0;B<L.length;B++){var W=E(this.hex,L[B]);M.push(this.getRevCert(W))}return M},this.getRevCert=function(M){var P={},L=V(M,0);return P.sn={hex:_(M,0,[0],"02")},P.date=ca(_(M,0,[1])),L.length==3&&(P.ext=T.getExtParamArray(O(M,0,[2]))),P},this.findRevCert=function(M){var P=new Yr(M),L=P.getSerialNumberHex();return this.findRevCertBySN(L)},this.findRevCertBySN=function(M){if(this.parsed==null&&this.getParam(),this.parsed.revcert==null)return null;for(var P=this.parsed.revcert,L=0;L<P.length;L++)if(M==P[L].sn.hex)return P[L];return null},this.getSignatureValueHex=function(){return _(this.hex,0,[2],"03",!0)},this.verifySignature=function(M){var P=this.getSignatureAlgorithmField(),L=this.getSignatureValueHex(),B=O(this.hex,0,[0],"30"),W=new I.crypto.Signature({alg:P});return W.init(M),W.updateHex(B),W.verify(L)},this.getParam=function(M){var P={},L=this.getVersion();L!=null&&(P.version=L),P.sigalg=this.getSignatureAlgorithmField(),P.issuer=this.getIssuer(),P.thisupdate=this.getThisUpdate();var B=this.getNextUpdate();B!=null&&(P.nextupdate=B);var W=this.getRevCertArray();W!=null&&(P.revcert=W);var de=H(this.hex,0,[0,"[0]"]);if(de!=-1){var Me=j(this.hex,0,[0,"[0]",0]);P.ext=T.getExtParamArray(Me)}return P.sighex=this.getSignatureValueHex(),this.parsed=P,typeof M=="object"&&(M.tbshex==!0&&(P.tbshex=O(this.hex,0,[0])),M.nodnarray==!0&&delete P.issuer.array),P},typeof u=="string"&&(h(u)?this.hex=u:u.match(/-----BEGIN X509 CRL/)&&(this.hex=je(u)),this._setPos())};return(typeof I>"u"||!I)&&(I={}),(typeof I.jws>"u"||!I.jws)&&(I.jws={}),I.jws.JWS=function(){var u=I,f=u.jws.JWS,h=f.isSafeJSONString;this.parseJWS=function(g,w){if(!(this.parsedJWS!==void 0&&(w||this.parsedJWS.sigvalH!==void 0))){var E=g.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(E==null)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var _=E[1],O=E[2],j=E[3],N=_+"."+O;if(this.parsedJWS={},this.parsedJWS.headB64U=_,this.parsedJWS.payloadB64U=O,this.parsedJWS.sigvalB64U=j,this.parsedJWS.si=N,!w){var H=Xn(j),V=ln(H,16);this.parsedJWS.sigvalH=H,this.parsedJWS.sigvalBI=V}var T=Va(_),M=Va(O);if(this.parsedJWS.headS=T,this.parsedJWS.payloadS=M,!h(T,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+T}}},I.jws.JWS.sign=function(u,f,h,g,w){var E=I,_=E.jws,O=_.JWS,j=O.readSafeJSONString,N=O.isSafeJSONString,H=E.crypto;H.ECDSA;var V=H.Mac,T=H.Signature,M=JSON,P,L,B;if(typeof f!="string"&&typeof f!="object")throw"spHeader must be JSON string or object: "+f;if(typeof f=="object"&&(L=f,P=M.stringify(L)),typeof f=="string"){if(P=f,!N(P))throw"JWS Head is not safe JSON string: "+P;L=j(P)}if(B=h,typeof h=="object"&&(B=M.stringify(h)),(u==""||u==null)&&L.alg!==void 0&&(u=L.alg),u!=""&&u!=null&&L.alg===void 0&&(L.alg=u,P=M.stringify(L)),u!==L.alg)throw"alg and sHeader.alg doesn't match: "+u+"!="+L.alg;var W=null;if(O.jwsalg2sigalg[u]===void 0)throw"unsupported alg name: "+u;W=O.jwsalg2sigalg[u];var de=Su(P),Me=Su(B),De=de+"."+Me,Le="";if(W.substr(0,4)=="Hmac"){if(g===void 0)throw"mac key shall be specified for HS* alg";var z=new V({alg:W,prov:"cryptojs",pass:g});z.updateString(De),Le=z.doFinal()}else if(W.indexOf("withECDSA")!=-1){var J=new T({alg:W});J.init(g,w),J.updateString(De);var te=J.sign();Le=I.crypto.ECDSA.asn1SigToConcatSig(te)}else if(W!="none"){var J=new T({alg:W});J.init(g,w),J.updateString(De),Le=J.sign()}var K=ti(Le);return De+"."+K},I.jws.JWS.verify=function(u,f,h){var g=I,w=g.jws,E=w.JWS,_=E.readSafeJSONString,O=g.crypto,j=O.ECDSA,N=O.Mac,H=O.Signature,V;if(typeof kr!==void 0&&(V=kr),!cS(u))return!1;var T=u.split(".");if(T.length!==3)return!1;var M=T[0],P=T[1],L=M+"."+P,B=Xn(T[2]),W=_(Va(T[0])),de=null,Me=null;if(W.alg===void 0)throw"algorithm not specified in header";if(de=W.alg,Me=de.substr(0,2),h!=null&&Object.prototype.toString.call(h)==="[object Array]"&&h.length>0){var De=":"+h.join(":")+":";if(De.indexOf(":"+de+":")==-1)throw"algorithm '"+de+"' not accepted in the list"}if(de!="none"&&f===null)throw"key shall be specified to verify.";if(typeof f=="string"&&f.indexOf("-----BEGIN ")!=-1&&(f=Sn.getKey(f)),(Me=="RS"||Me=="PS")&&!(f instanceof V))throw"key shall be a RSAKey obj for RS* and PS* algs";if(Me=="ES"&&!(f instanceof j))throw"key shall be a ECDSA obj for ES* algs";var Le=null;if(E.jwsalg2sigalg[W.alg]===void 0)throw"unsupported alg name: "+de;if(Le=E.jwsalg2sigalg[de],Le=="none")throw"not supported";if(Le.substr(0,4)=="Hmac"){var z=null;if(f===void 0)throw"hexadecimal key shall be specified for HMAC";var J=new N({alg:Le,pass:f});return J.updateString(L),z=J.doFinal(),B==z}else if(Le.indexOf("withECDSA")!=-1){var te=null;try{te=j.concatSigToASN1Sig(B)}catch{return!1}var K=new H({alg:Le});return K.init(f),K.updateString(L),K.verify(te)}else{var K=new H({alg:Le});return K.init(f),K.updateString(L),K.verify(B)}},I.jws.JWS.parse=function(u){var f=u.split("."),h={},g,w,E;if(f.length!=2&&f.length!=3)throw"malformed sJWS: wrong number of '.' splitted elements";return g=f[0],w=f[1],f.length==3&&(E=f[2]),h.headerObj=I.jws.JWS.readSafeJSONString(Va(g)),h.payloadObj=I.jws.JWS.readSafeJSONString(Va(w)),h.headerPP=JSON.stringify(h.headerObj,null," "),h.payloadObj==null?h.payloadPP=Va(w):h.payloadPP=JSON.stringify(h.payloadObj,null," "),E!==void 0&&(h.sigHex=Xn(E)),h},I.jws.JWS.verifyJWT=function(u,f,h){var g=I,w=g.jws,E=w.JWS,_=E.readSafeJSONString,O=E.inArray,j=E.includedArray;if(!cS(u))return!1;var N=u.split(".");if(N.length!=3)return!1;var H=N[0],V=N[1];Xn(N[2]);var T=_(Va(H)),M=_(Va(V));if(T.alg===void 0)return!1;if(h.alg===void 0)throw"acceptField.alg shall be specified";if(!O(T.alg,h.alg)||M.iss!==void 0&&typeof h.iss=="object"&&!O(M.iss,h.iss)||M.sub!==void 0&&typeof h.sub=="object"&&!O(M.sub,h.sub))return!1;if(M.aud!==void 0&&typeof h.aud=="object"){if(typeof M.aud=="string"){if(!O(M.aud,h.aud))return!1}else if(typeof M.aud=="object"&&!j(M.aud,h.aud))return!1}var P=w.IntDate.getNow();return h.verifyAt!==void 0&&typeof h.verifyAt=="number"&&(P=h.verifyAt),(h.gracePeriod===void 0||typeof h.gracePeriod!="number")&&(h.gracePeriod=0),!(M.exp!==void 0&&typeof M.exp=="number"&&M.exp+h.gracePeriod<P||M.nbf!==void 0&&typeof M.nbf=="number"&&P<M.nbf-h.gracePeriod||M.iat!==void 0&&typeof M.iat=="number"&&P<M.iat-h.gracePeriod||M.jti!==void 0&&h.jti!==void 0&&M.jti!==h.jti||!E.verify(u,f,h.alg))},I.jws.JWS.includedArray=function(u,f){var h=I.jws.JWS.inArray;if(u===null||typeof u!="object"||typeof u.length!="number")return!1;for(var g=0;g<u.length;g++)if(!h(u[g],f))return!1;return!0},I.jws.JWS.inArray=function(u,f){if(f===null||typeof f!="object"||typeof f.length!="number")return!1;for(var h=0;h<f.length;h++)if(f[h]==u)return!0;return!1},I.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",ES512:"SHA512withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},I.jws.JWS.isSafeJSONString=function(u,f,h){var g=null;try{return g=Kd(u),typeof g!="object"||g.constructor===Array?0:(f&&(f[h]=g),1)}catch{return 0}},I.jws.JWS.readSafeJSONString=function(u){var f=null;try{return f=Kd(u),typeof f!="object"||f.constructor===Array?null:f}catch{return null}},I.jws.JWS.getEncodedSignatureValueFromJWS=function(u){var f=u.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(f==null)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return f[1]},I.jws.JWS.getJWKthumbprint=function(u){if(u.kty!=="RSA"&&u.kty!=="EC"&&u.kty!=="oct")throw"unsupported algorithm for JWK Thumprint";var f="{";if(u.kty==="RSA"){if(typeof u.n!="string"||typeof u.e!="string")throw"wrong n and e value for RSA key";f+='"e":"'+u.e+'",',f+='"kty":"'+u.kty+'",',f+='"n":"'+u.n+'"}'}else if(u.kty==="EC"){if(typeof u.crv!="string"||typeof u.x!="string"||typeof u.y!="string")throw"wrong crv, x and y value for EC key";f+='"crv":"'+u.crv+'",',f+='"kty":"'+u.kty+'",',f+='"x":"'+u.x+'",',f+='"y":"'+u.y+'"}'}else if(u.kty==="oct"){if(typeof u.k!="string")throw"wrong k value for oct(symmetric) key";f+='"kty":"'+u.kty+'",',f+='"k":"'+u.k+'"}'}var h=Es(f),g=I.crypto.Util.hashHex(h,"sha256"),w=ti(g);return w},I.jws.IntDate={},I.jws.IntDate.get=function(u){var f=I.jws.IntDate,h=f.getNow,g=f.getZulu;if(u=="now")return h();if(u=="now + 1hour")return h()+3600;if(u=="now + 1day")return h()+3600*24;if(u=="now + 1month")return h()+3600*24*30;if(u=="now + 1year")return h()+3600*24*365;if(u.match(/Z$/))return g(u);if(u.match(/^[0-9]+$/))return parseInt(u);throw"unsupported format: "+u},I.jws.IntDate.getZulu=function(u){return hr(u)},I.jws.IntDate.getNow=function(){var u=~~(new Date/1e3);return u},I.jws.IntDate.intDate2UTCString=function(u){var f=new Date(u*1e3);return f.toUTCString()},I.jws.IntDate.intDate2Zulu=function(u){var f=new Date(u*1e3),h=("0000"+f.getUTCFullYear()).slice(-4),g=("00"+(f.getUTCMonth()+1)).slice(-2),w=("00"+f.getUTCDate()).slice(-2),E=("00"+f.getUTCHours()).slice(-2),_=("00"+f.getUTCMinutes()).slice(-2),O=("00"+f.getUTCSeconds()).slice(-2);return h+g+w+E+_+O+"Z"},(typeof I>"u"||!I)&&(I={}),(typeof I.jws>"u"||!I.jws)&&(I.jws={}),I.jws.JWSJS=function(){var u=I,f=u.jws,h=f.JWS,g=h.readSafeJSONString;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void 0,this.aSignature=[]},this.initWithJWS=function(w){this.init();var E=w.split(".");if(E.length!=3)throw"malformed input JWS";this.aHeader.push(E[0]),this.sPayload=E[1],this.aSignature.push(E[2])},this.addSignature=function(w,E,_,O){if(this.sPayload===void 0||this.sPayload===null)throw"there's no JSON-JS signature to add.";var j=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{var N=I.jws.JWS.sign(w,E,this.sPayload,_,O),H=N.split("."),V=H[0],T=H[2];this.aHeader.push(H[0]),this.aSignature.push(H[2])}catch(M){throw this.aHeader.length>j&&this.aHeader.pop(),this.aSignature.length>j&&this.aSignature.pop(),"addSignature failed: "+M}},this.verifyAll=function(w){if(this.aHeader.length!==w.length||this.aSignature.length!==w.length)return!1;for(var E=0;E<w.length;E++){var _=w[E];if(_.length!==2)return!1;var O=this.verifyNth(E,_[0],_[1]);if(O===!1)return!1}return!0},this.verifyNth=function(w,E,_){if(this.aHeader.length<=w||this.aSignature.length<=w)return!1;var O=this.aHeader[w],j=this.aSignature[w],N=O+"."+this.sPayload+"."+j,H=!1;try{H=h.verify(N,E,_)}catch{return!1}return H},this.readJWSJS=function(w){if(typeof w=="string"){var E=g(w);if(E==null)throw"argument is not safe JSON object string";this.aHeader=E.headers,this.sPayload=E.payload,this.aSignature=E.signatures}else try{if(w.headers.length>0)this.aHeader=w.headers;else throw"malformed header";if(typeof w.payload=="string")this.sPayload=w.payload;else throw"malformed signatures";if(w.signatures.length>0)this.aSignature=w.signatures;else throw"malformed signatures"}catch(_){throw"malformed JWS-JS JSON object: "+_}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return this.aHeader.length==0?1:0}},lr.SecureRandom=Rn,lr.rng_seed_time=Li,lr.BigInteger=p,lr.RSAKey=kr,lr.ECDSA=I.crypto.ECDSA,lr.DSA=I.crypto.DSA,lr.Signature=I.crypto.Signature,lr.MessageDigest=I.crypto.MessageDigest,lr.Mac=I.crypto.Mac,lr.KEYUTIL=Sn,lr.ASN1HEX=er,lr.X509=Yr,lr.X509CRL=LF,lr.CryptoJS=o,lr.b64tohex=l,lr.b64toBA=c,lr.ECFieldElementFp=No,lr.ECPointFp=Nn,lr.ECCurveFp=Vs,lr.stoBA=Rg,lr.BAtos=Tg,lr.BAtohex=Gd,lr.stohex=ua,lr.stob64=oS,lr.stob64u=Og,lr.b64utos=iS,lr.b64tob64u=bu,lr.b64utob64=Rc,lr.hex2b64=s,lr.hextob64u=ti,lr.b64utohex=Xn,lr.utf8tob64u=Su,lr.b64utoutf8=Va,lr.utf8tob64=aS,lr.b64toutf8=_g,lr.utf8tohex=qd,lr.hextoutf8=Hn,lr.hextorstr=ca,lr.rstrtohex=Es,lr.hextob64=Ff,lr.hextob64nl=uS,lr.b64nltohex=Pg,lr.hextopem=ye,lr.pemtohex=je,lr.hextoArrayBuffer=Dt,lr.ArrayBuffertohex=$t,lr.zulutomsec=kt,lr.msectozulu=rr,lr.zulutosec=hr,lr.zulutodate=Rr,lr.datetozulu=Lr,lr.uricmptohex=bn,lr.hextouricmp=co,lr.ipv6tohex=wi,lr.hextoipv6=es,lr.hextoip=ts,lr.iptohex=da,lr.ucs2hextoutf8=jf,lr.encodeURIComponentAll=Cu,lr.newline_toUnix=Yd,lr.newline_toDos=DF,lr.hextoposhex=dS,lr.intarystrtohex=NF,lr.strdiffidx=MF,lr.oidtohex=NR,lr.hextooid=xg,lr.strpad=Dg,lr.bitstrtoint=kR,lr.inttobitstr=LR,lr.bitstrtobinstr=FR,lr.binstrtobitstr=kF,lr.isBase64URLDot=cS,lr.namearraytobinstr=Ng,lr.extendClass=bt,lr.foldnl=Jd,lr.b64topem=Ut,lr.pemtob64=gt,lr.timeogen=un,lr.aryval=oo,lr.inttohex=MR,lr.twoscompl=Vf,lr.KJUR=I,lr.crypto=I.crypto,lr.asn1=I.asn1,lr.jws=I.jws,lr.lang=I.lang,lr.VERSION=r,lr.VERSION_FULL=n,lr}gJ();const u0=async()=>{try{const e=await Ec.getDevices(),t=e.filter(o=>o.kind==="audioinput"),r=e.filter(o=>o.kind==="audiooutput"),n=e.filter(o=>o.kind==="videoinput");return{micList:t,speakerList:r,cameraList:n}}catch(e){return console.error("Error fetching devices:",e),{micList:[],speakerList:[],cameraList:[]}}};function Ni(...e){return mJ(Tq(e))}const oL=se.createContext({cameraList:[],activeCameraId:"",selfVideoStarted:!1,localVideoStarted:!1,isBlurred:!1,localVideoRef:se.createRef(),switchBlurred:()=>Promise.resolve(),startVideo:()=>Promise.resolve(),stopVideo:()=>Promise.resolve(),stopLocalVideo:()=>Promise.resolve(),switchCamera:()=>Promise.resolve(),attachUserVideo:()=>Promise.resolve(),detachUserVideo:()=>Promise.resolve(),attachSharedVideo:()=>Promise.resolve(),detachSharedVideo:()=>Promise.resolve(),startScreenSharing:()=>Promise.resolve(),finishScreenSharing:()=>Promise.resolve(),checkIfUserIdRegisteredInCanvas:()=>!1}),$d=()=>{const e=se.useContext(oL);if(!e)throw new Error("useVideoContext must be used within VideoProvider");return e},vJ=()=>{const e=se.useRef(Ec.createLocalVideoTrack()),t=se.useRef(null),[r,n]=se.useState(!1),o=se.useCallback(async l=>{const c=t.current;if(!(!c||r)){try{await e.current.stop()}catch(d){if(!(d instanceof Error&&d.message==="VideoNotStartedError"))throw d}await e.current.switchCamera(l),await e.current.start(c),n(!0)}},[r]),i=se.useCallback(async()=>{!t.current||!r||(n(!1),await e.current.stop())},[r]),a=se.useCallback(async l=>{t.current&&await e.current.switchCamera(l)},[]),s=se.useCallback(async l=>{await e.current.updateVirtualBackground(l?"blur":"")},[]);return se.useEffect(()=>{const l=t.current;if(!l)return;const c=new MutationObserver(()=>{r&&!document.contains(l)&&n(!1)});return c.observe(document.body,{childList:!0,subtree:!0}),()=>c.disconnect()},[r]),se.useMemo(()=>({ref:t,started:r,start:o,stop:i,switch:a,updateVirtualBackground:s}),[r,o,i,a,s])},yJ=e=>e instanceof Error||e!==null&&typeof e=="object"&&(typeof e.type=="string"||typeof e.message=="string")?`${(e==null?void 0:e.type)||(e==null?void 0:e.message)}: ${(e==null?void 0:e.reason)||(e==null?void 0:e.errorCode)||""}`:typeof e=="string"?e:"Se ha producido un error inesperado",bJ=()=>{const{notify:e}=bs();return se.useMemo(()=>{const t=n=>{e({header:"Se ha producido un error inesperado",message:yJ(n),severity:"error"})};return n=>{try{const o=n();return o instanceof Promise?o.catch(i=>{throw t(i),i}):o}catch(o){throw t(o),o}}},[e])},SJ=()=>/iPad/i.test(navigator.userAgent)||/MacIntel/i.test(navigator==null?void 0:navigator.platform)&&(navigator==null?void 0:navigator.maxTouchPoints)>2,EJ=()=>{const{userAgent:e}=navigator;return/iPad|iPhone|iPod/i.test(e)||SJ()},CJ=()=>/android/i.test(navigator.userAgent),wJ=()=>CJ()||EJ(),bN=[{deviceId:qi.User,label:"Front Camera"},{deviceId:qi.Environment,label:"Back Camera"}],IJ=({children:e})=>{const t=bJ(),{zmClient:r,sessionStarted:n,isSessionStarted:o}=ll(),i=vJ(),a=se.useRef(new Map),[s,l]=se.useState([]),[c,d]=se.useState(""),[p,m]=se.useState(!1),[y,b]=se.useState(!1);se.useEffect(()=>{console.log("cameraList: ",s),console.log("activeCameraId: ",c)},[s,c]);const v=se.useMemo(()=>wJ(),[]),C=se.useCallback(async ne=>{if(b(ne),!o()){await t(()=>i.updateVirtualBackground(ne));return}const Ee=r.getMediaStream();!n||!(Ee!=null&&Ee.isSupportVirtualBackground())||(ne?await t(()=>Ee.updateVirtualBackgroundImage("blur")):await t(()=>Ee.updateVirtualBackgroundImage("")))},[o,i,t,n,r]),A=se.useCallback(async()=>{if(!o()){console.log("Starting local video"),await t(()=>i.start(c));return}const ne=r.getMediaStream();if(!ne)return;const Ee=ne.getActiveCamera(),ce=typeof SharedArrayBuffer=="function";console.log("isSharedArrayBufferSupported: ",ce);const _e={hd:!0,fullHd:!1,ptz:!1,originalRatio:!0,virtualBackground:ce?{imageUrl:y?"blur":""}:void 0,...c?{cameraId:c}:{cameraId:Ee}};await t(()=>ne.startVideo(_e)),console.log("Started video in session")},[o,y,r,c,t,i]),R=se.useCallback(async()=>{await t(()=>i.stop()),console.log("Local video stopped")},[i,t]),x=se.useCallback(async()=>{const ne=r.getMediaStream();ne&&(await t(()=>ne.stopVideo()),console.log("Video stopped"))},[r,t]),k=se.useCallback(async ne=>{if(!o()){await t(()=>i.switch(ne)),d(ne);return}const Ee=r.getMediaStream();Ee&&(p&&await t(()=>Ee.switchCamera(ne)),d(ne))},[o,r,p,t,i]),D=se.useCallback(async(ne,Ee)=>{const ce=r.getMediaStream();!ce||!Ee||(a.current.set(ne,Ee),await t(()=>ce.attachVideo(ne,3,Ee)),console.log("Attached video for user: ",ne))},[r,t]),F=se.useCallback(async ne=>{var ce;const Ee=r.getMediaStream();Ee&&((ce=r.getSessionInfo())!=null&&ce.isInMeeting&&await t(()=>Ee.detachVideo(ne)),a.current.delete(ne),console.log("Detached video for user: ",ne))},[r,t]),$=se.useCallback(async ne=>{const Ee=r.getMediaStream(),{selfShareCanvas:ce}=ne;(Ee==null?void 0:Ee.getShareStatus())===Mr.End&&ce&&(Ee==null||Ee.startShareScreen(ce,{}))},[r]),U=se.useCallback(async()=>{const ne=r.getMediaStream();(ne==null?void 0:ne.getShareStatus())===Mr.Sharing&&await t(()=>ne==null?void 0:ne.stopShareScreen())},[r,t]),G=se.useCallback(async({userId:ne,videoPlayer:Ee})=>{const ce=r.getMediaStream();ce&&await t(()=>ce.attachShareView(ne,Ee))},[r,t]),Y=se.useCallback(async ne=>{var ce;const Ee=r.getMediaStream();Ee&&(ce=r.getSessionInfo())!=null&&ce.isInMeeting&&await t(()=>Ee.detachShareView(ne))},[r,t]),Q=se.useCallback(ne=>a.current.has(ne),[]);se.useEffect(()=>{if(!n)return;const ne=oe=>{console.log("active-media-failed: ",oe),oe.type==="video"&&m(!1)},Ee=()=>{v?(l(bN),[qi.User,qi.Environment].includes(c)||d(qi.User)):u0().then(({cameraList:oe})=>{var Se;l(oe),oe.find(re=>re.deviceId===c)||d(((Se=oe[0])==null?void 0:Se.deviceId)||"")}),console.log("Video devices changed")},ce=oe=>{console.log("video-capturing-change: ",oe),oe.state==="Started"?m(!0):oe.state==="Stopped"?m(!1):oe.state==="Failed"&&console.error("Failed to capture video")},_e=oe=>{U(),console.log("Passively stopped share due to: ",oe)},Ne=oe=>{console.log("Device permission changed: ",oe),oe.name==="camera"&&oe.state==="denied"&&m(!1)};return r.on("active-media-failed",ne),r.on("device-change",Ee),r.on("device-permission-change",Ne),r.on("video-capturing-change",ce),r.on("passively-stop-share",_e),()=>{r.off("active-media-failed",ne),r.off("device-change",Ee),r.off("device-permission-change",Ne),r.off("video-capturing-change",ce),r.off("passively-stop-share",_e)}},[c,U,v,n,r]),$9(()=>{v?(l(bN),d(qi.User)):u0().then(({cameraList:ne})=>{var Ee;l(ne),d(((Ee=ne[0])==null?void 0:Ee.deviceId)||"")})}),Iq(()=>{a.current.clear()});const me=se.useMemo(()=>({activeCameraId:c,attachSharedVideo:G,attachUserVideo:D,cameraList:s,checkIfUserIdRegisteredInCanvas:Q,detachSharedVideo:Y,detachUserVideo:F,finishScreenSharing:U,isBlurred:y,localVideoRef:i.ref,localVideoStarted:i.started,selfVideoStarted:n&&p,startScreenSharing:$,startVideo:A,stopLocalVideo:R,stopVideo:x,switchBlurred:C,switchCamera:k}),[c,G,D,s,Q,Y,F,U,y,i.ref,i.started,n,p,$,A,R,x,C,k]);return ae.jsx(oL.Provider,{value:me,children:e})},iL=se.createContext({micList:[],activeMicId:"",micMuted:!1,muteMic:()=>Promise.resolve(),muteUserMic:()=>Promise.resolve(),unmuteMic:()=>Promise.resolve(),unmuteUserMic:()=>Promise.resolve(),switchMic:()=>Promise.resolve(),speakerList:[],activeSpeakerId:"",switchSpeaker:()=>Promise.resolve(),startAudio:()=>Promise.resolve(),setMicList:()=>{},setSpeakerList:()=>{},setActiveMicId:()=>{},setActiveSpeakerId:()=>{},setMicMuted:()=>{},hostAskUnmute:!1,resetHostAskUnmute:()=>{}}),Ic=()=>se.useContext(iL),AJ={"init-pre-session":["admin"],"init-session":["admin"],"activate-chat":["admin"],"toggle-user-audio":["admin","panelist"],"toggle-user-video":["admin","panelist"],"join-session-with-video":["admin","panelist"],"join-session-with-audio":["admin","panelist"],"change-user-role":["admin"],"show-attendee-list":["admin","panelist"],"share-screen":["admin","panelist"],"show-toggle-video-button":["admin","panelist"],"allow-toggle-audio":["admin","panelist"],"request-turn":["attendee"],"grant-turn":["admin","panelist"],"activate-turn-queue":["admin"],"view-activate-turn-queue":["admin","panelist"]},aL=se.createContext({activeSpeakers:[],activeVideoParticipant:null,currentUser:null,screenSharingUser:null,users:[]}),yu=()=>se.useContext(aL),RJ=({children:e})=>{const{zmClient:t,signature:r,isSessionStarted:n}=ll(),[o,i]=se.useState([]),[a,s]=se.useState(null),[l,c]=se.useState([]),[d,p]=se.useState(null),[m,y]=se.useState(null);se.useEffect(()=>{if(!n())return;const v=F=>{if(F&&F.length>0){c(F);const $=t.getAllUser().find(U=>U.userId===F[0].userId);$&&p($)}else c([]);console.log("active-speaker-change: ",F)},C=()=>{console.log("user-added"),i(t.getAllUser())},A=()=>{console.log("user-removed"),i(t.getAllUser())},R=F=>{const $=t.getCurrentUserInfo();$&&(i(t.getAllUser()),s($),console.log("user-updated: ",F))},x=F=>{console.log("video-active-change: ",F);const $=t.getAllUser().find(U=>U.userId===F.userId);$&&p($)},k=F=>{const $=t.getCurrentUserInfo();$&&["Started","Stopped"].includes(F.state)&&s($),F.state==="Failed"&&(console.error("Failed to capture video"),s($))},D=async F=>{const{userId:$,state:U}=F;if(U==="Inactive"){y(null);return}const G=t.getAllUser().find(Y=>Y.userId===$)??null;y(G)};return t.on("active-speaker",v),t.on("user-added",C),t.on("user-removed",A),t.on("user-updated",R),t.on("video-active-change",x),t.on("video-capturing-change",k),t.on("active-share-change",D),()=>{t.off("active-speaker",v),t.off("user-added",C),t.off("user-removed",A),t.off("user-updated",R),t.off("video-active-change",x),t.off("video-capturing-change",k),t.off("active-share-change",D)}},[n,r,t]),se.useEffect(()=>{if(!n())return;i(t.getAllUser());const v=t.getCurrentUserInfo();v&&s(v);const C=t.getMediaStream().getActiveShareUserId();if(C){const A=t.getAllUser().find(R=>R.userId===C)??null;y(A)}},[n,t]),ER(()=>{const v=t.getSessionHost();v&&!d&&n()&&(console.log("Initial setting active video participant to host user: ",v.displayName),p(v))});const b=se.useMemo(()=>({activeSpeakers:l,activeVideoParticipant:d,currentUser:a,screenSharingUser:m,users:o}),[l,d,a,m,o]);return ae.jsx(aL.Provider,{value:b,children:e})},Wd=()=>{const{currentUser:e}=yu(),t=!!e&&TJ(e);return se.useCallback(r=>t&&AJ[r].includes(t),[t])},TJ=e=>e!=null&&e.isHost?"admin":e!=null&&e.isManager?"panelist":"attendee",OJ=({children:e})=>{const{notify:t}=bs(),{zmClient:r,isSessionStarted:n}=ll(),o=Wd(),[i,a]=se.useState([]),[s,l]=se.useState(""),[c,d]=se.useState(!1),[p,m]=se.useState([]),[y,b]=se.useState(""),[v,C]=se.useState(!1),A=se.useCallback(async()=>{const Y=r.getMediaStream();Y&&await Y.startAudio({microphoneId:s,speakerId:y,mute:c})},[r,s,y,c]),R=se.useCallback(async()=>{if(!n()){await d(!0);return}const Y=r.getMediaStream();Y&&(d(!0),await Y.muteAudio())},[n,r]),x=se.useCallback(async Y=>{const Q=r.getMediaStream();Q&&await Q.muteAudio(Y)},[r]),k=se.useCallback(async()=>{if(!n()){d(!1);return}const Y=r.getMediaStream();Y&&(d(!1),await Y.unmuteAudio())},[n,r]),D=se.useCallback(async Y=>{const Q=r.getMediaStream();Q&&await Q.unmuteAudio(Y)},[r]),F=se.useCallback(async Y=>{if(l(Y),n()){const Q=r.getMediaStream();if(!Q)return;await Q.switchMicrophone(Y)}},[r,n]),$=se.useCallback(async Y=>{if(b(Y),n()){const Q=r.getMediaStream();if(!Q)return;await Q.switchSpeaker(Y)}},[r,n]),U=se.useCallback(()=>{C(!1)},[]);se.useEffect(()=>{if(!n())return;const Y=()=>{u0().then(({micList:ce,speakerList:_e})=>{var Ne,oe;a(ce),m(_e),ce.find(Se=>Se.deviceId===s)||l(((Ne=ce[0])==null?void 0:Ne.deviceId)||""),_e.find(Se=>Se.deviceId===y)||b(((oe=_e[0])==null?void 0:oe.deviceId)||"")}),console.log("Audio devices changed")},Q=ce=>{C(["Unmute","Spotlight"].includes(ce.reason)),console.log("host-ask-unmute-audio: ",ce)},me=ce=>{console.log("active-media-failed: ",ce),ce.type==="audio"&&d(!0)},ne=()=>{o("allow-toggle-audio")&&t({header:"Micrófono silenciado",message:"Estás hablando pero tu micrófono está silenciado.",severity:"info"})},Ee=ce=>{const _e=r.getCurrentUserInfo();if(!_e)return;const Ne=ce.find(oe=>oe.userId===_e.userId);(Ne==null?void 0:Ne.muted)!==void 0&&d(Ne.muted),console.log("user-updated (muted): ",ce)};return r.on("active-media-failed",me),r.on("device-change",Y),r.on("host-ask-unmute-audio",Q),r.on("speaking-while-muted",ne),r.on("user-updated",Ee),()=>{r.off("active-media-failed",me),r.off("device-change",Y),r.off("host-ask-unmute-audio",Q),r.off("speaking-while-muted",ne),r.off("user-updated",Ee)}},[r,n,s,y,o,t]),$9(()=>{u0().then(({micList:Y,speakerList:Q})=>{var me,ne;a(Y),m(Q),l(((me=Y[0])==null?void 0:me.deviceId)||""),b(((ne=Q[0])==null?void 0:ne.deviceId)||"")})});const G=se.useMemo(()=>({micList:i,activeMicId:s,micMuted:c,speakerList:p,activeSpeakerId:y,hostAskUnmute:v,resetHostAskUnmute:U,muteMic:R,muteUserMic:x,unmuteMic:k,unmuteUserMic:D,switchMic:F,switchSpeaker:$,startAudio:A,setMicList:a,setSpeakerList:m,setActiveMicId:l,setActiveSpeakerId:b,setMicMuted:d}),[i,s,c,p,y,v,U,R,x,k,D,F,$,A,a,m,l,b,d]);return ae.jsx(iL.Provider,{value:G,children:e})},sL=se.createContext({messages:[],receivers:[],sendMessage:()=>Promise.resolve(),updateReceiversAndChatHistory:()=>{}}),lL=()=>se.useContext(sL),_J=({children:e})=>{const{zmClient:t,isSessionStarted:r}=ll(),[n,o]=se.useState([]),[i,a]=se.useState([]),[s,l]=se.useState(null),c=se.useCallback(async({text:b,receiverId:v})=>{if(!s||!(b!=null&&b.trim()))return;await(v!==0?()=>s.send(b,v):()=>s.sendToAll(b))()},[s]),d=se.useCallback(()=>{s&&o(s.getHistory()??[])},[s]),p=se.useCallback(()=>{s&&a(s.getReceivers()??[])},[s]),m=se.useCallback(()=>{p(),d()},[p,d]);se.useEffect(()=>{if(!r()||s)return;const b=t.getChatClient();l(b),a(b.getReceivers()??[]),o(b.getHistory()??[])},[s,t,r]),se.useEffect(()=>{if(!r())return;const b=v=>{o(C=>[...C,v])};return t.on("chat-on-message",b),()=>{t.off("chat-on-message",b)}},[t,r]),se.useEffect(()=>{if(!r())return;const b=()=>{m()},v=()=>{m()};return t.on("user-added",b),t.on("user-removed",v),()=>{t.off("user-added",b),t.off("user-removed",v)}},[t,r,m]);const y=se.useMemo(()=>({messages:n,receivers:i,sendMessage:c,updateReceiversAndChatHistory:m}),[n,i,c,m]);return ae.jsx(sL.Provider,{value:y,children:e})},PJ=(e,t)=>({...e,active:t.active,timestamp:t.timestamp}),xJ=(e,t)=>{switch(t.type){case"LOWER-USER-HAND":return{...e,speakerQueueIds:e.speakerQueueIds.filter(r=>r!==t.userId)};case"TOGGLE-HAND":{const r=[...e.speakerQueueIds],n=r.indexOf(t.senderId);return n>-1?r.splice(n,1):r.push(t.senderId),{...e,speakerQueueIds:r}}case"TOGGLE-TURN-QUEUE":return{...e,turnQueueState:{...e.turnQueueState,active:t.active,timestamp:t.timestamp}};default:return e}},DJ=(e,t)=>{switch(t.type){case"CHANGE-SESSION-STATUS":return{...e,status:t.status};default:return e}},NJ=(e,t)=>{switch(t.type){case"SEND-SHARED-STATE":return t.state;case"TOGGLE-CHAT":return{...e,chatState:PJ(e.chatState,t)};case"TOGGLE-HAND":case"LOWER-USER-HAND":case"TOGGLE-TURN-QUEUE":return{...e,speakerTurnState:xJ(e.speakerTurnState,t)};case"CHANGE-SESSION-STATUS":return{...e,sessionState:DJ(e.sessionState,t)};default:return e}},uL={active:!0,timestamp:0},cL={active:!0,timestamp:0},dL=se.createContext({sharedState:{speakerTurnState:{speakerQueueIds:[],turnQueueState:cL},sessionState:{status:eu.NOT_STARTED},chatState:uL},requestSharedState:()=>Promise.resolve(),speakerQueue:[],raisedHand:!1,toggleHand:()=>Promise.resolve(),lowerUserHand:()=>Promise.resolve(),toggleTurnQueue:()=>Promise.resolve(),toggleChat:()=>Promise.resolve(),alertUser:()=>Promise.resolve(),changeSessionStatus:()=>Promise.resolve()}),U0=()=>se.useContext(dL),MJ=3,kJ=500,LJ=1e4,FJ=()=>{const{zmClient:e}=ll(),t=se.useRef(void 0);return se.useEffect(()=>{const r=n=>{t.current=n};return e.on("command-channel-status",r),()=>{e.off("command-channel-status",r)}},[e]),se.useCallback(async(r,n)=>{const{maxAttempts:o=MJ,initialDelay:i=kJ,connectionTimeout:a=LJ,userId:s}=n||{},l=e.getCommandClient(),c=async()=>{if(t.current===au.Connected)return;const d=Date.now();for(;Date.now()-d<a;){if(t.current===au.Connected){console.info("Command channel connected, proceeding to send...");return}await new Promise(p=>setTimeout(p,100))}throw new Error(`Command channel connection timeout after ${a}ms`)};await c();for(let d=0;d<o;d++)try{await l.send(JSON.stringify(r),s),d>0&&console.info(`Action sent successfully on attempt ${d+1}`);return}catch(p){if(d===o-1)throw console.error(`Failed to send action after ${o} attempts:`,p),p;const y=i*Math.pow(2,d);console.warn(`Attempt ${d+1} failed, retrying in ${y}ms...`,p),await new Promise(b=>setTimeout(b,y)),t.current!==au.Connected&&(console.warn("Connection lost during retries, waiting for reconnection..."),await c())}},[e])},jJ=({children:e})=>{const{zmClient:t}=ll(),{users:r,currentUser:n}=yu(),{alert:o}=bs(),[i,a]=se.useReducer(NJ,{chatState:uL,sessionState:{status:eu.NOT_STARTED},speakerTurnState:{turnQueueState:cL,speakerQueueIds:[]}}),s=FJ(),l=se.useCallback(async(R,x)=>{await s({type:"ALERT-USER",message:x,userId:R})},[s]),c=se.useMemo(()=>{const R=t.getCurrentUserInfo();return R&&i.speakerTurnState.speakerQueueIds.includes(R.userId)},[t,i.speakerTurnState.speakerQueueIds]),d=se.useMemo(()=>i.speakerTurnState.speakerQueueIds.map(R=>r.find(k=>k.userId===R)).filter(R=>R!==void 0),[r,i.speakerTurnState.speakerQueueIds]),p=se.useCallback(async()=>{const R=t.getCurrentUserInfo();await s({type:"REQUEST-SHARED-STATE",userId:R.userId})},[t,s]),m=se.useCallback(async()=>{const R=t.getCurrentUserInfo();if(!R)return;const x={type:"TOGGLE-HAND",senderId:R==null?void 0:R.userId};await s(x),a(x)},[t,s]),y=se.useCallback(async R=>{const x={type:"TOGGLE-CHAT",active:R,timestamp:new Date().getTime()};await s(x),a(x)},[s]),b=se.useCallback(async R=>{const x={type:"LOWER-USER-HAND",userId:R};await s(x),a(x)},[s]),v=se.useCallback(async R=>{const x={type:"TOGGLE-TURN-QUEUE",active:R,timestamp:new Date().getTime()};await s(x),a(x)},[s]),C=se.useCallback(async R=>{const x={type:"CHANGE-SESSION-STATUS",status:R};await s(x),a(x)},[s]);se.useEffect(()=>{const R=x=>{const k=JSON.parse(x.text);if(k.type==="REQUEST-SHARED-STATE"){const D=t.getCurrentUserInfo();if(!(D!=null&&D.isHost))return;s({type:"SEND-SHARED-STATE",state:i},{userId:k.userId})}else k.type==="ALERT-USER"?(n==null?void 0:n.userId)===k.userId&&o({message:k.message}):a(k)};return t.on("command-channel-message",R),()=>{t.off("command-channel-message",R)}},[t,i,n,s,o]);const A=se.useMemo(()=>({sharedState:i,requestSharedState:p,speakerQueue:d,raisedHand:c,toggleHand:m,lowerUserHand:b,toggleTurnQueue:v,toggleChat:y,alertUser:l,changeSessionStatus:C}),[i,p,d,c,m,b,v,y,l,C]);return ae.jsx(dL.Provider,{value:A,children:e})},pL=se.forwardRef(({onChangeUserRole:e,onInitVotingPreSession:t,onInitVotingSession:r,onCloseVotingSession:n,credentials:o,children:i,videoSessionStatus:a},s)=>{const[l,c]=se.useState(0),[d,p]=se.useState(eu.NOT_STARTED),m=se.useCallback(async x=>{await(e==null?void 0:e(x))},[e]),y=se.useCallback(async()=>{!t||a!==eu.NOT_STARTED||(await t(),p(eu.ONLY_PANELIST))},[t,a]),b=se.useCallback(async()=>{r&&(await r(),p(eu.IN_PROGRESS))},[r]),v=se.useCallback(async()=>{n&&(await n(),p(eu.CLOSED))},[n]),C=se.useCallback(x=>{c(x)},[]),A=se.useMemo(()=>({appendTo:""}),[]);se.useEffect(()=>{console.log("VideoPluginProvider: sessionStatus changed:",d),a!==void 0&&d!==a&&p(a)},[a]);const R=se.useMemo(()=>({credentials:o,changeUserRole:m,breakpoint:l,changePluginBreakpoint:C,sessionStatus:d,initVotingPreSession:y,initVotingSession:b,closeVotingSession:v}),[o,m,l,C,d,y,b,v]);return ae.jsx(U3.Provider,{value:R,children:ae.jsx(Eq,{children:ae.jsx(H9,{ref:s,children:ae.jsx(RJ,{children:ae.jsx(IJ,{children:ae.jsx(OJ,{children:ae.jsx(_J,{children:ae.jsx(jJ,{children:ae.jsx(fj,{value:A,children:i})})})})})})})})})});pL.displayName="VideoPluginProvider";var xm=(e=>(e[e.Mobile=0]="Mobile",e[e.Tablet=1]="Tablet",e[e.Desktop=2]="Desktop",e))(xm||{});const VJ=768,fL=1024,BJ=()=>{const[e,{width:t}]=Rq(),r=se.useMemo(()=>t<VJ?0:t<fL?1:2,[t]);return{ref:e,width:t,breakpoint:r}};function Dm(e){"@babel/helpers - typeof";return Dm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dm(e)}function HJ(e,t){if(Dm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UJ(e){var t=HJ(e,"string");return Dm(t)=="symbol"?t:t+""}function $J(e,t,r){return(t=UJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ad.apply(null,arguments)}function Qw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function WJ(e){if(Array.isArray(e))return Qw(e)}function zJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hL(e,t){if(e){if(typeof e=="string")return Qw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qw(e,t):void 0}}function KJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1021
+ `,ue},typeof u=="string"&&(u.indexOf("-----BEGIN")!=-1?this.readCertPEM(u):I.lang.String.isHex(u)&&this.readCertHex(u))}Yr.EXT_PARSER={},Yr.registExtParser=function(u,f){Yr.EXT_PARSER[u]=f},Yr.hex2dn=function(u,f){f===void 0&&(f=0);var h=new Yr;er.getTLV(u,f);var g=h.getX500Name(u);return g.str},Yr.hex2rdn=function(u,f){if(f===void 0&&(f=0),u.substr(f,2)!=="31")throw new Error("malformed RDN");for(var h=new Array,g=er.getChildIdx(u,f),w=0;w<g.length;w++)h.push(Yr.hex2attrTypeValue(u,g[w]));return h=h.map(function(E){return E.replace("+","\\+")}),h.join("+")},Yr.hex2attrTypeValue=function(u,f){var h=er,g=h.getV;if(f===void 0&&(f=0),u.substr(f,2)!=="30")throw new Error("malformed attribute type and value");var w=h.getChildIdx(u,f);w.length!==2||u.substr(w[0],2);var E=g(u,w[0]),_=I.asn1.ASN1Util.oidHexToInt(E),O=I.asn1.x509.OID.oid2atype(_),j=g(u,w[1]),N=ca(j);return O+"="+N},Yr.getPublicKeyFromCertHex=function(u){var f=new Yr;return f.readCertHex(u),f.getPublicKey()},Yr.getPublicKeyFromCertPEM=function(u){var f=new Yr;return f.readCertPEM(u),f.getPublicKey()},Yr.getPublicKeyInfoPropOfCertPEM=function(u){var f=er,h=f.getVbyList,g={},w,E;return g.algparam=null,w=new Yr,w.readCertPEM(u),E=w.getPublicKeyHex(),g.keyhex=h(E,0,[1],"03").substr(2),g.algoid=h(E,0,[0,0],"06"),g.algoid==="2a8648ce3d0201"&&(g.algparam=h(E,0,[0,1],"06")),g},Yr.KEYUSAGE_NAME=["digitalSignature","nonRepudiation","keyEncipherment","dataEncipherment","keyAgreement","keyCertSign","cRLSign","encipherOnly","decipherOnly"];var LF=function(u){var f=I,h=f.lang.String.isHex,g=er,w=g.getV,E=g.getTLV,_=g.getVbyList,O=g.getTLVbyList,j=g.getTLVbyListEx,N=g.getIdxbyList,H=g.getIdxbyListEx,V=g.getChildIdx,T=new Yr;this.hex=null,this.posSigAlg=null,this.posRevCert=null,this.parsed=null,this._setPos=function(){var M=N(this.hex,0,[0,0]),P=this.hex.substr(M,2);if(P=="02")this.posSigAlg=1;else if(P=="30")this.posSigAlg=0;else throw new Error("malformed 1st item of TBSCertList: "+P);var L=N(this.hex,0,[0,this.posSigAlg+3]),B=this.hex.substr(L,2);if(B=="17"||B=="18"){var W,de;W=N(this.hex,0,[0,this.posSigAlg+4]),this.posRevCert=null,W!=-1&&(de=this.hex.substr(W,2),de=="30"&&(this.posRevCert=this.posSigAlg+4))}else if(B=="30")this.posRevCert=this.posSigAlg+3;else if(B=="a0")this.posRevCert=null;else throw new Error("malformed nextUpdate or revCert tag: "+B)},this.getVersion=function(){return this.posSigAlg==0?null:parseInt(_(this.hex,0,[0,0],"02"),16)+1},this.getSignatureAlgorithmField=function(){var M=O(this.hex,0,[0,this.posSigAlg],"30");return T.getAlgorithmIdentifierName(M)},this.getIssuer=function(){return T.getX500Name(this.getIssuerHex())},this.getIssuerHex=function(){return O(this.hex,0,[0,this.posSigAlg+1],"30")},this.getThisUpdate=function(){var M=_(this.hex,0,[0,this.posSigAlg+2]);return result=ca(M)},this.getNextUpdate=function(){var M=N(this.hex,0,[0,this.posSigAlg+3]),P=this.hex.substr(M,2);return P!="17"&&P!="18"?null:ca(w(this.hex,M))},this.getRevCertArray=function(){if(this.posRevCert==null)return null;for(var M=[],P=N(this.hex,0,[0,this.posRevCert]),L=V(this.hex,P),B=0;B<L.length;B++){var W=E(this.hex,L[B]);M.push(this.getRevCert(W))}return M},this.getRevCert=function(M){var P={},L=V(M,0);return P.sn={hex:_(M,0,[0],"02")},P.date=ca(_(M,0,[1])),L.length==3&&(P.ext=T.getExtParamArray(O(M,0,[2]))),P},this.findRevCert=function(M){var P=new Yr(M),L=P.getSerialNumberHex();return this.findRevCertBySN(L)},this.findRevCertBySN=function(M){if(this.parsed==null&&this.getParam(),this.parsed.revcert==null)return null;for(var P=this.parsed.revcert,L=0;L<P.length;L++)if(M==P[L].sn.hex)return P[L];return null},this.getSignatureValueHex=function(){return _(this.hex,0,[2],"03",!0)},this.verifySignature=function(M){var P=this.getSignatureAlgorithmField(),L=this.getSignatureValueHex(),B=O(this.hex,0,[0],"30"),W=new I.crypto.Signature({alg:P});return W.init(M),W.updateHex(B),W.verify(L)},this.getParam=function(M){var P={},L=this.getVersion();L!=null&&(P.version=L),P.sigalg=this.getSignatureAlgorithmField(),P.issuer=this.getIssuer(),P.thisupdate=this.getThisUpdate();var B=this.getNextUpdate();B!=null&&(P.nextupdate=B);var W=this.getRevCertArray();W!=null&&(P.revcert=W);var de=H(this.hex,0,[0,"[0]"]);if(de!=-1){var Me=j(this.hex,0,[0,"[0]",0]);P.ext=T.getExtParamArray(Me)}return P.sighex=this.getSignatureValueHex(),this.parsed=P,typeof M=="object"&&(M.tbshex==!0&&(P.tbshex=O(this.hex,0,[0])),M.nodnarray==!0&&delete P.issuer.array),P},typeof u=="string"&&(h(u)?this.hex=u:u.match(/-----BEGIN X509 CRL/)&&(this.hex=je(u)),this._setPos())};return(typeof I>"u"||!I)&&(I={}),(typeof I.jws>"u"||!I.jws)&&(I.jws={}),I.jws.JWS=function(){var u=I,f=u.jws.JWS,h=f.isSafeJSONString;this.parseJWS=function(g,w){if(!(this.parsedJWS!==void 0&&(w||this.parsedJWS.sigvalH!==void 0))){var E=g.match(/^([^.]+)\.([^.]+)\.([^.]+)$/);if(E==null)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";var _=E[1],O=E[2],j=E[3],N=_+"."+O;if(this.parsedJWS={},this.parsedJWS.headB64U=_,this.parsedJWS.payloadB64U=O,this.parsedJWS.sigvalB64U=j,this.parsedJWS.si=N,!w){var H=Xn(j),V=ln(H,16);this.parsedJWS.sigvalH=H,this.parsedJWS.sigvalBI=V}var T=Va(_),M=Va(O);if(this.parsedJWS.headS=T,this.parsedJWS.payloadS=M,!h(T,this.parsedJWS,"headP"))throw"malformed JSON string for JWS Head: "+T}}},I.jws.JWS.sign=function(u,f,h,g,w){var E=I,_=E.jws,O=_.JWS,j=O.readSafeJSONString,N=O.isSafeJSONString,H=E.crypto;H.ECDSA;var V=H.Mac,T=H.Signature,M=JSON,P,L,B;if(typeof f!="string"&&typeof f!="object")throw"spHeader must be JSON string or object: "+f;if(typeof f=="object"&&(L=f,P=M.stringify(L)),typeof f=="string"){if(P=f,!N(P))throw"JWS Head is not safe JSON string: "+P;L=j(P)}if(B=h,typeof h=="object"&&(B=M.stringify(h)),(u==""||u==null)&&L.alg!==void 0&&(u=L.alg),u!=""&&u!=null&&L.alg===void 0&&(L.alg=u,P=M.stringify(L)),u!==L.alg)throw"alg and sHeader.alg doesn't match: "+u+"!="+L.alg;var W=null;if(O.jwsalg2sigalg[u]===void 0)throw"unsupported alg name: "+u;W=O.jwsalg2sigalg[u];var de=Su(P),Me=Su(B),De=de+"."+Me,Le="";if(W.substr(0,4)=="Hmac"){if(g===void 0)throw"mac key shall be specified for HS* alg";var z=new V({alg:W,prov:"cryptojs",pass:g});z.updateString(De),Le=z.doFinal()}else if(W.indexOf("withECDSA")!=-1){var J=new T({alg:W});J.init(g,w),J.updateString(De);var te=J.sign();Le=I.crypto.ECDSA.asn1SigToConcatSig(te)}else if(W!="none"){var J=new T({alg:W});J.init(g,w),J.updateString(De),Le=J.sign()}var K=ti(Le);return De+"."+K},I.jws.JWS.verify=function(u,f,h){var g=I,w=g.jws,E=w.JWS,_=E.readSafeJSONString,O=g.crypto,j=O.ECDSA,N=O.Mac,H=O.Signature,V;if(typeof kr!==void 0&&(V=kr),!cS(u))return!1;var T=u.split(".");if(T.length!==3)return!1;var M=T[0],P=T[1],L=M+"."+P,B=Xn(T[2]),W=_(Va(T[0])),de=null,Me=null;if(W.alg===void 0)throw"algorithm not specified in header";if(de=W.alg,Me=de.substr(0,2),h!=null&&Object.prototype.toString.call(h)==="[object Array]"&&h.length>0){var De=":"+h.join(":")+":";if(De.indexOf(":"+de+":")==-1)throw"algorithm '"+de+"' not accepted in the list"}if(de!="none"&&f===null)throw"key shall be specified to verify.";if(typeof f=="string"&&f.indexOf("-----BEGIN ")!=-1&&(f=Sn.getKey(f)),(Me=="RS"||Me=="PS")&&!(f instanceof V))throw"key shall be a RSAKey obj for RS* and PS* algs";if(Me=="ES"&&!(f instanceof j))throw"key shall be a ECDSA obj for ES* algs";var Le=null;if(E.jwsalg2sigalg[W.alg]===void 0)throw"unsupported alg name: "+de;if(Le=E.jwsalg2sigalg[de],Le=="none")throw"not supported";if(Le.substr(0,4)=="Hmac"){var z=null;if(f===void 0)throw"hexadecimal key shall be specified for HMAC";var J=new N({alg:Le,pass:f});return J.updateString(L),z=J.doFinal(),B==z}else if(Le.indexOf("withECDSA")!=-1){var te=null;try{te=j.concatSigToASN1Sig(B)}catch{return!1}var K=new H({alg:Le});return K.init(f),K.updateString(L),K.verify(te)}else{var K=new H({alg:Le});return K.init(f),K.updateString(L),K.verify(B)}},I.jws.JWS.parse=function(u){var f=u.split("."),h={},g,w,E;if(f.length!=2&&f.length!=3)throw"malformed sJWS: wrong number of '.' splitted elements";return g=f[0],w=f[1],f.length==3&&(E=f[2]),h.headerObj=I.jws.JWS.readSafeJSONString(Va(g)),h.payloadObj=I.jws.JWS.readSafeJSONString(Va(w)),h.headerPP=JSON.stringify(h.headerObj,null," "),h.payloadObj==null?h.payloadPP=Va(w):h.payloadPP=JSON.stringify(h.payloadObj,null," "),E!==void 0&&(h.sigHex=Xn(E)),h},I.jws.JWS.verifyJWT=function(u,f,h){var g=I,w=g.jws,E=w.JWS,_=E.readSafeJSONString,O=E.inArray,j=E.includedArray;if(!cS(u))return!1;var N=u.split(".");if(N.length!=3)return!1;var H=N[0],V=N[1];Xn(N[2]);var T=_(Va(H)),M=_(Va(V));if(T.alg===void 0)return!1;if(h.alg===void 0)throw"acceptField.alg shall be specified";if(!O(T.alg,h.alg)||M.iss!==void 0&&typeof h.iss=="object"&&!O(M.iss,h.iss)||M.sub!==void 0&&typeof h.sub=="object"&&!O(M.sub,h.sub))return!1;if(M.aud!==void 0&&typeof h.aud=="object"){if(typeof M.aud=="string"){if(!O(M.aud,h.aud))return!1}else if(typeof M.aud=="object"&&!j(M.aud,h.aud))return!1}var P=w.IntDate.getNow();return h.verifyAt!==void 0&&typeof h.verifyAt=="number"&&(P=h.verifyAt),(h.gracePeriod===void 0||typeof h.gracePeriod!="number")&&(h.gracePeriod=0),!(M.exp!==void 0&&typeof M.exp=="number"&&M.exp+h.gracePeriod<P||M.nbf!==void 0&&typeof M.nbf=="number"&&P<M.nbf-h.gracePeriod||M.iat!==void 0&&typeof M.iat=="number"&&P<M.iat-h.gracePeriod||M.jti!==void 0&&h.jti!==void 0&&M.jti!==h.jti||!E.verify(u,f,h.alg))},I.jws.JWS.includedArray=function(u,f){var h=I.jws.JWS.inArray;if(u===null||typeof u!="object"||typeof u.length!="number")return!1;for(var g=0;g<u.length;g++)if(!h(u[g],f))return!1;return!0},I.jws.JWS.inArray=function(u,f){if(f===null||typeof f!="object"||typeof f.length!="number")return!1;for(var h=0;h<f.length;h++)if(f[h]==u)return!0;return!1},I.jws.JWS.jwsalg2sigalg={HS256:"HmacSHA256",HS384:"HmacSHA384",HS512:"HmacSHA512",RS256:"SHA256withRSA",RS384:"SHA384withRSA",RS512:"SHA512withRSA",ES256:"SHA256withECDSA",ES384:"SHA384withECDSA",ES512:"SHA512withECDSA",PS256:"SHA256withRSAandMGF1",PS384:"SHA384withRSAandMGF1",PS512:"SHA512withRSAandMGF1",none:"none"},I.jws.JWS.isSafeJSONString=function(u,f,h){var g=null;try{return g=Kd(u),typeof g!="object"||g.constructor===Array?0:(f&&(f[h]=g),1)}catch{return 0}},I.jws.JWS.readSafeJSONString=function(u){var f=null;try{return f=Kd(u),typeof f!="object"||f.constructor===Array?null:f}catch{return null}},I.jws.JWS.getEncodedSignatureValueFromJWS=function(u){var f=u.match(/^[^.]+\.[^.]+\.([^.]+)$/);if(f==null)throw"JWS signature is not a form of 'Head.Payload.SigValue'.";return f[1]},I.jws.JWS.getJWKthumbprint=function(u){if(u.kty!=="RSA"&&u.kty!=="EC"&&u.kty!=="oct")throw"unsupported algorithm for JWK Thumprint";var f="{";if(u.kty==="RSA"){if(typeof u.n!="string"||typeof u.e!="string")throw"wrong n and e value for RSA key";f+='"e":"'+u.e+'",',f+='"kty":"'+u.kty+'",',f+='"n":"'+u.n+'"}'}else if(u.kty==="EC"){if(typeof u.crv!="string"||typeof u.x!="string"||typeof u.y!="string")throw"wrong crv, x and y value for EC key";f+='"crv":"'+u.crv+'",',f+='"kty":"'+u.kty+'",',f+='"x":"'+u.x+'",',f+='"y":"'+u.y+'"}'}else if(u.kty==="oct"){if(typeof u.k!="string")throw"wrong k value for oct(symmetric) key";f+='"kty":"'+u.kty+'",',f+='"k":"'+u.k+'"}'}var h=Es(f),g=I.crypto.Util.hashHex(h,"sha256"),w=ti(g);return w},I.jws.IntDate={},I.jws.IntDate.get=function(u){var f=I.jws.IntDate,h=f.getNow,g=f.getZulu;if(u=="now")return h();if(u=="now + 1hour")return h()+3600;if(u=="now + 1day")return h()+3600*24;if(u=="now + 1month")return h()+3600*24*30;if(u=="now + 1year")return h()+3600*24*365;if(u.match(/Z$/))return g(u);if(u.match(/^[0-9]+$/))return parseInt(u);throw"unsupported format: "+u},I.jws.IntDate.getZulu=function(u){return hr(u)},I.jws.IntDate.getNow=function(){var u=~~(new Date/1e3);return u},I.jws.IntDate.intDate2UTCString=function(u){var f=new Date(u*1e3);return f.toUTCString()},I.jws.IntDate.intDate2Zulu=function(u){var f=new Date(u*1e3),h=("0000"+f.getUTCFullYear()).slice(-4),g=("00"+(f.getUTCMonth()+1)).slice(-2),w=("00"+f.getUTCDate()).slice(-2),E=("00"+f.getUTCHours()).slice(-2),_=("00"+f.getUTCMinutes()).slice(-2),O=("00"+f.getUTCSeconds()).slice(-2);return h+g+w+E+_+O+"Z"},(typeof I>"u"||!I)&&(I={}),(typeof I.jws>"u"||!I.jws)&&(I.jws={}),I.jws.JWSJS=function(){var u=I,f=u.jws,h=f.JWS,g=h.readSafeJSONString;this.aHeader=[],this.sPayload="",this.aSignature=[],this.init=function(){this.aHeader=[],this.sPayload=void 0,this.aSignature=[]},this.initWithJWS=function(w){this.init();var E=w.split(".");if(E.length!=3)throw"malformed input JWS";this.aHeader.push(E[0]),this.sPayload=E[1],this.aSignature.push(E[2])},this.addSignature=function(w,E,_,O){if(this.sPayload===void 0||this.sPayload===null)throw"there's no JSON-JS signature to add.";var j=this.aHeader.length;if(this.aHeader.length!=this.aSignature.length)throw"aHeader.length != aSignature.length";try{var N=I.jws.JWS.sign(w,E,this.sPayload,_,O),H=N.split("."),V=H[0],T=H[2];this.aHeader.push(H[0]),this.aSignature.push(H[2])}catch(M){throw this.aHeader.length>j&&this.aHeader.pop(),this.aSignature.length>j&&this.aSignature.pop(),"addSignature failed: "+M}},this.verifyAll=function(w){if(this.aHeader.length!==w.length||this.aSignature.length!==w.length)return!1;for(var E=0;E<w.length;E++){var _=w[E];if(_.length!==2)return!1;var O=this.verifyNth(E,_[0],_[1]);if(O===!1)return!1}return!0},this.verifyNth=function(w,E,_){if(this.aHeader.length<=w||this.aSignature.length<=w)return!1;var O=this.aHeader[w],j=this.aSignature[w],N=O+"."+this.sPayload+"."+j,H=!1;try{H=h.verify(N,E,_)}catch{return!1}return H},this.readJWSJS=function(w){if(typeof w=="string"){var E=g(w);if(E==null)throw"argument is not safe JSON object string";this.aHeader=E.headers,this.sPayload=E.payload,this.aSignature=E.signatures}else try{if(w.headers.length>0)this.aHeader=w.headers;else throw"malformed header";if(typeof w.payload=="string")this.sPayload=w.payload;else throw"malformed signatures";if(w.signatures.length>0)this.aSignature=w.signatures;else throw"malformed signatures"}catch(_){throw"malformed JWS-JS JSON object: "+_}},this.getJSON=function(){return{headers:this.aHeader,payload:this.sPayload,signatures:this.aSignature}},this.isEmpty=function(){return this.aHeader.length==0?1:0}},lr.SecureRandom=Rn,lr.rng_seed_time=Li,lr.BigInteger=p,lr.RSAKey=kr,lr.ECDSA=I.crypto.ECDSA,lr.DSA=I.crypto.DSA,lr.Signature=I.crypto.Signature,lr.MessageDigest=I.crypto.MessageDigest,lr.Mac=I.crypto.Mac,lr.KEYUTIL=Sn,lr.ASN1HEX=er,lr.X509=Yr,lr.X509CRL=LF,lr.CryptoJS=o,lr.b64tohex=l,lr.b64toBA=c,lr.ECFieldElementFp=No,lr.ECPointFp=Nn,lr.ECCurveFp=Vs,lr.stoBA=Rg,lr.BAtos=Tg,lr.BAtohex=Gd,lr.stohex=ua,lr.stob64=oS,lr.stob64u=Og,lr.b64utos=iS,lr.b64tob64u=bu,lr.b64utob64=Rc,lr.hex2b64=s,lr.hextob64u=ti,lr.b64utohex=Xn,lr.utf8tob64u=Su,lr.b64utoutf8=Va,lr.utf8tob64=aS,lr.b64toutf8=_g,lr.utf8tohex=qd,lr.hextoutf8=Hn,lr.hextorstr=ca,lr.rstrtohex=Es,lr.hextob64=Ff,lr.hextob64nl=uS,lr.b64nltohex=Pg,lr.hextopem=ye,lr.pemtohex=je,lr.hextoArrayBuffer=Dt,lr.ArrayBuffertohex=$t,lr.zulutomsec=kt,lr.msectozulu=rr,lr.zulutosec=hr,lr.zulutodate=Rr,lr.datetozulu=Lr,lr.uricmptohex=bn,lr.hextouricmp=co,lr.ipv6tohex=wi,lr.hextoipv6=es,lr.hextoip=ts,lr.iptohex=da,lr.ucs2hextoutf8=jf,lr.encodeURIComponentAll=Cu,lr.newline_toUnix=Yd,lr.newline_toDos=DF,lr.hextoposhex=dS,lr.intarystrtohex=NF,lr.strdiffidx=MF,lr.oidtohex=NR,lr.hextooid=xg,lr.strpad=Dg,lr.bitstrtoint=kR,lr.inttobitstr=LR,lr.bitstrtobinstr=FR,lr.binstrtobitstr=kF,lr.isBase64URLDot=cS,lr.namearraytobinstr=Ng,lr.extendClass=bt,lr.foldnl=Jd,lr.b64topem=Ut,lr.pemtob64=gt,lr.timeogen=un,lr.aryval=oo,lr.inttohex=MR,lr.twoscompl=Vf,lr.KJUR=I,lr.crypto=I.crypto,lr.asn1=I.asn1,lr.jws=I.jws,lr.lang=I.lang,lr.VERSION=r,lr.VERSION_FULL=n,lr}gJ();const u0=async()=>{try{const e=await Ec.getDevices(),t=e.filter(o=>o.kind==="audioinput"),r=e.filter(o=>o.kind==="audiooutput"),n=e.filter(o=>o.kind==="videoinput");return{micList:t,speakerList:r,cameraList:n}}catch(e){return console.error("Error fetching devices:",e),{micList:[],speakerList:[],cameraList:[]}}};function Ni(...e){return mJ(Tq(e))}const oL=ae.createContext({cameraList:[],activeCameraId:"",selfVideoStarted:!1,localVideoStarted:!1,isBlurred:!1,localVideoRef:ae.createRef(),switchBlurred:()=>Promise.resolve(),startVideo:()=>Promise.resolve(),stopVideo:()=>Promise.resolve(),stopLocalVideo:()=>Promise.resolve(),switchCamera:()=>Promise.resolve(),attachUserVideo:()=>Promise.resolve(),detachUserVideo:()=>Promise.resolve(),attachSharedVideo:()=>Promise.resolve(),detachSharedVideo:()=>Promise.resolve(),startScreenSharing:()=>Promise.resolve(),finishScreenSharing:()=>Promise.resolve(),checkIfUserIdRegisteredInCanvas:()=>!1}),$d=()=>{const e=ae.useContext(oL);if(!e)throw new Error("useVideoContext must be used within VideoProvider");return e},vJ=()=>{const e=ae.useRef(Ec.createLocalVideoTrack()),t=ae.useRef(null),[r,n]=ae.useState(!1),o=ae.useCallback(async l=>{const c=t.current;if(!(!c||r)){try{await e.current.stop()}catch(d){if(!(d instanceof Error&&d.message==="VideoNotStartedError"))throw d}await e.current.switchCamera(l),await e.current.start(c),n(!0)}},[r]),i=ae.useCallback(async()=>{!t.current||!r||(n(!1),await e.current.stop())},[r]),a=ae.useCallback(async l=>{t.current&&await e.current.switchCamera(l)},[]),s=ae.useCallback(async l=>{await e.current.updateVirtualBackground(l?"blur":"")},[]);return ae.useEffect(()=>{const l=t.current;if(!l)return;const c=new MutationObserver(()=>{r&&!document.contains(l)&&n(!1)});return c.observe(document.body,{childList:!0,subtree:!0}),()=>c.disconnect()},[r]),Iq(async()=>{r&&(n(!1),await e.current.stop().catch(console.error)),t.current=null,console.log("useLocalVideo unmounted, stopped local video")}),ae.useMemo(()=>({ref:t,started:r,start:o,stop:i,switch:a,updateVirtualBackground:s}),[r,o,i,a,s])},yJ=e=>e instanceof Error||e!==null&&typeof e=="object"&&(typeof e.type=="string"||typeof e.message=="string")?`${(e==null?void 0:e.type)||(e==null?void 0:e.message)}: ${(e==null?void 0:e.reason)||(e==null?void 0:e.errorCode)||""}`:typeof e=="string"?e:"Se ha producido un error inesperado",bJ=()=>{const{notify:e}=bs();return ae.useMemo(()=>{const t=n=>{e({header:"Se ha producido un error inesperado",message:yJ(n),severity:"error"})};return n=>{try{const o=n();return o instanceof Promise?o.catch(i=>{throw t(i),i}):o}catch(o){throw t(o),o}}},[e])},SJ=()=>/iPad/i.test(navigator.userAgent)||/MacIntel/i.test(navigator==null?void 0:navigator.platform)&&(navigator==null?void 0:navigator.maxTouchPoints)>2,EJ=()=>{const{userAgent:e}=navigator;return/iPad|iPhone|iPod/i.test(e)||SJ()},CJ=()=>/android/i.test(navigator.userAgent),wJ=()=>CJ()||EJ(),bN=[{deviceId:qi.User,label:"Front Camera"},{deviceId:qi.Environment,label:"Back Camera"}],IJ=({children:e})=>{const t=bJ(),{zmClient:r,sessionStarted:n,isSessionStarted:o}=ll(),i=vJ(),a=ae.useRef(new Map),[s,l]=ae.useState([]),[c,d]=ae.useState(""),[p,m]=ae.useState(!1),[y,b]=ae.useState(!1);ae.useEffect(()=>{console.log("cameraList: ",s),console.log("activeCameraId: ",c)},[s,c]);const v=ae.useMemo(()=>wJ(),[]),C=ae.useCallback(async ne=>{if(b(ne),!o()){await t(()=>i.updateVirtualBackground(ne));return}const Ee=r.getMediaStream();!n||!(Ee!=null&&Ee.isSupportVirtualBackground())||(ne?await t(()=>Ee.updateVirtualBackgroundImage("blur")):await t(()=>Ee.updateVirtualBackgroundImage("")))},[o,i,t,n,r]),A=ae.useCallback(async()=>{if(!o()){console.log("Starting local video"),await t(()=>i.start(c));return}const ne=r.getMediaStream();if(!ne)return;const Ee=ne.getActiveCamera(),ce=typeof SharedArrayBuffer=="function";console.log("isSharedArrayBufferSupported: ",ce);const _e={hd:!0,fullHd:!1,ptz:!1,originalRatio:!0,virtualBackground:ce?{imageUrl:y?"blur":""}:void 0,...c?{cameraId:c}:{cameraId:Ee}};await t(()=>ne.startVideo(_e)),console.log("Started video in session")},[o,y,r,c,t,i]),R=ae.useCallback(async()=>{await t(()=>i.stop()),console.log("Local video stopped")},[i,t]),x=ae.useCallback(async()=>{const ne=r.getMediaStream();ne&&(await t(()=>ne.stopVideo()),console.log("Video stopped"))},[r,t]),k=ae.useCallback(async ne=>{if(!o()){await t(()=>i.switch(ne)),d(ne);return}const Ee=r.getMediaStream();Ee&&(p&&await t(()=>Ee.switchCamera(ne)),d(ne))},[o,r,p,t,i]),D=ae.useCallback(async(ne,Ee)=>{const ce=r.getMediaStream();!ce||!Ee||(a.current.set(ne,Ee),await t(()=>ce.attachVideo(ne,3,Ee)),console.log("Attached video for user: ",ne))},[r,t]),F=ae.useCallback(async ne=>{var ce;const Ee=r.getMediaStream();Ee&&((ce=r.getSessionInfo())!=null&&ce.isInMeeting&&await t(()=>Ee.detachVideo(ne)),a.current.delete(ne),console.log("Detached video for user: ",ne))},[r,t]),$=ae.useCallback(async ne=>{const Ee=r.getMediaStream(),{selfShareCanvas:ce}=ne;(Ee==null?void 0:Ee.getShareStatus())===Mr.End&&ce&&(Ee==null||Ee.startShareScreen(ce,{}))},[r]),U=ae.useCallback(async()=>{const ne=r.getMediaStream();(ne==null?void 0:ne.getShareStatus())===Mr.Sharing&&await t(()=>ne==null?void 0:ne.stopShareScreen())},[r,t]),G=ae.useCallback(async({userId:ne,videoPlayer:Ee})=>{const ce=r.getMediaStream();ce&&await t(()=>ce.attachShareView(ne,Ee))},[r,t]),Y=ae.useCallback(async ne=>{var ce;const Ee=r.getMediaStream();Ee&&(ce=r.getSessionInfo())!=null&&ce.isInMeeting&&await t(()=>Ee.detachShareView(ne))},[r,t]),Q=ae.useCallback(ne=>a.current.has(ne),[]);ae.useEffect(()=>{if(!n)return;const ne=oe=>{console.log("active-media-failed: ",oe),oe.type==="video"&&m(!1)},Ee=()=>{v?(l(bN),[qi.User,qi.Environment].includes(c)||d(qi.User)):u0().then(({cameraList:oe})=>{var Se;l(oe),oe.find(re=>re.deviceId===c)||d(((Se=oe[0])==null?void 0:Se.deviceId)||"")}),console.log("Video devices changed")},ce=oe=>{console.log("video-capturing-change: ",oe),oe.state==="Started"?m(!0):oe.state==="Stopped"?m(!1):oe.state==="Failed"&&console.error("Failed to capture video")},_e=oe=>{U(),console.log("Passively stopped share due to: ",oe)},Ne=oe=>{console.log("Device permission changed: ",oe),oe.name==="camera"&&oe.state==="denied"&&m(!1)};return r.on("active-media-failed",ne),r.on("device-change",Ee),r.on("device-permission-change",Ne),r.on("video-capturing-change",ce),r.on("passively-stop-share",_e),()=>{r.off("active-media-failed",ne),r.off("device-change",Ee),r.off("device-permission-change",Ne),r.off("video-capturing-change",ce),r.off("passively-stop-share",_e)}},[c,U,v,n,r]),$9(()=>{v?(l(bN),d(qi.User)):u0().then(({cameraList:ne})=>{var Ee;l(ne),d(((Ee=ne[0])==null?void 0:Ee.deviceId)||"")})});const me=ae.useMemo(()=>({activeCameraId:c,attachSharedVideo:G,attachUserVideo:D,cameraList:s,checkIfUserIdRegisteredInCanvas:Q,detachSharedVideo:Y,detachUserVideo:F,finishScreenSharing:U,isBlurred:y,localVideoRef:i.ref,localVideoStarted:i.started,selfVideoStarted:n&&p,startScreenSharing:$,startVideo:A,stopLocalVideo:R,stopVideo:x,switchBlurred:C,switchCamera:k}),[c,G,D,s,Q,Y,F,U,y,i.ref,i.started,n,p,$,A,R,x,C,k]);return se.jsx(oL.Provider,{value:me,children:e})},iL=ae.createContext({micList:[],activeMicId:"",micMuted:!1,muteMic:()=>Promise.resolve(),muteUserMic:()=>Promise.resolve(),unmuteMic:()=>Promise.resolve(),unmuteUserMic:()=>Promise.resolve(),switchMic:()=>Promise.resolve(),speakerList:[],activeSpeakerId:"",switchSpeaker:()=>Promise.resolve(),startAudio:()=>Promise.resolve(),setMicList:()=>{},setSpeakerList:()=>{},setActiveMicId:()=>{},setActiveSpeakerId:()=>{},setMicMuted:()=>{},hostAskUnmute:!1,resetHostAskUnmute:()=>{}}),Ic=()=>ae.useContext(iL),AJ={"init-pre-session":["admin"],"init-session":["admin"],"activate-chat":["admin"],"toggle-user-audio":["admin","panelist"],"toggle-user-video":["admin","panelist"],"join-session-with-video":["admin","panelist"],"join-session-with-audio":["admin","panelist"],"change-user-role":["admin"],"show-attendee-list":["admin","panelist"],"share-screen":["admin","panelist"],"show-toggle-video-button":["admin","panelist"],"allow-toggle-audio":["admin","panelist"],"request-turn":["attendee"],"grant-turn":["admin","panelist"],"activate-turn-queue":["admin"],"view-activate-turn-queue":["admin","panelist"]},aL=ae.createContext({activeSpeakers:[],activeVideoParticipant:null,currentUser:null,screenSharingUser:null,users:[]}),yu=()=>ae.useContext(aL),RJ=({children:e})=>{const{zmClient:t,signature:r,isSessionStarted:n}=ll(),[o,i]=ae.useState([]),[a,s]=ae.useState(null),[l,c]=ae.useState([]),[d,p]=ae.useState(null),[m,y]=ae.useState(null);ae.useEffect(()=>{if(!n())return;const v=F=>{if(F&&F.length>0){c(F);const $=t.getAllUser().find(U=>U.userId===F[0].userId);$&&p($)}else c([]);console.log("active-speaker-change: ",F)},C=()=>{console.log("user-added"),i(t.getAllUser())},A=()=>{console.log("user-removed"),i(t.getAllUser())},R=F=>{const $=t.getCurrentUserInfo();$&&(i(t.getAllUser()),s($),console.log("user-updated: ",F))},x=F=>{console.log("video-active-change: ",F);const $=t.getAllUser().find(U=>U.userId===F.userId);$&&p($)},k=F=>{const $=t.getCurrentUserInfo();$&&["Started","Stopped"].includes(F.state)&&s($),F.state==="Failed"&&(console.error("Failed to capture video"),s($))},D=async F=>{const{userId:$,state:U}=F;if(U==="Inactive"){y(null);return}const G=t.getAllUser().find(Y=>Y.userId===$)??null;y(G)};return t.on("active-speaker",v),t.on("user-added",C),t.on("user-removed",A),t.on("user-updated",R),t.on("video-active-change",x),t.on("video-capturing-change",k),t.on("active-share-change",D),()=>{t.off("active-speaker",v),t.off("user-added",C),t.off("user-removed",A),t.off("user-updated",R),t.off("video-active-change",x),t.off("video-capturing-change",k),t.off("active-share-change",D)}},[n,r,t]),ae.useEffect(()=>{if(!n())return;i(t.getAllUser());const v=t.getCurrentUserInfo();v&&s(v);const C=t.getMediaStream().getActiveShareUserId();if(C){const A=t.getAllUser().find(R=>R.userId===C)??null;y(A)}},[n,t]),ER(()=>{const v=t.getSessionHost();v&&!d&&n()&&(console.log("Initial setting active video participant to host user: ",v.displayName),p(v))});const b=ae.useMemo(()=>({activeSpeakers:l,activeVideoParticipant:d,currentUser:a,screenSharingUser:m,users:o}),[l,d,a,m,o]);return se.jsx(aL.Provider,{value:b,children:e})},Wd=()=>{const{currentUser:e}=yu(),t=!!e&&TJ(e);return ae.useCallback(r=>t&&AJ[r].includes(t),[t])},TJ=e=>e!=null&&e.isHost?"admin":e!=null&&e.isManager?"panelist":"attendee",OJ=({children:e})=>{const{notify:t}=bs(),{zmClient:r,isSessionStarted:n}=ll(),o=Wd(),[i,a]=ae.useState([]),[s,l]=ae.useState(""),[c,d]=ae.useState(!1),[p,m]=ae.useState([]),[y,b]=ae.useState(""),[v,C]=ae.useState(!1),A=ae.useCallback(async()=>{const Y=r.getMediaStream();Y&&await Y.startAudio({microphoneId:s,speakerId:y,mute:c})},[r,s,y,c]),R=ae.useCallback(async()=>{if(!n()){await d(!0);return}const Y=r.getMediaStream();Y&&(d(!0),await Y.muteAudio())},[n,r]),x=ae.useCallback(async Y=>{const Q=r.getMediaStream();Q&&await Q.muteAudio(Y)},[r]),k=ae.useCallback(async()=>{if(!n()){d(!1);return}const Y=r.getMediaStream();Y&&(d(!1),await Y.unmuteAudio())},[n,r]),D=ae.useCallback(async Y=>{const Q=r.getMediaStream();Q&&await Q.unmuteAudio(Y)},[r]),F=ae.useCallback(async Y=>{if(l(Y),n()){const Q=r.getMediaStream();if(!Q)return;await Q.switchMicrophone(Y)}},[r,n]),$=ae.useCallback(async Y=>{if(b(Y),n()){const Q=r.getMediaStream();if(!Q)return;await Q.switchSpeaker(Y)}},[r,n]),U=ae.useCallback(()=>{C(!1)},[]);ae.useEffect(()=>{if(!n())return;const Y=()=>{u0().then(({micList:ce,speakerList:_e})=>{var Ne,oe;a(ce),m(_e),ce.find(Se=>Se.deviceId===s)||l(((Ne=ce[0])==null?void 0:Ne.deviceId)||""),_e.find(Se=>Se.deviceId===y)||b(((oe=_e[0])==null?void 0:oe.deviceId)||"")}),console.log("Audio devices changed")},Q=ce=>{C(["Unmute","Spotlight"].includes(ce.reason)),console.log("host-ask-unmute-audio: ",ce)},me=ce=>{console.log("active-media-failed: ",ce),ce.type==="audio"&&d(!0)},ne=()=>{o("allow-toggle-audio")&&t({header:"Micrófono silenciado",message:"Estás hablando pero tu micrófono está silenciado.",severity:"info"})},Ee=ce=>{const _e=r.getCurrentUserInfo();if(!_e)return;const Ne=ce.find(oe=>oe.userId===_e.userId);(Ne==null?void 0:Ne.muted)!==void 0&&d(Ne.muted),console.log("user-updated (muted): ",ce)};return r.on("active-media-failed",me),r.on("device-change",Y),r.on("host-ask-unmute-audio",Q),r.on("speaking-while-muted",ne),r.on("user-updated",Ee),()=>{r.off("active-media-failed",me),r.off("device-change",Y),r.off("host-ask-unmute-audio",Q),r.off("speaking-while-muted",ne),r.off("user-updated",Ee)}},[r,n,s,y,o,t]),$9(()=>{u0().then(({micList:Y,speakerList:Q})=>{var me,ne;a(Y),m(Q),l(((me=Y[0])==null?void 0:me.deviceId)||""),b(((ne=Q[0])==null?void 0:ne.deviceId)||"")})});const G=ae.useMemo(()=>({micList:i,activeMicId:s,micMuted:c,speakerList:p,activeSpeakerId:y,hostAskUnmute:v,resetHostAskUnmute:U,muteMic:R,muteUserMic:x,unmuteMic:k,unmuteUserMic:D,switchMic:F,switchSpeaker:$,startAudio:A,setMicList:a,setSpeakerList:m,setActiveMicId:l,setActiveSpeakerId:b,setMicMuted:d}),[i,s,c,p,y,v,U,R,x,k,D,F,$,A,a,m,l,b,d]);return se.jsx(iL.Provider,{value:G,children:e})},sL=ae.createContext({messages:[],receivers:[],sendMessage:()=>Promise.resolve(),updateReceiversAndChatHistory:()=>{}}),lL=()=>ae.useContext(sL),_J=({children:e})=>{const{zmClient:t,isSessionStarted:r}=ll(),[n,o]=ae.useState([]),[i,a]=ae.useState([]),[s,l]=ae.useState(null),c=ae.useCallback(async({text:b,receiverId:v})=>{if(!s||!(b!=null&&b.trim()))return;await(v!==0?()=>s.send(b,v):()=>s.sendToAll(b))()},[s]),d=ae.useCallback(()=>{s&&o(s.getHistory()??[])},[s]),p=ae.useCallback(()=>{s&&a(s.getReceivers()??[])},[s]),m=ae.useCallback(()=>{p(),d()},[p,d]);ae.useEffect(()=>{if(!r()||s)return;const b=t.getChatClient();l(b),a(b.getReceivers()??[]),o(b.getHistory()??[])},[s,t,r]),ae.useEffect(()=>{if(!r())return;const b=v=>{o(C=>[...C,v])};return t.on("chat-on-message",b),()=>{t.off("chat-on-message",b)}},[t,r]),ae.useEffect(()=>{if(!r())return;const b=()=>{m()},v=()=>{m()};return t.on("user-added",b),t.on("user-removed",v),()=>{t.off("user-added",b),t.off("user-removed",v)}},[t,r,m]);const y=ae.useMemo(()=>({messages:n,receivers:i,sendMessage:c,updateReceiversAndChatHistory:m}),[n,i,c,m]);return se.jsx(sL.Provider,{value:y,children:e})},PJ=(e,t)=>({...e,active:t.active,timestamp:t.timestamp}),xJ=(e,t)=>{switch(t.type){case"LOWER-USER-HAND":return{...e,speakerQueueIds:e.speakerQueueIds.filter(r=>r!==t.userId)};case"TOGGLE-HAND":{const r=[...e.speakerQueueIds],n=r.indexOf(t.senderId);return n>-1?r.splice(n,1):r.push(t.senderId),{...e,speakerQueueIds:r}}case"TOGGLE-TURN-QUEUE":return{...e,turnQueueState:{...e.turnQueueState,active:t.active,timestamp:t.timestamp}};default:return e}},DJ=(e,t)=>{switch(t.type){case"CHANGE-SESSION-STATUS":return{...e,status:t.status};default:return e}},NJ=(e,t)=>{switch(t.type){case"SEND-SHARED-STATE":return t.state;case"TOGGLE-CHAT":return{...e,chatState:PJ(e.chatState,t)};case"TOGGLE-HAND":case"LOWER-USER-HAND":case"TOGGLE-TURN-QUEUE":return{...e,speakerTurnState:xJ(e.speakerTurnState,t)};case"CHANGE-SESSION-STATUS":return{...e,sessionState:DJ(e.sessionState,t)};default:return e}},uL={active:!0,timestamp:0},cL={active:!0,timestamp:0},dL=ae.createContext({sharedState:{speakerTurnState:{speakerQueueIds:[],turnQueueState:cL},sessionState:{status:eu.NOT_STARTED},chatState:uL},requestSharedState:()=>Promise.resolve(),speakerQueue:[],raisedHand:!1,toggleHand:()=>Promise.resolve(),lowerUserHand:()=>Promise.resolve(),toggleTurnQueue:()=>Promise.resolve(),toggleChat:()=>Promise.resolve(),alertUser:()=>Promise.resolve(),changeSessionStatus:()=>Promise.resolve()}),U0=()=>ae.useContext(dL),MJ=3,kJ=500,LJ=1e4,FJ=()=>{const{zmClient:e}=ll(),t=ae.useRef(void 0);return ae.useEffect(()=>{const r=n=>{t.current=n};return e.on("command-channel-status",r),()=>{e.off("command-channel-status",r)}},[e]),ae.useCallback(async(r,n)=>{const{maxAttempts:o=MJ,initialDelay:i=kJ,connectionTimeout:a=LJ,userId:s}=n||{},l=e.getCommandClient(),c=async()=>{if(t.current===au.Connected)return;const d=Date.now();for(;Date.now()-d<a;){if(t.current===au.Connected){console.info("Command channel connected, proceeding to send...");return}await new Promise(p=>setTimeout(p,100))}throw new Error(`Command channel connection timeout after ${a}ms`)};await c();for(let d=0;d<o;d++)try{await l.send(JSON.stringify(r),s),d>0&&console.info(`Action sent successfully on attempt ${d+1}`);return}catch(p){if(d===o-1)throw console.error(`Failed to send action after ${o} attempts:`,p),p;const y=i*Math.pow(2,d);console.warn(`Attempt ${d+1} failed, retrying in ${y}ms...`,p),await new Promise(b=>setTimeout(b,y)),t.current!==au.Connected&&(console.warn("Connection lost during retries, waiting for reconnection..."),await c())}},[e])},jJ=({children:e})=>{const{zmClient:t}=ll(),{users:r,currentUser:n}=yu(),{alert:o}=bs(),[i,a]=ae.useReducer(NJ,{chatState:uL,sessionState:{status:eu.NOT_STARTED},speakerTurnState:{turnQueueState:cL,speakerQueueIds:[]}}),s=FJ(),l=ae.useCallback(async(R,x)=>{await s({type:"ALERT-USER",message:x,userId:R})},[s]),c=ae.useMemo(()=>{const R=t.getCurrentUserInfo();return R&&i.speakerTurnState.speakerQueueIds.includes(R.userId)},[t,i.speakerTurnState.speakerQueueIds]),d=ae.useMemo(()=>i.speakerTurnState.speakerQueueIds.map(R=>r.find(k=>k.userId===R)).filter(R=>R!==void 0),[r,i.speakerTurnState.speakerQueueIds]),p=ae.useCallback(async()=>{const R=t.getCurrentUserInfo();await s({type:"REQUEST-SHARED-STATE",userId:R.userId})},[t,s]),m=ae.useCallback(async()=>{const R=t.getCurrentUserInfo();if(!R)return;const x={type:"TOGGLE-HAND",senderId:R==null?void 0:R.userId};await s(x),a(x)},[t,s]),y=ae.useCallback(async R=>{const x={type:"TOGGLE-CHAT",active:R,timestamp:new Date().getTime()};await s(x),a(x)},[s]),b=ae.useCallback(async R=>{const x={type:"LOWER-USER-HAND",userId:R};await s(x),a(x)},[s]),v=ae.useCallback(async R=>{const x={type:"TOGGLE-TURN-QUEUE",active:R,timestamp:new Date().getTime()};await s(x),a(x)},[s]),C=ae.useCallback(async R=>{const x={type:"CHANGE-SESSION-STATUS",status:R};await s(x),a(x)},[s]);ae.useEffect(()=>{const R=x=>{const k=JSON.parse(x.text);if(k.type==="REQUEST-SHARED-STATE"){const D=t.getCurrentUserInfo();if(!(D!=null&&D.isHost))return;s({type:"SEND-SHARED-STATE",state:i},{userId:k.userId})}else k.type==="ALERT-USER"?(n==null?void 0:n.userId)===k.userId&&o({message:k.message}):a(k)};return t.on("command-channel-message",R),()=>{t.off("command-channel-message",R)}},[t,i,n,s,o]);const A=ae.useMemo(()=>({sharedState:i,requestSharedState:p,speakerQueue:d,raisedHand:c,toggleHand:m,lowerUserHand:b,toggleTurnQueue:v,toggleChat:y,alertUser:l,changeSessionStatus:C}),[i,p,d,c,m,b,v,y,l,C]);return se.jsx(dL.Provider,{value:A,children:e})},pL=ae.forwardRef(({onChangeUserRole:e,onInitVotingPreSession:t,onInitVotingSession:r,onCloseVotingSession:n,credentials:o,children:i,videoSessionStatus:a},s)=>{const[l,c]=ae.useState(0),[d,p]=ae.useState(eu.NOT_STARTED),m=ae.useCallback(async x=>{await(e==null?void 0:e(x))},[e]),y=ae.useCallback(async()=>{!t||a!==eu.NOT_STARTED||(await t(),p(eu.ONLY_PANELIST))},[t,a]),b=ae.useCallback(async()=>{r&&(await r(),p(eu.IN_PROGRESS))},[r]),v=ae.useCallback(async()=>{n&&(await n(),p(eu.CLOSED))},[n]),C=ae.useCallback(x=>{c(x)},[]),A=ae.useMemo(()=>({appendTo:""}),[]);ae.useEffect(()=>{console.log("VideoPluginProvider: sessionStatus changed:",d),a!==void 0&&d!==a&&p(a)},[a]);const R=ae.useMemo(()=>({credentials:o,changeUserRole:m,breakpoint:l,changePluginBreakpoint:C,sessionStatus:d,initVotingPreSession:y,initVotingSession:b,closeVotingSession:v}),[o,m,l,C,d,y,b,v]);return se.jsx(U3.Provider,{value:R,children:se.jsx(Eq,{children:se.jsx(H9,{ref:s,children:se.jsx(RJ,{children:se.jsx(IJ,{children:se.jsx(OJ,{children:se.jsx(_J,{children:se.jsx(jJ,{children:se.jsx(fj,{value:A,children:i})})})})})})})})})});pL.displayName="VideoPluginProvider";var xm=(e=>(e[e.Mobile=0]="Mobile",e[e.Tablet=1]="Tablet",e[e.Desktop=2]="Desktop",e))(xm||{});const VJ=768,fL=1024,BJ=()=>{const[e,{width:t}]=Rq(),r=ae.useMemo(()=>t<VJ?0:t<fL?1:2,[t]);return{ref:e,width:t,breakpoint:r}};function Dm(e){"@babel/helpers - typeof";return Dm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dm(e)}function HJ(e,t){if(Dm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Dm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UJ(e){var t=HJ(e,"string");return Dm(t)=="symbol"?t:t+""}function $J(e,t,r){return(t=UJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ad.apply(null,arguments)}function Qw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function WJ(e){if(Array.isArray(e))return Qw(e)}function zJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hL(e,t){if(e){if(typeof e=="string")return Qw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Qw(e,t):void 0}}function KJ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1022
1022
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function SN(e){return WJ(e)||zJ(e)||hL(e)||KJ()}function GJ(e){if(Array.isArray(e))return e}function qJ(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function JJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1023
1023
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function yp(e,t){return GJ(e)||qJ(e,t)||hL(e,t)||JJ()}var YJ=`
1024
1024
  @layer primereact {
@@ -1048,7 +1048,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1048
1048
  line-height: 1;
1049
1049
  }
1050
1050
  }
1051
- `,QJ={root:function(t){var r=t.props,n=t.context;return dt("p-menu p-component",{"p-menu-overlay":r.popup,"p-input-filled":n&&n.inputStyle==="filled"||Ur.inputStyle==="filled","p-ripple-disabled":n&&n.ripple===!1||Ur.ripple===!1})},menu:"p-menu-list p-reset",content:function(t){var r=t.item;return dt("p-menuitem-content",{"p-disabled":r.disabled})},action:function(t){var r=t.item;return dt("p-menuitem-link",{"p-disabled":r.disabled})},menuitem:function(t){var r=t.focused;return dt("p-menuitem",{"p-focus":r})},submenuHeader:function(t){var r=t.submenu;return dt("p-submenu-header",{"p-disabled":r.disabled})},separator:"p-menu-separator",label:"p-menuitem-text",icon:"p-menuitem-icon",transition:"p-connected-overlay"},XJ={submenuHeader:function(t){var r=t.submenu;return r.style},menuitem:function(t){var r=t.item;return r.style}},Iv=Ar.extend({defaultProps:{__TYPE:"Menu",id:null,ariaLabel:null,ariaLabelledBy:null,tabIndex:0,model:null,popup:!1,popupAlignment:"left",style:null,className:null,autoZIndex:!0,baseZIndex:0,appendTo:null,onFocus:null,onBlur:null,transitionOptions:null,onShow:null,onHide:null,children:void 0,closeOnEscape:!0},css:{classes:QJ,styles:YJ,inlineStyles:XJ}});function EN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ZJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EN(Object(r),!0).forEach(function(n){$J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var uu=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Iv.getProps(e,n),i=S.useState(o.id),a=yp(i,2),s=a[0],l=a[1],c=S.useState(!o.popup),d=yp(c,2),p=d[0],m=d[1],y=S.useState(-1),b=yp(y,2),v=b[0],C=b[1],A=S.useState(-1),R=yp(A,2),x=R[0],k=R[1],D=S.useState(!1),F=yp(D,2),$=F[0],U=F[1],G=Iv.setMetaData({props:o,state:{id:s,visible:p,focused:$}}),Y=G.ptm,Q=G.cx,me=G.sx,ne=G.isUnstyled,Ee=function(at,Pt){return Y(at,{context:Pt})};vo(Iv.css.styles,ne,{name:"menu"});var ce=S.useRef(null),_e=S.useRef(null),Ne=S.useRef(null),oe=!!(p&&o.popup&&o.closeOnEscape),Se=k0("menu",oe);F0({callback:function(at){gr(at)},when:oe&&Se,priority:[L0.MENU,Se]});var re=gR({target:Ne,overlay:ce,listener:function(at,Pt){var pt=Pt.valid,Rt=Pt.type;pt&&(n.hideOverlaysOnDocumentScrolling||Rt==="outside"?(gr(at),C(-1)):le.isDocument(at.target)||le.absolutePosition(ce.current,Ne.current,o.popupAlignment))},when:p}),we=yp(re,2),Ae=we[0],Pe=we[1],Oe=function(at){o.popup&&Ps.emit("overlay-click",{originalEvent:at,target:Ne.current})},Ke=function(at,Pt,pt){if(Pt.disabled){at.preventDefault();return}Pt.command&&Pt.command({originalEvent:at,item:Pt}),o.popup&&gr(at),!o.popup&&v!==pt&&C(pt),Pt.url||(at.preventDefault(),at.stopPropagation())},St=function(at,Pt){at&&o.popup&&v!==Pt&&C(Pt)},st=function(at){U(!0),o.popup||(x!==-1?(Ve(x),k(-1)):Ve(0)),o.onFocus&&o.onFocus(at)},yt=function(at){var Pt=at.currentTarget,pt=at.relatedTarget;pt&&Pt.contains(pt)||(U(!1),C(-1),o.onBlur&&o.onBlur(at))},$e=function(at){switch(at.code){case"ArrowDown":ot(at);break;case"ArrowUp":it(at);break;case"Home":Ie(at);break;case"End":tt(at);break;case"Enter":case"NumpadEnter":mt(at);break;case"Space":Wt(at);break;case"Escape":o.popup&&(le.focus(Ne.current),gr(at));case"Tab":o.popup&&p&&gr(at);break}},ot=function(at){var Pt=cr(v);Ve(Pt),at.preventDefault()},it=function(at){if(at.altKey&&o.popup)le.focus(Ne.current),gr(at),at.preventDefault();else{var Pt=At(v);Ve(Pt),at.preventDefault()}},Ie=function(at){Ve(0),at.preventDefault()},tt=function(at){Ve(le.find(ce.current,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1),at.preventDefault()},mt=function(at){var Pt=le.findSingle(ce.current,'li[id="'.concat("".concat(v),'"]')),pt=Pt&&le.findSingle(Pt,'a[data-pc-section="action"]');o.popup&&le.focus(Ne.current),pt?pt.click():Pt&&Pt.click(),at.preventDefault()},Wt=function(at){mt(at)},cr=function(at){var Pt=le.find(ce.current,'li[data-pc-section="menuitem"][data-p-disabled="false"]'),pt=SN(Pt).findIndex(function(Rt){return Rt.id===at});return pt>-1?pt+1:0},At=function(at){var Pt=le.find(ce.current,'li[data-pc-section="menuitem"][data-p-disabled="false"]'),pt=SN(Pt).findIndex(function(Rt){return Rt.id===at});return pt>-1?pt-1:0},Ve=function(at){var Pt=le.find(ce.current,'li[data-pc-section="menuitem"][data-p-disabled="false"]'),pt=at>=Pt.length?Pt.length-1:at<0?0:at;pt>-1&&C(Pt[pt].getAttribute("id"))},Jt=function(){return v!==-1?v:null},ar=function(at){o.popup&&(p?gr(at):pr(at))},pr=function(at){Ne.current=at.currentTarget,m(!0),o.onShow&&o.onShow(at)},gr=function(at){Ne.current=at.currentTarget,m(!1),o.onHide&&o.onHide(at)},en=function(){le.addStyles(ce.current,{position:"absolute",top:"0",left:"0"}),xo.set("menu",ce.current,n&&n.autoZIndex||Ur.autoZIndex,o.baseZIndex||n&&n.zIndex.menu||Ur.zIndex.menu),le.absolutePosition(ce.current,Ne.current,o.popupAlignment),o.popup&&(le.focus(_e.current),Ve(0))},Wr=function(){Ae()},Xr=function(){Ne.current=null,Pe()},Pr=function(){xo.clear(ce.current)};Go(function(){s||l(ms())}),Ci(function(){xo.clear(ce.current)}),S.useImperativeHandle(t,function(){return{props:o,toggle:ar,show:pr,hide:gr,getElement:function(){return ce.current},getTarget:function(){return Ne.current}}});var Br=function(at,Pt){var pt=s+"_sub_"+Pt,Rt=at.items.map(function(ge,be){return jr(ge,be,pt)}),rt=r({id:pt,role:"none",className:dt(at.className,Q("submenuHeader",{submenu:at})),style:me("submenuHeader",{submenu:at}),"data-p-disabled":at.disabled},Y("submenuHeader"));return S.createElement(S.Fragment,{key:pt},S.createElement("li",ad({},rt,{key:pt}),at.label),Rt)},Hr=function(at,Pt){if(at.visible===!1)return null;var pt=s+"_separator_"+Pt,Rt=r({id:pt,className:dt(at.className,Q("separator")),role:"separator"},Y("separator"));return S.createElement("li",ad({},Rt,{key:pt}))},jr=function(at,Pt){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(at.visible===!1)return null;var Rt={item:at,index:Pt,parentId:pt},rt=dt("p-menuitem-link",{"p-disabled":at.disabled}),ge=dt("p-menuitem-icon",at.icon),be=r({className:Q("icon")},Ee("icon",Rt)),We=nn.getJSXIcon(at.icon,ZJ({},be),{props:o}),Gt=r({className:Q("label")},Ee("label",Rt)),Qt=at.label&&S.createElement("span",Gt,at.label),Zt=at.id||(pt||s)+"_"+Pt,Cr=r({onClick:function(Dr){return Ke(Dr,at,Zt)},onMouseMove:function(Dr){return St(Dr,Zt)},className:Q("content",{item:at})},Ee("content",Rt)),zt=r({href:at.url||"#",className:Q("action",{item:at}),onFocus:function(Dr){return Dr.stopPropagation()},target:at.target,tabIndex:"-1","aria-label":at.label,"aria-disabled":at.disabled,"data-p-disabled":at.disabled},Ee("action",Rt)),Qe=S.createElement("div",Cr,S.createElement("a",zt,We,Qt,S.createElement(Co,null)));if(at.template){var Et={onClick:function(Dr){return Ke(Dr,at,Zt)},onMouseMove:function(Dr){return St(Dr,Zt)},className:rt,tabIndex:"-1",labelClassName:"p-menuitem-text",iconClassName:ge,element:Qe,props:o};Qe=pe.getJSXElement(at.template,at,Et)}var Ht=r({id:Zt,className:dt(at.className,Q("menuitem",{focused:v===Zt})),onClick:function(Dr){return Ke(Dr,at,Zt)},style:me("menuitem",{item:at}),role:"menuitem","aria-label":at.label,"aria-disabled":at.disabled,"data-p-focused":Jt()===Zt,"data-p-disabled":at.disabled||!1},Ee("menuitem",Rt));return S.createElement("li",ad({},Ht,{key:Zt}),Qe)},zr=function(at,Pt){return at.visible===!1?null:at.separator?Hr(at,Pt):at.items?Br(at,Pt):jr(at,Pt)},Jr=function(){return o.model.map(zr)},In=function(){if(o.model){var at=Jr(),Pt=r({className:dt(o.className,Q("root",{context:n})),style:o.style,onClick:function(ge){return Oe(ge)}},Iv.getOtherProps(o),Y("root")),pt=r({ref:_e,className:Q("menu"),id:s+"_list",tabIndex:o.tabIndex||"0",role:"menu","aria-label":o.ariaLabel,"aria-labelledby":o.ariaLabelledBy,"aria-activedescendant":$?Jt():void 0,onFocus:st,onKeyDown:$e,onBlur:yt},Y("menu")),Rt=r({classNames:Q("transition"),in:p,timeout:{enter:120,exit:100},options:o.transitionOptions,unmountOnExit:!0,onEnter:en,onEntered:Wr,onExit:Xr,onExited:Pr},Y("transition"));return S.createElement(Dl,ad({nodeRef:ce},Rt),S.createElement("div",ad({id:o.id,ref:ce},Pt),S.createElement("ul",pt,at)))}return null},tn=In();return o.popup?S.createElement(vu,{element:tn,appendTo:o.appendTo}):tn}));uu.displayName="Menu";const fg=()=>{const[e,t]=se.useState({}),r=se.useMemo(()=>({register:(i,a)=>{t(s=>({...s,[i]:a}))},unregister:i=>{t(a=>{const s={...a};return delete s[i],s})},updateState:(i,a)=>{t(s=>({...s,[i]:a}))}}),[]),n=se.useMemo(()=>{var a;const i=Object.values(e);return{loading:i.some(s=>s.loading),error:((a=i.find(s=>s.error))==null?void 0:a.error)||void 0,errors:i.map(s=>s.error).filter(s=>s!==void 0),hasError:i.some(s=>s.error!==void 0),loadingCount:i.filter(s=>s.loading).length}},[e]),o=se.useCallback(()=>{t(i=>Object.fromEntries(Object.entries(i).map(([a,s])=>[a,{...s,error:void 0}])))},[]);return{ref:r,reset:o,...n}},wa=(e,t,r)=>{const o=se.useRef(`handler-${Math.random().toString(36).slice(2,11)}`).current,[i,a]=se.useState(()=>{const c={loading:!1,value:void 0,error:void 0};return r&&r.register(o,c),c});se.useEffect(()=>()=>{r&&r.unregister(o)},[r,o]);const s=se.useCallback(async(...c)=>{const d={loading:!0,value:void 0,error:void 0};a(d),r&&r.updateState(o,d);try{const m={loading:!1,value:await e(...c),error:void 0};a(m),r&&r.updateState(o,m)}catch(p){let m;p instanceof Error?m=p:m=new Error(typeof p=="object"?JSON.stringify(p):String(p)),console.error(m.message);const y={loading:!1,value:void 0,error:m};a(y),r&&r.updateState(o,y)}},[o,r,...t]),l=se.useCallback(()=>{const c={loading:!1,value:void 0,error:void 0};a(c),r&&r.updateState(o,c)},[o,r]);return se.useMemo(()=>[s,{...i,reset:l}],[s,i,l])},cs=({className:e,disabled:t,mainIcon:r,mainLabel:n,mainTitle:o,mainDataTestId:i,onMainClick:a,secondaryIcon:s,secondaryTitle:l,secondaryDataTestId:c,onSecondaryClick:d,outlined:p=!1,showSecondary:m=!1})=>{const y=!!n,b=m&&s&&d;return ae.jsxs("div",{className:Ni("flex items-center bg-neutral-85 h-40 rounded-full",{"justify-center min-w-40":!y&&!b,"justify-between":b,"px-12":y&&!b},e),children:[ae.jsxs("button",{className:Ni("dock-button-main flex items-center justify-center font-semibold text-neutral-50",{"p-8 h-full":b,"w-full h-40":!b,"dock-button-main-outlined bg-neutral-80 rounded-full fa-lg border-neutral-50 border":p,"opacity-32 cursor-not-allowed":t}),"data-testid":i,disabled:t,onClick:a,title:o,type:"button",children:[ae.jsx("span",{className:"flex items-center justify-center w-24 h-24 text-neutral-40",children:ae.jsx("i",{className:r,"aria-hidden":"true"})}),y&&ae.jsx("span",{className:"ml-4",children:n})]}),b&&ae.jsx("button",{className:"dock-button-secondary flex items-center justify-center w-32 h-full hover:bg-neutral-95 rounded-l-none rounded-r-full","data-testid":c,onClick:d,title:l,type:"button",children:ae.jsx("i",{className:Ni("text-neutral-40",s),"aria-hidden":"true"})})]})};function Vp(){return Vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vp.apply(null,arguments)}function Nm(e){"@babel/helpers - typeof";return Nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nm(e)}function eY(e,t){if(Nm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tY(e){var t=eY(e,"string");return Nm(t)=="symbol"?t:t+""}function rY(e,t,r){return(t=tY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nY(e){if(Array.isArray(e))return e}function oY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function CN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function iY(e,t){if(e){if(typeof e=="string")return CN(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?CN(e,t):void 0}}function aY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1051
+ `,QJ={root:function(t){var r=t.props,n=t.context;return dt("p-menu p-component",{"p-menu-overlay":r.popup,"p-input-filled":n&&n.inputStyle==="filled"||Ur.inputStyle==="filled","p-ripple-disabled":n&&n.ripple===!1||Ur.ripple===!1})},menu:"p-menu-list p-reset",content:function(t){var r=t.item;return dt("p-menuitem-content",{"p-disabled":r.disabled})},action:function(t){var r=t.item;return dt("p-menuitem-link",{"p-disabled":r.disabled})},menuitem:function(t){var r=t.focused;return dt("p-menuitem",{"p-focus":r})},submenuHeader:function(t){var r=t.submenu;return dt("p-submenu-header",{"p-disabled":r.disabled})},separator:"p-menu-separator",label:"p-menuitem-text",icon:"p-menuitem-icon",transition:"p-connected-overlay"},XJ={submenuHeader:function(t){var r=t.submenu;return r.style},menuitem:function(t){var r=t.item;return r.style}},Iv=Ar.extend({defaultProps:{__TYPE:"Menu",id:null,ariaLabel:null,ariaLabelledBy:null,tabIndex:0,model:null,popup:!1,popupAlignment:"left",style:null,className:null,autoZIndex:!0,baseZIndex:0,appendTo:null,onFocus:null,onBlur:null,transitionOptions:null,onShow:null,onHide:null,children:void 0,closeOnEscape:!0},css:{classes:QJ,styles:YJ,inlineStyles:XJ}});function EN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ZJ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?EN(Object(r),!0).forEach(function(n){$J(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):EN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var uu=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Iv.getProps(e,n),i=S.useState(o.id),a=yp(i,2),s=a[0],l=a[1],c=S.useState(!o.popup),d=yp(c,2),p=d[0],m=d[1],y=S.useState(-1),b=yp(y,2),v=b[0],C=b[1],A=S.useState(-1),R=yp(A,2),x=R[0],k=R[1],D=S.useState(!1),F=yp(D,2),$=F[0],U=F[1],G=Iv.setMetaData({props:o,state:{id:s,visible:p,focused:$}}),Y=G.ptm,Q=G.cx,me=G.sx,ne=G.isUnstyled,Ee=function(at,Pt){return Y(at,{context:Pt})};vo(Iv.css.styles,ne,{name:"menu"});var ce=S.useRef(null),_e=S.useRef(null),Ne=S.useRef(null),oe=!!(p&&o.popup&&o.closeOnEscape),Se=k0("menu",oe);F0({callback:function(at){gr(at)},when:oe&&Se,priority:[L0.MENU,Se]});var re=gR({target:Ne,overlay:ce,listener:function(at,Pt){var pt=Pt.valid,Rt=Pt.type;pt&&(n.hideOverlaysOnDocumentScrolling||Rt==="outside"?(gr(at),C(-1)):le.isDocument(at.target)||le.absolutePosition(ce.current,Ne.current,o.popupAlignment))},when:p}),we=yp(re,2),Ae=we[0],Pe=we[1],Oe=function(at){o.popup&&Ps.emit("overlay-click",{originalEvent:at,target:Ne.current})},Ke=function(at,Pt,pt){if(Pt.disabled){at.preventDefault();return}Pt.command&&Pt.command({originalEvent:at,item:Pt}),o.popup&&gr(at),!o.popup&&v!==pt&&C(pt),Pt.url||(at.preventDefault(),at.stopPropagation())},St=function(at,Pt){at&&o.popup&&v!==Pt&&C(Pt)},st=function(at){U(!0),o.popup||(x!==-1?(Ve(x),k(-1)):Ve(0)),o.onFocus&&o.onFocus(at)},yt=function(at){var Pt=at.currentTarget,pt=at.relatedTarget;pt&&Pt.contains(pt)||(U(!1),C(-1),o.onBlur&&o.onBlur(at))},$e=function(at){switch(at.code){case"ArrowDown":ot(at);break;case"ArrowUp":it(at);break;case"Home":Ie(at);break;case"End":tt(at);break;case"Enter":case"NumpadEnter":mt(at);break;case"Space":Wt(at);break;case"Escape":o.popup&&(le.focus(Ne.current),gr(at));case"Tab":o.popup&&p&&gr(at);break}},ot=function(at){var Pt=cr(v);Ve(Pt),at.preventDefault()},it=function(at){if(at.altKey&&o.popup)le.focus(Ne.current),gr(at),at.preventDefault();else{var Pt=At(v);Ve(Pt),at.preventDefault()}},Ie=function(at){Ve(0),at.preventDefault()},tt=function(at){Ve(le.find(ce.current,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1),at.preventDefault()},mt=function(at){var Pt=le.findSingle(ce.current,'li[id="'.concat("".concat(v),'"]')),pt=Pt&&le.findSingle(Pt,'a[data-pc-section="action"]');o.popup&&le.focus(Ne.current),pt?pt.click():Pt&&Pt.click(),at.preventDefault()},Wt=function(at){mt(at)},cr=function(at){var Pt=le.find(ce.current,'li[data-pc-section="menuitem"][data-p-disabled="false"]'),pt=SN(Pt).findIndex(function(Rt){return Rt.id===at});return pt>-1?pt+1:0},At=function(at){var Pt=le.find(ce.current,'li[data-pc-section="menuitem"][data-p-disabled="false"]'),pt=SN(Pt).findIndex(function(Rt){return Rt.id===at});return pt>-1?pt-1:0},Ve=function(at){var Pt=le.find(ce.current,'li[data-pc-section="menuitem"][data-p-disabled="false"]'),pt=at>=Pt.length?Pt.length-1:at<0?0:at;pt>-1&&C(Pt[pt].getAttribute("id"))},Jt=function(){return v!==-1?v:null},ar=function(at){o.popup&&(p?gr(at):pr(at))},pr=function(at){Ne.current=at.currentTarget,m(!0),o.onShow&&o.onShow(at)},gr=function(at){Ne.current=at.currentTarget,m(!1),o.onHide&&o.onHide(at)},en=function(){le.addStyles(ce.current,{position:"absolute",top:"0",left:"0"}),xo.set("menu",ce.current,n&&n.autoZIndex||Ur.autoZIndex,o.baseZIndex||n&&n.zIndex.menu||Ur.zIndex.menu),le.absolutePosition(ce.current,Ne.current,o.popupAlignment),o.popup&&(le.focus(_e.current),Ve(0))},Wr=function(){Ae()},Xr=function(){Ne.current=null,Pe()},Pr=function(){xo.clear(ce.current)};Go(function(){s||l(ms())}),Ci(function(){xo.clear(ce.current)}),S.useImperativeHandle(t,function(){return{props:o,toggle:ar,show:pr,hide:gr,getElement:function(){return ce.current},getTarget:function(){return Ne.current}}});var Br=function(at,Pt){var pt=s+"_sub_"+Pt,Rt=at.items.map(function(ge,be){return jr(ge,be,pt)}),rt=r({id:pt,role:"none",className:dt(at.className,Q("submenuHeader",{submenu:at})),style:me("submenuHeader",{submenu:at}),"data-p-disabled":at.disabled},Y("submenuHeader"));return S.createElement(S.Fragment,{key:pt},S.createElement("li",ad({},rt,{key:pt}),at.label),Rt)},Hr=function(at,Pt){if(at.visible===!1)return null;var pt=s+"_separator_"+Pt,Rt=r({id:pt,className:dt(at.className,Q("separator")),role:"separator"},Y("separator"));return S.createElement("li",ad({},Rt,{key:pt}))},jr=function(at,Pt){var pt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(at.visible===!1)return null;var Rt={item:at,index:Pt,parentId:pt},rt=dt("p-menuitem-link",{"p-disabled":at.disabled}),ge=dt("p-menuitem-icon",at.icon),be=r({className:Q("icon")},Ee("icon",Rt)),We=nn.getJSXIcon(at.icon,ZJ({},be),{props:o}),Gt=r({className:Q("label")},Ee("label",Rt)),Qt=at.label&&S.createElement("span",Gt,at.label),Zt=at.id||(pt||s)+"_"+Pt,Cr=r({onClick:function(Dr){return Ke(Dr,at,Zt)},onMouseMove:function(Dr){return St(Dr,Zt)},className:Q("content",{item:at})},Ee("content",Rt)),zt=r({href:at.url||"#",className:Q("action",{item:at}),onFocus:function(Dr){return Dr.stopPropagation()},target:at.target,tabIndex:"-1","aria-label":at.label,"aria-disabled":at.disabled,"data-p-disabled":at.disabled},Ee("action",Rt)),Qe=S.createElement("div",Cr,S.createElement("a",zt,We,Qt,S.createElement(Co,null)));if(at.template){var Et={onClick:function(Dr){return Ke(Dr,at,Zt)},onMouseMove:function(Dr){return St(Dr,Zt)},className:rt,tabIndex:"-1",labelClassName:"p-menuitem-text",iconClassName:ge,element:Qe,props:o};Qe=pe.getJSXElement(at.template,at,Et)}var Ht=r({id:Zt,className:dt(at.className,Q("menuitem",{focused:v===Zt})),onClick:function(Dr){return Ke(Dr,at,Zt)},style:me("menuitem",{item:at}),role:"menuitem","aria-label":at.label,"aria-disabled":at.disabled,"data-p-focused":Jt()===Zt,"data-p-disabled":at.disabled||!1},Ee("menuitem",Rt));return S.createElement("li",ad({},Ht,{key:Zt}),Qe)},zr=function(at,Pt){return at.visible===!1?null:at.separator?Hr(at,Pt):at.items?Br(at,Pt):jr(at,Pt)},Jr=function(){return o.model.map(zr)},In=function(){if(o.model){var at=Jr(),Pt=r({className:dt(o.className,Q("root",{context:n})),style:o.style,onClick:function(ge){return Oe(ge)}},Iv.getOtherProps(o),Y("root")),pt=r({ref:_e,className:Q("menu"),id:s+"_list",tabIndex:o.tabIndex||"0",role:"menu","aria-label":o.ariaLabel,"aria-labelledby":o.ariaLabelledBy,"aria-activedescendant":$?Jt():void 0,onFocus:st,onKeyDown:$e,onBlur:yt},Y("menu")),Rt=r({classNames:Q("transition"),in:p,timeout:{enter:120,exit:100},options:o.transitionOptions,unmountOnExit:!0,onEnter:en,onEntered:Wr,onExit:Xr,onExited:Pr},Y("transition"));return S.createElement(Dl,ad({nodeRef:ce},Rt),S.createElement("div",ad({id:o.id,ref:ce},Pt),S.createElement("ul",pt,at)))}return null},tn=In();return o.popup?S.createElement(vu,{element:tn,appendTo:o.appendTo}):tn}));uu.displayName="Menu";const fg=()=>{const[e,t]=ae.useState({}),r=ae.useMemo(()=>({register:(i,a)=>{t(s=>({...s,[i]:a}))},unregister:i=>{t(a=>{const s={...a};return delete s[i],s})},updateState:(i,a)=>{t(s=>({...s,[i]:a}))}}),[]),n=ae.useMemo(()=>{var a;const i=Object.values(e);return{loading:i.some(s=>s.loading),error:((a=i.find(s=>s.error))==null?void 0:a.error)||void 0,errors:i.map(s=>s.error).filter(s=>s!==void 0),hasError:i.some(s=>s.error!==void 0),loadingCount:i.filter(s=>s.loading).length}},[e]),o=ae.useCallback(()=>{t(i=>Object.fromEntries(Object.entries(i).map(([a,s])=>[a,{...s,error:void 0}])))},[]);return{ref:r,reset:o,...n}},wa=(e,t,r)=>{const o=ae.useRef(`handler-${Math.random().toString(36).slice(2,11)}`).current,[i,a]=ae.useState(()=>{const c={loading:!1,value:void 0,error:void 0};return r&&r.register(o,c),c});ae.useEffect(()=>()=>{r&&r.unregister(o)},[r,o]);const s=ae.useCallback(async(...c)=>{const d={loading:!0,value:void 0,error:void 0};a(d),r&&r.updateState(o,d);try{const m={loading:!1,value:await e(...c),error:void 0};a(m),r&&r.updateState(o,m)}catch(p){let m;p instanceof Error?m=p:m=new Error(typeof p=="object"?JSON.stringify(p):String(p)),console.error(m.message);const y={loading:!1,value:void 0,error:m};a(y),r&&r.updateState(o,y)}},[o,r,...t]),l=ae.useCallback(()=>{const c={loading:!1,value:void 0,error:void 0};a(c),r&&r.updateState(o,c)},[o,r]);return ae.useMemo(()=>[s,{...i,reset:l}],[s,i,l])},cs=({className:e,disabled:t,mainIcon:r,mainLabel:n,mainTitle:o,mainDataTestId:i,onMainClick:a,secondaryIcon:s,secondaryTitle:l,secondaryDataTestId:c,onSecondaryClick:d,outlined:p=!1,showSecondary:m=!1})=>{const y=!!n,b=m&&s&&d;return se.jsxs("div",{className:Ni("flex items-center bg-neutral-85 h-40 rounded-full",{"justify-center min-w-40":!y&&!b,"justify-between":b,"px-12":y&&!b},e),children:[se.jsxs("button",{className:Ni("dock-button-main flex items-center justify-center font-semibold text-neutral-50",{"p-8 h-full":b,"w-full h-40":!b,"dock-button-main-outlined bg-neutral-80 rounded-full fa-lg border-neutral-50 border":p,"opacity-32 cursor-not-allowed":t}),"data-testid":i,disabled:t,onClick:a,title:o,type:"button",children:[se.jsx("span",{className:"flex items-center justify-center w-24 h-24 text-neutral-40",children:se.jsx("i",{className:r,"aria-hidden":"true"})}),y&&se.jsx("span",{className:"ml-4",children:n})]}),b&&se.jsx("button",{className:"dock-button-secondary flex items-center justify-center w-32 h-full hover:bg-neutral-95 rounded-l-none rounded-r-full","data-testid":c,onClick:d,title:l,type:"button",children:se.jsx("i",{className:Ni("text-neutral-40",s),"aria-hidden":"true"})})]})};function Vp(){return Vp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vp.apply(null,arguments)}function Nm(e){"@babel/helpers - typeof";return Nm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nm(e)}function eY(e,t){if(Nm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Nm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function tY(e){var t=eY(e,"string");return Nm(t)=="symbol"?t:t+""}function rY(e,t,r){return(t=tY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nY(e){if(Array.isArray(e))return e}function oY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function CN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function iY(e,t){if(e){if(typeof e=="string")return CN(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?CN(e,t):void 0}}function aY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1052
1052
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eE(e,t){return nY(e)||oY(e,t)||iY(e,t)||aY()}var sY={closeButton:"p-sidebar-close p-sidebar-icon p-link",closeIcon:"p-sidebar-close-icon",mask:function(t){var r=t.props,n=t.maskVisibleState,o=["left","right","top","bottom"],i=o.find(function(a){return a===r.position});return dt("p-sidebar-mask",i&&!r.fullScreen?"p-sidebar-".concat(i):"",{"p-component-overlay p-component-overlay-enter":r.modal,"p-sidebar-mask-scrollblocker":r.blockScroll,"p-sidebar-visible":n,"p-sidebar-full":r.fullScreen},r.maskClassName)},header:function(t){var r=t.props;return dt("p-sidebar-header",{"p-sidebar-custom-header":r.header})},content:"p-sidebar-content",icons:"p-sidebar-icons",root:function(t){t.props;var r=t.context;return dt("p-sidebar p-component",{"p-input-filled":r&&r.inputStyle==="filled"||Ur.inputStyle==="filled","p-ripple-disabled":r&&r.ripple===!1||Ur.ripple===!1})},transition:"p-sidebar"},lY=`
1053
1053
  @layer primereact {
1054
1054
  .p-sidebar-mask {
@@ -1257,7 +1257,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1257
1257
  }
1258
1258
  }
1259
1259
  }
1260
- `,uY={mask:function(t){var r=t.props;return{position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:r.position==="left"?"flex-start":r.position==="right"?"flex-end":"center",alignItems:r.position==="top"?"flex-start":r.position==="bottom"?"flex-end":"center"}}},Av=Ar.extend({defaultProps:{__TYPE:"Sidebar",appendTo:null,ariaCloseLabel:null,baseZIndex:0,blockScroll:!1,children:void 0,className:null,closeIcon:null,closeOnEscape:!0,content:null,dismissable:!0,fullScreen:!1,header:null,icons:null,id:null,maskClassName:null,maskStyle:null,modal:!0,onHide:null,onShow:null,position:"left",showCloseIcon:!0,style:null,transitionOptions:null,visible:!1},css:{classes:sY,styles:lY,inlineStyles:uY}});function wN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(r),!0).forEach(function(n){rY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var wR=S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Av.getProps(e,n),i=S.useState(!1),a=eE(i,2),s=a[0],l=a[1],c=S.useState(!1),d=eE(c,2),p=d[0],m=d[1],y=Av.setMetaData({props:o,state:{containerVisible:s}}),b=y.ptm,v=y.cx,C=y.sx,A=y.isUnstyled;vo(Av.css.styles,A,{name:"sidebar"});var R=S.useRef(null),x=S.useRef(null),k=S.useRef(null),D=p&&o.closeOnEscape,F=k0("sidebar",D);F0({callback:function(mt){Ee(mt)},when:D&&F,priority:[L0.SIDEBAR,F]});var $=Aa({type:"click",listener:function(mt){mt.button===0&&Q(mt)&&Ee(mt)}}),U=eE($,2),G=U[0],Y=U[1],Q=function(mt){return R&&R.current&&!R.current.contains(mt.target)},me=function(){var mt=document.activeElement,Wt=mt&&R&&R.current.contains(mt);!Wt&&o.showCloseIcon&&k.current&&k.current.focus()},ne=function(mt){o.dismissable&&o.modal&&x.current===mt.target&&Ee(mt)},Ee=function(mt){o.onHide(),mt.preventDefault()},ce=function(){o.onShow&&o.onShow(),me(),oe()},_e=function(){o.modal&&!A()&&le.addClass(x.current,"p-component-overlay-leave")},Ne=function(){xo.clear(x.current),l(!1),Se()},oe=function(){o.dismissable&&!o.modal&&G(),o.blockScroll&&le.blockBodyScroll()},Se=function(){Y(),o.blockScroll&&le.unblockBodyScroll()};S.useImperativeHandle(t,function(){return{props:o,getElement:function(){return R.current},getMask:function(){return x.current},getCloseIcon:function(){return k.current}}}),Go(function(){o.visible&&l(!0)}),hn(function(){o.visible&&!s&&l(!0),o.visible!==p&&s&&m(o.visible)},[o.visible,s,p]),hn(function(){s&&(xo.set("modal",x.current,n&&n.autoZIndex||Ur.autoZIndex,o.baseZIndex||n&&n.zIndex.modal||Ur.zIndex.modal),m(!0))},[s]),hn(function(){p&&(Y(),o.dismissable&&!o.modal&&G())},[o.dismissable,o.modal,p]),Ci(function(){Se(),x.current&&xo.clear(x.current)});var re=function(){var mt=r({type:"button",ref:k,className:v("closeButton"),onClick:function(Jt){return Ee(Jt)},"aria-label":o.ariaCloseLabel||Bo("close")},b("closeButton")),Wt=r({className:v("closeIcon")},b("closeIcon")),cr=o.closeIcon||S.createElement(wc,Wt),At=nn.getJSXIcon(cr,cY({},Wt),{props:o});return o.showCloseIcon?S.createElement("button",mt,At,S.createElement(Co,null)):null},we=function(){return o.header?pe.getJSXElement(o.header,o):null},Ae=function(){return o.icons?pe.getJSXElement(o.icons,o):null},Pe=r({ref:x,style:C("mask"),className:v("mask",{maskVisibleState:s}),onMouseDown:function(mt){return ne(mt)}},b("mask")),Oe=r({id:o.id,className:dt(o.className,v("root",{context:n})),style:o.style,role:"complementary"},Av.getOtherProps(o),b("root")),Ke=r({className:v("header")},b("header")),St=r({className:v("content")},b("content")),st=r({className:v("icons")},b("icons")),yt={enter:o.fullScreen?150:300,exit:o.fullScreen?150:300},$e=r({classNames:v("transition"),in:p,timeout:yt,options:o.transitionOptions,unmountOnExit:!0,onEntered:ce,onExiting:_e,onExited:Ne},b("transition")),ot=function(){var mt={closeIconRef:k,hide:Ee};return S.createElement("div",Pe,S.createElement(Dl,Vp({nodeRef:R},$e),S.createElement("div",Vp({ref:R},Oe),pe.getJSXElement(e.content,mt))))},it=function(){var mt=re(),Wt=Ae(),cr=we();return S.createElement("div",Pe,S.createElement(Dl,Vp({nodeRef:R},$e),S.createElement("div",Vp({ref:R},Oe),S.createElement("div",Ke,cr,S.createElement("div",st,Wt,mt)),S.createElement("div",St,o.children))))},Ie=function(){var mt=e!=null&&e.content?ot():it();return S.createElement(vu,{element:mt,appendTo:o.appendTo,visible:!0})};return s&&Ie()});wR.displayName="Sidebar";const mL=({children:e,onHide:t,className:r,visible:n=!1,width:o="50vw",header:i=""})=>window.innerWidth<fL?ae.jsx(wR,{blockScroll:!0,className:Ni("h-full",r),closeIcon:ae.jsx("i",{className:"fa-regular fa-xmark fa-lg","aria-hidden":"true"}),fullScreen:!0,header:i,onHide:t,position:"bottom",pt:{header:{className:"border-b border-neutral-80 font-bold text-l"},root:{className:"[&_.p-sidebar-content]:px-0 h-fit"},content:{className:"p-0"}},visible:n,children:e}):ae.jsx(H0,{blockScroll:!0,className:Ni("h-[60vh]",r),closable:!0,closeIcon:ae.jsx("i",{className:"fa-regular fa-xmark fa-lg","aria-hidden":"true"}),contentStyle:{padding:"0"},dismissableMask:!0,draggable:!0,focusOnShow:!1,header:i,headerStyle:{borderBottom:"1px solid var(--neutral-80)",padding:"16px"},onHide:t,pt:{headerTitle:{className:"!font-bold !text-l"}},style:{width:o},visible:n,children:e}),dY=({className:e,icon:t,onClick:r,title:n,id:o})=>ae.jsxs("button",{"aria-label":n,className:Ni("flex items-center justify-start gap-4 w-full h-40 px-8 rounded-l border border-neutral-80 hover:bg-neutral-85",e),id:o,onClick:r,children:[ae.jsx("span",{className:"flex items-center justify-center w-24 h-24",children:ae.jsx("i",{className:t,"aria-hidden":"true"})}),ae.jsx("span",{className:"flex-1 text-left",children:n})]}),pY=()=>{const{sessionStarted:e}=ll(),{selectedSettingsTab:t,setSelectedSettingsTab:r}=V9(),n=[{id:Qa.Audio,icon:"fa-regular fa-microphone",title:"Audio",show:!0},{id:Qa.Video,icon:"fa-regular fa-video",title:"Video",show:!0},{id:Qa.Background,icon:"fa-regular fa-image",title:"Fondos",show:e}];return ae.jsx("div",{className:"flex flex-col sm:flex-row md:flex-col w-full p-16 md:p-0 gap-16 md:gap-0 md:w-fit md:min-w-[200px] md:flex-shrink-0 overflow-visible",children:n.map(({id:o,icon:i,title:a,show:s})=>s!==!1&&ae.jsx(dY,{className:Ni("font-bold md:rounded-none md:border-0",{"bg-neutral-95":t===o}),icon:i,id:o,onClick:()=>r(o),title:a},o))})};function c0(){return c0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c0.apply(null,arguments)}function Mm(e){"@babel/helpers - typeof";return Mm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mm(e)}function fY(e,t){if(Mm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hY(e){var t=fY(e,"string");return Mm(t)=="symbol"?t:t+""}function mY(e,t,r){return(t=hY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gY={root:function(t){var r=t.props;return r.mode==="indeterminate"?dt("p-progressbar p-component p-progressbar-indeterminate"):dt("p-progressbar p-component p-progressbar-determinate")},value:"p-progressbar-value p-progressbar-value-animate",label:"p-progressbar-label",container:"p-progressbar-indeterminate-container"},vY=`
1260
+ `,uY={mask:function(t){var r=t.props;return{position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:r.position==="left"?"flex-start":r.position==="right"?"flex-end":"center",alignItems:r.position==="top"?"flex-start":r.position==="bottom"?"flex-end":"center"}}},Av=Ar.extend({defaultProps:{__TYPE:"Sidebar",appendTo:null,ariaCloseLabel:null,baseZIndex:0,blockScroll:!1,children:void 0,className:null,closeIcon:null,closeOnEscape:!0,content:null,dismissable:!0,fullScreen:!1,header:null,icons:null,id:null,maskClassName:null,maskStyle:null,modal:!0,onHide:null,onShow:null,position:"left",showCloseIcon:!0,style:null,transitionOptions:null,visible:!1},css:{classes:sY,styles:lY,inlineStyles:uY}});function wN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function cY(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wN(Object(r),!0).forEach(function(n){rY(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var wR=S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Av.getProps(e,n),i=S.useState(!1),a=eE(i,2),s=a[0],l=a[1],c=S.useState(!1),d=eE(c,2),p=d[0],m=d[1],y=Av.setMetaData({props:o,state:{containerVisible:s}}),b=y.ptm,v=y.cx,C=y.sx,A=y.isUnstyled;vo(Av.css.styles,A,{name:"sidebar"});var R=S.useRef(null),x=S.useRef(null),k=S.useRef(null),D=p&&o.closeOnEscape,F=k0("sidebar",D);F0({callback:function(mt){Ee(mt)},when:D&&F,priority:[L0.SIDEBAR,F]});var $=Aa({type:"click",listener:function(mt){mt.button===0&&Q(mt)&&Ee(mt)}}),U=eE($,2),G=U[0],Y=U[1],Q=function(mt){return R&&R.current&&!R.current.contains(mt.target)},me=function(){var mt=document.activeElement,Wt=mt&&R&&R.current.contains(mt);!Wt&&o.showCloseIcon&&k.current&&k.current.focus()},ne=function(mt){o.dismissable&&o.modal&&x.current===mt.target&&Ee(mt)},Ee=function(mt){o.onHide(),mt.preventDefault()},ce=function(){o.onShow&&o.onShow(),me(),oe()},_e=function(){o.modal&&!A()&&le.addClass(x.current,"p-component-overlay-leave")},Ne=function(){xo.clear(x.current),l(!1),Se()},oe=function(){o.dismissable&&!o.modal&&G(),o.blockScroll&&le.blockBodyScroll()},Se=function(){Y(),o.blockScroll&&le.unblockBodyScroll()};S.useImperativeHandle(t,function(){return{props:o,getElement:function(){return R.current},getMask:function(){return x.current},getCloseIcon:function(){return k.current}}}),Go(function(){o.visible&&l(!0)}),hn(function(){o.visible&&!s&&l(!0),o.visible!==p&&s&&m(o.visible)},[o.visible,s,p]),hn(function(){s&&(xo.set("modal",x.current,n&&n.autoZIndex||Ur.autoZIndex,o.baseZIndex||n&&n.zIndex.modal||Ur.zIndex.modal),m(!0))},[s]),hn(function(){p&&(Y(),o.dismissable&&!o.modal&&G())},[o.dismissable,o.modal,p]),Ci(function(){Se(),x.current&&xo.clear(x.current)});var re=function(){var mt=r({type:"button",ref:k,className:v("closeButton"),onClick:function(Jt){return Ee(Jt)},"aria-label":o.ariaCloseLabel||Bo("close")},b("closeButton")),Wt=r({className:v("closeIcon")},b("closeIcon")),cr=o.closeIcon||S.createElement(wc,Wt),At=nn.getJSXIcon(cr,cY({},Wt),{props:o});return o.showCloseIcon?S.createElement("button",mt,At,S.createElement(Co,null)):null},we=function(){return o.header?pe.getJSXElement(o.header,o):null},Ae=function(){return o.icons?pe.getJSXElement(o.icons,o):null},Pe=r({ref:x,style:C("mask"),className:v("mask",{maskVisibleState:s}),onMouseDown:function(mt){return ne(mt)}},b("mask")),Oe=r({id:o.id,className:dt(o.className,v("root",{context:n})),style:o.style,role:"complementary"},Av.getOtherProps(o),b("root")),Ke=r({className:v("header")},b("header")),St=r({className:v("content")},b("content")),st=r({className:v("icons")},b("icons")),yt={enter:o.fullScreen?150:300,exit:o.fullScreen?150:300},$e=r({classNames:v("transition"),in:p,timeout:yt,options:o.transitionOptions,unmountOnExit:!0,onEntered:ce,onExiting:_e,onExited:Ne},b("transition")),ot=function(){var mt={closeIconRef:k,hide:Ee};return S.createElement("div",Pe,S.createElement(Dl,Vp({nodeRef:R},$e),S.createElement("div",Vp({ref:R},Oe),pe.getJSXElement(e.content,mt))))},it=function(){var mt=re(),Wt=Ae(),cr=we();return S.createElement("div",Pe,S.createElement(Dl,Vp({nodeRef:R},$e),S.createElement("div",Vp({ref:R},Oe),S.createElement("div",Ke,cr,S.createElement("div",st,Wt,mt)),S.createElement("div",St,o.children))))},Ie=function(){var mt=e!=null&&e.content?ot():it();return S.createElement(vu,{element:mt,appendTo:o.appendTo,visible:!0})};return s&&Ie()});wR.displayName="Sidebar";const mL=({children:e,onHide:t,className:r,visible:n=!1,width:o="50vw",header:i=""})=>window.innerWidth<fL?se.jsx(wR,{blockScroll:!0,className:Ni("h-full",r),closeIcon:se.jsx("i",{className:"fa-regular fa-xmark fa-lg","aria-hidden":"true"}),fullScreen:!0,header:i,onHide:t,position:"bottom",pt:{header:{className:"border-b border-neutral-80 font-bold text-l"},root:{className:"[&_.p-sidebar-content]:px-0 h-fit"},content:{className:"p-0"}},visible:n,children:e}):se.jsx(H0,{blockScroll:!0,className:Ni("h-[60vh]",r),closable:!0,closeIcon:se.jsx("i",{className:"fa-regular fa-xmark fa-lg","aria-hidden":"true"}),contentStyle:{padding:"0"},dismissableMask:!0,draggable:!0,focusOnShow:!1,header:i,headerStyle:{borderBottom:"1px solid var(--neutral-80)",padding:"16px"},onHide:t,pt:{headerTitle:{className:"!font-bold !text-l"}},style:{width:o},visible:n,children:e}),dY=({className:e,icon:t,onClick:r,title:n,id:o})=>se.jsxs("button",{"aria-label":n,className:Ni("flex items-center justify-start gap-4 w-full h-40 px-8 rounded-l border border-neutral-80 hover:bg-neutral-85",e),id:o,onClick:r,children:[se.jsx("span",{className:"flex items-center justify-center w-24 h-24",children:se.jsx("i",{className:t,"aria-hidden":"true"})}),se.jsx("span",{className:"flex-1 text-left",children:n})]}),pY=()=>{const{sessionStarted:e}=ll(),{selectedSettingsTab:t,setSelectedSettingsTab:r}=V9(),n=[{id:Qa.Audio,icon:"fa-regular fa-microphone",title:"Audio",show:!0},{id:Qa.Video,icon:"fa-regular fa-video",title:"Video",show:!0},{id:Qa.Background,icon:"fa-regular fa-image",title:"Fondos",show:e}];return se.jsx("div",{className:"flex flex-col sm:flex-row md:flex-col w-full p-16 md:p-0 gap-16 md:gap-0 md:w-fit md:min-w-[200px] md:flex-shrink-0 overflow-visible",children:n.map(({id:o,icon:i,title:a,show:s})=>s!==!1&&se.jsx(dY,{className:Ni("font-bold md:rounded-none md:border-0",{"bg-neutral-95":t===o}),icon:i,id:o,onClick:()=>r(o),title:a},o))})};function c0(){return c0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},c0.apply(null,arguments)}function Mm(e){"@babel/helpers - typeof";return Mm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mm(e)}function fY(e,t){if(Mm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hY(e){var t=fY(e,"string");return Mm(t)=="symbol"?t:t+""}function mY(e,t,r){return(t=hY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var gY={root:function(t){var r=t.props;return r.mode==="indeterminate"?dt("p-progressbar p-component p-progressbar-indeterminate"):dt("p-progressbar p-component p-progressbar-determinate")},value:"p-progressbar-value p-progressbar-value-animate",label:"p-progressbar-label",container:"p-progressbar-indeterminate-container"},vY=`
1261
1261
  @layer primereact {
1262
1262
  .p-progressbar {
1263
1263
  position: relative;
@@ -1503,7 +1503,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1503
1503
  }
1504
1504
  }
1505
1505
  `,LY={wrapper:function(t){var r=t.props;return{maxHeight:r.scrollHeight||"auto"}},panel:function(t){var r=t.props;return NY({},r.panelStyle)}},Tv=Ar.extend({defaultProps:{__TYPE:"Dropdown",__parentMetadata:null,appendTo:null,ariaLabel:null,ariaLabelledBy:null,autoFocus:!1,autoOptionFocus:!1,checkmark:!1,children:void 0,className:null,clearIcon:null,collapseIcon:null,dataKey:null,disabled:!1,dropdownIcon:null,editable:!1,emptyFilterMessage:null,emptyMessage:null,filter:!1,filterBy:null,filterClearIcon:null,filterDelay:300,filterIcon:null,filterInputAutoFocus:!1,filterLocale:void 0,filterMatchMode:"contains",filterPlaceholder:null,filterTemplate:null,focusInputRef:null,focusOnHover:!0,highlightOnSelect:!0,id:null,inputId:null,inputRef:null,invalid:!1,itemTemplate:null,loading:!1,loadingIcon:null,maxLength:null,name:null,onBlur:null,onChange:null,onClick:null,onContextMenu:null,onFilter:null,onFocus:null,onHide:null,onMouseDown:null,onShow:null,optionDisabled:null,optionGroupChildren:"items",optionGroupLabel:null,optionGroupTemplate:null,optionLabel:null,options:null,optionValue:null,panelClassName:null,panelFooterTemplate:null,panelStyle:null,placeholder:null,required:!1,resetFilterOnHide:!1,scrollHeight:"200px",selectOnFocus:!1,showClear:!1,showFilterClear:!1,showOnFocus:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,transitionOptions:null,useOptionAsValue:!1,value:null,valueTemplate:null,variant:null,virtualScrollerOptions:null},css:{classes:MY,styles:kY,inlineStyles:LY}}),bL=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",Al({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("rect",{width:"1",height:"1",fill:"currentColor",fillOpacity:"0"}))}));bL.displayName="BlankIcon";var SL=S.memo(function(e){var t=Vr(),r=e.ptm,n=e.cx,o=e.selected,i=e.disabled,a=e.option,s=e.label,l=e.index,c=e.focusedOptionIndex,d=e.ariaSetSize,p=e.checkmark,m=e.highlightOnSelect,y=e.onInputKeyDown,b=function(D){return r(D,{context:{selected:o,disabled:i,focused:l===c}})},v=function(D,F){e.onClick&&e.onClick({originalEvent:D,option:a})},C=e.template?pe.getJSXElement(e.template,e.option):e.label,A=t({id:"dropdownItem_".concat(l),role:"option",className:dt(a.className,n("item",{selected:o,disabled:i,label:s,index:l,focusedOptionIndex:c,highlightOnSelect:m})),style:e.style,tabIndex:0,onClick:function(D){return v(D)},onKeyDown:function(D){return y(D)},onMouseMove:function(D){return e==null?void 0:e.onMouseMove(D,l)},"aria-setsize":d,"aria-posinset":l+1,"aria-label":s,"aria-selected":o,"data-p-highlight":o,"data-p-focused":c===l,"data-p-disabled":i},b("item")),R=t({className:n("itemLabel")},b("itemLabel")),x=function(){if(o){var D=t({className:n("checkIcon")},b("checkIcon"));return S.createElement(Cc,D)}var F=t({className:n("blankIcon")},b("blankIcon"));return S.createElement(bL,F)};return S.createElement("li",Al({key:e.label},A),p&&x(),S.createElement("span",R,C),S.createElement(Co,null))});SL.displayName="DropdownItem";function _N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function qs(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_N(Object(r),!0).forEach(function(n){$0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_N(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var EL=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=e.ptm,o=e.cx,i=e.sx,a=S.useContext(qr),s=S.useRef(null),l=!(e.visibleOptions&&e.visibleOptions.length)&&e.hasFilter,c=e.visibleOptions?e.visibleOptions.length:0,d={filter:function(Y){return b(Y)},reset:function(){return e.resetFilter()}},p=function(Y,Q){return n(Y,qs({hostName:e.hostName},Q))},m=function(){e.onEnter(function(){if(e.virtualScrollerRef.current){var Y=e.getSelectedOptionIndex();Y!==-1&&setTimeout(function(){return e.virtualScrollerRef.current.scrollToIndex(Y)},0)}})},y=function(){e.onEntered(function(){e.filter&&e.filterInputAutoFocus&&le.focus(s.current,!1)})},b=function(Y){e.onFilterInputChange&&e.onFilterInputChange(Y)},v=function(){if(e.panelFooterTemplate){var Y=pe.getJSXElement(e.panelFooterTemplate,e,e.onOverlayHide),Q=r({className:o("footer")},p("footer"));return S.createElement("div",Q,Y)}return null},C=function(Y,Q){if(e.focusOnHover){var me;e==null||(me=e.changeFocusedOptionIndex)===null||me===void 0||me.call(e,Y,Q)}},A=function(Y,Q){var me=pe.getJSXElement(Y,e)||va(Q?"emptyFilterMessage":"emptyMessage"),ne=r({className:o("emptyMessage")},p("emptyMessage"));return S.createElement("li",ne,me)},R=function(Y,Q){var me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ne={height:me.props?me.props.itemSize:void 0};if(ne=qs(qs({},ne),Y.style),Y.group&&e.optionGroupLabel){var Ee=e.optionGroupLabel,ce=e.optionGroupTemplate?pe.getJSXElement(e.optionGroupTemplate,Y,Q):e.getOptionGroupLabel(Y),_e=Q+"_"+e.getOptionGroupRenderKey(Y),Ne=r({className:o("itemGroup",{optionGroupLabel:Ee}),style:ne,"data-p-highlight":e.selected},p("itemGroup")),oe=r({className:o("itemGroupLabel")},p("itemGroupLabel"));return S.createElement("li",Al({key:_e},Ne),S.createElement("span",oe,ce))}var Se=e.getOptionRenderKey(Y)+"_"+Q,re=e.getOptionLabel(Y),we=e.isOptionDisabled(Y);return S.createElement(SL,{key:Se,label:re,index:Q,focusedOptionIndex:e.focusedOptionIndex,option:Y,ariaSetSize:c,onInputKeyDown:e.onInputKeyDown,style:ne,template:e.itemTemplate,selected:e.isSelected(Y),highlightOnSelect:e.highlightOnSelect,disabled:we,onClick:e.onOptionClick,onMouseMove:C,ptm:n,cx:o,checkmark:e.checkmark})},x=function(){return pe.isNotEmpty(e.visibleOptions)?e.visibleOptions.map(R):e.hasFilter?A(e.emptyFilterMessage,!0):A(e.emptyMessage)},k=function(){if(e.showFilterClear&&e.filterValue){var Y=va("clear"),Q=r({className:o("filterClearIcon"),"aria-label":Y,onClick:function(){return e.onFilterClearIconClick(function(){return le.focus(s.current)})}},p("filterClearIcon")),me=e.filterClearIcon||S.createElement(wc,Q),ne=nn.getJSXIcon(me,qs({},Q),{props:e});return ne}return null},D=function(){if(e.filter){var Y=k(),Q=r({className:o("filterIcon")},p("filterIcon")),me=e.filterIcon||S.createElement(vL,Q),ne=nn.getJSXIcon(me,qs({},Q),{props:e}),Ee=r({className:o("filterContainer",{clearIcon:Y})},p("filterContainer")),ce=r({ref:s,type:"text",autoComplete:"off",className:o("filterInput",{context:a}),placeholder:e.filterPlaceholder,onKeyDown:e.onFilterInputKeyDown,onChange:function(re){return b(re)},value:e.filterValue},p("filterInput")),_e=S.createElement("div",Ee,S.createElement("input",ce),Y,ne);if(e.filterTemplate){var Ne={className:dt("p-dropdown-filter-container",{"p-dropdown-clearable-filter":!!Y}),element:_e,filterOptions:d,filterInputKeyDown:e.onFilterInputKeyDown,filterInputChange:b,filterIconClassName:"p-dropdown-filter-icon",clearIcon:Y,props:e};_e=pe.getJSXElement(e.filterTemplate,Ne)}var oe=r({className:o("header")},p("header"));return S.createElement("div",oe,_e)}return null},F=function(){if(e.virtualScrollerOptions){var Y=qs(qs({},e.virtualScrollerOptions),{style:qs(qs({},e.virtualScrollerOptions.style),{height:e.scrollHeight}),className:dt("p-dropdown-items-wrapper",e.virtualScrollerOptions.className),items:e.visibleOptions,autoSize:!0,onLazyLoad:function(ce){return e.virtualScrollerOptions.onLazyLoad(qs(qs({},ce),{filter:e.filterValue}))},itemTemplate:function(ce,_e){return ce&&R(ce,_e.index,_e)},contentTemplate:function(ce){var _e=ce.children||[],Ne=e.hasFilter?e.emptyFilterMessage:e.emptyMessage,oe=l||(_e==null?void 0:_e.length)===0?A(Ne):_e,Se=r({ref:ce.contentRef,style:ce.style,className:dt(ce.className,o("list",{virtualScrollerProps:e.virtualScrollerOptions})),role:"listbox","aria-label":Bo("listLabel")},p("list"));return S.createElement("ul",Se,oe)}});return S.createElement(IR,Al({ref:e.virtualScrollerRef},Y,{pt:n("virtualScroller")}))}var Q=x(),me=r({className:o("wrapper"),style:i("wrapper")},p("wrapper")),ne=r({className:o("list"),role:"listbox","aria-label":Bo("listLabel")},p("list"));return S.createElement("div",me,S.createElement("ul",ne,Q))},$=function(){var Y=D(),Q=F(),me=v(),ne=r({className:dt(e.panelClassName,o("panel",{context:a})),style:i("panel"),onClick:e.onClick,"data-pr-is-overlay":!0},p("panel")),Ee=r({classNames:o("transition"),in:e.in,timeout:{enter:120,exit:100},options:e.transitionOptions,unmountOnExit:!0,onEnter:m,onEntered:y,onExit:e.onExit,onExited:e.onExited},p("transition"));return S.createElement(Dl,Al({nodeRef:t},Ee),S.createElement("div",Al({ref:t},ne),e.firstFocusableElement,Y,Q,me,e.lastFocusableElement))},U=$();return S.createElement(vu,{element:U,appendTo:e.appendTo})}));EL.displayName="DropdownPanel";function FY(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=jY(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
1506
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||r.return==null||r.return()}finally{if(s)throw i}}}}function jY(e,t){if(e){if(typeof e=="string")return PN(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?PN(e,t):void 0}}function PN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function xN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Js(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xN(Object(r),!0).forEach(function(n){$0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var hu=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Tv.getProps(e,n),i=LK("",o.filterDelay||0),a=ph(i,3),s=a[0],l=a[1],c=a[2],d=S.useState(!1),p=ph(d,2),m=p[0],y=p[1],b=S.useState(-1),v=ph(b,2),C=v[0],A=v[1],R=S.useState(!1),x=ph(R,2),k=x[0],D=x[1],F=S.useRef(!1),$=S.useRef(null),U=S.useRef(null),G=S.useRef(null),Y=S.useRef(null),Q=S.useRef(o.inputRef),me=S.useRef(o.focusInputRef),ne=S.useRef(null),Ee=S.useRef(null),ce=S.useRef(null),_e=o.virtualScrollerOptions&&o.virtualScrollerOptions.lazy,Ne=pe.isNotEmpty(l),oe=o.appendTo||n&&n.appendTo||Ur.appendTo,Se=Tv.setMetaData(Js(Js({props:o},o.__parentMetadata),{},{state:{filter:l,focused:m,overlayVisible:k}})),re=Se.ptm,we=Se.cx,Ae=Se.sx,Pe=Se.isUnstyled;vo(Tv.css.styles,Pe,{name:"dropdown"});var Oe=gR({target:$,overlay:U,listener:function(ve,xt){var _r=xt.type,Rn=xt.valid;Rn&&(_r==="outside"?Ie(ve)||et():n.hideOverlaysOnDocumentScrolling?et():le.isDocument(ve.target)||vt())},when:k}),Ke=ph(Oe,2),St=Ke[0],st=Ke[1],yt=function(ve){return(ve||[]).reduce(function(xt,_r,Rn){xt.push(Js(Js({},_r),{},{group:!0,index:Rn}));var ln=q(_r);return ln&&ln.forEach(function(kr){return xt.push(kr)}),xt},[])},$e=function(){var ve=o.optionGroupLabel?yt(o.options):o.options;if(Ne&&!_e){var xt=l.trim().toLocaleLowerCase(o.filterLocale),_r=o.filterBy?o.filterBy.split(","):[o.optionLabel||"label"];if(o.optionGroupLabel){var Rn=[],ln=FY(o.options),kr;try{for(ln.s();!(kr=ln.n()).done;){var zd=kr.value,Ac=Oh.filter(q(zd),_r,xt,o.filterMatchMode,o.filterLocale);Ac&&Ac.length&&Rn.push(Js(Js({},zd),$0({},"".concat(o.optionGroupChildren),Ac)))}}catch(Mf){ln.e(Mf)}finally{ln.f()}return yt(Rn)}return Oh.filter(ve,_r,xt,o.filterMatchMode,o.filterLocale)}return ve},ot=function(ve){var xt=ve.relatedTarget===me.current?le.getFirstFocusableElement(U.current,':not([data-p-hidden-focusable="true"])'):me.current;le.focus(xt)},it=function(ve){var xt=ve.relatedTarget===me.current?le.getLastFocusableElement(U.current,':not([data-p-hidden-focusable="true"])'):me.current;le.focus(xt)},Ie=function(ve){return le.isAttributeEquals(ve.target,"data-pc-section","clearicon")||le.isAttributeEquals(ve.target.parentElement||ve.target,"data-pc-section","filterclearicon")},tt=function(ve){o.disabled||o.loading||(o.onClick&&o.onClick(ve),!ve.defaultPrevented&&(Ie(ve)||ve.target.tagName==="INPUT"||((!U.current||!(U.current&&U.current.contains(ve.target)))&&(le.focus(me.current),k?et():Te()),ve.preventDefault(),F.current=!0)))},mt=function(ve){o.showOnFocus&&!k&&Te(),y(!0),o.onFocus&&o.onFocus(ve)},Wt=function(ve){y(!1),o.onBlur&&setTimeout(function(){var xt=Q.current?Q.current.value:void 0;o.onBlur({originalEvent:ve.originalEvent,value:xt,stopPropagation:function(){ve.originalEvent.stopPropagation()},preventDefault:function(){ve.originalEvent.preventDefault()},target:{name:o.name,id:o.id,value:xt}})},200)},cr=function(ve,xt){var _r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;Qn({originalEvent:ve,option:xt}),_r&&(et(),le.focus(me.current))},At=function(ve){Ps.emit("overlay-click",{originalEvent:ve,target:$.current})},Ve=function(ve){if(o.disabled){ve.preventDefault();return}var xt=le.isAndroid()?ve.key:ve.code;switch(xt){case"ArrowDown":at(ve);break;case"ArrowUp":Pt(ve);break;case"ArrowLeft":case"ArrowRight":pt(ve,o.editable);break;case"Home":Rt(ve);break;case"End":rt(ve);break;case"PageDown":be(ve);break;case"PageUp":ge(ve);break;case"Space":We(ve,o.editable);break;case"NumpadEnter":case"Enter":Gt(ve);break;case"Escape":Qt(ve);break;case"Tab":Zt(ve);break;case"Backspace":Cr(ve,o.editable);break;case"ShiftLeft":case"ShiftRight":break;default:var _r=ve.metaKey||ve.ctrlKey||ve.altKey;!_r&&pe.isPrintableCharacter(ve.key)&&(!k&&!o.editable&&Te(),!o.editable&&Br(ve,ve.key));break}F.current=!1},Jt=function(ve){switch(ve.code){case"ArrowDown":at(ve);break;case"ArrowUp":Pt(ve);break;case"ArrowLeft":case"ArrowRight":pt(ve,!0);break;case"Enter":case"NumpadEnter":Gt(ve),ve.preventDefault();break;case"Escape":Qt(ve);break}},ar=function(){return le.getFocusableElements(U.current,':not([data-p-hidden-focusable="true"])').length>0},pr=function(ve){var xt;return gr(ve)&&((xt=Kt(ve))===null||xt===void 0?void 0:xt.toLocaleLowerCase(o.filterLocale).startsWith(ce.current.toLocaleLowerCase(o.filterLocale)))},gr=function(ve){return pe.isNotEmpty(ve)&&!(Nr(ve)||Zr(ve))},en=function(){return pe.isNotEmpty(o.value)},Wr=function(ve){return gr(ve)&&Ce(ve)},Xr=function(){return en?xn.findIndex(function(ve){return Wr(ve)}):-1},Pr=function(){var ve=Xr();return ve<0?jr():ve},Br=function(ve,xt){ce.current=(ce.current||"")+xt;var _r=-1,Rn=!1;return pe.isNotEmpty(ce.current)&&(C!==-1?(_r=xn.slice(C).findIndex(function(ln){return pr(ln)}),_r=_r===-1?xn.slice(0,C).findIndex(function(ln){return pr(ln)}):_r+C):_r=xn.findIndex(function(ln){return pr(ln)}),_r!==-1&&(Rn=!0),_r===-1&&C===-1&&(_r=Pr()),_r!==-1&&tn(ve,_r)),Ee.current&&clearTimeout(Ee.current),Ee.current=setTimeout(function(){ce.current="",Ee.current=null},500),Rn},Hr=function(){var ve=Xr();return ve<0?zr():ve},jr=function(){return xn.findIndex(function(ve){return gr(ve)})},zr=function(){return pe.findLastIndex(xn,function(ve){return gr(ve)})},Jr=function(ve){var xt=ve<xn.length-1?xn.slice(ve+1).findIndex(function(_r){return gr(_r)}):-1;return xt>-1?xt+ve+1:ve},In=function(ve){var xt=ve>0?pe.findLastIndex(xn.slice(0,ve),function(_r){return gr(_r)}):-1;return xt>-1?xt:ve},tn=function(ve,xt){C!==xt&&(A(xt),vr(xt),o.selectOnFocus&&cr(ve,xn[xt],!1))},vr=function(ve){var xt=le.findSingle(U.current,'li[id="dropdownItem_'.concat(ve,'"]'));xt&&xt.focus()},at=function(ve){if(!k)Te(),o.editable&&tn(ve,Xr());else{var xt=C!==-1?Jr(C):F.current?jr():Pr();tn(ve,xt)}ve.preventDefault()},Pt=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ve.altKey&&!xt)C!==-1&&cr(ve,xn[C]),state.overlayVisible&&et(),ve.preventDefault();else{var _r=C!==-1?In(C):F.current?zr():Hr();tn(ve,_r),!k&&Te(),ve.preventDefault()}},pt=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xt&&A(-1)},Rt=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xt?(ve.currentTarget.setSelectionRange(0,0),A(-1)):(tn(ve,jr()),!k&&Te()),ve.preventDefault()},rt=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(xt){var _r=ve.currentTarget,Rn=_r.value.length;_r.setSelectionRange(Rn,Rn),A(-1)}else tn(ve,zr()),!k&&Te();ve.preventDefault()},ge=function(ve){ve.preventDefault()},be=function(ve){ve.preventDefault()},We=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!xt&&Gt(ve)},Gt=function(ve){if(ve.preventDefault(),!k)A(-1),at(ve);else{if(C===-1)return;var xt=xn[C],_r=sr(xt);if(_r==null||_r==null){et(),pn(),nr(xr);return}cr(ve,xt)}},Qt=function(ve){k&&et(),ve.preventDefault()},Zt=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xt||(k&&!ar()?(le.focus(G.current),ve.preventDefault()):(C!==-1&&cr(ve,xn[C]),k&&et()))},Cr=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ve&&xt&&!k&&Te()},zt=function(ve,xt){if(!xt||!(ve!=null&&ve.length))return-1;var _r=xt.toLocaleLowerCase(),Rn=ve.findIndex(function(ln){return Kt(ln).toLocaleLowerCase()===_r});return Rn!==-1?Rn:ve.findIndex(function(ln){return Kt(ln).toLocaleLowerCase().startsWith(_r)})},Qe=function(ve){!k&&Te();var xt=null;ve.target.value&&xn&&(xt=zt(xn,ve.target.value)),A(xt),o.onChange&&o.onChange({originalEvent:ve.originalEvent,value:ve.target.value,stopPropagation:function(){ve.originalEvent.stopPropagation()},preventDefault:function(){ve.originalEvent.preventDefault()},target:{name:o.name,id:o.id,value:ve.target.value}})},Et=function(ve){y(!0),et(),o.onFocus&&o.onFocus(ve)},Ht=function(ve){var xt=ve.option;xt.disabled||(Qn(ve),le.focus(me.current)),et()},ur=function(ve){var xt=ve.target.value;c(xt),o.onFilter&&o.onFilter({originalEvent:ve,filter:xt})},Dr=function(ve){pn(ve)},pn=function(ve){c(""),o.onFilter&&o.onFilter({filter:""}),ve&&ve()},Ln=function(ve){o.onChange&&o.onChange({originalEvent:ve,value:void 0,stopPropagation:function(){ve==null||ve.stopPropagation()},preventDefault:function(){ve==null||ve.preventDefault()},target:{name:o.name,id:o.id,value:void 0}}),o.filter&&pn(),nr(),A(-1)},Qn=function(ve){if(xr!==ve.option){nr(ve.option),A(-1);var xt=sr(ve.option),_r=Xe(ve.option,xn);o.onChange&&o.onChange({originalEvent:ve.originalEvent,value:xt,stopPropagation:function(){ve.originalEvent.stopPropagation()},preventDefault:function(){ve.originalEvent.preventDefault()},target:{name:o.name,id:o.id,value:xt}}),tn(ve.originalEvent,_r)}},gn=function(ve){if(ve=ve||xn,ve)if(o.optionGroupLabel)for(var xt=0;xt<ve.length;xt++){var _r=Xe(o.value,q(ve[xt]));if(_r!==-1)return{group:xt,option:_r}}else return Xe(o.value,ve);return-1},Re=function(){return o.optionValue?null:o.dataKey},Xe=function(ve,xt){var _r=Re();return xt.findIndex(function(Rn){return pe.equals(ve,sr(Rn),_r)})},Ce=function(ve){return pe.equals(o.value,sr(ve),Re())},Te=function(){A(C!==-1?C:o.autoOptionFocus?Pr():o.editable?-1:Xr()),D(!0)},et=function(){D(!1),F.current=!1},ht=function(){o.editable&&!k&&F.current===!1&&le.focus(Q.current)},Ft=function(ve){xo.set("overlay",U.current,n&&n.autoZIndex||Ur.autoZIndex,n&&n.zIndex.overlay||Ur.zIndex.overlay),le.addStyles(U.current,{position:"absolute",top:"0",left:"0"}),vt(),ve&&ve()},tr=function(ve){ve&&ve(),St(),o.onShow&&o.onShow()},Lt=function(){st()},Je=function(){o.filter&&o.resetFilterOnHide&&pn(),xo.clear(U.current),o.onHide&&o.onHide()},vt=function(){le.alignOverlay(U.current,Q.current.parentElement,o.appendTo||n&&n.appendTo||Ur.appendTo)},jt=function(){var ve=le.findSingle(U.current,'li[data-p-focused="true"]');if(ve&&ve.scrollIntoView)ve.scrollIntoView({block:"nearest",inline:"nearest"});else{var xt=le.findSingle(U.current,'li[data-p-highlight="true"]');xt&&xt.scrollIntoView&&xt.scrollIntoView({block:"nearest",inline:"nearest"})}},nr=function(ve){Q.current&&(Q.current.value=ve?Kt(ve):o.value||"",me.current&&(me.current.value=Q.current.value))},Kt=function(ve){if(pe.isScalar(ve))return"".concat(ve);var xt=o.optionLabel?pe.resolveFieldData(ve,o.optionLabel):ve.label;return"".concat(xt)},sr=function(ve){if(o.useOptionAsValue)return ve;var xt=o.optionValue?pe.resolveFieldData(ve,o.optionValue):ve?ve.value:pe.resolveFieldData(ve,"value");return o.optionValue||pe.isNotEmpty(xt)?xt:ve},br=function(ve){return o.dataKey?pe.resolveFieldData(ve,o.dataKey):Kt(ve)},Zr=function(ve){return o.optionGroupLabel&&ve.group},Nr=function(ve){return o.optionDisabled?pe.isFunction(o.optionDisabled)?o.optionDisabled(ve):pe.resolveFieldData(ve,o.optionDisabled):ve&&ve.disabled!==void 0?ve.disabled:!1},Vt=function(ve){return pe.resolveFieldData(ve,o.optionGroupLabel)},X=function(ve){return pe.resolveFieldData(ve,o.optionGroupLabel)},q=function(ve){return pe.resolveFieldData(ve,o.optionGroupChildren)},he=function(){if(o.editable&&Q.current){var ve=xr?Kt(xr):null,xt=ve||o.value||"";Q.current.value=xt,me.current&&(me.current.value=xt)}},ze=function(){var ve=gn(o.options);return ve!==-1?o.optionGroupLabel?q(o.options[ve.group])[ve.option]:o.options[ve]:null};S.useImperativeHandle(t,function(){return{props:o,show:Te,hide:et,clear:Ln,focus:function(){return le.focus(me.current)},getElement:function(){return $.current},getOverlay:function(){return U.current},getInput:function(){return Q.current},getFocusInput:function(){return me.current},getVirtualScroller:function(){return ne.current}}}),S.useEffect(function(){pe.combinedRefs(Q,o.inputRef),pe.combinedRefs(me,o.focusInputRef)},[Q,o.inputRef,me,o.focusInputRef]),Go(function(){o.autoFocus&&le.focus(me.current,o.autoFocus),vt()}),hn(function(){k&&(o.value||C>=0)&&jt()},[k,o.value,C]),hn(function(){k&&l&&o.filter&&vt()},[k,l,o.filter]),hn(function(){ne.current&&ne.current.scrollInView(0)},[l]),hn(function(){he(),Q.current&&(Q.current.selectedIndex=1)}),Ci(function(){xo.clear(U.current)});var lt=function(){var ve={value:"",label:o.placeholder};if(xr){var xt=sr(xr);ve={value:Af(xt)==="object"?o.options.findIndex(function(kr){return kr===xt}):xt,label:Kt(xr)}}var _r=r({className:"p-hidden-accessible p-dropdown-hidden-select"},re("hiddenSelectedMessage")),Rn=r({ref:Q,required:o.required,defaultValue:ve.value,name:o.name,tabIndex:-1},re("select")),ln=r({value:ve.value},re("option"));return S.createElement("div",_r,S.createElement("select",Rn,S.createElement("option",ln,ve.label)))},ct=function(){var ve=pe.isNotEmpty(xr)?Kt(xr):null;o.editable&&(ve=ve||o.value||"");var xt=r({className:"p-hidden-accessible"},re("hiddenSelectedMessage")),_r=r(Js({ref:me,id:o.inputId,defaultValue:ve,type:"text",readOnly:!0,"aria-haspopup":"listbox",onFocus:mt,onBlur:Wt,onKeyDown:Ve,disabled:o.disabled,tabIndex:o.disabled?-1:o.tabIndex||0},Dn),re("input"));return S.createElement("div",xt,S.createElement("input",_r))},yr=function(){var ve=pe.isNotEmpty(xr)?Kt(xr):null;if(o.editable){var xt=ve||o.value||"",_r=r(Js({ref:Q,type:"text",defaultValue:xt,className:we("input",{label:ve}),disabled:o.disabled,placeholder:o.placeholder,maxLength:o.maxLength,onInput:Qe,onFocus:Et,onKeyDown:Ve,onBlur:Wt,tabIndex:o.disabled?-1:o.tabIndex||0,"aria-haspopup":"listbox"},Dn),re("input"));return S.createElement("input",_r)}var Rn=o.valueTemplate?pe.getJSXElement(o.valueTemplate,xr,o):ve||o.placeholder||o.emptyMessage||S.createElement(S.Fragment,null," "),ln=r({ref:Q,className:we("input",{label:ve}),tabIndex:"-1"},re("input"));return S.createElement("span",ln,Rn)},fr=function(ve){(ve.key==="Enter"||ve.code==="Space")&&(Ln(ve),ve.preventDefault())},Ir=function(){if(o.value!=null&&o.showClear&&!o.disabled&&!pe.isEmpty(o.options)){var ve=r({className:we("clearIcon"),onPointerUp:Ln,tabIndex:o.editable?-1:o.tabIndex||"0",onKeyDown:fr,"aria-label":va("clear")},re("clearIcon")),xt=o.clearIcon||S.createElement(wc,ve);return nn.getJSXIcon(xt,Js({},ve),{props:o})}return null},Pn=function(){var ve=r({className:we("loadingIcon"),"data-pr-overlay-visible":k},re("loadingIcon")),xt=o.loadingIcon||S.createElement(pg,{spin:!0}),_r=nn.getJSXIcon(xt,Js({},ve),{props:o}),Rn=o.placeholder||o.ariaLabel,ln=r({className:we("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":Rn},re("trigger"));return S.createElement("div",ln,_r)},so=function(){var ve=r({className:we("dropdownIcon"),"data-pr-overlay-visible":k},re("dropdownIcon")),xt=k?o.collapseIcon||S.createElement(gL,ve):o.dropdownIcon||S.createElement(hg,ve),_r=nn.getJSXIcon(xt,Js({},ve),{props:o}),Rn=o.placeholder||o.ariaLabel,ln=r({className:we("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":Rn},re("trigger"));return S.createElement("div",ln,_r)},xn=$e(),xr=ze(),An=pe.isNotEmpty(o.tooltip),lo=Tv.getOtherProps(o),Dn=pe.reduceKeys(lo,le.ARIA_PROPS),pi=lt(),uo=ct(),Fn=yr(),yn=o.loading?Pn():so(),Ra=Ir(),Li=r({id:o.id,ref:$,className:dt(o.className,we("root",{context:n,focusedState:m,overlayVisibleState:k})),style:o.style,onClick:function(ve){return tt(ve)},onMouseDown:o.onMouseDown,onContextMenu:o.onContextMenu,onFocus:ht,"data-p-disabled":o.disabled,"data-p-focus":m,"aria-activedescendant":m?"dropdownItem_".concat(C):void 0},lo,re("root")),fi=r({ref:G,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:ot,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},re("hiddenFirstFocusableEl")),Ss=r({ref:Y,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:it,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},re("hiddenLastFocusableEl"));return S.createElement(S.Fragment,null,S.createElement("div",Li,uo,pi,Fn,Ra,yn,S.createElement(EL,Al({hostName:"Dropdown",ref:U,visibleOptions:xn,virtualScrollerRef:ne},o,{appendTo:oe,cx:we,filterValue:s,focusedOptionIndex:C,getOptionGroupChildren:q,getOptionGroupLabel:X,getOptionGroupRenderKey:Vt,getOptionLabel:Kt,getOptionRenderKey:br,getSelectedOptionIndex:gn,hasFilter:Ne,in:k,isOptionDisabled:Nr,isSelected:Ce,onOverlayHide:et,onClick:At,onEnter:Ft,onEntered:tr,onExit:Lt,onExited:Je,onFilterClearIconClick:Dr,onFilterInputChange:ur,onFilterInputKeyDown:Jt,onOptionClick:Ht,onInputKeyDown:Ve,ptm:re,resetFilter:pn,changeFocusedOptionIndex:tn,firstFocusableElement:S.createElement("span",fi),lastFocusableElement:S.createElement("span",Ss),sx:Ae}))),An&&S.createElement(Ml,Al({target:$,content:o.tooltip,pt:re("tooltip")},o.tooltipOptions)))}));hu.displayName="Dropdown";const d0=({option:e,icon:t})=>ae.jsxs("div",{className:"flex items-center gap-4 font-semibold text-neutral-50",children:[ae.jsx("span",{className:"flex items-center justify-center w-24 h-24",children:ae.jsx("i",{className:t,"aria-hidden":"true"})}),ae.jsx("span",{className:"truncate",children:e==null?void 0:e.label})]}),p0=({option:e,isActive:t})=>ae.jsxs("div",{className:"flex items-center gap-4",children:[t&&ae.jsx("span",{className:"flex items-center justify-center w-24 h-24",children:ae.jsx("i",{className:"fa-regular fa-check","aria-hidden":"true"})}),ae.jsx("span",{children:e.label})]}),DN=300,Ov=Ec.createLocalAudioTrack(),VY=()=>{const{micList:e,speakerList:t,activeMicId:r,switchMic:n,activeSpeakerId:o,switchSpeaker:i}=Ic(),[a,s]=se.useState(0),[l,c]=se.useState(0),[d,p]=se.useState("idle"),m=e.map((U,G)=>({label:U.label||`Micrófono ${G+1}`,value:U.deviceId})),y=t.map((U,G)=>({label:U.label||`Altavoz ${G+1}`,value:U.deviceId})),b=se.useRef(null),v=se.useRef(0),C=se.useCallback(async()=>{var G,Y;if(!Ov)return;if(b.current){(Y=(G=b.current).stop)==null||Y.call(G),b.current=null,p("idle"),s(0);return}const U=Ov.testMicrophone({microphoneId:r,speakerId:o,recordAndPlay:!0,onAnalyseFrequency:Q=>{const me=Date.now();me-v.current>DN&&(v.current=me,s(Q))},onStartRecording:()=>p("recording"),onStartPlayRecording:()=>p("playing"),onStopPlayRecording:()=>{p("idle"),b.current=null,s(0)}});b.current=U,p("recording")},[r,o]),A=se.useRef(null),R=se.useRef(0),x=se.useCallback(async()=>{var G,Y;if(!Ov)return;if(A.current){(Y=(G=A.current).destroy)==null||Y.call(G),A.current=null,c(0);return}const U=Ov.testSpeaker({speakerId:o,onAnalyseFrequency:Q=>{const me=Date.now();me-R.current>DN&&(R.current=me,c(Q))}});A.current=U},[o]),k=se.useCallback(U=>ae.jsx(p0,{option:U,isActive:U.value===r}),[r]),D=se.useCallback(U=>ae.jsx(d0,{option:U,icon:"fa-regular fa-microphone"}),[]),F=se.useCallback(U=>ae.jsx(p0,{option:U,isActive:U.value===o}),[o]),$=se.useCallback(U=>ae.jsx(d0,{option:U,icon:"fa-regular fa-volume"}),[]);return se.useEffect(()=>()=>{var U,G,Y,Q;(G=(U=b.current)==null?void 0:U.stop)==null||G.call(U),(Q=(Y=A.current)==null?void 0:Y.destroy)==null||Q.call(Y)},[]),ae.jsxs("div",{className:"flex flex-col",children:[ae.jsx("p",{className:"text-s font-bold",children:"Micrófono"}),ae.jsx("p",{className:"text-s mb-8 text-neutral-40",children:"Selecciona un método de entrada de audio"}),ae.jsx(hu,{className:"mb-16 w-full",itemTemplate:k,placeholder:"Selecciona un micrófono",options:m,onChange:U=>n(U.value),value:r,valueTemplate:D}),ae.jsxs("div",{className:"mt-4 mb-8",children:[ae.jsx("p",{className:"text-s font-bold",children:"Prueba de micrófono"}),ae.jsx("div",{className:"mt-4 self-start",children:ae.jsxs("p",{className:"text-s text-neutral-40 text-start",children:[d==="idle"&&"Graba una muestra de tu voz y escúchela para verificar el funcionamiento.",d==="recording"&&"Grabando la voz... espera unos segundos.",d==="playing"&&"Reproduciendo grabación..."]})})]}),ae.jsxs("button",{type:"button",onClick:C,className:Ni("w-fit rounded-l p-8 font-semibold transition-all duration-200 border hover:border-neutral-70 text-white",{"bg-neutral-60":d==="recording"||d==="playing","bg-neutral-50":d==="idle"}),children:[d==="recording"&&"Detener grabación",d==="playing"&&"Detener reproducción",d==="idle"&&"Probar micrófono"]}),ae.jsx(Xw,{value:d==="idle"?0:a,showValue:!1,className:"w-full mt-4 h-8 rounded-m border border-neutral-80"}),ae.jsxs("div",{className:"mt-32",children:[ae.jsx("p",{className:"text-s font-bold",children:"Altavoz"}),ae.jsx("p",{className:"text-s mb-8 text-neutral-40",children:"Selecciona un método de salida de audio"}),ae.jsx(hu,{className:"mb-16 w-full",itemTemplate:F,onChange:U=>i(U.value),options:y,placeholder:"Selecciona un altavoz",value:o,valueTemplate:$}),ae.jsx("button",{type:"button",onClick:x,className:Ni("w-fit rounded-l p-8 font-semibold transition-all duration-200 border hover:border-neutral-70 text-white",A.current?"bg-neutral-60":"bg-neutral-50"),children:A.current?"Detener prueba de altavoz":"Probar altavoz"}),ae.jsx(Xw,{value:l,showValue:!1,className:"w-full mt-8 h-8 rounded-m border border-neutral-80"})]})]})},BY=()=>{const{isBlurred:e,switchBlurred:t}=$d(),r=[{label:"Ninguno",icon:"fa-ban",isActive:!e},{label:"Desenfocar",icon:"fa-droplet",isActive:e}];return ae.jsxs("div",{className:"flex flex-col",children:[ae.jsx("p",{className:"text-s font-bold mb-8",children:"Fondo"}),ae.jsx("div",{className:"flex gap-12",children:r.map(({label:n,icon:o,isActive:i})=>ae.jsxs("button",{type:"button",onClick:i?()=>{}:()=>t(!e),className:Ni("w-full h-80 flex flex-col items-center justify-center gap-8 border rounded-l bg-white font-bold transition-colors ease-in-out",i?"!border-neutral-60 border-2 cursor-default":"border-neutral-80 hover:border-neutral-70"),children:[ae.jsx("span",{className:"flex items-center justify-center w-24 h-24",children:ae.jsx("i",{className:Ni("fa-regular fa-xl",o),"aria-hidden":"true"})}),ae.jsx("span",{children:n})]},n))})]})},HY=()=>{const{activeCameraId:e,switchCamera:t,cameraList:r}=$d(),n=r.map((a,s)=>({label:a.label||`Cámara ${s+1}`,value:a.deviceId})),o=se.useCallback(a=>ae.jsx(p0,{option:a,isActive:a.value===e}),[e]),i=se.useCallback(a=>ae.jsx(d0,{option:a,icon:"fa-regular fa-video"}),[]);return ae.jsxs("div",{className:"flex flex-col",children:[ae.jsx("p",{className:"text-s font-bold mb-8",children:"Cámara"}),ae.jsx(hu,{className:"mb-16",itemTemplate:o,onChange:a=>t(a.value),options:n,placeholder:"Selecciona una cámara",value:e??"",valueTemplate:i})]})},UY={Audio:VY,Video:HY,Background:BY},$Y=()=>{const{selectedSettingsTab:e}=V9(),t=UY[e];return t?ae.jsx(t,{}):null},WY=680,NN=Qa.Audio,CL=()=>{const{configDialogVisible:e,toggleConfigDialog:t}=bs(),[r,n]=se.useState(NN);se.useEffect(()=>{e&&n(e.tab??NN)},[e]);const o=se.useMemo(()=>({selectedSettingsTab:r,setSelectedSettingsTab:n}),[r]);return ae.jsx(mL,{visible:e.visible,onHide:()=>t({}),header:"Ajustes",width:WY,className:"min-w-[30vw] [&_.p-dialog-content]:overflow-hidden",children:ae.jsx(j9.Provider,{value:o,children:ae.jsxs("div",{className:"flex flex-col md:flex-row divide-y md:divide-y-0 md:divide-x divide-neutral-80 h-full",children:[ae.jsx(pY,{}),ae.jsx("div",{className:"flex-1 overflow-y-auto p-24",children:ae.jsx($Y,{})})]})})})},fs=({item:e,options:t,activeItem:r,icon:n})=>{var i;const o=e.id===r;return ae.jsx("div",{className:"p-menuitem-content","data-pc-section":"content",children:ae.jsxs("a",{"aria-label":e.label,className:t.className,"data-test":(i=e==null?void 0:e.data)==null?void 0:i.dataTestId,"data-pc-section":"action",href:"#",onClick:t.onClick,children:[o&&!n&&ae.jsx("span",{className:t.iconClassName,"data-pc-section":"icon",children:ae.jsx("i",{className:"fa-regular fa-check","aria-hidden":"true","data-testid":"check-icon"})}),n&&!o&&n,ae.jsx("span",{className:t.labelClassName,"data-pc-section":"label",children:e.label})]})})},zY=()=>{const e=fg(),{breakpoint:t,initVotingPreSession:r}=Tf(),{requestSharedState:n}=U0(),o=t===xm.Mobile,{joinSession:i}=ll(),{localVideoRef:a,localVideoStarted:s,stopLocalVideo:l,cameraList:c,activeCameraId:d,startVideo:p,switchCamera:m}=$d(),{micList:y,activeMicId:b,switchMic:v,muteMic:C,micMuted:A,unmuteMic:R,speakerList:x,activeSpeakerId:k,switchSpeaker:D}=Ic(),{toggleConfigDialog:F}=bs(),$=se.useRef(null),U=se.useRef(null),G=se.useRef(null),[Y]=wa(async()=>{s?await l():await p()},[s,p,l],e.ref),[Q]=wa(async oe=>{await m(oe)},[m],e.ref),me=se.useCallback(()=>{A?R():C()},[A,C,R]),[ne]=wa(async()=>{await i(),await r(),await l(),await n()},[l,i,r,n],e.ref),Ee=x.map(oe=>({disabled:e.loading,id:oe.deviceId,label:oe.label,command:()=>D(oe.deviceId),template:(Se,re)=>ae.jsx(fs,{item:Se,options:re,activeItem:k})})).concat([{disabled:!1,label:"Configuración de audio",id:"audio-settings",command:async()=>F({tab:Qa.Audio}),template:(oe,Se)=>ae.jsx(fs,{item:oe,options:Se,activeItem:k})}]),ce=c.map(oe=>({disabled:e.loading,label:oe.label,id:oe.deviceId,template:(Se,re)=>ae.jsx(fs,{item:Se,options:re,activeItem:d}),command:()=>Q(oe.deviceId)})).concat([{disabled:!1,label:"Configuración de cámara",id:"camera-settings",command:async()=>F({tab:Qa.Video}),template:(oe,Se)=>ae.jsx(fs,{item:oe,options:Se,activeItem:d})}]),_e=y.map(oe=>({disabled:e.loading,id:oe.deviceId,label:oe.label,command:()=>v(oe.deviceId),template:(Se,re)=>ae.jsx(fs,{item:Se,options:re,activeItem:b})})).concat([{disabled:!1,id:"microphone-settings",label:"Configuración de micrófono",command:async()=>F({tab:Qa.Audio}),template:(oe,Se)=>ae.jsx(fs,{item:oe,options:Se,activeItem:b})}]),Ne=se.useRef(!1);return se.useEffect(()=>{d&&!Ne.current&&(p(),Ne.current=!0)},[d,p]),ae.jsxs("div",{className:"flex flex-col w-full max-w-3xl py-24 px-16 mx-auto","data-testid":"setup-page",children:[ae.jsxs("div",{className:"text-center mb-24",children:[ae.jsx("h1",{className:"text-xl font-bold mb-8",children:"Acceso a la videoconferencia"}),ae.jsx("p",{className:"text-neutral-40",children:"Comprueba que todo funciona correctamente para una mejor experiencia en la videollamada."})]}),ae.jsxs("div",{className:"relative w-full aspect-video bg-bluetiful-10 mb-16 rounded-xl overflow-hidden",children:[ae.jsx("video",{ref:a,className:Ni("absolute inset-0 w-full h-full object-cover",{hidden:!s})}),!s&&ae.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-neutral-80",children:ae.jsxs("div",{className:"text-center",children:[ae.jsx("i",{className:"fa-regular fa-video-slash mb-8"}),ae.jsx("p",{children:"Video desactivado"})]})}),A&&ae.jsx("div",{className:"absolute top-24 right-24 flex items-center justify-center text-white",children:ae.jsx("i",{className:"fa-regular fa-microphone-slash text-2xl"})}),ae.jsx("div",{className:"absolute bottom-16 inset-x-0 flex items-center justify-center",children:ae.jsxs("div",{className:"flex gap-8 shrink-0",children:[ae.jsx(cs,{disabled:e.loading,mainIcon:`fa-regular ${A?"fa-microphone-slash":"fa-microphone"}`,mainLabel:o?void 0:"Micrófono",mainTitle:A?"Activar sonido":"Silenciar",onMainClick:me,showSecondary:!o,secondaryIcon:"fa-regular fa-chevron-up",secondaryTitle:"Ajustes de micrófono",onSecondaryClick:oe=>{var Se;return(Se=G.current)==null?void 0:Se.toggle(oe)}}),ae.jsx(cs,{disabled:e.loading,mainIcon:"fa-regular fa-volume",mainLabel:o?void 0:"Altavoces",mainTitle:"Altavoces",onMainClick:oe=>{var Se;return(Se=$.current)==null?void 0:Se.toggle(oe)},showSecondary:!o,secondaryIcon:"fa-regular fa-chevron-up",secondaryTitle:"Ajustes de altavoces",onSecondaryClick:oe=>{var Se;return(Se=$.current)==null?void 0:Se.toggle(oe)}}),ae.jsx(cs,{disabled:e.loading,mainIcon:`fa-regular ${s?"fa-video":"fa-video-slash"}`,mainLabel:o?void 0:"Cámara",mainTitle:s?"Apagar cámara":"Encender cámara",onMainClick:Y,showSecondary:!o,secondaryIcon:"fa-regular fa-chevron-up",secondaryTitle:"Ajustes de cámara",onSecondaryClick:oe=>{var Se;return(Se=U.current)==null?void 0:Se.toggle(oe)}}),ae.jsx(cs,{mainIcon:"fa-regular fa-gear",mainLabel:o?void 0:"Ajustes",mainTitle:"Ajustes",onMainClick:()=>F({})})]})})]}),ae.jsx("div",{className:"flex flex-col gap-16",children:ae.jsx(Pi,{disabled:e.loading,label:"Acceder a la videoconferencia",onClick:ne,size:"small",className:"self-center","data-testid":"access-meeting-button"})}),ae.jsx(CL,{}),ae.jsx(uu,{model:_e,popup:!0,ref:G,id:"mic_popup_menu",popupAlignment:"left"}),ae.jsx(uu,{model:Ee,popup:!0,ref:$,id:"audio_popup_menu",popupAlignment:"left"}),ae.jsx(uu,{model:ce,popup:!0,ref:U,id:"video_popup_menu",popupAlignment:"left"})]})};function nI(){return nI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nI.apply(null,arguments)}function oI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function KY(e){if(Array.isArray(e))return oI(e)}function GY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wL(e,t){if(e){if(typeof e=="string")return oI(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oI(e,t):void 0}}function qY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1506
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||r.return==null||r.return()}finally{if(s)throw i}}}}function jY(e,t){if(e){if(typeof e=="string")return PN(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?PN(e,t):void 0}}function PN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function xN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Js(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xN(Object(r),!0).forEach(function(n){$0(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var hu=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Tv.getProps(e,n),i=LK("",o.filterDelay||0),a=ph(i,3),s=a[0],l=a[1],c=a[2],d=S.useState(!1),p=ph(d,2),m=p[0],y=p[1],b=S.useState(-1),v=ph(b,2),C=v[0],A=v[1],R=S.useState(!1),x=ph(R,2),k=x[0],D=x[1],F=S.useRef(!1),$=S.useRef(null),U=S.useRef(null),G=S.useRef(null),Y=S.useRef(null),Q=S.useRef(o.inputRef),me=S.useRef(o.focusInputRef),ne=S.useRef(null),Ee=S.useRef(null),ce=S.useRef(null),_e=o.virtualScrollerOptions&&o.virtualScrollerOptions.lazy,Ne=pe.isNotEmpty(l),oe=o.appendTo||n&&n.appendTo||Ur.appendTo,Se=Tv.setMetaData(Js(Js({props:o},o.__parentMetadata),{},{state:{filter:l,focused:m,overlayVisible:k}})),re=Se.ptm,we=Se.cx,Ae=Se.sx,Pe=Se.isUnstyled;vo(Tv.css.styles,Pe,{name:"dropdown"});var Oe=gR({target:$,overlay:U,listener:function(ve,xt){var _r=xt.type,Rn=xt.valid;Rn&&(_r==="outside"?Ie(ve)||et():n.hideOverlaysOnDocumentScrolling?et():le.isDocument(ve.target)||vt())},when:k}),Ke=ph(Oe,2),St=Ke[0],st=Ke[1],yt=function(ve){return(ve||[]).reduce(function(xt,_r,Rn){xt.push(Js(Js({},_r),{},{group:!0,index:Rn}));var ln=q(_r);return ln&&ln.forEach(function(kr){return xt.push(kr)}),xt},[])},$e=function(){var ve=o.optionGroupLabel?yt(o.options):o.options;if(Ne&&!_e){var xt=l.trim().toLocaleLowerCase(o.filterLocale),_r=o.filterBy?o.filterBy.split(","):[o.optionLabel||"label"];if(o.optionGroupLabel){var Rn=[],ln=FY(o.options),kr;try{for(ln.s();!(kr=ln.n()).done;){var zd=kr.value,Ac=Oh.filter(q(zd),_r,xt,o.filterMatchMode,o.filterLocale);Ac&&Ac.length&&Rn.push(Js(Js({},zd),$0({},"".concat(o.optionGroupChildren),Ac)))}}catch(Mf){ln.e(Mf)}finally{ln.f()}return yt(Rn)}return Oh.filter(ve,_r,xt,o.filterMatchMode,o.filterLocale)}return ve},ot=function(ve){var xt=ve.relatedTarget===me.current?le.getFirstFocusableElement(U.current,':not([data-p-hidden-focusable="true"])'):me.current;le.focus(xt)},it=function(ve){var xt=ve.relatedTarget===me.current?le.getLastFocusableElement(U.current,':not([data-p-hidden-focusable="true"])'):me.current;le.focus(xt)},Ie=function(ve){return le.isAttributeEquals(ve.target,"data-pc-section","clearicon")||le.isAttributeEquals(ve.target.parentElement||ve.target,"data-pc-section","filterclearicon")},tt=function(ve){o.disabled||o.loading||(o.onClick&&o.onClick(ve),!ve.defaultPrevented&&(Ie(ve)||ve.target.tagName==="INPUT"||((!U.current||!(U.current&&U.current.contains(ve.target)))&&(le.focus(me.current),k?et():Te()),ve.preventDefault(),F.current=!0)))},mt=function(ve){o.showOnFocus&&!k&&Te(),y(!0),o.onFocus&&o.onFocus(ve)},Wt=function(ve){y(!1),o.onBlur&&setTimeout(function(){var xt=Q.current?Q.current.value:void 0;o.onBlur({originalEvent:ve.originalEvent,value:xt,stopPropagation:function(){ve.originalEvent.stopPropagation()},preventDefault:function(){ve.originalEvent.preventDefault()},target:{name:o.name,id:o.id,value:xt}})},200)},cr=function(ve,xt){var _r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;Qn({originalEvent:ve,option:xt}),_r&&(et(),le.focus(me.current))},At=function(ve){Ps.emit("overlay-click",{originalEvent:ve,target:$.current})},Ve=function(ve){if(o.disabled){ve.preventDefault();return}var xt=le.isAndroid()?ve.key:ve.code;switch(xt){case"ArrowDown":at(ve);break;case"ArrowUp":Pt(ve);break;case"ArrowLeft":case"ArrowRight":pt(ve,o.editable);break;case"Home":Rt(ve);break;case"End":rt(ve);break;case"PageDown":be(ve);break;case"PageUp":ge(ve);break;case"Space":We(ve,o.editable);break;case"NumpadEnter":case"Enter":Gt(ve);break;case"Escape":Qt(ve);break;case"Tab":Zt(ve);break;case"Backspace":Cr(ve,o.editable);break;case"ShiftLeft":case"ShiftRight":break;default:var _r=ve.metaKey||ve.ctrlKey||ve.altKey;!_r&&pe.isPrintableCharacter(ve.key)&&(!k&&!o.editable&&Te(),!o.editable&&Br(ve,ve.key));break}F.current=!1},Jt=function(ve){switch(ve.code){case"ArrowDown":at(ve);break;case"ArrowUp":Pt(ve);break;case"ArrowLeft":case"ArrowRight":pt(ve,!0);break;case"Enter":case"NumpadEnter":Gt(ve),ve.preventDefault();break;case"Escape":Qt(ve);break}},ar=function(){return le.getFocusableElements(U.current,':not([data-p-hidden-focusable="true"])').length>0},pr=function(ve){var xt;return gr(ve)&&((xt=Kt(ve))===null||xt===void 0?void 0:xt.toLocaleLowerCase(o.filterLocale).startsWith(ce.current.toLocaleLowerCase(o.filterLocale)))},gr=function(ve){return pe.isNotEmpty(ve)&&!(Nr(ve)||Zr(ve))},en=function(){return pe.isNotEmpty(o.value)},Wr=function(ve){return gr(ve)&&Ce(ve)},Xr=function(){return en?xn.findIndex(function(ve){return Wr(ve)}):-1},Pr=function(){var ve=Xr();return ve<0?jr():ve},Br=function(ve,xt){ce.current=(ce.current||"")+xt;var _r=-1,Rn=!1;return pe.isNotEmpty(ce.current)&&(C!==-1?(_r=xn.slice(C).findIndex(function(ln){return pr(ln)}),_r=_r===-1?xn.slice(0,C).findIndex(function(ln){return pr(ln)}):_r+C):_r=xn.findIndex(function(ln){return pr(ln)}),_r!==-1&&(Rn=!0),_r===-1&&C===-1&&(_r=Pr()),_r!==-1&&tn(ve,_r)),Ee.current&&clearTimeout(Ee.current),Ee.current=setTimeout(function(){ce.current="",Ee.current=null},500),Rn},Hr=function(){var ve=Xr();return ve<0?zr():ve},jr=function(){return xn.findIndex(function(ve){return gr(ve)})},zr=function(){return pe.findLastIndex(xn,function(ve){return gr(ve)})},Jr=function(ve){var xt=ve<xn.length-1?xn.slice(ve+1).findIndex(function(_r){return gr(_r)}):-1;return xt>-1?xt+ve+1:ve},In=function(ve){var xt=ve>0?pe.findLastIndex(xn.slice(0,ve),function(_r){return gr(_r)}):-1;return xt>-1?xt:ve},tn=function(ve,xt){C!==xt&&(A(xt),vr(xt),o.selectOnFocus&&cr(ve,xn[xt],!1))},vr=function(ve){var xt=le.findSingle(U.current,'li[id="dropdownItem_'.concat(ve,'"]'));xt&&xt.focus()},at=function(ve){if(!k)Te(),o.editable&&tn(ve,Xr());else{var xt=C!==-1?Jr(C):F.current?jr():Pr();tn(ve,xt)}ve.preventDefault()},Pt=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ve.altKey&&!xt)C!==-1&&cr(ve,xn[C]),state.overlayVisible&&et(),ve.preventDefault();else{var _r=C!==-1?In(C):F.current?zr():Hr();tn(ve,_r),!k&&Te(),ve.preventDefault()}},pt=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xt&&A(-1)},Rt=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xt?(ve.currentTarget.setSelectionRange(0,0),A(-1)):(tn(ve,jr()),!k&&Te()),ve.preventDefault()},rt=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(xt){var _r=ve.currentTarget,Rn=_r.value.length;_r.setSelectionRange(Rn,Rn),A(-1)}else tn(ve,zr()),!k&&Te();ve.preventDefault()},ge=function(ve){ve.preventDefault()},be=function(ve){ve.preventDefault()},We=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;!xt&&Gt(ve)},Gt=function(ve){if(ve.preventDefault(),!k)A(-1),at(ve);else{if(C===-1)return;var xt=xn[C],_r=sr(xt);if(_r==null||_r==null){et(),pn(),nr(xr);return}cr(ve,xt)}},Qt=function(ve){k&&et(),ve.preventDefault()},Zt=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xt||(k&&!ar()?(le.focus(G.current),ve.preventDefault()):(C!==-1&&cr(ve,xn[C]),k&&et()))},Cr=function(ve){var xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ve&&xt&&!k&&Te()},zt=function(ve,xt){if(!xt||!(ve!=null&&ve.length))return-1;var _r=xt.toLocaleLowerCase(),Rn=ve.findIndex(function(ln){return Kt(ln).toLocaleLowerCase()===_r});return Rn!==-1?Rn:ve.findIndex(function(ln){return Kt(ln).toLocaleLowerCase().startsWith(_r)})},Qe=function(ve){!k&&Te();var xt=null;ve.target.value&&xn&&(xt=zt(xn,ve.target.value)),A(xt),o.onChange&&o.onChange({originalEvent:ve.originalEvent,value:ve.target.value,stopPropagation:function(){ve.originalEvent.stopPropagation()},preventDefault:function(){ve.originalEvent.preventDefault()},target:{name:o.name,id:o.id,value:ve.target.value}})},Et=function(ve){y(!0),et(),o.onFocus&&o.onFocus(ve)},Ht=function(ve){var xt=ve.option;xt.disabled||(Qn(ve),le.focus(me.current)),et()},ur=function(ve){var xt=ve.target.value;c(xt),o.onFilter&&o.onFilter({originalEvent:ve,filter:xt})},Dr=function(ve){pn(ve)},pn=function(ve){c(""),o.onFilter&&o.onFilter({filter:""}),ve&&ve()},Ln=function(ve){o.onChange&&o.onChange({originalEvent:ve,value:void 0,stopPropagation:function(){ve==null||ve.stopPropagation()},preventDefault:function(){ve==null||ve.preventDefault()},target:{name:o.name,id:o.id,value:void 0}}),o.filter&&pn(),nr(),A(-1)},Qn=function(ve){if(xr!==ve.option){nr(ve.option),A(-1);var xt=sr(ve.option),_r=Xe(ve.option,xn);o.onChange&&o.onChange({originalEvent:ve.originalEvent,value:xt,stopPropagation:function(){ve.originalEvent.stopPropagation()},preventDefault:function(){ve.originalEvent.preventDefault()},target:{name:o.name,id:o.id,value:xt}}),tn(ve.originalEvent,_r)}},gn=function(ve){if(ve=ve||xn,ve)if(o.optionGroupLabel)for(var xt=0;xt<ve.length;xt++){var _r=Xe(o.value,q(ve[xt]));if(_r!==-1)return{group:xt,option:_r}}else return Xe(o.value,ve);return-1},Re=function(){return o.optionValue?null:o.dataKey},Xe=function(ve,xt){var _r=Re();return xt.findIndex(function(Rn){return pe.equals(ve,sr(Rn),_r)})},Ce=function(ve){return pe.equals(o.value,sr(ve),Re())},Te=function(){A(C!==-1?C:o.autoOptionFocus?Pr():o.editable?-1:Xr()),D(!0)},et=function(){D(!1),F.current=!1},ht=function(){o.editable&&!k&&F.current===!1&&le.focus(Q.current)},Ft=function(ve){xo.set("overlay",U.current,n&&n.autoZIndex||Ur.autoZIndex,n&&n.zIndex.overlay||Ur.zIndex.overlay),le.addStyles(U.current,{position:"absolute",top:"0",left:"0"}),vt(),ve&&ve()},tr=function(ve){ve&&ve(),St(),o.onShow&&o.onShow()},Lt=function(){st()},Je=function(){o.filter&&o.resetFilterOnHide&&pn(),xo.clear(U.current),o.onHide&&o.onHide()},vt=function(){le.alignOverlay(U.current,Q.current.parentElement,o.appendTo||n&&n.appendTo||Ur.appendTo)},jt=function(){var ve=le.findSingle(U.current,'li[data-p-focused="true"]');if(ve&&ve.scrollIntoView)ve.scrollIntoView({block:"nearest",inline:"nearest"});else{var xt=le.findSingle(U.current,'li[data-p-highlight="true"]');xt&&xt.scrollIntoView&&xt.scrollIntoView({block:"nearest",inline:"nearest"})}},nr=function(ve){Q.current&&(Q.current.value=ve?Kt(ve):o.value||"",me.current&&(me.current.value=Q.current.value))},Kt=function(ve){if(pe.isScalar(ve))return"".concat(ve);var xt=o.optionLabel?pe.resolveFieldData(ve,o.optionLabel):ve.label;return"".concat(xt)},sr=function(ve){if(o.useOptionAsValue)return ve;var xt=o.optionValue?pe.resolveFieldData(ve,o.optionValue):ve?ve.value:pe.resolveFieldData(ve,"value");return o.optionValue||pe.isNotEmpty(xt)?xt:ve},br=function(ve){return o.dataKey?pe.resolveFieldData(ve,o.dataKey):Kt(ve)},Zr=function(ve){return o.optionGroupLabel&&ve.group},Nr=function(ve){return o.optionDisabled?pe.isFunction(o.optionDisabled)?o.optionDisabled(ve):pe.resolveFieldData(ve,o.optionDisabled):ve&&ve.disabled!==void 0?ve.disabled:!1},Vt=function(ve){return pe.resolveFieldData(ve,o.optionGroupLabel)},X=function(ve){return pe.resolveFieldData(ve,o.optionGroupLabel)},q=function(ve){return pe.resolveFieldData(ve,o.optionGroupChildren)},he=function(){if(o.editable&&Q.current){var ve=xr?Kt(xr):null,xt=ve||o.value||"";Q.current.value=xt,me.current&&(me.current.value=xt)}},ze=function(){var ve=gn(o.options);return ve!==-1?o.optionGroupLabel?q(o.options[ve.group])[ve.option]:o.options[ve]:null};S.useImperativeHandle(t,function(){return{props:o,show:Te,hide:et,clear:Ln,focus:function(){return le.focus(me.current)},getElement:function(){return $.current},getOverlay:function(){return U.current},getInput:function(){return Q.current},getFocusInput:function(){return me.current},getVirtualScroller:function(){return ne.current}}}),S.useEffect(function(){pe.combinedRefs(Q,o.inputRef),pe.combinedRefs(me,o.focusInputRef)},[Q,o.inputRef,me,o.focusInputRef]),Go(function(){o.autoFocus&&le.focus(me.current,o.autoFocus),vt()}),hn(function(){k&&(o.value||C>=0)&&jt()},[k,o.value,C]),hn(function(){k&&l&&o.filter&&vt()},[k,l,o.filter]),hn(function(){ne.current&&ne.current.scrollInView(0)},[l]),hn(function(){he(),Q.current&&(Q.current.selectedIndex=1)}),Ci(function(){xo.clear(U.current)});var lt=function(){var ve={value:"",label:o.placeholder};if(xr){var xt=sr(xr);ve={value:Af(xt)==="object"?o.options.findIndex(function(kr){return kr===xt}):xt,label:Kt(xr)}}var _r=r({className:"p-hidden-accessible p-dropdown-hidden-select"},re("hiddenSelectedMessage")),Rn=r({ref:Q,required:o.required,defaultValue:ve.value,name:o.name,tabIndex:-1},re("select")),ln=r({value:ve.value},re("option"));return S.createElement("div",_r,S.createElement("select",Rn,S.createElement("option",ln,ve.label)))},ct=function(){var ve=pe.isNotEmpty(xr)?Kt(xr):null;o.editable&&(ve=ve||o.value||"");var xt=r({className:"p-hidden-accessible"},re("hiddenSelectedMessage")),_r=r(Js({ref:me,id:o.inputId,defaultValue:ve,type:"text",readOnly:!0,"aria-haspopup":"listbox",onFocus:mt,onBlur:Wt,onKeyDown:Ve,disabled:o.disabled,tabIndex:o.disabled?-1:o.tabIndex||0},Dn),re("input"));return S.createElement("div",xt,S.createElement("input",_r))},yr=function(){var ve=pe.isNotEmpty(xr)?Kt(xr):null;if(o.editable){var xt=ve||o.value||"",_r=r(Js({ref:Q,type:"text",defaultValue:xt,className:we("input",{label:ve}),disabled:o.disabled,placeholder:o.placeholder,maxLength:o.maxLength,onInput:Qe,onFocus:Et,onKeyDown:Ve,onBlur:Wt,tabIndex:o.disabled?-1:o.tabIndex||0,"aria-haspopup":"listbox"},Dn),re("input"));return S.createElement("input",_r)}var Rn=o.valueTemplate?pe.getJSXElement(o.valueTemplate,xr,o):ve||o.placeholder||o.emptyMessage||S.createElement(S.Fragment,null," "),ln=r({ref:Q,className:we("input",{label:ve}),tabIndex:"-1"},re("input"));return S.createElement("span",ln,Rn)},fr=function(ve){(ve.key==="Enter"||ve.code==="Space")&&(Ln(ve),ve.preventDefault())},Ir=function(){if(o.value!=null&&o.showClear&&!o.disabled&&!pe.isEmpty(o.options)){var ve=r({className:we("clearIcon"),onPointerUp:Ln,tabIndex:o.editable?-1:o.tabIndex||"0",onKeyDown:fr,"aria-label":va("clear")},re("clearIcon")),xt=o.clearIcon||S.createElement(wc,ve);return nn.getJSXIcon(xt,Js({},ve),{props:o})}return null},Pn=function(){var ve=r({className:we("loadingIcon"),"data-pr-overlay-visible":k},re("loadingIcon")),xt=o.loadingIcon||S.createElement(pg,{spin:!0}),_r=nn.getJSXIcon(xt,Js({},ve),{props:o}),Rn=o.placeholder||o.ariaLabel,ln=r({className:we("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":Rn},re("trigger"));return S.createElement("div",ln,_r)},so=function(){var ve=r({className:we("dropdownIcon"),"data-pr-overlay-visible":k},re("dropdownIcon")),xt=k?o.collapseIcon||S.createElement(gL,ve):o.dropdownIcon||S.createElement(hg,ve),_r=nn.getJSXIcon(xt,Js({},ve),{props:o}),Rn=o.placeholder||o.ariaLabel,ln=r({className:we("trigger"),role:"button","aria-haspopup":"listbox","aria-expanded":k,"aria-label":Rn},re("trigger"));return S.createElement("div",ln,_r)},xn=$e(),xr=ze(),An=pe.isNotEmpty(o.tooltip),lo=Tv.getOtherProps(o),Dn=pe.reduceKeys(lo,le.ARIA_PROPS),pi=lt(),uo=ct(),Fn=yr(),yn=o.loading?Pn():so(),Ra=Ir(),Li=r({id:o.id,ref:$,className:dt(o.className,we("root",{context:n,focusedState:m,overlayVisibleState:k})),style:o.style,onClick:function(ve){return tt(ve)},onMouseDown:o.onMouseDown,onContextMenu:o.onContextMenu,onFocus:ht,"data-p-disabled":o.disabled,"data-p-focus":m,"aria-activedescendant":m?"dropdownItem_".concat(C):void 0},lo,re("root")),fi=r({ref:G,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:ot,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},re("hiddenFirstFocusableEl")),Ss=r({ref:Y,role:"presentation",className:"p-hidden-accessible p-hidden-focusable",tabIndex:"0",onFocus:it,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0},re("hiddenLastFocusableEl"));return S.createElement(S.Fragment,null,S.createElement("div",Li,uo,pi,Fn,Ra,yn,S.createElement(EL,Al({hostName:"Dropdown",ref:U,visibleOptions:xn,virtualScrollerRef:ne},o,{appendTo:oe,cx:we,filterValue:s,focusedOptionIndex:C,getOptionGroupChildren:q,getOptionGroupLabel:X,getOptionGroupRenderKey:Vt,getOptionLabel:Kt,getOptionRenderKey:br,getSelectedOptionIndex:gn,hasFilter:Ne,in:k,isOptionDisabled:Nr,isSelected:Ce,onOverlayHide:et,onClick:At,onEnter:Ft,onEntered:tr,onExit:Lt,onExited:Je,onFilterClearIconClick:Dr,onFilterInputChange:ur,onFilterInputKeyDown:Jt,onOptionClick:Ht,onInputKeyDown:Ve,ptm:re,resetFilter:pn,changeFocusedOptionIndex:tn,firstFocusableElement:S.createElement("span",fi),lastFocusableElement:S.createElement("span",Ss),sx:Ae}))),An&&S.createElement(Ml,Al({target:$,content:o.tooltip,pt:re("tooltip")},o.tooltipOptions)))}));hu.displayName="Dropdown";const d0=({option:e,icon:t})=>se.jsxs("div",{className:"flex items-center gap-4 font-semibold text-neutral-50",children:[se.jsx("span",{className:"flex items-center justify-center w-24 h-24",children:se.jsx("i",{className:t,"aria-hidden":"true"})}),se.jsx("span",{className:"truncate",children:e==null?void 0:e.label})]}),p0=({option:e,isActive:t})=>se.jsxs("div",{className:"flex items-center gap-4",children:[t&&se.jsx("span",{className:"flex items-center justify-center w-24 h-24",children:se.jsx("i",{className:"fa-regular fa-check","aria-hidden":"true"})}),se.jsx("span",{children:e.label})]}),DN=300,Ov=Ec.createLocalAudioTrack(),VY=()=>{const{micList:e,speakerList:t,activeMicId:r,switchMic:n,activeSpeakerId:o,switchSpeaker:i}=Ic(),[a,s]=ae.useState(0),[l,c]=ae.useState(0),[d,p]=ae.useState("idle"),m=e.map((U,G)=>({label:U.label||`Micrófono ${G+1}`,value:U.deviceId})),y=t.map((U,G)=>({label:U.label||`Altavoz ${G+1}`,value:U.deviceId})),b=ae.useRef(null),v=ae.useRef(0),C=ae.useCallback(async()=>{var G,Y;if(!Ov)return;if(b.current){(Y=(G=b.current).stop)==null||Y.call(G),b.current=null,p("idle"),s(0);return}const U=Ov.testMicrophone({microphoneId:r,speakerId:o,recordAndPlay:!0,onAnalyseFrequency:Q=>{const me=Date.now();me-v.current>DN&&(v.current=me,s(Q))},onStartRecording:()=>p("recording"),onStartPlayRecording:()=>p("playing"),onStopPlayRecording:()=>{p("idle"),b.current=null,s(0)}});b.current=U,p("recording")},[r,o]),A=ae.useRef(null),R=ae.useRef(0),x=ae.useCallback(async()=>{var G,Y;if(!Ov)return;if(A.current){(Y=(G=A.current).destroy)==null||Y.call(G),A.current=null,c(0);return}const U=Ov.testSpeaker({speakerId:o,onAnalyseFrequency:Q=>{const me=Date.now();me-R.current>DN&&(R.current=me,c(Q))}});A.current=U},[o]),k=ae.useCallback(U=>se.jsx(p0,{option:U,isActive:U.value===r}),[r]),D=ae.useCallback(U=>se.jsx(d0,{option:U,icon:"fa-regular fa-microphone"}),[]),F=ae.useCallback(U=>se.jsx(p0,{option:U,isActive:U.value===o}),[o]),$=ae.useCallback(U=>se.jsx(d0,{option:U,icon:"fa-regular fa-volume"}),[]);return ae.useEffect(()=>()=>{var U,G,Y,Q;(G=(U=b.current)==null?void 0:U.stop)==null||G.call(U),(Q=(Y=A.current)==null?void 0:Y.destroy)==null||Q.call(Y)},[]),se.jsxs("div",{className:"flex flex-col",children:[se.jsx("p",{className:"text-s font-bold",children:"Micrófono"}),se.jsx("p",{className:"text-s mb-8 text-neutral-40",children:"Selecciona un método de entrada de audio"}),se.jsx(hu,{className:"mb-16 w-full",itemTemplate:k,placeholder:"Selecciona un micrófono",options:m,onChange:U=>n(U.value),value:r,valueTemplate:D}),se.jsxs("div",{className:"mt-4 mb-8",children:[se.jsx("p",{className:"text-s font-bold",children:"Prueba de micrófono"}),se.jsx("div",{className:"mt-4 self-start",children:se.jsxs("p",{className:"text-s text-neutral-40 text-start",children:[d==="idle"&&"Graba una muestra de tu voz y escúchela para verificar el funcionamiento.",d==="recording"&&"Grabando la voz... espera unos segundos.",d==="playing"&&"Reproduciendo grabación..."]})})]}),se.jsxs("button",{type:"button",onClick:C,className:Ni("w-fit rounded-l p-8 font-semibold transition-all duration-200 border hover:border-neutral-70 text-white",{"bg-neutral-60":d==="recording"||d==="playing","bg-neutral-50":d==="idle"}),children:[d==="recording"&&"Detener grabación",d==="playing"&&"Detener reproducción",d==="idle"&&"Probar micrófono"]}),se.jsx(Xw,{value:d==="idle"?0:a,showValue:!1,className:"w-full mt-4 h-8 rounded-m border border-neutral-80"}),se.jsxs("div",{className:"mt-32",children:[se.jsx("p",{className:"text-s font-bold",children:"Altavoz"}),se.jsx("p",{className:"text-s mb-8 text-neutral-40",children:"Selecciona un método de salida de audio"}),se.jsx(hu,{className:"mb-16 w-full",itemTemplate:F,onChange:U=>i(U.value),options:y,placeholder:"Selecciona un altavoz",value:o,valueTemplate:$}),se.jsx("button",{type:"button",onClick:x,className:Ni("w-fit rounded-l p-8 font-semibold transition-all duration-200 border hover:border-neutral-70 text-white",A.current?"bg-neutral-60":"bg-neutral-50"),children:A.current?"Detener prueba de altavoz":"Probar altavoz"}),se.jsx(Xw,{value:l,showValue:!1,className:"w-full mt-8 h-8 rounded-m border border-neutral-80"})]})]})},BY=()=>{const{isBlurred:e,switchBlurred:t}=$d(),r=[{label:"Ninguno",icon:"fa-ban",isActive:!e},{label:"Desenfocar",icon:"fa-droplet",isActive:e}];return se.jsxs("div",{className:"flex flex-col",children:[se.jsx("p",{className:"text-s font-bold mb-8",children:"Fondo"}),se.jsx("div",{className:"flex gap-12",children:r.map(({label:n,icon:o,isActive:i})=>se.jsxs("button",{type:"button",onClick:i?()=>{}:()=>t(!e),className:Ni("w-full h-80 flex flex-col items-center justify-center gap-8 border rounded-l bg-white font-bold transition-colors ease-in-out",i?"!border-neutral-60 border-2 cursor-default":"border-neutral-80 hover:border-neutral-70"),children:[se.jsx("span",{className:"flex items-center justify-center w-24 h-24",children:se.jsx("i",{className:Ni("fa-regular fa-xl",o),"aria-hidden":"true"})}),se.jsx("span",{children:n})]},n))})]})},HY=()=>{const{activeCameraId:e,switchCamera:t,cameraList:r}=$d(),n=r.map((a,s)=>({label:a.label||`Cámara ${s+1}`,value:a.deviceId})),o=ae.useCallback(a=>se.jsx(p0,{option:a,isActive:a.value===e}),[e]),i=ae.useCallback(a=>se.jsx(d0,{option:a,icon:"fa-regular fa-video"}),[]);return se.jsxs("div",{className:"flex flex-col",children:[se.jsx("p",{className:"text-s font-bold mb-8",children:"Cámara"}),se.jsx(hu,{className:"mb-16",itemTemplate:o,onChange:a=>t(a.value),options:n,placeholder:"Selecciona una cámara",value:e??"",valueTemplate:i})]})},UY={Audio:VY,Video:HY,Background:BY},$Y=()=>{const{selectedSettingsTab:e}=V9(),t=UY[e];return t?se.jsx(t,{}):null},WY=680,NN=Qa.Audio,CL=()=>{const{configDialogVisible:e,toggleConfigDialog:t}=bs(),[r,n]=ae.useState(NN);ae.useEffect(()=>{e&&n(e.tab??NN)},[e]);const o=ae.useMemo(()=>({selectedSettingsTab:r,setSelectedSettingsTab:n}),[r]);return se.jsx(mL,{visible:e.visible,onHide:()=>t({}),header:"Ajustes",width:WY,className:"min-w-[30vw] [&_.p-dialog-content]:overflow-hidden",children:se.jsx(j9.Provider,{value:o,children:se.jsxs("div",{className:"flex flex-col md:flex-row divide-y md:divide-y-0 md:divide-x divide-neutral-80 h-full",children:[se.jsx(pY,{}),se.jsx("div",{className:"flex-1 overflow-y-auto p-24",children:se.jsx($Y,{})})]})})})},fs=({item:e,options:t,activeItem:r,icon:n})=>{var i;const o=e.id===r;return se.jsx("div",{className:"p-menuitem-content","data-pc-section":"content",children:se.jsxs("a",{"aria-label":e.label,className:t.className,"data-test":(i=e==null?void 0:e.data)==null?void 0:i.dataTestId,"data-pc-section":"action",href:"#",onClick:t.onClick,children:[o&&!n&&se.jsx("span",{className:t.iconClassName,"data-pc-section":"icon",children:se.jsx("i",{className:"fa-regular fa-check","aria-hidden":"true","data-testid":"check-icon"})}),n&&!o&&n,se.jsx("span",{className:t.labelClassName,"data-pc-section":"label",children:e.label})]})})},zY=()=>{const e=fg(),{breakpoint:t,initVotingPreSession:r}=Tf(),{requestSharedState:n}=U0(),o=t===xm.Mobile,{joinSession:i}=ll(),{localVideoRef:a,localVideoStarted:s,stopLocalVideo:l,cameraList:c,activeCameraId:d,startVideo:p,switchCamera:m}=$d(),{micList:y,activeMicId:b,switchMic:v,muteMic:C,micMuted:A,unmuteMic:R,speakerList:x,activeSpeakerId:k,switchSpeaker:D}=Ic(),{toggleConfigDialog:F}=bs(),$=ae.useRef(null),U=ae.useRef(null),G=ae.useRef(null),[Y]=wa(async()=>{s?await l():await p()},[s,p,l],e.ref),[Q]=wa(async oe=>{await m(oe)},[m],e.ref),me=ae.useCallback(()=>{A?R():C()},[A,C,R]),[ne]=wa(async()=>{await i(),await r(),await l(),await n()},[l,i,r,n],e.ref),Ee=x.map(oe=>({disabled:e.loading,id:oe.deviceId,label:oe.label,command:()=>D(oe.deviceId),template:(Se,re)=>se.jsx(fs,{item:Se,options:re,activeItem:k})})).concat([{disabled:!1,label:"Configuración de audio",id:"audio-settings",command:async()=>F({tab:Qa.Audio}),template:(oe,Se)=>se.jsx(fs,{item:oe,options:Se,activeItem:k})}]),ce=c.map(oe=>({disabled:e.loading,label:oe.label,id:oe.deviceId,template:(Se,re)=>se.jsx(fs,{item:Se,options:re,activeItem:d}),command:()=>Q(oe.deviceId)})).concat([{disabled:!1,label:"Configuración de cámara",id:"camera-settings",command:async()=>F({tab:Qa.Video}),template:(oe,Se)=>se.jsx(fs,{item:oe,options:Se,activeItem:d})}]),_e=y.map(oe=>({disabled:e.loading,id:oe.deviceId,label:oe.label,command:()=>v(oe.deviceId),template:(Se,re)=>se.jsx(fs,{item:Se,options:re,activeItem:b})})).concat([{disabled:!1,id:"microphone-settings",label:"Configuración de micrófono",command:async()=>F({tab:Qa.Audio}),template:(oe,Se)=>se.jsx(fs,{item:oe,options:Se,activeItem:b})}]),Ne=ae.useRef(!1);return ae.useEffect(()=>{d&&!Ne.current&&(p(),Ne.current=!0)},[d,p]),se.jsxs("div",{className:"flex flex-col w-full max-w-3xl py-24 px-16 mx-auto","data-testid":"setup-page",children:[se.jsxs("div",{className:"text-center mb-24",children:[se.jsx("h1",{className:"text-xl font-bold mb-8",children:"Acceso a la videoconferencia"}),se.jsx("p",{className:"text-neutral-40",children:"Comprueba que todo funciona correctamente para una mejor experiencia en la videollamada."})]}),se.jsxs("div",{className:"relative w-full aspect-video bg-bluetiful-10 mb-16 rounded-xl overflow-hidden",children:[se.jsx("video",{ref:a,className:Ni("absolute inset-0 w-full h-full object-cover",{hidden:!s})}),!s&&se.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-neutral-80",children:se.jsxs("div",{className:"text-center",children:[se.jsx("i",{className:"fa-regular fa-video-slash mb-8"}),se.jsx("p",{children:"Video desactivado"})]})}),A&&se.jsx("div",{className:"absolute top-24 right-24 flex items-center justify-center text-white",children:se.jsx("i",{className:"fa-regular fa-microphone-slash text-2xl"})}),se.jsx("div",{className:"absolute bottom-16 inset-x-0 flex items-center justify-center",children:se.jsxs("div",{className:"flex gap-8 shrink-0",children:[se.jsx(cs,{disabled:e.loading,mainIcon:`fa-regular ${A?"fa-microphone-slash":"fa-microphone"}`,mainLabel:o?void 0:"Micrófono",mainTitle:A?"Activar sonido":"Silenciar",onMainClick:me,showSecondary:!o,secondaryIcon:"fa-regular fa-chevron-up",secondaryTitle:"Ajustes de micrófono",onSecondaryClick:oe=>{var Se;return(Se=G.current)==null?void 0:Se.toggle(oe)}}),se.jsx(cs,{disabled:e.loading,mainIcon:"fa-regular fa-volume",mainLabel:o?void 0:"Altavoces",mainTitle:"Altavoces",onMainClick:oe=>{var Se;return(Se=$.current)==null?void 0:Se.toggle(oe)},showSecondary:!o,secondaryIcon:"fa-regular fa-chevron-up",secondaryTitle:"Ajustes de altavoces",onSecondaryClick:oe=>{var Se;return(Se=$.current)==null?void 0:Se.toggle(oe)}}),se.jsx(cs,{disabled:e.loading,mainIcon:`fa-regular ${s?"fa-video":"fa-video-slash"}`,mainLabel:o?void 0:"Cámara",mainTitle:s?"Apagar cámara":"Encender cámara",onMainClick:Y,showSecondary:!o,secondaryIcon:"fa-regular fa-chevron-up",secondaryTitle:"Ajustes de cámara",onSecondaryClick:oe=>{var Se;return(Se=U.current)==null?void 0:Se.toggle(oe)}}),se.jsx(cs,{mainIcon:"fa-regular fa-gear",mainLabel:o?void 0:"Ajustes",mainTitle:"Ajustes",onMainClick:()=>F({})})]})})]}),se.jsx("div",{className:"flex flex-col gap-16",children:se.jsx(Pi,{disabled:e.loading,label:"Acceder a la videoconferencia",onClick:ne,size:"small",className:"self-center","data-testid":"access-meeting-button"})}),se.jsx(CL,{}),se.jsx(uu,{model:_e,popup:!0,ref:G,id:"mic_popup_menu",popupAlignment:"left"}),se.jsx(uu,{model:Ee,popup:!0,ref:$,id:"audio_popup_menu",popupAlignment:"left"}),se.jsx(uu,{model:ce,popup:!0,ref:U,id:"video_popup_menu",popupAlignment:"left"})]})};function nI(){return nI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nI.apply(null,arguments)}function oI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function KY(e){if(Array.isArray(e))return oI(e)}function GY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wL(e,t){if(e){if(typeof e=="string")return oI(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?oI(e,t):void 0}}function qY(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1507
1507
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function MN(e){return KY(e)||GY(e)||wL(e)||qY()}function Lm(e){"@babel/helpers - typeof";return Lm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lm(e)}function JY(e,t){if(Lm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Lm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YY(e){var t=JY(e,"string");return Lm(t)=="symbol"?t:t+""}function QY(e,t,r){return(t=YY(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XY(e){if(Array.isArray(e))return e}function ZY(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function eQ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1508
1508
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _v(e,t){return XY(e)||ZY(e,t)||wL(e,t)||eQ()}var tQ={root:function(t){var r=t.props;return dt("p-splitter p-component p-splitter-".concat(r.layout))},gutter:"p-splitter-gutter",gutterHandler:"p-splitter-gutter-handle",panel:{root:"p-splitter-panel"}},rQ=`
1509
1509
  @layer primereact {
@@ -1611,7 +1611,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1611
1611
  display: flex;
1612
1612
  }
1613
1613
  }
1614
- `}});function jN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function vQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jN(Object(r),!0).forEach(function(n){TL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var OL=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Dv.getProps(e,n),i=S.useRef(null),a=Dv.setMetaData({props:o}),s=a.ptm,l=a.cx,c=a.isUnstyled;vo(Dv.css.styles,c,{name:"message"});var d=function(){if(o.content)return pe.getJSXElement(o.content,o);var b=pe.getJSXElement(o.text,o),v=r({className:l("icon")},s("icon")),C=o.icon;if(!C)switch(o.severity){case"info":C=S.createElement(yR,v);break;case"warn":C=S.createElement(vR,v);break;case"error":C=S.createElement(B0,v);break;case"success":C=S.createElement(Cc,v);break}var A=nn.getJSXIcon(C,vQ({},v),{props:o}),R=r({className:l("text")},s("text"));return S.createElement(S.Fragment,null,A,S.createElement("span",R,b))};S.useImperativeHandle(t,function(){return{props:o,getElement:function(){return i.current}}});var p=d(),m=r({className:dt(o.className,l("root")),style:o.style,role:"alert","aria-live":"polite","aria-atomic":"true"},Dv.getOtherProps(o),s("root"));return S.createElement("div",lI({id:o.id,ref:i},m),p)}));OL.displayName="Message";const yQ=448,bQ=()=>{const{acceptParticipationDialogVisible:e,toggleAcceptParticipationDialog:t,notify:r}=bs(),{micList:n,activeMicId:o,switchMic:i,unmuteMic:a}=Ic(),s=se.useMemo(()=>n.map((d,p)=>({label:d.label||`Micrófono ${p+1}`,value:d.deviceId})),[n]),l=se.useCallback(d=>ae.jsx(p0,{option:d,isActive:d.value===o}),[o]),c=se.useCallback(d=>ae.jsx(d0,{option:d,icon:"fa-regular fa-microphone"}),[]);return ae.jsxs(mL,{visible:e,onHide:()=>t(),header:"Participar en la videoconferencia",width:yQ,className:"min-w-[30vw] [&_.p-dialog-content]:overflow-hidden h-fit",children:[ae.jsxs("div",{className:"flex flex-col px-24 py-16 gap-16",children:[ae.jsx("p",{children:"El administrador te ha invitado a participar en la videoconferencia. Antes de acceder configura tus dispositivos de entrada."}),ae.jsx("p",{className:"text-s font-bold",children:"Micrófono"}),ae.jsx("p",{className:"text-s mb-8 text-neutral-40",children:"Selecciona un método de entrada de audio"}),ae.jsx(hu,{className:"mb-16 w-full",itemTemplate:l,placeholder:"Selecciona un micrófono",options:s,onChange:d=>i(d.value),value:o,valueTemplate:c})]}),ae.jsxs("footer",{className:"flex justify-end px-24 py-16 border-t border-neutral-80 gap-16",children:[ae.jsx(Pi,{onClick:()=>t(),label:"Cancelar",outlined:!0}),ae.jsx(Pi,{disabled:!o,label:"Participar",onClick:async()=>{t(),await a(),r({header:"Micrófono activado",message:"Has activado tu micrófono.",severity:"success"})}})]})]})},_L=se.createContext({openTabs:[],handleOpenCloseTab:()=>{},selfShareViewRef:{current:null}}),PL=()=>se.useContext(_L),rE=({activeSection:e,label:t,tabIdx:r,onClose:n})=>{const o=e===r,i=se.useCallback(a=>{a.preventDefault(),n==null||n(),a.stopPropagation()},[n]);return ae.jsxs("div",{className:"flex items-center justify-between w-full",children:[ae.jsx("span",{children:t}),ae.jsxs("span",{className:"flex gap-16",children:[ae.jsx(Pi,{"aria-label":o?"Collapse":"Expand",className:"border-0 w-24 h-24 bg-transparent text-l text-neutral-40 rounded-l",icon:`fa-regular fa-arrow${o?"-down-left-and-arrow-up-right-to-center":"-up-right-and-arrow-down-left-from-center"}`,tabIndex:-1}),ae.jsx(Pi,{"aria-label":"Close",className:"border-0 w-24 h-24 bg-transparent text-l text-neutral-40 rounded-l",icon:"fa-regular fa-xmark fa-lg",onClick:i,tabIndex:-1})]})]})};var SQ={root:function(t){var r=t.props,n=t.horizontal,o=t.vertical;return dt("p-divider p-component p-divider-".concat(r.layout," p-divider-").concat(r.type),{"p-divider-left":n&&(!r.align||r.align==="left"),"p-divider-right":n&&r.align==="right","p-divider-center":n&&r.align==="center"||o&&(!r.align||r.align==="center"),"p-divider-top":o&&r.align==="top","p-divider-bottom":o&&r.align==="bottom"},r.className)},content:"p-divider-content"},EQ=`
1614
+ `}});function jN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function vQ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jN(Object(r),!0).forEach(function(n){TL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var OL=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Dv.getProps(e,n),i=S.useRef(null),a=Dv.setMetaData({props:o}),s=a.ptm,l=a.cx,c=a.isUnstyled;vo(Dv.css.styles,c,{name:"message"});var d=function(){if(o.content)return pe.getJSXElement(o.content,o);var b=pe.getJSXElement(o.text,o),v=r({className:l("icon")},s("icon")),C=o.icon;if(!C)switch(o.severity){case"info":C=S.createElement(yR,v);break;case"warn":C=S.createElement(vR,v);break;case"error":C=S.createElement(B0,v);break;case"success":C=S.createElement(Cc,v);break}var A=nn.getJSXIcon(C,vQ({},v),{props:o}),R=r({className:l("text")},s("text"));return S.createElement(S.Fragment,null,A,S.createElement("span",R,b))};S.useImperativeHandle(t,function(){return{props:o,getElement:function(){return i.current}}});var p=d(),m=r({className:dt(o.className,l("root")),style:o.style,role:"alert","aria-live":"polite","aria-atomic":"true"},Dv.getOtherProps(o),s("root"));return S.createElement("div",lI({id:o.id,ref:i},m),p)}));OL.displayName="Message";const yQ=448,bQ=()=>{const{acceptParticipationDialogVisible:e,toggleAcceptParticipationDialog:t,notify:r}=bs(),{micList:n,activeMicId:o,switchMic:i,unmuteMic:a}=Ic(),s=ae.useMemo(()=>n.map((d,p)=>({label:d.label||`Micrófono ${p+1}`,value:d.deviceId})),[n]),l=ae.useCallback(d=>se.jsx(p0,{option:d,isActive:d.value===o}),[o]),c=ae.useCallback(d=>se.jsx(d0,{option:d,icon:"fa-regular fa-microphone"}),[]);return se.jsxs(mL,{visible:e,onHide:()=>t(),header:"Participar en la videoconferencia",width:yQ,className:"min-w-[30vw] [&_.p-dialog-content]:overflow-hidden h-fit",children:[se.jsxs("div",{className:"flex flex-col px-24 py-16 gap-16",children:[se.jsx("p",{children:"El administrador te ha invitado a participar en la videoconferencia. Antes de acceder configura tus dispositivos de entrada."}),se.jsx("p",{className:"text-s font-bold",children:"Micrófono"}),se.jsx("p",{className:"text-s mb-8 text-neutral-40",children:"Selecciona un método de entrada de audio"}),se.jsx(hu,{className:"mb-16 w-full",itemTemplate:l,placeholder:"Selecciona un micrófono",options:s,onChange:d=>i(d.value),value:o,valueTemplate:c})]}),se.jsxs("footer",{className:"flex justify-end px-24 py-16 border-t border-neutral-80 gap-16",children:[se.jsx(Pi,{onClick:()=>t(),label:"Cancelar",outlined:!0}),se.jsx(Pi,{disabled:!o,label:"Participar",onClick:async()=>{t(),await a(),r({header:"Micrófono activado",message:"Has activado tu micrófono.",severity:"success"})}})]})]})},_L=ae.createContext({openTabs:[],handleOpenCloseTab:()=>{},selfShareViewRef:{current:null}}),PL=()=>ae.useContext(_L),rE=({activeSection:e,label:t,tabIdx:r,onClose:n})=>{const o=e===r,i=ae.useCallback(a=>{a.preventDefault(),n==null||n(),a.stopPropagation()},[n]);return se.jsxs("div",{className:"flex items-center justify-between w-full",children:[se.jsx("span",{children:t}),se.jsxs("span",{className:"flex gap-16",children:[se.jsx(Pi,{"aria-label":o?"Collapse":"Expand",className:"border-0 w-24 h-24 bg-transparent text-l text-neutral-40 rounded-l",icon:`fa-regular fa-arrow${o?"-down-left-and-arrow-up-right-to-center":"-up-right-and-arrow-down-left-from-center"}`,tabIndex:-1}),se.jsx(Pi,{"aria-label":"Close",className:"border-0 w-24 h-24 bg-transparent text-l text-neutral-40 rounded-l",icon:"fa-regular fa-xmark fa-lg",onClick:i,tabIndex:-1})]})]})};var SQ={root:function(t){var r=t.props,n=t.horizontal,o=t.vertical;return dt("p-divider p-component p-divider-".concat(r.layout," p-divider-").concat(r.type),{"p-divider-left":n&&(!r.align||r.align==="left"),"p-divider-right":n&&r.align==="right","p-divider-center":n&&r.align==="center"||o&&(!r.align||r.align==="center"),"p-divider-top":o&&r.align==="top","p-divider-bottom":o&&r.align==="bottom"},r.className)},content:"p-divider-content"},EQ=`
1615
1615
  @layer primereact {
1616
1616
  .p-divider-horizontal {
1617
1617
  display: flex;
@@ -1735,13 +1735,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1735
1735
  width: 100%;
1736
1736
  }
1737
1737
  }
1738
- `,Lv=Ar.extend({defaultProps:{__TYPE:"InputTextarea",__parentMetadata:null,autoResize:!1,invalid:!1,variant:null,keyfilter:null,onBlur:null,onFocus:null,onBeforeInput:null,onInput:null,onKeyDown:null,onKeyUp:null,onPaste:null,tooltip:null,tooltipOptions:null,validateOnly:!1,children:void 0,className:null},css:{classes:zQ,styles:KQ}});function WN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function zN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WN(Object(r),!0).forEach(function(n){WQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var DL=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Lv.getProps(e,n),i=S.useRef(t),a=S.useRef(0),s=Lv.setMetaData(zN(zN({props:o},o.__parentMetadata),{},{context:{disabled:o.disabled}})),l=s.ptm,c=s.cx,d=s.isUnstyled;vo(Lv.css.styles,d,{name:"inputtextarea"});var p=function(U){o.autoResize&&R(),o.onFocus&&o.onFocus(U)},m=function(U){o.autoResize&&R(),o.onBlur&&o.onBlur(U)},y=function(U){o.autoResize&&R(),o.onKeyUp&&o.onKeyUp(U)},b=function(U){o.onKeyDown&&o.onKeyDown(U),o.keyfilter&&cu.onKeyPress(U,o.keyfilter,o.validateOnly)},v=function(U){o.onBeforeInput&&o.onBeforeInput(U),o.keyfilter&&cu.onBeforeInput(U,o.keyfilter,o.validateOnly)},C=function(U){o.onPaste&&o.onPaste(U),o.keyfilter&&cu.onPaste(U,o.keyfilter,o.validateOnly)},A=function(U){var G=U.target;o.autoResize&&R(pe.isEmpty(G.value)),o.onInput&&o.onInput(U),pe.isNotEmpty(G.value)?le.addClass(G,"p-filled"):le.removeClass(G,"p-filled")},R=function(U){var G=i.current;G&&x()&&(a.current||(a.current=G.scrollHeight,G.style.overflow="hidden"),(a.current!==G.scrollHeight||U)&&(G.style.height="",G.style.height=G.scrollHeight+"px",parseFloat(G.style.height)>=parseFloat(G.style.maxHeight)?(G.style.overflowY="scroll",G.style.height=G.style.maxHeight):G.style.overflow="hidden",a.current=G.scrollHeight))},x=function(){if(le.isVisible(i.current)){var U=i.current.getBoundingClientRect();return U.width>0&&U.height>0}return!1};S.useEffect(function(){pe.combinedRefs(i,t)},[i,t]),S.useEffect(function(){o.autoResize&&R(!0)},[o.autoResize,o.value]);var k=S.useMemo(function(){return pe.isNotEmpty(o.value)||pe.isNotEmpty(o.defaultValue)},[o.value,o.defaultValue]),D=pe.isNotEmpty(o.tooltip),F=r({ref:i,className:dt(o.className,c("root",{context:n,isFilled:k})),onFocus:p,onBlur:m,onKeyUp:y,onKeyDown:b,onBeforeInput:v,onInput:A,onPaste:C},Lv.getOtherProps(o),l("root"));return S.createElement(S.Fragment,null,S.createElement("textarea",F),D&&S.createElement(Ml,cI({target:i,content:o.tooltip,pt:l("tooltip")},o.tooltipOptions)))}));DL.displayName="InputTextarea";const GQ=({isChatActive:e,receivers:t,sendMessage:r})=>{const[n,o]=se.useState(""),[i,a]=se.useState(t.find(c=>c.userId===0)||null),s=se.useMemo(()=>t.map(c=>({label:c.displayName,value:c})),[t]),l=()=>{n.trim()&&(r({text:n.trim(),receiverId:(i==null?void 0:i.userId)??0}),o(""))};return ae.jsxs("form",{"aria-label":"Enviar mensaje de chat",className:"flex flex-col gap-4 p-16",onSubmit:c=>{c.preventDefault(),l()},children:[ae.jsx(hu,{"aria-label":"Select chat recipient",className:"w-full mb-4",disabled:!e,options:s,onChange:c=>a(c.value),optionLabel:"label",placeholder:"Enviar a...",value:i}),ae.jsxs("div",{className:"flex gap-8 [&_.p-tooltip-target-wrapper]:flex-grow",children:[ae.jsx(DL,{"aria-label":"Entrada de mensaje de chat",autoResize:!0,className:"max-h-80 flex-grow",disabled:!e,maxLength:800,onChange:c=>o(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&e&&(c.preventDefault(),l())},placeholder:"Escribe tu mensaje...",tooltip:e?void 0:"El chat está desactivado por el anfitrión",tooltipOptions:{position:"top",showOnDisabled:!0},rows:1,value:n}),ae.jsx(Pi,{"aria-label":"Enviar mensaje",className:"ml-4 h-fit",disabled:!n.trim()||!e,icon:"pi pi-send",type:"submit"})]})]})};var qQ={root:"p-card p-component",header:"p-card-header",title:"p-card-title",subTitle:"p-card-subtitle",content:"p-card-content",footer:"p-card-footer",body:"p-card-body"},JQ=`
1738
+ `,Lv=Ar.extend({defaultProps:{__TYPE:"InputTextarea",__parentMetadata:null,autoResize:!1,invalid:!1,variant:null,keyfilter:null,onBlur:null,onFocus:null,onBeforeInput:null,onInput:null,onKeyDown:null,onKeyUp:null,onPaste:null,tooltip:null,tooltipOptions:null,validateOnly:!1,children:void 0,className:null},css:{classes:zQ,styles:KQ}});function WN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function zN(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?WN(Object(r),!0).forEach(function(n){WQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):WN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var DL=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Lv.getProps(e,n),i=S.useRef(t),a=S.useRef(0),s=Lv.setMetaData(zN(zN({props:o},o.__parentMetadata),{},{context:{disabled:o.disabled}})),l=s.ptm,c=s.cx,d=s.isUnstyled;vo(Lv.css.styles,d,{name:"inputtextarea"});var p=function(U){o.autoResize&&R(),o.onFocus&&o.onFocus(U)},m=function(U){o.autoResize&&R(),o.onBlur&&o.onBlur(U)},y=function(U){o.autoResize&&R(),o.onKeyUp&&o.onKeyUp(U)},b=function(U){o.onKeyDown&&o.onKeyDown(U),o.keyfilter&&cu.onKeyPress(U,o.keyfilter,o.validateOnly)},v=function(U){o.onBeforeInput&&o.onBeforeInput(U),o.keyfilter&&cu.onBeforeInput(U,o.keyfilter,o.validateOnly)},C=function(U){o.onPaste&&o.onPaste(U),o.keyfilter&&cu.onPaste(U,o.keyfilter,o.validateOnly)},A=function(U){var G=U.target;o.autoResize&&R(pe.isEmpty(G.value)),o.onInput&&o.onInput(U),pe.isNotEmpty(G.value)?le.addClass(G,"p-filled"):le.removeClass(G,"p-filled")},R=function(U){var G=i.current;G&&x()&&(a.current||(a.current=G.scrollHeight,G.style.overflow="hidden"),(a.current!==G.scrollHeight||U)&&(G.style.height="",G.style.height=G.scrollHeight+"px",parseFloat(G.style.height)>=parseFloat(G.style.maxHeight)?(G.style.overflowY="scroll",G.style.height=G.style.maxHeight):G.style.overflow="hidden",a.current=G.scrollHeight))},x=function(){if(le.isVisible(i.current)){var U=i.current.getBoundingClientRect();return U.width>0&&U.height>0}return!1};S.useEffect(function(){pe.combinedRefs(i,t)},[i,t]),S.useEffect(function(){o.autoResize&&R(!0)},[o.autoResize,o.value]);var k=S.useMemo(function(){return pe.isNotEmpty(o.value)||pe.isNotEmpty(o.defaultValue)},[o.value,o.defaultValue]),D=pe.isNotEmpty(o.tooltip),F=r({ref:i,className:dt(o.className,c("root",{context:n,isFilled:k})),onFocus:p,onBlur:m,onKeyUp:y,onKeyDown:b,onBeforeInput:v,onInput:A,onPaste:C},Lv.getOtherProps(o),l("root"));return S.createElement(S.Fragment,null,S.createElement("textarea",F),D&&S.createElement(Ml,cI({target:i,content:o.tooltip,pt:l("tooltip")},o.tooltipOptions)))}));DL.displayName="InputTextarea";const GQ=({isChatActive:e,receivers:t,sendMessage:r})=>{const[n,o]=ae.useState(""),[i,a]=ae.useState(t.find(c=>c.userId===0)||null),s=ae.useMemo(()=>t.map(c=>({label:c.displayName,value:c})),[t]),l=()=>{n.trim()&&(r({text:n.trim(),receiverId:(i==null?void 0:i.userId)??0}),o(""))};return se.jsxs("form",{"aria-label":"Enviar mensaje de chat",className:"flex flex-col gap-4 p-16",onSubmit:c=>{c.preventDefault(),l()},children:[se.jsx(hu,{"aria-label":"Select chat recipient",className:"w-full mb-4",disabled:!e,options:s,onChange:c=>a(c.value),optionLabel:"label",placeholder:"Enviar a...",value:i}),se.jsxs("div",{className:"flex gap-8 [&_.p-tooltip-target-wrapper]:flex-grow",children:[se.jsx(DL,{"aria-label":"Entrada de mensaje de chat",autoResize:!0,className:"max-h-80 flex-grow",disabled:!e,maxLength:800,onChange:c=>o(c.target.value),onKeyDown:c=>{c.key==="Enter"&&!c.shiftKey&&e&&(c.preventDefault(),l())},placeholder:"Escribe tu mensaje...",tooltip:e?void 0:"El chat está desactivado por el anfitrión",tooltipOptions:{position:"top",showOnDisabled:!0},rows:1,value:n}),se.jsx(Pi,{"aria-label":"Enviar mensaje",className:"ml-4 h-fit",disabled:!n.trim()||!e,icon:"pi pi-send",type:"submit"})]})]})};var qQ={root:"p-card p-component",header:"p-card-header",title:"p-card-title",subTitle:"p-card-subtitle",content:"p-card-content",footer:"p-card-footer",body:"p-card-body"},JQ=`
1739
1739
  @layer primereact {
1740
1740
  .p-card-header img {
1741
1741
  width: 100%;
1742
1742
  }
1743
1743
  }
1744
- `,Fv=Ar.extend({defaultProps:{__TYPE:"Card",id:null,header:null,footer:null,title:null,subTitle:null,style:null,className:null,children:void 0},css:{classes:qQ,styles:JQ}}),NL=S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Fv.getProps(e,n),i=S.useRef(t),a=Fv.setMetaData({props:o}),s=a.ptm,l=a.cx,c=a.isUnstyled;vo(Fv.css.styles,c,{name:"card"});var d=function(){var C=r({className:l("header")},s("header"));return o.header?S.createElement("div",C,pe.getJSXElement(o.header,o)):null},p=function(){var C=r({className:l("title")},s("title")),A=o.title&&S.createElement("div",C,pe.getJSXElement(o.title,o)),R=r({className:l("subTitle")},s("subTitle")),x=o.subTitle&&S.createElement("div",R,pe.getJSXElement(o.subTitle,o)),k=r({className:l("content")},s("content")),D=o.children&&S.createElement("div",k,o.children),F=r({className:l("footer")},s("footer")),$=o.footer&&S.createElement("div",F,pe.getJSXElement(o.footer,o)),U=r({className:l("body")},s("body"));return S.createElement("div",U,A,x,D,$)};S.useEffect(function(){pe.combinedRefs(i,t)},[i,t]);var m=r({id:o.id,ref:i,style:o.style,className:dt(o.className,l("root"))},Fv.getOtherProps(o),s("root")),y=d(),b=p();return S.createElement("div",m,y,b)});NL.displayName="Card";const YQ=({isCurrentUserSender:e,isPrivate:t,receiverName:r,isPrivateToCurrentUser:n})=>{const o=ae.jsx("i",{className:"fa-regular fa-lock mr-8","aria-hidden":"true"});return e&&t?ae.jsxs("div",{className:"flex items-center gap-8 mb-4",children:[o,ae.jsxs("span",{className:"font-semibold text-s",children:["Mensaje privado para ",r]})]}):!e&&n?ae.jsxs("div",{className:"flex items-center gap-8",children:[o,ae.jsx("span",{className:"font-semibold text-s",children:"Mensaje privado para ti"})]}):null};function Um(e){"@babel/helpers - typeof";return Um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Um(e)}function QQ(e,t){if(Um(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Um(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XQ(e){var t=QQ(e,"string");return Um(t)=="symbol"?t:t+""}function ZQ(e,t,r){return(t=XQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dI(){return dI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dI.apply(null,arguments)}function eX(e){if(Array.isArray(e))return e}function tX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function KN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function rX(e,t){if(e){if(typeof e=="string")return KN(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?KN(e,t):void 0}}function nX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1744
+ `,Fv=Ar.extend({defaultProps:{__TYPE:"Card",id:null,header:null,footer:null,title:null,subTitle:null,style:null,className:null,children:void 0},css:{classes:qQ,styles:JQ}}),NL=S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Fv.getProps(e,n),i=S.useRef(t),a=Fv.setMetaData({props:o}),s=a.ptm,l=a.cx,c=a.isUnstyled;vo(Fv.css.styles,c,{name:"card"});var d=function(){var C=r({className:l("header")},s("header"));return o.header?S.createElement("div",C,pe.getJSXElement(o.header,o)):null},p=function(){var C=r({className:l("title")},s("title")),A=o.title&&S.createElement("div",C,pe.getJSXElement(o.title,o)),R=r({className:l("subTitle")},s("subTitle")),x=o.subTitle&&S.createElement("div",R,pe.getJSXElement(o.subTitle,o)),k=r({className:l("content")},s("content")),D=o.children&&S.createElement("div",k,o.children),F=r({className:l("footer")},s("footer")),$=o.footer&&S.createElement("div",F,pe.getJSXElement(o.footer,o)),U=r({className:l("body")},s("body"));return S.createElement("div",U,A,x,D,$)};S.useEffect(function(){pe.combinedRefs(i,t)},[i,t]);var m=r({id:o.id,ref:i,style:o.style,className:dt(o.className,l("root"))},Fv.getOtherProps(o),s("root")),y=d(),b=p();return S.createElement("div",m,y,b)});NL.displayName="Card";const YQ=({isCurrentUserSender:e,isPrivate:t,receiverName:r,isPrivateToCurrentUser:n})=>{const o=se.jsx("i",{className:"fa-regular fa-lock mr-8","aria-hidden":"true"});return e&&t?se.jsxs("div",{className:"flex items-center gap-8 mb-4",children:[o,se.jsxs("span",{className:"font-semibold text-s",children:["Mensaje privado para ",r]})]}):!e&&n?se.jsxs("div",{className:"flex items-center gap-8",children:[o,se.jsx("span",{className:"font-semibold text-s",children:"Mensaje privado para ti"})]}):null};function Um(e){"@babel/helpers - typeof";return Um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Um(e)}function QQ(e,t){if(Um(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Um(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XQ(e){var t=QQ(e,"string");return Um(t)=="symbol"?t:t+""}function ZQ(e,t,r){return(t=XQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dI(){return dI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dI.apply(null,arguments)}function eX(e){if(Array.isArray(e))return e}function tX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function KN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function rX(e,t){if(e){if(typeof e=="string")return KN(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?KN(e,t):void 0}}function nX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1745
1745
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GN(e,t){return eX(e)||tX(e,t)||rX(e,t)||nX()}var oX={root:function(t){var r=t.props,n=t.state;return dt("p-avatar p-component",{"p-avatar-image":pe.isNotEmpty(r.image)&&!n.imageFailed,"p-avatar-circle":r.shape==="circle","p-avatar-lg":r.size==="large","p-avatar-xl":r.size==="xlarge","p-avatar-clickable":!!r.onClick})},label:"p-avatar-text",icon:"p-avatar-icon"},iX=`
1746
1746
  @layer primereact {
1747
1747
  .p-avatar {
@@ -1778,7 +1778,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1778
1778
  cursor: pointer;
1779
1779
  }
1780
1780
  }
1781
- `,jv=Ar.extend({defaultProps:{__TYPE:"Avatar",className:null,icon:null,image:null,imageAlt:"avatar",imageFallback:"default",label:null,onImageError:null,shape:"square",size:"normal",style:null,template:null,children:void 0},css:{classes:oX,styles:iX}});function qN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function aX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qN(Object(r),!0).forEach(function(n){ZQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ML=S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=jv.getProps(e,n),i=S.useRef(null),a=S.useState(!1),s=GN(a,2),l=s[0],c=s[1],d=S.useState(!1),p=GN(d,2),m=p[0],y=p[1],b=jv.setMetaData({props:o,state:{imageFailed:l,nested:m}}),v=b.ptm,C=b.cx,A=b.isUnstyled;vo(jv.css.styles,A,{name:"avatar"});var R=function(){if(pe.isNotEmpty(o.image)&&!l){var $=r({src:o.image,onError:x},v("image"));return S.createElement("img",dI({alt:o.imageAlt},$))}else if(o.label){var U=r({className:C("label")},v("label"));return S.createElement("span",U,o.label)}else if(o.icon){var G=r({className:C("icon")},v("icon"));return nn.getJSXIcon(o.icon,aX({},G),{props:o})}return null},x=function($){o.imageFallback==="default"?o.onImageError||(c(!0),$.target.src=null):$.target.src=o.imageFallback,o.onImageError&&o.onImageError($)};S.useEffect(function(){var F=le.isAttributeEquals(i.current.parentElement,"data-pc-name","avatargroup");y(F)},[]),S.useImperativeHandle(t,function(){return{props:o,getElement:function(){return i.current}}});var k=r({ref:i,style:o.style,className:dt(o.className,C("root",{imageFailed:l}))},jv.getOtherProps(o),v("root")),D=o.template?pe.getJSXElement(o.template,o):R();return S.createElement("div",k,D,o.children)});ML.displayName="Avatar";const JN=["bg-medievalblue-50","bg-highblue-50","bg-lavender-50","bg-neutral-20","bg-danger-60","bg-success-70","bg-warning-10","bg-info-90","bg-started","bg-updated","bg-contest","bg-danger-90","bg-shareholders","bg-bluetiful-50","bg-assembly","bg-contest-light","bg-shareholders-light","bg-error-10","bg-draft","bg-union-elections"],sX=({sender:e,isHost:t})=>{var i;const r=(((i=e.name)==null?void 0:i.split(" ").map(a=>a[0]).join("").slice(0,2))||"").toUpperCase(),n=e.userId%JN.length,o=JN[n];return ae.jsxs("div",{className:"flex items-center gap-8 mb-4",children:[ae.jsx(ML,{label:r,shape:"circle",className:Ni("!text-white font-semibold text-s select-none",o)}),ae.jsx("span",{className:"font-semibold",children:e.name}),t&&ae.jsx(gg,{label:"Admin",className:"text-neutral-50 rounded-l font-semibold"})]})},lX=({chatMessage:e,currentUserId:t,isHost:r})=>{const n=e.sender.userId===t,o=e.receiver.userId===t,i=e.receiver.userId===0;return!i&&!n&&!o?null:ae.jsxs(ae.Fragment,{children:[!n&&ae.jsx(sX,{sender:e.sender,isHost:r}),ae.jsxs(NL,{className:Ni("flex flex-col gap-4 py-8 px-12 w-4/5 rounded-xl",n?"ml-auto rounded-tr-none bg-bluetiful-95":"mr-auto rounded-tl-none bg-neutral-90"),unstyled:!0,"aria-label":n?"Your message":`Message from ${e.sender.name}`,role:"article",children:[ae.jsx(YQ,{isCurrentUserSender:n,isPrivate:!i,receiverName:e.receiver.name,isPrivateToCurrentUser:!n&&o}),ae.jsx("span",{className:"flex items-center gap-8 whitespace-pre-line","aria-label":"Chat message text",children:e.message}),ae.jsx("div",{className:"flex justify-end",children:ae.jsx("span",{className:"text-xs","aria-label":"Message timestamp",children:RR(e.timestamp)})})]},e.id)]})},YN=()=>{const e=Wd(),{currentUser:t,users:r}=yu(),{confirm:n,notify:o}=bs(),{sendMessage:i,messages:a,receivers:s}=lL(),{sharedState:l,toggleChat:c}=U0(),d=se.useRef(null),p=se.useMemo(()=>{var v;return(v=r.find(C=>C.isHost))==null?void 0:v.userId},[r]),m=se.useMemo(()=>{var v;return((v=l==null?void 0:l.chatState)==null?void 0:v.active)??!1},[l]),y=(t==null?void 0:t.userId)||0,b=v=>{n({header:v.value?"Activar":"Desactivar",message:v.value?"¿Quieres activar el chat? Los asistentes podrán enviar mensajes.":"¿Quieres desactivar el chat? Los asistentes no podrán enviar más mensajes.",onAccept:async()=>{await c(v.value),o({header:v.value?"Chat activado":"Chat desactivado",message:v.value?"Has activado el chat.":"Has desactivado el chat.",severity:"success"})}})};return se.useEffect(()=>{d.current&&d.current.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},[a]),ae.jsx("div",{className:"relative h-full w-full flex flex-col",children:ae.jsxs("div",{className:"flex flex-col h-full",children:[ae.jsxs("div",{className:"flex flex-col p-16 pb-0 h-full",children:[e("activate-chat")&&ae.jsxs("label",{className:"flex items-center self-end w-fit gap-8 mb-16",children:[ae.jsx(AR,{checked:m,onChange:b}),ae.jsx("span",{children:m?"Desactivar":"Activar"})]}),ae.jsx("div",{className:"flex-1 min-h-0",children:ae.jsxs("div",{className:"flex flex-col gap-8 overflow-y-auto py-32 h-full max-h-[60vh]",ref:d,children:[a.map((v,C)=>ae.jsx(lX,{chatMessage:v,currentUserId:y,isHost:v.sender.userId===p},v.id??C)),!m&&ae.jsx(gg,{label:l.chatState.timestamp&&Number(l.chatState.timestamp)?`Chat apagado por el administrador ${RR(Number(l.chatState.timestamp))}`:"Chat apagado por el administrador",className:"self-center mt-16 text-neutral-20 rounded-l font-semibold text-s"})]})})]}),ae.jsxs("div",{className:"sticky bottom-0 z-10 bg-white",children:[ae.jsx(xL,{className:"my-8"}),ae.jsx(GQ,{receivers:s,sendMessage:i,isChatActive:m})]})]})})};function pI(){return pI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pI.apply(null,arguments)}var kL=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",pI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"}))}));kL.displayName="MinusIcon";function fI(){return fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fI.apply(null,arguments)}var TR=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",fI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{d:"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",fill:"currentColor"}))}));TR.displayName="PlusIcon";function hI(){return hI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hI.apply(null,arguments)}function uX(e){if(Array.isArray(e))return e}function cX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function QN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dX(e,t){if(e){if(typeof e=="string")return QN(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?QN(e,t):void 0}}function pX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1781
+ `,jv=Ar.extend({defaultProps:{__TYPE:"Avatar",className:null,icon:null,image:null,imageAlt:"avatar",imageFallback:"default",label:null,onImageError:null,shape:"square",size:"normal",style:null,template:null,children:void 0},css:{classes:oX,styles:iX}});function qN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function aX(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qN(Object(r),!0).forEach(function(n){ZQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var ML=S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=jv.getProps(e,n),i=S.useRef(null),a=S.useState(!1),s=GN(a,2),l=s[0],c=s[1],d=S.useState(!1),p=GN(d,2),m=p[0],y=p[1],b=jv.setMetaData({props:o,state:{imageFailed:l,nested:m}}),v=b.ptm,C=b.cx,A=b.isUnstyled;vo(jv.css.styles,A,{name:"avatar"});var R=function(){if(pe.isNotEmpty(o.image)&&!l){var $=r({src:o.image,onError:x},v("image"));return S.createElement("img",dI({alt:o.imageAlt},$))}else if(o.label){var U=r({className:C("label")},v("label"));return S.createElement("span",U,o.label)}else if(o.icon){var G=r({className:C("icon")},v("icon"));return nn.getJSXIcon(o.icon,aX({},G),{props:o})}return null},x=function($){o.imageFallback==="default"?o.onImageError||(c(!0),$.target.src=null):$.target.src=o.imageFallback,o.onImageError&&o.onImageError($)};S.useEffect(function(){var F=le.isAttributeEquals(i.current.parentElement,"data-pc-name","avatargroup");y(F)},[]),S.useImperativeHandle(t,function(){return{props:o,getElement:function(){return i.current}}});var k=r({ref:i,style:o.style,className:dt(o.className,C("root",{imageFailed:l}))},jv.getOtherProps(o),v("root")),D=o.template?pe.getJSXElement(o.template,o):R();return S.createElement("div",k,D,o.children)});ML.displayName="Avatar";const JN=["bg-medievalblue-50","bg-highblue-50","bg-lavender-50","bg-neutral-20","bg-danger-60","bg-success-70","bg-warning-10","bg-info-90","bg-started","bg-updated","bg-contest","bg-danger-90","bg-shareholders","bg-bluetiful-50","bg-assembly","bg-contest-light","bg-shareholders-light","bg-error-10","bg-draft","bg-union-elections"],sX=({sender:e,isHost:t})=>{var i;const r=(((i=e.name)==null?void 0:i.split(" ").map(a=>a[0]).join("").slice(0,2))||"").toUpperCase(),n=e.userId%JN.length,o=JN[n];return se.jsxs("div",{className:"flex items-center gap-8 mb-4",children:[se.jsx(ML,{label:r,shape:"circle",className:Ni("!text-white font-semibold text-s select-none",o)}),se.jsx("span",{className:"font-semibold",children:e.name}),t&&se.jsx(gg,{label:"Admin",className:"text-neutral-50 rounded-l font-semibold"})]})},lX=({chatMessage:e,currentUserId:t,isHost:r})=>{const n=e.sender.userId===t,o=e.receiver.userId===t,i=e.receiver.userId===0;return!i&&!n&&!o?null:se.jsxs(se.Fragment,{children:[!n&&se.jsx(sX,{sender:e.sender,isHost:r}),se.jsxs(NL,{className:Ni("flex flex-col gap-4 py-8 px-12 w-4/5 rounded-xl",n?"ml-auto rounded-tr-none bg-bluetiful-95":"mr-auto rounded-tl-none bg-neutral-90"),unstyled:!0,"aria-label":n?"Your message":`Message from ${e.sender.name}`,role:"article",children:[se.jsx(YQ,{isCurrentUserSender:n,isPrivate:!i,receiverName:e.receiver.name,isPrivateToCurrentUser:!n&&o}),se.jsx("span",{className:"flex items-center gap-8 whitespace-pre-line","aria-label":"Chat message text",children:e.message}),se.jsx("div",{className:"flex justify-end",children:se.jsx("span",{className:"text-xs","aria-label":"Message timestamp",children:RR(e.timestamp)})})]},e.id)]})},YN=()=>{const e=Wd(),{currentUser:t,users:r}=yu(),{confirm:n,notify:o}=bs(),{sendMessage:i,messages:a,receivers:s}=lL(),{sharedState:l,toggleChat:c}=U0(),d=ae.useRef(null),p=ae.useMemo(()=>{var v;return(v=r.find(C=>C.isHost))==null?void 0:v.userId},[r]),m=ae.useMemo(()=>{var v;return((v=l==null?void 0:l.chatState)==null?void 0:v.active)??!1},[l]),y=(t==null?void 0:t.userId)||0,b=v=>{n({header:v.value?"Activar":"Desactivar",message:v.value?"¿Quieres activar el chat? Los asistentes podrán enviar mensajes.":"¿Quieres desactivar el chat? Los asistentes no podrán enviar más mensajes.",onAccept:async()=>{await c(v.value),o({header:v.value?"Chat activado":"Chat desactivado",message:v.value?"Has activado el chat.":"Has desactivado el chat.",severity:"success"})}})};return ae.useEffect(()=>{d.current&&d.current.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},[a]),se.jsx("div",{className:"relative h-full w-full flex flex-col",children:se.jsxs("div",{className:"flex flex-col h-full",children:[se.jsxs("div",{className:"flex flex-col p-16 pb-0 h-full",children:[e("activate-chat")&&se.jsxs("label",{className:"flex items-center self-end w-fit gap-8 mb-16",children:[se.jsx(AR,{checked:m,onChange:b}),se.jsx("span",{children:m?"Desactivar":"Activar"})]}),se.jsx("div",{className:"flex-1 min-h-0",children:se.jsxs("div",{className:"flex flex-col gap-8 overflow-y-auto py-32 h-full max-h-[60vh]",ref:d,children:[a.map((v,C)=>se.jsx(lX,{chatMessage:v,currentUserId:y,isHost:v.sender.userId===p},v.id??C)),!m&&se.jsx(gg,{label:l.chatState.timestamp&&Number(l.chatState.timestamp)?`Chat apagado por el administrador ${RR(Number(l.chatState.timestamp))}`:"Chat apagado por el administrador",className:"self-center mt-16 text-neutral-20 rounded-l font-semibold text-s"})]})})]}),se.jsxs("div",{className:"sticky bottom-0 z-10 bg-white",children:[se.jsx(xL,{className:"my-8"}),se.jsx(GQ,{receivers:s,sendMessage:i,isChatActive:m})]})]})})};function pI(){return pI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pI.apply(null,arguments)}var kL=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",pI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{d:"M13.2222 7.77778H0.777778C0.571498 7.77778 0.373667 7.69584 0.227806 7.54998C0.0819442 7.40412 0 7.20629 0 7.00001C0 6.79373 0.0819442 6.5959 0.227806 6.45003C0.373667 6.30417 0.571498 6.22223 0.777778 6.22223H13.2222C13.4285 6.22223 13.6263 6.30417 13.7722 6.45003C13.9181 6.5959 14 6.79373 14 7.00001C14 7.20629 13.9181 7.40412 13.7722 7.54998C13.6263 7.69584 13.4285 7.77778 13.2222 7.77778Z",fill:"currentColor"}))}));kL.displayName="MinusIcon";function fI(){return fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},fI.apply(null,arguments)}var TR=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",fI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{d:"M7.67742 6.32258V0.677419C7.67742 0.497757 7.60605 0.325452 7.47901 0.198411C7.35197 0.0713707 7.17966 0 7 0C6.82034 0 6.64803 0.0713707 6.52099 0.198411C6.39395 0.325452 6.32258 0.497757 6.32258 0.677419V6.32258H0.677419C0.497757 6.32258 0.325452 6.39395 0.198411 6.52099C0.0713707 6.64803 0 6.82034 0 7C0 7.17966 0.0713707 7.35197 0.198411 7.47901C0.325452 7.60605 0.497757 7.67742 0.677419 7.67742H6.32258V13.3226C6.32492 13.5015 6.39704 13.6725 6.52358 13.799C6.65012 13.9255 6.82106 13.9977 7 14C7.17966 14 7.35197 13.9286 7.47901 13.8016C7.60605 13.6745 7.67742 13.5022 7.67742 13.3226V7.67742H13.3226C13.5022 7.67742 13.6745 7.60605 13.8016 7.47901C13.9286 7.35197 14 7.17966 14 7C13.9977 6.82106 13.9255 6.65012 13.799 6.52358C13.6725 6.39704 13.5015 6.32492 13.3226 6.32258H7.67742Z",fill:"currentColor"}))}));TR.displayName="PlusIcon";function hI(){return hI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hI.apply(null,arguments)}function uX(e){if(Array.isArray(e))return e}function cX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function QN(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function dX(e,t){if(e){if(typeof e=="string")return QN(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?QN(e,t):void 0}}function pX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1782
1782
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XN(e,t){return uX(e)||cX(e,t)||dX(e,t)||pX()}var Vv=Ar.extend({defaultProps:{__TYPE:"Panel",id:null,header:null,headerTemplate:null,footer:null,footerTemplate:null,toggleable:null,style:null,className:null,collapsed:null,expandIcon:null,collapseIcon:null,icons:null,transitionOptions:null,onExpand:null,onCollapse:null,onToggle:null,children:void 0},css:{classes:{root:function(t){var r=t.props;return dt("p-panel p-component",{"p-panel-toggleable":r.toggleable})},header:"p-panel-header",title:"p-panel-title",icons:"p-panel-icons",toggler:"p-panel-header-icon p-panel-toggler p-link",togglerIcon:"p-panel-header-icon p-panel-toggler p-link",toggleableContent:"p-toggleable-content",content:"p-panel-content",footer:"p-panel-footer",transition:"p-toggleable-content"},styles:`
1783
1783
  @layer primereact {
1784
1784
  .p-panel-header {
@@ -1801,7 +1801,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1801
1801
  position: relative;
1802
1802
  }
1803
1803
  }
1804
- `}}),LL=S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Vv.getProps(e,n),i=S.useState(o.id),a=XN(i,2),s=a[0],l=a[1],c=S.useState(o.collapsed),d=XN(c,2),p=d[0],m=d[1],y=S.useRef(null),b=S.useRef(null),v=o.toggleable?o.onToggle?o.collapsed:p:!1,C=s+"_header",A=s+"_content",R=Vv.setMetaData({props:o,state:{id:s,collapsed:v}}),x=R.ptm,k=R.cx,D=R.isUnstyled;vo(Vv.css.styles,D,{name:"panel"});var F=function(oe){o.toggleable&&(v?$(oe):U(oe),oe&&(o.onToggle&&o.onToggle({originalEvent:oe,value:!v}),oe.preventDefault()))},$=function(oe){o.onToggle||m(!1),o.onExpand&&oe&&o.onExpand(oe)},U=function(oe){o.onToggle||m(!0),o.onCollapse&&oe&&o.onCollapse(oe)};S.useImperativeHandle(t,function(){return{props:o,toggle:F,expand:$,collapse:U,getElement:function(){return y.current},getContent:function(){return b.current}}}),Go(function(){s||l(ms())});var G=function(){if(o.toggleable){var oe=s+"_label",Se=r({className:k("toggler"),onClick:F,id:oe,"aria-controls":A,"aria-expanded":!v,type:"button",role:"button","aria-label":o.header},x("toggler")),re=r(x("togglericon")),we=v?o.expandIcon||S.createElement(TR,re):o.collapseIcon||S.createElement(kL,re),Ae=nn.getJSXIcon(we,re,{props:o,collapsed:v});return S.createElement("button",Se,Ae,S.createElement(Co,null))}return null},Y=function(){var oe=pe.getJSXElement(o.header,o),Se=pe.getJSXElement(o.icons,o),re=G(),we=r({id:C,className:k("title")},x("title")),Ae=S.createElement("span",we,oe),Pe=r({className:k("icons")},x("icons")),Oe=S.createElement("div",Pe,Se,re),Ke=r({className:k("header")},x("header")),St=S.createElement("div",Ke,Ae,Oe);if(o.headerTemplate){var st={className:"p-panel-header",titleClassName:"p-panel-title",iconsClassName:"p-panel-icons",togglerClassName:"p-panel-header-icon p-panel-toggler p-link",onTogglerClick:F,titleElement:Ae,iconsElement:Oe,togglerElement:re,element:St,id:s+"_header",props:o,collapsed:v};return pe.getJSXElement(o.headerTemplate,st)}else if(o.header||o.toggleable)return St;return null},Q=function(){var oe=pe.getJSXElement(o.footer,o),Se=r({className:k("footer")},x("footer")),re=S.createElement("div",Se,oe);if(o.footerTemplate){var we={className:k("footer"),element:re,props:o};return pe.getJSXElement(o.footerTemplate,we)}else if(o.footer)return re;return null},me=function(){var oe=r({ref:b,className:k("toggleableContent"),"aria-hidden":v,role:"region",id:A,"aria-labelledby":C},x("toggleablecontent")),Se=r({className:k("content")},x("content")),re=r({classNames:k("transition"),timeout:{enter:1e3,exit:450},in:!v,unmountOnExit:!0,options:o.transitionOptions},x("transition"));return S.createElement(Dl,hI({nodeRef:b},re),S.createElement("div",oe,S.createElement("div",Se,o.children)))},ne=r({id:s,ref:y,style:o.style,className:dt(o.className,k("root"))},Vv.getOtherProps(o),x("root")),Ee=Y(),ce=me(),_e=Q();return S.createElement("div",ne,Ee,ce,_e)});LL.displayName="Panel";const fX=()=>{const e=Wd(),t=fg(),{currentUser:r,screenSharingUser:n}=yu(),{breakpoint:o,closeVotingSession:i}=Tf(),{sessionStarted:a,leaveSession:s}=ll(),{selfVideoStarted:l,startVideo:c,stopVideo:d,startScreenSharing:p,finishScreenSharing:m}=$d(),{micMuted:y,muteMic:b,unmuteMic:v}=Ic(),{toggleConfigDialog:C,configDialogVisible:A}=bs(),{handleOpenCloseTab:R,openTabs:x,selfShareViewRef:k}=PL(),D=o===xm.Mobile,F=o>=xm.Desktop,$=!!n&&n.userId!==(r==null?void 0:r.userId),U=se.useRef(null),G=se.useRef(null),Y=se.useRef(null),[Q]=wa(async()=>{y?await v():await b()},[y,b,v],t.ref),[me]=wa(async()=>{l?await d():await c()},[l,c,d],t.ref),[ne]=wa(async()=>{r!=null&&r.sharerOn?await m():await p({selfShareCanvas:k.current})},[r==null?void 0:r.sharerOn,m,p,k],t.ref),[Ee]=wa(async()=>{if(a){if(!(r!=null&&r.isHost)){await s({finishForAll:!1});return}SR({acceptLabel:"Finalizar llamada",accept:async()=>{await i(),await s({finishForAll:!0})},acceptClassName:"p-button-danger",defaultFocus:"reject",header:"Finalizar llamada",message:"Al finalizar la llamada finalizarás la videoconferencia para todos los asistentes.",rejectClassName:"p-button-danger p-button-outlined",rejectLabel:"Cerrar",visible:r==null?void 0:r.isHost})}},[a,r==null?void 0:r.isHost,i,s],t.ref);return{dockItems:se.useMemo(()=>[{component:ae.jsx(cs,{disabled:t.loading||!e("allow-toggle-audio")&&y,mainDataTestId:"dock-button-toggle-mic",mainIcon:`fa-regular ${y?"fa-microphone-slash":"fa-microphone"}`,mainTitle:y?"Activar sonido":"Silenciar",onMainClick:Q,showSecondary:!D,secondaryIcon:"fa-regular fa-chevron-up",secondaryTitle:"Ajustes de micrófono",onSecondaryClick:_e=>{var Ne;return(Ne=Y.current)==null?void 0:Ne.toggle(_e)}}),group:1,key:"microphone",show:!0},{component:ae.jsx(cs,{disabled:t.loading,mainDataTestId:"dock-button-toggle-show-speakers",mainIcon:"fa-regular fa-volume",mainTitle:"Altavoces",onMainClick:_e=>{var Ne;return(Ne=U.current)==null?void 0:Ne.toggle(_e)}}),group:1,key:"speakers",show:!0},{component:ae.jsx(cs,{disabled:t.loading,mainDataTestId:"dock-button-toggle-video",mainIcon:`fa-regular ${l?"fa-video":"fa-video-slash"}`,mainTitle:l?"Apagar cámara":"Encender cámara",onMainClick:me,showSecondary:!D,secondaryIcon:"fa-regular fa-chevron-up",secondaryTitle:"Ajustes de cámara",onSecondaryClick:_e=>{var Ne;return(Ne=G.current)==null?void 0:Ne.toggle(_e)}}),group:1,key:"video",show:e("show-toggle-video-button")},{component:ae.jsx(cs,{disabled:t.loading||$,mainDataTestId:"dock-button-toggle-screen-share",mainIcon:"fa-regular fa-screencast",mainTitle:r!=null&&r.sharerOn?"Detener compartir pantalla":"Compartir pantalla",outlined:r==null?void 0:r.sharerOn,onMainClick:ne}),group:2,key:"screen-share",show:e("share-screen")},{component:ae.jsx(cs,{mainDataTestId:"dock-button-toggle-user-group",mainIcon:"fa-regular fa-user-group",mainTitle:"Participantes",onMainClick:()=>R(0),outlined:x.includes(0)}),group:2,key:"user-group",show:!0},{component:ae.jsx(cs,{mainDataTestId:"dock-button-toggle-hand-raise",mainIcon:"fa-regular fa-hand",mainTitle:"Turno de palabra",onMainClick:()=>R(1),outlined:x.includes(1)}),group:2,key:"hand-raise",show:!0},{component:ae.jsx(cs,{mainDataTestId:"dock-button-toggle-chat",mainIcon:"fa-regular fa-comment-lines",mainTitle:"Chat",onMainClick:()=>R(2),outlined:x.includes(2)}),group:2,key:"chat",show:!0},{component:ae.jsx(cs,{mainDataTestId:"dock-button-toggle-config",mainIcon:"fa-regular fa-gear",mainTitle:"Configuración",onMainClick:()=>C({}),outlined:A.visible}),group:2,key:"config",show:!0},{component:ae.jsx(Pi,{disabled:t.loading,label:F&&(r!=null&&r.isHost)?"Finalizar llamada":void 0,title:F&&(r!=null&&r.isHost)?"Finalizar llamada":"Salir de la llamada",severity:"danger",onClick:Ee,icon:"fa-regular fa-phone-hangup !text-white",rounded:!0}),group:3,key:"end-call",show:!0}],[t.loading,e,A.visible,r==null?void 0:r.isHost,r==null?void 0:r.sharerOn,Ee,R,Q,ne,me,F,D,$,y,x,l,C]),audioMenuOptionsRef:U,videoMenuOptionsRef:G,micMenuOptionsRef:Y}},hX=()=>{const e=fg(),{switchMic:t,switchSpeaker:r,micList:n,activeMicId:o,speakerList:i,activeSpeakerId:a}=Ic(),{cameraList:s,activeCameraId:l,switchCamera:c}=$d(),{toggleConfigDialog:d}=bs(),[p]=wa(async A=>{await t(A)},[t],e.ref),[m]=wa(async A=>{await r(A)},[r],e.ref),[y]=wa(async A=>{await c(A)},[c],e.ref),b=se.useMemo(()=>n.map(A=>({disabled:e.loading,id:A.deviceId,label:A.label,command:()=>p(A.deviceId),template:(R,x)=>ae.jsx(fs,{item:R,options:x,activeItem:o})})).concat([{disabled:!1,id:"microphone-settings",label:"Configuración de micrófono",command:async()=>d({tab:Qa.Audio}),template:(A,R)=>ae.jsx(fs,{item:A,options:R,activeItem:o})}]),[n,o,e.loading,p,d]),v=se.useMemo(()=>i.map(A=>({disabled:e.loading,id:A.deviceId,label:A.label,command:()=>m(A.deviceId),template:(R,x)=>ae.jsx(fs,{item:R,options:x,activeItem:a})})).concat([{disabled:!1,label:"Configuración de audio",id:"audio-settings",command:async()=>d({tab:Qa.Audio}),template:(A,R)=>ae.jsx(fs,{item:A,options:R,activeItem:a})}]),[i,a,e.loading,m,d]),C=se.useMemo(()=>s.map(A=>({disabled:e.loading,label:A.label,id:A.deviceId,template:(R,x)=>ae.jsx(fs,{item:R,options:x,activeItem:l}),command:()=>y(A.deviceId)})).concat([{disabled:!1,label:"Configuración de cámara",id:"camera-settings",command:async()=>d({tab:Qa.Video}),template:(A,R)=>ae.jsx(fs,{item:A,options:R,activeItem:l})}]),[s,l,e.loading,y,d]);return{micMenuItems:b,audioMenuItems:v,videoMenuItems:C}},nE=40,oE=8,mX=({dockItems:e})=>{const t=se.useRef(null),[r,n]=se.useState(0),[o,i]=se.useState(e),[a,s]=se.useState([]),l=se.useMemo(()=>a.map(c=>({id:c.key,label:c.component.props.mainTitle,command:()=>{c.component.props.onMainClick&&c.component.props.onMainClick()},template:(d,p)=>ae.jsx(fs,{item:d,options:p,activeItem:void 0,icon:ae.jsx("span",{className:Ni("dock-button-main flex items-center justify-center font-semibold text-neutral-50 bg-neutral-95 w-24 h-24 rounded-full mr-8",{"dock-button-main-outlined bg-neutral-80 border-neutral-50 border":c.component.props.outlined}),children:ae.jsx("i",{className:c.component.props.mainIcon,"aria-hidden":"true","data-testid":"custom-icon"})})})})),[a]);return se.useEffect(()=>{const c=t.current;if(!c)return;const d=m=>{for(const y of m)n(y.contentRect.width)},p=new ResizeObserver(d);return p.observe(c),n(c.offsetWidth),()=>{p.disconnect()}},[]),se.useLayoutEffect(()=>{if(!t.current){i(e),s([]);return}const c=e.filter(p=>p.group===2&&p.show);if(c.length*nE+(c.length-1)*oE+nE<r)i(c),s([]);else{const p=Math.floor((r+oE)/(nE+oE));i([...c.slice(0,p>0?p-1:0)]),s(c.slice(p>0?p-1:0))}},[e,r]),{dockRef:t,visibleItems:o,overflowMenuItems:l}},gX=()=>{const e=se.useRef(null),{micMenuItems:t,audioMenuItems:r,videoMenuItems:n}=hX(),{dockItems:o,audioMenuOptionsRef:i,videoMenuOptionsRef:a,micMenuOptionsRef:s}=fX(),{dockRef:l,visibleItems:c,overflowMenuItems:d}=mX({dockItems:o}),p=(y,b)=>{const v=o.filter(C=>C.group===y&&C.show);return v.length===0?null:ae.jsx("div",{className:Ni("flex items-center gap-8",`justify-${b}`),children:v.map(C=>ae.jsx("span",{children:C.component},C.key))})},m=()=>ae.jsx("div",{className:"relative",children:ae.jsx(cs,{className:"w-fit",mainIcon:"fa-regular fa-ellipsis-v",mainTitle:"More Actions",onMainClick:y=>{var b;return(b=e.current)==null?void 0:b.toggle(y)}})});return ae.jsxs(LL,{children:[ae.jsx("div",{className:"@container",children:ae.jsxs("div",{className:"flex items-center justify-center gap-8 @md:justify-between",children:[p(1,"start"),ae.jsxs("div",{className:"items-center justify-center flex flex-grow gap-8 min-w-0",ref:l,children:[c.filter(y=>y.group===2).map(y=>ae.jsx("span",{children:y.component},y.key)),d.length>0&&ae.jsx("span",{children:m()})]}),p(3,"end")]})}),ae.jsx(uu,{model:d,popup:!0,ref:e,id:"overflow_popup_menu",popupAlignment:"left"}),ae.jsx(uu,{model:t,popup:!0,ref:s,id:"mic_popup_menu",popupAlignment:"left"}),ae.jsx(uu,{model:r,popup:!0,ref:i,id:"audio_popup_menu",popupAlignment:"left"}),ae.jsx(uu,{model:n,popup:!0,ref:a,id:"video_popup_menu",popupAlignment:"left"})]})},vX=()=>ae.jsx("div",{className:"flex items-center justify-center text-white",children:ae.jsx("i",{className:"fa-regular fa-microphone-slash"})}),yX=({name:e,isCurrentUserShare:t})=>ae.jsx("div",{className:"flex items-center justify-center w-full px-24 text-neutral-70 text-s bg-neutral-40 bg-opacity-32 relative z-10",children:t?"Estás compartiendo tu pantalla":`${e} está compartiendo su pantalla`}),bX=({userName:e})=>ae.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-neutral-80 w-full h-auto bg-neutral-20",children:ae.jsxs("div",{className:"text-center",children:[ae.jsx("i",{className:"fa-regular fa-video-slash mb-8"}),ae.jsx("p",{children:e}),ae.jsx("p",{children:"Video desactivado"})]})}),Rh=se.forwardRef(({visible:e,className:t,element:r="video-player"},n)=>{const o=r;return ae.jsx("video-player-container",{className:Ni("w-full h-full",t),style:{display:e?"block":"none",width:"100%",height:"100%",aspectRatio:"16/9"},children:ae.jsx(o,{ref:n,className:"w-full h-full",style:{width:"100%",height:"100%"}})})});Rh.displayName="VideoContainer";const SX=({user:e,className:t})=>{const{selfShareViewRef:r}=PL(),{screenSharingUser:n,currentUser:o}=yu(),{attachUserVideo:i,detachUserVideo:a,attachSharedVideo:s,detachSharedVideo:l,checkIfUserIdRegisteredInCanvas:c}=$d(),d=se.useRef(null),p=se.useRef(null),m=se.useRef(null),y=(o==null?void 0:o.sharerOn)??!1,b=n&&n.userId!==(o==null?void 0:o.userId),v=y||b,C=(o==null?void 0:o.userId)===e.userId,A=!y&&!b&&!C,R=C&&(o==null?void 0:o.bVideoOn)===!0,x=(e==null?void 0:e.bVideoOn)===!1&&!y&&!b;return se.useEffect(()=>{(async()=>{if(y||x){console.log("Detached video for user: ",e.displayName," bVideoOn: ",e.bVideoOn),await a(e.userId);return}if(b&&m.current){await s({userId:e.userId,videoPlayer:m.current}),console.log("Attaching other share video for user: ",e.displayName);return}if(d.current&&e.bVideoOn&&!C){await i(e.userId,d.current),console.log("Attached video for user: ",e.displayName," bVideoOn: ",e.bVideoOn);return}if(C&&e.bVideoOn&&p.current){await i(e.userId,p.current),console.log("Attached self view video for user: ",e.displayName," bVideoOn: ",e.bVideoOn);return}if(d.current&&c(e.userId)){await a(e.userId),console.log("Detached video for user: ",e.displayName," bVideoOn: ",e.bVideoOn);return}})()},[s,i,c,l,a,C,b,y,x,e.bVideoOn,e.displayName,e.userId]),ae.jsxs("div",{className:Ni("relative",t),children:[v&&ae.jsx(yX,{name:(n==null?void 0:n.displayName)??"",isCurrentUserShare:(o==null?void 0:o.sharerOn)===!0}),(e.muted||!x)&&!v&&ae.jsxs("div",{className:"absolute flex items-center justify-center gap-8 w-fit z-10 p-4 text-white bg-neutral-50 opacity-[0.7] rounded-m ml-4 mt-4",children:[e.muted&&ae.jsx(vX,{}),!x&&ae.jsx("span",{children:e==null?void 0:e.displayName})]}),ae.jsx(Rh,{visible:y,className:"self-share-video",ref:r,element:"video"}),ae.jsx(Rh,{visible:!!b,className:"other-share-video",ref:m,element:"video-player"}),ae.jsx(Rh,{visible:A,className:"active-video",ref:d,element:"video-player"}),ae.jsx(Rh,{visible:R,className:"self-view-video",ref:p,element:"video-player"}),x&&ae.jsx(bX,{userName:e.displayName})]})},EX=()=>{const{currentUser:e,activeVideoParticipant:t,screenSharingUser:r}=yu(),n=(t==null?void 0:t.userId)&&t.userId===(e==null?void 0:e.userId),o=r??(n?e:t);return se.useEffect(()=>{console.log("focusedUser: ",o==null?void 0:o.userId,o==null?void 0:o.displayName,"isCurrent: ",n)},[o,n]),ae.jsx("div",{className:"relative w-full aspect-video overflow-hidden bg-bluetiful-10",children:o&&ae.jsx(SX,{user:o,className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full"})})};function mI(){return mI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mI.apply(null,arguments)}var FL=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",mI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{d:"M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z",fill:"currentColor"}))}));FL.displayName="ChevronLeftIcon";function gI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function CX(e){if(Array.isArray(e))return gI(e)}function wX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jL(e,t){if(e){if(typeof e=="string")return gI(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gI(e,t):void 0}}function IX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1804
+ `}}),LL=S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Vv.getProps(e,n),i=S.useState(o.id),a=XN(i,2),s=a[0],l=a[1],c=S.useState(o.collapsed),d=XN(c,2),p=d[0],m=d[1],y=S.useRef(null),b=S.useRef(null),v=o.toggleable?o.onToggle?o.collapsed:p:!1,C=s+"_header",A=s+"_content",R=Vv.setMetaData({props:o,state:{id:s,collapsed:v}}),x=R.ptm,k=R.cx,D=R.isUnstyled;vo(Vv.css.styles,D,{name:"panel"});var F=function(oe){o.toggleable&&(v?$(oe):U(oe),oe&&(o.onToggle&&o.onToggle({originalEvent:oe,value:!v}),oe.preventDefault()))},$=function(oe){o.onToggle||m(!1),o.onExpand&&oe&&o.onExpand(oe)},U=function(oe){o.onToggle||m(!0),o.onCollapse&&oe&&o.onCollapse(oe)};S.useImperativeHandle(t,function(){return{props:o,toggle:F,expand:$,collapse:U,getElement:function(){return y.current},getContent:function(){return b.current}}}),Go(function(){s||l(ms())});var G=function(){if(o.toggleable){var oe=s+"_label",Se=r({className:k("toggler"),onClick:F,id:oe,"aria-controls":A,"aria-expanded":!v,type:"button",role:"button","aria-label":o.header},x("toggler")),re=r(x("togglericon")),we=v?o.expandIcon||S.createElement(TR,re):o.collapseIcon||S.createElement(kL,re),Ae=nn.getJSXIcon(we,re,{props:o,collapsed:v});return S.createElement("button",Se,Ae,S.createElement(Co,null))}return null},Y=function(){var oe=pe.getJSXElement(o.header,o),Se=pe.getJSXElement(o.icons,o),re=G(),we=r({id:C,className:k("title")},x("title")),Ae=S.createElement("span",we,oe),Pe=r({className:k("icons")},x("icons")),Oe=S.createElement("div",Pe,Se,re),Ke=r({className:k("header")},x("header")),St=S.createElement("div",Ke,Ae,Oe);if(o.headerTemplate){var st={className:"p-panel-header",titleClassName:"p-panel-title",iconsClassName:"p-panel-icons",togglerClassName:"p-panel-header-icon p-panel-toggler p-link",onTogglerClick:F,titleElement:Ae,iconsElement:Oe,togglerElement:re,element:St,id:s+"_header",props:o,collapsed:v};return pe.getJSXElement(o.headerTemplate,st)}else if(o.header||o.toggleable)return St;return null},Q=function(){var oe=pe.getJSXElement(o.footer,o),Se=r({className:k("footer")},x("footer")),re=S.createElement("div",Se,oe);if(o.footerTemplate){var we={className:k("footer"),element:re,props:o};return pe.getJSXElement(o.footerTemplate,we)}else if(o.footer)return re;return null},me=function(){var oe=r({ref:b,className:k("toggleableContent"),"aria-hidden":v,role:"region",id:A,"aria-labelledby":C},x("toggleablecontent")),Se=r({className:k("content")},x("content")),re=r({classNames:k("transition"),timeout:{enter:1e3,exit:450},in:!v,unmountOnExit:!0,options:o.transitionOptions},x("transition"));return S.createElement(Dl,hI({nodeRef:b},re),S.createElement("div",oe,S.createElement("div",Se,o.children)))},ne=r({id:s,ref:y,style:o.style,className:dt(o.className,k("root"))},Vv.getOtherProps(o),x("root")),Ee=Y(),ce=me(),_e=Q();return S.createElement("div",ne,Ee,ce,_e)});LL.displayName="Panel";const fX=()=>{const e=Wd(),t=fg(),{currentUser:r,screenSharingUser:n}=yu(),{breakpoint:o,closeVotingSession:i}=Tf(),{sessionStarted:a,leaveSession:s}=ll(),{selfVideoStarted:l,startVideo:c,stopVideo:d,startScreenSharing:p,finishScreenSharing:m}=$d(),{micMuted:y,muteMic:b,unmuteMic:v}=Ic(),{toggleConfigDialog:C,configDialogVisible:A}=bs(),{handleOpenCloseTab:R,openTabs:x,selfShareViewRef:k}=PL(),D=o===xm.Mobile,F=o>=xm.Desktop,$=!!n&&n.userId!==(r==null?void 0:r.userId),U=ae.useRef(null),G=ae.useRef(null),Y=ae.useRef(null),[Q]=wa(async()=>{y?await v():await b()},[y,b,v],t.ref),[me]=wa(async()=>{l?await d():await c()},[l,c,d],t.ref),[ne]=wa(async()=>{r!=null&&r.sharerOn?await m():await p({selfShareCanvas:k.current})},[r==null?void 0:r.sharerOn,m,p,k],t.ref),[Ee]=wa(async()=>{if(a){if(!(r!=null&&r.isHost)){await s({finishForAll:!1});return}SR({acceptLabel:"Finalizar llamada",accept:async()=>{await i(),await s({finishForAll:!0})},acceptClassName:"p-button-danger",defaultFocus:"reject",header:"Finalizar llamada",message:"Al finalizar la llamada finalizarás la videoconferencia para todos los asistentes.",rejectClassName:"p-button-danger p-button-outlined",rejectLabel:"Cerrar",visible:r==null?void 0:r.isHost})}},[a,r==null?void 0:r.isHost,i,s],t.ref);return{dockItems:ae.useMemo(()=>[{component:se.jsx(cs,{disabled:t.loading||!e("allow-toggle-audio")&&y,mainDataTestId:"dock-button-toggle-mic",mainIcon:`fa-regular ${y?"fa-microphone-slash":"fa-microphone"}`,mainTitle:y?"Activar sonido":"Silenciar",onMainClick:Q,showSecondary:!D,secondaryIcon:"fa-regular fa-chevron-up",secondaryTitle:"Ajustes de micrófono",onSecondaryClick:_e=>{var Ne;return(Ne=Y.current)==null?void 0:Ne.toggle(_e)}}),group:1,key:"microphone",show:!0},{component:se.jsx(cs,{disabled:t.loading,mainDataTestId:"dock-button-toggle-show-speakers",mainIcon:"fa-regular fa-volume",mainTitle:"Altavoces",onMainClick:_e=>{var Ne;return(Ne=U.current)==null?void 0:Ne.toggle(_e)}}),group:1,key:"speakers",show:!0},{component:se.jsx(cs,{disabled:t.loading,mainDataTestId:"dock-button-toggle-video",mainIcon:`fa-regular ${l?"fa-video":"fa-video-slash"}`,mainTitle:l?"Apagar cámara":"Encender cámara",onMainClick:me,showSecondary:!D,secondaryIcon:"fa-regular fa-chevron-up",secondaryTitle:"Ajustes de cámara",onSecondaryClick:_e=>{var Ne;return(Ne=G.current)==null?void 0:Ne.toggle(_e)}}),group:1,key:"video",show:e("show-toggle-video-button")},{component:se.jsx(cs,{disabled:t.loading||$,mainDataTestId:"dock-button-toggle-screen-share",mainIcon:"fa-regular fa-screencast",mainTitle:r!=null&&r.sharerOn?"Detener compartir pantalla":"Compartir pantalla",outlined:r==null?void 0:r.sharerOn,onMainClick:ne}),group:2,key:"screen-share",show:e("share-screen")},{component:se.jsx(cs,{mainDataTestId:"dock-button-toggle-user-group",mainIcon:"fa-regular fa-user-group",mainTitle:"Participantes",onMainClick:()=>R(0),outlined:x.includes(0)}),group:2,key:"user-group",show:!0},{component:se.jsx(cs,{mainDataTestId:"dock-button-toggle-hand-raise",mainIcon:"fa-regular fa-hand",mainTitle:"Turno de palabra",onMainClick:()=>R(1),outlined:x.includes(1)}),group:2,key:"hand-raise",show:!0},{component:se.jsx(cs,{mainDataTestId:"dock-button-toggle-chat",mainIcon:"fa-regular fa-comment-lines",mainTitle:"Chat",onMainClick:()=>R(2),outlined:x.includes(2)}),group:2,key:"chat",show:!0},{component:se.jsx(cs,{mainDataTestId:"dock-button-toggle-config",mainIcon:"fa-regular fa-gear",mainTitle:"Configuración",onMainClick:()=>C({}),outlined:A.visible}),group:2,key:"config",show:!0},{component:se.jsx(Pi,{disabled:t.loading,label:F&&(r!=null&&r.isHost)?"Finalizar llamada":void 0,title:F&&(r!=null&&r.isHost)?"Finalizar llamada":"Salir de la llamada",severity:"danger",onClick:Ee,icon:"fa-regular fa-phone-hangup !text-white",rounded:!0}),group:3,key:"end-call",show:!0}],[t.loading,e,A.visible,r==null?void 0:r.isHost,r==null?void 0:r.sharerOn,Ee,R,Q,ne,me,F,D,$,y,x,l,C]),audioMenuOptionsRef:U,videoMenuOptionsRef:G,micMenuOptionsRef:Y}},hX=()=>{const e=fg(),{switchMic:t,switchSpeaker:r,micList:n,activeMicId:o,speakerList:i,activeSpeakerId:a}=Ic(),{cameraList:s,activeCameraId:l,switchCamera:c}=$d(),{toggleConfigDialog:d}=bs(),[p]=wa(async A=>{await t(A)},[t],e.ref),[m]=wa(async A=>{await r(A)},[r],e.ref),[y]=wa(async A=>{await c(A)},[c],e.ref),b=ae.useMemo(()=>n.map(A=>({disabled:e.loading,id:A.deviceId,label:A.label,command:()=>p(A.deviceId),template:(R,x)=>se.jsx(fs,{item:R,options:x,activeItem:o})})).concat([{disabled:!1,id:"microphone-settings",label:"Configuración de micrófono",command:async()=>d({tab:Qa.Audio}),template:(A,R)=>se.jsx(fs,{item:A,options:R,activeItem:o})}]),[n,o,e.loading,p,d]),v=ae.useMemo(()=>i.map(A=>({disabled:e.loading,id:A.deviceId,label:A.label,command:()=>m(A.deviceId),template:(R,x)=>se.jsx(fs,{item:R,options:x,activeItem:a})})).concat([{disabled:!1,label:"Configuración de audio",id:"audio-settings",command:async()=>d({tab:Qa.Audio}),template:(A,R)=>se.jsx(fs,{item:A,options:R,activeItem:a})}]),[i,a,e.loading,m,d]),C=ae.useMemo(()=>s.map(A=>({disabled:e.loading,label:A.label,id:A.deviceId,template:(R,x)=>se.jsx(fs,{item:R,options:x,activeItem:l}),command:()=>y(A.deviceId)})).concat([{disabled:!1,label:"Configuración de cámara",id:"camera-settings",command:async()=>d({tab:Qa.Video}),template:(A,R)=>se.jsx(fs,{item:A,options:R,activeItem:l})}]),[s,l,e.loading,y,d]);return{micMenuItems:b,audioMenuItems:v,videoMenuItems:C}},nE=40,oE=8,mX=({dockItems:e})=>{const t=ae.useRef(null),[r,n]=ae.useState(0),[o,i]=ae.useState(e),[a,s]=ae.useState([]),l=ae.useMemo(()=>a.map(c=>({id:c.key,label:c.component.props.mainTitle,command:()=>{c.component.props.onMainClick&&c.component.props.onMainClick()},template:(d,p)=>se.jsx(fs,{item:d,options:p,activeItem:void 0,icon:se.jsx("span",{className:Ni("dock-button-main flex items-center justify-center font-semibold text-neutral-50 bg-neutral-95 w-24 h-24 rounded-full mr-8",{"dock-button-main-outlined bg-neutral-80 border-neutral-50 border":c.component.props.outlined}),children:se.jsx("i",{className:c.component.props.mainIcon,"aria-hidden":"true","data-testid":"custom-icon"})})})})),[a]);return ae.useEffect(()=>{const c=t.current;if(!c)return;const d=m=>{for(const y of m)n(y.contentRect.width)},p=new ResizeObserver(d);return p.observe(c),n(c.offsetWidth),()=>{p.disconnect()}},[]),ae.useLayoutEffect(()=>{if(!t.current){i(e),s([]);return}const c=e.filter(p=>p.group===2&&p.show);if(c.length*nE+(c.length-1)*oE+nE<r)i(c),s([]);else{const p=Math.floor((r+oE)/(nE+oE));i([...c.slice(0,p>0?p-1:0)]),s(c.slice(p>0?p-1:0))}},[e,r]),{dockRef:t,visibleItems:o,overflowMenuItems:l}},gX=()=>{const e=ae.useRef(null),{micMenuItems:t,audioMenuItems:r,videoMenuItems:n}=hX(),{dockItems:o,audioMenuOptionsRef:i,videoMenuOptionsRef:a,micMenuOptionsRef:s}=fX(),{dockRef:l,visibleItems:c,overflowMenuItems:d}=mX({dockItems:o}),p=(y,b)=>{const v=o.filter(C=>C.group===y&&C.show);return v.length===0?null:se.jsx("div",{className:Ni("flex items-center gap-8",`justify-${b}`),children:v.map(C=>se.jsx("span",{children:C.component},C.key))})},m=()=>se.jsx("div",{className:"relative",children:se.jsx(cs,{className:"w-fit",mainIcon:"fa-regular fa-ellipsis-v",mainTitle:"More Actions",onMainClick:y=>{var b;return(b=e.current)==null?void 0:b.toggle(y)}})});return se.jsxs(LL,{children:[se.jsx("div",{className:"@container",children:se.jsxs("div",{className:"flex items-center justify-center gap-8 @md:justify-between",children:[p(1,"start"),se.jsxs("div",{className:"items-center justify-center flex flex-grow gap-8 min-w-0",ref:l,children:[c.filter(y=>y.group===2).map(y=>se.jsx("span",{children:y.component},y.key)),d.length>0&&se.jsx("span",{children:m()})]}),p(3,"end")]})}),se.jsx(uu,{model:d,popup:!0,ref:e,id:"overflow_popup_menu",popupAlignment:"left"}),se.jsx(uu,{model:t,popup:!0,ref:s,id:"mic_popup_menu",popupAlignment:"left"}),se.jsx(uu,{model:r,popup:!0,ref:i,id:"audio_popup_menu",popupAlignment:"left"}),se.jsx(uu,{model:n,popup:!0,ref:a,id:"video_popup_menu",popupAlignment:"left"})]})},vX=()=>se.jsx("div",{className:"flex items-center justify-center text-white",children:se.jsx("i",{className:"fa-regular fa-microphone-slash"})}),yX=({name:e,isCurrentUserShare:t})=>se.jsx("div",{className:"flex items-center justify-center w-full px-24 text-neutral-70 text-s bg-neutral-40 bg-opacity-32 relative z-10",children:t?"Estás compartiendo tu pantalla":`${e} está compartiendo su pantalla`}),bX=({userName:e})=>se.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-neutral-80 w-full h-auto bg-neutral-20",children:se.jsxs("div",{className:"text-center",children:[se.jsx("i",{className:"fa-regular fa-video-slash mb-8"}),se.jsx("p",{children:e}),se.jsx("p",{children:"Video desactivado"})]})}),Rh=ae.forwardRef(({visible:e,className:t,element:r="video-player"},n)=>{const o=r;return se.jsx("video-player-container",{className:Ni("w-full h-full",t),style:{display:e?"block":"none",width:"100%",height:"100%",aspectRatio:"16/9"},children:se.jsx(o,{ref:n,className:"w-full h-full",style:{width:"100%",height:"100%"}})})});Rh.displayName="VideoContainer";const SX=({user:e,className:t})=>{const{selfShareViewRef:r}=PL(),{screenSharingUser:n,currentUser:o}=yu(),{attachUserVideo:i,detachUserVideo:a,attachSharedVideo:s,detachSharedVideo:l,checkIfUserIdRegisteredInCanvas:c}=$d(),d=ae.useRef(null),p=ae.useRef(null),m=ae.useRef(null),y=(o==null?void 0:o.sharerOn)??!1,b=n&&n.userId!==(o==null?void 0:o.userId),v=y||b,C=(o==null?void 0:o.userId)===e.userId,A=!y&&!b&&!C,R=C&&(o==null?void 0:o.bVideoOn)===!0,x=(e==null?void 0:e.bVideoOn)===!1&&!y&&!b;return ae.useEffect(()=>{(async()=>{if(y||x){console.log("Detached video for user: ",e.displayName," bVideoOn: ",e.bVideoOn),await a(e.userId);return}if(b&&m.current){await s({userId:e.userId,videoPlayer:m.current}),console.log("Attaching other share video for user: ",e.displayName);return}if(d.current&&e.bVideoOn&&!C){await i(e.userId,d.current),console.log("Attached video for user: ",e.displayName," bVideoOn: ",e.bVideoOn);return}if(C&&e.bVideoOn&&p.current){await i(e.userId,p.current),console.log("Attached self view video for user: ",e.displayName," bVideoOn: ",e.bVideoOn);return}if(d.current&&c(e.userId)){await a(e.userId),console.log("Detached video for user: ",e.displayName," bVideoOn: ",e.bVideoOn);return}})()},[s,i,c,l,a,C,b,y,x,e.bVideoOn,e.displayName,e.userId]),se.jsxs("div",{className:Ni("relative",t),children:[v&&se.jsx(yX,{name:(n==null?void 0:n.displayName)??"",isCurrentUserShare:(o==null?void 0:o.sharerOn)===!0}),(e.muted||!x)&&!v&&se.jsxs("div",{className:"absolute flex items-center justify-center gap-8 w-fit z-10 p-4 text-white bg-neutral-50 opacity-[0.7] rounded-m ml-4 mt-4",children:[e.muted&&se.jsx(vX,{}),!x&&se.jsx("span",{children:e==null?void 0:e.displayName})]}),se.jsx(Rh,{visible:y,className:"self-share-video",ref:r,element:"video"}),se.jsx(Rh,{visible:!!b,className:"other-share-video",ref:m,element:"video-player"}),se.jsx(Rh,{visible:A,className:"active-video",ref:d,element:"video-player"}),se.jsx(Rh,{visible:R,className:"self-view-video",ref:p,element:"video-player"}),x&&se.jsx(bX,{userName:e.displayName})]})},EX=()=>{const{currentUser:e,activeVideoParticipant:t,screenSharingUser:r}=yu(),n=(t==null?void 0:t.userId)&&t.userId===(e==null?void 0:e.userId),o=r??(n?e:t);return ae.useEffect(()=>{console.log("focusedUser: ",o==null?void 0:o.userId,o==null?void 0:o.displayName,"isCurrent: ",n)},[o,n]),se.jsx("div",{className:"relative w-full aspect-video overflow-hidden bg-bluetiful-10",children:o&&se.jsx(SX,{user:o,className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-full h-full"})})};function mI(){return mI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},mI.apply(null,arguments)}var FL=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",mI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{d:"M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z",fill:"currentColor"}))}));FL.displayName="ChevronLeftIcon";function gI(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function CX(e){if(Array.isArray(e))return gI(e)}function wX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jL(e,t){if(e){if(typeof e=="string")return gI(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?gI(e,t):void 0}}function IX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1805
1805
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function AX(e){return CX(e)||wX(e)||jL(e)||IX()}function $m(e){"@babel/helpers - typeof";return $m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$m(e)}function RX(e,t){if($m(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if($m(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TX(e){var t=RX(e,"string");return $m(t)=="symbol"?t:t+""}function VL(e,t,r){return(t=TX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OX(e){if(Array.isArray(e))return e}function _X(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function PX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1806
1806
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fh(e,t){return OX(e)||_X(e,t)||jL(e,t)||PX()}function ZN(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Bv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZN(Object(r),!0).forEach(function(n){VL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZN(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var xX={navcontent:"p-tabview-nav-content",nav:"p-tabview-nav",inkbar:"p-tabview-ink-bar",panelcontainer:function(t){var r=t.props;return dt("p-tabview-panels",r.panelContainerClassName)},prevbutton:"p-tabview-nav-prev p-tabview-nav-btn p-link",nextbutton:"p-tabview-nav-next p-tabview-nav-btn p-link",root:function(t){var r=t.props;return dt("p-tabview p-component",{"p-tabview-scrollable":r.scrollable})},navcontainer:"p-tabview-nav-container",tab:{header:function(t){var r=t.selected,n=t.disabled,o=t.headerClassName,i=t._className;return dt("p-unselectable-text",{"p-tabview-selected p-highlight":r,"p-disabled":n},o,i)},headertitle:"p-tabview-title",headeraction:"p-tabview-nav-link",closeIcon:"p-tabview-close",content:function(t){var r=t.props,n=t.selected,o=t.getTabProp,i=t.tab,a=t.isSelected,s=t.shouldUseTab,l=t.index;return s(i,l)&&(!r.renderActiveOnly||a(l))?dt(o(i,"contentClassName"),o(i,"className"),"p-tabview-panel",{"p-hidden":!n}):void 0}}},DX={tab:{header:function(t){var r=t.headerStyle,n=t._style;return Bv(Bv({},r||{}),n||{})},content:function(t){var r=t.props,n=t.getTabProp,o=t.tab,i=t.isSelected,a=t.shouldUseTab,s=t.index;return a(o,s)&&(!r.renderActiveOnly||i(s))?Bv(Bv({},n(o,"contentStyle")||{}),n(o,"style")||{}):void 0}}},Hv=Ar.extend({defaultProps:{__TYPE:"TabView",id:null,activeIndex:0,className:null,onBeforeTabChange:null,onBeforeTabClose:null,onTabChange:null,onTabClose:null,panelContainerClassName:null,panelContainerStyle:null,renderActiveOnly:!0,scrollable:!1,style:null,children:void 0},css:{classes:xX,inlineStyles:DX}}),lf=Ar.extend({defaultProps:{__TYPE:"TabPanel",children:void 0,className:null,closable:!1,closeIcon:null,contentClassName:null,contentStyle:null,disabled:!1,header:null,headerClassName:null,headerStyle:null,headerTemplate:null,leftIcon:null,nextButton:null,prevButton:null,rightIcon:null,style:null,visible:!0},getCProp:function(t,r){return pe.getComponentProp(t,r,lf.defaultProps)},getCProps:function(t){return pe.getComponentProps(t,lf.defaultProps)},getCOtherProps:function(t){return pe.getComponentDiffProps(t,lf.defaultProps)}});function e3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Uv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e3(Object(r),!0).forEach(function(n){VL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var vI=function(){},BL=S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Hv.getProps(e,n),i=S.useState(o.id),a=fh(i,2),s=a[0],l=a[1],c=S.useState(!0),d=fh(c,2),p=d[0],m=d[1],y=S.useState(!1),b=fh(y,2),v=b[0],C=b[1],A=S.useState([]),R=fh(A,2),x=R[0],k=R[1],D=S.useState(o.activeIndex),F=fh(D,2),$=F[0],U=F[1],G=S.useRef(null),Y=S.useRef(null),Q=S.useRef(null),me=S.useRef(null),ne=S.useRef(null),Ee=S.useRef(null),ce=S.useRef({}),_e=o.onTabChange?o.activeIndex:$,Ne=S.Children.count(o.children),oe={props:o,state:{id:s,isPrevButtonDisabled:p,isNextButtonDisabled:v,hiddenTabsState:x,activeIndex:$}},Se=Hv.setMetaData(Uv({},oe)),re=Se.ptm,we=Se.ptmo,Ae=Se.cx,Pe=Se.sx,Oe=Se.isUnstyled;vo(Hv.css.styles,Oe,{name:"tabview"});var Ke=function(Qe,Et,Ht){var ur={props:Qe.props,parent:oe,context:{index:Ht,count:Ne,first:Ht===0,last:Ht===Ne-1,active:Ht==$,disabled:st(Qe,"disabled")}};return r(re("tab.".concat(Et),{tab:ur}),re("tabpanel.".concat(Et),{tabpanel:ur}),re("tabpanel.".concat(Et),ur),we(st(Qe,"pt"),Et,ur))},St=function(Qe){return Qe===_e},st=function(Qe,Et){return lf.getCProp(Qe,Et)},yt=function(Qe){return Qe&&st(Qe,"visible")&&pe.isValidChild(Qe,"TabPanel")&&x.every(function(Et){return Et!==Qe.key})},$e=function(Qe){var Et=S.Children.map(o.children,function(Ht,ur){if(yt(Ht))return{tab:Ht,index:ur}});return Et.find(function(Ht){var ur=Ht.tab,Dr=Ht.index;return!st(ur,"disabled")&&Dr>=Qe})||Et.reverse().find(function(Ht){var ur=Ht.tab,Dr=Ht.index;return!st(ur,"disabled")&&Qe>Dr})},ot=function(Qe,Et){Qe.preventDefault();var Ht=o.onBeforeTabClose,ur=o.onTabClose,Dr=o.children,pn=Dr[Et].key;Ht&&Ht({originalEvent:Qe,index:Et})===!1||(k([].concat(AX(x),[pn])),ur&&ur({originalEvent:Qe,index:Et}))},it=function(Qe,Et,Ht){Ie(Qe,Et,Ht)},Ie=function(Qe,Et,Ht){if(Qe&&Qe.preventDefault(),!st(Et,"disabled")){if(o.onBeforeTabChange&&o.onBeforeTabChange({originalEvent:Qe,index:Ht})===!1)return;o.onTabChange?o.onTabChange({originalEvent:Qe,index:Ht}):U(Ht)}Br({index:Ht})},tt=function(Qe,Et,Ht){switch(Qe.code){case"ArrowLeft":Wt(Qe);break;case"ArrowRight":mt(Qe);break;case"Home":cr(Qe);break;case"End":At(Qe);break;case"PageDown":Ve(Qe);break;case"PageUp":Jt(Qe);break;case"Enter":case"NumpadEnter":case"Space":ar(Qe,Et,Ht);break}},mt=function(Qe){var Et=pr(Qe.target.parentElement);Et?Xr(Et):cr(Qe),Qe.preventDefault()},Wt=function(Qe){var Et=gr(Qe.target.parentElement);Et?Xr(Et):At(Qe),Qe.preventDefault()},cr=function(Qe){var Et=en();Xr(Et),Qe.preventDefault()},At=function(Qe){var Et=Wr();Xr(Et),Qe.preventDefault()},Ve=function(Qe){Br({index:S.Children.count(o.children)-1}),Qe.preventDefault()},Jt=function(Qe){Br({index:0}),Qe.preventDefault()},ar=function(Qe,Et,Ht){Ie(Qe,Et,Ht),Qe.preventDefault()},pr=function(Qe){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=Et?Qe:Qe.nextElementSibling;return Ht?le.getAttribute(Ht,"data-p-disabled")||le.getAttribute(Ht,"data-pc-section")==="inkbar"?pr(Ht):le.findSingle(Ht,'[data-pc-section="headeraction"]'):null},gr=function(Qe){var Et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ht=Et?Qe:Qe.previousElementSibling;return Ht?le.getAttribute(Ht,"data-p-disabled")||le.getAttribute(Ht,"data-pc-section")==="inkbar"?gr(Ht):le.findSingle(Ht,'[data-pc-section="headeraction"]'):null},en=function(){return pr(Q.current.firstElementChild,!0)},Wr=function(){return gr(Q.current.lastElementChild,!0)},Xr=function(Qe){Qe&&(le.focus(Qe),Br({element:Qe}))},Pr=function(){var Qe=ce.current["tab_".concat(_e)];me.current.style.width=le.getWidth(Qe)+"px",me.current.style.left=le.getOffset(Qe).left-le.getOffset(Q.current).left+"px"},Br=function(Qe){var Et=Qe.index,Ht=Qe.element,ur=Ht||ce.current["tab_".concat(Et)];ur&&ur.scrollIntoView&&ur.scrollIntoView({block:"nearest"})},Hr=function(){var Qe=Y.current,Et=Qe.scrollLeft,Ht=Qe.scrollWidth,ur=le.getWidth(Y.current);m(Et===0),C(parseInt(Et)===Ht-ur)},jr=function(Qe){o.scrollable&&Hr(),Qe.preventDefault()},zr=function(){return[ne.current,Ee.current].reduce(function(Qe,Et){return Et?Qe+le.getWidth(Et):Qe},0)},Jr=function(){var Qe=le.getWidth(Y.current)-zr(),Et=Y.current.scrollLeft-Qe;Y.current.scrollLeft=Et<=0?0:Et},In=function(){var Qe=le.getWidth(Y.current)-zr(),Et=Y.current.scrollLeft+Qe,Ht=Y.current.scrollWidth-Qe;Y.current.scrollLeft=Et>=Ht?Ht:Et},tn=function(){m(!0),C(!1),k([]),o.onTabChange?o.onTabChange({index:_e}):U(o.activeIndex)};S.useEffect(function(){Pr(),Hr()}),Go(function(){s||l(ms())}),hn(function(){if(pe.isNotEmpty(x)){var zt=$e(x[x.length-1]);zt&&it(null,zt.tab,zt.index)}},[x]),hn(function(){o.activeIndex!==$&&Br({index:o.activeIndex})},[o.activeIndex]),S.useImperativeHandle(t,function(){return{props:o,reset:tn,getElement:function(){return G.current}}});var vr=function(Qe,Et){switch(Qe.preventDefault(),Qe.stopPropagation(),Qe.code){case"Space":case"NumpadEnter":case"Enter":ot(Qe,Et);break}},at=function(Qe,Et){var Ht=St(Et),ur=lf.getCProps(Qe),Dr=ur.headerStyle,pn=ur.headerClassName,Ln=ur.style,Qn=ur.className,gn=ur.disabled,Re=ur.leftIcon,Xe=ur.rightIcon,Ce=ur.header,Te=ur.headerTemplate,et=ur.closable,ht=ur.closeIcon,Ft=s+"_header_"+Et,tr=s+Et+"_content",Lt=gn||!Ht?-1:0,Je=Re&&nn.getJSXIcon(Re,void 0,{props:o}),vt=r({className:Ae("tab.headertitle")},Ke(Qe,"headertitle",Et)),jt=S.createElement("span",vt,Ce),nr=Xe&&nn.getJSXIcon(Xe,void 0,{props:o}),Kt=r({className:Ae("tab.closeIcon"),onClick:function(he){return ot(he,Et)},onKeyDown:function(he){return vr(he,Et)},tabIndex:0,"aria-label":Bo("close")||"Close"},Ke(Qe,"closeIcon",Et)),sr=ht||S.createElement(wc,Kt),br=et?nn.getJSXIcon(sr,Uv({},Kt),{props:o}):null,Zr=r({id:Ft,role:"tab",className:Ae("tab.headeraction"),tabIndex:Lt,"aria-controls":tr,"aria-selected":Ht,"aria-disabled":gn,onClick:function(he){return it(he,Qe,Et)},onKeyDown:function(he){return tt(he,Qe,Et)}},Ke(Qe,"headeraction",Et)),Nr=S.createElement("a",Zr,Je,jt,nr,br,S.createElement(Co,null));if(Te){var Vt={className:"p-tabview-nav-link",titleClassName:"p-tabview-title",onClick:function(he){return it(he,Qe,Et)},onKeyDown:function(he){return tt(he,Qe,Et)},leftIconElement:Je,titleElement:jt,rightIconElement:nr,element:Nr,props:o,index:Et,selected:Ht,ariaControls:tr};Nr=pe.getJSXElement(Te,Vt)}var X=r({ref:function(he){return ce.current["tab_".concat(Et)]=he},className:Ae("tab.header",{selected:Ht,disabled:gn,headerClassName:pn,_className:Qn}),style:Pe("tab.header",{headerStyle:Dr,_style:Ln}),role:"presentation"},Ke(Qe,"root",Et),Ke(Qe,"header",Et));return S.createElement("li",X,Nr)},Pt=function(){return S.Children.map(o.children,function(Qe,Et){if(yt(Qe))return at(Qe,Et)})},pt=function(){var Qe=Pt(),Et=r({id:s+"_navcontent",ref:Y,className:Ae("navcontent"),style:o.style,onScroll:jr},re("navcontent")),Ht=r({ref:Q,className:Ae("nav"),role:"tablist"},re("nav")),ur=r({ref:me,"aria-hidden":"true",role:"presentation",className:Ae("inkbar")},re("inkbar"));return S.createElement("div",Et,S.createElement("ul",Ht,Qe,S.createElement("li",ur)))},Rt=function(){var Qe=r({className:Ae("panelcontainer"),style:o.panelContainerStyle},re("panelcontainer")),Et=S.Children.map(o.children,function(Ht,ur){if(yt(Ht)&&(!o.renderActiveOnly||St(ur))){var Dr=St(ur),pn=s+ur+"_content",Ln=s+"_header_"+ur,Qn=r({id:pn,className:Ae("tab.content",{props:o,selected:Dr,getTabProp:st,tab:Ht,isSelected:St,shouldUseTab:yt,index:ur}),style:Pe("tab.content",{props:o,getTabProp:st,tab:Ht,isSelected:St,shouldUseTab:yt,index:ur}),role:"tabpanel","aria-labelledby":Ln},lf.getCOtherProps(Ht),Ke(Ht,"root",ur),Ke(Ht,"content",ur));return S.createElement("div",Qn,o.renderActiveOnly?Dr&&st(Ht,"children"):st(Ht,"children"))}});return S.createElement("div",Qe,Et)},rt=function(){var Qe=r({"aria-hidden":"true"},re("previcon")),Et=o.prevButton||S.createElement(FL,Qe),Ht=nn.getJSXIcon(Et,Uv({},Qe),{props:o}),ur=r({ref:ne,type:"button",className:Ae("prevbutton"),"aria-label":Bo("prevPageLabel"),onClick:function(pn){return Jr()}},re("prevbutton"));return o.scrollable&&!p?S.createElement("button",ur,Ht,S.createElement(Co,null)):null},ge=function(){var Qe=r({"aria-hidden":"true"},re("nexticon")),Et=o.nextButton||S.createElement(mg,Qe),Ht=nn.getJSXIcon(Et,Uv({},Qe),{props:o}),ur=r({ref:Ee,type:"button",className:Ae("nextbutton"),"aria-label":Bo("nextPageLabel"),onClick:function(pn){return In()}},re("nextbutton"));if(o.scrollable&&!v)return S.createElement("button",ur,Ht,S.createElement(Co,null))},be=r({id:s,ref:G,style:o.style,className:dt(o.className,Ae("root"))},Hv.getOtherProps(o),re("root")),We=r({className:Ae("navcontainer")},re("navcontainer")),Gt=pt(),Qt=Rt(),Zt=rt(),Cr=ge();return S.createElement("div",be,S.createElement("div",We,Zt,Gt,Cr),Qt)});vI.displayName="TabPanel";BL.displayName="TabView";var yI=function(){};yI.displayName="Column";function bI(){return bI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},bI.apply(null,arguments)}var HL=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",bI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.99994 14C6.91097 14.0004 6.82281 13.983 6.74064 13.9489C6.65843 13.9148 6.58387 13.8646 6.52133 13.8013L1.10198 8.38193C0.982318 8.25351 0.917175 8.08367 0.920272 7.90817C0.923368 7.73267 0.994462 7.56523 1.11858 7.44111C1.24269 7.317 1.41014 7.2459 1.58563 7.2428C1.76113 7.23971 1.93098 7.30485 2.0594 7.42451L6.32263 11.6877V0.677419C6.32263 0.497756 6.394 0.325452 6.52104 0.198411C6.64808 0.0713706 6.82039 0 7.00005 0C7.17971 0 7.35202 0.0713706 7.47906 0.198411C7.6061 0.325452 7.67747 0.497756 7.67747 0.677419V11.6877L11.9407 7.42451C12.0691 7.30485 12.2389 7.23971 12.4144 7.2428C12.5899 7.2459 12.7574 7.317 12.8815 7.44111C13.0056 7.56523 13.0767 7.73267 13.0798 7.90817C13.0829 8.08367 13.0178 8.25351 12.8981 8.38193L7.47875 13.8013C7.41621 13.8646 7.34164 13.9148 7.25944 13.9489C7.17727 13.983 7.08912 14.0004 7.00015 14C7.00012 14 7.00009 14 7.00005 14C7.00001 14 6.99998 14 6.99994 14Z",fill:"currentColor"}))}));HL.displayName="ArrowDownIcon";function SI(){return SI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},SI.apply(null,arguments)}var UL=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",SI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.51551 13.799C6.64205 13.9255 6.813 13.9977 6.99193 14C7.17087 13.9977 7.34182 13.9255 7.46835 13.799C7.59489 13.6725 7.66701 13.5015 7.66935 13.3226V2.31233L11.9326 6.57554C11.9951 6.63887 12.0697 6.68907 12.1519 6.72319C12.2341 6.75731 12.3223 6.77467 12.4113 6.77425C12.5003 6.77467 12.5885 6.75731 12.6707 6.72319C12.7529 6.68907 12.8274 6.63887 12.89 6.57554C13.0168 6.44853 13.0881 6.27635 13.0881 6.09683C13.0881 5.91732 13.0168 5.74514 12.89 5.61812L7.48846 0.216594C7.48274 0.210436 7.4769 0.204374 7.47094 0.198411C7.3439 0.0713707 7.1716 0 6.99193 0C6.81227 0 6.63997 0.0713707 6.51293 0.198411C6.50704 0.204296 6.50128 0.210278 6.49563 0.216354L1.09386 5.61812C0.974201 5.74654 0.909057 5.91639 0.912154 6.09189C0.91525 6.26738 0.986345 6.43483 1.11046 6.55894C1.23457 6.68306 1.40202 6.75415 1.57752 6.75725C1.75302 6.76035 1.92286 6.6952 2.05128 6.57554L6.31451 2.31231V13.3226C6.31685 13.5015 6.38898 13.6725 6.51551 13.799Z",fill:"currentColor"}))}));UL.displayName="ArrowUpIcon";function EI(){return EI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},EI.apply(null,arguments)}var $L=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",EI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.71602 11.164C5.80782 11.2021 5.9063 11.2215 6.00569 11.221C6.20216 11.2301 6.39427 11.1612 6.54025 11.0294C6.68191 10.8875 6.76148 10.6953 6.76148 10.4948C6.76148 10.2943 6.68191 10.1021 6.54025 9.96024L3.51441 6.9344L6.54025 3.90855C6.624 3.76126 6.65587 3.59011 6.63076 3.42254C6.60564 3.25498 6.525 3.10069 6.40175 2.98442C6.2785 2.86815 6.11978 2.79662 5.95104 2.7813C5.78229 2.76598 5.61329 2.80776 5.47112 2.89994L1.97123 6.39983C1.82957 6.54167 1.75 6.73393 1.75 6.9344C1.75 7.13486 1.82957 7.32712 1.97123 7.46896L5.47112 10.9991C5.54096 11.0698 5.62422 11.1259 5.71602 11.164ZM11.0488 10.9689C11.1775 11.1156 11.3585 11.2061 11.5531 11.221C11.7477 11.2061 11.9288 11.1156 12.0574 10.9689C12.1815 10.8302 12.25 10.6506 12.25 10.4645C12.25 10.2785 12.1815 10.0989 12.0574 9.96024L9.03158 6.93439L12.0574 3.90855C12.1248 3.76739 12.1468 3.60881 12.1204 3.45463C12.0939 3.30045 12.0203 3.15826 11.9097 3.04765C11.7991 2.93703 11.6569 2.86343 11.5027 2.83698C11.3486 2.81053 11.19 2.83252 11.0488 2.89994L7.51865 6.36957C7.37699 6.51141 7.29742 6.70367 7.29742 6.90414C7.29742 7.1046 7.37699 7.29686 7.51865 7.4387L11.0488 10.9689Z",fill:"currentColor"}))}));$L.displayName="AngleDoubleLeftIcon";function CI(){return CI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},CI.apply(null,arguments)}var WL=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",CI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{d:"M3.58659 4.5007C3.68513 4.50023 3.78277 4.51945 3.87379 4.55723C3.9648 4.59501 4.04735 4.65058 4.11659 4.7207L7.11659 7.7207L10.1166 4.7207C10.2619 4.65055 10.4259 4.62911 10.5843 4.65956C10.7427 4.69002 10.8871 4.77074 10.996 4.88976C11.1049 5.00877 11.1726 5.15973 11.1889 5.32022C11.2052 5.48072 11.1693 5.6422 11.0866 5.7807L7.58659 9.2807C7.44597 9.42115 7.25534 9.50004 7.05659 9.50004C6.85784 9.50004 6.66722 9.42115 6.52659 9.2807L3.02659 5.7807C2.88614 5.64007 2.80725 5.44945 2.80725 5.2507C2.80725 5.05195 2.88614 4.86132 3.02659 4.7207C3.09932 4.64685 3.18675 4.58911 3.28322 4.55121C3.37969 4.51331 3.48305 4.4961 3.58659 4.5007Z",fill:"currentColor"}))}));WL.displayName="AngleDownIcon";function wI(){return wI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wI.apply(null,arguments)}var zL=S.memo(S.forwardRef(function(e,t){var r=kn.getPTI(e);return S.createElement("svg",wI({ref:t,width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r),S.createElement("path",{d:"M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z",fill:"currentColor"}))}));zL.displayName="AngleUpIcon";function f0(){return f0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f0.apply(null,arguments)}function Wm(e){"@babel/helpers - typeof";return Wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wm(e)}function NX(e,t){if(Wm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Wm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MX(e){var t=NX(e,"string");return Wm(t)=="symbol"?t:t+""}function kX(e,t,r){return(t=MX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var LX={root:function(t){var r=t.props,n=t.isFilled,o=t.context;return dt("p-inputtext p-component",{"p-disabled":r.disabled,"p-filled":n,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":o&&o.inputStyle==="filled"})}},$v=Ar.extend({defaultProps:{__TYPE:"InputText",__parentMetadata:null,children:void 0,className:null,invalid:!1,variant:null,keyfilter:null,onBeforeInput:null,onInput:null,onKeyDown:null,onPaste:null,tooltip:null,tooltipOptions:null,validateOnly:!1,iconPosition:null},css:{classes:LX}});function t3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function r3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t3(Object(r),!0).forEach(function(n){kX(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var W0=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=$v.getProps(e,n),i=$v.setMetaData(r3(r3({props:o},o.__parentMetadata),{},{context:{disabled:o.disabled,iconPosition:o.iconPosition}})),a=i.ptm,s=i.cx,l=i.isUnstyled;vo($v.css.styles,l,{name:"inputtext",styled:!0});var c=S.useRef(t),d=function(R){o.onKeyDown&&o.onKeyDown(R),o.keyfilter&&cu.onKeyPress(R,o.keyfilter,o.validateOnly)},p=function(R){o.onBeforeInput&&o.onBeforeInput(R),o.keyfilter&&cu.onBeforeInput(R,o.keyfilter,o.validateOnly)},m=function(R){var x=R.target,k=!0;o.keyfilter&&o.validateOnly&&(k=cu.validate(R,o.keyfilter)),o.onInput&&o.onInput(R,k),pe.isNotEmpty(x.value)?le.addClass(x,"p-filled"):le.removeClass(x,"p-filled")},y=function(R){o.onPaste&&o.onPaste(R),o.keyfilter&&cu.onPaste(R,o.keyfilter,o.validateOnly)};S.useEffect(function(){pe.combinedRefs(c,t)},[c,t]);var b=S.useMemo(function(){return pe.isNotEmpty(o.value)||pe.isNotEmpty(o.defaultValue)},[o.value,o.defaultValue]),v=pe.isNotEmpty(o.tooltip);S.useEffect(function(){var A;b||(A=c.current)!==null&&A!==void 0&&A.value?le.addClass(c.current,"p-filled"):le.removeClass(c.current,"p-filled")},[o.disabled,b]);var C=r({className:dt(o.className,s("root",{context:n,isFilled:b})),onBeforeInput:p,onInput:m,onKeyDown:d,onPaste:y},$v.getOtherProps(o),a("root"));return S.createElement(S.Fragment,null,S.createElement("input",f0({ref:c},C)),v&&S.createElement(Ml,f0({target:c,content:o.tooltip,pt:a("tooltip")},o.tooltipOptions)))}));W0.displayName="InputText";function Jh(){return Jh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Jh.apply(null,arguments)}function II(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function FX(e){if(Array.isArray(e))return II(e)}function jX(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KL(e,t){if(e){if(typeof e=="string")return II(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?II(e,t):void 0}}function VX(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1807
1807
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BX(e){return FX(e)||jX(e)||KL(e)||VX()}function zm(e){"@babel/helpers - typeof";return zm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zm(e)}function HX(e,t){if(zm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UX(e){var t=HX(e,"string");return zm(t)=="symbol"?t:t+""}function $X(e,t,r){return(t=UX(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WX(e){if(Array.isArray(e))return e}function zX(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,t!==0)for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(d){c=!0,o=d}finally{try{if(!l&&r.return!=null&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}function KX(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
@@ -2234,7 +2234,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2234
2234
  justify-content: center;
2235
2235
  }
2236
2236
  }
2237
- `,xZ={root:function(t){var r=t.props,n=t.selectable;return dt("p-datatable p-component",{"p-datatable-hoverable-rows":r.rowHover,"p-datatable-selectable":n&&!r.cellSelection,"p-datatable-selectable-cell":n&&r.cellSelection,"p-datatable-resizable":r.resizableColumns,"p-datatable-resizable-fit":r.resizableColumns&&r.columnResizeMode==="fit","p-datatable-scrollable":r.scrollable,"p-datatable-flex-scrollable":r.scrollable&&r.scrollHeight==="flex","p-datatable-responsive-stack":r.responsiveLayout==="stack","p-datatable-responsive-scroll":r.responsiveLayout==="scroll","p-datatable-striped":r.stripedRows,"p-datatable-gridlines":r.showGridlines,"p-datatable-grouped-header":r.headerColumnGroup!=null,"p-datatable-grouped-footer":r.footerColumnGroup!=null,"p-datatable-sm":r.size==="small","p-datatable-lg":r.size==="large"})},loadingIcon:"p-datatable-loading-icon",loadingOverlay:"p-datatable-loading-overlay p-component-overlay",header:"p-datatable-header",wrapper:"p-datatable-wrapper",table:function(t){var r=t.props;return dt("p-datatable-table",{"p-datatable-scrollable-table":r.scrollable,"p-datatable-resizable-table":r.resizableColumns,"p-datatable-resizable-table-fit":r.resizableColumns&&r.columnResizeMode==="fit"})},thead:"p-datatable-thead",tfoot:"p-datatable-tfoot",footer:"p-datatable-footer",checkIcon:"p-checkbox-icon",resizeHelper:"p-column-resizer-helper",reorderIndicatorUp:"p-datatable-reorder-indicator-up",reorderIndicatorDown:"p-datatable-reorder-indicator-down",paginator:function(t){var r=t.position;return dt("p-paginator-"+r)},bodyCell:function(t){var r=t.selectionMode,n=t.editor,o=t.editingState,i=t.frozen,a=t.cellSelected,s=t.align,l=t.bodyProps,c=t.getCellParams;return dt(Wn({"p-selection-column":r!==null,"p-editable-column":n,"p-cell-editing":n&&o,"p-frozen-column":i,"p-selectable-cell":l.allowCellSelection&&l.isSelectable({data:c(),index:l.rowIndex}),"p-highlight":a},"p-align-".concat(s),!!s))},columnTitle:"p-column-title",bodyRow:function(t){var r=t.rowProps;return dt({"p-highlight":!r.allowCellSelection&&r.selected||r.contextMenuSelected,"p-highlight-contextmenu":r.contextMenuSelected,"p-selectable-row":r.allowRowSelection&&r.isSelectable({data:r.rowData,index:r.rowIndex}),"p-row-odd":r.rowIndex%2!==0})},rowGroupTogglerIcon:"p-row-toggler-icon",rowGroupToggler:"p-row-toggler p-link",rowGroupHeader:"p-rowgroup-header",rowGroupHeaderName:"p-rowgroup-header-name",rowGroupFooter:"p-rowgroup-footer",rowReorderIcon:"p-datatable-reorderablerow-handle",rowTogglerIcon:"p-row-toggler-icon",rowToggler:"p-row-toggler p-link",rowEditorSaveIcon:"p-row-editor-save-icon",rowEditorSaveButton:"p-row-editor-save p-link",rowEditorCancelIcon:"p-row-editor-cancel-icon",rowEditorCancelButton:"p-row-editor-cancel p-link",rowEditorInitIcon:"p-row-editor-init-icon",rowEditorInitButton:"p-row-editor-init p-link",rowExpansion:"p-datatable-row-expansion",virtualScrollerSpacer:function(t){var r=t.className;return r},tbody:function(t){var r=t.className;return r},filterInput:"p-fluid p-column-filter-element",filterMenuButton:function(t){var r=t.overlayVisibleState,n=t.hasFilter;return dt("p-column-filter-menu-button p-link",{"p-column-filter-menu-button-open":r,"p-column-filter-menu-button-active":n()})},headerFilterClearButton:function(t){var r=t.hasRowFilter;return dt("p-column-filter-clear-button p-link",{"p-hidden-space":!r()})},filterSeparator:"p-column-filter-separator",filterRowItem:function(t){var r=t.isRowMatchModeSelected,n=t.isShowMatchModes,o=t.value;return n()?dt("p-column-filter-row-item",{"p-highlight":o&&r(o)}):void 0},filterRowItems:"p-column-filter-row-items",filterOperator:"p-column-filter-operator",filterConstraints:"p-column-filter-constraints",filterConstraint:"p-column-filter-constraint",filterAddRule:"p-column-filter-add-rule",filterButtonBar:"p-column-filter-buttonbar",filterOverlay:function(t){var r=t.columnFilterProps,n=t.context,o=t.getColumnProp;return dt("p-column-filter-overlay p-component p-fluid",o("filterMenuClassName"),{"p-column-filter-overlay-menu":r.display==="menu","p-input-filled":n&&n.inputStyle==="filled"||Ur.inputStyle==="filled","p-ripple-disabled":n&&n.ripple===!1||Ur.ripple===!1})},columnFilter:function(t){var r=t.columnFilterProps;return dt("p-column-filter p-fluid",{"p-column-filter-row":r.display==="row","p-column-filter-menu":r.display==="menu"})},columnResizer:"p-column-resizer",emptyMessage:"p-datatable-emptymessage",sortBadge:"p-sortable-column-badge",sortIcon:"p-sortable-column-icon",headerTitle:"p-column-title",headerContent:"p-column-header-content",headerCell:function(t){var r=t.headerProps,n=t.frozen,o=t.sortMeta,i=t.align,a=t._isSortableDisabled,s=t.getColumnProp;return pe.isEmpty(r)?dt("p-filter-column",{"p-frozen-column":n}):dt(Wn({"p-filter-column":!r.headerColumnGroup&&r.filterDisplay==="row","p-sortable-column":s("sortable"),"p-resizable-column":r.resizableColumns&&s("resizeable"),"p-highlight":o.sorted,"p-frozen-column":n,"p-selection-column":s("selectionMode"),"p-sortable-disabled":s("sortable")&&a,"p-reorderable-column":r.reorderableColumns&&s("reorderable")&&!n},"p-align-".concat(i),!!i))},footerCell:function(t){var r=t.getColumnProp,n=t.align;return dt(Wn({"p-frozen-column":r("frozen")},"p-align-".concat(n),!!n))},transition:"p-connected-overlay"},DZ={wrapper:{overflow:"auto"},resizeHelper:{display:"none"},reorderIndicatorUp:function(t){var r=t.style;return f3({},r)},reorderIndicatorDown:function(t){var r=t.style;return f3({},r)}},Kv=Ar.extend({defaultProps:{__TYPE:"DataTable",alwaysShowPaginator:!0,breakpoint:"960px",cellClassName:null,cellMemo:!0,cellMemoProps:["rowData","field","allowCellSelection","isCellSelected","editMode","index","tabIndex","editing","expanded","editingMeta","frozenCol","alignFrozenCol"],cellMemoPropsDepth:1,cellSelection:!1,checkIcon:null,className:null,collapsedRowIcon:null,columnResizeMode:"fit",compareSelectionBy:"deepEquals",contextMenuSelection:null,csvSeparator:",",currentPageReportTemplate:"({currentPage} of {totalPages})",customRestoreState:null,customSaveState:null,dataKey:null,defaultSortOrder:1,dragSelection:!1,editMode:null,editingRows:null,emptyMessage:null,expandableRowGroups:!1,expandedRowIcon:null,expandedRows:null,exportFilename:"download",exportFunction:null,filterClearIcon:null,filterDelay:300,filterDisplay:"menu",filterIcon:null,filterLocale:void 0,filters:null,first:0,footer:null,footerColumnGroup:null,frozenRow:!1,frozenValue:null,frozenWidth:null,globalFilter:null,globalFilterFields:null,globalFilterMatchMode:En.CONTAINS,groupRowsBy:null,header:null,headerColumnGroup:null,id:null,isDataSelectable:null,lazy:!1,loading:!1,loadingIcon:null,metaKeySelection:!1,multiSortMeta:null,onAllRowsSelect:null,onAllRowsUnselect:null,onCellClick:null,onCellSelect:null,onCellUnselect:null,onColReorder:null,onColumnResizeEnd:null,onColumnResizerClick:null,onColumnResizerDoubleClick:null,onContextMenu:null,onContextMenuSelectionChange:null,onFilter:null,onPage:null,onRowClick:null,onRowCollapse:null,onRowDoubleClick:null,onRowEditCancel:null,onRowEditChange:null,onRowEditComplete:null,onRowEditInit:null,onRowEditSave:null,onRowExpand:null,onRowMouseEnter:null,onRowMouseLeave:null,onRowPointerDown:null,onRowPointerUp:null,onRowReorder:null,onRowSelect:null,onRowToggle:null,onRowUnselect:null,onSelectAllChange:null,onSelectionChange:null,onSort:null,onStateRestore:null,onStateSave:null,onValueChange:null,pageLinkSize:5,paginator:!1,paginatorClassName:null,paginatorDropdownAppendTo:null,paginatorLeft:null,paginatorPosition:"bottom",paginatorRight:null,paginatorTemplate:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown",removableSort:!1,reorderIndicatorDownIcon:null,reorderIndicatorUpIcon:null,reorderableColumns:!1,reorderableRows:!1,resizableColumns:!1,responsiveLayout:"scroll",rowClassName:null,rowEditValidator:null,rowEditorCancelIcon:null,rowEditorInitIcon:null,rowEditorSaveIcon:null,rowExpansionTemplate:null,rowGroupFooterTemplate:null,rowGroupHeaderTemplate:null,rowGroupMode:null,rowHover:!1,rows:null,rowsPerPageOptions:null,scrollHeight:null,scrollable:!1,selectAll:!1,selectOnEdit:!0,selection:null,selectionAriaLabel:null,selectionAutoFocus:!0,selectionMode:null,selectionPageOnly:!1,showGridlines:!1,showHeaders:!0,showRowReorderElement:null,showSelectAll:!0,showSelectionElement:null,size:"normal",sortField:null,sortIcon:null,sortMode:"single",sortOrder:null,stateKey:null,stateStorage:"session",stripedRows:!1,style:null,tabIndex:0,tableClassName:null,tableStyle:null,totalRecords:null,value:null,virtualScrollerOptions:null,children:void 0},css:{styles:PZ,classes:xZ,inlineStyles:DZ}});function NZ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function OR(e,t){if(e==null)return{};var r,n,o=NZ(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var MZ={box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(t){var r=t.props,n=t.checked,o=t.context;return dt("p-checkbox p-component",{"p-highlight":n,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":o&&o.inputStyle==="filled"})}},Gv=Ar.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:MZ}});function h3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function m3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var _R=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Gv.getProps(e,n),i=S.useState(!1),a=Kn(i,2),s=a[0],l=a[1],c=Gv.setMetaData({props:o,state:{focused:s},context:{checked:o.checked===o.trueValue,disabled:o.disabled}}),d=c.ptm,p=c.cx,m=c.isUnstyled;vo(Gv.css.styles,m,{name:"checkbox"});var y=S.useRef(null),b=S.useRef(o.inputRef),v=function(){return o.checked===o.trueValue},C=function(Y){if(!(o.disabled||o.readOnly)&&o.onChange){var Q,me=v(),ne=me?o.falseValue:o.trueValue,Ee={originalEvent:Y,value:o.value,checked:ne,stopPropagation:function(){Y==null||Y.stopPropagation()},preventDefault:function(){Y==null||Y.preventDefault()},target:{type:"checkbox",name:o.name,id:o.id,value:o.value,checked:ne}};if(o==null||(Q=o.onChange)===null||Q===void 0||Q.call(o,Ee),Y.defaultPrevented)return;le.focus(b.current)}},A=function(Y){var Q;l(!0),o==null||(Q=o.onFocus)===null||Q===void 0||Q.call(o,Y)},R=function(Y){var Q;l(!1),o==null||(Q=o.onBlur)===null||Q===void 0||Q.call(o,Y)};S.useImperativeHandle(t,function(){return{props:o,focus:function(){return le.focus(b.current)},getElement:function(){return y.current},getInput:function(){return b.current}}}),S.useEffect(function(){pe.combinedRefs(b,o.inputRef)},[b,o.inputRef]),hn(function(){b.current.checked=v()},[o.checked,o.trueValue]),Go(function(){o.autoFocus&&le.focus(b.current,o.autoFocus)});var x=v(),k=pe.isNotEmpty(o.tooltip),D=Gv.getOtherProps(o),F=r({id:o.id,className:dt(o.className,p("root",{checked:x,context:n})),style:o.style,"data-p-highlight":x,"data-p-disabled":o.disabled,onContextMenu:o.onContextMenu,onMouseDown:o.onMouseDown},D,d("root")),$=function(){var Y=pe.reduceKeys(D,le.ARIA_PROPS),Q=r(m3({id:o.inputId,type:"checkbox",className:p("input"),name:o.name,tabIndex:o.tabIndex,onFocus:function(ne){return A(ne)},onBlur:function(ne){return R(ne)},onChange:function(ne){return C(ne)},disabled:o.disabled,readOnly:o.readOnly,required:o.required,"aria-invalid":o.invalid,checked:x},Y),d("input"));return S.createElement("input",Yn({ref:b},Q))},U=function(){var Y=r({className:p("icon")},d("icon")),Q=r({className:p("box",{checked:x}),"data-p-highlight":x,"data-p-disabled":o.disabled},d("box")),me=x?o.icon||S.createElement(Cc,Y):null,ne=nn.getJSXIcon(me,m3({},Y),{props:o,checked:x});return S.createElement("div",Q,ne)};return S.createElement(S.Fragment,null,S.createElement("div",Yn({ref:y},F),$(),U()),k&&S.createElement(Ml,Yn({target:y,content:o.tooltip,pt:d("tooltip")},o.tooltipOptions)))}));_R.displayName="Checkbox";function g3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function kZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var gF=S.memo(function(e){var t=Vr(),r=function(){return zo.getCProps(e.column)},n=e.ptCallbacks,o=n.ptm,i=n.ptmo,a=n.cx,s=function(v){var C={props:r(),parent:e.metaData,hostName:e.hostName,state:{},context:{index:e.tabIndex,checked:e.checked,disabled:e.disabled}};return t(o("column.".concat(v),{column:C}),o("column.".concat(v),C),i(r(),v,C))},l=function(v){e.disabled||e.onChange(v)},c=t({className:a("checkIcon")},s("rowCheckbox.icon")),d=e.checked?e.checkIcon||S.createElement(Cc,c):null,p=nn.getJSXIcon(d,kZ({},c),{props:e}),m=e.disabled?null:"0",y={role:"checkbox","aria-checked":e.checked,tabIndex:m,onChange:l,"aria-label":e.ariaLabel,checked:e.checked,icon:p,disabled:e.disabled,unstyled:e.unstyled,pt:s("rowCheckbox")};return S.createElement(_R,y)});gF.displayName="RowCheckbox";var LZ={root:function(t){var r=t.props,n=t.context;return dt("p-radiobutton p-component",{"p-highlight":r.checked,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n&&n.inputStyle==="filled"})},box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},qv=Ar.extend({defaultProps:{__TYPE:"RadioButton",autoFocus:!1,checked:!1,className:null,disabled:!1,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onClick:null,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:LZ}});function v3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function FZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var vF=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=qv.getProps(e,n),i=S.useRef(null),a=S.useRef(o.inputRef),s=qv.setMetaData({props:o}),l=s.ptm,c=s.cx,d=s.isUnstyled;vo(qv.css.styles,d,{name:"radiobutton"});var p=function(D){m(D)},m=function(D){if(!(o.disabled||o.readOnly)&&o.onChange){var F=o.checked,$=D.target instanceof HTMLDivElement,U=D.target===a.current,G=U&&D.target.checked!==F,Y=$&&(le.hasClass(i.current,"p-radiobutton-checked")===F?!F:!1),Q=!F,me={originalEvent:D,value:o.value,checked:Q,stopPropagation:function(){D==null||D.stopPropagation()},preventDefault:function(){D==null||D.preventDefault()},target:{type:"radio",name:o.name,id:o.id,value:o.value,checked:Q}};if(G||Y){var ne;if(o==null||(ne=o.onChange)===null||ne===void 0||ne.call(o,me),D.defaultPrevented)return;Y&&(a.current.checked=Q)}le.focus(a.current)}},y=function(D){var F;o==null||(F=o.onFocus)===null||F===void 0||F.call(o,D)},b=function(D){var F;o==null||(F=o.onBlur)===null||F===void 0||F.call(o,D)};S.useImperativeHandle(t,function(){return{props:o,select:p,focus:function(){return le.focus(a.current)},getElement:function(){return i.current},getInput:function(){return a.current}}}),S.useEffect(function(){a.current&&(a.current.checked=o.checked)},[o.checked]),S.useEffect(function(){pe.combinedRefs(a,o.inputRef)},[a,o.inputRef]),Go(function(){o.autoFocus&&le.focus(a.current,o.autoFocus)});var v=pe.isNotEmpty(o.tooltip),C=qv.getOtherProps(o),A=r({id:o.id,className:dt(o.className,c("root",{context:n})),style:o.style,"data-p-checked":o.checked},C,l("root"));delete A.input,delete A.box,delete A.icon;var R=function(){var D=pe.reduceKeys(C,le.ARIA_PROPS),F=r(FZ({id:o.inputId,type:"radio",name:o.name,defaultChecked:o.checked,onFocus:y,onBlur:b,onChange:m,disabled:o.disabled,readOnly:o.readOnly,required:o.required,tabIndex:o.tabIndex,className:c("input")},D),e.input,l("input"));return S.createElement("input",Yn({ref:a},F))},x=function(){var D=r({className:c("box")},e.box,l("box")),F=r({className:c("icon")},e.icon,l("icon"));return S.createElement("div",D,S.createElement("div",F))};return S.createElement(S.Fragment,null,S.createElement("div",Yn({ref:i},A),R(),x()),v&&S.createElement(Ml,Yn({target:i,content:o.tooltip,pt:l("tooltip")},o.tooltipOptions)))}));vF.displayName="RadioButton";var yF=S.memo(function(e){var t=Vr(),r=function(){return zo.getCProps(e.column)},n=e.ptCallbacks,o=n.ptm,i=n.ptmo,a=function(d){var p={props:r(),parent:e.metaData,hostName:e.hostName,state:{},context:{index:e.tabIndex,checked:e.checked,disabled:e.disabled}};return t(o("column.".concat(d),{column:p}),o("column.".concat(d),p),i(r(),d,p))},s=function(d){e.disabled||e.onChange(d)},l={role:"radio","aria-checked":e.checked,checked:e.checked,disabled:e.disabled,name:"".concat(e.tableSelector,"_dt_radio"),onChange:s,unstyled:e.unstyled,pt:a("rowRadioButton")};return S.createElement(vF,l)});yF.displayName="RowRadioButton";function y3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Wa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var bF=function(t){var r=Vr(),n=S.useState(t.editing),o=Kn(n,2),i=o[0],a=o[1],s=S.useState(t.rowData),l=Kn(s,2),c=l[0],d=l[1],p=S.useState({}),m=Kn(p,2),y=m[0],b=m[1],v=S.useRef(null),C=S.useRef(null),A=S.useRef(null),R=S.useRef(null),x=S.useRef(null),k=t.ptCallbacks,D=k.ptm,F=k.ptmo,$=k.cx,U=function(Ve){return zo.getCProp(t.column,Ve)},G=function(Ve){var Jt={props:t.cProps,parent:t.metaData,hostName:t.hostName,state:{styleObject:y,editing:i,editingRowData:c},context:{index:t.index,size:t.metaData.props.size,showGridlines:t.metaData.props.showGridlines}};return r(D("column.".concat(Ve),{column:Jt}),D("column.".concat(Ve),Jt),F(t.cProps,Ve,Jt))},Y=function(){return pe.isNotEmpty(t.editMode)&&U("editor")},Q=function(){return U("cellEditValidateOnClose")},me=function(Ve){var Jt=function(pr){return pr.getAttribute&&pr.getAttribute("data-pr-is-overlay")};return Jt(Ve)||le.getParents(Ve).find(function(ar){return Jt(ar)})},ne=Aa({type:"click",listener:function(Ve){!me(Ve.target)&&Ne(Ve.target)&&Ae(Ve,!0)},options:!0,when:Y()}),Ee=Kn(ne,2),ce=Ee[0],_e=Ee[1],Ne=function(Ve){return v.current&&!(v.current.isSameNode(Ve)||v.current.contains(Ve))},oe=function(){var Ve=U("bodyStyle"),Jt=U("style");return t.frozenCol?Object.assign({},Jt,Ve,y):Object.assign({},Jt,Ve)},Se=function(){return{value:t.resolveFieldData(),field:t.field,rowData:t.rowData,rowIndex:t.rowIndex,cellIndex:t.index,selected:t.isCellSelected,column:t.column,props:t}},re=function(Ve){var Jt=Se();return Wa({originalEvent:Ve},Jt)},we=function(Ve){var Jt=re(Ve),ar=U("onBeforeCellEditHide");ar&&ar(Jt),setTimeout(function(){a(!1),_e()},1)},Ae=function(Ve,Jt){var ar=re(Ve),pr=Wa({},x.current),gr=t.resolveFieldData(pr),en=Wa(Wa({},ar),{},{newRowData:pr,newValue:gr}),Wr=U("onCellEditCancel"),Xr=U("cellEditValidator"),Pr=U("onCellEditComplete");!Jt&&Wr&&Wr(en);var Br=!0;(!Jt||Q())&&Xr&&(Br=Xr(en)),Br?(Jt&&Pr&&Pr(en),we(Ve)):Ve.preventDefault(),d(pr)},Pe=function(Ve){var Jt=Wa({},c);pe.mutateFieldData(Jt,t.field,Ve),d(Jt);var ar=t.getEditingRowData();ar&&pe.mutateFieldData(ar,t.field,Ve),x.current=Jt},Oe=function(Ve){t.onClick(Ve,re(Ve),Y(),i,a,t.column,ce)},Ke=function(Ve){var Jt=re(Ve);t.onMouseDown&&t.onMouseDown(Jt)},St=function(Ve){var Jt=re(Ve);t.onMouseUp&&t.onMouseUp(Jt)},st=function(Ve){if(t.editMode!=="row"&&((Ve.code==="Enter"||Ve.code==="NumpadEnter"||Ve.code==="Tab")&&Ae(Ve,!0),Ve.code==="Escape"&&Ae(Ve,!1)),t.allowCellSelection){var Jt=Ve.target,ar=Ve.currentTarget;switch(Ve.code){case"ArrowLeft":var pr=t.findPrevSelectableCell(ar);pr&&(changeTabIndex(ar,pr),pr.focus()),Ve.preventDefault();break;case"ArrowRight":var gr=t.findNextSelectableCell(ar);gr&&(changeTabIndex(ar,gr),gr.focus()),Ve.preventDefault();break;case"ArrowUp":var en=t.findUpSelectableCell(ar,index);en&&(changeTabIndex(ar,en),en.focus()),Ve.preventDefault();break;case"ArrowDown":var Wr=t.findDownSelectableCell(ar,index);Wr&&(changeTabIndex(ar,Wr),Wr.focus()),Ve.preventDefault();break;case"Enter":case"NumpadEnter":Ve.shiftKey||Ve.ctrlKey||le.isClickable(Jt)||(Oe(Ve),Ve.preventDefault());break;case"Space":!le.isClickable(Jt)&&!Jt.readOnly&&(Oe(Ve),Ve.preventDefault());break}}},yt=function(Ve){t.editMode!=="row"&&i&&U("cellEditValidatorEvent")==="blur"&&Ae(Ve,!0)},$e=function(Ve){Oe(Ve)},ot=function(Ve){t.onRadioChange({originalEvent:Ve,data:t.rowData,index:t.rowIndex})},it=function(Ve){t.onRowToggle({originalEvent:Ve,data:t.rowData}),Ve.preventDefault(),Ve.stopPropagation()},Ie=function(Ve){t.onRowEditInit({originalEvent:Ve,data:t.rowData,newData:t.getEditingRowData(),field:t.field,index:t.rowIndex})},tt=function(Ve){t.onRowEditSave({originalEvent:Ve,data:t.rowData,newData:t.getEditingRowData(),field:t.field,index:t.rowIndex}),t.focusOnInit(R,v)},mt=function(Ve){t.onRowEditCancel({originalEvent:Ve,data:t.rowData,newData:t.getEditingRowData(),field:t.field,index:t.rowIndex}),t.focusOnInit(R,v)};S.useEffect(function(){t.frozenCol&&t.updateStickyPosition(v,t.frozenCol,t.alignFrozenCol,y,b),(t.editMode==="cell"||t.editMode==="row")&&t.focusOnElement(A,i,v,C)},[t.editMode,t.editing,i,t.frozenCol,t.alignFrozenCol]),S.useEffect(function(){t.editMode==="row"&&t.editing!==i&&a(t.editing)},[t.editMode,t.editing,i]),hn(function(){if(t.editMode==="cell"||t.editMode==="row"){var At=t.getEditingRowData();d(At),x.current=At}},[t.editingMeta]),S.useEffect(function(){if(t.editMode==="cell"||t.editMode==="row"){var At=re(),Ve=Wa(Wa({},At),{},{editing:i,editingKey:t.editingKey});t.onEditingMetaChange(Ve)}},[i]),Ci(function(){x.current&&(x.current=null)});var Wt=function(){var Ve=t.getVirtualScrollerOption("getLoaderOptions")(t.rowIndex,{cellIndex:t.index,cellFirst:t.index===0,cellLast:t.index===t.getVirtualScrollerOption("columns").length-1,cellEven:t.index%2===0,cellOdd:t.index%2!==0,column:t.column,field:t.field}),Jt=pe.getJSXElement(t.getVirtualScrollerOption("loadingTemplate"),Ve),ar=r(G("bodyCell"),{role:"cell"});return S.createElement("td",ar,Jt)},cr=function(){var Ve,Jt,ar=t.allowCellSelection&&t.isCellSelected,pr=t.editMode==="row",gr=t.getTabIndex(ar,t.index),en=U("selectionMode"),Wr=U("rowReorder"),Xr=U("header"),Pr=U("body"),Br=U("editor"),Hr=t.frozenCol,jr=U("align"),zr=t.resolveFieldData(),Jr={column:t.column,field:t.field,rowIndex:t.rowIndex,frozenRow:t.frozenRow,props:t.tableProps},In=pe.getPropValue(U("rowEditor"),t.rowData,Jr),tn=pe.getPropValue(U("expander"),t.rowData,Jr),vr=pe.getPropValue(t.cellClassName,zr,Jr),at=pe.getPropValue(U("bodyClassName"),t.rowData,Jr),Pt=oe(),pt=r({className:$("columnTitle")},G("columnTitle")),Rt=t.responsiveLayout==="stack"&&S.createElement("span",pt,pe.getJSXElement(Xr,{props:t.tableProps}));if(en){var rt=t.showSelectionElement?t.showSelectionElement(t.rowData,{rowIndex:t.rowIndex,props:t.tableProps}):!0,ge;if(rt){var be=t.selectionAriaLabel||t.tableProps.dataKey,We=pe.resolveFieldData(t.rowData,be);ge="".concat(t.isRowSelected?Bo("unselectRow"):Bo("selectRow")," ").concat(We)}Ve=rt&&S.createElement(S.Fragment,null,en==="single"&&S.createElement(yF,{hostName:t.hostName,column:t.column,checked:t.isRowSelected,disabled:!t.isSelectable({data:t.rowData,index:t.rowIndex}),onChange:ot,tabIndex:t.tabIndex,tableSelector:t.tableSelector,ariaLabel:ge,ptCallbacks:t.ptCallbacks,metaData:t.metaData,unstyled:t.unstyled}),en==="multiple"&&S.createElement(gF,{hostName:t.hostName,column:t.column,checked:t.isRowSelected,disabled:!t.isSelectable({data:t.rowData,index:t.rowIndex}),onChange:t.onCheckboxChange,tabIndex:t.tabIndex,ariaLabel:ge,checkIcon:t.checkIcon,ptCallbacks:t.ptCallbacks,metaData:t.metaData,unstyled:t.unstyled}))}else if(Wr){var Gt=t.showRowReorderElement?t.showRowReorderElement(t.rowData,{rowIndex:t.rowIndex,props:t.tableProps}):!0,Qt=U("rowReorderIcon"),Zt=r({className:$("rowReorderIcon")},Qt?null:G("rowReorderIcon")),Cr=Qt||S.createElement(sF,Zt);Ve=Gt?nn.getJSXIcon(Cr,Wa({},Zt),{props:t}):null}else if(tn){var zt=r({className:$("rowTogglerIcon"),"aria-hidden":!0},G("rowTogglerIcon")),Qe=t.expanded?t.expandedRowIcon||S.createElement(hg,zt):t.collapsedRowIcon||S.createElement(mg,zt),Et=nn.getJSXIcon(Qe,Wa({},zt),{props:t}),Ht="".concat(t.tableSelector,"_content_").concat(t.rowIndex,"_expanded"),ur=t.selectionAriaLabel||t.tableProps.dataKey,Dr=pe.resolveFieldData(t.rowData,ur),pn="".concat(t.expanded?Bo("collapseLabel"):Bo("expandLabel")," ").concat(Dr),Ln={onClick:it,className:$("rowToggler")},Qn=r(Wa(Wa({},Ln),{},{type:"button","aria-expanded":t.expanded,"aria-controls":Ht,tabIndex:t.tabIndex,"aria-label":pn}),G("rowToggler"));Ve=S.createElement("button",Qn,Et,S.createElement(Co,null)),Pr&&(Ln.element=Ve,Ve=pe.getJSXElement(Pr,t.rowData,{column:t.column,field:t.field,rowIndex:t.rowIndex,frozenRow:t.frozenRow,props:t.tableProps,expander:Ln}))}else if(pr&&In){var gn={},Re=r({className:$("rowEditorSaveIcon")},G("rowEditorSaveIcon")),Xe=r({className:$("rowEditorCancelIcon")},G("rowEditorCancelIcon")),Ce=r({className:$("rowEditorInitIcon")},G("rowEditorInitIcon")),Te=nn.getJSXIcon(t.rowEditorSaveIcon||S.createElement(Cc,Re),Wa({},Re),{props:t}),et=nn.getJSXIcon(t.rowEditorCancelIcon||S.createElement(wc,Xe),Wa({},Xe),{props:t}),ht=nn.getJSXIcon(t.rowEditorInitIcon||S.createElement(lF,Ce),Wa({},Ce),{props:t});if(i){gn={editing:!0,onSaveClick:tt,saveClassName:$("rowEditorSaveButton"),onCancelClick:mt,cancelClassName:$("rowEditorCancelButton")};var Ft=r({type:"button",name:"row-save","aria-label":Bo("saveEdit"),onClick:gn.onSaveClick,className:gn.saveClassName,tabIndex:t.tabIndex,"data-p-row-editor-save":!0},G("rowEditorSaveButton")),tr=r({type:"button",name:"row-cancel","aria-label":Bo("cancelEdit"),onClick:gn.onCancelClick,className:gn.cancelClassName,tabIndex:t.tabIndex},G("rowEditorCancelButton"));Ve=S.createElement(S.Fragment,null,S.createElement("button",Ft,Te,S.createElement(Co,null)),S.createElement("button",tr,et,S.createElement(Co,null)))}else{gn={editing:!1,onInitClick:Ie,initClassName:$("rowEditorInitButton")};var Lt=r({type:"button",name:"row-edit","aria-label":Bo("editRow"),onClick:gn.onInitClick,className:gn.initClassName,tabIndex:t.tabIndex,"data-p-row-editor-init":!0},G("rowEditorInitButton"));Ve=S.createElement("button",Lt,ht,S.createElement(Co,null))}Pr&&(gn.element=Ve,Ve=pe.getJSXElement(Pr,t.rowData,{column:t.column,field:t.field,rowIndex:t.rowIndex,frozenRow:t.frozenRow,props:t.tableProps,rowEditor:gn}))}else Pr&&(!i||!Br)?Ve=Pr?pe.getJSXElement(Pr,t.rowData,{column:t.column,field:t.field,rowIndex:t.rowIndex,frozenRow:t.frozenRow,props:t.tableProps}):zr:Br&&i?Ve=pe.getJSXElement(Br,{rowData:c,value:t.resolveFieldData(c),column:t.column,field:t.field,rowIndex:t.rowIndex,frozenRow:t.frozenRow,props:t.tableProps,editorCallback:Pe}):Ve=zr;if(Ve=typeof Ve=="boolean"?Ve.toString():Ve,!pr&&Br){var Je=r({tabIndex:"0",className:"p-cell-editor-key-helper p-hidden-accessible",onFocus:function(Kt){return $e(Kt)}},G("editorKeyHelperLabel")),vt=r(G("editorKeyHelper"));Jt=S.createElement("a",Yn({ref:C},Je),S.createElement("span",vt))}var jt=r({style:Pt,className:dt(at,U("className"),vr,$("bodyCell",{selectionMode:en,editor:Br,editingState:i,frozen:Hr,cellSelected:ar,align:jr,bodyProps:t,getCellParams:Se})),rowSpan:t.rowSpan,tabIndex:gr,role:"cell",onClick:function(Kt){return Oe(Kt)},onKeyDown:function(Kt){return st(Kt)},onBlur:function(Kt){return yt(Kt)},onMouseDown:function(Kt){return Ke(Kt)},onMouseUp:function(Kt){return St(Kt)},"data-p-selectable-cell":t.allowCellSelection&&t.isSelectable({data:Se(),index:t.rowIndex}),"data-p-selection-column":U("selectionMode")!=null,"data-p-editable-column":Y()!=null,"data-p-cell-editing":i,"data-p-frozen-column":Hr},G("root"),G("bodyCell"));return S.createElement("td",Yn({ref:v},jt),Jt,Rt,Ve)};return t.getVirtualScrollerOption("loading")?Wt():cr()},SF=S.memo(function(e){return S.createElement(bF,e)},function(e,t){if(t.cellMemo===!1)return!1;var r=["isRowSelected","field","allowCellSelection","isCellSelected","editMode","index","tabIndex","editing","expanded","editingMeta","rowData"];return pe.selectiveCompare(e,t,r)});SF.displayName="RadioCheckCell";var jZ=["rowData","field","allowCellSelection","isCellSelected","editMode","index","tabIndex","editing","expanded","editingMeta","frozenCol","alignFrozenCol"],EF=S.memo(function(e){return S.createElement(bF,e)},function(e,t){if(t.cellMemo===!1)return!1;var r=t.cellMemoProps,n=Array.isArray(r)&&r.every(function(a){return typeof a=="string"})?r:jZ,o=t.cellMemoPropsDepth,i=typeof o=="number"&&o>0?o:1;return pe.selectiveCompare(e,t,n,i)});EF.displayName="BodyCell";function b3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function S3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var CF=S.memo(function(e){var t=Vr(),r=S.useState(!1),n=Kn(r,2),o=n[0],i=n[1],a=e.onRowEditChange?e.editing:o,s=e.ptCallbacks,l=s.ptm,c=s.cx,d=!e.allowCellSelection&&e.selected||e.contextMenuSelected,p=function(ge){return l(ge,{parent:e.metaData,hostName:e.hostName,state:{editing:a},context:{index:e.index,selectable:e.allowRowSelection&&e.isSelectable({data:e.rowData,index:e.rowIndex}),selected:d,stripedRows:e.metaData.props.stripedRows}})},m=function(ge,be){return zo.getCProp(ge,be)},y=function(){return e.selectionMode&&e.selectionModeInColumn!=="single"&&e.selectionModeInColumn!=="multiple"},b=function(ge){var be=m(ge,"field");return e.groupRowsBy&&be?Array.isArray(e.groupRowsBy)?e.groupRowsBy.indexOf(be)>-1:e.groupRowsBy===be:!1},v=function(ge,be){return e.compareSelectionBy==="equals"?ge===be:pe.equals(ge,be,e.dataKey)},C=function(){return y()&&!e.allowCellSelection?e.rowIndex===0?e.tabIndex:-1:null},A=function(ge,be){return(ge||[]).findIndex(function(We){return v(be,We)})},R=function(ge,be){ge&&be&&(ge.tabIndex=-1,be.tabIndex=e.tabIndex)},x=function(ge){var be=le.findSingle(ge.parentNode,"tr[data-p-selectable-row]");return be||null},k=function(ge){var be=ge.nextElementSibling;return be?le.getAttribute(be,"data-p-selectable-row")===!0?be:k(be):null},D=function(ge){var be=ge.previousElementSibling;return be?le.getAttribute(be,"data-p-selectable-row")===!0?be:D(be):null},F=function(ge){var be=le.findSingle(ge.parentNode,"tr[data-p-selectable-row]:last-child");return be||null},$=function(ge,be,We){if(m(be,"hidden"))return!1;if(e.rowGroupMode&&e.rowGroupMode==="rowspan"&&b(be)){var Gt=ge[We-1];if(Gt){var Qt=pe.resolveFieldData(ge[We],m(be,"field")),Zt=pe.resolveFieldData(Gt,m(be,"field"));return Qt!==Zt}}return!0},U=function(ge,be,We){if(b(be)){for(var Gt=pe.resolveFieldData(ge[We],m(be,"field")),Qt=Gt,Zt=0;Gt===Qt;){Zt++;var Cr=ge[++We];if(Cr)Qt=pe.resolveFieldData(Cr,m(be,"field"));else break}return Zt===1?null:Zt}return null},G=function(ge){e.onRowClick({originalEvent:ge,data:e.rowData,index:e.rowIndex})},Y=function(ge){e.onRowDoubleClick({originalEvent:ge,data:e.rowData,index:e.rowIndex})},Q=function(ge){e.onRowPointerDown({originalEvent:ge,data:e.rowData,index:e.rowIndex})},me=function(ge){e.onRowPointerUp({originalEvent:ge,data:e.rowData,index:e.rowIndex})},ne=function(ge){e.onRowRightClick({originalEvent:ge,data:e.rowData,index:e.rowIndex})},Ee=function(ge){e.onRowMouseEnter({originalEvent:ge,data:e.rowData,index:e.rowIndex})},ce=function(ge){e.onRowMouseLeave({originalEvent:ge,data:e.rowData,index:e.rowIndex})},_e=function(ge){e.onRowTouchEnd(ge)},Ne=function(ge){if(y()&&!e.allowCellSelection){var be=ge.target,We=ge.currentTarget;switch(ge.code){case"ArrowDown":oe(We,ge);break;case"ArrowUp":Se(We,ge);break;case"Home":re(We,ge);break;case"End":we(We,ge);break;case"Enter":case"NumpadEnter":Ae(We,ge,be);break;case"Space":Pe(We,ge,be);break;case"Tab":Oe(We,ge);break}}},oe=function(ge,be){var We=k(ge);We&&(R(ge,We),We.focus()),be.preventDefault()},Se=function(ge,be){var We=D(ge);We&&(R(ge,We),We.focus()),be.preventDefault()},re=function(ge,be){var We=x(ge);We&&(R(ge,We),We.focus()),be.preventDefault()},we=function(ge,be){var We=F(ge);We&&(R(ge,We),We.focus()),be.preventDefault()},Ae=function(ge,be,We){le.isClickable(We)||(G(be),be.preventDefault())},Pe=function(ge,be,We){!le.isClickable(We)&&!We.readOnly&&(G(be),be.preventDefault())},Oe=function(ge,be){var We=ge.parentNode,Gt=le.find(We,'tr[data-p-selectable-row="true"]');if(be.code==="Tab"&&Gt&&Gt.length>0){var Qt=le.findSingle(We,'tr[data-p-highlight="true"]'),Zt=le.findSingle(We,'tr[data-p-selectable-row="true"][tabindex="0"]');Qt?(Qt.tabIndex="0",Zt&&Zt!==Qt&&(Zt.tabIndex="-1")):(Gt[0].tabIndex="0",Zt!==Gt[0]&&(Gt[e.rowIndex].tabIndex="-1"))}},Ke=function(ge){e.onRowMouseDown({originalEvent:ge,data:e.rowData,index:e.rowIndex})},St=function(ge){e.onRowMouseUp({originalEvent:ge,data:e.rowData,index:e.rowIndex})},st=function(ge){e.onRowDragStart({originalEvent:ge,data:e.rowData,index:e.rowIndex})},yt=function(ge){e.onRowDragOver({originalEvent:ge,data:e.rowData,index:e.rowIndex})},$e=function(ge){e.onRowDragLeave({originalEvent:ge,data:e.rowData,index:e.rowIndex})},ot=function(ge){e.onRowDragEnd({originalEvent:ge,data:e.rowData,index:e.rowIndex})},it=function(ge){e.onRowDrop({originalEvent:ge,data:e.rowData,index:e.rowIndex})},Ie=function(ge,be){if(e.onRowEditChange){var We,Gt=e.dataKey,Qt=ge.originalEvent,Zt=ge.data,Cr=ge.index,zt=ge.newData;if(Gt){var Qe=String(pe.resolveFieldData(Zt,Gt));if(We=e.editingRows?S3({},e.editingRows):{},be)We[Qe]=!0;else{delete We[Qe];var Et=String(pe.resolveFieldData(zt,Gt));delete We[Et]}}else{var Ht=A(e.editingRows,Zt);We=e.editingRows?Xo(e.editingRows):[],Ht!==-1?We=We.filter(function(ur,Dr){return Dr!==Ht}):We.push(Zt)}e.onRowEditChange({originalEvent:Qt,data:We,index:Cr})}else i(be)},tt=function(ge){var be=ge.originalEvent;e.onRowEditInit&&e.onRowEditInit({originalEvent:be,data:e.rowData,index:e.rowIndex}),Ie(ge,!0),be.preventDefault()},mt=function(ge){var be=ge.originalEvent,We=ge.newData,Gt=e.rowEditValidator?e.rowEditValidator(We,{props:e.tableProps,rowIndex:e.rowIndex}):!0;e.onRowEditSave&&e.onRowEditSave({originalEvent:be,data:e.rowData,index:e.rowIndex,newData:We,valid:Gt}),Gt&&(e.onRowEditComplete&&e.onRowEditComplete(ge),Ie(ge,!1)),be.preventDefault()},Wt=function(ge){var be=ge.originalEvent;e.onRowEditCancel&&e.onRowEditCancel({originalEvent:be,data:e.rowData,index:e.rowIndex}),Ie(ge,!1),be.preventDefault()},cr=function(ge){return e.compareSelectionBy==="equals"?ge===e.rowData:pe.equals(ge,e.rowData,e.dataKey)},At=function(ge,be,We){return ge&&(ge.rowIndex===e.rowIndex||cr(ge.rowData))&&(ge.field===be||ge.cellIndex===We)},Ve=function(ge,be,We){return(ge||[]).findIndex(function(Gt){return At(Gt,be,We)})},Jt=function(ge,be,We){return ge?ge instanceof Array?Ve(ge,be,We)>-1:At(ge,be,We):!1},ar=function(ge){e.onCheckboxChange({originalEvent:ge,data:e.rowData,index:e.rowIndex})},pr=e.dataKey&&e.rowData&&e.rowData[e.dataKey]||e.rowIndex,gr=S.useCallback(function(rt){return e.virtualScrollerOptions?e.virtualScrollerOptions[rt]:null},[e.virtualScrollerOptions]),en=function(){return e.editingMeta&&e.editingMeta[pr]?e.editingMeta[pr].data:e.rowData},Wr=S.useCallback(function(rt,ge){return e.allowCellSelection?rt?0:e.rowIndex===0&&ge===0?e.tabIndex:-1:null},[e.allowCellSelection,e.rowIndex,e.tabIndex]),Xr=S.useCallback(function(rt){var ge=rt.nextElementSibling;return ge?le.getAttribute(ge,"data-p-selectable-cell")?ge:Xr(ge):null},[]),Pr=S.useCallback(function(rt){var ge=rt.previousElementSibling;return ge?le.getAttribute(ge,"data-p-selectable-cell")?ge:Pr(ge):null},[]),Br=S.useCallback(function(rt,ge){var be=rt.parentElement.nextElementSibling,We=be?be.children[ge]:null;return be&&We?le.getAttribute(be,"data-p-selectable-row")&&le.getAttribute(We,"data-p-selectable-cell")?We:Br(We):null},[]),Hr=S.useCallback(function(rt,ge){var be=rt.parentElement.previousElementSibling,We=be?be.children[ge]:null;return be&&We?le.getAttribute(be,"data-p-selectable-row")&&le.getAttribute(We,"data-p-selectable-cell")?We:Hr(We):null},[]),jr=S.useCallback(function(rt,ge,be,We){clearTimeout(rt.current),rt.current=setTimeout(function(){if(ge){var Gt=e.editMode==="cell"?le.getFirstFocusableElement(be.current,':not([data-pc-section="editorkeyhelperlabel"])'):le.findSingle(be.current,'[data-p-row-editor-save="true"]');Gt&&Gt.focus()}We.current&&(We.current.tabIndex=ge?-1:0)},1)},[e.editMode]),zr=S.useCallback(function(rt,ge){clearTimeout(rt.current),rt.current=setTimeout(function(){var be=e.editMode==="row"?le.findSingle(ge.current,'[data-p-row-editor-init="true"]'):null;be&&be.focus()},1)},[e.editMode]),Jr=S.useCallback(function(rt,ge,be,We,Gt){if(ge){var Qt=S3({},We);if(be==="right"){var Zt=0,Cr=rt.current&&rt.current.nextElementSibling;Cr&&Cr.classList.contains("p-frozen-column")&&(Zt=le.getOuterWidth(Cr)+parseFloat(Cr.style.right||0)),Qt.right=Zt+"px"}else{for(var zt=0,Qe=rt.current&&rt.current.previousElementSibling;Qe;){if(Qe.classList.contains("p-frozen-column")){zt=le.getOuterWidth(Qe)+parseFloat(Qe.style.left||0),rt.current.style.left=zt+"px";break}Qe=Qe.previousElementSibling}Qt.left=zt+"px"}var Et=We.left===Qt.left&&We.right===Qt.right;!Et&&Gt(Qt)}},[]),In=function(ge,be,We,Gt,Qt,Zt,Cr){if(e.editMode!=="row"&&We&&!Gt&&(e.selectOnEdit||!e.selectOnEdit&&e.isRowSelected)){var zt=m(Zt,"onBeforeCellEditShow"),Qe=m(Zt,"onCellEditInit"),Et=m(Zt,"cellEditValidatorEvent");if(zt&&(zt(be)===!1||ge&&ge.defaultPrevented))return;setTimeout(function(){Qt(!0),!(Qe&&(Qe(be)===!1||ge&&ge.defaultPrevented))&&Et==="click"&&Cr()},1)}e.allowCellSelection&&e.onCellClick&&e.onCellClick(be)},tn=function(){return e.columns.map(function(ge,be){if($(e.value,ge,e.index)){var We="".concat(e.rowIndex,"_").concat(m(ge,"columnKey")||m(ge,"field"),"_").concat(be),Gt=e.rowGroupMode==="rowspan"?U(e.value,ge,e.index):null,Qt=m(ge,"field")||"field_".concat(be),Zt=function(Et){return pe.resolveFieldData(Et||e.rowData,Qt)},Cr=m(ge,"selectionMode"),zt=t({hostName:e.hostName,allowCellSelection:e.allowCellSelection,cellMemo:e.cellMemo,cellMemoProps:e.cellMemoProps,cellMemoPropsDepth:e.cellMemoPropsDepth,cellClassName:e.cellClassName,checkIcon:e.checkIcon,collapsedRowIcon:e.collapsedRowIcon,field:Qt,resolveFieldData:Zt,column:ge,cProps:e.colsProps[be],dataKey:e.dataKey,editMode:e.editMode,editing:a,editingMeta:e.editingMeta,onEditingMetaChange:e.onEditingMetaChange,editingKey:pr,getEditingRowData:en,expanded:e.expanded,expandedRowIcon:e.expandedRowIcon,frozenRow:e.frozenRow,frozenCol:m(ge,"frozen"),alignFrozenCol:m(ge,"alignFrozen"),index:be,isSelectable:e.isSelectable,onCheckboxChange:ar,onClick:In,onMouseDown:e.onCellMouseDown,onMouseUp:e.onCellMouseUp,onRadioChange:e.onRadioChange,onRowEditCancel:Wt,onRowEditInit:tt,onRowEditSave:mt,onRowToggle:e.onRowToggle,responsiveLayout:e.responsiveLayout,rowData:e.rowData,rowEditorCancelIcon:e.rowEditorCancelIcon,rowEditorInitIcon:e.rowEditorInitIcon,rowEditorSaveIcon:e.rowEditorSaveIcon,rowIndex:e.rowIndex,rowSpan:Gt,selectOnEdit:e.selectOnEdit,isRowSelected:d,isCellSelected:Jt(e.selection,Qt,be),selectionAriaLabel:e.tableProps.selectionAriaLabel,showRowReorderElement:e.showRowReorderElement,showSelectionElement:e.showSelectionElement,tabIndex:e.tabIndex,getTabIndex:Wr,tableProps:e.tableProps,tableSelector:e.tableSelector,value:e.value,getVirtualScrollerOption:gr,ptCallbacks:e.ptCallbacks,metaData:e.metaData,unstyled:e.unstyled,findNextSelectableCell:Xr,findPrevSelectableCell:Pr,findDownSelectableCell:Br,findUpSelectableCell:Hr,focusOnElement:jr,focusOnInit:zr,updateStickyPosition:Jr});return S.createElement(se.Fragment,{key:We},Cr?S.createElement(SF,zt):S.createElement(EF,zt))}return null})},vr=pe.getPropValue(e.rowClassName,e.rowData,{props:e.tableProps}),at={height:e.virtualScrollerOptions?e.virtualScrollerOptions.itemSize:void 0},Pt=tn(),pt=C(),Rt=t({role:"row",tabIndex:pt,className:dt(c("bodyRow",{rowProps:e})),style:at,onMouseDown:function(ge){return Ke(ge)},onMouseUp:function(ge){return St(ge)},onMouseEnter:function(ge){return Ee(ge)},onMouseLeave:function(ge){return ce(ge)},onClick:function(ge){return G(ge)},onDoubleClick:function(ge){return Y(ge)},onPointerDown:function(ge){return Q(ge)},onPointerUp:function(ge){return me(ge)},onContextMenu:function(ge){return ne(ge)},onTouchEnd:function(ge){return _e(ge)},onKeyDown:function(ge){return Ne(ge)},onDragStart:function(ge){return st(ge)},onDragOver:function(ge){return yt(ge)},onDragLeave:function(ge){return $e(ge)},onDragEnd:function(ge){return ot(ge)},onDrop:function(ge){return it(ge)},"aria-selected":e!=null&&e.selectionMode?e.selected:null,"data-p-selectable-row":e.allowRowSelection&&e.isSelectable({data:e.rowData,index:e.rowIndex}),"data-p-highlight":e.selected,"data-p-highlight-contextmenu":e.contextMenuSelected},p("bodyRow"),{className:dt(vr)});return S.createElement("tr",Rt,Pt)});CF.displayName="BodyRow";function E3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function VZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var wF=S.memo(function(e){var t=Vr(),r=e.ptCallbacks,n=r.ptm,o=r.ptmo,i=r.cx;r.isUnstyled;var a=function(v){e.onClick({originalEvent:v,data:e.rowData})},s=function(){return zo.getCProps(e.column)},l=function(v){var C=s(),A={props:s(),parent:e.metaData,hostName:e.hostName};return t(n("column.".concat(v),{column:A}),n("column.".concat(v),A),o(C,v,A))},c=t({className:i("rowGroupTogglerIcon"),"aria-hidden":!0},n("rowGroupTogglerIcon"),l("rowGroupTogglerIcon")),d=e.expanded?e.expandedRowIcon||S.createElement(hg,c):e.collapsedRowIcon||S.createElement(mg,c),p=nn.getJSXIcon(d,VZ({},c),{props:e}),m=e.expanded?Bo("collapseLabel"):Bo("expandLabel"),y=t({type:"button",onClick:function(v){return a(v)},className:i("rowGroupToggler"),tabIndex:e.tabIndex,"aria-label":m},n("rowGroupToggler"),l("rowGroupToggler"));return S.createElement("button",y,p,S.createElement(Co,null))});wF.displayName="RowTogglerButton";var BZ=["originalEvent"];function C3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ss(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var $y=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=e.ptCallbacks,o=n.ptm,i=n.ptmo,a=n.cx,s=n.isUnstyled,l=S.useState({}),c=Kn(l,2),d=c[0],p=c[1],m=function(X){return zo.getCProps(X)},y=m(e.column),b=e.columns?e.columns.map(function(Vt){return m(Vt)}):[],v=function(X){var q={props:y,parent:e.metaData,hostName:e.hostName,state:{rowGroupHeaderStyleObject:d}};return r(o("column.".concat(X),{column:q}),o("column.".concat(X),q),i(y,X,q))},C=S.useRef(null),A=S.useCallback(function(Vt){C.current=Vt,e.virtualScrollerContentRef&&e.virtualScrollerContentRef(Vt)},[e]),R=S.useRef(null),x=S.useRef(null),k=S.useRef(null),D=S.useRef(null),F=S.useRef(null),$=S.useRef(null),U=S.useRef(!1),G=S.useRef(!1),Y=S.useRef(null),Q=S.useRef(null),me=e.rowGroupMode&&e.rowGroupMode==="subheader",ne=e.selectionMode==="radiobutton",Ee=e.selectionMode==="checkbox",ce=e.selectionModeInColumn==="single",_e=e.selectionModeInColumn==="multiple",Ne=function(X,q){return At()?(X.rowIndex===q.rowIndex||X.rowData===q.rowData)&&(X.field===q.field||X.cellIndex===q.cellIndex):e.compareSelectionBy==="equals"?X===q:pe.equals(X,q,e.dataKey)},oe=function(){return e.selectionMode||e.selectionModeInColumn!==null||e.columns&&e.columns.some(function(X){return X&&!!Jt(X,"selectionMode")})},Se=function(){return e.selectionMode==="single"&&!_e||!ne&&ce},re=function(){return e.selectionMode==="multiple"&&!ce||_e},we=function(){return ne&&ce},Ae=function(){return Ee&&_e},Pe=function(X){return X&&e.selection?e.selection instanceof Array?pr(e.selection,X)>-1:Ne(X,e.selection):!1},Oe=function(X){return X&&e.contextMenuSelection?Ne(X,e.contextMenuSelection):!1},Ke=function(X){return e.isDataSelectable?e.isDataSelectable(X):!0},St=function(X){if(X&&e.expandedRows){if(me&&e.expandableRowGroups)return st(X);if(e.dataKey){var q=pe.resolveFieldData(X,e.dataKey),he=!1;return e.expandedRows&&(Array.isArray(e.expandedRows)?he=e.expandedRows.some(function(ze){return pe.resolveFieldData(ze,e.dataKey)===q}):he=e.expandedRows[q]!==void 0),he}return pr(e.expandedRows,X)!==-1}return!1},st=function(X){return e.dataKey===e.groupRowsBy?Object.keys(e.expandedRows).some(function(q){return pe.equals(q,pe.resolveFieldData(X,e.dataKey))}):e.expandedRows.some(function(q){return pe.equals(q,X,e.groupRowsBy)})},yt=function(X){return e.editMode==="row"&&X&&e.editingRows?e.dataKey?e.editingRows?e.editingRows[pe.resolveFieldData(X,e.dataKey)]!==void 0:!1:pr(e.editingRows,X)!==-1:!1},$e=function(X){return e.dragSelection&&re()&&!X.originalEvent.shiftKey},ot=function(X){return!At()&&$e(X)||e.reorderableRows},it=function(X){return At()&&$e(X)},Ie=function(X){return!le.isClickable(X.originalEvent.target)},tt=S.useRef(e.metaKeySelection);S.useEffect(function(){tt.current=e.metaKeySelection},[e.metaKeySelection]);var mt=function(X){return!U.current&&(!tt.current||tt.current&&(X.originalEvent.metaKey||X.originalEvent.ctrlKey))},Wt=function(X){return re()&&X.originalEvent.shiftKey&&k.current!==null},cr=function(){return(e.selectionMode||e.selectionModeInColumn)&&!we()&&!Ae()},At=function(){return e.cellSelection&&!ce&&!_e},Ve=function(){return e.columns?e.columns.length:0},Jt=function(X,q){return zo.getCProp(X,q)},ar=function(X,q){return q=q||e.virtualScrollerOptions,q?q[X]:null},pr=function(X,q){return(X||[]).findIndex(function(he){return Ne(q,he)})},gr=function(){return e.scrollable?{top:d.top}:null},en=function(X,q){return e.dataKey?pe.resolveFieldData(X,e.dataKey):q},Wr=function(X,q,he){var ze=pe.resolveFieldData(q,e.groupRowsBy),lt=X[he-1];if(lt){var ct=pe.resolveFieldData(lt,e.groupRowsBy);return!pe.deepEquals(ze,ct)}return!0},Xr=function(X,q,he,ze){if(e.expandableRowGroups&&!ze)return!1;var lt=pe.resolveFieldData(q,e.groupRowsBy),ct=X[he+1];if(ct){var yr=pe.resolveFieldData(ct,e.groupRowsBy);return!pe.deepEquals(lt,yr)}return!0},Pr=function(){C.current.style.top=le.getOuterHeight(C.current.previousElementSibling)+"px"},Br=function(){var X=le.getOuterHeight(C.current.previousElementSibling),q=X+"px";d.top!==q&&p({top:q})},Hr=S.useRef(e.selection);S.useEffect(function(){Hr.current=e.selection},[e.selection]);var jr=function(X){var q=X.originalEvent,he=X.data,ze=X.index,lt=X.toggleable,ct=X.type;if(Ke({data:he,index:ze})){var yr=Pe(he),fr=Hr.current||[],Ir=fr;yr?lt&&(Ir=null,Pt({originalEvent:q,data:he,type:ct})):(Ir=he,at({originalEvent:q,data:he,type:ct})),Rt(q,!0),e.onSelectionChange&&Ir!==fr&&e.onSelectionChange({originalEvent:q,value:Ir,type:ct})}},zr=function(X){var q=X.originalEvent,he=X.data,ze=X.index,lt=X.toggleable,ct=X.type;if(Ke({data:he,index:ze})){var yr=Pe(he),fr=Hr.current||[],Ir=fr;if(yr)if(lt){var Pn=pr(fr,he);Ir=fr.filter(function(so,xn){return xn!==Pn}),Pt({originalEvent:q,data:he,type:ct})}else fr.length&&(fr.forEach(function(so){return Pt({originalEvent:q,data:so,type:ct})}),Ir=[he],at({originalEvent:q,data:he,type:ct}));else Ir=pe.isObject(fr)?[fr]:fr,Ir=lt&&re()?[].concat(Xo(Ir),[he]):[he],at({originalEvent:q,data:he,type:ct});e.onSelectionChange&&Ir!==fr&&e.onSelectionChange({originalEvent:q,value:Ir,type:ct})}},Jr=function(X,q){le.clearSelection(),F.current=At()?X.rowIndex:X.index;var he=In(X);e.onSelectionChange&&he!==e.selection&&e.onSelectionChange({originalEvent:X.originalEvent,value:he,type:q}),k.current=F.current,D.current=X.cellIndex},In=function(X){var q,he,ze=At();return F.current>k.current?(q=k.current,he=F.current):F.current<k.current?(q=F.current,he=k.current):q=he=F.current,ze?vr(X,q,he):tn(X,q,he)},tn=function(X,q,he){for(var ze=[],lt=q;lt<=he;lt++){var ct=e.processedData[lt];Ke({data:ct,index:lt})&&(ze.push(ct),at({originalEvent:X.originalEvent,data:ct,type:"row"}))}return ze},vr=function(X,q,he){var ze,lt,ct=X.cellIndex;ct>D.current?(ze=D.current,lt=ct):ct<D.current?(ze=ct,lt=D.current):ze=lt=ct;for(var yr=e.value,fr=[],Ir=q;Ir<=he;Ir++)for(var Pn=yr[Ir],so=e.columns,xn=e.paginator?Ir+e.first:Ir,xr=ze;xr<=lt;xr++){var An=Jt(so[xr],"field"),lo=pe.resolveFieldData(Pn,An),Dn={value:lo,field:An,rowData:Pn,rowIndex:xn,cellIndex:xr,selected:!0};Ke({data:Dn,index:Ir})&&(fr.push(Dn),at({originalEvent:X.originalEvent,data:Dn,type:"cell"}))}return fr},at=function(X){At()?e.onCellSelect&&e.onCellSelect(ss(ss({originalEvent:X.originalEvent},X.data),{},{type:X.type})):e.onRowSelect&&e.onRowSelect(X)},Pt=function(X){At()?e.onCellUnselect&&e.onCellUnselect(ss(ss({originalEvent:X.originalEvent},X.data),{},{type:X.type})):e.onRowUnselect&&e.onRowUnselect(X)},pt=function(X){e.dragSelection&&!R.current&&(R.current=document.createElement("div"),R.current.setAttribute("p-datatable-drag-selection-helper","true"),!s()&&le.addClass(R.current,"p-datatable-drag-selection-helper"),x.current={x:X.clientX,y:X.clientY},R.current.style.top="".concat(X.pageY,"px"),R.current.style.left="".concat(X.pageX,"px"),tr())},Rt=function(X,q){var he=X.currentTarget;if(!At()&&e.selectionAutoFocus){if(_e){var ze=le.findSingle(he,'td[data-p-selection-column="true"] [data-pc-section="checkbox"]');ze&&ze.focus()}else if(ce){var lt=le.findSingle(he,'td[data-p-selection-column="true"] input[type="radio"]');lt&&lt.focus()}}!q&&he&&he.focus()},rt=function(X,q){var he=X.currentTarget,ze=le.getAttribute(he,q==="cell"?"data-p-selectable-cell":"data-p-selectable-row")===!0;if(ze){var lt=q==="cell"?"tr > td":"tr",ct=le.findSingle(C.current,"".concat(lt,'[tabindex="').concat(e.tabIndex,'"]'));ct&&he&&(ct.tabIndex=-1,he.tabIndex=e.tabIndex)}},ge=function(X){if(!(X.defaultPrevented||X.originalEvent&&X.originalEvent.defaultPrevented||At()||!Ie(X))){if(e.onRowClick&&e.onRowClick(X),cr()){if(Wt(X))Jr(X,"row");else{var q=ce||_e||mt(X);k.current=X.index,F.current=X.index,$.current=e.first,Se()?jr(ss(ss({},X),{},{toggleable:q,type:"row"})):zr(ss(ss({},X),{},{toggleable:q,type:"row"}))}rt(X.originalEvent,"row")}else Rt(X.originalEvent);U.current=!1}},be=function(X){var q=X.originalEvent;le.isClickable(q.target)||e.onRowDoubleClick&&e.onRowDoubleClick(X)},We=function(X){var q=X.originalEvent;le.isClickable(q.target)||e.onRowPointerDown&&e.onRowPointerDown(X)},Gt=function(X){var q=X.originalEvent;le.isClickable(q.target)||e.onRowPointerUp&&e.onRowPointerUp(X)},Qt=function(X){if(e.onContextMenu||e.onContextMenuSelectionChange){var q=pe.isNotEmpty(e.selection),he=X.data;q&&le.clearSelection(),e.onContextMenuSelectionChange&&e.onContextMenuSelectionChange({originalEvent:X.originalEvent,value:he,index:X.index}),e.onContextMenu&&e.onContextMenu({originalEvent:X.originalEvent,data:he,index:X.index}),X.originalEvent.preventDefault()}},Zt=function(X){e.onRowMouseEnter&&e.onRowMouseEnter(X)},Cr=function(X){e.onRowMouseLeave&&e.onRowMouseLeave(X)},zt=function(){U.current=!0},Qe=function(X){var q=X.originalEvent,he=s()?le.getAttribute(q.target,"data-pc-section")==="rowreordericon"||q.target.closest('[data-pc-section="rowreordericon"]'):le.hasClass(q.target,"p-datatable-reorderablerow-handle")||q.target.closest(".p-datatable-reorderablerow-handle");q.currentTarget.draggable=he,ot(X)&&(pt(q),k.current=X.index,F.current=X.index,$.current=e.first)},Et=function(X){var q=X.index===k.current;ot(X)&&!q&&Jr(X,"row")},Ht=S.useRef(e.expandedRows);S.useEffect(function(){Ht.current=e.expandedRows},[e.expandedRows]);var ur=function(X){var q,he=e.dataKey,ze=e.groupRowsBy?he===e.groupRowsBy:!!he;if(ze){var lt=String(pe.resolveFieldData(X.data,he));q=Ht.current?ss({},Ht.current):{},q[lt]!=null?(delete q[lt],e.onRowCollapse&&e.onRowCollapse({originalEvent:X,data:X.data})):(q[lt]=!0,e.onRowExpand&&e.onRowExpand({originalEvent:X,data:X.data}))}else{var ct=pr(Ht.current,X.data);q=Ht.current?Xo(Ht.current):[],ct!==-1?(q=q.filter(function(yr,fr){return fr!==ct}),e.onRowCollapse&&e.onRowCollapse({originalEvent:X,data:X.data})):(q.push(X.data),e.onRowExpand&&e.onRowExpand({originalEvent:X,data:X.data}))}e.onRowToggle&&e.onRowToggle({data:q})},Dr=function(X){var q=X.originalEvent,he=X.index;ot(X)&&(G.current=!0,Y.current=he,q.dataTransfer.setData("text","b"))},pn=function(X){var q=X.originalEvent,he=X.index;if(G.current){if(Y.current!==he){var ze=q.currentTarget,lt=le.getOffset(ze).top+le.getWindowScrollTop(),ct=q.pageY+window.scrollY,yr=lt+le.getOuterHeight(ze)/2,fr=ze.previousElementSibling;ct<yr?(ze.setAttribute("data-p-datatable-dragpoint-bottom","false"),!s()&&le.removeClass(ze,"p-datatable-dragpoint-bottom"),Q.current=he,fr?(fr.setAttribute("data-p-datatable-dragpoint-bottom","true"),!s()&&le.addClass(fr,"p-datatable-dragpoint-bottom")):(ze.setAttribute("data-p-datatable-dragpoint-top","true"),!s()&&le.addClass(ze,"p-datatable-dragpoint-top"))):(fr?(fr.setAttribute("data-p-datatable-dragpoint-bottom","false"),!s()&&le.removeClass(fr,"p-datatable-dragpoint-bottom")):(ze.setAttribute("data-p-datatable-dragpoint-top","true"),!s()&&le.addClass(ze,"p-datatable-dragpoint-top")),he+1!==Y.current&&(Q.current=he+1),ze.setAttribute("data-p-datatable-dragpoint-bottom","true"),!s()&&le.addClass(ze,"p-datatable-dragpoint-bottom"))}q.preventDefault()}},Ln=function(X){var q=X.originalEvent,he=q.currentTarget,ze=he.previousElementSibling;ze&&(ze.setAttribute("data-p-datatable-dragpoint-bottom","false"),!s()&&le.removeClass(ze,"p-datatable-dragpoint-bottom")),he.setAttribute("data-p-datatable-dragpoint-bottom","false"),!s()&&le.removeClass(he,"p-datatable-dragpoint-bottom"),he.setAttribute("data-p-datatable-dragpoint-top","false"),!s()&&le.removeClass(he,"p-datatable-dragpoint-top")},Qn=function(X){var q=X.originalEvent;G.current=!1,Y.current=null,Q.current=null,q.currentTarget.draggable=!1},gn=function(X){var q=X.originalEvent;if(Q.current!=null){var he=Y.current>Q.current?Q.current:Q.current===0?0:Q.current-1,ze=Xo(e.tableProps.value);pe.reorderArray(ze,Y.current,he),e.onRowReorder&&e.onRowReorder({originalEvent:q,value:ze,dragIndex:Y.current,dropIndex:he})}Ln(X),Qn(X),q.preventDefault()},Re=function(X){jr(ss(ss({},X),{},{toggleable:!0,type:"radio"}))},Xe=function(X){zr(ss(ss({},X),{},{toggleable:!0,type:"checkbox"}))},Ce=function(X){var q=x.current,he=q.x,ze=q.y,lt=X.clientX-he,ct=X.clientY-ze;ct<0&&(R.current.style.top="".concat(X.pageY+5,"px")),lt<0&&(R.current.style.left="".concat(X.pageX+5,"px")),R.current.style.height="".concat(Math.abs(ct),"px"),R.current.style.width="".concat(Math.abs(lt),"px"),X.preventDefault()},Te=function(){R.current&&(R.current.remove(),R.current=null),document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",Te)},et=function(X){if(Ie(X)){if(e.onCellClick&&e.onCellClick(X),At()){if(Wt(X))Jr(X,"cell");else{var q=mt(X),he=X.originalEvent,ze=OR(X,BZ);k.current=X.rowIndex,F.current=X.rowIndex,$.current=e.first,D.current=X.cellIndex,Se()?jr({originalEvent:he,data:ze,index:X.rowIndex,toggleable:q,type:"cell"}):zr({originalEvent:he,data:ze,index:X.rowIndex,toggleable:q,type:"cell"})}rt(X.originalEvent,"cell")}U.current=!1}},ht=function(X){it(X)&&(pt(X.originalEvent),k.current=X.rowIndex,F.current=X.rowIndex,$.current=e.first,D.current=X.cellIndex)},Ft=function(X){var q=X.rowIndex===k.current&&X.cellIndex===D.current;it(X)&&!q&&Jr(X,"cell")},tr=function(){document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",Te),document.body.appendChild(R.current)},Lt=function(){Te()};S.useEffect(function(){e.frozenRow&&Pr(),e.scrollable&&e.rowGroupMode==="subheader"&&Br()}),hn(function(){e.paginator&&re()&&(k.current=null)},[e.first]),Ci(function(){e.dragSelection&&Lt()});var Je=function(){if(!e.loading){var X=Ve(),q=pe.getJSXElement(e.emptyMessage,{props:e.tableProps,frozen:e.frozenRow})||va("emptyMessage"),he=r({className:a("emptyMessage"),role:"row"},o("emptyMessage")),ze=r({colSpan:X,role:"cell"},v("root"),v("bodyCell"));return S.createElement("tr",he,S.createElement("td",ze,q))}return null},vt=function(X,q,he,ze){if(me&&Wr(e.value,X,q-e.first)){var lt=gr(),ct=e.expandableRowGroups&&S.createElement(wF,{hostName:e.hostName,onClick:ur,rowData:X,expanded:he,expandedRowIcon:e.expandedRowIcon,collapsedRowIcon:e.collapsedRowIcon,ptCallbacks:e.ptCallbacks,metaData:e.metaData,unstyled:s()}),yr={index:q,props:e.tableProps,customRendering:!1},fr=pe.getJSXElement(e.rowGroupHeaderTemplate,X,yr);if(!yr.customRendering){var Ir=r({colSpan:ze},v("root"),v("bodyCell")),Pn=r({className:a("rowGroupHeaderName")},o("rowGroupHeaderName"));fr=S.createElement("td",Ir,ct,S.createElement("span",Pn,fr))}var so=r({className:a("rowGroupHeader"),style:lt,role:"row"},o("rowGroupHeader"));return S.createElement("tr",so,fr)}return null},jt=function(X,q,he,ze){if(!e.expandableRowGroups||ze){var lt=oe()?Pe(X):!1,ct=Oe(X),yr=cr(),fr=At(),Ir=yt(X);return S.createElement(CF,{hostName:e.hostName,allowCellSelection:fr,allowRowSelection:yr,cellMemo:e.cellMemo,cellMemoProps:e.cellMemoProps,cellMemoPropsDepth:e.cellMemoPropsDepth,cellClassName:e.cellClassName,checkIcon:e.checkIcon,collapsedRowIcon:e.collapsedRowIcon,columns:e.columns,colsProps:b,compareSelectionBy:e.compareSelectionBy,contextMenuSelected:ct,dataKey:e.dataKey,editMode:e.editMode,editing:Ir,editingMeta:e.editingMeta,editingRows:e.editingRows,expanded:ze,expandedRowIcon:e.expandedRowIcon,frozenRow:e.frozenRow,groupRowsBy:e.groupRowsBy,index:he,isSelectable:Ke,onCellClick:et,onCellMouseDown:ht,onCellMouseUp:Ft,onCheckboxChange:Xe,onEditingMetaChange:e.onEditingMetaChange,onRadioChange:Re,onRowClick:ge,onRowDoubleClick:be,onRowPointerDown:We,onRowPointerUp:Gt,onRowDragEnd:Qn,onRowDragLeave:Ln,onRowDragOver:pn,onRowDragStart:Dr,onRowDrop:gn,onRowEditCancel:e.onRowEditCancel,onRowEditChange:e.onRowEditChange,onRowEditComplete:e.onRowEditComplete,onRowEditInit:e.onRowEditInit,onRowEditSave:e.onRowEditSave,onRowMouseDown:Qe,onRowMouseEnter:Zt,onRowMouseLeave:Cr,onRowMouseUp:Et,onRowRightClick:Qt,onRowToggle:ur,onRowTouchEnd:zt,responsiveLayout:e.responsiveLayout,rowClassName:e.rowClassName,rowData:X,rowEditValidator:e.rowEditValidator,rowEditorCancelIcon:e.rowEditorCancelIcon,rowEditorInitIcon:e.rowEditorInitIcon,rowEditorSaveIcon:e.rowEditorSaveIcon,rowGroupMode:e.rowGroupMode,rowIndex:q,selectOnEdit:e.selectOnEdit,selected:lt,selection:e.selection,selectionMode:e.selectionMode,selectionModeInColumn:e.selectionModeInColumn,showRowReorderElement:e.showRowReorderElement,showSelectionElement:e.showSelectionElement,tabIndex:e.tabIndex,tableProps:e.tableProps,tableSelector:e.tableSelector,value:e.value,virtualScrollerOptions:e.virtualScrollerOptions,ptCallbacks:e.ptCallbacks,metaData:e.metaData,unstyled:s()})}},nr=function(X,q,he,ze){if(he&&!(me&&e.expandableRowGroups)){var lt="".concat(e.tableSelector,"_content_").concat(q,"_expanded"),ct={index:q,customRendering:!1},yr=pe.getJSXElement(e.rowExpansionTemplate,X,ct);if(!ct.customRendering){var fr=r({colSpan:ze,role:"cell"},v("root"),v("bodyCell"));yr=S.createElement("td",fr,yr)}var Ir=r({id:lt,className:a("rowExpansion"),role:"row"},o("rowExpansion"));return S.createElement("tr",Ir,yr)}return null},Kt=function(X,q,he,ze){if(me&&Xr(e.value,X,q-e.first,he)){var lt=pe.getJSXElement(e.rowGroupFooterTemplate,X,{index:q,colSpan:ze,props:e.tableProps}),ct=r({className:a("rowGroupFooter"),role:"row"},o("rowGroupFooter"));return S.createElement("tr",ct,lt)}return null},sr=function(){return e.value&&e.value.map(function(X,q){var he=ar("getItemOptions")?ar("getItemOptions")(q).index:e.first+q,ze=en(X,he),lt=St(X),ct=Ve(),yr=vt(X,he,lt,ct),fr=jt(X,he,q,lt),Ir=nr(X,he,lt,ct),Pn=Kt(X,he,lt,ct);return S.createElement(S.Fragment,{key:ze},yr,fr,Ir,Pn)})},br=e.empty?Je():sr(),Zr=e.className==="p-datatable-virtualscroller-spacer"?"virtualScrollerSpacer":"tbody",Nr=r({style:e.style,className:a(Zr,{className:e.className}),role:" rowgroup"},o(Zr,{hostName:e.hostName}));return S.createElement("tbody",Yn({ref:A},Nr),br)}));$y.displayName="TableBody";var mc=Ar.extend({defaultProps:{__TYPE:"ColumnGroup",children:void 0},getCProp:function(t,r){return pe.getComponentProp(t,r,mc.defaultProps)},getCProps:function(t){return pe.getComponentProps(t,mc.defaultProps)}}),Gm=Ar.extend({defaultProps:{__TYPE:"Row",style:null,className:null,children:void 0},getCProp:function(t,r){return pe.getComponentProp(t,r,Gm.defaultProps)}});function w3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function HZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var IF=S.memo(function(e){var t=S.useState({}),r=Kn(t,2),n=r[0],o=r[1],i=S.useRef(null),a=Vr(),s=function(){return zo.getCProps(e.column)},l=e.ptCallbacks,c=l.ptm,d=l.ptmo,p=l.cx,m=function($){var U=s(),G={props:U,parent:e.metaData,hostName:e.hostName,state:{styleObject:n},context:{index:e.index,size:e.metaData.props.size,showGridlines:e.metaData.props.showGridlines}};return a(c("column.".concat($),{column:G}),c("column.".concat($),G),d(U,$,G))},y=function($){return zo.getCProp(e.column,$)},b=function(){var $=y("footerStyle"),U=y("style");return y("frozen")?Object.assign({},U,$,n):Object.assign({},U,$)},v=function(){if(y("frozen")){var $=HZ({},n),U=y("alignFrozen");if(U==="right"){var G=0,Y=i.current&&i.current.nextElementSibling;Y&&Y.classList.contains("p-frozen-column")&&(G=le.getOuterWidth(Y)+parseFloat(Y.style.right||0)),$.right=G+"px"}else{for(var Q=0,me=i.current&&i.current.previousElementSibling;me;){if(me&&me.classList.contains("p-frozen-column")){Q=le.getOuterWidth(me)+parseFloat(me.style.left||0),i.current.style.left=Q+"px";break}me=me.previousElementSibling}$.left=Q+"px"}var ne=n.left===$.left&&n.right===$.right;!ne&&o($)}};S.useEffect(function(){y("frozen")&&v()});var C=b(),A=y("align"),R=y("colSpan"),x=y("rowSpan"),k=pe.getJSXElement(y("footer"),{props:e.tableProps}),D=a({style:C,className:dt(y("footerClassName"),y("className"),p("footerCell",{getColumnProp:y,align:A})),role:"cell",colSpan:R,rowSpan:x},m("root"),m("footerCell"));return S.createElement("td",Yn({ref:i},D),k)});IF.displayName="FooterCell";var UZ=["unstyled","__TYPE","ptOptions"];function I3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function $Z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var AF=S.memo(function(e){var t=e.ptCallbacks,r=t.ptm,n=t.ptmo,o=t.cx,i=Vr(),a=function(x){return mc.getCProps(x)},s=S.useContext(qr),l=function(){return e.footerColumnGroup?mc.getCProps(e.footerColumnGroup):void 0},c=function(x,k){var D=a(x),F={props:D,parent:e.metaData,hostName:e.hostName};return i(r("row.".concat(k),{row:F}),r("row.".concat(k),F),n(D,k,F))},d=function(x){var k=l(),D={props:l(),parent:e.metaData,hostName:e.hostName};return i(r("columnGroup.".concat(x),{columnGroup:D}),r("columnGroup.".concat(x),D),n(k,x,D))},p=function(){return e.footerColumnGroup?!0:e.columns?e.columns.some(function(x){return x&&m(x,"footer")}):!1},m=function(x,k){return zo.getCProp(x,k)},y=function(x){var k=S.Children.toArray(Gm.getCProp(x,"children"));return b(k)},b=function(x){return S.Children.map(x,function(k,D){var F=k?!m(k,"hidden"):!0,$=k&&(m(k,"columnKey")||m(k,"field"))||D;return F&&S.createElement(IF,{hostName:e.hostName,key:$,tableProps:e.tableProps,column:k,ptCallbacks:e.ptCallbacks,metaData:e.metaData})})},v=function(){if(e.footerColumnGroup){var x=S.Children.toArray(mc.getCProp(e.footerColumnGroup,"children"));return x.map(function(D,F){var $=Gm.getProps(D.props,s),U=$.unstyled;$.__TYPE,$.ptOptions;var G=OR($,UZ),Y=i({role:"row"},U?$Z({unstyled:U},G):G,c(D,"root"));return S.createElement("tr",Yn({},Y,{key:F}),y(D))})}var k=i({role:"row"},r("footerRow",{hostName:e.hostName}));return S.createElement("tr",k,b(e.columns))};if(p()){var C=v(),A=i({className:o("tfoot"),role:"rowgroup"},d("root"),r("tfoot",{hostName:e.hostName}));return S.createElement("tfoot",A,C)}return null});AF.displayName="TableFooter";function WZ(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function zZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ha=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",NOT_IN:"notIn",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"}),ja=WZ(function e(){zZ(this,e)});Wn(ja,"ripple",!1);Wn(ja,"inputStyle","outlined");Wn(ja,"locale","en");Wn(ja,"appendTo",null);Wn(ja,"cssTransition",!0);Wn(ja,"autoZIndex",!0);Wn(ja,"hideOverlaysOnDocumentScrolling",!1);Wn(ja,"nonce",null);Wn(ja,"nullSortOrder",1);Wn(ja,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200});Wn(ja,"pt",void 0);Wn(ja,"filterMatchModeOptions",{text:[ha.STARTS_WITH,ha.CONTAINS,ha.NOT_CONTAINS,ha.ENDS_WITH,ha.EQUALS,ha.NOT_EQUALS],numeric:[ha.EQUALS,ha.NOT_EQUALS,ha.LESS_THAN,ha.LESS_THAN_OR_EQUAL_TO,ha.GREATER_THAN,ha.GREATER_THAN_OR_EQUAL_TO],date:[ha.DATE_IS,ha.DATE_IS_NOT,ha.DATE_BEFORE,ha.DATE_AFTER]});Wn(ja,"changeTheme",function(e,t,r,n){var o,i=document.getElementById(r);if(!i)throw Error("Element with id ".concat(r," not found."));var a=i.getAttribute("href").replace(e,t),s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("id",r),s.setAttribute("href",a),s.addEventListener("load",function(){n&&n()}),(o=i.parentNode)===null||o===void 0||o.replaceChild(s,i)});var KZ={en:{accept:"Yes",addRule:"Add Rule",am:"AM",apply:"Apply",cancel:"Cancel",choose:"Choose",chooseDate:"Choose Date",chooseMonth:"Choose Month",chooseYear:"Choose Year",clear:"Clear",completed:"Completed",contains:"Contains",custom:"Custom",dateAfter:"Date is after",dateBefore:"Date is before",dateFormat:"mm/dd/yy",dateIs:"Date is",dateIsNot:"Date is not",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],emptyFilterMessage:"No results found",emptyMessage:"No available options",emptySearchMessage:"No results found",emptySelectionMessage:"No selected item",endsWith:"Ends with",equals:"Equals",fileChosenMessage:"{0} files",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],filter:"Filter",firstDayOfWeek:0,gt:"Greater than",gte:"Greater than or equal to",lt:"Less than",lte:"Less than or equal to",matchAll:"Match All",matchAny:"Match Any",medium:"Medium",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],nextDecade:"Next Decade",nextHour:"Next Hour",nextMinute:"Next Minute",nextMonth:"Next Month",nextSecond:"Next Second",nextYear:"Next Year",noFileChosenMessage:"No file chosen",noFilter:"No Filter",notContains:"Not contains",notEquals:"Not equals",now:"Now",passwordPrompt:"Enter a password",pending:"Pending",pm:"PM",prevDecade:"Previous Decade",prevHour:"Previous Hour",prevMinute:"Previous Minute",prevMonth:"Previous Month",prevSecond:"Previous Second",prevYear:"Previous Year",reject:"No",removeRule:"Remove Rule",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",showMonthAfterYear:!1,startsWith:"Starts with",strong:"Strong",today:"Today",upload:"Upload",weak:"Weak",weekHeader:"Wk",aria:{cancelEdit:"Cancel Edit",close:"Close",collapseLabel:"Collapse",collapseRow:"Row Collapsed",editRow:"Edit Row",expandLabel:"Expand",expandRow:"Row Expanded",falseLabel:"False",filterConstraint:"Filter Constraint",filterOperator:"Filter Operator",firstPageLabel:"First Page",gridView:"Grid View",hideFilterMenu:"Hide Filter Menu",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",lastPageLabel:"Last Page",listLabel:"Option List",listView:"List View",moveAllToSource:"Move All to Source",moveAllToTarget:"Move All to Target",moveBottom:"Move Bottom",moveDown:"Move Down",moveToSource:"Move to Source",moveToTarget:"Move to Target",moveTop:"Move Top",moveUp:"Move Up",navigation:"Navigation",next:"Next",nextPageLabel:"Next Page",nullLabel:"Not Selected",otpLabel:"Please enter one time password character {0}",pageLabel:"Page {page}",passwordHide:"Hide Password",passwordShow:"Show Password",previous:"Previous",prevPageLabel:"Previous Page",removeLabel:"Remove",rotateLeft:"Rotate Left",rotateRight:"Rotate Right",rowsPerPageLabel:"Rows per page",saveEdit:"Save Edit",scrollTop:"Scroll Top",selectAll:"All items selected",selectLabel:"Select",selectRow:"Row Selected",showFilterMenu:"Show Filter Menu",slide:"Slide",slideNumber:"{slideNumber}",star:"1 star",stars:"{star} stars",trueLabel:"True",unselectAll:"All items unselected",unselectLabel:"Unselect",unselectRow:"Row Unselected",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out"}}};function Hp(e,t){if(e.includes("__proto__")||e.includes("prototype"))throw new Error("Unsafe ariaKey detected");var r=ja.locale;try{var n=GZ(r).aria[e];if(n)for(var o in t)t.hasOwnProperty(o)&&(n=n.replace("{".concat(o,"}"),t[o]));return n}catch{throw new Error("The ".concat(e," option is not found in the current locale('").concat(r,"')."))}}function GZ(e){var t=e||ja.locale;if(t.includes("__proto__")||t.includes("prototype"))throw new Error("Unsafe locale detected");return KZ[t]}var qZ="",Yh=Ar.extend({defaultProps:{__TYPE:"FocusTrap",children:void 0},css:{styles:qZ},getProps:function(t){return pe.getMergedProps(t,Yh.defaultProps)},getOtherProps:function(t){return pe.getDiffProps(t,Yh.defaultProps)}});function A3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function JZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var YZ=se.memo(se.forwardRef(function(e,t){var r=se.useRef(null),n=se.useRef(null),o=se.useRef(null),i=se.useContext(qr),a=Yh.getProps(e,i),s={props:a};pc(Yh.css.styles,{name:"focustrap"});var l=Yh.setMetaData(JZ({},s));l.ptm,se.useImperativeHandle(t,function(){return{props:a,getInk:function(){return n.current},getTarget:function(){return r.current}}}),Go(function(){a.disabled||(r.current=c(),d(r.current))});var c=function(){return n.current&&n.current.parentElement},d=function(C){var A=a||{},R=A.autoFocusSelector,x=R===void 0?"":R,k=A.firstFocusableSelector,D=k===void 0?"":k,F=A.autoFocus,$=F===void 0?!1:F,U="".concat(p(x)),G="[autofocus]".concat(U,", [data-pc-autofocus='true']").concat(U),Y=le.getFirstFocusableElement(C,G);$&&!Y&&(Y=le.getFirstFocusableElement(C,p(D))),le.focus(Y)},p=function(C){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(C??"")},m=function(C){var A,R=C.currentTarget,x=C.relatedTarget,k=x===R.$_pfocustrap_lasthiddenfocusableelement||!((A=r.current)!==null&&A!==void 0&&A.contains(x))?le.getFirstFocusableElement(R.parentElement,p(R.$_pfocustrap_focusableselector)):R.$_pfocustrap_lasthiddenfocusableelement;le.focus(k)},y=function(C){var A,R=C.currentTarget,x=C.relatedTarget,k=x===R.$_pfocustrap_firsthiddenfocusableelement||!((A=r.current)!==null&&A!==void 0&&A.contains(x))?le.getLastFocusableElement(R.parentElement,p(R.$_pfocustrap_focusableselector)):R.$_pfocustrap_firsthiddenfocusableelement;le.focus(k)},b=function(){var C=a||{},A=C.tabIndex,R=A===void 0?0:A,x=function($,U,G){return se.createElement("span",{ref:$,className:"p-hidden-accessible p-hidden-focusable",tabIndex:R,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:U,"data-pc-section":G})},k=x(n,m,"firstfocusableelement"),D=x(o,y,"lastfocusableelement");return n.current&&o.current&&(n.current.$_pfocustrap_lasthiddenfocusableelement=o.current,o.current.$_pfocustrap_firsthiddenfocusableelement=n.current),se.createElement(se.Fragment,null,k,a.children,D)};return b()})),QZ=YZ;function R3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ys(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var PR=S.memo(function(e){var t=S.useState(!1),r=Kn(t,2),n=r[0],o=r[1],i=S.useRef(null),a=S.useRef(null),s=S.useRef(null),l=S.useRef(!1),c=S.useRef(null),d=Vr(),p=function(Te){return zo.getCProp(e.column,Te)},m=function(){return zo.getCProps(e.column)},y=S.useContext(qr),b=e.ptCallbacks,v=b.ptm,C=b.ptmo,A=b.cx,R=function(Te,et){var ht=m(),Ft=Ys({props:ht,parent:e.metaData,hostName:e.hostName,state:{overlayVisible:n}},et);return d(v("column.".concat(Te),{column:Ft}),v("column.".concat(Te),Ft),C(ht,Te,Ft))},x=p("filterField")||p("field"),k=e.filters[x],D=e.filtersStore&&e.filtersStore[x],F=gR({target:s,overlay:i,listener:function(Te,et){var ht=et.type,Ft=et.valid;Ft&&(ht==="outside"?(!l.current&&!Ae(Te.target)&&ar(),l.current=!1):y.hideOverlaysOnDocumentScrolling?ar():le.isDocument(Te.target)||le.alignOverlay(i.current,s.current,y&&y.appendTo||Ur.appendTo,!1))},when:n}),$=Kn(F,2),U=$[0],G=$[1],Y=function(){return!D||!k?!1:D.operator?!me(k.constraints[0].value):!me(k.value)},Q=function(){return k&&!me(k.value)},me=function(Te){return pe.isEmpty(Te)},ne=function(Te){return k&&k.matchMode===Te},Ee=function(){return p("filterMatchModeOptions")||y&&y.filterMatchModeOptions[Oe()].map(function(Te){return{label:va(Te),value:Te}})||Ur.filterMatchModeOptions[Oe()].map(function(Te){return{label:va(Te),value:Te}})},ce=function(){return p("showFilterMenu")&&(e.display==="row"?p("dataType")!=="boolean":!0)},_e=function(){return p("showClearButton")&&e.display==="row"},Ne=function(){return p("dataType")!=="boolean"&&p("showFilterMatchModes")&&Ee()&&p("showFilterMenuOptions")},oe=function(){return p("showFilterOperator")&&k&&k.operator&&p("showFilterMenuOptions")},Se=function(){return Hr().length>1},re=function(){return p("showAddButton")&&k&&k.operator&&Hr()&&Hr().length<p("maxConstraints")&&p("showFilterMenuOptions")},we=function(Te){return!Ae(Te)&&i.current&&!(i.current.isSameNode(Te)||i.current.contains(Te))},Ae=function(Te){return s.current&&(s.current.isSameNode(Te)||s.current.contains(Te))},Pe=function(){if(D)return D.operator?{matchMode:D.constraints[0].matchMode,operator:D.operator}:{matchMode:D.matchMode}},Oe=function(){var Te=p("dataType"),et=p("filterMatchMode"),ht=function(tr){return y&&y.filterMatchModeOptions[tr].some(function(Lt){return Lt===et})||Ur.filterMatchModeOptions[tr].some(function(Lt){return Lt===et})};return et==="custom"&&!ht(Te)?(y&&y.filterMatchModeOptions[Te].push(En.CUSTOM)||Ur.filterMatchModeOptions[Te].push(En.CUSTOM),Te):et&&Object.keys(y&&y.filterMatchModeOptions||Ur.filterMatchModeOptions).find(function(Ft){return ht(Ft)})||Te},Ke=function(){var Te=p("onFilterClear"),et=Pe(),ht=Ys({},e.filters);ht[x].operator?(ht[x].constraints.splice(1),ht[x].operator=et.operator,ht[x].constraints[0]={value:null,matchMode:et.matchMode}):(ht[x].value=null,ht[x].matchMode=et?et.matchMode:ht[x].matchMode),Te&&Te(),e.onFilterChange(ht),e.onFilterApply(),ar()},St=function(){var Te=p("onFilterApplyClick");Te&&Te({field:x,constraints:k}),e.onFilterApply(),ar()},st=function(){o(function(Te){return!Te})},yt=function(Te){switch(Te.key){case"Escape":case"Tab":ar();break;case"ArrowDown":if(n){var et=le.getFirstFocusableElement(i.current);et&&et.focus(),Te.preventDefault()}else Te.altKey&&(o(!0),Te.preventDefault());break}},$e=function(Te){Te.key==="Escape"&&(ar(),s.current&&s.current.focus())},ot=function(Te,et){var ht=Ys({},e.filters),Ft=Te.target.value,tr=ht[x];e.display==="menu"&&pe.isNotEmpty(tr.constraints)?tr.constraints[et].value=Ft:tr.value=Ft,e.onFilterChange(ht),(!p("showApplyButton")||e.display==="row")&&e.onFilterApply()},it=function(Te,et){Te.key==="Enter"&&(!p("showApplyButton")||e.display==="menu")&&St()},Ie=function(Te){var et,ht=p("onFilterMatchModeChange"),Ft=Ys({},e.filters);Ft[x].matchMode=Te,ht&&ht({field:x,matchMode:Te}),e.onFilterChange(Ft),e.onFilterApply(),ar(),(et=s.current)===null||et===void 0||et.focus()},tt=function(Te,et,ht){var Ft=Te.target;switch(Te.key){case"ArrowDown":var tr=Ve(Ft);tr&&(Ft.removeAttribute("tabindex"),tr.tabIndex=0,tr.focus()),Te.preventDefault();break;case"ArrowUp":var Lt=Jt(Ft);Lt&&(Ft.removeAttribute("tabindex"),Lt.tabIndex=0,Lt.focus()),Te.preventDefault();break;case"Enter":ht?Ke():Ie(et.value),Te.preventDefault();break}},mt=function(Te){var et=p("onFilterOperatorChange"),ht=Te.value,Ft=Ys({},e.filters);Ft[x].operator=ht,e.onFilterChange(Ft),et&&et({field:x,operator:ht}),p("showApplyButton")||e.onFilterApply()},Wt=function(Te,et){var ht=p("onFilterMatchModeChange"),Ft=Ys({},e.filters),tr=Ft[x];e.display==="menu"&&pe.isNotEmpty(tr.constraints)?tr.constraints[et].matchMode=Te:tr.matchMode=Te,e.onFilterChange(Ft),ht&&ht({field:x,matchMode:Te,index:et}),p("showApplyButton")||e.onFilterApply()},cr=function(){var Te=p("onFilterConstraintAdd"),et=Pe(),ht=Ys({},e.filters),Ft={value:null,matchMode:et.matchMode};ht[x].constraints.push(Ft),Te&&Te({field:x,constraint:Ft}),e.onFilterChange(ht),p("showApplyButton")||e.onFilterApply()},At=function(Te){var et=p("onFilterConstraintRemove"),ht=Ys({},e.filters),Ft=ht[x].constraints.splice(Te,1);et&&et({field:x,constraint:Ft}),e.onFilterChange(ht),p("showApplyButton")||e.onFilterApply()},Ve=function(Te){var et=Te.nextElementSibling;return et?le.getAttribute(et,"data-p-column-filter-separator")===!0?Ve(et):et:Te.parentElement.firstElementChild},Jt=function(Te){var et=Te.previousElementSibling;return et?le.getAttribute(et,"data-p-column-filter-separator")===!0?Jt(et):et:Te.parentElement.lastElementChild},ar=function(){o(!1)},pr=function(Te){l.current=!0,Ps.emit("overlay-click",{originalEvent:Te,target:i.current})},gr=function(){l.current=!0},en=function(){xo.set("overlay",i.current,y&&y.autoZIndex||Ur.autoZIndex,y&&y.zIndex.overlay||Ur.zIndex.overlay),le.addStyles(i.current,{position:"absolute",top:"0",left:"0"}),le.alignOverlay(i.current,s.current,y&&y.appendTo||Ur.appendTo,!1),c.current=function(Te){we(Te.target)||(l.current=!0)},Ps.on("overlay-click",c.current)},Wr=function(){U()},Xr=function(){Br()},Pr=function(){xo.clear(i.current)},Br=function(){G(),Ps.off("overlay-click",c.current),c.current=null,l.current=!1},Hr=function(){return k?k.constraints||[k]:[]},jr=function(){return k.operator},zr=function(){return[{label:va("matchAll"),value:Th.AND},{label:va("matchAny"),value:Th.OR}]},Jr=function(){return va("noFilter")},In=function(){return va("removeRule")},tn=function(){return va("addRule")},vr=function(){return va("clear")},at=function(){return va("apply")},Pt=function(Te){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ht=Ys({},e.filters),Ft=ht[x];e.display==="menu"&&Ft&&Ft.operator?ht[x].constraints[et].value=Te:ht[x].value=Te,e.onFilterChange(ht)},pt=function(){for(var Te=arguments.length,et=new Array(Te),ht=0;ht<Te;ht++)et[ht]=arguments[ht];et&&Pt(et[0],et[1]),e.onFilterApply()};hn(function(){e.display==="menu"&&n&&le.alignOverlay(i.current,s.current,y&&y.appendTo||Ur.appendTo,!1)}),Go(function(){a.current||(a.current=ms())}),Ci(function(){c.current&&(Ps.off("overlay-click",c.current),c.current=null),i.current&&(xo.clear(i.current),Br())});var Rt=function(Te,et){var ht=Te?Te.value:null;return p("filterElement")?pe.getJSXElement(p("filterElement"),{field:x,index:et,filterModel:Te,value:ht,filterApplyCallback:pt,filterCallback:Pt}):S.createElement(W0,{type:p("filterType"),value:ht||"",onChange:function(tr){return ot(tr,et)},onKeyDown:function(tr){return it(tr)},className:"p-column-filter",placeholder:p("filterPlaceholder"),maxLength:p("filterMaxLength"),"aria-label":p("filterPlaceholder"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData}})},rt=function(){if(e.display==="row"){var Te=Rt(k,0),et=d({className:A("filterInput")},R("filterInput"));return S.createElement("div",et,Te)}return null},ge=function(Te,et){return e.display==="menu"?Rt(Te,et):null},be=function(){if(!ce())return null;var Te=d({"aria-hidden":!0},R("filterIcon")),et=e.filterIcon||S.createElement(uF,Te),ht=nn.getJSXIcon(et,Ys({},Te),{props:e}),Ft=Hp(n?"hideFilterMenu":"showFilterMenu"),tr=d({type:"button",className:A("filterMenuButton",{overlayVisibleState:n,hasFilter:Y}),"aria-haspopup":!0,"aria-expanded":n,"aria-label":Ft,"aria-controls":n?a.current:void 0,onClick:function(Je){return st()},onKeyDown:function(Je){return yt(Je)}},R("filterMenuButton",{context:{active:Y()}}));return S.createElement("button",Yn({ref:s},tr),ht,S.createElement(Co,null))},We=function(){if(!_e())return null;var Te=d({"aria-hidden":!0},R("filterClearIcon")),et=e.filterClearIcon||S.createElement(cF,Te),ht=nn.getJSXIcon(et,Ys({},Te),{props:e}),Ft=vr(),tr=d({className:A("headerFilterClearButton",{hasRowFilter:Q}),type:"button",onClick:function(Je){return Ke()},"aria-label":Ft},R("headerFilterClearButton",{context:{hidden:Q()}}));return S.createElement("button",tr,ht,S.createElement(Co,null))},Gt=function(){if(Ne()){var Te=Ee(),et=Jr(),ht=d({className:A("filterSeparator"),"data-p-column-filter-separator":!0},R("filterSeparator")),Ft=d({className:A("filterRowItem",{isRowMatchModeSelected:ne,isShowMatchModes:Ne}),onClick:function(Je){return Ke()},onKeyDown:function(Je){return tt(Je,null,!0)}},R("filterRowItem")),tr=d({className:A("filterRowItems")},R("filterRowItems"));return S.createElement("ul",tr,Te.map(function(Lt,Je){var vt=Lt.value,jt=Lt.label,nr=Je===0?0:null,Kt=d({className:A("filterRowItem",{isRowMatchModeSelected:ne,isShowMatchModes:Ne,value:vt}),onClick:function(){return Ie(vt)},onKeyDown:function(br){return tt(br,Lt)},tabIndex:nr},R("filterRowItem",{context:{highlighted:Lt&&ne(vt)}}));return S.createElement("li",Yn({},Kt,{key:jt}),jt)}),S.createElement("li",ht),S.createElement("li",Ft,et))}return null},Qt=function(){if(oe()){var Te=zr(),et=jr(),ht=d({className:A("filterOperator")},R("filterOperator"));return S.createElement("div",ht,S.createElement(hu,{options:Te,value:et,onChange:mt,className:"p-column-filter-operator-dropdown",pt:R("filterOperatorDropdown"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData},"aria-label":Hp("filterOperator")}))}return null},Zt=function(Te,et){if(Ne()){var ht=Ee();return S.createElement(hu,{options:ht,value:Te.matchMode,onChange:function(tr){return Wt(tr.value,et)},className:"p-column-filter-matchmode-dropdown",pt:R("filterMatchModeDropdown"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData},"aria-label":Hp("filterConstraint")})}return null},Cr=function(Te){if(Se()){var et=In();return S.createElement(Pi,{type:"button",icon:e.filterRemoveIcon||S.createElement(dF,null),className:"p-column-filter-remove-button p-button-text p-button-danger p-button-sm",onClick:function(){return At(Te)},label:et,pt:R("filterRemoveButton"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData}})}return null},zt=function(){var Te=Hr(),et=d({className:A("filterConstraints")},R("filterConstraints")),ht=d({className:A("filterConstraint")},R("filterConstraint"));return S.createElement("div",et,Te.map(function(Ft,tr){var Lt=Zt(Ft,tr),Je=ge(Ft,tr),vt=Cr(tr),jt=d(R("filterRemove"));return S.createElement("div",Yn({},ht,{key:tr}),Lt,Je,S.createElement("div",jt,vt))}))},Qe=function(){if(re()){var Te=tn(),et=d({className:A("filterAddRule")},R("filterAddRule"));return S.createElement("div",et,S.createElement(Pi,{type:"button",label:Te,icon:e.filterAddIcon||S.createElement(TR,null),className:"p-column-filter-add-button p-button-text p-button-sm",onClick:cr,pt:R("filterAddRuleButton"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData}}))}return null},Et=function(){if(p("showClearButton")){if(!p("filterClear")){var Te=vr();return S.createElement(Pi,{type:"button",outlined:!0,size:"small",onClick:Ke,label:Te,pt:R("filterClearButton"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData}})}return pe.getJSXElement(p("filterClear"),{field:x,filterModel:k,filterClearCallback:Ke})}return null},Ht=function(){if(p("showApplyButton")){if(!p("filterApply")){var Te=at();return S.createElement(Pi,{type:"button",size:"small",onClick:St,label:Te,pt:R("filterApplyButton"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData}})}return pe.getJSXElement(p("filterApply"),{field:x,filterModel:k,filterApplyCallback:St})}return null},ur=function(){var Te=Et(),et=Ht(),ht=d({className:A("filterButtonBar")},R("filterButtonBar"));return S.createElement("div",ht,Te,et)},Dr=function(){var Te=Qt(),et=zt(),ht=Qe(),Ft=ur();return S.createElement(S.Fragment,null,Te,et,ht,Ft)},pn=function(){var Te=p("filterMenuStyle"),et=pe.getJSXElement(p("filterHeader"),{field:x,filterModel:k,filterApplyCallback:pt}),ht=pe.getJSXElement(p("filterFooter"),{field:x,filterModel:k,filterApplyCallback:pt}),Ft=e.display==="row"?Gt():Dr(),tr=d({style:Te,className:A("filterOverlay",{columnFilterProps:e,context:y,getColumnProp:p}),onKeyDown:function(vt){return $e(vt)},onClick:function(vt){return pr(vt)},onMouseDown:function(vt){return gr()},id:a.current,"aria-modal":n,role:"dialog"},R("filterOverlay")),Lt=d({classNames:A("transition"),in:n,timeout:{enter:120,exit:100},unmountOnExit:!0,onEnter:en,onEntered:Wr,onExit:Xr,onExited:Pr},R("transition"));return S.createElement(vu,null,S.createElement(Dl,Yn({nodeRef:i},Lt),S.createElement("div",Yn({ref:i},tr),S.createElement(QZ,{autoFocus:!0},et,Ft,ht))))},Ln=rt(),Qn=be(),gn=We(),Re=pn(),Xe=d({className:A("columnFilter",{columnFilterProps:e})},R("columnFilter"));return S.createElement("div",Xe,Ln,Qn,gn,Re)});PR.displayName="ColumnFilter";function T3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function XZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var xR=S.memo(function(e){var t=Vr(),r=function(){return zo.getCProps(e.column)},n=e.ptCallbacks,o=n.ptm,i=n.ptmo,a=n.cx,s=function(v){var C=r(),A={props:C,parent:e.metaData,hostName:e.hostName,state:{},context:{checked:e.checked,disabled:e.disabled}};return t(o("column.".concat(v),{column:A}),o("column.".concat(v),A),i(C,v,A))},l=function(v){e.disabled||e.onChange({originalEvent:v,checked:!e.checked})},c=t({className:a("checkIcon")},s("headerCheckbox.icon")),d=e.checked?e.checkIcon||S.createElement(Cc,c):null,p=nn.getJSXIcon(d,XZ({},c),{props:e}),m=e.disabled?null:0,y={role:"checkbox","aria-checked":e.checked,"aria-label":e.checked?Hp("selectAll"):Hp("unselectAll"),tabIndex:m,onChange:l,icon:p,checked:e.checked,disabled:e.disabled,unstyled:e.unstyled,pt:s("headerCheckbox")};return S.createElement(_R,y)});xR.displayName="HeaderCheckbox";function O3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var RF=S.memo(function(e){var t=S.useState({}),r=Kn(t,2),n=r[0],o=r[1],i=S.useRef(null),a=If(e.column),s=Vr(),l=e.metaData,c=e.ptCallbacks,d=e.index,p=e.ptCallbacks,m=p.ptm,y=p.ptmo,b=p.cx,v={index:d},C=Jv(Jv({},l),v),A=function(){return zo.getCProps(e.column)},R=function(Ie){var tt=A(),mt={props:tt,parent:C,hostName:e.hostName,state:{styleObject:n},context:{index:e.index,sorted:U().sorted,resizable:e.resizableColumns,size:e.metaData.props.size,showGridlines:e.metaData.props.showGridlines}};return s(m("column.".concat(Ie),{column:mt}),m("column.".concat(Ie),mt),y(tt,Ie,mt))},x=function(){return e.multiSortMeta&&e.multiSortMeta.length>1},k=function(){return!D("sortable")||D("sortable")&&(e.allSortableDisabled||D("sortableDisabled"))},D=function(){return e.column?typeof(arguments.length<=0?void 0:arguments[0])=="string"?zo.getCProp(e.column,arguments.length<=0?void 0:arguments[0]):zo.getCProp((arguments.length<=0?void 0:arguments[0])||e.column,arguments.length<=1?void 0:arguments[1]):null},F=function(){var Ie=D("headerStyle"),tt=D("style");return D("frozen")?Object.assign({},tt,Ie,n):Object.assign({},tt,Ie)},$=function(){return e.multiSortMeta.findIndex(function(Ie){return Ie.field===D("field")||Ie.field===D("sortField")})},U=function(){var Ie=!1,tt=0,mt=-1;return e.sortMode==="single"?(Ie=e.sortField&&(e.sortField===D("field")||e.sortField===D("sortField")),tt=Ie?e.sortOrder:0):e.sortMode==="multiple"&&(mt=$(),mt>-1&&(Ie=!0,tt=e.multiSortMeta[mt].order)),{sorted:Ie,sortOrder:tt,metaIndex:mt}},G=function(Ie){var tt=Ie.sorted,mt=Ie.sortOrder;return D("sortable")?tt&&mt<0?"descending":tt&&mt>0?"ascending":"none":null},Y=function(){if(D("frozen")){var Ie=Jv({},n),tt=D("alignFrozen");if(tt==="right"){var mt=0,Wt=i.current&&i.current.nextElementSibling;Wt&&Wt.classList.contains("p-frozen-column")&&(mt=le.getOuterWidth(Wt)+parseFloat(Wt.style.right||0)),Ie.right=mt+"px"}else{for(var cr=0,At=i.current&&i.current.previousElementSibling;At;){if(At&&At.classList.contains("p-frozen-column")){cr=le.getOuterWidth(At)+parseFloat(At.style.left||0),i.current.style.left=cr+"px";break}At=At.previousElementSibling}Ie.left=cr+"px"}var Ve=i.current.parentElement.nextElementSibling;if(Ve){var Jt=le.index(i.current);Ve.children[Jt].style.left=Ie.left,Ve.children[Jt].style.right=Ie.right}var ar=n.left===Ie.left&&n.right===Ie.right;!ar&&o(Ie)}},Q=function(Ie){(D(Ie,"sortableDisabled")!==D("sortableDisabled")||D(Ie,"sortable")!==D("sortable"))&&e.onSortableChange()},me=function(Ie){if(!k()){var tt=Ie.target;(le.getAttribute(tt,"data-p-sortable-column")===!0||le.getAttribute(tt,"data-pc-section")==="headertitle"||le.getAttribute(tt,"data-pc-section")==="headercontent"||le.getAttribute(tt,"data-pc-section")==="sortIcon"||le.getAttribute(tt.parentElement,"data-pc-section")==="sortIcon"||tt.closest('[data-p-sortable-column="true"]')&&!tt.closest('[data-pc-section="filtermenubutton"]'))&&(le.clearSelection(),e.onSortChange({originalEvent:Ie,column:e.column,sortableDisabledFields:e.sortableDisabledFields}))}},ne=function(Ie){e.onColumnMouseDown({originalEvent:Ie,column:e.column})},Ee=function(Ie){(Ie.code=="Enter"||Ie.code==="NumpadEnter"||Ie.code=="Space")&&Ie.target===i.current&&le.getAttribute(Ie.currentTarget,"data-p-sortable-column")===!0&&(me(Ie),Ie.preventDefault())},ce=function(Ie){e.onColumnDragStart({originalEvent:Ie,column:e.column})},_e=function(Ie){e.onColumnDragOver({originalEvent:Ie,column:e.column})},Ne=function(Ie){e.onColumnDragLeave({originalEvent:Ie,column:e.column})},oe=function(Ie){e.onColumnDrop({originalEvent:Ie,column:e.column})},Se=function(Ie){e.onColumnResizeStart({originalEvent:Ie,column:e.column})},re=function(Ie){e.onColumnResizerClick&&(e.onColumnResizerClick({originalEvent:Ie,element:Ie.currentTarget.parentElement,column:e.column}),Ie.preventDefault())},we=function(Ie){e.onColumnResizerDoubleClick&&(e.onColumnResizerDoubleClick({originalEvent:Ie,element:Ie.currentTarget.parentElement,column:e.column}),Ie.preventDefault())};S.useEffect(function(){D("frozen")&&Y(),Q(a)});var Ae=function(){if(e.resizableColumns&&!D("frozen")){var Ie=s({className:b("columnResizer"),onMouseDown:function(mt){return Se(mt)},onTouchStart:function(mt){return Se(mt)},onClick:function(mt){return re(mt)},onDoubleClick:function(mt){return we(mt)}},R("columnResizer"));return S.createElement("span",Ie)}return null},Pe=function(){var Ie=pe.getJSXElement(D("header"),{props:e.tableProps}),tt=s({className:b("headerTitle")},R("headerTitle"));return S.createElement("span",tt,Ie)},Oe=function(Ie){var tt=Ie.sorted,mt=Ie.sortOrder;if(D("sortable")){var Wt=s({className:b("sortIcon")},R("sortIcon")),cr=s(R("sort")),At=tt?mt<0?S.createElement(fF,Wt):S.createElement(hF,Wt):S.createElement(pF,Wt),Ve=nn.getJSXIcon(e.sortIcon||At,Jv({},Wt),{props:e,sorted:tt,sortOrder:mt});return S.createElement("span",cr,Ve)}return null},Ke=function(Ie){var tt=Ie.metaIndex;if(tt!==-1&&x()){var mt=e.groupRowsBy&&e.groupRowsBy===e.groupRowSortField?tt:tt+1,Wt=s({className:b("sortBadge")},R("root"),R("sortBadge"));return S.createElement("span",Wt,mt)}return null},St=function(){if(e.showSelectAll&&D("selectionMode")==="multiple"&&e.filterDisplay!=="row"){var Ie=e.allRowsSelected(e.value);return S.createElement(xR,{hostName:e.hostName,column:e.column,checked:Ie,onChange:e.onColumnCheckboxChange,disabled:e.empty,ptCallbacks:c,metaData:l,unstyled:e.unstyled})}return null},st=function(){return e.filterDisplay==="menu"&&D("filter")?S.createElement(PR,{hostName:e.hostName,display:"menu",column:e.column,filters:e.filters,onFilterChange:e.onFilterChange,onFilterApply:e.onFilterApply,filtersStore:e.filtersStore,filterIcon:e.filterIcon,filterClearIcon:e.filterClearIcon,ptCallbacks:c,metaData:l,unstyled:e.unstyled}):null},yt=function(Ie){var tt=Pe(),mt=Oe(Ie),Wt=Ke(Ie),cr=St(),At=st(),Ve=s({className:b("headerContent")},R("headerContent"));return S.createElement("div",Ve,tt,mt,Wt,cr,At)},$e=function(){var Ie=k(),tt=U(),mt=F(),Wt=D("alignHeader")||D("align"),cr=D("frozen"),At=D("sortable")&&!Ie?e.tabIndex:null,Ve=D("colSpan"),Jt=D("rowSpan"),ar=G(tt),pr=D("headerTooltip"),gr=D("headerClassName"),en=pe.isNotEmpty(pr),Wr=D("headerTooltipOptions"),Xr=Ae(),Pr=yt(tt),Br=s({className:dt(gr,b("headerCell",{headerProps:e,frozen:cr,sortMeta:tt,align:Wt,_isSortableDisabled:Ie,getColumnProp:D})),style:mt,role:"columnheader",onClick:function(jr){return me(jr)},onKeyDown:function(jr){return Ee(jr)},onMouseDown:function(jr){return ne(jr)},onDragStart:function(jr){return ce(jr)},onDragOver:function(jr){return _e(jr)},onDragLeave:function(jr){return Ne(jr)},onDrop:function(jr){return oe(jr)},tabIndex:At,colSpan:Ve,rowSpan:Jt,"aria-sort":ar,"data-p-sortable-column":D("sortable"),"data-p-resizable-column":e.resizableColumns,"data-p-highlight":tt.sorted,"data-p-filter-column":!e.metaData.props.headerColumnGroup&&e.filterDisplay==="row","data-p-frozen-column":D("frozen"),"data-p-reorderable-column":e.reorderableColumns},R("root"),R("headerCell"));return S.createElement(S.Fragment,null,S.createElement("th",Yn({ref:i},Br),Xr,Pr),en&&S.createElement(Ml,Yn({target:i,content:pr,pt:R("tooltip"),unstyled:e.unstyled},Wr)))},ot=$e();return ot});RF.displayName="HeaderCell";var ZZ=["unstyled","__TYPE","ptOptions"];function _3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function aE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var TF=S.memo(function(e){var t=S.useState([]),r=Kn(t,2),n=r[0],o=r[1],i=S.useState(!1),a=Kn(i,2),s=a[0],l=a[1],c=Vr(),d=e.sortMode==="single",p=e.sortMode==="multiple",m=d&&s,y=e.ptCallbacks,b=y.ptm,v=y.ptmo,C=y.cx,A=S.useContext(qr),R=function(Ae,Pe){return zo.getCProp(Ae,Pe)},x=function(Ae){return zo.getCProps(Ae)},k=function(Ae){return mc.getCProps(Ae)},D=function(){return e.headerColumnGroup?v(mc.getCProps(e.headerColumnGroup)):void 0},F=function(Ae){var Pe=D(),Oe={props:Pe,parent:e.metaData,hostName:e.hostName,state:{sortableDisabledFields:n,allSortableDisabled:s}};return c(b("columnGroup.".concat(Ae),{columnGroup:Oe}),b("columnGroup.".concat(Ae),Oe),v(Pe,Ae,Oe))},$=function(Ae,Pe){var Oe=x(Ae),Ke={props:Oe,parent:e.metaData,hostName:e.hostName,state:{sortableDisabledFields:n,allSortableDisabled:s}};return c(b("column.".concat(Pe),{column:Ke}),b("column.".concat(Pe),Ke),v(Oe,Pe,Ke))},U=function(Ae,Pe){var Oe=k(Ae),Ke={props:Oe,parent:e.metaData,hostName:e.hostName};return c(b("row.".concat(Pe),{row:Ke}),b("row.".concat(Pe),Ke),v(Oe,Pe,Ke))},G=function(Ae){return e.sortField!==null?R(Ae,"field")===e.sortField||R(Ae,"sortField")===e.sortField:!1},Y=function(){if(d||p&&e.onSortChange){var Ae=[],Pe=!1;e.columns.forEach(function(Oe){R(Oe,"sortableDisabled")&&(Ae.push(R(Oe,"sortField")||R(Oe,"field")),!Pe&&G(Oe)&&(Pe=!0))}),o(Ae),l(Pe)}},Q=function(){Y()},me=function(Ae){e.onColumnCheckboxChange(Ae,e.value)};Go(function(){Y()});var ne=function(Ae){var Pe=S.Children.toArray(Gm.getCProp(Ae,"children"));return Ee(Pe)},Ee=function(Ae){return S.Children.map(Ae,function(Pe,Oe){var Ke=Pe?!R(Pe,"hidden"):!0,St=Pe&&(R(Pe,"columnKey")||R(Pe,"field"))||Oe;return Ke&&S.createElement(RF,{hostName:e.hostName,allRowsSelected:e.allRowsSelected,allSortableDisabled:m,column:Pe,index:Oe,empty:e.empty,filterClearIcon:e.filterClearIcon,filterDisplay:e.filterDisplay,filterIcon:e.filterIcon,filters:e.filters,filtersStore:e.filtersStore,groupRowSortField:e.groupRowSortField,groupRowsBy:e.groupRowsBy,key:St,multiSortMeta:e.multiSortMeta,onColumnCheckboxChange:me,onColumnDragLeave:e.onColumnDragLeave,onColumnDragOver:e.onColumnDragOver,onColumnDragStart:e.onColumnDragStart,onColumnDrop:e.onColumnDrop,onColumnMouseDown:e.onColumnMouseDown,onColumnResizeStart:e.onColumnResizeStart,onColumnResizerClick:e.onColumnResizerClick,onColumnResizerDoubleClick:e.onColumnResizerDoubleClick,onFilterApply:e.onFilterApply,onFilterChange:e.onFilterChange,onSortChange:e.onSortChange,onSortableChange:Q,reorderableColumns:e.reorderableColumns,resizableColumns:e.resizableColumns,showSelectAll:e.showSelectAll,sortField:e.sortField,sortIcon:e.sortIcon,sortMode:e.sortMode,sortOrder:e.sortOrder,sortableDisabledFields:n,tabIndex:e.tabIndex,tableProps:e.tableProps,value:e.value,ptCallbacks:e.ptCallbacks,metaData:e.metaData,unstyled:e.unstyled})})},ce=function(Ae,Pe){if(e.showSelectAll&&Pe==="multiple"){var Oe=e.allRowsSelected(e.value);return S.createElement(xR,{hostName:e.hostName,column:Ae,checked:Oe,onChange:me,disabled:e.empty,ptCallbacks:e.ptCallbacks,metaData:e.metaData,unstyled:e.unstyled})}return null},_e=function(Ae,Pe){return Pe?S.createElement(PR,{hostName:e.hostName,display:"row",column:Ae,filterClearIcon:e.filterClearIcon,filterIcon:e.filterIcon,filters:e.filters,filtersStore:e.filtersStore,metaData:e.metaData,onFilterApply:e.onFilterApply,onFilterChange:e.onFilterChange,ptCallbacks:e.ptCallbacks,unstyled:e.unstyled}):null},Ne=function(){return S.Children.map(e.columns,function(Ae,Pe){var Oe=!R(Ae,"hidden");if(Oe){var Ke=zo.getCProps(Ae),St=Ke.filterHeaderStyle,st=Ke.style,yt=Ke.filterHeaderClassName,$e=Ke.className,ot=Ke.frozen,it=Ke.columnKey,Ie=Ke.field,tt=Ke.selectionMode,mt=Ke.filter,Wt=aE(aE({},St||{}),st||{}),cr=it||Ie||Pe,At=ce(Ae,tt),Ve=_e(Ae,mt),Jt=c({style:Wt,className:dt(yt,$e,C("headerCell",{frozen:ot,column:Ae}))},$(Ae,"root"),$(Ae,"headerCell"));return S.createElement("th",Yn({key:cr},Jt),At,Ve)}return null})},oe=function(){if(e.headerColumnGroup){var Ae=S.Children.toArray(mc.getCProp(e.headerColumnGroup,"children"));return Ae.map(function(St,st){var yt=Gm.getProps(St.props,A),$e=yt.unstyled;yt.__TYPE,yt.ptOptions;var ot=OR(yt,ZZ),it=c({role:"row"},$e?aE({unstyled:$e},ot):ot,U(St,"root"));return S.createElement("tr",Yn({},it,{key:st}),ne(St))})}var Pe=c({role:"row"},b("headerRow",{hostName:e.hostName})),Oe=S.createElement("tr",Pe,Ee(e.columns)),Ke=e.filterDisplay==="row"&&S.createElement("tr",Pe,Ne());return S.createElement(S.Fragment,null,Oe,Ke)},Se=oe(),re=c({className:C("thead"),role:"rowgroup"},F("root"),b("thead",{hostName:e.hostName}));return S.createElement("thead",re,Se)});TF.displayName="TableHeader";function eee(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=tee(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2237
+ `,xZ={root:function(t){var r=t.props,n=t.selectable;return dt("p-datatable p-component",{"p-datatable-hoverable-rows":r.rowHover,"p-datatable-selectable":n&&!r.cellSelection,"p-datatable-selectable-cell":n&&r.cellSelection,"p-datatable-resizable":r.resizableColumns,"p-datatable-resizable-fit":r.resizableColumns&&r.columnResizeMode==="fit","p-datatable-scrollable":r.scrollable,"p-datatable-flex-scrollable":r.scrollable&&r.scrollHeight==="flex","p-datatable-responsive-stack":r.responsiveLayout==="stack","p-datatable-responsive-scroll":r.responsiveLayout==="scroll","p-datatable-striped":r.stripedRows,"p-datatable-gridlines":r.showGridlines,"p-datatable-grouped-header":r.headerColumnGroup!=null,"p-datatable-grouped-footer":r.footerColumnGroup!=null,"p-datatable-sm":r.size==="small","p-datatable-lg":r.size==="large"})},loadingIcon:"p-datatable-loading-icon",loadingOverlay:"p-datatable-loading-overlay p-component-overlay",header:"p-datatable-header",wrapper:"p-datatable-wrapper",table:function(t){var r=t.props;return dt("p-datatable-table",{"p-datatable-scrollable-table":r.scrollable,"p-datatable-resizable-table":r.resizableColumns,"p-datatable-resizable-table-fit":r.resizableColumns&&r.columnResizeMode==="fit"})},thead:"p-datatable-thead",tfoot:"p-datatable-tfoot",footer:"p-datatable-footer",checkIcon:"p-checkbox-icon",resizeHelper:"p-column-resizer-helper",reorderIndicatorUp:"p-datatable-reorder-indicator-up",reorderIndicatorDown:"p-datatable-reorder-indicator-down",paginator:function(t){var r=t.position;return dt("p-paginator-"+r)},bodyCell:function(t){var r=t.selectionMode,n=t.editor,o=t.editingState,i=t.frozen,a=t.cellSelected,s=t.align,l=t.bodyProps,c=t.getCellParams;return dt(Wn({"p-selection-column":r!==null,"p-editable-column":n,"p-cell-editing":n&&o,"p-frozen-column":i,"p-selectable-cell":l.allowCellSelection&&l.isSelectable({data:c(),index:l.rowIndex}),"p-highlight":a},"p-align-".concat(s),!!s))},columnTitle:"p-column-title",bodyRow:function(t){var r=t.rowProps;return dt({"p-highlight":!r.allowCellSelection&&r.selected||r.contextMenuSelected,"p-highlight-contextmenu":r.contextMenuSelected,"p-selectable-row":r.allowRowSelection&&r.isSelectable({data:r.rowData,index:r.rowIndex}),"p-row-odd":r.rowIndex%2!==0})},rowGroupTogglerIcon:"p-row-toggler-icon",rowGroupToggler:"p-row-toggler p-link",rowGroupHeader:"p-rowgroup-header",rowGroupHeaderName:"p-rowgroup-header-name",rowGroupFooter:"p-rowgroup-footer",rowReorderIcon:"p-datatable-reorderablerow-handle",rowTogglerIcon:"p-row-toggler-icon",rowToggler:"p-row-toggler p-link",rowEditorSaveIcon:"p-row-editor-save-icon",rowEditorSaveButton:"p-row-editor-save p-link",rowEditorCancelIcon:"p-row-editor-cancel-icon",rowEditorCancelButton:"p-row-editor-cancel p-link",rowEditorInitIcon:"p-row-editor-init-icon",rowEditorInitButton:"p-row-editor-init p-link",rowExpansion:"p-datatable-row-expansion",virtualScrollerSpacer:function(t){var r=t.className;return r},tbody:function(t){var r=t.className;return r},filterInput:"p-fluid p-column-filter-element",filterMenuButton:function(t){var r=t.overlayVisibleState,n=t.hasFilter;return dt("p-column-filter-menu-button p-link",{"p-column-filter-menu-button-open":r,"p-column-filter-menu-button-active":n()})},headerFilterClearButton:function(t){var r=t.hasRowFilter;return dt("p-column-filter-clear-button p-link",{"p-hidden-space":!r()})},filterSeparator:"p-column-filter-separator",filterRowItem:function(t){var r=t.isRowMatchModeSelected,n=t.isShowMatchModes,o=t.value;return n()?dt("p-column-filter-row-item",{"p-highlight":o&&r(o)}):void 0},filterRowItems:"p-column-filter-row-items",filterOperator:"p-column-filter-operator",filterConstraints:"p-column-filter-constraints",filterConstraint:"p-column-filter-constraint",filterAddRule:"p-column-filter-add-rule",filterButtonBar:"p-column-filter-buttonbar",filterOverlay:function(t){var r=t.columnFilterProps,n=t.context,o=t.getColumnProp;return dt("p-column-filter-overlay p-component p-fluid",o("filterMenuClassName"),{"p-column-filter-overlay-menu":r.display==="menu","p-input-filled":n&&n.inputStyle==="filled"||Ur.inputStyle==="filled","p-ripple-disabled":n&&n.ripple===!1||Ur.ripple===!1})},columnFilter:function(t){var r=t.columnFilterProps;return dt("p-column-filter p-fluid",{"p-column-filter-row":r.display==="row","p-column-filter-menu":r.display==="menu"})},columnResizer:"p-column-resizer",emptyMessage:"p-datatable-emptymessage",sortBadge:"p-sortable-column-badge",sortIcon:"p-sortable-column-icon",headerTitle:"p-column-title",headerContent:"p-column-header-content",headerCell:function(t){var r=t.headerProps,n=t.frozen,o=t.sortMeta,i=t.align,a=t._isSortableDisabled,s=t.getColumnProp;return pe.isEmpty(r)?dt("p-filter-column",{"p-frozen-column":n}):dt(Wn({"p-filter-column":!r.headerColumnGroup&&r.filterDisplay==="row","p-sortable-column":s("sortable"),"p-resizable-column":r.resizableColumns&&s("resizeable"),"p-highlight":o.sorted,"p-frozen-column":n,"p-selection-column":s("selectionMode"),"p-sortable-disabled":s("sortable")&&a,"p-reorderable-column":r.reorderableColumns&&s("reorderable")&&!n},"p-align-".concat(i),!!i))},footerCell:function(t){var r=t.getColumnProp,n=t.align;return dt(Wn({"p-frozen-column":r("frozen")},"p-align-".concat(n),!!n))},transition:"p-connected-overlay"},DZ={wrapper:{overflow:"auto"},resizeHelper:{display:"none"},reorderIndicatorUp:function(t){var r=t.style;return f3({},r)},reorderIndicatorDown:function(t){var r=t.style;return f3({},r)}},Kv=Ar.extend({defaultProps:{__TYPE:"DataTable",alwaysShowPaginator:!0,breakpoint:"960px",cellClassName:null,cellMemo:!0,cellMemoProps:["rowData","field","allowCellSelection","isCellSelected","editMode","index","tabIndex","editing","expanded","editingMeta","frozenCol","alignFrozenCol"],cellMemoPropsDepth:1,cellSelection:!1,checkIcon:null,className:null,collapsedRowIcon:null,columnResizeMode:"fit",compareSelectionBy:"deepEquals",contextMenuSelection:null,csvSeparator:",",currentPageReportTemplate:"({currentPage} of {totalPages})",customRestoreState:null,customSaveState:null,dataKey:null,defaultSortOrder:1,dragSelection:!1,editMode:null,editingRows:null,emptyMessage:null,expandableRowGroups:!1,expandedRowIcon:null,expandedRows:null,exportFilename:"download",exportFunction:null,filterClearIcon:null,filterDelay:300,filterDisplay:"menu",filterIcon:null,filterLocale:void 0,filters:null,first:0,footer:null,footerColumnGroup:null,frozenRow:!1,frozenValue:null,frozenWidth:null,globalFilter:null,globalFilterFields:null,globalFilterMatchMode:En.CONTAINS,groupRowsBy:null,header:null,headerColumnGroup:null,id:null,isDataSelectable:null,lazy:!1,loading:!1,loadingIcon:null,metaKeySelection:!1,multiSortMeta:null,onAllRowsSelect:null,onAllRowsUnselect:null,onCellClick:null,onCellSelect:null,onCellUnselect:null,onColReorder:null,onColumnResizeEnd:null,onColumnResizerClick:null,onColumnResizerDoubleClick:null,onContextMenu:null,onContextMenuSelectionChange:null,onFilter:null,onPage:null,onRowClick:null,onRowCollapse:null,onRowDoubleClick:null,onRowEditCancel:null,onRowEditChange:null,onRowEditComplete:null,onRowEditInit:null,onRowEditSave:null,onRowExpand:null,onRowMouseEnter:null,onRowMouseLeave:null,onRowPointerDown:null,onRowPointerUp:null,onRowReorder:null,onRowSelect:null,onRowToggle:null,onRowUnselect:null,onSelectAllChange:null,onSelectionChange:null,onSort:null,onStateRestore:null,onStateSave:null,onValueChange:null,pageLinkSize:5,paginator:!1,paginatorClassName:null,paginatorDropdownAppendTo:null,paginatorLeft:null,paginatorPosition:"bottom",paginatorRight:null,paginatorTemplate:"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink RowsPerPageDropdown",removableSort:!1,reorderIndicatorDownIcon:null,reorderIndicatorUpIcon:null,reorderableColumns:!1,reorderableRows:!1,resizableColumns:!1,responsiveLayout:"scroll",rowClassName:null,rowEditValidator:null,rowEditorCancelIcon:null,rowEditorInitIcon:null,rowEditorSaveIcon:null,rowExpansionTemplate:null,rowGroupFooterTemplate:null,rowGroupHeaderTemplate:null,rowGroupMode:null,rowHover:!1,rows:null,rowsPerPageOptions:null,scrollHeight:null,scrollable:!1,selectAll:!1,selectOnEdit:!0,selection:null,selectionAriaLabel:null,selectionAutoFocus:!0,selectionMode:null,selectionPageOnly:!1,showGridlines:!1,showHeaders:!0,showRowReorderElement:null,showSelectAll:!0,showSelectionElement:null,size:"normal",sortField:null,sortIcon:null,sortMode:"single",sortOrder:null,stateKey:null,stateStorage:"session",stripedRows:!1,style:null,tabIndex:0,tableClassName:null,tableStyle:null,totalRecords:null,value:null,virtualScrollerOptions:null,children:void 0},css:{styles:PZ,classes:xZ,inlineStyles:DZ}});function NZ(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function OR(e,t){if(e==null)return{};var r,n,o=NZ(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var MZ={box:"p-checkbox-box",input:"p-checkbox-input",icon:"p-checkbox-icon",root:function(t){var r=t.props,n=t.checked,o=t.context;return dt("p-checkbox p-component",{"p-highlight":n,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":o&&o.inputStyle==="filled"})}},Gv=Ar.extend({defaultProps:{__TYPE:"Checkbox",autoFocus:!1,checked:!1,className:null,disabled:!1,falseValue:!1,icon:null,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onContextMenu:null,onMouseDown:null,readOnly:!1,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,trueValue:!0,value:null,children:void 0},css:{classes:MZ}});function h3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function m3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var _R=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=Gv.getProps(e,n),i=S.useState(!1),a=Kn(i,2),s=a[0],l=a[1],c=Gv.setMetaData({props:o,state:{focused:s},context:{checked:o.checked===o.trueValue,disabled:o.disabled}}),d=c.ptm,p=c.cx,m=c.isUnstyled;vo(Gv.css.styles,m,{name:"checkbox"});var y=S.useRef(null),b=S.useRef(o.inputRef),v=function(){return o.checked===o.trueValue},C=function(Y){if(!(o.disabled||o.readOnly)&&o.onChange){var Q,me=v(),ne=me?o.falseValue:o.trueValue,Ee={originalEvent:Y,value:o.value,checked:ne,stopPropagation:function(){Y==null||Y.stopPropagation()},preventDefault:function(){Y==null||Y.preventDefault()},target:{type:"checkbox",name:o.name,id:o.id,value:o.value,checked:ne}};if(o==null||(Q=o.onChange)===null||Q===void 0||Q.call(o,Ee),Y.defaultPrevented)return;le.focus(b.current)}},A=function(Y){var Q;l(!0),o==null||(Q=o.onFocus)===null||Q===void 0||Q.call(o,Y)},R=function(Y){var Q;l(!1),o==null||(Q=o.onBlur)===null||Q===void 0||Q.call(o,Y)};S.useImperativeHandle(t,function(){return{props:o,focus:function(){return le.focus(b.current)},getElement:function(){return y.current},getInput:function(){return b.current}}}),S.useEffect(function(){pe.combinedRefs(b,o.inputRef)},[b,o.inputRef]),hn(function(){b.current.checked=v()},[o.checked,o.trueValue]),Go(function(){o.autoFocus&&le.focus(b.current,o.autoFocus)});var x=v(),k=pe.isNotEmpty(o.tooltip),D=Gv.getOtherProps(o),F=r({id:o.id,className:dt(o.className,p("root",{checked:x,context:n})),style:o.style,"data-p-highlight":x,"data-p-disabled":o.disabled,onContextMenu:o.onContextMenu,onMouseDown:o.onMouseDown},D,d("root")),$=function(){var Y=pe.reduceKeys(D,le.ARIA_PROPS),Q=r(m3({id:o.inputId,type:"checkbox",className:p("input"),name:o.name,tabIndex:o.tabIndex,onFocus:function(ne){return A(ne)},onBlur:function(ne){return R(ne)},onChange:function(ne){return C(ne)},disabled:o.disabled,readOnly:o.readOnly,required:o.required,"aria-invalid":o.invalid,checked:x},Y),d("input"));return S.createElement("input",Yn({ref:b},Q))},U=function(){var Y=r({className:p("icon")},d("icon")),Q=r({className:p("box",{checked:x}),"data-p-highlight":x,"data-p-disabled":o.disabled},d("box")),me=x?o.icon||S.createElement(Cc,Y):null,ne=nn.getJSXIcon(me,m3({},Y),{props:o,checked:x});return S.createElement("div",Q,ne)};return S.createElement(S.Fragment,null,S.createElement("div",Yn({ref:y},F),$(),U()),k&&S.createElement(Ml,Yn({target:y,content:o.tooltip,pt:d("tooltip")},o.tooltipOptions)))}));_R.displayName="Checkbox";function g3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function kZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var gF=S.memo(function(e){var t=Vr(),r=function(){return zo.getCProps(e.column)},n=e.ptCallbacks,o=n.ptm,i=n.ptmo,a=n.cx,s=function(v){var C={props:r(),parent:e.metaData,hostName:e.hostName,state:{},context:{index:e.tabIndex,checked:e.checked,disabled:e.disabled}};return t(o("column.".concat(v),{column:C}),o("column.".concat(v),C),i(r(),v,C))},l=function(v){e.disabled||e.onChange(v)},c=t({className:a("checkIcon")},s("rowCheckbox.icon")),d=e.checked?e.checkIcon||S.createElement(Cc,c):null,p=nn.getJSXIcon(d,kZ({},c),{props:e}),m=e.disabled?null:"0",y={role:"checkbox","aria-checked":e.checked,tabIndex:m,onChange:l,"aria-label":e.ariaLabel,checked:e.checked,icon:p,disabled:e.disabled,unstyled:e.unstyled,pt:s("rowCheckbox")};return S.createElement(_R,y)});gF.displayName="RowCheckbox";var LZ={root:function(t){var r=t.props,n=t.context;return dt("p-radiobutton p-component",{"p-highlight":r.checked,"p-disabled":r.disabled,"p-invalid":r.invalid,"p-variant-filled":r.variant?r.variant==="filled":n&&n.inputStyle==="filled"})},box:"p-radiobutton-box",input:"p-radiobutton-input",icon:"p-radiobutton-icon"},qv=Ar.extend({defaultProps:{__TYPE:"RadioButton",autoFocus:!1,checked:!1,className:null,disabled:!1,id:null,inputId:null,inputRef:null,invalid:!1,variant:null,name:null,onChange:null,onClick:null,required:!1,style:null,tabIndex:null,tooltip:null,tooltipOptions:null,value:null,children:void 0},css:{classes:LZ}});function v3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function FZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var vF=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=S.useContext(qr),o=qv.getProps(e,n),i=S.useRef(null),a=S.useRef(o.inputRef),s=qv.setMetaData({props:o}),l=s.ptm,c=s.cx,d=s.isUnstyled;vo(qv.css.styles,d,{name:"radiobutton"});var p=function(D){m(D)},m=function(D){if(!(o.disabled||o.readOnly)&&o.onChange){var F=o.checked,$=D.target instanceof HTMLDivElement,U=D.target===a.current,G=U&&D.target.checked!==F,Y=$&&(le.hasClass(i.current,"p-radiobutton-checked")===F?!F:!1),Q=!F,me={originalEvent:D,value:o.value,checked:Q,stopPropagation:function(){D==null||D.stopPropagation()},preventDefault:function(){D==null||D.preventDefault()},target:{type:"radio",name:o.name,id:o.id,value:o.value,checked:Q}};if(G||Y){var ne;if(o==null||(ne=o.onChange)===null||ne===void 0||ne.call(o,me),D.defaultPrevented)return;Y&&(a.current.checked=Q)}le.focus(a.current)}},y=function(D){var F;o==null||(F=o.onFocus)===null||F===void 0||F.call(o,D)},b=function(D){var F;o==null||(F=o.onBlur)===null||F===void 0||F.call(o,D)};S.useImperativeHandle(t,function(){return{props:o,select:p,focus:function(){return le.focus(a.current)},getElement:function(){return i.current},getInput:function(){return a.current}}}),S.useEffect(function(){a.current&&(a.current.checked=o.checked)},[o.checked]),S.useEffect(function(){pe.combinedRefs(a,o.inputRef)},[a,o.inputRef]),Go(function(){o.autoFocus&&le.focus(a.current,o.autoFocus)});var v=pe.isNotEmpty(o.tooltip),C=qv.getOtherProps(o),A=r({id:o.id,className:dt(o.className,c("root",{context:n})),style:o.style,"data-p-checked":o.checked},C,l("root"));delete A.input,delete A.box,delete A.icon;var R=function(){var D=pe.reduceKeys(C,le.ARIA_PROPS),F=r(FZ({id:o.inputId,type:"radio",name:o.name,defaultChecked:o.checked,onFocus:y,onBlur:b,onChange:m,disabled:o.disabled,readOnly:o.readOnly,required:o.required,tabIndex:o.tabIndex,className:c("input")},D),e.input,l("input"));return S.createElement("input",Yn({ref:a},F))},x=function(){var D=r({className:c("box")},e.box,l("box")),F=r({className:c("icon")},e.icon,l("icon"));return S.createElement("div",D,S.createElement("div",F))};return S.createElement(S.Fragment,null,S.createElement("div",Yn({ref:i},A),R(),x()),v&&S.createElement(Ml,Yn({target:i,content:o.tooltip,pt:l("tooltip")},o.tooltipOptions)))}));vF.displayName="RadioButton";var yF=S.memo(function(e){var t=Vr(),r=function(){return zo.getCProps(e.column)},n=e.ptCallbacks,o=n.ptm,i=n.ptmo,a=function(d){var p={props:r(),parent:e.metaData,hostName:e.hostName,state:{},context:{index:e.tabIndex,checked:e.checked,disabled:e.disabled}};return t(o("column.".concat(d),{column:p}),o("column.".concat(d),p),i(r(),d,p))},s=function(d){e.disabled||e.onChange(d)},l={role:"radio","aria-checked":e.checked,checked:e.checked,disabled:e.disabled,name:"".concat(e.tableSelector,"_dt_radio"),onChange:s,unstyled:e.unstyled,pt:a("rowRadioButton")};return S.createElement(vF,l)});yF.displayName="RowRadioButton";function y3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Wa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var bF=function(t){var r=Vr(),n=S.useState(t.editing),o=Kn(n,2),i=o[0],a=o[1],s=S.useState(t.rowData),l=Kn(s,2),c=l[0],d=l[1],p=S.useState({}),m=Kn(p,2),y=m[0],b=m[1],v=S.useRef(null),C=S.useRef(null),A=S.useRef(null),R=S.useRef(null),x=S.useRef(null),k=t.ptCallbacks,D=k.ptm,F=k.ptmo,$=k.cx,U=function(Ve){return zo.getCProp(t.column,Ve)},G=function(Ve){var Jt={props:t.cProps,parent:t.metaData,hostName:t.hostName,state:{styleObject:y,editing:i,editingRowData:c},context:{index:t.index,size:t.metaData.props.size,showGridlines:t.metaData.props.showGridlines}};return r(D("column.".concat(Ve),{column:Jt}),D("column.".concat(Ve),Jt),F(t.cProps,Ve,Jt))},Y=function(){return pe.isNotEmpty(t.editMode)&&U("editor")},Q=function(){return U("cellEditValidateOnClose")},me=function(Ve){var Jt=function(pr){return pr.getAttribute&&pr.getAttribute("data-pr-is-overlay")};return Jt(Ve)||le.getParents(Ve).find(function(ar){return Jt(ar)})},ne=Aa({type:"click",listener:function(Ve){!me(Ve.target)&&Ne(Ve.target)&&Ae(Ve,!0)},options:!0,when:Y()}),Ee=Kn(ne,2),ce=Ee[0],_e=Ee[1],Ne=function(Ve){return v.current&&!(v.current.isSameNode(Ve)||v.current.contains(Ve))},oe=function(){var Ve=U("bodyStyle"),Jt=U("style");return t.frozenCol?Object.assign({},Jt,Ve,y):Object.assign({},Jt,Ve)},Se=function(){return{value:t.resolveFieldData(),field:t.field,rowData:t.rowData,rowIndex:t.rowIndex,cellIndex:t.index,selected:t.isCellSelected,column:t.column,props:t}},re=function(Ve){var Jt=Se();return Wa({originalEvent:Ve},Jt)},we=function(Ve){var Jt=re(Ve),ar=U("onBeforeCellEditHide");ar&&ar(Jt),setTimeout(function(){a(!1),_e()},1)},Ae=function(Ve,Jt){var ar=re(Ve),pr=Wa({},x.current),gr=t.resolveFieldData(pr),en=Wa(Wa({},ar),{},{newRowData:pr,newValue:gr}),Wr=U("onCellEditCancel"),Xr=U("cellEditValidator"),Pr=U("onCellEditComplete");!Jt&&Wr&&Wr(en);var Br=!0;(!Jt||Q())&&Xr&&(Br=Xr(en)),Br?(Jt&&Pr&&Pr(en),we(Ve)):Ve.preventDefault(),d(pr)},Pe=function(Ve){var Jt=Wa({},c);pe.mutateFieldData(Jt,t.field,Ve),d(Jt);var ar=t.getEditingRowData();ar&&pe.mutateFieldData(ar,t.field,Ve),x.current=Jt},Oe=function(Ve){t.onClick(Ve,re(Ve),Y(),i,a,t.column,ce)},Ke=function(Ve){var Jt=re(Ve);t.onMouseDown&&t.onMouseDown(Jt)},St=function(Ve){var Jt=re(Ve);t.onMouseUp&&t.onMouseUp(Jt)},st=function(Ve){if(t.editMode!=="row"&&((Ve.code==="Enter"||Ve.code==="NumpadEnter"||Ve.code==="Tab")&&Ae(Ve,!0),Ve.code==="Escape"&&Ae(Ve,!1)),t.allowCellSelection){var Jt=Ve.target,ar=Ve.currentTarget;switch(Ve.code){case"ArrowLeft":var pr=t.findPrevSelectableCell(ar);pr&&(changeTabIndex(ar,pr),pr.focus()),Ve.preventDefault();break;case"ArrowRight":var gr=t.findNextSelectableCell(ar);gr&&(changeTabIndex(ar,gr),gr.focus()),Ve.preventDefault();break;case"ArrowUp":var en=t.findUpSelectableCell(ar,index);en&&(changeTabIndex(ar,en),en.focus()),Ve.preventDefault();break;case"ArrowDown":var Wr=t.findDownSelectableCell(ar,index);Wr&&(changeTabIndex(ar,Wr),Wr.focus()),Ve.preventDefault();break;case"Enter":case"NumpadEnter":Ve.shiftKey||Ve.ctrlKey||le.isClickable(Jt)||(Oe(Ve),Ve.preventDefault());break;case"Space":!le.isClickable(Jt)&&!Jt.readOnly&&(Oe(Ve),Ve.preventDefault());break}}},yt=function(Ve){t.editMode!=="row"&&i&&U("cellEditValidatorEvent")==="blur"&&Ae(Ve,!0)},$e=function(Ve){Oe(Ve)},ot=function(Ve){t.onRadioChange({originalEvent:Ve,data:t.rowData,index:t.rowIndex})},it=function(Ve){t.onRowToggle({originalEvent:Ve,data:t.rowData}),Ve.preventDefault(),Ve.stopPropagation()},Ie=function(Ve){t.onRowEditInit({originalEvent:Ve,data:t.rowData,newData:t.getEditingRowData(),field:t.field,index:t.rowIndex})},tt=function(Ve){t.onRowEditSave({originalEvent:Ve,data:t.rowData,newData:t.getEditingRowData(),field:t.field,index:t.rowIndex}),t.focusOnInit(R,v)},mt=function(Ve){t.onRowEditCancel({originalEvent:Ve,data:t.rowData,newData:t.getEditingRowData(),field:t.field,index:t.rowIndex}),t.focusOnInit(R,v)};S.useEffect(function(){t.frozenCol&&t.updateStickyPosition(v,t.frozenCol,t.alignFrozenCol,y,b),(t.editMode==="cell"||t.editMode==="row")&&t.focusOnElement(A,i,v,C)},[t.editMode,t.editing,i,t.frozenCol,t.alignFrozenCol]),S.useEffect(function(){t.editMode==="row"&&t.editing!==i&&a(t.editing)},[t.editMode,t.editing,i]),hn(function(){if(t.editMode==="cell"||t.editMode==="row"){var At=t.getEditingRowData();d(At),x.current=At}},[t.editingMeta]),S.useEffect(function(){if(t.editMode==="cell"||t.editMode==="row"){var At=re(),Ve=Wa(Wa({},At),{},{editing:i,editingKey:t.editingKey});t.onEditingMetaChange(Ve)}},[i]),Ci(function(){x.current&&(x.current=null)});var Wt=function(){var Ve=t.getVirtualScrollerOption("getLoaderOptions")(t.rowIndex,{cellIndex:t.index,cellFirst:t.index===0,cellLast:t.index===t.getVirtualScrollerOption("columns").length-1,cellEven:t.index%2===0,cellOdd:t.index%2!==0,column:t.column,field:t.field}),Jt=pe.getJSXElement(t.getVirtualScrollerOption("loadingTemplate"),Ve),ar=r(G("bodyCell"),{role:"cell"});return S.createElement("td",ar,Jt)},cr=function(){var Ve,Jt,ar=t.allowCellSelection&&t.isCellSelected,pr=t.editMode==="row",gr=t.getTabIndex(ar,t.index),en=U("selectionMode"),Wr=U("rowReorder"),Xr=U("header"),Pr=U("body"),Br=U("editor"),Hr=t.frozenCol,jr=U("align"),zr=t.resolveFieldData(),Jr={column:t.column,field:t.field,rowIndex:t.rowIndex,frozenRow:t.frozenRow,props:t.tableProps},In=pe.getPropValue(U("rowEditor"),t.rowData,Jr),tn=pe.getPropValue(U("expander"),t.rowData,Jr),vr=pe.getPropValue(t.cellClassName,zr,Jr),at=pe.getPropValue(U("bodyClassName"),t.rowData,Jr),Pt=oe(),pt=r({className:$("columnTitle")},G("columnTitle")),Rt=t.responsiveLayout==="stack"&&S.createElement("span",pt,pe.getJSXElement(Xr,{props:t.tableProps}));if(en){var rt=t.showSelectionElement?t.showSelectionElement(t.rowData,{rowIndex:t.rowIndex,props:t.tableProps}):!0,ge;if(rt){var be=t.selectionAriaLabel||t.tableProps.dataKey,We=pe.resolveFieldData(t.rowData,be);ge="".concat(t.isRowSelected?Bo("unselectRow"):Bo("selectRow")," ").concat(We)}Ve=rt&&S.createElement(S.Fragment,null,en==="single"&&S.createElement(yF,{hostName:t.hostName,column:t.column,checked:t.isRowSelected,disabled:!t.isSelectable({data:t.rowData,index:t.rowIndex}),onChange:ot,tabIndex:t.tabIndex,tableSelector:t.tableSelector,ariaLabel:ge,ptCallbacks:t.ptCallbacks,metaData:t.metaData,unstyled:t.unstyled}),en==="multiple"&&S.createElement(gF,{hostName:t.hostName,column:t.column,checked:t.isRowSelected,disabled:!t.isSelectable({data:t.rowData,index:t.rowIndex}),onChange:t.onCheckboxChange,tabIndex:t.tabIndex,ariaLabel:ge,checkIcon:t.checkIcon,ptCallbacks:t.ptCallbacks,metaData:t.metaData,unstyled:t.unstyled}))}else if(Wr){var Gt=t.showRowReorderElement?t.showRowReorderElement(t.rowData,{rowIndex:t.rowIndex,props:t.tableProps}):!0,Qt=U("rowReorderIcon"),Zt=r({className:$("rowReorderIcon")},Qt?null:G("rowReorderIcon")),Cr=Qt||S.createElement(sF,Zt);Ve=Gt?nn.getJSXIcon(Cr,Wa({},Zt),{props:t}):null}else if(tn){var zt=r({className:$("rowTogglerIcon"),"aria-hidden":!0},G("rowTogglerIcon")),Qe=t.expanded?t.expandedRowIcon||S.createElement(hg,zt):t.collapsedRowIcon||S.createElement(mg,zt),Et=nn.getJSXIcon(Qe,Wa({},zt),{props:t}),Ht="".concat(t.tableSelector,"_content_").concat(t.rowIndex,"_expanded"),ur=t.selectionAriaLabel||t.tableProps.dataKey,Dr=pe.resolveFieldData(t.rowData,ur),pn="".concat(t.expanded?Bo("collapseLabel"):Bo("expandLabel")," ").concat(Dr),Ln={onClick:it,className:$("rowToggler")},Qn=r(Wa(Wa({},Ln),{},{type:"button","aria-expanded":t.expanded,"aria-controls":Ht,tabIndex:t.tabIndex,"aria-label":pn}),G("rowToggler"));Ve=S.createElement("button",Qn,Et,S.createElement(Co,null)),Pr&&(Ln.element=Ve,Ve=pe.getJSXElement(Pr,t.rowData,{column:t.column,field:t.field,rowIndex:t.rowIndex,frozenRow:t.frozenRow,props:t.tableProps,expander:Ln}))}else if(pr&&In){var gn={},Re=r({className:$("rowEditorSaveIcon")},G("rowEditorSaveIcon")),Xe=r({className:$("rowEditorCancelIcon")},G("rowEditorCancelIcon")),Ce=r({className:$("rowEditorInitIcon")},G("rowEditorInitIcon")),Te=nn.getJSXIcon(t.rowEditorSaveIcon||S.createElement(Cc,Re),Wa({},Re),{props:t}),et=nn.getJSXIcon(t.rowEditorCancelIcon||S.createElement(wc,Xe),Wa({},Xe),{props:t}),ht=nn.getJSXIcon(t.rowEditorInitIcon||S.createElement(lF,Ce),Wa({},Ce),{props:t});if(i){gn={editing:!0,onSaveClick:tt,saveClassName:$("rowEditorSaveButton"),onCancelClick:mt,cancelClassName:$("rowEditorCancelButton")};var Ft=r({type:"button",name:"row-save","aria-label":Bo("saveEdit"),onClick:gn.onSaveClick,className:gn.saveClassName,tabIndex:t.tabIndex,"data-p-row-editor-save":!0},G("rowEditorSaveButton")),tr=r({type:"button",name:"row-cancel","aria-label":Bo("cancelEdit"),onClick:gn.onCancelClick,className:gn.cancelClassName,tabIndex:t.tabIndex},G("rowEditorCancelButton"));Ve=S.createElement(S.Fragment,null,S.createElement("button",Ft,Te,S.createElement(Co,null)),S.createElement("button",tr,et,S.createElement(Co,null)))}else{gn={editing:!1,onInitClick:Ie,initClassName:$("rowEditorInitButton")};var Lt=r({type:"button",name:"row-edit","aria-label":Bo("editRow"),onClick:gn.onInitClick,className:gn.initClassName,tabIndex:t.tabIndex,"data-p-row-editor-init":!0},G("rowEditorInitButton"));Ve=S.createElement("button",Lt,ht,S.createElement(Co,null))}Pr&&(gn.element=Ve,Ve=pe.getJSXElement(Pr,t.rowData,{column:t.column,field:t.field,rowIndex:t.rowIndex,frozenRow:t.frozenRow,props:t.tableProps,rowEditor:gn}))}else Pr&&(!i||!Br)?Ve=Pr?pe.getJSXElement(Pr,t.rowData,{column:t.column,field:t.field,rowIndex:t.rowIndex,frozenRow:t.frozenRow,props:t.tableProps}):zr:Br&&i?Ve=pe.getJSXElement(Br,{rowData:c,value:t.resolveFieldData(c),column:t.column,field:t.field,rowIndex:t.rowIndex,frozenRow:t.frozenRow,props:t.tableProps,editorCallback:Pe}):Ve=zr;if(Ve=typeof Ve=="boolean"?Ve.toString():Ve,!pr&&Br){var Je=r({tabIndex:"0",className:"p-cell-editor-key-helper p-hidden-accessible",onFocus:function(Kt){return $e(Kt)}},G("editorKeyHelperLabel")),vt=r(G("editorKeyHelper"));Jt=S.createElement("a",Yn({ref:C},Je),S.createElement("span",vt))}var jt=r({style:Pt,className:dt(at,U("className"),vr,$("bodyCell",{selectionMode:en,editor:Br,editingState:i,frozen:Hr,cellSelected:ar,align:jr,bodyProps:t,getCellParams:Se})),rowSpan:t.rowSpan,tabIndex:gr,role:"cell",onClick:function(Kt){return Oe(Kt)},onKeyDown:function(Kt){return st(Kt)},onBlur:function(Kt){return yt(Kt)},onMouseDown:function(Kt){return Ke(Kt)},onMouseUp:function(Kt){return St(Kt)},"data-p-selectable-cell":t.allowCellSelection&&t.isSelectable({data:Se(),index:t.rowIndex}),"data-p-selection-column":U("selectionMode")!=null,"data-p-editable-column":Y()!=null,"data-p-cell-editing":i,"data-p-frozen-column":Hr},G("root"),G("bodyCell"));return S.createElement("td",Yn({ref:v},jt),Jt,Rt,Ve)};return t.getVirtualScrollerOption("loading")?Wt():cr()},SF=S.memo(function(e){return S.createElement(bF,e)},function(e,t){if(t.cellMemo===!1)return!1;var r=["isRowSelected","field","allowCellSelection","isCellSelected","editMode","index","tabIndex","editing","expanded","editingMeta","rowData"];return pe.selectiveCompare(e,t,r)});SF.displayName="RadioCheckCell";var jZ=["rowData","field","allowCellSelection","isCellSelected","editMode","index","tabIndex","editing","expanded","editingMeta","frozenCol","alignFrozenCol"],EF=S.memo(function(e){return S.createElement(bF,e)},function(e,t){if(t.cellMemo===!1)return!1;var r=t.cellMemoProps,n=Array.isArray(r)&&r.every(function(a){return typeof a=="string"})?r:jZ,o=t.cellMemoPropsDepth,i=typeof o=="number"&&o>0?o:1;return pe.selectiveCompare(e,t,n,i)});EF.displayName="BodyCell";function b3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function S3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var CF=S.memo(function(e){var t=Vr(),r=S.useState(!1),n=Kn(r,2),o=n[0],i=n[1],a=e.onRowEditChange?e.editing:o,s=e.ptCallbacks,l=s.ptm,c=s.cx,d=!e.allowCellSelection&&e.selected||e.contextMenuSelected,p=function(ge){return l(ge,{parent:e.metaData,hostName:e.hostName,state:{editing:a},context:{index:e.index,selectable:e.allowRowSelection&&e.isSelectable({data:e.rowData,index:e.rowIndex}),selected:d,stripedRows:e.metaData.props.stripedRows}})},m=function(ge,be){return zo.getCProp(ge,be)},y=function(){return e.selectionMode&&e.selectionModeInColumn!=="single"&&e.selectionModeInColumn!=="multiple"},b=function(ge){var be=m(ge,"field");return e.groupRowsBy&&be?Array.isArray(e.groupRowsBy)?e.groupRowsBy.indexOf(be)>-1:e.groupRowsBy===be:!1},v=function(ge,be){return e.compareSelectionBy==="equals"?ge===be:pe.equals(ge,be,e.dataKey)},C=function(){return y()&&!e.allowCellSelection?e.rowIndex===0?e.tabIndex:-1:null},A=function(ge,be){return(ge||[]).findIndex(function(We){return v(be,We)})},R=function(ge,be){ge&&be&&(ge.tabIndex=-1,be.tabIndex=e.tabIndex)},x=function(ge){var be=le.findSingle(ge.parentNode,"tr[data-p-selectable-row]");return be||null},k=function(ge){var be=ge.nextElementSibling;return be?le.getAttribute(be,"data-p-selectable-row")===!0?be:k(be):null},D=function(ge){var be=ge.previousElementSibling;return be?le.getAttribute(be,"data-p-selectable-row")===!0?be:D(be):null},F=function(ge){var be=le.findSingle(ge.parentNode,"tr[data-p-selectable-row]:last-child");return be||null},$=function(ge,be,We){if(m(be,"hidden"))return!1;if(e.rowGroupMode&&e.rowGroupMode==="rowspan"&&b(be)){var Gt=ge[We-1];if(Gt){var Qt=pe.resolveFieldData(ge[We],m(be,"field")),Zt=pe.resolveFieldData(Gt,m(be,"field"));return Qt!==Zt}}return!0},U=function(ge,be,We){if(b(be)){for(var Gt=pe.resolveFieldData(ge[We],m(be,"field")),Qt=Gt,Zt=0;Gt===Qt;){Zt++;var Cr=ge[++We];if(Cr)Qt=pe.resolveFieldData(Cr,m(be,"field"));else break}return Zt===1?null:Zt}return null},G=function(ge){e.onRowClick({originalEvent:ge,data:e.rowData,index:e.rowIndex})},Y=function(ge){e.onRowDoubleClick({originalEvent:ge,data:e.rowData,index:e.rowIndex})},Q=function(ge){e.onRowPointerDown({originalEvent:ge,data:e.rowData,index:e.rowIndex})},me=function(ge){e.onRowPointerUp({originalEvent:ge,data:e.rowData,index:e.rowIndex})},ne=function(ge){e.onRowRightClick({originalEvent:ge,data:e.rowData,index:e.rowIndex})},Ee=function(ge){e.onRowMouseEnter({originalEvent:ge,data:e.rowData,index:e.rowIndex})},ce=function(ge){e.onRowMouseLeave({originalEvent:ge,data:e.rowData,index:e.rowIndex})},_e=function(ge){e.onRowTouchEnd(ge)},Ne=function(ge){if(y()&&!e.allowCellSelection){var be=ge.target,We=ge.currentTarget;switch(ge.code){case"ArrowDown":oe(We,ge);break;case"ArrowUp":Se(We,ge);break;case"Home":re(We,ge);break;case"End":we(We,ge);break;case"Enter":case"NumpadEnter":Ae(We,ge,be);break;case"Space":Pe(We,ge,be);break;case"Tab":Oe(We,ge);break}}},oe=function(ge,be){var We=k(ge);We&&(R(ge,We),We.focus()),be.preventDefault()},Se=function(ge,be){var We=D(ge);We&&(R(ge,We),We.focus()),be.preventDefault()},re=function(ge,be){var We=x(ge);We&&(R(ge,We),We.focus()),be.preventDefault()},we=function(ge,be){var We=F(ge);We&&(R(ge,We),We.focus()),be.preventDefault()},Ae=function(ge,be,We){le.isClickable(We)||(G(be),be.preventDefault())},Pe=function(ge,be,We){!le.isClickable(We)&&!We.readOnly&&(G(be),be.preventDefault())},Oe=function(ge,be){var We=ge.parentNode,Gt=le.find(We,'tr[data-p-selectable-row="true"]');if(be.code==="Tab"&&Gt&&Gt.length>0){var Qt=le.findSingle(We,'tr[data-p-highlight="true"]'),Zt=le.findSingle(We,'tr[data-p-selectable-row="true"][tabindex="0"]');Qt?(Qt.tabIndex="0",Zt&&Zt!==Qt&&(Zt.tabIndex="-1")):(Gt[0].tabIndex="0",Zt!==Gt[0]&&(Gt[e.rowIndex].tabIndex="-1"))}},Ke=function(ge){e.onRowMouseDown({originalEvent:ge,data:e.rowData,index:e.rowIndex})},St=function(ge){e.onRowMouseUp({originalEvent:ge,data:e.rowData,index:e.rowIndex})},st=function(ge){e.onRowDragStart({originalEvent:ge,data:e.rowData,index:e.rowIndex})},yt=function(ge){e.onRowDragOver({originalEvent:ge,data:e.rowData,index:e.rowIndex})},$e=function(ge){e.onRowDragLeave({originalEvent:ge,data:e.rowData,index:e.rowIndex})},ot=function(ge){e.onRowDragEnd({originalEvent:ge,data:e.rowData,index:e.rowIndex})},it=function(ge){e.onRowDrop({originalEvent:ge,data:e.rowData,index:e.rowIndex})},Ie=function(ge,be){if(e.onRowEditChange){var We,Gt=e.dataKey,Qt=ge.originalEvent,Zt=ge.data,Cr=ge.index,zt=ge.newData;if(Gt){var Qe=String(pe.resolveFieldData(Zt,Gt));if(We=e.editingRows?S3({},e.editingRows):{},be)We[Qe]=!0;else{delete We[Qe];var Et=String(pe.resolveFieldData(zt,Gt));delete We[Et]}}else{var Ht=A(e.editingRows,Zt);We=e.editingRows?Xo(e.editingRows):[],Ht!==-1?We=We.filter(function(ur,Dr){return Dr!==Ht}):We.push(Zt)}e.onRowEditChange({originalEvent:Qt,data:We,index:Cr})}else i(be)},tt=function(ge){var be=ge.originalEvent;e.onRowEditInit&&e.onRowEditInit({originalEvent:be,data:e.rowData,index:e.rowIndex}),Ie(ge,!0),be.preventDefault()},mt=function(ge){var be=ge.originalEvent,We=ge.newData,Gt=e.rowEditValidator?e.rowEditValidator(We,{props:e.tableProps,rowIndex:e.rowIndex}):!0;e.onRowEditSave&&e.onRowEditSave({originalEvent:be,data:e.rowData,index:e.rowIndex,newData:We,valid:Gt}),Gt&&(e.onRowEditComplete&&e.onRowEditComplete(ge),Ie(ge,!1)),be.preventDefault()},Wt=function(ge){var be=ge.originalEvent;e.onRowEditCancel&&e.onRowEditCancel({originalEvent:be,data:e.rowData,index:e.rowIndex}),Ie(ge,!1),be.preventDefault()},cr=function(ge){return e.compareSelectionBy==="equals"?ge===e.rowData:pe.equals(ge,e.rowData,e.dataKey)},At=function(ge,be,We){return ge&&(ge.rowIndex===e.rowIndex||cr(ge.rowData))&&(ge.field===be||ge.cellIndex===We)},Ve=function(ge,be,We){return(ge||[]).findIndex(function(Gt){return At(Gt,be,We)})},Jt=function(ge,be,We){return ge?ge instanceof Array?Ve(ge,be,We)>-1:At(ge,be,We):!1},ar=function(ge){e.onCheckboxChange({originalEvent:ge,data:e.rowData,index:e.rowIndex})},pr=e.dataKey&&e.rowData&&e.rowData[e.dataKey]||e.rowIndex,gr=S.useCallback(function(rt){return e.virtualScrollerOptions?e.virtualScrollerOptions[rt]:null},[e.virtualScrollerOptions]),en=function(){return e.editingMeta&&e.editingMeta[pr]?e.editingMeta[pr].data:e.rowData},Wr=S.useCallback(function(rt,ge){return e.allowCellSelection?rt?0:e.rowIndex===0&&ge===0?e.tabIndex:-1:null},[e.allowCellSelection,e.rowIndex,e.tabIndex]),Xr=S.useCallback(function(rt){var ge=rt.nextElementSibling;return ge?le.getAttribute(ge,"data-p-selectable-cell")?ge:Xr(ge):null},[]),Pr=S.useCallback(function(rt){var ge=rt.previousElementSibling;return ge?le.getAttribute(ge,"data-p-selectable-cell")?ge:Pr(ge):null},[]),Br=S.useCallback(function(rt,ge){var be=rt.parentElement.nextElementSibling,We=be?be.children[ge]:null;return be&&We?le.getAttribute(be,"data-p-selectable-row")&&le.getAttribute(We,"data-p-selectable-cell")?We:Br(We):null},[]),Hr=S.useCallback(function(rt,ge){var be=rt.parentElement.previousElementSibling,We=be?be.children[ge]:null;return be&&We?le.getAttribute(be,"data-p-selectable-row")&&le.getAttribute(We,"data-p-selectable-cell")?We:Hr(We):null},[]),jr=S.useCallback(function(rt,ge,be,We){clearTimeout(rt.current),rt.current=setTimeout(function(){if(ge){var Gt=e.editMode==="cell"?le.getFirstFocusableElement(be.current,':not([data-pc-section="editorkeyhelperlabel"])'):le.findSingle(be.current,'[data-p-row-editor-save="true"]');Gt&&Gt.focus()}We.current&&(We.current.tabIndex=ge?-1:0)},1)},[e.editMode]),zr=S.useCallback(function(rt,ge){clearTimeout(rt.current),rt.current=setTimeout(function(){var be=e.editMode==="row"?le.findSingle(ge.current,'[data-p-row-editor-init="true"]'):null;be&&be.focus()},1)},[e.editMode]),Jr=S.useCallback(function(rt,ge,be,We,Gt){if(ge){var Qt=S3({},We);if(be==="right"){var Zt=0,Cr=rt.current&&rt.current.nextElementSibling;Cr&&Cr.classList.contains("p-frozen-column")&&(Zt=le.getOuterWidth(Cr)+parseFloat(Cr.style.right||0)),Qt.right=Zt+"px"}else{for(var zt=0,Qe=rt.current&&rt.current.previousElementSibling;Qe;){if(Qe.classList.contains("p-frozen-column")){zt=le.getOuterWidth(Qe)+parseFloat(Qe.style.left||0),rt.current.style.left=zt+"px";break}Qe=Qe.previousElementSibling}Qt.left=zt+"px"}var Et=We.left===Qt.left&&We.right===Qt.right;!Et&&Gt(Qt)}},[]),In=function(ge,be,We,Gt,Qt,Zt,Cr){if(e.editMode!=="row"&&We&&!Gt&&(e.selectOnEdit||!e.selectOnEdit&&e.isRowSelected)){var zt=m(Zt,"onBeforeCellEditShow"),Qe=m(Zt,"onCellEditInit"),Et=m(Zt,"cellEditValidatorEvent");if(zt&&(zt(be)===!1||ge&&ge.defaultPrevented))return;setTimeout(function(){Qt(!0),!(Qe&&(Qe(be)===!1||ge&&ge.defaultPrevented))&&Et==="click"&&Cr()},1)}e.allowCellSelection&&e.onCellClick&&e.onCellClick(be)},tn=function(){return e.columns.map(function(ge,be){if($(e.value,ge,e.index)){var We="".concat(e.rowIndex,"_").concat(m(ge,"columnKey")||m(ge,"field"),"_").concat(be),Gt=e.rowGroupMode==="rowspan"?U(e.value,ge,e.index):null,Qt=m(ge,"field")||"field_".concat(be),Zt=function(Et){return pe.resolveFieldData(Et||e.rowData,Qt)},Cr=m(ge,"selectionMode"),zt=t({hostName:e.hostName,allowCellSelection:e.allowCellSelection,cellMemo:e.cellMemo,cellMemoProps:e.cellMemoProps,cellMemoPropsDepth:e.cellMemoPropsDepth,cellClassName:e.cellClassName,checkIcon:e.checkIcon,collapsedRowIcon:e.collapsedRowIcon,field:Qt,resolveFieldData:Zt,column:ge,cProps:e.colsProps[be],dataKey:e.dataKey,editMode:e.editMode,editing:a,editingMeta:e.editingMeta,onEditingMetaChange:e.onEditingMetaChange,editingKey:pr,getEditingRowData:en,expanded:e.expanded,expandedRowIcon:e.expandedRowIcon,frozenRow:e.frozenRow,frozenCol:m(ge,"frozen"),alignFrozenCol:m(ge,"alignFrozen"),index:be,isSelectable:e.isSelectable,onCheckboxChange:ar,onClick:In,onMouseDown:e.onCellMouseDown,onMouseUp:e.onCellMouseUp,onRadioChange:e.onRadioChange,onRowEditCancel:Wt,onRowEditInit:tt,onRowEditSave:mt,onRowToggle:e.onRowToggle,responsiveLayout:e.responsiveLayout,rowData:e.rowData,rowEditorCancelIcon:e.rowEditorCancelIcon,rowEditorInitIcon:e.rowEditorInitIcon,rowEditorSaveIcon:e.rowEditorSaveIcon,rowIndex:e.rowIndex,rowSpan:Gt,selectOnEdit:e.selectOnEdit,isRowSelected:d,isCellSelected:Jt(e.selection,Qt,be),selectionAriaLabel:e.tableProps.selectionAriaLabel,showRowReorderElement:e.showRowReorderElement,showSelectionElement:e.showSelectionElement,tabIndex:e.tabIndex,getTabIndex:Wr,tableProps:e.tableProps,tableSelector:e.tableSelector,value:e.value,getVirtualScrollerOption:gr,ptCallbacks:e.ptCallbacks,metaData:e.metaData,unstyled:e.unstyled,findNextSelectableCell:Xr,findPrevSelectableCell:Pr,findDownSelectableCell:Br,findUpSelectableCell:Hr,focusOnElement:jr,focusOnInit:zr,updateStickyPosition:Jr});return S.createElement(ae.Fragment,{key:We},Cr?S.createElement(SF,zt):S.createElement(EF,zt))}return null})},vr=pe.getPropValue(e.rowClassName,e.rowData,{props:e.tableProps}),at={height:e.virtualScrollerOptions?e.virtualScrollerOptions.itemSize:void 0},Pt=tn(),pt=C(),Rt=t({role:"row",tabIndex:pt,className:dt(c("bodyRow",{rowProps:e})),style:at,onMouseDown:function(ge){return Ke(ge)},onMouseUp:function(ge){return St(ge)},onMouseEnter:function(ge){return Ee(ge)},onMouseLeave:function(ge){return ce(ge)},onClick:function(ge){return G(ge)},onDoubleClick:function(ge){return Y(ge)},onPointerDown:function(ge){return Q(ge)},onPointerUp:function(ge){return me(ge)},onContextMenu:function(ge){return ne(ge)},onTouchEnd:function(ge){return _e(ge)},onKeyDown:function(ge){return Ne(ge)},onDragStart:function(ge){return st(ge)},onDragOver:function(ge){return yt(ge)},onDragLeave:function(ge){return $e(ge)},onDragEnd:function(ge){return ot(ge)},onDrop:function(ge){return it(ge)},"aria-selected":e!=null&&e.selectionMode?e.selected:null,"data-p-selectable-row":e.allowRowSelection&&e.isSelectable({data:e.rowData,index:e.rowIndex}),"data-p-highlight":e.selected,"data-p-highlight-contextmenu":e.contextMenuSelected},p("bodyRow"),{className:dt(vr)});return S.createElement("tr",Rt,Pt)});CF.displayName="BodyRow";function E3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function VZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?E3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):E3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var wF=S.memo(function(e){var t=Vr(),r=e.ptCallbacks,n=r.ptm,o=r.ptmo,i=r.cx;r.isUnstyled;var a=function(v){e.onClick({originalEvent:v,data:e.rowData})},s=function(){return zo.getCProps(e.column)},l=function(v){var C=s(),A={props:s(),parent:e.metaData,hostName:e.hostName};return t(n("column.".concat(v),{column:A}),n("column.".concat(v),A),o(C,v,A))},c=t({className:i("rowGroupTogglerIcon"),"aria-hidden":!0},n("rowGroupTogglerIcon"),l("rowGroupTogglerIcon")),d=e.expanded?e.expandedRowIcon||S.createElement(hg,c):e.collapsedRowIcon||S.createElement(mg,c),p=nn.getJSXIcon(d,VZ({},c),{props:e}),m=e.expanded?Bo("collapseLabel"):Bo("expandLabel"),y=t({type:"button",onClick:function(v){return a(v)},className:i("rowGroupToggler"),tabIndex:e.tabIndex,"aria-label":m},n("rowGroupToggler"),l("rowGroupToggler"));return S.createElement("button",y,p,S.createElement(Co,null))});wF.displayName="RowTogglerButton";var BZ=["originalEvent"];function C3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function ss(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?C3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var $y=S.memo(S.forwardRef(function(e,t){var r=Vr(),n=e.ptCallbacks,o=n.ptm,i=n.ptmo,a=n.cx,s=n.isUnstyled,l=S.useState({}),c=Kn(l,2),d=c[0],p=c[1],m=function(X){return zo.getCProps(X)},y=m(e.column),b=e.columns?e.columns.map(function(Vt){return m(Vt)}):[],v=function(X){var q={props:y,parent:e.metaData,hostName:e.hostName,state:{rowGroupHeaderStyleObject:d}};return r(o("column.".concat(X),{column:q}),o("column.".concat(X),q),i(y,X,q))},C=S.useRef(null),A=S.useCallback(function(Vt){C.current=Vt,e.virtualScrollerContentRef&&e.virtualScrollerContentRef(Vt)},[e]),R=S.useRef(null),x=S.useRef(null),k=S.useRef(null),D=S.useRef(null),F=S.useRef(null),$=S.useRef(null),U=S.useRef(!1),G=S.useRef(!1),Y=S.useRef(null),Q=S.useRef(null),me=e.rowGroupMode&&e.rowGroupMode==="subheader",ne=e.selectionMode==="radiobutton",Ee=e.selectionMode==="checkbox",ce=e.selectionModeInColumn==="single",_e=e.selectionModeInColumn==="multiple",Ne=function(X,q){return At()?(X.rowIndex===q.rowIndex||X.rowData===q.rowData)&&(X.field===q.field||X.cellIndex===q.cellIndex):e.compareSelectionBy==="equals"?X===q:pe.equals(X,q,e.dataKey)},oe=function(){return e.selectionMode||e.selectionModeInColumn!==null||e.columns&&e.columns.some(function(X){return X&&!!Jt(X,"selectionMode")})},Se=function(){return e.selectionMode==="single"&&!_e||!ne&&ce},re=function(){return e.selectionMode==="multiple"&&!ce||_e},we=function(){return ne&&ce},Ae=function(){return Ee&&_e},Pe=function(X){return X&&e.selection?e.selection instanceof Array?pr(e.selection,X)>-1:Ne(X,e.selection):!1},Oe=function(X){return X&&e.contextMenuSelection?Ne(X,e.contextMenuSelection):!1},Ke=function(X){return e.isDataSelectable?e.isDataSelectable(X):!0},St=function(X){if(X&&e.expandedRows){if(me&&e.expandableRowGroups)return st(X);if(e.dataKey){var q=pe.resolveFieldData(X,e.dataKey),he=!1;return e.expandedRows&&(Array.isArray(e.expandedRows)?he=e.expandedRows.some(function(ze){return pe.resolveFieldData(ze,e.dataKey)===q}):he=e.expandedRows[q]!==void 0),he}return pr(e.expandedRows,X)!==-1}return!1},st=function(X){return e.dataKey===e.groupRowsBy?Object.keys(e.expandedRows).some(function(q){return pe.equals(q,pe.resolveFieldData(X,e.dataKey))}):e.expandedRows.some(function(q){return pe.equals(q,X,e.groupRowsBy)})},yt=function(X){return e.editMode==="row"&&X&&e.editingRows?e.dataKey?e.editingRows?e.editingRows[pe.resolveFieldData(X,e.dataKey)]!==void 0:!1:pr(e.editingRows,X)!==-1:!1},$e=function(X){return e.dragSelection&&re()&&!X.originalEvent.shiftKey},ot=function(X){return!At()&&$e(X)||e.reorderableRows},it=function(X){return At()&&$e(X)},Ie=function(X){return!le.isClickable(X.originalEvent.target)},tt=S.useRef(e.metaKeySelection);S.useEffect(function(){tt.current=e.metaKeySelection},[e.metaKeySelection]);var mt=function(X){return!U.current&&(!tt.current||tt.current&&(X.originalEvent.metaKey||X.originalEvent.ctrlKey))},Wt=function(X){return re()&&X.originalEvent.shiftKey&&k.current!==null},cr=function(){return(e.selectionMode||e.selectionModeInColumn)&&!we()&&!Ae()},At=function(){return e.cellSelection&&!ce&&!_e},Ve=function(){return e.columns?e.columns.length:0},Jt=function(X,q){return zo.getCProp(X,q)},ar=function(X,q){return q=q||e.virtualScrollerOptions,q?q[X]:null},pr=function(X,q){return(X||[]).findIndex(function(he){return Ne(q,he)})},gr=function(){return e.scrollable?{top:d.top}:null},en=function(X,q){return e.dataKey?pe.resolveFieldData(X,e.dataKey):q},Wr=function(X,q,he){var ze=pe.resolveFieldData(q,e.groupRowsBy),lt=X[he-1];if(lt){var ct=pe.resolveFieldData(lt,e.groupRowsBy);return!pe.deepEquals(ze,ct)}return!0},Xr=function(X,q,he,ze){if(e.expandableRowGroups&&!ze)return!1;var lt=pe.resolveFieldData(q,e.groupRowsBy),ct=X[he+1];if(ct){var yr=pe.resolveFieldData(ct,e.groupRowsBy);return!pe.deepEquals(lt,yr)}return!0},Pr=function(){C.current.style.top=le.getOuterHeight(C.current.previousElementSibling)+"px"},Br=function(){var X=le.getOuterHeight(C.current.previousElementSibling),q=X+"px";d.top!==q&&p({top:q})},Hr=S.useRef(e.selection);S.useEffect(function(){Hr.current=e.selection},[e.selection]);var jr=function(X){var q=X.originalEvent,he=X.data,ze=X.index,lt=X.toggleable,ct=X.type;if(Ke({data:he,index:ze})){var yr=Pe(he),fr=Hr.current||[],Ir=fr;yr?lt&&(Ir=null,Pt({originalEvent:q,data:he,type:ct})):(Ir=he,at({originalEvent:q,data:he,type:ct})),Rt(q,!0),e.onSelectionChange&&Ir!==fr&&e.onSelectionChange({originalEvent:q,value:Ir,type:ct})}},zr=function(X){var q=X.originalEvent,he=X.data,ze=X.index,lt=X.toggleable,ct=X.type;if(Ke({data:he,index:ze})){var yr=Pe(he),fr=Hr.current||[],Ir=fr;if(yr)if(lt){var Pn=pr(fr,he);Ir=fr.filter(function(so,xn){return xn!==Pn}),Pt({originalEvent:q,data:he,type:ct})}else fr.length&&(fr.forEach(function(so){return Pt({originalEvent:q,data:so,type:ct})}),Ir=[he],at({originalEvent:q,data:he,type:ct}));else Ir=pe.isObject(fr)?[fr]:fr,Ir=lt&&re()?[].concat(Xo(Ir),[he]):[he],at({originalEvent:q,data:he,type:ct});e.onSelectionChange&&Ir!==fr&&e.onSelectionChange({originalEvent:q,value:Ir,type:ct})}},Jr=function(X,q){le.clearSelection(),F.current=At()?X.rowIndex:X.index;var he=In(X);e.onSelectionChange&&he!==e.selection&&e.onSelectionChange({originalEvent:X.originalEvent,value:he,type:q}),k.current=F.current,D.current=X.cellIndex},In=function(X){var q,he,ze=At();return F.current>k.current?(q=k.current,he=F.current):F.current<k.current?(q=F.current,he=k.current):q=he=F.current,ze?vr(X,q,he):tn(X,q,he)},tn=function(X,q,he){for(var ze=[],lt=q;lt<=he;lt++){var ct=e.processedData[lt];Ke({data:ct,index:lt})&&(ze.push(ct),at({originalEvent:X.originalEvent,data:ct,type:"row"}))}return ze},vr=function(X,q,he){var ze,lt,ct=X.cellIndex;ct>D.current?(ze=D.current,lt=ct):ct<D.current?(ze=ct,lt=D.current):ze=lt=ct;for(var yr=e.value,fr=[],Ir=q;Ir<=he;Ir++)for(var Pn=yr[Ir],so=e.columns,xn=e.paginator?Ir+e.first:Ir,xr=ze;xr<=lt;xr++){var An=Jt(so[xr],"field"),lo=pe.resolveFieldData(Pn,An),Dn={value:lo,field:An,rowData:Pn,rowIndex:xn,cellIndex:xr,selected:!0};Ke({data:Dn,index:Ir})&&(fr.push(Dn),at({originalEvent:X.originalEvent,data:Dn,type:"cell"}))}return fr},at=function(X){At()?e.onCellSelect&&e.onCellSelect(ss(ss({originalEvent:X.originalEvent},X.data),{},{type:X.type})):e.onRowSelect&&e.onRowSelect(X)},Pt=function(X){At()?e.onCellUnselect&&e.onCellUnselect(ss(ss({originalEvent:X.originalEvent},X.data),{},{type:X.type})):e.onRowUnselect&&e.onRowUnselect(X)},pt=function(X){e.dragSelection&&!R.current&&(R.current=document.createElement("div"),R.current.setAttribute("p-datatable-drag-selection-helper","true"),!s()&&le.addClass(R.current,"p-datatable-drag-selection-helper"),x.current={x:X.clientX,y:X.clientY},R.current.style.top="".concat(X.pageY,"px"),R.current.style.left="".concat(X.pageX,"px"),tr())},Rt=function(X,q){var he=X.currentTarget;if(!At()&&e.selectionAutoFocus){if(_e){var ze=le.findSingle(he,'td[data-p-selection-column="true"] [data-pc-section="checkbox"]');ze&&ze.focus()}else if(ce){var lt=le.findSingle(he,'td[data-p-selection-column="true"] input[type="radio"]');lt&&lt.focus()}}!q&&he&&he.focus()},rt=function(X,q){var he=X.currentTarget,ze=le.getAttribute(he,q==="cell"?"data-p-selectable-cell":"data-p-selectable-row")===!0;if(ze){var lt=q==="cell"?"tr > td":"tr",ct=le.findSingle(C.current,"".concat(lt,'[tabindex="').concat(e.tabIndex,'"]'));ct&&he&&(ct.tabIndex=-1,he.tabIndex=e.tabIndex)}},ge=function(X){if(!(X.defaultPrevented||X.originalEvent&&X.originalEvent.defaultPrevented||At()||!Ie(X))){if(e.onRowClick&&e.onRowClick(X),cr()){if(Wt(X))Jr(X,"row");else{var q=ce||_e||mt(X);k.current=X.index,F.current=X.index,$.current=e.first,Se()?jr(ss(ss({},X),{},{toggleable:q,type:"row"})):zr(ss(ss({},X),{},{toggleable:q,type:"row"}))}rt(X.originalEvent,"row")}else Rt(X.originalEvent);U.current=!1}},be=function(X){var q=X.originalEvent;le.isClickable(q.target)||e.onRowDoubleClick&&e.onRowDoubleClick(X)},We=function(X){var q=X.originalEvent;le.isClickable(q.target)||e.onRowPointerDown&&e.onRowPointerDown(X)},Gt=function(X){var q=X.originalEvent;le.isClickable(q.target)||e.onRowPointerUp&&e.onRowPointerUp(X)},Qt=function(X){if(e.onContextMenu||e.onContextMenuSelectionChange){var q=pe.isNotEmpty(e.selection),he=X.data;q&&le.clearSelection(),e.onContextMenuSelectionChange&&e.onContextMenuSelectionChange({originalEvent:X.originalEvent,value:he,index:X.index}),e.onContextMenu&&e.onContextMenu({originalEvent:X.originalEvent,data:he,index:X.index}),X.originalEvent.preventDefault()}},Zt=function(X){e.onRowMouseEnter&&e.onRowMouseEnter(X)},Cr=function(X){e.onRowMouseLeave&&e.onRowMouseLeave(X)},zt=function(){U.current=!0},Qe=function(X){var q=X.originalEvent,he=s()?le.getAttribute(q.target,"data-pc-section")==="rowreordericon"||q.target.closest('[data-pc-section="rowreordericon"]'):le.hasClass(q.target,"p-datatable-reorderablerow-handle")||q.target.closest(".p-datatable-reorderablerow-handle");q.currentTarget.draggable=he,ot(X)&&(pt(q),k.current=X.index,F.current=X.index,$.current=e.first)},Et=function(X){var q=X.index===k.current;ot(X)&&!q&&Jr(X,"row")},Ht=S.useRef(e.expandedRows);S.useEffect(function(){Ht.current=e.expandedRows},[e.expandedRows]);var ur=function(X){var q,he=e.dataKey,ze=e.groupRowsBy?he===e.groupRowsBy:!!he;if(ze){var lt=String(pe.resolveFieldData(X.data,he));q=Ht.current?ss({},Ht.current):{},q[lt]!=null?(delete q[lt],e.onRowCollapse&&e.onRowCollapse({originalEvent:X,data:X.data})):(q[lt]=!0,e.onRowExpand&&e.onRowExpand({originalEvent:X,data:X.data}))}else{var ct=pr(Ht.current,X.data);q=Ht.current?Xo(Ht.current):[],ct!==-1?(q=q.filter(function(yr,fr){return fr!==ct}),e.onRowCollapse&&e.onRowCollapse({originalEvent:X,data:X.data})):(q.push(X.data),e.onRowExpand&&e.onRowExpand({originalEvent:X,data:X.data}))}e.onRowToggle&&e.onRowToggle({data:q})},Dr=function(X){var q=X.originalEvent,he=X.index;ot(X)&&(G.current=!0,Y.current=he,q.dataTransfer.setData("text","b"))},pn=function(X){var q=X.originalEvent,he=X.index;if(G.current){if(Y.current!==he){var ze=q.currentTarget,lt=le.getOffset(ze).top+le.getWindowScrollTop(),ct=q.pageY+window.scrollY,yr=lt+le.getOuterHeight(ze)/2,fr=ze.previousElementSibling;ct<yr?(ze.setAttribute("data-p-datatable-dragpoint-bottom","false"),!s()&&le.removeClass(ze,"p-datatable-dragpoint-bottom"),Q.current=he,fr?(fr.setAttribute("data-p-datatable-dragpoint-bottom","true"),!s()&&le.addClass(fr,"p-datatable-dragpoint-bottom")):(ze.setAttribute("data-p-datatable-dragpoint-top","true"),!s()&&le.addClass(ze,"p-datatable-dragpoint-top"))):(fr?(fr.setAttribute("data-p-datatable-dragpoint-bottom","false"),!s()&&le.removeClass(fr,"p-datatable-dragpoint-bottom")):(ze.setAttribute("data-p-datatable-dragpoint-top","true"),!s()&&le.addClass(ze,"p-datatable-dragpoint-top")),he+1!==Y.current&&(Q.current=he+1),ze.setAttribute("data-p-datatable-dragpoint-bottom","true"),!s()&&le.addClass(ze,"p-datatable-dragpoint-bottom"))}q.preventDefault()}},Ln=function(X){var q=X.originalEvent,he=q.currentTarget,ze=he.previousElementSibling;ze&&(ze.setAttribute("data-p-datatable-dragpoint-bottom","false"),!s()&&le.removeClass(ze,"p-datatable-dragpoint-bottom")),he.setAttribute("data-p-datatable-dragpoint-bottom","false"),!s()&&le.removeClass(he,"p-datatable-dragpoint-bottom"),he.setAttribute("data-p-datatable-dragpoint-top","false"),!s()&&le.removeClass(he,"p-datatable-dragpoint-top")},Qn=function(X){var q=X.originalEvent;G.current=!1,Y.current=null,Q.current=null,q.currentTarget.draggable=!1},gn=function(X){var q=X.originalEvent;if(Q.current!=null){var he=Y.current>Q.current?Q.current:Q.current===0?0:Q.current-1,ze=Xo(e.tableProps.value);pe.reorderArray(ze,Y.current,he),e.onRowReorder&&e.onRowReorder({originalEvent:q,value:ze,dragIndex:Y.current,dropIndex:he})}Ln(X),Qn(X),q.preventDefault()},Re=function(X){jr(ss(ss({},X),{},{toggleable:!0,type:"radio"}))},Xe=function(X){zr(ss(ss({},X),{},{toggleable:!0,type:"checkbox"}))},Ce=function(X){var q=x.current,he=q.x,ze=q.y,lt=X.clientX-he,ct=X.clientY-ze;ct<0&&(R.current.style.top="".concat(X.pageY+5,"px")),lt<0&&(R.current.style.left="".concat(X.pageX+5,"px")),R.current.style.height="".concat(Math.abs(ct),"px"),R.current.style.width="".concat(Math.abs(lt),"px"),X.preventDefault()},Te=function(){R.current&&(R.current.remove(),R.current=null),document.removeEventListener("mousemove",Ce),document.removeEventListener("mouseup",Te)},et=function(X){if(Ie(X)){if(e.onCellClick&&e.onCellClick(X),At()){if(Wt(X))Jr(X,"cell");else{var q=mt(X),he=X.originalEvent,ze=OR(X,BZ);k.current=X.rowIndex,F.current=X.rowIndex,$.current=e.first,D.current=X.cellIndex,Se()?jr({originalEvent:he,data:ze,index:X.rowIndex,toggleable:q,type:"cell"}):zr({originalEvent:he,data:ze,index:X.rowIndex,toggleable:q,type:"cell"})}rt(X.originalEvent,"cell")}U.current=!1}},ht=function(X){it(X)&&(pt(X.originalEvent),k.current=X.rowIndex,F.current=X.rowIndex,$.current=e.first,D.current=X.cellIndex)},Ft=function(X){var q=X.rowIndex===k.current&&X.cellIndex===D.current;it(X)&&!q&&Jr(X,"cell")},tr=function(){document.addEventListener("mousemove",Ce),document.addEventListener("mouseup",Te),document.body.appendChild(R.current)},Lt=function(){Te()};S.useEffect(function(){e.frozenRow&&Pr(),e.scrollable&&e.rowGroupMode==="subheader"&&Br()}),hn(function(){e.paginator&&re()&&(k.current=null)},[e.first]),Ci(function(){e.dragSelection&&Lt()});var Je=function(){if(!e.loading){var X=Ve(),q=pe.getJSXElement(e.emptyMessage,{props:e.tableProps,frozen:e.frozenRow})||va("emptyMessage"),he=r({className:a("emptyMessage"),role:"row"},o("emptyMessage")),ze=r({colSpan:X,role:"cell"},v("root"),v("bodyCell"));return S.createElement("tr",he,S.createElement("td",ze,q))}return null},vt=function(X,q,he,ze){if(me&&Wr(e.value,X,q-e.first)){var lt=gr(),ct=e.expandableRowGroups&&S.createElement(wF,{hostName:e.hostName,onClick:ur,rowData:X,expanded:he,expandedRowIcon:e.expandedRowIcon,collapsedRowIcon:e.collapsedRowIcon,ptCallbacks:e.ptCallbacks,metaData:e.metaData,unstyled:s()}),yr={index:q,props:e.tableProps,customRendering:!1},fr=pe.getJSXElement(e.rowGroupHeaderTemplate,X,yr);if(!yr.customRendering){var Ir=r({colSpan:ze},v("root"),v("bodyCell")),Pn=r({className:a("rowGroupHeaderName")},o("rowGroupHeaderName"));fr=S.createElement("td",Ir,ct,S.createElement("span",Pn,fr))}var so=r({className:a("rowGroupHeader"),style:lt,role:"row"},o("rowGroupHeader"));return S.createElement("tr",so,fr)}return null},jt=function(X,q,he,ze){if(!e.expandableRowGroups||ze){var lt=oe()?Pe(X):!1,ct=Oe(X),yr=cr(),fr=At(),Ir=yt(X);return S.createElement(CF,{hostName:e.hostName,allowCellSelection:fr,allowRowSelection:yr,cellMemo:e.cellMemo,cellMemoProps:e.cellMemoProps,cellMemoPropsDepth:e.cellMemoPropsDepth,cellClassName:e.cellClassName,checkIcon:e.checkIcon,collapsedRowIcon:e.collapsedRowIcon,columns:e.columns,colsProps:b,compareSelectionBy:e.compareSelectionBy,contextMenuSelected:ct,dataKey:e.dataKey,editMode:e.editMode,editing:Ir,editingMeta:e.editingMeta,editingRows:e.editingRows,expanded:ze,expandedRowIcon:e.expandedRowIcon,frozenRow:e.frozenRow,groupRowsBy:e.groupRowsBy,index:he,isSelectable:Ke,onCellClick:et,onCellMouseDown:ht,onCellMouseUp:Ft,onCheckboxChange:Xe,onEditingMetaChange:e.onEditingMetaChange,onRadioChange:Re,onRowClick:ge,onRowDoubleClick:be,onRowPointerDown:We,onRowPointerUp:Gt,onRowDragEnd:Qn,onRowDragLeave:Ln,onRowDragOver:pn,onRowDragStart:Dr,onRowDrop:gn,onRowEditCancel:e.onRowEditCancel,onRowEditChange:e.onRowEditChange,onRowEditComplete:e.onRowEditComplete,onRowEditInit:e.onRowEditInit,onRowEditSave:e.onRowEditSave,onRowMouseDown:Qe,onRowMouseEnter:Zt,onRowMouseLeave:Cr,onRowMouseUp:Et,onRowRightClick:Qt,onRowToggle:ur,onRowTouchEnd:zt,responsiveLayout:e.responsiveLayout,rowClassName:e.rowClassName,rowData:X,rowEditValidator:e.rowEditValidator,rowEditorCancelIcon:e.rowEditorCancelIcon,rowEditorInitIcon:e.rowEditorInitIcon,rowEditorSaveIcon:e.rowEditorSaveIcon,rowGroupMode:e.rowGroupMode,rowIndex:q,selectOnEdit:e.selectOnEdit,selected:lt,selection:e.selection,selectionMode:e.selectionMode,selectionModeInColumn:e.selectionModeInColumn,showRowReorderElement:e.showRowReorderElement,showSelectionElement:e.showSelectionElement,tabIndex:e.tabIndex,tableProps:e.tableProps,tableSelector:e.tableSelector,value:e.value,virtualScrollerOptions:e.virtualScrollerOptions,ptCallbacks:e.ptCallbacks,metaData:e.metaData,unstyled:s()})}},nr=function(X,q,he,ze){if(he&&!(me&&e.expandableRowGroups)){var lt="".concat(e.tableSelector,"_content_").concat(q,"_expanded"),ct={index:q,customRendering:!1},yr=pe.getJSXElement(e.rowExpansionTemplate,X,ct);if(!ct.customRendering){var fr=r({colSpan:ze,role:"cell"},v("root"),v("bodyCell"));yr=S.createElement("td",fr,yr)}var Ir=r({id:lt,className:a("rowExpansion"),role:"row"},o("rowExpansion"));return S.createElement("tr",Ir,yr)}return null},Kt=function(X,q,he,ze){if(me&&Xr(e.value,X,q-e.first,he)){var lt=pe.getJSXElement(e.rowGroupFooterTemplate,X,{index:q,colSpan:ze,props:e.tableProps}),ct=r({className:a("rowGroupFooter"),role:"row"},o("rowGroupFooter"));return S.createElement("tr",ct,lt)}return null},sr=function(){return e.value&&e.value.map(function(X,q){var he=ar("getItemOptions")?ar("getItemOptions")(q).index:e.first+q,ze=en(X,he),lt=St(X),ct=Ve(),yr=vt(X,he,lt,ct),fr=jt(X,he,q,lt),Ir=nr(X,he,lt,ct),Pn=Kt(X,he,lt,ct);return S.createElement(S.Fragment,{key:ze},yr,fr,Ir,Pn)})},br=e.empty?Je():sr(),Zr=e.className==="p-datatable-virtualscroller-spacer"?"virtualScrollerSpacer":"tbody",Nr=r({style:e.style,className:a(Zr,{className:e.className}),role:" rowgroup"},o(Zr,{hostName:e.hostName}));return S.createElement("tbody",Yn({ref:A},Nr),br)}));$y.displayName="TableBody";var mc=Ar.extend({defaultProps:{__TYPE:"ColumnGroup",children:void 0},getCProp:function(t,r){return pe.getComponentProp(t,r,mc.defaultProps)},getCProps:function(t){return pe.getComponentProps(t,mc.defaultProps)}}),Gm=Ar.extend({defaultProps:{__TYPE:"Row",style:null,className:null,children:void 0},getCProp:function(t,r){return pe.getComponentProp(t,r,Gm.defaultProps)}});function w3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function HZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?w3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var IF=S.memo(function(e){var t=S.useState({}),r=Kn(t,2),n=r[0],o=r[1],i=S.useRef(null),a=Vr(),s=function(){return zo.getCProps(e.column)},l=e.ptCallbacks,c=l.ptm,d=l.ptmo,p=l.cx,m=function($){var U=s(),G={props:U,parent:e.metaData,hostName:e.hostName,state:{styleObject:n},context:{index:e.index,size:e.metaData.props.size,showGridlines:e.metaData.props.showGridlines}};return a(c("column.".concat($),{column:G}),c("column.".concat($),G),d(U,$,G))},y=function($){return zo.getCProp(e.column,$)},b=function(){var $=y("footerStyle"),U=y("style");return y("frozen")?Object.assign({},U,$,n):Object.assign({},U,$)},v=function(){if(y("frozen")){var $=HZ({},n),U=y("alignFrozen");if(U==="right"){var G=0,Y=i.current&&i.current.nextElementSibling;Y&&Y.classList.contains("p-frozen-column")&&(G=le.getOuterWidth(Y)+parseFloat(Y.style.right||0)),$.right=G+"px"}else{for(var Q=0,me=i.current&&i.current.previousElementSibling;me;){if(me&&me.classList.contains("p-frozen-column")){Q=le.getOuterWidth(me)+parseFloat(me.style.left||0),i.current.style.left=Q+"px";break}me=me.previousElementSibling}$.left=Q+"px"}var ne=n.left===$.left&&n.right===$.right;!ne&&o($)}};S.useEffect(function(){y("frozen")&&v()});var C=b(),A=y("align"),R=y("colSpan"),x=y("rowSpan"),k=pe.getJSXElement(y("footer"),{props:e.tableProps}),D=a({style:C,className:dt(y("footerClassName"),y("className"),p("footerCell",{getColumnProp:y,align:A})),role:"cell",colSpan:R,rowSpan:x},m("root"),m("footerCell"));return S.createElement("td",Yn({ref:i},D),k)});IF.displayName="FooterCell";var UZ=["unstyled","__TYPE","ptOptions"];function I3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function $Z(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?I3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):I3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var AF=S.memo(function(e){var t=e.ptCallbacks,r=t.ptm,n=t.ptmo,o=t.cx,i=Vr(),a=function(x){return mc.getCProps(x)},s=S.useContext(qr),l=function(){return e.footerColumnGroup?mc.getCProps(e.footerColumnGroup):void 0},c=function(x,k){var D=a(x),F={props:D,parent:e.metaData,hostName:e.hostName};return i(r("row.".concat(k),{row:F}),r("row.".concat(k),F),n(D,k,F))},d=function(x){var k=l(),D={props:l(),parent:e.metaData,hostName:e.hostName};return i(r("columnGroup.".concat(x),{columnGroup:D}),r("columnGroup.".concat(x),D),n(k,x,D))},p=function(){return e.footerColumnGroup?!0:e.columns?e.columns.some(function(x){return x&&m(x,"footer")}):!1},m=function(x,k){return zo.getCProp(x,k)},y=function(x){var k=S.Children.toArray(Gm.getCProp(x,"children"));return b(k)},b=function(x){return S.Children.map(x,function(k,D){var F=k?!m(k,"hidden"):!0,$=k&&(m(k,"columnKey")||m(k,"field"))||D;return F&&S.createElement(IF,{hostName:e.hostName,key:$,tableProps:e.tableProps,column:k,ptCallbacks:e.ptCallbacks,metaData:e.metaData})})},v=function(){if(e.footerColumnGroup){var x=S.Children.toArray(mc.getCProp(e.footerColumnGroup,"children"));return x.map(function(D,F){var $=Gm.getProps(D.props,s),U=$.unstyled;$.__TYPE,$.ptOptions;var G=OR($,UZ),Y=i({role:"row"},U?$Z({unstyled:U},G):G,c(D,"root"));return S.createElement("tr",Yn({},Y,{key:F}),y(D))})}var k=i({role:"row"},r("footerRow",{hostName:e.hostName}));return S.createElement("tr",k,b(e.columns))};if(p()){var C=v(),A=i({className:o("tfoot"),role:"rowgroup"},d("root"),r("tfoot",{hostName:e.hostName}));return S.createElement("tfoot",A,C)}return null});AF.displayName="TableFooter";function WZ(e,t,r){return Object.defineProperty(e,"prototype",{writable:!1}),e}function zZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var ha=Object.freeze({STARTS_WITH:"startsWith",CONTAINS:"contains",NOT_CONTAINS:"notContains",ENDS_WITH:"endsWith",EQUALS:"equals",NOT_EQUALS:"notEquals",IN:"in",NOT_IN:"notIn",LESS_THAN:"lt",LESS_THAN_OR_EQUAL_TO:"lte",GREATER_THAN:"gt",GREATER_THAN_OR_EQUAL_TO:"gte",BETWEEN:"between",DATE_IS:"dateIs",DATE_IS_NOT:"dateIsNot",DATE_BEFORE:"dateBefore",DATE_AFTER:"dateAfter",CUSTOM:"custom"}),ja=WZ(function e(){zZ(this,e)});Wn(ja,"ripple",!1);Wn(ja,"inputStyle","outlined");Wn(ja,"locale","en");Wn(ja,"appendTo",null);Wn(ja,"cssTransition",!0);Wn(ja,"autoZIndex",!0);Wn(ja,"hideOverlaysOnDocumentScrolling",!1);Wn(ja,"nonce",null);Wn(ja,"nullSortOrder",1);Wn(ja,"zIndex",{modal:1100,overlay:1e3,menu:1e3,tooltip:1100,toast:1200});Wn(ja,"pt",void 0);Wn(ja,"filterMatchModeOptions",{text:[ha.STARTS_WITH,ha.CONTAINS,ha.NOT_CONTAINS,ha.ENDS_WITH,ha.EQUALS,ha.NOT_EQUALS],numeric:[ha.EQUALS,ha.NOT_EQUALS,ha.LESS_THAN,ha.LESS_THAN_OR_EQUAL_TO,ha.GREATER_THAN,ha.GREATER_THAN_OR_EQUAL_TO],date:[ha.DATE_IS,ha.DATE_IS_NOT,ha.DATE_BEFORE,ha.DATE_AFTER]});Wn(ja,"changeTheme",function(e,t,r,n){var o,i=document.getElementById(r);if(!i)throw Error("Element with id ".concat(r," not found."));var a=i.getAttribute("href").replace(e,t),s=document.createElement("link");s.setAttribute("rel","stylesheet"),s.setAttribute("id",r),s.setAttribute("href",a),s.addEventListener("load",function(){n&&n()}),(o=i.parentNode)===null||o===void 0||o.replaceChild(s,i)});var KZ={en:{accept:"Yes",addRule:"Add Rule",am:"AM",apply:"Apply",cancel:"Cancel",choose:"Choose",chooseDate:"Choose Date",chooseMonth:"Choose Month",chooseYear:"Choose Year",clear:"Clear",completed:"Completed",contains:"Contains",custom:"Custom",dateAfter:"Date is after",dateBefore:"Date is before",dateFormat:"mm/dd/yy",dateIs:"Date is",dateIsNot:"Date is not",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],emptyFilterMessage:"No results found",emptyMessage:"No available options",emptySearchMessage:"No results found",emptySelectionMessage:"No selected item",endsWith:"Ends with",equals:"Equals",fileChosenMessage:"{0} files",fileSizeTypes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"],filter:"Filter",firstDayOfWeek:0,gt:"Greater than",gte:"Greater than or equal to",lt:"Less than",lte:"Less than or equal to",matchAll:"Match All",matchAny:"Match Any",medium:"Medium",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],nextDecade:"Next Decade",nextHour:"Next Hour",nextMinute:"Next Minute",nextMonth:"Next Month",nextSecond:"Next Second",nextYear:"Next Year",noFileChosenMessage:"No file chosen",noFilter:"No Filter",notContains:"Not contains",notEquals:"Not equals",now:"Now",passwordPrompt:"Enter a password",pending:"Pending",pm:"PM",prevDecade:"Previous Decade",prevHour:"Previous Hour",prevMinute:"Previous Minute",prevMonth:"Previous Month",prevSecond:"Previous Second",prevYear:"Previous Year",reject:"No",removeRule:"Remove Rule",searchMessage:"{0} results are available",selectionMessage:"{0} items selected",showMonthAfterYear:!1,startsWith:"Starts with",strong:"Strong",today:"Today",upload:"Upload",weak:"Weak",weekHeader:"Wk",aria:{cancelEdit:"Cancel Edit",close:"Close",collapseLabel:"Collapse",collapseRow:"Row Collapsed",editRow:"Edit Row",expandLabel:"Expand",expandRow:"Row Expanded",falseLabel:"False",filterConstraint:"Filter Constraint",filterOperator:"Filter Operator",firstPageLabel:"First Page",gridView:"Grid View",hideFilterMenu:"Hide Filter Menu",jumpToPageDropdownLabel:"Jump to Page Dropdown",jumpToPageInputLabel:"Jump to Page Input",lastPageLabel:"Last Page",listLabel:"Option List",listView:"List View",moveAllToSource:"Move All to Source",moveAllToTarget:"Move All to Target",moveBottom:"Move Bottom",moveDown:"Move Down",moveToSource:"Move to Source",moveToTarget:"Move to Target",moveTop:"Move Top",moveUp:"Move Up",navigation:"Navigation",next:"Next",nextPageLabel:"Next Page",nullLabel:"Not Selected",otpLabel:"Please enter one time password character {0}",pageLabel:"Page {page}",passwordHide:"Hide Password",passwordShow:"Show Password",previous:"Previous",prevPageLabel:"Previous Page",removeLabel:"Remove",rotateLeft:"Rotate Left",rotateRight:"Rotate Right",rowsPerPageLabel:"Rows per page",saveEdit:"Save Edit",scrollTop:"Scroll Top",selectAll:"All items selected",selectLabel:"Select",selectRow:"Row Selected",showFilterMenu:"Show Filter Menu",slide:"Slide",slideNumber:"{slideNumber}",star:"1 star",stars:"{star} stars",trueLabel:"True",unselectAll:"All items unselected",unselectLabel:"Unselect",unselectRow:"Row Unselected",zoomImage:"Zoom Image",zoomIn:"Zoom In",zoomOut:"Zoom Out"}}};function Hp(e,t){if(e.includes("__proto__")||e.includes("prototype"))throw new Error("Unsafe ariaKey detected");var r=ja.locale;try{var n=GZ(r).aria[e];if(n)for(var o in t)t.hasOwnProperty(o)&&(n=n.replace("{".concat(o,"}"),t[o]));return n}catch{throw new Error("The ".concat(e," option is not found in the current locale('").concat(r,"')."))}}function GZ(e){var t=e||ja.locale;if(t.includes("__proto__")||t.includes("prototype"))throw new Error("Unsafe locale detected");return KZ[t]}var qZ="",Yh=Ar.extend({defaultProps:{__TYPE:"FocusTrap",children:void 0},css:{styles:qZ},getProps:function(t){return pe.getMergedProps(t,Yh.defaultProps)},getOtherProps:function(t){return pe.getDiffProps(t,Yh.defaultProps)}});function A3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function JZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var YZ=ae.memo(ae.forwardRef(function(e,t){var r=ae.useRef(null),n=ae.useRef(null),o=ae.useRef(null),i=ae.useContext(qr),a=Yh.getProps(e,i),s={props:a};pc(Yh.css.styles,{name:"focustrap"});var l=Yh.setMetaData(JZ({},s));l.ptm,ae.useImperativeHandle(t,function(){return{props:a,getInk:function(){return n.current},getTarget:function(){return r.current}}}),Go(function(){a.disabled||(r.current=c(),d(r.current))});var c=function(){return n.current&&n.current.parentElement},d=function(C){var A=a||{},R=A.autoFocusSelector,x=R===void 0?"":R,k=A.firstFocusableSelector,D=k===void 0?"":k,F=A.autoFocus,$=F===void 0?!1:F,U="".concat(p(x)),G="[autofocus]".concat(U,", [data-pc-autofocus='true']").concat(U),Y=le.getFirstFocusableElement(C,G);$&&!Y&&(Y=le.getFirstFocusableElement(C,p(D))),le.focus(Y)},p=function(C){return':not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])'.concat(C??"")},m=function(C){var A,R=C.currentTarget,x=C.relatedTarget,k=x===R.$_pfocustrap_lasthiddenfocusableelement||!((A=r.current)!==null&&A!==void 0&&A.contains(x))?le.getFirstFocusableElement(R.parentElement,p(R.$_pfocustrap_focusableselector)):R.$_pfocustrap_lasthiddenfocusableelement;le.focus(k)},y=function(C){var A,R=C.currentTarget,x=C.relatedTarget,k=x===R.$_pfocustrap_firsthiddenfocusableelement||!((A=r.current)!==null&&A!==void 0&&A.contains(x))?le.getLastFocusableElement(R.parentElement,p(R.$_pfocustrap_focusableselector)):R.$_pfocustrap_firsthiddenfocusableelement;le.focus(k)},b=function(){var C=a||{},A=C.tabIndex,R=A===void 0?0:A,x=function($,U,G){return ae.createElement("span",{ref:$,className:"p-hidden-accessible p-hidden-focusable",tabIndex:R,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:U,"data-pc-section":G})},k=x(n,m,"firstfocusableelement"),D=x(o,y,"lastfocusableelement");return n.current&&o.current&&(n.current.$_pfocustrap_lasthiddenfocusableelement=o.current,o.current.$_pfocustrap_firsthiddenfocusableelement=n.current),ae.createElement(ae.Fragment,null,k,a.children,D)};return b()})),QZ=YZ;function R3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Ys(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?R3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var PR=S.memo(function(e){var t=S.useState(!1),r=Kn(t,2),n=r[0],o=r[1],i=S.useRef(null),a=S.useRef(null),s=S.useRef(null),l=S.useRef(!1),c=S.useRef(null),d=Vr(),p=function(Te){return zo.getCProp(e.column,Te)},m=function(){return zo.getCProps(e.column)},y=S.useContext(qr),b=e.ptCallbacks,v=b.ptm,C=b.ptmo,A=b.cx,R=function(Te,et){var ht=m(),Ft=Ys({props:ht,parent:e.metaData,hostName:e.hostName,state:{overlayVisible:n}},et);return d(v("column.".concat(Te),{column:Ft}),v("column.".concat(Te),Ft),C(ht,Te,Ft))},x=p("filterField")||p("field"),k=e.filters[x],D=e.filtersStore&&e.filtersStore[x],F=gR({target:s,overlay:i,listener:function(Te,et){var ht=et.type,Ft=et.valid;Ft&&(ht==="outside"?(!l.current&&!Ae(Te.target)&&ar(),l.current=!1):y.hideOverlaysOnDocumentScrolling?ar():le.isDocument(Te.target)||le.alignOverlay(i.current,s.current,y&&y.appendTo||Ur.appendTo,!1))},when:n}),$=Kn(F,2),U=$[0],G=$[1],Y=function(){return!D||!k?!1:D.operator?!me(k.constraints[0].value):!me(k.value)},Q=function(){return k&&!me(k.value)},me=function(Te){return pe.isEmpty(Te)},ne=function(Te){return k&&k.matchMode===Te},Ee=function(){return p("filterMatchModeOptions")||y&&y.filterMatchModeOptions[Oe()].map(function(Te){return{label:va(Te),value:Te}})||Ur.filterMatchModeOptions[Oe()].map(function(Te){return{label:va(Te),value:Te}})},ce=function(){return p("showFilterMenu")&&(e.display==="row"?p("dataType")!=="boolean":!0)},_e=function(){return p("showClearButton")&&e.display==="row"},Ne=function(){return p("dataType")!=="boolean"&&p("showFilterMatchModes")&&Ee()&&p("showFilterMenuOptions")},oe=function(){return p("showFilterOperator")&&k&&k.operator&&p("showFilterMenuOptions")},Se=function(){return Hr().length>1},re=function(){return p("showAddButton")&&k&&k.operator&&Hr()&&Hr().length<p("maxConstraints")&&p("showFilterMenuOptions")},we=function(Te){return!Ae(Te)&&i.current&&!(i.current.isSameNode(Te)||i.current.contains(Te))},Ae=function(Te){return s.current&&(s.current.isSameNode(Te)||s.current.contains(Te))},Pe=function(){if(D)return D.operator?{matchMode:D.constraints[0].matchMode,operator:D.operator}:{matchMode:D.matchMode}},Oe=function(){var Te=p("dataType"),et=p("filterMatchMode"),ht=function(tr){return y&&y.filterMatchModeOptions[tr].some(function(Lt){return Lt===et})||Ur.filterMatchModeOptions[tr].some(function(Lt){return Lt===et})};return et==="custom"&&!ht(Te)?(y&&y.filterMatchModeOptions[Te].push(En.CUSTOM)||Ur.filterMatchModeOptions[Te].push(En.CUSTOM),Te):et&&Object.keys(y&&y.filterMatchModeOptions||Ur.filterMatchModeOptions).find(function(Ft){return ht(Ft)})||Te},Ke=function(){var Te=p("onFilterClear"),et=Pe(),ht=Ys({},e.filters);ht[x].operator?(ht[x].constraints.splice(1),ht[x].operator=et.operator,ht[x].constraints[0]={value:null,matchMode:et.matchMode}):(ht[x].value=null,ht[x].matchMode=et?et.matchMode:ht[x].matchMode),Te&&Te(),e.onFilterChange(ht),e.onFilterApply(),ar()},St=function(){var Te=p("onFilterApplyClick");Te&&Te({field:x,constraints:k}),e.onFilterApply(),ar()},st=function(){o(function(Te){return!Te})},yt=function(Te){switch(Te.key){case"Escape":case"Tab":ar();break;case"ArrowDown":if(n){var et=le.getFirstFocusableElement(i.current);et&&et.focus(),Te.preventDefault()}else Te.altKey&&(o(!0),Te.preventDefault());break}},$e=function(Te){Te.key==="Escape"&&(ar(),s.current&&s.current.focus())},ot=function(Te,et){var ht=Ys({},e.filters),Ft=Te.target.value,tr=ht[x];e.display==="menu"&&pe.isNotEmpty(tr.constraints)?tr.constraints[et].value=Ft:tr.value=Ft,e.onFilterChange(ht),(!p("showApplyButton")||e.display==="row")&&e.onFilterApply()},it=function(Te,et){Te.key==="Enter"&&(!p("showApplyButton")||e.display==="menu")&&St()},Ie=function(Te){var et,ht=p("onFilterMatchModeChange"),Ft=Ys({},e.filters);Ft[x].matchMode=Te,ht&&ht({field:x,matchMode:Te}),e.onFilterChange(Ft),e.onFilterApply(),ar(),(et=s.current)===null||et===void 0||et.focus()},tt=function(Te,et,ht){var Ft=Te.target;switch(Te.key){case"ArrowDown":var tr=Ve(Ft);tr&&(Ft.removeAttribute("tabindex"),tr.tabIndex=0,tr.focus()),Te.preventDefault();break;case"ArrowUp":var Lt=Jt(Ft);Lt&&(Ft.removeAttribute("tabindex"),Lt.tabIndex=0,Lt.focus()),Te.preventDefault();break;case"Enter":ht?Ke():Ie(et.value),Te.preventDefault();break}},mt=function(Te){var et=p("onFilterOperatorChange"),ht=Te.value,Ft=Ys({},e.filters);Ft[x].operator=ht,e.onFilterChange(Ft),et&&et({field:x,operator:ht}),p("showApplyButton")||e.onFilterApply()},Wt=function(Te,et){var ht=p("onFilterMatchModeChange"),Ft=Ys({},e.filters),tr=Ft[x];e.display==="menu"&&pe.isNotEmpty(tr.constraints)?tr.constraints[et].matchMode=Te:tr.matchMode=Te,e.onFilterChange(Ft),ht&&ht({field:x,matchMode:Te,index:et}),p("showApplyButton")||e.onFilterApply()},cr=function(){var Te=p("onFilterConstraintAdd"),et=Pe(),ht=Ys({},e.filters),Ft={value:null,matchMode:et.matchMode};ht[x].constraints.push(Ft),Te&&Te({field:x,constraint:Ft}),e.onFilterChange(ht),p("showApplyButton")||e.onFilterApply()},At=function(Te){var et=p("onFilterConstraintRemove"),ht=Ys({},e.filters),Ft=ht[x].constraints.splice(Te,1);et&&et({field:x,constraint:Ft}),e.onFilterChange(ht),p("showApplyButton")||e.onFilterApply()},Ve=function(Te){var et=Te.nextElementSibling;return et?le.getAttribute(et,"data-p-column-filter-separator")===!0?Ve(et):et:Te.parentElement.firstElementChild},Jt=function(Te){var et=Te.previousElementSibling;return et?le.getAttribute(et,"data-p-column-filter-separator")===!0?Jt(et):et:Te.parentElement.lastElementChild},ar=function(){o(!1)},pr=function(Te){l.current=!0,Ps.emit("overlay-click",{originalEvent:Te,target:i.current})},gr=function(){l.current=!0},en=function(){xo.set("overlay",i.current,y&&y.autoZIndex||Ur.autoZIndex,y&&y.zIndex.overlay||Ur.zIndex.overlay),le.addStyles(i.current,{position:"absolute",top:"0",left:"0"}),le.alignOverlay(i.current,s.current,y&&y.appendTo||Ur.appendTo,!1),c.current=function(Te){we(Te.target)||(l.current=!0)},Ps.on("overlay-click",c.current)},Wr=function(){U()},Xr=function(){Br()},Pr=function(){xo.clear(i.current)},Br=function(){G(),Ps.off("overlay-click",c.current),c.current=null,l.current=!1},Hr=function(){return k?k.constraints||[k]:[]},jr=function(){return k.operator},zr=function(){return[{label:va("matchAll"),value:Th.AND},{label:va("matchAny"),value:Th.OR}]},Jr=function(){return va("noFilter")},In=function(){return va("removeRule")},tn=function(){return va("addRule")},vr=function(){return va("clear")},at=function(){return va("apply")},Pt=function(Te){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ht=Ys({},e.filters),Ft=ht[x];e.display==="menu"&&Ft&&Ft.operator?ht[x].constraints[et].value=Te:ht[x].value=Te,e.onFilterChange(ht)},pt=function(){for(var Te=arguments.length,et=new Array(Te),ht=0;ht<Te;ht++)et[ht]=arguments[ht];et&&Pt(et[0],et[1]),e.onFilterApply()};hn(function(){e.display==="menu"&&n&&le.alignOverlay(i.current,s.current,y&&y.appendTo||Ur.appendTo,!1)}),Go(function(){a.current||(a.current=ms())}),Ci(function(){c.current&&(Ps.off("overlay-click",c.current),c.current=null),i.current&&(xo.clear(i.current),Br())});var Rt=function(Te,et){var ht=Te?Te.value:null;return p("filterElement")?pe.getJSXElement(p("filterElement"),{field:x,index:et,filterModel:Te,value:ht,filterApplyCallback:pt,filterCallback:Pt}):S.createElement(W0,{type:p("filterType"),value:ht||"",onChange:function(tr){return ot(tr,et)},onKeyDown:function(tr){return it(tr)},className:"p-column-filter",placeholder:p("filterPlaceholder"),maxLength:p("filterMaxLength"),"aria-label":p("filterPlaceholder"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData}})},rt=function(){if(e.display==="row"){var Te=Rt(k,0),et=d({className:A("filterInput")},R("filterInput"));return S.createElement("div",et,Te)}return null},ge=function(Te,et){return e.display==="menu"?Rt(Te,et):null},be=function(){if(!ce())return null;var Te=d({"aria-hidden":!0},R("filterIcon")),et=e.filterIcon||S.createElement(uF,Te),ht=nn.getJSXIcon(et,Ys({},Te),{props:e}),Ft=Hp(n?"hideFilterMenu":"showFilterMenu"),tr=d({type:"button",className:A("filterMenuButton",{overlayVisibleState:n,hasFilter:Y}),"aria-haspopup":!0,"aria-expanded":n,"aria-label":Ft,"aria-controls":n?a.current:void 0,onClick:function(Je){return st()},onKeyDown:function(Je){return yt(Je)}},R("filterMenuButton",{context:{active:Y()}}));return S.createElement("button",Yn({ref:s},tr),ht,S.createElement(Co,null))},We=function(){if(!_e())return null;var Te=d({"aria-hidden":!0},R("filterClearIcon")),et=e.filterClearIcon||S.createElement(cF,Te),ht=nn.getJSXIcon(et,Ys({},Te),{props:e}),Ft=vr(),tr=d({className:A("headerFilterClearButton",{hasRowFilter:Q}),type:"button",onClick:function(Je){return Ke()},"aria-label":Ft},R("headerFilterClearButton",{context:{hidden:Q()}}));return S.createElement("button",tr,ht,S.createElement(Co,null))},Gt=function(){if(Ne()){var Te=Ee(),et=Jr(),ht=d({className:A("filterSeparator"),"data-p-column-filter-separator":!0},R("filterSeparator")),Ft=d({className:A("filterRowItem",{isRowMatchModeSelected:ne,isShowMatchModes:Ne}),onClick:function(Je){return Ke()},onKeyDown:function(Je){return tt(Je,null,!0)}},R("filterRowItem")),tr=d({className:A("filterRowItems")},R("filterRowItems"));return S.createElement("ul",tr,Te.map(function(Lt,Je){var vt=Lt.value,jt=Lt.label,nr=Je===0?0:null,Kt=d({className:A("filterRowItem",{isRowMatchModeSelected:ne,isShowMatchModes:Ne,value:vt}),onClick:function(){return Ie(vt)},onKeyDown:function(br){return tt(br,Lt)},tabIndex:nr},R("filterRowItem",{context:{highlighted:Lt&&ne(vt)}}));return S.createElement("li",Yn({},Kt,{key:jt}),jt)}),S.createElement("li",ht),S.createElement("li",Ft,et))}return null},Qt=function(){if(oe()){var Te=zr(),et=jr(),ht=d({className:A("filterOperator")},R("filterOperator"));return S.createElement("div",ht,S.createElement(hu,{options:Te,value:et,onChange:mt,className:"p-column-filter-operator-dropdown",pt:R("filterOperatorDropdown"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData},"aria-label":Hp("filterOperator")}))}return null},Zt=function(Te,et){if(Ne()){var ht=Ee();return S.createElement(hu,{options:ht,value:Te.matchMode,onChange:function(tr){return Wt(tr.value,et)},className:"p-column-filter-matchmode-dropdown",pt:R("filterMatchModeDropdown"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData},"aria-label":Hp("filterConstraint")})}return null},Cr=function(Te){if(Se()){var et=In();return S.createElement(Pi,{type:"button",icon:e.filterRemoveIcon||S.createElement(dF,null),className:"p-column-filter-remove-button p-button-text p-button-danger p-button-sm",onClick:function(){return At(Te)},label:et,pt:R("filterRemoveButton"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData}})}return null},zt=function(){var Te=Hr(),et=d({className:A("filterConstraints")},R("filterConstraints")),ht=d({className:A("filterConstraint")},R("filterConstraint"));return S.createElement("div",et,Te.map(function(Ft,tr){var Lt=Zt(Ft,tr),Je=ge(Ft,tr),vt=Cr(tr),jt=d(R("filterRemove"));return S.createElement("div",Yn({},ht,{key:tr}),Lt,Je,S.createElement("div",jt,vt))}))},Qe=function(){if(re()){var Te=tn(),et=d({className:A("filterAddRule")},R("filterAddRule"));return S.createElement("div",et,S.createElement(Pi,{type:"button",label:Te,icon:e.filterAddIcon||S.createElement(TR,null),className:"p-column-filter-add-button p-button-text p-button-sm",onClick:cr,pt:R("filterAddRuleButton"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData}}))}return null},Et=function(){if(p("showClearButton")){if(!p("filterClear")){var Te=vr();return S.createElement(Pi,{type:"button",outlined:!0,size:"small",onClick:Ke,label:Te,pt:R("filterClearButton"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData}})}return pe.getJSXElement(p("filterClear"),{field:x,filterModel:k,filterClearCallback:Ke})}return null},Ht=function(){if(p("showApplyButton")){if(!p("filterApply")){var Te=at();return S.createElement(Pi,{type:"button",size:"small",onClick:St,label:Te,pt:R("filterApplyButton"),unstyled:e.unstyled,__parentMetadata:{parent:e.metaData}})}return pe.getJSXElement(p("filterApply"),{field:x,filterModel:k,filterApplyCallback:St})}return null},ur=function(){var Te=Et(),et=Ht(),ht=d({className:A("filterButtonBar")},R("filterButtonBar"));return S.createElement("div",ht,Te,et)},Dr=function(){var Te=Qt(),et=zt(),ht=Qe(),Ft=ur();return S.createElement(S.Fragment,null,Te,et,ht,Ft)},pn=function(){var Te=p("filterMenuStyle"),et=pe.getJSXElement(p("filterHeader"),{field:x,filterModel:k,filterApplyCallback:pt}),ht=pe.getJSXElement(p("filterFooter"),{field:x,filterModel:k,filterApplyCallback:pt}),Ft=e.display==="row"?Gt():Dr(),tr=d({style:Te,className:A("filterOverlay",{columnFilterProps:e,context:y,getColumnProp:p}),onKeyDown:function(vt){return $e(vt)},onClick:function(vt){return pr(vt)},onMouseDown:function(vt){return gr()},id:a.current,"aria-modal":n,role:"dialog"},R("filterOverlay")),Lt=d({classNames:A("transition"),in:n,timeout:{enter:120,exit:100},unmountOnExit:!0,onEnter:en,onEntered:Wr,onExit:Xr,onExited:Pr},R("transition"));return S.createElement(vu,null,S.createElement(Dl,Yn({nodeRef:i},Lt),S.createElement("div",Yn({ref:i},tr),S.createElement(QZ,{autoFocus:!0},et,Ft,ht))))},Ln=rt(),Qn=be(),gn=We(),Re=pn(),Xe=d({className:A("columnFilter",{columnFilterProps:e})},R("columnFilter"));return S.createElement("div",Xe,Ln,Qn,gn,Re)});PR.displayName="ColumnFilter";function T3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function XZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?T3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):T3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var xR=S.memo(function(e){var t=Vr(),r=function(){return zo.getCProps(e.column)},n=e.ptCallbacks,o=n.ptm,i=n.ptmo,a=n.cx,s=function(v){var C=r(),A={props:C,parent:e.metaData,hostName:e.hostName,state:{},context:{checked:e.checked,disabled:e.disabled}};return t(o("column.".concat(v),{column:A}),o("column.".concat(v),A),i(C,v,A))},l=function(v){e.disabled||e.onChange({originalEvent:v,checked:!e.checked})},c=t({className:a("checkIcon")},s("headerCheckbox.icon")),d=e.checked?e.checkIcon||S.createElement(Cc,c):null,p=nn.getJSXIcon(d,XZ({},c),{props:e}),m=e.disabled?null:0,y={role:"checkbox","aria-checked":e.checked,"aria-label":e.checked?Hp("selectAll"):Hp("unselectAll"),tabIndex:m,onChange:l,icon:p,checked:e.checked,disabled:e.disabled,unstyled:e.unstyled,pt:s("headerCheckbox")};return S.createElement(_R,y)});xR.displayName="HeaderCheckbox";function O3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Jv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var RF=S.memo(function(e){var t=S.useState({}),r=Kn(t,2),n=r[0],o=r[1],i=S.useRef(null),a=If(e.column),s=Vr(),l=e.metaData,c=e.ptCallbacks,d=e.index,p=e.ptCallbacks,m=p.ptm,y=p.ptmo,b=p.cx,v={index:d},C=Jv(Jv({},l),v),A=function(){return zo.getCProps(e.column)},R=function(Ie){var tt=A(),mt={props:tt,parent:C,hostName:e.hostName,state:{styleObject:n},context:{index:e.index,sorted:U().sorted,resizable:e.resizableColumns,size:e.metaData.props.size,showGridlines:e.metaData.props.showGridlines}};return s(m("column.".concat(Ie),{column:mt}),m("column.".concat(Ie),mt),y(tt,Ie,mt))},x=function(){return e.multiSortMeta&&e.multiSortMeta.length>1},k=function(){return!D("sortable")||D("sortable")&&(e.allSortableDisabled||D("sortableDisabled"))},D=function(){return e.column?typeof(arguments.length<=0?void 0:arguments[0])=="string"?zo.getCProp(e.column,arguments.length<=0?void 0:arguments[0]):zo.getCProp((arguments.length<=0?void 0:arguments[0])||e.column,arguments.length<=1?void 0:arguments[1]):null},F=function(){var Ie=D("headerStyle"),tt=D("style");return D("frozen")?Object.assign({},tt,Ie,n):Object.assign({},tt,Ie)},$=function(){return e.multiSortMeta.findIndex(function(Ie){return Ie.field===D("field")||Ie.field===D("sortField")})},U=function(){var Ie=!1,tt=0,mt=-1;return e.sortMode==="single"?(Ie=e.sortField&&(e.sortField===D("field")||e.sortField===D("sortField")),tt=Ie?e.sortOrder:0):e.sortMode==="multiple"&&(mt=$(),mt>-1&&(Ie=!0,tt=e.multiSortMeta[mt].order)),{sorted:Ie,sortOrder:tt,metaIndex:mt}},G=function(Ie){var tt=Ie.sorted,mt=Ie.sortOrder;return D("sortable")?tt&&mt<0?"descending":tt&&mt>0?"ascending":"none":null},Y=function(){if(D("frozen")){var Ie=Jv({},n),tt=D("alignFrozen");if(tt==="right"){var mt=0,Wt=i.current&&i.current.nextElementSibling;Wt&&Wt.classList.contains("p-frozen-column")&&(mt=le.getOuterWidth(Wt)+parseFloat(Wt.style.right||0)),Ie.right=mt+"px"}else{for(var cr=0,At=i.current&&i.current.previousElementSibling;At;){if(At&&At.classList.contains("p-frozen-column")){cr=le.getOuterWidth(At)+parseFloat(At.style.left||0),i.current.style.left=cr+"px";break}At=At.previousElementSibling}Ie.left=cr+"px"}var Ve=i.current.parentElement.nextElementSibling;if(Ve){var Jt=le.index(i.current);Ve.children[Jt].style.left=Ie.left,Ve.children[Jt].style.right=Ie.right}var ar=n.left===Ie.left&&n.right===Ie.right;!ar&&o(Ie)}},Q=function(Ie){(D(Ie,"sortableDisabled")!==D("sortableDisabled")||D(Ie,"sortable")!==D("sortable"))&&e.onSortableChange()},me=function(Ie){if(!k()){var tt=Ie.target;(le.getAttribute(tt,"data-p-sortable-column")===!0||le.getAttribute(tt,"data-pc-section")==="headertitle"||le.getAttribute(tt,"data-pc-section")==="headercontent"||le.getAttribute(tt,"data-pc-section")==="sortIcon"||le.getAttribute(tt.parentElement,"data-pc-section")==="sortIcon"||tt.closest('[data-p-sortable-column="true"]')&&!tt.closest('[data-pc-section="filtermenubutton"]'))&&(le.clearSelection(),e.onSortChange({originalEvent:Ie,column:e.column,sortableDisabledFields:e.sortableDisabledFields}))}},ne=function(Ie){e.onColumnMouseDown({originalEvent:Ie,column:e.column})},Ee=function(Ie){(Ie.code=="Enter"||Ie.code==="NumpadEnter"||Ie.code=="Space")&&Ie.target===i.current&&le.getAttribute(Ie.currentTarget,"data-p-sortable-column")===!0&&(me(Ie),Ie.preventDefault())},ce=function(Ie){e.onColumnDragStart({originalEvent:Ie,column:e.column})},_e=function(Ie){e.onColumnDragOver({originalEvent:Ie,column:e.column})},Ne=function(Ie){e.onColumnDragLeave({originalEvent:Ie,column:e.column})},oe=function(Ie){e.onColumnDrop({originalEvent:Ie,column:e.column})},Se=function(Ie){e.onColumnResizeStart({originalEvent:Ie,column:e.column})},re=function(Ie){e.onColumnResizerClick&&(e.onColumnResizerClick({originalEvent:Ie,element:Ie.currentTarget.parentElement,column:e.column}),Ie.preventDefault())},we=function(Ie){e.onColumnResizerDoubleClick&&(e.onColumnResizerDoubleClick({originalEvent:Ie,element:Ie.currentTarget.parentElement,column:e.column}),Ie.preventDefault())};S.useEffect(function(){D("frozen")&&Y(),Q(a)});var Ae=function(){if(e.resizableColumns&&!D("frozen")){var Ie=s({className:b("columnResizer"),onMouseDown:function(mt){return Se(mt)},onTouchStart:function(mt){return Se(mt)},onClick:function(mt){return re(mt)},onDoubleClick:function(mt){return we(mt)}},R("columnResizer"));return S.createElement("span",Ie)}return null},Pe=function(){var Ie=pe.getJSXElement(D("header"),{props:e.tableProps}),tt=s({className:b("headerTitle")},R("headerTitle"));return S.createElement("span",tt,Ie)},Oe=function(Ie){var tt=Ie.sorted,mt=Ie.sortOrder;if(D("sortable")){var Wt=s({className:b("sortIcon")},R("sortIcon")),cr=s(R("sort")),At=tt?mt<0?S.createElement(fF,Wt):S.createElement(hF,Wt):S.createElement(pF,Wt),Ve=nn.getJSXIcon(e.sortIcon||At,Jv({},Wt),{props:e,sorted:tt,sortOrder:mt});return S.createElement("span",cr,Ve)}return null},Ke=function(Ie){var tt=Ie.metaIndex;if(tt!==-1&&x()){var mt=e.groupRowsBy&&e.groupRowsBy===e.groupRowSortField?tt:tt+1,Wt=s({className:b("sortBadge")},R("root"),R("sortBadge"));return S.createElement("span",Wt,mt)}return null},St=function(){if(e.showSelectAll&&D("selectionMode")==="multiple"&&e.filterDisplay!=="row"){var Ie=e.allRowsSelected(e.value);return S.createElement(xR,{hostName:e.hostName,column:e.column,checked:Ie,onChange:e.onColumnCheckboxChange,disabled:e.empty,ptCallbacks:c,metaData:l,unstyled:e.unstyled})}return null},st=function(){return e.filterDisplay==="menu"&&D("filter")?S.createElement(PR,{hostName:e.hostName,display:"menu",column:e.column,filters:e.filters,onFilterChange:e.onFilterChange,onFilterApply:e.onFilterApply,filtersStore:e.filtersStore,filterIcon:e.filterIcon,filterClearIcon:e.filterClearIcon,ptCallbacks:c,metaData:l,unstyled:e.unstyled}):null},yt=function(Ie){var tt=Pe(),mt=Oe(Ie),Wt=Ke(Ie),cr=St(),At=st(),Ve=s({className:b("headerContent")},R("headerContent"));return S.createElement("div",Ve,tt,mt,Wt,cr,At)},$e=function(){var Ie=k(),tt=U(),mt=F(),Wt=D("alignHeader")||D("align"),cr=D("frozen"),At=D("sortable")&&!Ie?e.tabIndex:null,Ve=D("colSpan"),Jt=D("rowSpan"),ar=G(tt),pr=D("headerTooltip"),gr=D("headerClassName"),en=pe.isNotEmpty(pr),Wr=D("headerTooltipOptions"),Xr=Ae(),Pr=yt(tt),Br=s({className:dt(gr,b("headerCell",{headerProps:e,frozen:cr,sortMeta:tt,align:Wt,_isSortableDisabled:Ie,getColumnProp:D})),style:mt,role:"columnheader",onClick:function(jr){return me(jr)},onKeyDown:function(jr){return Ee(jr)},onMouseDown:function(jr){return ne(jr)},onDragStart:function(jr){return ce(jr)},onDragOver:function(jr){return _e(jr)},onDragLeave:function(jr){return Ne(jr)},onDrop:function(jr){return oe(jr)},tabIndex:At,colSpan:Ve,rowSpan:Jt,"aria-sort":ar,"data-p-sortable-column":D("sortable"),"data-p-resizable-column":e.resizableColumns,"data-p-highlight":tt.sorted,"data-p-filter-column":!e.metaData.props.headerColumnGroup&&e.filterDisplay==="row","data-p-frozen-column":D("frozen"),"data-p-reorderable-column":e.reorderableColumns},R("root"),R("headerCell"));return S.createElement(S.Fragment,null,S.createElement("th",Yn({ref:i},Br),Xr,Pr),en&&S.createElement(Ml,Yn({target:i,content:pr,pt:R("tooltip"),unstyled:e.unstyled},Wr)))},ot=$e();return ot});RF.displayName="HeaderCell";var ZZ=["unstyled","__TYPE","ptOptions"];function _3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function aE(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var TF=S.memo(function(e){var t=S.useState([]),r=Kn(t,2),n=r[0],o=r[1],i=S.useState(!1),a=Kn(i,2),s=a[0],l=a[1],c=Vr(),d=e.sortMode==="single",p=e.sortMode==="multiple",m=d&&s,y=e.ptCallbacks,b=y.ptm,v=y.ptmo,C=y.cx,A=S.useContext(qr),R=function(Ae,Pe){return zo.getCProp(Ae,Pe)},x=function(Ae){return zo.getCProps(Ae)},k=function(Ae){return mc.getCProps(Ae)},D=function(){return e.headerColumnGroup?v(mc.getCProps(e.headerColumnGroup)):void 0},F=function(Ae){var Pe=D(),Oe={props:Pe,parent:e.metaData,hostName:e.hostName,state:{sortableDisabledFields:n,allSortableDisabled:s}};return c(b("columnGroup.".concat(Ae),{columnGroup:Oe}),b("columnGroup.".concat(Ae),Oe),v(Pe,Ae,Oe))},$=function(Ae,Pe){var Oe=x(Ae),Ke={props:Oe,parent:e.metaData,hostName:e.hostName,state:{sortableDisabledFields:n,allSortableDisabled:s}};return c(b("column.".concat(Pe),{column:Ke}),b("column.".concat(Pe),Ke),v(Oe,Pe,Ke))},U=function(Ae,Pe){var Oe=k(Ae),Ke={props:Oe,parent:e.metaData,hostName:e.hostName};return c(b("row.".concat(Pe),{row:Ke}),b("row.".concat(Pe),Ke),v(Oe,Pe,Ke))},G=function(Ae){return e.sortField!==null?R(Ae,"field")===e.sortField||R(Ae,"sortField")===e.sortField:!1},Y=function(){if(d||p&&e.onSortChange){var Ae=[],Pe=!1;e.columns.forEach(function(Oe){R(Oe,"sortableDisabled")&&(Ae.push(R(Oe,"sortField")||R(Oe,"field")),!Pe&&G(Oe)&&(Pe=!0))}),o(Ae),l(Pe)}},Q=function(){Y()},me=function(Ae){e.onColumnCheckboxChange(Ae,e.value)};Go(function(){Y()});var ne=function(Ae){var Pe=S.Children.toArray(Gm.getCProp(Ae,"children"));return Ee(Pe)},Ee=function(Ae){return S.Children.map(Ae,function(Pe,Oe){var Ke=Pe?!R(Pe,"hidden"):!0,St=Pe&&(R(Pe,"columnKey")||R(Pe,"field"))||Oe;return Ke&&S.createElement(RF,{hostName:e.hostName,allRowsSelected:e.allRowsSelected,allSortableDisabled:m,column:Pe,index:Oe,empty:e.empty,filterClearIcon:e.filterClearIcon,filterDisplay:e.filterDisplay,filterIcon:e.filterIcon,filters:e.filters,filtersStore:e.filtersStore,groupRowSortField:e.groupRowSortField,groupRowsBy:e.groupRowsBy,key:St,multiSortMeta:e.multiSortMeta,onColumnCheckboxChange:me,onColumnDragLeave:e.onColumnDragLeave,onColumnDragOver:e.onColumnDragOver,onColumnDragStart:e.onColumnDragStart,onColumnDrop:e.onColumnDrop,onColumnMouseDown:e.onColumnMouseDown,onColumnResizeStart:e.onColumnResizeStart,onColumnResizerClick:e.onColumnResizerClick,onColumnResizerDoubleClick:e.onColumnResizerDoubleClick,onFilterApply:e.onFilterApply,onFilterChange:e.onFilterChange,onSortChange:e.onSortChange,onSortableChange:Q,reorderableColumns:e.reorderableColumns,resizableColumns:e.resizableColumns,showSelectAll:e.showSelectAll,sortField:e.sortField,sortIcon:e.sortIcon,sortMode:e.sortMode,sortOrder:e.sortOrder,sortableDisabledFields:n,tabIndex:e.tabIndex,tableProps:e.tableProps,value:e.value,ptCallbacks:e.ptCallbacks,metaData:e.metaData,unstyled:e.unstyled})})},ce=function(Ae,Pe){if(e.showSelectAll&&Pe==="multiple"){var Oe=e.allRowsSelected(e.value);return S.createElement(xR,{hostName:e.hostName,column:Ae,checked:Oe,onChange:me,disabled:e.empty,ptCallbacks:e.ptCallbacks,metaData:e.metaData,unstyled:e.unstyled})}return null},_e=function(Ae,Pe){return Pe?S.createElement(PR,{hostName:e.hostName,display:"row",column:Ae,filterClearIcon:e.filterClearIcon,filterIcon:e.filterIcon,filters:e.filters,filtersStore:e.filtersStore,metaData:e.metaData,onFilterApply:e.onFilterApply,onFilterChange:e.onFilterChange,ptCallbacks:e.ptCallbacks,unstyled:e.unstyled}):null},Ne=function(){return S.Children.map(e.columns,function(Ae,Pe){var Oe=!R(Ae,"hidden");if(Oe){var Ke=zo.getCProps(Ae),St=Ke.filterHeaderStyle,st=Ke.style,yt=Ke.filterHeaderClassName,$e=Ke.className,ot=Ke.frozen,it=Ke.columnKey,Ie=Ke.field,tt=Ke.selectionMode,mt=Ke.filter,Wt=aE(aE({},St||{}),st||{}),cr=it||Ie||Pe,At=ce(Ae,tt),Ve=_e(Ae,mt),Jt=c({style:Wt,className:dt(yt,$e,C("headerCell",{frozen:ot,column:Ae}))},$(Ae,"root"),$(Ae,"headerCell"));return S.createElement("th",Yn({key:cr},Jt),At,Ve)}return null})},oe=function(){if(e.headerColumnGroup){var Ae=S.Children.toArray(mc.getCProp(e.headerColumnGroup,"children"));return Ae.map(function(St,st){var yt=Gm.getProps(St.props,A),$e=yt.unstyled;yt.__TYPE,yt.ptOptions;var ot=OR(yt,ZZ),it=c({role:"row"},$e?aE({unstyled:$e},ot):ot,U(St,"root"));return S.createElement("tr",Yn({},it,{key:st}),ne(St))})}var Pe=c({role:"row"},b("headerRow",{hostName:e.hostName})),Oe=S.createElement("tr",Pe,Ee(e.columns)),Ke=e.filterDisplay==="row"&&S.createElement("tr",Pe,Ne());return S.createElement(S.Fragment,null,Oe,Ke)},Se=oe(),re=c({className:C("thead"),role:"rowgroup"},F("root"),b("thead",{hostName:e.hostName}));return S.createElement("thead",re,Se)});TF.displayName="TableHeader";function eee(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=tee(e))||t){r&&(e=r);var n=0,o=function(){};return{s:o,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2238
2238
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,a=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var c=r.next();return a=c.done,c},e:function(c){s=!0,i=c},f:function(){try{a||r.return==null||r.return()}finally{if(s)throw i}}}}function tee(e,t){if(e){if(typeof e=="string")return P3(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P3(e,t):void 0}}function P3(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function x3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Hi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?x3(Object(r),!0).forEach(function(n){Wn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):x3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var OF=S.forwardRef(function(e,t){var r=S.useContext(qr),n=Vr(),o=Kv.getProps(e,r),i=S.useState(o.first),a=Kn(i,2),s=a[0],l=a[1],c=S.useState(o.rows),d=Kn(c,2),p=d[0],m=d[1],y=S.useState(o.sortField),b=Kn(y,2),v=b[0],C=b[1],A=S.useState(o.sortOrder),R=Kn(A,2),x=R[0],k=R[1],D=S.useState(o.multiSortMeta),F=Kn(D,2),$=F[0],U=F[1],G=S.useState(o.filters),Y=Kn(G,2),Q=Y[0],me=Y[1],ne=S.useState([]),Ee=Kn(ne,2),ce=Ee[0],_e=Ee[1],Ne=S.useState(null),oe=Kn(Ne,2),Se=oe[0],re=oe[1],we=S.useState({}),Ae=Kn(we,2),Pe=Ae[0],Oe=Ae[1],Ke=S.useState({}),St=Kn(Ke,2),st=St[0],yt=St[1],$e=S.useState(o.rows),ot=Kn($e,2),it=ot[0],Ie=ot[1],tt=S.useState({}),mt=Kn(tt,2),Wt=mt[0],cr=mt[1],At={props:o,state:{first:s,rows:p,sortField:v,sortOrder:x,multiSortMeta:$,filters:Q,columnOrder:ce,groupRowsSortMeta:Se,editingMeta:Pe,frozenEditingMeta:st,d_rows:it,d_filters:Wt},context:{scrollable:o.scrollable}},Ve=Kv.setMetaData(At);vo(Kv.css.styles,Ve.isUnstyled,{name:"datatable"});var Jt=S.useRef(""),ar=S.useRef(null),pr=S.useRef(null),gr=S.useRef(null),en=S.useRef(null),Wr=S.useRef(null),Xr=S.useRef(null),Pr=S.useRef(null),Br=S.useRef(null),Hr=S.useRef(null),jr=S.useRef(null),zr=S.useRef(null),Jr=S.useRef(null),In=S.useRef(null),tn=S.useRef(null),vr=S.useRef(null),at=S.useRef(null),Pt=S.useRef(null),pt=S.useRef(null),Rt=S.useRef(null),rt=S.useRef(null),ge=S.useRef(null),be=S.useRef(!1),We=S.useRef(null),Gt=S.useRef(!1),Qt=S.useRef(null),Zt=S.useRef(null),Cr=S.useRef(null);o.rows!==it&&!o.onPage&&(m(o.rows),Ie(o.rows));var zt=function(ye){return be.current&&fi(ye)},Qe=function(){return be.current&&(be.current=!1,Ss())},Et=Aa({type:"mousemove",listener:zt}),Ht=Kn(Et,2),ur=Ht[0],Dr=Ht[1],pn=Aa({type:"mouseup",listener:Qe}),Ln=Kn(pn,2),Qn=Ln[0],gn=Ln[1],Re=Aa({type:"touchmove",listener:zt}),Xe=Kn(Re,2),Ce=Xe[0],Te=Xe[1],et=Aa({type:"touchend",listener:Qe}),ht=Kn(et,2),Ft=ht[0],tr=ht[1],Lt=function(){return o.stateStorage==="custom"},Je=function(){return o.stateKey!=null||Lt()},vt=function(){return pe.isEmpty(o.virtualScrollerOptions)||!o.scrollable},jt=function(ye,je){return o.compareSelectionBy==="equals"?ye===je:pe.equals(ye,je,o.dataKey)},nr=function(){return pe.isNotEmpty(Vt())||o.globalFilter},Kt=function(){return o.onPage?o.first:s},sr=function(){return o.onPage?o.rows:p},br=function(){return o.onSort?o.sortField:v},Zr=function(){return o.onSort?o.sortOrder:x},Nr=function(){return(o.onSort?o.multiSortMeta:$)||[]},Vt=function(){return o.onFilter?o.filters:Q},X=function(ye,je){return zo.getCProp(ye,je)},q=function(ye){var je=S.Children.toArray(o.children);if(!je)return null;if(!ye&&o.reorderableColumns&&ce){var gt=ce.reduce(function(Dt,$t){var kt=Dn(je,$t);return kt&&Dt.push(kt),Dt},[]);return[].concat(Xo(gt),Xo(je.filter(function(Dt){return gt.indexOf(Dt)<0})))}return je},he=function(){var ye={};o.paginator&&(ye.first=Kt(),ye.rows=sr());var je=br();je&&(ye.sortField=je,ye.sortOrder=Zr());var gt=Nr();if(gt&&(ye.multiSortMeta=gt),nr()&&(ye.filters=Vt()),o.resizableColumns&&fr(ye),o.reorderableColumns&&(ye.columnOrder=ce),o.expandedRows&&(ye.expandedRows=o.expandedRows),o.selection&&o.onSelectionChange&&(ye.selection=o.selection),Lt())o.customSaveState&&o.customSaveState(ye);else{var Dt=iE(o.stateStorage);pe.isNotEmpty(ye)&&Dt.setItem(o.stateKey,JSON.stringify(ye))}o.onStateSave&&o.onStateSave(ye)},ze=function(){var ye=iE(o.stateStorage);ye&&o.stateKey&&ye.removeItem(o.stateKey)},lt=function(){var ye={};if(Lt())o.customRestoreState&&(ye=o.customRestoreState());else{var je=iE(o.stateStorage),gt=je.getItem(o.stateKey),Dt=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/,$t=function(rr,hr){return typeof hr=="string"&&Dt.test(hr)?new Date(hr):hr};gt&&(ye=JSON.parse(gt,$t))}yr(ye)},ct=function(ye){yr(ye)},yr=function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(pe.isNotEmpty(ye)){if(o.paginator)if(o.onPage){var je=function(Rr,Lr){var un=pi(ul()),bn=Math.ceil(un/Lr)||1,co=Math.floor(Rr/Lr);return{first:Rr,rows:Lr,page:co,pageCount:bn}};o.onPage(Ll(je(ye.first,ye.rows)))}else l(ye.first),m(ye.rows);if(ye.sortField&&(o.onSort?o.onSort(Ll({sortField:ye.sortField,sortOrder:ye.sortOrder})):(C(ye.sortField),k(ye.sortOrder))),ye.multiSortMeta)if(o.onSort)o.onSort(Ll({multiSortMeta:ye.multiSortMeta}));else{var gt=ye.multiSortMeta[ye.multiSortMeta.length-1],Dt=gt&&gt.field?gt.field:null;if(Dt){var $t=Dn(q(),Dt);if($t){var kt=X($t,"sortFunction"),rr=X($t,"sortable");kt&&rr&&(Qt.current=kt,Gt.current=rr,Zt.current=Dt)}}U(ye.multiSortMeta)}ye.filters&&(cr(kl(ye.filters)),o.onFilter?o.onFilter(Ll({filters:ye.filters})):me(kl(ye.filters))),o.resizableColumns&&(pt.current=ye.columnWidths,Rt.current=ye.tableWidth,Pn()),o.reorderableColumns&&_e(ye.columnOrder),ye.expandedRows&&o.onRowToggle&&o.onRowToggle({data:ye.expandedRows}),ye.selection&&o.onSelectionChange&&o.onSelectionChange({value:ye.selection}),o.onStateRestore&&o.onStateRestore(ye)}},fr=function(ye){var je=[],gt=le.find(ar.current,'[data-pc-section="thead"] > tr > th');gt.forEach(function(Dt){return je.push(le.getOuterWidth(Dt))}),ye.columnWidths=je.join(","),o.columnResizeMode==="expand"&&(ye.tableWidth=le.getOuterWidth(pr.current)+"px")},Ir=function(ye){vg();var je="",gt='[data-pc-name="datatable"]['.concat(Jt.current,'] > [data-pc-section="wrapper"] ').concat(vt()?"":'> [data-pc-name="virtualscroller"]',' > [data-pc-section="table"]');ye.forEach(function(Dt,$t){var kt="width: ".concat(Dt,"px !important; max-width: ").concat(Dt,"px !important");je=je+`
2239
2239
  `.concat(gt,' > [data-pc-section="thead"] > tr > th:nth-child(').concat($t+1,`),
2240
2240
  `).concat(gt,' > [data-pc-section="tbody"] > tr > td:nth-child(').concat($t+1,`),
@@ -2280,4 +2280,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
2280
2280
  }
2281
2281
  }
2282
2282
  `);at.current.innerHTML=Dt}},kf=function(){at.current=le.removeInlineStyle(at.current)},No=function(){vr.current=le.removeInlineStyle(vr.current)},bg=function(){Pt.current=le.removeInlineStyle(Pt.current)},z0=function(ye){Fn(),Ra(),o.onPage?o.onPage(Ll(ye)):(l(ye.first),m(ye.rows)),o.onValueChange&&o.onValueChange(ul())},K0=function(ye){Fn(),Ra();var je=ye.originalEvent,gt=ye.column,Dt=ye.sortableDisabledFields,$t=X(gt,"sortField")||X(gt,"field"),kt=o.defaultSortOrder,rr,hr;if(Gt.current=X(gt,"sortable"),Qt.current=X(gt,"sortFunction"),Zt.current=$t,o.sortMode==="multiple"){var Rr=je.metaKey||je.ctrlKey;rr=Xo(Nr());var Lr=rr.find(function(bn){return bn.field===$t});kt=Lr?Sg(Lr.order):kt;var un={field:$t,order:kt};kt?(rr=Rr?rr:rr.filter(function(bn){return Dt.some(function(co){return co===bn.field})}),G0(un,rr)):o.removableSort&&q0(un,rr),hr={multiSortMeta:rr}}else kt=br()===$t?Sg(Zr()):kt,o.removableSort&&($t=kt?$t:null),hr={sortField:$t,sortOrder:kt};o.onSort?o.onSort(Ll(hr)):(l(0),C(hr.sortField),k(hr.sortOrder),U(hr.multiSortMeta)),o.onValueChange&&o.onValueChange(ul({sortField:$t,sortOrder:kt,multiSortMeta:rr}))},Sg=function(ye){return o.removableSort?o.defaultSortOrder===ye?ye*-1:0:ye*-1},Eg=function(ye,je,gt,Dt){return pe.sort(ye,je,Dt,gt,r&&r.nullSortOrder||Ur.nullSortOrder)},G0=function(ye,je){var gt=je.findIndex(function(Dt){return Dt.field===ye.field});gt>=0?je[gt]=ye:je.push(ye)},q0=function(ye,je){var gt=je.findIndex(function(Dt){return Dt.field===ye.field});gt>=0&&je.splice(gt,1),je=je.length>0?je:null},J0=function(ye,je,gt){if(o.groupRowsBy&&o.groupRowsBy===o.sortField){var Dt=[{field:o.sortField,order:o.sortOrder||o.defaultSortOrder}];return o.sortField!==je&&Dt.push({field:je,order:gt}),Nn(ye,Dt)}var $t=Xo(ye);if(Gt.current&&Qt.current)$t=Qt.current({data:ye,field:je,order:gt});else{var kt=new Map,rr=pe.localeComparator(r&&r.locale||Ur.locale),hr=eee(ye),Rr;try{for(hr.s();!(Rr=hr.n()).done;){var Lr=Rr.value;kt.set(Lr,pe.resolveFieldData(Lr,je))}}catch(un){hr.e(un)}finally{hr.f()}$t.sort(function(un,bn){var co=kt.get(un),wi=kt.get(bn);return Eg(co,wi,rr,gt)})}return $t},Nn=function(ye){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if(o.groupRowsBy&&(Se||je.length&&o.groupRowsBy===je[0].field)){var gt=Se,Dt=je[0];gt||(gt=Dt,re(gt)),Dt.field!==gt.field&&(je=[gt].concat(Xo(je)))}var $t=Xo(ye);if(Gt.current&&Qt.current){var kt=je.find(function(Lr){return Lr.field===Zt.current}),rr=Zt.current,hr=kt?kt.order:o.defaultSortOrder;$t=Qt.current({data:ye,field:rr,order:hr,multiSortMeta:je})}else{var Rr=pe.localeComparator(r&&r.locale||Ur.locale);$t.sort(function(Lr,un){return Cg(Lr,un,je,0,Rr)})}return $t},Cg=function(ye,je,gt,Dt,$t){if(!(!gt||!gt[Dt])){var kt=pe.resolveFieldData(ye,gt[Dt].field),rr=pe.resolveFieldData(je,gt[Dt].field);return pe.compare(kt,rr,$t)===0?gt.length-1>Dt?Cg(ye,je,gt,Dt+1,$t):0:Eg(kt,rr,$t,gt[Dt].order)}},Y0=function(ye){Fn(),Ra(),cr(ye)},Lf=function(ye){clearTimeout(Cr.current),Cr.current=setTimeout(function(){var je=kl(ye||Wt);o.onFilter?o.onFilter(Ll({filters:je})):(l(0),me(je)),o.onValueChange&&o.onValueChange(ul({filters:je}))},o.filterDelay)},Q0=function(ye){var je=function(kt){var rr=Kn(kt,2),hr=rr[0],Rr=rr[1];if(Rr.constraints){var Lr=Rr.constraints.filter(function(un){return un.value!==null});if(Lr.length>0)return[hr,Hi(Hi({},Rr),{},{constraints:Lr})]}else if(Rr.value!==null)return[hr,Rr]},gt=function(kt){return kt!==void 0},Dt=Object.entries(ye).map(je).filter(gt);return Object.fromEntries(Dt)},X0=function(ye,je){if(ye){var gt=je?Q0(je):{},Dt=q(),$t=[],kt=gt.global||o.globalFilter,rr;kt&&(rr=o.globalFilterFields||Dt.filter(function(Yd){return!X(Yd,"excludeGlobalFilter")}).map(function(Yd){return X(Yd,"filterField")||X(Yd,"field")}));for(var hr=0;hr<ye.length;hr++){var Rr=!0,Lr=!1,un=!1;for(var bn in gt)if(bn!=="null"&&Object.prototype.hasOwnProperty.call(gt,bn)&&bn!=="global"){un=!0;var co=bn,wi=gt[co];if(wi.operator)for(var es=0;es<wi.constraints.length;es++){var ts=wi.constraints[es];if(Rr=wg(co,ye[hr],ts,es),wi.operator===Th.OR&&Rr||wi.operator===Th.AND&&!Rr)break}else Rr=wg(co,ye[hr],wi,0);if(!Rr)break}if(Rr&&kt&&!Lr&&rr)for(var Fi=0;Fi<rr.length;Fi++){var da=rr[Fi],Eu=gt.global?gt.global.matchMode:o.globalFilterMatchMode,jf=gt.global?gt.global.value:o.globalFilter;if(Lr=Oh.filters[Eu](pe.resolveFieldData(ye[hr],da),jf,o.filterLocale),Lr)break}var Cu=void 0;kt?Cu=un?un&&Rr&&Lr:Lr:Cu=un&&Rr,Cu&&$t.push(ye[hr])}return($t.length===o.value.length||Object.keys(gt).length===0)&&($t=ye),$t}},wg=function(ye,je,gt,Dt){var $t=gt.value,kt=gt.matchMode==="custom"?"custom_".concat(ye):gt.matchMode||En.STARTS_WITH,rr=pe.resolveFieldData(je,ye),hr=Oh.filters[kt];return pe.isFunction(hr)&&hr(rr,$t,o.filterLocale,Dt)},kl=function(ye){ye=ye||o.filters;var je={};if(ye)Object.entries(ye).forEach(function(Dt){var $t=Kn(Dt,2),kt=$t[0],rr=$t[1];je[kt]=rr.operator?{operator:rr.operator,constraints:rr.constraints.map(function(hr){return Hi({},hr)})}:Hi({},rr)});else{var gt=q();je=gt.reduce(function(Dt,$t){var kt=X($t,"filterField")||X($t,"field"),rr=X($t,"filterFunction"),hr=X($t,"dataType"),Rr=X($t,"filterMatchMode")||(r&&r.filterMatchModeOptions[hr]||Ur.filterMatchModeOptions[hr]?r&&r.filterMatchModeOptions[hr][0]||Ur.filterMatchModeOptions[hr][0]:En.STARTS_WITH),Lr={value:null,matchMode:Rr};return rr&&Oh.register("custom_".concat(kt),function(){for(var un=arguments.length,bn=new Array(un),co=0;co<un;co++)bn[co]=arguments[co];return rr.apply(void 0,bn.concat([{column:$t}]))}),Dt[kt]=o.filterDisplay==="menu"?{operator:Th.AND,constraints:[Lr]}:Lr,Dt},{})}return je},Ig=function(ye,je,gt){var Dt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,$t=Hi({},Wt),kt=$t[je],rr=kt&&kt.operator?kt.constraints[Dt]:kt;rr=kt?{value:ye,matchMode:gt||rr.matchMode}:{value:ye,matchMode:gt},o.filterDisplay==="menu"&&kt&&kt.operator?$t[je].constraints[Dt]=rr:$t[je]=rr,cr($t),Lf($t)},Z0=function(){Ie(o.rows),cr(kl(o.filters)),re(null),Oe({}),yt({}),o.onPage||(l(o.first),m(o.rows)),o.onSort||(C(o.sortField),k(o.sortOrder),U(o.multiSortMeta)),o.onFilter||me(o.filters),Ag()},Vs=function(){if(gr.current){var ye=vt()?gr.current:le.findSingle(gr.current,'[data-pc-name="virtualscroller"]');ye.scrollTo(0,0)}},eS=function(){No()},Ag=function(){var ye=q(!0),je=[];ye&&(je=ye.reduce(function(gt,Dt){return gt.push(X(Dt,"columnKey")||X(Dt,"field")),gt},[])),_e(je)},tS=function(ye){var je,gt="\uFEFF";ye&&ye.selectionOnly?je=o.selection||[]:je=[].concat(Xo(o.frozenValue||[]),Xo(ul()||[]));var Dt=q().filter(function($t){var kt=X($t,"exportable"),rr=X($t,"field");return kt!==!1&&rr});Dt.forEach(function($t,kt){var rr=[X($t,"field"),X($t,"header"),X($t,"exportHeader")],hr=rr[0],Rr=rr[1],Lr=rr[2],un=String(Lr||Rr||hr).replace(/"/g,'""').replace(/\n/g,"\u2028");gt=gt+('"'+un+'"'),kt<Dt.length-1&&(gt=gt+o.csvSeparator)}),je.forEach(function($t){gt=gt+`
2283
- `,Dt.forEach(function(kt,rr){var hr=[X(kt,"field"),X(kt,"exportField")],Rr=hr[0],Lr=hr[1],un=Lr||Rr,bn=pe.resolveFieldData($t,un);bn!=null?o.exportFunction?bn=o.exportFunction({data:bn,field:un,rowData:$t,column:kt}):bn=String(bn).replace(/"/g,'""').replace(/\n/g,"\u2028"):bn="",gt=gt+('"'+bn+'"'),rr<Dt.length-1&&(gt=gt+o.csvSeparator)})}),le.exportCSV(gt,o.exportFilename)},rS=function(){o.editMode!=="row"&&document.body.click()},nS=function(){le.find(document.body,'[data-pc-section="roweditorcancelbuttonprops"]').forEach(function(ye,je){setTimeout(function(){ye.click()},je*5)})},Ll=function(ye){return Hi({first:Kt(),rows:sr(),sortField:br(),sortOrder:Zr(),multiSortMeta:Nr(),filters:Vt()},ye)},ul=function(ye){var je=o.value||[];if(!o.lazy&&je&&je.length){var gt=ye&&ye.filters||Vt(),Dt=ye&&ye.sortField||br(),$t=ye&&ye.sortOrder||Zr(),kt=ye&&ye.multiSortMeta||Nr(),rr=q(),hr=rr.find(function(Rr){return X(Rr,"field")===Dt});hr&&(Gt.current=X(hr,"sortable"),Qt.current=X(hr,"sortFunction")),(pe.isNotEmpty(gt)||o.globalFilter)&&(je=X0(je,gt)),(Dt||pe.isNotEmpty(kt))&&(o.sortMode==="single"?je=J0(je,Dt,$t):o.sortMode==="multiple"&&(je=Nn(je,kt)))}return je},Kd=function(ye){if(ye&&o.paginator){var je=o.lazy?0:Kt();return ye.slice(je,je+sr())}return ye};Go(function(){ar.current&&(Jt.current=ms(),ar.current.setAttribute(Jt.current,"")),cr(kl(o.filters)),Je()&&(lt(),o.resizableColumns&&Pn())}),hn(function(){return o.responsiveLayout==="stack"&&!o.scrollable&&yg(),function(){kf()}},[o.breakpoint]),hn(function(){var Ut=kl(o.filters);me(Ut),cr(kl(o.filters)),o.onValueChange&&o.onValueChange(ul({filters:Ut}))},[o.filters]),hn(function(){Je()&&he()}),hn(function(){kf(),o.responsiveLayout==="stack"&&!o.scrollable&&yg()},[o.responsiveLayout,o.scrollable]),hn(function(){if(o.globalFilter)Ig(o.globalFilter,"global",o.globalFilterMatchMode);else if(Wt.global){var Ut=Hi({},Wt);delete Ut.global,cr(Ut),Lf(Ut)}},[o.globalFilter,o.globalFilterMatchMode]),Ci(function(){xt(),No(),kf(),bg()}),S.useImperativeHandle(t,function(){return{props:o,clearState:ze,closeEditingCell:rS,closeEditingRows:nS,exportCSV:tS,filter:Ig,reset:Z0,resetColumnOrder:Ag,resetScroll:Vs,resetResizeColumnsWidth:eS,restoreColumnWidths:Pn,restoreState:lt,restoreTableState:ct,saveState:he,getFilterMeta:function(){return Q},setFilterMeta:function(ye){return me(ye)},getSortMeta:function(){return $},setSortMeta:function(ye){return U(ye)},getElement:function(){return ar.current},getTable:function(){return pr.current},getVirtualScroller:function(){return Xr.current},getProcessedData:function(){return ul()}}});var er=function(){if(o.loading){var ye=n({className:Ve.cx("loadingIcon")},Ve.ptm("loadingIcon")),je=o.loadingIcon||S.createElement(pg,Yn({},ye,{spin:!0})),gt=nn.getJSXIcon(je,Hi({},ye),{props:o}),Dt=n({className:Ve.cx("loadingOverlay")},Ve.ptm("loadingOverlay"));return S.createElement("div",Dt,gt)}return null},I=function(){if(o.header){var ye=pe.getJSXElement(o.header,{props:o}),je=n({className:Ve.cx("header")},Ve.ptm("header"));return S.createElement("div",je,ye)}return null},Rg=function(ye,je,gt){if(o.showHeaders===!1)return null;var Dt=br(),$t=Zr(),kt=Xo(Nr()),rr=xn(),hr=Wt,Rr=!o.onFilter&&o.filters||Vt(),Lr=ye.items,un=ye.props,bn=ye.columns,co=gt||un.lazy?Lr:un.items;return S.createElement(TF,{hostName:"DataTable",value:co,tableProps:o,columns:bn,tabIndex:o.tabIndex,empty:je,headerColumnGroup:o.headerColumnGroup,resizableColumns:o.resizableColumns,onColumnResizeStart:Li,onColumnResizerClick:o.onColumnResizerClick,onColumnResizerDoubleClick:o.onColumnResizerDoubleClick,sortMode:o.sortMode,sortField:Dt,sortIcon:o.sortIcon,sortOrder:$t,multiSortMeta:kt,groupRowsBy:o.groupRowsBy,groupRowSortField:rr,onSortChange:K0,filterDisplay:o.filterDisplay,filters:hr,filtersStore:Rr,filterIcon:o.filterIcon,filterClearIcon:o.filterClearIcon,onFilterChange:Y0,onFilterApply:Lf,showSelectAll:o.showSelectAll,allRowsSelected:An,onColumnCheckboxChange:Rn,onColumnMouseDown:_r,onColumnDragStart:ln,onColumnDragOver:kr,onColumnDragLeave:zd,onColumnDrop:Ac,rowGroupMode:o.rowGroupMode,reorderableColumns:o.reorderableColumns,ptCallbacks:Ve,metaData:At,unstyled:o.unstyled})},Tg=function(ye,je,gt,Dt,$t){var kt=Kt(),rr=ye.rows,hr=ye.columns,Rr=ye.contentRef,Lr=ye.style,un=ye.className,bn=ye.spacerStyle,co=ye.itemSize,wi=pe.isNotEmpty(o.frozenValue)&&S.createElement($y,{hostName:"DataTable",ref:Wr,cellMemo:o.cellMemo,cellMemoProps:o.cellMemoProps,cellMemoPropsDepth:o.cellMemoPropsDepth,cellClassName:o.cellClassName,cellSelection:o.cellSelection,checkIcon:o.checkIcon,className:"p-datatable-tbody p-datatable-frozen-tbody",collapsedRowIcon:o.collapsedRowIcon,columns:hr,compareSelectionBy:o.compareSelectionBy,contextMenuSelection:o.contextMenuSelection,dataKey:o.dataKey,dragSelection:o.dragSelection,editMode:o.editMode,editingMeta:st,editingRows:o.editingRows,emptyMessage:o.emptyMessage,expandableRowGroups:o.expandableRowGroups,expandedRowIcon:o.expandedRowIcon,expandedRows:o.expandedRows,first:kt,frozenRow:!0,groupRowsBy:o.groupRowsBy,isDataSelectable:o.isDataSelectable,isVirtualScrollerDisabled:!0,lazy:o.lazy,loading:o.loading,metaKeySelection:o.metaKeySelection,onCellClick:o.onCellClick,onCellSelect:o.onCellSelect,onCellUnselect:o.onCellUnselect,onContextMenu:o.onContextMenu,onContextMenuSelectionChange:o.onContextMenuSelectionChange,onEditingMetaChange:yn,onRowClick:o.onRowClick,onRowCollapse:o.onRowCollapse,onRowDoubleClick:o.onRowDoubleClick,onRowPointerDown:o.onRowPointerDown,onRowPointerUp:o.onRowPointerUp,onRowEditCancel:o.onRowEditCancel,onRowEditChange:o.onRowEditChange,onRowEditComplete:o.onRowEditComplete,onRowEditInit:o.onRowEditInit,onRowEditSave:o.onRowEditSave,onRowExpand:o.onRowExpand,onRowMouseEnter:o.onRowMouseEnter,onRowMouseLeave:o.onRowMouseLeave,onRowReorder:o.onRowReorder,onRowSelect:o.onRowSelect,onRowToggle:o.onRowToggle,onRowUnselect:o.onRowUnselect,onSelectionChange:o.onSelectionChange,paginator:o.paginator,processedData:$t,reorderableRows:o.reorderableRows,responsiveLayout:o.responsiveLayout,rowClassName:o.rowClassName,rowEditValidator:o.rowEditValidator,rowEditorCancelIcon:o.rowEditorCancelIcon,rowEditorInitIcon:o.rowEditorInitIcon,rowEditorSaveIcon:o.rowEditorSaveIcon,rowExpansionTemplate:o.rowExpansionTemplate,rowGroupFooterTemplate:o.rowGroupFooterTemplate,rowGroupHeaderTemplate:o.rowGroupHeaderTemplate,rowGroupMode:o.rowGroupMode,scrollable:o.scrollable,selectOnEdit:o.selectOnEdit,selection:o.selection,selectionAutoFocus:o.selectionAutoFocus,selectionMode:o.selectionMode,selectionModeInColumn:je,showRowReorderElement:o.showRowReorderElement,showSelectionElement:o.showSelectionElement,tabIndex:o.tabIndex,tableProps:o,tableSelector:Jt.current,value:o.frozenValue,virtualScrollerOptions:ye,ptCallbacks:Ve,metaData:At,unstyled:o.unstyled}),es=S.createElement($y,{hostName:"DataTable",ref:en,cellMemo:o.cellMemo,cellMemoProps:o.cellMemoProps,cellMemoPropsDepth:o.cellMemoPropsDepth,cellClassName:o.cellClassName,cellSelection:o.cellSelection,checkIcon:o.checkIcon,className:dt("p-datatable-tbody",un),collapsedRowIcon:o.collapsedRowIcon,columns:hr,compareSelectionBy:o.compareSelectionBy,contextMenuSelection:o.contextMenuSelection,dataKey:o.dataKey,dragSelection:o.dragSelection,editMode:o.editMode,editingMeta:Pe,editingRows:o.editingRows,empty:gt,emptyMessage:o.emptyMessage,expandableRowGroups:o.expandableRowGroups,expandedRowIcon:o.expandedRowIcon,expandedRows:o.expandedRows,first:kt,frozenRow:!1,groupRowsBy:o.groupRowsBy,isDataSelectable:o.isDataSelectable,isVirtualScrollerDisabled:Dt,lazy:o.lazy,loading:o.loading,metaKeySelection:o.metaKeySelection,onCellClick:o.onCellClick,onCellSelect:o.onCellSelect,onCellUnselect:o.onCellUnselect,onContextMenu:o.onContextMenu,onContextMenuSelectionChange:o.onContextMenuSelectionChange,onEditingMetaChange:uo,onRowClick:o.onRowClick,onRowCollapse:o.onRowCollapse,onRowDoubleClick:o.onRowDoubleClick,onRowEditCancel:o.onRowEditCancel,onRowEditChange:o.onRowEditChange,onRowEditComplete:o.onRowEditComplete,onRowEditInit:o.onRowEditInit,onRowEditSave:o.onRowEditSave,onRowExpand:o.onRowExpand,onRowMouseEnter:o.onRowMouseEnter,onRowMouseLeave:o.onRowMouseLeave,onRowPointerDown:o.onRowPointerDown,onRowPointerUp:o.onRowPointerUp,onRowReorder:o.onRowReorder,onRowSelect:o.onRowSelect,onRowToggle:o.onRowToggle,onRowUnselect:o.onRowUnselect,onSelectionChange:o.onSelectionChange,paginator:o.paginator,processedData:$t,reorderableRows:o.reorderableRows,responsiveLayout:o.responsiveLayout,rowClassName:o.rowClassName,rowEditValidator:o.rowEditValidator,rowEditorCancelIcon:o.rowEditorCancelIcon,rowEditorInitIcon:o.rowEditorInitIcon,rowEditorSaveIcon:o.rowEditorSaveIcon,rowExpansionTemplate:o.rowExpansionTemplate,rowGroupFooterTemplate:o.rowGroupFooterTemplate,rowGroupHeaderTemplate:o.rowGroupHeaderTemplate,rowGroupMode:o.rowGroupMode,scrollable:o.scrollable,selectOnEdit:o.selectOnEdit,selection:o.selection,selectionAutoFocus:o.selectionAutoFocus,selectionMode:o.selectionMode,selectionModeInColumn:je,showRowReorderElement:o.showRowReorderElement,showSelectionElement:o.showSelectionElement,style:Lr,tabIndex:o.tabIndex,tableProps:o,tableSelector:Jt.current,value:Kd(rr),virtualScrollerContentRef:Rr,virtualScrollerOptions:ye,ptCallbacks:Ve,metaData:At,unstyled:o.unstyled}),ts=pe.isNotEmpty(bn)?S.createElement($y,{hostName:"DataTable",style:{height:"calc(".concat(bn.height," - ").concat(rr.length*co,"px)")},className:"p-datatable-virtualscroller-spacer",ptCallbacks:Ve,metaData:At,unstyled:o.unstyled}):null;return S.createElement(S.Fragment,null,wi,es,ts)},Gd=function(ye){var je=ye.columns;return S.createElement(AF,{hostName:"DataTable",tableProps:o,columns:je,footerColumnGroup:o.footerColumnGroup,ptCallbacks:Ve,metaData:At,unstyled:o.unstyled})},ua=function(ye,je,gt,Dt){if(je){var $t=vt(),kt=o.virtualScrollerOptions||{},rr=n({className:Ve.cx("wrapper"),style:Hi(Hi({},Ve.sx("wrapper")),{},{maxHeight:$t?o.scrollHeight:null})},Ve.ptm("wrapper"));return S.createElement("div",Yn({ref:gr},rr),S.createElement(IR,Yn({ref:Xr},kt,{items:ye,columns:je,style:Hi(Hi({},kt.style),{height:o.scrollHeight!=="flex"?o.scrollHeight:void 0}),scrollHeight:o.scrollHeight!=="flex"?void 0:"100%",disabled:$t,loaderDisabled:!0,inline:!0,autoSize:!0,pt:Ve.ptm("virtualScroller"),__parentMetadata:{parent:At},showSpacer:!1,unstyled:o.unstyled,contentTemplate:function(Rr){var Lr=function(ts){pr.current=ts,Rr.spacerRef&&Rr.spacerRef(ts)},un=Rg(Rr,Dt,$t),bn=Tg(Rr,gt,Dt,$t,ye),co=Gd(Rr),wi=n({className:dt(o.tableClassName,Ve.cx("table")),style:o.tableStyle,role:"table"},Ve.ptm("table"));return S.createElement("table",Yn({ref:Lr},wi),un,bn,co)}})))}},oS=function(){if(o.footer){var ye=pe.getJSXElement(o.footer,{props:o}),je=n({className:Ve.cx("footer")},Ve.ptm("footer"));return S.createElement("div",je,ye)}return null},Og=function(ye,je){return S.createElement(aF,{first:Kt(),rows:sr(),pageLinkSize:o.pageLinkSize,className:dt(o.paginatorClassName,Ve.cx("paginator",{position:ye})),onPageChange:z0,template:o.paginatorTemplate,totalRecords:je,rowsPerPageOptions:o.rowsPerPageOptions,currentPageReportTemplate:o.currentPageReportTemplate,leftContent:o.paginatorLeft,rightContent:o.paginatorRight,alwaysShow:o.alwaysShowPaginator,dropdownAppendTo:o.paginatorDropdownAppendTo,pt:Ve.ptm("paginator"),unstyled:o.unstyled,__parentMetadata:{parent:At}})},iS=function(ye){return o.paginator&&o.paginatorPosition!=="bottom"?Og("top",ye):null},bu=function(ye){return o.paginator&&o.paginatorPosition!=="top"?Og("bottom",ye):null},Rc=function(){if(o.resizableColumns){var ye=n({className:Ve.cx("resizeHelper"),style:Ve.sx("resizeHelper")},Ve.ptm("resizeHelper"));return S.createElement("div",Yn({ref:zr},ye))}return null},ti=function(){if(o.reorderableColumns){var ye={position:"absolute",display:"none"},je=n({className:Ve.cx("reorderIndicatorUp"),style:Ve.sx("reorderIndicatorUp",{style:ye})},Ve.ptm("reorderIndicatorUp")),gt=n(Ve.ptm("reorderIndicatorUpIcon")),Dt=nn.getJSXIcon(o.reorderIndicatorUpIcon||S.createElement(HL,gt),Hi({},gt),{props:o}),$t=n({className:Ve.cx("reorderIndicatorDown"),style:Ve.sx("reorderIndicatorDown",{style:ye})},Ve.ptm("reorderIndicatorDown")),kt=n(Ve.ptm("reorderIndicatorDownIcon")),rr=nn.getJSXIcon(o.reorderIndicatorDownIcon||S.createElement(UL,kt),Hi({},kt),{props:o});return S.createElement(S.Fragment,null,S.createElement("span",Yn({ref:Pr},je),Dt),S.createElement("span",Yn({ref:Br},$t),rr))}return null},Xn=ul(),Su=q(),Va=pi(Xn),aS=pe.isEmpty(Xn),_g=lo(Su),qd=o.selectionMode||_g,Hn=er(),sS=I(),lS=iS(Va),ca=ua(Xn,Su,_g,aS),Es=bu(Va),Ff=oS(),uS=Rc(),Jd=ti(),Pg=n({id:o.id,className:dt(o.className,Ve.cx("root",{selectable:qd})),style:o.style,"data-scrollselectors":".p-datatable-wrapper","data-showgridlines":o.showGridlines},Kv.getOtherProps(o),Ve.ptm("root"));return S.createElement("div",Yn({ref:ar},Pg),Hn,sS,lS,ca,Es,Ff,uS,Jd)});OF.displayName="DataTable";function FI(){return FI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},FI.apply(null,arguments)}function qm(e){"@babel/helpers - typeof";return qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qm(e)}function ree(e,t){if(qm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nee(e){var t=ree(e,"string");return qm(t)=="symbol"?t:t+""}function oee(e,t,r){return(t=nee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var iee={root:function(t){var r=t.props;return dt("p-icon-field",{"p-icon-field-right":r.iconPosition==="right","p-icon-field-left":r.iconPosition==="left"})}},sE=Ar.extend({defaultProps:{__TYPE:"IconField",__parentMetadata:null,children:void 0,className:null,iconPosition:"right"},css:{classes:iee}});function D3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function N3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D3(Object(r),!0).forEach(function(n){oee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var _F=se.memo(se.forwardRef(function(e,t){var r=se.useRef(t),n=Vr(),o=se.useContext(qr),i=sE.getProps(e,o),a=sE.setMetaData(N3(N3({props:i},i.__parentMetadata),{},{context:{iconPosition:i.iconPosition}})),s=a.ptm,l=a.cx,c=n({className:dt(i.className,l("root",{iconPosition:i.iconPosition}))},sE.getOtherProps(i),s("root"));return se.createElement("div",FI({},c,{ref:r}),se.Children.map(i.children,function(d,p){return se.cloneElement(d,{iconPosition:i.iconPosition})}))}));_F.displayName="IconField";function jI(){return jI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jI.apply(null,arguments)}function Jm(e){"@babel/helpers - typeof";return Jm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jm(e)}function aee(e,t){if(Jm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function see(e){var t=aee(e,"string");return Jm(t)=="symbol"?t:t+""}function lee(e,t,r){return(t=see(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var uee={root:"p-input-icon"},lE=Ar.extend({defaultProps:{__TYPE:"InputIcon",__parentMetadata:null,className:null,iconPosition:null},css:{classes:uee}});function M3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function k3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M3(Object(r),!0).forEach(function(n){lee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var PF=se.memo(se.forwardRef(function(e,t){var r=se.useRef(t),n=Vr(),o=se.useContext(qr),i=lE.getProps(e,o),a=lE.setMetaData(k3(k3({props:i},i.__parentMetadata),{},{context:{iconPosition:i.iconPosition}})),s=a.ptm,l=a.cx,c=n({className:dt(i.className,l("root"))},lE.getOtherProps(i),s("root"));return se.createElement(se.Fragment,null,se.createElement("span",jI({},c,{ref:r}),i.children))}));PF.displayName="InputIcon";const cee=({can:e,columnHeader:t,currentUserId:r,filteredUsers:n,filter:o,handleMakeHost:i,handleMakeManager:a,handleRevokeManager:s,handleToggleParticipantMic:l,isManager:c,loading:d,setFilter:p,setSelectedUser:m,userMenuRef:y})=>ae.jsxs(ae.Fragment,{children:[ae.jsxs(_F,{iconPosition:"left",className:"w-full mb-16",children:[ae.jsx(PF,{className:"fa-regular fa-magnifying-glass"}),ae.jsx(W0,{value:o,onChange:b=>p(b.target.value),placeholder:"Buscar participantes",className:"w-full"})]}),ae.jsxs(OF,{value:n,size:"small",stripedRows:!0,children:[ae.jsx(yI,{body:b=>ae.jsxs("div",{className:"flex items-center gap-16",children:[ae.jsx("p",{className:"font-semibold",children:b.displayName}),b.isHost&&ae.jsx(gg,{label:"Admin",className:"text-neutral-50 rounded-l font-semibold","data-testid":"admin-chip"})]}),header:t}),ae.jsx(yI,{body:b=>ae.jsxs("div",{className:"flex gap-4 justify-end",children:[ae.jsx(Pi,{"aria-label":"Toggle video",disabled:!0,icon:`fa-regular fa-video${b.bVideoOn?"":"-slash"} text-neutral-40`,text:!0}),ae.jsx(Pi,{"aria-label":"Toggle microphone",disabled:d||b.userId===r||!e.toggleUserAudio,icon:`fa-regular fa-microphone${b.muted?"-slash":""} text-neutral-40`,onClick:()=>l(b),text:!0}),e.changeUserRole&&ae.jsx(Pi,{"aria-label":"Open user menu","data-testid":"open-user-menu-button","aria-controls":"user-menu","aria-haspopup":!0,disabled:b.userId===r,icon:"fa-regular fa-gear text-neutral-40",onClick:v=>{var C;m(b),(C=y.current)==null||C.toggle(v)},text:!0})]})})]}),ae.jsx(uu,{id:"user-menu",ref:y,popup:!0,popupAlignment:"right",model:[{visible:c,label:"Convertir a asistente",command:s,data:{"data-testid":"revoke-manager-menu-item"}},{visible:!c,label:"Convertir a Panelista",command:a,data:{"data-testid":"make-manager-menu-item"}},{label:"Transferir Administración",command:i,data:{"data-testid":"make-admin-menu-item"}}]})]}),dee=e=>{const t=Wd(),{changeUserRole:r}=Tf(),n=fg(),{alertUser:o}=U0(),{zmClient:i}=ll(),{currentUser:a}=yu(),{muteUserMic:s,unmuteUserMic:l}=Ic(),{confirm:c,notify:d}=bs(),[p,m]=se.useState(""),y=p.toLocaleLowerCase().trim(),b=e.filter(F=>F.displayName.toLocaleLowerCase().includes(y)),v=se.useRef(null),[C,A]=se.useState(null),R=se.useCallback(async()=>{C&&c({header:"Convertir a panelista",message:"¿Quieres convertir a esta persona en panelista?",onAccept:async()=>{await i.makeManager(C.userId),await o(C.userId,"Ha sido convertido a panelista"),await(r==null?void 0:r({userId:C.userId,role:"PANELIST"})),d({header:"Cambio a panelista",message:"Has cambiado a panelista a este asistente.",severity:"success"})}})},[i,C,c,o,d,r]),x=se.useCallback(async()=>{C&&c({header:"Convertir a asistente",message:"¿Quieres convertir a esta persona en asistente?",onAccept:async()=>{await i.revokeManager(C.userId),await o(C.userId,"Ha sido convertido a asistente"),await(r==null?void 0:r({userId:C.userId,role:"ATTENDEE"})),d({header:"Cambio a asistente",message:"Has cambiado a asistente a este panelista.",severity:"success"})}})},[i,C,c,o,d,r]),k=se.useCallback(async()=>{C&&c({header:"Transferir administración",message:"Va a transferir la administración a otro usuario. Esta operación es irrevocable. ¿Está seguro?",onAccept:async()=>{await i.makeHost(C.userId),await o(C.userId,"¡Ha sido promocionado a Administrador!"),await(r==null?void 0:r({userId:C.userId,role:"HOST"})),d({header:"Cambio a administrador",message:"Has cambiado a administrador a este usuario.",severity:"success"})}})},[i,C,c,d,o,r]),[D]=wa(async F=>{c({header:F.muted?"Encender micrófono":"Apagar micrófono",message:F.muted?`¿Quieres solicitar a ${F.displayName} que encienda su micrófono?`:`¿Quieres apagar el micrófono de ${F.displayName}?`,onAccept:async()=>{F.muted?await l(F.userId):(await s(F.userId),d({header:F.muted?"Solicitud de encendido de micrófono":"Micrófono apagado",message:F.muted?`Has solicitado a ${F.displayName} que encienda su micrófono.`:`Has apagado el micrófono de ${F.displayName}.`,severity:"success"}))}})},[c,s,l,d],n.ref);return{can:{changeUserRole:t("change-user-role"),toggleUserAudio:t("toggle-user-audio"),toggleUserVideo:t("toggle-user-video")},currentUserId:(a==null?void 0:a.userId)??0,filteredUsers:b,filter:p,handleMakeHost:k,handleMakeManager:R,handleRevokeManager:x,handleToggleParticipantMic:D,isManager:(C==null?void 0:C.isManager)??!1,loading:n.loading,setFilter:m,setSelectedUser:A,userMenuRef:v}},L3=({users:e,columnHeader:t})=>{const r=dee(e);return ae.jsx(cee,{columnHeader:t,...r})},F3=({users:e})=>{const t=Wd(),r=e.filter(o=>o.isHost||o.isManager),n=e.filter(o=>!o.isHost&&!o.isManager);return ae.jsxs(BL,{activeIndex:0,pt:{panelContainer:{className:"px-0"}},children:[ae.jsx(vI,{header:"Panelistas",children:ae.jsx(L3,{users:r,columnHeader:`${r.length} panelistas`})}),t("show-attendee-list")&&ae.jsx(vI,{header:"Asistentes",children:ae.jsx(L3,{users:n,columnHeader:`${n.length} asistentes`})})]})},pee=({participant:e,onMicToggle:t,onLowerHand:r,isMicToggleEnabled:n})=>ae.jsxs("li",{className:"flex justify-between items-center py-8 border border-neutral-80 rounded-m px-8","aria-label":`Usuario ${e.displayName}`,"data-testid":"turn-queue-user-item",children:[ae.jsx("p",{className:"font-semibold whitespace-nowrap truncate","data-testid":"turn-queue-user-name",children:e.displayName}),ae.jsxs("div",{className:"flex gap-8 items-center",children:[ae.jsx("button",{"aria-label":e.muted?`Solicitar a ${e.displayName} que encienda su micrófono`:`Apagar el micrófono de ${e.displayName}`,className:"flex items-center justify-center w-24 h-24","data-testid":"turn-queue-user-mic-btn",disabled:!n,onClick:()=>t(e),children:ae.jsx("i",{"aria-hidden":"true",className:`fa-regular fa-microphone${e.muted?"-slash":""} text-neutral-40`})}),ae.jsx("button",{"aria-label":`Bajar la mano de ${e.displayName}`,className:"border border-neutral-80 rounded-l px-8 py-4 font-semibold text-neutral-50 whitespace-nowrap w-fit h-fit","data-testid":"turn-queue-user-lower-hand-btn",onClick:()=>r(e.userId),children:"Bajar mano"})]})]}),fee=({onToggleHand:e,isToggleHandEnabled:t,currentUser:r,raisedHand:n,queuePosition:o,queueLength:i})=>ae.jsxs(ae.Fragment,{children:[n?ae.jsxs("div",{className:"flex flex-col gap-4",children:[ae.jsx("p",{className:"font-semibold",children:"Has solicitado el turno de palabra"}),ae.jsx("p",{children:"Espera que el administrador de la videoconferencia te dé acceso."})]}):ae.jsxs("div",{className:"flex flex-col gap-4",children:[ae.jsx("p",{className:"font-semibold",children:"No has solicitado el turno de palabra"}),ae.jsx("p",{children:"Levanta la mano para solicitar acceso a la videoconferencia."})]}),ae.jsxs("div",{className:"flex justify-between gap-16 my-16 p-8 rounded-m border border-neutral-80",children:[ae.jsx("div",{className:"flex items-center whitespace-nowrap truncate",children:o!==-1?ae.jsxs("p",{className:"truncate","data-testid":"request-turn-position",children:["Posición ",o+1," de ",i]}):ae.jsxs("p",{className:"truncate",children:[i," personas han levantado la mano"]})}),ae.jsxs("div",{className:"flex items-center gap-8",children:[ae.jsx("span",{className:"flex items-center justify-center w-24 h-24",children:ae.jsx("i",{className:`fa-regular fa-microphone${r!=null&&r.muted?"-slash":""} text-neutral-40`,"data-testid":"mic-icon"})}),ae.jsx("button",{className:"border border-neutral-80 rounded-l px-8 py-4 font-semibold text-neutral-50 whitespace-nowrap w-fit h-fit disabled:opacity-32 hover:bg-neutral-95 disabled:hover:bg-transparent","data-testid":"request-turn-btn",disabled:!t,onClick:e,children:n?"Bajar la mano":"Levantar mano"})]})]})]}),hee=({canActivateTurnQueue:e,isTurnQueueActive:t,isLowerAllHandsEnabled:r,onLowerAllHands:n,onToggleQueueTurnActive:o})=>ae.jsxs("span",{className:"flex items-center self-end gap-16 mb-16",children:[ae.jsx("button",{className:"w-fit py-4 px-8 bg-neutral-50 text-white font-semibold rounded-l disabled:opacity-32 hover:bg-neutral-70 disabled:hover:bg-neutral-50 min-w-80","data-testid":"lower-all-hands-btn",disabled:!r,onClick:n,children:"Bajar todas las manos"}),ae.jsxs("label",{className:"flex items-center w-fit gap-8",children:[ae.jsx(AR,{"aria-label":"Activar/Desactivar turno de palabra",checked:t,"data-testid":"turn-queue-toggle-switch",disabled:!e,onChange:o}),ae.jsx("span",{children:t?"Desactivar":"Activar"})]})]}),j3=()=>{const e=Wd(),t=fg(),{currentUser:r}=yu(),{confirm:n,notify:o}=bs(),{muteUserMic:i,unmuteUserMic:a}=Ic(),{sharedState:s,speakerQueue:l,raisedHand:c,toggleHand:d,lowerUserHand:p,toggleTurnQueue:m}=U0(),y=se.useMemo(()=>{var F;return((F=s==null?void 0:s.speakerTurnState.turnQueueState)==null?void 0:F.active)??!1},[s]),[b]=wa(async()=>{n({header:"Bajar todas las manos",message:"¿Quieres bajar todas las manos levantadas? Esta acción no se puede deshacer.",onAccept:async()=>{for(const F of l.map($=>$.userId))await p(F)}})},[n,l,p],t.ref),[v]=wa(async F=>{n({header:F.value?"Activar":"Desactivar",message:F.value?"¿Quieres activar el turno de palabra? Los asistentes podrán solicitar el turno de palabra.":"¿Quieres desactivar el turno de palabra? Se eliminará el listado de petición de palabra y ningún participante podrá solicitar el turno hasta que lo actives de nuevo.",onAccept:async()=>{await m(F.value);for(const $ of l.map(U=>U.userId))await p($);o({header:F.value?"Turno de palabra activado":"Turno de palabra desactivado",message:F.value?"Has activado el turno de palabra.":"Has desactivado el turno de palabra.",severity:"success"})}})},[n,m,o,l,p],t.ref),[C]=wa(async()=>{await d()},[d],t.ref),[A]=wa(async F=>{await p(F)},[p],t.ref),[R]=wa(async F=>{n({header:F.muted?"Encender micrófono":"Apagar micrófono",message:F.muted?`¿Quieres solicitar a ${F.displayName} que encienda su micrófono?`:`¿Quieres apagar el micrófono de ${F.displayName}?`,onAccept:async()=>{F.muted?await a(F.userId):(await i(F.userId),o({header:F.muted?"Solicitud de encendido de micrófono":"Micrófono apagado",message:F.muted?`Has solicitado a ${F.displayName} que encienda su micrófono.`:`Has apagado el micrófono de ${F.displayName}.`,severity:"success"}))}})},[n,i,a,o],t.ref),x=se.useMemo(()=>!t.loading&&y,[t.loading,y]),k=se.useMemo(()=>!t.loading&&l.length>0,[t.loading,l]),D=se.useMemo(()=>F=>!t.loading&&(F!==(r==null?void 0:r.userId)||e("toggle-user-audio")),[t.loading,r,e]);return ae.jsxs("div",{className:"flex flex-col p-16 pb-32 h-full",children:[e("request-turn")&&ae.jsx(fee,{onToggleHand:C,isToggleHandEnabled:x,currentUser:r,raisedHand:c,queuePosition:l.findIndex(F=>F.userId===(r==null?void 0:r.userId)),queueLength:s.speakerTurnState.speakerQueueIds.length}),e("view-activate-turn-queue")&&ae.jsx(hee,{isLowerAllHandsEnabled:k,isTurnQueueActive:y,onLowerAllHands:b,onToggleQueueTurnActive:v,canActivateTurnQueue:e("activate-turn-queue")}),e("grant-turn")&&ae.jsx("ul",{className:"mt-16 flex flex-col gap-8",children:l.length?l.map(F=>ae.jsx(pee,{participant:F,onMicToggle:R,onLowerHand:A,isMicToggleEnabled:D(F.userId)},F.userId)):ae.jsxs("span",{children:[ae.jsx("p",{className:"font-semibold",children:"No hay ninguna mano levantada"}),ae.jsx("p",{children:"Espera que algún participante levante la mano para cederle la palabra."})]})}),!y&&ae.jsx(gg,{label:s.speakerTurnState.turnQueueState.timestamp&&Number(s.speakerTurnState.turnQueueState.timestamp)?`Turno de palabra apagado por el administrador ${RR(Number(s.speakerTurnState.turnQueueState.timestamp))}`:"Turno de palabra apagado por el administrador",className:"self-center mt-16 text-neutral-20 rounded-l font-semibold text-s"})]})},mee=["Asistentes","Turno de palabra","Chat"],gee=()=>{const e=Wd(),{startVideo:t}=$d(),{toggleAcceptParticipationDialog:r}=bs(),{muteMic:n,startAudio:o,hostAskUnmute:i,resetHostAskUnmute:a}=Ic(),{breakpoint:s,sessionStatus:l,initVotingSession:c}=Tf(),{users:d,currentUser:p}=yu(),{updateReceiversAndChatHistory:m}=lL(),y=s===xm.Mobile,[b,v]=se.useState(y?null:0),[C,A]=se.useState(y?[]:[...Array(3).keys()]),[R,x]=se.useState(!1),[k,D]=se.useState(null),F=k!==null?mee[k]:"",$=se.useRef(null),U=se.useCallback(ne=>{v(ne),ne===2&&C.includes(2)&&m()},[C,m]),G=se.useCallback(ne=>{y?(D(ne),x(!0)):A(Ee=>Ee.includes(ne)?(U(ne===b?null:b),Ee.filter(ce=>ce!==ne)):(U(ne),[...Ee,ne])),ne===2&&m()},[b,y,U,m]),Y=se.useCallback(()=>{SR({header:"Abrir videoconferencia",message:"Al abrir la videconferencia, los participantes recibirán una notificación y podrán unirse de inmediato. Asegúrate de que todo está listo antes de continuar.",defaultFocus:"accept",rejectLabel:"Cerrar",acceptLabel:"Abrir videoconferencia",accept:async()=>{await(c==null?void 0:c())}})},[c]),Q=se.useRef(!1);se.useEffect(()=>{if(!p)return;const ne=async()=>{e("join-session-with-video")&&await t(),await o(),e("join-session-with-audio")||await n()};Q.current||(ne(),Q.current=!0)},[e,p,n,o,t]),se.useEffect(()=>{i&&(r(),a())},[i,a,r]);const me=se.useMemo(()=>({openTabs:C,handleOpenCloseTab:G,selfShareViewRef:$}),[C,G,$]);return ae.jsxs(_L.Provider,{value:me,children:[ae.jsx("div",{className:"h-full","data-testid":"main-session-page",children:ae.jsxs(IL,{layout:y||C.length===0?"vertical":"horizontal",className:"border-0 gap-8 h-full bg-neutral-90",gutterSize:C.length===0?0:4,children:[ae.jsx(iI,{size:C.length===0?100:67,minSize:50,children:ae.jsxs("div",{className:"flex flex-col w-full",children:[e("init-session")&&l===eu.ONLY_PANELIST&&ae.jsx(OL,{severity:"warn",content:ae.jsxs("div",{className:"flex flex-col @md:flex-row items-center justify-between w-full gap-16",children:[ae.jsxs("span",{className:"flex-1 text-center @md:text-left",children:["Estás en una ",ae.jsx("b",{children:"conferencia de prueba"}),", abre sesión para invitar a todo el listado de asistentes"]}),ae.jsx(Pi,{label:"Abrir videoconferencia",onClick:Y,size:"small",className:"whitespace-nowrap shrink-0 w-full @md:w-auto"})]}),className:"@container bg-warning-90 text-neutral-20"}),ae.jsx(EX,{}),ae.jsx(gX,{})]})}),ae.jsx(iI,{size:33,minSize:25,className:y?void 0:"max-h-full overflow-hidden",children:ae.jsxs(RL,{activeIndex:b,onTabChange:ne=>U(typeof ne.index=="number"?ne.index:null),className:"h-full",expandIcon:" ",collapseIcon:" ",hidden:C.length===0,children:[ae.jsx(Uy,{className:C!=null&&C.includes(0)?"":"hidden",header:()=>ae.jsx(rE,{activeSection:b,label:"Asistentes",tabIdx:0,onClose:()=>G(0)}),children:ae.jsx(F3,{users:d})}),ae.jsx(Uy,{className:C!=null&&C.includes(1)?"":"hidden",contentClassName:"[&_.p-accordion-content]:p-0",header:()=>ae.jsx(rE,{activeSection:b,label:"Turno de palabra",tabIdx:1,onClose:()=>G(1)}),children:ae.jsx(j3,{})}),ae.jsx(Uy,{className:C!=null&&C.includes(2)?"":"hidden",contentClassName:"[&_.p-accordion-content]:p-0",header:()=>ae.jsx(rE,{activeSection:b,label:"Chat",tabIdx:2,onClose:()=>G(2)}),children:ae.jsx(YN,{})})]})})]})}),ae.jsxs(wR,{closeIcon:ae.jsx("i",{className:"fa-regular fa-xmark fa-lg","aria-hidden":"true"}),fullScreen:!0,header:F,onHide:()=>{A([]),x(!1),D(null),v(null)},pt:{header:{className:"border-b border-neutral-80 font-bold"},content:{className:"p-0"}},visible:R,children:[k===0&&ae.jsx(F3,{users:d}),k===1&&ae.jsx(j3,{}),k===2&&ae.jsx(YN,{})]}),ae.jsx(F9,{className:"w-full max-w-xl"}),ae.jsx(CL,{}),ae.jsx(bQ,{})]})},vee=({className:e})=>{const{changePluginBreakpoint:t}=Tf(),{sessionStarted:r}=ll(),{ref:n,breakpoint:o}=BJ();return se.useEffect(()=>{t(o)},[o,t]),ae.jsx("div",{className:Ni("fraku-video-plugin",e),ref:n,children:r?ae.jsx(gee,{}):ae.jsx(zY,{})})},xF=se.forwardRef(({onChangeUserRole:e,onInitPreSession:t,onInitSession:r,onCloseSession:n,credentials:o,videoSessionStatus:i,className:a},s)=>ae.jsx(pL,{ref:s,credentials:o,onChangeUserRole:e,onInitVotingPreSession:t,onCloseVotingSession:n,onInitVotingSession:r,videoSessionStatus:i,children:ae.jsx(vee,{className:a})}));xF.displayName="VideoPlugin";exports.VideoPlugin=xF;
2283
+ `,Dt.forEach(function(kt,rr){var hr=[X(kt,"field"),X(kt,"exportField")],Rr=hr[0],Lr=hr[1],un=Lr||Rr,bn=pe.resolveFieldData($t,un);bn!=null?o.exportFunction?bn=o.exportFunction({data:bn,field:un,rowData:$t,column:kt}):bn=String(bn).replace(/"/g,'""').replace(/\n/g,"\u2028"):bn="",gt=gt+('"'+bn+'"'),rr<Dt.length-1&&(gt=gt+o.csvSeparator)})}),le.exportCSV(gt,o.exportFilename)},rS=function(){o.editMode!=="row"&&document.body.click()},nS=function(){le.find(document.body,'[data-pc-section="roweditorcancelbuttonprops"]').forEach(function(ye,je){setTimeout(function(){ye.click()},je*5)})},Ll=function(ye){return Hi({first:Kt(),rows:sr(),sortField:br(),sortOrder:Zr(),multiSortMeta:Nr(),filters:Vt()},ye)},ul=function(ye){var je=o.value||[];if(!o.lazy&&je&&je.length){var gt=ye&&ye.filters||Vt(),Dt=ye&&ye.sortField||br(),$t=ye&&ye.sortOrder||Zr(),kt=ye&&ye.multiSortMeta||Nr(),rr=q(),hr=rr.find(function(Rr){return X(Rr,"field")===Dt});hr&&(Gt.current=X(hr,"sortable"),Qt.current=X(hr,"sortFunction")),(pe.isNotEmpty(gt)||o.globalFilter)&&(je=X0(je,gt)),(Dt||pe.isNotEmpty(kt))&&(o.sortMode==="single"?je=J0(je,Dt,$t):o.sortMode==="multiple"&&(je=Nn(je,kt)))}return je},Kd=function(ye){if(ye&&o.paginator){var je=o.lazy?0:Kt();return ye.slice(je,je+sr())}return ye};Go(function(){ar.current&&(Jt.current=ms(),ar.current.setAttribute(Jt.current,"")),cr(kl(o.filters)),Je()&&(lt(),o.resizableColumns&&Pn())}),hn(function(){return o.responsiveLayout==="stack"&&!o.scrollable&&yg(),function(){kf()}},[o.breakpoint]),hn(function(){var Ut=kl(o.filters);me(Ut),cr(kl(o.filters)),o.onValueChange&&o.onValueChange(ul({filters:Ut}))},[o.filters]),hn(function(){Je()&&he()}),hn(function(){kf(),o.responsiveLayout==="stack"&&!o.scrollable&&yg()},[o.responsiveLayout,o.scrollable]),hn(function(){if(o.globalFilter)Ig(o.globalFilter,"global",o.globalFilterMatchMode);else if(Wt.global){var Ut=Hi({},Wt);delete Ut.global,cr(Ut),Lf(Ut)}},[o.globalFilter,o.globalFilterMatchMode]),Ci(function(){xt(),No(),kf(),bg()}),S.useImperativeHandle(t,function(){return{props:o,clearState:ze,closeEditingCell:rS,closeEditingRows:nS,exportCSV:tS,filter:Ig,reset:Z0,resetColumnOrder:Ag,resetScroll:Vs,resetResizeColumnsWidth:eS,restoreColumnWidths:Pn,restoreState:lt,restoreTableState:ct,saveState:he,getFilterMeta:function(){return Q},setFilterMeta:function(ye){return me(ye)},getSortMeta:function(){return $},setSortMeta:function(ye){return U(ye)},getElement:function(){return ar.current},getTable:function(){return pr.current},getVirtualScroller:function(){return Xr.current},getProcessedData:function(){return ul()}}});var er=function(){if(o.loading){var ye=n({className:Ve.cx("loadingIcon")},Ve.ptm("loadingIcon")),je=o.loadingIcon||S.createElement(pg,Yn({},ye,{spin:!0})),gt=nn.getJSXIcon(je,Hi({},ye),{props:o}),Dt=n({className:Ve.cx("loadingOverlay")},Ve.ptm("loadingOverlay"));return S.createElement("div",Dt,gt)}return null},I=function(){if(o.header){var ye=pe.getJSXElement(o.header,{props:o}),je=n({className:Ve.cx("header")},Ve.ptm("header"));return S.createElement("div",je,ye)}return null},Rg=function(ye,je,gt){if(o.showHeaders===!1)return null;var Dt=br(),$t=Zr(),kt=Xo(Nr()),rr=xn(),hr=Wt,Rr=!o.onFilter&&o.filters||Vt(),Lr=ye.items,un=ye.props,bn=ye.columns,co=gt||un.lazy?Lr:un.items;return S.createElement(TF,{hostName:"DataTable",value:co,tableProps:o,columns:bn,tabIndex:o.tabIndex,empty:je,headerColumnGroup:o.headerColumnGroup,resizableColumns:o.resizableColumns,onColumnResizeStart:Li,onColumnResizerClick:o.onColumnResizerClick,onColumnResizerDoubleClick:o.onColumnResizerDoubleClick,sortMode:o.sortMode,sortField:Dt,sortIcon:o.sortIcon,sortOrder:$t,multiSortMeta:kt,groupRowsBy:o.groupRowsBy,groupRowSortField:rr,onSortChange:K0,filterDisplay:o.filterDisplay,filters:hr,filtersStore:Rr,filterIcon:o.filterIcon,filterClearIcon:o.filterClearIcon,onFilterChange:Y0,onFilterApply:Lf,showSelectAll:o.showSelectAll,allRowsSelected:An,onColumnCheckboxChange:Rn,onColumnMouseDown:_r,onColumnDragStart:ln,onColumnDragOver:kr,onColumnDragLeave:zd,onColumnDrop:Ac,rowGroupMode:o.rowGroupMode,reorderableColumns:o.reorderableColumns,ptCallbacks:Ve,metaData:At,unstyled:o.unstyled})},Tg=function(ye,je,gt,Dt,$t){var kt=Kt(),rr=ye.rows,hr=ye.columns,Rr=ye.contentRef,Lr=ye.style,un=ye.className,bn=ye.spacerStyle,co=ye.itemSize,wi=pe.isNotEmpty(o.frozenValue)&&S.createElement($y,{hostName:"DataTable",ref:Wr,cellMemo:o.cellMemo,cellMemoProps:o.cellMemoProps,cellMemoPropsDepth:o.cellMemoPropsDepth,cellClassName:o.cellClassName,cellSelection:o.cellSelection,checkIcon:o.checkIcon,className:"p-datatable-tbody p-datatable-frozen-tbody",collapsedRowIcon:o.collapsedRowIcon,columns:hr,compareSelectionBy:o.compareSelectionBy,contextMenuSelection:o.contextMenuSelection,dataKey:o.dataKey,dragSelection:o.dragSelection,editMode:o.editMode,editingMeta:st,editingRows:o.editingRows,emptyMessage:o.emptyMessage,expandableRowGroups:o.expandableRowGroups,expandedRowIcon:o.expandedRowIcon,expandedRows:o.expandedRows,first:kt,frozenRow:!0,groupRowsBy:o.groupRowsBy,isDataSelectable:o.isDataSelectable,isVirtualScrollerDisabled:!0,lazy:o.lazy,loading:o.loading,metaKeySelection:o.metaKeySelection,onCellClick:o.onCellClick,onCellSelect:o.onCellSelect,onCellUnselect:o.onCellUnselect,onContextMenu:o.onContextMenu,onContextMenuSelectionChange:o.onContextMenuSelectionChange,onEditingMetaChange:yn,onRowClick:o.onRowClick,onRowCollapse:o.onRowCollapse,onRowDoubleClick:o.onRowDoubleClick,onRowPointerDown:o.onRowPointerDown,onRowPointerUp:o.onRowPointerUp,onRowEditCancel:o.onRowEditCancel,onRowEditChange:o.onRowEditChange,onRowEditComplete:o.onRowEditComplete,onRowEditInit:o.onRowEditInit,onRowEditSave:o.onRowEditSave,onRowExpand:o.onRowExpand,onRowMouseEnter:o.onRowMouseEnter,onRowMouseLeave:o.onRowMouseLeave,onRowReorder:o.onRowReorder,onRowSelect:o.onRowSelect,onRowToggle:o.onRowToggle,onRowUnselect:o.onRowUnselect,onSelectionChange:o.onSelectionChange,paginator:o.paginator,processedData:$t,reorderableRows:o.reorderableRows,responsiveLayout:o.responsiveLayout,rowClassName:o.rowClassName,rowEditValidator:o.rowEditValidator,rowEditorCancelIcon:o.rowEditorCancelIcon,rowEditorInitIcon:o.rowEditorInitIcon,rowEditorSaveIcon:o.rowEditorSaveIcon,rowExpansionTemplate:o.rowExpansionTemplate,rowGroupFooterTemplate:o.rowGroupFooterTemplate,rowGroupHeaderTemplate:o.rowGroupHeaderTemplate,rowGroupMode:o.rowGroupMode,scrollable:o.scrollable,selectOnEdit:o.selectOnEdit,selection:o.selection,selectionAutoFocus:o.selectionAutoFocus,selectionMode:o.selectionMode,selectionModeInColumn:je,showRowReorderElement:o.showRowReorderElement,showSelectionElement:o.showSelectionElement,tabIndex:o.tabIndex,tableProps:o,tableSelector:Jt.current,value:o.frozenValue,virtualScrollerOptions:ye,ptCallbacks:Ve,metaData:At,unstyled:o.unstyled}),es=S.createElement($y,{hostName:"DataTable",ref:en,cellMemo:o.cellMemo,cellMemoProps:o.cellMemoProps,cellMemoPropsDepth:o.cellMemoPropsDepth,cellClassName:o.cellClassName,cellSelection:o.cellSelection,checkIcon:o.checkIcon,className:dt("p-datatable-tbody",un),collapsedRowIcon:o.collapsedRowIcon,columns:hr,compareSelectionBy:o.compareSelectionBy,contextMenuSelection:o.contextMenuSelection,dataKey:o.dataKey,dragSelection:o.dragSelection,editMode:o.editMode,editingMeta:Pe,editingRows:o.editingRows,empty:gt,emptyMessage:o.emptyMessage,expandableRowGroups:o.expandableRowGroups,expandedRowIcon:o.expandedRowIcon,expandedRows:o.expandedRows,first:kt,frozenRow:!1,groupRowsBy:o.groupRowsBy,isDataSelectable:o.isDataSelectable,isVirtualScrollerDisabled:Dt,lazy:o.lazy,loading:o.loading,metaKeySelection:o.metaKeySelection,onCellClick:o.onCellClick,onCellSelect:o.onCellSelect,onCellUnselect:o.onCellUnselect,onContextMenu:o.onContextMenu,onContextMenuSelectionChange:o.onContextMenuSelectionChange,onEditingMetaChange:uo,onRowClick:o.onRowClick,onRowCollapse:o.onRowCollapse,onRowDoubleClick:o.onRowDoubleClick,onRowEditCancel:o.onRowEditCancel,onRowEditChange:o.onRowEditChange,onRowEditComplete:o.onRowEditComplete,onRowEditInit:o.onRowEditInit,onRowEditSave:o.onRowEditSave,onRowExpand:o.onRowExpand,onRowMouseEnter:o.onRowMouseEnter,onRowMouseLeave:o.onRowMouseLeave,onRowPointerDown:o.onRowPointerDown,onRowPointerUp:o.onRowPointerUp,onRowReorder:o.onRowReorder,onRowSelect:o.onRowSelect,onRowToggle:o.onRowToggle,onRowUnselect:o.onRowUnselect,onSelectionChange:o.onSelectionChange,paginator:o.paginator,processedData:$t,reorderableRows:o.reorderableRows,responsiveLayout:o.responsiveLayout,rowClassName:o.rowClassName,rowEditValidator:o.rowEditValidator,rowEditorCancelIcon:o.rowEditorCancelIcon,rowEditorInitIcon:o.rowEditorInitIcon,rowEditorSaveIcon:o.rowEditorSaveIcon,rowExpansionTemplate:o.rowExpansionTemplate,rowGroupFooterTemplate:o.rowGroupFooterTemplate,rowGroupHeaderTemplate:o.rowGroupHeaderTemplate,rowGroupMode:o.rowGroupMode,scrollable:o.scrollable,selectOnEdit:o.selectOnEdit,selection:o.selection,selectionAutoFocus:o.selectionAutoFocus,selectionMode:o.selectionMode,selectionModeInColumn:je,showRowReorderElement:o.showRowReorderElement,showSelectionElement:o.showSelectionElement,style:Lr,tabIndex:o.tabIndex,tableProps:o,tableSelector:Jt.current,value:Kd(rr),virtualScrollerContentRef:Rr,virtualScrollerOptions:ye,ptCallbacks:Ve,metaData:At,unstyled:o.unstyled}),ts=pe.isNotEmpty(bn)?S.createElement($y,{hostName:"DataTable",style:{height:"calc(".concat(bn.height," - ").concat(rr.length*co,"px)")},className:"p-datatable-virtualscroller-spacer",ptCallbacks:Ve,metaData:At,unstyled:o.unstyled}):null;return S.createElement(S.Fragment,null,wi,es,ts)},Gd=function(ye){var je=ye.columns;return S.createElement(AF,{hostName:"DataTable",tableProps:o,columns:je,footerColumnGroup:o.footerColumnGroup,ptCallbacks:Ve,metaData:At,unstyled:o.unstyled})},ua=function(ye,je,gt,Dt){if(je){var $t=vt(),kt=o.virtualScrollerOptions||{},rr=n({className:Ve.cx("wrapper"),style:Hi(Hi({},Ve.sx("wrapper")),{},{maxHeight:$t?o.scrollHeight:null})},Ve.ptm("wrapper"));return S.createElement("div",Yn({ref:gr},rr),S.createElement(IR,Yn({ref:Xr},kt,{items:ye,columns:je,style:Hi(Hi({},kt.style),{height:o.scrollHeight!=="flex"?o.scrollHeight:void 0}),scrollHeight:o.scrollHeight!=="flex"?void 0:"100%",disabled:$t,loaderDisabled:!0,inline:!0,autoSize:!0,pt:Ve.ptm("virtualScroller"),__parentMetadata:{parent:At},showSpacer:!1,unstyled:o.unstyled,contentTemplate:function(Rr){var Lr=function(ts){pr.current=ts,Rr.spacerRef&&Rr.spacerRef(ts)},un=Rg(Rr,Dt,$t),bn=Tg(Rr,gt,Dt,$t,ye),co=Gd(Rr),wi=n({className:dt(o.tableClassName,Ve.cx("table")),style:o.tableStyle,role:"table"},Ve.ptm("table"));return S.createElement("table",Yn({ref:Lr},wi),un,bn,co)}})))}},oS=function(){if(o.footer){var ye=pe.getJSXElement(o.footer,{props:o}),je=n({className:Ve.cx("footer")},Ve.ptm("footer"));return S.createElement("div",je,ye)}return null},Og=function(ye,je){return S.createElement(aF,{first:Kt(),rows:sr(),pageLinkSize:o.pageLinkSize,className:dt(o.paginatorClassName,Ve.cx("paginator",{position:ye})),onPageChange:z0,template:o.paginatorTemplate,totalRecords:je,rowsPerPageOptions:o.rowsPerPageOptions,currentPageReportTemplate:o.currentPageReportTemplate,leftContent:o.paginatorLeft,rightContent:o.paginatorRight,alwaysShow:o.alwaysShowPaginator,dropdownAppendTo:o.paginatorDropdownAppendTo,pt:Ve.ptm("paginator"),unstyled:o.unstyled,__parentMetadata:{parent:At}})},iS=function(ye){return o.paginator&&o.paginatorPosition!=="bottom"?Og("top",ye):null},bu=function(ye){return o.paginator&&o.paginatorPosition!=="top"?Og("bottom",ye):null},Rc=function(){if(o.resizableColumns){var ye=n({className:Ve.cx("resizeHelper"),style:Ve.sx("resizeHelper")},Ve.ptm("resizeHelper"));return S.createElement("div",Yn({ref:zr},ye))}return null},ti=function(){if(o.reorderableColumns){var ye={position:"absolute",display:"none"},je=n({className:Ve.cx("reorderIndicatorUp"),style:Ve.sx("reorderIndicatorUp",{style:ye})},Ve.ptm("reorderIndicatorUp")),gt=n(Ve.ptm("reorderIndicatorUpIcon")),Dt=nn.getJSXIcon(o.reorderIndicatorUpIcon||S.createElement(HL,gt),Hi({},gt),{props:o}),$t=n({className:Ve.cx("reorderIndicatorDown"),style:Ve.sx("reorderIndicatorDown",{style:ye})},Ve.ptm("reorderIndicatorDown")),kt=n(Ve.ptm("reorderIndicatorDownIcon")),rr=nn.getJSXIcon(o.reorderIndicatorDownIcon||S.createElement(UL,kt),Hi({},kt),{props:o});return S.createElement(S.Fragment,null,S.createElement("span",Yn({ref:Pr},je),Dt),S.createElement("span",Yn({ref:Br},$t),rr))}return null},Xn=ul(),Su=q(),Va=pi(Xn),aS=pe.isEmpty(Xn),_g=lo(Su),qd=o.selectionMode||_g,Hn=er(),sS=I(),lS=iS(Va),ca=ua(Xn,Su,_g,aS),Es=bu(Va),Ff=oS(),uS=Rc(),Jd=ti(),Pg=n({id:o.id,className:dt(o.className,Ve.cx("root",{selectable:qd})),style:o.style,"data-scrollselectors":".p-datatable-wrapper","data-showgridlines":o.showGridlines},Kv.getOtherProps(o),Ve.ptm("root"));return S.createElement("div",Yn({ref:ar},Pg),Hn,sS,lS,ca,Es,Ff,uS,Jd)});OF.displayName="DataTable";function FI(){return FI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},FI.apply(null,arguments)}function qm(e){"@babel/helpers - typeof";return qm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qm(e)}function ree(e,t){if(qm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nee(e){var t=ree(e,"string");return qm(t)=="symbol"?t:t+""}function oee(e,t,r){return(t=nee(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var iee={root:function(t){var r=t.props;return dt("p-icon-field",{"p-icon-field-right":r.iconPosition==="right","p-icon-field-left":r.iconPosition==="left"})}},sE=Ar.extend({defaultProps:{__TYPE:"IconField",__parentMetadata:null,children:void 0,className:null,iconPosition:"right"},css:{classes:iee}});function D3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function N3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?D3(Object(r),!0).forEach(function(n){oee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):D3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var _F=ae.memo(ae.forwardRef(function(e,t){var r=ae.useRef(t),n=Vr(),o=ae.useContext(qr),i=sE.getProps(e,o),a=sE.setMetaData(N3(N3({props:i},i.__parentMetadata),{},{context:{iconPosition:i.iconPosition}})),s=a.ptm,l=a.cx,c=n({className:dt(i.className,l("root",{iconPosition:i.iconPosition}))},sE.getOtherProps(i),s("root"));return ae.createElement("div",FI({},c,{ref:r}),ae.Children.map(i.children,function(d,p){return ae.cloneElement(d,{iconPosition:i.iconPosition})}))}));_F.displayName="IconField";function jI(){return jI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},jI.apply(null,arguments)}function Jm(e){"@babel/helpers - typeof";return Jm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jm(e)}function aee(e,t){if(Jm(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jm(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function see(e){var t=aee(e,"string");return Jm(t)=="symbol"?t:t+""}function lee(e,t,r){return(t=see(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var uee={root:"p-input-icon"},lE=Ar.extend({defaultProps:{__TYPE:"InputIcon",__parentMetadata:null,className:null,iconPosition:null},css:{classes:uee}});function M3(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function k3(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?M3(Object(r),!0).forEach(function(n){lee(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):M3(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var PF=ae.memo(ae.forwardRef(function(e,t){var r=ae.useRef(t),n=Vr(),o=ae.useContext(qr),i=lE.getProps(e,o),a=lE.setMetaData(k3(k3({props:i},i.__parentMetadata),{},{context:{iconPosition:i.iconPosition}})),s=a.ptm,l=a.cx,c=n({className:dt(i.className,l("root"))},lE.getOtherProps(i),s("root"));return ae.createElement(ae.Fragment,null,ae.createElement("span",jI({},c,{ref:r}),i.children))}));PF.displayName="InputIcon";const cee=({can:e,columnHeader:t,currentUserId:r,filteredUsers:n,filter:o,handleMakeHost:i,handleMakeManager:a,handleRevokeManager:s,handleToggleParticipantMic:l,isManager:c,loading:d,setFilter:p,setSelectedUser:m,userMenuRef:y})=>se.jsxs(se.Fragment,{children:[se.jsxs(_F,{iconPosition:"left",className:"w-full mb-16",children:[se.jsx(PF,{className:"fa-regular fa-magnifying-glass"}),se.jsx(W0,{value:o,onChange:b=>p(b.target.value),placeholder:"Buscar participantes",className:"w-full"})]}),se.jsxs(OF,{value:n,size:"small",stripedRows:!0,children:[se.jsx(yI,{body:b=>se.jsxs("div",{className:"flex items-center gap-16",children:[se.jsx("p",{className:"font-semibold",children:b.displayName}),b.isHost&&se.jsx(gg,{label:"Admin",className:"text-neutral-50 rounded-l font-semibold","data-testid":"admin-chip"})]}),header:t}),se.jsx(yI,{body:b=>se.jsxs("div",{className:"flex gap-4 justify-end",children:[se.jsx(Pi,{"aria-label":"Toggle video",disabled:!0,icon:`fa-regular fa-video${b.bVideoOn?"":"-slash"} text-neutral-40`,text:!0}),se.jsx(Pi,{"aria-label":"Toggle microphone",disabled:d||b.userId===r||!e.toggleUserAudio,icon:`fa-regular fa-microphone${b.muted?"-slash":""} text-neutral-40`,onClick:()=>l(b),text:!0}),e.changeUserRole&&se.jsx(Pi,{"aria-label":"Open user menu","data-testid":"open-user-menu-button","aria-controls":"user-menu","aria-haspopup":!0,disabled:b.userId===r,icon:"fa-regular fa-gear text-neutral-40",onClick:v=>{var C;m(b),(C=y.current)==null||C.toggle(v)},text:!0})]})})]}),se.jsx(uu,{id:"user-menu",ref:y,popup:!0,popupAlignment:"right",model:[{visible:c,label:"Convertir a asistente",command:s,data:{"data-testid":"revoke-manager-menu-item"}},{visible:!c,label:"Convertir a Panelista",command:a,data:{"data-testid":"make-manager-menu-item"}},{label:"Transferir Administración",command:i,data:{"data-testid":"make-admin-menu-item"}}]})]}),dee=e=>{const t=Wd(),{changeUserRole:r}=Tf(),n=fg(),{alertUser:o}=U0(),{zmClient:i}=ll(),{currentUser:a}=yu(),{muteUserMic:s,unmuteUserMic:l}=Ic(),{confirm:c,notify:d}=bs(),[p,m]=ae.useState(""),y=p.toLocaleLowerCase().trim(),b=e.filter(F=>F.displayName.toLocaleLowerCase().includes(y)),v=ae.useRef(null),[C,A]=ae.useState(null),R=ae.useCallback(async()=>{C&&c({header:"Convertir a panelista",message:"¿Quieres convertir a esta persona en panelista?",onAccept:async()=>{await i.makeManager(C.userId),await o(C.userId,"Ha sido convertido a panelista"),await(r==null?void 0:r({userId:C.userId,role:"PANELIST"})),d({header:"Cambio a panelista",message:"Has cambiado a panelista a este asistente.",severity:"success"})}})},[i,C,c,o,d,r]),x=ae.useCallback(async()=>{C&&c({header:"Convertir a asistente",message:"¿Quieres convertir a esta persona en asistente?",onAccept:async()=>{await i.revokeManager(C.userId),await o(C.userId,"Ha sido convertido a asistente"),await(r==null?void 0:r({userId:C.userId,role:"ATTENDEE"})),d({header:"Cambio a asistente",message:"Has cambiado a asistente a este panelista.",severity:"success"})}})},[i,C,c,o,d,r]),k=ae.useCallback(async()=>{C&&c({header:"Transferir administración",message:"Va a transferir la administración a otro usuario. Esta operación es irrevocable. ¿Está seguro?",onAccept:async()=>{await i.makeHost(C.userId),await o(C.userId,"¡Ha sido promocionado a Administrador!"),await(r==null?void 0:r({userId:C.userId,role:"HOST"})),d({header:"Cambio a administrador",message:"Has cambiado a administrador a este usuario.",severity:"success"})}})},[i,C,c,d,o,r]),[D]=wa(async F=>{c({header:F.muted?"Encender micrófono":"Apagar micrófono",message:F.muted?`¿Quieres solicitar a ${F.displayName} que encienda su micrófono?`:`¿Quieres apagar el micrófono de ${F.displayName}?`,onAccept:async()=>{F.muted?await l(F.userId):(await s(F.userId),d({header:F.muted?"Solicitud de encendido de micrófono":"Micrófono apagado",message:F.muted?`Has solicitado a ${F.displayName} que encienda su micrófono.`:`Has apagado el micrófono de ${F.displayName}.`,severity:"success"}))}})},[c,s,l,d],n.ref);return{can:{changeUserRole:t("change-user-role"),toggleUserAudio:t("toggle-user-audio"),toggleUserVideo:t("toggle-user-video")},currentUserId:(a==null?void 0:a.userId)??0,filteredUsers:b,filter:p,handleMakeHost:k,handleMakeManager:R,handleRevokeManager:x,handleToggleParticipantMic:D,isManager:(C==null?void 0:C.isManager)??!1,loading:n.loading,setFilter:m,setSelectedUser:A,userMenuRef:v}},L3=({users:e,columnHeader:t})=>{const r=dee(e);return se.jsx(cee,{columnHeader:t,...r})},F3=({users:e})=>{const t=Wd(),r=e.filter(o=>o.isHost||o.isManager),n=e.filter(o=>!o.isHost&&!o.isManager);return se.jsxs(BL,{activeIndex:0,pt:{panelContainer:{className:"px-0"}},children:[se.jsx(vI,{header:"Panelistas",children:se.jsx(L3,{users:r,columnHeader:`${r.length} panelistas`})}),t("show-attendee-list")&&se.jsx(vI,{header:"Asistentes",children:se.jsx(L3,{users:n,columnHeader:`${n.length} asistentes`})})]})},pee=({participant:e,onMicToggle:t,onLowerHand:r,isMicToggleEnabled:n})=>se.jsxs("li",{className:"flex justify-between items-center py-8 border border-neutral-80 rounded-m px-8","aria-label":`Usuario ${e.displayName}`,"data-testid":"turn-queue-user-item",children:[se.jsx("p",{className:"font-semibold whitespace-nowrap truncate","data-testid":"turn-queue-user-name",children:e.displayName}),se.jsxs("div",{className:"flex gap-8 items-center",children:[se.jsx("button",{"aria-label":e.muted?`Solicitar a ${e.displayName} que encienda su micrófono`:`Apagar el micrófono de ${e.displayName}`,className:"flex items-center justify-center w-24 h-24","data-testid":"turn-queue-user-mic-btn",disabled:!n,onClick:()=>t(e),children:se.jsx("i",{"aria-hidden":"true",className:`fa-regular fa-microphone${e.muted?"-slash":""} text-neutral-40`})}),se.jsx("button",{"aria-label":`Bajar la mano de ${e.displayName}`,className:"border border-neutral-80 rounded-l px-8 py-4 font-semibold text-neutral-50 whitespace-nowrap w-fit h-fit","data-testid":"turn-queue-user-lower-hand-btn",onClick:()=>r(e.userId),children:"Bajar mano"})]})]}),fee=({onToggleHand:e,isToggleHandEnabled:t,currentUser:r,raisedHand:n,queuePosition:o,queueLength:i})=>se.jsxs(se.Fragment,{children:[n?se.jsxs("div",{className:"flex flex-col gap-4",children:[se.jsx("p",{className:"font-semibold",children:"Has solicitado el turno de palabra"}),se.jsx("p",{children:"Espera que el administrador de la videoconferencia te dé acceso."})]}):se.jsxs("div",{className:"flex flex-col gap-4",children:[se.jsx("p",{className:"font-semibold",children:"No has solicitado el turno de palabra"}),se.jsx("p",{children:"Levanta la mano para solicitar acceso a la videoconferencia."})]}),se.jsxs("div",{className:"flex justify-between gap-16 my-16 p-8 rounded-m border border-neutral-80",children:[se.jsx("div",{className:"flex items-center whitespace-nowrap truncate",children:o!==-1?se.jsxs("p",{className:"truncate","data-testid":"request-turn-position",children:["Posición ",o+1," de ",i]}):se.jsxs("p",{className:"truncate",children:[i," personas han levantado la mano"]})}),se.jsxs("div",{className:"flex items-center gap-8",children:[se.jsx("span",{className:"flex items-center justify-center w-24 h-24",children:se.jsx("i",{className:`fa-regular fa-microphone${r!=null&&r.muted?"-slash":""} text-neutral-40`,"data-testid":"mic-icon"})}),se.jsx("button",{className:"border border-neutral-80 rounded-l px-8 py-4 font-semibold text-neutral-50 whitespace-nowrap w-fit h-fit disabled:opacity-32 hover:bg-neutral-95 disabled:hover:bg-transparent","data-testid":"request-turn-btn",disabled:!t,onClick:e,children:n?"Bajar la mano":"Levantar mano"})]})]})]}),hee=({canActivateTurnQueue:e,isTurnQueueActive:t,isLowerAllHandsEnabled:r,onLowerAllHands:n,onToggleQueueTurnActive:o})=>se.jsxs("span",{className:"flex items-center self-end gap-16 mb-16",children:[se.jsx("button",{className:"w-fit py-4 px-8 bg-neutral-50 text-white font-semibold rounded-l disabled:opacity-32 hover:bg-neutral-70 disabled:hover:bg-neutral-50 min-w-80","data-testid":"lower-all-hands-btn",disabled:!r,onClick:n,children:"Bajar todas las manos"}),se.jsxs("label",{className:"flex items-center w-fit gap-8",children:[se.jsx(AR,{"aria-label":"Activar/Desactivar turno de palabra",checked:t,"data-testid":"turn-queue-toggle-switch",disabled:!e,onChange:o}),se.jsx("span",{children:t?"Desactivar":"Activar"})]})]}),j3=()=>{const e=Wd(),t=fg(),{currentUser:r}=yu(),{confirm:n,notify:o}=bs(),{muteUserMic:i,unmuteUserMic:a}=Ic(),{sharedState:s,speakerQueue:l,raisedHand:c,toggleHand:d,lowerUserHand:p,toggleTurnQueue:m}=U0(),y=ae.useMemo(()=>{var F;return((F=s==null?void 0:s.speakerTurnState.turnQueueState)==null?void 0:F.active)??!1},[s]),[b]=wa(async()=>{n({header:"Bajar todas las manos",message:"¿Quieres bajar todas las manos levantadas? Esta acción no se puede deshacer.",onAccept:async()=>{for(const F of l.map($=>$.userId))await p(F)}})},[n,l,p],t.ref),[v]=wa(async F=>{n({header:F.value?"Activar":"Desactivar",message:F.value?"¿Quieres activar el turno de palabra? Los asistentes podrán solicitar el turno de palabra.":"¿Quieres desactivar el turno de palabra? Se eliminará el listado de petición de palabra y ningún participante podrá solicitar el turno hasta que lo actives de nuevo.",onAccept:async()=>{await m(F.value);for(const $ of l.map(U=>U.userId))await p($);o({header:F.value?"Turno de palabra activado":"Turno de palabra desactivado",message:F.value?"Has activado el turno de palabra.":"Has desactivado el turno de palabra.",severity:"success"})}})},[n,m,o,l,p],t.ref),[C]=wa(async()=>{await d()},[d],t.ref),[A]=wa(async F=>{await p(F)},[p],t.ref),[R]=wa(async F=>{n({header:F.muted?"Encender micrófono":"Apagar micrófono",message:F.muted?`¿Quieres solicitar a ${F.displayName} que encienda su micrófono?`:`¿Quieres apagar el micrófono de ${F.displayName}?`,onAccept:async()=>{F.muted?await a(F.userId):(await i(F.userId),o({header:F.muted?"Solicitud de encendido de micrófono":"Micrófono apagado",message:F.muted?`Has solicitado a ${F.displayName} que encienda su micrófono.`:`Has apagado el micrófono de ${F.displayName}.`,severity:"success"}))}})},[n,i,a,o],t.ref),x=ae.useMemo(()=>!t.loading&&y,[t.loading,y]),k=ae.useMemo(()=>!t.loading&&l.length>0,[t.loading,l]),D=ae.useMemo(()=>F=>!t.loading&&(F!==(r==null?void 0:r.userId)||e("toggle-user-audio")),[t.loading,r,e]);return se.jsxs("div",{className:"flex flex-col p-16 pb-32 h-full",children:[e("request-turn")&&se.jsx(fee,{onToggleHand:C,isToggleHandEnabled:x,currentUser:r,raisedHand:c,queuePosition:l.findIndex(F=>F.userId===(r==null?void 0:r.userId)),queueLength:s.speakerTurnState.speakerQueueIds.length}),e("view-activate-turn-queue")&&se.jsx(hee,{isLowerAllHandsEnabled:k,isTurnQueueActive:y,onLowerAllHands:b,onToggleQueueTurnActive:v,canActivateTurnQueue:e("activate-turn-queue")}),e("grant-turn")&&se.jsx("ul",{className:"mt-16 flex flex-col gap-8",children:l.length?l.map(F=>se.jsx(pee,{participant:F,onMicToggle:R,onLowerHand:A,isMicToggleEnabled:D(F.userId)},F.userId)):se.jsxs("span",{children:[se.jsx("p",{className:"font-semibold",children:"No hay ninguna mano levantada"}),se.jsx("p",{children:"Espera que algún participante levante la mano para cederle la palabra."})]})}),!y&&se.jsx(gg,{label:s.speakerTurnState.turnQueueState.timestamp&&Number(s.speakerTurnState.turnQueueState.timestamp)?`Turno de palabra apagado por el administrador ${RR(Number(s.speakerTurnState.turnQueueState.timestamp))}`:"Turno de palabra apagado por el administrador",className:"self-center mt-16 text-neutral-20 rounded-l font-semibold text-s"})]})},mee=["Asistentes","Turno de palabra","Chat"],gee=()=>{const e=Wd(),{startVideo:t}=$d(),{toggleAcceptParticipationDialog:r}=bs(),{muteMic:n,startAudio:o,hostAskUnmute:i,resetHostAskUnmute:a}=Ic(),{breakpoint:s,sessionStatus:l,initVotingSession:c}=Tf(),{users:d,currentUser:p}=yu(),{updateReceiversAndChatHistory:m}=lL(),y=s===xm.Mobile,[b,v]=ae.useState(y?null:0),[C,A]=ae.useState(y?[]:[...Array(3).keys()]),[R,x]=ae.useState(!1),[k,D]=ae.useState(null),F=k!==null?mee[k]:"",$=ae.useRef(null),U=ae.useCallback(ne=>{v(ne),ne===2&&C.includes(2)&&m()},[C,m]),G=ae.useCallback(ne=>{y?(D(ne),x(!0)):A(Ee=>Ee.includes(ne)?(U(ne===b?null:b),Ee.filter(ce=>ce!==ne)):(U(ne),[...Ee,ne])),ne===2&&m()},[b,y,U,m]),Y=ae.useCallback(()=>{SR({header:"Abrir videoconferencia",message:"Al abrir la videconferencia, los participantes recibirán una notificación y podrán unirse de inmediato. Asegúrate de que todo está listo antes de continuar.",defaultFocus:"accept",rejectLabel:"Cerrar",acceptLabel:"Abrir videoconferencia",accept:async()=>{await(c==null?void 0:c())}})},[c]),Q=ae.useRef(!1);ae.useEffect(()=>{if(!p)return;const ne=async()=>{e("join-session-with-video")&&await t(),await o(),e("join-session-with-audio")||await n()};Q.current||(ne(),Q.current=!0)},[e,p,n,o,t]),ae.useEffect(()=>{i&&(r(),a())},[i,a,r]);const me=ae.useMemo(()=>({openTabs:C,handleOpenCloseTab:G,selfShareViewRef:$}),[C,G,$]);return se.jsxs(_L.Provider,{value:me,children:[se.jsx("div",{className:"h-full","data-testid":"main-session-page",children:se.jsxs(IL,{layout:y||C.length===0?"vertical":"horizontal",className:"border-0 gap-8 h-full bg-neutral-90",gutterSize:C.length===0?0:4,children:[se.jsx(iI,{size:C.length===0?100:67,minSize:50,children:se.jsxs("div",{className:"flex flex-col w-full",children:[e("init-session")&&l===eu.ONLY_PANELIST&&se.jsx(OL,{severity:"warn",content:se.jsxs("div",{className:"flex flex-col @md:flex-row items-center justify-between w-full gap-16",children:[se.jsxs("span",{className:"flex-1 text-center @md:text-left",children:["Estás en una ",se.jsx("b",{children:"conferencia de prueba"}),", abre sesión para invitar a todo el listado de asistentes"]}),se.jsx(Pi,{label:"Abrir videoconferencia",onClick:Y,size:"small",className:"whitespace-nowrap shrink-0 w-full @md:w-auto"})]}),className:"@container bg-warning-90 text-neutral-20"}),se.jsx(EX,{}),se.jsx(gX,{})]})}),se.jsx(iI,{size:33,minSize:25,className:y?void 0:"max-h-full overflow-hidden",children:se.jsxs(RL,{activeIndex:b,onTabChange:ne=>U(typeof ne.index=="number"?ne.index:null),className:"h-full",expandIcon:" ",collapseIcon:" ",hidden:C.length===0,children:[se.jsx(Uy,{className:C!=null&&C.includes(0)?"":"hidden",header:()=>se.jsx(rE,{activeSection:b,label:"Asistentes",tabIdx:0,onClose:()=>G(0)}),children:se.jsx(F3,{users:d})}),se.jsx(Uy,{className:C!=null&&C.includes(1)?"":"hidden",contentClassName:"[&_.p-accordion-content]:p-0",header:()=>se.jsx(rE,{activeSection:b,label:"Turno de palabra",tabIdx:1,onClose:()=>G(1)}),children:se.jsx(j3,{})}),se.jsx(Uy,{className:C!=null&&C.includes(2)?"":"hidden",contentClassName:"[&_.p-accordion-content]:p-0",header:()=>se.jsx(rE,{activeSection:b,label:"Chat",tabIdx:2,onClose:()=>G(2)}),children:se.jsx(YN,{})})]})})]})}),se.jsxs(wR,{closeIcon:se.jsx("i",{className:"fa-regular fa-xmark fa-lg","aria-hidden":"true"}),fullScreen:!0,header:F,onHide:()=>{A([]),x(!1),D(null),v(null)},pt:{header:{className:"border-b border-neutral-80 font-bold"},content:{className:"p-0"}},visible:R,children:[k===0&&se.jsx(F3,{users:d}),k===1&&se.jsx(j3,{}),k===2&&se.jsx(YN,{})]}),se.jsx(F9,{className:"w-full max-w-xl"}),se.jsx(CL,{}),se.jsx(bQ,{})]})},vee=({className:e})=>{const{changePluginBreakpoint:t}=Tf(),{sessionStarted:r}=ll(),{ref:n,breakpoint:o}=BJ();return ae.useEffect(()=>{t(o)},[o,t]),se.jsx("div",{className:Ni("fraku-video-plugin",e),ref:n,children:r?se.jsx(gee,{}):se.jsx(zY,{})})},xF=ae.forwardRef(({onChangeUserRole:e,onInitPreSession:t,onInitSession:r,onCloseSession:n,credentials:o,videoSessionStatus:i,className:a},s)=>{const l=ae.useRef(null);return ae.useImperativeHandle(s,()=>{var c;return{cleanup:()=>{var d;return(d=l.current)==null?void 0:d.cleanup()},sessionStarted:((c=l.current)==null?void 0:c.sessionStarted)??!1,joinSession:()=>{var d;return(d=l.current)==null?void 0:d.joinSession()},leaveSession:d=>{var p;return(p=l.current)==null?void 0:p.leaveSession(d)}}}),se.jsx(pL,{ref:l,credentials:o,onChangeUserRole:e,onInitVotingPreSession:t,onCloseVotingSession:n,onInitVotingSession:r,videoSessionStatus:i,children:se.jsx(vee,{className:a})})});xF.displayName="VideoPlugin";exports.VideoPlugin=xF;